@yuneta/gobj-ui 7.26.44 → 7.26.45

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.
@@ -183,6 +183,7 @@ function activate_focus_trap_on($panel, doc) {
183
183
  ev.preventDefault();
184
184
  }
185
185
  };
186
+ trap.$panel = $panel;
186
187
  doc.addEventListener("keydown", trap, true);
187
188
  __trap_stack__.push(trap);
188
189
  let firstFocusable = focusables_of($panel)[0];
@@ -196,6 +197,17 @@ function activate_focus_trap_on($panel, doc) {
196
197
  if (saved && typeof saved.focus === "function" && (!doc.body || !doc.body.contains || doc.body.contains(saved))) saved.focus();
197
198
  };
198
199
  }
200
+ /***************************************************************
201
+ * The panel of the trap that holds the focus now (the top of the
202
+ * stack), or null when none is up. What holds one -- a modal, a
203
+ * dialog, a drawer, a menu -- is drawn above every window that is
204
+ * not modal: such a window that took the focus would take it
205
+ * where it cannot be seen, and the next Tab would give it back.
206
+ ***************************************************************/
207
+ function focus_trap_panel() {
208
+ let top = __trap_stack__[__trap_stack__.length - 1];
209
+ return top ? top.$panel : null;
210
+ }
199
211
  //#endregion
200
212
  //#region src/shell_show_on.js
201
213
  /***********************************************************************
@@ -1233,6 +1245,7 @@ var PRIVATE_DATA$22 = {
1233
1245
  hash_handler: null,
1234
1246
  keydown_handler: null,
1235
1247
  escape_stack: [],
1248
+ escape_seq: 0,
1236
1249
  overlay_stack: [],
1237
1250
  expected_pops: 0,
1238
1251
  expected_pop_hash: "",
@@ -1374,7 +1387,10 @@ function mt_start$21(gobj) {
1374
1387
  priv.keydown_handler = (ev) => {
1375
1388
  if (ev.key !== "Escape" && ev.keyCode !== 27) return;
1376
1389
  if (priv.escape_stack.length === 0) return;
1377
- if (escape_is_taken(ev)) return;
1390
+ if (escape_is_taken(ev)) {
1391
+ take_back_focus(ev);
1392
+ return;
1393
+ }
1378
1394
  let top = priv.escape_stack[priv.escape_stack.length - 1];
1379
1395
  ev.preventDefault();
1380
1396
  ev.stopPropagation();
@@ -2694,6 +2710,21 @@ function drawers(gobj, menu_id) {
2694
2710
  return out;
2695
2711
  }
2696
2712
  /************************************************************
2713
+ * An Escape that closed an inline editor (a table cell) took the
2714
+ * focus with it, to <body>: the overlay that holds the focus (the
2715
+ * top trap: a dialog, a drawer) takes it back, as a window does --
2716
+ * a reader was left on the page, outside the dialog it was in.
2717
+ ************************************************************/
2718
+ function take_back_focus(ev) {
2719
+ if (!ev.target || ev.target.isConnected !== false) return;
2720
+ let active = document.activeElement;
2721
+ if (active && active !== document.body) return;
2722
+ let $panel = focus_trap_panel();
2723
+ if (!$panel || $panel.isConnected === false) return;
2724
+ if (!$panel.hasAttribute("tabindex")) $panel.setAttribute("tabindex", "-1");
2725
+ $panel.focus();
2726
+ }
2727
+ /************************************************************
2697
2728
  * Escape priority chain helpers — push/pop a {layer, handler}
2698
2729
  * record on `priv.escape_stack`. Escape calls the top entry
2699
2730
  * only and consumes the event; LIFO ordering naturally matches
@@ -2706,9 +2737,11 @@ function push_escape(gobj, layer, handler) {
2706
2737
  log_warning(`C_YUI_SHELL: push_escape('${layer}') on a shell that is gone: Escape will not close it`);
2707
2738
  return;
2708
2739
  }
2740
+ priv.escape_seq += 1;
2709
2741
  priv.escape_stack.push({
2710
2742
  layer,
2711
- handler
2743
+ handler,
2744
+ seq: priv.escape_seq
2712
2745
  });
2713
2746
  }
2714
2747
  function pop_escape(gobj, handler) {
@@ -3628,6 +3661,11 @@ function yui_shell_push_escape(shell_gobj, layer, handler) {
3628
3661
  function yui_shell_pop_escape(shell_gobj, handler) {
3629
3662
  pop_escape(shell_gobj, handler);
3630
3663
  }
3664
+ function yui_shell_escape_order(shell_gobj) {
3665
+ let priv = shell_gobj && shell_gobj.priv;
3666
+ if (!priv || !priv.escape_stack || priv.escape_stack.length === 0) return 0;
3667
+ return priv.escape_stack[priv.escape_stack.length - 1].seq;
3668
+ }
3631
3669
  function yui_shell_register_overlay(shell_gobj, close_fn, opts) {
3632
3670
  return push_overlay_history(shell_gobj, close_fn, opts);
3633
3671
  }
@@ -4581,7 +4619,8 @@ var PRIVATE_DATA$21 = {
4581
4619
  back_shell: null,
4582
4620
  opener: null,
4583
4621
  $lock: null,
4584
- release_focus: null
4622
+ release_focus: null,
4623
+ escape_order: 0
4585
4624
  };
4586
4625
  var __gclass__$21 = null;
4587
4626
  /******************************
@@ -4646,6 +4685,12 @@ function mt_create$21(gobj) {
4646
4685
  * the first Tab of a keyboard reader landed in a window they had
4647
4686
  * not opened. A modal window takes it all the same: nothing else
4648
4687
  * can be used while it is up.
4688
+ *
4689
+ * Nor does one opened under an overlay that holds the focus (a
4690
+ * modal window, a dialog, a drawer, a menu: all are drawn above
4691
+ * the window layer). Up to gobj-ui 7.26.44 it took the focus where
4692
+ * it could not be seen, and the next Tab gave it back to the
4693
+ * overlay; it opens under it now, and is there when it goes.
4649
4694
  ***************************************************************/
4650
4695
  function mt_start$20(gobj) {
4651
4696
  let priv = gobj.priv;
@@ -4656,9 +4701,12 @@ function mt_start$20(gobj) {
4656
4701
  }
4657
4702
  let active = document.activeElement;
4658
4703
  if (active && active !== document.body && !$container.contains(active)) priv.opener = active;
4704
+ priv.escape_order = yui_shell_escape_order(yui_shell_of(gobj));
4659
4705
  let modal = gobj_read_bool_attr(gobj, "modal");
4706
+ let $trap = focus_trap_panel();
4707
+ let under_an_overlay = !!$trap && !$trap.contains($container);
4660
4708
  if (modal && !priv.release_focus) priv.release_focus = activate_focus_trap_on($container);
4661
- if (modal || opened_by_the_reader()) focus_target(gobj, $container).focus();
4709
+ if (modal || opened_by_the_reader() && !under_an_overlay) focus_target(gobj, $container).focus();
4662
4710
  }
4663
4711
  /***************************************************************
4664
4712
  * Framework Method: Destroy
@@ -4912,8 +4960,9 @@ function window_root(gobj) {
4912
4960
  /************************************************************
4913
4961
  * An Escape typed in the window. The callback only decides
4914
4962
  * whether the key is the window's -- not when `keyboard` is
4915
- * off, nor one that what it was typed in took -- and sends
4916
- * the event: the close is the ✕'s, in the action.
4963
+ * off, nor one that what it was typed in took, nor while an
4964
+ * overlay of the shell opened after the window is up -- and
4965
+ * sends the event: the close is the ✕'s, in the action.
4917
4966
  ************************************************************/
4918
4967
  function on_escape_key(gobj, evt) {
4919
4968
  if (evt.key !== "Escape" && evt.keyCode !== 27) return;
@@ -4924,6 +4973,7 @@ function on_escape_key(gobj, evt) {
4924
4973
  if (evt.target && evt.target.isConnected === false && $container && (!active || active === document.body)) $container.focus();
4925
4974
  return;
4926
4975
  }
4976
+ if (yui_shell_escape_order(yui_shell_of(gobj)) > gobj.priv.escape_order) return;
4927
4977
  evt.preventDefault();
4928
4978
  evt.stopPropagation();
4929
4979
  gobj_send_event(gobj, "EV_CLOSE_WINDOW", { key: "Escape" }, gobj);
@@ -4981,7 +5031,10 @@ function build_ui$18(gobj) {
4981
5031
  if (is_gobj(footer)) footer = gobj_read_attr(footer, "$container");
4982
5032
  if (gobj_read_bool_attr(gobj, "auto_save_size_and_position")) {
4983
5033
  if (gobj_is_service(gobj)) {
4984
- let rect = whole_rect(kw_get_local_storage_value(`${gobj_name(gobj)}-rect`));
5034
+ let key = `${gobj_name(gobj)}-rect`;
5035
+ let stored = kw_get_local_storage_value(key);
5036
+ let rect = whole_rect(stored);
5037
+ if (!rect && stored != null) log_warning(`${gobj_short_name(gobj)}: the saved position '${key}' is not a rect of four numbers: ignored`);
4985
5038
  if (rect) {
4986
5039
  rect.x = rect.x < 0 ? 0 : rect.x;
4987
5040
  rect.y = rect.y < 0 ? 0 : rect.y;
@@ -5683,6 +5736,7 @@ function ac_shell_changed$1(gobj, event, kw, src) {
5683
5736
  gobj_write_attr(gobj, "back_overlay", null);
5684
5737
  priv.back_shell = null;
5685
5738
  }
5739
+ priv.escape_order = going ? 0 : yui_shell_escape_order(src);
5686
5740
  let $container = gobj_read_attr(gobj, "$container");
5687
5741
  if (!$container) {
5688
5742
  log_error(`${gobj_short_name(gobj)}: EV_SHELL_CHANGED without a container`);
@@ -10043,7 +10097,7 @@ var attrs_table$17 = [
10043
10097
  SDATA(data_type_t.DTP_STRING, "topic_name", 0, "", "Treedb topic name: labels use the i18n cascade '<topic>.<col>' -> '<col>' -> header (like table headers)"),
10044
10098
  SDATA(data_type_t.DTP_BOOLEAN, "editable", 0, false, "Default is editable, set false to readonly"),
10045
10099
  SDATA(data_type_t.DTP_BOOLEAN, "readonly", 0, false, "Show EVERY field read-only, whatever its schema says: a record being LOOKED at, not edited. Independent of `editable`, which drives the TABLE rendering; this one drives the FORM"),
10046
- SDATA(data_type_t.DTP_BOOLEAN, "selectable", 0, true, "Rows selectable with 'click' (BAD with editable=true)"),
10100
+ SDATA(data_type_t.DTP_BOOLEAN, "selectable", 0, true, "A click selects a row, when tabulator_settings selects rows (selectableRows)"),
10047
10101
  SDATA(data_type_t.DTP_BOOLEAN, "with_checkbox", 0, false, "Show a first column with checkbox to select rows"),
10048
10102
  SDATA(data_type_t.DTP_BOOLEAN, "with_rownum", 0, false, "Print first column with row number"),
10049
10103
  SDATA(data_type_t.DTP_BOOLEAN, "with_delete_row_btn", 0, false, "Print last column with delete row button"),
@@ -10455,6 +10509,18 @@ function destroy_widget(gobj, what, widget) {
10455
10509
  }
10456
10510
  }
10457
10511
  /************************************************************
10512
+ * Close the cell editor a table has open, dropping what is
10513
+ * typed in it, before its rows are wiped. Tabulator 6.6.0
10514
+ * closes it while it wipes them, and the redraw that follows
10515
+ * walks the rows already wiped: a reload, a Clear or a destroy
10516
+ * with an editor open in any row but the first threw, and left
10517
+ * the table half wiped.
10518
+ ************************************************************/
10519
+ function close_table_editor(tabulator) {
10520
+ let edit = tabulator.modules ? tabulator.modules.edit : null;
10521
+ if (edit && edit.currentCell) edit.cancelEdit();
10522
+ }
10523
+ /************************************************************
10458
10524
  * A table element that is gone: its identity is no table now,
10459
10525
  * and what was waiting to be loaded in it never will be.
10460
10526
  ************************************************************/
@@ -10475,6 +10541,7 @@ function destroy_row_tables(gobj, $row) {
10475
10541
  $row.yui_nested = null;
10476
10542
  for (let $nested of nested) {
10477
10543
  if ($nested.tabulator) {
10544
+ close_table_editor($nested.tabulator);
10478
10545
  destroy_rows_tables(gobj, $nested.tabulator);
10479
10546
  destroy_widget(gobj, "nested table", $nested.tabulator);
10480
10547
  $nested.tabulator = null;
@@ -10507,6 +10574,7 @@ function destroy_widgets(gobj, $container) {
10507
10574
  $el.jsoneditor = null;
10508
10575
  }
10509
10576
  if ($el.tabulator) {
10577
+ close_table_editor($el.tabulator);
10510
10578
  destroy_rows_tables(gobj, $el.tabulator);
10511
10579
  destroy_widget(gobj, "table", $el.tabulator);
10512
10580
  $el.tabulator = null;
@@ -11747,7 +11815,8 @@ function create_coordinates(gobj, attrs) {
11747
11815
  * Create tabulator
11748
11816
  *
11749
11817
  * A row builds its nested tables the first time it is drawn, each
11750
- * loaded from the row's own data, and keeps them on its element
11818
+ * BUILT with the rows of the row's own data (`rows`, a copy: the
11819
+ * table keeps what it is given), and keeps them on its element
11751
11820
  * (`yui_nested`) until the row goes (destroy_row_tables). A row
11752
11821
  * drawn AGAIN -- a forced redraw, a column rebuilt -- has its
11753
11822
  * children taken off by Tabulator before its formatter runs: they
@@ -11758,15 +11827,27 @@ function create_coordinates(gobj, attrs) {
11758
11827
  * `tableBuilt`, ONE per table (`yui_pending_rows`): a later load
11759
11828
  * replaces it, a clear drops it. Each load used to hang a listener
11760
11829
  * of its own, so two loads before the build drew the rows twice.
11830
+ *
11831
+ * A nested table is not loaded after it is built, as the form's
11832
+ * own tables are (EV_LOAD_TABLE_ROWS): each such load laid it out
11833
+ * twice and redrew it once more, and with a nested table per row
11834
+ * that was most of the time of a load.
11835
+ *
11836
+ * A table selects rows only when a host sets `selectableRows` (true
11837
+ * or a number) in `tabulator_settings`. Tabulator's SelectRow then
11838
+ * toggles a row on its own click, asking `selectableRowsCheck` --
11839
+ * the form's `selectable` -- first. Up to 7.26.44 the form toggled
11840
+ * the row again in `rowClick`, which undid every click. The default
11841
+ * `"highlight"` is left as it is, hover and all.
11761
11842
  ******************************************************************/
11762
- function create_tabulator$1(gobj, $extend, name, template) {
11763
- function get_selectable_state(row) {
11764
- let selectable_rows = tabulator.options.selectableRows;
11765
- return gobj_read_bool_attr(gobj, "selectable") && (selectable_rows === true || typeof selectable_rows === "number");
11766
- }
11843
+ function create_tabulator$1(gobj, $extend, name, template, rows) {
11767
11844
  $extend.template = template;
11768
11845
  let tabulator_settings = json_deep_copy(gobj_read_attr(gobj, "tabulator_settings"));
11769
- Object.assign(tabulator_settings, {});
11846
+ if (is_array(rows) && rows.length > 0) tabulator_settings.data = json_deep_copy(rows);
11847
+ let selectable_rows = tabulator_settings.selectableRows;
11848
+ if (selectable_rows === true || typeof selectable_rows === "number") tabulator_settings.selectableRowsCheck = function() {
11849
+ return gobj_read_bool_attr(gobj, "selectable");
11850
+ };
11770
11851
  let columns = [];
11771
11852
  if (gobj_read_bool_attr(gobj, "with_rownum")) columns.push({
11772
11853
  formatter: "rownum",
@@ -11791,11 +11872,10 @@ function create_tabulator$1(gobj, $extend, name, template) {
11791
11872
  "name": sub_element.name
11792
11873
  }];
11793
11874
  let $extend = createElement2(extend);
11794
- $extend.tabulator = create_tabulator$1(gobj, $extend, sub_element.name, sub_element.template);
11875
+ let rows = data[sub_element.name];
11876
+ $extend.tabulator = create_tabulator$1(gobj, $extend, sub_element.name, sub_element.template, rows);
11795
11877
  $row.appendChild($extend);
11796
11878
  $row.yui_nested.push($extend);
11797
- let rows = data[sub_element.name];
11798
- load_tabulator_data(gobj, $extend, is_array(rows) ? rows : []);
11799
11879
  }
11800
11880
  };
11801
11881
  if (gobj_read_bool_attr(gobj, "with_delete_row_btn")) columns.push({
@@ -11847,11 +11927,9 @@ function create_tabulator$1(gobj, $extend, name, template) {
11847
11927
  });
11848
11928
  tabulator.on("rowClick", function(e, row) {
11849
11929
  e.preventDefault();
11850
- if (get_selectable_state(row)) row.toggleSelect();
11851
11930
  });
11852
11931
  tabulator.on("cellClick", function(e, cell) {
11853
11932
  e.preventDefault();
11854
- cell.getRow();
11855
11933
  });
11856
11934
  return tabulator;
11857
11935
  }
@@ -12280,6 +12358,7 @@ function clear_data(gobj, $form) {
12280
12358
  $form.querySelectorAll(".yui-tabulator-table").forEach(($table) => {
12281
12359
  $table.yui_pending_rows = null;
12282
12360
  if ($table.tabulator.initialized) {
12361
+ close_table_editor($table.tabulator);
12283
12362
  destroy_rows_tables(gobj, $table.tabulator);
12284
12363
  $table.tabulator.clearData();
12285
12364
  }
@@ -78966,6 +79045,8 @@ function render_diagram(gobj) {
78966
79045
  * its own node click, which it publishes from inside G6's dispatch
78967
79046
  * of that click: stopped there, the gobj went from under its own
78968
79047
  * publication and the G6 graph from under its own event.
79048
+ * It is not heard from the moment it leaves: what it published in
79049
+ * that turn reached the editor as the current drawing's.
78969
79050
  ***************************************************************/
78970
79051
  function destroy_diagram(gobj) {
78971
79052
  let priv = gobj.priv;
@@ -78974,6 +79055,7 @@ function destroy_diagram(gobj) {
78974
79055
  priv.diagram_gobj = null;
78975
79056
  let $d = gobj_read_attr(diagram, "$container");
78976
79057
  if ($d && $d.parentNode) $d.parentNode.removeChild($d);
79058
+ gobj_unsubscribe_event(diagram, null, {}, gobj);
78977
79059
  priv.retired_diagrams.push(diagram);
78978
79060
  if (priv.retired_diagrams.length === 1) gobj_post_event(gobj, "EV_DESTROY_DIAGRAMS", {}, gobj);
78979
79061
  }
@@ -85381,6 +85463,6 @@ function setup_json_pad(self) {
85381
85463
  return win;
85382
85464
  }
85383
85465
  //#endregion
85384
- export { EditControl, ICONS_TOPIC, MarkerControl, USER_ICON_PREFIX, YUI_FILE_ACCEPT, YUI_PERIODS, YUI_PERIODS_DEFAULT, YUI_ROLLING, addClasses, apply_dev_traces, attach_clear, build_dev_panel, dev_window_was_open, disableElements, enableElements, epoch_to_local_input, epoch_to_ms, expose_view_container, fmt_epoch, getStrokeColor, infer_period, info_traffic, inject_svg_icons, is_current_period, iso_week, local_input_to_epoch, ms_to_epoch, period_bounds, period_bounds_epoch, period_label, period_name, period_shift, period_spec, period_start, refresh_clear, register_c_g6_nodes_tree, register_c_yui_form, register_c_yui_fsm_graph, register_c_yui_gclass, register_c_yui_gobj_tree_js, register_c_yui_json, register_c_yui_json_graph, register_c_yui_json_pad, register_c_yui_map, register_c_yui_nav, register_c_yui_pager, register_c_yui_period, register_c_yui_schema_editor, register_c_yui_service_view, register_c_yui_shell, register_c_yui_treedb_graph, register_c_yui_treedb_schema, register_c_yui_treedb_topic_with_form, register_c_yui_treedb_topics, register_c_yui_uplot, register_c_yui_window, register_c_yui_window_manager, register_c_yui_wizard, removeChildElements, removeClasses, rolling_bounds, safe_locale, set_active_state, set_cancel_state, set_pressed_state, set_submit_state, setup_dev, setup_frontend_view, setup_json_pad, toggleClasses, yui_array_buffer_to_base64, yui_asset_element, yui_asset_id, yui_asset_ids, yui_asset_missing, yui_asset_src, yui_file_control, yui_file_id_label, yui_file_read, yui_file_sha256, yui_file_size_label, yui_files_manifest, yui_icon_is_defined, yui_icons_list, yui_icons_put_user, yui_icons_remove_user, yui_icons_set_user, yui_is_dark, yui_mount_service_view, yui_shell_close_drawer, yui_shell_close_dropdown, yui_shell_confirm_danger, yui_shell_confirm_ok, yui_shell_confirm_yesno, yui_shell_confirm_yesnocancel, yui_shell_navigate, yui_shell_open_drawer, yui_shell_overlay_dismissed, yui_shell_pop_escape, yui_shell_push_escape, yui_shell_refresh_avatars, yui_shell_register_event_handler, yui_shell_register_overlay, yui_shell_set_avatar_provider, yui_shell_set_connection_state, yui_shell_set_nav_item_badge, yui_shell_set_sub_routes, yui_shell_set_toolbar_item_badge, yui_shell_set_toolbar_item_icon, yui_shell_set_translator, yui_shell_show_error, yui_shell_show_info, yui_shell_show_modal, yui_shell_show_route_map, yui_shell_show_warning, yui_shell_toggle_drawer, yui_shell_unpark_route, yui_svg_icon_element, yui_svg_sanitize, yui_theme_now, yui_toolbar, yui_user_icon_class, yui_watch_theme };
85466
+ export { EditControl, ICONS_TOPIC, MarkerControl, USER_ICON_PREFIX, YUI_FILE_ACCEPT, YUI_PERIODS, YUI_PERIODS_DEFAULT, YUI_ROLLING, addClasses, apply_dev_traces, attach_clear, build_dev_panel, dev_window_was_open, disableElements, enableElements, epoch_to_local_input, epoch_to_ms, expose_view_container, fmt_epoch, getStrokeColor, infer_period, info_traffic, inject_svg_icons, is_current_period, iso_week, local_input_to_epoch, ms_to_epoch, period_bounds, period_bounds_epoch, period_label, period_name, period_shift, period_spec, period_start, refresh_clear, register_c_g6_nodes_tree, register_c_yui_form, register_c_yui_fsm_graph, register_c_yui_gclass, register_c_yui_gobj_tree_js, register_c_yui_json, register_c_yui_json_graph, register_c_yui_json_pad, register_c_yui_map, register_c_yui_nav, register_c_yui_pager, register_c_yui_period, register_c_yui_schema_editor, register_c_yui_service_view, register_c_yui_shell, register_c_yui_treedb_graph, register_c_yui_treedb_schema, register_c_yui_treedb_topic_with_form, register_c_yui_treedb_topics, register_c_yui_uplot, register_c_yui_window, register_c_yui_window_manager, register_c_yui_wizard, removeChildElements, removeClasses, rolling_bounds, safe_locale, set_active_state, set_cancel_state, set_pressed_state, set_submit_state, setup_dev, setup_frontend_view, setup_json_pad, toggleClasses, yui_array_buffer_to_base64, yui_asset_element, yui_asset_id, yui_asset_ids, yui_asset_missing, yui_asset_src, yui_file_control, yui_file_id_label, yui_file_read, yui_file_sha256, yui_file_size_label, yui_files_manifest, yui_icon_is_defined, yui_icons_list, yui_icons_put_user, yui_icons_remove_user, yui_icons_set_user, yui_is_dark, yui_mount_service_view, yui_shell_close_drawer, yui_shell_close_dropdown, yui_shell_confirm_danger, yui_shell_confirm_ok, yui_shell_confirm_yesno, yui_shell_confirm_yesnocancel, yui_shell_escape_order, yui_shell_navigate, yui_shell_open_drawer, yui_shell_overlay_dismissed, yui_shell_pop_escape, yui_shell_push_escape, yui_shell_refresh_avatars, yui_shell_register_event_handler, yui_shell_register_overlay, yui_shell_set_avatar_provider, yui_shell_set_connection_state, yui_shell_set_nav_item_badge, yui_shell_set_sub_routes, yui_shell_set_toolbar_item_badge, yui_shell_set_toolbar_item_icon, yui_shell_set_translator, yui_shell_show_error, yui_shell_show_info, yui_shell_show_modal, yui_shell_show_route_map, yui_shell_show_warning, yui_shell_toggle_drawer, yui_shell_unpark_route, yui_svg_icon_element, yui_svg_sanitize, yui_theme_now, yui_toolbar, yui_user_icon_class, yui_watch_theme };
85385
85467
 
85386
85468
  //# sourceMappingURL=gobj-ui.es.js.map
package/index.js CHANGED
@@ -48,6 +48,7 @@ export {
48
48
  yui_shell_toggle_drawer,
49
49
  yui_shell_push_escape,
50
50
  yui_shell_pop_escape,
51
+ yui_shell_escape_order,
51
52
  yui_shell_set_avatar_provider,
52
53
  yui_shell_refresh_avatars,
53
54
  yui_shell_set_translator,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yuneta/gobj-ui",
3
- "version": "7.26.44",
3
+ "version": "7.26.45",
4
4
  "type": "module",
5
5
  "main": "dist/gobj-ui.cjs.js",
6
6
  "module": "dist/gobj-ui.es.js",
@@ -494,7 +494,10 @@ function main()
494
494
  if(all.length) {
495
495
  console.log(`\ncheck-markup-strings: ${all.length} found ` +
496
496
  `(${Object.entries(by_rule).map(([k, v]) => `${k} ${v}`).join(", ")}) in ${files.length} files`);
497
- process.exit(1);
497
+ /* exitCode, not process.exit(): a long list written to a pipe is
498
+ * still on its way, and up to gobj-ui 7.26.44 it was cut short */
499
+ process.exitCode = 1;
500
+ return;
498
501
  }
499
502
  console.log(`check-markup-strings: OK (${files.length} files)`);
500
503
  }