sm-click-library-ui 0.0.184 → 0.0.185
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.
- package/README.md +3 -3
- package/dist/sm-click-library-ui.es.js +54 -32
- package/dist/sm-click-library-ui.umd.js +2 -2
- package/dist/style.css +1 -1
- package/dist/tailwind.css +228 -228
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# SM Library UI
|
|
2
|
-
|
|
3
|
-
# 🚀 Get Started:
|
|
1
|
+
# SM Library UI
|
|
2
|
+
|
|
3
|
+
# 🚀 Get Started:
|
|
@@ -90,7 +90,7 @@ const gt = (e, n) => {
|
|
|
90
90
|
for (const [a, r] of n)
|
|
91
91
|
t[a] = r;
|
|
92
92
|
return t;
|
|
93
|
-
}, Gl = (e) => (mt("data-v-
|
|
93
|
+
}, Gl = (e) => (mt("data-v-265f04f1"), e = e(), ht(), e), Zl = { class: "line-clamp-2 uppercase text-xs truncate text-white" }, Kl = /* @__PURE__ */ Gl(() => /* @__PURE__ */ p("path", {
|
|
94
94
|
"fill-rule": "evenodd",
|
|
95
95
|
d: "M18.4 10.3A2 2 0 0 0 17 7H7a2 2 0 0 0-1.5 3.3l4.9 5.9a2 2 0 0 0 3 0l5-6Z",
|
|
96
96
|
"clip-rule": "evenodd"
|
|
@@ -148,7 +148,7 @@ const gt = (e, n) => {
|
|
|
148
148
|
])) : B("", !0)
|
|
149
149
|
], 512));
|
|
150
150
|
}
|
|
151
|
-
}, ts = /* @__PURE__ */ gt(ti, [["__scopeId", "data-v-
|
|
151
|
+
}, ts = /* @__PURE__ */ gt(ti, [["__scopeId", "data-v-265f04f1"]]), ns = (e) => (mt("data-v-f3147d63"), e = e(), ht(), e), ni = {
|
|
152
152
|
key: 0,
|
|
153
153
|
class: "modal_head"
|
|
154
154
|
}, ai = /* @__PURE__ */ ns(() => /* @__PURE__ */ p("div", { class: "modal-overlay absolute h-full w-full bg-gray-600 opacity-50" }, null, -1)), ri = { class: "modal_responsive" }, oi = { class: "flex min-h-full items-center justify-center text-center sm:p-0" }, si = { class: "modal_tittle text-current" }, li = { class: "flex items-center gap-3" }, ii = ["innerHTML"], ui = { class: "text-xl font-semibold flex items-center gap-2" }, ci = /* @__PURE__ */ ns(() => /* @__PURE__ */ p("svg", {
|
|
@@ -230,7 +230,7 @@ const gt = (e, n) => {
|
|
|
230
230
|
])) : B("", !0);
|
|
231
231
|
};
|
|
232
232
|
}
|
|
233
|
-
}, as = /* @__PURE__ */ gt(pi, [["__scopeId", "data-v-
|
|
233
|
+
}, as = /* @__PURE__ */ gt(pi, [["__scopeId", "data-v-f3147d63"]]), vi = { class: "flex justify-left gap-3" }, yi = {
|
|
234
234
|
key: 0,
|
|
235
235
|
class: "text-green-500",
|
|
236
236
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -10294,7 +10294,7 @@ const hh = {
|
|
|
10294
10294
|
this.$emit("update:modelValue", !1);
|
|
10295
10295
|
}
|
|
10296
10296
|
}
|
|
10297
|
-
}, gl = (e) => (mt("data-v-
|
|
10297
|
+
}, gl = (e) => (mt("data-v-01066386"), e = e(), ht(), e), ph = {
|
|
10298
10298
|
key: 0,
|
|
10299
10299
|
class: "modal-head text-white"
|
|
10300
10300
|
}, vh = /* @__PURE__ */ gl(() => /* @__PURE__ */ p("div", { class: "modal-overlay" }, null, -1)), yh = { class: "modal_responsive" }, gh = { class: "flex min-h-full items-center justify-center text-center" }, wh = { class: "modal-size w-full" }, bh = { class: "modal-background bg-base-200" }, _h = { class: "modal-title" }, kh = /* @__PURE__ */ gl(() => /* @__PURE__ */ p("svg", {
|
|
@@ -10342,7 +10342,7 @@ function Th(e, n, t, a, r, o) {
|
|
|
10342
10342
|
])
|
|
10343
10343
|
])) : B("", !0);
|
|
10344
10344
|
}
|
|
10345
|
-
const wl = /* @__PURE__ */ gt(hh, [["render", Th], ["__scopeId", "data-v-
|
|
10345
|
+
const wl = /* @__PURE__ */ gt(hh, [["render", Th], ["__scopeId", "data-v-01066386"]]), Fa = (e) => (mt("data-v-1e35871d"), e = e(), ht(), e), Dh = { class: "container" }, Ph = { class: "form-group" }, Sh = /* @__PURE__ */ Fa(() => /* @__PURE__ */ p("label", { for: "contentInput" }, "Horário", -1)), Ch = { class: "form-group" }, Oh = /* @__PURE__ */ Fa(() => /* @__PURE__ */ p("label", { for: "titleInput" }, "Título", -1)), $h = { class: "form-group" }, Rh = /* @__PURE__ */ Fa(() => /* @__PURE__ */ p("label", { for: "contentInput" }, "Conteúdo", -1)), Nh = /* @__PURE__ */ Fa(() => /* @__PURE__ */ p("div", { class: "button-container" }, [
|
|
10346
10346
|
/* @__PURE__ */ p("button", { class: "save-button" }, "Salvar")
|
|
10347
10347
|
], -1)), Eh = {
|
|
10348
10348
|
__name: "reminder",
|
|
@@ -10420,7 +10420,7 @@ const wl = /* @__PURE__ */ gt(hh, [["render", Th], ["__scopeId", "data-v-e2c896d
|
|
|
10420
10420
|
Nh
|
|
10421
10421
|
]));
|
|
10422
10422
|
}
|
|
10423
|
-
}, Fh = /* @__PURE__ */ gt(Eh, [["__scopeId", "data-v-
|
|
10423
|
+
}, Fh = /* @__PURE__ */ gt(Eh, [["__scopeId", "data-v-1e35871d"]]);
|
|
10424
10424
|
function Yh(e) {
|
|
10425
10425
|
return { all: e = e || /* @__PURE__ */ new Map(), on: function(n, t) {
|
|
10426
10426
|
var a = e.get(n);
|
|
@@ -10449,7 +10449,7 @@ const Lh = () => {
|
|
|
10449
10449
|
group: e.group || ""
|
|
10450
10450
|
};
|
|
10451
10451
|
return Eo.emit("notify", { notification: t, timeout: n }), () => Eo.emit("close", t.id);
|
|
10452
|
-
}, Yo = Ih(), la = (e) => (mt("data-v-
|
|
10452
|
+
}, Yo = Ih(), la = (e) => (mt("data-v-b4cc7e1d"), e = e(), ht(), e), Bh = { class: "container" }, qh = { class: "form-group" }, Wh = /* @__PURE__ */ la(() => /* @__PURE__ */ p("label", { for: "contentInput" }, "Horário", -1)), Hh = { class: "form-group" }, jh = /* @__PURE__ */ la(() => /* @__PURE__ */ p("label", { for: "contentInput" }, "Conteúdo", -1)), zh = {
|
|
10453
10453
|
key: 0,
|
|
10454
10454
|
class: "custom-fields-container border border-base-100"
|
|
10455
10455
|
}, Vh = { class: "custom-fields-header bg-base-300" }, Uh = /* @__PURE__ */ la(() => /* @__PURE__ */ p("svg", {
|
|
@@ -10665,7 +10665,7 @@ const Lh = () => {
|
|
|
10665
10665
|
]);
|
|
10666
10666
|
};
|
|
10667
10667
|
}
|
|
10668
|
-
}, o1 = /* @__PURE__ */ gt(r1, [["__scopeId", "data-v-
|
|
10668
|
+
}, o1 = /* @__PURE__ */ gt(r1, [["__scopeId", "data-v-b4cc7e1d"]]), s1 = (e) => (mt("data-v-c896f01d"), e = e(), ht(), e), l1 = { key: 0 }, i1 = { key: 1 }, u1 = { class: "main-container" }, c1 = {
|
|
10669
10669
|
key: 0,
|
|
10670
10670
|
class: "select-container"
|
|
10671
10671
|
}, d1 = ["value"], f1 = /* @__PURE__ */ s1(() => /* @__PURE__ */ p("svg", {
|
|
@@ -10765,7 +10765,7 @@ const Lh = () => {
|
|
|
10765
10765
|
_: 1
|
|
10766
10766
|
}, 8, ["modelValue"]));
|
|
10767
10767
|
}
|
|
10768
|
-
}, h1 = /* @__PURE__ */ gt(m1, [["__scopeId", "data-v-
|
|
10768
|
+
}, h1 = /* @__PURE__ */ gt(m1, [["__scopeId", "data-v-c896f01d"]]), En = (e) => (mt("data-v-de5087ab"), e = e(), ht(), e), p1 = { class: "calendar-container text-white" }, v1 = { class: "calendar-header bg-base-300" }, y1 = /* @__PURE__ */ En(() => /* @__PURE__ */ p("svg", {
|
|
10769
10769
|
class: "icon",
|
|
10770
10770
|
"aria-hidden": "true",
|
|
10771
10771
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -11109,7 +11109,7 @@ const Lh = () => {
|
|
|
11109
11109
|
], 64);
|
|
11110
11110
|
};
|
|
11111
11111
|
}
|
|
11112
|
-
}, bl = /* @__PURE__ */ gt(q1, [["__scopeId", "data-v-
|
|
11112
|
+
}, bl = /* @__PURE__ */ gt(q1, [["__scopeId", "data-v-de5087ab"]]), W1 = { class: "flex flex-col text-center" }, H1 = { class: "flex flex-col space-y-3 justify-center" }, j1 = { class: "space-x-4 flex-col text-black justify-center" }, z1 = ["onUpdate:modelValue", "onInput", "onKeydown"], _l = {
|
|
11113
11113
|
__name: "mfa",
|
|
11114
11114
|
props: {
|
|
11115
11115
|
eventHandling: {
|
|
@@ -11256,10 +11256,14 @@ function ap(e, n, t) {
|
|
|
11256
11256
|
}
|
|
11257
11257
|
function rp() {
|
|
11258
11258
|
const e = Gr(), n = async (l) => {
|
|
11259
|
-
const u = e.attendants.find(
|
|
11259
|
+
const u = e.attendants.find(
|
|
11260
|
+
(d) => d.id === l
|
|
11261
|
+
);
|
|
11260
11262
|
if (u)
|
|
11261
11263
|
try {
|
|
11262
|
-
const d = await jt.get(
|
|
11264
|
+
const d = await jt.get(
|
|
11265
|
+
`${Ja}?attendant=${l}&page=1`
|
|
11266
|
+
);
|
|
11263
11267
|
u.messages = d.data.results.reverse(), u.hasNextPage = d.data.next !== null, u.currentPage = 2, u.internal_chat = {
|
|
11264
11268
|
channel_id: d.data.channel_id,
|
|
11265
11269
|
unread: 0
|
|
@@ -11268,13 +11272,18 @@ function rp() {
|
|
|
11268
11272
|
console.error("Erro ao buscar mensagens:", d);
|
|
11269
11273
|
}
|
|
11270
11274
|
}, t = async (l) => {
|
|
11271
|
-
const u = e.attendants.find(
|
|
11275
|
+
const u = e.attendants.find(
|
|
11276
|
+
(d) => d.id === l
|
|
11277
|
+
);
|
|
11272
11278
|
if (!(!u || !u.hasNextPage))
|
|
11273
11279
|
try {
|
|
11274
11280
|
const d = await jt.get(
|
|
11275
11281
|
`${Ja}?attendant=${l}&page=${u.currentPage}`
|
|
11276
11282
|
);
|
|
11277
|
-
u.messages = [
|
|
11283
|
+
u.messages = [
|
|
11284
|
+
...d.data.results.reverse(),
|
|
11285
|
+
...u.messages
|
|
11286
|
+
], u.hasNextPage = d.data.next !== null, u.currentPage++;
|
|
11278
11287
|
} catch (d) {
|
|
11279
11288
|
console.error("Erro ao carregar mais mensagens:", d);
|
|
11280
11289
|
}
|
|
@@ -11287,13 +11296,19 @@ function rp() {
|
|
|
11287
11296
|
return ((h = f.internal_chat) == null ? void 0 : h.channel_id) === i.channel_id;
|
|
11288
11297
|
}
|
|
11289
11298
|
);
|
|
11290
|
-
c ? (c.messages = c.messages || [], c.messages.find(
|
|
11299
|
+
c ? (c.messages = c.messages || [], c.messages.find(
|
|
11300
|
+
(h) => h.id === i.id
|
|
11301
|
+
) || (c.messages.push(i), (!u || c.id !== d) && (c.internal_chat.unread = (c.internal_chat.unread || 0) + 1))) : console.error("Atendente não encontrado para o canal especificado.");
|
|
11291
11302
|
}, r = (l) => {
|
|
11292
|
-
const u = e.attendants.find(
|
|
11303
|
+
const u = e.attendants.find(
|
|
11304
|
+
(d) => d.id === l
|
|
11305
|
+
);
|
|
11293
11306
|
u && (u.internal_chat.unread = 0);
|
|
11294
11307
|
}, o = async (l, u, d) => {
|
|
11295
11308
|
var f;
|
|
11296
|
-
const i = e.attendants.find(
|
|
11309
|
+
const i = e.attendants.find(
|
|
11310
|
+
(h) => h.id === l
|
|
11311
|
+
);
|
|
11297
11312
|
if (!i || !((f = i.internal_chat) != null && f.channel_id)) return;
|
|
11298
11313
|
const c = {
|
|
11299
11314
|
id: ap(),
|
|
@@ -11314,7 +11329,9 @@ function rp() {
|
|
|
11314
11329
|
console.error("Erro ao enviar mensagem:", h);
|
|
11315
11330
|
}
|
|
11316
11331
|
}, s = (l) => {
|
|
11317
|
-
const u = e.attendants.find(
|
|
11332
|
+
const u = e.attendants.find(
|
|
11333
|
+
(d) => d.id === l
|
|
11334
|
+
);
|
|
11318
11335
|
return u ? u.hasNextPage : !1;
|
|
11319
11336
|
};
|
|
11320
11337
|
return {
|
|
@@ -11328,7 +11345,7 @@ function rp() {
|
|
|
11328
11345
|
resetUnreadMessages: r
|
|
11329
11346
|
};
|
|
11330
11347
|
}
|
|
11331
|
-
const op = (e) => (mt("data-v-
|
|
11348
|
+
const op = (e) => (mt("data-v-1d00f344"), e = e(), ht(), e), sp = { class: "avatar bg-[#404857] shadow shadow-gray-900 dark:shadow-gray-700 dark:bg-gray-300 text-gray-100 dark:text-gray-500" }, lp = {
|
|
11332
11349
|
key: 0,
|
|
11333
11350
|
style: { "padding-top": "0.5rem" },
|
|
11334
11351
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -11356,7 +11373,7 @@ const op = (e) => (mt("data-v-7d8b2820"), e = e(), ht(), e), sp = { class: "avat
|
|
|
11356
11373
|
}, null, 8, cp)) : (v(), A("svg", lp, up))
|
|
11357
11374
|
]));
|
|
11358
11375
|
}
|
|
11359
|
-
}, kl = /* @__PURE__ */ gt(dp, [["__scopeId", "data-v-
|
|
11376
|
+
}, kl = /* @__PURE__ */ gt(dp, [["__scopeId", "data-v-1d00f344"]]), xl = (e) => (mt("data-v-69007262"), e = e(), ht(), e), fp = { class: "attendants-container" }, mp = { class: "atendentes-list bg-base-300" }, hp = {
|
|
11360
11377
|
key: 0,
|
|
11361
11378
|
class: "empty-message bg-base-200"
|
|
11362
11379
|
}, pp = ["onClick"], vp = { class: "atendente-main" }, yp = { class: "atendente-name" }, gp = { class: "flex items-center gap-4" }, wp = {
|
|
@@ -11421,7 +11438,7 @@ const op = (e) => (mt("data-v-7d8b2820"), e = e(), ht(), e), sp = { class: "avat
|
|
|
11421
11438
|
_p
|
|
11422
11439
|
]));
|
|
11423
11440
|
}
|
|
11424
|
-
}, xp = /* @__PURE__ */ gt(kp, [["__scopeId", "data-v-
|
|
11441
|
+
}, xp = /* @__PURE__ */ gt(kp, [["__scopeId", "data-v-69007262"]]);
|
|
11425
11442
|
function Ap(e, n = null) {
|
|
11426
11443
|
if (!e)
|
|
11427
11444
|
return !1;
|
|
@@ -13159,7 +13176,7 @@ const Uv = {
|
|
|
13159
13176
|
weekStartsOn: 0,
|
|
13160
13177
|
firstWeekContainsDate: 1
|
|
13161
13178
|
}
|
|
13162
|
-
}, ia = (e) => (mt("data-v-
|
|
13179
|
+
}, ia = (e) => (mt("data-v-5940c4f3"), e = e(), ht(), e), ky = { class: "messages-container bg-base-300" }, xy = { class: "header-intern bg-base-300" }, Ay = /* @__PURE__ */ ia(() => /* @__PURE__ */ p("svg", {
|
|
13163
13180
|
class: "w-6 h-6",
|
|
13164
13181
|
"aria-hidden": "true",
|
|
13165
13182
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -13369,7 +13386,7 @@ const Uv = {
|
|
|
13369
13386
|
])
|
|
13370
13387
|
]));
|
|
13371
13388
|
}
|
|
13372
|
-
}, Fy = /* @__PURE__ */ gt(Ey, [["__scopeId", "data-v-
|
|
13389
|
+
}, Fy = /* @__PURE__ */ gt(Ey, [["__scopeId", "data-v-5940c4f3"]]), Yy = {}, Ly = (e) => (mt("data-v-17a2cc35"), e = e(), ht(), e), Iy = { class: "loading" }, By = /* @__PURE__ */ Ly(() => /* @__PURE__ */ p("svg", {
|
|
13373
13390
|
class: "spinner",
|
|
13374
13391
|
xmlns: "http://www.w3.org/2000/svg",
|
|
13375
13392
|
fill: "none",
|
|
@@ -13394,7 +13411,7 @@ const Uv = {
|
|
|
13394
13411
|
function Wy(e, n) {
|
|
13395
13412
|
return v(), A("div", Iy, qy);
|
|
13396
13413
|
}
|
|
13397
|
-
const Hy = /* @__PURE__ */ gt(Yy, [["render", Wy], ["__scopeId", "data-v-
|
|
13414
|
+
const Hy = /* @__PURE__ */ gt(Yy, [["render", Wy], ["__scopeId", "data-v-17a2cc35"]]), La = (e) => (mt("data-v-49dafe1e"), e = e(), ht(), e), jy = /* @__PURE__ */ La(() => /* @__PURE__ */ p("span", {
|
|
13398
13415
|
style: { "margin-top": "auto", "margin-bottom": "auto" },
|
|
13399
13416
|
class: "chat-icon my-auto"
|
|
13400
13417
|
}, [
|
|
@@ -13595,7 +13612,7 @@ const Hy = /* @__PURE__ */ gt(Yy, [["render", Wy], ["__scopeId", "data-v-bd52dde
|
|
|
13595
13612
|
], 6)
|
|
13596
13613
|
], 512));
|
|
13597
13614
|
}
|
|
13598
|
-
}, Ol = /* @__PURE__ */ gt(eg, [["__scopeId", "data-v-
|
|
13615
|
+
}, Ol = /* @__PURE__ */ gt(eg, [["__scopeId", "data-v-49dafe1e"]]), $l = ea("department", {
|
|
13599
13616
|
state: () => ({
|
|
13600
13617
|
departments: [],
|
|
13601
13618
|
count: null
|
|
@@ -13612,7 +13629,7 @@ const Hy = /* @__PURE__ */ gt(Yy, [["render", Wy], ["__scopeId", "data-v-bd52dde
|
|
|
13612
13629
|
}
|
|
13613
13630
|
}
|
|
13614
13631
|
}
|
|
13615
|
-
}), ua = (e) => (mt("data-v-
|
|
13632
|
+
}), ua = (e) => (mt("data-v-28b4946c"), e = e(), ht(), e), tg = { class: "depart-select-container" }, ng = { class: "search-container relative shadow shadow-gray-900 dark:shadow-gray-500" }, ag = ["placeholder"], rg = { class: "icon-container" }, og = {
|
|
13616
13633
|
key: 0,
|
|
13617
13634
|
xmlns: "http://www.w3.org/2000/svg",
|
|
13618
13635
|
fill: "none",
|
|
@@ -13667,13 +13684,18 @@ const Hy = /* @__PURE__ */ gt(Yy, [["render", Wy], ["__scopeId", "data-v-bd52dde
|
|
|
13667
13684
|
department: { type: Array, default: null },
|
|
13668
13685
|
modal_filter: { type: String, default: null },
|
|
13669
13686
|
multiSelect: { type: Boolean, default: !0 },
|
|
13670
|
-
permissions: { type: Boolean, default: !1 }
|
|
13687
|
+
permissions: { type: Boolean, default: !1 },
|
|
13688
|
+
externalDepartments: { type: Array, default: null }
|
|
13689
|
+
// Nova prop
|
|
13671
13690
|
},
|
|
13672
13691
|
emits: ["depart"],
|
|
13673
13692
|
setup(e, { emit: n }) {
|
|
13674
|
-
const t = e, a = n, r = $l(), o = L(""), s = L([]), l = L(!1), u = L(!1), d = G(() =>
|
|
13675
|
-
|
|
13676
|
-
|
|
13693
|
+
const t = e, a = n, r = $l(), o = L(""), s = L([]), l = L(!1), u = L(!1), d = G(() => {
|
|
13694
|
+
const g = t.externalDepartments || r.departments;
|
|
13695
|
+
return o.value ? g.filter(
|
|
13696
|
+
(P) => P.name.toLowerCase().includes(o.value.toLowerCase())
|
|
13697
|
+
) : g;
|
|
13698
|
+
});
|
|
13677
13699
|
Ye(() => {
|
|
13678
13700
|
c(), i();
|
|
13679
13701
|
}), We(
|
|
@@ -13776,7 +13798,7 @@ const Hy = /* @__PURE__ */ gt(Yy, [["render", Wy], ["__scopeId", "data-v-bd52dde
|
|
|
13776
13798
|
])
|
|
13777
13799
|
]));
|
|
13778
13800
|
}
|
|
13779
|
-
}, Rl = /* @__PURE__ */ gt(Ag, [["__scopeId", "data-v-
|
|
13801
|
+
}, Rl = /* @__PURE__ */ gt(Ag, [["__scopeId", "data-v-28b4946c"]]), Ia = (e) => (mt("data-v-9344c7c4"), e = e(), ht(), e), Mg = { class: "depart-select-container" }, Tg = { class: "search-container relative shadow shadow-gray-900 dark:shadow-gray-500" }, Dg = ["placeholder"], Pg = { class: "icon-container" }, Sg = {
|
|
13780
13802
|
key: 0,
|
|
13781
13803
|
xmlns: "http://www.w3.org/2000/svg",
|
|
13782
13804
|
fill: "none",
|
|
@@ -13959,7 +13981,7 @@ const Hy = /* @__PURE__ */ gt(Yy, [["render", Wy], ["__scopeId", "data-v-bd52dde
|
|
|
13959
13981
|
])
|
|
13960
13982
|
]));
|
|
13961
13983
|
}
|
|
13962
|
-
}, Nl = /* @__PURE__ */ gt(Qg, [["__scopeId", "data-v-
|
|
13984
|
+
}, Nl = /* @__PURE__ */ gt(Qg, [["__scopeId", "data-v-9344c7c4"]]);
|
|
13963
13985
|
ea("debug", {
|
|
13964
13986
|
state: () => ({
|
|
13965
13987
|
message: "Debug store initialized"
|