@gataca/qr 2.0.0 → 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 (80) 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/{esm → gatacaqr}/gataca-autoqr.entry.js +19 -2
  6. package/dist/{esm → gatacaqr}/gataca-qr.entry.js +4 -4
  7. package/dist/gatacaqr/gataca-qrdisplay-0320bb25.js +97 -0
  8. package/dist/gatacaqr/gataca-qrdisplay.entry.js +2 -0
  9. package/dist/{esm/gataca-qrdisplay_2.entry.js → gatacaqr/gataca-qrws.entry.js} +5 -47
  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/gat-icon-refresh-751505ff.js +0 -14
  18. package/dist/cjs/gataca-autoqr.cjs.entry.js +0 -88
  19. package/dist/cjs/gataca-qr.cjs.entry.js +0 -175
  20. package/dist/cjs/gataca-qrdisplay_2.cjs.entry.js +0 -219
  21. package/dist/cjs/gataca-ssibutton_2.cjs.entry.js +0 -114
  22. package/dist/cjs/gatacaqr.cjs.js +0 -19
  23. package/dist/cjs/index-0b7a1532.js +0 -1410
  24. package/dist/cjs/index.cjs.js +0 -16
  25. package/dist/cjs/loader.cjs.js +0 -21
  26. package/dist/cjs/qr-code-styling-412bbc7a.js +0 -28
  27. package/dist/cjs/utils-383ee834.js +0 -26
  28. package/dist/collection/assets/icons/gat-icon-alert.svg +0 -5
  29. package/dist/collection/assets/icons/gat-icon-check.svg +0 -5
  30. package/dist/collection/assets/icons/gat-icon-refresh.svg +0 -4
  31. package/dist/collection/assets/images/logo_gataca.svg +0 -26
  32. package/dist/collection/collection-manifest.json +0 -17
  33. package/dist/collection/components/gataca-autoqr/gataca-autoqr.css +0 -116
  34. package/dist/collection/components/gataca-autoqr/gataca-autoqr.js +0 -306
  35. package/dist/collection/components/gataca-qr/gataca-qr.css +0 -249
  36. package/dist/collection/components/gataca-qr/gataca-qr.js +0 -557
  37. package/dist/collection/components/gataca-qrdisplay/gataca-qrdisplay.js +0 -154
  38. package/dist/collection/components/gataca-qrws/gataca-qrws.css +0 -249
  39. package/dist/collection/components/gataca-qrws/gataca-qrws.js +0 -566
  40. package/dist/collection/components/gataca-ssibutton/gataca-ssibutton.css +0 -116
  41. package/dist/collection/components/gataca-ssibutton/gataca-ssibutton.js +0 -395
  42. package/dist/collection/components/gataca-ssibuttonws/gataca-ssibuttonws.css +0 -116
  43. package/dist/collection/components/gataca-ssibuttonws/gataca-ssibuttonws.js +0 -410
  44. package/dist/collection/index.js +0 -2
  45. package/dist/collection/utils/index.js +0 -1
  46. package/dist/collection/utils/utils.js +0 -21
  47. package/dist/components/gataca-autoqr.js +0 -144
  48. package/dist/components/gataca-qr.js +0 -6
  49. package/dist/components/gataca-qr2.js +0 -211
  50. package/dist/components/gataca-qrdisplay.js +0 -6
  51. package/dist/components/gataca-qrdisplay2.js +0 -93
  52. package/dist/components/gataca-qrws.js +0 -6
  53. package/dist/components/gataca-qrws2.js +0 -212
  54. package/dist/components/gataca-ssibutton.js +0 -6
  55. package/dist/components/gataca-ssibuttonws.js +0 -6
  56. package/dist/components/index.js +0 -8
  57. package/dist/esm/gat-icon-refresh-179ea123.js +0 -9
  58. package/dist/esm/gataca-ssibutton_2.entry.js +0 -109
  59. package/dist/esm/gatacaqr.js +0 -17
  60. package/dist/esm/index-19eef502.js +0 -1384
  61. package/dist/esm/index.js +0 -1
  62. package/dist/esm/loader.js +0 -17
  63. package/dist/esm/polyfills/core-js.js +0 -11
  64. package/dist/esm/polyfills/css-shim.js +0 -1
  65. package/dist/esm/polyfills/dom.js +0 -79
  66. package/dist/esm/polyfills/es5-html-element.js +0 -1
  67. package/dist/esm/polyfills/index.js +0 -34
  68. package/dist/esm/polyfills/system.js +0 -6
  69. package/dist/esm/qr-code-styling-0eeb38d5.js +0 -26
  70. package/dist/gatacaqr/p-0905677f.entry.js +0 -1
  71. package/dist/gatacaqr/p-0be4566d.js +0 -1
  72. package/dist/gatacaqr/p-1d35273f.entry.js +0 -1
  73. package/dist/gatacaqr/p-2f22c7fc.js +0 -1
  74. package/dist/gatacaqr/p-4139a068.entry.js +0 -1
  75. package/dist/gatacaqr/p-a6f85341.js +0 -2
  76. package/dist/gatacaqr/p-b8ba109f.js +0 -1
  77. package/dist/gatacaqr/p-f85d7e76.entry.js +0 -1
  78. package/dist/index.cjs.js +0 -1
  79. package/dist/index.js +0 -1
  80. /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,249 +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
- border-radius: 12px;
95
- -webkit-transition: opacity 0.5s, visibility 0s 0.5s;
96
- transition: opacity 0.5s, visibility 0s 0.5s;
97
- visibility: hidden;
98
- opacity: 0;
99
- }
100
- .popUpContainer .modal-window__content {
101
- width: 100%;
102
- height: 100%;
103
- text-align: left;
104
- }
105
- .popUpContainer .modal-window p {
106
- font-family: "Work Sans", "Helvetica Neue", sans-serif;
107
- font-weight: normal;
108
- font-size: 12px;
109
- letter-spacing: 1px;
110
- color: #181B5E;
111
- }
112
- .popUpContainer .modal-window .qrTitleContainer {
113
- padding: 24px;
114
- padding-bottom: 0px;
115
- }
116
- .popUpContainer .modal-window .qrTitle {
117
- font-size: 20px;
118
- font-weight: 600;
119
- line-height: 23.5px;
120
- }
121
- .popUpContainer .modal-window .qrDescription {
122
- font-weight: 400;
123
- font-size: 14px;
124
- line-height: 16.5px;
125
- padding-top: 12px;
126
- padding-bottom: 5px;
127
- color: #A1A1A1;
128
- }
129
- .popUpContainer .modal-window .bold {
130
- font-weight: 600;
131
- }
132
- .popUpContainer .modal-window .qrBrand {
133
- margin-top: 4px;
134
- font-size: 14px;
135
- font-weight: 400;
136
- line-height: 16.5px;
137
- display: flex;
138
- align-items: center;
139
- }
140
- .popUpContainer .modal-window .qrBrand img {
141
- margin-left: 5px;
142
- height: 12px;
143
- }
144
- .popUpContainer .modal-window .qr-section {
145
- width: 252px;
146
- height: 252px;
147
- }
148
- .popUpContainer .reload {
149
- height: 252px;
150
- width: 252px;
151
- border: 1px dashed #A1A1A1;
152
- border-radius: 12px;
153
- position: relative;
154
- margin: 24px;
155
- display: flex;
156
- justify-content: center;
157
- align-items: center;
158
- }
159
- .popUpContainer #qrwait {
160
- display: flex;
161
- justify-content: center;
162
- }
163
- .popUpContainer #qrwait,
164
- .popUpContainer #notify {
165
- width: 100%;
166
- height: 100%;
167
- top: 0;
168
- left: 0;
169
- border-radius: 20px;
170
- }
171
- .popUpContainer #notify {
172
- z-index: 10;
173
- background-color: gray;
174
- position: absolute;
175
- justify-self: center;
176
- justify-items: center;
177
- justify-content: center;
178
- align-items: center;
179
- align-content: center;
180
- align-self: center;
181
- display: flex;
182
- flex-direction: column;
183
- padding: 24px;
184
- box-sizing: border-box;
185
- /* Auto layout */
186
- display: flex;
187
- flex-direction: column;
188
- justify-content: center;
189
- align-items: center;
190
- padding: 20px;
191
- background: rgba(255, 255, 255, 0.9);
192
- /* Grey Colors/Grey 400 */
193
- }
194
- .popUpContainer .notify-text {
195
- font-family: "Work Sans";
196
- font-style: normal;
197
- font-weight: 400;
198
- font-size: 14px;
199
- line-height: 16px;
200
- text-align: center;
201
- font-feature-settings: "salt" on;
202
- color: #8B8B8B;
203
- flex: none;
204
- order: 1;
205
- align-self: stretch;
206
- flex-grow: 0;
207
- }
208
- .popUpContainer .alert {
209
- display: flex;
210
- flex-direction: row;
211
- align-items: center;
212
- justify-content: start;
213
- width: 252px;
214
- position: absolute;
215
- bottom: 0;
216
- background: #FFE5E5;
217
- border-radius: 12px;
218
- }
219
- .popUpContainer .alert img {
220
- margin: 12px;
221
- }
222
- .popUpContainer .alert p {
223
- font-weight: 400;
224
- font-size: 14px;
225
- line-height: 16px;
226
- color: black;
227
- }
228
- .popUpContainer .success {
229
- display: flex;
230
- height: 300px;
231
- flex-direction: column;
232
- justify-content: center;
233
- align-items: center;
234
- padding: 0px;
235
- }
236
- .popUpContainer .success .successMsg {
237
- margin-top: 20px;
238
- font-size: 20px;
239
- font-weight: 600;
240
- line-height: 23.5px;
241
- }
242
- .popUpContainer .is-visible {
243
- opacity: 1;
244
- visibility: visible;
245
- }
246
-
247
- .is-transparent {
248
- opacity: 0;
249
- }