@webitel/ui-sdk 24.6.31 → 24.6.33

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/dist/ui-sdk.js CHANGED
@@ -19901,7 +19901,7 @@ function lx(e) {
19901
19901
  let t = e === "/" ? "" : e;
19902
19902
  return t = t.endsWith("/") ? t.slice(0, -1) : t, `${t}/img/plyr.svg`;
19903
19903
  }
19904
- var ox = { NVM_INC: "/Users/admin/.nvm/versions/node/v20.9.0/include/node", MANPATH: "/Users/admin/.nvm/versions/node/v20.9.0/share/man:/opt/homebrew/share/man::", PYCHARM_VM_OPTIONS: "/Users/admin/Downloads/jetbra/vmoptions/pycharm.vmoptions", WEBIDE_VM_OPTIONS: "/Users/admin/Downloads/jetbra/vmoptions/webide.vmoptions", NODE: "/Users/admin/.nvm/versions/node/v20.9.0/bin/node", NVM_CD_FLAGS: "-q", INIT_CWD: "/Users/admin/Projects/webitel-ui-sdk", JETBRAINSCLIENT_VM_OPTIONS: "/Users/admin/Downloads/jetbra/vmoptions/jetbrainsclient.vmoptions", TERM: "xterm-256color", SHELL: "/bin/zsh", HOMEBREW_REPOSITORY: "/opt/homebrew", TMPDIR: "/var/folders/g5/lf24d3m547vg6s2570f54tm40000gn/T/", npm_config_global_prefix: "/Users/admin/.nvm/versions/node/v20.9.0", COLOR: "1", npm_config_noproxy: "", npm_config_local_prefix: "/Users/admin/Projects/webitel-ui-sdk", NVM_DIR: "/Users/admin/.nvm", USER: "admin", COMMAND_MODE: "unix2003", npm_config_globalconfig: "/Users/admin/.nvm/versions/node/v20.9.0/etc/npmrc", SSH_AUTH_SOCK: "/private/tmp/com.apple.launchd.nk3H3fEprV/Listeners", PHPSTORM_VM_OPTIONS: "/Users/admin/Downloads/jetbra/vmoptions/phpstorm.vmoptions", __CF_USER_TEXT_ENCODING: "0x1F5:0x0:0x0", GOLAND_VM_OPTIONS: "/Users/admin/Downloads/jetbra/vmoptions/goland.vmoptions", npm_execpath: "/Users/admin/.nvm/versions/node/v20.9.0/lib/node_modules/npm/bin/npm-cli.js", APPCODE_VM_OPTIONS: "/Users/admin/Downloads/jetbra/vmoptions/appcode.vmoptions", PATH: "/Users/admin/Projects/webitel-ui-sdk/node_modules/.bin:/Users/admin/Projects/node_modules/.bin:/Users/admin/node_modules/.bin:/Users/node_modules/.bin:/node_modules/.bin:/Users/admin/.nvm/versions/node/v20.9.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/Users/admin/Projects/webitel-ui-sdk/node_modules/.bin:/Users/admin/Projects/node_modules/.bin:/Users/admin/node_modules/.bin:/Users/node_modules/.bin:/node_modules/.bin:/Users/admin/.nvm/versions/node/v20.9.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/Users/admin/.nvm/versions/node/v20.9.0/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin", DEVECOSTUDIO_VM_OPTIONS: "/Users/admin/Downloads/jetbra/vmoptions/devecostudio.vmoptions", _: "/Users/admin/Projects/webitel-ui-sdk/node_modules/.bin/vite", IJ_RESTARTER_LOG: "/Users/admin/Library/Logs/JetBrains/WebStorm2023.3/restarter.log", npm_package_json: "/Users/admin/Projects/webitel-ui-sdk/package.json", __CFBundleIdentifier: "com.jetbrains.WebStorm", npm_config_init_module: "/Users/admin/.npm-init.js", npm_config_userconfig: "/Users/admin/.npmrc", PWD: "/Users/admin/Projects/webitel-ui-sdk", npm_command: "run-script", EDITOR: "vi", npm_lifecycle_event: "build", CLION_VM_OPTIONS: "/Users/admin/Downloads/jetbra/vmoptions/clion.vmoptions", IDEA_VM_OPTIONS: "/Users/admin/Downloads/jetbra/vmoptions/idea.vmoptions", npm_package_name: "@webitel/ui-sdk", XPC_FLAGS: "0x0", npm_config_npm_version: "10.1.0", WEBSTORM_VM_OPTIONS: "/Users/admin/Downloads/jetbra/vmoptions/webstorm.vmoptions", DATASPELL_VM_OPTIONS: "/Users/admin/Downloads/jetbra/vmoptions/dataspell.vmoptions", npm_config_node_gyp: "/Users/admin/.nvm/versions/node/v20.9.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js", XPC_SERVICE_NAME: "0", npm_package_version: "24.6.31", STUDIO_VM_OPTIONS: "/Users/admin/Downloads/jetbra/vmoptions/studio.vmoptions", HOME: "/Users/admin", SHLVL: "2", HOMEBREW_PREFIX: "/opt/homebrew", IDEA_INITIAL_DIRECTORY: "/", LOGNAME: "admin", npm_config_cache: "/Users/admin/.npm", npm_lifecycle_script: "vite build", GATEWAY_VM_OPTIONS: "/Users/admin/Downloads/jetbra/vmoptions/gateway.vmoptions", LC_CTYPE: "en_US.UTF-8", DATAGRIP_VM_OPTIONS: "/Users/admin/Downloads/jetbra/vmoptions/datagrip.vmoptions", NVM_BIN: "/Users/admin/.nvm/versions/node/v20.9.0/bin", npm_config_user_agent: "npm/10.1.0 node/v20.9.0 darwin arm64 workspaces/false", INFOPATH: "/opt/homebrew/share/info:", HOMEBREW_CELLAR: "/opt/homebrew/Cellar", RIDER_VM_OPTIONS: "/Users/admin/Downloads/jetbra/vmoptions/rider.vmoptions", JETBRAINS_CLIENT_VM_OPTIONS: "/Users/admin/Downloads/jetbra/vmoptions/jetbrains_client.vmoptions", RUBYMINE_VM_OPTIONS: "/Users/admin/Downloads/jetbra/vmoptions/rubymine.vmoptions", npm_config_prefix: "/Users/admin/.nvm/versions/node/v20.9.0", npm_node_execpath: "/Users/admin/.nvm/versions/node/v20.9.0/bin/node", NODE_ENV: "production" };
19904
+ var ox = { NVM_INC: "/Users/admin/.nvm/versions/node/v20.9.0/include/node", MANPATH: "/Users/admin/.nvm/versions/node/v20.9.0/share/man:/opt/homebrew/share/man::", PYCHARM_VM_OPTIONS: "/Users/admin/Downloads/jetbra/vmoptions/pycharm.vmoptions", WEBIDE_VM_OPTIONS: "/Users/admin/Downloads/jetbra/vmoptions/webide.vmoptions", NODE: "/Users/admin/.nvm/versions/node/v20.9.0/bin/node", NVM_CD_FLAGS: "-q", INIT_CWD: "/Users/admin/Projects/webitel-ui-sdk", JETBRAINSCLIENT_VM_OPTIONS: "/Users/admin/Downloads/jetbra/vmoptions/jetbrainsclient.vmoptions", TERM: "xterm-256color", SHELL: "/bin/zsh", HOMEBREW_REPOSITORY: "/opt/homebrew", TMPDIR: "/var/folders/g5/lf24d3m547vg6s2570f54tm40000gn/T/", npm_config_global_prefix: "/Users/admin/.nvm/versions/node/v20.9.0", COLOR: "1", npm_config_noproxy: "", npm_config_local_prefix: "/Users/admin/Projects/webitel-ui-sdk", NVM_DIR: "/Users/admin/.nvm", USER: "admin", COMMAND_MODE: "unix2003", npm_config_globalconfig: "/Users/admin/.nvm/versions/node/v20.9.0/etc/npmrc", SSH_AUTH_SOCK: "/private/tmp/com.apple.launchd.nk3H3fEprV/Listeners", PHPSTORM_VM_OPTIONS: "/Users/admin/Downloads/jetbra/vmoptions/phpstorm.vmoptions", __CF_USER_TEXT_ENCODING: "0x1F5:0x0:0x0", GOLAND_VM_OPTIONS: "/Users/admin/Downloads/jetbra/vmoptions/goland.vmoptions", npm_execpath: "/Users/admin/.nvm/versions/node/v20.9.0/lib/node_modules/npm/bin/npm-cli.js", APPCODE_VM_OPTIONS: "/Users/admin/Downloads/jetbra/vmoptions/appcode.vmoptions", PATH: "/Users/admin/Projects/webitel-ui-sdk/node_modules/.bin:/Users/admin/Projects/node_modules/.bin:/Users/admin/node_modules/.bin:/Users/node_modules/.bin:/node_modules/.bin:/Users/admin/.nvm/versions/node/v20.9.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/Users/admin/Projects/webitel-ui-sdk/node_modules/.bin:/Users/admin/Projects/node_modules/.bin:/Users/admin/node_modules/.bin:/Users/node_modules/.bin:/node_modules/.bin:/Users/admin/.nvm/versions/node/v20.9.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/Users/admin/.nvm/versions/node/v20.9.0/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin", DEVECOSTUDIO_VM_OPTIONS: "/Users/admin/Downloads/jetbra/vmoptions/devecostudio.vmoptions", _: "/Users/admin/Projects/webitel-ui-sdk/node_modules/.bin/vite", IJ_RESTARTER_LOG: "/Users/admin/Library/Logs/JetBrains/WebStorm2023.3/restarter.log", npm_package_json: "/Users/admin/Projects/webitel-ui-sdk/package.json", __CFBundleIdentifier: "com.jetbrains.WebStorm", npm_config_init_module: "/Users/admin/.npm-init.js", npm_config_userconfig: "/Users/admin/.npmrc", PWD: "/Users/admin/Projects/webitel-ui-sdk", npm_command: "run-script", EDITOR: "vi", npm_lifecycle_event: "build", CLION_VM_OPTIONS: "/Users/admin/Downloads/jetbra/vmoptions/clion.vmoptions", IDEA_VM_OPTIONS: "/Users/admin/Downloads/jetbra/vmoptions/idea.vmoptions", npm_package_name: "@webitel/ui-sdk", XPC_FLAGS: "0x0", npm_config_npm_version: "10.1.0", WEBSTORM_VM_OPTIONS: "/Users/admin/Downloads/jetbra/vmoptions/webstorm.vmoptions", DATASPELL_VM_OPTIONS: "/Users/admin/Downloads/jetbra/vmoptions/dataspell.vmoptions", npm_config_node_gyp: "/Users/admin/.nvm/versions/node/v20.9.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js", XPC_SERVICE_NAME: "0", npm_package_version: "24.6.33", STUDIO_VM_OPTIONS: "/Users/admin/Downloads/jetbra/vmoptions/studio.vmoptions", HOME: "/Users/admin", SHLVL: "2", HOMEBREW_PREFIX: "/opt/homebrew", IDEA_INITIAL_DIRECTORY: "/", LOGNAME: "admin", npm_config_cache: "/Users/admin/.npm", npm_lifecycle_script: "vite build", GATEWAY_VM_OPTIONS: "/Users/admin/Downloads/jetbra/vmoptions/gateway.vmoptions", LC_CTYPE: "en_US.UTF-8", DATAGRIP_VM_OPTIONS: "/Users/admin/Downloads/jetbra/vmoptions/datagrip.vmoptions", NVM_BIN: "/Users/admin/.nvm/versions/node/v20.9.0/bin", npm_config_user_agent: "npm/10.1.0 node/v20.9.0 darwin arm64 workspaces/false", INFOPATH: "/opt/homebrew/share/info:", HOMEBREW_CELLAR: "/opt/homebrew/Cellar", RIDER_VM_OPTIONS: "/Users/admin/Downloads/jetbra/vmoptions/rider.vmoptions", JETBRAINS_CLIENT_VM_OPTIONS: "/Users/admin/Downloads/jetbra/vmoptions/jetbrains_client.vmoptions", RUBYMINE_VM_OPTIONS: "/Users/admin/Downloads/jetbra/vmoptions/rubymine.vmoptions", npm_config_prefix: "/Users/admin/.nvm/versions/node/v20.9.0", npm_node_execpath: "/Users/admin/.nvm/versions/node/v20.9.0/bin/node", NODE_ENV: "production" };
19905
19905
  const sx = {
19906
19906
  name: "WtPlayer",
19907
19907
  props: {
@@ -20536,20 +20536,27 @@ const Zx = /* @__PURE__ */ M0(Ix, [["render", Hx], ["__scopeId", "data-v-50eb3a5
20536
20536
  "input",
20537
20537
  "search",
20538
20538
  "enter",
20539
+ "update:search-mode",
20540
+ /**
20541
+ * @deprecated
20542
+ */
20539
20543
  "change:search-mode"
20540
20544
  ],
20541
20545
  setup(e, { emit: t }) {
20542
- const n = e, r = t, { v: i, customValidators: a } = N4(n), { invalid: l } = as({ v: i, customValidators: a }), o = i0(() => l.value ? "error" : "default"), s = Ma((p) => {
20543
- r("search", p);
20546
+ const n = e, r = t, { v: i, customValidators: a } = N4(n), { invalid: l } = as({ v: i, customValidators: a }), o = i0(() => l.value ? "error" : "default"), s = Ma((h) => {
20547
+ r("search", h);
20544
20548
  }, 1e3);
20545
- function f(p) {
20546
- r("input", p), s(p);
20549
+ function f(h) {
20550
+ r("input", h), s(h);
20551
+ }
20552
+ function u(h) {
20553
+ h.key === "Enter" ? (s(n.value), h.preventDefault()) : h.key === "Esc" && (f(""), h.preventDefault());
20547
20554
  }
20548
- function u(p) {
20549
- p.key === "Enter" ? (s(n.value), p.preventDefault()) : p.key === "Esc" && (f(""), p.preventDefault());
20555
+ function p(h) {
20556
+ r("update:search-mode", h), r("change:search-mode", h);
20550
20557
  }
20551
- return (p, h) => {
20552
- const m = l0("wt-icon"), w = l0("wt-icon-btn"), M = l0("wt-hint"), O = l0("wt-tooltip"), b = l0("wt-radio"), _ = l0("wt-context-menu");
20558
+ return (h, m) => {
20559
+ const w = l0("wt-icon"), M = l0("wt-icon-btn"), O = l0("wt-hint"), b = l0("wt-tooltip"), _ = l0("wt-radio"), T = l0("wt-context-menu");
20553
20560
  return C(), N("div", {
20554
20561
  class: g0([{
20555
20562
  "wt-search-bar--invalid": I(l)
@@ -20557,29 +20564,29 @@ const Zx = /* @__PURE__ */ M0(Ix, [["render", Hx], ["__scopeId", "data-v-50eb3a5
20557
20564
  }, [
20558
20565
  q("div", jx, [
20559
20566
  q("div", Yx, [
20560
- K(p.$slots, "search-icon", { invalid: I(l) }, () => [
20561
- t0(m, {
20567
+ K(h.$slots, "search-icon", { invalid: I(l) }, () => [
20568
+ t0(w, {
20562
20569
  color: o.value,
20563
20570
  icon: "search"
20564
20571
  }, null, 8, ["color"])
20565
20572
  ], !0)
20566
20573
  ]),
20567
20574
  q("input", {
20568
- placeholder: e.placeholder || p.$t("webitelUI.searchBar.placeholder"),
20575
+ placeholder: e.placeholder || h.$t("webitelUI.searchBar.placeholder"),
20569
20576
  value: e.value,
20570
20577
  class: "wt-search-bar__input",
20571
20578
  type: "search",
20572
- onInput: h[0] || (h[0] = (T) => f(T.target.value)),
20579
+ onInput: m[0] || (m[0] = ($) => f($.target.value)),
20573
20580
  onKeyup: u
20574
20581
  }, null, 40, qx),
20575
20582
  q("div", zx, [
20576
- t0(w, {
20583
+ t0(M, {
20577
20584
  class: g0([{ hidden: !e.value }, "wt-search-bar__reset-icon-btn"]),
20578
20585
  color: o.value,
20579
20586
  icon: "close",
20580
- onClick: h[1] || (h[1] = (T) => f(""))
20587
+ onClick: m[1] || (m[1] = ($) => f(""))
20581
20588
  }, null, 8, ["class", "color"]),
20582
- e.hint ? (C(), u0(M, {
20589
+ e.hint ? (C(), u0(O, {
20583
20590
  key: 0,
20584
20591
  "icon-color": o.value
20585
20592
  }, {
@@ -20588,41 +20595,41 @@ const Zx = /* @__PURE__ */ M0(Ix, [["render", Hx], ["__scopeId", "data-v-50eb3a5
20588
20595
  ], void 0, !0),
20589
20596
  _: 1
20590
20597
  }, 8, ["icon-color"])) : H("", !0),
20591
- e.searchMode ? (C(), u0(_, {
20598
+ e.searchMode ? (C(), u0(T, {
20592
20599
  key: 1,
20593
20600
  options: e.searchModeOptions,
20594
- onClick: h[2] || (h[2] = (T) => r("change:search-mode", T.option))
20601
+ onClick: p
20595
20602
  }, {
20596
20603
  activator: Z(() => [
20597
- t0(O, null, {
20604
+ t0(b, null, {
20598
20605
  activator: Z(() => [
20599
- t0(w, {
20606
+ t0(M, {
20600
20607
  color: I(l) ? "error" : "default",
20601
20608
  icon: "filter"
20602
20609
  }, null, 8, ["color"])
20603
20610
  ]),
20604
20611
  default: Z(() => [
20605
- C0(" " + s0(p.$t("webitelUI.searchBar.settingsHint")), 1)
20612
+ C0(" " + s0(h.$t("webitelUI.searchBar.settingsHint")), 1)
20606
20613
  ], void 0, !0),
20607
20614
  _: 1
20608
20615
  })
20609
20616
  ]),
20610
- option: Z(({ value: T, text: $ }) => [
20611
- t0(b, {
20612
- label: $,
20613
- selected: (typeof e.searchMode == "string" ? e.searchMode : e.searchMode.value) === T,
20617
+ option: Z(({ value: $, text: D }) => [
20618
+ t0(_, {
20619
+ label: D,
20620
+ selected: (typeof e.searchMode == "string" ? e.searchMode : e.searchMode.value) === $,
20614
20621
  value: !0
20615
20622
  }, null, 8, ["label", "selected"])
20616
20623
  ]),
20617
20624
  _: 1
20618
20625
  }, 8, ["options"])) : H("", !0),
20619
- K(p.$slots, "additional-actions", { invalid: I(l) }, void 0, !0)
20626
+ K(h.$slots, "additional-actions", { invalid: I(l) }, void 0, !0)
20620
20627
  ])
20621
20628
  ])
20622
20629
  ], 2);
20623
20630
  };
20624
20631
  }
20625
- }, Xx = /* @__PURE__ */ M0(Gx, [["__scopeId", "data-v-1581d4cc"]]), Ns = (e) => Array.isArray(e) ? !e.length : typeof e == "object" ? !e || !Object.keys(e).length : !e, Is = {
20632
+ }, Xx = /* @__PURE__ */ M0(Gx, [["__scopeId", "data-v-0b9d45d0"]]), Ns = (e) => Array.isArray(e) ? !e.length : typeof e == "object" ? !e || !Object.keys(e).length : !e, Is = {
20626
20633
  methods: {
20627
20634
  // TODO: WHAT IS "ID" PARAM?!
20628
20635
  // this functionality allows you to add custom values to the list of values