@softpak/components 18.6.9 → 18.6.10
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/README.md +24 -24
- package/esm2022/spx-alert/public-api.mjs +1 -1
- package/esm2022/spx-alert/spx-alert.component.mjs +115 -115
- package/esm2022/spx-alert/spx-alert.interface.mjs +1 -1
- package/esm2022/spx-app-configuration/public-api.mjs +1 -1
- package/esm2022/spx-app-configuration/spx-app-alert.interface.mjs +1 -1
- package/esm2022/spx-app-configuration/spx-app-bundle-set.interface.mjs +1 -1
- package/esm2022/spx-app-configuration/spx-app-channel-type.enum.mjs +1 -1
- package/esm2022/spx-app-configuration/spx-app-channel.interface.mjs +1 -1
- package/esm2022/spx-app-configuration/spx-app-config.interface.mjs +1 -1
- package/esm2022/spx-app-configuration/spx-app-id.enum.mjs +1 -1
- package/esm2022/spx-app-configuration/spx-app-lang.enum.mjs +1 -1
- package/esm2022/spx-app-configuration/spx-app-release-note.interface.mjs +1 -1
- package/esm2022/spx-app-expiry/public-api.mjs +1 -1
- package/esm2022/spx-app-expiry/spx-app-expiry.component.mjs +57 -57
- package/esm2022/spx-app-expiry/spx-app-expiry.interface.mjs +1 -1
- package/esm2022/spx-app-expiry/spx-check-expiry-final-warning.interface.mjs +1 -1
- package/esm2022/spx-app-expiry/spx-check-expiry-happened.interface.mjs +1 -1
- package/esm2022/spx-app-expiry/spx-check-expiry-warning.interface.mjs +1 -1
- package/esm2022/spx-app-update/public-api.mjs +1 -1
- package/esm2022/spx-app-update/spx-app-update.component.mjs +59 -59
- package/esm2022/spx-button/public-api.mjs +1 -1
- package/esm2022/spx-button/spx-button.component.mjs +63 -63
- package/esm2022/spx-capitalize/public-api.mjs +1 -1
- package/esm2022/spx-capitalize/spx-capitalize.pipe.mjs +1 -1
- package/esm2022/spx-card/public-api.mjs +1 -1
- package/esm2022/spx-card/spx-card-grid.component.mjs +27 -27
- package/esm2022/spx-card/spx-card-item.component.mjs +69 -69
- package/esm2022/spx-card/spx-card-line.component.mjs +77 -77
- package/esm2022/spx-card/spx-card.component.mjs +51 -51
- package/esm2022/spx-change-details/public-api.mjs +1 -1
- package/esm2022/spx-change-details/spx-change-details-value.interface.mjs +1 -1
- package/esm2022/spx-change-details/spx-change-details.component.mjs +3 -3
- package/esm2022/spx-channel-selection/public-api.mjs +1 -1
- package/esm2022/spx-channel-selection/src/spx-channel-indicator.component.mjs +13 -13
- package/esm2022/spx-channel-selection/src/spx-welcome.component.mjs +13 -13
- package/esm2022/spx-check-digit/public-api.mjs +1 -1
- package/esm2022/spx-check-digit/spx-check-digit.component.mjs +3 -3
- package/esm2022/spx-form-section/public-api.mjs +1 -1
- package/esm2022/spx-form-section/spx-form-section.component.mjs +21 -21
- package/esm2022/spx-form-view/public-api.mjs +1 -1
- package/esm2022/spx-form-view/spx-autocomplete-search.component.mjs +3 -3
- package/esm2022/spx-form-view/spx-form-button-type.enum.mjs +1 -1
- package/esm2022/spx-form-view/spx-form-button.interface.mjs +1 -1
- package/esm2022/spx-form-view/spx-form-field.interface.mjs +1 -1
- package/esm2022/spx-form-view/spx-form-section.interface.mjs +1 -1
- package/esm2022/spx-form-view/spx-form-view.component.mjs +163 -163
- package/esm2022/spx-form-view/spx-form.interface.mjs +1 -1
- package/esm2022/spx-helpers/calc-check-digit.function.mjs +1 -1
- package/esm2022/spx-helpers/public-api.mjs +1 -1
- package/esm2022/spx-helpers/spx-severity.enum.mjs +1 -1
- package/esm2022/spx-helpers/value-pair-to-value.function.mjs +1 -1
- package/esm2022/spx-inputs/public-api.mjs +1 -1
- package/esm2022/spx-inputs/spx-dropdown.component.mjs +33 -33
- package/esm2022/spx-inputs/spx-input-box.component.mjs +149 -149
- package/esm2022/spx-inputs/spx-input-date/spx-input-date.component.mjs +50 -17
- package/esm2022/spx-inputs/spx-input-float.component.mjs +51 -51
- package/esm2022/spx-inputs/spx-input-number.component.mjs +27 -27
- package/esm2022/spx-inputs/spx-input-radio.component.mjs +23 -23
- package/esm2022/spx-inputs/spx-input-text.component.mjs +63 -63
- package/esm2022/spx-inputs/spx-input-time-modal.component.mjs +77 -77
- package/esm2022/spx-inputs/spx-input-time.component.mjs +13 -13
- package/esm2022/spx-inputs/spx-input-type.enum.mjs +1 -1
- package/esm2022/spx-inputs/spx-input.component.mjs +219 -219
- package/esm2022/spx-inputs/spx-value-interface.mjs +1 -1
- package/esm2022/spx-navigation/public-api.mjs +1 -1
- package/esm2022/spx-navigation/spx-home-tile.component.mjs +39 -39
- package/esm2022/spx-navigation/spx-home-tiles.component.mjs +5 -5
- package/esm2022/spx-navigation/spx-navigation-item.interface.mjs +1 -1
- package/esm2022/spx-navigation/spx-navigation.component.mjs +3 -3
- package/esm2022/spx-number-check/public-api.mjs +1 -1
- package/esm2022/spx-number-check/spx-number-check.component.mjs +77 -77
- package/esm2022/spx-pagination/public-api.mjs +1 -1
- package/esm2022/spx-pagination/spx-pagination.component.mjs +3 -3
- package/esm2022/spx-patch/patch-check.function.mjs +1 -1
- package/esm2022/spx-patch/public-api.mjs +1 -1
- package/esm2022/spx-patch/release-check.function.mjs +1 -1
- package/esm2022/spx-patch/spx-patch.component.mjs +25 -25
- package/esm2022/spx-progress-bar/public-api.mjs +1 -1
- package/esm2022/spx-progress-bar/spx-progress-bar.component.mjs +15 -15
- package/esm2022/spx-spinner/public-api.mjs +1 -1
- package/esm2022/spx-spinner/spx-spinner.component.mjs +143 -143
- package/esm2022/spx-stock-info/public-api.mjs +1 -1
- package/esm2022/spx-stock-info/spx-stock-info-value.interface.mjs +1 -1
- package/esm2022/spx-stock-info/spx-stock-info.component.mjs +3 -3
- package/esm2022/spx-storage/public-api.mjs +1 -1
- package/esm2022/spx-storage/src/spx-storage-key.enum.mjs +1 -1
- package/esm2022/spx-storage/src/spx-storage.class.mjs +1 -1
- package/esm2022/spx-suggestion/public-api.mjs +1 -1
- package/esm2022/spx-suggestion/spx-suggestion.component.mjs +41 -41
- package/esm2022/spx-toaster/public-api.mjs +1 -1
- package/esm2022/spx-toaster/src/spx-toaster-autoclose-speed.mjs +1 -1
- package/esm2022/spx-toaster/src/spx-toaster-message.interface.mjs +1 -1
- package/esm2022/spx-toaster/src/spx-toaster.component.mjs +93 -93
- package/esm2022/spx-update/public-api.mjs +1 -1
- package/esm2022/spx-update/src/spx-update-info.component.mjs +23 -23
- package/esm2022/spx-update/src/spx-update-progress.component.mjs +3 -3
- package/esm2022/spx-validation/max.validator.mjs +1 -1
- package/esm2022/spx-validation/maxlength.validator.mjs +1 -1
- package/esm2022/spx-validation/min.validator.mjs +1 -1
- package/esm2022/spx-validation/minlength.validator.mjs +1 -1
- package/esm2022/spx-validation/pattern.validator.mjs +1 -1
- package/esm2022/spx-validation/public-api.mjs +1 -1
- package/esm2022/spx-validation/required.validator.mjs +1 -1
- package/esm2022/spx-validation/spx-validate-control.component.mjs +3 -3
- package/esm2022/spx-validation/year-and-month.validator.mjs +1 -1
- package/fesm2022/softpak-components-spx-alert.mjs +114 -114
- package/fesm2022/softpak-components-spx-alert.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-app-configuration.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-app-expiry.mjs +56 -56
- package/fesm2022/softpak-components-spx-app-expiry.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-app-update.mjs +58 -58
- package/fesm2022/softpak-components-spx-app-update.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-button.mjs +62 -62
- package/fesm2022/softpak-components-spx-button.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-capitalize.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-card.mjs +220 -220
- package/fesm2022/softpak-components-spx-card.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-change-details.mjs +2 -2
- package/fesm2022/softpak-components-spx-change-details.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-channel-selection.mjs +24 -24
- package/fesm2022/softpak-components-spx-channel-selection.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-check-digit.mjs +2 -2
- package/fesm2022/softpak-components-spx-check-digit.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-form-section.mjs +20 -20
- package/fesm2022/softpak-components-spx-form-section.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-form-view.mjs +164 -164
- package/fesm2022/softpak-components-spx-form-view.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-helpers.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-inputs.mjs +695 -662
- package/fesm2022/softpak-components-spx-inputs.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-navigation.mjs +44 -44
- package/fesm2022/softpak-components-spx-navigation.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-number-check.mjs +76 -76
- package/fesm2022/softpak-components-spx-number-check.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-pagination.mjs +2 -2
- package/fesm2022/softpak-components-spx-pagination.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-patch.mjs +24 -24
- package/fesm2022/softpak-components-spx-patch.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-progress-bar.mjs +14 -14
- package/fesm2022/softpak-components-spx-progress-bar.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-spinner.mjs +142 -142
- package/fesm2022/softpak-components-spx-spinner.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-stock-info.mjs +2 -2
- package/fesm2022/softpak-components-spx-stock-info.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-storage.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-suggestion.mjs +40 -40
- package/fesm2022/softpak-components-spx-suggestion.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-toaster.mjs +92 -92
- package/fesm2022/softpak-components-spx-toaster.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-update.mjs +24 -24
- package/fesm2022/softpak-components-spx-update.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-validation.mjs +2 -2
- package/fesm2022/softpak-components-spx-validation.mjs.map +1 -1
- package/package.json +29 -29
- package/spx-inputs/spx-input-date/spx-input-date.component.d.ts +5 -1
|
@@ -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 } 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 { IonicModule, NavController } from '@ionic/angular';\n\nconst ctrlNextVersionNumber = 'ctrlNextVersionNumber';\nconst ctrlVersionNumber = 'ctrlVersionNumber';\nconst ctrlConfiguredChannel = 'ctrlConfiguredChannel';\nconst ctrlAppStoreVersion = 'ctrlAppStoreVersion';\n\n@Component({\n selector: 'spx-app-update',\n standalone: true,\n imports: [\n FormsModule,\n IonicModule,\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,CAAC;AACtD,MAAM,iBAAiB,GAAG,mBAAmB,CAAC;AAC9C,MAAM,qBAAqB,GAAG,uBAAuB,CAAC;AACtD,MAAM,mBAAmB,GAAG,qBAAqB,CAAC;MA6CrC,qBAAqB,CAAA;IAuBhC,WACmB,CAAA,MAAc,EACd,cAAiC,EACjC,cAA8B,EAC9B,gBAAkC,EAClC,WAAwB,EACxB,aAA4B,EAAA;QAL5B,IAAM,CAAA,MAAA,GAAN,MAAM,CAAQ;QACd,IAAc,CAAA,cAAA,GAAd,cAAc,CAAmB;QACjC,IAAc,CAAA,cAAA,GAAd,cAAc,CAAgB;QAC9B,IAAgB,CAAA,gBAAA,GAAhB,gBAAgB,CAAkB;QAClC,IAAW,CAAA,WAAA,GAAX,WAAW,CAAa;QACxB,IAAa,CAAA,aAAA,GAAb,aAAa,CAAe;QAX/C,IAAiB,CAAA,iBAAA,GAAW,CAAC,CAAC;QAC9B,IAAU,CAAA,UAAA,GAAW,CAAC,CAAC;Q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B,oBAAA,OAAO,EAAE;wBACP,WAAW;wBACX,WAAW;wBACX,mBAAmB;wBACnB,iBAAiB;wBACjB,iBAAiB;wBACjB,uBAAuB;wBACvB,eAAe;AAClB,qBAAA;AACC,oBAAA,QAAQ,EAAE,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6BK,gBAAA,CAAA;AAChB,iBAAA,CAAA;6NAEU,UAAU,EAAA,CAAA;sBAAlB,KAAK;gBACG,aAAa,EAAA,CAAA;sBAArB,KAAK;gBACG,sBAAsB,EAAA,CAAA;sBAA9B,KAAK;gBACG,qBAAqB,EAAA,CAAA;sBAA7B,KAAK;gBACG,yBAAyB,EAAA,CAAA;sBAAjC,KAAK;gBACG,oBAAoB,EAAA,CAAA;sBAA5B,KAAK;gBACG,sBAAsB,EAAA,CAAA;sBAA9B,KAAK;gBACG,mBAAmB,EAAA,CAAA;sBAA3B,KAAK;gBACG,kBAAkB,EAAA,CAAA;sBAA1B,KAAK;gBACG,UAAU,EAAA,CAAA;sBAAlB,KAAK;gBACG,cAAc,EAAA,CAAA;sBAAtB,KAAK;gBACG,SAAS,EAAA,CAAA;sBAAjB,KAAK;gBACG,UAAU,EAAA,CAAA;sBAAlB,KAAK;gBACG,QAAQ,EAAA,CAAA;sBAAhB,KAAK;;;AC3ER;;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';\r\nimport { ApplicationRef, ChangeDetectorRef, Component, Input } from '@angular/core';\r\nimport { FormBuilder, FormControl, FormGroup, FormsModule, ReactiveFormsModule } from '@angular/forms';\r\nimport { TranslateModule, TranslateService } from '@ngx-translate/core';\r\nimport { SpxCapitalizePipe } from '@softpak/components/spx-capitalize';\r\nimport { SpxInputComponent } from '@softpak/components/spx-inputs';\r\nimport { SpxProgressBarComponent } from '@softpak/components/spx-progress-bar';\r\nimport { SpxStorage, SpxStorageKeyEnum } from '@softpak/components/spx-storage';\r\nimport { Device } from '@capacitor/device';\r\nimport { Deploy } from 'cordova-plugin-ionic/dist/ngx';\r\nimport { getCurrentScope } from '@sentry/angular';\r\nimport { IonicModule, NavController } from '@ionic/angular';\r\n\r\nconst ctrlNextVersionNumber = 'ctrlNextVersionNumber';\r\nconst ctrlVersionNumber = 'ctrlVersionNumber';\r\nconst ctrlConfiguredChannel = 'ctrlConfiguredChannel';\r\nconst ctrlAppStoreVersion = 'ctrlAppStoreVersion';\r\n\r\n@Component({\r\n selector: 'spx-app-update',\r\n standalone: true,\r\n imports: [\r\n FormsModule,\r\n IonicModule,\r\n ReactiveFormsModule,\r\n SpxCapitalizePipe,\r\n SpxInputComponent,\r\n SpxProgressBarComponent,\r\n TranslateModule\r\n],\r\n template: `<ion-header>\r\n <ion-toolbar>\r\n <ion-title>\r\n {{ txtUpdate | translate | capitalize }}\r\n </ion-title>\r\n </ion-toolbar>\r\n </ion-header>\r\n \r\n <ion-content class=\"ion-content--upd\" [fullscreen]=\"true\">\r\n <div class=\"ion-padding\">\r\n <spx-progress-bar [spxPercentage]=\"delayedPercentage\" [spxTitle]=\"updateStatus | capitalize\">\r\n </spx-progress-bar>\r\n <form [formGroup]=\"form\" class=\"mt-3\">\r\n @if (ctrlAppStoreVersion.value && ctrlAppStoreVersion.value.value) {\r\n <div class=\"grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-3\">\r\n <spx-input [formControl]=\"ctrlAppStoreVersion\" [spxLabel]=\"txtAppStoreVersion | translate | capitalize\"\r\n [spxReadonly]=\"true\"></spx-input>\r\n <spx-input [formControl]=\"ctrlConfiguredChannel\" [spxLabel]=\"txtChannel | translate | capitalize\"\r\n [spxReadonly]=\"true\"></spx-input>\r\n <spx-input [formControl]=\"ctrlVersionNumber\" [spxLabel]=\"txtVersion | translate | capitalize\"\r\n [spxReadonly]=\"true\"></spx-input>\r\n @if (ctrlNextVersionNumber.value && ctrlNextVersionNumber.value.value) {\r\n <spx-input [formControl]=\"ctrlNextVersionNumber\" [spxLabel]=\"txtNextVersion | translate | capitalize\"\r\n [spxReadonly]=\"true\"></spx-input>\r\n }\r\n </div>\r\n }\r\n </form>\r\n </div>\r\n </ion-content>`,\r\n})\r\nexport class SpxAppUpdateComponent {\r\n @Input() spxHomeUrl!: string;\r\n @Input() spxIsSignedIn!: boolean;\r\n @Input() textCheckingForUpdates!: string;\r\n @Input() textDownloadingUpdate!: string;\r\n @Input() textErrorWhileUpdatingApp!: string;\r\n @Input() textFinishedUpdating!: string;\r\n @Input() textNoUpdatesAvailable!: string;\r\n @Input() textUnexpectedError!: string;\r\n @Input() txtAppStoreVersion!: string;\r\n @Input() txtChannel!: string;\r\n @Input() txtNextVersion!: string;\r\n @Input() txtUpdate!: string;\r\n @Input() txtVersion!: string;\r\n @Input() spxAppId!: string;\r\n\r\n form: FormGroup;\r\n\r\n delayedPercentage: number = 0;\r\n percentage: number = 0;\r\n syncTruckInterval: any | null = null;\r\n updateStatus: string = this.textCheckingForUpdates;\r\n\r\n constructor(\r\n private readonly deploy: Deploy,\r\n private readonly changeDetector: ChangeDetectorRef,\r\n private readonly applicationRef: ApplicationRef,\r\n private readonly translateService: TranslateService,\r\n private readonly formBuilder: FormBuilder,\r\n private readonly navController: NavController,\r\n ) {\r\n this.form = this.formBuilder.group({\r\n [ctrlNextVersionNumber]: [null, []],\r\n [ctrlVersionNumber]: [null, []],\r\n [ctrlConfiguredChannel]: [null, []],\r\n [ctrlAppStoreVersion]: [null, []],\r\n });\r\n }\r\n\r\n get ctrlVersionNumber(): FormControl { return this.form.get(ctrlVersionNumber) as FormControl; }\r\n get ctrlNextVersionNumber(): FormControl { return this.form.get(ctrlNextVersionNumber) as FormControl; }\r\n get ctrlConfiguredChannel(): FormControl { return this.form.get(ctrlConfiguredChannel) as FormControl; }\r\n get ctrlAppStoreVersion(): FormControl { return this.form.get(ctrlAppStoreVersion) as FormControl; }\r\n\r\n init() {\r\n this.delayedPercentage = 0;\r\n this.percentage = 0;\r\n this.performAutomaticUpdate().then(() => { });\r\n this.startLoaderSync();\r\n this.changeStatus({\r\n percentage: 0,\r\n text: this.translateService.instant(this.textCheckingForUpdates),\r\n });\r\n }\r\n\r\n destroy() {\r\n this.stopLoaderSync();\r\n }\r\n\r\n async performAutomaticUpdate() {\r\n const deviceInfo = await Device.getInfo();\r\n\r\n if (deviceInfo?.platform === 'web') {\r\n // Local? Skip the update page.\r\n this.closeUpdateScreen();\r\n }\r\n try {\r\n this.updateInfo();\r\n\r\n // Start upgrade\r\n const currentVersion = await this.deploy.getCurrentVersion();\r\n if (currentVersion?.binaryVersionName) {\r\n const binaryGroup = currentVersion.binaryVersionName.substring(0, 3); // e.g. \"1.4\"\r\n const channelGroup = currentVersion.channel.split('-')[1].substring(0, 3); // e.g. \"1.4\"\r\n const channelType = currentVersion.channel.split('-')[0];\r\n\r\n if (binaryGroup != channelGroup) {\r\n await this.deploy.configure({\r\n appId: this.spxAppId,\r\n channel: `${channelType}-${binaryGroup}.x`\r\n }).then(() => {\r\n this.sync().then(() => { });\r\n });\r\n } else {\r\n this.sync().then(() => { });\r\n }\r\n } else {\r\n this.sync().then(() => { });\r\n }\r\n // End upgrade\r\n } catch (error: any) {\r\n this.changeStatus({\r\n closeScreen: true,\r\n error,\r\n percentage: 100,\r\n text: this.translateService.instant(this.textUnexpectedError)\r\n });\r\n }\r\n }\r\n\r\n private async sync() {\r\n try {\r\n this.updateInfo();\r\n\r\n const updateAvailableInfo = await this.deploy.checkForUpdate();\r\n if (!updateAvailableInfo.available) {\r\n // No update available\r\n this.changeStatus({\r\n closeScreen: true,\r\n percentage: 0,\r\n text: this.translateService.instant(this.textNoUpdatesAvailable),\r\n });\r\n } else {\r\n // Download update\r\n await this.deploy.sync({ updateMethod: 'auto' }, (percentage) => {\r\n this.changeStatus({\r\n percentage: percentage ?? 0,\r\n text: this.translateService.instant(this.textDownloadingUpdate, { percentage, version: updateAvailableInfo.build }),\r\n });\r\n }).catch((error) => {\r\n this.changeStatus({\r\n closeScreen: true,\r\n error,\r\n percentage: 100,\r\n text: this.translateService.instant(this.textErrorWhileUpdatingApp),\r\n });\r\n });\r\n\r\n this.changeStatus({\r\n closeScreen: true,\r\n percentage: 100,\r\n text: this.translateService.instant(this.textFinishedUpdating, { version: updateAvailableInfo.build })\r\n });\r\n }\r\n } catch (error: any) {\r\n // Catch unexpected plug-in errors\r\n this.changeStatus({\r\n closeScreen: true,\r\n error,\r\n percentage: 100,\r\n text: this.translateService.instant(this.textUnexpectedError)\r\n });\r\n }\r\n }\r\n\r\n private async updateInfo(): Promise<void> {\r\n const currentVersion = await this.deploy.getCurrentVersion();\r\n const configuration = await this.deploy.getConfiguration();\r\n const updateAvailableInfo = await this.deploy.checkForUpdate();\r\n\r\n if (currentVersion) {\r\n this.ctrlVersionNumber.setValue({\r\n value: configuration?.currentBuildId,\r\n });\r\n this.ctrlNextVersionNumber.setValue({\r\n value: updateAvailableInfo?.build\r\n });\r\n this.ctrlConfiguredChannel.setValue({\r\n value: configuration ? configuration.channel : null\r\n });\r\n this.ctrlAppStoreVersion.setValue({\r\n value: configuration ? configuration.binaryVersionName : null\r\n });\r\n\r\n {\r\n const scope = getCurrentScope();\r\n scope.setTag('version_binary_code', currentVersion?.binaryVersionCode);\r\n scope.setTag('version_binary_name', currentVersion?.binaryVersionName);\r\n scope.setTag('version_build_id', currentVersion?.buildId);\r\n scope.setTag('channel_type', currentVersion?.channel);\r\n scope.setTag('version_snapshot_id', currentVersion?.versionId);\r\n };\r\n\r\n this.changeDetector.markForCheck();\r\n this.applicationRef.tick();\r\n }\r\n }\r\n\r\n private changeStatus(status: {\r\n error?: string;\r\n text: string;\r\n closeScreen?: boolean;\r\n percentage: number;\r\n }) {\r\n this.updateStatus = status.text;\r\n this.percentage = status.percentage;\r\n if (status.closeScreen) {\r\n this.closeUpdateScreen();\r\n }\r\n if (status.error) {\r\n // this.appStore.dispatch(\r\n // sharedToasterActions.CREATE_ERROR({\r\n // messageText: status.error,\r\n // })\r\n // );\r\n }\r\n this.changeDetector.markForCheck();\r\n this.applicationRef.tick();\r\n }\r\n\r\n private closeUpdateScreen() {\r\n // Allowing some time to make a screenshot of version info\r\n SpxStorage.clearSetting<any>(SpxStorageKeyEnum.updateInProgress);\r\n setTimeout(() => {\r\n if (\r\n SpxStorage.getSetting<any>(SpxStorageKeyEnum.afterSignIn) &&\r\n this.spxIsSignedIn\r\n ) {\r\n this.navController.navigateRoot([SpxStorage.getSetting<any>(SpxStorageKeyEnum.afterSignIn)]);\r\n SpxStorage.clearSetting<any>(SpxStorageKeyEnum.afterSignIn)\r\n } else {\r\n this.navController.navigateRoot([this.spxHomeUrl]);\r\n }\r\n }, 0);\r\n }\r\n\r\n private startLoaderSync() {\r\n SpxStorage.setSetting<any>(SpxStorageKeyEnum.updateInProgress, '1');\r\n if (this.syncTruckInterval === null) {\r\n this.syncTruckInterval = setInterval(() => {\r\n this.delayedPercentage = this.percentage;\r\n }, 200);\r\n }\r\n }\r\n\r\n private stopLoaderSync() {\r\n if (this.syncTruckInterval !== null) {\r\n clearInterval(this.syncTruckInterval);\r\n this.syncTruckInterval = null;\r\n }\r\n }\r\n}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAaA,MAAM,qBAAqB,GAAG,uBAAuB,CAAC;AACtD,MAAM,iBAAiB,GAAG,mBAAmB,CAAC;AAC9C,MAAM,qBAAqB,GAAG,uBAAuB,CAAC;AACtD,MAAM,mBAAmB,GAAG,qBAAqB,CAAC;MA6CrC,qBAAqB,CAAA;IAuBhC,WACmB,CAAA,MAAc,EACd,cAAiC,EACjC,cAA8B,EAC9B,gBAAkC,EAClC,WAAwB,EACxB,aAA4B,EAAA;QAL5B,IAAM,CAAA,MAAA,GAAN,MAAM,CAAQ;QACd,IAAc,CAAA,cAAA,GAAd,cAAc,CAAmB;QACjC,IA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MAAA,EAAA,IAAA,EAAA,EAAA,CAAA,aAAA,EAAA,IAAA,EAAA,WAAA,EAAA,CAAA,EAAA,CAAA,CAAA,EAAA;;4FAiCN,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBA3CjC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,gBAAgB;AAC1B,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,OAAO,EAAE;wBACP,WAAW;wBACX,WAAW;wBACX,mBAAmB;wBACnB,iBAAiB;wBACjB,iBAAiB;wBACjB,uBAAuB;wBACvB,eAAe;AAClB,qBAAA;AACC,oBAAA,QAAQ,EAAE,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6BK,gBAAA,CAAA;AAChB,iBAAA,CAAA;6NAEU,UAAU,EAAA,CAAA;sBAAlB,KAAK;gBACG,aAAa,EAAA,CAAA;sBAArB,KAAK;gBACG,sBAAsB,EAAA,CAAA;sBAA9B,KAAK;gBACG,qBAAqB,EAAA,CAAA;sBAA7B,KAAK;gBACG,yBAAyB,EAAA,CAAA;sBAAjC,KAAK;gBACG,oBAAoB,EAAA,CAAA;sBAA5B,KAAK;gBACG,sBAAsB,EAAA,CAAA;sBAA9B,KAAK;gBACG,mBAAmB,EAAA,CAAA;sBAA3B,KAAK;gBACG,kBAAkB,EAAA,CAAA;sBAA1B,KAAK;gBACG,UAAU,EAAA,CAAA;sBAAlB,KAAK;gBACG,cAAc,EAAA,CAAA;sBAAtB,KAAK;gBACG,SAAS,EAAA,CAAA;sBAAjB,KAAK;gBACG,UAAU,EAAA,CAAA;sBAAlB,KAAK;gBACG,QAAQ,EAAA,CAAA;sBAAhB,KAAK;;;AC3ER;;AAEG;;;;"}
|
|
@@ -31,37 +31,37 @@ class SpxButtonComponent {
|
|
|
31
31
|
this.buttonRef?.nativeElement?.focus();
|
|
32
32
|
}
|
|
33
33
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SpxButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
34
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", 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
|
-
<button
|
|
36
|
-
#buttonRef
|
|
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"
|
|
38
|
-
[class.h-full]="this.spxFullHeight"
|
|
39
|
-
[class.w-full]="this.spxFullWidth"
|
|
40
|
-
[class.bg-blue-600]="!this.spxSeverity || this.severityInfo"
|
|
41
|
-
[class.focus:ring-blue-600]="!this.spxSeverity || this.severityInfo"
|
|
42
|
-
[class.from-red-400]="this.severityError"
|
|
43
|
-
[class.to-red-600]="this.severityError"
|
|
44
|
-
[class.focus:ring-red-600]="this.severityError"
|
|
45
|
-
[class.from-lime-400]="this.severitySuccess"
|
|
46
|
-
[class.to-lime-600]="this.severitySuccess"
|
|
47
|
-
[class.focus:ring-lime-600]="this.severitySuccess"
|
|
48
|
-
[class.from-amber-400]="this.severityWarning"
|
|
49
|
-
[class.to-amber-600]="this.severityWarning"
|
|
50
|
-
[class.focus:ring-amber-600]="this.severityWarning"
|
|
51
|
-
[class.py-2]="!this.spxSize || this.spxSize === 'lg'"
|
|
52
|
-
[class.py-4]="!this.spxSize || this.spxSize === 'xl'"
|
|
53
|
-
[class.text-xl]="this.spxSize === 'xl'"
|
|
54
|
-
[class.text-lg]="this.spxSize === 'lg'"
|
|
55
|
-
[class.cursor-pointer]="!this.spxDisabled"
|
|
56
|
-
[class.cursor-not-allowed]="this.spxDisabled"
|
|
57
|
-
[class.opacity-50]="this.spxDisabled"
|
|
58
|
-
[class.focus:ring-0]="this.spxDisabled"
|
|
59
|
-
[ngClass]="this.spxClass ? this.spxClass : undefined"
|
|
60
|
-
[attr.disabled]="this.spxDisabled ? this.spxDisabled : undefined"
|
|
61
|
-
[attr.form]="this.spxForm ? this.spxForm : undefined"
|
|
62
|
-
[attr.tabindex]="this.spxTabIndex ? this.spxTabIndex : undefined"
|
|
63
|
-
[attr.type]="this.spxType ? this.spxType : undefined"
|
|
64
|
-
(click)="this.handleClick()"
|
|
34
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", 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
|
+
<button
|
|
36
|
+
#buttonRef
|
|
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"
|
|
38
|
+
[class.h-full]="this.spxFullHeight"
|
|
39
|
+
[class.w-full]="this.spxFullWidth"
|
|
40
|
+
[class.bg-blue-600]="!this.spxSeverity || this.severityInfo"
|
|
41
|
+
[class.focus:ring-blue-600]="!this.spxSeverity || this.severityInfo"
|
|
42
|
+
[class.from-red-400]="this.severityError"
|
|
43
|
+
[class.to-red-600]="this.severityError"
|
|
44
|
+
[class.focus:ring-red-600]="this.severityError"
|
|
45
|
+
[class.from-lime-400]="this.severitySuccess"
|
|
46
|
+
[class.to-lime-600]="this.severitySuccess"
|
|
47
|
+
[class.focus:ring-lime-600]="this.severitySuccess"
|
|
48
|
+
[class.from-amber-400]="this.severityWarning"
|
|
49
|
+
[class.to-amber-600]="this.severityWarning"
|
|
50
|
+
[class.focus:ring-amber-600]="this.severityWarning"
|
|
51
|
+
[class.py-2]="!this.spxSize || this.spxSize === 'lg'"
|
|
52
|
+
[class.py-4]="!this.spxSize || this.spxSize === 'xl'"
|
|
53
|
+
[class.text-xl]="this.spxSize === 'xl'"
|
|
54
|
+
[class.text-lg]="this.spxSize === 'lg'"
|
|
55
|
+
[class.cursor-pointer]="!this.spxDisabled"
|
|
56
|
+
[class.cursor-not-allowed]="this.spxDisabled"
|
|
57
|
+
[class.opacity-50]="this.spxDisabled"
|
|
58
|
+
[class.focus:ring-0]="this.spxDisabled"
|
|
59
|
+
[ngClass]="this.spxClass ? this.spxClass : undefined"
|
|
60
|
+
[attr.disabled]="this.spxDisabled ? this.spxDisabled : undefined"
|
|
61
|
+
[attr.form]="this.spxForm ? this.spxForm : undefined"
|
|
62
|
+
[attr.tabindex]="this.spxTabIndex ? this.spxTabIndex : undefined"
|
|
63
|
+
[attr.type]="this.spxType ? this.spxType : undefined"
|
|
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
67
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SpxButtonComponent, decorators: [{
|
|
@@ -72,37 +72,37 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
72
72
|
imports: [
|
|
73
73
|
NgClass,
|
|
74
74
|
],
|
|
75
|
-
template: `
|
|
76
|
-
<button
|
|
77
|
-
#buttonRef
|
|
78
|
-
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"
|
|
79
|
-
[class.h-full]="this.spxFullHeight"
|
|
80
|
-
[class.w-full]="this.spxFullWidth"
|
|
81
|
-
[class.bg-blue-600]="!this.spxSeverity || this.severityInfo"
|
|
82
|
-
[class.focus:ring-blue-600]="!this.spxSeverity || this.severityInfo"
|
|
83
|
-
[class.from-red-400]="this.severityError"
|
|
84
|
-
[class.to-red-600]="this.severityError"
|
|
85
|
-
[class.focus:ring-red-600]="this.severityError"
|
|
86
|
-
[class.from-lime-400]="this.severitySuccess"
|
|
87
|
-
[class.to-lime-600]="this.severitySuccess"
|
|
88
|
-
[class.focus:ring-lime-600]="this.severitySuccess"
|
|
89
|
-
[class.from-amber-400]="this.severityWarning"
|
|
90
|
-
[class.to-amber-600]="this.severityWarning"
|
|
91
|
-
[class.focus:ring-amber-600]="this.severityWarning"
|
|
92
|
-
[class.py-2]="!this.spxSize || this.spxSize === 'lg'"
|
|
93
|
-
[class.py-4]="!this.spxSize || this.spxSize === 'xl'"
|
|
94
|
-
[class.text-xl]="this.spxSize === 'xl'"
|
|
95
|
-
[class.text-lg]="this.spxSize === 'lg'"
|
|
96
|
-
[class.cursor-pointer]="!this.spxDisabled"
|
|
97
|
-
[class.cursor-not-allowed]="this.spxDisabled"
|
|
98
|
-
[class.opacity-50]="this.spxDisabled"
|
|
99
|
-
[class.focus:ring-0]="this.spxDisabled"
|
|
100
|
-
[ngClass]="this.spxClass ? this.spxClass : undefined"
|
|
101
|
-
[attr.disabled]="this.spxDisabled ? this.spxDisabled : undefined"
|
|
102
|
-
[attr.form]="this.spxForm ? this.spxForm : undefined"
|
|
103
|
-
[attr.tabindex]="this.spxTabIndex ? this.spxTabIndex : undefined"
|
|
104
|
-
[attr.type]="this.spxType ? this.spxType : undefined"
|
|
105
|
-
(click)="this.handleClick()"
|
|
75
|
+
template: `
|
|
76
|
+
<button
|
|
77
|
+
#buttonRef
|
|
78
|
+
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"
|
|
79
|
+
[class.h-full]="this.spxFullHeight"
|
|
80
|
+
[class.w-full]="this.spxFullWidth"
|
|
81
|
+
[class.bg-blue-600]="!this.spxSeverity || this.severityInfo"
|
|
82
|
+
[class.focus:ring-blue-600]="!this.spxSeverity || this.severityInfo"
|
|
83
|
+
[class.from-red-400]="this.severityError"
|
|
84
|
+
[class.to-red-600]="this.severityError"
|
|
85
|
+
[class.focus:ring-red-600]="this.severityError"
|
|
86
|
+
[class.from-lime-400]="this.severitySuccess"
|
|
87
|
+
[class.to-lime-600]="this.severitySuccess"
|
|
88
|
+
[class.focus:ring-lime-600]="this.severitySuccess"
|
|
89
|
+
[class.from-amber-400]="this.severityWarning"
|
|
90
|
+
[class.to-amber-600]="this.severityWarning"
|
|
91
|
+
[class.focus:ring-amber-600]="this.severityWarning"
|
|
92
|
+
[class.py-2]="!this.spxSize || this.spxSize === 'lg'"
|
|
93
|
+
[class.py-4]="!this.spxSize || this.spxSize === 'xl'"
|
|
94
|
+
[class.text-xl]="this.spxSize === 'xl'"
|
|
95
|
+
[class.text-lg]="this.spxSize === 'lg'"
|
|
96
|
+
[class.cursor-pointer]="!this.spxDisabled"
|
|
97
|
+
[class.cursor-not-allowed]="this.spxDisabled"
|
|
98
|
+
[class.opacity-50]="this.spxDisabled"
|
|
99
|
+
[class.focus:ring-0]="this.spxDisabled"
|
|
100
|
+
[ngClass]="this.spxClass ? this.spxClass : undefined"
|
|
101
|
+
[attr.disabled]="this.spxDisabled ? this.spxDisabled : undefined"
|
|
102
|
+
[attr.form]="this.spxForm ? this.spxForm : undefined"
|
|
103
|
+
[attr.tabindex]="this.spxTabIndex ? this.spxTabIndex : undefined"
|
|
104
|
+
[attr.type]="this.spxType ? this.spxType : undefined"
|
|
105
|
+
(click)="this.handleClick()"
|
|
106
106
|
part="button"><ng-content></ng-content></button>`,
|
|
107
107
|
}]
|
|
108
108
|
}], propDecorators: { hostClassBlock: [{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"softpak-components-spx-button.mjs","sources":["../../../../projects/softpak/components/spx-button/spx-button.component.ts","../../../../projects/softpak/components/spx-button/softpak-components-spx-button.ts"],"sourcesContent":["import { NgClass } from '@angular/common';\nimport { Component, ElementRef, EventEmitter, HostBinding, Input, Output, ViewChild } from '@angular/core';\nimport { SpxSeverityEnum } from '@softpak/components/spx-helpers';\n\n@Component({\n selector: 'spx-button',\n standalone: true,\n imports: [\n NgClass,\n ],\n template: `\n <button\n #buttonRef\n 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\"\n [class.h-full]=\"this.spxFullHeight\"\n [class.w-full]=\"this.spxFullWidth\"\n [class.bg-blue-600]=\"!this.spxSeverity || this.severityInfo\"\n [class.focus:ring-blue-600]=\"!this.spxSeverity || this.severityInfo\"\n [class.from-red-400]=\"this.severityError\"\n [class.to-red-600]=\"this.severityError\"\n [class.focus:ring-red-600]=\"this.severityError\"\n [class.from-lime-400]=\"this.severitySuccess\"\n [class.to-lime-600]=\"this.severitySuccess\"\n [class.focus:ring-lime-600]=\"this.severitySuccess\"\n [class.from-amber-400]=\"this.severityWarning\"\n [class.to-amber-600]=\"this.severityWarning\"\n [class.focus:ring-amber-600]=\"this.severityWarning\"\n [class.py-2]=\"!this.spxSize || this.spxSize === 'lg'\"\n [class.py-4]=\"!this.spxSize || this.spxSize === 'xl'\"\n [class.text-xl]=\"this.spxSize === 'xl'\"\n [class.text-lg]=\"this.spxSize === 'lg'\"\n [class.cursor-pointer]=\"!this.spxDisabled\"\n [class.cursor-not-allowed]=\"this.spxDisabled\"\n [class.opacity-50]=\"this.spxDisabled\"\n [class.focus:ring-0]=\"this.spxDisabled\"\n [ngClass]=\"this.spxClass ? this.spxClass : undefined\"\n [attr.disabled]=\"this.spxDisabled ? this.spxDisabled : undefined\"\n [attr.form]=\"this.spxForm ? this.spxForm : undefined\"\n [attr.tabindex]=\"this.spxTabIndex ? this.spxTabIndex : undefined\"\n [attr.type]=\"this.spxType ? this.spxType : undefined\"\n (click)=\"this.handleClick()\"\n part=\"button\"><ng-content></ng-content></button>`,\n})\nexport class SpxButtonComponent {\n @HostBinding('class.block') get hostClassBlock() { return this.spxFullWidth; }\n @HostBinding('class.h-full') get hostClassHFull() { return this.spxFullHeight; }\n @HostBinding('class.w-full') get hostClassWFull() { return this.spxFullWidth; }\n @Input() spxDisabled = false;\n @Input() spxClass?: string;\n @Input() spxClassObject?: object;\n @Input() spxForm?: string;\n @Input() spxFullHeight?: boolean;\n @Input() spxFullWidth?: boolean;\n @Input() spxSeverity?: SpxSeverityEnum = SpxSeverityEnum.info;\n @Input() spxSize: 'lg' | 'xl' = 'lg';\n @Input() spxTabIndex?: number;\n @Input() spxType: 'button' | 'submit' = 'submit';\n @Output() spxClick: EventEmitter<void> = new EventEmitter<void>();\n @ViewChild('buttonRef', { static: true }) buttonRef?: ElementRef<HTMLInputElement>;\n\n get severityError() { return this.spxSeverity === SpxSeverityEnum.error; }\n get severityInfo() { return this.spxSeverity === SpxSeverityEnum.info; }\n get severitySuccess() { return this.spxSeverity === SpxSeverityEnum.success; }\n get severityWarning() { return this.spxSeverity === SpxSeverityEnum.warning; }\n\n hasShadowDom = (el: HTMLElement) => {\n return !!el.shadowRoot && !!(el as any).attachShadow;\n };\n handleClick = () => {\n if (!this.spxDisabled) {\n this.spxClick.emit();\n }\n }\n\n spxSetFocus(): void {\n console.log(this.buttonRef);\n this.buttonRef?.nativeElement?.focus();\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;M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../../projects/softpak/components/spx-button/spx-button.component.ts","../../../../projects/softpak/components/spx-button/softpak-components-spx-button.ts"],"sourcesContent":["import { NgClass } from '@angular/common';\r\nimport { Component, ElementRef, EventEmitter, HostBinding, Input, Output, ViewChild } from '@angular/core';\r\nimport { SpxSeverityEnum } from '@softpak/components/spx-helpers';\r\n\r\n@Component({\r\n selector: 'spx-button',\r\n standalone: true,\r\n imports: [\r\n NgClass,\r\n ],\r\n template: `\r\n <button\r\n #buttonRef\r\n 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\"\r\n [class.h-full]=\"this.spxFullHeight\"\r\n [class.w-full]=\"this.spxFullWidth\"\r\n [class.bg-blue-600]=\"!this.spxSeverity || this.severityInfo\"\r\n [class.focus:ring-blue-600]=\"!this.spxSeverity || this.severityInfo\"\r\n [class.from-red-400]=\"this.severityError\"\r\n [class.to-red-600]=\"this.severityError\"\r\n [class.focus:ring-red-600]=\"this.severityError\"\r\n [class.from-lime-400]=\"this.severitySuccess\"\r\n [class.to-lime-600]=\"this.severitySuccess\"\r\n [class.focus:ring-lime-600]=\"this.severitySuccess\"\r\n [class.from-amber-400]=\"this.severityWarning\"\r\n [class.to-amber-600]=\"this.severityWarning\"\r\n [class.focus:ring-amber-600]=\"this.severityWarning\"\r\n [class.py-2]=\"!this.spxSize || this.spxSize === 'lg'\"\r\n [class.py-4]=\"!this.spxSize || this.spxSize === 'xl'\"\r\n [class.text-xl]=\"this.spxSize === 'xl'\"\r\n [class.text-lg]=\"this.spxSize === 'lg'\"\r\n [class.cursor-pointer]=\"!this.spxDisabled\"\r\n [class.cursor-not-allowed]=\"this.spxDisabled\"\r\n [class.opacity-50]=\"this.spxDisabled\"\r\n [class.focus:ring-0]=\"this.spxDisabled\"\r\n [ngClass]=\"this.spxClass ? this.spxClass : undefined\"\r\n [attr.disabled]=\"this.spxDisabled ? this.spxDisabled : undefined\"\r\n [attr.form]=\"this.spxForm ? this.spxForm : undefined\"\r\n [attr.tabindex]=\"this.spxTabIndex ? this.spxTabIndex : undefined\"\r\n [attr.type]=\"this.spxType ? this.spxType : undefined\"\r\n (click)=\"this.handleClick()\"\r\n part=\"button\"><ng-content></ng-content></button>`,\r\n})\r\nexport class SpxButtonComponent {\r\n @HostBinding('class.block') get hostClassBlock() { return this.spxFullWidth; }\r\n @HostBinding('class.h-full') get hostClassHFull() { return this.spxFullHeight; }\r\n @HostBinding('class.w-full') get hostClassWFull() { return this.spxFullWidth; }\r\n @Input() spxDisabled = false;\r\n @Input() spxClass?: string;\r\n @Input() spxClassObject?: object;\r\n @Input() spxForm?: string;\r\n @Input() spxFullHeight?: boolean;\r\n @Input() spxFullWidth?: boolean;\r\n @Input() spxSeverity?: SpxSeverityEnum = SpxSeverityEnum.info;\r\n @Input() spxSize: 'lg' | 'xl' = 'lg';\r\n @Input() spxTabIndex?: number;\r\n @Input() spxType: 'button' | 'submit' = 'submit';\r\n @Output() spxClick: EventEmitter<void> = new EventEmitter<void>();\r\n @ViewChild('buttonRef', { static: true }) buttonRef?: ElementRef<HTMLInputElement>;\r\n\r\n get severityError() { return this.spxSeverity === SpxSeverityEnum.error; }\r\n get severityInfo() { return this.spxSeverity === SpxSeverityEnum.info; }\r\n get severitySuccess() { return this.spxSeverity === SpxSeverityEnum.success; }\r\n get severityWarning() { return this.spxSeverity === SpxSeverityEnum.warning; }\r\n\r\n hasShadowDom = (el: HTMLElement) => {\r\n return !!el.shadowRoot && !!(el as any).attachShadow;\r\n };\r\n handleClick = () => {\r\n if (!this.spxDisabled) {\r\n this.spxClick.emit();\r\n }\r\n }\r\n\r\n spxSetFocus(): void {\r\n console.log(this.buttonRef);\r\n this.buttonRef?.nativeElement?.focus();\r\n }\r\n}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;MA2Ca,kBAAkB,CAAA;AAvC/B,IAAA,WAAA,GAAA;QA2CW,IAAW,CAAA,WAAA,G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AAA,EAAA,SAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA,EAAA;;4FAmCE,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAvC9B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,YAAY;AACtB,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,OAAO,EAAE;wBACP,OAAO;AACR,qBAAA;AACD,oBAAA,QAAQ,EAAE,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+ByC,oDAAA,CAAA;AACpD,iBAAA,CAAA;8BAEiC,cAAc,EAAA,CAAA;sBAA7C,WAAW;uBAAC,aAAa,CAAA;gBACO,cAAc,EAAA,CAAA;sBAA9C,WAAW;uBAAC,cAAc,CAAA;gBACM,cAAc,EAAA,CAAA;sBAA9C,WAAW;uBAAC,cAAc,CAAA;gBAClB,WAAW,EAAA,CAAA;sBAAnB,KAAK;gBACG,QAAQ,EAAA,CAAA;sBAAhB,KAAK;gBACG,cAAc,EAAA,CAAA;sBAAtB,KAAK;gBACG,OAAO,EAAA,CAAA;sBAAf,KAAK;gBACG,aAAa,EAAA,CAAA;sBAArB,KAAK;gBACG,YAAY,EAAA,CAAA;sBAApB,KAAK;gBACG,WAAW,EAAA,CAAA;sBAAnB,KAAK;gBACG,OAAO,EAAA,CAAA;sBAAf,KAAK;gBACG,WAAW,EAAA,CAAA;sBAAnB,KAAK;gBACG,OAAO,EAAA,CAAA;sBAAf,KAAK;gBACI,QAAQ,EAAA,CAAA;sBAAjB,MAAM;gBACmC,SAAS,EAAA,CAAA;sBAAlD,SAAS;AAAC,gBAAA,IAAA,EAAA,CAAA,WAAW,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAA;;;AC1D1C;;AAEG;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"softpak-components-spx-capitalize.mjs","sources":["../../../../projects/softpak/components/spx-capitalize/spx-capitalize.pipe.ts","../../../../projects/softpak/components/spx-capitalize/softpak-components-spx-capitalize.ts"],"sourcesContent":["import { Pipe, PipeTransform } from '@angular/core';\n\n@Pipe({\n name: 'capitalize',\n standalone: true,\n})\nexport class SpxCapitalizePipe implements PipeTransform {\n\n transform(value: string, ..._args: unknown[]): string {\n return value = value ? value.charAt(0).toUpperCase() + value.substr(1) : '';\n }\n\n static transform(value: string, ..._args: unknown[]): string {\n return new SpxCapitalizePipe().transform(value, _args);\n }\n\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;MAMa,iBAAiB,CAAA;AAE5B,IAAA,SAAS,CAAC,KAAa,EAAE,GAAG,KAAgB,EAAA;QAC1C,OAAO,KAAK,GAAG,KAAK,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC;KAC7E;AAED,IAAA,OAAO,SAAS,CAAC,KAAa,EAAE,GAAG,KAAgB,EAAA;QACjD,OAAO,IAAI,iBAAiB,EAAE,CAAC,SAAS,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;KACxD;+GARU,iBAAiB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA,EAAA;6GAAjB,iBAAiB,EAAA,YAAA,EAAA,IAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,CAAA,EAAA;;4FAAjB,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAJ7B,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACJ,oBAAA,IAAI,EAAE,YAAY;AAClB,oBAAA,UAAU,EAAE,IAAI;AACjB,iBAAA,CAAA;;;ACLD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"softpak-components-spx-capitalize.mjs","sources":["../../../../projects/softpak/components/spx-capitalize/spx-capitalize.pipe.ts","../../../../projects/softpak/components/spx-capitalize/softpak-components-spx-capitalize.ts"],"sourcesContent":["import { Pipe, PipeTransform } from '@angular/core';\r\n\r\n@Pipe({\r\n name: 'capitalize',\r\n standalone: true,\r\n})\r\nexport class SpxCapitalizePipe implements PipeTransform {\r\n\r\n transform(value: string, ..._args: unknown[]): string {\r\n return value = value ? value.charAt(0).toUpperCase() + value.substr(1) : '';\r\n }\r\n\r\n static transform(value: string, ..._args: unknown[]): string {\r\n return new SpxCapitalizePipe().transform(value, _args);\r\n }\r\n\r\n}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;MAMa,iBAAiB,CAAA;AAE5B,IAAA,SAAS,CAAC,KAAa,EAAE,GAAG,KAAgB,EAAA;QAC1C,OAAO,KAAK,GAAG,KAAK,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC;KAC7E;AAED,IAAA,OAAO,SAAS,CAAC,KAAa,EAAE,GAAG,KAAgB,EAAA;QACjD,OAAO,IAAI,iBAAiB,EAAE,CAAC,SAAS,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;KACxD;+GARU,iBAAiB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA,EAAA;6GAAjB,iBAAiB,EAAA,YAAA,EAAA,IAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,CAAA,EAAA;;4FAAjB,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAJ7B,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACJ,oBAAA,IAAI,EAAE,YAAY;AAClB,oBAAA,UAAU,EAAE,IAAI;AACjB,iBAAA,CAAA;;;ACLD;;AAEG;;;;"}
|