@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.
- package/leavitt/api-service/HttpError.d.ts +10 -0
- package/leavitt/api-service/HttpError.js +2 -0
- package/leavitt/api-service/HttpError.js.map +1 -0
- package/leavitt/api-service/api-service.d.ts +27 -0
- package/leavitt/api-service/api-service.js +332 -0
- package/leavitt/api-service/api-service.js.map +1 -0
- package/leavitt/api-service/api2-service.d.ts +338 -0
- package/leavitt/api-service/api2-service.js +17 -0
- package/leavitt/api-service/api2-service.js.map +1 -0
- package/leavitt/api-service/authenticated-token-provider.d.ts +5 -0
- package/leavitt/api-service/authenticated-token-provider.js +7 -0
- package/leavitt/api-service/authenticated-token-provider.js.map +1 -0
- package/leavitt/api-service/bearer-token-provider.d.ts +4 -0
- package/leavitt/api-service/bearer-token-provider.js +2 -0
- package/leavitt/api-service/bearer-token-provider.js.map +1 -0
- package/leavitt/api-service/mapi-service.d.ts +338 -0
- package/leavitt/api-service/mapi-service.js +17 -0
- package/leavitt/api-service/mapi-service.js.map +1 -0
- package/leavitt/api-service/no-authentication-token-provider.d.ts +5 -0
- package/leavitt/api-service/no-authentication-token-provider.js +6 -0
- package/leavitt/api-service/no-authentication-token-provider.js.map +1 -0
- package/leavitt/api-service/odata-dto.d.ts +6 -0
- package/leavitt/api-service/odata-dto.js +7 -0
- package/leavitt/api-service/odata-dto.js.map +1 -0
- package/leavitt/api-service/odata-model-info.d.ts +5 -0
- package/leavitt/api-service/odata-model-info.js +7 -0
- package/leavitt/api-service/odata-model-info.js.map +1 -0
- package/leavitt/api-service/odata-response.d.ts +15 -0
- package/leavitt/api-service/odata-response.js +50 -0
- package/leavitt/api-service/odata-response.js.map +1 -0
- package/leavitt/api-service/status-codes.d.ts +2 -0
- package/leavitt/api-service/status-codes.js +44 -0
- package/leavitt/api-service/status-codes.js.map +1 -0
- package/leavitt/company-select/company-select.d.ts +50 -0
- package/leavitt/company-select/company-select.js +157 -0
- package/leavitt/company-select/company-select.js.map +1 -0
- package/leavitt/person-company-select/person-company-select.d.ts +41 -0
- package/leavitt/person-company-select/person-company-select.js +180 -0
- package/leavitt/person-company-select/person-company-select.js.map +1 -0
- package/leavitt/person-group-select/people-group-icons.d.ts +5 -0
- package/leavitt/person-group-select/people-group-icons.js +66 -0
- package/leavitt/person-group-select/people-group-icons.js.map +1 -0
- package/leavitt/person-group-select/person-group-select.d.ts +41 -0
- package/leavitt/person-group-select/person-group-select.js +186 -0
- package/leavitt/person-group-select/person-group-select.js.map +1 -0
- package/leavitt/person-select/person-select.d.ts +33 -0
- package/leavitt/person-select/person-select.js +128 -0
- package/leavitt/person-select/person-select.js.map +1 -0
- package/leavitt/profile-picture/profile-picture-menu.d.ts +44 -0
- package/leavitt/profile-picture/profile-picture-menu.js +197 -0
- package/leavitt/profile-picture/profile-picture-menu.js.map +1 -0
- package/leavitt/profile-picture/profile-picture.d.ts +39 -0
- package/leavitt/profile-picture/profile-picture.js +151 -0
- package/leavitt/profile-picture/profile-picture.js.map +1 -0
- package/leavitt/user-feedback/user-feedback.d.ts +357 -0
- package/leavitt/user-feedback/user-feedback.js +207 -0
- package/leavitt/user-feedback/user-feedback.js.map +1 -0
- package/leavitt/user-manager/LssJwtToken.d.ts +21 -0
- package/leavitt/user-manager/LssJwtToken.js +2 -0
- package/leavitt/user-manager/LssJwtToken.js.map +1 -0
- package/leavitt/user-manager/user-manager-events.d.ts +5 -0
- package/leavitt/user-manager/user-manager-events.js +7 -0
- package/leavitt/user-manager/user-manager-events.js.map +1 -0
- package/leavitt/user-manager/user-manager.d.ts +37 -0
- package/leavitt/user-manager/user-manager.js +364 -0
- package/leavitt/user-manager/user-manager.js.map +1 -0
- package/package.json +36 -0
- package/titanium/access-denied-page/access-denied-page.d.ts +16 -0
- package/titanium/access-denied-page/access-denied-page.js +360 -0
- package/titanium/access-denied-page/access-denied-page.js.map +1 -0
- package/titanium/address-input/Address.js.map +1 -0
- package/titanium/address-input/address-input.d.ts +29 -0
- package/titanium/address-input/address-input.js +77 -0
- package/titanium/address-input/address-input.js.map +1 -0
- package/titanium/address-input/google-address-input.d.ts +30 -0
- package/titanium/address-input/google-address-input.js +202 -0
- package/titanium/address-input/google-address-input.js.map +1 -0
- package/titanium/address-input/manual-address-dialog.d.ts +30 -0
- package/titanium/address-input/manual-address-dialog.js +250 -0
- package/titanium/address-input/manual-address-dialog.js.map +1 -0
- package/titanium/address-input/types/address-input-address.d.ts +17 -0
- package/titanium/address-input/types/address-input-address.js +2 -0
- package/titanium/address-input/types/address-input-address.js.map +1 -0
- package/titanium/address-input/types/address.js.map +1 -0
- package/titanium/address-input/types/autocomplete-prediction-suggestion.js.map +1 -0
- package/titanium/address-input/utils/address-to-string.d.ts +3 -0
- package/titanium/address-input/utils/address-to-string.js +13 -0
- package/titanium/address-input/utils/address-to-string.js.map +1 -0
- package/titanium/address-input/utils/place-result-to-address.d.ts +4 -0
- package/titanium/address-input/utils/place-result-to-address.js +33 -0
- package/titanium/address-input/utils/place-result-to-address.js.map +1 -0
- package/titanium/address-input/utils/validate-street.d.ts +2 -0
- package/titanium/address-input/utils/validate-street.js +8 -0
- package/titanium/address-input/utils/validate-street.js.map +1 -0
- package/titanium/card/card.d.ts +23 -0
- package/titanium/card/card.js +160 -0
- package/titanium/card/card.js.map +1 -0
- package/titanium/chip-multi-select/chip-multi-select.d.ts +55 -0
- package/titanium/chip-multi-select/chip-multi-select.js +119 -0
- package/titanium/chip-multi-select/chip-multi-select.js.map +1 -0
- package/titanium/data-table/data-table-header.d.ts +67 -0
- package/titanium/data-table/data-table-header.js +207 -0
- package/titanium/data-table/data-table-header.js.map +1 -0
- package/titanium/data-table/data-table-item.d.ts +100 -0
- package/titanium/data-table/data-table-item.js +511 -0
- package/titanium/data-table/data-table-item.js.map +1 -0
- package/titanium/data-table/data-table.d.ts +146 -0
- package/titanium/data-table/data-table.js +605 -0
- package/titanium/data-table/data-table.js.map +1 -0
- package/titanium/data-table/filter-controller.d.ts +23 -0
- package/titanium/data-table/filter-controller.js +119 -0
- package/titanium/data-table/filter-controller.js.map +1 -0
- package/titanium/data-table/filter.d.ts +8 -0
- package/titanium/data-table/filter.js +11 -0
- package/titanium/data-table/filter.js.map +1 -0
- package/titanium/data-table/page-control.d.ts +54 -0
- package/titanium/data-table/page-control.js +196 -0
- package/titanium/data-table/page-control.js.map +1 -0
- package/titanium/date-range-selector/date-range-change-event.d.ts +8 -0
- package/titanium/date-range-selector/date-range-change-event.js +10 -0
- package/titanium/date-range-selector/date-range-change-event.js.map +1 -0
- package/titanium/date-range-selector/date-range-selector.d.ts +65 -0
- package/titanium/date-range-selector/date-range-selector.js +423 -0
- package/titanium/date-range-selector/date-range-selector.js.map +1 -0
- package/titanium/date-range-selector/range-label.d.ts +4 -0
- package/titanium/date-range-selector/range-label.js +25 -0
- package/titanium/date-range-selector/range-label.js.map +1 -0
- package/titanium/drawer/drawer.d.ts +39 -0
- package/titanium/drawer/drawer.js +233 -0
- package/titanium/drawer/drawer.js.map +1 -0
- package/titanium/duration-input/duration-input.d.ts +26 -0
- package/titanium/duration-input/duration-input.js +86 -0
- package/titanium/duration-input/duration-input.js.map +1 -0
- package/titanium/duration-input/human-interval.d.ts +19 -0
- package/titanium/duration-input/human-interval.js +74 -0
- package/titanium/duration-input/human-interval.js.map +1 -0
- package/titanium/error-page/error-page.d.ts +16 -0
- package/titanium/error-page/error-page.js +96 -0
- package/titanium/error-page/error-page.js.map +1 -0
- package/titanium/event-bus/event-bus.d.ts +10 -0
- package/titanium/event-bus/event-bus.js +52 -0
- package/titanium/event-bus/event-bus.js.map +1 -0
- package/titanium/extendable-outlined-text-field/extendable-outlined-text-field.d.ts +160 -0
- package/titanium/extendable-outlined-text-field/extendable-outlined-text-field.js +295 -0
- package/titanium/extendable-outlined-text-field/extendable-outlined-text-field.js.map +1 -0
- package/titanium/extendable-outlined-text-field/extensible-outlined-text-field.d.ts +45 -0
- package/titanium/extendable-outlined-text-field/extensible-outlined-text-field.js.map +1 -0
- package/titanium/full-page-loading-indicator/full-page-loading-indicator.d.ts +19 -0
- package/titanium/full-page-loading-indicator/full-page-loading-indicator.js +170 -0
- package/titanium/full-page-loading-indicator/full-page-loading-indicator.js.map +1 -0
- package/titanium/hacks/dialog-overflow-hacks.d.ts +4 -0
- package/titanium/hacks/dialog-overflow-hacks.js +21 -0
- package/titanium/hacks/dialog-overflow-hacks.js.map +1 -0
- package/titanium/header/header.d.ts +39 -0
- package/titanium/header/header.js +148 -0
- package/titanium/header/header.js.map +1 -0
- package/titanium/helpers/csv-download.d.ts +3 -0
- package/titanium/helpers/csv-download.js +78 -0
- package/titanium/helpers/csv-download.js.map +1 -0
- package/titanium/helpers/debouncer.d.ts +13 -0
- package/titanium/helpers/debouncer.js +33 -0
- package/titanium/helpers/debouncer.js.map +1 -0
- package/titanium/helpers/delay.d.ts +2 -0
- package/titanium/helpers/delay.js +6 -0
- package/titanium/helpers/delay.js.map +1 -0
- package/titanium/helpers/dev-detection.d.ts +3 -0
- package/titanium/helpers/dev-detection.js +12 -0
- package/titanium/helpers/dev-detection.js.map +1 -0
- package/titanium/helpers/helpers.d.ts +14 -0
- package/titanium/helpers/helpers.js +14 -0
- package/titanium/helpers/helpers.js.map +1 -0
- package/titanium/helpers/join.d.ts +2 -0
- package/titanium/helpers/join.js +5 -0
- package/titanium/helpers/join.js.map +1 -0
- package/titanium/helpers/leavitt-cdn.d.ts +5 -0
- package/titanium/helpers/leavitt-cdn.js +38 -0
- package/titanium/helpers/leavitt-cdn.js.map +1 -0
- package/titanium/helpers/load-while.d.ts +343 -0
- package/titanium/helpers/load-while.js +27 -0
- package/titanium/helpers/load-while.js.map +1 -0
- package/titanium/helpers/media-query.d.ts +2 -0
- package/titanium/helpers/media-query.js +6 -0
- package/titanium/helpers/media-query.js.map +1 -0
- package/titanium/helpers/middle-ellipsis.d.ts +2 -0
- package/titanium/helpers/middle-ellipsis.js +7 -0
- package/titanium/helpers/middle-ellipsis.js.map +1 -0
- package/titanium/helpers/not-null-or-undefined.d.ts +2 -0
- package/titanium/helpers/not-null-or-undefined.js +4 -0
- package/titanium/helpers/not-null-or-undefined.js.map +1 -0
- package/titanium/helpers/not-null.d.ts +2 -0
- package/titanium/helpers/not-null.js +4 -0
- package/titanium/helpers/not-null.js.map +1 -0
- package/titanium/helpers/not-undefined.d.ts +2 -0
- package/titanium/helpers/not-undefined.js +4 -0
- package/titanium/helpers/not-undefined.js.map +1 -0
- package/titanium/helpers/odata-helpers.d.ts +2 -0
- package/titanium/helpers/odata-helpers.js +2 -0
- package/titanium/helpers/odata-helpers.js.map +1 -0
- package/titanium/helpers/search-token.d.ts +2 -0
- package/titanium/helpers/search-token.js +17 -0
- package/titanium/helpers/search-token.js.map +1 -0
- package/titanium/icon-picker/icon-picker.d.ts +23 -0
- package/titanium/icon-picker/icon-picker.js +75 -0
- package/titanium/icon-picker/icon-picker.js.map +1 -0
- package/titanium/icon-picker/material-symbols.d.ts +3 -0
- package/titanium/icon-picker/material-symbols.js +3297 -0
- package/titanium/icon-picker/material-symbols.js.map +1 -0
- package/titanium/input-validator/input-validator.d.ts +20 -0
- package/titanium/input-validator/input-validator.js +45 -0
- package/titanium/input-validator/input-validator.js.map +1 -0
- package/titanium/search-input/search-input.d.ts +47 -0
- package/titanium/search-input/search-input.js +237 -0
- package/titanium/search-input/search-input.js.map +1 -0
- package/titanium/service-worker-notifier/service-worker-notifier.d.ts +9 -0
- package/titanium/service-worker-notifier/service-worker-notifier.js +57 -0
- package/titanium/service-worker-notifier/service-worker-notifier.js.map +1 -0
- package/titanium/show-hide/show-hide.d.ts +36 -0
- package/titanium/show-hide/show-hide.js +144 -0
- package/titanium/show-hide/show-hide.js.map +1 -0
- package/titanium/single-select-base/single-select-base.d.ts +449 -0
- package/titanium/single-select-base/single-select-base.js +411 -0
- package/titanium/single-select-base/single-select-base.js.map +1 -0
- package/titanium/smart-attachment-input/crop-and-save-image-dialog.d.ts +370 -0
- package/titanium/smart-attachment-input/crop-and-save-image-dialog.js +270 -0
- package/titanium/smart-attachment-input/crop-and-save-image-dialog.js.map +1 -0
- package/titanium/smart-attachment-input/cropper-styles.d.ts +3 -0
- package/titanium/smart-attachment-input/cropper-styles.js +311 -0
- package/titanium/smart-attachment-input/cropper-styles.js.map +1 -0
- package/titanium/smart-attachment-input/image-formats.d.ts +5 -0
- package/titanium/smart-attachment-input/image-formats.js +37 -0
- package/titanium/smart-attachment-input/image-formats.js.map +1 -0
- package/titanium/smart-attachment-input/image-preview-dialog.d.ts +21 -0
- package/titanium/smart-attachment-input/image-preview-dialog.js +83 -0
- package/titanium/smart-attachment-input/image-preview-dialog.js.map +1 -0
- package/titanium/smart-attachment-input/smart-attachment-input.d.ts +126 -0
- package/titanium/smart-attachment-input/smart-attachment-input.js +422 -0
- package/titanium/smart-attachment-input/smart-attachment-input.js.map +1 -0
- package/titanium/smart-attachment-input/type/smart-attachment.d.ts +7 -0
- package/titanium/smart-attachment-input/type/smart-attachment.js +2 -0
- package/titanium/smart-attachment-input/type/smart-attachment.js.map +1 -0
- package/titanium/snackbar/snackbar.d.ts +79 -0
- package/titanium/snackbar/snackbar.js +302 -0
- package/titanium/snackbar/snackbar.js.map +1 -0
- package/titanium/styles/a.d.ts +2 -0
- package/titanium/styles/a.js +18 -0
- package/titanium/styles/a.js.map +1 -0
- package/titanium/styles/data-row.d.ts +2 -0
- package/titanium/styles/data-row.js +52 -0
- package/titanium/styles/data-row.js.map +1 -0
- package/titanium/styles/ellipsis.d.ts +2 -0
- package/titanium/styles/ellipsis.js +9 -0
- package/titanium/styles/ellipsis.js.map +1 -0
- package/titanium/styles/h1.d.ts +2 -0
- package/titanium/styles/h1.js +17 -0
- package/titanium/styles/h1.js.map +1 -0
- package/titanium/styles/h2.d.ts +2 -0
- package/titanium/styles/h2.js +17 -0
- package/titanium/styles/h2.js.map +1 -0
- package/titanium/styles/h3.d.ts +2 -0
- package/titanium/styles/h3.js +17 -0
- package/titanium/styles/h3.js.map +1 -0
- package/titanium/styles/h4.d.ts +2 -0
- package/titanium/styles/h4.js +17 -0
- package/titanium/styles/h4.js.map +1 -0
- package/titanium/styles/h5.d.ts +2 -0
- package/titanium/styles/h5.js +19 -0
- package/titanium/styles/h5.js.map +1 -0
- package/titanium/styles/p.d.ts +2 -0
- package/titanium/styles/p.js +17 -0
- package/titanium/styles/p.js.map +1 -0
- package/titanium/styles/styles.d.ts +17 -0
- package/titanium/styles/styles.js +17 -0
- package/titanium/styles/styles.js.map +1 -0
- package/titanium/toolbar/toolbar.d.ts +34 -0
- package/titanium/toolbar/toolbar.js +104 -0
- package/titanium/toolbar/toolbar.js.map +1 -0
- package/titanium/types/any-function.d.ts +5 -0
- package/titanium/types/any-function.js +2 -0
- package/titanium/types/any-function.js.map +1 -0
- package/titanium/types/dom-event.d.ts +4 -0
- package/titanium/types/dom-event.js +2 -0
- package/titanium/types/dom-event.js.map +1 -0
- package/titanium/types/identifier-interface.d.ts +4 -0
- package/titanium/types/identifier-interface.js +2 -0
- package/titanium/types/identifier-interface.js.map +1 -0
- package/titanium/types/pending-state-event.d.ts +7 -0
- package/titanium/types/pending-state-event.js +7 -0
- package/titanium/types/pending-state-event.js.map +1 -0
- package/titanium/types/string-map.d.ts +7 -0
- package/titanium/types/string-map.js +5 -0
- package/titanium/types/string-map.js.map +1 -0
- package/titanium/youtube-input/youtube-input.d.ts +17 -0
- package/titanium/youtube-input/youtube-input.js +52 -0
- package/titanium/youtube-input/youtube-input.js.map +1 -0
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { css, html, LitElement } from 'lit';
|
|
3
|
+
import { customElement, property, query } from 'lit/decorators.js';
|
|
4
|
+
import '@material/web/button/outlined-button';
|
|
5
|
+
/**
|
|
6
|
+
* Titanium Show Hide
|
|
7
|
+
*
|
|
8
|
+
* @element titanium-show-hide
|
|
9
|
+
*
|
|
10
|
+
* @slot - main slot for content. Please note that component is assuming that the slotted content is not deeply nested.
|
|
11
|
+
* Please place your items directly in the titanium-show-hide element default slot for this component to function properly.
|
|
12
|
+
*
|
|
13
|
+
* @slot [button] - slot for button to show/hide content. If you do not provide a button slot the component will create a default button.
|
|
14
|
+
*
|
|
15
|
+
* @cssprop [--titanium-show-hide-flex-direction=column] - flex direction for the parent of the slotted in content
|
|
16
|
+
* @cssprop [--titanium-show-hide-flex-wrap=wrap] - flex wrap for the parent of the slotted in content
|
|
17
|
+
* @cssprop [--titanium-show-hide-gap=8px] - flex direction of the for the parent of the slotted in content
|
|
18
|
+
*/
|
|
19
|
+
let TitaniumShowHideElement = class TitaniumShowHideElement extends LitElement {
|
|
20
|
+
constructor() {
|
|
21
|
+
super(...arguments);
|
|
22
|
+
/**
|
|
23
|
+
* This will be the height of the content you want visible when collapsed.
|
|
24
|
+
* An example would be if you have a list of items where each item is 20px in height
|
|
25
|
+
* and you want to show only the first 2 items pass in 48px (height of 2 items + gap).
|
|
26
|
+
*/
|
|
27
|
+
this.collapseHeight = 120;
|
|
28
|
+
this.disableFade = false;
|
|
29
|
+
this.collapsed = true;
|
|
30
|
+
this.hasHiddenItems = false;
|
|
31
|
+
this.hiddenItemCount = 0;
|
|
32
|
+
}
|
|
33
|
+
updated(changedProps) {
|
|
34
|
+
if (changedProps.has('collapsed')) {
|
|
35
|
+
this.dispatchEvent(new Event('collapsed-changed'));
|
|
36
|
+
}
|
|
37
|
+
if (changedProps.has('hiddenItemCount')) {
|
|
38
|
+
this.dispatchEvent(new Event('hidden-item-count-changed'));
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
firstUpdated() {
|
|
42
|
+
const resizeObserver = new ResizeObserver(() => {
|
|
43
|
+
// Look at the reserved space in the container and see how many items we can show without exceeding the collapse height.
|
|
44
|
+
// We then display the count of the remaining hidden items on the button
|
|
45
|
+
const items = this.itemsContainer.children?.[0]?.assignedElements();
|
|
46
|
+
this.hiddenItemCount = items.filter(o => !this.#isWithin(this.collapsedContainer, o)).length;
|
|
47
|
+
this.hasHiddenItems = !!this.hiddenItemCount;
|
|
48
|
+
});
|
|
49
|
+
resizeObserver.observe(this.itemsContainer);
|
|
50
|
+
}
|
|
51
|
+
#isWithin(container, element) {
|
|
52
|
+
const containerRect = container.getBoundingClientRect();
|
|
53
|
+
const elementRect = element.getBoundingClientRect();
|
|
54
|
+
return (elementRect.top >= containerRect.top &&
|
|
55
|
+
elementRect.bottom <= containerRect.top + this.collapseHeight &&
|
|
56
|
+
elementRect.left >= containerRect.left &&
|
|
57
|
+
elementRect.right <= containerRect.right);
|
|
58
|
+
}
|
|
59
|
+
static { this.styles = [
|
|
60
|
+
css `
|
|
61
|
+
:host {
|
|
62
|
+
display: flex;
|
|
63
|
+
flex-direction: column;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
items-container,
|
|
67
|
+
collapsed-box {
|
|
68
|
+
display: block;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
:host([collapsed]) collapsed-box {
|
|
72
|
+
overflow: hidden;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
:host([collapsed][has-hidden-items]:not([disable-fade])) collapsed-box {
|
|
76
|
+
-webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
|
|
77
|
+
mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
items-container {
|
|
81
|
+
display: flex;
|
|
82
|
+
flex-direction: var(--titanium-show-hide-flex-direction, column);
|
|
83
|
+
flex-wrap: var(--titanium-show-hide-flex-wrap, wrap);
|
|
84
|
+
gap: var(--titanium-show-hide-gap, 8px);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
md-outlined-button {
|
|
88
|
+
max-width: 160px;
|
|
89
|
+
width: 100%;
|
|
90
|
+
margin-top: 12px;
|
|
91
|
+
align-self: center;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
[hidden] {
|
|
95
|
+
display: none;
|
|
96
|
+
}
|
|
97
|
+
`,
|
|
98
|
+
]; }
|
|
99
|
+
render() {
|
|
100
|
+
return html `
|
|
101
|
+
<style>
|
|
102
|
+
:host([collapsed]) collapsed-box {
|
|
103
|
+
max-height: ${this.collapseHeight}px;
|
|
104
|
+
}
|
|
105
|
+
</style>
|
|
106
|
+
<collapsed-box>
|
|
107
|
+
<items-container part="items-container">
|
|
108
|
+
<slot></slot>
|
|
109
|
+
</items-container>
|
|
110
|
+
</collapsed-box>
|
|
111
|
+
<slot name="button" @click=${() => (this.collapsed = !this.collapsed)}>
|
|
112
|
+
<md-outlined-button part="button" ?hidden=${!this.hasHiddenItems}>
|
|
113
|
+
${this.collapsed ? `Show more (${this.hiddenItemCount})` : 'Show less'}</md-outlined-button
|
|
114
|
+
>
|
|
115
|
+
</slot>
|
|
116
|
+
`;
|
|
117
|
+
}
|
|
118
|
+
};
|
|
119
|
+
__decorate([
|
|
120
|
+
property({ type: Number, attribute: 'collapse-height' })
|
|
121
|
+
], TitaniumShowHideElement.prototype, "collapseHeight", void 0);
|
|
122
|
+
__decorate([
|
|
123
|
+
property({ type: Boolean, reflect: true, attribute: 'disable-fade' })
|
|
124
|
+
], TitaniumShowHideElement.prototype, "disableFade", void 0);
|
|
125
|
+
__decorate([
|
|
126
|
+
property({ type: Boolean, reflect: true, attribute: 'collapsed' })
|
|
127
|
+
], TitaniumShowHideElement.prototype, "collapsed", void 0);
|
|
128
|
+
__decorate([
|
|
129
|
+
property({ type: Boolean, reflect: true, attribute: 'has-hidden-items' })
|
|
130
|
+
], TitaniumShowHideElement.prototype, "hasHiddenItems", void 0);
|
|
131
|
+
__decorate([
|
|
132
|
+
property({ type: Number })
|
|
133
|
+
], TitaniumShowHideElement.prototype, "hiddenItemCount", void 0);
|
|
134
|
+
__decorate([
|
|
135
|
+
query('items-container')
|
|
136
|
+
], TitaniumShowHideElement.prototype, "itemsContainer", void 0);
|
|
137
|
+
__decorate([
|
|
138
|
+
query('collapsed-box')
|
|
139
|
+
], TitaniumShowHideElement.prototype, "collapsedContainer", void 0);
|
|
140
|
+
TitaniumShowHideElement = __decorate([
|
|
141
|
+
customElement('titanium-show-hide')
|
|
142
|
+
], TitaniumShowHideElement);
|
|
143
|
+
export default TitaniumShowHideElement;
|
|
144
|
+
//# sourceMappingURL=show-hide.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"show-hide.js","sourceRoot":"","sources":["show-hide.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,449 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import '@material/web/progress/linear-progress';
|
|
3
|
+
import '@material/web/icon/icon';
|
|
4
|
+
import '@material/web/textfield/outlined-text-field';
|
|
5
|
+
import '@material/web/menu/menu';
|
|
6
|
+
import '@material/web/menu/menu-item';
|
|
7
|
+
import { MdOutlinedTextField } from '@material/web/textfield/outlined-text-field';
|
|
8
|
+
import { Menu } from '@material/web/menu/internal/menu';
|
|
9
|
+
import { Identifier } from '../types/identifier-interface';
|
|
10
|
+
declare const TitaniumSingleSelectBase_base: {
|
|
11
|
+
new (...args: any[]): {
|
|
12
|
+
"__#3@#promiseCount": number;
|
|
13
|
+
isLoading: boolean;
|
|
14
|
+
loadWhile(promise: Promise<unknown>): Promise<void>;
|
|
15
|
+
accessKey: string;
|
|
16
|
+
readonly accessKeyLabel: string;
|
|
17
|
+
autocapitalize: string;
|
|
18
|
+
dir: string;
|
|
19
|
+
draggable: boolean;
|
|
20
|
+
hidden: boolean;
|
|
21
|
+
inert: boolean;
|
|
22
|
+
innerText: string;
|
|
23
|
+
lang: string;
|
|
24
|
+
readonly offsetHeight: number;
|
|
25
|
+
readonly offsetLeft: number;
|
|
26
|
+
readonly offsetParent: Element | null;
|
|
27
|
+
readonly offsetTop: number;
|
|
28
|
+
readonly offsetWidth: number;
|
|
29
|
+
outerText: string;
|
|
30
|
+
popover: string | null;
|
|
31
|
+
spellcheck: boolean;
|
|
32
|
+
title: string;
|
|
33
|
+
translate: boolean;
|
|
34
|
+
attachInternals(): ElementInternals;
|
|
35
|
+
click(): void;
|
|
36
|
+
hidePopover(): void;
|
|
37
|
+
showPopover(): void;
|
|
38
|
+
togglePopover(force?: boolean | undefined): void;
|
|
39
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
40
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
41
|
+
removeEventListener<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions | undefined): void;
|
|
42
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions | undefined): void;
|
|
43
|
+
floatingLabelFoundation?: import("@material/floating-label/foundation").MDCFloatingLabelFoundation | undefined;
|
|
44
|
+
lineRippleFoundation?: import("@material/line-ripple/foundation").MDCLineRippleFoundation | undefined;
|
|
45
|
+
readonly attributes: NamedNodeMap;
|
|
46
|
+
readonly classList: DOMTokenList;
|
|
47
|
+
className: string;
|
|
48
|
+
readonly clientHeight: number;
|
|
49
|
+
readonly clientLeft: number;
|
|
50
|
+
readonly clientTop: number;
|
|
51
|
+
readonly clientWidth: number;
|
|
52
|
+
id: string;
|
|
53
|
+
readonly localName: string;
|
|
54
|
+
readonly namespaceURI: string | null;
|
|
55
|
+
onfullscreenchange: ((this: Element, ev: Event) => any) | null;
|
|
56
|
+
onfullscreenerror: ((this: Element, ev: Event) => any) | null;
|
|
57
|
+
outerHTML: string;
|
|
58
|
+
readonly ownerDocument: Document;
|
|
59
|
+
readonly part: DOMTokenList;
|
|
60
|
+
readonly prefix: string | null;
|
|
61
|
+
readonly scrollHeight: number;
|
|
62
|
+
scrollLeft: number;
|
|
63
|
+
scrollTop: number;
|
|
64
|
+
readonly scrollWidth: number;
|
|
65
|
+
readonly shadowRoot: ShadowRoot | null;
|
|
66
|
+
slot: string;
|
|
67
|
+
readonly tagName: string;
|
|
68
|
+
attachShadow(init: ShadowRootInit): ShadowRoot;
|
|
69
|
+
checkVisibility(options?: CheckVisibilityOptions | undefined): boolean;
|
|
70
|
+
closest<K_2 extends keyof HTMLElementTagNameMap>(selector: K_2): HTMLElementTagNameMap[K_2] | null;
|
|
71
|
+
closest<K_3 extends keyof SVGElementTagNameMap>(selector: K_3): SVGElementTagNameMap[K_3] | null;
|
|
72
|
+
closest<K_4 extends keyof MathMLElementTagNameMap>(selector: K_4): MathMLElementTagNameMap[K_4] | null;
|
|
73
|
+
closest<E extends Element = Element>(selectors: string): E | null;
|
|
74
|
+
computedStyleMap(): StylePropertyMapReadOnly;
|
|
75
|
+
getAttribute(qualifiedName: string): string | null;
|
|
76
|
+
getAttributeNS(namespace: string | null, localName: string): string | null;
|
|
77
|
+
getAttributeNames(): string[];
|
|
78
|
+
getAttributeNode(qualifiedName: string): Attr | null;
|
|
79
|
+
getAttributeNodeNS(namespace: string | null, localName: string): Attr | null;
|
|
80
|
+
getBoundingClientRect(): DOMRect;
|
|
81
|
+
getClientRects(): DOMRectList;
|
|
82
|
+
getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
|
|
83
|
+
getElementsByTagName<K_5 extends keyof HTMLElementTagNameMap>(qualifiedName: K_5): HTMLCollectionOf<HTMLElementTagNameMap[K_5]>;
|
|
84
|
+
getElementsByTagName<K_6 extends keyof SVGElementTagNameMap>(qualifiedName: K_6): HTMLCollectionOf<SVGElementTagNameMap[K_6]>;
|
|
85
|
+
getElementsByTagName<K_7 extends keyof MathMLElementTagNameMap>(qualifiedName: K_7): HTMLCollectionOf<MathMLElementTagNameMap[K_7]>;
|
|
86
|
+
getElementsByTagName<K_8 extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K_8): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K_8]>;
|
|
87
|
+
getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
|
|
88
|
+
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
|
|
89
|
+
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
|
|
90
|
+
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>;
|
|
91
|
+
getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;
|
|
92
|
+
hasAttribute(qualifiedName: string): boolean;
|
|
93
|
+
hasAttributeNS(namespace: string | null, localName: string): boolean;
|
|
94
|
+
hasAttributes(): boolean;
|
|
95
|
+
hasPointerCapture(pointerId: number): boolean;
|
|
96
|
+
insertAdjacentElement(where: InsertPosition, element: Element): Element | null;
|
|
97
|
+
insertAdjacentHTML(position: InsertPosition, text: string): void;
|
|
98
|
+
insertAdjacentText(where: InsertPosition, data: string): void;
|
|
99
|
+
matches(selectors: string): boolean;
|
|
100
|
+
releasePointerCapture(pointerId: number): void;
|
|
101
|
+
removeAttribute(qualifiedName: string): void;
|
|
102
|
+
removeAttributeNS(namespace: string | null, localName: string): void;
|
|
103
|
+
removeAttributeNode(attr: Attr): Attr;
|
|
104
|
+
requestFullscreen(options?: FullscreenOptions | undefined): Promise<void>;
|
|
105
|
+
requestPointerLock(): void;
|
|
106
|
+
scroll(options?: ScrollToOptions | undefined): void;
|
|
107
|
+
scroll(x: number, y: number): void;
|
|
108
|
+
scrollBy(options?: ScrollToOptions | undefined): void;
|
|
109
|
+
scrollBy(x: number, y: number): void;
|
|
110
|
+
scrollIntoView(arg?: boolean | ScrollIntoViewOptions | undefined): void;
|
|
111
|
+
scrollTo(options?: ScrollToOptions | undefined): void;
|
|
112
|
+
scrollTo(x: number, y: number): void;
|
|
113
|
+
setAttribute(qualifiedName: string, value: string): void;
|
|
114
|
+
setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void;
|
|
115
|
+
setAttributeNode(attr: Attr): Attr | null;
|
|
116
|
+
setAttributeNodeNS(attr: Attr): Attr | null;
|
|
117
|
+
setPointerCapture(pointerId: number): void;
|
|
118
|
+
toggleAttribute(qualifiedName: string, force?: boolean | undefined): boolean;
|
|
119
|
+
webkitMatchesSelector(selectors: string): boolean;
|
|
120
|
+
readonly baseURI: string;
|
|
121
|
+
readonly childNodes: NodeListOf<ChildNode>;
|
|
122
|
+
readonly firstChild: ChildNode | null;
|
|
123
|
+
readonly isConnected: boolean;
|
|
124
|
+
readonly lastChild: ChildNode | null;
|
|
125
|
+
readonly nextSibling: ChildNode | null;
|
|
126
|
+
readonly nodeName: string;
|
|
127
|
+
readonly nodeType: number;
|
|
128
|
+
nodeValue: string | null;
|
|
129
|
+
readonly parentElement: HTMLElement | null;
|
|
130
|
+
readonly parentNode: ParentNode | null;
|
|
131
|
+
readonly previousSibling: ChildNode | null;
|
|
132
|
+
textContent: string | null;
|
|
133
|
+
appendChild<T_1 extends Node>(node: T_1): T_1;
|
|
134
|
+
cloneNode(deep?: boolean | undefined): Node;
|
|
135
|
+
compareDocumentPosition(other: Node): number;
|
|
136
|
+
contains(other: Node | null): boolean;
|
|
137
|
+
getRootNode(options?: GetRootNodeOptions | undefined): Node;
|
|
138
|
+
hasChildNodes(): boolean;
|
|
139
|
+
insertBefore<T_2 extends Node>(node: T_2, child: Node | null): T_2;
|
|
140
|
+
isDefaultNamespace(namespace: string | null): boolean;
|
|
141
|
+
isEqualNode(otherNode: Node | null): boolean;
|
|
142
|
+
isSameNode(otherNode: Node | null): boolean;
|
|
143
|
+
lookupNamespaceURI(prefix: string | null): string | null;
|
|
144
|
+
lookupPrefix(namespace: string | null): string | null;
|
|
145
|
+
normalize(): void;
|
|
146
|
+
removeChild<T_3 extends Node>(child: T_3): T_3;
|
|
147
|
+
replaceChild<T_4 extends Node>(node: Node, child: T_4): T_4;
|
|
148
|
+
readonly ELEMENT_NODE: 1;
|
|
149
|
+
readonly ATTRIBUTE_NODE: 2;
|
|
150
|
+
readonly TEXT_NODE: 3;
|
|
151
|
+
readonly CDATA_SECTION_NODE: 4;
|
|
152
|
+
readonly ENTITY_REFERENCE_NODE: 5;
|
|
153
|
+
readonly ENTITY_NODE: 6;
|
|
154
|
+
readonly PROCESSING_INSTRUCTION_NODE: 7;
|
|
155
|
+
readonly COMMENT_NODE: 8;
|
|
156
|
+
readonly DOCUMENT_NODE: 9;
|
|
157
|
+
readonly DOCUMENT_TYPE_NODE: 10;
|
|
158
|
+
readonly DOCUMENT_FRAGMENT_NODE: 11;
|
|
159
|
+
readonly NOTATION_NODE: 12;
|
|
160
|
+
readonly DOCUMENT_POSITION_DISCONNECTED: 1;
|
|
161
|
+
readonly DOCUMENT_POSITION_PRECEDING: 2;
|
|
162
|
+
readonly DOCUMENT_POSITION_FOLLOWING: 4;
|
|
163
|
+
readonly DOCUMENT_POSITION_CONTAINS: 8;
|
|
164
|
+
readonly DOCUMENT_POSITION_CONTAINED_BY: 16;
|
|
165
|
+
readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32;
|
|
166
|
+
dispatchEvent(event: Event): boolean;
|
|
167
|
+
ariaAtomic: string | null;
|
|
168
|
+
ariaAutoComplete: string | null;
|
|
169
|
+
ariaBusy: string | null;
|
|
170
|
+
ariaChecked: string | null;
|
|
171
|
+
ariaColCount: string | null;
|
|
172
|
+
ariaColIndex: string | null;
|
|
173
|
+
ariaColSpan: string | null;
|
|
174
|
+
ariaCurrent: string | null;
|
|
175
|
+
ariaDisabled: string | null;
|
|
176
|
+
ariaExpanded: string | null;
|
|
177
|
+
ariaHasPopup: string | null;
|
|
178
|
+
ariaHidden: string | null;
|
|
179
|
+
ariaInvalid: string | null;
|
|
180
|
+
ariaKeyShortcuts: string | null;
|
|
181
|
+
ariaLabel: string | null;
|
|
182
|
+
ariaLevel: string | null;
|
|
183
|
+
ariaLive: string | null;
|
|
184
|
+
ariaModal: string | null;
|
|
185
|
+
ariaMultiLine: string | null;
|
|
186
|
+
ariaMultiSelectable: string | null;
|
|
187
|
+
ariaOrientation: string | null;
|
|
188
|
+
ariaPlaceholder: string | null;
|
|
189
|
+
ariaPosInSet: string | null;
|
|
190
|
+
ariaPressed: string | null;
|
|
191
|
+
ariaReadOnly: string | null;
|
|
192
|
+
ariaRequired: string | null;
|
|
193
|
+
ariaRoleDescription: string | null;
|
|
194
|
+
ariaRowCount: string | null;
|
|
195
|
+
ariaRowIndex: string | null;
|
|
196
|
+
ariaRowSpan: string | null;
|
|
197
|
+
ariaSelected: string | null;
|
|
198
|
+
ariaSetSize: string | null;
|
|
199
|
+
ariaSort: string | null;
|
|
200
|
+
ariaValueMax: string | null;
|
|
201
|
+
ariaValueMin: string | null;
|
|
202
|
+
ariaValueNow: string | null;
|
|
203
|
+
ariaValueText: string | null;
|
|
204
|
+
role: string | null;
|
|
205
|
+
animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined): Animation;
|
|
206
|
+
getAnimations(options?: GetAnimationsOptions | undefined): Animation[];
|
|
207
|
+
after(...nodes: (string | Node)[]): void;
|
|
208
|
+
before(...nodes: (string | Node)[]): void;
|
|
209
|
+
remove(): void;
|
|
210
|
+
replaceWith(...nodes: (string | Node)[]): void;
|
|
211
|
+
innerHTML: string;
|
|
212
|
+
readonly nextElementSibling: Element | null;
|
|
213
|
+
readonly previousElementSibling: Element | null;
|
|
214
|
+
readonly childElementCount: number;
|
|
215
|
+
readonly children: HTMLCollection;
|
|
216
|
+
readonly firstElementChild: Element | null;
|
|
217
|
+
readonly lastElementChild: Element | null;
|
|
218
|
+
append(...nodes: (string | Node)[]): void;
|
|
219
|
+
prepend(...nodes: (string | Node)[]): void;
|
|
220
|
+
querySelector<K_9 extends keyof HTMLElementTagNameMap>(selectors: K_9): HTMLElementTagNameMap[K_9] | null;
|
|
221
|
+
querySelector<K_10 extends keyof SVGElementTagNameMap>(selectors: K_10): SVGElementTagNameMap[K_10] | null;
|
|
222
|
+
querySelector<K_11 extends keyof MathMLElementTagNameMap>(selectors: K_11): MathMLElementTagNameMap[K_11] | null;
|
|
223
|
+
querySelector<K_12 extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K_12): HTMLElementDeprecatedTagNameMap[K_12] | null;
|
|
224
|
+
querySelector<E_1 extends Element = Element>(selectors: string): E_1 | null;
|
|
225
|
+
querySelectorAll<K_13 extends keyof HTMLElementTagNameMap>(selectors: K_13): NodeListOf<HTMLElementTagNameMap[K_13]>;
|
|
226
|
+
querySelectorAll<K_14 extends keyof SVGElementTagNameMap>(selectors: K_14): NodeListOf<SVGElementTagNameMap[K_14]>;
|
|
227
|
+
querySelectorAll<K_15 extends keyof MathMLElementTagNameMap>(selectors: K_15): NodeListOf<MathMLElementTagNameMap[K_15]>;
|
|
228
|
+
querySelectorAll<K_16 extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K_16): NodeListOf<HTMLElementDeprecatedTagNameMap[K_16]>;
|
|
229
|
+
querySelectorAll<E_2 extends Element = Element>(selectors: string): NodeListOf<E_2>;
|
|
230
|
+
replaceChildren(...nodes: (string | Node)[]): void;
|
|
231
|
+
readonly assignedSlot: HTMLSlotElement | null;
|
|
232
|
+
readonly attributeStyleMap: StylePropertyMap;
|
|
233
|
+
readonly style: CSSStyleDeclaration;
|
|
234
|
+
contentEditable: string;
|
|
235
|
+
enterKeyHint: string;
|
|
236
|
+
inputMode: string;
|
|
237
|
+
readonly isContentEditable: boolean;
|
|
238
|
+
onabort: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
|
|
239
|
+
onanimationcancel: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
240
|
+
onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
241
|
+
onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
242
|
+
onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
243
|
+
onauxclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
244
|
+
onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
|
|
245
|
+
onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
|
|
246
|
+
oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
247
|
+
oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
248
|
+
oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
249
|
+
onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
250
|
+
onclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
251
|
+
onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
252
|
+
oncontextmenu: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
253
|
+
oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
254
|
+
oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
255
|
+
oncut: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
256
|
+
ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
257
|
+
ondrag: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
258
|
+
ondragend: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
259
|
+
ondragenter: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
260
|
+
ondragleave: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
261
|
+
ondragover: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
262
|
+
ondragstart: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
263
|
+
ondrop: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
264
|
+
ondurationchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
265
|
+
onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
266
|
+
onended: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
267
|
+
onerror: OnErrorEventHandler;
|
|
268
|
+
onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
|
|
269
|
+
onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null;
|
|
270
|
+
ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
271
|
+
oninput: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
272
|
+
oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
273
|
+
onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
|
274
|
+
onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
|
275
|
+
onkeyup: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
|
276
|
+
onload: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
277
|
+
onloadeddata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
278
|
+
onloadedmetadata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
279
|
+
onloadstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
280
|
+
onlostpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
281
|
+
onmousedown: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
282
|
+
onmouseenter: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
283
|
+
onmouseleave: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
284
|
+
onmousemove: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
285
|
+
onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
286
|
+
onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
287
|
+
onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
288
|
+
onpaste: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
289
|
+
onpause: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
290
|
+
onplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
291
|
+
onplaying: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
292
|
+
onpointercancel: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
293
|
+
onpointerdown: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
294
|
+
onpointerenter: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
295
|
+
onpointerleave: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
296
|
+
onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
297
|
+
onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
298
|
+
onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
299
|
+
onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
300
|
+
onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent<EventTarget>) => any) | null;
|
|
301
|
+
onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
302
|
+
onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
303
|
+
onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
|
|
304
|
+
onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
305
|
+
onscrollend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
306
|
+
onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null;
|
|
307
|
+
onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
308
|
+
onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
309
|
+
onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
310
|
+
onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
311
|
+
onselectstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
312
|
+
onslotchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
313
|
+
onstalled: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
314
|
+
onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null;
|
|
315
|
+
onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
316
|
+
ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
317
|
+
ontoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
318
|
+
ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
319
|
+
ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
320
|
+
ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
321
|
+
ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
322
|
+
ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
|
323
|
+
ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
|
324
|
+
ontransitionrun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
|
325
|
+
ontransitionstart: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
|
326
|
+
onvolumechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
327
|
+
onwaiting: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
328
|
+
onwebkitanimationend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
329
|
+
onwebkitanimationiteration: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
330
|
+
onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
331
|
+
onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
332
|
+
onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
|
|
333
|
+
autofocus: boolean;
|
|
334
|
+
readonly dataset: DOMStringMap;
|
|
335
|
+
nonce?: string | undefined;
|
|
336
|
+
tabIndex: number;
|
|
337
|
+
blur(): void;
|
|
338
|
+
focus(options?: FocusOptions | undefined): void;
|
|
339
|
+
};
|
|
340
|
+
readonly properties: {
|
|
341
|
+
isLoading: {
|
|
342
|
+
type: BooleanConstructor;
|
|
343
|
+
};
|
|
344
|
+
};
|
|
345
|
+
} & typeof LitElement;
|
|
346
|
+
export declare class TitaniumSingleSelectBase<T extends Identifier> extends TitaniumSingleSelectBase_base {
|
|
347
|
+
#private;
|
|
348
|
+
protected searchTerm: string;
|
|
349
|
+
protected suggestions: Array<T>;
|
|
350
|
+
protected menu: Menu | null;
|
|
351
|
+
protected textfield: MdOutlinedTextField | null;
|
|
352
|
+
/**
|
|
353
|
+
* Sets floating label value.
|
|
354
|
+
*/
|
|
355
|
+
accessor label: string;
|
|
356
|
+
/**
|
|
357
|
+
* Sets placeholder text value.
|
|
358
|
+
*/
|
|
359
|
+
accessor placeholder: string;
|
|
360
|
+
/**
|
|
361
|
+
* The entity object selected by the user.
|
|
362
|
+
*/
|
|
363
|
+
accessor selected: T | null;
|
|
364
|
+
/**
|
|
365
|
+
* Whether or not the input should be disabled.
|
|
366
|
+
*/
|
|
367
|
+
accessor disabled: boolean;
|
|
368
|
+
/**
|
|
369
|
+
* Gets or sets whether or not the text field is in a visually invalid state.
|
|
370
|
+
*
|
|
371
|
+
* This error state overrides the error state controlled by
|
|
372
|
+
* `reportValidity()`.
|
|
373
|
+
*/
|
|
374
|
+
accessor error: boolean;
|
|
375
|
+
accessor errorText: string;
|
|
376
|
+
/**
|
|
377
|
+
* Displays error state if input is empty and input is blurred.
|
|
378
|
+
*/
|
|
379
|
+
accessor required: boolean;
|
|
380
|
+
/**
|
|
381
|
+
* An optional prefix to display before the input value.
|
|
382
|
+
*/
|
|
383
|
+
accessor prefixText: string;
|
|
384
|
+
/**
|
|
385
|
+
* An optional suffix to display after the input value.
|
|
386
|
+
*/
|
|
387
|
+
accessor suffixText: string;
|
|
388
|
+
/**
|
|
389
|
+
* Whether or not the text field has a leading icon. Used for SSR.
|
|
390
|
+
*/
|
|
391
|
+
accessor hasLeadingIcon: boolean;
|
|
392
|
+
/**
|
|
393
|
+
* Whether or not the text field has a trailing icon. Used for SSR.
|
|
394
|
+
*/
|
|
395
|
+
accessor hasTrailingIcon: boolean;
|
|
396
|
+
/**
|
|
397
|
+
* Conveys additional information below the text field, such as how it should
|
|
398
|
+
* be used.
|
|
399
|
+
*/
|
|
400
|
+
accessor supportingText: string;
|
|
401
|
+
/**
|
|
402
|
+
* Override the input text CSS `direction`. Useful for RTL languages that use
|
|
403
|
+
* LTR notation for fractions.
|
|
404
|
+
*/
|
|
405
|
+
accessor textDirection: string;
|
|
406
|
+
accessor pathToSelectedText: string;
|
|
407
|
+
protected accessor count: number;
|
|
408
|
+
firstUpdated(): Promise<void>;
|
|
409
|
+
setCustomValidity(error: string): void;
|
|
410
|
+
/**
|
|
411
|
+
* Resets the selected entity, search term and suggestions.
|
|
412
|
+
*/
|
|
413
|
+
reset(): Promise<void>;
|
|
414
|
+
/**
|
|
415
|
+
* Resets search term and suggestions.
|
|
416
|
+
*/
|
|
417
|
+
softReset(): void;
|
|
418
|
+
/**
|
|
419
|
+
* Selects all the text in the text field.
|
|
420
|
+
*
|
|
421
|
+
* https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/select
|
|
422
|
+
*/
|
|
423
|
+
select(): Promise<void>;
|
|
424
|
+
/**
|
|
425
|
+
* Sets focus on the input.
|
|
426
|
+
*/
|
|
427
|
+
focus(): Promise<void>;
|
|
428
|
+
/**
|
|
429
|
+
* Returns true if the input passes validity checks.
|
|
430
|
+
*/
|
|
431
|
+
checkValidity(): boolean | undefined;
|
|
432
|
+
/**
|
|
433
|
+
* Runs checkValidity() method, and if it returns false, then it reports to the user that the input is invalid.
|
|
434
|
+
*/
|
|
435
|
+
reportValidity(): boolean | undefined;
|
|
436
|
+
protected customCheckValidity(): boolean;
|
|
437
|
+
protected customReportValidity(): void;
|
|
438
|
+
protected setSelected(entity: T | null): Promise<void>;
|
|
439
|
+
protected onInputChanged(searchTerm: string): void;
|
|
440
|
+
static styles: import("lit").CSSResult[];
|
|
441
|
+
protected renderSuggestion(entity: T): import("lit-html").TemplateResult<1>;
|
|
442
|
+
protected renderSelectedLeadingInputSlot(_entity: T): void;
|
|
443
|
+
protected renderTrailingInputSlot(): import("lit-html").TemplateResult<1>;
|
|
444
|
+
protected renderLeadingInputSlot(): import("lit-html").TemplateResult<1>;
|
|
445
|
+
protected renderTrailingSlot(): import("lit-html").TemplateResult<1>;
|
|
446
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
447
|
+
}
|
|
448
|
+
export {};
|
|
449
|
+
//# sourceMappingURL=single-select-base.d.ts.map
|