@leavittsoftware/web 9.9.0 → 10.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 (223) hide show
  1. package/.ncurc.js +1 -1
  2. package/CLAUDE.md +1320 -0
  3. package/LICENSE.md +1 -1
  4. package/leavitt/api-service/api-service.js +3 -2
  5. package/leavitt/api-service/api-service.js.map +1 -1
  6. package/leavitt/api-service/blob-response.js +1 -0
  7. package/leavitt/api-service/blob-response.js.map +1 -1
  8. package/leavitt/app/app-logo.js +1 -1
  9. package/leavitt/app/app-logo.js.map +1 -1
  10. package/leavitt/app/app-main-content-container.js +5 -0
  11. package/leavitt/app/app-main-content-container.js.map +1 -1
  12. package/leavitt/app/app-navigation-header.js +10 -10
  13. package/leavitt/app/app-navigation-header.js.map +1 -1
  14. package/leavitt/company-select/company-select.js +2 -2
  15. package/leavitt/company-select/company-select.js.map +1 -1
  16. package/leavitt/email-history-viewer/email-history-viewer-filled-filter-dialog.d.ts +3 -369
  17. package/leavitt/email-history-viewer/email-history-viewer-filled-filter-dialog.js +15 -9
  18. package/leavitt/email-history-viewer/email-history-viewer-filled-filter-dialog.js.map +1 -1
  19. package/leavitt/email-history-viewer/email-history-viewer-filled.d.ts +3 -374
  20. package/leavitt/email-history-viewer/email-history-viewer-filled.js +15 -33
  21. package/leavitt/email-history-viewer/email-history-viewer-filled.js.map +1 -1
  22. package/leavitt/email-history-viewer/view-email-template-info-dialog.d.ts +3 -369
  23. package/leavitt/email-history-viewer/view-email-template-info-dialog.js +12 -5
  24. package/leavitt/email-history-viewer/view-email-template-info-dialog.js.map +1 -1
  25. package/leavitt/email-history-viewer/view-sent-email-dialog.d.ts +3 -369
  26. package/leavitt/email-history-viewer/view-sent-email-dialog.js +13 -6
  27. package/leavitt/email-history-viewer/view-sent-email-dialog.js.map +1 -1
  28. package/leavitt/error-page/error-page.d.ts +4 -2
  29. package/leavitt/error-page/error-page.js +126 -37
  30. package/leavitt/error-page/error-page.js.map +1 -1
  31. package/leavitt/file-explorer/add-folder-modal.d.ts +3 -369
  32. package/leavitt/file-explorer/add-folder-modal.js +13 -6
  33. package/leavitt/file-explorer/add-folder-modal.js.map +1 -1
  34. package/leavitt/file-explorer/file-explorer-image.js.map +1 -1
  35. package/leavitt/file-explorer/file-explorer.d.ts +5 -371
  36. package/leavitt/file-explorer/file-explorer.js +35 -30
  37. package/leavitt/file-explorer/file-explorer.js.map +1 -1
  38. package/leavitt/file-explorer/file-list-item.js.map +1 -1
  39. package/leavitt/file-explorer/file-modal.d.ts +3 -369
  40. package/leavitt/file-explorer/file-modal.js +12 -5
  41. package/leavitt/file-explorer/file-modal.js.map +1 -1
  42. package/leavitt/file-explorer/folder-list-item.js.map +1 -1
  43. package/leavitt/file-explorer/folder-modal.d.ts +3 -369
  44. package/leavitt/file-explorer/folder-modal.js +12 -5
  45. package/leavitt/file-explorer/folder-modal.js.map +1 -1
  46. package/leavitt/person-company-select/person-company-select.js +5 -3
  47. package/leavitt/person-company-select/person-company-select.js.map +1 -1
  48. package/leavitt/person-group-select/person-group-select.js +5 -3
  49. package/leavitt/person-group-select/person-group-select.js.map +1 -1
  50. package/leavitt/person-select/person-select.js +3 -2
  51. package/leavitt/person-select/person-select.js.map +1 -1
  52. package/leavitt/profile-picture/profile-picture-menu.js +2 -0
  53. package/leavitt/profile-picture/profile-picture-menu.js.map +1 -1
  54. package/leavitt/profile-picture/profile-picture.js +4 -4
  55. package/leavitt/profile-picture/profile-picture.js.map +1 -1
  56. package/leavitt/service-worker-notifier/service-worker-notifier.js.map +1 -1
  57. package/leavitt/theme/theme-preference.js +4 -0
  58. package/leavitt/theme/theme-preference.js.map +1 -1
  59. package/leavitt/user-feedback/provide-feedback-dialog.d.ts +3 -369
  60. package/leavitt/user-feedback/provide-feedback-dialog.js +11 -4
  61. package/leavitt/user-feedback/provide-feedback-dialog.js.map +1 -1
  62. package/leavitt/user-feedback/report-a-problem-dialog.d.ts +3 -369
  63. package/leavitt/user-feedback/report-a-problem-dialog.js +11 -4
  64. package/leavitt/user-feedback/report-a-problem-dialog.js.map +1 -1
  65. package/leavitt/user-manager/auth-zero-lg-user-manager.js +5 -5
  66. package/leavitt/user-manager/auth-zero-lg-user-manager.js.map +1 -1
  67. package/package.json +8 -10
  68. package/titanium/address-input/address-input.js +0 -2
  69. package/titanium/address-input/address-input.js.map +1 -1
  70. package/titanium/address-input/google-address-input.d.ts +1 -0
  71. package/titanium/address-input/google-address-input.js +62 -45
  72. package/titanium/address-input/google-address-input.js.map +1 -1
  73. package/titanium/address-input/google-maps-process-shim.d.ts +2 -0
  74. package/titanium/address-input/google-maps-process-shim.js +12 -0
  75. package/titanium/address-input/google-maps-process-shim.js.map +1 -0
  76. package/titanium/address-input/manual-address-dialog.d.ts +2 -7
  77. package/titanium/address-input/manual-address-dialog.js +21 -34
  78. package/titanium/address-input/manual-address-dialog.js.map +1 -1
  79. package/titanium/address-input/utils/place-result-to-address.d.ts +1 -1
  80. package/titanium/address-input/utils/place-result-to-address.js +31 -30
  81. package/titanium/address-input/utils/place-result-to-address.js.map +1 -1
  82. package/titanium/chip/chip.d.ts +0 -1
  83. package/titanium/chip/chip.js +7 -17
  84. package/titanium/chip/chip.js.map +1 -1
  85. package/titanium/chip-multi-select/chip-multi-select.d.ts +3 -8
  86. package/titanium/chip-multi-select/chip-multi-select.js +41 -62
  87. package/titanium/chip-multi-select/chip-multi-select.js.map +1 -1
  88. package/titanium/circle-loading-indicator/circle-loading-indicator.js +5 -5
  89. package/titanium/circle-loading-indicator/circle-loading-indicator.js.map +1 -1
  90. package/titanium/confirmation-dialog/confirmation-dialog.js +2 -0
  91. package/titanium/confirmation-dialog/confirmation-dialog.js.map +1 -1
  92. package/titanium/data-table/data-table-action-bar.js +1 -5
  93. package/titanium/data-table/data-table-action-bar.js.map +1 -1
  94. package/titanium/data-table/data-table-core-reorder-dialog.d.ts +3 -369
  95. package/titanium/data-table/data-table-core-reorder-dialog.js +10 -3
  96. package/titanium/data-table/data-table-core-reorder-dialog.js.map +1 -1
  97. package/titanium/data-table/data-table-core-reorder-item.js.map +1 -1
  98. package/titanium/data-table/data-table-core-settings-choose-columns-dialog.js.map +1 -1
  99. package/titanium/data-table/data-table-core-settings-choose-columns-item.js +3 -3
  100. package/titanium/data-table/data-table-core-settings-choose-columns-item.js.map +1 -1
  101. package/titanium/data-table/data-table-core-settings-sort-dialog.js.map +1 -1
  102. package/titanium/data-table/data-table-core-settings-sort-item.js +3 -3
  103. package/titanium/data-table/data-table-core-settings-sort-item.js.map +1 -1
  104. package/titanium/data-table/data-table-core.d.ts +5 -369
  105. package/titanium/data-table/data-table-core.js +13 -2
  106. package/titanium/data-table/data-table-core.js.map +1 -1
  107. package/titanium/data-table/draggable-item-base.js +6 -0
  108. package/titanium/data-table/draggable-item-base.js.map +1 -1
  109. package/titanium/data-table/filter-controller.js.map +1 -1
  110. package/titanium/data-table/page-control.d.ts +3 -8
  111. package/titanium/data-table/page-control.js +13 -33
  112. package/titanium/data-table/page-control.js.map +1 -1
  113. package/titanium/date-input/date-input.d.ts +1 -6
  114. package/titanium/date-input/date-input.js +8 -44
  115. package/titanium/date-input/date-input.js.map +1 -1
  116. package/titanium/date-range-selector/date-range-selector.d.ts +1 -6
  117. package/titanium/date-range-selector/date-range-selector.js +15 -35
  118. package/titanium/date-range-selector/date-range-selector.js.map +1 -1
  119. package/titanium/drawer/drawer.d.ts +1 -6
  120. package/titanium/drawer/drawer.js +4 -23
  121. package/titanium/drawer/drawer.js.map +1 -1
  122. package/titanium/event-bus/event-bus.js.map +1 -1
  123. package/titanium/helpers/debouncer.js.map +1 -1
  124. package/titanium/helpers/helpers.d.ts +0 -1
  125. package/titanium/helpers/helpers.js +0 -1
  126. package/titanium/helpers/helpers.js.map +1 -1
  127. package/titanium/helpers/pending-state-catcher.d.ts +7 -406
  128. package/titanium/helpers/pending-state-catcher.js +85 -82
  129. package/titanium/helpers/pending-state-catcher.js.map +1 -1
  130. package/titanium/input-validator/filled-input-validator.js.map +1 -1
  131. package/titanium/profile-picture-stack/profile-picture-stack.js +2 -2
  132. package/titanium/profile-picture-stack/profile-picture-stack.js.map +1 -1
  133. package/titanium/search-input/filled-search-input.js.map +1 -1
  134. package/titanium/show-hide/show-hide.d.ts +1 -6
  135. package/titanium/show-hide/show-hide.js +2 -18
  136. package/titanium/show-hide/show-hide.js.map +1 -1
  137. package/titanium/single-select-base/single-select-base.d.ts +11 -381
  138. package/titanium/single-select-base/single-select-base.js +43 -50
  139. package/titanium/single-select-base/single-select-base.js.map +1 -1
  140. package/titanium/smart-attachment-input/crop-and-save-image-dialog.d.ts +3 -369
  141. package/titanium/smart-attachment-input/crop-and-save-image-dialog.js +21 -16
  142. package/titanium/smart-attachment-input/crop-and-save-image-dialog.js.map +1 -1
  143. package/titanium/smart-attachment-input/image-preview-dialog.js.map +1 -1
  144. package/titanium/smart-attachment-input/smart-attachment-input.d.ts +1 -6
  145. package/titanium/smart-attachment-input/smart-attachment-input.js +5 -18
  146. package/titanium/smart-attachment-input/smart-attachment-input.js.map +1 -1
  147. package/titanium/snackbar/snackbar-stack.js +2 -2
  148. package/titanium/snackbar/snackbar-stack.js.map +1 -1
  149. package/titanium/snackbar/snackbars/http-error-snackbar.js +1 -1
  150. package/titanium/snackbar/snackbars/http-error-snackbar.js.map +1 -1
  151. package/titanium/snackbar/snackbars/simple-snackbar.js +3 -3
  152. package/titanium/snackbar/snackbars/simple-snackbar.js.map +1 -1
  153. package/titanium/toolbar/toolbar.js +1 -1
  154. package/titanium/toolbar/toolbar.js.map +1 -1
  155. package/leavitt/api-service/object-to-form-data.test.d.ts +0 -2
  156. package/leavitt/api-service/object-to-form-data.test.js +0 -229
  157. package/leavitt/api-service/object-to-form-data.test.js.map +0 -1
  158. package/leavitt/email-history-viewer/email-history-view-list-filter-dialog.d.ts +0 -394
  159. package/leavitt/email-history-viewer/email-history-view-list-filter-dialog.js +0 -233
  160. package/leavitt/email-history-viewer/email-history-view-list-filter-dialog.js.map +0 -1
  161. package/leavitt/email-history-viewer/email-history-viewer.d.ts +0 -413
  162. package/leavitt/email-history-viewer/email-history-viewer.js +0 -403
  163. package/leavitt/email-history-viewer/email-history-viewer.js.map +0 -1
  164. package/leavitt/user-feedback/user-feedback.d.ts +0 -390
  165. package/leavitt/user-feedback/user-feedback.js +0 -221
  166. package/leavitt/user-feedback/user-feedback.js.map +0 -1
  167. package/titanium/access-denied-page/access-denied-page.d.ts +0 -16
  168. package/titanium/access-denied-page/access-denied-page.js +0 -359
  169. package/titanium/access-denied-page/access-denied-page.js.map +0 -1
  170. package/titanium/card/card.d.ts +0 -24
  171. package/titanium/card/card.js +0 -188
  172. package/titanium/card/card.js.map +0 -1
  173. package/titanium/confirm-dialog/confirm-dialog-open-event.d.ts +0 -10
  174. package/titanium/confirm-dialog/confirm-dialog-open-event.js +0 -12
  175. package/titanium/confirm-dialog/confirm-dialog-open-event.js.map +0 -1
  176. package/titanium/confirm-dialog/confirm-dialog.d.ts +0 -25
  177. package/titanium/confirm-dialog/confirm-dialog.js +0 -104
  178. package/titanium/confirm-dialog/confirm-dialog.js.map +0 -1
  179. package/titanium/data-table/data-table-header.d.ts +0 -68
  180. package/titanium/data-table/data-table-header.js +0 -295
  181. package/titanium/data-table/data-table-header.js.map +0 -1
  182. package/titanium/data-table/data-table-item.d.ts +0 -99
  183. package/titanium/data-table/data-table-item.js +0 -561
  184. package/titanium/data-table/data-table-item.js.map +0 -1
  185. package/titanium/data-table/data-table.d.ts +0 -127
  186. package/titanium/data-table/data-table.js +0 -688
  187. package/titanium/data-table/data-table.js.map +0 -1
  188. package/titanium/duration-input/duration-input.d.ts +0 -31
  189. package/titanium/duration-input/duration-input.js +0 -126
  190. package/titanium/duration-input/duration-input.js.map +0 -1
  191. package/titanium/duration-input/outlined-duration-input.d.ts +0 -30
  192. package/titanium/duration-input/outlined-duration-input.js +0 -109
  193. package/titanium/duration-input/outlined-duration-input.js.map +0 -1
  194. package/titanium/error-page/error-page.d.ts +0 -16
  195. package/titanium/error-page/error-page.js +0 -95
  196. package/titanium/error-page/error-page.js.map +0 -1
  197. package/titanium/extendable-outlined-text-field/extendable-outlined-text-field.d.ts +0 -168
  198. package/titanium/extendable-outlined-text-field/extendable-outlined-text-field.js +0 -373
  199. package/titanium/extendable-outlined-text-field/extendable-outlined-text-field.js.map +0 -1
  200. package/titanium/full-page-loading-indicator/full-page-loading-indicator.d.ts +0 -17
  201. package/titanium/full-page-loading-indicator/full-page-loading-indicator.js +0 -121
  202. package/titanium/full-page-loading-indicator/full-page-loading-indicator.js.map +0 -1
  203. package/titanium/header/header.d.ts +0 -39
  204. package/titanium/header/header.js +0 -167
  205. package/titanium/header/header.js.map +0 -1
  206. package/titanium/helpers/load-while.d.ts +0 -374
  207. package/titanium/helpers/load-while.js +0 -28
  208. package/titanium/helpers/load-while.js.map +0 -1
  209. package/titanium/input-validator/input-validator.d.ts +0 -20
  210. package/titanium/input-validator/input-validator.js +0 -48
  211. package/titanium/input-validator/input-validator.js.map +0 -1
  212. package/titanium/input-validator/outlined-input-validator.d.ts +0 -20
  213. package/titanium/input-validator/outlined-input-validator.js +0 -48
  214. package/titanium/input-validator/outlined-input-validator.js.map +0 -1
  215. package/titanium/search-input/search-input.d.ts +0 -29
  216. package/titanium/search-input/search-input.js +0 -123
  217. package/titanium/search-input/search-input.js.map +0 -1
  218. package/titanium/service-worker-notifier/service-worker-notifier.d.ts +0 -9
  219. package/titanium/service-worker-notifier/service-worker-notifier.js +0 -58
  220. package/titanium/service-worker-notifier/service-worker-notifier.js.map +0 -1
  221. package/titanium/youtube-input/youtube-input.d.ts +0 -20
  222. package/titanium/youtube-input/youtube-input.js +0 -72
  223. package/titanium/youtube-input/youtube-input.js.map +0 -1
@@ -1,384 +1,18 @@
1
1
  import { LitElement, PropertyValues } from 'lit';
2
2
  import '@material/web/progress/circular-progress';
3
- import '@material/web/textfield/outlined-text-field';
4
3
  import '@material/web/textfield/filled-text-field';
5
4
  import '@material/web/iconbutton/icon-button';
6
5
  import '@material/web/icon/icon';
7
6
  import '@material/web/menu/menu';
8
7
  import '@material/web/menu/menu-item';
9
- import { MdOutlinedTextField } from '@material/web/textfield/outlined-text-field';
8
+ import { MdFilledTextField } from '@material/web/textfield/filled-text-field';
10
9
  import { Menu } from '@material/web/menu/internal/menu';
11
10
  import { Identifier } from '../types/identifier-interface';
12
- import { MdFilledTextField } from '@material/web/textfield/filled-text-field';
13
- declare const TitaniumSingleSelectBase_base: import("../../leavitt/theme/theme-preference").Constructor<import("../../leavitt/theme/theme-preference").ThemePreferenceInterface> & {
14
- new (...args: any[]): {
15
- "__#private@#promiseCount": number;
16
- isLoading: boolean;
17
- loadWhile(promise: Promise<unknown>): Promise<void>;
18
- accessKey: string;
19
- readonly accessKeyLabel: string;
20
- autocapitalize: string;
21
- autocorrect: boolean;
22
- dir: string;
23
- draggable: boolean;
24
- hidden: boolean;
25
- inert: boolean;
26
- innerText: string;
27
- lang: string;
28
- readonly offsetHeight: number;
29
- readonly offsetLeft: number;
30
- readonly offsetParent: Element | null;
31
- readonly offsetTop: number;
32
- readonly offsetWidth: number;
33
- outerText: string;
34
- popover: string | null;
35
- spellcheck: boolean;
36
- title: string;
37
- translate: boolean;
38
- writingSuggestions: string;
39
- attachInternals(): ElementInternals;
40
- click(): void;
41
- hidePopover(): void;
42
- hidePopover(): void;
43
- showPopover(): void;
44
- showPopover(): void;
45
- togglePopover(options?: boolean): boolean;
46
- togglePopover(force: boolean): void;
47
- addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
48
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
49
- removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
50
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
51
- connectedCallback(): void;
52
- disconnectedCallback(): void;
53
- readonly attributes: NamedNodeMap;
54
- get classList(): DOMTokenList;
55
- set classList(value: string);
56
- className: string;
57
- readonly clientHeight: number;
58
- readonly clientLeft: number;
59
- readonly clientTop: number;
60
- readonly clientWidth: number;
61
- readonly currentCSSZoom: number;
62
- id: string;
63
- innerHTML: string;
64
- readonly localName: string;
65
- readonly namespaceURI: string | null;
66
- onfullscreenchange: ((this: Element, ev: Event) => any) | null;
67
- onfullscreenerror: ((this: Element, ev: Event) => any) | null;
68
- outerHTML: string;
69
- readonly ownerDocument: Document;
70
- get part(): DOMTokenList;
71
- set part(value: string);
72
- readonly prefix: string | null;
73
- readonly scrollHeight: number;
74
- scrollLeft: number;
75
- scrollTop: number;
76
- readonly scrollWidth: number;
77
- readonly shadowRoot: ShadowRoot | null;
78
- slot: string;
79
- readonly tagName: string;
80
- attachShadow(init: ShadowRootInit): ShadowRoot;
81
- checkVisibility(options?: CheckVisibilityOptions): boolean;
82
- closest<K extends keyof HTMLElementTagNameMap>(selector: K): HTMLElementTagNameMap[K] | null;
83
- closest<K extends keyof SVGElementTagNameMap>(selector: K): SVGElementTagNameMap[K] | null;
84
- closest<K extends keyof MathMLElementTagNameMap>(selector: K): MathMLElementTagNameMap[K] | null;
85
- closest<E extends Element = Element>(selectors: string): E | null;
86
- computedStyleMap(): StylePropertyMapReadOnly;
87
- getAttribute(qualifiedName: string): string | null;
88
- getAttributeNS(namespace: string | null, localName: string): string | null;
89
- getAttributeNames(): string[];
90
- getAttributeNode(qualifiedName: string): Attr | null;
91
- getAttributeNodeNS(namespace: string | null, localName: string): Attr | null;
92
- getBoundingClientRect(): DOMRect;
93
- getClientRects(): DOMRectList;
94
- getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
95
- getElementsByTagName<K extends keyof HTMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementTagNameMap[K]>;
96
- getElementsByTagName<K extends keyof SVGElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<SVGElementTagNameMap[K]>;
97
- getElementsByTagName<K extends keyof MathMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<MathMLElementTagNameMap[K]>;
98
- getElementsByTagName<K extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]>;
99
- getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
100
- getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
101
- getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
102
- getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>;
103
- getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;
104
- getHTML(options?: GetHTMLOptions): string;
105
- hasAttribute(qualifiedName: string): boolean;
106
- hasAttributeNS(namespace: string | null, localName: string): boolean;
107
- hasAttributes(): boolean;
108
- hasPointerCapture(pointerId: number): boolean;
109
- insertAdjacentElement(where: InsertPosition, element: Element): Element | null;
110
- insertAdjacentHTML(position: InsertPosition, string: string): void;
111
- insertAdjacentText(where: InsertPosition, data: string): void;
112
- matches(selectors: string): boolean;
113
- releasePointerCapture(pointerId: number): void;
114
- removeAttribute(qualifiedName: string): void;
115
- removeAttributeNS(namespace: string | null, localName: string): void;
116
- removeAttributeNode(attr: Attr): Attr;
117
- requestFullscreen(options?: FullscreenOptions): Promise<void>;
118
- requestPointerLock(options?: PointerLockOptions): Promise<void>;
119
- scroll(options?: ScrollToOptions): void;
120
- scroll(x: number, y: number): void;
121
- scrollBy(options?: ScrollToOptions): void;
122
- scrollBy(x: number, y: number): void;
123
- scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
124
- scrollTo(options?: ScrollToOptions): void;
125
- scrollTo(x: number, y: number): void;
126
- setAttribute(qualifiedName: string, value: string): void;
127
- setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void;
128
- setAttributeNode(attr: Attr): Attr | null;
129
- setAttributeNodeNS(attr: Attr): Attr | null;
130
- setHTMLUnsafe(html: string): void;
131
- setPointerCapture(pointerId: number): void;
132
- toggleAttribute(qualifiedName: string, force?: boolean): boolean;
133
- webkitMatchesSelector(selectors: string): boolean;
134
- get textContent(): string;
135
- set textContent(value: string | null);
136
- readonly baseURI: string;
137
- readonly childNodes: NodeListOf<ChildNode>;
138
- readonly firstChild: ChildNode | null;
139
- readonly isConnected: boolean;
140
- readonly lastChild: ChildNode | null;
141
- readonly nextSibling: ChildNode | null;
142
- readonly nodeName: string;
143
- readonly nodeType: number;
144
- nodeValue: string | null;
145
- readonly parentElement: HTMLElement | null;
146
- readonly parentNode: ParentNode | null;
147
- readonly previousSibling: ChildNode | null;
148
- appendChild<T_1 extends Node>(node: T_1): T_1;
149
- cloneNode(subtree?: boolean): Node;
150
- compareDocumentPosition(other: Node): number;
151
- contains(other: Node | null): boolean;
152
- getRootNode(options?: GetRootNodeOptions): Node;
153
- hasChildNodes(): boolean;
154
- insertBefore<T_1 extends Node>(node: T_1, child: Node | null): T_1;
155
- isDefaultNamespace(namespace: string | null): boolean;
156
- isEqualNode(otherNode: Node | null): boolean;
157
- isSameNode(otherNode: Node | null): boolean;
158
- lookupNamespaceURI(prefix: string | null): string | null;
159
- lookupPrefix(namespace: string | null): string | null;
160
- normalize(): void;
161
- removeChild<T_1 extends Node>(child: T_1): T_1;
162
- replaceChild<T_1 extends Node>(node: Node, child: T_1): T_1;
163
- readonly ELEMENT_NODE: 1;
164
- readonly ATTRIBUTE_NODE: 2;
165
- readonly TEXT_NODE: 3;
166
- readonly CDATA_SECTION_NODE: 4;
167
- readonly ENTITY_REFERENCE_NODE: 5;
168
- readonly ENTITY_NODE: 6;
169
- readonly PROCESSING_INSTRUCTION_NODE: 7;
170
- readonly COMMENT_NODE: 8;
171
- readonly DOCUMENT_NODE: 9;
172
- readonly DOCUMENT_TYPE_NODE: 10;
173
- readonly DOCUMENT_FRAGMENT_NODE: 11;
174
- readonly NOTATION_NODE: 12;
175
- readonly DOCUMENT_POSITION_DISCONNECTED: 1;
176
- readonly DOCUMENT_POSITION_PRECEDING: 2;
177
- readonly DOCUMENT_POSITION_FOLLOWING: 4;
178
- readonly DOCUMENT_POSITION_CONTAINS: 8;
179
- readonly DOCUMENT_POSITION_CONTAINED_BY: 16;
180
- readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32;
181
- dispatchEvent(event: Event): boolean;
182
- ariaActiveDescendantElement: Element | null;
183
- ariaAtomic: string | null;
184
- ariaAutoComplete: string | null;
185
- ariaBrailleLabel: string | null;
186
- ariaBrailleRoleDescription: string | null;
187
- ariaBusy: string | null;
188
- ariaChecked: string | null;
189
- ariaColCount: string | null;
190
- ariaColIndex: string | null;
191
- ariaColIndexText: string | null;
192
- ariaColSpan: string | null;
193
- ariaControlsElements: ReadonlyArray<Element> | null;
194
- ariaCurrent: string | null;
195
- ariaDescribedByElements: ReadonlyArray<Element> | null;
196
- ariaDescription: string | null;
197
- ariaDetailsElements: ReadonlyArray<Element> | null;
198
- ariaDisabled: string | null;
199
- ariaErrorMessageElements: ReadonlyArray<Element> | null;
200
- ariaExpanded: string | null;
201
- ariaFlowToElements: ReadonlyArray<Element> | null;
202
- ariaHasPopup: string | null;
203
- ariaHidden: string | null;
204
- ariaInvalid: string | null;
205
- ariaKeyShortcuts: string | null;
206
- ariaLabel: string | null;
207
- ariaLabelledByElements: ReadonlyArray<Element> | null;
208
- ariaLevel: string | null;
209
- ariaLive: string | null;
210
- ariaModal: string | null;
211
- ariaMultiLine: string | null;
212
- ariaMultiSelectable: string | null;
213
- ariaOrientation: string | null;
214
- ariaOwnsElements: ReadonlyArray<Element> | null;
215
- ariaPlaceholder: string | null;
216
- ariaPosInSet: string | null;
217
- ariaPressed: string | null;
218
- ariaReadOnly: string | null;
219
- ariaRelevant: string | null;
220
- ariaRequired: string | null;
221
- ariaRoleDescription: string | null;
222
- ariaRowCount: string | null;
223
- ariaRowIndex: string | null;
224
- ariaRowIndexText: string | null;
225
- ariaRowSpan: string | null;
226
- ariaSelected: string | null;
227
- ariaSetSize: string | null;
228
- ariaSort: string | null;
229
- ariaValueMax: string | null;
230
- ariaValueMin: string | null;
231
- ariaValueNow: string | null;
232
- ariaValueText: string | null;
233
- role: string | null;
234
- animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions): Animation;
235
- getAnimations(options?: GetAnimationsOptions): Animation[];
236
- after(...nodes: (Node | string)[]): void;
237
- before(...nodes: (Node | string)[]): void;
238
- remove(): void;
239
- replaceWith(...nodes: (Node | string)[]): void;
240
- readonly nextElementSibling: Element | null;
241
- readonly previousElementSibling: Element | null;
242
- readonly childElementCount: number;
243
- readonly children: HTMLCollection;
244
- readonly firstElementChild: Element | null;
245
- readonly lastElementChild: Element | null;
246
- append(...nodes: (Node | string)[]): void;
247
- prepend(...nodes: (Node | string)[]): void;
248
- querySelector<K extends keyof HTMLElementTagNameMap>(selectors: K): HTMLElementTagNameMap[K] | null;
249
- querySelector<K extends keyof SVGElementTagNameMap>(selectors: K): SVGElementTagNameMap[K] | null;
250
- querySelector<K extends keyof MathMLElementTagNameMap>(selectors: K): MathMLElementTagNameMap[K] | null;
251
- querySelector<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): HTMLElementDeprecatedTagNameMap[K] | null;
252
- querySelector<E extends Element = Element>(selectors: string): E | null;
253
- querySelectorAll<K extends keyof HTMLElementTagNameMap>(selectors: K): NodeListOf<HTMLElementTagNameMap[K]>;
254
- querySelectorAll<K extends keyof SVGElementTagNameMap>(selectors: K): NodeListOf<SVGElementTagNameMap[K]>;
255
- querySelectorAll<K extends keyof MathMLElementTagNameMap>(selectors: K): NodeListOf<MathMLElementTagNameMap[K]>;
256
- querySelectorAll<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): NodeListOf<HTMLElementDeprecatedTagNameMap[K]>;
257
- querySelectorAll<E extends Element = Element>(selectors: string): NodeListOf<E>;
258
- replaceChildren(...nodes: (Node | string)[]): void;
259
- readonly assignedSlot: HTMLSlotElement | null;
260
- readonly attributeStyleMap: StylePropertyMap;
261
- get style(): CSSStyleDeclaration;
262
- set style(cssText: string);
263
- contentEditable: string;
264
- enterKeyHint: string;
265
- inputMode: string;
266
- readonly isContentEditable: boolean;
267
- onabort: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
268
- onanimationcancel: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
269
- onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
270
- onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
271
- onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
272
- onauxclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
273
- onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
274
- onbeforematch: ((this: GlobalEventHandlers, ev: Event) => any) | null;
275
- onbeforetoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null;
276
- onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
277
- oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null;
278
- oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
279
- oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null;
280
- onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
281
- onclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
282
- onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
283
- oncontextlost: ((this: GlobalEventHandlers, ev: Event) => any) | null;
284
- oncontextmenu: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
285
- oncontextrestored: ((this: GlobalEventHandlers, ev: Event) => any) | null;
286
- oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
287
- oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
288
- oncut: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
289
- ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
290
- ondrag: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
291
- ondragend: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
292
- ondragenter: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
293
- ondragleave: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
294
- ondragover: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
295
- ondragstart: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
296
- ondrop: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
297
- ondurationchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
298
- onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null;
299
- onended: ((this: GlobalEventHandlers, ev: Event) => any) | null;
300
- onerror: OnErrorEventHandler;
301
- onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
302
- onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null;
303
- ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
304
- oninput: ((this: GlobalEventHandlers, ev: Event) => any) | null;
305
- oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null;
306
- onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
307
- onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
308
- onkeyup: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
309
- onload: ((this: GlobalEventHandlers, ev: Event) => any) | null;
310
- onloadeddata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
311
- onloadedmetadata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
312
- onloadstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
313
- onlostpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
314
- onmousedown: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
315
- onmouseenter: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
316
- onmouseleave: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
317
- onmousemove: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
318
- onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
319
- onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
320
- onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
321
- onpaste: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
322
- onpause: ((this: GlobalEventHandlers, ev: Event) => any) | null;
323
- onplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
324
- onplaying: ((this: GlobalEventHandlers, ev: Event) => any) | null;
325
- onpointercancel: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
326
- onpointerdown: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
327
- onpointerenter: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
328
- onpointerleave: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
329
- onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
330
- onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
331
- onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
332
- onpointerrawupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
333
- onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
334
- onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null;
335
- onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
336
- onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null;
337
- onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
338
- onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;
339
- onscrollend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
340
- onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null;
341
- onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null;
342
- onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null;
343
- onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null;
344
- onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
345
- onselectstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
346
- onslotchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
347
- onstalled: ((this: GlobalEventHandlers, ev: Event) => any) | null;
348
- onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null;
349
- onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
350
- ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
351
- ontoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null;
352
- ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
353
- ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
354
- ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
355
- ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
356
- ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
357
- ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
358
- ontransitionrun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
359
- ontransitionstart: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
360
- onvolumechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
361
- onwaiting: ((this: GlobalEventHandlers, ev: Event) => any) | null;
362
- onwebkitanimationend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
363
- onwebkitanimationiteration: ((this: GlobalEventHandlers, ev: Event) => any) | null;
364
- onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
365
- onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
366
- onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
367
- autofocus: boolean;
368
- readonly dataset: DOMStringMap;
369
- nonce?: string;
370
- tabIndex: number;
371
- blur(): void;
372
- focus(options?: FocusOptions): void;
373
- };
374
- get properties(): {
375
- isLoading: {
376
- type: BooleanConstructor;
377
- };
378
- };
379
- } & typeof LitElement;
11
+ declare const TitaniumSingleSelectBase_base: import("../../leavitt/theme/theme-preference").Constructor<import("../../leavitt/theme/theme-preference").ThemePreferenceInterface> & typeof LitElement;
380
12
  export declare class TitaniumSingleSelectBase<T extends Identifier> extends TitaniumSingleSelectBase_base {
381
13
  #private;
14
+ accessor isLoading: boolean;
15
+ trackLoadingPromise: (promise: Promise<unknown>) => Promise<void>;
382
16
  protected accessor searchTerm: string;
383
17
  protected accessor suggestions: Array<T>;
384
18
  protected accessor defaultSuggestions: Array<T>;
@@ -387,10 +21,6 @@ export declare class TitaniumSingleSelectBase<T extends Identifier> extends Tita
387
21
  * Sets floating label value.
388
22
  */
389
23
  accessor label: string;
390
- /**
391
- * Swaps out outlined text field for a filled text field.
392
- */
393
- accessor filled: boolean;
394
24
  /**
395
25
  * Sets placeholder text value.
396
26
  */
@@ -475,7 +105,7 @@ export declare class TitaniumSingleSelectBase<T extends Identifier> extends Tita
475
105
  private accessor menuOpen;
476
106
  accessor large: boolean;
477
107
  accessor shaped: boolean;
478
- getTextField(): MdFilledTextField | MdOutlinedTextField | null | undefined;
108
+ getTextField(): MdFilledTextField | null | undefined;
479
109
  firstUpdated(): Promise<void>;
480
110
  connectedCallback(): void;
481
111
  disconnectedCallback(): void;
@@ -513,13 +143,13 @@ export declare class TitaniumSingleSelectBase<T extends Identifier> extends Tita
513
143
  protected onInputChanged(searchTerm: string): void;
514
144
  protected showSuggestions(suggestions: Array<T>, totalSuggestionCount: number): Promise<void>;
515
145
  static styles: import("lit").CSSResult[];
516
- protected renderSuggestion(entity: T): import("lit-html").TemplateResult;
146
+ protected renderSuggestion(entity: T): import("lit-html").TemplateResult<1>;
517
147
  protected renderSelectedLeadingInputSlot(_entity: T): void;
518
- protected renderTrailingInputSlot(): import("lit-html").TemplateResult;
519
- protected renderLeadingInputSlot(): import("lit-html").TemplateResult;
520
- protected renderTrailingSlot(): import("lit-html").TemplateResult;
521
- protected renderTrailingMenuSlot(): import("lit-html").TemplateResult;
522
- render(): import("lit-html").TemplateResult;
148
+ protected renderTrailingInputSlot(): import("lit-html").TemplateResult<1>;
149
+ protected renderLeadingInputSlot(): import("lit-html").TemplateResult<1>;
150
+ protected renderTrailingSlot(): import("lit-html").TemplateResult<1>;
151
+ protected renderTrailingMenuSlot(): import("lit-html").TemplateResult<1>;
152
+ render(): import("lit-html").TemplateResult<1>;
523
153
  }
524
154
  export {};
525
155
  //# sourceMappingURL=single-select-base.d.ts.map
@@ -1,25 +1,24 @@
1
1
  import { __decorate } from "tslib";
2
- import { css, LitElement } from 'lit';
2
+ import { css, html, LitElement } from 'lit';
3
3
  import { property, customElement, query, state } from 'lit/decorators.js';
4
4
  import { repeat } from 'lit/directives/repeat.js';
5
5
  import '@material/web/progress/circular-progress';
6
- import '@material/web/textfield/outlined-text-field';
7
6
  import '@material/web/textfield/filled-text-field';
8
7
  import '@material/web/iconbutton/icon-button';
9
8
  import '@material/web/icon/icon';
10
9
  import '@material/web/menu/menu';
11
10
  import '@material/web/menu/menu-item';
12
- import { LoadWhile } from '../../titanium/helpers/load-while';
11
+ import { promiseTracking } from '../../titanium/helpers/promise-tracking';
13
12
  import { redispatchEvent } from '@material/web/internal/events/redispatch-event';
14
13
  import { ThemePreference } from '../../leavitt/theme/theme-preference';
15
- import { html, literal } from 'lit/static-html.js';
16
- let TitaniumSingleSelectBase = class TitaniumSingleSelectBase extends ThemePreference(LoadWhile(LitElement)) {
14
+ let TitaniumSingleSelectBase = class TitaniumSingleSelectBase extends ThemePreference(LitElement) {
17
15
  constructor() {
18
16
  super(...arguments);
17
+ this.#isLoading_accessor_storage = false;
18
+ this.#searchTerm_accessor_storage = '';
19
19
  this.#suggestions_accessor_storage = [];
20
20
  this.#defaultSuggestions_accessor_storage = [];
21
21
  this.#label_accessor_storage = 'Single select';
22
- this.#filled_accessor_storage = false;
23
22
  this.#placeholder_accessor_storage = 'Search for a entity';
24
23
  this.#selected_accessor_storage = null;
25
24
  this.#disabled_accessor_storage = false;
@@ -27,15 +26,27 @@ let TitaniumSingleSelectBase = class TitaniumSingleSelectBase extends ThemePrefe
27
26
  this.#autocomplete_accessor_storage = '';
28
27
  this.#spellcheck_accessor_storage = false;
29
28
  this.#error_accessor_storage = false;
29
+ this.#errorText_accessor_storage = '';
30
30
  this.#required_accessor_storage = false;
31
+ this.#prefixText_accessor_storage = '';
32
+ this.#suffixText_accessor_storage = '';
33
+ this.#hasLeadingIcon_accessor_storage = false;
34
+ this.#hasTrailingIcon_accessor_storage = false;
35
+ this.#disableMenuOpenOnFocus_accessor_storage = false;
36
+ this.#supportingText_accessor_storage = '';
37
+ this.#textDirection_accessor_storage = '';
31
38
  this.#pathToSelectedText_accessor_storage = 'Name';
32
39
  this.positioning = 'popover';
33
40
  this.#matchInputWidth_accessor_storage = false;
34
41
  this.#resizeObserver = null;
42
+ this.#count_accessor_storage = 0;
35
43
  this.#menuOpen_accessor_storage = false;
36
44
  this.#large_accessor_storage = false;
37
45
  this.#shaped_accessor_storage = false;
38
46
  }
47
+ #isLoading_accessor_storage;
48
+ get isLoading() { return this.#isLoading_accessor_storage; }
49
+ set isLoading(value) { this.#isLoading_accessor_storage = value; }
39
50
  #searchTerm_accessor_storage;
40
51
  get searchTerm() { return this.#searchTerm_accessor_storage; }
41
52
  set searchTerm(value) { this.#searchTerm_accessor_storage = value; }
@@ -55,12 +66,6 @@ let TitaniumSingleSelectBase = class TitaniumSingleSelectBase extends ThemePrefe
55
66
  */
56
67
  get label() { return this.#label_accessor_storage; }
57
68
  set label(value) { this.#label_accessor_storage = value; }
58
- #filled_accessor_storage;
59
- /**
60
- * Swaps out outlined text field for a filled text field.
61
- */
62
- get filled() { return this.#filled_accessor_storage; }
63
- set filled(value) { this.#filled_accessor_storage = value; }
64
69
  #placeholder_accessor_storage;
65
70
  /**
66
71
  * Sets placeholder text value.
@@ -192,13 +197,13 @@ let TitaniumSingleSelectBase = class TitaniumSingleSelectBase extends ThemePrefe
192
197
  get shaped() { return this.#shaped_accessor_storage; }
193
198
  set shaped(value) { this.#shaped_accessor_storage = value; }
194
199
  getTextField() {
195
- return this.filled ? this.shadowRoot?.querySelector('md-filled-text-field') : this.shadowRoot?.querySelector('md-outlined-text-field');
200
+ return this.shadowRoot?.querySelector('md-filled-text-field');
196
201
  }
197
202
  async firstUpdated() {
198
203
  const textField = this.getTextField();
199
204
  if (textField && this.required) {
200
205
  const originalCheckValidity = textField?.checkValidity;
201
- textField.checkValidity = () => !!this.selected && originalCheckValidity.bind(textField);
206
+ textField.checkValidity = () => !!this.selected && originalCheckValidity.call(textField);
202
207
  }
203
208
  }
204
209
  #observeInputWidth() {
@@ -347,9 +352,17 @@ let TitaniumSingleSelectBase = class TitaniumSingleSelectBase extends ThemePrefe
347
352
  :host {
348
353
  display: block;
349
354
  position: relative;
350
- }
351
355
 
352
- :host([large]) {
356
+ --md-filled-text-field-container-shape: 16px;
357
+ --md-filled-field-container-shape: 16px;
358
+ --md-menu-container-shape: 16px;
359
+
360
+ --md-filled-text-field-active-indicator-height: 0;
361
+ --md-filled-text-field-error-active-indicator-height: 0;
362
+ --md-filled-text-field-hover-active-indicator-height: 0;
363
+ --md-filled-text-field-focus-active-indicator-height: 0;
364
+ --md-filled-text-field-disabled-active-indicator-height: 0;
365
+
353
366
  --md-filled-text-field-input-text-size: 1.125rem;
354
367
  --md-filled-text-field-input-text-line-height: 1.75rem;
355
368
  --md-filled-text-field-label-text-size: 1.125rem;
@@ -362,8 +375,7 @@ let TitaniumSingleSelectBase = class TitaniumSingleSelectBase extends ThemePrefe
362
375
  --md-filled-text-field-with-trailing-icon-trailing-space: 20px;
363
376
  }
364
377
 
365
- md-filled-text-field,
366
- md-outlined-text-field {
378
+ md-filled-text-field {
367
379
  width: 100%;
368
380
  }
369
381
 
@@ -380,29 +392,11 @@ let TitaniumSingleSelectBase = class TitaniumSingleSelectBase extends ThemePrefe
380
392
  min-width: 300px;
381
393
  }
382
394
 
383
- :host([filled]) {
384
- --md-filled-text-field-container-shape: 16px;
385
- --md-filled-field-container-shape: 16px;
386
- --md-menu-container-shape: 16px;
387
-
388
- --md-filled-text-field-active-indicator-height: 0;
389
- --md-filled-text-field-error-active-indicator-height: 0;
390
- --md-filled-text-field-hover-active-indicator-height: 0;
391
- --md-filled-text-field-focus-active-indicator-height: 0;
392
- --md-filled-text-field-disabled-active-indicator-height: 0;
393
- }
394
-
395
- :host([shaped]) {
396
- --md-outlined-text-field-container-shape: 28px;
395
+ :host([large]) {
397
396
  --md-filled-text-field-container-shape: 28px;
398
397
  }
399
398
 
400
- :host([shaped][menu-open][filled]) {
401
- --md-outlined-text-field-container-shape-start-start: 28px;
402
- --md-outlined-text-field-container-shape-start-end: 28px;
403
- --md-outlined-text-field-container-shape-end-end: 0;
404
- --md-outlined-text-field-container-shape-end-start: 0;
405
-
399
+ :host([shaped][menu-open]) {
406
400
  --md-filled-text-field-container-shape-start-start: 28px;
407
401
  --md-filled-text-field-container-shape-start-end: 28px;
408
402
  --md-filled-text-field-container-shape-end-end: 0;
@@ -412,7 +406,7 @@ let TitaniumSingleSelectBase = class TitaniumSingleSelectBase extends ThemePrefe
412
406
  --md-menu-container-shape: 0 0 28px 28px;
413
407
  }
414
408
 
415
- :host([shaped][menu-open][filled]) md-menu {
409
+ :host([shaped][menu-open]) md-menu {
416
410
  --md-menu-container-color: var(--md-sys-color-inverse-surface);
417
411
  color: var(--md-sys-color-inverse-on-surface);
418
412
 
@@ -422,7 +416,7 @@ let TitaniumSingleSelectBase = class TitaniumSingleSelectBase extends ThemePrefe
422
416
  --md-menu-item-hover-state-layer-color: var(--md-sys-color-surface);
423
417
  }
424
418
 
425
- :host([shaped][menu-open][filled]) md-filled-text-field {
419
+ :host([shaped][menu-open]) md-filled-text-field {
426
420
  --md-filled-text-field-container-color: var(--md-sys-color-inverse-surface);
427
421
  --md-filled-text-field-input-text-color: var(--md-sys-color-inverse-on-surface);
428
422
  --md-filled-text-field-hover-input-text-color: var(--md-sys-color-inverse-on-surface);
@@ -453,7 +447,7 @@ let TitaniumSingleSelectBase = class TitaniumSingleSelectBase extends ThemePrefe
453
447
  color: var(--md-sys-color-on-surface);
454
448
  }
455
449
 
456
- :host([shaped][filled]) [summary] {
450
+ :host([shaped]) [summary] {
457
451
  color: var(--md-sys-color-inverse-on-surface);
458
452
  }
459
453
 
@@ -501,9 +495,8 @@ let TitaniumSingleSelectBase = class TitaniumSingleSelectBase extends ThemePrefe
501
495
  return html ``;
502
496
  }
503
497
  render() {
504
- /* eslint-disable lit/binding-positions, lit/no-invalid-html */
505
498
  return html `
506
- <${this.filled ? literal `md-filled-text-field` : literal `md-outlined-text-field`}
499
+ <md-filled-text-field
507
500
  id="menu-anchor"
508
501
  aria-haspopup="true"
509
502
  aria-controls="menu"
@@ -554,7 +547,7 @@ let TitaniumSingleSelectBase = class TitaniumSingleSelectBase extends ThemePrefe
554
547
  }}
555
548
  >
556
549
  ${this.selected ? this.renderSelectedLeadingInputSlot(this.selected) : this.renderLeadingInputSlot()} ${this.#renderTrailingInputSlot()}
557
- </${this.filled ? literal `md-filled-text-field` : literal `md-outlined-text-field`}>
550
+ </md-filled-text-field>
558
551
  <md-menu
559
552
  part="menu"
560
553
  suggestions
@@ -588,9 +581,12 @@ let TitaniumSingleSelectBase = class TitaniumSingleSelectBase extends ThemePrefe
588
581
  </md-menu>
589
582
  ${this.renderTrailingSlot()}
590
583
  `;
591
- /* eslint-enable lit/binding-positions, lit/no-invalid-html */
592
584
  }
593
585
  };
586
+ __decorate([
587
+ promiseTracking('trackLoadingPromise'),
588
+ state()
589
+ ], TitaniumSingleSelectBase.prototype, "isLoading", null);
594
590
  __decorate([
595
591
  state()
596
592
  ], TitaniumSingleSelectBase.prototype, "searchTerm", null);
@@ -606,9 +602,6 @@ __decorate([
606
602
  __decorate([
607
603
  property({ type: String })
608
604
  ], TitaniumSingleSelectBase.prototype, "label", null);
609
- __decorate([
610
- property({ type: Boolean, attribute: 'filled' })
611
- ], TitaniumSingleSelectBase.prototype, "filled", null);
612
605
  __decorate([
613
606
  property({ type: String })
614
607
  ], TitaniumSingleSelectBase.prototype, "placeholder", null);
@@ -676,10 +669,10 @@ __decorate([
676
669
  property({ type: Boolean, attribute: 'menu-open', reflect: true })
677
670
  ], TitaniumSingleSelectBase.prototype, "menuOpen", null);
678
671
  __decorate([
679
- property({ type: Boolean, attribute: 'large' })
672
+ property({ type: Boolean, reflect: true, attribute: 'large' })
680
673
  ], TitaniumSingleSelectBase.prototype, "large", null);
681
674
  __decorate([
682
- property({ type: Boolean, attribute: 'shaped' })
675
+ property({ type: Boolean, reflect: true, attribute: 'shaped' })
683
676
  ], TitaniumSingleSelectBase.prototype, "shaped", null);
684
677
  TitaniumSingleSelectBase = __decorate([
685
678
  customElement('titanium-single-select-base')