@webitel/ui-sdk 26.6.92 → 26.6.94

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.
@@ -1,4 +1,4 @@
1
- import "./components-HoXxNgtV.js";
1
+ import "./components-l3RJbNmv.js";
2
2
  import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
3
3
  import { l as t } from "./enums-De8CDKZ1.js";
4
4
  import { t as n } from "./wt-button-dC4nOW56.js";
@@ -1,4 +1,4 @@
1
- import { C as e, i as t } from "./components-HoXxNgtV.js";
1
+ import { C as e, i as t } from "./components-l3RJbNmv.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 { n as e, r as t } from "./clients-Bj07uFky.js";
2
- import { n } from "./components-HoXxNgtV.js";
2
+ import { n } from "./components-l3RJbNmv.js";
3
3
  import { t as r } from "./vue-i18n-Db_oYfO8.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
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "./clients-Bj07uFky.js";
2
- import { a as t, o as n, r, s as i } from "./components-HoXxNgtV.js";
2
+ import { a as t, o as n, r, s as i } from "./components-l3RJbNmv.js";
3
3
  import { t as a } from "./enums-De8CDKZ1.js";
4
4
  import { t as o } from "./vue-i18n-Db_oYfO8.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";
@@ -1,4 +1,4 @@
1
- import { w as e } from "./components-HoXxNgtV.js";
1
+ import { w as e } from "./components-l3RJbNmv.js";
2
2
  import { t } from "./_plugin-vue_export-helper-B3ysoDQm.js";
3
3
  import { l as n } from "./enums-De8CDKZ1.js";
4
4
  import "./wt-button-dC4nOW56.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webitel/ui-sdk",
3
- "version": "26.6.92",
3
+ "version": "26.6.94",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "npm run docs:dev",
@@ -158,7 +158,8 @@ const hasLabel = computed(() => {
158
158
  });
159
159
 
160
160
  const requiredLabel = computed(() => {
161
- return props.required ? `${props.label}*` : props.label;
161
+ const isRequired = props.required || (props.v && 'required' in props.v);
162
+ return isRequired ? `${props.label}*` : props.label;
162
163
  });
163
164
 
164
165
  onMounted(() => {
@@ -128,7 +128,8 @@ const hasLabel = computed(() => {
128
128
  });
129
129
 
130
130
  const requiredLabel = computed(() => {
131
- return props.required ? `${props.label}*` : props.label;
131
+ const isRequired = props.required || (props.v && 'required' in props.v);
132
+ return isRequired ? `${props.label}*` : props.label;
132
133
  });
133
134
 
134
135
  const inputHandler = (value) => {
@@ -263,7 +263,8 @@ const hasLabel = computed(() => {
263
263
  });
264
264
 
265
265
  const requiredLabel = computed(() => {
266
- return props.required ? `${props.label}*` : props.label;
266
+ const isRequired = props.required || (props.v && 'required' in props.v);
267
+ return isRequired ? `${props.label}*` : props.label;
267
268
  });
268
269
 
269
270
  const handleDropdownHide = () => {
@@ -234,7 +234,8 @@ const hasLabel = computed(() => {
234
234
  });
235
235
 
236
236
  const requiredLabel = computed(() => {
237
- return props.required ? `${props.label}*` : props.label;
237
+ const isRequired = props.required || (props.v && 'required' in props.v);
238
+ return isRequired ? `${props.label}*` : props.label;
238
239
  });
239
240
 
240
241
  const handleDropdownHide = () => {
@@ -6,7 +6,7 @@ export const SingleSignOnProviderIconMappings: Record<
6
6
  > = {
7
7
  [SingleSignOnProvider.Microsoft]: 'microsoft',
8
8
  [SingleSignOnProvider.Google]: 'google',
9
- [SingleSignOnProvider.Facebook]: 'messenger',
9
+ [SingleSignOnProvider.Facebook]: 'messenger-facebook',
10
10
  [SingleSignOnProvider.Custom]: 'custom-provider',
11
11
  };
12
12