xmlui 0.7.17 → 0.7.18

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.
Files changed (41) hide show
  1. package/dist/{apiInterceptorWorker-DkEyFV8g.mjs → apiInterceptorWorker-CXfI_qcP.mjs} +1 -1
  2. package/dist/{grammar.tmLanguage-Qpdanc5_.mjs → grammar.tmLanguage-69iP6c5d.mjs} +23 -9
  3. package/dist/{index-BiwoF6JS.mjs → index-B6CaX0jY.mjs} +10377 -12573
  4. package/dist/scripts/package.json +1 -1
  5. package/dist/scripts/src/components/AppHeader/AppHeader.js +2 -2
  6. package/dist/scripts/src/components/AppState/AppState.js +4 -0
  7. package/dist/scripts/src/components/Carousel/Carousel.js +7 -4
  8. package/dist/scripts/src/components/Carousel/CarouselContext.js +48 -0
  9. package/dist/scripts/src/components/Carousel/CarouselItem.js +1 -4
  10. package/dist/scripts/src/components/Carousel/CarouselItemNative.js +18 -8
  11. package/dist/scripts/src/components/Carousel/CarouselNative.js +20 -11
  12. package/dist/scripts/src/components/ComponentProvider.js +0 -4
  13. package/dist/scripts/src/components/Markdown/Markdown.js +11 -2
  14. package/dist/scripts/src/components/NumberBox/NumberBoxNative.js +1 -1
  15. package/dist/scripts/src/components/{slot-helpers.js → SlotItem.js} +9 -0
  16. package/dist/scripts/src/components/Tabs/TabContext.js +5 -1
  17. package/dist/scripts/src/components/Tabs/TabItem.js +1 -1
  18. package/dist/scripts/src/components/Tabs/TabItemNative.js +11 -5
  19. package/dist/scripts/src/components/Tabs/TabsNative.js +21 -10
  20. package/dist/scripts/src/components/Text/Text.js +3 -2
  21. package/dist/scripts/src/components/Text/TextNative.js +4 -84
  22. package/dist/scripts/src/components/TextBox/TextBoxNative.js +1 -4
  23. package/dist/scripts/src/components/Toggle/Toggle.js +2 -3
  24. package/dist/scripts/src/components/abstractions.js +158 -19
  25. package/dist/scripts/src/components-core/ComponentBed.js +83 -78
  26. package/dist/scripts/src/components-core/CompoundComponent.js +2 -1
  27. package/dist/scripts/src/components-core/appContext/misc-utils.js +1 -0
  28. package/dist/scripts/src/components-core/container/Container.js +43 -21
  29. package/dist/scripts/src/components-core/event-handlers.js +43 -0
  30. package/dist/scripts/src/components-core/utils/misc.js +7 -0
  31. package/dist/scripts/src/parsers/xmlui-parser/ParserError.js +39 -41
  32. package/dist/scripts/src/parsers/xmlui-parser/transform.js +42 -20
  33. package/dist/scripts/src/syntax/grammar.tmLanguage.json +17 -11
  34. package/dist/xmlui-metadata.mjs +2032 -1956
  35. package/dist/xmlui-metadata.umd.js +16 -16
  36. package/dist/xmlui-standalone.umd.js +149 -149
  37. package/dist/xmlui.d.ts +3 -2
  38. package/dist/xmlui.mjs +1 -1
  39. package/package.json +1 -1
  40. package/dist/scripts/src/components/Animation/Animation.js +0 -59
  41. package/dist/scripts/src/components/Animation/AnimationNative.js +0 -75
@@ -7,7 +7,7 @@ var U = (e, t, r) => Lr(e, typeof t != "symbol" ? t + "" : t, r), ve = (e, t, r)
7
7
  var Q = (e, t, r) => (ve(e, t, "read from private field"), r ? r.call(e) : t.get(e)), we = (e, t, r) => t.has(e) ? Be("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), Ve = (e, t, r, s) => (ve(e, t, "write to private field"), s ? s.call(e, r) : t.set(e, r), r), ie = (e, t, r) => (ve(e, t, "access private method"), r);
8
8
  import { isArray as It, isObject as Nt, mapValues as Sr } from "lodash-es";
9
9
  import { delay as Dr, HttpResponse as K, http as Cr } from "msw";
10
- import { r as Mr, d as qr, m as $r, a as Ur, g as jr, o as Ee, T as Fr } from "./index-BiwoF6JS.mjs";
10
+ import { r as Mr, d as qr, m as $r, a as Ur, g as jr, o as Ee, T as Fr } from "./index-B6CaX0jY.mjs";
11
11
  import We from "dexie";
12
12
  var Br = /(%?)(%([sdijo]))/g;
13
13
  function Vr(e, t) {
@@ -518,16 +518,19 @@ const e = "xmlui", n = "source.xmlui", t = [
518
518
  attribute: {
519
519
  patterns: [
520
520
  {
521
- begin: "(?:^|\\s+)([a-zA-Z$_][-\\w.$]*(?::[a-zA-Z$_][-\\w.$]*)?)(\\s*=\\s*)(['\"`])",
522
- end: "\\3",
521
+ begin: "(?:^|\\s+)((?:[a-zA-Z$_][-\\w.$]*:)?)([a-zA-Z$_][-\\w.$]*)(\\s*=\\s*)(['\"`])",
522
+ end: "\\4",
523
523
  beginCaptures: {
524
524
  1: {
525
- name: "entity.other.attribute-name.localname.xmlui"
525
+ name: "keyword.operator.namespace.xmlui"
526
526
  },
527
527
  2: {
528
- name: "keyword.operator.xmlui"
528
+ name: "entity.other.attribute-name.localname.xmlui"
529
529
  },
530
530
  3: {
531
+ name: "keyword.operator.xmlui"
532
+ },
533
+ 4: {
531
534
  name: "string.xmlui"
532
535
  }
533
536
  },
@@ -544,22 +547,33 @@ const e = "xmlui", n = "source.xmlui", t = [
544
547
  ]
545
548
  },
546
549
  {
547
- match: "(?:^|\\s+)([a-zA-Z$_][-\\w.$]*(?::[a-zA-Z$_][-\\w.$]*)?)(\\s*=\\s*)([a-zA-Z$_][-\\w.$]*)",
550
+ match: "(?:^|\\s+)((?:[a-zA-Z$_][-\\w.$]*:)?)([a-zA-Z$_][-\\w.$]*)(\\s*=\\s*)([a-zA-Z$_][-\\w.$]*)",
548
551
  captures: {
549
552
  1: {
550
- name: "entity.other.attribute-name.localname.xmlui"
553
+ name: "keyword.operator.namespace.xmlui"
551
554
  },
552
555
  2: {
553
- name: "keyword.operator.xmlui"
556
+ name: "entity.other.attribute-name.localname.xmlui"
554
557
  },
555
558
  3: {
559
+ name: "keyword.operator.xmlui"
560
+ },
561
+ 4: {
556
562
  name: "string.xmlui"
557
563
  }
558
564
  }
559
565
  },
560
566
  {
561
- match: "([a-zA-Z$_][-\\w.$]*(?::[a-zA-Z$_][-\\w.$]*)?)",
562
- name: "entity.other.attribute-name.localname.xmlui"
567
+ match: "(?:^|\\s+)((?:[a-zA-Z$_][-\\w.$]*:)?)([a-zA-Z$_][-\\w.$]*)",
568
+ name: "entity.other.attribute-name.localname.xmlui",
569
+ captures: {
570
+ 1: {
571
+ name: "keyword.operator.namespace.xmlui"
572
+ },
573
+ 2: {
574
+ name: "entity.other.attribute-name.localname.xmlui"
575
+ }
576
+ }
563
577
  }
564
578
  ]
565
579
  },