@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.
Files changed (84) hide show
  1. package/dist/cjs/gataca-autoqr.cjs.entry.js +105 -0
  2. package/dist/cjs/gataca-qr_2.cjs.entry.js +219 -0
  3. package/dist/cjs/gataca-qrws.cjs.entry.js +176 -0
  4. package/dist/cjs/gataca-ssibutton_2.cjs.entry.js +129 -0
  5. package/dist/cjs/gatacaqr.cjs.js +19 -0
  6. package/dist/cjs/index-4be0cdca.js +1435 -0
  7. package/dist/cjs/index.cjs.js +16 -0
  8. package/dist/cjs/loader.cjs.js +21 -0
  9. package/dist/cjs/logo_gataca-f3dc6840.js +14 -0
  10. package/dist/cjs/qr-code-styling-412bbc7a.js +28 -0
  11. package/dist/cjs/utils-383ee834.js +26 -0
  12. package/dist/collection/assets/icons/gat-icon-alert.svg +5 -0
  13. package/dist/collection/assets/icons/gat-icon-check.svg +5 -0
  14. package/dist/collection/assets/icons/gat-icon-refresh.svg +4 -0
  15. package/dist/collection/assets/images/logo_gataca.svg +26 -0
  16. package/dist/collection/collection-manifest.json +17 -0
  17. package/dist/collection/components/gataca-autoqr/gataca-autoqr.css +116 -0
  18. package/dist/collection/components/gataca-autoqr/gataca-autoqr.js +323 -0
  19. package/dist/collection/components/gataca-qr/gataca-qr.css +261 -0
  20. package/dist/collection/components/gataca-qr/gataca-qr.js +828 -0
  21. package/dist/collection/components/gataca-qrdisplay/gataca-qrdisplay.js +154 -0
  22. package/dist/collection/components/gataca-qrws/gataca-qrws.css +251 -0
  23. package/dist/collection/components/gataca-qrws/gataca-qrws.js +566 -0
  24. package/dist/collection/components/gataca-ssibutton/gataca-ssibutton.css +116 -0
  25. package/dist/collection/components/gataca-ssibutton/gataca-ssibutton.js +679 -0
  26. package/dist/collection/components/gataca-ssibuttonws/gataca-ssibuttonws.css +116 -0
  27. package/dist/collection/components/gataca-ssibuttonws/gataca-ssibuttonws.js +410 -0
  28. package/dist/collection/index.js +2 -0
  29. package/dist/collection/utils/index.js +1 -0
  30. package/dist/collection/utils/utils.js +21 -0
  31. package/dist/{gatacaqr/gat-icon-refresh-8d3dc25f.js → components/gat-icon-refresh.js} +23 -1
  32. package/dist/components/gataca-autoqr.js +161 -0
  33. package/dist/components/gataca-qr.js +6 -0
  34. package/dist/components/gataca-qr2.js +227 -0
  35. package/dist/components/gataca-qrdisplay.js +6 -0
  36. package/dist/components/gataca-qrdisplay2.js +93 -0
  37. package/dist/components/gataca-qrws.js +6 -0
  38. package/dist/components/gataca-qrws2.js +212 -0
  39. package/dist/components/gataca-ssibutton.js +6 -0
  40. package/dist/{gatacaqr/gataca-ssibutton.entry.js → components/gataca-ssibutton2.js} +83 -9
  41. package/dist/components/gataca-ssibuttonws.js +6 -0
  42. package/dist/{gatacaqr/gataca-ssibuttonws.entry.js → components/gataca-ssibuttonws2.js} +53 -7
  43. package/dist/components/index.js +8 -0
  44. package/dist/{gatacaqr → esm}/gataca-autoqr.entry.js +1 -1
  45. package/dist/esm/gataca-qr_2.entry.js +214 -0
  46. package/dist/{gatacaqr → esm}/gataca-qrws.entry.js +4 -4
  47. package/dist/esm/gataca-ssibutton_2.entry.js +124 -0
  48. package/dist/esm/gatacaqr.js +17 -0
  49. package/dist/esm/index-80311733.js +1409 -0
  50. package/dist/esm/index.js +1 -0
  51. package/dist/esm/loader.js +17 -0
  52. package/dist/esm/logo_gataca-57ad0363.js +9 -0
  53. package/dist/esm/polyfills/core-js.js +11 -0
  54. package/dist/esm/polyfills/css-shim.js +1 -0
  55. package/dist/esm/polyfills/dom.js +79 -0
  56. package/dist/esm/polyfills/es5-html-element.js +1 -0
  57. package/dist/esm/polyfills/index.js +34 -0
  58. package/dist/esm/polyfills/system.js +6 -0
  59. package/dist/esm/qr-code-styling-0eeb38d5.js +26 -0
  60. package/dist/gatacaqr/gatacaqr.esm.js +1 -129
  61. package/dist/gatacaqr/index.esm.js +1 -1
  62. package/dist/gatacaqr/p-0be4566d.js +1 -0
  63. package/dist/gatacaqr/p-5b17ef39.entry.js +1 -0
  64. package/dist/gatacaqr/p-5eb106c0.entry.js +1 -0
  65. package/dist/gatacaqr/p-66ad21ac.entry.js +1 -0
  66. package/dist/gatacaqr/p-6adc6933.js +1 -0
  67. package/dist/gatacaqr/p-a5648391.js +2 -0
  68. package/dist/gatacaqr/p-b834ef88.entry.js +1 -0
  69. package/dist/gatacaqr/p-b8ba109f.js +1 -0
  70. package/dist/index.cjs.js +1 -0
  71. package/dist/index.js +1 -0
  72. package/dist/types/components/gataca-qr/gataca-qr.d.ts +76 -1
  73. package/dist/types/components/gataca-ssibutton/gataca-ssibutton.d.ts +75 -0
  74. package/dist/types/components.d.ts +242 -2
  75. package/package.json +2 -2
  76. package/dist/gatacaqr/app-globals-0f993ce5.js +0 -3
  77. package/dist/gatacaqr/css-shim-8eec97b3.js +0 -4
  78. package/dist/gatacaqr/dom-1b0cf05d.js +0 -73
  79. package/dist/gatacaqr/gataca-qr.entry.js +0 -171
  80. package/dist/gatacaqr/gataca-qrdisplay-0320bb25.js +0 -97
  81. package/dist/gatacaqr/gataca-qrdisplay.entry.js +0 -2
  82. package/dist/gatacaqr/index-d0db23e4.js +0 -3262
  83. package/dist/gatacaqr/shadow-css-146f2f6f.js +0 -387
  84. /package/dist/{gatacaqr → esm}/utils-05ba6c9f.js +0 -0
@@ -0,0 +1,154 @@
1
+ import { h } from "@stencil/core";
2
+ import QRCodeStyling from "qr-code-styling";
3
+ import logoGataca from "../../assets/images/logo_gataca.svg";
4
+ export class GatacaQRDisplay {
5
+ constructor() {
6
+ this.qrData = undefined;
7
+ this.size = 256;
8
+ this.logoSize = 0;
9
+ this.logoSrc = undefined;
10
+ this.qrColor = "#1E1E20";
11
+ this.rounded = true;
12
+ }
13
+ componentDidLoad() {
14
+ const qrCode = new QRCodeStyling({
15
+ data: this.qrData,
16
+ width: this.size,
17
+ height: this.size,
18
+ image: this.logoSize > 0 ? this.logoSrc || logoGataca : undefined,
19
+ margin: 10,
20
+ type: "svg",
21
+ dotsOptions: {
22
+ color: this.qrColor,
23
+ type: this.rounded ? "dots" : "square",
24
+ },
25
+ cornersSquareOptions: {
26
+ type: this.rounded ? "extra-rounded" : "square",
27
+ },
28
+ cornersDotOptions: {
29
+ type: this.rounded ? "dot" : "square",
30
+ },
31
+ imageOptions: {
32
+ margin: 2,
33
+ imageSize: this.logoSize,
34
+ },
35
+ });
36
+ qrCode.append(this.qr);
37
+ }
38
+ render() {
39
+ return (h("div", { ref: (el) => {
40
+ this.qr = el;
41
+ } }));
42
+ }
43
+ static get is() { return "gataca-qrdisplay"; }
44
+ static get properties() {
45
+ return {
46
+ "qrData": {
47
+ "type": "string",
48
+ "mutable": false,
49
+ "complexType": {
50
+ "original": "string",
51
+ "resolved": "string",
52
+ "references": {}
53
+ },
54
+ "required": false,
55
+ "optional": false,
56
+ "docs": {
57
+ "tags": [],
58
+ "text": "_[Mandatory]_\nSets the contents of the QR"
59
+ },
60
+ "attribute": "qr-data",
61
+ "reflect": false
62
+ },
63
+ "size": {
64
+ "type": "number",
65
+ "mutable": false,
66
+ "complexType": {
67
+ "original": "number",
68
+ "resolved": "number",
69
+ "references": {}
70
+ },
71
+ "required": false,
72
+ "optional": true,
73
+ "docs": {
74
+ "tags": [],
75
+ "text": "_[Optional]_\nSize of the QR Displayed"
76
+ },
77
+ "attribute": "size",
78
+ "reflect": false,
79
+ "defaultValue": "256"
80
+ },
81
+ "logoSize": {
82
+ "type": "number",
83
+ "mutable": false,
84
+ "complexType": {
85
+ "original": "number",
86
+ "resolved": "number",
87
+ "references": {}
88
+ },
89
+ "required": false,
90
+ "optional": true,
91
+ "docs": {
92
+ "tags": [],
93
+ "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"
94
+ },
95
+ "attribute": "logo-size",
96
+ "reflect": false,
97
+ "defaultValue": "0"
98
+ },
99
+ "logoSrc": {
100
+ "type": "string",
101
+ "mutable": false,
102
+ "complexType": {
103
+ "original": "string",
104
+ "resolved": "string",
105
+ "references": {}
106
+ },
107
+ "required": false,
108
+ "optional": true,
109
+ "docs": {
110
+ "tags": [],
111
+ "text": "_[Optional]_\nLogo to display, just if the logo size is greater than 0. No logo is the GATACA logo."
112
+ },
113
+ "attribute": "logo-src",
114
+ "reflect": false
115
+ },
116
+ "qrColor": {
117
+ "type": "string",
118
+ "mutable": false,
119
+ "complexType": {
120
+ "original": "string",
121
+ "resolved": "string",
122
+ "references": {}
123
+ },
124
+ "required": false,
125
+ "optional": true,
126
+ "docs": {
127
+ "tags": [],
128
+ "text": "_[Optional]_\nQR Color."
129
+ },
130
+ "attribute": "qr-color",
131
+ "reflect": false,
132
+ "defaultValue": "\"#1E1E20\""
133
+ },
134
+ "rounded": {
135
+ "type": "boolean",
136
+ "mutable": false,
137
+ "complexType": {
138
+ "original": "boolean",
139
+ "resolved": "boolean",
140
+ "references": {}
141
+ },
142
+ "required": false,
143
+ "optional": true,
144
+ "docs": {
145
+ "tags": [],
146
+ "text": "_[Optional]_\nRound usage"
147
+ },
148
+ "attribute": "rounded",
149
+ "reflect": false,
150
+ "defaultValue": "true"
151
+ }
152
+ };
153
+ }
154
+ }
@@ -0,0 +1,251 @@
1
+ /* http://meyerweb.com/eric/tools/css/reset/
2
+ v2.0 | 20110126
3
+ License: none (public domain)
4
+ */
5
+ @import url("https://fonts.googleapis.com/css2?family=Work+Sans:wght@300;400&display=swap");
6
+ html, body, div, span, applet, object, iframe,
7
+ h1, h2, h3, h4, h5, h6, p, blockquote, pre,
8
+ a, abbr, acronym, address, big, cite, code,
9
+ del, dfn, em, img, ins, kbd, q, s, samp,
10
+ small, strike, strong, sub, sup, tt, var,
11
+ b, u, i, center,
12
+ dl, dt, dd, ol, ul, li,
13
+ fieldset, form, label, legend,
14
+ table, caption, tbody, tfoot, thead, tr, th, td,
15
+ article, aside, canvas, details, embed,
16
+ figure, figcaption, footer, header, hgroup,
17
+ menu, nav, output, ruby, section, summary,
18
+ time, mark, audio, video {
19
+ margin: 0;
20
+ padding: 0;
21
+ border: 0;
22
+ font-size: 100%;
23
+ font: inherit;
24
+ vertical-align: baseline;
25
+ }
26
+
27
+ /* HTML5 display-role reset for older browsers */
28
+ article, aside, details, figcaption, figure,
29
+ footer, header, hgroup, menu, nav, section {
30
+ display: block;
31
+ }
32
+
33
+ body {
34
+ line-height: 1;
35
+ }
36
+
37
+ ol, ul {
38
+ list-style: none;
39
+ }
40
+
41
+ blockquote, q {
42
+ quotes: none;
43
+ }
44
+
45
+ blockquote:before, blockquote:after,
46
+ q:before, q:after {
47
+ content: "";
48
+ content: none;
49
+ }
50
+
51
+ table {
52
+ border-collapse: collapse;
53
+ border-spacing: 0;
54
+ }
55
+
56
+ /*
57
+ QR COMPONENT
58
+ */
59
+ .img-fluid {
60
+ height: auto;
61
+ max-width: 50%;
62
+ }
63
+
64
+ img {
65
+ margin-left: auto;
66
+ margin-right: auto;
67
+ }
68
+
69
+ .brandSection {
70
+ padding-top: 5px;
71
+ display: flex;
72
+ align-items: center;
73
+ }
74
+ .brandSection .gatacaImgSmall {
75
+ height: 13px;
76
+ width: 13px;
77
+ margin: 0;
78
+ margin-right: 10px;
79
+ }
80
+
81
+ .popUpContainer .modal-window {
82
+ position: relative;
83
+ border-radius: 6px;
84
+ color: rgba(24, 27, 94, 0.8);
85
+ box-shadow: 0px 3px 10px rgba(48, 48, 48, 0.1);
86
+ display: flex;
87
+ flex-direction: column;
88
+ justify-content: space-between;
89
+ align-items: center;
90
+ display: flex;
91
+ z-index: 1001;
92
+ width: 300px;
93
+ min-height: 408px;
94
+ padding: 1px;
95
+ background-color: white;
96
+ border-radius: 12px;
97
+ -webkit-transition: opacity 0.5s, visibility 0s 0.5s;
98
+ transition: opacity 0.5s, visibility 0s 0.5s;
99
+ visibility: hidden;
100
+ opacity: 0;
101
+ }
102
+ .popUpContainer .modal-window__content {
103
+ width: 100%;
104
+ height: 100%;
105
+ text-align: left;
106
+ }
107
+ .popUpContainer .modal-window p {
108
+ font-family: "Work Sans", "Helvetica Neue", sans-serif;
109
+ font-weight: normal;
110
+ font-size: 12px;
111
+ letter-spacing: 1px;
112
+ color: #1e1e20;
113
+ }
114
+ .popUpContainer .modal-window .qrTitleContainer {
115
+ padding: 14px 24px;
116
+ padding-bottom: 0px;
117
+ }
118
+ .popUpContainer .modal-window .qrTitle {
119
+ font-size: 20px;
120
+ font-weight: 600;
121
+ line-height: 23.5px;
122
+ }
123
+ .popUpContainer .modal-window .qrDescription {
124
+ font-weight: 400;
125
+ font-size: 14px;
126
+ line-height: 16.5px;
127
+ padding-top: 12px;
128
+ padding-bottom: 5px;
129
+ color: #A1A1A1;
130
+ }
131
+ .popUpContainer .modal-window .bold {
132
+ font-weight: 600;
133
+ }
134
+ .popUpContainer .modal-window .qrBrand {
135
+ margin-top: 4px;
136
+ font-size: 14px;
137
+ font-weight: 400;
138
+ line-height: 16.5px;
139
+ display: flex;
140
+ align-items: center;
141
+ }
142
+ .popUpContainer .modal-window .qrBrand img {
143
+ margin-left: 5px;
144
+ height: 12px;
145
+ }
146
+ .popUpContainer .modal-window .qr-section {
147
+ width: 252px;
148
+ height: 252px;
149
+ }
150
+ .popUpContainer .reload {
151
+ height: 252px;
152
+ width: 252px;
153
+ border: 1px dashed #A1A1A1;
154
+ border-radius: 12px;
155
+ position: relative;
156
+ margin: 24px;
157
+ display: flex;
158
+ justify-content: center;
159
+ align-items: center;
160
+ }
161
+ .popUpContainer #qrwait {
162
+ display: flex;
163
+ justify-content: center;
164
+ }
165
+ .popUpContainer #qrwait,
166
+ .popUpContainer #notify {
167
+ width: 100%;
168
+ height: 100%;
169
+ top: 0;
170
+ left: 0;
171
+ border-radius: 20px;
172
+ }
173
+ .popUpContainer #notify {
174
+ z-index: 10;
175
+ background-color: gray;
176
+ position: absolute;
177
+ justify-self: center;
178
+ justify-items: center;
179
+ justify-content: center;
180
+ align-items: center;
181
+ align-content: center;
182
+ align-self: center;
183
+ display: flex;
184
+ flex-direction: column;
185
+ padding: 24px;
186
+ box-sizing: border-box;
187
+ /* Auto layout */
188
+ display: flex;
189
+ flex-direction: column;
190
+ justify-content: center;
191
+ align-items: center;
192
+ padding: 20px;
193
+ background: rgba(255, 255, 255, 0.9);
194
+ /* Grey Colors/Grey 400 */
195
+ }
196
+ .popUpContainer .notify-text {
197
+ font-family: "Work Sans";
198
+ font-style: normal;
199
+ font-weight: 400;
200
+ font-size: 14px;
201
+ line-height: 16px;
202
+ text-align: center;
203
+ font-feature-settings: "salt" on;
204
+ color: #8B8B8B;
205
+ flex: none;
206
+ order: 1;
207
+ align-self: stretch;
208
+ flex-grow: 0;
209
+ }
210
+ .popUpContainer .alert {
211
+ display: flex;
212
+ flex-direction: row;
213
+ align-items: center;
214
+ justify-content: start;
215
+ width: 252px;
216
+ position: absolute;
217
+ bottom: 0;
218
+ background: #FFE5E5;
219
+ border-radius: 12px;
220
+ }
221
+ .popUpContainer .alert img {
222
+ margin: 12px;
223
+ }
224
+ .popUpContainer .alert p {
225
+ font-weight: 400;
226
+ font-size: 14px;
227
+ line-height: 16px;
228
+ color: black;
229
+ }
230
+ .popUpContainer .success {
231
+ display: flex;
232
+ height: 300px;
233
+ flex-direction: column;
234
+ justify-content: center;
235
+ align-items: center;
236
+ padding: 0px;
237
+ }
238
+ .popUpContainer .success .successMsg {
239
+ margin-top: 20px;
240
+ font-size: 20px;
241
+ font-weight: 600;
242
+ line-height: 23.5px;
243
+ }
244
+ .popUpContainer .is-visible {
245
+ opacity: 1;
246
+ visibility: visible;
247
+ }
248
+
249
+ .is-transparent {
250
+ opacity: 0;
251
+ }