@yuneta/gobj-ui 7.13.3 → 7.13.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/dist/gobj-ui.cjs.js +26 -26
- package/dist/gobj-ui.es.js +26 -26
- package/package.json +1 -1
- package/src/c_yui_schema_editor.css +8 -0
- package/src/c_yui_schema_editor.js +26 -26
package/dist/gobj-ui.cjs.js
CHANGED
|
@@ -23868,7 +23868,7 @@ function toolbar_button(logical, icon, key, event, disabled) {
|
|
|
23868
23868
|
return [
|
|
23869
23869
|
"button",
|
|
23870
23870
|
el_attrs({
|
|
23871
|
-
class: `${logical} button
|
|
23871
|
+
class: `${logical} button`,
|
|
23872
23872
|
type: "button",
|
|
23873
23873
|
disabled: disabled ? "disabled" : void 0,
|
|
23874
23874
|
title: (0, i18next.t)(key),
|
|
@@ -23911,7 +23911,7 @@ function render_toolbar(gobj) {
|
|
|
23911
23911
|
if (priv.treedb_id) $left.push([
|
|
23912
23912
|
"button",
|
|
23913
23913
|
{
|
|
23914
|
-
class: "SCHEMA_BACK button
|
|
23914
|
+
class: "SCHEMA_BACK button",
|
|
23915
23915
|
type: "button",
|
|
23916
23916
|
title: (0, i18next.t)("back"),
|
|
23917
23917
|
"aria-label": (0, i18next.t)("back"),
|
|
@@ -24350,7 +24350,7 @@ function row_icon(gobj, logical, icon, key, event, kw) {
|
|
|
24350
24350
|
return [
|
|
24351
24351
|
"button",
|
|
24352
24352
|
{
|
|
24353
|
-
class: `${logical} button is-
|
|
24353
|
+
class: `${logical} button is-ghost`,
|
|
24354
24354
|
type: "button",
|
|
24355
24355
|
title: (0, i18next.t)(key),
|
|
24356
24356
|
"aria-label": (0, i18next.t)(key),
|
|
@@ -24359,7 +24359,7 @@ function row_icon(gobj, logical, icon, key, event, kw) {
|
|
|
24359
24359
|
},
|
|
24360
24360
|
[[
|
|
24361
24361
|
"span",
|
|
24362
|
-
{ class: "icon
|
|
24362
|
+
{ class: "icon" },
|
|
24363
24363
|
[["i", { class: icon }]]
|
|
24364
24364
|
]],
|
|
24365
24365
|
{ click: (evt) => {
|
|
@@ -24526,7 +24526,7 @@ function version_banner(gobj, topic) {
|
|
|
24526
24526
|
[
|
|
24527
24527
|
"button",
|
|
24528
24528
|
{
|
|
24529
|
-
class: "SCHEMA_VERSION_BUMP button is-
|
|
24529
|
+
class: "SCHEMA_VERSION_BUMP button is-warning",
|
|
24530
24530
|
type: "button",
|
|
24531
24531
|
style: "margin-left:auto;",
|
|
24532
24532
|
title: (0, i18next.t)("raise the version"),
|
|
@@ -24594,7 +24594,7 @@ function column_row(gobj, topic, col, index, readonly, twice) {
|
|
|
24594
24594
|
{ class: "SCHEMA_COL_HANDLE" },
|
|
24595
24595
|
readonly ? [] : [[
|
|
24596
24596
|
"span",
|
|
24597
|
-
{ class: "icon
|
|
24597
|
+
{ class: "icon has-text-grey" },
|
|
24598
24598
|
[["i", { class: "yi-grip-vertical" }]]
|
|
24599
24599
|
]]
|
|
24600
24600
|
],
|
|
@@ -24842,7 +24842,7 @@ function field(logical, name, label, $control, help) {
|
|
|
24842
24842
|
[
|
|
24843
24843
|
"label",
|
|
24844
24844
|
{
|
|
24845
|
-
class: "label
|
|
24845
|
+
class: "label",
|
|
24846
24846
|
i18n: label
|
|
24847
24847
|
},
|
|
24848
24848
|
(0, i18next.t)(label)
|
|
@@ -24869,7 +24869,7 @@ function field(logical, name, label, $control, help) {
|
|
|
24869
24869
|
}
|
|
24870
24870
|
function text_input(name, value, placeholder, disabled) {
|
|
24871
24871
|
return ["input", el_attrs({
|
|
24872
|
-
class: "input
|
|
24872
|
+
class: "input",
|
|
24873
24873
|
type: "text",
|
|
24874
24874
|
"data-name": name,
|
|
24875
24875
|
value: value === void 0 || value === null ? "" : `${value}`,
|
|
@@ -24879,7 +24879,7 @@ function text_input(name, value, placeholder, disabled) {
|
|
|
24879
24879
|
}
|
|
24880
24880
|
function number_input(name, value) {
|
|
24881
24881
|
return ["input", {
|
|
24882
|
-
class: "input
|
|
24882
|
+
class: "input",
|
|
24883
24883
|
type: "number",
|
|
24884
24884
|
"data-name": name,
|
|
24885
24885
|
value: value === void 0 || value === null || value === "" ? "" : `${value}`
|
|
@@ -24898,7 +24898,7 @@ function select_input(name, value, options) {
|
|
|
24898
24898
|
});
|
|
24899
24899
|
return [
|
|
24900
24900
|
"div",
|
|
24901
|
-
{ class: "select is-
|
|
24901
|
+
{ class: "select is-fullwidth" },
|
|
24902
24902
|
[[
|
|
24903
24903
|
"select",
|
|
24904
24904
|
{ "data-name": name },
|
|
@@ -24910,7 +24910,7 @@ function textarea_input(name, value, rows, placeholder) {
|
|
|
24910
24910
|
return [
|
|
24911
24911
|
"textarea",
|
|
24912
24912
|
{
|
|
24913
|
-
class: "textarea
|
|
24913
|
+
class: "textarea",
|
|
24914
24914
|
"data-name": name,
|
|
24915
24915
|
rows: `${rows || 3}`,
|
|
24916
24916
|
placeholder: placeholder || ""
|
|
@@ -24951,7 +24951,7 @@ function flags_field(gobj, type, current) {
|
|
|
24951
24951
|
return [
|
|
24952
24952
|
"label",
|
|
24953
24953
|
el_attrs({
|
|
24954
|
-
class: "SCHEMA_FLAG checkbox
|
|
24954
|
+
class: "SCHEMA_FLAG checkbox " + (flag.meaningful ? "" : "SCHEMA_FLAG_DIM has-text-grey-light"),
|
|
24955
24955
|
title: flag.desc ? (0, i18next.t)(flag.desc) : "",
|
|
24956
24956
|
"data-i18n-title": flag.desc || void 0
|
|
24957
24957
|
}),
|
|
@@ -24973,7 +24973,7 @@ function flags_field(gobj, type, current) {
|
|
|
24973
24973
|
[[
|
|
24974
24974
|
"p",
|
|
24975
24975
|
{
|
|
24976
|
-
class: "SCHEMA_FLAG_GROUP_NAME
|
|
24976
|
+
class: "SCHEMA_FLAG_GROUP_NAME has-text-weight-semibold has-text-grey",
|
|
24977
24977
|
i18n: group.group
|
|
24978
24978
|
},
|
|
24979
24979
|
(0, i18next.t)(group.group)
|
|
@@ -25033,7 +25033,7 @@ function open_column_form(gobj, topic, col, prefill) {
|
|
|
25033
25033
|
[[
|
|
25034
25034
|
"label",
|
|
25035
25035
|
{
|
|
25036
|
-
class: "label
|
|
25036
|
+
class: "label",
|
|
25037
25037
|
i18n: "flags"
|
|
25038
25038
|
},
|
|
25039
25039
|
(0, i18next.t)("flags")
|
|
@@ -25046,7 +25046,7 @@ function open_column_form(gobj, topic, col, prefill) {
|
|
|
25046
25046
|
[
|
|
25047
25047
|
"label",
|
|
25048
25048
|
{
|
|
25049
|
-
class: "label
|
|
25049
|
+
class: "label",
|
|
25050
25050
|
i18n: "hook"
|
|
25051
25051
|
},
|
|
25052
25052
|
(0, i18next.t)("hook")
|
|
@@ -25082,7 +25082,7 @@ function open_column_form(gobj, topic, col, prefill) {
|
|
|
25082
25082
|
[[
|
|
25083
25083
|
"button",
|
|
25084
25084
|
{
|
|
25085
|
-
class: "SCHEMA_COL_FORM_CANCEL button
|
|
25085
|
+
class: "SCHEMA_COL_FORM_CANCEL button",
|
|
25086
25086
|
type: "button"
|
|
25087
25087
|
},
|
|
25088
25088
|
[[
|
|
@@ -25093,7 +25093,7 @@ function open_column_form(gobj, topic, col, prefill) {
|
|
|
25093
25093
|
], [
|
|
25094
25094
|
"button",
|
|
25095
25095
|
{
|
|
25096
|
-
class: "SCHEMA_COL_FORM_SAVE button is-
|
|
25096
|
+
class: "SCHEMA_COL_FORM_SAVE button is-primary",
|
|
25097
25097
|
type: "button"
|
|
25098
25098
|
},
|
|
25099
25099
|
[[
|
|
@@ -25173,7 +25173,7 @@ function open_topic_form(gobj, treedb, topic) {
|
|
|
25173
25173
|
{ class: "SCHEMA_TOPIC_FORM_SYSTEM field mb-3" },
|
|
25174
25174
|
[[
|
|
25175
25175
|
"label",
|
|
25176
|
-
{ class: "checkbox
|
|
25176
|
+
{ class: "checkbox" },
|
|
25177
25177
|
[["input", el_attrs({
|
|
25178
25178
|
type: "checkbox",
|
|
25179
25179
|
"data-name": "system_topic",
|
|
@@ -25197,7 +25197,7 @@ function open_topic_form(gobj, treedb, topic) {
|
|
|
25197
25197
|
[[
|
|
25198
25198
|
"button",
|
|
25199
25199
|
{
|
|
25200
|
-
class: "SCHEMA_TOPIC_FORM_CANCEL button
|
|
25200
|
+
class: "SCHEMA_TOPIC_FORM_CANCEL button",
|
|
25201
25201
|
type: "button"
|
|
25202
25202
|
},
|
|
25203
25203
|
[[
|
|
@@ -25208,7 +25208,7 @@ function open_topic_form(gobj, treedb, topic) {
|
|
|
25208
25208
|
], [
|
|
25209
25209
|
"button",
|
|
25210
25210
|
{
|
|
25211
|
-
class: "SCHEMA_TOPIC_FORM_SAVE button is-
|
|
25211
|
+
class: "SCHEMA_TOPIC_FORM_SAVE button is-primary",
|
|
25212
25212
|
type: "button"
|
|
25213
25213
|
},
|
|
25214
25214
|
[[
|
|
@@ -25372,7 +25372,7 @@ function open_export(gobj, treedb) {
|
|
|
25372
25372
|
[
|
|
25373
25373
|
[
|
|
25374
25374
|
"div",
|
|
25375
|
-
{ class: "SCHEMA_EXPORT_TABS tabs is-
|
|
25375
|
+
{ class: "SCHEMA_EXPORT_TABS tabs is-toggle mb-2" },
|
|
25376
25376
|
[[
|
|
25377
25377
|
"ul",
|
|
25378
25378
|
{},
|
|
@@ -25436,7 +25436,7 @@ function open_export(gobj, treedb) {
|
|
|
25436
25436
|
[[
|
|
25437
25437
|
"button",
|
|
25438
25438
|
{
|
|
25439
|
-
class: "SCHEMA_EXPORT_COPY button
|
|
25439
|
+
class: "SCHEMA_EXPORT_COPY button",
|
|
25440
25440
|
type: "button"
|
|
25441
25441
|
},
|
|
25442
25442
|
[[
|
|
@@ -25515,7 +25515,7 @@ function open_import(gobj, treedb) {
|
|
|
25515
25515
|
],
|
|
25516
25516
|
[
|
|
25517
25517
|
"label",
|
|
25518
|
-
{ class: "SCHEMA_IMPORT_PRUNE checkbox
|
|
25518
|
+
{ class: "SCHEMA_IMPORT_PRUNE checkbox mt-2" },
|
|
25519
25519
|
[["input", {
|
|
25520
25520
|
type: "checkbox",
|
|
25521
25521
|
class: "SCHEMA_IMPORT_PRUNE_BOX",
|
|
@@ -25544,7 +25544,7 @@ function open_import(gobj, treedb) {
|
|
|
25544
25544
|
[
|
|
25545
25545
|
"button",
|
|
25546
25546
|
{
|
|
25547
|
-
class: "SCHEMA_IMPORT_CANCEL button
|
|
25547
|
+
class: "SCHEMA_IMPORT_CANCEL button",
|
|
25548
25548
|
type: "button"
|
|
25549
25549
|
},
|
|
25550
25550
|
[[
|
|
@@ -25556,7 +25556,7 @@ function open_import(gobj, treedb) {
|
|
|
25556
25556
|
[
|
|
25557
25557
|
"button",
|
|
25558
25558
|
{
|
|
25559
|
-
class: "SCHEMA_IMPORT_PREVIEW button
|
|
25559
|
+
class: "SCHEMA_IMPORT_PREVIEW button",
|
|
25560
25560
|
type: "button"
|
|
25561
25561
|
},
|
|
25562
25562
|
[[
|
|
@@ -25572,7 +25572,7 @@ function open_import(gobj, treedb) {
|
|
|
25572
25572
|
[
|
|
25573
25573
|
"button",
|
|
25574
25574
|
{
|
|
25575
|
-
class: "SCHEMA_IMPORT_RUN button is-
|
|
25575
|
+
class: "SCHEMA_IMPORT_RUN button is-warning",
|
|
25576
25576
|
type: "button",
|
|
25577
25577
|
disabled: "disabled"
|
|
25578
25578
|
},
|
package/dist/gobj-ui.es.js
CHANGED
|
@@ -23855,7 +23855,7 @@ function toolbar_button(logical, icon, key, event, disabled) {
|
|
|
23855
23855
|
return [
|
|
23856
23856
|
"button",
|
|
23857
23857
|
el_attrs({
|
|
23858
|
-
class: `${logical} button
|
|
23858
|
+
class: `${logical} button`,
|
|
23859
23859
|
type: "button",
|
|
23860
23860
|
disabled: disabled ? "disabled" : void 0,
|
|
23861
23861
|
title: t(key),
|
|
@@ -23898,7 +23898,7 @@ function render_toolbar(gobj) {
|
|
|
23898
23898
|
if (priv.treedb_id) $left.push([
|
|
23899
23899
|
"button",
|
|
23900
23900
|
{
|
|
23901
|
-
class: "SCHEMA_BACK button
|
|
23901
|
+
class: "SCHEMA_BACK button",
|
|
23902
23902
|
type: "button",
|
|
23903
23903
|
title: t("back"),
|
|
23904
23904
|
"aria-label": t("back"),
|
|
@@ -24337,7 +24337,7 @@ function row_icon(gobj, logical, icon, key, event, kw) {
|
|
|
24337
24337
|
return [
|
|
24338
24338
|
"button",
|
|
24339
24339
|
{
|
|
24340
|
-
class: `${logical} button is-
|
|
24340
|
+
class: `${logical} button is-ghost`,
|
|
24341
24341
|
type: "button",
|
|
24342
24342
|
title: t(key),
|
|
24343
24343
|
"aria-label": t(key),
|
|
@@ -24346,7 +24346,7 @@ function row_icon(gobj, logical, icon, key, event, kw) {
|
|
|
24346
24346
|
},
|
|
24347
24347
|
[[
|
|
24348
24348
|
"span",
|
|
24349
|
-
{ class: "icon
|
|
24349
|
+
{ class: "icon" },
|
|
24350
24350
|
[["i", { class: icon }]]
|
|
24351
24351
|
]],
|
|
24352
24352
|
{ click: (evt) => {
|
|
@@ -24513,7 +24513,7 @@ function version_banner(gobj, topic) {
|
|
|
24513
24513
|
[
|
|
24514
24514
|
"button",
|
|
24515
24515
|
{
|
|
24516
|
-
class: "SCHEMA_VERSION_BUMP button is-
|
|
24516
|
+
class: "SCHEMA_VERSION_BUMP button is-warning",
|
|
24517
24517
|
type: "button",
|
|
24518
24518
|
style: "margin-left:auto;",
|
|
24519
24519
|
title: t("raise the version"),
|
|
@@ -24581,7 +24581,7 @@ function column_row(gobj, topic, col, index, readonly, twice) {
|
|
|
24581
24581
|
{ class: "SCHEMA_COL_HANDLE" },
|
|
24582
24582
|
readonly ? [] : [[
|
|
24583
24583
|
"span",
|
|
24584
|
-
{ class: "icon
|
|
24584
|
+
{ class: "icon has-text-grey" },
|
|
24585
24585
|
[["i", { class: "yi-grip-vertical" }]]
|
|
24586
24586
|
]]
|
|
24587
24587
|
],
|
|
@@ -24829,7 +24829,7 @@ function field(logical, name, label, $control, help) {
|
|
|
24829
24829
|
[
|
|
24830
24830
|
"label",
|
|
24831
24831
|
{
|
|
24832
|
-
class: "label
|
|
24832
|
+
class: "label",
|
|
24833
24833
|
i18n: label
|
|
24834
24834
|
},
|
|
24835
24835
|
t(label)
|
|
@@ -24856,7 +24856,7 @@ function field(logical, name, label, $control, help) {
|
|
|
24856
24856
|
}
|
|
24857
24857
|
function text_input(name, value, placeholder, disabled) {
|
|
24858
24858
|
return ["input", el_attrs({
|
|
24859
|
-
class: "input
|
|
24859
|
+
class: "input",
|
|
24860
24860
|
type: "text",
|
|
24861
24861
|
"data-name": name,
|
|
24862
24862
|
value: value === void 0 || value === null ? "" : `${value}`,
|
|
@@ -24866,7 +24866,7 @@ function text_input(name, value, placeholder, disabled) {
|
|
|
24866
24866
|
}
|
|
24867
24867
|
function number_input(name, value) {
|
|
24868
24868
|
return ["input", {
|
|
24869
|
-
class: "input
|
|
24869
|
+
class: "input",
|
|
24870
24870
|
type: "number",
|
|
24871
24871
|
"data-name": name,
|
|
24872
24872
|
value: value === void 0 || value === null || value === "" ? "" : `${value}`
|
|
@@ -24885,7 +24885,7 @@ function select_input(name, value, options) {
|
|
|
24885
24885
|
});
|
|
24886
24886
|
return [
|
|
24887
24887
|
"div",
|
|
24888
|
-
{ class: "select is-
|
|
24888
|
+
{ class: "select is-fullwidth" },
|
|
24889
24889
|
[[
|
|
24890
24890
|
"select",
|
|
24891
24891
|
{ "data-name": name },
|
|
@@ -24897,7 +24897,7 @@ function textarea_input(name, value, rows, placeholder) {
|
|
|
24897
24897
|
return [
|
|
24898
24898
|
"textarea",
|
|
24899
24899
|
{
|
|
24900
|
-
class: "textarea
|
|
24900
|
+
class: "textarea",
|
|
24901
24901
|
"data-name": name,
|
|
24902
24902
|
rows: `${rows || 3}`,
|
|
24903
24903
|
placeholder: placeholder || ""
|
|
@@ -24938,7 +24938,7 @@ function flags_field(gobj, type, current) {
|
|
|
24938
24938
|
return [
|
|
24939
24939
|
"label",
|
|
24940
24940
|
el_attrs({
|
|
24941
|
-
class: "SCHEMA_FLAG checkbox
|
|
24941
|
+
class: "SCHEMA_FLAG checkbox " + (flag.meaningful ? "" : "SCHEMA_FLAG_DIM has-text-grey-light"),
|
|
24942
24942
|
title: flag.desc ? t(flag.desc) : "",
|
|
24943
24943
|
"data-i18n-title": flag.desc || void 0
|
|
24944
24944
|
}),
|
|
@@ -24960,7 +24960,7 @@ function flags_field(gobj, type, current) {
|
|
|
24960
24960
|
[[
|
|
24961
24961
|
"p",
|
|
24962
24962
|
{
|
|
24963
|
-
class: "SCHEMA_FLAG_GROUP_NAME
|
|
24963
|
+
class: "SCHEMA_FLAG_GROUP_NAME has-text-weight-semibold has-text-grey",
|
|
24964
24964
|
i18n: group.group
|
|
24965
24965
|
},
|
|
24966
24966
|
t(group.group)
|
|
@@ -25020,7 +25020,7 @@ function open_column_form(gobj, topic, col, prefill) {
|
|
|
25020
25020
|
[[
|
|
25021
25021
|
"label",
|
|
25022
25022
|
{
|
|
25023
|
-
class: "label
|
|
25023
|
+
class: "label",
|
|
25024
25024
|
i18n: "flags"
|
|
25025
25025
|
},
|
|
25026
25026
|
t("flags")
|
|
@@ -25033,7 +25033,7 @@ function open_column_form(gobj, topic, col, prefill) {
|
|
|
25033
25033
|
[
|
|
25034
25034
|
"label",
|
|
25035
25035
|
{
|
|
25036
|
-
class: "label
|
|
25036
|
+
class: "label",
|
|
25037
25037
|
i18n: "hook"
|
|
25038
25038
|
},
|
|
25039
25039
|
t("hook")
|
|
@@ -25069,7 +25069,7 @@ function open_column_form(gobj, topic, col, prefill) {
|
|
|
25069
25069
|
[[
|
|
25070
25070
|
"button",
|
|
25071
25071
|
{
|
|
25072
|
-
class: "SCHEMA_COL_FORM_CANCEL button
|
|
25072
|
+
class: "SCHEMA_COL_FORM_CANCEL button",
|
|
25073
25073
|
type: "button"
|
|
25074
25074
|
},
|
|
25075
25075
|
[[
|
|
@@ -25080,7 +25080,7 @@ function open_column_form(gobj, topic, col, prefill) {
|
|
|
25080
25080
|
], [
|
|
25081
25081
|
"button",
|
|
25082
25082
|
{
|
|
25083
|
-
class: "SCHEMA_COL_FORM_SAVE button is-
|
|
25083
|
+
class: "SCHEMA_COL_FORM_SAVE button is-primary",
|
|
25084
25084
|
type: "button"
|
|
25085
25085
|
},
|
|
25086
25086
|
[[
|
|
@@ -25160,7 +25160,7 @@ function open_topic_form(gobj, treedb, topic) {
|
|
|
25160
25160
|
{ class: "SCHEMA_TOPIC_FORM_SYSTEM field mb-3" },
|
|
25161
25161
|
[[
|
|
25162
25162
|
"label",
|
|
25163
|
-
{ class: "checkbox
|
|
25163
|
+
{ class: "checkbox" },
|
|
25164
25164
|
[["input", el_attrs({
|
|
25165
25165
|
type: "checkbox",
|
|
25166
25166
|
"data-name": "system_topic",
|
|
@@ -25184,7 +25184,7 @@ function open_topic_form(gobj, treedb, topic) {
|
|
|
25184
25184
|
[[
|
|
25185
25185
|
"button",
|
|
25186
25186
|
{
|
|
25187
|
-
class: "SCHEMA_TOPIC_FORM_CANCEL button
|
|
25187
|
+
class: "SCHEMA_TOPIC_FORM_CANCEL button",
|
|
25188
25188
|
type: "button"
|
|
25189
25189
|
},
|
|
25190
25190
|
[[
|
|
@@ -25195,7 +25195,7 @@ function open_topic_form(gobj, treedb, topic) {
|
|
|
25195
25195
|
], [
|
|
25196
25196
|
"button",
|
|
25197
25197
|
{
|
|
25198
|
-
class: "SCHEMA_TOPIC_FORM_SAVE button is-
|
|
25198
|
+
class: "SCHEMA_TOPIC_FORM_SAVE button is-primary",
|
|
25199
25199
|
type: "button"
|
|
25200
25200
|
},
|
|
25201
25201
|
[[
|
|
@@ -25359,7 +25359,7 @@ function open_export(gobj, treedb) {
|
|
|
25359
25359
|
[
|
|
25360
25360
|
[
|
|
25361
25361
|
"div",
|
|
25362
|
-
{ class: "SCHEMA_EXPORT_TABS tabs is-
|
|
25362
|
+
{ class: "SCHEMA_EXPORT_TABS tabs is-toggle mb-2" },
|
|
25363
25363
|
[[
|
|
25364
25364
|
"ul",
|
|
25365
25365
|
{},
|
|
@@ -25423,7 +25423,7 @@ function open_export(gobj, treedb) {
|
|
|
25423
25423
|
[[
|
|
25424
25424
|
"button",
|
|
25425
25425
|
{
|
|
25426
|
-
class: "SCHEMA_EXPORT_COPY button
|
|
25426
|
+
class: "SCHEMA_EXPORT_COPY button",
|
|
25427
25427
|
type: "button"
|
|
25428
25428
|
},
|
|
25429
25429
|
[[
|
|
@@ -25502,7 +25502,7 @@ function open_import(gobj, treedb) {
|
|
|
25502
25502
|
],
|
|
25503
25503
|
[
|
|
25504
25504
|
"label",
|
|
25505
|
-
{ class: "SCHEMA_IMPORT_PRUNE checkbox
|
|
25505
|
+
{ class: "SCHEMA_IMPORT_PRUNE checkbox mt-2" },
|
|
25506
25506
|
[["input", {
|
|
25507
25507
|
type: "checkbox",
|
|
25508
25508
|
class: "SCHEMA_IMPORT_PRUNE_BOX",
|
|
@@ -25531,7 +25531,7 @@ function open_import(gobj, treedb) {
|
|
|
25531
25531
|
[
|
|
25532
25532
|
"button",
|
|
25533
25533
|
{
|
|
25534
|
-
class: "SCHEMA_IMPORT_CANCEL button
|
|
25534
|
+
class: "SCHEMA_IMPORT_CANCEL button",
|
|
25535
25535
|
type: "button"
|
|
25536
25536
|
},
|
|
25537
25537
|
[[
|
|
@@ -25543,7 +25543,7 @@ function open_import(gobj, treedb) {
|
|
|
25543
25543
|
[
|
|
25544
25544
|
"button",
|
|
25545
25545
|
{
|
|
25546
|
-
class: "SCHEMA_IMPORT_PREVIEW button
|
|
25546
|
+
class: "SCHEMA_IMPORT_PREVIEW button",
|
|
25547
25547
|
type: "button"
|
|
25548
25548
|
},
|
|
25549
25549
|
[[
|
|
@@ -25559,7 +25559,7 @@ function open_import(gobj, treedb) {
|
|
|
25559
25559
|
[
|
|
25560
25560
|
"button",
|
|
25561
25561
|
{
|
|
25562
|
-
class: "SCHEMA_IMPORT_RUN button is-
|
|
25562
|
+
class: "SCHEMA_IMPORT_RUN button is-warning",
|
|
25563
25563
|
type: "button",
|
|
25564
25564
|
disabled: "disabled"
|
|
25565
25565
|
},
|
package/package.json
CHANGED
|
@@ -72,6 +72,14 @@
|
|
|
72
72
|
cursor: pointer;
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
+
/* ...but they hold NAMES, and a treedb name is long: at the shell's 9rem
|
|
76
|
+
* (144px) `treedb_yuneta_agent` breaks into three lines inside its own
|
|
77
|
+
* card. Start wider here. The shell default is left alone -- it also
|
|
78
|
+
* serves grids of short labels, where 12rem would be a lot of air. */
|
|
79
|
+
.C_YUI_SCHEMA_EDITOR .yui-nav-cards {
|
|
80
|
+
grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
|
|
81
|
+
}
|
|
82
|
+
|
|
75
83
|
/* The flag grid: as many columns as fit, never fewer than one. */
|
|
76
84
|
.SCHEMA_FLAGS .SCHEMA_FLAG_LIST {
|
|
77
85
|
display: grid;
|
|
@@ -680,7 +680,7 @@ function show_notice(gobj, key, detail)
|
|
|
680
680
|
***************************************************************/
|
|
681
681
|
function toolbar_button(logical, icon, key, event, disabled)
|
|
682
682
|
{
|
|
683
|
-
return ["button", el_attrs({class: `${logical} button
|
|
683
|
+
return ["button", el_attrs({class: `${logical} button`,
|
|
684
684
|
type: "button",
|
|
685
685
|
disabled: disabled ? "disabled" : undefined,
|
|
686
686
|
title: t(key), "aria-label": t(key),
|
|
@@ -719,7 +719,7 @@ function render_toolbar(gobj)
|
|
|
719
719
|
*----------------------------------------------*/
|
|
720
720
|
let $left = [];
|
|
721
721
|
if(priv.treedb_id) {
|
|
722
|
-
$left.push(["button", {class: "SCHEMA_BACK button
|
|
722
|
+
$left.push(["button", {class: "SCHEMA_BACK button",
|
|
723
723
|
type: "button",
|
|
724
724
|
title: t("back"), "aria-label": t("back"),
|
|
725
725
|
"data-i18n-title": "back", "data-i18n-aria-label": "back"}, [
|
|
@@ -1041,11 +1041,11 @@ function render_topics(gobj, $body)
|
|
|
1041
1041
|
***************************************************************/
|
|
1042
1042
|
function row_icon(gobj, logical, icon, key, event, kw)
|
|
1043
1043
|
{
|
|
1044
|
-
return ["button", {class: `${logical} button is-
|
|
1044
|
+
return ["button", {class: `${logical} button is-ghost`,
|
|
1045
1045
|
type: "button",
|
|
1046
1046
|
title: t(key), "aria-label": t(key),
|
|
1047
1047
|
"data-i18n-title": key, "data-i18n-aria-label": key}, [
|
|
1048
|
-
["span", {class: "icon
|
|
1048
|
+
["span", {class: "icon"}, [["i", {class: icon}]]]
|
|
1049
1049
|
], {
|
|
1050
1050
|
click: (evt) => {
|
|
1051
1051
|
evt.stopPropagation();
|
|
@@ -1178,7 +1178,7 @@ function version_banner(gobj, topic)
|
|
|
1178
1178
|
["span", {class: "icon"}, [["i", {class: "yi-triangle-exclamation"}]]],
|
|
1179
1179
|
["span", {class: "SCHEMA_VERSION_TEXT is-size-7", i18n: "version not raised"},
|
|
1180
1180
|
t("version not raised")],
|
|
1181
|
-
["button", {class: "SCHEMA_VERSION_BUMP button is-
|
|
1181
|
+
["button", {class: "SCHEMA_VERSION_BUMP button is-warning",
|
|
1182
1182
|
type: "button",
|
|
1183
1183
|
style: "margin-left:auto;",
|
|
1184
1184
|
title: t("raise the version"), "aria-label": t("raise the version"),
|
|
@@ -1242,7 +1242,7 @@ function column_row(gobj, topic, col, index, readonly, twice)
|
|
|
1242
1242
|
["tr", {class: "SCHEMA_COL_ROW", "data-index": `${index}`,
|
|
1243
1243
|
draggable: readonly ? "false" : "true"}, [
|
|
1244
1244
|
["td", {class: "SCHEMA_COL_HANDLE"},
|
|
1245
|
-
readonly ? [] : [["span", {class: "icon
|
|
1245
|
+
readonly ? [] : [["span", {class: "icon has-text-grey"},
|
|
1246
1246
|
[["i", {class: "yi-grip-vertical"}]]]]],
|
|
1247
1247
|
["td", {class: "SCHEMA_COL_NAME"}, [
|
|
1248
1248
|
["code", {}, `${col.name}`],
|
|
@@ -1480,7 +1480,7 @@ function open_dialog(gobj, $content, title, logical, title_prefix)
|
|
|
1480
1480
|
function field(logical, name, label, $control, help)
|
|
1481
1481
|
{
|
|
1482
1482
|
return ["div", {class: `${logical} field mb-3`}, [
|
|
1483
|
-
["label", {class: "label
|
|
1483
|
+
["label", {class: "label", i18n: label}, t(label)],
|
|
1484
1484
|
["div", {class: "control"}, [$control]],
|
|
1485
1485
|
help
|
|
1486
1486
|
? ["p", {class: "help", i18n: help}, t(help)]
|
|
@@ -1490,7 +1490,7 @@ function field(logical, name, label, $control, help)
|
|
|
1490
1490
|
|
|
1491
1491
|
function text_input(name, value, placeholder, disabled)
|
|
1492
1492
|
{
|
|
1493
|
-
return ["input", el_attrs({class: "input
|
|
1493
|
+
return ["input", el_attrs({class: "input", type: "text",
|
|
1494
1494
|
"data-name": name,
|
|
1495
1495
|
value: value === undefined || value === null ? "" : `${value}`,
|
|
1496
1496
|
placeholder: placeholder || "",
|
|
@@ -1499,7 +1499,7 @@ function text_input(name, value, placeholder, disabled)
|
|
|
1499
1499
|
|
|
1500
1500
|
function number_input(name, value)
|
|
1501
1501
|
{
|
|
1502
|
-
return ["input", {class: "input
|
|
1502
|
+
return ["input", {class: "input", type: "number",
|
|
1503
1503
|
"data-name": name,
|
|
1504
1504
|
value: (value === undefined || value === null || value === "")
|
|
1505
1505
|
? "" : `${value}`}];
|
|
@@ -1513,14 +1513,14 @@ function select_input(name, value, options)
|
|
|
1513
1513
|
`${option}`];
|
|
1514
1514
|
});
|
|
1515
1515
|
|
|
1516
|
-
return ["div", {class: "select is-
|
|
1516
|
+
return ["div", {class: "select is-fullwidth"}, [
|
|
1517
1517
|
["select", {"data-name": name}, $options]
|
|
1518
1518
|
]];
|
|
1519
1519
|
}
|
|
1520
1520
|
|
|
1521
1521
|
function textarea_input(name, value, rows, placeholder)
|
|
1522
1522
|
{
|
|
1523
|
-
return ["textarea", {class: "textarea
|
|
1523
|
+
return ["textarea", {class: "textarea", "data-name": name,
|
|
1524
1524
|
rows: `${rows || 3}`,
|
|
1525
1525
|
placeholder: placeholder || ""},
|
|
1526
1526
|
value === undefined || value === null ? "" : `${value}`];
|
|
@@ -1561,7 +1561,7 @@ function flags_field(gobj, type, current)
|
|
|
1561
1561
|
|
|
1562
1562
|
for(let group of grouped_flags(type, current)) {
|
|
1563
1563
|
let $boxes = group.flags.map((flag) => {
|
|
1564
|
-
return ["label", el_attrs({class: "SCHEMA_FLAG checkbox
|
|
1564
|
+
return ["label", el_attrs({class: "SCHEMA_FLAG checkbox " +
|
|
1565
1565
|
(flag.meaningful ? "" : "SCHEMA_FLAG_DIM has-text-grey-light"),
|
|
1566
1566
|
title: flag.desc ? t(flag.desc) : "",
|
|
1567
1567
|
"data-i18n-title": flag.desc || undefined}), [
|
|
@@ -1573,7 +1573,7 @@ function flags_field(gobj, type, current)
|
|
|
1573
1573
|
});
|
|
1574
1574
|
|
|
1575
1575
|
$groups.push(["div", {class: "SCHEMA_FLAG_GROUP mb-2"}, [
|
|
1576
|
-
["p", {class: "SCHEMA_FLAG_GROUP_NAME
|
|
1576
|
+
["p", {class: "SCHEMA_FLAG_GROUP_NAME has-text-weight-semibold has-text-grey",
|
|
1577
1577
|
i18n: group.group}, t(group.group)],
|
|
1578
1578
|
["div", {class: "SCHEMA_FLAG_LIST"}, $boxes]
|
|
1579
1579
|
]]);
|
|
@@ -1638,11 +1638,11 @@ function open_column_form(gobj, topic, col, prefill)
|
|
|
1638
1638
|
field("SCHEMA_COL_FORM_FILLSPACE", "fillspace", "fillspace",
|
|
1639
1639
|
number_input("fillspace", record.fillspace)),
|
|
1640
1640
|
["div", {class: "SCHEMA_COL_FORM_FLAGS field mb-3"}, [
|
|
1641
|
-
["label", {class: "label
|
|
1641
|
+
["label", {class: "label", i18n: "flags"}, t("flags")],
|
|
1642
1642
|
flags_field(gobj, type, col_flags(record))
|
|
1643
1643
|
]],
|
|
1644
1644
|
["div", {class: "SCHEMA_COL_FORM_HOOK field mb-3"}, [
|
|
1645
|
-
["label", {class: "label
|
|
1645
|
+
["label", {class: "label", i18n: "hook"}, t("hook")],
|
|
1646
1646
|
["div", {class: "is-flex", style: "gap:.4rem;"}, [
|
|
1647
1647
|
select_input("hook_topic", hook_topic, [""].concat(sibling_topics)),
|
|
1648
1648
|
text_input("hook_col", hook_col, t("the fkey column of the child"))
|
|
@@ -1661,9 +1661,9 @@ function open_column_form(gobj, topic, col, prefill)
|
|
|
1661
1661
|
text_input("description", record.description, "")),
|
|
1662
1662
|
["div", {class: "SCHEMA_COL_FORM_ACTIONS is-flex mt-4",
|
|
1663
1663
|
style: "gap:.5rem; justify-content:flex-end;"}, [
|
|
1664
|
-
["button", {class: "SCHEMA_COL_FORM_CANCEL button
|
|
1664
|
+
["button", {class: "SCHEMA_COL_FORM_CANCEL button", type: "button"},
|
|
1665
1665
|
[["span", {i18n: "cancel"}, t("cancel")]]],
|
|
1666
|
-
["button", {class: "SCHEMA_COL_FORM_SAVE button is-
|
|
1666
|
+
["button", {class: "SCHEMA_COL_FORM_SAVE button is-primary", type: "button"},
|
|
1667
1667
|
[["span", {class: "icon"}, [["i", {class: "yi-floppy-disk"}]]],
|
|
1668
1668
|
["span", {i18n: "save"}, t("save")]]]
|
|
1669
1669
|
]]
|
|
@@ -1763,7 +1763,7 @@ function open_topic_form(gobj, treedb, topic)
|
|
|
1763
1763
|
record.topic_version === undefined ? 1 : record.topic_version),
|
|
1764
1764
|
"raising it is what publishes a change of the columns"),
|
|
1765
1765
|
["div", {class: "SCHEMA_TOPIC_FORM_SYSTEM field mb-3"}, [
|
|
1766
|
-
["label", {class: "checkbox
|
|
1766
|
+
["label", {class: "checkbox"}, [
|
|
1767
1767
|
["input", el_attrs({type: "checkbox", "data-name": "system_topic",
|
|
1768
1768
|
checked: record.system_topic ? "checked" : undefined})],
|
|
1769
1769
|
["span", {class: "ml-1", i18n: "system topic"}, t("system topic")]
|
|
@@ -1771,9 +1771,9 @@ function open_topic_form(gobj, treedb, topic)
|
|
|
1771
1771
|
]],
|
|
1772
1772
|
["div", {class: "SCHEMA_TOPIC_FORM_ACTIONS is-flex mt-4",
|
|
1773
1773
|
style: "gap:.5rem; justify-content:flex-end;"}, [
|
|
1774
|
-
["button", {class: "SCHEMA_TOPIC_FORM_CANCEL button
|
|
1774
|
+
["button", {class: "SCHEMA_TOPIC_FORM_CANCEL button", type: "button"},
|
|
1775
1775
|
[["span", {i18n: "cancel"}, t("cancel")]]],
|
|
1776
|
-
["button", {class: "SCHEMA_TOPIC_FORM_SAVE button is-
|
|
1776
|
+
["button", {class: "SCHEMA_TOPIC_FORM_SAVE button is-primary",
|
|
1777
1777
|
type: "button"},
|
|
1778
1778
|
[["span", {class: "icon"}, [["i", {class: "yi-floppy-disk"}]]],
|
|
1779
1779
|
["span", {i18n: "save"}, t("save")]]]
|
|
@@ -1860,7 +1860,7 @@ function open_export(gobj, treedb)
|
|
|
1860
1860
|
|
|
1861
1861
|
let $content = createElement2(
|
|
1862
1862
|
["div", {class: "SCHEMA_EXPORT box"}, [
|
|
1863
|
-
["div", {class: "SCHEMA_EXPORT_TABS tabs is-
|
|
1863
|
+
["div", {class: "SCHEMA_EXPORT_TABS tabs is-toggle mb-2"}, [
|
|
1864
1864
|
["ul", {}, [
|
|
1865
1865
|
["li", {class: "SCHEMA_EXPORT_TAB is-active", "data-pane": "c"},
|
|
1866
1866
|
[["a", {}, [["span", {}, "C"]]]]],
|
|
@@ -1875,7 +1875,7 @@ function open_export(gobj, treedb)
|
|
|
1875
1875
|
rows: "18", readonly: "readonly", spellcheck: "false"}, c_text],
|
|
1876
1876
|
["div", {class: "SCHEMA_EXPORT_ACTIONS is-flex mt-3",
|
|
1877
1877
|
style: "gap:.5rem; justify-content:flex-end;"}, [
|
|
1878
|
-
["button", {class: "SCHEMA_EXPORT_COPY button
|
|
1878
|
+
["button", {class: "SCHEMA_EXPORT_COPY button", type: "button"}, [
|
|
1879
1879
|
["span", {class: "icon"}, [["i", {class: "yi-copy"}]]],
|
|
1880
1880
|
["span", {i18n: "copy"}, t("copy")]
|
|
1881
1881
|
]]
|
|
@@ -1940,7 +1940,7 @@ function open_import(gobj, treedb)
|
|
|
1940
1940
|
["textarea", {class: "SCHEMA_IMPORT_TEXT textarea is-small is-family-monospace",
|
|
1941
1941
|
rows: "12", spellcheck: "false",
|
|
1942
1942
|
placeholder: '{"id": "...", "schema_version": "1", "topics": []}'}, ""],
|
|
1943
|
-
["label", {class: "SCHEMA_IMPORT_PRUNE checkbox
|
|
1943
|
+
["label", {class: "SCHEMA_IMPORT_PRUNE checkbox mt-2"}, [
|
|
1944
1944
|
["input", {type: "checkbox", class: "SCHEMA_IMPORT_PRUNE_BOX", checked: "checked"}],
|
|
1945
1945
|
["span", {class: "ml-1", i18n: "delete what the pasted schema does not declare"},
|
|
1946
1946
|
t("delete what the pasted schema does not declare")]
|
|
@@ -1948,12 +1948,12 @@ function open_import(gobj, treedb)
|
|
|
1948
1948
|
["div", {class: "SCHEMA_IMPORT_PLAN mt-3"}, []],
|
|
1949
1949
|
["div", {class: "SCHEMA_IMPORT_ACTIONS is-flex mt-3",
|
|
1950
1950
|
style: "gap:.5rem; justify-content:flex-end;"}, [
|
|
1951
|
-
["button", {class: "SCHEMA_IMPORT_CANCEL button
|
|
1951
|
+
["button", {class: "SCHEMA_IMPORT_CANCEL button", type: "button"},
|
|
1952
1952
|
[["span", {i18n: "cancel"}, t("cancel")]]],
|
|
1953
|
-
["button", {class: "SCHEMA_IMPORT_PREVIEW button
|
|
1953
|
+
["button", {class: "SCHEMA_IMPORT_PREVIEW button", type: "button"},
|
|
1954
1954
|
[["span", {class: "icon"}, [["i", {class: "yi-eye"}]]],
|
|
1955
1955
|
["span", {i18n: "preview"}, t("preview")]]],
|
|
1956
|
-
["button", {class: "SCHEMA_IMPORT_RUN button is-
|
|
1956
|
+
["button", {class: "SCHEMA_IMPORT_RUN button is-warning",
|
|
1957
1957
|
type: "button", disabled: "disabled"},
|
|
1958
1958
|
[["span", {class: "icon"}, [["i", {class: "yi-upload"}]]],
|
|
1959
1959
|
["span", {i18n: "import"}, t("import")]]]
|