@spw-ds/spw-angular-library 1.9.0 → 1.10.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.
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { ChangeDetectionStrategy, Component, HostListener, Directive, Input, NgModule, APP_INITIALIZER } from '@angular/core';
2
+ import { ChangeDetectionStrategy, Component, HostListener, Directive, Input, NgModule, APP_INITIALIZER, Injectable } from '@angular/core';
3
3
  import { defineCustomElements } from '@spw-ds/spw-stencil-library/loader';
4
4
  import { __decorate } from 'tslib';
5
5
  import { fromEvent } from 'rxjs';
@@ -358,11 +358,11 @@ let SpwCardImage = class SpwCardImage {
358
358
  this.el = r.nativeElement;
359
359
  }
360
360
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: SpwCardImage, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
361
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.18", type: SpwCardImage, isStandalone: true, selector: "spw-card-image", inputs: { label: "label", ratio: "ratio", ratioDesktop: "ratioDesktop", ratioMobile: "ratioMobile", ratioTablet: "ratioTablet" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
361
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.18", type: SpwCardImage, isStandalone: true, selector: "spw-card-image", inputs: { imageFit: "imageFit", imagePosition: "imagePosition", label: "label", ratio: "ratio", ratioDesktop: "ratioDesktop", ratioMobile: "ratioMobile", ratioTablet: "ratioTablet" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
362
362
  };
363
363
  SpwCardImage = __decorate([
364
364
  ProxyCmp({
365
- inputs: ['label', 'ratio', 'ratioDesktop', 'ratioMobile', 'ratioTablet']
365
+ inputs: ['imageFit', 'imagePosition', 'label', 'ratio', 'ratioDesktop', 'ratioMobile', 'ratioTablet']
366
366
  })
367
367
  ], SpwCardImage);
368
368
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: SpwCardImage, decorators: [{
@@ -372,7 +372,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
372
372
  changeDetection: ChangeDetectionStrategy.OnPush,
373
373
  template: '<ng-content></ng-content>',
374
374
  // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
375
- inputs: ['label', 'ratio', 'ratioDesktop', 'ratioMobile', 'ratioTablet'],
375
+ inputs: ['imageFit', 'imagePosition', 'label', 'ratio', 'ratioDesktop', 'ratioMobile', 'ratioTablet'],
376
376
  }]
377
377
  }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }] });
378
378
  let SpwCardSubtagItem = class SpwCardSubtagItem {
@@ -868,11 +868,11 @@ let SpwGroup = class SpwGroup {
868
868
  this.el = r.nativeElement;
869
869
  }
870
870
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: SpwGroup, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
871
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.18", type: SpwGroup, isStandalone: true, selector: "spw-group", inputs: { alignment: "alignment", disabled: "disabled", isFullWidth: "isFullWidth", isReversed: "isReversed", label: "label", name: "name", orientation: "orientation", required: "required", tooltipCursor: "tooltipCursor", tooltipDirection: "tooltipDirection", tooltipMaxWidth: "tooltipMaxWidth", tooltipText: "tooltipText", tooltipTitle: "tooltipTitle", type: "type" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
871
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.18", type: SpwGroup, isStandalone: true, selector: "spw-group", inputs: { alignment: "alignment", disabled: "disabled", flexWrap: "flexWrap", isFullWidth: "isFullWidth", isReversed: "isReversed", label: "label", name: "name", orientation: "orientation", required: "required", tooltipCursor: "tooltipCursor", tooltipDirection: "tooltipDirection", tooltipMaxWidth: "tooltipMaxWidth", tooltipText: "tooltipText", tooltipTitle: "tooltipTitle", type: "type" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
872
872
  };
873
873
  SpwGroup = __decorate([
874
874
  ProxyCmp({
875
- inputs: ['alignment', 'disabled', 'isFullWidth', 'isReversed', 'label', 'name', 'orientation', 'required', 'tooltipCursor', 'tooltipDirection', 'tooltipMaxWidth', 'tooltipText', 'tooltipTitle', 'type']
875
+ inputs: ['alignment', 'disabled', 'flexWrap', 'isFullWidth', 'isReversed', 'label', 'name', 'orientation', 'required', 'tooltipCursor', 'tooltipDirection', 'tooltipMaxWidth', 'tooltipText', 'tooltipTitle', 'type']
876
876
  })
877
877
  ], SpwGroup);
878
878
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: SpwGroup, decorators: [{
@@ -882,7 +882,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
882
882
  changeDetection: ChangeDetectionStrategy.OnPush,
883
883
  template: '<ng-content></ng-content>',
884
884
  // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
885
- inputs: ['alignment', 'disabled', 'isFullWidth', 'isReversed', 'label', 'name', 'orientation', 'required', 'tooltipCursor', 'tooltipDirection', 'tooltipMaxWidth', 'tooltipText', 'tooltipTitle', 'type'],
885
+ inputs: ['alignment', 'disabled', 'flexWrap', 'isFullWidth', 'isReversed', 'label', 'name', 'orientation', 'required', 'tooltipCursor', 'tooltipDirection', 'tooltipMaxWidth', 'tooltipText', 'tooltipTitle', 'type'],
886
886
  }]
887
887
  }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }] });
888
888
  let SpwHeader = class SpwHeader {
@@ -1283,11 +1283,11 @@ let SpwLoading = class SpwLoading {
1283
1283
  this.el = r.nativeElement;
1284
1284
  }
1285
1285
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: SpwLoading, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
1286
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.18", type: SpwLoading, isStandalone: true, selector: "spw-loading", inputs: { text: "text" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
1286
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.18", type: SpwLoading, isStandalone: true, selector: "spw-loading", inputs: { orientation: "orientation", size: "size", surface: "surface", text: "text" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
1287
1287
  };
1288
1288
  SpwLoading = __decorate([
1289
1289
  ProxyCmp({
1290
- inputs: ['text']
1290
+ inputs: ['orientation', 'size', 'surface', 'text']
1291
1291
  })
1292
1292
  ], SpwLoading);
1293
1293
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: SpwLoading, decorators: [{
@@ -1297,7 +1297,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
1297
1297
  changeDetection: ChangeDetectionStrategy.OnPush,
1298
1298
  template: '<ng-content></ng-content>',
1299
1299
  // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
1300
- inputs: ['text'],
1300
+ inputs: ['orientation', 'size', 'surface', 'text'],
1301
1301
  }]
1302
1302
  }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }] });
1303
1303
  let SpwMessage = class SpwMessage {
@@ -1511,11 +1511,11 @@ let SpwSelect = class SpwSelect {
1511
1511
  proxyOutputs(this, this.el, ['valueChanged']);
1512
1512
  }
1513
1513
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: SpwSelect, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
1514
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.18", type: SpwSelect, isStandalone: true, selector: "spw-select", inputs: { accAriaLabel: "accAriaLabel", assistiveText: "assistiveText", disabled: "disabled", error: "error", hint: "hint", itemLabel: "itemLabel", itemValue: "itemValue", items: "items", label: "label", name: "name", placeholder: "placeholder", required: "required", showErrorIcon: "showErrorIcon", showHintIcon: "showHintIcon", showSuccessIcon: "showSuccessIcon", showWarningIcon: "showWarningIcon", size: "size", success: "success", tooltipCursor: "tooltipCursor", tooltipDirection: "tooltipDirection", tooltipMaxWidth: "tooltipMaxWidth", tooltipText: "tooltipText", tooltipTitle: "tooltipTitle", value: "value", warning: "warning" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
1514
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.18", type: SpwSelect, isStandalone: true, selector: "spw-select", inputs: { accAriaLabel: "accAriaLabel", assistiveText: "assistiveText", disabled: "disabled", error: "error", hint: "hint", isClear: "isClear", itemLabel: "itemLabel", itemValue: "itemValue", items: "items", label: "label", name: "name", placeholder: "placeholder", required: "required", showErrorIcon: "showErrorIcon", showHintIcon: "showHintIcon", showSuccessIcon: "showSuccessIcon", showWarningIcon: "showWarningIcon", size: "size", success: "success", tooltipCursor: "tooltipCursor", tooltipDirection: "tooltipDirection", tooltipMaxWidth: "tooltipMaxWidth", tooltipText: "tooltipText", tooltipTitle: "tooltipTitle", value: "value", warning: "warning" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
1515
1515
  };
1516
1516
  SpwSelect = __decorate([
1517
1517
  ProxyCmp({
1518
- inputs: ['accAriaLabel', 'assistiveText', 'disabled', 'error', 'hint', 'itemLabel', 'itemValue', 'items', 'label', 'name', 'placeholder', 'required', 'showErrorIcon', 'showHintIcon', 'showSuccessIcon', 'showWarningIcon', 'size', 'success', 'tooltipCursor', 'tooltipDirection', 'tooltipMaxWidth', 'tooltipText', 'tooltipTitle', 'value', 'warning'],
1518
+ inputs: ['accAriaLabel', 'assistiveText', 'disabled', 'error', 'hint', 'isClear', 'itemLabel', 'itemValue', 'items', 'label', 'name', 'placeholder', 'required', 'showErrorIcon', 'showHintIcon', 'showSuccessIcon', 'showWarningIcon', 'size', 'success', 'tooltipCursor', 'tooltipDirection', 'tooltipMaxWidth', 'tooltipText', 'tooltipTitle', 'value', 'warning'],
1519
1519
  methods: ['resetSelect', 'setValue', 'getValue']
1520
1520
  })
1521
1521
  ], SpwSelect);
@@ -1526,7 +1526,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
1526
1526
  changeDetection: ChangeDetectionStrategy.OnPush,
1527
1527
  template: '<ng-content></ng-content>',
1528
1528
  // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
1529
- inputs: ['accAriaLabel', 'assistiveText', 'disabled', 'error', 'hint', 'itemLabel', 'itemValue', 'items', 'label', 'name', 'placeholder', 'required', 'showErrorIcon', 'showHintIcon', 'showSuccessIcon', 'showWarningIcon', 'size', 'success', 'tooltipCursor', 'tooltipDirection', 'tooltipMaxWidth', 'tooltipText', 'tooltipTitle', 'value', 'warning'],
1529
+ inputs: ['accAriaLabel', 'assistiveText', 'disabled', 'error', 'hint', 'isClear', 'itemLabel', 'itemValue', 'items', 'label', 'name', 'placeholder', 'required', 'showErrorIcon', 'showHintIcon', 'showSuccessIcon', 'showWarningIcon', 'size', 'success', 'tooltipCursor', 'tooltipDirection', 'tooltipMaxWidth', 'tooltipText', 'tooltipTitle', 'value', 'warning'],
1530
1530
  }]
1531
1531
  }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }] });
1532
1532
  let SpwSeparator = class SpwSeparator {
@@ -1679,11 +1679,11 @@ let SpwSlider = class SpwSlider {
1679
1679
  this.el = r.nativeElement;
1680
1680
  }
1681
1681
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: SpwSlider, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
1682
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.18", type: SpwSlider, isStandalone: true, selector: "spw-slider", inputs: { arrowsPosition: "arrowsPosition", autoplayEnabled: "autoplayEnabled", autoplayInterval: "autoplayInterval", autoplayText: "autoplayText", hasFixedHeight: "hasFixedHeight", nextSlideText: "nextSlideText", previousSlideText: "previousSlideText", showArrows: "showArrows", showAutoplayToggle: "showAutoplayToggle", showDots: "showDots" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
1682
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.18", type: SpwSlider, isStandalone: true, selector: "spw-slider", inputs: { accAriaLabel: "accAriaLabel", arrowsPosition: "arrowsPosition", autoplayEnabled: "autoplayEnabled", autoplayInterval: "autoplayInterval", autoplayText: "autoplayText", hasFixedHeight: "hasFixedHeight", nextSlideText: "nextSlideText", previousSlideText: "previousSlideText", showArrows: "showArrows", showAutoplayToggle: "showAutoplayToggle", showDots: "showDots" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
1683
1683
  };
1684
1684
  SpwSlider = __decorate([
1685
1685
  ProxyCmp({
1686
- inputs: ['arrowsPosition', 'autoplayEnabled', 'autoplayInterval', 'autoplayText', 'hasFixedHeight', 'nextSlideText', 'previousSlideText', 'showArrows', 'showAutoplayToggle', 'showDots']
1686
+ inputs: ['accAriaLabel', 'arrowsPosition', 'autoplayEnabled', 'autoplayInterval', 'autoplayText', 'hasFixedHeight', 'nextSlideText', 'previousSlideText', 'showArrows', 'showAutoplayToggle', 'showDots']
1687
1687
  })
1688
1688
  ], SpwSlider);
1689
1689
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: SpwSlider, decorators: [{
@@ -1693,7 +1693,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
1693
1693
  changeDetection: ChangeDetectionStrategy.OnPush,
1694
1694
  template: '<ng-content></ng-content>',
1695
1695
  // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
1696
- inputs: ['arrowsPosition', 'autoplayEnabled', 'autoplayInterval', 'autoplayText', 'hasFixedHeight', 'nextSlideText', 'previousSlideText', 'showArrows', 'showAutoplayToggle', 'showDots'],
1696
+ inputs: ['accAriaLabel', 'arrowsPosition', 'autoplayEnabled', 'autoplayInterval', 'autoplayText', 'hasFixedHeight', 'nextSlideText', 'previousSlideText', 'showArrows', 'showAutoplayToggle', 'showDots'],
1697
1697
  }]
1698
1698
  }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }] });
1699
1699
  let SpwSliderItem = class SpwSliderItem {
@@ -2271,6 +2271,57 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
2271
2271
  inputs: ['description', 'isLast', 'label', 'state', 'variant'],
2272
2272
  }]
2273
2273
  }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }] });
2274
+ let SpwToast = class SpwToast {
2275
+ constructor(c, r, z) {
2276
+ this.z = z;
2277
+ c.detach();
2278
+ this.el = r.nativeElement;
2279
+ proxyOutputs(this, this.el, ['spwToastDismiss', 'spwToastLinkClick']);
2280
+ }
2281
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: SpwToast, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
2282
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.18", type: SpwToast, isStandalone: true, selector: "spw-toast", inputs: { dismissText: "dismissText", dismissable: "dismissable", duration: "duration", heading: "heading", icon: "icon", linkHref: "linkHref", linkLabel: "linkLabel", message: "message", variant: "variant" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
2283
+ };
2284
+ SpwToast = __decorate([
2285
+ ProxyCmp({
2286
+ inputs: ['dismissText', 'dismissable', 'duration', 'heading', 'icon', 'linkHref', 'linkLabel', 'message', 'variant'],
2287
+ methods: ['show', 'dismiss']
2288
+ })
2289
+ ], SpwToast);
2290
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: SpwToast, decorators: [{
2291
+ type: Component,
2292
+ args: [{
2293
+ selector: 'spw-toast',
2294
+ changeDetection: ChangeDetectionStrategy.OnPush,
2295
+ template: '<ng-content></ng-content>',
2296
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
2297
+ inputs: ['dismissText', 'dismissable', 'duration', 'heading', 'icon', 'linkHref', 'linkLabel', 'message', 'variant'],
2298
+ }]
2299
+ }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }] });
2300
+ let SpwToastController = class SpwToastController {
2301
+ constructor(c, r, z) {
2302
+ this.z = z;
2303
+ c.detach();
2304
+ this.el = r.nativeElement;
2305
+ }
2306
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: SpwToastController, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
2307
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.18", type: SpwToastController, isStandalone: true, selector: "spw-toast-controller", inputs: { position: "position" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
2308
+ };
2309
+ SpwToastController = __decorate([
2310
+ ProxyCmp({
2311
+ inputs: ['position'],
2312
+ methods: ['create', 'dismissAll']
2313
+ })
2314
+ ], SpwToastController);
2315
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: SpwToastController, decorators: [{
2316
+ type: Component,
2317
+ args: [{
2318
+ selector: 'spw-toast-controller',
2319
+ changeDetection: ChangeDetectionStrategy.OnPush,
2320
+ template: '<ng-content></ng-content>',
2321
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
2322
+ inputs: ['position'],
2323
+ }]
2324
+ }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }] });
2274
2325
  let SpwToc = class SpwToc {
2275
2326
  constructor(c, r, z) {
2276
2327
  this.z = z;
@@ -2533,6 +2584,8 @@ const DIRECTIVES = [
2533
2584
  SpwTileTitle,
2534
2585
  SpwTimeline,
2535
2586
  SpwTimelineItem,
2587
+ SpwToast,
2588
+ SpwToastController,
2536
2589
  SpwToc,
2537
2590
  SpwTocContainer,
2538
2591
  SpwTocNavigation,
@@ -3035,14 +3088,14 @@ const VALUE_ACCESSORS = [
3035
3088
  ];
3036
3089
  class SpwDesignSystemDirectivesModule {
3037
3090
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: SpwDesignSystemDirectivesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
3038
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.18", ngImport: i0, type: SpwDesignSystemDirectivesModule, imports: [SpwAccordion, SpwAccordionContent, SpwAccordionItem, SpwAccordionTitle, SpwAvatar, SpwBlockContent, SpwBreadcrumb, SpwBreadcrumbItem, SpwButton, SpwCard, SpwCardContent, SpwCardExcerpt, SpwCardImage, SpwCardSubtagItem, SpwCardSubtags, SpwCardTitle, SpwCheckbox, SpwCookies, SpwCustomSelect, SpwDatePicker, SpwDropdown, SpwDropdownContainer, SpwDropdownItem, SpwFieldLabel, SpwFieldMessage, SpwFileUpload, SpwFooter, SpwFooterBottom, SpwFooterContent, SpwFooterContentCol, SpwFooterLink, SpwGrid, SpwGridItem, SpwGroup, SpwHeader, SpwHeaderLang, SpwHeaderNavigation, SpwHeaderNavigationDropdown, SpwHeaderNavigationItem, SpwHeaderPersona, SpwHeaderPersonaItem, SpwHero, SpwIcon, SpwIllustration, SpwInputSlider, SpwLink, SpwList, SpwListDescription, SpwListItem, SpwListTitle, SpwLoading, SpwMessage, SpwModal, SpwMosaic, SpwMosaicItem, SpwPagination, SpwRadio, SpwScrolltop, SpwSearchField, SpwSelect, SpwSeparator, SpwSidebar, SpwSidebarNavigationDropdown, SpwSidebarNavigationItem, SpwSidebarNavigationSeparator, SpwSkeleton, SpwSlider, SpwSliderItem, SpwSocials, SpwTable, SpwTableBody, SpwTableCell, SpwTableContainer, SpwTableFooter, SpwTableHead, SpwTableHeader, SpwTableRow, SpwTableSidebar, SpwTabs, SpwTabsContent, SpwTabsNavigation, SpwTabsNavigationItem, SpwTag, SpwTextField, SpwTextarea, SpwThemeProvider, SpwTile, SpwTileDescription, SpwTileTitle, SpwTimeline, SpwTimelineItem, SpwToc, SpwTocContainer, SpwTocNavigation, SpwTooltip, SpwTopbar, SpwWizard, SpwWizardItem, TextValueAccessor,
3091
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.18", ngImport: i0, type: SpwDesignSystemDirectivesModule, imports: [SpwAccordion, SpwAccordionContent, SpwAccordionItem, SpwAccordionTitle, SpwAvatar, SpwBlockContent, SpwBreadcrumb, SpwBreadcrumbItem, SpwButton, SpwCard, SpwCardContent, SpwCardExcerpt, SpwCardImage, SpwCardSubtagItem, SpwCardSubtags, SpwCardTitle, SpwCheckbox, SpwCookies, SpwCustomSelect, SpwDatePicker, SpwDropdown, SpwDropdownContainer, SpwDropdownItem, SpwFieldLabel, SpwFieldMessage, SpwFileUpload, SpwFooter, SpwFooterBottom, SpwFooterContent, SpwFooterContentCol, SpwFooterLink, SpwGrid, SpwGridItem, SpwGroup, SpwHeader, SpwHeaderLang, SpwHeaderNavigation, SpwHeaderNavigationDropdown, SpwHeaderNavigationItem, SpwHeaderPersona, SpwHeaderPersonaItem, SpwHero, SpwIcon, SpwIllustration, SpwInputSlider, SpwLink, SpwList, SpwListDescription, SpwListItem, SpwListTitle, SpwLoading, SpwMessage, SpwModal, SpwMosaic, SpwMosaicItem, SpwPagination, SpwRadio, SpwScrolltop, SpwSearchField, SpwSelect, SpwSeparator, SpwSidebar, SpwSidebarNavigationDropdown, SpwSidebarNavigationItem, SpwSidebarNavigationSeparator, SpwSkeleton, SpwSlider, SpwSliderItem, SpwSocials, SpwTable, SpwTableBody, SpwTableCell, SpwTableContainer, SpwTableFooter, SpwTableHead, SpwTableHeader, SpwTableRow, SpwTableSidebar, SpwTabs, SpwTabsContent, SpwTabsNavigation, SpwTabsNavigationItem, SpwTag, SpwTextField, SpwTextarea, SpwThemeProvider, SpwTile, SpwTileDescription, SpwTileTitle, SpwTimeline, SpwTimelineItem, SpwToast, SpwToastController, SpwToc, SpwTocContainer, SpwTocNavigation, SpwTooltip, SpwTopbar, SpwWizard, SpwWizardItem, TextValueAccessor,
3039
3092
  NumericValueAccessor,
3040
3093
  TabsValueAccessor,
3041
3094
  CheckboxValueAccessor,
3042
3095
  RadioValueAccessor,
3043
3096
  DatePickerValueAccessor,
3044
3097
  InputSliderValueAccessor,
3045
- SearchFieldValueAccessor], exports: [SpwAccordion, SpwAccordionContent, SpwAccordionItem, SpwAccordionTitle, SpwAvatar, SpwBlockContent, SpwBreadcrumb, SpwBreadcrumbItem, SpwButton, SpwCard, SpwCardContent, SpwCardExcerpt, SpwCardImage, SpwCardSubtagItem, SpwCardSubtags, SpwCardTitle, SpwCheckbox, SpwCookies, SpwCustomSelect, SpwDatePicker, SpwDropdown, SpwDropdownContainer, SpwDropdownItem, SpwFieldLabel, SpwFieldMessage, SpwFileUpload, SpwFooter, SpwFooterBottom, SpwFooterContent, SpwFooterContentCol, SpwFooterLink, SpwGrid, SpwGridItem, SpwGroup, SpwHeader, SpwHeaderLang, SpwHeaderNavigation, SpwHeaderNavigationDropdown, SpwHeaderNavigationItem, SpwHeaderPersona, SpwHeaderPersonaItem, SpwHero, SpwIcon, SpwIllustration, SpwInputSlider, SpwLink, SpwList, SpwListDescription, SpwListItem, SpwListTitle, SpwLoading, SpwMessage, SpwModal, SpwMosaic, SpwMosaicItem, SpwPagination, SpwRadio, SpwScrolltop, SpwSearchField, SpwSelect, SpwSeparator, SpwSidebar, SpwSidebarNavigationDropdown, SpwSidebarNavigationItem, SpwSidebarNavigationSeparator, SpwSkeleton, SpwSlider, SpwSliderItem, SpwSocials, SpwTable, SpwTableBody, SpwTableCell, SpwTableContainer, SpwTableFooter, SpwTableHead, SpwTableHeader, SpwTableRow, SpwTableSidebar, SpwTabs, SpwTabsContent, SpwTabsNavigation, SpwTabsNavigationItem, SpwTag, SpwTextField, SpwTextarea, SpwThemeProvider, SpwTile, SpwTileDescription, SpwTileTitle, SpwTimeline, SpwTimelineItem, SpwToc, SpwTocContainer, SpwTocNavigation, SpwTooltip, SpwTopbar, SpwWizard, SpwWizardItem, TextValueAccessor,
3098
+ SearchFieldValueAccessor], exports: [SpwAccordion, SpwAccordionContent, SpwAccordionItem, SpwAccordionTitle, SpwAvatar, SpwBlockContent, SpwBreadcrumb, SpwBreadcrumbItem, SpwButton, SpwCard, SpwCardContent, SpwCardExcerpt, SpwCardImage, SpwCardSubtagItem, SpwCardSubtags, SpwCardTitle, SpwCheckbox, SpwCookies, SpwCustomSelect, SpwDatePicker, SpwDropdown, SpwDropdownContainer, SpwDropdownItem, SpwFieldLabel, SpwFieldMessage, SpwFileUpload, SpwFooter, SpwFooterBottom, SpwFooterContent, SpwFooterContentCol, SpwFooterLink, SpwGrid, SpwGridItem, SpwGroup, SpwHeader, SpwHeaderLang, SpwHeaderNavigation, SpwHeaderNavigationDropdown, SpwHeaderNavigationItem, SpwHeaderPersona, SpwHeaderPersonaItem, SpwHero, SpwIcon, SpwIllustration, SpwInputSlider, SpwLink, SpwList, SpwListDescription, SpwListItem, SpwListTitle, SpwLoading, SpwMessage, SpwModal, SpwMosaic, SpwMosaicItem, SpwPagination, SpwRadio, SpwScrolltop, SpwSearchField, SpwSelect, SpwSeparator, SpwSidebar, SpwSidebarNavigationDropdown, SpwSidebarNavigationItem, SpwSidebarNavigationSeparator, SpwSkeleton, SpwSlider, SpwSliderItem, SpwSocials, SpwTable, SpwTableBody, SpwTableCell, SpwTableContainer, SpwTableFooter, SpwTableHead, SpwTableHeader, SpwTableRow, SpwTableSidebar, SpwTabs, SpwTabsContent, SpwTabsNavigation, SpwTabsNavigationItem, SpwTag, SpwTextField, SpwTextarea, SpwThemeProvider, SpwTile, SpwTileDescription, SpwTileTitle, SpwTimeline, SpwTimelineItem, SpwToast, SpwToastController, SpwToc, SpwTocContainer, SpwTocNavigation, SpwTooltip, SpwTopbar, SpwWizard, SpwWizardItem, TextValueAccessor,
3046
3099
  NumericValueAccessor,
3047
3100
  TabsValueAccessor,
3048
3101
  CheckboxValueAccessor,
@@ -3086,9 +3139,113 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
3086
3139
  }]
3087
3140
  }] });
3088
3141
 
3142
+ /**
3143
+ * Service Angular pour afficher des toasts SPW programmatiquement.
3144
+ *
3145
+ * @example
3146
+ * // 1. Importer SpwDesignSystemModule (ou SpwToastService directement) dans votre AppModule
3147
+ *
3148
+ * // 2. Injecter et utiliser
3149
+ * constructor(private toast: SpwToastService) {}
3150
+ *
3151
+ * this.toast.create({ message: 'Sauvegardé !', variant: 'success' });
3152
+ * this.toast.success('Enregistrement réussi');
3153
+ * this.toast.error('Une erreur est survenue');
3154
+ */
3155
+ class SpwToastService {
3156
+ constructor() {
3157
+ this.controllerEl = null;
3158
+ }
3159
+ getController() {
3160
+ if (!this.controllerEl || !document.body.contains(this.controllerEl)) {
3161
+ const existing = document.querySelector('spw-toast-controller');
3162
+ if (existing) {
3163
+ this.controllerEl = existing;
3164
+ }
3165
+ else {
3166
+ const el = document.createElement('spw-toast-controller');
3167
+ document.body.appendChild(el);
3168
+ this.controllerEl = el;
3169
+ }
3170
+ }
3171
+ return this.controllerEl;
3172
+ }
3173
+ /**
3174
+ * Affiche un toast avec les options fournies.
3175
+ */
3176
+ async create(options) {
3177
+ const controller = this.getController();
3178
+ if (typeof controller.create === 'function') {
3179
+ return controller.create(options);
3180
+ }
3181
+ // Fallback si le web component n'est pas encore défini
3182
+ return this.createFallback(options);
3183
+ }
3184
+ /** Raccourci : toast de succès */
3185
+ success(heading, options) {
3186
+ return this.create({ ...options, heading, variant: 'success' });
3187
+ }
3188
+ /** Raccourci : toast d'information */
3189
+ info(heading, options) {
3190
+ return this.create({ ...options, heading, variant: 'info' });
3191
+ }
3192
+ /** Raccourci : toast d'avertissement */
3193
+ warning(heading, options) {
3194
+ return this.create({ ...options, heading, variant: 'warning' });
3195
+ }
3196
+ /** Raccourci : toast d'erreur/alerte */
3197
+ error(heading, options) {
3198
+ return this.create({ ...options, heading, variant: 'alert' });
3199
+ }
3200
+ /** Ferme tous les toasts en cours d'affichage */
3201
+ async dismissAll() {
3202
+ const controller = this.getController();
3203
+ if (typeof controller.dismissAll === 'function') {
3204
+ return controller.dismissAll();
3205
+ }
3206
+ }
3207
+ /** Configure la position du conteneur de toasts */
3208
+ setPosition(position) {
3209
+ const controller = this.getController();
3210
+ controller.position = position;
3211
+ }
3212
+ ngOnDestroy() {
3213
+ // Ne pas supprimer le contrôleur : d'autres instances pourraient l'utiliser
3214
+ this.controllerEl = null;
3215
+ }
3216
+ createFallback(options) {
3217
+ const toast = document.createElement('spw-toast');
3218
+ if (options.heading)
3219
+ toast.heading = options.heading;
3220
+ if (options.message)
3221
+ toast.message = options.message;
3222
+ if (options.linkLabel)
3223
+ toast.linkLabel = options.linkLabel;
3224
+ if (options.linkHref)
3225
+ toast.linkHref = options.linkHref;
3226
+ if (options.icon)
3227
+ toast.icon = options.icon;
3228
+ toast.variant = options.variant ?? 'info';
3229
+ toast.duration = options.duration !== undefined ? options.duration : 5000;
3230
+ toast.dismissable = options.dismissable !== undefined ? options.dismissable : true;
3231
+ if (options.onLinkClick) {
3232
+ toast.addEventListener('spwToastLinkClick', options.onLinkClick);
3233
+ }
3234
+ const controller = this.getController();
3235
+ controller.appendChild(toast);
3236
+ return toast;
3237
+ }
3238
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: SpwToastService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
3239
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: SpwToastService, providedIn: 'root' }); }
3240
+ }
3241
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: SpwToastService, decorators: [{
3242
+ type: Injectable,
3243
+ args: [{ providedIn: 'root' }]
3244
+ }] });
3245
+
3089
3246
  /**
3090
3247
  * Generated bundle index. Do not edit.
3091
3248
  */
3092
3249
 
3093
- export { CheckboxValueAccessor, DatePickerValueAccessor, InputSliderValueAccessor, NumericValueAccessor, RadioValueAccessor, SearchFieldValueAccessor, SpwAccordion, SpwAccordionContent, SpwAccordionItem, SpwAccordionTitle, SpwAvatar, SpwBlockContent, SpwBreadcrumb, SpwBreadcrumbItem, SpwButton, SpwCard, SpwCardContent, SpwCardExcerpt, SpwCardImage, SpwCardSubtagItem, SpwCardSubtags, SpwCardTitle, SpwCheckbox, SpwCookies, SpwCustomSelect, SpwDatePicker, SpwDesignSystemDirectivesModule, SpwDesignSystemModule, SpwDropdown, SpwDropdownContainer, SpwDropdownItem, SpwFieldLabel, SpwFieldMessage, SpwFileUpload, SpwFooter, SpwFooterBottom, SpwFooterContent, SpwFooterContentCol, SpwFooterLink, SpwGrid, SpwGridItem, SpwGroup, SpwHeader, SpwHeaderLang, SpwHeaderNavigation, SpwHeaderNavigationDropdown, SpwHeaderNavigationItem, SpwHeaderPersona, SpwHeaderPersonaItem, SpwHero, SpwIcon, SpwIllustration, SpwInputSlider, SpwLink, SpwList, SpwListDescription, SpwListItem, SpwListTitle, SpwLoading, SpwMessage, SpwModal, SpwMosaic, SpwMosaicItem, SpwPagination, SpwRadio, SpwScrolltop, SpwSearchField, SpwSelect, SpwSeparator, SpwSidebar, SpwSidebarNavigationDropdown, SpwSidebarNavigationItem, SpwSidebarNavigationSeparator, SpwSkeleton, SpwSlider, SpwSliderItem, SpwSocials, SpwTable, SpwTableBody, SpwTableCell, SpwTableContainer, SpwTableFooter, SpwTableHead, SpwTableHeader, SpwTableRow, SpwTableSidebar, SpwTabs, SpwTabsContent, SpwTabsNavigation, SpwTabsNavigationItem, SpwTag, SpwTextField, SpwTextarea, SpwThemeProvider, SpwTile, SpwTileDescription, SpwTileTitle, SpwTimeline, SpwTimelineItem, SpwToc, SpwTocContainer, SpwTocNavigation, SpwTooltip, SpwTopbar, SpwWizard, SpwWizardItem, TabsValueAccessor, TextValueAccessor, ValueAccessor };
3250
+ export { CheckboxValueAccessor, DatePickerValueAccessor, InputSliderValueAccessor, NumericValueAccessor, RadioValueAccessor, SearchFieldValueAccessor, SpwAccordion, SpwAccordionContent, SpwAccordionItem, SpwAccordionTitle, SpwAvatar, SpwBlockContent, SpwBreadcrumb, SpwBreadcrumbItem, SpwButton, SpwCard, SpwCardContent, SpwCardExcerpt, SpwCardImage, SpwCardSubtagItem, SpwCardSubtags, SpwCardTitle, SpwCheckbox, SpwCookies, SpwCustomSelect, SpwDatePicker, SpwDesignSystemDirectivesModule, SpwDesignSystemModule, SpwDropdown, SpwDropdownContainer, SpwDropdownItem, SpwFieldLabel, SpwFieldMessage, SpwFileUpload, SpwFooter, SpwFooterBottom, SpwFooterContent, SpwFooterContentCol, SpwFooterLink, SpwGrid, SpwGridItem, SpwGroup, SpwHeader, SpwHeaderLang, SpwHeaderNavigation, SpwHeaderNavigationDropdown, SpwHeaderNavigationItem, SpwHeaderPersona, SpwHeaderPersonaItem, SpwHero, SpwIcon, SpwIllustration, SpwInputSlider, SpwLink, SpwList, SpwListDescription, SpwListItem, SpwListTitle, SpwLoading, SpwMessage, SpwModal, SpwMosaic, SpwMosaicItem, SpwPagination, SpwRadio, SpwScrolltop, SpwSearchField, SpwSelect, SpwSeparator, SpwSidebar, SpwSidebarNavigationDropdown, SpwSidebarNavigationItem, SpwSidebarNavigationSeparator, SpwSkeleton, SpwSlider, SpwSliderItem, SpwSocials, SpwTable, SpwTableBody, SpwTableCell, SpwTableContainer, SpwTableFooter, SpwTableHead, SpwTableHeader, SpwTableRow, SpwTableSidebar, SpwTabs, SpwTabsContent, SpwTabsNavigation, SpwTabsNavigationItem, SpwTag, SpwTextField, SpwTextarea, SpwThemeProvider, SpwTile, SpwTileDescription, SpwTileTitle, SpwTimeline, SpwTimelineItem, SpwToast, SpwToastController, SpwToastService, SpwToc, SpwTocContainer, SpwTocNavigation, SpwTooltip, SpwTopbar, SpwWizard, SpwWizardItem, TabsValueAccessor, TextValueAccessor, ValueAccessor };
3094
3251
  //# sourceMappingURL=spw-ds-spw-angular-library.mjs.map