@webitel/ui-sdk 26.8.94 → 26.8.96

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 (32) hide show
  1. package/dist/{clients-Pw9u3exJ.js → clients-9rILOBrM.js} +60 -56
  2. package/dist/{components-DuzJmfos.js → components-Dost4BNg.js} +557 -601
  3. package/dist/ui-sdk.css +1 -1
  4. package/dist/ui-sdk.js +2 -2
  5. package/dist/ui-sdk.umd.cjs +660 -657
  6. package/dist/wt-badge-tosjsmJU.js +53 -0
  7. package/dist/{wt-button-BwPz__rU.js → wt-button-CNQAK85M.js} +1 -1
  8. package/dist/{wt-chat-emoji-Cbxrn6eQ.js → wt-chat-emoji-DXC4OU5L.js} +3 -3
  9. package/dist/wt-checkbox-BBdi-1oS.js +87 -0
  10. package/dist/{wt-display-chip-items-9OseXL04.js → wt-display-chip-items-C1EJ62xe.js} +1 -1
  11. package/dist/{wt-icon-iRDqWkjp.js → wt-icon-ClDNfV5I.js} +1 -0
  12. package/dist/wt-icon-btn-DDElLZil.js +30 -0
  13. package/dist/{wt-notifications-bar-ZIMKBDqL.js → wt-notifications-bar-DZidZ2VZ.js} +1 -1
  14. package/dist/{wt-player-CqjIR3Q-.js → wt-player-CxMTs3eF.js} +2 -2
  15. package/dist/{wt-send-message-popup-Dr8dIFb4.js → wt-send-message-popup-BSLk9osS.js} +2 -2
  16. package/dist/wt-table-DHpnLu_f.js +438 -0
  17. package/dist/{wt-toast-BcgNZFCD.js → wt-toast-DKjRJFE2.js} +1 -1
  18. package/dist/{wt-tree-table-D4nCNUq_.js → wt-tree-table-DDH6vMh7.js} +2 -1
  19. package/dist/{wt-type-extension-value-input-CnKUoOuC.js → wt-type-extension-value-input-ZqfUFvcs.js} +2 -2
  20. package/dist/{wt-vidstack-player-BBRsZ-GL.js → wt-vidstack-player-BtSrpzDY.js} +3 -3
  21. package/package.json +1 -1
  22. package/src/assets/icons/sprite/index.ts +2 -0
  23. package/src/assets/icons/sprite/table-filter.svg +3 -0
  24. package/src/components/wt-table/_internals/wt-table-column-filter.vue +76 -0
  25. package/src/components/wt-table/types/WtTable.ts +20 -0
  26. package/src/components/wt-table/wt-table.vue +75 -7
  27. package/types/.tsbuildinfo +1 -1
  28. package/types/components/wt-table/_internals/wt-table-column-filter.vue.d.ts +29 -0
  29. package/types/components/wt-table/types/WtTable.d.ts +17 -0
  30. package/types/components/wt-table/wt-table.vue.d.ts +25 -12
  31. package/dist/wt-icon-btn-BzraLc-w.js +0 -110
  32. package/dist/wt-table-C-DMIrud.js +0 -377
@@ -1,7 +1,7 @@
1
1
  import { r as e, s as t } from "./dist-DB8lC4KJ.js";
2
2
  import { a as n, i as r, n as i, t as a } from "./genClient-5JkKKac8.js";
3
3
  import { i as o, r as s } from "./caseConverters-6cy_SaV5.js";
4
- import { E as c } from "./components-DuzJmfos.js";
4
+ import { E as c } from "./components-Dost4BNg.js";
5
5
  import { m as l } from "./enums-B_9ZBu01.js";
6
6
  import { i as u, o as d } from "./utils-DReAiJBV.js";
7
7
  import { t as f } from "./deep-copy-7O5ej7vT.js";
@@ -39191,7 +39191,7 @@ var H = g.number().nullable().optional(), U = (e = 1) => g.union([g.string().min
39191
39191
  }), J = g.object({
39192
39192
  id: g.union([g.string(), g.number()]).optional(),
39193
39193
  name: g.string().optional()
39194
- }), Y = J.refine((e) => G(e), W("required")), X = g.object({
39194
+ }), Y = J.refine((e) => G(e), W("required")), qe = /^\+?[A-Za-z0-9\-_.!~*'()]+$/, Je = g.string().min(1).refine((e) => e === "" || qe.test(e), W("phoneNumberSymbolsValidator")), X = g.object({
39195
39195
  key: g.string(),
39196
39196
  value: g.string()
39197
39197
  });
@@ -39216,7 +39216,7 @@ g.object({
39216
39216
  });
39217
39217
  //#endregion
39218
39218
  //#region packages/api-services/src/validations/calendar/calendar.validations.ts
39219
- var qe = "hourRange", Z = "timerangeStartLessThanEnd", Je = "timerangeNotIntersect", Q = g.number().int().refine((e) => e >= 0 && e < 1440, W(qe)), Ye = (e) => {
39219
+ var Ye = "hourRange", Z = "timerangeStartLessThanEnd", Xe = "timerangeNotIntersect", Q = g.number().int().refine((e) => e >= 0 && e < 1440, W(Ye)), Ze = (e) => {
39220
39220
  let t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Map();
39221
39221
  return e.forEach((e, t) => {
39222
39222
  let r = n.get(e.day) ?? [];
@@ -39234,7 +39234,7 @@ var qe = "hourRange", Z = "timerangeStartLessThanEnd", Je = "timerangeNotInterse
39234
39234
  });
39235
39235
  });
39236
39236
  }), t;
39237
- }, Xe = g.object({
39237
+ }, Qe = g.object({
39238
39238
  day: g.number().int().min(0).max(6),
39239
39239
  disabled: g.boolean().default(!1),
39240
39240
  start: Q,
@@ -39249,46 +39249,46 @@ var qe = "hourRange", Z = "timerangeStartLessThanEnd", Je = "timerangeNotInterse
39249
39249
  path: ["end"],
39250
39250
  ...W(Z)
39251
39251
  }));
39252
- }), Ze = g.array(Xe).superRefine((e, t) => {
39253
- Ye(e).forEach((e) => {
39252
+ }), $e = g.array(Qe).superRefine((e, t) => {
39253
+ Ze(e).forEach((e) => {
39254
39254
  t.addIssue({
39255
39255
  code: "custom",
39256
39256
  path: [e, "start"],
39257
- ...W(Je)
39257
+ ...W(Xe)
39258
39258
  }), t.addIssue({
39259
39259
  code: "custom",
39260
39260
  path: [e, "end"],
39261
- ...W(Je)
39261
+ ...W(Xe)
39262
39262
  });
39263
39263
  });
39264
- }), Qe = g.object({
39264
+ }), et = g.object({
39265
39265
  name: g.string().min(1),
39266
39266
  date: g.union([g.number(), g.string()]).optional(),
39267
39267
  repeat: g.boolean().optional(),
39268
39268
  working: g.boolean().optional(),
39269
39269
  workStart: Q.nullish(),
39270
39270
  workStop: Q.nullish()
39271
- }), $e = () => Array.from({ length: 7 }, (e, t) => ({
39271
+ }), tt = () => Array.from({ length: 7 }, (e, t) => ({
39272
39272
  day: t,
39273
39273
  disabled: !1,
39274
39274
  start: 540,
39275
39275
  end: 1200
39276
- })), et = () => Array.from({ length: 7 }, (e, t) => ({
39276
+ })), nt = () => Array.from({ length: 7 }, (e, t) => ({
39277
39277
  day: t,
39278
39278
  disabled: !0,
39279
39279
  start: 540,
39280
39280
  end: 1200
39281
- })), tt = () => Date.now();
39281
+ })), rt = () => Date.now();
39282
39282
  g.object({
39283
39283
  name: g.string().min(1),
39284
39284
  description: g.string().optional().default(""),
39285
39285
  timezone: q,
39286
- startAt: g.any().optional().default(tt),
39287
- endAt: g.any().optional().default(tt),
39286
+ startAt: g.any().optional().default(rt),
39287
+ endAt: g.any().optional().default(rt),
39288
39288
  expires: g.boolean().optional().default(!1),
39289
- accepts: Ze.default($e),
39290
- specials: Ze.default(et),
39291
- excepts: g.array(Qe).optional().default([])
39289
+ accepts: $e.default(tt),
39290
+ specials: $e.default(nt),
39291
+ excepts: g.array(et).optional().default([])
39292
39292
  });
39293
39293
  //#endregion
39294
39294
  //#region packages/api-services/src/validations/case/case.validations.ts
@@ -39392,19 +39392,19 @@ g.object({
39392
39392
  });
39393
39393
  //#endregion
39394
39394
  //#region packages/api-services/src/validations/contactGroup/contactGroup.validations.ts
39395
- var nt = {
39395
+ var it = {
39396
39396
  name: g.string().min(1),
39397
39397
  description: g.string().optional(),
39398
39398
  enabled: g.boolean().default(!0),
39399
39399
  type: g.string().optional()
39400
- }, rt = g.object({
39401
- ...nt,
39400
+ }, at = g.object({
39401
+ ...it,
39402
39402
  defaultGroup: K.optional()
39403
- }), it = g.object({
39404
- ...nt,
39403
+ }), ot = g.object({
39404
+ ...it,
39405
39405
  defaultGroup: q
39406
39406
  });
39407
- g.discriminatedUnion("type", [rt.extend({ type: g.literal(y.Static) }), it.extend({ type: g.literal(y.Dynamic) })]), g.object({
39407
+ g.discriminatedUnion("type", [at.extend({ type: g.literal(y.Static) }), ot.extend({ type: g.literal(y.Dynamic) })]), g.object({
39408
39408
  expression: g.string().min(1),
39409
39409
  group: q,
39410
39410
  assignee: K.nullish()
@@ -39415,17 +39415,17 @@ g.discriminatedUnion("type", [rt.extend({ type: g.literal(y.Static) }), it.exten
39415
39415
  });
39416
39416
  //#endregion
39417
39417
  //#region packages/api-services/src/validations/device/device.validations.ts
39418
- var at = /^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$/, ot = /^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$/, st = g.string().optional().default("").refine((e) => e ? e === "127.0.0.1" || e === "0.0.0.0" ? !1 : at.test(e) : !0, W("ipValidator")), ct = g.string().optional().default("").refine((e) => !e || ot.test(e), W("macValidator"));
39418
+ var st = /^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$/, ct = /^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$/, lt = g.string().optional().default("").refine((e) => e ? e === "127.0.0.1" || e === "0.0.0.0" ? !1 : st.test(e) : !0, W("ipValidator")), ut = g.string().optional().default("").refine((e) => !e || ct.test(e), W("macValidator"));
39419
39419
  g.object({
39420
39420
  id: g.string().optional(),
39421
39421
  name: g.string().min(1).default(""),
39422
39422
  account: g.string().min(1).default(""),
39423
39423
  password: g.string().optional().default(""),
39424
39424
  user: J.optional().default({}),
39425
- ip: st,
39425
+ ip: lt,
39426
39426
  brand: g.string().optional().default(""),
39427
39427
  model: g.string().optional().default(""),
39428
- mac: ct,
39428
+ mac: ut,
39429
39429
  hotdesk: g.boolean().optional().default(!1),
39430
39430
  hotdesks: g.array(g.string()).optional().default([])
39431
39431
  }).superRefine((e, t) => {
@@ -39459,13 +39459,13 @@ g.object({
39459
39459
  });
39460
39460
  //#endregion
39461
39461
  //#region packages/api-services/src/validations/queue/queue.rules.ts
39462
- var lt = {
39462
+ var dt = {
39463
39463
  required: ["name"],
39464
39464
  minValue: {
39465
39465
  priority: 0,
39466
39466
  "payload.minOnlineAgents": 0
39467
39467
  }
39468
- }, ut = {
39468
+ }, ft = {
39469
39469
  [l.OFFLINE_QUEUE]: {
39470
39470
  required: ["strategy", "calendar"],
39471
39471
  minValue: { "payload.originateTimeout": 0 }
@@ -39558,7 +39558,7 @@ var lt = {
39558
39558
  "payload.minDuration": 0
39559
39559
  }
39560
39560
  }
39561
- }, dt = g.object({
39561
+ }, pt = g.object({
39562
39562
  enabled: g.boolean().optional(),
39563
39563
  ai: g.boolean().optional(),
39564
39564
  positive: g.array(g.string()).optional(),
@@ -39574,7 +39574,7 @@ var lt = {
39574
39574
  afterGreetingSilence: H,
39575
39575
  greeting: H,
39576
39576
  initialSilence: H
39577
- }), ft = g.object({
39577
+ }), mt = g.object({
39578
39578
  maxAttempts: H,
39579
39579
  minAttempts: H,
39580
39580
  originateTimeout: H,
@@ -39615,19 +39615,19 @@ var lt = {
39615
39615
  recordAll: g.boolean().optional(),
39616
39616
  allowGreetingAgent: g.boolean().optional(),
39617
39617
  autoAnswerTone: g.string().nullable().optional(),
39618
- amd: dt.optional()
39619
- }), pt = g.object({
39618
+ amd: pt.optional()
39619
+ }), ht = g.object({
39620
39620
  enabled: g.boolean().optional(),
39621
39621
  isTimeoutRetry: g.boolean().optional(),
39622
39622
  prolongationTimeSec: H,
39623
39623
  repeatsNumber: H
39624
- }), mt = g.object({
39624
+ }), gt = g.object({
39625
39625
  enabled: g.boolean().optional(),
39626
39626
  formSchema: J.optional(),
39627
39627
  sec: H,
39628
39628
  renewalSec: H,
39629
- prolongationOptions: pt.prefault({})
39630
- }), ht = g.object({
39629
+ prolongationOptions: ht.prefault({})
39630
+ }), _t = g.object({
39631
39631
  name: g.string().min(1),
39632
39632
  description: g.string().optional(),
39633
39633
  type: g.number(),
@@ -39645,11 +39645,11 @@ var lt = {
39645
39645
  formSchema: J.optional(),
39646
39646
  strategy: g.string().optional(),
39647
39647
  stickyAgent: g.boolean().optional(),
39648
- taskProcessing: mt.optional(),
39649
- payload: ft.optional(),
39648
+ taskProcessing: gt.optional(),
39649
+ payload: mt.optional(),
39650
39650
  variables: g.array(X).optional()
39651
39651
  }).superRefine((e, t) => {
39652
- let n = [lt, ut[Number(e.type)] ?? {}];
39652
+ let n = [dt, ft[Number(e.type)] ?? {}];
39653
39653
  for (let r of n) {
39654
39654
  for (let n of r.required ?? []) G(p(e, n)) || t.addIssue({
39655
39655
  code: "custom",
@@ -39668,16 +39668,16 @@ var lt = {
39668
39668
  });
39669
39669
  }
39670
39670
  }
39671
- }), gt = g.object({
39671
+ }), vt = g.object({
39672
39672
  bucket: Y,
39673
39673
  priority: g.number().min(0).default(0),
39674
39674
  disabled: g.boolean().optional()
39675
- }), _t = g.object({
39675
+ }), yt = g.object({
39676
39676
  event: g.string().min(1),
39677
39677
  schema: Y,
39678
39678
  properties: g.array(g.string()).optional(),
39679
39679
  enabled: g.boolean().default(!0)
39680
- }), vt = g.object({
39680
+ }), bt = g.object({
39681
39681
  destination: g.string().min(1),
39682
39682
  type: Y,
39683
39683
  dtmf: g.string().regex(/^[\d|w|W]*$/).optional(),
@@ -39685,9 +39685,13 @@ var lt = {
39685
39685
  priority: g.number().optional(),
39686
39686
  resource: J.optional(),
39687
39687
  description: g.string().optional()
39688
- }), yt = g.object({
39688
+ });
39689
+ bt.extend({ destination: Je });
39690
+ //#endregion
39691
+ //#region packages/api-services/src/validations/queueMember/queueMember.validations.ts
39692
+ var xt = g.object({
39689
39693
  name: g.string().min(1),
39690
- communications: g.array(vt).min(1),
39694
+ communications: g.array(bt).min(1),
39691
39695
  priority: g.number().optional().default(0),
39692
39696
  bucket: J.optional(),
39693
39697
  timezone: J.optional(),
@@ -39696,10 +39700,10 @@ var lt = {
39696
39700
  minOfferingAt: g.union([g.string(), g.number()]).optional(),
39697
39701
  stopCause: g.string().optional(),
39698
39702
  variables: g.array(X).optional()
39699
- }), bt = g.object({
39703
+ }), St = g.object({
39700
39704
  resourceGroup: Y,
39701
39705
  communication: J.optional()
39702
- }), xt = g.object({
39706
+ }), Ct = g.object({
39703
39707
  skill: Y,
39704
39708
  lvl: g.number().min(0).max(1e3).default(0),
39705
39709
  minCapacity: g.number().min(0).max(100).optional().default(0),
@@ -39716,7 +39720,7 @@ var lt = {
39716
39720
  path: ["maxCapacity"],
39717
39721
  message: "Value must be greater than or equal to the minimum capacity"
39718
39722
  }));
39719
- }), St = 6e4;
39723
+ }), wt = 6e4;
39720
39724
  g.object({
39721
39725
  name: g.string().min(1),
39722
39726
  description: g.string().optional(),
@@ -39728,7 +39732,7 @@ g.object({
39728
39732
  }).superRefine((e, t) => {
39729
39733
  if (!e.validFrom || !e.validTo) return;
39730
39734
  let n = Number(e.validFrom), r = Number(e.validTo);
39731
- Number.isNaN(n) || Number.isNaN(r) || n > r - St && t.addIssue({
39735
+ Number.isNaN(n) || Number.isNaN(r) || n > r - wt && t.addIssue({
39732
39736
  code: "too_big",
39733
39737
  origin: "date",
39734
39738
  maximum: r,
@@ -39744,10 +39748,10 @@ g.object({
39744
39748
  }), g.object({ fields: g.array(g.any()).optional() }), g.object({
39745
39749
  key: g.string().min(1),
39746
39750
  value: g.string().min(1)
39747
- }), [..._(gt)], [..._(_t)], [..._(yt)], [..._(bt)], [..._(xt)], l.OFFLINE_QUEUE, l.INBOUND_QUEUE, l.OUTBOUND_IVR_QUEUE, l.PREVIEW_DIALER, l.PROGRESSIVE_DIALER, l.PREDICTIVE_DIALER, l.CHAT_INBOUND_QUEUE, l.IM_CHAT_QUEUE, l.INBOUND_JOB_QUEUE, l.OUTBOUND_JOB_QUEUE, _(ht), { ...N("/call_center/queues") }, { ...N("/call_center/teams") }, i(), { ...N("/users") }, _(z), _(Be), i();
39751
+ }), [..._(vt)], [..._(yt)], [..._(xt)], [..._(St)], [..._(Ct)], l.OFFLINE_QUEUE, l.INBOUND_QUEUE, l.OUTBOUND_IVR_QUEUE, l.PREVIEW_DIALER, l.PROGRESSIVE_DIALER, l.PREDICTIVE_DIALER, l.CHAT_INBOUND_QUEUE, l.IM_CHAT_QUEUE, l.INBOUND_JOB_QUEUE, l.OUTBOUND_JOB_QUEUE, _(_t), { ...N("/call_center/queues") }, { ...N("/call_center/teams") }, i(), { ...N("/users") }, _(z), _(Be), i();
39748
39752
  //#endregion
39749
39753
  //#region packages/api-services/src/api/clients/wtTypes/sysTypes/sysTypes.ts
39750
- var Ct = i(), wt = async ({ path: e, display: t, primary: n, ...r }) => {
39754
+ var Tt = i(), Et = async ({ path: e, display: t, primary: n, ...r }) => {
39751
39755
  let i = S(r, [
39752
39756
  E(x()),
39753
39757
  M("search"),
@@ -39772,7 +39776,7 @@ var Ct = i(), wt = async ({ path: e, display: t, primary: n, ...r }) => {
39772
39776
  w(e)
39773
39777
  ]);
39774
39778
  try {
39775
- let { data: e, items: t, next: n } = S((await Ct.get(i)).data, [E(b())]);
39779
+ let { data: e, items: t, next: n } = S((await Tt.get(i)).data, [E(b())]);
39776
39780
  return {
39777
39781
  items: S(e || t, []) ?? [],
39778
39782
  next: n
@@ -39780,9 +39784,9 @@ var Ct = i(), wt = async ({ path: e, display: t, primary: n, ...r }) => {
39780
39784
  } catch (e) {
39781
39785
  throw S(e, [k]);
39782
39786
  }
39783
- }, Tt = {
39784
- getList: wt,
39785
- getLookup: (e) => wt({
39787
+ }, Dt = {
39788
+ getList: Et,
39789
+ getLookup: (e) => Et({
39786
39790
  ...e,
39787
39791
  fields: e.fields || ["id", "name"]
39788
39792
  })
@@ -39794,7 +39798,7 @@ Object.freeze({
39794
39798
  VARIABLES: "variables",
39795
39799
  DESTINATION: "destination"
39796
39800
  });
39797
- var Et = "/contacts";
39798
- _(ue), [..._(de)], [..._(pe)], { ...N(Et) };
39801
+ var Ot = "/contacts";
39802
+ _(ue), [..._(de)], [..._(pe)], { ...N(Ot) };
39799
39803
  //#endregion
39800
- export { Ke as n, Ge as r, Tt as t };
39804
+ export { Ke as n, Ge as r, Dt as t };