export type StzhLocaleFormats = { datetime?: { format: string | StzhDateFormat; parse: string | StzhDateParse; }; datetimeLong?: { format: string | StzhDateFormat; parse: string | StzhDateParse; }; datetimeInput?: { format: string | StzhDateFormat; parse: string | StzhDateParse; }; date?: { format: string | StzhDateFormat; parse: string | StzhDateParse; }; dateLong?: { format: string | StzhDateFormat; parse: string | StzhDateParse; }; dateInput?: { format: string | StzhDateFormat; parse: string | StzhDateParse; }; time?: { format: string | StzhDateFormat; parse: string | StzhDateParse; }; timeInput?: { format: string | StzhDateFormat; parse: string | StzhDateParse; }; }; type MonthsNames = [ string, string, string, string, string, string, string, string, string, string, string, string ]; type DayNames = [string, string, string, string, string, string, string]; export type StzhLocaleGlobals = { dateRange: string; timeRange: string; externalLinkLabel: string; downloadLinkLabel: string; requiredFieldMarker: string; requiredFieldText: string; optionalFieldMarker: string; optionalFieldText: string; invalidFieldText: string; clearButtonLabel: string; moreInfoButtonLabel: string; scrollUpLabel: string; passwordToggleButtonShowLabel: string; passwordToggleButtonHideLabel: string; dayNames: DayNames; dayNamesShort: DayNames; monthNames: MonthsNames; monthNamesShort: MonthsNames; }; export interface StzhLocaleComponent { $locale: "de" | "fr" | "it" | "en"; $formats: StzhLocaleFormats; $formatsIso: StzhLocaleFormats; $formatsLegacy: StzhLocaleFormats; $globals: StzhLocaleGlobals; } export declare function tc(translation: string, count: number): string; export type StzhDateFormat = (date: Date, type?: string) => string; export type StzhDateParse = (input: string, type?: string) => Date | undefined; export interface StzhLocaleAdapter { format: StzhDateFormat; parse: StzhDateParse; formatSpan: (date: Date | string, date2: Date | string, type: string) => string; parseSpan: (string: string, type: string) => [Date, Date, string]; } export type WindowStzhComponents = { version: string; supportedLocales: string[]; defaultLocale: string; translations: null | StzhLocaleComponent; translationsLoading: Promise; pathMedia: string; pathTranslations: string; pathVendors: string; cacheTranslations: boolean; formats: StzhLocaleFormats; fixAutofocus: boolean; fixHashfocus: boolean; utils: { getLocale: (element: HTMLElement) => string; fetchTranslations: (host: HTMLElement, component: string) => Promise; format: (date: Date, type: string) => string; parse: (string: string, type: string) => Date; formatSpan: (date: Date | string, date2: Date | string, type: string) => string; parseSpan: (string: string, type: string) => [Date, Date, string]; createFormatParseAdapter: (formats: StzhLocaleFormats, globals: StzhLocaleGlobals) => StzhLocaleAdapter; }; }; declare global { interface Window { stzhComponents: WindowStzhComponents; stzhReadspeakerHasGlobalBodyObserver: boolean; pannellum: any; Dropzone: any; proj4: any; readpage: any; ReadSpeaker: any; rsConf: any; rspkr: any; } } export type StzhSortableUpdateEvent = { component: "stzh-sortable"; data: string[]; item: HTMLElement; newIndex: number; oldIndex: number; }; export type StzhSortableDisableEvent = { component: "stzh-sortable"; disabled: boolean; }; export type PanoramaScene = { sceneId: string; imageSrc: string; imageTitle: string; imageAuthor?: string; imageType?: "equirectangular" | "cubemap" | "multires"; caption?: string; copyright?: string; pitch?: number; yaw?: number; hfov?: number; hotspots: PanoramaSceneHotSpot[]; }; export type PanoramaScenesLibrary = { [sceneKey: string]: { title?: string; author?: string; panorama: string; type?: "equirectangular" | "cubemap" | "multires"; pitch?: number; yaw?: number; hfov?: number; hotSpots: PanoramaSceneHotSpot[]; }; }; export type PanoramaSceneHotSpot = { pitch: number; yaw: number; type: string; text: string; url?: string; id?: string; sceneId?: string; targetPitch?: number; targetYaw?: number; cssClass?: string; createTooltipFunc?: Function; createTooltipArgs?: any; }; export type StzhPanoramaLoadEvent = { component: "stzh-panorama"; }; export type StzhPanoramaChangeEvent = { component: "stzh-panorama"; value: { pitch: number; yaw: number; hfov: number; }; }; export type StzhPanoramaFullscreenChangeEvent = { component: "stzh-panorama"; value: boolean; }; export type StzhPanoramaSceneChangeEvent = { component: "stzh-panorama"; value: string; }; export type StzhPanoramaZoomChangeEvent = { component: "stzh-panorama"; value: number; }; export type StzhIframeView = "iframe" | "cookiewall" | "preview"; export type StzhIframeViewChangeEvent = { component: "stzh-iframe"; value: StzhIframeView; }; export type StzhIframePreviewSkipEvent = { component: "stzh-iframe"; }; export type OlmapLayer = { title?: string; thumbnailUrl: string; options: { url: string; layer: string; matrixSet: string; origin: number[]; extent: number[]; }; }; export type StzhOlmapFeatureWithPopover = { id: string; title?: string; text?: string; imageUri?: string; href?: string; data?: { icon: string; text: string; }[]; }; export type StzhOlmapInitializedEvent = { component: "stzh-olmap"; }; export type StzhOlmapPostRenderEvent = { component: "stzh-olmap"; }; export type StzhOlmapMoveStartEvent = { component: "stzh-olmap"; }; export type StzhOlmapMoveEndEvent = { component: "stzh-olmap"; }; export type StzhOlmapMovePanZoomEvent = { component: "stzh-olmap"; }; export type StzhStickyStuckTopEvent = { component: "stzh-sticky"; sticky: boolean; }; export type StzhStickyStuckBottomEvent = { component: "stzh-sticky"; sticky: boolean; }; export type StzhDatatableCellData = { value: string | number | Date; isHeader?: boolean; align?: "left" | "right" | "center"; valign?: "auto" | "middle" | "bottom" | "top"; colspan?: number; rowspan?: number; id?: string; }; export type StzhDatatableRowData = { [key: string]: StzhDatatableCellData; }; export type StzhDatatableInputRowData = { [key: string]: StzhDatatableCellData | string | number; }; export type StzhDatatableColumnData = { key: string; text?: string; align?: "left" | "right" | "center"; valign?: "auto" | "middle" | "bottom" | "top"; sort?: boolean | { type?: "numerical" | "text" | "date"; field?: string; }; fixed?: "left" | "right"; isHeader?: boolean; colspan?: number; rowspan?: number; hideColumnHeading?: boolean; analyticsId?: string; style?: { [key: string]: string; }; }; export type StzhDatatableRowClickEvent = { component: "stzh-datatable"; row: any; originalEvent: MouseEvent; }; export type StzhDatatableCellClickEvent = { component: "stzh-datatable"; row: any; column: any; cellIndex: number; rowIndex: number; originalEvent: MouseEvent; }; export type StzhDatatableHeadingCellClickEvent = { component: "stzh-datatable"; column: any; index: number; originalEvent: MouseEvent; }; export type StzhDatatableSortClickEvent = { component: "stzh-datatable"; column: any; originalEvent: MouseEvent; }; export type StzhDatatableSortByChangeEvent = { component: "stzh-datatable"; value: string; oldValue: string; }; export type StzhDatatableSortDirectionChangeEvent = { component: "stzh-datatable"; value: "asc" | "desc"; oldValue: "asc" | "desc"; }; export type StzhArchivelistItem = { label: string; labelClamp?: any; href: string; dateline?: string; description?: string; descriptionClamp?: any; }; export type StzhArchivelistItemClickEvent = { component: "stzh-archivelist"; item: StzhArchivelistItem; originalEvent: MouseEvent; }; export type StzhAnchornavItem = { label: string; href?: string; icon?: string; }; export type StzhAnchornavItemClickEvent = { component: "stzh-anchornav"; item: StzhAnchornavItem; originalEvent: MouseEvent; }; export type StzhTopnewsItem = { subtitle?: string; label: string; href?: string; target?: string; isHighlighted?: boolean; }; export type StzhMostsearchedItem = { label: string; href: string; target?: string; }; export type StzhVbzQuicklink = { label: string; href: string; }; export type StzhStatusType = "default" | "success" | "warning" | "error" | "info"; export type StzhBadgeType = "default" | "success" | "warning" | "error" | "info"; export type StzhActionsetItem = { id: string; label?: string; icon?: string; iconPosition?: "left" | "right"; iconOnly?: boolean; badge?: string; badgeEmpty?: boolean; badgeType?: StzhBadgeType; variant?: StzhButtonVariant; size?: StzhButtonSize; badgePosition?: "icon" | "button"; tooltipContent?: string; disabled?: boolean; }; export type StzhActionsetItemClickEvent = { component: "stzh-actionset"; action: StzhActionsetItem; originalEvent: MouseEvent; }; export type StzhAudioPlayEvent = { component: "stzh-audio"; }; export type StzhAudioPlayingEvent = { component: "stzh-audio"; }; export type StzhAudioPauseEvent = { component: "stzh-audio"; }; export type StzhAudioReplayEvent = { component: "stzh-audio"; }; export type StzhAudioEndEvent = { component: "stzh-audio"; }; export type StzhAudioEndedEvent = { component: "stzh-audio"; }; export type StzhAudioErrorEvent = { component: "stzh-audio"; originalEvent: ErrorEvent; }; export type ShareService = "facebook" | "twitter" | "linkedin" | "xing" | "mail"; export type StzhEditorLink = { label: string; href?: string; icon?: string; rel?: string; target?: string; }; export type StzhHeaderMenuItem = { label: string; href?: string; items?: StzhHeaderMenuItem[]; id?: string; }; export type StzhHeaderMetanavItem = { label: string; /** The label displayed on mobile screens, when stay=true (the long `label` is visually hidden on mobile). Alternatively use an icon. */ labelShort?: string; /** Visually hide the label text (keeps it accessible for screen readers). Use it for icon-only items (metanav and burger menu). */ labelHidden?: boolean; /** * Keeps the item visible in the metanav on mobile screens. * Note: to be visibly readable on mobile metanav, also provide `labelShort` or `icon` * (otherwise the label is visually hidden and the item appears empty). * When true, the item won't be displayed in the burger menu unless `stayAndShowInMobileMenu` is also true. */ stay?: boolean; /** Keep the item on mobile screens in BOTH places — metanav AND burger menu. */ stayAndShowInMobileMenu?: boolean; /** Used for menu-item and popover */ variant?: "default" | "secondary"; /** Used for menu-item and popover */ size?: "default" | "large"; important?: boolean; importantSubmenu?: boolean; badgeEmpty?: boolean; badgeType?: StzhBadgeType; badge?: string; /** * Icon shown next to the label (or as the only visible affordance when the label is hidden). * In the metanav on mobile, an icon also prevents the item from appearing “empty” when `labelShort` is missing. */ icon?: string; /** Optional “open state” icon shown when the item is expanded. */ iconOpen?: string; href?: string; target?: string; id?: string; items?: StzhHeaderMetanavItemChild[]; itemButton?: StzhHeaderMetanavItemButton; itemButtonExtra?: StzhHeaderMetanavItemButton; /** CSS flexbox order for positioning in the metanav. Has no effect in the burger menu on mobile screens. */ cssOrder?: boolean; }; export type StzhHeaderMetanavItemChild = { label: string; href?: string; target?: string; id?: string; icon?: string; counter?: number; badge?: string; badgeType?: StzhBadgeType; }; export type StzhHeaderMetanavItemButton = { label: string; href?: string; target?: string; size?: StzhButtonSize; id?: string; }; export type StzhHeaderMetanavItemClickEvent = { component: "stzh-header"; item: StzhHeaderMetanavItem; originalEvent: MouseEvent; }; export type StzhHeaderMetanavItemChildClickEvent = { component: "stzh-header"; itemChild: StzhHeaderMetanavItemChild; originalEvent: MouseEvent; }; export type StzhHeaderMetanavItemButtonClickEvent = { component: "stzh-header"; itemButton: StzhHeaderMetanavItemButton; originalEvent: MouseEvent; }; export type StzhHeaderMenuItemClickEvent = { component: "stzh-header"; item: StzhHeaderMenuItem; originalEvent: MouseEvent; }; export type StzhHeaderLanguageChangeEvent = { component: "stzh-header"; value: string; }; export type StzhHeaderSearchChangeEvent = { component: "stzh-header"; originalEvent: InputEvent | MouseEvent; value: string; }; export type StzhHeaderSearchChangedEvent = { component: "stzh-header"; originalEvent: InputEvent | MouseEvent; value: string; }; export type StzhHomepageSearchSearchChangeEvent = { component: "stzh-homepage-search"; originalEvent: InputEvent | MouseEvent; value: string; }; export type StzhHomepageSearchSearchChangedEvent = { component: "stzh-homepage-search"; originalEvent: InputEvent | MouseEvent; value: string; }; export type StzhAppNavItem = { text: string; href: string; id?: string; badge?: string; badgeType?: StzhBadgeType; icon?: string; active?: boolean; a11yCurrent?: string; }; export type StzhAppNavItemClickEvent = { component: "stzh-app-nav"; item: StzhAppNavItem; originalEvent: MouseEvent; }; export type StzhPiPagetitleMenuItem = { label: string; href?: string; active?: boolean; items?: StzhPiPagetitleMenuItem[]; id?: string; }; export type StzhPiPagetitleMenuSubheading = { label: string; href?: string; active?: boolean; }; export type StzhSearchOverlayCloseClickEvent = { component: "stzh-search"; originalEvent: MouseEvent; }; export interface StzhSearchResultsEvent { /** Value of the search term param (q / query), empty if none */ searchTerm: string; /** Total number of matches reported by the API */ totalCount: number; /** Number of results currently rendered */ resultCount: number; /** Selected chip values by param name, e.g. { type: ["news"] } */ chips: { [name: string]: string[]; }; /** Selected values of all other filters by param name, e.g. { thema: ["alter", "familien"] } */ filters: { [name: string]: string[]; }; availableChips: { [name: string]: string[]; }; } /** Detail of the stzhSearchResultClick event */ export interface StzhSearchResultClickEvent { /** Heading of the result as delivered by the API (may contain markup) */ heading: string; href: string; } export type StzhGeoRefDataOverlayCloseClickEvent = { component: "stzh-geo-ref-data"; originalEvent: MouseEvent; }; export type StzhGeoRefDataFocusEvent = { component: "stzh-geo-ref-data"; originalEvent: FocusEvent; }; export type StzhGeoRefDataBlurEvent = { component: "stzh-geo-ref-data"; originalEvent: FocusEvent; }; export type StzhBreadcrumbItem = { label: string; href: string; }; export type StzhBreadcrumbItemClickEvent = { component: "stzh-breadcrumb"; item: StzhBreadcrumbItem; originalEvent: MouseEvent; }; export type StzhCardHeaderAction = { id: string; label?: string; icon?: string; badge?: string; badgeEmpty?: boolean; badgeType?: StzhBadgeType; }; export type StzhCardSubtitleClickEvent = { component: "stzh-card"; originalEvent: MouseEvent; }; export type StzhCardCollapseEvent = { component: "stzh-card"; collapsed: boolean; }; export type StzhCardClickEvent = { component: "stzh-card"; originalEvent: MouseEvent; href?: string; }; export type StzhCardSelectionChangeEvent = { component: "stzh-card"; originalEvent: InputEvent; value: string; checked: boolean; }; export type StzhCardStarClickEvent = { component: "stzh-card"; starred: boolean; originalEvent: MouseEvent; }; export type StzhCardHeaderActionClickEvent = { component: "stzh-card"; action: StzhCardHeaderAction; originalEvent: MouseEvent; }; export type StzhCardNavigationClickEvent = { component: "stzh-card-navigation"; originalEvent: MouseEvent; href: string; }; export type StzhPiCardNavigationClickEvent = { component: "stzh-pi-content-navigation"; originalEvent: MouseEvent; href: string; }; export interface StzhChartLibs { d3: unknown; sszvis: unknown; topojson: unknown; } export type StzhChartCreateFn = (element: HTMLElement, libs: StzhChartLibs) => void; export type StzhPiTeaserClickEvent = { component: "stzh-pi-teaser"; originalEvent: MouseEvent; href: string; }; export type StzhPiTeaserLayoutItemClickEvent = { component: "stzh-pi-teaser-layout-item"; originalEvent: MouseEvent; href: string; }; export type StzhCardSuperteaserClickEvent = { component: "stzh-card-superteaser"; originalEvent: MouseEvent; href: string; }; export type StzhCardSearchresultClickEvent = { component: "stzh-card-searchresult"; originalEvent: MouseEvent; href: string; }; export type StzhSearchResult = { html?: string; href?: string; heading?: string; dateline?: string; description?: string; image?: string; picture?: { image: StzhPictureImageSource; imageSmall?: StzhPictureImageSource; }; imagePosition?: "default" | "right"; tag?: string; topic?: string; service?: string; serviceColor?: string; serviceBackgroundColor?: string; meta?: string[]; breadcrumbItems?: StzhBreadcrumbItem[]; eventDateStart?: string; eventDateEnd?: string; eventLocation?: string; download?: string; downloadHeading?: string; downloadMeta?: string[]; }; export type StzhSearchChipsResult = { label: string; value: string; amount?: number; options?: { text: string; value: string; }[]; }; export type StzhMicrositeTeaserlistTag = { id: string; name: string; }; export type StzhMicrositeTeaserlistItem = { title?: string; description?: string; image?: string; link: string; tags: string[]; teaserid: string; }; export type StzhCardlistSelectionChangeEvent = { component: "stzh-cardlist"; value: string | string[]; }; export type StzhCardlistCollapseAllEvent = { component: "stzh-cardlist"; allCollapsed: boolean; }; export type StzhCalendarChangeEvent = { component: "stzh-calendar"; valueAsDate: Date; value: string; }; export type StzhDatepickerChangeEvent = { component: "stzh-datepicker"; value: string; valueAsDate: Date | undefined; isValid: boolean; }; export type StzhPaginationChangeEvent = { component: "stzh-pagination"; page: number; }; export type StzhTimepickerChangeEvent = { component: "stzh-timepicker"; value: string; }; export type StzhMonthyearpickerChangeEvent = { component: "stzh-monthyearpicker"; value: string; valueMonth: string; valueYear: string; }; export type StzhAmountChangeEvent = { component: "stzh-amount"; value: string; }; export type StzhAppointmentsChangeEvent = { component: "stzh-appointments"; value: string; }; export type StzhAppointment = { value: string; start: Date | string; end: Date | string; place?: string; caption?: string; disabled?: boolean; }; export type StzhSkiplinkFocusEvent = { component: "stzh-skiplink"; originalEvent: FocusEvent; }; export type StzhSkiplinkBlurEvent = { component: "stzh-skiplink"; originalEvent: FocusEvent; }; export type StzhCheckboxChangeEvent = { component: "stzh-checkbox"; originalEvent: InputEvent | Event; value: string; checked: boolean; indeterminate: boolean; }; export type StzhCheckboxFocusEvent = { component: "stzh-checkbox"; originalEvent: FocusEvent; }; export type StzhCheckboxBlurEvent = { component: "stzh-checkbox"; originalEvent: FocusEvent; }; export type StzhCheckboxgroupChangeEvent = { component: "stzh-checkboxgroup"; value: string[]; }; export type StzhRatingChangeEvent = { component: "stzh-rating"; originalEvent: KeyboardEvent | MouseEvent; value: number; }; export type StzhRatingFocusEvent = { component: "stzh-rating"; originalEvent: FocusEvent; }; export type StzhRatingBlurEvent = { component: "stzh-rating"; originalEvent: FocusEvent; }; export type StzhToggleChangeEvent = { component: "stzh-toggle"; originalEvent: InputEvent; value: string; checked: boolean; }; export type StzhToggleFocusEvent = { component: "stzh-toggle"; originalEvent: FocusEvent; }; export type StzhToggleBlurEvent = { component: "stzh-toggle"; originalEvent: FocusEvent; }; export type StzhButtonVariant = "default" | "secondary" | "tertiary" | "tertiary-plain"; export type StzhButtonSize = "default" | "small" | "tiny"; export type StzhButtonFocusEvent = { component: "stzh-button"; originalEvent: FocusEvent; }; export type StzhButtonBlurEvent = { component: "stzh-button"; originalEvent: FocusEvent; }; export type StzhButtonClickEvent = { component: "stzh-button"; originalEvent: MouseEvent; href: string; }; export type StzhLinkSize = "default" | "small" | "inherit"; export type StzhLinkFocusEvent = { component: "stzh-link"; originalEvent: FocusEvent; }; export type StzhLinkBlurEvent = { component: "stzh-link"; originalEvent: FocusEvent; }; export type StzhLinkClickEvent = { component: "stzh-link"; originalEvent: MouseEvent; href: string; }; export type StzhMenuVariant = "default" | "secondary"; export type StzhMenuSize = "default" | "large"; export type StzhMenuItemFocusEvent = { component: "stzh-menu-item"; originalEvent: FocusEvent; }; export type StzhMenuItemBlurEvent = { component: "stzh-menu-item"; originalEvent: FocusEvent; }; export type StzhMenuItemClickEvent = { component: "stzh-menu-item"; originalEvent: MouseEvent; href: string; }; export type StzhCarouselSlideStartEvent = { component: "stzh-carousel"; index: number; }; export type StzhCarouselSlidePassedEvent = { component: "stzh-carousel"; index: number; }; export type StzhCarouselSlideEndEvent = { component: "stzh-carousel"; index: number; }; export type StzhChipselectItem = { label: string; value: string; disabled?: boolean; variant?: StzhChipVariant; type?: StzhChipType; inverted?: boolean; counter?: string; icon?: string; size?: StzhChipSize; }; export type StzhChipselectChangeEvent = { component: "stzh-chipselect"; value: string[] | string; }; export type StzhGalleryItem = { width: number; height: number; src: string; srcLightbox?: string; srcsetLightbox?: string; alt?: string; copyright?: string; heading?: string; headingLightbox?: string; caption?: string; captionLightbox?: string; lightboxHtml?: string; hideCounter?: boolean; }; export type StzhDatalistItemEntry = { value: string; leadingIcon?: string; label?: string; a11yLabel?: string; meta?: string; icon?: string; actionIcon?: string; actionHref?: string; actionLabel?: string; actionTooltip?: string; actionRel?: string; actionTarget?: string; actionDownload?: string; statusLabel?: string; statusType?: StzhStatusType; href?: string; rel?: string; target?: string; items?: StzhDatalistItemEntry[]; }; export type StzhDatalistVariant = "default" | "table"; export type StzhDatalistDirection = "vertical" | "horizontal"; export type StzhDatalistVariantChangeEvent = { component: "stzh-datalist"; value: StzhDatalistVariant; }; export type StzhDatalistBigLabelChangeEvent = { component: "stzh-datalist"; value: boolean; }; export type StzhDatalistDirectionChangeEvent = { component: "stzh-datalist"; value: "vertical" | "horizontal"; }; export type StzhDatalistItemActionClickEvent = { component: "stzh-datalist-item"; originalEvent: MouseEvent; }; export type StzhDatalistItemClickEvent = { component: "stzh-datalist-item"; originalEvent: MouseEvent; href: string; }; export type StzhDatamessagelistItemEntryMeta = { label: string; value: string; }; export type StzhDatamessagelistItemEntryAction = { id: string | number; icon: string; label: string; badge?: string; }; export type StzhDatamessagelistItemEntryTag = { icon: string; label: string; type?: StzhChipType; inverted?: boolean; }; export type StzhDatamessagelistItemEntryLoadingStatus = { percent: number; label: string; type: "default" | "success" | "warning" | "error"; }; export type StzhDatamessagelistItemClickEvent = { component: "stzh-datamessagelist-item"; originalEvent: MouseEvent; href: string; }; export type StzhDatamessagelistItemActionClickEvent = { component: "stzh-datamessagelist-item"; action: StzhDatamessagelistItemEntryAction; originalEvent: MouseEvent; }; export type StzhCtaFocusEvent = { component: "stzh-cta"; originalEvent: FocusEvent; }; export type StzhCtaBlurEvent = { component: "stzh-cta"; originalEvent: FocusEvent; }; export type StzhCtaClickEvent = { component: "stzh-cta"; originalEvent: MouseEvent; href: string; }; export type StzhTagSize = "default" | "large"; export type StzhTagType = "default" | "secondary"; export type StzhTagClickEvent = { component: "stzh-tag"; originalEvent: MouseEvent; href: string; }; export type StzhTagFocusEvent = { component: "stzh-tag"; originalEvent: FocusEvent; }; export type StzhTagBlurEvent = { component: "stzh-tag"; originalEvent: FocusEvent; }; export type StzhChipVariant = "tag" | "filter" | "input"; export type StzhChipSize = "default" | "small" | "large"; export type StzhChipType = "default" | "success" | "warning" | "error" | "info"; export type StzhChipClickEvent = { component: "stzh-chip"; originalEvent: MouseEvent; href: string; }; export type StzhChipRemoveEvent = { component: "stzh-chip"; originalEvent: MouseEvent; }; export type StzhChipFocusEvent = { component: "stzh-chip"; originalEvent: FocusEvent; }; export type StzhChipBlurEvent = { component: "stzh-chip"; originalEvent: FocusEvent; }; export type StzhVbzMajortickerDisturbance = { id: string; head: string; text: string; startDate: Date; endDate: Date; altStart: string; altEnd: string; infoUrl?: VbzTickerInfoUrl; }; export type StzhVbzMajortickerDisturbanceFetchedEvent = { component: "stzh-vbz-majorticker"; disturbance: StzhVbzMajortickerDisturbance | null; }; export type VbzTickerInfoUrl = { name: string; url: string; }; export type VbzTickerDisturbance = { id: string; head: string; startDate: Date; endDate: Date; altStart: string; altEnd: string; baseType?: string; infoUrl?: VbzTickerInfoUrl; category: typeof VBZ.DISTURBANCE_INFORMATION | typeof VBZ.DISTURBANCE_CONSTRUCTION | typeof VBZ.DISTURBANCE_NORMAL | typeof VBZ.DISTURBANCE_EVENT | typeof VBZ.DISTURBANCE_BUS; }; export type VbzTickerLineIcon = { foregroundColor: { r: number; g: number; b: number; hex: string; }; backgroundColor: { r: number; g: number; b: number; hex: string; }; borderColor: { r: number; g: number; b: number; hex: string; }; }; export type VbzTickerLine = { line: VBZ.Lines; name: string; disturbances: VbzTickerDisturbance[]; icon?: VbzTickerLineIcon; alert: boolean; category: "2" | "16" | "32" | "64" | "128" | "256" | "512"; }; export type StzhVbzLinechipLine = { color: string; background: string; comment?: string; }; export type StzhVbzLinechipFocusEvent = { component: "stzh-vbz-linechip"; originalEvent: FocusEvent; }; export type StzhVbzLinechipBlurEvent = { component: "stzh-vbz-linechip"; originalEvent: FocusEvent; }; export type StzhClampClampEvent = { component: "stzh-clamp"; clamped: boolean; }; export type StzhClampExpandEvent = { component: "stzh-clamp"; expanded: boolean; }; export type StzhImagecomparisonChangeEvent = { component: "stzh-imagecomparison"; originalEvent: InputEvent; value: number; }; export type StzhDialogOpenEvent = { component: "stzh-dialog"; }; export type StzhDialogCloseEvent = { component: "stzh-dialog"; }; export type ContactEmail = { label: string; text: string; href?: string; analyticsId?: string; }; export type ContactWebsite = { label: string; text: string; href: string; rel: string; }; export type ContactNumber = { type: "tel" | "fax"; label: string; number: string; analyticsId?: string; }; export type StzhContactAvailabilityItem = { weekday: string; hours: string[]; }; export type StzhEventinfoItemInput = { calendarUrl?: string; calendarLabel?: string; start: string | Date; end: string | Date; }; export type StzhEventinfoItem = { calendarUrl?: string; calendarLabel?: string; start: Date | undefined; end: Date | undefined; }; export type StzhEventinfoMonth = { name: string; events: StzhEventinfoItem[]; }; export type StzhOverlayOpenEvent = { component: "stzh-overlay"; }; export type StzhOverlayCloseEvent = { component: "stzh-overlay"; }; export type StzhBannerOpenEvent = { component: "stzh-banner"; }; export type StzhBannerCloseEvent = { component: "stzh-banner"; }; export type StzhMessageOpenEvent = { component: "stzh-message"; }; export type StzhMessageCloseEvent = { component: "stzh-message"; }; export type StzhToastbarInitialToast = { label: string; type?: StzhToastType; link?: HTMLStzhLinkElement | { href: string; label: string; }; cookie?: string; cookieExpires?: number; }; export type StzhDisturberOpenEvent = { component: "stzh-disturber"; }; export type StzhDisturberCloseEvent = { component: "stzh-disturber"; }; export type StzhDisturberOpenedEvent = { component: "stzh-disturber"; }; export type StzhDisturberClosedEvent = { component: "stzh-disturber"; }; export type StzhToastType = "info" | "success" | "warning" | "error"; export type StzhToastOpenEvent = { component: "stzh-toast"; }; export type StzhToastCloseEvent = { component: "stzh-toast"; }; export type StzhToastOpenedEvent = { component: "stzh-toast"; }; export type StzhToastClosedEvent = { component: "stzh-toast"; }; export type StzhGhettoboxOpenEvent = { component: "stzh-ghettobox"; }; export type StzhGhettoboxCloseEvent = { component: "stzh-ghettobox"; }; export type StzhInputChangeEvent = { component: "stzh-input"; originalEvent: InputEvent | MouseEvent; value: string; }; export type StzhInputChangedEvent = { component: "stzh-input"; originalEvent: InputEvent | MouseEvent; value: string; }; export type StzhInputFocusEvent = { component: "stzh-input"; originalEvent: FocusEvent; }; export type StzhInputBlurEvent = { component: "stzh-input"; originalEvent: FocusEvent; }; export type StzhPopoverOpenEvent = { component: "stzh-popover"; }; export type StzhPopoverOpenedEvent = { component: "stzh-popover"; }; export type StzhPopoverCloseEvent = { component: "stzh-popover"; }; export type StzhPopoverClosedEvent = { component: "stzh-popover"; }; export type StzhTimelineItemOpenEvent = { component: "stzh-timeline-item"; }; export type StzhTimelineItemOpenedEvent = { component: "stzh-timeline-item"; }; export type StzhTimelineItemCloseEvent = { component: "stzh-timeline-item"; }; export type StzhTimelineItemClosedEvent = { component: "stzh-timeline-item"; }; export type StzhTimelineItemFocusEvent = { component: "stzh-timeline-item"; originalEvent: FocusEvent; }; export type StzhTimelineItemBlurEvent = { component: "stzh-timeline-item"; originalEvent: FocusEvent; }; export type StzhAccordionVariant = "default" | "title" | "table"; export type StzhAccordionItemOpenEvent = { component: "stzh-accordion-item"; }; export type StzhAccordionItemOpenedEvent = { component: "stzh-accordion-item"; }; export type StzhAccordionItemCloseEvent = { component: "stzh-accordion-item"; }; export type StzhAccordionItemClosedEvent = { component: "stzh-accordion-item"; }; export type StzhAccordionItemFocusEvent = { component: "stzh-accordion-item"; originalEvent: FocusEvent; }; export type StzhAccordionItemBlurEvent = { component: "stzh-accordion-item"; originalEvent: FocusEvent; }; export type StzhPiMenuOpenEvent = { component: "stzh-pi-menu"; }; export type StzhPiMenuOpenedEvent = { component: "stzh-pi-menu"; }; export type StzhPiMenuCloseEvent = { component: "stzh-pi-menu"; }; export type StzhPiMenuClosedEvent = { component: "stzh-pi-menu"; }; export type StzhPiMenuItemClickEvent = { component: "stzh-pi-menu"; originalEvent: MouseEvent; }; export type StzhTooltipOpenEvent = { component: "stzh-tooltip"; }; export type StzhTooltipOpenedEvent = { component: "stzh-tooltip"; }; export type StzhTooltipCloseEvent = { component: "stzh-tooltip"; }; export type StzhTooltipClosedEvent = { component: "stzh-tooltip"; }; export type StzhRadioChangeEvent = { component: "stzh-radio"; originalEvent: InputEvent; value: string | boolean; checked: boolean; }; export type StzhRadioFocusEvent = { component: "stzh-radio"; originalEvent: FocusEvent; }; export type StzhRadioBlurEvent = { component: "stzh-radio"; originalEvent: FocusEvent; }; export type StzhRadioValue = string | boolean; export type StzhDaterangeRanges = "today" | "tomorrow" | "next7days"; export type StzhDropdownSize = "default" | "small" | "tiny" | StzhChipSize; export type StzhDropdownOption = { text: string; value: string | number; disabled?: boolean; }; export type StzhDropdownChangeEvent = { component: "stzh-dropdown"; value: string | number | (string | number)[]; }; export type StzhDropdownItemAddEvent = { component: "stzh-dropdown"; value: string | number; }; export type StzhDropdownItemRemoveEvent = { component: "stzh-dropdown"; value: string | number; }; export type StzhDropdownOptionAddEvent = { component: "stzh-dropdown"; value: string | number; }; export type StzhDropdownOptionRemoveEvent = { component: "stzh-dropdown"; value: string | number; }; export type StzhDropdownOpenEvent = { component: "stzh-dropdown"; }; export type StzhDropdowCloseEvent = { component: "stzh-dropdown"; }; export type StzhDropdownFocusEvent = { component: "stzh-dropdown"; originalEvent: { target: Element; }; }; export type StzhDropdownBlurEvent = { component: "stzh-dropdown"; }; export type StzhDropdowInitEvent = { component: "stzh-dropdown"; }; /** Stepper */ export type StzhStepperDataItem = { label: string; icon?: string; disabled?: boolean; clickDisabled?: boolean; incomplete?: boolean; analyticsId?: string; }; export type StzhStepperItemClickEvent = { component: "stzh-stepper-item"; originalEvent: MouseEvent; index: number; }; export type StzhStepperItemDottedClickEvent = { component: "stzh-stepper-item"; originalEvent: MouseEvent; index: number; }; export type StzhSaptchaChangeEvent = { component: "stzh-saptcha"; originalEvent: CustomEvent; value: string; }; export type StzhUploadFilesItem = { name: string; size: number; [key: string]: any; }; export type StzhUploadFile = File & { xhr: XMLHttpRequest; status: string; upload: any; accepted: boolean; previewElement: HTMLElement; uuid: string; _id: number; }; export type StzhUploadFileAddedEvent = { component: "stzh-upload"; file: StzhUploadFile; }; export type StzhUploadFilesAddedEvent = { component: "stzh-upload"; files: StzhUploadFile[]; }; export type StzhUploadFileRemoveEvent = { component: "stzh-upload"; file: StzhUploadFile; }; export type StzhUploadFileRemovedEvent = { component: "stzh-upload"; file: StzhUploadFile; force: boolean; }; export type StzhUploadSendingEvent = { component: "stzh-upload"; file: StzhUploadFile; xhr: XMLHttpRequest; formData: FormData; }; export type StzhUploadSendingMultipleEvent = { component: "stzh-upload"; files: StzhUploadFile[]; xhr: XMLHttpRequest; formData: FormData; }; export type StzhUploadProcessingEvent = { component: "stzh-upload"; file: StzhUploadFile; }; export type StzhUploadProcessingMultipleEvent = { component: "stzh-upload"; files: StzhUploadFile[]; }; export type StzhUploadProgressEvent = { component: "stzh-upload"; file: StzhUploadFile; progress: number; bytesSent: number; }; export type StzhUploadProgressTotalEvent = { component: "stzh-upload"; totalUploadProgress: number; totalBytes: number; totalBytesSent: number; }; export type StzhUploadErrorEvent = { component: "stzh-upload"; file: StzhUploadFile; message: string; xhr: XMLHttpRequest; }; export type StzhUploadErrorMultipleEvent = { component: "stzh-upload"; files: StzhUploadFile[]; message: string; xhr: XMLHttpRequest; }; export type StzhUploadSuccessEvent = { component: "stzh-upload"; file: StzhUploadFile; responseText: string; event: ProgressEvent; }; export type StzhUploadSuccessMultipleEvent = { component: "stzh-upload"; files: StzhUploadFile[]; responseText: string; event: ProgressEvent; }; export type StzhUploadCanceledEvent = { component: "stzh-upload"; file: StzhUploadFile; }; export type StzhUploadCanceledMultipleEvent = { component: "stzh-upload"; files: StzhUploadFile[]; }; export type StzhUploadCompleteEvent = { component: "stzh-upload"; file: StzhUploadFile; }; export type StzhUploadCompleteMultipleEvent = { component: "stzh-upload"; files: StzhUploadFile[]; }; export type StzhTabgroupChangeEvent = { component: "stzh-tabgroup"; tabLabel: string; tabId: string; analyticsId?: string; }; export type StzhTabgroupItemClickEvent = { component: "stzh-tabgroup-item"; originalEvent: MouseEvent; }; export type StzhTabgroupItemFocusEvent = { component: "stzh-tabgroup-item"; originalEvent: FocusEvent; }; export type StzhTabgroupItemBlurEvent = { component: "stzh-tabgroup-item"; originalEvent: FocusEvent; }; export type StzhTabgroupSize = "default" | "small" | "tiny"; export type StzhFocusEvent = StzhAccordionItemFocusEvent | StzhButtonFocusEvent | StzhCheckboxFocusEvent | StzhChipFocusEvent | StzhDropdownFocusEvent | StzhInputFocusEvent | StzhLinkFocusEvent | StzhMenuItemFocusEvent | StzhRadioFocusEvent | StzhToggleFocusEvent | StzhVbzLinechipFocusEvent | StzhSkiplinkFocusEvent; export type StzhAvailableTag = { label: string; value: string; }; export type StzhPoiGeoRefData = { poiid: string; category: string; street: string; zip: string; zvv: string; ou: string; poiname: string; poinamezus: string; title: string; description: string; image: string; path: string; date: string; tags: string[]; data: { text: string; icon: string; }[]; }; export type StzhMapGeoRefData = { lat: string; lon: string; poiid: string; }; export type StzhCombinedGeoRefData = StzhPoiGeoRefData & StzhMapGeoRefData; export declare enum StzhSocialmediastreamItemActionVariant { likes = "likes", comments = "comments", shares = "shares" } export type StzhSocialmediastreamItemData = { image?: string; link: string; date: string; account: { title: string; handle: string; url: string; }; channel: "facebook" | "instagram" | "x" | "twitter" | "youtube"; text: string; actions: { title: string; url: string; variant: StzhSocialmediastreamItemActionVariant; count: number; }[]; }; export interface StzhPictureDensitySource { src: string; density?: number; } export interface StzhPictureWidthSource { src: string; width?: number; } export interface StzhPictureImageSource { src?: string; densities?: Array; widths?: Array; size?: string; ratio?: Layout.Ratio; type?: string; } export type StzhCalendarDateDisabledPredicate = (date: Date) => boolean; export declare namespace Layout { type Ratio = "5:7" | "1:1" | "5:4" | "4:3" | "3:2" | "16:9" | "2:1" | "21:9"; type Justify = "start" | "end" | "center" | "between" | "around" | "evenly"; type Items = "start" | "end" | "center" | "baseline" | "stretch"; type JustifySelf = "auto" | Justify; type AlignSelf = "auto" | Items; } export declare namespace Space { type Sizes = "xxxsmall" | "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge" | "xxxlarge" | "xxxxlarge" | "big" | "xbig" | "huge" | "xhuge" | "none" | "default" | "inherit"; type Curves = "tiny" | "small" | "regular" | "medium" | "large" | "big" | "huge"; } export declare namespace Font { type Fonts = "light" | "regular" | "medium" | "heavy" | "default"; type Sizes = "pico" | "nano" | "micro" | "milli" | "centi" | "deci" | "regular" | "deca" | "hecto" | "kilo" | "mega" | "giga" | "hero"; type Curves = "p1" | "p2" | "lead" | "caption" | "h4" | "h3" | "h2" | "h1" | "hero" | "h1home" | "default" | "none"; } export declare namespace VBZ { const BASE_TYPE_GLOBAL = "GLOBAL"; const CHANNEL_TICKER = "ticker"; const CHANNEL_INFO_URL_FILTER = "stadt-zuerich.ch/vbz"; const DISTURBANCE_GLOBAL = "__global__"; const DISTURBANCE_INFORMATION = "0"; const DISTURBANCE_CONSTRUCTION = "1"; const DISTURBANCE_NORMAL = "2"; const DISTURBANCE_EVENT = "4"; const DISTURBANCE_BUS = "5"; type Lines = "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "13" | "14" | "15" | "16" | "17" | "19" | "20" | "21" | "23" | "24" | "25" | "29" | "31" | "32" | "33" | "34" | "35" | "36" | "37" | "38" | "39" | "40" | "42" | "43" | "44" | "45" | "46" | "50" | "51" | "54" | "61" | "62" | "63" | "64" | "66" | "67" | "69" | "70" | "72" | "73" | "75" | "76" | "77" | "78" | "79" | "80" | "83" | "89" | "91" | "94" | "95" | "99" | "151" | "152" | "153" | "156" | "161" | "162" | "163" | "165" | "184" | "185" | "200" | "201" | "215" | "220" | "235" | "236" | "245" | "301" | "302" | "303" | "304" | "305" | "306" | "307" | "308" | "309" | "311" | "314" | "315" | "317" | "321" | "323" | "325" | "350" | "430" | "444" | "445" | "701" | "702" | "703" | "704" | "706" | "705" | "720" | "721" | "725" | "726" | "727" | "742" | "743" | "744" | "745" | "747" | "748" | "751" | "752" | "753" | "754" | "759" | "760" | "765" | "768" | "781" | "786" | "787" | "910" | "912" | "916" | "917" | "918" | "919" | "E" | "N" | "N1" | "N2" | "N4" | "N5" | "N6" | "N7" | "N8" | "N9" | "N10" | "N11" | "N12" | "N13" | "N14" | "N15" | "N16" | "N17" | "N18" | "N19" | "N30" | "N31" | "N32" | "N33" | "N34" | "N36" | "N45" | "N46" | "N72" | "N75" | "N78" | "N79" | "N91" | "SN1" | "SN4" | "SN5" | "SN6" | "SN7" | "SN8" | "SN9" | "S2" | "S3" | "S4" | "S5" | "S6" | "S7" | "S8" | "S9" | "S10" | "S11" | "S14" | "S15" | "S16" | "S18" | "S19" | "S20" | "S21" | "S23" | "S24" | "S25"; } export type PiTeaser = { type: "teaser"; href: string; dateline?: string; heading: string; date?: string; imageSrc?: string; lead?: string; }; export type EmptyTeaser = { type: "empty-teaser"; }; export * from "./components";