@softpak/components 19.0.0-beta.1 → 19.0.0-beta.11

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.
Files changed (58) hide show
  1. package/fesm2022/softpak-components-spx-alert.mjs +54 -44
  2. package/fesm2022/softpak-components-spx-alert.mjs.map +1 -1
  3. package/fesm2022/softpak-components-spx-app-expiry.mjs +58 -41
  4. package/fesm2022/softpak-components-spx-app-expiry.mjs.map +1 -1
  5. package/fesm2022/softpak-components-spx-app-update.mjs +73 -68
  6. package/fesm2022/softpak-components-spx-app-update.mjs.map +1 -1
  7. package/fesm2022/softpak-components-spx-button.mjs +3 -3
  8. package/fesm2022/softpak-components-spx-capitalize.mjs +3 -3
  9. package/fesm2022/softpak-components-spx-card.mjs +159 -126
  10. package/fesm2022/softpak-components-spx-card.mjs.map +1 -1
  11. package/fesm2022/softpak-components-spx-change-details.mjs +4 -6
  12. package/fesm2022/softpak-components-spx-change-details.mjs.map +1 -1
  13. package/fesm2022/softpak-components-spx-channel-selection.mjs +8 -11
  14. package/fesm2022/softpak-components-spx-channel-selection.mjs.map +1 -1
  15. package/fesm2022/softpak-components-spx-check-digit.mjs +5 -8
  16. package/fesm2022/softpak-components-spx-check-digit.mjs.map +1 -1
  17. package/fesm2022/softpak-components-spx-form-section.mjs +20 -15
  18. package/fesm2022/softpak-components-spx-form-section.mjs.map +1 -1
  19. package/fesm2022/softpak-components-spx-form-view.mjs +145 -138
  20. package/fesm2022/softpak-components-spx-form-view.mjs.map +1 -1
  21. package/fesm2022/softpak-components-spx-helpers.mjs +1 -0
  22. package/fesm2022/softpak-components-spx-helpers.mjs.map +1 -1
  23. package/fesm2022/softpak-components-spx-inputs.mjs +809 -860
  24. package/fesm2022/softpak-components-spx-inputs.mjs.map +1 -1
  25. package/fesm2022/softpak-components-spx-navigation.mjs +51 -51
  26. package/fesm2022/softpak-components-spx-navigation.mjs.map +1 -1
  27. package/fesm2022/softpak-components-spx-number-check.mjs +48 -42
  28. package/fesm2022/softpak-components-spx-number-check.mjs.map +1 -1
  29. package/fesm2022/softpak-components-spx-pagination.mjs +3 -3
  30. package/fesm2022/softpak-components-spx-patch.mjs +28 -22
  31. package/fesm2022/softpak-components-spx-patch.mjs.map +1 -1
  32. package/fesm2022/softpak-components-spx-progress-bar.mjs +3 -3
  33. package/fesm2022/softpak-components-spx-spinner.mjs +144 -143
  34. package/fesm2022/softpak-components-spx-spinner.mjs.map +1 -1
  35. package/fesm2022/softpak-components-spx-stock-info.mjs +7 -10
  36. package/fesm2022/softpak-components-spx-stock-info.mjs.map +1 -1
  37. package/fesm2022/softpak-components-spx-suggestion.mjs +41 -49
  38. package/fesm2022/softpak-components-spx-suggestion.mjs.map +1 -1
  39. package/fesm2022/softpak-components-spx-toaster.mjs +92 -97
  40. package/fesm2022/softpak-components-spx-toaster.mjs.map +1 -1
  41. package/fesm2022/softpak-components-spx-update.mjs +8 -10
  42. package/fesm2022/softpak-components-spx-update.mjs.map +1 -1
  43. package/fesm2022/softpak-components-spx-validation.mjs +5 -8
  44. package/fesm2022/softpak-components-spx-validation.mjs.map +1 -1
  45. package/package.json +23 -24
  46. package/spx-alert/spx-alert.component.d.ts +4 -4
  47. package/spx-app-update/spx-app-update.component.d.ts +3 -3
  48. package/spx-helpers/spx-severity.enum.d.ts +2 -1
  49. package/spx-inputs/spx-input-box.component.d.ts +4 -4
  50. package/spx-inputs/spx-input-date/spx-input-date.component.d.ts +43 -0
  51. package/spx-inputs/spx-input-float.component.d.ts +5 -4
  52. package/spx-inputs/spx-input-text.component.d.ts +2 -1
  53. package/spx-inputs/spx-input-time-modal.component.d.ts +1 -1
  54. package/spx-inputs/spx-input-time.component.d.ts +1 -1
  55. package/spx-inputs/spx-input.component.d.ts +2 -1
  56. package/spx-suggestion/spx-suggestion.component.d.ts +5 -5
  57. package/tailwind.css +1 -1
  58. package/spx-inputs/spx-input-date.component.d.ts +0 -50
@@ -1 +1 @@
1
- {"version":3,"file":"softpak-components-spx-app-update.mjs","sources":["../../../../projects/softpak/components/spx-app-update/spx-app-update.component.ts","../../../../projects/softpak/components/spx-app-update/softpak-components-spx-app-update.ts"],"sourcesContent":["import { NgClass, NgIf } from '@angular/common';\nimport { ApplicationRef, ChangeDetectorRef, Component, Input, OnDestroy, OnInit } from '@angular/core';\nimport { FormBuilder, FormControl, FormGroup, FormsModule, ReactiveFormsModule } from '@angular/forms';\nimport { Router } from '@angular/router';\nimport { TranslateModule, TranslateService } from '@ngx-translate/core';\nimport { SpxCapitalizePipe } from '@softpak/components/spx-capitalize';\nimport { SpxInputComponent } from '@softpak/components/spx-inputs';\nimport { SpxProgressBarComponent } from '@softpak/components/spx-progress-bar';\nimport { SpxStorage, SpxStorageKeyEnum } from '@softpak/components/spx-storage';\nimport { Device } from '@capacitor/device';\nimport { Deploy } from 'cordova-plugin-ionic/dist/ngx';\nimport { getCurrentScope } from '@sentry/angular';\nimport { IonContent, IonHeader, IonTitle, IonToolbar } from '@ionic/angular/standalone';\n\nconst ctrlNextVersionNumber = 'ctrlNextVersionNumber';\nconst ctrlVersionNumber = 'ctrlVersionNumber';\nconst ctrlConfiguredChannel = 'ctrlConfiguredChannel';\nconst ctrlAppStoreVersion = 'ctrlAppStoreVersion';\n\n@Component({\n selector: 'spx-app-update',\n imports: [\n FormsModule,\n IonContent,\n IonHeader,\n IonTitle,\n IonToolbar,\n NgClass,\n NgIf,\n ReactiveFormsModule,\n SpxCapitalizePipe,\n SpxInputComponent,\n SpxProgressBarComponent,\n TranslateModule,\n ],\n template: `<ion-header>\n <ion-toolbar>\n <ion-title>\n {{ txtUpdate | translate | capitalize }}\n </ion-title>\n </ion-toolbar>\n</ion-header>\n\n<ion-content class=\"ion-content--upd\" [fullscreen]=\"true\">\n <div class=\"ion-padding\">\n <spx-progress-bar [spxPercentage]=\"delayedPercentage\" [spxTitle]=\"updateStatus | capitalize\">\n </spx-progress-bar>\n <form [formGroup]=\"form\" class=\"mt-3\">\n <div *ngIf=\"ctrlAppStoreVersion.value && ctrlAppStoreVersion.value.value\" class=\"grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-3\">\n <spx-input [formControl]=\"ctrlAppStoreVersion\" [spxLabel]=\"txtAppStoreVersion | translate | capitalize\"\n [spxReadonly]=\"true\"></spx-input>\n <spx-input [formControl]=\"ctrlConfiguredChannel\" [spxLabel]=\"txtChannel | translate | capitalize\"\n [spxReadonly]=\"true\"></spx-input>\n <spx-input [formControl]=\"ctrlVersionNumber\" [spxLabel]=\"txtVersion | translate | capitalize\"\n [spxReadonly]=\"true\"></spx-input>\n <spx-input *ngIf=\"ctrlNextVersionNumber.value && ctrlNextVersionNumber.value.value\" [formControl]=\"ctrlNextVersionNumber\" [spxLabel]=\"txtNextVersion | translate | capitalize\"\n [spxReadonly]=\"true\"></spx-input>\n </div>\n </form>\n </div>\n</ion-content>`\n})\nexport class SpxAppUpdateComponent {\n @Input() spxHomeUrl!: string;\n @Input() spxIsSignedIn!: boolean;\n @Input() textCheckingForUpdates!: string;\n @Input() textDownloadingUpdate!: string;\n @Input() textErrorWhileUpdatingApp!: string;\n @Input() textFinishedUpdating!: string;\n @Input() textNoUpdatesAvailable!: string;\n @Input() textUnexpectedError!: string;\n @Input() txtAppStoreVersion!: string;\n @Input() txtChannel!: string;\n @Input() txtNextVersion!: string;\n @Input() txtUpdate!: string;\n @Input() txtVersion!: string;\n @Input() spxAppId!: string;\n\n form: FormGroup;\n\n delayedPercentage: number = 0;\n percentage: number = 0;\n syncTruckInterval: any | null = null;\n updateStatus: string = this.textCheckingForUpdates;\n\n constructor(\n private readonly deploy: Deploy,\n private readonly router: Router,\n private readonly changeDetector: ChangeDetectorRef,\n private readonly applicationRef: ApplicationRef,\n private readonly translateService: TranslateService,\n private readonly formBuilder: FormBuilder,\n ) {\n this.form = this.formBuilder.group({\n [ctrlNextVersionNumber]: [null, []],\n [ctrlVersionNumber]: [null, []],\n [ctrlConfiguredChannel]: [null, []],\n [ctrlAppStoreVersion]: [null, []],\n });\n }\n\n get ctrlVersionNumber(): FormControl { return this.form.get(ctrlVersionNumber) as FormControl; }\n get ctrlNextVersionNumber(): FormControl { return this.form.get(ctrlNextVersionNumber) as FormControl; }\n get ctrlConfiguredChannel(): FormControl { return this.form.get(ctrlConfiguredChannel) as FormControl; }\n get ctrlAppStoreVersion(): FormControl { return this.form.get(ctrlAppStoreVersion) as FormControl; }\n\n init() {\n this.delayedPercentage = 0;\n this.percentage = 0;\n this.performAutomaticUpdate().then(() => { });\n this.startLoaderSync();\n this.changeStatus({\n percentage: 0,\n text: this.translateService.instant(this.textCheckingForUpdates),\n });\n }\n\n destroy() {\n this.stopLoaderSync();\n }\n\n async performAutomaticUpdate() {\n const deviceInfo = await Device.getInfo();\n\n if (deviceInfo?.platform === 'web') {\n // Local? Skip the update page.\n this.closeUpdateScreen();\n }\n try {\n this.updateInfo();\n\n // Start upgrade\n const currentVersion = await this.deploy.getCurrentVersion();\n if (currentVersion?.binaryVersionName) {\n const binaryGroup = currentVersion.binaryVersionName.substring(0, 3); // e.g. \"1.4\"\n const channelGroup = currentVersion.channel.split('-')[1].substring(0, 3); // e.g. \"1.4\"\n const channelType = currentVersion.channel.split('-')[0];\n\n if (binaryGroup != channelGroup) {\n await this.deploy.configure({\n appId: this.spxAppId,\n channel: `${channelType}-${binaryGroup}.x`\n }).then(() => {\n this.sync().then(() => { });\n });\n } else {\n this.sync().then(() => { });\n }\n } else {\n this.sync().then(() => { });\n }\n // End upgrade\n } catch (error: any) {\n this.changeStatus({\n closeScreen: true,\n error,\n percentage: 100,\n text: this.translateService.instant(this.textUnexpectedError)\n });\n }\n }\n\n private async sync() {\n try {\n this.updateInfo();\n\n const updateAvailableInfo = await this.deploy.checkForUpdate();\n if (!updateAvailableInfo.available) {\n // No update available\n this.changeStatus({\n closeScreen: true,\n percentage: 0,\n text: this.translateService.instant(this.textNoUpdatesAvailable),\n });\n } else {\n // Download update\n await this.deploy.sync({ updateMethod: 'auto' }, (percentage) => {\n this.changeStatus({\n percentage: percentage ?? 0,\n text: this.translateService.instant(this.textDownloadingUpdate, { percentage, version: updateAvailableInfo.build }),\n });\n }).catch((error) => {\n this.changeStatus({\n closeScreen: true,\n error,\n percentage: 100,\n text: this.translateService.instant(this.textErrorWhileUpdatingApp),\n });\n });\n\n this.changeStatus({\n closeScreen: true,\n percentage: 100,\n text: this.translateService.instant(this.textFinishedUpdating, { version: updateAvailableInfo.build })\n });\n }\n } catch (error: any) {\n // Catch unexpected plug-in errors\n this.changeStatus({\n closeScreen: true,\n error,\n percentage: 100,\n text: this.translateService.instant(this.textUnexpectedError)\n });\n }\n }\n\n private async updateInfo(): Promise<void> {\n const currentVersion = await this.deploy.getCurrentVersion();\n const configuration = await this.deploy.getConfiguration();\n const updateAvailableInfo = await this.deploy.checkForUpdate();\n\n if (currentVersion) {\n this.ctrlVersionNumber.setValue({\n value: configuration?.currentBuildId,\n });\n this.ctrlNextVersionNumber.setValue({\n value: updateAvailableInfo?.build\n });\n this.ctrlConfiguredChannel.setValue({\n value: configuration ? configuration.channel : null\n });\n this.ctrlAppStoreVersion.setValue({\n value: configuration ? configuration.binaryVersionName : null\n });\n\n {\n const scope = getCurrentScope();\n scope.setTag('version_binary_code', currentVersion?.binaryVersionCode);\n scope.setTag('version_binary_name', currentVersion?.binaryVersionName);\n scope.setTag('version_build_id', currentVersion?.buildId);\n scope.setTag('channel_type', currentVersion?.channel);\n scope.setTag('version_snapshot_id', currentVersion?.versionId);\n };\n\n this.changeDetector.markForCheck();\n this.applicationRef.tick();\n }\n }\n\n private changeStatus(status: {\n error?: string;\n text: string;\n closeScreen?: boolean;\n percentage: number;\n }) {\n this.updateStatus = status.text;\n this.percentage = status.percentage;\n if (status.closeScreen) {\n this.closeUpdateScreen();\n }\n if (status.error) {\n // this.appStore.dispatch(\n // sharedToasterActions.CREATE_ERROR({\n // messageText: status.error,\n // })\n // );\n }\n this.changeDetector.markForCheck();\n this.applicationRef.tick();\n }\n\n private closeUpdateScreen() {\n // Allowing some time to make a screenshot of version info\n SpxStorage.clearSetting<any>(SpxStorageKeyEnum.updateInProgress);\n setTimeout(() => {\n if (\n SpxStorage.getSetting<any>(SpxStorageKeyEnum.afterSignIn) &&\n this.spxIsSignedIn\n ) {\n this.router.navigate([SpxStorage.getSetting<any>(SpxStorageKeyEnum.afterSignIn)]);\n SpxStorage.clearSetting<any>(SpxStorageKeyEnum.afterSignIn)\n } else {\n this.router.navigate([this.spxHomeUrl]);\n }\n }, 0);\n }\n\n private startLoaderSync() {\n SpxStorage.setSetting<any>(SpxStorageKeyEnum.updateInProgress, '1');\n if (this.syncTruckInterval === null) {\n this.syncTruckInterval = setInterval(() => {\n this.delayedPercentage = this.percentage;\n }, 200);\n }\n }\n\n private stopLoaderSync() {\n if (this.syncTruckInterval !== null) {\n clearInterval(this.syncTruckInterval);\n this.syncTruckInterval = null;\n }\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAcA,MAAM,qBAAqB,GAAG,uBAAuB;AACrD,MAAM,iBAAiB,GAAG,mBAAmB;AAC7C,MAAM,qBAAqB,GAAG,uBAAuB;AACrD,MAAM,mBAAmB,GAAG,qBAAqB;MA6CpC,qBAAqB,CAAA;IAuBhC,WACmB,CAAA,MAAc,EACd,MAAc,EACd,cAAiC,EACjC,cAA8B,EAC9B,gBAAkC,EAClC,WAAwB,EAAA;QALxB,IAAM,CAAA,MAAA,GAAN,MAAM;QACN,IAAM,CAAA,MAAA,GAAN,MAAM;QACN,IAAc,CAAA,cAAA,GAAd,cAAc;QACd,IAAc,CAAA,cAAA,GAAd,cAAc;QACd,IAAgB,CAAA,gBAAA,GAAhB,gBAAgB;QAChB,IAAW,CAAA,WAAA,GAAX,WAAW;QAX9B,IAAiB,CAAA,iBAAA,GAAW,CAAC;QAC7B,IAAU,CAAA,UAAA,GAAW,CAAC;QACtB,IAAiB,CAAA,iBAAA,GAAe,IAAI;AACpC,QAAA,IAAA,CAAA,YA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AoB,EAAA,CAAA;sBAA5B;gBACQ,sBAAsB,EAAA,CAAA;sBAA9B;gBACQ,mBAAmB,EAAA,CAAA;sBAA3B;gBACQ,kBAAkB,EAAA,CAAA;sBAA1B;gBACQ,UAAU,EAAA,CAAA;sBAAlB;gBACQ,cAAc,EAAA,CAAA;sBAAtB;gBACQ,SAAS,EAAA,CAAA;sBAAjB;gBACQ,UAAU,EAAA,CAAA;sBAAlB;gBACQ,QAAQ,EAAA,CAAA;sBAAhB;;;AC5EH;;AAEG;;;;"}
1
+ {"version":3,"file":"softpak-components-spx-app-update.mjs","sources":["../../../../projects/softpak/components/spx-app-update/spx-app-update.component.ts","../../../../projects/softpak/components/spx-app-update/softpak-components-spx-app-update.ts"],"sourcesContent":["import { NgClass } from '@angular/common';\nimport { ApplicationRef, ChangeDetectorRef, Component, Input } from '@angular/core';\nimport { FormBuilder, FormControl, FormGroup, FormsModule, ReactiveFormsModule } from '@angular/forms';\nimport { TranslateModule, TranslateService } from '@ngx-translate/core';\nimport { SpxCapitalizePipe } from '@softpak/components/spx-capitalize';\nimport { SpxInputComponent } from '@softpak/components/spx-inputs';\nimport { SpxProgressBarComponent } from '@softpak/components/spx-progress-bar';\nimport { SpxStorage, SpxStorageKeyEnum } from '@softpak/components/spx-storage';\nimport { Device } from '@capacitor/device';\nimport { Deploy } from 'cordova-plugin-ionic/dist/ngx';\nimport { getCurrentScope } from '@sentry/angular';\nimport { IonContent, IonHeader, IonTitle, IonToolbar, NavController } from '@ionic/angular/standalone';\n\nconst ctrlNextVersionNumber = 'ctrlNextVersionNumber';\nconst ctrlVersionNumber = 'ctrlVersionNumber';\nconst ctrlConfiguredChannel = 'ctrlConfiguredChannel';\nconst ctrlAppStoreVersion = 'ctrlAppStoreVersion';\n\n@Component({\n selector: 'spx-app-update',\n imports: [\n FormsModule,\n IonHeader,\n IonToolbar,\n IonTitle,\n IonContent,\n ReactiveFormsModule,\n SpxCapitalizePipe,\n SpxInputComponent,\n SpxProgressBarComponent,\n TranslateModule\n ],\n template: `<ion-header>\n <ion-toolbar>\n <ion-title>\n {{ txtUpdate | translate | capitalize }}\n </ion-title>\n </ion-toolbar>\n </ion-header>\n \n <ion-content class=\"ion-content--upd\" [fullscreen]=\"true\">\n <div class=\"ion-padding\">\n <spx-progress-bar [spxPercentage]=\"delayedPercentage\" [spxTitle]=\"updateStatus | capitalize\">\n </spx-progress-bar>\n <form [formGroup]=\"form\" class=\"mt-3\">\n @if (ctrlAppStoreVersion.value && ctrlAppStoreVersion.value.value) {\n <div class=\"grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-3\">\n <spx-input [formControl]=\"ctrlAppStoreVersion\" [spxLabel]=\"txtAppStoreVersion | translate | capitalize\"\n [spxReadonly]=\"true\"></spx-input>\n <spx-input [formControl]=\"ctrlConfiguredChannel\" [spxLabel]=\"txtChannel | translate | capitalize\"\n [spxReadonly]=\"true\"></spx-input>\n <spx-input [formControl]=\"ctrlVersionNumber\" [spxLabel]=\"txtVersion | translate | capitalize\"\n [spxReadonly]=\"true\"></spx-input>\n @if (ctrlNextVersionNumber.value && ctrlNextVersionNumber.value.value) {\n <spx-input [formControl]=\"ctrlNextVersionNumber\" [spxLabel]=\"txtNextVersion | translate | capitalize\"\n [spxReadonly]=\"true\"></spx-input>\n }\n </div>\n }\n </form>\n </div>\n </ion-content>`\n})\nexport class SpxAppUpdateComponent {\n @Input() spxHomeUrl!: string;\n @Input() spxIsSignedIn!: boolean;\n @Input() textCheckingForUpdates!: string;\n @Input() textDownloadingUpdate!: string;\n @Input() textErrorWhileUpdatingApp!: string;\n @Input() textFinishedUpdating!: string;\n @Input() textNoUpdatesAvailable!: string;\n @Input() textUnexpectedError!: string;\n @Input() txtAppStoreVersion!: string;\n @Input() txtChannel!: string;\n @Input() txtNextVersion!: string;\n @Input() txtUpdate!: string;\n @Input() txtVersion!: string;\n @Input() spxAppId!: string;\n\n form: FormGroup;\n\n delayedPercentage: number = 0;\n percentage: number = 0;\n syncTruckInterval: any | null = null;\n updateStatus: string = this.textCheckingForUpdates;\n\n constructor(\n private readonly deploy: Deploy,\n private readonly changeDetector: ChangeDetectorRef,\n private readonly applicationRef: ApplicationRef,\n private readonly translateService: TranslateService,\n private readonly formBuilder: FormBuilder,\n private readonly navController: NavController,\n ) {\n this.form = this.formBuilder.group({\n [ctrlNextVersionNumber]: [null, []],\n [ctrlVersionNumber]: [null, []],\n [ctrlConfiguredChannel]: [null, []],\n [ctrlAppStoreVersion]: [null, []],\n });\n }\n\n get ctrlVersionNumber(): FormControl { return this.form.get(ctrlVersionNumber) as FormControl; }\n get ctrlNextVersionNumber(): FormControl { return this.form.get(ctrlNextVersionNumber) as FormControl; }\n get ctrlConfiguredChannel(): FormControl { return this.form.get(ctrlConfiguredChannel) as FormControl; }\n get ctrlAppStoreVersion(): FormControl { return this.form.get(ctrlAppStoreVersion) as FormControl; }\n\n init() {\n this.delayedPercentage = 0;\n this.percentage = 0;\n this.performAutomaticUpdate().then(() => { });\n this.startLoaderSync();\n this.changeStatus({\n percentage: 0,\n text: this.translateService.instant(this.textCheckingForUpdates),\n });\n }\n\n destroy() {\n this.stopLoaderSync();\n }\n\n async performAutomaticUpdate() {\n const deviceInfo = await Device.getInfo();\n\n if (deviceInfo?.platform === 'web') {\n // Local? Skip the update page.\n this.closeUpdateScreen();\n }\n try {\n this.updateInfo();\n\n // Start upgrade\n const currentVersion = await this.deploy.getCurrentVersion();\n if (currentVersion?.binaryVersionName) {\n const binaryGroup = currentVersion.binaryVersionName.substring(0, 3); // e.g. \"1.4\"\n const channelGroup = currentVersion.channel.split('-')[1].substring(0, 3); // e.g. \"1.4\"\n const channelType = currentVersion.channel.split('-')[0];\n\n if (binaryGroup != channelGroup) {\n await this.deploy.configure({\n appId: this.spxAppId,\n channel: `${channelType}-${binaryGroup}.x`\n }).then(() => {\n this.sync().then(() => { });\n });\n } else {\n this.sync().then(() => { });\n }\n } else {\n this.sync().then(() => { });\n }\n // End upgrade\n } catch (error: any) {\n this.changeStatus({\n closeScreen: true,\n error,\n percentage: 100,\n text: this.translateService.instant(this.textUnexpectedError)\n });\n }\n }\n\n private async sync() {\n try {\n this.updateInfo();\n\n const updateAvailableInfo = await this.deploy.checkForUpdate();\n if (!updateAvailableInfo.available) {\n // No update available\n this.changeStatus({\n closeScreen: true,\n percentage: 0,\n text: this.translateService.instant(this.textNoUpdatesAvailable),\n });\n } else {\n // Download update\n await this.deploy.sync({ updateMethod: 'auto' }, (percentage) => {\n this.changeStatus({\n percentage: percentage ?? 0,\n text: this.translateService.instant(this.textDownloadingUpdate, { percentage, version: updateAvailableInfo.build }),\n });\n }).catch((error) => {\n this.changeStatus({\n closeScreen: true,\n error,\n percentage: 100,\n text: this.translateService.instant(this.textErrorWhileUpdatingApp),\n });\n });\n\n this.changeStatus({\n closeScreen: true,\n percentage: 100,\n text: this.translateService.instant(this.textFinishedUpdating, { version: updateAvailableInfo.build })\n });\n }\n } catch (error: any) {\n // Catch unexpected plug-in errors\n this.changeStatus({\n closeScreen: true,\n error,\n percentage: 100,\n text: this.translateService.instant(this.textUnexpectedError)\n });\n }\n }\n\n private async updateInfo(): Promise<void> {\n const currentVersion = await this.deploy.getCurrentVersion();\n const configuration = await this.deploy.getConfiguration();\n const updateAvailableInfo = await this.deploy.checkForUpdate();\n\n if (currentVersion) {\n this.ctrlVersionNumber.setValue({\n value: configuration?.currentBuildId,\n });\n this.ctrlNextVersionNumber.setValue({\n value: updateAvailableInfo?.build\n });\n this.ctrlConfiguredChannel.setValue({\n value: configuration ? configuration.channel : null\n });\n this.ctrlAppStoreVersion.setValue({\n value: configuration ? configuration.binaryVersionName : null\n });\n\n {\n const scope = getCurrentScope();\n scope.setTag('version_binary_code', currentVersion?.binaryVersionCode);\n scope.setTag('version_binary_name', currentVersion?.binaryVersionName);\n scope.setTag('version_build_id', currentVersion?.buildId);\n scope.setTag('channel_type', currentVersion?.channel);\n scope.setTag('version_snapshot_id', currentVersion?.versionId);\n };\n\n this.changeDetector.markForCheck();\n this.applicationRef.tick();\n }\n }\n\n private changeStatus(status: {\n error?: string;\n text: string;\n closeScreen?: boolean;\n percentage: number;\n }) {\n this.updateStatus = status.text;\n this.percentage = status.percentage;\n if (status.closeScreen) {\n this.closeUpdateScreen();\n }\n if (status.error) {\n // this.appStore.dispatch(\n // sharedToasterActions.CREATE_ERROR({\n // messageText: status.error,\n // })\n // );\n }\n this.changeDetector.markForCheck();\n this.applicationRef.tick();\n }\n\n private closeUpdateScreen() {\n // Allowing some time to make a screenshot of version info\n SpxStorage.clearSetting<any>(SpxStorageKeyEnum.updateInProgress);\n setTimeout(() => {\n if (\n SpxStorage.getSetting<any>(SpxStorageKeyEnum.afterSignIn) &&\n this.spxIsSignedIn\n ) {\n this.navController.navigateRoot([SpxStorage.getSetting<any>(SpxStorageKeyEnum.afterSignIn)]);\n SpxStorage.clearSetting<any>(SpxStorageKeyEnum.afterSignIn)\n } else {\n this.navController.navigateRoot([this.spxHomeUrl]);\n }\n }, 0);\n }\n\n private startLoaderSync() {\n SpxStorage.setSetting<any>(SpxStorageKeyEnum.updateInProgress, '1');\n if (this.syncTruckInterval === null) {\n this.syncTruckInterval = setInterval(() => {\n this.delayedPercentage = this.percentage;\n }, 200);\n }\n }\n\n private stopLoaderSync() {\n if (this.syncTruckInterval !== null) {\n clearInterval(this.syncTruckInterval);\n this.syncTruckInterval = null;\n }\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAaA,MAAM,qBAAqB,GAAG,uBAAuB;AACrD,MAAM,iBAAiB,GAAG,mBAAmB;AAC7C,MAAM,qBAAqB,GAAG,uBAAuB;AACrD,MAAM,mBAAmB,GAAG,qBAAqB;MA+CpC,qBAAqB,CAAA;IAuBhC,WACmB,CAAA,MAAc,EACd,cAAiC,EACjC,cAA8B,EAC9B,gBAAkC,EAClC,WAAwB,EACxB,aAA4B,EAAA;QAL5B,IAAM,CAAA,MAAA,GAAN,MAAM;QACN,IAA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AA,IAAA,EAAA,CAAA;AACP,oBAAA,QAAQ,EAAE,gBAAgB;AAC1B,oBAAA,OAAO,EAAE;wBACL,WAAW;wBACX,SAAS;wBACT,UAAU;wBACV,QAAQ;wBACR,UAAU;wBACV,mBAAmB;wBACnB,iBAAiB;wBACjB,iBAAiB;wBACjB,uBAAuB;wBACvB;AACH,qBAAA;AACD,oBAAA,QAAQ,EAAE,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6BG,gBAAA;AAChB,iBAAA;6NAEU,UAAU,EAAA,CAAA;sBAAlB;gBACQ,aAAa,EAAA,CAAA;sBAArB;gBACQ,sBAAsB,EAAA,CAAA;sBAA9B;gBACQ,qBAAqB,EAAA,CAAA;sBAA7B;gBACQ,yBAAyB,EAAA,CAAA;sBAAjC;gBACQ,oBAAoB,EAAA,CAAA;sBAA5B;gBACQ,sBAAsB,EAAA,CAAA;sBAA9B;gBACQ,mBAAmB,EAAA,CAAA;sBAA3B;gBACQ,kBAAkB,EAAA,CAAA;sBAA1B;gBACQ,UAAU,EAAA,CAAA;sBAAlB;gBACQ,cAAc,EAAA,CAAA;sBAAtB;gBACQ,SAAS,EAAA,CAAA;sBAAjB;gBACQ,UAAU,EAAA,CAAA;sBAAlB;gBACQ,QAAQ,EAAA,CAAA;sBAAhB;;;AC7EH;;AAEG;;;;"}
@@ -30,8 +30,8 @@ class SpxButtonComponent {
30
30
  console.log(this.buttonRef);
31
31
  this.buttonRef?.nativeElement?.focus();
32
32
  }
33
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0", ngImport: i0, type: SpxButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
34
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.0", type: SpxButtonComponent, isStandalone: true, selector: "spx-button", inputs: { spxDisabled: "spxDisabled", spxClass: "spxClass", spxClassObject: "spxClassObject", spxForm: "spxForm", spxFullHeight: "spxFullHeight", spxFullWidth: "spxFullWidth", spxSeverity: "spxSeverity", spxSize: "spxSize", spxTabIndex: "spxTabIndex", spxType: "spxType" }, outputs: { spxClick: "spxClick" }, host: { properties: { "class.block": "this.hostClassBlock", "class.h-full": "this.hostClassHFull", "class.w-full": "this.hostClassWFull" } }, viewQueries: [{ propertyName: "buttonRef", first: true, predicate: ["buttonRef"], descendants: true, static: true }], ngImport: i0, template: `
33
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: SpxButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
34
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.5", type: SpxButtonComponent, isStandalone: true, selector: "spx-button", inputs: { spxDisabled: "spxDisabled", spxClass: "spxClass", spxClassObject: "spxClassObject", spxForm: "spxForm", spxFullHeight: "spxFullHeight", spxFullWidth: "spxFullWidth", spxSeverity: "spxSeverity", spxSize: "spxSize", spxTabIndex: "spxTabIndex", spxType: "spxType" }, outputs: { spxClick: "spxClick" }, host: { properties: { "class.block": "this.hostClassBlock", "class.h-full": "this.hostClassHFull", "class.w-full": "this.hostClassWFull" } }, viewQueries: [{ propertyName: "buttonRef", first: true, predicate: ["buttonRef"], descendants: true, static: true }], ngImport: i0, template: `
35
35
  <button
36
36
  #buttonRef
37
37
  class="border border-transparent font-bold px-4 relative rounded text-center text-white focus:outline-none focus:ring-2 focus:ring-offset-2 bg-gradient-to-r"
@@ -64,7 +64,7 @@ class SpxButtonComponent {
64
64
  (click)="this.handleClick()"
65
65
  part="button"><ng-content></ng-content></button>`, isInline: true, dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] }); }
66
66
  }
67
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0", ngImport: i0, type: SpxButtonComponent, decorators: [{
67
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: SpxButtonComponent, decorators: [{
68
68
  type: Component,
69
69
  args: [{
70
70
  selector: 'spx-button',
@@ -8,10 +8,10 @@ class SpxCapitalizePipe {
8
8
  static transform(value, ..._args) {
9
9
  return new SpxCapitalizePipe().transform(value, _args);
10
10
  }
11
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0", ngImport: i0, type: SpxCapitalizePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
12
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.0.0", ngImport: i0, type: SpxCapitalizePipe, isStandalone: true, name: "capitalize" }); }
11
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: SpxCapitalizePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
12
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.0.5", ngImport: i0, type: SpxCapitalizePipe, isStandalone: true, name: "capitalize" }); }
13
13
  }
14
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0", ngImport: i0, type: SpxCapitalizePipe, decorators: [{
14
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: SpxCapitalizePipe, decorators: [{
15
15
  type: Pipe,
16
16
  args: [{
17
17
  name: 'capitalize',
@@ -1,4 +1,4 @@
1
- import { NgIf, NgClass } from '@angular/common';
1
+ import { NgClass } from '@angular/common';
2
2
  import * as i0 from '@angular/core';
3
3
  import { EventEmitter, Component, Input, Output, HostBinding } from '@angular/core';
4
4
  import * as i1 from '@fortawesome/angular-fontawesome';
@@ -19,64 +19,67 @@ class SpxCardComponent {
19
19
  onClick() {
20
20
  this.clicked.emit();
21
21
  }
22
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0", ngImport: i0, type: SpxCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
23
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.0", type: SpxCardComponent, isStandalone: true, selector: "spx-card", inputs: { clickable: "clickable", hasContent: "hasContent", onDetailPage: "onDetailPage", text: "text", unit: "unit", tableView: "tableView" }, outputs: { clicked: "clicked" }, ngImport: i0, template: `
22
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: SpxCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
23
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.5", type: SpxCardComponent, isStandalone: true, selector: "spx-card", inputs: { clickable: "clickable", hasContent: "hasContent", onDetailPage: "onDetailPage", text: "text", unit: "unit", tableView: "tableView" }, outputs: { clicked: "clicked" }, ngImport: i0, template: `
24
24
  <button type="button"
25
- class="block w-full text-left rounded font-body items-stretch"
26
- [class.flex]="tableView"
27
- [class.cursor-pointer]="clickable"
28
- [class.cursor-not-allowed]="!clickable"
29
- [class.focus:ring-2]="clickable"
30
- [class.focus:ring-offset-2]="clickable"
31
- [class.focus:ring-blue-500]="clickable"
32
- (click)="onClick()"
33
- [tabIndex]="clickable ? 0 : -1">
34
- <div class="text-gray-900 opacity-90" [class.w-96]="tableView">
35
- <ng-content select="[card-header]"></ng-content>
36
- </div>
37
- <ng-content select="[card-content-top]"></ng-content>
38
- <div *ngIf="hasContent" class="bg-white dark:bg-gray-600 p-3">
39
- <ng-content select="[card-content]"></ng-content>
40
- </div>
41
- <ng-content select="[card-content-bottom]"></ng-content>
42
- <div class="bg-gray-50 dark:bg-gray-700 p-3 grow" [class.rounded-b-lg]="!onDetailPage && !tableView" [class.rounded-r-lg]="!onDetailPage && tableView">
43
- <ng-content select="[card-lines]"></ng-content>
44
- </div>
45
- </button>
46
- `, isInline: true, dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); }
25
+ class="block w-full text-left rounded font-body items-stretch"
26
+ [class.flex]="tableView"
27
+ [class.cursor-pointer]="clickable"
28
+ [class.cursor-not-allowed]="!clickable"
29
+ [class.focus:ring-2]="clickable"
30
+ [class.focus:ring-offset-2]="clickable"
31
+ [class.focus:ring-blue-500]="clickable"
32
+ (click)="onClick()"
33
+ [tabIndex]="clickable ? 0 : -1">
34
+ <div class="text-gray-900 opacity-90" [class.w-96]="tableView">
35
+ <ng-content select="[card-header]"></ng-content>
36
+ </div>
37
+ <ng-content select="[card-content-top]"></ng-content>
38
+ @if (hasContent) {
39
+ <div class="bg-white dark:bg-gray-600 p-3">
40
+ <ng-content select="[card-content]"></ng-content>
41
+ </div>
42
+ }
43
+ <ng-content select="[card-content-bottom]"></ng-content>
44
+ <div class="bg-gray-50 dark:bg-gray-700 p-3 grow" [class.rounded-b-lg]="!onDetailPage && !tableView" [class.rounded-r-lg]="!onDetailPage && tableView">
45
+ <ng-content select="[card-lines]"></ng-content>
46
+ </div>
47
+ </button>
48
+ `, isInline: true }); }
47
49
  }
48
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0", ngImport: i0, type: SpxCardComponent, decorators: [{
50
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: SpxCardComponent, decorators: [{
49
51
  type: Component,
50
52
  args: [{
51
53
  selector: 'spx-card',
52
54
  imports: [
53
- NgClass,
54
- NgIf,
55
+ NgClass
55
56
  ],
56
57
  template: `
57
58
  <button type="button"
58
- class="block w-full text-left rounded font-body items-stretch"
59
- [class.flex]="tableView"
60
- [class.cursor-pointer]="clickable"
61
- [class.cursor-not-allowed]="!clickable"
62
- [class.focus:ring-2]="clickable"
63
- [class.focus:ring-offset-2]="clickable"
64
- [class.focus:ring-blue-500]="clickable"
65
- (click)="onClick()"
66
- [tabIndex]="clickable ? 0 : -1">
67
- <div class="text-gray-900 opacity-90" [class.w-96]="tableView">
68
- <ng-content select="[card-header]"></ng-content>
69
- </div>
70
- <ng-content select="[card-content-top]"></ng-content>
71
- <div *ngIf="hasContent" class="bg-white dark:bg-gray-600 p-3">
72
- <ng-content select="[card-content]"></ng-content>
73
- </div>
74
- <ng-content select="[card-content-bottom]"></ng-content>
75
- <div class="bg-gray-50 dark:bg-gray-700 p-3 grow" [class.rounded-b-lg]="!onDetailPage && !tableView" [class.rounded-r-lg]="!onDetailPage && tableView">
76
- <ng-content select="[card-lines]"></ng-content>
77
- </div>
78
- </button>
79
- `
59
+ class="block w-full text-left rounded font-body items-stretch"
60
+ [class.flex]="tableView"
61
+ [class.cursor-pointer]="clickable"
62
+ [class.cursor-not-allowed]="!clickable"
63
+ [class.focus:ring-2]="clickable"
64
+ [class.focus:ring-offset-2]="clickable"
65
+ [class.focus:ring-blue-500]="clickable"
66
+ (click)="onClick()"
67
+ [tabIndex]="clickable ? 0 : -1">
68
+ <div class="text-gray-900 opacity-90" [class.w-96]="tableView">
69
+ <ng-content select="[card-header]"></ng-content>
70
+ </div>
71
+ <ng-content select="[card-content-top]"></ng-content>
72
+ @if (hasContent) {
73
+ <div class="bg-white dark:bg-gray-600 p-3">
74
+ <ng-content select="[card-content]"></ng-content>
75
+ </div>
76
+ }
77
+ <ng-content select="[card-content-bottom]"></ng-content>
78
+ <div class="bg-gray-50 dark:bg-gray-700 p-3 grow" [class.rounded-b-lg]="!onDetailPage && !tableView" [class.rounded-r-lg]="!onDetailPage && tableView">
79
+ <ng-content select="[card-lines]"></ng-content>
80
+ </div>
81
+ </button>
82
+ `
80
83
  }]
81
84
  }], ctorParameters: () => [], propDecorators: { clickable: [{
82
85
  type: Input
@@ -109,8 +112,8 @@ class SpxCardItemComponent {
109
112
  get spxIconSeveritySuccess() { return this.spxIconSeverity === SpxSeverityEnum.success; }
110
113
  get spxIconSeverityUnknown() { return this.spxIconSeverity === SpxSeverityEnum.unknown; }
111
114
  get spxIconSeverityWarning() { return this.spxIconSeverity === SpxSeverityEnum.warning; }
112
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0", ngImport: i0, type: SpxCardItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
113
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.0", type: SpxCardItemComponent, isStandalone: true, selector: "spx-card-item", inputs: { icon: "icon", iconOnly: "iconOnly", spxLabel: "spxLabel", spxValue: "spxValue", spxSeverity: "spxSeverity", spxIconSeverity: "spxIconSeverity" }, host: { properties: { "class.h-full": "this.hFull" } }, ngImport: i0, template: `
115
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: SpxCardItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
116
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.5", type: SpxCardItemComponent, isStandalone: true, selector: "spx-card-item", inputs: { icon: "icon", iconOnly: "iconOnly", spxLabel: "spxLabel", spxValue: "spxValue", spxSeverity: "spxSeverity", spxIconSeverity: "spxIconSeverity" }, host: { properties: { "class.h-full": "this.hFull" } }, ngImport: i0, template: `
114
117
  <div class='py-2 px-3 rounded h-full'
115
118
  [class.bg-slate-100]="!spxSeverity"
116
119
  [class.dark:bg-slate-600]="!spxSeverity"
@@ -119,36 +122,39 @@ class SpxCardItemComponent {
119
122
  [class.bg-red-700]="spxSeverityError"
120
123
  [class.bg-green-700]="spxSeveritySuccess"
121
124
  [class.bg-blue-700]="spxSeverityInfo"
122
- [class.bg-grey-700]="spxSeverityUnknown"
125
+ [class.bg-gray-400]="spxSeverityUnknown"
123
126
  [class.bg-amber-700]="spxSeverityWarning">
124
127
  <div class="font-small leading-normal">{{ spxLabel }}</div>
125
128
  <div class="flex gap-4 text-lg leading-normal py-1">
126
- <div *ngIf="icon" class="font-bold text-center leading-normal w-10 max-w-10 min-w-10" [class.grow]="iconOnly">
127
- <div
128
- class="px-3 py-1 text-white rounded"
129
- [class.bg-black]="!spxIconSeverity"
130
- [class.bg-red-700]="spxIconSeverityError"
131
- [class.bg-green-700]="spxIconSeveritySuccess"
132
- [class.bg-blue-700]="spxIconSeverityInfo"
133
- [class.bg-grey-700]="spxIconSeverityUnknown"
134
- [class.bg-amber-700]="spxIconSeverityWarning">
135
- <fa-icon [icon]="icon"></fa-icon>
129
+ @if (icon) {
130
+ <div class="font-bold text-center leading-normal max-w-12 min-w-12" [class.grow]="iconOnly">
131
+ <div
132
+ class="px-3 py-1 text-white rounded"
133
+ [class.bg-black]="!spxIconSeverity"
134
+ [class.bg-red-700]="spxIconSeverityError"
135
+ [class.bg-green-700]="spxIconSeveritySuccess"
136
+ [class.bg-blue-700]="spxIconSeverityInfo"
137
+ [class.bg-gray-400]="spxIconSeverityUnknown"
138
+ [class.bg-amber-700]="spxIconSeverityWarning">
139
+ <fa-icon [icon]="icon"></fa-icon>
140
+ </div>
136
141
  </div>
137
- </div>
142
+ }
138
143
  <div class="grow font-bold">
139
- <ng-container *ngIf="!iconOnly"><ng-content></ng-content><div [innerHTML]="spxValue"></div></ng-container>
144
+ @if (!iconOnly) {
145
+ <ng-content></ng-content><div [innerHTML]="spxValue"></div>
146
+ }
140
147
  </div>
141
148
  </div>
142
149
  </div>
143
- `, isInline: true, dependencies: [{ kind: "component", type: FaIconComponent, selector: "fa-icon", inputs: ["icon", "title", "animation", "mask", "flip", "size", "pull", "border", "inverse", "symbol", "rotate", "fixedWidth", "transform", "a11yRole"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); }
150
+ `, isInline: true, dependencies: [{ kind: "component", type: FaIconComponent, selector: "fa-icon", inputs: ["icon", "title", "animation", "mask", "flip", "size", "pull", "border", "inverse", "symbol", "rotate", "fixedWidth", "transform", "a11yRole"] }] }); }
144
151
  }
145
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0", ngImport: i0, type: SpxCardItemComponent, decorators: [{
152
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: SpxCardItemComponent, decorators: [{
146
153
  type: Component,
147
154
  args: [{
148
155
  selector: 'spx-card-item',
149
156
  imports: [
150
- FaIconComponent,
151
- NgIf,
157
+ FaIconComponent
152
158
  ],
153
159
  template: `
154
160
  <div class='py-2 px-3 rounded h-full'
@@ -159,28 +165,32 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0", ngImpor
159
165
  [class.bg-red-700]="spxSeverityError"
160
166
  [class.bg-green-700]="spxSeveritySuccess"
161
167
  [class.bg-blue-700]="spxSeverityInfo"
162
- [class.bg-grey-700]="spxSeverityUnknown"
168
+ [class.bg-gray-400]="spxSeverityUnknown"
163
169
  [class.bg-amber-700]="spxSeverityWarning">
164
170
  <div class="font-small leading-normal">{{ spxLabel }}</div>
165
171
  <div class="flex gap-4 text-lg leading-normal py-1">
166
- <div *ngIf="icon" class="font-bold text-center leading-normal w-10 max-w-10 min-w-10" [class.grow]="iconOnly">
167
- <div
168
- class="px-3 py-1 text-white rounded"
169
- [class.bg-black]="!spxIconSeverity"
170
- [class.bg-red-700]="spxIconSeverityError"
171
- [class.bg-green-700]="spxIconSeveritySuccess"
172
- [class.bg-blue-700]="spxIconSeverityInfo"
173
- [class.bg-grey-700]="spxIconSeverityUnknown"
174
- [class.bg-amber-700]="spxIconSeverityWarning">
175
- <fa-icon [icon]="icon"></fa-icon>
172
+ @if (icon) {
173
+ <div class="font-bold text-center leading-normal max-w-12 min-w-12" [class.grow]="iconOnly">
174
+ <div
175
+ class="px-3 py-1 text-white rounded"
176
+ [class.bg-black]="!spxIconSeverity"
177
+ [class.bg-red-700]="spxIconSeverityError"
178
+ [class.bg-green-700]="spxIconSeveritySuccess"
179
+ [class.bg-blue-700]="spxIconSeverityInfo"
180
+ [class.bg-gray-400]="spxIconSeverityUnknown"
181
+ [class.bg-amber-700]="spxIconSeverityWarning">
182
+ <fa-icon [icon]="icon"></fa-icon>
183
+ </div>
176
184
  </div>
177
- </div>
185
+ }
178
186
  <div class="grow font-bold">
179
- <ng-container *ngIf="!iconOnly"><ng-content></ng-content><div [innerHTML]="spxValue"></div></ng-container>
187
+ @if (!iconOnly) {
188
+ <ng-content></ng-content><div [innerHTML]="spxValue"></div>
189
+ }
180
190
  </div>
181
191
  </div>
182
192
  </div>
183
- `
193
+ `
184
194
  }]
185
195
  }], propDecorators: { hFull: [{
186
196
  type: HostBinding,
@@ -203,8 +213,8 @@ class SpxCardGridComponent {
203
213
  constructor() {
204
214
  this.minWidth2Columns = 460;
205
215
  }
206
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0", ngImport: i0, type: SpxCardGridComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
207
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.0", type: SpxCardGridComponent, isStandalone: true, selector: "spx-card-grid", inputs: { minWidth2Columns: "minWidth2Columns" }, ngImport: i0, template: `
216
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: SpxCardGridComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
217
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.5", type: SpxCardGridComponent, isStandalone: true, selector: "spx-card-grid", inputs: { minWidth2Columns: "minWidth2Columns" }, ngImport: i0, template: `
208
218
  <div class='grid gap-3 items-stretch'
209
219
  [class.min-[300px]:grid-cols-2]="minWidth2Columns == 300"
210
220
  [class.min-[320px]:grid-cols-2]="minWidth2Columns == 320"
@@ -219,7 +229,7 @@ class SpxCardGridComponent {
219
229
  </div>
220
230
  `, isInline: true }); }
221
231
  }
222
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0", ngImport: i0, type: SpxCardGridComponent, decorators: [{
232
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: SpxCardGridComponent, decorators: [{
223
233
  type: Component,
224
234
  args: [{
225
235
  selector: 'spx-card-grid',
@@ -254,69 +264,92 @@ class SpxCardLineComponent {
254
264
  displayValue(val) {
255
265
  return val || val === 0 ? val : '—';
256
266
  }
257
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0", ngImport: i0, type: SpxCardLineComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
258
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.0", type: SpxCardLineComponent, isStandalone: true, selector: "spx-card-line", inputs: { icon: "icon", showPositiveOrNegative: "showPositiveOrNegative", text: "text", value: "value", secondValue: "secondValue", showProgress: "showProgress", unit: "unit", newOrderScreen: "newOrderScreen" }, ngImport: i0, template: `
267
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: SpxCardLineComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
268
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.5", type: SpxCardLineComponent, isStandalone: true, selector: "spx-card-line", inputs: { icon: "icon", showPositiveOrNegative: "showPositiveOrNegative", text: "text", value: "value", secondValue: "secondValue", showProgress: "showProgress", unit: "unit", newOrderScreen: "newOrderScreen" }, ngImport: i0, template: `
259
269
  <div class="items-center" [class.flex]="!newOrderScreen">
260
270
  <div class="block w-24 text-gray-600 dark:text-gray-200 text-xs mb-1" [class.pt-1]="!newOrderScreen" [innerHTML]="text"></div>
261
271
  <div class="flex">
262
- <fa-icon *ngIf="icon" [icon]="icon" class="text-lg mr-3 w-6 text-center"></fa-icon>
263
- <div *ngIf="showPositiveOrNegative && numericValue < 0" class="rounded-full w-4 h-4 mr-2 bg-sky-600">&nbsp;</div>
264
- <span *ngIf="!showProgress" class="block font-medium grow whitespace-pre-line leading-5">
265
- <span [innerHTML]="displayValue(value)"></span>
266
- <ng-content></ng-content>
267
- <span *ngIf="unit"> {{ unit }}</span>
268
- <ng-container *ngIf="!unit && secondValue !== null && secondValue !== undefined"> / {{ displayValue(secondValue) }}</ng-container>
269
- </span>
272
+ @if (icon) {
273
+ <fa-icon [icon]="icon" class="text-lg mr-3 w-6 text-center"></fa-icon>
274
+ }
275
+ @if (showPositiveOrNegative && numericValue < 0) {
276
+ <div class="rounded-full w-4 h-4 mr-2 bg-sky-600">&nbsp;</div>
277
+ }
278
+ @if (!showProgress) {
279
+ <span class="block font-medium grow whitespace-pre-line leading-5">
280
+ <span [innerHTML]="displayValue(value)"></span>
281
+ <ng-content></ng-content>
282
+ @if (unit) {
283
+ <span> {{ unit }}</span>
284
+ }
285
+ @if (!unit && secondValue !== null && secondValue !== undefined) {
286
+ / {{ displayValue(secondValue) }}
287
+ }
288
+ </span>
289
+ }
270
290
  </div>
271
- <div *ngIf="showProgress" class="block font-medium grow whitespace-pre-line text-gray-600 dark:text-gray-200">
272
- <div class="flex">
273
- <div class="flex grow gap-2">
274
- <div class="bg-gray-200 my-0.5 h-5 w-full rounded">
275
- <div class="bg-teal-600 h-5 rounded" [style.width]="((+value) / (secondValue ? +secondValue : 0)) * 100 + '%'"></div>
291
+ @if (showProgress) {
292
+ <div class="block font-medium grow whitespace-pre-line text-gray-600 dark:text-gray-200">
293
+ <div class="flex">
294
+ <div class="flex grow gap-2">
295
+ <div class="bg-gray-200 my-0.5 h-5 w-full rounded">
296
+ <div class="bg-teal-600 h-5 rounded" [style.width]="((+value) / (secondValue ? +secondValue : 0)) * 100 + '%'"></div>
297
+ </div>
298
+ </div>
299
+ <div class="flex text-left pl-3 gap-2">
300
+ <div class="block w-16 text-right">{{ value }} / {{ secondValue }}</div>
276
301
  </div>
277
- </div>
278
- <div class="flex text-left pl-3 gap-2">
279
- <div class="block w-16 text-right">{{ value }} / {{ secondValue }}</div>
280
302
  </div>
281
303
  </div>
282
- </div>
304
+ }
283
305
  </div>
284
- `, isInline: true, dependencies: [{ kind: "ngmodule", type: FontAwesomeModule }, { kind: "component", type: i1.FaIconComponent, selector: "fa-icon", inputs: ["icon", "title", "animation", "mask", "flip", "size", "pull", "border", "inverse", "symbol", "rotate", "fixedWidth", "transform", "a11yRole"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); }
306
+ `, isInline: true, dependencies: [{ kind: "ngmodule", type: FontAwesomeModule }, { kind: "component", type: i1.FaIconComponent, selector: "fa-icon", inputs: ["icon", "title", "animation", "mask", "flip", "size", "pull", "border", "inverse", "symbol", "rotate", "fixedWidth", "transform", "a11yRole"] }] }); }
285
307
  }
286
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0", ngImport: i0, type: SpxCardLineComponent, decorators: [{
308
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: SpxCardLineComponent, decorators: [{
287
309
  type: Component,
288
310
  args: [{
289
311
  selector: 'spx-card-line',
290
312
  imports: [
291
313
  FontAwesomeModule,
292
- NgClass,
293
- NgIf,
314
+ NgClass
294
315
  ],
295
316
  template: `
296
317
  <div class="items-center" [class.flex]="!newOrderScreen">
297
318
  <div class="block w-24 text-gray-600 dark:text-gray-200 text-xs mb-1" [class.pt-1]="!newOrderScreen" [innerHTML]="text"></div>
298
319
  <div class="flex">
299
- <fa-icon *ngIf="icon" [icon]="icon" class="text-lg mr-3 w-6 text-center"></fa-icon>
300
- <div *ngIf="showPositiveOrNegative && numericValue < 0" class="rounded-full w-4 h-4 mr-2 bg-sky-600">&nbsp;</div>
301
- <span *ngIf="!showProgress" class="block font-medium grow whitespace-pre-line leading-5">
302
- <span [innerHTML]="displayValue(value)"></span>
303
- <ng-content></ng-content>
304
- <span *ngIf="unit"> {{ unit }}</span>
305
- <ng-container *ngIf="!unit && secondValue !== null && secondValue !== undefined"> / {{ displayValue(secondValue) }}</ng-container>
306
- </span>
320
+ @if (icon) {
321
+ <fa-icon [icon]="icon" class="text-lg mr-3 w-6 text-center"></fa-icon>
322
+ }
323
+ @if (showPositiveOrNegative && numericValue < 0) {
324
+ <div class="rounded-full w-4 h-4 mr-2 bg-sky-600">&nbsp;</div>
325
+ }
326
+ @if (!showProgress) {
327
+ <span class="block font-medium grow whitespace-pre-line leading-5">
328
+ <span [innerHTML]="displayValue(value)"></span>
329
+ <ng-content></ng-content>
330
+ @if (unit) {
331
+ <span> {{ unit }}</span>
332
+ }
333
+ @if (!unit && secondValue !== null && secondValue !== undefined) {
334
+ / {{ displayValue(secondValue) }}
335
+ }
336
+ </span>
337
+ }
307
338
  </div>
308
- <div *ngIf="showProgress" class="block font-medium grow whitespace-pre-line text-gray-600 dark:text-gray-200">
309
- <div class="flex">
310
- <div class="flex grow gap-2">
311
- <div class="bg-gray-200 my-0.5 h-5 w-full rounded">
312
- <div class="bg-teal-600 h-5 rounded" [style.width]="((+value) / (secondValue ? +secondValue : 0)) * 100 + '%'"></div>
339
+ @if (showProgress) {
340
+ <div class="block font-medium grow whitespace-pre-line text-gray-600 dark:text-gray-200">
341
+ <div class="flex">
342
+ <div class="flex grow gap-2">
343
+ <div class="bg-gray-200 my-0.5 h-5 w-full rounded">
344
+ <div class="bg-teal-600 h-5 rounded" [style.width]="((+value) / (secondValue ? +secondValue : 0)) * 100 + '%'"></div>
345
+ </div>
346
+ </div>
347
+ <div class="flex text-left pl-3 gap-2">
348
+ <div class="block w-16 text-right">{{ value }} / {{ secondValue }}</div>
313
349
  </div>
314
- </div>
315
- <div class="flex text-left pl-3 gap-2">
316
- <div class="block w-16 text-right">{{ value }} / {{ secondValue }}</div>
317
350
  </div>
318
351
  </div>
319
- </div>
352
+ }
320
353
  </div>
321
354
  `
322
355
  }]