@yuneta/gobj-ui 7.13.4 → 7.13.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.
@@ -24842,7 +24842,7 @@ function field(logical, name, label, $control, help) {
24842
24842
  [
24843
24843
  "label",
24844
24844
  {
24845
- class: "label is-small",
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 is-small",
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 is-small",
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-small is-fullwidth" },
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 is-small",
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 is-size-7 " + (flag.meaningful ? "" : "SCHEMA_FLAG_DIM has-text-grey-light"),
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 is-size-7 has-text-weight-semibold has-text-grey",
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 is-small",
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 is-small",
25049
+ class: "label",
25050
25050
  i18n: "hook"
25051
25051
  },
25052
25052
  (0, i18next.t)("hook")
@@ -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 is-size-7" },
25176
+ { class: "checkbox" },
25177
25177
  [["input", el_attrs({
25178
25178
  type: "checkbox",
25179
25179
  "data-name": "system_topic",
@@ -25515,7 +25515,7 @@ function open_import(gobj, treedb) {
25515
25515
  ],
25516
25516
  [
25517
25517
  "label",
25518
- { class: "SCHEMA_IMPORT_PRUNE checkbox is-size-7 mt-2" },
25518
+ { class: "SCHEMA_IMPORT_PRUNE checkbox mt-2" },
25519
25519
  [["input", {
25520
25520
  type: "checkbox",
25521
25521
  class: "SCHEMA_IMPORT_PRUNE_BOX",
@@ -24829,7 +24829,7 @@ function field(logical, name, label, $control, help) {
24829
24829
  [
24830
24830
  "label",
24831
24831
  {
24832
- class: "label is-small",
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 is-small",
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 is-small",
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-small is-fullwidth" },
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 is-small",
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 is-size-7 " + (flag.meaningful ? "" : "SCHEMA_FLAG_DIM has-text-grey-light"),
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 is-size-7 has-text-weight-semibold has-text-grey",
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 is-small",
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 is-small",
25036
+ class: "label",
25037
25037
  i18n: "hook"
25038
25038
  },
25039
25039
  t("hook")
@@ -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 is-size-7" },
25163
+ { class: "checkbox" },
25164
25164
  [["input", el_attrs({
25165
25165
  type: "checkbox",
25166
25166
  "data-name": "system_topic",
@@ -25502,7 +25502,7 @@ function open_import(gobj, treedb) {
25502
25502
  ],
25503
25503
  [
25504
25504
  "label",
25505
- { class: "SCHEMA_IMPORT_PRUNE checkbox is-size-7 mt-2" },
25505
+ { class: "SCHEMA_IMPORT_PRUNE checkbox mt-2" },
25506
25506
  [["input", {
25507
25507
  type: "checkbox",
25508
25508
  class: "SCHEMA_IMPORT_PRUNE_BOX",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yuneta/gobj-ui",
3
- "version": "7.13.4",
3
+ "version": "7.13.6",
4
4
  "type": "module",
5
5
  "main": "dist/gobj-ui.cjs.js",
6
6
  "module": "dist/gobj-ui.es.js",
@@ -72,6 +72,17 @@
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` broke into THREE lines inside its own
77
+ * card, and at 12rem into two: the name shares its row with the icon and
78
+ * the card's padding, so what it gets is some 60px less than the card.
79
+ * 14rem is what fits that name on one line. The shell default is left
80
+ * alone -- it also serves grids of short labels, where this would be a
81
+ * lot of air. */
82
+ .C_YUI_SCHEMA_EDITOR .yui-nav-cards {
83
+ grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
84
+ }
85
+
75
86
  /* The flag grid: as many columns as fit, never fewer than one. */
76
87
  .SCHEMA_FLAGS .SCHEMA_FLAG_LIST {
77
88
  display: grid;
@@ -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 is-small", i18n: label}, t(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 is-small", type: "text",
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 is-small", type: "number",
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-small is-fullwidth"}, [
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 is-small", "data-name": name,
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 is-size-7 " +
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 is-size-7 has-text-weight-semibold has-text-grey",
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 is-small", i18n: "flags"}, t("flags")],
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 is-small", i18n: "hook"}, t("hook")],
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"))
@@ -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 is-size-7"}, [
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")]
@@ -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 is-size-7 mt-2"}, [
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")]