@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,338 @@
|
|
|
1
|
+
import ApiService from './api-service';
|
|
2
|
+
export type Constructor<T> = {
|
|
3
|
+
new (...args: any[]): T;
|
|
4
|
+
};
|
|
5
|
+
declare const MapiServiceMixin: <C extends Constructor<HTMLElement>>(base: C, options?: {
|
|
6
|
+
disableAuthentication?: boolean | undefined;
|
|
7
|
+
defaultLGAppNameHeader?: string | undefined;
|
|
8
|
+
}) => {
|
|
9
|
+
new (...args: any[]): {
|
|
10
|
+
mapi: ApiService;
|
|
11
|
+
accessKey: string;
|
|
12
|
+
readonly accessKeyLabel: string;
|
|
13
|
+
autocapitalize: string;
|
|
14
|
+
dir: string;
|
|
15
|
+
draggable: boolean;
|
|
16
|
+
hidden: boolean;
|
|
17
|
+
inert: boolean;
|
|
18
|
+
innerText: string;
|
|
19
|
+
lang: string;
|
|
20
|
+
readonly offsetHeight: number;
|
|
21
|
+
readonly offsetLeft: number;
|
|
22
|
+
readonly offsetParent: Element | null;
|
|
23
|
+
readonly offsetTop: number;
|
|
24
|
+
readonly offsetWidth: number;
|
|
25
|
+
outerText: string;
|
|
26
|
+
popover: string | null;
|
|
27
|
+
spellcheck: boolean;
|
|
28
|
+
title: string;
|
|
29
|
+
translate: boolean;
|
|
30
|
+
attachInternals(): ElementInternals;
|
|
31
|
+
click(): void;
|
|
32
|
+
hidePopover(): void;
|
|
33
|
+
showPopover(): void;
|
|
34
|
+
togglePopover(force?: boolean | undefined): void;
|
|
35
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
36
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
37
|
+
removeEventListener<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions | undefined): void;
|
|
38
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions | undefined): void;
|
|
39
|
+
floatingLabelFoundation?: import("@material/floating-label/foundation").MDCFloatingLabelFoundation | undefined;
|
|
40
|
+
lineRippleFoundation?: import("@material/line-ripple/foundation").MDCLineRippleFoundation | undefined;
|
|
41
|
+
readonly attributes: NamedNodeMap;
|
|
42
|
+
readonly classList: DOMTokenList;
|
|
43
|
+
className: string;
|
|
44
|
+
readonly clientHeight: number;
|
|
45
|
+
readonly clientLeft: number;
|
|
46
|
+
readonly clientTop: number;
|
|
47
|
+
readonly clientWidth: number;
|
|
48
|
+
id: string;
|
|
49
|
+
readonly localName: string;
|
|
50
|
+
readonly namespaceURI: string | null;
|
|
51
|
+
onfullscreenchange: ((this: Element, ev: Event) => any) | null;
|
|
52
|
+
onfullscreenerror: ((this: Element, ev: Event) => any) | null;
|
|
53
|
+
outerHTML: string;
|
|
54
|
+
readonly ownerDocument: Document;
|
|
55
|
+
readonly part: DOMTokenList;
|
|
56
|
+
readonly prefix: string | null;
|
|
57
|
+
readonly scrollHeight: number;
|
|
58
|
+
scrollLeft: number;
|
|
59
|
+
scrollTop: number;
|
|
60
|
+
readonly scrollWidth: number;
|
|
61
|
+
readonly shadowRoot: ShadowRoot | null;
|
|
62
|
+
slot: string;
|
|
63
|
+
readonly tagName: string;
|
|
64
|
+
attachShadow(init: ShadowRootInit): ShadowRoot;
|
|
65
|
+
checkVisibility(options?: CheckVisibilityOptions | undefined): boolean;
|
|
66
|
+
closest<K_2 extends keyof HTMLElementTagNameMap>(selector: K_2): HTMLElementTagNameMap[K_2] | null;
|
|
67
|
+
closest<K_3 extends keyof SVGElementTagNameMap>(selector: K_3): SVGElementTagNameMap[K_3] | null;
|
|
68
|
+
closest<K_4 extends keyof MathMLElementTagNameMap>(selector: K_4): MathMLElementTagNameMap[K_4] | null;
|
|
69
|
+
closest<E extends Element = Element>(selectors: string): E | null;
|
|
70
|
+
computedStyleMap(): StylePropertyMapReadOnly;
|
|
71
|
+
getAttribute(qualifiedName: string): string | null;
|
|
72
|
+
getAttributeNS(namespace: string | null, localName: string): string | null;
|
|
73
|
+
getAttributeNames(): string[];
|
|
74
|
+
getAttributeNode(qualifiedName: string): Attr | null;
|
|
75
|
+
getAttributeNodeNS(namespace: string | null, localName: string): Attr | null;
|
|
76
|
+
getBoundingClientRect(): DOMRect;
|
|
77
|
+
getClientRects(): DOMRectList;
|
|
78
|
+
getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
|
|
79
|
+
getElementsByTagName<K_5 extends keyof HTMLElementTagNameMap>(qualifiedName: K_5): HTMLCollectionOf<HTMLElementTagNameMap[K_5]>;
|
|
80
|
+
getElementsByTagName<K_6 extends keyof SVGElementTagNameMap>(qualifiedName: K_6): HTMLCollectionOf<SVGElementTagNameMap[K_6]>;
|
|
81
|
+
getElementsByTagName<K_7 extends keyof MathMLElementTagNameMap>(qualifiedName: K_7): HTMLCollectionOf<MathMLElementTagNameMap[K_7]>;
|
|
82
|
+
getElementsByTagName<K_8 extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K_8): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K_8]>;
|
|
83
|
+
getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
|
|
84
|
+
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
|
|
85
|
+
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
|
|
86
|
+
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>;
|
|
87
|
+
getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;
|
|
88
|
+
hasAttribute(qualifiedName: string): boolean;
|
|
89
|
+
hasAttributeNS(namespace: string | null, localName: string): boolean;
|
|
90
|
+
hasAttributes(): boolean;
|
|
91
|
+
hasPointerCapture(pointerId: number): boolean;
|
|
92
|
+
insertAdjacentElement(where: InsertPosition, element: Element): Element | null;
|
|
93
|
+
insertAdjacentHTML(position: InsertPosition, text: string): void;
|
|
94
|
+
insertAdjacentText(where: InsertPosition, data: string): void;
|
|
95
|
+
matches(selectors: string): boolean;
|
|
96
|
+
releasePointerCapture(pointerId: number): void;
|
|
97
|
+
removeAttribute(qualifiedName: string): void;
|
|
98
|
+
removeAttributeNS(namespace: string | null, localName: string): void;
|
|
99
|
+
removeAttributeNode(attr: Attr): Attr;
|
|
100
|
+
requestFullscreen(options?: FullscreenOptions | undefined): Promise<void>;
|
|
101
|
+
requestPointerLock(): void;
|
|
102
|
+
scroll(options?: ScrollToOptions | undefined): void;
|
|
103
|
+
scroll(x: number, y: number): void;
|
|
104
|
+
scrollBy(options?: ScrollToOptions | undefined): void;
|
|
105
|
+
scrollBy(x: number, y: number): void;
|
|
106
|
+
scrollIntoView(arg?: boolean | ScrollIntoViewOptions | undefined): void;
|
|
107
|
+
scrollTo(options?: ScrollToOptions | undefined): void;
|
|
108
|
+
scrollTo(x: number, y: number): void;
|
|
109
|
+
setAttribute(qualifiedName: string, value: string): void;
|
|
110
|
+
setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void;
|
|
111
|
+
setAttributeNode(attr: Attr): Attr | null;
|
|
112
|
+
setAttributeNodeNS(attr: Attr): Attr | null;
|
|
113
|
+
setPointerCapture(pointerId: number): void;
|
|
114
|
+
toggleAttribute(qualifiedName: string, force?: boolean | undefined): boolean;
|
|
115
|
+
webkitMatchesSelector(selectors: string): boolean;
|
|
116
|
+
readonly baseURI: string;
|
|
117
|
+
readonly childNodes: NodeListOf<ChildNode>;
|
|
118
|
+
readonly firstChild: ChildNode | null;
|
|
119
|
+
readonly isConnected: boolean;
|
|
120
|
+
readonly lastChild: ChildNode | null;
|
|
121
|
+
readonly nextSibling: ChildNode | null;
|
|
122
|
+
readonly nodeName: string;
|
|
123
|
+
readonly nodeType: number;
|
|
124
|
+
nodeValue: string | null;
|
|
125
|
+
readonly parentElement: HTMLElement | null;
|
|
126
|
+
readonly parentNode: ParentNode | null;
|
|
127
|
+
readonly previousSibling: ChildNode | null;
|
|
128
|
+
textContent: string | null;
|
|
129
|
+
appendChild<T extends Node>(node: T): T;
|
|
130
|
+
cloneNode(deep?: boolean | undefined): Node;
|
|
131
|
+
compareDocumentPosition(other: Node): number;
|
|
132
|
+
contains(other: Node | null): boolean;
|
|
133
|
+
getRootNode(options?: GetRootNodeOptions | undefined): Node;
|
|
134
|
+
hasChildNodes(): boolean;
|
|
135
|
+
insertBefore<T_1 extends Node>(node: T_1, child: Node | null): T_1;
|
|
136
|
+
isDefaultNamespace(namespace: string | null): boolean;
|
|
137
|
+
isEqualNode(otherNode: Node | null): boolean;
|
|
138
|
+
isSameNode(otherNode: Node | null): boolean;
|
|
139
|
+
lookupNamespaceURI(prefix: string | null): string | null;
|
|
140
|
+
lookupPrefix(namespace: string | null): string | null;
|
|
141
|
+
normalize(): void;
|
|
142
|
+
removeChild<T_2 extends Node>(child: T_2): T_2;
|
|
143
|
+
replaceChild<T_3 extends Node>(node: Node, child: T_3): T_3;
|
|
144
|
+
readonly ELEMENT_NODE: 1;
|
|
145
|
+
readonly ATTRIBUTE_NODE: 2;
|
|
146
|
+
readonly TEXT_NODE: 3;
|
|
147
|
+
readonly CDATA_SECTION_NODE: 4;
|
|
148
|
+
readonly ENTITY_REFERENCE_NODE: 5;
|
|
149
|
+
readonly ENTITY_NODE: 6;
|
|
150
|
+
readonly PROCESSING_INSTRUCTION_NODE: 7;
|
|
151
|
+
readonly COMMENT_NODE: 8;
|
|
152
|
+
readonly DOCUMENT_NODE: 9;
|
|
153
|
+
readonly DOCUMENT_TYPE_NODE: 10;
|
|
154
|
+
readonly DOCUMENT_FRAGMENT_NODE: 11;
|
|
155
|
+
readonly NOTATION_NODE: 12;
|
|
156
|
+
readonly DOCUMENT_POSITION_DISCONNECTED: 1;
|
|
157
|
+
readonly DOCUMENT_POSITION_PRECEDING: 2;
|
|
158
|
+
readonly DOCUMENT_POSITION_FOLLOWING: 4;
|
|
159
|
+
readonly DOCUMENT_POSITION_CONTAINS: 8;
|
|
160
|
+
readonly DOCUMENT_POSITION_CONTAINED_BY: 16;
|
|
161
|
+
readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32;
|
|
162
|
+
dispatchEvent(event: Event): boolean;
|
|
163
|
+
ariaAtomic: string | null;
|
|
164
|
+
ariaAutoComplete: string | null;
|
|
165
|
+
ariaBusy: string | null;
|
|
166
|
+
ariaChecked: string | null;
|
|
167
|
+
ariaColCount: string | null;
|
|
168
|
+
ariaColIndex: string | null;
|
|
169
|
+
ariaColSpan: string | null;
|
|
170
|
+
ariaCurrent: string | null;
|
|
171
|
+
ariaDisabled: string | null;
|
|
172
|
+
ariaExpanded: string | null;
|
|
173
|
+
ariaHasPopup: string | null;
|
|
174
|
+
ariaHidden: string | null;
|
|
175
|
+
ariaInvalid: string | null;
|
|
176
|
+
ariaKeyShortcuts: string | null;
|
|
177
|
+
ariaLabel: string | null;
|
|
178
|
+
ariaLevel: string | null;
|
|
179
|
+
ariaLive: string | null;
|
|
180
|
+
ariaModal: string | null;
|
|
181
|
+
ariaMultiLine: string | null;
|
|
182
|
+
ariaMultiSelectable: string | null;
|
|
183
|
+
ariaOrientation: string | null;
|
|
184
|
+
ariaPlaceholder: string | null;
|
|
185
|
+
ariaPosInSet: string | null;
|
|
186
|
+
ariaPressed: string | null;
|
|
187
|
+
ariaReadOnly: string | null;
|
|
188
|
+
ariaRequired: string | null;
|
|
189
|
+
ariaRoleDescription: string | null;
|
|
190
|
+
ariaRowCount: string | null;
|
|
191
|
+
ariaRowIndex: string | null;
|
|
192
|
+
ariaRowSpan: string | null;
|
|
193
|
+
ariaSelected: string | null;
|
|
194
|
+
ariaSetSize: string | null;
|
|
195
|
+
ariaSort: string | null;
|
|
196
|
+
ariaValueMax: string | null;
|
|
197
|
+
ariaValueMin: string | null;
|
|
198
|
+
ariaValueNow: string | null;
|
|
199
|
+
ariaValueText: string | null;
|
|
200
|
+
role: string | null;
|
|
201
|
+
animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined): Animation;
|
|
202
|
+
getAnimations(options?: GetAnimationsOptions | undefined): Animation[];
|
|
203
|
+
after(...nodes: (string | Node)[]): void;
|
|
204
|
+
before(...nodes: (string | Node)[]): void;
|
|
205
|
+
remove(): void;
|
|
206
|
+
replaceWith(...nodes: (string | Node)[]): void;
|
|
207
|
+
innerHTML: string;
|
|
208
|
+
readonly nextElementSibling: Element | null;
|
|
209
|
+
readonly previousElementSibling: Element | null;
|
|
210
|
+
readonly childElementCount: number;
|
|
211
|
+
readonly children: HTMLCollection;
|
|
212
|
+
readonly firstElementChild: Element | null;
|
|
213
|
+
readonly lastElementChild: Element | null;
|
|
214
|
+
append(...nodes: (string | Node)[]): void;
|
|
215
|
+
prepend(...nodes: (string | Node)[]): void;
|
|
216
|
+
querySelector<K_9 extends keyof HTMLElementTagNameMap>(selectors: K_9): HTMLElementTagNameMap[K_9] | null;
|
|
217
|
+
querySelector<K_10 extends keyof SVGElementTagNameMap>(selectors: K_10): SVGElementTagNameMap[K_10] | null;
|
|
218
|
+
querySelector<K_11 extends keyof MathMLElementTagNameMap>(selectors: K_11): MathMLElementTagNameMap[K_11] | null;
|
|
219
|
+
querySelector<K_12 extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K_12): HTMLElementDeprecatedTagNameMap[K_12] | null;
|
|
220
|
+
querySelector<E_1 extends Element = Element>(selectors: string): E_1 | null;
|
|
221
|
+
querySelectorAll<K_13 extends keyof HTMLElementTagNameMap>(selectors: K_13): NodeListOf<HTMLElementTagNameMap[K_13]>;
|
|
222
|
+
querySelectorAll<K_14 extends keyof SVGElementTagNameMap>(selectors: K_14): NodeListOf<SVGElementTagNameMap[K_14]>;
|
|
223
|
+
querySelectorAll<K_15 extends keyof MathMLElementTagNameMap>(selectors: K_15): NodeListOf<MathMLElementTagNameMap[K_15]>;
|
|
224
|
+
querySelectorAll<K_16 extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K_16): NodeListOf<HTMLElementDeprecatedTagNameMap[K_16]>;
|
|
225
|
+
querySelectorAll<E_2 extends Element = Element>(selectors: string): NodeListOf<E_2>;
|
|
226
|
+
replaceChildren(...nodes: (string | Node)[]): void;
|
|
227
|
+
readonly assignedSlot: HTMLSlotElement | null;
|
|
228
|
+
readonly attributeStyleMap: StylePropertyMap;
|
|
229
|
+
readonly style: CSSStyleDeclaration;
|
|
230
|
+
contentEditable: string;
|
|
231
|
+
enterKeyHint: string;
|
|
232
|
+
inputMode: string;
|
|
233
|
+
readonly isContentEditable: boolean;
|
|
234
|
+
onabort: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
|
|
235
|
+
onanimationcancel: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
236
|
+
onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
237
|
+
onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
238
|
+
onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
239
|
+
onauxclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
240
|
+
onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
|
|
241
|
+
onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
|
|
242
|
+
oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
243
|
+
oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
244
|
+
oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
245
|
+
onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
246
|
+
onclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
247
|
+
onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
248
|
+
oncontextmenu: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
249
|
+
oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
250
|
+
oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
251
|
+
oncut: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
252
|
+
ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
253
|
+
ondrag: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
254
|
+
ondragend: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
255
|
+
ondragenter: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
256
|
+
ondragleave: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
257
|
+
ondragover: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
258
|
+
ondragstart: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
259
|
+
ondrop: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
260
|
+
ondurationchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
261
|
+
onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
262
|
+
onended: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
263
|
+
onerror: OnErrorEventHandler;
|
|
264
|
+
onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
|
|
265
|
+
onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null;
|
|
266
|
+
ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
267
|
+
oninput: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
268
|
+
oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
269
|
+
onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
|
270
|
+
onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
|
271
|
+
onkeyup: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
|
272
|
+
onload: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
273
|
+
onloadeddata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
274
|
+
onloadedmetadata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
275
|
+
onloadstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
276
|
+
onlostpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
277
|
+
onmousedown: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
278
|
+
onmouseenter: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
279
|
+
onmouseleave: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
280
|
+
onmousemove: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
281
|
+
onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
282
|
+
onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
283
|
+
onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
284
|
+
onpaste: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
285
|
+
onpause: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
286
|
+
onplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
287
|
+
onplaying: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
288
|
+
onpointercancel: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
289
|
+
onpointerdown: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
290
|
+
onpointerenter: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
291
|
+
onpointerleave: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
292
|
+
onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
293
|
+
onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
294
|
+
onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
295
|
+
onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
296
|
+
onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent<EventTarget>) => any) | null;
|
|
297
|
+
onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
298
|
+
onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
299
|
+
onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
|
|
300
|
+
onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
301
|
+
onscrollend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
302
|
+
onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null;
|
|
303
|
+
onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
304
|
+
onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
305
|
+
onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
306
|
+
onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
307
|
+
onselectstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
308
|
+
onslotchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
309
|
+
onstalled: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
310
|
+
onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null;
|
|
311
|
+
onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
312
|
+
ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
313
|
+
ontoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
314
|
+
ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
315
|
+
ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
316
|
+
ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
317
|
+
ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
318
|
+
ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
|
319
|
+
ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
|
320
|
+
ontransitionrun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
|
321
|
+
ontransitionstart: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
|
322
|
+
onvolumechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
323
|
+
onwaiting: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
324
|
+
onwebkitanimationend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
325
|
+
onwebkitanimationiteration: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
326
|
+
onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
327
|
+
onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
328
|
+
onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
|
|
329
|
+
autofocus: boolean;
|
|
330
|
+
readonly dataset: DOMStringMap;
|
|
331
|
+
nonce?: string | undefined;
|
|
332
|
+
tabIndex: number;
|
|
333
|
+
blur(): void;
|
|
334
|
+
focus(options?: FocusOptions | undefined): void;
|
|
335
|
+
};
|
|
336
|
+
} & C;
|
|
337
|
+
export default MapiServiceMixin;
|
|
338
|
+
//# sourceMappingURL=mapi-service.d.ts.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { isDevelopment } from '../../titanium/helpers/dev-detection';
|
|
2
|
+
import ApiService from './api-service';
|
|
3
|
+
import { AuthenticatedTokenProvider } from './authenticated-token-provider';
|
|
4
|
+
import { NoAuthenticationTokenProvider } from './no-authentication-token-provider';
|
|
5
|
+
const MapiServiceMixin = (base, options) => class extends base {
|
|
6
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
7
|
+
constructor(...args) {
|
|
8
|
+
super(...args);
|
|
9
|
+
this.mapi = new ApiService(options?.disableAuthentication ? new NoAuthenticationTokenProvider() : new AuthenticatedTokenProvider());
|
|
10
|
+
this.mapi.baseUrl = isDevelopment ? 'https://devmapi.leavitt.com/' : 'https://mapi.leavitt.com/';
|
|
11
|
+
if (options?.defaultLGAppNameHeader) {
|
|
12
|
+
this.mapi.addHeader('X-LGAppName', options?.defaultLGAppNameHeader);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
export default MapiServiceMixin;
|
|
17
|
+
//# sourceMappingURL=mapi-service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mapi-service.js","sourceRoot":"","sources":["mapi-service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,UAAU,MAAM,eAAe,CAAC;AACvC,OAAO,EAAE,0BAA0B,EAAE,MAAM,gCAAgC,CAAC;AAC5E,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AAKnF,MAAM,gBAAgB,GAAG,CACvB,IAAO,EACP,OAAsG,EACtG,EAAE,CACF,KAAM,SAAQ,IAAI;IAGhB,8DAA8D;IAC9D,YAAY,GAAG,IAAW;QACxB,KAAK,CAAC,GAAG,IAAI,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,IAAI,UAAU,CAAC,OAAO,EAAE,qBAAqB,CAAC,CAAC,CAAC,IAAI,6BAA6B,EAAE,CAAC,CAAC,CAAC,IAAI,0BAA0B,EAAE,CAAC,CAAC;QACpI,IAAI,CAAC,IAAI,CAAC,OAAO,GAAG,aAAa,CAAC,CAAC,CAAC,8BAA8B,CAAC,CAAC,CAAC,2BAA2B,CAAC;QACjG,IAAI,OAAO,EAAE,sBAAsB,EAAE;YACnC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,aAAa,EAAE,OAAO,EAAE,sBAAsB,CAAC,CAAC;SACrE;IACH,CAAC;CACF,CAAC;AAEJ,eAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-authentication-token-provider.js","sourceRoot":"","sources":["no-authentication-token-provider.ts"],"names":[],"mappings":"AAEA,MAAM,OAAO,6BAA6B;IACxC,KAAK,CAAC,oBAAoB;QACxB,OAAO,IAAI,CAAC;IACd,CAAC;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"odata-dto.js","sourceRoot":"","sources":["odata-dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,MAAM,OAAO,QAAQ;IACnB,YAAY,SAAS,GAAG,IAAI,cAAc,EAAE;QAC1C,IAAI,CAAC,UAAU,GAAG,SAAS,CAAC;IAC9B,CAAC;CAEF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"odata-model-info.js","sourceRoot":"","sources":["odata-model-info.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,cAAc;IAA3B;QACE,SAAI,GAAkB,IAAI,CAAC;QAC3B,cAAS,GAAkB,IAAI,CAAC;IAClC,CAAC;CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare class ODataResponse<T> {
|
|
2
|
+
#private;
|
|
3
|
+
get odataCount(): number;
|
|
4
|
+
count(): number;
|
|
5
|
+
firstOrDefault(): T | null;
|
|
6
|
+
toList(): Array<T>;
|
|
7
|
+
readonly status: number;
|
|
8
|
+
readonly headers: Headers;
|
|
9
|
+
readonly metadata: Map<string, unknown>;
|
|
10
|
+
readonly entity: T | null;
|
|
11
|
+
readonly entities: T[];
|
|
12
|
+
constructor(response: Response, json: any);
|
|
13
|
+
get containsMultipleEntities(): boolean;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=odata-response.d.ts.map
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
export class ODataResponse {
|
|
2
|
+
static #getMetadata(json) {
|
|
3
|
+
const metadata = new Map();
|
|
4
|
+
Object.keys(json)
|
|
5
|
+
.filter(key => key.indexOf('@odata') === 0)
|
|
6
|
+
.forEach(key => metadata.set(key.replace('@odata.', ''), json[key]));
|
|
7
|
+
return metadata;
|
|
8
|
+
}
|
|
9
|
+
#getEntity(json) {
|
|
10
|
+
if (json.value !== null && typeof json.value !== 'undefined' && !Array.isArray(json.value)) {
|
|
11
|
+
return json.value;
|
|
12
|
+
}
|
|
13
|
+
return json;
|
|
14
|
+
}
|
|
15
|
+
static #getEntities(json) {
|
|
16
|
+
if (Array.isArray(json.value)) {
|
|
17
|
+
return json.value;
|
|
18
|
+
}
|
|
19
|
+
return [];
|
|
20
|
+
}
|
|
21
|
+
get odataCount() {
|
|
22
|
+
if (this.metadata.has('count')) {
|
|
23
|
+
return this.metadata.get('count');
|
|
24
|
+
}
|
|
25
|
+
return 0;
|
|
26
|
+
}
|
|
27
|
+
count() {
|
|
28
|
+
return this.entities.length;
|
|
29
|
+
}
|
|
30
|
+
firstOrDefault() {
|
|
31
|
+
if (this.count() > 0) {
|
|
32
|
+
return this.entities[0];
|
|
33
|
+
}
|
|
34
|
+
return null;
|
|
35
|
+
}
|
|
36
|
+
toList() {
|
|
37
|
+
return this.entities;
|
|
38
|
+
}
|
|
39
|
+
constructor(response, json) {
|
|
40
|
+
this.status = response.status;
|
|
41
|
+
this.headers = response.headers;
|
|
42
|
+
this.metadata = ODataResponse.#getMetadata(json);
|
|
43
|
+
this.entities = ODataResponse.#getEntities(json);
|
|
44
|
+
this.entity = this.entities.length === 0 ? this.#getEntity(json) : null;
|
|
45
|
+
}
|
|
46
|
+
get containsMultipleEntities() {
|
|
47
|
+
return this.entities.length > 0;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
//# sourceMappingURL=odata-response.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"odata-response.js","sourceRoot":"","sources":["odata-response.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,aAAa;IACxB,MAAM,CAAC,YAAY,CAAC,IAAI;QACtB,MAAM,QAAQ,GAAG,IAAI,GAAG,EAAmB,CAAC;QAC5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AQ,CAAC;IACvB,CAAC;IAQD,YAAY,QAAkB,EAAE,IAAI;QAClC,IAAI,CAAC,MAAM,GAAG,QAAQ,CAAC,MAAM,CAAC;QAC9B,IAAI,CAAC,OAAO,GAAG,QAAQ,CAAC,OAAO,CAAC;QAChC,IAAI,CAAC,QAAQ,GAAG,aAAa,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;QACjD,IAAI,CAAC,QAAQ,GAAG,aAAa,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;QACjD,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,QAAQ,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;IAC1E,CAAC;IAED,IAAW,wBAAwB;QACjC,OAAO,IAAI,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC;IAClC,CAAC;CACF"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export const HTTPStatusCodes = new Map();
|
|
2
|
+
HTTPStatusCodes.set(0, 'CORS Error');
|
|
3
|
+
HTTPStatusCodes.set(200, 'OK');
|
|
4
|
+
HTTPStatusCodes.set(201, 'Created');
|
|
5
|
+
HTTPStatusCodes.set(202, 'Accepted');
|
|
6
|
+
HTTPStatusCodes.set(203, 'Non-Authoritative Information');
|
|
7
|
+
HTTPStatusCodes.set(204, 'No Content');
|
|
8
|
+
HTTPStatusCodes.set(205, 'Reset Content');
|
|
9
|
+
HTTPStatusCodes.set(206, 'Partial Content');
|
|
10
|
+
HTTPStatusCodes.set(300, 'Multiple Choices');
|
|
11
|
+
HTTPStatusCodes.set(301, 'Moved Permanently');
|
|
12
|
+
HTTPStatusCodes.set(302, 'Found');
|
|
13
|
+
HTTPStatusCodes.set(303, 'See Other');
|
|
14
|
+
HTTPStatusCodes.set(304, 'Not Modified');
|
|
15
|
+
HTTPStatusCodes.set(305, 'Use Proxy');
|
|
16
|
+
HTTPStatusCodes.set(306, 'Unused');
|
|
17
|
+
HTTPStatusCodes.set(307, 'Temporary Redirect');
|
|
18
|
+
HTTPStatusCodes.set(400, 'Bad Request');
|
|
19
|
+
HTTPStatusCodes.set(401, 'Unauthorized');
|
|
20
|
+
HTTPStatusCodes.set(402, 'Payment Required');
|
|
21
|
+
HTTPStatusCodes.set(403, 'Forbidden');
|
|
22
|
+
HTTPStatusCodes.set(404, 'Not Found');
|
|
23
|
+
HTTPStatusCodes.set(405, 'Method Not Allowed');
|
|
24
|
+
HTTPStatusCodes.set(406, 'Not Acceptable');
|
|
25
|
+
HTTPStatusCodes.set(407, 'Proxy Authentication Required');
|
|
26
|
+
HTTPStatusCodes.set(408, 'Request Timeout');
|
|
27
|
+
HTTPStatusCodes.set(409, 'Conflict');
|
|
28
|
+
HTTPStatusCodes.set(410, 'Gone');
|
|
29
|
+
HTTPStatusCodes.set(411, 'Length Required');
|
|
30
|
+
HTTPStatusCodes.set(412, 'Precondition Required');
|
|
31
|
+
HTTPStatusCodes.set(413, 'Request Entry Too Large');
|
|
32
|
+
HTTPStatusCodes.set(414, 'Request-URI Too Long');
|
|
33
|
+
HTTPStatusCodes.set(415, 'Unsupported Media Type');
|
|
34
|
+
HTTPStatusCodes.set(416, 'Requested Range Not Satisfiable');
|
|
35
|
+
HTTPStatusCodes.set(417, 'Expectation Failed');
|
|
36
|
+
HTTPStatusCodes.set(418, "I'm a teapot");
|
|
37
|
+
HTTPStatusCodes.set(429, 'Too Many Requests');
|
|
38
|
+
HTTPStatusCodes.set(500, 'Internal Server Error');
|
|
39
|
+
HTTPStatusCodes.set(501, 'Not Implemented');
|
|
40
|
+
HTTPStatusCodes.set(502, 'Bad Gateway');
|
|
41
|
+
HTTPStatusCodes.set(503, 'Service Unavailable');
|
|
42
|
+
HTTPStatusCodes.set(504, 'Gateway Timeout');
|
|
43
|
+
HTTPStatusCodes.set(505, 'HTTP Version Not Supported');
|
|
44
|
+
//# sourceMappingURL=status-codes.js.map
|
|
@@ -0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AAC,GAAG,EAAE,iBAAiB,CAAC,CAAC;AAC5C,eAAe,CAAC,GAAG,CAAC,GAAG,EAAE,aAAa,CAAC,CAAC;AACxC,eAAe,CAAC,GAAG,CAAC,GAAG,EAAE,qBAAqB,CAAC,CAAC;AAChD,eAAe,CAAC,GAAG,CAAC,GAAG,EAAE,iBAAiB,CAAC,CAAC;AAC5C,eAAe,CAAC,GAAG,CAAC,GAAG,EAAE,4BAA4B,CAAC,CAAC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { PropertyValues } from 'lit';
|
|
2
|
+
import '@material/web/icon/icon';
|
|
3
|
+
import '@material/web/textfield/outlined-text-field';
|
|
4
|
+
import '@material/web/menu/menu';
|
|
5
|
+
import '@material/web/menu/menu-item';
|
|
6
|
+
import { Company } from '@leavittsoftware/lg-core-typescript/lg.net.core';
|
|
7
|
+
import ApiService from '../api-service/api-service';
|
|
8
|
+
import { TitaniumSingleSelectBase } from '../../titanium/single-select-base/single-select-base';
|
|
9
|
+
/**
|
|
10
|
+
* Single select input that searches Leavitt Group companies
|
|
11
|
+
*
|
|
12
|
+
* @element leavitt-company-select
|
|
13
|
+
*
|
|
14
|
+
* @fires selected - Fired when selection is made or cleared
|
|
15
|
+
*
|
|
16
|
+
*/
|
|
17
|
+
export declare class LeavittCompanySelect extends TitaniumSingleSelectBase<Partial<Company>> {
|
|
18
|
+
#private;
|
|
19
|
+
accessor label: string;
|
|
20
|
+
accessor placeholder: string;
|
|
21
|
+
accessor pathToSelectedText: string;
|
|
22
|
+
accessor companies: Array<Partial<Company>>;
|
|
23
|
+
/**
|
|
24
|
+
* Required
|
|
25
|
+
*/
|
|
26
|
+
accessor apiService: ApiService;
|
|
27
|
+
/**
|
|
28
|
+
* Disables automatic loading of companies on firstUpdated
|
|
29
|
+
*/
|
|
30
|
+
accessor disableAutoLoad: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Odata parts for the Company API call
|
|
33
|
+
*/
|
|
34
|
+
accessor odataParts: Array<string>;
|
|
35
|
+
/**
|
|
36
|
+
* Set the name of the API controller to use
|
|
37
|
+
*/
|
|
38
|
+
accessor apiControllerName: string;
|
|
39
|
+
firstUpdated(): Promise<void>;
|
|
40
|
+
updated(changedProps: PropertyValues<this>): Promise<void>;
|
|
41
|
+
/**
|
|
42
|
+
* Force the list of companies to reload from remote
|
|
43
|
+
*/
|
|
44
|
+
reloadCompanies(): Promise<void>;
|
|
45
|
+
static styles: import("lit").CSSResult[];
|
|
46
|
+
protected onInputChanged(searchTerm: string): void;
|
|
47
|
+
protected renderSelectedLeadingInputSlot(entity: Partial<Company>): import("lit-html").TemplateResult<1>;
|
|
48
|
+
protected renderSuggestion(company: Partial<Company>): import("lit-html").TemplateResult<1>;
|
|
49
|
+
}
|
|
50
|
+
//# sourceMappingURL=company-select.d.ts.map
|