jsuites 4.10.1 → 4.10.5
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/dist/jsuites.basic.css +2 -7
- package/dist/jsuites.basic.js +7 -3
- package/dist/jsuites.css +2 -7
- package/dist/jsuites.js +25 -4
- package/package.json +1 -1
package/dist/jsuites.basic.css
CHANGED
|
@@ -116,8 +116,6 @@ div[data-before]:before {
|
|
|
116
116
|
cursor: pointer;
|
|
117
117
|
box-sizing: border-box;
|
|
118
118
|
width: 100%;
|
|
119
|
-
max-height: 100%;
|
|
120
|
-
min-height: 180px;
|
|
121
119
|
display: flex;
|
|
122
120
|
align-items: center;
|
|
123
121
|
justify-content: center;
|
|
@@ -967,10 +965,6 @@ div[data-before]:before {
|
|
|
967
965
|
display: inline-block;
|
|
968
966
|
}
|
|
969
967
|
|
|
970
|
-
.jdropdown-header::placeholder {
|
|
971
|
-
color:#000;
|
|
972
|
-
}
|
|
973
|
-
|
|
974
968
|
.jdropdown-backdrop {
|
|
975
969
|
position:fixed;
|
|
976
970
|
top:0px;
|
|
@@ -1919,7 +1913,7 @@ div[data-before]:before {
|
|
|
1919
1913
|
}
|
|
1920
1914
|
|
|
1921
1915
|
.jtabs .jtabs-headers > div:not(.jtabs-border) {
|
|
1922
|
-
padding:
|
|
1916
|
+
padding: 8px;
|
|
1923
1917
|
padding-left: 20px;
|
|
1924
1918
|
padding-right: 20px;
|
|
1925
1919
|
margin-left: 1px;
|
|
@@ -2170,6 +2164,7 @@ div[data-before]:before {
|
|
|
2170
2164
|
background-position: top 50% right 0px;
|
|
2171
2165
|
display: flex;
|
|
2172
2166
|
align-items: center;
|
|
2167
|
+
font-size: 0.9em;
|
|
2173
2168
|
}
|
|
2174
2169
|
|
|
2175
2170
|
.jtoolbar .jpicker-content > div {
|
package/dist/jsuites.basic.js
CHANGED
|
@@ -5177,8 +5177,12 @@ jSuites.editor = (function(el, options) {
|
|
|
5177
5177
|
/**
|
|
5178
5178
|
* Set editor value
|
|
5179
5179
|
*/
|
|
5180
|
-
obj.setData = function(
|
|
5181
|
-
|
|
5180
|
+
obj.setData = function(o) {
|
|
5181
|
+
if (typeof(o) == 'object') {
|
|
5182
|
+
editor.innerHTML = o.content;
|
|
5183
|
+
} else {
|
|
5184
|
+
editor.innerHTML = o;
|
|
5185
|
+
}
|
|
5182
5186
|
|
|
5183
5187
|
if (obj.options.focus) {
|
|
5184
5188
|
jSuites.editor.setCursor(editor, true);
|
|
@@ -7901,7 +7905,7 @@ jSuites.mask = (function() {
|
|
|
7901
7905
|
o.tokens = getTokens.call(o, o.mask);
|
|
7902
7906
|
}
|
|
7903
7907
|
// On new input
|
|
7904
|
-
if (typeof(e) !== 'object'
|
|
7908
|
+
if (typeof(e) !== 'object' || ! e.inputType || ! e.inputType.indexOf('insert') || ! e.inputType.indexOf('delete')) {
|
|
7905
7909
|
// Start tranformation
|
|
7906
7910
|
if (o.locale) {
|
|
7907
7911
|
if (o.input) {
|
package/dist/jsuites.css
CHANGED
|
@@ -116,8 +116,6 @@ div[data-before]:before {
|
|
|
116
116
|
cursor: pointer;
|
|
117
117
|
box-sizing: border-box;
|
|
118
118
|
width: 100%;
|
|
119
|
-
max-height: 100%;
|
|
120
|
-
min-height: 180px;
|
|
121
119
|
display: flex;
|
|
122
120
|
align-items: center;
|
|
123
121
|
justify-content: center;
|
|
@@ -967,10 +965,6 @@ div[data-before]:before {
|
|
|
967
965
|
display: inline-block;
|
|
968
966
|
}
|
|
969
967
|
|
|
970
|
-
.jdropdown-header::placeholder {
|
|
971
|
-
color:#000;
|
|
972
|
-
}
|
|
973
|
-
|
|
974
968
|
.jdropdown-backdrop {
|
|
975
969
|
position:fixed;
|
|
976
970
|
top:0px;
|
|
@@ -2423,7 +2417,7 @@ div[data-before]:before {
|
|
|
2423
2417
|
}
|
|
2424
2418
|
|
|
2425
2419
|
.jtabs .jtabs-headers > div:not(.jtabs-border) {
|
|
2426
|
-
padding:
|
|
2420
|
+
padding: 8px;
|
|
2427
2421
|
padding-left: 20px;
|
|
2428
2422
|
padding-right: 20px;
|
|
2429
2423
|
margin-left: 1px;
|
|
@@ -2740,6 +2734,7 @@ div[data-before]:before {
|
|
|
2740
2734
|
background-position: top 50% right 0px;
|
|
2741
2735
|
display: flex;
|
|
2742
2736
|
align-items: center;
|
|
2737
|
+
font-size: 0.9em;
|
|
2743
2738
|
}
|
|
2744
2739
|
|
|
2745
2740
|
.jtoolbar .jpicker-content > div {
|
package/dist/jsuites.js
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
var jSuites = function(options) {
|
|
19
19
|
var obj = {}
|
|
20
|
-
var version = '4.10.
|
|
20
|
+
var version = '4.10.5';
|
|
21
21
|
|
|
22
22
|
var find = function(DOMElement, component) {
|
|
23
23
|
if (DOMElement[component.type] && DOMElement[component.type] == component) {
|
|
@@ -5188,8 +5188,12 @@ jSuites.editor = (function(el, options) {
|
|
|
5188
5188
|
/**
|
|
5189
5189
|
* Set editor value
|
|
5190
5190
|
*/
|
|
5191
|
-
obj.setData = function(
|
|
5192
|
-
|
|
5191
|
+
obj.setData = function(o) {
|
|
5192
|
+
if (typeof(o) == 'object') {
|
|
5193
|
+
editor.innerHTML = o.content;
|
|
5194
|
+
} else {
|
|
5195
|
+
editor.innerHTML = o;
|
|
5196
|
+
}
|
|
5193
5197
|
|
|
5194
5198
|
if (obj.options.focus) {
|
|
5195
5199
|
jSuites.editor.setCursor(editor, true);
|
|
@@ -8326,7 +8330,7 @@ jSuites.mask = (function() {
|
|
|
8326
8330
|
o.tokens = getTokens.call(o, o.mask);
|
|
8327
8331
|
}
|
|
8328
8332
|
// On new input
|
|
8329
|
-
if (typeof(e) !== 'object'
|
|
8333
|
+
if (typeof(e) !== 'object' || ! e.inputType || ! e.inputType.indexOf('insert') || ! e.inputType.indexOf('delete')) {
|
|
8330
8334
|
// Start tranformation
|
|
8331
8335
|
if (o.locale) {
|
|
8332
8336
|
if (o.input) {
|
|
@@ -10774,6 +10778,7 @@ jSuites.tags = (function(el, options) {
|
|
|
10774
10778
|
search: null,
|
|
10775
10779
|
placeholder: null,
|
|
10776
10780
|
validation: null,
|
|
10781
|
+
onbeforepaste: null,
|
|
10777
10782
|
onbeforechange: null,
|
|
10778
10783
|
onlimit: null,
|
|
10779
10784
|
onchange: null,
|
|
@@ -11290,9 +11295,25 @@ jSuites.tags = (function(el, options) {
|
|
|
11290
11295
|
}
|
|
11291
11296
|
|
|
11292
11297
|
var data = extractTags(text);
|
|
11298
|
+
|
|
11299
|
+
if (typeof(obj.options.onbeforepaste) == 'function') {
|
|
11300
|
+
var ret = obj.options.onbeforepaste(el, obj, data);
|
|
11301
|
+
if (ret === false) {
|
|
11302
|
+
e.preventDefault();
|
|
11303
|
+
return false;
|
|
11304
|
+
} else {
|
|
11305
|
+
if (ret) {
|
|
11306
|
+
data = ret;
|
|
11307
|
+
}
|
|
11308
|
+
}
|
|
11309
|
+
}
|
|
11310
|
+
|
|
11293
11311
|
if (data.length > 1) {
|
|
11294
11312
|
obj.add(data, true);
|
|
11295
11313
|
e.preventDefault();
|
|
11314
|
+
} else if (data[0]) {
|
|
11315
|
+
document.execCommand('insertText', false, data[0])
|
|
11316
|
+
e.preventDefault();
|
|
11296
11317
|
}
|
|
11297
11318
|
}
|
|
11298
11319
|
|
package/package.json
CHANGED