@descope/web-components-ui 1.106.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 +27 -27
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/index.esm.js +656 -656
- 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-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 +4 -3
- package/src/components/descope-alert/AlertClass.js +1 -1
- package/src/components/descope-alert/index.js +1 -1
- 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';
|
@@ -7904,78 +7904,6 @@ const EmailFieldClass = compose$1(
|
|
7904
7904
|
|
7905
7905
|
customElements.define(componentName$12, EmailFieldClass);
|
7906
7906
|
|
7907
|
-
const componentName$11 = getComponentName$1('link');
|
7908
|
-
|
7909
|
-
class RawLink extends createBaseClass$1({ componentName: componentName$11, baseSelector: ':host a' }) {
|
7910
|
-
constructor() {
|
7911
|
-
super();
|
7912
|
-
|
7913
|
-
this.attachShadow({ mode: 'open' }).innerHTML = `
|
7914
|
-
<div>
|
7915
|
-
<descope-text>
|
7916
|
-
<a>
|
7917
|
-
<slot></slot>
|
7918
|
-
</a>
|
7919
|
-
</descope-text>
|
7920
|
-
</div>
|
7921
|
-
`;
|
7922
|
-
|
7923
|
-
injectStyle(
|
7924
|
-
`
|
7925
|
-
:host {
|
7926
|
-
display: inline-block;
|
7927
|
-
line-height: 1em;
|
7928
|
-
}
|
7929
|
-
:host a {
|
7930
|
-
display: inline;
|
7931
|
-
}
|
7932
|
-
`,
|
7933
|
-
this
|
7934
|
-
);
|
7935
|
-
|
7936
|
-
forwardAttrs$1(this, this.shadowRoot.querySelector('a'), {
|
7937
|
-
includeAttrs: ['href', 'target', 'tooltip'],
|
7938
|
-
mapAttrs: {
|
7939
|
-
tooltip: 'title',
|
7940
|
-
},
|
7941
|
-
});
|
7942
|
-
|
7943
|
-
forwardAttrs$1(this, this.shadowRoot.querySelector('descope-text'), {
|
7944
|
-
includeAttrs: ['mode', 'variant'],
|
7945
|
-
});
|
7946
|
-
}
|
7947
|
-
}
|
7948
|
-
|
7949
|
-
const selectors$2 = {
|
7950
|
-
host: { selector: () => ':host' },
|
7951
|
-
link: { selector: () => ':host a' },
|
7952
|
-
anchor: {},
|
7953
|
-
wrapper: { selector: () => ':host > div' },
|
7954
|
-
text: { selector: () => TextClass.componentName },
|
7955
|
-
};
|
7956
|
-
|
7957
|
-
const { anchor, text: text$3, host: host$l, wrapper: wrapper$1, link: link$3 } = selectors$2;
|
7958
|
-
|
7959
|
-
const LinkClass = compose$1(
|
7960
|
-
createStyleMixin$1({
|
7961
|
-
mappings: {
|
7962
|
-
hostWidth: { ...host$l, property: 'width' },
|
7963
|
-
hostDirection: { ...text$3, property: 'direction' },
|
7964
|
-
textAlign: wrapper$1,
|
7965
|
-
textDecoration: { ...link$3, property: 'text-decoration', fallback: 'none' },
|
7966
|
-
textColor: [
|
7967
|
-
{ ...anchor, property: 'color' },
|
7968
|
-
{ ...text$3, property: TextClass.cssVarList.textColor },
|
7969
|
-
],
|
7970
|
-
cursor: anchor,
|
7971
|
-
},
|
7972
|
-
}),
|
7973
|
-
draggableMixin$1,
|
7974
|
-
componentNameValidationMixin$1
|
7975
|
-
)(RawLink);
|
7976
|
-
|
7977
|
-
customElements.define(componentName$11, LinkClass);
|
7978
|
-
|
7979
7907
|
const createCssVarImageClass = ({ componentName, varName, fallbackVarName }) => {
|
7980
7908
|
let style;
|
7981
7909
|
const getContent = () => style;
|
@@ -8030,37 +7958,37 @@ const createCssVarImageClass = ({ componentName, varName, fallbackVarName }) =>
|
|
8030
7958
|
return CssVarImageClass;
|
8031
7959
|
};
|
8032
7960
|
|
8033
|
-
const componentName$
|
7961
|
+
const componentName$11 = getComponentName$1('logo');
|
8034
7962
|
|
8035
7963
|
const LogoClass = createCssVarImageClass({
|
8036
|
-
componentName: componentName$
|
7964
|
+
componentName: componentName$11,
|
8037
7965
|
varName: 'url',
|
8038
7966
|
fallbackVarName: 'fallbackUrl',
|
8039
7967
|
});
|
8040
7968
|
|
8041
|
-
customElements.define(componentName$
|
7969
|
+
customElements.define(componentName$11, LogoClass);
|
8042
7970
|
|
8043
|
-
const componentName
|
7971
|
+
const componentName$10 = getComponentName$1('totp-image');
|
8044
7972
|
|
8045
7973
|
const TotpImageClass = createCssVarImageClass({
|
8046
|
-
componentName: componentName
|
7974
|
+
componentName: componentName$10,
|
8047
7975
|
varName: 'url',
|
8048
7976
|
fallbackVarName: 'fallbackUrl',
|
8049
7977
|
});
|
8050
7978
|
|
8051
|
-
customElements.define(componentName
|
7979
|
+
customElements.define(componentName$10, TotpImageClass);
|
8052
7980
|
|
8053
|
-
const componentName
|
7981
|
+
const componentName$$ = getComponentName$1('notp-image');
|
8054
7982
|
|
8055
7983
|
const NotpImageClass = createCssVarImageClass({
|
8056
|
-
componentName: componentName
|
7984
|
+
componentName: componentName$$,
|
8057
7985
|
varName: 'url',
|
8058
7986
|
fallbackVarName: 'fallbackUrl',
|
8059
7987
|
});
|
8060
7988
|
|
8061
|
-
customElements.define(componentName
|
7989
|
+
customElements.define(componentName$$, NotpImageClass);
|
8062
7990
|
|
8063
|
-
const componentName$
|
7991
|
+
const componentName$_ = getComponentName$1('number-field');
|
8064
7992
|
|
8065
7993
|
const NumberFieldClass = compose$1(
|
8066
7994
|
createStyleMixin$1({
|
@@ -8094,11 +8022,11 @@ const NumberFieldClass = compose$1(
|
|
8094
8022
|
}
|
8095
8023
|
`,
|
8096
8024
|
excludeAttrsSync: ['tabindex'],
|
8097
|
-
componentName: componentName$
|
8025
|
+
componentName: componentName$_,
|
8098
8026
|
})
|
8099
8027
|
);
|
8100
8028
|
|
8101
|
-
customElements.define(componentName$
|
8029
|
+
customElements.define(componentName$_, NumberFieldClass);
|
8102
8030
|
|
8103
8031
|
const INPUT_MASK_TEXT_PROP = '--descope-input-mask-content';
|
8104
8032
|
const INPUT_MASK_DISPLAY_PROP = '--descope-input-mask-display';
|
@@ -8125,7 +8053,7 @@ const toggleMaskVisibility = (input, value) => {
|
|
8125
8053
|
|
8126
8054
|
/* eslint-disable no-param-reassign */
|
8127
8055
|
|
8128
|
-
const componentName$
|
8056
|
+
const componentName$Z = getComponentName$1('passcode-internal');
|
8129
8057
|
|
8130
8058
|
const observedAttributes$5 = ['digits', 'loading'];
|
8131
8059
|
|
@@ -8138,7 +8066,7 @@ const forwardAttributes = [
|
|
8138
8066
|
'aria-labelledby',
|
8139
8067
|
];
|
8140
8068
|
|
8141
|
-
const BaseInputClass$9 = createBaseInputClass$1({ componentName: componentName$
|
8069
|
+
const BaseInputClass$9 = createBaseInputClass$1({ componentName: componentName$Z, baseSelector: 'div' });
|
8142
8070
|
|
8143
8071
|
class PasscodeInternal extends BaseInputClass$9 {
|
8144
8072
|
static get observedAttributes() {
|
@@ -8352,7 +8280,7 @@ class PasscodeInternal extends BaseInputClass$9 {
|
|
8352
8280
|
}
|
8353
8281
|
}
|
8354
8282
|
|
8355
|
-
const componentName$
|
8283
|
+
const componentName$Y = getComponentName$1('passcode');
|
8356
8284
|
|
8357
8285
|
const observedAttributes$4 = ['digits'];
|
8358
8286
|
|
@@ -8397,18 +8325,18 @@ const customMixin$c = (superclass) =>
|
|
8397
8325
|
const template = document.createElement('template');
|
8398
8326
|
|
8399
8327
|
template.innerHTML = `
|
8400
|
-
<${componentName$
|
8328
|
+
<${componentName$Z}
|
8401
8329
|
bordered="true"
|
8402
8330
|
name="code"
|
8403
8331
|
tabindex="-1"
|
8404
8332
|
slot="input"
|
8405
8333
|
role="textbox"
|
8406
|
-
><slot></slot></${componentName$
|
8334
|
+
><slot></slot></${componentName$Z}>
|
8407
8335
|
`;
|
8408
8336
|
|
8409
8337
|
this.baseElement.appendChild(template.content.cloneNode(true));
|
8410
8338
|
|
8411
|
-
this.inputElement = this.shadowRoot.querySelector(componentName$
|
8339
|
+
this.inputElement = this.shadowRoot.querySelector(componentName$Z);
|
8412
8340
|
|
8413
8341
|
forwardAttrs$1(this, this.inputElement, { includeAttrs: ['digits', 'size', 'loading'] });
|
8414
8342
|
}
|
@@ -8423,7 +8351,7 @@ const customMixin$c = (superclass) =>
|
|
8423
8351
|
};
|
8424
8352
|
|
8425
8353
|
const {
|
8426
|
-
host: host$
|
8354
|
+
host: host$l,
|
8427
8355
|
digitField,
|
8428
8356
|
label: label$7,
|
8429
8357
|
requiredIndicator: requiredIndicator$7,
|
@@ -8446,10 +8374,10 @@ const loaderVars = LoaderRadialClass.cssVarList;
|
|
8446
8374
|
const PasscodeClass = compose$1(
|
8447
8375
|
createStyleMixin$1({
|
8448
8376
|
mappings: {
|
8449
|
-
fontSize: [{ ...digitField, property: textVars$3.fontSize }, host$
|
8377
|
+
fontSize: [{ ...digitField, property: textVars$3.fontSize }, host$l],
|
8450
8378
|
hostWidth: { property: 'width' },
|
8451
|
-
hostDirection: { ...host$
|
8452
|
-
fontFamily: [host$
|
8379
|
+
hostDirection: { ...host$l, property: 'direction' },
|
8380
|
+
fontFamily: [host$l, { ...label$7 }],
|
8453
8381
|
labelTextColor: [
|
8454
8382
|
{ ...label$7, property: 'color' },
|
8455
8383
|
{ ...requiredIndicator$7, property: 'color' },
|
@@ -8567,13 +8495,13 @@ const PasscodeClass = compose$1(
|
|
8567
8495
|
${resetInputCursor('vaadin-text-field')}
|
8568
8496
|
`,
|
8569
8497
|
excludeAttrsSync: ['tabindex'],
|
8570
|
-
componentName: componentName$
|
8498
|
+
componentName: componentName$Y,
|
8571
8499
|
})
|
8572
8500
|
);
|
8573
8501
|
|
8574
|
-
customElements.define(componentName$
|
8502
|
+
customElements.define(componentName$Z, PasscodeInternal);
|
8575
8503
|
|
8576
|
-
customElements.define(componentName$
|
8504
|
+
customElements.define(componentName$Y, PasscodeClass);
|
8577
8505
|
|
8578
8506
|
const passwordDraggableMixin = (superclass) =>
|
8579
8507
|
class PasswordDraggableMixinClass extends superclass {
|
@@ -8614,7 +8542,7 @@ const passwordDraggableMixin = (superclass) =>
|
|
8614
8542
|
}
|
8615
8543
|
};
|
8616
8544
|
|
8617
|
-
const componentName$
|
8545
|
+
const componentName$X = getComponentName$1('password');
|
8618
8546
|
|
8619
8547
|
const customMixin$b = (superclass) =>
|
8620
8548
|
class PasswordFieldMixinClass extends superclass {
|
@@ -8723,7 +8651,7 @@ const customMixin$b = (superclass) =>
|
|
8723
8651
|
};
|
8724
8652
|
|
8725
8653
|
const {
|
8726
|
-
host: host$
|
8654
|
+
host: host$k,
|
8727
8655
|
inputField: inputField$4,
|
8728
8656
|
inputElement: inputElement$2,
|
8729
8657
|
inputElementPlaceholder,
|
@@ -8749,10 +8677,10 @@ const {
|
|
8749
8677
|
const PasswordClass = compose$1(
|
8750
8678
|
createStyleMixin$1({
|
8751
8679
|
mappings: {
|
8752
|
-
hostWidth: { ...host$
|
8753
|
-
hostMinWidth: { ...host$
|
8754
|
-
hostDirection: { ...host$
|
8755
|
-
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],
|
8756
8684
|
fontFamily: [label$6, inputField$4, errorMessage$8, helperText$6],
|
8757
8685
|
inputHeight: { ...inputField$4, property: 'height' },
|
8758
8686
|
inputHorizontalPadding: [
|
@@ -8896,324 +8824,99 @@ const PasswordClass = compose$1(
|
|
8896
8824
|
}
|
8897
8825
|
`,
|
8898
8826
|
excludeAttrsSync: ['tabindex'],
|
8899
|
-
componentName: componentName$
|
8827
|
+
componentName: componentName$X,
|
8900
8828
|
})
|
8901
8829
|
);
|
8902
8830
|
|
8903
|
-
customElements.define(componentName$
|
8831
|
+
customElements.define(componentName$X, PasswordClass);
|
8904
8832
|
|
8905
|
-
const
|
8906
|
-
'blockquote',
|
8907
|
-
'list',
|
8908
|
-
'image',
|
8909
|
-
'table',
|
8910
|
-
'code',
|
8911
|
-
'hr',
|
8912
|
-
'backticks',
|
8913
|
-
'fence',
|
8914
|
-
'reference',
|
8915
|
-
'heading',
|
8916
|
-
'lheading',
|
8917
|
-
'html_block',
|
8918
|
-
];
|
8833
|
+
const componentName$W = getComponentName$1('text-area');
|
8919
8834
|
|
8920
|
-
const
|
8921
|
-
|
8922
|
-
|
8923
|
-
|
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)' },
|
8924
8853
|
};
|
8925
8854
|
|
8926
|
-
|
8927
|
-
|
8928
|
-
|
8929
|
-
|
8930
|
-
|
8931
|
-
|
8932
|
-
|
8933
|
-
|
8934
|
-
|
8935
|
-
|
8936
|
-
|
8937
|
-
|
8938
|
-
|
8939
|
-
|
8940
|
-
|
8941
|
-
|
8942
|
-
|
8943
|
-
|
8944
|
-
|
8945
|
-
:
|
8946
|
-
|
8947
|
-
|
8948
|
-
}
|
8949
|
-
:
|
8950
|
-
|
8951
|
-
|
8952
|
-
}
|
8953
|
-
|
8954
|
-
|
8955
|
-
}
|
8956
|
-
|
8957
|
-
|
8958
|
-
|
8959
|
-
|
8960
|
-
|
8961
|
-
|
8962
|
-
|
8963
|
-
|
8964
|
-
|
8965
|
-
|
8966
|
-
|
8967
|
-
|
8968
|
-
|
8969
|
-
|
8970
|
-
|
8971
|
-
|
8972
|
-
|
8973
|
-
|
8974
|
-
|
8975
|
-
|
8976
|
-
|
8977
|
-
|
8978
|
-
|
8979
|
-
|
8980
|
-
|
8981
|
-
|
8982
|
-
|
8983
|
-
|
8984
|
-
|
8985
|
-
|
8986
|
-
|
8987
|
-
|
8988
|
-
|
8989
|
-
|
8990
|
-
attributeChangedCallback(attrName, oldValue, newValue) {
|
8991
|
-
super.attributeChangedCallback?.(attrName, oldValue, newValue);
|
8992
|
-
|
8993
|
-
if (newValue !== oldValue) {
|
8994
|
-
if (attrName === 'readonly') {
|
8995
|
-
this.onReadOnlyChange(newValue === 'true');
|
8996
|
-
}
|
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
|
+
);
|
8997
8918
|
|
8998
|
-
|
8999
|
-
this.#initProcessor();
|
9000
|
-
}
|
9001
|
-
}
|
9002
|
-
}
|
9003
|
-
|
9004
|
-
// We're overriding the rule for em with single underscore to perform as underline. (_underline_)
|
9005
|
-
customUnderlineRenderer() {
|
9006
|
-
this.processor.renderer.rules.em_open = (tokens, idx, options, env, self) => {
|
9007
|
-
if (tokens[idx].markup === '_') tokens[idx].tag = 'u';
|
9008
|
-
return this.#origEmRenderer(tokens, idx, options, env, self);
|
9009
|
-
};
|
9010
|
-
this.processor.renderer.rules.em_close = (tokens, idx, options, env, self) => {
|
9011
|
-
if (tokens[idx].markup === '_') tokens[idx].tag = 'u';
|
9012
|
-
return this.#origEmRenderer(tokens, idx, options, env, self);
|
9013
|
-
};
|
9014
|
-
}
|
9015
|
-
|
9016
|
-
#customizeLinkRenderer() {
|
9017
|
-
if (this.linkTargetBlank) {
|
9018
|
-
this.processor.renderer.rules.link_open = (tokens, idx, options, env, self) => {
|
9019
|
-
// Add a new `target` attribute, or replace the value of the existing one.
|
9020
|
-
tokens[idx].attrSet('target', '_blank');
|
9021
|
-
// Pass the token to the default renderer.
|
9022
|
-
return this.#origLinkRenderer(tokens, idx, options, env, self);
|
9023
|
-
};
|
9024
|
-
} else {
|
9025
|
-
this.processor.renderer.rules.link_open = this.#origLinkRenderer;
|
9026
|
-
}
|
9027
|
-
}
|
9028
|
-
|
9029
|
-
#disableCustomRules() {
|
9030
|
-
if (!this.processor) {
|
9031
|
-
return;
|
9032
|
-
}
|
9033
|
-
this.processor.disable(disableRules);
|
9034
|
-
}
|
9035
|
-
|
9036
|
-
#updateProcessorRules() {
|
9037
|
-
this.#disableCustomRules();
|
9038
|
-
}
|
9039
|
-
|
9040
|
-
#storeOrigRenderers() {
|
9041
|
-
const defaultLinkRenderer = (tokens, idx, options, _, self) =>
|
9042
|
-
self.renderToken(tokens, idx, options);
|
9043
|
-
this.#origLinkRenderer = this.processor.renderer.rules.link_open || defaultLinkRenderer;
|
9044
|
-
|
9045
|
-
const defaultStrongRenderer = (tokens, idx, options, _, self) =>
|
9046
|
-
self.renderToken(tokens, idx, options);
|
9047
|
-
this.#origEmRenderer = this.processor.renderer.rules.em_open || defaultStrongRenderer;
|
9048
|
-
}
|
9049
|
-
|
9050
|
-
#initProcessor() {
|
9051
|
-
this.processor = new MarkdownIt('commonmark', { html: true });
|
9052
|
-
this.#storeOrigRenderers();
|
9053
|
-
this.#updateProcessorRules();
|
9054
|
-
this.#customizeLinkRenderer();
|
9055
|
-
this.customUnderlineRenderer();
|
9056
|
-
}
|
9057
|
-
|
9058
|
-
get linkTargetBlank() {
|
9059
|
-
return this.getAttribute('link-target-blank') === 'true';
|
9060
|
-
}
|
9061
|
-
|
9062
|
-
get contentNode() {
|
9063
|
-
return this.shadowRoot.querySelector('.content');
|
9064
|
-
}
|
9065
|
-
|
9066
|
-
#parseChildren() {
|
9067
|
-
if (!this.processor) {
|
9068
|
-
return;
|
9069
|
-
}
|
9070
|
-
|
9071
|
-
let html = decodeHTML(this.innerHTML);
|
9072
|
-
|
9073
|
-
if (!html?.trim() && this.isConnected) {
|
9074
|
-
this.setAttribute('empty', 'true');
|
9075
|
-
} else {
|
9076
|
-
this.removeAttribute('empty');
|
9077
|
-
}
|
9078
|
-
|
9079
|
-
try {
|
9080
|
-
const tokens = this.processor.parse(html, { references: undefined });
|
9081
|
-
html = this.processor.renderer.render(tokens, { html: true, breaks: true });
|
9082
|
-
} catch (e) {
|
9083
|
-
// eslint-disable-next-line no-console
|
9084
|
-
console.warn('Not parsing invalid markdown token');
|
9085
|
-
}
|
9086
|
-
|
9087
|
-
this.contentNode.innerHTML = html;
|
9088
|
-
}
|
9089
|
-
|
9090
|
-
onReadOnlyChange(isReadOnly) {
|
9091
|
-
if (isReadOnly) {
|
9092
|
-
this.contentNode.setAttribute('inert', isReadOnly);
|
9093
|
-
} else {
|
9094
|
-
this.contentNode.removeAttribute('inert');
|
9095
|
-
}
|
9096
|
-
}
|
9097
|
-
}
|
9098
|
-
|
9099
|
-
const EnrichedTextClass = compose$1(
|
9100
|
-
createStyleMixin$1({
|
9101
|
-
mappings: {
|
9102
|
-
hostWidth: { selector: () => ':host', property: 'width' },
|
9103
|
-
hostDisplay: { selector: () => ':host', property: 'display', fallback: 'inline-block' },
|
9104
|
-
hostDirection: { selector: () => ':host', property: 'direction' },
|
9105
|
-
fontSize: {},
|
9106
|
-
fontFamily: {},
|
9107
|
-
fontWeight: {},
|
9108
|
-
fontWeightBold: [
|
9109
|
-
{ selector: () => ':host strong', property: 'font-weight' },
|
9110
|
-
{ selector: () => ':host b', property: 'font-weight' },
|
9111
|
-
],
|
9112
|
-
textColor: { property: 'color' },
|
9113
|
-
textLineHeight: { property: 'line-height' },
|
9114
|
-
textAlign: {},
|
9115
|
-
linkColor: { selector: 'a', property: 'color' },
|
9116
|
-
linkTextDecoration: { selector: 'a', property: 'text-decoration' },
|
9117
|
-
linkHoverTextDecoration: { selector: 'a:hover', property: 'text-decoration' },
|
9118
|
-
minHeight: {},
|
9119
|
-
minWidth: {},
|
9120
|
-
},
|
9121
|
-
}),
|
9122
|
-
createStyleMixin$1({ componentNameOverride: getComponentName$1('link') }),
|
9123
|
-
createStyleMixin$1({ componentNameOverride: getComponentName$1('text') }),
|
9124
|
-
draggableMixin$1,
|
9125
|
-
componentNameValidationMixin$1
|
9126
|
-
)(EnrichedText);
|
9127
|
-
|
9128
|
-
customElements.define(componentName$V, EnrichedTextClass);
|
9129
|
-
|
9130
|
-
const componentName$U = getComponentName$1('text-area');
|
9131
|
-
|
9132
|
-
const {
|
9133
|
-
host: host$i,
|
9134
|
-
label: label$5,
|
9135
|
-
placeholder: placeholder$1,
|
9136
|
-
inputField: inputField$3,
|
9137
|
-
textArea: textArea$2,
|
9138
|
-
requiredIndicator: requiredIndicator$5,
|
9139
|
-
helperText: helperText$5,
|
9140
|
-
errorMessage: errorMessage$7,
|
9141
|
-
} = {
|
9142
|
-
host: { selector: () => ':host' },
|
9143
|
-
label: { selector: '::part(label)' },
|
9144
|
-
placeholder: { selector: 'textarea:placeholder-shown' },
|
9145
|
-
inputField: { selector: '::part(input-field)' },
|
9146
|
-
textArea: { selector: '> textarea' },
|
9147
|
-
requiredIndicator: { selector: '[required]::part(required-indicator)::after' },
|
9148
|
-
helperText: { selector: '::part(helper-text)' },
|
9149
|
-
errorMessage: { selector: '::part(error-message)' },
|
9150
|
-
};
|
9151
|
-
|
9152
|
-
const TextAreaClass = compose$1(
|
9153
|
-
createStyleMixin$1({
|
9154
|
-
mappings: {
|
9155
|
-
hostWidth: { ...host$i, property: 'width' },
|
9156
|
-
hostMinWidth: { ...host$i, property: 'min-width' },
|
9157
|
-
hostDirection: { ...host$i, property: 'direction' },
|
9158
|
-
fontSize: [host$i, textArea$2],
|
9159
|
-
fontFamily: [label$5, inputField$3, helperText$5, errorMessage$7],
|
9160
|
-
labelTextColor: [
|
9161
|
-
{ ...label$5, property: 'color' },
|
9162
|
-
{ ...requiredIndicator$5, property: 'color' },
|
9163
|
-
],
|
9164
|
-
labelRequiredIndicator: { ...requiredIndicator$5, property: 'content' },
|
9165
|
-
errorMessageTextColor: { ...errorMessage$7, property: 'color' },
|
9166
|
-
errorMessageIcon: { ...errorMessage$7, property: 'background-image' },
|
9167
|
-
errorMessageIconSize: { ...errorMessage$7, property: 'background-size' },
|
9168
|
-
errorMessageIconPadding: { ...errorMessage$7, property: 'padding-inline-start' },
|
9169
|
-
errorMessageIconRepeat: { ...errorMessage$7, property: 'background-repeat' },
|
9170
|
-
errorMessageIconPosition: { ...errorMessage$7, property: 'background-position' },
|
9171
|
-
errorMessageFontSize: { ...errorMessage$7, property: 'font-size' },
|
9172
|
-
inputBackgroundColor: { ...inputField$3, property: 'background-color' },
|
9173
|
-
inputValueTextColor: { ...textArea$2, property: 'color' },
|
9174
|
-
inputPlaceholderTextColor: { ...placeholder$1, property: 'color' },
|
9175
|
-
inputBorderWidth: { ...inputField$3, property: 'border-width' },
|
9176
|
-
inputBorderStyle: { ...inputField$3, property: 'border-style' },
|
9177
|
-
inputBorderColor: { ...inputField$3, property: 'border-color' },
|
9178
|
-
inputBorderRadius: { ...inputField$3, property: 'border-radius' },
|
9179
|
-
inputOutlineStyle: { ...inputField$3, property: 'outline-Style' },
|
9180
|
-
inputOutlineColor: { ...inputField$3, property: 'outline-color' },
|
9181
|
-
inputOutlineOffset: { ...inputField$3, property: 'outline-offset' },
|
9182
|
-
inputOutlineWidth: { ...inputField$3, property: 'outline-width' },
|
9183
|
-
inputResizeType: { ...textArea$2, property: 'resize' },
|
9184
|
-
inputMinHeight: { ...textArea$2, property: 'min-height' },
|
9185
|
-
inputTextAlign: { ...textArea$2, property: 'text-align' },
|
9186
|
-
},
|
9187
|
-
}),
|
9188
|
-
draggableMixin$1,
|
9189
|
-
composedProxyInputMixin$1({ proxyProps: ['value', 'selectionStart'] }),
|
9190
|
-
componentNameValidationMixin$1
|
9191
|
-
)(
|
9192
|
-
createProxy$1({
|
9193
|
-
slots: [],
|
9194
|
-
wrappedEleName: 'vaadin-text-area',
|
9195
|
-
style: () => `
|
9196
|
-
:host {
|
9197
|
-
display: inline-block;
|
9198
|
-
max-width: 100%;
|
9199
|
-
box-sizing: border-box;
|
9200
|
-
}
|
9201
|
-
textarea {
|
9202
|
-
height: 100%;
|
9203
|
-
}
|
9204
|
-
${resetInputLabelPosition('vaadin-text-area')}
|
9205
|
-
${useHostExternalPadding(TextAreaClass.cssVarList)}
|
9206
|
-
${resetInputContainer('vaadin-text-area')}
|
9207
|
-
${resetInputField('vaadin-text-area')}
|
9208
|
-
${resetInputPlaceholder('vaadin-text-area', 'textarea')}
|
9209
|
-
${resetInputCursor('vaadin-text-area')}
|
9210
|
-
`,
|
9211
|
-
excludeAttrsSync: ['tabindex'],
|
9212
|
-
componentName: componentName$U,
|
9213
|
-
})
|
9214
|
-
);
|
9215
|
-
|
9216
|
-
customElements.define(componentName$U, TextAreaClass);
|
8919
|
+
customElements.define(componentName$W, TextAreaClass);
|
9217
8920
|
|
9218
8921
|
var CountryCodes = [
|
9219
8922
|
// United States should be the first option
|
@@ -10476,7 +10179,7 @@ const parsePhoneNumber = (val) => {
|
|
10476
10179
|
return [countryCode, phoneNumber];
|
10477
10180
|
};
|
10478
10181
|
|
10479
|
-
const componentName$
|
10182
|
+
const componentName$V = getComponentName$1('phone-field-internal');
|
10480
10183
|
|
10481
10184
|
const commonAttrs$1 = ['disabled', 'size', 'bordered', 'readonly'];
|
10482
10185
|
const countryAttrs = ['country-input-placeholder', 'default-code', 'restrict-countries'];
|
@@ -10490,7 +10193,7 @@ const mapAttrs$1 = {
|
|
10490
10193
|
|
10491
10194
|
const inputRelatedAttrs$1 = [].concat(commonAttrs$1, countryAttrs, phoneAttrs, labelTypeAttrs);
|
10492
10195
|
|
10493
|
-
const BaseInputClass$8 = createBaseInputClass$1({ componentName: componentName$
|
10196
|
+
const BaseInputClass$8 = createBaseInputClass$1({ componentName: componentName$V, baseSelector: 'div' });
|
10494
10197
|
|
10495
10198
|
let PhoneFieldInternal$1 = class PhoneFieldInternal extends BaseInputClass$8 {
|
10496
10199
|
static get observedAttributes() {
|
@@ -10847,12 +10550,12 @@ let PhoneFieldInternal$1 = class PhoneFieldInternal extends BaseInputClass$8 {
|
|
10847
10550
|
}
|
10848
10551
|
};
|
10849
10552
|
|
10850
|
-
customElements.define(componentName$
|
10553
|
+
customElements.define(componentName$V, PhoneFieldInternal$1);
|
10851
10554
|
|
10852
10555
|
const textVars$2 = TextFieldClass.cssVarList;
|
10853
10556
|
const comboVars = ComboBoxClass.cssVarList;
|
10854
10557
|
|
10855
|
-
const componentName$
|
10558
|
+
const componentName$U = getComponentName$1('phone-field');
|
10856
10559
|
|
10857
10560
|
const customMixin$a = (superclass) =>
|
10858
10561
|
class PhoneFieldMixinClass extends superclass {
|
@@ -10866,15 +10569,15 @@ const customMixin$a = (superclass) =>
|
|
10866
10569
|
const template = document.createElement('template');
|
10867
10570
|
|
10868
10571
|
template.innerHTML = `
|
10869
|
-
<${componentName$
|
10572
|
+
<${componentName$V}
|
10870
10573
|
tabindex="-1"
|
10871
10574
|
slot="input"
|
10872
|
-
></${componentName$
|
10575
|
+
></${componentName$V}>
|
10873
10576
|
`;
|
10874
10577
|
|
10875
10578
|
this.baseElement.appendChild(template.content.cloneNode(true));
|
10876
10579
|
|
10877
|
-
this.inputElement = this.shadowRoot.querySelector(componentName$
|
10580
|
+
this.inputElement = this.shadowRoot.querySelector(componentName$V);
|
10878
10581
|
|
10879
10582
|
forwardAttrs$1(this.shadowRoot.host, this.inputElement, {
|
10880
10583
|
includeAttrs: [
|
@@ -10918,7 +10621,7 @@ const customMixin$a = (superclass) =>
|
|
10918
10621
|
};
|
10919
10622
|
|
10920
10623
|
const {
|
10921
|
-
host: host$
|
10624
|
+
host: host$i,
|
10922
10625
|
label: label$4,
|
10923
10626
|
requiredIndicator: requiredIndicator$4,
|
10924
10627
|
inputField: inputField$2,
|
@@ -10945,7 +10648,7 @@ const PhoneFieldClass = compose$1(
|
|
10945
10648
|
createStyleMixin$1({
|
10946
10649
|
mappings: {
|
10947
10650
|
fontSize: [
|
10948
|
-
host$
|
10651
|
+
host$i,
|
10949
10652
|
inputField$2,
|
10950
10653
|
{
|
10951
10654
|
selector: TextFieldClass.componentName,
|
@@ -10966,11 +10669,11 @@ const PhoneFieldClass = compose$1(
|
|
10966
10669
|
},
|
10967
10670
|
],
|
10968
10671
|
hostWidth: [
|
10969
|
-
{ ...host$
|
10672
|
+
{ ...host$i, property: 'width' },
|
10970
10673
|
{ ...phoneInput$1, property: 'width' },
|
10971
10674
|
{ ...countryCodeInput, property: '--vaadin-combo-box-overlay-width' },
|
10972
10675
|
],
|
10973
|
-
hostDirection: { ...host$
|
10676
|
+
hostDirection: { ...host$i, property: 'direction' },
|
10974
10677
|
|
10975
10678
|
inputBorderStyle: [
|
10976
10679
|
{ ...internalAfter, property: 'border-style' },
|
@@ -11146,11 +10849,11 @@ const PhoneFieldClass = compose$1(
|
|
11146
10849
|
${resetInputLabelPosition('vaadin-text-field')}
|
11147
10850
|
`,
|
11148
10851
|
excludeAttrsSync: ['tabindex'],
|
11149
|
-
componentName: componentName$
|
10852
|
+
componentName: componentName$U,
|
11150
10853
|
})
|
11151
10854
|
);
|
11152
10855
|
|
11153
|
-
customElements.define(componentName$
|
10856
|
+
customElements.define(componentName$U, PhoneFieldClass);
|
11154
10857
|
|
11155
10858
|
const getCountryByCodeId = (countryCode) => {
|
11156
10859
|
return CountryCodes.find((c) => c.code === countryCode)?.dialCode;
|
@@ -11162,7 +10865,7 @@ const matchingParenthesis = (val) => {
|
|
11162
10865
|
return openParenMatches?.length === closeParenMatches?.length;
|
11163
10866
|
};
|
11164
10867
|
|
11165
|
-
const componentName$
|
10868
|
+
const componentName$T = getComponentName$1('phone-field-internal-input-box');
|
11166
10869
|
|
11167
10870
|
const observedAttributes$3 = [
|
11168
10871
|
'disabled',
|
@@ -11178,7 +10881,7 @@ const mapAttrs = {
|
|
11178
10881
|
'phone-input-placeholder': 'placeholder',
|
11179
10882
|
};
|
11180
10883
|
|
11181
|
-
const BaseInputClass$7 = createBaseInputClass$1({ componentName: componentName$
|
10884
|
+
const BaseInputClass$7 = createBaseInputClass$1({ componentName: componentName$T, baseSelector: 'div' });
|
11182
10885
|
|
11183
10886
|
class PhoneFieldInternal extends BaseInputClass$7 {
|
11184
10887
|
static get observedAttributes() {
|
@@ -11424,11 +11127,11 @@ class PhoneFieldInternal extends BaseInputClass$7 {
|
|
11424
11127
|
}
|
11425
11128
|
}
|
11426
11129
|
|
11427
|
-
customElements.define(componentName$
|
11130
|
+
customElements.define(componentName$T, PhoneFieldInternal);
|
11428
11131
|
|
11429
11132
|
const textVars$1 = TextFieldClass.cssVarList;
|
11430
11133
|
|
11431
|
-
const componentName$
|
11134
|
+
const componentName$S = getComponentName$1('phone-input-box-field');
|
11432
11135
|
|
11433
11136
|
const customMixin$9 = (superclass) =>
|
11434
11137
|
class PhoneFieldInputBoxMixinClass extends superclass {
|
@@ -11442,15 +11145,15 @@ const customMixin$9 = (superclass) =>
|
|
11442
11145
|
const template = document.createElement('template');
|
11443
11146
|
|
11444
11147
|
template.innerHTML = `
|
11445
|
-
<${componentName$
|
11148
|
+
<${componentName$T}
|
11446
11149
|
tabindex="-1"
|
11447
11150
|
slot="input"
|
11448
|
-
></${componentName$
|
11151
|
+
></${componentName$T}>
|
11449
11152
|
`;
|
11450
11153
|
|
11451
11154
|
this.baseElement.appendChild(template.content.cloneNode(true));
|
11452
11155
|
|
11453
|
-
this.inputElement = this.shadowRoot.querySelector(componentName$
|
11156
|
+
this.inputElement = this.shadowRoot.querySelector(componentName$T);
|
11454
11157
|
|
11455
11158
|
forwardAttrs$1(this.shadowRoot.host, this.inputElement, {
|
11456
11159
|
includeAttrs: [
|
@@ -11477,7 +11180,7 @@ const customMixin$9 = (superclass) =>
|
|
11477
11180
|
};
|
11478
11181
|
|
11479
11182
|
const {
|
11480
|
-
host: host$
|
11183
|
+
host: host$h,
|
11481
11184
|
label: label$3,
|
11482
11185
|
inputElement: inputElement$1,
|
11483
11186
|
requiredIndicator: requiredIndicator$3,
|
@@ -11508,7 +11211,7 @@ const PhoneFieldInputBoxClass = compose$1(
|
|
11508
11211
|
createStyleMixin$1({
|
11509
11212
|
mappings: {
|
11510
11213
|
fontSize: [
|
11511
|
-
host$
|
11214
|
+
host$h,
|
11512
11215
|
inputField$1,
|
11513
11216
|
{
|
11514
11217
|
selector: TextFieldClass.componentName,
|
@@ -11516,9 +11219,9 @@ const PhoneFieldInputBoxClass = compose$1(
|
|
11516
11219
|
},
|
11517
11220
|
],
|
11518
11221
|
fontFamily: [label$3, errorMessage$5, helperText$3],
|
11519
|
-
hostWidth: { ...host$
|
11520
|
-
hostMinWidth: { ...host$
|
11521
|
-
hostDirection: { ...host$
|
11222
|
+
hostWidth: { ...host$h, property: 'width' },
|
11223
|
+
hostMinWidth: { ...host$h, property: 'min-width' },
|
11224
|
+
hostDirection: { ...host$h, property: 'direction' },
|
11522
11225
|
|
11523
11226
|
inputHorizontalPadding: [
|
11524
11227
|
{ ...phoneInput, property: 'padding-left' },
|
@@ -11654,20 +11357,20 @@ const PhoneFieldInputBoxClass = compose$1(
|
|
11654
11357
|
${inputFloatingLabelStyle()}
|
11655
11358
|
`,
|
11656
11359
|
excludeAttrsSync: ['tabindex'],
|
11657
|
-
componentName: componentName$
|
11360
|
+
componentName: componentName$S,
|
11658
11361
|
})
|
11659
11362
|
);
|
11660
11363
|
|
11661
|
-
customElements.define(componentName$
|
11364
|
+
customElements.define(componentName$S, PhoneFieldInputBoxClass);
|
11662
11365
|
|
11663
|
-
const componentName$
|
11366
|
+
const componentName$R = getComponentName$1('new-password-internal');
|
11664
11367
|
|
11665
11368
|
const interpolateString = (template, values) =>
|
11666
11369
|
template.replace(/{{(\w+)+}}/g, (match, key) => values?.[key] || match);
|
11667
11370
|
|
11668
11371
|
// eslint-disable-next-line max-classes-per-file
|
11669
11372
|
|
11670
|
-
const componentName$
|
11373
|
+
const componentName$Q = getComponentName$1('policy-validation');
|
11671
11374
|
|
11672
11375
|
const overrideAttrs = [
|
11673
11376
|
'data-password-policy-value-minlength',
|
@@ -11677,7 +11380,7 @@ const overrideAttrs = [
|
|
11677
11380
|
const dataAttrs = ['data', 'active-policies', 'overrides', ...overrideAttrs];
|
11678
11381
|
const policyAttrs = ['label', 'value', ...dataAttrs];
|
11679
11382
|
|
11680
|
-
class RawPolicyValidation extends createBaseClass$1({ componentName: componentName$
|
11383
|
+
class RawPolicyValidation extends createBaseClass$1({ componentName: componentName$Q, baseSelector: ':host > div' }) {
|
11681
11384
|
#availablePolicies;
|
11682
11385
|
|
11683
11386
|
#activePolicies = [];
|
@@ -11914,7 +11617,7 @@ class RawPolicyValidation extends createBaseClass$1({ componentName: componentNa
|
|
11914
11617
|
}
|
11915
11618
|
}
|
11916
11619
|
|
11917
|
-
const { host: host$
|
11620
|
+
const { host: host$g, item, symbolDefault, symbolSuccess, symbolError } = {
|
11918
11621
|
host: { selector: () => ':host > div' },
|
11919
11622
|
item: { selector: () => '.item' },
|
11920
11623
|
symbolDefault: { selector: () => '.item[data-valid="none"]::before' },
|
@@ -11930,13 +11633,13 @@ const PolicyValidationClass = compose$1(
|
|
11930
11633
|
fontSize: {},
|
11931
11634
|
fontFamily: {},
|
11932
11635
|
padding: {},
|
11933
|
-
borderWidth: { ...host$
|
11934
|
-
borderStyle: { ...host$
|
11935
|
-
borderColor: { ...host$
|
11936
|
-
borderRadius: { ...host$
|
11937
|
-
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' },
|
11938
11641
|
textColor: { property: 'color' },
|
11939
|
-
labelMargin: { ...host$
|
11642
|
+
labelMargin: { ...host$g, property: 'gap' },
|
11940
11643
|
itemsSpacing: { ...item, property: 'line-height' },
|
11941
11644
|
itemSymbolSuccessColor: { ...symbolSuccess, property: 'color' },
|
11942
11645
|
itemSymbolErrorColor: { ...symbolError, property: 'color' },
|
@@ -11949,7 +11652,7 @@ const PolicyValidationClass = compose$1(
|
|
11949
11652
|
componentNameValidationMixin$1
|
11950
11653
|
)(RawPolicyValidation);
|
11951
11654
|
|
11952
|
-
const componentName$
|
11655
|
+
const componentName$P = getComponentName$1('new-password');
|
11953
11656
|
|
11954
11657
|
const policyPreviewVars = PolicyValidationClass.cssVarList;
|
11955
11658
|
|
@@ -11963,18 +11666,18 @@ const customMixin$8 = (superclass) =>
|
|
11963
11666
|
const externalInputAttr = this.getAttribute('external-input');
|
11964
11667
|
|
11965
11668
|
template.innerHTML = `
|
11966
|
-
<${componentName$
|
11669
|
+
<${componentName$R}
|
11967
11670
|
name="new-password"
|
11968
11671
|
tabindex="-1"
|
11969
11672
|
slot="input"
|
11970
11673
|
external-input="${externalInputAttr}"
|
11971
11674
|
>
|
11972
|
-
</${componentName$
|
11675
|
+
</${componentName$R}>
|
11973
11676
|
`;
|
11974
11677
|
|
11975
11678
|
this.baseElement.appendChild(template.content.cloneNode(true));
|
11976
11679
|
|
11977
|
-
this.inputElement = this.shadowRoot.querySelector(componentName$
|
11680
|
+
this.inputElement = this.shadowRoot.querySelector(componentName$R);
|
11978
11681
|
|
11979
11682
|
if (this.getAttribute('external-input') === 'true') {
|
11980
11683
|
this.initExternalInput();
|
@@ -12037,7 +11740,7 @@ const customMixin$8 = (superclass) =>
|
|
12037
11740
|
};
|
12038
11741
|
|
12039
11742
|
const {
|
12040
|
-
host: host$
|
11743
|
+
host: host$f,
|
12041
11744
|
label: label$2,
|
12042
11745
|
internalInputsWrapper,
|
12043
11746
|
errorMessage: errorMessage$4,
|
@@ -12058,7 +11761,7 @@ const NewPasswordClass = compose$1(
|
|
12058
11761
|
createStyleMixin$1({
|
12059
11762
|
mappings: {
|
12060
11763
|
fontSize: [
|
12061
|
-
host$
|
11764
|
+
host$f,
|
12062
11765
|
{},
|
12063
11766
|
{
|
12064
11767
|
selector: PasswordClass.componentName,
|
@@ -12076,13 +11779,13 @@ const NewPasswordClass = compose$1(
|
|
12076
11779
|
errorMessageIconRepeat: { ...errorMessage$4, property: 'background-repeat' },
|
12077
11780
|
errorMessageIconPosition: { ...errorMessage$4, property: 'background-position' },
|
12078
11781
|
errorMessageFontSize: { ...errorMessage$4, property: 'font-size' },
|
12079
|
-
hostWidth: { ...host$
|
12080
|
-
hostMinWidth: { ...host$
|
11782
|
+
hostWidth: { ...host$f, property: 'width' },
|
11783
|
+
hostMinWidth: { ...host$f, property: 'min-width' },
|
12081
11784
|
hostDirection: [
|
12082
|
-
{ ...host$
|
11785
|
+
{ ...host$f, property: 'direction' },
|
12083
11786
|
{ ...passwordInput, property: PasswordClass.cssVarList.hostDirection },
|
12084
11787
|
],
|
12085
|
-
inputsRequiredIndicator: { ...host$
|
11788
|
+
inputsRequiredIndicator: { ...host$f, property: 'content' },
|
12086
11789
|
spaceBetweenInputs: { ...internalInputsWrapper, property: 'gap' },
|
12087
11790
|
policyPreviewBackgroundColor: {
|
12088
11791
|
...policyPreview,
|
@@ -12158,11 +11861,11 @@ const NewPasswordClass = compose$1(
|
|
12158
11861
|
}
|
12159
11862
|
`,
|
12160
11863
|
excludeAttrsSync: ['tabindex'],
|
12161
|
-
componentName: componentName$
|
11864
|
+
componentName: componentName$P,
|
12162
11865
|
})
|
12163
11866
|
);
|
12164
11867
|
|
12165
|
-
customElements.define(componentName$
|
11868
|
+
customElements.define(componentName$Q, PolicyValidationClass);
|
12166
11869
|
|
12167
11870
|
const passwordAttrPrefixRegex = /^password-/;
|
12168
11871
|
const confirmAttrPrefixRegex = /^confirm-/;
|
@@ -12202,7 +11905,7 @@ const inputRelatedAttrs = [].concat(
|
|
12202
11905
|
policyPanelAttrs
|
12203
11906
|
);
|
12204
11907
|
|
12205
|
-
const BaseInputClass$6 = createBaseInputClass$1({ componentName: componentName$
|
11908
|
+
const BaseInputClass$6 = createBaseInputClass$1({ componentName: componentName$R, baseSelector: 'div' });
|
12206
11909
|
|
12207
11910
|
class NewPasswordInternal extends BaseInputClass$6 {
|
12208
11911
|
static get observedAttributes() {
|
@@ -12448,16 +12151,16 @@ class NewPasswordInternal extends BaseInputClass$6 {
|
|
12448
12151
|
}
|
12449
12152
|
}
|
12450
12153
|
|
12451
|
-
customElements.define(componentName$
|
12154
|
+
customElements.define(componentName$R, NewPasswordInternal);
|
12452
12155
|
|
12453
|
-
customElements.define(componentName$
|
12156
|
+
customElements.define(componentName$P, NewPasswordClass);
|
12454
12157
|
|
12455
|
-
const componentName$
|
12158
|
+
const componentName$O = getComponentName$1('recaptcha');
|
12456
12159
|
|
12457
12160
|
const observedAttributes$2 = ['enabled', 'site-key', 'action', 'enterprise'];
|
12458
12161
|
|
12459
12162
|
const BaseClass$3 = createBaseClass$1({
|
12460
|
-
componentName: componentName$
|
12163
|
+
componentName: componentName$O,
|
12461
12164
|
baseSelector: ':host > div',
|
12462
12165
|
});
|
12463
12166
|
class RawRecaptcha extends BaseClass$3 {
|
@@ -12682,7 +12385,7 @@ class RawRecaptcha extends BaseClass$3 {
|
|
12682
12385
|
|
12683
12386
|
const RecaptchaClass = compose$1(draggableMixin$1)(RawRecaptcha);
|
12684
12387
|
|
12685
|
-
customElements.define(componentName$
|
12388
|
+
customElements.define(componentName$O, RecaptchaClass);
|
12686
12389
|
|
12687
12390
|
const getFileBase64 = (fileObj) => {
|
12688
12391
|
return new Promise((resolve) => {
|
@@ -12696,7 +12399,7 @@ const getFilename = (fileObj) => {
|
|
12696
12399
|
return fileObj.name.replace(/^.*\\/, '');
|
12697
12400
|
};
|
12698
12401
|
|
12699
|
-
const componentName$
|
12402
|
+
const componentName$N = getComponentName$1('upload-file');
|
12700
12403
|
|
12701
12404
|
const observedAttributes$1 = [
|
12702
12405
|
'title',
|
@@ -12711,7 +12414,7 @@ const observedAttributes$1 = [
|
|
12711
12414
|
'icon',
|
12712
12415
|
];
|
12713
12416
|
|
12714
|
-
const BaseInputClass$5 = createBaseInputClass$1({ componentName: componentName$
|
12417
|
+
const BaseInputClass$5 = createBaseInputClass$1({ componentName: componentName$N, baseSelector: ':host > div' });
|
12715
12418
|
|
12716
12419
|
class RawUploadFile extends BaseInputClass$5 {
|
12717
12420
|
static get observedAttributes() {
|
@@ -12887,7 +12590,7 @@ class RawUploadFile extends BaseInputClass$5 {
|
|
12887
12590
|
}
|
12888
12591
|
|
12889
12592
|
const buttonVars = ButtonClass.cssVarList;
|
12890
|
-
const { host: host$
|
12593
|
+
const { host: host$e, wrapper: wrapper$1, icon: icon$4, title: title$1, description, requiredIndicator: requiredIndicator$2 } = {
|
12891
12594
|
host: { selector: () => ':host' },
|
12892
12595
|
wrapper: { selector: () => ':host > div' },
|
12893
12596
|
icon: { selector: () => '::slotted(*)' },
|
@@ -12906,15 +12609,15 @@ const UploadFileClass = compose$1(
|
|
12906
12609
|
borderWidth: {},
|
12907
12610
|
borderStyle: {},
|
12908
12611
|
borderRadius: {},
|
12909
|
-
hostHeight: { ...host$
|
12910
|
-
hostWidth: { ...host$
|
12612
|
+
hostHeight: { ...host$e, property: 'height' },
|
12613
|
+
hostWidth: { ...host$e, property: 'width' },
|
12911
12614
|
hostPadding: { property: 'padding' },
|
12912
12615
|
hostDirection: [
|
12913
|
-
{ ...host$
|
12616
|
+
{ ...host$e, property: 'direction' },
|
12914
12617
|
{ selector: () => ButtonClass.componentName, property: buttonVars.hostDirection },
|
12915
12618
|
],
|
12916
|
-
gap: { ...wrapper },
|
12917
|
-
lineHeight: { ...wrapper, property: 'line-height' },
|
12619
|
+
gap: { ...wrapper$1 },
|
12620
|
+
lineHeight: { ...wrapper$1, property: 'line-height' },
|
12918
12621
|
titleFontSize: { ...title$1, property: 'font-size' },
|
12919
12622
|
titleFontWeight: { ...title$1, property: 'font-weight' },
|
12920
12623
|
descriptionFontSize: { ...description, property: 'font-size' },
|
@@ -12930,7 +12633,7 @@ const UploadFileClass = compose$1(
|
|
12930
12633
|
componentNameValidationMixin$1
|
12931
12634
|
)(RawUploadFile);
|
12932
12635
|
|
12933
|
-
customElements.define(componentName$
|
12636
|
+
customElements.define(componentName$N, UploadFileClass);
|
12934
12637
|
|
12935
12638
|
const createBaseButtonSelectionGroupInternalClass = (componentName) => {
|
12936
12639
|
class BaseButtonSelectionGroupInternalClass extends createBaseInputClass$1({
|
@@ -13020,10 +12723,10 @@ const createBaseButtonSelectionGroupInternalClass = (componentName) => {
|
|
13020
12723
|
return BaseButtonSelectionGroupInternalClass;
|
13021
12724
|
};
|
13022
12725
|
|
13023
|
-
const componentName$
|
12726
|
+
const componentName$M = getComponentName$1('button-selection-group-internal');
|
13024
12727
|
|
13025
12728
|
class ButtonSelectionGroupInternalClass extends createBaseButtonSelectionGroupInternalClass(
|
13026
|
-
componentName$
|
12729
|
+
componentName$M
|
13027
12730
|
) {
|
13028
12731
|
getSelectedNode() {
|
13029
12732
|
return this.items.find((item) => item.hasAttribute('selected'));
|
@@ -13179,7 +12882,7 @@ const buttonSelectionGroupBaseMixin = (superclass) =>
|
|
13179
12882
|
}
|
13180
12883
|
};
|
13181
12884
|
|
13182
|
-
const { host: host$
|
12885
|
+
const { host: host$d, label: label$1, requiredIndicator: requiredIndicator$1, internalWrapper, errorMessage: errorMessage$3 } = {
|
13183
12886
|
host: { selector: () => ':host' },
|
13184
12887
|
label: { selector: '::part(label)' },
|
13185
12888
|
requiredIndicator: { selector: '[required]::part(required-indicator)::after' },
|
@@ -13188,9 +12891,9 @@ const { host: host$c, label: label$1, requiredIndicator: requiredIndicator$1, in
|
|
13188
12891
|
};
|
13189
12892
|
|
13190
12893
|
const buttonSelectionGroupMappings = {
|
13191
|
-
hostWidth: { ...host$
|
13192
|
-
hostDirection: { ...host$
|
13193
|
-
fontFamily: host$
|
12894
|
+
hostWidth: { ...host$d, property: 'width' },
|
12895
|
+
hostDirection: { ...host$d, property: 'direction' },
|
12896
|
+
fontFamily: host$d,
|
13194
12897
|
labelTextColor: [
|
13195
12898
|
{ ...label$1, property: 'color' },
|
13196
12899
|
{ ...requiredIndicator$1, property: 'color' },
|
@@ -13268,7 +12971,7 @@ const buttonSelectionGroupStyles = `
|
|
13268
12971
|
${resetInputCursor('vaadin-text-field')}
|
13269
12972
|
`;
|
13270
12973
|
|
13271
|
-
const componentName$
|
12974
|
+
const componentName$L = getComponentName$1('button-selection-group');
|
13272
12975
|
|
13273
12976
|
const buttonSelectionGroupMixin = (superclass) =>
|
13274
12977
|
class ButtonMultiSelectionGroupMixinClass extends superclass {
|
@@ -13277,19 +12980,19 @@ const buttonSelectionGroupMixin = (superclass) =>
|
|
13277
12980
|
const template = document.createElement('template');
|
13278
12981
|
|
13279
12982
|
template.innerHTML = `
|
13280
|
-
<${componentName$
|
12983
|
+
<${componentName$M}
|
13281
12984
|
name="button-selection-group"
|
13282
12985
|
slot="input"
|
13283
12986
|
tabindex="-1"
|
13284
12987
|
part="internal-component"
|
13285
12988
|
>
|
13286
12989
|
<slot></slot>
|
13287
|
-
</${componentName$
|
12990
|
+
</${componentName$M}>
|
13288
12991
|
`;
|
13289
12992
|
|
13290
12993
|
this.baseElement.appendChild(template.content.cloneNode(true));
|
13291
12994
|
|
13292
|
-
this.inputElement = this.shadowRoot.querySelector(componentName$
|
12995
|
+
this.inputElement = this.shadowRoot.querySelector(componentName$M);
|
13293
12996
|
|
13294
12997
|
forwardAttrs$1(this, this.inputElement, {
|
13295
12998
|
includeAttrs: ['size', 'default-value', 'allow-deselect'],
|
@@ -13314,16 +13017,16 @@ const ButtonSelectionGroupClass = compose$1(
|
|
13314
13017
|
wrappedEleName: 'vaadin-text-field',
|
13315
13018
|
style: () => buttonSelectionGroupStyles,
|
13316
13019
|
excludeAttrsSync: ['tabindex'],
|
13317
|
-
componentName: componentName$
|
13020
|
+
componentName: componentName$L,
|
13318
13021
|
})
|
13319
13022
|
);
|
13320
13023
|
|
13321
|
-
customElements.define(componentName$
|
13024
|
+
customElements.define(componentName$M, ButtonSelectionGroupInternalClass);
|
13322
13025
|
|
13323
|
-
const componentName$
|
13026
|
+
const componentName$K = getComponentName$1('button-selection-group-item');
|
13324
13027
|
|
13325
13028
|
class RawSelectItem extends createBaseClass$1({
|
13326
|
-
componentName: componentName$
|
13029
|
+
componentName: componentName$K,
|
13327
13030
|
baseSelector: ':host > descope-button',
|
13328
13031
|
}) {
|
13329
13032
|
get size() {
|
@@ -13434,14 +13137,14 @@ const ButtonSelectionGroupItemClass = compose$1(
|
|
13434
13137
|
componentNameValidationMixin$1
|
13435
13138
|
)(RawSelectItem);
|
13436
13139
|
|
13437
|
-
customElements.define(componentName$
|
13140
|
+
customElements.define(componentName$K, ButtonSelectionGroupItemClass);
|
13438
13141
|
|
13439
|
-
customElements.define(componentName$
|
13142
|
+
customElements.define(componentName$L, ButtonSelectionGroupClass);
|
13440
13143
|
|
13441
|
-
const componentName$
|
13144
|
+
const componentName$J = getComponentName$1('button-multi-selection-group-internal');
|
13442
13145
|
|
13443
13146
|
class ButtonMultiSelectionGroupInternalClass extends createBaseButtonSelectionGroupInternalClass(
|
13444
|
-
componentName$
|
13147
|
+
componentName$J
|
13445
13148
|
) {
|
13446
13149
|
#getSelectedNodes() {
|
13447
13150
|
return this.items.filter((item) => item.hasAttribute('selected'));
|
@@ -13544,7 +13247,7 @@ class ButtonMultiSelectionGroupInternalClass extends createBaseButtonSelectionGr
|
|
13544
13247
|
}
|
13545
13248
|
}
|
13546
13249
|
|
13547
|
-
const componentName$
|
13250
|
+
const componentName$I = getComponentName$1('button-multi-selection-group');
|
13548
13251
|
|
13549
13252
|
const buttonMultiSelectionGroupMixin = (superclass) =>
|
13550
13253
|
class ButtonMultiSelectionGroupMixinClass extends superclass {
|
@@ -13553,19 +13256,19 @@ const buttonMultiSelectionGroupMixin = (superclass) =>
|
|
13553
13256
|
const template = document.createElement('template');
|
13554
13257
|
|
13555
13258
|
template.innerHTML = `
|
13556
|
-
<${componentName$
|
13259
|
+
<${componentName$J}
|
13557
13260
|
name="button-selection-group"
|
13558
13261
|
slot="input"
|
13559
13262
|
tabindex="-1"
|
13560
13263
|
part="internal-component"
|
13561
13264
|
>
|
13562
13265
|
<slot></slot>
|
13563
|
-
</${componentName$
|
13266
|
+
</${componentName$J}>
|
13564
13267
|
`;
|
13565
13268
|
|
13566
13269
|
this.baseElement.appendChild(template.content.cloneNode(true));
|
13567
13270
|
|
13568
|
-
this.inputElement = this.shadowRoot.querySelector(componentName$
|
13271
|
+
this.inputElement = this.shadowRoot.querySelector(componentName$J);
|
13569
13272
|
|
13570
13273
|
forwardAttrs$1(this, this.inputElement, {
|
13571
13274
|
includeAttrs: ['size', 'default-values', 'min-items-selection', 'max-items-selection'],
|
@@ -13590,13 +13293,13 @@ const ButtonMultiSelectionGroupClass = compose$1(
|
|
13590
13293
|
wrappedEleName: 'vaadin-text-field',
|
13591
13294
|
style: () => buttonSelectionGroupStyles,
|
13592
13295
|
excludeAttrsSync: ['tabindex'],
|
13593
|
-
componentName: componentName$
|
13296
|
+
componentName: componentName$I,
|
13594
13297
|
})
|
13595
13298
|
);
|
13596
13299
|
|
13597
|
-
customElements.define(componentName$
|
13300
|
+
customElements.define(componentName$J, ButtonMultiSelectionGroupInternalClass);
|
13598
13301
|
|
13599
|
-
customElements.define(componentName$
|
13302
|
+
customElements.define(componentName$I, ButtonMultiSelectionGroupClass);
|
13600
13303
|
|
13601
13304
|
/* eslint-disable no-param-reassign */
|
13602
13305
|
|
@@ -13624,9 +13327,9 @@ class GridTextColumnClass extends GridSortColumn {
|
|
13624
13327
|
}
|
13625
13328
|
}
|
13626
13329
|
|
13627
|
-
const componentName$
|
13330
|
+
const componentName$H = getComponentName$1('grid-text-column');
|
13628
13331
|
|
13629
|
-
customElements.define(componentName$
|
13332
|
+
customElements.define(componentName$H, GridTextColumnClass);
|
13630
13333
|
|
13631
13334
|
/* eslint-disable no-param-reassign */
|
13632
13335
|
|
@@ -13661,9 +13364,9 @@ class GridCustomColumnClass extends GridTextColumnClass {
|
|
13661
13364
|
|
13662
13365
|
/* eslint-disable no-param-reassign */
|
13663
13366
|
|
13664
|
-
const componentName$
|
13367
|
+
const componentName$G = getComponentName$1('grid-custom-column');
|
13665
13368
|
|
13666
|
-
customElements.define(componentName$
|
13369
|
+
customElements.define(componentName$G, GridCustomColumnClass);
|
13667
13370
|
|
13668
13371
|
const createCheckboxEle = () => {
|
13669
13372
|
const checkbox = document.createElement('descope-checkbox');
|
@@ -13722,9 +13425,9 @@ class GridSelectionColumnClass extends GridSelectionColumn {
|
|
13722
13425
|
}
|
13723
13426
|
}
|
13724
13427
|
|
13725
|
-
const componentName$
|
13428
|
+
const componentName$F = getComponentName$1('grid-selection-column');
|
13726
13429
|
|
13727
|
-
customElements.define(componentName$
|
13430
|
+
customElements.define(componentName$F, GridSelectionColumnClass);
|
13728
13431
|
|
13729
13432
|
/* eslint-disable no-param-reassign */
|
13730
13433
|
|
@@ -13763,9 +13466,9 @@ class GridItemDetailsColumnClass extends GridSortColumn {
|
|
13763
13466
|
}
|
13764
13467
|
}
|
13765
13468
|
|
13766
|
-
const componentName$
|
13469
|
+
const componentName$E = getComponentName$1('grid-item-details-column');
|
13767
13470
|
|
13768
|
-
customElements.define(componentName$
|
13471
|
+
customElements.define(componentName$E, GridItemDetailsColumnClass);
|
13769
13472
|
|
13770
13473
|
const decode = (input) => {
|
13771
13474
|
const txt = document.createElement('textarea');
|
@@ -13777,9 +13480,9 @@ const tpl = (input, inline) => {
|
|
13777
13480
|
return inline ? input : `<pre>${input}</pre>`;
|
13778
13481
|
};
|
13779
13482
|
|
13780
|
-
const componentName$
|
13483
|
+
const componentName$D = getComponentName$1('code-snippet');
|
13781
13484
|
|
13782
|
-
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' }) {
|
13783
13486
|
static get observedAttributes() {
|
13784
13487
|
return ['lang', 'inline'];
|
13785
13488
|
}
|
@@ -13899,7 +13602,7 @@ const {
|
|
13899
13602
|
addition,
|
13900
13603
|
deletion,
|
13901
13604
|
charEscape,
|
13902
|
-
link: link$
|
13605
|
+
link: link$3,
|
13903
13606
|
params,
|
13904
13607
|
property,
|
13905
13608
|
punctuation,
|
@@ -14002,7 +13705,7 @@ const CodeSnippetClass = compose$1(
|
|
14002
13705
|
deletionTextColor: { ...deletion, property: 'color' },
|
14003
13706
|
deletionBgColor: { ...deletion, property: 'background-color' },
|
14004
13707
|
charEscapeTextColor: { ...charEscape, property: 'color' },
|
14005
|
-
linkTextColor: { ...link$
|
13708
|
+
linkTextColor: { ...link$3, property: 'color' },
|
14006
13709
|
paramsTextColor: { ...params, property: 'color' },
|
14007
13710
|
propertyTextColor: { ...property, property: 'color' },
|
14008
13711
|
punctuationTextColor: { ...punctuation, property: 'color' },
|
@@ -14013,7 +13716,7 @@ const CodeSnippetClass = compose$1(
|
|
14013
13716
|
componentNameValidationMixin$1
|
14014
13717
|
)(CodeSnippet$1);
|
14015
13718
|
|
14016
|
-
customElements.define(componentName$
|
13719
|
+
customElements.define(componentName$D, CodeSnippetClass);
|
14017
13720
|
|
14018
13721
|
const isValidDataType = (data) => {
|
14019
13722
|
const isValid = Array.isArray(data);
|
@@ -14088,7 +13791,7 @@ const defaultRowDetailsRenderer = (item, itemLabelsMapping) => {
|
|
14088
13791
|
`;
|
14089
13792
|
};
|
14090
13793
|
|
14091
|
-
const componentName$
|
13794
|
+
const componentName$C = getComponentName$1('grid');
|
14092
13795
|
|
14093
13796
|
const GridMixin = (superclass) =>
|
14094
13797
|
class GridMixinClass extends superclass {
|
@@ -14301,7 +14004,7 @@ const GridMixin = (superclass) =>
|
|
14301
14004
|
};
|
14302
14005
|
|
14303
14006
|
const {
|
14304
|
-
host: host$
|
14007
|
+
host: host$c,
|
14305
14008
|
headerRow,
|
14306
14009
|
headerRowCell,
|
14307
14010
|
contentRow,
|
@@ -14354,15 +14057,15 @@ const GridClass = compose$1(
|
|
14354
14057
|
fontWeight: { ...contentRow },
|
14355
14058
|
valueTextColor: { ...contentRow, property: 'color' },
|
14356
14059
|
backgroundColor: [
|
14357
|
-
{ ...host$
|
14060
|
+
{ ...host$c, property: 'background-color' },
|
14358
14061
|
{ ...contentRow, property: 'background-color' },
|
14359
14062
|
],
|
14360
14063
|
sortIndicatorsColor: { ...sortIndicators, property: 'color' },
|
14361
14064
|
activeSortIndicator: { ...activeSortIndicator, property: 'color' },
|
14362
|
-
borderColor: { ...host$
|
14363
|
-
borderWidth: { ...host$
|
14364
|
-
borderStyle: { ...host$
|
14365
|
-
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' },
|
14366
14069
|
selectedBackgroundColor: [
|
14367
14070
|
{ ...selectedRow, property: 'background-color' },
|
14368
14071
|
{ ...selectedRowCell, property: 'background-color' },
|
@@ -14373,7 +14076,7 @@ const GridClass = compose$1(
|
|
14373
14076
|
{ ...rowSeparator, property: 'border-top-color' },
|
14374
14077
|
],
|
14375
14078
|
resizeHandleColor: { ...resizeHandle, property: 'background-color' },
|
14376
|
-
hostDirection: { ...host$
|
14079
|
+
hostDirection: { ...host$c, property: 'direction', fallback: 'ltr' },
|
14377
14080
|
toggleDetailsPanelButtonSize: [
|
14378
14081
|
{ ...toggleDetailsPanelButton, property: 'width' },
|
14379
14082
|
{ ...toggleDetailsPanelButton, property: 'height' },
|
@@ -14442,13 +14145,13 @@ const GridClass = compose$1(
|
|
14442
14145
|
/*!css*/
|
14443
14146
|
`,
|
14444
14147
|
excludeAttrsSync: ['columns', 'tabindex', 'style'],
|
14445
|
-
componentName: componentName$
|
14148
|
+
componentName: componentName$C,
|
14446
14149
|
})
|
14447
14150
|
);
|
14448
14151
|
|
14449
|
-
customElements.define(componentName$
|
14152
|
+
customElements.define(componentName$C, GridClass);
|
14450
14153
|
|
14451
|
-
const componentName$
|
14154
|
+
const componentName$B = getComponentName$1('multi-select-combo-box');
|
14452
14155
|
|
14453
14156
|
const multiSelectComboBoxMixin = (superclass) =>
|
14454
14157
|
class MultiSelectComboBoxMixinClass extends superclass {
|
@@ -14849,7 +14552,7 @@ const multiSelectComboBoxMixin = (superclass) =>
|
|
14849
14552
|
};
|
14850
14553
|
|
14851
14554
|
const {
|
14852
|
-
host: host$
|
14555
|
+
host: host$b,
|
14853
14556
|
inputField,
|
14854
14557
|
inputElement,
|
14855
14558
|
placeholder,
|
@@ -14887,10 +14590,10 @@ const {
|
|
14887
14590
|
const MultiSelectComboBoxClass = compose$1(
|
14888
14591
|
createStyleMixin$1({
|
14889
14592
|
mappings: {
|
14890
|
-
hostWidth: { ...host$
|
14891
|
-
hostDirection: { ...host$
|
14593
|
+
hostWidth: { ...host$b, property: 'width' },
|
14594
|
+
hostDirection: { ...host$b, property: 'direction' },
|
14892
14595
|
// we apply font-size also on the host so we can set its width with em
|
14893
|
-
fontSize: [{}, host$
|
14596
|
+
fontSize: [{}, host$b],
|
14894
14597
|
chipFontSize: { ...chipLabel, property: 'font-size' },
|
14895
14598
|
fontFamily: [label, placeholder, inputField, helperText$1, errorMessage$2, chipLabel],
|
14896
14599
|
labelFontSize: { ...label, property: 'font-size' },
|
@@ -15101,16 +14804,16 @@ const MultiSelectComboBoxClass = compose$1(
|
|
15101
14804
|
// Note: we exclude `placeholder` because the vaadin component observes it and
|
15102
14805
|
// tries to override it, causing us to lose the user set placeholder.
|
15103
14806
|
excludeAttrsSync: ['tabindex', 'size', 'data', 'placeholder'],
|
15104
|
-
componentName: componentName$
|
14807
|
+
componentName: componentName$B,
|
15105
14808
|
includeForwardProps: ['items', 'renderer', 'selectedItems'],
|
15106
14809
|
})
|
15107
14810
|
);
|
15108
14811
|
|
15109
|
-
customElements.define(componentName$
|
14812
|
+
customElements.define(componentName$B, MultiSelectComboBoxClass);
|
15110
14813
|
|
15111
|
-
const componentName$
|
14814
|
+
const componentName$A = getComponentName$1('badge');
|
15112
14815
|
|
15113
|
-
class RawBadge extends createBaseClass$1({ componentName: componentName$
|
14816
|
+
class RawBadge extends createBaseClass$1({ componentName: componentName$A, baseSelector: ':host > div' }) {
|
15114
14817
|
constructor() {
|
15115
14818
|
super();
|
15116
14819
|
|
@@ -15165,9 +14868,9 @@ const BadgeClass = compose$1(
|
|
15165
14868
|
componentNameValidationMixin$1
|
15166
14869
|
)(RawBadge);
|
15167
14870
|
|
15168
|
-
customElements.define(componentName$
|
14871
|
+
customElements.define(componentName$A, BadgeClass);
|
15169
14872
|
|
15170
|
-
const componentName$
|
14873
|
+
const componentName$z = getComponentName$1('modal');
|
15171
14874
|
|
15172
14875
|
const observedAttrs$2 = ['opened'];
|
15173
14876
|
|
@@ -15291,11 +14994,11 @@ const ModalClass = compose$1(
|
|
15291
14994
|
}
|
15292
14995
|
`,
|
15293
14996
|
excludeAttrsSync: ['tabindex', 'opened', 'style'],
|
15294
|
-
componentName: componentName$
|
14997
|
+
componentName: componentName$z,
|
15295
14998
|
})
|
15296
14999
|
);
|
15297
15000
|
|
15298
|
-
customElements.define(componentName$
|
15001
|
+
customElements.define(componentName$z, ModalClass);
|
15299
15002
|
|
15300
15003
|
const vaadinContainerClass = window.customElements.get('vaadin-notification-container');
|
15301
15004
|
|
@@ -15306,7 +15009,7 @@ if (!vaadinContainerClass) {
|
|
15306
15009
|
class NotificationContainerClass extends vaadinContainerClass {}
|
15307
15010
|
customElements.define(getComponentName$1('notification-container'), NotificationContainerClass);
|
15308
15011
|
|
15309
|
-
const componentName$
|
15012
|
+
const componentName$y = getComponentName$1('notification-card');
|
15310
15013
|
|
15311
15014
|
const notificationCardMixin = (superclass) =>
|
15312
15015
|
class NotificationCardMixinClass extends superclass {
|
@@ -15350,7 +15053,7 @@ const notificationCardMixin = (superclass) =>
|
|
15350
15053
|
}
|
15351
15054
|
};
|
15352
15055
|
|
15353
|
-
const selectors$
|
15056
|
+
const selectors$2 = {
|
15354
15057
|
content: () => 'vaadin-notification-card::part(content)',
|
15355
15058
|
overlay: () => 'vaadin-notification-card::part(overlay)',
|
15356
15059
|
};
|
@@ -15358,26 +15061,26 @@ const selectors$1 = {
|
|
15358
15061
|
const NotificationCardClass = compose$1(
|
15359
15062
|
createStyleMixin$1({
|
15360
15063
|
mappings: {
|
15361
|
-
hostMinWidth: { selector: selectors$
|
15064
|
+
hostMinWidth: { selector: selectors$2.content, property: 'min-width' },
|
15362
15065
|
fontFamily: {},
|
15363
15066
|
fontSize: {},
|
15364
|
-
backgroundColor: { selector: selectors$
|
15067
|
+
backgroundColor: { selector: selectors$2.content },
|
15365
15068
|
textColor: { property: 'color' },
|
15366
15069
|
boxShadow: {},
|
15367
|
-
borderWidth: { selector: selectors$
|
15368
|
-
borderColor: { selector: selectors$
|
15369
|
-
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' },
|
15370
15073
|
borderRadius: [
|
15371
|
-
{ selector: selectors$
|
15372
|
-
{ selector: selectors$
|
15074
|
+
{ selector: selectors$2.content, property: 'border-radius' },
|
15075
|
+
{ selector: selectors$2.overlay, property: 'border-radius' },
|
15373
15076
|
],
|
15374
15077
|
verticalPadding: [
|
15375
|
-
{ selector: selectors$
|
15376
|
-
{ selector: selectors$
|
15078
|
+
{ selector: selectors$2.content, property: 'padding-top' },
|
15079
|
+
{ selector: selectors$2.content, property: 'padding-bottom' },
|
15377
15080
|
],
|
15378
15081
|
horizontalPadding: [
|
15379
|
-
{ selector: selectors$
|
15380
|
-
{ selector: selectors$
|
15082
|
+
{ selector: selectors$2.content, property: 'padding-right' },
|
15083
|
+
{ selector: selectors$2.content, property: 'padding-left' },
|
15381
15084
|
],
|
15382
15085
|
},
|
15383
15086
|
}),
|
@@ -15414,13 +15117,13 @@ const NotificationCardClass = compose$1(
|
|
15414
15117
|
}
|
15415
15118
|
`,
|
15416
15119
|
excludeAttrsSync: ['tabindex'],
|
15417
|
-
componentName: componentName$
|
15120
|
+
componentName: componentName$y,
|
15418
15121
|
})
|
15419
15122
|
);
|
15420
15123
|
|
15421
|
-
customElements.define(componentName$
|
15124
|
+
customElements.define(componentName$y, NotificationCardClass);
|
15422
15125
|
|
15423
|
-
const componentName$
|
15126
|
+
const componentName$x = getComponentName$1('notification');
|
15424
15127
|
|
15425
15128
|
const NotificationMixin = (superclass) =>
|
15426
15129
|
class NotificationMixinClass extends superclass {
|
@@ -15515,15 +15218,15 @@ const NotificationClass = compose$1(
|
|
15515
15218
|
createProxy$1({
|
15516
15219
|
wrappedEleName: 'vaadin-notification',
|
15517
15220
|
excludeAttrsSync: ['tabindex'],
|
15518
|
-
componentName: componentName$
|
15221
|
+
componentName: componentName$x,
|
15519
15222
|
})
|
15520
15223
|
);
|
15521
15224
|
|
15522
|
-
customElements.define(componentName$
|
15225
|
+
customElements.define(componentName$x, NotificationClass);
|
15523
15226
|
|
15524
|
-
const componentName$
|
15227
|
+
const componentName$w = getComponentName$1('mappings-field-internal');
|
15525
15228
|
|
15526
|
-
const BaseInputClass$4 = createBaseInputClass$1({ componentName: componentName$
|
15229
|
+
const BaseInputClass$4 = createBaseInputClass$1({ componentName: componentName$w, baseSelector: 'div' });
|
15527
15230
|
|
15528
15231
|
class MappingsFieldInternal extends BaseInputClass$4 {
|
15529
15232
|
#errorItem;
|
@@ -15770,7 +15473,7 @@ class MappingsFieldInternal extends BaseInputClass$4 {
|
|
15770
15473
|
}
|
15771
15474
|
}
|
15772
15475
|
|
15773
|
-
const componentName$
|
15476
|
+
const componentName$v = getComponentName$1('mappings-field');
|
15774
15477
|
|
15775
15478
|
const customMixin$6 = (superclass) =>
|
15776
15479
|
class MappingsFieldMixinClass extends superclass {
|
@@ -15799,14 +15502,14 @@ const customMixin$6 = (superclass) =>
|
|
15799
15502
|
const template = document.createElement('template');
|
15800
15503
|
|
15801
15504
|
template.innerHTML = `
|
15802
|
-
<${componentName$
|
15505
|
+
<${componentName$w}
|
15803
15506
|
tabindex="-1"
|
15804
|
-
></${componentName$
|
15507
|
+
></${componentName$w}>
|
15805
15508
|
`;
|
15806
15509
|
|
15807
15510
|
this.baseElement.appendChild(template.content.cloneNode(true));
|
15808
15511
|
|
15809
|
-
this.inputElement = this.shadowRoot.querySelector(componentName$
|
15512
|
+
this.inputElement = this.shadowRoot.querySelector(componentName$w);
|
15810
15513
|
|
15811
15514
|
forwardAttrs$1(this, this.inputElement, {
|
15812
15515
|
includeAttrs: [
|
@@ -15836,7 +15539,7 @@ const customMixin$6 = (superclass) =>
|
|
15836
15539
|
};
|
15837
15540
|
|
15838
15541
|
const {
|
15839
|
-
host: host$
|
15542
|
+
host: host$a,
|
15840
15543
|
helperText,
|
15841
15544
|
errorMessage: errorMessage$1,
|
15842
15545
|
mappingItem,
|
@@ -15864,10 +15567,10 @@ const {
|
|
15864
15567
|
const MappingsFieldClass = compose$1(
|
15865
15568
|
createStyleMixin$1({
|
15866
15569
|
mappings: {
|
15867
|
-
hostWidth: { ...host$
|
15868
|
-
hostDirection: { ...host$
|
15570
|
+
hostWidth: { ...host$a, property: 'width' },
|
15571
|
+
hostDirection: { ...host$a, property: 'direction' },
|
15869
15572
|
// we apply font-size also on the host so we can set its width with em
|
15870
|
-
fontSize: [{}, host$
|
15573
|
+
fontSize: [{}, host$a, { ...separator, property: 'margin-top' }],
|
15871
15574
|
fontFamily: [helperText, errorMessage$1, labels],
|
15872
15575
|
separatorFontSize: { ...separator, property: 'font-size' },
|
15873
15576
|
labelsFontSize: { ...labelsText, property: 'font-size' },
|
@@ -15941,13 +15644,13 @@ const MappingsFieldClass = compose$1(
|
|
15941
15644
|
'options',
|
15942
15645
|
'error-message',
|
15943
15646
|
],
|
15944
|
-
componentName: componentName$
|
15647
|
+
componentName: componentName$v,
|
15945
15648
|
})
|
15946
15649
|
);
|
15947
15650
|
|
15948
|
-
customElements.define(componentName$
|
15651
|
+
customElements.define(componentName$w, MappingsFieldInternal);
|
15949
15652
|
|
15950
|
-
const componentName$
|
15653
|
+
const componentName$u = getComponentName$1('mapping-item');
|
15951
15654
|
|
15952
15655
|
const inputAttrs = [
|
15953
15656
|
'size',
|
@@ -15960,7 +15663,7 @@ const inputAttrs = [
|
|
15960
15663
|
'st-error-message-icon-padding',
|
15961
15664
|
];
|
15962
15665
|
|
15963
|
-
const BaseInputClass$3 = createBaseInputClass$1({ componentName: componentName$
|
15666
|
+
const BaseInputClass$3 = createBaseInputClass$1({ componentName: componentName$u, baseSelector: 'div' });
|
15964
15667
|
|
15965
15668
|
class MappingItem extends BaseInputClass$3 {
|
15966
15669
|
static get observedAttributes() {
|
@@ -16115,17 +15818,17 @@ class MappingItem extends BaseInputClass$3 {
|
|
16115
15818
|
}
|
16116
15819
|
}
|
16117
15820
|
|
16118
|
-
customElements.define(componentName$
|
15821
|
+
customElements.define(componentName$u, MappingItem);
|
16119
15822
|
|
16120
|
-
customElements.define(componentName$
|
15823
|
+
customElements.define(componentName$v, MappingsFieldClass);
|
16121
15824
|
|
16122
15825
|
var deleteIcon = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxNCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEgMTZDMSAxNy4xIDEuOSAxOCAzIDE4SDExQzEyLjEgMTggMTMgMTcuMSAxMyAxNlY0SDFWMTZaTTMgNkgxMVYxNkgzVjZaTTEwLjUgMUw5LjUgMEg0LjVMMy41IDFIMFYzSDE0VjFIMTAuNVoiIGZpbGw9ImN1cnJlbnRjb2xvciIvPgo8L3N2Zz4K";
|
16123
15826
|
|
16124
15827
|
var editIcon = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHZpZXdCb3g9IjAgMCAxNSAxNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEwLjAwMDIgMC45OTIxNDlDMTAuMDAwMiAxLjAxNjE1IDEwLjAwMDIgMS4wMTYxNSAxMC4wMDAyIDEuMDE2MTVMOC4yMjQxOSAzLjAwODE1SDIuOTkyMTlDMi40NjQxOSAzLjAwODE1IDIuMDA4MTkgMy40NDAxNSAyLjAwODE5IDMuOTkyMTVWMTIuMDA4MkMyLjAwODE5IDEyLjUzNjIgMi40NDAxOSAxMi45OTIyIDIuOTkyMTkgMTIuOTkyMkg1LjUzNjE5QzUuODQ4MTkgMTMuMDQwMiA2LjE2MDE5IDEzLjA0MDIgNi40NzIxOSAxMi45OTIySDExLjAwODJDMTEuNTM2MiAxMi45OTIyIDExLjk5MjIgMTIuNTYwMiAxMS45OTIyIDEyLjAwODJWNy43ODQxNkwxMy45MzYyIDUuNjI0MTVMMTQuMDA4MiA1LjY3MjE1VjExLjk4NDJDMTQuMDA4MiAxMy42NjQyIDEyLjY2NDIgMTUuMDA4MiAxMS4wMDgyIDE1LjAwODJIMy4wMTYxOUMxLjMzNjE5IDE1LjAwODIgLTAuMDA3ODEyNSAxMy42NjQyIC0wLjAwNzgxMjUgMTEuOTg0MlYzLjk5MjE1Qy0wLjAwNzgxMjUgMi4zMzYxNSAxLjMzNjE5IDAuOTkyMTQ5IDMuMDE2MTkgMC45OTIxNDlIMTAuMDAwMlpNMTEuMjcyMiAyLjYyNDE1TDEyLjYxNjIgNC4xMTIxNUw3LjcyMDE5IDkuNjgwMTZDNy41MDQxOSA5LjkyMDE2IDYuODMyMTkgMTAuMjMyMiA1LjY4MDE5IDEwLjYxNjJDNS42NTYxOSAxMC42NDAyIDUuNjA4MTkgMTAuNjQwMiA1LjU2MDE5IDEwLjYxNjJDNS40NjQxOSAxMC41OTIyIDUuMzkyMTkgMTAuNDcyMiA1LjQ0MDE5IDEwLjM3NjJDNS43NTIxOSA5LjI0ODE2IDYuMDQwMTkgOC41NTIxNiA2LjI1NjE5IDguMzEyMTZMMTEuMjcyMiAyLjYyNDE1Wk0xMS45MjAyIDEuODU2MTVMMTMuMjg4MiAwLjMyMDE0OUMxMy42NDgyIC0wLjA4Nzg1MTYgMTQuMjcyMiAtMC4xMTE4NTIgMTQuNjgwMiAwLjI3MjE0OUMxNS4wODgyIDAuNjMyMTQ5IDE1LjExMjIgMS4yODAxNSAxNC43NTIyIDEuNjg4MTVMMTMuMjY0MiAzLjM2ODE1TDExLjkyMDIgMS44NTYxNVoiIGZpbGw9ImN1cnJlbnRjb2xvciIvPgo8L3N2Zz4K";
|
16125
15828
|
|
16126
|
-
const componentName$
|
15829
|
+
const componentName$t = getComponentName$1('user-attribute');
|
16127
15830
|
class RawUserAttribute extends createBaseClass$1({
|
16128
|
-
componentName: componentName$
|
15831
|
+
componentName: componentName$t,
|
16129
15832
|
baseSelector: ':host > .root',
|
16130
15833
|
}) {
|
16131
15834
|
constructor() {
|
@@ -16338,7 +16041,7 @@ class RawUserAttribute extends createBaseClass$1({
|
|
16338
16041
|
}
|
16339
16042
|
}
|
16340
16043
|
|
16341
|
-
const { host: host$
|
16044
|
+
const { host: host$9, textFields, buttons: buttons$1, badge: badge$3, labelText, valueText, textWrapper: textWrapper$1 } = {
|
16342
16045
|
host: { selector: () => ':host' },
|
16343
16046
|
textFields: { selector: 'descope-text' },
|
16344
16047
|
valueText: { selector: 'descope-text[data-id="value-text"]' },
|
@@ -16351,10 +16054,10 @@ const { host: host$8, textFields, buttons: buttons$1, badge: badge$3, labelText,
|
|
16351
16054
|
const UserAttributeClass = compose$1(
|
16352
16055
|
createStyleMixin$1({
|
16353
16056
|
mappings: {
|
16354
|
-
hostWidth: { ...host$
|
16355
|
-
hostMinWidth: { ...host$
|
16057
|
+
hostWidth: { ...host$9, property: 'width' },
|
16058
|
+
hostMinWidth: { ...host$9, property: 'min-width' },
|
16356
16059
|
hostDirection: [
|
16357
|
-
{ ...host$
|
16060
|
+
{ ...host$9, property: 'direction' },
|
16358
16061
|
{ ...textFields, property: TextClass.cssVarList.hostDirection },
|
16359
16062
|
{ ...buttons$1, property: ButtonClass.cssVarList.hostDirection },
|
16360
16063
|
{ ...badge$3, property: BadgeClass.cssVarList.hostDirection },
|
@@ -16369,13 +16072,13 @@ const UserAttributeClass = compose$1(
|
|
16369
16072
|
componentNameValidationMixin$1
|
16370
16073
|
)(RawUserAttribute);
|
16371
16074
|
|
16372
|
-
customElements.define(componentName$
|
16075
|
+
customElements.define(componentName$t, UserAttributeClass);
|
16373
16076
|
|
16374
16077
|
var greenVIcon = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTggMEMzLjYgMCAwIDMuNiAwIDhDMCAxMi40IDMuNiAxNiA4IDE2QzEyLjQgMTYgMTYgMTIuNCAxNiA4QzE2IDMuNiAxMi40IDAgOCAwWk03LjEgMTEuN0wyLjkgNy42TDQuMyA2LjJMNyA4LjlMMTIgNEwxMy40IDUuNEw3LjEgMTEuN1oiIGZpbGw9IiM0Q0FGNTAiLz4KPC9zdmc+Cg==";
|
16375
16078
|
|
16376
|
-
const componentName$
|
16079
|
+
const componentName$s = getComponentName$1('user-auth-method');
|
16377
16080
|
class RawUserAuthMethod extends createBaseClass$1({
|
16378
|
-
componentName: componentName$
|
16081
|
+
componentName: componentName$s,
|
16379
16082
|
baseSelector: ':host > .root',
|
16380
16083
|
}) {
|
16381
16084
|
constructor() {
|
@@ -16537,7 +16240,7 @@ class RawUserAuthMethod extends createBaseClass$1({
|
|
16537
16240
|
}
|
16538
16241
|
}
|
16539
16242
|
|
16540
|
-
const { host: host$
|
16243
|
+
const { host: host$8, textField: textField$2, buttons, badge: badge$2, textWrapper, methodIconSlot } = {
|
16541
16244
|
host: { selector: () => ':host' },
|
16542
16245
|
textField: { selector: 'descope-text' },
|
16543
16246
|
buttons: { selector: 'descope-button' },
|
@@ -16549,10 +16252,10 @@ const { host: host$7, textField: textField$2, buttons, badge: badge$2, textWrapp
|
|
16549
16252
|
const UserAuthMethodClass = compose$1(
|
16550
16253
|
createStyleMixin$1({
|
16551
16254
|
mappings: {
|
16552
|
-
hostWidth: { ...host$
|
16553
|
-
hostMinWidth: { ...host$
|
16255
|
+
hostWidth: { ...host$8, property: 'width' },
|
16256
|
+
hostMinWidth: { ...host$8, property: 'min-width' },
|
16554
16257
|
hostDirection: [
|
16555
|
-
{ ...host$
|
16258
|
+
{ ...host$8, property: 'direction' },
|
16556
16259
|
{ ...textField$2, property: TextClass.cssVarList.hostDirection },
|
16557
16260
|
{ ...buttons, property: ButtonClass.cssVarList.hostDirection },
|
16558
16261
|
{ ...badge$2, property: BadgeClass.cssVarList.hostDirection },
|
@@ -16570,11 +16273,11 @@ const UserAuthMethodClass = compose$1(
|
|
16570
16273
|
componentNameValidationMixin$1
|
16571
16274
|
)(RawUserAuthMethod);
|
16572
16275
|
|
16573
|
-
customElements.define(componentName$
|
16276
|
+
customElements.define(componentName$s, UserAuthMethodClass);
|
16574
16277
|
|
16575
|
-
const componentName$
|
16278
|
+
const componentName$r = getComponentName$1('saml-group-mappings-internal');
|
16576
16279
|
|
16577
|
-
const BaseInputClass$2 = createBaseInputClass$1({ componentName: componentName$
|
16280
|
+
const BaseInputClass$2 = createBaseInputClass$1({ componentName: componentName$r, baseSelector: '' });
|
16578
16281
|
|
16579
16282
|
class SamlGroupMappingsInternal extends BaseInputClass$2 {
|
16580
16283
|
static get observedAttributes() {
|
@@ -16700,7 +16403,7 @@ class SamlGroupMappingsInternal extends BaseInputClass$2 {
|
|
16700
16403
|
}
|
16701
16404
|
}
|
16702
16405
|
|
16703
|
-
const componentName$
|
16406
|
+
const componentName$q = getComponentName$1('saml-group-mappings');
|
16704
16407
|
|
16705
16408
|
const customMixin$5 = (superclass) =>
|
16706
16409
|
class SamlGroupMappingsMixinClass extends superclass {
|
@@ -16710,14 +16413,14 @@ const customMixin$5 = (superclass) =>
|
|
16710
16413
|
const template = document.createElement('template');
|
16711
16414
|
|
16712
16415
|
template.innerHTML = `
|
16713
|
-
<${componentName$
|
16416
|
+
<${componentName$r}
|
16714
16417
|
tabindex="-1"
|
16715
|
-
></${componentName$
|
16418
|
+
></${componentName$r}>
|
16716
16419
|
`;
|
16717
16420
|
|
16718
16421
|
this.baseElement.appendChild(template.content.cloneNode(true));
|
16719
16422
|
|
16720
|
-
this.inputElement = this.shadowRoot.querySelector(componentName$
|
16423
|
+
this.inputElement = this.shadowRoot.querySelector(componentName$r);
|
16721
16424
|
|
16722
16425
|
forwardAttrs$1(this, this.inputElement, {
|
16723
16426
|
includeAttrs: [
|
@@ -16738,7 +16441,7 @@ const customMixin$5 = (superclass) =>
|
|
16738
16441
|
}
|
16739
16442
|
};
|
16740
16443
|
|
16741
|
-
const { host: host$
|
16444
|
+
const { host: host$7, groupInput, errorMessage } = {
|
16742
16445
|
host: { selector: () => ':host' },
|
16743
16446
|
groupInput: { selector: 'descope-text-field' },
|
16744
16447
|
errorMessage: { selector: '::part(error-message)' },
|
@@ -16747,8 +16450,8 @@ const { host: host$6, groupInput, errorMessage } = {
|
|
16747
16450
|
const SamlGroupMappingsClass = compose$1(
|
16748
16451
|
createStyleMixin$1({
|
16749
16452
|
mappings: {
|
16750
|
-
hostWidth: { ...host$
|
16751
|
-
hostDirection: { ...host$
|
16453
|
+
hostWidth: { ...host$7, property: 'width' },
|
16454
|
+
hostDirection: { ...host$7, property: 'direction' },
|
16752
16455
|
groupNameInputMarginBottom: { ...groupInput, property: 'margin-bottom' },
|
16753
16456
|
errorMessageIcon: { ...errorMessage, property: 'background-image' },
|
16754
16457
|
errorMessageIconSize: { ...errorMessage, property: 'background-size' },
|
@@ -16801,15 +16504,15 @@ const SamlGroupMappingsClass = compose$1(
|
|
16801
16504
|
'options',
|
16802
16505
|
'error-message',
|
16803
16506
|
],
|
16804
|
-
componentName: componentName$
|
16507
|
+
componentName: componentName$q,
|
16805
16508
|
})
|
16806
16509
|
);
|
16807
16510
|
|
16808
|
-
customElements.define(componentName$
|
16511
|
+
customElements.define(componentName$r, SamlGroupMappingsInternal);
|
16809
16512
|
|
16810
|
-
customElements.define(componentName$
|
16513
|
+
customElements.define(componentName$q, SamlGroupMappingsClass);
|
16811
16514
|
|
16812
|
-
const componentName$
|
16515
|
+
const componentName$p = getComponentName$1('radio-button');
|
16813
16516
|
|
16814
16517
|
const customMixin$4 = (superclass) =>
|
16815
16518
|
class CustomMixin extends superclass {
|
@@ -16874,11 +16577,11 @@ const RadioButtonClass = compose$1(
|
|
16874
16577
|
wrappedEleName: 'vaadin-radio-button',
|
16875
16578
|
excludeAttrsSync: ['tabindex', 'data'],
|
16876
16579
|
includeForwardProps: ['checked', 'name', 'disabled'],
|
16877
|
-
componentName: componentName$
|
16580
|
+
componentName: componentName$p,
|
16878
16581
|
})
|
16879
16582
|
);
|
16880
16583
|
|
16881
|
-
const componentName$
|
16584
|
+
const componentName$o = getComponentName$1('radio-group');
|
16882
16585
|
|
16883
16586
|
const RadioGroupMixin = (superclass) =>
|
16884
16587
|
class RadioGroupMixinClass extends superclass {
|
@@ -16893,12 +16596,12 @@ const RadioGroupMixin = (superclass) =>
|
|
16893
16596
|
|
16894
16597
|
// we are overriding vaadin children getter so it will run on our custom elements
|
16895
16598
|
Object.defineProperty(this.baseElement, 'children', {
|
16896
|
-
get: () => this.querySelectorAll(componentName$
|
16599
|
+
get: () => this.querySelectorAll(componentName$p),
|
16897
16600
|
});
|
16898
16601
|
|
16899
16602
|
// we are overriding vaadin __filterRadioButtons so it will run on our custom elements
|
16900
16603
|
this.baseElement.__filterRadioButtons = (nodes) => {
|
16901
|
-
return nodes.filter((node) => node.localName === componentName$
|
16604
|
+
return nodes.filter((node) => node.localName === componentName$p);
|
16902
16605
|
};
|
16903
16606
|
|
16904
16607
|
// vaadin radio group missing some input properties
|
@@ -17048,13 +16751,13 @@ const RadioGroupClass = compose$1(
|
|
17048
16751
|
`,
|
17049
16752
|
|
17050
16753
|
excludeAttrsSync: ['tabindex', 'size', 'data', 'direction'],
|
17051
|
-
componentName: componentName$
|
16754
|
+
componentName: componentName$o,
|
17052
16755
|
includeForwardProps: ['value'],
|
17053
16756
|
})
|
17054
16757
|
);
|
17055
16758
|
|
17056
|
-
customElements.define(componentName$
|
17057
|
-
customElements.define(componentName$
|
16759
|
+
customElements.define(componentName$o, RadioGroupClass);
|
16760
|
+
customElements.define(componentName$p, RadioButtonClass);
|
17058
16761
|
|
17059
16762
|
const activeableMixin = (superclass) =>
|
17060
16763
|
class ActiveableMixinClass extends superclass {
|
@@ -17071,7 +16774,7 @@ const activeableMixin = (superclass) =>
|
|
17071
16774
|
}
|
17072
16775
|
};
|
17073
16776
|
|
17074
|
-
const componentName$
|
16777
|
+
const componentName$n = getComponentName$1('list-item');
|
17075
16778
|
|
17076
16779
|
const customMixin$3 = (superclass) =>
|
17077
16780
|
class ListItemMixinClass extends superclass {
|
@@ -17121,11 +16824,11 @@ const ListItemClass = compose$1(
|
|
17121
16824
|
componentNameValidationMixin$1,
|
17122
16825
|
customMixin$3,
|
17123
16826
|
activeableMixin
|
17124
|
-
)(createBaseClass$1({ componentName: componentName$
|
16827
|
+
)(createBaseClass$1({ componentName: componentName$n, baseSelector: 'slot' }));
|
17125
16828
|
|
17126
|
-
const componentName$
|
16829
|
+
const componentName$m = getComponentName$1('list');
|
17127
16830
|
|
17128
|
-
class RawList extends createBaseClass$1({ componentName: componentName$
|
16831
|
+
class RawList extends createBaseClass$1({ componentName: componentName$m, baseSelector: '.wrapper' }) {
|
17129
16832
|
static get observedAttributes() {
|
17130
16833
|
return ['variant', 'readonly'];
|
17131
16834
|
}
|
@@ -17273,12 +16976,12 @@ const ListClass = compose$1(
|
|
17273
16976
|
componentNameValidationMixin$1
|
17274
16977
|
)(RawList);
|
17275
16978
|
|
17276
|
-
customElements.define(componentName$
|
17277
|
-
customElements.define(componentName$
|
16979
|
+
customElements.define(componentName$m, ListClass);
|
16980
|
+
customElements.define(componentName$n, ListItemClass);
|
17278
16981
|
|
17279
|
-
const componentName$
|
16982
|
+
const componentName$l = getComponentName('avatar');
|
17280
16983
|
class RawAvatar extends createBaseClass({
|
17281
|
-
componentName: componentName$
|
16984
|
+
componentName: componentName$l,
|
17282
16985
|
baseSelector: ':host > .wrapper',
|
17283
16986
|
}) {
|
17284
16987
|
constructor() {
|
@@ -17356,7 +17059,7 @@ class RawAvatar extends createBaseClass({
|
|
17356
17059
|
}
|
17357
17060
|
}
|
17358
17061
|
|
17359
|
-
const { host: host$
|
17062
|
+
const { host: host$6, editableBadge, avatar: avatar$2 } = {
|
17360
17063
|
host: { selector: () => ':host' },
|
17361
17064
|
editableBadge: { selector: '> .editableBadge' },
|
17362
17065
|
avatar: { selector: 'vaadin-avatar' },
|
@@ -17366,12 +17069,12 @@ const AvatarClass = compose(
|
|
17366
17069
|
createStyleMixin({
|
17367
17070
|
mappings: {
|
17368
17071
|
hostWidth: [
|
17369
|
-
{ ...host$
|
17370
|
-
{ ...host$
|
17072
|
+
{ ...host$6, property: 'width' },
|
17073
|
+
{ ...host$6, property: 'min-width' },
|
17371
17074
|
],
|
17372
|
-
hostHeight: { ...host$
|
17373
|
-
cursor: [avatar$2, host$
|
17374
|
-
hostDirection: { ...host$
|
17075
|
+
hostHeight: { ...host$6, property: 'height' },
|
17076
|
+
cursor: [avatar$2, host$6],
|
17077
|
+
hostDirection: { ...host$6, property: 'direction' },
|
17375
17078
|
avatarTextColor: { ...avatar$2, property: 'color' },
|
17376
17079
|
avatarBackgroundColor: { ...avatar$2, property: 'background-color' },
|
17377
17080
|
editableIconColor: { ...editableBadge, property: 'color' },
|
@@ -17386,7 +17089,7 @@ const AvatarClass = compose(
|
|
17386
17089
|
componentNameValidationMixin,
|
17387
17090
|
)(RawAvatar);
|
17388
17091
|
|
17389
|
-
customElements.define(componentName$
|
17092
|
+
customElements.define(componentName$l, AvatarClass);
|
17390
17093
|
|
17391
17094
|
const defaultValidateSchema = () => true;
|
17392
17095
|
const defaultItemRenderer = (item) => `<pre>${JSON.stringify(item, null, 4)}</pre>`;
|
@@ -17487,7 +17190,7 @@ const createDynamicDataMixin =
|
|
17487
17190
|
}
|
17488
17191
|
};
|
17489
17192
|
|
17490
|
-
const componentName$
|
17193
|
+
const componentName$k = getComponentName$1('apps-list');
|
17491
17194
|
|
17492
17195
|
const limitAbbreviation = (str, limit = 2) =>
|
17493
17196
|
str
|
@@ -17549,7 +17252,7 @@ const AppsListClass = compose$1(
|
|
17549
17252
|
slots: ['empty-state'],
|
17550
17253
|
wrappedEleName: 'descope-list',
|
17551
17254
|
excludeAttrsSync: ['tabindex', 'class', 'empty'],
|
17552
|
-
componentName: componentName$
|
17255
|
+
componentName: componentName$k,
|
17553
17256
|
style: () => `
|
17554
17257
|
:host {
|
17555
17258
|
width: 100%;
|
@@ -17574,9 +17277,9 @@ const AppsListClass = compose$1(
|
|
17574
17277
|
})
|
17575
17278
|
);
|
17576
17279
|
|
17577
|
-
customElements.define(componentName$
|
17280
|
+
customElements.define(componentName$k, AppsListClass);
|
17578
17281
|
|
17579
|
-
const componentName$
|
17282
|
+
const componentName$j = getComponentName$1('scopes-list');
|
17580
17283
|
const variants = ['checkbox', 'switch'];
|
17581
17284
|
|
17582
17285
|
const itemRenderer$1 = ({ id, desc, required = false }, _, ref) => {
|
@@ -17595,7 +17298,7 @@ const itemRenderer$1 = ({ id, desc, required = false }, _, ref) => {
|
|
17595
17298
|
`;
|
17596
17299
|
};
|
17597
17300
|
|
17598
|
-
class RawScopesList extends createBaseClass$1({ componentName: componentName$
|
17301
|
+
class RawScopesList extends createBaseClass$1({ componentName: componentName$j, baseSelector: 'div' }) {
|
17599
17302
|
constructor() {
|
17600
17303
|
super();
|
17601
17304
|
|
@@ -17703,13 +17406,13 @@ const ScopesListClass = compose$1(
|
|
17703
17406
|
componentNameValidationMixin$1
|
17704
17407
|
)(RawScopesList);
|
17705
17408
|
|
17706
|
-
customElements.define(componentName$
|
17409
|
+
customElements.define(componentName$j, ScopesListClass);
|
17707
17410
|
|
17708
17411
|
var arrowsImg = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjkiIGhlaWdodD0iMjgiIHZpZXdCb3g9IjAgMCAyOSAyOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTkuMTQ0OTIgMTUuNjQ1TDcuNDk5OTIgMTRMMi44MzMyNSAxOC42NjY3TDcuNDk5OTIgMjMuMzMzM0w5LjE0NDkyIDIxLjY4ODNMNy4zMDE1OSAxOS44MzMzSDI0Ljk5OTlWMTcuNUg3LjMwMTU5TDkuMTQ0OTIgMTUuNjQ1WiIgZmlsbD0iIzYzNkM3NCIvPgo8cGF0aCBkPSJNMTkuODU1IDEyLjM1NTNMMjEuNSAxNC4wMDAzTDI2LjE2NjcgOS4zMzM2NkwyMS41IDQuNjY2OTlMMTkuODU1IDYuMzExOTlMMjEuNjk4MyA4LjE2Njk5SDRWMTAuNTAwM0gyMS42OTgzTDE5Ljg1NSAxMi4zNTUzWiIgZmlsbD0iIzYzNkM3NCIvPgo8L3N2Zz4K";
|
17709
17412
|
|
17710
|
-
const componentName$
|
17413
|
+
const componentName$i = getComponentName$1('third-party-app-logo');
|
17711
17414
|
class RawThirdPartyAppLogoClass extends createBaseClass$1({
|
17712
|
-
componentName: componentName$
|
17415
|
+
componentName: componentName$i,
|
17713
17416
|
baseSelector: '.wrapper',
|
17714
17417
|
}) {
|
17715
17418
|
constructor() {
|
@@ -17867,12 +17570,12 @@ const createImage = async (src, altText) => {
|
|
17867
17570
|
|
17868
17571
|
/* eslint-disable no-use-before-define */
|
17869
17572
|
|
17870
|
-
const componentName$
|
17573
|
+
const componentName$h = getComponentName('image');
|
17871
17574
|
|
17872
17575
|
const srcAttrs = ['src', 'src-dark'];
|
17873
17576
|
|
17874
17577
|
class RawImage extends createBaseClass({
|
17875
|
-
componentName: componentName$
|
17578
|
+
componentName: componentName$h,
|
17876
17579
|
baseSelector: 'slot',
|
17877
17580
|
}) {
|
17878
17581
|
static get observedAttributes() {
|
@@ -18000,13 +17703,13 @@ const ImageClass = compose(
|
|
18000
17703
|
componentNameValidationMixin,
|
18001
17704
|
)(RawImage);
|
18002
17705
|
|
18003
|
-
customElements.define(componentName$
|
17706
|
+
customElements.define(componentName$h, ImageClass);
|
18004
17707
|
|
18005
17708
|
customElements.define(componentName$19, IconClass);
|
18006
17709
|
|
18007
|
-
customElements.define(componentName$
|
17710
|
+
customElements.define(componentName$i, ThirdPartyAppLogoClass);
|
18008
17711
|
|
18009
|
-
const componentName$
|
17712
|
+
const componentName$g = getComponentName$1('security-questions-setup');
|
18010
17713
|
|
18011
17714
|
const attrsToSync$1 = [
|
18012
17715
|
'full-width',
|
@@ -18025,7 +17728,7 @@ const attrsToSync$1 = [
|
|
18025
17728
|
];
|
18026
17729
|
|
18027
17730
|
const attrsToReRender$1 = ['count', 'questions'];
|
18028
|
-
class RawSecurityQuestionsSetup extends createBaseClass$1({ componentName: componentName$
|
17731
|
+
class RawSecurityQuestionsSetup extends createBaseClass$1({ componentName: componentName$g, baseSelector: 'div' }) {
|
18029
17732
|
constructor() {
|
18030
17733
|
super();
|
18031
17734
|
|
@@ -18135,7 +17838,7 @@ class RawSecurityQuestionsSetup extends createBaseClass$1({ componentName: compo
|
|
18135
17838
|
return JSON.parse(this.getAttribute('questions')) || [];
|
18136
17839
|
} catch (e) {
|
18137
17840
|
// eslint-disable-next-line no-console
|
18138
|
-
console.error(componentName$
|
17841
|
+
console.error(componentName$g, 'Error parsing questions attribute', e);
|
18139
17842
|
return [];
|
18140
17843
|
}
|
18141
17844
|
}
|
@@ -18243,9 +17946,9 @@ const SecurityQuestionsSetupClass = compose$1(
|
|
18243
17946
|
componentNameValidationMixin$1
|
18244
17947
|
)(RawSecurityQuestionsSetup);
|
18245
17948
|
|
18246
|
-
customElements.define(componentName$
|
17949
|
+
customElements.define(componentName$g, SecurityQuestionsSetupClass);
|
18247
17950
|
|
18248
|
-
const componentName$
|
17951
|
+
const componentName$f = getComponentName$1('security-questions-verify');
|
18249
17952
|
|
18250
17953
|
const textFieldsAttrs = [
|
18251
17954
|
'full-width',
|
@@ -18269,7 +17972,7 @@ const attrMappings = {
|
|
18269
17972
|
const attrsToSync = [...textFieldsAttrs, ...textsAttrs];
|
18270
17973
|
|
18271
17974
|
const attrsToReRender = ['questions'];
|
18272
|
-
class RawSecurityQuestionsVerify extends createBaseClass$1({ componentName: componentName$
|
17975
|
+
class RawSecurityQuestionsVerify extends createBaseClass$1({ componentName: componentName$f, baseSelector: 'div' }) {
|
18273
17976
|
constructor() {
|
18274
17977
|
super();
|
18275
17978
|
|
@@ -18343,7 +18046,7 @@ class RawSecurityQuestionsVerify extends createBaseClass$1({ componentName: comp
|
|
18343
18046
|
return JSON.parse(this.getAttribute('questions')) || [];
|
18344
18047
|
} catch (e) {
|
18345
18048
|
// eslint-disable-next-line no-console
|
18346
|
-
console.error(componentName$
|
18049
|
+
console.error(componentName$f, 'Error parsing questions attribute', e);
|
18347
18050
|
return [];
|
18348
18051
|
}
|
18349
18052
|
}
|
@@ -18478,7 +18181,7 @@ const SecurityQuestionsVerifyClass = compose$1(
|
|
18478
18181
|
componentNameValidationMixin$1
|
18479
18182
|
)(RawSecurityQuestionsVerify);
|
18480
18183
|
|
18481
|
-
customElements.define(componentName$
|
18184
|
+
customElements.define(componentName$f, SecurityQuestionsVerifyClass);
|
18482
18185
|
|
18483
18186
|
const NUMERIC_RE = /^\d+$/;
|
18484
18187
|
|
@@ -18486,7 +18189,7 @@ const isNumericValue = (val) => NUMERIC_RE.test(val.replaceAll('+', '').replaceA
|
|
18486
18189
|
|
18487
18190
|
const sanitizeCountryCodePrefix = (val) => val.replace(/\+\d+-/, '');
|
18488
18191
|
|
18489
|
-
const componentName$
|
18192
|
+
const componentName$e = getComponentName$1('hybrid-field');
|
18490
18193
|
|
18491
18194
|
const attrs = {
|
18492
18195
|
shared: [
|
@@ -18552,7 +18255,7 @@ const PHONE_FIELD = 'descope-phone-field';
|
|
18552
18255
|
const PHONE_INPUT_BOX_FIELD = 'descope-phone-input-box-field';
|
18553
18256
|
|
18554
18257
|
const BaseClass$2 = createBaseClass$1({
|
18555
|
-
componentName: componentName$
|
18258
|
+
componentName: componentName$e,
|
18556
18259
|
baseSelector: 'div',
|
18557
18260
|
});
|
18558
18261
|
|
@@ -18865,7 +18568,304 @@ const HybridFieldClass = compose$1(
|
|
18865
18568
|
componentNameValidationMixin$1
|
18866
18569
|
)(RawHybridField);
|
18867
18570
|
|
18868
|
-
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);
|
18869
18869
|
|
18870
18870
|
const componentName$b = getComponentName$1('alert');
|
18871
18871
|
|
@@ -20371,7 +20371,7 @@ var text$2 = /*#__PURE__*/Object.freeze({
|
|
20371
20371
|
vars: vars$O
|
20372
20372
|
});
|
20373
20373
|
|
20374
|
-
const globalRefs$z = getThemeRefs(globals
|
20374
|
+
const globalRefs$z = getThemeRefs$1(globals);
|
20375
20375
|
const vars$N = LinkClass.cssVarList;
|
20376
20376
|
|
20377
20377
|
const link = {
|
@@ -20407,22 +20407,22 @@ var link$1 = /*#__PURE__*/Object.freeze({
|
|
20407
20407
|
vars: vars$N
|
20408
20408
|
});
|
20409
20409
|
|
20410
|
-
const globalRefs$y = getThemeRefs(globals
|
20410
|
+
const globalRefs$y = getThemeRefs$1(globals);
|
20411
20411
|
const vars$M = EnrichedTextClass.cssVarList;
|
20412
20412
|
|
20413
20413
|
const enrichedText = {
|
20414
20414
|
[vars$M.hostDirection]: globalRefs$y.direction,
|
20415
|
-
[vars$M.hostWidth]: useVar(vars$O.hostWidth),
|
20415
|
+
[vars$M.hostWidth]: useVar$1(vars$O.hostWidth),
|
20416
20416
|
|
20417
|
-
[vars$M.textLineHeight]: useVar(vars$O.textLineHeight),
|
20418
|
-
[vars$M.textColor]: useVar(vars$O.textColor),
|
20419
|
-
[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),
|
20420
20420
|
|
20421
|
-
[vars$M.fontSize]: useVar(vars$O.fontSize),
|
20422
|
-
[vars$M.fontWeight]: useVar(vars$O.fontWeight),
|
20423
|
-
[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),
|
20424
20424
|
|
20425
|
-
[vars$M.linkColor]: useVar(vars$N.textColor),
|
20425
|
+
[vars$M.linkColor]: useVar$1(vars$N.textColor),
|
20426
20426
|
[vars$M.linkTextDecoration]: 'none',
|
20427
20427
|
[vars$M.linkHoverTextDecoration]: 'underline',
|
20428
20428
|
|
@@ -21992,7 +21992,7 @@ const compVars$2 = ListClass.cssVarList;
|
|
21992
21992
|
|
21993
21993
|
const [helperTheme$1, helperRefs$1, helperVars$1] = createHelperVars(
|
21994
21994
|
{ shadowColor: '#00000020' },
|
21995
|
-
componentName$
|
21995
|
+
componentName$m
|
21996
21996
|
);
|
21997
21997
|
|
21998
21998
|
const { shadowColor: shadowColor$1 } = helperRefs$1;
|