@memberjunction/ng-dashboard-viewer 6.2.0-edge.4 → 6.2.0-edge.6

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.
Files changed (84) hide show
  1. package/README.md +17 -3
  2. package/dist/lib/config-panels/artifact-config-panel.component.js +2 -2
  3. package/dist/lib/config-panels/component-config-panel.component.d.ts +51 -0
  4. package/dist/lib/config-panels/component-config-panel.component.d.ts.map +1 -0
  5. package/dist/lib/config-panels/component-config-panel.component.js +246 -0
  6. package/dist/lib/config-panels/component-config-panel.component.js.map +1 -0
  7. package/dist/lib/config-panels/index.d.ts +1 -0
  8. package/dist/lib/config-panels/index.d.ts.map +1 -1
  9. package/dist/lib/config-panels/index.js +1 -0
  10. package/dist/lib/config-panels/index.js.map +1 -1
  11. package/dist/lib/config-panels/query-config-panel.component.js +2 -2
  12. package/dist/lib/config-panels/view-config-panel.component.js +2 -2
  13. package/dist/lib/config-panels/weburl-config-panel.component.js +2 -2
  14. package/dist/lib/dashboard-viewer/dashboard-viewer.component.d.ts +58 -1
  15. package/dist/lib/dashboard-viewer/dashboard-viewer.component.d.ts.map +1 -1
  16. package/dist/lib/dashboard-viewer/dashboard-viewer.component.js +186 -4
  17. package/dist/lib/dashboard-viewer/dashboard-viewer.component.js.map +1 -1
  18. package/dist/lib/dashboard-viewer.module.d.ts +22 -17
  19. package/dist/lib/dashboard-viewer.module.d.ts.map +1 -1
  20. package/dist/lib/dashboard-viewer.module.js +29 -4
  21. package/dist/lib/dashboard-viewer.module.js.map +1 -1
  22. package/dist/lib/dialogs/part-dialog/dashboard-part-dialog.component.d.ts +35 -1
  23. package/dist/lib/dialogs/part-dialog/dashboard-part-dialog.component.d.ts.map +1 -1
  24. package/dist/lib/dialogs/part-dialog/dashboard-part-dialog.component.js +307 -34
  25. package/dist/lib/dialogs/part-dialog/dashboard-part-dialog.component.js.map +1 -1
  26. package/dist/lib/dialogs/properties-dialog/dashboard-properties-dialog.component.d.ts +79 -0
  27. package/dist/lib/dialogs/properties-dialog/dashboard-properties-dialog.component.d.ts.map +1 -0
  28. package/dist/lib/dialogs/properties-dialog/dashboard-properties-dialog.component.js +461 -0
  29. package/dist/lib/dialogs/properties-dialog/dashboard-properties-dialog.component.js.map +1 -0
  30. package/dist/lib/dialogs/property-default-editor/property-default-editor.component.d.ts +41 -0
  31. package/dist/lib/dialogs/property-default-editor/property-default-editor.component.d.ts.map +1 -0
  32. package/dist/lib/dialogs/property-default-editor/property-default-editor.component.js +248 -0
  33. package/dist/lib/dialogs/property-default-editor/property-default-editor.component.js.map +1 -0
  34. package/dist/lib/models/dashboard-config-validator.d.ts +30 -0
  35. package/dist/lib/models/dashboard-config-validator.d.ts.map +1 -0
  36. package/dist/lib/models/dashboard-config-validator.js +107 -0
  37. package/dist/lib/models/dashboard-config-validator.js.map +1 -0
  38. package/dist/lib/models/dashboard-part-interfaces.d.ts +42 -0
  39. package/dist/lib/models/dashboard-part-interfaces.d.ts.map +1 -0
  40. package/dist/lib/models/dashboard-part-interfaces.js +180 -0
  41. package/dist/lib/models/dashboard-part-interfaces.js.map +1 -0
  42. package/dist/lib/models/dashboard-properties.d.ts +182 -0
  43. package/dist/lib/models/dashboard-properties.d.ts.map +1 -0
  44. package/dist/lib/models/dashboard-properties.js +263 -0
  45. package/dist/lib/models/dashboard-properties.js.map +1 -0
  46. package/dist/lib/models/dashboard-types.d.ts +8 -0
  47. package/dist/lib/models/dashboard-types.d.ts.map +1 -1
  48. package/dist/lib/models/dashboard-types.js.map +1 -1
  49. package/dist/lib/models/part-inputs-editor.d.ts +36 -0
  50. package/dist/lib/models/part-inputs-editor.d.ts.map +1 -0
  51. package/dist/lib/models/part-inputs-editor.js +53 -0
  52. package/dist/lib/models/part-inputs-editor.js.map +1 -0
  53. package/dist/lib/parts/artifact-part.component.d.ts.map +1 -1
  54. package/dist/lib/parts/artifact-part.component.js +5 -4
  55. package/dist/lib/parts/artifact-part.component.js.map +1 -1
  56. package/dist/lib/parts/base-dashboard-part.d.ts +50 -1
  57. package/dist/lib/parts/base-dashboard-part.d.ts.map +1 -1
  58. package/dist/lib/parts/base-dashboard-part.js +108 -1
  59. package/dist/lib/parts/base-dashboard-part.js.map +1 -1
  60. package/dist/lib/parts/component-part.component.d.ts +54 -0
  61. package/dist/lib/parts/component-part.component.d.ts.map +1 -0
  62. package/dist/lib/parts/component-part.component.js +221 -0
  63. package/dist/lib/parts/component-part.component.js.map +1 -0
  64. package/dist/lib/parts/index.d.ts +1 -0
  65. package/dist/lib/parts/index.d.ts.map +1 -1
  66. package/dist/lib/parts/index.js +1 -0
  67. package/dist/lib/parts/index.js.map +1 -1
  68. package/dist/lib/parts/query-part.component.d.ts +25 -1
  69. package/dist/lib/parts/query-part.component.d.ts.map +1 -1
  70. package/dist/lib/parts/query-part.component.js +93 -10
  71. package/dist/lib/parts/query-part.component.js.map +1 -1
  72. package/dist/lib/parts/view-part.component.d.ts +18 -1
  73. package/dist/lib/parts/view-part.component.d.ts.map +1 -1
  74. package/dist/lib/parts/view-part.component.js +74 -10
  75. package/dist/lib/parts/view-part.component.js.map +1 -1
  76. package/dist/lib/parts/weburl-part.component.d.ts +14 -0
  77. package/dist/lib/parts/weburl-part.component.d.ts.map +1 -1
  78. package/dist/lib/parts/weburl-part.component.js +62 -5
  79. package/dist/lib/parts/weburl-part.component.js.map +1 -1
  80. package/dist/public-api.d.ts +8 -0
  81. package/dist/public-api.d.ts.map +1 -1
  82. package/dist/public-api.js +8 -0
  83. package/dist/public-api.js.map +1 -1
  84. package/package.json +15 -13
@@ -1 +1 @@
1
- {"version":3,"file":"weburl-part.component.js","sourceRoot":"","sources":["../../../src/lib/parts/weburl-part.component.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,SAAS,EAAiC,SAAS,EAAiB,MAAM,eAAe,CAAC;AAEnG,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAA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IAC7B,CAAC;IAED;;OAEG;IACI,aAAa,CAAC,MAAa;QAC9B,oEAAoE;QACpE,IAAI,CAAC,QAAQ,CAAC,mFAAmF,CAAC,CAAC;IACvG,CAAC;IAED,6CAA6C;IACtC,aAAa,CAAC,MAAa;QAChC,OAAO,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;IACpC,CAAC;6GAxKQ,mBAAmB;6DAAnB,mBAAmB;;;;;;YAtNxB,8BAAkF;YAEhF,qFAAiB;YAQjB,gGAAoB;YAkBpB,gGAA+C;YAU/C,2EAA8C;YA+E9C,qFAAkE;YASpE,iBAAM;;YA9H+C,AAA5B,wCAA2B,2BAA6B;YAE/E,cAKC;YALD,wCAKC;YAGD,cAeC;YAfD,2CAeC;YAGD,cAOC;YAPD,8EAOC;YAGD,cA4EC;YA5ED,6EA4EC;YAGD,cAQC;YARD,qGAQC;;;AAyFE,mBAAmB;IA3N/B,aAAa,CAAC,iBAAiB,EAAE,qBAAqB,CAAC;GA2N3C,mBAAmB,CAyK/B;;iFAzKY,mBAAmB;cA1N/B,SAAS;6BACI,KAAK,YACL,gBAAgB,YAChB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SAgIL;;kBAwFJ,SAAS;mBAAC,QAAQ;;kFADV,mBAAmB","sourcesContent":["import { Component, ChangeDetectorRef, ElementRef, ViewChild, AfterViewInit } from '@angular/core';\nimport { DomSanitizer, SafeResourceUrl } from '@angular/platform-browser';\nimport { RegisterClass } from '@memberjunction/global';\nimport { BaseDashboardPart } from './base-dashboard-part';\nimport { PanelConfig } from '../models/dashboard-types';\n\n/**\n * Runtime renderer for WebURL dashboard parts.\n * Displays web content in an iframe with configurable sandbox permissions.\n */\n@RegisterClass(BaseDashboardPart, 'WebURLPanelRenderer')\n@Component({\n standalone: false,\n selector: 'mj-weburl-part',\n template: `\n <div class=\"weburl-part\" [class.loading]=\"IsLoading\" [class.error]=\"ErrorMessage\">\n <!-- Loading state -->\n @if (IsLoading) {\n <div class=\"loading-state\">\n <i class=\"fa-solid fa-spinner fa-spin\"></i>\n <span>Loading...</span>\n </div>\n }\n \n <!-- Error state -->\n @if (ErrorMessage) {\n <mj-empty-state\n class=\"part-placeholder\"\n Variant=\"error\"\n Icon=\"fa-solid fa-triangle-exclamation\"\n Title=\"Couldn't load content\"\n [Message]=\"ErrorMessage\"\n Size=\"compact\">\n @if (rawUrl) {\n <a actions [href]=\"rawUrl\" target=\"_blank\" class=\"open-link\">\n <i class=\"fa-solid fa-up-right-from-square\"></i>\n Open in new window\n </a>\n }\n </mj-empty-state>\n }\n\n <!-- No URL configured -->\n @if (!IsLoading && !ErrorMessage && !SafeUrl) {\n <mj-empty-state\n class=\"part-placeholder\"\n Icon=\"fa-solid fa-globe\"\n Title=\"No URL Configured\"\n Message=\"Use Edit part to set a URL.\"\n Size=\"compact\" />\n }\n \n <!-- Iframe container - sandbox and allowfullscreen must be static, so we use ng-container to switch -->\n @if (!IsLoading && !ErrorMessage && SafeUrl) {\n <!-- Standard sandbox + fullscreen enabled -->\n @if (sandboxMode === 'standard' && allowFullscreen) {\n <iframe\n #iframe\n [src]=\"SafeUrl\"\n sandbox=\"allow-scripts allow-same-origin allow-forms allow-popups\"\n allowfullscreen\n [title]=\"Panel?.title || 'Embedded content'\"\n (load)=\"onIframeLoad()\"\n (error)=\"onIframeError($event)\"\n class=\"content-iframe\">\n </iframe>\n }\n <!-- Standard sandbox + fullscreen disabled -->\n @if (sandboxMode === 'standard' && !allowFullscreen) {\n <iframe\n #iframe\n [src]=\"SafeUrl\"\n sandbox=\"allow-scripts allow-same-origin allow-forms allow-popups\"\n [title]=\"Panel?.title || 'Embedded content'\"\n (load)=\"onIframeLoad()\"\n (error)=\"onIframeError($event)\"\n class=\"content-iframe\">\n </iframe>\n }\n <!-- Strict sandbox + fullscreen enabled -->\n @if (sandboxMode === 'strict' && allowFullscreen) {\n <iframe\n #iframe\n [src]=\"SafeUrl\"\n sandbox=\"allow-scripts\"\n allowfullscreen\n [title]=\"Panel?.title || 'Embedded content'\"\n (load)=\"onIframeLoad()\"\n (error)=\"onIframeError($event)\"\n class=\"content-iframe\">\n </iframe>\n }\n <!-- Strict sandbox + fullscreen disabled -->\n @if (sandboxMode === 'strict' && !allowFullscreen) {\n <iframe\n #iframe\n [src]=\"SafeUrl\"\n sandbox=\"allow-scripts\"\n [title]=\"Panel?.title || 'Embedded content'\"\n (load)=\"onIframeLoad()\"\n (error)=\"onIframeError($event)\"\n class=\"content-iframe\">\n </iframe>\n }\n <!-- Permissive sandbox + fullscreen enabled -->\n @if (sandboxMode === 'permissive' && allowFullscreen) {\n <iframe\n #iframe\n [src]=\"SafeUrl\"\n sandbox=\"allow-scripts allow-same-origin allow-forms allow-popups allow-modals allow-top-navigation\"\n allowfullscreen\n [title]=\"Panel?.title || 'Embedded content'\"\n (load)=\"onIframeLoad()\"\n (error)=\"onIframeError($event)\"\n class=\"content-iframe\">\n </iframe>\n }\n <!-- Permissive sandbox + fullscreen disabled -->\n @if (sandboxMode === 'permissive' && !allowFullscreen) {\n <iframe\n #iframe\n [src]=\"SafeUrl\"\n sandbox=\"allow-scripts allow-same-origin allow-forms allow-popups allow-modals allow-top-navigation\"\n [title]=\"Panel?.title || 'Embedded content'\"\n (load)=\"onIframeLoad()\"\n (error)=\"onIframeError($event)\"\n class=\"content-iframe\">\n </iframe>\n }\n }\n \n <!-- Fallback link shown below iframe if content might be blocked -->\n @if (!IsLoading && !ErrorMessage && SafeUrl && showFallbackLink) {\n <div class=\"iframe-fallback\">\n <span>If the content doesn't load:</span>\n <a [href]=\"rawUrl\" target=\"_blank\">\n <i class=\"fa-solid fa-external-link-alt\"></i>\n Open in new window\n </a>\n </div>\n }\n </div>\n `,\n styles: [`\n :host {\n display: block;\n width: 100%;\n height: 100%;\n }\n\n .weburl-part {\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n background: var(--mj-bg-surface);\n position: relative; /* Required for overlay positioning */\n }\n\n .loading-state {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n height: 100%;\n color: var(--mj-text-secondary);\n text-align: center;\n padding: 24px;\n }\n\n .loading-state i {\n font-size: 48px;\n color: var(--mj-text-muted);\n margin-bottom: 16px;\n }\n\n .part-placeholder {\n height: 100%;\n }\n\n /* Projected \"open in new window\" link inside the error empty-state */\n .open-link {\n padding: 8px 16px;\n background: var(--mj-brand-primary);\n color: var(--mj-text-inverse);\n text-decoration: none;\n border-radius: 4px;\n display: flex;\n align-items: center;\n gap: 8px;\n font-size: 14px;\n }\n\n .open-link:hover {\n background: var(--mj-brand-primary-hover);\n }\n\n .content-iframe {\n width: 100%;\n height: 100%;\n border: none;\n flex: 1;\n }\n\n .iframe-fallback {\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 8px;\n padding: 8px;\n background: var(--mj-bg-surface-card);\n border-top: 1px solid var(--mj-border-default);\n font-size: 12px;\n color: var(--mj-text-secondary);\n }\n\n .iframe-fallback a {\n color: var(--mj-brand-primary);\n text-decoration: none;\n display: flex;\n align-items: center;\n gap: 4px;\n }\n\n .iframe-fallback a:hover {\n text-decoration: underline;\n }\n `]\n})\nexport class WebURLPartComponent extends BaseDashboardPart implements AfterViewInit {\n @ViewChild('iframe') IframeRef!: ElementRef<HTMLIFrameElement>;\n\n /** @deprecated Use {@link IframeRef}. */\n get iframeRef(): ElementRef<HTMLIFrameElement> {\n return this.IframeRef;\n }\n /** @deprecated Use {@link IframeRef}. */\n set iframeRef(value: ElementRef<HTMLIFrameElement>) {\n this.IframeRef = value;\n }\n\n public SafeUrl: SafeResourceUrl | null = null;\n public RawUrl: string = '';\n\n /** @deprecated Use {@link RawUrl}. */\n public get rawUrl(): string {\n return this.RawUrl;\n }\n /** @deprecated Use {@link RawUrl}. */\n public set rawUrl(value: string) {\n this.RawUrl = value;\n }\n public SandboxMode: 'standard' | 'strict' | 'permissive' = 'standard';\n\n /** @deprecated Use {@link SandboxMode}. */\n public get sandboxMode(): 'standard' | 'strict' | 'permissive' {\n return this.SandboxMode;\n }\n /** @deprecated Use {@link SandboxMode}. */\n public set sandboxMode(value: 'standard' | 'strict' | 'permissive') {\n this.SandboxMode = value;\n }\n public AllowFullscreen: boolean = true;\n\n /** @deprecated Use {@link AllowFullscreen}. */\n public get allowFullscreen(): boolean {\n return this.AllowFullscreen;\n }\n /** @deprecated Use {@link AllowFullscreen}. */\n public set allowFullscreen(value: boolean) {\n this.AllowFullscreen = value;\n }\n public ShowFallbackLink: boolean = false;\n\n /** @deprecated Use {@link ShowFallbackLink}. */\n public get showFallbackLink(): boolean {\n return this.ShowFallbackLink;\n }\n /** @deprecated Use {@link ShowFallbackLink}. */\n public set showFallbackLink(value: boolean) {\n this.ShowFallbackLink = value;\n } // Hidden by default, shown if content might be blocked\n\n private sanitizer: DomSanitizer;\n private loadCheckTimeout: ReturnType<typeof setTimeout> | null = null;\n private iframeLoaded: boolean = false;\n\n constructor(cdr: ChangeDetectorRef, sanitizer: DomSanitizer) {\n super(cdr);\n this.sanitizer = sanitizer;\n }\n\n ngAfterViewInit(): void {\n // Initial load if panel is already set\n if (this.Panel) {\n this.loadContent();\n }\n }\n\n public async loadContent(): Promise<void> {\n const config = this.getConfig<PanelConfig>();\n const url = config?.['url'] as string | undefined;\n\n // Clear any existing timeout\n if (this.loadCheckTimeout) {\n clearTimeout(this.loadCheckTimeout);\n this.loadCheckTimeout = null;\n }\n\n // Reset state\n this.iframeLoaded = false;\n this.ShowFallbackLink = false;\n\n if (!url) {\n this.SafeUrl = null;\n this.RawUrl = '';\n this.cdr.detectChanges();\n return;\n }\n\n this.setLoading(true);\n\n try {\n // Store raw URL for fallback link\n this.RawUrl = url;\n\n // Sanitize and set URL for iframe src binding\n this.SafeUrl = this.sanitizer.bypassSecurityTrustResourceUrl(url);\n\n // Set sandbox mode (used by template to select correct iframe)\n this.SandboxMode = (config?.['sandboxMode'] as 'standard' | 'strict' | 'permissive') || 'standard';\n\n // Set fullscreen permission\n this.AllowFullscreen = (config?.['allowFullscreen'] as boolean) ?? true;\n\n this.setLoading(false);\n\n // Set up a delayed check to detect if embedding might be blocked\n // If after 3 seconds the iframe hasn't successfully loaded content we can access,\n // show the blocked overlay. This is a heuristic since we can't detect X-Frame-Options directly.\n this.loadCheckTimeout = setTimeout(() => {\n this.checkIfBlocked();\n }, 3000);\n\n } catch (error) {\n this.setError(error instanceof Error ? error.message : 'Failed to load URL');\n }\n }\n\n /**\n * Check if the iframe content might be blocked.\n * Called after a timeout - if the iframe load event hasn't fired, show the fallback link.\n */\n private checkIfBlocked(): void {\n // If the load event hasn't fired after the timeout, content might be blocked\n if (!this.iframeLoaded) {\n this.ShowFallbackLink = true;\n this.cdr.detectChanges();\n }\n // If iframeLoaded is true, content loaded successfully - keep fallback hidden\n }\n\n /**\n * Handle iframe load event\n */\n public OnIframeLoad(): void {\n // Mark that the load event fired\n this.iframeLoaded = true;\n\n // Clear the timeout since the iframe loaded\n if (this.loadCheckTimeout) {\n clearTimeout(this.loadCheckTimeout);\n this.loadCheckTimeout = null;\n }\n\n // The iframe loaded something - could still be blocked content\n // We can't reliably detect X-Frame-Options blocking from JS\n // The fallback link provides a way for users to open the site if it doesn't load\n this.cdr.detectChanges();\n }\n\n /** @deprecated Use {@link OnIframeLoad}. */\n public onIframeLoad(): void {\n return this.OnIframeLoad();\n }\n\n /**\n * Handle iframe error event\n */\n public OnIframeError(_event: Event): void {\n // This may fire for some load failures, but not for X-Frame-Options\n this.setError('This site cannot be embedded. It may block iframe embedding for security reasons.');\n }\n\n /** @deprecated Use {@link OnIframeError}. */\n public onIframeError(_event: Event): void {\n return this.OnIframeError(_event);\n }\n}\n"]}
1
+ {"version":3,"file":"weburl-part.component.js","sourceRoot":"","sources":["../../../src/lib/parts/weburl-part.component.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,SAAS,EAAiC,SAAS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3N/B,aAAa,CAAC,iBAAiB,EAAE,qBAAqB,CAAC;GA2N3C,mBAAmB,CAgO/B;;iFAhOY,mBAAmB;cA1N/B,SAAS;6BACI,KAAK,YACL,gBAAgB,YAChB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SAgIL;;kBAwFJ,SAAS;mBAAC,QAAQ;;kFADV,mBAAmB","sourcesContent":["import { Component, ChangeDetectorRef, ElementRef, ViewChild, AfterViewInit } from '@angular/core';\nimport { DomSanitizer, SafeResourceUrl } from '@angular/platform-browser';\nimport { RegisterClass } from '@memberjunction/global';\nimport { BaseDashboardPart } from './base-dashboard-part';\nimport { PanelConfig } from '../models/dashboard-types';\nimport { FillUrlPlaceholders, PartInputProblemMessage } from '../models/dashboard-properties';\nimport { WebUrlPartInterface } from '../models/dashboard-part-interfaces';\n\n/**\n * Runtime renderer for WebURL dashboard parts.\n * Displays web content in an iframe with configurable sandbox permissions.\n */\n@RegisterClass(BaseDashboardPart, 'WebURLPanelRenderer')\n@Component({\n standalone: false,\n selector: 'mj-weburl-part',\n template: `\n <div class=\"weburl-part\" [class.loading]=\"IsLoading\" [class.error]=\"ErrorMessage\">\n <!-- Loading state -->\n @if (IsLoading) {\n <div class=\"loading-state\">\n <i class=\"fa-solid fa-spinner fa-spin\"></i>\n <span>Loading...</span>\n </div>\n }\n \n <!-- Error state -->\n @if (ErrorMessage) {\n <mj-empty-state\n class=\"part-placeholder\"\n Variant=\"error\"\n Icon=\"fa-solid fa-triangle-exclamation\"\n Title=\"Couldn't load content\"\n [Message]=\"ErrorMessage\"\n Size=\"compact\">\n @if (rawUrl) {\n <a actions [href]=\"rawUrl\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"open-link\">\n <i class=\"fa-solid fa-up-right-from-square\"></i>\n Open in new window\n </a>\n }\n </mj-empty-state>\n }\n\n <!-- No URL configured -->\n @if (!IsLoading && !ErrorMessage && !SafeUrl) {\n <mj-empty-state\n class=\"part-placeholder\"\n Icon=\"fa-solid fa-globe\"\n Title=\"No URL Configured\"\n Message=\"Use Edit part to set a URL.\"\n Size=\"compact\" />\n }\n \n <!-- Iframe container - sandbox and allowfullscreen must be static, so we use ng-container to switch -->\n @if (!IsLoading && !ErrorMessage && SafeUrl) {\n <!-- Standard sandbox + fullscreen enabled -->\n @if (sandboxMode === 'standard' && allowFullscreen) {\n <iframe\n #iframe\n [src]=\"SafeUrl\"\n sandbox=\"allow-scripts allow-same-origin allow-forms allow-popups\"\n allowfullscreen\n [title]=\"Panel?.title || 'Embedded content'\"\n (load)=\"onIframeLoad()\"\n (error)=\"onIframeError($event)\"\n class=\"content-iframe\">\n </iframe>\n }\n <!-- Standard sandbox + fullscreen disabled -->\n @if (sandboxMode === 'standard' && !allowFullscreen) {\n <iframe\n #iframe\n [src]=\"SafeUrl\"\n sandbox=\"allow-scripts allow-same-origin allow-forms allow-popups\"\n [title]=\"Panel?.title || 'Embedded content'\"\n (load)=\"onIframeLoad()\"\n (error)=\"onIframeError($event)\"\n class=\"content-iframe\">\n </iframe>\n }\n <!-- Strict sandbox + fullscreen enabled -->\n @if (sandboxMode === 'strict' && allowFullscreen) {\n <iframe\n #iframe\n [src]=\"SafeUrl\"\n sandbox=\"allow-scripts\"\n allowfullscreen\n [title]=\"Panel?.title || 'Embedded content'\"\n (load)=\"onIframeLoad()\"\n (error)=\"onIframeError($event)\"\n class=\"content-iframe\">\n </iframe>\n }\n <!-- Strict sandbox + fullscreen disabled -->\n @if (sandboxMode === 'strict' && !allowFullscreen) {\n <iframe\n #iframe\n [src]=\"SafeUrl\"\n sandbox=\"allow-scripts\"\n [title]=\"Panel?.title || 'Embedded content'\"\n (load)=\"onIframeLoad()\"\n (error)=\"onIframeError($event)\"\n class=\"content-iframe\">\n </iframe>\n }\n <!-- Permissive sandbox + fullscreen enabled -->\n @if (sandboxMode === 'permissive' && allowFullscreen) {\n <iframe\n #iframe\n [src]=\"SafeUrl\"\n sandbox=\"allow-scripts allow-same-origin allow-forms allow-popups allow-modals allow-top-navigation\"\n allowfullscreen\n [title]=\"Panel?.title || 'Embedded content'\"\n (load)=\"onIframeLoad()\"\n (error)=\"onIframeError($event)\"\n class=\"content-iframe\">\n </iframe>\n }\n <!-- Permissive sandbox + fullscreen disabled -->\n @if (sandboxMode === 'permissive' && !allowFullscreen) {\n <iframe\n #iframe\n [src]=\"SafeUrl\"\n sandbox=\"allow-scripts allow-same-origin allow-forms allow-popups allow-modals allow-top-navigation\"\n [title]=\"Panel?.title || 'Embedded content'\"\n (load)=\"onIframeLoad()\"\n (error)=\"onIframeError($event)\"\n class=\"content-iframe\">\n </iframe>\n }\n }\n \n <!-- Fallback link shown below iframe if content might be blocked -->\n @if (!IsLoading && !ErrorMessage && SafeUrl && showFallbackLink) {\n <div class=\"iframe-fallback\">\n <span>If the content doesn't load:</span>\n <a [href]=\"rawUrl\" target=\"_blank\" rel=\"noopener noreferrer\">\n <i class=\"fa-solid fa-external-link-alt\"></i>\n Open in new window\n </a>\n </div>\n }\n </div>\n `,\n styles: [`\n :host {\n display: block;\n width: 100%;\n height: 100%;\n }\n\n .weburl-part {\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n background: var(--mj-bg-surface);\n position: relative; /* Required for overlay positioning */\n }\n\n .loading-state {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n height: 100%;\n color: var(--mj-text-secondary);\n text-align: center;\n padding: 24px;\n }\n\n .loading-state i {\n font-size: 48px;\n color: var(--mj-text-muted);\n margin-bottom: 16px;\n }\n\n .part-placeholder {\n height: 100%;\n }\n\n /* Projected \"open in new window\" link inside the error empty-state */\n .open-link {\n padding: 8px 16px;\n background: var(--mj-brand-primary);\n color: var(--mj-text-inverse);\n text-decoration: none;\n border-radius: 4px;\n display: flex;\n align-items: center;\n gap: 8px;\n font-size: 14px;\n }\n\n .open-link:hover {\n background: var(--mj-brand-primary-hover);\n }\n\n .content-iframe {\n width: 100%;\n height: 100%;\n border: none;\n flex: 1;\n }\n\n .iframe-fallback {\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 8px;\n padding: 8px;\n background: var(--mj-bg-surface-card);\n border-top: 1px solid var(--mj-border-default);\n font-size: 12px;\n color: var(--mj-text-secondary);\n }\n\n .iframe-fallback a {\n color: var(--mj-brand-primary);\n text-decoration: none;\n display: flex;\n align-items: center;\n gap: 4px;\n }\n\n .iframe-fallback a:hover {\n text-decoration: underline;\n }\n `]\n})\nexport class WebURLPartComponent extends BaseDashboardPart implements AfterViewInit {\n @ViewChild('iframe') IframeRef!: ElementRef<HTMLIFrameElement>;\n\n /** @deprecated Use {@link IframeRef}. */\n get iframeRef(): ElementRef<HTMLIFrameElement> {\n return this.IframeRef;\n }\n /** @deprecated Use {@link IframeRef}. */\n set iframeRef(value: ElementRef<HTMLIFrameElement>) {\n this.IframeRef = value;\n }\n\n public SafeUrl: SafeResourceUrl | null = null;\n public RawUrl: string = '';\n\n /** @deprecated Use {@link RawUrl}. */\n public get rawUrl(): string {\n return this.RawUrl;\n }\n /** @deprecated Use {@link RawUrl}. */\n public set rawUrl(value: string) {\n this.RawUrl = value;\n }\n public SandboxMode: 'standard' | 'strict' | 'permissive' = 'standard';\n\n /** @deprecated Use {@link SandboxMode}. */\n public get sandboxMode(): 'standard' | 'strict' | 'permissive' {\n return this.SandboxMode;\n }\n /** @deprecated Use {@link SandboxMode}. */\n public set sandboxMode(value: 'standard' | 'strict' | 'permissive') {\n this.SandboxMode = value;\n }\n public AllowFullscreen: boolean = true;\n\n /** @deprecated Use {@link AllowFullscreen}. */\n public get allowFullscreen(): boolean {\n return this.AllowFullscreen;\n }\n /** @deprecated Use {@link AllowFullscreen}. */\n public set allowFullscreen(value: boolean) {\n this.AllowFullscreen = value;\n }\n public ShowFallbackLink: boolean = false;\n\n /** @deprecated Use {@link ShowFallbackLink}. */\n public get showFallbackLink(): boolean {\n return this.ShowFallbackLink;\n }\n /** @deprecated Use {@link ShowFallbackLink}. */\n public set showFallbackLink(value: boolean) {\n this.ShowFallbackLink = value;\n } // Hidden by default, shown if content might be blocked\n\n private sanitizer: DomSanitizer;\n /** True while the part shows a problem with its mappings. */\n private showingInputProblem = false;\n private loadCheckTimeout: ReturnType<typeof setTimeout> | null = null;\n private iframeLoaded: boolean = false;\n\n constructor(cdr: ChangeDetectorRef, sanitizer: DomSanitizer) {\n super(cdr);\n this.sanitizer = sanitizer;\n }\n\n ngAfterViewInit(): void {\n // Initial load if panel is already set\n if (this.Panel) {\n this.loadContent();\n }\n }\n\n protected override cleanup(): void {\n if (this.loadCheckTimeout) {\n clearTimeout(this.loadCheckTimeout);\n this.loadCheckTimeout = null;\n }\n super.cleanup();\n }\n\n public async loadContent(): Promise<void> {\n const config = this.getConfig<PanelConfig>();\n const url = this.fillPlaceholders(config?.['url'] as string | undefined);\n if (url === null) return; // a mapping problem is shown\n\n // Clear any existing timeout\n if (this.loadCheckTimeout) {\n clearTimeout(this.loadCheckTimeout);\n this.loadCheckTimeout = null;\n }\n\n // Reset state\n this.iframeLoaded = false;\n this.ShowFallbackLink = false;\n this.ErrorMessage = null;\n\n if (!url) {\n this.SafeUrl = null;\n this.RawUrl = '';\n this.cdr.detectChanges();\n return;\n }\n\n // SECURITY: only http(s) URLs may be embedded. bypassSecurityTrustResourceUrl disables\n // Angular's sanitizer, so without this check a stored javascript: (or other scheme) URL\n // in a shared dashboard panel would execute in every viewer's browser.\n if (!this.isEmbeddableUrl(url)) {\n this.SafeUrl = null;\n this.RawUrl = '';\n this.setError('Only http:// and https:// URLs can be embedded.');\n return;\n }\n\n this.setLoading(true);\n\n try {\n // Store raw URL for fallback link\n this.RawUrl = url;\n\n // Sanitize and set URL for iframe src binding\n this.SafeUrl = this.sanitizer.bypassSecurityTrustResourceUrl(url);\n\n // Set sandbox mode (used by template to select correct iframe)\n this.SandboxMode = (config?.['sandboxMode'] as 'standard' | 'strict' | 'permissive') || 'standard';\n\n // Set fullscreen permission\n this.AllowFullscreen = (config?.['allowFullscreen'] as boolean) ?? true;\n\n this.setLoading(false);\n\n // Set up a delayed check to detect if embedding might be blocked\n // If after 3 seconds the iframe hasn't successfully loaded content we can access,\n // show the blocked overlay. This is a heuristic since we can't detect X-Frame-Options directly.\n this.loadCheckTimeout = setTimeout(() => {\n this.checkIfBlocked();\n }, 3000);\n\n } catch (error) {\n this.setError(error instanceof Error ? error.message : 'Failed to load URL');\n }\n }\n\n /**\n * The URL with its `{Name}` placeholders filled, each value URL-encoded, from the part's input\n * mappings. A part without mappings keeps its URL exactly as configured. Returns null, showing\n * why, when a mapping is broken or a placeholder has no value.\n */\n private fillPlaceholders(url: string | undefined): string | undefined | null {\n const resolution = this.UpdateInputs(WebUrlPartInterface(url).Inputs);\n if (!resolution || !url) return url;\n const problem = PartInputProblemMessage(resolution);\n if (this.showingInputProblem && !problem) this.ErrorMessage = null; // the values arrived\n this.showingInputProblem = problem !== null;\n if (problem) {\n this.SafeUrl = null;\n this.RawUrl = '';\n this.setError(problem);\n return null;\n }\n return FillUrlPlaceholders(url, resolution.Values);\n }\n\n /**\n * True when the URL parses and uses a scheme that is safe to hand to\n * bypassSecurityTrustResourceUrl for iframe embedding (http/https only).\n */\n private isEmbeddableUrl(url: string): boolean {\n try {\n const parsed = new URL(url);\n return parsed.protocol === 'http:' || parsed.protocol === 'https:';\n } catch {\n return false;\n }\n }\n\n /**\n * Check if the iframe content might be blocked.\n * Called after a timeout - if the iframe load event hasn't fired, show the fallback link.\n */\n private checkIfBlocked(): void {\n // If the load event hasn't fired after the timeout, content might be blocked\n if (!this.iframeLoaded) {\n this.ShowFallbackLink = true;\n this.cdr.detectChanges();\n }\n // If iframeLoaded is true, content loaded successfully - keep fallback hidden\n }\n\n /**\n * Handle iframe load event\n */\n public OnIframeLoad(): void {\n // Mark that the load event fired\n this.iframeLoaded = true;\n\n // Clear the timeout since the iframe loaded\n if (this.loadCheckTimeout) {\n clearTimeout(this.loadCheckTimeout);\n this.loadCheckTimeout = null;\n }\n\n // The iframe loaded something - could still be blocked content\n // We can't reliably detect X-Frame-Options blocking from JS\n // The fallback link provides a way for users to open the site if it doesn't load\n this.cdr.detectChanges();\n }\n\n /** @deprecated Use {@link OnIframeLoad}. */\n public onIframeLoad(): void {\n return this.OnIframeLoad();\n }\n\n /**\n * Handle iframe error event\n */\n public OnIframeError(_event: Event): void {\n // This may fire for some load failures, but not for X-Frame-Options\n this.setError('This site cannot be embedded. It may block iframe embedding for security reasons.');\n }\n\n /** @deprecated Use {@link OnIframeError}. */\n public onIframeError(_event: Event): void {\n return this.OnIframeError(_event);\n }\n}\n"]}
@@ -11,6 +11,8 @@ export * from './lib/dialogs/part-dialog/dashboard-part-dialog.component';
11
11
  export * from './lib/dialogs/dashboard-name-dialog/dashboard-name-dialog.component';
12
12
  export * from './lib/dialogs/add-panel-dialog/add-panel-dialog.component';
13
13
  export * from './lib/dialogs/edit-part-dialog/edit-part-dialog.component';
14
+ export * from './lib/dialogs/properties-dialog/dashboard-properties-dialog.component';
15
+ export * from './lib/dialogs/property-default-editor/property-default-editor.component';
14
16
  export * from './lib/config-dialogs/confirm-dialog.component';
15
17
  export * from './lib/config-panels/base-config-panel';
16
18
  export * from './lib/parts/base-dashboard-part';
@@ -18,12 +20,18 @@ export * from './lib/config-panels/weburl-config-panel.component';
18
20
  export * from './lib/config-panels/view-config-panel.component';
19
21
  export * from './lib/config-panels/query-config-panel.component';
20
22
  export * from './lib/config-panels/artifact-config-panel.component';
23
+ export * from './lib/config-panels/component-config-panel.component';
21
24
  export * from './lib/parts/weburl-part.component';
22
25
  export * from './lib/parts/view-part.component';
23
26
  export * from './lib/parts/query-part.component';
24
27
  export * from './lib/parts/artifact-part.component';
28
+ export * from './lib/parts/component-part.component';
25
29
  export * from './lib/models/dashboard-types';
26
30
  export * from './lib/models/dashboard-layout-editor';
27
31
  export * from './lib/models/remove-part-confirm';
32
+ export * from './lib/models/dashboard-properties';
33
+ export * from './lib/models/dashboard-config-validator';
34
+ export * from './lib/models/dashboard-part-interfaces';
35
+ export * from './lib/models/part-inputs-editor';
28
36
  export * from './lib/services/golden-layout-wrapper.service';
29
37
  //# sourceMappingURL=public-api.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"public-api.d.ts","sourceRoot":"","sources":["../src/public-api.ts"],"names":[],"mappings":"AAKA,cAAc,+BAA+B,CAAC;AAG9C,cAAc,mDAAmD,CAAC;AAGlE,cAAc,qDAAqD,CAAC;AAGpE,cAAc,iDAAiD,CAAC;AAIhE,cAAc,+CAA+C,CAAC;AAC9D,cAAc,yDAAyD,CAAC;AACxE,cAAc,8DAA8D,CAAC;AAI7E,cAAc,+CAA+C,CAAC;AAC9D,cAAc,6CAA6C,CAAC;AAG5D,cAAc,2DAA2D,CAAC;AAC1E,cAAc,qEAAqE,CAAC;AACpF,cAAc,2DAA2D,CAAC;AAC1E,cAAc,2DAA2D,CAAC;AAC1E,cAAc,+CAA+C,CAAC;AAG9D,cAAc,uCAAuC,CAAC;AACtD,cAAc,iCAAiC,CAAC;AAGhD,cAAc,mDAAmD,CAAC;AAClE,cAAc,iDAAiD,CAAC;AAChE,cAAc,kDAAkD,CAAC;AACjE,cAAc,qDAAqD,CAAC;AAGpE,cAAc,mCAAmC,CAAC;AAClD,cAAc,iCAAiC,CAAC;AAChD,cAAc,kCAAkC,CAAC;AACjD,cAAc,qCAAqC,CAAC;AAGpD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,sCAAsC,CAAC;AACrD,cAAc,kCAAkC,CAAC;AAGjD,cAAc,8CAA8C,CAAC"}
1
+ {"version":3,"file":"public-api.d.ts","sourceRoot":"","sources":["../src/public-api.ts"],"names":[],"mappings":"AAKA,cAAc,+BAA+B,CAAC;AAG9C,cAAc,mDAAmD,CAAC;AAGlE,cAAc,qDAAqD,CAAC;AAGpE,cAAc,iDAAiD,CAAC;AAIhE,cAAc,+CAA+C,CAAC;AAC9D,cAAc,yDAAyD,CAAC;AACxE,cAAc,8DAA8D,CAAC;AAI7E,cAAc,+CAA+C,CAAC;AAC9D,cAAc,6CAA6C,CAAC;AAG5D,cAAc,2DAA2D,CAAC;AAC1E,cAAc,qEAAqE,CAAC;AACpF,cAAc,2DAA2D,CAAC;AAC1E,cAAc,2DAA2D,CAAC;AAC1E,cAAc,uEAAuE,CAAC;AACtF,cAAc,yEAAyE,CAAC;AACxF,cAAc,+CAA+C,CAAC;AAG9D,cAAc,uCAAuC,CAAC;AACtD,cAAc,iCAAiC,CAAC;AAGhD,cAAc,mDAAmD,CAAC;AAClE,cAAc,iDAAiD,CAAC;AAChE,cAAc,kDAAkD,CAAC;AACjE,cAAc,qDAAqD,CAAC;AACpE,cAAc,sDAAsD,CAAC;AAGrE,cAAc,mCAAmC,CAAC;AAClD,cAAc,iCAAiC,CAAC;AAChD,cAAc,kCAAkC,CAAC;AACjD,cAAc,qCAAqC,CAAC;AACpD,cAAc,sCAAsC,CAAC;AAGrD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,sCAAsC,CAAC;AACrD,cAAc,kCAAkC,CAAC;AACjD,cAAc,mCAAmC,CAAC;AAClD,cAAc,yCAAyC,CAAC;AACxD,cAAc,wCAAwC,CAAC;AACvD,cAAc,iCAAiC,CAAC;AAGhD,cAAc,8CAA8C,CAAC"}
@@ -23,6 +23,8 @@ export * from './lib/dialogs/part-dialog/dashboard-part-dialog.component';
23
23
  export * from './lib/dialogs/dashboard-name-dialog/dashboard-name-dialog.component';
24
24
  export * from './lib/dialogs/add-panel-dialog/add-panel-dialog.component';
25
25
  export * from './lib/dialogs/edit-part-dialog/edit-part-dialog.component';
26
+ export * from './lib/dialogs/properties-dialog/dashboard-properties-dialog.component';
27
+ export * from './lib/dialogs/property-default-editor/property-default-editor.component';
26
28
  export * from './lib/config-dialogs/confirm-dialog.component';
27
29
  // Base Classes for Extensibility
28
30
  export * from './lib/config-panels/base-config-panel';
@@ -32,15 +34,21 @@ export * from './lib/config-panels/weburl-config-panel.component';
32
34
  export * from './lib/config-panels/view-config-panel.component';
33
35
  export * from './lib/config-panels/query-config-panel.component';
34
36
  export * from './lib/config-panels/artifact-config-panel.component';
37
+ export * from './lib/config-panels/component-config-panel.component';
35
38
  // Runtime Part Components (pluggable renderers loaded via ClassFactory)
36
39
  export * from './lib/parts/weburl-part.component';
37
40
  export * from './lib/parts/view-part.component';
38
41
  export * from './lib/parts/query-part.component';
39
42
  export * from './lib/parts/artifact-part.component';
43
+ export * from './lib/parts/component-part.component';
40
44
  // Types and Models
41
45
  export * from './lib/models/dashboard-types';
42
46
  export * from './lib/models/dashboard-layout-editor';
43
47
  export * from './lib/models/remove-part-confirm';
48
+ export * from './lib/models/dashboard-properties';
49
+ export * from './lib/models/dashboard-config-validator';
50
+ export * from './lib/models/dashboard-part-interfaces';
51
+ export * from './lib/models/part-inputs-editor';
44
52
  // Services
45
53
  export * from './lib/services/golden-layout-wrapper.service';
46
54
  //# sourceMappingURL=public-api.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"public-api.js","sourceRoot":"","sources":["../src/public-api.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,SAAS;AACT,cAAc,+BAA+B,CAAC;AAE9C,iBAAiB;AACjB,cAAc,mDAAmD,CAAC;AAElE,8BAA8B;AAC9B,cAAc,qDAAqD,CAAC;AAEpE,uBAAuB;AACvB,cAAc,iDAAiD,CAAC;AAEhE,6FAA6F;AAC7F,oFAAoF;AACpF,cAAc,+CAA+C,CAAC;AAC9D,cAAc,yDAAyD,CAAC;AACxE,cAAc,8DAA8D,CAAC;AAE7E,kGAAkG;AAClG,uGAAuG;AACvG,cAAc,+CAA+C,CAAC;AAC9D,cAAc,6CAA6C,CAAC;AAE5D,kBAAkB;AAClB,cAAc,2DAA2D,CAAC;AAC1E,cAAc,qEAAqE,CAAC;AACpF,cAAc,2DAA2D,CAAC;AAC1E,cAAc,2DAA2D,CAAC;AAC1E,cAAc,+CAA+C,CAAC;AAE9D,iCAAiC;AACjC,cAAc,uCAAuC,CAAC;AACtD,cAAc,iCAAiC,CAAC;AAEhD,oEAAoE;AACpE,cAAc,mDAAmD,CAAC;AAClE,cAAc,iDAAiD,CAAC;AAChE,cAAc,kDAAkD,CAAC;AACjE,cAAc,qDAAqD,CAAC;AAEpE,wEAAwE;AACxE,cAAc,mCAAmC,CAAC;AAClD,cAAc,iCAAiC,CAAC;AAChD,cAAc,kCAAkC,CAAC;AACjD,cAAc,qCAAqC,CAAC;AAEpD,mBAAmB;AACnB,cAAc,8BAA8B,CAAC;AAC7C,cAAc,sCAAsC,CAAC;AACrD,cAAc,kCAAkC,CAAC;AAEjD,WAAW;AACX,cAAc,8CAA8C,CAAC","sourcesContent":["/*\n * Public API Surface of @memberjunction/ng-dashboard-viewer\n */\n\n// Module\nexport * from './lib/dashboard-viewer.module';\n\n// Main Component\nexport * from './lib/dashboard-viewer/dashboard-viewer.component';\n\n// Dashboard Browser Component\nexport * from './lib/dashboard-browser/dashboard-browser.component';\n\n// Breadcrumb Component\nexport * from './lib/breadcrumb/dashboard-breadcrumb.component';\n\n// Layout Preview (a miniature of a saved dashboard layout). A host that declares the preview\n// component itself (for example a test module) declares the node component with it.\nexport * from './lib/layout-preview/dashboard-layout-preview';\nexport * from './lib/layout-preview/dashboard-layout-preview.component';\nexport * from './lib/layout-preview/dashboard-layout-preview-node.component';\n\n// Dashboard Card (one dashboard: picture, name, owner, Shared marker, favorite star). A host that\n// declares the card itself (for example a test module) declares the layout preview components with it.\nexport * from './lib/dashboard-card/dashboard-card.component';\nexport * from './lib/dashboard-card/dashboard-card.helpers';\n\n// Generic Dialogs\nexport * from './lib/dialogs/part-dialog/dashboard-part-dialog.component';\nexport * from './lib/dialogs/dashboard-name-dialog/dashboard-name-dialog.component';\nexport * from './lib/dialogs/add-panel-dialog/add-panel-dialog.component';\nexport * from './lib/dialogs/edit-part-dialog/edit-part-dialog.component';\nexport * from './lib/config-dialogs/confirm-dialog.component';\n\n// Base Classes for Extensibility\nexport * from './lib/config-panels/base-config-panel';\nexport * from './lib/parts/base-dashboard-part';\n\n// Config Panels (pluggable form components loaded via ClassFactory)\nexport * from './lib/config-panels/weburl-config-panel.component';\nexport * from './lib/config-panels/view-config-panel.component';\nexport * from './lib/config-panels/query-config-panel.component';\nexport * from './lib/config-panels/artifact-config-panel.component';\n\n// Runtime Part Components (pluggable renderers loaded via ClassFactory)\nexport * from './lib/parts/weburl-part.component';\nexport * from './lib/parts/view-part.component';\nexport * from './lib/parts/query-part.component';\nexport * from './lib/parts/artifact-part.component';\n\n// Types and Models\nexport * from './lib/models/dashboard-types';\nexport * from './lib/models/dashboard-layout-editor';\nexport * from './lib/models/remove-part-confirm';\n\n// Services\nexport * from './lib/services/golden-layout-wrapper.service';\n"]}
1
+ {"version":3,"file":"public-api.js","sourceRoot":"","sources":["../src/public-api.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,SAAS;AACT,cAAc,+BAA+B,CAAC;AAE9C,iBAAiB;AACjB,cAAc,mDAAmD,CAAC;AAElE,8BAA8B;AAC9B,cAAc,qDAAqD,CAAC;AAEpE,uBAAuB;AACvB,cAAc,iDAAiD,CAAC;AAEhE,6FAA6F;AAC7F,oFAAoF;AACpF,cAAc,+CAA+C,CAAC;AAC9D,cAAc,yDAAyD,CAAC;AACxE,cAAc,8DAA8D,CAAC;AAE7E,kGAAkG;AAClG,uGAAuG;AACvG,cAAc,+CAA+C,CAAC;AAC9D,cAAc,6CAA6C,CAAC;AAE5D,kBAAkB;AAClB,cAAc,2DAA2D,CAAC;AAC1E,cAAc,qEAAqE,CAAC;AACpF,cAAc,2DAA2D,CAAC;AAC1E,cAAc,2DAA2D,CAAC;AAC1E,cAAc,uEAAuE,CAAC;AACtF,cAAc,yEAAyE,CAAC;AACxF,cAAc,+CAA+C,CAAC;AAE9D,iCAAiC;AACjC,cAAc,uCAAuC,CAAC;AACtD,cAAc,iCAAiC,CAAC;AAEhD,oEAAoE;AACpE,cAAc,mDAAmD,CAAC;AAClE,cAAc,iDAAiD,CAAC;AAChE,cAAc,kDAAkD,CAAC;AACjE,cAAc,qDAAqD,CAAC;AACpE,cAAc,sDAAsD,CAAC;AAErE,wEAAwE;AACxE,cAAc,mCAAmC,CAAC;AAClD,cAAc,iCAAiC,CAAC;AAChD,cAAc,kCAAkC,CAAC;AACjD,cAAc,qCAAqC,CAAC;AACpD,cAAc,sCAAsC,CAAC;AAErD,mBAAmB;AACnB,cAAc,8BAA8B,CAAC;AAC7C,cAAc,sCAAsC,CAAC;AACrD,cAAc,kCAAkC,CAAC;AACjD,cAAc,mCAAmC,CAAC;AAClD,cAAc,yCAAyC,CAAC;AACxD,cAAc,wCAAwC,CAAC;AACvD,cAAc,iCAAiC,CAAC;AAEhD,WAAW;AACX,cAAc,8CAA8C,CAAC","sourcesContent":["/*\n * Public API Surface of @memberjunction/ng-dashboard-viewer\n */\n\n// Module\nexport * from './lib/dashboard-viewer.module';\n\n// Main Component\nexport * from './lib/dashboard-viewer/dashboard-viewer.component';\n\n// Dashboard Browser Component\nexport * from './lib/dashboard-browser/dashboard-browser.component';\n\n// Breadcrumb Component\nexport * from './lib/breadcrumb/dashboard-breadcrumb.component';\n\n// Layout Preview (a miniature of a saved dashboard layout). A host that declares the preview\n// component itself (for example a test module) declares the node component with it.\nexport * from './lib/layout-preview/dashboard-layout-preview';\nexport * from './lib/layout-preview/dashboard-layout-preview.component';\nexport * from './lib/layout-preview/dashboard-layout-preview-node.component';\n\n// Dashboard Card (one dashboard: picture, name, owner, Shared marker, favorite star). A host that\n// declares the card itself (for example a test module) declares the layout preview components with it.\nexport * from './lib/dashboard-card/dashboard-card.component';\nexport * from './lib/dashboard-card/dashboard-card.helpers';\n\n// Generic Dialogs\nexport * from './lib/dialogs/part-dialog/dashboard-part-dialog.component';\nexport * from './lib/dialogs/dashboard-name-dialog/dashboard-name-dialog.component';\nexport * from './lib/dialogs/add-panel-dialog/add-panel-dialog.component';\nexport * from './lib/dialogs/edit-part-dialog/edit-part-dialog.component';\nexport * from './lib/dialogs/properties-dialog/dashboard-properties-dialog.component';\nexport * from './lib/dialogs/property-default-editor/property-default-editor.component';\nexport * from './lib/config-dialogs/confirm-dialog.component';\n\n// Base Classes for Extensibility\nexport * from './lib/config-panels/base-config-panel';\nexport * from './lib/parts/base-dashboard-part';\n\n// Config Panels (pluggable form components loaded via ClassFactory)\nexport * from './lib/config-panels/weburl-config-panel.component';\nexport * from './lib/config-panels/view-config-panel.component';\nexport * from './lib/config-panels/query-config-panel.component';\nexport * from './lib/config-panels/artifact-config-panel.component';\nexport * from './lib/config-panels/component-config-panel.component';\n\n// Runtime Part Components (pluggable renderers loaded via ClassFactory)\nexport * from './lib/parts/weburl-part.component';\nexport * from './lib/parts/view-part.component';\nexport * from './lib/parts/query-part.component';\nexport * from './lib/parts/artifact-part.component';\nexport * from './lib/parts/component-part.component';\n\n// Types and Models\nexport * from './lib/models/dashboard-types';\nexport * from './lib/models/dashboard-layout-editor';\nexport * from './lib/models/remove-part-confirm';\nexport * from './lib/models/dashboard-properties';\nexport * from './lib/models/dashboard-config-validator';\nexport * from './lib/models/dashboard-part-interfaces';\nexport * from './lib/models/part-inputs-editor';\n\n// Services\nexport * from './lib/services/golden-layout-wrapper.service';\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@memberjunction/ng-dashboard-viewer",
3
- "version": "6.2.0-edge.4",
3
+ "version": "6.2.0-edge.6",
4
4
  "description": "MemberJunction: Angular components for metadata-driven dashboards with Golden Layout panels, supporting views, queries, artifacts, and custom content",
5
5
  "main": "./dist/public-api.js",
6
6
  "typings": "./dist/public-api.d.ts",
@@ -21,7 +21,7 @@
21
21
  "devDependencies": {
22
22
  "@angular/compiler": "21.2.22",
23
23
  "@angular/compiler-cli": "21.2.22",
24
- "@memberjunction/ng-test-utils": "6.2.0-edge.4",
24
+ "@memberjunction/ng-test-utils": "6.2.0-edge.6",
25
25
  "vitest": "^4.0.18"
26
26
  },
27
27
  "peerDependencies": {
@@ -33,17 +33,19 @@
33
33
  "golden-layout": "^2.6.0"
34
34
  },
35
35
  "dependencies": {
36
- "@memberjunction/ng-ui-components": "6.2.0-edge.4",
37
- "@memberjunction/core": "6.2.0-edge.4",
38
- "@memberjunction/core-entities": "6.2.0-edge.4",
39
- "@memberjunction/global": "6.2.0-edge.4",
40
- "@memberjunction/ng-artifacts": "6.2.0-edge.4",
41
- "@memberjunction/ng-base-types": "6.2.0-edge.4",
42
- "@memberjunction/ng-entity-viewer": "6.2.0-edge.4",
43
- "@memberjunction/ng-map-view": "6.2.0-edge.4",
44
- "@memberjunction/ng-query-viewer": "6.2.0-edge.4",
45
- "@memberjunction/ng-shared-generic": "6.2.0-edge.4",
46
- "@memberjunction/ng-trees": "6.2.0-edge.4",
36
+ "@memberjunction/ng-ui-components": "6.2.0-edge.6",
37
+ "@memberjunction/core": "6.2.0-edge.6",
38
+ "@memberjunction/core-entities": "6.2.0-edge.6",
39
+ "@memberjunction/global": "6.2.0-edge.6",
40
+ "@memberjunction/interactive-component-types": "6.2.0-edge.6",
41
+ "@memberjunction/ng-artifacts": "6.2.0-edge.6",
42
+ "@memberjunction/ng-base-types": "6.2.0-edge.6",
43
+ "@memberjunction/ng-entity-viewer": "6.2.0-edge.6",
44
+ "@memberjunction/ng-map-view": "6.2.0-edge.6",
45
+ "@memberjunction/ng-query-viewer": "6.2.0-edge.6",
46
+ "@memberjunction/ng-react": "6.2.0-edge.6",
47
+ "@memberjunction/ng-shared-generic": "6.2.0-edge.6",
48
+ "@memberjunction/ng-trees": "6.2.0-edge.6",
47
49
  "rxjs": "^7.8.2",
48
50
  "tslib": "^2.8.1"
49
51
  },