@dv.net/ui-kit 7.4.2 → 7.5.1

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 (120) hide show
  1. package/dist/assets/{DatePickerInput.vue_vue_type_script_setup_true_lang.zOBynXnC.js → DatePickerInput.vue_vue_type_script_setup_true_lang.0fTX2XyN.js} +69 -64
  2. package/dist/assets/{DatePickerInputs.vue_vue_type_script_setup_true_lang.CHu97t2s.js → DatePickerInputs.vue_vue_type_script_setup_true_lang.BDpkRcEN.js} +3 -3
  3. package/dist/assets/{DatePickerSlider.vue_vue_type_script_setup_true_lang.OWR8o6fM.js → DatePickerSlider.vue_vue_type_script_setup_true_lang.BGkzUy3Z.js} +28 -23
  4. package/dist/assets/{SelectSearch.vue_vue_type_script_setup_true_lang.C3yDssCy.js → SelectSearch.vue_vue_type_script_setup_true_lang.Cnqyp_Zb.js} +13 -8
  5. package/dist/assets/{SelectTrigger.vue_vue_type_script_setup_true_lang.Qj7K7MkG.js → SelectTrigger.vue_vue_type_script_setup_true_lang.DdrjuMDG.js} +15 -10
  6. package/dist/assets/{SelectVirtualList.vue_vue_type_script_setup_true_lang.D93PRpP9.js → SelectVirtualList.vue_vue_type_script_setup_true_lang.CiNZoKwF.js} +14 -9
  7. package/dist/assets/{TableSort.vue_vue_type_script_setup_true_lang.N-BF_O-e.js → TableSort.vue_vue_type_script_setup_true_lang.czdmoDoN.js} +14 -9
  8. package/dist/assets/{UiAvatar.vue_vue_type_script_setup_true_lang.CqOkYtri.js → UiAvatar.vue_vue_type_script_setup_true_lang.D1vn5qXx.js} +31 -26
  9. package/dist/assets/{UiBlockTitle.vue_vue_type_script_setup_true_lang.CDQzSyvH.js → UiBlockTitle.vue_vue_type_script_setup_true_lang.D3gstLQO.js} +19 -14
  10. package/dist/assets/{UiButton.vue_vue_type_script_setup_true_lang.CAgnUvIV.js → UiButton.vue_vue_type_script_setup_true_lang.C58Ve9-q.js} +49 -43
  11. package/dist/assets/UiChat.vue_vue_type_script_setup_true_lang.CTu88TXM.js +79 -0
  12. package/dist/assets/UiChatAttachments.vue_vue_type_script_setup_true_lang.CCGby5Jd.js +94 -0
  13. package/dist/assets/UiChatFooter.vue_vue_type_script_setup_true_lang.CqDExA87.js +88 -0
  14. package/dist/assets/UiChatHeader.vue_vue_type_script_setup_true_lang.BT2QlOtu.js +95 -0
  15. package/dist/assets/UiChatManagerAlert.vue_vue_type_script_setup_true_lang.DzU8TXYU.js +48 -0
  16. package/dist/assets/UiChatMessage.vue_vue_type_script_setup_true_lang.BuCaTu3U.js +50 -0
  17. package/dist/assets/UiChatMessageAttachments.vue_vue_type_script_setup_true_lang.gr8ostyK.js +55 -0
  18. package/dist/assets/{UiCheckbox.vue_vue_type_script_setup_true_lang.jNhN0anJ.js → UiCheckbox.vue_vue_type_script_setup_true_lang.BJv0xDk8.js} +33 -28
  19. package/dist/assets/{UiCollapseItem.vue_vue_type_script_setup_true_lang.T5nsbevZ.js → UiCollapseItem.vue_vue_type_script_setup_true_lang.CBGtA0OT.js} +18 -13
  20. package/dist/assets/{UiConfirm.vue_vue_type_script_setup_true_lang.BtEjkj0Q.js → UiConfirm.vue_vue_type_script_setup_true_lang.C0NGQkz6.js} +14 -9
  21. package/dist/assets/{UiCopyText.vue_vue_type_script_setup_true_lang.pRQoDOxU.js → UiCopyText.vue_vue_type_script_setup_true_lang.BW_J9zQD.js} +1 -1
  22. package/dist/assets/{UiDatepickerRange.vue_vue_type_script_setup_true_lang.DEaQJdY2.js → UiDatepickerRange.vue_vue_type_script_setup_true_lang.BfxSFgGk.js} +56 -51
  23. package/dist/assets/{UiDropdown.vue_vue_type_script_setup_true_lang.C8sc2Ar4.js → UiDropdown.vue_vue_type_script_setup_true_lang.BPFv-AjS.js} +1 -1
  24. package/dist/assets/{UiFileItemLoading.vue_vue_type_script_setup_true_lang.BA93cC3z.js → UiFileItemLoading.vue_vue_type_script_setup_true_lang.BLZuEoWZ.js} +2 -2
  25. package/dist/assets/UiGallery.vue_vue_type_script_setup_true_lang.pDss49af.js +96 -0
  26. package/dist/assets/{UiIconButton.vue_vue_type_script_setup_true_lang.O2daaEIF.js → UiIconButton.vue_vue_type_script_setup_true_lang.cJvSLKjQ.js} +24 -18
  27. package/dist/assets/{UiInput.vue_vue_type_script_setup_true_lang.CYBCqSiY.js → UiInput.vue_vue_type_script_setup_true_lang.Dr-b7jG5.js} +17 -17
  28. package/dist/assets/{UiLanguageButton.vue_vue_type_script_setup_true_lang.BxsrtKTK.js → UiLanguageButton.vue_vue_type_script_setup_true_lang.Ctoigfsg.js} +15 -10
  29. package/dist/assets/{UiLanguages.vue_vue_type_script_setup_true_lang.CRO_Wqzn.js → UiLanguages.vue_vue_type_script_setup_true_lang.MmWfwC3C.js} +15 -10
  30. package/dist/assets/{UiLayoutMenu.vue_vue_type_script_setup_true_lang.CjdqGSzF.js → UiLayoutMenu.vue_vue_type_script_setup_true_lang.4wLA6Do-.js} +2 -2
  31. package/dist/assets/{UiLayoutMenuItem.vue_vue_type_script_setup_true_lang.CLIVTrur.js → UiLayoutMenuItem.vue_vue_type_script_setup_true_lang.ZkGXLRX8.js} +13 -8
  32. package/dist/assets/{UiLoading.vue_vue_type_script_setup_true_lang.D452h_BA.js → UiLoading.vue_vue_type_script_setup_true_lang.cWPzNcNZ.js} +14 -9
  33. package/dist/assets/{UiMobileMenu.vue_vue_type_script_setup_true_lang.BWJ__ZHV.js → UiMobileMenu.vue_vue_type_script_setup_true_lang.CVdeZpLR.js} +12 -7
  34. package/dist/assets/{UiModal.vue_vue_type_script_setup_true_lang.CatEtX_V.js → UiModal.vue_vue_type_script_setup_true_lang.kAASqaaY.js} +26 -21
  35. package/dist/assets/{UiPagination.vue_vue_type_script_setup_true_lang.DgGKkF9g.js → UiPagination.vue_vue_type_script_setup_true_lang.Br97aEUF.js} +20 -15
  36. package/dist/assets/{UiProfileMenu.vue_vue_type_script_setup_true_lang.DLKXYSDQ.js → UiProfileMenu.vue_vue_type_script_setup_true_lang.BPIM20fS.js} +29 -24
  37. package/dist/assets/{UiProfileMenuItem.vue_vue_type_script_setup_true_lang.DhOjFaOe.js → UiProfileMenuItem.vue_vue_type_script_setup_true_lang.DAv4em8S.js} +18 -13
  38. package/dist/assets/{UiSelect.vue_vue_type_script_setup_true_lang.BSAwTWzc.js → UiSelect.vue_vue_type_script_setup_true_lang.KW-gAx4L.js} +16 -11
  39. package/dist/assets/{UiSwitch.vue_vue_type_script_setup_true_lang.DqsPZD1T.js → UiSwitch.vue_vue_type_script_setup_true_lang.CQL4VRs4.js} +16 -11
  40. package/dist/assets/{UiTable.vue_vue_type_script_setup_true_lang.DHaR-pL7.js → UiTable.vue_vue_type_script_setup_true_lang.BRxWn-LJ.js} +16 -11
  41. package/dist/assets/UiTextarea.vue_vue_type_script_setup_true_lang.bD1zcxkh.js +113 -0
  42. package/dist/assets/{UiTooltip.vue_vue_type_script_setup_true_lang.CptSEao7.js → UiTooltip.vue_vue_type_script_setup_true_lang.DNZTJcY4.js} +25 -20
  43. package/dist/assets/{index.CWUzDs_o.js → index.Cp1LhIxy.js} +8 -8
  44. package/dist/assets/{index.gJtK3DTa.js → index.DeYcP251.js} +6 -6
  45. package/dist/assets/{style.CD0jFgS4.js → style.C3xG1ALc.js} +4591 -4591
  46. package/dist/components/UiAvatar/UiAvatar.js +2 -2
  47. package/dist/components/UiBlockTitle/UiBlockTitle.js +2 -2
  48. package/dist/components/UiButton/UiButton.js +2 -2
  49. package/dist/components/UiChat/UiChat.js +5 -0
  50. package/dist/components/UiChat/UiChat.vue.d.ts +11 -0
  51. package/dist/components/UiChat/UiChatAttachments.js +5 -0
  52. package/dist/components/UiChat/UiChatAttachments.vue.d.ts +14 -0
  53. package/dist/components/UiChat/UiChatFooter.js +5 -0
  54. package/dist/components/UiChat/UiChatFooter.vue.d.ts +82 -0
  55. package/dist/components/UiChat/UiChatHeader.js +5 -0
  56. package/dist/components/UiChat/UiChatHeader.vue.d.ts +11 -0
  57. package/dist/components/UiChat/UiChatManagerAlert.js +5 -0
  58. package/dist/components/UiChat/UiChatManagerAlert.vue.d.ts +5 -0
  59. package/dist/components/UiChat/UiChatMessage.js +5 -0
  60. package/dist/components/UiChat/UiChatMessage.vue.d.ts +7 -0
  61. package/dist/components/UiChat/UiChatMessageAttachments.js +5 -0
  62. package/dist/components/UiChat/UiChatMessageAttachments.vue.d.ts +6 -0
  63. package/dist/components/UiChat/types.d.ts +57 -0
  64. package/dist/components/UiChat/types.js +1 -0
  65. package/dist/components/UiCheckbox/UiCheckbox.js +2 -2
  66. package/dist/components/UiCollapseItem/UiCollapseItem.js +2 -2
  67. package/dist/components/UiConfirm/UiConfirm.js +2 -2
  68. package/dist/components/UiCopyText/UiCopyText.js +1 -1
  69. package/dist/components/UiCopyText/UiCopyText.vue.d.ts +1 -1
  70. package/dist/components/UiDatepicker/UiDatepickerRange.js +2 -2
  71. package/dist/components/UiDatepicker/UiDatepickerRange.vue.d.ts +52 -52
  72. package/dist/components/UiDatepicker/components/DatePickerInput.js +2 -2
  73. package/dist/components/UiDatepicker/components/DatePickerInputs.js +2 -2
  74. package/dist/components/UiDatepicker/components/DatePickerSlider.js +2 -2
  75. package/dist/components/UiDragAndDrop/UiDragAndDrop.js +27 -22
  76. package/dist/components/UiDragAndDrop/UiFileItem.js +18 -13
  77. package/dist/components/UiDragAndDrop/UiFileItemLoading.js +2 -2
  78. package/dist/components/UiDropdown/UiDropdown.js +1 -1
  79. package/dist/components/UiDropdown/UiDropdown.vue.d.ts +2 -2
  80. package/dist/components/UiGallery/UiGallery.js +2 -2
  81. package/dist/components/UiGallery/UiGallery.vue.d.ts +2 -2
  82. package/dist/components/UiGallery/types.d.ts +7 -5
  83. package/dist/components/UiIconButton/UiIconButton.js +2 -2
  84. package/dist/components/UiInput/UiInput.js +2 -2
  85. package/dist/components/UiInput/UiInput.vue.d.ts +1 -1
  86. package/dist/components/UiLanguages/UiLanguages.js +2 -2
  87. package/dist/components/UiLanguages/UiLanguages.vue.d.ts +6 -6
  88. package/dist/components/UiLanguages/components/UiLanguageButton.js +1 -1
  89. package/dist/components/UiLayoutMenu/UiLayoutMenu.js +2 -2
  90. package/dist/components/UiLayoutMenu/UiLayoutMenuItem.js +2 -2
  91. package/dist/components/UiLoading/UiLoading.js +2 -2
  92. package/dist/components/UiMobileMenu/UiMobileMenu.js +2 -2
  93. package/dist/components/UiModal/UiModal.js +2 -2
  94. package/dist/components/UiPagination/UiPagination.js +2 -2
  95. package/dist/components/UiProfileMenu/UiProfileMenu.js +2 -2
  96. package/dist/components/UiProfileMenu/components/UiProfileMenuItem.js +2 -2
  97. package/dist/components/UiSelect/UiSelect.js +2 -2
  98. package/dist/components/UiSelect/UiSelect.vue.d.ts +4 -4
  99. package/dist/components/UiSelect/components/SelectSearch.js +2 -2
  100. package/dist/components/UiSelect/components/SelectSearch.vue.d.ts +3 -3
  101. package/dist/components/UiSelect/components/SelectTrigger.js +1 -1
  102. package/dist/components/UiSelect/components/SelectVirtualList.js +2 -2
  103. package/dist/components/UiSkeleton/UiSkeleton.vue.d.ts +1 -1
  104. package/dist/components/UiSwitch/UiSwitch.js +2 -2
  105. package/dist/components/UiTable/UiTable.js +2 -2
  106. package/dist/components/UiTable/components/TableSort.js +2 -2
  107. package/dist/components/UiTextarea/UiTextarea.js +1 -1
  108. package/dist/components/UiTextarea/UiTextarea.vue.d.ts +5 -3
  109. package/dist/components/UiTextarea/type.d.ts +1 -0
  110. package/dist/components/UiTooltip/UiTooltip.js +2 -2
  111. package/dist/components/UiTooltip/UiTooltip.vue.d.ts +2 -2
  112. package/dist/composables/useNotification/UiNotification.js +20 -15
  113. package/dist/config/index.d.ts +30 -0
  114. package/dist/config/index.js +17 -2
  115. package/dist/index.d.ts +1 -0
  116. package/dist/index.js +97 -94
  117. package/dist/style.css +1 -1
  118. package/package.json +1 -1
  119. package/dist/assets/UiGallery.vue_vue_type_script_setup_true_lang.vSJzXRLK.js +0 -97
  120. package/dist/assets/UiTextarea.vue_vue_type_script_setup_true_lang.Dv0mPKxv.js +0 -105
@@ -1,13 +1,20 @@
1
- import { defineComponent as v, computed as n, useId as _, createElementBlock as o, openBlock as a, normalizeStyle as f, normalizeClass as k, createVNode as e, createElementVNode as r, unref as s, Fragment as p, createTextVNode as u, toDisplayString as h } from "vue";
1
+ import { defineComponent as v, computed as n, useId as _, createElementBlock as o, openBlock as i, normalizeStyle as f, normalizeClass as k, createVNode as r, createElementVNode as e, unref as s, Fragment as p, createTextVNode as u, toDisplayString as h } from "vue";
2
2
  import { _ as d } from "./AvatarMask.vue_vue_type_script_setup_true_lang.DknpN85J.js";
3
3
  import "./vue3-lottie.es.BGWavb2-.js";
4
- import "./style.CD0jFgS4.js";
4
+ import "./style.C3xG1ALc.js";
5
5
  import { _ as y } from "./UiIcon.vue_vue_type_script_setup_true_lang.BjdWpbZ0.js";
6
6
  /* empty css */
7
- /* empty css */
7
+ /* empty css */
8
+ import "../config/index.js";
9
+ /* empty css */
10
+ /* empty css */
11
+ /* empty css */
8
12
  /* empty css */
13
+ /* empty css */
14
+ /* empty css */
15
+ /* empty css */
9
16
  import "./useDatePicker.DnhbkLG1.js";
10
- import "../config/index.js";
17
+ /* empty css */
11
18
  /* empty css */
12
19
  import "../components/UiDatepicker/composables/useDatePickerPresets.js";
13
20
  /* empty css */
@@ -22,13 +29,11 @@ import "vue-router";
22
29
  /* empty css */
23
30
  /* empty css */
24
31
  /* empty css */
25
- /* empty css */
26
32
  /* empty css */
27
33
  /* empty css */
28
34
  /* empty css */
29
35
  /* empty css */
30
- /* empty css */
31
- const g = { class: "ui-avatar__inner" }, z = ["id"], b = ["mask"], $ = { class: "ui-avatar__avatar" }, j = ["src"], B = { class: "ui-avatar__status" }, it = /* @__PURE__ */ v({
36
+ const g = { class: "ui-avatar__inner" }, z = ["id"], b = ["mask"], $ = { class: "ui-avatar__avatar" }, j = ["src"], B = { class: "ui-avatar__status" }, ct = /* @__PURE__ */ v({
32
37
  __name: "UiAvatar",
33
38
  props: {
34
39
  avatar: {},
@@ -37,8 +42,8 @@ const g = { class: "ui-avatar__inner" }, z = ["id"], b = ["mask"], $ = { class:
37
42
  status: { default: "reject" },
38
43
  clickable: { type: Boolean }
39
44
  },
40
- setup(i) {
41
- const c = n(() => i.email ? (i.email[0] ?? "") + (i.email[1] ?? "") : null), l = _(), m = n(() => ({
45
+ setup(a) {
46
+ const m = n(() => a.email ? (a.email[0] ?? "") + (a.email[1] ?? "") : null), c = _(), l = n(() => ({
42
47
  success: {
43
48
  icon: "check-circle 1",
44
49
  color: "var(--color-icon-positive)"
@@ -56,39 +61,39 @@ const g = { class: "ui-avatar__inner" }, z = ["id"], b = ["mask"], $ = { class:
56
61
  color: "var(--color-icon-tertiary)"
57
62
  }
58
63
  }));
59
- return (t, E) => (a(), o("div", {
64
+ return (t, E) => (i(), o("div", {
60
65
  class: k(["ui-avatar", [`size-${t.size}`, { clickable: t.clickable }]]),
61
- style: f({ color: m.value[t.email ? t.status : "default"].color })
66
+ style: f({ color: l.value[t.email ? t.status : "default"].color })
62
67
  }, [
63
- e(d, {
68
+ r(d, {
64
69
  isTransparent: "",
65
70
  class: "ui-avatar__mask"
66
71
  }),
67
- (a(), o("svg", g, [
68
- r("mask", { id: s(l) }, [
69
- e(d)
72
+ (i(), o("svg", g, [
73
+ e("mask", { id: s(c) }, [
74
+ r(d)
70
75
  ], 8, z),
71
- (a(), o("foreignObject", {
72
- mask: `url(#${s(l)})`,
76
+ (i(), o("foreignObject", {
77
+ mask: `url(#${s(c)})`,
73
78
  width: "100%",
74
79
  height: "100%"
75
80
  }, [
76
- r("div", $, [
77
- t.avatar ? (a(), o("img", {
81
+ e("div", $, [
82
+ t.avatar ? (i(), o("img", {
78
83
  key: 0,
79
84
  src: t.avatar
80
- }, null, 8, j)) : c.value ? (a(), o(p, { key: 1 }, [
81
- u(h(c.value), 1)
82
- ], 64)) : (a(), o(p, { key: 2 }, [
85
+ }, null, 8, j)) : m.value ? (i(), o(p, { key: 1 }, [
86
+ u(h(m.value), 1)
87
+ ], 64)) : (i(), o(p, { key: 2 }, [
83
88
  u("-")
84
89
  ], 64))
85
90
  ])
86
91
  ], 8, b))
87
92
  ])),
88
- r("div", B, [
89
- e(s(y), {
93
+ e("div", B, [
94
+ r(s(y), {
90
95
  type: "100",
91
- name: m.value[t.status].icon,
96
+ name: l.value[t.status].icon,
92
97
  size: "fill"
93
98
  }, null, 8, ["name"])
94
99
  ])
@@ -96,5 +101,5 @@ const g = { class: "ui-avatar__inner" }, z = ["id"], b = ["mask"], $ = { class:
96
101
  }
97
102
  });
98
103
  export {
99
- it as _
104
+ ct as _
100
105
  };
@@ -1,11 +1,18 @@
1
- import { defineComponent as l, createElementBlock as r, openBlock as e, renderSlot as a, createElementVNode as s, createCommentVNode as n, toDisplayString as i, createVNode as c, unref as m, withCtx as p, Fragment as _, renderList as u, createBlock as d, createTextVNode as f } from "vue";
1
+ import { defineComponent as l, createElementBlock as r, openBlock as o, renderSlot as a, createElementVNode as s, createCommentVNode as n, toDisplayString as i, createVNode as c, unref as m, withCtx as p, Fragment as _, renderList as u, createBlock as d, createTextVNode as f } from "vue";
2
2
  import "./vue3-lottie.es.BGWavb2-.js";
3
- import "./style.CD0jFgS4.js";
3
+ import "./style.C3xG1ALc.js";
4
4
  /* empty css */
5
- /* empty css */
5
+ /* empty css */
6
+ import "../config/index.js";
7
+ /* empty css */
8
+ /* empty css */
9
+ /* empty css */
6
10
  /* empty css */
11
+ /* empty css */
12
+ /* empty css */
13
+ /* empty css */
7
14
  import "./useDatePicker.DnhbkLG1.js";
8
- import "../config/index.js";
15
+ /* empty css */
9
16
  /* empty css */
10
17
  import "../components/UiDatepicker/composables/useDatePickerPresets.js";
11
18
  /* empty css */
@@ -20,27 +27,25 @@ import "vue-router";
20
27
  /* empty css */
21
28
  /* empty css */
22
29
  /* empty css */
23
- /* empty css */
24
30
  /* empty css */
25
31
  import { _ as h } from "./UiTabs.vue_vue_type_script_setup_true_lang.Cl2uvELZ.js";
26
32
  /* empty css */
27
33
  import { _ as k } from "./UiTabsItem.vue_vue_type_script_setup_true_lang.XvsBaqkr.js";
28
34
  /* empty css */
29
35
  /* empty css */
30
- /* empty css */
31
36
  const V = { class: "ui-block-title" }, v = {
32
37
  key: 0,
33
38
  class: "ui-block-title__title"
34
- }, B = { class: "ui-block-title__nav" }, x = /* @__PURE__ */ l({
39
+ }, B = { class: "ui-block-title__nav" }, it = /* @__PURE__ */ l({
35
40
  __name: "UiBlockTitle",
36
41
  props: {
37
42
  title: {},
38
43
  links: {}
39
44
  },
40
45
  setup(N) {
41
- return (t, $) => (e(), r("div", V, [
46
+ return (t, $) => (o(), r("div", V, [
42
47
  a(t.$slots, "default", {}, () => [
43
- t.title ? (e(), r("h1", v, i(t.title), 1)) : n("", !0)
48
+ t.title ? (o(), r("h1", v, i(t.title), 1)) : n("", !0)
44
49
  ]),
45
50
  s("nav", B, [
46
51
  c(m(h), {
@@ -50,12 +55,12 @@ const V = { class: "ui-block-title" }, v = {
50
55
  modelValue: t.$route?.path
51
56
  }, {
52
57
  default: p(() => [
53
- (e(!0), r(_, null, u(t.links, (o) => (e(), d(m(k), {
54
- value: o?.path,
55
- key: o?.path
58
+ (o(!0), r(_, null, u(t.links, (e) => (o(), d(m(k), {
59
+ value: e?.path,
60
+ key: e?.path
56
61
  }, {
57
62
  default: p(() => [
58
- f(i(o.title), 1)
63
+ f(i(e.title), 1)
59
64
  ]),
60
65
  _: 2
61
66
  }, 1032, ["value"]))), 128))
@@ -67,5 +72,5 @@ const V = { class: "ui-block-title" }, v = {
67
72
  }
68
73
  });
69
74
  export {
70
- x as _
75
+ it as _
71
76
  };
@@ -1,12 +1,20 @@
1
- import { defineComponent as u, useAttrs as d, computed as f, createBlock as c, openBlock as o, resolveDynamicComponent as y, mergeProps as g, unref as n, withCtx as I, createElementBlock as t, createCommentVNode as i, createVNode as r, renderSlot as h } from "vue";
2
- import { _ as a } from "./UiIcon.vue_vue_type_script_setup_true_lang.BjdWpbZ0.js";
1
+ import { defineComponent as d, useAttrs as f, computed as c, createBlock as y, openBlock as e, resolveDynamicComponent as g, mergeProps as I, unref as a, withCtx as h, createElementBlock as t, createCommentVNode as i, createVNode as r, createElementVNode as z, renderSlot as b } from "vue";
2
+ import { _ as p } from "./UiIcon.vue_vue_type_script_setup_true_lang.BjdWpbZ0.js";
3
3
  /* empty css */
4
4
  import "./vue3-lottie.es.BGWavb2-.js";
5
- import "./style.CD0jFgS4.js";
6
- /* empty css */
5
+ import "./style.C3xG1ALc.js";
6
+ import { _ as C } from "./UiLoading.vue_vue_type_script_setup_true_lang.cWPzNcNZ.js";
7
+ /* empty css */
8
+ import "../config/index.js";
9
+ /* empty css */
10
+ /* empty css */
11
+ /* empty css */
7
12
  /* empty css */
13
+ /* empty css */
14
+ /* empty css */
15
+ /* empty css */
8
16
  import "./useDatePicker.DnhbkLG1.js";
9
- import "../config/index.js";
17
+ /* empty css */
10
18
  /* empty css */
11
19
  import "../components/UiDatepicker/composables/useDatePickerPresets.js";
12
20
  /* empty css */
@@ -19,25 +27,22 @@ import "../components/UiDatepicker/composables/useDatePickerPresets.js";
19
27
  /* empty css */
20
28
  import "vue-router";
21
29
  /* empty css */
22
- import { _ as z } from "./UiLoading.vue_vue_type_script_setup_true_lang.D452h_BA.js";
23
30
  /* empty css */
24
31
  /* empty css */
25
- /* empty css */
26
32
  /* empty css */
27
33
  /* empty css */
28
34
  /* empty css */
29
35
  /* empty css */
30
- /* empty css */
31
- const C = {
36
+ const T = {
32
37
  key: 0,
33
38
  class: "ui-button__icon-slot"
34
- }, b = {
39
+ }, N = {
35
40
  key: 1,
36
41
  class: "ui-button__content"
37
- }, T = {
42
+ }, k = {
38
43
  key: 2,
39
44
  class: "ui-button__icon-slot"
40
- }, ee = /* @__PURE__ */ u({
45
+ }, no = /* @__PURE__ */ d({
41
46
  __name: "UiButton",
42
47
  props: {
43
48
  link: { type: Boolean },
@@ -59,52 +64,53 @@ const C = {
59
64
  to: {},
60
65
  outlineTypeColor: {}
61
66
  },
62
- setup(p) {
63
- const l = d(), s = p, m = f(() => l.href ? "a" : s.to ? "router-link" : "button");
64
- return (e, k) => (o(), c(y(m.value), g(n(l), {
67
+ setup(s) {
68
+ const l = f(), m = s, u = c(() => l.href ? "a" : m.to ? "router-link" : "button");
69
+ return (o, n) => (e(), y(g(u.value), I(a(l), {
65
70
  class: ["ui-button", [
66
- `size-${e.size}`,
67
- `type-${e.type}`,
68
- `mode-${e.mode}`,
71
+ `size-${o.size}`,
72
+ `type-${o.type}`,
73
+ `mode-${o.mode}`,
69
74
  {
70
- "is-loading": e.loading
75
+ "is-loading": o.loading
71
76
  }
72
77
  ]],
73
- target: e.target,
74
- to: e.to,
75
- disabled: e.disabled || e.loading,
76
- type: e.nativeType,
77
- style: e.outlineTypeColor && e.type === "outline" && { "--color-state-accent": e.outlineTypeColor }
78
+ target: o.target,
79
+ to: o.to,
80
+ disabled: o.disabled || o.loading,
81
+ type: o.nativeType,
82
+ style: o.outlineTypeColor && o.type === "outline" && { "--color-state-accent": o.outlineTypeColor }
78
83
  }), {
79
- default: I(() => [
80
- e.leftIconName ? (o(), t("span", C, [
81
- r(a, {
82
- type: e.leftIconType,
83
- name: e.leftIconName,
84
- color: e.leftIconColor,
85
- size: e.leftIconSize
84
+ default: h(() => [
85
+ o.leftIconName ? (e(), t("span", T, [
86
+ r(p, {
87
+ type: o.leftIconType,
88
+ name: o.leftIconName,
89
+ color: o.leftIconColor,
90
+ size: o.leftIconSize
86
91
  }, null, 8, ["type", "name", "color", "size"])
87
92
  ])) : i("", !0),
88
- e.$slots.default ? (o(), t("span", b, [
89
- h(e.$slots, "default")
93
+ o.$slots.default ? (e(), t("span", N, [
94
+ b(o.$slots, "default")
90
95
  ])) : i("", !0),
91
- e.rightIconName ? (o(), t("span", T, [
92
- r(a, {
93
- type: e.rightIconType,
94
- name: e.rightIconName,
95
- color: e.rightIconColor,
96
- size: e.rightIconSize
96
+ o.rightIconName ? (e(), t("span", k, [
97
+ r(p, {
98
+ type: o.rightIconType,
99
+ name: o.rightIconName,
100
+ color: o.rightIconColor,
101
+ size: o.rightIconSize
97
102
  }, null, 8, ["type", "name", "color", "size"])
98
103
  ])) : i("", !0),
99
- r(n(z), {
100
- "is-show": e.loading,
104
+ r(a(C), {
105
+ "is-show": o.loading,
101
106
  "icon-size": "fill"
102
- }, null, 8, ["is-show"])
107
+ }, null, 8, ["is-show"]),
108
+ n[0] || (n[0] = z("div", { class: "ui-button__hover-effect" }, null, -1))
103
109
  ]),
104
110
  _: 3
105
111
  }, 16, ["target", "to", "class", "disabled", "type", "style"]));
106
112
  }
107
113
  });
108
114
  export {
109
- ee as _
115
+ no as _
110
116
  };
@@ -0,0 +1,79 @@
1
+ import { defineComponent as M, computed as u, createElementBlock as n, openBlock as a, createVNode as c, createElementVNode as l, Transition as w, withCtx as U, createBlock as f, createCommentVNode as A, Fragment as p, renderList as g, toDisplayString as C } from "vue";
2
+ import { _ as b } from "./UiChatHeader.vue_vue_type_script_setup_true_lang.BT2QlOtu.js";
3
+ import "./style.C3xG1ALc.js";
4
+ import { _ as B } from "./UiChatFooter.vue_vue_type_script_setup_true_lang.CqDExA87.js";
5
+ import { _ as D } from "./UiChatMessage.vue_vue_type_script_setup_true_lang.BuCaTu3U.js";
6
+ /* empty css */
7
+ import { _ as S } from "./UiChatManagerAlert.vue_vue_type_script_setup_true_lang.DzU8TXYU.js";
8
+ /* empty css */
9
+ import { d as Y } from "./useDatePicker.DnhbkLG1.js";
10
+ import { config as $ } from "../config/index.js";
11
+ import { d as E } from "./UiChatAttachments.vue_vue_type_script_setup_true_lang.CCGby5Jd.js";
12
+ const N = { class: "ui-chat" }, V = { class: "ui-chat__body" }, H = { class: "ui-chat__group-date" }, K = /* @__PURE__ */ M({
13
+ __name: "UiChat",
14
+ props: {
15
+ ticket: {},
16
+ messages: { default: () => [] },
17
+ currentUserUuid: {},
18
+ showManagerAlert: { type: Boolean, default: !1 },
19
+ managerAlertSeconds: {}
20
+ },
21
+ emits: ["action-ticket", "submit", "attach"],
22
+ setup(o, { emit: _ }) {
23
+ const i = _, k = (t) => t.split(" ")[0], h = (t) => t.user.uuid === o.currentUserUuid, r = u(() => !o.messages.length || !o.ticket || !o.currentUserUuid), y = u(() => {
24
+ if (!r.value) return o.messages;
25
+ const t = Y().format("DD.MM.YYYY HH:mm");
26
+ return [E($.uiChat.translations.defaultMessage, t)];
27
+ }), v = u(() => {
28
+ const t = {};
29
+ for (const s of y.value) {
30
+ const e = k(s.created_at);
31
+ t[e] || (t[e] = []), t[e].push(s);
32
+ }
33
+ return t;
34
+ });
35
+ return (t, s) => (a(), n("div", N, [
36
+ c(b, {
37
+ ticket: t.ticket,
38
+ "is-empty": r.value,
39
+ onActionTicket: s[0] || (s[0] = (e) => i("action-ticket", e))
40
+ }, null, 8, ["ticket", "is-empty"]),
41
+ l("div", V, [
42
+ c(w, {
43
+ name: "alert",
44
+ mode: "out-in",
45
+ appear: ""
46
+ }, {
47
+ default: U(() => [
48
+ t.showManagerAlert ? (a(), f(S, {
49
+ key: 0,
50
+ seconds: t.managerAlertSeconds
51
+ }, null, 8, ["seconds"])) : A("", !0)
52
+ ]),
53
+ _: 1
54
+ }),
55
+ (a(!0), n(p, null, g(v.value, (e, d) => (a(), n("div", {
56
+ key: d,
57
+ class: "ui-chat__group"
58
+ }, [
59
+ l("div", H, [
60
+ l("span", null, C(d), 1)
61
+ ]),
62
+ (a(!0), n(p, null, g(e, (m) => (a(), f(D, {
63
+ key: m.id,
64
+ message: m,
65
+ "is-own": h(m)
66
+ }, null, 8, ["message", "is-own"]))), 128))
67
+ ]))), 128))
68
+ ]),
69
+ c(B, {
70
+ "is-empty": r.value,
71
+ onSubmit: s[1] || (s[1] = (e) => i("submit", e)),
72
+ onAttach: s[2] || (s[2] = (e) => i("attach", e))
73
+ }, null, 8, ["is-empty"])
74
+ ]));
75
+ }
76
+ });
77
+ export {
78
+ K as _
79
+ };
@@ -0,0 +1,94 @@
1
+ import { defineComponent as L, ref as o, computed as U, createElementBlock as m, openBlock as _, createElementVNode as l, createVNode as h, Fragment as j, renderList as I, toDisplayString as R } from "vue";
2
+ import { _ as g } from "./UiIcon.vue_vue_type_script_setup_true_lang.BjdWpbZ0.js";
3
+ /* empty css */
4
+ import { _ as V } from "./UiGallery.vue_vue_type_script_setup_true_lang.pDss49af.js";
5
+ /* empty css */
6
+ const z = (s, u) => ({
7
+ id: 0,
8
+ ticket_id: 0,
9
+ message: s,
10
+ created_at: u,
11
+ updated_at: u,
12
+ files: [],
13
+ attachments: [],
14
+ user: { uuid: "", avatar: null, telegram: null, email: "", name: null }
15
+ }), E = 10, f = ["jpg", "jpeg", "png", "heic", "heif"], J = f.join(", "), M = f.map((s) => `.${s}`).join(","), O = { class: "ui-chat-attachments" }, S = ["accept", "multiple"], $ = { class: "ui-chat-attachments__file" }, x = ["src", "alt"], H = { class: "ui-chat-attachments__overlay" }, D = ["onClick"], B = ["onClick"], P = { class: "ui-chat-attachments__description" }, K = /* @__PURE__ */ L({
16
+ __name: "UiChatAttachments",
17
+ props: {
18
+ maxFiles: { default: () => E },
19
+ accept: { default: () => M }
20
+ },
21
+ emits: ["change"],
22
+ setup(s, { expose: u, emit: A }) {
23
+ const p = A, d = o(), t = o([]), i = o(/* @__PURE__ */ new Map()), C = () => {
24
+ t.value.length >= s.maxFiles || d.value?.click();
25
+ }, y = (e) => {
26
+ const a = e.target;
27
+ if (!a.files?.length) return;
28
+ const n = s.maxFiles - t.value.length, c = Array.from(a.files).slice(0, n);
29
+ t.value.push(...c), p("change", t.value), a.value = "";
30
+ }, F = (e) => {
31
+ const a = i.value.get(t.value[e]);
32
+ a && (window.URL.revokeObjectURL(a), i.value.delete(t.value[e])), t.value.splice(e, 1), p("change", t.value);
33
+ }, k = (e) => (i.value.has(e) || i.value.set(e, window.URL.createObjectURL(e)), i.value.get(e)), r = o(!1), v = o(0), T = U(
34
+ () => t.value.map((e) => ({ file: e }))
35
+ ), b = (e) => {
36
+ v.value = e, r.value = !0;
37
+ };
38
+ return u({ openFileDialog: C }), (e, a) => (_(), m("div", O, [
39
+ l("input", {
40
+ ref_key: "fileInput",
41
+ ref: d,
42
+ type: "file",
43
+ accept: e.accept,
44
+ multiple: e.maxFiles > 1,
45
+ hidden: "",
46
+ onChange: y
47
+ }, null, 40, S),
48
+ (_(!0), m(j, null, I(t.value, (n, c) => (_(), m("div", {
49
+ key: c,
50
+ class: "ui-chat-attachments__item"
51
+ }, [
52
+ l("div", $, [
53
+ l("img", {
54
+ src: k(n),
55
+ alt: n.name
56
+ }, null, 8, x),
57
+ l("div", H, [
58
+ l("button", {
59
+ class: "ui-chat-attachments__btn ui-chat-attachments__btn--show",
60
+ onClick: (w) => b(c)
61
+ }, [
62
+ h(g, {
63
+ name: "visibility",
64
+ type: "400"
65
+ })
66
+ ], 8, D),
67
+ l("button", {
68
+ class: "ui-chat-attachments__btn ui-chat-attachments__btn--remove",
69
+ onClick: (w) => F(c)
70
+ }, [
71
+ h(g, {
72
+ name: "close",
73
+ type: "400"
74
+ })
75
+ ], 8, B)
76
+ ])
77
+ ]),
78
+ l("span", P, R(n.name), 1)
79
+ ]))), 128)),
80
+ h(V, {
81
+ modelValue: r.value,
82
+ "onUpdate:modelValue": a[0] || (a[0] = (n) => r.value = n),
83
+ images: T.value,
84
+ "initial-index": v.value
85
+ }, null, 8, ["modelValue", "images", "initial-index"])
86
+ ]));
87
+ }
88
+ });
89
+ export {
90
+ E as A,
91
+ K as _,
92
+ J as a,
93
+ z as d
94
+ };
@@ -0,0 +1,88 @@
1
+ import { defineComponent as x, ref as r, computed as k, createElementBlock as A, openBlock as d, createElementVNode as e, createVNode as i, createBlock as F, createCommentVNode as $, withCtx as h, renderSlot as v, toDisplayString as n, unref as o, normalizeClass as b } from "vue";
2
+ import { A as m, a as V, _ as E } from "./UiChatAttachments.vue_vue_type_script_setup_true_lang.CCGby5Jd.js";
3
+ /* empty css */
4
+ import { _ as g } from "./UiIconButton.vue_vue_type_script_setup_true_lang.cJvSLKjQ.js";
5
+ import "./style.C3xG1ALc.js";
6
+ import { _ as S } from "./UiTextarea.vue_vue_type_script_setup_true_lang.bD1zcxkh.js";
7
+ /* empty css */
8
+ import { _ as T } from "./UiTooltip.vue_vue_type_script_setup_true_lang.DNZTJcY4.js";
9
+ import { config as c } from "../config/index.js";
10
+ const z = { class: "ui-chat__footer-wrapper" }, B = { class: "ui-chat__footer" }, M = { class: "ui-chat__footer-tooltip" }, N = { class: "ui-chat__footer-input" }, j = /* @__PURE__ */ x({
11
+ __name: "UiChatFooter",
12
+ props: {
13
+ isEmpty: { type: Boolean }
14
+ },
15
+ emits: ["submit", "attach"],
16
+ setup(R, { emit: y }) {
17
+ const u = y, a = r(null), l = r([]), p = r(), C = k(() => l.value.length >= m), _ = () => {
18
+ a.value && u("submit", { message: a.value, files: l.value });
19
+ };
20
+ return (f, t) => (d(), A("div", z, [
21
+ e("div", B, [
22
+ C.value ? $("", !0) : (d(), F(T, { key: 0 }, {
23
+ text: h(() => [
24
+ e("p", M, [
25
+ e("span", null, n(o(c).uiChat.translations.maxFiles) + ": " + n(o(m)), 1),
26
+ e("span", null, n(o(c).uiChat.translations.supportsFormats) + ": " + n(o(V)), 1)
27
+ ])
28
+ ]),
29
+ default: h(() => [
30
+ e("div", {
31
+ style: { "margin-left": "-16px" },
32
+ onClick: t[0] || (t[0] = (s) => p.value?.openFileDialog())
33
+ }, [
34
+ v(f.$slots, "footer-left", {}, () => [
35
+ i(g, {
36
+ "icon-name": "attach-file_add",
37
+ type: "clear",
38
+ "icon-type": "100",
39
+ "icon-color": "#1968e5",
40
+ size: "xl"
41
+ })
42
+ ])
43
+ ])
44
+ ]),
45
+ _: 3
46
+ })),
47
+ e("div", N, [
48
+ i(S, {
49
+ modelValue: a.value,
50
+ "onUpdate:modelValue": t[1] || (t[1] = (s) => a.value = s),
51
+ size: "auto",
52
+ placeholder: o(c).uiChat.translations.messagePlaceholder,
53
+ submitOnEnter: "",
54
+ onSubmit: _,
55
+ "is-empty-value-null": ""
56
+ }, null, 8, ["modelValue", "placeholder"])
57
+ ]),
58
+ e("div", {
59
+ style: { "margin-right": "-16px" },
60
+ onClick: _
61
+ }, [
62
+ v(f.$slots, "footer-right", {}, () => [
63
+ i(g, {
64
+ "icon-name": "send",
65
+ type: "clear",
66
+ "icon-type": "400",
67
+ "icon-color": "#1968e5",
68
+ size: "xl",
69
+ disabled: !a.value
70
+ }, null, 8, ["disabled"])
71
+ ])
72
+ ])
73
+ ]),
74
+ i(E, {
75
+ ref_key: "attachmentsRef",
76
+ ref: p,
77
+ "max-files": o(m),
78
+ class: b(["ui-chat__footer-attachments", { "ui-chat__footer-attachments--empty": !l.value.length }]),
79
+ onChange: t[2] || (t[2] = (s) => {
80
+ l.value = s, u("attach", s);
81
+ })
82
+ }, null, 8, ["max-files", "class"])
83
+ ]));
84
+ }
85
+ });
86
+ export {
87
+ j as _
88
+ };