@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,38 @@
1
+ /*
2
+ * Requires CdnFileName,PreviewExtension,PreviewSizes,Extension
3
+ */
4
+ export function getCdnInlineUrl(attachment, size) {
5
+ if (!attachment?.CdnFileName) {
6
+ return undefined;
7
+ }
8
+ if (!attachment?.PreviewSizes || !attachment?.PreviewSizes?.split(',').includes(String(size))) {
9
+ if (isImage(attachment)) {
10
+ //Return original size
11
+ return `https://cdn.leavitt.com/${attachment.CdnFileName}.${attachment.Extension}`;
12
+ }
13
+ return undefined;
14
+ }
15
+ return size
16
+ ? `https://cdn.leavitt.com/${attachment.CdnFileName}-${size}.${attachment.PreviewExtension}`
17
+ : `https://cdn.leavitt.com/${attachment.CdnFileName}.${attachment.Extension}`;
18
+ }
19
+ export function isImage(attachment) {
20
+ return (attachment?.Extension === 'png' ||
21
+ attachment?.Extension === 'jpg' ||
22
+ attachment?.Extension === 'jpeg' ||
23
+ attachment?.Extension === 'gif' ||
24
+ attachment?.Extension === 'svg' ||
25
+ attachment?.Extension === 'webp');
26
+ }
27
+ /*
28
+ * Requires CdnFileName,PreviewExtension,PreviewSizes,Extension,Name
29
+ */
30
+ export function getCdnDownloadUrl(attachment, size) {
31
+ if (!attachment?.CdnFileName || (size && !attachment?.PreviewSizes?.split(',').includes(String(size)))) {
32
+ return undefined;
33
+ }
34
+ return size
35
+ ? `https://cdn.leavitt.com/${attachment.CdnFileName}-${size}.${attachment.PreviewExtension}?d=${encodeURIComponent(`${attachment.Name}-${size}.${attachment.PreviewExtension}`)}`
36
+ : `https://cdn.leavitt.com/${attachment.CdnFileName}.${attachment.Extension}?d=${encodeURIComponent(`${attachment.Name}.${attachment.Extension}`)}`;
37
+ }
38
+ //# sourceMappingURL=leavitt-cdn.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"leavitt-cdn.js","sourceRoot":"","sources":["leavitt-cdn.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,UAAU,eAAe,CAAC,UAA2D,EAAE,IAAa;IACxG,IAAI,CAAC,UAAU,EAAE,WAAW,EAAE;QAC5B,OAAO,SAAS,CAAC;KAClB;IAED,IAAI,CAAC,UAAU,EAAE,YAAY,IAAI,CAAC,UAAU,EAAE,YAAY,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,EAAE;QAC7F,IAAI,OAAO,CAAC,UAAU,CAAC,EAAE;YACvB,sBAAsB;YACtB,OAAO,2BAA2B,UAAU,CAAC,WAAW,IAAI,UAAU,CAAC,SAAS,EAAE,CAAC;SACpF;QACD,OAAO,SAAS,CAAC;KAClB;IAED,OAAO,IAAI;QACT,CAAC,CAAC,2BAA2B,UAAU,CAAC,WAAW,IAAI,IAAI,IAAI,UAAU,CAAC,gBAAgB,EAAE;QAC5F,CAAC,CAAC,2BAA2B,UAAU,CAAC,WAAW,IAAI,UAAU,CAAC,SAAS,EAAE,CAAC;AAClF,CAAC;AAED,MAAM,UAAU,OAAO,CAAC,UAAwC;IAC9D,OAAO,CACL,UAAU,EAAE,SAAS,KAAK,KAAK;QAC/B,UAAU,EAAE,SAAS,KAAK,KAAK;QAC/B,UAAU,EAAE,SAAS,KAAK,MAAM;QAChC,UAAU,EAAE,SAAS,KAAK,KAAK;QAC/B,UAAU,EAAE,SAAS,KAAK,KAAK;QAC/B,UAAU,EAAE,SAAS,KAAK,MAAM,CACjC,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,iBAAiB,CAAC,UAA2D,EAAE,IAAa;IAC1G,IAAI,CAAC,UAAU,EAAE,WAAW,IAAI,CAAC,IAAI,IAAI,CAAC,UAAU,EAAE,YAAY,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE;QACtG,OAAO,SAAS,CAAC;KAClB;IAED,OAAO,IAAI;QACT,CAAC,CAAC,2BAA2B,UAAU,CAAC,WAAW,IAAI,IAAI,IAAI,UAAU,CAAC,gBAAgB,MAAM,kBAAkB,CAC9G,GAAG,UAAU,CAAC,IAAI,IAAI,IAAI,IAAI,UAAU,CAAC,gBAAgB,EAAE,CAC5D,EAAE;QACL,CAAC,CAAC,2BAA2B,UAAU,CAAC,WAAW,IAAI,UAAU,CAAC,SAAS,MAAM,kBAAkB,CAAC,GAAG,UAAU,CAAC,IAAI,IAAI,UAAU,CAAC,SAAS,EAAE,CAAC,EAAE,CAAC;AACxJ,CAAC"}
@@ -0,0 +1,343 @@
1
+ export type Constructor<T> = {
2
+ new (...args: any[]): T;
3
+ };
4
+ export declare const LoadWhile: <C extends Constructor<HTMLElement>>(base: C) => {
5
+ new (...args: any[]): {
6
+ /**
7
+ * @internal
8
+ */
9
+ "__#3@#promiseCount": number;
10
+ isLoading: boolean;
11
+ loadWhile(promise: Promise<unknown>): Promise<void>;
12
+ accessKey: string;
13
+ readonly accessKeyLabel: string;
14
+ autocapitalize: string;
15
+ dir: string;
16
+ draggable: boolean;
17
+ hidden: boolean;
18
+ inert: boolean;
19
+ innerText: string;
20
+ lang: string;
21
+ readonly offsetHeight: number;
22
+ readonly offsetLeft: number;
23
+ readonly offsetParent: Element | null;
24
+ readonly offsetTop: number;
25
+ readonly offsetWidth: number;
26
+ outerText: string;
27
+ popover: string | null;
28
+ spellcheck: boolean;
29
+ title: string;
30
+ translate: boolean;
31
+ attachInternals(): ElementInternals;
32
+ click(): void;
33
+ hidePopover(): void;
34
+ showPopover(): void;
35
+ togglePopover(force?: boolean | undefined): void;
36
+ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void;
37
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
38
+ removeEventListener<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions | undefined): void;
39
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions | undefined): void;
40
+ floatingLabelFoundation?: import("@material/floating-label/foundation").MDCFloatingLabelFoundation | undefined;
41
+ lineRippleFoundation?: import("@material/line-ripple/foundation").MDCLineRippleFoundation | undefined;
42
+ readonly attributes: NamedNodeMap;
43
+ readonly classList: DOMTokenList;
44
+ className: string;
45
+ readonly clientHeight: number;
46
+ readonly clientLeft: number;
47
+ readonly clientTop: number;
48
+ readonly clientWidth: number;
49
+ id: string;
50
+ readonly localName: string;
51
+ readonly namespaceURI: string | null;
52
+ onfullscreenchange: ((this: Element, ev: Event) => any) | null;
53
+ onfullscreenerror: ((this: Element, ev: Event) => any) | null;
54
+ outerHTML: string;
55
+ readonly ownerDocument: Document;
56
+ readonly part: DOMTokenList;
57
+ readonly prefix: string | null;
58
+ readonly scrollHeight: number;
59
+ scrollLeft: number;
60
+ scrollTop: number;
61
+ readonly scrollWidth: number;
62
+ readonly shadowRoot: ShadowRoot | null;
63
+ slot: string;
64
+ readonly tagName: string;
65
+ attachShadow(init: ShadowRootInit): ShadowRoot;
66
+ checkVisibility(options?: CheckVisibilityOptions | undefined): boolean;
67
+ closest<K_2 extends keyof HTMLElementTagNameMap>(selector: K_2): HTMLElementTagNameMap[K_2] | null;
68
+ closest<K_3 extends keyof SVGElementTagNameMap>(selector: K_3): SVGElementTagNameMap[K_3] | null;
69
+ closest<K_4 extends keyof MathMLElementTagNameMap>(selector: K_4): MathMLElementTagNameMap[K_4] | null;
70
+ closest<E extends Element = Element>(selectors: string): E | null;
71
+ computedStyleMap(): StylePropertyMapReadOnly;
72
+ getAttribute(qualifiedName: string): string | null;
73
+ getAttributeNS(namespace: string | null, localName: string): string | null;
74
+ getAttributeNames(): string[];
75
+ getAttributeNode(qualifiedName: string): Attr | null;
76
+ getAttributeNodeNS(namespace: string | null, localName: string): Attr | null;
77
+ getBoundingClientRect(): DOMRect;
78
+ getClientRects(): DOMRectList;
79
+ getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
80
+ getElementsByTagName<K_5 extends keyof HTMLElementTagNameMap>(qualifiedName: K_5): HTMLCollectionOf<HTMLElementTagNameMap[K_5]>;
81
+ getElementsByTagName<K_6 extends keyof SVGElementTagNameMap>(qualifiedName: K_6): HTMLCollectionOf<SVGElementTagNameMap[K_6]>;
82
+ getElementsByTagName<K_7 extends keyof MathMLElementTagNameMap>(qualifiedName: K_7): HTMLCollectionOf<MathMLElementTagNameMap[K_7]>;
83
+ getElementsByTagName<K_8 extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K_8): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K_8]>;
84
+ getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
85
+ getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
86
+ getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
87
+ getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>;
88
+ getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;
89
+ hasAttribute(qualifiedName: string): boolean;
90
+ hasAttributeNS(namespace: string | null, localName: string): boolean;
91
+ hasAttributes(): boolean;
92
+ hasPointerCapture(pointerId: number): boolean;
93
+ insertAdjacentElement(where: InsertPosition, element: Element): Element | null;
94
+ insertAdjacentHTML(position: InsertPosition, text: string): void;
95
+ insertAdjacentText(where: InsertPosition, data: string): void;
96
+ matches(selectors: string): boolean;
97
+ releasePointerCapture(pointerId: number): void;
98
+ removeAttribute(qualifiedName: string): void;
99
+ removeAttributeNS(namespace: string | null, localName: string): void;
100
+ removeAttributeNode(attr: Attr): Attr;
101
+ requestFullscreen(options?: FullscreenOptions | undefined): Promise<void>;
102
+ requestPointerLock(): void;
103
+ scroll(options?: ScrollToOptions | undefined): void;
104
+ scroll(x: number, y: number): void;
105
+ scrollBy(options?: ScrollToOptions | undefined): void;
106
+ scrollBy(x: number, y: number): void;
107
+ scrollIntoView(arg?: boolean | ScrollIntoViewOptions | undefined): void;
108
+ scrollTo(options?: ScrollToOptions | undefined): void;
109
+ scrollTo(x: number, y: number): void;
110
+ setAttribute(qualifiedName: string, value: string): void;
111
+ setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void;
112
+ setAttributeNode(attr: Attr): Attr | null;
113
+ setAttributeNodeNS(attr: Attr): Attr | null;
114
+ setPointerCapture(pointerId: number): void;
115
+ toggleAttribute(qualifiedName: string, force?: boolean | undefined): boolean;
116
+ webkitMatchesSelector(selectors: string): boolean;
117
+ readonly baseURI: string;
118
+ readonly childNodes: NodeListOf<ChildNode>;
119
+ readonly firstChild: ChildNode | null;
120
+ readonly isConnected: boolean;
121
+ readonly lastChild: ChildNode | null;
122
+ readonly nextSibling: ChildNode | null;
123
+ readonly nodeName: string;
124
+ readonly nodeType: number;
125
+ nodeValue: string | null;
126
+ readonly parentElement: HTMLElement | null;
127
+ readonly parentNode: ParentNode | null;
128
+ readonly previousSibling: ChildNode | null;
129
+ textContent: string | null;
130
+ appendChild<T extends Node>(node: T): T;
131
+ cloneNode(deep?: boolean | undefined): Node;
132
+ compareDocumentPosition(other: Node): number;
133
+ contains(other: Node | null): boolean;
134
+ getRootNode(options?: GetRootNodeOptions | undefined): Node;
135
+ hasChildNodes(): boolean;
136
+ insertBefore<T_1 extends Node>(node: T_1, child: Node | null): T_1;
137
+ isDefaultNamespace(namespace: string | null): boolean;
138
+ isEqualNode(otherNode: Node | null): boolean;
139
+ isSameNode(otherNode: Node | null): boolean;
140
+ lookupNamespaceURI(prefix: string | null): string | null;
141
+ lookupPrefix(namespace: string | null): string | null;
142
+ normalize(): void;
143
+ removeChild<T_2 extends Node>(child: T_2): T_2;
144
+ replaceChild<T_3 extends Node>(node: Node, child: T_3): T_3;
145
+ readonly ELEMENT_NODE: 1;
146
+ readonly ATTRIBUTE_NODE: 2;
147
+ readonly TEXT_NODE: 3;
148
+ readonly CDATA_SECTION_NODE: 4;
149
+ readonly ENTITY_REFERENCE_NODE: 5;
150
+ readonly ENTITY_NODE: 6;
151
+ readonly PROCESSING_INSTRUCTION_NODE: 7;
152
+ readonly COMMENT_NODE: 8;
153
+ readonly DOCUMENT_NODE: 9;
154
+ readonly DOCUMENT_TYPE_NODE: 10;
155
+ readonly DOCUMENT_FRAGMENT_NODE: 11;
156
+ readonly NOTATION_NODE: 12;
157
+ readonly DOCUMENT_POSITION_DISCONNECTED: 1;
158
+ readonly DOCUMENT_POSITION_PRECEDING: 2;
159
+ readonly DOCUMENT_POSITION_FOLLOWING: 4;
160
+ readonly DOCUMENT_POSITION_CONTAINS: 8;
161
+ readonly DOCUMENT_POSITION_CONTAINED_BY: 16;
162
+ readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32;
163
+ dispatchEvent(event: Event): boolean;
164
+ ariaAtomic: string | null;
165
+ ariaAutoComplete: string | null;
166
+ ariaBusy: string | null;
167
+ ariaChecked: string | null;
168
+ ariaColCount: string | null;
169
+ ariaColIndex: string | null;
170
+ ariaColSpan: string | null;
171
+ ariaCurrent: string | null;
172
+ ariaDisabled: string | null;
173
+ ariaExpanded: string | null;
174
+ ariaHasPopup: string | null;
175
+ ariaHidden: string | null;
176
+ ariaInvalid: string | null;
177
+ ariaKeyShortcuts: string | null;
178
+ ariaLabel: string | null;
179
+ ariaLevel: string | null;
180
+ ariaLive: string | null;
181
+ ariaModal: string | null;
182
+ ariaMultiLine: string | null;
183
+ ariaMultiSelectable: string | null;
184
+ ariaOrientation: string | null;
185
+ ariaPlaceholder: string | null;
186
+ ariaPosInSet: string | null;
187
+ ariaPressed: string | null;
188
+ ariaReadOnly: string | null;
189
+ ariaRequired: string | null;
190
+ ariaRoleDescription: string | null;
191
+ ariaRowCount: string | null;
192
+ ariaRowIndex: string | null;
193
+ ariaRowSpan: string | null;
194
+ ariaSelected: string | null;
195
+ ariaSetSize: string | null;
196
+ ariaSort: string | null;
197
+ ariaValueMax: string | null;
198
+ ariaValueMin: string | null;
199
+ ariaValueNow: string | null;
200
+ ariaValueText: string | null;
201
+ role: string | null;
202
+ animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined): Animation;
203
+ getAnimations(options?: GetAnimationsOptions | undefined): Animation[];
204
+ after(...nodes: (string | Node)[]): void;
205
+ before(...nodes: (string | Node)[]): void;
206
+ remove(): void;
207
+ replaceWith(...nodes: (string | Node)[]): void;
208
+ innerHTML: string;
209
+ readonly nextElementSibling: Element | null;
210
+ readonly previousElementSibling: Element | null;
211
+ readonly childElementCount: number;
212
+ readonly children: HTMLCollection;
213
+ readonly firstElementChild: Element | null;
214
+ readonly lastElementChild: Element | null;
215
+ append(...nodes: (string | Node)[]): void;
216
+ prepend(...nodes: (string | Node)[]): void;
217
+ querySelector<K_9 extends keyof HTMLElementTagNameMap>(selectors: K_9): HTMLElementTagNameMap[K_9] | null;
218
+ querySelector<K_10 extends keyof SVGElementTagNameMap>(selectors: K_10): SVGElementTagNameMap[K_10] | null;
219
+ querySelector<K_11 extends keyof MathMLElementTagNameMap>(selectors: K_11): MathMLElementTagNameMap[K_11] | null;
220
+ querySelector<K_12 extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K_12): HTMLElementDeprecatedTagNameMap[K_12] | null;
221
+ querySelector<E_1 extends Element = Element>(selectors: string): E_1 | null;
222
+ querySelectorAll<K_13 extends keyof HTMLElementTagNameMap>(selectors: K_13): NodeListOf<HTMLElementTagNameMap[K_13]>;
223
+ querySelectorAll<K_14 extends keyof SVGElementTagNameMap>(selectors: K_14): NodeListOf<SVGElementTagNameMap[K_14]>;
224
+ querySelectorAll<K_15 extends keyof MathMLElementTagNameMap>(selectors: K_15): NodeListOf<MathMLElementTagNameMap[K_15]>;
225
+ querySelectorAll<K_16 extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K_16): NodeListOf<HTMLElementDeprecatedTagNameMap[K_16]>;
226
+ querySelectorAll<E_2 extends Element = Element>(selectors: string): NodeListOf<E_2>;
227
+ replaceChildren(...nodes: (string | Node)[]): void;
228
+ readonly assignedSlot: HTMLSlotElement | null;
229
+ readonly attributeStyleMap: StylePropertyMap;
230
+ readonly style: CSSStyleDeclaration;
231
+ contentEditable: string;
232
+ enterKeyHint: string;
233
+ inputMode: string;
234
+ readonly isContentEditable: boolean;
235
+ onabort: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
236
+ onanimationcancel: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
237
+ onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
238
+ onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
239
+ onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
240
+ onauxclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
241
+ onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
242
+ onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
243
+ oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null;
244
+ oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
245
+ oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null;
246
+ onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
247
+ onclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
248
+ onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
249
+ oncontextmenu: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
250
+ oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
251
+ oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
252
+ oncut: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
253
+ ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
254
+ ondrag: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
255
+ ondragend: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
256
+ ondragenter: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
257
+ ondragleave: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
258
+ ondragover: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
259
+ ondragstart: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
260
+ ondrop: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
261
+ ondurationchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
262
+ onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null;
263
+ onended: ((this: GlobalEventHandlers, ev: Event) => any) | null;
264
+ onerror: OnErrorEventHandler;
265
+ onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
266
+ onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null;
267
+ ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
268
+ oninput: ((this: GlobalEventHandlers, ev: Event) => any) | null;
269
+ oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null;
270
+ onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
271
+ onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
272
+ onkeyup: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
273
+ onload: ((this: GlobalEventHandlers, ev: Event) => any) | null;
274
+ onloadeddata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
275
+ onloadedmetadata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
276
+ onloadstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
277
+ onlostpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
278
+ onmousedown: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
279
+ onmouseenter: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
280
+ onmouseleave: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
281
+ onmousemove: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
282
+ onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
283
+ onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
284
+ onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
285
+ onpaste: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
286
+ onpause: ((this: GlobalEventHandlers, ev: Event) => any) | null;
287
+ onplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
288
+ onplaying: ((this: GlobalEventHandlers, ev: Event) => any) | null;
289
+ onpointercancel: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
290
+ onpointerdown: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
291
+ onpointerenter: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
292
+ onpointerleave: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
293
+ onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
294
+ onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
295
+ onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
296
+ onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
297
+ onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent<EventTarget>) => any) | null;
298
+ onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
299
+ onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null;
300
+ onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
301
+ onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;
302
+ onscrollend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
303
+ onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null;
304
+ onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null;
305
+ onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null;
306
+ onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null;
307
+ onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
308
+ onselectstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
309
+ onslotchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
310
+ onstalled: ((this: GlobalEventHandlers, ev: Event) => any) | null;
311
+ onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null;
312
+ onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
313
+ ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
314
+ ontoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
315
+ ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
316
+ ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
317
+ ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
318
+ ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
319
+ ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
320
+ ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
321
+ ontransitionrun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
322
+ ontransitionstart: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
323
+ onvolumechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
324
+ onwaiting: ((this: GlobalEventHandlers, ev: Event) => any) | null;
325
+ onwebkitanimationend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
326
+ onwebkitanimationiteration: ((this: GlobalEventHandlers, ev: Event) => any) | null;
327
+ onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
328
+ onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
329
+ onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
330
+ autofocus: boolean;
331
+ readonly dataset: DOMStringMap;
332
+ nonce?: string | undefined;
333
+ tabIndex: number;
334
+ blur(): void;
335
+ focus(options?: FocusOptions | undefined): void;
336
+ };
337
+ readonly properties: {
338
+ isLoading: {
339
+ type: BooleanConstructor;
340
+ };
341
+ };
342
+ } & C;
343
+ //# sourceMappingURL=load-while.d.ts.map
@@ -0,0 +1,27 @@
1
+ export const LoadWhile = (base) => class extends base {
2
+ static get properties() {
3
+ return {
4
+ isLoading: { type: Boolean },
5
+ };
6
+ }
7
+ /**
8
+ * @internal
9
+ */
10
+ #promiseCount = 0;
11
+ async loadWhile(promise) {
12
+ this.isLoading = true;
13
+ this.#promiseCount++;
14
+ try {
15
+ await promise;
16
+ }
17
+ catch (error) {
18
+ }
19
+ finally {
20
+ this.#promiseCount--;
21
+ if (this.#promiseCount === 0) {
22
+ this.isLoading = false;
23
+ }
24
+ }
25
+ }
26
+ };
27
+ //# sourceMappingURL=load-while.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"load-while.js","sourceRoot":"","sources":["load-while.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,SAAS,GAAG,CAAqC,IAAO,EAAE,EAAE,CACvE,KAAM,SAAQ,IAAI;IAChB,MAAM,KAAK,UAAU;QACnB,OAAO;YACL,SAAS,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE;SAC7B,CAAC;IACJ,CAAC;IACD;;OAEG;IACH,aAAa,GAAG,CAAC,CAAC;IAElB,KAAK,CAAC,SAAS,CAAC,OAAyB;QACvC,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;QACtB,IAAI,CAAC,aAAa,EAAE,CAAC;QACrB,IAAI;YACF,MAAM,OAAO,CAAC;SACf;QAAC,OAAO,KAAK,EAAE;SACf;gBAAS;YACR,IAAI,CAAC,aAAa,EAAE,CAAC;YACrB,IAAI,IAAI,CAAC,aAAa,KAAK,CAAC,EAAE;gBAC5B,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC;aACxB;SACF;IACH,CAAC;CACF,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const installMediaQueryWatcher: (mediaQuery: string, layoutChangedCallback: (mediaQueryMatches: boolean) => void) => void;
2
+ //# sourceMappingURL=media-query.d.ts.map
@@ -0,0 +1,6 @@
1
+ export const installMediaQueryWatcher = (mediaQuery, layoutChangedCallback) => {
2
+ const mql = window.matchMedia(mediaQuery);
3
+ mql.addListener(e => layoutChangedCallback(e.matches));
4
+ layoutChangedCallback(mql.matches);
5
+ };
6
+ //# sourceMappingURL=media-query.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"media-query.js","sourceRoot":"","sources":["media-query.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,UAAkB,EAAE,qBAA2D,EAAE,EAAE;IAC1H,MAAM,GAAG,GAAG,MAAM,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC;IAC1C,GAAG,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC,qBAAqB,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;IACvD,qBAAqB,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;AACrC,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare function middleEllipsis(str: string, frontMax?: number, backMax?: number): string;
2
+ //# sourceMappingURL=middle-ellipsis.d.ts.map
@@ -0,0 +1,7 @@
1
+ export function middleEllipsis(str, frontMax = 15, backMax = 10) {
2
+ if (str.length > frontMax + backMax) {
3
+ return str.substr(0, frontMax) + '...' + str.substr(str.length - backMax, str.length);
4
+ }
5
+ return str;
6
+ }
7
+ //# sourceMappingURL=middle-ellipsis.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"middle-ellipsis.js","sourceRoot":"","sources":["middle-ellipsis.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,cAAc,CAAC,GAAW,EAAE,WAAmB,EAAE,EAAE,UAAkB,EAAE;IACrF,IAAI,GAAG,CAAC,MAAM,GAAG,QAAQ,GAAG,OAAO,EAAE;QACnC,OAAO,GAAG,CAAC,MAAM,CAAC,CAAC,EAAE,QAAQ,CAAC,GAAG,KAAK,GAAG,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,MAAM,GAAG,OAAO,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;KACvF;IACD,OAAO,GAAG,CAAC;AACb,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare function notNullOrUndefined<T>(val: T | null | undefined): val is T;
2
+ //# sourceMappingURL=not-null-or-undefined.d.ts.map
@@ -0,0 +1,4 @@
1
+ export function notNullOrUndefined(val) {
2
+ return val !== null || typeof val !== 'undefined';
3
+ }
4
+ //# sourceMappingURL=not-null-or-undefined.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"not-null-or-undefined.js","sourceRoot":"","sources":["not-null-or-undefined.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,kBAAkB,CAAI,GAAyB;IAC7D,OAAO,GAAG,KAAK,IAAI,IAAI,OAAO,GAAG,KAAK,WAAW,CAAC;AACpD,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare function notNull<T>(val: T | null): val is T;
2
+ //# sourceMappingURL=not-null.d.ts.map
@@ -0,0 +1,4 @@
1
+ export function notNull(val) {
2
+ return val !== null;
3
+ }
4
+ //# sourceMappingURL=not-null.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"not-null.js","sourceRoot":"","sources":["not-null.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,OAAO,CAAI,GAAa;IACtC,OAAO,GAAG,KAAK,IAAI,CAAC;AACtB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare function notUndefined<T>(val: T | undefined): val is T;
2
+ //# sourceMappingURL=not-undefined.d.ts.map
@@ -0,0 +1,4 @@
1
+ export function notUndefined(val) {
2
+ return typeof val !== 'undefined';
3
+ }
4
+ //# sourceMappingURL=not-undefined.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"not-undefined.js","sourceRoot":"","sources":["not-undefined.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,YAAY,CAAI,GAAkB;IAChD,OAAO,OAAO,GAAG,KAAK,WAAW,CAAC;AACpC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const escapeTerm: (term: string) => string;
2
+ //# sourceMappingURL=odata-helpers.d.ts.map
@@ -0,0 +1,2 @@
1
+ export const escapeTerm = (term) => encodeURIComponent(term.replace(/'/g, "''"));
2
+ //# sourceMappingURL=odata-helpers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"odata-helpers.js","sourceRoot":"","sources":["odata-helpers.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,IAAY,EAAU,EAAE,CAAC,kBAAkB,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const getSearchTokens: (inputText: string, allowedComplexityLevel?: number) => string[];
2
+ //# sourceMappingURL=search-token.d.ts.map
@@ -0,0 +1,17 @@
1
+ import { escapeTerm } from './odata-helpers';
2
+ export const getSearchTokens = (inputText, allowedComplexityLevel = 3) => {
3
+ if (typeof inputText === 'undefined' || inputText === null || inputText.length === 0) {
4
+ return [];
5
+ }
6
+ let tokens = inputText
7
+ .split(' ')
8
+ .map(token => escapeTerm(token.trim()))
9
+ .filter(token => token.length > 0);
10
+ if (tokens.length > allowedComplexityLevel) {
11
+ // if user types more than
12
+ // three words, do not tokenize
13
+ tokens = [escapeTerm(inputText.trim())];
14
+ }
15
+ return tokens;
16
+ };
17
+ //# sourceMappingURL=search-token.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"search-token.js","sourceRoot":"","sources":["search-token.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,SAAiB,EAAE,sBAAsB,GAAG,CAAC,EAAE,EAAE;IAC/E,IAAI,OAAO,SAAS,KAAK,WAAW,IAAI,SAAS,KAAK,IAAI,IAAI,SAAS,CAAC,MAAM,KAAK,CAAC,EAAE;QACpF,OAAO,EAAE,CAAC;KACX;IACD,IAAI,MAAM,GAAG,SAAS;SACnB,KAAK,CAAC,GAAG,CAAC;SACV,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC;SACtC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;IACrC,IAAI,MAAM,CAAC,MAAM,GAAG,sBAAsB,EAAE;QAC1C,0BAA0B;QAC1B,+BAA+B;QAC/B,MAAM,GAAG,CAAC,UAAU,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;KACzC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC"}
@@ -0,0 +1,23 @@
1
+ import { TitaniumSingleSelectBase } from '../../titanium/single-select-base/single-select-base';
2
+ export type MaterialIconDatabaseEntry = {
3
+ Id: number;
4
+ keywords: string;
5
+ icon: string;
6
+ };
7
+ /**
8
+ * Titanium icon picker - a picker for material icons
9
+ *
10
+ * @element titanium-icon-picker
11
+ *
12
+ */
13
+ export declare class TitaniumIconPicker extends TitaniumSingleSelectBase<MaterialIconDatabaseEntry> {
14
+ #private;
15
+ accessor label: string;
16
+ accessor placeholder: string;
17
+ accessor pathToSelectedText: string;
18
+ firstUpdated(): Promise<void>;
19
+ protected onInputChanged(searchTerm: string): void;
20
+ protected renderSelectedLeadingInputSlot(entity: MaterialIconDatabaseEntry): import("lit-html").TemplateResult<1>;
21
+ protected renderSuggestion(entity: MaterialIconDatabaseEntry): import("lit-html").TemplateResult<1>;
22
+ }
23
+ //# sourceMappingURL=icon-picker.d.ts.map
@@ -0,0 +1,75 @@
1
+ import { __decorate } from "tslib";
2
+ import { html } from 'lit';
3
+ import { property, customElement } from 'lit/decorators.js';
4
+ import Fuse from 'fuse.js';
5
+ import { TitaniumSingleSelectBase } from '../../titanium/single-select-base/single-select-base';
6
+ import { MaterialSymbols } from './material-symbols';
7
+ /**
8
+ * Titanium icon picker - a picker for material icons
9
+ *
10
+ * @element titanium-icon-picker
11
+ *
12
+ */
13
+ let TitaniumIconPicker = class TitaniumIconPicker extends TitaniumSingleSelectBase {
14
+ #label_accessor_storage = 'Icons';
15
+ get label() { return this.#label_accessor_storage; }
16
+ set label(value) { this.#label_accessor_storage = value; }
17
+ #placeholder_accessor_storage = 'Search for a icon';
18
+ get placeholder() { return this.#placeholder_accessor_storage; }
19
+ set placeholder(value) { this.#placeholder_accessor_storage = value; }
20
+ #pathToSelectedText_accessor_storage = 'icon';
21
+ get pathToSelectedText() { return this.#pathToSelectedText_accessor_storage; }
22
+ set pathToSelectedText(value) { this.#pathToSelectedText_accessor_storage = value; }
23
+ #iconDatabase;
24
+ async firstUpdated() {
25
+ this.#iconDatabase = MaterialSymbols.map((icon, i) => ({
26
+ Id: i + 1,
27
+ icon: icon,
28
+ keywords: icon,
29
+ }));
30
+ }
31
+ onInputChanged(searchTerm) {
32
+ const options = {
33
+ includeScore: true,
34
+ keys: ['keywords'],
35
+ shouldSort: true,
36
+ threshold: 0.3,
37
+ };
38
+ if (this.searchTerm) {
39
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
40
+ const fuse = new Fuse(this.#iconDatabase, options);
41
+ const fuseResults = fuse.search(searchTerm);
42
+ const results = fuseResults.map((o) => o.item);
43
+ this.count = results.length;
44
+ this.suggestions = results.slice(0, 75);
45
+ }
46
+ else {
47
+ this.count = 0;
48
+ this.suggestions = this.#iconDatabase.slice(0, 50);
49
+ }
50
+ }
51
+ renderSelectedLeadingInputSlot(entity) {
52
+ return html ` <md-icon slot="leading-icon">${entity.icon}</md-icon> `;
53
+ }
54
+ renderSuggestion(entity) {
55
+ return html `<md-menu-item .item=${entity} ?selected=${this.selected?.Id === entity.Id}>
56
+ <slot name="trailing-icon" slot="trailing-icon"></slot>
57
+ <span slot="headline">${entity.icon}</span>
58
+ <md-icon slot="start">${entity.icon}</md-icon>
59
+ </md-menu-item>`;
60
+ }
61
+ };
62
+ __decorate([
63
+ property({ type: String })
64
+ ], TitaniumIconPicker.prototype, "label", null);
65
+ __decorate([
66
+ property({ type: String })
67
+ ], TitaniumIconPicker.prototype, "placeholder", null);
68
+ __decorate([
69
+ property({ type: String })
70
+ ], TitaniumIconPicker.prototype, "pathToSelectedText", null);
71
+ TitaniumIconPicker = __decorate([
72
+ customElement('titanium-icon-picker')
73
+ ], TitaniumIconPicker);
74
+ export { TitaniumIconPicker };
75
+ //# sourceMappingURL=icon-picker.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icon-picker.js","sourceRoot":"","sources":["icon-picker.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAC3B,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,IAAI,MAAM,SAAS,CAAC;AAC3B,OAAO,EAAE,wBAAwB,EAAE,MAAM,sDAAsD,CAAC;AAChG,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAIrD;;;;;GAKG;AAEI,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,wBAAmD;IACpD,0BAAgB,OAAO,CAAC;IAAxB,IAAA,KAAK,2CAAmB;IAAxB,IAAA,KAAK,iDAAmB;IAExB,gCAAsB,mBAAmB,CAAC;IAA1C,IAAA,WAAW,iDAA+B;IAA1C,IAAA,WAAW,uDAA+B;IAE1C,uCAA6B,MAAM,CAAC;IAApC,IAAA,kBAAkB,wDAAkB;IAApC,IAAA,kBAAkB,8DAAkB;IAEzE,aAAa,CAA8B;IAE3C,KAAK,CAAC,YAAY;QAChB,IAAI,CAAC,aAAa,GAAG,eAAe,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;YACrD,EAAE,EAAE,CAAC,GAAG,CAAC;YACT,IAAI,EAAE,IAAI;YACV,QAAQ,EAAE,IAAI;SACf,CAAC,CAAC,CAAC;IACN,CAAC;IAEkB,cAAc,CAAC,UAAkB;QAClD,MAAM,OAAO,GAAG;YACd,YAAY,EAAE,IAAI;YAClB,IAAI,EAAE,CAAC,UAAU,CAAC;YAClB,UAAU,EAAE,IAAI;YAChB,SAAS,EAAE,GAAG;SACf,CAAC;QAEF,IAAI,IAAI,CAAC,UAAU,EAAE;YACnB,8DAA8D;YAC9D,MAAM,IAAI,GAAG,IAAI,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE,OAAc,CAAC,CAAC;YAC1D,MAAM,WAAW,GAAG,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;YAC5C,MAAM,OAAO,GAAG,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;YAC/C,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC,MAAM,CAAC;YAC5B,IAAI,CAAC,WAAW,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;SACzC;aAAM;YACL,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC;YACf,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;SACpD;IACH,CAAC;IAEkB,8BAA8B,CAAC,MAAiC;QACjF,OAAO,IAAI,CAAA,iCAAiC,MAAM,CAAC,IAAI,aAAa,CAAC;IACvE,CAAC;IAEkB,gBAAgB,CAAC,MAAiC;QACnE,OAAO,IAAI,CAAA,uBAAuB,MAAM,cAAc,IAAI,CAAC,QAAQ,EAAE,EAAE,KAAK,MAAM,CAAC,EAAE;;8BAE3D,MAAM,CAAC,IAAI;8BACX,MAAM,CAAC,IAAI;oBACrB,CAAC;IACnB,CAAC;CACF,CAAA;AAhDsC;IAApC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;+CAAkC;AAExB;IAApC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;qDAAoD;AAE1C;IAApC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;4DAA8C;AAL9D,kBAAkB;IAD9B,aAAa,CAAC,sBAAsB,CAAC;GACzB,kBAAkB,CAiD9B"}