@descope/web-components-ui 1.105.0 → 1.107.0
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/cjs/index.cjs.js +224 -128
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/index.esm.js +856 -760
- package/dist/index.esm.js.map +1 -1
- package/dist/umd/DescopeDev.js +1 -1
- package/dist/umd/DescopeDev.js.map +1 -1
- package/dist/umd/descope-alert-index-js.js +1 -1
- package/dist/umd/descope-alert-index-js.js.map +1 -1
- package/dist/umd/descope-date-field-descope-calendar-index-js.js +1 -1
- package/dist/umd/descope-date-field-descope-calendar-index-js.js.map +1 -1
- package/dist/umd/descope-date-field-index-js.js +1 -1
- package/dist/umd/descope-date-field-index-js.js.map +1 -1
- package/dist/umd/descope-enriched-text.js +2 -0
- package/dist/umd/descope-enriched-text.js.map +1 -0
- package/dist/umd/descope-link.js +2 -0
- package/dist/umd/descope-link.js.map +1 -0
- package/dist/umd/index.js +1 -1
- package/dist/umd/index.js.map +1 -1
- package/package.json +11 -10
- package/src/components/descope-alert/AlertClass.js +1 -1
- package/src/components/descope-alert/index.js +1 -1
- package/src/components/descope-date-field/DateFieldClass.js +94 -3
- package/src/components/descope-date-field/helpers.js +8 -0
- package/src/index.cjs.js +0 -2
- package/src/index.js +0 -2
- package/src/theme/components/index.js +2 -2
- package/dist/umd/descope-enriched-text-index-js.js +0 -2
- package/dist/umd/descope-enriched-text-index-js.js.map +0 -1
- package/dist/umd/descope-link-index-js.js +0 -2
- package/dist/umd/descope-link-index-js.js.map +0 -1
- package/src/components/descope-enriched-text/EnrichedTextClass.js +0 -209
- package/src/components/descope-enriched-text/consts.js +0 -14
- package/src/components/descope-enriched-text/helpers.js +0 -5
- package/src/components/descope-enriched-text/index.js +0 -5
- package/src/components/descope-link/LinkClass.js +0 -76
- package/src/components/descope-link/index.js +0 -6
- package/src/theme/components/enrichedText.js +0 -40
- package/src/theme/components/link.js +0 -36
package/dist/index.esm.js
CHANGED
@@ -12,7 +12,6 @@ import '@vaadin/icon';
|
|
12
12
|
import '@vaadin/email-field';
|
13
13
|
import '@vaadin/number-field';
|
14
14
|
import '@vaadin/password-field';
|
15
|
-
import MarkdownIt from 'markdown-it';
|
16
15
|
import '@vaadin/text-area';
|
17
16
|
import parsePhoneNumberFromString$1, { parsePhoneNumberFromString, AsYouType } from 'libphonenumber-js/min';
|
18
17
|
import '@vaadin/grid';
|
@@ -26,6 +25,7 @@ import '@vaadin/custom-field';
|
|
26
25
|
import '@vaadin/radio-group';
|
27
26
|
import '@vaadin/avatar';
|
28
27
|
import DOMPurify from 'dompurify';
|
28
|
+
import MarkdownIt from 'markdown-it';
|
29
29
|
import { zxcvbn, zxcvbnOptions } from '@zxcvbn-ts/core';
|
30
30
|
import * as zxcvbnCommonPackage from '@zxcvbn-ts/language-common';
|
31
31
|
import * as zxcvbnEnPackage from '@zxcvbn-ts/language-en';
|
@@ -5386,6 +5386,104 @@ loadingIndicatorStyles = `
|
|
5386
5386
|
|
5387
5387
|
customElements.define(componentName$18, ButtonClass);
|
5388
5388
|
|
5389
|
+
const SUPPORTED_FORMATS = ['MM/DD/YYYY', 'DD/MM/YYYY', 'YYYY/MM/DD'];
|
5390
|
+
|
5391
|
+
const DEFAULT_FORMAT = SUPPORTED_FORMATS[0];
|
5392
|
+
|
5393
|
+
const NATIVE_FORMAT = 'YYYY-MM-DD';
|
5394
|
+
|
5395
|
+
const YEARS_RANGE = 100;
|
5396
|
+
|
5397
|
+
const DIVIDER = '/';
|
5398
|
+
|
5399
|
+
const months = [
|
5400
|
+
'January',
|
5401
|
+
'February',
|
5402
|
+
'March',
|
5403
|
+
'April',
|
5404
|
+
'May',
|
5405
|
+
'June',
|
5406
|
+
'July',
|
5407
|
+
'August',
|
5408
|
+
'September',
|
5409
|
+
'October',
|
5410
|
+
'November',
|
5411
|
+
'December',
|
5412
|
+
];
|
5413
|
+
|
5414
|
+
const weekdays = [
|
5415
|
+
'Sunday',
|
5416
|
+
'Monday',
|
5417
|
+
'Tuesday',
|
5418
|
+
'Wednesday',
|
5419
|
+
'Thursday',
|
5420
|
+
'Friday',
|
5421
|
+
'Saturday',
|
5422
|
+
];
|
5423
|
+
|
5424
|
+
const counterConfig = {
|
5425
|
+
MONTH: { id: 'month', min: 1, max: 12, placeholder: 'MM' },
|
5426
|
+
DAY: { id: 'day', min: 1, max: 31, placeholder: 'DD' },
|
5427
|
+
YEAR: { id: 'year', min: 0, max: 9999, placeholder: 'YYYY' },
|
5428
|
+
};
|
5429
|
+
|
5430
|
+
const valRange = {
|
5431
|
+
year: { min: 1900, max: 2099 },
|
5432
|
+
};
|
5433
|
+
|
5434
|
+
const BUTTON_LABEL_DONE = 'Done';
|
5435
|
+
const BUTTON_LABEL_CANCEL = 'Cancel';
|
5436
|
+
const CALENDAR_LABEL_TODAY = 'Today';
|
5437
|
+
|
5438
|
+
const MOBILE_DEVICE_INTERACTION_TIMEOUT_MS = 150;
|
5439
|
+
|
5440
|
+
const patterns = {
|
5441
|
+
MM: '(0?[1-9]|1[0-2])',
|
5442
|
+
DD: '(0?[1-9]|[12][0-9]|3[01])',
|
5443
|
+
YYYY: '([0-9]{4})',
|
5444
|
+
};
|
5445
|
+
|
5446
|
+
const createPattern = (format) => {
|
5447
|
+
const pattern = format
|
5448
|
+
.split(DIVIDER)
|
5449
|
+
.map((part) => patterns[part])
|
5450
|
+
.join('\\D');
|
5451
|
+
|
5452
|
+
return `^${pattern}$`;
|
5453
|
+
};
|
5454
|
+
|
5455
|
+
const createToValuesFn = (format) => {
|
5456
|
+
const order = format.split(DIVIDER);
|
5457
|
+
return (match) => {
|
5458
|
+
const values = {};
|
5459
|
+
order.forEach((part, index) => {
|
5460
|
+
values[part] = match[index + 1];
|
5461
|
+
});
|
5462
|
+
return [values.YYYY, values.MM, values.DD];
|
5463
|
+
};
|
5464
|
+
};
|
5465
|
+
|
5466
|
+
const createDate = (val, regexp, toValuesFn) => {
|
5467
|
+
const match = regexp.exec(val);
|
5468
|
+
if (!match) return null;
|
5469
|
+
const [year, month, day] = toValuesFn(match);
|
5470
|
+
return newDate([year, month, day].join(DIVIDER));
|
5471
|
+
};
|
5472
|
+
|
5473
|
+
const createFormat = (format) => {
|
5474
|
+
const pattern = createPattern(format);
|
5475
|
+
const toValuesFn = createToValuesFn(format);
|
5476
|
+
const regexp = new RegExp(pattern);
|
5477
|
+
|
5478
|
+
return {
|
5479
|
+
pattern,
|
5480
|
+
validate: (val) => regexp.test(val),
|
5481
|
+
getDate: (val) => createDate(val, regexp, toValuesFn),
|
5482
|
+
};
|
5483
|
+
};
|
5484
|
+
|
5485
|
+
const formats = Object.fromEntries(SUPPORTED_FORMATS.map((f) => [f, createFormat(f)]));
|
5486
|
+
|
5389
5487
|
const isValidTimestamp = (val) => !Number.isNaN(Number(val));
|
5390
5488
|
|
5391
5489
|
const isNumber = (val) => !!String(val || '').trim() && !Number.isNaN(Number(val));
|
@@ -5435,6 +5533,12 @@ const overrideConstructedStylesheet = (ele) => {
|
|
5435
5533
|
ele?.shadowRoot?.adoptedStyleSheets?.push(cs);
|
5436
5534
|
};
|
5437
5535
|
|
5536
|
+
const parseDateString = (val, format) => {
|
5537
|
+
const trimmed = val.trim?.();
|
5538
|
+
if (!trimmed) return null;
|
5539
|
+
return formats[format].getDate(trimmed);
|
5540
|
+
};
|
5541
|
+
|
5438
5542
|
const calendarIcon = `
|
5439
5543
|
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
5440
5544
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M9 5H15V4.50468C15 4.21404 15.226 4 15.5047 4H16.4953C16.786 4 17 4.22595 17 4.50468V5H18.7568C19.3028 5 19.75 5.44725 19.75 5.99896V7.00104C19.75 7.55734 19.3053 8 18.7568 8H5.24317C4.69717 8 4.25 7.55275 4.25 7.00104V5.99896C4.25 5.44266 4.69466 5 5.24317 5H7V4.50468C7 4.21404 7.22596 4 7.50468 4H8.49532C8.78596 4 9 4.22595 9 4.50468V5ZM5.50468 9H6.49532C6.78596 9 7 9.22596 7 9.50468V10.4953C7 10.786 6.77404 11 6.49532 11H5.50468C5.21404 11 5 10.774 5 10.4953V9.50468C5 9.21404 5.22595 9 5.50468 9ZM8.50468 9H9.49532C9.78596 9 10 9.22596 10 9.50468V10.4953C10 10.786 9.77404 11 9.49532 11H8.50468C8.21404 11 8 10.774 8 10.4953V9.50468C8 9.21404 8.22596 9 8.50468 9ZM11.5047 9H12.4953C12.786 9 13 9.22596 13 9.50468V10.4953C13 10.786 12.774 11 12.4953 11H11.5047C11.214 11 11 10.774 11 10.4953V9.50468C11 9.21404 11.226 9 11.5047 9ZM5.50468 12H6.49532C6.78596 12 7 12.226 7 12.5047V13.4953C7 13.786 6.77404 14 6.49532 14H5.50468C5.21404 14 5 13.774 5 13.4953V12.5047C5 12.214 5.22595 12 5.50468 12ZM8.50468 12H9.49532C9.78596 12 10 12.226 10 12.5047V13.4953C10 13.786 9.77404 14 9.49532 14H8.50468C8.21404 14 8 13.774 8 13.4953V12.5047C8 12.214 8.22596 12 8.50468 12ZM11.5047 12H12.4953C12.786 12 13 12.226 13 12.5047V13.4953C13 13.786 12.774 14 12.4953 14H11.5047C11.214 14 11 13.774 11 13.4953V12.5047C11 12.214 11.226 12 11.5047 12ZM5.50468 15H6.49532C6.78596 15 7 15.226 7 15.5047V16.4953C7 16.786 6.77404 17 6.49532 17H5.50468C5.21404 17 5 16.774 5 16.4953V15.5047C5 15.214 5.22595 15 5.50468 15ZM8.50468 15H9.49532C9.78596 15 10 15.226 10 15.5047V16.4953C10 16.786 9.77404 17 9.49532 17H8.50468C8.21404 17 8 16.774 8 16.4953V15.5047C8 15.214 8.22596 15 8.50468 15ZM11.5047 15H12.4953C12.786 15 13 15.226 13 15.5047V16.4953C13 16.786 12.774 17 12.4953 17H11.5047C11.214 17 11 16.774 11 16.4953V15.5047C11 15.214 11.226 15 11.5047 15ZM14.5047 9H15.4953C15.786 9 16 9.22596 16 9.50468V10.4953C16 10.786 15.774 11 15.4953 11H14.5047C14.214 11 14 10.774 14 10.4953V9.50468C14 9.21404 14.226 9 14.5047 9ZM14.5047 12H15.4953C15.786 12 16 12.226 16 12.5047V13.4953C16 13.786 15.774 14 15.4953 14H14.5047C14.214 14 14 13.774 14 13.4953V12.5047C14 12.214 14.226 12 14.5047 12ZM14.5047 15H15.4953C15.786 15 16 15.226 16 15.5047V16.4953C16 16.786 15.774 17 15.4953 17H14.5047C14.214 17 14 16.774 14 16.4953V15.5047C14 15.214 14.226 15 14.5047 15ZM17.5047 15H18.4953C18.786 15 19 15.226 19 15.5047V16.4953C19 16.786 18.774 17 18.4953 17H17.5047C17.214 17 17 16.774 17 16.4953V15.5047C17 15.214 17.226 15 17.5047 15ZM5.50468 18H6.49532C6.78596 18 7 18.226 7 18.5047V19.4953C7 19.786 6.77404 20 6.49532 20H5.50468C5.21404 20 5 19.774 5 19.4953V18.5047C5 18.214 5.22595 18 5.50468 18ZM8.50468 18H9.49532C9.78596 18 10 18.226 10 18.5047V19.4953C10 19.786 9.77404 20 9.49532 20H8.50468C8.21404 20 8 19.774 8 19.4953V18.5047C8 18.214 8.22596 18 8.50468 18ZM11.5047 18H12.4953C12.786 18 13 18.226 13 18.5047V19.4953C13 19.786 12.774 20 12.4953 20H11.5047C11.214 20 11 19.774 11 19.4953V18.5047C11 18.214 11.226 18 11.5047 18ZM14.5047 18H15.4953C15.786 18 16 18.226 16 18.5047V19.4953C16 19.786 15.774 20 15.4953 20H14.5047C14.214 20 14 19.774 14 19.4953V18.5047C14 18.214 14.226 18 14.5047 18ZM17.5047 18H18.4953C18.786 18 19 18.226 19 18.5047V19.4953C19 19.786 18.774 20 18.4953 20H17.5047C17.214 20 17 19.774 17 19.4953V18.5047C17 18.214 17.226 18 17.5047 18ZM17.5047 12H18.4953C18.786 12 19 12.226 19 12.5047V13.4953C19 13.786 18.774 14 18.4953 14H17.5047C17.214 14 17 13.774 17 13.4953V12.5047C17 12.214 17.226 12 17.5047 12ZM17.5047 9H18.4953C18.786 9 19 9.22596 19 9.50468V10.4953C19 10.786 18.774 11 18.4953 11H17.5047C17.214 11 17 10.774 17 10.4953V9.50468C17 9.21404 17.226 9 17.5047 9Z" fill="#808080"/>
|
@@ -5450,57 +5554,6 @@ const arrowLeftIcon = `<svg width="24" height="24" viewBox="0 0 24 24" fill="non
|
|
5450
5554
|
<path d="M14.7272 17.2193C15.1209 17.6584 15.0841 18.3334 14.6451 18.7272C14.206 19.1209 13.5309 19.0841 13.1372 18.6451C13.1372 18.6451 7.99776 13.0457 7.63399 12.64C7.27023 12.2343 7.27023 11.7608 7.63399 11.3552L13.1372 5.35492C13.5309 4.91587 14.206 4.87912 14.6451 5.27283C15.0841 5.66655 15.1209 6.34164 14.7272 6.78069L9.86322 12L14.7272 17.2193Z" fill="#808080"/>
|
5451
5555
|
</svg>`;
|
5452
5556
|
|
5453
|
-
const SUPPORTED_FORMATS = ['MM/DD/YYYY', 'DD/MM/YYYY', 'YYYY/MM/DD'];
|
5454
|
-
|
5455
|
-
const DEFAULT_FORMAT = SUPPORTED_FORMATS[0];
|
5456
|
-
|
5457
|
-
const NATIVE_FORMAT = 'YYYY-MM-DD';
|
5458
|
-
|
5459
|
-
const YEARS_RANGE = 100;
|
5460
|
-
|
5461
|
-
const DIVIDER = '/';
|
5462
|
-
|
5463
|
-
const months = [
|
5464
|
-
'January',
|
5465
|
-
'February',
|
5466
|
-
'March',
|
5467
|
-
'April',
|
5468
|
-
'May',
|
5469
|
-
'June',
|
5470
|
-
'July',
|
5471
|
-
'August',
|
5472
|
-
'September',
|
5473
|
-
'October',
|
5474
|
-
'November',
|
5475
|
-
'December',
|
5476
|
-
];
|
5477
|
-
|
5478
|
-
const weekdays = [
|
5479
|
-
'Sunday',
|
5480
|
-
'Monday',
|
5481
|
-
'Tuesday',
|
5482
|
-
'Wednesday',
|
5483
|
-
'Thursday',
|
5484
|
-
'Friday',
|
5485
|
-
'Saturday',
|
5486
|
-
];
|
5487
|
-
|
5488
|
-
const counterConfig = {
|
5489
|
-
MONTH: { id: 'month', min: 1, max: 12, placeholder: 'MM' },
|
5490
|
-
DAY: { id: 'day', min: 1, max: 31, placeholder: 'DD' },
|
5491
|
-
YEAR: { id: 'year', min: 0, max: 9999, placeholder: 'YYYY' },
|
5492
|
-
};
|
5493
|
-
|
5494
|
-
const valRange = {
|
5495
|
-
year: { min: 1900, max: 2099 },
|
5496
|
-
};
|
5497
|
-
|
5498
|
-
const BUTTON_LABEL_DONE = 'Done';
|
5499
|
-
const BUTTON_LABEL_CANCEL = 'Cancel';
|
5500
|
-
const CALENDAR_LABEL_TODAY = 'Today';
|
5501
|
-
|
5502
|
-
const MOBILE_DEVICE_INTERACTION_TIMEOUT_MS = 150;
|
5503
|
-
|
5504
5557
|
const isValidAttrArr = (arr, count) =>
|
5505
5558
|
Array.isArray(arr) && arr.length === count && arr.filter(Boolean).length === count;
|
5506
5559
|
|
@@ -6595,53 +6648,6 @@ const TextFieldClass = compose$1(
|
|
6595
6648
|
|
6596
6649
|
customElements.define(componentName$16, TextFieldClass);
|
6597
6650
|
|
6598
|
-
const patterns = {
|
6599
|
-
MM: '(0?[1-9]|1[0-2])',
|
6600
|
-
DD: '(0?[1-9]|[12][0-9]|3[01])',
|
6601
|
-
YYYY: '([0-9]{4})',
|
6602
|
-
};
|
6603
|
-
|
6604
|
-
const createPattern = (format) => {
|
6605
|
-
const pattern = format
|
6606
|
-
.split(DIVIDER)
|
6607
|
-
.map((part) => patterns[part])
|
6608
|
-
.join('\\D');
|
6609
|
-
|
6610
|
-
return `^${pattern}$`;
|
6611
|
-
};
|
6612
|
-
|
6613
|
-
const createToValuesFn = (format) => {
|
6614
|
-
const order = format.split(DIVIDER);
|
6615
|
-
return (match) => {
|
6616
|
-
const values = {};
|
6617
|
-
order.forEach((part, index) => {
|
6618
|
-
values[part] = match[index + 1];
|
6619
|
-
});
|
6620
|
-
return [values.YYYY, values.MM, values.DD];
|
6621
|
-
};
|
6622
|
-
};
|
6623
|
-
|
6624
|
-
const createDate = (val, regexp, toValuesFn) => {
|
6625
|
-
const match = regexp.exec(val);
|
6626
|
-
if (!match) return null;
|
6627
|
-
const [year, month, day] = toValuesFn(match);
|
6628
|
-
return newDate([year, month, day].join(DIVIDER));
|
6629
|
-
};
|
6630
|
-
|
6631
|
-
const createFormat = (format) => {
|
6632
|
-
const pattern = createPattern(format);
|
6633
|
-
const toValuesFn = createToValuesFn(format);
|
6634
|
-
const regexp = new RegExp(pattern);
|
6635
|
-
|
6636
|
-
return {
|
6637
|
-
pattern,
|
6638
|
-
validate: (val) => regexp.test(val),
|
6639
|
-
getDate: (val) => createDate(val, regexp, toValuesFn),
|
6640
|
-
};
|
6641
|
-
};
|
6642
|
-
|
6643
|
-
const formats = Object.fromEntries(SUPPORTED_FORMATS.map((f) => [f, createFormat(f)]));
|
6644
|
-
|
6645
6651
|
// DateCounterClass allows us to add several counters to the input, and use them seperately.
|
6646
6652
|
// For examele, we have a DayCounter, MonthCounter and YearCounter, which can each separately navigate
|
6647
6653
|
// between different ranges.
|
@@ -6951,6 +6957,11 @@ class RawDateFieldClass extends BaseInputClass$a {
|
|
6951
6957
|
return this.getAttribute('disable-calendar') === 'true';
|
6952
6958
|
}
|
6953
6959
|
|
6960
|
+
get isSelectAll() {
|
6961
|
+
const inputEle = this.inputElement.baseElement.inputElement;
|
6962
|
+
return inputEle.value.length === inputEle.selectionStart + inputEle.selectionEnd;
|
6963
|
+
}
|
6964
|
+
|
6954
6965
|
reportValidity() {
|
6955
6966
|
this.inputElement.reportValidity();
|
6956
6967
|
}
|
@@ -6985,9 +6996,10 @@ class RawDateFieldClass extends BaseInputClass$a {
|
|
6985
6996
|
this.inputElement.addEventListener('focus', this.onFocus.bind(this));
|
6986
6997
|
this.inputElement.addEventListener('blur', this.onBlur.bind(this));
|
6987
6998
|
this.inputElement.addEventListener('click', this.handleMouseCaretPositionChange.bind(this));
|
6988
|
-
this.inputElement.addEventListener('keydown', this.
|
6999
|
+
this.inputElement.addEventListener('keydown', this.handleKeyboard.bind(this));
|
6989
7000
|
this.inputElement.addEventListener('beforeinput', this.handleInput.bind(this));
|
6990
7001
|
this.inputElement.addEventListener('pointerdown', this.onPointerDown.bind(this));
|
7002
|
+
this.inputElement.addEventListener('paste', this.onPaste.bind(this));
|
6991
7003
|
|
6992
7004
|
forwardAttrs$1(this, this.inputElement, {
|
6993
7005
|
includeAttrs: [
|
@@ -7016,6 +7028,8 @@ class RawDateFieldClass extends BaseInputClass$a {
|
|
7016
7028
|
handleInput(e) {
|
7017
7029
|
e.preventDefault();
|
7018
7030
|
|
7031
|
+
this.handleSelectAll();
|
7032
|
+
|
7019
7033
|
if (e.data && isNumber(e.data)) {
|
7020
7034
|
this.parseDigits(e.data);
|
7021
7035
|
this.updateCountersDisplay();
|
@@ -7036,6 +7050,12 @@ class RawDateFieldClass extends BaseInputClass$a {
|
|
7036
7050
|
});
|
7037
7051
|
}
|
7038
7052
|
|
7053
|
+
handleSelectAll() {
|
7054
|
+
if (this.isSelectAll) {
|
7055
|
+
this.selectFirstCounter();
|
7056
|
+
}
|
7057
|
+
}
|
7058
|
+
|
7039
7059
|
#popoverPosStylesheet;
|
7040
7060
|
|
7041
7061
|
#popoverRenderer(root) {
|
@@ -7206,7 +7226,8 @@ class RawDateFieldClass extends BaseInputClass$a {
|
|
7206
7226
|
}
|
7207
7227
|
|
7208
7228
|
// On focus select the first counter
|
7209
|
-
this.
|
7229
|
+
this.selectFirstCounter();
|
7230
|
+
// set selection on first counter
|
7210
7231
|
this.inputElement.setSelectionRange(0, this.sortedCounters[0].length);
|
7211
7232
|
}
|
7212
7233
|
|
@@ -7265,6 +7286,10 @@ class RawDateFieldClass extends BaseInputClass$a {
|
|
7265
7286
|
);
|
7266
7287
|
}
|
7267
7288
|
|
7289
|
+
selectFirstCounter() {
|
7290
|
+
this.selectedCounterIdx = 0;
|
7291
|
+
}
|
7292
|
+
|
7268
7293
|
selectNextCounter() {
|
7269
7294
|
if (this.selectedCounterIdx < this.dateCounters.length) {
|
7270
7295
|
this.selectedCounterIdx = Math.min(this.selectedCounterIdx + 1, 2);
|
@@ -7322,7 +7347,17 @@ class RawDateFieldClass extends BaseInputClass$a {
|
|
7322
7347
|
});
|
7323
7348
|
}
|
7324
7349
|
|
7325
|
-
|
7350
|
+
handleKeyboard(e) {
|
7351
|
+
if (e.metaKey || e.ctrlKey) {
|
7352
|
+
if (e.key.toLowerCase() === 'x') {
|
7353
|
+
this.onCut(e);
|
7354
|
+
}
|
7355
|
+
|
7356
|
+
return;
|
7357
|
+
}
|
7358
|
+
|
7359
|
+
this.handleSelectAll();
|
7360
|
+
|
7326
7361
|
if (e.key === 'ArrowUp') {
|
7327
7362
|
this.activeCounter.inc();
|
7328
7363
|
} else if (e.key === 'ArrowDown') {
|
@@ -7355,6 +7390,11 @@ class RawDateFieldClass extends BaseInputClass$a {
|
|
7355
7390
|
}
|
7356
7391
|
|
7357
7392
|
handleBackspace() {
|
7393
|
+
if (this.isSelectAll) {
|
7394
|
+
this.resetToInitialState();
|
7395
|
+
return;
|
7396
|
+
}
|
7397
|
+
|
7358
7398
|
const counter = this.activeCounter;
|
7359
7399
|
|
7360
7400
|
if (counter.isEmpty) {
|
@@ -7472,6 +7512,62 @@ class RawDateFieldClass extends BaseInputClass$a {
|
|
7472
7512
|
|
7473
7513
|
return ret;
|
7474
7514
|
}
|
7515
|
+
|
7516
|
+
resetToInitialState() {
|
7517
|
+
this.resetDateCounters();
|
7518
|
+
this.selectFirstCounter();
|
7519
|
+
this.resetDisplay();
|
7520
|
+
}
|
7521
|
+
|
7522
|
+
onCut(e) {
|
7523
|
+
e.preventDefault();
|
7524
|
+
|
7525
|
+
if (this.isSelectAll) {
|
7526
|
+
this.#copyToClipboard(this.countersValue);
|
7527
|
+
this.resetToInitialState();
|
7528
|
+
} else {
|
7529
|
+
this.#copyToClipboard(this.activeCounter.stringValue);
|
7530
|
+
this.activeCounter.set('');
|
7531
|
+
}
|
7532
|
+
|
7533
|
+
this.setInputSelectionRange();
|
7534
|
+
}
|
7535
|
+
|
7536
|
+
#copyToClipboard(value) {
|
7537
|
+
try {
|
7538
|
+
navigator.clipboard.writeText(value);
|
7539
|
+
} catch (err) {
|
7540
|
+
console.error('Failed to copy date value:', err);
|
7541
|
+
}
|
7542
|
+
}
|
7543
|
+
|
7544
|
+
onPaste(e) {
|
7545
|
+
e.preventDefault();
|
7546
|
+
|
7547
|
+
const clipboardData = e.clipboardData || window.clipboardData;
|
7548
|
+
const pastedData = clipboardData.getData('Text');
|
7549
|
+
|
7550
|
+
// try paste entire date if valid
|
7551
|
+
const validDate = parseDateString(pastedData, this.format);
|
7552
|
+
|
7553
|
+
if (validDate) {
|
7554
|
+
this.value = validDate.getTime();
|
7555
|
+
this.onDateCounterChange();
|
7556
|
+
|
7557
|
+
// select all
|
7558
|
+
setTimeout(() => this.inputElement.setSelectionRange(0, this.inputElement.value.length));
|
7559
|
+
} else {
|
7560
|
+
const value = Number(pastedData);
|
7561
|
+
|
7562
|
+
// try paste in counter if possible
|
7563
|
+
if (value && this.activeCounter.min <= value && this.activeCounter.max >= value) {
|
7564
|
+
// use String to get rid of any zero padding
|
7565
|
+
this.activeCounter.set(String(value));
|
7566
|
+
|
7567
|
+
setTimeout(() => this.setInputSelectionRange());
|
7568
|
+
}
|
7569
|
+
}
|
7570
|
+
}
|
7475
7571
|
}
|
7476
7572
|
|
7477
7573
|
const textVars$5 = TextFieldClass.cssVarList;
|
@@ -7808,81 +7904,9 @@ const EmailFieldClass = compose$1(
|
|
7808
7904
|
|
7809
7905
|
customElements.define(componentName$12, EmailFieldClass);
|
7810
7906
|
|
7811
|
-
const
|
7812
|
-
|
7813
|
-
|
7814
|
-
constructor() {
|
7815
|
-
super();
|
7816
|
-
|
7817
|
-
this.attachShadow({ mode: 'open' }).innerHTML = `
|
7818
|
-
<div>
|
7819
|
-
<descope-text>
|
7820
|
-
<a>
|
7821
|
-
<slot></slot>
|
7822
|
-
</a>
|
7823
|
-
</descope-text>
|
7824
|
-
</div>
|
7825
|
-
`;
|
7826
|
-
|
7827
|
-
injectStyle(
|
7828
|
-
`
|
7829
|
-
:host {
|
7830
|
-
display: inline-block;
|
7831
|
-
line-height: 1em;
|
7832
|
-
}
|
7833
|
-
:host a {
|
7834
|
-
display: inline;
|
7835
|
-
}
|
7836
|
-
`,
|
7837
|
-
this
|
7838
|
-
);
|
7839
|
-
|
7840
|
-
forwardAttrs$1(this, this.shadowRoot.querySelector('a'), {
|
7841
|
-
includeAttrs: ['href', 'target', 'tooltip'],
|
7842
|
-
mapAttrs: {
|
7843
|
-
tooltip: 'title',
|
7844
|
-
},
|
7845
|
-
});
|
7846
|
-
|
7847
|
-
forwardAttrs$1(this, this.shadowRoot.querySelector('descope-text'), {
|
7848
|
-
includeAttrs: ['mode', 'variant'],
|
7849
|
-
});
|
7850
|
-
}
|
7851
|
-
}
|
7852
|
-
|
7853
|
-
const selectors$2 = {
|
7854
|
-
host: { selector: () => ':host' },
|
7855
|
-
link: { selector: () => ':host a' },
|
7856
|
-
anchor: {},
|
7857
|
-
wrapper: { selector: () => ':host > div' },
|
7858
|
-
text: { selector: () => TextClass.componentName },
|
7859
|
-
};
|
7860
|
-
|
7861
|
-
const { anchor, text: text$3, host: host$l, wrapper: wrapper$1, link: link$3 } = selectors$2;
|
7862
|
-
|
7863
|
-
const LinkClass = compose$1(
|
7864
|
-
createStyleMixin$1({
|
7865
|
-
mappings: {
|
7866
|
-
hostWidth: { ...host$l, property: 'width' },
|
7867
|
-
hostDirection: { ...text$3, property: 'direction' },
|
7868
|
-
textAlign: wrapper$1,
|
7869
|
-
textDecoration: { ...link$3, property: 'text-decoration', fallback: 'none' },
|
7870
|
-
textColor: [
|
7871
|
-
{ ...anchor, property: 'color' },
|
7872
|
-
{ ...text$3, property: TextClass.cssVarList.textColor },
|
7873
|
-
],
|
7874
|
-
cursor: anchor,
|
7875
|
-
},
|
7876
|
-
}),
|
7877
|
-
draggableMixin$1,
|
7878
|
-
componentNameValidationMixin$1
|
7879
|
-
)(RawLink);
|
7880
|
-
|
7881
|
-
customElements.define(componentName$11, LinkClass);
|
7882
|
-
|
7883
|
-
const createCssVarImageClass = ({ componentName, varName, fallbackVarName }) => {
|
7884
|
-
let style;
|
7885
|
-
const getContent = () => style;
|
7907
|
+
const createCssVarImageClass = ({ componentName, varName, fallbackVarName }) => {
|
7908
|
+
let style;
|
7909
|
+
const getContent = () => style;
|
7886
7910
|
|
7887
7911
|
class RawCssVarImageClass extends createBaseClass$1({
|
7888
7912
|
componentName,
|
@@ -7934,37 +7958,37 @@ const createCssVarImageClass = ({ componentName, varName, fallbackVarName }) =>
|
|
7934
7958
|
return CssVarImageClass;
|
7935
7959
|
};
|
7936
7960
|
|
7937
|
-
const componentName$
|
7961
|
+
const componentName$11 = getComponentName$1('logo');
|
7938
7962
|
|
7939
7963
|
const LogoClass = createCssVarImageClass({
|
7940
|
-
componentName: componentName$
|
7964
|
+
componentName: componentName$11,
|
7941
7965
|
varName: 'url',
|
7942
7966
|
fallbackVarName: 'fallbackUrl',
|
7943
7967
|
});
|
7944
7968
|
|
7945
|
-
customElements.define(componentName$
|
7969
|
+
customElements.define(componentName$11, LogoClass);
|
7946
7970
|
|
7947
|
-
const componentName
|
7971
|
+
const componentName$10 = getComponentName$1('totp-image');
|
7948
7972
|
|
7949
7973
|
const TotpImageClass = createCssVarImageClass({
|
7950
|
-
componentName: componentName
|
7974
|
+
componentName: componentName$10,
|
7951
7975
|
varName: 'url',
|
7952
7976
|
fallbackVarName: 'fallbackUrl',
|
7953
7977
|
});
|
7954
7978
|
|
7955
|
-
customElements.define(componentName
|
7979
|
+
customElements.define(componentName$10, TotpImageClass);
|
7956
7980
|
|
7957
|
-
const componentName
|
7981
|
+
const componentName$$ = getComponentName$1('notp-image');
|
7958
7982
|
|
7959
7983
|
const NotpImageClass = createCssVarImageClass({
|
7960
|
-
componentName: componentName
|
7984
|
+
componentName: componentName$$,
|
7961
7985
|
varName: 'url',
|
7962
7986
|
fallbackVarName: 'fallbackUrl',
|
7963
7987
|
});
|
7964
7988
|
|
7965
|
-
customElements.define(componentName
|
7989
|
+
customElements.define(componentName$$, NotpImageClass);
|
7966
7990
|
|
7967
|
-
const componentName$
|
7991
|
+
const componentName$_ = getComponentName$1('number-field');
|
7968
7992
|
|
7969
7993
|
const NumberFieldClass = compose$1(
|
7970
7994
|
createStyleMixin$1({
|
@@ -7998,11 +8022,11 @@ const NumberFieldClass = compose$1(
|
|
7998
8022
|
}
|
7999
8023
|
`,
|
8000
8024
|
excludeAttrsSync: ['tabindex'],
|
8001
|
-
componentName: componentName$
|
8025
|
+
componentName: componentName$_,
|
8002
8026
|
})
|
8003
8027
|
);
|
8004
8028
|
|
8005
|
-
customElements.define(componentName$
|
8029
|
+
customElements.define(componentName$_, NumberFieldClass);
|
8006
8030
|
|
8007
8031
|
const INPUT_MASK_TEXT_PROP = '--descope-input-mask-content';
|
8008
8032
|
const INPUT_MASK_DISPLAY_PROP = '--descope-input-mask-display';
|
@@ -8029,7 +8053,7 @@ const toggleMaskVisibility = (input, value) => {
|
|
8029
8053
|
|
8030
8054
|
/* eslint-disable no-param-reassign */
|
8031
8055
|
|
8032
|
-
const componentName$
|
8056
|
+
const componentName$Z = getComponentName$1('passcode-internal');
|
8033
8057
|
|
8034
8058
|
const observedAttributes$5 = ['digits', 'loading'];
|
8035
8059
|
|
@@ -8042,7 +8066,7 @@ const forwardAttributes = [
|
|
8042
8066
|
'aria-labelledby',
|
8043
8067
|
];
|
8044
8068
|
|
8045
|
-
const BaseInputClass$9 = createBaseInputClass$1({ componentName: componentName$
|
8069
|
+
const BaseInputClass$9 = createBaseInputClass$1({ componentName: componentName$Z, baseSelector: 'div' });
|
8046
8070
|
|
8047
8071
|
class PasscodeInternal extends BaseInputClass$9 {
|
8048
8072
|
static get observedAttributes() {
|
@@ -8256,7 +8280,7 @@ class PasscodeInternal extends BaseInputClass$9 {
|
|
8256
8280
|
}
|
8257
8281
|
}
|
8258
8282
|
|
8259
|
-
const componentName$
|
8283
|
+
const componentName$Y = getComponentName$1('passcode');
|
8260
8284
|
|
8261
8285
|
const observedAttributes$4 = ['digits'];
|
8262
8286
|
|
@@ -8301,18 +8325,18 @@ const customMixin$c = (superclass) =>
|
|
8301
8325
|
const template = document.createElement('template');
|
8302
8326
|
|
8303
8327
|
template.innerHTML = `
|
8304
|
-
<${componentName$
|
8328
|
+
<${componentName$Z}
|
8305
8329
|
bordered="true"
|
8306
8330
|
name="code"
|
8307
8331
|
tabindex="-1"
|
8308
8332
|
slot="input"
|
8309
8333
|
role="textbox"
|
8310
|
-
><slot></slot></${componentName$
|
8334
|
+
><slot></slot></${componentName$Z}>
|
8311
8335
|
`;
|
8312
8336
|
|
8313
8337
|
this.baseElement.appendChild(template.content.cloneNode(true));
|
8314
8338
|
|
8315
|
-
this.inputElement = this.shadowRoot.querySelector(componentName$
|
8339
|
+
this.inputElement = this.shadowRoot.querySelector(componentName$Z);
|
8316
8340
|
|
8317
8341
|
forwardAttrs$1(this, this.inputElement, { includeAttrs: ['digits', 'size', 'loading'] });
|
8318
8342
|
}
|
@@ -8327,7 +8351,7 @@ const customMixin$c = (superclass) =>
|
|
8327
8351
|
};
|
8328
8352
|
|
8329
8353
|
const {
|
8330
|
-
host: host$
|
8354
|
+
host: host$l,
|
8331
8355
|
digitField,
|
8332
8356
|
label: label$7,
|
8333
8357
|
requiredIndicator: requiredIndicator$7,
|
@@ -8350,10 +8374,10 @@ const loaderVars = LoaderRadialClass.cssVarList;
|
|
8350
8374
|
const PasscodeClass = compose$1(
|
8351
8375
|
createStyleMixin$1({
|
8352
8376
|
mappings: {
|
8353
|
-
fontSize: [{ ...digitField, property: textVars$3.fontSize }, host$
|
8377
|
+
fontSize: [{ ...digitField, property: textVars$3.fontSize }, host$l],
|
8354
8378
|
hostWidth: { property: 'width' },
|
8355
|
-
hostDirection: { ...host$
|
8356
|
-
fontFamily: [host$
|
8379
|
+
hostDirection: { ...host$l, property: 'direction' },
|
8380
|
+
fontFamily: [host$l, { ...label$7 }],
|
8357
8381
|
labelTextColor: [
|
8358
8382
|
{ ...label$7, property: 'color' },
|
8359
8383
|
{ ...requiredIndicator$7, property: 'color' },
|
@@ -8471,13 +8495,13 @@ const PasscodeClass = compose$1(
|
|
8471
8495
|
${resetInputCursor('vaadin-text-field')}
|
8472
8496
|
`,
|
8473
8497
|
excludeAttrsSync: ['tabindex'],
|
8474
|
-
componentName: componentName$
|
8498
|
+
componentName: componentName$Y,
|
8475
8499
|
})
|
8476
8500
|
);
|
8477
8501
|
|
8478
|
-
customElements.define(componentName$
|
8502
|
+
customElements.define(componentName$Z, PasscodeInternal);
|
8479
8503
|
|
8480
|
-
customElements.define(componentName$
|
8504
|
+
customElements.define(componentName$Y, PasscodeClass);
|
8481
8505
|
|
8482
8506
|
const passwordDraggableMixin = (superclass) =>
|
8483
8507
|
class PasswordDraggableMixinClass extends superclass {
|
@@ -8518,7 +8542,7 @@ const passwordDraggableMixin = (superclass) =>
|
|
8518
8542
|
}
|
8519
8543
|
};
|
8520
8544
|
|
8521
|
-
const componentName$
|
8545
|
+
const componentName$X = getComponentName$1('password');
|
8522
8546
|
|
8523
8547
|
const customMixin$b = (superclass) =>
|
8524
8548
|
class PasswordFieldMixinClass extends superclass {
|
@@ -8627,7 +8651,7 @@ const customMixin$b = (superclass) =>
|
|
8627
8651
|
};
|
8628
8652
|
|
8629
8653
|
const {
|
8630
|
-
host: host$
|
8654
|
+
host: host$k,
|
8631
8655
|
inputField: inputField$4,
|
8632
8656
|
inputElement: inputElement$2,
|
8633
8657
|
inputElementPlaceholder,
|
@@ -8653,10 +8677,10 @@ const {
|
|
8653
8677
|
const PasswordClass = compose$1(
|
8654
8678
|
createStyleMixin$1({
|
8655
8679
|
mappings: {
|
8656
|
-
hostWidth: { ...host$
|
8657
|
-
hostMinWidth: { ...host$
|
8658
|
-
hostDirection: { ...host$
|
8659
|
-
fontSize: [{}, host$
|
8680
|
+
hostWidth: { ...host$k, property: 'width' },
|
8681
|
+
hostMinWidth: { ...host$k, property: 'min-width' },
|
8682
|
+
hostDirection: { ...host$k, property: 'direction' },
|
8683
|
+
fontSize: [{}, host$k],
|
8660
8684
|
fontFamily: [label$6, inputField$4, errorMessage$8, helperText$6],
|
8661
8685
|
inputHeight: { ...inputField$4, property: 'height' },
|
8662
8686
|
inputHorizontalPadding: [
|
@@ -8800,324 +8824,99 @@ const PasswordClass = compose$1(
|
|
8800
8824
|
}
|
8801
8825
|
`,
|
8802
8826
|
excludeAttrsSync: ['tabindex'],
|
8803
|
-
componentName: componentName$
|
8827
|
+
componentName: componentName$X,
|
8804
8828
|
})
|
8805
8829
|
);
|
8806
8830
|
|
8807
|
-
customElements.define(componentName$
|
8831
|
+
customElements.define(componentName$X, PasswordClass);
|
8808
8832
|
|
8809
|
-
const
|
8810
|
-
'blockquote',
|
8811
|
-
'list',
|
8812
|
-
'image',
|
8813
|
-
'table',
|
8814
|
-
'code',
|
8815
|
-
'hr',
|
8816
|
-
'backticks',
|
8817
|
-
'fence',
|
8818
|
-
'reference',
|
8819
|
-
'heading',
|
8820
|
-
'lheading',
|
8821
|
-
'html_block',
|
8822
|
-
];
|
8833
|
+
const componentName$W = getComponentName$1('text-area');
|
8823
8834
|
|
8824
|
-
const
|
8825
|
-
|
8826
|
-
|
8827
|
-
|
8835
|
+
const {
|
8836
|
+
host: host$j,
|
8837
|
+
label: label$5,
|
8838
|
+
placeholder: placeholder$1,
|
8839
|
+
inputField: inputField$3,
|
8840
|
+
textArea: textArea$2,
|
8841
|
+
requiredIndicator: requiredIndicator$5,
|
8842
|
+
helperText: helperText$5,
|
8843
|
+
errorMessage: errorMessage$7,
|
8844
|
+
} = {
|
8845
|
+
host: { selector: () => ':host' },
|
8846
|
+
label: { selector: '::part(label)' },
|
8847
|
+
placeholder: { selector: 'textarea:placeholder-shown' },
|
8848
|
+
inputField: { selector: '::part(input-field)' },
|
8849
|
+
textArea: { selector: '> textarea' },
|
8850
|
+
requiredIndicator: { selector: '[required]::part(required-indicator)::after' },
|
8851
|
+
helperText: { selector: '::part(helper-text)' },
|
8852
|
+
errorMessage: { selector: '::part(error-message)' },
|
8828
8853
|
};
|
8829
8854
|
|
8830
|
-
|
8831
|
-
|
8832
|
-
|
8833
|
-
|
8834
|
-
|
8835
|
-
|
8836
|
-
|
8837
|
-
|
8838
|
-
|
8839
|
-
|
8840
|
-
|
8841
|
-
|
8842
|
-
|
8843
|
-
|
8844
|
-
|
8845
|
-
|
8846
|
-
|
8847
|
-
|
8848
|
-
|
8849
|
-
:
|
8850
|
-
|
8851
|
-
|
8852
|
-
}
|
8853
|
-
:
|
8854
|
-
|
8855
|
-
|
8856
|
-
}
|
8857
|
-
|
8858
|
-
|
8859
|
-
}
|
8860
|
-
|
8861
|
-
|
8862
|
-
|
8863
|
-
|
8864
|
-
|
8865
|
-
|
8866
|
-
|
8867
|
-
|
8868
|
-
|
8869
|
-
|
8870
|
-
|
8871
|
-
|
8872
|
-
|
8873
|
-
|
8874
|
-
|
8875
|
-
|
8876
|
-
|
8877
|
-
|
8878
|
-
|
8879
|
-
|
8880
|
-
|
8881
|
-
|
8882
|
-
|
8883
|
-
|
8884
|
-
|
8885
|
-
|
8886
|
-
|
8887
|
-
|
8888
|
-
|
8889
|
-
|
8890
|
-
|
8891
|
-
|
8892
|
-
|
8893
|
-
|
8894
|
-
attributeChangedCallback(attrName, oldValue, newValue) {
|
8895
|
-
super.attributeChangedCallback?.(attrName, oldValue, newValue);
|
8896
|
-
|
8897
|
-
if (newValue !== oldValue) {
|
8898
|
-
if (attrName === 'readonly') {
|
8899
|
-
this.onReadOnlyChange(newValue === 'true');
|
8900
|
-
}
|
8901
|
-
|
8902
|
-
if (attrName === 'link-target-blank') {
|
8903
|
-
this.#initProcessor();
|
8904
|
-
}
|
8905
|
-
}
|
8906
|
-
}
|
8855
|
+
const TextAreaClass = compose$1(
|
8856
|
+
createStyleMixin$1({
|
8857
|
+
mappings: {
|
8858
|
+
hostWidth: { ...host$j, property: 'width' },
|
8859
|
+
hostMinWidth: { ...host$j, property: 'min-width' },
|
8860
|
+
hostDirection: { ...host$j, property: 'direction' },
|
8861
|
+
fontSize: [host$j, textArea$2],
|
8862
|
+
fontFamily: [label$5, inputField$3, helperText$5, errorMessage$7],
|
8863
|
+
labelTextColor: [
|
8864
|
+
{ ...label$5, property: 'color' },
|
8865
|
+
{ ...requiredIndicator$5, property: 'color' },
|
8866
|
+
],
|
8867
|
+
labelRequiredIndicator: { ...requiredIndicator$5, property: 'content' },
|
8868
|
+
errorMessageTextColor: { ...errorMessage$7, property: 'color' },
|
8869
|
+
errorMessageIcon: { ...errorMessage$7, property: 'background-image' },
|
8870
|
+
errorMessageIconSize: { ...errorMessage$7, property: 'background-size' },
|
8871
|
+
errorMessageIconPadding: { ...errorMessage$7, property: 'padding-inline-start' },
|
8872
|
+
errorMessageIconRepeat: { ...errorMessage$7, property: 'background-repeat' },
|
8873
|
+
errorMessageIconPosition: { ...errorMessage$7, property: 'background-position' },
|
8874
|
+
errorMessageFontSize: { ...errorMessage$7, property: 'font-size' },
|
8875
|
+
inputBackgroundColor: { ...inputField$3, property: 'background-color' },
|
8876
|
+
inputValueTextColor: { ...textArea$2, property: 'color' },
|
8877
|
+
inputPlaceholderTextColor: { ...placeholder$1, property: 'color' },
|
8878
|
+
inputBorderWidth: { ...inputField$3, property: 'border-width' },
|
8879
|
+
inputBorderStyle: { ...inputField$3, property: 'border-style' },
|
8880
|
+
inputBorderColor: { ...inputField$3, property: 'border-color' },
|
8881
|
+
inputBorderRadius: { ...inputField$3, property: 'border-radius' },
|
8882
|
+
inputOutlineStyle: { ...inputField$3, property: 'outline-Style' },
|
8883
|
+
inputOutlineColor: { ...inputField$3, property: 'outline-color' },
|
8884
|
+
inputOutlineOffset: { ...inputField$3, property: 'outline-offset' },
|
8885
|
+
inputOutlineWidth: { ...inputField$3, property: 'outline-width' },
|
8886
|
+
inputResizeType: { ...textArea$2, property: 'resize' },
|
8887
|
+
inputMinHeight: { ...textArea$2, property: 'min-height' },
|
8888
|
+
inputTextAlign: { ...textArea$2, property: 'text-align' },
|
8889
|
+
},
|
8890
|
+
}),
|
8891
|
+
draggableMixin$1,
|
8892
|
+
composedProxyInputMixin$1({ proxyProps: ['value', 'selectionStart'] }),
|
8893
|
+
componentNameValidationMixin$1
|
8894
|
+
)(
|
8895
|
+
createProxy$1({
|
8896
|
+
slots: [],
|
8897
|
+
wrappedEleName: 'vaadin-text-area',
|
8898
|
+
style: () => `
|
8899
|
+
:host {
|
8900
|
+
display: inline-block;
|
8901
|
+
max-width: 100%;
|
8902
|
+
box-sizing: border-box;
|
8903
|
+
}
|
8904
|
+
textarea {
|
8905
|
+
height: 100%;
|
8906
|
+
}
|
8907
|
+
${resetInputLabelPosition('vaadin-text-area')}
|
8908
|
+
${useHostExternalPadding(TextAreaClass.cssVarList)}
|
8909
|
+
${resetInputContainer('vaadin-text-area')}
|
8910
|
+
${resetInputField('vaadin-text-area')}
|
8911
|
+
${resetInputPlaceholder('vaadin-text-area', 'textarea')}
|
8912
|
+
${resetInputCursor('vaadin-text-area')}
|
8913
|
+
`,
|
8914
|
+
excludeAttrsSync: ['tabindex'],
|
8915
|
+
componentName: componentName$W,
|
8916
|
+
})
|
8917
|
+
);
|
8907
8918
|
|
8908
|
-
|
8909
|
-
customUnderlineRenderer() {
|
8910
|
-
this.processor.renderer.rules.em_open = (tokens, idx, options, env, self) => {
|
8911
|
-
if (tokens[idx].markup === '_') tokens[idx].tag = 'u';
|
8912
|
-
return this.#origEmRenderer(tokens, idx, options, env, self);
|
8913
|
-
};
|
8914
|
-
this.processor.renderer.rules.em_close = (tokens, idx, options, env, self) => {
|
8915
|
-
if (tokens[idx].markup === '_') tokens[idx].tag = 'u';
|
8916
|
-
return this.#origEmRenderer(tokens, idx, options, env, self);
|
8917
|
-
};
|
8918
|
-
}
|
8919
|
-
|
8920
|
-
#customizeLinkRenderer() {
|
8921
|
-
if (this.linkTargetBlank) {
|
8922
|
-
this.processor.renderer.rules.link_open = (tokens, idx, options, env, self) => {
|
8923
|
-
// Add a new `target` attribute, or replace the value of the existing one.
|
8924
|
-
tokens[idx].attrSet('target', '_blank');
|
8925
|
-
// Pass the token to the default renderer.
|
8926
|
-
return this.#origLinkRenderer(tokens, idx, options, env, self);
|
8927
|
-
};
|
8928
|
-
} else {
|
8929
|
-
this.processor.renderer.rules.link_open = this.#origLinkRenderer;
|
8930
|
-
}
|
8931
|
-
}
|
8932
|
-
|
8933
|
-
#disableCustomRules() {
|
8934
|
-
if (!this.processor) {
|
8935
|
-
return;
|
8936
|
-
}
|
8937
|
-
this.processor.disable(disableRules);
|
8938
|
-
}
|
8939
|
-
|
8940
|
-
#updateProcessorRules() {
|
8941
|
-
this.#disableCustomRules();
|
8942
|
-
}
|
8943
|
-
|
8944
|
-
#storeOrigRenderers() {
|
8945
|
-
const defaultLinkRenderer = (tokens, idx, options, _, self) =>
|
8946
|
-
self.renderToken(tokens, idx, options);
|
8947
|
-
this.#origLinkRenderer = this.processor.renderer.rules.link_open || defaultLinkRenderer;
|
8948
|
-
|
8949
|
-
const defaultStrongRenderer = (tokens, idx, options, _, self) =>
|
8950
|
-
self.renderToken(tokens, idx, options);
|
8951
|
-
this.#origEmRenderer = this.processor.renderer.rules.em_open || defaultStrongRenderer;
|
8952
|
-
}
|
8953
|
-
|
8954
|
-
#initProcessor() {
|
8955
|
-
this.processor = new MarkdownIt('commonmark', { html: true });
|
8956
|
-
this.#storeOrigRenderers();
|
8957
|
-
this.#updateProcessorRules();
|
8958
|
-
this.#customizeLinkRenderer();
|
8959
|
-
this.customUnderlineRenderer();
|
8960
|
-
}
|
8961
|
-
|
8962
|
-
get linkTargetBlank() {
|
8963
|
-
return this.getAttribute('link-target-blank') === 'true';
|
8964
|
-
}
|
8965
|
-
|
8966
|
-
get contentNode() {
|
8967
|
-
return this.shadowRoot.querySelector('.content');
|
8968
|
-
}
|
8969
|
-
|
8970
|
-
#parseChildren() {
|
8971
|
-
if (!this.processor) {
|
8972
|
-
return;
|
8973
|
-
}
|
8974
|
-
|
8975
|
-
let html = decodeHTML(this.innerHTML);
|
8976
|
-
|
8977
|
-
if (!html?.trim() && this.isConnected) {
|
8978
|
-
this.setAttribute('empty', 'true');
|
8979
|
-
} else {
|
8980
|
-
this.removeAttribute('empty');
|
8981
|
-
}
|
8982
|
-
|
8983
|
-
try {
|
8984
|
-
const tokens = this.processor.parse(html, { references: undefined });
|
8985
|
-
html = this.processor.renderer.render(tokens, { html: true, breaks: true });
|
8986
|
-
} catch (e) {
|
8987
|
-
// eslint-disable-next-line no-console
|
8988
|
-
console.warn('Not parsing invalid markdown token');
|
8989
|
-
}
|
8990
|
-
|
8991
|
-
this.contentNode.innerHTML = html;
|
8992
|
-
}
|
8993
|
-
|
8994
|
-
onReadOnlyChange(isReadOnly) {
|
8995
|
-
if (isReadOnly) {
|
8996
|
-
this.contentNode.setAttribute('inert', isReadOnly);
|
8997
|
-
} else {
|
8998
|
-
this.contentNode.removeAttribute('inert');
|
8999
|
-
}
|
9000
|
-
}
|
9001
|
-
}
|
9002
|
-
|
9003
|
-
const EnrichedTextClass = compose$1(
|
9004
|
-
createStyleMixin$1({
|
9005
|
-
mappings: {
|
9006
|
-
hostWidth: { selector: () => ':host', property: 'width' },
|
9007
|
-
hostDisplay: { selector: () => ':host', property: 'display', fallback: 'inline-block' },
|
9008
|
-
hostDirection: { selector: () => ':host', property: 'direction' },
|
9009
|
-
fontSize: {},
|
9010
|
-
fontFamily: {},
|
9011
|
-
fontWeight: {},
|
9012
|
-
fontWeightBold: [
|
9013
|
-
{ selector: () => ':host strong', property: 'font-weight' },
|
9014
|
-
{ selector: () => ':host b', property: 'font-weight' },
|
9015
|
-
],
|
9016
|
-
textColor: { property: 'color' },
|
9017
|
-
textLineHeight: { property: 'line-height' },
|
9018
|
-
textAlign: {},
|
9019
|
-
linkColor: { selector: 'a', property: 'color' },
|
9020
|
-
linkTextDecoration: { selector: 'a', property: 'text-decoration' },
|
9021
|
-
linkHoverTextDecoration: { selector: 'a:hover', property: 'text-decoration' },
|
9022
|
-
minHeight: {},
|
9023
|
-
minWidth: {},
|
9024
|
-
},
|
9025
|
-
}),
|
9026
|
-
createStyleMixin$1({ componentNameOverride: getComponentName$1('link') }),
|
9027
|
-
createStyleMixin$1({ componentNameOverride: getComponentName$1('text') }),
|
9028
|
-
draggableMixin$1,
|
9029
|
-
componentNameValidationMixin$1
|
9030
|
-
)(EnrichedText);
|
9031
|
-
|
9032
|
-
customElements.define(componentName$V, EnrichedTextClass);
|
9033
|
-
|
9034
|
-
const componentName$U = getComponentName$1('text-area');
|
9035
|
-
|
9036
|
-
const {
|
9037
|
-
host: host$i,
|
9038
|
-
label: label$5,
|
9039
|
-
placeholder: placeholder$1,
|
9040
|
-
inputField: inputField$3,
|
9041
|
-
textArea: textArea$2,
|
9042
|
-
requiredIndicator: requiredIndicator$5,
|
9043
|
-
helperText: helperText$5,
|
9044
|
-
errorMessage: errorMessage$7,
|
9045
|
-
} = {
|
9046
|
-
host: { selector: () => ':host' },
|
9047
|
-
label: { selector: '::part(label)' },
|
9048
|
-
placeholder: { selector: 'textarea:placeholder-shown' },
|
9049
|
-
inputField: { selector: '::part(input-field)' },
|
9050
|
-
textArea: { selector: '> textarea' },
|
9051
|
-
requiredIndicator: { selector: '[required]::part(required-indicator)::after' },
|
9052
|
-
helperText: { selector: '::part(helper-text)' },
|
9053
|
-
errorMessage: { selector: '::part(error-message)' },
|
9054
|
-
};
|
9055
|
-
|
9056
|
-
const TextAreaClass = compose$1(
|
9057
|
-
createStyleMixin$1({
|
9058
|
-
mappings: {
|
9059
|
-
hostWidth: { ...host$i, property: 'width' },
|
9060
|
-
hostMinWidth: { ...host$i, property: 'min-width' },
|
9061
|
-
hostDirection: { ...host$i, property: 'direction' },
|
9062
|
-
fontSize: [host$i, textArea$2],
|
9063
|
-
fontFamily: [label$5, inputField$3, helperText$5, errorMessage$7],
|
9064
|
-
labelTextColor: [
|
9065
|
-
{ ...label$5, property: 'color' },
|
9066
|
-
{ ...requiredIndicator$5, property: 'color' },
|
9067
|
-
],
|
9068
|
-
labelRequiredIndicator: { ...requiredIndicator$5, property: 'content' },
|
9069
|
-
errorMessageTextColor: { ...errorMessage$7, property: 'color' },
|
9070
|
-
errorMessageIcon: { ...errorMessage$7, property: 'background-image' },
|
9071
|
-
errorMessageIconSize: { ...errorMessage$7, property: 'background-size' },
|
9072
|
-
errorMessageIconPadding: { ...errorMessage$7, property: 'padding-inline-start' },
|
9073
|
-
errorMessageIconRepeat: { ...errorMessage$7, property: 'background-repeat' },
|
9074
|
-
errorMessageIconPosition: { ...errorMessage$7, property: 'background-position' },
|
9075
|
-
errorMessageFontSize: { ...errorMessage$7, property: 'font-size' },
|
9076
|
-
inputBackgroundColor: { ...inputField$3, property: 'background-color' },
|
9077
|
-
inputValueTextColor: { ...textArea$2, property: 'color' },
|
9078
|
-
inputPlaceholderTextColor: { ...placeholder$1, property: 'color' },
|
9079
|
-
inputBorderWidth: { ...inputField$3, property: 'border-width' },
|
9080
|
-
inputBorderStyle: { ...inputField$3, property: 'border-style' },
|
9081
|
-
inputBorderColor: { ...inputField$3, property: 'border-color' },
|
9082
|
-
inputBorderRadius: { ...inputField$3, property: 'border-radius' },
|
9083
|
-
inputOutlineStyle: { ...inputField$3, property: 'outline-Style' },
|
9084
|
-
inputOutlineColor: { ...inputField$3, property: 'outline-color' },
|
9085
|
-
inputOutlineOffset: { ...inputField$3, property: 'outline-offset' },
|
9086
|
-
inputOutlineWidth: { ...inputField$3, property: 'outline-width' },
|
9087
|
-
inputResizeType: { ...textArea$2, property: 'resize' },
|
9088
|
-
inputMinHeight: { ...textArea$2, property: 'min-height' },
|
9089
|
-
inputTextAlign: { ...textArea$2, property: 'text-align' },
|
9090
|
-
},
|
9091
|
-
}),
|
9092
|
-
draggableMixin$1,
|
9093
|
-
composedProxyInputMixin$1({ proxyProps: ['value', 'selectionStart'] }),
|
9094
|
-
componentNameValidationMixin$1
|
9095
|
-
)(
|
9096
|
-
createProxy$1({
|
9097
|
-
slots: [],
|
9098
|
-
wrappedEleName: 'vaadin-text-area',
|
9099
|
-
style: () => `
|
9100
|
-
:host {
|
9101
|
-
display: inline-block;
|
9102
|
-
max-width: 100%;
|
9103
|
-
box-sizing: border-box;
|
9104
|
-
}
|
9105
|
-
textarea {
|
9106
|
-
height: 100%;
|
9107
|
-
}
|
9108
|
-
${resetInputLabelPosition('vaadin-text-area')}
|
9109
|
-
${useHostExternalPadding(TextAreaClass.cssVarList)}
|
9110
|
-
${resetInputContainer('vaadin-text-area')}
|
9111
|
-
${resetInputField('vaadin-text-area')}
|
9112
|
-
${resetInputPlaceholder('vaadin-text-area', 'textarea')}
|
9113
|
-
${resetInputCursor('vaadin-text-area')}
|
9114
|
-
`,
|
9115
|
-
excludeAttrsSync: ['tabindex'],
|
9116
|
-
componentName: componentName$U,
|
9117
|
-
})
|
9118
|
-
);
|
9119
|
-
|
9120
|
-
customElements.define(componentName$U, TextAreaClass);
|
8919
|
+
customElements.define(componentName$W, TextAreaClass);
|
9121
8920
|
|
9122
8921
|
var CountryCodes = [
|
9123
8922
|
// United States should be the first option
|
@@ -10380,7 +10179,7 @@ const parsePhoneNumber = (val) => {
|
|
10380
10179
|
return [countryCode, phoneNumber];
|
10381
10180
|
};
|
10382
10181
|
|
10383
|
-
const componentName$
|
10182
|
+
const componentName$V = getComponentName$1('phone-field-internal');
|
10384
10183
|
|
10385
10184
|
const commonAttrs$1 = ['disabled', 'size', 'bordered', 'readonly'];
|
10386
10185
|
const countryAttrs = ['country-input-placeholder', 'default-code', 'restrict-countries'];
|
@@ -10394,7 +10193,7 @@ const mapAttrs$1 = {
|
|
10394
10193
|
|
10395
10194
|
const inputRelatedAttrs$1 = [].concat(commonAttrs$1, countryAttrs, phoneAttrs, labelTypeAttrs);
|
10396
10195
|
|
10397
|
-
const BaseInputClass$8 = createBaseInputClass$1({ componentName: componentName$
|
10196
|
+
const BaseInputClass$8 = createBaseInputClass$1({ componentName: componentName$V, baseSelector: 'div' });
|
10398
10197
|
|
10399
10198
|
let PhoneFieldInternal$1 = class PhoneFieldInternal extends BaseInputClass$8 {
|
10400
10199
|
static get observedAttributes() {
|
@@ -10751,12 +10550,12 @@ let PhoneFieldInternal$1 = class PhoneFieldInternal extends BaseInputClass$8 {
|
|
10751
10550
|
}
|
10752
10551
|
};
|
10753
10552
|
|
10754
|
-
customElements.define(componentName$
|
10553
|
+
customElements.define(componentName$V, PhoneFieldInternal$1);
|
10755
10554
|
|
10756
10555
|
const textVars$2 = TextFieldClass.cssVarList;
|
10757
10556
|
const comboVars = ComboBoxClass.cssVarList;
|
10758
10557
|
|
10759
|
-
const componentName$
|
10558
|
+
const componentName$U = getComponentName$1('phone-field');
|
10760
10559
|
|
10761
10560
|
const customMixin$a = (superclass) =>
|
10762
10561
|
class PhoneFieldMixinClass extends superclass {
|
@@ -10770,15 +10569,15 @@ const customMixin$a = (superclass) =>
|
|
10770
10569
|
const template = document.createElement('template');
|
10771
10570
|
|
10772
10571
|
template.innerHTML = `
|
10773
|
-
<${componentName$
|
10572
|
+
<${componentName$V}
|
10774
10573
|
tabindex="-1"
|
10775
10574
|
slot="input"
|
10776
|
-
></${componentName$
|
10575
|
+
></${componentName$V}>
|
10777
10576
|
`;
|
10778
10577
|
|
10779
10578
|
this.baseElement.appendChild(template.content.cloneNode(true));
|
10780
10579
|
|
10781
|
-
this.inputElement = this.shadowRoot.querySelector(componentName$
|
10580
|
+
this.inputElement = this.shadowRoot.querySelector(componentName$V);
|
10782
10581
|
|
10783
10582
|
forwardAttrs$1(this.shadowRoot.host, this.inputElement, {
|
10784
10583
|
includeAttrs: [
|
@@ -10822,7 +10621,7 @@ const customMixin$a = (superclass) =>
|
|
10822
10621
|
};
|
10823
10622
|
|
10824
10623
|
const {
|
10825
|
-
host: host$
|
10624
|
+
host: host$i,
|
10826
10625
|
label: label$4,
|
10827
10626
|
requiredIndicator: requiredIndicator$4,
|
10828
10627
|
inputField: inputField$2,
|
@@ -10849,7 +10648,7 @@ const PhoneFieldClass = compose$1(
|
|
10849
10648
|
createStyleMixin$1({
|
10850
10649
|
mappings: {
|
10851
10650
|
fontSize: [
|
10852
|
-
host$
|
10651
|
+
host$i,
|
10853
10652
|
inputField$2,
|
10854
10653
|
{
|
10855
10654
|
selector: TextFieldClass.componentName,
|
@@ -10870,11 +10669,11 @@ const PhoneFieldClass = compose$1(
|
|
10870
10669
|
},
|
10871
10670
|
],
|
10872
10671
|
hostWidth: [
|
10873
|
-
{ ...host$
|
10672
|
+
{ ...host$i, property: 'width' },
|
10874
10673
|
{ ...phoneInput$1, property: 'width' },
|
10875
10674
|
{ ...countryCodeInput, property: '--vaadin-combo-box-overlay-width' },
|
10876
10675
|
],
|
10877
|
-
hostDirection: { ...host$
|
10676
|
+
hostDirection: { ...host$i, property: 'direction' },
|
10878
10677
|
|
10879
10678
|
inputBorderStyle: [
|
10880
10679
|
{ ...internalAfter, property: 'border-style' },
|
@@ -11050,11 +10849,11 @@ const PhoneFieldClass = compose$1(
|
|
11050
10849
|
${resetInputLabelPosition('vaadin-text-field')}
|
11051
10850
|
`,
|
11052
10851
|
excludeAttrsSync: ['tabindex'],
|
11053
|
-
componentName: componentName$
|
10852
|
+
componentName: componentName$U,
|
11054
10853
|
})
|
11055
10854
|
);
|
11056
10855
|
|
11057
|
-
customElements.define(componentName$
|
10856
|
+
customElements.define(componentName$U, PhoneFieldClass);
|
11058
10857
|
|
11059
10858
|
const getCountryByCodeId = (countryCode) => {
|
11060
10859
|
return CountryCodes.find((c) => c.code === countryCode)?.dialCode;
|
@@ -11066,7 +10865,7 @@ const matchingParenthesis = (val) => {
|
|
11066
10865
|
return openParenMatches?.length === closeParenMatches?.length;
|
11067
10866
|
};
|
11068
10867
|
|
11069
|
-
const componentName$
|
10868
|
+
const componentName$T = getComponentName$1('phone-field-internal-input-box');
|
11070
10869
|
|
11071
10870
|
const observedAttributes$3 = [
|
11072
10871
|
'disabled',
|
@@ -11082,7 +10881,7 @@ const mapAttrs = {
|
|
11082
10881
|
'phone-input-placeholder': 'placeholder',
|
11083
10882
|
};
|
11084
10883
|
|
11085
|
-
const BaseInputClass$7 = createBaseInputClass$1({ componentName: componentName$
|
10884
|
+
const BaseInputClass$7 = createBaseInputClass$1({ componentName: componentName$T, baseSelector: 'div' });
|
11086
10885
|
|
11087
10886
|
class PhoneFieldInternal extends BaseInputClass$7 {
|
11088
10887
|
static get observedAttributes() {
|
@@ -11328,11 +11127,11 @@ class PhoneFieldInternal extends BaseInputClass$7 {
|
|
11328
11127
|
}
|
11329
11128
|
}
|
11330
11129
|
|
11331
|
-
customElements.define(componentName$
|
11130
|
+
customElements.define(componentName$T, PhoneFieldInternal);
|
11332
11131
|
|
11333
11132
|
const textVars$1 = TextFieldClass.cssVarList;
|
11334
11133
|
|
11335
|
-
const componentName$
|
11134
|
+
const componentName$S = getComponentName$1('phone-input-box-field');
|
11336
11135
|
|
11337
11136
|
const customMixin$9 = (superclass) =>
|
11338
11137
|
class PhoneFieldInputBoxMixinClass extends superclass {
|
@@ -11346,15 +11145,15 @@ const customMixin$9 = (superclass) =>
|
|
11346
11145
|
const template = document.createElement('template');
|
11347
11146
|
|
11348
11147
|
template.innerHTML = `
|
11349
|
-
<${componentName$
|
11148
|
+
<${componentName$T}
|
11350
11149
|
tabindex="-1"
|
11351
11150
|
slot="input"
|
11352
|
-
></${componentName$
|
11151
|
+
></${componentName$T}>
|
11353
11152
|
`;
|
11354
11153
|
|
11355
11154
|
this.baseElement.appendChild(template.content.cloneNode(true));
|
11356
11155
|
|
11357
|
-
this.inputElement = this.shadowRoot.querySelector(componentName$
|
11156
|
+
this.inputElement = this.shadowRoot.querySelector(componentName$T);
|
11358
11157
|
|
11359
11158
|
forwardAttrs$1(this.shadowRoot.host, this.inputElement, {
|
11360
11159
|
includeAttrs: [
|
@@ -11381,7 +11180,7 @@ const customMixin$9 = (superclass) =>
|
|
11381
11180
|
};
|
11382
11181
|
|
11383
11182
|
const {
|
11384
|
-
host: host$
|
11183
|
+
host: host$h,
|
11385
11184
|
label: label$3,
|
11386
11185
|
inputElement: inputElement$1,
|
11387
11186
|
requiredIndicator: requiredIndicator$3,
|
@@ -11412,7 +11211,7 @@ const PhoneFieldInputBoxClass = compose$1(
|
|
11412
11211
|
createStyleMixin$1({
|
11413
11212
|
mappings: {
|
11414
11213
|
fontSize: [
|
11415
|
-
host$
|
11214
|
+
host$h,
|
11416
11215
|
inputField$1,
|
11417
11216
|
{
|
11418
11217
|
selector: TextFieldClass.componentName,
|
@@ -11420,9 +11219,9 @@ const PhoneFieldInputBoxClass = compose$1(
|
|
11420
11219
|
},
|
11421
11220
|
],
|
11422
11221
|
fontFamily: [label$3, errorMessage$5, helperText$3],
|
11423
|
-
hostWidth: { ...host$
|
11424
|
-
hostMinWidth: { ...host$
|
11425
|
-
hostDirection: { ...host$
|
11222
|
+
hostWidth: { ...host$h, property: 'width' },
|
11223
|
+
hostMinWidth: { ...host$h, property: 'min-width' },
|
11224
|
+
hostDirection: { ...host$h, property: 'direction' },
|
11426
11225
|
|
11427
11226
|
inputHorizontalPadding: [
|
11428
11227
|
{ ...phoneInput, property: 'padding-left' },
|
@@ -11558,20 +11357,20 @@ const PhoneFieldInputBoxClass = compose$1(
|
|
11558
11357
|
${inputFloatingLabelStyle()}
|
11559
11358
|
`,
|
11560
11359
|
excludeAttrsSync: ['tabindex'],
|
11561
|
-
componentName: componentName$
|
11360
|
+
componentName: componentName$S,
|
11562
11361
|
})
|
11563
11362
|
);
|
11564
11363
|
|
11565
|
-
customElements.define(componentName$
|
11364
|
+
customElements.define(componentName$S, PhoneFieldInputBoxClass);
|
11566
11365
|
|
11567
|
-
const componentName$
|
11366
|
+
const componentName$R = getComponentName$1('new-password-internal');
|
11568
11367
|
|
11569
11368
|
const interpolateString = (template, values) =>
|
11570
11369
|
template.replace(/{{(\w+)+}}/g, (match, key) => values?.[key] || match);
|
11571
11370
|
|
11572
11371
|
// eslint-disable-next-line max-classes-per-file
|
11573
11372
|
|
11574
|
-
const componentName$
|
11373
|
+
const componentName$Q = getComponentName$1('policy-validation');
|
11575
11374
|
|
11576
11375
|
const overrideAttrs = [
|
11577
11376
|
'data-password-policy-value-minlength',
|
@@ -11581,7 +11380,7 @@ const overrideAttrs = [
|
|
11581
11380
|
const dataAttrs = ['data', 'active-policies', 'overrides', ...overrideAttrs];
|
11582
11381
|
const policyAttrs = ['label', 'value', ...dataAttrs];
|
11583
11382
|
|
11584
|
-
class RawPolicyValidation extends createBaseClass$1({ componentName: componentName$
|
11383
|
+
class RawPolicyValidation extends createBaseClass$1({ componentName: componentName$Q, baseSelector: ':host > div' }) {
|
11585
11384
|
#availablePolicies;
|
11586
11385
|
|
11587
11386
|
#activePolicies = [];
|
@@ -11818,7 +11617,7 @@ class RawPolicyValidation extends createBaseClass$1({ componentName: componentNa
|
|
11818
11617
|
}
|
11819
11618
|
}
|
11820
11619
|
|
11821
|
-
const { host: host$
|
11620
|
+
const { host: host$g, item, symbolDefault, symbolSuccess, symbolError } = {
|
11822
11621
|
host: { selector: () => ':host > div' },
|
11823
11622
|
item: { selector: () => '.item' },
|
11824
11623
|
symbolDefault: { selector: () => '.item[data-valid="none"]::before' },
|
@@ -11834,13 +11633,13 @@ const PolicyValidationClass = compose$1(
|
|
11834
11633
|
fontSize: {},
|
11835
11634
|
fontFamily: {},
|
11836
11635
|
padding: {},
|
11837
|
-
borderWidth: { ...host$
|
11838
|
-
borderStyle: { ...host$
|
11839
|
-
borderColor: { ...host$
|
11840
|
-
borderRadius: { ...host$
|
11841
|
-
backgroundColor: { ...host$
|
11636
|
+
borderWidth: { ...host$g, property: 'border-width' },
|
11637
|
+
borderStyle: { ...host$g, property: 'border-style' },
|
11638
|
+
borderColor: { ...host$g, property: 'border-color' },
|
11639
|
+
borderRadius: { ...host$g, property: 'border-radius' },
|
11640
|
+
backgroundColor: { ...host$g, property: 'background-color' },
|
11842
11641
|
textColor: { property: 'color' },
|
11843
|
-
labelMargin: { ...host$
|
11642
|
+
labelMargin: { ...host$g, property: 'gap' },
|
11844
11643
|
itemsSpacing: { ...item, property: 'line-height' },
|
11845
11644
|
itemSymbolSuccessColor: { ...symbolSuccess, property: 'color' },
|
11846
11645
|
itemSymbolErrorColor: { ...symbolError, property: 'color' },
|
@@ -11853,7 +11652,7 @@ const PolicyValidationClass = compose$1(
|
|
11853
11652
|
componentNameValidationMixin$1
|
11854
11653
|
)(RawPolicyValidation);
|
11855
11654
|
|
11856
|
-
const componentName$
|
11655
|
+
const componentName$P = getComponentName$1('new-password');
|
11857
11656
|
|
11858
11657
|
const policyPreviewVars = PolicyValidationClass.cssVarList;
|
11859
11658
|
|
@@ -11867,18 +11666,18 @@ const customMixin$8 = (superclass) =>
|
|
11867
11666
|
const externalInputAttr = this.getAttribute('external-input');
|
11868
11667
|
|
11869
11668
|
template.innerHTML = `
|
11870
|
-
<${componentName$
|
11669
|
+
<${componentName$R}
|
11871
11670
|
name="new-password"
|
11872
11671
|
tabindex="-1"
|
11873
11672
|
slot="input"
|
11874
11673
|
external-input="${externalInputAttr}"
|
11875
11674
|
>
|
11876
|
-
</${componentName$
|
11675
|
+
</${componentName$R}>
|
11877
11676
|
`;
|
11878
11677
|
|
11879
11678
|
this.baseElement.appendChild(template.content.cloneNode(true));
|
11880
11679
|
|
11881
|
-
this.inputElement = this.shadowRoot.querySelector(componentName$
|
11680
|
+
this.inputElement = this.shadowRoot.querySelector(componentName$R);
|
11882
11681
|
|
11883
11682
|
if (this.getAttribute('external-input') === 'true') {
|
11884
11683
|
this.initExternalInput();
|
@@ -11941,7 +11740,7 @@ const customMixin$8 = (superclass) =>
|
|
11941
11740
|
};
|
11942
11741
|
|
11943
11742
|
const {
|
11944
|
-
host: host$
|
11743
|
+
host: host$f,
|
11945
11744
|
label: label$2,
|
11946
11745
|
internalInputsWrapper,
|
11947
11746
|
errorMessage: errorMessage$4,
|
@@ -11962,7 +11761,7 @@ const NewPasswordClass = compose$1(
|
|
11962
11761
|
createStyleMixin$1({
|
11963
11762
|
mappings: {
|
11964
11763
|
fontSize: [
|
11965
|
-
host$
|
11764
|
+
host$f,
|
11966
11765
|
{},
|
11967
11766
|
{
|
11968
11767
|
selector: PasswordClass.componentName,
|
@@ -11980,13 +11779,13 @@ const NewPasswordClass = compose$1(
|
|
11980
11779
|
errorMessageIconRepeat: { ...errorMessage$4, property: 'background-repeat' },
|
11981
11780
|
errorMessageIconPosition: { ...errorMessage$4, property: 'background-position' },
|
11982
11781
|
errorMessageFontSize: { ...errorMessage$4, property: 'font-size' },
|
11983
|
-
hostWidth: { ...host$
|
11984
|
-
hostMinWidth: { ...host$
|
11782
|
+
hostWidth: { ...host$f, property: 'width' },
|
11783
|
+
hostMinWidth: { ...host$f, property: 'min-width' },
|
11985
11784
|
hostDirection: [
|
11986
|
-
{ ...host$
|
11785
|
+
{ ...host$f, property: 'direction' },
|
11987
11786
|
{ ...passwordInput, property: PasswordClass.cssVarList.hostDirection },
|
11988
11787
|
],
|
11989
|
-
inputsRequiredIndicator: { ...host$
|
11788
|
+
inputsRequiredIndicator: { ...host$f, property: 'content' },
|
11990
11789
|
spaceBetweenInputs: { ...internalInputsWrapper, property: 'gap' },
|
11991
11790
|
policyPreviewBackgroundColor: {
|
11992
11791
|
...policyPreview,
|
@@ -12062,11 +11861,11 @@ const NewPasswordClass = compose$1(
|
|
12062
11861
|
}
|
12063
11862
|
`,
|
12064
11863
|
excludeAttrsSync: ['tabindex'],
|
12065
|
-
componentName: componentName$
|
11864
|
+
componentName: componentName$P,
|
12066
11865
|
})
|
12067
11866
|
);
|
12068
11867
|
|
12069
|
-
customElements.define(componentName$
|
11868
|
+
customElements.define(componentName$Q, PolicyValidationClass);
|
12070
11869
|
|
12071
11870
|
const passwordAttrPrefixRegex = /^password-/;
|
12072
11871
|
const confirmAttrPrefixRegex = /^confirm-/;
|
@@ -12106,7 +11905,7 @@ const inputRelatedAttrs = [].concat(
|
|
12106
11905
|
policyPanelAttrs
|
12107
11906
|
);
|
12108
11907
|
|
12109
|
-
const BaseInputClass$6 = createBaseInputClass$1({ componentName: componentName$
|
11908
|
+
const BaseInputClass$6 = createBaseInputClass$1({ componentName: componentName$R, baseSelector: 'div' });
|
12110
11909
|
|
12111
11910
|
class NewPasswordInternal extends BaseInputClass$6 {
|
12112
11911
|
static get observedAttributes() {
|
@@ -12352,16 +12151,16 @@ class NewPasswordInternal extends BaseInputClass$6 {
|
|
12352
12151
|
}
|
12353
12152
|
}
|
12354
12153
|
|
12355
|
-
customElements.define(componentName$
|
12154
|
+
customElements.define(componentName$R, NewPasswordInternal);
|
12356
12155
|
|
12357
|
-
customElements.define(componentName$
|
12156
|
+
customElements.define(componentName$P, NewPasswordClass);
|
12358
12157
|
|
12359
|
-
const componentName$
|
12158
|
+
const componentName$O = getComponentName$1('recaptcha');
|
12360
12159
|
|
12361
12160
|
const observedAttributes$2 = ['enabled', 'site-key', 'action', 'enterprise'];
|
12362
12161
|
|
12363
12162
|
const BaseClass$3 = createBaseClass$1({
|
12364
|
-
componentName: componentName$
|
12163
|
+
componentName: componentName$O,
|
12365
12164
|
baseSelector: ':host > div',
|
12366
12165
|
});
|
12367
12166
|
class RawRecaptcha extends BaseClass$3 {
|
@@ -12586,7 +12385,7 @@ class RawRecaptcha extends BaseClass$3 {
|
|
12586
12385
|
|
12587
12386
|
const RecaptchaClass = compose$1(draggableMixin$1)(RawRecaptcha);
|
12588
12387
|
|
12589
|
-
customElements.define(componentName$
|
12388
|
+
customElements.define(componentName$O, RecaptchaClass);
|
12590
12389
|
|
12591
12390
|
const getFileBase64 = (fileObj) => {
|
12592
12391
|
return new Promise((resolve) => {
|
@@ -12600,7 +12399,7 @@ const getFilename = (fileObj) => {
|
|
12600
12399
|
return fileObj.name.replace(/^.*\\/, '');
|
12601
12400
|
};
|
12602
12401
|
|
12603
|
-
const componentName$
|
12402
|
+
const componentName$N = getComponentName$1('upload-file');
|
12604
12403
|
|
12605
12404
|
const observedAttributes$1 = [
|
12606
12405
|
'title',
|
@@ -12615,7 +12414,7 @@ const observedAttributes$1 = [
|
|
12615
12414
|
'icon',
|
12616
12415
|
];
|
12617
12416
|
|
12618
|
-
const BaseInputClass$5 = createBaseInputClass$1({ componentName: componentName$
|
12417
|
+
const BaseInputClass$5 = createBaseInputClass$1({ componentName: componentName$N, baseSelector: ':host > div' });
|
12619
12418
|
|
12620
12419
|
class RawUploadFile extends BaseInputClass$5 {
|
12621
12420
|
static get observedAttributes() {
|
@@ -12791,7 +12590,7 @@ class RawUploadFile extends BaseInputClass$5 {
|
|
12791
12590
|
}
|
12792
12591
|
|
12793
12592
|
const buttonVars = ButtonClass.cssVarList;
|
12794
|
-
const { host: host$
|
12593
|
+
const { host: host$e, wrapper: wrapper$1, icon: icon$4, title: title$1, description, requiredIndicator: requiredIndicator$2 } = {
|
12795
12594
|
host: { selector: () => ':host' },
|
12796
12595
|
wrapper: { selector: () => ':host > div' },
|
12797
12596
|
icon: { selector: () => '::slotted(*)' },
|
@@ -12810,15 +12609,15 @@ const UploadFileClass = compose$1(
|
|
12810
12609
|
borderWidth: {},
|
12811
12610
|
borderStyle: {},
|
12812
12611
|
borderRadius: {},
|
12813
|
-
hostHeight: { ...host$
|
12814
|
-
hostWidth: { ...host$
|
12612
|
+
hostHeight: { ...host$e, property: 'height' },
|
12613
|
+
hostWidth: { ...host$e, property: 'width' },
|
12815
12614
|
hostPadding: { property: 'padding' },
|
12816
12615
|
hostDirection: [
|
12817
|
-
{ ...host$
|
12616
|
+
{ ...host$e, property: 'direction' },
|
12818
12617
|
{ selector: () => ButtonClass.componentName, property: buttonVars.hostDirection },
|
12819
12618
|
],
|
12820
|
-
gap: { ...wrapper },
|
12821
|
-
lineHeight: { ...wrapper, property: 'line-height' },
|
12619
|
+
gap: { ...wrapper$1 },
|
12620
|
+
lineHeight: { ...wrapper$1, property: 'line-height' },
|
12822
12621
|
titleFontSize: { ...title$1, property: 'font-size' },
|
12823
12622
|
titleFontWeight: { ...title$1, property: 'font-weight' },
|
12824
12623
|
descriptionFontSize: { ...description, property: 'font-size' },
|
@@ -12834,7 +12633,7 @@ const UploadFileClass = compose$1(
|
|
12834
12633
|
componentNameValidationMixin$1
|
12835
12634
|
)(RawUploadFile);
|
12836
12635
|
|
12837
|
-
customElements.define(componentName$
|
12636
|
+
customElements.define(componentName$N, UploadFileClass);
|
12838
12637
|
|
12839
12638
|
const createBaseButtonSelectionGroupInternalClass = (componentName) => {
|
12840
12639
|
class BaseButtonSelectionGroupInternalClass extends createBaseInputClass$1({
|
@@ -12924,10 +12723,10 @@ const createBaseButtonSelectionGroupInternalClass = (componentName) => {
|
|
12924
12723
|
return BaseButtonSelectionGroupInternalClass;
|
12925
12724
|
};
|
12926
12725
|
|
12927
|
-
const componentName$
|
12726
|
+
const componentName$M = getComponentName$1('button-selection-group-internal');
|
12928
12727
|
|
12929
12728
|
class ButtonSelectionGroupInternalClass extends createBaseButtonSelectionGroupInternalClass(
|
12930
|
-
componentName$
|
12729
|
+
componentName$M
|
12931
12730
|
) {
|
12932
12731
|
getSelectedNode() {
|
12933
12732
|
return this.items.find((item) => item.hasAttribute('selected'));
|
@@ -13083,7 +12882,7 @@ const buttonSelectionGroupBaseMixin = (superclass) =>
|
|
13083
12882
|
}
|
13084
12883
|
};
|
13085
12884
|
|
13086
|
-
const { host: host$
|
12885
|
+
const { host: host$d, label: label$1, requiredIndicator: requiredIndicator$1, internalWrapper, errorMessage: errorMessage$3 } = {
|
13087
12886
|
host: { selector: () => ':host' },
|
13088
12887
|
label: { selector: '::part(label)' },
|
13089
12888
|
requiredIndicator: { selector: '[required]::part(required-indicator)::after' },
|
@@ -13092,9 +12891,9 @@ const { host: host$c, label: label$1, requiredIndicator: requiredIndicator$1, in
|
|
13092
12891
|
};
|
13093
12892
|
|
13094
12893
|
const buttonSelectionGroupMappings = {
|
13095
|
-
hostWidth: { ...host$
|
13096
|
-
hostDirection: { ...host$
|
13097
|
-
fontFamily: host$
|
12894
|
+
hostWidth: { ...host$d, property: 'width' },
|
12895
|
+
hostDirection: { ...host$d, property: 'direction' },
|
12896
|
+
fontFamily: host$d,
|
13098
12897
|
labelTextColor: [
|
13099
12898
|
{ ...label$1, property: 'color' },
|
13100
12899
|
{ ...requiredIndicator$1, property: 'color' },
|
@@ -13172,7 +12971,7 @@ const buttonSelectionGroupStyles = `
|
|
13172
12971
|
${resetInputCursor('vaadin-text-field')}
|
13173
12972
|
`;
|
13174
12973
|
|
13175
|
-
const componentName$
|
12974
|
+
const componentName$L = getComponentName$1('button-selection-group');
|
13176
12975
|
|
13177
12976
|
const buttonSelectionGroupMixin = (superclass) =>
|
13178
12977
|
class ButtonMultiSelectionGroupMixinClass extends superclass {
|
@@ -13181,19 +12980,19 @@ const buttonSelectionGroupMixin = (superclass) =>
|
|
13181
12980
|
const template = document.createElement('template');
|
13182
12981
|
|
13183
12982
|
template.innerHTML = `
|
13184
|
-
<${componentName$
|
12983
|
+
<${componentName$M}
|
13185
12984
|
name="button-selection-group"
|
13186
12985
|
slot="input"
|
13187
12986
|
tabindex="-1"
|
13188
12987
|
part="internal-component"
|
13189
12988
|
>
|
13190
12989
|
<slot></slot>
|
13191
|
-
</${componentName$
|
12990
|
+
</${componentName$M}>
|
13192
12991
|
`;
|
13193
12992
|
|
13194
12993
|
this.baseElement.appendChild(template.content.cloneNode(true));
|
13195
12994
|
|
13196
|
-
this.inputElement = this.shadowRoot.querySelector(componentName$
|
12995
|
+
this.inputElement = this.shadowRoot.querySelector(componentName$M);
|
13197
12996
|
|
13198
12997
|
forwardAttrs$1(this, this.inputElement, {
|
13199
12998
|
includeAttrs: ['size', 'default-value', 'allow-deselect'],
|
@@ -13218,16 +13017,16 @@ const ButtonSelectionGroupClass = compose$1(
|
|
13218
13017
|
wrappedEleName: 'vaadin-text-field',
|
13219
13018
|
style: () => buttonSelectionGroupStyles,
|
13220
13019
|
excludeAttrsSync: ['tabindex'],
|
13221
|
-
componentName: componentName$
|
13020
|
+
componentName: componentName$L,
|
13222
13021
|
})
|
13223
13022
|
);
|
13224
13023
|
|
13225
|
-
customElements.define(componentName$
|
13024
|
+
customElements.define(componentName$M, ButtonSelectionGroupInternalClass);
|
13226
13025
|
|
13227
|
-
const componentName$
|
13026
|
+
const componentName$K = getComponentName$1('button-selection-group-item');
|
13228
13027
|
|
13229
13028
|
class RawSelectItem extends createBaseClass$1({
|
13230
|
-
componentName: componentName$
|
13029
|
+
componentName: componentName$K,
|
13231
13030
|
baseSelector: ':host > descope-button',
|
13232
13031
|
}) {
|
13233
13032
|
get size() {
|
@@ -13338,14 +13137,14 @@ const ButtonSelectionGroupItemClass = compose$1(
|
|
13338
13137
|
componentNameValidationMixin$1
|
13339
13138
|
)(RawSelectItem);
|
13340
13139
|
|
13341
|
-
customElements.define(componentName$
|
13140
|
+
customElements.define(componentName$K, ButtonSelectionGroupItemClass);
|
13342
13141
|
|
13343
|
-
customElements.define(componentName$
|
13142
|
+
customElements.define(componentName$L, ButtonSelectionGroupClass);
|
13344
13143
|
|
13345
|
-
const componentName$
|
13144
|
+
const componentName$J = getComponentName$1('button-multi-selection-group-internal');
|
13346
13145
|
|
13347
13146
|
class ButtonMultiSelectionGroupInternalClass extends createBaseButtonSelectionGroupInternalClass(
|
13348
|
-
componentName$
|
13147
|
+
componentName$J
|
13349
13148
|
) {
|
13350
13149
|
#getSelectedNodes() {
|
13351
13150
|
return this.items.filter((item) => item.hasAttribute('selected'));
|
@@ -13448,7 +13247,7 @@ class ButtonMultiSelectionGroupInternalClass extends createBaseButtonSelectionGr
|
|
13448
13247
|
}
|
13449
13248
|
}
|
13450
13249
|
|
13451
|
-
const componentName$
|
13250
|
+
const componentName$I = getComponentName$1('button-multi-selection-group');
|
13452
13251
|
|
13453
13252
|
const buttonMultiSelectionGroupMixin = (superclass) =>
|
13454
13253
|
class ButtonMultiSelectionGroupMixinClass extends superclass {
|
@@ -13457,19 +13256,19 @@ const buttonMultiSelectionGroupMixin = (superclass) =>
|
|
13457
13256
|
const template = document.createElement('template');
|
13458
13257
|
|
13459
13258
|
template.innerHTML = `
|
13460
|
-
<${componentName$
|
13259
|
+
<${componentName$J}
|
13461
13260
|
name="button-selection-group"
|
13462
13261
|
slot="input"
|
13463
13262
|
tabindex="-1"
|
13464
13263
|
part="internal-component"
|
13465
13264
|
>
|
13466
13265
|
<slot></slot>
|
13467
|
-
</${componentName$
|
13266
|
+
</${componentName$J}>
|
13468
13267
|
`;
|
13469
13268
|
|
13470
13269
|
this.baseElement.appendChild(template.content.cloneNode(true));
|
13471
13270
|
|
13472
|
-
this.inputElement = this.shadowRoot.querySelector(componentName$
|
13271
|
+
this.inputElement = this.shadowRoot.querySelector(componentName$J);
|
13473
13272
|
|
13474
13273
|
forwardAttrs$1(this, this.inputElement, {
|
13475
13274
|
includeAttrs: ['size', 'default-values', 'min-items-selection', 'max-items-selection'],
|
@@ -13494,13 +13293,13 @@ const ButtonMultiSelectionGroupClass = compose$1(
|
|
13494
13293
|
wrappedEleName: 'vaadin-text-field',
|
13495
13294
|
style: () => buttonSelectionGroupStyles,
|
13496
13295
|
excludeAttrsSync: ['tabindex'],
|
13497
|
-
componentName: componentName$
|
13296
|
+
componentName: componentName$I,
|
13498
13297
|
})
|
13499
13298
|
);
|
13500
13299
|
|
13501
|
-
customElements.define(componentName$
|
13300
|
+
customElements.define(componentName$J, ButtonMultiSelectionGroupInternalClass);
|
13502
13301
|
|
13503
|
-
customElements.define(componentName$
|
13302
|
+
customElements.define(componentName$I, ButtonMultiSelectionGroupClass);
|
13504
13303
|
|
13505
13304
|
/* eslint-disable no-param-reassign */
|
13506
13305
|
|
@@ -13528,9 +13327,9 @@ class GridTextColumnClass extends GridSortColumn {
|
|
13528
13327
|
}
|
13529
13328
|
}
|
13530
13329
|
|
13531
|
-
const componentName$
|
13330
|
+
const componentName$H = getComponentName$1('grid-text-column');
|
13532
13331
|
|
13533
|
-
customElements.define(componentName$
|
13332
|
+
customElements.define(componentName$H, GridTextColumnClass);
|
13534
13333
|
|
13535
13334
|
/* eslint-disable no-param-reassign */
|
13536
13335
|
|
@@ -13565,9 +13364,9 @@ class GridCustomColumnClass extends GridTextColumnClass {
|
|
13565
13364
|
|
13566
13365
|
/* eslint-disable no-param-reassign */
|
13567
13366
|
|
13568
|
-
const componentName$
|
13367
|
+
const componentName$G = getComponentName$1('grid-custom-column');
|
13569
13368
|
|
13570
|
-
customElements.define(componentName$
|
13369
|
+
customElements.define(componentName$G, GridCustomColumnClass);
|
13571
13370
|
|
13572
13371
|
const createCheckboxEle = () => {
|
13573
13372
|
const checkbox = document.createElement('descope-checkbox');
|
@@ -13626,9 +13425,9 @@ class GridSelectionColumnClass extends GridSelectionColumn {
|
|
13626
13425
|
}
|
13627
13426
|
}
|
13628
13427
|
|
13629
|
-
const componentName$
|
13428
|
+
const componentName$F = getComponentName$1('grid-selection-column');
|
13630
13429
|
|
13631
|
-
customElements.define(componentName$
|
13430
|
+
customElements.define(componentName$F, GridSelectionColumnClass);
|
13632
13431
|
|
13633
13432
|
/* eslint-disable no-param-reassign */
|
13634
13433
|
|
@@ -13667,9 +13466,9 @@ class GridItemDetailsColumnClass extends GridSortColumn {
|
|
13667
13466
|
}
|
13668
13467
|
}
|
13669
13468
|
|
13670
|
-
const componentName$
|
13469
|
+
const componentName$E = getComponentName$1('grid-item-details-column');
|
13671
13470
|
|
13672
|
-
customElements.define(componentName$
|
13471
|
+
customElements.define(componentName$E, GridItemDetailsColumnClass);
|
13673
13472
|
|
13674
13473
|
const decode = (input) => {
|
13675
13474
|
const txt = document.createElement('textarea');
|
@@ -13681,9 +13480,9 @@ const tpl = (input, inline) => {
|
|
13681
13480
|
return inline ? input : `<pre>${input}</pre>`;
|
13682
13481
|
};
|
13683
13482
|
|
13684
|
-
const componentName$
|
13483
|
+
const componentName$D = getComponentName$1('code-snippet');
|
13685
13484
|
|
13686
|
-
let CodeSnippet$1 = class CodeSnippet extends createBaseClass$1({ componentName: componentName$
|
13485
|
+
let CodeSnippet$1 = class CodeSnippet extends createBaseClass$1({ componentName: componentName$D, baseSelector: ':host > code' }) {
|
13687
13486
|
static get observedAttributes() {
|
13688
13487
|
return ['lang', 'inline'];
|
13689
13488
|
}
|
@@ -13803,7 +13602,7 @@ const {
|
|
13803
13602
|
addition,
|
13804
13603
|
deletion,
|
13805
13604
|
charEscape,
|
13806
|
-
link: link$
|
13605
|
+
link: link$3,
|
13807
13606
|
params,
|
13808
13607
|
property,
|
13809
13608
|
punctuation,
|
@@ -13906,7 +13705,7 @@ const CodeSnippetClass = compose$1(
|
|
13906
13705
|
deletionTextColor: { ...deletion, property: 'color' },
|
13907
13706
|
deletionBgColor: { ...deletion, property: 'background-color' },
|
13908
13707
|
charEscapeTextColor: { ...charEscape, property: 'color' },
|
13909
|
-
linkTextColor: { ...link$
|
13708
|
+
linkTextColor: { ...link$3, property: 'color' },
|
13910
13709
|
paramsTextColor: { ...params, property: 'color' },
|
13911
13710
|
propertyTextColor: { ...property, property: 'color' },
|
13912
13711
|
punctuationTextColor: { ...punctuation, property: 'color' },
|
@@ -13917,7 +13716,7 @@ const CodeSnippetClass = compose$1(
|
|
13917
13716
|
componentNameValidationMixin$1
|
13918
13717
|
)(CodeSnippet$1);
|
13919
13718
|
|
13920
|
-
customElements.define(componentName$
|
13719
|
+
customElements.define(componentName$D, CodeSnippetClass);
|
13921
13720
|
|
13922
13721
|
const isValidDataType = (data) => {
|
13923
13722
|
const isValid = Array.isArray(data);
|
@@ -13992,7 +13791,7 @@ const defaultRowDetailsRenderer = (item, itemLabelsMapping) => {
|
|
13992
13791
|
`;
|
13993
13792
|
};
|
13994
13793
|
|
13995
|
-
const componentName$
|
13794
|
+
const componentName$C = getComponentName$1('grid');
|
13996
13795
|
|
13997
13796
|
const GridMixin = (superclass) =>
|
13998
13797
|
class GridMixinClass extends superclass {
|
@@ -14205,7 +14004,7 @@ const GridMixin = (superclass) =>
|
|
14205
14004
|
};
|
14206
14005
|
|
14207
14006
|
const {
|
14208
|
-
host: host$
|
14007
|
+
host: host$c,
|
14209
14008
|
headerRow,
|
14210
14009
|
headerRowCell,
|
14211
14010
|
contentRow,
|
@@ -14258,15 +14057,15 @@ const GridClass = compose$1(
|
|
14258
14057
|
fontWeight: { ...contentRow },
|
14259
14058
|
valueTextColor: { ...contentRow, property: 'color' },
|
14260
14059
|
backgroundColor: [
|
14261
|
-
{ ...host$
|
14060
|
+
{ ...host$c, property: 'background-color' },
|
14262
14061
|
{ ...contentRow, property: 'background-color' },
|
14263
14062
|
],
|
14264
14063
|
sortIndicatorsColor: { ...sortIndicators, property: 'color' },
|
14265
14064
|
activeSortIndicator: { ...activeSortIndicator, property: 'color' },
|
14266
|
-
borderColor: { ...host$
|
14267
|
-
borderWidth: { ...host$
|
14268
|
-
borderStyle: { ...host$
|
14269
|
-
borderRadius: { ...host$
|
14065
|
+
borderColor: { ...host$c, property: 'border-color' },
|
14066
|
+
borderWidth: { ...host$c, property: 'border-width' },
|
14067
|
+
borderStyle: { ...host$c, property: 'border-style' },
|
14068
|
+
borderRadius: { ...host$c, property: 'border-radius' },
|
14270
14069
|
selectedBackgroundColor: [
|
14271
14070
|
{ ...selectedRow, property: 'background-color' },
|
14272
14071
|
{ ...selectedRowCell, property: 'background-color' },
|
@@ -14277,7 +14076,7 @@ const GridClass = compose$1(
|
|
14277
14076
|
{ ...rowSeparator, property: 'border-top-color' },
|
14278
14077
|
],
|
14279
14078
|
resizeHandleColor: { ...resizeHandle, property: 'background-color' },
|
14280
|
-
hostDirection: { ...host$
|
14079
|
+
hostDirection: { ...host$c, property: 'direction', fallback: 'ltr' },
|
14281
14080
|
toggleDetailsPanelButtonSize: [
|
14282
14081
|
{ ...toggleDetailsPanelButton, property: 'width' },
|
14283
14082
|
{ ...toggleDetailsPanelButton, property: 'height' },
|
@@ -14346,13 +14145,13 @@ const GridClass = compose$1(
|
|
14346
14145
|
/*!css*/
|
14347
14146
|
`,
|
14348
14147
|
excludeAttrsSync: ['columns', 'tabindex', 'style'],
|
14349
|
-
componentName: componentName$
|
14148
|
+
componentName: componentName$C,
|
14350
14149
|
})
|
14351
14150
|
);
|
14352
14151
|
|
14353
|
-
customElements.define(componentName$
|
14152
|
+
customElements.define(componentName$C, GridClass);
|
14354
14153
|
|
14355
|
-
const componentName$
|
14154
|
+
const componentName$B = getComponentName$1('multi-select-combo-box');
|
14356
14155
|
|
14357
14156
|
const multiSelectComboBoxMixin = (superclass) =>
|
14358
14157
|
class MultiSelectComboBoxMixinClass extends superclass {
|
@@ -14753,7 +14552,7 @@ const multiSelectComboBoxMixin = (superclass) =>
|
|
14753
14552
|
};
|
14754
14553
|
|
14755
14554
|
const {
|
14756
|
-
host: host$
|
14555
|
+
host: host$b,
|
14757
14556
|
inputField,
|
14758
14557
|
inputElement,
|
14759
14558
|
placeholder,
|
@@ -14791,10 +14590,10 @@ const {
|
|
14791
14590
|
const MultiSelectComboBoxClass = compose$1(
|
14792
14591
|
createStyleMixin$1({
|
14793
14592
|
mappings: {
|
14794
|
-
hostWidth: { ...host$
|
14795
|
-
hostDirection: { ...host$
|
14593
|
+
hostWidth: { ...host$b, property: 'width' },
|
14594
|
+
hostDirection: { ...host$b, property: 'direction' },
|
14796
14595
|
// we apply font-size also on the host so we can set its width with em
|
14797
|
-
fontSize: [{}, host$
|
14596
|
+
fontSize: [{}, host$b],
|
14798
14597
|
chipFontSize: { ...chipLabel, property: 'font-size' },
|
14799
14598
|
fontFamily: [label, placeholder, inputField, helperText$1, errorMessage$2, chipLabel],
|
14800
14599
|
labelFontSize: { ...label, property: 'font-size' },
|
@@ -15005,16 +14804,16 @@ const MultiSelectComboBoxClass = compose$1(
|
|
15005
14804
|
// Note: we exclude `placeholder` because the vaadin component observes it and
|
15006
14805
|
// tries to override it, causing us to lose the user set placeholder.
|
15007
14806
|
excludeAttrsSync: ['tabindex', 'size', 'data', 'placeholder'],
|
15008
|
-
componentName: componentName$
|
14807
|
+
componentName: componentName$B,
|
15009
14808
|
includeForwardProps: ['items', 'renderer', 'selectedItems'],
|
15010
14809
|
})
|
15011
14810
|
);
|
15012
14811
|
|
15013
|
-
customElements.define(componentName$
|
14812
|
+
customElements.define(componentName$B, MultiSelectComboBoxClass);
|
15014
14813
|
|
15015
|
-
const componentName$
|
14814
|
+
const componentName$A = getComponentName$1('badge');
|
15016
14815
|
|
15017
|
-
class RawBadge extends createBaseClass$1({ componentName: componentName$
|
14816
|
+
class RawBadge extends createBaseClass$1({ componentName: componentName$A, baseSelector: ':host > div' }) {
|
15018
14817
|
constructor() {
|
15019
14818
|
super();
|
15020
14819
|
|
@@ -15069,9 +14868,9 @@ const BadgeClass = compose$1(
|
|
15069
14868
|
componentNameValidationMixin$1
|
15070
14869
|
)(RawBadge);
|
15071
14870
|
|
15072
|
-
customElements.define(componentName$
|
14871
|
+
customElements.define(componentName$A, BadgeClass);
|
15073
14872
|
|
15074
|
-
const componentName$
|
14873
|
+
const componentName$z = getComponentName$1('modal');
|
15075
14874
|
|
15076
14875
|
const observedAttrs$2 = ['opened'];
|
15077
14876
|
|
@@ -15195,11 +14994,11 @@ const ModalClass = compose$1(
|
|
15195
14994
|
}
|
15196
14995
|
`,
|
15197
14996
|
excludeAttrsSync: ['tabindex', 'opened', 'style'],
|
15198
|
-
componentName: componentName$
|
14997
|
+
componentName: componentName$z,
|
15199
14998
|
})
|
15200
14999
|
);
|
15201
15000
|
|
15202
|
-
customElements.define(componentName$
|
15001
|
+
customElements.define(componentName$z, ModalClass);
|
15203
15002
|
|
15204
15003
|
const vaadinContainerClass = window.customElements.get('vaadin-notification-container');
|
15205
15004
|
|
@@ -15210,7 +15009,7 @@ if (!vaadinContainerClass) {
|
|
15210
15009
|
class NotificationContainerClass extends vaadinContainerClass {}
|
15211
15010
|
customElements.define(getComponentName$1('notification-container'), NotificationContainerClass);
|
15212
15011
|
|
15213
|
-
const componentName$
|
15012
|
+
const componentName$y = getComponentName$1('notification-card');
|
15214
15013
|
|
15215
15014
|
const notificationCardMixin = (superclass) =>
|
15216
15015
|
class NotificationCardMixinClass extends superclass {
|
@@ -15254,7 +15053,7 @@ const notificationCardMixin = (superclass) =>
|
|
15254
15053
|
}
|
15255
15054
|
};
|
15256
15055
|
|
15257
|
-
const selectors$
|
15056
|
+
const selectors$2 = {
|
15258
15057
|
content: () => 'vaadin-notification-card::part(content)',
|
15259
15058
|
overlay: () => 'vaadin-notification-card::part(overlay)',
|
15260
15059
|
};
|
@@ -15262,26 +15061,26 @@ const selectors$1 = {
|
|
15262
15061
|
const NotificationCardClass = compose$1(
|
15263
15062
|
createStyleMixin$1({
|
15264
15063
|
mappings: {
|
15265
|
-
hostMinWidth: { selector: selectors$
|
15064
|
+
hostMinWidth: { selector: selectors$2.content, property: 'min-width' },
|
15266
15065
|
fontFamily: {},
|
15267
15066
|
fontSize: {},
|
15268
|
-
backgroundColor: { selector: selectors$
|
15067
|
+
backgroundColor: { selector: selectors$2.content },
|
15269
15068
|
textColor: { property: 'color' },
|
15270
15069
|
boxShadow: {},
|
15271
|
-
borderWidth: { selector: selectors$
|
15272
|
-
borderColor: { selector: selectors$
|
15273
|
-
borderStyle: { selector: selectors$
|
15070
|
+
borderWidth: { selector: selectors$2.content, property: 'border-width' },
|
15071
|
+
borderColor: { selector: selectors$2.content, property: 'border-color' },
|
15072
|
+
borderStyle: { selector: selectors$2.content, property: 'border-style' },
|
15274
15073
|
borderRadius: [
|
15275
|
-
{ selector: selectors$
|
15276
|
-
{ selector: selectors$
|
15074
|
+
{ selector: selectors$2.content, property: 'border-radius' },
|
15075
|
+
{ selector: selectors$2.overlay, property: 'border-radius' },
|
15277
15076
|
],
|
15278
15077
|
verticalPadding: [
|
15279
|
-
{ selector: selectors$
|
15280
|
-
{ selector: selectors$
|
15078
|
+
{ selector: selectors$2.content, property: 'padding-top' },
|
15079
|
+
{ selector: selectors$2.content, property: 'padding-bottom' },
|
15281
15080
|
],
|
15282
15081
|
horizontalPadding: [
|
15283
|
-
{ selector: selectors$
|
15284
|
-
{ selector: selectors$
|
15082
|
+
{ selector: selectors$2.content, property: 'padding-right' },
|
15083
|
+
{ selector: selectors$2.content, property: 'padding-left' },
|
15285
15084
|
],
|
15286
15085
|
},
|
15287
15086
|
}),
|
@@ -15318,13 +15117,13 @@ const NotificationCardClass = compose$1(
|
|
15318
15117
|
}
|
15319
15118
|
`,
|
15320
15119
|
excludeAttrsSync: ['tabindex'],
|
15321
|
-
componentName: componentName$
|
15120
|
+
componentName: componentName$y,
|
15322
15121
|
})
|
15323
15122
|
);
|
15324
15123
|
|
15325
|
-
customElements.define(componentName$
|
15124
|
+
customElements.define(componentName$y, NotificationCardClass);
|
15326
15125
|
|
15327
|
-
const componentName$
|
15126
|
+
const componentName$x = getComponentName$1('notification');
|
15328
15127
|
|
15329
15128
|
const NotificationMixin = (superclass) =>
|
15330
15129
|
class NotificationMixinClass extends superclass {
|
@@ -15419,15 +15218,15 @@ const NotificationClass = compose$1(
|
|
15419
15218
|
createProxy$1({
|
15420
15219
|
wrappedEleName: 'vaadin-notification',
|
15421
15220
|
excludeAttrsSync: ['tabindex'],
|
15422
|
-
componentName: componentName$
|
15221
|
+
componentName: componentName$x,
|
15423
15222
|
})
|
15424
15223
|
);
|
15425
15224
|
|
15426
|
-
customElements.define(componentName$
|
15225
|
+
customElements.define(componentName$x, NotificationClass);
|
15427
15226
|
|
15428
|
-
const componentName$
|
15227
|
+
const componentName$w = getComponentName$1('mappings-field-internal');
|
15429
15228
|
|
15430
|
-
const BaseInputClass$4 = createBaseInputClass$1({ componentName: componentName$
|
15229
|
+
const BaseInputClass$4 = createBaseInputClass$1({ componentName: componentName$w, baseSelector: 'div' });
|
15431
15230
|
|
15432
15231
|
class MappingsFieldInternal extends BaseInputClass$4 {
|
15433
15232
|
#errorItem;
|
@@ -15674,7 +15473,7 @@ class MappingsFieldInternal extends BaseInputClass$4 {
|
|
15674
15473
|
}
|
15675
15474
|
}
|
15676
15475
|
|
15677
|
-
const componentName$
|
15476
|
+
const componentName$v = getComponentName$1('mappings-field');
|
15678
15477
|
|
15679
15478
|
const customMixin$6 = (superclass) =>
|
15680
15479
|
class MappingsFieldMixinClass extends superclass {
|
@@ -15703,14 +15502,14 @@ const customMixin$6 = (superclass) =>
|
|
15703
15502
|
const template = document.createElement('template');
|
15704
15503
|
|
15705
15504
|
template.innerHTML = `
|
15706
|
-
<${componentName$
|
15505
|
+
<${componentName$w}
|
15707
15506
|
tabindex="-1"
|
15708
|
-
></${componentName$
|
15507
|
+
></${componentName$w}>
|
15709
15508
|
`;
|
15710
15509
|
|
15711
15510
|
this.baseElement.appendChild(template.content.cloneNode(true));
|
15712
15511
|
|
15713
|
-
this.inputElement = this.shadowRoot.querySelector(componentName$
|
15512
|
+
this.inputElement = this.shadowRoot.querySelector(componentName$w);
|
15714
15513
|
|
15715
15514
|
forwardAttrs$1(this, this.inputElement, {
|
15716
15515
|
includeAttrs: [
|
@@ -15740,7 +15539,7 @@ const customMixin$6 = (superclass) =>
|
|
15740
15539
|
};
|
15741
15540
|
|
15742
15541
|
const {
|
15743
|
-
host: host$
|
15542
|
+
host: host$a,
|
15744
15543
|
helperText,
|
15745
15544
|
errorMessage: errorMessage$1,
|
15746
15545
|
mappingItem,
|
@@ -15768,10 +15567,10 @@ const {
|
|
15768
15567
|
const MappingsFieldClass = compose$1(
|
15769
15568
|
createStyleMixin$1({
|
15770
15569
|
mappings: {
|
15771
|
-
hostWidth: { ...host$
|
15772
|
-
hostDirection: { ...host$
|
15570
|
+
hostWidth: { ...host$a, property: 'width' },
|
15571
|
+
hostDirection: { ...host$a, property: 'direction' },
|
15773
15572
|
// we apply font-size also on the host so we can set its width with em
|
15774
|
-
fontSize: [{}, host$
|
15573
|
+
fontSize: [{}, host$a, { ...separator, property: 'margin-top' }],
|
15775
15574
|
fontFamily: [helperText, errorMessage$1, labels],
|
15776
15575
|
separatorFontSize: { ...separator, property: 'font-size' },
|
15777
15576
|
labelsFontSize: { ...labelsText, property: 'font-size' },
|
@@ -15845,13 +15644,13 @@ const MappingsFieldClass = compose$1(
|
|
15845
15644
|
'options',
|
15846
15645
|
'error-message',
|
15847
15646
|
],
|
15848
|
-
componentName: componentName$
|
15647
|
+
componentName: componentName$v,
|
15849
15648
|
})
|
15850
15649
|
);
|
15851
15650
|
|
15852
|
-
customElements.define(componentName$
|
15651
|
+
customElements.define(componentName$w, MappingsFieldInternal);
|
15853
15652
|
|
15854
|
-
const componentName$
|
15653
|
+
const componentName$u = getComponentName$1('mapping-item');
|
15855
15654
|
|
15856
15655
|
const inputAttrs = [
|
15857
15656
|
'size',
|
@@ -15864,7 +15663,7 @@ const inputAttrs = [
|
|
15864
15663
|
'st-error-message-icon-padding',
|
15865
15664
|
];
|
15866
15665
|
|
15867
|
-
const BaseInputClass$3 = createBaseInputClass$1({ componentName: componentName$
|
15666
|
+
const BaseInputClass$3 = createBaseInputClass$1({ componentName: componentName$u, baseSelector: 'div' });
|
15868
15667
|
|
15869
15668
|
class MappingItem extends BaseInputClass$3 {
|
15870
15669
|
static get observedAttributes() {
|
@@ -16019,17 +15818,17 @@ class MappingItem extends BaseInputClass$3 {
|
|
16019
15818
|
}
|
16020
15819
|
}
|
16021
15820
|
|
16022
|
-
customElements.define(componentName$
|
15821
|
+
customElements.define(componentName$u, MappingItem);
|
16023
15822
|
|
16024
|
-
customElements.define(componentName$
|
15823
|
+
customElements.define(componentName$v, MappingsFieldClass);
|
16025
15824
|
|
16026
15825
|
var deleteIcon = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxNCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEgMTZDMSAxNy4xIDEuOSAxOCAzIDE4SDExQzEyLjEgMTggMTMgMTcuMSAxMyAxNlY0SDFWMTZaTTMgNkgxMVYxNkgzVjZaTTEwLjUgMUw5LjUgMEg0LjVMMy41IDFIMFYzSDE0VjFIMTAuNVoiIGZpbGw9ImN1cnJlbnRjb2xvciIvPgo8L3N2Zz4K";
|
16027
15826
|
|
16028
15827
|
var editIcon = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHZpZXdCb3g9IjAgMCAxNSAxNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEwLjAwMDIgMC45OTIxNDlDMTAuMDAwMiAxLjAxNjE1IDEwLjAwMDIgMS4wMTYxNSAxMC4wMDAyIDEuMDE2MTVMOC4yMjQxOSAzLjAwODE1SDIuOTkyMTlDMi40NjQxOSAzLjAwODE1IDIuMDA4MTkgMy40NDAxNSAyLjAwODE5IDMuOTkyMTVWMTIuMDA4MkMyLjAwODE5IDEyLjUzNjIgMi40NDAxOSAxMi45OTIyIDIuOTkyMTkgMTIuOTkyMkg1LjUzNjE5QzUuODQ4MTkgMTMuMDQwMiA2LjE2MDE5IDEzLjA0MDIgNi40NzIxOSAxMi45OTIySDExLjAwODJDMTEuNTM2MiAxMi45OTIyIDExLjk5MjIgMTIuNTYwMiAxMS45OTIyIDEyLjAwODJWNy43ODQxNkwxMy45MzYyIDUuNjI0MTVMMTQuMDA4MiA1LjY3MjE1VjExLjk4NDJDMTQuMDA4MiAxMy42NjQyIDEyLjY2NDIgMTUuMDA4MiAxMS4wMDgyIDE1LjAwODJIMy4wMTYxOUMxLjMzNjE5IDE1LjAwODIgLTAuMDA3ODEyNSAxMy42NjQyIC0wLjAwNzgxMjUgMTEuOTg0MlYzLjk5MjE1Qy0wLjAwNzgxMjUgMi4zMzYxNSAxLjMzNjE5IDAuOTkyMTQ5IDMuMDE2MTkgMC45OTIxNDlIMTAuMDAwMlpNMTEuMjcyMiAyLjYyNDE1TDEyLjYxNjIgNC4xMTIxNUw3LjcyMDE5IDkuNjgwMTZDNy41MDQxOSA5LjkyMDE2IDYuODMyMTkgMTAuMjMyMiA1LjY4MDE5IDEwLjYxNjJDNS42NTYxOSAxMC42NDAyIDUuNjA4MTkgMTAuNjQwMiA1LjU2MDE5IDEwLjYxNjJDNS40NjQxOSAxMC41OTIyIDUuMzkyMTkgMTAuNDcyMiA1LjQ0MDE5IDEwLjM3NjJDNS43NTIxOSA5LjI0ODE2IDYuMDQwMTkgOC41NTIxNiA2LjI1NjE5IDguMzEyMTZMMTEuMjcyMiAyLjYyNDE1Wk0xMS45MjAyIDEuODU2MTVMMTMuMjg4MiAwLjMyMDE0OUMxMy42NDgyIC0wLjA4Nzg1MTYgMTQuMjcyMiAtMC4xMTE4NTIgMTQuNjgwMiAwLjI3MjE0OUMxNS4wODgyIDAuNjMyMTQ5IDE1LjExMjIgMS4yODAxNSAxNC43NTIyIDEuNjg4MTVMMTMuMjY0MiAzLjM2ODE1TDExLjkyMDIgMS44NTYxNVoiIGZpbGw9ImN1cnJlbnRjb2xvciIvPgo8L3N2Zz4K";
|
16029
15828
|
|
16030
|
-
const componentName$
|
15829
|
+
const componentName$t = getComponentName$1('user-attribute');
|
16031
15830
|
class RawUserAttribute extends createBaseClass$1({
|
16032
|
-
componentName: componentName$
|
15831
|
+
componentName: componentName$t,
|
16033
15832
|
baseSelector: ':host > .root',
|
16034
15833
|
}) {
|
16035
15834
|
constructor() {
|
@@ -16242,7 +16041,7 @@ class RawUserAttribute extends createBaseClass$1({
|
|
16242
16041
|
}
|
16243
16042
|
}
|
16244
16043
|
|
16245
|
-
const { host: host$
|
16044
|
+
const { host: host$9, textFields, buttons: buttons$1, badge: badge$3, labelText, valueText, textWrapper: textWrapper$1 } = {
|
16246
16045
|
host: { selector: () => ':host' },
|
16247
16046
|
textFields: { selector: 'descope-text' },
|
16248
16047
|
valueText: { selector: 'descope-text[data-id="value-text"]' },
|
@@ -16255,10 +16054,10 @@ const { host: host$8, textFields, buttons: buttons$1, badge: badge$3, labelText,
|
|
16255
16054
|
const UserAttributeClass = compose$1(
|
16256
16055
|
createStyleMixin$1({
|
16257
16056
|
mappings: {
|
16258
|
-
hostWidth: { ...host$
|
16259
|
-
hostMinWidth: { ...host$
|
16057
|
+
hostWidth: { ...host$9, property: 'width' },
|
16058
|
+
hostMinWidth: { ...host$9, property: 'min-width' },
|
16260
16059
|
hostDirection: [
|
16261
|
-
{ ...host$
|
16060
|
+
{ ...host$9, property: 'direction' },
|
16262
16061
|
{ ...textFields, property: TextClass.cssVarList.hostDirection },
|
16263
16062
|
{ ...buttons$1, property: ButtonClass.cssVarList.hostDirection },
|
16264
16063
|
{ ...badge$3, property: BadgeClass.cssVarList.hostDirection },
|
@@ -16273,13 +16072,13 @@ const UserAttributeClass = compose$1(
|
|
16273
16072
|
componentNameValidationMixin$1
|
16274
16073
|
)(RawUserAttribute);
|
16275
16074
|
|
16276
|
-
customElements.define(componentName$
|
16075
|
+
customElements.define(componentName$t, UserAttributeClass);
|
16277
16076
|
|
16278
16077
|
var greenVIcon = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTggMEMzLjYgMCAwIDMuNiAwIDhDMCAxMi40IDMuNiAxNiA4IDE2QzEyLjQgMTYgMTYgMTIuNCAxNiA4QzE2IDMuNiAxMi40IDAgOCAwWk03LjEgMTEuN0wyLjkgNy42TDQuMyA2LjJMNyA4LjlMMTIgNEwxMy40IDUuNEw3LjEgMTEuN1oiIGZpbGw9IiM0Q0FGNTAiLz4KPC9zdmc+Cg==";
|
16279
16078
|
|
16280
|
-
const componentName$
|
16079
|
+
const componentName$s = getComponentName$1('user-auth-method');
|
16281
16080
|
class RawUserAuthMethod extends createBaseClass$1({
|
16282
|
-
componentName: componentName$
|
16081
|
+
componentName: componentName$s,
|
16283
16082
|
baseSelector: ':host > .root',
|
16284
16083
|
}) {
|
16285
16084
|
constructor() {
|
@@ -16441,7 +16240,7 @@ class RawUserAuthMethod extends createBaseClass$1({
|
|
16441
16240
|
}
|
16442
16241
|
}
|
16443
16242
|
|
16444
|
-
const { host: host$
|
16243
|
+
const { host: host$8, textField: textField$2, buttons, badge: badge$2, textWrapper, methodIconSlot } = {
|
16445
16244
|
host: { selector: () => ':host' },
|
16446
16245
|
textField: { selector: 'descope-text' },
|
16447
16246
|
buttons: { selector: 'descope-button' },
|
@@ -16453,10 +16252,10 @@ const { host: host$7, textField: textField$2, buttons, badge: badge$2, textWrapp
|
|
16453
16252
|
const UserAuthMethodClass = compose$1(
|
16454
16253
|
createStyleMixin$1({
|
16455
16254
|
mappings: {
|
16456
|
-
hostWidth: { ...host$
|
16457
|
-
hostMinWidth: { ...host$
|
16255
|
+
hostWidth: { ...host$8, property: 'width' },
|
16256
|
+
hostMinWidth: { ...host$8, property: 'min-width' },
|
16458
16257
|
hostDirection: [
|
16459
|
-
{ ...host$
|
16258
|
+
{ ...host$8, property: 'direction' },
|
16460
16259
|
{ ...textField$2, property: TextClass.cssVarList.hostDirection },
|
16461
16260
|
{ ...buttons, property: ButtonClass.cssVarList.hostDirection },
|
16462
16261
|
{ ...badge$2, property: BadgeClass.cssVarList.hostDirection },
|
@@ -16474,11 +16273,11 @@ const UserAuthMethodClass = compose$1(
|
|
16474
16273
|
componentNameValidationMixin$1
|
16475
16274
|
)(RawUserAuthMethod);
|
16476
16275
|
|
16477
|
-
customElements.define(componentName$
|
16276
|
+
customElements.define(componentName$s, UserAuthMethodClass);
|
16478
16277
|
|
16479
|
-
const componentName$
|
16278
|
+
const componentName$r = getComponentName$1('saml-group-mappings-internal');
|
16480
16279
|
|
16481
|
-
const BaseInputClass$2 = createBaseInputClass$1({ componentName: componentName$
|
16280
|
+
const BaseInputClass$2 = createBaseInputClass$1({ componentName: componentName$r, baseSelector: '' });
|
16482
16281
|
|
16483
16282
|
class SamlGroupMappingsInternal extends BaseInputClass$2 {
|
16484
16283
|
static get observedAttributes() {
|
@@ -16604,7 +16403,7 @@ class SamlGroupMappingsInternal extends BaseInputClass$2 {
|
|
16604
16403
|
}
|
16605
16404
|
}
|
16606
16405
|
|
16607
|
-
const componentName$
|
16406
|
+
const componentName$q = getComponentName$1('saml-group-mappings');
|
16608
16407
|
|
16609
16408
|
const customMixin$5 = (superclass) =>
|
16610
16409
|
class SamlGroupMappingsMixinClass extends superclass {
|
@@ -16614,14 +16413,14 @@ const customMixin$5 = (superclass) =>
|
|
16614
16413
|
const template = document.createElement('template');
|
16615
16414
|
|
16616
16415
|
template.innerHTML = `
|
16617
|
-
<${componentName$
|
16416
|
+
<${componentName$r}
|
16618
16417
|
tabindex="-1"
|
16619
|
-
></${componentName$
|
16418
|
+
></${componentName$r}>
|
16620
16419
|
`;
|
16621
16420
|
|
16622
16421
|
this.baseElement.appendChild(template.content.cloneNode(true));
|
16623
16422
|
|
16624
|
-
this.inputElement = this.shadowRoot.querySelector(componentName$
|
16423
|
+
this.inputElement = this.shadowRoot.querySelector(componentName$r);
|
16625
16424
|
|
16626
16425
|
forwardAttrs$1(this, this.inputElement, {
|
16627
16426
|
includeAttrs: [
|
@@ -16642,7 +16441,7 @@ const customMixin$5 = (superclass) =>
|
|
16642
16441
|
}
|
16643
16442
|
};
|
16644
16443
|
|
16645
|
-
const { host: host$
|
16444
|
+
const { host: host$7, groupInput, errorMessage } = {
|
16646
16445
|
host: { selector: () => ':host' },
|
16647
16446
|
groupInput: { selector: 'descope-text-field' },
|
16648
16447
|
errorMessage: { selector: '::part(error-message)' },
|
@@ -16651,8 +16450,8 @@ const { host: host$6, groupInput, errorMessage } = {
|
|
16651
16450
|
const SamlGroupMappingsClass = compose$1(
|
16652
16451
|
createStyleMixin$1({
|
16653
16452
|
mappings: {
|
16654
|
-
hostWidth: { ...host$
|
16655
|
-
hostDirection: { ...host$
|
16453
|
+
hostWidth: { ...host$7, property: 'width' },
|
16454
|
+
hostDirection: { ...host$7, property: 'direction' },
|
16656
16455
|
groupNameInputMarginBottom: { ...groupInput, property: 'margin-bottom' },
|
16657
16456
|
errorMessageIcon: { ...errorMessage, property: 'background-image' },
|
16658
16457
|
errorMessageIconSize: { ...errorMessage, property: 'background-size' },
|
@@ -16705,15 +16504,15 @@ const SamlGroupMappingsClass = compose$1(
|
|
16705
16504
|
'options',
|
16706
16505
|
'error-message',
|
16707
16506
|
],
|
16708
|
-
componentName: componentName$
|
16507
|
+
componentName: componentName$q,
|
16709
16508
|
})
|
16710
16509
|
);
|
16711
16510
|
|
16712
|
-
customElements.define(componentName$
|
16511
|
+
customElements.define(componentName$r, SamlGroupMappingsInternal);
|
16713
16512
|
|
16714
|
-
customElements.define(componentName$
|
16513
|
+
customElements.define(componentName$q, SamlGroupMappingsClass);
|
16715
16514
|
|
16716
|
-
const componentName$
|
16515
|
+
const componentName$p = getComponentName$1('radio-button');
|
16717
16516
|
|
16718
16517
|
const customMixin$4 = (superclass) =>
|
16719
16518
|
class CustomMixin extends superclass {
|
@@ -16778,11 +16577,11 @@ const RadioButtonClass = compose$1(
|
|
16778
16577
|
wrappedEleName: 'vaadin-radio-button',
|
16779
16578
|
excludeAttrsSync: ['tabindex', 'data'],
|
16780
16579
|
includeForwardProps: ['checked', 'name', 'disabled'],
|
16781
|
-
componentName: componentName$
|
16580
|
+
componentName: componentName$p,
|
16782
16581
|
})
|
16783
16582
|
);
|
16784
16583
|
|
16785
|
-
const componentName$
|
16584
|
+
const componentName$o = getComponentName$1('radio-group');
|
16786
16585
|
|
16787
16586
|
const RadioGroupMixin = (superclass) =>
|
16788
16587
|
class RadioGroupMixinClass extends superclass {
|
@@ -16797,12 +16596,12 @@ const RadioGroupMixin = (superclass) =>
|
|
16797
16596
|
|
16798
16597
|
// we are overriding vaadin children getter so it will run on our custom elements
|
16799
16598
|
Object.defineProperty(this.baseElement, 'children', {
|
16800
|
-
get: () => this.querySelectorAll(componentName$
|
16599
|
+
get: () => this.querySelectorAll(componentName$p),
|
16801
16600
|
});
|
16802
16601
|
|
16803
16602
|
// we are overriding vaadin __filterRadioButtons so it will run on our custom elements
|
16804
16603
|
this.baseElement.__filterRadioButtons = (nodes) => {
|
16805
|
-
return nodes.filter((node) => node.localName === componentName$
|
16604
|
+
return nodes.filter((node) => node.localName === componentName$p);
|
16806
16605
|
};
|
16807
16606
|
|
16808
16607
|
// vaadin radio group missing some input properties
|
@@ -16952,13 +16751,13 @@ const RadioGroupClass = compose$1(
|
|
16952
16751
|
`,
|
16953
16752
|
|
16954
16753
|
excludeAttrsSync: ['tabindex', 'size', 'data', 'direction'],
|
16955
|
-
componentName: componentName$
|
16754
|
+
componentName: componentName$o,
|
16956
16755
|
includeForwardProps: ['value'],
|
16957
16756
|
})
|
16958
16757
|
);
|
16959
16758
|
|
16960
|
-
customElements.define(componentName$
|
16961
|
-
customElements.define(componentName$
|
16759
|
+
customElements.define(componentName$o, RadioGroupClass);
|
16760
|
+
customElements.define(componentName$p, RadioButtonClass);
|
16962
16761
|
|
16963
16762
|
const activeableMixin = (superclass) =>
|
16964
16763
|
class ActiveableMixinClass extends superclass {
|
@@ -16975,7 +16774,7 @@ const activeableMixin = (superclass) =>
|
|
16975
16774
|
}
|
16976
16775
|
};
|
16977
16776
|
|
16978
|
-
const componentName$
|
16777
|
+
const componentName$n = getComponentName$1('list-item');
|
16979
16778
|
|
16980
16779
|
const customMixin$3 = (superclass) =>
|
16981
16780
|
class ListItemMixinClass extends superclass {
|
@@ -17025,11 +16824,11 @@ const ListItemClass = compose$1(
|
|
17025
16824
|
componentNameValidationMixin$1,
|
17026
16825
|
customMixin$3,
|
17027
16826
|
activeableMixin
|
17028
|
-
)(createBaseClass$1({ componentName: componentName$
|
16827
|
+
)(createBaseClass$1({ componentName: componentName$n, baseSelector: 'slot' }));
|
17029
16828
|
|
17030
|
-
const componentName$
|
16829
|
+
const componentName$m = getComponentName$1('list');
|
17031
16830
|
|
17032
|
-
class RawList extends createBaseClass$1({ componentName: componentName$
|
16831
|
+
class RawList extends createBaseClass$1({ componentName: componentName$m, baseSelector: '.wrapper' }) {
|
17033
16832
|
static get observedAttributes() {
|
17034
16833
|
return ['variant', 'readonly'];
|
17035
16834
|
}
|
@@ -17177,12 +16976,12 @@ const ListClass = compose$1(
|
|
17177
16976
|
componentNameValidationMixin$1
|
17178
16977
|
)(RawList);
|
17179
16978
|
|
17180
|
-
customElements.define(componentName$
|
17181
|
-
customElements.define(componentName$
|
16979
|
+
customElements.define(componentName$m, ListClass);
|
16980
|
+
customElements.define(componentName$n, ListItemClass);
|
17182
16981
|
|
17183
|
-
const componentName$
|
16982
|
+
const componentName$l = getComponentName('avatar');
|
17184
16983
|
class RawAvatar extends createBaseClass({
|
17185
|
-
componentName: componentName$
|
16984
|
+
componentName: componentName$l,
|
17186
16985
|
baseSelector: ':host > .wrapper',
|
17187
16986
|
}) {
|
17188
16987
|
constructor() {
|
@@ -17260,7 +17059,7 @@ class RawAvatar extends createBaseClass({
|
|
17260
17059
|
}
|
17261
17060
|
}
|
17262
17061
|
|
17263
|
-
const { host: host$
|
17062
|
+
const { host: host$6, editableBadge, avatar: avatar$2 } = {
|
17264
17063
|
host: { selector: () => ':host' },
|
17265
17064
|
editableBadge: { selector: '> .editableBadge' },
|
17266
17065
|
avatar: { selector: 'vaadin-avatar' },
|
@@ -17270,12 +17069,12 @@ const AvatarClass = compose(
|
|
17270
17069
|
createStyleMixin({
|
17271
17070
|
mappings: {
|
17272
17071
|
hostWidth: [
|
17273
|
-
{ ...host$
|
17274
|
-
{ ...host$
|
17072
|
+
{ ...host$6, property: 'width' },
|
17073
|
+
{ ...host$6, property: 'min-width' },
|
17275
17074
|
],
|
17276
|
-
hostHeight: { ...host$
|
17277
|
-
cursor: [avatar$2, host$
|
17278
|
-
hostDirection: { ...host$
|
17075
|
+
hostHeight: { ...host$6, property: 'height' },
|
17076
|
+
cursor: [avatar$2, host$6],
|
17077
|
+
hostDirection: { ...host$6, property: 'direction' },
|
17279
17078
|
avatarTextColor: { ...avatar$2, property: 'color' },
|
17280
17079
|
avatarBackgroundColor: { ...avatar$2, property: 'background-color' },
|
17281
17080
|
editableIconColor: { ...editableBadge, property: 'color' },
|
@@ -17290,7 +17089,7 @@ const AvatarClass = compose(
|
|
17290
17089
|
componentNameValidationMixin,
|
17291
17090
|
)(RawAvatar);
|
17292
17091
|
|
17293
|
-
customElements.define(componentName$
|
17092
|
+
customElements.define(componentName$l, AvatarClass);
|
17294
17093
|
|
17295
17094
|
const defaultValidateSchema = () => true;
|
17296
17095
|
const defaultItemRenderer = (item) => `<pre>${JSON.stringify(item, null, 4)}</pre>`;
|
@@ -17391,7 +17190,7 @@ const createDynamicDataMixin =
|
|
17391
17190
|
}
|
17392
17191
|
};
|
17393
17192
|
|
17394
|
-
const componentName$
|
17193
|
+
const componentName$k = getComponentName$1('apps-list');
|
17395
17194
|
|
17396
17195
|
const limitAbbreviation = (str, limit = 2) =>
|
17397
17196
|
str
|
@@ -17453,7 +17252,7 @@ const AppsListClass = compose$1(
|
|
17453
17252
|
slots: ['empty-state'],
|
17454
17253
|
wrappedEleName: 'descope-list',
|
17455
17254
|
excludeAttrsSync: ['tabindex', 'class', 'empty'],
|
17456
|
-
componentName: componentName$
|
17255
|
+
componentName: componentName$k,
|
17457
17256
|
style: () => `
|
17458
17257
|
:host {
|
17459
17258
|
width: 100%;
|
@@ -17478,9 +17277,9 @@ const AppsListClass = compose$1(
|
|
17478
17277
|
})
|
17479
17278
|
);
|
17480
17279
|
|
17481
|
-
customElements.define(componentName$
|
17280
|
+
customElements.define(componentName$k, AppsListClass);
|
17482
17281
|
|
17483
|
-
const componentName$
|
17282
|
+
const componentName$j = getComponentName$1('scopes-list');
|
17484
17283
|
const variants = ['checkbox', 'switch'];
|
17485
17284
|
|
17486
17285
|
const itemRenderer$1 = ({ id, desc, required = false }, _, ref) => {
|
@@ -17499,7 +17298,7 @@ const itemRenderer$1 = ({ id, desc, required = false }, _, ref) => {
|
|
17499
17298
|
`;
|
17500
17299
|
};
|
17501
17300
|
|
17502
|
-
class RawScopesList extends createBaseClass$1({ componentName: componentName$
|
17301
|
+
class RawScopesList extends createBaseClass$1({ componentName: componentName$j, baseSelector: 'div' }) {
|
17503
17302
|
constructor() {
|
17504
17303
|
super();
|
17505
17304
|
|
@@ -17607,13 +17406,13 @@ const ScopesListClass = compose$1(
|
|
17607
17406
|
componentNameValidationMixin$1
|
17608
17407
|
)(RawScopesList);
|
17609
17408
|
|
17610
|
-
customElements.define(componentName$
|
17409
|
+
customElements.define(componentName$j, ScopesListClass);
|
17611
17410
|
|
17612
17411
|
var arrowsImg = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjkiIGhlaWdodD0iMjgiIHZpZXdCb3g9IjAgMCAyOSAyOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTkuMTQ0OTIgMTUuNjQ1TDcuNDk5OTIgMTRMMi44MzMyNSAxOC42NjY3TDcuNDk5OTIgMjMuMzMzM0w5LjE0NDkyIDIxLjY4ODNMNy4zMDE1OSAxOS44MzMzSDI0Ljk5OTlWMTcuNUg3LjMwMTU5TDkuMTQ0OTIgMTUuNjQ1WiIgZmlsbD0iIzYzNkM3NCIvPgo8cGF0aCBkPSJNMTkuODU1IDEyLjM1NTNMMjEuNSAxNC4wMDAzTDI2LjE2NjcgOS4zMzM2NkwyMS41IDQuNjY2OTlMMTkuODU1IDYuMzExOTlMMjEuNjk4MyA4LjE2Njk5SDRWMTAuNTAwM0gyMS42OTgzTDE5Ljg1NSAxMi4zNTUzWiIgZmlsbD0iIzYzNkM3NCIvPgo8L3N2Zz4K";
|
17613
17412
|
|
17614
|
-
const componentName$
|
17413
|
+
const componentName$i = getComponentName$1('third-party-app-logo');
|
17615
17414
|
class RawThirdPartyAppLogoClass extends createBaseClass$1({
|
17616
|
-
componentName: componentName$
|
17415
|
+
componentName: componentName$i,
|
17617
17416
|
baseSelector: '.wrapper',
|
17618
17417
|
}) {
|
17619
17418
|
constructor() {
|
@@ -17771,12 +17570,12 @@ const createImage = async (src, altText) => {
|
|
17771
17570
|
|
17772
17571
|
/* eslint-disable no-use-before-define */
|
17773
17572
|
|
17774
|
-
const componentName$
|
17573
|
+
const componentName$h = getComponentName('image');
|
17775
17574
|
|
17776
17575
|
const srcAttrs = ['src', 'src-dark'];
|
17777
17576
|
|
17778
17577
|
class RawImage extends createBaseClass({
|
17779
|
-
componentName: componentName$
|
17578
|
+
componentName: componentName$h,
|
17780
17579
|
baseSelector: 'slot',
|
17781
17580
|
}) {
|
17782
17581
|
static get observedAttributes() {
|
@@ -17904,13 +17703,13 @@ const ImageClass = compose(
|
|
17904
17703
|
componentNameValidationMixin,
|
17905
17704
|
)(RawImage);
|
17906
17705
|
|
17907
|
-
customElements.define(componentName$
|
17706
|
+
customElements.define(componentName$h, ImageClass);
|
17908
17707
|
|
17909
17708
|
customElements.define(componentName$19, IconClass);
|
17910
17709
|
|
17911
|
-
customElements.define(componentName$
|
17710
|
+
customElements.define(componentName$i, ThirdPartyAppLogoClass);
|
17912
17711
|
|
17913
|
-
const componentName$
|
17712
|
+
const componentName$g = getComponentName$1('security-questions-setup');
|
17914
17713
|
|
17915
17714
|
const attrsToSync$1 = [
|
17916
17715
|
'full-width',
|
@@ -17929,7 +17728,7 @@ const attrsToSync$1 = [
|
|
17929
17728
|
];
|
17930
17729
|
|
17931
17730
|
const attrsToReRender$1 = ['count', 'questions'];
|
17932
|
-
class RawSecurityQuestionsSetup extends createBaseClass$1({ componentName: componentName$
|
17731
|
+
class RawSecurityQuestionsSetup extends createBaseClass$1({ componentName: componentName$g, baseSelector: 'div' }) {
|
17933
17732
|
constructor() {
|
17934
17733
|
super();
|
17935
17734
|
|
@@ -18039,7 +17838,7 @@ class RawSecurityQuestionsSetup extends createBaseClass$1({ componentName: compo
|
|
18039
17838
|
return JSON.parse(this.getAttribute('questions')) || [];
|
18040
17839
|
} catch (e) {
|
18041
17840
|
// eslint-disable-next-line no-console
|
18042
|
-
console.error(componentName$
|
17841
|
+
console.error(componentName$g, 'Error parsing questions attribute', e);
|
18043
17842
|
return [];
|
18044
17843
|
}
|
18045
17844
|
}
|
@@ -18147,9 +17946,9 @@ const SecurityQuestionsSetupClass = compose$1(
|
|
18147
17946
|
componentNameValidationMixin$1
|
18148
17947
|
)(RawSecurityQuestionsSetup);
|
18149
17948
|
|
18150
|
-
customElements.define(componentName$
|
17949
|
+
customElements.define(componentName$g, SecurityQuestionsSetupClass);
|
18151
17950
|
|
18152
|
-
const componentName$
|
17951
|
+
const componentName$f = getComponentName$1('security-questions-verify');
|
18153
17952
|
|
18154
17953
|
const textFieldsAttrs = [
|
18155
17954
|
'full-width',
|
@@ -18173,7 +17972,7 @@ const attrMappings = {
|
|
18173
17972
|
const attrsToSync = [...textFieldsAttrs, ...textsAttrs];
|
18174
17973
|
|
18175
17974
|
const attrsToReRender = ['questions'];
|
18176
|
-
class RawSecurityQuestionsVerify extends createBaseClass$1({ componentName: componentName$
|
17975
|
+
class RawSecurityQuestionsVerify extends createBaseClass$1({ componentName: componentName$f, baseSelector: 'div' }) {
|
18177
17976
|
constructor() {
|
18178
17977
|
super();
|
18179
17978
|
|
@@ -18247,7 +18046,7 @@ class RawSecurityQuestionsVerify extends createBaseClass$1({ componentName: comp
|
|
18247
18046
|
return JSON.parse(this.getAttribute('questions')) || [];
|
18248
18047
|
} catch (e) {
|
18249
18048
|
// eslint-disable-next-line no-console
|
18250
|
-
console.error(componentName$
|
18049
|
+
console.error(componentName$f, 'Error parsing questions attribute', e);
|
18251
18050
|
return [];
|
18252
18051
|
}
|
18253
18052
|
}
|
@@ -18382,7 +18181,7 @@ const SecurityQuestionsVerifyClass = compose$1(
|
|
18382
18181
|
componentNameValidationMixin$1
|
18383
18182
|
)(RawSecurityQuestionsVerify);
|
18384
18183
|
|
18385
|
-
customElements.define(componentName$
|
18184
|
+
customElements.define(componentName$f, SecurityQuestionsVerifyClass);
|
18386
18185
|
|
18387
18186
|
const NUMERIC_RE = /^\d+$/;
|
18388
18187
|
|
@@ -18390,7 +18189,7 @@ const isNumericValue = (val) => NUMERIC_RE.test(val.replaceAll('+', '').replaceA
|
|
18390
18189
|
|
18391
18190
|
const sanitizeCountryCodePrefix = (val) => val.replace(/\+\d+-/, '');
|
18392
18191
|
|
18393
|
-
const componentName$
|
18192
|
+
const componentName$e = getComponentName$1('hybrid-field');
|
18394
18193
|
|
18395
18194
|
const attrs = {
|
18396
18195
|
shared: [
|
@@ -18456,7 +18255,7 @@ const PHONE_FIELD = 'descope-phone-field';
|
|
18456
18255
|
const PHONE_INPUT_BOX_FIELD = 'descope-phone-input-box-field';
|
18457
18256
|
|
18458
18257
|
const BaseClass$2 = createBaseClass$1({
|
18459
|
-
componentName: componentName$
|
18258
|
+
componentName: componentName$e,
|
18460
18259
|
baseSelector: 'div',
|
18461
18260
|
});
|
18462
18261
|
|
@@ -18769,7 +18568,304 @@ const HybridFieldClass = compose$1(
|
|
18769
18568
|
componentNameValidationMixin$1
|
18770
18569
|
)(RawHybridField);
|
18771
18570
|
|
18772
|
-
customElements.define(componentName$
|
18571
|
+
customElements.define(componentName$e, HybridFieldClass);
|
18572
|
+
|
18573
|
+
const componentName$d = getComponentName('link');
|
18574
|
+
|
18575
|
+
class RawLink extends createBaseClass({ componentName: componentName$d, baseSelector: ':host a' }) {
|
18576
|
+
constructor() {
|
18577
|
+
super();
|
18578
|
+
|
18579
|
+
this.attachShadow({ mode: 'open' }).innerHTML = `
|
18580
|
+
<div>
|
18581
|
+
<descope-text>
|
18582
|
+
<a>
|
18583
|
+
<slot></slot>
|
18584
|
+
</a>
|
18585
|
+
</descope-text>
|
18586
|
+
</div>
|
18587
|
+
`;
|
18588
|
+
|
18589
|
+
injectStyle(
|
18590
|
+
`
|
18591
|
+
:host {
|
18592
|
+
display: inline-block;
|
18593
|
+
line-height: 1em;
|
18594
|
+
}
|
18595
|
+
:host a {
|
18596
|
+
display: inline;
|
18597
|
+
}
|
18598
|
+
`,
|
18599
|
+
this
|
18600
|
+
);
|
18601
|
+
|
18602
|
+
forwardAttrs(this, this.shadowRoot.querySelector('a'), {
|
18603
|
+
includeAttrs: ['href', 'target', 'tooltip'],
|
18604
|
+
mapAttrs: {
|
18605
|
+
tooltip: 'title',
|
18606
|
+
},
|
18607
|
+
});
|
18608
|
+
|
18609
|
+
forwardAttrs(this, this.shadowRoot.querySelector('descope-text'), {
|
18610
|
+
includeAttrs: ['mode', 'variant'],
|
18611
|
+
});
|
18612
|
+
}
|
18613
|
+
}
|
18614
|
+
|
18615
|
+
const selectors$1 = {
|
18616
|
+
host: { selector: () => ':host' },
|
18617
|
+
link: { selector: () => ':host a' },
|
18618
|
+
anchor: {},
|
18619
|
+
wrapper: { selector: () => ':host > div' },
|
18620
|
+
text: { selector: () => TextClass.componentName },
|
18621
|
+
};
|
18622
|
+
|
18623
|
+
const { anchor, text: text$3, host: host$5, wrapper, link: link$2 } = selectors$1;
|
18624
|
+
|
18625
|
+
const LinkClass = compose(
|
18626
|
+
createStyleMixin({
|
18627
|
+
mappings: {
|
18628
|
+
hostWidth: { ...host$5, property: 'width' },
|
18629
|
+
hostDirection: { ...text$3, property: 'direction' },
|
18630
|
+
textAlign: wrapper,
|
18631
|
+
textDecoration: { ...link$2, property: 'text-decoration', fallback: 'none' },
|
18632
|
+
textColor: [
|
18633
|
+
{ ...anchor, property: 'color' },
|
18634
|
+
{ ...text$3, property: TextClass.cssVarList.textColor },
|
18635
|
+
],
|
18636
|
+
cursor: anchor,
|
18637
|
+
},
|
18638
|
+
}),
|
18639
|
+
draggableMixin,
|
18640
|
+
componentNameValidationMixin
|
18641
|
+
)(RawLink);
|
18642
|
+
|
18643
|
+
customElements.define(componentName$d, LinkClass);
|
18644
|
+
|
18645
|
+
const disableRules = [
|
18646
|
+
'blockquote',
|
18647
|
+
'list',
|
18648
|
+
'image',
|
18649
|
+
'table',
|
18650
|
+
'code',
|
18651
|
+
'hr',
|
18652
|
+
'backticks',
|
18653
|
+
'fence',
|
18654
|
+
'reference',
|
18655
|
+
'heading',
|
18656
|
+
'lheading',
|
18657
|
+
'html_block',
|
18658
|
+
];
|
18659
|
+
|
18660
|
+
const decodeHTML = (html) => {
|
18661
|
+
const textArea = document.createElement('textarea');
|
18662
|
+
textArea.innerHTML = html;
|
18663
|
+
return textArea.value;
|
18664
|
+
};
|
18665
|
+
|
18666
|
+
/* eslint-disable no-param-reassign */
|
18667
|
+
|
18668
|
+
|
18669
|
+
const componentName$c = getComponentName('enriched-text');
|
18670
|
+
|
18671
|
+
class EnrichedText extends createBaseClass({ componentName: componentName$c, baseSelector: ':host > div' }) {
|
18672
|
+
#origLinkRenderer;
|
18673
|
+
|
18674
|
+
#origEmRenderer;
|
18675
|
+
|
18676
|
+
constructor() {
|
18677
|
+
super();
|
18678
|
+
|
18679
|
+
this.attachShadow({ mode: 'open' }).innerHTML = `
|
18680
|
+
<div class="content"></div>
|
18681
|
+
`;
|
18682
|
+
|
18683
|
+
injectStyle(
|
18684
|
+
`
|
18685
|
+
:host {
|
18686
|
+
line-height: 1em;
|
18687
|
+
word-break: break-word;
|
18688
|
+
}
|
18689
|
+
:host > slot {
|
18690
|
+
width: 100%;
|
18691
|
+
display: inline-block;
|
18692
|
+
}
|
18693
|
+
*, *:last-child {
|
18694
|
+
margin: 0;
|
18695
|
+
}
|
18696
|
+
h1,
|
18697
|
+
h2,
|
18698
|
+
h3,
|
18699
|
+
h4,
|
18700
|
+
h5,
|
18701
|
+
h6,
|
18702
|
+
p {
|
18703
|
+
margin-bottom: 1em;
|
18704
|
+
}
|
18705
|
+
a {
|
18706
|
+
cursor: pointer;
|
18707
|
+
}
|
18708
|
+
blockquote {
|
18709
|
+
padding: 0 2em;
|
18710
|
+
}
|
18711
|
+
u {
|
18712
|
+
text-decoration: underline
|
18713
|
+
}
|
18714
|
+
s {
|
18715
|
+
color: currentColor;
|
18716
|
+
}
|
18717
|
+
`,
|
18718
|
+
this
|
18719
|
+
);
|
18720
|
+
|
18721
|
+
this.#initProcessor();
|
18722
|
+
|
18723
|
+
observeChildren(this, this.#parseChildren.bind(this));
|
18724
|
+
}
|
18725
|
+
|
18726
|
+
static get observedAttributes() {
|
18727
|
+
return ['readonly', 'link-target-blank'];
|
18728
|
+
}
|
18729
|
+
|
18730
|
+
attributeChangedCallback(attrName, oldValue, newValue) {
|
18731
|
+
super.attributeChangedCallback?.(attrName, oldValue, newValue);
|
18732
|
+
|
18733
|
+
if (newValue !== oldValue) {
|
18734
|
+
if (attrName === 'readonly') {
|
18735
|
+
this.onReadOnlyChange(newValue === 'true');
|
18736
|
+
}
|
18737
|
+
|
18738
|
+
if (attrName === 'link-target-blank') {
|
18739
|
+
this.#initProcessor();
|
18740
|
+
}
|
18741
|
+
}
|
18742
|
+
}
|
18743
|
+
|
18744
|
+
// We're overriding the rule for em with single underscore to perform as underline. (_underline_)
|
18745
|
+
customUnderlineRenderer() {
|
18746
|
+
this.processor.renderer.rules.em_open = (tokens, idx, options, env, self) => {
|
18747
|
+
if (tokens[idx].markup === '_') tokens[idx].tag = 'u';
|
18748
|
+
return this.#origEmRenderer(tokens, idx, options, env, self);
|
18749
|
+
};
|
18750
|
+
this.processor.renderer.rules.em_close = (tokens, idx, options, env, self) => {
|
18751
|
+
if (tokens[idx].markup === '_') tokens[idx].tag = 'u';
|
18752
|
+
return this.#origEmRenderer(tokens, idx, options, env, self);
|
18753
|
+
};
|
18754
|
+
}
|
18755
|
+
|
18756
|
+
#customizeLinkRenderer() {
|
18757
|
+
if (this.linkTargetBlank) {
|
18758
|
+
this.processor.renderer.rules.link_open = (tokens, idx, options, env, self) => {
|
18759
|
+
// Add a new `target` attribute, or replace the value of the existing one.
|
18760
|
+
tokens[idx].attrSet('target', '_blank');
|
18761
|
+
// Pass the token to the default renderer.
|
18762
|
+
return this.#origLinkRenderer(tokens, idx, options, env, self);
|
18763
|
+
};
|
18764
|
+
} else {
|
18765
|
+
this.processor.renderer.rules.link_open = this.#origLinkRenderer;
|
18766
|
+
}
|
18767
|
+
}
|
18768
|
+
|
18769
|
+
#disableCustomRules() {
|
18770
|
+
if (!this.processor) {
|
18771
|
+
return;
|
18772
|
+
}
|
18773
|
+
this.processor.disable(disableRules);
|
18774
|
+
}
|
18775
|
+
|
18776
|
+
#updateProcessorRules() {
|
18777
|
+
this.#disableCustomRules();
|
18778
|
+
}
|
18779
|
+
|
18780
|
+
#storeOrigRenderers() {
|
18781
|
+
const defaultLinkRenderer = (tokens, idx, options, _, self) =>
|
18782
|
+
self.renderToken(tokens, idx, options);
|
18783
|
+
this.#origLinkRenderer = this.processor.renderer.rules.link_open || defaultLinkRenderer;
|
18784
|
+
|
18785
|
+
const defaultStrongRenderer = (tokens, idx, options, _, self) =>
|
18786
|
+
self.renderToken(tokens, idx, options);
|
18787
|
+
this.#origEmRenderer = this.processor.renderer.rules.em_open || defaultStrongRenderer;
|
18788
|
+
}
|
18789
|
+
|
18790
|
+
#initProcessor() {
|
18791
|
+
this.processor = new MarkdownIt('commonmark', { html: true });
|
18792
|
+
this.#storeOrigRenderers();
|
18793
|
+
this.#updateProcessorRules();
|
18794
|
+
this.#customizeLinkRenderer();
|
18795
|
+
this.customUnderlineRenderer();
|
18796
|
+
}
|
18797
|
+
|
18798
|
+
get linkTargetBlank() {
|
18799
|
+
return this.getAttribute('link-target-blank') === 'true';
|
18800
|
+
}
|
18801
|
+
|
18802
|
+
get contentNode() {
|
18803
|
+
return this.shadowRoot.querySelector('.content');
|
18804
|
+
}
|
18805
|
+
|
18806
|
+
#parseChildren() {
|
18807
|
+
if (!this.processor) {
|
18808
|
+
return;
|
18809
|
+
}
|
18810
|
+
|
18811
|
+
let html = decodeHTML(this.innerHTML);
|
18812
|
+
|
18813
|
+
if (!html?.trim() && this.isConnected) {
|
18814
|
+
this.setAttribute('empty', 'true');
|
18815
|
+
} else {
|
18816
|
+
this.removeAttribute('empty');
|
18817
|
+
}
|
18818
|
+
|
18819
|
+
try {
|
18820
|
+
const tokens = this.processor.parse(html, { references: undefined });
|
18821
|
+
html = this.processor.renderer.render(tokens, { html: true, breaks: true });
|
18822
|
+
} catch (e) {
|
18823
|
+
// eslint-disable-next-line no-console
|
18824
|
+
console.warn('Not parsing invalid markdown token');
|
18825
|
+
}
|
18826
|
+
|
18827
|
+
this.contentNode.innerHTML = html;
|
18828
|
+
}
|
18829
|
+
|
18830
|
+
onReadOnlyChange(isReadOnly) {
|
18831
|
+
if (isReadOnly) {
|
18832
|
+
this.contentNode.setAttribute('inert', isReadOnly);
|
18833
|
+
} else {
|
18834
|
+
this.contentNode.removeAttribute('inert');
|
18835
|
+
}
|
18836
|
+
}
|
18837
|
+
}
|
18838
|
+
|
18839
|
+
const EnrichedTextClass = compose(
|
18840
|
+
createStyleMixin({
|
18841
|
+
mappings: {
|
18842
|
+
hostWidth: { selector: () => ':host', property: 'width' },
|
18843
|
+
hostDisplay: { selector: () => ':host', property: 'display', fallback: 'inline-block' },
|
18844
|
+
hostDirection: { selector: () => ':host', property: 'direction' },
|
18845
|
+
fontSize: {},
|
18846
|
+
fontFamily: {},
|
18847
|
+
fontWeight: {},
|
18848
|
+
fontWeightBold: [
|
18849
|
+
{ selector: () => ':host strong', property: 'font-weight' },
|
18850
|
+
{ selector: () => ':host b', property: 'font-weight' },
|
18851
|
+
],
|
18852
|
+
textColor: { property: 'color' },
|
18853
|
+
textLineHeight: { property: 'line-height' },
|
18854
|
+
textAlign: {},
|
18855
|
+
linkColor: { selector: 'a', property: 'color' },
|
18856
|
+
linkTextDecoration: { selector: 'a', property: 'text-decoration' },
|
18857
|
+
linkHoverTextDecoration: { selector: 'a:hover', property: 'text-decoration' },
|
18858
|
+
minHeight: {},
|
18859
|
+
minWidth: {},
|
18860
|
+
},
|
18861
|
+
}),
|
18862
|
+
createStyleMixin({ componentNameOverride: getComponentName('link') }),
|
18863
|
+
createStyleMixin({ componentNameOverride: getComponentName('text') }),
|
18864
|
+
draggableMixin,
|
18865
|
+
componentNameValidationMixin
|
18866
|
+
)(EnrichedText);
|
18867
|
+
|
18868
|
+
customElements.define(componentName$c, EnrichedTextClass);
|
18773
18869
|
|
18774
18870
|
const componentName$b = getComponentName$1('alert');
|
18775
18871
|
|
@@ -20275,7 +20371,7 @@ var text$2 = /*#__PURE__*/Object.freeze({
|
|
20275
20371
|
vars: vars$O
|
20276
20372
|
});
|
20277
20373
|
|
20278
|
-
const globalRefs$z = getThemeRefs(globals
|
20374
|
+
const globalRefs$z = getThemeRefs$1(globals);
|
20279
20375
|
const vars$N = LinkClass.cssVarList;
|
20280
20376
|
|
20281
20377
|
const link = {
|
@@ -20311,22 +20407,22 @@ var link$1 = /*#__PURE__*/Object.freeze({
|
|
20311
20407
|
vars: vars$N
|
20312
20408
|
});
|
20313
20409
|
|
20314
|
-
const globalRefs$y = getThemeRefs(globals
|
20410
|
+
const globalRefs$y = getThemeRefs$1(globals);
|
20315
20411
|
const vars$M = EnrichedTextClass.cssVarList;
|
20316
20412
|
|
20317
20413
|
const enrichedText = {
|
20318
20414
|
[vars$M.hostDirection]: globalRefs$y.direction,
|
20319
|
-
[vars$M.hostWidth]: useVar(vars$O.hostWidth),
|
20415
|
+
[vars$M.hostWidth]: useVar$1(vars$O.hostWidth),
|
20320
20416
|
|
20321
|
-
[vars$M.textLineHeight]: useVar(vars$O.textLineHeight),
|
20322
|
-
[vars$M.textColor]: useVar(vars$O.textColor),
|
20323
|
-
[vars$M.textAlign]: useVar(vars$O.textAlign),
|
20417
|
+
[vars$M.textLineHeight]: useVar$1(vars$O.textLineHeight),
|
20418
|
+
[vars$M.textColor]: useVar$1(vars$O.textColor),
|
20419
|
+
[vars$M.textAlign]: useVar$1(vars$O.textAlign),
|
20324
20420
|
|
20325
|
-
[vars$M.fontSize]: useVar(vars$O.fontSize),
|
20326
|
-
[vars$M.fontWeight]: useVar(vars$O.fontWeight),
|
20327
|
-
[vars$M.fontFamily]: useVar(vars$O.fontFamily),
|
20421
|
+
[vars$M.fontSize]: useVar$1(vars$O.fontSize),
|
20422
|
+
[vars$M.fontWeight]: useVar$1(vars$O.fontWeight),
|
20423
|
+
[vars$M.fontFamily]: useVar$1(vars$O.fontFamily),
|
20328
20424
|
|
20329
|
-
[vars$M.linkColor]: useVar(vars$N.textColor),
|
20425
|
+
[vars$M.linkColor]: useVar$1(vars$N.textColor),
|
20330
20426
|
[vars$M.linkTextDecoration]: 'none',
|
20331
20427
|
[vars$M.linkHoverTextDecoration]: 'underline',
|
20332
20428
|
|
@@ -21896,7 +21992,7 @@ const compVars$2 = ListClass.cssVarList;
|
|
21896
21992
|
|
21897
21993
|
const [helperTheme$1, helperRefs$1, helperVars$1] = createHelperVars(
|
21898
21994
|
{ shadowColor: '#00000020' },
|
21899
|
-
componentName$
|
21995
|
+
componentName$m
|
21900
21996
|
);
|
21901
21997
|
|
21902
21998
|
const { shadowColor: shadowColor$1 } = helperRefs$1;
|