@gataca/qr 2.0.2 → 2.0.4
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-autoqr.cjs.entry.js +105 -0
- package/dist/cjs/gataca-qr_2.cjs.entry.js +219 -0
- package/dist/cjs/gataca-qrws.cjs.entry.js +176 -0
- package/dist/cjs/gataca-ssibutton_2.cjs.entry.js +129 -0
- package/dist/cjs/gatacaqr.cjs.js +19 -0
- package/dist/cjs/index-4be0cdca.js +1435 -0
- package/dist/cjs/index.cjs.js +16 -0
- package/dist/cjs/loader.cjs.js +21 -0
- package/dist/cjs/logo_gataca-f3dc6840.js +14 -0
- package/dist/cjs/qr-code-styling-412bbc7a.js +28 -0
- package/dist/cjs/utils-383ee834.js +26 -0
- package/dist/collection/assets/icons/gat-icon-alert.svg +5 -0
- package/dist/collection/assets/icons/gat-icon-check.svg +5 -0
- package/dist/collection/assets/icons/gat-icon-refresh.svg +4 -0
- package/dist/collection/assets/images/logo_gataca.svg +26 -0
- package/dist/collection/collection-manifest.json +17 -0
- package/dist/collection/components/gataca-autoqr/gataca-autoqr.css +116 -0
- package/dist/collection/components/gataca-autoqr/gataca-autoqr.js +323 -0
- package/dist/collection/components/gataca-qr/gataca-qr.css +261 -0
- package/dist/collection/components/gataca-qr/gataca-qr.js +828 -0
- package/dist/collection/components/gataca-qrdisplay/gataca-qrdisplay.js +154 -0
- package/dist/collection/components/gataca-qrws/gataca-qrws.css +251 -0
- package/dist/collection/components/gataca-qrws/gataca-qrws.js +566 -0
- package/dist/collection/components/gataca-ssibutton/gataca-ssibutton.css +116 -0
- package/dist/collection/components/gataca-ssibutton/gataca-ssibutton.js +679 -0
- package/dist/collection/components/gataca-ssibuttonws/gataca-ssibuttonws.css +116 -0
- package/dist/collection/components/gataca-ssibuttonws/gataca-ssibuttonws.js +410 -0
- package/dist/collection/index.js +2 -0
- package/dist/collection/utils/index.js +1 -0
- package/dist/collection/utils/utils.js +21 -0
- package/dist/{gatacaqr/gat-icon-refresh-8d3dc25f.js → components/gat-icon-refresh.js} +23 -1
- package/dist/components/gataca-autoqr.js +161 -0
- package/dist/components/gataca-qr.js +6 -0
- package/dist/components/gataca-qr2.js +227 -0
- package/dist/components/gataca-qrdisplay.js +6 -0
- package/dist/components/gataca-qrdisplay2.js +93 -0
- package/dist/components/gataca-qrws.js +6 -0
- package/dist/components/gataca-qrws2.js +212 -0
- package/dist/components/gataca-ssibutton.js +6 -0
- package/dist/{gatacaqr/gataca-ssibutton.entry.js → components/gataca-ssibutton2.js} +83 -9
- package/dist/components/gataca-ssibuttonws.js +6 -0
- package/dist/{gatacaqr/gataca-ssibuttonws.entry.js → components/gataca-ssibuttonws2.js} +53 -7
- package/dist/components/index.js +8 -0
- package/dist/{gatacaqr → esm}/gataca-autoqr.entry.js +1 -1
- package/dist/esm/gataca-qr_2.entry.js +214 -0
- package/dist/{gatacaqr → esm}/gataca-qrws.entry.js +4 -4
- package/dist/esm/gataca-ssibutton_2.entry.js +124 -0
- package/dist/esm/gatacaqr.js +17 -0
- package/dist/esm/index-80311733.js +1409 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/loader.js +17 -0
- package/dist/esm/logo_gataca-57ad0363.js +9 -0
- package/dist/esm/polyfills/core-js.js +11 -0
- package/dist/esm/polyfills/css-shim.js +1 -0
- package/dist/esm/polyfills/dom.js +79 -0
- package/dist/esm/polyfills/es5-html-element.js +1 -0
- package/dist/esm/polyfills/index.js +34 -0
- package/dist/esm/polyfills/system.js +6 -0
- package/dist/esm/qr-code-styling-0eeb38d5.js +26 -0
- package/dist/gatacaqr/gatacaqr.esm.js +1 -129
- package/dist/gatacaqr/index.esm.js +1 -1
- package/dist/gatacaqr/p-0be4566d.js +1 -0
- package/dist/gatacaqr/p-5b17ef39.entry.js +1 -0
- package/dist/gatacaqr/p-5eb106c0.entry.js +1 -0
- package/dist/gatacaqr/p-66ad21ac.entry.js +1 -0
- package/dist/gatacaqr/p-6adc6933.js +1 -0
- package/dist/gatacaqr/p-a5648391.js +2 -0
- package/dist/gatacaqr/p-b834ef88.entry.js +1 -0
- package/dist/gatacaqr/p-b8ba109f.js +1 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/types/components/gataca-qr/gataca-qr.d.ts +76 -1
- package/dist/types/components/gataca-ssibutton/gataca-ssibutton.d.ts +75 -0
- package/dist/types/components.d.ts +242 -2
- package/package.json +2 -2
- package/dist/gatacaqr/app-globals-0f993ce5.js +0 -3
- package/dist/gatacaqr/css-shim-8eec97b3.js +0 -4
- package/dist/gatacaqr/dom-1b0cf05d.js +0 -73
- package/dist/gatacaqr/gataca-qr.entry.js +0 -171
- package/dist/gatacaqr/gataca-qrdisplay-0320bb25.js +0 -97
- package/dist/gatacaqr/gataca-qrdisplay.entry.js +0 -2
- package/dist/gatacaqr/index-d0db23e4.js +0 -3262
- package/dist/gatacaqr/shadow-css-146f2f6f.js +0 -387
- /package/dist/{gatacaqr → esm}/utils-05ba6c9f.js +0 -0
|
@@ -0,0 +1,679 @@
|
|
|
1
|
+
import { h, } from "@stencil/core";
|
|
2
|
+
import "../gataca-qrdisplay/gataca-qrdisplay";
|
|
3
|
+
const PHONE_ICON = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABsAAAAbCAYAAACN1PRVAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAHvSURBVHgB3ZZPTttAFMbfe3YjL7qYLopcpZXSG7Q3CDfIsqrSJpyg5QQtJ2h7glgUdVs4AeEE5AYEQSDAgtnw357Hm0hAQDaeIRFCfFKyeKPxzzPzvc+DUKCZN80GEv1ABgWOQgSdGbOwv7u0nDueV4zjTzUIKhuAZna4vdQFR828azbI0K/TI/qodaLvjlP+tLDGDCs+IKv9Lbsi7kcv0w9541Q0EREPYcoieEQ9KiyECRXHzbpBUOcnYTfPFOOaaGVx9WsLiDrSIp0iU0wFNgIx/AQyc9I/OmOjy+Y8aBvHQcDUYebewc6/Xtk8J5htcg5efEPGhk0JtqkyBjo7DuZcnuO2sqCyKv8rUDmfTS9IBURqBAL+I6CkzBjOMOs22TLY21n8fl17KzXR3uDvb/CQk0GEdfvN07QvpnAOaGfYaRT25JzU6+rnG2tTpcWAy+Cp0m3U/URLms8HWfg/rn6RFaGSs9KQkZMpvGBWNs2Vandt46ac6YNBuc0fDLMaOU5DFybQ8039p/KJ4bq4rwPewtqoM/1gsCm/NfBXvWjgHhhuDAeLyd3qVSifHQULeZkou9EqemLhmUmav8qrZ4GEMGA7ivzjKvfeqGptFV2YdWPMPHHq0cCh3DdpVdLl/XCY9J1gVvbCiWa6N+JLocPFjCsx9cAAAAAASUVORK5CYII=";
|
|
4
|
+
export class GatacaSSIButton {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.buttonText = "Easy login";
|
|
7
|
+
this.checkStatus = undefined;
|
|
8
|
+
this.createSession = undefined;
|
|
9
|
+
this.successCallback = undefined;
|
|
10
|
+
this.errorCallback = undefined;
|
|
11
|
+
this.qrRole = undefined;
|
|
12
|
+
this.callbackServer = undefined;
|
|
13
|
+
this.sessionTimeout = undefined;
|
|
14
|
+
this.pollingFrequency = undefined;
|
|
15
|
+
this.autorefresh = false;
|
|
16
|
+
this.v2 = false;
|
|
17
|
+
this.qrModalTitle = "Quick Access";
|
|
18
|
+
this.modalTitleColor = "#4745B7";
|
|
19
|
+
this.qrModalDescription = "Sign up or sign in by scanning the QR Code with the Gataca Wallet";
|
|
20
|
+
this.hideBrandTitle = false;
|
|
21
|
+
this.dynamicLink = true;
|
|
22
|
+
this.logoSize = 0;
|
|
23
|
+
this.logoSrc = undefined;
|
|
24
|
+
this.qrCodeExpiredLabel = "QR Code expired";
|
|
25
|
+
this.credentialsNotValidatedLabel = "User credentials not validated";
|
|
26
|
+
this.clickInsideBoxLabel = "Click inside the box to";
|
|
27
|
+
this.refreshQrLabel = "Refresh QR Code";
|
|
28
|
+
this.scanQrLabel = "Scan QR Code";
|
|
29
|
+
this.userNotScanInTimeErrorLabel = "User did not scan the QR in the allowed time";
|
|
30
|
+
this.credsNotValidatedErrorLabel = "Provided user credentials couldn't be validated";
|
|
31
|
+
this.failedLoginErrorLabel = "No successful login";
|
|
32
|
+
this.successLoginLabel = "Successful Connection!";
|
|
33
|
+
this.byBrandLabel = "by Gataca";
|
|
34
|
+
this.waitingStartSessionLabel = "waiting to start a session";
|
|
35
|
+
this.hideQrModalDescription = false;
|
|
36
|
+
this.open = false;
|
|
37
|
+
this.qr = (h("gataca-qr", { checkStatus: this.checkStatus, createSession: this.createSession, successCallback: this.successCallback, errorCallback: this.errorCallback, qrRole: this.qrRole, callbackServer: this.callbackServer, sessionTimeout: this.sessionTimeout, pollingFrequency: this.pollingFrequency, autostart: true, autorefresh: this.autorefresh, v2: this.v2, qrModalTitle: this.qrModalTitle, qrModalDescription: this.qrModalDescription, hideBrandTitle: this.hideBrandTitle, dynamicLink: this.dynamicLink, logoSize: this.logoSize, logoSrc: this.logoSrc, modalTitleColor: this.modalTitleColor, qrCodeExpiredLabel: this.qrCodeExpiredLabel, credentialsNotValidatedLabel: this.credentialsNotValidatedLabel, clickInsideBoxLabel: this.clickInsideBoxLabel, refreshQrLabel: this.refreshQrLabel, scanQrLabel: this.scanQrLabel, userNotScanInTimeErrorLabel: this.userNotScanInTimeErrorLabel, credsNotValidatedErrorLabel: this.credsNotValidatedErrorLabel, failedLoginErrorLabel: this.failedLoginErrorLabel, successLoginLabel: this.successLoginLabel, byBrandLabel: this.byBrandLabel, waitingStartSessionLabel: this.waitingStartSessionLabel, hideQrModalDescription: this.hideQrModalDescription }));
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Retrieve manually the session data on a successful login
|
|
41
|
+
*/
|
|
42
|
+
async getSessionData() {
|
|
43
|
+
return this.qr.getSessionData();
|
|
44
|
+
}
|
|
45
|
+
renderModal() {
|
|
46
|
+
return this.qr;
|
|
47
|
+
}
|
|
48
|
+
renderButton() {
|
|
49
|
+
return (h("div", { class: "gatacaButtonWrapper" }, h("button", { class: "gatacaButton", onClick: () => {
|
|
50
|
+
this.open = !this.open;
|
|
51
|
+
if (this.open) {
|
|
52
|
+
this.qr.display();
|
|
53
|
+
}
|
|
54
|
+
else {
|
|
55
|
+
this.qr.stop();
|
|
56
|
+
}
|
|
57
|
+
} }, h("img", { src: PHONE_ICON, class: "buttonImg", alt: this.buttonText }), h("span", null, this.buttonText))));
|
|
58
|
+
}
|
|
59
|
+
render() {
|
|
60
|
+
return (h("div", { class: "buttonContainer" }, this.renderButton(), this.open && this.renderModal()));
|
|
61
|
+
}
|
|
62
|
+
static get is() { return "gataca-ssibutton"; }
|
|
63
|
+
static get encapsulation() { return "shadow"; }
|
|
64
|
+
static get originalStyleUrls() {
|
|
65
|
+
return {
|
|
66
|
+
"$": ["gataca-ssibutton.scss"]
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
static get styleUrls() {
|
|
70
|
+
return {
|
|
71
|
+
"$": ["gataca-ssibutton.css"]
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
static get properties() {
|
|
75
|
+
return {
|
|
76
|
+
"buttonText": {
|
|
77
|
+
"type": "string",
|
|
78
|
+
"mutable": false,
|
|
79
|
+
"complexType": {
|
|
80
|
+
"original": "string",
|
|
81
|
+
"resolved": "string",
|
|
82
|
+
"references": {}
|
|
83
|
+
},
|
|
84
|
+
"required": false,
|
|
85
|
+
"optional": true,
|
|
86
|
+
"docs": {
|
|
87
|
+
"tags": [],
|
|
88
|
+
"text": "_[Optional]_\nIn the case of being a button, modifies its text"
|
|
89
|
+
},
|
|
90
|
+
"attribute": "button-text",
|
|
91
|
+
"reflect": false,
|
|
92
|
+
"defaultValue": "\"Easy login\""
|
|
93
|
+
},
|
|
94
|
+
"checkStatus": {
|
|
95
|
+
"type": "unknown",
|
|
96
|
+
"mutable": false,
|
|
97
|
+
"complexType": {
|
|
98
|
+
"original": "(\n id?: string\n ) => Promise<{ result: RESULT_STATUS; data?: any }>",
|
|
99
|
+
"resolved": "(id?: string) => Promise<{ result: RESULT_STATUS; data?: any; }>",
|
|
100
|
+
"references": {
|
|
101
|
+
"Promise": {
|
|
102
|
+
"location": "global"
|
|
103
|
+
},
|
|
104
|
+
"RESULT_STATUS": {
|
|
105
|
+
"location": "import",
|
|
106
|
+
"path": "../../utils/utils"
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
"required": false,
|
|
111
|
+
"optional": true,
|
|
112
|
+
"docs": {
|
|
113
|
+
"tags": [],
|
|
114
|
+
"text": "***Mandatory***\nCheck status function to query the current status of the session\nThe function must query a client endpoint to check the status. That endpoint must return an error if the session has expired."
|
|
115
|
+
},
|
|
116
|
+
"defaultValue": "undefined"
|
|
117
|
+
},
|
|
118
|
+
"createSession": {
|
|
119
|
+
"type": "unknown",
|
|
120
|
+
"mutable": false,
|
|
121
|
+
"complexType": {
|
|
122
|
+
"original": "() => Promise<{\n sessionId: string;\n authenticationRequest?: string;\n }>",
|
|
123
|
+
"resolved": "() => Promise<{ sessionId: string; authenticationRequest?: string; }>",
|
|
124
|
+
"references": {
|
|
125
|
+
"Promise": {
|
|
126
|
+
"location": "global"
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
"required": false,
|
|
131
|
+
"optional": true,
|
|
132
|
+
"docs": {
|
|
133
|
+
"tags": [],
|
|
134
|
+
"text": "***Mandatory***\nCreate session function to generate a new Session\nUsing V1, it can provide just a session Id\nUsing V2, it must provide also the authentication request. The session Id is the id of the presentation definition"
|
|
135
|
+
},
|
|
136
|
+
"defaultValue": "undefined"
|
|
137
|
+
},
|
|
138
|
+
"successCallback": {
|
|
139
|
+
"type": "unknown",
|
|
140
|
+
"mutable": false,
|
|
141
|
+
"complexType": {
|
|
142
|
+
"original": "(data?: any) => void",
|
|
143
|
+
"resolved": "(data?: any) => void",
|
|
144
|
+
"references": {}
|
|
145
|
+
},
|
|
146
|
+
"required": false,
|
|
147
|
+
"optional": false,
|
|
148
|
+
"docs": {
|
|
149
|
+
"tags": [],
|
|
150
|
+
"text": "***Mandatory***\nCallback fired upon session correctly verified\nIf not set, session validation wouldn't trigger any action\nThe session data and a possible token will be sent as parameters to the callback"
|
|
151
|
+
},
|
|
152
|
+
"defaultValue": "undefined"
|
|
153
|
+
},
|
|
154
|
+
"errorCallback": {
|
|
155
|
+
"type": "unknown",
|
|
156
|
+
"mutable": false,
|
|
157
|
+
"complexType": {
|
|
158
|
+
"original": "(error?: Error) => void",
|
|
159
|
+
"resolved": "(error?: Error) => void",
|
|
160
|
+
"references": {
|
|
161
|
+
"Error": {
|
|
162
|
+
"location": "global"
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
"required": false,
|
|
167
|
+
"optional": false,
|
|
168
|
+
"docs": {
|
|
169
|
+
"tags": [],
|
|
170
|
+
"text": "***Mandatory***\nCallback fired upon session expired or invalid\nIf not set, session error would not be handled\nAn error containing information will be passed as parameter"
|
|
171
|
+
},
|
|
172
|
+
"defaultValue": "undefined"
|
|
173
|
+
},
|
|
174
|
+
"qrRole": {
|
|
175
|
+
"type": "string",
|
|
176
|
+
"mutable": false,
|
|
177
|
+
"complexType": {
|
|
178
|
+
"original": "string",
|
|
179
|
+
"resolved": "string",
|
|
180
|
+
"references": {}
|
|
181
|
+
},
|
|
182
|
+
"required": false,
|
|
183
|
+
"optional": false,
|
|
184
|
+
"docs": {
|
|
185
|
+
"tags": [],
|
|
186
|
+
"text": "***Mandatory***\nDecide if scanning the credential as a verifier to request credentials\nor as an issuer too issue credentials.\nOptions: connect | certify"
|
|
187
|
+
},
|
|
188
|
+
"attribute": "qr-role",
|
|
189
|
+
"reflect": false
|
|
190
|
+
},
|
|
191
|
+
"callbackServer": {
|
|
192
|
+
"type": "string",
|
|
193
|
+
"mutable": false,
|
|
194
|
+
"complexType": {
|
|
195
|
+
"original": "string",
|
|
196
|
+
"resolved": "string",
|
|
197
|
+
"references": {}
|
|
198
|
+
},
|
|
199
|
+
"required": false,
|
|
200
|
+
"optional": false,
|
|
201
|
+
"docs": {
|
|
202
|
+
"tags": [],
|
|
203
|
+
"text": "***Mandatory just for V1***\nConnect/Certify Server where the wallet will send the data"
|
|
204
|
+
},
|
|
205
|
+
"attribute": "callback-server",
|
|
206
|
+
"reflect": false
|
|
207
|
+
},
|
|
208
|
+
"sessionTimeout": {
|
|
209
|
+
"type": "number",
|
|
210
|
+
"mutable": false,
|
|
211
|
+
"complexType": {
|
|
212
|
+
"original": "number",
|
|
213
|
+
"resolved": "number",
|
|
214
|
+
"references": {}
|
|
215
|
+
},
|
|
216
|
+
"required": false,
|
|
217
|
+
"optional": true,
|
|
218
|
+
"docs": {
|
|
219
|
+
"tags": [],
|
|
220
|
+
"text": "_[Optional]_\nMaximum time window to display the session"
|
|
221
|
+
},
|
|
222
|
+
"attribute": "session-timeout",
|
|
223
|
+
"reflect": false
|
|
224
|
+
},
|
|
225
|
+
"pollingFrequency": {
|
|
226
|
+
"type": "number",
|
|
227
|
+
"mutable": false,
|
|
228
|
+
"complexType": {
|
|
229
|
+
"original": "number",
|
|
230
|
+
"resolved": "number",
|
|
231
|
+
"references": {}
|
|
232
|
+
},
|
|
233
|
+
"required": false,
|
|
234
|
+
"optional": true,
|
|
235
|
+
"docs": {
|
|
236
|
+
"tags": [],
|
|
237
|
+
"text": "_[Optional]_\nFrequency in seconds to check if the session has been validated"
|
|
238
|
+
},
|
|
239
|
+
"attribute": "polling-frequency",
|
|
240
|
+
"reflect": false
|
|
241
|
+
},
|
|
242
|
+
"autorefresh": {
|
|
243
|
+
"type": "boolean",
|
|
244
|
+
"mutable": false,
|
|
245
|
+
"complexType": {
|
|
246
|
+
"original": "boolean",
|
|
247
|
+
"resolved": "boolean",
|
|
248
|
+
"references": {}
|
|
249
|
+
},
|
|
250
|
+
"required": false,
|
|
251
|
+
"optional": false,
|
|
252
|
+
"docs": {
|
|
253
|
+
"tags": [],
|
|
254
|
+
"text": "_[Optional]_\nSet to refresh the session automatically upon expiration. By default it is false"
|
|
255
|
+
},
|
|
256
|
+
"attribute": "autorefresh",
|
|
257
|
+
"reflect": false,
|
|
258
|
+
"defaultValue": "false"
|
|
259
|
+
},
|
|
260
|
+
"v2": {
|
|
261
|
+
"type": "boolean",
|
|
262
|
+
"mutable": false,
|
|
263
|
+
"complexType": {
|
|
264
|
+
"original": "boolean",
|
|
265
|
+
"resolved": "boolean",
|
|
266
|
+
"references": {}
|
|
267
|
+
},
|
|
268
|
+
"required": false,
|
|
269
|
+
"optional": true,
|
|
270
|
+
"docs": {
|
|
271
|
+
"tags": [],
|
|
272
|
+
"text": "_[Optional]_\nSet to use v2 links. The create session must be providing both an authentication request and a session Id"
|
|
273
|
+
},
|
|
274
|
+
"attribute": "v-2",
|
|
275
|
+
"reflect": false,
|
|
276
|
+
"defaultValue": "false"
|
|
277
|
+
},
|
|
278
|
+
"qrModalTitle": {
|
|
279
|
+
"type": "string",
|
|
280
|
+
"mutable": false,
|
|
281
|
+
"complexType": {
|
|
282
|
+
"original": "string",
|
|
283
|
+
"resolved": "string",
|
|
284
|
+
"references": {}
|
|
285
|
+
},
|
|
286
|
+
"required": false,
|
|
287
|
+
"optional": true,
|
|
288
|
+
"docs": {
|
|
289
|
+
"tags": [],
|
|
290
|
+
"text": "_[Optional]_\nModifies the qr headline title"
|
|
291
|
+
},
|
|
292
|
+
"attribute": "qr-modal-title",
|
|
293
|
+
"reflect": false,
|
|
294
|
+
"defaultValue": "\"Quick Access\""
|
|
295
|
+
},
|
|
296
|
+
"modalTitleColor": {
|
|
297
|
+
"type": "string",
|
|
298
|
+
"mutable": false,
|
|
299
|
+
"complexType": {
|
|
300
|
+
"original": "string",
|
|
301
|
+
"resolved": "string",
|
|
302
|
+
"references": {}
|
|
303
|
+
},
|
|
304
|
+
"required": false,
|
|
305
|
+
"optional": true,
|
|
306
|
+
"docs": {
|
|
307
|
+
"tags": [],
|
|
308
|
+
"text": "_[Optional]_\nString to set Modal title color"
|
|
309
|
+
},
|
|
310
|
+
"attribute": "modal-title-color",
|
|
311
|
+
"reflect": false,
|
|
312
|
+
"defaultValue": "\"#4745B7\""
|
|
313
|
+
},
|
|
314
|
+
"qrModalDescription": {
|
|
315
|
+
"type": "string",
|
|
316
|
+
"mutable": false,
|
|
317
|
+
"complexType": {
|
|
318
|
+
"original": "string",
|
|
319
|
+
"resolved": "string",
|
|
320
|
+
"references": {}
|
|
321
|
+
},
|
|
322
|
+
"required": false,
|
|
323
|
+
"optional": true,
|
|
324
|
+
"docs": {
|
|
325
|
+
"tags": [],
|
|
326
|
+
"text": "_[Optional]_\nModifies the Modal description"
|
|
327
|
+
},
|
|
328
|
+
"attribute": "qr-modal-description",
|
|
329
|
+
"reflect": false,
|
|
330
|
+
"defaultValue": "\"Sign up or sign in by scanning the QR Code with the Gataca Wallet\""
|
|
331
|
+
},
|
|
332
|
+
"hideBrandTitle": {
|
|
333
|
+
"type": "boolean",
|
|
334
|
+
"mutable": false,
|
|
335
|
+
"complexType": {
|
|
336
|
+
"original": "boolean",
|
|
337
|
+
"resolved": "boolean",
|
|
338
|
+
"references": {}
|
|
339
|
+
},
|
|
340
|
+
"required": false,
|
|
341
|
+
"optional": true,
|
|
342
|
+
"docs": {
|
|
343
|
+
"tags": [],
|
|
344
|
+
"text": "_[Optional]_\nBoolean to show or not show the gataca brand title"
|
|
345
|
+
},
|
|
346
|
+
"attribute": "hide-brand-title",
|
|
347
|
+
"reflect": false,
|
|
348
|
+
"defaultValue": "false"
|
|
349
|
+
},
|
|
350
|
+
"dynamicLink": {
|
|
351
|
+
"type": "boolean",
|
|
352
|
+
"mutable": false,
|
|
353
|
+
"complexType": {
|
|
354
|
+
"original": "boolean",
|
|
355
|
+
"resolved": "boolean",
|
|
356
|
+
"references": {}
|
|
357
|
+
},
|
|
358
|
+
"required": false,
|
|
359
|
+
"optional": true,
|
|
360
|
+
"docs": {
|
|
361
|
+
"tags": [],
|
|
362
|
+
"text": "_[Optional]_\nDisplay a link containing a dynamic link to invoke the wallet if closed"
|
|
363
|
+
},
|
|
364
|
+
"attribute": "dynamic-link",
|
|
365
|
+
"reflect": false,
|
|
366
|
+
"defaultValue": "true"
|
|
367
|
+
},
|
|
368
|
+
"logoSize": {
|
|
369
|
+
"type": "number",
|
|
370
|
+
"mutable": false,
|
|
371
|
+
"complexType": {
|
|
372
|
+
"original": "number",
|
|
373
|
+
"resolved": "number",
|
|
374
|
+
"references": {}
|
|
375
|
+
},
|
|
376
|
+
"required": false,
|
|
377
|
+
"optional": true,
|
|
378
|
+
"docs": {
|
|
379
|
+
"tags": [],
|
|
380
|
+
"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"
|
|
381
|
+
},
|
|
382
|
+
"attribute": "logo-size",
|
|
383
|
+
"reflect": false,
|
|
384
|
+
"defaultValue": "0"
|
|
385
|
+
},
|
|
386
|
+
"logoSrc": {
|
|
387
|
+
"type": "string",
|
|
388
|
+
"mutable": false,
|
|
389
|
+
"complexType": {
|
|
390
|
+
"original": "string",
|
|
391
|
+
"resolved": "string",
|
|
392
|
+
"references": {}
|
|
393
|
+
},
|
|
394
|
+
"required": false,
|
|
395
|
+
"optional": true,
|
|
396
|
+
"docs": {
|
|
397
|
+
"tags": [],
|
|
398
|
+
"text": "_[Optional]_\nLogo to display, just if the logo size is greater than 0. No logo is the GATACA logo."
|
|
399
|
+
},
|
|
400
|
+
"attribute": "logo-src",
|
|
401
|
+
"reflect": false
|
|
402
|
+
},
|
|
403
|
+
"qrCodeExpiredLabel": {
|
|
404
|
+
"type": "string",
|
|
405
|
+
"mutable": false,
|
|
406
|
+
"complexType": {
|
|
407
|
+
"original": "string",
|
|
408
|
+
"resolved": "string",
|
|
409
|
+
"references": {}
|
|
410
|
+
},
|
|
411
|
+
"required": false,
|
|
412
|
+
"optional": true,
|
|
413
|
+
"docs": {
|
|
414
|
+
"tags": [],
|
|
415
|
+
"text": "_[Optional]_\nString to show when qr code expired"
|
|
416
|
+
},
|
|
417
|
+
"attribute": "qr-code-expired-label",
|
|
418
|
+
"reflect": false,
|
|
419
|
+
"defaultValue": "\"QR Code expired\""
|
|
420
|
+
},
|
|
421
|
+
"credentialsNotValidatedLabel": {
|
|
422
|
+
"type": "string",
|
|
423
|
+
"mutable": false,
|
|
424
|
+
"complexType": {
|
|
425
|
+
"original": "string",
|
|
426
|
+
"resolved": "string",
|
|
427
|
+
"references": {}
|
|
428
|
+
},
|
|
429
|
+
"required": false,
|
|
430
|
+
"optional": true,
|
|
431
|
+
"docs": {
|
|
432
|
+
"tags": [],
|
|
433
|
+
"text": "_[Optional]_\nString to show when credentials not validatedd"
|
|
434
|
+
},
|
|
435
|
+
"attribute": "credentials-not-validated-label",
|
|
436
|
+
"reflect": false,
|
|
437
|
+
"defaultValue": "\"User credentials not validated\""
|
|
438
|
+
},
|
|
439
|
+
"clickInsideBoxLabel": {
|
|
440
|
+
"type": "string",
|
|
441
|
+
"mutable": false,
|
|
442
|
+
"complexType": {
|
|
443
|
+
"original": "string",
|
|
444
|
+
"resolved": "string",
|
|
445
|
+
"references": {}
|
|
446
|
+
},
|
|
447
|
+
"required": false,
|
|
448
|
+
"optional": true,
|
|
449
|
+
"docs": {
|
|
450
|
+
"tags": [],
|
|
451
|
+
"text": "_[Optional]_\nString to show \"click inside\" label"
|
|
452
|
+
},
|
|
453
|
+
"attribute": "click-inside-box-label",
|
|
454
|
+
"reflect": false,
|
|
455
|
+
"defaultValue": "\"Click inside the box to\""
|
|
456
|
+
},
|
|
457
|
+
"refreshQrLabel": {
|
|
458
|
+
"type": "string",
|
|
459
|
+
"mutable": false,
|
|
460
|
+
"complexType": {
|
|
461
|
+
"original": "string",
|
|
462
|
+
"resolved": "string",
|
|
463
|
+
"references": {}
|
|
464
|
+
},
|
|
465
|
+
"required": false,
|
|
466
|
+
"optional": true,
|
|
467
|
+
"docs": {
|
|
468
|
+
"tags": [],
|
|
469
|
+
"text": "_[Optional]_\nString to show \"refresh QR\" label"
|
|
470
|
+
},
|
|
471
|
+
"attribute": "refresh-qr-label",
|
|
472
|
+
"reflect": false,
|
|
473
|
+
"defaultValue": "\"Refresh QR Code\""
|
|
474
|
+
},
|
|
475
|
+
"scanQrLabel": {
|
|
476
|
+
"type": "string",
|
|
477
|
+
"mutable": false,
|
|
478
|
+
"complexType": {
|
|
479
|
+
"original": "string",
|
|
480
|
+
"resolved": "string",
|
|
481
|
+
"references": {}
|
|
482
|
+
},
|
|
483
|
+
"required": false,
|
|
484
|
+
"optional": true,
|
|
485
|
+
"docs": {
|
|
486
|
+
"tags": [],
|
|
487
|
+
"text": "_[Optional]_\nString to show \"scan QR\" label"
|
|
488
|
+
},
|
|
489
|
+
"attribute": "scan-qr-label",
|
|
490
|
+
"reflect": false,
|
|
491
|
+
"defaultValue": "\"Scan QR Code\""
|
|
492
|
+
},
|
|
493
|
+
"userNotScanInTimeErrorLabel": {
|
|
494
|
+
"type": "string",
|
|
495
|
+
"mutable": false,
|
|
496
|
+
"complexType": {
|
|
497
|
+
"original": "string",
|
|
498
|
+
"resolved": "string",
|
|
499
|
+
"references": {}
|
|
500
|
+
},
|
|
501
|
+
"required": false,
|
|
502
|
+
"optional": true,
|
|
503
|
+
"docs": {
|
|
504
|
+
"tags": [],
|
|
505
|
+
"text": "_[Optional]_\nString to show \"user not scan in time\" error"
|
|
506
|
+
},
|
|
507
|
+
"attribute": "user-not-scan-in-time-error-label",
|
|
508
|
+
"reflect": false,
|
|
509
|
+
"defaultValue": "\"User did not scan the QR in the allowed time\""
|
|
510
|
+
},
|
|
511
|
+
"credsNotValidatedErrorLabel": {
|
|
512
|
+
"type": "string",
|
|
513
|
+
"mutable": false,
|
|
514
|
+
"complexType": {
|
|
515
|
+
"original": "string",
|
|
516
|
+
"resolved": "string",
|
|
517
|
+
"references": {}
|
|
518
|
+
},
|
|
519
|
+
"required": false,
|
|
520
|
+
"optional": true,
|
|
521
|
+
"docs": {
|
|
522
|
+
"tags": [],
|
|
523
|
+
"text": "_[Optional]_\nString to show \"provided credentials not validates\" error"
|
|
524
|
+
},
|
|
525
|
+
"attribute": "creds-not-validated-error-label",
|
|
526
|
+
"reflect": false,
|
|
527
|
+
"defaultValue": "\"Provided user credentials couldn't be validated\""
|
|
528
|
+
},
|
|
529
|
+
"failedLoginErrorLabel": {
|
|
530
|
+
"type": "string",
|
|
531
|
+
"mutable": false,
|
|
532
|
+
"complexType": {
|
|
533
|
+
"original": "string",
|
|
534
|
+
"resolved": "string",
|
|
535
|
+
"references": {}
|
|
536
|
+
},
|
|
537
|
+
"required": false,
|
|
538
|
+
"optional": true,
|
|
539
|
+
"docs": {
|
|
540
|
+
"tags": [],
|
|
541
|
+
"text": "_[Optional]_\nString to show \"failed login\" error"
|
|
542
|
+
},
|
|
543
|
+
"attribute": "failed-login-error-label",
|
|
544
|
+
"reflect": false,
|
|
545
|
+
"defaultValue": "\"No successful login\""
|
|
546
|
+
},
|
|
547
|
+
"successLoginLabel": {
|
|
548
|
+
"type": "string",
|
|
549
|
+
"mutable": false,
|
|
550
|
+
"complexType": {
|
|
551
|
+
"original": "string",
|
|
552
|
+
"resolved": "string",
|
|
553
|
+
"references": {}
|
|
554
|
+
},
|
|
555
|
+
"required": false,
|
|
556
|
+
"optional": true,
|
|
557
|
+
"docs": {
|
|
558
|
+
"tags": [],
|
|
559
|
+
"text": "_[Optional]_\nString to show \"successful login\" label"
|
|
560
|
+
},
|
|
561
|
+
"attribute": "success-login-label",
|
|
562
|
+
"reflect": false,
|
|
563
|
+
"defaultValue": "\"Successful Connection!\""
|
|
564
|
+
},
|
|
565
|
+
"byBrandLabel": {
|
|
566
|
+
"type": "string",
|
|
567
|
+
"mutable": false,
|
|
568
|
+
"complexType": {
|
|
569
|
+
"original": "string",
|
|
570
|
+
"resolved": "string",
|
|
571
|
+
"references": {}
|
|
572
|
+
},
|
|
573
|
+
"required": false,
|
|
574
|
+
"optional": true,
|
|
575
|
+
"docs": {
|
|
576
|
+
"tags": [],
|
|
577
|
+
"text": "_[Optional]_\nString to show \"by brand\" label"
|
|
578
|
+
},
|
|
579
|
+
"attribute": "by-brand-label",
|
|
580
|
+
"reflect": false,
|
|
581
|
+
"defaultValue": "\"by Gataca\""
|
|
582
|
+
},
|
|
583
|
+
"waitingStartSessionLabel": {
|
|
584
|
+
"type": "string",
|
|
585
|
+
"mutable": false,
|
|
586
|
+
"complexType": {
|
|
587
|
+
"original": "string",
|
|
588
|
+
"resolved": "string",
|
|
589
|
+
"references": {}
|
|
590
|
+
},
|
|
591
|
+
"required": false,
|
|
592
|
+
"optional": true,
|
|
593
|
+
"docs": {
|
|
594
|
+
"tags": [],
|
|
595
|
+
"text": "_[Optional]_\nString to show \"waiting start session\" label"
|
|
596
|
+
},
|
|
597
|
+
"attribute": "waiting-start-session-label",
|
|
598
|
+
"reflect": false,
|
|
599
|
+
"defaultValue": "\"waiting to start a session\""
|
|
600
|
+
},
|
|
601
|
+
"hideQrModalDescription": {
|
|
602
|
+
"type": "boolean",
|
|
603
|
+
"mutable": false,
|
|
604
|
+
"complexType": {
|
|
605
|
+
"original": "boolean",
|
|
606
|
+
"resolved": "boolean",
|
|
607
|
+
"references": {}
|
|
608
|
+
},
|
|
609
|
+
"required": false,
|
|
610
|
+
"optional": true,
|
|
611
|
+
"docs": {
|
|
612
|
+
"tags": [],
|
|
613
|
+
"text": "_[Optional]_\nBoolean to show or not show the QR Modal description"
|
|
614
|
+
},
|
|
615
|
+
"attribute": "hide-qr-modal-description",
|
|
616
|
+
"reflect": false,
|
|
617
|
+
"defaultValue": "false"
|
|
618
|
+
}
|
|
619
|
+
};
|
|
620
|
+
}
|
|
621
|
+
static get states() {
|
|
622
|
+
return {
|
|
623
|
+
"open": {}
|
|
624
|
+
};
|
|
625
|
+
}
|
|
626
|
+
static get events() {
|
|
627
|
+
return [{
|
|
628
|
+
"method": "gatacaLoginCompleted",
|
|
629
|
+
"name": "gatacaLoginCompleted",
|
|
630
|
+
"bubbles": true,
|
|
631
|
+
"cancelable": true,
|
|
632
|
+
"composed": true,
|
|
633
|
+
"docs": {
|
|
634
|
+
"tags": [],
|
|
635
|
+
"text": "GatacaLoginCompleted event, triggered with session data upon login success"
|
|
636
|
+
},
|
|
637
|
+
"complexType": {
|
|
638
|
+
"original": "any",
|
|
639
|
+
"resolved": "any",
|
|
640
|
+
"references": {}
|
|
641
|
+
}
|
|
642
|
+
}, {
|
|
643
|
+
"method": "gatacaLoginFailed",
|
|
644
|
+
"name": "gatacaLoginFailed",
|
|
645
|
+
"bubbles": true,
|
|
646
|
+
"cancelable": true,
|
|
647
|
+
"composed": true,
|
|
648
|
+
"docs": {
|
|
649
|
+
"tags": [],
|
|
650
|
+
"text": "GatacaLoginFailed event, triggered with error upon login failure"
|
|
651
|
+
},
|
|
652
|
+
"complexType": {
|
|
653
|
+
"original": "any",
|
|
654
|
+
"resolved": "any",
|
|
655
|
+
"references": {}
|
|
656
|
+
}
|
|
657
|
+
}];
|
|
658
|
+
}
|
|
659
|
+
static get methods() {
|
|
660
|
+
return {
|
|
661
|
+
"getSessionData": {
|
|
662
|
+
"complexType": {
|
|
663
|
+
"signature": "() => Promise<any>",
|
|
664
|
+
"parameters": [],
|
|
665
|
+
"references": {
|
|
666
|
+
"Promise": {
|
|
667
|
+
"location": "global"
|
|
668
|
+
}
|
|
669
|
+
},
|
|
670
|
+
"return": "Promise<any>"
|
|
671
|
+
},
|
|
672
|
+
"docs": {
|
|
673
|
+
"text": "Retrieve manually the session data on a successful login",
|
|
674
|
+
"tags": []
|
|
675
|
+
}
|
|
676
|
+
}
|
|
677
|
+
};
|
|
678
|
+
}
|
|
679
|
+
}
|