pixl-xyapp 2.1.3 → 2.1.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/css/base.css +39 -4
- package/js/base.js +3 -0
- package/js/dialog.js +7 -4
- package/package.json +1 -1
package/css/base.css
CHANGED
|
@@ -283,6 +283,7 @@ div.section_title {
|
|
|
283
283
|
margin-left: 20px;
|
|
284
284
|
margin-right: 15px;
|
|
285
285
|
margin-top: 10px;
|
|
286
|
+
padding-right: 15px;
|
|
286
287
|
height: 30px;
|
|
287
288
|
line-height: 30px;
|
|
288
289
|
font-size: 13px;
|
|
@@ -295,9 +296,9 @@ div.section_title {
|
|
|
295
296
|
-moz-user-select: none;
|
|
296
297
|
-webkit-user-select: none;
|
|
297
298
|
|
|
298
|
-
|
|
299
|
+
overflow: hidden;
|
|
299
300
|
text-overflow: ellipsis;
|
|
300
|
-
white-space: nowrap;
|
|
301
|
+
white-space: nowrap;
|
|
301
302
|
}
|
|
302
303
|
div.section_title:hover {
|
|
303
304
|
color: var(--theme-color);
|
|
@@ -312,6 +313,7 @@ div.section_title > i {
|
|
|
312
313
|
div.section_title > i.icon:before {
|
|
313
314
|
transform-origin: center center;
|
|
314
315
|
transform: scale(1.3);
|
|
316
|
+
padding-left: 2px;
|
|
315
317
|
padding-right: 2px;
|
|
316
318
|
}
|
|
317
319
|
div.section_title > i.ctrl {
|
|
@@ -1123,6 +1125,10 @@ body.dark .button.primary {
|
|
|
1123
1125
|
border: 1px solid red;
|
|
1124
1126
|
}
|
|
1125
1127
|
|
|
1128
|
+
.form_row input[type="date"]::-webkit-calendar-picker-indicator {
|
|
1129
|
+
opacity: 0.4;
|
|
1130
|
+
}
|
|
1131
|
+
|
|
1126
1132
|
.form_row input[type="color"] {
|
|
1127
1133
|
cursor: default;
|
|
1128
1134
|
}
|
|
@@ -1136,13 +1142,13 @@ body.dark .button.primary {
|
|
|
1136
1142
|
-webkit-appearance: none;
|
|
1137
1143
|
appearance: none;
|
|
1138
1144
|
line-height: 20px;
|
|
1139
|
-
padding
|
|
1145
|
+
padding: 7px;
|
|
1140
1146
|
border: 1px solid var(--border-color);
|
|
1141
1147
|
font-size: 13px;
|
|
1142
1148
|
tab-size: 4;
|
|
1143
1149
|
color: var(--body-text-color);
|
|
1144
1150
|
transition: 0.2s ease border-color;
|
|
1145
|
-
resize:
|
|
1151
|
+
resize: none;
|
|
1146
1152
|
}
|
|
1147
1153
|
.form_row textarea:focus {
|
|
1148
1154
|
/* color: var(--theme-color); */
|
|
@@ -1240,6 +1246,9 @@ body.dark .dialog_content .form_row select {
|
|
|
1240
1246
|
body.dark .multiselect.multi {
|
|
1241
1247
|
background: var(--box-background-color);
|
|
1242
1248
|
}
|
|
1249
|
+
body.dark .multiselect.text {
|
|
1250
|
+
background: var(--box-background-color);
|
|
1251
|
+
}
|
|
1243
1252
|
|
|
1244
1253
|
.multiselect .select_chevron {
|
|
1245
1254
|
top: 50%;
|
|
@@ -1544,6 +1553,32 @@ div.info_caption {
|
|
|
1544
1553
|
color: var(--label-color);
|
|
1545
1554
|
}
|
|
1546
1555
|
|
|
1556
|
+
fieldset.info_fieldset {
|
|
1557
|
+
background: transparent;
|
|
1558
|
+
border: 1px solid var(--border-color);
|
|
1559
|
+
padding: 15px;
|
|
1560
|
+
margin-top: 12px;
|
|
1561
|
+
margin-left: 0;
|
|
1562
|
+
margin-right: 0;
|
|
1563
|
+
}
|
|
1564
|
+
fieldset.info_fieldset > legend {
|
|
1565
|
+
padding-left: 5px;
|
|
1566
|
+
padding-right: 5px;
|
|
1567
|
+
font-size: 11px;
|
|
1568
|
+
text-transform: uppercase;
|
|
1569
|
+
color: var(--label-color);
|
|
1570
|
+
cursor: default;
|
|
1571
|
+
}
|
|
1572
|
+
fieldset.info_fieldset > .tool_desc {
|
|
1573
|
+
margin-top: 4px;
|
|
1574
|
+
font-size: 11px;
|
|
1575
|
+
color: var(--label-color);
|
|
1576
|
+
}
|
|
1577
|
+
|
|
1578
|
+
body.dark fieldset.info_fieldset {
|
|
1579
|
+
border: 1px solid rgb(60, 65, 70);
|
|
1580
|
+
}
|
|
1581
|
+
|
|
1547
1582
|
.checker {
|
|
1548
1583
|
position: relative;
|
|
1549
1584
|
left: -12px;
|
package/js/base.js
CHANGED
|
@@ -13,6 +13,8 @@ var app = {
|
|
|
13
13
|
prefs: {},
|
|
14
14
|
lastClick: {},
|
|
15
15
|
|
|
16
|
+
MATCH_BAD_KEY: /^(constructor|__defineGetter__|__defineSetter__|hasOwnProperty|__lookupGetter__|__lookupSetter__|isPrototypeOf|propertyIsEnumerable|toString|valueOf|__proto__|toLocaleString|0)$/,
|
|
17
|
+
|
|
16
18
|
init: function() {
|
|
17
19
|
// override this in your app.js
|
|
18
20
|
},
|
|
@@ -228,6 +230,7 @@ var app = {
|
|
|
228
230
|
|
|
229
231
|
// strip html to prevent script injection
|
|
230
232
|
msg = strip_html(msg);
|
|
233
|
+
Debug.trace('notification', `${type}: ${msg}`);
|
|
231
234
|
|
|
232
235
|
this.toast({ type, icon, msg, lifetime, loc });
|
|
233
236
|
},
|
package/js/dialog.js
CHANGED
|
@@ -34,7 +34,7 @@ var Dialog = {
|
|
|
34
34
|
var $overlay = $('<div id="dialog_overlay"></div>').css('opacity', 0);
|
|
35
35
|
$('body').append($overlay);
|
|
36
36
|
|
|
37
|
-
$overlay.fadeTo( 500, 0.75 ).on('
|
|
37
|
+
$overlay.fadeTo( 500, 0.75 ).on('click', function() {
|
|
38
38
|
if (!Dialog.clickBlock) {
|
|
39
39
|
if (Dialog.active == 'confirmation') Dialog.confirm_click(false);
|
|
40
40
|
else Dialog.hide();
|
|
@@ -212,8 +212,8 @@ var Dialog = {
|
|
|
212
212
|
}
|
|
213
213
|
|
|
214
214
|
var buttons_html = "";
|
|
215
|
-
buttons_html += '<div id="btn_dialog_cancel" class="button"
|
|
216
|
-
buttons_html += '<div id="btn_dialog_confirm" class="button delete"
|
|
215
|
+
buttons_html += '<div id="btn_dialog_cancel" class="button" onClick="Dialog.confirm_click(false)"><i class="mdi mdi-close-circle-outline"> </i>Cancel</div>';
|
|
216
|
+
buttons_html += '<div id="btn_dialog_confirm" class="button delete" onClick="Dialog.confirm_click(true)">'+ok_btn_label+'</div>';
|
|
217
217
|
|
|
218
218
|
this.showSimpleDialog( '<span class="danger">' + title + '</span>', inner_html, buttons_html );
|
|
219
219
|
|
|
@@ -266,6 +266,7 @@ var CodeEditor = {
|
|
|
266
266
|
|
|
267
267
|
active: false,
|
|
268
268
|
onHide: null,
|
|
269
|
+
onDragDrop: null,
|
|
269
270
|
|
|
270
271
|
show: function(html) {
|
|
271
272
|
// show dialog, auto-size and center
|
|
@@ -291,7 +292,7 @@ var CodeEditor = {
|
|
|
291
292
|
var $overlay = $('<div id="ceditor_overlay"></div>').css('opacity', 0);
|
|
292
293
|
$('body').append($overlay);
|
|
293
294
|
|
|
294
|
-
$overlay.fadeTo( 500, 0.75 ).on('
|
|
295
|
+
$overlay.fadeTo( 500, 0.75 ).on('click', function() {
|
|
295
296
|
CodeEditor.hide();
|
|
296
297
|
});
|
|
297
298
|
|
|
@@ -350,6 +351,8 @@ var CodeEditor = {
|
|
|
350
351
|
this.onHide = null;
|
|
351
352
|
callback();
|
|
352
353
|
}
|
|
354
|
+
|
|
355
|
+
this.onDragDrop = null;
|
|
353
356
|
}
|
|
354
357
|
},
|
|
355
358
|
|