@oiz/stzh-components 2.12.0-beta1 → 2.12.0-beta2
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/dist/cjs/{app-globals-749422d7.js → app-globals-b9d20033.js} +2 -2
- package/dist/cjs/{app-globals-749422d7.js.map → app-globals-b9d20033.js.map} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/stzh-components.cjs.js +2 -2
- package/dist/collection/components/stzh-radiogroup/stzh-radiogroup.js +2 -4
- package/dist/collection/components/stzh-radiogroup/stzh-radiogroup.js.map +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/stzh-radiogroup2.js +1 -1
- package/dist/esm/{app-globals-5f5be02f.js → app-globals-0cf2577d.js} +2 -2
- package/dist/esm/{app-globals-5f5be02f.js.map → app-globals-0cf2577d.js.map} +1 -1
- package/dist/esm/loader.js +2 -2
- package/dist/esm/stzh-components.js +2 -2
- package/dist/esm-es5/{app-globals-5f5be02f.js → app-globals-0cf2577d.js} +2 -2
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/loader.js.map +1 -1
- package/dist/esm-es5/stzh-components.js +1 -1
- package/dist/esm-es5/stzh-components.js.map +1 -1
- package/dist/stzh-components/{p-ebb38041.system.js → p-6233fc4f.system.js} +2 -2
- package/dist/stzh-components/{p-bf7316ab.system.js → p-ae0e530e.system.js} +2 -2
- package/dist/stzh-components/{p-bf7316ab.system.js.map → p-ae0e530e.system.js.map} +1 -1
- package/dist/stzh-components/{p-5e014c0e.js → p-b2b9d87e.js} +2 -2
- package/dist/stzh-components/stzh-components.esm.js +1 -1
- package/dist/stzh-components/stzh-components.esm.js.map +1 -1
- package/dist/stzh-components/stzh-components.js +1 -1
- package/dist/types/components/stzh-accordion/stzh-accordion.d.ts +15 -0
- package/dist/types/components/stzh-accordion-item/stzh-accordion-item.d.ts +73 -0
- package/dist/types/components/stzh-actions/stzh-actions.d.ts +16 -0
- package/dist/types/components/stzh-actionset/stzh-actionset.d.ts +45 -0
- package/dist/types/components/stzh-amount/stzh-amount.d.ts +73 -0
- package/dist/types/components/stzh-appnav/stzh-appnav.d.ts +23 -0
- package/dist/types/components/stzh-appointments/stzh-appointments.d.ts +74 -0
- package/dist/types/components/stzh-audio/stzh-audio.d.ts +58 -0
- package/dist/types/components/stzh-button/stzh-button.d.ts +105 -0
- package/dist/types/components/stzh-buttongroup/stzh-buttongroup.d.ts +7 -0
- package/dist/types/components/stzh-calendar/stzh-calendar.d.ts +88 -0
- package/dist/types/components/stzh-card/stzh-card.d.ts +127 -0
- package/dist/types/components/stzh-card-list/stzh-card-list.d.ts +31 -0
- package/dist/types/components/stzh-carousel/stzh-carousel.d.ts +175 -0
- package/dist/types/components/stzh-chart/stzh-chart.d.ts +15 -0
- package/dist/types/components/stzh-checkbox/stzh-checkbox.d.ts +57 -0
- package/dist/types/components/stzh-checkboxgroup/stzh-checkboxgroup.d.ts +64 -0
- package/dist/types/components/stzh-chip/stzh-chip.d.ts +74 -0
- package/dist/types/components/stzh-chip-select/stzh-chip-select.d.ts +46 -0
- package/dist/types/components/stzh-clamp/stzh-clamp.d.ts +49 -0
- package/dist/types/components/stzh-contact/stzh-contact.d.ts +54 -0
- package/dist/types/components/stzh-datalist/stzh-datalist.d.ts +51 -0
- package/dist/types/components/stzh-datalist-item/stzh-datalist-item.d.ts +62 -0
- package/dist/types/components/stzh-datamessagelist/stzh-datamessagelist.d.ts +6 -0
- package/dist/types/components/stzh-datamessagelist-item/stzh-datamessagelist-item.d.ts +57 -0
- package/dist/types/components/stzh-datatable/stzh-datatable.d.ts +103 -0
- package/dist/types/components/stzh-datepicker/stzh-datepicker.d.ts +101 -0
- package/dist/types/components/stzh-details/stzh-details.d.ts +35 -0
- package/dist/types/components/stzh-dialog/stzh-dialog.d.ts +64 -0
- package/dist/types/components/stzh-dropdown/stzh-dropdown.d.ts +173 -0
- package/dist/types/components/stzh-figure/stzh-figure.d.ts +21 -0
- package/dist/types/components/stzh-flyingfocus/stzh-flyingfocus.d.ts +35 -0
- package/dist/types/components/stzh-footer/stzh-footer.d.ts +27 -0
- package/dist/types/components/stzh-gallery/stzh-gallery.d.ts +54 -0
- package/dist/types/components/stzh-ghettobox/stzh-ghettobox.d.ts +50 -0
- package/dist/types/components/stzh-header/stzh-header.d.ts +68 -0
- package/dist/types/components/stzh-hr/stzh-hr.d.ts +7 -0
- package/dist/types/components/stzh-iframe/stzh-iframe.d.ts +60 -0
- package/dist/types/components/stzh-imagecomparison/stzh-imagecomparison.d.ts +29 -0
- package/dist/types/components/stzh-input/stzh-input.d.ts +104 -0
- package/dist/types/components/stzh-invert/stzh-invert.d.ts +7 -0
- package/dist/types/components/stzh-langnav/stzh-langnav.d.ts +19 -0
- package/dist/types/components/stzh-link/stzh-link.d.ts +88 -0
- package/dist/types/components/stzh-list/stzh-list.d.ts +9 -0
- package/dist/types/components/stzh-list-item/stzh-list-item.d.ts +7 -0
- package/dist/types/components/stzh-loader/stzh-loader.d.ts +13 -0
- package/dist/types/components/stzh-loadingbar/stzh-loadingbar.d.ts +12 -0
- package/dist/types/components/stzh-logo/stzh-logo.d.ts +9 -0
- package/dist/types/components/stzh-menu-item/stzh-menu-item.d.ts +50 -0
- package/dist/types/components/stzh-message/stzh-message.d.ts +37 -0
- package/dist/types/components/stzh-metanav/stzh-metanav.d.ts +11 -0
- package/dist/types/components/stzh-microsite-teaserlist/stzh-microsite-teaserlist.d.ts +33 -0
- package/dist/types/components/stzh-monthyearpicker/stzh-monthyearpicker.d.ts +98 -0
- package/dist/types/components/stzh-olmap/stzh-olmap.d.ts +124 -0
- package/dist/types/components/stzh-overlay/stzh-overlay.d.ts +34 -0
- package/dist/types/components/stzh-page-skiplinks/stzh-page-skiplinks.d.ts +11 -0
- package/dist/types/components/stzh-pagebottom/stzh-pagebottom.d.ts +29 -0
- package/dist/types/components/stzh-pagetitle/stzh-pagetitle.d.ts +15 -0
- package/dist/types/components/stzh-pagetitle-hero/stzh-pagetitle-hero.d.ts +25 -0
- package/dist/types/components/stzh-pagination/stzh-pagination.d.ts +52 -0
- package/dist/types/components/stzh-panorama/stzh-panorama.d.ts +74 -0
- package/dist/types/components/stzh-popover/stzh-popover.d.ts +73 -0
- package/dist/types/components/stzh-print/stzh-print.d.ts +12 -0
- package/dist/types/components/stzh-progressbar/stzh-progressbar.d.ts +59 -0
- package/dist/types/components/stzh-progressbar-item/stzh-progressbar-item.d.ts +34 -0
- package/dist/types/components/stzh-radio/stzh-radio.d.ts +57 -0
- package/dist/types/components/stzh-radiogroup/stzh-radiogroup.d.ts +66 -0
- package/dist/types/components/stzh-ratio/stzh-ratio.d.ts +22 -0
- package/dist/types/components/stzh-readspeaker/stzh-readspeaker.d.ts +18 -0
- package/dist/types/components/stzh-richtext/stzh-richtext.d.ts +22 -0
- package/dist/types/components/stzh-saptcha/stzh-saptcha.d.ts +28 -0
- package/dist/types/components/stzh-scrollup/stzh-scrollup.d.ts +12 -0
- package/dist/types/components/stzh-share/stzh-share.d.ts +21 -0
- package/dist/types/components/stzh-show/stzh-show.d.ts +22 -0
- package/dist/types/components/stzh-sitemap/stzh-sitemap.d.ts +14 -0
- package/dist/types/components/stzh-skiplink/stzh-skiplink.d.ts +38 -0
- package/dist/types/components/stzh-sortable/stzh-sortable.d.ts +59 -0
- package/dist/types/components/stzh-status/stzh-status.d.ts +14 -0
- package/dist/types/components/stzh-sticky/stzh-sticky.d.ts +58 -0
- package/dist/types/components/stzh-table/stzh-table.d.ts +43 -0
- package/dist/types/components/stzh-textandimage/stzh-textandimage.d.ts +14 -0
- package/dist/types/components/stzh-timeline/stzh-timeline.d.ts +23 -0
- package/dist/types/components/stzh-timeline-item/stzh-timeline-item.d.ts +78 -0
- package/dist/types/components/stzh-timepicker/stzh-timepicker.d.ts +62 -0
- package/dist/types/components/stzh-toast/stzh-toast.d.ts +39 -0
- package/dist/types/components/stzh-toastbar/stzh-toastbar.d.ts +41 -0
- package/dist/types/components/stzh-toggle/stzh-toggle.d.ts +59 -0
- package/dist/types/components/stzh-tooltip/stzh-tooltip.d.ts +80 -0
- package/dist/types/components/stzh-upload/stzh-upload.d.ts +236 -0
- package/dist/types/components/stzh-vbz-carousel/stzh-vbz-carousel.d.ts +14 -0
- package/dist/types/components/stzh-vbz-linechip/stzh-vbz-linechip.d.ts +37 -0
- package/dist/types/components/stzh-vbz-majorticker/stzh-vbz-majorticker.d.ts +42 -0
- package/dist/types/components/stzh-vbz-ticker/stzh-vbz-ticker.d.ts +35 -0
- package/dist/types/components/stzh-youtube/stzh-youtube.d.ts +30 -0
- package/dist/types/index.d.ts +900 -0
- package/dist/types/libraries/tom-select/types/constants.d.ts +12 -0
- package/dist/types/libraries/tom-select/types/contrib/highlight.d.ts +13 -0
- package/dist/types/libraries/tom-select/types/contrib/microevent.d.ts +20 -0
- package/dist/types/libraries/tom-select/types/contrib/microplugin.d.ts +71 -0
- package/dist/types/libraries/tom-select/types/defaults.d.ts +51 -0
- package/dist/types/libraries/tom-select/types/getSettings.d.ts +3 -0
- package/dist/types/libraries/tom-select/types/plugins/caret_position/plugin.d.ts +16 -0
- package/dist/types/libraries/tom-select/types/plugins/change_listener/plugin.d.ts +16 -0
- package/dist/types/libraries/tom-select/types/plugins/checkbox_options/plugin.d.ts +16 -0
- package/dist/types/libraries/tom-select/types/plugins/clear_button/plugin.d.ts +17 -0
- package/dist/types/libraries/tom-select/types/plugins/clear_button/types.d.ts +5 -0
- package/dist/types/libraries/tom-select/types/plugins/drag_drop/plugin.d.ts +16 -0
- package/dist/types/libraries/tom-select/types/plugins/dropdown_header/plugin.d.ts +17 -0
- package/dist/types/libraries/tom-select/types/plugins/dropdown_header/types.d.ts +8 -0
- package/dist/types/libraries/tom-select/types/plugins/dropdown_input/plugin.d.ts +16 -0
- package/dist/types/libraries/tom-select/types/plugins/input_autogrow/plugin.d.ts +15 -0
- package/dist/types/libraries/tom-select/types/plugins/no_active_items/plugin.d.ts +15 -0
- package/dist/types/libraries/tom-select/types/plugins/no_backspace_delete/plugin.d.ts +15 -0
- package/dist/types/libraries/tom-select/types/plugins/optgroup_columns/plugin.d.ts +16 -0
- package/dist/types/libraries/tom-select/types/plugins/remove_button/plugin.d.ts +17 -0
- package/dist/types/libraries/tom-select/types/plugins/remove_button/types.d.ts +6 -0
- package/dist/types/libraries/tom-select/types/plugins/restore_on_backspace/plugin.d.ts +21 -0
- package/dist/types/libraries/tom-select/types/plugins/virtual_scroll/plugin.d.ts +16 -0
- package/dist/types/libraries/tom-select/types/tom-select.complete.d.ts +2 -0
- package/dist/types/libraries/tom-select/types/tom-select.d.ts +596 -0
- package/dist/types/libraries/tom-select/types/tom-select.popular.d.ts +2 -0
- package/dist/types/libraries/tom-select/types/types/core.d.ts +48 -0
- package/dist/types/libraries/tom-select/types/types/index.d.ts +2 -0
- package/dist/types/libraries/tom-select/types/types/settings.d.ts +78 -0
- package/dist/types/libraries/tom-select/types/utils.d.ts +76 -0
- package/dist/types/libraries/tom-select/types/vanilla.d.ts +76 -0
- package/dist/types/types/svg.d.ts +4 -0
- package/package.json +1 -1
- package/dist/vscode-data.json +0 -7523
- /package/dist/esm-es5/{app-globals-5f5be02f.js.map → app-globals-0cf2577d.js.map} +0 -0
- /package/dist/stzh-components/{p-ebb38041.system.js.map → p-6233fc4f.system.js.map} +0 -0
- /package/dist/stzh-components/{p-5e014c0e.js.map → p-b2b9d87e.js.map} +0 -0
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { EventEmitter } from "../../stencil-public-runtime";
|
|
2
|
+
import { StzhAccordionItemOpenEvent, StzhAccordionItemOpenedEvent, StzhAccordionItemCloseEvent, StzhAccordionItemClosedEvent } from "../../index";
|
|
3
|
+
/**
|
|
4
|
+
* @slot - Slot for trigger
|
|
5
|
+
* @slot content - Slot for any content
|
|
6
|
+
*/
|
|
7
|
+
export declare class StzhDetails {
|
|
8
|
+
/** Whether fold is open */
|
|
9
|
+
open: boolean;
|
|
10
|
+
element: HTMLStzhDetailsElement;
|
|
11
|
+
/** Open event */
|
|
12
|
+
stzhOpen: EventEmitter<StzhAccordionItemOpenEvent>;
|
|
13
|
+
/** Opened event (after animation) */
|
|
14
|
+
stzhOpened: EventEmitter<StzhAccordionItemOpenedEvent>;
|
|
15
|
+
/** Close event */
|
|
16
|
+
stzhClose: EventEmitter<StzhAccordionItemCloseEvent>;
|
|
17
|
+
/** Closed event (after animation) */
|
|
18
|
+
stzhClosed: EventEmitter<StzhAccordionItemClosedEvent>;
|
|
19
|
+
openWatcher(newValue: boolean): Promise<void>;
|
|
20
|
+
private toggledByMethod;
|
|
21
|
+
private bodyElement;
|
|
22
|
+
private detailsId;
|
|
23
|
+
/** Show accordion item content */
|
|
24
|
+
show(): Promise<void>;
|
|
25
|
+
/** Hide accordion item content */
|
|
26
|
+
hide(): Promise<void>;
|
|
27
|
+
toggle(): Promise<void>;
|
|
28
|
+
private triggerElement;
|
|
29
|
+
private onClickTrigger;
|
|
30
|
+
componentWillLoad(): void;
|
|
31
|
+
componentDidLoad(): void;
|
|
32
|
+
connectedCallback(): void;
|
|
33
|
+
disconnectedCallback(): void;
|
|
34
|
+
render(): any;
|
|
35
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { EventEmitter } from "../../stencil-public-runtime";
|
|
2
|
+
import { StzhDialogOpenEvent, StzhDialogCloseEvent } from "../../index";
|
|
3
|
+
import { StzhDialogLocalizedText } from "./stzh-dialog.localization";
|
|
4
|
+
/**
|
|
5
|
+
* @slot - Slot for any content inside the dialog
|
|
6
|
+
*/
|
|
7
|
+
export declare class StzhDialog {
|
|
8
|
+
/** Translation strings */
|
|
9
|
+
localization: StzhDialogLocalizedText;
|
|
10
|
+
/** Close dialog when pressing ESC */
|
|
11
|
+
closeOnEscapeKey: boolean;
|
|
12
|
+
/** Close dialog when clicking outside of it */
|
|
13
|
+
closeOnBackdropClick: boolean;
|
|
14
|
+
/** Open status */
|
|
15
|
+
open: boolean;
|
|
16
|
+
/** Stay in original position (true) or move to body (false) */
|
|
17
|
+
stay: boolean;
|
|
18
|
+
/** Size */
|
|
19
|
+
size: "default" | "small";
|
|
20
|
+
/** Whether to hide close button */
|
|
21
|
+
hideClose: boolean;
|
|
22
|
+
/** Heading text */
|
|
23
|
+
heading: string;
|
|
24
|
+
/** Accessibility role */
|
|
25
|
+
a11yRole: "dialog" | "alertdialog";
|
|
26
|
+
/** Accessible label for dialog (use if no heading is used) */
|
|
27
|
+
a11yLabel: string;
|
|
28
|
+
/**
|
|
29
|
+
* For Adobe Analytics.
|
|
30
|
+
* Will be rendered as value of `s-object-id` attribute to the close button element.
|
|
31
|
+
* Default value will be taken from translations.
|
|
32
|
+
*/
|
|
33
|
+
closeAnalyticsId: string;
|
|
34
|
+
/** Dialog open event */
|
|
35
|
+
stzhOpen: EventEmitter<StzhDialogOpenEvent>;
|
|
36
|
+
/** Dialog close event */
|
|
37
|
+
stzhClose: EventEmitter<StzhDialogCloseEvent>;
|
|
38
|
+
element: HTMLStzhDialogElement;
|
|
39
|
+
handleOutsideClick(event: MouseEvent): void;
|
|
40
|
+
handleKeydown(event: KeyboardEvent): void;
|
|
41
|
+
handleOpenTriggerClick(event: MouseEvent): void;
|
|
42
|
+
show(): Promise<void>;
|
|
43
|
+
hide(): Promise<void>;
|
|
44
|
+
private observer;
|
|
45
|
+
private id;
|
|
46
|
+
private trap;
|
|
47
|
+
private parentElement;
|
|
48
|
+
private dialogElement;
|
|
49
|
+
private handleDialogClick;
|
|
50
|
+
private handleCloseButtonClick;
|
|
51
|
+
private init;
|
|
52
|
+
private getSiblings;
|
|
53
|
+
private disableSiblings;
|
|
54
|
+
private enableSiblings;
|
|
55
|
+
private dialogShown;
|
|
56
|
+
private dialogHidden;
|
|
57
|
+
componentWillLoad(): Promise<void>;
|
|
58
|
+
componentDidRender(): void;
|
|
59
|
+
componentDidUpdate(): void;
|
|
60
|
+
componentDidLoad(): void;
|
|
61
|
+
connectedCallback(): void;
|
|
62
|
+
disconnectedCallback(): void;
|
|
63
|
+
render(): any;
|
|
64
|
+
}
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
import { EventEmitter } from "../../stencil-public-runtime";
|
|
2
|
+
import { StzhDropdownOption, StzhDropdownChangeEvent, StzhDropdownItemAddEvent, StzhDropdownItemRemoveEvent, StzhDropdownOptionAddEvent, StzhDropdownOptionRemoveEvent, StzhDropdownOpenEvent, StzhDropdowCloseEvent, StzhDropdownFocusEvent, StzhDropdownBlurEvent, StzhDropdowInitEvent } from "../../index";
|
|
3
|
+
import { StzhDropdownLocalizedText } from './stzh-dropdown.localization';
|
|
4
|
+
/**
|
|
5
|
+
* @slot label - Slot for label content
|
|
6
|
+
* @slot description - Slot for description
|
|
7
|
+
* @slot description-long - Slot for long description (in popover)
|
|
8
|
+
* @slot icon - Slot for left icon
|
|
9
|
+
* @slot icon-angle - Slot for angle icon
|
|
10
|
+
* @slot error - Slot for error
|
|
11
|
+
*/
|
|
12
|
+
export declare class StzhDropdown {
|
|
13
|
+
/** Available options */
|
|
14
|
+
options: StzhDropdownOption[] | string;
|
|
15
|
+
private _options;
|
|
16
|
+
/**
|
|
17
|
+
* Option groups that options will be bucketed into.
|
|
18
|
+
* Make sure each object in the array has a property named whatever `optgroupValueField` is set to.
|
|
19
|
+
*/
|
|
20
|
+
optgroups: any[] | string;
|
|
21
|
+
private _optgroups;
|
|
22
|
+
/**
|
|
23
|
+
* Set selected options. Can be array set with JS or as JSON string.
|
|
24
|
+
* To get the current (user) selected options, use `getItems` method.
|
|
25
|
+
*/
|
|
26
|
+
items: string[] | string;
|
|
27
|
+
private _items;
|
|
28
|
+
/**
|
|
29
|
+
* An array of property names to analyze when filtering options.
|
|
30
|
+
* Weights can be given to each field to improve search result:
|
|
31
|
+
* `[{"field":"text","weight":2},{"field":"text2","weight":0.5}]`
|
|
32
|
+
*/
|
|
33
|
+
searchField: string[] | string;
|
|
34
|
+
private _searchField;
|
|
35
|
+
/** Whether multiple items option can be selected */
|
|
36
|
+
multiple: boolean;
|
|
37
|
+
/** Show inline (auto width) */
|
|
38
|
+
inline: boolean;
|
|
39
|
+
/** The max number of options to display in the dropdown. Set to `null` for an unlimited number of options. */
|
|
40
|
+
maxOptions: number | null;
|
|
41
|
+
/** When searching for multiple terms (separated by space), this is the operator used. Can be 'and' or 'or' */
|
|
42
|
+
searchConjunction: "and" | "or";
|
|
43
|
+
/** If true, any options with a "" value will be treated like a normal option. This defaults to false to accommodate the common <select> practice of having the first empty option to act as a placeholder. */
|
|
44
|
+
allowEmptyOption: boolean;
|
|
45
|
+
/** Show the dropdown immediately when the control receives focus. */
|
|
46
|
+
openOnFocus: boolean;
|
|
47
|
+
/** After a selection is made, the dropdown will remain open if in a multi-selection control or will close in a single-selection control. Setting closeAfterSelect to true will force the dropdown to close after selections are made. Setting closeAfterSelect to false will keep the dropdown open after selections are made. */
|
|
48
|
+
closeAfterSelect: boolean | null;
|
|
49
|
+
/** Invoked when new options should be loaded from the server. Called with the current query string and a callback function to call with the results when they are loaded (or nothing when an error arises). */
|
|
50
|
+
load: (query: string, callback: Function) => any[] | null;
|
|
51
|
+
/** Minimum of characters required to execute the `load` function */
|
|
52
|
+
minCharacters: number;
|
|
53
|
+
/** The number of milliseconds to wait before requesting options from the server or null. If null, throttling is disabled. Useful when loading options dynamically while the user types a search / filter expression. */
|
|
54
|
+
loadThrottle: number;
|
|
55
|
+
/** If true, the load function will be called upon control initialization (with an empty search). Alternatively it can be set to 'focus' to call the load function when control receives focus. */
|
|
56
|
+
preload: boolean | "focus";
|
|
57
|
+
/** The name of the property to render as an option / item label (not needed when custom rendering functions are defined). */
|
|
58
|
+
labelField: string;
|
|
59
|
+
/** The name of the property to use as the value when an item is selected. */
|
|
60
|
+
valueField: string;
|
|
61
|
+
/** The name of the property to group items by. */
|
|
62
|
+
optgroupField: string;
|
|
63
|
+
/** The name of the property to render as an option group label (not needed when custom rendering functions are defined). */
|
|
64
|
+
optgroupLabelField: string;
|
|
65
|
+
/** The name of the option group property that serves as its unique identifier. */
|
|
66
|
+
optgroupValueField: string;
|
|
67
|
+
/** If truthy, all optgroups will be displayed in the same order as they were added (by the `$order` property). Otherwise, it will order based on the score of the results in each. */
|
|
68
|
+
lockOptgroupOrder: true;
|
|
69
|
+
/** Name of hidden select element */
|
|
70
|
+
name: string;
|
|
71
|
+
/** Initial open state */
|
|
72
|
+
open: boolean;
|
|
73
|
+
/** Current open state (readonly) */
|
|
74
|
+
isOpen: boolean;
|
|
75
|
+
/** Variant */
|
|
76
|
+
variant: "default" | "plain";
|
|
77
|
+
/** Size variant */
|
|
78
|
+
size: "default" | "small";
|
|
79
|
+
/** Whether the dropdown is disabled */
|
|
80
|
+
disabled: boolean;
|
|
81
|
+
/** Popover placement */
|
|
82
|
+
popoverPlacement: "bottom" | "bottom-end" | "bottom-center" | "top" | "top-end" | "top-center";
|
|
83
|
+
/** Label */
|
|
84
|
+
label: string;
|
|
85
|
+
/** Whether label should be visually hidden. */
|
|
86
|
+
labelHidden: boolean;
|
|
87
|
+
/** Icon (use instead of icon slot) */
|
|
88
|
+
icon: string;
|
|
89
|
+
/** Angle icon */
|
|
90
|
+
iconAngle: string;
|
|
91
|
+
/** Prevent option search */
|
|
92
|
+
noSearch: boolean;
|
|
93
|
+
/** Prevent backspace delete */
|
|
94
|
+
noBackspaceDelete: boolean;
|
|
95
|
+
/** Invalid status */
|
|
96
|
+
invalid: boolean;
|
|
97
|
+
/** Required status */
|
|
98
|
+
required: boolean;
|
|
99
|
+
/** Show text in label depending if field is optional/required */
|
|
100
|
+
showMarker: boolean;
|
|
101
|
+
/** Description message (use description slot as alternative) */
|
|
102
|
+
description: string;
|
|
103
|
+
/** Long description message appearing in a popover (use description-long slot as alternative) */
|
|
104
|
+
descriptionLong: string;
|
|
105
|
+
/** One or multiple error message (use error slot as alternative) */
|
|
106
|
+
error: string | string[];
|
|
107
|
+
private _error;
|
|
108
|
+
/** Translation strings */
|
|
109
|
+
localization: StzhDropdownLocalizedText;
|
|
110
|
+
/** Id for element which describes the input (this will be overwritten if description prop or slot is used, used by stzh-radiogroup) */
|
|
111
|
+
a11yDescribedby: string;
|
|
112
|
+
optionsWatcher(newValue: any[] | string): void;
|
|
113
|
+
itemsWatcher(newValue: string[] | string): void;
|
|
114
|
+
searchFieldWatcher(newValue: string[] | string): void;
|
|
115
|
+
optgroupsWatcher(newValue: any[] | string): void;
|
|
116
|
+
errorWatcher(newValue: string | string[]): void;
|
|
117
|
+
element: HTMLStzhDropdownElement;
|
|
118
|
+
/**
|
|
119
|
+
* Returns the value of the control.
|
|
120
|
+
* If multiple items can be selected,
|
|
121
|
+
* this returns an array, otherwise a string.
|
|
122
|
+
*/
|
|
123
|
+
getValue(): Promise<string | string[]>;
|
|
124
|
+
/** Set new value */
|
|
125
|
+
setValue(newValue: string | string[], silent?: boolean): Promise<void>;
|
|
126
|
+
/** Focus select */
|
|
127
|
+
setFocus(): Promise<void>;
|
|
128
|
+
/** Reset loaded/cached search queries (calls from load property function) */
|
|
129
|
+
resetLoadedSearches(): Promise<void>;
|
|
130
|
+
/** Return loaded/cached search queries (calls from load property function) */
|
|
131
|
+
getLoadedSearches(): Promise<any>;
|
|
132
|
+
/** Return current selected items */
|
|
133
|
+
getItems(): Promise<any>;
|
|
134
|
+
/** Load items by calling load property/function */
|
|
135
|
+
loadItems(query: string): Promise<any>;
|
|
136
|
+
/** Show dropdown popover */
|
|
137
|
+
show(): Promise<any>;
|
|
138
|
+
/** Hide dropdown popover */
|
|
139
|
+
hide(): Promise<any>;
|
|
140
|
+
/** Dropdown change event */
|
|
141
|
+
stzhChange: EventEmitter<StzhDropdownChangeEvent>;
|
|
142
|
+
/** Dropdown item added event */
|
|
143
|
+
stzhItemAdd: EventEmitter<StzhDropdownItemAddEvent>;
|
|
144
|
+
/** Dropdown item removed event */
|
|
145
|
+
stzhItemRemove: EventEmitter<StzhDropdownItemRemoveEvent>;
|
|
146
|
+
/** Dropdown option added event */
|
|
147
|
+
stzhOptionAdd: EventEmitter<StzhDropdownOptionAddEvent>;
|
|
148
|
+
/** Dropdown option removed event */
|
|
149
|
+
stzhOptionRemove: EventEmitter<StzhDropdownOptionRemoveEvent>;
|
|
150
|
+
/** Dropdown open event */
|
|
151
|
+
stzhOpen: EventEmitter<StzhDropdownOpenEvent>;
|
|
152
|
+
/** Dropdown close event */
|
|
153
|
+
stzhClose: EventEmitter<StzhDropdowCloseEvent>;
|
|
154
|
+
/** Dropdown focus event */
|
|
155
|
+
stzhFocus: EventEmitter<StzhDropdownFocusEvent>;
|
|
156
|
+
/** Dropdown blur event */
|
|
157
|
+
stzhBlur: EventEmitter<StzhDropdownBlurEvent>;
|
|
158
|
+
/** Dropdown focus event */
|
|
159
|
+
stzhInit: EventEmitter<StzhDropdowInitEvent>;
|
|
160
|
+
private tomSelect;
|
|
161
|
+
private select;
|
|
162
|
+
private rootElement;
|
|
163
|
+
private dropdownId;
|
|
164
|
+
private focusedByInput;
|
|
165
|
+
private updateFilled;
|
|
166
|
+
private onRootFocus;
|
|
167
|
+
componentWillLoad(): Promise<void>;
|
|
168
|
+
componentShouldUpdate(_newValue: any, _oldValue: any, prop: string): boolean;
|
|
169
|
+
componentWillUpdate(): Promise<void>;
|
|
170
|
+
componentDidRender(): Promise<void>;
|
|
171
|
+
disconnectedCallback(): void;
|
|
172
|
+
render(): any;
|
|
173
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @slot - Slot for e.g. image or video
|
|
3
|
+
* @slot caption - Slot for a caption as alternative for attribute
|
|
4
|
+
* @slot copyright - Slot for a copyright as alternative for attribute
|
|
5
|
+
* @slot counter - Slot for a counter as alternative for attribute
|
|
6
|
+
* @slot heading - Slot for a heading as alternative for attribute
|
|
7
|
+
*/
|
|
8
|
+
export declare class StzhFigure {
|
|
9
|
+
/** Caption */
|
|
10
|
+
caption: string;
|
|
11
|
+
/** Copyright */
|
|
12
|
+
copyright: string;
|
|
13
|
+
/** Counter */
|
|
14
|
+
counter: string;
|
|
15
|
+
/** Heading */
|
|
16
|
+
heading: string;
|
|
17
|
+
/** Whether to stretch slotted content to fullwidth */
|
|
18
|
+
fullwidth: boolean;
|
|
19
|
+
element: HTMLStzhFigureElement;
|
|
20
|
+
render(): any;
|
|
21
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { StzhFocusEvent } from "../../index";
|
|
2
|
+
export declare class StzhFlyingfocus {
|
|
3
|
+
element: HTMLStzhFlyingfocusElement;
|
|
4
|
+
style: {};
|
|
5
|
+
position: {};
|
|
6
|
+
enabled: boolean;
|
|
7
|
+
visible: boolean;
|
|
8
|
+
helper: boolean;
|
|
9
|
+
moving: boolean;
|
|
10
|
+
handleKeydown(e: KeyboardEvent): void;
|
|
11
|
+
handleMousedown(): void;
|
|
12
|
+
handleFocus(e: FocusEvent | CustomEvent<StzhFocusEvent>): void;
|
|
13
|
+
handleBlur(): void;
|
|
14
|
+
handleScrollResize(): void;
|
|
15
|
+
reposition(): Promise<void>;
|
|
16
|
+
private target;
|
|
17
|
+
private container;
|
|
18
|
+
private previousTargetRect;
|
|
19
|
+
private monitorElementPositionInterval;
|
|
20
|
+
private helperFadeTimeout;
|
|
21
|
+
private debounceScroll;
|
|
22
|
+
private repositionElement;
|
|
23
|
+
private handleTransitionEnd;
|
|
24
|
+
private monitorElementPosition;
|
|
25
|
+
/**
|
|
26
|
+
* Get the border radius that the outline element should have:
|
|
27
|
+
* element border radius + outline width + outline offset
|
|
28
|
+
*/
|
|
29
|
+
private getOffsetBorderRadius;
|
|
30
|
+
private resolveTargetOutlineStyle;
|
|
31
|
+
private getFloaterPosition;
|
|
32
|
+
private enableFloatingFocus;
|
|
33
|
+
private disableFloatingFocus;
|
|
34
|
+
render(): any;
|
|
35
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { StzhFooterLocalizedText } from './stzh-footer.localization';
|
|
2
|
+
/**
|
|
3
|
+
* @slot - Slot for content
|
|
4
|
+
* @slot social-link - Slot for social `stzh-link`
|
|
5
|
+
* @slot logo - Slot for logo `img`
|
|
6
|
+
* @slot info - Slot for info content `stzh-link` or `stzh-text` element
|
|
7
|
+
* @slot link - Slot for `stzh-link` elements
|
|
8
|
+
*/
|
|
9
|
+
export declare class StzhFooter {
|
|
10
|
+
/** Translation strings */
|
|
11
|
+
localization: StzhFooterLocalizedText;
|
|
12
|
+
/** Copyright text (will show default copyright string if undefined) */
|
|
13
|
+
copyright: string;
|
|
14
|
+
/** Footer variant */
|
|
15
|
+
variant: "default" | "egov";
|
|
16
|
+
/** Main URL for shortlinks */
|
|
17
|
+
mainUrl: string;
|
|
18
|
+
/** Whether to display separation border */
|
|
19
|
+
withBorder: boolean;
|
|
20
|
+
element: HTMLStzhFooterElement;
|
|
21
|
+
private observer;
|
|
22
|
+
private init;
|
|
23
|
+
componentWillLoad(): Promise<void>;
|
|
24
|
+
connectedCallback(): void;
|
|
25
|
+
disconnectedCallback(): void;
|
|
26
|
+
render(): any;
|
|
27
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { StzhGalleryItem } from "../../index";
|
|
2
|
+
import { StzhGalleryLocalizedText } from "./stzh-gallery.localization";
|
|
3
|
+
/**
|
|
4
|
+
* @slot - Slot for custom content if `variant="custom"` is used, lightbox will query for stzh-figure (this.itemElement) elements
|
|
5
|
+
*/
|
|
6
|
+
export declare class StzhGallery {
|
|
7
|
+
/** Translation strings */
|
|
8
|
+
localization: StzhGalleryLocalizedText;
|
|
9
|
+
/**
|
|
10
|
+
* Images in gallery.
|
|
11
|
+
* Array of objects that must at least include `width`, `height` and `src` attribute:
|
|
12
|
+
* `[{"width": 2522, "height": 1075, "src": "media/images/example.jpg"}, {"width": 2050, "height": 1367, "src": "media/images/example2.jpg"}]`
|
|
13
|
+
*
|
|
14
|
+
* Possible other optional properties are:
|
|
15
|
+
* `alt`: Alternative image description
|
|
16
|
+
* / `srcLightbox`: `src` for img tag inside lightbox (overwrites `src`)
|
|
17
|
+
* / `srcsetLightbox`: `srcset` for img tag inside lightbox
|
|
18
|
+
* / `copyright`: Copyright inside caption
|
|
19
|
+
* / `heading`: Heading inside caption
|
|
20
|
+
* / `headingLightbox`: Alternative heading for lightbox (overwrites `heading`)
|
|
21
|
+
* / `caption`: Caption
|
|
22
|
+
* / `captionLightbox`: Caption for lightbox (overwrites `caption`)
|
|
23
|
+
* / `lightboxHtml`: Alternative html content for lightbox caption
|
|
24
|
+
* / `hideCounter`: Whether to hide counter
|
|
25
|
+
*/
|
|
26
|
+
images: StzhGalleryItem[] | string;
|
|
27
|
+
private _images;
|
|
28
|
+
private _imagesLightboxDataSource;
|
|
29
|
+
/**
|
|
30
|
+
* Variant:
|
|
31
|
+
* `carousel`: every image is displayed inside a carousel (default mode with more than on picture)
|
|
32
|
+
* / `single`: only one image is shown without carousel functionality (other images only reachable by lightbox)
|
|
33
|
+
* / `grid`: every image is displayed inside a grid
|
|
34
|
+
* / `custom`: nothing is rendered, only lightbox will be initialized, `stzh-figure` (`this.itemElement`) can be slotted in
|
|
35
|
+
*/
|
|
36
|
+
variant: "carousel" | "single" | "grid" | "custom";
|
|
37
|
+
/** Preview item that will be looked up and mapped to images in lightbox. */
|
|
38
|
+
itemElement: string;
|
|
39
|
+
element: HTMLStzhGalleryElement;
|
|
40
|
+
openLightbox(index?: number): Promise<void>;
|
|
41
|
+
apploadListener(): void;
|
|
42
|
+
imagesWatcher(newValue: StzhGalleryItem[] | string): void;
|
|
43
|
+
private lightbox;
|
|
44
|
+
private carouselElement;
|
|
45
|
+
private carouselActionsElement;
|
|
46
|
+
private openCurrentCarouselSlide;
|
|
47
|
+
initLightbox(): void;
|
|
48
|
+
componentWillLoad(): Promise<void>;
|
|
49
|
+
componentWillUpdate(): Promise<void>;
|
|
50
|
+
componentDidRender(): void;
|
|
51
|
+
disconnectedCallback(): void;
|
|
52
|
+
private renderFigure;
|
|
53
|
+
render(): any;
|
|
54
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { EventEmitter } from "../../stencil-public-runtime";
|
|
2
|
+
import { StzhGhettoboxOpenEvent, StzhGhettoboxCloseEvent } from "../../index";
|
|
3
|
+
import { StzhGhettoboxLocalizedText } from "./stzh-ghettobox.localization";
|
|
4
|
+
/**
|
|
5
|
+
* @slot - Slot for description content (use instead of description property)
|
|
6
|
+
*/
|
|
7
|
+
export declare class StzhGhettobox {
|
|
8
|
+
/** Overwrite hidden h1 title */
|
|
9
|
+
hiddenTitle: string;
|
|
10
|
+
/** Main title */
|
|
11
|
+
mainTitle: string;
|
|
12
|
+
/** Description */
|
|
13
|
+
description: string;
|
|
14
|
+
/** Hide close button */
|
|
15
|
+
hideClose: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Publish date for ghettobox.
|
|
18
|
+
* If user hasn't closed it yet or closed before this date
|
|
19
|
+
* (cookie check), it will be shown.
|
|
20
|
+
*/
|
|
21
|
+
publishDate: string | Date;
|
|
22
|
+
private _publishDate;
|
|
23
|
+
/**
|
|
24
|
+
* Name of cookie to compare its value with set `publishDate`
|
|
25
|
+
* to determine if ghettobox was already closed before by the user.
|
|
26
|
+
* If empty (""), no check is done and ghettobox
|
|
27
|
+
* will always be shown again after a refresh.
|
|
28
|
+
* Cookie name will be prefixed with `stzh-components-ghettobox-close-time-`.
|
|
29
|
+
*/
|
|
30
|
+
closeTimeKey: string;
|
|
31
|
+
/** Translation strings */
|
|
32
|
+
localization: StzhGhettoboxLocalizedText;
|
|
33
|
+
/** Ghettobox open event */
|
|
34
|
+
stzhOpen: EventEmitter<StzhGhettoboxOpenEvent>;
|
|
35
|
+
/** Ghettobox close event */
|
|
36
|
+
stzhClose: EventEmitter<StzhGhettoboxCloseEvent>;
|
|
37
|
+
element: HTMLStzhGhettoboxElement;
|
|
38
|
+
/** Open state */
|
|
39
|
+
open: boolean;
|
|
40
|
+
publishDateWatcher(newValue: string | Date): void;
|
|
41
|
+
show(): Promise<void>;
|
|
42
|
+
hide(setCloseKey?: boolean): Promise<void>;
|
|
43
|
+
private observer;
|
|
44
|
+
private onCloseButtonClick;
|
|
45
|
+
private init;
|
|
46
|
+
componentWillLoad(): Promise<void>;
|
|
47
|
+
connectedCallback(): void;
|
|
48
|
+
disconnectedCallback(): void;
|
|
49
|
+
render(): any;
|
|
50
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @slot logo - Slot for brand logo
|
|
3
|
+
* @slot nav - Slot for `stzh-metanav` element
|
|
4
|
+
* @slot login - Slot for login button
|
|
5
|
+
* @slot appnav - Slot for `stzh-appnav` element
|
|
6
|
+
* @slot langnav - Slot for `stzh-langnav` element
|
|
7
|
+
*/
|
|
8
|
+
export declare class StzhHeader {
|
|
9
|
+
/** Portal link (for logo) */
|
|
10
|
+
href: string;
|
|
11
|
+
/** Whether grey metabar should stay (on top) on mobile */
|
|
12
|
+
metabarStay: boolean;
|
|
13
|
+
/** Whether sticky behaviour should be disabled */
|
|
14
|
+
stickyDisabled: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Prevent creating a appnav placeholder element
|
|
17
|
+
* with the size of appnav inside header parent element.
|
|
18
|
+
* This prevents the fixed appnav to overlap
|
|
19
|
+
* content at the end on mikro breakpoint,
|
|
20
|
+
* but could lead to problems with certain layouts.
|
|
21
|
+
*/
|
|
22
|
+
preventAppnavPlaceholder: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* For Adobe Analytics.
|
|
25
|
+
* Will be rendered as value of `s-object-id` attribute to the logo link element.
|
|
26
|
+
* Default value is "Header Logo".
|
|
27
|
+
*/
|
|
28
|
+
logoAnalyticsId: string;
|
|
29
|
+
hideLogo: boolean;
|
|
30
|
+
paddingTop: number;
|
|
31
|
+
metabarTransform: string;
|
|
32
|
+
sticky: boolean;
|
|
33
|
+
stickyClosing: boolean;
|
|
34
|
+
stickyMetabar: boolean;
|
|
35
|
+
stickyMetabarEnd: boolean;
|
|
36
|
+
element: HTMLStzhHeaderElement;
|
|
37
|
+
/** Update position / sticky state of header */
|
|
38
|
+
updatePosition(): Promise<void>;
|
|
39
|
+
scrollListener(): void;
|
|
40
|
+
private scrollTop;
|
|
41
|
+
private lastScrollTop;
|
|
42
|
+
private headerOverlap;
|
|
43
|
+
private scrollingUp;
|
|
44
|
+
private belowStayStickyPoint;
|
|
45
|
+
private belowStartStickyPoint;
|
|
46
|
+
private headerTop;
|
|
47
|
+
private headerHeight;
|
|
48
|
+
private innerHeight;
|
|
49
|
+
private mainHeight;
|
|
50
|
+
private metabarHeight;
|
|
51
|
+
private logobarHeight;
|
|
52
|
+
private appnavHeight;
|
|
53
|
+
private isSmall;
|
|
54
|
+
private isSmallheader;
|
|
55
|
+
private debounceResize;
|
|
56
|
+
private resizeObserver;
|
|
57
|
+
private innerElement;
|
|
58
|
+
private mainElement;
|
|
59
|
+
private logobarElement;
|
|
60
|
+
private metabarElement;
|
|
61
|
+
private appnavElement;
|
|
62
|
+
private appnavPlaceholderElement;
|
|
63
|
+
private handleResize;
|
|
64
|
+
private updateMetabarPosition;
|
|
65
|
+
connectedCallback(): void;
|
|
66
|
+
disconnectedCallback(): void;
|
|
67
|
+
render(): any;
|
|
68
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { EventEmitter } from "../../stencil-public-runtime";
|
|
2
|
+
import { StzhIframeView, StzhIframePreviewSkipEvent, StzhIframeViewChangeEvent } from "../../index";
|
|
3
|
+
import { StzhIframeLocalizedText } from "./stzh-iframe.localization";
|
|
4
|
+
/**
|
|
5
|
+
* @slot preview-logo - Slot for logo
|
|
6
|
+
* @slot preview-image - Slot for preview image
|
|
7
|
+
* @slot cookiewall-text - Slot for cookiewall text
|
|
8
|
+
*/
|
|
9
|
+
export declare class StzhIframe {
|
|
10
|
+
/** Translation strings */
|
|
11
|
+
localization: StzhIframeLocalizedText;
|
|
12
|
+
/** `src` of iframe */
|
|
13
|
+
src: string;
|
|
14
|
+
private _src;
|
|
15
|
+
/**
|
|
16
|
+
* Cookie name (if not empty, the user will be shown a cookie wall)
|
|
17
|
+
* Will be prefixed with `stzh-components-iframe-confirm-`.
|
|
18
|
+
*/
|
|
19
|
+
cookie: string;
|
|
20
|
+
/**
|
|
21
|
+
* Number of days the cookie is valid for.
|
|
22
|
+
* If omitted or set to null, the cookie expires when browser is closed.
|
|
23
|
+
* Maximum is on year (365 days, is default).
|
|
24
|
+
*/
|
|
25
|
+
cookieExpires: number | null;
|
|
26
|
+
/** Confirm button icon */
|
|
27
|
+
cookieConfirmIcon: string;
|
|
28
|
+
/** Confirm button label */
|
|
29
|
+
cookieConfirmLabel: string;
|
|
30
|
+
/** Confirm text (use instead of `cookiewall-text` slot) */
|
|
31
|
+
cookieConfirmText: string;
|
|
32
|
+
/** Preview label */
|
|
33
|
+
previewLabel: string;
|
|
34
|
+
/** Preview icon */
|
|
35
|
+
previewIcon: string;
|
|
36
|
+
/** Whether preview should be skipped, if user has passed the cookiewall before */
|
|
37
|
+
skipPreviewIfCookieAccepted: boolean;
|
|
38
|
+
/** Whether preview should always be skipped */
|
|
39
|
+
skipPreview: boolean;
|
|
40
|
+
element: HTMLStzhIframeElement;
|
|
41
|
+
view: StzhIframeView;
|
|
42
|
+
/** Preview skip (only gets executed if it goes directly to iframe and not cookiewall) */
|
|
43
|
+
stzhPreviewSkip: EventEmitter<StzhIframePreviewSkipEvent>;
|
|
44
|
+
/** View change */
|
|
45
|
+
stzhViewChange: EventEmitter<StzhIframeViewChangeEvent>;
|
|
46
|
+
srcWatcher(newValue: string): void;
|
|
47
|
+
viewWatcher(newValue: StzhIframeView): void;
|
|
48
|
+
private iframeId;
|
|
49
|
+
private iframeElement;
|
|
50
|
+
private previewButtonElement;
|
|
51
|
+
private confirmButtonElement;
|
|
52
|
+
private updateFocus;
|
|
53
|
+
private handleIframeLoad;
|
|
54
|
+
private handleCookiewallCloseClick;
|
|
55
|
+
private handleCookiewallConfirmClick;
|
|
56
|
+
private handlePreviewClick;
|
|
57
|
+
componentWillLoad(): Promise<void>;
|
|
58
|
+
componentDidRender(): Promise<void>;
|
|
59
|
+
render(): any;
|
|
60
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
import { StzhImagecomparisonChangeEvent } from "../../index";
|
|
3
|
+
import { StzhImagecomparisonLocalizedText } from "./stzh-imagecomparison.localization";
|
|
4
|
+
/**
|
|
5
|
+
* @slot image-before - Slot for a before image
|
|
6
|
+
* @slot image-after - Slot for a after image
|
|
7
|
+
* @slot hint-left - Slot for a left image hint as alternative for attribute
|
|
8
|
+
* @slot hint-right - Slot for a right image hint as alternative for attribute
|
|
9
|
+
*/
|
|
10
|
+
export declare class StzhImageComparison {
|
|
11
|
+
/** Translation strings. */
|
|
12
|
+
localization: StzhImagecomparisonLocalizedText;
|
|
13
|
+
/** Hint left */
|
|
14
|
+
hintLeft: string;
|
|
15
|
+
/** Hint right */
|
|
16
|
+
hintRight: string;
|
|
17
|
+
/** Width of image before */
|
|
18
|
+
value: number;
|
|
19
|
+
/** Overwrite default label */
|
|
20
|
+
label: string;
|
|
21
|
+
/** Id for element which describes the label */
|
|
22
|
+
a11yDescribedby: string;
|
|
23
|
+
element: HTMLStzhImagecomparisonElement;
|
|
24
|
+
stzhChange: EventEmitter<StzhImagecomparisonChangeEvent>;
|
|
25
|
+
private inputElement;
|
|
26
|
+
private handleInput;
|
|
27
|
+
componentWillLoad(): Promise<void>;
|
|
28
|
+
render(): any;
|
|
29
|
+
}
|