@gataca/qr 2.0.9 → 2.0.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.
- package/dist/cjs/gataca-qr_2.cjs.entry.js +2 -3
- package/dist/cjs/gataca-qrws.cjs.entry.js +61 -11
- package/dist/cjs/gatacaqr.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/gataca-qr/gataca-qr.css +28 -110
- package/dist/collection/components/gataca-qr/gataca-qr.js +1 -2
- package/dist/collection/components/gataca-qrws/components/qr/QR.js +5 -0
- package/dist/collection/components/gataca-qrws/components/retryButton/RetryButton.js +13 -0
- package/dist/collection/components/gataca-qrws/components/success/Success.js +8 -0
- package/dist/collection/components/gataca-qrws/gataca-qrws.css +98 -73
- package/dist/collection/components/gataca-qrws/gataca-qrws.js +387 -13
- package/dist/components/gataca-qr2.js +2 -3
- package/dist/components/gataca-qrws2.js +83 -13
- package/dist/esm/gataca-qr_2.entry.js +2 -3
- package/dist/esm/gataca-qrws.entry.js +62 -12
- package/dist/esm/gatacaqr.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/gatacaqr/gatacaqr.esm.js +1 -1
- package/dist/gatacaqr/p-272337d9.entry.js +1 -0
- package/dist/gatacaqr/p-d7877349.entry.js +1 -0
- package/dist/types/components/gataca-qrws/components/qr/QR.d.ts +9 -0
- package/dist/types/components/gataca-qrws/components/retryButton/RetryButton.d.ts +13 -0
- package/dist/types/components/gataca-qrws/components/success/Success.d.ts +7 -0
- package/dist/types/components/gataca-qrws/gataca-qrws.d.ts +102 -1
- package/dist/types/components.d.ts +160 -0
- package/package.json +1 -1
- package/dist/gatacaqr/p-23197d75.entry.js +0 -1
- package/dist/gatacaqr/p-c134f057.entry.js +0 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { h, } from "@stencil/core";
|
|
2
|
-
import alertIcon from "../../assets/icons/gat-icon-alert.svg";
|
|
3
|
-
import successIcon from "../../assets/icons/gat-icon-check.svg";
|
|
4
|
-
import refreshIcon from "../../assets/icons/gat-icon-refresh.svg";
|
|
5
2
|
import logoGataca from "../../assets/images/logo_gataca.svg";
|
|
6
3
|
import "../gataca-qrdisplay/gataca-qrdisplay";
|
|
7
4
|
import { base64UrlEncode, checkMobile, RESULT_STATUS, } from "../../utils/utils";
|
|
5
|
+
import { Success } from "./components/success/Success";
|
|
6
|
+
import { RetryButton } from "./components/retryButton/RetryButton";
|
|
7
|
+
import { QR } from "./components/qr/QR";
|
|
8
8
|
const DEEP_LINK_PREFIX = "https://gataca.page.link/?apn=com.gatacaapp&ibi=com.gataca.wallet&link=";
|
|
9
9
|
const DEFAULT_SESSION_TIMEOUT = 300;
|
|
10
10
|
const QR_ROLE_CONNECT = "connect";
|
|
@@ -13,7 +13,7 @@ const FUNCTION_ROLES = {
|
|
|
13
13
|
certify: "credential",
|
|
14
14
|
};
|
|
15
15
|
export class GatacaQRWS {
|
|
16
|
-
constructor() { this.successCallback = undefined; this.errorCallback = undefined; this.qrRole = undefined; this.callbackServer = undefined; this.socketEndpoint = undefined; this.sessionTimeout = DEFAULT_SESSION_TIMEOUT; this.wsOnOpen = undefined; this.wsOnMessage = undefined; this.autostart = true; this.autorefresh = false; this.v2 = false; this.qrModalTitle = "Quick Access"; this.qrModalDescription = "Sign up or sign in by scanning the QR Code with the Gataca Wallet"; this.hideBrandTitle = false; this.dynamicLink = true; this.sessionId = undefined; this.authenticationRequest = undefined; this.sessionData = undefined; this.result = RESULT_STATUS.NOT_STARTED; }
|
|
16
|
+
constructor() { this.successCallback = undefined; this.errorCallback = undefined; this.qrRole = undefined; this.callbackServer = undefined; this.socketEndpoint = undefined; this.sessionTimeout = DEFAULT_SESSION_TIMEOUT; this.wsOnOpen = undefined; this.wsOnMessage = undefined; this.autostart = true; this.autorefresh = false; this.v2 = false; this.qrModalTitle = "Quick Access"; this.modalTitleColor = "#4745B7"; this.qrModalDescription = "Sign up or sign in by scanning the QR Code with the Gataca Wallet"; this.hideModalTexts = false; this.hideModalBoxShadow = false; this.hideBrandTitle = false; this.logoSize = 0; this.logoSrc = logoGataca; this.qrSize = 300; this.modalWidth = 300; this.modalHeight = undefined; this.qrCodeExpiredLabel = "QR Code expired"; this.credentialsNotValidatedLabel = "User credentials not validated"; this.clickInsideBoxLabel = "Click inside the box to"; this.refreshQrLabel = "Refresh QR Code"; this.scanQrLabel = "Scan QR Code"; this.userNotScanInTimeErrorLabel = "User did not scan the QR in the allowed time"; this.credsNotValidatedErrorLabel = "Provided user credentials couldn't be validated"; this.failedLoginErrorLabel = "No successful login"; this.successLoginLabel = "Successful Connection!"; this.byBrandLabel = "by Gataca"; this.waitingStartSessionLabel = "waiting to start a session"; this.hideQrModalDescription = false; this.dynamicLink = true; this.sessionId = undefined; this.authenticationRequest = undefined; this.sessionData = undefined; this.result = RESULT_STATUS.NOT_STARTED; }
|
|
17
17
|
disconnectedCallback() {
|
|
18
18
|
this.stop();
|
|
19
19
|
}
|
|
@@ -143,28 +143,43 @@ export class GatacaQRWS {
|
|
|
143
143
|
case RESULT_STATUS.NOT_STARTED:
|
|
144
144
|
return this.renderRetryButton();
|
|
145
145
|
case RESULT_STATUS.ONGOING:
|
|
146
|
-
return this.renderQR(this.getLink(),
|
|
146
|
+
return this.renderQR(this.getLink(), true);
|
|
147
147
|
case RESULT_STATUS.EXPIRED:
|
|
148
|
-
return this.renderRetryButton(
|
|
148
|
+
return this.renderRetryButton(this.qrCodeExpiredLabel);
|
|
149
149
|
case RESULT_STATUS.FAILED:
|
|
150
|
-
return this.renderRetryButton(
|
|
150
|
+
return this.renderRetryButton(this.credentialsNotValidatedLabel);
|
|
151
151
|
case RESULT_STATUS.SUCCESS:
|
|
152
152
|
return this.renderSuccess();
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
155
|
renderSuccess() {
|
|
156
|
-
return (h(
|
|
156
|
+
return (h(Success, { modalHeight: this === null || this === void 0 ? void 0 : this.modalHeight, successLoginLabel: this === null || this === void 0 ? void 0 : this.successLoginLabel }));
|
|
157
157
|
}
|
|
158
158
|
renderRetryButton(errorMessage) {
|
|
159
|
-
return (h(
|
|
159
|
+
return (h(RetryButton, { errorMessage: errorMessage, modalWidth: this === null || this === void 0 ? void 0 : this.modalWidth, clickInsideBoxLabel: this === null || this === void 0 ? void 0 : this.clickInsideBoxLabel, refreshQrLabel: this === null || this === void 0 ? void 0 : this.refreshQrLabel, scanQrLabel: this === null || this === void 0 ? void 0 : this.scanQrLabel, waitingStartSessionLabel: this === null || this === void 0 ? void 0 : this.waitingStartSessionLabel, display: this.display.bind(this), renderRetryQR: this.renderRetryQR.bind(this) }));
|
|
160
160
|
}
|
|
161
|
-
renderQR(value,
|
|
162
|
-
return (h(
|
|
161
|
+
renderQR(value, useLogo) {
|
|
162
|
+
return (h(QR, { value: value, useLogo: useLogo, size: (this === null || this === void 0 ? void 0 : this.qrSize) || undefined, logoSrc: this === null || this === void 0 ? void 0 : this.logoSrc }));
|
|
163
|
+
}
|
|
164
|
+
renderRetryQR(value, useLogo) {
|
|
165
|
+
return (h(QR, { value: value, useLogo: useLogo, size: (this === null || this === void 0 ? void 0 : this.qrSize) ? (this === null || this === void 0 ? void 0 : this.qrSize) - 50 : undefined, logoSrc: this === null || this === void 0 ? void 0 : this.logoSrc }));
|
|
163
166
|
}
|
|
164
167
|
render() {
|
|
165
|
-
|
|
168
|
+
var _a, _b;
|
|
169
|
+
return (h("div", { class: "popUpContainer" }, h("div", { class: `is-visible modal-window ${this.hideModalTexts ? "" : "large-modal"} ${this.hideModalBoxShadow ? "noBoxShadow" : ""}`, style: {
|
|
170
|
+
width: (this.modalWidth - 2).toString() + "px",
|
|
171
|
+
height: this.modalHeight
|
|
172
|
+
? ((_a = (this.modalHeight - 2)) === null || _a === void 0 ? void 0 : _a.toString()) + "px"
|
|
173
|
+
: "",
|
|
174
|
+
}, onClick: (event) => {
|
|
166
175
|
event.stopPropagation();
|
|
167
|
-
} }, h("div", { class: "modal-window__content" }, h("div", { class:
|
|
176
|
+
} }, h("div", { class: "modal-window__content" }, h("div", { class: `qrTitleContainer ${this.hideModalTexts ? "hidenText" : ""}` }, h("p", { class: "qrTitle modalText", style: { color: this.modalTitleColor || "#1e1e20" } }, this.qrModalTitle), !this.hideBrandTitle && (h("p", { class: "qrBrand modalText" }, this.byBrandLabel, " ", h("span", null, h("img", { src: logoGataca })))), this.result !== RESULT_STATUS.SUCCESS &&
|
|
177
|
+
!this.hideQrModalDescription && (h("p", { class: "qrDescription modalText" }, this.qrModalDescription))), h("div", { class: "qrSection", style: {
|
|
178
|
+
width: this.modalWidth.toString() + "px",
|
|
179
|
+
height: this.modalWidth
|
|
180
|
+
? ((_b = this.modalWidth) === null || _b === void 0 ? void 0 : _b.toString()) + "px"
|
|
181
|
+
: "",
|
|
182
|
+
} }, this.renderQRSection())))));
|
|
168
183
|
}
|
|
169
184
|
static get is() { return "gataca-qrws"; }
|
|
170
185
|
static get encapsulation() { return "shadow"; }
|
|
@@ -398,6 +413,24 @@ export class GatacaQRWS {
|
|
|
398
413
|
"reflect": false,
|
|
399
414
|
"defaultValue": "\"Quick Access\""
|
|
400
415
|
},
|
|
416
|
+
"modalTitleColor": {
|
|
417
|
+
"type": "string",
|
|
418
|
+
"mutable": false,
|
|
419
|
+
"complexType": {
|
|
420
|
+
"original": "string",
|
|
421
|
+
"resolved": "string",
|
|
422
|
+
"references": {}
|
|
423
|
+
},
|
|
424
|
+
"required": false,
|
|
425
|
+
"optional": true,
|
|
426
|
+
"docs": {
|
|
427
|
+
"tags": [],
|
|
428
|
+
"text": "_[Optional]_\nString to set Modal title color"
|
|
429
|
+
},
|
|
430
|
+
"attribute": "modal-title-color",
|
|
431
|
+
"reflect": false,
|
|
432
|
+
"defaultValue": "\"#4745B7\""
|
|
433
|
+
},
|
|
401
434
|
"qrModalDescription": {
|
|
402
435
|
"type": "string",
|
|
403
436
|
"mutable": false,
|
|
@@ -416,6 +449,42 @@ export class GatacaQRWS {
|
|
|
416
449
|
"reflect": false,
|
|
417
450
|
"defaultValue": "\"Sign up or sign in by scanning the QR Code with the Gataca Wallet\""
|
|
418
451
|
},
|
|
452
|
+
"hideModalTexts": {
|
|
453
|
+
"type": "boolean",
|
|
454
|
+
"mutable": false,
|
|
455
|
+
"complexType": {
|
|
456
|
+
"original": "boolean",
|
|
457
|
+
"resolved": "boolean",
|
|
458
|
+
"references": {}
|
|
459
|
+
},
|
|
460
|
+
"required": false,
|
|
461
|
+
"optional": true,
|
|
462
|
+
"docs": {
|
|
463
|
+
"tags": [],
|
|
464
|
+
"text": "_[Optional]_\nBoolean to show or not show the modal title, brandTitle and description"
|
|
465
|
+
},
|
|
466
|
+
"attribute": "hide-modal-texts",
|
|
467
|
+
"reflect": false,
|
|
468
|
+
"defaultValue": "false"
|
|
469
|
+
},
|
|
470
|
+
"hideModalBoxShadow": {
|
|
471
|
+
"type": "boolean",
|
|
472
|
+
"mutable": false,
|
|
473
|
+
"complexType": {
|
|
474
|
+
"original": "boolean",
|
|
475
|
+
"resolved": "boolean",
|
|
476
|
+
"references": {}
|
|
477
|
+
},
|
|
478
|
+
"required": false,
|
|
479
|
+
"optional": true,
|
|
480
|
+
"docs": {
|
|
481
|
+
"tags": [],
|
|
482
|
+
"text": "_[Optional]_\nBoolean to show or not show the modal title, brandTitle and description"
|
|
483
|
+
},
|
|
484
|
+
"attribute": "hide-modal-box-shadow",
|
|
485
|
+
"reflect": false,
|
|
486
|
+
"defaultValue": "false"
|
|
487
|
+
},
|
|
419
488
|
"hideBrandTitle": {
|
|
420
489
|
"type": "boolean",
|
|
421
490
|
"mutable": false,
|
|
@@ -434,6 +503,311 @@ export class GatacaQRWS {
|
|
|
434
503
|
"reflect": false,
|
|
435
504
|
"defaultValue": "false"
|
|
436
505
|
},
|
|
506
|
+
"logoSize": {
|
|
507
|
+
"type": "number",
|
|
508
|
+
"mutable": false,
|
|
509
|
+
"complexType": {
|
|
510
|
+
"original": "number",
|
|
511
|
+
"resolved": "number",
|
|
512
|
+
"references": {}
|
|
513
|
+
},
|
|
514
|
+
"required": false,
|
|
515
|
+
"optional": true,
|
|
516
|
+
"docs": {
|
|
517
|
+
"tags": [],
|
|
518
|
+
"text": "_[Optional]_\nSize of the logo to display in percentage to the total size [0-1]. 0 means no logo will be displayed. Default is the GATACA logo. Recommended size is around 0.33"
|
|
519
|
+
},
|
|
520
|
+
"attribute": "logo-size",
|
|
521
|
+
"reflect": false,
|
|
522
|
+
"defaultValue": "0"
|
|
523
|
+
},
|
|
524
|
+
"logoSrc": {
|
|
525
|
+
"type": "string",
|
|
526
|
+
"mutable": false,
|
|
527
|
+
"complexType": {
|
|
528
|
+
"original": "string",
|
|
529
|
+
"resolved": "string",
|
|
530
|
+
"references": {}
|
|
531
|
+
},
|
|
532
|
+
"required": false,
|
|
533
|
+
"optional": true,
|
|
534
|
+
"docs": {
|
|
535
|
+
"tags": [],
|
|
536
|
+
"text": "_[Optional]_\nLogo to display, just if the logo size is greater than 0. No logo is the GATACA logo."
|
|
537
|
+
},
|
|
538
|
+
"attribute": "logo-src",
|
|
539
|
+
"reflect": false,
|
|
540
|
+
"defaultValue": "logoGataca"
|
|
541
|
+
},
|
|
542
|
+
"qrSize": {
|
|
543
|
+
"type": "number",
|
|
544
|
+
"mutable": false,
|
|
545
|
+
"complexType": {
|
|
546
|
+
"original": "number",
|
|
547
|
+
"resolved": "number",
|
|
548
|
+
"references": {}
|
|
549
|
+
},
|
|
550
|
+
"required": false,
|
|
551
|
+
"optional": true,
|
|
552
|
+
"docs": {
|
|
553
|
+
"tags": [],
|
|
554
|
+
"text": "_[Optional]_\nSize of QR Displayed"
|
|
555
|
+
},
|
|
556
|
+
"attribute": "qr-size",
|
|
557
|
+
"reflect": false,
|
|
558
|
+
"defaultValue": "300"
|
|
559
|
+
},
|
|
560
|
+
"modalWidth": {
|
|
561
|
+
"type": "number",
|
|
562
|
+
"mutable": false,
|
|
563
|
+
"complexType": {
|
|
564
|
+
"original": "number",
|
|
565
|
+
"resolved": "number",
|
|
566
|
+
"references": {}
|
|
567
|
+
},
|
|
568
|
+
"required": false,
|
|
569
|
+
"optional": true,
|
|
570
|
+
"docs": {
|
|
571
|
+
"tags": [],
|
|
572
|
+
"text": "_[Optional]_\nWidth of the modal"
|
|
573
|
+
},
|
|
574
|
+
"attribute": "modal-width",
|
|
575
|
+
"reflect": false,
|
|
576
|
+
"defaultValue": "300"
|
|
577
|
+
},
|
|
578
|
+
"modalHeight": {
|
|
579
|
+
"type": "number",
|
|
580
|
+
"mutable": false,
|
|
581
|
+
"complexType": {
|
|
582
|
+
"original": "number",
|
|
583
|
+
"resolved": "number",
|
|
584
|
+
"references": {}
|
|
585
|
+
},
|
|
586
|
+
"required": false,
|
|
587
|
+
"optional": true,
|
|
588
|
+
"docs": {
|
|
589
|
+
"tags": [],
|
|
590
|
+
"text": "_[Optional]_\nHeight of the modal"
|
|
591
|
+
},
|
|
592
|
+
"attribute": "modal-height",
|
|
593
|
+
"reflect": false
|
|
594
|
+
},
|
|
595
|
+
"qrCodeExpiredLabel": {
|
|
596
|
+
"type": "string",
|
|
597
|
+
"mutable": false,
|
|
598
|
+
"complexType": {
|
|
599
|
+
"original": "string",
|
|
600
|
+
"resolved": "string",
|
|
601
|
+
"references": {}
|
|
602
|
+
},
|
|
603
|
+
"required": false,
|
|
604
|
+
"optional": true,
|
|
605
|
+
"docs": {
|
|
606
|
+
"tags": [],
|
|
607
|
+
"text": "_[Optional]_\nString to show when qr code expired"
|
|
608
|
+
},
|
|
609
|
+
"attribute": "qr-code-expired-label",
|
|
610
|
+
"reflect": false,
|
|
611
|
+
"defaultValue": "\"QR Code expired\""
|
|
612
|
+
},
|
|
613
|
+
"credentialsNotValidatedLabel": {
|
|
614
|
+
"type": "string",
|
|
615
|
+
"mutable": false,
|
|
616
|
+
"complexType": {
|
|
617
|
+
"original": "string",
|
|
618
|
+
"resolved": "string",
|
|
619
|
+
"references": {}
|
|
620
|
+
},
|
|
621
|
+
"required": false,
|
|
622
|
+
"optional": true,
|
|
623
|
+
"docs": {
|
|
624
|
+
"tags": [],
|
|
625
|
+
"text": "_[Optional]_\nString to show when credentials not validatedd"
|
|
626
|
+
},
|
|
627
|
+
"attribute": "credentials-not-validated-label",
|
|
628
|
+
"reflect": false,
|
|
629
|
+
"defaultValue": "\"User credentials not validated\""
|
|
630
|
+
},
|
|
631
|
+
"clickInsideBoxLabel": {
|
|
632
|
+
"type": "string",
|
|
633
|
+
"mutable": false,
|
|
634
|
+
"complexType": {
|
|
635
|
+
"original": "string",
|
|
636
|
+
"resolved": "string",
|
|
637
|
+
"references": {}
|
|
638
|
+
},
|
|
639
|
+
"required": false,
|
|
640
|
+
"optional": true,
|
|
641
|
+
"docs": {
|
|
642
|
+
"tags": [],
|
|
643
|
+
"text": "_[Optional]_\nString to show \"click inside\" label"
|
|
644
|
+
},
|
|
645
|
+
"attribute": "click-inside-box-label",
|
|
646
|
+
"reflect": false,
|
|
647
|
+
"defaultValue": "\"Click inside the box to\""
|
|
648
|
+
},
|
|
649
|
+
"refreshQrLabel": {
|
|
650
|
+
"type": "string",
|
|
651
|
+
"mutable": false,
|
|
652
|
+
"complexType": {
|
|
653
|
+
"original": "string",
|
|
654
|
+
"resolved": "string",
|
|
655
|
+
"references": {}
|
|
656
|
+
},
|
|
657
|
+
"required": false,
|
|
658
|
+
"optional": true,
|
|
659
|
+
"docs": {
|
|
660
|
+
"tags": [],
|
|
661
|
+
"text": "_[Optional]_\nString to show \"refresh QR\" label"
|
|
662
|
+
},
|
|
663
|
+
"attribute": "refresh-qr-label",
|
|
664
|
+
"reflect": false,
|
|
665
|
+
"defaultValue": "\"Refresh QR Code\""
|
|
666
|
+
},
|
|
667
|
+
"scanQrLabel": {
|
|
668
|
+
"type": "string",
|
|
669
|
+
"mutable": false,
|
|
670
|
+
"complexType": {
|
|
671
|
+
"original": "string",
|
|
672
|
+
"resolved": "string",
|
|
673
|
+
"references": {}
|
|
674
|
+
},
|
|
675
|
+
"required": false,
|
|
676
|
+
"optional": true,
|
|
677
|
+
"docs": {
|
|
678
|
+
"tags": [],
|
|
679
|
+
"text": "_[Optional]_\nString to show \"scan QR\" label"
|
|
680
|
+
},
|
|
681
|
+
"attribute": "scan-qr-label",
|
|
682
|
+
"reflect": false,
|
|
683
|
+
"defaultValue": "\"Scan QR Code\""
|
|
684
|
+
},
|
|
685
|
+
"userNotScanInTimeErrorLabel": {
|
|
686
|
+
"type": "string",
|
|
687
|
+
"mutable": false,
|
|
688
|
+
"complexType": {
|
|
689
|
+
"original": "string",
|
|
690
|
+
"resolved": "string",
|
|
691
|
+
"references": {}
|
|
692
|
+
},
|
|
693
|
+
"required": false,
|
|
694
|
+
"optional": true,
|
|
695
|
+
"docs": {
|
|
696
|
+
"tags": [],
|
|
697
|
+
"text": "_[Optional]_\nString to show \"user not scan in time\" error"
|
|
698
|
+
},
|
|
699
|
+
"attribute": "user-not-scan-in-time-error-label",
|
|
700
|
+
"reflect": false,
|
|
701
|
+
"defaultValue": "\"User did not scan the QR in the allowed time\""
|
|
702
|
+
},
|
|
703
|
+
"credsNotValidatedErrorLabel": {
|
|
704
|
+
"type": "string",
|
|
705
|
+
"mutable": false,
|
|
706
|
+
"complexType": {
|
|
707
|
+
"original": "string",
|
|
708
|
+
"resolved": "string",
|
|
709
|
+
"references": {}
|
|
710
|
+
},
|
|
711
|
+
"required": false,
|
|
712
|
+
"optional": true,
|
|
713
|
+
"docs": {
|
|
714
|
+
"tags": [],
|
|
715
|
+
"text": "_[Optional]_\nString to show \"provided credentials not validates\" error"
|
|
716
|
+
},
|
|
717
|
+
"attribute": "creds-not-validated-error-label",
|
|
718
|
+
"reflect": false,
|
|
719
|
+
"defaultValue": "\"Provided user credentials couldn't be validated\""
|
|
720
|
+
},
|
|
721
|
+
"failedLoginErrorLabel": {
|
|
722
|
+
"type": "string",
|
|
723
|
+
"mutable": false,
|
|
724
|
+
"complexType": {
|
|
725
|
+
"original": "string",
|
|
726
|
+
"resolved": "string",
|
|
727
|
+
"references": {}
|
|
728
|
+
},
|
|
729
|
+
"required": false,
|
|
730
|
+
"optional": true,
|
|
731
|
+
"docs": {
|
|
732
|
+
"tags": [],
|
|
733
|
+
"text": "_[Optional]_\nString to show \"failed login\" error"
|
|
734
|
+
},
|
|
735
|
+
"attribute": "failed-login-error-label",
|
|
736
|
+
"reflect": false,
|
|
737
|
+
"defaultValue": "\"No successful login\""
|
|
738
|
+
},
|
|
739
|
+
"successLoginLabel": {
|
|
740
|
+
"type": "string",
|
|
741
|
+
"mutable": false,
|
|
742
|
+
"complexType": {
|
|
743
|
+
"original": "string",
|
|
744
|
+
"resolved": "string",
|
|
745
|
+
"references": {}
|
|
746
|
+
},
|
|
747
|
+
"required": false,
|
|
748
|
+
"optional": true,
|
|
749
|
+
"docs": {
|
|
750
|
+
"tags": [],
|
|
751
|
+
"text": "_[Optional]_\nString to show \"successful login\" label"
|
|
752
|
+
},
|
|
753
|
+
"attribute": "success-login-label",
|
|
754
|
+
"reflect": false,
|
|
755
|
+
"defaultValue": "\"Successful Connection!\""
|
|
756
|
+
},
|
|
757
|
+
"byBrandLabel": {
|
|
758
|
+
"type": "string",
|
|
759
|
+
"mutable": false,
|
|
760
|
+
"complexType": {
|
|
761
|
+
"original": "string",
|
|
762
|
+
"resolved": "string",
|
|
763
|
+
"references": {}
|
|
764
|
+
},
|
|
765
|
+
"required": false,
|
|
766
|
+
"optional": true,
|
|
767
|
+
"docs": {
|
|
768
|
+
"tags": [],
|
|
769
|
+
"text": "_[Optional]_\nString to show \"by brand\" label"
|
|
770
|
+
},
|
|
771
|
+
"attribute": "by-brand-label",
|
|
772
|
+
"reflect": false,
|
|
773
|
+
"defaultValue": "\"by Gataca\""
|
|
774
|
+
},
|
|
775
|
+
"waitingStartSessionLabel": {
|
|
776
|
+
"type": "string",
|
|
777
|
+
"mutable": false,
|
|
778
|
+
"complexType": {
|
|
779
|
+
"original": "string",
|
|
780
|
+
"resolved": "string",
|
|
781
|
+
"references": {}
|
|
782
|
+
},
|
|
783
|
+
"required": false,
|
|
784
|
+
"optional": true,
|
|
785
|
+
"docs": {
|
|
786
|
+
"tags": [],
|
|
787
|
+
"text": "_[Optional]_\nString to show \"waiting start session\" label"
|
|
788
|
+
},
|
|
789
|
+
"attribute": "waiting-start-session-label",
|
|
790
|
+
"reflect": false,
|
|
791
|
+
"defaultValue": "\"waiting to start a session\""
|
|
792
|
+
},
|
|
793
|
+
"hideQrModalDescription": {
|
|
794
|
+
"type": "boolean",
|
|
795
|
+
"mutable": false,
|
|
796
|
+
"complexType": {
|
|
797
|
+
"original": "boolean",
|
|
798
|
+
"resolved": "boolean",
|
|
799
|
+
"references": {}
|
|
800
|
+
},
|
|
801
|
+
"required": false,
|
|
802
|
+
"optional": true,
|
|
803
|
+
"docs": {
|
|
804
|
+
"tags": [],
|
|
805
|
+
"text": "_[Optional]_\nBoolean to show or not show the QR Modal description"
|
|
806
|
+
},
|
|
807
|
+
"attribute": "hide-qr-modal-description",
|
|
808
|
+
"reflect": false,
|
|
809
|
+
"defaultValue": "false"
|
|
810
|
+
},
|
|
437
811
|
"dynamicLink": {
|
|
438
812
|
"type": "boolean",
|
|
439
813
|
"mutable": false,
|
|
@@ -37,7 +37,7 @@ const QR = (props) => {
|
|
|
37
37
|
return (h("gataca-qrdisplay", { qrData: value, rounded: true, size: size, "logo-size": useLogo ? 0.33 : 0, "logo-src": logoSrc }));
|
|
38
38
|
};
|
|
39
39
|
|
|
40
|
-
const gatacaQrCss = "@import url(\"https://fonts.googleapis.com/css2?family=Ubuntu:wght@100;300;400;500;600;700&display=swap\"); @import url(\"https://fonts.googleapis.com/css2?family=Poppins:wght@100;300;400;500;600;700&display=swap\"); @import url(\"https://fonts.googleapis.com/css2?family=Work+Sans:wght@300;400&display=swap\"); html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:\"\";content:none}table{border-collapse:collapse;border-spacing:0}.img-fluid{height:auto;max-width:50%}img{margin-left:auto;margin-right:auto}.brandSection{padding-top:5px;display:flex;align-items:center}.brandSection .gatacaImgSmall{height:13px;width:13px;margin:0;margin-right:10px}.popUpContainer .large-modal{width:300px;min-height:350px}.popUpContainer .modal-window{position:relative;border-radius:6px;overflow:hidden;color:rgba(24, 27, 94, 0.8);box-shadow:0px 3px 10px rgba(48, 48, 48, 0.1);display:flex;flex-direction:column;justify-content:space-between;align-items:center;display:flex;z-index:1001;padding:1px;background-color:white;border-radius:12px;-webkit-transition:opacity 0.5s, visibility 0s 0.5s;transition:opacity 0.5s, visibility 0s 0.5s;visibility:hidden;opacity:0}.popUpContainer .modal-window__content{width:100%;height:100%;text-align:left}.popUpContainer .modal-window__content .hidenText{display:none}.popUpContainer .modal-window .modalText{font-family:\"Ubuntu\", \"Work Sans\", \"Helvetica Neue\", sans-serif;font-size:20px;font-style:normal;font-weight:700;line-height:24px;margin-top:10px;letter-spacing:1px}.popUpContainer .modal-window .qrTitleContainer{padding:14px 24px;padding-bottom:0px}.popUpContainer .modal-window .qrTitle{font-size:20px;font-weight:600;line-height:23.5px}.popUpContainer .modal-window .qrDescription{font-family
|
|
40
|
+
const gatacaQrCss = "@import url(\"https://fonts.googleapis.com/css2?family=Ubuntu:wght@100;300;400;500;600;700&display=swap\"); @import url(\"https://fonts.googleapis.com/css2?family=Poppins:wght@100;300;400;500;600;700&display=swap\"); @import url(\"https://fonts.googleapis.com/css2?family=Work+Sans:wght@300;400&display=swap\"); html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:\"\";content:none}table{border-collapse:collapse;border-spacing:0}.img-fluid{height:auto;max-width:50%}img{margin-left:auto;margin-right:auto}.brandSection{padding-top:5px;display:flex;align-items:center}.brandSection .gatacaImgSmall{height:13px;width:13px;margin:0;margin-right:10px}.popUpContainer .large-modal{width:300px;min-height:350px}.popUpContainer .modal-window{position:relative;border-radius:6px;overflow:hidden;color:rgba(24, 27, 94, 0.8);box-shadow:0px 3px 10px rgba(48, 48, 48, 0.1);display:flex;flex-direction:column;justify-content:space-between;align-items:center;display:flex;z-index:1001;padding:1px;background-color:white;border-radius:12px;-webkit-transition:opacity 0.5s, visibility 0s 0.5s;transition:opacity 0.5s, visibility 0s 0.5s;visibility:hidden;opacity:0}.popUpContainer .modal-window__content{width:100%;height:100%;text-align:left}.popUpContainer .modal-window__content .hidenText{display:none}.popUpContainer .modal-window .modalText{font-family:\"Ubuntu\", \"Work Sans\", \"Helvetica Neue\", sans-serif;font-size:20px;font-style:normal;font-weight:700;line-height:24px;margin-top:10px;letter-spacing:1px}.popUpContainer .modal-window .qrTitleContainer{padding:14px 24px;padding-bottom:0px}.popUpContainer .modal-window .qrTitle{font-size:20px;font-weight:600;line-height:23.5px}.popUpContainer .modal-window .qrDescription{font-family:\"Poppins\", \"Ubuntu\", \"Work Sans\", \"Helvetica Neue\", sans-serif;font-size:14px;font-style:normal;font-weight:400;line-height:16px;color:#707074}.popUpContainer .modal-window .bold{font-weight:600}.popUpContainer .modal-window .qrBrand{margin-top:4px;font-size:14px;font-weight:400;line-height:16.5px;display:flex;align-items:center}.popUpContainer .modal-window .qrBrand img{margin-left:5px;height:12px}.popUpContainer .modal-window .qr-section{width:252px;height:252px}.popUpContainer .noBoxShadow{box-shadow:none}.popUpContainer .is-visible{opacity:1;visibility:visible}.is-transparent{opacity:0}.success{display:flex;height:300px;flex-direction:column;justify-content:center;align-items:center;padding:0px}.success>img{padding-bottom:12px}.success>.successMsg{line-height:23.5px;color:var(--neutral-1000, #1e1e20);text-align:center;font-family:\"Ubuntu\", \"Work Sans\", \"Helvetica Neue\", sans-serif;font-size:20px;font-style:normal;font-weight:700;line-height:24px}.reload{height:252px;width:252px;border:1px dashed #a1a1a1;border-radius:12px;position:relative;top:24px;margin:0 24px 24px;display:flex;overflow:hidden;justify-content:center;align-items:center}#qrwait{display:flex;justify-content:center}#qrwait,#notify{width:100%;height:100%;top:0;left:0;border-radius:20px}#notify{z-index:10;position:absolute;justify-self:center;justify-items:center;justify-content:center;align-items:center;align-content:center;display:flex;flex-direction:column;box-sizing:border-box;padding:20px;background:rgba(255, 255, 255, 0.95)}#notify>img{padding-bottom:12px}.alert{display:flex;flex-direction:row;justify-content:start;width:252px;position:absolute;bottom:0px;border:1px solid #ee888c;background:#ffdedf;border-radius:11px;box-sizing:border-box;padding:12px;align-items:center;gap:12px}.alert>img{margin:0}.alert>p{font-family:\"Poppins\", \"Ubuntu\", \"Work Sans\", \"Helvetica Neue\", sans-serif;font-size:14px;font-style:normal;font-weight:400;margin-top:0;line-height:16px;color:#1e1e20}.notify-text{font-family:\"Poppins\", \"Ubuntu\", \"Work Sans\", \"Helvetica Neue\", sans-serif;font-size:14px;font-style:normal;font-weight:400;line-height:16px;color:#707074;text-align:center}";
|
|
41
41
|
|
|
42
42
|
const DEEP_LINK_PREFIX = "https://gataca.page.link/?apn=com.gatacaapp&ibi=com.gataca.wallet&link=";
|
|
43
43
|
//Default values
|
|
@@ -189,7 +189,7 @@ const GatacaQR = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
189
189
|
return (h(Success, { modalHeight: this === null || this === void 0 ? void 0 : this.modalHeight, successLoginLabel: this === null || this === void 0 ? void 0 : this.successLoginLabel }));
|
|
190
190
|
}
|
|
191
191
|
renderRetryButton(errorMessage) {
|
|
192
|
-
return (h(RetryButton, { errorMessage: errorMessage, modalWidth: this === null || this === void 0 ? void 0 : this.modalWidth, clickInsideBoxLabel: this === null || this === void 0 ? void 0 : this.clickInsideBoxLabel, refreshQrLabel: this === null || this === void 0 ? void 0 : this.refreshQrLabel, scanQrLabel: this === null || this === void 0 ? void 0 : this.scanQrLabel, waitingStartSessionLabel: this === null || this === void 0 ? void 0 : this.waitingStartSessionLabel, display: this
|
|
192
|
+
return (h(RetryButton, { errorMessage: errorMessage, modalWidth: this === null || this === void 0 ? void 0 : this.modalWidth, clickInsideBoxLabel: this === null || this === void 0 ? void 0 : this.clickInsideBoxLabel, refreshQrLabel: this === null || this === void 0 ? void 0 : this.refreshQrLabel, scanQrLabel: this === null || this === void 0 ? void 0 : this.scanQrLabel, waitingStartSessionLabel: this === null || this === void 0 ? void 0 : this.waitingStartSessionLabel, display: this.display.bind(this), renderRetryQR: this.renderRetryQR.bind(this) }));
|
|
193
193
|
}
|
|
194
194
|
renderQR(value, useLogo) {
|
|
195
195
|
return (h(QR, { value: value, useLogo: useLogo, size: (this === null || this === void 0 ? void 0 : this.qrSize) || undefined, logoSrc: this === null || this === void 0 ? void 0 : this.logoSrc }));
|
|
@@ -199,7 +199,6 @@ const GatacaQR = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
199
199
|
}
|
|
200
200
|
render() {
|
|
201
201
|
var _a, _b;
|
|
202
|
-
console.log("result", this.result);
|
|
203
202
|
return (h("div", { class: "popUpContainer" }, h("div", { class: `is-visible modal-window ${this.hideModalTexts ? "" : "large-modal"} ${this.hideModalBoxShadow ? "noBoxShadow" : ""}`, style: {
|
|
204
203
|
width: (this.modalWidth - 2).toString() + "px",
|
|
205
204
|
height: this.modalHeight
|