surveysparrow-ionic-plugin 1.0.7-beta.19 → 1.0.7-beta.21
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/dist/angular-ui/esm2022/spotchecks/SpotCheckComponent.mjs +13 -8
- package/dist/angular-ui/esm2022/spotchecks/helpers.mjs +6 -5
- package/dist/angular-ui/fesm2022/angular-ui.mjs +17 -11
- package/dist/angular-ui/fesm2022/angular-ui.mjs.map +1 -1
- package/dist/angular-ui/spotchecks/SpotCheckComponent.d.ts +2 -1
- package/dist/angular-ui/spotchecks/helpers.d.ts +1 -2
- package/dist/esm/angular-ui/lib/spotchecks/SpotCheckComponent.d.ts +1 -0
- package/dist/esm/angular-ui/lib/spotchecks/SpotCheckComponent.js +9 -2
- package/dist/esm/angular-ui/lib/spotchecks/SpotCheckComponent.js.map +1 -1
- package/dist/esm/angular-ui/lib/spotchecks/helpers.d.ts +1 -2
- package/dist/esm/angular-ui/lib/spotchecks/helpers.js +6 -4
- package/dist/esm/angular-ui/lib/spotchecks/helpers.js.map +1 -1
- package/dist/plugin.cjs.js +15 -6
- package/dist/plugin.cjs.js.map +1 -1
- package/dist/plugin.js +15 -6
- package/dist/plugin.js.map +1 -1
- package/package.json +1 -1
- package/src/angular-ui/lib/spotchecks/SpotCheckComponent.css +7 -0
- package/src/angular-ui/lib/spotchecks/SpotCheckComponent.html +3 -1
- package/src/angular-ui/lib/spotchecks/SpotCheckComponent.ts +5 -2
- package/src/angular-ui/lib/spotchecks/helpers.ts +5 -4
package/dist/plugin.js
CHANGED
|
@@ -51354,7 +51354,7 @@ Please check that 1) the type for the parameter at index ${index} is correct and
|
|
|
51354
51354
|
const getSpotcheckComponentCssStyles = (state) => {
|
|
51355
51355
|
let styles = {};
|
|
51356
51356
|
let wrapperStyles = {};
|
|
51357
|
-
let
|
|
51357
|
+
let extraPaddingForMiniCardCloseButtonIfTopPosition = 0;
|
|
51358
51358
|
if (state.isFullScreenMode && state.isVisible) {
|
|
51359
51359
|
wrapperStyles = {
|
|
51360
51360
|
display: 'flex',
|
|
@@ -51368,7 +51368,6 @@ Please check that 1) the type for the parameter at index ${index} is correct and
|
|
|
51368
51368
|
if (state.isVisible && state.isMounted) {
|
|
51369
51369
|
let height = Math.min(state.currentQuestionHeight, (state.maxHeight * window.innerHeight));
|
|
51370
51370
|
if (state.spotChecksMode === 'miniCard') {
|
|
51371
|
-
padding = 45;
|
|
51372
51371
|
if (state.avatarEnabled) {
|
|
51373
51372
|
height = height - 56;
|
|
51374
51373
|
}
|
|
@@ -51396,6 +51395,9 @@ Please check that 1) the type for the parameter at index ${index} is correct and
|
|
|
51396
51395
|
display: 'flex',
|
|
51397
51396
|
justifyContent: 'flex-start',
|
|
51398
51397
|
};
|
|
51398
|
+
if (state.spotChecksMode === 'miniCard' && state.isCloseButtonEnabled) {
|
|
51399
|
+
extraPaddingForMiniCardCloseButtonIfTopPosition = 30;
|
|
51400
|
+
}
|
|
51399
51401
|
break;
|
|
51400
51402
|
case 'center':
|
|
51401
51403
|
styles = {
|
|
@@ -51410,8 +51412,8 @@ Please check that 1) the type for the parameter at index ${index} is correct and
|
|
|
51410
51412
|
}
|
|
51411
51413
|
}
|
|
51412
51414
|
return {
|
|
51413
|
-
wrapperStyles: Object.assign({ position: 'fixed', width: '100%', height: '100%', top: '0', left: '0', backgroundColor: 'rgba(0, 0, 0, 0.3)', zIndex: '99999999', display: 'none', flexDirection: 'column'
|
|
51414
|
-
styles: Object.assign({ display: 'none', flexDirection: 'column' }, styles)
|
|
51415
|
+
wrapperStyles: Object.assign({ position: 'fixed', width: '100%', height: '100%', top: '0', left: '0', backgroundColor: 'rgba(0, 0, 0, 0.3)', zIndex: '99999999', display: 'none', flexDirection: 'column' }, wrapperStyles),
|
|
51416
|
+
styles: Object.assign({ display: 'none', flexDirection: 'column', paddingTop: extraPaddingForMiniCardCloseButtonIfTopPosition + 'px' }, styles)
|
|
51415
51417
|
};
|
|
51416
51418
|
};
|
|
51417
51419
|
const closeSpotCheckAndHandleSurveyEnd = async () => {
|
|
@@ -51433,6 +51435,7 @@ Please check that 1) the type for the parameter at index ${index} is correct and
|
|
|
51433
51435
|
this.sanitizer = sanitizer;
|
|
51434
51436
|
this.url = '';
|
|
51435
51437
|
this.webviewType = 'classic';
|
|
51438
|
+
this.isMiniCard = false;
|
|
51436
51439
|
this.safeUrl = null;
|
|
51437
51440
|
}
|
|
51438
51441
|
ngOnInit() {
|
|
@@ -51505,6 +51508,10 @@ Please check that 1) the type for the parameter at index ${index} is correct and
|
|
|
51505
51508
|
Input(),
|
|
51506
51509
|
__metadata("design:type", String)
|
|
51507
51510
|
], WebViewComponent.prototype, "webviewType", void 0);
|
|
51511
|
+
__decorate$1([
|
|
51512
|
+
Input(),
|
|
51513
|
+
__metadata("design:type", Boolean)
|
|
51514
|
+
], WebViewComponent.prototype, "isMiniCard", void 0);
|
|
51508
51515
|
__decorate$1([
|
|
51509
51516
|
ViewChild('iframeRef'),
|
|
51510
51517
|
__metadata("design:type", ElementRef)
|
|
@@ -51519,11 +51526,12 @@ Please check that 1) the type for the parameter at index ${index} is correct and
|
|
|
51519
51526
|
Component({
|
|
51520
51527
|
selector: 'WebViewComponent',
|
|
51521
51528
|
template: `
|
|
51522
|
-
<div style="overflow: hidden; height: 100%;">
|
|
51529
|
+
<div style="overflow: hidden; height: 100%; border-radius: {{isMiniCard ? 12 : 0}}px; padding-left: {{isMiniCard ? 12 : 0}}px; padding-right: {{isMiniCard ? 12 : 0}}px; box-sizing: border-box;">
|
|
51523
51530
|
<iframe
|
|
51531
|
+
allow="camera; microphone; geolocation; display-capture; autoplay; clipboard-read; clipboard-write;"
|
|
51524
51532
|
#iframeRef
|
|
51525
51533
|
[src]="safeUrl"
|
|
51526
|
-
style="width: 100%; height: 100%; display: block;"
|
|
51534
|
+
style="width: 100%; height: 100%; display: block; border-radius: {{isMiniCard ? 12 : 0}}px;"
|
|
51527
51535
|
frameborder="0"
|
|
51528
51536
|
>
|
|
51529
51537
|
</iframe>
|
|
@@ -51704,6 +51712,7 @@ Please check that 1) the type for the parameter at index ${index} is correct and
|
|
|
51704
51712
|
Component({
|
|
51705
51713
|
selector: 'SpotCheckComponent',
|
|
51706
51714
|
templateUrl: './SpotCheckComponent.html',
|
|
51715
|
+
styleUrls: ['./SpotCheckComponent.css'],
|
|
51707
51716
|
standalone: true,
|
|
51708
51717
|
imports: [CommonModule, WebViewComponent, CloseButtonComponent],
|
|
51709
51718
|
}),
|