@propbinder/mobile-design 0.2.23 → 0.2.24
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.
|
@@ -2355,14 +2355,27 @@ class DsMobileProfileActionsSheetComponent {
|
|
|
2355
2355
|
constructor(modalController, injector) {
|
|
2356
2356
|
this.modalController = modalController;
|
|
2357
2357
|
this.injector = injector;
|
|
2358
|
-
// Initialize selected language when component is created
|
|
2359
|
-
this.selectedLanguage.set(this.currentLanguage);
|
|
2360
|
-
this.initialLanguage = this.currentLanguage;
|
|
2361
2358
|
// Set initial height after render
|
|
2362
2359
|
afterNextRender(() => {
|
|
2363
2360
|
this.updateHeight();
|
|
2364
2361
|
}, { injector: this.injector });
|
|
2365
2362
|
}
|
|
2363
|
+
ngOnChanges(changes) {
|
|
2364
|
+
if (changes['currentLanguage']) {
|
|
2365
|
+
const val = changes['currentLanguage'].currentValue;
|
|
2366
|
+
if (val) {
|
|
2367
|
+
this.selectedLanguage.set(val);
|
|
2368
|
+
this.initialLanguage = val;
|
|
2369
|
+
}
|
|
2370
|
+
}
|
|
2371
|
+
}
|
|
2372
|
+
ngOnInit() {
|
|
2373
|
+
// Fallback initialization if not already set by ngOnChanges
|
|
2374
|
+
if (!this.selectedLanguage()) {
|
|
2375
|
+
this.selectedLanguage.set(this.currentLanguage);
|
|
2376
|
+
this.initialLanguage = this.currentLanguage;
|
|
2377
|
+
}
|
|
2378
|
+
}
|
|
2366
2379
|
/**
|
|
2367
2380
|
* Handle action item click
|
|
2368
2381
|
*/
|
|
@@ -2500,7 +2513,7 @@ class DsMobileProfileActionsSheetComponent {
|
|
|
2500
2513
|
this.modalController.dismiss({ action }, 'select');
|
|
2501
2514
|
}
|
|
2502
2515
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DsMobileProfileActionsSheetComponent, deps: [{ token: i1.ModalController }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
|
|
2503
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: DsMobileProfileActionsSheetComponent, isStandalone: true, selector: "ds-mobile-profile-actions-sheet", inputs: { actionGroups: "actionGroups", currentLanguage: "currentLanguage", availableLanguages: "availableLanguages" }, viewQueries: [{ propertyName: "viewContainer", first: true, predicate: ["viewContainer"], descendants: true, read: ElementRef }, { propertyName: "sheetWrapper", first: true, predicate: ["sheetWrapper"], descendants: true, read: ElementRef }], ngImport: i0, template: `
|
|
2516
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: DsMobileProfileActionsSheetComponent, isStandalone: true, selector: "ds-mobile-profile-actions-sheet", inputs: { actionGroups: "actionGroups", currentLanguage: "currentLanguage", availableLanguages: "availableLanguages" }, viewQueries: [{ propertyName: "viewContainer", first: true, predicate: ["viewContainer"], descendants: true, read: ElementRef }, { propertyName: "sheetWrapper", first: true, predicate: ["sheetWrapper"], descendants: true, read: ElementRef }], usesOnChanges: true, ngImport: i0, template: `
|
|
2504
2517
|
<ds-mobile-bottom-sheet-wrapper>
|
|
2505
2518
|
<div class="profile-sheet-content" #sheetWrapper>
|
|
2506
2519
|
<!-- View Container with CSS Animation -->
|