@mindful-web/marko-web-identity-x 1.19.2 → 1.19.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.
- package/browser/form/fields/custom-select-multiple.vue +23 -1
- package/browser/form/fields/custom-select-write-in.vue +4 -0
- package/browser/form/fields/custom-select.vue +27 -1
- package/browser/profile.vue +3 -2
- package/components/access.marko.js +2 -2
- package/components/comment-stream.marko.js +2 -2
- package/components/context.marko.js +2 -2
- package/components/form-access.marko.js +2 -2
- package/components/form-authenticate.marko.js +2 -2
- package/components/form-change-email.marko.js +2 -2
- package/components/form-login.marko.js +2 -2
- package/components/form-logout.marko.js +2 -2
- package/components/form-profile.marko.js +2 -2
- package/components/form-register.marko.js +2 -2
- package/components/identify.marko.js +2 -2
- package/components/non-auth-identify.marko.js +2 -2
- package/package.json +2 -2
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
<div class="csmulti-wrapper p-2">
|
|
9
9
|
<div class="csmulti-inner">
|
|
10
10
|
<label class="text-muted">
|
|
11
|
-
Select all that apply...
|
|
11
|
+
{{ translate({ key: 'Select all that apply...' }) }}
|
|
12
12
|
</label>
|
|
13
13
|
|
|
14
14
|
<template v-for="option in options">
|
|
@@ -64,6 +64,10 @@ export default {
|
|
|
64
64
|
type: String,
|
|
65
65
|
required: true,
|
|
66
66
|
},
|
|
67
|
+
lang: {
|
|
68
|
+
type: String,
|
|
69
|
+
default: 'en',
|
|
70
|
+
},
|
|
67
71
|
options: {
|
|
68
72
|
type: Array,
|
|
69
73
|
required: true,
|
|
@@ -93,5 +97,23 @@ export default {
|
|
|
93
97
|
default: () => ({}),
|
|
94
98
|
},
|
|
95
99
|
},
|
|
100
|
+
methods: {
|
|
101
|
+
translate({ key }) {
|
|
102
|
+
const { lang } = this;
|
|
103
|
+
const i18n = {
|
|
104
|
+
pt: {
|
|
105
|
+
'Select all that apply...': 'Selecione tudo o que se aplica...',
|
|
106
|
+
},
|
|
107
|
+
es: {
|
|
108
|
+
'Select all that apply...': 'Seleccione todo lo que corresponda...',
|
|
109
|
+
},
|
|
110
|
+
en: {
|
|
111
|
+
'Select all that apply...': 'Select all that apply...',
|
|
112
|
+
},
|
|
113
|
+
};
|
|
114
|
+
const value = (i18n[lang] && i18n[lang][key]) ? i18n[lang][key] : i18n.en[key] || '';
|
|
115
|
+
return value;
|
|
116
|
+
},
|
|
117
|
+
},
|
|
96
118
|
};
|
|
97
119
|
</script>
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
:selected="selectedOptionIds"
|
|
11
11
|
:required="required"
|
|
12
12
|
:label="label"
|
|
13
|
+
:lang="lang"
|
|
13
14
|
:field-id="fieldId"
|
|
14
15
|
:can-write-in="canWriteIn"
|
|
15
16
|
:write-in-label="writeInLabel"
|
|
@@ -24,7 +25,7 @@
|
|
|
24
25
|
@change="$emit('change', [$event.target.value])"
|
|
25
26
|
>
|
|
26
27
|
<option value="">
|
|
27
|
-
Please
|
|
28
|
+
{{ translate({ key: 'Please Select...' }) }}
|
|
28
29
|
</option>
|
|
29
30
|
<template v-for="option in options">
|
|
30
31
|
<optgroup
|
|
@@ -55,6 +56,7 @@
|
|
|
55
56
|
v-else
|
|
56
57
|
:label="writeInLabel"
|
|
57
58
|
:answer="writeInAnswer"
|
|
59
|
+
:lang="lang"
|
|
58
60
|
:required="required"
|
|
59
61
|
@clear="clearWriteIn($event)"
|
|
60
62
|
/>
|
|
@@ -92,6 +94,14 @@ export default {
|
|
|
92
94
|
required: true,
|
|
93
95
|
},
|
|
94
96
|
|
|
97
|
+
/**
|
|
98
|
+
* Language this component should be rendered in
|
|
99
|
+
*/
|
|
100
|
+
lang: {
|
|
101
|
+
type: String,
|
|
102
|
+
default: 'en',
|
|
103
|
+
},
|
|
104
|
+
|
|
95
105
|
/**
|
|
96
106
|
* Whether the field is required.
|
|
97
107
|
*/
|
|
@@ -186,6 +196,22 @@ export default {
|
|
|
186
196
|
const selected = this.selected.filter((item) => item.id !== optionId);
|
|
187
197
|
this.$emit('change', selected);
|
|
188
198
|
},
|
|
199
|
+
translate({ key }) {
|
|
200
|
+
const { lang } = this;
|
|
201
|
+
const i18n = {
|
|
202
|
+
pt: {
|
|
203
|
+
'Please Select...': 'Selecione...',
|
|
204
|
+
},
|
|
205
|
+
es: {
|
|
206
|
+
'Please Select...': 'Seleccione...',
|
|
207
|
+
},
|
|
208
|
+
en: {
|
|
209
|
+
'Please Select...': 'Please Select...',
|
|
210
|
+
},
|
|
211
|
+
};
|
|
212
|
+
const value = (i18n[lang] && i18n[lang][key]) ? i18n[lang][key] : i18n.en[key] || '';
|
|
213
|
+
return value;
|
|
214
|
+
},
|
|
189
215
|
},
|
|
190
216
|
};
|
|
191
217
|
</script>
|
package/browser/profile.vue
CHANGED
|
@@ -152,6 +152,7 @@
|
|
|
152
152
|
:class="{ 'col-md-6': (customSelectFieldAnswers.length > 1) }"
|
|
153
153
|
:label="fieldAnswer.field.label"
|
|
154
154
|
:required="customSelectIsRequired(fieldAnswer)"
|
|
155
|
+
:lang="lang"
|
|
155
156
|
:multiple="fieldAnswer.field.multiple"
|
|
156
157
|
:selected="fieldAnswer.answers"
|
|
157
158
|
:options="fieldAnswer.field.options"
|
|
@@ -630,8 +631,8 @@ export default {
|
|
|
630
631
|
'seconds.': 'segundas.',
|
|
631
632
|
'To continue now,': 'Para continuar agora,',
|
|
632
633
|
'click here': 'clique aqui',
|
|
633
|
-
'To continue modifying your profile,': 'Para continuar
|
|
634
|
-
'To return to the home page, ': 'Para
|
|
634
|
+
'To continue modifying your profile,': 'Para continuar editando seu perfil,,',
|
|
635
|
+
'To return to the home page, ': 'Para voltar à página inicial, ',
|
|
635
636
|
'You must be logged in to modify your user profile.': 'Você precisa estar logado para modificar seu perfil de usuário.',
|
|
636
637
|
},
|
|
637
638
|
es: {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
4
|
var marko_template = module.exports = require("marko/dist/html").t(__filename),
|
|
5
|
-
marko_componentType = "/@mindful-web/marko-web-identity-x$1.19.
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web-identity-x$1.19.4/components/access.marko",
|
|
6
6
|
marko_component = require("./access.marko"),
|
|
7
7
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
|
8
8
|
module_objectPath_module = require("@mindful-web/object-path"),
|
|
@@ -53,7 +53,7 @@ marko_template._ = marko_renderer(render, {
|
|
|
53
53
|
}, marko_component);
|
|
54
54
|
|
|
55
55
|
marko_template.meta = {
|
|
56
|
-
id: "/@mindful-web/marko-web-identity-x$1.19.
|
|
56
|
+
id: "/@mindful-web/marko-web-identity-x$1.19.4/components/access.marko",
|
|
57
57
|
component: "./access.marko",
|
|
58
58
|
tags: [
|
|
59
59
|
"@mindful-web/marko-core/components/resolve.marko"
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
4
|
var marko_template = module.exports = require("marko/dist/html").t(__filename),
|
|
5
|
-
marko_componentType = "/@mindful-web/marko-web-identity-x$1.19.
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web-identity-x$1.19.4/components/comment-stream.marko",
|
|
6
6
|
marko_component = require("./comment-stream.marko"),
|
|
7
7
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
|
8
8
|
module_objectPath_module = require("@mindful-web/object-path"),
|
|
@@ -68,7 +68,7 @@ marko_template._ = marko_renderer(render, {
|
|
|
68
68
|
}, marko_component);
|
|
69
69
|
|
|
70
70
|
marko_template.meta = {
|
|
71
|
-
id: "/@mindful-web/marko-web-identity-x$1.19.
|
|
71
|
+
id: "/@mindful-web/marko-web-identity-x$1.19.4/components/comment-stream.marko",
|
|
72
72
|
component: "./comment-stream.marko",
|
|
73
73
|
tags: [
|
|
74
74
|
"@mindful-web/marko-web/components/browser-component.marko",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
4
|
var marko_template = module.exports = require("marko/dist/html").t(__filename),
|
|
5
|
-
marko_componentType = "/@mindful-web/marko-web-identity-x$1.19.
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web-identity-x$1.19.4/components/context.marko",
|
|
6
6
|
marko_component = require("./context.marko"),
|
|
7
7
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
|
8
8
|
marko_dynamicTag = require("marko/dist/runtime/helpers/dynamic-tag"),
|
|
@@ -44,7 +44,7 @@ marko_template._ = marko_renderer(render, {
|
|
|
44
44
|
}, marko_component);
|
|
45
45
|
|
|
46
46
|
marko_template.meta = {
|
|
47
|
-
id: "/@mindful-web/marko-web-identity-x$1.19.
|
|
47
|
+
id: "/@mindful-web/marko-web-identity-x$1.19.4/components/context.marko",
|
|
48
48
|
component: "./context.marko",
|
|
49
49
|
tags: [
|
|
50
50
|
"@mindful-web/marko-core/components/resolve.marko"
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
4
|
var marko_template = module.exports = require("marko/dist/html").t(__filename),
|
|
5
|
-
marko_componentType = "/@mindful-web/marko-web-identity-x$1.19.
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web-identity-x$1.19.4/components/form-access.marko",
|
|
6
6
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
|
7
7
|
module_defaultValue = require("@mindful-web/marko-core/utils/default-value"),
|
|
8
8
|
defaultValue = module_defaultValue.default || module_defaultValue,
|
|
@@ -107,7 +107,7 @@ marko_template._ = marko_renderer(render, {
|
|
|
107
107
|
});
|
|
108
108
|
|
|
109
109
|
marko_template.meta = {
|
|
110
|
-
id: "/@mindful-web/marko-web-identity-x$1.19.
|
|
110
|
+
id: "/@mindful-web/marko-web-identity-x$1.19.4/components/form-access.marko",
|
|
111
111
|
tags: [
|
|
112
112
|
"@mindful-web/marko-web/components/browser-component.marko"
|
|
113
113
|
]
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
4
|
var marko_template = module.exports = require("marko/dist/html").t(__filename),
|
|
5
|
-
marko_componentType = "/@mindful-web/marko-web-identity-x$1.19.
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web-identity-x$1.19.4/components/form-authenticate.marko",
|
|
6
6
|
marko_component = require("./form-authenticate.marko"),
|
|
7
7
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
|
8
8
|
module_objectPath_module = require("@mindful-web/object-path"),
|
|
@@ -68,7 +68,7 @@ marko_template._ = marko_renderer(render, {
|
|
|
68
68
|
}, marko_component);
|
|
69
69
|
|
|
70
70
|
marko_template.meta = {
|
|
71
|
-
id: "/@mindful-web/marko-web-identity-x$1.19.
|
|
71
|
+
id: "/@mindful-web/marko-web-identity-x$1.19.4/components/form-authenticate.marko",
|
|
72
72
|
component: "./form-authenticate.marko",
|
|
73
73
|
tags: [
|
|
74
74
|
"@mindful-web/marko-web/components/browser-component.marko",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
4
|
var marko_template = module.exports = require("marko/dist/html").t(__filename),
|
|
5
|
-
marko_componentType = "/@mindful-web/marko-web-identity-x$1.19.
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web-identity-x$1.19.4/components/form-change-email.marko",
|
|
6
6
|
marko_component = require("./form-change-email.marko"),
|
|
7
7
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
|
8
8
|
module_objectPath_module = require("@mindful-web/object-path"),
|
|
@@ -59,7 +59,7 @@ marko_template._ = marko_renderer(render, {
|
|
|
59
59
|
}, marko_component);
|
|
60
60
|
|
|
61
61
|
marko_template.meta = {
|
|
62
|
-
id: "/@mindful-web/marko-web-identity-x$1.19.
|
|
62
|
+
id: "/@mindful-web/marko-web-identity-x$1.19.4/components/form-change-email.marko",
|
|
63
63
|
component: "./form-change-email.marko",
|
|
64
64
|
tags: [
|
|
65
65
|
"@mindful-web/marko-web/components/browser-component.marko",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
4
|
var marko_template = module.exports = require("marko/dist/html").t(__filename),
|
|
5
|
-
marko_componentType = "/@mindful-web/marko-web-identity-x$1.19.
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web-identity-x$1.19.4/components/form-login.marko",
|
|
6
6
|
marko_component = require("./form-login.marko"),
|
|
7
7
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
|
8
8
|
module_objectPath_module = require("@mindful-web/object-path"),
|
|
@@ -64,7 +64,7 @@ marko_template._ = marko_renderer(render, {
|
|
|
64
64
|
}, marko_component);
|
|
65
65
|
|
|
66
66
|
marko_template.meta = {
|
|
67
|
-
id: "/@mindful-web/marko-web-identity-x$1.19.
|
|
67
|
+
id: "/@mindful-web/marko-web-identity-x$1.19.4/components/form-login.marko",
|
|
68
68
|
component: "./form-login.marko",
|
|
69
69
|
tags: [
|
|
70
70
|
"@mindful-web/marko-web/components/browser-component.marko",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
4
|
var marko_template = module.exports = require("marko/dist/html").t(__filename),
|
|
5
|
-
marko_componentType = "/@mindful-web/marko-web-identity-x$1.19.
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web-identity-x$1.19.4/components/form-logout.marko",
|
|
6
6
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
|
7
7
|
module_defaultValue = require("@mindful-web/marko-core/utils/default-value"),
|
|
8
8
|
defaultValue = module_defaultValue.default || module_defaultValue,
|
|
@@ -29,7 +29,7 @@ marko_template._ = marko_renderer(render, {
|
|
|
29
29
|
});
|
|
30
30
|
|
|
31
31
|
marko_template.meta = {
|
|
32
|
-
id: "/@mindful-web/marko-web-identity-x$1.19.
|
|
32
|
+
id: "/@mindful-web/marko-web-identity-x$1.19.4/components/form-logout.marko",
|
|
33
33
|
tags: [
|
|
34
34
|
"@mindful-web/marko-web/components/browser-component.marko"
|
|
35
35
|
]
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
4
|
var marko_template = module.exports = require("marko/dist/html").t(__filename),
|
|
5
|
-
marko_componentType = "/@mindful-web/marko-web-identity-x$1.19.
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web-identity-x$1.19.4/components/form-profile.marko",
|
|
6
6
|
marko_component = require("./form-profile.marko"),
|
|
7
7
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
|
8
8
|
module_objectPath_module = require("@mindful-web/object-path"),
|
|
@@ -73,7 +73,7 @@ marko_template._ = marko_renderer(render, {
|
|
|
73
73
|
}, marko_component);
|
|
74
74
|
|
|
75
75
|
marko_template.meta = {
|
|
76
|
-
id: "/@mindful-web/marko-web-identity-x$1.19.
|
|
76
|
+
id: "/@mindful-web/marko-web-identity-x$1.19.4/components/form-profile.marko",
|
|
77
77
|
component: "./form-profile.marko",
|
|
78
78
|
tags: [
|
|
79
79
|
"@mindful-web/marko-web/components/browser-component.marko",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
4
|
var marko_template = module.exports = require("marko/dist/html").t(__filename),
|
|
5
|
-
marko_componentType = "/@mindful-web/marko-web-identity-x$1.19.
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web-identity-x$1.19.4/components/form-register.marko",
|
|
6
6
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
|
7
7
|
marko_assign = require("marko/dist/runtime/helpers/assign"),
|
|
8
8
|
marko_web_identity_x_form_login_template = require("./form-login.marko"),
|
|
@@ -25,7 +25,7 @@ marko_template._ = marko_renderer(render, {
|
|
|
25
25
|
});
|
|
26
26
|
|
|
27
27
|
marko_template.meta = {
|
|
28
|
-
id: "/@mindful-web/marko-web-identity-x$1.19.
|
|
28
|
+
id: "/@mindful-web/marko-web-identity-x$1.19.4/components/form-register.marko",
|
|
29
29
|
tags: [
|
|
30
30
|
"./form-login.marko"
|
|
31
31
|
]
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
4
|
var marko_template = module.exports = require("marko/dist/html").t(__filename),
|
|
5
|
-
marko_componentType = "/@mindful-web/marko-web-identity-x$1.19.
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web-identity-x$1.19.4/components/identify.marko",
|
|
6
6
|
marko_component = require("./identify.marko"),
|
|
7
7
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
|
8
8
|
module_objectPath_module = require("@mindful-web/object-path"),
|
|
@@ -50,7 +50,7 @@ marko_template._ = marko_renderer(render, {
|
|
|
50
50
|
}, marko_component);
|
|
51
51
|
|
|
52
52
|
marko_template.meta = {
|
|
53
|
-
id: "/@mindful-web/marko-web-identity-x$1.19.
|
|
53
|
+
id: "/@mindful-web/marko-web-identity-x$1.19.4/components/identify.marko",
|
|
54
54
|
component: "./identify.marko",
|
|
55
55
|
tags: [
|
|
56
56
|
"@mindful-web/marko-web-gtm/components/push.marko",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
4
|
var marko_template = module.exports = require("marko/dist/html").t(__filename),
|
|
5
|
-
marko_componentType = "/@mindful-web/marko-web-identity-x$1.19.
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web-identity-x$1.19.4/components/non-auth-identify.marko",
|
|
6
6
|
marko_component = require("./non-auth-identify.marko"),
|
|
7
7
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
|
8
8
|
marko_dynamicTag = require("marko/dist/runtime/helpers/dynamic-tag"),
|
|
@@ -45,7 +45,7 @@ marko_template._ = marko_renderer(render, {
|
|
|
45
45
|
}, marko_component);
|
|
46
46
|
|
|
47
47
|
marko_template.meta = {
|
|
48
|
-
id: "/@mindful-web/marko-web-identity-x$1.19.
|
|
48
|
+
id: "/@mindful-web/marko-web-identity-x$1.19.4/components/non-auth-identify.marko",
|
|
49
49
|
component: "./non-auth-identify.marko",
|
|
50
50
|
tags: [
|
|
51
51
|
"@mindful-web/marko-core/components/resolve.marko"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mindful-web/marko-web-identity-x",
|
|
3
|
-
"version": "1.19.
|
|
3
|
+
"version": "1.19.4",
|
|
4
4
|
"description": "Marko Wrapper for IdentityX",
|
|
5
5
|
"repository": "https://github.com/parameter1/mindful-web/tree/main/packages/marko-web-identity-x",
|
|
6
6
|
"author": "Josh Worden <josh@parameter1.com>",
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"publishConfig": {
|
|
38
38
|
"access": "public"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "daccb445f52fc6c12a602f0d2655d03966dd823f"
|
|
41
41
|
}
|