@luzmo/analytics-components-kit 1.0.8-beta.6 → 1.0.8-beta.7

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 (314) hide show
  1. package/components/index.cjs +1 -1
  2. package/components/index.js +1 -1
  3. package/components/viz-item-menu/index.cjs +1 -1
  4. package/components/viz-item-menu/index.js +1 -1
  5. package/components/viz-item-menu/viz-item-menu.d.ts +3 -0
  6. package/components/{viz-item-menu-Ht6bklNL.js → viz-item-menu-B7yRaSAU.js} +1 -1
  7. package/components/{viz-item-menu-XHh4qhtn.cjs → viz-item-menu-hLdU-02Q.cjs} +1 -1
  8. package/custom-elements.json +14 -0
  9. package/package.json +1 -1
  10. package/react/package.json +2 -2
  11. package/angular/README.md +0 -40
  12. package/angular/components/ai-chat-empty-state.ts +0 -98
  13. package/angular/components/ai-chat.ts +0 -440
  14. package/angular/components/ai-interaction-textarea.ts +0 -283
  15. package/angular/components/data-field-level.ts +0 -130
  16. package/angular/components/data-field-panel.ts +0 -256
  17. package/angular/components/data-field.ts +0 -130
  18. package/angular/components/data-fields-select.ts +0 -212
  19. package/angular/components/dataset-icon.ts +0 -83
  20. package/angular/components/dataset-selector-list.ts +0 -147
  21. package/angular/components/dataset-selector-row.ts +0 -198
  22. package/angular/components/display-settings-binning.ts +0 -92
  23. package/angular/components/display-settings-datetime.ts +0 -100
  24. package/angular/components/display-settings-grand-totals.ts +0 -92
  25. package/angular/components/display-settings-numeric.ts +0 -113
  26. package/angular/components/display-settings-period-over-period.ts +0 -107
  27. package/angular/components/display-settings.ts +0 -227
  28. package/angular/components/filter-expression-picker.ts +0 -168
  29. package/angular/components/filter-item.ts +0 -175
  30. package/angular/components/filter-parameter-picker.ts +0 -155
  31. package/angular/components/filter-value-picker-datetime.ts +0 -125
  32. package/angular/components/filter-value-picker-hierarchy.ts +0 -146
  33. package/angular/components/filter-value-picker-numeric.ts +0 -146
  34. package/angular/components/filter-value-picker.ts +0 -160
  35. package/angular/components/filters.ts +0 -209
  36. package/angular/components/formula-editor.ts +0 -229
  37. package/angular/components/formula-field.ts +0 -198
  38. package/angular/components/formula.ts +0 -170
  39. package/angular/components/interactive-viz-item.ts +0 -186
  40. package/angular/components/item-grid-item-actions-menu.ts +0 -113
  41. package/angular/components/item-grid.ts +0 -242
  42. package/angular/components/item-option-action-button-group.ts +0 -105
  43. package/angular/components/item-option-color-palette-picker.ts +0 -126
  44. package/angular/components/item-option-color-picker.ts +0 -134
  45. package/angular/components/item-option-color-range.ts +0 -168
  46. package/angular/components/item-option-guidelines.ts +0 -84
  47. package/angular/components/item-option-multi-language-field.ts +0 -133
  48. package/angular/components/item-option-number-field.ts +0 -161
  49. package/angular/components/item-option-panel.ts +0 -149
  50. package/angular/components/item-option-picker.ts +0 -120
  51. package/angular/components/item-option-position-picker.ts +0 -98
  52. package/angular/components/item-option-positions-number-field.ts +0 -140
  53. package/angular/components/item-option-radio-button-group.ts +0 -119
  54. package/angular/components/item-option-slider.ts +0 -126
  55. package/angular/components/item-option-switch.ts +0 -98
  56. package/angular/components/item-option-text-field.ts +0 -112
  57. package/angular/components/item-option.ts +0 -163
  58. package/angular/components/item-slot-drop-panel.ts +0 -236
  59. package/angular/components/item-slot-drop.ts +0 -231
  60. package/angular/components/item-slot-picker-panel.ts +0 -299
  61. package/angular/components/item-slot-picker.ts +0 -241
  62. package/angular/components/slot-menu-list.ts +0 -121
  63. package/angular/components/slot-menu.ts +0 -304
  64. package/angular/components/viz-item-menu.ts +0 -118
  65. package/angular/esm/components/ai-chat-empty-state.d.ts +0 -39
  66. package/angular/esm/components/ai-chat-empty-state.js +0 -99
  67. package/angular/esm/components/ai-chat.d.ts +0 -147
  68. package/angular/esm/components/ai-chat.js +0 -455
  69. package/angular/esm/components/ai-interaction-textarea.d.ts +0 -106
  70. package/angular/esm/components/ai-interaction-textarea.js +0 -305
  71. package/angular/esm/components/data-field-level.d.ts +0 -50
  72. package/angular/esm/components/data-field-level.js +0 -129
  73. package/angular/esm/components/data-field-panel.d.ts +0 -86
  74. package/angular/esm/components/data-field-panel.js +0 -268
  75. package/angular/esm/components/data-field.d.ts +0 -50
  76. package/angular/esm/components/data-field.js +0 -129
  77. package/angular/esm/components/data-fields-select.d.ts +0 -81
  78. package/angular/esm/components/data-fields-select.js +0 -227
  79. package/angular/esm/components/dataset-icon.d.ts +0 -34
  80. package/angular/esm/components/dataset-icon.js +0 -86
  81. package/angular/esm/components/dataset-selector-list.d.ts +0 -56
  82. package/angular/esm/components/dataset-selector-list.js +0 -155
  83. package/angular/esm/components/dataset-selector-row.d.ts +0 -70
  84. package/angular/esm/components/dataset-selector-row.js +0 -197
  85. package/angular/esm/components/display-settings-binning.d.ts +0 -37
  86. package/angular/esm/components/display-settings-binning.js +0 -91
  87. package/angular/esm/components/display-settings-datetime.d.ts +0 -40
  88. package/angular/esm/components/display-settings-datetime.js +0 -99
  89. package/angular/esm/components/display-settings-grand-totals.d.ts +0 -37
  90. package/angular/esm/components/display-settings-grand-totals.js +0 -91
  91. package/angular/esm/components/display-settings-numeric.d.ts +0 -45
  92. package/angular/esm/components/display-settings-numeric.js +0 -115
  93. package/angular/esm/components/display-settings-period-over-period.d.ts +0 -44
  94. package/angular/esm/components/display-settings-period-over-period.js +0 -107
  95. package/angular/esm/components/display-settings.d.ts +0 -83
  96. package/angular/esm/components/display-settings.js +0 -231
  97. package/angular/esm/components/filter-expression-picker.d.ts +0 -64
  98. package/angular/esm/components/filter-expression-picker.js +0 -179
  99. package/angular/esm/components/filter-item.d.ts +0 -63
  100. package/angular/esm/components/filter-item.js +0 -187
  101. package/angular/esm/components/filter-parameter-picker.d.ts +0 -56
  102. package/angular/esm/components/filter-parameter-picker.js +0 -151
  103. package/angular/esm/components/filter-value-picker-datetime.d.ts +0 -47
  104. package/angular/esm/components/filter-value-picker-datetime.js +0 -131
  105. package/angular/esm/components/filter-value-picker-hierarchy.d.ts +0 -53
  106. package/angular/esm/components/filter-value-picker-hierarchy.js +0 -155
  107. package/angular/esm/components/filter-value-picker-numeric.d.ts +0 -53
  108. package/angular/esm/components/filter-value-picker-numeric.js +0 -155
  109. package/angular/esm/components/filter-value-picker.d.ts +0 -57
  110. package/angular/esm/components/filter-value-picker.js +0 -171
  111. package/angular/esm/components/filters.d.ts +0 -75
  112. package/angular/esm/components/filters.js +0 -215
  113. package/angular/esm/components/formula-editor.d.ts +0 -78
  114. package/angular/esm/components/formula-editor.js +0 -236
  115. package/angular/esm/components/formula-field.d.ts +0 -70
  116. package/angular/esm/components/formula-field.js +0 -209
  117. package/angular/esm/components/formula.d.ts +0 -60
  118. package/angular/esm/components/formula.js +0 -177
  119. package/angular/esm/components/interactive-viz-item.d.ts +0 -63
  120. package/angular/esm/components/interactive-viz-item.js +0 -188
  121. package/angular/esm/components/item-grid-item-actions-menu.d.ts +0 -45
  122. package/angular/esm/components/item-grid-item-actions-menu.js +0 -115
  123. package/angular/esm/components/item-grid.d.ts +0 -80
  124. package/angular/esm/components/item-grid.js +0 -245
  125. package/angular/esm/components/item-option-action-button-group.d.ts +0 -41
  126. package/angular/esm/components/item-option-action-button-group.js +0 -107
  127. package/angular/esm/components/item-option-color-palette-picker.d.ts +0 -48
  128. package/angular/esm/components/item-option-color-palette-picker.js +0 -131
  129. package/angular/esm/components/item-option-color-picker.d.ts +0 -51
  130. package/angular/esm/components/item-option-color-picker.js +0 -139
  131. package/angular/esm/components/item-option-color-range.d.ts +0 -66
  132. package/angular/esm/components/item-option-color-range.js +0 -179
  133. package/angular/esm/components/item-option-guidelines.d.ts +0 -34
  134. package/angular/esm/components/item-option-guidelines.js +0 -83
  135. package/angular/esm/components/item-option-multi-language-field.d.ts +0 -50
  136. package/angular/esm/components/item-option-multi-language-field.js +0 -139
  137. package/angular/esm/components/item-option-number-field.d.ts +0 -58
  138. package/angular/esm/components/item-option-number-field.js +0 -171
  139. package/angular/esm/components/item-option-panel.d.ts +0 -54
  140. package/angular/esm/components/item-option-panel.js +0 -155
  141. package/angular/esm/components/item-option-picker.d.ts +0 -46
  142. package/angular/esm/components/item-option-picker.js +0 -123
  143. package/angular/esm/components/item-option-position-picker.d.ts +0 -39
  144. package/angular/esm/components/item-option-position-picker.js +0 -99
  145. package/angular/esm/components/item-option-positions-number-field.d.ts +0 -54
  146. package/angular/esm/components/item-option-positions-number-field.js +0 -147
  147. package/angular/esm/components/item-option-radio-button-group.d.ts +0 -45
  148. package/angular/esm/components/item-option-radio-button-group.js +0 -123
  149. package/angular/esm/components/item-option-slider.d.ts +0 -46
  150. package/angular/esm/components/item-option-slider.js +0 -131
  151. package/angular/esm/components/item-option-switch.d.ts +0 -40
  152. package/angular/esm/components/item-option-switch.js +0 -99
  153. package/angular/esm/components/item-option-text-field.d.ts +0 -44
  154. package/angular/esm/components/item-option-text-field.js +0 -115
  155. package/angular/esm/components/item-option.d.ts +0 -58
  156. package/angular/esm/components/item-option.js +0 -171
  157. package/angular/esm/components/item-slot-drop-panel.d.ts +0 -82
  158. package/angular/esm/components/item-slot-drop-panel.js +0 -249
  159. package/angular/esm/components/item-slot-drop.d.ts +0 -77
  160. package/angular/esm/components/item-slot-drop.js +0 -227
  161. package/angular/esm/components/item-slot-picker-panel.d.ts +0 -97
  162. package/angular/esm/components/item-slot-picker-panel.js +0 -309
  163. package/angular/esm/components/item-slot-picker.d.ts +0 -86
  164. package/angular/esm/components/item-slot-picker.js +0 -259
  165. package/angular/esm/components/slot-menu-list.d.ts +0 -46
  166. package/angular/esm/components/slot-menu-list.js +0 -123
  167. package/angular/esm/components/slot-menu.d.ts +0 -104
  168. package/angular/esm/components/slot-menu.js +0 -300
  169. package/angular/esm/components/viz-item-menu.d.ts +0 -42
  170. package/angular/esm/components/viz-item-menu.js +0 -111
  171. package/angular/esm/index.d.ts +0 -109
  172. package/angular/esm/index.js +0 -217
  173. package/angular/index.ts +0 -223
  174. package/angular/package.json +0 -40
  175. package/angular/tsconfig.json +0 -36
  176. package/angular/type-fallbacks.d.ts +0 -0
  177. package/angular/utils/ai-prompt/attachments.d.ts +0 -10
  178. package/angular/utils/ai-prompt/dictation.d.ts +0 -50
  179. package/angular/utils/ai-prompt/image-upload.d.ts +0 -12
  180. package/angular/utils/ai-prompt/index.d.ts +0 -6
  181. package/angular/utils/ai-prompt/tests/attachments.test.d.ts +0 -1
  182. package/angular/utils/ai-prompt/tests/dictation.test.d.ts +0 -1
  183. package/angular/utils/ai-prompt/tests/image-upload.test.d.ts +0 -1
  184. package/angular/utils/base/base.d.ts +0 -16
  185. package/angular/utils/base/focus-visible.d.ts +0 -29
  186. package/angular/utils/base/focusable.d.ts +0 -58
  187. package/angular/utils/base/index.d.ts +0 -5
  188. package/angular/utils/base/localized-mixin.d.ts +0 -22
  189. package/angular/utils/base/sized-mixin.d.ts +0 -17
  190. package/angular/utils/color/color-palettes.d.ts +0 -17
  191. package/angular/utils/color/extrapolate-color.d.ts +0 -1
  192. package/angular/utils/data/load-data-fields-for-datasets.d.ts +0 -22
  193. package/angular/utils/data-broker/index.d.ts +0 -263
  194. package/angular/utils/data-field-types/calculate-data-field-icon.d.ts +0 -12
  195. package/angular/utils/data-field-types/default-acceptable-data-field-types.d.ts +0 -1
  196. package/angular/utils/data-field-types/tests/calculate-data-field-icon.test.d.ts +0 -1
  197. package/angular/utils/drag/draggable.d.ts +0 -13
  198. package/angular/utils/drag/pragmatic-element-adapter.d.ts +0 -2
  199. package/angular/utils/drag/tests/pragmatic-element-adapter.first-import.test.d.ts +0 -1
  200. package/angular/utils/drag/tests/pragmatic-element-adapter.test.d.ts +0 -1
  201. package/angular/utils/filters/expressions.d.ts +0 -15
  202. package/angular/utils/filters/index.d.ts +0 -1
  203. package/angular/utils/formatter/calculate-duration.d.ts +0 -2
  204. package/angular/utils/formatter/decompose-numeric-format.d.ts +0 -11
  205. package/angular/utils/formatter/default-local-formats.d.ts +0 -20
  206. package/angular/utils/formatter/formats/cs.d.ts +0 -20
  207. package/angular/utils/formatter/formats/da.d.ts +0 -20
  208. package/angular/utils/formatter/formats/de.d.ts +0 -21
  209. package/angular/utils/formatter/formats/en-GB.d.ts +0 -21
  210. package/angular/utils/formatter/formats/en-US.d.ts +0 -1
  211. package/angular/utils/formatter/formats/en.d.ts +0 -1
  212. package/angular/utils/formatter/formats/es.d.ts +0 -54
  213. package/angular/utils/formatter/formats/fi.d.ts +0 -20
  214. package/angular/utils/formatter/formats/fr.d.ts +0 -54
  215. package/angular/utils/formatter/formats/he.d.ts +0 -20
  216. package/angular/utils/formatter/formats/hu.d.ts +0 -20
  217. package/angular/utils/formatter/formats/it.d.ts +0 -54
  218. package/angular/utils/formatter/formats/ja.d.ts +0 -20
  219. package/angular/utils/formatter/formats/ko.d.ts +0 -20
  220. package/angular/utils/formatter/formats/mk.d.ts +0 -20
  221. package/angular/utils/formatter/formats/nl.d.ts +0 -21
  222. package/angular/utils/formatter/formats/no.d.ts +0 -21
  223. package/angular/utils/formatter/formats/pl.d.ts +0 -20
  224. package/angular/utils/formatter/formats/pt.d.ts +0 -20
  225. package/angular/utils/formatter/formats/ru.d.ts +0 -20
  226. package/angular/utils/formatter/formats/sv.d.ts +0 -20
  227. package/angular/utils/formatter/formats/tr.d.ts +0 -21
  228. package/angular/utils/formatter/formats/zh-CN.d.ts +0 -20
  229. package/angular/utils/formatter/formats/zh-TW.d.ts +0 -20
  230. package/angular/utils/formatter/formatter.d.ts +0 -9
  231. package/angular/utils/formatter/get-dataset-name.d.ts +0 -2
  232. package/angular/utils/formatter/get-localized-name.d.ts +0 -4
  233. package/angular/utils/formatter/localize.d.ts +0 -3
  234. package/angular/utils/formatter/smart-datetime-formats.const.d.ts +0 -36
  235. package/angular/utils/formatter/tests/calculate-duration.test.d.ts +0 -1
  236. package/angular/utils/formatter/tests/decompose-numeric-format.test.d.ts +0 -1
  237. package/angular/utils/formatter/tests/default-local-formats.test.d.ts +0 -1
  238. package/angular/utils/formatter/tests/formatter.test.d.ts +0 -1
  239. package/angular/utils/formatter/tests/get-localized-name.test.d.ts +0 -1
  240. package/angular/utils/formatter/tests/localize.test.d.ts +0 -1
  241. package/angular/utils/formula/base/formula-base.d.ts +0 -117
  242. package/angular/utils/formula/base/formula-input-base.d.ts +0 -62
  243. package/angular/utils/formula/codemirror/actions.d.ts +0 -47
  244. package/angular/utils/formula/codemirror/drop-cursor.d.ts +0 -15
  245. package/angular/utils/formula/codemirror/icon-element.d.ts +0 -7
  246. package/angular/utils/formula/codemirror/parser.d.ts +0 -16
  247. package/angular/utils/formula/codemirror/tests/actions.test.d.ts +0 -1
  248. package/angular/utils/formula/codemirror/theme.d.ts +0 -20
  249. package/angular/utils/formula/codemirror/widget.d.ts +0 -18
  250. package/angular/utils/formula/config/aggregations.d.ts +0 -9
  251. package/angular/utils/formula/config/build-datasets.d.ts +0 -10
  252. package/angular/utils/formula/config/expression-helpers.d.ts +0 -42
  253. package/angular/utils/formula/config/functions.d.ts +0 -3
  254. package/angular/utils/formula/config/groupings.d.ts +0 -9
  255. package/angular/utils/formula/config/regex.d.ts +0 -39
  256. package/angular/utils/formula/config/resolve-column-presentation.d.ts +0 -19
  257. package/angular/utils/formula/config/tests/build-datasets.test.d.ts +0 -1
  258. package/angular/utils/formula/config/validate-expression.d.ts +0 -19
  259. package/angular/utils/formula/load-formula-codemirror.d.ts +0 -4
  260. package/angular/utils/formula/render-explanation-tooltip.d.ts +0 -7
  261. package/angular/utils/formula/store/formula-display-store.d.ts +0 -93
  262. package/angular/utils/formula/store/formula-editor-context.d.ts +0 -8
  263. package/angular/utils/formula/store/formula-editor-store.d.ts +0 -46
  264. package/angular/utils/formula/store/tests/formula-editor-store.test.d.ts +0 -1
  265. package/angular/utils/formula/tests/validate-expression.test.d.ts +0 -1
  266. package/angular/utils/get-css-variable.d.ts +0 -1
  267. package/angular/utils/index.d.ts +0 -10
  268. package/angular/utils/localize/set-locale.d.ts +0 -7
  269. package/angular/utils/map-tile-providers/index.d.ts +0 -93
  270. package/angular/utils/set-nested-value.d.ts +0 -6
  271. package/angular/utils/slot-content/ad-hoc-slot-content.d.ts +0 -7
  272. package/angular/utils/slot-content/render-calculation-label.d.ts +0 -7
  273. package/angular/utils/slot-content/tests/ad-hoc-slot-content.test.d.ts +0 -1
  274. package/angular/utils/slot-state/slot-context.d.ts +0 -4
  275. package/angular/utils/slot-state/slot-store.d.ts +0 -39
  276. package/angular/utils/store/base-store.d.ts +0 -158
  277. package/angular/utils/store/dashboard-store.d.ts +0 -49
  278. package/angular/utils/store/index.d.ts +0 -135
  279. package/angular/utils/store/item-store.d.ts +0 -33
  280. package/angular/utils/store/store-registry.d.ts +0 -170
  281. package/angular/utils/store/tests/dashboard-store.test.d.ts +0 -1
  282. package/angular/utils/store/tests/item-store.test.d.ts +0 -1
  283. package/angular/utils/store/tests/store-registry.test.d.ts +0 -1
  284. package/angular/utils/store/types.d.ts +0 -270
  285. package/angular/utils/switch-item/index.d.ts +0 -34
  286. package/angular/utils/switch-item/slot-role-classification.d.ts +0 -31
  287. package/angular/utils/switch-item/stories/switch-item.stories.d.ts +0 -17
  288. package/angular/utils/switch-item/tests/slot-role-classification.test.d.ts +0 -1
  289. package/angular/utils/switch-item/tests/switch-item.test.d.ts +0 -1
  290. package/angular/utils/tests/set-nested-value.test.d.ts +0 -1
  291. package/angular/utils/themes/bliss.d.ts +0 -2
  292. package/angular/utils/themes/classic-dark.d.ts +0 -2
  293. package/angular/utils/themes/classic.d.ts +0 -2
  294. package/angular/utils/themes/default-dark.d.ts +0 -2
  295. package/angular/utils/themes/default.d.ts +0 -2
  296. package/angular/utils/themes/index.d.ts +0 -4
  297. package/angular/utils/themes/orion.d.ts +0 -2
  298. package/angular/utils/themes/pinky.d.ts +0 -2
  299. package/angular/utils/themes/radiant.d.ts +0 -2
  300. package/angular/utils/themes/royale.d.ts +0 -2
  301. package/angular/utils/themes/seasonal.d.ts +0 -2
  302. package/angular/utils/themes/urban.d.ts +0 -2
  303. package/angular/utils/themes/vivid.d.ts +0 -2
  304. package/angular/utils/time/formats.const.d.ts +0 -4
  305. package/angular/utils/time/period-over-period-condition.const.d.ts +0 -8
  306. package/angular/utils/time/periods.const.d.ts +0 -15
  307. package/angular/utils/timezone/datetime-timezone.d.ts +0 -25
  308. package/angular/utils/timezone/tests/datetime-timezone.test.d.ts +0 -1
  309. package/angular/utils/transformations/convert-data-field-to-slot-content.d.ts +0 -9
  310. package/angular/utils/transformations/convert-datasets-to-data-fields.d.ts +0 -30
  311. package/angular/utils/transformations/tests/convert-data-field-to-slot-content.test.d.ts +0 -1
  312. package/angular/utils/transformations/tests/convert-datasets-to-data-fields.test.d.ts +0 -1
  313. package/angular/utils/types/tests/type-check.test.d.ts +0 -1
  314. package/angular/utils/types/type-check.d.ts +0 -28
@@ -1,106 +0,0 @@
1
- import { OnChanges, SimpleChanges } from '@angular/core';
2
- import '@luzmo/analytics-components-kit/ai-interaction-textarea';
3
- import type { LuzmoAiInteractionTextarea as LuzmoAiInteractionTextareaHostElement, Agent, Dataset, PromptBoxFileIcons, PromptSubmittedEventDetail } from '@luzmo/analytics-components-kit/ai-interaction-textarea';
4
- import * as i0 from "@angular/core";
5
- export type { Agent, Dataset, PromptBoxAttachment, PromptBoxFileIcons, PromptSubmittedEventDetail } from '@luzmo/analytics-components-kit/ai-interaction-textarea';
6
- export declare class LuzmoAiInteractionTextarea implements OnChanges {
7
- private readonly elementRef;
8
- private readonly renderer;
9
- private readonly destroyRef;
10
- private readonly host;
11
- private readonly listenerCleanup;
12
- /** The underlying custom element instance. Use to call imperative methods. */
13
- get nativeElement(): LuzmoAiInteractionTextareaHostElement;
14
- /** Placeholder text for the textarea */
15
- placeholder?: string;
16
- /** Array of selected datasets */
17
- selectedDatasets?: Dataset[];
18
- /** Auth key for DataBroker authentication */
19
- authKey?: string;
20
- /** Auth token for DataBroker authentication */
21
- authToken?: string;
22
- /** API URL for DataBroker */
23
- apiUrl?: string;
24
- /** The URL of the app server for thumbnails and assets */
25
- appServer?: string;
26
- /** When true, shows public datasets alongside the user's other datasets. */
27
- includePublicDatasets?: boolean;
28
- /** Alias for includePublicDatasets. */
29
- flagOpendata?: boolean;
30
- /** When true, disables the entire component (opacity 60%, no interactions) */
31
- disabled?: boolean;
32
- /** When true, starts in compact single-line mode and auto-expands as needed */
33
- singleLine?: boolean;
34
- /** When true, hides the "+ Add dataset" button */
35
- hideDatasetButton?: boolean;
36
- /** When true, hides dataset-specific icons in selector tags and @ mention dataset headers */
37
- hideDatasetIcons?: boolean;
38
- /** Maximum number of selected dataset tags shown before the overflow control. */
39
- maxVisibleSelectedDatasets?: number;
40
- /** The saved Agent the prompt is scoped to, or null */
41
- selectedAgent?: Agent | null;
42
- /** When true, hides the Agents section in the add dropdown and ignores `selectedAgent` for `require-dataset` and `prompt-submitted` */
43
- hideAgents?: boolean;
44
- /** When true, disables the "+ Add dataset" button and disables dataset pill removal */
45
- disableDatasetModification?: boolean;
46
- /** When true, hides the dataset row entirely */
47
- hideSelectedDatasets?: boolean;
48
- /** When true, disables @ trigger mentions completely */
49
- disableColumnMentions?: boolean;
50
- /** When true, shows a spinning loader icon instead of the submit arrow */
51
- isGenerating?: boolean;
52
- /** When true, shows a stop control while `is-generating` is true */
53
- stoppable?: boolean;
54
- /** The current value of the textarea (can be controlled from parent to clear or set text) */
55
- value?: string;
56
- /** When true, retains the input value after submitting a prompt (default: false) When false (default), clears the textarea value after submission */
57
- retainOnSubmit?: boolean;
58
- /** When true, a selected agent or at least one selected dataset is required before the prompt can be submitted */
59
- requireDataset?: boolean;
60
- /** When true, enables image attachments via paste or the file picker. */
61
- allowImages?: boolean;
62
- /** When true, shows Lucero's mic control; the `POST /aidictation` transcript is inserted, never auto-sent. */
63
- allowVoiceInput?: boolean;
64
- /** Accepted attachment MIME types or extensions. */
65
- acceptedFileTypes?: string[];
66
- /** API version for built-in `POST /upload` and `POST /aidictation` (default `0.1.0`). */
67
- apiVersion?: string;
68
- /** Optional override for eager image upload on attach; return one signed URL per file */
69
- uploadAttachments?: unknown;
70
- /** Custom icons for non-image attachment tiles, keyed by extension. */
71
- fileIcons?: PromptBoxFileIcons;
72
- /** Fired when a prompt is submitted with selected datasets */
73
- readonly promptSubmitted: import("@angular/core").OutputEmitterRef<CustomEvent<PromptSubmittedEventDetail>>;
74
- /** Fired when a running prompt is stopped */
75
- readonly promptStopped: import("@angular/core").OutputEmitterRef<CustomEvent<void>>;
76
- constructor();
77
- ngOnChanges(changes: SimpleChanges): void;
78
- /**
79
- * Forward a wrapper @Input to the underlying host element via Renderer2 so
80
- * the wrapper stays compatible with non-DOM Angular platforms (SSR, tests).
81
- * Unlike a "skip undefined" guard, this lets consumers reset values back to
82
- * undefined / null by clearing their bindings.
83
- */
84
- private setHostProperty;
85
- private bindEvents;
86
- static ɵfac: i0.ɵɵFactoryDeclaration<LuzmoAiInteractionTextarea, never>;
87
- static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoAiInteractionTextarea, "luzmo-ai-interaction-textarea", ["luzmoAiInteractionTextarea"], { "placeholder": { "alias": "placeholder"; "required": false; }; "selectedDatasets": { "alias": "selectedDatasets"; "required": false; }; "authKey": { "alias": "authKey"; "required": false; }; "authToken": { "alias": "authToken"; "required": false; }; "apiUrl": { "alias": "apiUrl"; "required": false; }; "appServer": { "alias": "appServer"; "required": false; }; "includePublicDatasets": { "alias": "includePublicDatasets"; "required": false; }; "flagOpendata": { "alias": "flagOpendata"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "singleLine": { "alias": "singleLine"; "required": false; }; "hideDatasetButton": { "alias": "hideDatasetButton"; "required": false; }; "hideDatasetIcons": { "alias": "hideDatasetIcons"; "required": false; }; "maxVisibleSelectedDatasets": { "alias": "maxVisibleSelectedDatasets"; "required": false; }; "selectedAgent": { "alias": "selectedAgent"; "required": false; }; "hideAgents": { "alias": "hideAgents"; "required": false; }; "disableDatasetModification": { "alias": "disableDatasetModification"; "required": false; }; "hideSelectedDatasets": { "alias": "hideSelectedDatasets"; "required": false; }; "disableColumnMentions": { "alias": "disableColumnMentions"; "required": false; }; "isGenerating": { "alias": "isGenerating"; "required": false; }; "stoppable": { "alias": "stoppable"; "required": false; }; "value": { "alias": "value"; "required": false; }; "retainOnSubmit": { "alias": "retainOnSubmit"; "required": false; }; "requireDataset": { "alias": "requireDataset"; "required": false; }; "allowImages": { "alias": "allowImages"; "required": false; }; "allowVoiceInput": { "alias": "allowVoiceInput"; "required": false; }; "acceptedFileTypes": { "alias": "acceptedFileTypes"; "required": false; }; "apiVersion": { "alias": "apiVersion"; "required": false; }; "uploadAttachments": { "alias": "uploadAttachments"; "required": false; }; "fileIcons": { "alias": "fileIcons"; "required": false; }; }, { "promptSubmitted": "promptSubmitted"; "promptStopped": "promptStopped"; }, never, ["*"], true, never>;
88
- static ngAcceptInputType_includePublicDatasets: unknown;
89
- static ngAcceptInputType_flagOpendata: unknown;
90
- static ngAcceptInputType_disabled: unknown;
91
- static ngAcceptInputType_singleLine: unknown;
92
- static ngAcceptInputType_hideDatasetButton: unknown;
93
- static ngAcceptInputType_hideDatasetIcons: unknown;
94
- static ngAcceptInputType_hideAgents: unknown;
95
- static ngAcceptInputType_disableDatasetModification: unknown;
96
- static ngAcceptInputType_hideSelectedDatasets: unknown;
97
- static ngAcceptInputType_disableColumnMentions: unknown;
98
- static ngAcceptInputType_isGenerating: unknown;
99
- static ngAcceptInputType_stoppable: unknown;
100
- static ngAcceptInputType_retainOnSubmit: unknown;
101
- static ngAcceptInputType_requireDataset: unknown;
102
- static ngAcceptInputType_allowImages: unknown;
103
- static ngAcceptInputType_allowVoiceInput: unknown;
104
- }
105
- /** The underlying custom element type for LuzmoAiInteractionTextarea */
106
- export type LuzmoAiInteractionTextareaElement = LuzmoAiInteractionTextareaHostElement;
@@ -1,305 +0,0 @@
1
- import { booleanAttribute, ChangeDetectionStrategy, Component, DestroyRef, ElementRef, inject, Input, output, Renderer2 } from '@angular/core';
2
- import '@luzmo/analytics-components-kit/ai-interaction-textarea';
3
- import * as i0 from "@angular/core";
4
- const _c0 = ["*"];
5
- /**
6
- * Angular wrapper component for <luzmo-ai-interaction-textarea>
7
- */
8
- export class LuzmoAiInteractionTextarea {
9
- elementRef = inject(ElementRef);
10
- renderer = inject(Renderer2);
11
- destroyRef = inject(DestroyRef);
12
- host = this.elementRef.nativeElement;
13
- listenerCleanup = [];
14
- /** The underlying custom element instance. Use to call imperative methods. */
15
- get nativeElement() {
16
- return this.host;
17
- }
18
- /** Placeholder text for the textarea */
19
- placeholder;
20
- /** Array of selected datasets */
21
- selectedDatasets;
22
- /** Auth key for DataBroker authentication */
23
- authKey;
24
- /** Auth token for DataBroker authentication */
25
- authToken;
26
- /** API URL for DataBroker */
27
- apiUrl;
28
- /** The URL of the app server for thumbnails and assets */
29
- appServer;
30
- /** When true, shows public datasets alongside the user's other datasets. */
31
- includePublicDatasets;
32
- /** Alias for includePublicDatasets. */
33
- flagOpendata;
34
- /** When true, disables the entire component (opacity 60%, no interactions) */
35
- disabled;
36
- /** When true, starts in compact single-line mode and auto-expands as needed */
37
- singleLine;
38
- /** When true, hides the "+ Add dataset" button */
39
- hideDatasetButton;
40
- /** When true, hides dataset-specific icons in selector tags and @ mention dataset headers */
41
- hideDatasetIcons;
42
- /** Maximum number of selected dataset tags shown before the overflow control. */
43
- maxVisibleSelectedDatasets;
44
- /** The saved Agent the prompt is scoped to, or null */
45
- selectedAgent;
46
- /** When true, hides the Agents section in the add dropdown and ignores `selectedAgent` for `require-dataset` and `prompt-submitted` */
47
- hideAgents;
48
- /** When true, disables the "+ Add dataset" button and disables dataset pill removal */
49
- disableDatasetModification;
50
- /** When true, hides the dataset row entirely */
51
- hideSelectedDatasets;
52
- /** When true, disables @ trigger mentions completely */
53
- disableColumnMentions;
54
- /** When true, shows a spinning loader icon instead of the submit arrow */
55
- isGenerating;
56
- /** When true, shows a stop control while `is-generating` is true */
57
- stoppable;
58
- /** The current value of the textarea (can be controlled from parent to clear or set text) */
59
- value;
60
- /** When true, retains the input value after submitting a prompt (default: false) When false (default), clears the textarea value after submission */
61
- retainOnSubmit;
62
- /** When true, a selected agent or at least one selected dataset is required before the prompt can be submitted */
63
- requireDataset;
64
- /** When true, enables image attachments via paste or the file picker. */
65
- allowImages;
66
- /** When true, shows Lucero's mic control; the `POST /aidictation` transcript is inserted, never auto-sent. */
67
- allowVoiceInput;
68
- /** Accepted attachment MIME types or extensions. */
69
- acceptedFileTypes;
70
- /** API version for built-in `POST /upload` and `POST /aidictation` (default `0.1.0`). */
71
- apiVersion;
72
- /** Optional override for eager image upload on attach; return one signed URL per file */
73
- uploadAttachments;
74
- /** Custom icons for non-image attachment tiles, keyed by extension. */
75
- fileIcons;
76
- /** Fired when a prompt is submitted with selected datasets */
77
- promptSubmitted = output({ alias: 'promptSubmitted' });
78
- /** Fired when a running prompt is stopped */
79
- promptStopped = output({ alias: 'promptStopped' });
80
- constructor() {
81
- this.bindEvents();
82
- this.destroyRef.onDestroy(() => {
83
- for (const cleanup of this.listenerCleanup) {
84
- cleanup();
85
- }
86
- });
87
- }
88
- ngOnChanges(changes) {
89
- for (const key of Object.keys(changes)) {
90
- switch (key) {
91
- case 'placeholder':
92
- this.setHostProperty('placeholder', changes['placeholder'].currentValue);
93
- break;
94
- case 'selectedDatasets':
95
- this.setHostProperty('selectedDatasets', changes['selectedDatasets'].currentValue);
96
- break;
97
- case 'authKey':
98
- this.setHostProperty('authKey', changes['authKey'].currentValue);
99
- break;
100
- case 'authToken':
101
- this.setHostProperty('authToken', changes['authToken'].currentValue);
102
- break;
103
- case 'apiUrl':
104
- this.setHostProperty('apiUrl', changes['apiUrl'].currentValue);
105
- break;
106
- case 'appServer':
107
- this.setHostProperty('appServer', changes['appServer'].currentValue);
108
- break;
109
- case 'includePublicDatasets':
110
- this.setHostProperty('includePublicDatasets', changes['includePublicDatasets'].currentValue);
111
- break;
112
- case 'flagOpendata':
113
- this.setHostProperty('flagOpendata', changes['flagOpendata'].currentValue);
114
- break;
115
- case 'disabled':
116
- this.setHostProperty('disabled', changes['disabled'].currentValue);
117
- break;
118
- case 'singleLine':
119
- this.setHostProperty('singleLine', changes['singleLine'].currentValue);
120
- break;
121
- case 'hideDatasetButton':
122
- this.setHostProperty('hideDatasetButton', changes['hideDatasetButton'].currentValue);
123
- break;
124
- case 'hideDatasetIcons':
125
- this.setHostProperty('hideDatasetIcons', changes['hideDatasetIcons'].currentValue);
126
- break;
127
- case 'maxVisibleSelectedDatasets':
128
- this.setHostProperty('maxVisibleSelectedDatasets', changes['maxVisibleSelectedDatasets'].currentValue);
129
- break;
130
- case 'selectedAgent':
131
- this.setHostProperty('selectedAgent', changes['selectedAgent'].currentValue);
132
- break;
133
- case 'hideAgents':
134
- this.setHostProperty('hideAgents', changes['hideAgents'].currentValue);
135
- break;
136
- case 'disableDatasetModification':
137
- this.setHostProperty('disableDatasetModification', changes['disableDatasetModification'].currentValue);
138
- break;
139
- case 'hideSelectedDatasets':
140
- this.setHostProperty('hideSelectedDatasets', changes['hideSelectedDatasets'].currentValue);
141
- break;
142
- case 'disableColumnMentions':
143
- this.setHostProperty('disableColumnMentions', changes['disableColumnMentions'].currentValue);
144
- break;
145
- case 'isGenerating':
146
- this.setHostProperty('isGenerating', changes['isGenerating'].currentValue);
147
- break;
148
- case 'stoppable':
149
- this.setHostProperty('stoppable', changes['stoppable'].currentValue);
150
- break;
151
- case 'value':
152
- this.setHostProperty('value', changes['value'].currentValue);
153
- break;
154
- case 'retainOnSubmit':
155
- this.setHostProperty('retainOnSubmit', changes['retainOnSubmit'].currentValue);
156
- break;
157
- case 'requireDataset':
158
- this.setHostProperty('requireDataset', changes['requireDataset'].currentValue);
159
- break;
160
- case 'allowImages':
161
- this.setHostProperty('allowImages', changes['allowImages'].currentValue);
162
- break;
163
- case 'allowVoiceInput':
164
- this.setHostProperty('allowVoiceInput', changes['allowVoiceInput'].currentValue);
165
- break;
166
- case 'acceptedFileTypes':
167
- this.setHostProperty('acceptedFileTypes', changes['acceptedFileTypes'].currentValue);
168
- break;
169
- case 'apiVersion':
170
- this.setHostProperty('apiVersion', changes['apiVersion'].currentValue);
171
- break;
172
- case 'uploadAttachments':
173
- this.setHostProperty('uploadAttachments', changes['uploadAttachments'].currentValue);
174
- break;
175
- case 'fileIcons':
176
- this.setHostProperty('fileIcons', changes['fileIcons'].currentValue);
177
- break;
178
- default:
179
- break;
180
- }
181
- }
182
- }
183
- /**
184
- * Forward a wrapper @Input to the underlying host element via Renderer2 so
185
- * the wrapper stays compatible with non-DOM Angular platforms (SSR, tests).
186
- * Unlike a "skip undefined" guard, this lets consumers reset values back to
187
- * undefined / null by clearing their bindings.
188
- */
189
- setHostProperty(key, value) {
190
- this.renderer.setProperty(this.host, key, value);
191
- }
192
- bindEvents() {
193
- this.listenerCleanup.push(this.renderer.listen(this.host, 'prompt-submitted', (event) => {
194
- const typed = event;
195
- this.promptSubmitted.emit(typed);
196
- }));
197
- this.listenerCleanup.push(this.renderer.listen(this.host, 'prompt-stopped', (event) => {
198
- const typed = event;
199
- this.promptStopped.emit(typed);
200
- }));
201
- }
202
- static ɵfac = function LuzmoAiInteractionTextarea_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LuzmoAiInteractionTextarea)(); };
203
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoAiInteractionTextarea, selectors: [["luzmo-ai-interaction-textarea"]], inputs: { placeholder: "placeholder", selectedDatasets: "selectedDatasets", authKey: "authKey", authToken: "authToken", apiUrl: "apiUrl", appServer: "appServer", includePublicDatasets: [2, "includePublicDatasets", "includePublicDatasets", booleanAttribute], flagOpendata: [2, "flagOpendata", "flagOpendata", booleanAttribute], disabled: [2, "disabled", "disabled", booleanAttribute], singleLine: [2, "singleLine", "singleLine", booleanAttribute], hideDatasetButton: [2, "hideDatasetButton", "hideDatasetButton", booleanAttribute], hideDatasetIcons: [2, "hideDatasetIcons", "hideDatasetIcons", booleanAttribute], maxVisibleSelectedDatasets: "maxVisibleSelectedDatasets", selectedAgent: "selectedAgent", hideAgents: [2, "hideAgents", "hideAgents", booleanAttribute], disableDatasetModification: [2, "disableDatasetModification", "disableDatasetModification", booleanAttribute], hideSelectedDatasets: [2, "hideSelectedDatasets", "hideSelectedDatasets", booleanAttribute], disableColumnMentions: [2, "disableColumnMentions", "disableColumnMentions", booleanAttribute], isGenerating: [2, "isGenerating", "isGenerating", booleanAttribute], stoppable: [2, "stoppable", "stoppable", booleanAttribute], value: "value", retainOnSubmit: [2, "retainOnSubmit", "retainOnSubmit", booleanAttribute], requireDataset: [2, "requireDataset", "requireDataset", booleanAttribute], allowImages: [2, "allowImages", "allowImages", booleanAttribute], allowVoiceInput: [2, "allowVoiceInput", "allowVoiceInput", booleanAttribute], acceptedFileTypes: "acceptedFileTypes", apiVersion: "apiVersion", uploadAttachments: "uploadAttachments", fileIcons: "fileIcons" }, outputs: { promptSubmitted: "promptSubmitted", promptStopped: "promptStopped" }, exportAs: ["luzmoAiInteractionTextarea"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoAiInteractionTextarea_Template(rf, ctx) { if (rf & 1) {
204
- i0.ɵɵprojectionDef();
205
- i0.ɵɵprojection(0);
206
- } }, encapsulation: 2 });
207
- }
208
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LuzmoAiInteractionTextarea, [{
209
- type: Component,
210
- args: [{
211
- selector: 'luzmo-ai-interaction-textarea',
212
- exportAs: 'luzmoAiInteractionTextarea',
213
- standalone: true,
214
- changeDetection: ChangeDetectionStrategy.OnPush,
215
- template: '<ng-content />'
216
- }]
217
- }], () => [], { placeholder: [{
218
- type: Input,
219
- args: [{ alias: 'placeholder' }]
220
- }], selectedDatasets: [{
221
- type: Input,
222
- args: [{ alias: 'selectedDatasets' }]
223
- }], authKey: [{
224
- type: Input,
225
- args: [{ alias: 'authKey' }]
226
- }], authToken: [{
227
- type: Input,
228
- args: [{ alias: 'authToken' }]
229
- }], apiUrl: [{
230
- type: Input,
231
- args: [{ alias: 'apiUrl' }]
232
- }], appServer: [{
233
- type: Input,
234
- args: [{ alias: 'appServer' }]
235
- }], includePublicDatasets: [{
236
- type: Input,
237
- args: [{ alias: 'includePublicDatasets', transform: booleanAttribute }]
238
- }], flagOpendata: [{
239
- type: Input,
240
- args: [{ alias: 'flagOpendata', transform: booleanAttribute }]
241
- }], disabled: [{
242
- type: Input,
243
- args: [{ alias: 'disabled', transform: booleanAttribute }]
244
- }], singleLine: [{
245
- type: Input,
246
- args: [{ alias: 'singleLine', transform: booleanAttribute }]
247
- }], hideDatasetButton: [{
248
- type: Input,
249
- args: [{ alias: 'hideDatasetButton', transform: booleanAttribute }]
250
- }], hideDatasetIcons: [{
251
- type: Input,
252
- args: [{ alias: 'hideDatasetIcons', transform: booleanAttribute }]
253
- }], maxVisibleSelectedDatasets: [{
254
- type: Input,
255
- args: [{ alias: 'maxVisibleSelectedDatasets' }]
256
- }], selectedAgent: [{
257
- type: Input,
258
- args: [{ alias: 'selectedAgent' }]
259
- }], hideAgents: [{
260
- type: Input,
261
- args: [{ alias: 'hideAgents', transform: booleanAttribute }]
262
- }], disableDatasetModification: [{
263
- type: Input,
264
- args: [{ alias: 'disableDatasetModification', transform: booleanAttribute }]
265
- }], hideSelectedDatasets: [{
266
- type: Input,
267
- args: [{ alias: 'hideSelectedDatasets', transform: booleanAttribute }]
268
- }], disableColumnMentions: [{
269
- type: Input,
270
- args: [{ alias: 'disableColumnMentions', transform: booleanAttribute }]
271
- }], isGenerating: [{
272
- type: Input,
273
- args: [{ alias: 'isGenerating', transform: booleanAttribute }]
274
- }], stoppable: [{
275
- type: Input,
276
- args: [{ alias: 'stoppable', transform: booleanAttribute }]
277
- }], value: [{
278
- type: Input,
279
- args: [{ alias: 'value' }]
280
- }], retainOnSubmit: [{
281
- type: Input,
282
- args: [{ alias: 'retainOnSubmit', transform: booleanAttribute }]
283
- }], requireDataset: [{
284
- type: Input,
285
- args: [{ alias: 'requireDataset', transform: booleanAttribute }]
286
- }], allowImages: [{
287
- type: Input,
288
- args: [{ alias: 'allowImages', transform: booleanAttribute }]
289
- }], allowVoiceInput: [{
290
- type: Input,
291
- args: [{ alias: 'allowVoiceInput', transform: booleanAttribute }]
292
- }], acceptedFileTypes: [{
293
- type: Input,
294
- args: [{ alias: 'acceptedFileTypes' }]
295
- }], apiVersion: [{
296
- type: Input,
297
- args: [{ alias: 'apiVersion' }]
298
- }], uploadAttachments: [{
299
- type: Input,
300
- args: [{ alias: 'uploadAttachments' }]
301
- }], fileIcons: [{
302
- type: Input,
303
- args: [{ alias: 'fileIcons' }]
304
- }], promptSubmitted: [{ type: i0.Output, args: ["promptSubmitted"] }], promptStopped: [{ type: i0.Output, args: ["promptStopped"] }] }); })();
305
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LuzmoAiInteractionTextarea, { className: "LuzmoAiInteractionTextarea", filePath: "components/ai-interaction-textarea.ts", lineNumber: 16 }); })();
@@ -1,50 +0,0 @@
1
- import { OnChanges, SimpleChanges } from '@angular/core';
2
- import '@luzmo/analytics-components-kit/data-field-level';
3
- import type { LuzmoDataFieldLevel as LuzmoDataFieldLevelHostElement, DataFieldDragStartedEventDetail, DataFieldDroppedEventDetail } from '@luzmo/analytics-components-kit/data-field-level';
4
- import type { DatasetDataField } from '@luzmo/analytics-components-kit/types';
5
- import * as i0 from "@angular/core";
6
- export type { DataFieldDragStartedEventDetail, DataFieldDroppedEventDetail } from '@luzmo/analytics-components-kit/data-field-level';
7
- export declare class LuzmoDataFieldLevel implements OnChanges {
8
- private readonly elementRef;
9
- private readonly renderer;
10
- private readonly destroyRef;
11
- private readonly host;
12
- private readonly listenerCleanup;
13
- /** The underlying custom element instance. Use to call imperative methods. */
14
- get nativeElement(): LuzmoDataFieldLevelHostElement;
15
- /** Visual treatment of the level: `highlight` to emphasize it, or `normal`. */
16
- variant?: 'highlight' | 'normal';
17
- /** Hides the data type icon shown before the level label. */
18
- hideTypeIcon?: boolean;
19
- /** Whether this is rendered as a nested sublevel row (indented under a parent field). */
20
- sublevel?: boolean;
21
- /** The language in which to display the level labels. */
22
- language?: string;
23
- /** Whether the level is disabled (non-interactive and visually muted). */
24
- disabled?: boolean;
25
- /** The dataset data field descriptor (column or formula field) this level represents. */
26
- data?: DatasetDataField;
27
- /** The size of the element */
28
- size?: 's' | 'm' | 'l' | 'xl';
29
- /** Announces that the data field has been dropped */
30
- readonly luzmoDataFieldDropped: import("@angular/core").OutputEmitterRef<CustomEvent<DataFieldDroppedEventDetail>>;
31
- /** Announces that the drag is started on the data field */
32
- readonly luzmoDataFieldDragStarted: import("@angular/core").OutputEmitterRef<CustomEvent<DataFieldDragStartedEventDetail>>;
33
- constructor();
34
- ngOnChanges(changes: SimpleChanges): void;
35
- /**
36
- * Forward a wrapper @Input to the underlying host element via Renderer2 so
37
- * the wrapper stays compatible with non-DOM Angular platforms (SSR, tests).
38
- * Unlike a "skip undefined" guard, this lets consumers reset values back to
39
- * undefined / null by clearing their bindings.
40
- */
41
- private setHostProperty;
42
- private bindEvents;
43
- static ɵfac: i0.ɵɵFactoryDeclaration<LuzmoDataFieldLevel, never>;
44
- static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoDataFieldLevel, "luzmo-data-field-level", ["luzmoDataFieldLevel"], { "variant": { "alias": "variant"; "required": false; }; "hideTypeIcon": { "alias": "hideTypeIcon"; "required": false; }; "sublevel": { "alias": "sublevel"; "required": false; }; "language": { "alias": "language"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "data": { "alias": "data"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, { "luzmoDataFieldDropped": "luzmoDataFieldDropped"; "luzmoDataFieldDragStarted": "luzmoDataFieldDragStarted"; }, never, ["*"], true, never>;
45
- static ngAcceptInputType_hideTypeIcon: unknown;
46
- static ngAcceptInputType_sublevel: unknown;
47
- static ngAcceptInputType_disabled: unknown;
48
- }
49
- /** The underlying custom element type for LuzmoDataFieldLevel */
50
- export type LuzmoDataFieldLevelElement = LuzmoDataFieldLevelHostElement;
@@ -1,129 +0,0 @@
1
- import { booleanAttribute, ChangeDetectionStrategy, Component, DestroyRef, ElementRef, inject, Input, output, Renderer2 } from '@angular/core';
2
- import '@luzmo/analytics-components-kit/data-field-level';
3
- import * as i0 from "@angular/core";
4
- const _c0 = ["*"];
5
- /**
6
- * Angular wrapper component for <luzmo-data-field-level>
7
- */
8
- export class LuzmoDataFieldLevel {
9
- elementRef = inject(ElementRef);
10
- renderer = inject(Renderer2);
11
- destroyRef = inject(DestroyRef);
12
- host = this.elementRef.nativeElement;
13
- listenerCleanup = [];
14
- /** The underlying custom element instance. Use to call imperative methods. */
15
- get nativeElement() {
16
- return this.host;
17
- }
18
- /** Visual treatment of the level: `highlight` to emphasize it, or `normal`. */
19
- variant;
20
- /** Hides the data type icon shown before the level label. */
21
- hideTypeIcon;
22
- /** Whether this is rendered as a nested sublevel row (indented under a parent field). */
23
- sublevel;
24
- /** The language in which to display the level labels. */
25
- language;
26
- /** Whether the level is disabled (non-interactive and visually muted). */
27
- disabled;
28
- /** The dataset data field descriptor (column or formula field) this level represents. */
29
- data;
30
- /** The size of the element */
31
- size;
32
- /** Announces that the data field has been dropped */
33
- luzmoDataFieldDropped = output({ alias: 'luzmoDataFieldDropped' });
34
- /** Announces that the drag is started on the data field */
35
- luzmoDataFieldDragStarted = output({ alias: 'luzmoDataFieldDragStarted' });
36
- constructor() {
37
- this.bindEvents();
38
- this.destroyRef.onDestroy(() => {
39
- for (const cleanup of this.listenerCleanup) {
40
- cleanup();
41
- }
42
- });
43
- }
44
- ngOnChanges(changes) {
45
- for (const key of Object.keys(changes)) {
46
- switch (key) {
47
- case 'variant':
48
- this.setHostProperty('variant', changes['variant'].currentValue);
49
- break;
50
- case 'hideTypeIcon':
51
- this.setHostProperty('hideTypeIcon', changes['hideTypeIcon'].currentValue);
52
- break;
53
- case 'sublevel':
54
- this.setHostProperty('sublevel', changes['sublevel'].currentValue);
55
- break;
56
- case 'language':
57
- this.setHostProperty('language', changes['language'].currentValue);
58
- break;
59
- case 'disabled':
60
- this.setHostProperty('disabled', changes['disabled'].currentValue);
61
- break;
62
- case 'data':
63
- this.setHostProperty('data', changes['data'].currentValue);
64
- break;
65
- case 'size':
66
- this.setHostProperty('size', changes['size'].currentValue);
67
- break;
68
- default:
69
- break;
70
- }
71
- }
72
- }
73
- /**
74
- * Forward a wrapper @Input to the underlying host element via Renderer2 so
75
- * the wrapper stays compatible with non-DOM Angular platforms (SSR, tests).
76
- * Unlike a "skip undefined" guard, this lets consumers reset values back to
77
- * undefined / null by clearing their bindings.
78
- */
79
- setHostProperty(key, value) {
80
- this.renderer.setProperty(this.host, key, value);
81
- }
82
- bindEvents() {
83
- this.listenerCleanup.push(this.renderer.listen(this.host, 'luzmo-data-field-dropped', (event) => {
84
- const typed = event;
85
- this.luzmoDataFieldDropped.emit(typed);
86
- }));
87
- this.listenerCleanup.push(this.renderer.listen(this.host, 'luzmo-data-field-drag-started', (event) => {
88
- const typed = event;
89
- this.luzmoDataFieldDragStarted.emit(typed);
90
- }));
91
- }
92
- static ɵfac = function LuzmoDataFieldLevel_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LuzmoDataFieldLevel)(); };
93
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoDataFieldLevel, selectors: [["luzmo-data-field-level"]], inputs: { variant: "variant", hideTypeIcon: [2, "hideTypeIcon", "hideTypeIcon", booleanAttribute], sublevel: [2, "sublevel", "sublevel", booleanAttribute], language: "language", disabled: [2, "disabled", "disabled", booleanAttribute], data: "data", size: "size" }, outputs: { luzmoDataFieldDropped: "luzmoDataFieldDropped", luzmoDataFieldDragStarted: "luzmoDataFieldDragStarted" }, exportAs: ["luzmoDataFieldLevel"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoDataFieldLevel_Template(rf, ctx) { if (rf & 1) {
94
- i0.ɵɵprojectionDef();
95
- i0.ɵɵprojection(0);
96
- } }, encapsulation: 2 });
97
- }
98
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LuzmoDataFieldLevel, [{
99
- type: Component,
100
- args: [{
101
- selector: 'luzmo-data-field-level',
102
- exportAs: 'luzmoDataFieldLevel',
103
- standalone: true,
104
- changeDetection: ChangeDetectionStrategy.OnPush,
105
- template: '<ng-content />'
106
- }]
107
- }], () => [], { variant: [{
108
- type: Input,
109
- args: [{ alias: 'variant' }]
110
- }], hideTypeIcon: [{
111
- type: Input,
112
- args: [{ alias: 'hideTypeIcon', transform: booleanAttribute }]
113
- }], sublevel: [{
114
- type: Input,
115
- args: [{ alias: 'sublevel', transform: booleanAttribute }]
116
- }], language: [{
117
- type: Input,
118
- args: [{ alias: 'language' }]
119
- }], disabled: [{
120
- type: Input,
121
- args: [{ alias: 'disabled', transform: booleanAttribute }]
122
- }], data: [{
123
- type: Input,
124
- args: [{ alias: 'data' }]
125
- }], size: [{
126
- type: Input,
127
- args: [{ alias: 'size' }]
128
- }], luzmoDataFieldDropped: [{ type: i0.Output, args: ["luzmoDataFieldDropped"] }], luzmoDataFieldDragStarted: [{ type: i0.Output, args: ["luzmoDataFieldDragStarted"] }] }); })();
129
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LuzmoDataFieldLevel, { className: "LuzmoDataFieldLevel", filePath: "components/data-field-level.ts", lineNumber: 17 }); })();