@descope/flow-components 3.22.3 → 3.23.1
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/fm/222.js +1 -1
- package/dist/fm/222.js.map +1 -1
- package/dist/fm/467.js +1 -1
- package/dist/fm/467.js.map +1 -1
- package/dist/fm/734.js +2 -0
- package/dist/fm/734.js.map +1 -0
- package/dist/fm/985.js +1 -1
- package/dist/fm/985.js.map +1 -1
- package/dist/fm/@mf-types/compiled-types/ActiveSessions/ActiveSessions.d.ts +27 -0
- package/dist/fm/@mf-types/compiled-types/ActiveSessions/index.d.ts +1 -0
- package/dist/fm/@mf-types/compiled-types/RecaptchaV2/RecaptchaV2.d.ts +1 -0
- package/dist/fm/@mf-types/compiled-types/componentClasses.d.ts +1 -0
- package/dist/fm/@mf-types/compiled-types/components.d.ts +1 -0
- package/dist/fm/__federation_expose_componentClasses.js +1 -1
- package/dist/fm/__federation_expose_componentClasses.js.map +1 -1
- package/dist/fm/__federation_expose_components.js +1 -1
- package/dist/fm/__federation_expose_theme.js +1 -1
- package/dist/fm/__federation_expose_theme.js.map +1 -1
- package/dist/fm/flowComponents.js +1 -1
- package/dist/fm/flowComponents.js.map +1 -1
- package/dist/fm/main.js +1 -1
- package/dist/fm/main.js.map +1 -1
- package/dist/fm/mf-manifest.json +2 -2
- package/dist/fm/mf-stats.json +2 -2
- package/dist/index.cjs.js +1037 -592
- package/dist/index.d.ts +168 -141
- package/dist/index.esm.js +23 -4
- package/dist/types/ActiveSessions/ActiveSessions.d.ts +27 -0
- package/dist/types/ActiveSessions/index.d.ts +1 -0
- package/dist/types/RecaptchaV2/RecaptchaV2.d.ts +1 -0
- package/dist/types/componentClasses.d.ts +1 -0
- package/dist/types/components.d.ts +1 -0
- package/package.json +2 -2
- package/dist/fm/114.js +0 -2
- package/dist/fm/114.js.map +0 -1
package/dist/index.cjs.js
CHANGED
|
@@ -78110,6 +78110,40 @@ function requireIndex_cjs () {
|
|
|
78110
78110
|
observeAttributes$1(ele2, createSyncAttrsCb$1(ele2, ele1), options);
|
|
78111
78111
|
};
|
|
78112
78112
|
|
|
78113
|
+
// A custom element has no shadow root on the first tick, so anything reaching into one has to
|
|
78114
|
+
// wait for it. Takes a function rather than the element, because the element itself is often not
|
|
78115
|
+
// there yet either.
|
|
78116
|
+
//
|
|
78117
|
+
// On giving up it resolves the element it was given, not a shadow root. `portalMixin` relies on
|
|
78118
|
+
// that to carry on with something usable, so a caller that cannot use the element must check what
|
|
78119
|
+
// it got back.
|
|
78120
|
+
const waitForShadowRoot$1 = (getRootElementFn) => async (that) => {
|
|
78121
|
+
const ele = await getRootElementFn(that);
|
|
78122
|
+
|
|
78123
|
+
return new Promise((res) => {
|
|
78124
|
+
const MAX_RETRIES = 20;
|
|
78125
|
+
let counter = 0;
|
|
78126
|
+
|
|
78127
|
+
const check = () => {
|
|
78128
|
+
if (counter > MAX_RETRIES) {
|
|
78129
|
+
// eslint-disable-next-line no-console
|
|
78130
|
+
console.error('could not get shadow root for element', ele);
|
|
78131
|
+
res(ele);
|
|
78132
|
+
return;
|
|
78133
|
+
}
|
|
78134
|
+
|
|
78135
|
+
counter++;
|
|
78136
|
+
|
|
78137
|
+
if (!ele?.shadowRoot) {
|
|
78138
|
+
setTimeout(check);
|
|
78139
|
+
} else {
|
|
78140
|
+
res(ele.shadowRoot);
|
|
78141
|
+
}
|
|
78142
|
+
};
|
|
78143
|
+
check();
|
|
78144
|
+
});
|
|
78145
|
+
};
|
|
78146
|
+
|
|
78113
78147
|
const getComponentName$1 = (name) => kebabCaseJoin$1(DESCOPE_PREFIX$1, name);
|
|
78114
78148
|
|
|
78115
78149
|
const getCssVarName$1 = (...args) => `--${kebabCaseJoin$1(...args)}`;
|
|
@@ -78270,6 +78304,39 @@ function requireIndex_cjs () {
|
|
|
78270
78304
|
observeAttributes(ele2, createSyncAttrsCb(ele2, ele1), options);
|
|
78271
78305
|
};
|
|
78272
78306
|
|
|
78307
|
+
// A custom element has no shadow root on the first tick, so anything reaching into one has to
|
|
78308
|
+
// wait for it. Takes a function rather than the element, because the element itself is often not
|
|
78309
|
+
// there yet either.
|
|
78310
|
+
//
|
|
78311
|
+
// On giving up it resolves the element it was given, not a shadow root. `portalMixin` relies on
|
|
78312
|
+
// that to carry on with something usable, so a caller that cannot use the element must check what
|
|
78313
|
+
// it got back.
|
|
78314
|
+
const waitForShadowRoot = (getRootElementFn) => async (that) => {
|
|
78315
|
+
const ele = await getRootElementFn(that);
|
|
78316
|
+
|
|
78317
|
+
return new Promise((res) => {
|
|
78318
|
+
const MAX_RETRIES = 20;
|
|
78319
|
+
let counter = 0;
|
|
78320
|
+
|
|
78321
|
+
const check = () => {
|
|
78322
|
+
if (counter > MAX_RETRIES) {
|
|
78323
|
+
console.error('could not get shadow root for element', ele);
|
|
78324
|
+
res(ele);
|
|
78325
|
+
return;
|
|
78326
|
+
}
|
|
78327
|
+
|
|
78328
|
+
counter++;
|
|
78329
|
+
|
|
78330
|
+
if (!ele?.shadowRoot) {
|
|
78331
|
+
setTimeout(check);
|
|
78332
|
+
} else {
|
|
78333
|
+
res(ele.shadowRoot);
|
|
78334
|
+
}
|
|
78335
|
+
};
|
|
78336
|
+
check();
|
|
78337
|
+
});
|
|
78338
|
+
};
|
|
78339
|
+
|
|
78273
78340
|
const getComponentName = (name) => kebabCaseJoin(DESCOPE_PREFIX, name);
|
|
78274
78341
|
|
|
78275
78342
|
const getCssVarName = (...args) => `--${kebabCaseJoin(...args)}`;
|
|
@@ -79338,7 +79405,7 @@ function requireIndex_cjs () {
|
|
|
79338
79405
|
fonts: fonts$1,
|
|
79339
79406
|
direction: direction$1,
|
|
79340
79407
|
};
|
|
79341
|
-
const vars$
|
|
79408
|
+
const vars$1d = getThemeVars(globals$1);
|
|
79342
79409
|
|
|
79343
79410
|
const direction = 'ltr';
|
|
79344
79411
|
|
|
@@ -79642,7 +79709,7 @@ function requireIndex_cjs () {
|
|
|
79642
79709
|
const STYLE_OVERRIDE_ATTR_PREFIX$1 = 'st';
|
|
79643
79710
|
|
|
79644
79711
|
const createStyleMixin$1 =
|
|
79645
|
-
({ mappings = {}, componentNameOverride = '' }) =>
|
|
79712
|
+
({ mappings = {}, componentNameOverride = '', style = '' }) =>
|
|
79646
79713
|
(superclass) => {
|
|
79647
79714
|
const componentName = componentNameOverride || superclass.componentName;
|
|
79648
79715
|
|
|
@@ -79696,7 +79763,7 @@ function requireIndex_cjs () {
|
|
|
79696
79763
|
);
|
|
79697
79764
|
}
|
|
79698
79765
|
|
|
79699
|
-
|
|
79766
|
+
|
|
79700
79767
|
get #componentTheme() {
|
|
79701
79768
|
return componentsThemeManager.currentTheme?.[componentName] || '';
|
|
79702
79769
|
}
|
|
@@ -79732,6 +79799,7 @@ function requireIndex_cjs () {
|
|
|
79732
79799
|
if (elementId) {
|
|
79733
79800
|
// basically this is enough to make the selector more specific
|
|
79734
79801
|
// but just in case there is no id, we will also add the class multiple times
|
|
79802
|
+
// eslint-disable-next-line no-undef
|
|
79735
79803
|
classSpecifier += `#${CSS.escape(elementId)}`;
|
|
79736
79804
|
}
|
|
79737
79805
|
|
|
@@ -79779,6 +79847,14 @@ function requireIndex_cjs () {
|
|
|
79779
79847
|
}
|
|
79780
79848
|
}
|
|
79781
79849
|
|
|
79850
|
+
// Rules the component needs wherever this mixin writes, which for a portal is a shadow root
|
|
79851
|
+
// it does not own. Prepended after the mapping rules so those still win: the mapping is the
|
|
79852
|
+
// themeable half, this is the structure underneath it.
|
|
79853
|
+
#createStaticStyle() {
|
|
79854
|
+
const css = isFunction(style) ? style() : style;
|
|
79855
|
+
if (css) injectStyle(css, this.#rootElement, { prepend: true });
|
|
79856
|
+
}
|
|
79857
|
+
|
|
79782
79858
|
#addClassName(className) {
|
|
79783
79859
|
(
|
|
79784
79860
|
this.#rootElement?.classList ||
|
|
@@ -79796,6 +79872,7 @@ function requireIndex_cjs () {
|
|
|
79796
79872
|
this.#addClassName(componentName);
|
|
79797
79873
|
|
|
79798
79874
|
this.#createMappingStyle();
|
|
79875
|
+
this.#createStaticStyle();
|
|
79799
79876
|
this.#createComponentTheme();
|
|
79800
79877
|
this.#createOverridesStyle();
|
|
79801
79878
|
|
|
@@ -80748,46 +80825,31 @@ function requireIndex_cjs () {
|
|
|
80748
80825
|
|
|
80749
80826
|
const sanitizeSelector = (selector) => selector.replace(/[^\w\s]/gi, '');
|
|
80750
80827
|
|
|
80751
|
-
const withWaitForShadowRoot$1 = (getRootElementFn) => async (that) => {
|
|
80752
|
-
const ele = await getRootElementFn(that);
|
|
80753
|
-
|
|
80754
|
-
return new Promise((res) => {
|
|
80755
|
-
const MAX_RETRIES = 20;
|
|
80756
|
-
let counter = 0;
|
|
80757
|
-
|
|
80758
|
-
const check = () => {
|
|
80759
|
-
if (counter > MAX_RETRIES) {
|
|
80760
|
-
// eslint-disable-next-line no-console
|
|
80761
|
-
console.error('could not get shadow root for element', ele);
|
|
80762
|
-
res(ele);
|
|
80763
|
-
return;
|
|
80764
|
-
}
|
|
80765
|
-
|
|
80766
|
-
counter++;
|
|
80767
|
-
|
|
80768
|
-
if (!ele?.shadowRoot) {
|
|
80769
|
-
setTimeout(check);
|
|
80770
|
-
} else {
|
|
80771
|
-
res(ele.shadowRoot);
|
|
80772
|
-
return;
|
|
80773
|
-
}
|
|
80774
|
-
};
|
|
80775
|
-
check();
|
|
80776
|
-
});
|
|
80777
|
-
};
|
|
80778
|
-
|
|
80779
80828
|
const portalMixin$1 =
|
|
80780
80829
|
({
|
|
80781
80830
|
name,
|
|
80782
80831
|
selector,
|
|
80783
80832
|
mappings = {},
|
|
80784
|
-
|
|
80833
|
+
// Static css for the portal's own root, for rules that should not become themeable knobs.
|
|
80834
|
+
style = '',
|
|
80835
|
+
// `false` forwards nothing to the portal element. It needs its own value because an empty
|
|
80836
|
+
// `attributes` list already means "no filter", so it forwards everything rather than nothing.
|
|
80837
|
+
// Forwarding is wrong for a portal whose element is not a copy of the host, where attributes
|
|
80838
|
+
// like `data` or `label` would land somewhere that does not expect them.
|
|
80839
|
+
forward = {},
|
|
80785
80840
|
}) =>
|
|
80786
80841
|
(superclass) => {
|
|
80842
|
+
// A function selector has no text to derive a name from, and an empty one would quietly
|
|
80843
|
+
// produce empty css var names, so say so instead.
|
|
80844
|
+
if (isFunction(selector) && !name) {
|
|
80845
|
+
throw new Error('portalMixin: a function selector requires a name');
|
|
80846
|
+
}
|
|
80847
|
+
|
|
80787
80848
|
const eleDisplayName = name || sanitizeSelector(selector);
|
|
80788
80849
|
|
|
80789
80850
|
const BaseClass = createStyleMixin$1({
|
|
80790
80851
|
mappings,
|
|
80852
|
+
style,
|
|
80791
80853
|
})(superclass);
|
|
80792
80854
|
|
|
80793
80855
|
return class PortalMixinClass extends BaseClass {
|
|
@@ -80820,13 +80882,18 @@ function requireIndex_cjs () {
|
|
|
80820
80882
|
|
|
80821
80883
|
// in case we have a selector, we should first wait for the base element shadow root
|
|
80822
80884
|
// and then look for the internal element
|
|
80823
|
-
const baseEleShadowRoot = await
|
|
80885
|
+
const baseEleShadowRoot = await waitForShadowRoot(() => baseEle)(
|
|
80824
80886
|
that,
|
|
80825
80887
|
);
|
|
80826
|
-
|
|
80888
|
+
|
|
80889
|
+
// a string selector only reaches inside that one shadow root. a portal that sits deeper
|
|
80890
|
+
// takes a function instead, which receives the root and may await its own way down.
|
|
80891
|
+
return isFunction(selector)
|
|
80892
|
+
? selector(baseEleShadowRoot)
|
|
80893
|
+
: baseEleShadowRoot.querySelector(selector);
|
|
80827
80894
|
};
|
|
80828
80895
|
|
|
80829
|
-
const getPortalElement =
|
|
80896
|
+
const getPortalElement = waitForShadowRoot(getRootElement);
|
|
80830
80897
|
|
|
80831
80898
|
super({
|
|
80832
80899
|
getRootElement: getPortalElement,
|
|
@@ -80861,9 +80928,12 @@ function requireIndex_cjs () {
|
|
|
80861
80928
|
// Initialize portal element lookup here (deferred from constructor for React compatibility)
|
|
80862
80929
|
this.#portalEle = this.#getPortalElement();
|
|
80863
80930
|
const portalEle = await this.#portalEle;
|
|
80864
|
-
|
|
80865
|
-
[include
|
|
80866
|
-
|
|
80931
|
+
if (forward !== false) {
|
|
80932
|
+
const { attributes = [], include = true } = forward;
|
|
80933
|
+
forwardAttrs(this, portalEle, {
|
|
80934
|
+
[include ? 'includeAttrs' : 'excludeAttrs']: attributes,
|
|
80935
|
+
});
|
|
80936
|
+
}
|
|
80867
80937
|
|
|
80868
80938
|
this.#handleHoverAttribute();
|
|
80869
80939
|
}
|
|
@@ -81188,12 +81258,12 @@ function requireIndex_cjs () {
|
|
|
81188
81258
|
}
|
|
81189
81259
|
};
|
|
81190
81260
|
|
|
81191
|
-
const componentName$
|
|
81261
|
+
const componentName$1u = getComponentName('image');
|
|
81192
81262
|
|
|
81193
81263
|
const srcAttrs = ['src', 'src-dark'];
|
|
81194
81264
|
|
|
81195
81265
|
class RawImage extends createBaseClass$1({
|
|
81196
|
-
componentName: componentName$
|
|
81266
|
+
componentName: componentName$1u,
|
|
81197
81267
|
baseSelector: 'slot',
|
|
81198
81268
|
}) {
|
|
81199
81269
|
static get observedAttributes() {
|
|
@@ -81321,7 +81391,7 @@ function requireIndex_cjs () {
|
|
|
81321
81391
|
componentNameValidationMixin$1,
|
|
81322
81392
|
)(RawImage);
|
|
81323
81393
|
|
|
81324
|
-
const componentName$
|
|
81394
|
+
const componentName$1t = getComponentName('icon');
|
|
81325
81395
|
|
|
81326
81396
|
const IconClass = compose(
|
|
81327
81397
|
createStyleMixin$1({
|
|
@@ -81346,7 +81416,7 @@ function requireIndex_cjs () {
|
|
|
81346
81416
|
}
|
|
81347
81417
|
`,
|
|
81348
81418
|
excludeAttrsSync: ['tabindex', 'class', 'style', 'st-height', 'st-width'],
|
|
81349
|
-
componentName: componentName$
|
|
81419
|
+
componentName: componentName$1t,
|
|
81350
81420
|
}),
|
|
81351
81421
|
);
|
|
81352
81422
|
|
|
@@ -81361,7 +81431,7 @@ function requireIndex_cjs () {
|
|
|
81361
81431
|
}
|
|
81362
81432
|
};
|
|
81363
81433
|
|
|
81364
|
-
const componentName$
|
|
81434
|
+
const componentName$1s = getComponentName('button');
|
|
81365
81435
|
|
|
81366
81436
|
const resetStyles = `
|
|
81367
81437
|
:host {
|
|
@@ -81399,7 +81469,7 @@ function requireIndex_cjs () {
|
|
|
81399
81469
|
|
|
81400
81470
|
const editorOverrides = `vaadin-button::part(label) { pointer-events: none; }`;
|
|
81401
81471
|
|
|
81402
|
-
const { host: host$
|
|
81472
|
+
const { host: host$F, label: label$a, slottedIcon } = {
|
|
81403
81473
|
host: { selector: () => ':host' },
|
|
81404
81474
|
label: { selector: '::part(label)' },
|
|
81405
81475
|
slottedIcon: { selector: () => '::slotted(descope-icon)' },
|
|
@@ -81412,9 +81482,9 @@ function requireIndex_cjs () {
|
|
|
81412
81482
|
createStyleMixin$1({
|
|
81413
81483
|
mappings: {
|
|
81414
81484
|
hostWidth: { property: 'width' },
|
|
81415
|
-
hostMaxWidth: { ...host$
|
|
81485
|
+
hostMaxWidth: { ...host$F, property: 'max-width' },
|
|
81416
81486
|
hostHeight: { property: 'height' },
|
|
81417
|
-
hostDirection: { ...host$
|
|
81487
|
+
hostDirection: { ...host$F, property: 'direction' },
|
|
81418
81488
|
fontSize: {},
|
|
81419
81489
|
fontFamily: {},
|
|
81420
81490
|
fontWeight: {},
|
|
@@ -81483,7 +81553,7 @@ function requireIndex_cjs () {
|
|
|
81483
81553
|
}
|
|
81484
81554
|
`,
|
|
81485
81555
|
excludeAttrsSync: ['tabindex', 'class', 'style'],
|
|
81486
|
-
componentName: componentName$
|
|
81556
|
+
componentName: componentName$1s,
|
|
81487
81557
|
}),
|
|
81488
81558
|
);
|
|
81489
81559
|
|
|
@@ -81533,7 +81603,7 @@ function requireIndex_cjs () {
|
|
|
81533
81603
|
|
|
81534
81604
|
const [helperTheme$7, helperRefs$7, helperVars$6] = createHelperVars$1(
|
|
81535
81605
|
{ mode },
|
|
81536
|
-
componentName$
|
|
81606
|
+
componentName$1s,
|
|
81537
81607
|
);
|
|
81538
81608
|
|
|
81539
81609
|
const button = {
|
|
@@ -81653,7 +81723,7 @@ function requireIndex_cjs () {
|
|
|
81653
81723
|
},
|
|
81654
81724
|
};
|
|
81655
81725
|
|
|
81656
|
-
const vars$
|
|
81726
|
+
const vars$1c = {
|
|
81657
81727
|
...compVars$9,
|
|
81658
81728
|
...helperVars$6,
|
|
81659
81729
|
};
|
|
@@ -81661,13 +81731,13 @@ function requireIndex_cjs () {
|
|
|
81661
81731
|
var button$1 = /*#__PURE__*/Object.freeze({
|
|
81662
81732
|
__proto__: null,
|
|
81663
81733
|
default: button,
|
|
81664
|
-
vars: vars$
|
|
81734
|
+
vars: vars$1c
|
|
81665
81735
|
});
|
|
81666
81736
|
|
|
81667
|
-
const componentName$
|
|
81737
|
+
const componentName$1r = getComponentName('text');
|
|
81668
81738
|
|
|
81669
81739
|
class RawText extends createBaseClass$1({
|
|
81670
|
-
componentName: componentName$
|
|
81740
|
+
componentName: componentName$1r,
|
|
81671
81741
|
baseSelector: ':host > slot',
|
|
81672
81742
|
}) {
|
|
81673
81743
|
constructor() {
|
|
@@ -81706,15 +81776,15 @@ function requireIndex_cjs () {
|
|
|
81706
81776
|
}
|
|
81707
81777
|
}
|
|
81708
81778
|
|
|
81709
|
-
const { host: host$
|
|
81779
|
+
const { host: host$E } = {
|
|
81710
81780
|
host: { selector: () => ':host' },
|
|
81711
81781
|
};
|
|
81712
81782
|
|
|
81713
81783
|
const TextClass = compose(
|
|
81714
81784
|
createStyleMixin$1({
|
|
81715
81785
|
mappings: {
|
|
81716
|
-
hostWidth: { ...host$
|
|
81717
|
-
hostDirection: { ...host$
|
|
81786
|
+
hostWidth: { ...host$E, property: 'width' },
|
|
81787
|
+
hostDirection: { ...host$E, property: 'direction' },
|
|
81718
81788
|
fontSize: {},
|
|
81719
81789
|
textColor: [{ property: 'color' }],
|
|
81720
81790
|
textLineHeight: { property: 'line-height' },
|
|
@@ -81736,106 +81806,106 @@ function requireIndex_cjs () {
|
|
|
81736
81806
|
)(RawText);
|
|
81737
81807
|
|
|
81738
81808
|
const globalRefs$J = getThemeRefs$1(globals);
|
|
81739
|
-
const vars$
|
|
81809
|
+
const vars$1b = TextClass.cssVarList;
|
|
81740
81810
|
|
|
81741
81811
|
const text$3 = {
|
|
81742
|
-
[vars$
|
|
81743
|
-
[vars$
|
|
81744
|
-
[vars$
|
|
81745
|
-
[vars$
|
|
81812
|
+
[vars$1b.hostDirection]: globalRefs$J.direction,
|
|
81813
|
+
[vars$1b.textLineHeight]: '1.35em',
|
|
81814
|
+
[vars$1b.textAlign]: 'start',
|
|
81815
|
+
[vars$1b.textColor]: globalRefs$J.colors.surface.dark,
|
|
81746
81816
|
|
|
81747
81817
|
variant: {
|
|
81748
81818
|
h1: {
|
|
81749
|
-
[vars$
|
|
81750
|
-
[vars$
|
|
81751
|
-
[vars$
|
|
81819
|
+
[vars$1b.fontSize]: globalRefs$J.typography.h1.size,
|
|
81820
|
+
[vars$1b.fontWeight]: globalRefs$J.typography.h1.weight,
|
|
81821
|
+
[vars$1b.fontFamily]: globalRefs$J.typography.h1.font,
|
|
81752
81822
|
},
|
|
81753
81823
|
h2: {
|
|
81754
|
-
[vars$
|
|
81755
|
-
[vars$
|
|
81756
|
-
[vars$
|
|
81824
|
+
[vars$1b.fontSize]: globalRefs$J.typography.h2.size,
|
|
81825
|
+
[vars$1b.fontWeight]: globalRefs$J.typography.h2.weight,
|
|
81826
|
+
[vars$1b.fontFamily]: globalRefs$J.typography.h2.font,
|
|
81757
81827
|
},
|
|
81758
81828
|
h3: {
|
|
81759
|
-
[vars$
|
|
81760
|
-
[vars$
|
|
81761
|
-
[vars$
|
|
81829
|
+
[vars$1b.fontSize]: globalRefs$J.typography.h3.size,
|
|
81830
|
+
[vars$1b.fontWeight]: globalRefs$J.typography.h3.weight,
|
|
81831
|
+
[vars$1b.fontFamily]: globalRefs$J.typography.h3.font,
|
|
81762
81832
|
},
|
|
81763
81833
|
subtitle1: {
|
|
81764
|
-
[vars$
|
|
81765
|
-
[vars$
|
|
81766
|
-
[vars$
|
|
81834
|
+
[vars$1b.fontSize]: globalRefs$J.typography.subtitle1.size,
|
|
81835
|
+
[vars$1b.fontWeight]: globalRefs$J.typography.subtitle1.weight,
|
|
81836
|
+
[vars$1b.fontFamily]: globalRefs$J.typography.subtitle1.font,
|
|
81767
81837
|
},
|
|
81768
81838
|
subtitle2: {
|
|
81769
|
-
[vars$
|
|
81770
|
-
[vars$
|
|
81771
|
-
[vars$
|
|
81839
|
+
[vars$1b.fontSize]: globalRefs$J.typography.subtitle2.size,
|
|
81840
|
+
[vars$1b.fontWeight]: globalRefs$J.typography.subtitle2.weight,
|
|
81841
|
+
[vars$1b.fontFamily]: globalRefs$J.typography.subtitle2.font,
|
|
81772
81842
|
},
|
|
81773
81843
|
body1: {
|
|
81774
|
-
[vars$
|
|
81775
|
-
[vars$
|
|
81776
|
-
[vars$
|
|
81844
|
+
[vars$1b.fontSize]: globalRefs$J.typography.body1.size,
|
|
81845
|
+
[vars$1b.fontWeight]: globalRefs$J.typography.body1.weight,
|
|
81846
|
+
[vars$1b.fontFamily]: globalRefs$J.typography.body1.font,
|
|
81777
81847
|
},
|
|
81778
81848
|
body2: {
|
|
81779
|
-
[vars$
|
|
81780
|
-
[vars$
|
|
81781
|
-
[vars$
|
|
81849
|
+
[vars$1b.fontSize]: globalRefs$J.typography.body2.size,
|
|
81850
|
+
[vars$1b.fontWeight]: globalRefs$J.typography.body2.weight,
|
|
81851
|
+
[vars$1b.fontFamily]: globalRefs$J.typography.body2.font,
|
|
81782
81852
|
},
|
|
81783
81853
|
},
|
|
81784
81854
|
|
|
81785
81855
|
mode: {
|
|
81786
81856
|
primary: {
|
|
81787
|
-
[vars$
|
|
81857
|
+
[vars$1b.textColor]: globalRefs$J.colors.surface.contrast,
|
|
81788
81858
|
},
|
|
81789
81859
|
secondary: {
|
|
81790
|
-
[vars$
|
|
81860
|
+
[vars$1b.textColor]: globalRefs$J.colors.surface.dark,
|
|
81791
81861
|
},
|
|
81792
81862
|
error: {
|
|
81793
|
-
[vars$
|
|
81863
|
+
[vars$1b.textColor]: globalRefs$J.colors.error.main,
|
|
81794
81864
|
},
|
|
81795
81865
|
'error-dark': {
|
|
81796
|
-
[vars$
|
|
81866
|
+
[vars$1b.textColor]: globalRefs$J.colors.error.dark,
|
|
81797
81867
|
},
|
|
81798
81868
|
success: {
|
|
81799
|
-
[vars$
|
|
81869
|
+
[vars$1b.textColor]: globalRefs$J.colors.success.main,
|
|
81800
81870
|
},
|
|
81801
81871
|
'success-dark': {
|
|
81802
|
-
[vars$
|
|
81872
|
+
[vars$1b.textColor]: globalRefs$J.colors.success.dark,
|
|
81803
81873
|
},
|
|
81804
81874
|
warning: {
|
|
81805
|
-
[vars$
|
|
81875
|
+
[vars$1b.textColor]: globalRefs$J.colors.warning.main,
|
|
81806
81876
|
},
|
|
81807
81877
|
'warning-dark': {
|
|
81808
|
-
[vars$
|
|
81878
|
+
[vars$1b.textColor]: globalRefs$J.colors.warning.dark,
|
|
81809
81879
|
},
|
|
81810
81880
|
},
|
|
81811
81881
|
|
|
81812
81882
|
textAlign: {
|
|
81813
|
-
right: { [vars$
|
|
81814
|
-
left: { [vars$
|
|
81815
|
-
center: { [vars$
|
|
81883
|
+
right: { [vars$1b.textAlign]: 'right' },
|
|
81884
|
+
left: { [vars$1b.textAlign]: 'left' },
|
|
81885
|
+
center: { [vars$1b.textAlign]: 'center' },
|
|
81816
81886
|
},
|
|
81817
81887
|
|
|
81818
81888
|
_fullWidth: {
|
|
81819
|
-
[vars$
|
|
81889
|
+
[vars$1b.hostWidth]: '100%',
|
|
81820
81890
|
},
|
|
81821
81891
|
|
|
81822
81892
|
_italic: {
|
|
81823
|
-
[vars$
|
|
81893
|
+
[vars$1b.fontStyle]: 'italic',
|
|
81824
81894
|
},
|
|
81825
81895
|
|
|
81826
81896
|
_uppercase: {
|
|
81827
|
-
[vars$
|
|
81897
|
+
[vars$1b.textTransform]: 'uppercase',
|
|
81828
81898
|
},
|
|
81829
81899
|
|
|
81830
81900
|
_lowercase: {
|
|
81831
|
-
[vars$
|
|
81901
|
+
[vars$1b.textTransform]: 'lowercase',
|
|
81832
81902
|
},
|
|
81833
81903
|
};
|
|
81834
81904
|
|
|
81835
81905
|
var text$4 = /*#__PURE__*/Object.freeze({
|
|
81836
81906
|
__proto__: null,
|
|
81837
81907
|
default: text$3,
|
|
81838
|
-
vars: vars$
|
|
81908
|
+
vars: vars$1b
|
|
81839
81909
|
});
|
|
81840
81910
|
|
|
81841
81911
|
const disableRules = [
|
|
@@ -81859,10 +81929,10 @@ function requireIndex_cjs () {
|
|
|
81859
81929
|
return textArea.value;
|
|
81860
81930
|
};
|
|
81861
81931
|
|
|
81862
|
-
const componentName$
|
|
81932
|
+
const componentName$1q = getComponentName('enriched-text');
|
|
81863
81933
|
|
|
81864
81934
|
class EnrichedText extends createBaseClass$1({
|
|
81865
|
-
componentName: componentName$
|
|
81935
|
+
componentName: componentName$1q,
|
|
81866
81936
|
baseSelector: ':host > div',
|
|
81867
81937
|
}) {
|
|
81868
81938
|
#origLinkRenderer;
|
|
@@ -82106,12 +82176,12 @@ function requireIndex_cjs () {
|
|
|
82106
82176
|
componentNameValidationMixin$1,
|
|
82107
82177
|
)(EnrichedText);
|
|
82108
82178
|
|
|
82109
|
-
const componentName$
|
|
82179
|
+
const componentName$1p = getComponentName('link');
|
|
82110
82180
|
|
|
82111
82181
|
const observedAttrs$8 = ['href', 'readonly'];
|
|
82112
82182
|
|
|
82113
82183
|
class RawLink extends createBaseClass$1({
|
|
82114
|
-
componentName: componentName$
|
|
82184
|
+
componentName: componentName$1p,
|
|
82115
82185
|
baseSelector: ':host a',
|
|
82116
82186
|
}) {
|
|
82117
82187
|
static get observedAttributes() {
|
|
@@ -82186,12 +82256,12 @@ function requireIndex_cjs () {
|
|
|
82186
82256
|
text: { selector: () => TextClass.componentName },
|
|
82187
82257
|
};
|
|
82188
82258
|
|
|
82189
|
-
const { anchor, text: text$2, host: host$
|
|
82259
|
+
const { anchor, text: text$2, host: host$D, wrapper: wrapper$1, link: link$3 } = selectors$3;
|
|
82190
82260
|
|
|
82191
82261
|
const LinkClass = compose(
|
|
82192
82262
|
createStyleMixin$1({
|
|
82193
82263
|
mappings: {
|
|
82194
|
-
hostWidth: { ...host$
|
|
82264
|
+
hostWidth: { ...host$D, property: 'width' },
|
|
82195
82265
|
hostDirection: { ...text$2, property: 'direction' },
|
|
82196
82266
|
textAlign: wrapper$1,
|
|
82197
82267
|
textDecoration: {
|
|
@@ -82212,31 +82282,31 @@ function requireIndex_cjs () {
|
|
|
82212
82282
|
)(RawLink);
|
|
82213
82283
|
|
|
82214
82284
|
const globalRefs$I = getThemeRefs$1(globals);
|
|
82215
|
-
const vars$
|
|
82285
|
+
const vars$1a = LinkClass.cssVarList;
|
|
82216
82286
|
|
|
82217
82287
|
const link$1 = {
|
|
82218
|
-
[vars$
|
|
82219
|
-
[vars$
|
|
82288
|
+
[vars$1a.hostDirection]: globalRefs$I.direction,
|
|
82289
|
+
[vars$1a.cursor]: 'pointer',
|
|
82220
82290
|
|
|
82221
|
-
[vars$
|
|
82291
|
+
[vars$1a.textColor]: globalRefs$I.colors.primary.main,
|
|
82222
82292
|
|
|
82223
82293
|
textAlign: {
|
|
82224
|
-
right: { [vars$
|
|
82225
|
-
left: { [vars$
|
|
82226
|
-
center: { [vars$
|
|
82294
|
+
right: { [vars$1a.textAlign]: 'right' },
|
|
82295
|
+
left: { [vars$1a.textAlign]: 'left' },
|
|
82296
|
+
center: { [vars$1a.textAlign]: 'center' },
|
|
82227
82297
|
},
|
|
82228
82298
|
|
|
82229
82299
|
_fullWidth: {
|
|
82230
|
-
[vars$
|
|
82300
|
+
[vars$1a.hostWidth]: '100%',
|
|
82231
82301
|
},
|
|
82232
82302
|
|
|
82233
82303
|
_hover: {
|
|
82234
|
-
[vars$
|
|
82304
|
+
[vars$1a.textDecoration]: 'underline',
|
|
82235
82305
|
},
|
|
82236
82306
|
|
|
82237
82307
|
mode: {
|
|
82238
82308
|
secondary: {
|
|
82239
|
-
[vars$
|
|
82309
|
+
[vars$1a.textColor]: globalRefs$I.colors.secondary.main,
|
|
82240
82310
|
},
|
|
82241
82311
|
},
|
|
82242
82312
|
};
|
|
@@ -82244,37 +82314,37 @@ function requireIndex_cjs () {
|
|
|
82244
82314
|
var link$2 = /*#__PURE__*/Object.freeze({
|
|
82245
82315
|
__proto__: null,
|
|
82246
82316
|
default: link$1,
|
|
82247
|
-
vars: vars$
|
|
82317
|
+
vars: vars$1a
|
|
82248
82318
|
});
|
|
82249
82319
|
|
|
82250
82320
|
const globalRefs$H = getThemeRefs$1(globals);
|
|
82251
|
-
const vars$
|
|
82321
|
+
const vars$19 = EnrichedTextClass.cssVarList;
|
|
82252
82322
|
|
|
82253
82323
|
const enrichedText = {
|
|
82254
|
-
[vars$
|
|
82255
|
-
[vars$
|
|
82324
|
+
[vars$19.hostDirection]: globalRefs$H.direction,
|
|
82325
|
+
[vars$19.hostWidth]: useVar$1(vars$1b.hostWidth),
|
|
82256
82326
|
|
|
82257
|
-
[vars$
|
|
82258
|
-
[vars$
|
|
82259
|
-
[vars$
|
|
82327
|
+
[vars$19.textLineHeight]: useVar$1(vars$1b.textLineHeight),
|
|
82328
|
+
[vars$19.textColor]: useVar$1(vars$1b.textColor),
|
|
82329
|
+
[vars$19.textAlign]: useVar$1(vars$1b.textAlign),
|
|
82260
82330
|
|
|
82261
|
-
[vars$
|
|
82262
|
-
[vars$
|
|
82263
|
-
[vars$
|
|
82331
|
+
[vars$19.fontSize]: useVar$1(vars$1b.fontSize),
|
|
82332
|
+
[vars$19.fontWeight]: useVar$1(vars$1b.fontWeight),
|
|
82333
|
+
[vars$19.fontFamily]: useVar$1(vars$1b.fontFamily),
|
|
82264
82334
|
|
|
82265
|
-
[vars$
|
|
82266
|
-
[vars$
|
|
82267
|
-
[vars$
|
|
82335
|
+
[vars$19.linkColor]: useVar$1(vars$1a.textColor),
|
|
82336
|
+
[vars$19.linkTextDecoration]: 'none',
|
|
82337
|
+
[vars$19.linkHoverTextDecoration]: 'underline',
|
|
82268
82338
|
|
|
82269
|
-
[vars$
|
|
82270
|
-
[vars$
|
|
82271
|
-
[vars$
|
|
82339
|
+
[vars$19.fontWeightBold]: '900',
|
|
82340
|
+
[vars$19.minWidth]: '0.25em',
|
|
82341
|
+
[vars$19.minHeight]: '1.35em',
|
|
82272
82342
|
|
|
82273
|
-
[vars$
|
|
82343
|
+
[vars$19.hostDisplay]: 'inline-block',
|
|
82274
82344
|
|
|
82275
82345
|
_empty: {
|
|
82276
82346
|
_hideWhenEmpty: {
|
|
82277
|
-
[vars$
|
|
82347
|
+
[vars$19.hostDisplay]: 'none',
|
|
82278
82348
|
},
|
|
82279
82349
|
},
|
|
82280
82350
|
};
|
|
@@ -82282,10 +82352,10 @@ function requireIndex_cjs () {
|
|
|
82282
82352
|
var enrichedText$1 = /*#__PURE__*/Object.freeze({
|
|
82283
82353
|
__proto__: null,
|
|
82284
82354
|
default: enrichedText,
|
|
82285
|
-
vars: vars$
|
|
82355
|
+
vars: vars$19
|
|
82286
82356
|
});
|
|
82287
82357
|
|
|
82288
|
-
const componentName$
|
|
82358
|
+
const componentName$1o = getComponentName('combo-box');
|
|
82289
82359
|
|
|
82290
82360
|
const ComboBoxMixin = (superclass) =>
|
|
82291
82361
|
class ComboBoxMixinClass extends superclass {
|
|
@@ -82672,7 +82742,7 @@ function requireIndex_cjs () {
|
|
|
82672
82742
|
};
|
|
82673
82743
|
|
|
82674
82744
|
const {
|
|
82675
|
-
host: host$
|
|
82745
|
+
host: host$C,
|
|
82676
82746
|
inputField: inputField$6,
|
|
82677
82747
|
inputElement: inputElement$3,
|
|
82678
82748
|
placeholder: placeholder$3,
|
|
@@ -82704,10 +82774,10 @@ function requireIndex_cjs () {
|
|
|
82704
82774
|
const ComboBoxClass = compose(
|
|
82705
82775
|
createStyleMixin$1({
|
|
82706
82776
|
mappings: {
|
|
82707
|
-
hostWidth: { ...host$
|
|
82708
|
-
hostDirection: { ...host$
|
|
82777
|
+
hostWidth: { ...host$C, property: 'width' },
|
|
82778
|
+
hostDirection: { ...host$C, property: 'direction' },
|
|
82709
82779
|
// we apply font-size also on the host so we can set its width with em
|
|
82710
|
-
fontSize: [{}, host$
|
|
82780
|
+
fontSize: [{}, host$C],
|
|
82711
82781
|
fontFamily: [label$9, placeholder$3, inputField$6, helperText$a, errorMessage$d],
|
|
82712
82782
|
labelFontSize: { ...label$9, property: 'font-size' },
|
|
82713
82783
|
labelFontWeight: { ...label$9, property: 'font-weight' },
|
|
@@ -82982,12 +83052,12 @@ function requireIndex_cjs () {
|
|
|
82982
83052
|
'loading',
|
|
82983
83053
|
'style',
|
|
82984
83054
|
],
|
|
82985
|
-
componentName: componentName$
|
|
83055
|
+
componentName: componentName$1o,
|
|
82986
83056
|
includeForwardProps: ['items', 'renderer', 'selectedItem'],
|
|
82987
83057
|
}),
|
|
82988
83058
|
);
|
|
82989
83059
|
|
|
82990
|
-
const componentName$
|
|
83060
|
+
const componentName$1n = getComponentName('input-wrapper');
|
|
82991
83061
|
const globalRefs$G = getThemeRefs$1(globals);
|
|
82992
83062
|
|
|
82993
83063
|
const [theme$2, refs$1] = createHelperVars$1(
|
|
@@ -83117,120 +83187,120 @@ function requireIndex_cjs () {
|
|
|
83117
83187
|
inputTextSecurity: 'disc',
|
|
83118
83188
|
},
|
|
83119
83189
|
},
|
|
83120
|
-
componentName$
|
|
83190
|
+
componentName$1n,
|
|
83121
83191
|
);
|
|
83122
83192
|
|
|
83123
83193
|
const globalRefs$F = getThemeRefs$1(globals);
|
|
83124
|
-
const vars$
|
|
83125
|
-
|
|
83126
|
-
const comboBox = {
|
|
83127
|
-
[vars$
|
|
83128
|
-
[vars$
|
|
83129
|
-
[vars$
|
|
83130
|
-
[vars$
|
|
83131
|
-
[vars$
|
|
83132
|
-
[vars$
|
|
83133
|
-
[vars$
|
|
83134
|
-
[vars$
|
|
83135
|
-
[vars$
|
|
83136
|
-
[vars$
|
|
83137
|
-
[vars$
|
|
83138
|
-
[vars$
|
|
83139
|
-
[vars$
|
|
83140
|
-
[vars$
|
|
83141
|
-
[vars$
|
|
83142
|
-
[vars$
|
|
83143
|
-
[vars$
|
|
83144
|
-
[vars$
|
|
83145
|
-
[vars$
|
|
83146
|
-
[vars$
|
|
83147
|
-
[vars$
|
|
83148
|
-
[vars$
|
|
83149
|
-
[vars$
|
|
83150
|
-
[vars$
|
|
83151
|
-
[vars$
|
|
83152
|
-
[vars$
|
|
83153
|
-
[vars$
|
|
83154
|
-
[vars$
|
|
83155
|
-
[vars$
|
|
83156
|
-
[vars$
|
|
83157
|
-
[vars$
|
|
83158
|
-
[vars$
|
|
83159
|
-
[vars$
|
|
83160
|
-
[vars$
|
|
83161
|
-
[vars$
|
|
83162
|
-
[vars$
|
|
83163
|
-
[vars$
|
|
83164
|
-
[vars$
|
|
83165
|
-
[vars$
|
|
83166
|
-
[vars$
|
|
83167
|
-
[vars$
|
|
83168
|
-
[vars$
|
|
83194
|
+
const vars$18 = ComboBoxClass.cssVarList;
|
|
83195
|
+
|
|
83196
|
+
const comboBox$1 = {
|
|
83197
|
+
[vars$18.hostWidth]: refs$1.width,
|
|
83198
|
+
[vars$18.hostDirection]: refs$1.direction,
|
|
83199
|
+
[vars$18.fontSize]: refs$1.fontSize,
|
|
83200
|
+
[vars$18.fontFamily]: refs$1.fontFamily,
|
|
83201
|
+
[vars$18.labelFontSize]: refs$1.labelFontSize,
|
|
83202
|
+
[vars$18.labelFontWeight]: refs$1.labelFontWeight,
|
|
83203
|
+
[vars$18.inputValueFontWeight]: refs$1.inputValueFontWeight,
|
|
83204
|
+
[vars$18.inputPlaceholderFontWeight]: refs$1.inputPlaceholderFontWeight,
|
|
83205
|
+
[vars$18.helperTextFontWeight]: refs$1.helperTextFontWeight,
|
|
83206
|
+
[vars$18.errorMessageFontWeight]: refs$1.errorMessageFontWeight,
|
|
83207
|
+
[vars$18.labelTextColor]: refs$1.labelTextColor,
|
|
83208
|
+
[vars$18.errorMessageTextColor]: refs$1.errorMessageTextColor,
|
|
83209
|
+
[vars$18.inputBorderColor]: refs$1.borderColor,
|
|
83210
|
+
[vars$18.inputBorderWidth]: refs$1.borderWidth,
|
|
83211
|
+
[vars$18.inputBorderStyle]: refs$1.borderStyle,
|
|
83212
|
+
[vars$18.inputBorderRadius]: refs$1.borderRadius,
|
|
83213
|
+
[vars$18.inputOutlineColor]: refs$1.outlineColor,
|
|
83214
|
+
[vars$18.inputOutlineOffset]: refs$1.outlineOffset,
|
|
83215
|
+
[vars$18.inputOutlineWidth]: refs$1.outlineWidth,
|
|
83216
|
+
[vars$18.inputOutlineStyle]: refs$1.outlineStyle,
|
|
83217
|
+
[vars$18.labelRequiredIndicator]: refs$1.requiredIndicator,
|
|
83218
|
+
[vars$18.inputValueTextColor]: refs$1.valueTextColor,
|
|
83219
|
+
[vars$18.inputPlaceholderTextColor]: refs$1.placeholderTextColor,
|
|
83220
|
+
[vars$18.inputBackgroundColor]: refs$1.backgroundColor,
|
|
83221
|
+
[vars$18.inputHorizontalPadding]: refs$1.horizontalPadding,
|
|
83222
|
+
[vars$18.inputHeight]: refs$1.inputHeight,
|
|
83223
|
+
[vars$18.inputDropdownButtonColor]: globalRefs$F.colors.surface.dark,
|
|
83224
|
+
[vars$18.inputDropdownButtonCursor]: 'pointer',
|
|
83225
|
+
[vars$18.inputDropdownButtonSize]: refs$1.toggleButtonSize,
|
|
83226
|
+
[vars$18.inputDropdownButtonOffset]: globalRefs$F.spacing.xs,
|
|
83227
|
+
[vars$18.overlayItemPaddingInlineStart]: globalRefs$F.spacing.xs,
|
|
83228
|
+
[vars$18.overlayItemPaddingInlineEnd]: globalRefs$F.spacing.lg,
|
|
83229
|
+
[vars$18.labelPosition]: refs$1.labelPosition,
|
|
83230
|
+
[vars$18.labelTopPosition]: refs$1.labelTopPosition,
|
|
83231
|
+
[vars$18.labelHorizontalPosition]: refs$1.labelHorizontalPosition,
|
|
83232
|
+
[vars$18.inputTransformY]: refs$1.inputTransformY,
|
|
83233
|
+
[vars$18.inputTransition]: refs$1.inputTransition,
|
|
83234
|
+
[vars$18.marginInlineStart]: refs$1.marginInlineStart,
|
|
83235
|
+
[vars$18.placeholderOpacity]: refs$1.placeholderOpacity,
|
|
83236
|
+
[vars$18.inputVerticalAlignment]: refs$1.inputVerticalAlignment,
|
|
83237
|
+
[vars$18.valueInputHeight]: refs$1.valueInputHeight,
|
|
83238
|
+
[vars$18.valueInputMarginBottom]: refs$1.valueInputMarginBottom,
|
|
83169
83239
|
|
|
83170
83240
|
// error message icon
|
|
83171
|
-
[vars$
|
|
83172
|
-
[vars$
|
|
83173
|
-
[vars$
|
|
83174
|
-
[vars$
|
|
83175
|
-
[vars$
|
|
83176
|
-
[vars$
|
|
83241
|
+
[vars$18.errorMessageIcon]: refs$1.errorMessageIcon,
|
|
83242
|
+
[vars$18.errorMessageIconSize]: refs$1.errorMessageIconSize,
|
|
83243
|
+
[vars$18.errorMessageIconPadding]: refs$1.errorMessageIconPadding,
|
|
83244
|
+
[vars$18.errorMessageIconRepeat]: refs$1.errorMessageIconRepeat,
|
|
83245
|
+
[vars$18.errorMessageIconPosition]: refs$1.errorMessageIconPosition,
|
|
83246
|
+
[vars$18.errorMessageFontSize]: refs$1.errorMessageFontSize,
|
|
83177
83247
|
|
|
83178
83248
|
_readonly: {
|
|
83179
|
-
[vars$
|
|
83249
|
+
[vars$18.inputDropdownButtonCursor]: 'default',
|
|
83180
83250
|
},
|
|
83181
83251
|
|
|
83182
83252
|
// Overlay theme exposed via the component:
|
|
83183
|
-
[vars$
|
|
83184
|
-
[vars$
|
|
83185
|
-
[vars$
|
|
83186
|
-
[vars$
|
|
83187
|
-
[vars$
|
|
83188
|
-
[vars$
|
|
83189
|
-
[vars$
|
|
83190
|
-
[vars$
|
|
83191
|
-
[vars$
|
|
83253
|
+
[vars$18.overlayFontSize]: refs$1.fontSize,
|
|
83254
|
+
[vars$18.overlayFontFamily]: refs$1.fontFamily,
|
|
83255
|
+
[vars$18.overlayCursor]: 'pointer',
|
|
83256
|
+
[vars$18.overlayItemBoxShadow]: 'none',
|
|
83257
|
+
[vars$18.overlayBackground]: refs$1.backgroundColor,
|
|
83258
|
+
[vars$18.overlayTextColor]: refs$1.valueTextColor,
|
|
83259
|
+
[vars$18.overlayCheckmarkDisplay]: 'initial',
|
|
83260
|
+
[vars$18.overlaySelectedItemBackground]: 'initial',
|
|
83261
|
+
[vars$18.overlaySelectedItemHoverBackground]:
|
|
83192
83262
|
globalRefs$F.colors.primary.highlight,
|
|
83193
|
-
[vars$
|
|
83263
|
+
[vars$18.overlaySelectedItemFocusBackground]:
|
|
83194
83264
|
globalRefs$F.colors.primary.highlight,
|
|
83195
|
-
[vars$
|
|
83196
|
-
[vars$
|
|
83265
|
+
[vars$18.overlayItemHoverBackground]: globalRefs$F.colors.primary.highlight,
|
|
83266
|
+
[vars$18.overlayItemFocusBackground]: globalRefs$F.colors.primary.highlight,
|
|
83197
83267
|
|
|
83198
83268
|
// Overlay direct theme:
|
|
83199
|
-
[vars$
|
|
83269
|
+
[vars$18.overlay.margin]: '0',
|
|
83200
83270
|
|
|
83201
|
-
[vars$
|
|
83202
|
-
[vars$
|
|
83203
|
-
[vars$
|
|
83271
|
+
[vars$18.overlay.contentHeight]: '100%',
|
|
83272
|
+
[vars$18.overlay.contentOpacity]: '1',
|
|
83273
|
+
[vars$18.overlay.scrollerMinHeight]: '1px',
|
|
83204
83274
|
_loading: {
|
|
83205
|
-
[vars$
|
|
83206
|
-
[vars$
|
|
83207
|
-
[vars$
|
|
83275
|
+
[vars$18.overlay.loaderTop]: '50%',
|
|
83276
|
+
[vars$18.overlay.loaderLeft]: '50%',
|
|
83277
|
+
[vars$18.overlay.loaderRight]: 'auto',
|
|
83208
83278
|
// Margin has to be negative to center the loader, "transform" can't be used because the animation uses it
|
|
83209
83279
|
// Margin has to be half of the width/height of the loader to center it
|
|
83210
|
-
[vars$
|
|
83211
|
-
[vars$
|
|
83212
|
-
[vars$
|
|
83213
|
-
[vars$
|
|
83214
|
-
[vars$
|
|
83280
|
+
[vars$18.overlay.loaderMargin]: '-15px 0 0 -15px',
|
|
83281
|
+
[vars$18.overlay.loaderWidth]: '30px',
|
|
83282
|
+
[vars$18.overlay.loaderHeight]: '30px',
|
|
83283
|
+
[vars$18.overlay.loaderBorder]: '2px solid transparent',
|
|
83284
|
+
[vars$18.overlay.loaderBorderColor]:
|
|
83215
83285
|
`${globalRefs$F.colors.primary.highlight} ${globalRefs$F.colors.primary.highlight} ${globalRefs$F.colors.primary.main} ${globalRefs$F.colors.primary.main}`,
|
|
83216
|
-
[vars$
|
|
83217
|
-
[vars$
|
|
83218
|
-
[vars$
|
|
83219
|
-
[vars$
|
|
83286
|
+
[vars$18.overlay.loaderBorderRadius]: '50%',
|
|
83287
|
+
[vars$18.overlay.contentHeight]: '100px',
|
|
83288
|
+
[vars$18.overlay.scrollerMinHeight]: '100px',
|
|
83289
|
+
[vars$18.overlay.contentOpacity]: '0',
|
|
83220
83290
|
},
|
|
83221
83291
|
};
|
|
83222
83292
|
|
|
83223
|
-
var comboBox$
|
|
83293
|
+
var comboBox$2 = /*#__PURE__*/Object.freeze({
|
|
83224
83294
|
__proto__: null,
|
|
83225
|
-
comboBox: comboBox,
|
|
83226
|
-
default: comboBox,
|
|
83227
|
-
vars: vars$
|
|
83295
|
+
comboBox: comboBox$1,
|
|
83296
|
+
default: comboBox$1,
|
|
83297
|
+
vars: vars$18
|
|
83228
83298
|
});
|
|
83229
83299
|
|
|
83230
|
-
const componentName$
|
|
83300
|
+
const componentName$1m = getComponentName('badge');
|
|
83231
83301
|
|
|
83232
83302
|
class RawBadge extends createBaseClass$1({
|
|
83233
|
-
componentName: componentName$
|
|
83303
|
+
componentName: componentName$1m,
|
|
83234
83304
|
baseSelector: ':host > div',
|
|
83235
83305
|
}) {
|
|
83236
83306
|
static get observedAttributes() {
|
|
@@ -83326,46 +83396,46 @@ function requireIndex_cjs () {
|
|
|
83326
83396
|
{
|
|
83327
83397
|
shadowColor: '#00000020', // if we want to support transparency vars, we should use different color format
|
|
83328
83398
|
},
|
|
83329
|
-
componentName$
|
|
83399
|
+
componentName$1m,
|
|
83330
83400
|
);
|
|
83331
83401
|
|
|
83332
83402
|
const { shadowColor: shadowColor$8 } = helperRefs$6;
|
|
83333
83403
|
|
|
83334
|
-
const vars$
|
|
83404
|
+
const vars$17 = BadgeClass.cssVarList;
|
|
83335
83405
|
|
|
83336
83406
|
const badge$2 = {
|
|
83337
83407
|
...helperTheme$6,
|
|
83338
83408
|
|
|
83339
|
-
[vars$
|
|
83340
|
-
[vars$
|
|
83409
|
+
[vars$17.hostWidth]: 'fit-content',
|
|
83410
|
+
[vars$17.hostDirection]: globalRefs$E.direction,
|
|
83341
83411
|
|
|
83342
|
-
[vars$
|
|
83412
|
+
[vars$17.textAlign]: 'center',
|
|
83343
83413
|
|
|
83344
|
-
[vars$
|
|
83345
|
-
[vars$
|
|
83414
|
+
[vars$17.fontFamily]: globalRefs$E.fonts.font1.family,
|
|
83415
|
+
[vars$17.fontWeight]: '400',
|
|
83346
83416
|
|
|
83347
|
-
[vars$
|
|
83348
|
-
[vars$
|
|
83417
|
+
[vars$17.verticalPadding]: '0.25em',
|
|
83418
|
+
[vars$17.horizontalPadding]: '0.5em',
|
|
83349
83419
|
|
|
83350
|
-
[vars$
|
|
83351
|
-
[vars$
|
|
83352
|
-
[vars$
|
|
83353
|
-
[vars$
|
|
83420
|
+
[vars$17.borderWidth]: globalRefs$E.border.xs,
|
|
83421
|
+
[vars$17.borderRadius]: globalRefs$E.radius.xs,
|
|
83422
|
+
[vars$17.borderColor]: 'transparent',
|
|
83423
|
+
[vars$17.borderStyle]: 'solid',
|
|
83354
83424
|
|
|
83355
83425
|
_fullWidth: {
|
|
83356
|
-
[vars$
|
|
83426
|
+
[vars$17.hostWidth]: '100%',
|
|
83357
83427
|
},
|
|
83358
83428
|
|
|
83359
83429
|
size: {
|
|
83360
|
-
xs: { [vars$
|
|
83361
|
-
sm: { [vars$
|
|
83362
|
-
md: { [vars$
|
|
83363
|
-
lg: { [vars$
|
|
83430
|
+
xs: { [vars$17.fontSize]: '12px' },
|
|
83431
|
+
sm: { [vars$17.fontSize]: '14px' },
|
|
83432
|
+
md: { [vars$17.fontSize]: '16px' },
|
|
83433
|
+
lg: { [vars$17.fontSize]: '18px' },
|
|
83364
83434
|
},
|
|
83365
83435
|
|
|
83366
83436
|
variant: {
|
|
83367
83437
|
contained: {
|
|
83368
|
-
[vars$
|
|
83438
|
+
[vars$17.backgroundColor]: globalRefs$E.colors.surface.main,
|
|
83369
83439
|
},
|
|
83370
83440
|
},
|
|
83371
83441
|
|
|
@@ -83384,58 +83454,58 @@ function requireIndex_cjs () {
|
|
|
83384
83454
|
// },
|
|
83385
83455
|
|
|
83386
83456
|
_shrinkToIndicator: {
|
|
83387
|
-
[vars$
|
|
83388
|
-
[vars$
|
|
83389
|
-
[vars$
|
|
83390
|
-
[vars$
|
|
83391
|
-
[vars$
|
|
83457
|
+
[vars$17.hostWidth]: '13px',
|
|
83458
|
+
[vars$17.hostHeight]: '13px',
|
|
83459
|
+
[vars$17.borderRadius]: '50%',
|
|
83460
|
+
[vars$17.fontSize]: '0',
|
|
83461
|
+
[vars$17.textIndent]: '-9999px',
|
|
83392
83462
|
},
|
|
83393
83463
|
|
|
83394
83464
|
mode: {
|
|
83395
83465
|
default: {
|
|
83396
|
-
[vars$
|
|
83466
|
+
[vars$17.textColor]: globalRefs$E.colors.surface.dark,
|
|
83397
83467
|
_bordered: {
|
|
83398
|
-
[vars$
|
|
83468
|
+
[vars$17.borderColor]: globalRefs$E.colors.surface.light,
|
|
83399
83469
|
},
|
|
83400
83470
|
},
|
|
83401
83471
|
primary: {
|
|
83402
|
-
[vars$
|
|
83472
|
+
[vars$17.textColor]: globalRefs$E.colors.primary.main,
|
|
83403
83473
|
_bordered: {
|
|
83404
|
-
[vars$
|
|
83474
|
+
[vars$17.borderColor]: globalRefs$E.colors.primary.light,
|
|
83405
83475
|
},
|
|
83406
83476
|
},
|
|
83407
83477
|
secondary: {
|
|
83408
|
-
[vars$
|
|
83478
|
+
[vars$17.textColor]: globalRefs$E.colors.secondary.main,
|
|
83409
83479
|
_bordered: {
|
|
83410
|
-
[vars$
|
|
83480
|
+
[vars$17.borderColor]: globalRefs$E.colors.secondary.light,
|
|
83411
83481
|
},
|
|
83412
83482
|
},
|
|
83413
83483
|
error: {
|
|
83414
|
-
[vars$
|
|
83484
|
+
[vars$17.textColor]: globalRefs$E.colors.error.main,
|
|
83415
83485
|
_bordered: {
|
|
83416
|
-
[vars$
|
|
83486
|
+
[vars$17.borderColor]: globalRefs$E.colors.error.light,
|
|
83417
83487
|
},
|
|
83418
83488
|
},
|
|
83419
83489
|
success: {
|
|
83420
|
-
[vars$
|
|
83490
|
+
[vars$17.textColor]: globalRefs$E.colors.success.main,
|
|
83421
83491
|
_bordered: {
|
|
83422
|
-
[vars$
|
|
83492
|
+
[vars$17.borderColor]: globalRefs$E.colors.success.light,
|
|
83423
83493
|
},
|
|
83424
83494
|
},
|
|
83425
83495
|
},
|
|
83426
83496
|
|
|
83427
83497
|
shadow: {
|
|
83428
83498
|
sm: {
|
|
83429
|
-
[vars$
|
|
83499
|
+
[vars$17.boxShadow]: `${globalRefs$E.shadow.wide.sm} ${shadowColor$8}, ${globalRefs$E.shadow.narrow.sm} ${shadowColor$8}`,
|
|
83430
83500
|
},
|
|
83431
83501
|
md: {
|
|
83432
|
-
[vars$
|
|
83502
|
+
[vars$17.boxShadow]: `${globalRefs$E.shadow.wide.md} ${shadowColor$8}, ${globalRefs$E.shadow.narrow.md} ${shadowColor$8}`,
|
|
83433
83503
|
},
|
|
83434
83504
|
lg: {
|
|
83435
|
-
[vars$
|
|
83505
|
+
[vars$17.boxShadow]: `${globalRefs$E.shadow.wide.lg} ${shadowColor$8}, ${globalRefs$E.shadow.narrow.lg} ${shadowColor$8}`,
|
|
83436
83506
|
},
|
|
83437
83507
|
xl: {
|
|
83438
|
-
[vars$
|
|
83508
|
+
[vars$17.boxShadow]: `${globalRefs$E.shadow.wide.xl} ${shadowColor$8}, ${globalRefs$E.shadow.narrow.xl} ${shadowColor$8}`,
|
|
83439
83509
|
},
|
|
83440
83510
|
},
|
|
83441
83511
|
};
|
|
@@ -83443,12 +83513,12 @@ function requireIndex_cjs () {
|
|
|
83443
83513
|
var badge$3 = /*#__PURE__*/Object.freeze({
|
|
83444
83514
|
__proto__: null,
|
|
83445
83515
|
default: badge$2,
|
|
83446
|
-
vars: vars$
|
|
83516
|
+
vars: vars$17
|
|
83447
83517
|
});
|
|
83448
83518
|
|
|
83449
|
-
const componentName$
|
|
83519
|
+
const componentName$1l = getComponentName('avatar');
|
|
83450
83520
|
class RawAvatar extends createBaseClass$1({
|
|
83451
|
-
componentName: componentName$
|
|
83521
|
+
componentName: componentName$1l,
|
|
83452
83522
|
baseSelector: ':host > .wrapper',
|
|
83453
83523
|
}) {
|
|
83454
83524
|
constructor() {
|
|
@@ -83526,7 +83596,7 @@ function requireIndex_cjs () {
|
|
|
83526
83596
|
}
|
|
83527
83597
|
}
|
|
83528
83598
|
|
|
83529
|
-
const { host: host$
|
|
83599
|
+
const { host: host$B, editableBadge, avatar: avatar$2 } = {
|
|
83530
83600
|
host: { selector: () => ':host' },
|
|
83531
83601
|
editableBadge: { selector: '> .editableBadge' },
|
|
83532
83602
|
avatar: { selector: 'vaadin-avatar' },
|
|
@@ -83536,12 +83606,12 @@ function requireIndex_cjs () {
|
|
|
83536
83606
|
createStyleMixin$1({
|
|
83537
83607
|
mappings: {
|
|
83538
83608
|
hostWidth: [
|
|
83539
|
-
{ ...host$
|
|
83540
|
-
{ ...host$
|
|
83609
|
+
{ ...host$B, property: 'width' },
|
|
83610
|
+
{ ...host$B, property: 'min-width' },
|
|
83541
83611
|
],
|
|
83542
|
-
hostHeight: { ...host$
|
|
83543
|
-
cursor: [avatar$2, host$
|
|
83544
|
-
hostDirection: { ...host$
|
|
83612
|
+
hostHeight: { ...host$B, property: 'height' },
|
|
83613
|
+
cursor: [avatar$2, host$B],
|
|
83614
|
+
hostDirection: { ...host$B, property: 'direction' },
|
|
83545
83615
|
avatarTextColor: { ...avatar$2, property: 'color' },
|
|
83546
83616
|
avatarBackgroundColor: { ...avatar$2, property: 'background-color' },
|
|
83547
83617
|
editableIconColor: { ...editableBadge, property: 'color' },
|
|
@@ -83599,39 +83669,39 @@ function requireIndex_cjs () {
|
|
|
83599
83669
|
},
|
|
83600
83670
|
};
|
|
83601
83671
|
|
|
83602
|
-
const vars$
|
|
83672
|
+
const vars$16 = {
|
|
83603
83673
|
...compVars$8,
|
|
83604
83674
|
};
|
|
83605
83675
|
|
|
83606
83676
|
var avatar$1 = /*#__PURE__*/Object.freeze({
|
|
83607
83677
|
__proto__: null,
|
|
83608
83678
|
default: avatar,
|
|
83609
|
-
vars: vars$
|
|
83679
|
+
vars: vars$16
|
|
83610
83680
|
});
|
|
83611
83681
|
|
|
83612
|
-
const vars$
|
|
83682
|
+
const vars$15 = IconClass.cssVarList;
|
|
83613
83683
|
|
|
83614
83684
|
const icon$3 = {};
|
|
83615
83685
|
|
|
83616
83686
|
var icon$4 = /*#__PURE__*/Object.freeze({
|
|
83617
83687
|
__proto__: null,
|
|
83618
83688
|
default: icon$3,
|
|
83619
|
-
vars: vars$
|
|
83689
|
+
vars: vars$15
|
|
83620
83690
|
});
|
|
83621
83691
|
|
|
83622
|
-
const vars$
|
|
83692
|
+
const vars$14 = ImageClass.cssVarList;
|
|
83623
83693
|
|
|
83624
83694
|
const image = {};
|
|
83625
83695
|
|
|
83626
83696
|
var image$1 = /*#__PURE__*/Object.freeze({
|
|
83627
83697
|
__proto__: null,
|
|
83628
83698
|
default: image,
|
|
83629
|
-
vars: vars$
|
|
83699
|
+
vars: vars$14
|
|
83630
83700
|
});
|
|
83631
83701
|
|
|
83632
|
-
const componentName$
|
|
83702
|
+
const componentName$1k = getComponentName('list-item');
|
|
83633
83703
|
|
|
83634
|
-
const customMixin$
|
|
83704
|
+
const customMixin$g = (superclass) =>
|
|
83635
83705
|
class ListItemMixinClass extends superclass {
|
|
83636
83706
|
constructor() {
|
|
83637
83707
|
super();
|
|
@@ -83684,14 +83754,14 @@ function requireIndex_cjs () {
|
|
|
83684
83754
|
}),
|
|
83685
83755
|
draggableMixin$1,
|
|
83686
83756
|
componentNameValidationMixin$1,
|
|
83687
|
-
customMixin$
|
|
83757
|
+
customMixin$g,
|
|
83688
83758
|
activeableMixin,
|
|
83689
|
-
)(createBaseClass$1({ componentName: componentName$
|
|
83759
|
+
)(createBaseClass$1({ componentName: componentName$1k, baseSelector: 'slot' }));
|
|
83690
83760
|
|
|
83691
|
-
const componentName$
|
|
83761
|
+
const componentName$1j = getComponentName('list');
|
|
83692
83762
|
|
|
83693
83763
|
class RawList extends createBaseClass$1({
|
|
83694
|
-
componentName: componentName$
|
|
83764
|
+
componentName: componentName$1j,
|
|
83695
83765
|
baseSelector: '.wrapper',
|
|
83696
83766
|
}) {
|
|
83697
83767
|
static get observedAttributes() {
|
|
@@ -83873,7 +83943,7 @@ function requireIndex_cjs () {
|
|
|
83873
83943
|
componentNameValidationMixin$1,
|
|
83874
83944
|
)(RawList);
|
|
83875
83945
|
|
|
83876
|
-
const componentName$
|
|
83946
|
+
const componentName$1i = getComponentName('apps-list');
|
|
83877
83947
|
|
|
83878
83948
|
const itemRenderer$6 = ({ name, icon, url }, _, ref) => `
|
|
83879
83949
|
<a ${url ? `href="${url}" title="${url}"` : ''} ${ref.openInSameWindow ? '' : 'target="_blank"'}>
|
|
@@ -83893,7 +83963,7 @@ function requireIndex_cjs () {
|
|
|
83893
83963
|
</a>
|
|
83894
83964
|
`;
|
|
83895
83965
|
|
|
83896
|
-
const customMixin$
|
|
83966
|
+
const customMixin$f = (superclass) =>
|
|
83897
83967
|
class AppsListMixinClass extends superclass {
|
|
83898
83968
|
// size controls both item logo size and font size
|
|
83899
83969
|
get size() {
|
|
@@ -83999,13 +84069,13 @@ function requireIndex_cjs () {
|
|
|
83999
84069
|
}),
|
|
84000
84070
|
draggableMixin$1,
|
|
84001
84071
|
componentNameValidationMixin$1,
|
|
84002
|
-
customMixin$
|
|
84072
|
+
customMixin$f,
|
|
84003
84073
|
)(
|
|
84004
84074
|
createProxy$1({
|
|
84005
84075
|
slots: ['empty-state'],
|
|
84006
84076
|
wrappedEleName: 'descope-list',
|
|
84007
84077
|
excludeAttrsSync: ['tabindex', 'class', 'empty', 'style'],
|
|
84008
|
-
componentName: componentName$
|
|
84078
|
+
componentName: componentName$1i,
|
|
84009
84079
|
style: () => `
|
|
84010
84080
|
:host {
|
|
84011
84081
|
width: 100%;
|
|
@@ -84040,60 +84110,60 @@ function requireIndex_cjs () {
|
|
|
84040
84110
|
}),
|
|
84041
84111
|
);
|
|
84042
84112
|
|
|
84043
|
-
const vars$
|
|
84113
|
+
const vars$13 = AppsListClass.cssVarList;
|
|
84044
84114
|
const globalRefs$C = getThemeRefs$1(globals);
|
|
84045
84115
|
|
|
84046
84116
|
const defaultHeight = '400px';
|
|
84047
84117
|
|
|
84048
84118
|
const appsList = {
|
|
84049
|
-
[vars$
|
|
84050
|
-
[vars$
|
|
84051
|
-
[vars$
|
|
84052
|
-
[vars$
|
|
84119
|
+
[vars$13.itemsTextAlign]: 'start',
|
|
84120
|
+
[vars$13.hostDirection]: globalRefs$C.direction,
|
|
84121
|
+
[vars$13.maxHeight]: defaultHeight,
|
|
84122
|
+
[vars$13.itemHoverBackgroundColor]: globalRefs$C.colors.surface.highlight,
|
|
84053
84123
|
|
|
84054
84124
|
_empty: {
|
|
84055
|
-
[vars$
|
|
84125
|
+
[vars$13.minHeight]: defaultHeight,
|
|
84056
84126
|
},
|
|
84057
84127
|
|
|
84058
84128
|
size: {
|
|
84059
84129
|
xs: {
|
|
84060
|
-
[vars$
|
|
84061
|
-
[vars$
|
|
84130
|
+
[vars$13.itemsFontSize]: '14px',
|
|
84131
|
+
[vars$13.itemsFontWeight]: 'normal',
|
|
84062
84132
|
},
|
|
84063
84133
|
sm: {
|
|
84064
|
-
[vars$
|
|
84065
|
-
[vars$
|
|
84134
|
+
[vars$13.itemsFontSize]: '14px',
|
|
84135
|
+
[vars$13.itemsFontWeight]: 'normal',
|
|
84066
84136
|
},
|
|
84067
84137
|
md: {
|
|
84068
|
-
[vars$
|
|
84069
|
-
[vars$
|
|
84138
|
+
[vars$13.itemsFontSize]: '16px',
|
|
84139
|
+
[vars$13.itemsFontWeight]: 'normal',
|
|
84070
84140
|
},
|
|
84071
84141
|
lg: {
|
|
84072
|
-
[vars$
|
|
84073
|
-
[vars$
|
|
84142
|
+
[vars$13.itemsFontSize]: '20px',
|
|
84143
|
+
[vars$13.itemsFontWeight]: 'normal',
|
|
84074
84144
|
},
|
|
84075
84145
|
},
|
|
84076
84146
|
|
|
84077
84147
|
itemPadding: {
|
|
84078
84148
|
xs: {
|
|
84079
|
-
[vars$
|
|
84080
|
-
[vars$
|
|
84149
|
+
[vars$13.itemVerticalPadding]: globalRefs$C.spacing.xs,
|
|
84150
|
+
[vars$13.itemHorizontalPadding]: globalRefs$C.spacing.xs,
|
|
84081
84151
|
},
|
|
84082
84152
|
sm: {
|
|
84083
|
-
[vars$
|
|
84084
|
-
[vars$
|
|
84153
|
+
[vars$13.itemVerticalPadding]: globalRefs$C.spacing.sm,
|
|
84154
|
+
[vars$13.itemHorizontalPadding]: globalRefs$C.spacing.sm,
|
|
84085
84155
|
},
|
|
84086
84156
|
md: {
|
|
84087
|
-
[vars$
|
|
84088
|
-
[vars$
|
|
84157
|
+
[vars$13.itemVerticalPadding]: globalRefs$C.spacing.md,
|
|
84158
|
+
[vars$13.itemHorizontalPadding]: globalRefs$C.spacing.md,
|
|
84089
84159
|
},
|
|
84090
84160
|
lg: {
|
|
84091
|
-
[vars$
|
|
84092
|
-
[vars$
|
|
84161
|
+
[vars$13.itemVerticalPadding]: globalRefs$C.spacing.lg,
|
|
84162
|
+
[vars$13.itemHorizontalPadding]: globalRefs$C.spacing.lg,
|
|
84093
84163
|
},
|
|
84094
84164
|
xl: {
|
|
84095
|
-
[vars$
|
|
84096
|
-
[vars$
|
|
84165
|
+
[vars$13.itemVerticalPadding]: globalRefs$C.spacing.xl,
|
|
84166
|
+
[vars$13.itemHorizontalPadding]: globalRefs$C.spacing.xl,
|
|
84097
84167
|
},
|
|
84098
84168
|
},
|
|
84099
84169
|
};
|
|
@@ -84101,7 +84171,7 @@ function requireIndex_cjs () {
|
|
|
84101
84171
|
var appsList$1 = /*#__PURE__*/Object.freeze({
|
|
84102
84172
|
__proto__: null,
|
|
84103
84173
|
default: appsList,
|
|
84104
|
-
vars: vars$
|
|
84174
|
+
vars: vars$13
|
|
84105
84175
|
});
|
|
84106
84176
|
|
|
84107
84177
|
const globalRefs$B = getThemeRefs$1(globals);
|
|
@@ -84110,7 +84180,7 @@ function requireIndex_cjs () {
|
|
|
84110
84180
|
|
|
84111
84181
|
const [helperTheme$5, helperRefs$5, helperVars$5] = createHelperVars$1(
|
|
84112
84182
|
{ shadowColor: '#00000020' },
|
|
84113
|
-
componentName$
|
|
84183
|
+
componentName$1j,
|
|
84114
84184
|
);
|
|
84115
84185
|
|
|
84116
84186
|
const { shadowColor: shadowColor$7 } = helperRefs$5;
|
|
@@ -84171,7 +84241,7 @@ function requireIndex_cjs () {
|
|
|
84171
84241
|
},
|
|
84172
84242
|
};
|
|
84173
84243
|
|
|
84174
|
-
const vars$
|
|
84244
|
+
const vars$12 = {
|
|
84175
84245
|
...compVars$7,
|
|
84176
84246
|
...helperVars$5,
|
|
84177
84247
|
};
|
|
@@ -84179,53 +84249,53 @@ function requireIndex_cjs () {
|
|
|
84179
84249
|
var list$1 = /*#__PURE__*/Object.freeze({
|
|
84180
84250
|
__proto__: null,
|
|
84181
84251
|
default: list,
|
|
84182
|
-
vars: vars$
|
|
84252
|
+
vars: vars$12
|
|
84183
84253
|
});
|
|
84184
84254
|
|
|
84185
84255
|
const globalRefs$A = getThemeRefs$1(globals);
|
|
84186
84256
|
|
|
84187
|
-
const vars$
|
|
84257
|
+
const vars$11 = ListItemClass.cssVarList;
|
|
84188
84258
|
|
|
84189
84259
|
const listItem = {
|
|
84190
|
-
[vars$
|
|
84191
|
-
[vars$
|
|
84192
|
-
[vars$
|
|
84193
|
-
[vars$
|
|
84194
|
-
[vars$
|
|
84195
|
-
[vars$
|
|
84196
|
-
[vars$
|
|
84197
|
-
[vars$
|
|
84198
|
-
[vars$
|
|
84199
|
-
[vars$
|
|
84200
|
-
[vars$
|
|
84201
|
-
[vars$
|
|
84260
|
+
[vars$11.backgroundColor]: globalRefs$A.colors.surface.main,
|
|
84261
|
+
[vars$11.verticalPadding]: globalRefs$A.spacing.lg,
|
|
84262
|
+
[vars$11.horizontalPadding]: globalRefs$A.spacing.lg,
|
|
84263
|
+
[vars$11.gap]: globalRefs$A.spacing.md,
|
|
84264
|
+
[vars$11.borderStyle]: 'solid',
|
|
84265
|
+
[vars$11.borderWidth]: globalRefs$A.border.xs,
|
|
84266
|
+
[vars$11.borderColor]: globalRefs$A.colors.surface.main,
|
|
84267
|
+
[vars$11.borderRadius]: globalRefs$A.radius.sm,
|
|
84268
|
+
[vars$11.cursor]: 'pointer',
|
|
84269
|
+
[vars$11.alignItems]: 'center',
|
|
84270
|
+
[vars$11.flexDirection]: 'row',
|
|
84271
|
+
[vars$11.transition]: 'border-color 0.2s, background-color 0.2s',
|
|
84202
84272
|
|
|
84203
84273
|
variant: {
|
|
84204
84274
|
tile: {
|
|
84205
|
-
[vars$
|
|
84206
|
-
[vars$
|
|
84207
|
-
[vars$
|
|
84275
|
+
[vars$11.alignItems]: 'flex-start',
|
|
84276
|
+
[vars$11.flexDirection]: 'column',
|
|
84277
|
+
[vars$11.borderColor]: globalRefs$A.colors.surface.light,
|
|
84208
84278
|
},
|
|
84209
84279
|
},
|
|
84210
84280
|
|
|
84211
84281
|
_hover: {
|
|
84212
|
-
[vars$
|
|
84282
|
+
[vars$11.backgroundColor]: globalRefs$A.colors.surface.highlight,
|
|
84213
84283
|
},
|
|
84214
84284
|
|
|
84215
84285
|
_active: {
|
|
84216
|
-
[vars$
|
|
84217
|
-
[vars$
|
|
84218
|
-
[vars$
|
|
84286
|
+
[vars$11.backgroundColor]: globalRefs$A.colors.surface.main,
|
|
84287
|
+
[vars$11.borderColor]: globalRefs$A.colors.primary.light,
|
|
84288
|
+
[vars$11.outline]: `1px solid ${globalRefs$A.colors.primary.light}`,
|
|
84219
84289
|
},
|
|
84220
84290
|
};
|
|
84221
84291
|
|
|
84222
84292
|
var listItem$1 = /*#__PURE__*/Object.freeze({
|
|
84223
84293
|
__proto__: null,
|
|
84224
84294
|
default: listItem,
|
|
84225
|
-
vars: vars$
|
|
84295
|
+
vars: vars$11
|
|
84226
84296
|
});
|
|
84227
84297
|
|
|
84228
|
-
const componentName$
|
|
84298
|
+
const componentName$1h = getComponentName('multi-select-combo-box');
|
|
84229
84299
|
|
|
84230
84300
|
const multiSelectComboBoxMixin = (superclass) =>
|
|
84231
84301
|
class MultiSelectComboBoxMixinClass extends superclass {
|
|
@@ -84333,9 +84403,35 @@ function requireIndex_cjs () {
|
|
|
84333
84403
|
);
|
|
84334
84404
|
}
|
|
84335
84405
|
|
|
84406
|
+
// Whether `data` is what this combo box builds its items from. Items can instead be given as
|
|
84407
|
+
// light DOM children (see the observeChildren call in init), and those are the consumer's to
|
|
84408
|
+
// manage - so an absent, empty or unparseable `data` attribute means "not my items".
|
|
84409
|
+
#hasDataSource() {
|
|
84410
|
+
if (this.#data) return true;
|
|
84411
|
+
|
|
84412
|
+
const dataAttr = this.getAttribute('data');
|
|
84413
|
+
if (!dataAttr) return false;
|
|
84414
|
+
|
|
84415
|
+
try {
|
|
84416
|
+
return Array.isArray(JSON.parse(dataAttr));
|
|
84417
|
+
} catch {
|
|
84418
|
+
// Already reported by the `data` getter, and a broken attribute is no reason to throw
|
|
84419
|
+
// away items that are on screen.
|
|
84420
|
+
return false;
|
|
84421
|
+
}
|
|
84422
|
+
}
|
|
84423
|
+
|
|
84336
84424
|
renderItems() {
|
|
84337
84425
|
const template = this.getItemsTemplate();
|
|
84338
|
-
if (template)
|
|
84426
|
+
if (template) {
|
|
84427
|
+
this.innerHTML = template;
|
|
84428
|
+
return;
|
|
84429
|
+
}
|
|
84430
|
+
|
|
84431
|
+
// An empty list has to empty the dropdown. Without this the previous items stayed on screen
|
|
84432
|
+
// after the data said there were none, so a picker refreshed with nothing left would still
|
|
84433
|
+
// offer the old rows.
|
|
84434
|
+
if (this.#hasDataSource()) this.innerHTML = '';
|
|
84339
84435
|
}
|
|
84340
84436
|
|
|
84341
84437
|
updateSelectedItems() {
|
|
@@ -84604,7 +84700,7 @@ function requireIndex_cjs () {
|
|
|
84604
84700
|
};
|
|
84605
84701
|
|
|
84606
84702
|
const {
|
|
84607
|
-
host: host$
|
|
84703
|
+
host: host$A,
|
|
84608
84704
|
inputField: inputField$5,
|
|
84609
84705
|
inputElement: inputElement$2,
|
|
84610
84706
|
placeholder: placeholder$2,
|
|
@@ -84644,9 +84740,9 @@ function requireIndex_cjs () {
|
|
|
84644
84740
|
const MultiSelectComboBoxClass = compose(
|
|
84645
84741
|
createStyleMixin$1({
|
|
84646
84742
|
mappings: {
|
|
84647
|
-
hostWidth: { ...host$
|
|
84648
|
-
hostDirection: { ...host$
|
|
84649
|
-
fontSize: [{}, host$
|
|
84743
|
+
hostWidth: { ...host$A, property: 'width' },
|
|
84744
|
+
hostDirection: { ...host$A, property: 'direction' },
|
|
84745
|
+
fontSize: [{}, host$A],
|
|
84650
84746
|
chipFontSize: { ...chipLabel, property: 'font-size' },
|
|
84651
84747
|
fontFamily: [
|
|
84652
84748
|
label$8,
|
|
@@ -84888,13 +84984,13 @@ function requireIndex_cjs () {
|
|
|
84888
84984
|
|
|
84889
84985
|
`,
|
|
84890
84986
|
excludeAttrsSync: ['tabindex', 'size', 'data', 'placeholder', 'style'],
|
|
84891
|
-
componentName: componentName$
|
|
84987
|
+
componentName: componentName$1h,
|
|
84892
84988
|
includeForwardProps: ['items', 'renderer', 'selectedItems'],
|
|
84893
84989
|
}),
|
|
84894
84990
|
);
|
|
84895
84991
|
|
|
84896
|
-
const componentName$
|
|
84897
|
-
const BaseClass$9 = createBaseClass$1({ componentName: componentName$
|
|
84992
|
+
const componentName$1g = getComponentName('multi-line-mappings');
|
|
84993
|
+
const BaseClass$9 = createBaseClass$1({ componentName: componentName$1g });
|
|
84898
84994
|
|
|
84899
84995
|
const parseJSON = (value, fallback, source = 'unknown') => {
|
|
84900
84996
|
if (typeof value !== 'string' || !value?.trim()) {
|
|
@@ -85601,7 +85697,7 @@ function requireIndex_cjs () {
|
|
|
85601
85697
|
}
|
|
85602
85698
|
}
|
|
85603
85699
|
|
|
85604
|
-
const host$
|
|
85700
|
+
const host$z = { selector: () => ':host' };
|
|
85605
85701
|
const rows = { selector: '.rows' };
|
|
85606
85702
|
const row = { selector: '.row' };
|
|
85607
85703
|
const addAction = { selector: '.add-action' };
|
|
@@ -85609,9 +85705,9 @@ function requireIndex_cjs () {
|
|
|
85609
85705
|
const MultiLineMappingsClass = compose(
|
|
85610
85706
|
createStyleMixin$1({
|
|
85611
85707
|
mappings: {
|
|
85612
|
-
hostWidth: { ...host$
|
|
85708
|
+
hostWidth: { ...host$z, property: 'width' },
|
|
85613
85709
|
hostDirection: [
|
|
85614
|
-
{ ...host$
|
|
85710
|
+
{ ...host$z, property: 'direction' },
|
|
85615
85711
|
{
|
|
85616
85712
|
selector: MultiSelectComboBoxClass.componentName,
|
|
85617
85713
|
property: MultiSelectComboBoxClass.cssVarList.hostDirection,
|
|
@@ -85632,128 +85728,128 @@ function requireIndex_cjs () {
|
|
|
85632
85728
|
draggableMixin$1,
|
|
85633
85729
|
)(RawMultiLineMappingsClass);
|
|
85634
85730
|
|
|
85635
|
-
const vars
|
|
85731
|
+
const vars$10 = MultiLineMappingsClass.cssVarList;
|
|
85636
85732
|
|
|
85637
85733
|
const multiLineMappings = {
|
|
85638
|
-
[vars
|
|
85734
|
+
[vars$10.hostDirection]: refs$1.direction,
|
|
85639
85735
|
|
|
85640
|
-
[vars
|
|
85641
|
-
[vars
|
|
85642
|
-
[vars
|
|
85643
|
-
[vars
|
|
85736
|
+
[vars$10.rowsGap]: globals.spacing.sm,
|
|
85737
|
+
[vars$10.rowGap]: globals.spacing.sm,
|
|
85738
|
+
[vars$10.rowAlignItems]: 'flex-end',
|
|
85739
|
+
[vars$10.rowWrap]: 'nowrap',
|
|
85644
85740
|
|
|
85645
|
-
[vars
|
|
85646
|
-
[vars
|
|
85741
|
+
[vars$10.addActionJustifyContent]: 'flex-start',
|
|
85742
|
+
[vars$10.addActionMarginTop]: globals.spacing.xs,
|
|
85647
85743
|
|
|
85648
85744
|
_fullWidth: {
|
|
85649
|
-
[vars
|
|
85745
|
+
[vars$10.hostWidth]: '100%',
|
|
85650
85746
|
},
|
|
85651
85747
|
};
|
|
85652
85748
|
|
|
85653
85749
|
var multiLineMappings$1 = /*#__PURE__*/Object.freeze({
|
|
85654
85750
|
__proto__: null,
|
|
85655
85751
|
default: multiLineMappings,
|
|
85656
|
-
vars: vars
|
|
85752
|
+
vars: vars$10
|
|
85657
85753
|
});
|
|
85658
85754
|
|
|
85659
85755
|
const globalRefs$z = getThemeRefs$1(globals);
|
|
85660
|
-
const vars
|
|
85756
|
+
const vars$$ = MultiSelectComboBoxClass.cssVarList;
|
|
85661
85757
|
|
|
85662
85758
|
const multiSelectComboBox = {
|
|
85663
|
-
[vars
|
|
85664
|
-
[vars
|
|
85665
|
-
[vars
|
|
85666
|
-
[vars
|
|
85667
|
-
[vars
|
|
85668
|
-
[vars
|
|
85669
|
-
[vars
|
|
85670
|
-
[vars
|
|
85671
|
-
[vars
|
|
85672
|
-
[vars
|
|
85673
|
-
[vars
|
|
85674
|
-
[vars
|
|
85675
|
-
[vars
|
|
85676
|
-
[vars
|
|
85677
|
-
[vars
|
|
85678
|
-
[vars
|
|
85679
|
-
[vars
|
|
85680
|
-
[vars
|
|
85681
|
-
[vars
|
|
85682
|
-
[vars
|
|
85683
|
-
[vars
|
|
85684
|
-
[vars
|
|
85685
|
-
[vars
|
|
85686
|
-
[vars
|
|
85687
|
-
[vars
|
|
85688
|
-
[vars
|
|
85689
|
-
[vars
|
|
85690
|
-
[vars
|
|
85691
|
-
[vars
|
|
85692
|
-
[vars
|
|
85693
|
-
[vars
|
|
85694
|
-
[vars
|
|
85695
|
-
[vars
|
|
85696
|
-
[vars
|
|
85697
|
-
[vars
|
|
85698
|
-
[vars
|
|
85699
|
-
[vars
|
|
85700
|
-
[vars
|
|
85701
|
-
[vars
|
|
85702
|
-
[vars
|
|
85703
|
-
[vars
|
|
85704
|
-
[vars
|
|
85705
|
-
[vars
|
|
85706
|
-
[vars
|
|
85707
|
-
[vars
|
|
85708
|
-
|
|
85709
|
-
[vars
|
|
85710
|
-
[vars
|
|
85711
|
-
[vars
|
|
85712
|
-
[vars
|
|
85713
|
-
[vars
|
|
85714
|
-
[vars
|
|
85759
|
+
[vars$$.hostWidth]: refs$1.width,
|
|
85760
|
+
[vars$$.hostDirection]: refs$1.direction,
|
|
85761
|
+
[vars$$.fontSize]: refs$1.fontSize,
|
|
85762
|
+
[vars$$.fontFamily]: refs$1.fontFamily,
|
|
85763
|
+
[vars$$.labelFontSize]: refs$1.labelFontSize,
|
|
85764
|
+
[vars$$.labelFontWeight]: refs$1.labelFontWeight,
|
|
85765
|
+
[vars$$.inputValueFontWeight]: refs$1.inputValueFontWeight,
|
|
85766
|
+
[vars$$.inputPlaceholderFontWeight]: refs$1.inputPlaceholderFontWeight,
|
|
85767
|
+
[vars$$.helperTextFontWeight]: refs$1.helperTextFontWeight,
|
|
85768
|
+
[vars$$.errorMessageFontWeight]: refs$1.errorMessageFontWeight,
|
|
85769
|
+
[vars$$.labelTextColor]: refs$1.labelTextColor,
|
|
85770
|
+
[vars$$.errorMessageTextColor]: refs$1.errorMessageTextColor,
|
|
85771
|
+
[vars$$.inputBorderColor]: refs$1.borderColor,
|
|
85772
|
+
[vars$$.inputBorderWidth]: refs$1.borderWidth,
|
|
85773
|
+
[vars$$.inputBorderStyle]: refs$1.borderStyle,
|
|
85774
|
+
[vars$$.inputBorderRadius]: refs$1.borderRadius,
|
|
85775
|
+
[vars$$.inputOutlineColor]: refs$1.outlineColor,
|
|
85776
|
+
[vars$$.inputOutlineOffset]: refs$1.outlineOffset,
|
|
85777
|
+
[vars$$.inputOutlineWidth]: refs$1.outlineWidth,
|
|
85778
|
+
[vars$$.inputOutlineStyle]: refs$1.outlineStyle,
|
|
85779
|
+
[vars$$.labelRequiredIndicator]: refs$1.requiredIndicator,
|
|
85780
|
+
[vars$$.inputValueTextColor]: refs$1.valueTextColor,
|
|
85781
|
+
[vars$$.inputPlaceholderTextColor]: refs$1.placeholderTextColor,
|
|
85782
|
+
[vars$$.inputBackgroundColor]: refs$1.backgroundColor,
|
|
85783
|
+
[vars$$.inputHorizontalPadding]: refs$1.horizontalPadding,
|
|
85784
|
+
[vars$$.inputVerticalPadding]: refs$1.verticalPadding,
|
|
85785
|
+
[vars$$.inputHeight]: refs$1.inputHeight,
|
|
85786
|
+
[vars$$.inputDropdownButtonColor]: globalRefs$z.colors.surface.dark,
|
|
85787
|
+
[vars$$.inputDropdownButtonCursor]: 'pointer',
|
|
85788
|
+
[vars$$.inputDropdownButtonSize]: refs$1.toggleButtonSize,
|
|
85789
|
+
[vars$$.inputDropdownButtonOffset]: globalRefs$z.spacing.xs,
|
|
85790
|
+
[vars$$.overlayItemPaddingInlineStart]: globalRefs$z.spacing.xs,
|
|
85791
|
+
[vars$$.overlayItemPaddingInlineEnd]: globalRefs$z.spacing.lg,
|
|
85792
|
+
[vars$$.chipFontSize]: refs$1.chipFontSize,
|
|
85793
|
+
[vars$$.chipTextColor]: globalRefs$z.colors.surface.contrast,
|
|
85794
|
+
[vars$$.chipBackgroundColor]: globalRefs$z.colors.surface.light,
|
|
85795
|
+
[vars$$.labelPosition]: refs$1.labelPosition,
|
|
85796
|
+
[vars$$.labelTopPosition]: refs$1.labelTopPosition,
|
|
85797
|
+
[vars$$.labelLeftPosition]: refs$1.labelLeftPosition,
|
|
85798
|
+
[vars$$.labelHorizontalPosition]: refs$1.labelHorizontalPosition,
|
|
85799
|
+
[vars$$.inputTransformY]: refs$1.inputTransformY,
|
|
85800
|
+
[vars$$.inputTransition]: refs$1.inputTransition,
|
|
85801
|
+
[vars$$.marginInlineStart]: refs$1.marginInlineStart,
|
|
85802
|
+
[vars$$.placeholderOpacity]: refs$1.placeholderOpacity,
|
|
85803
|
+
[vars$$.inputVerticalAlignment]: refs$1.inputVerticalAlignment,
|
|
85804
|
+
|
|
85805
|
+
[vars$$.errorMessageIcon]: refs$1.errorMessageIcon,
|
|
85806
|
+
[vars$$.errorMessageIconSize]: refs$1.errorMessageIconSize,
|
|
85807
|
+
[vars$$.errorMessageIconPadding]: refs$1.errorMessageIconPadding,
|
|
85808
|
+
[vars$$.errorMessageIconRepeat]: refs$1.errorMessageIconRepeat,
|
|
85809
|
+
[vars$$.errorMessageIconPosition]: refs$1.errorMessageIconPosition,
|
|
85810
|
+
[vars$$.errorMessageFontSize]: refs$1.errorMessageFontSize,
|
|
85715
85811
|
|
|
85716
85812
|
labelType: {
|
|
85717
85813
|
floating: {
|
|
85718
|
-
[vars
|
|
85814
|
+
[vars$$.inputHorizontalPadding]: '0.25em',
|
|
85719
85815
|
_hasValue: {
|
|
85720
|
-
[vars
|
|
85816
|
+
[vars$$.inputHorizontalPadding]: '0.45em',
|
|
85721
85817
|
},
|
|
85722
85818
|
},
|
|
85723
85819
|
},
|
|
85724
85820
|
|
|
85725
85821
|
_readonly: {
|
|
85726
|
-
[vars
|
|
85822
|
+
[vars$$.inputDropdownButtonCursor]: 'default',
|
|
85727
85823
|
},
|
|
85728
85824
|
|
|
85729
|
-
[vars
|
|
85730
|
-
[vars
|
|
85731
|
-
[vars
|
|
85732
|
-
[vars
|
|
85733
|
-
[vars
|
|
85734
|
-
[vars
|
|
85825
|
+
[vars$$.overlayFontSize]: refs$1.fontSize,
|
|
85826
|
+
[vars$$.overlayFontFamily]: refs$1.fontFamily,
|
|
85827
|
+
[vars$$.overlayCursor]: 'pointer',
|
|
85828
|
+
[vars$$.overlayItemBoxShadow]: 'none',
|
|
85829
|
+
[vars$$.overlayBackground]: refs$1.backgroundColor,
|
|
85830
|
+
[vars$$.overlayTextColor]: refs$1.valueTextColor,
|
|
85735
85831
|
|
|
85736
|
-
[vars
|
|
85737
|
-
[vars
|
|
85832
|
+
[vars$$.overlay.minHeight]: '400px',
|
|
85833
|
+
[vars$$.overlay.margin]: '0',
|
|
85738
85834
|
};
|
|
85739
85835
|
|
|
85740
85836
|
var multiSelectComboBox$1 = /*#__PURE__*/Object.freeze({
|
|
85741
85837
|
__proto__: null,
|
|
85742
85838
|
default: multiSelectComboBox,
|
|
85743
85839
|
multiSelectComboBox: multiSelectComboBox,
|
|
85744
|
-
vars: vars
|
|
85840
|
+
vars: vars$$
|
|
85745
85841
|
});
|
|
85746
85842
|
|
|
85747
|
-
const componentName$
|
|
85843
|
+
const componentName$1f = getComponentName('autocomplete-field-internal');
|
|
85748
85844
|
|
|
85749
85845
|
createBaseInputClass$1({
|
|
85750
|
-
componentName: componentName$
|
|
85846
|
+
componentName: componentName$1f,
|
|
85751
85847
|
baseSelector: '',
|
|
85752
85848
|
});
|
|
85753
85849
|
|
|
85754
|
-
const componentName$
|
|
85850
|
+
const componentName$1e = getComponentName('autocomplete-field');
|
|
85755
85851
|
|
|
85756
|
-
const customMixin$
|
|
85852
|
+
const customMixin$e = (superclass) =>
|
|
85757
85853
|
class AutocompleteFieldMixinClass extends superclass {
|
|
85758
85854
|
get defaultValue() {
|
|
85759
85855
|
return this.getAttribute('default-value');
|
|
@@ -85772,15 +85868,15 @@ function requireIndex_cjs () {
|
|
|
85772
85868
|
const template = document.createElement('template');
|
|
85773
85869
|
|
|
85774
85870
|
template.innerHTML = `
|
|
85775
|
-
<${componentName$
|
|
85871
|
+
<${componentName$1f}
|
|
85776
85872
|
tabindex="-1"
|
|
85777
|
-
></${componentName$
|
|
85873
|
+
></${componentName$1f}>
|
|
85778
85874
|
`;
|
|
85779
85875
|
|
|
85780
85876
|
this.baseElement.appendChild(template.content.cloneNode(true));
|
|
85781
85877
|
|
|
85782
85878
|
this.inputElement = this.shadowRoot.querySelector(
|
|
85783
|
-
componentName$
|
|
85879
|
+
componentName$1f,
|
|
85784
85880
|
);
|
|
85785
85881
|
|
|
85786
85882
|
forwardAttrs(this, this.inputElement, {
|
|
@@ -85820,7 +85916,7 @@ function requireIndex_cjs () {
|
|
|
85820
85916
|
}
|
|
85821
85917
|
};
|
|
85822
85918
|
|
|
85823
|
-
const { host: host$
|
|
85919
|
+
const { host: host$y } = {
|
|
85824
85920
|
host: { selector: () => ':host' },
|
|
85825
85921
|
};
|
|
85826
85922
|
|
|
@@ -85830,9 +85926,9 @@ function requireIndex_cjs () {
|
|
|
85830
85926
|
}),
|
|
85831
85927
|
createStyleMixin$1({
|
|
85832
85928
|
mappings: {
|
|
85833
|
-
hostWidth: { ...host$
|
|
85834
|
-
hostDirection: { ...host$
|
|
85835
|
-
fontSize: { ...host$
|
|
85929
|
+
hostWidth: { ...host$y, property: 'width' },
|
|
85930
|
+
hostDirection: { ...host$y, property: 'direction' },
|
|
85931
|
+
fontSize: { ...host$y },
|
|
85836
85932
|
checkmarkDisplay: {
|
|
85837
85933
|
selector: ComboBoxClass.componentName,
|
|
85838
85934
|
property: ComboBoxClass.cssVarList.overlayCheckmarkDisplay,
|
|
@@ -85870,7 +85966,7 @@ function requireIndex_cjs () {
|
|
|
85870
85966
|
proxyParentValidation: true,
|
|
85871
85967
|
}),
|
|
85872
85968
|
componentNameValidationMixin$1,
|
|
85873
|
-
customMixin$
|
|
85969
|
+
customMixin$e,
|
|
85874
85970
|
)(
|
|
85875
85971
|
createProxy$1({
|
|
85876
85972
|
slots: [],
|
|
@@ -85899,34 +85995,34 @@ function requireIndex_cjs () {
|
|
|
85899
85995
|
}
|
|
85900
85996
|
`,
|
|
85901
85997
|
excludeAttrsSync: ['tabindex', 'error-message', 'label', 'style'],
|
|
85902
|
-
componentName: componentName$
|
|
85998
|
+
componentName: componentName$1e,
|
|
85903
85999
|
}),
|
|
85904
86000
|
);
|
|
85905
86001
|
|
|
85906
|
-
const vars$
|
|
86002
|
+
const vars$_ = AutocompleteFieldClass.cssVarList;
|
|
85907
86003
|
const globalRefs$y = getThemeRefs$1(globals);
|
|
85908
86004
|
|
|
85909
86005
|
const autocompleteField = {
|
|
85910
|
-
[vars$
|
|
85911
|
-
[vars$
|
|
85912
|
-
[vars$
|
|
85913
|
-
[vars$
|
|
85914
|
-
[vars$
|
|
85915
|
-
[vars$
|
|
85916
|
-
[vars$
|
|
85917
|
-
[vars$
|
|
85918
|
-
[vars$
|
|
85919
|
-
[vars$
|
|
86006
|
+
[vars$_.hostWidth]: refs$1.width,
|
|
86007
|
+
[vars$_.hostDirection]: refs$1.direction,
|
|
86008
|
+
[vars$_.fontSize]: refs$1.fontSize,
|
|
86009
|
+
[vars$_.checkmarkDisplay]: 'none',
|
|
86010
|
+
[vars$_.itemPaddingInlineStart]: globalRefs$y.spacing.lg,
|
|
86011
|
+
[vars$_.itemPaddingInlineEnd]: globalRefs$y.spacing.lg,
|
|
86012
|
+
[vars$_.selectedItemBackground]: globalRefs$y.colors.primary.light,
|
|
86013
|
+
[vars$_.selectedItemHoverBackground]: globalRefs$y.colors.primary.light,
|
|
86014
|
+
[vars$_.selectedItemFocusBackground]: globalRefs$y.colors.primary.light,
|
|
86015
|
+
[vars$_.itemHoverBackground]: globalRefs$y.colors.primary.highlight,
|
|
85920
86016
|
|
|
85921
86017
|
_fullWidth: {
|
|
85922
|
-
[vars$
|
|
86018
|
+
[vars$_.hostWidth]: '100%',
|
|
85923
86019
|
},
|
|
85924
86020
|
};
|
|
85925
86021
|
|
|
85926
86022
|
var autocompleteField$1 = /*#__PURE__*/Object.freeze({
|
|
85927
86023
|
__proto__: null,
|
|
85928
86024
|
default: autocompleteField,
|
|
85929
|
-
vars: vars$
|
|
86025
|
+
vars: vars$_
|
|
85930
86026
|
});
|
|
85931
86027
|
|
|
85932
86028
|
const initGoogleMapsLoader = (apiKey) => {
|
|
@@ -86153,7 +86249,7 @@ function requireIndex_cjs () {
|
|
|
86153
86249
|
}
|
|
86154
86250
|
}
|
|
86155
86251
|
|
|
86156
|
-
const componentName$
|
|
86252
|
+
const componentName$1d = getComponentName('address-field-internal');
|
|
86157
86253
|
|
|
86158
86254
|
const GOOGLE_MAPS_CONNECTOR_TEMPLATE = 'google-maps-places';
|
|
86159
86255
|
const RADAR_CONNECTOR_TEMPLATE = 'radar';
|
|
@@ -86164,7 +86260,7 @@ function requireIndex_cjs () {
|
|
|
86164
86260
|
};
|
|
86165
86261
|
|
|
86166
86262
|
const BaseInputClass$8 = createBaseInputClass$1({
|
|
86167
|
-
componentName: componentName$
|
|
86263
|
+
componentName: componentName$1d,
|
|
86168
86264
|
baseSelector: '',
|
|
86169
86265
|
});
|
|
86170
86266
|
const initConnectorAttrs = ['public-api-key'];
|
|
@@ -86271,9 +86367,9 @@ function requireIndex_cjs () {
|
|
|
86271
86367
|
connectorMixin({ connectorClasses: CONNECTOR_CLASSES }),
|
|
86272
86368
|
)(RawAddressFieldInternal);
|
|
86273
86369
|
|
|
86274
|
-
const componentName$
|
|
86370
|
+
const componentName$1c = getComponentName('address-field');
|
|
86275
86371
|
|
|
86276
|
-
const customMixin$
|
|
86372
|
+
const customMixin$d = (superclass) =>
|
|
86277
86373
|
class AddressFieldMixinClass extends superclass {
|
|
86278
86374
|
get defaultValue() {
|
|
86279
86375
|
return this.getAttribute('default-value');
|
|
@@ -86300,15 +86396,15 @@ function requireIndex_cjs () {
|
|
|
86300
86396
|
const template = document.createElement('template');
|
|
86301
86397
|
|
|
86302
86398
|
template.innerHTML = `
|
|
86303
|
-
<${componentName$
|
|
86399
|
+
<${componentName$1d}
|
|
86304
86400
|
tabindex="-1"
|
|
86305
|
-
></${componentName$
|
|
86401
|
+
></${componentName$1d}>
|
|
86306
86402
|
`;
|
|
86307
86403
|
|
|
86308
86404
|
this.baseElement.appendChild(template.content.cloneNode(true));
|
|
86309
86405
|
|
|
86310
86406
|
this.inputElement = this.shadowRoot.querySelector(
|
|
86311
|
-
componentName$
|
|
86407
|
+
componentName$1d,
|
|
86312
86408
|
);
|
|
86313
86409
|
|
|
86314
86410
|
forwardAttrs(this, this.inputElement, {
|
|
@@ -86349,7 +86445,7 @@ function requireIndex_cjs () {
|
|
|
86349
86445
|
}
|
|
86350
86446
|
};
|
|
86351
86447
|
|
|
86352
|
-
const { host: host$
|
|
86448
|
+
const { host: host$x } = {
|
|
86353
86449
|
host: { selector: () => ':host' },
|
|
86354
86450
|
};
|
|
86355
86451
|
|
|
@@ -86359,8 +86455,8 @@ function requireIndex_cjs () {
|
|
|
86359
86455
|
}),
|
|
86360
86456
|
createStyleMixin$1({
|
|
86361
86457
|
mappings: {
|
|
86362
|
-
hostWidth: { ...host$
|
|
86363
|
-
hostDirection: { ...host$
|
|
86458
|
+
hostWidth: { ...host$x, property: 'width' },
|
|
86459
|
+
hostDirection: { ...host$x, property: 'direction' },
|
|
86364
86460
|
},
|
|
86365
86461
|
}),
|
|
86366
86462
|
draggableMixin$1,
|
|
@@ -86370,7 +86466,7 @@ function requireIndex_cjs () {
|
|
|
86370
86466
|
proxyParentValidation: true,
|
|
86371
86467
|
}),
|
|
86372
86468
|
componentNameValidationMixin$1,
|
|
86373
|
-
customMixin$
|
|
86469
|
+
customMixin$d,
|
|
86374
86470
|
)(
|
|
86375
86471
|
createProxy$1({
|
|
86376
86472
|
slots: [],
|
|
@@ -86386,7 +86482,7 @@ function requireIndex_cjs () {
|
|
|
86386
86482
|
width: 100%;
|
|
86387
86483
|
}
|
|
86388
86484
|
|
|
86389
|
-
${componentName$
|
|
86485
|
+
${componentName$1d} {
|
|
86390
86486
|
display: inline-block;
|
|
86391
86487
|
box-sizing: border-box;
|
|
86392
86488
|
user-select: none;
|
|
@@ -86394,30 +86490,30 @@ function requireIndex_cjs () {
|
|
|
86394
86490
|
max-width: 100%;
|
|
86395
86491
|
}
|
|
86396
86492
|
|
|
86397
|
-
${componentName$
|
|
86493
|
+
${componentName$1d} ::slotted {
|
|
86398
86494
|
padding: 0;
|
|
86399
86495
|
}
|
|
86400
86496
|
`,
|
|
86401
86497
|
excludeAttrsSync: ['tabindex', 'error-message', 'label', 'style'],
|
|
86402
|
-
componentName: componentName$
|
|
86498
|
+
componentName: componentName$1c,
|
|
86403
86499
|
}),
|
|
86404
86500
|
);
|
|
86405
86501
|
|
|
86406
|
-
const vars$
|
|
86502
|
+
const vars$Z = AddressFieldClass.cssVarList;
|
|
86407
86503
|
|
|
86408
86504
|
const addressField = {
|
|
86409
|
-
[vars$
|
|
86410
|
-
[vars$
|
|
86505
|
+
[vars$Z.hostWidth]: refs$1.width,
|
|
86506
|
+
[vars$Z.hostDirection]: refs$1.direction,
|
|
86411
86507
|
|
|
86412
86508
|
_fullWidth: {
|
|
86413
|
-
[vars$
|
|
86509
|
+
[vars$Z.hostWidth]: '100%',
|
|
86414
86510
|
},
|
|
86415
86511
|
};
|
|
86416
86512
|
|
|
86417
86513
|
var addressField$1 = /*#__PURE__*/Object.freeze({
|
|
86418
86514
|
__proto__: null,
|
|
86419
86515
|
default: addressField,
|
|
86420
|
-
vars: vars$
|
|
86516
|
+
vars: vars$Z
|
|
86421
86517
|
});
|
|
86422
86518
|
|
|
86423
86519
|
var clockIcon = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMWVtIiBoZWlnaHQ9IjFlbSIgdmlld0JveD0iMCAwIDEwNCAxMDQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik01MC4zMzM0IDAuMzMzMjUyQzIyLjgzMzQgMC4zMzMyNTIgMC4zMzMzNzQgMjIuODMzMyAwLjMzMzM3NCA1MC4zMzMzQzAuMzMzMzc0IDc3LjgzMzMgMjIuODMzNCAxMDAuMzMzIDUwLjMzMzQgMTAwLjMzM0M3Ny44MzM0IDEwMC4zMzMgMTAwLjMzMyA3Ny44MzMzIDEwMC4zMzMgNTAuMzMzM0MxMDAuMzMzIDIyLjgzMzMgNzcuODMzNCAwLjMzMzI1MiA1MC4zMzM0IDAuMzMzMjUyWk01MC4zMzM0IDg3LjgzMzNDMjkuNzA4NCA4Ny44MzMzIDEyLjgzMzQgNzAuOTU4MyAxMi44MzM0IDUwLjMzMzNDMTIuODMzNCAyOS43MDgzIDI5LjcwODQgMTIuODMzMyA1MC4zMzM0IDEyLjgzMzNDNzAuOTU4NCAxMi44MzMzIDg3LjgzMzQgMjkuNzA4MyA4Ny44MzM0IDUwLjMzMzNDODcuODMzNCA3MC45NTgzIDcwLjk1ODQgODcuODMzMyA1MC4zMzM0IDg3LjgzMzNaIiBmaWxsPSIjMTgxQTFDIi8+CjxwYXRoIGQ9Ik01MC4zMzI4IDE5LjA4MzNINDQuMDgyOFY1Ni41ODMySDc1LjMzMjhWNTAuMzMzMkg1MC4zMzI4VjE5LjA4MzNaIiBmaWxsPSIjMTgxQTFDIi8+Cjwvc3ZnPgo=";
|
|
@@ -86439,12 +86535,12 @@ function requireIndex_cjs () {
|
|
|
86439
86535
|
return timeParts.join(':');
|
|
86440
86536
|
};
|
|
86441
86537
|
|
|
86442
|
-
const componentName$
|
|
86538
|
+
const componentName$1b = getComponentName('timer');
|
|
86443
86539
|
|
|
86444
86540
|
const observedAttributes$5 = ['seconds', 'hide-icon', 'paused'];
|
|
86445
86541
|
|
|
86446
86542
|
const BaseClass$8 = createBaseClass$1({
|
|
86447
|
-
componentName: componentName$
|
|
86543
|
+
componentName: componentName$1b,
|
|
86448
86544
|
baseSelector: ':host > .wrapper',
|
|
86449
86545
|
});
|
|
86450
86546
|
|
|
@@ -86597,7 +86693,7 @@ function requireIndex_cjs () {
|
|
|
86597
86693
|
}
|
|
86598
86694
|
}
|
|
86599
86695
|
|
|
86600
|
-
const { host: host$
|
|
86696
|
+
const { host: host$w, icon: icon$2, timer: timer$2 } = {
|
|
86601
86697
|
host: { selector: () => ':host' },
|
|
86602
86698
|
icon: { selector: () => '.icon' },
|
|
86603
86699
|
timer: { selector: () => '.timer' },
|
|
@@ -86618,8 +86714,8 @@ function requireIndex_cjs () {
|
|
|
86618
86714
|
textColor: { ...timer$2, property: 'color' },
|
|
86619
86715
|
gap: {},
|
|
86620
86716
|
textAlign: { property: 'justify-content' },
|
|
86621
|
-
hostWidth: { ...host$
|
|
86622
|
-
hostDirection: { ...host$
|
|
86717
|
+
hostWidth: { ...host$w, property: 'width' },
|
|
86718
|
+
hostDirection: { ...host$w, property: 'direction' },
|
|
86623
86719
|
iconColor: { ...icon$2, property: IconClass.cssVarList.fill },
|
|
86624
86720
|
},
|
|
86625
86721
|
}),
|
|
@@ -86628,44 +86724,44 @@ function requireIndex_cjs () {
|
|
|
86628
86724
|
)(RawTimer);
|
|
86629
86725
|
|
|
86630
86726
|
const globalRefs$x = getThemeRefs$1(globals);
|
|
86631
|
-
const vars$
|
|
86727
|
+
const vars$Y = TimerClass.cssVarList;
|
|
86632
86728
|
|
|
86633
86729
|
const timer = {
|
|
86634
|
-
[vars$
|
|
86635
|
-
[vars$
|
|
86636
|
-
[vars$
|
|
86637
|
-
[vars$
|
|
86638
|
-
[vars$
|
|
86639
|
-
[vars$
|
|
86640
|
-
[vars$
|
|
86641
|
-
[vars$
|
|
86642
|
-
[vars$
|
|
86730
|
+
[vars$Y.hostDirection]: globalRefs$x.direction,
|
|
86731
|
+
[vars$Y.gap]: '0.25em',
|
|
86732
|
+
[vars$Y.fontFamily]: globalRefs$x.fonts.font1.family,
|
|
86733
|
+
[vars$Y.minHeight]: '1.5em',
|
|
86734
|
+
[vars$Y.lineHeight]: '1em',
|
|
86735
|
+
[vars$Y.fontWeight]: globalRefs$x.fonts.font1.fontWeight,
|
|
86736
|
+
[vars$Y.textColor]: globalRefs$x.colors.surface.contrast,
|
|
86737
|
+
[vars$Y.iconColor]: globalRefs$x.colors.surface.contrast,
|
|
86738
|
+
[vars$Y.iconSize]: '1em',
|
|
86643
86739
|
|
|
86644
86740
|
size: {
|
|
86645
|
-
xs: { [vars$
|
|
86646
|
-
sm: { [vars$
|
|
86647
|
-
md: { [vars$
|
|
86648
|
-
lg: { [vars$
|
|
86741
|
+
xs: { [vars$Y.fontSize]: '12px' },
|
|
86742
|
+
sm: { [vars$Y.fontSize]: '14px' },
|
|
86743
|
+
md: { [vars$Y.fontSize]: '16px' },
|
|
86744
|
+
lg: { [vars$Y.fontSize]: '18px' },
|
|
86649
86745
|
},
|
|
86650
86746
|
|
|
86651
86747
|
textAlign: {
|
|
86652
|
-
right: { [vars$
|
|
86653
|
-
left: { [vars$
|
|
86654
|
-
center: { [vars$
|
|
86748
|
+
right: { [vars$Y.textAlign]: 'right' },
|
|
86749
|
+
left: { [vars$Y.textAlign]: 'left' },
|
|
86750
|
+
center: { [vars$Y.textAlign]: 'center' },
|
|
86655
86751
|
},
|
|
86656
86752
|
|
|
86657
86753
|
_fullWidth: {
|
|
86658
|
-
[vars$
|
|
86754
|
+
[vars$Y.hostWidth]: '100%',
|
|
86659
86755
|
},
|
|
86660
86756
|
};
|
|
86661
86757
|
|
|
86662
86758
|
var timer$1 = /*#__PURE__*/Object.freeze({
|
|
86663
86759
|
__proto__: null,
|
|
86664
86760
|
default: timer,
|
|
86665
|
-
vars: vars$
|
|
86761
|
+
vars: vars$Y
|
|
86666
86762
|
});
|
|
86667
86763
|
|
|
86668
|
-
const componentName$
|
|
86764
|
+
const componentName$1a = getComponentName('timer-button');
|
|
86669
86765
|
|
|
86670
86766
|
const buttonAttrs = [
|
|
86671
86767
|
'button-variant',
|
|
@@ -86696,7 +86792,7 @@ function requireIndex_cjs () {
|
|
|
86696
86792
|
};
|
|
86697
86793
|
|
|
86698
86794
|
const BaseClass$7 = createBaseClass$1({
|
|
86699
|
-
componentName: componentName$
|
|
86795
|
+
componentName: componentName$1a,
|
|
86700
86796
|
baseSelector: ':host > div',
|
|
86701
86797
|
});
|
|
86702
86798
|
|
|
@@ -86848,7 +86944,7 @@ function requireIndex_cjs () {
|
|
|
86848
86944
|
}
|
|
86849
86945
|
|
|
86850
86946
|
const {
|
|
86851
|
-
host: host$
|
|
86947
|
+
host: host$v,
|
|
86852
86948
|
nestedTimer,
|
|
86853
86949
|
nestedButton,
|
|
86854
86950
|
timerInsideNotReversed,
|
|
@@ -86873,8 +86969,8 @@ function requireIndex_cjs () {
|
|
|
86873
86969
|
mappings: {
|
|
86874
86970
|
gap: {},
|
|
86875
86971
|
flexDirection: {},
|
|
86876
|
-
hostWidth: { ...host$
|
|
86877
|
-
hostDirection: { ...host$
|
|
86972
|
+
hostWidth: { ...host$v, property: 'width' },
|
|
86973
|
+
hostDirection: { ...host$v, property: 'direction' },
|
|
86878
86974
|
timerTextColor: {
|
|
86879
86975
|
...nestedTimer,
|
|
86880
86976
|
property: TimerClass.cssVarList.textColor,
|
|
@@ -86906,40 +87002,40 @@ function requireIndex_cjs () {
|
|
|
86906
87002
|
)(RawTimerButton);
|
|
86907
87003
|
|
|
86908
87004
|
const globalRefs$w = getThemeRefs$1(globals);
|
|
86909
|
-
const vars$
|
|
87005
|
+
const vars$X = TimerButtonClass.cssVarList;
|
|
86910
87006
|
|
|
86911
87007
|
const timerButton = {
|
|
86912
|
-
[vars$
|
|
86913
|
-
[vars$
|
|
87008
|
+
[vars$X.gap]: globalRefs$w.spacing.sm,
|
|
87009
|
+
[vars$X.flexDirection]: 'column',
|
|
86914
87010
|
|
|
86915
87011
|
_horizontal: {
|
|
86916
|
-
[vars$
|
|
87012
|
+
[vars$X.flexDirection]: 'row',
|
|
86917
87013
|
timerPosition: {
|
|
86918
87014
|
end: {
|
|
86919
|
-
[vars$
|
|
87015
|
+
[vars$X.flexDirection]: 'row-reverse',
|
|
86920
87016
|
},
|
|
86921
87017
|
},
|
|
86922
87018
|
},
|
|
86923
87019
|
|
|
86924
87020
|
timerPosition: {
|
|
86925
87021
|
end: {
|
|
86926
|
-
[vars$
|
|
87022
|
+
[vars$X.flexDirection]: 'column-reverse',
|
|
86927
87023
|
},
|
|
86928
87024
|
},
|
|
86929
87025
|
|
|
86930
87026
|
_fullWidth: {
|
|
86931
|
-
[vars$
|
|
87027
|
+
[vars$X.hostWidth]: '100%',
|
|
86932
87028
|
},
|
|
86933
87029
|
|
|
86934
87030
|
_timerInside: {
|
|
86935
|
-
[vars$
|
|
86936
|
-
[vars$
|
|
86937
|
-
[vars$
|
|
86938
|
-
[vars$
|
|
86939
|
-
[vars$
|
|
87031
|
+
[vars$X.timerTextColor]: 'currentColor',
|
|
87032
|
+
[vars$X.timerIconColor]: 'currentColor',
|
|
87033
|
+
[vars$X.timerHostWidth]: 'auto',
|
|
87034
|
+
[vars$X.buttonLabelSpacing]: '0',
|
|
87035
|
+
[vars$X.timerInsideGapEnd]: `var(${vars$X.gap})`,
|
|
86940
87036
|
timerPosition: {
|
|
86941
87037
|
end: {
|
|
86942
|
-
[vars$
|
|
87038
|
+
[vars$X.timerInsideGapStart]: `var(${vars$X.gap})`,
|
|
86943
87039
|
},
|
|
86944
87040
|
},
|
|
86945
87041
|
},
|
|
@@ -86948,12 +87044,12 @@ function requireIndex_cjs () {
|
|
|
86948
87044
|
var timerButton$1 = /*#__PURE__*/Object.freeze({
|
|
86949
87045
|
__proto__: null,
|
|
86950
87046
|
default: timerButton,
|
|
86951
|
-
vars: vars$
|
|
87047
|
+
vars: vars$X
|
|
86952
87048
|
});
|
|
86953
87049
|
|
|
86954
|
-
const componentName$
|
|
87050
|
+
const componentName$19 = getComponentName('password-strength');
|
|
86955
87051
|
class RawPasswordStrength extends createBaseClass$1({
|
|
86956
|
-
componentName: componentName$
|
|
87052
|
+
componentName: componentName$19,
|
|
86957
87053
|
baseSelector: ':host > .wrapper',
|
|
86958
87054
|
}) {
|
|
86959
87055
|
static get observedAttributes() {
|
|
@@ -87067,7 +87163,7 @@ function requireIndex_cjs () {
|
|
|
87067
87163
|
}
|
|
87068
87164
|
}
|
|
87069
87165
|
|
|
87070
|
-
const { host: host$
|
|
87166
|
+
const { host: host$u, bar, filledBar, barsContainer, text: text$1 } = {
|
|
87071
87167
|
host: { selector: () => ':host' },
|
|
87072
87168
|
bar: { selector: ' .bar' },
|
|
87073
87169
|
barsContainer: { selector: ' .bars-container' },
|
|
@@ -87080,11 +87176,11 @@ function requireIndex_cjs () {
|
|
|
87080
87176
|
createStyleMixin$1({
|
|
87081
87177
|
mappings: {
|
|
87082
87178
|
hostWidth: [
|
|
87083
|
-
{ ...host$
|
|
87084
|
-
{ ...host$
|
|
87179
|
+
{ ...host$u, property: 'width' },
|
|
87180
|
+
{ ...host$u, property: 'min-width' },
|
|
87085
87181
|
],
|
|
87086
|
-
hostDirection: { ...host$
|
|
87087
|
-
hostMinWidth: { ...host$
|
|
87182
|
+
hostDirection: { ...host$u, property: 'direction' },
|
|
87183
|
+
hostMinWidth: { ...host$u, property: 'min-width' },
|
|
87088
87184
|
barHeight: { ...bar, property: 'height' },
|
|
87089
87185
|
barBorderRadius: { ...bar, property: 'border-radius' },
|
|
87090
87186
|
emptyBarColor: { ...bar, property: 'background-color' },
|
|
@@ -87144,22 +87240,22 @@ function requireIndex_cjs () {
|
|
|
87144
87240
|
}
|
|
87145
87241
|
};
|
|
87146
87242
|
|
|
87147
|
-
const vars$
|
|
87243
|
+
const vars$W = {
|
|
87148
87244
|
...compVars$6,
|
|
87149
87245
|
};
|
|
87150
87246
|
|
|
87151
87247
|
var passwordStrength$1 = /*#__PURE__*/Object.freeze({
|
|
87152
87248
|
__proto__: null,
|
|
87153
87249
|
default: passwordStrength,
|
|
87154
|
-
vars: vars$
|
|
87250
|
+
vars: vars$W
|
|
87155
87251
|
});
|
|
87156
87252
|
|
|
87157
87253
|
var chevronIcon = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0iYmxhY2siIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik02Ljc4MDcgMTQuNzI3MkM2LjM0MTYgMTUuMTIwOSA1LjY2NjYgMTUuMDg0MSA1LjI3MjggMTQuNjQ1MUM0Ljg3OTEgMTQuMjA2IDQuOTE1OSAxMy41MzA5IDUuMzU0OSAxMy4xMzcyQzUuMzU0OSAxMy4xMzcyIDEwLjk1NDMgNy45OTc4IDExLjM2IDcuNjM0QzExLjc2NTcgNy4yNzAyIDEyLjIzOTIgNy4yNzAyIDEyLjY0NDggNy42MzRMMTguNjQ1MSAxMy4xMzcyQzE5LjA4NDEgMTMuNTMwOSAxOS4xMjA5IDE0LjIwNiAxOC43MjcyIDE0LjY0NTFDMTguMzMzNCAxNS4wODQxIDE3LjY1ODQgMTUuMTIwOSAxNy4yMTkzIDE0LjcyNzJMMTIgOS44NjMyTDYuNzgwNyAxNC43MjcyWiIvPgo8L3N2Zz4K";
|
|
87158
87254
|
|
|
87159
|
-
const componentName$
|
|
87255
|
+
const componentName$18 = getComponentName('collapsible-container');
|
|
87160
87256
|
|
|
87161
87257
|
class RawCollapsibleContainer extends createBaseClass$1({
|
|
87162
|
-
componentName: componentName$
|
|
87258
|
+
componentName: componentName$18,
|
|
87163
87259
|
baseSelector: 'slot',
|
|
87164
87260
|
}) {
|
|
87165
87261
|
static get observedAttributes() {
|
|
@@ -87410,7 +87506,7 @@ function requireIndex_cjs () {
|
|
|
87410
87506
|
{
|
|
87411
87507
|
shadowColor: '#00000020', // if we want to support transparency vars, we should use different color format
|
|
87412
87508
|
},
|
|
87413
|
-
componentName$
|
|
87509
|
+
componentName$18,
|
|
87414
87510
|
);
|
|
87415
87511
|
|
|
87416
87512
|
const { shadowColor: shadowColor$6 } = helperRefs$4;
|
|
@@ -87511,7 +87607,7 @@ function requireIndex_cjs () {
|
|
|
87511
87607
|
},
|
|
87512
87608
|
};
|
|
87513
87609
|
|
|
87514
|
-
const vars$
|
|
87610
|
+
const vars$V = {
|
|
87515
87611
|
...compVars$5,
|
|
87516
87612
|
...helperVars$4,
|
|
87517
87613
|
};
|
|
@@ -87519,10 +87615,10 @@ function requireIndex_cjs () {
|
|
|
87519
87615
|
var collapsibleContainer$1 = /*#__PURE__*/Object.freeze({
|
|
87520
87616
|
__proto__: null,
|
|
87521
87617
|
default: collapsibleContainer,
|
|
87522
|
-
vars: vars$
|
|
87618
|
+
vars: vars$V
|
|
87523
87619
|
});
|
|
87524
87620
|
|
|
87525
|
-
const componentName$
|
|
87621
|
+
const componentName$17 = getComponentName('recovery-codes');
|
|
87526
87622
|
|
|
87527
87623
|
const NO_ACTION = 'none';
|
|
87528
87624
|
const DEFAULT_ERROR_MESSAGE =
|
|
@@ -87564,7 +87660,7 @@ function requireIndex_cjs () {
|
|
|
87564
87660
|
};
|
|
87565
87661
|
|
|
87566
87662
|
class RawRecoveryCodes extends createBaseClass$1({
|
|
87567
|
-
componentName: componentName$
|
|
87663
|
+
componentName: componentName$17,
|
|
87568
87664
|
baseSelector: ':host > div',
|
|
87569
87665
|
}) {
|
|
87570
87666
|
static get observedAttributes() {
|
|
@@ -87977,60 +88073,388 @@ function requireIndex_cjs () {
|
|
|
87977
88073
|
)(RawRecoveryCodes);
|
|
87978
88074
|
|
|
87979
88075
|
const globalRefs$t = getThemeRefs$1(globals);
|
|
87980
|
-
const vars$
|
|
88076
|
+
const vars$U = RecoveryCodesClass.cssVarList;
|
|
87981
88077
|
const textVars$6 = TextClass.cssVarList;
|
|
87982
88078
|
|
|
87983
88079
|
const recoveryCodes = {
|
|
87984
|
-
[vars$
|
|
87985
|
-
[vars$
|
|
87986
|
-
[vars$
|
|
87987
|
-
[vars$
|
|
88080
|
+
[vars$U.hostMinWidth]: '190px',
|
|
88081
|
+
[vars$U.hostDirection]: globalRefs$t.direction,
|
|
88082
|
+
[vars$U.iconColor]: useVar$1(textVars$6.textColor),
|
|
88083
|
+
[vars$U.iconSize]: useVar$1(textVars$6.fontSize),
|
|
87988
88084
|
// gap between the codes and the icon column
|
|
87989
|
-
[vars$
|
|
88085
|
+
[vars$U.iconGap]: '8px',
|
|
87990
88086
|
// gap between the stacked copy and download icons
|
|
87991
|
-
[vars$
|
|
88087
|
+
[vars$U.iconStackGap]: '16px',
|
|
87992
88088
|
// gap between the copy and download buttons (buttons variant)
|
|
87993
|
-
[vars$
|
|
88089
|
+
[vars$U.buttonsGap]: '8px',
|
|
87994
88090
|
// gap between the codes, the error message and the buttons
|
|
87995
|
-
[vars$
|
|
87996
|
-
[vars$
|
|
88091
|
+
[vars$U.sectionsGap]: '8px',
|
|
88092
|
+
[vars$U.bulletGap]: '0.35em',
|
|
87997
88093
|
|
|
87998
88094
|
// no padding by default so the current look is unchanged; the editor overrides per instance
|
|
87999
|
-
[vars$
|
|
88000
|
-
[vars$
|
|
88095
|
+
[vars$U.verticalPadding]: '0',
|
|
88096
|
+
[vars$U.horizontalPadding]: '0',
|
|
88001
88097
|
|
|
88002
88098
|
// error ring is transparent until the component is marked invalid (see _invalid below).
|
|
88003
88099
|
// message color/font + border come from the shared input-wrapper tokens, so customizing
|
|
88004
88100
|
// inputs in the console updates the recovery-codes error styling from the same place.
|
|
88005
|
-
[vars$
|
|
88006
|
-
[vars$
|
|
88007
|
-
[vars$
|
|
88101
|
+
[vars$U.errorBorderColor]: 'transparent',
|
|
88102
|
+
[vars$U.errorBorderWidth]: refs$1.borderWidth,
|
|
88103
|
+
[vars$U.boxBorderRadius]: refs$1.borderRadius,
|
|
88008
88104
|
// local default; can later map to the input-wrapper border style if it exposes one
|
|
88009
|
-
[vars$
|
|
88010
|
-
[vars$
|
|
88011
|
-
[vars$
|
|
88012
|
-
[vars$
|
|
88013
|
-
[vars$
|
|
88105
|
+
[vars$U.boxBorderStyle]: 'solid',
|
|
88106
|
+
[vars$U.errorMessageColor]: refs$1.errorMessageTextColor,
|
|
88107
|
+
[vars$U.errorMessageFontSize]: refs$1.errorMessageFontSize,
|
|
88108
|
+
[vars$U.errorMessageFontWeight]: refs$1.errorMessageFontWeight,
|
|
88109
|
+
[vars$U.errorMessageFontFamily]: refs$1.fontFamily,
|
|
88014
88110
|
|
|
88015
88111
|
textAlign: {
|
|
88016
|
-
right: { [vars$
|
|
88017
|
-
left: { [vars$
|
|
88018
|
-
center: { [vars$
|
|
88112
|
+
right: { [vars$U.textAlign]: 'flex-end' },
|
|
88113
|
+
left: { [vars$U.textAlign]: 'flex-start' },
|
|
88114
|
+
center: { [vars$U.textAlign]: 'center' },
|
|
88019
88115
|
},
|
|
88020
88116
|
|
|
88021
88117
|
_fullWidth: {
|
|
88022
|
-
[vars$
|
|
88118
|
+
[vars$U.hostWidth]: '100%',
|
|
88023
88119
|
},
|
|
88024
88120
|
|
|
88025
88121
|
// reflected `invalid` attribute (set by the component on a failed submit)
|
|
88026
88122
|
_invalid: {
|
|
88027
|
-
[vars$
|
|
88123
|
+
[vars$U.errorBorderColor]: refs$1.errorMessageTextColor,
|
|
88028
88124
|
},
|
|
88029
88125
|
};
|
|
88030
88126
|
|
|
88031
88127
|
var recoveryCodes$1 = /*#__PURE__*/Object.freeze({
|
|
88032
88128
|
__proto__: null,
|
|
88033
88129
|
default: recoveryCodes,
|
|
88130
|
+
vars: vars$U
|
|
88131
|
+
});
|
|
88132
|
+
|
|
88133
|
+
var desktopDeviceIconLight$1 = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTIwIDE4QzIxLjEgMTggMjEuOTkgMTcuMSAyMS45OSAxNkwyMiA2QzIyIDQuOSAyMS4xIDQgMjAgNEg0QzIuOSA0IDIgNC45IDIgNlYxNkMyIDE3LjEgMi45IDE4IDQgMThIMFYyMEgyNFYxOEgyMFpNNCA2SDIwVjE2SDRWNloiIGZpbGw9IiM2MzZDNzQiLz4KPC9zdmc+Cg==";
|
|
88134
|
+
|
|
88135
|
+
var mobileDeviceIconLight$1 = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE2IDFIOEM2LjM0IDEgNSAyLjM0IDUgNFYyMEM1IDIxLjY2IDYuMzQgMjMgOCAyM0gxNkMxNy42NiAyMyAxOSAyMS42NiAxOSAyMFY0QzE5IDIuMzQgMTcuNjYgMSAxNiAxWk0xNyAxOEg3VjRIMTdWMThaTTE0IDIxSDEwVjIwSDE0VjIxWiIgZmlsbD0iIzYzNkM3NCIvPgo8L3N2Zz4K";
|
|
88136
|
+
|
|
88137
|
+
var tabletDeviceIconLight$1 = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjUiIHZpZXdCb3g9IjAgMCAyNCAyNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwXzUyNTJfNzY4KSI+CjxwYXRoIGQ9Ik0xOC41IDAuNUg0LjVDMy4xMiAwLjUgMiAxLjYyIDIgM1YyMkMyIDIzLjM4IDMuMTIgMjQuNSA0LjUgMjQuNUgxOC41QzE5Ljg4IDI0LjUgMjEgMjMuMzggMjEgMjJWM0MyMSAxLjYyIDE5Ljg4IDAuNSAxOC41IDAuNVpNMTEuNSAyMy41QzEwLjY3IDIzLjUgMTAgMjIuODMgMTAgMjJDMTAgMjEuMTcgMTAuNjcgMjAuNSAxMS41IDIwLjVDMTIuMzMgMjAuNSAxMyAyMS4xNyAxMyAyMkMxMyAyMi44MyAxMi4zMyAyMy41IDExLjUgMjMuNVpNMTkgMTkuNUg0VjMuNUgxOVYxOS41WiIgZmlsbD0iIzYzNkM3NCIvPgo8L2c+CjxkZWZzPgo8Y2xpcFBhdGggaWQ9ImNsaXAwXzUyNTJfNzY4Ij4KPHJlY3Qgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0IiBmaWxsPSJ3aGl0ZSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMCAwLjUpIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg==";
|
|
88138
|
+
|
|
88139
|
+
var unknownDeviceIconLight$1 = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjUiIHZpZXdCb3g9IjAgMCAyNCAyNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTQgNi41SDIyVjQuNUg0QzIuOSA0LjUgMiA1LjQgMiA2LjVWMTcuNUgwVjIwLjVIMTRWMTcuNUg0VjYuNVpNMjMgOC41SDE3QzE2LjQ1IDguNSAxNiA4Ljk1IDE2IDkuNVYxOS41QzE2IDIwLjA1IDE2LjQ1IDIwLjUgMTcgMjAuNUgyM0MyMy41NSAyMC41IDI0IDIwLjA1IDI0IDE5LjVWOS41QzI0IDguOTUgMjMuNTUgOC41IDIzIDguNVpNMjIgMTcuNUgxOFYxMC41SDIyVjE3LjVaIiBmaWxsPSIjNjM2Qzc0Ii8+Cjwvc3ZnPgo=";
|
|
88140
|
+
|
|
88141
|
+
var desktopDeviceIconDark$1 = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjUiIHZpZXdCb3g9IjAgMCAyNCAyNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTIwIDE4LjVDMjEuMSAxOC41IDIxLjk5IDE3LjYgMjEuOTkgMTYuNUwyMiA2LjVDMjIgNS40IDIxLjEgNC41IDIwIDQuNUg0QzIuOSA0LjUgMiA1LjQgMiA2LjVWMTYuNUMyIDE3LjYgMi45IDE4LjUgNCAxOC41SDBWMjAuNUgyNFYxOC41SDIwWk00IDYuNUgyMFYxNi41SDRWNi41WiIgZmlsbD0iI0Y0RjVGNiIvPgo8L3N2Zz4K";
|
|
88142
|
+
|
|
88143
|
+
var mobileDeviceIconDark$1 = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjUiIHZpZXdCb3g9IjAgMCAyNCAyNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE2IDEuNUg4QzYuMzQgMS41IDUgMi44NCA1IDQuNVYyMC41QzUgMjIuMTYgNi4zNCAyMy41IDggMjMuNUgxNkMxNy42NiAyMy41IDE5IDIyLjE2IDE5IDIwLjVWNC41QzE5IDIuODQgMTcuNjYgMS41IDE2IDEuNVpNMTcgMTguNUg3VjQuNUgxN1YxOC41Wk0xNCAyMS41SDEwVjIwLjVIMTRWMjEuNVoiIGZpbGw9IiNGNEY1RjYiLz4KPC9zdmc+Cg==";
|
|
88144
|
+
|
|
88145
|
+
var tabletDeviceIconDark$1 = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjUiIHZpZXdCb3g9IjAgMCAyNCAyNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwXzUzMDNfODYzKSI+CjxwYXRoIGQ9Ik0xOC41IDAuNUg0LjVDMy4xMiAwLjUgMiAxLjYyIDIgM1YyMkMyIDIzLjM4IDMuMTIgMjQuNSA0LjUgMjQuNUgxOC41QzE5Ljg4IDI0LjUgMjEgMjMuMzggMjEgMjJWM0MyMSAxLjYyIDE5Ljg4IDAuNSAxOC41IDAuNVpNMTEuNSAyMy41QzEwLjY3IDIzLjUgMTAgMjIuODMgMTAgMjJDMTAgMjEuMTcgMTAuNjcgMjAuNSAxMS41IDIwLjVDMTIuMzMgMjAuNSAxMyAyMS4xNyAxMyAyMkMxMyAyMi44MyAxMi4zMyAyMy41IDExLjUgMjMuNVpNMTkgMTkuNUg0VjMuNUgxOVYxOS41WiIgZmlsbD0iI0Y0RjVGNiIvPgo8L2c+CjxkZWZzPgo8Y2xpcFBhdGggaWQ9ImNsaXAwXzUzMDNfODYzIj4KPHJlY3Qgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0IiBmaWxsPSJ3aGl0ZSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMCAwLjUpIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg==";
|
|
88146
|
+
|
|
88147
|
+
var unknownDeviceIconDark$1 = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTQgNkgyMlY0SDRDMi45IDQgMiA0LjkgMiA2VjE3SDBWMjBIMTRWMTdINFY2Wk0yMyA4SDE3QzE2LjQ1IDggMTYgOC40NSAxNiA5VjE5QzE2IDE5LjU1IDE2LjQ1IDIwIDE3IDIwSDIzQzIzLjU1IDIwIDI0IDE5LjU1IDI0IDE5VjlDMjQgOC40NSAyMy41NSA4IDIzIDhaTTIyIDE3SDE4VjEwSDIyVjE3WiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg==";
|
|
88148
|
+
|
|
88149
|
+
// Same four device types userservice records. A session created before those columns existed
|
|
88150
|
+
// carries an empty type, so everything unrecognised falls back to the unknown icon rather than
|
|
88151
|
+
// rendering a broken image.
|
|
88152
|
+
const deviceIconMap$1 = {
|
|
88153
|
+
desktop: { light: desktopDeviceIconLight$1, dark: desktopDeviceIconDark$1 },
|
|
88154
|
+
mobile: { light: mobileDeviceIconLight$1, dark: mobileDeviceIconDark$1 },
|
|
88155
|
+
tablet: { light: tabletDeviceIconLight$1, dark: tabletDeviceIconDark$1 },
|
|
88156
|
+
unknown: { light: unknownDeviceIconLight$1, dark: unknownDeviceIconDark$1 },
|
|
88157
|
+
};
|
|
88158
|
+
|
|
88159
|
+
const getDeviceIcon$1 = (deviceType) => {
|
|
88160
|
+
const icon = deviceIconMap$1[deviceType] || deviceIconMap$1.unknown;
|
|
88161
|
+
return { iconSrc: icon.light, iconSrcDark: icon.dark };
|
|
88162
|
+
};
|
|
88163
|
+
|
|
88164
|
+
// "Tel Aviv, IL". Either half may be missing - geo lookup is best effort - so show whichever we
|
|
88165
|
+
// have, and nothing at all when we have neither.
|
|
88166
|
+
const formatLocation = ({ country, city }) =>
|
|
88167
|
+
[city, country].filter(Boolean).join(', ');
|
|
88168
|
+
|
|
88169
|
+
// The login time arrives as epoch SECONDS (userservice stores it that way and the flow passes it
|
|
88170
|
+
// through untouched), while Date wants milliseconds. Getting this wrong shows 1970.
|
|
88171
|
+
const SECONDS_TO_MS = 1000;
|
|
88172
|
+
|
|
88173
|
+
// Rendered in the viewer's own locale and timezone rather than a fixed order, so the same session
|
|
88174
|
+
// reads correctly for someone in Tel Aviv and someone in New York. The offset is spelled out
|
|
88175
|
+
// because the point of this list is telling two of your own sessions apart, and the hour is what
|
|
88176
|
+
// does that.
|
|
88177
|
+
const formatLastLogin = (loginTime) => {
|
|
88178
|
+
const seconds = parseInt(loginTime, 10);
|
|
88179
|
+
if (Number.isNaN(seconds) || seconds <= 0) return '';
|
|
88180
|
+
|
|
88181
|
+
const date = new Date(seconds * SECONDS_TO_MS);
|
|
88182
|
+
// Spelled out as individual components rather than dateStyle/timeStyle: Intl rejects mixing
|
|
88183
|
+
// those with timeZoneName, and the rejection is a throw, so the offset would be silently lost to
|
|
88184
|
+
// the fallback below.
|
|
88185
|
+
const parts = {
|
|
88186
|
+
year: 'numeric',
|
|
88187
|
+
month: '2-digit',
|
|
88188
|
+
day: '2-digit',
|
|
88189
|
+
hour: '2-digit',
|
|
88190
|
+
minute: '2-digit',
|
|
88191
|
+
};
|
|
88192
|
+
try {
|
|
88193
|
+
return date.toLocaleString(undefined, {
|
|
88194
|
+
...parts,
|
|
88195
|
+
timeZoneName: 'shortOffset',
|
|
88196
|
+
});
|
|
88197
|
+
} catch {
|
|
88198
|
+
// `shortOffset` is not understood everywhere; the time matters more than the offset.
|
|
88199
|
+
return date.toLocaleString(undefined, parts);
|
|
88200
|
+
}
|
|
88201
|
+
};
|
|
88202
|
+
|
|
88203
|
+
const componentName$16 = getComponentName('active-sessions');
|
|
88204
|
+
|
|
88205
|
+
const comboBoxName = MultiSelectComboBoxClass.componentName;
|
|
88206
|
+
|
|
88207
|
+
// Structure only, handed to the portal mixin below, which writes it into the overlay root
|
|
88208
|
+
// alongside the themeable mappings. These are the rules no theme should change, and they have to
|
|
88209
|
+
// be a stylesheet because a `style` attribute would be dropped by the flow runtime's CSP.
|
|
88210
|
+
const OVERLAY_ITEM_STYLE = `
|
|
88211
|
+
.session {
|
|
88212
|
+
display: flex;
|
|
88213
|
+
flex-direction: column;
|
|
88214
|
+
}
|
|
88215
|
+
/* descope-text and its slot are both inline-blocks, which would leave a baseline gap under the
|
|
88216
|
+
title and widen the space to the location line. */
|
|
88217
|
+
.session .device descope-text,
|
|
88218
|
+
.session .device descope-text::part(text-wrapper) {
|
|
88219
|
+
display: block;
|
|
88220
|
+
}
|
|
88221
|
+
/* The flex row has to sit inside descope-text, not around it: descope-text slots its children,
|
|
88222
|
+
so a container outside would only ever see the slot as its single item. */
|
|
88223
|
+
.session .device-row {
|
|
88224
|
+
display: flex;
|
|
88225
|
+
align-items: center;
|
|
88226
|
+
}
|
|
88227
|
+
.session .device-icon {
|
|
88228
|
+
width: 1em;
|
|
88229
|
+
height: 1em;
|
|
88230
|
+
flex-shrink: 0;
|
|
88231
|
+
}
|
|
88232
|
+
`;
|
|
88233
|
+
|
|
88234
|
+
// None of the shadow roots down to the rows exists on the first tick. `waitForShadowRoot` is the
|
|
88235
|
+
// same wait `portalMixin` uses, and it resolves the element rather than a root when it gives up,
|
|
88236
|
+
// so anything that is not a shadow root means stop.
|
|
88237
|
+
const shadowRootOf = async (ele) => {
|
|
88238
|
+
if (!ele) return null;
|
|
88239
|
+
const root = await waitForShadowRoot(() => ele)();
|
|
88240
|
+
return root instanceof ShadowRoot ? root : null;
|
|
88241
|
+
};
|
|
88242
|
+
|
|
88243
|
+
// From the combo box's shadow root down to the element whose own root holds the rows.
|
|
88244
|
+
// the portal mixin takes it as its selector and writes both its mappings and the static css there.
|
|
88245
|
+
const findOverlayElement = async (comboBoxRoot) => {
|
|
88246
|
+
const vaadinRoot = await shadowRootOf(
|
|
88247
|
+
comboBoxRoot?.querySelector('vaadin-multi-select-combo-box'),
|
|
88248
|
+
);
|
|
88249
|
+
return vaadinRoot?.querySelector('vaadin-multi-select-combo-box-internal');
|
|
88250
|
+
};
|
|
88251
|
+
|
|
88252
|
+
// The row's shape, written once as markup so it reads like the thing it produces. Every value is
|
|
88253
|
+
// filled in afterwards with textContent and setAttribute: the combo box assigns the result to
|
|
88254
|
+
// innerHTML, and `deviceName` comes from a user agent the client controls, so interpolating it
|
|
88255
|
+
// into this string would be an HTML injection.
|
|
88256
|
+
// Built on first render rather than at import. This module is the `./class` entry, which has to
|
|
88257
|
+
// stay free of side effects so a server with no `document` can import the bundle.
|
|
88258
|
+
let rowTemplate;
|
|
88259
|
+
const getRowTemplate = () => {
|
|
88260
|
+
if (rowTemplate) return rowTemplate;
|
|
88261
|
+
|
|
88262
|
+
rowTemplate = document.createElement('template');
|
|
88263
|
+
rowTemplate.innerHTML = `
|
|
88264
|
+
<div class="session">
|
|
88265
|
+
<div class="device">
|
|
88266
|
+
<descope-text variant="body1" mode="primary" st-font-size="1em">
|
|
88267
|
+
<div class="device-row">
|
|
88268
|
+
<descope-icon class="device-icon" aria-hidden="true"></descope-icon>
|
|
88269
|
+
<span class="device-name"></span>
|
|
88270
|
+
</div>
|
|
88271
|
+
</descope-text>
|
|
88272
|
+
</div>
|
|
88273
|
+
<div class="location">
|
|
88274
|
+
<descope-text
|
|
88275
|
+
variant="body2"
|
|
88276
|
+
mode="secondary"
|
|
88277
|
+
st-font-size="0.875em"
|
|
88278
|
+
></descope-text>
|
|
88279
|
+
</div>
|
|
88280
|
+
<div class="last-login">
|
|
88281
|
+
<descope-text
|
|
88282
|
+
variant="body2"
|
|
88283
|
+
mode="secondary"
|
|
88284
|
+
st-font-size="0.875em"
|
|
88285
|
+
></descope-text>
|
|
88286
|
+
</div>
|
|
88287
|
+
</div>
|
|
88288
|
+
`;
|
|
88289
|
+
|
|
88290
|
+
return rowTemplate;
|
|
88291
|
+
};
|
|
88292
|
+
|
|
88293
|
+
const renderItem =
|
|
88294
|
+
(ref) =>
|
|
88295
|
+
({ value, deviceName, deviceType, city, country, loginTime } = {}) => {
|
|
88296
|
+
const name = deviceName || ref.unknownDeviceLabel;
|
|
88297
|
+
const row = getRowTemplate().content.cloneNode(true).firstElementChild;
|
|
88298
|
+
|
|
88299
|
+
row.setAttribute('data-id', value ?? '');
|
|
88300
|
+
// The chip shows this once the row is picked.
|
|
88301
|
+
row.setAttribute('data-name', name);
|
|
88302
|
+
|
|
88303
|
+
row.querySelector('.device-name').textContent = name;
|
|
88304
|
+
|
|
88305
|
+
const { iconSrc, iconSrcDark } = getDeviceIcon$1(deviceType);
|
|
88306
|
+
const icon = row.querySelector('.device-icon');
|
|
88307
|
+
icon.setAttribute('src', iconSrc);
|
|
88308
|
+
icon.setAttribute('src-dark', iconSrcDark);
|
|
88309
|
+
|
|
88310
|
+
// Both detail lines are optional, and an empty one would still take up space, so the line is
|
|
88311
|
+
// removed rather than left blank.
|
|
88312
|
+
const fill = (selector, text) => {
|
|
88313
|
+
const ele = row.querySelector(selector);
|
|
88314
|
+
if (text) ele.firstElementChild.textContent = text;
|
|
88315
|
+
else ele.remove();
|
|
88316
|
+
};
|
|
88317
|
+
|
|
88318
|
+
fill('.location', formatLocation({ country, city }));
|
|
88319
|
+
|
|
88320
|
+
const lastLogin = formatLastLogin(loginTime);
|
|
88321
|
+
fill(
|
|
88322
|
+
'.last-login',
|
|
88323
|
+
lastLogin && ref.lastLoginLabel
|
|
88324
|
+
? `${ref.lastLoginLabel} ${lastLogin}`
|
|
88325
|
+
: lastLogin,
|
|
88326
|
+
);
|
|
88327
|
+
|
|
88328
|
+
return row.outerHTML;
|
|
88329
|
+
};
|
|
88330
|
+
|
|
88331
|
+
const customMixin$c = (superclass) =>
|
|
88332
|
+
class ActiveSessionsMixinClass extends superclass {
|
|
88333
|
+
get lastLoginLabel() {
|
|
88334
|
+
return this.getAttribute('last-login-label') ?? 'Last login:';
|
|
88335
|
+
}
|
|
88336
|
+
|
|
88337
|
+
get unknownDeviceLabel() {
|
|
88338
|
+
return this.getAttribute('unknown-device-label') ?? 'Unknown device';
|
|
88339
|
+
}
|
|
88340
|
+
|
|
88341
|
+
init() {
|
|
88342
|
+
super.init?.();
|
|
88343
|
+
|
|
88344
|
+
this.inputElement = this.baseElement;
|
|
88345
|
+
|
|
88346
|
+
// Set before any `data` arrives, so the list is never painted with the stock one-line rows
|
|
88347
|
+
// first. The SDK sets `data` on a detached fragment, so that first paint is the real one.
|
|
88348
|
+
this.inputElement.renderItem = renderItem(this);
|
|
88349
|
+
|
|
88350
|
+
// The picker never invents a session, so a typed value must not become one.
|
|
88351
|
+
this.inputElement.setAttribute('allow-custom-value', 'false');
|
|
88352
|
+
this.inputElement.setAttribute('item-label-path', 'data-name');
|
|
88353
|
+
this.inputElement.setAttribute('item-value-path', 'data-id');
|
|
88354
|
+
}
|
|
88355
|
+
};
|
|
88356
|
+
|
|
88357
|
+
const host$t = { selector: () => ':host' };
|
|
88358
|
+
const comboBox = { selector: () => comboBoxName };
|
|
88359
|
+
|
|
88360
|
+
// Only the knobs that can actually reach their target. The dropdown row's themeable values are
|
|
88361
|
+
// mapped through the portal below, which writes its rules into the overlay root. Better a small
|
|
88362
|
+
// honest set of variables than knobs that silently do nothing.
|
|
88363
|
+
const ActiveSessionsClass = compose(
|
|
88364
|
+
createStyleMixin$1({
|
|
88365
|
+
mappings: {
|
|
88366
|
+
hostWidth: [
|
|
88367
|
+
{ ...host$t, property: 'width' },
|
|
88368
|
+
{
|
|
88369
|
+
...comboBox,
|
|
88370
|
+
property: MultiSelectComboBoxClass.cssVarList.hostWidth,
|
|
88371
|
+
},
|
|
88372
|
+
],
|
|
88373
|
+
hostDirection: [
|
|
88374
|
+
{ ...host$t, property: 'direction' },
|
|
88375
|
+
{
|
|
88376
|
+
...comboBox,
|
|
88377
|
+
property: MultiSelectComboBoxClass.cssVarList.hostDirection,
|
|
88378
|
+
},
|
|
88379
|
+
],
|
|
88380
|
+
},
|
|
88381
|
+
}),
|
|
88382
|
+
draggableMixin$1,
|
|
88383
|
+
// The rows are drawn four shadow roots down, deeper than a query string reaches, so the portal
|
|
88384
|
+
// is found with a function. This puts their themeable values through the normal mapping path:
|
|
88385
|
+
// the style mixin writes its rules into that same root. Nothing is forwarded, because the
|
|
88386
|
+
// element there is vaadin's internal, not a copy of this host, and attributes like `data` would
|
|
88387
|
+
// stop the list rendering.
|
|
88388
|
+
portalMixin$1({
|
|
88389
|
+
name: 'overlay',
|
|
88390
|
+
forward: false,
|
|
88391
|
+
selector: findOverlayElement,
|
|
88392
|
+
style: OVERLAY_ITEM_STYLE,
|
|
88393
|
+
mappings: {
|
|
88394
|
+
rowGap: { selector: '.session', property: 'gap' },
|
|
88395
|
+
deviceRowGap: { selector: '.device-row', property: 'gap' },
|
|
88396
|
+
},
|
|
88397
|
+
}),
|
|
88398
|
+
composedProxyInputMixin$1({
|
|
88399
|
+
proxyProps: ['value'],
|
|
88400
|
+
inputEvent: 'change',
|
|
88401
|
+
proxyParentValidation: true,
|
|
88402
|
+
}),
|
|
88403
|
+
componentNameValidationMixin$1,
|
|
88404
|
+
customMixin$c,
|
|
88405
|
+
)(
|
|
88406
|
+
createProxy$1({
|
|
88407
|
+
slots: [],
|
|
88408
|
+
// The combo box is wrapped directly. It draws its own label, so there is nothing for an outer
|
|
88409
|
+
// field element to add here, and its label follows the input theme instead of vaadin's.
|
|
88410
|
+
wrappedEleName: comboBoxName,
|
|
88411
|
+
style: () => `
|
|
88412
|
+
:host {
|
|
88413
|
+
display: inline-flex;
|
|
88414
|
+
max-width: 100%;
|
|
88415
|
+
}
|
|
88416
|
+
${comboBoxName} {
|
|
88417
|
+
width: 100%;
|
|
88418
|
+
max-width: 100%;
|
|
88419
|
+
}
|
|
88420
|
+
`,
|
|
88421
|
+
// `name` stays on the host only: that is the element the SDK collects the value from, and a
|
|
88422
|
+
// second match would post the field twice. `error-message` deliberately does reach the combo
|
|
88423
|
+
// box, which is what draws the message under the field. Without it the field only turns red
|
|
88424
|
+
// and the browser's own bubble appears instead.
|
|
88425
|
+
// `class` must not sync: the wrapped element carries its own component classes, and syncing
|
|
88426
|
+
// is two way, so they would land on the host and push off `descope-active-sessions`. Every
|
|
88427
|
+
// theme rule is written as `:host(.descope-active-sessions...)`, so losing that class turns
|
|
88428
|
+
// off all of this component's theming, direction included. descope-apps-list excludes it for
|
|
88429
|
+
// the same reason.
|
|
88430
|
+
excludeAttrsSync: ['tabindex', 'style', 'name', 'class'],
|
|
88431
|
+
componentName: componentName$16,
|
|
88432
|
+
}),
|
|
88433
|
+
);
|
|
88434
|
+
|
|
88435
|
+
const vars$T = ActiveSessionsClass.cssVarList;
|
|
88436
|
+
|
|
88437
|
+
// The dropdown rows are styled by the stylesheet `ActiveSessionsClass` adopts into vaadin's
|
|
88438
|
+
// overlay root (`OVERLAY_ITEM_STYLE`), which no theme variable reaches. A `style` attribute would
|
|
88439
|
+
// not work there either, because the flow runtime's CSP drops it. What is left to theme here is
|
|
88440
|
+
// the field itself.
|
|
88441
|
+
const activeSessions = {
|
|
88442
|
+
[vars$T.hostWidth]: refs$1.width,
|
|
88443
|
+
[vars$T.hostDirection]: refs$1.direction,
|
|
88444
|
+
|
|
88445
|
+
// Spacing inside a dropdown row. These reach the row as custom properties, because the rows are
|
|
88446
|
+
// rendered inside vaadin's overlay where no selector from here applies.
|
|
88447
|
+
[vars$T.overlay.rowGap]: '0.125em',
|
|
88448
|
+
[vars$T.overlay.deviceRowGap]: '0.5em',
|
|
88449
|
+
|
|
88450
|
+
_fullWidth: {
|
|
88451
|
+
[vars$T.hostWidth]: '100%',
|
|
88452
|
+
},
|
|
88453
|
+
};
|
|
88454
|
+
|
|
88455
|
+
var activeSessions$1 = /*#__PURE__*/Object.freeze({
|
|
88456
|
+
__proto__: null,
|
|
88457
|
+
default: activeSessions,
|
|
88034
88458
|
vars: vars$T
|
|
88035
88459
|
});
|
|
88036
88460
|
|
|
@@ -95848,7 +96272,7 @@ function requireIndex_cjs () {
|
|
|
95848
96272
|
const STYLE_OVERRIDE_ATTR_PREFIX = 'st';
|
|
95849
96273
|
|
|
95850
96274
|
const createStyleMixin =
|
|
95851
|
-
({ mappings = {}, componentNameOverride = '' }) =>
|
|
96275
|
+
({ mappings = {}, componentNameOverride = '', style = '' }) =>
|
|
95852
96276
|
(superclass) => {
|
|
95853
96277
|
const componentName = componentNameOverride || superclass.componentName;
|
|
95854
96278
|
|
|
@@ -95970,6 +96394,14 @@ function requireIndex_cjs () {
|
|
|
95970
96394
|
}
|
|
95971
96395
|
}
|
|
95972
96396
|
|
|
96397
|
+
// Rules the component needs wherever this mixin writes, which for a portal is a shadow root
|
|
96398
|
+
// it does not own. Prepended after the mapping rules so those still win: the mapping is the
|
|
96399
|
+
// themeable half, this is the structure underneath it.
|
|
96400
|
+
#createStaticStyle() {
|
|
96401
|
+
const css = isFunction$1(style) ? style() : style;
|
|
96402
|
+
if (css) injectStyle(css, this.#rootElement, { prepend: true });
|
|
96403
|
+
}
|
|
96404
|
+
|
|
95973
96405
|
#addClassName(className) {
|
|
95974
96406
|
(this.#rootElement.classList || this.#rootElement.host.classList).add(className);
|
|
95975
96407
|
}
|
|
@@ -95982,6 +96414,7 @@ function requireIndex_cjs () {
|
|
|
95982
96414
|
this.#addClassName(componentName);
|
|
95983
96415
|
|
|
95984
96416
|
this.#createMappingStyle();
|
|
96417
|
+
this.#createStaticStyle();
|
|
95985
96418
|
this.#createComponentTheme();
|
|
95986
96419
|
this.#createOverridesStyle();
|
|
95987
96420
|
|
|
@@ -96725,40 +97158,26 @@ function requireIndex_cjs () {
|
|
|
96725
97158
|
// because of that, we are adding this separator that is also used as a differentiator
|
|
96726
97159
|
const DISPLAY_NAME_SEPARATOR = '_';
|
|
96727
97160
|
|
|
96728
|
-
const withWaitForShadowRoot = (getRootElementFn) => async (that) => {
|
|
96729
|
-
const ele = await getRootElementFn(that);
|
|
96730
|
-
|
|
96731
|
-
return new Promise((res) => {
|
|
96732
|
-
const MAX_RETRIES = 20;
|
|
96733
|
-
let counter = 0;
|
|
96734
|
-
|
|
96735
|
-
const check = () => {
|
|
96736
|
-
if (counter > MAX_RETRIES) {
|
|
96737
|
-
// eslint-disable-next-line no-console
|
|
96738
|
-
console.error('could not get shadow root for element', ele);
|
|
96739
|
-
res(ele);
|
|
96740
|
-
return;
|
|
96741
|
-
}
|
|
96742
|
-
|
|
96743
|
-
counter++;
|
|
96744
|
-
|
|
96745
|
-
if (!ele?.shadowRoot) {
|
|
96746
|
-
setTimeout(check);
|
|
96747
|
-
} else {
|
|
96748
|
-
res(ele.shadowRoot);
|
|
96749
|
-
}
|
|
96750
|
-
};
|
|
96751
|
-
check();
|
|
96752
|
-
});
|
|
96753
|
-
};
|
|
96754
|
-
|
|
96755
97161
|
const portalMixin =
|
|
96756
|
-
({
|
|
97162
|
+
({
|
|
97163
|
+
name,
|
|
97164
|
+
selector,
|
|
97165
|
+
mappings = {},
|
|
97166
|
+
// Static css for the portal's own root, for rules that should not become themeable knobs.
|
|
97167
|
+
style = '',
|
|
97168
|
+
// `false` forwards nothing to the portal element. It needs its own value because an empty
|
|
97169
|
+
// `attributes` list already means "no filter", so it forwards everything rather than nothing.
|
|
97170
|
+
// Forwarding is wrong for a portal whose element is not a copy of the host, where attributes
|
|
97171
|
+
// like `data` or `label` would land somewhere that does not expect them.
|
|
97172
|
+
forward = {},
|
|
97173
|
+
}) =>
|
|
96757
97174
|
(superclass) => {
|
|
97175
|
+
|
|
96758
97176
|
const eleDisplayName = name;
|
|
96759
97177
|
|
|
96760
97178
|
const BaseClass = createStyleMixin({
|
|
96761
97179
|
mappings,
|
|
97180
|
+
style,
|
|
96762
97181
|
})(superclass);
|
|
96763
97182
|
|
|
96764
97183
|
return class PortalMixinClass extends BaseClass {
|
|
@@ -96784,7 +97203,7 @@ function requireIndex_cjs () {
|
|
|
96784
97203
|
}
|
|
96785
97204
|
};
|
|
96786
97205
|
|
|
96787
|
-
const getPortalElement =
|
|
97206
|
+
const getPortalElement = waitForShadowRoot$1(getRootElement);
|
|
96788
97207
|
|
|
96789
97208
|
super({
|
|
96790
97209
|
getRootElement: getPortalElement,
|
|
@@ -96815,9 +97234,12 @@ function requireIndex_cjs () {
|
|
|
96815
97234
|
// Initialize portal element lookup here (deferred from constructor for React compatibility)
|
|
96816
97235
|
this.#portalEle = this.#getPortalElement();
|
|
96817
97236
|
const portalEle = await this.#portalEle;
|
|
96818
|
-
|
|
96819
|
-
[include
|
|
96820
|
-
|
|
97237
|
+
if (forward !== false) {
|
|
97238
|
+
const { attributes = [], include = true } = forward;
|
|
97239
|
+
forwardAttrs$1(this, portalEle, {
|
|
97240
|
+
[include ? 'includeAttrs' : 'excludeAttrs']: attributes,
|
|
97241
|
+
});
|
|
97242
|
+
}
|
|
96821
97243
|
|
|
96822
97244
|
this.#handleHoverAttribute();
|
|
96823
97245
|
}
|
|
@@ -109716,7 +110138,7 @@ descope-enriched-text {
|
|
|
109716
110138
|
[vars$2.horizontalPadding]: '0',
|
|
109717
110139
|
[vars$2.verticalPadding]: '0',
|
|
109718
110140
|
[vars$2.gap]: `0.5em`,
|
|
109719
|
-
[vars$2.fontSize]: useVar(vars$
|
|
110141
|
+
[vars$2.fontSize]: useVar(vars$1b.fontSize),
|
|
109720
110142
|
|
|
109721
110143
|
mode: {
|
|
109722
110144
|
error: {
|
|
@@ -109959,7 +110381,7 @@ descope-enriched-text {
|
|
|
109959
110381
|
passcode: passcode$1,
|
|
109960
110382
|
loaderRadial: loaderRadial$1,
|
|
109961
110383
|
loaderLinear: loaderLinear$1,
|
|
109962
|
-
comboBox: comboBox$
|
|
110384
|
+
comboBox: comboBox$2,
|
|
109963
110385
|
phoneField: phoneField$1,
|
|
109964
110386
|
phoneInputBoxField: phoneInputBoxField$1,
|
|
109965
110387
|
newPassword: newPassword$1,
|
|
@@ -110006,6 +110428,7 @@ descope-enriched-text {
|
|
|
110006
110428
|
passwordStrength: passwordStrength$1,
|
|
110007
110429
|
collapsibleContainer: collapsibleContainer$1,
|
|
110008
110430
|
recoveryCodes: recoveryCodes$1,
|
|
110431
|
+
activeSessions: activeSessions$1,
|
|
110009
110432
|
hcaptcha: hcaptcha$1,
|
|
110010
110433
|
outboundApps: outboundApps$1,
|
|
110011
110434
|
outboundAppButton: outboundAppButton$1,
|
|
@@ -110027,7 +110450,7 @@ descope-enriched-text {
|
|
|
110027
110450
|
);
|
|
110028
110451
|
|
|
110029
110452
|
const defaultTheme = { globals: globals$1, components: theme };
|
|
110030
|
-
const themeVars = { globals: vars$
|
|
110453
|
+
const themeVars = { globals: vars$1d, components: vars };
|
|
110031
110454
|
|
|
110032
110455
|
const colors = {
|
|
110033
110456
|
surface: {
|
|
@@ -110829,6 +111252,7 @@ descope-enriched-text {
|
|
|
110829
111252
|
options: options
|
|
110830
111253
|
});
|
|
110831
111254
|
|
|
111255
|
+
index_cjs$4.ActiveSessionsClass = ActiveSessionsClass;
|
|
110832
111256
|
index_cjs$4.AddressFieldClass = AddressFieldClass;
|
|
110833
111257
|
index_cjs$4.AlertClass = AlertClass;
|
|
110834
111258
|
index_cjs$4.AnchoredClass = AnchoredClass;
|
|
@@ -111002,6 +111426,7 @@ const CountrySubdivisionCityFieldClass = index_cjsExports.CountrySubdivisionCity
|
|
|
111002
111426
|
const TimerButtonClass = index_cjsExports.TimerButtonClass;
|
|
111003
111427
|
const CollapsibleContainerClass = index_cjsExports.CollapsibleContainerClass;
|
|
111004
111428
|
const RecoveryCodesClass = index_cjsExports.RecoveryCodesClass;
|
|
111429
|
+
const ActiveSessionsClass = index_cjsExports.ActiveSessionsClass;
|
|
111005
111430
|
const HcaptchaClass = index_cjsExports.HcaptchaClass;
|
|
111006
111431
|
const OutboundAppsClass = index_cjsExports.OutboundAppsClass;
|
|
111007
111432
|
const OutboundAppButtonClass = index_cjsExports.OutboundAppButtonClass;
|
|
@@ -111375,7 +111800,7 @@ const Recaptcha = React__default.default.forwardRef(({ variant = 'text', textLab
|
|
|
111375
111800
|
});
|
|
111376
111801
|
|
|
111377
111802
|
const defaultText$1 = 'This site is protected by reCAPTCHA and the Google [Privacy Policy](https://policies.google.com/privacy) and [Terms of Service](https://policies.google.com/terms) apply.';
|
|
111378
|
-
const RecaptchaV2 = React__default.default.forwardRef(({ textLabel = defaultText$1, textVariant = 'body1', textMode = 'primary', textAlign = 'left', 'full-width': fullWidth, readOnly, connector: _connector, enterprise, action, enabled = true, variant = 'text', src, width, height, ...props }, ref) => {
|
|
111803
|
+
const RecaptchaV2 = React__default.default.forwardRef(({ textLabel = defaultText$1, textVariant = 'body1', textMode = 'primary', textAlign = 'left', 'full-width': fullWidth, readOnly, connector: _connector, name, enterprise, action, enabled = true, variant = 'text', src, width, height, ...props }, ref) => {
|
|
111379
111804
|
if (variant === 'hide') {
|
|
111380
111805
|
return null;
|
|
111381
111806
|
}
|
|
@@ -111383,8 +111808,10 @@ const RecaptchaV2 = React__default.default.forwardRef(({ textLabel = defaultText
|
|
|
111383
111808
|
// challenge, or nothing) into descope-recaptcha and mirrors the token into its hidden input,
|
|
111384
111809
|
// which is what the form validation reads.
|
|
111385
111810
|
if (variant === 'widget') {
|
|
111386
|
-
return (React__default.default.createElement(Recaptcha, { ref: ref, variant: "widget", enterprise: enterprise, action: action, enabled: enabled, "full-width": fullWidth, ...props }));
|
|
111811
|
+
return (React__default.default.createElement(Recaptcha, { ref: ref, variant: "widget", enterprise: enterprise, action: action, enabled: enabled, "full-width": fullWidth, name: name, ...props }));
|
|
111387
111812
|
}
|
|
111813
|
+
// Only the widget is a form field. The runtime validates every element with a `name`, and the
|
|
111814
|
+
// text/image elements cannot validate, so carrying it there blocks the screen's submit.
|
|
111388
111815
|
if (variant === 'image') {
|
|
111389
111816
|
return (React__default.default.createElement("descope-image", { ref: ref, "full-width": fullWidth, "st-width": width, "st-height": height, src: src, ...props }));
|
|
111390
111817
|
}
|
|
@@ -111662,6 +112089,22 @@ const UserPasskeys = React__default.default.forwardRef(({ allowRemove, createdAt
|
|
|
111662
112089
|
allowRemove && removeIcon && removeIconDark && (React__default.default.createElement(Icon, { key: djb2Hash(removeIcon + removeIconDark), icon: removeIcon, "src-dark": removeIconDark, slot: "remove-button", "st-fill": "currentcolor", "st-height": "1.5em" })),
|
|
111663
112090
|
allowRemove && React__default.default.createElement("span", { slot: "remove-button" }, removeButtonLabel))));
|
|
111664
112091
|
|
|
112092
|
+
const ActiveSessions = React__default.default.forwardRef(({ data, size = 'md', bordered = true, ...props }, ref) => {
|
|
112093
|
+
const serializedData = React.useMemo(() => {
|
|
112094
|
+
if (!data)
|
|
112095
|
+
return undefined;
|
|
112096
|
+
try {
|
|
112097
|
+
return JSON.stringify(data);
|
|
112098
|
+
}
|
|
112099
|
+
catch (e) {
|
|
112100
|
+
// eslint-disable-next-line no-console
|
|
112101
|
+
console.error('could not serialize active sessions data -', e.message);
|
|
112102
|
+
return undefined;
|
|
112103
|
+
}
|
|
112104
|
+
}, [data]);
|
|
112105
|
+
return (React__default.default.createElement("descope-active-sessions", { size: size, bordered: bordered, ...props, data: serializedData, ref: ref }));
|
|
112106
|
+
});
|
|
112107
|
+
|
|
111665
112108
|
const globalsThemeToStyle = index_cjsExports.globalsThemeToStyle;
|
|
111666
112109
|
const createComponentsTheme = index_cjsExports.createComponentsTheme;
|
|
111667
112110
|
const themeToStyle = index_cjsExports.themeToStyle;
|
|
@@ -111671,6 +112114,8 @@ const themeVars = index_cjsExports.themeVars;
|
|
|
111671
112114
|
const defaultTheme = index_cjsExports.defaultTheme;
|
|
111672
112115
|
const darkTheme = index_cjsExports.darkTheme;
|
|
111673
112116
|
|
|
112117
|
+
exports.ActiveSessions = ActiveSessions;
|
|
112118
|
+
exports.ActiveSessionsClass = ActiveSessionsClass;
|
|
111674
112119
|
exports.AddressField = AddressField;
|
|
111675
112120
|
exports.AddressFieldClass = AddressFieldClass;
|
|
111676
112121
|
exports.Alert = Alert;
|