@saasquatch/vanilla-components 1.2.3-0 → 1.3.0-0
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/CHANGELOG.md +143 -0
- package/dist/cjs/{WidgetHost-18a663ee.js → WidgetHost-d7b870ce.js} +1 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/sqh-close-button.cjs.entry.js +9 -4
- package/dist/cjs/sqh-copy-button_12.cjs.entry.js +181 -9
- package/dist/cjs/sqh-referral-code.cjs.entry.js +1 -1
- package/dist/cjs/sqh-rewards-actions.cjs.entry.js +15 -0
- package/dist/cjs/widget-components.cjs.js +1 -1
- package/dist/collection/components/close-button/close-button.js +14 -3
- package/dist/collection/components/copy-button/copy-button.js +63 -24
- package/dist/collection/components/copy-link-button/copy-link-button.js +33 -12
- package/dist/collection/components/global-container/global-container.js +28 -10
- package/dist/collection/components/image-component/image-component.js +33 -12
- package/dist/collection/components/partner-stat-component/partner-stat-component.js +29 -11
- package/dist/collection/components/referral-code/referral-code.js +3 -0
- package/dist/collection/components/referral-component/referral-component.js +28 -10
- package/dist/collection/components/referral-list/referral-list.js +206 -59
- package/dist/collection/components/rewards-actions/rewards-actions.js +33 -6
- package/dist/collection/components/share-button/share-button.js +58 -22
- package/dist/collection/components/share-button-container/share-button-container.js +824 -164
- package/dist/collection/components/stat-component/stat-component.js +40 -10
- package/dist/collection/components/stats-container/stats-container.js +23 -6
- package/dist/collection/components/text-component/text-component.js +58 -43
- package/dist/collection/services/WidgetHost.js +1 -0
- package/dist/esm/{WidgetHost-d643a9de.js → WidgetHost-a27e693d.js} +1 -0
- package/dist/esm/loader.mjs +1 -1
- package/dist/esm/sqh-close-button.entry.js +9 -4
- package/dist/esm/sqh-copy-button_12.entry.js +180 -8
- package/dist/esm/sqh-referral-code.entry.js +1 -1
- package/dist/esm/sqh-rewards-actions.entry.js +15 -0
- package/dist/esm/widget-components.mjs +1 -1
- package/dist/esm-es5/{WidgetHost-d643a9de.js → WidgetHost-a27e693d.js} +2 -2
- package/dist/esm-es5/loader.mjs +1 -1
- package/dist/esm-es5/sqh-close-button.entry.js +15 -10
- package/dist/esm-es5/sqh-copy-button_12.entry.js +198 -26
- package/dist/esm-es5/sqh-referral-code.entry.js +1 -1
- package/dist/esm-es5/sqh-rewards-actions.entry.js +15 -0
- package/dist/esm-es5/widget-components.mjs +1 -1
- package/dist/types/components/close-button/close-button.d.ts +9 -1
- package/dist/types/components/copy-button/copy-button.d.ts +63 -0
- package/dist/types/components/copy-link-button/copy-link-button.d.ts +33 -0
- package/dist/types/components/global-container/global-container.d.ts +28 -0
- package/dist/types/components/image-component/image-component.d.ts +33 -0
- package/dist/types/components/partner-stat-component/partner-stat-component.d.ts +29 -1
- package/dist/types/components/referral-code/referral-code.d.ts +3 -0
- package/dist/types/components/referral-component/referral-component.d.ts +28 -0
- package/dist/types/components/referral-list/referral-list.d.ts +167 -0
- package/dist/types/components/rewards-actions/rewards-actions.d.ts +18 -0
- package/dist/types/components/share-button/share-button.d.ts +58 -0
- package/dist/types/components/share-button-container/share-button-container.d.ts +494 -0
- package/dist/types/components/stat-component/stat-component.d.ts +32 -0
- package/dist/types/components/stats-container/stats-container.d.ts +18 -0
- package/dist/types/components/text-component/text-component.d.ts +58 -1
- package/dist/types/components.d.ts +1680 -2
- package/dist/widget-components/p-58be1132.system.js +1 -1
- package/dist/widget-components/{p-afd88281.entry.js → p-650d012d.entry.js} +1 -1
- package/dist/widget-components/p-908068c2.system.entry.js +1 -0
- package/dist/widget-components/{p-b4a53a7e.js → p-9525bf4a.js} +1 -0
- package/dist/widget-components/{p-3a627e51.system.js → p-9adc7c50.system.js} +1 -1
- package/dist/widget-components/{p-fd5e98db.system.entry.js → p-c0cdba77.system.entry.js} +1 -1
- package/dist/widget-components/{p-126c2b5d.entry.js → p-d4b27c72.entry.js} +1 -1
- package/dist/widget-components/{p-10f0b8fc.entry.js → p-d7059393.entry.js} +3 -3
- package/dist/widget-components/{p-edc35bc4.system.entry.js → p-fba5ea7f.system.entry.js} +2 -2
- package/dist/widget-components/widget-components.esm.js +1 -1
- package/dist/widget-components/widget-components.js +1 -1
- package/package.json +1 -1
- package/dist/widget-components/p-023e8818.system.entry.js +0 -1
|
@@ -3,6 +3,9 @@ import { shadeColor, addClass, removeClass } from "../../utilities";
|
|
|
3
3
|
import { css } from "emotion";
|
|
4
4
|
import { API } from "../../services/WidgetHost";
|
|
5
5
|
import Clipboard from "clipboard";
|
|
6
|
+
/**
|
|
7
|
+
* @uiName Copy Button
|
|
8
|
+
*/
|
|
6
9
|
export class CopyButton {
|
|
7
10
|
componentWillLoad() {
|
|
8
11
|
if (!this.ishidden) {
|
|
@@ -93,8 +96,11 @@ export class CopyButton {
|
|
|
93
96
|
"required": false,
|
|
94
97
|
"optional": false,
|
|
95
98
|
"docs": {
|
|
96
|
-
"tags": [
|
|
97
|
-
|
|
99
|
+
"tags": [{
|
|
100
|
+
"text": "Hide Button",
|
|
101
|
+
"name": "uiName"
|
|
102
|
+
}],
|
|
103
|
+
"text": "Hide or show the component"
|
|
98
104
|
},
|
|
99
105
|
"attribute": "ishidden",
|
|
100
106
|
"reflect": false
|
|
@@ -110,8 +116,11 @@ export class CopyButton {
|
|
|
110
116
|
"required": false,
|
|
111
117
|
"optional": false,
|
|
112
118
|
"docs": {
|
|
113
|
-
"tags": [
|
|
114
|
-
|
|
119
|
+
"tags": [{
|
|
120
|
+
"text": "Button Text",
|
|
121
|
+
"name": "uiName"
|
|
122
|
+
}],
|
|
123
|
+
"text": "Text shown inside the copy button."
|
|
115
124
|
},
|
|
116
125
|
"attribute": "text",
|
|
117
126
|
"reflect": false
|
|
@@ -127,8 +136,11 @@ export class CopyButton {
|
|
|
127
136
|
"required": false,
|
|
128
137
|
"optional": false,
|
|
129
138
|
"docs": {
|
|
130
|
-
"tags": [
|
|
131
|
-
|
|
139
|
+
"tags": [{
|
|
140
|
+
"text": "Max Width",
|
|
141
|
+
"name": "uiName"
|
|
142
|
+
}],
|
|
143
|
+
"text": "Sets a maximum width on the copy button."
|
|
132
144
|
},
|
|
133
145
|
"attribute": "width",
|
|
134
146
|
"reflect": false
|
|
@@ -144,8 +156,11 @@ export class CopyButton {
|
|
|
144
156
|
"required": false,
|
|
145
157
|
"optional": false,
|
|
146
158
|
"docs": {
|
|
147
|
-
"tags": [
|
|
148
|
-
|
|
159
|
+
"tags": [{
|
|
160
|
+
"text": "Background Color",
|
|
161
|
+
"name": "uiName"
|
|
162
|
+
}],
|
|
163
|
+
"text": "Background & border color of the copy button."
|
|
149
164
|
},
|
|
150
165
|
"attribute": "backgroundcolor",
|
|
151
166
|
"reflect": false
|
|
@@ -161,8 +176,11 @@ export class CopyButton {
|
|
|
161
176
|
"required": false,
|
|
162
177
|
"optional": false,
|
|
163
178
|
"docs": {
|
|
164
|
-
"tags": [
|
|
165
|
-
|
|
179
|
+
"tags": [{
|
|
180
|
+
"text": "Border Radius",
|
|
181
|
+
"name": "uiName"
|
|
182
|
+
}],
|
|
183
|
+
"text": "Configure border radius with pixel amount"
|
|
166
184
|
},
|
|
167
185
|
"attribute": "borderradius",
|
|
168
186
|
"reflect": false
|
|
@@ -178,8 +196,11 @@ export class CopyButton {
|
|
|
178
196
|
"required": false,
|
|
179
197
|
"optional": false,
|
|
180
198
|
"docs": {
|
|
181
|
-
"tags": [
|
|
182
|
-
|
|
199
|
+
"tags": [{
|
|
200
|
+
"text": "Text Color",
|
|
201
|
+
"name": "uiName"
|
|
202
|
+
}],
|
|
203
|
+
"text": "Color of text inside the copy button."
|
|
183
204
|
},
|
|
184
205
|
"attribute": "textcolor",
|
|
185
206
|
"reflect": false
|
|
@@ -195,8 +216,11 @@ export class CopyButton {
|
|
|
195
216
|
"required": false,
|
|
196
217
|
"optional": false,
|
|
197
218
|
"docs": {
|
|
198
|
-
"tags": [
|
|
199
|
-
|
|
219
|
+
"tags": [{
|
|
220
|
+
"text": "Font Size",
|
|
221
|
+
"name": "uiName"
|
|
222
|
+
}],
|
|
223
|
+
"text": "Font size of the copy button text."
|
|
200
224
|
},
|
|
201
225
|
"attribute": "fontsize",
|
|
202
226
|
"reflect": false
|
|
@@ -212,8 +236,11 @@ export class CopyButton {
|
|
|
212
236
|
"required": false,
|
|
213
237
|
"optional": false,
|
|
214
238
|
"docs": {
|
|
215
|
-
"tags": [
|
|
216
|
-
|
|
239
|
+
"tags": [{
|
|
240
|
+
"text": "Copy Success Text",
|
|
241
|
+
"name": "uiName"
|
|
242
|
+
}],
|
|
243
|
+
"text": "Shown when the code is successfully copied to the users clipboard."
|
|
217
244
|
},
|
|
218
245
|
"attribute": "copysuccess",
|
|
219
246
|
"reflect": false
|
|
@@ -229,8 +256,11 @@ export class CopyButton {
|
|
|
229
256
|
"required": false,
|
|
230
257
|
"optional": false,
|
|
231
258
|
"docs": {
|
|
232
|
-
"tags": [
|
|
233
|
-
|
|
259
|
+
"tags": [{
|
|
260
|
+
"text": "Copy Failure Text",
|
|
261
|
+
"name": "uiName"
|
|
262
|
+
}],
|
|
263
|
+
"text": "Shown when the button has failed to copy the code to the users clipboard."
|
|
234
264
|
},
|
|
235
265
|
"attribute": "copyfailure",
|
|
236
266
|
"reflect": false
|
|
@@ -246,8 +276,11 @@ export class CopyButton {
|
|
|
246
276
|
"required": false,
|
|
247
277
|
"optional": false,
|
|
248
278
|
"docs": {
|
|
249
|
-
"tags": [
|
|
250
|
-
|
|
279
|
+
"tags": [{
|
|
280
|
+
"text": "Reward Key",
|
|
281
|
+
"name": "uiName"
|
|
282
|
+
}],
|
|
283
|
+
"text": "rewardkey is used to get the fuel tank code for a user."
|
|
251
284
|
},
|
|
252
285
|
"attribute": "rewardkey",
|
|
253
286
|
"reflect": false
|
|
@@ -263,8 +296,11 @@ export class CopyButton {
|
|
|
263
296
|
"required": false,
|
|
264
297
|
"optional": false,
|
|
265
298
|
"docs": {
|
|
266
|
-
"tags": [
|
|
267
|
-
|
|
299
|
+
"tags": [{
|
|
300
|
+
"text": "Code Font Size",
|
|
301
|
+
"name": "uiName"
|
|
302
|
+
}],
|
|
303
|
+
"text": "Font size of the fuel tank code."
|
|
268
304
|
},
|
|
269
305
|
"attribute": "codefontsize",
|
|
270
306
|
"reflect": false
|
|
@@ -280,8 +316,11 @@ export class CopyButton {
|
|
|
280
316
|
"required": false,
|
|
281
317
|
"optional": false,
|
|
282
318
|
"docs": {
|
|
283
|
-
"tags": [
|
|
284
|
-
|
|
319
|
+
"tags": [{
|
|
320
|
+
"text": "Code Font Color",
|
|
321
|
+
"name": "uiName"
|
|
322
|
+
}],
|
|
323
|
+
"text": "Text color of the fuel tank code."
|
|
285
324
|
},
|
|
286
325
|
"attribute": "codefontcolor",
|
|
287
326
|
"reflect": false
|
|
@@ -3,6 +3,9 @@ import Clipboard from "clipboard";
|
|
|
3
3
|
import { shadeColor, addClass, removeClass } from "../../utilities";
|
|
4
4
|
import { css } from "emotion";
|
|
5
5
|
import { API } from "../../services/WidgetHost";
|
|
6
|
+
/**
|
|
7
|
+
* @uiName Copy Link Button
|
|
8
|
+
*/
|
|
6
9
|
export class CopyLinkButton {
|
|
7
10
|
componentWillLoad() {
|
|
8
11
|
if (!this.ishidden) {
|
|
@@ -84,8 +87,11 @@ export class CopyLinkButton {
|
|
|
84
87
|
"required": false,
|
|
85
88
|
"optional": false,
|
|
86
89
|
"docs": {
|
|
87
|
-
"tags": [
|
|
88
|
-
|
|
90
|
+
"tags": [{
|
|
91
|
+
"text": "Hide Button",
|
|
92
|
+
"name": "uiName"
|
|
93
|
+
}],
|
|
94
|
+
"text": "Hide or show the component"
|
|
89
95
|
},
|
|
90
96
|
"attribute": "ishidden",
|
|
91
97
|
"reflect": false
|
|
@@ -101,8 +107,11 @@ export class CopyLinkButton {
|
|
|
101
107
|
"required": false,
|
|
102
108
|
"optional": false,
|
|
103
109
|
"docs": {
|
|
104
|
-
"tags": [
|
|
105
|
-
|
|
110
|
+
"tags": [{
|
|
111
|
+
"text": "Button Text",
|
|
112
|
+
"name": "uiName"
|
|
113
|
+
}],
|
|
114
|
+
"text": "Text shown inside the copy button."
|
|
106
115
|
},
|
|
107
116
|
"attribute": "text",
|
|
108
117
|
"reflect": false
|
|
@@ -118,8 +127,11 @@ export class CopyLinkButton {
|
|
|
118
127
|
"required": false,
|
|
119
128
|
"optional": false,
|
|
120
129
|
"docs": {
|
|
121
|
-
"tags": [
|
|
122
|
-
|
|
130
|
+
"tags": [{
|
|
131
|
+
"text": "Copy Success Text",
|
|
132
|
+
"name": "uiName"
|
|
133
|
+
}],
|
|
134
|
+
"text": "Shown when the code is successfully copied to the users clipboard."
|
|
123
135
|
},
|
|
124
136
|
"attribute": "copysuccess",
|
|
125
137
|
"reflect": false
|
|
@@ -135,8 +147,11 @@ export class CopyLinkButton {
|
|
|
135
147
|
"required": false,
|
|
136
148
|
"optional": false,
|
|
137
149
|
"docs": {
|
|
138
|
-
"tags": [
|
|
139
|
-
|
|
150
|
+
"tags": [{
|
|
151
|
+
"text": "Copy Failure Text",
|
|
152
|
+
"name": "uiName"
|
|
153
|
+
}],
|
|
154
|
+
"text": "Shown when the button has failed to copy the code to the users clipboard."
|
|
140
155
|
},
|
|
141
156
|
"attribute": "copyfailure",
|
|
142
157
|
"reflect": false
|
|
@@ -152,8 +167,11 @@ export class CopyLinkButton {
|
|
|
152
167
|
"required": false,
|
|
153
168
|
"optional": false,
|
|
154
169
|
"docs": {
|
|
155
|
-
"tags": [
|
|
156
|
-
|
|
170
|
+
"tags": [{
|
|
171
|
+
"text": "Button Color",
|
|
172
|
+
"name": "uiName"
|
|
173
|
+
}],
|
|
174
|
+
"text": "Background & border color of the copy button."
|
|
157
175
|
},
|
|
158
176
|
"attribute": "buttoncolor",
|
|
159
177
|
"reflect": false
|
|
@@ -169,8 +187,11 @@ export class CopyLinkButton {
|
|
|
169
187
|
"required": false,
|
|
170
188
|
"optional": false,
|
|
171
189
|
"docs": {
|
|
172
|
-
"tags": [
|
|
173
|
-
|
|
190
|
+
"tags": [{
|
|
191
|
+
"text": "Text Color",
|
|
192
|
+
"name": "uiName"
|
|
193
|
+
}],
|
|
194
|
+
"text": "Color of text inside the copy button."
|
|
174
195
|
},
|
|
175
196
|
"attribute": "textcolor",
|
|
176
197
|
"reflect": false
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { h, Component, Prop } from "@stencil/core";
|
|
2
2
|
import { css } from "emotion";
|
|
3
|
+
/**
|
|
4
|
+
* @uiName Global Container
|
|
5
|
+
*/
|
|
3
6
|
export class GlobalContainer {
|
|
4
7
|
LoadingState(props) {
|
|
5
8
|
const style = css `
|
|
@@ -48,8 +51,11 @@ export class GlobalContainer {
|
|
|
48
51
|
"required": false,
|
|
49
52
|
"optional": false,
|
|
50
53
|
"docs": {
|
|
51
|
-
"tags": [
|
|
52
|
-
|
|
54
|
+
"tags": [{
|
|
55
|
+
"text": "Background Color",
|
|
56
|
+
"name": "uiName"
|
|
57
|
+
}],
|
|
58
|
+
"text": "Configure the background color."
|
|
53
59
|
},
|
|
54
60
|
"attribute": "background",
|
|
55
61
|
"reflect": false
|
|
@@ -65,8 +71,11 @@ export class GlobalContainer {
|
|
|
65
71
|
"required": false,
|
|
66
72
|
"optional": false,
|
|
67
73
|
"docs": {
|
|
68
|
-
"tags": [
|
|
69
|
-
|
|
74
|
+
"tags": [{
|
|
75
|
+
"text": "Loading Color",
|
|
76
|
+
"name": "uiName"
|
|
77
|
+
}],
|
|
78
|
+
"text": "Configure the color of the loading state."
|
|
70
79
|
},
|
|
71
80
|
"attribute": "loadingcolor",
|
|
72
81
|
"reflect": false
|
|
@@ -82,8 +91,11 @@ export class GlobalContainer {
|
|
|
82
91
|
"required": false,
|
|
83
92
|
"optional": false,
|
|
84
93
|
"docs": {
|
|
85
|
-
"tags": [
|
|
86
|
-
|
|
94
|
+
"tags": [{
|
|
95
|
+
"text": "Font Family",
|
|
96
|
+
"name": "uiName"
|
|
97
|
+
}],
|
|
98
|
+
"text": "Font family used inside the container."
|
|
87
99
|
},
|
|
88
100
|
"attribute": "fontfamily",
|
|
89
101
|
"reflect": false
|
|
@@ -99,8 +111,11 @@ export class GlobalContainer {
|
|
|
99
111
|
"required": false,
|
|
100
112
|
"optional": false,
|
|
101
113
|
"docs": {
|
|
102
|
-
"tags": [
|
|
103
|
-
|
|
114
|
+
"tags": [{
|
|
115
|
+
"text": "Max Width",
|
|
116
|
+
"name": "uiName"
|
|
117
|
+
}],
|
|
118
|
+
"text": "Maximum width on the container."
|
|
104
119
|
},
|
|
105
120
|
"attribute": "maxwidth",
|
|
106
121
|
"reflect": false
|
|
@@ -116,8 +131,11 @@ export class GlobalContainer {
|
|
|
116
131
|
"required": false,
|
|
117
132
|
"optional": false,
|
|
118
133
|
"docs": {
|
|
119
|
-
"tags": [
|
|
120
|
-
|
|
134
|
+
"tags": [{
|
|
135
|
+
"text": "Powered By",
|
|
136
|
+
"name": "uiName"
|
|
137
|
+
}],
|
|
138
|
+
"text": "Show and hide the powered by SaaSquatch link."
|
|
121
139
|
},
|
|
122
140
|
"attribute": "poweredby",
|
|
123
141
|
"reflect": false
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { h, Component, Prop } from "@stencil/core";
|
|
2
2
|
import { css } from "emotion";
|
|
3
|
+
/**
|
|
4
|
+
* @uiName Image Component
|
|
5
|
+
*/
|
|
3
6
|
export class ImageComponent {
|
|
4
7
|
render() {
|
|
5
8
|
const imageString = this.url;
|
|
@@ -37,8 +40,11 @@ export class ImageComponent {
|
|
|
37
40
|
"required": false,
|
|
38
41
|
"optional": false,
|
|
39
42
|
"docs": {
|
|
40
|
-
"tags": [
|
|
41
|
-
|
|
43
|
+
"tags": [{
|
|
44
|
+
"text": "Hide Image",
|
|
45
|
+
"name": "uiName"
|
|
46
|
+
}],
|
|
47
|
+
"text": "Hide or show the component"
|
|
42
48
|
},
|
|
43
49
|
"attribute": "ishidden",
|
|
44
50
|
"reflect": false
|
|
@@ -54,8 +60,11 @@ export class ImageComponent {
|
|
|
54
60
|
"required": false,
|
|
55
61
|
"optional": false,
|
|
56
62
|
"docs": {
|
|
57
|
-
"tags": [
|
|
58
|
-
|
|
63
|
+
"tags": [{
|
|
64
|
+
"text": "URL",
|
|
65
|
+
"name": "uiName"
|
|
66
|
+
}],
|
|
67
|
+
"text": "Image link"
|
|
59
68
|
},
|
|
60
69
|
"attribute": "url",
|
|
61
70
|
"reflect": false
|
|
@@ -71,8 +80,11 @@ export class ImageComponent {
|
|
|
71
80
|
"required": false,
|
|
72
81
|
"optional": false,
|
|
73
82
|
"docs": {
|
|
74
|
-
"tags": [
|
|
75
|
-
|
|
83
|
+
"tags": [{
|
|
84
|
+
"text": "Width",
|
|
85
|
+
"name": "uiName"
|
|
86
|
+
}],
|
|
87
|
+
"text": "Image width"
|
|
76
88
|
},
|
|
77
89
|
"attribute": "width",
|
|
78
90
|
"reflect": false
|
|
@@ -88,8 +100,11 @@ export class ImageComponent {
|
|
|
88
100
|
"required": false,
|
|
89
101
|
"optional": false,
|
|
90
102
|
"docs": {
|
|
91
|
-
"tags": [
|
|
92
|
-
|
|
103
|
+
"tags": [{
|
|
104
|
+
"text": "Border Radius",
|
|
105
|
+
"name": "uiName"
|
|
106
|
+
}],
|
|
107
|
+
"text": "Configure border radius with pixel amount"
|
|
93
108
|
},
|
|
94
109
|
"attribute": "borderradius",
|
|
95
110
|
"reflect": false
|
|
@@ -105,8 +120,11 @@ export class ImageComponent {
|
|
|
105
120
|
"required": false,
|
|
106
121
|
"optional": false,
|
|
107
122
|
"docs": {
|
|
108
|
-
"tags": [
|
|
109
|
-
|
|
123
|
+
"tags": [{
|
|
124
|
+
"text": "Alignment",
|
|
125
|
+
"name": "uiName"
|
|
126
|
+
}],
|
|
127
|
+
"text": "Configure alignment of the image"
|
|
110
128
|
},
|
|
111
129
|
"attribute": "alignment",
|
|
112
130
|
"reflect": false
|
|
@@ -122,8 +140,11 @@ export class ImageComponent {
|
|
|
122
140
|
"required": false,
|
|
123
141
|
"optional": false,
|
|
124
142
|
"docs": {
|
|
125
|
-
"tags": [
|
|
126
|
-
|
|
143
|
+
"tags": [{
|
|
144
|
+
"text": "CSS",
|
|
145
|
+
"name": "uiName"
|
|
146
|
+
}],
|
|
147
|
+
"text": "Additional CSS applied to the image element"
|
|
127
148
|
},
|
|
128
149
|
"attribute": "css",
|
|
129
150
|
"reflect": false
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { h, Component, Prop, Event, Element, Watch, } from "@stencil/core";
|
|
2
2
|
import { css } from "emotion";
|
|
3
|
-
|
|
3
|
+
/**
|
|
4
|
+
* @uiName Partner Stat
|
|
5
|
+
*/
|
|
6
|
+
export class PartnerStatComponent {
|
|
4
7
|
componentWillLoad() {
|
|
5
8
|
this.statAddedHandler(this.elem);
|
|
6
9
|
}
|
|
@@ -41,8 +44,11 @@ export class StatComponent {
|
|
|
41
44
|
"required": false,
|
|
42
45
|
"optional": false,
|
|
43
46
|
"docs": {
|
|
44
|
-
"tags": [
|
|
45
|
-
|
|
47
|
+
"tags": [{
|
|
48
|
+
"text": "Hide Stat",
|
|
49
|
+
"name": "uiName"
|
|
50
|
+
}],
|
|
51
|
+
"text": "Hide or show the component"
|
|
46
52
|
},
|
|
47
53
|
"attribute": "ishidden",
|
|
48
54
|
"reflect": false
|
|
@@ -58,8 +64,11 @@ export class StatComponent {
|
|
|
58
64
|
"required": false,
|
|
59
65
|
"optional": false,
|
|
60
66
|
"docs": {
|
|
61
|
-
"tags": [
|
|
62
|
-
|
|
67
|
+
"tags": [{
|
|
68
|
+
"text": "Stat Type",
|
|
69
|
+
"name": "uiName"
|
|
70
|
+
}],
|
|
71
|
+
"text": "Used to query the stats for a user"
|
|
63
72
|
},
|
|
64
73
|
"attribute": "stattype",
|
|
65
74
|
"reflect": false
|
|
@@ -75,8 +84,11 @@ export class StatComponent {
|
|
|
75
84
|
"required": false,
|
|
76
85
|
"optional": false,
|
|
77
86
|
"docs": {
|
|
78
|
-
"tags": [
|
|
79
|
-
|
|
87
|
+
"tags": [{
|
|
88
|
+
"text": "Stat Value",
|
|
89
|
+
"name": "uiName"
|
|
90
|
+
}],
|
|
91
|
+
"text": "Value of the stat"
|
|
80
92
|
},
|
|
81
93
|
"attribute": "statvalue",
|
|
82
94
|
"reflect": false
|
|
@@ -92,8 +104,11 @@ export class StatComponent {
|
|
|
92
104
|
"required": false,
|
|
93
105
|
"optional": false,
|
|
94
106
|
"docs": {
|
|
95
|
-
"tags": [
|
|
96
|
-
|
|
107
|
+
"tags": [{
|
|
108
|
+
"text": "Stat Description",
|
|
109
|
+
"name": "uiName"
|
|
110
|
+
}],
|
|
111
|
+
"text": "Description of the stat"
|
|
97
112
|
},
|
|
98
113
|
"attribute": "statdescription",
|
|
99
114
|
"reflect": false
|
|
@@ -109,8 +124,11 @@ export class StatComponent {
|
|
|
109
124
|
"required": false,
|
|
110
125
|
"optional": false,
|
|
111
126
|
"docs": {
|
|
112
|
-
"tags": [
|
|
113
|
-
|
|
127
|
+
"tags": [{
|
|
128
|
+
"text": "Stat Color",
|
|
129
|
+
"name": "uiName"
|
|
130
|
+
}],
|
|
131
|
+
"text": "Color of the stat value and description"
|
|
114
132
|
},
|
|
115
133
|
"attribute": "statcolor",
|
|
116
134
|
"reflect": false
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { h, Component, Prop } from "@stencil/core";
|
|
2
2
|
import FormatJS from "../../services/FormatJs";
|
|
3
|
+
/**
|
|
4
|
+
* @uiName Referral Component
|
|
5
|
+
*/
|
|
3
6
|
export class ReferralComponent {
|
|
4
7
|
getName() {
|
|
5
8
|
const referral = this.referral;
|
|
@@ -156,8 +159,11 @@ export class ReferralComponent {
|
|
|
156
159
|
"required": false,
|
|
157
160
|
"optional": false,
|
|
158
161
|
"docs": {
|
|
159
|
-
"tags": [
|
|
160
|
-
|
|
162
|
+
"tags": [{
|
|
163
|
+
"text": "Referral",
|
|
164
|
+
"name": "uiName"
|
|
165
|
+
}],
|
|
166
|
+
"text": "Referral object"
|
|
161
167
|
}
|
|
162
168
|
},
|
|
163
169
|
"referraltype": {
|
|
@@ -171,8 +177,11 @@ export class ReferralComponent {
|
|
|
171
177
|
"required": false,
|
|
172
178
|
"optional": false,
|
|
173
179
|
"docs": {
|
|
174
|
-
"tags": [
|
|
175
|
-
|
|
180
|
+
"tags": [{
|
|
181
|
+
"text": "Referral Type",
|
|
182
|
+
"name": "uiName"
|
|
183
|
+
}],
|
|
184
|
+
"text": "Type of referral"
|
|
176
185
|
},
|
|
177
186
|
"attribute": "referraltype",
|
|
178
187
|
"reflect": false
|
|
@@ -192,8 +201,11 @@ export class ReferralComponent {
|
|
|
192
201
|
"required": false,
|
|
193
202
|
"optional": false,
|
|
194
203
|
"docs": {
|
|
195
|
-
"tags": [
|
|
196
|
-
|
|
204
|
+
"tags": [{
|
|
205
|
+
"text": "Referral Variables",
|
|
206
|
+
"name": "uiName"
|
|
207
|
+
}],
|
|
208
|
+
"text": "Referral variables used to format the row in the referral list"
|
|
197
209
|
}
|
|
198
210
|
},
|
|
199
211
|
"unknownuser": {
|
|
@@ -211,8 +223,11 @@ export class ReferralComponent {
|
|
|
211
223
|
"required": false,
|
|
212
224
|
"optional": false,
|
|
213
225
|
"docs": {
|
|
214
|
-
"tags": [
|
|
215
|
-
|
|
226
|
+
"tags": [{
|
|
227
|
+
"text": "Unknown User",
|
|
228
|
+
"name": "uiName"
|
|
229
|
+
}],
|
|
230
|
+
"text": "Text shown when the name of a user is unknown"
|
|
216
231
|
}
|
|
217
232
|
},
|
|
218
233
|
"locale": {
|
|
@@ -226,8 +241,11 @@ export class ReferralComponent {
|
|
|
226
241
|
"required": false,
|
|
227
242
|
"optional": false,
|
|
228
243
|
"docs": {
|
|
229
|
-
"tags": [
|
|
230
|
-
|
|
244
|
+
"tags": [{
|
|
245
|
+
"text": "Local",
|
|
246
|
+
"name": "uiName"
|
|
247
|
+
}],
|
|
248
|
+
"text": "Configure the local"
|
|
231
249
|
},
|
|
232
250
|
"attribute": "locale",
|
|
233
251
|
"reflect": false
|