comand-component-library 4.1.89 → 4.1.90
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/comand-component-library.js +1764 -1736
- package/package.json +4 -4
- package/src/ComponentLibrary.vue +2 -1
- package/src/assets/data/all-currencies.json +24 -0
- package/src/components/CmdFormElement.vue +44 -9
- package/src/components/CmdGoogleMaps.vue +3 -5
- package/src/css.js +3 -0
- package/src/assets/styles/editmode-iconfont.css +0 -227
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "comand-component-library",
|
3
|
-
"version": "4.1.
|
3
|
+
"version": "4.1.90",
|
4
4
|
"license": "GPL-3.0-only",
|
5
5
|
"author": "CoManD-UI",
|
6
6
|
"private": false,
|
@@ -20,14 +20,14 @@
|
|
20
20
|
".": "./dist/comand-component-library.js",
|
21
21
|
"./css.js": "./src/css.js",
|
22
22
|
"./style.css": "./dist/style.css",
|
23
|
-
"./variables.scss": "./src/assets/styles/variables.scss",
|
24
23
|
"./export-data.js": "./src/assets/data/export-data.js",
|
25
|
-
"./all-countries.json": "./src/assets/data/all-countries.json"
|
24
|
+
"./all-countries.json": "./src/assets/data/all-countries.json",
|
25
|
+
"./all-currencies.json": "./src/assets/data/all-currencies.json"
|
26
26
|
},
|
27
27
|
"dependencies": {
|
28
28
|
"clickout-event": "^1.1.2",
|
29
29
|
"comand-component-library": "^4.1.63",
|
30
|
-
"comand-frontend-framework": "^4.1.
|
30
|
+
"comand-frontend-framework": "^4.1.29",
|
31
31
|
"comand-ui-iconfonts": "^1.0.14",
|
32
32
|
"core-js": "^3.20.1",
|
33
33
|
"prismjs": "^1.27.0",
|
package/src/ComponentLibrary.vue
CHANGED
@@ -518,6 +518,7 @@
|
|
518
518
|
:disabled="disabledStatus"
|
519
519
|
:selectOptions="allCountriesData"
|
520
520
|
v-model="selectedCountry"
|
521
|
+
:groupSelectOptionsByInitialLetters="true"
|
521
522
|
max-height="10rem"
|
522
523
|
defaultOptionName="Select country:"
|
523
524
|
/>
|
@@ -1415,7 +1416,7 @@
|
|
1415
1416
|
<!-- begin google-maps --------------------------------------------------------------------------------------------------->
|
1416
1417
|
<CmdWidthLimitationWrapper>
|
1417
1418
|
<h2 class="headline-demopage" id="section-google-maps">Google Maps™</h2>
|
1418
|
-
<CmdGoogleMaps :address="addressData"/>
|
1419
|
+
<CmdGoogleMaps :address="addressData[1]"/>
|
1419
1420
|
</CmdWidthLimitationWrapper>
|
1420
1421
|
<!-- end google-maps --------------------------------------------------------------------------------------------------->
|
1421
1422
|
|
@@ -0,0 +1,24 @@
|
|
1
|
+
[
|
2
|
+
{"text": "Australian Dollar", "value": "aud"},
|
3
|
+
{"text": "Brazilian Real", "value": "brl"},
|
4
|
+
{"text": "British Pound", "value": "gbp"},
|
5
|
+
{"text": "Canadian Dollar", "value": "cad"},
|
6
|
+
{"text": "Chinese Yuan", "value": "cny"},
|
7
|
+
{"text": "Danish Krone", "value": "dkk"},
|
8
|
+
{"text": "Euro", "value": "eur"},
|
9
|
+
{"text": "Hong Kong Dollar", "value": "hkd"},
|
10
|
+
{"text": "Indian Rupee", "value": "inr"},
|
11
|
+
{"text": "Israeli Shekel", "value": "ils"},
|
12
|
+
{"text": "Japanese Yen", "value": "jpy"},
|
13
|
+
{"text": "Mexican Peso", "value": "mxn"},
|
14
|
+
{"text": "New Zealand Dollar", "value": "nzd"},
|
15
|
+
{"text": "Norwegian Krone", "value": "nok"},
|
16
|
+
{"text": "Russian Ruble", "value": "rub"},
|
17
|
+
{"text": "Singapore Dollar", "value": "sgd"},
|
18
|
+
{"text": "South African Rand", "value": "zar"},
|
19
|
+
{"text": "South Korean Won", "value": "krw"},
|
20
|
+
{"text": "Swedish Krona", "value": "sek"},
|
21
|
+
{"text": "Swiss Franc", "value": "chf"},
|
22
|
+
{"text": "Turkish Lira", "value": "try"},
|
23
|
+
{"text": "US Dollar", "value": "usd"}
|
24
|
+
]
|
@@ -177,14 +177,28 @@
|
|
177
177
|
:id="htmlId"
|
178
178
|
@blur="onBlur"
|
179
179
|
@change="$emit('update:modelValue', $event.target.value)">
|
180
|
-
|
181
|
-
v-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
180
|
+
|
181
|
+
<option v-if="!groupSelectOptionsByInitialLetters"
|
182
|
+
v-for="(option, index) in selectOptions"
|
183
|
+
:key="index"
|
184
|
+
:value="option.value"
|
185
|
+
:selected="option.value === modelValue"
|
186
|
+
>
|
187
|
+
{{ option.text }}
|
188
|
+
</option>
|
189
|
+
<optgroup v-else :label="key"
|
190
|
+
v-for="(options, key) in initialLetters"
|
191
|
+
:key="key"
|
192
|
+
>
|
193
|
+
<option
|
194
|
+
v-for="(option, optionIndex) in options"
|
195
|
+
:key="optionIndex"
|
196
|
+
:value="option.value"
|
197
|
+
:selected="option.value === modelValue"
|
198
|
+
>
|
199
|
+
{{ option.text }}
|
200
|
+
</option>
|
201
|
+
</optgroup>
|
188
202
|
</select>
|
189
203
|
<!-- end selectbox -->
|
190
204
|
|
@@ -284,6 +298,10 @@ export default {
|
|
284
298
|
}
|
285
299
|
},
|
286
300
|
props: {
|
301
|
+
groupSelectOptionsByInitialLetters: {
|
302
|
+
type: Boolean,
|
303
|
+
default: false
|
304
|
+
},
|
287
305
|
/**
|
288
306
|
* specify a scroll-container which scrolling hides the tooltip
|
289
307
|
*/
|
@@ -376,7 +394,7 @@ export default {
|
|
376
394
|
*
|
377
395
|
* @affectsStyling: true
|
378
396
|
*/
|
379
|
-
|
397
|
+
colored: {
|
380
398
|
type: Boolean,
|
381
399
|
required: false
|
382
400
|
},
|
@@ -680,6 +698,9 @@ export default {
|
|
680
698
|
}
|
681
699
|
},
|
682
700
|
computed: {
|
701
|
+
initialLetters() {
|
702
|
+
return this.getInitialLetters(this.selectOptions)
|
703
|
+
},
|
683
704
|
elementAttributes() {
|
684
705
|
const commonAttributes = ["name", "required", "readonly", "disabled", "autofocus"]
|
685
706
|
const attributes = {
|
@@ -761,6 +782,20 @@ export default {
|
|
761
782
|
}
|
762
783
|
},
|
763
784
|
methods: {
|
785
|
+
getInitialLetters(listOfOptions) {
|
786
|
+
const groupedListOfOptions = {}
|
787
|
+
// compare the text-keys (in lower case) and sort them
|
788
|
+
listOfOptions.sort((a, b) => a.text.toLowerCase().localeCompare(b.text.toLowerCase()))
|
789
|
+
|
790
|
+
for (let i = 0; i < listOfOptions.length; i++) {
|
791
|
+
const initialLetter = listOfOptions[i].text.slice(0,1)
|
792
|
+
if (!groupedListOfOptions[initialLetter]) {
|
793
|
+
groupedListOfOptions[initialLetter] = []
|
794
|
+
}
|
795
|
+
groupedListOfOptions[initialLetter].push(listOfOptions[i])
|
796
|
+
}
|
797
|
+
return groupedListOfOptions
|
798
|
+
},
|
764
799
|
setFocus() {
|
765
800
|
this.$refs.label.querySelector("input, select, textarea")?.focus()
|
766
801
|
},
|
@@ -63,11 +63,9 @@ export default {
|
|
63
63
|
computed: {
|
64
64
|
locateAddress() {
|
65
65
|
if(this.address) {
|
66
|
-
|
67
|
-
|
68
|
-
url
|
69
|
-
/* url.searchParams.set("hl", "de")
|
70
|
-
url.searchParams.set("q", [this.address.streetNo, this.address.zip, this.address.city, this.address.country, this.address.latitude, this.address.longitude, this.address.location].join(" ").trim())*/
|
66
|
+
const url = new URL("https://maps.google.de/maps?ie=UTF8&t=&z=17&iwloc=B&output=embed")
|
67
|
+
url.searchParams.set("hl", "de")
|
68
|
+
url.searchParams.set("q", [this.address.streetNo, this.address.zip, this.address.city, this.address.country, this.address.latitude, this.address.longitude, this.address.location].join(" ").trim())
|
71
69
|
return url
|
72
70
|
}
|
73
71
|
return "https://maps.google.de/maps?ie=UTF8&t=&z=17&iwloc=B&output=embed"
|
package/src/css.js
CHANGED
@@ -18,6 +18,9 @@ import 'comand-ui-iconfonts/src/fonts/medical-iconfont/medical-iconfont.css'
|
|
18
18
|
/* end imports from comand-ui-iconfonts---------------------------------------------------------------------------------------- */
|
19
19
|
|
20
20
|
/* begin imports from comand-component-library ---------------------------------------------------------------------------------------- */
|
21
|
+
/* import css for scss-variables */
|
22
|
+
import './assets/styles/variables.scss'
|
23
|
+
|
21
24
|
/* import css for global-styles */
|
22
25
|
import './assets/styles/component-library-global-styles.scss'
|
23
26
|
|
@@ -1,227 +0,0 @@
|
|
1
|
-
/* editmode-iconfont-iconfont.css - last update: 2024/01/04 - IT IS NOT RECOMMENDED TO EDIT THIS FILE (TO AVOID TROUBLESHOOTING AFTER UPDATING) - DO CHANGES IN template.css OR YOUR OWN iconfont-css-file */
|
2
|
-
|
3
|
-
@font-face {
|
4
|
-
font-family: 'icomoon';
|
5
|
-
src: url('../fonts/iconfonts/editmode-iconfont/icomoon-editmode.woff?ai9tjp') format('woff');
|
6
|
-
font-weight: normal;
|
7
|
-
font-style: normal;
|
8
|
-
font-display: block;
|
9
|
-
unicode-range: U+c???;
|
10
|
-
}
|
11
|
-
|
12
|
-
[class^="icon-"], [class*=" icon-"] {
|
13
|
-
/* use !important to prevent issues with browser extensions that change fonts */
|
14
|
-
font-family: 'icomoon' !important;
|
15
|
-
speak: never;
|
16
|
-
font-style: normal;
|
17
|
-
font-weight: normal;
|
18
|
-
font-variant: normal;
|
19
|
-
text-transform: none;
|
20
|
-
line-height: 1;
|
21
|
-
|
22
|
-
/* Better Font Rendering =========== */
|
23
|
-
-webkit-font-smoothing: antialiased;
|
24
|
-
-moz-osx-font-smoothing: grayscale;
|
25
|
-
}
|
26
|
-
|
27
|
-
.icon-add-component:before {
|
28
|
-
content: "\c900";
|
29
|
-
}
|
30
|
-
.icon-add-image:before {
|
31
|
-
content: "\c901";
|
32
|
-
}
|
33
|
-
.icon-add-images:before {
|
34
|
-
content: "\c902";
|
35
|
-
}
|
36
|
-
.icon-add-user:before {
|
37
|
-
content: "\c903";
|
38
|
-
}
|
39
|
-
.icon-add-user-circle:before {
|
40
|
-
content: "\c904";
|
41
|
-
}
|
42
|
-
.icon-add-user-group:before {
|
43
|
-
content: "\c905";
|
44
|
-
}
|
45
|
-
.icon-cmd-cl:before {
|
46
|
-
content: "\c906";
|
47
|
-
}
|
48
|
-
.icon-cmd-cms:before {
|
49
|
-
content: "\c907";
|
50
|
-
}
|
51
|
-
.icon-cmd-ff:before {
|
52
|
-
content: "\c908";
|
53
|
-
}
|
54
|
-
.icon-cmd-op:before {
|
55
|
-
content: "\c909";
|
56
|
-
}
|
57
|
-
.icon-component:before {
|
58
|
-
content: "\c90a";
|
59
|
-
}
|
60
|
-
.icon-contentpage:before {
|
61
|
-
content: "\c90b";
|
62
|
-
}
|
63
|
-
.icon-create:before {
|
64
|
-
content: "\c90c";
|
65
|
-
}
|
66
|
-
.icon-create-box:before {
|
67
|
-
content: "\c90d";
|
68
|
-
}
|
69
|
-
.icon-create-content:before {
|
70
|
-
content: "\c90e";
|
71
|
-
}
|
72
|
-
.icon-create-content-sub-level:before {
|
73
|
-
content: "\c90f";
|
74
|
-
}
|
75
|
-
.icon-create-navigation-entry:before {
|
76
|
-
content: "\c910";
|
77
|
-
}
|
78
|
-
.icon-create-newspage:before {
|
79
|
-
content: "\c911";
|
80
|
-
}
|
81
|
-
.icon-create-page:before {
|
82
|
-
content: "\c912";
|
83
|
-
}
|
84
|
-
.icon-create-translation:before {
|
85
|
-
content: "\c913";
|
86
|
-
}
|
87
|
-
.icon-delete-component:before {
|
88
|
-
content: "\c914";
|
89
|
-
}
|
90
|
-
.icon-delete-image:before {
|
91
|
-
content: "\c915";
|
92
|
-
}
|
93
|
-
.icon-delete-page:before {
|
94
|
-
content: "\c916";
|
95
|
-
}
|
96
|
-
.icon-dependencies:before {
|
97
|
-
content: "\c917";
|
98
|
-
}
|
99
|
-
.icon-edit-box:before {
|
100
|
-
content: "\c918";
|
101
|
-
}
|
102
|
-
.icon-edit-component:before {
|
103
|
-
content: "\c919";
|
104
|
-
}
|
105
|
-
.icon-edit-content:before {
|
106
|
-
content: "\c91a";
|
107
|
-
}
|
108
|
-
.icon-edit-images:before {
|
109
|
-
content: "\c91b";
|
110
|
-
}
|
111
|
-
.icon-edit-language:before {
|
112
|
-
content: "\c91c";
|
113
|
-
}
|
114
|
-
.icon-edit-modulepage:before {
|
115
|
-
content: "\c91d";
|
116
|
-
}
|
117
|
-
.icon-edit-modules:before {
|
118
|
-
content: "\c91e";
|
119
|
-
}
|
120
|
-
.icon-edit-navigation-entry:before {
|
121
|
-
content: "\c91f";
|
122
|
-
}
|
123
|
-
.icon-edit-newspage:before {
|
124
|
-
content: "\c920";
|
125
|
-
}
|
126
|
-
.icon-edit-page:before {
|
127
|
-
content: "\c921";
|
128
|
-
}
|
129
|
-
.icon-edit-slideshowimages:before {
|
130
|
-
content: "\c922";
|
131
|
-
}
|
132
|
-
.icon-edit-template:before {
|
133
|
-
content: "\c923";
|
134
|
-
}
|
135
|
-
.icon-edit-translations:before {
|
136
|
-
content: "\c924";
|
137
|
-
}
|
138
|
-
.icon-edit-user:before {
|
139
|
-
content: "\c925";
|
140
|
-
}
|
141
|
-
.icon-edit-user-groups:before {
|
142
|
-
content: "\c926";
|
143
|
-
}
|
144
|
-
.icon-edit-users:before {
|
145
|
-
content: "\c927";
|
146
|
-
}
|
147
|
-
.icon-folder-add:before {
|
148
|
-
content: "\c928";
|
149
|
-
}
|
150
|
-
.icon-folder-delete:before {
|
151
|
-
content: "\c929";
|
152
|
-
}
|
153
|
-
.icon-folder-rename:before {
|
154
|
-
content: "\c92a";
|
155
|
-
}
|
156
|
-
.icon-hexagon-thin:before {
|
157
|
-
content: "\c92b";
|
158
|
-
}
|
159
|
-
.icon-link-content:before {
|
160
|
-
content: "\c92c";
|
161
|
-
}
|
162
|
-
.icon-link-file:before {
|
163
|
-
content: "\c92d";
|
164
|
-
}
|
165
|
-
.icon-link-website:before {
|
166
|
-
content: "\c92e";
|
167
|
-
}
|
168
|
-
.icon-manage-files:before {
|
169
|
-
content: "\c92f";
|
170
|
-
}
|
171
|
-
.icon-manage-languages:before {
|
172
|
-
content: "\c930";
|
173
|
-
}
|
174
|
-
.icon-manage-modules:before {
|
175
|
-
content: "\c931";
|
176
|
-
}
|
177
|
-
.icon-manage-slideshow-images:before {
|
178
|
-
content: "\c932";
|
179
|
-
}
|
180
|
-
.icon-manage-system:before {
|
181
|
-
content: "\c933";
|
182
|
-
}
|
183
|
-
.icon-mediacenter:before {
|
184
|
-
content: "\c934";
|
185
|
-
}
|
186
|
-
.icon-module:before {
|
187
|
-
content: "\c935";
|
188
|
-
}
|
189
|
-
.icon-modulepage:before {
|
190
|
-
content: "\c936";
|
191
|
-
}
|
192
|
-
.icon-navigation-entry:before {
|
193
|
-
content: "\c937";
|
194
|
-
}
|
195
|
-
.icon-newspage:before {
|
196
|
-
content: "\c938";
|
197
|
-
}
|
198
|
-
.icon-replace-image:before {
|
199
|
-
content: "\c939";
|
200
|
-
}
|
201
|
-
.icon-settings-component:before {
|
202
|
-
content: "\c93a";
|
203
|
-
}
|
204
|
-
.icon-settings-page:before {
|
205
|
-
content: "\c93b";
|
206
|
-
}
|
207
|
-
.icon-settings-template:before {
|
208
|
-
content: "\c93c";
|
209
|
-
}
|
210
|
-
.icon-show-image:before {
|
211
|
-
content: "\c93d";
|
212
|
-
}
|
213
|
-
.icon-table-of-contents:before {
|
214
|
-
content: "\c93e";
|
215
|
-
}
|
216
|
-
.icon-template:before {
|
217
|
-
content: "\c93f";
|
218
|
-
}
|
219
|
-
.icon-text:before {
|
220
|
-
content: "\c940";
|
221
|
-
}
|
222
|
-
.icon-update-component:before {
|
223
|
-
content: "\c941";
|
224
|
-
}
|
225
|
-
.icon-update-page:before {
|
226
|
-
content: "\c942";
|
227
|
-
}
|