@yuneta/gobj-ui 7.13.2 → 7.13.4

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.
@@ -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 is-small`,
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 is-small",
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-small is-ghost`,
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 is-small" },
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-small is-warning",
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 is-small has-text-grey" },
24597
+ { class: "icon has-text-grey" },
24598
24598
  [["i", { class: "yi-grip-vertical" }]]
24599
24599
  ]]
24600
24600
  ],
@@ -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 is-small",
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-small is-primary",
25096
+ class: "SCHEMA_COL_FORM_SAVE button is-primary",
25097
25097
  type: "button"
25098
25098
  },
25099
25099
  [[
@@ -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 is-small",
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-small is-primary",
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-small is-toggle mb-2" },
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 is-small",
25439
+ class: "SCHEMA_EXPORT_COPY button",
25440
25440
  type: "button"
25441
25441
  },
25442
25442
  [[
@@ -25544,7 +25544,7 @@ function open_import(gobj, treedb) {
25544
25544
  [
25545
25545
  "button",
25546
25546
  {
25547
- class: "SCHEMA_IMPORT_CANCEL button is-small",
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 is-small",
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-small is-warning",
25575
+ class: "SCHEMA_IMPORT_RUN button is-warning",
25576
25576
  type: "button",
25577
25577
  disabled: "disabled"
25578
25578
  },
@@ -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 is-small`,
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 is-small",
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-small is-ghost`,
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 is-small" },
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-small is-warning",
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 is-small has-text-grey" },
24584
+ { class: "icon has-text-grey" },
24585
24585
  [["i", { class: "yi-grip-vertical" }]]
24586
24586
  ]]
24587
24587
  ],
@@ -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 is-small",
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-small is-primary",
25083
+ class: "SCHEMA_COL_FORM_SAVE button is-primary",
25084
25084
  type: "button"
25085
25085
  },
25086
25086
  [[
@@ -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 is-small",
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-small is-primary",
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-small is-toggle mb-2" },
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 is-small",
25426
+ class: "SCHEMA_EXPORT_COPY button",
25427
25427
  type: "button"
25428
25428
  },
25429
25429
  [[
@@ -25531,7 +25531,7 @@ function open_import(gobj, treedb) {
25531
25531
  [
25532
25532
  "button",
25533
25533
  {
25534
- class: "SCHEMA_IMPORT_CANCEL button is-small",
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 is-small",
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-small is-warning",
25562
+ class: "SCHEMA_IMPORT_RUN button is-warning",
25563
25563
  type: "button",
25564
25564
  disabled: "disabled"
25565
25565
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yuneta/gobj-ui",
3
- "version": "7.13.2",
3
+ "version": "7.13.4",
4
4
  "type": "module",
5
5
  "main": "dist/gobj-ui.cjs.js",
6
6
  "module": "dist/gobj-ui.es.js",
package/src/c_yui_form.js CHANGED
@@ -62,10 +62,15 @@ import {plan_toolbar} from "./form_toolbar_plan.js";
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. */
64
64
  import {yui_is_dark} from "./yui_theme.js";
65
- import "./tabulator.css";
66
-
65
+ /* ORDER MATTERS, and it is this way round: `tabulator.css` is OUR sheet of
66
+ * fixes ON TOP of Tabulator's theme, and at equal specificity the cascade is
67
+ * decided by which one the bundle emits last. Imported before the theme (as
68
+ * it was), every fix that does not out-specify the theme silently loses --
69
+ * the header-filter border did, in every app that mounts a form. */
67
70
  import "tabulator-tables/dist/css/tabulator.min.css"; // Import Tabulator CSS
68
71
  import "tabulator-tables/dist/css/tabulator_bulma.css";
72
+
73
+ import "./tabulator.css";
69
74
  import { TabulatorFull as Tabulator } from "tabulator-tables"; // Import Full Tabulator JS
70
75
  // import { Tabulator } from "tabulator-tables"; // Import light Tabulator JS
71
76
 
@@ -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 is-small`,
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 is-small",
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-small is-ghost`,
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 is-small"}, [["i", {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-small is-warning",
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 is-small has-text-grey"},
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}`],
@@ -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 is-small", type: "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-small is-primary", type: "button"},
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
  ]]
@@ -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 is-small", type: "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-small is-primary",
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-small is-toggle mb-2"}, [
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 is-small", type: "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
  ]]
@@ -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 is-small", type: "button"},
1951
+ ["button", {class: "SCHEMA_IMPORT_CANCEL button", type: "button"},
1952
1952
  [["span", {i18n: "cancel"}, t("cancel")]]],
1953
- ["button", {class: "SCHEMA_IMPORT_PREVIEW button is-small", type: "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-small is-warning",
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")]]]