pixl-xyapp 2.1.4 → 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 CHANGED
@@ -1,5 +1,5 @@
1
- /* Orchestra Base Theme */
2
- /* Copyright (c) 2019 Joseph Huckaby - Sustainable Use License */
1
+ /* xyOps Base Theme */
2
+ /* Copyright (c) 2019 Joseph Huckaby - MIT License */
3
3
 
4
4
  * {
5
5
  box-sizing: border-box;
@@ -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
- /* overflow: hidden;
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 {
@@ -1573,6 +1575,10 @@ fieldset.info_fieldset > .tool_desc {
1573
1575
  color: var(--label-color);
1574
1576
  }
1575
1577
 
1578
+ body.dark fieldset.info_fieldset {
1579
+ border: 1px solid rgb(60, 65, 70);
1580
+ }
1581
+
1576
1582
  .checker {
1577
1583
  position: relative;
1578
1584
  left: -12px;
@@ -2636,6 +2642,7 @@ body.dark .color_label {
2636
2642
  .color_label.green { background: var(--green); }
2637
2643
  .color_label.yellow { background: var(--yellow); text-shadow: 0px 1px 1px rgba(0, 0, 0, 0.75); }
2638
2644
  .color_label.red { background: var(--red); }
2645
+ .color_label.orange { background: var(--orange); }
2639
2646
  .color_label.purple { background: var(--purple); }
2640
2647
  .color_label.gray { background: var(--gray); }
2641
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).removeClass('invalid').width(); // trigger reflow to reset css animation
203
- $(id).addClass('invalid');
204
- try { $(id).focus(); } catch (e) {;}
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;
@@ -230,6 +236,7 @@ var app = {
230
236
 
231
237
  // strip html to prevent script injection
232
238
  msg = strip_html(msg);
239
+ Debug.trace('notification', `${type}: ${msg}`);
233
240
 
234
241
  this.toast({ type, icon, msg, lifetime, loc });
235
242
  },
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 Sustainable Use License
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
- var now = new Date();
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
- var now = new Date();
39
- return ( now.getTime() / 1000 );
37
+ return Date.now() / 1000;
40
38
  }
41
39
 
42
40
  function format_date(thingy, template) {
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('mouseup', function() {
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" onMouseUp="Dialog.confirm_click(false)"><i class="mdi mdi-close-circle-outline">&nbsp;</i>Cancel</div>';
216
- buttons_html += '<div id="btn_dialog_confirm" class="button delete" onMouseUp="Dialog.confirm_click(true)">'+ok_btn_label+'</div>';
215
+ buttons_html += '<div id="btn_dialog_cancel" class="button" onClick="Dialog.confirm_click(false)"><i class="mdi mdi-close-circle-outline">&nbsp;</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('mouseup', function() {
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
 
package/js/misc.js CHANGED
@@ -1,4 +1,4 @@
1
- // Misc 3rd party utilities for Orchestra
1
+ // Misc 3rd party utilities for xyOps
2
2
 
3
3
  $.fn.innerBounds = function() {
4
4
  // compute outer bounds of child elements
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 Sustainable Use License
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 = '';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pixl-xyapp",
3
- "version": "2.1.4",
3
+ "version": "2.1.6",
4
4
  "description": "A theme for xyOps.",
5
5
  "author": "Joseph Huckaby <jhuckaby@pixlcore.com>",
6
6
  "homepage": "https://github.com/pixlcore/pixl-xyapp",