@yuneta/gobj-ui 7.23.58 → 7.23.59
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/gobj-ui.cjs.js +4 -10
- package/dist/gobj-ui.es.js +4 -10
- package/package.json +1 -1
- package/src/c_yui_form.js +10 -5
package/dist/gobj-ui.cjs.js
CHANGED
|
@@ -6361,13 +6361,7 @@ var attrs_table$16 = [
|
|
|
6361
6361
|
(0, _yuneta_gobj_js.SDATA)(_yuneta_gobj_js.data_type_t.DTP_BOOLEAN, "with_checkbox", 0, false, "Show a first column with checkbox to select rows"),
|
|
6362
6362
|
(0, _yuneta_gobj_js.SDATA)(_yuneta_gobj_js.data_type_t.DTP_BOOLEAN, "with_rownum", 0, false, "Print first column with row number"),
|
|
6363
6363
|
(0, _yuneta_gobj_js.SDATA)(_yuneta_gobj_js.data_type_t.DTP_BOOLEAN, "with_delete_row_btn", 0, false, "Print last column with delete row button"),
|
|
6364
|
-
(0, _yuneta_gobj_js.SDATA)(_yuneta_gobj_js.data_type_t.DTP_JSON, "toolbar", 0, [
|
|
6365
|
-
"save",
|
|
6366
|
-
"undo",
|
|
6367
|
-
"clear",
|
|
6368
|
-
"copy",
|
|
6369
|
-
"paste"
|
|
6370
|
-
], "Toolbar buttons to show, in order: save, undo, clear, copy, paste. [] hides the toolbar"),
|
|
6364
|
+
(0, _yuneta_gobj_js.SDATA)(_yuneta_gobj_js.data_type_t.DTP_JSON, "toolbar", 0, DEFAULT_TOOLBAR.slice(), "Toolbar buttons to show. The order inside each group is the order given here; which side each group takes is form_toolbar_plan.js. [] hides the toolbar"),
|
|
6371
6365
|
(0, _yuneta_gobj_js.SDATA)(_yuneta_gobj_js.data_type_t.DTP_JSON, "tabulator_settings", 0, {
|
|
6372
6366
|
layout: "fitDataFill",
|
|
6373
6367
|
validationMode: "highlight",
|
|
@@ -6546,7 +6540,7 @@ function toolbar_button$1(gobj, name) {
|
|
|
6546
6540
|
case "clear": return [
|
|
6547
6541
|
"button",
|
|
6548
6542
|
{
|
|
6549
|
-
class: "button p-1",
|
|
6543
|
+
class: "button p-1 button-clear",
|
|
6550
6544
|
title: "clear",
|
|
6551
6545
|
"aria-label": "clear"
|
|
6552
6546
|
},
|
|
@@ -6570,7 +6564,7 @@ function toolbar_button$1(gobj, name) {
|
|
|
6570
6564
|
case "copy": return [
|
|
6571
6565
|
"button",
|
|
6572
6566
|
{
|
|
6573
|
-
class: "button p-1",
|
|
6567
|
+
class: "button p-1 button-copy",
|
|
6574
6568
|
title: "copy",
|
|
6575
6569
|
"aria-label": "copy"
|
|
6576
6570
|
},
|
|
@@ -6594,7 +6588,7 @@ function toolbar_button$1(gobj, name) {
|
|
|
6594
6588
|
case "paste": return [
|
|
6595
6589
|
"button",
|
|
6596
6590
|
{
|
|
6597
|
-
class: "button p-1",
|
|
6591
|
+
class: "button p-1 button-paste",
|
|
6598
6592
|
title: "paste",
|
|
6599
6593
|
"aria-label": "paste"
|
|
6600
6594
|
},
|
package/dist/gobj-ui.es.js
CHANGED
|
@@ -6356,13 +6356,7 @@ var attrs_table$16 = [
|
|
|
6356
6356
|
SDATA(data_type_t.DTP_BOOLEAN, "with_checkbox", 0, false, "Show a first column with checkbox to select rows"),
|
|
6357
6357
|
SDATA(data_type_t.DTP_BOOLEAN, "with_rownum", 0, false, "Print first column with row number"),
|
|
6358
6358
|
SDATA(data_type_t.DTP_BOOLEAN, "with_delete_row_btn", 0, false, "Print last column with delete row button"),
|
|
6359
|
-
SDATA(data_type_t.DTP_JSON, "toolbar", 0, [
|
|
6360
|
-
"save",
|
|
6361
|
-
"undo",
|
|
6362
|
-
"clear",
|
|
6363
|
-
"copy",
|
|
6364
|
-
"paste"
|
|
6365
|
-
], "Toolbar buttons to show, in order: save, undo, clear, copy, paste. [] hides the toolbar"),
|
|
6359
|
+
SDATA(data_type_t.DTP_JSON, "toolbar", 0, DEFAULT_TOOLBAR.slice(), "Toolbar buttons to show. The order inside each group is the order given here; which side each group takes is form_toolbar_plan.js. [] hides the toolbar"),
|
|
6366
6360
|
SDATA(data_type_t.DTP_JSON, "tabulator_settings", 0, {
|
|
6367
6361
|
layout: "fitDataFill",
|
|
6368
6362
|
validationMode: "highlight",
|
|
@@ -6541,7 +6535,7 @@ function toolbar_button$1(gobj, name) {
|
|
|
6541
6535
|
case "clear": return [
|
|
6542
6536
|
"button",
|
|
6543
6537
|
{
|
|
6544
|
-
class: "button p-1",
|
|
6538
|
+
class: "button p-1 button-clear",
|
|
6545
6539
|
title: "clear",
|
|
6546
6540
|
"aria-label": "clear"
|
|
6547
6541
|
},
|
|
@@ -6565,7 +6559,7 @@ function toolbar_button$1(gobj, name) {
|
|
|
6565
6559
|
case "copy": return [
|
|
6566
6560
|
"button",
|
|
6567
6561
|
{
|
|
6568
|
-
class: "button p-1",
|
|
6562
|
+
class: "button p-1 button-copy",
|
|
6569
6563
|
title: "copy",
|
|
6570
6564
|
"aria-label": "copy"
|
|
6571
6565
|
},
|
|
@@ -6589,7 +6583,7 @@ function toolbar_button$1(gobj, name) {
|
|
|
6589
6583
|
case "paste": return [
|
|
6590
6584
|
"button",
|
|
6591
6585
|
{
|
|
6592
|
-
class: "button p-1",
|
|
6586
|
+
class: "button p-1 button-paste",
|
|
6593
6587
|
title: "paste",
|
|
6594
6588
|
"aria-label": "paste"
|
|
6595
6589
|
},
|
package/package.json
CHANGED
package/src/c_yui_form.js
CHANGED
|
@@ -57,7 +57,7 @@ import { createJSONEditor } from 'vanilla-jsoneditor';
|
|
|
57
57
|
import "vanilla-jsoneditor/themes/jse-theme-dark.css";
|
|
58
58
|
import "./c_yui_form.css";
|
|
59
59
|
import {attach_clear, refresh_clear} from "./yui_inputs.js";
|
|
60
|
-
import {plan_toolbar} from "./form_toolbar_plan.js";
|
|
60
|
+
import {plan_toolbar, DEFAULT_TOOLBAR} from "./form_toolbar_plan.js";
|
|
61
61
|
/* Read at field-build time only — deliberately NOT watched: the hosting
|
|
62
62
|
* dialog rebuilds the form on every open, and re-rendering a form under
|
|
63
63
|
* the user mid-edit would throw away what they typed. */
|
|
@@ -117,7 +117,12 @@ SDATA(data_type_t.DTP_BOOLEAN, "with_delete_row_btn", 0, false, "Print last co
|
|
|
117
117
|
* Unknown names are ignored, with a warning: a typo must not silently
|
|
118
118
|
* drop the save button.
|
|
119
119
|
*/
|
|
120
|
-
|
|
120
|
+
/* The default is the LIST, not a copy of it: written out here it was a
|
|
121
|
+
* second copy of `DEFAULT_TOOLBAR` that `plan_toolbar` never got to
|
|
122
|
+
* see -- the attr always has a value, so the module that decides the
|
|
123
|
+
* plan could change its default and nothing moved. Sliced because an
|
|
124
|
+
* attr default is handed out and must not be the shared array. */
|
|
125
|
+
SDATA(data_type_t.DTP_JSON, "toolbar", 0, DEFAULT_TOOLBAR.slice(), "Toolbar buttons to show. The order inside each group is the order given here; which side each group takes is form_toolbar_plan.js. [] hides the toolbar"),
|
|
121
126
|
/*
|
|
122
127
|
* Defaults for tabulator
|
|
123
128
|
*/
|
|
@@ -354,7 +359,7 @@ function toolbar_button(gobj, name)
|
|
|
354
359
|
}
|
|
355
360
|
}];
|
|
356
361
|
case "clear":
|
|
357
|
-
return ['button', {class: 'button p-1', title: 'clear', 'aria-label': 'clear'}, [
|
|
362
|
+
return ['button', {class: 'button p-1 button-clear', title: 'clear', 'aria-label': 'clear'}, [
|
|
358
363
|
['span', {class: 'icon m-0'}, '<i class="yi-broom-wide"></i>'],
|
|
359
364
|
['span', {class: 'is-hidden-mobile pl-1 pr-1', i18n: 'clear'}, 'clear']
|
|
360
365
|
], {
|
|
@@ -364,7 +369,7 @@ function toolbar_button(gobj, name)
|
|
|
364
369
|
}
|
|
365
370
|
}];
|
|
366
371
|
case "copy":
|
|
367
|
-
return ['button', {class: 'button p-1', title: 'copy', 'aria-label': 'copy'}, [
|
|
372
|
+
return ['button', {class: 'button p-1 button-copy', title: 'copy', 'aria-label': 'copy'}, [
|
|
368
373
|
['span', {class: 'icon m-0'}, '<i class="yi-copy"></i>'],
|
|
369
374
|
['span', {class: 'is-hidden-mobile pl-1 pr-1', i18n: 'copy'}, 'copy']
|
|
370
375
|
], {click: function(evt) {
|
|
@@ -373,7 +378,7 @@ function toolbar_button(gobj, name)
|
|
|
373
378
|
}
|
|
374
379
|
}];
|
|
375
380
|
case "paste":
|
|
376
|
-
return ['button', {class: 'button p-1', title: 'paste', 'aria-label': 'paste'}, [
|
|
381
|
+
return ['button', {class: 'button p-1 button-paste', title: 'paste', 'aria-label': 'paste'}, [
|
|
377
382
|
['span', {class: 'icon m-0'}, '<i class="yi-paste"></i>'],
|
|
378
383
|
['span', {class: 'is-hidden-mobile pl-1 pr-1', i18n: 'paste'}, 'paste']
|
|
379
384
|
], {click: async function(evt) {
|