@blackbaud/skyux-lib-media 8.1.1 → 9.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (25) hide show
  1. package/{esm2020 → esm2022}/lib/modules/hero/hero-heading.component.mjs +4 -4
  2. package/{esm2020 → esm2022}/lib/modules/hero/hero-subheading.component.mjs +4 -4
  3. package/esm2022/lib/modules/hero/hero.component.mjs +48 -0
  4. package/{esm2020 → esm2022}/lib/modules/hero/hero.module.mjs +9 -9
  5. package/{esm2020 → esm2022}/lib/modules/image/image.component.mjs +8 -10
  6. package/{esm2020 → esm2022}/lib/modules/image/image.module.mjs +5 -5
  7. package/esm2022/lib/modules/shared/sky-media-resources.module.mjs +50 -0
  8. package/esm2022/lib/modules/video/video.component.mjs +27 -0
  9. package/{esm2020 → esm2022}/lib/modules/video/video.module.mjs +5 -5
  10. package/{fesm2015 → fesm2022}/blackbaud-skyux-lib-media.mjs +77 -81
  11. package/fesm2022/blackbaud-skyux-lib-media.mjs.map +1 -0
  12. package/lib/modules/hero/hero-heading.component.d.ts +1 -1
  13. package/lib/modules/hero/hero-subheading.component.d.ts +1 -1
  14. package/lib/modules/hero/hero.component.d.ts +1 -1
  15. package/lib/modules/image/image.component.d.ts +1 -1
  16. package/lib/modules/video/video.component.d.ts +1 -1
  17. package/package.json +10 -16
  18. package/esm2020/lib/modules/hero/hero.component.mjs +0 -51
  19. package/esm2020/lib/modules/shared/sky-media-resources.module.mjs +0 -48
  20. package/esm2020/lib/modules/video/video.component.mjs +0 -30
  21. package/fesm2015/blackbaud-skyux-lib-media.mjs.map +0 -1
  22. package/fesm2020/blackbaud-skyux-lib-media.mjs +0 -249
  23. package/fesm2020/blackbaud-skyux-lib-media.mjs.map +0 -1
  24. /package/{esm2020 → esm2022}/blackbaud-skyux-lib-media.mjs +0 -0
  25. /package/{esm2020 → esm2022}/index.mjs +0 -0
@@ -2,19 +2,18 @@ import * as i1 from '@angular/common';
2
2
  import { CommonModule } from '@angular/common';
3
3
  import * as i0 from '@angular/core';
4
4
  import { Component, ChangeDetectionStrategy, Input, NgModule } from '@angular/core';
5
- import { __classPrivateFieldGet, __classPrivateFieldSet } from 'tslib';
6
5
  import * as i2 from '@skyux/i18n';
7
- import { getLibStringForLocale, SkyI18nModule, SKY_LIB_RESOURCES_PROVIDERS } from '@skyux/i18n';
6
+ import { SkyLibResourcesService, getLibStringForLocale, SkyI18nModule, SKY_LIB_RESOURCES_PROVIDERS } from '@skyux/i18n';
8
7
  import * as i1$1 from '@angular/platform-browser';
9
8
 
10
9
  class SkyHeroHeadingComponent {
11
10
  constructor() {
12
11
  this.heroTextColor = '#fff';
13
12
  }
13
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.5", ngImport: i0, type: SkyHeroHeadingComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
14
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.5", type: SkyHeroHeadingComponent, selector: "sky-hero-heading", inputs: { heroTextColor: "heroTextColor" }, ngImport: i0, template: "<h1\n class=\"sky-hero-heading sky-page-heading\"\n [ngStyle]=\"{ color: heroTextColor }\"\n>\n <ng-content></ng-content>\n</h1>\n", styles: [".sky-hero-heading{font-size:3.5em;margin:0}\n"], dependencies: [{ kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
14
15
  }
15
- SkyHeroHeadingComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SkyHeroHeadingComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
16
- SkyHeroHeadingComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: SkyHeroHeadingComponent, selector: "sky-hero-heading", inputs: { heroTextColor: "heroTextColor" }, ngImport: i0, template: "<h1\n class=\"sky-hero-heading sky-page-heading\"\n [ngStyle]=\"{ color: heroTextColor }\"\n>\n <ng-content></ng-content>\n</h1>\n", styles: [".sky-hero-heading{font-size:3.5em;margin:0}\n"], dependencies: [{ kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
17
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SkyHeroHeadingComponent, decorators: [{
16
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.5", ngImport: i0, type: SkyHeroHeadingComponent, decorators: [{
18
17
  type: Component,
19
18
  args: [{ selector: 'sky-hero-heading', changeDetection: ChangeDetectionStrategy.OnPush, template: "<h1\n class=\"sky-hero-heading sky-page-heading\"\n [ngStyle]=\"{ color: heroTextColor }\"\n>\n <ng-content></ng-content>\n</h1>\n", styles: [".sky-hero-heading{font-size:3.5em;margin:0}\n"] }]
20
19
  }], propDecorators: { heroTextColor: [{
@@ -25,55 +24,53 @@ class SkyHeroSubheadingComponent {
25
24
  constructor() {
26
25
  this.heroTextColor = '#fff';
27
26
  }
27
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.5", ngImport: i0, type: SkyHeroSubheadingComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
28
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.5", type: SkyHeroSubheadingComponent, selector: "sky-hero-subheading", inputs: { heroTextColor: "heroTextColor" }, ngImport: i0, template: "<h2\n class=\"sky-hero-subheading sky-subsection-heading\"\n [ngStyle]=\"{ color: heroTextColor }\"\n>\n <ng-content></ng-content>\n</h2>\n", styles: [".sky-hero-subheading{font-size:1.3em;margin:1em 0 0}\n"], dependencies: [{ kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
28
29
  }
29
- SkyHeroSubheadingComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SkyHeroSubheadingComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
30
- SkyHeroSubheadingComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: SkyHeroSubheadingComponent, selector: "sky-hero-subheading", inputs: { heroTextColor: "heroTextColor" }, ngImport: i0, template: "<h2\n class=\"sky-hero-subheading sky-subsection-heading\"\n [ngStyle]=\"{ color: heroTextColor }\"\n>\n <ng-content></ng-content>\n</h2>\n", styles: [".sky-hero-subheading{font-size:1.3em;margin:1em 0 0}\n"], dependencies: [{ kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
31
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SkyHeroSubheadingComponent, decorators: [{
30
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.5", ngImport: i0, type: SkyHeroSubheadingComponent, decorators: [{
32
31
  type: Component,
33
32
  args: [{ selector: 'sky-hero-subheading', changeDetection: ChangeDetectionStrategy.OnPush, template: "<h2\n class=\"sky-hero-subheading sky-subsection-heading\"\n [ngStyle]=\"{ color: heroTextColor }\"\n>\n <ng-content></ng-content>\n</h2>\n", styles: [".sky-hero-subheading{font-size:1.3em;margin:1em 0 0}\n"] }]
34
33
  }], propDecorators: { heroTextColor: [{
35
34
  type: Input
36
35
  }] } });
37
36
 
38
- var _SkyHeroComponent_instances, _SkyHeroComponent_changeDetector, _SkyHeroComponent__overlayOpacity, _SkyHeroComponent_parseInterval;
39
37
  const DEFAULT_OPACITY = '0.4';
40
38
  class SkyHeroComponent {
41
39
  set overlayOpacity(value) {
42
40
  const overlayOpacity = value || DEFAULT_OPACITY;
43
41
  const sanitized = overlayOpacity.replace(/[^\d.-]/g, '');
44
- const newValue = __classPrivateFieldGet(this, _SkyHeroComponent_instances, "m", _SkyHeroComponent_parseInterval).call(this, sanitized).toString();
45
- __classPrivateFieldSet(this, _SkyHeroComponent__overlayOpacity, newValue, "f");
46
- __classPrivateFieldGet(this, _SkyHeroComponent_changeDetector, "f").markForCheck();
42
+ const newValue = this.#parseInterval(sanitized).toString();
43
+ this.#_overlayOpacity = newValue;
44
+ this.#changeDetector.markForCheck();
47
45
  }
48
46
  get overlayOpacity() {
49
- return __classPrivateFieldGet(this, _SkyHeroComponent__overlayOpacity, "f");
47
+ return this.#_overlayOpacity;
50
48
  }
49
+ #changeDetector;
50
+ #_overlayOpacity = DEFAULT_OPACITY;
51
51
  constructor(changeDetector) {
52
- _SkyHeroComponent_instances.add(this);
53
- _SkyHeroComponent_changeDetector.set(this, void 0);
54
- _SkyHeroComponent__overlayOpacity.set(this, DEFAULT_OPACITY);
55
- __classPrivateFieldSet(this, _SkyHeroComponent_changeDetector, changeDetector, "f");
52
+ this.#changeDetector = changeDetector;
56
53
  }
57
- }
58
- _SkyHeroComponent_changeDetector = new WeakMap(), _SkyHeroComponent__overlayOpacity = new WeakMap(), _SkyHeroComponent_instances = new WeakSet(), _SkyHeroComponent_parseInterval = function _SkyHeroComponent_parseInterval(value) {
59
- const interval = parseFloat(value);
60
- if (isNaN(interval)) {
61
- return 0.4;
62
- }
63
- if (interval > 100) {
64
- return 1;
65
- }
66
- if (interval < 0) {
67
- return 0;
54
+ #parseInterval(value) {
55
+ const interval = parseFloat(value);
56
+ if (isNaN(interval)) {
57
+ return 0.4;
58
+ }
59
+ if (interval > 100) {
60
+ return 1;
61
+ }
62
+ if (interval < 0) {
63
+ return 0;
64
+ }
65
+ if (interval % 1 > 0) {
66
+ return interval;
67
+ }
68
+ return interval / 100;
68
69
  }
69
- if (interval % 1 > 0) {
70
- return interval;
71
- }
72
- return interval / 100;
73
- };
74
- SkyHeroComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SkyHeroComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
75
- SkyHeroComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: SkyHeroComponent, selector: "sky-hero", inputs: { backgroundImageUrl: "backgroundImageUrl", overlayOpacity: "overlayOpacity" }, ngImport: i0, template: "<div\n class=\"sky-hero\"\n [ngStyle]=\"{\n 'background-image': 'url(' + backgroundImageUrl + ')'\n }\"\n>\n <div class=\"sky-hero-body sky-max-width-container\">\n <ng-content></ng-content>\n </div>\n <div\n class=\"sky-hero-overlay\"\n [ngStyle]=\"{\n opacity: overlayOpacity\n }\"\n ></div>\n</div>\n", styles: [".sky-hero{background-color:#000;display:flex;justify-content:center;background-repeat:no-repeat;background-position:center;background-size:cover;position:relative;box-shadow:0 1px 8px #00000073 inset}.sky-hero-body{display:flex;flex-direction:column;justify-content:center;margin:100px 0 80px;text-align:center;z-index:1;padding:0 15px}@media (min-width: 992px){.sky-hero-body{padding:0 10px}}@media (min-width: 1200px){.sky-hero-body{padding:0}}.sky-hero-overlay{background-color:#000;position:absolute;inset:0;height:100%;width:100%}\n"], dependencies: [{ kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
76
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SkyHeroComponent, decorators: [{
70
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.5", ngImport: i0, type: SkyHeroComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
71
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.5", type: SkyHeroComponent, selector: "sky-hero", inputs: { backgroundImageUrl: "backgroundImageUrl", overlayOpacity: "overlayOpacity" }, ngImport: i0, template: "<div\n class=\"sky-hero\"\n [ngStyle]=\"{\n 'background-image': 'url(' + backgroundImageUrl + ')'\n }\"\n>\n <div class=\"sky-hero-body sky-max-width-container\">\n <ng-content></ng-content>\n </div>\n <div\n class=\"sky-hero-overlay\"\n [ngStyle]=\"{\n opacity: overlayOpacity\n }\"\n ></div>\n</div>\n", styles: [".sky-hero{background-color:#000;display:flex;justify-content:center;background-repeat:no-repeat;background-position:center;background-size:cover;position:relative;box-shadow:0 1px 8px #00000073 inset}.sky-hero-body{display:flex;flex-direction:column;justify-content:center;margin:100px 0 80px;text-align:center;z-index:1;padding:0 15px}@media (min-width: 992px){.sky-hero-body{padding:0 10px}}@media (min-width: 1200px){.sky-hero-body{padding:0}}.sky-hero-overlay{background-color:#000;position:absolute;inset:0;height:100%;width:100%}\n"], dependencies: [{ kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
72
+ }
73
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.5", ngImport: i0, type: SkyHeroComponent, decorators: [{
77
74
  type: Component,
78
75
  args: [{ selector: 'sky-hero', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div\n class=\"sky-hero\"\n [ngStyle]=\"{\n 'background-image': 'url(' + backgroundImageUrl + ')'\n }\"\n>\n <div class=\"sky-hero-body sky-max-width-container\">\n <ng-content></ng-content>\n </div>\n <div\n class=\"sky-hero-overlay\"\n [ngStyle]=\"{\n opacity: overlayOpacity\n }\"\n ></div>\n</div>\n", styles: [".sky-hero{background-color:#000;display:flex;justify-content:center;background-repeat:no-repeat;background-position:center;background-size:cover;position:relative;box-shadow:0 1px 8px #00000073 inset}.sky-hero-body{display:flex;flex-direction:column;justify-content:center;margin:100px 0 80px;text-align:center;z-index:1;padding:0 15px}@media (min-width: 992px){.sky-hero-body{padding:0 10px}}@media (min-width: 1200px){.sky-hero-body{padding:0}}.sky-hero-overlay{background-color:#000;position:absolute;inset:0;height:100%;width:100%}\n"] }]
79
76
  }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { backgroundImageUrl: [{
@@ -83,15 +80,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
83
80
  }] } });
84
81
 
85
82
  class SkyHeroModule {
83
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.5", ngImport: i0, type: SkyHeroModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
84
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.5", ngImport: i0, type: SkyHeroModule, declarations: [SkyHeroComponent,
85
+ SkyHeroHeadingComponent,
86
+ SkyHeroSubheadingComponent], imports: [CommonModule], exports: [SkyHeroComponent,
87
+ SkyHeroHeadingComponent,
88
+ SkyHeroSubheadingComponent] }); }
89
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.5", ngImport: i0, type: SkyHeroModule, imports: [CommonModule] }); }
86
90
  }
87
- SkyHeroModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SkyHeroModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
88
- SkyHeroModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: SkyHeroModule, declarations: [SkyHeroComponent,
89
- SkyHeroHeadingComponent,
90
- SkyHeroSubheadingComponent], imports: [CommonModule], exports: [SkyHeroComponent,
91
- SkyHeroHeadingComponent,
92
- SkyHeroSubheadingComponent] });
93
- SkyHeroModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SkyHeroModule, imports: [CommonModule] });
94
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SkyHeroModule, decorators: [{
91
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.5", ngImport: i0, type: SkyHeroModule, decorators: [{
95
92
  type: NgModule,
96
93
  args: [{
97
94
  declarations: [
@@ -108,6 +105,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
108
105
  }]
109
106
  }] });
110
107
 
108
+ /* istanbul ignore file */
111
109
  /**
112
110
  * NOTICE: DO NOT MODIFY THIS FILE!
113
111
  * The contents of this file were automatically generated by
@@ -120,6 +118,7 @@ const RESOURCES = {
120
118
  skyux_image_dont_text: { message: "Don't" },
121
119
  },
122
120
  };
121
+ SkyLibResourcesService.addResources(RESOURCES);
123
122
  class SkyMediaResourcesProvider {
124
123
  getString(localeInfo, name) {
125
124
  return getLibStringForLocale(RESOURCES, localeInfo.locale, name);
@@ -129,17 +128,17 @@ class SkyMediaResourcesProvider {
129
128
  * Import into any component library module that needs to use resource strings.
130
129
  */
131
130
  class SkyMediaResourcesModule {
131
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.5", ngImport: i0, type: SkyMediaResourcesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
132
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.5", ngImport: i0, type: SkyMediaResourcesModule, exports: [SkyI18nModule] }); }
133
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.5", ngImport: i0, type: SkyMediaResourcesModule, providers: [
134
+ {
135
+ provide: SKY_LIB_RESOURCES_PROVIDERS,
136
+ useClass: SkyMediaResourcesProvider,
137
+ multi: true,
138
+ },
139
+ ], imports: [SkyI18nModule] }); }
132
140
  }
133
- SkyMediaResourcesModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SkyMediaResourcesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
134
- SkyMediaResourcesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: SkyMediaResourcesModule, exports: [SkyI18nModule] });
135
- SkyMediaResourcesModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SkyMediaResourcesModule, providers: [
136
- {
137
- provide: SKY_LIB_RESOURCES_PROVIDERS,
138
- useClass: SkyMediaResourcesProvider,
139
- multi: true,
140
- },
141
- ], imports: [SkyI18nModule] });
142
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SkyMediaResourcesModule, decorators: [{
141
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.5", ngImport: i0, type: SkyMediaResourcesModule, decorators: [{
143
142
  type: NgModule,
144
143
  args: [{
145
144
  exports: [SkyI18nModule],
@@ -153,25 +152,24 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
153
152
  }]
154
153
  }] });
155
154
 
156
- var _SkyImageComponent__showCaptionPrefix;
157
155
  class SkyImageComponent {
158
156
  constructor() {
159
157
  this.captionType = 'default';
160
158
  this.imageAlt = 'image';
161
159
  this.showBorder = false;
162
- _SkyImageComponent__showCaptionPrefix.set(this, true);
160
+ this.#_showCaptionPrefix = true;
163
161
  }
164
162
  set showCaptionPrefix(value) {
165
- __classPrivateFieldSet(this, _SkyImageComponent__showCaptionPrefix, value !== false, "f");
163
+ this.#_showCaptionPrefix = value !== false;
166
164
  }
167
165
  get showCaptionPrefix() {
168
- return __classPrivateFieldGet(this, _SkyImageComponent__showCaptionPrefix, "f");
166
+ return this.#_showCaptionPrefix;
169
167
  }
168
+ #_showCaptionPrefix;
169
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.5", ngImport: i0, type: SkyImageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
170
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.5", type: SkyImageComponent, selector: "sky-image", inputs: { caption: "caption", captionType: "captionType", imageAlt: "imageAlt", imageSource: "imageSource", showBorder: "showBorder", showCaptionPrefix: "showCaptionPrefix" }, ngImport: i0, template: "<figure class=\"sky-image-wrapper\">\n <img\n class=\"sky-image\"\n [alt]=\"imageAlt\"\n [ngClass]=\"{\n 'sky-image-border': showBorder\n }\"\n [src]=\"imageSource\"\n />\n <figcaption\n *ngIf=\"caption\"\n class=\"sky-image-caption\"\n [ngClass]=\"{\n 'sky-image-caption-default': captionType === 'default',\n 'sky-image-caption-info sky-text-info': captionType === 'info',\n 'sky-image-caption-success sky-text-success': captionType === 'success',\n 'sky-image-caption-warning sky-text-warning': captionType === 'warning',\n 'sky-image-caption-danger sky-text-danger': captionType === 'danger'\n }\"\n >\n <ng-container [ngSwitch]=\"captionType\">\n <ng-container *ngSwitchCase=\"'success'\">\n <ng-container *ngIf=\"showCaptionPrefix\">\n <strong>{{ 'skyux_image_do_text' | skyLibResources }}</strong>\n </ng-container>\n </ng-container>\n <ng-container *ngSwitchCase=\"'danger'\">\n <ng-container *ngIf=\"showCaptionPrefix\">\n <strong>{{ 'skyux_image_dont_text' | skyLibResources }}</strong>\n </ng-container>\n </ng-container>\n </ng-container>\n {{ caption }}\n </figcaption>\n</figure>\n", styles: [".sky-image-wrapper{display:table;margin:0;padding:0}.sky-image{display:block;max-width:100%;height:auto;width:auto}.sky-image-border{border:1px solid #cdcfd2}.sky-image-caption{border-top:5px solid #cdcfd2;display:table-caption;caption-side:bottom;margin:10px 0;padding:5px 0 0}.sky-image-caption-success{border-color:#72bf44}.sky-image-caption-danger{border-color:#ef4044}.sky-image-caption-warning{border-color:#fbb034}.sky-image-caption-info{border-color:#00b4f1}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "pipe", type: i2.SkyLibResourcesPipe, name: "skyLibResources" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
170
171
  }
171
- _SkyImageComponent__showCaptionPrefix = new WeakMap();
172
- SkyImageComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SkyImageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
173
- SkyImageComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: SkyImageComponent, selector: "sky-image", inputs: { caption: "caption", captionType: "captionType", imageAlt: "imageAlt", imageSource: "imageSource", showBorder: "showBorder", showCaptionPrefix: "showCaptionPrefix" }, ngImport: i0, template: "<figure class=\"sky-image-wrapper\">\n <img\n class=\"sky-image\"\n [alt]=\"imageAlt\"\n [ngClass]=\"{\n 'sky-image-border': showBorder\n }\"\n [src]=\"imageSource\"\n />\n <figcaption\n *ngIf=\"caption\"\n class=\"sky-image-caption\"\n [ngClass]=\"{\n 'sky-image-caption-default': captionType === 'default',\n 'sky-image-caption-info sky-text-info': captionType === 'info',\n 'sky-image-caption-success sky-text-success': captionType === 'success',\n 'sky-image-caption-warning sky-text-warning': captionType === 'warning',\n 'sky-image-caption-danger sky-text-danger': captionType === 'danger'\n }\"\n >\n <ng-container [ngSwitch]=\"captionType\">\n <ng-container *ngSwitchCase=\"'success'\">\n <ng-container *ngIf=\"showCaptionPrefix\">\n <strong>{{ 'skyux_image_do_text' | skyLibResources }}</strong>\n </ng-container>\n </ng-container>\n <ng-container *ngSwitchCase=\"'danger'\">\n <ng-container *ngIf=\"showCaptionPrefix\">\n <strong>{{ 'skyux_image_dont_text' | skyLibResources }}</strong>\n </ng-container>\n </ng-container>\n </ng-container>\n {{ caption }}\n </figcaption>\n</figure>\n", styles: [".sky-image-wrapper{display:table;margin:0;padding:0}.sky-image{display:block;max-width:100%;height:auto;width:auto}.sky-image-border{border:1px solid #cdcfd2}.sky-image-caption{border-top:5px solid #cdcfd2;display:table-caption;caption-side:bottom;margin:10px 0;padding:5px 0 0}.sky-image-caption-success{border-color:#72bf44}.sky-image-caption-danger{border-color:#ef4044}.sky-image-caption-warning{border-color:#fbb034}.sky-image-caption-info{border-color:#00b4f1}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "pipe", type: i2.SkyLibResourcesPipe, name: "skyLibResources" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
174
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SkyImageComponent, decorators: [{
172
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.5", ngImport: i0, type: SkyImageComponent, decorators: [{
175
173
  type: Component,
176
174
  args: [{ selector: 'sky-image', changeDetection: ChangeDetectionStrategy.OnPush, template: "<figure class=\"sky-image-wrapper\">\n <img\n class=\"sky-image\"\n [alt]=\"imageAlt\"\n [ngClass]=\"{\n 'sky-image-border': showBorder\n }\"\n [src]=\"imageSource\"\n />\n <figcaption\n *ngIf=\"caption\"\n class=\"sky-image-caption\"\n [ngClass]=\"{\n 'sky-image-caption-default': captionType === 'default',\n 'sky-image-caption-info sky-text-info': captionType === 'info',\n 'sky-image-caption-success sky-text-success': captionType === 'success',\n 'sky-image-caption-warning sky-text-warning': captionType === 'warning',\n 'sky-image-caption-danger sky-text-danger': captionType === 'danger'\n }\"\n >\n <ng-container [ngSwitch]=\"captionType\">\n <ng-container *ngSwitchCase=\"'success'\">\n <ng-container *ngIf=\"showCaptionPrefix\">\n <strong>{{ 'skyux_image_do_text' | skyLibResources }}</strong>\n </ng-container>\n </ng-container>\n <ng-container *ngSwitchCase=\"'danger'\">\n <ng-container *ngIf=\"showCaptionPrefix\">\n <strong>{{ 'skyux_image_dont_text' | skyLibResources }}</strong>\n </ng-container>\n </ng-container>\n </ng-container>\n {{ caption }}\n </figcaption>\n</figure>\n", styles: [".sky-image-wrapper{display:table;margin:0;padding:0}.sky-image{display:block;max-width:100%;height:auto;width:auto}.sky-image-border{border:1px solid #cdcfd2}.sky-image-caption{border-top:5px solid #cdcfd2;display:table-caption;caption-side:bottom;margin:10px 0;padding:5px 0 0}.sky-image-caption-success{border-color:#72bf44}.sky-image-caption-danger{border-color:#ef4044}.sky-image-caption-warning{border-color:#fbb034}.sky-image-caption-info{border-color:#00b4f1}\n"] }]
177
175
  }], propDecorators: { caption: [{
@@ -189,11 +187,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
189
187
  }] } });
190
188
 
191
189
  class SkyImageModule {
190
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.5", ngImport: i0, type: SkyImageModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
191
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.5", ngImport: i0, type: SkyImageModule, declarations: [SkyImageComponent], imports: [CommonModule, SkyMediaResourcesModule], exports: [SkyImageComponent] }); }
192
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.5", ngImport: i0, type: SkyImageModule, imports: [CommonModule, SkyMediaResourcesModule] }); }
192
193
  }
193
- SkyImageModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SkyImageModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
194
- SkyImageModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: SkyImageModule, declarations: [SkyImageComponent], imports: [CommonModule, SkyMediaResourcesModule], exports: [SkyImageComponent] });
195
- SkyImageModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SkyImageModule, imports: [CommonModule, SkyMediaResourcesModule] });
196
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SkyImageModule, decorators: [{
194
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.5", ngImport: i0, type: SkyImageModule, decorators: [{
197
195
  type: NgModule,
198
196
  args: [{
199
197
  declarations: [SkyImageComponent],
@@ -202,25 +200,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
202
200
  }]
203
201
  }] });
204
202
 
205
- var _SkyVideoComponent_changeDetector, _SkyVideoComponent_sanitizer;
206
203
  class SkyVideoComponent {
207
204
  set videoSource(value) {
208
205
  this.src = value
209
- ? __classPrivateFieldGet(this, _SkyVideoComponent_sanitizer, "f").bypassSecurityTrustResourceUrl(value)
206
+ ? this.#sanitizer.bypassSecurityTrustResourceUrl(value)
210
207
  : undefined;
211
- __classPrivateFieldGet(this, _SkyVideoComponent_changeDetector, "f").markForCheck();
208
+ this.#changeDetector.markForCheck();
212
209
  }
210
+ #changeDetector;
211
+ #sanitizer;
213
212
  constructor(changeDetector, sanitizer) {
214
- _SkyVideoComponent_changeDetector.set(this, void 0);
215
- _SkyVideoComponent_sanitizer.set(this, void 0);
216
- __classPrivateFieldSet(this, _SkyVideoComponent_changeDetector, changeDetector, "f");
217
- __classPrivateFieldSet(this, _SkyVideoComponent_sanitizer, sanitizer, "f");
213
+ this.#changeDetector = changeDetector;
214
+ this.#sanitizer = sanitizer;
218
215
  }
216
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.5", ngImport: i0, type: SkyVideoComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1$1.DomSanitizer }], target: i0.ɵɵFactoryTarget.Component }); }
217
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.5", type: SkyVideoComponent, selector: "sky-video", inputs: { videoSource: "videoSource" }, ngImport: i0, template: "<div class=\"sky-video\">\n <iframe\n *ngIf=\"src\"\n allowfullscreen\n class=\"sky-video-object\"\n frameborder=\"0\"\n [src]=\"src\"\n >\n </iframe>\n</div>\n", styles: [".sky-video{position:relative;display:block;width:100%;overflow:hidden;margin:10px 0}.sky-video:before{content:\"\";display:block;padding-top:56.25%}.sky-video:after{content:\"\";display:block;clear:both}.sky-video .sky-video-object{position:absolute;top:0;bottom:0;left:0;width:100%;height:100%;border:0}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
219
218
  }
220
- _SkyVideoComponent_changeDetector = new WeakMap(), _SkyVideoComponent_sanitizer = new WeakMap();
221
- SkyVideoComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SkyVideoComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1$1.DomSanitizer }], target: i0.ɵɵFactoryTarget.Component });
222
- SkyVideoComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: SkyVideoComponent, selector: "sky-video", inputs: { videoSource: "videoSource" }, ngImport: i0, template: "<div class=\"sky-video\">\n <iframe\n *ngIf=\"src\"\n allowfullscreen\n class=\"sky-video-object\"\n frameborder=\"0\"\n [src]=\"src\"\n >\n </iframe>\n</div>\n", styles: [".sky-video{position:relative;display:block;width:100%;overflow:hidden;margin:10px 0}.sky-video:before{content:\"\";display:block;padding-top:56.25%}.sky-video:after{content:\"\";display:block;clear:both}.sky-video .sky-video-object{position:absolute;top:0;bottom:0;left:0;width:100%;height:100%;border:0}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
223
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SkyVideoComponent, decorators: [{
219
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.5", ngImport: i0, type: SkyVideoComponent, decorators: [{
224
220
  type: Component,
225
221
  args: [{ selector: 'sky-video', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"sky-video\">\n <iframe\n *ngIf=\"src\"\n allowfullscreen\n class=\"sky-video-object\"\n frameborder=\"0\"\n [src]=\"src\"\n >\n </iframe>\n</div>\n", styles: [".sky-video{position:relative;display:block;width:100%;overflow:hidden;margin:10px 0}.sky-video:before{content:\"\";display:block;padding-top:56.25%}.sky-video:after{content:\"\";display:block;clear:both}.sky-video .sky-video-object{position:absolute;top:0;bottom:0;left:0;width:100%;height:100%;border:0}\n"] }]
226
222
  }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i1$1.DomSanitizer }]; }, propDecorators: { videoSource: [{
@@ -228,11 +224,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
228
224
  }] } });
229
225
 
230
226
  class SkyVideoModule {
227
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.5", ngImport: i0, type: SkyVideoModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
228
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.5", ngImport: i0, type: SkyVideoModule, declarations: [SkyVideoComponent], imports: [CommonModule], exports: [SkyVideoComponent] }); }
229
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.5", ngImport: i0, type: SkyVideoModule, imports: [CommonModule] }); }
231
230
  }
232
- SkyVideoModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SkyVideoModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
233
- SkyVideoModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: SkyVideoModule, declarations: [SkyVideoComponent], imports: [CommonModule], exports: [SkyVideoComponent] });
234
- SkyVideoModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SkyVideoModule, imports: [CommonModule] });
235
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SkyVideoModule, decorators: [{
231
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.5", ngImport: i0, type: SkyVideoModule, decorators: [{
236
232
  type: NgModule,
237
233
  args: [{
238
234
  declarations: [SkyVideoComponent],
@@ -0,0 +1 @@
1
+ {"version":3,"file":"blackbaud-skyux-lib-media.mjs","sources":["../../../../libs/media/src/lib/modules/hero/hero-heading.component.ts","../../../../libs/media/src/lib/modules/hero/hero-heading.component.html","../../../../libs/media/src/lib/modules/hero/hero-subheading.component.ts","../../../../libs/media/src/lib/modules/hero/hero-subheading.component.html","../../../../libs/media/src/lib/modules/hero/hero.component.ts","../../../../libs/media/src/lib/modules/hero/hero.component.html","../../../../libs/media/src/lib/modules/hero/hero.module.ts","../../../../libs/media/src/lib/modules/shared/sky-media-resources.module.ts","../../../../libs/media/src/lib/modules/image/image.component.ts","../../../../libs/media/src/lib/modules/image/image.component.html","../../../../libs/media/src/lib/modules/image/image.module.ts","../../../../libs/media/src/lib/modules/video/video.component.ts","../../../../libs/media/src/lib/modules/video/video.component.html","../../../../libs/media/src/lib/modules/video/video.module.ts","../../../../libs/media/src/blackbaud-skyux-lib-media.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, Input } from '@angular/core';\n\n@Component({\n selector: 'sky-hero-heading',\n templateUrl: './hero-heading.component.html',\n styleUrls: ['./hero-heading.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class SkyHeroHeadingComponent {\n @Input()\n public heroTextColor: string | undefined = '#fff';\n}\n","<h1\n class=\"sky-hero-heading sky-page-heading\"\n [ngStyle]=\"{ color: heroTextColor }\"\n>\n <ng-content></ng-content>\n</h1>\n","import { ChangeDetectionStrategy, Component, Input } from '@angular/core';\n\n@Component({\n selector: 'sky-hero-subheading',\n templateUrl: './hero-subheading.component.html',\n styleUrls: ['./hero-subheading.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class SkyHeroSubheadingComponent {\n @Input()\n public heroTextColor: string | undefined = '#fff';\n}\n","<h2\n class=\"sky-hero-subheading sky-subsection-heading\"\n [ngStyle]=\"{ color: heroTextColor }\"\n>\n <ng-content></ng-content>\n</h2>\n","import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n Input,\n} from '@angular/core';\n\nconst DEFAULT_OPACITY = '0.4';\n\n@Component({\n selector: 'sky-hero',\n templateUrl: './hero.component.html',\n styleUrls: ['./hero.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class SkyHeroComponent {\n @Input()\n public backgroundImageUrl: string | undefined;\n\n @Input()\n public set overlayOpacity(value: string | undefined) {\n const overlayOpacity = value || DEFAULT_OPACITY;\n const sanitized = overlayOpacity.replace(/[^\\d.-]/g, '');\n const newValue = this.#parseInterval(sanitized).toString();\n this.#_overlayOpacity = newValue;\n this.#changeDetector.markForCheck();\n }\n\n public get overlayOpacity(): string {\n return this.#_overlayOpacity;\n }\n\n #changeDetector: ChangeDetectorRef;\n\n #_overlayOpacity = DEFAULT_OPACITY;\n\n constructor(changeDetector: ChangeDetectorRef) {\n this.#changeDetector = changeDetector;\n }\n\n #parseInterval(value: string): number {\n const interval = parseFloat(value);\n\n if (isNaN(interval)) {\n return 0.4;\n }\n\n if (interval > 100) {\n return 1;\n }\n\n if (interval < 0) {\n return 0;\n }\n\n if (interval % 1 > 0) {\n return interval;\n }\n\n return interval / 100;\n }\n}\n","<div\n class=\"sky-hero\"\n [ngStyle]=\"{\n 'background-image': 'url(' + backgroundImageUrl + ')'\n }\"\n>\n <div class=\"sky-hero-body sky-max-width-container\">\n <ng-content></ng-content>\n </div>\n <div\n class=\"sky-hero-overlay\"\n [ngStyle]=\"{\n opacity: overlayOpacity\n }\"\n ></div>\n</div>\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\n\nimport { SkyHeroHeadingComponent } from './hero-heading.component';\nimport { SkyHeroSubheadingComponent } from './hero-subheading.component';\nimport { SkyHeroComponent } from './hero.component';\n\n@NgModule({\n declarations: [\n SkyHeroComponent,\n SkyHeroHeadingComponent,\n SkyHeroSubheadingComponent,\n ],\n imports: [CommonModule],\n exports: [\n SkyHeroComponent,\n SkyHeroHeadingComponent,\n SkyHeroSubheadingComponent,\n ],\n})\nexport class SkyHeroModule {}\n","/* istanbul ignore file */\n\n/**\n * NOTICE: DO NOT MODIFY THIS FILE!\n * The contents of this file were automatically generated by\n * the 'ng generate @skyux/i18n:lib-resources-module lib/modules/shared/sky-media' schematic.\n * To update this file, simply rerun the command.\n */\nimport { NgModule } from '@angular/core';\nimport {\n SKY_LIB_RESOURCES_PROVIDERS,\n SkyAppLocaleInfo,\n SkyI18nModule,\n SkyLibResources,\n SkyLibResourcesProvider,\n SkyLibResourcesService,\n getLibStringForLocale,\n} from '@skyux/i18n';\n\nconst RESOURCES: { [locale: string]: SkyLibResources } = {\n 'EN-US': {\n skyux_image_do_text: { message: 'Do' },\n skyux_image_dont_text: { message: \"Don't\" },\n },\n};\n\nSkyLibResourcesService.addResources(RESOURCES);\n\nexport class SkyMediaResourcesProvider implements SkyLibResourcesProvider {\n public getString(\n localeInfo: SkyAppLocaleInfo,\n name: string\n ): string | undefined {\n return getLibStringForLocale(RESOURCES, localeInfo.locale, name);\n }\n}\n\n/**\n * Import into any component library module that needs to use resource strings.\n */\n@NgModule({\n exports: [SkyI18nModule],\n providers: [\n {\n provide: SKY_LIB_RESOURCES_PROVIDERS,\n useClass: SkyMediaResourcesProvider,\n multi: true,\n },\n ],\n})\nexport class SkyMediaResourcesModule {}\n","import { ChangeDetectionStrategy, Component, Input } from '@angular/core';\n\n@Component({\n selector: 'sky-image',\n templateUrl: './image.component.html',\n styleUrls: ['./image.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class SkyImageComponent {\n @Input()\n public caption: string | undefined;\n\n @Input()\n public captionType: string | undefined = 'default';\n\n @Input()\n public imageAlt: string | undefined = 'image';\n\n @Input()\n public imageSource: string | undefined;\n\n @Input()\n public showBorder: boolean | undefined = false;\n\n @Input()\n public set showCaptionPrefix(value: boolean | undefined) {\n this.#_showCaptionPrefix = value !== false;\n }\n\n public get showCaptionPrefix(): boolean {\n return this.#_showCaptionPrefix;\n }\n\n #_showCaptionPrefix = true;\n}\n","<figure class=\"sky-image-wrapper\">\n <img\n class=\"sky-image\"\n [alt]=\"imageAlt\"\n [ngClass]=\"{\n 'sky-image-border': showBorder\n }\"\n [src]=\"imageSource\"\n />\n <figcaption\n *ngIf=\"caption\"\n class=\"sky-image-caption\"\n [ngClass]=\"{\n 'sky-image-caption-default': captionType === 'default',\n 'sky-image-caption-info sky-text-info': captionType === 'info',\n 'sky-image-caption-success sky-text-success': captionType === 'success',\n 'sky-image-caption-warning sky-text-warning': captionType === 'warning',\n 'sky-image-caption-danger sky-text-danger': captionType === 'danger'\n }\"\n >\n <ng-container [ngSwitch]=\"captionType\">\n <ng-container *ngSwitchCase=\"'success'\">\n <ng-container *ngIf=\"showCaptionPrefix\">\n <strong>{{ 'skyux_image_do_text' | skyLibResources }}</strong>\n </ng-container>\n </ng-container>\n <ng-container *ngSwitchCase=\"'danger'\">\n <ng-container *ngIf=\"showCaptionPrefix\">\n <strong>{{ 'skyux_image_dont_text' | skyLibResources }}</strong>\n </ng-container>\n </ng-container>\n </ng-container>\n {{ caption }}\n </figcaption>\n</figure>\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\n\nimport { SkyMediaResourcesModule } from '../shared/sky-media-resources.module';\n\nimport { SkyImageComponent } from './image.component';\n\n@NgModule({\n declarations: [SkyImageComponent],\n imports: [CommonModule, SkyMediaResourcesModule],\n exports: [SkyImageComponent],\n})\nexport class SkyImageModule {}\n","import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n Input,\n} from '@angular/core';\nimport { DomSanitizer, SafeResourceUrl } from '@angular/platform-browser';\n\n@Component({\n selector: 'sky-video',\n templateUrl: './video.component.html',\n styleUrls: ['./video.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class SkyVideoComponent {\n @Input()\n public set videoSource(value: string | undefined) {\n this.src = value\n ? this.#sanitizer.bypassSecurityTrustResourceUrl(value)\n : undefined;\n this.#changeDetector.markForCheck();\n }\n\n public src: SafeResourceUrl | undefined;\n\n #changeDetector: ChangeDetectorRef;\n\n #sanitizer: DomSanitizer;\n\n constructor(changeDetector: ChangeDetectorRef, sanitizer: DomSanitizer) {\n this.#changeDetector = changeDetector;\n this.#sanitizer = sanitizer;\n }\n}\n","<div class=\"sky-video\">\n <iframe\n *ngIf=\"src\"\n allowfullscreen\n class=\"sky-video-object\"\n frameborder=\"0\"\n [src]=\"src\"\n >\n </iframe>\n</div>\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\n\nimport { SkyVideoComponent } from './video.component';\n\n@NgModule({\n declarations: [SkyVideoComponent],\n imports: [CommonModule],\n exports: [SkyVideoComponent],\n})\nexport class SkyVideoModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1","i2"],"mappings":";;;;;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  heroTextColor: string | undefined;
4
4
  static ɵfac: i0.ɵɵFactoryDeclaration<SkyHeroHeadingComponent, never>;
5
- static ɵcmp: i0.ɵɵComponentDeclaration<SkyHeroHeadingComponent, "sky-hero-heading", never, { "heroTextColor": "heroTextColor"; }, {}, never, ["*"], false, never>;
5
+ static ɵcmp: i0.ɵɵComponentDeclaration<SkyHeroHeadingComponent, "sky-hero-heading", never, { "heroTextColor": { "alias": "heroTextColor"; "required": false; }; }, {}, never, ["*"], false, never>;
6
6
  }
@@ -2,5 +2,5 @@ import * as i0 from "@angular/core";
2
2
  export declare class SkyHeroSubheadingComponent {
3
3
  heroTextColor: string | undefined;
4
4
  static ɵfac: i0.ɵɵFactoryDeclaration<SkyHeroSubheadingComponent, never>;
5
- static ɵcmp: i0.ɵɵComponentDeclaration<SkyHeroSubheadingComponent, "sky-hero-subheading", never, { "heroTextColor": "heroTextColor"; }, {}, never, ["*"], false, never>;
5
+ static ɵcmp: i0.ɵɵComponentDeclaration<SkyHeroSubheadingComponent, "sky-hero-subheading", never, { "heroTextColor": { "alias": "heroTextColor"; "required": false; }; }, {}, never, ["*"], false, never>;
6
6
  }
@@ -7,5 +7,5 @@ export declare class SkyHeroComponent {
7
7
  get overlayOpacity(): string;
8
8
  constructor(changeDetector: ChangeDetectorRef);
9
9
  static ɵfac: i0.ɵɵFactoryDeclaration<SkyHeroComponent, never>;
10
- static ɵcmp: i0.ɵɵComponentDeclaration<SkyHeroComponent, "sky-hero", never, { "backgroundImageUrl": "backgroundImageUrl"; "overlayOpacity": "overlayOpacity"; }, {}, never, ["*"], false, never>;
10
+ static ɵcmp: i0.ɵɵComponentDeclaration<SkyHeroComponent, "sky-hero", never, { "backgroundImageUrl": { "alias": "backgroundImageUrl"; "required": false; }; "overlayOpacity": { "alias": "overlayOpacity"; "required": false; }; }, {}, never, ["*"], false, never>;
11
11
  }
@@ -9,5 +9,5 @@ export declare class SkyImageComponent {
9
9
  set showCaptionPrefix(value: boolean | undefined);
10
10
  get showCaptionPrefix(): boolean;
11
11
  static ɵfac: i0.ɵɵFactoryDeclaration<SkyImageComponent, never>;
12
- static ɵcmp: i0.ɵɵComponentDeclaration<SkyImageComponent, "sky-image", never, { "caption": "caption"; "captionType": "captionType"; "imageAlt": "imageAlt"; "imageSource": "imageSource"; "showBorder": "showBorder"; "showCaptionPrefix": "showCaptionPrefix"; }, {}, never, never, false, never>;
12
+ static ɵcmp: i0.ɵɵComponentDeclaration<SkyImageComponent, "sky-image", never, { "caption": { "alias": "caption"; "required": false; }; "captionType": { "alias": "captionType"; "required": false; }; "imageAlt": { "alias": "imageAlt"; "required": false; }; "imageSource": { "alias": "imageSource"; "required": false; }; "showBorder": { "alias": "showBorder"; "required": false; }; "showCaptionPrefix": { "alias": "showCaptionPrefix"; "required": false; }; }, {}, never, never, false, never>;
13
13
  }
@@ -7,5 +7,5 @@ export declare class SkyVideoComponent {
7
7
  src: SafeResourceUrl | undefined;
8
8
  constructor(changeDetector: ChangeDetectorRef, sanitizer: DomSanitizer);
9
9
  static ɵfac: i0.ɵɵFactoryDeclaration<SkyVideoComponent, never>;
10
- static ɵcmp: i0.ɵɵComponentDeclaration<SkyVideoComponent, "sky-video", never, { "videoSource": "videoSource"; }, {}, never, never, false, never>;
10
+ static ɵcmp: i0.ɵɵComponentDeclaration<SkyVideoComponent, "sky-video", never, { "videoSource": { "alias": "videoSource"; "required": false; }; }, {}, never, never, false, never>;
11
11
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blackbaud/skyux-lib-media",
3
- "version": "8.1.1",
3
+ "version": "9.0.0",
4
4
  "author": "Blackbaud, Inc.",
5
5
  "keywords": [
6
6
  "blackbaud",
@@ -17,19 +17,15 @@
17
17
  },
18
18
  "homepage": "https://github.com/blackbaud/stache#readme",
19
19
  "peerDependencies": {
20
- "@angular/common": "^15.2.9",
21
- "@angular/core": "^15.2.9",
22
- "@angular/platform-browser": "^15.2.9",
23
- "@skyux/i18n": "^8.0.0"
20
+ "@angular/common": "^16.2.5",
21
+ "@angular/core": "^16.2.5",
22
+ "@angular/platform-browser": "^16.2.5",
23
+ "@skyux/i18n": "^9.0.0"
24
24
  },
25
25
  "dependencies": {
26
- "tslib": "^2.4.1"
26
+ "tslib": "^2.6.1"
27
27
  },
28
- "module": "fesm2015/blackbaud-skyux-lib-media.mjs",
29
- "es2020": "fesm2020/blackbaud-skyux-lib-media.mjs",
30
- "esm2020": "esm2020/blackbaud-skyux-lib-media.mjs",
31
- "fesm2020": "fesm2020/blackbaud-skyux-lib-media.mjs",
32
- "fesm2015": "fesm2015/blackbaud-skyux-lib-media.mjs",
28
+ "module": "fesm2022/blackbaud-skyux-lib-media.mjs",
33
29
  "typings": "index.d.ts",
34
30
  "exports": {
35
31
  "./package.json": {
@@ -37,11 +33,9 @@
37
33
  },
38
34
  ".": {
39
35
  "types": "./index.d.ts",
40
- "esm2020": "./esm2020/blackbaud-skyux-lib-media.mjs",
41
- "es2020": "./fesm2020/blackbaud-skyux-lib-media.mjs",
42
- "es2015": "./fesm2015/blackbaud-skyux-lib-media.mjs",
43
- "node": "./fesm2015/blackbaud-skyux-lib-media.mjs",
44
- "default": "./fesm2020/blackbaud-skyux-lib-media.mjs"
36
+ "esm2022": "./esm2022/blackbaud-skyux-lib-media.mjs",
37
+ "esm": "./esm2022/blackbaud-skyux-lib-media.mjs",
38
+ "default": "./fesm2022/blackbaud-skyux-lib-media.mjs"
45
39
  }
46
40
  },
47
41
  "sideEffects": false
@@ -1,51 +0,0 @@
1
- var _SkyHeroComponent_instances, _SkyHeroComponent_changeDetector, _SkyHeroComponent__overlayOpacity, _SkyHeroComponent_parseInterval;
2
- import { __classPrivateFieldGet, __classPrivateFieldSet } from "tslib";
3
- import { ChangeDetectionStrategy, Component, Input, } from '@angular/core';
4
- import * as i0 from "@angular/core";
5
- import * as i1 from "@angular/common";
6
- const DEFAULT_OPACITY = '0.4';
7
- export class SkyHeroComponent {
8
- set overlayOpacity(value) {
9
- const overlayOpacity = value || DEFAULT_OPACITY;
10
- const sanitized = overlayOpacity.replace(/[^\d.-]/g, '');
11
- const newValue = __classPrivateFieldGet(this, _SkyHeroComponent_instances, "m", _SkyHeroComponent_parseInterval).call(this, sanitized).toString();
12
- __classPrivateFieldSet(this, _SkyHeroComponent__overlayOpacity, newValue, "f");
13
- __classPrivateFieldGet(this, _SkyHeroComponent_changeDetector, "f").markForCheck();
14
- }
15
- get overlayOpacity() {
16
- return __classPrivateFieldGet(this, _SkyHeroComponent__overlayOpacity, "f");
17
- }
18
- constructor(changeDetector) {
19
- _SkyHeroComponent_instances.add(this);
20
- _SkyHeroComponent_changeDetector.set(this, void 0);
21
- _SkyHeroComponent__overlayOpacity.set(this, DEFAULT_OPACITY);
22
- __classPrivateFieldSet(this, _SkyHeroComponent_changeDetector, changeDetector, "f");
23
- }
24
- }
25
- _SkyHeroComponent_changeDetector = new WeakMap(), _SkyHeroComponent__overlayOpacity = new WeakMap(), _SkyHeroComponent_instances = new WeakSet(), _SkyHeroComponent_parseInterval = function _SkyHeroComponent_parseInterval(value) {
26
- const interval = parseFloat(value);
27
- if (isNaN(interval)) {
28
- return 0.4;
29
- }
30
- if (interval > 100) {
31
- return 1;
32
- }
33
- if (interval < 0) {
34
- return 0;
35
- }
36
- if (interval % 1 > 0) {
37
- return interval;
38
- }
39
- return interval / 100;
40
- };
41
- SkyHeroComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SkyHeroComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
42
- SkyHeroComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: SkyHeroComponent, selector: "sky-hero", inputs: { backgroundImageUrl: "backgroundImageUrl", overlayOpacity: "overlayOpacity" }, ngImport: i0, template: "<div\n class=\"sky-hero\"\n [ngStyle]=\"{\n 'background-image': 'url(' + backgroundImageUrl + ')'\n }\"\n>\n <div class=\"sky-hero-body sky-max-width-container\">\n <ng-content></ng-content>\n </div>\n <div\n class=\"sky-hero-overlay\"\n [ngStyle]=\"{\n opacity: overlayOpacity\n }\"\n ></div>\n</div>\n", styles: [".sky-hero{background-color:#000;display:flex;justify-content:center;background-repeat:no-repeat;background-position:center;background-size:cover;position:relative;box-shadow:0 1px 8px #00000073 inset}.sky-hero-body{display:flex;flex-direction:column;justify-content:center;margin:100px 0 80px;text-align:center;z-index:1;padding:0 15px}@media (min-width: 992px){.sky-hero-body{padding:0 10px}}@media (min-width: 1200px){.sky-hero-body{padding:0}}.sky-hero-overlay{background-color:#000;position:absolute;inset:0;height:100%;width:100%}\n"], dependencies: [{ kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
43
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SkyHeroComponent, decorators: [{
44
- type: Component,
45
- args: [{ selector: 'sky-hero', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div\n class=\"sky-hero\"\n [ngStyle]=\"{\n 'background-image': 'url(' + backgroundImageUrl + ')'\n }\"\n>\n <div class=\"sky-hero-body sky-max-width-container\">\n <ng-content></ng-content>\n </div>\n <div\n class=\"sky-hero-overlay\"\n [ngStyle]=\"{\n opacity: overlayOpacity\n }\"\n ></div>\n</div>\n", styles: [".sky-hero{background-color:#000;display:flex;justify-content:center;background-repeat:no-repeat;background-position:center;background-size:cover;position:relative;box-shadow:0 1px 8px #00000073 inset}.sky-hero-body{display:flex;flex-direction:column;justify-content:center;margin:100px 0 80px;text-align:center;z-index:1;padding:0 15px}@media (min-width: 992px){.sky-hero-body{padding:0 10px}}@media (min-width: 1200px){.sky-hero-body{padding:0}}.sky-hero-overlay{background-color:#000;position:absolute;inset:0;height:100%;width:100%}\n"] }]
46
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { backgroundImageUrl: [{
47
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biAgICB0aGlzLiNjaGFuZ2VEZXRlY3RvciA9IGNoYW5nZURldGVjdG9yO1xuICB9XG5cbiAgI3BhcnNlSW50ZXJ2YWwodmFsdWU6IHN0cmluZyk6IG51bWJlciB7XG4gICAgY29uc3QgaW50ZXJ2YWwgPSBwYXJzZUZsb2F0KHZhbHVlKTtcblxuICAgIGlmIChpc05hTihpbnRlcnZhbCkpIHtcbiAgICAgIHJldHVybiAwLjQ7XG4gICAgfVxuXG4gICAgaWYgKGludGVydmFsID4gMTAwKSB7XG4gICAgICByZXR1cm4gMTtcbiAgICB9XG5cbiAgICBpZiAoaW50ZXJ2YWwgPCAwKSB7XG4gICAgICByZXR1cm4gMDtcbiAgICB9XG5cbiAgICBpZiAoaW50ZXJ2YWwgJSAxID4gMCkge1xuICAgICAgcmV0dXJuIGludGVydmFsO1xuICAgIH1cblxuICAgIHJldHVybiBpbnRlcnZhbCAvIDEwMDtcbiAgfVxufVxuIiwiPGRpdlxuICBjbGFzcz1cInNreS1oZXJvXCJcbiAgW25nU3R5bGVdPVwie1xuICAgICdiYWNrZ3JvdW5kLWltYWdlJzogJ3VybCgnICsgYmFja2dyb3VuZEltYWdlVXJsICsgJyknXG4gIH1cIlxuPlxuICA8ZGl2IGNsYXNzPVwic2t5LWhlcm8tYm9keSBza3ktbWF4LXdpZHRoLWNvbnRhaW5lclwiPlxuICAgIDxuZy1jb250ZW50PjwvbmctY29udGVudD5cbiAgPC9kaXY+XG4gIDxkaXZcbiAgICBjbGFzcz1cInNreS1oZXJvLW92ZXJsYXlcIlxuICAgIFtuZ1N0eWxlXT1cIntcbiAgICAgIG9wYWNpdHk6IG92ZXJsYXlPcGFjaXR5XG4gICAgfVwiXG4gID48L2Rpdj5cbjwvZGl2PlxuIl19
@@ -1,48 +0,0 @@
1
- /**
2
- * NOTICE: DO NOT MODIFY THIS FILE!
3
- * The contents of this file were automatically generated by
4
- * the 'ng generate @skyux/i18n:lib-resources-module lib/modules/shared/sky-media' schematic.
5
- * To update this file, simply rerun the command.
6
- */
7
- import { NgModule } from '@angular/core';
8
- import { SKY_LIB_RESOURCES_PROVIDERS, SkyI18nModule, getLibStringForLocale, } from '@skyux/i18n';
9
- import * as i0 from "@angular/core";
10
- const RESOURCES = {
11
- 'EN-US': {
12
- skyux_image_do_text: { message: 'Do' },
13
- skyux_image_dont_text: { message: "Don't" },
14
- },
15
- };
16
- export class SkyMediaResourcesProvider {
17
- getString(localeInfo, name) {
18
- return getLibStringForLocale(RESOURCES, localeInfo.locale, name);
19
- }
20
- }
21
- /**
22
- * Import into any component library module that needs to use resource strings.
23
- */
24
- export class SkyMediaResourcesModule {
25
- }
26
- SkyMediaResourcesModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SkyMediaResourcesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
27
- SkyMediaResourcesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: SkyMediaResourcesModule, exports: [SkyI18nModule] });
28
- SkyMediaResourcesModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SkyMediaResourcesModule, providers: [
29
- {
30
- provide: SKY_LIB_RESOURCES_PROVIDERS,
31
- useClass: SkyMediaResourcesProvider,
32
- multi: true,
33
- },
34
- ], imports: [SkyI18nModule] });
35
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SkyMediaResourcesModule, decorators: [{
36
- type: NgModule,
37
- args: [{
38
- exports: [SkyI18nModule],
39
- providers: [
40
- {
41
- provide: SKY_LIB_RESOURCES_PROVIDERS,
42
- useClass: SkyMediaResourcesProvider,
43
- multi: true,
44
- },
45
- ],
46
- }]
47
- }] });
48
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2t5LW1lZGlhLXJlc291cmNlcy5tb2R1bGUuanMiLCJ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