ets-fe-ng-sdk 19.0.115 → 19.0.117
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.
- package/assets/scss/styles.scss +6 -0
- package/fesm2022/ets-fe-ng-sdk.mjs +24 -3
- package/fesm2022/ets-fe-ng-sdk.mjs.map +1 -1
- package/lib/Services/service-worker/prompt-update.service.d.ts +21 -0
- package/lib/Shared/components/btn/btn.component.d.ts +1 -1
- package/lib/Shared/components/index-comp-layout/index-comp-layout.component.d.ts +1 -1
- package/lib/Shared/components/table/table.pipe.d.ts +2 -2
- package/package.json +1 -1
package/assets/scss/styles.scss
CHANGED
|
@@ -23545,6 +23545,27 @@ class ETSPromptUpdateService {
|
|
|
23545
23545
|
*/
|
|
23546
23546
|
constructor(swUpdate, cS) {
|
|
23547
23547
|
this.cS = cS;
|
|
23548
|
+
/**
|
|
23549
|
+
* Controls whether the update prompt dialog should be displayed.
|
|
23550
|
+
* When set to false, the service will not show any update prompts.
|
|
23551
|
+
*
|
|
23552
|
+
* @example
|
|
23553
|
+
* ```typescript
|
|
23554
|
+
* // Disable update prompts
|
|
23555
|
+
* promptUpdateService.showPrompt = false;
|
|
23556
|
+
*
|
|
23557
|
+
* // Enable update prompts (default)
|
|
23558
|
+
* promptUpdateService.showPrompt = true;
|
|
23559
|
+
*
|
|
23560
|
+
* // Conditionally show prompts based on user preferences
|
|
23561
|
+
* if (userSettings.allowUpdatePrompts) {
|
|
23562
|
+
* promptUpdateService.showPrompt = true;
|
|
23563
|
+
* } else {
|
|
23564
|
+
* promptUpdateService.showPrompt = false;
|
|
23565
|
+
* }
|
|
23566
|
+
* ```
|
|
23567
|
+
*/
|
|
23568
|
+
this.showPrompt = true;
|
|
23548
23569
|
/**
|
|
23549
23570
|
* Indicates whether the confirmation prompt dialog is currently open
|
|
23550
23571
|
*/
|
|
@@ -23562,13 +23583,13 @@ class ETSPromptUpdateService {
|
|
|
23562
23583
|
* @param reason - Optional reason to display in the prompt explaining why a reload is needed
|
|
23563
23584
|
*/
|
|
23564
23585
|
prompter(reason) {
|
|
23586
|
+
if (!this.showPrompt)
|
|
23587
|
+
return;
|
|
23565
23588
|
if (this.promptRef)
|
|
23566
23589
|
this.promptRef.close();
|
|
23567
23590
|
if (this.promptSub)
|
|
23568
23591
|
this.promptSub.unsubscribe();
|
|
23569
|
-
this.promptRef = this.cS.confirm$((reason
|
|
23570
|
-
? reason
|
|
23571
|
-
: `We need to reload the application to receive new updates.`) +
|
|
23592
|
+
this.promptRef = this.cS.confirm$((reason ? reason : `We need to reload the application to receive new updates.`) +
|
|
23572
23593
|
`\n Please confirm if we should refresh.`);
|
|
23573
23594
|
this.promptSub = this.promptRef.afterClosed().subscribe((r) => {
|
|
23574
23595
|
if (r)
|