@cloudscape-design/components-themeable 3.0.244 → 3.0.246

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 (1252) hide show
  1. package/lib/internal/manifest.json +1 -1
  2. package/lib/internal/scss/internal/components/token-list/styles.scss +90 -0
  3. package/lib/internal/scss/property-filter/styles.scss +0 -13
  4. package/lib/internal/scss/table/body-cell/styles.scss +1 -1
  5. package/lib/internal/scss/token-group/styles.scss +1 -34
  6. package/lib/internal/template/alert/index.d.ts.map +1 -1
  7. package/lib/internal/template/alert/index.js.map +1 -1
  8. package/lib/internal/template/alert/interfaces.d.ts.map +1 -1
  9. package/lib/internal/template/alert/interfaces.js.map +1 -1
  10. package/lib/internal/template/alert/internal.d.ts.map +1 -1
  11. package/lib/internal/template/alert/internal.js.map +1 -1
  12. package/lib/internal/template/annotation-context/annotation/annotation-icon.d.ts.map +1 -1
  13. package/lib/internal/template/annotation-context/annotation/annotation-icon.js.map +1 -1
  14. package/lib/internal/template/annotation-context/annotation/annotation-popover.d.ts.map +1 -1
  15. package/lib/internal/template/annotation-context/annotation/annotation-popover.js.map +1 -1
  16. package/lib/internal/template/annotation-context/annotation/annotation-trigger.d.ts.map +1 -1
  17. package/lib/internal/template/annotation-context/annotation/annotation-trigger.js.map +1 -1
  18. package/lib/internal/template/annotation-context/annotation/closed-annotation.d.ts.map +1 -1
  19. package/lib/internal/template/annotation-context/annotation/closed-annotation.js.map +1 -1
  20. package/lib/internal/template/annotation-context/annotation/open-annotation.d.ts.map +1 -1
  21. package/lib/internal/template/annotation-context/annotation/open-annotation.js.map +1 -1
  22. package/lib/internal/template/annotation-context/context.d.ts.map +1 -1
  23. package/lib/internal/template/annotation-context/context.js.map +1 -1
  24. package/lib/internal/template/annotation-context/index.d.ts.map +1 -1
  25. package/lib/internal/template/annotation-context/index.js.map +1 -1
  26. package/lib/internal/template/annotation-context/interfaces.d.ts.map +1 -1
  27. package/lib/internal/template/annotation-context/interfaces.js.map +1 -1
  28. package/lib/internal/template/annotation-context/utils.d.ts.map +1 -1
  29. package/lib/internal/template/annotation-context/utils.js.map +1 -1
  30. package/lib/internal/template/app-layout/content-wrapper/index.d.ts.map +1 -1
  31. package/lib/internal/template/app-layout/content-wrapper/index.js.map +1 -1
  32. package/lib/internal/template/app-layout/defaults.d.ts.map +1 -1
  33. package/lib/internal/template/app-layout/defaults.js.map +1 -1
  34. package/lib/internal/template/app-layout/drawer/index.d.ts.map +1 -1
  35. package/lib/internal/template/app-layout/drawer/index.js.map +1 -1
  36. package/lib/internal/template/app-layout/index.d.ts.map +1 -1
  37. package/lib/internal/template/app-layout/index.js.map +1 -1
  38. package/lib/internal/template/app-layout/interfaces.d.ts.map +1 -1
  39. package/lib/internal/template/app-layout/interfaces.js.map +1 -1
  40. package/lib/internal/template/app-layout/mobile-toolbar/index.d.ts.map +1 -1
  41. package/lib/internal/template/app-layout/mobile-toolbar/index.js.map +1 -1
  42. package/lib/internal/template/app-layout/notifications/index.d.ts.map +1 -1
  43. package/lib/internal/template/app-layout/notifications/index.js.map +1 -1
  44. package/lib/internal/template/app-layout/split-panel-drawer/index.d.ts.map +1 -1
  45. package/lib/internal/template/app-layout/split-panel-drawer/index.js.map +1 -1
  46. package/lib/internal/template/app-layout/toggles/index.d.ts.map +1 -1
  47. package/lib/internal/template/app-layout/toggles/index.js.map +1 -1
  48. package/lib/internal/template/app-layout/toggles/interfaces.d.ts.map +1 -1
  49. package/lib/internal/template/app-layout/toggles/interfaces.js.map +1 -1
  50. package/lib/internal/template/app-layout/utils/use-content-height.d.ts.map +1 -1
  51. package/lib/internal/template/app-layout/utils/use-content-height.js.map +1 -1
  52. package/lib/internal/template/app-layout/utils/use-content-width.d.ts.map +1 -1
  53. package/lib/internal/template/app-layout/utils/use-content-width.js.map +1 -1
  54. package/lib/internal/template/app-layout/utils/use-focus-control.d.ts.map +1 -1
  55. package/lib/internal/template/app-layout/utils/use-focus-control.js.map +1 -1
  56. package/lib/internal/template/app-layout/utils/use-observed-element.d.ts.map +1 -1
  57. package/lib/internal/template/app-layout/utils/use-observed-element.js.map +1 -1
  58. package/lib/internal/template/app-layout/utils/use-split-panel-focus-control.d.ts.map +1 -1
  59. package/lib/internal/template/app-layout/utils/use-split-panel-focus-control.js.map +1 -1
  60. package/lib/internal/template/app-layout/utils/use-window-width.d.ts.map +1 -1
  61. package/lib/internal/template/app-layout/utils/use-window-width.js.map +1 -1
  62. package/lib/internal/template/app-layout/visual-refresh/app-bar.d.ts.map +1 -1
  63. package/lib/internal/template/app-layout/visual-refresh/app-bar.js.map +1 -1
  64. package/lib/internal/template/app-layout/visual-refresh/background.d.ts.map +1 -1
  65. package/lib/internal/template/app-layout/visual-refresh/background.js.map +1 -1
  66. package/lib/internal/template/app-layout/visual-refresh/context.d.ts.map +1 -1
  67. package/lib/internal/template/app-layout/visual-refresh/context.js.map +1 -1
  68. package/lib/internal/template/app-layout/visual-refresh/header.d.ts.map +1 -1
  69. package/lib/internal/template/app-layout/visual-refresh/header.js.map +1 -1
  70. package/lib/internal/template/app-layout/visual-refresh/index.d.ts.map +1 -1
  71. package/lib/internal/template/app-layout/visual-refresh/index.js.map +1 -1
  72. package/lib/internal/template/app-layout/visual-refresh/layout.d.ts.map +1 -1
  73. package/lib/internal/template/app-layout/visual-refresh/layout.js.map +1 -1
  74. package/lib/internal/template/app-layout/visual-refresh/main.d.ts.map +1 -1
  75. package/lib/internal/template/app-layout/visual-refresh/main.js.map +1 -1
  76. package/lib/internal/template/app-layout/visual-refresh/navigation.d.ts.map +1 -1
  77. package/lib/internal/template/app-layout/visual-refresh/navigation.js.map +1 -1
  78. package/lib/internal/template/app-layout/visual-refresh/notifications.d.ts.map +1 -1
  79. package/lib/internal/template/app-layout/visual-refresh/notifications.js.map +1 -1
  80. package/lib/internal/template/app-layout/visual-refresh/split-panel.d.ts.map +1 -1
  81. package/lib/internal/template/app-layout/visual-refresh/split-panel.js.map +1 -1
  82. package/lib/internal/template/app-layout/visual-refresh/tools.d.ts.map +1 -1
  83. package/lib/internal/template/app-layout/visual-refresh/tools.js.map +1 -1
  84. package/lib/internal/template/app-layout/visual-refresh/trigger-button.d.ts.map +1 -1
  85. package/lib/internal/template/app-layout/visual-refresh/trigger-button.js.map +1 -1
  86. package/lib/internal/template/area-chart/chart-container.d.ts.map +1 -1
  87. package/lib/internal/template/area-chart/chart-container.js.map +1 -1
  88. package/lib/internal/template/area-chart/elements/area-chart-filter.d.ts.map +1 -1
  89. package/lib/internal/template/area-chart/elements/area-chart-filter.js.map +1 -1
  90. package/lib/internal/template/area-chart/elements/area-chart-legend.d.ts.map +1 -1
  91. package/lib/internal/template/area-chart/elements/area-chart-legend.js.map +1 -1
  92. package/lib/internal/template/area-chart/elements/area-series.d.ts.map +1 -1
  93. package/lib/internal/template/area-chart/elements/area-series.js.map +1 -1
  94. package/lib/internal/template/area-chart/elements/chart-popover.d.ts.map +1 -1
  95. package/lib/internal/template/area-chart/elements/chart-popover.js.map +1 -1
  96. package/lib/internal/template/area-chart/elements/data-series.d.ts.map +1 -1
  97. package/lib/internal/template/area-chart/elements/data-series.js.map +1 -1
  98. package/lib/internal/template/area-chart/elements/highlighted-point.d.ts.map +1 -1
  99. package/lib/internal/template/area-chart/elements/highlighted-point.js.map +1 -1
  100. package/lib/internal/template/area-chart/elements/threshold-series.d.ts.map +1 -1
  101. package/lib/internal/template/area-chart/elements/threshold-series.js.map +1 -1
  102. package/lib/internal/template/area-chart/elements/use-highlight-details.d.ts.map +1 -1
  103. package/lib/internal/template/area-chart/elements/use-highlight-details.js.map +1 -1
  104. package/lib/internal/template/area-chart/elements/vertical-marker.d.ts.map +1 -1
  105. package/lib/internal/template/area-chart/elements/vertical-marker.js.map +1 -1
  106. package/lib/internal/template/area-chart/index.d.ts.map +1 -1
  107. package/lib/internal/template/area-chart/index.js.map +1 -1
  108. package/lib/internal/template/area-chart/interfaces.d.ts.map +1 -1
  109. package/lib/internal/template/area-chart/interfaces.js.map +1 -1
  110. package/lib/internal/template/area-chart/internal.d.ts.map +1 -1
  111. package/lib/internal/template/area-chart/internal.js.map +1 -1
  112. package/lib/internal/template/area-chart/model/async-store.d.ts.map +1 -1
  113. package/lib/internal/template/area-chart/model/async-store.js.map +1 -1
  114. package/lib/internal/template/area-chart/model/compute-chart-props.d.ts.map +1 -1
  115. package/lib/internal/template/area-chart/model/compute-chart-props.js.map +1 -1
  116. package/lib/internal/template/area-chart/model/create-series-decorator.d.ts.map +1 -1
  117. package/lib/internal/template/area-chart/model/create-series-decorator.js.map +1 -1
  118. package/lib/internal/template/area-chart/model/index.d.ts.map +1 -1
  119. package/lib/internal/template/area-chart/model/index.js.map +1 -1
  120. package/lib/internal/template/area-chart/model/interactions-store.d.ts.map +1 -1
  121. package/lib/internal/template/area-chart/model/interactions-store.js.map +1 -1
  122. package/lib/internal/template/area-chart/model/use-chart-model.d.ts.map +1 -1
  123. package/lib/internal/template/area-chart/model/use-chart-model.js.map +1 -1
  124. package/lib/internal/template/area-chart/model/use-filter-props.d.ts.map +1 -1
  125. package/lib/internal/template/area-chart/model/use-filter-props.js.map +1 -1
  126. package/lib/internal/template/area-chart/model/use-highlight-props.d.ts.map +1 -1
  127. package/lib/internal/template/area-chart/model/use-highlight-props.js.map +1 -1
  128. package/lib/internal/template/area-chart/model/utils.d.ts.map +1 -1
  129. package/lib/internal/template/area-chart/model/utils.js.map +1 -1
  130. package/lib/internal/template/attribute-editor/additional-info.d.ts.map +1 -1
  131. package/lib/internal/template/attribute-editor/additional-info.js.map +1 -1
  132. package/lib/internal/template/attribute-editor/index.d.ts.map +1 -1
  133. package/lib/internal/template/attribute-editor/index.js.map +1 -1
  134. package/lib/internal/template/attribute-editor/interfaces.d.ts +7 -0
  135. package/lib/internal/template/attribute-editor/interfaces.d.ts.map +1 -1
  136. package/lib/internal/template/attribute-editor/interfaces.js.map +1 -1
  137. package/lib/internal/template/attribute-editor/internal.d.ts.map +1 -1
  138. package/lib/internal/template/attribute-editor/internal.js +6 -1
  139. package/lib/internal/template/attribute-editor/internal.js.map +1 -1
  140. package/lib/internal/template/attribute-editor/row.d.ts.map +1 -1
  141. package/lib/internal/template/attribute-editor/row.js.map +1 -1
  142. package/lib/internal/template/autosuggest/autosuggest-option.d.ts.map +1 -1
  143. package/lib/internal/template/autosuggest/autosuggest-option.js.map +1 -1
  144. package/lib/internal/template/autosuggest/index.d.ts.map +1 -1
  145. package/lib/internal/template/autosuggest/index.js.map +1 -1
  146. package/lib/internal/template/autosuggest/interfaces.d.ts +2 -2
  147. package/lib/internal/template/autosuggest/interfaces.d.ts.map +1 -1
  148. package/lib/internal/template/autosuggest/interfaces.js.map +1 -1
  149. package/lib/internal/template/autosuggest/internal.d.ts.map +1 -1
  150. package/lib/internal/template/autosuggest/internal.js.map +1 -1
  151. package/lib/internal/template/autosuggest/load-more-controller.d.ts.map +1 -1
  152. package/lib/internal/template/autosuggest/load-more-controller.js.map +1 -1
  153. package/lib/internal/template/autosuggest/options-controller.d.ts.map +1 -1
  154. package/lib/internal/template/autosuggest/options-controller.js.map +1 -1
  155. package/lib/internal/template/autosuggest/options-list.d.ts.map +1 -1
  156. package/lib/internal/template/autosuggest/options-list.js.map +1 -1
  157. package/lib/internal/template/autosuggest/plain-list.d.ts.map +1 -1
  158. package/lib/internal/template/autosuggest/plain-list.js.map +1 -1
  159. package/lib/internal/template/autosuggest/utils/utils.d.ts.map +1 -1
  160. package/lib/internal/template/autosuggest/utils/utils.js.map +1 -1
  161. package/lib/internal/template/autosuggest/virtual-list.d.ts.map +1 -1
  162. package/lib/internal/template/autosuggest/virtual-list.js.map +1 -1
  163. package/lib/internal/template/badge/index.d.ts.map +1 -1
  164. package/lib/internal/template/badge/index.js.map +1 -1
  165. package/lib/internal/template/badge/interfaces.d.ts.map +1 -1
  166. package/lib/internal/template/badge/interfaces.js.map +1 -1
  167. package/lib/internal/template/bar-chart/index.d.ts.map +1 -1
  168. package/lib/internal/template/bar-chart/index.js.map +1 -1
  169. package/lib/internal/template/bar-chart/interfaces.d.ts.map +1 -1
  170. package/lib/internal/template/bar-chart/interfaces.js.map +1 -1
  171. package/lib/internal/template/box/index.d.ts.map +1 -1
  172. package/lib/internal/template/box/index.js.map +1 -1
  173. package/lib/internal/template/box/interfaces.d.ts.map +1 -1
  174. package/lib/internal/template/box/interfaces.js.map +1 -1
  175. package/lib/internal/template/box/internal.d.ts.map +1 -1
  176. package/lib/internal/template/box/internal.js.map +1 -1
  177. package/lib/internal/template/breadcrumb-group/index.d.ts.map +1 -1
  178. package/lib/internal/template/breadcrumb-group/index.js.map +1 -1
  179. package/lib/internal/template/breadcrumb-group/interfaces.d.ts.map +1 -1
  180. package/lib/internal/template/breadcrumb-group/interfaces.js.map +1 -1
  181. package/lib/internal/template/breadcrumb-group/internal.d.ts.map +1 -1
  182. package/lib/internal/template/breadcrumb-group/internal.js.map +1 -1
  183. package/lib/internal/template/breadcrumb-group/item/item.d.ts.map +1 -1
  184. package/lib/internal/template/breadcrumb-group/item/item.js.map +1 -1
  185. package/lib/internal/template/button/icon-helper.d.ts.map +1 -1
  186. package/lib/internal/template/button/icon-helper.js.map +1 -1
  187. package/lib/internal/template/button/index.d.ts.map +1 -1
  188. package/lib/internal/template/button/index.js.map +1 -1
  189. package/lib/internal/template/button/interfaces.d.ts.map +1 -1
  190. package/lib/internal/template/button/interfaces.js.map +1 -1
  191. package/lib/internal/template/button/internal.d.ts.map +1 -1
  192. package/lib/internal/template/button/internal.js.map +1 -1
  193. package/lib/internal/template/button-dropdown/category-elements/category-element.d.ts.map +1 -1
  194. package/lib/internal/template/button-dropdown/category-elements/category-element.js.map +1 -1
  195. package/lib/internal/template/button-dropdown/category-elements/expandable-category-element.d.ts.map +1 -1
  196. package/lib/internal/template/button-dropdown/category-elements/expandable-category-element.js.map +1 -1
  197. package/lib/internal/template/button-dropdown/category-elements/mobile-expandable-category-element.d.ts.map +1 -1
  198. package/lib/internal/template/button-dropdown/category-elements/mobile-expandable-category-element.js.map +1 -1
  199. package/lib/internal/template/button-dropdown/index.d.ts.map +1 -1
  200. package/lib/internal/template/button-dropdown/index.js.map +1 -1
  201. package/lib/internal/template/button-dropdown/interfaces.d.ts.map +1 -1
  202. package/lib/internal/template/button-dropdown/interfaces.js.map +1 -1
  203. package/lib/internal/template/button-dropdown/internal.d.ts.map +1 -1
  204. package/lib/internal/template/button-dropdown/internal.js.map +1 -1
  205. package/lib/internal/template/button-dropdown/item-element/index.d.ts.map +1 -1
  206. package/lib/internal/template/button-dropdown/item-element/index.js.map +1 -1
  207. package/lib/internal/template/button-dropdown/items-list.d.ts.map +1 -1
  208. package/lib/internal/template/button-dropdown/items-list.js.map +1 -1
  209. package/lib/internal/template/button-dropdown/mobile-expandable-group/mobile-expandable-group.d.ts.map +1 -1
  210. package/lib/internal/template/button-dropdown/mobile-expandable-group/mobile-expandable-group.js.map +1 -1
  211. package/lib/internal/template/button-dropdown/tooltip.d.ts.map +1 -1
  212. package/lib/internal/template/button-dropdown/tooltip.js.map +1 -1
  213. package/lib/internal/template/button-dropdown/utils/create-items-tree.d.ts.map +1 -1
  214. package/lib/internal/template/button-dropdown/utils/create-items-tree.js.map +1 -1
  215. package/lib/internal/template/button-dropdown/utils/menu-item.d.ts.map +1 -1
  216. package/lib/internal/template/button-dropdown/utils/menu-item.js.map +1 -1
  217. package/lib/internal/template/button-dropdown/utils/move-highlight.d.ts.map +1 -1
  218. package/lib/internal/template/button-dropdown/utils/move-highlight.js.map +1 -1
  219. package/lib/internal/template/button-dropdown/utils/use-button-dropdown.d.ts.map +1 -1
  220. package/lib/internal/template/button-dropdown/utils/use-button-dropdown.js.map +1 -1
  221. package/lib/internal/template/button-dropdown/utils/use-hidden-description.d.ts.map +1 -1
  222. package/lib/internal/template/button-dropdown/utils/use-hidden-description.js.map +1 -1
  223. package/lib/internal/template/button-dropdown/utils/use-highlighted-menu.d.ts.map +1 -1
  224. package/lib/internal/template/button-dropdown/utils/use-highlighted-menu.js.map +1 -1
  225. package/lib/internal/template/button-dropdown/utils/utils.d.ts.map +1 -1
  226. package/lib/internal/template/button-dropdown/utils/utils.js.map +1 -1
  227. package/lib/internal/template/calendar/grid/index.d.ts.map +1 -1
  228. package/lib/internal/template/calendar/grid/index.js.map +1 -1
  229. package/lib/internal/template/calendar/header/header-button.d.ts.map +1 -1
  230. package/lib/internal/template/calendar/header/header-button.js.map +1 -1
  231. package/lib/internal/template/calendar/header/index.d.ts.map +1 -1
  232. package/lib/internal/template/calendar/header/index.js.map +1 -1
  233. package/lib/internal/template/calendar/index.d.ts.map +1 -1
  234. package/lib/internal/template/calendar/index.js.map +1 -1
  235. package/lib/internal/template/calendar/interfaces.d.ts.map +1 -1
  236. package/lib/internal/template/calendar/interfaces.js.map +1 -1
  237. package/lib/internal/template/calendar/internal.d.ts.map +1 -1
  238. package/lib/internal/template/calendar/internal.js.map +1 -1
  239. package/lib/internal/template/calendar/utils/intl.d.ts.map +1 -1
  240. package/lib/internal/template/calendar/utils/intl.js.map +1 -1
  241. package/lib/internal/template/calendar/utils/navigation.d.ts.map +1 -1
  242. package/lib/internal/template/calendar/utils/navigation.js.map +1 -1
  243. package/lib/internal/template/cards/cards-layout-helper.d.ts.map +1 -1
  244. package/lib/internal/template/cards/cards-layout-helper.js.map +1 -1
  245. package/lib/internal/template/cards/index.d.ts.map +1 -1
  246. package/lib/internal/template/cards/index.js.map +1 -1
  247. package/lib/internal/template/cards/interfaces.d.ts.map +1 -1
  248. package/lib/internal/template/cards/interfaces.js.map +1 -1
  249. package/lib/internal/template/checkbox/base-checkbox.d.ts.map +1 -1
  250. package/lib/internal/template/checkbox/base-checkbox.js.map +1 -1
  251. package/lib/internal/template/checkbox/index.d.ts.map +1 -1
  252. package/lib/internal/template/checkbox/index.js.map +1 -1
  253. package/lib/internal/template/checkbox/interfaces.d.ts.map +1 -1
  254. package/lib/internal/template/checkbox/interfaces.js.map +1 -1
  255. package/lib/internal/template/checkbox/internal.d.ts.map +1 -1
  256. package/lib/internal/template/checkbox/internal.js.map +1 -1
  257. package/lib/internal/template/code-editor/ace-modes.d.ts.map +1 -1
  258. package/lib/internal/template/code-editor/ace-modes.js.map +1 -1
  259. package/lib/internal/template/code-editor/ace-themes.d.ts.map +1 -1
  260. package/lib/internal/template/code-editor/ace-themes.js.map +1 -1
  261. package/lib/internal/template/code-editor/error-screen.d.ts.map +1 -1
  262. package/lib/internal/template/code-editor/error-screen.js.map +1 -1
  263. package/lib/internal/template/code-editor/index.d.ts.map +1 -1
  264. package/lib/internal/template/code-editor/index.js.map +1 -1
  265. package/lib/internal/template/code-editor/interfaces.d.ts.map +1 -1
  266. package/lib/internal/template/code-editor/interfaces.js.map +1 -1
  267. package/lib/internal/template/code-editor/listeners.d.ts.map +1 -1
  268. package/lib/internal/template/code-editor/listeners.js.map +1 -1
  269. package/lib/internal/template/code-editor/loading-screen.d.ts.map +1 -1
  270. package/lib/internal/template/code-editor/loading-screen.js.map +1 -1
  271. package/lib/internal/template/code-editor/pane.d.ts.map +1 -1
  272. package/lib/internal/template/code-editor/pane.js.map +1 -1
  273. package/lib/internal/template/code-editor/preferences-modal.d.ts.map +1 -1
  274. package/lib/internal/template/code-editor/preferences-modal.js.map +1 -1
  275. package/lib/internal/template/code-editor/resizable-box/index.d.ts.map +1 -1
  276. package/lib/internal/template/code-editor/resizable-box/index.js.map +1 -1
  277. package/lib/internal/template/code-editor/setup-editor.d.ts.map +1 -1
  278. package/lib/internal/template/code-editor/setup-editor.js.map +1 -1
  279. package/lib/internal/template/code-editor/status-bar.d.ts.map +1 -1
  280. package/lib/internal/template/code-editor/status-bar.js.map +1 -1
  281. package/lib/internal/template/code-editor/tab-button.d.ts.map +1 -1
  282. package/lib/internal/template/code-editor/tab-button.js.map +1 -1
  283. package/lib/internal/template/code-editor/util.d.ts.map +1 -1
  284. package/lib/internal/template/code-editor/util.js.map +1 -1
  285. package/lib/internal/template/collection-preferences/index.d.ts.map +1 -1
  286. package/lib/internal/template/collection-preferences/index.js.map +1 -1
  287. package/lib/internal/template/collection-preferences/interfaces.d.ts.map +1 -1
  288. package/lib/internal/template/collection-preferences/interfaces.js.map +1 -1
  289. package/lib/internal/template/collection-preferences/utils.d.ts.map +1 -1
  290. package/lib/internal/template/collection-preferences/utils.js.map +1 -1
  291. package/lib/internal/template/collection-preferences/visible-content.d.ts.map +1 -1
  292. package/lib/internal/template/collection-preferences/visible-content.js.map +1 -1
  293. package/lib/internal/template/column-layout/index.d.ts.map +1 -1
  294. package/lib/internal/template/column-layout/index.js.map +1 -1
  295. package/lib/internal/template/column-layout/interfaces.d.ts.map +1 -1
  296. package/lib/internal/template/column-layout/interfaces.js.map +1 -1
  297. package/lib/internal/template/column-layout/internal.d.ts.map +1 -1
  298. package/lib/internal/template/column-layout/internal.js.map +1 -1
  299. package/lib/internal/template/column-layout/util.d.ts.map +1 -1
  300. package/lib/internal/template/column-layout/util.js.map +1 -1
  301. package/lib/internal/template/container/index.d.ts.map +1 -1
  302. package/lib/internal/template/container/index.js.map +1 -1
  303. package/lib/internal/template/container/interfaces.d.ts.map +1 -1
  304. package/lib/internal/template/container/interfaces.js.map +1 -1
  305. package/lib/internal/template/container/internal.d.ts.map +1 -1
  306. package/lib/internal/template/container/internal.js.map +1 -1
  307. package/lib/internal/template/container/use-sticky-header.d.ts.map +1 -1
  308. package/lib/internal/template/container/use-sticky-header.js.map +1 -1
  309. package/lib/internal/template/content-layout/index.d.ts.map +1 -1
  310. package/lib/internal/template/content-layout/index.js.map +1 -1
  311. package/lib/internal/template/content-layout/interfaces.d.ts.map +1 -1
  312. package/lib/internal/template/content-layout/interfaces.js.map +1 -1
  313. package/lib/internal/template/content-layout/internal.d.ts.map +1 -1
  314. package/lib/internal/template/content-layout/internal.js.map +1 -1
  315. package/lib/internal/template/contexts/form-field.d.ts.map +1 -1
  316. package/lib/internal/template/contexts/form-field.js.map +1 -1
  317. package/lib/internal/template/date-input/index.d.ts.map +1 -1
  318. package/lib/internal/template/date-input/index.js.map +1 -1
  319. package/lib/internal/template/date-input/interfaces.d.ts.map +1 -1
  320. package/lib/internal/template/date-input/interfaces.js.map +1 -1
  321. package/lib/internal/template/date-input/internal.d.ts.map +1 -1
  322. package/lib/internal/template/date-input/internal.js.map +1 -1
  323. package/lib/internal/template/date-picker/index.d.ts.map +1 -1
  324. package/lib/internal/template/date-picker/index.js.map +1 -1
  325. package/lib/internal/template/date-picker/interfaces.d.ts.map +1 -1
  326. package/lib/internal/template/date-picker/interfaces.js.map +1 -1
  327. package/lib/internal/template/date-range-picker/calendar/grids/grid.d.ts.map +1 -1
  328. package/lib/internal/template/date-range-picker/calendar/grids/grid.js.map +1 -1
  329. package/lib/internal/template/date-range-picker/calendar/grids/index.d.ts.map +1 -1
  330. package/lib/internal/template/date-range-picker/calendar/grids/index.js.map +1 -1
  331. package/lib/internal/template/date-range-picker/calendar/header/header-button.d.ts.map +1 -1
  332. package/lib/internal/template/date-range-picker/calendar/header/header-button.js.map +1 -1
  333. package/lib/internal/template/date-range-picker/calendar/header/index.d.ts.map +1 -1
  334. package/lib/internal/template/date-range-picker/calendar/header/index.js.map +1 -1
  335. package/lib/internal/template/date-range-picker/calendar/index.d.ts.map +1 -1
  336. package/lib/internal/template/date-range-picker/calendar/index.js.map +1 -1
  337. package/lib/internal/template/date-range-picker/calendar/range-inputs.d.ts.map +1 -1
  338. package/lib/internal/template/date-range-picker/calendar/range-inputs.js.map +1 -1
  339. package/lib/internal/template/date-range-picker/calendar/utils.d.ts.map +1 -1
  340. package/lib/internal/template/date-range-picker/calendar/utils.js.map +1 -1
  341. package/lib/internal/template/date-range-picker/dropdown.d.ts.map +1 -1
  342. package/lib/internal/template/date-range-picker/dropdown.js.map +1 -1
  343. package/lib/internal/template/date-range-picker/index.d.ts.map +1 -1
  344. package/lib/internal/template/date-range-picker/index.js.map +1 -1
  345. package/lib/internal/template/date-range-picker/interfaces.d.ts.map +1 -1
  346. package/lib/internal/template/date-range-picker/interfaces.js.map +1 -1
  347. package/lib/internal/template/date-range-picker/mode-switcher.d.ts.map +1 -1
  348. package/lib/internal/template/date-range-picker/mode-switcher.js.map +1 -1
  349. package/lib/internal/template/date-range-picker/relative-range/index.d.ts.map +1 -1
  350. package/lib/internal/template/date-range-picker/relative-range/index.js.map +1 -1
  351. package/lib/internal/template/date-range-picker/time-offset.d.ts.map +1 -1
  352. package/lib/internal/template/date-range-picker/time-offset.js.map +1 -1
  353. package/lib/internal/template/date-range-picker/utils.d.ts.map +1 -1
  354. package/lib/internal/template/date-range-picker/utils.js.map +1 -1
  355. package/lib/internal/template/expandable-section/expandable-section-container.d.ts.map +1 -1
  356. package/lib/internal/template/expandable-section/expandable-section-container.js.map +1 -1
  357. package/lib/internal/template/expandable-section/expandable-section-header.d.ts.map +1 -1
  358. package/lib/internal/template/expandable-section/expandable-section-header.js.map +1 -1
  359. package/lib/internal/template/expandable-section/index.d.ts.map +1 -1
  360. package/lib/internal/template/expandable-section/index.js.map +1 -1
  361. package/lib/internal/template/expandable-section/interfaces.d.ts.map +1 -1
  362. package/lib/internal/template/expandable-section/interfaces.js.map +1 -1
  363. package/lib/internal/template/expandable-section/internal.d.ts.map +1 -1
  364. package/lib/internal/template/expandable-section/internal.js.map +1 -1
  365. package/lib/internal/template/flashbar/collapsible-flashbar.d.ts.map +1 -1
  366. package/lib/internal/template/flashbar/collapsible-flashbar.js.map +1 -1
  367. package/lib/internal/template/flashbar/common.d.ts.map +1 -1
  368. package/lib/internal/template/flashbar/common.js.map +1 -1
  369. package/lib/internal/template/flashbar/constant.d.ts.map +1 -1
  370. package/lib/internal/template/flashbar/constant.js.map +1 -1
  371. package/lib/internal/template/flashbar/flash.d.ts.map +1 -1
  372. package/lib/internal/template/flashbar/flash.js.map +1 -1
  373. package/lib/internal/template/flashbar/index.d.ts.map +1 -1
  374. package/lib/internal/template/flashbar/index.js.map +1 -1
  375. package/lib/internal/template/flashbar/interfaces.d.ts.map +1 -1
  376. package/lib/internal/template/flashbar/interfaces.js.map +1 -1
  377. package/lib/internal/template/flashbar/internal/analytics.d.ts.map +1 -1
  378. package/lib/internal/template/flashbar/internal/analytics.js.map +1 -1
  379. package/lib/internal/template/flashbar/non-collapsible-flashbar.d.ts.map +1 -1
  380. package/lib/internal/template/flashbar/non-collapsible-flashbar.js.map +1 -1
  381. package/lib/internal/template/flashbar/utils.d.ts.map +1 -1
  382. package/lib/internal/template/flashbar/utils.js.map +1 -1
  383. package/lib/internal/template/form/index.d.ts.map +1 -1
  384. package/lib/internal/template/form/index.js.map +1 -1
  385. package/lib/internal/template/form/interfaces.d.ts.map +1 -1
  386. package/lib/internal/template/form/interfaces.js.map +1 -1
  387. package/lib/internal/template/form/internal.d.ts.map +1 -1
  388. package/lib/internal/template/form/internal.js.map +1 -1
  389. package/lib/internal/template/form-field/index.d.ts.map +1 -1
  390. package/lib/internal/template/form-field/index.js.map +1 -1
  391. package/lib/internal/template/form-field/interfaces.d.ts +0 -6
  392. package/lib/internal/template/form-field/interfaces.d.ts.map +1 -1
  393. package/lib/internal/template/form-field/interfaces.js.map +1 -1
  394. package/lib/internal/template/form-field/internal.d.ts +1 -1
  395. package/lib/internal/template/form-field/internal.d.ts.map +1 -1
  396. package/lib/internal/template/form-field/internal.js +1 -2
  397. package/lib/internal/template/form-field/internal.js.map +1 -1
  398. package/lib/internal/template/form-field/util.d.ts.map +1 -1
  399. package/lib/internal/template/form-field/util.js.map +1 -1
  400. package/lib/internal/template/grid/index.d.ts.map +1 -1
  401. package/lib/internal/template/grid/index.js.map +1 -1
  402. package/lib/internal/template/grid/interfaces.d.ts.map +1 -1
  403. package/lib/internal/template/grid/interfaces.js.map +1 -1
  404. package/lib/internal/template/grid/internal.d.ts.map +1 -1
  405. package/lib/internal/template/grid/internal.js.map +1 -1
  406. package/lib/internal/template/header/index.d.ts.map +1 -1
  407. package/lib/internal/template/header/index.js.map +1 -1
  408. package/lib/internal/template/header/interfaces.d.ts.map +1 -1
  409. package/lib/internal/template/header/interfaces.js.map +1 -1
  410. package/lib/internal/template/header/internal.d.ts.map +1 -1
  411. package/lib/internal/template/header/internal.js.map +1 -1
  412. package/lib/internal/template/help-panel/index.d.ts.map +1 -1
  413. package/lib/internal/template/help-panel/index.js.map +1 -1
  414. package/lib/internal/template/help-panel/interfaces.d.ts.map +1 -1
  415. package/lib/internal/template/help-panel/interfaces.js.map +1 -1
  416. package/lib/internal/template/hotspot/index.d.ts.map +1 -1
  417. package/lib/internal/template/hotspot/index.js.map +1 -1
  418. package/lib/internal/template/hotspot/interfaces.d.ts.map +1 -1
  419. package/lib/internal/template/hotspot/interfaces.js.map +1 -1
  420. package/lib/internal/template/icon/index.d.ts.map +1 -1
  421. package/lib/internal/template/icon/index.js.map +1 -1
  422. package/lib/internal/template/icon/interfaces.d.ts.map +1 -1
  423. package/lib/internal/template/icon/interfaces.js.map +1 -1
  424. package/lib/internal/template/icon/internal.d.ts.map +1 -1
  425. package/lib/internal/template/icon/internal.js.map +1 -1
  426. package/lib/internal/template/index.d.ts.map +1 -1
  427. package/lib/internal/template/index.js.map +1 -1
  428. package/lib/internal/template/input/index.d.ts.map +1 -1
  429. package/lib/internal/template/input/index.js.map +1 -1
  430. package/lib/internal/template/input/interfaces.d.ts +7 -5
  431. package/lib/internal/template/input/interfaces.d.ts.map +1 -1
  432. package/lib/internal/template/input/interfaces.js.map +1 -1
  433. package/lib/internal/template/input/internal.d.ts.map +1 -1
  434. package/lib/internal/template/input/internal.js +4 -16
  435. package/lib/internal/template/input/internal.js.map +1 -1
  436. package/lib/internal/template/input/utils.d.ts.map +1 -1
  437. package/lib/internal/template/input/utils.js.map +1 -1
  438. package/lib/internal/template/interfaces.d.ts.map +1 -1
  439. package/lib/internal/template/interfaces.js.map +1 -1
  440. package/lib/internal/template/internal/animate.d.ts.map +1 -1
  441. package/lib/internal/template/internal/animate.js.map +1 -1
  442. package/lib/internal/template/internal/base-component/index.d.ts.map +1 -1
  443. package/lib/internal/template/internal/base-component/index.js.map +1 -1
  444. package/lib/internal/template/internal/breakpoints.d.ts.map +1 -1
  445. package/lib/internal/template/internal/breakpoints.js.map +1 -1
  446. package/lib/internal/template/internal/components/abstract-switch/index.d.ts.map +1 -1
  447. package/lib/internal/template/internal/components/abstract-switch/index.js.map +1 -1
  448. package/lib/internal/template/internal/components/autosuggest-input/index.d.ts +2 -3
  449. package/lib/internal/template/internal/components/autosuggest-input/index.d.ts.map +1 -1
  450. package/lib/internal/template/internal/components/autosuggest-input/index.js.map +1 -1
  451. package/lib/internal/template/internal/components/button-trigger/index.d.ts.map +1 -1
  452. package/lib/internal/template/internal/components/button-trigger/index.js.map +1 -1
  453. package/lib/internal/template/internal/components/cartesian-chart/axis-label.d.ts.map +1 -1
  454. package/lib/internal/template/internal/components/cartesian-chart/axis-label.js.map +1 -1
  455. package/lib/internal/template/internal/components/cartesian-chart/bottom-labels.d.ts.map +1 -1
  456. package/lib/internal/template/internal/components/cartesian-chart/bottom-labels.js.map +1 -1
  457. package/lib/internal/template/internal/components/cartesian-chart/constants.d.ts.map +1 -1
  458. package/lib/internal/template/internal/components/cartesian-chart/constants.js.map +1 -1
  459. package/lib/internal/template/internal/components/cartesian-chart/emphasized-baseline.d.ts.map +1 -1
  460. package/lib/internal/template/internal/components/cartesian-chart/emphasized-baseline.js.map +1 -1
  461. package/lib/internal/template/internal/components/cartesian-chart/highlighted-point.d.ts.map +1 -1
  462. package/lib/internal/template/internal/components/cartesian-chart/highlighted-point.js.map +1 -1
  463. package/lib/internal/template/internal/components/cartesian-chart/interfaces.d.ts.map +1 -1
  464. package/lib/internal/template/internal/components/cartesian-chart/interfaces.js.map +1 -1
  465. package/lib/internal/template/internal/components/cartesian-chart/label-utils.d.ts.map +1 -1
  466. package/lib/internal/template/internal/components/cartesian-chart/label-utils.js.map +1 -1
  467. package/lib/internal/template/internal/components/cartesian-chart/labels-measure.d.ts.map +1 -1
  468. package/lib/internal/template/internal/components/cartesian-chart/labels-measure.js.map +1 -1
  469. package/lib/internal/template/internal/components/cartesian-chart/left-labels.d.ts.map +1 -1
  470. package/lib/internal/template/internal/components/cartesian-chart/left-labels.js.map +1 -1
  471. package/lib/internal/template/internal/components/cartesian-chart/scales.d.ts.map +1 -1
  472. package/lib/internal/template/internal/components/cartesian-chart/scales.js.map +1 -1
  473. package/lib/internal/template/internal/components/cartesian-chart/ticks.d.ts.map +1 -1
  474. package/lib/internal/template/internal/components/cartesian-chart/ticks.js.map +1 -1
  475. package/lib/internal/template/internal/components/cartesian-chart/vertical-grid-lines.d.ts.map +1 -1
  476. package/lib/internal/template/internal/components/cartesian-chart/vertical-grid-lines.js.map +1 -1
  477. package/lib/internal/template/internal/components/cartesian-chart/vertical-marker.d.ts.map +1 -1
  478. package/lib/internal/template/internal/components/cartesian-chart/vertical-marker.js.map +1 -1
  479. package/lib/internal/template/internal/components/chart-filter/index.d.ts.map +1 -1
  480. package/lib/internal/template/internal/components/chart-filter/index.js.map +1 -1
  481. package/lib/internal/template/internal/components/chart-legend/index.d.ts.map +1 -1
  482. package/lib/internal/template/internal/components/chart-legend/index.js.map +1 -1
  483. package/lib/internal/template/internal/components/chart-plot/application-controller.d.ts.map +1 -1
  484. package/lib/internal/template/internal/components/chart-plot/application-controller.js.map +1 -1
  485. package/lib/internal/template/internal/components/chart-plot/focus-outline.d.ts.map +1 -1
  486. package/lib/internal/template/internal/components/chart-plot/focus-outline.js.map +1 -1
  487. package/lib/internal/template/internal/components/chart-plot/index.d.ts.map +1 -1
  488. package/lib/internal/template/internal/components/chart-plot/index.js.map +1 -1
  489. package/lib/internal/template/internal/components/chart-plot/interfaces.d.ts.map +1 -1
  490. package/lib/internal/template/internal/components/chart-plot/interfaces.js.map +1 -1
  491. package/lib/internal/template/internal/components/chart-popover/index.d.ts.map +1 -1
  492. package/lib/internal/template/internal/components/chart-popover/index.js.map +1 -1
  493. package/lib/internal/template/internal/components/chart-series-details/index.d.ts.map +1 -1
  494. package/lib/internal/template/internal/components/chart-series-details/index.js.map +1 -1
  495. package/lib/internal/template/internal/components/chart-series-marker/index.d.ts.map +1 -1
  496. package/lib/internal/template/internal/components/chart-series-marker/index.js.map +1 -1
  497. package/lib/internal/template/internal/components/chart-status-container/index.d.ts.map +1 -1
  498. package/lib/internal/template/internal/components/chart-status-container/index.js.map +1 -1
  499. package/lib/internal/template/internal/components/checkbox-icon/index.d.ts.map +1 -1
  500. package/lib/internal/template/internal/components/checkbox-icon/index.js.map +1 -1
  501. package/lib/internal/template/internal/components/dark-ribbon/index.d.ts.map +1 -1
  502. package/lib/internal/template/internal/components/dark-ribbon/index.js.map +1 -1
  503. package/lib/internal/template/internal/components/dropdown/context.d.ts.map +1 -1
  504. package/lib/internal/template/internal/components/dropdown/context.js.map +1 -1
  505. package/lib/internal/template/internal/components/dropdown/dropdown-fit-handler.d.ts.map +1 -1
  506. package/lib/internal/template/internal/components/dropdown/dropdown-fit-handler.js.map +1 -1
  507. package/lib/internal/template/internal/components/dropdown/index.d.ts.map +1 -1
  508. package/lib/internal/template/internal/components/dropdown/index.js.map +1 -1
  509. package/lib/internal/template/internal/components/dropdown/interfaces.d.ts.map +1 -1
  510. package/lib/internal/template/internal/components/dropdown/interfaces.js.map +1 -1
  511. package/lib/internal/template/internal/components/dropdown-footer/index.d.ts.map +1 -1
  512. package/lib/internal/template/internal/components/dropdown-footer/index.js.map +1 -1
  513. package/lib/internal/template/internal/components/dropdown-status/index.d.ts.map +1 -1
  514. package/lib/internal/template/internal/components/dropdown-status/index.js.map +1 -1
  515. package/lib/internal/template/internal/components/dropdown-status/interfaces.d.ts.map +1 -1
  516. package/lib/internal/template/internal/components/dropdown-status/interfaces.js.map +1 -1
  517. package/lib/internal/template/internal/components/filtering-token/index.d.ts.map +1 -1
  518. package/lib/internal/template/internal/components/filtering-token/index.js.map +1 -1
  519. package/lib/internal/template/internal/components/focus-lock/index.d.ts.map +1 -1
  520. package/lib/internal/template/internal/components/focus-lock/index.js.map +1 -1
  521. package/lib/internal/template/internal/components/focus-lock/utils.d.ts +2 -2
  522. package/lib/internal/template/internal/components/focus-lock/utils.d.ts.map +1 -1
  523. package/lib/internal/template/internal/components/focus-lock/utils.js.map +1 -1
  524. package/lib/internal/template/internal/components/interfaces.d.ts.map +1 -1
  525. package/lib/internal/template/internal/components/interfaces.js.map +1 -1
  526. package/lib/internal/template/internal/components/live-region/index.d.ts.map +1 -1
  527. package/lib/internal/template/internal/components/live-region/index.js.map +1 -1
  528. package/lib/internal/template/internal/components/masked-input/index.d.ts.map +1 -1
  529. package/lib/internal/template/internal/components/masked-input/index.js.map +1 -1
  530. package/lib/internal/template/internal/components/masked-input/interfaces.d.ts.map +1 -1
  531. package/lib/internal/template/internal/components/masked-input/interfaces.js.map +1 -1
  532. package/lib/internal/template/internal/components/masked-input/keyboard-handler.d.ts.map +1 -1
  533. package/lib/internal/template/internal/components/masked-input/keyboard-handler.js.map +1 -1
  534. package/lib/internal/template/internal/components/masked-input/use-mask.d.ts.map +1 -1
  535. package/lib/internal/template/internal/components/masked-input/use-mask.js.map +1 -1
  536. package/lib/internal/template/internal/components/masked-input/utils/keys.d.ts.map +1 -1
  537. package/lib/internal/template/internal/components/masked-input/utils/keys.js.map +1 -1
  538. package/lib/internal/template/internal/components/masked-input/utils/mask-format.d.ts.map +1 -1
  539. package/lib/internal/template/internal/components/masked-input/utils/mask-format.js.map +1 -1
  540. package/lib/internal/template/internal/components/masked-input/utils/strings.d.ts.map +1 -1
  541. package/lib/internal/template/internal/components/masked-input/utils/strings.js.map +1 -1
  542. package/lib/internal/template/internal/components/menu-dropdown/index.d.ts.map +1 -1
  543. package/lib/internal/template/internal/components/menu-dropdown/index.js.map +1 -1
  544. package/lib/internal/template/internal/components/menu-dropdown/interfaces.d.ts.map +1 -1
  545. package/lib/internal/template/internal/components/menu-dropdown/interfaces.js.map +1 -1
  546. package/lib/internal/template/internal/components/option/highlight-match.d.ts.map +1 -1
  547. package/lib/internal/template/internal/components/option/highlight-match.js.map +1 -1
  548. package/lib/internal/template/internal/components/option/index.d.ts +1 -1
  549. package/lib/internal/template/internal/components/option/index.d.ts.map +1 -1
  550. package/lib/internal/template/internal/components/option/index.js +11 -2
  551. package/lib/internal/template/internal/components/option/index.js.map +1 -1
  552. package/lib/internal/template/internal/components/option/interfaces.d.ts +1 -0
  553. package/lib/internal/template/internal/components/option/interfaces.d.ts.map +1 -1
  554. package/lib/internal/template/internal/components/option/interfaces.js.map +1 -1
  555. package/lib/internal/template/internal/components/option/option-announcer.d.ts.map +1 -1
  556. package/lib/internal/template/internal/components/option/option-announcer.js.map +1 -1
  557. package/lib/internal/template/internal/components/option/option-parts.d.ts.map +1 -1
  558. package/lib/internal/template/internal/components/option/option-parts.js.map +1 -1
  559. package/lib/internal/template/internal/components/option/utils/filter-options.d.ts.map +1 -1
  560. package/lib/internal/template/internal/components/option/utils/filter-options.js.map +1 -1
  561. package/lib/internal/template/internal/components/option/utils/flatten-options.d.ts.map +1 -1
  562. package/lib/internal/template/internal/components/option/utils/flatten-options.js.map +1 -1
  563. package/lib/internal/template/internal/components/option/utils/prepare-options.d.ts.map +1 -1
  564. package/lib/internal/template/internal/components/option/utils/prepare-options.js.map +1 -1
  565. package/lib/internal/template/internal/components/options-list/index.d.ts.map +1 -1
  566. package/lib/internal/template/internal/components/options-list/index.js.map +1 -1
  567. package/lib/internal/template/internal/components/options-list/utils/test-indexes.d.ts.map +1 -1
  568. package/lib/internal/template/internal/components/options-list/utils/test-indexes.js.map +1 -1
  569. package/lib/internal/template/internal/components/options-list/utils/use-highlight-option.d.ts.map +1 -1
  570. package/lib/internal/template/internal/components/options-list/utils/use-highlight-option.js.map +1 -1
  571. package/lib/internal/template/internal/components/options-list/utils/use-ids.d.ts.map +1 -1
  572. package/lib/internal/template/internal/components/options-list/utils/use-ids.js.map +1 -1
  573. package/lib/internal/template/internal/components/options-list/utils/use-keyboard.d.ts.map +1 -1
  574. package/lib/internal/template/internal/components/options-list/utils/use-keyboard.js.map +1 -1
  575. package/lib/internal/template/internal/components/options-list/utils/use-open-state.d.ts.map +1 -1
  576. package/lib/internal/template/internal/components/options-list/utils/use-open-state.js.map +1 -1
  577. package/lib/internal/template/internal/components/portal/index.d.ts.map +1 -1
  578. package/lib/internal/template/internal/components/portal/index.js.map +1 -1
  579. package/lib/internal/template/internal/components/screenreader-only/index.d.ts.map +1 -1
  580. package/lib/internal/template/internal/components/screenreader-only/index.js.map +1 -1
  581. package/lib/internal/template/internal/components/selectable-item/index.d.ts.map +1 -1
  582. package/lib/internal/template/internal/components/selectable-item/index.js.map +1 -1
  583. package/lib/internal/template/internal/components/tab-trap/index.d.ts.map +1 -1
  584. package/lib/internal/template/internal/components/tab-trap/index.js.map +1 -1
  585. package/lib/internal/template/internal/components/token-list/index.d.ts +4 -0
  586. package/lib/internal/template/internal/components/token-list/index.d.ts.map +1 -0
  587. package/lib/internal/template/internal/components/token-list/index.js +31 -0
  588. package/lib/internal/template/internal/components/token-list/index.js.map +1 -0
  589. package/lib/internal/template/internal/components/token-list/interfaces.d.ts +16 -0
  590. package/lib/internal/template/internal/components/token-list/interfaces.d.ts.map +1 -0
  591. package/lib/internal/template/internal/components/token-list/interfaces.js +4 -0
  592. package/lib/internal/template/internal/components/token-list/interfaces.js.map +1 -0
  593. package/lib/internal/template/internal/components/token-list/styles.css.js +14 -0
  594. package/lib/internal/template/internal/components/token-list/styles.scoped.css +232 -0
  595. package/lib/internal/template/internal/components/token-list/styles.selectors.js +15 -0
  596. package/lib/internal/template/internal/components/token-list/token-focus-controller.d.ts +5 -0
  597. package/lib/internal/template/internal/components/token-list/token-focus-controller.d.ts.map +1 -0
  598. package/lib/internal/template/internal/components/token-list/token-focus-controller.js +49 -0
  599. package/lib/internal/template/internal/components/token-list/token-focus-controller.js.map +1 -0
  600. package/lib/internal/template/internal/components/token-list/token-limit-toggle.d.ts +14 -0
  601. package/lib/internal/template/internal/components/token-list/token-limit-toggle.d.ts.map +1 -0
  602. package/lib/internal/template/{token-group/toggle.js → internal/components/token-list/token-limit-toggle.js} +6 -7
  603. package/lib/internal/template/internal/components/token-list/token-limit-toggle.js.map +1 -0
  604. package/lib/internal/template/internal/components/transition/index.d.ts.map +1 -1
  605. package/lib/internal/template/internal/components/transition/index.js.map +1 -1
  606. package/lib/internal/template/internal/components/visual-context/index.d.ts.map +1 -1
  607. package/lib/internal/template/internal/components/visual-context/index.js.map +1 -1
  608. package/lib/internal/template/internal/context/app-layout-context.d.ts.map +1 -1
  609. package/lib/internal/template/internal/context/app-layout-context.js.map +1 -1
  610. package/lib/internal/template/internal/context/form-field-context.d.ts +2 -6
  611. package/lib/internal/template/internal/context/form-field-context.d.ts.map +1 -1
  612. package/lib/internal/template/internal/context/form-field-context.js +1 -7
  613. package/lib/internal/template/internal/context/form-field-context.js.map +1 -1
  614. package/lib/internal/template/internal/context/split-panel-context.d.ts.map +1 -1
  615. package/lib/internal/template/internal/context/split-panel-context.js.map +1 -1
  616. package/lib/internal/template/internal/debounce.d.ts.map +1 -1
  617. package/lib/internal/template/internal/debounce.js.map +1 -1
  618. package/lib/internal/template/internal/environment.js +1 -1
  619. package/lib/internal/template/internal/events/index.d.ts.map +1 -1
  620. package/lib/internal/template/internal/events/index.js.map +1 -1
  621. package/lib/internal/template/internal/focus-tracker.d.ts.map +1 -1
  622. package/lib/internal/template/internal/focus-tracker.js.map +1 -1
  623. package/lib/internal/template/internal/generated/custom-css-properties/index.d.ts.map +1 -1
  624. package/lib/internal/template/internal/generated/custom-css-properties/index.js.map +1 -1
  625. package/lib/internal/template/internal/hooks/check-controlled/index.d.ts.map +1 -1
  626. package/lib/internal/template/internal/hooks/check-controlled/index.js.map +1 -1
  627. package/lib/internal/template/internal/hooks/container-queries/index.d.ts.map +1 -1
  628. package/lib/internal/template/internal/hooks/container-queries/index.js.map +1 -1
  629. package/lib/internal/template/internal/hooks/container-queries/interfaces.d.ts.map +1 -1
  630. package/lib/internal/template/internal/hooks/container-queries/interfaces.js.map +1 -1
  631. package/lib/internal/template/internal/hooks/container-queries/use-container-breakpoints.d.ts.map +1 -1
  632. package/lib/internal/template/internal/hooks/container-queries/use-container-breakpoints.js.map +1 -1
  633. package/lib/internal/template/internal/hooks/container-queries/use-container-query.d.ts.map +1 -1
  634. package/lib/internal/template/internal/hooks/container-queries/use-container-query.js.map +1 -1
  635. package/lib/internal/template/internal/hooks/container-queries/use-resize-observer.d.ts.map +1 -1
  636. package/lib/internal/template/internal/hooks/container-queries/use-resize-observer.js.map +1 -1
  637. package/lib/internal/template/internal/hooks/focus-visible/index.d.ts.map +1 -1
  638. package/lib/internal/template/internal/hooks/focus-visible/index.js.map +1 -1
  639. package/lib/internal/template/internal/hooks/forward-focus/index.d.ts.map +1 -1
  640. package/lib/internal/template/internal/hooks/forward-focus/index.js.map +1 -1
  641. package/lib/internal/template/internal/hooks/forward-focus/radio-group.d.ts.map +1 -1
  642. package/lib/internal/template/internal/hooks/forward-focus/radio-group.js.map +1 -1
  643. package/lib/internal/template/internal/hooks/use-base-component/index.d.ts.map +1 -1
  644. package/lib/internal/template/internal/hooks/use-base-component/index.js.map +1 -1
  645. package/lib/internal/template/internal/hooks/use-controllable/index.d.ts.map +1 -1
  646. package/lib/internal/template/internal/hooks/use-controllable/index.js.map +1 -1
  647. package/lib/internal/template/internal/hooks/use-date-cache/index.d.ts.map +1 -1
  648. package/lib/internal/template/internal/hooks/use-date-cache/index.js.map +1 -1
  649. package/lib/internal/template/internal/hooks/use-debounce-callback/index.d.ts.map +1 -1
  650. package/lib/internal/template/internal/hooks/use-debounce-callback/index.js.map +1 -1
  651. package/lib/internal/template/internal/hooks/use-dynamic-overlap/index.d.ts.map +1 -1
  652. package/lib/internal/template/internal/hooks/use-dynamic-overlap/index.js.map +1 -1
  653. package/lib/internal/template/internal/hooks/use-effect-on-update.d.ts.map +1 -1
  654. package/lib/internal/template/internal/hooks/use-effect-on-update.js.map +1 -1
  655. package/lib/internal/template/internal/hooks/use-focus-tracker.d.ts.map +1 -1
  656. package/lib/internal/template/internal/hooks/use-focus-tracker.js.map +1 -1
  657. package/lib/internal/template/internal/hooks/use-has-rendered/index.d.ts.map +1 -1
  658. package/lib/internal/template/internal/hooks/use-has-rendered/index.js.map +1 -1
  659. package/lib/internal/template/internal/hooks/use-intersection-observer/index.d.ts.map +1 -1
  660. package/lib/internal/template/internal/hooks/use-intersection-observer/index.js.map +1 -1
  661. package/lib/internal/template/internal/hooks/use-merge-refs/index.d.ts.map +1 -1
  662. package/lib/internal/template/internal/hooks/use-merge-refs/index.js.map +1 -1
  663. package/lib/internal/template/internal/hooks/use-mobile/index.d.ts.map +1 -1
  664. package/lib/internal/template/internal/hooks/use-mobile/index.js.map +1 -1
  665. package/lib/internal/template/internal/hooks/use-mouse-down-target.d.ts.map +1 -1
  666. package/lib/internal/template/internal/hooks/use-mouse-down-target.js.map +1 -1
  667. package/lib/internal/template/internal/hooks/use-mutation-observer/index.d.ts.map +1 -1
  668. package/lib/internal/template/internal/hooks/use-mutation-observer/index.js.map +1 -1
  669. package/lib/internal/template/internal/hooks/use-portal-mode-classes/index.d.ts.map +1 -1
  670. package/lib/internal/template/internal/hooks/use-portal-mode-classes/index.js.map +1 -1
  671. package/lib/internal/template/internal/hooks/use-previous/index.d.ts.map +1 -1
  672. package/lib/internal/template/internal/hooks/use-previous/index.js.map +1 -1
  673. package/lib/internal/template/internal/hooks/use-scroll-sync/index.d.ts.map +1 -1
  674. package/lib/internal/template/internal/hooks/use-scroll-sync/index.js.map +1 -1
  675. package/lib/internal/template/internal/hooks/use-singleton-handler/index.d.ts.map +1 -1
  676. package/lib/internal/template/internal/hooks/use-singleton-handler/index.js.map +1 -1
  677. package/lib/internal/template/internal/hooks/use-stable-event-handler/index.d.ts.map +1 -1
  678. package/lib/internal/template/internal/hooks/use-stable-event-handler/index.js.map +1 -1
  679. package/lib/internal/template/internal/hooks/use-telemetry/index.d.ts.map +1 -1
  680. package/lib/internal/template/internal/hooks/use-telemetry/index.js.map +1 -1
  681. package/lib/internal/template/internal/hooks/use-unique-id/index.d.ts.map +1 -1
  682. package/lib/internal/template/internal/hooks/use-unique-id/index.js.map +1 -1
  683. package/lib/internal/template/internal/hooks/use-visual-mode/index.d.ts.map +1 -1
  684. package/lib/internal/template/internal/hooks/use-visual-mode/index.js.map +1 -1
  685. package/lib/internal/template/internal/i18n/context.d.ts.map +1 -1
  686. package/lib/internal/template/internal/i18n/context.js.map +1 -1
  687. package/lib/internal/template/internal/i18n/index.d.ts.map +1 -1
  688. package/lib/internal/template/internal/i18n/index.js.map +1 -1
  689. package/lib/internal/template/internal/i18n/provider.d.ts.map +1 -1
  690. package/lib/internal/template/internal/i18n/provider.js.map +1 -1
  691. package/lib/internal/template/internal/is-development.d.ts.map +1 -1
  692. package/lib/internal/template/internal/is-development.js.map +1 -1
  693. package/lib/internal/template/internal/keycode.d.ts.map +1 -1
  694. package/lib/internal/template/internal/keycode.js.map +1 -1
  695. package/lib/internal/template/internal/logging.d.ts.map +1 -1
  696. package/lib/internal/template/internal/logging.js.map +1 -1
  697. package/lib/internal/template/internal/motion.d.ts.map +1 -1
  698. package/lib/internal/template/internal/motion.js.map +1 -1
  699. package/lib/internal/template/internal/styles/colors.d.ts.map +1 -1
  700. package/lib/internal/template/internal/styles/colors.js.map +1 -1
  701. package/lib/internal/template/internal/types.d.ts.map +1 -1
  702. package/lib/internal/template/internal/types.js.map +1 -1
  703. package/lib/internal/template/internal/utils/apply-display-name.d.ts.map +1 -1
  704. package/lib/internal/template/internal/utils/apply-display-name.js.map +1 -1
  705. package/lib/internal/template/internal/utils/browser-scrollbar-size.d.ts.map +1 -1
  706. package/lib/internal/template/internal/utils/browser-scrollbar-size.js.map +1 -1
  707. package/lib/internal/template/internal/utils/calculate-once.d.ts.map +1 -1
  708. package/lib/internal/template/internal/utils/calculate-once.js.map +1 -1
  709. package/lib/internal/template/internal/utils/check-safe-url.d.ts.map +1 -1
  710. package/lib/internal/template/internal/utils/check-safe-url.js.map +1 -1
  711. package/lib/internal/template/internal/utils/create-category-color-scale.d.ts.map +1 -1
  712. package/lib/internal/template/internal/utils/create-category-color-scale.js.map +1 -1
  713. package/lib/internal/template/internal/utils/date-time/display-format.d.ts.map +1 -1
  714. package/lib/internal/template/internal/utils/date-time/display-format.js.map +1 -1
  715. package/lib/internal/template/internal/utils/date-time/format-date-range.d.ts.map +1 -1
  716. package/lib/internal/template/internal/utils/date-time/format-date-range.js.map +1 -1
  717. package/lib/internal/template/internal/utils/date-time/format-date-time.d.ts.map +1 -1
  718. package/lib/internal/template/internal/utils/date-time/format-date-time.js.map +1 -1
  719. package/lib/internal/template/internal/utils/date-time/format-date.d.ts.map +1 -1
  720. package/lib/internal/template/internal/utils/date-time/format-date.js.map +1 -1
  721. package/lib/internal/template/internal/utils/date-time/format-time.d.ts.map +1 -1
  722. package/lib/internal/template/internal/utils/date-time/format-time.js.map +1 -1
  723. package/lib/internal/template/internal/utils/date-time/format-timezone-offset.d.ts.map +1 -1
  724. package/lib/internal/template/internal/utils/date-time/format-timezone-offset.js.map +1 -1
  725. package/lib/internal/template/internal/utils/date-time/index.d.ts.map +1 -1
  726. package/lib/internal/template/internal/utils/date-time/index.js.map +1 -1
  727. package/lib/internal/template/internal/utils/date-time/is-iso-date-only.d.ts.map +1 -1
  728. package/lib/internal/template/internal/utils/date-time/is-iso-date-only.js.map +1 -1
  729. package/lib/internal/template/internal/utils/date-time/join-date-time.d.ts.map +1 -1
  730. package/lib/internal/template/internal/utils/date-time/join-date-time.js.map +1 -1
  731. package/lib/internal/template/internal/utils/date-time/parse-date.d.ts.map +1 -1
  732. package/lib/internal/template/internal/utils/date-time/parse-date.js.map +1 -1
  733. package/lib/internal/template/internal/utils/date-time/parse-timezone-offset.d.ts.map +1 -1
  734. package/lib/internal/template/internal/utils/date-time/parse-timezone-offset.js.map +1 -1
  735. package/lib/internal/template/internal/utils/date-time/shift-timezone-offset.d.ts.map +1 -1
  736. package/lib/internal/template/internal/utils/date-time/shift-timezone-offset.js.map +1 -1
  737. package/lib/internal/template/internal/utils/dom.d.ts.map +1 -1
  738. package/lib/internal/template/internal/utils/dom.js.map +1 -1
  739. package/lib/internal/template/internal/utils/external-props.d.ts.map +1 -1
  740. package/lib/internal/template/internal/utils/external-props.js.map +1 -1
  741. package/lib/internal/template/internal/utils/focus-svg-element.d.ts.map +1 -1
  742. package/lib/internal/template/internal/utils/focus-svg-element.js.map +1 -1
  743. package/lib/internal/template/internal/utils/has-value.d.ts.map +1 -1
  744. package/lib/internal/template/internal/utils/has-value.js.map +1 -1
  745. package/lib/internal/template/internal/utils/locale/index.d.ts.map +1 -1
  746. package/lib/internal/template/internal/utils/locale/index.js.map +1 -1
  747. package/lib/internal/template/internal/utils/locale/merge-locales.d.ts.map +1 -1
  748. package/lib/internal/template/internal/utils/locale/merge-locales.js.map +1 -1
  749. package/lib/internal/template/internal/utils/locale/normalize-locale.d.ts.map +1 -1
  750. package/lib/internal/template/internal/utils/locale/normalize-locale.js.map +1 -1
  751. package/lib/internal/template/internal/utils/locale/normalize-start-of-week.d.ts.map +1 -1
  752. package/lib/internal/template/internal/utils/locale/normalize-start-of-week.js.map +1 -1
  753. package/lib/internal/template/internal/utils/promises.d.ts.map +1 -1
  754. package/lib/internal/template/internal/utils/promises.js.map +1 -1
  755. package/lib/internal/template/internal/utils/scrollable-containers.d.ts.map +1 -1
  756. package/lib/internal/template/internal/utils/scrollable-containers.js.map +1 -1
  757. package/lib/internal/template/internal/utils/strings/index.d.ts.map +1 -1
  758. package/lib/internal/template/internal/utils/strings/index.js.map +1 -1
  759. package/lib/internal/template/internal/utils/strings/join-strings.d.ts.map +1 -1
  760. package/lib/internal/template/internal/utils/strings/join-strings.js.map +1 -1
  761. package/lib/internal/template/internal/utils/strings/pad-left-zeros.d.ts.map +1 -1
  762. package/lib/internal/template/internal/utils/strings/pad-left-zeros.js.map +1 -1
  763. package/lib/internal/template/internal/utils/throttle.d.ts.map +1 -1
  764. package/lib/internal/template/internal/utils/throttle.js.map +1 -1
  765. package/lib/internal/template/internal/utils/use-container-width.d.ts.map +1 -1
  766. package/lib/internal/template/internal/utils/use-container-width.js.map +1 -1
  767. package/lib/internal/template/line-chart/index.d.ts.map +1 -1
  768. package/lib/internal/template/line-chart/index.js.map +1 -1
  769. package/lib/internal/template/line-chart/interfaces.d.ts.map +1 -1
  770. package/lib/internal/template/line-chart/interfaces.js.map +1 -1
  771. package/lib/internal/template/link/index.d.ts.map +1 -1
  772. package/lib/internal/template/link/index.js.map +1 -1
  773. package/lib/internal/template/link/interfaces.d.ts.map +1 -1
  774. package/lib/internal/template/link/interfaces.js.map +1 -1
  775. package/lib/internal/template/link/internal.d.ts.map +1 -1
  776. package/lib/internal/template/link/internal.js.map +1 -1
  777. package/lib/internal/template/mixed-line-bar-chart/bar-groups.d.ts.map +1 -1
  778. package/lib/internal/template/mixed-line-bar-chart/bar-groups.js.map +1 -1
  779. package/lib/internal/template/mixed-line-bar-chart/bar-series.d.ts.map +1 -1
  780. package/lib/internal/template/mixed-line-bar-chart/bar-series.js.map +1 -1
  781. package/lib/internal/template/mixed-line-bar-chart/chart-container.d.ts.map +1 -1
  782. package/lib/internal/template/mixed-line-bar-chart/chart-container.js.map +1 -1
  783. package/lib/internal/template/mixed-line-bar-chart/chart-filters.d.ts.map +1 -1
  784. package/lib/internal/template/mixed-line-bar-chart/chart-filters.js.map +1 -1
  785. package/lib/internal/template/mixed-line-bar-chart/chart-legend.d.ts.map +1 -1
  786. package/lib/internal/template/mixed-line-bar-chart/chart-legend.js.map +1 -1
  787. package/lib/internal/template/mixed-line-bar-chart/chart-popover.d.ts.map +1 -1
  788. package/lib/internal/template/mixed-line-bar-chart/chart-popover.js.map +1 -1
  789. package/lib/internal/template/mixed-line-bar-chart/data-series.d.ts.map +1 -1
  790. package/lib/internal/template/mixed-line-bar-chart/data-series.js.map +1 -1
  791. package/lib/internal/template/mixed-line-bar-chart/domain.d.ts.map +1 -1
  792. package/lib/internal/template/mixed-line-bar-chart/domain.js.map +1 -1
  793. package/lib/internal/template/mixed-line-bar-chart/format-highlighted.d.ts.map +1 -1
  794. package/lib/internal/template/mixed-line-bar-chart/format-highlighted.js.map +1 -1
  795. package/lib/internal/template/mixed-line-bar-chart/hooks/use-mouse-hover.d.ts.map +1 -1
  796. package/lib/internal/template/mixed-line-bar-chart/hooks/use-mouse-hover.js.map +1 -1
  797. package/lib/internal/template/mixed-line-bar-chart/hooks/use-navigation.d.ts.map +1 -1
  798. package/lib/internal/template/mixed-line-bar-chart/hooks/use-navigation.js.map +1 -1
  799. package/lib/internal/template/mixed-line-bar-chart/hooks/use-popover.d.ts.map +1 -1
  800. package/lib/internal/template/mixed-line-bar-chart/hooks/use-popover.js.map +1 -1
  801. package/lib/internal/template/mixed-line-bar-chart/index.d.ts.map +1 -1
  802. package/lib/internal/template/mixed-line-bar-chart/index.js.map +1 -1
  803. package/lib/internal/template/mixed-line-bar-chart/interfaces.d.ts.map +1 -1
  804. package/lib/internal/template/mixed-line-bar-chart/interfaces.js.map +1 -1
  805. package/lib/internal/template/mixed-line-bar-chart/internal.d.ts.map +1 -1
  806. package/lib/internal/template/mixed-line-bar-chart/internal.js.map +1 -1
  807. package/lib/internal/template/mixed-line-bar-chart/line-series.d.ts.map +1 -1
  808. package/lib/internal/template/mixed-line-bar-chart/line-series.js.map +1 -1
  809. package/lib/internal/template/mixed-line-bar-chart/make-scaled-bar-groups.d.ts.map +1 -1
  810. package/lib/internal/template/mixed-line-bar-chart/make-scaled-bar-groups.js.map +1 -1
  811. package/lib/internal/template/mixed-line-bar-chart/make-scaled-series.d.ts.map +1 -1
  812. package/lib/internal/template/mixed-line-bar-chart/make-scaled-series.js.map +1 -1
  813. package/lib/internal/template/mixed-line-bar-chart/utils.d.ts.map +1 -1
  814. package/lib/internal/template/mixed-line-bar-chart/utils.js.map +1 -1
  815. package/lib/internal/template/modal/body-scroll.d.ts.map +1 -1
  816. package/lib/internal/template/modal/body-scroll.js.map +1 -1
  817. package/lib/internal/template/modal/index.d.ts.map +1 -1
  818. package/lib/internal/template/modal/index.js.map +1 -1
  819. package/lib/internal/template/modal/interfaces.d.ts.map +1 -1
  820. package/lib/internal/template/modal/interfaces.js.map +1 -1
  821. package/lib/internal/template/modal/internal.d.ts.map +1 -1
  822. package/lib/internal/template/modal/internal.js.map +1 -1
  823. package/lib/internal/template/multiselect/index.d.ts.map +1 -1
  824. package/lib/internal/template/multiselect/index.js.map +1 -1
  825. package/lib/internal/template/multiselect/interfaces.d.ts.map +1 -1
  826. package/lib/internal/template/multiselect/interfaces.js.map +1 -1
  827. package/lib/internal/template/multiselect/internal.d.ts.map +1 -1
  828. package/lib/internal/template/multiselect/internal.js.map +1 -1
  829. package/lib/internal/template/pagination/index.d.ts.map +1 -1
  830. package/lib/internal/template/pagination/index.js.map +1 -1
  831. package/lib/internal/template/pagination/interfaces.d.ts.map +1 -1
  832. package/lib/internal/template/pagination/interfaces.js.map +1 -1
  833. package/lib/internal/template/pagination/internal.d.ts.map +1 -1
  834. package/lib/internal/template/pagination/internal.js.map +1 -1
  835. package/lib/internal/template/pagination/utils.d.ts.map +1 -1
  836. package/lib/internal/template/pagination/utils.js.map +1 -1
  837. package/lib/internal/template/pie-chart/index.d.ts.map +1 -1
  838. package/lib/internal/template/pie-chart/index.js.map +1 -1
  839. package/lib/internal/template/pie-chart/interfaces.d.ts.map +1 -1
  840. package/lib/internal/template/pie-chart/interfaces.js.map +1 -1
  841. package/lib/internal/template/pie-chart/labels.d.ts.map +1 -1
  842. package/lib/internal/template/pie-chart/labels.js.map +1 -1
  843. package/lib/internal/template/pie-chart/pie-chart.d.ts.map +1 -1
  844. package/lib/internal/template/pie-chart/pie-chart.js.map +1 -1
  845. package/lib/internal/template/pie-chart/responsive-text.d.ts.map +1 -1
  846. package/lib/internal/template/pie-chart/responsive-text.js.map +1 -1
  847. package/lib/internal/template/pie-chart/segments.d.ts.map +1 -1
  848. package/lib/internal/template/pie-chart/segments.js.map +1 -1
  849. package/lib/internal/template/pie-chart/utils.d.ts.map +1 -1
  850. package/lib/internal/template/pie-chart/utils.js.map +1 -1
  851. package/lib/internal/template/popover/arrow.d.ts.map +1 -1
  852. package/lib/internal/template/popover/arrow.js.map +1 -1
  853. package/lib/internal/template/popover/body.d.ts.map +1 -1
  854. package/lib/internal/template/popover/body.js.map +1 -1
  855. package/lib/internal/template/popover/container.d.ts.map +1 -1
  856. package/lib/internal/template/popover/container.js.map +1 -1
  857. package/lib/internal/template/popover/index.d.ts.map +1 -1
  858. package/lib/internal/template/popover/index.js.map +1 -1
  859. package/lib/internal/template/popover/interfaces.d.ts.map +1 -1
  860. package/lib/internal/template/popover/interfaces.js.map +1 -1
  861. package/lib/internal/template/popover/internal.d.ts.map +1 -1
  862. package/lib/internal/template/popover/internal.js.map +1 -1
  863. package/lib/internal/template/popover/utils/positions.d.ts.map +1 -1
  864. package/lib/internal/template/popover/utils/positions.js.map +1 -1
  865. package/lib/internal/template/progress-bar/index.d.ts.map +1 -1
  866. package/lib/internal/template/progress-bar/index.js.map +1 -1
  867. package/lib/internal/template/progress-bar/interfaces.d.ts.map +1 -1
  868. package/lib/internal/template/progress-bar/interfaces.js.map +1 -1
  869. package/lib/internal/template/progress-bar/internal.d.ts.map +1 -1
  870. package/lib/internal/template/progress-bar/internal.js.map +1 -1
  871. package/lib/internal/template/property-filter/controller.d.ts +6 -0
  872. package/lib/internal/template/property-filter/controller.d.ts.map +1 -1
  873. package/lib/internal/template/property-filter/controller.js +9 -0
  874. package/lib/internal/template/property-filter/controller.js.map +1 -1
  875. package/lib/internal/template/property-filter/filter-options.d.ts.map +1 -1
  876. package/lib/internal/template/property-filter/filter-options.js.map +1 -1
  877. package/lib/internal/template/property-filter/index.d.ts.map +1 -1
  878. package/lib/internal/template/property-filter/index.js +13 -18
  879. package/lib/internal/template/property-filter/index.js.map +1 -1
  880. package/lib/internal/template/property-filter/interfaces.d.ts.map +1 -1
  881. package/lib/internal/template/property-filter/interfaces.js.map +1 -1
  882. package/lib/internal/template/property-filter/property-editor.d.ts.map +1 -1
  883. package/lib/internal/template/property-filter/property-editor.js.map +1 -1
  884. package/lib/internal/template/property-filter/property-filter-autosuggest.d.ts.map +1 -1
  885. package/lib/internal/template/property-filter/property-filter-autosuggest.js.map +1 -1
  886. package/lib/internal/template/property-filter/styles.css.js +29 -31
  887. package/lib/internal/template/property-filter/styles.scoped.css +31 -43
  888. package/lib/internal/template/property-filter/styles.selectors.js +29 -31
  889. package/lib/internal/template/property-filter/token-editor.d.ts.map +1 -1
  890. package/lib/internal/template/property-filter/token-editor.js.map +1 -1
  891. package/lib/internal/template/property-filter/token.d.ts.map +1 -1
  892. package/lib/internal/template/property-filter/token.js +5 -8
  893. package/lib/internal/template/property-filter/token.js.map +1 -1
  894. package/lib/internal/template/property-filter/use-load-items.d.ts.map +1 -1
  895. package/lib/internal/template/property-filter/use-load-items.js.map +1 -1
  896. package/lib/internal/template/property-filter/utils.d.ts.map +1 -1
  897. package/lib/internal/template/property-filter/utils.js.map +1 -1
  898. package/lib/internal/template/radio-group/index.d.ts.map +1 -1
  899. package/lib/internal/template/radio-group/index.js.map +1 -1
  900. package/lib/internal/template/radio-group/interfaces.d.ts.map +1 -1
  901. package/lib/internal/template/radio-group/interfaces.js.map +1 -1
  902. package/lib/internal/template/radio-group/internal.d.ts.map +1 -1
  903. package/lib/internal/template/radio-group/internal.js.map +1 -1
  904. package/lib/internal/template/radio-group/radio-button.d.ts.map +1 -1
  905. package/lib/internal/template/radio-group/radio-button.js.map +1 -1
  906. package/lib/internal/template/s3-resource-selector/index.d.ts.map +1 -1
  907. package/lib/internal/template/s3-resource-selector/index.js.map +1 -1
  908. package/lib/internal/template/s3-resource-selector/interfaces.d.ts.map +1 -1
  909. package/lib/internal/template/s3-resource-selector/interfaces.js.map +1 -1
  910. package/lib/internal/template/s3-resource-selector/s3-in-context/index.d.ts.map +1 -1
  911. package/lib/internal/template/s3-resource-selector/s3-in-context/index.js.map +1 -1
  912. package/lib/internal/template/s3-resource-selector/s3-in-context/search-input.d.ts.map +1 -1
  913. package/lib/internal/template/s3-resource-selector/s3-in-context/search-input.js.map +1 -1
  914. package/lib/internal/template/s3-resource-selector/s3-in-context/use-versions-fetch.d.ts.map +1 -1
  915. package/lib/internal/template/s3-resource-selector/s3-in-context/use-versions-fetch.js.map +1 -1
  916. package/lib/internal/template/s3-resource-selector/s3-in-context/validation.d.ts.map +1 -1
  917. package/lib/internal/template/s3-resource-selector/s3-in-context/validation.js.map +1 -1
  918. package/lib/internal/template/s3-resource-selector/s3-modal/basic-table.d.ts.map +1 -1
  919. package/lib/internal/template/s3-resource-selector/s3-modal/basic-table.js.map +1 -1
  920. package/lib/internal/template/s3-resource-selector/s3-modal/buckets-table.d.ts.map +1 -1
  921. package/lib/internal/template/s3-resource-selector/s3-modal/buckets-table.js.map +1 -1
  922. package/lib/internal/template/s3-resource-selector/s3-modal/column-formats.d.ts.map +1 -1
  923. package/lib/internal/template/s3-resource-selector/s3-modal/column-formats.js.map +1 -1
  924. package/lib/internal/template/s3-resource-selector/s3-modal/empty-state.d.ts.map +1 -1
  925. package/lib/internal/template/s3-resource-selector/s3-modal/empty-state.js.map +1 -1
  926. package/lib/internal/template/s3-resource-selector/s3-modal/index.d.ts.map +1 -1
  927. package/lib/internal/template/s3-resource-selector/s3-modal/index.js.map +1 -1
  928. package/lib/internal/template/s3-resource-selector/s3-modal/objects-table.d.ts.map +1 -1
  929. package/lib/internal/template/s3-resource-selector/s3-modal/objects-table.js.map +1 -1
  930. package/lib/internal/template/s3-resource-selector/s3-modal/table-utils.d.ts.map +1 -1
  931. package/lib/internal/template/s3-resource-selector/s3-modal/table-utils.js.map +1 -1
  932. package/lib/internal/template/s3-resource-selector/s3-modal/versions-table.d.ts.map +1 -1
  933. package/lib/internal/template/s3-resource-selector/s3-modal/versions-table.js.map +1 -1
  934. package/lib/internal/template/s3-resource-selector/utils.d.ts.map +1 -1
  935. package/lib/internal/template/s3-resource-selector/utils.js.map +1 -1
  936. package/lib/internal/template/segmented-control/index.d.ts.map +1 -1
  937. package/lib/internal/template/segmented-control/index.js.map +1 -1
  938. package/lib/internal/template/segmented-control/interfaces.d.ts.map +1 -1
  939. package/lib/internal/template/segmented-control/interfaces.js.map +1 -1
  940. package/lib/internal/template/segmented-control/internal-segmented-control.d.ts.map +1 -1
  941. package/lib/internal/template/segmented-control/internal-segmented-control.js.map +1 -1
  942. package/lib/internal/template/segmented-control/internal.d.ts.map +1 -1
  943. package/lib/internal/template/segmented-control/internal.js.map +1 -1
  944. package/lib/internal/template/segmented-control/segment.d.ts.map +1 -1
  945. package/lib/internal/template/segmented-control/segment.js.map +1 -1
  946. package/lib/internal/template/select/index.d.ts.map +1 -1
  947. package/lib/internal/template/select/index.js.map +1 -1
  948. package/lib/internal/template/select/interfaces.d.ts.map +1 -1
  949. package/lib/internal/template/select/interfaces.js.map +1 -1
  950. package/lib/internal/template/select/internal.d.ts.map +1 -1
  951. package/lib/internal/template/select/internal.js.map +1 -1
  952. package/lib/internal/template/select/parts/filter.d.ts +1 -1
  953. package/lib/internal/template/select/parts/filter.d.ts.map +1 -1
  954. package/lib/internal/template/select/parts/filter.js.map +1 -1
  955. package/lib/internal/template/select/parts/item.d.ts.map +1 -1
  956. package/lib/internal/template/select/parts/item.js.map +1 -1
  957. package/lib/internal/template/select/parts/multiselect-item.d.ts.map +1 -1
  958. package/lib/internal/template/select/parts/multiselect-item.js.map +1 -1
  959. package/lib/internal/template/select/parts/plain-list.d.ts.map +1 -1
  960. package/lib/internal/template/select/parts/plain-list.js.map +1 -1
  961. package/lib/internal/template/select/parts/trigger.d.ts.map +1 -1
  962. package/lib/internal/template/select/parts/trigger.js.map +1 -1
  963. package/lib/internal/template/select/parts/virtual-list.d.ts.map +1 -1
  964. package/lib/internal/template/select/parts/virtual-list.js.map +1 -1
  965. package/lib/internal/template/select/utils/check-option-value-field.d.ts.map +1 -1
  966. package/lib/internal/template/select/utils/check-option-value-field.js.map +1 -1
  967. package/lib/internal/template/select/utils/connect-options.d.ts.map +1 -1
  968. package/lib/internal/template/select/utils/connect-options.js.map +1 -1
  969. package/lib/internal/template/select/utils/get-item-props.d.ts.map +1 -1
  970. package/lib/internal/template/select/utils/get-item-props.js.map +1 -1
  971. package/lib/internal/template/select/utils/render-options.d.ts.map +1 -1
  972. package/lib/internal/template/select/utils/render-options.js.map +1 -1
  973. package/lib/internal/template/select/utils/use-announcement.d.ts.map +1 -1
  974. package/lib/internal/template/select/utils/use-announcement.js.map +1 -1
  975. package/lib/internal/template/select/utils/use-load-items.d.ts.map +1 -1
  976. package/lib/internal/template/select/utils/use-load-items.js.map +1 -1
  977. package/lib/internal/template/select/utils/use-native-search.d.ts.map +1 -1
  978. package/lib/internal/template/select/utils/use-native-search.js.map +1 -1
  979. package/lib/internal/template/select/utils/use-select.d.ts.map +1 -1
  980. package/lib/internal/template/select/utils/use-select.js.map +1 -1
  981. package/lib/internal/template/side-navigation/index.d.ts.map +1 -1
  982. package/lib/internal/template/side-navigation/index.js.map +1 -1
  983. package/lib/internal/template/side-navigation/interfaces.d.ts.map +1 -1
  984. package/lib/internal/template/side-navigation/interfaces.js.map +1 -1
  985. package/lib/internal/template/side-navigation/internal.d.ts.map +1 -1
  986. package/lib/internal/template/side-navigation/internal.js.map +1 -1
  987. package/lib/internal/template/side-navigation/util.d.ts.map +1 -1
  988. package/lib/internal/template/side-navigation/util.js.map +1 -1
  989. package/lib/internal/template/space-between/index.d.ts.map +1 -1
  990. package/lib/internal/template/space-between/index.js.map +1 -1
  991. package/lib/internal/template/space-between/interfaces.d.ts.map +1 -1
  992. package/lib/internal/template/space-between/interfaces.js.map +1 -1
  993. package/lib/internal/template/space-between/internal.d.ts.map +1 -1
  994. package/lib/internal/template/space-between/internal.js +1 -3
  995. package/lib/internal/template/space-between/internal.js.map +1 -1
  996. package/lib/internal/template/spinner/index.d.ts.map +1 -1
  997. package/lib/internal/template/spinner/index.js.map +1 -1
  998. package/lib/internal/template/spinner/interfaces.d.ts.map +1 -1
  999. package/lib/internal/template/spinner/interfaces.js.map +1 -1
  1000. package/lib/internal/template/spinner/internal.d.ts.map +1 -1
  1001. package/lib/internal/template/spinner/internal.js.map +1 -1
  1002. package/lib/internal/template/split-panel/bottom.d.ts.map +1 -1
  1003. package/lib/internal/template/split-panel/bottom.js.map +1 -1
  1004. package/lib/internal/template/split-panel/icons/bottom-icon-refresh.d.ts.map +1 -1
  1005. package/lib/internal/template/split-panel/icons/bottom-icon-refresh.js.map +1 -1
  1006. package/lib/internal/template/split-panel/icons/bottom-icon.d.ts.map +1 -1
  1007. package/lib/internal/template/split-panel/icons/bottom-icon.js.map +1 -1
  1008. package/lib/internal/template/split-panel/icons/resize-handler.d.ts.map +1 -1
  1009. package/lib/internal/template/split-panel/icons/resize-handler.js.map +1 -1
  1010. package/lib/internal/template/split-panel/icons/side-position-refresh.d.ts.map +1 -1
  1011. package/lib/internal/template/split-panel/icons/side-position-refresh.js.map +1 -1
  1012. package/lib/internal/template/split-panel/icons/side-position.d.ts.map +1 -1
  1013. package/lib/internal/template/split-panel/icons/side-position.js.map +1 -1
  1014. package/lib/internal/template/split-panel/index.d.ts.map +1 -1
  1015. package/lib/internal/template/split-panel/index.js.map +1 -1
  1016. package/lib/internal/template/split-panel/interfaces.d.ts.map +1 -1
  1017. package/lib/internal/template/split-panel/interfaces.js.map +1 -1
  1018. package/lib/internal/template/split-panel/preferences-modal.d.ts.map +1 -1
  1019. package/lib/internal/template/split-panel/preferences-modal.js.map +1 -1
  1020. package/lib/internal/template/split-panel/side.d.ts.map +1 -1
  1021. package/lib/internal/template/split-panel/side.js.map +1 -1
  1022. package/lib/internal/template/split-panel/utils/size-utils.d.ts.map +1 -1
  1023. package/lib/internal/template/split-panel/utils/size-utils.js.map +1 -1
  1024. package/lib/internal/template/split-panel/utils/use-keyboard-events.d.ts.map +1 -1
  1025. package/lib/internal/template/split-panel/utils/use-keyboard-events.js.map +1 -1
  1026. package/lib/internal/template/split-panel/utils/use-pointer-events.d.ts.map +1 -1
  1027. package/lib/internal/template/split-panel/utils/use-pointer-events.js.map +1 -1
  1028. package/lib/internal/template/status-indicator/index.d.ts.map +1 -1
  1029. package/lib/internal/template/status-indicator/index.js.map +1 -1
  1030. package/lib/internal/template/status-indicator/internal.d.ts.map +1 -1
  1031. package/lib/internal/template/status-indicator/internal.js.map +1 -1
  1032. package/lib/internal/template/table/body-cell/click-away.d.ts.map +1 -1
  1033. package/lib/internal/template/table/body-cell/click-away.js.map +1 -1
  1034. package/lib/internal/template/table/body-cell/index.d.ts.map +1 -1
  1035. package/lib/internal/template/table/body-cell/index.js +5 -17
  1036. package/lib/internal/template/table/body-cell/index.js.map +1 -1
  1037. package/lib/internal/template/table/body-cell/inline-editor.d.ts.map +1 -1
  1038. package/lib/internal/template/table/body-cell/inline-editor.js +1 -1
  1039. package/lib/internal/template/table/body-cell/inline-editor.js.map +1 -1
  1040. package/lib/internal/template/table/body-cell/styles.css.js +18 -18
  1041. package/lib/internal/template/table/body-cell/styles.scoped.css +50 -50
  1042. package/lib/internal/template/table/body-cell/styles.selectors.js +18 -18
  1043. package/lib/internal/template/table/body-cell/td-element.d.ts.map +1 -1
  1044. package/lib/internal/template/table/body-cell/td-element.js.map +1 -1
  1045. package/lib/internal/template/table/header-cell/index.d.ts.map +1 -1
  1046. package/lib/internal/template/table/header-cell/index.js.map +1 -1
  1047. package/lib/internal/template/table/header-cell/utils.d.ts.map +1 -1
  1048. package/lib/internal/template/table/header-cell/utils.js.map +1 -1
  1049. package/lib/internal/template/table/index.d.ts.map +1 -1
  1050. package/lib/internal/template/table/index.js.map +1 -1
  1051. package/lib/internal/template/table/interfaces.d.ts.map +1 -1
  1052. package/lib/internal/template/table/interfaces.js.map +1 -1
  1053. package/lib/internal/template/table/internal.d.ts.map +1 -1
  1054. package/lib/internal/template/table/internal.js.map +1 -1
  1055. package/lib/internal/template/table/resizer/index.d.ts.map +1 -1
  1056. package/lib/internal/template/table/resizer/index.js.map +1 -1
  1057. package/lib/internal/template/table/selection-control/index.d.ts.map +1 -1
  1058. package/lib/internal/template/table/selection-control/index.js.map +1 -1
  1059. package/lib/internal/template/table/sticky-header.d.ts.map +1 -1
  1060. package/lib/internal/template/table/sticky-header.js.map +1 -1
  1061. package/lib/internal/template/table/sticky-scrollbar.d.ts.map +1 -1
  1062. package/lib/internal/template/table/sticky-scrollbar.js.map +1 -1
  1063. package/lib/internal/template/table/sticky-scrolling.d.ts.map +1 -1
  1064. package/lib/internal/template/table/sticky-scrolling.js.map +1 -1
  1065. package/lib/internal/template/table/thead.d.ts.map +1 -1
  1066. package/lib/internal/template/table/thead.js.map +1 -1
  1067. package/lib/internal/template/table/tools-header.d.ts.map +1 -1
  1068. package/lib/internal/template/table/tools-header.js.map +1 -1
  1069. package/lib/internal/template/table/use-column-widths.d.ts.map +1 -1
  1070. package/lib/internal/template/table/use-column-widths.js.map +1 -1
  1071. package/lib/internal/template/table/use-row-events.d.ts.map +1 -1
  1072. package/lib/internal/template/table/use-row-events.js.map +1 -1
  1073. package/lib/internal/template/table/use-selection.d.ts.map +1 -1
  1074. package/lib/internal/template/table/use-selection.js.map +1 -1
  1075. package/lib/internal/template/table/use-sticky-header.d.ts.map +1 -1
  1076. package/lib/internal/template/table/use-sticky-header.js.map +1 -1
  1077. package/lib/internal/template/table/use-sticky-scrollbar.d.ts.map +1 -1
  1078. package/lib/internal/template/table/use-sticky-scrollbar.js.map +1 -1
  1079. package/lib/internal/template/table/use-table-focus-navigation.d.ts.map +1 -1
  1080. package/lib/internal/template/table/use-table-focus-navigation.js +5 -1
  1081. package/lib/internal/template/table/use-table-focus-navigation.js.map +1 -1
  1082. package/lib/internal/template/table/utils.d.ts.map +1 -1
  1083. package/lib/internal/template/table/utils.js.map +1 -1
  1084. package/lib/internal/template/tabs/index.d.ts.map +1 -1
  1085. package/lib/internal/template/tabs/index.js.map +1 -1
  1086. package/lib/internal/template/tabs/interfaces.d.ts.map +1 -1
  1087. package/lib/internal/template/tabs/interfaces.js.map +1 -1
  1088. package/lib/internal/template/tabs/native-smooth-scroll-supported.d.ts.map +1 -1
  1089. package/lib/internal/template/tabs/native-smooth-scroll-supported.js.map +1 -1
  1090. package/lib/internal/template/tabs/scroll-utils.d.ts.map +1 -1
  1091. package/lib/internal/template/tabs/scroll-utils.js.map +1 -1
  1092. package/lib/internal/template/tabs/smooth-scroll.d.ts.map +1 -1
  1093. package/lib/internal/template/tabs/smooth-scroll.js.map +1 -1
  1094. package/lib/internal/template/tabs/tab-header-bar.d.ts.map +1 -1
  1095. package/lib/internal/template/tabs/tab-header-bar.js.map +1 -1
  1096. package/lib/internal/template/tag-editor/index.d.ts.map +1 -1
  1097. package/lib/internal/template/tag-editor/index.js +25 -2
  1098. package/lib/internal/template/tag-editor/index.js.map +1 -1
  1099. package/lib/internal/template/tag-editor/interfaces.d.ts.map +1 -1
  1100. package/lib/internal/template/tag-editor/interfaces.js.map +1 -1
  1101. package/lib/internal/template/tag-editor/internal.d.ts.map +1 -1
  1102. package/lib/internal/template/tag-editor/internal.js.map +1 -1
  1103. package/lib/internal/template/tag-editor/utils.d.ts.map +1 -1
  1104. package/lib/internal/template/tag-editor/utils.js.map +1 -1
  1105. package/lib/internal/template/tag-editor/validation.d.ts.map +1 -1
  1106. package/lib/internal/template/tag-editor/validation.js.map +1 -1
  1107. package/lib/internal/template/test-utils/dom/property-filter/index.js +4 -3
  1108. package/lib/internal/template/test-utils/dom/property-filter/index.js.map +1 -1
  1109. package/lib/internal/template/test-utils/dom/token-group/index.js +3 -3
  1110. package/lib/internal/template/test-utils/dom/token-group/index.js.map +1 -1
  1111. package/lib/internal/template/test-utils/selectors/property-filter/index.js +4 -3
  1112. package/lib/internal/template/test-utils/selectors/property-filter/index.js.map +1 -1
  1113. package/lib/internal/template/test-utils/selectors/token-group/index.js +3 -3
  1114. package/lib/internal/template/test-utils/selectors/token-group/index.js.map +1 -1
  1115. package/lib/internal/template/test-utils/tsconfig.tsbuildinfo +1 -1
  1116. package/lib/internal/template/text-content/index.d.ts.map +1 -1
  1117. package/lib/internal/template/text-content/index.js.map +1 -1
  1118. package/lib/internal/template/text-content/interfaces.d.ts.map +1 -1
  1119. package/lib/internal/template/text-content/interfaces.js.map +1 -1
  1120. package/lib/internal/template/text-filter/index.d.ts.map +1 -1
  1121. package/lib/internal/template/text-filter/index.js.map +1 -1
  1122. package/lib/internal/template/text-filter/interfaces.d.ts.map +1 -1
  1123. package/lib/internal/template/text-filter/interfaces.js.map +1 -1
  1124. package/lib/internal/template/text-filter/internal.d.ts.map +1 -1
  1125. package/lib/internal/template/text-filter/internal.js.map +1 -1
  1126. package/lib/internal/template/text-filter/search-results.d.ts.map +1 -1
  1127. package/lib/internal/template/text-filter/search-results.js.map +1 -1
  1128. package/lib/internal/template/textarea/index.d.ts.map +1 -1
  1129. package/lib/internal/template/textarea/index.js.map +1 -1
  1130. package/lib/internal/template/textarea/interfaces.d.ts.map +1 -1
  1131. package/lib/internal/template/textarea/interfaces.js.map +1 -1
  1132. package/lib/internal/template/theming/index.d.ts.map +1 -1
  1133. package/lib/internal/template/theming/index.js.map +1 -1
  1134. package/lib/internal/template/tiles/index.d.ts.map +1 -1
  1135. package/lib/internal/template/tiles/index.js.map +1 -1
  1136. package/lib/internal/template/tiles/interfaces.d.ts.map +1 -1
  1137. package/lib/internal/template/tiles/interfaces.js.map +1 -1
  1138. package/lib/internal/template/tiles/internal.d.ts.map +1 -1
  1139. package/lib/internal/template/tiles/internal.js.map +1 -1
  1140. package/lib/internal/template/tiles/tile.d.ts.map +1 -1
  1141. package/lib/internal/template/tiles/tile.js.map +1 -1
  1142. package/lib/internal/template/time-input/index.d.ts.map +1 -1
  1143. package/lib/internal/template/time-input/index.js.map +1 -1
  1144. package/lib/internal/template/time-input/interfaces.d.ts.map +1 -1
  1145. package/lib/internal/template/time-input/interfaces.js.map +1 -1
  1146. package/lib/internal/template/time-input/internal.d.ts.map +1 -1
  1147. package/lib/internal/template/time-input/internal.js.map +1 -1
  1148. package/lib/internal/template/toggle/index.d.ts.map +1 -1
  1149. package/lib/internal/template/toggle/index.js.map +1 -1
  1150. package/lib/internal/template/toggle/interfaces.d.ts.map +1 -1
  1151. package/lib/internal/template/toggle/interfaces.js.map +1 -1
  1152. package/lib/internal/template/toggle/internal.d.ts.map +1 -1
  1153. package/lib/internal/template/toggle/internal.js.map +1 -1
  1154. package/lib/internal/template/token-group/dismiss-button.d.ts +3 -3
  1155. package/lib/internal/template/token-group/dismiss-button.d.ts.map +1 -1
  1156. package/lib/internal/template/token-group/dismiss-button.js +4 -13
  1157. package/lib/internal/template/token-group/dismiss-button.js.map +1 -1
  1158. package/lib/internal/template/token-group/index.d.ts.map +1 -1
  1159. package/lib/internal/template/token-group/index.js.map +1 -1
  1160. package/lib/internal/template/token-group/interfaces.d.ts.map +1 -1
  1161. package/lib/internal/template/token-group/interfaces.js.map +1 -1
  1162. package/lib/internal/template/token-group/internal.d.ts +1 -1
  1163. package/lib/internal/template/token-group/internal.d.ts.map +1 -1
  1164. package/lib/internal/template/token-group/internal.js +16 -10
  1165. package/lib/internal/template/token-group/internal.js.map +1 -1
  1166. package/lib/internal/template/token-group/styles.css.js +5 -7
  1167. package/lib/internal/template/token-group/styles.scoped.css +13 -108
  1168. package/lib/internal/template/token-group/styles.selectors.js +5 -7
  1169. package/lib/internal/template/token-group/token.d.ts +13 -0
  1170. package/lib/internal/template/token-group/token.d.ts.map +1 -0
  1171. package/lib/internal/template/token-group/token.js +12 -0
  1172. package/lib/internal/template/token-group/token.js.map +1 -0
  1173. package/lib/internal/template/top-navigation/1.0-beta/index.d.ts.map +1 -1
  1174. package/lib/internal/template/top-navigation/1.0-beta/index.js.map +1 -1
  1175. package/lib/internal/template/top-navigation/1.0-beta/interfaces.d.ts.map +1 -1
  1176. package/lib/internal/template/top-navigation/1.0-beta/interfaces.js.map +1 -1
  1177. package/lib/internal/template/top-navigation/1.0-beta/internal.d.ts.map +1 -1
  1178. package/lib/internal/template/top-navigation/1.0-beta/internal.js.map +1 -1
  1179. package/lib/internal/template/top-navigation/1.0-beta/parts/overflow-menu.d.ts.map +1 -1
  1180. package/lib/internal/template/top-navigation/1.0-beta/parts/overflow-menu.js.map +1 -1
  1181. package/lib/internal/template/top-navigation/1.0-beta/parts/utility.d.ts.map +1 -1
  1182. package/lib/internal/template/top-navigation/1.0-beta/parts/utility.js.map +1 -1
  1183. package/lib/internal/template/top-navigation/1.0-beta/use-top-navigation.d.ts.map +1 -1
  1184. package/lib/internal/template/top-navigation/1.0-beta/use-top-navigation.js.map +1 -1
  1185. package/lib/internal/template/top-navigation/index.d.ts.map +1 -1
  1186. package/lib/internal/template/top-navigation/index.js.map +1 -1
  1187. package/lib/internal/template/top-navigation/interfaces.d.ts.map +1 -1
  1188. package/lib/internal/template/top-navigation/interfaces.js.map +1 -1
  1189. package/lib/internal/template/top-navigation/internal.d.ts.map +1 -1
  1190. package/lib/internal/template/top-navigation/internal.js.map +1 -1
  1191. package/lib/internal/template/top-navigation/parts/overflow-menu/header.d.ts.map +1 -1
  1192. package/lib/internal/template/top-navigation/parts/overflow-menu/header.js.map +1 -1
  1193. package/lib/internal/template/top-navigation/parts/overflow-menu/index.d.ts.map +1 -1
  1194. package/lib/internal/template/top-navigation/parts/overflow-menu/index.js.map +1 -1
  1195. package/lib/internal/template/top-navigation/parts/overflow-menu/menu-item.d.ts.map +1 -1
  1196. package/lib/internal/template/top-navigation/parts/overflow-menu/menu-item.js.map +1 -1
  1197. package/lib/internal/template/top-navigation/parts/overflow-menu/router.d.ts.map +1 -1
  1198. package/lib/internal/template/top-navigation/parts/overflow-menu/router.js.map +1 -1
  1199. package/lib/internal/template/top-navigation/parts/overflow-menu/views/submenu.d.ts.map +1 -1
  1200. package/lib/internal/template/top-navigation/parts/overflow-menu/views/submenu.js.map +1 -1
  1201. package/lib/internal/template/top-navigation/parts/overflow-menu/views/utilities.d.ts.map +1 -1
  1202. package/lib/internal/template/top-navigation/parts/overflow-menu/views/utilities.js.map +1 -1
  1203. package/lib/internal/template/top-navigation/parts/utility.d.ts.map +1 -1
  1204. package/lib/internal/template/top-navigation/parts/utility.js.map +1 -1
  1205. package/lib/internal/template/top-navigation/use-top-navigation.d.ts.map +1 -1
  1206. package/lib/internal/template/top-navigation/use-top-navigation.js.map +1 -1
  1207. package/lib/internal/template/tutorial-panel/components/tutorial-detail-view/congratulation-screen.d.ts +1 -1
  1208. package/lib/internal/template/tutorial-panel/components/tutorial-detail-view/congratulation-screen.d.ts.map +1 -1
  1209. package/lib/internal/template/tutorial-panel/components/tutorial-detail-view/congratulation-screen.js +1 -1
  1210. package/lib/internal/template/tutorial-panel/components/tutorial-detail-view/congratulation-screen.js.map +1 -1
  1211. package/lib/internal/template/tutorial-panel/components/tutorial-detail-view/index.d.ts.map +1 -1
  1212. package/lib/internal/template/tutorial-panel/components/tutorial-detail-view/index.js +2 -4
  1213. package/lib/internal/template/tutorial-panel/components/tutorial-detail-view/index.js.map +1 -1
  1214. package/lib/internal/template/tutorial-panel/components/tutorial-detail-view/task-list.d.ts.map +1 -1
  1215. package/lib/internal/template/tutorial-panel/components/tutorial-detail-view/task-list.js.map +1 -1
  1216. package/lib/internal/template/tutorial-panel/components/tutorial-detail-view/task.d.ts.map +1 -1
  1217. package/lib/internal/template/tutorial-panel/components/tutorial-detail-view/task.js.map +1 -1
  1218. package/lib/internal/template/tutorial-panel/components/tutorial-list/index.d.ts.map +1 -1
  1219. package/lib/internal/template/tutorial-panel/components/tutorial-list/index.js.map +1 -1
  1220. package/lib/internal/template/tutorial-panel/index.d.ts.map +1 -1
  1221. package/lib/internal/template/tutorial-panel/index.js.map +1 -1
  1222. package/lib/internal/template/tutorial-panel/interfaces.d.ts +1 -1
  1223. package/lib/internal/template/tutorial-panel/interfaces.d.ts.map +1 -1
  1224. package/lib/internal/template/tutorial-panel/interfaces.js.map +1 -1
  1225. package/lib/internal/template/wizard/index.d.ts.map +1 -1
  1226. package/lib/internal/template/wizard/index.js.map +1 -1
  1227. package/lib/internal/template/wizard/interfaces.d.ts.map +1 -1
  1228. package/lib/internal/template/wizard/interfaces.js.map +1 -1
  1229. package/lib/internal/template/wizard/internal/analytics.d.ts.map +1 -1
  1230. package/lib/internal/template/wizard/internal/analytics.js.map +1 -1
  1231. package/lib/internal/template/wizard/unmount.d.ts.map +1 -1
  1232. package/lib/internal/template/wizard/unmount.js.map +1 -1
  1233. package/lib/internal/template/wizard/wizard-actions.d.ts.map +1 -1
  1234. package/lib/internal/template/wizard/wizard-actions.js.map +1 -1
  1235. package/lib/internal/template/wizard/wizard-form-header.d.ts.map +1 -1
  1236. package/lib/internal/template/wizard/wizard-form-header.js.map +1 -1
  1237. package/lib/internal/template/wizard/wizard-form.d.ts.map +1 -1
  1238. package/lib/internal/template/wizard/wizard-form.js.map +1 -1
  1239. package/lib/internal/template/wizard/wizard-navigation.d.ts.map +1 -1
  1240. package/lib/internal/template/wizard/wizard-navigation.js.map +1 -1
  1241. package/package.json +1 -1
  1242. package/lib/internal/template/table/body-cell/use-stable-scroll-position.d.ts +0 -17
  1243. package/lib/internal/template/table/body-cell/use-stable-scroll-position.d.ts.map +0 -1
  1244. package/lib/internal/template/table/body-cell/use-stable-scroll-position.js +0 -51
  1245. package/lib/internal/template/table/body-cell/use-stable-scroll-position.js.map +0 -1
  1246. package/lib/internal/template/token-group/generic-token-group.d.ts +0 -24
  1247. package/lib/internal/template/token-group/generic-token-group.d.ts.map +0 -1
  1248. package/lib/internal/template/token-group/generic-token-group.js +0 -31
  1249. package/lib/internal/template/token-group/generic-token-group.js.map +0 -1
  1250. package/lib/internal/template/token-group/toggle.d.ts +0 -14
  1251. package/lib/internal/template/token-group/toggle.d.ts.map +0 -1
  1252. package/lib/internal/template/token-group/toggle.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"internal.js","sourceRoot":"","sources":["../../../src/progress-bar/internal.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,WAAW,MAAM,iBAAiB,CAAC;AAE1C,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,uBAAuB,MAAM,8BAA8B,CAAC;AAGnE,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAErC,MAAM,SAAS,GAAG,GAAG,CAAC;AAEtB,MAAM,KAAK,GAAG,CAAC,KAAa,EAAE,UAAkB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.0\nimport React from 'react';\nimport clsx from 'clsx';\nimport { BoxProps } from '../box/interfaces';\nimport InternalBox from '../box/internal';\nimport { ButtonProps } from '../button/interfaces';\nimport { InternalButton } from '../button/internal';\nimport InternalStatusIndicator from '../status-indicator/internal';\n\nimport { ProgressBarProps } from './interfaces';\nimport styles from './styles.css.js';\n\nconst MAX_VALUE = 100;\n\nconst clamp = (value: number, lowerLimit: number, upperLimit: number) => {\n return Math.max(Math.min(value, upperLimit), lowerLimit);\n};\n\ninterface ProgressProps {\n value: number;\n isInFlash: boolean;\n labelId: string;\n}\nexport const Progress = ({ value, isInFlash, labelId }: ProgressProps) => {\n const roundedValue = Math.round(value);\n const progressValue = clamp(roundedValue, 0, MAX_VALUE);\n\n return (\n <div className={styles['progress-container']}>\n <progress\n className={clsx(\n styles.progress,\n progressValue >= MAX_VALUE && styles.complete,\n isInFlash && styles['progress-in-flash']\n )}\n aria-valuenow={progressValue}\n aria-valuemin={0}\n max={MAX_VALUE}\n value={progressValue}\n aria-labelledby={labelId}\n />\n <span aria-hidden=\"true\" className={styles['percentage-container']}>\n <InternalBox className={styles.percentage} variant=\"small\" color={isInFlash ? 'inherit' : undefined}>\n {`${progressValue}%`}\n </InternalBox>\n </span>\n </div>\n );\n};\n\ninterface SmallTextProps {\n color?: BoxProps.Color;\n children: React.ReactNode;\n}\n\nexport const SmallText = ({ color, children }: SmallTextProps) => {\n return (\n <InternalBox className={styles['word-wrap']} variant=\"small\" display=\"block\" color={color}>\n {children}\n </InternalBox>\n );\n};\n\nconst ResultButton = ({ onClick, children }: ButtonProps) => {\n return (\n <div className={styles['result-button']}>\n <InternalButton formAction=\"none\" onClick={onClick}>\n {children}\n </InternalButton>\n </div>\n );\n};\n\ninterface ResultStateProps {\n isInFlash: boolean;\n resultText: React.ReactNode;\n resultButtonText?: string;\n status: ProgressBarProps.Status;\n onClick: () => void;\n}\n\nexport const ResultState = ({ isInFlash, resultText, resultButtonText, status, onClick }: ResultStateProps) => {\n const hasResultButton = !!resultButtonText;\n\n if (isInFlash) {\n return (\n <div className={styles[`result-container-${status}`]} aria-live=\"polite\" aria-atomic=\"true\">\n <span className={styles['result-text']}>{resultText}</span>\n </div>\n );\n }\n\n return (\n <div className={styles[`result-container-${status}`]} aria-live=\"polite\" aria-atomic=\"true\">\n <span className={clsx(hasResultButton && styles['with-result-button'])}>\n <InternalStatusIndicator type={status === 'success' ? 'success' : 'error'}>\n <span className={styles['result-text']}>{resultText}</span>\n </InternalStatusIndicator>\n </span>\n {hasResultButton && <ResultButton onClick={onClick}>{resultButtonText}</ResultButton>}\n </div>\n );\n};\n"]}
1
+ {"version":3,"file":"internal.js","sourceRoot":"lib/default/","sources":["progress-bar/internal.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,WAAW,MAAM,iBAAiB,CAAC;AAE1C,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,uBAAuB,MAAM,8BAA8B,CAAC;AAGnE,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAErC,MAAM,SAAS,GAAG,GAAG,CAAC;AAEtB,MAAM,KAAK,GAAG,CAAC,KAAa,EAAE,UAAkB,EAAE,UAAkB,EAAE,EAAE;IACtE,OAAO,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,UAAU,CAAC,EAAE,UAAU,CAAC,CAAC;AAC3D,CAAC,CAAC;AAOF,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAiB,EAAE,EAAE;IACvE,MAAM,YAAY,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IACvC,MAAM,aAAa,GAAG,KAAK,CAAC,YAAY,EAAE,CAAC,EAAE,SAAS,CAAC,CAAC;IAExD,OAAO,CACL,6BAAK,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AAM,eAAe,GAAG,CAAC,CAAC,gBAAgB,CAAC;IAE3C,IAAI,SAAS,EAAE;QACb,OAAO,CACL,6BAAK,SAAS,EAAE,MAAM,CAAC,oBAAoB,MAAM,EAAE,CAAC,eAAY,QAAQ,iBAAa,MAAM;YACzF,8BAAM,SAAS,EAAE,MAAM,CAAC,aAAa,CAAC,IAAG,UAAU,CAAQ,CACvD,CACP,CAAC;KACH;IAED,OAAO,CACL,6BAAK,SAAS,EAAE,MAAM,CAAC,oBAAoB,MAAM,EAAE,CAAC,eAAY,QAAQ,iBAAa,MAAM;QACzF,8BAAM,SAAS,EAAE,IAAI,CAAC,eAAe,IAAI,MAAM,CAAC,oBAAoB,CAAC,CAAC;YACpE,oBAAC,uBAAuB,IAAC,IAAI,EAAE,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO;gBACvE,8BAAM,SAAS,EAAE,MAAM,CAAC,aAAa,CAAC,IAAG,UAAU,CAAQ,CACnC,CACrB;QACN,eAAe,IAAI,oBAAC,YAAY,IAAC,OAAO,EAAE,OAAO,IAAG,gBAAgB,CAAgB,CACjF,CACP,CAAC;AACJ,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\nimport clsx from 'clsx';\nimport { BoxProps } from '../box/interfaces';\nimport InternalBox from '../box/internal';\nimport { ButtonProps } from '../button/interfaces';\nimport { InternalButton } from '../button/internal';\nimport InternalStatusIndicator from '../status-indicator/internal';\n\nimport { ProgressBarProps } from './interfaces';\nimport styles from './styles.css.js';\n\nconst MAX_VALUE = 100;\n\nconst clamp = (value: number, lowerLimit: number, upperLimit: number) => {\n return Math.max(Math.min(value, upperLimit), lowerLimit);\n};\n\ninterface ProgressProps {\n value: number;\n isInFlash: boolean;\n labelId: string;\n}\nexport const Progress = ({ value, isInFlash, labelId }: ProgressProps) => {\n const roundedValue = Math.round(value);\n const progressValue = clamp(roundedValue, 0, MAX_VALUE);\n\n return (\n <div className={styles['progress-container']}>\n <progress\n className={clsx(\n styles.progress,\n progressValue >= MAX_VALUE && styles.complete,\n isInFlash && styles['progress-in-flash']\n )}\n aria-valuenow={progressValue}\n aria-valuemin={0}\n max={MAX_VALUE}\n value={progressValue}\n aria-labelledby={labelId}\n />\n <span aria-hidden=\"true\" className={styles['percentage-container']}>\n <InternalBox className={styles.percentage} variant=\"small\" color={isInFlash ? 'inherit' : undefined}>\n {`${progressValue}%`}\n </InternalBox>\n </span>\n </div>\n );\n};\n\ninterface SmallTextProps {\n color?: BoxProps.Color;\n children: React.ReactNode;\n}\n\nexport const SmallText = ({ color, children }: SmallTextProps) => {\n return (\n <InternalBox className={styles['word-wrap']} variant=\"small\" display=\"block\" color={color}>\n {children}\n </InternalBox>\n );\n};\n\nconst ResultButton = ({ onClick, children }: ButtonProps) => {\n return (\n <div className={styles['result-button']}>\n <InternalButton formAction=\"none\" onClick={onClick}>\n {children}\n </InternalButton>\n </div>\n );\n};\n\ninterface ResultStateProps {\n isInFlash: boolean;\n resultText: React.ReactNode;\n resultButtonText?: string;\n status: ProgressBarProps.Status;\n onClick: () => void;\n}\n\nexport const ResultState = ({ isInFlash, resultText, resultButtonText, status, onClick }: ResultStateProps) => {\n const hasResultButton = !!resultButtonText;\n\n if (isInFlash) {\n return (\n <div className={styles[`result-container-${status}`]} aria-live=\"polite\" aria-atomic=\"true\">\n <span className={styles['result-text']}>{resultText}</span>\n </div>\n );\n }\n\n return (\n <div className={styles[`result-container-${status}`]} aria-live=\"polite\" aria-atomic=\"true\">\n <span className={clsx(hasResultButton && styles['with-result-button'])}>\n <InternalStatusIndicator type={status === 'success' ? 'success' : 'error'}>\n <span className={styles['result-text']}>{resultText}</span>\n </InternalStatusIndicator>\n </span>\n {hasResultButton && <ResultButton onClick={onClick}>{resultButtonText}</ResultButton>}\n </div>\n );\n};\n"]}
@@ -54,5 +54,11 @@ export declare const getAutosuggestOptions: (parsedText: ParsedText, filteringOp
54
54
  }>)[];
55
55
  };
56
56
  export declare const operatorToDescription: (operator: ComparisonOperator, i18nStrings: I18nStrings) => string | undefined;
57
+ export declare function getFormattedToken(filteringProperties: readonly FilteringProperty[], token: Token): {
58
+ property: string | undefined;
59
+ operator: import("@cloudscape-design/collection-hooks").PropertyFilterOperator;
60
+ value: any;
61
+ label: string;
62
+ };
57
63
  export {};
58
64
  //# sourceMappingURL=controller.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"controller.d.ts","sourceRoot":"","sources":["../../../src/property-filter/controller.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,kBAAkB,EAElB,eAAe,EACf,iBAAiB,EACjB,SAAS,EACT,WAAW,EACX,aAAa,EACb,UAAU,EACV,KAAK,EACL,KAAK,EACN,MAAM,cAAc,CAAC;AACtB,OAAO,EAA0B,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAGvF,OAAO,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AAE/E,eAAO,MAAM,eAAe,UACnB,KAAK,YACF,0BAA0B,KAAK,CAAC,YAChC,MAAM,SAAS,CAAC,mBAAmB,CAAC;sBAKrB,MAAM,YAAY,KAAK;yBAOpB,MAAM;;yBASN,KAAK;iCAKG,aAAa;CAUlD,CAAC;AAEF,eAAO,MAAM,mBAAmB,aAAc,iBAAiB,KAAG,kBAAkB,EAQnF,CAAC;AAQF,eAAO,MAAM,SAAS,kBACL,MAAM,sIAEK,OAAO,KAChC,UAyCF,CAAC;AAEF,eAAO,MAAM,kBAAkB,sBACV,iBAAiB,oBAClB,SAAS,eAAe,EAAE,yEAG7C,CAAC;AAEF,UAAU,WAAW,CAAC,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,CAAC,EAAE,CAAC;CACd;AAED,eAAO,MAAM,sBAAsB,qBACf,SAAS,eAAe,EAAE,uBACvB,SAAS,iBAAiB,EAAE,YACvC,kBAAkB,GAAG,SAAS,eAC3B,WAA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,EAAE,oBAC/B,SAAS,SAAS,EAAE,eACzB,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqEzB,CAAC;AAEF,eAAO,MAAM,qBAAqB,aAAc,kBAAkB,eAAe,WAAW,uBAY3F,CAAC;AAEF,wBAAgB,iBAAiB,CAAC,mBAAmB,EAAE,SAAS,iBAAiB,EAAE,EAAE,KAAK,EAAE,KAAK;;;;;EAQhG"}
@@ -263,4 +263,13 @@ export const operatorToDescription = (operator, i18nStrings) => {
263
263
  };
264
264
  return mapping[operator];
265
265
  };
266
+ export function getFormattedToken(filteringProperties, token) {
267
+ var _a;
268
+ const valueFormatter = token.propertyKey && ((_a = getExtendedOperator(filteringProperties, token.propertyKey, token.operator)) === null || _a === void 0 ? void 0 : _a.format);
269
+ const property = token.propertyKey && getPropertyByKey(filteringProperties, token.propertyKey);
270
+ const propertyLabel = property && property.propertyLabel;
271
+ const tokenValue = valueFormatter ? valueFormatter(token.value) : token.value;
272
+ const label = `${propertyLabel !== null && propertyLabel !== void 0 ? propertyLabel : ''} ${token.operator} ${tokenValue}`;
273
+ return { property: propertyLabel, operator: token.operator, value: tokenValue, label };
274
+ }
266
275
  //# sourceMappingURL=controller.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"controller.js","sourceRoot":"","sources":["../../../src/property-filter/controller.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AActC,OAAO,EAAE,sBAAsB,EAA6B,MAAM,oBAAoB,CAAC;AAEvF,OAAO,EAAE,sBAAsB,EAAE,aAAa,EAAE,mBAAmB,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAGhH,MAAM,CAAC,MAAM,eAAe,GAAG,CAC7B,KAAY,EACZ,QAA0C,EAC1C,QAA8C,EAC9C,EAAE;IACF,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;IACpC,MAAM,YAAY,GAAG,CAAC,MAAwB,EAAE,SAAwB,EAAE,EA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,WAAW,CAAC,gBAAgB;QACnC,CAAC,IAAI,CAAC,EAAE,WAAW,CAAC,uBAAuB;QAC3C,CAAC,GAAG,CAAC,EAAE,WAAW,CAAC,mBAAmB;QACtC,CAAC,IAAI,CAAC,EAAE,WAAW,CAAC,0BAA0B;QAC9C,CAAC,GAAG,CAAC,EAAE,WAAW,CAAC,oBAAoB;QACvC,CAAC,IAAI,CAAC,EAAE,WAAW,CAAC,0BAA0B;QAC9C,CAAC,GAAG,CAAC,EAAE,WAAW,CAAC,kBAAkB;QACrC,CAAC,IAAI,CAAC,EAAE,WAAW,CAAC,wBAAwB;KAC7C,CAAC;IACF,OAAO,OAAO,CAAC,QAAQ,CAAC,CAAC;AAC3B,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport {\n ComparisonOperator,\n ExtendedOperatorForm,\n FilteringOption,\n FilteringProperty,\n GroupText,\n I18nStrings,\n JoinOperation,\n ParsedText,\n Query,\n Token,\n} from './interfaces';\nimport { fireNonCancelableEvent, NonCancelableEventHandler } from '../internal/events';\nimport { AutosuggestProps } from '../autosuggest/interfaces';\nimport { matchFilteringProperty, matchOperator, matchOperatorPrefix, trimFirstSpace, trimStart } from './utils';\nimport { AutosuggestInputRef } from '../internal/components/autosuggest-input';\n\nexport const getQueryActions = (\n query: Query,\n onChange: NonCancelableEventHandler<Query>,\n inputRef: React.RefObject<AutosuggestInputRef>\n) => {\n const { tokens, operation } = query;\n const fireOnChange = (tokens: readonly Token[], operation: JoinOperation) =>\n fireNonCancelableEvent(onChange, { tokens, operation });\n const setToken = (index: number, newToken: Token) => {\n const newTokens = [...tokens];\n if (newTokens && index < newTokens.length) {\n newTokens[index] = newToken;\n }\n fireOnChange(newTokens, operation);\n };\n const removeToken = (index: number) => {\n const newTokens = tokens.filter((_, i) => i !== index);\n fireOnChange(newTokens, operation);\n inputRef.current?.focus({ preventDropdown: true });\n };\n const removeAllTokens = () => {\n fireOnChange([], operation);\n inputRef.current?.focus({ preventDropdown: true });\n };\n const addToken = (newToken: Token) => {\n const newTokens = [...tokens];\n newTokens.push(newToken);\n fireOnChange(newTokens, operation);\n };\n const setOperation = (newOperation: JoinOperation) => {\n fireOnChange(tokens, newOperation);\n };\n return {\n setToken,\n removeToken,\n removeAllTokens,\n addToken,\n setOperation,\n };\n};\n\nexport const getAllowedOperators = (property: FilteringProperty): ComparisonOperator[] => {\n const { operators = [], defaultOperator } = property;\n const operatorOrder = ['=', '!=', ':', '!:', '>=', '<=', '<', '>'] as const;\n const operatorSet = new Set([\n defaultOperator ?? '=',\n ...operators.map(op => (typeof op === 'string' ? op : op.operator)),\n ]);\n return operatorOrder.filter(op => operatorSet.has(op));\n};\n\n/*\n * parses the value of the filtering input to figure out the current step of entering the token:\n * - \"property\": means that a filter on a particular column is being added, with operator already finalized\n * - \"operator\": means that a filter on a particular column is being added, with operator not yet finalized\n * - \"free-text\": means that a \"free text\" token is being added\n */\nexport const parseText = (\n filteringText: string,\n filteringProperties: readonly FilteringProperty[] = [],\n disableFreeTextFiltering: boolean\n): ParsedText => {\n const negatedGlobalQuery = /^(!:|!)(.*)/.exec(filteringText);\n if (!disableFreeTextFiltering && negatedGlobalQuery) {\n return {\n step: 'free-text',\n operator: '!:',\n value: negatedGlobalQuery[2],\n };\n }\n\n const property = matchFilteringProperty(filteringProperties, filteringText);\n if (!property) {\n return {\n step: 'free-text',\n value: filteringText,\n };\n }\n\n const allowedOps = getAllowedOperators(property);\n const textWithoutProperty = filteringText.substring(property.propertyLabel.length);\n const operator = matchOperator(allowedOps, trimStart(textWithoutProperty));\n if (operator) {\n const operatorLastIndex = textWithoutProperty.indexOf(operator) + operator.length;\n const textWithoutPropertyAndOperator = textWithoutProperty.slice(operatorLastIndex);\n // We need to remove the first leading space in case the user presses space\n // after the operator, for example: Owner: admin, will result in value of ` admin`\n // and we need to remove the first space, if the user added any more spaces only the\n // first one will be removed.\n const value = trimFirstSpace(textWithoutPropertyAndOperator);\n return { step: 'property', property, operator, value };\n }\n\n const operatorPrefix = matchOperatorPrefix(allowedOps, trimStart(textWithoutProperty));\n if (operatorPrefix !== null) {\n return { step: 'operator', property, operatorPrefix };\n }\n\n return {\n step: 'free-text',\n value: filteringText,\n };\n};\n\nexport const getPropertyOptions = (\n filteringProperty: FilteringProperty,\n filteringOptions: readonly FilteringOption[]\n) => {\n return filteringOptions.filter(option => option.propertyKey === filteringProperty.key);\n};\n\ninterface OptionGroup<T> {\n label: string;\n options: T[];\n}\n\nexport const getAllValueSuggestions = (\n filteringOptions: readonly FilteringOption[],\n filteringProperties: readonly FilteringProperty[],\n operator: ComparisonOperator | undefined = '=',\n i18nStrings: I18nStrings,\n customGroupsText: readonly GroupText[]\n) => {\n const defaultGroup: OptionGroup<AutosuggestProps.Option> = {\n label: i18nStrings.groupValuesText ?? '',\n options: [],\n };\n const customGroups: { [K in string]: OptionGroup<AutosuggestProps.Option> } = {};\n filteringOptions.forEach(filteringOption => {\n const property = getPropertyByKey(filteringProperties, filteringOption.propertyKey);\n // given option refers to a non-existent filtering property\n if (!property) {\n return;\n }\n // this option's filtering property does not support current operator\n if (getAllowedOperators(property).indexOf(operator) === -1) {\n return;\n }\n if (property.group && !customGroups[property.group]) {\n const label = customGroupsText.reduce<string>(\n (acc, customGroup) => (customGroup.group === property.group ? customGroup.values : acc),\n ''\n );\n customGroups[property.group] = {\n label,\n options: [],\n };\n }\n const propertyGroup = property.group ? customGroups[property.group] : defaultGroup;\n propertyGroup.options.push({\n value: property.propertyLabel + ' ' + (operator || '=') + ' ' + filteringOption.value,\n label: filteringOption.label ?? filteringOption.value,\n __labelPrefix: property.propertyLabel + ' ' + (operator || '='),\n });\n });\n return [defaultGroup, ...Object.keys(customGroups).map(group => customGroups[group])];\n};\n\nexport const getPropertyByKey = (filteringProperties: readonly FilteringProperty[], key: string) => {\n const propertyMap = filteringProperties.reduce<{ [K: string]: FilteringProperty }>((acc, property) => {\n acc[property.key] = property;\n return acc;\n }, {});\n return propertyMap[key] as FilteringProperty | undefined;\n};\n\nexport function getExtendedOperator(\n filteringProperties: readonly FilteringProperty[],\n property: string,\n operator: ComparisonOperator\n) {\n const matchedProperty = getPropertyByKey(filteringProperties, property);\n for (const matchedOperator of matchedProperty?.operators || []) {\n if (typeof matchedOperator === 'object' && matchedOperator.operator === operator) {\n return matchedOperator;\n }\n }\n return null;\n}\n\nexport function createPropertiesCompatibilityMap(\n filteringProperties: readonly FilteringProperty[]\n): (propertyA: string, propertyB: string) => boolean {\n const lookup: {\n [propertyKey: string]: { operator: string; form: ExtendedOperatorForm<any> | undefined }[];\n } = {};\n\n for (const property of filteringProperties) {\n lookup[property.key] = (property.operators || [])\n .map(operator =>\n typeof operator === 'object'\n ? { operator: operator.operator, form: operator.form }\n : { operator, form: undefined }\n )\n .sort((a, b) => a.operator.localeCompare(b.operator));\n }\n\n return (propertyA: string, propertyB: string) => {\n if (lookup[propertyA].length !== lookup[propertyB].length) {\n return false;\n }\n for (let i = 0; i < lookup[propertyA].length; i++) {\n if (lookup[propertyA][i].operator !== lookup[propertyB][i].operator) {\n return false;\n }\n if (lookup[propertyA][i].form !== lookup[propertyB][i].form) {\n return false;\n }\n }\n return true;\n };\n}\n\nconst filteringPropertyToAutosuggestOption = (filteringProperty: FilteringProperty) => ({\n value: filteringProperty.propertyLabel,\n label: filteringProperty.propertyLabel,\n keepOpenOnSelect: true,\n});\n\nexport function getPropertySuggestions<T>(\n filteringProperties: readonly FilteringProperty[],\n customGroupsText: readonly GroupText[],\n i18nStrings: I18nStrings,\n filteringPropertyToOption: (filteringProperty: FilteringProperty) => T\n) {\n const defaultGroup: OptionGroup<T> = {\n label: i18nStrings.groupPropertiesText ?? '',\n options: [],\n };\n const customGroups: { [K in string]: OptionGroup<T> } = {};\n\n filteringProperties.forEach(filteringProperty => {\n const { group } = filteringProperty;\n let optionsGroup = defaultGroup;\n if (group) {\n if (!customGroups[group]) {\n const label = customGroupsText.reduce<string>(\n (acc, customGroup) => (customGroup.group === group ? customGroup.properties : acc),\n ''\n );\n customGroups[group] = { options: [], label };\n }\n optionsGroup = customGroups[group];\n }\n optionsGroup.options.push(filteringPropertyToOption(filteringProperty));\n });\n const defaultGroupArray = defaultGroup.options.length ? [defaultGroup] : [];\n const customGroupsArray = Object.keys(customGroups).map(groupKey => customGroups[groupKey]);\n return [...defaultGroupArray, ...customGroupsArray];\n}\n\nexport const getAutosuggestOptions = (\n parsedText: ParsedText,\n filteringOptions: readonly FilteringOption[],\n filteringProperties: readonly FilteringProperty[],\n customGroupsText: readonly GroupText[],\n i18nStrings: I18nStrings\n) => {\n switch (parsedText.step) {\n case 'property': {\n const { propertyLabel, groupValuesLabel } = parsedText.property;\n const options = getPropertyOptions(parsedText.property, filteringOptions);\n return {\n filterText: parsedText.value,\n options: [\n {\n options: options.map(({ label, value }) => ({\n value: propertyLabel + ' ' + parsedText.operator + ' ' + value,\n label: label ?? value,\n __labelPrefix: propertyLabel + ' ' + parsedText.operator,\n })),\n label: groupValuesLabel,\n },\n ],\n };\n }\n case 'operator': {\n return {\n filterText: parsedText.property.propertyLabel + ' ' + parsedText.operatorPrefix,\n options: [\n ...getPropertySuggestions(\n filteringProperties,\n customGroupsText,\n i18nStrings,\n filteringPropertyToAutosuggestOption\n ),\n {\n options: getAllowedOperators(parsedText.property).map(value => ({\n value: parsedText.property.propertyLabel + ' ' + value + ' ',\n label: parsedText.property.propertyLabel + ' ' + value,\n description: operatorToDescription(value, i18nStrings),\n keepOpenOnSelect: true,\n })),\n label: i18nStrings.operatorsText,\n },\n ],\n };\n }\n case 'free-text': {\n const needsValueSuggestions = !!parsedText.value;\n const needsPropertySuggestions = !(parsedText.step === 'free-text' && parsedText.operator === '!:');\n return {\n filterText: parsedText.value,\n options: [\n ...(needsPropertySuggestions\n ? getPropertySuggestions(\n filteringProperties,\n customGroupsText,\n i18nStrings,\n filteringPropertyToAutosuggestOption\n )\n : []),\n ...(needsValueSuggestions\n ? getAllValueSuggestions(\n filteringOptions,\n filteringProperties,\n parsedText.operator,\n i18nStrings,\n customGroupsText\n )\n : []),\n ],\n };\n }\n }\n};\n\nexport const operatorToDescription = (operator: ComparisonOperator, i18nStrings: I18nStrings) => {\n const mapping: { [K in ComparisonOperator]: string | undefined } = {\n ['<']: i18nStrings.operatorLessText,\n ['<=']: i18nStrings.operatorLessOrEqualText,\n ['>']: i18nStrings.operatorGreaterText,\n ['>=']: i18nStrings.operatorGreaterOrEqualText,\n [':']: i18nStrings.operatorContainsText,\n ['!:']: i18nStrings.operatorDoesNotContainText,\n ['=']: i18nStrings.operatorEqualsText,\n ['!=']: i18nStrings.operatorDoesNotEqualText,\n };\n return mapping[operator];\n};\n"]}
1
+ {"version":3,"file":"controller.js","sourceRoot":"lib/default/","sources":["property-filter/controller.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AActC,OAAO,EAAE,sBAAsB,EAA6B,MAAM,oBAAoB,CAAC;AAEvF,OAAO,EAAE,sBAAsB,EAAE,aAAa,EAAE,mBAAmB,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAGhH,MAAM,CAAC,MAAM,eAAe,GAAG,CAC7B,KAAY,EACZ,QAA0C,EAC1C,QAA8C,EAC9C,EAAE;IACF,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;IACpC,MAAM,YAAY,GAAG,CAAC,MAAwB,EAAE,SAAwB,EAAE,EAAE,CAC1E,sBAAsB,CAAC,QAAQ,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC;IAC1D,MAAM,QAAQ,GAAG,CAAC,KAAa,EAAE,QAAe,EAAE,EAAE;QAClD,MAAM,SAAS,GAAG,CAAC,GAAG,MAAM,CAAC,CAAC;QAC9B,IAAI,SAAS,IAAI,KAAK,GAAG,SAAS,CAAC,MAAM,EAAE;YACzC,SAAS,CAAC,KAAK,CAAC,GAAG,QAAQ,CAAC;SAC7B;QACD,YAAY,CAAC,SAAS,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C,IAAI,CAAC,EAAE,WAAW,CAAC,wBAAwB;KAC7C,CAAC;IACF,OAAO,OAAO,CAAC,QAAQ,CAAC,CAAC;AAC3B,CAAC,CAAC;AAEF,MAAM,UAAU,iBAAiB,CAAC,mBAAiD,EAAE,KAAY;;IAC/F,MAAM,cAAc,GAClB,KAAK,CAAC,WAAW,KAAI,MAAA,mBAAmB,CAAC,mBAAmB,EAAE,KAAK,CAAC,WAAW,EAAE,KAAK,CAAC,QAAQ,CAAC,0CAAE,MAAM,CAAA,CAAC;IAC3G,MAAM,QAAQ,GAAG,KAAK,CAAC,WAAW,IAAI,gBAAgB,CAAC,mBAAmB,EAAE,KAAK,CAAC,WAAW,CAAC,CAAC;IAC/F,MAAM,aAAa,GAAG,QAAQ,IAAI,QAAQ,CAAC,aAAa,CAAC;IACzD,MAAM,UAAU,GAAG,cAAc,CAAC,CAAC,CAAC,cAAc,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC;IAC9E,MAAM,KAAK,GAAG,GAAG,aAAa,aAAb,aAAa,cAAb,aAAa,GAAI,EAAE,IAAI,KAAK,CAAC,QAAQ,IAAI,UAAU,EAAE,CAAC;IACvE,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,CAAC,QAAQ,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,CAAC;AACzF,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport {\n ComparisonOperator,\n ExtendedOperatorForm,\n FilteringOption,\n FilteringProperty,\n GroupText,\n I18nStrings,\n JoinOperation,\n ParsedText,\n Query,\n Token,\n} from './interfaces';\nimport { fireNonCancelableEvent, NonCancelableEventHandler } from '../internal/events';\nimport { AutosuggestProps } from '../autosuggest/interfaces';\nimport { matchFilteringProperty, matchOperator, matchOperatorPrefix, trimFirstSpace, trimStart } from './utils';\nimport { AutosuggestInputRef } from '../internal/components/autosuggest-input';\n\nexport const getQueryActions = (\n query: Query,\n onChange: NonCancelableEventHandler<Query>,\n inputRef: React.RefObject<AutosuggestInputRef>\n) => {\n const { tokens, operation } = query;\n const fireOnChange = (tokens: readonly Token[], operation: JoinOperation) =>\n fireNonCancelableEvent(onChange, { tokens, operation });\n const setToken = (index: number, newToken: Token) => {\n const newTokens = [...tokens];\n if (newTokens && index < newTokens.length) {\n newTokens[index] = newToken;\n }\n fireOnChange(newTokens, operation);\n };\n const removeToken = (index: number) => {\n const newTokens = tokens.filter((_, i) => i !== index);\n fireOnChange(newTokens, operation);\n inputRef.current?.focus({ preventDropdown: true });\n };\n const removeAllTokens = () => {\n fireOnChange([], operation);\n inputRef.current?.focus({ preventDropdown: true });\n };\n const addToken = (newToken: Token) => {\n const newTokens = [...tokens];\n newTokens.push(newToken);\n fireOnChange(newTokens, operation);\n };\n const setOperation = (newOperation: JoinOperation) => {\n fireOnChange(tokens, newOperation);\n };\n return {\n setToken,\n removeToken,\n removeAllTokens,\n addToken,\n setOperation,\n };\n};\n\nexport const getAllowedOperators = (property: FilteringProperty): ComparisonOperator[] => {\n const { operators = [], defaultOperator } = property;\n const operatorOrder = ['=', '!=', ':', '!:', '>=', '<=', '<', '>'] as const;\n const operatorSet = new Set([\n defaultOperator ?? '=',\n ...operators.map(op => (typeof op === 'string' ? op : op.operator)),\n ]);\n return operatorOrder.filter(op => operatorSet.has(op));\n};\n\n/*\n * parses the value of the filtering input to figure out the current step of entering the token:\n * - \"property\": means that a filter on a particular column is being added, with operator already finalized\n * - \"operator\": means that a filter on a particular column is being added, with operator not yet finalized\n * - \"free-text\": means that a \"free text\" token is being added\n */\nexport const parseText = (\n filteringText: string,\n filteringProperties: readonly FilteringProperty[] = [],\n disableFreeTextFiltering: boolean\n): ParsedText => {\n const negatedGlobalQuery = /^(!:|!)(.*)/.exec(filteringText);\n if (!disableFreeTextFiltering && negatedGlobalQuery) {\n return {\n step: 'free-text',\n operator: '!:',\n value: negatedGlobalQuery[2],\n };\n }\n\n const property = matchFilteringProperty(filteringProperties, filteringText);\n if (!property) {\n return {\n step: 'free-text',\n value: filteringText,\n };\n }\n\n const allowedOps = getAllowedOperators(property);\n const textWithoutProperty = filteringText.substring(property.propertyLabel.length);\n const operator = matchOperator(allowedOps, trimStart(textWithoutProperty));\n if (operator) {\n const operatorLastIndex = textWithoutProperty.indexOf(operator) + operator.length;\n const textWithoutPropertyAndOperator = textWithoutProperty.slice(operatorLastIndex);\n // We need to remove the first leading space in case the user presses space\n // after the operator, for example: Owner: admin, will result in value of ` admin`\n // and we need to remove the first space, if the user added any more spaces only the\n // first one will be removed.\n const value = trimFirstSpace(textWithoutPropertyAndOperator);\n return { step: 'property', property, operator, value };\n }\n\n const operatorPrefix = matchOperatorPrefix(allowedOps, trimStart(textWithoutProperty));\n if (operatorPrefix !== null) {\n return { step: 'operator', property, operatorPrefix };\n }\n\n return {\n step: 'free-text',\n value: filteringText,\n };\n};\n\nexport const getPropertyOptions = (\n filteringProperty: FilteringProperty,\n filteringOptions: readonly FilteringOption[]\n) => {\n return filteringOptions.filter(option => option.propertyKey === filteringProperty.key);\n};\n\ninterface OptionGroup<T> {\n label: string;\n options: T[];\n}\n\nexport const getAllValueSuggestions = (\n filteringOptions: readonly FilteringOption[],\n filteringProperties: readonly FilteringProperty[],\n operator: ComparisonOperator | undefined = '=',\n i18nStrings: I18nStrings,\n customGroupsText: readonly GroupText[]\n) => {\n const defaultGroup: OptionGroup<AutosuggestProps.Option> = {\n label: i18nStrings.groupValuesText ?? '',\n options: [],\n };\n const customGroups: { [K in string]: OptionGroup<AutosuggestProps.Option> } = {};\n filteringOptions.forEach(filteringOption => {\n const property = getPropertyByKey(filteringProperties, filteringOption.propertyKey);\n // given option refers to a non-existent filtering property\n if (!property) {\n return;\n }\n // this option's filtering property does not support current operator\n if (getAllowedOperators(property).indexOf(operator) === -1) {\n return;\n }\n if (property.group && !customGroups[property.group]) {\n const label = customGroupsText.reduce<string>(\n (acc, customGroup) => (customGroup.group === property.group ? customGroup.values : acc),\n ''\n );\n customGroups[property.group] = {\n label,\n options: [],\n };\n }\n const propertyGroup = property.group ? customGroups[property.group] : defaultGroup;\n propertyGroup.options.push({\n value: property.propertyLabel + ' ' + (operator || '=') + ' ' + filteringOption.value,\n label: filteringOption.label ?? filteringOption.value,\n __labelPrefix: property.propertyLabel + ' ' + (operator || '='),\n });\n });\n return [defaultGroup, ...Object.keys(customGroups).map(group => customGroups[group])];\n};\n\nexport const getPropertyByKey = (filteringProperties: readonly FilteringProperty[], key: string) => {\n const propertyMap = filteringProperties.reduce<{ [K: string]: FilteringProperty }>((acc, property) => {\n acc[property.key] = property;\n return acc;\n }, {});\n return propertyMap[key] as FilteringProperty | undefined;\n};\n\nexport function getExtendedOperator(\n filteringProperties: readonly FilteringProperty[],\n property: string,\n operator: ComparisonOperator\n) {\n const matchedProperty = getPropertyByKey(filteringProperties, property);\n for (const matchedOperator of matchedProperty?.operators || []) {\n if (typeof matchedOperator === 'object' && matchedOperator.operator === operator) {\n return matchedOperator;\n }\n }\n return null;\n}\n\nexport function createPropertiesCompatibilityMap(\n filteringProperties: readonly FilteringProperty[]\n): (propertyA: string, propertyB: string) => boolean {\n const lookup: {\n [propertyKey: string]: { operator: string; form: ExtendedOperatorForm<any> | undefined }[];\n } = {};\n\n for (const property of filteringProperties) {\n lookup[property.key] = (property.operators || [])\n .map(operator =>\n typeof operator === 'object'\n ? { operator: operator.operator, form: operator.form }\n : { operator, form: undefined }\n )\n .sort((a, b) => a.operator.localeCompare(b.operator));\n }\n\n return (propertyA: string, propertyB: string) => {\n if (lookup[propertyA].length !== lookup[propertyB].length) {\n return false;\n }\n for (let i = 0; i < lookup[propertyA].length; i++) {\n if (lookup[propertyA][i].operator !== lookup[propertyB][i].operator) {\n return false;\n }\n if (lookup[propertyA][i].form !== lookup[propertyB][i].form) {\n return false;\n }\n }\n return true;\n };\n}\n\nconst filteringPropertyToAutosuggestOption = (filteringProperty: FilteringProperty) => ({\n value: filteringProperty.propertyLabel,\n label: filteringProperty.propertyLabel,\n keepOpenOnSelect: true,\n});\n\nexport function getPropertySuggestions<T>(\n filteringProperties: readonly FilteringProperty[],\n customGroupsText: readonly GroupText[],\n i18nStrings: I18nStrings,\n filteringPropertyToOption: (filteringProperty: FilteringProperty) => T\n) {\n const defaultGroup: OptionGroup<T> = {\n label: i18nStrings.groupPropertiesText ?? '',\n options: [],\n };\n const customGroups: { [K in string]: OptionGroup<T> } = {};\n\n filteringProperties.forEach(filteringProperty => {\n const { group } = filteringProperty;\n let optionsGroup = defaultGroup;\n if (group) {\n if (!customGroups[group]) {\n const label = customGroupsText.reduce<string>(\n (acc, customGroup) => (customGroup.group === group ? customGroup.properties : acc),\n ''\n );\n customGroups[group] = { options: [], label };\n }\n optionsGroup = customGroups[group];\n }\n optionsGroup.options.push(filteringPropertyToOption(filteringProperty));\n });\n const defaultGroupArray = defaultGroup.options.length ? [defaultGroup] : [];\n const customGroupsArray = Object.keys(customGroups).map(groupKey => customGroups[groupKey]);\n return [...defaultGroupArray, ...customGroupsArray];\n}\n\nexport const getAutosuggestOptions = (\n parsedText: ParsedText,\n filteringOptions: readonly FilteringOption[],\n filteringProperties: readonly FilteringProperty[],\n customGroupsText: readonly GroupText[],\n i18nStrings: I18nStrings\n) => {\n switch (parsedText.step) {\n case 'property': {\n const { propertyLabel, groupValuesLabel } = parsedText.property;\n const options = getPropertyOptions(parsedText.property, filteringOptions);\n return {\n filterText: parsedText.value,\n options: [\n {\n options: options.map(({ label, value }) => ({\n value: propertyLabel + ' ' + parsedText.operator + ' ' + value,\n label: label ?? value,\n __labelPrefix: propertyLabel + ' ' + parsedText.operator,\n })),\n label: groupValuesLabel,\n },\n ],\n };\n }\n case 'operator': {\n return {\n filterText: parsedText.property.propertyLabel + ' ' + parsedText.operatorPrefix,\n options: [\n ...getPropertySuggestions(\n filteringProperties,\n customGroupsText,\n i18nStrings,\n filteringPropertyToAutosuggestOption\n ),\n {\n options: getAllowedOperators(parsedText.property).map(value => ({\n value: parsedText.property.propertyLabel + ' ' + value + ' ',\n label: parsedText.property.propertyLabel + ' ' + value,\n description: operatorToDescription(value, i18nStrings),\n keepOpenOnSelect: true,\n })),\n label: i18nStrings.operatorsText,\n },\n ],\n };\n }\n case 'free-text': {\n const needsValueSuggestions = !!parsedText.value;\n const needsPropertySuggestions = !(parsedText.step === 'free-text' && parsedText.operator === '!:');\n return {\n filterText: parsedText.value,\n options: [\n ...(needsPropertySuggestions\n ? getPropertySuggestions(\n filteringProperties,\n customGroupsText,\n i18nStrings,\n filteringPropertyToAutosuggestOption\n )\n : []),\n ...(needsValueSuggestions\n ? getAllValueSuggestions(\n filteringOptions,\n filteringProperties,\n parsedText.operator,\n i18nStrings,\n customGroupsText\n )\n : []),\n ],\n };\n }\n }\n};\n\nexport const operatorToDescription = (operator: ComparisonOperator, i18nStrings: I18nStrings) => {\n const mapping: { [K in ComparisonOperator]: string | undefined } = {\n ['<']: i18nStrings.operatorLessText,\n ['<=']: i18nStrings.operatorLessOrEqualText,\n ['>']: i18nStrings.operatorGreaterText,\n ['>=']: i18nStrings.operatorGreaterOrEqualText,\n [':']: i18nStrings.operatorContainsText,\n ['!:']: i18nStrings.operatorDoesNotContainText,\n ['=']: i18nStrings.operatorEqualsText,\n ['!=']: i18nStrings.operatorDoesNotEqualText,\n };\n return mapping[operator];\n};\n\nexport function getFormattedToken(filteringProperties: readonly FilteringProperty[], token: Token) {\n const valueFormatter =\n token.propertyKey && getExtendedOperator(filteringProperties, token.propertyKey, token.operator)?.format;\n const property = token.propertyKey && getPropertyByKey(filteringProperties, token.propertyKey);\n const propertyLabel = property && property.propertyLabel;\n const tokenValue = valueFormatter ? valueFormatter(token.value) : token.value;\n const label = `${propertyLabel ?? ''} ${token.operator} ${tokenValue}`;\n return { property: propertyLabel, operator: token.operator, value: tokenValue, label };\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"filter-options.d.ts","sourceRoot":"","sources":["../../../src/property-filter/filter-options.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAG7D,wBAAgB,aAAa,CAC3B,OAAO,EAAE,SAAS,CAAC,gBAAgB,CAAC,MAAM,GAAG,gBAAgB,CAAC,WAAW,CAAC,EAAE,EAC5E,UAAU,SAAK,GACd,SAAS,CAAC,gBAAgB,CAAC,MAAM,GAAG,gBAAgB,CAAC,WAAW,CAAC,EAAE,CAiBrE"}
1
+ {"version":3,"file":"filter-options.d.ts","sourceRoot":"lib/default/","sources":["property-filter/filter-options.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAG7D,wBAAgB,aAAa,CAC3B,OAAO,EAAE,SAAS,CAAC,gBAAgB,CAAC,MAAM,GAAG,gBAAgB,CAAC,WAAW,CAAC,EAAE,EAC5E,UAAU,SAAK,GACd,SAAS,CAAC,gBAAgB,CAAC,MAAM,GAAG,gBAAgB,CAAC,WAAW,CAAC,EAAE,CAiBrE"}
@@ -1 +1 @@
1
- {"version":3,"file":"filter-options.js","sourceRoot":"","sources":["../../../src/property-filter/filter-options.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAKtC,MAAM,UAAU,aAAa,CAC3B,OAA4E,EAC5E,UAAU,GAAG,EAAE;IAEf,IAAI,CAAC,UAAU,EAAE;QACf,OAAO,OAAO,CAAC;KAChB;IAED,MAAM,QAAQ,GAA+D,EAAE,CAAC;IAChF,KAAK,MAAM,MAAM,IAAI,OAAO,EAAE;QAC5B,IAAI,OAAO,CAAC,MAAM,CAAC,EAAE;YACnB,MAAM,YAAY,GAAG,aAAa,CAAC,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,CAAC;YAC/D,IAAI,YAAY,CAAC,MAAM,GAAG,CAAC,EAAE;gBAC3B,QAAQ,CAAC,IAAI,iCAAM,MAAM,KAAE,OAAO,EAAE,YAAY,IAAG,CAAC;aACrD;SACF;aAAM,IAAI,iBAAiB,CAAC,MAAM,EAAE,UAAU,CAAC,EAAE;YAChD,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;SACvB;KACF;IACD,OAAO,QAAQ,CAAC;AAClB,CAAC;AAED,SAAS,OAAO,CAAC,aAAsC;IACrD,OAAO,SAAS,IAAI,aAAa,CAAC;AACpC,CAAC;AAED,SAAS,iBAAiB,CAAC,MAAwB,EAAE,UAAkB;;IACrE,UAAU,GAAG,UAAU,CAAC,WAAW,EAAE,CAAC;IAEtC,MAAM,KAAK,GAAG,CAAC,MAAA,MAAM,CAAC,KAAK,mCAAI,EAAE,CAAC,CAAC,WAAW,EAAE,CAAC;IACjD,MAAM,WAAW,GAAG,MAAA,MAAM,CAAC,aAAa,mCAAI,EAAE,CAAC;IAC/C,MAAM,KAAK,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,WAAW,EAAE,CAAC;IACzF,OAAO,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC;AAC9E,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { AutosuggestProps } from '../autosuggest/interfaces';\nimport { OptionDefinition } from '../internal/components/option/interfaces';\n\nexport function filterOptions(\n options: readonly (AutosuggestProps.Option | AutosuggestProps.OptionGroup)[],\n searchText = ''\n): readonly (AutosuggestProps.Option | AutosuggestProps.OptionGroup)[] {\n if (!searchText) {\n return options;\n }\n\n const filtered: (AutosuggestProps.Option | AutosuggestProps.OptionGroup)[] = [];\n for (const option of options) {\n if (isGroup(option)) {\n const childOptions = filterOptions(option.options, searchText);\n if (childOptions.length > 0) {\n filtered.push({ ...option, options: childOptions });\n }\n } else if (matchSingleOption(option, searchText)) {\n filtered.push(option);\n }\n }\n return filtered;\n}\n\nfunction isGroup(optionOrGroup: AutosuggestProps.Option): optionOrGroup is AutosuggestProps.OptionGroup {\n return 'options' in optionOrGroup;\n}\n\nfunction matchSingleOption(option: OptionDefinition, searchText: string): boolean {\n searchText = searchText.toLowerCase();\n\n const label = (option.label ?? '').toLowerCase();\n const labelPrefix = option.__labelPrefix ?? '';\n const value = (option.value ? option.value.slice(labelPrefix.length) : '').toLowerCase();\n return label.indexOf(searchText) !== -1 || value.indexOf(searchText) !== -1;\n}\n"]}
1
+ {"version":3,"file":"filter-options.js","sourceRoot":"lib/default/","sources":["property-filter/filter-options.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAKtC,MAAM,UAAU,aAAa,CAC3B,OAA4E,EAC5E,UAAU,GAAG,EAAE;IAEf,IAAI,CAAC,UAAU,EAAE;QACf,OAAO,OAAO,CAAC;KAChB;IAED,MAAM,QAAQ,GAA+D,EAAE,CAAC;IAChF,KAAK,MAAM,MAAM,IAAI,OAAO,EAAE;QAC5B,IAAI,OAAO,CAAC,MAAM,CAAC,EAAE;YACnB,MAAM,YAAY,GAAG,aAAa,CAAC,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,CAAC;YAC/D,IAAI,YAAY,CAAC,MAAM,GAAG,CAAC,EAAE;gBAC3B,QAAQ,CAAC,IAAI,iCAAM,MAAM,KAAE,OAAO,EAAE,YAAY,IAAG,CAAC;aACrD;SACF;aAAM,IAAI,iBAAiB,CAAC,MAAM,EAAE,UAAU,CAAC,EAAE;YAChD,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;SACvB;KACF;IACD,OAAO,QAAQ,CAAC;AAClB,CAAC;AAED,SAAS,OAAO,CAAC,aAAsC;IACrD,OAAO,SAAS,IAAI,aAAa,CAAC;AACpC,CAAC;AAED,SAAS,iBAAiB,CAAC,MAAwB,EAAE,UAAkB;;IACrE,UAAU,GAAG,UAAU,CAAC,WAAW,EAAE,CAAC;IAEtC,MAAM,KAAK,GAAG,CAAC,MAAA,MAAM,CAAC,KAAK,mCAAI,EAAE,CAAC,CAAC,WAAW,EAAE,CAAC;IACjD,MAAM,WAAW,GAAG,MAAA,MAAM,CAAC,aAAa,mCAAI,EAAE,CAAC;IAC/C,MAAM,KAAK,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,WAAW,EAAE,CAAC;IACzF,OAAO,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC;AAC9E,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { AutosuggestProps } from '../autosuggest/interfaces';\nimport { OptionDefinition } from '../internal/components/option/interfaces';\n\nexport function filterOptions(\n options: readonly (AutosuggestProps.Option | AutosuggestProps.OptionGroup)[],\n searchText = ''\n): readonly (AutosuggestProps.Option | AutosuggestProps.OptionGroup)[] {\n if (!searchText) {\n return options;\n }\n\n const filtered: (AutosuggestProps.Option | AutosuggestProps.OptionGroup)[] = [];\n for (const option of options) {\n if (isGroup(option)) {\n const childOptions = filterOptions(option.options, searchText);\n if (childOptions.length > 0) {\n filtered.push({ ...option, options: childOptions });\n }\n } else if (matchSingleOption(option, searchText)) {\n filtered.push(option);\n }\n }\n return filtered;\n}\n\nfunction isGroup(optionOrGroup: AutosuggestProps.Option): optionOrGroup is AutosuggestProps.OptionGroup {\n return 'options' in optionOrGroup;\n}\n\nfunction matchSingleOption(option: OptionDefinition, searchText: string): boolean {\n searchText = searchText.toLowerCase();\n\n const label = (option.label ?? '').toLowerCase();\n const labelPrefix = option.__labelPrefix ?? '';\n const value = (option.value ? option.value.slice(labelPrefix.length) : '').toLowerCase();\n return label.indexOf(searchText) !== -1 || value.indexOf(searchText) !== -1;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/property-filter/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAyD,MAAM,OAAO,CAAC;AAY9E,OAAO,EAAE,mBAAmB,EAAiE,MAAM,cAAc,CAAC;AAmBlH,OAAO,EAAE,mBAAmB,EAAE,CAAC;AAa/B,QAAA,MAAM,cAAc,qGAiUnB,CAAC;AAGF,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"lib/default/","sources":["property-filter/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAgD,MAAM,OAAO,CAAC;AAWrE,OAAO,EAAE,mBAAmB,EAAiE,MAAM,cAAc,CAAC;AAqBlH,OAAO,EAAE,mBAAmB,EAAE,CAAC;AAa/B,QAAA,MAAM,cAAc,qGA4TnB,CAAC;AAGF,eAAe,cAAc,CAAC"}
@@ -2,17 +2,16 @@ import { __rest } from "tslib";
2
2
  // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
3
  // SPDX-License-Identifier: Apache-2.0
4
4
  import clsx from 'clsx';
5
- import React, { useRef, useState, useMemo, useImperativeHandle } from 'react';
5
+ import React, { useRef, useState, useImperativeHandle } from 'react';
6
6
  import InternalSpaceBetween from '../space-between/internal';
7
7
  import { InternalButton } from '../button/internal';
8
8
  import { getBaseProps } from '../internal/base-component';
9
9
  import { applyDisplayName } from '../internal/utils/apply-display-name';
10
10
  import { KeyCode } from '../internal/keycode';
11
- import SelectToggle from '../token-group/toggle';
12
- import { generateUniqueId, useUniqueId } from '../internal/hooks/use-unique-id/index';
11
+ import { useUniqueId } from '../internal/hooks/use-unique-id/index';
13
12
  import { fireNonCancelableEvent } from '../internal/events';
14
13
  import { TokenButton } from './token';
15
- import { getQueryActions, parseText, getAutosuggestOptions, getAllowedOperators, getExtendedOperator, } from './controller';
14
+ import { getQueryActions, parseText, getAutosuggestOptions, getAllowedOperators, getExtendedOperator, getFormattedToken, } from './controller';
16
15
  import { useLoadItems } from './use-load-items';
17
16
  import styles from './styles.css.js';
18
17
  import useBaseComponent from '../internal/hooks/use-base-component';
@@ -20,6 +19,7 @@ import PropertyFilterAutosuggest from './property-filter-autosuggest';
20
19
  import { PropertyEditor } from './property-editor';
21
20
  import { matchTokenValue } from './utils';
22
21
  import { useInternalI18n } from '../internal/i18n/context';
22
+ import TokenList from '../internal/components/token-list';
23
23
  import { SearchResults } from '../text-filter/search-results';
24
24
  const OPERATOR_I18N_MAPPING = {
25
25
  '=': 'equals',
@@ -35,6 +35,7 @@ const PropertyFilter = React.forwardRef((_a, ref) => {
35
35
  var _b, _c;
36
36
  var { disabled, countText, query, hideOperations, onChange, filteringProperties, filteringOptions = [], customGroupsText = [], disableFreeTextFiltering = false, onLoadItems, virtualScroll, customControl, filteringEmpty, filteringLoadingText, filteringFinishedText, filteringErrorText, filteringRecoveryText, filteringStatusType, asyncProperties, tokenLimit, expandToViewport } = _a, rest = __rest(_a, ["disabled", "countText", "query", "hideOperations", "onChange", "filteringProperties", "filteringOptions", "customGroupsText", "disableFreeTextFiltering", "onLoadItems", "virtualScroll", "customControl", "filteringEmpty", "filteringLoadingText", "filteringFinishedText", "filteringErrorText", "filteringRecoveryText", "filteringStatusType", "asyncProperties", "tokenLimit", "expandToViewport"]);
37
37
  const { __internalRootRef } = useBaseComponent('PropertyFilter');
38
+ const [removedTokenIndex, setRemovedTokenIndex] = useState(null);
38
39
  const inputRef = useRef(null);
39
40
  const baseProps = getBaseProps(rest);
40
41
  const i18n = useInternalI18n('property-filter');
@@ -146,11 +147,6 @@ const PropertyFilter = React.forwardRef((_a, ref) => {
146
147
  }
147
148
  fireNonCancelableEvent(onLoadItems, Object.assign(Object.assign({}, loadMoreDetail), { firstPage: true, samePage: false }));
148
149
  };
149
- const [tokensExpanded, setTokensExpanded] = useState(false);
150
- const toggleExpandedTokens = () => setTokensExpanded(!tokensExpanded);
151
- const hasHiddenOptions = tokenLimit !== undefined && tokens.length > tokenLimit;
152
- const slicedTokens = hasHiddenOptions && !tokensExpanded ? tokens.slice(0, tokenLimit) : tokens;
153
- const controlId = useMemo(() => generateUniqueId(), []);
154
150
  const operatorForm = parsedText.step === 'property' &&
155
151
  ((_b = getExtendedOperator(filteringProperties, parsedText.property.key, parsedText.operator)) === null || _b === void 0 ? void 0 : _b.form);
156
152
  const searchResultsId = useUniqueId('property-filter-search-results');
@@ -171,15 +167,14 @@ const PropertyFilter = React.forwardRef((_a, ref) => {
171
167
  } })), hideEnteredTextOption: disableFreeTextFiltering && parsedText.step !== 'property', clearAriaLabel: i18nStrings.clearAriaLabel, searchResultsId: showResults ? searchResultsId : undefined })),
172
168
  showResults ? React.createElement(SearchResults, { id: searchResultsId }, countText) : null),
173
169
  tokens && tokens.length > 0 && (React.createElement("div", { className: styles.tokens },
174
- React.createElement(InternalSpaceBetween, { size: "xs", direction: "horizontal", id: controlId },
175
- slicedTokens.map((token, index) => (React.createElement(TokenButton, { token: token, first: index === 0, operation: operation, key: index, removeToken: () => removeToken(index), setToken: (newToken) => setToken(index, newToken), setOperation: setOperation, filteringOptions: filteringOptions, filteringProperties: filteringProperties, asyncProps: asyncProps, onLoadItems: onLoadItems, i18nStrings: i18nStrings, asyncProperties: asyncProperties, hideOperations: hideOperations, customGroupsText: customGroupsText, disableFreeTextFiltering: disableFreeTextFiltering, disabled: disabled, expandToViewport: expandToViewport }))),
176
- hasHiddenOptions && (React.createElement("div", { className: styles['toggle-collapsed'] },
177
- React.createElement(SelectToggle, { controlId: controlId, allHidden: tokenLimit === 0, expanded: tokensExpanded, numberOfHiddenOptions: tokens.length - slicedTokens.length, i18nStrings: {
178
- limitShowFewer: i18nStrings.tokenLimitShowFewer,
179
- limitShowMore: i18nStrings.tokenLimitShowMore,
180
- }, onClick: toggleExpandedTokens }))),
181
- React.createElement("div", { className: styles.separator }),
182
- React.createElement(InternalButton, { onClick: removeAllTokens, className: styles['remove-all'], disabled: disabled }, i18nStrings.clearFiltersText))))));
170
+ React.createElement(InternalSpaceBetween, { size: "xs", direction: "horizontal" },
171
+ React.createElement(TokenList, { alignment: "inline", limit: tokenLimit, items: tokens, renderItem: (token, tokenIndex) => (React.createElement(TokenButton, { token: token, first: tokenIndex === 0, operation: operation, removeToken: () => {
172
+ removeToken(tokenIndex);
173
+ setRemovedTokenIndex(tokenIndex);
174
+ }, setToken: (newToken) => setToken(tokenIndex, newToken), setOperation: setOperation, filteringOptions: filteringOptions, filteringProperties: filteringProperties, asyncProps: asyncProps, onLoadItems: onLoadItems, i18nStrings: i18nStrings, asyncProperties: asyncProperties, hideOperations: hideOperations, customGroupsText: customGroupsText, disableFreeTextFiltering: disableFreeTextFiltering, disabled: disabled, expandToViewport: expandToViewport })), itemAttributes: token => ({ 'aria-label': getFormattedToken(filteringProperties, token).label }), i18nStrings: {
175
+ limitShowFewer: i18nStrings.tokenLimitShowFewer,
176
+ limitShowMore: i18nStrings.tokenLimitShowMore,
177
+ }, after: React.createElement(InternalButton, { onClick: removeAllTokens, className: styles['remove-all'], disabled: disabled }, i18nStrings.clearFiltersText), removedItemIndex: removedTokenIndex }))))));
183
178
  });
184
179
  applyDisplayName(PropertyFilter, 'PropertyFilter');
185
180
  export default PropertyFilter;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/property-filter/index.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,KAAK,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,mBAAmB,EAAE,MAAM,OAAO,CAAC;AAE9E,OAAO,oBAAoB,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,4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AAC,cAAc,IAAC,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,CAAC,YAAY,CAAC,EAAE,QAAQ,EAAE,QAAQ,IAC1F,WAAW,CAAC,gBAAgB,CACd,CACI,CACnB,CACP,CACG,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,gBAAgB,CAAC,cAAc,EAAE,gBAAgB,CAAC,CAAC;AACnD,eAAe,cAAc,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport clsx from 'clsx';\nimport React, { useRef, useState, useMemo, useImperativeHandle } from 'react';\n\nimport InternalSpaceBetween from '../space-between/internal';\nimport { InternalButton } from '../button/internal';\nimport { getBaseProps } from '../internal/base-component';\nimport { applyDisplayName } from '../internal/utils/apply-display-name';\nimport { KeyCode } from '../internal/keycode';\nimport SelectToggle from '../token-group/toggle';\nimport { generateUniqueId, useUniqueId } from '../internal/hooks/use-unique-id/index';\nimport { fireNonCancelableEvent } from '../internal/events';\n\nimport { PropertyFilterOperator } from '@cloudscape-design/collection-hooks';\nimport { PropertyFilterProps, ParsedText, Ref, FilteringProperty, ComparisonOperator, Token } from './interfaces';\nimport { TokenButton } from './token';\nimport {\n getQueryActions,\n parseText,\n getAutosuggestOptions,\n getAllowedOperators,\n getExtendedOperator,\n} from './controller';\nimport { useLoadItems } from './use-load-items';\nimport styles from './styles.css.js';\nimport useBaseComponent from '../internal/hooks/use-base-component';\nimport PropertyFilterAutosuggest, { PropertyFilterAutosuggestProps } from './property-filter-autosuggest';\nimport { PropertyEditor } from './property-editor';\nimport { AutosuggestInputRef } from '../internal/components/autosuggest-input';\nimport { matchTokenValue } from './utils';\nimport { useInternalI18n } from '../internal/i18n/context';\nimport { SearchResults } from '../text-filter/search-results';\n\nexport { PropertyFilterProps };\n\nconst OPERATOR_I18N_MAPPING: Record<PropertyFilterOperator, string> = {\n '=': 'equals',\n '!=': 'not_equals',\n '>': 'greater_than',\n '>=': 'greater_than_equal',\n '<': 'less_than',\n '<=': 'less_than_equal',\n ':': 'contains',\n '!:': 'not_contains',\n};\n\nconst PropertyFilter = React.forwardRef(\n (\n {\n disabled,\n countText,\n query,\n hideOperations,\n onChange,\n filteringProperties,\n filteringOptions = [],\n customGroupsText = [],\n disableFreeTextFiltering = false,\n onLoadItems,\n virtualScroll,\n customControl,\n filteringEmpty,\n filteringLoadingText,\n filteringFinishedText,\n filteringErrorText,\n filteringRecoveryText,\n filteringStatusType,\n asyncProperties,\n tokenLimit,\n expandToViewport,\n ...rest\n }: PropertyFilterProps,\n ref: React.Ref<Ref>\n ) => {\n const { __internalRootRef } = useBaseComponent('PropertyFilter');\n\n const inputRef = useRef<AutosuggestInputRef>(null);\n const baseProps = getBaseProps(rest);\n\n const i18n = useInternalI18n('property-filter');\n const i18nStrings: PropertyFilterProps.I18nStrings = {\n ...rest.i18nStrings,\n allPropertiesLabel: i18n('i18nStrings.allPropertiesLabel', rest.i18nStrings.allPropertiesLabel),\n applyActionText: i18n('i18nStrings.applyActionText', rest.i18nStrings.applyActionText),\n cancelActionText: i18n('i18nStrings.cancelActionText', rest.i18nStrings.cancelActionText),\n clearFiltersText: i18n('i18nStrings.clearFiltersText', rest.i18nStrings.clearFiltersText),\n editTokenHeader: i18n('i18nStrings.editTokenHeader', rest.i18nStrings.editTokenHeader),\n enteredTextLabel: i18n('i18nStrings.enteredTextLabel', rest.i18nStrings.enteredTextLabel),\n groupPropertiesText: i18n('i18nStrings.groupPropertiesText', rest.i18nStrings.groupPropertiesText),\n groupValuesText: i18n('i18nStrings.groupValuesText', rest.i18nStrings.groupValuesText),\n operationAndText: i18n('i18nStrings.operationAndText', rest.i18nStrings.operationAndText),\n operationOrText: i18n('i18nStrings.operationOrText', rest.i18nStrings.operationOrText),\n operatorContainsText: i18n('i18nStrings.operatorContainsText', rest.i18nStrings.operatorContainsText),\n operatorDoesNotContainText: i18n(\n 'i18nStrings.operatorDoesNotContainText',\n rest.i18nStrings.operatorDoesNotContainText\n ),\n operatorDoesNotEqualText: i18n('i18nStrings.operatorDoesNotEqualText', rest.i18nStrings.operatorDoesNotEqualText),\n operatorEqualsText: i18n('i18nStrings.operatorEqualsText', rest.i18nStrings.operatorEqualsText),\n operatorGreaterOrEqualText: i18n(\n 'i18nStrings.operatorGreaterOrEqualText',\n rest.i18nStrings.operatorGreaterOrEqualText\n ),\n operatorGreaterText: i18n('i18nStrings.operatorGreaterText', rest.i18nStrings.operatorGreaterText),\n operatorLessOrEqualText: i18n('i18nStrings.operatorLessOrEqualText', rest.i18nStrings.operatorLessOrEqualText),\n operatorLessText: i18n('i18nStrings.operatorLessText', rest.i18nStrings.operatorLessText),\n operatorText: i18n('i18nStrings.operatorText', rest.i18nStrings.operatorText),\n operatorsText: i18n('i18nStrings.operatorsText', rest.i18nStrings.operatorsText),\n propertyText: i18n('i18nStrings.propertyText', rest.i18nStrings.propertyText),\n tokenLimitShowFewer: i18n('i18nStrings.tokenLimitShowFewer', rest.i18nStrings.tokenLimitShowFewer),\n tokenLimitShowMore: i18n('i18nStrings.tokenLimitShowMore', rest.i18nStrings.tokenLimitShowMore),\n valueText: i18n('i18nStrings.valueText', rest.i18nStrings.valueText),\n removeTokenButtonAriaLabel: i18n(\n 'i18nStrings.removeTokenButtonAriaLabel',\n rest.i18nStrings.removeTokenButtonAriaLabel,\n format => token =>\n format({\n token__operator: OPERATOR_I18N_MAPPING[token.operator],\n token__propertyKey: token.propertyKey ?? '',\n token__value: token.value,\n })\n ),\n };\n\n useImperativeHandle(ref, () => ({ focus: () => inputRef.current?.focus() }), []);\n const { tokens, operation } = query;\n const showResults = !!tokens?.length && !disabled && !!countText;\n const { addToken, removeToken, setToken, setOperation, removeAllTokens } = getQueryActions(\n query,\n onChange,\n inputRef\n );\n const [filteringText, setFilteringText] = useState<string>('');\n const parsedText = parseText(filteringText, filteringProperties, disableFreeTextFiltering);\n const autosuggestOptions = getAutosuggestOptions(\n parsedText,\n filteringOptions,\n filteringProperties,\n customGroupsText,\n i18nStrings\n );\n\n const createToken = (currentText: string) => {\n const parsedText = parseText(currentText, filteringProperties, disableFreeTextFiltering);\n let newToken: Token;\n switch (parsedText.step) {\n case 'property': {\n newToken = matchTokenValue(\n {\n propertyKey: parsedText.property.key,\n operator: parsedText.operator,\n value: parsedText.value,\n },\n filteringOptions\n );\n break;\n }\n case 'free-text': {\n newToken = {\n operator: parsedText.operator || ':',\n value: parsedText.value,\n };\n break;\n }\n case 'operator': {\n newToken = {\n operator: ':',\n value: currentText,\n };\n break;\n }\n }\n if (disableFreeTextFiltering && !('propertyKey' in newToken)) {\n return;\n }\n addToken(newToken);\n setFilteringText('');\n };\n const ignoreKeyDown = useRef<boolean>(false);\n const handleKeyDown: PropertyFilterAutosuggestProps['onKeyDown'] = event => {\n if (filteringText && !ignoreKeyDown.current && event.detail.keyCode === KeyCode.enter) {\n createToken(filteringText);\n }\n };\n const getLoadMoreDetail = (parsedText: ParsedText, filteringText: string) => {\n const loadMoreDetail: {\n filteringProperty: FilteringProperty | undefined;\n filteringText: string;\n filteringOperator: ComparisonOperator | undefined;\n } = {\n filteringProperty: undefined,\n filteringText,\n filteringOperator: undefined,\n };\n if (parsedText.step === 'property') {\n loadMoreDetail.filteringProperty = parsedText.property;\n loadMoreDetail.filteringText = parsedText.value;\n loadMoreDetail.filteringOperator = parsedText.operator;\n }\n return loadMoreDetail;\n };\n const loadMoreDetail = getLoadMoreDetail(parsedText, filteringText);\n const inputLoadItemsHandlers = useLoadItems(\n onLoadItems,\n loadMoreDetail.filteringText,\n loadMoreDetail.filteringProperty,\n loadMoreDetail.filteringText,\n loadMoreDetail.filteringOperator\n );\n const asyncProps = {\n empty: filteringEmpty,\n loadingText: filteringLoadingText,\n finishedText: filteringFinishedText,\n errorText: filteringErrorText,\n recoveryText: filteringRecoveryText,\n statusType: filteringStatusType,\n };\n const asyncAutosuggestProps =\n !!filteringText.length || asyncProperties\n ? {\n ...inputLoadItemsHandlers,\n ...asyncProps,\n }\n : {};\n const handleSelected: PropertyFilterAutosuggestProps['onOptionClick'] = event => {\n // The ignoreKeyDown flag makes sure `createToken` routine runs only once. Autosuggest's `onKeyDown` fires,\n // when an item is selected from the list using \"enter\" key.\n ignoreKeyDown.current = true;\n setTimeout(() => {\n ignoreKeyDown.current = false;\n }, 0);\n const { detail: option } = event;\n const value = option.value || '';\n\n if (!('keepOpenOnSelect' in option)) {\n createToken(value);\n return;\n }\n\n // stop dropdown from closing\n event.preventDefault();\n\n const parsedText = parseText(value, filteringProperties, disableFreeTextFiltering);\n const loadMoreDetail = getLoadMoreDetail(parsedText, value);\n\n // Insert operator automatically if only one operator is defined for the given property.\n if (parsedText.step === 'operator') {\n const operators = getAllowedOperators(parsedText.property);\n if (value.trim() === parsedText.property.propertyLabel && operators.length === 1) {\n loadMoreDetail.filteringProperty = parsedText.property;\n loadMoreDetail.filteringOperator = operators[0];\n loadMoreDetail.filteringText = '';\n setFilteringText(parsedText.property.propertyLabel + ' ' + operators[0] + ' ');\n }\n }\n\n fireNonCancelableEvent(onLoadItems, { ...loadMoreDetail, firstPage: true, samePage: false });\n };\n const [tokensExpanded, setTokensExpanded] = useState(false);\n const toggleExpandedTokens = () => setTokensExpanded(!tokensExpanded);\n const hasHiddenOptions = tokenLimit !== undefined && tokens.length > tokenLimit;\n const slicedTokens = hasHiddenOptions && !tokensExpanded ? tokens.slice(0, tokenLimit) : tokens;\n const controlId = useMemo(() => generateUniqueId(), []);\n\n const operatorForm =\n parsedText.step === 'property' &&\n getExtendedOperator(filteringProperties, parsedText.property.key, parsedText.operator)?.form;\n\n const searchResultsId = useUniqueId('property-filter-search-results');\n\n return (\n <div {...baseProps} className={clsx(baseProps.className, styles.root)} ref={__internalRootRef}>\n <div className={styles['search-field']}>\n {customControl && <div className={styles['custom-control']}>{customControl}</div>}\n <PropertyFilterAutosuggest\n ref={inputRef}\n virtualScroll={virtualScroll}\n enteredTextLabel={i18nStrings.enteredTextLabel ?? (value => value)}\n ariaLabel={i18nStrings.filteringAriaLabel}\n placeholder={i18nStrings.filteringPlaceholder}\n value={filteringText}\n disabled={disabled}\n onKeyDown={handleKeyDown}\n {...autosuggestOptions}\n onChange={event => setFilteringText(event.detail.value)}\n empty={filteringEmpty}\n {...asyncAutosuggestProps}\n expandToViewport={expandToViewport}\n onOptionClick={handleSelected}\n customForm={\n operatorForm && (\n <PropertyEditor\n property={parsedText.property}\n operator={parsedText.operator}\n filter={parsedText.value}\n operatorForm={operatorForm}\n i18nStrings={i18nStrings}\n onCancel={() => {\n setFilteringText('');\n inputRef.current?.close();\n inputRef.current?.focus({ preventDropdown: true });\n }}\n onSubmit={token => {\n addToken(token);\n setFilteringText('');\n inputRef.current?.focus({ preventDropdown: true });\n inputRef.current?.close();\n }}\n />\n )\n }\n hideEnteredTextOption={disableFreeTextFiltering && parsedText.step !== 'property'}\n clearAriaLabel={i18nStrings.clearAriaLabel}\n searchResultsId={showResults ? searchResultsId : undefined}\n />\n {showResults ? <SearchResults id={searchResultsId}>{countText}</SearchResults> : null}\n </div>\n {tokens && tokens.length > 0 && (\n <div className={styles.tokens}>\n <InternalSpaceBetween size=\"xs\" direction=\"horizontal\" id={controlId}>\n {slicedTokens.map((token, index) => (\n <TokenButton\n token={token}\n first={index === 0}\n operation={operation}\n key={index}\n removeToken={() => removeToken(index)}\n setToken={(newToken: Token) => setToken(index, newToken)}\n setOperation={setOperation}\n filteringOptions={filteringOptions}\n filteringProperties={filteringProperties}\n asyncProps={asyncProps}\n onLoadItems={onLoadItems}\n i18nStrings={i18nStrings}\n asyncProperties={asyncProperties}\n hideOperations={hideOperations}\n customGroupsText={customGroupsText}\n disableFreeTextFiltering={disableFreeTextFiltering}\n disabled={disabled}\n expandToViewport={expandToViewport}\n />\n ))}\n {hasHiddenOptions && (\n <div className={styles['toggle-collapsed']}>\n <SelectToggle\n controlId={controlId}\n allHidden={tokenLimit === 0}\n expanded={tokensExpanded}\n numberOfHiddenOptions={tokens.length - slicedTokens.length}\n i18nStrings={{\n limitShowFewer: i18nStrings.tokenLimitShowFewer,\n limitShowMore: i18nStrings.tokenLimitShowMore,\n }}\n onClick={toggleExpandedTokens}\n />\n </div>\n )}\n <div className={styles.separator} />\n <InternalButton onClick={removeAllTokens} className={styles['remove-all']} disabled={disabled}>\n {i18nStrings.clearFiltersText}\n </InternalButton>\n </InternalSpaceBetween>\n </div>\n )}\n </div>\n );\n }\n);\n\napplyDisplayName(PropertyFilter, 'PropertyFilter');\nexport default PropertyFilter;\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"lib/default/","sources":["property-filter/index.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,KAAK,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,mBAAmB,EAAE,MAAM,OAAO,CAAC;AAErE,OAAO,oBAAoB,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AACxE,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,uCAAuC,CAAC;AACpE,OAAO,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAI5D,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AACtC,OAAO,EACL,eAAe,EACf,SAAS,EACT,qBAAqB,EACrB,mBAAmB,EACnB,mBAAmB,EACnB,iBAAiB,GAClB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,gBAAgB,MAAM,sCAAsC,CAAC;AACpE,OAAO,yBAA6D,MAAM,+BAA+B,CAAC;AAC1G,OAAO,EAAE,cAAc,EAAE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,CAAC,EAChG,WAAW,EAAE;wBACX,cAAc,EAAE,WAAW,CAAC,mBAAmB;wBAC/C,aAAa,EAAE,WAAW,CAAC,kBAAkB;qBAC9C,EACD,KAAK,EACH,oBAAC,cAAc,IAAC,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,CAAC,YAAY,CAAC,EAAE,QAAQ,EAAE,QAAQ,IAC1F,WAAW,CAAC,gBAAgB,CACd,EAEnB,gBAAgB,EAAE,iBAAiB,GACnC,CACmB,CACnB,CACP,CACG,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,gBAAgB,CAAC,cAAc,EAAE,gBAAgB,CAAC,CAAC;AACnD,eAAe,cAAc,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport clsx from 'clsx';\nimport React, { useRef, useState, useImperativeHandle } from 'react';\n\nimport InternalSpaceBetween from '../space-between/internal';\nimport { InternalButton } from '../button/internal';\nimport { getBaseProps } from '../internal/base-component';\nimport { applyDisplayName } from '../internal/utils/apply-display-name';\nimport { KeyCode } from '../internal/keycode';\nimport { useUniqueId } from '../internal/hooks/use-unique-id/index';\nimport { fireNonCancelableEvent } from '../internal/events';\n\nimport { PropertyFilterOperator } from '@cloudscape-design/collection-hooks';\nimport { PropertyFilterProps, ParsedText, Ref, FilteringProperty, ComparisonOperator, Token } from './interfaces';\nimport { TokenButton } from './token';\nimport {\n getQueryActions,\n parseText,\n getAutosuggestOptions,\n getAllowedOperators,\n getExtendedOperator,\n getFormattedToken,\n} from './controller';\nimport { useLoadItems } from './use-load-items';\nimport styles from './styles.css.js';\nimport useBaseComponent from '../internal/hooks/use-base-component';\nimport PropertyFilterAutosuggest, { PropertyFilterAutosuggestProps } from './property-filter-autosuggest';\nimport { PropertyEditor } from './property-editor';\nimport { AutosuggestInputRef } from '../internal/components/autosuggest-input';\nimport { matchTokenValue } from './utils';\nimport { useInternalI18n } from '../internal/i18n/context';\nimport TokenList from '../internal/components/token-list';\nimport { SearchResults } from '../text-filter/search-results';\n\nexport { PropertyFilterProps };\n\nconst OPERATOR_I18N_MAPPING: Record<PropertyFilterOperator, string> = {\n '=': 'equals',\n '!=': 'not_equals',\n '>': 'greater_than',\n '>=': 'greater_than_equal',\n '<': 'less_than',\n '<=': 'less_than_equal',\n ':': 'contains',\n '!:': 'not_contains',\n};\n\nconst PropertyFilter = React.forwardRef(\n (\n {\n disabled,\n countText,\n query,\n hideOperations,\n onChange,\n filteringProperties,\n filteringOptions = [],\n customGroupsText = [],\n disableFreeTextFiltering = false,\n onLoadItems,\n virtualScroll,\n customControl,\n filteringEmpty,\n filteringLoadingText,\n filteringFinishedText,\n filteringErrorText,\n filteringRecoveryText,\n filteringStatusType,\n asyncProperties,\n tokenLimit,\n expandToViewport,\n ...rest\n }: PropertyFilterProps,\n ref: React.Ref<Ref>\n ) => {\n const { __internalRootRef } = useBaseComponent('PropertyFilter');\n const [removedTokenIndex, setRemovedTokenIndex] = useState<null | number>(null);\n\n const inputRef = useRef<AutosuggestInputRef>(null);\n const baseProps = getBaseProps(rest);\n\n const i18n = useInternalI18n('property-filter');\n const i18nStrings: PropertyFilterProps.I18nStrings = {\n ...rest.i18nStrings,\n allPropertiesLabel: i18n('i18nStrings.allPropertiesLabel', rest.i18nStrings.allPropertiesLabel),\n applyActionText: i18n('i18nStrings.applyActionText', rest.i18nStrings.applyActionText),\n cancelActionText: i18n('i18nStrings.cancelActionText', rest.i18nStrings.cancelActionText),\n clearFiltersText: i18n('i18nStrings.clearFiltersText', rest.i18nStrings.clearFiltersText),\n editTokenHeader: i18n('i18nStrings.editTokenHeader', rest.i18nStrings.editTokenHeader),\n enteredTextLabel: i18n('i18nStrings.enteredTextLabel', rest.i18nStrings.enteredTextLabel),\n groupPropertiesText: i18n('i18nStrings.groupPropertiesText', rest.i18nStrings.groupPropertiesText),\n groupValuesText: i18n('i18nStrings.groupValuesText', rest.i18nStrings.groupValuesText),\n operationAndText: i18n('i18nStrings.operationAndText', rest.i18nStrings.operationAndText),\n operationOrText: i18n('i18nStrings.operationOrText', rest.i18nStrings.operationOrText),\n operatorContainsText: i18n('i18nStrings.operatorContainsText', rest.i18nStrings.operatorContainsText),\n operatorDoesNotContainText: i18n(\n 'i18nStrings.operatorDoesNotContainText',\n rest.i18nStrings.operatorDoesNotContainText\n ),\n operatorDoesNotEqualText: i18n('i18nStrings.operatorDoesNotEqualText', rest.i18nStrings.operatorDoesNotEqualText),\n operatorEqualsText: i18n('i18nStrings.operatorEqualsText', rest.i18nStrings.operatorEqualsText),\n operatorGreaterOrEqualText: i18n(\n 'i18nStrings.operatorGreaterOrEqualText',\n rest.i18nStrings.operatorGreaterOrEqualText\n ),\n operatorGreaterText: i18n('i18nStrings.operatorGreaterText', rest.i18nStrings.operatorGreaterText),\n operatorLessOrEqualText: i18n('i18nStrings.operatorLessOrEqualText', rest.i18nStrings.operatorLessOrEqualText),\n operatorLessText: i18n('i18nStrings.operatorLessText', rest.i18nStrings.operatorLessText),\n operatorText: i18n('i18nStrings.operatorText', rest.i18nStrings.operatorText),\n operatorsText: i18n('i18nStrings.operatorsText', rest.i18nStrings.operatorsText),\n propertyText: i18n('i18nStrings.propertyText', rest.i18nStrings.propertyText),\n tokenLimitShowFewer: i18n('i18nStrings.tokenLimitShowFewer', rest.i18nStrings.tokenLimitShowFewer),\n tokenLimitShowMore: i18n('i18nStrings.tokenLimitShowMore', rest.i18nStrings.tokenLimitShowMore),\n valueText: i18n('i18nStrings.valueText', rest.i18nStrings.valueText),\n removeTokenButtonAriaLabel: i18n(\n 'i18nStrings.removeTokenButtonAriaLabel',\n rest.i18nStrings.removeTokenButtonAriaLabel,\n format => token =>\n format({\n token__operator: OPERATOR_I18N_MAPPING[token.operator],\n token__propertyKey: token.propertyKey ?? '',\n token__value: token.value,\n })\n ),\n };\n\n useImperativeHandle(ref, () => ({ focus: () => inputRef.current?.focus() }), []);\n const { tokens, operation } = query;\n const showResults = !!tokens?.length && !disabled && !!countText;\n const { addToken, removeToken, setToken, setOperation, removeAllTokens } = getQueryActions(\n query,\n onChange,\n inputRef\n );\n const [filteringText, setFilteringText] = useState<string>('');\n const parsedText = parseText(filteringText, filteringProperties, disableFreeTextFiltering);\n const autosuggestOptions = getAutosuggestOptions(\n parsedText,\n filteringOptions,\n filteringProperties,\n customGroupsText,\n i18nStrings\n );\n\n const createToken = (currentText: string) => {\n const parsedText = parseText(currentText, filteringProperties, disableFreeTextFiltering);\n let newToken: Token;\n switch (parsedText.step) {\n case 'property': {\n newToken = matchTokenValue(\n {\n propertyKey: parsedText.property.key,\n operator: parsedText.operator,\n value: parsedText.value,\n },\n filteringOptions\n );\n break;\n }\n case 'free-text': {\n newToken = {\n operator: parsedText.operator || ':',\n value: parsedText.value,\n };\n break;\n }\n case 'operator': {\n newToken = {\n operator: ':',\n value: currentText,\n };\n break;\n }\n }\n if (disableFreeTextFiltering && !('propertyKey' in newToken)) {\n return;\n }\n addToken(newToken);\n setFilteringText('');\n };\n const ignoreKeyDown = useRef<boolean>(false);\n const handleKeyDown: PropertyFilterAutosuggestProps['onKeyDown'] = event => {\n if (filteringText && !ignoreKeyDown.current && event.detail.keyCode === KeyCode.enter) {\n createToken(filteringText);\n }\n };\n const getLoadMoreDetail = (parsedText: ParsedText, filteringText: string) => {\n const loadMoreDetail: {\n filteringProperty: FilteringProperty | undefined;\n filteringText: string;\n filteringOperator: ComparisonOperator | undefined;\n } = {\n filteringProperty: undefined,\n filteringText,\n filteringOperator: undefined,\n };\n if (parsedText.step === 'property') {\n loadMoreDetail.filteringProperty = parsedText.property;\n loadMoreDetail.filteringText = parsedText.value;\n loadMoreDetail.filteringOperator = parsedText.operator;\n }\n return loadMoreDetail;\n };\n const loadMoreDetail = getLoadMoreDetail(parsedText, filteringText);\n const inputLoadItemsHandlers = useLoadItems(\n onLoadItems,\n loadMoreDetail.filteringText,\n loadMoreDetail.filteringProperty,\n loadMoreDetail.filteringText,\n loadMoreDetail.filteringOperator\n );\n const asyncProps = {\n empty: filteringEmpty,\n loadingText: filteringLoadingText,\n finishedText: filteringFinishedText,\n errorText: filteringErrorText,\n recoveryText: filteringRecoveryText,\n statusType: filteringStatusType,\n };\n const asyncAutosuggestProps =\n !!filteringText.length || asyncProperties\n ? {\n ...inputLoadItemsHandlers,\n ...asyncProps,\n }\n : {};\n const handleSelected: PropertyFilterAutosuggestProps['onOptionClick'] = event => {\n // The ignoreKeyDown flag makes sure `createToken` routine runs only once. Autosuggest's `onKeyDown` fires,\n // when an item is selected from the list using \"enter\" key.\n ignoreKeyDown.current = true;\n setTimeout(() => {\n ignoreKeyDown.current = false;\n }, 0);\n const { detail: option } = event;\n const value = option.value || '';\n\n if (!('keepOpenOnSelect' in option)) {\n createToken(value);\n return;\n }\n\n // stop dropdown from closing\n event.preventDefault();\n\n const parsedText = parseText(value, filteringProperties, disableFreeTextFiltering);\n const loadMoreDetail = getLoadMoreDetail(parsedText, value);\n\n // Insert operator automatically if only one operator is defined for the given property.\n if (parsedText.step === 'operator') {\n const operators = getAllowedOperators(parsedText.property);\n if (value.trim() === parsedText.property.propertyLabel && operators.length === 1) {\n loadMoreDetail.filteringProperty = parsedText.property;\n loadMoreDetail.filteringOperator = operators[0];\n loadMoreDetail.filteringText = '';\n setFilteringText(parsedText.property.propertyLabel + ' ' + operators[0] + ' ');\n }\n }\n\n fireNonCancelableEvent(onLoadItems, { ...loadMoreDetail, firstPage: true, samePage: false });\n };\n\n const operatorForm =\n parsedText.step === 'property' &&\n getExtendedOperator(filteringProperties, parsedText.property.key, parsedText.operator)?.form;\n\n const searchResultsId = useUniqueId('property-filter-search-results');\n\n return (\n <div {...baseProps} className={clsx(baseProps.className, styles.root)} ref={__internalRootRef}>\n <div className={styles['search-field']}>\n {customControl && <div className={styles['custom-control']}>{customControl}</div>}\n <PropertyFilterAutosuggest\n ref={inputRef}\n virtualScroll={virtualScroll}\n enteredTextLabel={i18nStrings.enteredTextLabel ?? (value => value)}\n ariaLabel={i18nStrings.filteringAriaLabel}\n placeholder={i18nStrings.filteringPlaceholder}\n value={filteringText}\n disabled={disabled}\n onKeyDown={handleKeyDown}\n {...autosuggestOptions}\n onChange={event => setFilteringText(event.detail.value)}\n empty={filteringEmpty}\n {...asyncAutosuggestProps}\n expandToViewport={expandToViewport}\n onOptionClick={handleSelected}\n customForm={\n operatorForm && (\n <PropertyEditor\n property={parsedText.property}\n operator={parsedText.operator}\n filter={parsedText.value}\n operatorForm={operatorForm}\n i18nStrings={i18nStrings}\n onCancel={() => {\n setFilteringText('');\n inputRef.current?.close();\n inputRef.current?.focus({ preventDropdown: true });\n }}\n onSubmit={token => {\n addToken(token);\n setFilteringText('');\n inputRef.current?.focus({ preventDropdown: true });\n inputRef.current?.close();\n }}\n />\n )\n }\n hideEnteredTextOption={disableFreeTextFiltering && parsedText.step !== 'property'}\n clearAriaLabel={i18nStrings.clearAriaLabel}\n searchResultsId={showResults ? searchResultsId : undefined}\n />\n {showResults ? <SearchResults id={searchResultsId}>{countText}</SearchResults> : null}\n </div>\n {tokens && tokens.length > 0 && (\n <div className={styles.tokens}>\n <InternalSpaceBetween size=\"xs\" direction=\"horizontal\">\n <TokenList\n alignment=\"inline\"\n limit={tokenLimit}\n items={tokens}\n renderItem={(token, tokenIndex) => (\n <TokenButton\n token={token}\n first={tokenIndex === 0}\n operation={operation}\n removeToken={() => {\n removeToken(tokenIndex);\n setRemovedTokenIndex(tokenIndex);\n }}\n setToken={(newToken: Token) => setToken(tokenIndex, newToken)}\n setOperation={setOperation}\n filteringOptions={filteringOptions}\n filteringProperties={filteringProperties}\n asyncProps={asyncProps}\n onLoadItems={onLoadItems}\n i18nStrings={i18nStrings}\n asyncProperties={asyncProperties}\n hideOperations={hideOperations}\n customGroupsText={customGroupsText}\n disableFreeTextFiltering={disableFreeTextFiltering}\n disabled={disabled}\n expandToViewport={expandToViewport}\n />\n )}\n itemAttributes={token => ({ 'aria-label': getFormattedToken(filteringProperties, token).label })}\n i18nStrings={{\n limitShowFewer: i18nStrings.tokenLimitShowFewer,\n limitShowMore: i18nStrings.tokenLimitShowMore,\n }}\n after={\n <InternalButton onClick={removeAllTokens} className={styles['remove-all']} disabled={disabled}>\n {i18nStrings.clearFiltersText}\n </InternalButton>\n }\n removedItemIndex={removedTokenIndex}\n />\n </InternalSpaceBetween>\n </div>\n )}\n </div>\n );\n }\n);\n\napplyDisplayName(PropertyFilter, 'PropertyFilter');\nexport default PropertyFilter;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../src/property-filter/interfaces.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAC/D,OAAO,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AAC7E,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,4CAA4C,CAAC;AAC9E,OAAO,EACL,uBAAuB,EACvB,sBAAsB,EACtB,8BAA8B,EAC9B,0BAA0B,EAC1B,4BAA4B,EAC5B,+BAA+B,EAC/B,oBAAoB,EACpB,sBAAsB,EACtB,mBAAmB,EACpB,MAAM,qCAAqC,CAAC;AAE7C,MAAM,WAAW,mBAAoB,SAAQ,kBAAkB,EAAE,gBAAgB;IAC/E;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,WAAW,EAAE,mBAAmB,CAAC,WAAW,CAAC;IAC7C;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;;;;;;;OAUG;IACH,KAAK,EAAE,mBAAmB,CAAC,KAAK,CAAC;IACjC;;;;;OAKG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;OAEG;IACH,QAAQ,EAAE,yBAAyB,CAAC,mBAAmB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C,SAAS,CAAC;AACtD,MAAM,MAAM,qBAAqB,GAAG,mBAAmB,CAAC,qBAAqB,CAAC;AAC9E,MAAM,MAAM,GAAG,GAAG,mBAAmB,CAAC,GAAG,CAAC;AAI1C,MAAM,MAAM,UAAU,GAClB;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,QAAQ,EAAE,iBAAiB,CAAC;IAAC,QAAQ,EAAE,kBAAkB,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAC9F;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,QAAQ,EAAE,iBAAiB,CAAC;IAAC,cAAc,EAAE,MAAM,CAAA;CAAE,GACzE;IAAE,IAAI,EAAE,WAAW,CAAC;IAAC,QAAQ,CAAC,EAAE,kBAAkB,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/property-filter/interfaces.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport React from 'react';\nimport { BaseComponentProps } from '../internal/base-component';\nimport { NonCancelableEventHandler } from '../internal/events';\nimport { DropdownStatusProps } from '../internal/components/dropdown-status';\nimport { AutosuggestProps } from '../autosuggest/interfaces';\nimport { ExpandToViewport } from '../internal/components/dropdown/interfaces';\nimport {\n PropertyFilterOperation,\n PropertyFilterOperator,\n PropertyFilterOperatorExtended,\n PropertyFilterOperatorForm,\n PropertyFilterOperatorFormat,\n PropertyFilterOperatorFormProps,\n PropertyFilterOption,\n PropertyFilterProperty,\n PropertyFilterToken,\n} from '@cloudscape-design/collection-hooks';\n\nexport interface PropertyFilterProps extends BaseComponentProps, ExpandToViewport {\n /**\n * If set to `true`, the filtering input will be disabled.\n * Use it, for example, if you are fetching new items upon filtering change\n * in order to prevent the user from changing the filtering query.\n */\n disabled?: boolean;\n /**\n * An object containing all the necessary localized strings required by the component.\n */\n i18nStrings: PropertyFilterProps.I18nStrings;\n /**\n * Accepts a human-readable, localized string that indicates the number of results. For example, \"1 match\" or \"165 matches.\"\n * If the total number of results is unknown, also include an indication that there may be more results than\n * the number listed. For example, \"25+ matches.\"\n *\n * The count text is only displayed when `query.tokens` isn't empty.\n */\n countText?: string;\n /**\n * An object representing the current query displayed in the property filter. Has two properties: `tokens` and `operation`.\n * `tokens` is an array of objects that will be displayed to the user beneath the filtering input.\n * Each token has the following properties:\n *\n * * value [string]: The string value of the token to be used as a filter.\n * * propertyKey [string]: The key of the corresponding property in filteringProperties.\n * * operator ['<' | '<=' | '>' | '>=' | ':' | '!:' | '=' | '!=']: The operator which indicates how to filter the dataset using this token.\n *\n * `operation` has two valid values [and, or] and controls the join operation to be applied between tokens when filtering the items.\n */\n query: PropertyFilterProps.Query;\n /**\n * If hideOperations it set, the indicator of the operation (that is, `and` or `or`) and the selection of operations\n * (applied to the property and value token) are hidden from the user. Only use when you have a custom\n * filtering logic which combines tokens in different way than the default one. When used, ensure that\n * operations are communicated to the user in another way.\n */\n hideOperations?: boolean;\n /**\n * Fired when the `query` gets changed. Filter the dataset in response to this event using the values in the `detail` object.\n */\n onChange: NonCancelableEventHandler<PropertyFilterProps.Query>;\n /**\n * An array of properties by which the data set can be filtered. Each element has the following properties:\n *\n * * groupValuesLabel [string]: Localized string to display for the 'Values' group label for a specific property.\n * * key [string]: The identifier of this property.\n * * propertyLabel [string]: A human-readable string for the property.\n * * operators [Array]: A list of all operators supported by this property. If you omit the equals operator because your API does not support it, make sure to set `defaultOperator` to a supported operator from this list.\n * * group [string]: Optional identifier of a custom group that this filtering option is assigned to. Use to create additional groups below the default one. Make sure to also define labels for the group in the customGroupsText property. Notice that only one level of options nesting is supported.\n * * defaultOperator [ComparisonOperator]: Optional parameter that changes the default operator used with this filtering property. Use it only if your API does not support \"equals\" filtering terms with this property.\n */\n filteringProperties: ReadonlyArray<PropertyFilterProps.FilteringProperty>;\n /**\n * An array of possible values of the individual `filteringProperties`. Each element has the following properties:\n *\n * * `propertyKey` [string]: The key of the corresponding filtering property in the `filteringProperties` array.\n * * `value` [string]: The value that will be used as a suggestion when creating or modifying a filtering token.\n * * `label` [string]: Optional suggestion label to be matched instead of the value.\n *\n * Filtering options that require labels can only use `=` and `!=` operators. The token value must be labelled separately, for example:\n * ```\n * const filteringProperty = {\n * key: 'state',\n * propertyLabel: 'State',\n * operators: ['=', '!='].map(operator => ({ operator, format: getStateLabel }))\n * }\n * const filteringOptions = [\n * { propertyKey: 'state', value: 'STOPPED', label: getStateLabel('STOPPED') },\n * { propertyKey: 'state', value: 'STOPPING', label: getStateLabel('STOPPING') },\n * { propertyKey: 'state', value: 'RUNNING', label: getStateLabel('RUNNING') },\n * ]\n * ```\n */\n filteringOptions?: ReadonlyArray<PropertyFilterProps.FilteringOption>;\n /**\n * An array of objects that contain localized, human-readable strings for the labels of custom groups within the filtering dropdown. Use group property to associate the strings with your custom group of options. Define the following values for each group:\n *\n * * properties [string]: The group label in the filtering dropdown that contains the list of properties from this group. For example: Tags.\n * * values [string]: The group label in the filtering dropdown that contains the list of values from this group. For example: Tags values.\n * * group [string]: The identifier of a custom group.\n */\n customGroupsText?: PropertyFilterProps.GroupText[];\n /**\n * Set `disableFreeTextFiltering` only if you can’t filter the dataset using a filter that is applied to every column,\n * instead of a specific property. This would stop the user from creating such tokens.\n */\n disableFreeTextFiltering?: boolean;\n /**\n * Use this event to asynchronously load filteringOptions, component currently needs. The detail object contains following properties:\n *\n * * `filteringProperty` - The property for which you need to fetch the options.\n * * `filteringOperator` - The operator for which you need to fetch the options.\n * * `filteringText` - The value that you need to use to fetch options.\n * * `firstPage` - Indicates that you should fetch the first page of options for a `filteringProperty` that match the `filteringText`.\n * * `samePage` - Indicates that you should fetch the same page that you have previously fetched (for example, when the user clicks on the recovery button).\n */\n onLoadItems?: NonCancelableEventHandler<PropertyFilterProps.LoadItemsDetail>;\n /**\n * If you have more than 500 `filteringOptions`, enable this flag to apply a performance optimization that makes\n * the filtering experience smoother. We don't recommend enabling the feature if you have less than 500 options,\n * because the improvements to performance are offset by a visible scrolling lag. When you set this flag to true,\n * it removes options that are not currently in view from the DOM.\n */\n virtualScroll?: boolean;\n /**\n * A slot located before the filtering input. Use it if for a Select component if your dataset supports property\n * filter queries only after an initial filter is applied.\n */\n customControl?: React.ReactNode;\n /**\n * Set `asyncProperties` if you need to load `filteringProperties` asynchronousely. This would cause extra `onLoadMore`\n * events to fire calling for more properties.\n */\n asyncProperties?: boolean;\n /**\n * Specifies the maximum number of displayed tokens. If the property isn't set, all of the tokens are displayed.\n */\n tokenLimit?: number;\n /**\n * Displayed when there are no options to display.\n * This is only shown when `statusType` is set to `finished` or not set at all.\n */\n filteringEmpty?: React.ReactNode;\n /**\n * Specifies the text to display when in the loading state.\n **/\n filteringLoadingText?: string;\n /**\n * Specifies the text to display at the bottom of the dropdown menu after pagination has reached the end.\n **/\n filteringFinishedText?: string;\n /**\n * Specifies the text to display when a data fetching error occurs. Make sure that you provide `recoveryText`.\n **/\n filteringErrorText?: string;\n /**\n * Specifies the text for the recovery button. The text is displayed next to the error text.\n * Use the `onLoadItems` event to perform a recovery action (for example, retrying the request).\n **/\n filteringRecoveryText?: string;\n /**\n * Specifies the current status of loading more options.\n * * `pending` - Indicates that no request in progress, but more options may be loaded.\n * * `loading` - Indicates that data fetching is in progress.\n * * `finished` - Indicates that pagination has finished and no more requests are expected.\n * * `error` - Indicates that an error occurred during fetch. You should use `recoveryText` to enable the user to recover.\n **/\n filteringStatusType?: DropdownStatusProps.StatusType;\n}\n\nexport namespace PropertyFilterProps {\n export type Token = PropertyFilterToken;\n export type JoinOperation = PropertyFilterOperation;\n export type ComparisonOperator = PropertyFilterOperator;\n export type ExtendedOperator<TokenValue> = PropertyFilterOperatorExtended<TokenValue>;\n export type ExtendedOperatorFormProps<TokenValue> = PropertyFilterOperatorFormProps<TokenValue>;\n export type ExtendedOperatorForm<TokenValue> = PropertyFilterOperatorForm<TokenValue>;\n export type ExtendedOperatorFormat<TokenValue> = PropertyFilterOperatorFormat<TokenValue>;\n export type FilteringOption = PropertyFilterOption;\n export type FilteringProperty = PropertyFilterProperty;\n\n export interface Query {\n tokens: ReadonlyArray<PropertyFilterProps.Token>;\n operation: PropertyFilterProps.JoinOperation;\n }\n\n export interface LoadItemsDetail {\n filteringProperty?: FilteringProperty;\n filteringOperator?: ComparisonOperator;\n filteringText: string;\n firstPage: boolean;\n samePage: boolean;\n }\n\n export interface I18nStrings {\n /**\n * Label that will be passed down to the Autosuggest `ariaLabel` property.\n * See the [Autosuggest API](/system/components/autosuggest/?tabId=api) page for more details.\n */\n filteringAriaLabel: string;\n dismissAriaLabel?: string;\n clearAriaLabel?: string;\n\n filteringPlaceholder?: string;\n groupValuesText?: string;\n groupPropertiesText?: string;\n operatorsText?: string;\n\n operationAndText?: string;\n operationOrText?: string;\n\n operatorLessText?: string;\n operatorLessOrEqualText?: string;\n operatorGreaterText?: string;\n operatorGreaterOrEqualText?: string;\n operatorContainsText?: string;\n operatorDoesNotContainText?: string;\n operatorEqualsText?: string;\n operatorDoesNotEqualText?: string;\n\n editTokenHeader?: string;\n propertyText?: string;\n operatorText?: string;\n valueText?: string;\n cancelActionText?: string;\n applyActionText?: string;\n allPropertiesLabel?: string;\n\n tokenLimitShowMore?: string;\n tokenLimitShowFewer?: string;\n clearFiltersText?: string;\n tokenOperatorAriaLabel?: string;\n removeTokenButtonAriaLabel?: (token: PropertyFilterProps.Token) => string;\n enteredTextLabel?: AutosuggestProps.EnteredTextLabel;\n }\n\n export interface GroupText {\n properties: string;\n values: string;\n group: string;\n }\n\n export interface FilteringChangeDetail {\n filteringText: string;\n filteringProperty?: FilteringProperty;\n }\n\n export interface Ref {\n /**\n * Sets focus on the underlying input control.\n */\n focus(): void;\n }\n}\n\n// Re-exported namespace interfaces to use module-style imports internally\n\nexport type Token = PropertyFilterProps.Token;\nexport type JoinOperation = PropertyFilterProps.JoinOperation;\nexport type ComparisonOperator = PropertyFilterProps.ComparisonOperator;\nexport type ExtendedOperator<TokenValue> = PropertyFilterOperatorExtended<TokenValue>;\nexport type ExtendedOperatorFormProps<TokenValue> = PropertyFilterOperatorFormProps<TokenValue>;\nexport type ExtendedOperatorForm<TokenValue> = PropertyFilterOperatorForm<TokenValue>;\nexport type ExtendedOperatorFormat<TokenValue> = PropertyFilterOperatorFormat<TokenValue>;\nexport type FilteringOption = PropertyFilterProps.FilteringOption;\nexport type FilteringProperty = PropertyFilterProps.FilteringProperty;\nexport type Query = PropertyFilterProps.Query;\nexport type LoadItemsDetail = PropertyFilterProps.LoadItemsDetail;\nexport type I18nStrings = PropertyFilterProps.I18nStrings;\nexport type GroupText = PropertyFilterProps.GroupText;\nexport type FilteringChangeDetail = PropertyFilterProps.FilteringChangeDetail;\nexport type Ref = PropertyFilterProps.Ref;\n\n// Utility types\n\nexport type ParsedText =\n | { step: 'property'; property: FilteringProperty; operator: ComparisonOperator; value: string }\n | { step: 'operator'; property: FilteringProperty; operatorPrefix: string }\n | { step: 'free-text'; operator?: ComparisonOperator; value: string };\n"]}
1
+ {"version":3,"file":"interfaces.js","sourceRoot":"lib/default/","sources":["property-filter/interfaces.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport React from 'react';\nimport { BaseComponentProps } from '../internal/base-component';\nimport { NonCancelableEventHandler } from '../internal/events';\nimport { DropdownStatusProps } from '../internal/components/dropdown-status';\nimport { AutosuggestProps } from '../autosuggest/interfaces';\nimport { ExpandToViewport } from '../internal/components/dropdown/interfaces';\nimport {\n PropertyFilterOperation,\n PropertyFilterOperator,\n PropertyFilterOperatorExtended,\n PropertyFilterOperatorForm,\n PropertyFilterOperatorFormat,\n PropertyFilterOperatorFormProps,\n PropertyFilterOption,\n PropertyFilterProperty,\n PropertyFilterToken,\n} from '@cloudscape-design/collection-hooks';\n\nexport interface PropertyFilterProps extends BaseComponentProps, ExpandToViewport {\n /**\n * If set to `true`, the filtering input will be disabled.\n * Use it, for example, if you are fetching new items upon filtering change\n * in order to prevent the user from changing the filtering query.\n */\n disabled?: boolean;\n /**\n * An object containing all the necessary localized strings required by the component.\n */\n i18nStrings: PropertyFilterProps.I18nStrings;\n /**\n * Accepts a human-readable, localized string that indicates the number of results. For example, \"1 match\" or \"165 matches.\"\n * If the total number of results is unknown, also include an indication that there may be more results than\n * the number listed. For example, \"25+ matches.\"\n *\n * The count text is only displayed when `query.tokens` isn't empty.\n */\n countText?: string;\n /**\n * An object representing the current query displayed in the property filter. Has two properties: `tokens` and `operation`.\n * `tokens` is an array of objects that will be displayed to the user beneath the filtering input.\n * Each token has the following properties:\n *\n * * value [string]: The string value of the token to be used as a filter.\n * * propertyKey [string]: The key of the corresponding property in filteringProperties.\n * * operator ['<' | '<=' | '>' | '>=' | ':' | '!:' | '=' | '!=']: The operator which indicates how to filter the dataset using this token.\n *\n * `operation` has two valid values [and, or] and controls the join operation to be applied between tokens when filtering the items.\n */\n query: PropertyFilterProps.Query;\n /**\n * If hideOperations it set, the indicator of the operation (that is, `and` or `or`) and the selection of operations\n * (applied to the property and value token) are hidden from the user. Only use when you have a custom\n * filtering logic which combines tokens in different way than the default one. When used, ensure that\n * operations are communicated to the user in another way.\n */\n hideOperations?: boolean;\n /**\n * Fired when the `query` gets changed. Filter the dataset in response to this event using the values in the `detail` object.\n */\n onChange: NonCancelableEventHandler<PropertyFilterProps.Query>;\n /**\n * An array of properties by which the data set can be filtered. Each element has the following properties:\n *\n * * groupValuesLabel [string]: Localized string to display for the 'Values' group label for a specific property.\n * * key [string]: The identifier of this property.\n * * propertyLabel [string]: A human-readable string for the property.\n * * operators [Array]: A list of all operators supported by this property. If you omit the equals operator because your API does not support it, make sure to set `defaultOperator` to a supported operator from this list.\n * * group [string]: Optional identifier of a custom group that this filtering option is assigned to. Use to create additional groups below the default one. Make sure to also define labels for the group in the customGroupsText property. Notice that only one level of options nesting is supported.\n * * defaultOperator [ComparisonOperator]: Optional parameter that changes the default operator used with this filtering property. Use it only if your API does not support \"equals\" filtering terms with this property.\n */\n filteringProperties: ReadonlyArray<PropertyFilterProps.FilteringProperty>;\n /**\n * An array of possible values of the individual `filteringProperties`. Each element has the following properties:\n *\n * * `propertyKey` [string]: The key of the corresponding filtering property in the `filteringProperties` array.\n * * `value` [string]: The value that will be used as a suggestion when creating or modifying a filtering token.\n * * `label` [string]: Optional suggestion label to be matched instead of the value.\n *\n * Filtering options that require labels can only use `=` and `!=` operators. The token value must be labelled separately, for example:\n * ```\n * const filteringProperty = {\n * key: 'state',\n * propertyLabel: 'State',\n * operators: ['=', '!='].map(operator => ({ operator, format: getStateLabel }))\n * }\n * const filteringOptions = [\n * { propertyKey: 'state', value: 'STOPPED', label: getStateLabel('STOPPED') },\n * { propertyKey: 'state', value: 'STOPPING', label: getStateLabel('STOPPING') },\n * { propertyKey: 'state', value: 'RUNNING', label: getStateLabel('RUNNING') },\n * ]\n * ```\n */\n filteringOptions?: ReadonlyArray<PropertyFilterProps.FilteringOption>;\n /**\n * An array of objects that contain localized, human-readable strings for the labels of custom groups within the filtering dropdown. Use group property to associate the strings with your custom group of options. Define the following values for each group:\n *\n * * properties [string]: The group label in the filtering dropdown that contains the list of properties from this group. For example: Tags.\n * * values [string]: The group label in the filtering dropdown that contains the list of values from this group. For example: Tags values.\n * * group [string]: The identifier of a custom group.\n */\n customGroupsText?: PropertyFilterProps.GroupText[];\n /**\n * Set `disableFreeTextFiltering` only if you can’t filter the dataset using a filter that is applied to every column,\n * instead of a specific property. This would stop the user from creating such tokens.\n */\n disableFreeTextFiltering?: boolean;\n /**\n * Use this event to asynchronously load filteringOptions, component currently needs. The detail object contains following properties:\n *\n * * `filteringProperty` - The property for which you need to fetch the options.\n * * `filteringOperator` - The operator for which you need to fetch the options.\n * * `filteringText` - The value that you need to use to fetch options.\n * * `firstPage` - Indicates that you should fetch the first page of options for a `filteringProperty` that match the `filteringText`.\n * * `samePage` - Indicates that you should fetch the same page that you have previously fetched (for example, when the user clicks on the recovery button).\n */\n onLoadItems?: NonCancelableEventHandler<PropertyFilterProps.LoadItemsDetail>;\n /**\n * If you have more than 500 `filteringOptions`, enable this flag to apply a performance optimization that makes\n * the filtering experience smoother. We don't recommend enabling the feature if you have less than 500 options,\n * because the improvements to performance are offset by a visible scrolling lag. When you set this flag to true,\n * it removes options that are not currently in view from the DOM.\n */\n virtualScroll?: boolean;\n /**\n * A slot located before the filtering input. Use it if for a Select component if your dataset supports property\n * filter queries only after an initial filter is applied.\n */\n customControl?: React.ReactNode;\n /**\n * Set `asyncProperties` if you need to load `filteringProperties` asynchronousely. This would cause extra `onLoadMore`\n * events to fire calling for more properties.\n */\n asyncProperties?: boolean;\n /**\n * Specifies the maximum number of displayed tokens. If the property isn't set, all of the tokens are displayed.\n */\n tokenLimit?: number;\n /**\n * Displayed when there are no options to display.\n * This is only shown when `statusType` is set to `finished` or not set at all.\n */\n filteringEmpty?: React.ReactNode;\n /**\n * Specifies the text to display when in the loading state.\n **/\n filteringLoadingText?: string;\n /**\n * Specifies the text to display at the bottom of the dropdown menu after pagination has reached the end.\n **/\n filteringFinishedText?: string;\n /**\n * Specifies the text to display when a data fetching error occurs. Make sure that you provide `recoveryText`.\n **/\n filteringErrorText?: string;\n /**\n * Specifies the text for the recovery button. The text is displayed next to the error text.\n * Use the `onLoadItems` event to perform a recovery action (for example, retrying the request).\n **/\n filteringRecoveryText?: string;\n /**\n * Specifies the current status of loading more options.\n * * `pending` - Indicates that no request in progress, but more options may be loaded.\n * * `loading` - Indicates that data fetching is in progress.\n * * `finished` - Indicates that pagination has finished and no more requests are expected.\n * * `error` - Indicates that an error occurred during fetch. You should use `recoveryText` to enable the user to recover.\n **/\n filteringStatusType?: DropdownStatusProps.StatusType;\n}\n\nexport namespace PropertyFilterProps {\n export type Token = PropertyFilterToken;\n export type JoinOperation = PropertyFilterOperation;\n export type ComparisonOperator = PropertyFilterOperator;\n export type ExtendedOperator<TokenValue> = PropertyFilterOperatorExtended<TokenValue>;\n export type ExtendedOperatorFormProps<TokenValue> = PropertyFilterOperatorFormProps<TokenValue>;\n export type ExtendedOperatorForm<TokenValue> = PropertyFilterOperatorForm<TokenValue>;\n export type ExtendedOperatorFormat<TokenValue> = PropertyFilterOperatorFormat<TokenValue>;\n export type FilteringOption = PropertyFilterOption;\n export type FilteringProperty = PropertyFilterProperty;\n\n export interface Query {\n tokens: ReadonlyArray<PropertyFilterProps.Token>;\n operation: PropertyFilterProps.JoinOperation;\n }\n\n export interface LoadItemsDetail {\n filteringProperty?: FilteringProperty;\n filteringOperator?: ComparisonOperator;\n filteringText: string;\n firstPage: boolean;\n samePage: boolean;\n }\n\n export interface I18nStrings {\n /**\n * Label that will be passed down to the Autosuggest `ariaLabel` property.\n * See the [Autosuggest API](/system/components/autosuggest/?tabId=api) page for more details.\n */\n filteringAriaLabel: string;\n dismissAriaLabel?: string;\n clearAriaLabel?: string;\n\n filteringPlaceholder?: string;\n groupValuesText?: string;\n groupPropertiesText?: string;\n operatorsText?: string;\n\n operationAndText?: string;\n operationOrText?: string;\n\n operatorLessText?: string;\n operatorLessOrEqualText?: string;\n operatorGreaterText?: string;\n operatorGreaterOrEqualText?: string;\n operatorContainsText?: string;\n operatorDoesNotContainText?: string;\n operatorEqualsText?: string;\n operatorDoesNotEqualText?: string;\n\n editTokenHeader?: string;\n propertyText?: string;\n operatorText?: string;\n valueText?: string;\n cancelActionText?: string;\n applyActionText?: string;\n allPropertiesLabel?: string;\n\n tokenLimitShowMore?: string;\n tokenLimitShowFewer?: string;\n clearFiltersText?: string;\n tokenOperatorAriaLabel?: string;\n removeTokenButtonAriaLabel?: (token: PropertyFilterProps.Token) => string;\n enteredTextLabel?: AutosuggestProps.EnteredTextLabel;\n }\n\n export interface GroupText {\n properties: string;\n values: string;\n group: string;\n }\n\n export interface FilteringChangeDetail {\n filteringText: string;\n filteringProperty?: FilteringProperty;\n }\n\n export interface Ref {\n /**\n * Sets focus on the underlying input control.\n */\n focus(): void;\n }\n}\n\n// Re-exported namespace interfaces to use module-style imports internally\n\nexport type Token = PropertyFilterProps.Token;\nexport type JoinOperation = PropertyFilterProps.JoinOperation;\nexport type ComparisonOperator = PropertyFilterProps.ComparisonOperator;\nexport type ExtendedOperator<TokenValue> = PropertyFilterOperatorExtended<TokenValue>;\nexport type ExtendedOperatorFormProps<TokenValue> = PropertyFilterOperatorFormProps<TokenValue>;\nexport type ExtendedOperatorForm<TokenValue> = PropertyFilterOperatorForm<TokenValue>;\nexport type ExtendedOperatorFormat<TokenValue> = PropertyFilterOperatorFormat<TokenValue>;\nexport type FilteringOption = PropertyFilterProps.FilteringOption;\nexport type FilteringProperty = PropertyFilterProps.FilteringProperty;\nexport type Query = PropertyFilterProps.Query;\nexport type LoadItemsDetail = PropertyFilterProps.LoadItemsDetail;\nexport type I18nStrings = PropertyFilterProps.I18nStrings;\nexport type GroupText = PropertyFilterProps.GroupText;\nexport type FilteringChangeDetail = PropertyFilterProps.FilteringChangeDetail;\nexport type Ref = PropertyFilterProps.Ref;\n\n// Utility types\n\nexport type ParsedText =\n | { step: 'property'; property: FilteringProperty; operator: ComparisonOperator; value: string }\n | { step: 'operator'; property: FilteringProperty; operatorPrefix: string }\n | { step: 'free-text'; operator?: ComparisonOperator; value: string };\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"property-editor.d.ts","sourceRoot":"","sources":["../../../src/property-filter/property-editor.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,KAAK,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAK/G,UAAU,mBAAmB,CAAC,UAAU;IACtC,QAAQ,EAAE,iBAAiB,CAAC;IAC5B,QAAQ,EAAE,kBAAkB,CAAC;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,oBAAoB,CAAC,UAAU,CAAC,CAAC;IAC/C,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACjC,WAAW,EAAE,WAAW,CAAC;CAC1B;AAED,wBAAgB,cAAc,CAAC,UAAU,GAAG,GAAG,EAAE,EAC/C,QAAQ,EACR,QAAQ,EACR,MAAM,EACN,YAAY,EACZ,QAAQ,EACR,QAAQ,EACR,WAAW,GACZ,EAAE,mBAAmB,CAAC,UAAU,CAAC,eAqBjC"}
1
+ {"version":3,"file":"property-editor.d.ts","sourceRoot":"lib/default/","sources":["property-filter/property-editor.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,KAAK,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAK/G,UAAU,mBAAmB,CAAC,UAAU;IACtC,QAAQ,EAAE,iBAAiB,CAAC;IAC5B,QAAQ,EAAE,kBAAkB,CAAC;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,oBAAoB,CAAC,UAAU,CAAC,CAAC;IAC/C,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACjC,WAAW,EAAE,WAAW,CAAC;CAC1B;AAED,wBAAgB,cAAc,CAAC,UAAU,GAAG,GAAG,EAAE,EAC/C,QAAQ,EACR,QAAQ,EACR,MAAM,EACN,YAAY,EACZ,QAAQ,EACR,QAAQ,EACR,WAAW,GACZ,EAAE,mBAAmB,CAAC,UAAU,CAAC,eAqBjC"}
@@ -1 +1 @@
1
- {"version":3,"file":"property-editor.js","sourceRoot":"","sources":["../../../src/property-filter/property-editor.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAEtC,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAExC,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,cAAc,MAAM,oBAAoB,CAAC;AAChD,OAAO,iBAAiB,MAAM,wBAAwB,CAAC;AAYvD,MAAM,UAAU,cAAc,CAAmB,EAC/C,QAAQ,EACR,QAAQ,EACR,MAAM,EACN,YAAY,EACZ,QAAQ,EACR,QAAQ,EACR,WAAW,GACqB;IAChC,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAoB,IAAI,CAAC,CAAC;IAC5D,MAAM,WAAW,GAAG,GAAG,EAAE,CAAC,QAAQ,CAAC,EAAE,WAAW,EAAE,QAAQ,CAAC,GAAG,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC;IACnF,OAAO,CACL,6BAAK,SAAS,EAAE,MAAM,CAAC,iBAAiB,CAAC;QACvC,6BAAK,SAAS,EAAE,MAAM,CAAC,sBAAsB,CAAC;YAC5C,oBAAC,iBAAiB,IAAC,KAAK,EAAE,QAAQ,CAAC,gBAAgB,IAChD,YAAY,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC,CAClC,CAChB;QAEN,6BAAK,SAAS,EAAE,MAAM,CAAC,yBAAyB,CAAC;YAC/C,oBAAC,cAAc,IAAC,OAAO,EAAC,MAAM,EAAC,SAAS,EAAE,MAAM,CAAC,wBAAwB,CAAC,EAAE,OAAO,EAAE,QAAQ,IAC1F,WAAW,CAAC,gBAAgB,CACd;YACjB,oBAAC,cAAc,IAAC,SAAS,EAAE,MAAM,CAAC,wBAAwB,CAAC,EAAE,OAAO,EAAE,WAAW,IAC9E,WAAW,CAAC,eAAe,CACb,CACb,CACF,CACP,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport React, { useState } from 'react';\nimport { FilteringProperty, I18nStrings, Token, ExtendedOperatorForm, ComparisonOperator } from './interfaces';\nimport styles from './styles.css.js';\nimport InternalButton from '../button/internal';\nimport InternalFormField from '../form-field/internal';\n\ninterface PorpertyEditorProps<TokenValue> {\n property: FilteringProperty;\n operator: ComparisonOperator;\n filter: string;\n operatorForm: ExtendedOperatorForm<TokenValue>;\n onCancel: () => void;\n onSubmit: (value: Token) => void;\n i18nStrings: I18nStrings;\n}\n\nexport function PropertyEditor<TokenValue = any>({\n property,\n operator,\n filter,\n operatorForm,\n onCancel,\n onSubmit,\n i18nStrings,\n}: PorpertyEditorProps<TokenValue>) {\n const [value, onChange] = useState<null | TokenValue>(null);\n const submitToken = () => onSubmit({ propertyKey: property.key, operator, value });\n return (\n <div className={styles['property-editor']}>\n <div className={styles['property-editor-form']}>\n <InternalFormField label={property.groupValuesLabel}>\n {operatorForm({ value, onChange, operator, filter })}\n </InternalFormField>\n </div>\n\n <div className={styles['property-editor-actions']}>\n <InternalButton variant=\"link\" className={styles['property-editor-cancel']} onClick={onCancel}>\n {i18nStrings.cancelActionText}\n </InternalButton>\n <InternalButton className={styles['property-editor-submit']} onClick={submitToken}>\n {i18nStrings.applyActionText}\n </InternalButton>\n </div>\n </div>\n );\n}\n"]}
1
+ {"version":3,"file":"property-editor.js","sourceRoot":"lib/default/","sources":["property-filter/property-editor.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAEtC,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAExC,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,cAAc,MAAM,oBAAoB,CAAC;AAChD,OAAO,iBAAiB,MAAM,wBAAwB,CAAC;AAYvD,MAAM,UAAU,cAAc,CAAmB,EAC/C,QAAQ,EACR,QAAQ,EACR,MAAM,EACN,YAAY,EACZ,QAAQ,EACR,QAAQ,EACR,WAAW,GACqB;IAChC,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAoB,IAAI,CAAC,CAAC;IAC5D,MAAM,WAAW,GAAG,GAAG,EAAE,CAAC,QAAQ,CAAC,EAAE,WAAW,EAAE,QAAQ,CAAC,GAAG,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC;IACnF,OAAO,CACL,6BAAK,SAAS,EAAE,MAAM,CAAC,iBAAiB,CAAC;QACvC,6BAAK,SAAS,EAAE,MAAM,CAAC,sBAAsB,CAAC;YAC5C,oBAAC,iBAAiB,IAAC,KAAK,EAAE,QAAQ,CAAC,gBAAgB,IAChD,YAAY,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC,CAClC,CAChB;QAEN,6BAAK,SAAS,EAAE,MAAM,CAAC,yBAAyB,CAAC;YAC/C,oBAAC,cAAc,IAAC,OAAO,EAAC,MAAM,EAAC,SAAS,EAAE,MAAM,CAAC,wBAAwB,CAAC,EAAE,OAAO,EAAE,QAAQ,IAC1F,WAAW,CAAC,gBAAgB,CACd;YACjB,oBAAC,cAAc,IAAC,SAAS,EAAE,MAAM,CAAC,wBAAwB,CAAC,EAAE,OAAO,EAAE,WAAW,IAC9E,WAAW,CAAC,eAAe,CACb,CACb,CACF,CACP,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport React, { useState } from 'react';\nimport { FilteringProperty, I18nStrings, Token, ExtendedOperatorForm, ComparisonOperator } from './interfaces';\nimport styles from './styles.css.js';\nimport InternalButton from '../button/internal';\nimport InternalFormField from '../form-field/internal';\n\ninterface PorpertyEditorProps<TokenValue> {\n property: FilteringProperty;\n operator: ComparisonOperator;\n filter: string;\n operatorForm: ExtendedOperatorForm<TokenValue>;\n onCancel: () => void;\n onSubmit: (value: Token) => void;\n i18nStrings: I18nStrings;\n}\n\nexport function PropertyEditor<TokenValue = any>({\n property,\n operator,\n filter,\n operatorForm,\n onCancel,\n onSubmit,\n i18nStrings,\n}: PorpertyEditorProps<TokenValue>) {\n const [value, onChange] = useState<null | TokenValue>(null);\n const submitToken = () => onSubmit({ propertyKey: property.key, operator, value });\n return (\n <div className={styles['property-editor']}>\n <div className={styles['property-editor-form']}>\n <InternalFormField label={property.groupValuesLabel}>\n {operatorForm({ value, onChange, operator, filter })}\n </InternalFormField>\n </div>\n\n <div className={styles['property-editor-actions']}>\n <InternalButton variant=\"link\" className={styles['property-editor-cancel']} onClick={onCancel}>\n {i18nStrings.cancelActionText}\n </InternalButton>\n <InternalButton className={styles['property-editor-submit']} onClick={submitToken}>\n {i18nStrings.applyActionText}\n </InternalButton>\n </div>\n </div>\n );\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"property-filter-autosuggest.d.ts","sourceRoot":"","sources":["../../../src/property-filter/property-filter-autosuggest.tsx"],"names":[],"mappings":"AAGA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAGpD,OAAO,EAAmB,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAM9E,OAAO,EAEL,sBAAsB,EAGvB,MAAM,oBAAoB,CAAC;AAK5B,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAIlF,OAAyB,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AASjG,MAAM,WAAW,8BAA+B,SAAQ,gBAAgB,EAAE,0BAA0B;IAClG,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC7B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,sBAAsB,CAAC,gBAAgB,CAAC,MAAM,CAAC,CAAC;IAChE,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,QAAA,MAAM,yBAAyB,4GA0K9B,CAAC;AAEF,eAAe,yBAAyB,CAAC"}
1
+ {"version":3,"file":"property-filter-autosuggest.d.ts","sourceRoot":"lib/default/","sources":["property-filter/property-filter-autosuggest.tsx"],"names":[],"mappings":"AAGA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAGpD,OAAO,EAAmB,gBAAgB,EAA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