@leavittsoftware/web 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (294) hide show
  1. package/leavitt/api-service/HttpError.d.ts +10 -0
  2. package/leavitt/api-service/HttpError.js +2 -0
  3. package/leavitt/api-service/HttpError.js.map +1 -0
  4. package/leavitt/api-service/api-service.d.ts +27 -0
  5. package/leavitt/api-service/api-service.js +332 -0
  6. package/leavitt/api-service/api-service.js.map +1 -0
  7. package/leavitt/api-service/api2-service.d.ts +338 -0
  8. package/leavitt/api-service/api2-service.js +17 -0
  9. package/leavitt/api-service/api2-service.js.map +1 -0
  10. package/leavitt/api-service/authenticated-token-provider.d.ts +5 -0
  11. package/leavitt/api-service/authenticated-token-provider.js +7 -0
  12. package/leavitt/api-service/authenticated-token-provider.js.map +1 -0
  13. package/leavitt/api-service/bearer-token-provider.d.ts +4 -0
  14. package/leavitt/api-service/bearer-token-provider.js +2 -0
  15. package/leavitt/api-service/bearer-token-provider.js.map +1 -0
  16. package/leavitt/api-service/mapi-service.d.ts +338 -0
  17. package/leavitt/api-service/mapi-service.js +17 -0
  18. package/leavitt/api-service/mapi-service.js.map +1 -0
  19. package/leavitt/api-service/no-authentication-token-provider.d.ts +5 -0
  20. package/leavitt/api-service/no-authentication-token-provider.js +6 -0
  21. package/leavitt/api-service/no-authentication-token-provider.js.map +1 -0
  22. package/leavitt/api-service/odata-dto.d.ts +6 -0
  23. package/leavitt/api-service/odata-dto.js +7 -0
  24. package/leavitt/api-service/odata-dto.js.map +1 -0
  25. package/leavitt/api-service/odata-model-info.d.ts +5 -0
  26. package/leavitt/api-service/odata-model-info.js +7 -0
  27. package/leavitt/api-service/odata-model-info.js.map +1 -0
  28. package/leavitt/api-service/odata-response.d.ts +15 -0
  29. package/leavitt/api-service/odata-response.js +50 -0
  30. package/leavitt/api-service/odata-response.js.map +1 -0
  31. package/leavitt/api-service/status-codes.d.ts +2 -0
  32. package/leavitt/api-service/status-codes.js +44 -0
  33. package/leavitt/api-service/status-codes.js.map +1 -0
  34. package/leavitt/company-select/company-select.d.ts +50 -0
  35. package/leavitt/company-select/company-select.js +157 -0
  36. package/leavitt/company-select/company-select.js.map +1 -0
  37. package/leavitt/person-company-select/person-company-select.d.ts +41 -0
  38. package/leavitt/person-company-select/person-company-select.js +180 -0
  39. package/leavitt/person-company-select/person-company-select.js.map +1 -0
  40. package/leavitt/person-group-select/people-group-icons.d.ts +5 -0
  41. package/leavitt/person-group-select/people-group-icons.js +66 -0
  42. package/leavitt/person-group-select/people-group-icons.js.map +1 -0
  43. package/leavitt/person-group-select/person-group-select.d.ts +41 -0
  44. package/leavitt/person-group-select/person-group-select.js +186 -0
  45. package/leavitt/person-group-select/person-group-select.js.map +1 -0
  46. package/leavitt/person-select/person-select.d.ts +33 -0
  47. package/leavitt/person-select/person-select.js +128 -0
  48. package/leavitt/person-select/person-select.js.map +1 -0
  49. package/leavitt/profile-picture/profile-picture-menu.d.ts +44 -0
  50. package/leavitt/profile-picture/profile-picture-menu.js +197 -0
  51. package/leavitt/profile-picture/profile-picture-menu.js.map +1 -0
  52. package/leavitt/profile-picture/profile-picture.d.ts +39 -0
  53. package/leavitt/profile-picture/profile-picture.js +151 -0
  54. package/leavitt/profile-picture/profile-picture.js.map +1 -0
  55. package/leavitt/user-feedback/user-feedback.d.ts +357 -0
  56. package/leavitt/user-feedback/user-feedback.js +207 -0
  57. package/leavitt/user-feedback/user-feedback.js.map +1 -0
  58. package/leavitt/user-manager/LssJwtToken.d.ts +21 -0
  59. package/leavitt/user-manager/LssJwtToken.js +2 -0
  60. package/leavitt/user-manager/LssJwtToken.js.map +1 -0
  61. package/leavitt/user-manager/user-manager-events.d.ts +5 -0
  62. package/leavitt/user-manager/user-manager-events.js +7 -0
  63. package/leavitt/user-manager/user-manager-events.js.map +1 -0
  64. package/leavitt/user-manager/user-manager.d.ts +37 -0
  65. package/leavitt/user-manager/user-manager.js +364 -0
  66. package/leavitt/user-manager/user-manager.js.map +1 -0
  67. package/package.json +36 -0
  68. package/titanium/access-denied-page/access-denied-page.d.ts +16 -0
  69. package/titanium/access-denied-page/access-denied-page.js +360 -0
  70. package/titanium/access-denied-page/access-denied-page.js.map +1 -0
  71. package/titanium/address-input/Address.js.map +1 -0
  72. package/titanium/address-input/address-input.d.ts +29 -0
  73. package/titanium/address-input/address-input.js +77 -0
  74. package/titanium/address-input/address-input.js.map +1 -0
  75. package/titanium/address-input/google-address-input.d.ts +30 -0
  76. package/titanium/address-input/google-address-input.js +202 -0
  77. package/titanium/address-input/google-address-input.js.map +1 -0
  78. package/titanium/address-input/manual-address-dialog.d.ts +30 -0
  79. package/titanium/address-input/manual-address-dialog.js +250 -0
  80. package/titanium/address-input/manual-address-dialog.js.map +1 -0
  81. package/titanium/address-input/types/address-input-address.d.ts +17 -0
  82. package/titanium/address-input/types/address-input-address.js +2 -0
  83. package/titanium/address-input/types/address-input-address.js.map +1 -0
  84. package/titanium/address-input/types/address.js.map +1 -0
  85. package/titanium/address-input/types/autocomplete-prediction-suggestion.js.map +1 -0
  86. package/titanium/address-input/utils/address-to-string.d.ts +3 -0
  87. package/titanium/address-input/utils/address-to-string.js +13 -0
  88. package/titanium/address-input/utils/address-to-string.js.map +1 -0
  89. package/titanium/address-input/utils/place-result-to-address.d.ts +4 -0
  90. package/titanium/address-input/utils/place-result-to-address.js +33 -0
  91. package/titanium/address-input/utils/place-result-to-address.js.map +1 -0
  92. package/titanium/address-input/utils/validate-street.d.ts +2 -0
  93. package/titanium/address-input/utils/validate-street.js +8 -0
  94. package/titanium/address-input/utils/validate-street.js.map +1 -0
  95. package/titanium/card/card.d.ts +23 -0
  96. package/titanium/card/card.js +160 -0
  97. package/titanium/card/card.js.map +1 -0
  98. package/titanium/chip-multi-select/chip-multi-select.d.ts +55 -0
  99. package/titanium/chip-multi-select/chip-multi-select.js +119 -0
  100. package/titanium/chip-multi-select/chip-multi-select.js.map +1 -0
  101. package/titanium/data-table/data-table-header.d.ts +67 -0
  102. package/titanium/data-table/data-table-header.js +207 -0
  103. package/titanium/data-table/data-table-header.js.map +1 -0
  104. package/titanium/data-table/data-table-item.d.ts +100 -0
  105. package/titanium/data-table/data-table-item.js +511 -0
  106. package/titanium/data-table/data-table-item.js.map +1 -0
  107. package/titanium/data-table/data-table.d.ts +146 -0
  108. package/titanium/data-table/data-table.js +605 -0
  109. package/titanium/data-table/data-table.js.map +1 -0
  110. package/titanium/data-table/filter-controller.d.ts +23 -0
  111. package/titanium/data-table/filter-controller.js +119 -0
  112. package/titanium/data-table/filter-controller.js.map +1 -0
  113. package/titanium/data-table/filter.d.ts +8 -0
  114. package/titanium/data-table/filter.js +11 -0
  115. package/titanium/data-table/filter.js.map +1 -0
  116. package/titanium/data-table/page-control.d.ts +54 -0
  117. package/titanium/data-table/page-control.js +196 -0
  118. package/titanium/data-table/page-control.js.map +1 -0
  119. package/titanium/date-range-selector/date-range-change-event.d.ts +8 -0
  120. package/titanium/date-range-selector/date-range-change-event.js +10 -0
  121. package/titanium/date-range-selector/date-range-change-event.js.map +1 -0
  122. package/titanium/date-range-selector/date-range-selector.d.ts +65 -0
  123. package/titanium/date-range-selector/date-range-selector.js +423 -0
  124. package/titanium/date-range-selector/date-range-selector.js.map +1 -0
  125. package/titanium/date-range-selector/range-label.d.ts +4 -0
  126. package/titanium/date-range-selector/range-label.js +25 -0
  127. package/titanium/date-range-selector/range-label.js.map +1 -0
  128. package/titanium/drawer/drawer.d.ts +39 -0
  129. package/titanium/drawer/drawer.js +233 -0
  130. package/titanium/drawer/drawer.js.map +1 -0
  131. package/titanium/duration-input/duration-input.d.ts +26 -0
  132. package/titanium/duration-input/duration-input.js +86 -0
  133. package/titanium/duration-input/duration-input.js.map +1 -0
  134. package/titanium/duration-input/human-interval.d.ts +19 -0
  135. package/titanium/duration-input/human-interval.js +74 -0
  136. package/titanium/duration-input/human-interval.js.map +1 -0
  137. package/titanium/error-page/error-page.d.ts +16 -0
  138. package/titanium/error-page/error-page.js +96 -0
  139. package/titanium/error-page/error-page.js.map +1 -0
  140. package/titanium/event-bus/event-bus.d.ts +10 -0
  141. package/titanium/event-bus/event-bus.js +52 -0
  142. package/titanium/event-bus/event-bus.js.map +1 -0
  143. package/titanium/extendable-outlined-text-field/extendable-outlined-text-field.d.ts +160 -0
  144. package/titanium/extendable-outlined-text-field/extendable-outlined-text-field.js +295 -0
  145. package/titanium/extendable-outlined-text-field/extendable-outlined-text-field.js.map +1 -0
  146. package/titanium/extendable-outlined-text-field/extensible-outlined-text-field.d.ts +45 -0
  147. package/titanium/extendable-outlined-text-field/extensible-outlined-text-field.js.map +1 -0
  148. package/titanium/full-page-loading-indicator/full-page-loading-indicator.d.ts +19 -0
  149. package/titanium/full-page-loading-indicator/full-page-loading-indicator.js +170 -0
  150. package/titanium/full-page-loading-indicator/full-page-loading-indicator.js.map +1 -0
  151. package/titanium/hacks/dialog-overflow-hacks.d.ts +4 -0
  152. package/titanium/hacks/dialog-overflow-hacks.js +21 -0
  153. package/titanium/hacks/dialog-overflow-hacks.js.map +1 -0
  154. package/titanium/header/header.d.ts +39 -0
  155. package/titanium/header/header.js +148 -0
  156. package/titanium/header/header.js.map +1 -0
  157. package/titanium/helpers/csv-download.d.ts +3 -0
  158. package/titanium/helpers/csv-download.js +78 -0
  159. package/titanium/helpers/csv-download.js.map +1 -0
  160. package/titanium/helpers/debouncer.d.ts +13 -0
  161. package/titanium/helpers/debouncer.js +33 -0
  162. package/titanium/helpers/debouncer.js.map +1 -0
  163. package/titanium/helpers/delay.d.ts +2 -0
  164. package/titanium/helpers/delay.js +6 -0
  165. package/titanium/helpers/delay.js.map +1 -0
  166. package/titanium/helpers/dev-detection.d.ts +3 -0
  167. package/titanium/helpers/dev-detection.js +12 -0
  168. package/titanium/helpers/dev-detection.js.map +1 -0
  169. package/titanium/helpers/helpers.d.ts +14 -0
  170. package/titanium/helpers/helpers.js +14 -0
  171. package/titanium/helpers/helpers.js.map +1 -0
  172. package/titanium/helpers/join.d.ts +2 -0
  173. package/titanium/helpers/join.js +5 -0
  174. package/titanium/helpers/join.js.map +1 -0
  175. package/titanium/helpers/leavitt-cdn.d.ts +5 -0
  176. package/titanium/helpers/leavitt-cdn.js +38 -0
  177. package/titanium/helpers/leavitt-cdn.js.map +1 -0
  178. package/titanium/helpers/load-while.d.ts +343 -0
  179. package/titanium/helpers/load-while.js +27 -0
  180. package/titanium/helpers/load-while.js.map +1 -0
  181. package/titanium/helpers/media-query.d.ts +2 -0
  182. package/titanium/helpers/media-query.js +6 -0
  183. package/titanium/helpers/media-query.js.map +1 -0
  184. package/titanium/helpers/middle-ellipsis.d.ts +2 -0
  185. package/titanium/helpers/middle-ellipsis.js +7 -0
  186. package/titanium/helpers/middle-ellipsis.js.map +1 -0
  187. package/titanium/helpers/not-null-or-undefined.d.ts +2 -0
  188. package/titanium/helpers/not-null-or-undefined.js +4 -0
  189. package/titanium/helpers/not-null-or-undefined.js.map +1 -0
  190. package/titanium/helpers/not-null.d.ts +2 -0
  191. package/titanium/helpers/not-null.js +4 -0
  192. package/titanium/helpers/not-null.js.map +1 -0
  193. package/titanium/helpers/not-undefined.d.ts +2 -0
  194. package/titanium/helpers/not-undefined.js +4 -0
  195. package/titanium/helpers/not-undefined.js.map +1 -0
  196. package/titanium/helpers/odata-helpers.d.ts +2 -0
  197. package/titanium/helpers/odata-helpers.js +2 -0
  198. package/titanium/helpers/odata-helpers.js.map +1 -0
  199. package/titanium/helpers/search-token.d.ts +2 -0
  200. package/titanium/helpers/search-token.js +17 -0
  201. package/titanium/helpers/search-token.js.map +1 -0
  202. package/titanium/icon-picker/icon-picker.d.ts +23 -0
  203. package/titanium/icon-picker/icon-picker.js +75 -0
  204. package/titanium/icon-picker/icon-picker.js.map +1 -0
  205. package/titanium/icon-picker/material-symbols.d.ts +3 -0
  206. package/titanium/icon-picker/material-symbols.js +3297 -0
  207. package/titanium/icon-picker/material-symbols.js.map +1 -0
  208. package/titanium/input-validator/input-validator.d.ts +20 -0
  209. package/titanium/input-validator/input-validator.js +45 -0
  210. package/titanium/input-validator/input-validator.js.map +1 -0
  211. package/titanium/search-input/search-input.d.ts +47 -0
  212. package/titanium/search-input/search-input.js +237 -0
  213. package/titanium/search-input/search-input.js.map +1 -0
  214. package/titanium/service-worker-notifier/service-worker-notifier.d.ts +9 -0
  215. package/titanium/service-worker-notifier/service-worker-notifier.js +57 -0
  216. package/titanium/service-worker-notifier/service-worker-notifier.js.map +1 -0
  217. package/titanium/show-hide/show-hide.d.ts +36 -0
  218. package/titanium/show-hide/show-hide.js +144 -0
  219. package/titanium/show-hide/show-hide.js.map +1 -0
  220. package/titanium/single-select-base/single-select-base.d.ts +449 -0
  221. package/titanium/single-select-base/single-select-base.js +411 -0
  222. package/titanium/single-select-base/single-select-base.js.map +1 -0
  223. package/titanium/smart-attachment-input/crop-and-save-image-dialog.d.ts +370 -0
  224. package/titanium/smart-attachment-input/crop-and-save-image-dialog.js +270 -0
  225. package/titanium/smart-attachment-input/crop-and-save-image-dialog.js.map +1 -0
  226. package/titanium/smart-attachment-input/cropper-styles.d.ts +3 -0
  227. package/titanium/smart-attachment-input/cropper-styles.js +311 -0
  228. package/titanium/smart-attachment-input/cropper-styles.js.map +1 -0
  229. package/titanium/smart-attachment-input/image-formats.d.ts +5 -0
  230. package/titanium/smart-attachment-input/image-formats.js +37 -0
  231. package/titanium/smart-attachment-input/image-formats.js.map +1 -0
  232. package/titanium/smart-attachment-input/image-preview-dialog.d.ts +21 -0
  233. package/titanium/smart-attachment-input/image-preview-dialog.js +83 -0
  234. package/titanium/smart-attachment-input/image-preview-dialog.js.map +1 -0
  235. package/titanium/smart-attachment-input/smart-attachment-input.d.ts +126 -0
  236. package/titanium/smart-attachment-input/smart-attachment-input.js +422 -0
  237. package/titanium/smart-attachment-input/smart-attachment-input.js.map +1 -0
  238. package/titanium/smart-attachment-input/type/smart-attachment.d.ts +7 -0
  239. package/titanium/smart-attachment-input/type/smart-attachment.js +2 -0
  240. package/titanium/smart-attachment-input/type/smart-attachment.js.map +1 -0
  241. package/titanium/snackbar/snackbar.d.ts +79 -0
  242. package/titanium/snackbar/snackbar.js +302 -0
  243. package/titanium/snackbar/snackbar.js.map +1 -0
  244. package/titanium/styles/a.d.ts +2 -0
  245. package/titanium/styles/a.js +18 -0
  246. package/titanium/styles/a.js.map +1 -0
  247. package/titanium/styles/data-row.d.ts +2 -0
  248. package/titanium/styles/data-row.js +52 -0
  249. package/titanium/styles/data-row.js.map +1 -0
  250. package/titanium/styles/ellipsis.d.ts +2 -0
  251. package/titanium/styles/ellipsis.js +9 -0
  252. package/titanium/styles/ellipsis.js.map +1 -0
  253. package/titanium/styles/h1.d.ts +2 -0
  254. package/titanium/styles/h1.js +17 -0
  255. package/titanium/styles/h1.js.map +1 -0
  256. package/titanium/styles/h2.d.ts +2 -0
  257. package/titanium/styles/h2.js +17 -0
  258. package/titanium/styles/h2.js.map +1 -0
  259. package/titanium/styles/h3.d.ts +2 -0
  260. package/titanium/styles/h3.js +17 -0
  261. package/titanium/styles/h3.js.map +1 -0
  262. package/titanium/styles/h4.d.ts +2 -0
  263. package/titanium/styles/h4.js +17 -0
  264. package/titanium/styles/h4.js.map +1 -0
  265. package/titanium/styles/h5.d.ts +2 -0
  266. package/titanium/styles/h5.js +19 -0
  267. package/titanium/styles/h5.js.map +1 -0
  268. package/titanium/styles/p.d.ts +2 -0
  269. package/titanium/styles/p.js +17 -0
  270. package/titanium/styles/p.js.map +1 -0
  271. package/titanium/styles/styles.d.ts +17 -0
  272. package/titanium/styles/styles.js +17 -0
  273. package/titanium/styles/styles.js.map +1 -0
  274. package/titanium/toolbar/toolbar.d.ts +34 -0
  275. package/titanium/toolbar/toolbar.js +104 -0
  276. package/titanium/toolbar/toolbar.js.map +1 -0
  277. package/titanium/types/any-function.d.ts +5 -0
  278. package/titanium/types/any-function.js +2 -0
  279. package/titanium/types/any-function.js.map +1 -0
  280. package/titanium/types/dom-event.d.ts +4 -0
  281. package/titanium/types/dom-event.js +2 -0
  282. package/titanium/types/dom-event.js.map +1 -0
  283. package/titanium/types/identifier-interface.d.ts +4 -0
  284. package/titanium/types/identifier-interface.js +2 -0
  285. package/titanium/types/identifier-interface.js.map +1 -0
  286. package/titanium/types/pending-state-event.d.ts +7 -0
  287. package/titanium/types/pending-state-event.js +7 -0
  288. package/titanium/types/pending-state-event.js.map +1 -0
  289. package/titanium/types/string-map.d.ts +7 -0
  290. package/titanium/types/string-map.js +5 -0
  291. package/titanium/types/string-map.js.map +1 -0
  292. package/titanium/youtube-input/youtube-input.d.ts +17 -0
  293. package/titanium/youtube-input/youtube-input.js +52 -0
  294. package/titanium/youtube-input/youtube-input.js.map +1 -0
@@ -0,0 +1,411 @@
1
+ import { __decorate } from "tslib";
2
+ import { css, html, LitElement } from 'lit';
3
+ import { property, customElement, query, state } from 'lit/decorators.js';
4
+ import { repeat } from 'lit/directives/repeat.js';
5
+ import '@material/web/progress/linear-progress';
6
+ import '@material/web/icon/icon';
7
+ import '@material/web/textfield/outlined-text-field';
8
+ import '@material/web/menu/menu';
9
+ import '@material/web/menu/menu-item';
10
+ import { LoadWhile } from '../../titanium/helpers/load-while';
11
+ let TitaniumSingleSelectBase = class TitaniumSingleSelectBase extends LoadWhile(LitElement) {
12
+ constructor() {
13
+ super(...arguments);
14
+ this.suggestions = [];
15
+ this.#label_accessor_storage = 'Single select';
16
+ this.#placeholder_accessor_storage = 'Search for a entity';
17
+ this.#selected_accessor_storage = null;
18
+ this.#disabled_accessor_storage = false;
19
+ this.#error_accessor_storage = false;
20
+ this.#required_accessor_storage = false;
21
+ this.#pathToSelectedText_accessor_storage = 'Name';
22
+ }
23
+ #label_accessor_storage;
24
+ /**
25
+ * Sets floating label value.
26
+ */
27
+ get label() { return this.#label_accessor_storage; }
28
+ set label(value) { this.#label_accessor_storage = value; }
29
+ #placeholder_accessor_storage;
30
+ /**
31
+ * Sets placeholder text value.
32
+ */
33
+ get placeholder() { return this.#placeholder_accessor_storage; }
34
+ set placeholder(value) { this.#placeholder_accessor_storage = value; }
35
+ #selected_accessor_storage;
36
+ /**
37
+ * The entity object selected by the user.
38
+ */
39
+ get selected() { return this.#selected_accessor_storage; }
40
+ set selected(value) { this.#selected_accessor_storage = value; }
41
+ #disabled_accessor_storage;
42
+ /**
43
+ * Whether or not the input should be disabled.
44
+ */
45
+ get disabled() { return this.#disabled_accessor_storage; }
46
+ set disabled(value) { this.#disabled_accessor_storage = value; }
47
+ #error_accessor_storage;
48
+ /**
49
+ * Gets or sets whether or not the text field is in a visually invalid state.
50
+ *
51
+ * This error state overrides the error state controlled by
52
+ * `reportValidity()`.
53
+ */
54
+ get error() { return this.#error_accessor_storage; }
55
+ set error(value) { this.#error_accessor_storage = value; }
56
+ #errorText_accessor_storage;
57
+ get errorText() { return this.#errorText_accessor_storage; }
58
+ set errorText(value) { this.#errorText_accessor_storage = value; }
59
+ #required_accessor_storage;
60
+ /**
61
+ * Displays error state if input is empty and input is blurred.
62
+ */
63
+ get required() { return this.#required_accessor_storage; }
64
+ set required(value) { this.#required_accessor_storage = value; }
65
+ #prefixText_accessor_storage;
66
+ /**
67
+ * An optional prefix to display before the input value.
68
+ */
69
+ get prefixText() { return this.#prefixText_accessor_storage; }
70
+ set prefixText(value) { this.#prefixText_accessor_storage = value; }
71
+ #suffixText_accessor_storage;
72
+ /**
73
+ * An optional suffix to display after the input value.
74
+ */
75
+ get suffixText() { return this.#suffixText_accessor_storage; }
76
+ set suffixText(value) { this.#suffixText_accessor_storage = value; }
77
+ #hasLeadingIcon_accessor_storage;
78
+ /**
79
+ * Whether or not the text field has a leading icon. Used for SSR.
80
+ */
81
+ get hasLeadingIcon() { return this.#hasLeadingIcon_accessor_storage; }
82
+ set hasLeadingIcon(value) { this.#hasLeadingIcon_accessor_storage = value; }
83
+ #hasTrailingIcon_accessor_storage;
84
+ /**
85
+ * Whether or not the text field has a trailing icon. Used for SSR.
86
+ */
87
+ get hasTrailingIcon() { return this.#hasTrailingIcon_accessor_storage; }
88
+ set hasTrailingIcon(value) { this.#hasTrailingIcon_accessor_storage = value; }
89
+ #supportingText_accessor_storage;
90
+ /**
91
+ * Conveys additional information below the text field, such as how it should
92
+ * be used.
93
+ */
94
+ get supportingText() { return this.#supportingText_accessor_storage; }
95
+ set supportingText(value) { this.#supportingText_accessor_storage = value; }
96
+ #textDirection_accessor_storage;
97
+ /**
98
+ * Override the input text CSS `direction`. Useful for RTL languages that use
99
+ * LTR notation for fractions.
100
+ */
101
+ get textDirection() { return this.#textDirection_accessor_storage; }
102
+ set textDirection(value) { this.#textDirection_accessor_storage = value; }
103
+ #pathToSelectedText_accessor_storage;
104
+ get pathToSelectedText() { return this.#pathToSelectedText_accessor_storage; }
105
+ set pathToSelectedText(value) { this.#pathToSelectedText_accessor_storage = value; }
106
+ #count_accessor_storage;
107
+ get count() { return this.#count_accessor_storage; }
108
+ set count(value) { this.#count_accessor_storage = value; }
109
+ async firstUpdated() {
110
+ if (this.textfield && this.required) {
111
+ const originalCheckValidity = this.textfield?.checkValidity;
112
+ this.textfield.checkValidity = () => !!this.selected && originalCheckValidity.bind(this.textfield);
113
+ }
114
+ }
115
+ setCustomValidity(error) {
116
+ this.textfield?.setCustomValidity(error);
117
+ }
118
+ /**
119
+ * Resets the selected entity, search term and suggestions.
120
+ */
121
+ async reset() {
122
+ this.softReset();
123
+ this.selected = null;
124
+ if (this.textfield) {
125
+ this.textfield.error = false;
126
+ this.textfield.errorText = '';
127
+ }
128
+ }
129
+ /**
130
+ * Resets search term and suggestions.
131
+ */
132
+ softReset() {
133
+ if (this.textfield) {
134
+ this.textfield.reset();
135
+ }
136
+ this.searchTerm = '';
137
+ this.suggestions = [];
138
+ }
139
+ /**
140
+ * Selects all the text in the text field.
141
+ *
142
+ * https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/select
143
+ */
144
+ async select() {
145
+ this.textfield?.select();
146
+ }
147
+ /**
148
+ * Sets focus on the input.
149
+ */
150
+ async focus() {
151
+ this.textfield?.focus();
152
+ }
153
+ /**
154
+ * Returns true if the input passes validity checks.
155
+ */
156
+ checkValidity() {
157
+ return this.textfield?.checkValidity() && this.customCheckValidity();
158
+ }
159
+ /**
160
+ * Runs checkValidity() method, and if it returns false, then it reports to the user that the input is invalid.
161
+ */
162
+ reportValidity() {
163
+ var result = this.textfield?.reportValidity();
164
+ this.customReportValidity();
165
+ return result;
166
+ }
167
+ customCheckValidity() {
168
+ this.errorText = 'Please fill out this field';
169
+ if (!this.selected && this.textfield?.value) {
170
+ return false;
171
+ }
172
+ if (!this.required && !this.selected) {
173
+ return true;
174
+ }
175
+ return !!this.selected;
176
+ }
177
+ customReportValidity() {
178
+ if (!this.customCheckValidity()) {
179
+ this.error = true;
180
+ }
181
+ else {
182
+ this.error = false;
183
+ this.errorText = '';
184
+ }
185
+ }
186
+ async setSelected(entity) {
187
+ const previouslySelected = this.selected;
188
+ this.selected = entity;
189
+ if (this.selected) {
190
+ this.softReset();
191
+ setTimeout(() => {
192
+ this.reportValidity();
193
+ }, 0);
194
+ }
195
+ if (previouslySelected?.Id !== this.selected?.Id) {
196
+ this.dispatchEvent(new Event('selected'));
197
+ }
198
+ }
199
+ onInputChanged(searchTerm) {
200
+ console.log(searchTerm);
201
+ }
202
+ async #onInput(searchTerm) {
203
+ this.menu?.close();
204
+ await this.updateComplete;
205
+ this.setSelected(null);
206
+ this.suggestions = [];
207
+ this.count = 0;
208
+ this.searchTerm = searchTerm;
209
+ this.onInputChanged(searchTerm);
210
+ if (this.menu) {
211
+ this.menu.open = !!this.searchTerm || !!this.suggestions.length;
212
+ }
213
+ }
214
+ static { this.styles = [
215
+ css `
216
+ :host {
217
+ display: block;
218
+ position: relative;
219
+ }
220
+
221
+ md-outlined-text-field {
222
+ width: 100%;
223
+ }
224
+
225
+ md-linear-progress {
226
+ margin: 0px 12px 4px 12px;
227
+ min-width: 276px;
228
+ width: calc(100% - 24px);
229
+ }
230
+
231
+ md-linear-progress[hide] {
232
+ visibility: hidden;
233
+ }
234
+
235
+ md-menu-item {
236
+ min-width: 300px;
237
+ }
238
+
239
+ :host([shaped]) {
240
+ --md-outlined-text-field-container-shape: 28px;
241
+ }
242
+
243
+ :host([shallow]) {
244
+ --md-outlined-text-field-container-shape: 12px;
245
+ }
246
+
247
+ img[leading] {
248
+ width: 24px;
249
+ height: 24px;
250
+ }
251
+
252
+ img[company-mark] {
253
+ width: 40px;
254
+ height: 40px;
255
+ }
256
+
257
+ [summary] {
258
+ padding: 0px 16px 4px 16px;
259
+ font-family: Roboto, Arial, sans-serif;
260
+ color: var(--app-light-text-color);
261
+ line-height: 18px;
262
+ font-size: 13px;
263
+ }
264
+ `,
265
+ ]; }
266
+ // Override to create custom menu items for type T
267
+ renderSuggestion(entity) {
268
+ return html `<md-menu-item .item=${entity} ?selected=${this.selected?.Id === entity.Id}>
269
+ <slot name="trailing-icon" slot="trailing-icon"></slot>
270
+ <span slot="headline">${entity.Id}</span>
271
+ </md-menu-item>`;
272
+ }
273
+ renderSelectedLeadingInputSlot(_entity) { }
274
+ renderTrailingInputSlot() {
275
+ return html `<slot name="trailing-icon" slot="trailing-icon"></slot>`;
276
+ }
277
+ renderLeadingInputSlot() {
278
+ return html `<slot name="leading-icon" slot="leading-icon"><md-icon>search</md-icon></slot>`;
279
+ }
280
+ renderTrailingSlot() {
281
+ return html ``;
282
+ }
283
+ render() {
284
+ return html `
285
+ <md-outlined-text-field
286
+ id="menu-anchor"
287
+ aria-haspopup="true"
288
+ aria-controls="menu"
289
+ .disabled=${this.disabled}
290
+ .error=${this.error}
291
+ .errorText=${this.errorText}
292
+ .label=${this.label}
293
+ .required=${this.required}
294
+ .prefixText=${this.prefixText}
295
+ .suffixText=${this.suffixText}
296
+ .hasLeadingIcon=${this.hasLeadingIcon}
297
+ .hasTrailingIcon=${this.hasTrailingIcon}
298
+ .supportingText=${this.supportingText}
299
+ .textDirection=${this.textDirection}
300
+ .placeholder=${this.placeholder}
301
+ .value=${this.selected?.[this.pathToSelectedText] || this.searchTerm || ''}
302
+ default-focus="0"
303
+ @keydown=${(e) => {
304
+ if (this.suggestions.length > 0 && (e.key == 'Enter' || e.key == 'ArrowDown' || e.key == 'ArrowUp')) {
305
+ e.stopPropagation();
306
+ this.menu?.activateNextItem();
307
+ }
308
+ if (e.key == 'Tab' || e.key == 'Escape') {
309
+ if (this.menu?.open) {
310
+ this.menu.close();
311
+ }
312
+ }
313
+ }}
314
+ @input=${async (e) => this.#onInput(e.target.value)}
315
+ @focus=${() => {
316
+ if (this.selected) {
317
+ this.select();
318
+ }
319
+ else {
320
+ if (!!this.searchTerm || !!this.suggestions.length) {
321
+ this.menu?.show();
322
+ }
323
+ }
324
+ }}
325
+ >
326
+ ${this.selected ? this.renderSelectedLeadingInputSlot(this.selected) : this.renderLeadingInputSlot()} ${this.renderTrailingInputSlot()}
327
+ </md-outlined-text-field>
328
+ <md-menu
329
+ quick
330
+ id="menu"
331
+ anchor="menu-anchor"
332
+ anchor-corner="end-start"
333
+ default-focus="list-root"
334
+ skip-restore-focus
335
+ @close-menu=${(e) => {
336
+ const selectedMenuItem = (e.detail.itemPath?.[0] ?? null);
337
+ this.setSelected(selectedMenuItem?.item);
338
+ }}
339
+ >
340
+ <md-linear-progress ?indeterminate=${this.isLoading} ?hide=${!this.isLoading}></md-linear-progress>
341
+ ${!!this.searchTerm && !this.isLoading
342
+ ? html `<div summary>Showing ${this.suggestions.length} of ${this.count} result${this.count === 1 ? '' : 's'} for '${this.searchTerm}'</div>`
343
+ : ''}
344
+ ${repeat(this.suggestions, (item) => item?.Id, (item) => this.renderSuggestion(item))}
345
+ </md-menu>
346
+ ${this.renderTrailingSlot()}
347
+ `;
348
+ }
349
+ };
350
+ __decorate([
351
+ state()
352
+ ], TitaniumSingleSelectBase.prototype, "searchTerm", void 0);
353
+ __decorate([
354
+ state()
355
+ ], TitaniumSingleSelectBase.prototype, "suggestions", void 0);
356
+ __decorate([
357
+ query('md-menu')
358
+ ], TitaniumSingleSelectBase.prototype, "menu", void 0);
359
+ __decorate([
360
+ query('md-outlined-text-field')
361
+ ], TitaniumSingleSelectBase.prototype, "textfield", void 0);
362
+ __decorate([
363
+ property({ type: String })
364
+ ], TitaniumSingleSelectBase.prototype, "label", null);
365
+ __decorate([
366
+ property({ type: String })
367
+ ], TitaniumSingleSelectBase.prototype, "placeholder", null);
368
+ __decorate([
369
+ property({ type: Object })
370
+ ], TitaniumSingleSelectBase.prototype, "selected", null);
371
+ __decorate([
372
+ property({ type: Boolean })
373
+ ], TitaniumSingleSelectBase.prototype, "disabled", null);
374
+ __decorate([
375
+ property({ type: Boolean })
376
+ ], TitaniumSingleSelectBase.prototype, "error", null);
377
+ __decorate([
378
+ property({ type: String })
379
+ ], TitaniumSingleSelectBase.prototype, "errorText", null);
380
+ __decorate([
381
+ property({ type: Boolean })
382
+ ], TitaniumSingleSelectBase.prototype, "required", null);
383
+ __decorate([
384
+ property({ type: String })
385
+ ], TitaniumSingleSelectBase.prototype, "prefixText", null);
386
+ __decorate([
387
+ property({ type: String })
388
+ ], TitaniumSingleSelectBase.prototype, "suffixText", null);
389
+ __decorate([
390
+ property({ type: Boolean })
391
+ ], TitaniumSingleSelectBase.prototype, "hasLeadingIcon", null);
392
+ __decorate([
393
+ property({ type: Boolean })
394
+ ], TitaniumSingleSelectBase.prototype, "hasTrailingIcon", null);
395
+ __decorate([
396
+ property({ type: String })
397
+ ], TitaniumSingleSelectBase.prototype, "supportingText", null);
398
+ __decorate([
399
+ property({ type: String })
400
+ ], TitaniumSingleSelectBase.prototype, "textDirection", null);
401
+ __decorate([
402
+ property({ type: String })
403
+ ], TitaniumSingleSelectBase.prototype, "pathToSelectedText", null);
404
+ __decorate([
405
+ state()
406
+ ], TitaniumSingleSelectBase.prototype, "count", null);
407
+ TitaniumSingleSelectBase = __decorate([
408
+ customElement('titanium-single-select-base')
409
+ ], TitaniumSingleSelectBase);
410
+ export { TitaniumSingleSelectBase };
411
+ //# sourceMappingURL=single-select-base.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"single-select-base.js","sourceRoot":"","sources":["single-select-base.ts"],"names":[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