@vonage/vivid 5.9.0 → 5.10.0

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 (113) hide show
  1. package/bundled/affix.js +1 -1
  2. package/bundled/anchored.cjs +1 -1
  3. package/bundled/anchored.js +6 -6
  4. package/bundled/definition10.js +4 -4
  5. package/bundled/definition7.js +3 -3
  6. package/bundled/host-semantics.js +4 -4
  7. package/bundled/localized.cjs +1 -1
  8. package/bundled/localized.js +14 -12
  9. package/bundled/mixins.cjs +2 -2
  10. package/bundled/mixins.js +6 -6
  11. package/bundled/{feature.cjs → slottable-request.cjs} +3 -3
  12. package/bundled/{feature.js → slottable-request.js} +63 -42
  13. package/bundled/vivid-element.cjs +1 -1
  14. package/bundled/vivid-element.js +1 -1
  15. package/card/definition.cjs +1 -1
  16. package/card/definition.js +1 -1
  17. package/card/index.cjs +10 -10
  18. package/card/index.js +42 -42
  19. package/country/definition.cjs +340 -0
  20. package/country/definition.js +334 -0
  21. package/country/index.cjs +12 -0
  22. package/country/index.js +317 -0
  23. package/custom-elements.json +12745 -9921
  24. package/index.cjs +26 -14
  25. package/index.js +4 -2
  26. package/lib/components.d.ts +3 -1
  27. package/lib/country/countries-data.d.ts +6 -0
  28. package/lib/country/country-code-to-flag-icon.d.ts +5 -0
  29. package/lib/country/country.d.ts +5 -0
  30. package/lib/country/country.template.d.ts +3 -0
  31. package/lib/country/definition.d.ts +3 -0
  32. package/lib/rich-text-editor/locale.d.ts +2 -0
  33. package/lib/rich-text-editor/popover.d.ts +1 -0
  34. package/lib/rich-text-editor/rte/config.d.ts +2 -1
  35. package/lib/rich-text-editor/rte/exports.d.ts +4 -0
  36. package/lib/rich-text-editor/rte/feature.d.ts +7 -1
  37. package/lib/rich-text-editor/rte/features/internal/basic-text-blocks.d.ts +1 -1
  38. package/lib/rich-text-editor/rte/features/internal/foreign-html.d.ts +1 -1
  39. package/lib/rich-text-editor/rte/features/internal/history.d.ts +1 -1
  40. package/lib/rich-text-editor/rte/features/internal/input-rules.d.ts +15 -0
  41. package/lib/rich-text-editor/rte/instance.d.ts +4 -2
  42. package/lib/rich-text-editor/rte/utils/feature-state.d.ts +8 -0
  43. package/lib/rich-text-editor/rte/utils/text-before-cursor.d.ts +2 -0
  44. package/lib/rich-text-editor/rte/utils/ui.d.ts +2 -0
  45. package/lib/rich-text-editor/rte/view.d.ts +2 -2
  46. package/lib/rich-text-view/definition.d.ts +1 -0
  47. package/lib/rich-text-view/rich-text-view.d.ts +4 -0
  48. package/lib/selectable-box/selectable-box.d.ts +1 -0
  49. package/lib/status/definition.d.ts +4 -0
  50. package/lib/status/status.d.ts +388 -0
  51. package/lib/status/status.template.d.ts +3 -0
  52. package/lib/{data-table → table}/definition.d.ts +1 -1
  53. package/lib/tag/tag.d.ts +1 -1
  54. package/lib/tag-name-map.d.ts +3 -1
  55. package/locales/de-DE.cjs +3 -1
  56. package/locales/de-DE.js +3 -1
  57. package/locales/en-GB.cjs +3 -1
  58. package/locales/en-GB.js +3 -1
  59. package/locales/en-US.cjs +3 -1
  60. package/locales/en-US.js +3 -1
  61. package/locales/ja-JP.cjs +3 -1
  62. package/locales/ja-JP.js +3 -1
  63. package/locales/zh-CN.cjs +3 -1
  64. package/locales/zh-CN.js +3 -1
  65. package/package.json +8 -7
  66. package/rich-text-editor/definition.cjs +3217 -2195
  67. package/rich-text-editor/definition.js +3074 -2056
  68. package/rich-text-editor/index.cjs +20 -19
  69. package/rich-text-editor/index.js +3834 -3082
  70. package/rich-text-view/definition.cjs +30 -18
  71. package/rich-text-view/definition.js +22 -10
  72. package/rich-text-view/index.cjs +1 -1
  73. package/rich-text-view/index.js +46 -38
  74. package/selectable-box/definition.cjs +16 -5
  75. package/selectable-box/definition.js +16 -5
  76. package/selectable-box/index.cjs +11 -9
  77. package/selectable-box/index.js +86 -78
  78. package/shared/utils/slottable-request.d.ts +7 -0
  79. package/status/definition.cjs +76 -0
  80. package/status/definition.js +70 -0
  81. package/status/index.cjs +11 -0
  82. package/status/index.js +55 -0
  83. package/styles/core/all.css +2 -2
  84. package/styles/core/theme.css +2 -2
  85. package/styles/core/typography.css +1 -1
  86. package/styles/tokens/theme-dark.css +4 -4
  87. package/styles/tokens/theme-light.css +4 -4
  88. package/styles/tokens/vivid-2-compat.css +1 -1
  89. package/{data-table → table}/definition.cjs +21 -57
  90. package/{data-table → table}/definition.js +21 -57
  91. package/{data-table → table}/index.cjs +8 -8
  92. package/{data-table → table}/index.js +43 -79
  93. package/tag/definition.cjs +1 -1
  94. package/tag/definition.js +1 -1
  95. package/tag/index.cjs +24 -24
  96. package/tag/index.js +89 -89
  97. package/unbundled/{feature.cjs → slottable-request.cjs} +24 -0
  98. package/unbundled/{feature.js → slottable-request.js} +23 -1
  99. package/unbundled/vivid-element.cjs +1 -1
  100. package/unbundled/vivid-element.js +1 -1
  101. package/vivid.api.json +505 -26
  102. /package/lib/{data-table → table}/table-body.d.ts +0 -0
  103. /package/lib/{data-table → table}/table-body.template.d.ts +0 -0
  104. /package/lib/{data-table → table}/table-cell.d.ts +0 -0
  105. /package/lib/{data-table → table}/table-cell.template.d.ts +0 -0
  106. /package/lib/{data-table → table}/table-head.d.ts +0 -0
  107. /package/lib/{data-table → table}/table-head.template.d.ts +0 -0
  108. /package/lib/{data-table → table}/table-header-cell.d.ts +0 -0
  109. /package/lib/{data-table → table}/table-header-cell.template.d.ts +0 -0
  110. /package/lib/{data-table → table}/table-row.d.ts +0 -0
  111. /package/lib/{data-table → table}/table-row.template.d.ts +0 -0
  112. /package/lib/{data-table → table}/table.d.ts +0 -0
  113. /package/lib/{data-table → table}/table.template.d.ts +0 -0
@@ -1,136 +1,144 @@
1
1
  import { C as h, c as u } from "../bundled/definition8.js";
2
- import { R as x, a as _ } from "../bundled/definition18.js";
3
- import { V as m, a as c, h as n, c as k, d as g } from "../bundled/vivid-element.js";
2
+ import { R as _, a as x } from "../bundled/definition18.js";
3
+ import { V as m, a as r, h as i, c as k, d as g } from "../bundled/vivid-element.js";
4
4
  import { D as $, d as p } from "../bundled/delegates-aria.js";
5
- import { C as i } from "../bundled/enums.js";
5
+ import { C as s } from "../bundled/enums.js";
6
6
  import { w as v } from "../bundled/when.js";
7
7
  import { c as y } from "../bundled/class-names.js";
8
- const C = ":host{display:flex}.base.connotation-cta{--_connotation-color-firm-all: var(--vvd-selectable-box-cta-firm-all, var(--vvd-color-cta-600));--_connotation-color-pale: var(--vvd-selectable-box-cta-pale, var(--vvd-color-cta-300));--_connotation-color-fierce: var(--vvd-selectable-box-cta-fierce, var(--vvd-color-cta-700));--_connotation-color-faint: var(--vvd-selectable-box-cta-faint, var(--vvd-color-cta-50));--_connotation-color-soft: var(--vvd-selectable-box-cta-soft, var(--vvd-color-cta-100))}.base:not(.connotation-cta){--_connotation-color-firm-all: var(--vvd-selectable-box-accent-firm-all, var(--vvd-color-neutral-600));--_connotation-color-pale: var(--vvd-selectable-box-accent-pale, var(--vvd-color-neutral-300));--_connotation-color-fierce: var(--vvd-selectable-box-accent-fierce, var(--vvd-color-neutral-700));--_connotation-color-faint: var(--vvd-selectable-box-accent-faint, var(--vvd-color-neutral-50));--_connotation-color-soft: var(--vvd-selectable-box-accent-soft, var(--vvd-color-neutral-100))}.base{--_appearance-color-text: var(--_connotation-color-firm-all);--_appearance-color-fill: transparent;--_appearance-color-outline: var(--_connotation-color-pale)}@media (hover: hover){.base:hover:where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--_connotation-color-firm-all);--_appearance-color-fill: transparent;--_appearance-color-outline: var(--_connotation-color-firm-all)}}.base.hover:where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--_connotation-color-firm-all);--_appearance-color-fill: transparent;--_appearance-color-outline: var(--_connotation-color-firm-all)}.base.selected:where(:not(.disabled,:disabled)){--_appearance-color-text: var(--_connotation-color-firm-all);--_appearance-color-fill: var(--_connotation-color-soft);--_appearance-color-outline: var(--_connotation-color-pale)}@media (hover: hover){.base.selected:hover:where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--_connotation-color-firm-all);--_appearance-color-fill: var(--_connotation-color-faint);--_appearance-color-outline: var(--_connotation-color-firm-all)}}.base.selected.hover:where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--_connotation-color-firm-all);--_appearance-color-fill: var(--_connotation-color-faint);--_appearance-color-outline: var(--_connotation-color-firm-all)}.base{--control-offset: calc(var(--selectable-box-spacing, 16px) + 36px)}.base{position:relative;padding:var(--selectable-box-spacing, 16px);border:1px solid var(--_appearance-color-outline);border-radius:8px;background-color:var(--_appearance-color-fill);inline-size:100%;text-align:start}.base.control-placement-end-stacked,.base.control-placement-start-stacked{padding-block-start:var(--control-offset)}.base.control-placement-start{padding-inline-start:var(--control-offset)}.base.control-placement-end{padding-inline-end:var(--control-offset)}.base:focus-visible{--focus-stroke-gap-color: transparent;box-shadow:0 0 0 4px color-mix(in srgb,var(--focus-stroke-color, var(--vvd-color-cta-500)),transparent 85%),inset 0 0 0 3px var(--focus-stroke-gap-color, currentColor);outline:1px solid var(--focus-stroke-color, var(--vvd-color-cta-500));outline-offset:calc(-1px - var(--focus-inset, 0px))}.base.tight{overflow:hidden;min-height:calc(var(--selectable-box-spacing, 16px) * 2 + 22px);padding:0}.base.selected{background-color:var(--selectable-box-checked-bg, var(--_appearance-color-fill))}.base.clickable{cursor:pointer}.control{position:absolute;inset-block-start:var(--selectable-box-spacing, 16px)}.control.start-stacked,.control.start{inset-inline-start:var(--selectable-box-spacing, 16px)}.control.end-stacked,.control.end{inset-inline-end:var(--selectable-box-spacing, 16px)}";
9
- var B = Object.defineProperty, r = (a, e, o, s) => {
10
- for (var t = void 0, d = a.length - 1, b; d >= 0; d--)
11
- (b = a[d]) && (t = b(e, o, t) || t);
12
- return t && B(e, o, t), t;
8
+ const B = ":host{display:flex}.base.connotation-cta{--_connotation-color-firm-all: var(--vvd-selectable-box-cta-firm-all, var(--vvd-color-cta-600));--_connotation-color-pale: var(--vvd-selectable-box-cta-pale, var(--vvd-color-cta-300));--_connotation-color-fierce: var(--vvd-selectable-box-cta-fierce, var(--vvd-color-cta-700));--_connotation-color-faint: var(--vvd-selectable-box-cta-faint, var(--vvd-color-cta-50));--_connotation-color-soft: var(--vvd-selectable-box-cta-soft, var(--vvd-color-cta-100))}.base:not(.connotation-cta){--_connotation-color-firm-all: var(--vvd-selectable-box-accent-firm-all, var(--vvd-color-neutral-600));--_connotation-color-pale: var(--vvd-selectable-box-accent-pale, var(--vvd-color-neutral-300));--_connotation-color-fierce: var(--vvd-selectable-box-accent-fierce, var(--vvd-color-neutral-700));--_connotation-color-faint: var(--vvd-selectable-box-accent-faint, var(--vvd-color-neutral-50));--_connotation-color-soft: var(--vvd-selectable-box-accent-soft, var(--vvd-color-neutral-100))}.base{--_appearance-color-text: var(--_connotation-color-firm-all);--_appearance-color-fill: transparent;--_appearance-color-outline: var(--_connotation-color-pale)}@media (hover: hover){.base:hover:where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--_connotation-color-firm-all);--_appearance-color-fill: transparent;--_appearance-color-outline: var(--_connotation-color-firm-all)}}.base.hover:where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--_connotation-color-firm-all);--_appearance-color-fill: transparent;--_appearance-color-outline: var(--_connotation-color-firm-all)}.base.selected:where(:not(.disabled,:disabled)){--_appearance-color-text: var(--_connotation-color-firm-all);--_appearance-color-fill: var(--_connotation-color-soft);--_appearance-color-outline: var(--_connotation-color-pale)}@media (hover: hover){.base.selected:hover:where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--_connotation-color-firm-all);--_appearance-color-fill: var(--_connotation-color-faint);--_appearance-color-outline: var(--_connotation-color-firm-all)}}.base.selected.hover:where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--_connotation-color-firm-all);--_appearance-color-fill: var(--_connotation-color-faint);--_appearance-color-outline: var(--_connotation-color-firm-all)}.base:disabled{--_appearance-color-text: var(--vvd-color-neutral-300);--_appearance-color-fill: transparent;--_appearance-color-outline: var(--vvd-color-neutral-100)}.base.disabled{--_appearance-color-text: var(--vvd-color-neutral-300);--_appearance-color-fill: transparent;--_appearance-color-outline: var(--vvd-color-neutral-100)}.base{--control-offset: calc(var(--selectable-box-spacing, 16px) + 36px)}.base{position:relative;padding:var(--selectable-box-spacing, 16px);border:1px solid var(--_appearance-color-outline);border-radius:8px;background-color:var(--_appearance-color-fill);inline-size:100%;text-align:start}.base.control-placement-end-stacked,.base.control-placement-start-stacked{padding-block-start:var(--control-offset)}.base.control-placement-start{padding-inline-start:var(--control-offset)}.base.control-placement-end{padding-inline-end:var(--control-offset)}.base:focus-visible{--focus-stroke-gap-color: transparent;box-shadow:0 0 0 4px color-mix(in srgb,var(--focus-stroke-color, var(--vvd-color-cta-500)),transparent 85%),inset 0 0 0 3px var(--focus-stroke-gap-color, currentColor);outline:1px solid var(--focus-stroke-color, var(--vvd-color-cta-500));outline-offset:calc(-1px - var(--focus-inset, 0px))}.base.tight{overflow:hidden;min-height:calc(var(--selectable-box-spacing, 16px) * 2 + 22px);padding:0}.base.selected{background-color:var(--selectable-box-checked-bg, var(--_appearance-color-fill))}.base.clickable{cursor:pointer}.control{position:absolute;inset-block-start:var(--selectable-box-spacing, 16px)}.control.start-stacked,.control.start{inset-inline-start:var(--selectable-box-spacing, 16px)}.control.end-stacked,.control.end{inset-inline-end:var(--selectable-box-spacing, 16px)}";
9
+ var C = Object.defineProperty, c = (a, o, e, d) => {
10
+ for (var l = void 0, n = a.length - 1, b; n >= 0; n--)
11
+ (b = a[n]) && (l = b(o, e, l) || l);
12
+ return l && C(o, e, l), l;
13
13
  };
14
- class l extends $(m) {
14
+ class t extends $(m) {
15
15
  constructor() {
16
- super(...arguments), this.checked = !1, this.clickableBox = !1, this.controlPlacement = "end-stacked", this.tight = !1;
16
+ super(...arguments), this.checked = !1, this.clickableBox = !1, this.controlPlacement = "end-stacked", this.tight = !1, this.disabled = !1;
17
17
  }
18
18
  /**
19
19
  * @internal
20
20
  */
21
21
  _handleCheckedChange() {
22
- this.controlType === "radio" && this.checked || (this.checked = !this.checked, this.clickableBox && this.$emit("change"));
22
+ this.disabled || this.controlType === "radio" && this.checked || (this.checked = !this.checked, this.clickableBox && this.$emit("change"));
23
23
  }
24
24
  /**
25
25
  * @internal
26
26
  */
27
- _handleKeydown(e) {
28
- return (e.code === "Space" || e.code === "Enter") && this.clickableBox ? this._handleCheckedChange() : !0;
27
+ _handleKeydown(o) {
28
+ return this.disabled ? !0 : (o.code === "Space" || o.code === "Enter") && this.clickableBox ? this._handleCheckedChange() : !0;
29
29
  }
30
30
  }
31
- r([
32
- c({ mode: "boolean" })
33
- ], l.prototype, "checked");
34
- r([
35
- c({ attribute: "clickable-box", mode: "boolean" })
36
- ], l.prototype, "clickableBox");
37
- r([
38
- c
39
- ], l.prototype, "connotation");
40
- r([
41
- c({ attribute: "control-type" })
42
- ], l.prototype, "controlType");
43
- r([
44
- c({ attribute: "control-placement", mode: "fromView" })
45
- ], l.prototype, "controlPlacement");
46
- r([
47
- c({ mode: "boolean" })
48
- ], l.prototype, "tight");
31
+ c([
32
+ r({ mode: "boolean" })
33
+ ], t.prototype, "checked");
34
+ c([
35
+ r({ attribute: "clickable-box", mode: "boolean" })
36
+ ], t.prototype, "clickableBox");
37
+ c([
38
+ r
39
+ ], t.prototype, "connotation");
40
+ c([
41
+ r({ attribute: "control-type" })
42
+ ], t.prototype, "controlType");
43
+ c([
44
+ r({ attribute: "control-placement", mode: "fromView" })
45
+ ], t.prototype, "controlPlacement");
46
+ c([
47
+ r({ mode: "boolean" })
48
+ ], t.prototype, "tight");
49
+ c([
50
+ r({ mode: "boolean" })
51
+ ], t.prototype, "disabled");
49
52
  const w = ({
50
53
  connotation: a,
51
- tight: e,
52
- checked: o,
53
- clickableBox: s,
54
- controlPlacement: t
54
+ tight: o,
55
+ checked: e,
56
+ clickableBox: d,
57
+ controlPlacement: l,
58
+ disabled: n
55
59
  }) => y(
56
60
  "base",
57
61
  [`connotation-${a}`, !!a],
58
- ["tight", e],
59
- ["selected", o],
60
- ["clickable", s],
61
- ["readonly", !s],
62
- [`control-placement-${t}`, !!t]
62
+ ["tight", o],
63
+ ["selected", e],
64
+ ["clickable", d],
65
+ ["readonly", !d],
66
+ [`control-placement-${l}`, !!l],
67
+ ["disabled", n]
63
68
  );
64
69
  function f(a) {
65
70
  a.clickableBox || a._handleCheckedChange();
66
71
  }
67
72
  function T(a) {
68
- const e = a.tagFor(h);
69
- return n`${v(
70
- (o) => o.controlType !== "radio",
71
- n`
72
- <${e}
73
+ const o = a.tagFor(h);
74
+ return i`${v(
75
+ (e) => e.controlType !== "radio",
76
+ i`
77
+ <${o}
73
78
  ${p(
74
79
  {
75
- ariaLabel: (o) => !o.clickableBox && o.ariaLabel ? o.ariaLabel : null
80
+ ariaLabel: (e) => !e.clickableBox && e.ariaLabel ? e.ariaLabel : null
76
81
  },
77
82
  { onlySpecified: !0 }
78
83
  )}
79
- @change="${(o) => f(o)}"
80
- class="control checkbox ${(o) => o.controlPlacement}"
81
- connotation="${(o) => o.connotation === "cta" ? i.CTA : i.Accent}"
82
- :checked="${(o) => o.checked}"
83
- inert="${(o) => o.clickableBox ? !0 : null}"
84
- ></${e}>`
84
+ @change="${(e) => f(e)}"
85
+ class="control checkbox ${(e) => e.controlPlacement}"
86
+ connotation="${(e) => e.connotation === "cta" ? s.CTA : s.Accent}"
87
+ :checked="${(e) => e.checked}"
88
+ ?disabled="${(e) => e.disabled}"
89
+ inert="${(e) => e.clickableBox ? !0 : null}"
90
+ ></${o}>`
85
91
  )} `;
86
92
  }
87
93
  function L(a) {
88
- const e = a.tagFor(x);
89
- return n`${v(
90
- (o) => o.controlType === "radio",
91
- n`
92
- <${e}
94
+ const o = a.tagFor(_);
95
+ return i`${v(
96
+ (e) => e.controlType === "radio",
97
+ i`
98
+ <${o}
93
99
  ${p(
94
100
  {
95
- ariaLabel: (o) => !o.clickableBox && o.ariaLabel ? o.ariaLabel : null
101
+ ariaLabel: (e) => !e.clickableBox && e.ariaLabel ? e.ariaLabel : null
96
102
  },
97
103
  { onlySpecified: !0 }
98
104
  )}
99
- @change="${(o) => f(o)}"
100
- class="control radio ${(o) => o.controlPlacement}"
101
- connotation="${(o) => o.connotation === "cta" ? i.CTA : i.Accent}"
102
- :checked="${(o) => o.checked}"
103
- inert="${(o) => o.clickableBox ? !0 : null}"
104
- ></${e}>`
105
+ @change="${(e) => f(e)}"
106
+ class="control radio ${(e) => e.controlPlacement}"
107
+ connotation="${(e) => e.connotation === "cta" ? s.CTA : s.Accent}"
108
+ :checked="${(e) => e.checked}"
109
+ ?disabled="${(e) => e.disabled}"
110
+ inert="${(e) => e.clickableBox ? !0 : null}"
111
+ ></${o}>`
105
112
  )} `;
106
113
  }
107
- const A = (a) => n`<template>
114
+ const A = (a) => i`<template>
108
115
  <div
109
116
  class="${w}"
110
- tabindex="${(e) => e.clickableBox ? "0" : null}"
117
+ tabindex="${(o) => o.clickableBox && !o.disabled ? "0" : null}"
111
118
  ${p({
112
- role: (e) => e.clickableBox ? "button" : null,
113
- ariaPressed: (e) => e.clickableBox ? e.checked ? "true" : "false" : null,
114
- ariaLabel: (e) => e.clickableBox ? e.ariaLabel : null
119
+ role: (o) => o.clickableBox ? "button" : null,
120
+ ariaPressed: (o) => o.clickableBox ? o.checked ? "true" : "false" : null,
121
+ ariaLabel: (o) => o.clickableBox ? o.ariaLabel : null,
122
+ ariaDisabled: (o) => o.clickableBox && o.disabled ? "true" : null
115
123
  })}
116
- @keydown="${(e, o) => e._handleKeydown(o.event)}"
117
- @click="${(e) => e.clickableBox ? e._handleCheckedChange() : null}"
124
+ @keydown="${(o, e) => o._handleKeydown(e.event)}"
125
+ @click="${(o) => o.clickableBox ? o._handleCheckedChange() : null}"
118
126
  >
119
127
  ${T(a)} ${L(a)}
120
128
  <slot></slot>
121
129
  </div>
122
- </template>`, P = g(
130
+ </template>`, D = g(
123
131
  "selectable-box",
124
- l,
132
+ t,
125
133
  A,
126
- [u, _],
134
+ [u, x],
127
135
  {
128
- styles: C,
136
+ styles: B,
129
137
  shadowOptions: {
130
138
  delegatesFocus: !0
131
139
  }
132
140
  }
133
- ), S = k(
134
- P
141
+ ), P = k(
142
+ D
135
143
  );
136
- S();
144
+ P();
@@ -0,0 +1,7 @@
1
+ export declare const removeSymbol: unique symbol;
2
+ export interface SlottableRequestEvent<T = unknown> extends Event {
3
+ readonly data: T | typeof removeSymbol;
4
+ readonly name: string;
5
+ readonly slotName: string;
6
+ }
7
+ export declare function dispatchSlottableRequest<T>(target: EventTarget, name: string, slotName: string, data: T | typeof removeSymbol): void;
@@ -0,0 +1,76 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
+
5
+ const icon_definition = require('../icon/definition.cjs');
6
+ const vividElement = require('../unbundled/vivid-element.cjs');
7
+ const fastElement = require('@microsoft/fast-element');
8
+ const affix = require('../unbundled/affix.cjs');
9
+ const fastWebUtilities = require('@microsoft/fast-web-utilities');
10
+ const enums = require('../unbundled/enums.cjs');
11
+
12
+ const styles = ".base.connotation-information{--_connotation-color-intermediate: var(--vvd-status-information-intermediate, var(--vvd-color-information-500));--_connotation-color-faint: var(--vvd-status-information-faint, var(--vvd-color-information-50));--_connotation-color-fierce: var(--vvd-status-information-fierce, var(--vvd-color-information-700))}.base.connotation-warning{--_connotation-color-intermediate: var(--vvd-status-warning-intermediate, var(--vvd-color-warning-300));--_connotation-color-faint: var(--vvd-status-warning-faint, var(--vvd-color-warning-50));--_connotation-color-fierce: var(--vvd-status-warning-fierce, var(--vvd-color-warning-700))}.base.connotation-alert{--_connotation-color-intermediate: var(--vvd-status-alert-intermediate, var(--vvd-color-alert-500));--_connotation-color-faint: var(--vvd-status-alert-faint, var(--vvd-color-alert-50));--_connotation-color-fierce: var(--vvd-status-alert-fierce, var(--vvd-color-alert-700))}.base:not(.connotation-information,.connotation-warning,.connotation-alert){--_connotation-color-intermediate: var(--vvd-status-success-intermediate, var(--vvd-color-success-500));--_connotation-color-faint: var(--vvd-status-success-faint, var(--vvd-color-success-50));--_connotation-color-fierce: var(--vvd-status-success-fierce, var(--vvd-color-success-700))}.base{--_appearance-color-text: var(--_connotation-color-fierce);--_appearance-color-fill: var(--_connotation-color-faint);--_appearance-color-outline: var(--_connotation-color-intermediate)}.base{display:inline-flex;align-items:center;column-gap:8px}slot[name=icon],.icon{color:var(--_appearance-color-outline);font-size:calc(1px*(20 + 4*clamp(-1,var(--vvd-size-density, 0),2))*.8)}.text{display:flex;min-width:0;flex-direction:column;flex-grow:1;align-items:flex-start;justify-content:center;gap:4px;text-align:start}.headline{color:var(--_appearance-color-outline);font:var(--vvd-typography-base-condensed-bold)}.description{color:var(--vvd-color-neutral-600);font:var(--vvd-typography-base-condensed)}";
13
+
14
+ var __defProp = Object.defineProperty;
15
+ var __decorateClass = (decorators, target, key, kind) => {
16
+ var result = void 0 ;
17
+ for (var i = decorators.length - 1, decorator; i >= 0; i--)
18
+ if (decorator = decorators[i])
19
+ result = (decorator(target, key, result) ) || result;
20
+ if (result) __defProp(target, key, result);
21
+ return result;
22
+ };
23
+ class Status extends affix.AffixIcon(vividElement.VividElement) {
24
+ }
25
+ __decorateClass([
26
+ fastElement.attr
27
+ ], Status.prototype, "status");
28
+ __decorateClass([
29
+ fastElement.attr
30
+ ], Status.prototype, "connotation");
31
+
32
+ const DEFAULT_ICON_BY_CONNOTATION = {
33
+ [enums.Connotation.Success]: "check-circle-solid",
34
+ [enums.Connotation.Information]: "info-solid",
35
+ [enums.Connotation.Warning]: "warning-solid",
36
+ [enums.Connotation.Alert]: "error-solid"
37
+ };
38
+ const getClasses = ({ connotation }) => fastWebUtilities.classNames("base", connotation ? `connotation-${connotation}` : "");
39
+ function getEffectiveIcon(status) {
40
+ if (status.icon) {
41
+ return status.icon;
42
+ }
43
+ return status.connotation ? DEFAULT_ICON_BY_CONNOTATION[status.connotation] : void 0;
44
+ }
45
+ function getHeaderTemplate() {
46
+ return fastElement.html`<div class="headline">${(x) => x.status}</div>`;
47
+ }
48
+ const StatusTemplate = (context) => {
49
+ const affixIconTemplate = affix.affixIconTemplateFactory(context);
50
+ return fastElement.html`
51
+ <div class="${getClasses}">
52
+ ${(x) => affixIconTemplate(getEffectiveIcon(x), affix.IconWrapper.Slot)}
53
+ <div class="text">
54
+ ${fastElement.when((x) => x.status, getHeaderTemplate())}
55
+ <div class="description">
56
+ <slot></slot>
57
+ </div>
58
+ </div>
59
+ </div>
60
+ `;
61
+ };
62
+
63
+ const statusDefinition = vividElement.defineVividComponent(
64
+ "status",
65
+ Status,
66
+ StatusTemplate,
67
+ [icon_definition.iconDefinition],
68
+ {
69
+ styles
70
+ }
71
+ );
72
+ const registerStatus = vividElement.createRegisterFunction(statusDefinition);
73
+
74
+ exports.VwcStatusElement = Status;
75
+ exports.registerStatus = registerStatus;
76
+ exports.statusDefinition = statusDefinition;
@@ -0,0 +1,70 @@
1
+ import { iconDefinition } from '../icon/definition.js';
2
+ import { V as VividElement, d as defineVividComponent, c as createRegisterFunction } from '../unbundled/vivid-element.js';
3
+ import { attr, when, html } from '@microsoft/fast-element';
4
+ import { A as AffixIcon, a as affixIconTemplateFactory, I as IconWrapper } from '../unbundled/affix.js';
5
+ import { classNames } from '@microsoft/fast-web-utilities';
6
+ import { C as Connotation } from '../unbundled/enums.js';
7
+
8
+ const styles = ".base.connotation-information{--_connotation-color-intermediate: var(--vvd-status-information-intermediate, var(--vvd-color-information-500));--_connotation-color-faint: var(--vvd-status-information-faint, var(--vvd-color-information-50));--_connotation-color-fierce: var(--vvd-status-information-fierce, var(--vvd-color-information-700))}.base.connotation-warning{--_connotation-color-intermediate: var(--vvd-status-warning-intermediate, var(--vvd-color-warning-300));--_connotation-color-faint: var(--vvd-status-warning-faint, var(--vvd-color-warning-50));--_connotation-color-fierce: var(--vvd-status-warning-fierce, var(--vvd-color-warning-700))}.base.connotation-alert{--_connotation-color-intermediate: var(--vvd-status-alert-intermediate, var(--vvd-color-alert-500));--_connotation-color-faint: var(--vvd-status-alert-faint, var(--vvd-color-alert-50));--_connotation-color-fierce: var(--vvd-status-alert-fierce, var(--vvd-color-alert-700))}.base:not(.connotation-information,.connotation-warning,.connotation-alert){--_connotation-color-intermediate: var(--vvd-status-success-intermediate, var(--vvd-color-success-500));--_connotation-color-faint: var(--vvd-status-success-faint, var(--vvd-color-success-50));--_connotation-color-fierce: var(--vvd-status-success-fierce, var(--vvd-color-success-700))}.base{--_appearance-color-text: var(--_connotation-color-fierce);--_appearance-color-fill: var(--_connotation-color-faint);--_appearance-color-outline: var(--_connotation-color-intermediate)}.base{display:inline-flex;align-items:center;column-gap:8px}slot[name=icon],.icon{color:var(--_appearance-color-outline);font-size:calc(1px*(20 + 4*clamp(-1,var(--vvd-size-density, 0),2))*.8)}.text{display:flex;min-width:0;flex-direction:column;flex-grow:1;align-items:flex-start;justify-content:center;gap:4px;text-align:start}.headline{color:var(--_appearance-color-outline);font:var(--vvd-typography-base-condensed-bold)}.description{color:var(--vvd-color-neutral-600);font:var(--vvd-typography-base-condensed)}";
9
+
10
+ var __defProp = Object.defineProperty;
11
+ var __decorateClass = (decorators, target, key, kind) => {
12
+ var result = void 0 ;
13
+ for (var i = decorators.length - 1, decorator; i >= 0; i--)
14
+ if (decorator = decorators[i])
15
+ result = (decorator(target, key, result) ) || result;
16
+ if (result) __defProp(target, key, result);
17
+ return result;
18
+ };
19
+ class Status extends AffixIcon(VividElement) {
20
+ }
21
+ __decorateClass([
22
+ attr
23
+ ], Status.prototype, "status");
24
+ __decorateClass([
25
+ attr
26
+ ], Status.prototype, "connotation");
27
+
28
+ const DEFAULT_ICON_BY_CONNOTATION = {
29
+ [Connotation.Success]: "check-circle-solid",
30
+ [Connotation.Information]: "info-solid",
31
+ [Connotation.Warning]: "warning-solid",
32
+ [Connotation.Alert]: "error-solid"
33
+ };
34
+ const getClasses = ({ connotation }) => classNames("base", connotation ? `connotation-${connotation}` : "");
35
+ function getEffectiveIcon(status) {
36
+ if (status.icon) {
37
+ return status.icon;
38
+ }
39
+ return status.connotation ? DEFAULT_ICON_BY_CONNOTATION[status.connotation] : void 0;
40
+ }
41
+ function getHeaderTemplate() {
42
+ return html`<div class="headline">${(x) => x.status}</div>`;
43
+ }
44
+ const StatusTemplate = (context) => {
45
+ const affixIconTemplate = affixIconTemplateFactory(context);
46
+ return html`
47
+ <div class="${getClasses}">
48
+ ${(x) => affixIconTemplate(getEffectiveIcon(x), IconWrapper.Slot)}
49
+ <div class="text">
50
+ ${when((x) => x.status, getHeaderTemplate())}
51
+ <div class="description">
52
+ <slot></slot>
53
+ </div>
54
+ </div>
55
+ </div>
56
+ `;
57
+ };
58
+
59
+ const statusDefinition = defineVividComponent(
60
+ "status",
61
+ Status,
62
+ StatusTemplate,
63
+ [iconDefinition],
64
+ {
65
+ styles
66
+ }
67
+ );
68
+ const registerStatus = createRegisterFunction(statusDefinition);
69
+
70
+ export { Status as VwcStatusElement, registerStatus, statusDefinition };
@@ -0,0 +1,11 @@
1
+ "use strict";const d=require("../bundled/definition2.cjs"),n=require("../bundled/vivid-element.cjs"),c=require("../bundled/affix.cjs"),i=require("../bundled/enums.cjs"),f=require("../bundled/when.cjs"),u=require("../bundled/class-names.cjs"),m=".base.connotation-information{--_connotation-color-intermediate: var(--vvd-status-information-intermediate, var(--vvd-color-information-500));--_connotation-color-faint: var(--vvd-status-information-faint, var(--vvd-color-information-50));--_connotation-color-fierce: var(--vvd-status-information-fierce, var(--vvd-color-information-700))}.base.connotation-warning{--_connotation-color-intermediate: var(--vvd-status-warning-intermediate, var(--vvd-color-warning-300));--_connotation-color-faint: var(--vvd-status-warning-faint, var(--vvd-color-warning-50));--_connotation-color-fierce: var(--vvd-status-warning-fierce, var(--vvd-color-warning-700))}.base.connotation-alert{--_connotation-color-intermediate: var(--vvd-status-alert-intermediate, var(--vvd-color-alert-500));--_connotation-color-faint: var(--vvd-status-alert-faint, var(--vvd-color-alert-50));--_connotation-color-fierce: var(--vvd-status-alert-fierce, var(--vvd-color-alert-700))}.base:not(.connotation-information,.connotation-warning,.connotation-alert){--_connotation-color-intermediate: var(--vvd-status-success-intermediate, var(--vvd-color-success-500));--_connotation-color-faint: var(--vvd-status-success-faint, var(--vvd-color-success-50));--_connotation-color-fierce: var(--vvd-status-success-fierce, var(--vvd-color-success-700))}.base{--_appearance-color-text: var(--_connotation-color-fierce);--_appearance-color-fill: var(--_connotation-color-faint);--_appearance-color-outline: var(--_connotation-color-intermediate)}.base{display:inline-flex;align-items:center;column-gap:8px}slot[name=icon],.icon{color:var(--_appearance-color-outline);font-size:calc(1px*(20 + 4*clamp(-1,var(--vvd-size-density, 0),2))*.8)}.text{display:flex;min-width:0;flex-direction:column;flex-grow:1;align-items:flex-start;justify-content:center;gap:4px;text-align:start}.headline{color:var(--_appearance-color-outline);font:var(--vvd-typography-base-condensed-bold)}.description{color:var(--vvd-color-neutral-600);font:var(--vvd-typography-base-condensed)}";var p=Object.defineProperty,l=(o,e,t,C)=>{for(var a=void 0,r=o.length-1,v;r>=0;r--)(v=o[r])&&(a=v(e,t,a)||a);return a&&p(e,t,a),a};class s extends c.AffixIcon(n.VividElement){}l([n.attr],s.prototype,"status");l([n.attr],s.prototype,"connotation");const _={[i.Connotation.Success]:"check-circle-solid",[i.Connotation.Information]:"info-solid",[i.Connotation.Warning]:"warning-solid",[i.Connotation.Alert]:"error-solid"},g=({connotation:o})=>u.classNames("base",o?`connotation-${o}`:"");function x(o){return o.icon?o.icon:o.connotation?_[o.connotation]:void 0}function w(){return n.html`<div class="headline">${o=>o.status}</div>`}const y=o=>{const e=c.affixIconTemplateFactory(o);return n.html`
2
+ <div class="${g}">
3
+ ${t=>e(x(t),c.IconWrapper.Slot)}
4
+ <div class="text">
5
+ ${f.when(t=>t.status,w())}
6
+ <div class="description">
7
+ <slot></slot>
8
+ </div>
9
+ </div>
10
+ </div>
11
+ `},b=n.defineVividComponent("status",s,y,[d.iconDefinition],{styles:m}),h=n.createRegisterFunction(b);h();
@@ -0,0 +1,55 @@
1
+ import { i as d } from "../bundled/definition2.js";
2
+ import { V as f, a as s, h as v, c as m, d as p } from "../bundled/vivid-element.js";
3
+ import { b as u, a as _, I as g } from "../bundled/affix.js";
4
+ import { C as r } from "../bundled/enums.js";
5
+ import { w as x } from "../bundled/when.js";
6
+ import { c as w } from "../bundled/class-names.js";
7
+ const b = ".base.connotation-information{--_connotation-color-intermediate: var(--vvd-status-information-intermediate, var(--vvd-color-information-500));--_connotation-color-faint: var(--vvd-status-information-faint, var(--vvd-color-information-50));--_connotation-color-fierce: var(--vvd-status-information-fierce, var(--vvd-color-information-700))}.base.connotation-warning{--_connotation-color-intermediate: var(--vvd-status-warning-intermediate, var(--vvd-color-warning-300));--_connotation-color-faint: var(--vvd-status-warning-faint, var(--vvd-color-warning-50));--_connotation-color-fierce: var(--vvd-status-warning-fierce, var(--vvd-color-warning-700))}.base.connotation-alert{--_connotation-color-intermediate: var(--vvd-status-alert-intermediate, var(--vvd-color-alert-500));--_connotation-color-faint: var(--vvd-status-alert-faint, var(--vvd-color-alert-50));--_connotation-color-fierce: var(--vvd-status-alert-fierce, var(--vvd-color-alert-700))}.base:not(.connotation-information,.connotation-warning,.connotation-alert){--_connotation-color-intermediate: var(--vvd-status-success-intermediate, var(--vvd-color-success-500));--_connotation-color-faint: var(--vvd-status-success-faint, var(--vvd-color-success-50));--_connotation-color-fierce: var(--vvd-status-success-fierce, var(--vvd-color-success-700))}.base{--_appearance-color-text: var(--_connotation-color-fierce);--_appearance-color-fill: var(--_connotation-color-faint);--_appearance-color-outline: var(--_connotation-color-intermediate)}.base{display:inline-flex;align-items:center;column-gap:8px}slot[name=icon],.icon{color:var(--_appearance-color-outline);font-size:calc(1px*(20 + 4*clamp(-1,var(--vvd-size-density, 0),2))*.8)}.text{display:flex;min-width:0;flex-direction:column;flex-grow:1;align-items:flex-start;justify-content:center;gap:4px;text-align:start}.headline{color:var(--_appearance-color-outline);font:var(--vvd-typography-base-condensed-bold)}.description{color:var(--vvd-color-neutral-600);font:var(--vvd-typography-base-condensed)}";
8
+ var y = Object.defineProperty, l = (o, a, t, $) => {
9
+ for (var n = void 0, e = o.length - 1, c; e >= 0; e--)
10
+ (c = o[e]) && (n = c(a, t, n) || n);
11
+ return n && y(a, t, n), n;
12
+ };
13
+ class i extends u(f) {
14
+ }
15
+ l([
16
+ s
17
+ ], i.prototype, "status");
18
+ l([
19
+ s
20
+ ], i.prototype, "connotation");
21
+ const h = {
22
+ [r.Success]: "check-circle-solid",
23
+ [r.Information]: "info-solid",
24
+ [r.Warning]: "warning-solid",
25
+ [r.Alert]: "error-solid"
26
+ }, I = ({ connotation: o }) => w("base", o ? `connotation-${o}` : "");
27
+ function C(o) {
28
+ return o.icon ? o.icon : o.connotation ? h[o.connotation] : void 0;
29
+ }
30
+ function T() {
31
+ return v`<div class="headline">${(o) => o.status}</div>`;
32
+ }
33
+ const N = (o) => {
34
+ const a = _(o);
35
+ return v`
36
+ <div class="${I}">
37
+ ${(t) => a(C(t), g.Slot)}
38
+ <div class="text">
39
+ ${x((t) => t.status, T())}
40
+ <div class="description">
41
+ <slot></slot>
42
+ </div>
43
+ </div>
44
+ </div>
45
+ `;
46
+ }, O = p(
47
+ "status",
48
+ i,
49
+ N,
50
+ [d],
51
+ {
52
+ styles: b
53
+ }
54
+ ), S = m(O);
55
+ S();
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Mon, 08 Dec 2025 18:08:08 GMT
3
+ * Generated on Tue, 10 Feb 2026 14:55:49 GMT
4
4
  */
5
5
  /**
6
6
  * Do not edit directly
7
- * Generated on Mon, 08 Dec 2025 18:08:08 GMT
7
+ * Generated on Tue, 10 Feb 2026 14:55:49 GMT
8
8
  */
9
9
  .vvd-root {
10
10
  background-color: var(--vvd-color-canvas);
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Mon, 08 Dec 2025 18:08:08 GMT
3
+ * Generated on Tue, 10 Feb 2026 14:55:49 GMT
4
4
  */
5
5
  /**
6
6
  * Do not edit directly
7
- * Generated on Mon, 08 Dec 2025 18:08:08 GMT
7
+ * Generated on Tue, 10 Feb 2026 14:55:49 GMT
8
8
  */
9
9
  .vvd-root {
10
10
  background-color: var(--vvd-color-canvas);
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Mon, 08 Dec 2025 18:08:08 GMT
3
+ * Generated on Tue, 10 Feb 2026 14:55:49 GMT
4
4
  */
5
5
  .vvd-root:root {
6
6
  --vvd-size-font-scale-base: 1rem;
@@ -1,18 +1,18 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Mon, 08 Dec 2025 18:08:08 GMT
3
+ * Generated on Tue, 10 Feb 2026 14:55:49 GMT
4
4
  */
5
5
  /**
6
6
  * Do not edit directly
7
- * Generated on Mon, 08 Dec 2025 18:08:08 GMT
7
+ * Generated on Tue, 10 Feb 2026 14:55:49 GMT
8
8
  */
9
9
  /**
10
10
  * Do not edit directly
11
- * Generated on Mon, 08 Dec 2025 18:08:08 GMT
11
+ * Generated on Tue, 10 Feb 2026 14:55:49 GMT
12
12
  */
13
13
  /**
14
14
  * Do not edit directly
15
- * Generated on Mon, 08 Dec 2025 18:08:08 GMT
15
+ * Generated on Tue, 10 Feb 2026 14:55:49 GMT
16
16
  */
17
17
  @property --vvd-size-density {
18
18
  syntax: "<integer>";
@@ -1,18 +1,18 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Mon, 08 Dec 2025 18:08:08 GMT
3
+ * Generated on Tue, 10 Feb 2026 14:55:49 GMT
4
4
  */
5
5
  /**
6
6
  * Do not edit directly
7
- * Generated on Mon, 08 Dec 2025 18:08:08 GMT
7
+ * Generated on Tue, 10 Feb 2026 14:55:49 GMT
8
8
  */
9
9
  /**
10
10
  * Do not edit directly
11
- * Generated on Mon, 08 Dec 2025 18:08:08 GMT
11
+ * Generated on Tue, 10 Feb 2026 14:55:49 GMT
12
12
  */
13
13
  /**
14
14
  * Do not edit directly
15
- * Generated on Mon, 08 Dec 2025 18:08:08 GMT
15
+ * Generated on Tue, 10 Feb 2026 14:55:49 GMT
16
16
  */
17
17
  @property --vvd-size-density {
18
18
  syntax: "<integer>";
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Mon, 08 Dec 2025 18:08:08 GMT
3
+ * Generated on Tue, 10 Feb 2026 14:55:49 GMT
4
4
  */
5
5
  .vvd-root, ::part(vvd-root),
6
6
  .vvd-theme-alternate, ::part(vvd-theme-alternate) {