@fundamental-ngx/core 0.56.4 → 0.56.5

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.
@@ -90,38 +90,26 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.3", ngImpor
90
90
 
91
91
  var IllustratedMessageTypes;
92
92
  (function (IllustratedMessageTypes) {
93
+ IllustratedMessageTypes["LARGE"] = "large";
94
+ IllustratedMessageTypes["MEDIUM"] = "medium";
95
+ IllustratedMessageTypes["SMALL"] = "small";
96
+ IllustratedMessageTypes["EXTRA_SMALL"] = "xsmall";
97
+ IllustratedMessageTypes["BASE"] = "base";
93
98
  IllustratedMessageTypes["SCENE"] = "scene";
94
99
  IllustratedMessageTypes["DIALOG"] = "dialog";
95
100
  IllustratedMessageTypes["SPOT"] = "spot";
96
101
  IllustratedMessageTypes["DOT"] = "dot";
97
- IllustratedMessageTypes["BASE"] = "base";
98
102
  })(IllustratedMessageTypes || (IllustratedMessageTypes = {}));
99
103
  let illustratedMessageUniqueId = 0;
100
104
  class IllustratedMessageComponent {
101
- /** @hidden */
102
105
  constructor(elementRef, _cdRef, _sanitizer) {
103
106
  this.elementRef = elementRef;
104
107
  this._cdRef = _cdRef;
105
108
  this._sanitizer = _sanitizer;
106
- /**
107
- * When set to true will remove the illustration from the Illustrated Message
108
- * The default is set to false
109
- */
110
109
  this.noSvg = false;
111
- /**
112
- * Id of the Illustrated Message
113
- * If not provided, a default one is generated
114
- */
115
110
  this.id = 'fd-illustrated-message-' + illustratedMessageUniqueId++;
116
- /** @hidden */
117
111
  this._subscriptions = new Subscription();
118
112
  }
119
- /**
120
- * @hidden
121
- * CssClassBuilder interface implementation
122
- * function must return single string
123
- * function is responsible for order which css classes are applied
124
- */
125
113
  buildComponentCssClass() {
126
114
  return [
127
115
  'fd-illustrated-message',
@@ -129,76 +117,90 @@ class IllustratedMessageComponent {
129
117
  this.class || ''
130
118
  ].filter(Boolean);
131
119
  }
132
- /** @hidden */
133
120
  ngOnChanges(changes) {
134
121
  if ('svgConfig' in changes) {
135
122
  this._constructHref();
136
123
  }
137
124
  }
138
- /** @hidden */
139
125
  ngOnInit() {
140
126
  const resizeSubscription = fromEvent(window, 'resize')
141
- .pipe(debounceTime(200)) // reduce frequent calls during window resizing
127
+ .pipe(debounceTime(200))
142
128
  .subscribe(() => this._constructHref());
143
129
  this._subscriptions.add(resizeSubscription);
144
130
  }
145
- /** @hidden */
146
131
  ngAfterContentChecked() {
147
132
  this._constructHref();
148
133
  }
149
- /** @hidden */
150
134
  ngOnDestroy() {
151
135
  this._subscriptions.unsubscribe();
152
136
  }
153
- /** @hidden */
154
137
  _constructHref() {
155
138
  this._inlineSvg = undefined;
156
139
  const containerWidth = this.elementRef.nativeElement.offsetWidth;
157
- this._tempType = this.type;
158
- if (!this.type && containerWidth > 0) {
159
- this._tempType = this._determineIllustratedMessageType(containerWidth);
160
- }
161
- const inlineSvg = this.svgConfig?.[this._tempType]?.file;
140
+ const normalizedType = this._normalizeType(this.type);
141
+ this._tempType = this.type ? normalizedType : this._determineIllustratedMessageType(containerWidth);
142
+ const normalizedConfig = this._normalizeSvgConfig(this.svgConfig);
143
+ const inlineSvg = normalizedConfig?.[this._tempType]?.file;
162
144
  if (inlineSvg) {
163
145
  this._inlineSvg = this._sanitizer.bypassSecurityTrustHtml(inlineSvg);
164
146
  }
165
- this._href = this.svgConfig ? this._getHrefByType(this._tempType, this.svgConfig) : '';
147
+ this._href = normalizedConfig ? this._getHrefByType(this._tempType, normalizedConfig) : '';
166
148
  this.buildComponentCssClass();
167
149
  this._cdRef.markForCheck();
168
150
  }
169
- /** @hidden */
170
151
  _determineIllustratedMessageType(width) {
171
152
  if (width >= 682) {
172
- return IllustratedMessageTypes.SCENE;
153
+ return IllustratedMessageTypes.LARGE;
173
154
  }
174
155
  else if (width >= 361) {
175
- return IllustratedMessageTypes.DIALOG;
156
+ return IllustratedMessageTypes.MEDIUM;
176
157
  }
177
158
  else if (width >= 261) {
178
- return IllustratedMessageTypes.SPOT;
159
+ return IllustratedMessageTypes.SMALL;
179
160
  }
180
161
  else if (width >= 161) {
181
- return IllustratedMessageTypes.DOT;
162
+ return IllustratedMessageTypes.EXTRA_SMALL;
182
163
  }
183
164
  return IllustratedMessageTypes.BASE;
184
165
  }
185
- /** @hidden */
166
+ _normalizeType(type) {
167
+ switch (type) {
168
+ case 'scene':
169
+ return 'large';
170
+ case 'dialog':
171
+ return 'medium';
172
+ case 'spot':
173
+ return 'small';
174
+ case 'dot':
175
+ return 'xsmall';
176
+ default:
177
+ return type;
178
+ }
179
+ }
180
+ _normalizeSvgConfig(config) {
181
+ return {
182
+ large: config.large || config.scene,
183
+ medium: config.medium || config.dialog,
184
+ small: config.small || config.spot,
185
+ xsmall: config.xsmall || config.dot
186
+ };
187
+ }
186
188
  _getHrefByType(type, svgConfig) {
187
189
  switch (type) {
188
- case IllustratedMessageTypes.SCENE:
189
- return `${svgConfig.scene?.url || ''}#${svgConfig.scene?.id}`;
190
- case IllustratedMessageTypes.DIALOG:
191
- return `${svgConfig.dialog?.url || ''}#${svgConfig.dialog?.id}`;
192
- case IllustratedMessageTypes.SPOT:
193
- return `${svgConfig.spot?.url || ''}#${svgConfig.spot?.id}`;
194
- case IllustratedMessageTypes.DOT:
195
- return `${svgConfig.dot?.url || ''}#${svgConfig.dot?.id}`;
190
+ case 'large':
191
+ return `${svgConfig.large?.url || ''}#${svgConfig.large?.id}`;
192
+ case 'medium':
193
+ return `${svgConfig.medium?.url || ''}#${svgConfig.medium?.id}`;
194
+ case 'small':
195
+ return `${svgConfig.small?.url || ''}#${svgConfig.small?.id}`;
196
+ case 'xsmall':
197
+ return `${svgConfig.xsmall?.url || ''}#${svgConfig.xsmall?.id}`;
196
198
  default:
197
199
  return '';
198
200
  }
199
201
  }
200
202
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.3", ngImport: i0, type: IllustratedMessageComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i1.DomSanitizer }], target: i0.ɵɵFactoryTarget.Component }); }
201
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.3", type: IllustratedMessageComponent, isStandalone: true, selector: "[fd-illustrated-message]", inputs: { type: "type", svgConfig: "svgConfig", svgAriaLabel: "svgAriaLabel", noSvg: "noSvg", id: "id", class: "class" }, host: { properties: { "attr.id": "this.id" } }, usesOnChanges: true, ngImport: i0, template: "<div class=\"fd-illustrated-message__container\">\n @if (!noSvg) {\n <svg class=\"fd-illustrated-message__illustration\" [attr.aria-label]=\"svgAriaLabel\">\n <use [attr.href]=\"_href\"></use>\n </svg>\n }\n @if (_inlineSvg) {\n <div [style.display]=\"'none'\" [innerHTML]=\"_inlineSvg\"></div>\n }\n <ng-content select=\"[fd-illustrated-message-figcaption]\"></ng-content>\n</div>\n<ng-content select=\"fd-illustrated-message-actions\"></ng-content>\n", styles: [".fd-illustrated-message{--illustratedMessagePadding:1rem;--illustratedMessageMaxWidth:auto;--actionsMarginInline:0;--actionsMarginBlock:1rem;--actionsPaddingInlineStart:0;--actionsPaddingInlineEnd:0;--illustrationMinWidth:15rem;--illustrationMaxWidth:20rem;--illustrationMinHeight:11.25rem;--illustrationMaxHeight:15rem;--illustrationMarginBlock:2rem;--illustrationMarginInlineStart:0;--illustrationMarginInlineEnd:0;--illustrationDisplay:flex;--containerFlexDirection:column;--figcaptionMaxWidth:61.9375rem;--titleMinWidth:auto;--titleMarginBottom:1rem;--titleFontSize:var(--sapFontHeader2Size);--textMinWidth:auto;--textMarginBottom:.5rem;border:0;-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--sapTextColor);display:-webkit-box;display:-ms-flexbox;display:flex;font-family:var(--sapFontFamily);font-size:var(--sapFontSize);font-weight:400;forced-color-adjust:none;line-height:normal;margin-block:0;margin-inline:0;padding-block:0;padding-inline:0;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:center;-ms-flex-align:center;align-items:center;max-width:var(--illustratedMessageMaxWidth);min-height:100%;padding-block:var(--illustratedMessagePadding);padding-inline:var(--illustratedMessagePadding);text-align:center;width:100%}.fd-illustrated-message:after,.fd-illustrated-message:before{-webkit-box-sizing:inherit;box-sizing:inherit;font-size:inherit}.fd-illustrated-message-responsive-container{border:0;-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--sapTextColor);display:-webkit-box;display:-ms-flexbox;display:flex;font-family:var(--sapFontFamily);font-size:var(--sapFontSize);font-weight:400;forced-color-adjust:none;line-height:normal;margin-block:0;margin-inline:0;padding-block:0;padding-inline:0;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;container-type:inline-size;height:100%;min-height:100%;width:100%}.fd-illustrated-message-responsive-container:after,.fd-illustrated-message-responsive-container:before{-webkit-box-sizing:inherit;box-sizing:inherit;font-size:inherit}.fd-illustrated-message__container{border:0;-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--sapTextColor);display:-webkit-box;display:-ms-flexbox;display:flex;font-family:var(--sapFontFamily);font-size:var(--sapFontSize);font-weight:400;forced-color-adjust:none;line-height:normal;margin-block:0;margin-inline:0;padding-block:0;padding-inline:0;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-ms-flex-direction:var(--containerFlexDirection);flex-direction:var(--containerFlexDirection)}.fd-illustrated-message__container:after,.fd-illustrated-message__container:before{-webkit-box-sizing:inherit;box-sizing:inherit;font-size:inherit}.fd-illustrated-message__illustration{border:0;-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--sapTextColor);display:var(--illustrationDisplay);font-family:var(--sapFontFamily);font-size:var(--sapFontSize);font-weight:400;forced-color-adjust:none;height:auto;line-height:normal;margin-block:0;margin-block:var(--illustrationMarginBlock);margin-inline:0;margin-inline:var(--illustrationMarginInlineStart) var(--illustrationMarginInlineEnd);max-height:var(--illustrationMaxHeight);max-width:var(--illustrationMaxWidth);min-height:var(--illustrationMinHeight);min-width:var(--illustrationMinWidth);padding-block:0;padding-inline:0;width:auto}.fd-illustrated-message__illustration:after,.fd-illustrated-message__illustration:before{-webkit-box-sizing:inherit;box-sizing:inherit;font-size:inherit}.fd-illustrated-message__figcaption{border:0;-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--sapTextColor);display:-webkit-box;display:-ms-flexbox;display:flex;font-family:var(--sapFontFamily);font-size:var(--sapFontSize);font-weight:400;forced-color-adjust:none;line-height:normal;margin-block:0;margin-inline:0;padding-block:0;padding-inline:0;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:center;-ms-flex-align:center;align-items:center;max-width:var(--figcaptionMaxWidth);overflow:hidden}.fd-illustrated-message__figcaption:after,.fd-illustrated-message__figcaption:before{-webkit-box-sizing:inherit;box-sizing:inherit;font-size:inherit}.fd-illustrated-message__title{border:0;-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--sapTextColor);color:var(--sapGroup_TitleTextColor);font-family:var(--sapFontFamily);font-family:var(--sapFontHeaderFamily);font-size:var(--sapFontSize);font-size:var(--titleFontSize);font-weight:400;forced-color-adjust:none;line-height:normal;margin-block:0;margin-inline:0;padding-block:0;padding-inline:0;text-align:center;width:100%;-webkit-margin-after:var(--titleMarginBottom);margin-block-end:var(--titleMarginBottom)}.fd-illustrated-message__title:after,.fd-illustrated-message__title:before{-webkit-box-sizing:inherit;box-sizing:inherit;font-size:inherit}.fd-illustrated-message__text{border:0;-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--sapTextColor);font-family:var(--sapFontFamily);font-size:var(--sapFontSize);font-weight:400;forced-color-adjust:none;line-height:normal;line-height:1.5;margin-block:0;margin-inline:0;padding-block:0;padding-inline:0;text-align:center;text-wrap:wrap;-webkit-margin-after:var(--textMarginBottom);margin-block-end:var(--textMarginBottom)}.fd-illustrated-message__text:after,.fd-illustrated-message__text:before{-webkit-box-sizing:inherit;box-sizing:inherit;font-size:inherit}.fd-illustrated-message__actions{border:0;-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--sapTextColor);display:-webkit-box;display:-ms-flexbox;display:flex;font-family:var(--sapFontFamily);font-size:var(--sapFontSize);font-weight:400;forced-color-adjust:none;line-height:normal;margin-block:0;margin-inline:0;padding-block:0;padding-inline:0;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:.5rem;margin-block:var(--actionsMarginBlock);margin-inline:var(--actionsMarginInline);padding-inline:var(--actionsPaddingInlineStart) var(--actionsPaddingInlineEnd)}.fd-illustrated-message__actions:after,.fd-illustrated-message__actions:before{-webkit-box-sizing:inherit;box-sizing:inherit;font-size:inherit}.fd-illustrated-message--dialog{--illustrationMinWidth:10rem;--illustrationMinHeight:10rem;--illustrationMaxWidth:10rem;--illustrationMaxHeight:10rem;--illustrationMarginBlock:1rem;--titleMarginBottom:.5rem;--titleFontSize:var(--sapFontHeader3Size);--figcaptionMaxWidth:40.5625rem;--actionsMarginBlock:.5rem 1rem}.fd-illustrated-message--spot{--illustratedMessagePadding:.5rem;--illustrationMinWidth:8rem;--illustrationMinHeight:8rem;--illustrationMaxWidth:8rem;--illustrationMaxHeight:8rem;--illustrationMarginBlock:0 .5rem;--titleMarginBottom:.5rem;--titleFontSize:var(--sapFontHeader4Size);--figcaptionMaxWidth:21.5rem;--actionsMarginBlock:.5rem}.fd-illustrated-message--dot{--illustratedMessagePadding:.25rem;--containerFlexDirection:row;--illustrationMinWidth:2.8125rem;--illustrationMaxWidth:2.8125rem;--illustrationMinHeight:2.8125rem;--illustrationMaxHeight:2.8125rem;--illustrationMarginBlock:0;--illustrationMarginInlineEnd:.25rem;--figcaptionMaxWidth:12.6875rem;--titleMarginBottom:.25rem;--titleFontSize:var(--sapFontHeader5Size);--textMarginBottom:.313rem;--actionsMarginBlock:.25rem;--actionsMarginInline:auto;--actionsPaddingInlineStart:var(--illustrationMaxWidth)}.fd-illustrated-message--base{--illustratedMessagePadding:.25rem;--illustratedMessageMaxWidth:auto;--illustrationDisplay:none;--figcaptionMaxWidth:12.6875rem;--titleMarginBottom:.25rem;--titleFontSize:var(--sapFontHeader5Size);--textMarginBottom:.313rem;--actionsMarginBlock:.25rem;--actionsMarginInline:auto;--actionsPaddingInlineStart:0}@container (width <= 681px){.fd-illustrated-message{--illustrationMinWidth:10rem;--illustrationMinHeight:10rem;--illustrationMaxWidth:10rem;--illustrationMaxHeight:10rem;--illustrationMarginBlock:1rem;--titleMarginBottom:.5rem;--titleFontSize:var(--sapFontHeader3Size);--figcaptionMaxWidth:40.5625rem;--actionsMarginBlock:.5rem 1rem}}@container (width <= 360px){.fd-illustrated-message{--illustratedMessagePadding:.5rem;--illustrationMinWidth:8rem;--illustrationMinHeight:8rem;--illustrationMaxWidth:8rem;--illustrationMaxHeight:8rem;--illustrationMarginBlock:0 .5rem;--titleMarginBottom:.5rem;--titleFontSize:var(--sapFontHeader4Size);--figcaptionMaxWidth:21.5rem;--actionsMarginBlock:.5rem}}@container (width <= 260px){.fd-illustrated-message{--illustratedMessagePadding:.25rem;--containerFlexDirection:row;--illustrationMinWidth:2.8125rem;--illustrationMaxWidth:2.8125rem;--illustrationMinHeight:2.8125rem;--illustrationMaxHeight:2.8125rem;--illustrationMarginBlock:0;--illustrationMarginInlineEnd:.25rem;--figcaptionMaxWidth:12.6875rem;--titleMarginBottom:.25rem;--titleFontSize:var(--sapFontHeader5Size);--textMarginBottom:.313rem;--actionsMarginBlock:.25rem;--actionsMarginInline:auto;--actionsPaddingInlineStart:var(--illustrationMaxWidth)}}@container (width <= 160px){.fd-illustrated-message{--illustratedMessagePadding:.25rem;--illustratedMessageMaxWidth:auto;--illustrationDisplay:none;--figcaptionMaxWidth:12.6875rem;--titleMarginBottom:.25rem;--titleFontSize:var(--sapFontHeader5Size);--textMarginBottom:.313rem;--actionsMarginBlock:.25rem;--actionsMarginInline:auto;--actionsPaddingInlineStart:0}}.fd-illustrated-message__illustration{height:var(--illustrationMaxWidth)}\n/*! Bundled license information:\n\nfundamental-styles/dist/illustrated-message.css:\n (*!\n * Fundamental Library Styles v0.40.1\n * Copyright (c) 2025 SAP SE or an SAP affiliate company.\n * Licensed under Apache License 2.0 (https://github.com/SAP/fundamental-styles/blob/main/LICENSE)\n *)\n*/\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
203
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.3", type: IllustratedMessageComponent, isStandalone: true, selector: "[fd-illustrated-message]", inputs: { type: "type", svgConfig: "svgConfig", svgAriaLabel: "svgAriaLabel", noSvg: "noSvg", id: "id", class: "class" }, host: { properties: { "attr.id": "this.id" } }, usesOnChanges: true, ngImport: i0, template: "<div class=\"fd-illustrated-message__container\">\n @if (!noSvg) {\n <svg class=\"fd-illustrated-message__illustration\" [attr.aria-label]=\"svgAriaLabel\">\n <use [attr.href]=\"_href\"></use>\n </svg>\n }\n @if (_inlineSvg) {\n <div [style.display]=\"'none'\" [innerHTML]=\"_inlineSvg\"></div>\n }\n <ng-content select=\"[fd-illustrated-message-figcaption]\"></ng-content>\n</div>\n<ng-content select=\"fd-illustrated-message-actions\"></ng-content>\n", styles: [".fd-illustrated-message{--illustratedMessagePadding: 1rem;--illustratedMessageMaxWidth: auto;--actionsMarginInline: 0;--actionsMarginBlock: 1rem;--actionsPaddingInlineStart: 0;--actionsPaddingInlineEnd: 0;--illustrationMinWidth: 15rem;--illustrationMaxWidth: 20rem;--illustrationMinHeight: 11.25rem;--illustrationMaxHeight: 15rem;--illustrationMarginBlock: 2rem;--illustrationMarginInlineStart: 0;--illustrationMarginInlineEnd: 0;--illustrationDisplay: flex;--containerFlexDirection: column;--figcaptionMaxWidth: 61.9375rem;--titleMinWidth: auto;--titleMarginBottom: 1rem;--titleFontSize: var(--sapFontHeader2Size);--textMinWidth: auto;--textMarginBottom: .5rem;font-size:var(--sapFontSize);line-height:normal;color:var(--sapTextColor);font-family:var(--sapFontFamily);font-weight:400;-webkit-box-sizing:border-box;box-sizing:border-box;forced-color-adjust:none;padding-inline:0;padding-block:0;margin-inline:0;margin-block:0;border:0;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:100%;text-align:center;max-width:var(--illustratedMessageMaxWidth);padding-block:var(--illustratedMessagePadding);padding-inline:var(--illustratedMessagePadding)}.fd-illustrated-message:before,.fd-illustrated-message:after{-webkit-box-sizing:inherit;box-sizing:inherit;font-size:inherit}.fd-illustrated-message-responsive-container{font-size:var(--sapFontSize);line-height:normal;color:var(--sapTextColor);font-family:var(--sapFontFamily);font-weight:400;-webkit-box-sizing:border-box;box-sizing:border-box;forced-color-adjust:none;padding-inline:0;padding-block:0;margin-inline:0;margin-block:0;border:0;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:100%;min-height:100%;height:100%;container-type:inline-size}.fd-illustrated-message-responsive-container:before,.fd-illustrated-message-responsive-container:after{-webkit-box-sizing:inherit;box-sizing:inherit;font-size:inherit}.fd-illustrated-message__container{font-size:var(--sapFontSize);line-height:normal;color:var(--sapTextColor);font-family:var(--sapFontFamily);font-weight:400;-webkit-box-sizing:border-box;box-sizing:border-box;forced-color-adjust:none;padding-inline:0;padding-block:0;margin-inline:0;margin-block:0;border:0;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-align:var(--containerFlexAlignment, center);-ms-flex-align:var(--containerFlexAlignment, center);align-items:var(--containerFlexAlignment, center);-ms-flex-direction:var(--containerFlexDirection);flex-direction:var(--containerFlexDirection)}.fd-illustrated-message__container:before,.fd-illustrated-message__container:after{-webkit-box-sizing:inherit;box-sizing:inherit;font-size:inherit}.fd-illustrated-message__illustration{font-size:var(--sapFontSize);line-height:normal;color:var(--sapTextColor);font-family:var(--sapFontFamily);font-weight:400;-webkit-box-sizing:border-box;box-sizing:border-box;forced-color-adjust:none;padding-inline:0;padding-block:0;margin-inline:0;margin-block:0;border:0;width:auto;height:auto;display:var(--illustrationDisplay);min-width:var(--illustrationMinWidth);min-height:var(--illustrationMinHeight);max-width:var(--illustrationMaxWidth);max-height:var(--illustrationMaxHeight);margin-block:var(--illustrationMarginBlock);margin-inline:var(--illustrationMarginInlineStart) var(--illustrationMarginInlineEnd)}.fd-illustrated-message__illustration:before,.fd-illustrated-message__illustration:after{-webkit-box-sizing:inherit;box-sizing:inherit;font-size:inherit}.fd-illustrated-message__figcaption{font-size:var(--sapFontSize);line-height:normal;color:var(--sapTextColor);font-family:var(--sapFontFamily);font-weight:400;-webkit-box-sizing:border-box;box-sizing:border-box;forced-color-adjust:none;padding-inline:0;padding-block:0;margin-inline:0;margin-block:0;border:0;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:center;-ms-flex-align:center;align-items:center;overflow:hidden;max-width:var(--figcaptionMaxWidth)}.fd-illustrated-message__figcaption:before,.fd-illustrated-message__figcaption:after{-webkit-box-sizing:inherit;box-sizing:inherit;font-size:inherit}.fd-illustrated-message__title{font-size:var(--sapFontSize);line-height:normal;color:var(--sapTextColor);font-family:var(--sapFontFamily);font-weight:400;-webkit-box-sizing:border-box;box-sizing:border-box;forced-color-adjust:none;padding-inline:0;padding-block:0;margin-inline:0;margin-block:0;border:0;width:100%;text-align:center;font-size:var(--titleFontSize);color:var(--sapGroup_TitleTextColor);font-family:var(--sapFontHeaderFamily);-webkit-margin-after:var(--titleMarginBottom);margin-block-end:var(--titleMarginBottom)}.fd-illustrated-message__title:before,.fd-illustrated-message__title:after{-webkit-box-sizing:inherit;box-sizing:inherit;font-size:inherit}.fd-illustrated-message__text{font-size:var(--sapFontSize);line-height:normal;color:var(--sapTextColor);font-family:var(--sapFontFamily);font-weight:400;-webkit-box-sizing:border-box;box-sizing:border-box;forced-color-adjust:none;padding-inline:0;padding-block:0;margin-inline:0;margin-block:0;border:0;text-wrap:wrap;text-align:center;line-height:1.5;-webkit-margin-after:var(--textMarginBottom);margin-block-end:var(--textMarginBottom)}.fd-illustrated-message__text:before,.fd-illustrated-message__text:after{-webkit-box-sizing:inherit;box-sizing:inherit;font-size:inherit}.fd-illustrated-message__actions{font-size:var(--sapFontSize);line-height:normal;color:var(--sapTextColor);font-family:var(--sapFontFamily);font-weight:400;-webkit-box-sizing:border-box;box-sizing:border-box;forced-color-adjust:none;padding-inline:0;padding-block:0;margin-inline:0;margin-block:0;border:0;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:.5rem;margin-block:var(--actionsMarginBlock);margin-inline:var(--actionsMarginInline);padding-inline:var(--actionsPaddingInlineStart) var(--actionsPaddingInlineEnd)}.fd-illustrated-message__actions:before,.fd-illustrated-message__actions:after{-webkit-box-sizing:inherit;box-sizing:inherit;font-size:inherit}.fd-illustrated-message--dialog,.fd-illustrated-message--medium{--illustrationMinWidth: 10rem;--illustrationMinHeight: 10rem;--illustrationMaxWidth: 10rem;--illustrationMaxHeight: 10rem;--illustrationMarginBlock: 1rem;--titleMarginBottom: .5rem;--titleFontSize: var(--sapFontHeader3Size);--figcaptionMaxWidth: 40.5625rem;--actionsMarginBlock: .5rem 1rem}.fd-illustrated-message--spot,.fd-illustrated-message--small{--illustratedMessagePadding: .5rem;--illustrationMinWidth: 8rem;--illustrationMinHeight: 8rem;--illustrationMaxWidth: 8rem;--illustrationMaxHeight: 8rem;--illustrationMarginBlock: 0 .5rem;--titleMarginBottom: .5rem;--titleFontSize: var(--sapFontHeader4Size);--figcaptionMaxWidth: 21.5rem;--actionsMarginBlock: .5rem}.fd-illustrated-message--dot,.fd-illustrated-message--xsmall{--illustratedMessagePadding: .25rem;--containerFlexDirection: row;--containerFlexAlignment: flex-start;--illustrationMinWidth: 2.8125rem;--illustrationMaxWidth: 2.8125rem;--illustrationMinHeight: 2.8125rem;--illustrationMaxHeight: 2.8125rem;--illustrationMarginBlock: 0;--illustrationMarginInlineEnd: .25rem;--figcaptionMaxWidth: 12.6875rem;--titleMarginBottom: .25rem;--titleFontSize: var(--sapFontHeader5Size);--textMarginBottom: .313rem;--actionsMarginBlock: .25rem;--actionsMarginInline: auto;--actionsPaddingInlineStart: var(--illustrationMaxWidth)}.fd-illustrated-message--base{--illustratedMessagePadding: .25rem;--illustratedMessageMaxWidth: auto;--illustrationDisplay: none;--figcaptionMaxWidth: 12.6875rem;--titleMarginBottom: .25rem;--titleFontSize: var(--sapFontHeader5Size);--textMarginBottom: .313rem;--actionsMarginBlock: .25rem;--actionsMarginInline: auto;--actionsPaddingInlineStart: 0}@container (width <= 681px){.fd-illustrated-message{--illustrationMinWidth: 10rem;--illustrationMinHeight: 10rem;--illustrationMaxWidth: 10rem;--illustrationMaxHeight: 10rem;--illustrationMarginBlock: 1rem;--titleMarginBottom: .5rem;--titleFontSize: var(--sapFontHeader3Size);--figcaptionMaxWidth: 40.5625rem;--actionsMarginBlock: .5rem 1rem}}@container (width <= 360px){.fd-illustrated-message{--illustratedMessagePadding: .5rem;--illustrationMinWidth: 8rem;--illustrationMinHeight: 8rem;--illustrationMaxWidth: 8rem;--illustrationMaxHeight: 8rem;--illustrationMarginBlock: 0 .5rem;--titleMarginBottom: .5rem;--titleFontSize: var(--sapFontHeader4Size);--figcaptionMaxWidth: 21.5rem;--actionsMarginBlock: .5rem}}@container (width <= 260px){.fd-illustrated-message{--illustratedMessagePadding: .25rem;--containerFlexDirection: row;--containerFlexAlignment: flex-start;--illustrationMinWidth: 2.8125rem;--illustrationMaxWidth: 2.8125rem;--illustrationMinHeight: 2.8125rem;--illustrationMaxHeight: 2.8125rem;--illustrationMarginBlock: 0;--illustrationMarginInlineEnd: .25rem;--figcaptionMaxWidth: 12.6875rem;--titleMarginBottom: .25rem;--titleFontSize: var(--sapFontHeader5Size);--textMarginBottom: .313rem;--actionsMarginBlock: .25rem;--actionsMarginInline: auto;--actionsPaddingInlineStart: var(--illustrationMaxWidth)}}@container (width <= 160px){.fd-illustrated-message{--illustratedMessagePadding: .25rem;--illustratedMessageMaxWidth: auto;--illustrationDisplay: none;--figcaptionMaxWidth: 12.6875rem;--titleMarginBottom: .25rem;--titleFontSize: var(--sapFontHeader5Size);--textMarginBottom: .313rem;--actionsMarginBlock: .25rem;--actionsMarginInline: auto;--actionsPaddingInlineStart: 0}}.fd-illustrated-message__illustration{width:100%}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
202
204
  }
203
205
  __decorate([
204
206
  applyCssClass,
@@ -208,7 +210,7 @@ __decorate([
208
210
  ], IllustratedMessageComponent.prototype, "buildComponentCssClass", null);
209
211
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.3", ngImport: i0, type: IllustratedMessageComponent, decorators: [{
210
212
  type: Component,
211
- args: [{ selector: '[fd-illustrated-message]', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, imports: [], template: "<div class=\"fd-illustrated-message__container\">\n @if (!noSvg) {\n <svg class=\"fd-illustrated-message__illustration\" [attr.aria-label]=\"svgAriaLabel\">\n <use [attr.href]=\"_href\"></use>\n </svg>\n }\n @if (_inlineSvg) {\n <div [style.display]=\"'none'\" [innerHTML]=\"_inlineSvg\"></div>\n }\n <ng-content select=\"[fd-illustrated-message-figcaption]\"></ng-content>\n</div>\n<ng-content select=\"fd-illustrated-message-actions\"></ng-content>\n", styles: [".fd-illustrated-message{--illustratedMessagePadding:1rem;--illustratedMessageMaxWidth:auto;--actionsMarginInline:0;--actionsMarginBlock:1rem;--actionsPaddingInlineStart:0;--actionsPaddingInlineEnd:0;--illustrationMinWidth:15rem;--illustrationMaxWidth:20rem;--illustrationMinHeight:11.25rem;--illustrationMaxHeight:15rem;--illustrationMarginBlock:2rem;--illustrationMarginInlineStart:0;--illustrationMarginInlineEnd:0;--illustrationDisplay:flex;--containerFlexDirection:column;--figcaptionMaxWidth:61.9375rem;--titleMinWidth:auto;--titleMarginBottom:1rem;--titleFontSize:var(--sapFontHeader2Size);--textMinWidth:auto;--textMarginBottom:.5rem;border:0;-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--sapTextColor);display:-webkit-box;display:-ms-flexbox;display:flex;font-family:var(--sapFontFamily);font-size:var(--sapFontSize);font-weight:400;forced-color-adjust:none;line-height:normal;margin-block:0;margin-inline:0;padding-block:0;padding-inline:0;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:center;-ms-flex-align:center;align-items:center;max-width:var(--illustratedMessageMaxWidth);min-height:100%;padding-block:var(--illustratedMessagePadding);padding-inline:var(--illustratedMessagePadding);text-align:center;width:100%}.fd-illustrated-message:after,.fd-illustrated-message:before{-webkit-box-sizing:inherit;box-sizing:inherit;font-size:inherit}.fd-illustrated-message-responsive-container{border:0;-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--sapTextColor);display:-webkit-box;display:-ms-flexbox;display:flex;font-family:var(--sapFontFamily);font-size:var(--sapFontSize);font-weight:400;forced-color-adjust:none;line-height:normal;margin-block:0;margin-inline:0;padding-block:0;padding-inline:0;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;container-type:inline-size;height:100%;min-height:100%;width:100%}.fd-illustrated-message-responsive-container:after,.fd-illustrated-message-responsive-container:before{-webkit-box-sizing:inherit;box-sizing:inherit;font-size:inherit}.fd-illustrated-message__container{border:0;-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--sapTextColor);display:-webkit-box;display:-ms-flexbox;display:flex;font-family:var(--sapFontFamily);font-size:var(--sapFontSize);font-weight:400;forced-color-adjust:none;line-height:normal;margin-block:0;margin-inline:0;padding-block:0;padding-inline:0;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-ms-flex-direction:var(--containerFlexDirection);flex-direction:var(--containerFlexDirection)}.fd-illustrated-message__container:after,.fd-illustrated-message__container:before{-webkit-box-sizing:inherit;box-sizing:inherit;font-size:inherit}.fd-illustrated-message__illustration{border:0;-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--sapTextColor);display:var(--illustrationDisplay);font-family:var(--sapFontFamily);font-size:var(--sapFontSize);font-weight:400;forced-color-adjust:none;height:auto;line-height:normal;margin-block:0;margin-block:var(--illustrationMarginBlock);margin-inline:0;margin-inline:var(--illustrationMarginInlineStart) var(--illustrationMarginInlineEnd);max-height:var(--illustrationMaxHeight);max-width:var(--illustrationMaxWidth);min-height:var(--illustrationMinHeight);min-width:var(--illustrationMinWidth);padding-block:0;padding-inline:0;width:auto}.fd-illustrated-message__illustration:after,.fd-illustrated-message__illustration:before{-webkit-box-sizing:inherit;box-sizing:inherit;font-size:inherit}.fd-illustrated-message__figcaption{border:0;-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--sapTextColor);display:-webkit-box;display:-ms-flexbox;display:flex;font-family:var(--sapFontFamily);font-size:var(--sapFontSize);font-weight:400;forced-color-adjust:none;line-height:normal;margin-block:0;margin-inline:0;padding-block:0;padding-inline:0;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:center;-ms-flex-align:center;align-items:center;max-width:var(--figcaptionMaxWidth);overflow:hidden}.fd-illustrated-message__figcaption:after,.fd-illustrated-message__figcaption:before{-webkit-box-sizing:inherit;box-sizing:inherit;font-size:inherit}.fd-illustrated-message__title{border:0;-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--sapTextColor);color:var(--sapGroup_TitleTextColor);font-family:var(--sapFontFamily);font-family:var(--sapFontHeaderFamily);font-size:var(--sapFontSize);font-size:var(--titleFontSize);font-weight:400;forced-color-adjust:none;line-height:normal;margin-block:0;margin-inline:0;padding-block:0;padding-inline:0;text-align:center;width:100%;-webkit-margin-after:var(--titleMarginBottom);margin-block-end:var(--titleMarginBottom)}.fd-illustrated-message__title:after,.fd-illustrated-message__title:before{-webkit-box-sizing:inherit;box-sizing:inherit;font-size:inherit}.fd-illustrated-message__text{border:0;-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--sapTextColor);font-family:var(--sapFontFamily);font-size:var(--sapFontSize);font-weight:400;forced-color-adjust:none;line-height:normal;line-height:1.5;margin-block:0;margin-inline:0;padding-block:0;padding-inline:0;text-align:center;text-wrap:wrap;-webkit-margin-after:var(--textMarginBottom);margin-block-end:var(--textMarginBottom)}.fd-illustrated-message__text:after,.fd-illustrated-message__text:before{-webkit-box-sizing:inherit;box-sizing:inherit;font-size:inherit}.fd-illustrated-message__actions{border:0;-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--sapTextColor);display:-webkit-box;display:-ms-flexbox;display:flex;font-family:var(--sapFontFamily);font-size:var(--sapFontSize);font-weight:400;forced-color-adjust:none;line-height:normal;margin-block:0;margin-inline:0;padding-block:0;padding-inline:0;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:.5rem;margin-block:var(--actionsMarginBlock);margin-inline:var(--actionsMarginInline);padding-inline:var(--actionsPaddingInlineStart) var(--actionsPaddingInlineEnd)}.fd-illustrated-message__actions:after,.fd-illustrated-message__actions:before{-webkit-box-sizing:inherit;box-sizing:inherit;font-size:inherit}.fd-illustrated-message--dialog{--illustrationMinWidth:10rem;--illustrationMinHeight:10rem;--illustrationMaxWidth:10rem;--illustrationMaxHeight:10rem;--illustrationMarginBlock:1rem;--titleMarginBottom:.5rem;--titleFontSize:var(--sapFontHeader3Size);--figcaptionMaxWidth:40.5625rem;--actionsMarginBlock:.5rem 1rem}.fd-illustrated-message--spot{--illustratedMessagePadding:.5rem;--illustrationMinWidth:8rem;--illustrationMinHeight:8rem;--illustrationMaxWidth:8rem;--illustrationMaxHeight:8rem;--illustrationMarginBlock:0 .5rem;--titleMarginBottom:.5rem;--titleFontSize:var(--sapFontHeader4Size);--figcaptionMaxWidth:21.5rem;--actionsMarginBlock:.5rem}.fd-illustrated-message--dot{--illustratedMessagePadding:.25rem;--containerFlexDirection:row;--illustrationMinWidth:2.8125rem;--illustrationMaxWidth:2.8125rem;--illustrationMinHeight:2.8125rem;--illustrationMaxHeight:2.8125rem;--illustrationMarginBlock:0;--illustrationMarginInlineEnd:.25rem;--figcaptionMaxWidth:12.6875rem;--titleMarginBottom:.25rem;--titleFontSize:var(--sapFontHeader5Size);--textMarginBottom:.313rem;--actionsMarginBlock:.25rem;--actionsMarginInline:auto;--actionsPaddingInlineStart:var(--illustrationMaxWidth)}.fd-illustrated-message--base{--illustratedMessagePadding:.25rem;--illustratedMessageMaxWidth:auto;--illustrationDisplay:none;--figcaptionMaxWidth:12.6875rem;--titleMarginBottom:.25rem;--titleFontSize:var(--sapFontHeader5Size);--textMarginBottom:.313rem;--actionsMarginBlock:.25rem;--actionsMarginInline:auto;--actionsPaddingInlineStart:0}@container (width <= 681px){.fd-illustrated-message{--illustrationMinWidth:10rem;--illustrationMinHeight:10rem;--illustrationMaxWidth:10rem;--illustrationMaxHeight:10rem;--illustrationMarginBlock:1rem;--titleMarginBottom:.5rem;--titleFontSize:var(--sapFontHeader3Size);--figcaptionMaxWidth:40.5625rem;--actionsMarginBlock:.5rem 1rem}}@container (width <= 360px){.fd-illustrated-message{--illustratedMessagePadding:.5rem;--illustrationMinWidth:8rem;--illustrationMinHeight:8rem;--illustrationMaxWidth:8rem;--illustrationMaxHeight:8rem;--illustrationMarginBlock:0 .5rem;--titleMarginBottom:.5rem;--titleFontSize:var(--sapFontHeader4Size);--figcaptionMaxWidth:21.5rem;--actionsMarginBlock:.5rem}}@container (width <= 260px){.fd-illustrated-message{--illustratedMessagePadding:.25rem;--containerFlexDirection:row;--illustrationMinWidth:2.8125rem;--illustrationMaxWidth:2.8125rem;--illustrationMinHeight:2.8125rem;--illustrationMaxHeight:2.8125rem;--illustrationMarginBlock:0;--illustrationMarginInlineEnd:.25rem;--figcaptionMaxWidth:12.6875rem;--titleMarginBottom:.25rem;--titleFontSize:var(--sapFontHeader5Size);--textMarginBottom:.313rem;--actionsMarginBlock:.25rem;--actionsMarginInline:auto;--actionsPaddingInlineStart:var(--illustrationMaxWidth)}}@container (width <= 160px){.fd-illustrated-message{--illustratedMessagePadding:.25rem;--illustratedMessageMaxWidth:auto;--illustrationDisplay:none;--figcaptionMaxWidth:12.6875rem;--titleMarginBottom:.25rem;--titleFontSize:var(--sapFontHeader5Size);--textMarginBottom:.313rem;--actionsMarginBlock:.25rem;--actionsMarginInline:auto;--actionsPaddingInlineStart:0}}.fd-illustrated-message__illustration{height:var(--illustrationMaxWidth)}\n/*! Bundled license information:\n\nfundamental-styles/dist/illustrated-message.css:\n (*!\n * Fundamental Library Styles v0.40.1\n * Copyright (c) 2025 SAP SE or an SAP affiliate company.\n * Licensed under Apache License 2.0 (https://github.com/SAP/fundamental-styles/blob/main/LICENSE)\n *)\n*/\n"] }]
213
+ args: [{ selector: '[fd-illustrated-message]', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, imports: [], template: "<div class=\"fd-illustrated-message__container\">\n @if (!noSvg) {\n <svg class=\"fd-illustrated-message__illustration\" [attr.aria-label]=\"svgAriaLabel\">\n <use [attr.href]=\"_href\"></use>\n </svg>\n }\n @if (_inlineSvg) {\n <div [style.display]=\"'none'\" [innerHTML]=\"_inlineSvg\"></div>\n }\n <ng-content select=\"[fd-illustrated-message-figcaption]\"></ng-content>\n</div>\n<ng-content select=\"fd-illustrated-message-actions\"></ng-content>\n", styles: [".fd-illustrated-message{--illustratedMessagePadding: 1rem;--illustratedMessageMaxWidth: auto;--actionsMarginInline: 0;--actionsMarginBlock: 1rem;--actionsPaddingInlineStart: 0;--actionsPaddingInlineEnd: 0;--illustrationMinWidth: 15rem;--illustrationMaxWidth: 20rem;--illustrationMinHeight: 11.25rem;--illustrationMaxHeight: 15rem;--illustrationMarginBlock: 2rem;--illustrationMarginInlineStart: 0;--illustrationMarginInlineEnd: 0;--illustrationDisplay: flex;--containerFlexDirection: column;--figcaptionMaxWidth: 61.9375rem;--titleMinWidth: auto;--titleMarginBottom: 1rem;--titleFontSize: var(--sapFontHeader2Size);--textMinWidth: auto;--textMarginBottom: .5rem;font-size:var(--sapFontSize);line-height:normal;color:var(--sapTextColor);font-family:var(--sapFontFamily);font-weight:400;-webkit-box-sizing:border-box;box-sizing:border-box;forced-color-adjust:none;padding-inline:0;padding-block:0;margin-inline:0;margin-block:0;border:0;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:100%;text-align:center;max-width:var(--illustratedMessageMaxWidth);padding-block:var(--illustratedMessagePadding);padding-inline:var(--illustratedMessagePadding)}.fd-illustrated-message:before,.fd-illustrated-message:after{-webkit-box-sizing:inherit;box-sizing:inherit;font-size:inherit}.fd-illustrated-message-responsive-container{font-size:var(--sapFontSize);line-height:normal;color:var(--sapTextColor);font-family:var(--sapFontFamily);font-weight:400;-webkit-box-sizing:border-box;box-sizing:border-box;forced-color-adjust:none;padding-inline:0;padding-block:0;margin-inline:0;margin-block:0;border:0;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:100%;min-height:100%;height:100%;container-type:inline-size}.fd-illustrated-message-responsive-container:before,.fd-illustrated-message-responsive-container:after{-webkit-box-sizing:inherit;box-sizing:inherit;font-size:inherit}.fd-illustrated-message__container{font-size:var(--sapFontSize);line-height:normal;color:var(--sapTextColor);font-family:var(--sapFontFamily);font-weight:400;-webkit-box-sizing:border-box;box-sizing:border-box;forced-color-adjust:none;padding-inline:0;padding-block:0;margin-inline:0;margin-block:0;border:0;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-align:var(--containerFlexAlignment, center);-ms-flex-align:var(--containerFlexAlignment, center);align-items:var(--containerFlexAlignment, center);-ms-flex-direction:var(--containerFlexDirection);flex-direction:var(--containerFlexDirection)}.fd-illustrated-message__container:before,.fd-illustrated-message__container:after{-webkit-box-sizing:inherit;box-sizing:inherit;font-size:inherit}.fd-illustrated-message__illustration{font-size:var(--sapFontSize);line-height:normal;color:var(--sapTextColor);font-family:var(--sapFontFamily);font-weight:400;-webkit-box-sizing:border-box;box-sizing:border-box;forced-color-adjust:none;padding-inline:0;padding-block:0;margin-inline:0;margin-block:0;border:0;width:auto;height:auto;display:var(--illustrationDisplay);min-width:var(--illustrationMinWidth);min-height:var(--illustrationMinHeight);max-width:var(--illustrationMaxWidth);max-height:var(--illustrationMaxHeight);margin-block:var(--illustrationMarginBlock);margin-inline:var(--illustrationMarginInlineStart) var(--illustrationMarginInlineEnd)}.fd-illustrated-message__illustration:before,.fd-illustrated-message__illustration:after{-webkit-box-sizing:inherit;box-sizing:inherit;font-size:inherit}.fd-illustrated-message__figcaption{font-size:var(--sapFontSize);line-height:normal;color:var(--sapTextColor);font-family:var(--sapFontFamily);font-weight:400;-webkit-box-sizing:border-box;box-sizing:border-box;forced-color-adjust:none;padding-inline:0;padding-block:0;margin-inline:0;margin-block:0;border:0;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:center;-ms-flex-align:center;align-items:center;overflow:hidden;max-width:var(--figcaptionMaxWidth)}.fd-illustrated-message__figcaption:before,.fd-illustrated-message__figcaption:after{-webkit-box-sizing:inherit;box-sizing:inherit;font-size:inherit}.fd-illustrated-message__title{font-size:var(--sapFontSize);line-height:normal;color:var(--sapTextColor);font-family:var(--sapFontFamily);font-weight:400;-webkit-box-sizing:border-box;box-sizing:border-box;forced-color-adjust:none;padding-inline:0;padding-block:0;margin-inline:0;margin-block:0;border:0;width:100%;text-align:center;font-size:var(--titleFontSize);color:var(--sapGroup_TitleTextColor);font-family:var(--sapFontHeaderFamily);-webkit-margin-after:var(--titleMarginBottom);margin-block-end:var(--titleMarginBottom)}.fd-illustrated-message__title:before,.fd-illustrated-message__title:after{-webkit-box-sizing:inherit;box-sizing:inherit;font-size:inherit}.fd-illustrated-message__text{font-size:var(--sapFontSize);line-height:normal;color:var(--sapTextColor);font-family:var(--sapFontFamily);font-weight:400;-webkit-box-sizing:border-box;box-sizing:border-box;forced-color-adjust:none;padding-inline:0;padding-block:0;margin-inline:0;margin-block:0;border:0;text-wrap:wrap;text-align:center;line-height:1.5;-webkit-margin-after:var(--textMarginBottom);margin-block-end:var(--textMarginBottom)}.fd-illustrated-message__text:before,.fd-illustrated-message__text:after{-webkit-box-sizing:inherit;box-sizing:inherit;font-size:inherit}.fd-illustrated-message__actions{font-size:var(--sapFontSize);line-height:normal;color:var(--sapTextColor);font-family:var(--sapFontFamily);font-weight:400;-webkit-box-sizing:border-box;box-sizing:border-box;forced-color-adjust:none;padding-inline:0;padding-block:0;margin-inline:0;margin-block:0;border:0;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:.5rem;margin-block:var(--actionsMarginBlock);margin-inline:var(--actionsMarginInline);padding-inline:var(--actionsPaddingInlineStart) var(--actionsPaddingInlineEnd)}.fd-illustrated-message__actions:before,.fd-illustrated-message__actions:after{-webkit-box-sizing:inherit;box-sizing:inherit;font-size:inherit}.fd-illustrated-message--dialog,.fd-illustrated-message--medium{--illustrationMinWidth: 10rem;--illustrationMinHeight: 10rem;--illustrationMaxWidth: 10rem;--illustrationMaxHeight: 10rem;--illustrationMarginBlock: 1rem;--titleMarginBottom: .5rem;--titleFontSize: var(--sapFontHeader3Size);--figcaptionMaxWidth: 40.5625rem;--actionsMarginBlock: .5rem 1rem}.fd-illustrated-message--spot,.fd-illustrated-message--small{--illustratedMessagePadding: .5rem;--illustrationMinWidth: 8rem;--illustrationMinHeight: 8rem;--illustrationMaxWidth: 8rem;--illustrationMaxHeight: 8rem;--illustrationMarginBlock: 0 .5rem;--titleMarginBottom: .5rem;--titleFontSize: var(--sapFontHeader4Size);--figcaptionMaxWidth: 21.5rem;--actionsMarginBlock: .5rem}.fd-illustrated-message--dot,.fd-illustrated-message--xsmall{--illustratedMessagePadding: .25rem;--containerFlexDirection: row;--containerFlexAlignment: flex-start;--illustrationMinWidth: 2.8125rem;--illustrationMaxWidth: 2.8125rem;--illustrationMinHeight: 2.8125rem;--illustrationMaxHeight: 2.8125rem;--illustrationMarginBlock: 0;--illustrationMarginInlineEnd: .25rem;--figcaptionMaxWidth: 12.6875rem;--titleMarginBottom: .25rem;--titleFontSize: var(--sapFontHeader5Size);--textMarginBottom: .313rem;--actionsMarginBlock: .25rem;--actionsMarginInline: auto;--actionsPaddingInlineStart: var(--illustrationMaxWidth)}.fd-illustrated-message--base{--illustratedMessagePadding: .25rem;--illustratedMessageMaxWidth: auto;--illustrationDisplay: none;--figcaptionMaxWidth: 12.6875rem;--titleMarginBottom: .25rem;--titleFontSize: var(--sapFontHeader5Size);--textMarginBottom: .313rem;--actionsMarginBlock: .25rem;--actionsMarginInline: auto;--actionsPaddingInlineStart: 0}@container (width <= 681px){.fd-illustrated-message{--illustrationMinWidth: 10rem;--illustrationMinHeight: 10rem;--illustrationMaxWidth: 10rem;--illustrationMaxHeight: 10rem;--illustrationMarginBlock: 1rem;--titleMarginBottom: .5rem;--titleFontSize: var(--sapFontHeader3Size);--figcaptionMaxWidth: 40.5625rem;--actionsMarginBlock: .5rem 1rem}}@container (width <= 360px){.fd-illustrated-message{--illustratedMessagePadding: .5rem;--illustrationMinWidth: 8rem;--illustrationMinHeight: 8rem;--illustrationMaxWidth: 8rem;--illustrationMaxHeight: 8rem;--illustrationMarginBlock: 0 .5rem;--titleMarginBottom: .5rem;--titleFontSize: var(--sapFontHeader4Size);--figcaptionMaxWidth: 21.5rem;--actionsMarginBlock: .5rem}}@container (width <= 260px){.fd-illustrated-message{--illustratedMessagePadding: .25rem;--containerFlexDirection: row;--containerFlexAlignment: flex-start;--illustrationMinWidth: 2.8125rem;--illustrationMaxWidth: 2.8125rem;--illustrationMinHeight: 2.8125rem;--illustrationMaxHeight: 2.8125rem;--illustrationMarginBlock: 0;--illustrationMarginInlineEnd: .25rem;--figcaptionMaxWidth: 12.6875rem;--titleMarginBottom: .25rem;--titleFontSize: var(--sapFontHeader5Size);--textMarginBottom: .313rem;--actionsMarginBlock: .25rem;--actionsMarginInline: auto;--actionsPaddingInlineStart: var(--illustrationMaxWidth)}}@container (width <= 160px){.fd-illustrated-message{--illustratedMessagePadding: .25rem;--illustratedMessageMaxWidth: auto;--illustrationDisplay: none;--figcaptionMaxWidth: 12.6875rem;--titleMarginBottom: .25rem;--titleFontSize: var(--sapFontHeader5Size);--textMarginBottom: .313rem;--actionsMarginBlock: .25rem;--actionsMarginInline: auto;--actionsPaddingInlineStart: 0}}.fd-illustrated-message__illustration{width:100%}\n"] }]
212
214
  }], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i1.DomSanitizer }], propDecorators: { type: [{
213
215
  type: Input
214
216
  }], svgConfig: [{
@@ -1 +1 @@
1
- {"version":3,"file":"fundamental-ngx-core-illustrated-message.mjs","sources":["../../../../libs/core/illustrated-message/components/illustrated-message-actions/illustrated-message-actions.component.ts","../../../../libs/core/illustrated-message/components/illustrated-message-figcaption/illustrated-message-figcaption.component.ts","../../../../libs/core/illustrated-message/directives/illustrated-message-text/illustrated-message-text.directive.ts","../../../../libs/core/illustrated-message/directives/illustrated-message-title/illustrated-message-title.directive.ts","../../../../libs/core/illustrated-message/illustrated-message.component.ts","../../../../libs/core/illustrated-message/illustrated-message.component.html","../../../../libs/core/illustrated-message/illustrated-message.module.ts","../../../../libs/core/illustrated-message/fundamental-ngx-core-illustrated-message.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component } from '@angular/core';\n\n@Component({\n selector: 'fd-illustrated-message-actions',\n template: `<ng-content></ng-content>`,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'fd-illustrated-message__actions'\n },\n standalone: true\n})\nexport class IllustratedMessageActionsComponent {}\n","import { ChangeDetectionStrategy, Component } from '@angular/core';\n\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: '[fd-illustrated-message-figcaption]',\n template: `\n <ng-content select=\"[fd-illustrated-message-title]\"></ng-content>\n <ng-content select=\"[fd-illustrated-message-text]\"></ng-content>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'fd-illustrated-message__figcaption'\n },\n standalone: true\n})\nexport class IllustratedMessageFigcaptionComponent {}\n","import { Directive, HostBinding } from '@angular/core';\n\n@Directive({\n // TODO to be discussed\n // eslint-disable-next-line @angular-eslint/directive-selector\n selector: '[fd-illustrated-message-text]',\n standalone: true\n})\nexport class IllustratedMessageTextDirective {\n /** @hidden */\n @HostBinding('class.fd-illustrated-message__text')\n fdIllustratedMessageTextClass = true;\n}\n","import { Directive, HostBinding } from '@angular/core';\n\n@Directive({\n // TODO to be discussed\n // eslint-disable-next-line @angular-eslint/directive-selector\n selector: '[fd-illustrated-message-title]',\n standalone: true\n})\nexport class IllustratedMessageTitleDirective {\n /** @hidden */\n @HostBinding('class.fd-illustrated-message__title')\n fdIllustratedMessageTitleClass = true;\n}\n","import {\n AfterContentChecked,\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ElementRef,\n HostBinding,\n Input,\n OnChanges,\n OnDestroy,\n OnInit,\n SimpleChanges,\n ViewEncapsulation\n} from '@angular/core';\nimport { DomSanitizer, SafeHtml } from '@angular/platform-browser';\nimport { CssClassBuilder, Nullable, RequireOnlyOne, applyCssClass } from '@fundamental-ngx/cdk/utils';\nimport { Subscription, debounceTime, fromEvent } from 'rxjs';\n\nexport interface SvgConfig {\n scene?: RequireOnlyOne<SvgItemConfig, 'url' | 'file'>;\n dialog?: RequireOnlyOne<SvgItemConfig, 'url' | 'file'>;\n spot?: RequireOnlyOne<SvgItemConfig, 'url' | 'file'>;\n dot?: RequireOnlyOne<SvgItemConfig, 'url' | 'file'>;\n}\n\nexport interface SvgItemConfig {\n url: string;\n id: string;\n file: string;\n}\n\nexport type IllustratedMessageType = 'scene' | 'dialog' | 'spot' | 'dot' | 'base';\n\nexport enum IllustratedMessageTypes {\n SCENE = 'scene',\n DIALOG = 'dialog',\n SPOT = 'spot',\n DOT = 'dot',\n BASE = 'base'\n}\n\nlet illustratedMessageUniqueId = 0;\n\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: '[fd-illustrated-message]',\n templateUrl: './illustrated-message.component.html',\n styleUrl: './illustrated-message.component.scss',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: []\n})\nexport class IllustratedMessageComponent implements AfterContentChecked, OnChanges, OnDestroy, OnInit, CssClassBuilder {\n /**\n * The type of the Illustrated Message\n * Options include: 'scene' | 'spot' | 'dialog' | 'dot' | 'base'.\n */\n @Input()\n type: IllustratedMessageType;\n\n /**\n * An object containing url and id for each type used to construct the svg href\n * For 'scene' type 'scene' and 'dialog' values are required\n * In small screens (less than 600px) 'dialog' svg will be applied for 'scene' type\n */\n @Input()\n svgConfig: SvgConfig;\n\n /**\n * aria-label for the svg\n */\n @Input()\n svgAriaLabel: Nullable<string>;\n\n /**\n * When set to true will remove the illustration from the Illustrated Message\n * The default is set to false\n */\n @Input()\n noSvg = false;\n\n /**\n * Id of the Illustrated Message\n * If not provided, a default one is generated\n */\n @Input()\n @HostBinding('attr.id')\n id: string = 'fd-illustrated-message-' + illustratedMessageUniqueId++;\n\n /** User's custom classes */\n @Input()\n class: string;\n\n /** @hidden */\n _href: string;\n\n /** @hidden */\n _isSmallScreen: boolean;\n\n /** @hidden */\n _inlineSvg: SafeHtml | undefined;\n\n /** @hidden */\n _tempType: IllustratedMessageType;\n\n /** @hidden */\n private _subscriptions = new Subscription();\n\n /** @hidden */\n constructor(\n public readonly elementRef: ElementRef,\n private _cdRef: ChangeDetectorRef,\n private _sanitizer: DomSanitizer\n ) {}\n\n /**\n * @hidden\n * CssClassBuilder interface implementation\n * function must return single string\n * function is responsible for order which css classes are applied\n */\n @applyCssClass\n buildComponentCssClass(): string[] {\n return [\n 'fd-illustrated-message',\n this._tempType ? `fd-illustrated-message--${this._tempType}` : '',\n this.class || ''\n ].filter(Boolean);\n }\n\n /** @hidden */\n ngOnChanges(changes: SimpleChanges): void {\n if ('svgConfig' in changes) {\n this._constructHref();\n }\n }\n\n /** @hidden */\n ngOnInit(): void {\n const resizeSubscription = fromEvent(window, 'resize')\n .pipe(debounceTime(200)) // reduce frequent calls during window resizing\n .subscribe(() => this._constructHref());\n this._subscriptions.add(resizeSubscription);\n }\n\n /** @hidden */\n ngAfterContentChecked(): void {\n this._constructHref();\n }\n\n /** @hidden */\n ngOnDestroy(): void {\n this._subscriptions.unsubscribe();\n }\n\n /** @hidden */\n private _constructHref(): void {\n this._inlineSvg = undefined;\n const containerWidth = this.elementRef.nativeElement.offsetWidth;\n this._tempType = this.type;\n if (!this.type && containerWidth > 0) {\n this._tempType = this._determineIllustratedMessageType(containerWidth);\n }\n const inlineSvg = this.svgConfig?.[this._tempType]?.file;\n if (inlineSvg) {\n this._inlineSvg = this._sanitizer.bypassSecurityTrustHtml(inlineSvg);\n }\n\n this._href = this.svgConfig ? this._getHrefByType(this._tempType, this.svgConfig) : '';\n this.buildComponentCssClass();\n\n this._cdRef.markForCheck();\n }\n\n /** @hidden */\n private _determineIllustratedMessageType(width: number): IllustratedMessageType {\n if (width >= 682) {\n return IllustratedMessageTypes.SCENE;\n } else if (width >= 361) {\n return IllustratedMessageTypes.DIALOG;\n } else if (width >= 261) {\n return IllustratedMessageTypes.SPOT;\n } else if (width >= 161) {\n return IllustratedMessageTypes.DOT;\n }\n\n return IllustratedMessageTypes.BASE;\n }\n\n /** @hidden */\n private _getHrefByType(type: IllustratedMessageType, svgConfig: SvgConfig): string {\n switch (type) {\n case IllustratedMessageTypes.SCENE:\n return `${svgConfig.scene?.url || ''}#${svgConfig.scene?.id}`;\n case IllustratedMessageTypes.DIALOG:\n return `${svgConfig.dialog?.url || ''}#${svgConfig.dialog?.id}`;\n case IllustratedMessageTypes.SPOT:\n return `${svgConfig.spot?.url || ''}#${svgConfig.spot?.id}`;\n case IllustratedMessageTypes.DOT:\n return `${svgConfig.dot?.url || ''}#${svgConfig.dot?.id}`;\n default:\n return '';\n }\n }\n}\n","<div class=\"fd-illustrated-message__container\">\n @if (!noSvg) {\n <svg class=\"fd-illustrated-message__illustration\" [attr.aria-label]=\"svgAriaLabel\">\n <use [attr.href]=\"_href\"></use>\n </svg>\n }\n @if (_inlineSvg) {\n <div [style.display]=\"'none'\" [innerHTML]=\"_inlineSvg\"></div>\n }\n <ng-content select=\"[fd-illustrated-message-figcaption]\"></ng-content>\n</div>\n<ng-content select=\"fd-illustrated-message-actions\"></ng-content>\n","import { NgModule } from '@angular/core';\n\nimport { IllustratedMessageActionsComponent } from './components/illustrated-message-actions/illustrated-message-actions.component';\nimport { IllustratedMessageComponent } from './illustrated-message.component';\n\nimport { IllustratedMessageFigcaptionComponent } from './components/illustrated-message-figcaption/illustrated-message-figcaption.component';\nimport { IllustratedMessageTextDirective } from './directives/illustrated-message-text/illustrated-message-text.directive';\nimport { IllustratedMessageTitleDirective } from './directives/illustrated-message-title/illustrated-message-title.directive';\n\nconst components = [\n IllustratedMessageComponent,\n IllustratedMessageActionsComponent,\n IllustratedMessageFigcaptionComponent,\n IllustratedMessageTextDirective,\n IllustratedMessageTitleDirective\n];\n\n@NgModule({\n imports: [...components],\n exports: [...components]\n})\nexport class IllustratedMessageModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;MAWa,kCAAkC,CAAA;8GAAlC,kCAAkC,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAlC,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,kCAAkC,uJAPjC,CAA2B,yBAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAO5B,kCAAkC,EAAA,UAAA,EAAA,CAAA;kBAT9C,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,QAAQ,EAAE,gCAAgC;AAC1C,oBAAA,QAAQ,EAAE,CAA2B,yBAAA,CAAA;oBACrC,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAC/C,oBAAA,IAAI,EAAE;AACF,wBAAA,KAAK,EAAE;AACV,qBAAA;AACD,oBAAA,UAAU,EAAE;AACf,iBAAA;;;MCKY,qCAAqC,CAAA;8GAArC,qCAAqC,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAArC,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,qCAAqC,EAVpC,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,qCAAA,EAAA,IAAA,EAAA,EAAA,cAAA,EAAA,oCAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EA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AAA,EAAA,EAAA,CAAA;;AEjH1B,MAAM,UAAU,GAAG;IACf,2BAA2B;IAC3B,kCAAkC;IAClC,qCAAqC;IACrC,+BAA+B;IAC/B;CACH;MAMY,wBAAwB,CAAA;8GAAxB,wBAAwB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;AAAxB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,wBAAwB,YAXjC,2BAA2B;YAC3B,kCAAkC;YAClC,qCAAqC;YACrC,+BAA+B;AAC/B,YAAA,gCAAgC,aAJhC,2BAA2B;YAC3B,kCAAkC;YAClC,qCAAqC;YACrC,+BAA+B;YAC/B,gCAAgC,CAAA,EAAA,CAAA,CAAA;+GAOvB,wBAAwB,EAAA,CAAA,CAAA;;2FAAxB,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBAJpC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE,CAAC,GAAG,UAAU,CAAC;AACxB,oBAAA,OAAO,EAAE,CAAC,GAAG,UAAU;AAC1B,iBAAA;;;ACpBD;;AAEG;;;;"}
1
+ {"version":3,"file":"fundamental-ngx-core-illustrated-message.mjs","sources":["../../../../libs/core/illustrated-message/components/illustrated-message-actions/illustrated-message-actions.component.ts","../../../../libs/core/illustrated-message/components/illustrated-message-figcaption/illustrated-message-figcaption.component.ts","../../../../libs/core/illustrated-message/directives/illustrated-message-text/illustrated-message-text.directive.ts","../../../../libs/core/illustrated-message/directives/illustrated-message-title/illustrated-message-title.directive.ts","../../../../libs/core/illustrated-message/illustrated-message.component.ts","../../../../libs/core/illustrated-message/illustrated-message.component.html","../../../../libs/core/illustrated-message/illustrated-message.module.ts","../../../../libs/core/illustrated-message/fundamental-ngx-core-illustrated-message.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component } from '@angular/core';\n\n@Component({\n selector: 'fd-illustrated-message-actions',\n template: `<ng-content></ng-content>`,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'fd-illustrated-message__actions'\n },\n standalone: true\n})\nexport class IllustratedMessageActionsComponent {}\n","import { ChangeDetectionStrategy, Component } from '@angular/core';\n\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: '[fd-illustrated-message-figcaption]',\n template: `\n <ng-content select=\"[fd-illustrated-message-title]\"></ng-content>\n <ng-content select=\"[fd-illustrated-message-text]\"></ng-content>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'fd-illustrated-message__figcaption'\n },\n standalone: true\n})\nexport class IllustratedMessageFigcaptionComponent {}\n","import { Directive, HostBinding } from '@angular/core';\n\n@Directive({\n // TODO to be discussed\n // eslint-disable-next-line @angular-eslint/directive-selector\n selector: '[fd-illustrated-message-text]',\n standalone: true\n})\nexport class IllustratedMessageTextDirective {\n /** @hidden */\n @HostBinding('class.fd-illustrated-message__text')\n fdIllustratedMessageTextClass = true;\n}\n","import { Directive, HostBinding } from '@angular/core';\n\n@Directive({\n // TODO to be discussed\n // eslint-disable-next-line @angular-eslint/directive-selector\n selector: '[fd-illustrated-message-title]',\n standalone: true\n})\nexport class IllustratedMessageTitleDirective {\n /** @hidden */\n @HostBinding('class.fd-illustrated-message__title')\n fdIllustratedMessageTitleClass = true;\n}\n","import {\n AfterContentChecked,\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ElementRef,\n HostBinding,\n Input,\n OnChanges,\n OnDestroy,\n OnInit,\n SimpleChanges,\n ViewEncapsulation\n} from '@angular/core';\nimport { DomSanitizer, SafeHtml } from '@angular/platform-browser';\nimport { CssClassBuilder, Nullable, RequireOnlyOne, applyCssClass } from '@fundamental-ngx/cdk/utils';\nimport { Subscription, debounceTime, fromEvent } from 'rxjs';\n\nexport interface SvgItemConfig {\n url: string;\n id: string;\n file: string;\n}\n\nexport interface SvgConfig {\n // New keys\n large?: RequireOnlyOne<SvgItemConfig, 'url' | 'file'>;\n medium?: RequireOnlyOne<SvgItemConfig, 'url' | 'file'>;\n small?: RequireOnlyOne<SvgItemConfig, 'url' | 'file'>;\n xsmall?: RequireOnlyOne<SvgItemConfig, 'url' | 'file'>;\n\n // Legacy keys\n scene?: RequireOnlyOne<SvgItemConfig, 'url' | 'file'>;\n dialog?: RequireOnlyOne<SvgItemConfig, 'url' | 'file'>;\n spot?: RequireOnlyOne<SvgItemConfig, 'url' | 'file'>;\n dot?: RequireOnlyOne<SvgItemConfig, 'url' | 'file'>;\n}\n\nexport type IllustratedMessageType =\n | 'large'\n | 'medium'\n | 'small'\n | 'xsmall'\n | 'base'\n | 'scene'\n | 'dialog'\n | 'spot'\n | 'dot';\n\nexport enum IllustratedMessageTypes {\n LARGE = 'large',\n MEDIUM = 'medium',\n SMALL = 'small',\n EXTRA_SMALL = 'xsmall',\n BASE = 'base',\n SCENE = 'scene',\n DIALOG = 'dialog',\n SPOT = 'spot',\n DOT = 'dot'\n}\n\nlet illustratedMessageUniqueId = 0;\n\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: '[fd-illustrated-message]',\n templateUrl: './illustrated-message.component.html',\n styleUrl: './illustrated-message.component.scss',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: []\n})\nexport class IllustratedMessageComponent implements AfterContentChecked, OnChanges, OnDestroy, OnInit, CssClassBuilder {\n @Input()\n type: IllustratedMessageType;\n\n @Input()\n svgConfig: SvgConfig;\n\n @Input()\n svgAriaLabel: Nullable<string>;\n\n @Input()\n noSvg = false;\n\n @Input()\n @HostBinding('attr.id')\n id: string = 'fd-illustrated-message-' + illustratedMessageUniqueId++;\n\n @Input()\n class: string;\n\n _href: string;\n _isSmallScreen: boolean;\n _inlineSvg: SafeHtml | undefined;\n _tempType: IllustratedMessageType;\n\n private _subscriptions = new Subscription();\n\n constructor(\n public readonly elementRef: ElementRef,\n private _cdRef: ChangeDetectorRef,\n private _sanitizer: DomSanitizer\n ) {}\n\n @applyCssClass\n buildComponentCssClass(): string[] {\n return [\n 'fd-illustrated-message',\n this._tempType ? `fd-illustrated-message--${this._tempType}` : '',\n this.class || ''\n ].filter(Boolean);\n }\n\n ngOnChanges(changes: SimpleChanges): void {\n if ('svgConfig' in changes) {\n this._constructHref();\n }\n }\n\n ngOnInit(): void {\n const resizeSubscription = fromEvent(window, 'resize')\n .pipe(debounceTime(200))\n .subscribe(() => this._constructHref());\n this._subscriptions.add(resizeSubscription);\n }\n\n ngAfterContentChecked(): void {\n this._constructHref();\n }\n\n ngOnDestroy(): void {\n this._subscriptions.unsubscribe();\n }\n\n private _constructHref(): void {\n this._inlineSvg = undefined;\n const containerWidth = this.elementRef.nativeElement.offsetWidth;\n const normalizedType = this._normalizeType(this.type);\n this._tempType = this.type ? normalizedType : this._determineIllustratedMessageType(containerWidth);\n\n const normalizedConfig = this._normalizeSvgConfig(this.svgConfig);\n const inlineSvg = normalizedConfig?.[this._tempType]?.file;\n if (inlineSvg) {\n this._inlineSvg = this._sanitizer.bypassSecurityTrustHtml(inlineSvg);\n }\n\n this._href = normalizedConfig ? this._getHrefByType(this._tempType, normalizedConfig) : '';\n this.buildComponentCssClass();\n this._cdRef.markForCheck();\n }\n\n private _determineIllustratedMessageType(width: number): IllustratedMessageType {\n if (width >= 682) {\n return IllustratedMessageTypes.LARGE;\n } else if (width >= 361) {\n return IllustratedMessageTypes.MEDIUM;\n } else if (width >= 261) {\n return IllustratedMessageTypes.SMALL;\n } else if (width >= 161) {\n return IllustratedMessageTypes.EXTRA_SMALL;\n }\n\n return IllustratedMessageTypes.BASE;\n }\n\n private _normalizeType(type: IllustratedMessageType): IllustratedMessageType {\n switch (type) {\n case 'scene':\n return 'large';\n case 'dialog':\n return 'medium';\n case 'spot':\n return 'small';\n case 'dot':\n return 'xsmall';\n default:\n return type;\n }\n }\n\n private _normalizeSvgConfig(config: SvgConfig): SvgConfig {\n return {\n large: config.large || config.scene,\n medium: config.medium || config.dialog,\n small: config.small || config.spot,\n xsmall: config.xsmall || config.dot\n };\n }\n\n private _getHrefByType(type: IllustratedMessageType, svgConfig: SvgConfig): string {\n switch (type) {\n case 'large':\n return `${svgConfig.large?.url || ''}#${svgConfig.large?.id}`;\n case 'medium':\n return `${svgConfig.medium?.url || ''}#${svgConfig.medium?.id}`;\n case 'small':\n return `${svgConfig.small?.url || ''}#${svgConfig.small?.id}`;\n case 'xsmall':\n return `${svgConfig.xsmall?.url || ''}#${svgConfig.xsmall?.id}`;\n default:\n return '';\n }\n }\n}\n","<div class=\"fd-illustrated-message__container\">\n @if (!noSvg) {\n <svg class=\"fd-illustrated-message__illustration\" [attr.aria-label]=\"svgAriaLabel\">\n <use [attr.href]=\"_href\"></use>\n </svg>\n }\n @if (_inlineSvg) {\n <div [style.display]=\"'none'\" [innerHTML]=\"_inlineSvg\"></div>\n }\n <ng-content select=\"[fd-illustrated-message-figcaption]\"></ng-content>\n</div>\n<ng-content select=\"fd-illustrated-message-actions\"></ng-content>\n","import { NgModule } from '@angular/core';\n\nimport { IllustratedMessageActionsComponent } from './components/illustrated-message-actions/illustrated-message-actions.component';\nimport { IllustratedMessageComponent } from './illustrated-message.component';\n\nimport { IllustratedMessageFigcaptionComponent } from './components/illustrated-message-figcaption/illustrated-message-figcaption.component';\nimport { IllustratedMessageTextDirective } from './directives/illustrated-message-text/illustrated-message-text.directive';\nimport { IllustratedMessageTitleDirective } from './directives/illustrated-message-title/illustrated-message-title.directive';\n\nconst components = [\n IllustratedMessageComponent,\n IllustratedMessageActionsComponent,\n IllustratedMessageFigcaptionComponent,\n IllustratedMessageTextDirective,\n IllustratedMessageTitleDirective\n];\n\n@NgModule({\n imports: [...components],\n exports: [...components]\n})\nexport class IllustratedMessageModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings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AAA;;2FAAxB,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBAJpC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE,CAAC,GAAG,UAAU,CAAC;AACxB,oBAAA,OAAO,EAAE,CAAC,GAAG,UAAU;AAC1B,iBAAA;;;ACpBD;;AAEG;;;;"}
@@ -2,88 +2,58 @@ import { AfterContentChecked, ChangeDetectorRef, ElementRef, OnChanges, OnDestro
2
2
  import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
3
3
  import { CssClassBuilder, Nullable, RequireOnlyOne } from '@fundamental-ngx/cdk/utils';
4
4
  import * as i0 from "@angular/core";
5
+ export interface SvgItemConfig {
6
+ url: string;
7
+ id: string;
8
+ file: string;
9
+ }
5
10
  export interface SvgConfig {
11
+ large?: RequireOnlyOne<SvgItemConfig, 'url' | 'file'>;
12
+ medium?: RequireOnlyOne<SvgItemConfig, 'url' | 'file'>;
13
+ small?: RequireOnlyOne<SvgItemConfig, 'url' | 'file'>;
14
+ xsmall?: RequireOnlyOne<SvgItemConfig, 'url' | 'file'>;
6
15
  scene?: RequireOnlyOne<SvgItemConfig, 'url' | 'file'>;
7
16
  dialog?: RequireOnlyOne<SvgItemConfig, 'url' | 'file'>;
8
17
  spot?: RequireOnlyOne<SvgItemConfig, 'url' | 'file'>;
9
18
  dot?: RequireOnlyOne<SvgItemConfig, 'url' | 'file'>;
10
19
  }
11
- export interface SvgItemConfig {
12
- url: string;
13
- id: string;
14
- file: string;
15
- }
16
- export type IllustratedMessageType = 'scene' | 'dialog' | 'spot' | 'dot' | 'base';
20
+ export type IllustratedMessageType = 'large' | 'medium' | 'small' | 'xsmall' | 'base' | 'scene' | 'dialog' | 'spot' | 'dot';
17
21
  export declare enum IllustratedMessageTypes {
22
+ LARGE = "large",
23
+ MEDIUM = "medium",
24
+ SMALL = "small",
25
+ EXTRA_SMALL = "xsmall",
26
+ BASE = "base",
18
27
  SCENE = "scene",
19
28
  DIALOG = "dialog",
20
29
  SPOT = "spot",
21
- DOT = "dot",
22
- BASE = "base"
30
+ DOT = "dot"
23
31
  }
24
32
  export declare class IllustratedMessageComponent implements AfterContentChecked, OnChanges, OnDestroy, OnInit, CssClassBuilder {
25
33
  readonly elementRef: ElementRef;
26
34
  private _cdRef;
27
35
  private _sanitizer;
28
- /**
29
- * The type of the Illustrated Message
30
- * Options include: 'scene' | 'spot' | 'dialog' | 'dot' | 'base'.
31
- */
32
36
  type: IllustratedMessageType;
33
- /**
34
- * An object containing url and id for each type used to construct the svg href
35
- * For 'scene' type 'scene' and 'dialog' values are required
36
- * In small screens (less than 600px) 'dialog' svg will be applied for 'scene' type
37
- */
38
37
  svgConfig: SvgConfig;
39
- /**
40
- * aria-label for the svg
41
- */
42
38
  svgAriaLabel: Nullable<string>;
43
- /**
44
- * When set to true will remove the illustration from the Illustrated Message
45
- * The default is set to false
46
- */
47
39
  noSvg: boolean;
48
- /**
49
- * Id of the Illustrated Message
50
- * If not provided, a default one is generated
51
- */
52
40
  id: string;
53
- /** User's custom classes */
54
41
  class: string;
55
- /** @hidden */
56
42
  _href: string;
57
- /** @hidden */
58
43
  _isSmallScreen: boolean;
59
- /** @hidden */
60
44
  _inlineSvg: SafeHtml | undefined;
61
- /** @hidden */
62
45
  _tempType: IllustratedMessageType;
63
- /** @hidden */
64
46
  private _subscriptions;
65
- /** @hidden */
66
47
  constructor(elementRef: ElementRef, _cdRef: ChangeDetectorRef, _sanitizer: DomSanitizer);
67
- /**
68
- * @hidden
69
- * CssClassBuilder interface implementation
70
- * function must return single string
71
- * function is responsible for order which css classes are applied
72
- */
73
48
  buildComponentCssClass(): string[];
74
- /** @hidden */
75
49
  ngOnChanges(changes: SimpleChanges): void;
76
- /** @hidden */
77
50
  ngOnInit(): void;
78
- /** @hidden */
79
51
  ngAfterContentChecked(): void;
80
- /** @hidden */
81
52
  ngOnDestroy(): void;
82
- /** @hidden */
83
53
  private _constructHref;
84
- /** @hidden */
85
54
  private _determineIllustratedMessageType;
86
- /** @hidden */
55
+ private _normalizeType;
56
+ private _normalizeSvgConfig;
87
57
  private _getHrefByType;
88
58
  static ɵfac: i0.ɵɵFactoryDeclaration<IllustratedMessageComponent, never>;
89
59
  static ɵcmp: i0.ɵɵComponentDeclaration<IllustratedMessageComponent, "[fd-illustrated-message]", never, { "type": { "alias": "type"; "required": false; }; "svgConfig": { "alias": "svgConfig"; "required": false; }; "svgAriaLabel": { "alias": "svgAriaLabel"; "required": false; }; "noSvg": { "alias": "noSvg"; "required": false; }; "id": { "alias": "id"; "required": false; }; "class": { "alias": "class"; "required": false; }; }, {}, never, ["[fd-illustrated-message-figcaption]", "fd-illustrated-message-actions"], true, never>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fundamental-ngx/core",
3
- "version": "0.56.4",
3
+ "version": "0.56.5",
4
4
  "schematics": "./schematics/collection.json",
5
5
  "ng-update": {
6
6
  "migrations": "./schematics/migrations.json"
@@ -23,8 +23,8 @@
23
23
  "@angular/forms": "^19.0.0",
24
24
  "@angular/platform-browser": "^19.0.0",
25
25
  "@angular/router": "^19.0.0",
26
- "@fundamental-ngx/cdk": "0.56.4",
27
- "@fundamental-ngx/i18n": "0.56.4",
26
+ "@fundamental-ngx/cdk": "0.56.5",
27
+ "@fundamental-ngx/i18n": "0.56.5",
28
28
  "@sap-theming/theming-base-content": "^11.30.0",
29
29
  "fundamental-styles": "0.40.1",
30
30
  "rxjs": "^7.8.0"
@@ -215,6 +215,10 @@
215
215
  "types": "./menu/index.d.ts",
216
216
  "default": "./fesm2022/fundamental-ngx-core-menu.mjs"
217
217
  },
218
+ "./message-box": {
219
+ "types": "./message-box/index.d.ts",
220
+ "default": "./fesm2022/fundamental-ngx-core-message-box.mjs"
221
+ },
218
222
  "./message-page": {
219
223
  "types": "./message-page/index.d.ts",
220
224
  "default": "./fesm2022/fundamental-ngx-core-message-page.mjs"
@@ -223,10 +227,6 @@
223
227
  "types": "./message-strip/index.d.ts",
224
228
  "default": "./fesm2022/fundamental-ngx-core-message-strip.mjs"
225
229
  },
226
- "./message-box": {
227
- "types": "./message-box/index.d.ts",
228
- "default": "./fesm2022/fundamental-ngx-core-message-box.mjs"
229
- },
230
230
  "./message-toast": {
231
231
  "types": "./message-toast/index.d.ts",
232
232
  "default": "./fesm2022/fundamental-ngx-core-message-toast.mjs"
@@ -279,14 +279,14 @@
279
279
  "types": "./overflow-layout/index.d.ts",
280
280
  "default": "./fesm2022/fundamental-ngx-core-overflow-layout.mjs"
281
281
  },
282
- "./pagination": {
283
- "types": "./pagination/index.d.ts",
284
- "default": "./fesm2022/fundamental-ngx-core-pagination.mjs"
285
- },
286
282
  "./panel": {
287
283
  "types": "./panel/index.d.ts",
288
284
  "default": "./fesm2022/fundamental-ngx-core-panel.mjs"
289
285
  },
286
+ "./pagination": {
287
+ "types": "./pagination/index.d.ts",
288
+ "default": "./fesm2022/fundamental-ngx-core-pagination.mjs"
289
+ },
290
290
  "./popover": {
291
291
  "types": "./popover/index.d.ts",
292
292
  "default": "./fesm2022/fundamental-ngx-core-popover.mjs"