xmlui 0.9.3 → 0.9.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.
@@ -12,7 +12,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
12
12
  var _executor, _DeferredPromise_instances, decorate_fn, _a2;
13
13
  import { delay as delay$1, HttpResponse, http } from "msw";
14
14
  import { isArray, isObject as isObject$1, mapValues } from "lodash-es";
15
- import { r as runEventHandlerCode, g as getDate, d as delay, m as miscellaneousUtils, a as dateFunctions, o as orderBy, T as ThrowStatementError } from "./index-DHAz4bv_.mjs";
15
+ import { r as runEventHandlerCode, g as getDate, d as delay, m as miscellaneousUtils, a as dateFunctions, o as orderBy, T as ThrowStatementError } from "./index-KP1TDy9n.mjs";
16
16
  import Dexie from "dexie";
17
17
  var POSITIONALS_EXP = /(%?)(%([sdijo]))/g;
18
18
  function serializePositional(positional, flag) {
@@ -2,7 +2,6 @@ var __defProp = Object.defineProperty;
2
2
  var __defNormalProp = (obj, key2, value) => key2 in obj ? __defProp(obj, key2, { enumerable: true, configurable: true, writable: true, value }) : obj[key2] = value;
3
3
  var __publicField = (obj, key2, value) => __defNormalProp(obj, typeof key2 !== "symbol" ? key2 + "" : key2, value);
4
4
  var _a, _b;
5
- import { s as stringify$1, b as stringify$2, z as zwitch, h as htmlVoidElements } from "./index-DHAz4bv_.mjs";
6
5
  let ShikiError$2 = class ShikiError extends Error {
7
6
  constructor(message) {
8
7
  super(message);
@@ -3564,6 +3563,28 @@ var Registry$1 = class Registry {
3564
3563
  }
3565
3564
  };
3566
3565
  var INITIAL = StateStackImpl.NULL;
3566
+ const htmlVoidElements = [
3567
+ "area",
3568
+ "base",
3569
+ "basefont",
3570
+ "bgsound",
3571
+ "br",
3572
+ "col",
3573
+ "command",
3574
+ "embed",
3575
+ "frame",
3576
+ "hr",
3577
+ "image",
3578
+ "img",
3579
+ "input",
3580
+ "keygen",
3581
+ "link",
3582
+ "meta",
3583
+ "param",
3584
+ "source",
3585
+ "track",
3586
+ "wbr"
3587
+ ];
3567
3588
  class Schema {
3568
3589
  /**
3569
3590
  * @param {SchemaType['property']} property
@@ -4748,6 +4769,25 @@ function camelcase($0) {
4748
4769
  }
4749
4770
  const html$2 = merge([aria, html$3, xlink, xmlns, xml], "html");
4750
4771
  const svg = merge([aria, svg$1, xlink, xmlns, xml], "svg");
4772
+ const own$2 = {}.hasOwnProperty;
4773
+ function zwitch(key2, options) {
4774
+ const settings = options || {};
4775
+ function one2(value, ...parameters) {
4776
+ let fn = one2.invalid;
4777
+ const handlers = one2.handlers;
4778
+ if (value && own$2.call(value, key2)) {
4779
+ const id = String(value[key2]);
4780
+ fn = own$2.call(handlers, id) ? handlers[id] : one2.unknown;
4781
+ }
4782
+ if (fn) {
4783
+ return fn.call(this, value, ...parameters);
4784
+ }
4785
+ }
4786
+ one2.handlers = settings.handlers || {};
4787
+ one2.invalid = settings.invalid;
4788
+ one2.unknown = settings.unknown;
4789
+ return one2;
4790
+ }
4751
4791
  const defaultSubsetRegex = /["&'<>`]/g;
4752
4792
  const surrogatePairsRegex = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g;
4753
4793
  const controlCharactersRegex = (
@@ -5256,6 +5296,16 @@ function ccount(value, character) {
5256
5296
  }
5257
5297
  return count;
5258
5298
  }
5299
+ function stringify$2(values, options) {
5300
+ const settings = options || {};
5301
+ const input = values[values.length - 1] === "" ? [...values, ""] : values;
5302
+ return input.join(
5303
+ (settings.padRight ? " " : "") + "," + (settings.padLeft === false ? "" : " ")
5304
+ ).trim();
5305
+ }
5306
+ function stringify$1(values) {
5307
+ return values.join(" ").trim();
5308
+ }
5259
5309
  const re = /[ \t\n\f\r]/g;
5260
5310
  function whitespace(thing) {
5261
5311
  return typeof thing === "object" ? thing.type === "text" ? empty(thing.value) : false : empty(thing);
@@ -5512,7 +5562,7 @@ function serializeAttribute(state, key2, value) {
5512
5562
  })
5513
5563
  );
5514
5564
  if (value === true) return name;
5515
- value = Array.isArray(value) ? (info.commaSeparated ? stringify$1 : stringify$2)(value, {
5565
+ value = Array.isArray(value) ? (info.commaSeparated ? stringify$2 : stringify$1)(value, {
5516
5566
  padLeft: !state.settings.tightCommaSeparatedLists
5517
5567
  }) : String(value);
5518
5568
  if (state.settings.collapseEmptyAttributes && !value) return name;