@descope/web-components-ui 1.0.373 → 1.0.375
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/index.cjs.js +5 -1
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/index.esm.js +8 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/umd/2773.js +148 -0
- package/dist/umd/63.js +1 -1
- package/dist/umd/9423.js +1 -1
- package/dist/umd/DescopeDev.js +1 -1
- package/dist/umd/index.js +1 -1
- package/dist/umd/mapping-fields-descope-mappings-field-index-js.js +1 -1
- package/dist/umd/phone-fields-descope-phone-field-descope-phone-field-internal-index-js.js +1 -1
- package/dist/umd/phone-fields-descope-phone-field-index-js.js +1 -1
- package/package.json +2 -1
- package/src/components/mapping-fields/descope-mappings-field/MappingsFieldClass.js +4 -1
- package/src/components/phone-fields/descope-phone-field/descope-phone-field-internal/PhoneFieldInternal.js +4 -1
- package/dist/umd/7164.js +0 -148
- /package/dist/umd/{7164.js.LICENSE.txt → 2773.js.LICENSE.txt} +0 -0
package/dist/index.esm.js
CHANGED
@@ -12,6 +12,7 @@ import '@vaadin/password-field';
|
|
12
12
|
import MarkdownIt from 'markdown-it';
|
13
13
|
import '@vaadin/text-area';
|
14
14
|
import '@vaadin/combo-box';
|
15
|
+
import parsePhone from 'libphonenumber-js/min';
|
15
16
|
import '@vaadin/grid';
|
16
17
|
import { GridSortColumn } from '@vaadin/grid/vaadin-grid-sort-column';
|
17
18
|
import { GridSelectionColumn } from '@vaadin/grid/vaadin-grid-selection-column';
|
@@ -6246,7 +6247,9 @@ let PhoneFieldInternal$1 = class PhoneFieldInternal extends BaseInputClass$6 {
|
|
6246
6247
|
}
|
6247
6248
|
|
6248
6249
|
set value(val) {
|
6249
|
-
const
|
6250
|
+
const parsed = parsePhone(val);
|
6251
|
+
const countryCode = `+${parsed.countryCallingCode}`;
|
6252
|
+
const phoneNumber = parsed.nationalNumber;
|
6250
6253
|
|
6251
6254
|
if (countryCode) {
|
6252
6255
|
const countryCodeItem = this.getCountryByDialCode(countryCode);
|
@@ -11128,7 +11131,10 @@ const MappingsFieldClass = compose(
|
|
11128
11131
|
{ ...labelsText, property: 'line-height' },
|
11129
11132
|
{ ...labels, property: 'line-height' },
|
11130
11133
|
],
|
11131
|
-
labelTextColor:
|
11134
|
+
labelTextColor: [
|
11135
|
+
{ ...labels, property: TextClass.cssVarList.textColor },
|
11136
|
+
{ ...separator, property: 'color' },
|
11137
|
+
],
|
11132
11138
|
itemMarginBottom: { ...mappingItem, property: 'margin-bottom' },
|
11133
11139
|
valueLabelMinWidth: { ...valueLabel, property: 'min-width' },
|
11134
11140
|
attrLabelMinWidth: { ...attrLabel, property: 'min-width' },
|