@webitel/ui-sdk 26.6.53 → 26.6.54

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 (33) hide show
  1. package/dist/{clients-aQCH0OHp.js → clients-CUPgptgn.js} +1 -1
  2. package/dist/{components-Dc0VY4b8.js → components-B27elm12.js} +13 -12
  3. package/dist/{enums-pbYAJNeb.js → enums-DW1oVune.js} +1 -0
  4. package/dist/ui-sdk.css +1 -1
  5. package/dist/ui-sdk.js +3 -3
  6. package/dist/ui-sdk.umd.cjs +266 -266
  7. package/dist/{useValidation-DG0tifBv.js → useValidation-NX7UjlXi.js} +1 -1
  8. package/dist/{wt-action-bar-Ba1ZJjE_.js → wt-action-bar-BHg0dHh-.js} +2 -2
  9. package/dist/{wt-button-CZfPNaIj.js → wt-button-Cv7wRtF5.js} +2 -2
  10. package/dist/{wt-chat-emoji-BwV4IyWX.js → wt-chat-emoji-DUGhBznp.js} +3 -3
  11. package/dist/{wt-datepicker-Cnbarx_j.js → wt-datepicker-DmmqWre1.js} +2 -2
  12. package/dist/{wt-display-chip-items-C-bgLyan.js → wt-display-chip-items-B3XX1FDO.js} +1 -1
  13. package/dist/{wt-dual-panel-DAhTYFS_.js → wt-dual-panel-Cnzr4m-k.js} +1 -1
  14. package/dist/{wt-expansion-card-Bqvd-DGl.js → wt-expansion-card-BoVLPEoJ.js} +1 -1
  15. package/dist/{wt-expansion-panel-C_EXvx1d.js → wt-expansion-panel-CYZR6tYG.js} +1 -1
  16. package/dist/{wt-icon-DZxZg6ON.js → wt-icon-CqEgBu_3.js} +1 -1
  17. package/dist/{wt-icon-action-CQlZHMDB.js → wt-icon-action-DlZx4RV6.js} +1 -1
  18. package/dist/{wt-icon-btn-BUpa-fbk.js → wt-icon-btn-B66HR8qM.js} +1 -1
  19. package/dist/{wt-notifications-bar-CDTqa7M9.js → wt-notifications-bar-Bbzp4mi1.js} +2 -2
  20. package/dist/{wt-player-B-8_UKI8.js → wt-player-CFL51-s6.js} +3 -3
  21. package/dist/{wt-search-bar-CyMYRgHH.js → wt-search-bar--ACLsoNo.js} +1 -1
  22. package/dist/{wt-send-message-popup-DE9yxHwR.js → wt-send-message-popup-CI3ofbaP.js} +2 -2
  23. package/dist/{wt-timepicker-BltFF1QD.js → wt-timepicker-DpZmWZdv.js} +2 -2
  24. package/dist/wt-toast-gaZL33Am.js +44 -0
  25. package/dist/{wt-tree-table-2u2mPfO_.js → wt-tree-table-DkK3EyzZ.js} +1 -1
  26. package/dist/{wt-type-extension-value-input-DoVSEg6T.js → wt-type-extension-value-input-w9g-SKkN.js} +3 -3
  27. package/dist/{wt-vidstack-player-BuZSWab3.js → wt-vidstack-player-DXvko-1j.js} +4 -4
  28. package/package.json +1 -1
  29. package/src/components/wt-chip/wt-chip.vue +1 -0
  30. package/src/components/wt-toast/wt-toast.vue +15 -10
  31. package/src/enums/ChipColor/ChipColor.ts +1 -0
  32. package/types/enums/ChipColor/ChipColor.d.ts +1 -0
  33. package/dist/wt-toast-m61COwji.js +0 -44
@@ -1,4 +1,4 @@
1
- import { i as e } from "./enums-pbYAJNeb.js";
1
+ import { i as e } from "./enums-DW1oVune.js";
2
2
  import { t } from "./vue-i18n-B8Px6VcD.js";
3
3
  import { computed as n, isReactive as r } from "vue";
4
4
  //#region src/mixins/validationMixin/regle/useRegleValidation.ts
@@ -1,8 +1,8 @@
1
1
  import { t as e } from "./caseConverters-DXegZoCt.js";
2
2
  import { t } from "./_plugin-vue_export-helper-B3ysoDQm.js";
3
- import { o as n } from "./enums-pbYAJNeb.js";
3
+ import { o as n } from "./enums-DW1oVune.js";
4
4
  import { t as r } from "./sortQueryAdapters-CyYXvnDN.js";
5
- import { t as i } from "./wt-icon-action-CQlZHMDB.js";
5
+ import { t as i } from "./wt-icon-action-DlZx4RV6.js";
6
6
  import { Fragment as a, computed as o, createElementBlock as s, createVNode as c, guardReactiveProps as l, mergeProps as u, normalizeProps as d, openBlock as f, renderList as p, renderSlot as m, unref as h } from "vue";
7
7
  //#region src/components/wt-action-bar/WtActionBarActionsOrder.js
8
8
  var g = [
@@ -1,5 +1,5 @@
1
- import { t as e } from "./wt-icon-DZxZg6ON.js";
2
- import { c as t, d as n, u as r } from "./enums-pbYAJNeb.js";
1
+ import { t as e } from "./wt-icon-CqEgBu_3.js";
2
+ import { c as t, d as n, u as r } from "./enums-DW1oVune.js";
3
3
  import { computed as i, createBlock as a, createCommentVNode as o, createElementVNode as s, createTextVNode as c, defineComponent as l, inject as u, mergeProps as d, normalizeClass as f, openBlock as p, ref as m, renderSlot as h, resolveComponent as g, toDisplayString as _, toRef as v, unref as y, useAttrs as b, watch as x, withCtx as S, withModifiers as C } from "vue";
4
4
  //#endregion
5
5
  //#region src/components/wt-badge-new/wt-badge.vue
@@ -1,9 +1,9 @@
1
1
  import { a as e, t } from "./chunk-CY3AvKd6.js";
2
2
  import { n, t as r } from "./dist-BYiYpK00.js";
3
- import "./components-Dc0VY4b8.js";
3
+ import "./components-B27elm12.js";
4
4
  import { t as i } from "./_plugin-vue_export-helper-B3ysoDQm.js";
5
- import { c as a } from "./enums-pbYAJNeb.js";
6
- import { t as o } from "./wt-button-CZfPNaIj.js";
5
+ import { c as a } from "./enums-DW1oVune.js";
6
+ import { t as o } from "./wt-button-Cv7wRtF5.js";
7
7
  import "./sortQueryAdapters-CyYXvnDN.js";
8
8
  import { a as s, c, i as l, n as u, o as d, r as f, s as p } from "./debounce-DPzXwiOS.js";
9
9
  import { t as m } from "./eventBus-By3thVlR.js";
@@ -1,7 +1,7 @@
1
1
  import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
2
- import { c as t, r as n } from "./enums-pbYAJNeb.js";
2
+ import { c as t, r as n } from "./enums-DW1oVune.js";
3
3
  import { C as r, D as i, E as a, S as o, T as s, _ as c, a as l, b as u, c as d, d as f, f as p, g as m, h, i as g, l as _, m as v, o as y, p as ee, s as b, u as x, v as S, w as C, x as w, y as T } from "./dist-Dz55hlwp.js";
4
- import { t as te } from "./useValidation-DG0tifBv.js";
4
+ import { t as te } from "./useValidation-NX7UjlXi.js";
5
5
  import { Fragment as E, Teleport as ne, Transition as re, computed as D, createBlock as O, createCommentVNode as k, createElementBlock as A, createElementVNode as j, createSlots as M, createTextVNode as N, createVNode as P, defineComponent as F, getCurrentScope as ie, guardReactiveProps as ae, isRef as oe, mergeProps as se, nextTick as ce, normalizeClass as I, normalizeProps as le, normalizeStyle as ue, onBeforeUpdate as de, onMounted as fe, onScopeDispose as pe, onUnmounted as me, openBlock as L, reactive as he, ref as R, renderList as z, renderSlot as B, resolveComponent as ge, resolveDynamicComponent as _e, toDisplayString as V, toRef as ve, toRefs as ye, unref as H, useSlots as be, vShow as xe, watch as Se, withCtx as U, withDirectives as Ce, withKeys as W, withModifiers as we } from "vue";
6
6
  //#region node_modules/date-fns/addDays.js
7
7
  function Te(e, t, n) {
@@ -1,4 +1,4 @@
1
- import { c as e, i as t } from "./components-Dc0VY4b8.js";
1
+ import { c as e, i as t } from "./components-B27elm12.js";
2
2
  import { t as n } from "./_plugin-vue_export-helper-B3ysoDQm.js";
3
3
  import { t as r } from "./displayText-CtaxzaBz.js";
4
4
  import { Fragment as i, computed as a, createCommentVNode as o, createElementBlock as s, createTextVNode as c, createVNode as l, defineComponent as u, openBlock as d, renderList as f, renderSlot as p, toDisplayString as m, unref as h, withCtx as g } from "vue";
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
2
- import { c as t, o as n } from "./enums-pbYAJNeb.js";
2
+ import { c as t, o as n } from "./enums-DW1oVune.js";
3
3
  import { computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, normalizeClass as c, openBlock as l, ref as u, renderSlot as d, resolveComponent as f, unref as p } from "vue";
4
4
  //#region src/components/wt-dual-panel/wt-dual-panel.vue
5
5
  var m = { class: "wt-dual-panel" }, h = {
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
2
- import { c as t } from "./enums-pbYAJNeb.js";
2
+ import { c as t } from "./enums-DW1oVune.js";
3
3
  import { t as n } from "./useExpansion-DVdIpoOn.js";
4
4
  import "./composables-dhUrqIsW.js";
5
5
  import { t as r } from "./wt-expand-transition-C2p9bR4j.js";
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
2
- import { c as t } from "./enums-pbYAJNeb.js";
2
+ import { c as t } from "./enums-DW1oVune.js";
3
3
  import { t as n } from "./useExpansion-DVdIpoOn.js";
4
4
  import { t as r } from "./wt-expand-transition-C2p9bR4j.js";
5
5
  import { createElementBlock as i, createElementVNode as a, createVNode as o, defineComponent as s, guardReactiveProps as c, normalizeClass as l, normalizeProps as u, openBlock as d, renderSlot as f, resolveComponent as p, toRef as m, unref as h, vShow as g, withCtx as _, withDirectives as v, withKeys as y } from "vue";
@@ -1,5 +1,5 @@
1
1
  import { n as e } from "./caseConverters-DXegZoCt.js";
2
- import { a as t, c as n } from "./enums-pbYAJNeb.js";
2
+ import { a as t, c as n } from "./enums-DW1oVune.js";
3
3
  import { computed as r, createElementBlock as i, defineComponent as a, normalizeClass as o, openBlock as s } from "vue";
4
4
  //#region node_modules/dompurify/dist/purify.es.mjs
5
5
  function c(e, t) {
@@ -1,4 +1,4 @@
1
- import { o as e } from "./enums-pbYAJNeb.js";
1
+ import { o as e } from "./enums-DW1oVune.js";
2
2
  import { t } from "./vue-i18n-B8Px6VcD.js";
3
3
  import { t as n } from "./sortQueryAdapters-CyYXvnDN.js";
4
4
  import { computed as r, createBlock as i, openBlock as a, resolveComponent as o, resolveDirective as s, unref as c, withDirectives as l } from "vue";
@@ -1,4 +1,4 @@
1
- import { t as e } from "./wt-icon-DZxZg6ON.js";
1
+ import { t as e } from "./wt-icon-CqEgBu_3.js";
2
2
  import { t } from "./_plugin-vue_export-helper-B3ysoDQm.js";
3
3
  import { computed as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createVNode as s, defineComponent as c, guardReactiveProps as l, mergeModels as u, mergeProps as d, normalizeClass as f, normalizeProps as p, openBlock as m, renderSlot as h, resolveComponent as g, toDisplayString as _, useModel as v, useSlots as y, withCtx as b } from "vue";
4
4
  //#region src/components/wt-checkbox/wt-checkbox.vue?vue&type=script&setup=true&lang.ts
@@ -1,5 +1,5 @@
1
- import { i as e } from "./enums-pbYAJNeb.js";
2
- import { t } from "./wt-toast-m61COwji.js";
1
+ import { i as e } from "./enums-DW1oVune.js";
2
+ import { t } from "./wt-toast-gaZL33Am.js";
3
3
  import { n } from "./usetoast-BECIyaas.js";
4
4
  import { t as r } from "./eventBus-By3thVlR.js";
5
5
  import { createBlock as i, inject as a, onUnmounted as o, openBlock as s } from "vue";
@@ -1,7 +1,7 @@
1
- import { t as e } from "./wt-icon-DZxZg6ON.js";
1
+ import { t as e } from "./wt-icon-CqEgBu_3.js";
2
2
  import { t } from "./_plugin-vue_export-helper-B3ysoDQm.js";
3
- import { c as n } from "./enums-pbYAJNeb.js";
4
- import { t as r } from "./wt-button-CZfPNaIj.js";
3
+ import { c as n } from "./enums-DW1oVune.js";
4
+ import { t as r } from "./wt-button-Cv7wRtF5.js";
5
5
  import { n as i, t as a } from "./useVidstackSrc-jCDCYTce.js";
6
6
  import { t as o } from "./wt-popover-CJin-2BO.js";
7
7
  import { t as s } from "./wt-slider-BS3SoGht.js";
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
2
- import { t } from "./useValidation-DG0tifBv.js";
2
+ import { t } from "./useValidation-NX7UjlXi.js";
3
3
  import { t as n } from "./debounce-DPzXwiOS.js";
4
4
  import { computed as r, createBlock as i, createCommentVNode as a, createElementVNode as o, createSlots as s, createTextVNode as c, createVNode as l, defineComponent as u, normalizeClass as d, openBlock as f, renderSlot as p, resolveComponent as m, resolveDirective as h, toDisplayString as g, toRefs as _, unref as v, withCtx as y, withDirectives as b } from "vue";
5
5
  //#region src/components/wt-search-bar/wt-search-bar.vue?vue&type=script&setup=true&lang.ts
@@ -1,6 +1,6 @@
1
- import { n as e } from "./components-Dc0VY4b8.js";
1
+ import { n as e } from "./components-B27elm12.js";
2
2
  import { t } from "./vue-i18n-B8Px6VcD.js";
3
- import { n, r } from "./clients-aQCH0OHp.js";
3
+ import { n, r } from "./clients-CUPgptgn.js";
4
4
  import { createBlock as i, createTextVNode as a, createVNode as o, defineComponent as s, inject as c, mergeProps as l, onMounted as u, openBlock as d, ref as f, resolveComponent as p, toDisplayString as m, unref as h, withCtx as g } from "vue";
5
5
  //#endregion
6
6
  //#region src/components/on-demand/wt-send-message-popup/wt-send-message-popup.vue
@@ -1,7 +1,7 @@
1
1
  import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
2
- import { c as t, r as n } from "./enums-pbYAJNeb.js";
2
+ import { c as t, r as n } from "./enums-DW1oVune.js";
3
3
  import { t as r } from "./vue-i18n-B8Px6VcD.js";
4
- import { t as i } from "./useValidation-DG0tifBv.js";
4
+ import { t as i } from "./useValidation-NX7UjlXi.js";
5
5
  import { computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createTextVNode as u, defineComponent as d, guardReactiveProps as f, mergeProps as p, nextTick as m, normalizeClass as h, normalizeProps as g, openBlock as _, renderSlot as v, resolveComponent as y, toDisplayString as b, toRefs as x, unref as S, withCtx as C } from "vue";
6
6
  //#region src/components/wt-timepicker/wt-timepicker.vue?vue&type=script&setup=true&lang.ts
7
7
  var w = { class: "wt-timepicker__wrapper" }, T = 3600, E = 60, D = /*#__PURE__*/ e(/* @__PURE__ */ d({
@@ -0,0 +1,44 @@
1
+ import { t as e } from "./wt-icon-CqEgBu_3.js";
2
+ import { c as t, i as n } from "./enums-DW1oVune.js";
3
+ import { Fragment as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createVNode as c, defineComponent as l, guardReactiveProps as u, normalizeProps as d, openBlock as f, resolveComponent as p, toDisplayString as m, unref as h, useAttrs as g, withCtx as _ } from "vue";
4
+ //#region src/components/wt-toast/wt-toast.vue?vue&type=script&setup=true&lang.ts
5
+ var v = { class: "p-toast-message-text" }, y = { class: "p-toast-summary" }, b = {
6
+ key: 0,
7
+ class: "p-toast-detail"
8
+ }, x = /* @__PURE__ */ l({
9
+ name: "WtToast",
10
+ inheritAttrs: !1,
11
+ __name: "wt-toast",
12
+ setup(l) {
13
+ let x = g(), S = {
14
+ success: "done",
15
+ info: "rounded-info",
16
+ warn: "warning",
17
+ error: "error"
18
+ }, C = {
19
+ success: n.SUCCESS,
20
+ info: n.INFO,
21
+ warn: n.WARN,
22
+ error: n.ERROR,
23
+ contrast: n.CONTRAST,
24
+ secondary: n.SECONDARY
25
+ };
26
+ return (l, g) => {
27
+ let w = p("PToast");
28
+ return f(), i(w, d(u(h(x))), {
29
+ message: _(({ message: t }) => [t ? (f(), o(r, { key: 0 }, [c(e, {
30
+ icon: S[t.severity] ?? "",
31
+ color: C[t.severity] ?? h(n).CONTRAST,
32
+ class: "p-toast-message-icon"
33
+ }, null, 8, ["icon", "color"]), s("div", v, [s("span", y, m(t.summary), 1), t.detail ? (f(), o("div", b, m(t.detail), 1)) : a("", !0)])], 64)) : a("", !0)]),
34
+ closeicon: _(() => [c(e, {
35
+ icon: "close",
36
+ size: h(t).SM
37
+ }, null, 8, ["size"])]),
38
+ _: 1
39
+ }, 16);
40
+ };
41
+ }
42
+ });
43
+ //#endregion
44
+ export { x as t };
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
2
- import { n as t, t as n } from "./wt-icon-btn-BUpa-fbk.js";
2
+ import { n as t, t as n } from "./wt-icon-btn-B66HR8qM.js";
3
3
  import { n as r } from "./sortQueryAdapters-CyYXvnDN.js";
4
4
  import { t as i } from "./useWtTable-tqmVOvve.js";
5
5
  import { Fragment as a, computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createSlots as d, createTextVNode as f, createVNode as p, defineComponent as m, normalizeClass as h, normalizeStyle as g, onMounted as _, openBlock as v, ref as y, renderList as b, renderSlot as x, resolveComponent as S, toDisplayString as C, toRef as w, unref as T, withCtx as E, withModifiers as D } from "vue";
@@ -1,7 +1,7 @@
1
- import { a as e, o as t, r as n, s as r } from "./components-Dc0VY4b8.js";
2
- import { t as i } from "./enums-pbYAJNeb.js";
1
+ import { a as e, o as t, r as n, s as r } from "./components-B27elm12.js";
2
+ import { t as i } from "./enums-DW1oVune.js";
3
3
  import { t as a } from "./vue-i18n-B8Px6VcD.js";
4
- import { t as o } from "./clients-aQCH0OHp.js";
4
+ import { t as o } from "./clients-CUPgptgn.js";
5
5
  import { computed as s, createBlock as c, createCommentVNode as l, createVNode as u, defineComponent as d, mergeModels as f, mergeProps as p, openBlock as m, renderSlot as h, resolveComponent as g, unref as _, useModel as v } from "vue";
6
6
  //#endregion
7
7
  //#region src/components/on-demand/wt-type-extension-value-input/wt-type-extension-value-input.vue
@@ -1,8 +1,8 @@
1
- import { l as e } from "./components-Dc0VY4b8.js";
1
+ import { l as e } from "./components-B27elm12.js";
2
2
  import { t } from "./_plugin-vue_export-helper-B3ysoDQm.js";
3
- import { c as n } from "./enums-pbYAJNeb.js";
4
- import "./wt-button-CZfPNaIj.js";
5
- import { t as r } from "./wt-icon-btn-BUpa-fbk.js";
3
+ import { c as n } from "./enums-DW1oVune.js";
4
+ import "./wt-button-Cv7wRtF5.js";
5
+ import { t as r } from "./wt-icon-btn-B66HR8qM.js";
6
6
  import { $ as i, A as a, B as o, C as s, F as c, G as l, H as u, I as d, J as f, K as p, L as m, M as h, N as g, O as ee, P as te, Q as _, R as ne, T as re, U as v, W as ie, X as ae, Y as oe, Z as y, _ as b, a as se, at as ce, b as le, c as ue, d as de, et as x, f as fe, g as pe, h as me, i as S, it as he, k as ge, l as C, m as _e, n as w, nt as ve, o as T, p as E, q as D, r as O, rt as k, st as ye, t as be, tt as xe, u as Se, v as A, w as j, x as Ce, y as we, z as Te } from "./vidstack-BGSTndAW-CyKM_CM4.js";
7
7
  import { _ as Ee, a as De, c as Oe, f as ke, g as Ae, h as je, i as Me, l as Ne, n as Pe, r as Fe, s as Ie, t as Le, u as Re, v as ze, x as Be, y as Ve } from "./useVidstackSrc-jCDCYTce.js";
8
8
  import { i as He, n as Ue } from "./vidstack-CTojmhKq-D7sZJxgm.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webitel/ui-sdk",
3
- "version": "26.6.53",
3
+ "version": "26.6.54",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "npm run docs:dev",
@@ -10,6 +10,7 @@
10
10
  class="wt-chip__close-icon"
11
11
  icon="close--filled"
12
12
  :size="ComponentSize.SM"
13
+ :color="ChipColor.ON_PRIMARY"
13
14
  @click="emit('remove', $event)"
14
15
  />
15
16
  </template>
@@ -1,15 +1,17 @@
1
1
  <template>
2
- <PToast v-bind="$attrs">
2
+ <PToast v-bind="attrs">
3
3
  <template #message="{ message }">
4
- <wt-icon
5
- :icon="severityToIconNameMap[message.severity] ?? ''"
6
- :color="severityToIconColorMap[message.severity] ?? MessageColor.CONTRAST"
7
- class="p-toast-message-icon"
8
- />
9
- <div class="p-toast-message-text">
10
- <span class="p-toast-summary">{{ message.summary }}</span>
11
- <div v-if="message.detail" class="p-toast-detail">{{ message.detail }}</div>
12
- </div>
4
+ <template v-if="message">
5
+ <wt-icon
6
+ :icon="severityToIconNameMap[message.severity] ?? ''"
7
+ :color="severityToIconColorMap[message.severity] ?? MessageColor.CONTRAST"
8
+ class="p-toast-message-icon"
9
+ />
10
+ <div class="p-toast-message-text">
11
+ <span class="p-toast-summary">{{ message.summary }}</span>
12
+ <div v-if="message.detail" class="p-toast-detail">{{ message.detail }}</div>
13
+ </div>
14
+ </template>
13
15
  </template>
14
16
  <template #closeicon>
15
17
  <wt-icon icon="close" :size="ComponentSize.SM" />
@@ -18,9 +20,12 @@
18
20
  </template>
19
21
 
20
22
  <script setup lang="ts">
23
+ import { useAttrs } from 'vue';
21
24
  import { ComponentSize, MessageColor } from '../../enums';
22
25
  import WtIcon from '../wt-icon/wt-icon.vue';
23
26
 
27
+ const attrs = useAttrs();
28
+
24
29
  defineOptions({
25
30
  name: 'WtToast',
26
31
  inheritAttrs: false,
@@ -1,6 +1,7 @@
1
1
  export const ChipColor = {
2
2
  MAIN: 'main',
3
3
  PRIMARY: 'primary',
4
+ ON_PRIMARY: 'on-primary',
4
5
  SECONDARY: 'secondary',
5
6
  SUCCESS: 'success',
6
7
  WARNING: 'warning',
@@ -1,6 +1,7 @@
1
1
  export declare const ChipColor: {
2
2
  readonly MAIN: "main";
3
3
  readonly PRIMARY: "primary";
4
+ readonly ON_PRIMARY: "on-primary";
4
5
  readonly SECONDARY: "secondary";
5
6
  readonly SUCCESS: "success";
6
7
  readonly WARNING: "warning";
@@ -1,44 +0,0 @@
1
- import { t as e } from "./wt-icon-DZxZg6ON.js";
2
- import { c as t, i as n } from "./enums-pbYAJNeb.js";
3
- import { createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createVNode as s, defineComponent as c, guardReactiveProps as l, normalizeProps as u, openBlock as d, resolveComponent as f, toDisplayString as p, unref as m, withCtx as h } from "vue";
4
- //#region src/components/wt-toast/wt-toast.vue?vue&type=script&setup=true&lang.ts
5
- var g = { class: "p-toast-message-text" }, _ = { class: "p-toast-summary" }, v = {
6
- key: 0,
7
- class: "p-toast-detail"
8
- }, y = /* @__PURE__ */ c({
9
- name: "WtToast",
10
- inheritAttrs: !1,
11
- __name: "wt-toast",
12
- setup(c) {
13
- let y = {
14
- success: "done",
15
- info: "rounded-info",
16
- warn: "warning",
17
- error: "error"
18
- }, b = {
19
- success: n.SUCCESS,
20
- info: n.INFO,
21
- warn: n.WARN,
22
- error: n.ERROR,
23
- contrast: n.CONTRAST,
24
- secondary: n.SECONDARY
25
- };
26
- return (c, x) => {
27
- let S = f("PToast");
28
- return d(), r(S, u(l(c.$attrs)), {
29
- message: h(({ message: t }) => [s(e, {
30
- icon: y[t.severity] ?? "",
31
- color: b[t.severity] ?? m(n).CONTRAST,
32
- class: "p-toast-message-icon"
33
- }, null, 8, ["icon", "color"]), o("div", g, [o("span", _, p(t.summary), 1), t.detail ? (d(), a("div", v, p(t.detail), 1)) : i("", !0)])]),
34
- closeicon: h(() => [s(e, {
35
- icon: "close",
36
- size: m(t).SM
37
- }, null, 8, ["size"])]),
38
- _: 1
39
- }, 16);
40
- };
41
- }
42
- });
43
- //#endregion
44
- export { y as t };