@gataca/qr 2.0.1 → 2.0.2

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 (65) hide show
  1. package/dist/gatacaqr/app-globals-0f993ce5.js +3 -0
  2. package/dist/gatacaqr/css-shim-8eec97b3.js +4 -0
  3. package/dist/gatacaqr/dom-1b0cf05d.js +73 -0
  4. package/dist/{components/gat-icon-refresh.js → gatacaqr/gat-icon-refresh-8d3dc25f.js} +1 -23
  5. package/dist/{components/gataca-autoqr.js → gatacaqr/gataca-autoqr.entry.js} +7 -69
  6. package/dist/{components/gataca-qr2.js → gatacaqr/gataca-qr.entry.js} +9 -49
  7. package/dist/gatacaqr/gataca-qrdisplay-0320bb25.js +97 -0
  8. package/dist/gatacaqr/gataca-qrdisplay.entry.js +2 -0
  9. package/dist/{components/gataca-qrws2.js → gatacaqr/gataca-qrws.entry.js} +9 -49
  10. package/dist/{components/gataca-ssibutton2.js → gatacaqr/gataca-ssibutton.entry.js} +8 -52
  11. package/dist/{components/gataca-ssibuttonws2.js → gatacaqr/gataca-ssibuttonws.entry.js} +7 -53
  12. package/dist/gatacaqr/gatacaqr.esm.js +129 -1
  13. package/dist/gatacaqr/index-d0db23e4.js +3262 -0
  14. package/dist/gatacaqr/index.esm.js +1 -1
  15. package/dist/gatacaqr/shadow-css-146f2f6f.js +387 -0
  16. package/package.json +1 -1
  17. package/dist/cjs/gataca-autoqr_6.cjs.entry.js +0 -624
  18. package/dist/cjs/gatacaqr.cjs.js +0 -19
  19. package/dist/cjs/index-0b7a1532.js +0 -1410
  20. package/dist/cjs/index.cjs.js +0 -16
  21. package/dist/cjs/loader.cjs.js +0 -21
  22. package/dist/cjs/utils-383ee834.js +0 -26
  23. package/dist/collection/assets/icons/gat-icon-alert.svg +0 -5
  24. package/dist/collection/assets/icons/gat-icon-check.svg +0 -5
  25. package/dist/collection/assets/icons/gat-icon-refresh.svg +0 -4
  26. package/dist/collection/assets/images/logo_gataca.svg +0 -26
  27. package/dist/collection/collection-manifest.json +0 -17
  28. package/dist/collection/components/gataca-autoqr/gataca-autoqr.css +0 -116
  29. package/dist/collection/components/gataca-autoqr/gataca-autoqr.js +0 -325
  30. package/dist/collection/components/gataca-qr/gataca-qr.css +0 -251
  31. package/dist/collection/components/gataca-qr/gataca-qr.js +0 -557
  32. package/dist/collection/components/gataca-qrdisplay/gataca-qrdisplay.js +0 -154
  33. package/dist/collection/components/gataca-qrws/gataca-qrws.css +0 -251
  34. package/dist/collection/components/gataca-qrws/gataca-qrws.js +0 -566
  35. package/dist/collection/components/gataca-ssibutton/gataca-ssibutton.css +0 -116
  36. package/dist/collection/components/gataca-ssibutton/gataca-ssibutton.js +0 -395
  37. package/dist/collection/components/gataca-ssibuttonws/gataca-ssibuttonws.css +0 -116
  38. package/dist/collection/components/gataca-ssibuttonws/gataca-ssibuttonws.js +0 -410
  39. package/dist/collection/index.js +0 -2
  40. package/dist/collection/utils/index.js +0 -1
  41. package/dist/collection/utils/utils.js +0 -21
  42. package/dist/components/gataca-qr.js +0 -6
  43. package/dist/components/gataca-qrdisplay.js +0 -6
  44. package/dist/components/gataca-qrdisplay2.js +0 -93
  45. package/dist/components/gataca-qrws.js +0 -6
  46. package/dist/components/gataca-ssibutton.js +0 -6
  47. package/dist/components/gataca-ssibuttonws.js +0 -6
  48. package/dist/components/index.js +0 -8
  49. package/dist/esm/gataca-autoqr_6.entry.js +0 -615
  50. package/dist/esm/gatacaqr.js +0 -17
  51. package/dist/esm/index-19eef502.js +0 -1384
  52. package/dist/esm/index.js +0 -1
  53. package/dist/esm/loader.js +0 -17
  54. package/dist/esm/polyfills/core-js.js +0 -11
  55. package/dist/esm/polyfills/css-shim.js +0 -1
  56. package/dist/esm/polyfills/dom.js +0 -79
  57. package/dist/esm/polyfills/es5-html-element.js +0 -1
  58. package/dist/esm/polyfills/index.js +0 -34
  59. package/dist/esm/polyfills/system.js +0 -6
  60. package/dist/gatacaqr/p-4807b345.entry.js +0 -1
  61. package/dist/gatacaqr/p-a6f85341.js +0 -2
  62. package/dist/gatacaqr/p-b8ba109f.js +0 -1
  63. package/dist/index.cjs.js +0 -1
  64. package/dist/index.js +0 -1
  65. /package/dist/{esm → gatacaqr}/utils-05ba6c9f.js +0 -0
@@ -1,154 +0,0 @@
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 = "#181B5E";
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": "\"#181B5E\""
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
- }
@@ -1,251 +0,0 @@
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: #181B5E;
113
- }
114
- .popUpContainer .modal-window .qrTitleContainer {
115
- padding: 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
- }