pixl-xyapp 2.1.5 → 2.1.6
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 +3 -2
- package/css/normalize.css +2 -16
- package/js/base.js +9 -3
- package/js/datetime.js +3 -5
- package/js/misc.js +1 -1
- package/js/tools.js +1 -7
- package/package.json +1 -1
package/css/base.css
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*
|
|
2
|
-
/* Copyright (c) 2019 Joseph Huckaby -
|
|
1
|
+
/* xyOps Base Theme */
|
|
2
|
+
/* Copyright (c) 2019 Joseph Huckaby - MIT License */
|
|
3
3
|
|
|
4
4
|
* {
|
|
5
5
|
box-sizing: border-box;
|
|
@@ -2642,6 +2642,7 @@ body.dark .color_label {
|
|
|
2642
2642
|
.color_label.green { background: var(--green); }
|
|
2643
2643
|
.color_label.yellow { background: var(--yellow); text-shadow: 0px 1px 1px rgba(0, 0, 0, 0.75); }
|
|
2644
2644
|
.color_label.red { background: var(--red); }
|
|
2645
|
+
.color_label.orange { background: var(--orange); }
|
|
2645
2646
|
.color_label.purple { background: var(--purple); }
|
|
2646
2647
|
.color_label.gray { background: var(--gray); }
|
|
2647
2648
|
|
package/css/normalize.css
CHANGED
|
@@ -157,7 +157,6 @@ img {
|
|
|
157
157
|
* 2. Remove the margin in Firefox and Safari.
|
|
158
158
|
*/
|
|
159
159
|
|
|
160
|
-
button,
|
|
161
160
|
input,
|
|
162
161
|
optgroup,
|
|
163
162
|
select,
|
|
@@ -173,7 +172,6 @@ textarea {
|
|
|
173
172
|
* 1. Show the overflow in Edge.
|
|
174
173
|
*/
|
|
175
174
|
|
|
176
|
-
button,
|
|
177
175
|
input { /* 1 */
|
|
178
176
|
overflow: visible;
|
|
179
177
|
}
|
|
@@ -183,7 +181,6 @@ input { /* 1 */
|
|
|
183
181
|
* 1. Remove the inheritance of text transform in Firefox.
|
|
184
182
|
*/
|
|
185
183
|
|
|
186
|
-
button,
|
|
187
184
|
select { /* 1 */
|
|
188
185
|
text-transform: none;
|
|
189
186
|
}
|
|
@@ -192,18 +189,17 @@ select { /* 1 */
|
|
|
192
189
|
* Correct the inability to style clickable types in iOS and Safari.
|
|
193
190
|
*/
|
|
194
191
|
|
|
195
|
-
button,
|
|
196
192
|
[type="button"],
|
|
197
193
|
[type="reset"],
|
|
198
194
|
[type="submit"] {
|
|
199
195
|
-webkit-appearance: button;
|
|
196
|
+
appearance: button;
|
|
200
197
|
}
|
|
201
198
|
|
|
202
199
|
/**
|
|
203
200
|
* Remove the inner border and padding in Firefox.
|
|
204
201
|
*/
|
|
205
202
|
|
|
206
|
-
button::-moz-focus-inner,
|
|
207
203
|
[type="button"]::-moz-focus-inner,
|
|
208
204
|
[type="reset"]::-moz-focus-inner,
|
|
209
205
|
[type="submit"]::-moz-focus-inner {
|
|
@@ -215,7 +211,6 @@ button::-moz-focus-inner,
|
|
|
215
211
|
* Restore the focus styles unset by the previous rule.
|
|
216
212
|
*/
|
|
217
213
|
|
|
218
|
-
button:-moz-focusring,
|
|
219
214
|
[type="button"]:-moz-focusring,
|
|
220
215
|
[type="reset"]:-moz-focusring,
|
|
221
216
|
[type="submit"]:-moz-focusring {
|
|
@@ -289,6 +284,7 @@ textarea {
|
|
|
289
284
|
|
|
290
285
|
[type="search"] {
|
|
291
286
|
-webkit-appearance: textfield; /* 1 */
|
|
287
|
+
appearance: textfield;
|
|
292
288
|
outline-offset: -2px; /* 2 */
|
|
293
289
|
}
|
|
294
290
|
|
|
@@ -300,16 +296,6 @@ textarea {
|
|
|
300
296
|
-webkit-appearance: none;
|
|
301
297
|
}
|
|
302
298
|
|
|
303
|
-
/**
|
|
304
|
-
* 1. Correct the inability to style clickable types in iOS and Safari.
|
|
305
|
-
* 2. Change font properties to `inherit` in Safari.
|
|
306
|
-
*/
|
|
307
|
-
|
|
308
|
-
::-webkit-file-upload-button {
|
|
309
|
-
-webkit-appearance: button; /* 1 */
|
|
310
|
-
font: inherit; /* 2 */
|
|
311
|
-
}
|
|
312
|
-
|
|
313
299
|
/* Interactive
|
|
314
300
|
========================================================================== */
|
|
315
301
|
|
package/js/base.js
CHANGED
|
@@ -199,9 +199,15 @@ var app = {
|
|
|
199
199
|
if (msg && args) msg = substitute(msg, args);
|
|
200
200
|
|
|
201
201
|
if (id.match(/^\w+$/)) id = '#' + id;
|
|
202
|
-
$(id)
|
|
203
|
-
|
|
204
|
-
|
|
202
|
+
var $elem = $(id);
|
|
203
|
+
|
|
204
|
+
if ($elem[0] && ($elem[0].nodeName == 'SELECT') && $elem.next().hasClass('multiselect')) {
|
|
205
|
+
$elem = $elem.next();
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
$elem.removeClass('invalid').width(); // trigger reflow to reset css animation
|
|
209
|
+
$elem.addClass('invalid');
|
|
210
|
+
try { $elem.focus(); } catch (e) {;}
|
|
205
211
|
|
|
206
212
|
if (msg) return this.doError(msg);
|
|
207
213
|
else return false;
|
package/js/datetime.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Joe's Date/Time Tools
|
|
2
2
|
// Copyright (c) 2004 - 2025 Joseph Huckaby
|
|
3
|
-
// Released under the
|
|
3
|
+
// Released under the MIT License
|
|
4
4
|
|
|
5
5
|
var _months = [
|
|
6
6
|
[ 1, 'January' ], [ 2, 'February' ], [ 3, 'March' ], [ 4, 'April' ],
|
|
@@ -29,14 +29,12 @@ var _hour_names = ['12am', '1am', '2am', '3am', '4am', '5am', '6am', '7am', '8am
|
|
|
29
29
|
|
|
30
30
|
function time_now() {
|
|
31
31
|
// return the Epoch seconds for like right now
|
|
32
|
-
|
|
33
|
-
return Math.floor( now.getTime() / 1000 );
|
|
32
|
+
return Math.floor( Date.now() / 1000 );
|
|
34
33
|
}
|
|
35
34
|
|
|
36
35
|
function hires_time_now() {
|
|
37
36
|
// return the Epoch seconds for like right now
|
|
38
|
-
|
|
39
|
-
return ( now.getTime() / 1000 );
|
|
37
|
+
return Date.now() / 1000;
|
|
40
38
|
}
|
|
41
39
|
|
|
42
40
|
function format_date(thingy, template) {
|
package/js/misc.js
CHANGED
package/js/tools.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
////
|
|
2
2
|
// Joe's Misc JavaScript Tools
|
|
3
3
|
// Copyright (c) 2004 - 2025 Joseph Huckaby
|
|
4
|
-
// Released under the
|
|
4
|
+
// Released under the MIT License
|
|
5
5
|
////
|
|
6
6
|
|
|
7
7
|
var months = [
|
|
@@ -306,12 +306,6 @@ function get_scroll_max(dom) {
|
|
|
306
306
|
return { width: myWidth, height: myHeight };
|
|
307
307
|
}
|
|
308
308
|
|
|
309
|
-
function hires_time_now() {
|
|
310
|
-
// return the Epoch seconds for like right now
|
|
311
|
-
var now = new Date();
|
|
312
|
-
return ( now.getTime() / 1000 );
|
|
313
|
-
}
|
|
314
|
-
|
|
315
309
|
function str_value(str) {
|
|
316
310
|
// Get friendly string value for display purposes.
|
|
317
311
|
if (typeof(str) == 'undefined') str = '';
|