@spw-ds/spw-angular-library 1.5.11-alpha.0 → 1.6.1-alpha.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.
@@ -70,11 +70,11 @@ let SpwAccordion = class SpwAccordion {
70
70
  this.el = r.nativeElement;
71
71
  }
72
72
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: SpwAccordion, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
73
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.18", type: SpwAccordion, isStandalone: true, selector: "spw-accordion", inputs: { background: "background" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
73
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.18", type: SpwAccordion, isStandalone: true, selector: "spw-accordion", inputs: { background: "background", variant: "variant" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
74
74
  };
75
75
  SpwAccordion = __decorate([
76
76
  ProxyCmp({
77
- inputs: ['background']
77
+ inputs: ['background', 'variant']
78
78
  })
79
79
  ], SpwAccordion);
80
80
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: SpwAccordion, decorators: [{
@@ -84,7 +84,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
84
84
  changeDetection: ChangeDetectionStrategy.OnPush,
85
85
  template: '<ng-content></ng-content>',
86
86
  // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
87
- inputs: ['background'],
87
+ inputs: ['background', 'variant'],
88
88
  }]
89
89
  }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }] });
90
90
  let SpwAccordionContent = class SpwAccordionContent {
@@ -117,11 +117,11 @@ let SpwAccordionItem = class SpwAccordionItem {
117
117
  proxyOutputs(this, this.el, ['accordionToggle']);
118
118
  }
119
119
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: SpwAccordionItem, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
120
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.18", type: SpwAccordionItem, isStandalone: true, selector: "spw-accordion-item", inputs: { defaultOpen: "defaultOpen" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
120
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.18", type: SpwAccordionItem, isStandalone: true, selector: "spw-accordion-item", inputs: { defaultOpen: "defaultOpen", variant: "variant" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
121
121
  };
122
122
  SpwAccordionItem = __decorate([
123
123
  ProxyCmp({
124
- inputs: ['defaultOpen']
124
+ inputs: ['defaultOpen', 'variant']
125
125
  })
126
126
  ], SpwAccordionItem);
127
127
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: SpwAccordionItem, decorators: [{
@@ -131,7 +131,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
131
131
  changeDetection: ChangeDetectionStrategy.OnPush,
132
132
  template: '<ng-content></ng-content>',
133
133
  // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
134
- inputs: ['defaultOpen'],
134
+ inputs: ['defaultOpen', 'variant'],
135
135
  }]
136
136
  }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }] });
137
137
  let SpwAccordionTitle = class SpwAccordionTitle {
@@ -457,11 +457,11 @@ let SpwCustomSelect = class SpwCustomSelect {
457
457
  proxyOutputs(this, this.el, ['valueChanged']);
458
458
  }
459
459
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: SpwCustomSelect, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
460
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.18", type: SpwCustomSelect, isStandalone: true, selector: "spw-custom-select", inputs: { assistiveText: "assistiveText", disabled: "disabled", error: "error", hint: "hint", isSearch: "isSearch", items: "items", label: "label", multiple: "multiple", name: "name", noResultsText: "noResultsText", placeholder: "placeholder", required: "required", searchPlaceholder: "searchPlaceholder", 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 }); }
460
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.18", type: SpwCustomSelect, isStandalone: true, selector: "spw-custom-select", inputs: { assistiveText: "assistiveText", disabled: "disabled", error: "error", fixedDropdown: "fixedDropdown", hint: "hint", isSearch: "isSearch", items: "items", label: "label", multiple: "multiple", name: "name", noResultsText: "noResultsText", placeholder: "placeholder", required: "required", searchPlaceholder: "searchPlaceholder", 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 }); }
461
461
  };
462
462
  SpwCustomSelect = __decorate([
463
463
  ProxyCmp({
464
- inputs: ['assistiveText', 'disabled', 'error', 'hint', 'isSearch', 'items', 'label', 'multiple', 'name', 'noResultsText', 'placeholder', 'required', 'searchPlaceholder', 'showErrorIcon', 'showHintIcon', 'showSuccessIcon', 'showWarningIcon', 'size', 'success', 'tooltipCursor', 'tooltipDirection', 'tooltipMaxWidth', 'tooltipText', 'tooltipTitle', 'value', 'warning'],
464
+ inputs: ['assistiveText', 'disabled', 'error', 'fixedDropdown', 'hint', 'isSearch', 'items', 'label', 'multiple', 'name', 'noResultsText', 'placeholder', 'required', 'searchPlaceholder', 'showErrorIcon', 'showHintIcon', 'showSuccessIcon', 'showWarningIcon', 'size', 'success', 'tooltipCursor', 'tooltipDirection', 'tooltipMaxWidth', 'tooltipText', 'tooltipTitle', 'value', 'warning'],
465
465
  methods: ['setFocus', 'resetSelect', 'setValue', 'getValue']
466
466
  })
467
467
  ], SpwCustomSelect);
@@ -472,7 +472,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
472
472
  changeDetection: ChangeDetectionStrategy.OnPush,
473
473
  template: '<ng-content></ng-content>',
474
474
  // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
475
- inputs: ['assistiveText', 'disabled', 'error', 'hint', 'isSearch', 'items', 'label', 'multiple', 'name', 'noResultsText', 'placeholder', 'required', 'searchPlaceholder', 'showErrorIcon', 'showHintIcon', 'showSuccessIcon', 'showWarningIcon', 'size', 'success', 'tooltipCursor', 'tooltipDirection', 'tooltipMaxWidth', 'tooltipText', 'tooltipTitle', 'value', 'warning'],
475
+ inputs: ['assistiveText', 'disabled', 'error', 'fixedDropdown', 'hint', 'isSearch', 'items', 'label', 'multiple', 'name', 'noResultsText', 'placeholder', 'required', 'searchPlaceholder', 'showErrorIcon', 'showHintIcon', 'showSuccessIcon', 'showWarningIcon', 'size', 'success', 'tooltipCursor', 'tooltipDirection', 'tooltipMaxWidth', 'tooltipText', 'tooltipTitle', 'value', 'warning'],
476
476
  }]
477
477
  }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }] });
478
478
  let SpwDatePicker = class SpwDatePicker {
@@ -2570,6 +2570,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
2570
2570
  }]
2571
2571
  }], ctorParameters: () => [{ type: i0.ElementRef }] });
2572
2572
 
2573
+ // eslint-disable-next-line @angular-eslint/directive-class-suffix
2573
2574
  class TabsValueAccessor {
2574
2575
  constructor(el) {
2575
2576
  this.el = el;
@@ -2578,7 +2579,17 @@ class TabsValueAccessor {
2578
2579
  this.lastValue = '';
2579
2580
  }
2580
2581
  writeValue(value) {
2581
- this.el.nativeElement.activeTab = this.lastValue = value == null ? '' : value;
2582
+ this.lastValue = value == null ? '' : value;
2583
+ const el = this.el.nativeElement;
2584
+ // Attendre que le composant Stencil soit prêt avant d'assigner la valeur
2585
+ if (typeof el.componentOnReady === 'function') {
2586
+ el.componentOnReady().then(() => {
2587
+ el.activeTab = this.lastValue;
2588
+ });
2589
+ }
2590
+ else {
2591
+ el.activeTab = this.lastValue;
2592
+ }
2582
2593
  }
2583
2594
  handleTabChanged(event) {
2584
2595
  const value = event.detail;
@@ -2611,6 +2622,7 @@ class TabsValueAccessor {
2611
2622
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TabsValueAccessor, decorators: [{
2612
2623
  type: Directive,
2613
2624
  args: [{
2625
+ /* tslint:disable-next-line:directive-selector */
2614
2626
  selector: 'spw-tabs',
2615
2627
  providers: [
2616
2628
  {
@@ -2629,6 +2641,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
2629
2641
  args: ['focusout']
2630
2642
  }] } });
2631
2643
 
2644
+ // eslint-disable-next-line @angular-eslint/directive-class-suffix
2632
2645
  class CheckboxValueAccessor {
2633
2646
  constructor(el) {
2634
2647
  this.el = el;
@@ -2637,7 +2650,16 @@ class CheckboxValueAccessor {
2637
2650
  this.lastValue = false;
2638
2651
  }
2639
2652
  writeValue(value) {
2640
- this.el.nativeElement.checked = this.lastValue = value ?? false;
2653
+ this.lastValue = value ?? false;
2654
+ const el = this.el.nativeElement;
2655
+ if (typeof el.componentOnReady === 'function') {
2656
+ el.componentOnReady().then(() => {
2657
+ el.checked = this.lastValue;
2658
+ });
2659
+ }
2660
+ else {
2661
+ el.checked = this.lastValue;
2662
+ }
2641
2663
  }
2642
2664
  handleChange(event) {
2643
2665
  const value = event.detail;
@@ -2670,6 +2692,7 @@ class CheckboxValueAccessor {
2670
2692
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: CheckboxValueAccessor, decorators: [{
2671
2693
  type: Directive,
2672
2694
  args: [{
2695
+ /* tslint:disable-next-line:directive-selector */
2673
2696
  selector: 'spw-checkbox',
2674
2697
  providers: [
2675
2698
  {
@@ -2688,6 +2711,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
2688
2711
  args: ['focusout']
2689
2712
  }] } });
2690
2713
 
2714
+ // eslint-disable-next-line @angular-eslint/directive-class-suffix
2691
2715
  class RadioValueAccessor {
2692
2716
  constructor(el) {
2693
2717
  this.el = el;
@@ -2696,7 +2720,16 @@ class RadioValueAccessor {
2696
2720
  this.lastValue = false;
2697
2721
  }
2698
2722
  writeValue(value) {
2699
- this.el.nativeElement.checked = this.lastValue = value ?? false;
2723
+ this.lastValue = value ?? false;
2724
+ const el = this.el.nativeElement;
2725
+ if (typeof el.componentOnReady === 'function') {
2726
+ el.componentOnReady().then(() => {
2727
+ el.checked = this.lastValue;
2728
+ });
2729
+ }
2730
+ else {
2731
+ el.checked = this.lastValue;
2732
+ }
2700
2733
  }
2701
2734
  handleChange(event) {
2702
2735
  const value = event.detail.checked;
@@ -2729,6 +2762,7 @@ class RadioValueAccessor {
2729
2762
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: RadioValueAccessor, decorators: [{
2730
2763
  type: Directive,
2731
2764
  args: [{
2765
+ /* tslint:disable-next-line:directive-selector */
2732
2766
  selector: 'spw-radio',
2733
2767
  providers: [
2734
2768
  {
@@ -2747,6 +2781,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
2747
2781
  args: ['focusout']
2748
2782
  }] } });
2749
2783
 
2784
+ // eslint-disable-next-line @angular-eslint/directive-class-suffix
2750
2785
  class DatePickerValueAccessor {
2751
2786
  constructor(el) {
2752
2787
  this.el = el;
@@ -2755,7 +2790,16 @@ class DatePickerValueAccessor {
2755
2790
  this.lastValue = '';
2756
2791
  }
2757
2792
  writeValue(value) {
2758
- this.el.nativeElement.value = this.lastValue = value ?? '';
2793
+ this.lastValue = value ?? '';
2794
+ const el = this.el.nativeElement;
2795
+ if (typeof el.componentOnReady === 'function') {
2796
+ el.componentOnReady().then(() => {
2797
+ el.value = this.lastValue;
2798
+ });
2799
+ }
2800
+ else {
2801
+ el.value = this.lastValue;
2802
+ }
2759
2803
  }
2760
2804
  handleChange(event) {
2761
2805
  const value = event.detail.value;
@@ -2788,6 +2832,7 @@ class DatePickerValueAccessor {
2788
2832
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: DatePickerValueAccessor, decorators: [{
2789
2833
  type: Directive,
2790
2834
  args: [{
2835
+ /* tslint:disable-next-line:directive-selector */
2791
2836
  selector: 'spw-date-picker',
2792
2837
  providers: [
2793
2838
  {
@@ -2806,6 +2851,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
2806
2851
  args: ['focusout']
2807
2852
  }] } });
2808
2853
 
2854
+ // eslint-disable-next-line @angular-eslint/directive-class-suffix
2809
2855
  class InputSliderValueAccessor {
2810
2856
  constructor(el) {
2811
2857
  this.el = el;
@@ -2814,7 +2860,16 @@ class InputSliderValueAccessor {
2814
2860
  this.lastValue = 0;
2815
2861
  }
2816
2862
  writeValue(value) {
2817
- this.el.nativeElement.value = this.lastValue = value ?? 0;
2863
+ this.lastValue = value ?? 0;
2864
+ const el = this.el.nativeElement;
2865
+ if (typeof el.componentOnReady === 'function') {
2866
+ el.componentOnReady().then(() => {
2867
+ el.value = this.lastValue;
2868
+ });
2869
+ }
2870
+ else {
2871
+ el.value = this.lastValue;
2872
+ }
2818
2873
  }
2819
2874
  handleChange(event) {
2820
2875
  const value = event.detail.value;
@@ -2847,6 +2902,7 @@ class InputSliderValueAccessor {
2847
2902
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: InputSliderValueAccessor, decorators: [{
2848
2903
  type: Directive,
2849
2904
  args: [{
2905
+ /* tslint:disable-next-line:directive-selector */
2850
2906
  selector: 'spw-input-slider',
2851
2907
  providers: [
2852
2908
  {
@@ -2865,6 +2921,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
2865
2921
  args: ['focusout']
2866
2922
  }] } });
2867
2923
 
2924
+ // eslint-disable-next-line @angular-eslint/directive-class-suffix
2868
2925
  class SearchFieldValueAccessor {
2869
2926
  constructor(el) {
2870
2927
  this.el = el;
@@ -2873,7 +2930,16 @@ class SearchFieldValueAccessor {
2873
2930
  this.lastValue = '';
2874
2931
  }
2875
2932
  writeValue(value) {
2876
- this.el.nativeElement.value = this.lastValue = value == null ? '' : value;
2933
+ this.lastValue = value == null ? '' : value;
2934
+ const el = this.el.nativeElement;
2935
+ if (typeof el.componentOnReady === 'function') {
2936
+ el.componentOnReady().then(() => {
2937
+ el.value = this.lastValue;
2938
+ });
2939
+ }
2940
+ else {
2941
+ el.value = this.lastValue;
2942
+ }
2877
2943
  }
2878
2944
  handleValueChanged(event) {
2879
2945
  const value = event.detail;
@@ -2906,6 +2972,7 @@ class SearchFieldValueAccessor {
2906
2972
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: SearchFieldValueAccessor, decorators: [{
2907
2973
  type: Directive,
2908
2974
  args: [{
2975
+ /* tslint:disable-next-line:directive-selector */
2909
2976
  selector: 'spw-search-field',
2910
2977
  providers: [
2911
2978
  {