@nebularstreams/libmui 2.5.107 → 2.5.109

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nebularstreams/libmui",
3
3
  "description": "Micro UI based on Mithril",
4
- "version": "2.5.107",
4
+ "version": "2.5.109",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
7
7
  "scripts": {
@@ -217,8 +217,8 @@ function tokenizeUrl(tokenizedUrl, parameters, options) {
217
217
  }
218
218
 
219
219
  const
220
- REGEX_DOTS = /[^0-9A-Z.-_]+/gi,
221
- REGEX_NODOTS = /[^0-9A-Z-_]+/gi;
220
+ REGEX_DOTS = /[^0-9A-Z._\-]+/gi,
221
+ REGEX_NODOTS = /[^0-9A-Z_\-]+/gi;
222
222
 
223
223
  function sanitizeFilename(filename, withDots = true) {
224
224
  // EDGE CASE -> NO DOT AT THE END
@@ -629,7 +629,7 @@ const
629
629
  global,
630
630
  value: rawValue, // metaDef.values ? metaDef.values[parameters[metaKey].id] : parameters[metaKey],
631
631
  confirm: metaDef.confirm,
632
- class: "grows font-125 " + (metaDef.containerClass || "scaff scaff-b1"),
632
+ class: "grows " + (metaDef.containerClass || "scaff scaff-b1"),
633
633
  buttonClass: (metaDef.buttonClass || "unitheight scaff-left"),
634
634
  readonly: metaDef.readOnly,
635
635
  closeClass: metaDef.closeClass,
@@ -777,7 +777,7 @@ const
777
777
  class: "grows " + (metaDef.class || "accentbutton unitheight"),
778
778
  text: metaDef.label === ""
779
779
  ? null
780
- : metaDef.label || metaDef.text || metaKey,
780
+ : metaDef.parse ? metaDef.parse(targetParameters, auxParameters) : metaDef.label || metaDef.text || metaKey,
781
781
  icon: metaDef.icon,
782
782
  title: metaDef.title || metaDef.hint,
783
783
  onClick: (e) => {