@siemens/live-preview 51.6.0 → 51.8.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/assets/angular/package.json +12 -12
- package/component-loader.cjs +2 -2
- package/elements/package.json +4 -0
- package/fesm2022/siemens-live-preview-elements.mjs +21 -0
- package/fesm2022/siemens-live-preview-elements.mjs.map +1 -0
- package/fesm2022/siemens-live-preview-si-example-editor.component-DSxapfeC.mjs +28 -0
- package/fesm2022/siemens-live-preview-si-example-editor.component-DSxapfeC.mjs.map +1 -0
- package/fesm2022/siemens-live-preview-si-example-overview.component-Co4tIhL5.mjs +107 -0
- package/fesm2022/siemens-live-preview-si-example-overview.component-Co4tIhL5.mjs.map +1 -0
- package/fesm2022/siemens-live-preview-si-live-preview.component-BkiFwumB.mjs +1123 -0
- package/fesm2022/siemens-live-preview-si-live-preview.component-BkiFwumB.mjs.map +1 -0
- package/fesm2022/siemens-live-preview-siemens-live-preview-BU--ZYJz.mjs +1579 -0
- package/fesm2022/siemens-live-preview-siemens-live-preview-BU--ZYJz.mjs.map +1 -0
- package/fesm2022/siemens-live-preview.mjs +1 -2536
- package/fesm2022/siemens-live-preview.mjs.map +1 -1
- package/package.json +12 -2
- package/styles/_variables.scss +4 -3
- package/types/siemens-live-preview-elements.d.ts +11 -0
- package/types/siemens-live-preview.d.ts +133 -37
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"siemens-live-preview-siemens-live-preview-BU--ZYJz.mjs","sources":["../../../../projects/live-preview/components/si-dummy.component.ts","../../../../projects/live-preview/interfaces/live-preview-config.ts","../../../../projects/live-preview/helpers/utils.ts","../../../../projects/live-preview/interfaces/si-live-preview.api.ts","../../../../projects/live-preview/services/live-preview-state.service.ts","../../../../projects/live-preview/services/example-route-controller.service.ts","../../../../projects/live-preview/components/si-example-header/si-example-header.component.ts","../../../../projects/live-preview/helpers/log-event.ts","../../../../projects/live-preview/services/landscape-support.service.ts","../../../../projects/live-preview/components/si-live-preview-renderer/si-live-preview-runtime.component.ts","../../../../projects/live-preview/components/si-live-preview-renderer/si-default-live-preview-runtime.component.ts","../../../../projects/live-preview/components/si-live-preview-renderer/si-live-preview-renderer.component.ts","../../../../projects/live-preview/components/si-example-viewer/si-example-viewer.component.ts","../../../../projects/live-preview/components/si-example-viewer/si-example-viewer.component.html","../../../../projects/live-preview/components/si-live-preview-renderer/webcomponent/si-live-webcomponent.service.ts","../../../../projects/live-preview/components/si-live-preview-wrapper/si-live-preview-wrapper.component.ts","../../../../projects/live-preview/components/si-live-preview-wrapper/si-live-preview-wrapper.component.html","../../../../projects/live-preview/live-preview-routes.ts","../../../../projects/live-preview/components/si-live-preview-renderer/example-location-strategy.ts","../../../../projects/live-preview/components/si-live-preview-renderer/si-live-preview-application-runtime.component.ts","../../../../projects/live-preview/components/si-live-preview-renderer/si-default-live-preview-application-runtime.component.ts","../../../../projects/live-preview/live-preview.provider.ts","../../../../projects/live-preview/services/live-preview-url.service.ts","../../../../projects/live-preview/components/si-docs-component/si-docs-component.component.ts","../../../../projects/live-preview/components/si-docs-component/si-docs-component.component.html","../../../../projects/live-preview/components/stackblitz/stackblitz.provider.ts","../../../../projects/live-preview/public-api.module.ts","../../../../projects/live-preview/public-api.ts","../../../../projects/live-preview/siemens-live-preview.ts"],"sourcesContent":["/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport { ChangeDetectionStrategy, ChangeDetectorRef, Component, inject } from '@angular/core';\nimport { ActivatedRoute } from '@angular/router';\n\n@Component({\n selector: 'si-dummy',\n template: `<div class=\"ion-padding\"> Content with path '{{ path }}'</div>`,\n changeDetection: ChangeDetectionStrategy.Eager\n})\nexport class SiDummyComponent {\n path = '';\n activeRoute = inject(ActivatedRoute);\n private cdRef = inject(ChangeDetectorRef);\n\n constructor() {\n this.activeRoute.url.subscribe(url => {\n this.path = url.toString();\n this.cdRef.markForCheck();\n });\n }\n}\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport { InjectionToken, Type } from '@angular/core';\nimport { Route } from '@angular/router';\n\nimport type { SiLivePreviewRuntimeComponent } from '../components/si-live-preview-renderer/si-live-preview-runtime.component';\n\nexport interface SiLivePreviewConfig {\n errorHandler?: (err: any) => void;\n /**\n * Optional shell for rendered examples. The shell receives the standalone example through\n * `component` and is responsible for rendering it, for example by composing the default shell.\n */\n runtimeComponent?: Type<SiLivePreviewRuntimeComponent>;\n /**\n * Routes used by rendered examples that do not provide routes through `provideExampleRoutes`.\n */\n defaultRoutes?: Route[];\n componentLoader: {\n load: (name: string) => Promise<any>;\n list: string[];\n webcomponentsList: string[];\n };\n examplesBaseUrl: string;\n ticketBaseUrl: string;\n themeSwitcher?: boolean;\n rtlSwitcher?: boolean;\n landscapeToggle?: boolean;\n webcomponents?: boolean;\n rootFontSizes?: number[];\n}\n\nexport interface SiLivePreviewInternals {\n isMobile: boolean;\n titleBase: string;\n}\n\nexport const SI_LIVE_PREVIEW_CONFIG = new InjectionToken<SiLivePreviewConfig>(\n 'SI_LIVE_PREVIEW_CONFIG'\n);\nexport const SI_LIVE_PREVIEW_INTERNALS = new InjectionToken<SiLivePreviewInternals>(\n 'SI_LIVE_PREVIEW_INTERNALS'\n);\nexport const SI_LIVE_PREVIEW_EXAMPLE_ROUTES = new InjectionToken<Route[]>(\n 'SI_LIVE_PREVIEW_EXAMPLE_ROUTES'\n);\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport type { Provider } from '@angular/core';\nimport type { Route } from '@angular/router';\n\nimport { SI_LIVE_PREVIEW_EXAMPLE_ROUTES } from '../interfaces/live-preview-config';\n\nexport const setDeviceMode = (mode: string): void => {\n const htmlTag = document.documentElement;\n htmlTag.setAttribute('mode', mode);\n htmlTag.classList.add(mode);\n htmlTag.classList.remove(mode === 'ios' ? 'md' : 'ios');\n};\n\nexport const setDirectionRtl = (rtl: boolean): void => {\n document.documentElement.setAttribute('dir', rtl ? 'rtl' : 'ltr');\n};\n\nexport const setRootFontSize = (rfs: number | 'initial'): void => {\n const htmlTag = document.documentElement;\n if (!rfs) {\n htmlTag.style.removeProperty('font-size');\n } else {\n htmlTag.style.setProperty('font-size', rfs === 'initial' ? rfs : rfs + 'px');\n }\n};\n\nexport const provideExampleRoutes = (routes: Route[]): Provider => {\n return {\n provide: SI_LIVE_PREVIEW_EXAMPLE_ROUTES,\n useValue: routes\n };\n};\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport { Observable } from 'rxjs';\n\nexport type ThemeType = 'dark' | 'light';\n\nexport abstract class SiLivePreviewThemeApi {\n abstract setThemeFromPreviewer(mode: ThemeType): void;\n abstract getApplicationThemeObservable(): Observable<ThemeType>;\n}\n\nexport abstract class SiLivePreviewLocaleApi {\n abstract setLocale(locale: string): void;\n abstract getLocale(): Observable<string>;\n abstract availableLocales(): string[];\n}\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport { computed, effect, inject, Service, signal } from '@angular/core';\nimport { ActivatedRoute, Router, UrlSegment } from '@angular/router';\n\nimport type { LivePreviewViewport } from '../components/si-live-preview-iframe/live-preview-mode';\nimport { ThemeType } from '../interfaces/si-live-preview.api';\n\nexport type LivePreviewFramework = 'angular' | 'react' | 'vue' | 'js';\n\nexport interface LivePreviewRenderRequest extends LivePreviewViewport {\n exampleUrl: string;\n template: string;\n loadReact: boolean;\n loadVue: boolean;\n loadJs: boolean;\n reactVueTemplate: string;\n}\n\n@Service()\nexport class LivePreviewStateService {\n private readonly router = inject(Router, { optional: true });\n private readonly overviewExample = computed(() => {\n this.router?.lastSuccessfulNavigation();\n const route = this.router && this.findOverviewRoute(this.router.routerState.root);\n return this.getOverviewExample(route?.snapshot.url ?? []);\n });\n private delayedLogClearTimer?: ReturnType<typeof setTimeout>;\n\n readonly example = signal('');\n readonly dataId = signal('');\n readonly template = signal('');\n readonly templateReact = signal('');\n readonly templateVue = signal('');\n readonly templateJs = signal('');\n readonly originalTemplate = signal('');\n\n readonly theme = signal<ThemeType>('light');\n readonly locale = signal<string | undefined>(undefined);\n readonly isRTL = signal(false);\n readonly rootFontSize = signal<number | 'initial'>(0);\n\n readonly framework = signal<LivePreviewFramework>('angular');\n readonly loadReact = signal(false);\n readonly loadVue = signal(false);\n readonly loadJs = signal(false);\n\n readonly supportsLandscape = signal(false);\n readonly viewport = signal<LivePreviewViewport>({ mode: 'ios' });\n readonly iFrameHeight = signal<string | undefined>(undefined);\n readonly iFrameWidth = signal<string | undefined>(undefined);\n\n readonly renderingError = signal<unknown>(undefined);\n readonly logMessages = signal<string[]>([]);\n readonly newMessages = signal(false);\n readonly pendingOperations = signal(0);\n readonly inProgress = computed(() => this.pendingOperations() > 0);\n\n readonly templateModified = computed(() => this.originalTemplate() !== this.template());\n readonly activeWebComponentTemplate = computed(() => {\n switch (this.framework()) {\n case 'react':\n return this.templateReact();\n case 'vue':\n return this.templateVue();\n case 'js':\n return this.templateJs();\n default:\n return '';\n }\n });\n\n constructor() {\n effect(() => {\n const example = this.overviewExample();\n if (example !== undefined) {\n this.clearTemplates();\n this.example.set(example);\n }\n });\n }\n\n private findOverviewRoute(route: ActivatedRoute): ActivatedRoute | undefined {\n if (route.routeConfig?.path === 'overview') {\n let activeRoute = route;\n while (activeRoute.firstChild) {\n activeRoute = activeRoute.firstChild;\n }\n return activeRoute;\n }\n\n for (const child of route.children) {\n const overviewRoute = this.findOverviewRoute(child);\n if (overviewRoute) {\n return overviewRoute;\n }\n }\n return undefined;\n }\n\n private getOverviewExample(segments: UrlSegment[]): string | undefined {\n return segments.length ? segments.join('/') : undefined;\n }\n\n setFramework(framework: LivePreviewFramework): void {\n this.framework.set(framework);\n this.loadReact.set(framework === 'react');\n this.loadVue.set(framework === 'vue');\n this.loadJs.set(framework === 'js');\n }\n\n applyRenderRequest(request: LivePreviewRenderRequest): void {\n this.example.set(request.exampleUrl);\n this.template.set(request.template);\n this.loadReact.set(request.loadReact);\n this.loadVue.set(request.loadVue);\n this.loadJs.set(request.loadJs);\n\n if (request.loadReact) {\n this.framework.set('react');\n this.templateReact.set(request.reactVueTemplate);\n } else if (request.loadVue) {\n this.framework.set('vue');\n this.templateVue.set(request.reactVueTemplate);\n } else if (request.loadJs) {\n this.framework.set('js');\n this.templateJs.set(request.reactVueTemplate);\n } else {\n this.framework.set('angular');\n }\n\n this.viewport.set({\n mode: request.mode,\n safeAreaTop: request.safeAreaTop,\n safeAreaBottom: request.safeAreaBottom,\n safeAreaLeft: request.safeAreaLeft,\n safeAreaRight: request.safeAreaRight\n });\n }\n\n stopWebComponentLoading(): void {\n this.loadReact.set(false);\n this.loadVue.set(false);\n this.loadJs.set(false);\n }\n\n clearTemplates(): void {\n this.template.set('');\n this.templateReact.set('');\n this.templateVue.set('');\n this.templateJs.set('');\n this.originalTemplate.set('');\n }\n\n toggleTheme(): void {\n this.theme.update(theme => (theme === 'dark' ? 'light' : 'dark'));\n }\n\n setRenderingProgress(inProgress: boolean): void {\n this.pendingOperations.update(count => Math.max(0, count + (inProgress ? 1 : -1)));\n }\n\n resetRenderingProgress(): void {\n this.pendingOperations.set(0);\n }\n\n addLog(message: string): void {\n if (this.delayedLogClearTimer) {\n clearTimeout(this.delayedLogClearTimer);\n this.delayedLogClearTimer = undefined;\n this.logMessages.set([]);\n }\n this.logMessages.update(messages => [...messages, message]);\n this.newMessages.set(true);\n }\n\n clearLogs(delayed = false): void {\n if (delayed && this.logMessages().length) {\n this.delayedLogClearTimer = setTimeout(() => {\n this.delayedLogClearTimer = undefined;\n this.logMessages.set([]);\n }, 100);\n return;\n }\n this.logMessages.set([]);\n }\n}\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport { computed, DestroyRef, effect, inject, Service, signal } from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { ActivatedRoute, Params, Router } from '@angular/router';\n\nimport { setDeviceMode, setDirectionRtl, setRootFontSize } from '../helpers/utils';\nimport { SI_LIVE_PREVIEW_INTERNALS } from '../interfaces/live-preview-config';\nimport {\n SiLivePreviewLocaleApi,\n SiLivePreviewThemeApi,\n ThemeType\n} from '../interfaces/si-live-preview.api';\nimport { LivePreviewStateService } from './live-preview-state.service';\n\nexport interface ExampleTab {\n heading: string;\n base: string;\n example: string;\n}\n\n/** Shared URL handling, provided separately by each editor/viewer route component. */\n@Service()\nexport class ExampleRouteController {\n private readonly router = inject(Router);\n private readonly route = inject(ActivatedRoute);\n private readonly internalConfig = inject(SI_LIVE_PREVIEW_INTERNALS);\n private readonly themeApi = inject(SiLivePreviewThemeApi, { optional: true });\n private readonly localeApi = inject(SiLivePreviewLocaleApi, { optional: true });\n private readonly state = inject(LivePreviewStateService);\n private readonly destroyRef = inject(DestroyRef);\n\n readonly tabs = signal<ExampleTab[]>([]);\n readonly hasTabs = computed(() => this.tabs().length > 1);\n readonly hasTabsMobile = computed(() => this.hasTabs() && this.internalConfig.isMobile);\n readonly activeTabIndex = signal(0);\n private readonly activeExample = computed(() => {\n const tab = this.tabs()[this.activeTabIndex()];\n return tab ? tab.base + tab.example : undefined;\n });\n\n private context: 'editor' | 'viewer' = 'viewer';\n\n constructor() {\n effect(() => {\n const example = this.activeExample();\n if (example !== undefined) {\n this.state.example.set(example);\n }\n });\n }\n\n initialize(context: 'editor' | 'viewer', recompile?: () => void): void {\n this.context = context;\n this.route.queryParams.pipe(takeUntilDestroyed(this.destroyRef)).subscribe(params => {\n if (this.handleQueryParams(params)) {\n recompile?.();\n }\n });\n }\n\n private handleQueryParams(params: Params): boolean {\n let handled = false;\n let recompile = false;\n\n const base = params.base ? params.base + '/' : '';\n if (params.e) {\n const prevUrl = this.state.example();\n const previousTemplate = this.state.template();\n this.tabs.set([]);\n this.activeTabIndex.set(0);\n this.state.clearTemplates();\n\n const examples = Array.isArray(params.e) ? params.e : [params.e];\n examples.forEach(element => {\n const parts = element.split(';');\n this.tabs.update(t => [\n ...t,\n {\n heading: parts[1],\n base,\n example: parts[0]\n }\n ]);\n });\n\n if (this.tabs().length) {\n this.activateTab(0);\n recompile = prevUrl === this.activeExample();\n } else {\n this.state.example.set('');\n }\n\n if (this.tabs().length <= 1 && params.t) {\n if (params.framework === 'react') {\n this.state.templateReact.set(params.t);\n } else if (params.framework === 'vue') {\n this.state.templateVue.set(params.t);\n } else if (params.framework === 'js') {\n this.state.templateJs.set(params.t);\n } else {\n recompile = recompile || previousTemplate !== params.t;\n this.state.template.set(params.t);\n }\n }\n\n handled = true;\n }\n\n if (params.theme) {\n this.setTheme(params.theme);\n handled = true;\n }\n if (params.locale) {\n this.setLocale(params.locale);\n handled = true;\n }\n if (params.rfs) {\n setRootFontSize(params.rfs === 'initial' ? params.rfs : parseInt(params.rfs, 10));\n }\n if (params.isRTL) {\n this.setRTL(params.isRTL);\n handled = true;\n }\n if (params.mode && this.context !== 'editor') {\n setDeviceMode(params.mode);\n recompile = true;\n handled = true;\n }\n\n if (handled) {\n const { e, t, theme, mode, locale, isRTL, ...newParams } = params;\n this.router.navigate([], { queryParams: newParams });\n }\n\n if (params.id) {\n recompile = this.state.dataId() !== params.id;\n this.state.dataId.set(params.id);\n }\n\n return recompile;\n }\n\n private setUiTheme(theme: ThemeType): void {\n document.documentElement.classList.toggle('app--dark', theme === 'dark');\n document.documentElement.classList.toggle('app--light', theme === 'light');\n }\n\n private setTheme(theme: ThemeType): void {\n if (this.context === 'editor') {\n this.state.theme.set(theme);\n }\n\n if (this.themeApi) {\n this.themeApi.setThemeFromPreviewer(theme);\n }\n this.setUiTheme(theme);\n }\n\n private setRTL(rtl: boolean): void {\n this.state.isRTL.set(rtl);\n if (this.context !== 'editor') {\n setDirectionRtl(rtl);\n }\n }\n\n private setLocale(locale: string): void {\n if (this.context === 'editor') {\n this.state.locale.set(locale);\n return;\n }\n\n if (this.localeApi) {\n this.localeApi.setLocale(locale);\n }\n }\n\n activateTab(index: number): void {\n if (index >= 0 && index < this.tabs().length) {\n this.activeTabIndex.set(index);\n }\n }\n}\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport { Component, input, output } from '@angular/core';\n\nimport type { ExampleTab } from '../../services/example-route-controller.service';\n\n@Component({\n selector: 'si-example-header',\n template: `\n <div class=\"wrapper\">\n <ng-content />\n @if (tabs().length > 1) {\n <div class=\"tab-wrapper\">\n <div role=\"tablist\" aria-label=\"Examples\" class=\"nav lp-tabs\">\n @for (tab of tabs(); track $index) {\n <button\n type=\"button\"\n role=\"tab\"\n class=\"tab-item tab-link focus-inside\"\n [class.tab-active]=\"activeTabIndex() === $index\"\n [attr.aria-selected]=\"activeTabIndex() === $index\"\n (click)=\"tabSelected.emit($index)\"\n >\n {{ tab.heading }}\n </button>\n }\n </div>\n </div>\n }\n </div>\n `,\n styleUrl: './si-example-header.component.scss'\n})\nexport class SiExampleHeaderComponent {\n readonly tabs = input.required<ExampleTab[]>();\n readonly activeTabIndex = input.required<number>();\n readonly tabSelected = output<number>();\n}\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport { InjectionToken } from '@angular/core';\n\nexport const LOG_EVENT = new InjectionToken<(...msg: any[]) => void>('si.live-previewer.log-event');\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport { Injectable } from '@angular/core';\n\n// eslint-disable-next-line @typescript-eslint/no-deprecated\n@Injectable({\n providedIn: 'any'\n})\nexport class LandscapeSupportService {}\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport {\n AfterViewInit,\n ChangeDetectorRef,\n ComponentRef,\n Directive,\n DoCheck,\n inject,\n input,\n OnDestroy,\n output,\n Signal,\n Type,\n ViewContainerRef\n} from '@angular/core';\nimport { ActivatedRoute, Routes } from '@angular/router';\n\nimport {\n SI_LIVE_PREVIEW_CONFIG,\n SI_LIVE_PREVIEW_EXAMPLE_ROUTES\n} from '../../interfaces/live-preview-config';\n\n/**\n * Base class for components that act as a live-preview runtime shell.\n * Extend this class when providing `SiLivePreviewConfig.runtimeComponent`.\n */\n@Directive()\nexport abstract class SiLivePreviewRuntimeComponent implements AfterViewInit, DoCheck, OnDestroy {\n readonly component = input.required<Type<unknown>>();\n readonly ready = output<void>();\n readonly renderingError = output<Error>();\n\n protected abstract readonly container: Signal<ViewContainerRef>;\n\n private readonly changeDetector = inject(ChangeDetectorRef);\n private readonly activatedRoute = inject(ActivatedRoute);\n private readonly config = inject(SI_LIVE_PREVIEW_CONFIG);\n private componentRef?: ComponentRef<unknown>;\n private childRouteBackup: Routes | undefined;\n private hasRenderingError = false;\n\n ngAfterViewInit(): void {\n this.componentRef = this.container().createComponent(this.component());\n const exampleRoutes =\n this.componentRef.injector.get(SI_LIVE_PREVIEW_EXAMPLE_ROUTES, undefined, {\n optional: true,\n self: true\n }) ??\n this.config.defaultRoutes ??\n this.activatedRoute.routeConfig?.children ??\n [];\n const route = this.activatedRoute.routeConfig;\n if (route) {\n this.childRouteBackup = route.children;\n // Do not reset the router configuration: that destroys child components during navigation.\n route.children = [...exampleRoutes];\n }\n this.ready.emit();\n }\n\n ngOnDestroy(): void {\n this.componentRef?.destroy();\n this.componentRef = undefined;\n\n const route = this.activatedRoute.routeConfig;\n if (route) {\n route.children = this.childRouteBackup;\n }\n }\n\n ngDoCheck(): void {\n if (this.hasRenderingError) {\n return;\n }\n try {\n this.changeDetector.detectChanges();\n } catch (error: unknown) {\n this.hasRenderingError = true;\n this.renderingError.emit(error instanceof Error ? error : new Error(String(error)));\n }\n }\n}\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport { Component, ViewContainerRef, viewChild } from '@angular/core';\n\nimport { SiLivePreviewRuntimeComponent } from './si-live-preview-runtime.component';\n\n/** Default standalone shell used to render a live-preview example. */\n@Component({\n selector: 'si-live-preview-runtime',\n template: '<ng-container #container />'\n})\nexport class SiDefaultLivePreviewRuntimeComponent extends SiLivePreviewRuntimeComponent {\n readonly container = viewChild.required('container', { read: ViewContainerRef });\n}\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport {\n ChangeDetectorRef,\n ɵcompileComponent as compileComponent,\n Compiler,\n Component,\n ComponentRef,\n computed,\n effect,\n ElementRef,\n inject,\n Injector,\n inputBinding,\n OnDestroy,\n output,\n ɵresetCompiledComponents as resetCompiledComponents,\n signal,\n untracked,\n ViewContainerRef,\n viewChild,\n ChangeDetectionStrategy,\n afterNextRender\n} from '@angular/core';\nimport { ɵDomRendererFactory2 as DomRendererFactory2 } from '@angular/platform-browser';\n\nimport { LOG_EVENT } from '../../helpers/log-event';\nimport { SI_LIVE_PREVIEW_CONFIG } from '../../interfaces/live-preview-config';\nimport { LandscapeSupportService } from '../../services/landscape-support.service';\nimport { LivePreviewStateService } from '../../services/live-preview-state.service';\nimport { SiDefaultLivePreviewRuntimeComponent } from './si-default-live-preview-runtime.component';\nimport { SiLivePreviewRuntimeComponent } from './si-live-preview-runtime.component';\n\n// for handling JSON.stringify with circular references, from MDN\nconst getCircularReplacer = (): ((_key: any, value: any | null) => any) => {\n const seen = new WeakSet();\n return (_key: any, value: any | null) => {\n if (typeof value === 'object' && value !== null) {\n if (seen.has(value)) {\n return;\n }\n seen.add(value);\n }\n return value;\n };\n};\n\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'app-sample',\n template: '',\n jit: true\n})\nexport class DummyAppSampleComponent {}\n\n@Component({\n selector: 'si-live-preview-renderer',\n template: '<div #renderedExample></div><div #react id=\"app\"></div>',\n changeDetection: ChangeDetectionStrategy.Eager,\n host: {\n '[class.live-preview-done]': 'renderingDone()',\n '[attr.data-example]': 'exampleUrl()',\n '[attr.data-id]': 'state.dataId()'\n }\n})\nexport class SiLivePreviewRendererComponent implements OnDestroy {\n readonly renderedExample = viewChild.required('renderedExample', { read: ViewContainerRef });\n readonly react = viewChild.required('react', { read: ElementRef });\n\n protected readonly state = inject(LivePreviewStateService);\n private readonly config = inject(SI_LIVE_PREVIEW_CONFIG);\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n private readonly compiler = inject(Compiler);\n private readonly injector = Injector.create({\n parent: inject(Injector),\n providers: [\n {\n provide: LOG_EVENT,\n useValue: (...msg: any[]) => this.logMessage.emit(this.stringifyLog(msg))\n }\n ]\n });\n private readonly rendererFactory = inject(DomRendererFactory2);\n private readonly cdRef = inject(ChangeDetectorRef);\n\n readonly exampleUrl = computed(() => this.config.examplesBaseUrl + this.state.example());\n\n protected readonly renderingDone = signal(false);\n\n readonly templateFromComponent = output<string | undefined>();\n readonly logClear = output<void>();\n readonly logMessage = output<string>();\n readonly logRenderingError = output<any>();\n readonly inProgress = output<boolean>();\n readonly supportsLandscapeMode = output<boolean>();\n\n private componentRef?: ComponentRef<SiLivePreviewRuntimeComponent>;\n private componentTs?: Promise<any>;\n private componentTsSampleComponent: any;\n private dynamicComponent: any;\n private dynamicComponentId?: string;\n private componentTsFirstLoad = true;\n private compiledTemplate?: string;\n\n constructor() {\n effect(() => {\n const url = this.exampleUrl();\n if (url) {\n untracked(() => this.loadFromUrl());\n }\n });\n\n effect(() => {\n const template = this.state.template();\n // when the initial template is pushed from the renderer to the editor, this.state.template is\n // initially empty, but later changes to what the renderer has pushed out. In this case\n // don't compile\n if (template && template !== this.compiledTemplate) {\n untracked(() => {\n this.setInProgress(true);\n this.compileWhenReady();\n });\n }\n });\n }\n\n ngOnDestroy(): void {\n this.clear();\n }\n\n recompile(): void {\n this.removeComponentInstance();\n this.logClear.emit();\n this.setRenderingError(false);\n\n try {\n this.createComponentInstance();\n } catch (error) {\n this.setRenderingError(true, error);\n }\n }\n\n private logError(error: any): void {\n if (this.config.errorHandler) {\n this.config.errorHandler(error);\n }\n }\n\n private setRenderingError(hasError: boolean, msg?: any): void {\n this.logRenderingError.emit(msg);\n if (hasError) {\n setTimeout(() => {\n this.setInProgress(false);\n this.cdRef.markForCheck();\n });\n }\n }\n\n private loadFromUrl(): void {\n this.logClear.emit();\n this.clear();\n this.componentTsSampleComponent = undefined;\n this.dynamicComponent = undefined;\n this.componentTsFirstLoad = true;\n\n this.componentTs = this.config.componentLoader.load(this.exampleUrl());\n if (this.componentTs) {\n this.setInProgress(true);\n this.componentTs\n .then(m => {\n this.componentTsSampleComponent = m.SampleComponent;\n this.dynamicComponent = m.SampleComponent;\n this.compileWhenReady();\n if (!this.componentTsSampleComponent && !this.state.template()) {\n afterNextRender(\n () => {\n this.setInProgress(false);\n this.cdRef.markForCheck();\n },\n { injector: this.injector }\n );\n }\n })\n .catch(e => {\n this.componentTs = undefined;\n this.logRenderingError.emit(e ? e.toString() : 'Failed loading TS');\n afterNextRender(\n () => {\n this.setInProgress(false);\n this.cdRef.markForCheck();\n },\n { injector: this.injector }\n );\n });\n } else {\n // set the dummy component\n this.componentTsSampleComponent = DummyAppSampleComponent;\n\n // let the editor know there is no component, so no template\n this.templateFromComponent.emit(undefined);\n }\n }\n\n private setInProgress(inProgress: boolean): void {\n this.renderingDone.set(!inProgress);\n this.inProgress.emit(inProgress);\n }\n\n private compileWhenReady(): void {\n if (this.componentTs) {\n if (!this.componentTsSampleComponent) {\n // TS, but code not yet loaded\n return;\n }\n if (!this.componentTsFirstLoad && !this.state.template()) {\n // TS, first load done, template not yet available\n return;\n }\n } else if (!this.state.template()) {\n // no TS, no template\n return;\n }\n this.doCompileTemplate();\n }\n\n private doCompileTemplate(): void {\n this.logClear.emit();\n this.clear();\n this.createComponent();\n }\n\n private stringifyLog(args: any[]): string {\n return args.map(a => JSON.stringify(a, getCircularReplacer())).join(', ');\n }\n\n // this exists because in production mode, the ivy internal props are defined as\n // non-configurable and cannot be overwritten\n private cloneComponentWithoutIvyStuff(): void {\n if (!this.componentTsSampleComponent) {\n return;\n }\n const orig = this.componentTsSampleComponent;\n const ignoreProps = ['ɵcmp', 'ɵfac', 'ɵprov'];\n const copy: any = orig.bind({});\n\n const descriptors = Object.getOwnPropertyDescriptors(orig);\n for (const name of Object.getOwnPropertyNames(orig)) {\n if (ignoreProps.includes(name)) {\n continue;\n }\n Object.defineProperty(copy, name, descriptors[name]);\n }\n\n this.dynamicComponent = copy;\n }\n\n // patches the template into the loaded component (if any), returns the template to use\n private updateDynamicTemplate(): void {\n if (this.componentTsSampleComponent) {\n const ann = this.componentTsSampleComponent?.decorators\n ? this.getAnnotationInAot(this.componentTsSampleComponent)\n : this.getAnnotation(this.componentTsSampleComponent, Component);\n\n if (ann) {\n const supportsLandscape = ann.providers?.includes(LandscapeSupportService);\n this.supportsLandscapeMode.emit(supportsLandscape);\n\n if (this.componentTsFirstLoad && !this.state.template()) {\n // skipping compile on first load\n this.compiledTemplate = ann.template;\n this.templateFromComponent.emit(ann.template);\n } else if (ann.template !== this.state.template()) {\n // recompile with new template\n this.componentTsFirstLoad = false;\n this.cloneComponentWithoutIvyStuff();\n ann.template = this.state.template();\n this.compiledTemplate = this.state.template();\n compileComponent(this.dynamicComponent, ann);\n this.reuseResolvedScopeOfOriginalComponent();\n }\n }\n }\n }\n\n /**\n * When the host application is built with AOT, the Angular compiler tree-shakes the\n * `ɵɵsetNgModuleScope` calls (because `ngJitMode` is `false`). As a result, NgModules that are\n * compiled from source expose no `imports`/`exports` scope on their `ɵmod` at runtime.\n *\n * Re-compiling the edited example via JIT (`compileComponent`) therefore cannot resolve the\n * directives and pipes that are exported through such an imported NgModule. A common symptom is\n * a missing value accessor for a form control component used with `ngModel`, which throws\n * `NG01203`.\n *\n * The originally (AOT-)compiled component already carries the fully resolved scope in its\n * component definition. Reusing its directive and pipe defs on the recompiled component restores\n * the complete scope without depending on runtime NgModule metadata.\n */\n private reuseResolvedScopeOfOriginalComponent(): void {\n const originalDef = this.componentTsSampleComponent?.['ɵcmp'];\n const recompiledDef = this.dynamicComponent?.['ɵcmp'];\n if (!originalDef || !recompiledDef) {\n return;\n }\n\n if (originalDef.directiveDefs) {\n recompiledDef.directiveDefs = this.mergeDefs(\n recompiledDef.directiveDefs,\n originalDef.directiveDefs\n );\n }\n if (originalDef.pipeDefs) {\n recompiledDef.pipeDefs = this.mergeDefs(recompiledDef.pipeDefs, originalDef.pipeDefs);\n }\n }\n\n /** Merges two (possibly lazy) Ivy def lists into a single deduplicated factory. */\n private mergeDefs(\n recompiled: unknown[] | (() => unknown[]) | null | undefined,\n original: unknown[] | (() => unknown[]) | null | undefined\n ): () => unknown[] {\n const resolve = (defs: unknown[] | (() => unknown[]) | null | undefined): unknown[] =>\n typeof defs === 'function' ? defs() : (defs ?? []);\n return () => [...new Set([...resolve(recompiled), ...resolve(original)])];\n }\n\n private getAnnotation(obj: any, type: any): any {\n return obj?.__annotations__?.find((a: any) => a instanceof type);\n }\n\n private getAnnotationInAot(obj: any): any {\n return obj.decorators?.[0]?.args?.[0];\n }\n\n private clear(): void {\n this.removeComponentInstance();\n\n if (this.dynamicComponent) {\n this.compiler.clearCacheFor(this.dynamicComponent);\n }\n\n resetCompiledComponents();\n }\n\n private removeComponentInstance(): void {\n this.componentRef?.destroy();\n this.componentRef = undefined;\n\n try {\n this.renderedExample().remove();\n } catch (error: any) {\n // FIXME: there's no point in logging this as rendering error since it will be cleared right away\n console.warn('Error during ngOnDestroy():', error);\n }\n\n // clear out render for component id:\n // - contains the styles\n // - stays mostly the same for all examples\n if (this.dynamicComponentId) {\n (this.rendererFactory as any).rendererByCompId?.delete(this.dynamicComponentId);\n }\n }\n\n private createComponent(): void {\n this.setRenderingError(false);\n\n try {\n this.updateDynamicTemplate();\n this.createComponentInstance();\n } catch (error: any) {\n this.setRenderingError(true, error.toString());\n }\n }\n\n private createComponentInstance(): void {\n this.dynamicComponentId = this.dynamicComponent?.['ɵcmp']?.id;\n\n if (!this.dynamicComponent) {\n return;\n }\n if (!this.dynamicComponent['ɵcmp']?.standalone) {\n throw new Error('Live preview examples must be standalone components.');\n }\n const runtimeComponent = this.config.runtimeComponent ?? SiDefaultLivePreviewRuntimeComponent;\n this.componentRef = this.renderedExample().createComponent(runtimeComponent, {\n injector: this.injector,\n bindings: [inputBinding('component', () => this.dynamicComponent)]\n });\n this.componentRef.instance.ready.subscribe(() => {\n queueMicrotask(() => {\n this.setInProgress(false);\n this.cdRef.markForCheck();\n });\n });\n this.componentRef.instance.renderingError.subscribe(error => {\n this.setRenderingError(true, error.message);\n this.logError(error);\n });\n }\n}\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport { ChangeDetectionStrategy, Component, inject, viewChild } from '@angular/core';\n\nimport { ExampleRouteController } from '../../services/example-route-controller.service';\nimport { LivePreviewStateService } from '../../services/live-preview-state.service';\nimport { SiExampleHeaderComponent } from '../si-example-header/si-example-header.component';\nimport { SiLivePreviewRendererComponent } from '../si-live-preview-renderer/si-live-preview-renderer.component';\n\n@Component({\n selector: 'si-example-viewer',\n imports: [SiExampleHeaderComponent, SiLivePreviewRendererComponent],\n templateUrl: './si-example-viewer.component.html',\n styleUrl: './si-example-viewer.component.scss',\n providers: [ExampleRouteController],\n changeDetection: ChangeDetectionStrategy.Eager,\n host: {\n '[class.has-tabs]': 'routeController.hasTabs()',\n '[class.has-tabs-mobile]': 'routeController.hasTabsMobile()'\n }\n})\nexport class SiExampleViewerComponent {\n protected readonly state = inject(LivePreviewStateService);\n protected readonly routeController = inject(ExampleRouteController);\n private readonly renderer = viewChild(SiLivePreviewRendererComponent);\n\n constructor() {\n this.routeController.initialize('viewer', () => this.renderer()?.recompile());\n }\n}\n","<si-example-header\n [tabs]=\"routeController.tabs()\"\n [activeTabIndex]=\"routeController.activeTabIndex()\"\n (tabSelected)=\"routeController.activateTab($event)\"\n>\n @if (!state.example() && !state.template()) {\n <p class=\"text-information\" style=\"margin: 1em\">\n No example specified. Head to\n <strong><a href=\"#/overview\">/overview</a></strong>\n for a list of them.\n </p>\n }\n</si-example-header>\n\n<si-live-preview-renderer />\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport { ElementRef, Injectable } from '@angular/core';\n\n@Injectable()\nexport abstract class SiLivePreviewWebComponentService {\n abstract injectComponent(element: ElementRef, inputs?: any, outputs?: any): any;\n abstract destroyComponent(): void;\n}\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ElementRef,\n inject,\n NgZone,\n viewChild\n} from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { fromEvent } from 'rxjs';\n\nimport { setDeviceMode, setDirectionRtl, setRootFontSize } from '../../helpers/utils';\nimport {\n SI_LIVE_PREVIEW_CONFIG,\n SI_LIVE_PREVIEW_INTERNALS\n} from '../../interfaces/live-preview-config';\nimport {\n SiLivePreviewLocaleApi,\n SiLivePreviewThemeApi,\n ThemeType\n} from '../../interfaces/si-live-preview.api';\nimport { LivePreviewStateService } from '../../services/live-preview-state.service';\nimport { SiLivePreviewRendererComponent } from '../si-live-preview-renderer/si-live-preview-renderer.component';\nimport { SiLivePreviewWebComponentService } from '../si-live-preview-renderer/webcomponent/si-live-webcomponent.service';\n\nconst filterTargets = ['_self', '_top', '_parent', ''];\n\n@Component({\n selector: 'si-live-preview-wrapper',\n imports: [SiLivePreviewRendererComponent],\n templateUrl: './si-live-preview-wrapper.component.html',\n styles: 'si-live-preview-renderer { flex: 1;}',\n changeDetection: ChangeDetectionStrategy.Eager,\n host: {\n '(click)': 'onClick($event)'\n }\n})\nexport class SiLivePreviewWrapperComponent {\n private readonly renderer = viewChild.required<SiLivePreviewRendererComponent>('renderer');\n private readonly webcomponentRenderer = viewChild.required<ElementRef>('webcomponentRenderer');\n\n protected readonly state = inject(LivePreviewStateService);\n private readonly config = inject(SI_LIVE_PREVIEW_CONFIG);\n private readonly themeApi = inject(SiLivePreviewThemeApi, { optional: true });\n private readonly localeApi = inject(SiLivePreviewLocaleApi, { optional: true });\n private readonly internalConfig = inject(SI_LIVE_PREVIEW_INTERNALS);\n private readonly ngZone = inject(NgZone);\n private readonly webcomponentService = inject(SiLivePreviewWebComponentService, {\n optional: true\n });\n private readonly cdRef = inject(ChangeDetectorRef);\n private readonly parentOrigin = this.resolveParentOrigin();\n\n private isMobile = false;\n private initialUrl: string;\n\n constructor() {\n this.themeApi\n ?.getApplicationThemeObservable()\n .pipe(takeUntilDestroyed())\n .subscribe(theme => {\n this.state.theme.set(theme);\n this.sendMessage('theme', theme);\n });\n this.localeApi\n ?.getLocale()\n .pipe(takeUntilDestroyed())\n .subscribe(locale => {\n if (this.state.locale() !== locale) {\n this.state.locale.set(locale);\n this.sendMessage('locale', locale);\n }\n });\n this.initialUrl = window.location.toString();\n this.isMobile = this.internalConfig.isMobile;\n if (this.isMobile) {\n setDeviceMode(this.state.viewport().mode);\n }\n\n // send ready message only when locale/theme are communicated to avoid loops\n this.sendMessage('ready');\n\n this.ngZone.runOutsideAngular(() =>\n fromEvent<MessageEvent>(window, 'message')\n .pipe(takeUntilDestroyed())\n .subscribe(message => {\n this.onMessage(message);\n this.cdRef.markForCheck();\n })\n );\n }\n\n private onMessage(event: MessageEvent): void {\n // Render requests contain executable templates. Only trust the embedding editor, with\n // a loopback-only exception for documentation development on a separate local port.\n if (\n event.origin !== this.parentOrigin ||\n event.source !== window.parent ||\n event.data?.src !== 'editor'\n ) {\n return;\n }\n\n this.ngZone.run(() => this.onMessageInZone(event));\n }\n\n private onMessageInZone(event: MessageEvent): void {\n const modeChanged = this.state.viewport().mode !== event.data.mode;\n this.state.applyRenderRequest(event.data);\n\n if (this.state.theme() !== event.data.theme) {\n this.setTheme(event.data.theme);\n }\n\n if (this.state.locale() !== event.data.locale) {\n this.setLocale(event.data.locale);\n }\n if (this.state.rootFontSize() !== event.data.rootFontSize) {\n this.state.rootFontSize.set(event.data.rootFontSize);\n setRootFontSize(event.data.rootFontSize);\n }\n\n if (this.state.isRTL() !== event.data.isRTL) {\n this.setRTL(event.data.isRTL);\n }\n\n if (this.isMobile) {\n this.setSafeArea(\n event.data.safeAreaTop,\n event.data.safeAreaBottom,\n event.data.safeAreaLeft,\n event.data.safeAreaRight\n );\n }\n\n if (modeChanged && this.isMobile) {\n setDeviceMode(event.data.mode);\n this.renderer().recompile();\n }\n\n const webcomponentRenderer = this.webcomponentRenderer();\n if (\n webcomponentRenderer &&\n (this.state.loadReact() || this.state.loadVue() || this.state.loadJs())\n ) {\n this.webcomponentService?.injectComponent(\n webcomponentRenderer,\n {\n exampleUrl: this.config.examplesBaseUrl + this.state.example(),\n loadReact: this.state.loadReact(),\n loadJs: this.state.loadJs(),\n webcomponentTemplateCode: this.state.activeWebComponentTemplate(),\n loadVue: this.state.loadVue(),\n config: this.config\n },\n {\n inProgress: (type: string, message?: unknown) => this.sendMessage(type, message)\n }\n );\n } else {\n this.webcomponentService?.destroyComponent();\n }\n }\n\n onClick(event: MouseEvent): void {\n const target = event?.target as HTMLElement;\n if (target?.tagName === 'A' && !event.defaultPrevented) {\n // for normal link: ok if it starts with the proper route, else open in a new window\n const newUrl = (target as HTMLAnchorElement).href;\n const linkTarget = (target as HTMLAnchorElement).target;\n if (newUrl && !newUrl.startsWith(this.initialUrl) && filterTargets.includes(linkTarget)) {\n event.preventDefault();\n window.open(newUrl, '_blank', 'noopener,noreferrer');\n }\n }\n }\n\n sendMessage(type: string, message?: unknown): void {\n window.parent.postMessage({ src: 'renderer', type, message }, this.parentOrigin);\n }\n\n private resolveParentOrigin(): string {\n const location = window.location;\n // Keep the editor origin across locale-triggered reloads, which replace the referrer.\n const parameters = new URLSearchParams(location.hash.split('?')[1]);\n const source = parameters.get('parentOrigin') ?? document.referrer;\n if (!source || !URL.canParse(source)) {\n return location.origin;\n }\n const parent = new URL(source);\n const isLoopback = (hostname: string): boolean =>\n hostname === 'localhost' || hostname === '[::1]' || /^127(?:\\.\\d{1,3}){3}$/.test(hostname);\n return parent.origin === location.origin ||\n (parent.protocol === 'http:' &&\n location.protocol === 'http:' &&\n isLoopback(parent.hostname) &&\n isLoopback(location.hostname))\n ? parent.origin\n : location.origin;\n }\n\n private setTheme(theme: ThemeType): void {\n this.state.theme.set(theme);\n if (this.themeApi) {\n this.themeApi.setThemeFromPreviewer(theme);\n } else {\n document.documentElement.classList.toggle('app--dark', theme === 'dark');\n document.documentElement.classList.toggle('app--light', theme === 'light');\n }\n }\n\n private setRTL(rtl: boolean): void {\n this.state.isRTL.set(rtl);\n setDirectionRtl(rtl);\n }\n\n private setLocale(locale: string): void {\n if (!locale) {\n return;\n }\n\n this.state.locale.set(locale);\n if (this.localeApi) {\n this.localeApi.setLocale(locale);\n }\n }\n\n private setSafeArea(\n top: number | undefined,\n bottom: number | undefined,\n left: number | undefined,\n right: number | undefined\n ): void {\n const htmlTag = document.documentElement;\n htmlTag.style.setProperty('--ion-safe-area-top', (top ?? 0) + 'px');\n htmlTag.style.setProperty('--ion-safe-area-bottom', (bottom ?? 0) + 'px');\n htmlTag.style.setProperty('--ion-safe-area-left', (left ?? 0) + 'px');\n htmlTag.style.setProperty('--ion-safe-area-right', (right ?? 0) + 'px');\n }\n}\n","<si-live-preview-renderer\n #renderer\n [hidden]=\"state.loadReact() || state.loadVue() || state.loadJs()\"\n (templateFromComponent)=\"sendMessage('templateFromComponent', $event)\"\n (logClear)=\"sendMessage('clear')\"\n (logMessage)=\"sendMessage('log', $event)\"\n (logRenderingError)=\"sendMessage('error', $event)\"\n (inProgress)=\"sendMessage('progress', $event)\"\n (supportsLandscapeMode)=\"sendMessage('landscapeMode', $event)\"\n/>\n\n<div #webcomponentRenderer></div>\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport { NgModule } from '@angular/core';\nimport { RouterModule, Routes } from '@angular/router';\n\nimport { SiDummyComponent } from './components/si-dummy.component';\nimport { SiExampleViewerComponent } from './components/si-example-viewer/si-example-viewer.component';\nimport { SiLivePreviewWrapperComponent } from './components/si-live-preview-wrapper/si-live-preview-wrapper.component';\n\nexport const livePreviewRoutes: Routes = [\n {\n path: 'overview',\n children: [\n {\n path: '**',\n loadComponent: () =>\n import('./components/si-example-overview/si-example-overview.component').then(\n m => m.SiExampleOverviewComponent\n )\n }\n ]\n },\n {\n path: 'viewer/editor',\n loadComponent: () =>\n import('./components/si-example-editor/si-example-editor.component').then(\n m => m.SiExampleEditorComponent\n ),\n children: [{ path: '**', component: SiDummyComponent }]\n },\n {\n path: 'viewer/:mode',\n // Keep the renderer eager for the viewer/viewer route used by e2e tests.\n component: SiExampleViewerComponent,\n children: [{ path: '**', component: SiDummyComponent }]\n },\n {\n path: 'iframe',\n component: SiLivePreviewWrapperComponent,\n children: [{ path: '**', component: SiDummyComponent }]\n },\n { path: '', redirectTo: 'viewer/editor', pathMatch: 'full' },\n {\n path: '**',\n loadComponent: () =>\n import('./components/si-example-editor/si-example-editor.component').then(\n m => m.SiExampleEditorComponent\n )\n }\n];\n\n@NgModule({\n imports: [RouterModule.forRoot(livePreviewRoutes, { useHash: true })],\n exports: [RouterModule]\n})\nexport class SiLivePreviewRoutingModule {}\n\n/**\n * @deprecated Use {@link SiLivePreviewRoutingModule} instead. The `Simpl` prefix is deprecated and will be removed in v51.\n */\nexport { SiLivePreviewRoutingModule as SimplLivePreviewRoutingModule };\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport { LocationChangeListener, LocationStrategy } from '@angular/common';\n\n/** A router location that is private to a rendered example application. */\nexport class ExampleLocationStrategy extends LocationStrategy {\n private currentPath = '/';\n private state: unknown = null;\n\n path(): string {\n return this.currentPath;\n }\n\n prepareExternalUrl(internal: string): string {\n return internal;\n }\n\n getState(): unknown {\n return this.state;\n }\n\n pushState(state: unknown, _title: string, url: string, queryParams: string): void {\n this.state = state;\n this.currentPath = url + queryParams;\n }\n\n replaceState(state: unknown, _title: string, url: string, queryParams: string): void {\n this.state = state;\n this.currentPath = url + queryParams;\n }\n\n forward(): void {}\n\n back(): void {}\n\n onPopState(_fn: LocationChangeListener): void {}\n\n getBaseHref(): string {\n return '';\n }\n}\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport { Location, LocationStrategy } from '@angular/common';\nimport {\n ApplicationRef,\n ComponentRef,\n createComponent,\n Directive,\n ErrorHandler,\n inject,\n Injector\n} from '@angular/core';\nimport { createApplication } from '@angular/platform-browser';\nimport { provideRouter, Router, withDisabledInitialNavigation } from '@angular/router';\n\nimport { LOG_EVENT } from '../../helpers/log-event';\nimport {\n SI_LIVE_PREVIEW_CONFIG,\n SI_LIVE_PREVIEW_EXAMPLE_ROUTES\n} from '../../interfaces/live-preview-config';\nimport type { SiLivePreviewProviderConfig } from '../../live-preview.provider';\nimport { SiDummyComponent } from '../si-dummy.component';\nimport { ExampleLocationStrategy } from './example-location-strategy';\nimport { SiLivePreviewRuntimeComponent } from './si-live-preview-runtime.component';\n\n/**\n * Runtime shell that renders each example in an independent Angular application.\n * The example application owns its router and does not modify the live-preview router.\n */\n@Directive()\nexport abstract class SiLivePreviewApplicationRuntimeComponent extends SiLivePreviewRuntimeComponent {\n private readonly applicationConfig = inject(\n SI_LIVE_PREVIEW_CONFIG\n ) as SiLivePreviewProviderConfig;\n private readonly parentInjector = inject(Injector);\n private exampleComponentRef?: ComponentRef<unknown>;\n private applicationRef?: ApplicationRef;\n private hostElement?: HTMLElement;\n private destroyed = false;\n\n override ngAfterViewInit(): void {\n this.createExampleApplication();\n }\n\n override ngOnDestroy(): void {\n this.destroyed = true;\n this.exampleComponentRef?.destroy();\n this.exampleComponentRef = undefined;\n this.applicationRef?.destroy();\n this.hostElement?.remove();\n }\n\n private async createExampleApplication(): Promise<void> {\n try {\n const locationStrategy = new ExampleLocationStrategy();\n const configuredApplication = this.applicationConfig.exampleApplicationConfig;\n const exampleApplicationConfig =\n typeof configuredApplication === 'function'\n ? configuredApplication(this.parentInjector)\n : configuredApplication;\n this.applicationRef = await createApplication({\n ...exampleApplicationConfig,\n providers: [\n ...(exampleApplicationConfig?.providers ?? []),\n provideRouter([], withDisabledInitialNavigation()),\n { provide: LocationStrategy, useValue: locationStrategy },\n {\n provide: Location,\n useFactory: () => new Location(inject(LocationStrategy))\n },\n {\n provide: LOG_EVENT,\n useFactory: () => this.parentInjector.get(LOG_EVENT)\n },\n {\n provide: ErrorHandler,\n useValue: { handleError: (error: unknown) => this.handleError(error) }\n }\n ]\n });\n\n if (this.destroyed) {\n this.applicationRef.destroy();\n return;\n }\n\n this.exampleComponentRef = createComponent(this.component(), {\n environmentInjector: this.applicationRef.injector\n });\n this.hostElement = this.exampleComponentRef.location.nativeElement as HTMLElement;\n const anchor = this.container().element.nativeElement as Node;\n anchor.parentNode?.insertBefore(this.hostElement, anchor);\n const exampleRoutes = this.exampleComponentRef.injector.get(\n SI_LIVE_PREVIEW_EXAMPLE_ROUTES,\n this.applicationConfig.defaultRoutes ?? [{ path: '**', component: SiDummyComponent }],\n { self: true }\n );\n\n this.applicationRef.injector.get(Router).resetConfig(exampleRoutes);\n this.applicationRef.attachView(this.exampleComponentRef.hostView);\n this.applicationRef.tick();\n this.ready.emit();\n } catch (error: unknown) {\n this.handleError(error);\n }\n }\n\n private handleError(error: unknown): void {\n this.renderingError.emit(error instanceof Error ? error : new Error(String(error)));\n }\n}\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport { Component, ViewContainerRef, viewChild } from '@angular/core';\n\nimport { SiLivePreviewApplicationRuntimeComponent } from './si-live-preview-application-runtime.component';\n\n/** Default shell that renders an example in an independent Angular application. */\n@Component({\n selector: 'si-live-preview-application-runtime',\n template: '<ng-container #container />'\n})\nexport class SiDefaultLivePreviewApplicationRuntimeComponent extends SiLivePreviewApplicationRuntimeComponent {\n readonly container = viewChild.required('container', { read: ViewContainerRef });\n}\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport {\n ApplicationConfig,\n EnvironmentProviders,\n Injector,\n makeEnvironmentProviders\n} from '@angular/core';\nimport { provideRouter, withHashLocation } from '@angular/router';\n\nimport { SiDefaultLivePreviewApplicationRuntimeComponent } from './components/si-live-preview-renderer/si-default-live-preview-application-runtime.component';\nimport {\n SI_LIVE_PREVIEW_CONFIG,\n SI_LIVE_PREVIEW_INTERNALS,\n SiLivePreviewConfig\n} from './interfaces/live-preview-config';\nimport { livePreviewRoutes } from './live-preview-routes';\n\nexport interface SiLivePreviewProviderConfig extends SiLivePreviewConfig {\n /**\n * Configuration applied to each isolated example application. A factory can use the host\n * injector to share selected service instances with the example application.\n */\n exampleApplicationConfig?: ApplicationConfig | ((injector: Injector) => ApplicationConfig);\n}\n\n/**\n * Configures live preview with each example rendered in an independent Angular application.\n */\nexport const provideLivePreview = (\n config: SiLivePreviewProviderConfig,\n isMobile = false\n): EnvironmentProviders => {\n return makeEnvironmentProviders([\n provideRouter(livePreviewRoutes, withHashLocation()),\n {\n provide: SI_LIVE_PREVIEW_CONFIG,\n useValue: {\n ...config,\n runtimeComponent: config.runtimeComponent ?? SiDefaultLivePreviewApplicationRuntimeComponent\n }\n },\n {\n provide: SI_LIVE_PREVIEW_INTERNALS,\n useValue: { isMobile, titleBase: 'Overview - Live Preview' }\n }\n ]);\n};\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport { DOCUMENT, inject, Injectable } from '@angular/core';\n\nimport { SI_LIVE_PREVIEW_CONFIG } from '../interfaces/live-preview-config';\nimport { LivePreviewStateService } from './live-preview-state.service';\n\n@Injectable({ providedIn: 'root' })\nexport class LivePreviewUrlService {\n private readonly config = inject(SI_LIVE_PREVIEW_CONFIG);\n private readonly state = inject(LivePreviewStateService);\n private readonly document = inject(DOCUMENT);\n // Keep resolution at runtime to avoid Vite rewriting '.' as a filesystem asset.\n private readonly applicationUrl = new URL('.', new URL(import.meta.url));\n\n readonly origin = this.applicationUrl.origin;\n readonly iframeUrl = this.routeUrl(\n 'iframe',\n new URLSearchParams({ parentOrigin: this.document.location.origin })\n );\n readonly examplesBaseUrl = new URL(this.config.examplesBaseUrl, this.applicationUrl).href;\n\n sourceUrl(path: string): string {\n return new URL(path, this.examplesBaseUrl).href;\n }\n\n viewerUrl(\n mode: 'editor' | 'viewer' | 'plain',\n options: { skipTemplate?: boolean; deviceMode?: string } = {}\n ): string {\n const parameters = new URLSearchParams({ theme: this.state.theme() });\n if (this.state.isRTL()) {\n parameters.set('isRTL', 'true');\n }\n const locale = this.state.locale();\n if (locale) {\n parameters.set('locale', locale);\n }\n const rootFontSize = this.state.rootFontSize();\n if (rootFontSize) {\n parameters.set('rfs', String(rootFontSize));\n }\n if (options.deviceMode) {\n parameters.set('mode', options.deviceMode);\n }\n if (!options.skipTemplate) {\n const framework = this.state.framework();\n if (framework !== 'angular') {\n parameters.set('t', this.state.activeWebComponentTemplate());\n parameters.set('framework', framework);\n } else if (this.state.templateModified()) {\n parameters.set('t', this.state.template());\n }\n }\n const example = this.state.example();\n if (example) {\n parameters.set('e', example);\n }\n return this.routeUrl(`viewer/${mode}`, parameters);\n }\n\n issueUrl(template: 'Bug' | 'Feature Request'): string {\n const url = new URL(this.config.ticketBaseUrl, this.document.baseURI);\n url.searchParams.set('issue[title]', `<${this.state.example()}>:`);\n url.searchParams.set('issuable_template', template);\n return url.href;\n }\n\n private routeUrl(route: string, parameters = new URLSearchParams()): string {\n const url = new URL(this.applicationUrl);\n url.hash = `/${route}${parameters.size ? '?' + parameters : ''}`;\n return url.href;\n }\n}\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport {\n Component,\n computed,\n DestroyRef,\n DOCUMENT,\n effect,\n ElementRef,\n inject,\n input,\n numberAttribute,\n signal,\n ViewEncapsulation\n} from '@angular/core';\n\nimport { ThemeType } from '../../interfaces/si-live-preview.api';\nimport { LivePreviewStateService } from '../../services/live-preview-state.service';\nimport { LivePreviewUrlService } from '../../services/live-preview-url.service';\nimport { SiLivePreviewComponent } from '../si-live-preview/si-live-preview.component';\n\ninterface DocsExample {\n example: string;\n heading: string;\n}\n\n/**\n * Documentation component shared with the optional elements entry point.\n * @internal\n */\n@Component({\n selector: 'si-docs-component',\n imports: [SiLivePreviewComponent],\n templateUrl: './si-docs-component.component.html',\n styleUrl: './si-docs-component.component.scss',\n providers: [LivePreviewStateService, LivePreviewUrlService],\n encapsulation: ViewEncapsulation.ShadowDom,\n host: {\n '[style.--preview-height]': 'previewHeight() + \"px\"'\n }\n})\nexport class SiDocsComponentComponent {\n readonly example = input('');\n readonly base = input('');\n readonly height = input(204, { transform: numberAttribute });\n readonly theme = input<ThemeType>();\n\n protected readonly state = inject(LivePreviewStateService);\n private readonly document = inject(DOCUMENT);\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef).nativeElement;\n private readonly documentTheme = signal<ThemeType>(this.readDocumentTheme());\n private readonly childExamples = signal<DocsExample[]>([]);\n protected readonly previewTheme = computed(() => this.theme() ?? this.documentTheme());\n protected readonly activeTabIndex = signal(0);\n protected readonly previewHeight = computed(() => {\n const height = this.height();\n return Number.isFinite(height) && height >= 0 ? height : 204;\n });\n protected readonly tabs = computed(() => [\n ...(this.example() ? [{ example: this.example(), heading: '' }] : []),\n ...this.childExamples()\n ]);\n\n constructor() {\n const readTabs = (): void => {\n this.childExamples.set(\n Array.from(this.host.querySelectorAll(':scope > si-docs-tab[example]'), tab => ({\n example: tab.getAttribute('example') ?? '',\n heading: tab.getAttribute('heading') ?? ''\n }))\n );\n };\n readTabs();\n const observer = new MutationObserver(readTabs);\n observer.observe(this.host, {\n childList: true,\n subtree: true,\n attributes: true,\n attributeFilter: ['example', 'heading']\n });\n const themeObserver = new MutationObserver(() =>\n this.documentTheme.set(this.readDocumentTheme())\n );\n themeObserver.observe(this.document.body, {\n attributes: true,\n attributeFilter: ['data-md-color-scheme']\n });\n inject(DestroyRef).onDestroy(() => {\n observer.disconnect();\n themeObserver.disconnect();\n });\n\n effect(() => {\n this.tabs();\n this.activeTabIndex.set(0);\n });\n effect(() => {\n const tab = this.tabs()[this.activeTabIndex()];\n const base = this.base().replace(/\\/$/, '');\n this.state.clearTemplates();\n this.state.example.set(tab ? `${base ? base + '/' : ''}${tab.example}` : '');\n });\n effect(() => {\n this.state.theme.set(this.previewTheme());\n });\n }\n\n private readDocumentTheme(): ThemeType {\n return this.document.body.getAttribute('data-md-color-scheme') === 'dark' ? 'dark' : 'light';\n }\n\n protected activateTab(index: number, focus = false): void {\n this.activeTabIndex.set(index);\n if (focus) {\n this.host.shadowRoot?.querySelector<HTMLButtonElement>(`#example-tab-${index}`)?.focus();\n }\n }\n}\n","<slot hidden></slot>\n@defer (on viewport) {\n @if (tabs().length > 1) {\n <div role=\"tablist\" class=\"lp-tabs\" aria-label=\"Examples\">\n @for (tab of tabs(); track $index) {\n <button\n type=\"button\"\n role=\"tab\"\n class=\"tab-item tab-link\"\n aria-controls=\"example-panel\"\n [id]=\"'example-tab-' + $index\"\n [class.tab-active]=\"activeTabIndex() === $index\"\n [attr.aria-selected]=\"activeTabIndex() === $index\"\n [tabIndex]=\"activeTabIndex() === $index ? 0 : -1\"\n (click)=\"activateTab($index)\"\n (keydown.arrowRight)=\"activateTab(($index + 1) % $count, true); $event.preventDefault()\"\n (keydown.arrowLeft)=\"\n activateTab(($index + $count - 1) % $count, true); $event.preventDefault()\n \"\n (keydown.home)=\"activateTab(0, true); $event.preventDefault()\"\n (keydown.end)=\"activateTab($count - 1, true); $event.preventDefault()\"\n >\n {{ tab.heading || tab.example }}\n </button>\n }\n </div>\n }\n <div\n id=\"example-panel\"\n class=\"preview\"\n [attr.role]=\"tabs().length > 1 ? 'tabpanel' : null\"\n [attr.aria-labelledby]=\"tabs().length > 1 ? 'example-tab-' + activeTabIndex() : null\"\n >\n <si-live-preview class=\"embedded\" [initialTheme]=\"previewTheme()\" />\n </div>\n} @placeholder {\n <div class=\"preview placeholder\" aria-hidden=\"true\"></div>\n}\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport { InjectionToken, Provider } from '@angular/core';\n\nimport { AssetProject, StackblitzConfig } from './stackblitz.model';\n\n/** Injection token to configure the open in Stackblitz button. */\nexport const SI_STACKBLITZ_CONFIG = new InjectionToken<StackblitzConfig>('SI_STACKBLITZ_CONFIG');\n\n/** Provides the Stackblitz configuration with default template projects. */\nexport const provideStackblitzConfig = (config?: StackblitzConfig): Provider => ({\n provide: SI_STACKBLITZ_CONFIG,\n useFactory: () => {\n return { templates: [angularTemplateProject()], ...config };\n }\n});\n\n/**\n * Create default Angular template project config.\n * The files are loaded from the assets folder, consumers need to add the following asset configuration\n * to their angular.json file:\n *\n * ```json\n * \"assets\": [\n * ...\n * {\n * \"glob\": \"**\\/*\",\n * \"input\": \"projects/live-preview/assets/\",\n * \"output\": \"/assets/\"\n * }]\n * ```\n */\nexport const angularTemplateProject = (): AssetProject => ({\n name: 'angular',\n assetUrl: 'assets/angular',\n files: [\n 'angular.json',\n 'package.json',\n 'tsconfig.json',\n 'tsconfig.app.json',\n 'src/index.html',\n 'src/main.ts',\n 'src/app/app.component.ts',\n 'src/app/example.component.ts',\n 'src/styles.scss'\n ]\n});\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport { ModuleWithProviders, NgModule } from '@angular/core';\nimport { REMOVE_STYLES_ON_COMPONENT_DESTROY } from '@angular/platform-browser';\n\nimport {\n SI_LIVE_PREVIEW_CONFIG,\n SI_LIVE_PREVIEW_INTERNALS,\n SiLivePreviewConfig\n} from './interfaces/live-preview-config';\n\n@NgModule({\n providers: [{ provide: REMOVE_STYLES_ON_COMPONENT_DESTROY, useValue: true }]\n})\nexport class SiLivePreviewModule {\n static forRoot(\n config: SiLivePreviewConfig,\n isMobile = false\n ): ModuleWithProviders<SiLivePreviewModule> {\n return {\n ngModule: SiLivePreviewModule,\n providers: [\n { provide: SI_LIVE_PREVIEW_CONFIG, useValue: config },\n {\n provide: SI_LIVE_PREVIEW_INTERNALS,\n useValue: { isMobile, titleBase: 'Overview - Live Preview' }\n }\n ]\n };\n }\n}\n\n/**\n * @deprecated Use {@link SiLivePreviewModule} instead. The `Simpl` prefix is deprecated and will be removed in v51.\n */\nexport { SiLivePreviewModule as SimplLivePreviewModule };\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\n// Public API Surface\nexport * from './live-preview-routes';\nexport { provideLivePreview, type SiLivePreviewProviderConfig } from './live-preview.provider';\n\nexport { SiDocsComponentComponent } from './components/si-docs-component/si-docs-component.component';\n\nexport * from './components/si-dummy.component';\nexport * from './components/si-live-preview-renderer/si-live-preview-runtime.component';\nexport * from './components/si-live-preview-renderer/si-live-preview-application-runtime.component';\nexport * from './components/stackblitz/stackblitz.provider';\n\nexport * from './interfaces/live-preview-config';\nexport * from './interfaces/si-live-preview.api';\n\nexport * from './helpers/log-event';\nexport { provideExampleRoutes } from './helpers/utils';\n\nexport * from './components/si-live-preview-renderer/webcomponent/si-live-webcomponent.service';\n\nexport * from './services/landscape-support.service';\n\nexport * from './public-api.module';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["DomRendererFactory2","compileComponent","resetCompiledComponents"],"mappings":";;;;;;;;;;AAAA;;;AAGG;MASU,gBAAgB,CAAA;IAC3B,IAAI,GAAG,EAAE;AACT,IAAA,WAAW,GAAG,MAAM,CAAC,cAAc,CAAC;AAC5B,IAAA,KAAK,GAAG,MAAM,CAAC,iBAAiB,CAAC;AAEzC,IAAA,WAAA,GAAA;QACE,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,SAAS,CAAC,GAAG,IAAG;AACnC,YAAA,IAAI,CAAC,IAAI,GAAG,GAAG,CAAC,QAAQ,EAAE;AAC1B,YAAA,IAAI,CAAC,KAAK,CAAC,YAAY,EAAE;AAC3B,QAAA,CAAC,CAAC;IACJ;uGAVW,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAhB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA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