pixl-xyapp 2.1.1 → 2.1.3
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 +13 -4
- package/js/base.js +1 -0
- package/js/select.js +9 -0
- package/js/tools.js +2 -2
- package/package.json +1 -1
package/css/base.css
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
--green: rgb(40, 167, 69);
|
|
17
17
|
--teal: rgb(32, 201, 151);
|
|
18
18
|
--cyan: rgb(23, 162, 184);
|
|
19
|
-
--gray: rgb(
|
|
19
|
+
--gray: rgb(138, 147, 155);
|
|
20
20
|
--primary: rgb(0, 123, 255);
|
|
21
21
|
--secondary: rgb(108, 117, 125);
|
|
22
22
|
--success: rgb(40, 167, 69);
|
|
@@ -109,6 +109,9 @@ body.dark {
|
|
|
109
109
|
--yellow: rgb(204, 154, 6);
|
|
110
110
|
--yellow-highlight: color-mix(in srgb, rgb(204, 154, 6) 80%, white);
|
|
111
111
|
|
|
112
|
+
--gray: rgb(98, 107, 115);
|
|
113
|
+
--gray-highlight: color-mix(in srgb, rgb(98, 107, 115) 80%, white);
|
|
114
|
+
|
|
112
115
|
--border-color: rgb(50, 54, 58);
|
|
113
116
|
--shadow-color: rgba(0, 0, 0, 0.0);
|
|
114
117
|
--background-color: rgb(24, 28, 32);
|
|
@@ -1081,8 +1084,10 @@ body.dark .button.primary {
|
|
|
1081
1084
|
color: var(--label-color);
|
|
1082
1085
|
}
|
|
1083
1086
|
.form_row > div.fr_caption a {
|
|
1087
|
+
color: var(--blue);
|
|
1088
|
+
}
|
|
1089
|
+
.form_row > div.fr_caption a:hover {
|
|
1084
1090
|
color: var(--theme-color);
|
|
1085
|
-
font-weight: bold;
|
|
1086
1091
|
}
|
|
1087
1092
|
|
|
1088
1093
|
/* Form Elements */
|
|
@@ -1308,6 +1313,10 @@ body.dark .multiselect > .item.inherited {
|
|
|
1308
1313
|
font-style: italic;
|
|
1309
1314
|
color: var(--label-color);
|
|
1310
1315
|
|
|
1316
|
+
white-space: nowrap;
|
|
1317
|
+
overflow: hidden;
|
|
1318
|
+
text-overflow: ellipsis;
|
|
1319
|
+
|
|
1311
1320
|
user-select: none;
|
|
1312
1321
|
-moz-user-select: none;
|
|
1313
1322
|
-webkit-user-select: none;
|
|
@@ -1322,10 +1331,10 @@ body.dark .multiselect > .item.inherited {
|
|
|
1322
1331
|
padding-top: 2px;
|
|
1323
1332
|
padding-bottom: 0px;
|
|
1324
1333
|
}
|
|
1325
|
-
.form_grid .multiselect.single {
|
|
1334
|
+
/* .form_grid .multiselect.single {
|
|
1326
1335
|
padding-top: 2px;
|
|
1327
1336
|
padding-bottom: 0px;
|
|
1328
|
-
}
|
|
1337
|
+
} */
|
|
1329
1338
|
|
|
1330
1339
|
.multiselect > .single {
|
|
1331
1340
|
padding-top: 1px;
|
package/js/base.js
CHANGED
package/js/select.js
CHANGED
|
@@ -47,6 +47,9 @@ var SingleSelect = {
|
|
|
47
47
|
// also trigger a redraw if the underlying hidden select changes
|
|
48
48
|
$this.on('change', redraw);
|
|
49
49
|
|
|
50
|
+
// also expose redraw as a custom event that can be triggered
|
|
51
|
+
$this.on('redraw', redraw);
|
|
52
|
+
|
|
50
53
|
$ms.on('mouseup', function() {
|
|
51
54
|
// create popover dialog for selecting and filtering
|
|
52
55
|
var html = '';
|
|
@@ -343,6 +346,9 @@ var MultiSelect = {
|
|
|
343
346
|
// also trigger a redraw if the underlying hidden select changes
|
|
344
347
|
$this.on('change', redraw);
|
|
345
348
|
|
|
349
|
+
// also expose redraw as a custom event that can be triggered
|
|
350
|
+
$this.on('redraw', redraw);
|
|
351
|
+
|
|
346
352
|
$ms.on('mouseup', function() {
|
|
347
353
|
// create popover dialog for selecting and filtering
|
|
348
354
|
var html = '';
|
|
@@ -717,6 +723,9 @@ var TextSelect = {
|
|
|
717
723
|
// also trigger a redraw if the underlying hidden select changes
|
|
718
724
|
$this.on('change', redraw);
|
|
719
725
|
|
|
726
|
+
// also expose redraw as a custom event that can be triggered
|
|
727
|
+
$this.on('redraw', redraw);
|
|
728
|
+
|
|
720
729
|
$ms.on('mouseup', function() {
|
|
721
730
|
// create popover dialog for adding new items
|
|
722
731
|
var html = '';
|
package/js/tools.js
CHANGED
|
@@ -536,7 +536,7 @@ function strip_html(text) {
|
|
|
536
536
|
if (text == null) return '';
|
|
537
537
|
|
|
538
538
|
if (text && text.replace) {
|
|
539
|
-
text = text.replace(
|
|
539
|
+
text = text.replace(/<[^>]*>/g, '');
|
|
540
540
|
}
|
|
541
541
|
|
|
542
542
|
return text;
|
|
@@ -969,7 +969,7 @@ function stablePrettyStringify(node) {
|
|
|
969
969
|
|
|
970
970
|
function inline_marked(md) {
|
|
971
971
|
// render text to markdown, trimming and stripping outer <p> tag
|
|
972
|
-
return marked.
|
|
972
|
+
return marked.parseInline(md, config.ui.marked_config);
|
|
973
973
|
};
|
|
974
974
|
|
|
975
975
|
// Debounce Function Generator
|