@gataca/qr 0.0.28 → 0.0.30
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/{esm/qr-code-styling-0eeb38d5.js → cjs/gat-icon-check-6b6780eb.js} +12 -1
- package/dist/cjs/gataca-autoqr.cjs.entry.js +10 -10
- package/dist/cjs/gataca-qr_3.cjs.entry.js +639 -0
- package/dist/cjs/gataca-qrws.cjs.entry.js +42 -48
- package/dist/cjs/gataca-ssibuttonws.cjs.entry.js +61 -0
- package/dist/cjs/gatacaqr.cjs.js +2 -2
- package/dist/cjs/{index-93d47a75.js → index-1332a8ce.js} +32 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{utils-ef28b844.js → utils-b4e62bc0.js} +1 -1
- package/dist/collection/components/gataca-autoqr/gataca-autoqr.js +13 -13
- package/dist/collection/components/gataca-qr/components/qr/QR.js +3 -3
- package/dist/collection/components/gataca-qr/components/readQR/ReadQR.js +12 -7
- package/dist/collection/components/gataca-qr/components/readQR/components/AnimatedLoader.js +5 -3
- package/dist/collection/components/gataca-qr/components/retryButton/RetryButton.js +12 -9
- package/dist/collection/components/gataca-qr/components/success/Success.js +7 -6
- package/dist/collection/components/gataca-qr/gataca-qr.css +15 -5
- package/dist/collection/components/gataca-qr/gataca-qr.js +68 -57
- package/dist/collection/components/gataca-qrdisplay/gataca-qrdisplay.js +33 -11
- package/dist/collection/components/gataca-qrws/components/qr/QR.js +2 -2
- package/dist/collection/components/gataca-qrws/components/readQR/ReadQR.js +4 -4
- package/dist/collection/components/gataca-qrws/components/readQR/components/AnimatedLoader.js +1 -1
- package/dist/collection/components/gataca-qrws/components/retryButton/RetryButton.js +8 -8
- package/dist/collection/components/gataca-qrws/components/success/Success.js +4 -4
- package/dist/collection/components/gataca-qrws/gataca-qrws.js +49 -56
- package/dist/collection/components/gataca-ssibutton/gataca-ssibutton.js +224 -54
- package/dist/collection/components/gataca-ssibuttonws/gataca-ssibuttonws.js +12 -12
- package/dist/collection/components/icons/RefreshIcon.js +6 -0
- package/dist/collection/index.js +2 -2
- package/dist/collection/utils/index.js +1 -1
- package/dist/collection/utils/utils.js +1 -1
- package/dist/components/{gat-icon-alert.js → gat-icon-check.js} +4 -6
- package/dist/components/gataca-autoqr.js +9 -9
- package/dist/components/gataca-qr2.js +85 -73
- package/dist/components/gataca-qrdisplay2.js +11 -6
- package/dist/components/gataca-qrws2.js +37 -42
- package/dist/components/gataca-ssibutton2.js +114 -34
- package/dist/components/gataca-ssibuttonws2.js +6 -6
- package/dist/components/index.js +1 -1
- package/dist/{cjs/qr-code-styling-412bbc7a.js → esm/gat-icon-check-7320c81b.js} +6 -2
- package/dist/esm/gataca-autoqr.entry.js +10 -10
- package/dist/esm/gataca-qr_3.entry.js +633 -0
- package/dist/esm/gataca-qrws.entry.js +39 -45
- package/dist/esm/gataca-ssibuttonws.entry.js +57 -0
- package/dist/esm/gatacaqr.js +2 -2
- package/dist/esm/{index-2be54f32.js → index-055790a7.js} +32 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/loader.js +2 -2
- package/dist/esm/{utils-63e7a33b.js → utils-21ffcc1e.js} +1 -1
- package/dist/gatacaqr/gatacaqr.esm.js +1 -1
- package/dist/gatacaqr/index.esm.js +1 -1
- package/dist/gatacaqr/p-1d1129b7.entry.js +1 -0
- package/dist/gatacaqr/p-29119208.js +1 -0
- package/dist/gatacaqr/p-49cf321c.entry.js +1 -0
- package/dist/gatacaqr/p-9f83bae1.entry.js +1 -0
- package/dist/gatacaqr/{p-5e81ab9e.entry.js → p-c65f810b.entry.js} +1 -1
- package/dist/gatacaqr/p-fccf9d4d.js +2 -0
- package/dist/types/components/gataca-autoqr/gataca-autoqr.d.ts +7 -7
- package/dist/types/components/gataca-qr/components/qr/QR.d.ts +4 -2
- package/dist/types/components/gataca-qr/components/readQR/ReadQR.d.ts +3 -1
- package/dist/types/components/gataca-qr/components/readQR/components/AnimatedLoader.d.ts +6 -2
- package/dist/types/components/gataca-qr/components/retryButton/RetryButton.d.ts +3 -1
- package/dist/types/components/gataca-qr/components/success/Success.d.ts +3 -1
- package/dist/types/components/gataca-qr/gataca-qr.d.ts +16 -4
- package/dist/types/components/gataca-qrdisplay/gataca-qrdisplay.d.ts +6 -1
- package/dist/types/components/gataca-qrws/components/qr/QR.d.ts +2 -2
- package/dist/types/components/gataca-qrws/components/readQR/ReadQR.d.ts +1 -1
- package/dist/types/components/gataca-qrws/components/readQR/components/AnimatedLoader.d.ts +1 -1
- package/dist/types/components/gataca-qrws/components/retryButton/RetryButton.d.ts +1 -1
- package/dist/types/components/gataca-qrws/components/success/Success.d.ts +1 -1
- package/dist/types/components/gataca-qrws/gataca-qrws.d.ts +4 -4
- package/dist/types/components/gataca-ssibutton/gataca-ssibutton.d.ts +38 -5
- package/dist/types/components/gataca-ssibuttonws/gataca-ssibuttonws.d.ts +3 -3
- package/dist/types/components/icons/RefreshIcon.d.ts +8 -0
- package/dist/types/components.d.ts +78 -36
- package/dist/types/index.d.ts +2 -2
- package/dist/types/utils/index.d.ts +1 -1
- package/package.json +30 -7
- package/dist/cjs/gat-icon-alert-0ad19b26.js +0 -14
- package/dist/cjs/gataca-qr_2.cjs.entry.js +0 -295
- package/dist/cjs/gataca-ssibutton_2.cjs.entry.js +0 -317
- package/dist/esm/gat-icon-alert-7b06ef3a.js +0 -9
- package/dist/esm/gataca-qr_2.entry.js +0 -290
- package/dist/esm/gataca-ssibutton_2.entry.js +0 -312
- package/dist/gatacaqr/p-0be4566d.js +0 -1
- package/dist/gatacaqr/p-3500ae66.entry.js +0 -1
- package/dist/gatacaqr/p-5ae5f952.js +0 -2
- package/dist/gatacaqr/p-68272823.entry.js +0 -1
- package/dist/gatacaqr/p-92a2e6f0.entry.js +0 -1
- package/dist/gatacaqr/p-ea783014.js +0 -1
- /package/dist/gatacaqr/{p-2cd7b062.js → p-bce7e590.js} +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h } from './index-055790a7.js';
|
|
2
2
|
|
|
3
3
|
const gatacaAutoqrCss = "@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}.buttonContainer{display:inline-block;text-align:right;padding:10px;position:relative}.gatacaButtonWrapper{margin:8px}.gatacaButtonWrapper .gatacaButton{display:flex;min-width:100px;padding:8px 8px;background-color:white;font-size:12px;font-family:\"Work Sans\", sans-serif;letter-spacing:1px;font-weight:2;justify-content:space-between;align-items:center;border-radius:6px;border:1px solid rgba(24, 27, 94, 0.5);color:rgba(24, 27, 94, 0.8);box-shadow:0px 1px 3px rgba(48, 48, 48, 0.15);cursor:pointer}.gatacaButtonWrapper .gatacaButton>span{margin-right:10px}.gatacaButtonWrapper .gatacaButton:hover{box-shadow:0px 2px 8px rgba(48, 48, 48, 0.1)}.gatacaButtonWrapper .buttonText{text-align:right;font-size:8px;color:rgba(24, 27, 94, 0.5);font-family:\"Helvetica Neue\", sans-serif;letter-spacing:1px;padding-right:8px;font-weight:1}.gatacaButtonWrapper .buttonImg{height:25px;width:25px;margin:0;margin-right:20px}";
|
|
4
4
|
|
|
5
|
-
const DEFAULT_REPOSITORY =
|
|
5
|
+
const DEFAULT_REPOSITORY = 'https://studio.gataca.io/api/v1/qrconfigs';
|
|
6
6
|
const fixFunctions = (data) => {
|
|
7
7
|
var _a, _b, _c, _d, _e, _f;
|
|
8
8
|
data.errorCallback = deserializeFunction((_a = data.errorCallback) === null || _a === void 0 ? void 0 : _a.toString());
|
|
@@ -15,7 +15,7 @@ const fixFunctions = (data) => {
|
|
|
15
15
|
};
|
|
16
16
|
const deserializeFunction = (data) => {
|
|
17
17
|
if (data) {
|
|
18
|
-
return new Function(
|
|
18
|
+
return new Function('return ' + data)();
|
|
19
19
|
}
|
|
20
20
|
return undefined;
|
|
21
21
|
};
|
|
@@ -25,7 +25,7 @@ const GatacaAutoQR = class {
|
|
|
25
25
|
this.gatacaLoginCompleted = createEvent(this, "gatacaLoginCompleted", 7);
|
|
26
26
|
this.gatacaLoginFailed = createEvent(this, "gatacaLoginFailed", 7);
|
|
27
27
|
this.configId = undefined;
|
|
28
|
-
this.qrType =
|
|
28
|
+
this.qrType = 'svg';
|
|
29
29
|
this.configRepository = DEFAULT_REPOSITORY;
|
|
30
30
|
this.successCallback = undefined;
|
|
31
31
|
this.errorCallback = undefined;
|
|
@@ -36,11 +36,11 @@ const GatacaAutoQR = class {
|
|
|
36
36
|
this.config = undefined;
|
|
37
37
|
this.loading = undefined;
|
|
38
38
|
this.loading = true;
|
|
39
|
-
fetch(this.configRepository +
|
|
40
|
-
method:
|
|
39
|
+
fetch(this.configRepository + '/' + this.configId, {
|
|
40
|
+
method: 'GET',
|
|
41
41
|
headers: {
|
|
42
|
-
|
|
43
|
-
}
|
|
42
|
+
'Content-Type': 'application/json'
|
|
43
|
+
}
|
|
44
44
|
})
|
|
45
45
|
.then((response) => {
|
|
46
46
|
response
|
|
@@ -51,12 +51,12 @@ const GatacaAutoQR = class {
|
|
|
51
51
|
this.loading = false;
|
|
52
52
|
})
|
|
53
53
|
.catch((err) => {
|
|
54
|
-
console.log(
|
|
54
|
+
console.log('Cannot retrieve selected config', err);
|
|
55
55
|
this.loading = false;
|
|
56
56
|
});
|
|
57
57
|
})
|
|
58
58
|
.catch((err) => {
|
|
59
|
-
console.log(
|
|
59
|
+
console.log('Cannot retrieve selected config', err);
|
|
60
60
|
this.loading = false;
|
|
61
61
|
});
|
|
62
62
|
}
|