@spw-ds/spw-angular-library 1.6.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.
|
@@ -2579,7 +2579,17 @@ class TabsValueAccessor {
|
|
|
2579
2579
|
this.lastValue = '';
|
|
2580
2580
|
}
|
|
2581
2581
|
writeValue(value) {
|
|
2582
|
-
this.
|
|
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
|
+
}
|
|
2583
2593
|
}
|
|
2584
2594
|
handleTabChanged(event) {
|
|
2585
2595
|
const value = event.detail;
|
|
@@ -2640,7 +2650,16 @@ class CheckboxValueAccessor {
|
|
|
2640
2650
|
this.lastValue = false;
|
|
2641
2651
|
}
|
|
2642
2652
|
writeValue(value) {
|
|
2643
|
-
this.
|
|
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
|
+
}
|
|
2644
2663
|
}
|
|
2645
2664
|
handleChange(event) {
|
|
2646
2665
|
const value = event.detail;
|
|
@@ -2701,7 +2720,16 @@ class RadioValueAccessor {
|
|
|
2701
2720
|
this.lastValue = false;
|
|
2702
2721
|
}
|
|
2703
2722
|
writeValue(value) {
|
|
2704
|
-
this.
|
|
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
|
+
}
|
|
2705
2733
|
}
|
|
2706
2734
|
handleChange(event) {
|
|
2707
2735
|
const value = event.detail.checked;
|
|
@@ -2762,7 +2790,16 @@ class DatePickerValueAccessor {
|
|
|
2762
2790
|
this.lastValue = '';
|
|
2763
2791
|
}
|
|
2764
2792
|
writeValue(value) {
|
|
2765
|
-
this.
|
|
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
|
+
}
|
|
2766
2803
|
}
|
|
2767
2804
|
handleChange(event) {
|
|
2768
2805
|
const value = event.detail.value;
|
|
@@ -2823,7 +2860,16 @@ class InputSliderValueAccessor {
|
|
|
2823
2860
|
this.lastValue = 0;
|
|
2824
2861
|
}
|
|
2825
2862
|
writeValue(value) {
|
|
2826
|
-
this.
|
|
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
|
+
}
|
|
2827
2873
|
}
|
|
2828
2874
|
handleChange(event) {
|
|
2829
2875
|
const value = event.detail.value;
|
|
@@ -2884,7 +2930,16 @@ class SearchFieldValueAccessor {
|
|
|
2884
2930
|
this.lastValue = '';
|
|
2885
2931
|
}
|
|
2886
2932
|
writeValue(value) {
|
|
2887
|
-
this.
|
|
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
|
+
}
|
|
2888
2943
|
}
|
|
2889
2944
|
handleValueChanged(event) {
|
|
2890
2945
|
const value = event.detail;
|