@descope/web-components-ui 1.0.114 → 1.0.116
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.cjs.js +1299 -1305
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.esm.js +1384 -1390
- package/dist/index.esm.js.map +1 -1
- package/dist/umd/201.js +1 -0
- package/dist/umd/241.js +1 -1
- package/dist/umd/447.js +1 -1
- package/dist/umd/65.js +1 -1
- package/dist/umd/803.js +1 -1
- package/dist/umd/boolean-fields-descope-checkbox-index-js.js +1 -1
- package/dist/umd/boolean-fields-descope-switch-toggle-index-js.js +1 -1
- package/dist/umd/descope-button-index-js.js +1 -1
- package/dist/umd/descope-combo-box-index-js.js +1 -1
- package/dist/umd/descope-container-index-js.js +1 -1
- package/dist/umd/descope-divider-index-js.js +1 -1
- package/dist/umd/descope-email-field-index-js.js +1 -1
- package/dist/umd/descope-link-index-js.js +1 -1
- package/dist/umd/descope-loader-linear-index-js.js +1 -1
- package/dist/umd/descope-loader-radial-index-js.js +1 -1
- package/dist/umd/descope-new-password-descope-new-password-internal-index-js.js +1 -1
- package/dist/umd/descope-number-field-index-js.js +1 -1
- package/dist/umd/descope-passcode-index-js.js +1 -1
- package/dist/umd/descope-phone-field-index-js.js +1 -1
- package/dist/umd/descope-text-area-index-js.js +1 -1
- package/dist/umd/descope-text-field-index-js.js +1 -1
- package/dist/umd/descope-text-index-js.js +1 -1
- package/dist/umd/index.js +1 -1
- package/package.json +1 -1
- package/src/components/boolean-fields/commonStyles.js +13 -5
- package/src/components/boolean-fields/descope-checkbox/CheckboxClass.js +40 -37
- package/src/components/boolean-fields/descope-switch-toggle/SwitchToggleClass.js +43 -37
- package/src/components/descope-button/ButtonClass.js +22 -6
- package/src/components/descope-combo-box/ComboBoxClass.js +49 -36
- package/src/components/descope-container/ContainerClass.js +4 -4
- package/src/components/descope-divider/DividerClass.js +74 -55
- package/src/components/descope-email-field/EmailFieldClass.js +11 -47
- package/src/components/descope-link/LinkClass.js +8 -5
- package/src/components/descope-loader-linear/LoaderLinearClass.js +16 -12
- package/src/components/descope-loader-radial/LoaderRadialClass.js +12 -11
- package/src/components/descope-new-password/NewPasswordClass.js +65 -51
- package/src/components/descope-new-password/descope-new-password-internal/NewPasswordInternal.js +1 -1
- package/src/components/descope-number-field/NumberFieldClass.js +11 -43
- package/src/components/descope-passcode/PasscodeClass.js +36 -29
- package/src/components/descope-password-field/PasswordFieldClass.js +52 -41
- package/src/components/descope-phone-field/PhoneFieldClass.js +61 -41
- package/src/components/descope-text/TextClass.js +8 -8
- package/src/components/descope-text-area/TextAreaClass.js +50 -48
- package/src/components/descope-text-field/TextFieldClass.js +11 -53
- package/src/components/descope-text-field/textFieldMappings.js +66 -38
- package/src/helpers/themeHelpers/index.js +10 -8
- package/src/helpers/themeHelpers/resetHelpers.js +76 -0
- package/src/index.d.ts +2 -1
- package/src/mixins/createStyleMixin/index.js +38 -27
- package/src/mixins/inputValidationMixin.js +4 -1
- package/src/mixins/proxyInputMixin.js +11 -3
- package/src/theme/components/button.js +31 -16
- package/src/theme/components/checkbox.js +18 -47
- package/src/theme/components/comboBox.js +24 -36
- package/src/theme/components/container.js +34 -47
- package/src/theme/components/divider.js +31 -20
- package/src/theme/components/emailField.js +21 -3
- package/src/theme/components/image.js +1 -1
- package/src/theme/components/index.js +4 -3
- package/src/theme/components/inputWrapper.js +72 -0
- package/src/theme/components/link.js +15 -22
- package/src/theme/components/loader/loaderLinear.js +19 -24
- package/src/theme/components/loader/loaderRadial.js +32 -47
- package/src/theme/components/logo.js +1 -1
- package/src/theme/components/newPassword.js +11 -26
- package/src/theme/components/numberField.js +21 -3
- package/src/theme/components/passcode.js +17 -28
- package/src/theme/components/passwordField.js +19 -65
- package/src/theme/components/phoneField.js +18 -57
- package/src/theme/components/switchToggle.js +20 -34
- package/src/theme/components/text.js +14 -9
- package/src/theme/components/textArea.js +20 -37
- package/src/theme/components/textField.js +21 -68
package/dist/index.esm.js
CHANGED
@@ -267,14 +267,15 @@ const createClassSelectorSpecifier = (className, numOfRepeats) => Array(numOfRep
|
|
267
267
|
|
268
268
|
const STYLE_OVERRIDE_ATTR_PREFIX = 'st';
|
269
269
|
|
270
|
-
|
271
270
|
const createStyleMixin =
|
272
|
-
({ mappings = {} }) => (superclass) =>
|
273
|
-
|
271
|
+
({ mappings = {}, componentNameOverride = '' }) => (superclass) => {
|
272
|
+
const componentName = componentNameOverride || superclass.componentName;
|
273
|
+
|
274
|
+
return class CustomStyleMixinClass extends superclass {
|
274
275
|
static get cssVarList() {
|
275
276
|
return {
|
276
277
|
...superclass.cssVarList,
|
277
|
-
...createCssVarsList(
|
278
|
+
...createCssVarsList(componentName, {
|
278
279
|
...mappings,
|
279
280
|
})
|
280
281
|
};
|
@@ -313,30 +314,32 @@ const createStyleMixin =
|
|
313
314
|
this.#createOverridesStyle();
|
314
315
|
}
|
315
316
|
|
316
|
-
get componentTheme() {
|
317
|
-
return componentsThemeManager.currentTheme?.[
|
317
|
+
get #componentTheme() {
|
318
|
+
return componentsThemeManager.currentTheme?.[componentName] || ''
|
318
319
|
}
|
319
320
|
|
320
321
|
#onComponentThemeChange() {
|
321
|
-
this.#themeStyleEle.innerHTML = this
|
322
|
+
this.#themeStyleEle.innerHTML = this.#componentTheme[this.#themeSection];
|
322
323
|
}
|
323
324
|
|
324
325
|
#createComponentTheme() {
|
325
326
|
this.#themeStyleEle = document.createElement('style');
|
326
|
-
this.#themeStyleEle.id =
|
327
|
+
this.#themeStyleEle.id = `style-mixin-theme__${componentName}`;
|
327
328
|
this.#rootElement.prepend(this.#themeStyleEle);
|
328
329
|
this.#disconnectThemeManager = componentsThemeManager.onCurrentThemeChange(this.#onComponentThemeChange.bind(this));
|
329
330
|
this.#onComponentThemeChange();
|
330
331
|
}
|
331
332
|
|
332
333
|
#createOverridesStyle() {
|
333
|
-
this.#
|
334
|
-
|
334
|
+
if (this.#styleAttributes.length) {
|
335
|
+
this.#overrideStyleEle = document.createElement('style');
|
336
|
+
this.#overrideStyleEle.id = `style-mixin-overrides__${componentName}`;
|
335
337
|
|
336
|
-
|
338
|
+
const classSpecifier = createClassSelectorSpecifier(componentName, CSS_SELECTOR_SPECIFIER_MULTIPLY);
|
337
339
|
|
338
|
-
|
339
|
-
|
340
|
+
this.#overrideStyleEle.innerText = `:host(${classSpecifier}) {}`;
|
341
|
+
this.#rootElement.append(this.#overrideStyleEle);
|
342
|
+
}
|
340
343
|
}
|
341
344
|
|
342
345
|
#setAttrOverride(attrName, value) {
|
@@ -344,37 +347,44 @@ const createStyleMixin =
|
|
344
347
|
if (!style) return;
|
345
348
|
|
346
349
|
const varName = getCssVarName(
|
347
|
-
|
350
|
+
componentName,
|
348
351
|
attrName.replace(new RegExp(`^${STYLE_OVERRIDE_ATTR_PREFIX}-`), '')
|
349
352
|
);
|
350
353
|
|
351
354
|
if (value) style?.setProperty(varName, value);
|
352
|
-
else {
|
355
|
+
else {
|
353
356
|
style?.removeProperty(varName);
|
354
357
|
this.removeAttribute(attrName);
|
355
358
|
}
|
356
359
|
}
|
357
360
|
|
358
361
|
#updateOverridesStyle(attrs = []) {
|
362
|
+
let shouldUpdate = false;
|
363
|
+
|
359
364
|
for (const attr of attrs) {
|
360
365
|
if (this.#styleAttributes.includes(attr)) {
|
361
366
|
this.#setAttrOverride(attr, this.getAttribute(attr));
|
367
|
+
shouldUpdate = true;
|
362
368
|
}
|
363
369
|
}
|
364
370
|
|
365
|
-
|
366
|
-
|
371
|
+
if (shouldUpdate) {
|
372
|
+
// we are rewriting the style back to the style tag
|
373
|
+
this.#overrideStyleEle.innerHTML = this.#overrideStyleEle?.sheet?.cssRules[0].cssText;
|
374
|
+
}
|
367
375
|
}
|
368
376
|
|
369
377
|
#createMappingStyle() {
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
+
if (Object.keys(mappings).length) {
|
379
|
+
const themeStyle = document.createElement('style');
|
380
|
+
themeStyle.id = `style-mixin-mappings__${componentName}`;
|
381
|
+
themeStyle.innerHTML = createStyle(
|
382
|
+
kebabCaseJoin(componentName, this.#componentNameSuffix),
|
383
|
+
this.#baseSelector,
|
384
|
+
mappings
|
385
|
+
);
|
386
|
+
this.#rootElement.prepend(themeStyle);
|
387
|
+
}
|
378
388
|
}
|
379
389
|
|
380
390
|
#addClassName(className) {
|
@@ -384,7 +394,7 @@ const createStyleMixin =
|
|
384
394
|
init() {
|
385
395
|
super.init?.();
|
386
396
|
if (this.shadowRoot.isConnected) {
|
387
|
-
this.#addClassName(
|
397
|
+
this.#addClassName(componentName);
|
388
398
|
|
389
399
|
// this is instead attributeChangedCallback because we cannot use static methods in this case
|
390
400
|
observeAttributes(this, this.#updateOverridesStyle.bind(this), {});
|
@@ -396,7 +406,8 @@ const createStyleMixin =
|
|
396
406
|
|
397
407
|
this.#disconnectThemeManager?.();
|
398
408
|
}
|
399
|
-
}
|
409
|
+
}
|
410
|
+
};
|
400
411
|
|
401
412
|
const draggableMixin = (superclass) =>
|
402
413
|
class DraggableMixinClass extends superclass {
|
@@ -713,13 +724,16 @@ const inputValidationMixin = (superclass) => class InputValidationMixinClass ext
|
|
713
724
|
stepMismatch,
|
714
725
|
tooShort,
|
715
726
|
tooLong,
|
727
|
+
rangeOverflow,
|
728
|
+
rangeUnderflow,
|
729
|
+
badInput,
|
716
730
|
customError
|
717
731
|
} = flags;
|
718
732
|
switch (true) {
|
719
733
|
case valueMissing:
|
720
734
|
return this.getAttribute(errorAttributes.valueMissing) ||
|
721
735
|
this.defaultErrorMsgValueMissing
|
722
|
-
case patternMismatch || typeMismatch || stepMismatch:
|
736
|
+
case patternMismatch || typeMismatch || stepMismatch || rangeOverflow || rangeUnderflow || badInput:
|
723
737
|
return this.getAttribute(errorAttributes.patternMismatch) ||
|
724
738
|
this.defaultErrorMsgPatternMismatch
|
725
739
|
case tooShort:
|
@@ -939,10 +953,14 @@ const proxyInputMixin = (superclass) =>
|
|
939
953
|
propertyObserver(this, this.inputElement, 'selectionStart');
|
940
954
|
this.setSelectionRange = this.inputElement.setSelectionRange?.bind(this.inputElement);
|
941
955
|
|
942
|
-
forwardAttrs(this, this.inputElement, {includeAttrs: ['inputmode']});
|
956
|
+
forwardAttrs(this, this.inputElement, { includeAttrs: ['inputmode'] });
|
943
957
|
}
|
944
958
|
};
|
945
959
|
|
960
|
+
const composedProxyInputMixin = compose(
|
961
|
+
proxyInputMixin,
|
962
|
+
createStyleMixin({ componentNameOverride: getComponentName('input-wrapper') }));
|
963
|
+
|
946
964
|
// this is needed because we might generate the same css vars names
|
947
965
|
// e.g. "overlayColor" attribute in style mixin's mapping,
|
948
966
|
// will generate the same var as "color" attribute in portals's mapping
|
@@ -1099,17 +1117,19 @@ const inputEventsDispatchingMixin = (superclass) => class InputEventsDispatching
|
|
1099
1117
|
}
|
1100
1118
|
};
|
1101
1119
|
|
1102
|
-
const componentName$
|
1120
|
+
const componentName$o = getComponentName('button');
|
1103
1121
|
|
1104
1122
|
const resetStyles = `
|
1105
1123
|
:host {
|
1106
1124
|
display: inline-block;
|
1125
|
+
box-sizing: border-box;
|
1107
1126
|
}
|
1108
1127
|
vaadin-button {
|
1109
1128
|
margin: 0;
|
1110
1129
|
min-width: 0;
|
1111
1130
|
width: 100%;
|
1112
1131
|
height: auto;
|
1132
|
+
box-shadow: none;
|
1113
1133
|
}
|
1114
1134
|
vaadin-button::part(label) {
|
1115
1135
|
padding: 0;
|
@@ -1131,7 +1151,7 @@ const iconStyles = `
|
|
1131
1151
|
|
1132
1152
|
const editorOverrides = `vaadin-button::part(label) { pointer-events: none; }`;
|
1133
1153
|
|
1134
|
-
const { host: host$
|
1154
|
+
const { host: host$c, label: label$9 } = {
|
1135
1155
|
host: { selector: () => ':host' },
|
1136
1156
|
label: { selector: '::part(label)' },
|
1137
1157
|
};
|
@@ -1139,17 +1159,23 @@ const { host: host$a, label: label$7 } = {
|
|
1139
1159
|
const ButtonClass = compose(
|
1140
1160
|
createStyleMixin({
|
1141
1161
|
mappings: {
|
1142
|
-
|
1143
|
-
|
1144
|
-
|
1162
|
+
hostWidth: { ...host$c, property: 'width' },
|
1163
|
+
fontSize: { property: 'font-size' },
|
1164
|
+
fontFamily: { property: 'font-family' },
|
1165
|
+
|
1145
1166
|
cursor: {},
|
1146
1167
|
backgroundColor: {},
|
1168
|
+
|
1169
|
+
outlineOffset: {},
|
1170
|
+
outlineColor: {},
|
1171
|
+
outlineStyle: {},
|
1172
|
+
outlineWidth: {},
|
1173
|
+
|
1147
1174
|
borderRadius: {},
|
1148
1175
|
borderColor: {},
|
1149
1176
|
borderStyle: {},
|
1150
1177
|
borderWidth: {},
|
1151
|
-
|
1152
|
-
gap: label$7,
|
1178
|
+
|
1153
1179
|
verticalPadding: [
|
1154
1180
|
{ property: 'padding-top' },
|
1155
1181
|
{ property: 'padding-bottom' },
|
@@ -1157,7 +1183,12 @@ const ButtonClass = compose(
|
|
1157
1183
|
horizontalPadding: [
|
1158
1184
|
{ property: 'padding-left' },
|
1159
1185
|
{ property: 'padding-right' },
|
1160
|
-
]
|
1186
|
+
],
|
1187
|
+
|
1188
|
+
labelTextColor: { property: 'color' },
|
1189
|
+
labelTextDecoration: { ...label$9, property: 'text-decoration' },
|
1190
|
+
labelSpacing: { ...label$9, property: 'gap' },
|
1191
|
+
|
1161
1192
|
}
|
1162
1193
|
}),
|
1163
1194
|
draggableMixin,
|
@@ -1171,9 +1202,12 @@ const ButtonClass = compose(
|
|
1171
1202
|
${iconStyles}
|
1172
1203
|
${loadingIndicatorStyles}
|
1173
1204
|
${editorOverrides}
|
1205
|
+
:host {
|
1206
|
+
padding: calc(var(${ButtonClass.cssVarList.outlineWidth}) + var(${ButtonClass.cssVarList.outlineOffset}))
|
1207
|
+
}
|
1174
1208
|
`,
|
1175
1209
|
excludeAttrsSync: ['tabindex'],
|
1176
|
-
componentName: componentName$
|
1210
|
+
componentName: componentName$o
|
1177
1211
|
})
|
1178
1212
|
);
|
1179
1213
|
|
@@ -1206,7 +1240,7 @@ const loadingIndicatorStyles = `
|
|
1206
1240
|
}
|
1207
1241
|
`;
|
1208
1242
|
|
1209
|
-
customElements.define(componentName$
|
1243
|
+
customElements.define(componentName$o, ButtonClass);
|
1210
1244
|
|
1211
1245
|
const createBaseInputClass = (...args) => compose(
|
1212
1246
|
inputValidationMixin,
|
@@ -1215,7 +1249,7 @@ const createBaseInputClass = (...args) => compose(
|
|
1215
1249
|
inputEventsDispatchingMixin
|
1216
1250
|
)(createBaseClass(...args));
|
1217
1251
|
|
1218
|
-
const componentName$
|
1252
|
+
const componentName$n = getComponentName('boolean-field-internal');
|
1219
1253
|
|
1220
1254
|
const forwardAttributes$1 = [
|
1221
1255
|
'disabled',
|
@@ -1224,7 +1258,7 @@ const forwardAttributes$1 = [
|
|
1224
1258
|
'readonly'
|
1225
1259
|
];
|
1226
1260
|
|
1227
|
-
const BaseInputClass$3 = createBaseInputClass({ componentName: componentName$
|
1261
|
+
const BaseInputClass$3 = createBaseInputClass({ componentName: componentName$n, baseSelector: 'div' });
|
1228
1262
|
|
1229
1263
|
class BooleanInputInternal extends BaseInputClass$3 {
|
1230
1264
|
constructor() {
|
@@ -1288,14 +1322,14 @@ const booleanFieldMixin = (superclass) =>
|
|
1288
1322
|
|
1289
1323
|
const template = document.createElement('template');
|
1290
1324
|
template.innerHTML = `
|
1291
|
-
<${componentName$
|
1325
|
+
<${componentName$n}
|
1292
1326
|
tabindex="-1"
|
1293
1327
|
slot="input"
|
1294
|
-
></${componentName$
|
1328
|
+
></${componentName$n}>
|
1295
1329
|
`;
|
1296
1330
|
|
1297
1331
|
this.baseElement.appendChild(template.content.cloneNode(true));
|
1298
|
-
this.inputElement = this.shadowRoot.querySelector(componentName$
|
1332
|
+
this.inputElement = this.shadowRoot.querySelector(componentName$n);
|
1299
1333
|
this.checkbox = this.inputElement.querySelector('vaadin-checkbox');
|
1300
1334
|
|
1301
1335
|
forwardAttrs(this, this.inputElement, {
|
@@ -1313,11 +1347,90 @@ const booleanFieldMixin = (superclass) =>
|
|
1313
1347
|
}
|
1314
1348
|
};
|
1315
1349
|
|
1350
|
+
const resetInputOverrides = (name, cssVarList) => `
|
1351
|
+
${resetInputContainer(name)}
|
1352
|
+
${resetInputCursor(name)}
|
1353
|
+
${resetInputPlaceholder(name)}
|
1354
|
+
${resetInputField(name)}
|
1355
|
+
${resetInputAutoFill(name, cssVarList)}
|
1356
|
+
|
1357
|
+
${name}::before {
|
1358
|
+
height: unset;
|
1359
|
+
}
|
1360
|
+
|
1361
|
+
${name} > input {
|
1362
|
+
-webkit-mask-image: none;
|
1363
|
+
min-height: 0;
|
1364
|
+
}
|
1365
|
+
|
1366
|
+
${name}::part(input-field)::after {
|
1367
|
+
opacity: 0 !important;
|
1368
|
+
}
|
1369
|
+
`;
|
1370
|
+
|
1371
|
+
const resetInputContainer = (name) => `
|
1372
|
+
${name} {
|
1373
|
+
margin: 0;
|
1374
|
+
padding: 0;
|
1375
|
+
width: 100%;
|
1376
|
+
height: 100%;
|
1377
|
+
box-sizing: border-box;
|
1378
|
+
}
|
1379
|
+
`;
|
1380
|
+
|
1381
|
+
const resetInputField = (name) => `
|
1382
|
+
${name}::part(input-field) {
|
1383
|
+
overflow: hidden;
|
1384
|
+
padding: 0;
|
1385
|
+
box-shadow: none;
|
1386
|
+
}
|
1387
|
+
`;
|
1388
|
+
|
1389
|
+
const resetInputCursor = (name) => `
|
1390
|
+
${name} > label,
|
1391
|
+
${name}::part(label),
|
1392
|
+
${name}::part(required-indicator) {
|
1393
|
+
cursor: pointer;
|
1394
|
+
}
|
1395
|
+
`;
|
1396
|
+
|
1397
|
+
const resetInputPlaceholder = (name, ele = 'input') => `
|
1398
|
+
${name}[disabled] > ${ele}:placeholder-shown,
|
1399
|
+
${name}[readonly] > ${ele}:placeholder-shown {
|
1400
|
+
opacity: 1;
|
1401
|
+
}
|
1402
|
+
`;
|
1403
|
+
|
1404
|
+
const resetInputAutoFill = (name, cssVarList) => `
|
1405
|
+
${name} input:-webkit-autofill,
|
1406
|
+
${name} input:-webkit-autofill::first-line,
|
1407
|
+
${name} input:-webkit-autofill:hover,
|
1408
|
+
${name} input:-webkit-autofill:active,
|
1409
|
+
${name} input:-webkit-autofill:focus {
|
1410
|
+
-webkit-text-fill-color: var(${cssVarList.inputValueTextColor});
|
1411
|
+
box-shadow: 0 0 0 var(${cssVarList.inputHeight}) var(${cssVarList.inputBackgroundColor}) inset;
|
1412
|
+
}
|
1413
|
+
`;
|
1414
|
+
|
1415
|
+
const resetInputFieldDefaultWidth = () => `
|
1416
|
+
:host {
|
1417
|
+
--vaadin-field-default-width: auto;
|
1418
|
+
}
|
1419
|
+
`;
|
1420
|
+
|
1421
|
+
const resetInputReadonlyStyle = (name) => `
|
1422
|
+
${name}::part(input-field)::after {
|
1423
|
+
opacity: 0;
|
1424
|
+
}
|
1425
|
+
`;
|
1426
|
+
|
1316
1427
|
var commonStyles = `
|
1317
1428
|
:host {
|
1318
|
-
--vaadin-field-default-width: auto;
|
1319
1429
|
display: inline-flex;
|
1320
1430
|
}
|
1431
|
+
|
1432
|
+
${resetInputFieldDefaultWidth()}
|
1433
|
+
|
1321
1434
|
.wrapper {
|
1322
1435
|
display: flex;
|
1323
1436
|
}
|
@@ -1347,9 +1460,6 @@ vaadin-text-field::part(input-field)::after {
|
|
1347
1460
|
vaadin-text-field[focus-ring]::part(input-field) {
|
1348
1461
|
box-shadow: none;
|
1349
1462
|
}
|
1350
|
-
vaadin-text-field[required]::part(required-indicator)::after {
|
1351
|
-
content: "*";
|
1352
|
-
}
|
1353
1463
|
|
1354
1464
|
vaadin-checkbox [slot="label"] {
|
1355
1465
|
align-self: flex-start;
|
@@ -1371,138 +1481,155 @@ descope-boolean-field-internal {
|
|
1371
1481
|
min-height: 0;
|
1372
1482
|
padding: 0;
|
1373
1483
|
}
|
1484
|
+
|
1485
|
+
[slot="label"],
|
1486
|
+
vaadin-checkbox,
|
1487
|
+
vaadin-checkbox::part(checkbox) {
|
1488
|
+
height: 100%;
|
1489
|
+
cursor: pointer;
|
1490
|
+
}
|
1374
1491
|
`;
|
1375
1492
|
|
1376
|
-
const componentName$
|
1493
|
+
const componentName$m = getComponentName('checkbox');
|
1377
1494
|
|
1378
1495
|
const {
|
1379
|
-
host: host$
|
1496
|
+
host: host$b,
|
1380
1497
|
component: component$1,
|
1381
1498
|
checkboxElement,
|
1382
1499
|
checkboxSurface,
|
1383
1500
|
checkboxHiddenLabel: checkboxHiddenLabel$1,
|
1384
|
-
label: label$
|
1385
|
-
requiredIndicator: requiredIndicator$
|
1501
|
+
label: label$8,
|
1502
|
+
requiredIndicator: requiredIndicator$7,
|
1503
|
+
helperText: helperText$7,
|
1504
|
+
errorMessage: errorMessage$7
|
1386
1505
|
} = {
|
1387
1506
|
host: { selector: () => ':host' },
|
1388
1507
|
label: { selector: '::part(label)' },
|
1389
|
-
requiredIndicator: { selector: '::part(required-indicator)::after' },
|
1508
|
+
requiredIndicator: { selector: '[required]::part(required-indicator)::after' },
|
1390
1509
|
component: { selector: 'vaadin-checkbox' },
|
1391
1510
|
checkboxElement: { selector: 'vaadin-checkbox::part(checkbox)' },
|
1392
1511
|
checkboxSurface: { selector: 'vaadin-checkbox::part(checkbox)::after' },
|
1393
1512
|
checkboxHiddenLabel: { selector: 'vaadin-checkbox [slot="label"]' },
|
1513
|
+
helperText: { selector: '::part(helper-text)' },
|
1514
|
+
errorMessage: { selector: '::part(error-message)' },
|
1394
1515
|
};
|
1395
1516
|
|
1396
1517
|
const CheckboxClass = compose(
|
1397
1518
|
createStyleMixin({
|
1398
1519
|
mappings: {
|
1399
|
-
|
1400
|
-
cursor: component$1,
|
1520
|
+
hostWidth: { ...host$b, property: 'width' },
|
1401
1521
|
|
1402
|
-
|
1403
|
-
|
1404
|
-
checkboxRadius: { ...checkboxElement, property: 'border-radius' },
|
1405
|
-
|
1406
|
-
checkboxSize: [
|
1407
|
-
{ ...checkboxElement, property: 'width' },
|
1408
|
-
{ ...label$6, property: 'margin-left' },
|
1409
|
-
{ ...checkboxElement, property: 'height' },
|
1410
|
-
{ ...checkboxSurface, property: 'font-size' },
|
1411
|
-
{ ...component$1, property: 'font-size' },
|
1412
|
-
{ ...label$6, property: 'line-height' },
|
1413
|
-
{ ...checkboxHiddenLabel$1, property: 'line-height' }
|
1414
|
-
],
|
1415
|
-
|
1416
|
-
checkboxOutlineWidth: { ...checkboxElement, property: 'outline-width' },
|
1417
|
-
checkboxOutlineOffset: { ...checkboxElement, property: 'outline-offset' },
|
1418
|
-
checkboxOutlineColor: { ...checkboxElement, property: 'outline-color' },
|
1419
|
-
checkboxOutlineStyle: { ...checkboxElement, property: 'outline-style' },
|
1420
|
-
|
1421
|
-
// Checkmark
|
1422
|
-
checkmarkTextColor: { ...checkboxSurface, property: 'color' },
|
1423
|
-
|
1424
|
-
// Label
|
1425
|
-
labelFontSize: [
|
1426
|
-
{ ...host$9, property: 'font-size' },
|
1522
|
+
fontSize: [
|
1523
|
+
{ ...host$b, property: 'font-size' },
|
1427
1524
|
{ ...checkboxElement, property: 'font-size' },
|
1428
|
-
{ ...label$
|
1525
|
+
{ ...label$8, property: 'font-size' },
|
1429
1526
|
{ ...checkboxHiddenLabel$1, property: 'font-size' }
|
1430
1527
|
],
|
1528
|
+
fontFamily: [
|
1529
|
+
{ ...label$8, property: 'font-family' },
|
1530
|
+
{ ...checkboxHiddenLabel$1, property: 'font-family' },
|
1531
|
+
{ ...helperText$7, property: 'font-family' },
|
1532
|
+
{ ...errorMessage$7, property: 'font-family' }
|
1533
|
+
],
|
1534
|
+
|
1535
|
+
labelTextColor: [
|
1536
|
+
{ ...label$8, property: 'color' },
|
1537
|
+
{ ...requiredIndicator$7, property: 'color' },
|
1538
|
+
],
|
1539
|
+
labelRequiredIndicator: { ...requiredIndicator$7, property: 'content' },
|
1540
|
+
|
1431
1541
|
labelFontWeight: [
|
1432
|
-
{ ...label$
|
1542
|
+
{ ...label$8, property: 'font-weight' },
|
1433
1543
|
{ ...checkboxHiddenLabel$1, property: 'font-weight' }
|
1434
1544
|
],
|
1435
|
-
|
1436
|
-
{ ...label$
|
1545
|
+
labelSpacing: [
|
1546
|
+
{ ...label$8, property: 'left' },
|
1437
1547
|
{ ...checkboxHiddenLabel$1, property: 'padding-left' }
|
1438
1548
|
],
|
1439
|
-
|
1440
|
-
|
1441
|
-
|
1549
|
+
inputValueTextColor: { ...checkboxSurface, property: 'color' },
|
1550
|
+
inputBackgroundColor: { ...checkboxElement, property: 'background-color' },
|
1551
|
+
inputBorderRadius: { ...checkboxElement, property: 'border-radius' },
|
1552
|
+
inputOutlineWidth: { ...checkboxElement, property: 'outline-width' },
|
1553
|
+
inputOutlineOffset: { ...checkboxElement, property: 'outline-offset' },
|
1554
|
+
inputOutlineColor: { ...checkboxElement, property: 'outline-color' },
|
1555
|
+
inputOutlineStyle: { ...checkboxElement, property: 'outline-style' },
|
1556
|
+
inputSize: [
|
1557
|
+
{ ...checkboxElement, property: 'width' },
|
1558
|
+
{ ...label$8, property: 'margin-left' },
|
1559
|
+
{ ...checkboxElement, property: 'height' },
|
1560
|
+
{ ...checkboxSurface, property: 'font-size' },
|
1561
|
+
{ ...component$1, property: 'font-size' },
|
1562
|
+
{ ...label$8, property: 'line-height' },
|
1563
|
+
{ ...checkboxHiddenLabel$1, property: 'line-height' }
|
1442
1564
|
],
|
1443
1565
|
},
|
1444
1566
|
}),
|
1445
1567
|
draggableMixin,
|
1446
|
-
|
1568
|
+
composedProxyInputMixin,
|
1447
1569
|
componentNameValidationMixin,
|
1448
1570
|
booleanFieldMixin
|
1449
1571
|
)(
|
1450
1572
|
createProxy({
|
1451
1573
|
slots: [],
|
1452
1574
|
wrappedEleName: 'vaadin-text-field',
|
1453
|
-
style: `
|
1575
|
+
style: () => `
|
1454
1576
|
${commonStyles}
|
1455
|
-
|
1456
|
-
|
1457
|
-
height: 100%;
|
1458
|
-
cursor: pointer;
|
1577
|
+
vaadin-text-field {
|
1578
|
+
padding: calc(var(${CheckboxClass.cssVarList.inputOutlineWidth}) + var(${CheckboxClass.cssVarList.inputOutlineOffset}));
|
1459
1579
|
}
|
1460
1580
|
`,
|
1461
1581
|
excludeAttrsSync: ['tabindex'],
|
1462
|
-
componentName: componentName$
|
1582
|
+
componentName: componentName$m
|
1463
1583
|
})
|
1464
1584
|
);
|
1465
1585
|
|
1466
|
-
customElements.define(componentName$
|
1586
|
+
customElements.define(componentName$n, BooleanInputInternal);
|
1467
1587
|
|
1468
|
-
customElements.define(componentName$
|
1588
|
+
customElements.define(componentName$m, CheckboxClass);
|
1469
1589
|
|
1470
|
-
const componentName$
|
1590
|
+
const componentName$l = getComponentName('switch-toggle');
|
1471
1591
|
|
1472
1592
|
const {
|
1473
|
-
host: host$
|
1593
|
+
host: host$a,
|
1474
1594
|
component,
|
1475
1595
|
checkboxElement: track,
|
1476
1596
|
checkboxSurface: knob,
|
1477
1597
|
checkboxHiddenLabel,
|
1478
|
-
label: label$
|
1479
|
-
requiredIndicator: requiredIndicator$
|
1598
|
+
label: label$7,
|
1599
|
+
requiredIndicator: requiredIndicator$6,
|
1600
|
+
helperText: helperText$6,
|
1601
|
+
errorMessage: errorMessage$6
|
1480
1602
|
} = {
|
1481
1603
|
host: { selector: () => ':host' },
|
1482
1604
|
label: { selector: '::part(label)' },
|
1483
|
-
requiredIndicator: { selector: '::part(required-indicator)::after' },
|
1605
|
+
requiredIndicator: { selector: '[required]::part(required-indicator)::after' },
|
1484
1606
|
component: { selector: 'vaadin-checkbox' },
|
1485
1607
|
checkboxElement: { selector: 'vaadin-checkbox::part(checkbox)' },
|
1486
1608
|
checkboxSurface: { selector: 'vaadin-checkbox::part(checkbox)::after' },
|
1487
1609
|
checkboxHiddenLabel: { selector: 'vaadin-checkbox [slot="label"]' },
|
1610
|
+
helperText: { selector: '::part(helper-text)' },
|
1611
|
+
errorMessage: { selector: '::part(error-message)' },
|
1488
1612
|
};
|
1489
1613
|
|
1490
1614
|
const SwitchToggleClass = compose(
|
1491
1615
|
createStyleMixin({
|
1492
1616
|
mappings: {
|
1493
|
-
|
1494
|
-
|
1495
|
-
|
1496
|
-
|
1497
|
-
|
1617
|
+
hostWidth: { ...host$a, property: 'width' },
|
1618
|
+
fontSize: [
|
1619
|
+
{ ...component, property: 'font-size' },
|
1620
|
+
{ ...label$7, property: 'font-size' },
|
1621
|
+
{ ...checkboxHiddenLabel, property: 'font-size' },
|
1622
|
+
],
|
1623
|
+
fontFamily: [
|
1624
|
+
{ ...label$7, property: 'font-family' },
|
1625
|
+
{ ...helperText$6, property: 'font-family' },
|
1626
|
+
{ ...errorMessage$6, property: 'font-family' }
|
1627
|
+
],
|
1498
1628
|
trackBorderWidth: { ...track, property: 'border-width' },
|
1499
1629
|
trackBorderStyle: { ...track, property: 'border-style' },
|
1500
1630
|
trackBorderColor: { ...track, property: 'border-color' },
|
1501
|
-
|
1502
|
-
// Checkbox
|
1503
1631
|
trackBackgroundColor: { ...track, property: 'background-color' },
|
1504
|
-
|
1505
|
-
|
1632
|
+
trackBorderRadius: { ...track, property: 'border-radius' },
|
1506
1633
|
trackWidth: [
|
1507
1634
|
{ ...track, property: 'width' },
|
1508
1635
|
],
|
@@ -1510,44 +1637,43 @@ const SwitchToggleClass = compose(
|
|
1510
1637
|
{ ...knob, property: 'font-size' },
|
1511
1638
|
{ ...track, property: 'height' }
|
1512
1639
|
],
|
1513
|
-
switchOutlineWidth: { ...track, property: 'outline-width' },
|
1514
|
-
switchOutlineOffset: { ...track, property: 'outline-offset' },
|
1515
|
-
switchOutlineColor: { ...track, property: 'outline-color' },
|
1516
|
-
switchOutlineStyle: { ...track, property: 'outline-style' },
|
1517
1640
|
|
1518
|
-
// Knob
|
1519
1641
|
knobSize: [
|
1520
1642
|
{ ...knob, property: 'width' },
|
1521
1643
|
{ ...knob, property: 'height' },
|
1522
1644
|
],
|
1523
1645
|
knobTextColor: { ...knob, property: 'color' },
|
1524
1646
|
knobRadius: { ...knob, property: 'border-radius' },
|
1525
|
-
|
1647
|
+
knobTransitionDuration: { ...knob, property: 'transition' },
|
1526
1648
|
knobColor: { ...knob, property: 'background-color' },
|
1527
1649
|
knobTopOffset: { ...knob, property: 'top' },
|
1528
|
-
|
1650
|
+
knobLeftOffset: { ...knob, property: 'left' },
|
1529
1651
|
|
1530
|
-
|
1531
|
-
|
1532
|
-
{ ...label$5, property: 'padding-left' },
|
1652
|
+
labelSpacing: [
|
1653
|
+
{ ...label$7, property: 'padding-left' },
|
1533
1654
|
{ ...checkboxHiddenLabel, property: 'padding-left' }
|
1534
1655
|
],
|
1535
1656
|
labelLineHeight: [
|
1536
|
-
{ ...label$
|
1657
|
+
{ ...label$7, property: 'line-height' },
|
1537
1658
|
{ ...checkboxHiddenLabel, property: 'line-height' }
|
1538
1659
|
],
|
1539
1660
|
labelFontWeight: [
|
1540
|
-
{ ...label$
|
1661
|
+
{ ...label$7, property: 'font-weight' },
|
1541
1662
|
{ ...checkboxHiddenLabel, property: 'font-weight' }
|
1542
1663
|
],
|
1543
1664
|
labelTextColor: [
|
1544
|
-
{ ...label$
|
1545
|
-
{ ...requiredIndicator$
|
1665
|
+
{ ...label$7, property: 'color' },
|
1666
|
+
{ ...requiredIndicator$6, property: 'color' },
|
1546
1667
|
],
|
1668
|
+
labelRequiredIndicator: { ...requiredIndicator$6, property: 'content' },
|
1669
|
+
inputOutlineWidth: { ...track, property: 'outline-width' },
|
1670
|
+
inputOutlineOffset: { ...track, property: 'outline-offset' },
|
1671
|
+
inputOutlineColor: { ...track, property: 'outline-color' },
|
1672
|
+
inputOutlineStyle: { ...track, property: 'outline-style' },
|
1547
1673
|
},
|
1548
1674
|
}),
|
1549
1675
|
draggableMixin,
|
1550
|
-
|
1676
|
+
composedProxyInputMixin,
|
1551
1677
|
componentNameValidationMixin,
|
1552
1678
|
booleanFieldMixin
|
1553
1679
|
)(
|
@@ -1555,36 +1681,37 @@ const SwitchToggleClass = compose(
|
|
1555
1681
|
slots: [],
|
1556
1682
|
wrappedEleName: 'vaadin-text-field',
|
1557
1683
|
style: () => `
|
1558
|
-
|
1559
|
-
|
1560
|
-
|
1561
|
-
|
1562
|
-
|
1563
|
-
|
1564
|
-
|
1565
|
-
|
1566
|
-
|
1567
|
-
|
1568
|
-
|
1569
|
-
|
1570
|
-
|
1571
|
-
|
1572
|
-
|
1573
|
-
|
1574
|
-
|
1684
|
+
${commonStyles}
|
1685
|
+
:host {
|
1686
|
+
padding: calc(var(${SwitchToggleClass.cssVarList.inputOutlineWidth}) + var(${SwitchToggleClass.cssVarList.inputOutlineOffset}));
|
1687
|
+
}
|
1688
|
+
vaadin-text-field::part(label) {
|
1689
|
+
left: calc(var(${SwitchToggleClass.cssVarList.trackWidth}) + var(${SwitchToggleClass.cssVarList.trackBorderWidth}) * 2);
|
1690
|
+
}
|
1691
|
+
vaadin-checkbox[active]::part(checkbox) {
|
1692
|
+
transform: none;
|
1693
|
+
}
|
1694
|
+
vaadin-checkbox[checked]::part(checkbox) {
|
1695
|
+
background: none;
|
1696
|
+
}
|
1697
|
+
vaadin-checkbox::part(checkbox)::after {
|
1698
|
+
position: absolute;
|
1699
|
+
opacity: 1;
|
1700
|
+
content: '';
|
1701
|
+
}
|
1575
1702
|
`,
|
1576
1703
|
excludeAttrsSync: ['tabindex'],
|
1577
|
-
componentName: componentName$
|
1704
|
+
componentName: componentName$l
|
1578
1705
|
})
|
1579
1706
|
);
|
1580
1707
|
|
1581
|
-
customElements.define(componentName$
|
1708
|
+
customElements.define(componentName$l, SwitchToggleClass);
|
1582
1709
|
|
1583
|
-
const componentName$
|
1710
|
+
const componentName$k = getComponentName('loader-linear');
|
1584
1711
|
|
1585
|
-
class RawLoaderLinear extends createBaseClass({ componentName: componentName$
|
1712
|
+
class RawLoaderLinear extends createBaseClass({ componentName: componentName$k, baseSelector: ':host > div' }) {
|
1586
1713
|
static get componentName() {
|
1587
|
-
return componentName$
|
1714
|
+
return componentName$k;
|
1588
1715
|
}
|
1589
1716
|
constructor() {
|
1590
1717
|
super();
|
@@ -1605,7 +1732,6 @@ class RawLoaderLinear extends createBaseClass({ componentName: componentName$j,
|
|
1605
1732
|
position: absolute;
|
1606
1733
|
left: 0;
|
1607
1734
|
}
|
1608
|
-
|
1609
1735
|
:host > div {
|
1610
1736
|
width: 100%;
|
1611
1737
|
}
|
@@ -1615,38 +1741,43 @@ class RawLoaderLinear extends createBaseClass({ componentName: componentName$j,
|
|
1615
1741
|
}
|
1616
1742
|
}
|
1617
1743
|
|
1618
|
-
const selectors$
|
1619
|
-
root: {},
|
1744
|
+
const selectors$1 = {
|
1620
1745
|
after: { selector: '::after' },
|
1621
1746
|
host: { selector: () => ':host' }
|
1622
1747
|
};
|
1623
1748
|
|
1624
|
-
const {
|
1749
|
+
const { after: after$1, host: host$9 } = selectors$1;
|
1625
1750
|
|
1626
1751
|
const LoaderLinearClass = compose(
|
1627
1752
|
createStyleMixin({
|
1628
1753
|
mappings: {
|
1629
|
-
|
1630
|
-
|
1631
|
-
|
1632
|
-
|
1633
|
-
|
1634
|
-
|
1754
|
+
hostDisplay: {},
|
1755
|
+
hostWidth: { ...host$9, property: 'width' },
|
1756
|
+
barHeight: [
|
1757
|
+
{ property: 'height' },
|
1758
|
+
{ ...after$1, property: 'height' }
|
1759
|
+
],
|
1760
|
+
barBorderRadius: [
|
1761
|
+
{ property: 'border-radius' },
|
1762
|
+
{ ...after$1, property: 'border-radius' }
|
1763
|
+
],
|
1764
|
+
barBackgroundColor: { property: 'background-color' },
|
1765
|
+
barColor: { ...after$1, property: 'background-color' },
|
1635
1766
|
barWidth: { ...after$1, property: 'width' },
|
1636
|
-
animationDuration: [
|
1637
|
-
animationTimingFunction: [
|
1638
|
-
animationIterationCount: [
|
1767
|
+
animationDuration: [{}, after$1],
|
1768
|
+
animationTimingFunction: [{}, after$1],
|
1769
|
+
animationIterationCount: [{}, after$1]
|
1639
1770
|
}
|
1640
1771
|
}),
|
1641
1772
|
draggableMixin,
|
1642
1773
|
componentNameValidationMixin
|
1643
1774
|
)(RawLoaderLinear);
|
1644
1775
|
|
1645
|
-
customElements.define(componentName$
|
1776
|
+
customElements.define(componentName$k, LoaderLinearClass);
|
1646
1777
|
|
1647
|
-
const componentName$
|
1778
|
+
const componentName$j = getComponentName('loader-radial');
|
1648
1779
|
|
1649
|
-
class RawLoaderRadial extends createBaseClass({ componentName: componentName$
|
1780
|
+
class RawLoaderRadial extends createBaseClass({ componentName: componentName$j, baseSelector: ':host > div' }) {
|
1650
1781
|
constructor() {
|
1651
1782
|
super();
|
1652
1783
|
|
@@ -1672,17 +1803,18 @@ class RawLoaderRadial extends createBaseClass({ componentName: componentName$i,
|
|
1672
1803
|
const LoaderRadialClass = compose(
|
1673
1804
|
createStyleMixin({
|
1674
1805
|
mappings: {
|
1675
|
-
|
1676
|
-
|
1677
|
-
|
1678
|
-
|
1679
|
-
|
1680
|
-
|
1681
|
-
|
1682
|
-
|
1683
|
-
|
1684
|
-
|
1685
|
-
|
1806
|
+
hostDisplay: { property: 'display' },
|
1807
|
+
spinnerSize: [
|
1808
|
+
{ property: 'width' },
|
1809
|
+
{ property: 'height' }
|
1810
|
+
],
|
1811
|
+
spinnerBorderWidth: { property: 'border-width' },
|
1812
|
+
spinnerBorderStyle: { property: 'border-style' },
|
1813
|
+
spinnerBorderRadius: { property: 'border-radius' },
|
1814
|
+
spinnerQuadrant1Color: { property: 'border-top-color' },
|
1815
|
+
spinnerQuadrant2Color: { property: 'border-bottom-color' },
|
1816
|
+
spinnerQuadrant3Color: { property: 'border-right-color' },
|
1817
|
+
spinnerQuadrant4Color: { property: 'border-left-color' },
|
1686
1818
|
animationDuration: {},
|
1687
1819
|
animationTimingFunction: {},
|
1688
1820
|
animationIterationCount: {}
|
@@ -1692,11 +1824,11 @@ const LoaderRadialClass = compose(
|
|
1692
1824
|
componentNameValidationMixin
|
1693
1825
|
)(RawLoaderRadial);
|
1694
1826
|
|
1695
|
-
customElements.define(componentName$
|
1827
|
+
customElements.define(componentName$j, LoaderRadialClass);
|
1696
1828
|
|
1697
|
-
const componentName$
|
1829
|
+
const componentName$i = getComponentName('container');
|
1698
1830
|
|
1699
|
-
class RawContainer extends createBaseClass({ componentName: componentName$
|
1831
|
+
class RawContainer extends createBaseClass({ componentName: componentName$i, baseSelector: ':host > slot' }) {
|
1700
1832
|
constructor() {
|
1701
1833
|
super();
|
1702
1834
|
|
@@ -1707,11 +1839,11 @@ class RawContainer extends createBaseClass({ componentName: componentName$h, bas
|
|
1707
1839
|
width: 100%;
|
1708
1840
|
height: 100%;
|
1709
1841
|
display: flex;
|
1710
|
-
overflow:
|
1842
|
+
overflow: auto;
|
1711
1843
|
}
|
1712
1844
|
:host {
|
1713
1845
|
display: inline-block;
|
1714
|
-
overflow:
|
1846
|
+
overflow: hidden;
|
1715
1847
|
}
|
1716
1848
|
</style>
|
1717
1849
|
<slot></slot>
|
@@ -1722,8 +1854,8 @@ class RawContainer extends createBaseClass({ componentName: componentName$h, bas
|
|
1722
1854
|
const ContainerClass = compose(
|
1723
1855
|
createStyleMixin({
|
1724
1856
|
mappings: {
|
1725
|
-
|
1726
|
-
|
1857
|
+
hostHeight: { selector: () => ':host', property: 'height' },
|
1858
|
+
hostWidth: { selector: () => ':host', property: 'width' },
|
1727
1859
|
|
1728
1860
|
verticalPadding: [
|
1729
1861
|
{ property: 'padding-top' },
|
@@ -1755,50 +1887,45 @@ const ContainerClass = compose(
|
|
1755
1887
|
componentNameValidationMixin
|
1756
1888
|
)(RawContainer);
|
1757
1889
|
|
1758
|
-
customElements.define(componentName$
|
1890
|
+
customElements.define(componentName$i, ContainerClass);
|
1759
1891
|
|
1760
|
-
const componentName$
|
1761
|
-
class RawDivider extends createBaseClass({ componentName: componentName$
|
1892
|
+
const componentName$h = getComponentName('divider');
|
1893
|
+
class RawDivider extends createBaseClass({ componentName: componentName$h, baseSelector: ':host > div' }) {
|
1762
1894
|
constructor() {
|
1763
1895
|
super();
|
1764
1896
|
|
1765
1897
|
this.attachShadow({ mode: 'open' }).innerHTML = `
|
1766
|
-
|
1767
|
-
|
1768
|
-
|
1769
|
-
|
1770
|
-
|
1771
|
-
|
1772
|
-
|
1773
|
-
|
1774
|
-
|
1775
|
-
|
1776
|
-
|
1777
|
-
|
1778
|
-
|
1779
|
-
|
1780
|
-
|
1781
|
-
|
1782
|
-
|
1783
|
-
|
1784
|
-
|
1785
|
-
|
1786
|
-
|
1787
|
-
|
1788
|
-
|
1789
|
-
|
1790
|
-
|
1791
|
-
|
1792
|
-
|
1793
|
-
|
1794
|
-
|
1795
|
-
|
1796
|
-
|
1797
|
-
<descope-text>
|
1798
|
-
<slot></slot>
|
1799
|
-
</descope-text>
|
1800
|
-
</div>
|
1801
|
-
`;
|
1898
|
+
<style>
|
1899
|
+
:host {
|
1900
|
+
display: inline-block;
|
1901
|
+
}
|
1902
|
+
:host > div {
|
1903
|
+
display: flex;
|
1904
|
+
height: 100%;
|
1905
|
+
width: 100%;
|
1906
|
+
}
|
1907
|
+
:host > div::before,
|
1908
|
+
:host > div::after {
|
1909
|
+
content: '';
|
1910
|
+
flex-grow: 1;
|
1911
|
+
}
|
1912
|
+
descope-text {
|
1913
|
+
flex-grow: 0;
|
1914
|
+
flex-shrink: 0;
|
1915
|
+
}
|
1916
|
+
:host(:empty) descope-text {
|
1917
|
+
display: none;
|
1918
|
+
}
|
1919
|
+
:host([vertical="true"]) div {
|
1920
|
+
width: fit-content;
|
1921
|
+
}
|
1922
|
+
</style>
|
1923
|
+
<div>
|
1924
|
+
<descope-text>
|
1925
|
+
<slot></slot>
|
1926
|
+
</descope-text>
|
1927
|
+
</div>
|
1928
|
+
`;
|
1802
1929
|
|
1803
1930
|
this.textComponent = this.shadowRoot.querySelector('descope-text');
|
1804
1931
|
|
@@ -1808,41 +1935,65 @@ class RawDivider extends createBaseClass({ componentName: componentName$g, baseS
|
|
1808
1935
|
}
|
1809
1936
|
}
|
1810
1937
|
|
1811
|
-
const
|
1812
|
-
|
1938
|
+
const {
|
1939
|
+
host: host$8,
|
1940
|
+
before,
|
1941
|
+
after,
|
1942
|
+
text: text$3,
|
1943
|
+
} = {
|
1944
|
+
host: { selector: () => ':host' },
|
1813
1945
|
before: { selector: '::before' },
|
1814
1946
|
after: { selector: '::after' },
|
1815
1947
|
text: { selector: 'descope-text' },
|
1816
|
-
host: { selector: () => ':host' },
|
1817
1948
|
};
|
1818
1949
|
|
1819
|
-
const { root, before, after, text: text$3, host: host$6 } = selectors$2;
|
1820
|
-
|
1821
1950
|
const DividerClass = compose(
|
1822
1951
|
createStyleMixin({
|
1823
1952
|
mappings: {
|
1824
|
-
|
1825
|
-
|
1826
|
-
|
1827
|
-
|
1828
|
-
|
1829
|
-
|
1830
|
-
|
1831
|
-
|
1832
|
-
|
1833
|
-
|
1834
|
-
|
1835
|
-
|
1836
|
-
|
1953
|
+
hostWidth: { ...host$8, property: 'width' },
|
1954
|
+
hostPadding: { ...host$8, property: 'padding' },
|
1955
|
+
|
1956
|
+
minHeight: {},
|
1957
|
+
alignItems: {},
|
1958
|
+
alignSelf: {},
|
1959
|
+
flexDirection: {},
|
1960
|
+
|
1961
|
+
labelTextWidth: { ...text$3, property: 'width' },
|
1962
|
+
labelTextMaxWidth: { ...text$3, property: 'max-width' },
|
1963
|
+
labelTextVerticalSpacing: [
|
1964
|
+
{ ...text$3, property: 'padding-top' },
|
1965
|
+
{ ...text$3, property: 'padding-bottom' }
|
1966
|
+
],
|
1967
|
+
labelTextHorizontalSpacing: [
|
1968
|
+
{ ...text$3, property: 'padding-right' },
|
1969
|
+
{ ...text$3, property: 'padding-left' }
|
1970
|
+
],
|
1971
|
+
|
1972
|
+
stripeColor: [
|
1973
|
+
{ ...before, property: 'background-color' },
|
1974
|
+
{ ...after, property: 'background-color' }
|
1975
|
+
],
|
1976
|
+
stripeHorizontalThickness: [
|
1977
|
+
{ ...before, property: 'height' },
|
1978
|
+
{ ...after, property: 'height' }
|
1979
|
+
],
|
1980
|
+
stripeVerticalThickness: [
|
1981
|
+
{ ...before, property: 'width' },
|
1982
|
+
{ ...after, property: 'width' }
|
1983
|
+
],
|
1984
|
+
stripeColorOpacity: [
|
1985
|
+
{ ...before, property: 'opacity' },
|
1986
|
+
{ ...after, property: 'opacity' }
|
1987
|
+
],
|
1837
1988
|
},
|
1838
1989
|
}),
|
1839
1990
|
draggableMixin,
|
1840
1991
|
componentNameValidationMixin
|
1841
1992
|
)(RawDivider);
|
1842
1993
|
|
1843
|
-
const componentName$
|
1994
|
+
const componentName$g = getComponentName('text');
|
1844
1995
|
|
1845
|
-
class RawText extends createBaseClass({ componentName: componentName$
|
1996
|
+
class RawText extends createBaseClass({ componentName: componentName$g, baseSelector: ':host > slot' }) {
|
1846
1997
|
constructor() {
|
1847
1998
|
super();
|
1848
1999
|
|
@@ -1864,147 +2015,138 @@ class RawText extends createBaseClass({ componentName: componentName$f, baseSele
|
|
1864
2015
|
const TextClass = compose(
|
1865
2016
|
createStyleMixin({
|
1866
2017
|
mappings: {
|
2018
|
+
hostWidth: { selector: () => ':host', property: 'width' },
|
2019
|
+
fontSize: { property: 'font-size' },
|
2020
|
+
textColor: { property: 'color' },
|
2021
|
+
textLineHeight: { property: 'line-height' },
|
2022
|
+
textLetterSpacing: { property: 'letter-spacing' },
|
2023
|
+
textShadow: {},
|
2024
|
+
textAlign: {},
|
2025
|
+
textTransform: {},
|
1867
2026
|
fontFamily: {},
|
1868
|
-
lineHeight: {},
|
1869
2027
|
fontStyle: {},
|
1870
|
-
fontSize: {},
|
1871
2028
|
fontWeight: {},
|
1872
|
-
width: { selector: () => ':host' },
|
1873
|
-
color: {},
|
1874
|
-
letterSpacing: {},
|
1875
|
-
textShadow: {},
|
1876
2029
|
borderWidth: {},
|
1877
2030
|
borderStyle: {},
|
1878
2031
|
borderColor: {},
|
1879
|
-
textTransform: {},
|
1880
|
-
textAlign: {},
|
1881
2032
|
},
|
1882
2033
|
}),
|
1883
2034
|
draggableMixin,
|
1884
2035
|
componentNameValidationMixin
|
1885
2036
|
)(RawText);
|
1886
2037
|
|
1887
|
-
customElements.define(componentName$
|
2038
|
+
customElements.define(componentName$g, TextClass);
|
1888
2039
|
|
1889
|
-
customElements.define(componentName$
|
2040
|
+
customElements.define(componentName$h, DividerClass);
|
1890
2041
|
|
1891
|
-
const
|
1892
|
-
|
1893
|
-
|
1894
|
-
|
1895
|
-
|
1896
|
-
|
1897
|
-
input
|
2042
|
+
const {
|
2043
|
+
host: host$7,
|
2044
|
+
label: label$6,
|
2045
|
+
placeholder: placeholder$2,
|
2046
|
+
requiredIndicator: requiredIndicator$5,
|
2047
|
+
inputField: inputField$4,
|
2048
|
+
input,
|
2049
|
+
readOnlyInput,
|
2050
|
+
helperText: helperText$5,
|
2051
|
+
errorMessage: errorMessage$5
|
2052
|
+
} = {
|
2053
|
+
host: { selector: () => ':host' },
|
2054
|
+
label: { selector: '::part(label)' },
|
2055
|
+
requiredIndicator: { selector: '[required]::part(required-indicator)::after' },
|
2056
|
+
placeholder: { selector: '> input:placeholder-shown' },
|
2057
|
+
inputField: { selector: '::part(input-field)' },
|
2058
|
+
input: { selector: 'input' },
|
2059
|
+
readOnlyInput: { selector: '[readonly]::part(input-field)::after' },
|
2060
|
+
helperText: { selector: '::part(helper-text)' },
|
2061
|
+
errorMessage: { selector: '::part(error-message)' }
|
1898
2062
|
};
|
1899
2063
|
|
1900
2064
|
var textFieldMappings = {
|
1901
|
-
|
1902
|
-
|
1903
|
-
|
1904
|
-
|
1905
|
-
borderColor: [
|
1906
|
-
{ selector: selectors$1.inputWrapper },
|
1907
|
-
{ selector: selectors$1.readOnlyInput }
|
2065
|
+
// we apply font-size also on the host so we can set its width with em
|
2066
|
+
fontSize: [
|
2067
|
+
{ property: 'font-size' },
|
2068
|
+
{ ...host$7, property: 'font-size' }
|
1908
2069
|
],
|
1909
|
-
|
1910
|
-
{
|
1911
|
-
{
|
2070
|
+
fontFamily: [
|
2071
|
+
{ ...label$6, property: 'font-family' },
|
2072
|
+
{ ...inputField$4, property: 'font-family' },
|
2073
|
+
{ ...helperText$5, property: 'font-family' },
|
2074
|
+
{ ...errorMessage$5, property: 'font-family' }
|
1912
2075
|
],
|
1913
|
-
|
1914
|
-
|
1915
|
-
|
2076
|
+
|
2077
|
+
hostWidth: { ...host$7, property: 'width' },
|
2078
|
+
|
2079
|
+
inputBackgroundColor: { ...inputField$4, property: 'background-color' },
|
2080
|
+
|
2081
|
+
labelTextColor: [
|
2082
|
+
{ ...label$6, property: 'color' },
|
2083
|
+
{ ...requiredIndicator$5, property: 'color' }
|
1916
2084
|
],
|
1917
|
-
borderRadius: { selector: selectors$1.inputWrapper },
|
1918
|
-
boxShadow: { selector: selectors$1.inputWrapper },
|
1919
2085
|
|
1920
|
-
|
1921
|
-
|
1922
|
-
|
1923
|
-
|
1924
|
-
|
1925
|
-
|
1926
|
-
|
1927
|
-
|
1928
|
-
outlineStyle: { selector: selectors$1.inputWrapper },
|
1929
|
-
outlineWidth: [
|
1930
|
-
{ selector: selectors$1.inputWrapper },
|
1931
|
-
// we need to make sure there is enough space for the outline
|
1932
|
-
{ property: 'padding' }
|
2086
|
+
inputValueTextColor: { ...inputField$4, property: 'color' },
|
2087
|
+
inputCaretTextColor: { ...input, property: 'color' },
|
2088
|
+
|
2089
|
+
labelRequiredIndicator: { ...requiredIndicator$5, property: 'content' },
|
2090
|
+
|
2091
|
+
inputBorderColor: [
|
2092
|
+
{ ...inputField$4, property: 'border-color' },
|
2093
|
+
{ ...readOnlyInput, property: 'border-color' }
|
1933
2094
|
],
|
1934
|
-
|
1935
|
-
|
1936
|
-
|
1937
|
-
|
2095
|
+
inputBorderWidth: [
|
2096
|
+
{ ...inputField$4, property: 'border-width' },
|
2097
|
+
{ ...readOnlyInput, property: 'border-width' }
|
2098
|
+
],
|
2099
|
+
inputBorderStyle: [
|
2100
|
+
{ ...inputField$4, property: 'border-style' },
|
2101
|
+
{ ...readOnlyInput, property: 'border-style' }
|
2102
|
+
],
|
2103
|
+
inputBorderRadius: { ...inputField$4, property: 'border-radius' },
|
2104
|
+
|
2105
|
+
inputHeight: { ...inputField$4, property: 'height' },
|
2106
|
+
inputPadding: { ...inputField$4, property: 'padding' },
|
2107
|
+
|
2108
|
+
inputOutlineColor: { ...inputField$4, property: 'outline-color' },
|
2109
|
+
inputOutlineStyle: { ...inputField$4, property: 'outline-style' },
|
2110
|
+
inputOutlineWidth: { ...inputField$4, property: 'outline-width' },
|
2111
|
+
inputOutlineOffset: { ...inputField$4, property: 'outline-offset' },
|
2112
|
+
|
2113
|
+
inputTextAlign: { ...input, property: 'text-align' },
|
1938
2114
|
|
1939
|
-
|
2115
|
+
inputPlaceholderColor: { ...placeholder$2, property: 'color' }
|
2116
|
+
};
|
1940
2117
|
|
1941
|
-
|
2118
|
+
const componentName$f = getComponentName('email-field');
|
1942
2119
|
|
1943
2120
|
const EmailFieldClass = compose(
|
1944
2121
|
createStyleMixin({
|
1945
|
-
mappings:
|
1946
|
-
...textFieldMappings
|
1947
|
-
}
|
2122
|
+
mappings: textFieldMappings
|
1948
2123
|
}),
|
1949
2124
|
draggableMixin,
|
1950
|
-
|
2125
|
+
composedProxyInputMixin,
|
1951
2126
|
componentNameValidationMixin
|
1952
2127
|
)(
|
1953
2128
|
createProxy({
|
1954
2129
|
slots: ['suffix'],
|
1955
2130
|
wrappedEleName: 'vaadin-email-field',
|
1956
|
-
style: () =>
|
2131
|
+
style: () => `
|
2132
|
+
:host {
|
2133
|
+
display: inline-block;
|
2134
|
+
max-width: 100%;
|
2135
|
+
min-width: 10em;
|
2136
|
+
padding: calc(var(${EmailFieldClass.cssVarList.inputOutlineWidth}) + var(${EmailFieldClass.cssVarList.inputOutlineOffset}))
|
2137
|
+
}
|
2138
|
+
${resetInputOverrides('vaadin-email-field', EmailFieldClass.cssVarList)}
|
2139
|
+
`,
|
1957
2140
|
excludeAttrsSync: ['tabindex'],
|
1958
|
-
componentName: componentName$
|
2141
|
+
componentName: componentName$f
|
1959
2142
|
})
|
1960
2143
|
);
|
1961
2144
|
|
1962
|
-
|
1963
|
-
:host {
|
1964
|
-
display: inline-block;
|
1965
|
-
min-width: 10em;
|
1966
|
-
max-width: 100%;
|
1967
|
-
}
|
1968
|
-
vaadin-email-field {
|
1969
|
-
margin: 0;
|
1970
|
-
width: 100%;
|
1971
|
-
box-sizing: border-box;
|
1972
|
-
}
|
1973
|
-
vaadin-email-field::before {
|
1974
|
-
height: 0;
|
1975
|
-
}
|
1976
|
-
vaadin-email-field > input {
|
1977
|
-
-webkit-mask-image: none;
|
1978
|
-
}
|
1979
|
-
vaadin-email-field::part(input-field) {
|
1980
|
-
overflow: hidden;
|
1981
|
-
padding: 0;
|
1982
|
-
}
|
1983
|
-
vaadin-email-field[readonly] > input:placeholder-shown {
|
1984
|
-
opacity: 1;
|
1985
|
-
}
|
1986
|
-
vaadin-email-field input:-webkit-autofill,
|
1987
|
-
vaadin-email-field input:-webkit-autofill::first-line,
|
1988
|
-
vaadin-email-field input:-webkit-autofill:hover,
|
1989
|
-
vaadin-email-field input:-webkit-autofill:active,
|
1990
|
-
vaadin-email-field input:-webkit-autofill:focus {
|
1991
|
-
-webkit-text-fill-color: var(${EmailFieldClass.cssVarList.color});
|
1992
|
-
box-shadow: 0 0 0 var(${EmailFieldClass.cssVarList.height}) var(${EmailFieldClass.cssVarList.backgroundColor}) inset;
|
1993
|
-
}
|
1994
|
-
vaadin-email-field[required]::part(required-indicator)::after {
|
1995
|
-
content: "*";
|
1996
|
-
color: var(${EmailFieldClass.cssVarList.color});
|
1997
|
-
}
|
1998
|
-
vaadin-email-field[readonly]::part(input-field)::after {
|
1999
|
-
border: 0 solid;
|
2000
|
-
}
|
2001
|
-
`;
|
2002
|
-
|
2003
|
-
customElements.define(componentName$e, EmailFieldClass);
|
2145
|
+
customElements.define(componentName$f, EmailFieldClass);
|
2004
2146
|
|
2005
|
-
const componentName$
|
2147
|
+
const componentName$e = getComponentName('link');
|
2006
2148
|
|
2007
|
-
class RawLink extends createBaseClass({ componentName: componentName$
|
2149
|
+
class RawLink extends createBaseClass({ componentName: componentName$e, baseSelector: ':host a' }) {
|
2008
2150
|
constructor() {
|
2009
2151
|
super();
|
2010
2152
|
|
@@ -2046,32 +2188,35 @@ const selectors = {
|
|
2046
2188
|
text: { selector: () => TextClass.componentName }
|
2047
2189
|
};
|
2048
2190
|
|
2049
|
-
const { anchor, text: text$2, host: host$
|
2191
|
+
const { anchor, text: text$2, host: host$6, wrapper } = selectors;
|
2050
2192
|
|
2051
2193
|
const LinkClass = compose(
|
2052
2194
|
createStyleMixin({
|
2053
2195
|
mappings: {
|
2054
|
-
|
2196
|
+
hostWidth: { ...host$6, property: 'width' },
|
2055
2197
|
textAlign: wrapper,
|
2056
|
-
|
2198
|
+
textColor: [
|
2199
|
+
{ ...anchor, property: 'color' },
|
2200
|
+
{ ...text$2, property: TextClass.cssVarList.textColor }
|
2201
|
+
],
|
2057
2202
|
cursor: anchor,
|
2058
|
-
|
2059
|
-
|
2060
|
-
|
2203
|
+
textUnderlineWidth: { ...anchor, property: 'border-bottom-width' },
|
2204
|
+
textUnderlineStyle: { ...anchor, property: 'border-bottom-style' },
|
2205
|
+
textUnderlineColor: { ...anchor, property: 'border-bottom-color' }
|
2061
2206
|
},
|
2062
2207
|
}),
|
2063
2208
|
draggableMixin,
|
2064
2209
|
componentNameValidationMixin
|
2065
2210
|
)(RawLink);
|
2066
2211
|
|
2067
|
-
customElements.define(componentName$
|
2212
|
+
customElements.define(componentName$e, LinkClass);
|
2068
2213
|
|
2069
|
-
const componentName$
|
2214
|
+
const componentName$d = getComponentName('logo');
|
2070
2215
|
|
2071
2216
|
let style;
|
2072
2217
|
const getStyle = () => style;
|
2073
2218
|
|
2074
|
-
class RawLogo extends createBaseClass({ componentName: componentName$
|
2219
|
+
class RawLogo extends createBaseClass({ componentName: componentName$d, baseSelector: ':host > div' }) {
|
2075
2220
|
constructor() {
|
2076
2221
|
super();
|
2077
2222
|
|
@@ -2113,69 +2258,36 @@ style = `
|
|
2113
2258
|
}
|
2114
2259
|
`;
|
2115
2260
|
|
2116
|
-
customElements.define(componentName$
|
2261
|
+
customElements.define(componentName$d, LogoClass);
|
2117
2262
|
|
2118
|
-
const componentName$
|
2119
|
-
|
2120
|
-
let overrides$3 = ``;
|
2263
|
+
const componentName$c = getComponentName('number-field');
|
2121
2264
|
|
2122
2265
|
const NumberFieldClass = compose(
|
2123
2266
|
createStyleMixin({
|
2124
|
-
mappings:
|
2125
|
-
...textFieldMappings
|
2126
|
-
}
|
2267
|
+
mappings: textFieldMappings
|
2127
2268
|
}),
|
2128
2269
|
draggableMixin,
|
2129
|
-
|
2270
|
+
composedProxyInputMixin,
|
2130
2271
|
componentNameValidationMixin
|
2131
2272
|
)(
|
2132
2273
|
createProxy({
|
2133
2274
|
slots: ['prefix', 'suffix'],
|
2134
2275
|
wrappedEleName: 'vaadin-number-field',
|
2135
|
-
style: () =>
|
2136
|
-
|
2137
|
-
|
2138
|
-
|
2139
|
-
|
2140
|
-
|
2141
|
-
|
2142
|
-
|
2143
|
-
|
2144
|
-
|
2145
|
-
|
2146
|
-
}
|
2147
|
-
|
2148
|
-
margin: 0;
|
2149
|
-
padding: 0;
|
2150
|
-
width: 100%;
|
2151
|
-
}
|
2152
|
-
vaadin-number-field > input {
|
2153
|
-
-webkit-mask-image: none;
|
2154
|
-
}
|
2155
|
-
vaadin-number-field::part(input-field) {
|
2156
|
-
padding: 0;
|
2157
|
-
}
|
2158
|
-
vaadin-number-field[readonly] > input:placeholder-shown {
|
2159
|
-
opacity: 1;
|
2160
|
-
}
|
2161
|
-
vaadin-number-field input:-webkit-autofill,
|
2162
|
-
vaadin-number-field input:-webkit-autofill::first-line,
|
2163
|
-
vaadin-number-field input:-webkit-autofill:hover,
|
2164
|
-
vaadin-number-field input:-webkit-autofill:active,
|
2165
|
-
vaadin-number-field input:-webkit-autofill:focus {
|
2166
|
-
-webkit-text-fill-color: var(${NumberFieldClass.cssVarList.color});
|
2167
|
-
box-shadow: 0 0 0 var(${NumberFieldClass.cssVarList.height}) var(${NumberFieldClass.cssVarList.backgroundColor}) inset;
|
2168
|
-
}
|
2169
|
-
vaadin-number-field[required]::part(required-indicator)::after {
|
2170
|
-
content: "*";
|
2171
|
-
color: var(${NumberFieldClass.cssVarList.color});
|
2172
|
-
}
|
2173
|
-
vaadin-number-field[readonly]::part(input-field)::after {
|
2174
|
-
border: 0 solid;
|
2175
|
-
}
|
2176
|
-
`;
|
2276
|
+
style: () => `
|
2277
|
+
:host {
|
2278
|
+
display: inline-block;
|
2279
|
+
max-width: 100%;
|
2280
|
+
min-width: 10em;
|
2281
|
+
padding: calc(var(${NumberFieldClass.cssVarList.inputOutlineWidth}) + var(${NumberFieldClass.cssVarList.inputOutlineOffset}));
|
2282
|
+
}
|
2283
|
+
${resetInputOverrides('vaadin-number-field', NumberFieldClass.cssVarList)}
|
2284
|
+
`,
|
2285
|
+
excludeAttrsSync: ['tabindex'],
|
2286
|
+
componentName: componentName$c
|
2287
|
+
})
|
2288
|
+
);
|
2177
2289
|
|
2178
|
-
customElements.define(componentName$
|
2290
|
+
customElements.define(componentName$c, NumberFieldClass);
|
2179
2291
|
|
2180
2292
|
const focusElement = (ele) => {
|
2181
2293
|
ele?.focus();
|
@@ -2191,7 +2303,7 @@ const getSanitizedCharacters = (str) => {
|
|
2191
2303
|
return [...pin]; // creating array of chars
|
2192
2304
|
};
|
2193
2305
|
|
2194
|
-
const componentName$
|
2306
|
+
const componentName$b = getComponentName('passcode-internal');
|
2195
2307
|
|
2196
2308
|
const observedAttributes$2 = [
|
2197
2309
|
'digits'
|
@@ -2205,7 +2317,7 @@ const forwardAttributes = [
|
|
2205
2317
|
'readonly'
|
2206
2318
|
];
|
2207
2319
|
|
2208
|
-
const BaseInputClass$2 = createBaseInputClass({ componentName: componentName$
|
2320
|
+
const BaseInputClass$2 = createBaseInputClass({ componentName: componentName$b, baseSelector: 'div' });
|
2209
2321
|
|
2210
2322
|
class PasscodeInternal extends BaseInputClass$2 {
|
2211
2323
|
static get observedAttributes() {
|
@@ -2213,7 +2325,7 @@ class PasscodeInternal extends BaseInputClass$2 {
|
|
2213
2325
|
}
|
2214
2326
|
|
2215
2327
|
static get componentName() {
|
2216
|
-
return componentName$
|
2328
|
+
return componentName$b;
|
2217
2329
|
}
|
2218
2330
|
|
2219
2331
|
constructor() {
|
@@ -2376,9 +2488,7 @@ class PasscodeInternal extends BaseInputClass$2 {
|
|
2376
2488
|
}
|
2377
2489
|
}
|
2378
2490
|
|
2379
|
-
const componentName$
|
2380
|
-
|
2381
|
-
let overrides$2 = ``;
|
2491
|
+
const componentName$a = getComponentName('text-field');
|
2382
2492
|
|
2383
2493
|
const observedAttrs = ['type'];
|
2384
2494
|
|
@@ -2407,70 +2517,29 @@ const TextFieldClass = compose(
|
|
2407
2517
|
mappings: textFieldMappings
|
2408
2518
|
}),
|
2409
2519
|
draggableMixin,
|
2410
|
-
|
2520
|
+
composedProxyInputMixin,
|
2411
2521
|
componentNameValidationMixin,
|
2412
2522
|
customMixin$3
|
2413
2523
|
)(
|
2414
2524
|
createProxy({
|
2415
2525
|
slots: ['prefix', 'suffix'],
|
2416
2526
|
wrappedEleName: 'vaadin-text-field',
|
2417
|
-
style: () =>
|
2527
|
+
style: () => `
|
2528
|
+
:host {
|
2529
|
+
display: inline-block;
|
2530
|
+
max-width: 100%;
|
2531
|
+
min-width: 10em;
|
2532
|
+
padding: calc(var(${TextFieldClass.cssVarList.inputOutlineWidth}) + var(${TextFieldClass.cssVarList.inputOutlineOffset}));
|
2533
|
+
}
|
2534
|
+
${resetInputFieldDefaultWidth()}
|
2535
|
+
${resetInputOverrides('vaadin-text-field', TextFieldClass.cssVarList)}
|
2536
|
+
`,
|
2418
2537
|
excludeAttrsSync: ['tabindex'],
|
2419
|
-
componentName: componentName$
|
2538
|
+
componentName: componentName$a
|
2420
2539
|
})
|
2421
2540
|
);
|
2422
2541
|
|
2423
|
-
|
2424
|
-
:host {
|
2425
|
-
display: inline-block;
|
2426
|
-
--vaadin-field-default-width: auto;
|
2427
|
-
max-width: 100%;
|
2428
|
-
min-width: 10em;
|
2429
|
-
|
2430
|
-
}
|
2431
|
-
vaadin-text-field {
|
2432
|
-
margin: 0;
|
2433
|
-
width: 100%;
|
2434
|
-
height: 100%;
|
2435
|
-
box-sizing: border-box;
|
2436
|
-
}
|
2437
|
-
|
2438
|
-
vaadin-text-field::part(input-field) {
|
2439
|
-
overflow: hidden;
|
2440
|
-
padding: 0;
|
2441
|
-
}
|
2442
|
-
vaadin-text-field[disabled] > input:placeholder-shown,
|
2443
|
-
vaadin-text-field[readonly] > input:placeholder-shown {
|
2444
|
-
opacity: 1;
|
2445
|
-
}
|
2446
|
-
vaadin-text-field input:-webkit-autofill,
|
2447
|
-
vaadin-text-field input:-webkit-autofill::first-line,
|
2448
|
-
vaadin-text-field input:-webkit-autofill:hover,
|
2449
|
-
vaadin-text-field input:-webkit-autofill:active,
|
2450
|
-
vaadin-text-field input:-webkit-autofill:focus {
|
2451
|
-
-webkit-text-fill-color: var(${TextFieldClass.cssVarList.color});
|
2452
|
-
box-shadow: 0 0 0 var(${TextFieldClass.cssVarList.height}) var(${TextFieldClass.cssVarList.backgroundColor}) inset;
|
2453
|
-
}
|
2454
|
-
|
2455
|
-
vaadin-text-field > input {
|
2456
|
-
-webkit-mask-image: none;
|
2457
|
-
min-height: 0;
|
2458
|
-
}
|
2459
|
-
|
2460
|
-
vaadin-text-field[required]::part(required-indicator)::after {
|
2461
|
-
content: "*";
|
2462
|
-
color: var(${TextFieldClass.cssVarList.color});
|
2463
|
-
}
|
2464
|
-
vaadin-text-field::part(input-field)::after {
|
2465
|
-
opacity: 0 !important;
|
2466
|
-
}
|
2467
|
-
|
2468
|
-
vaadin-text-field::before {
|
2469
|
-
height: unset;
|
2470
|
-
}
|
2471
|
-
`;
|
2472
|
-
|
2473
|
-
const componentName$8 = getComponentName('passcode');
|
2542
|
+
const componentName$9 = getComponentName('passcode');
|
2474
2543
|
|
2475
2544
|
const observedAttributes$1 = [
|
2476
2545
|
'digits'
|
@@ -2495,17 +2564,17 @@ const customMixin$2 = (superclass) =>
|
|
2495
2564
|
const template = document.createElement('template');
|
2496
2565
|
|
2497
2566
|
template.innerHTML = `
|
2498
|
-
<${componentName$
|
2567
|
+
<${componentName$b}
|
2499
2568
|
bordered="true"
|
2500
2569
|
name="code"
|
2501
2570
|
tabindex="-1"
|
2502
2571
|
slot="input"
|
2503
|
-
></${componentName$
|
2572
|
+
></${componentName$b}>
|
2504
2573
|
`;
|
2505
2574
|
|
2506
2575
|
this.baseElement.appendChild(template.content.cloneNode(true));
|
2507
2576
|
|
2508
|
-
this.inputElement = this.shadowRoot.querySelector(componentName$
|
2577
|
+
this.inputElement = this.shadowRoot.querySelector(componentName$b);
|
2509
2578
|
|
2510
2579
|
forwardAttrs(this, this.inputElement, { includeAttrs: ['digits', 'size'] });
|
2511
2580
|
}
|
@@ -2519,10 +2588,15 @@ const customMixin$2 = (superclass) =>
|
|
2519
2588
|
}
|
2520
2589
|
};
|
2521
2590
|
|
2522
|
-
const {
|
2523
|
-
|
2524
|
-
|
2525
|
-
|
2591
|
+
const {
|
2592
|
+
host: host$5,
|
2593
|
+
digitField,
|
2594
|
+
label: label$5,
|
2595
|
+
requiredIndicator: requiredIndicator$4,
|
2596
|
+
internalWrapper,
|
2597
|
+
focusedDigitField
|
2598
|
+
} = {
|
2599
|
+
host: () => ':host',
|
2526
2600
|
focusedDigitField: { selector: () => `${TextFieldClass.componentName}[focused="true"]` },
|
2527
2601
|
digitField: { selector: () => TextFieldClass.componentName },
|
2528
2602
|
label: { selector: '::part(label)' },
|
@@ -2535,26 +2609,29 @@ const textVars$1 = TextFieldClass.cssVarList;
|
|
2535
2609
|
const PasscodeClass = compose(
|
2536
2610
|
createStyleMixin({
|
2537
2611
|
mappings: {
|
2538
|
-
|
2539
|
-
|
2540
|
-
|
2541
|
-
|
2542
|
-
{ ...
|
2543
|
-
// we want to leave enough space to the digits outline,
|
2544
|
-
// ideally, this would be part of the text field
|
2545
|
-
{ ...internalWrapper, property: 'padding' }
|
2612
|
+
hostWidth: { property: 'width' },
|
2613
|
+
fontFamily: host$5,
|
2614
|
+
labelTextColor: [
|
2615
|
+
{ ...label$5, property: 'color' },
|
2616
|
+
{ ...requiredIndicator$4, property: 'color' },
|
2546
2617
|
],
|
2547
|
-
|
2548
|
-
|
2549
|
-
|
2550
|
-
|
2551
|
-
|
2552
|
-
|
2553
|
-
|
2618
|
+
labelRequiredIndicator: { ...requiredIndicator$4, property: 'content' },
|
2619
|
+
digitValueTextColor: {
|
2620
|
+
selector: TextFieldClass.componentName,
|
2621
|
+
property: textVars$1.inputValueTextColor
|
2622
|
+
},
|
2623
|
+
digitPadding: { ...digitField, property: textVars$1.inputPadding },
|
2624
|
+
digitTextAlign: { ...digitField, property: textVars$1.inputTextAlign },
|
2625
|
+
digitCaretTextColor: { ...digitField, property: textVars$1.inputCaretTextColor },
|
2626
|
+
digitSpacing: { ...internalWrapper, property: 'gap' },
|
2627
|
+
digitOutlineColor: { ...digitField, property: textVars$1.inputOutlineColor },
|
2628
|
+
digitOutlineWidth: { ...digitField, property: textVars$1.inputOutlineWidth },
|
2629
|
+
|
2630
|
+
focusedDigitFieldOutlineColor: { ...focusedDigitField, property: textVars$1.inputOutlineColor }
|
2554
2631
|
},
|
2555
2632
|
}),
|
2556
2633
|
draggableMixin,
|
2557
|
-
|
2634
|
+
composedProxyInputMixin,
|
2558
2635
|
componentNameValidationMixin,
|
2559
2636
|
customMixin$2
|
2560
2637
|
)(
|
@@ -2563,11 +2640,11 @@ const PasscodeClass = compose(
|
|
2563
2640
|
wrappedEleName: 'vaadin-text-field',
|
2564
2641
|
style: () => `
|
2565
2642
|
:host {
|
2566
|
-
--vaadin-field-default-width: auto;
|
2567
2643
|
display: inline-block;
|
2568
2644
|
max-width: 100%;
|
2569
2645
|
min-width: calc(var(--passcode-digits-count) * 2em);
|
2570
2646
|
}
|
2647
|
+
${resetInputFieldDefaultWidth()}
|
2571
2648
|
:host::after {
|
2572
2649
|
background-color: transparent;
|
2573
2650
|
}
|
@@ -2592,7 +2669,7 @@ const PasscodeClass = compose(
|
|
2592
2669
|
|
2593
2670
|
descope-passcode-internal descope-text-field {
|
2594
2671
|
min-width: 2em;
|
2595
|
-
max-width: var(${textVars$1.
|
2672
|
+
max-width: var(${textVars$1.inputHeight});
|
2596
2673
|
}
|
2597
2674
|
|
2598
2675
|
vaadin-text-field::part(input-field) {
|
@@ -2616,27 +2693,26 @@ const PasscodeClass = compose(
|
|
2616
2693
|
opacity: 1;
|
2617
2694
|
}
|
2618
2695
|
|
2619
|
-
vaadin-text-field::part(input-field):focus {
|
2620
|
-
cursor: text;
|
2621
|
-
}
|
2622
|
-
|
2623
|
-
vaadin-text-field[required]::part(required-indicator)::after {
|
2624
|
-
content: "*";
|
2625
|
-
}
|
2626
2696
|
vaadin-text-field[readonly]::part(input-field)::after {
|
2627
2697
|
border: 0 solid;
|
2628
2698
|
}
|
2699
|
+
|
2700
|
+
vaadin-text-field::part(input-field) {
|
2701
|
+
box-shadow: none;
|
2702
|
+
}
|
2703
|
+
|
2704
|
+
${resetInputCursor('vaadin-text-field')}
|
2629
2705
|
`,
|
2630
2706
|
excludeAttrsSync: ['tabindex'],
|
2631
|
-
componentName: componentName$
|
2707
|
+
componentName: componentName$9
|
2632
2708
|
})
|
2633
2709
|
);
|
2634
2710
|
|
2635
|
-
customElements.define(componentName$
|
2711
|
+
customElements.define(componentName$a, TextFieldClass);
|
2636
2712
|
|
2637
|
-
customElements.define(componentName$
|
2713
|
+
customElements.define(componentName$b, PasscodeInternal);
|
2638
2714
|
|
2639
|
-
customElements.define(componentName$
|
2715
|
+
customElements.define(componentName$9, PasscodeClass);
|
2640
2716
|
|
2641
2717
|
const passwordDraggableMixin = (superclass) => class PasswordDraggableMixinClass extends superclass {
|
2642
2718
|
get isReadOnly() {
|
@@ -2671,94 +2747,97 @@ const passwordDraggableMixin = (superclass) => class PasswordDraggableMixinClass
|
|
2671
2747
|
}
|
2672
2748
|
};
|
2673
2749
|
|
2674
|
-
const componentName$
|
2750
|
+
const componentName$8 = getComponentName('password-field');
|
2675
2751
|
|
2676
2752
|
const {
|
2677
2753
|
host: host$4,
|
2678
|
-
|
2754
|
+
inputField: inputField$3,
|
2679
2755
|
inputElement,
|
2680
2756
|
inputElementPlaceholder,
|
2681
|
-
revealButton,
|
2682
2757
|
revealButtonIcon,
|
2683
|
-
|
2684
|
-
|
2685
|
-
|
2758
|
+
label: label$4,
|
2759
|
+
requiredIndicator: requiredIndicator$3,
|
2760
|
+
errorMessage: errorMessage$4,
|
2761
|
+
helperText: helperText$4
|
2686
2762
|
} = {
|
2687
2763
|
host: { selector: () => ':host' },
|
2688
|
-
|
2764
|
+
inputField: { selector: '::part(input-field)' },
|
2689
2765
|
inputElement: { selector: '> input' },
|
2690
2766
|
inputElementPlaceholder: { selector: '> input:placeholder-shown' },
|
2691
|
-
revealButton: { selector: 'vaadin-password-field-button' },
|
2692
2767
|
revealButtonIcon: { selector: () => '::part(reveal-button)::before' },
|
2693
|
-
revealButtonIconOutline: { selector: () => 'vaadin-password-field-button[focus-ring]' },
|
2694
2768
|
label: { selector: '::part(label)' },
|
2695
|
-
requiredIndicator: { selector: '::part(required-indicator)::after' },
|
2769
|
+
requiredIndicator: { selector: '[required]::part(required-indicator)::after' },
|
2770
|
+
helperText: { selector: '::part(helper-text)' },
|
2771
|
+
errorMessage: { selector: '::part(error-message)' }
|
2696
2772
|
};
|
2697
2773
|
|
2698
2774
|
const PasswordFieldClass = compose(
|
2699
2775
|
createStyleMixin({
|
2700
2776
|
mappings: {
|
2701
|
-
|
2702
|
-
|
2703
|
-
|
2704
|
-
|
2705
|
-
wrapperBorderRadius: { ...inputWrapper$1, property: 'border-radius' },
|
2706
|
-
|
2707
|
-
revealButtonOutlineBoxShadow: [
|
2708
|
-
{
|
2709
|
-
...revealButtonIconOutline,
|
2710
|
-
property: 'box-shadow'
|
2711
|
-
}
|
2777
|
+
hostWidth: { ...host$4, property: 'width' },
|
2778
|
+
fontSize: [
|
2779
|
+
{ property: 'font-size' },
|
2780
|
+
{ ...host$4, property: 'font-size' }
|
2712
2781
|
],
|
2782
|
+
fontFamily: [
|
2783
|
+
label$4,
|
2784
|
+
inputField$3,
|
2785
|
+
errorMessage$4,
|
2786
|
+
helperText$4
|
2787
|
+
],
|
2788
|
+
inputHeight: { ...inputField$3, property: 'height' },
|
2789
|
+
inputBackgroundColor: { ...inputField$3, property: 'background-color' },
|
2790
|
+
|
2791
|
+
inputBorderStyle: { ...inputField$3, property: 'border-style' },
|
2792
|
+
inputBorderWidth: { ...inputField$3, property: 'border-width' },
|
2793
|
+
inputBorderColor: { ...inputField$3, property: 'border-color' },
|
2794
|
+
inputBorderRadius: { ...inputField$3, property: 'border-radius' },
|
2795
|
+
|
2796
|
+
inputOutlineColor: { ...inputField$3, property: 'outline-color' },
|
2797
|
+
inputOutlineStyle: { ...inputField$3, property: 'outline-style' },
|
2798
|
+
inputOutlineOffset: { ...inputField$3, property: 'outline-offset' },
|
2799
|
+
inputOutlineWidth: { ...inputField$3, property: 'outline-width' },
|
2713
2800
|
|
2714
2801
|
labelTextColor: [
|
2715
|
-
{ ...label$
|
2716
|
-
{ ...requiredIndicator$
|
2802
|
+
{ ...label$4, property: 'color' },
|
2803
|
+
{ ...requiredIndicator$3, property: 'color' }
|
2717
2804
|
],
|
2718
|
-
|
2805
|
+
labelRequiredIndicator: { ...requiredIndicator$3, property: 'content' },
|
2806
|
+
|
2807
|
+
inputValueTextColor: [
|
2719
2808
|
{ ...inputElement, property: 'color' },
|
2720
2809
|
{ ...revealButtonIcon, property: 'color' }
|
2721
2810
|
],
|
2722
|
-
|
2723
|
-
fontSize: [{}, host$4],
|
2724
|
-
height: inputWrapper$1,
|
2725
|
-
padding: inputWrapper$1,
|
2726
|
-
pointerCursor: [
|
2727
|
-
{ ...revealButton, property: 'cursor' },
|
2728
|
-
{ ...label$3, property: 'cursor' },
|
2729
|
-
{ ...requiredIndicator$2, property: 'cursor' }
|
2730
|
-
],
|
2731
|
-
outlineColor: inputWrapper$1,
|
2732
|
-
outlineStyle: inputWrapper$1,
|
2733
|
-
outlineWidth: [
|
2734
|
-
inputWrapper$1,
|
2735
|
-
// we need to make sure there is enough space for the outline
|
2736
|
-
{ property: 'padding' }
|
2737
|
-
],
|
2738
|
-
backgroundColor: inputWrapper$1
|
2811
|
+
inputPlaceholderTextColor: { ...inputElementPlaceholder, property: 'color' },
|
2739
2812
|
}
|
2740
2813
|
}),
|
2741
2814
|
draggableMixin,
|
2742
|
-
|
2815
|
+
composedProxyInputMixin,
|
2743
2816
|
componentNameValidationMixin,
|
2744
2817
|
passwordDraggableMixin
|
2745
2818
|
)(
|
2746
2819
|
createProxy({
|
2747
2820
|
slots: ['suffix'],
|
2748
2821
|
wrappedEleName: 'vaadin-password-field',
|
2749
|
-
style: `
|
2822
|
+
style: () => `
|
2750
2823
|
:host {
|
2751
2824
|
display: inline-block;
|
2752
2825
|
min-width: 10em;
|
2753
2826
|
max-width: 100%;
|
2827
|
+
box-sizing: border-box;
|
2828
|
+
padding: calc(var(${PasswordFieldClass.cssVarList.inputOutlineWidth}) + var(${PasswordFieldClass.cssVarList.inputOutlineOffset}));
|
2754
2829
|
}
|
2755
2830
|
vaadin-password-field {
|
2756
2831
|
width: 100%;
|
2757
2832
|
box-sizing: border-box;
|
2833
|
+
padding: 0;
|
2758
2834
|
}
|
2759
2835
|
vaadin-password-field::part(input-field) {
|
2760
2836
|
padding: 0;
|
2761
2837
|
}
|
2838
|
+
vaadin-password-field[focus-ring]::part(input-field) {
|
2839
|
+
box-shadow: none;
|
2840
|
+
}
|
2762
2841
|
vaadin-password-field > input {
|
2763
2842
|
min-height: 0;
|
2764
2843
|
-webkit-mask-image: none;
|
@@ -2771,109 +2850,115 @@ const PasswordFieldClass = compose(
|
|
2771
2850
|
}
|
2772
2851
|
vaadin-password-field::part(input-field)::after {
|
2773
2852
|
opacity: 0;
|
2774
|
-
}
|
2775
|
-
vaadin-password-field[required]::part(required-indicator)::after {
|
2776
|
-
content: "*";
|
2777
2853
|
}
|
2854
|
+
vaadin-password-field-button {
|
2855
|
+
cursor: pointer;
|
2856
|
+
}
|
2857
|
+
|
2858
|
+
${resetInputCursor('vaadin-password-field')}
|
2859
|
+
|
2778
2860
|
[readonly] vaadin-password-field-button {
|
2779
2861
|
pointer-events: none;
|
2780
2862
|
}
|
2863
|
+
|
2864
|
+
vaadin-password-field-button[focus-ring] {
|
2865
|
+
box-shadow: 0 0 0 2px var(${PasswordFieldClass.cssVarList.inputOutlineColor});
|
2866
|
+
}
|
2781
2867
|
`,
|
2782
2868
|
excludeAttrsSync: ['tabindex'],
|
2783
|
-
componentName: componentName$
|
2869
|
+
componentName: componentName$8
|
2784
2870
|
})
|
2785
2871
|
);
|
2786
2872
|
|
2787
|
-
customElements.define(componentName$
|
2873
|
+
customElements.define(componentName$8, PasswordFieldClass);
|
2788
2874
|
|
2789
|
-
const componentName$
|
2875
|
+
const componentName$7 = getComponentName('text-area');
|
2790
2876
|
|
2791
2877
|
const {
|
2792
2878
|
host: host$3,
|
2879
|
+
label: label$3,
|
2793
2880
|
placeholder: placeholder$1,
|
2794
|
-
|
2881
|
+
inputField: inputField$2,
|
2795
2882
|
textArea: textArea$2,
|
2796
|
-
|
2797
|
-
|
2883
|
+
requiredIndicator: requiredIndicator$2,
|
2884
|
+
helperText: helperText$3,
|
2885
|
+
errorMessage: errorMessage$3
|
2798
2886
|
} = {
|
2799
2887
|
host: { selector: () => ':host' },
|
2800
|
-
textArea: { selector: '> textarea' },
|
2801
2888
|
label: { selector: '::part(label)' },
|
2802
|
-
input: { selector: '::part(input-field)' },
|
2803
2889
|
placeholder: { selector: 'textarea:placeholder-shown' },
|
2804
|
-
|
2890
|
+
inputField: { selector: '::part(input-field)' },
|
2891
|
+
textArea: { selector: '> textarea' },
|
2892
|
+
requiredIndicator: { selector: '[required]::part(required-indicator)::after' },
|
2893
|
+
helperText: { selector: '::part(helper-text)' },
|
2894
|
+
errorMessage: { selector: '::part(error-message)' }
|
2805
2895
|
};
|
2806
2896
|
|
2807
|
-
let overrides$1 = ``;
|
2808
|
-
|
2809
2897
|
const TextAreaClass = compose(
|
2810
2898
|
createStyleMixin({
|
2811
2899
|
mappings: {
|
2812
|
-
|
2813
|
-
|
2814
|
-
|
2815
|
-
|
2816
|
-
|
2817
|
-
|
2818
|
-
{ ...
|
2900
|
+
hostWidth: { ...host$3, property: 'width' },
|
2901
|
+
fontSize: [
|
2902
|
+
{ ...host$3, property: 'font-size' },
|
2903
|
+
{ ...textArea$2, property: 'font-size' }
|
2904
|
+
],
|
2905
|
+
fontFamily: [
|
2906
|
+
{ ...label$3, property: 'font-family' },
|
2907
|
+
{ ...inputField$2, property: 'font-family' },
|
2908
|
+
{ ...helperText$3, property: 'font-family' },
|
2909
|
+
{ ...errorMessage$3, property: 'font-family' }
|
2910
|
+
],
|
2911
|
+
labelTextColor: [
|
2912
|
+
{ ...label$3, property: 'color' },
|
2913
|
+
{ ...requiredIndicator$2, property: 'color' }
|
2819
2914
|
],
|
2820
|
-
|
2821
|
-
|
2822
|
-
|
2823
|
-
|
2824
|
-
|
2825
|
-
|
2826
|
-
|
2827
|
-
|
2828
|
-
|
2829
|
-
|
2830
|
-
|
2915
|
+
labelRequiredIndicator: { ...requiredIndicator$2, property: 'content' },
|
2916
|
+
inputBackgroundColor: { ...inputField$2, property: 'background-color' },
|
2917
|
+
inputValueTextColor: { ...textArea$2, property: 'color' },
|
2918
|
+
inputPlaceholderTextColor: { ...placeholder$1, property: 'color' },
|
2919
|
+
inputBorderWidth: { ...inputField$2, property: 'border-width' },
|
2920
|
+
inputBorderStyle: { ...inputField$2, property: 'border-style' },
|
2921
|
+
inputBorderColor: { ...inputField$2, property: 'border-color' },
|
2922
|
+
inputBorderRadius: { ...inputField$2, property: 'border-radius' },
|
2923
|
+
inputOutlineStyle: { ...inputField$2, property: 'outline-Style' },
|
2924
|
+
inputOutlineColor: { ...inputField$2, property: 'outline-color' },
|
2925
|
+
inputOutlineOffset: { ...inputField$2, property: 'outline-offset' },
|
2926
|
+
inputOutlineWidth: { ...inputField$2, property: 'outline-width' },
|
2927
|
+
inputResizeType: { ...textArea$2, property: 'resize' },
|
2831
2928
|
}
|
2832
2929
|
}),
|
2833
2930
|
draggableMixin,
|
2834
|
-
|
2931
|
+
composedProxyInputMixin,
|
2835
2932
|
componentNameValidationMixin
|
2836
2933
|
)(
|
2837
2934
|
createProxy({
|
2838
2935
|
slots: [],
|
2839
2936
|
wrappedEleName: 'vaadin-text-area',
|
2840
|
-
style: () =>
|
2937
|
+
style: () => `
|
2938
|
+
:host {
|
2939
|
+
display: inline-block;
|
2940
|
+
min-width: 10em;
|
2941
|
+
max-width: 100%;
|
2942
|
+
padding: calc(var(${TextAreaClass.cssVarList.inputOutlineWidth}) + var(${TextAreaClass.cssVarList.inputOutlineOffset}));
|
2943
|
+
}
|
2944
|
+
|
2945
|
+
${resetInputContainer('vaadin-text-area')}
|
2946
|
+
${resetInputField('vaadin-text-area')}
|
2947
|
+
${resetInputPlaceholder('vaadin-text-area', 'textarea')}
|
2948
|
+
${resetInputCursor('vaadin-text-area')}
|
2949
|
+
`,
|
2841
2950
|
excludeAttrsSync: ['tabindex'],
|
2842
|
-
componentName: componentName$
|
2951
|
+
componentName: componentName$7
|
2843
2952
|
})
|
2844
2953
|
);
|
2845
2954
|
|
2846
|
-
|
2847
|
-
:host {
|
2848
|
-
display: inline-block;
|
2849
|
-
min-width: 10em;
|
2850
|
-
max-width: 100%;
|
2851
|
-
}
|
2852
|
-
vaadin-text-area {
|
2853
|
-
margin: 0;
|
2854
|
-
width: 100%;
|
2855
|
-
box-sizing: border-box;
|
2856
|
-
}
|
2857
|
-
vaadin-text-area > label,
|
2858
|
-
vaadin-text-area::part(input-field) {
|
2859
|
-
padding: 0;
|
2860
|
-
}
|
2861
|
-
vaadin-text-area[required]::part(required-indicator)::after {
|
2862
|
-
content: "*";
|
2863
|
-
}
|
2864
|
-
vaadin-text-area[disabled] > textarea:placeholder-shown,
|
2865
|
-
vaadin-text-area[readonly] > textarea:placeholder-shown {
|
2866
|
-
opacity: 1;
|
2867
|
-
}
|
2868
|
-
`;
|
2869
|
-
|
2870
|
-
customElements.define(componentName$6, TextAreaClass);
|
2955
|
+
customElements.define(componentName$7, TextAreaClass);
|
2871
2956
|
|
2872
2957
|
const observedAttributes = ['src', 'alt'];
|
2873
2958
|
|
2874
|
-
const componentName$
|
2959
|
+
const componentName$6 = getComponentName('image');
|
2875
2960
|
|
2876
|
-
const BaseClass = createBaseClass({ componentName: componentName$
|
2961
|
+
const BaseClass = createBaseClass({ componentName: componentName$6, baseSelector: ':host > img' });
|
2877
2962
|
class RawImage extends BaseClass {
|
2878
2963
|
static get observedAttributes() {
|
2879
2964
|
return observedAttributes.concat(BaseClass.observedAttributes || []);
|
@@ -2913,10 +2998,9 @@ const ImageClass = compose(
|
|
2913
2998
|
draggableMixin,
|
2914
2999
|
)(RawImage);
|
2915
3000
|
|
2916
|
-
customElements.define(componentName$
|
2917
|
-
|
2918
|
-
const componentName$4 = getComponentName('combo-box');
|
3001
|
+
customElements.define(componentName$6, ImageClass);
|
2919
3002
|
|
3003
|
+
const componentName$5 = getComponentName('combo-box');
|
2920
3004
|
|
2921
3005
|
const ComboBoxMixin = (superclass) => class ComboBoxMixinClass extends superclass {
|
2922
3006
|
constructor() {
|
@@ -2970,16 +3054,22 @@ const ComboBoxMixin = (superclass) => class ComboBoxMixinClass extends superclas
|
|
2970
3054
|
|
2971
3055
|
const {
|
2972
3056
|
host: host$2,
|
2973
|
-
|
3057
|
+
inputField: inputField$1,
|
2974
3058
|
placeholder,
|
2975
3059
|
toggle,
|
2976
|
-
label: label$
|
3060
|
+
label: label$2,
|
3061
|
+
requiredIndicator: requiredIndicator$1,
|
3062
|
+
helperText: helperText$2,
|
3063
|
+
errorMessage: errorMessage$2
|
2977
3064
|
} = {
|
2978
3065
|
host: { selector: () => ':host' },
|
2979
|
-
|
3066
|
+
inputField: { selector: '::part(input-field)' },
|
2980
3067
|
placeholder: { selector: '> input:placeholder-shown' },
|
2981
3068
|
toggle: { selector: '::part(toggle-button)' },
|
2982
|
-
label: { selector: '::part(label)' }
|
3069
|
+
label: { selector: '::part(label)' },
|
3070
|
+
requiredIndicator: { selector: '[required]::part(required-indicator)::after' },
|
3071
|
+
helperText: { selector: '::part(helper-text)' },
|
3072
|
+
errorMessage: { selector: '::part(error-message)' }
|
2983
3073
|
};
|
2984
3074
|
|
2985
3075
|
// const { slotted, selected } = {
|
@@ -2990,27 +3080,38 @@ const {
|
|
2990
3080
|
const ComboBoxClass = compose(
|
2991
3081
|
createStyleMixin({
|
2992
3082
|
mappings: {
|
2993
|
-
|
2994
|
-
height: input,
|
2995
|
-
padding: input,
|
2996
|
-
|
2997
|
-
inputBackgroundColor: { ...input, property: 'background-color' },
|
2998
|
-
boxShadow: input,
|
2999
|
-
|
3000
|
-
borderColor: input,
|
3001
|
-
borderWidth: input,
|
3002
|
-
borderStyle: input,
|
3003
|
-
borderRadius: input,
|
3004
|
-
|
3005
|
-
color: [label$1, input],
|
3006
|
-
|
3083
|
+
hostWidth: { ...host$2, property: 'width' },
|
3007
3084
|
// we apply font-size also on the host so we can set its width with em
|
3008
|
-
fontSize: [
|
3009
|
-
|
3010
|
-
|
3011
|
-
|
3012
|
-
|
3013
|
-
|
3085
|
+
fontSize: [
|
3086
|
+
{ property: 'font-size' },
|
3087
|
+
{ ...host$2, property: 'font-size' }
|
3088
|
+
],
|
3089
|
+
fontFamily: [
|
3090
|
+
label$2,
|
3091
|
+
placeholder,
|
3092
|
+
inputField$1,
|
3093
|
+
helperText$2,
|
3094
|
+
errorMessage$2
|
3095
|
+
],
|
3096
|
+
labelTextColor: [
|
3097
|
+
{ ...label$2, property: 'color' },
|
3098
|
+
{ ...requiredIndicator$1, property: 'color' }
|
3099
|
+
],
|
3100
|
+
inputHeight: { ...inputField$1, property: 'height' },
|
3101
|
+
inputBackgroundColor: { ...inputField$1, property: 'background-color' },
|
3102
|
+
inputBorderColor: { ...inputField$1, property: 'border-color' },
|
3103
|
+
inputBorderWidth: { ...inputField$1, property: 'border-width' },
|
3104
|
+
inputBorderStyle: { ...inputField$1, property: 'border-style' },
|
3105
|
+
inputBorderRadius: { ...inputField$1, property: 'border-radius' },
|
3106
|
+
labelRequiredIndicator: { ...requiredIndicator$1, property: 'content' },
|
3107
|
+
inputValueTextColor: { ...inputField$1, property: 'color' },
|
3108
|
+
inputPlaceholderTextColor: { ...placeholder, property: 'color' },
|
3109
|
+
inputDropdownButtonCursor: { ...toggle, property: 'cursor' },
|
3110
|
+
inputDropdownButtonColor: { ...toggle, property: 'color' },
|
3111
|
+
inputOutlineColor: { ...inputField$1, property: 'outline-color' },
|
3112
|
+
inputOutlineWidth: { ...inputField$1, property: 'outline-width' },
|
3113
|
+
inputOutlineStyle: { ...inputField$1, property: 'outline-style' },
|
3114
|
+
inputOutlineOffset: { ...inputField$1, property: 'outline-offset' },
|
3014
3115
|
|
3015
3116
|
// we need to use the variables from the portal mixin
|
3016
3117
|
// so we need to use an arrow function on the selector
|
@@ -3034,7 +3135,7 @@ const ComboBoxClass = compose(
|
|
3034
3135
|
attributes: ['size']
|
3035
3136
|
},
|
3036
3137
|
}),
|
3037
|
-
|
3138
|
+
composedProxyInputMixin,
|
3038
3139
|
componentNameValidationMixin,
|
3039
3140
|
ComboBoxMixin
|
3040
3141
|
)(
|
@@ -3046,40 +3147,36 @@ const ComboBoxClass = compose(
|
|
3046
3147
|
display: inline-flex;
|
3047
3148
|
box-sizing: border-box;
|
3048
3149
|
-webkit-mask-image: none;
|
3150
|
+
padding: calc(var(${ComboBoxClass.cssVarList.inputOutlineWidth}) + var(${ComboBoxClass.cssVarList.inputOutlineOffset}))
|
3049
3151
|
}
|
3050
3152
|
vaadin-combo-box {
|
3051
3153
|
padding: 0;
|
3154
|
+
width: 100%;
|
3052
3155
|
}
|
3053
3156
|
vaadin-combo-box [slot="input"] {
|
3054
3157
|
-webkit-mask-image: none;
|
3055
3158
|
min-height: 0;
|
3056
3159
|
}
|
3160
|
+
|
3057
3161
|
vaadin-combo-box::part(input-field) {
|
3058
|
-
-webkit-mask-image: none;
|
3059
|
-
border-radius: 0;
|
3060
3162
|
padding: 0;
|
3061
3163
|
}
|
3062
|
-
|
3063
|
-
|
3064
|
-
}
|
3065
|
-
vaadin-combo-box
|
3066
|
-
border: none;
|
3067
|
-
}
|
3068
|
-
vaadin-combo-box[readonly] > input:placeholder-shown {
|
3069
|
-
opacity: 1;
|
3070
|
-
}
|
3164
|
+
|
3165
|
+
${resetInputReadonlyStyle('vaadin-combo-box')}
|
3166
|
+
${resetInputPlaceholder('vaadin-combo-box')}
|
3167
|
+
${resetInputCursor('vaadin-combo-box')}
|
3071
3168
|
`,
|
3072
3169
|
// Note: we exclude `size` to avoid overriding Vaadin's ComboBox property
|
3073
3170
|
// with the same name. Including it will cause Vaadin to calculate NaN size,
|
3074
3171
|
// and reset items to an empty array, and opening the list box with no items
|
3075
3172
|
// to display.
|
3076
3173
|
excludeAttrsSync: ['tabindex', 'size'],
|
3077
|
-
componentName: componentName$
|
3174
|
+
componentName: componentName$5,
|
3078
3175
|
includeForwardProps: ['items', 'renderer', 'selectedItem']
|
3079
3176
|
})
|
3080
3177
|
);
|
3081
3178
|
|
3082
|
-
customElements.define(componentName$
|
3179
|
+
customElements.define(componentName$5, ComboBoxClass);
|
3083
3180
|
|
3084
3181
|
var CountryCodes = [
|
3085
3182
|
{
|
@@ -4318,7 +4415,7 @@ const comboBoxItem = ({ code, dialCode, name: country }) => (`
|
|
4318
4415
|
</div>
|
4319
4416
|
`);
|
4320
4417
|
|
4321
|
-
const componentName$
|
4418
|
+
const componentName$4 = getComponentName('phone-field-internal');
|
4322
4419
|
|
4323
4420
|
const commonAttrs$1 = [
|
4324
4421
|
'disabled',
|
@@ -4336,7 +4433,7 @@ const mapAttrs = {
|
|
4336
4433
|
|
4337
4434
|
const inputRelatedAttrs$1 = [].concat(commonAttrs$1, countryAttrs, phoneAttrs);
|
4338
4435
|
|
4339
|
-
const BaseInputClass$1 = createBaseInputClass({ componentName: componentName$
|
4436
|
+
const BaseInputClass$1 = createBaseInputClass({ componentName: componentName$4, baseSelector: 'div' });
|
4340
4437
|
|
4341
4438
|
class PhoneFieldInternal extends BaseInputClass$1 {
|
4342
4439
|
static get observedAttributes() {
|
@@ -4508,12 +4605,12 @@ class PhoneFieldInternal extends BaseInputClass$1 {
|
|
4508
4605
|
}
|
4509
4606
|
}
|
4510
4607
|
|
4511
|
-
customElements.define(componentName$
|
4608
|
+
customElements.define(componentName$4, PhoneFieldInternal);
|
4512
4609
|
|
4513
4610
|
const textVars = TextFieldClass.cssVarList;
|
4514
4611
|
const comboVars = ComboBoxClass.cssVarList;
|
4515
4612
|
|
4516
|
-
const componentName$
|
4613
|
+
const componentName$3 = getComponentName('phone-field');
|
4517
4614
|
|
4518
4615
|
const customMixin$1 = (superclass) =>
|
4519
4616
|
class PhoneFieldMixinClass extends superclass {
|
@@ -4531,15 +4628,15 @@ const customMixin$1 = (superclass) =>
|
|
4531
4628
|
const template = document.createElement('template');
|
4532
4629
|
|
4533
4630
|
template.innerHTML = `
|
4534
|
-
<${componentName$
|
4631
|
+
<${componentName$4}
|
4535
4632
|
tabindex="-1"
|
4536
4633
|
slot="input"
|
4537
|
-
></${componentName$
|
4634
|
+
></${componentName$4}>
|
4538
4635
|
`;
|
4539
4636
|
|
4540
4637
|
this.baseElement.appendChild(template.content.cloneNode(true));
|
4541
4638
|
|
4542
|
-
this.inputElement = this.shadowRoot.querySelector(componentName$
|
4639
|
+
this.inputElement = this.shadowRoot.querySelector(componentName$4);
|
4543
4640
|
|
4544
4641
|
forwardAttrs(this.shadowRoot.host, this.inputElement, {
|
4545
4642
|
includeAttrs: [
|
@@ -4558,27 +4655,32 @@ const customMixin$1 = (superclass) =>
|
|
4558
4655
|
|
4559
4656
|
const {
|
4560
4657
|
host: host$1,
|
4561
|
-
|
4658
|
+
label: label$1,
|
4659
|
+
requiredIndicator,
|
4660
|
+
inputField,
|
4562
4661
|
countryCodeInput,
|
4563
4662
|
phoneInput,
|
4564
|
-
|
4565
|
-
|
4566
|
-
|
4663
|
+
separator,
|
4664
|
+
errorMessage: errorMessage$1,
|
4665
|
+
helperText: helperText$1
|
4567
4666
|
} = {
|
4568
4667
|
host: { selector: () => ':host' },
|
4569
|
-
inputWrapper: { selector: '::part(input-field)' },
|
4570
|
-
phoneInput: { selector: () => 'descope-text-field' },
|
4571
|
-
countryCodeInput: { selector: () => 'descope-combo-box' },
|
4572
4668
|
label: { selector: '::part(label)' },
|
4573
4669
|
requiredIndicator: { selector: '[required]::part(required-indicator)::after' },
|
4574
|
-
|
4670
|
+
inputField: { selector: '::part(input-field)' },
|
4671
|
+
phoneInput: { selector: () => 'descope-text-field' },
|
4672
|
+
countryCodeInput: { selector: () => 'descope-combo-box' },
|
4673
|
+
separator: { selector: 'descope-phone-field-internal .separator' },
|
4674
|
+
helperText: { selector: '::part(helper-text)' },
|
4675
|
+
errorMessage: { selector: '::part(error-message)' }
|
4575
4676
|
};
|
4576
4677
|
|
4577
4678
|
const PhoneFieldClass = compose(
|
4578
4679
|
createStyleMixin({
|
4579
4680
|
mappings: {
|
4580
4681
|
fontSize: [
|
4581
|
-
host$1,
|
4682
|
+
{ ...host$1, property: 'font-size' },
|
4683
|
+
{ ...inputField, property: 'font-size' },
|
4582
4684
|
{
|
4583
4685
|
selector: TextFieldClass.componentName,
|
4584
4686
|
property: TextFieldClass.cssVarList.fontSize
|
@@ -4588,57 +4690,66 @@ const PhoneFieldClass = compose(
|
|
4588
4690
|
property: ComboBoxClass.cssVarList.fontSize
|
4589
4691
|
}
|
4590
4692
|
],
|
4693
|
+
fontFamily: [
|
4694
|
+
label$1,
|
4695
|
+
errorMessage$1,
|
4696
|
+
helperText$1
|
4697
|
+
],
|
4698
|
+
hostWidth: [
|
4699
|
+
{ ...host$1, property: 'width' },
|
4700
|
+
{ ...phoneInput, property: 'width' },
|
4701
|
+
{ ...countryCodeInput, property: '--vaadin-combo-box-overlay-width' }
|
4702
|
+
],
|
4591
4703
|
|
4592
|
-
|
4593
|
-
|
4594
|
-
wrapperBorderStyle: [
|
4595
|
-
{ ...inputWrapper, property: 'border-style' },
|
4704
|
+
inputBorderStyle: [
|
4705
|
+
{ ...inputField, property: 'border-style' },
|
4596
4706
|
{ ...separator, property: 'border-left-style' }
|
4597
4707
|
],
|
4598
|
-
|
4599
|
-
{ ...
|
4708
|
+
inputBorderWidth: [
|
4709
|
+
{ ...inputField, property: 'border-width' },
|
4600
4710
|
{ ...separator, property: 'border-left-width' }
|
4601
4711
|
],
|
4602
|
-
|
4603
|
-
{ ...
|
4712
|
+
inputBorderColor: [
|
4713
|
+
{ ...inputField, property: 'border-color' },
|
4604
4714
|
{ ...separator, property: 'border-left-color' }
|
4605
4715
|
],
|
4606
|
-
|
4716
|
+
inputBorderRadius: { ...inputField, property: 'border-radius' },
|
4607
4717
|
|
4608
|
-
inputHeight: { ...
|
4718
|
+
inputHeight: { ...inputField, property: 'height' },
|
4609
4719
|
|
4610
|
-
countryCodeInputWidth: { ...countryCodeInput, property: comboVars.
|
4720
|
+
countryCodeInputWidth: { ...countryCodeInput, property: comboVars.hostWidth },
|
4611
4721
|
countryCodeDropdownWidth: {
|
4612
4722
|
...countryCodeInput,
|
4613
4723
|
property: '--vaadin-combo-box-overlay-width'
|
4614
4724
|
},
|
4615
|
-
|
4616
4725
|
phoneInputWidth: { ...phoneInput, property: 'width' },
|
4617
4726
|
|
4618
|
-
|
4619
|
-
label,
|
4620
|
-
requiredIndicator,
|
4621
|
-
{ ...phoneInput, property: textVars.color },
|
4622
|
-
{ ...countryCodeInput, property: comboVars.color }
|
4727
|
+
labelTextColor: [
|
4728
|
+
{ ...label$1, property: 'color' },
|
4729
|
+
{ ...requiredIndicator, property: 'color' },
|
4623
4730
|
],
|
4731
|
+
labelRequiredIndicator: { ...requiredIndicator, property: 'content' },
|
4624
4732
|
|
4625
|
-
|
4626
|
-
...phoneInput,
|
4627
|
-
property:
|
4628
|
-
|
4733
|
+
inputValueTextColor: [
|
4734
|
+
{ ...phoneInput, property: textVars.inputValueTextColor },
|
4735
|
+
{ ...countryCodeInput, property: comboVars.inputValueTextColor }
|
4736
|
+
],
|
4737
|
+
|
4738
|
+
inputPlaceholderTextColor: { ...phoneInput, property: textVars.inputPlaceholderColor },
|
4629
4739
|
|
4630
4740
|
overlayItemBackgroundColor: {
|
4631
4741
|
selector: 'descope-combo-box',
|
4632
4742
|
property: comboVars.overlayItemBackgroundColor
|
4633
4743
|
},
|
4634
4744
|
|
4635
|
-
|
4636
|
-
|
4637
|
-
|
4745
|
+
inputOutlineStyle: { ...inputField, property: 'outline-style' },
|
4746
|
+
inputOutlineColor: { ...inputField, property: 'outline-color' },
|
4747
|
+
inputOutlineWidth: { ...inputField, property: 'outline-width' },
|
4748
|
+
inputOutlineOffset: { ...inputField, property: 'outline-offset' },
|
4638
4749
|
},
|
4639
4750
|
}),
|
4640
4751
|
draggableMixin,
|
4641
|
-
|
4752
|
+
composedProxyInputMixin,
|
4642
4753
|
customMixin$1,
|
4643
4754
|
)(
|
4644
4755
|
createProxy({
|
@@ -4646,10 +4757,11 @@ const PhoneFieldClass = compose(
|
|
4646
4757
|
wrappedEleName: 'vaadin-text-field',
|
4647
4758
|
style: () => `
|
4648
4759
|
:host {
|
4649
|
-
--vaadin-field-default-width: auto;
|
4650
4760
|
display: inline-block;
|
4651
4761
|
max-width: 100%;
|
4652
4762
|
min-width: 15em;
|
4763
|
+
box-sizing: border-box;
|
4764
|
+
padding: calc(var(${PhoneFieldClass.cssVarList.inputOutlineWidth}) + var(${PhoneFieldClass.cssVarList.inputOutlineOffset}))
|
4653
4765
|
}
|
4654
4766
|
div {
|
4655
4767
|
display: inline-flex;
|
@@ -4658,6 +4770,7 @@ const PhoneFieldClass = compose(
|
|
4658
4770
|
width: 100%;
|
4659
4771
|
height: 100%;
|
4660
4772
|
box-sizing: border-box;
|
4773
|
+
padding: 0;
|
4661
4774
|
}
|
4662
4775
|
vaadin-text-field[focus-ring]::part(input-field) {
|
4663
4776
|
box-shadow: none;
|
@@ -4689,18 +4802,18 @@ const PhoneFieldClass = compose(
|
|
4689
4802
|
descope-combo-box {
|
4690
4803
|
flex-shrink: 0;
|
4691
4804
|
height: 100%;
|
4692
|
-
${comboVars.
|
4805
|
+
${comboVars.inputOutlineWidth}: 0;
|
4806
|
+
${comboVars.inputOutlineOffset}: 0;
|
4807
|
+
${comboVars.inputBorderWidth}: 0;
|
4808
|
+
${comboVars.inputBorderRadius}: 0;
|
4693
4809
|
}
|
4694
4810
|
descope-text-field {
|
4695
4811
|
flex-grow: 1;
|
4696
4812
|
min-height: 0;
|
4697
4813
|
height: 100%;
|
4698
|
-
${textVars.
|
4699
|
-
${textVars.
|
4700
|
-
${textVars.
|
4701
|
-
}
|
4702
|
-
vaadin-text-field[required]::part(required-indicator)::after {
|
4703
|
-
content: "*";
|
4814
|
+
${textVars.inputOutlineWidth}: 0;
|
4815
|
+
${textVars.inputBorderWidth}: 0;
|
4816
|
+
${textVars.inputBorderRadius}: 0;
|
4704
4817
|
}
|
4705
4818
|
vaadin-text-field[readonly] > input:placeholder-shown {
|
4706
4819
|
opacity: 1;
|
@@ -4708,17 +4821,20 @@ const PhoneFieldClass = compose(
|
|
4708
4821
|
vaadin-text-field::part(input-field)::after {
|
4709
4822
|
border: none;
|
4710
4823
|
}
|
4824
|
+
|
4825
|
+
${resetInputFieldDefaultWidth()}
|
4826
|
+
${resetInputCursor('vaadin-text-field')}
|
4711
4827
|
`,
|
4712
4828
|
excludeAttrsSync: ['tabindex'],
|
4713
|
-
componentName: componentName$
|
4829
|
+
componentName: componentName$3
|
4714
4830
|
})
|
4715
4831
|
);
|
4716
4832
|
|
4717
|
-
customElements.define(componentName$
|
4833
|
+
customElements.define(componentName$3, PhoneFieldClass);
|
4718
4834
|
|
4719
|
-
const componentName$
|
4835
|
+
const componentName$2 = getComponentName('new-password-internal');
|
4720
4836
|
|
4721
|
-
const componentName = getComponentName('new-password');
|
4837
|
+
const componentName$1 = getComponentName('new-password');
|
4722
4838
|
|
4723
4839
|
const customMixin = (superclass) =>
|
4724
4840
|
class NewPasswordMixinClass extends superclass {
|
@@ -4732,16 +4848,16 @@ const customMixin = (superclass) =>
|
|
4732
4848
|
const template = document.createElement('template');
|
4733
4849
|
|
4734
4850
|
template.innerHTML = `
|
4735
|
-
<${componentName$
|
4851
|
+
<${componentName$2}
|
4736
4852
|
name="new-password"
|
4737
4853
|
tabindex="-1"
|
4738
4854
|
slot="input"
|
4739
|
-
></${componentName$
|
4855
|
+
></${componentName$2}>
|
4740
4856
|
`;
|
4741
4857
|
|
4742
4858
|
this.baseElement.appendChild(template.content.cloneNode(true));
|
4743
4859
|
|
4744
|
-
this.inputElement = this.shadowRoot.querySelector(componentName$
|
4860
|
+
this.inputElement = this.shadowRoot.querySelector(componentName$2);
|
4745
4861
|
|
4746
4862
|
forwardAttrs(this, this.inputElement, {
|
4747
4863
|
includeAttrs: [
|
@@ -4762,9 +4878,18 @@ const customMixin = (superclass) =>
|
|
4762
4878
|
}
|
4763
4879
|
};
|
4764
4880
|
|
4765
|
-
const {
|
4881
|
+
const {
|
4882
|
+
host,
|
4883
|
+
label,
|
4884
|
+
internalInputsWrapper,
|
4885
|
+
errorMessage,
|
4886
|
+
helperText
|
4887
|
+
} = {
|
4766
4888
|
host: { selector: () => ':host' },
|
4767
|
-
|
4889
|
+
label: { selector: '::part(label)' },
|
4890
|
+
internalInputsWrapper: { selector: 'descope-new-password-internal .wrapper' },
|
4891
|
+
helperText: { selector: '::part(helper-text)' },
|
4892
|
+
errorMessage: { selector: '::part(error-message)' }
|
4768
4893
|
};
|
4769
4894
|
|
4770
4895
|
const NewPasswordClass = compose(
|
@@ -4777,69 +4902,73 @@ const NewPasswordClass = compose(
|
|
4777
4902
|
property: PasswordFieldClass.cssVarList.fontSize
|
4778
4903
|
}
|
4779
4904
|
],
|
4780
|
-
|
4781
|
-
|
4782
|
-
|
4905
|
+
fontFamily: [
|
4906
|
+
label,
|
4907
|
+
errorMessage,
|
4908
|
+
helperText
|
4909
|
+
],
|
4910
|
+
hostWidth: { ...host, property: 'width' },
|
4911
|
+
inputsRequiredIndicator: { ...host, property: 'content' },
|
4912
|
+
spaceBetweenInputs: { ...internalInputsWrapper, property: 'gap' },
|
4783
4913
|
}
|
4784
4914
|
}),
|
4785
4915
|
draggableMixin,
|
4786
|
-
|
4916
|
+
composedProxyInputMixin,
|
4787
4917
|
customMixin,
|
4788
4918
|
)(
|
4789
4919
|
createProxy({
|
4790
4920
|
slots: [],
|
4791
4921
|
wrappedEleName: 'vaadin-text-field',
|
4792
|
-
style: () =>
|
4922
|
+
style: () => `
|
4923
|
+
:host {
|
4924
|
+
display: inline-block;
|
4925
|
+
max-width: 100%;
|
4926
|
+
min-width: 10em;
|
4927
|
+
box-sizing: border-box;
|
4928
|
+
}
|
4929
|
+
${resetInputFieldDefaultWidth()}
|
4930
|
+
vaadin-text-field {
|
4931
|
+
padding: 0;
|
4932
|
+
width: 100%;
|
4933
|
+
height: 100%;
|
4934
|
+
}
|
4935
|
+
vaadin-text-field::part(input-field) {
|
4936
|
+
min-height: 0;
|
4937
|
+
background: transparent;
|
4938
|
+
overflow: hidden;
|
4939
|
+
box-shadow: none;
|
4940
|
+
padding: 0;
|
4941
|
+
}
|
4942
|
+
vaadin-text-field::part(input-field)::after {
|
4943
|
+
background: transparent;
|
4944
|
+
opacity: 0;
|
4945
|
+
}
|
4946
|
+
descope-new-password-internal {
|
4947
|
+
-webkit-mask-image: none;
|
4948
|
+
min-height: 0;
|
4949
|
+
width: 100%;
|
4950
|
+
height: 100%;
|
4951
|
+
padding: 0;
|
4952
|
+
}
|
4953
|
+
descope-new-password-internal > .wrapper {
|
4954
|
+
width: 100%;
|
4955
|
+
height: 100%;
|
4956
|
+
display: flex;
|
4957
|
+
flex-direction: column;
|
4958
|
+
}
|
4959
|
+
descope-password-field {
|
4960
|
+
display: block;
|
4961
|
+
width: 100%;
|
4962
|
+
}
|
4963
|
+
descope-new-password-internal vaadin-password-field::before {
|
4964
|
+
height: initial;
|
4965
|
+
},
|
4966
|
+
`,
|
4793
4967
|
excludeAttrsSync: ['tabindex'],
|
4794
|
-
componentName
|
4968
|
+
componentName: componentName$1
|
4795
4969
|
})
|
4796
4970
|
);
|
4797
4971
|
|
4798
|
-
const overrides = `
|
4799
|
-
:host {
|
4800
|
-
--vaadin-field-default-width: auto;
|
4801
|
-
display: inline-block;
|
4802
|
-
min-width: 10em;
|
4803
|
-
max-width: 100%;
|
4804
|
-
}
|
4805
|
-
vaadin-text-field {
|
4806
|
-
padding: 0;
|
4807
|
-
width: 100%;
|
4808
|
-
height: 100%;
|
4809
|
-
}
|
4810
|
-
vaadin-text-field::part(input-field) {
|
4811
|
-
min-height: 0;
|
4812
|
-
background: transparent;
|
4813
|
-
overflow: hidden;
|
4814
|
-
box-shadow: none;
|
4815
|
-
padding: 0;
|
4816
|
-
}
|
4817
|
-
vaadin-text-field::part(input-field)::after {
|
4818
|
-
background: transparent;
|
4819
|
-
opacity: 0;
|
4820
|
-
}
|
4821
|
-
descope-new-password-internal {
|
4822
|
-
-webkit-mask-image: none;
|
4823
|
-
min-height: 0;
|
4824
|
-
width: 100%;
|
4825
|
-
height: 100%;
|
4826
|
-
padding: 0;
|
4827
|
-
}
|
4828
|
-
descope-new-password-internal > .wrapper {
|
4829
|
-
width: 100%;
|
4830
|
-
height: 100%;
|
4831
|
-
display: flex;
|
4832
|
-
flex-direction: column;
|
4833
|
-
}
|
4834
|
-
descope-password-field {
|
4835
|
-
display: block;
|
4836
|
-
width: 100%;
|
4837
|
-
}
|
4838
|
-
descope-new-password-internal vaadin-password-field::before {
|
4839
|
-
height: initial;
|
4840
|
-
}
|
4841
|
-
`;
|
4842
|
-
|
4843
4972
|
const passwordAttrPrefixRegex = /^password-/;
|
4844
4973
|
const confirmAttrPrefixRegex = /^confirm-/;
|
4845
4974
|
|
@@ -4861,7 +4990,7 @@ const commonAttrs = [
|
|
4861
4990
|
|
4862
4991
|
const inputRelatedAttrs = [].concat(commonAttrs, passwordInputAttrs, confirmInputAttrs);
|
4863
4992
|
|
4864
|
-
const BaseInputClass = createBaseInputClass({ componentName: componentName$
|
4993
|
+
const BaseInputClass = createBaseInputClass({ componentName: componentName$2, baseSelector: 'div' });
|
4865
4994
|
|
4866
4995
|
class NewPasswordInternal extends BaseInputClass {
|
4867
4996
|
static get observedAttributes() {
|
@@ -4954,7 +5083,7 @@ class NewPasswordInternal extends BaseInputClass {
|
|
4954
5083
|
const styleTag = document.createElement('style');
|
4955
5084
|
styleTag.innerHTML = `
|
4956
5085
|
:host::part(required-indicator)::after {
|
4957
|
-
content: var(${NewPasswordClass.cssVarList.
|
5086
|
+
content: var(${NewPasswordClass.cssVarList.inputsRequiredIndicator});
|
4958
5087
|
}
|
4959
5088
|
`;
|
4960
5089
|
input?.shadowRoot.appendChild(styleTag);
|
@@ -5026,9 +5155,9 @@ class NewPasswordInternal extends BaseInputClass {
|
|
5026
5155
|
}
|
5027
5156
|
}
|
5028
5157
|
|
5029
|
-
customElements.define(componentName$
|
5158
|
+
customElements.define(componentName$2, NewPasswordInternal);
|
5030
5159
|
|
5031
|
-
customElements.define(componentName, NewPasswordClass);
|
5160
|
+
customElements.define(componentName$1, NewPasswordClass);
|
5032
5161
|
|
5033
5162
|
const getVarName = (path) => getCssVarName(DESCOPE_PREFIX, ...path);
|
5034
5163
|
|
@@ -5071,16 +5200,18 @@ const getThemeVars = (theme, prefix) =>
|
|
5071
5200
|
set({}, path, getVarName(prefix ? [prefix, ...path] : path))
|
5072
5201
|
);
|
5073
5202
|
|
5074
|
-
const globalsThemeToStyle = (theme, themeName = '') =>
|
5075
|
-
|
5076
|
-
|
5077
|
-
|
5078
|
-
|
5079
|
-
)}
|
5080
|
-
}
|
5081
|
-
`;
|
5203
|
+
const globalsThemeToStyle = (theme, themeName = '') => {
|
5204
|
+
const style = Object.entries(themeToCSSVarsObj(theme)).reduce(
|
5205
|
+
(acc, entry) => (acc += `${entry.join(':')};\n`),
|
5206
|
+
''
|
5207
|
+
);
|
5082
5208
|
|
5083
|
-
|
5209
|
+
if(!themeName) return style
|
5210
|
+
|
5211
|
+
return `*[data-theme="${themeName}"] {${style}}`
|
5212
|
+
};
|
5213
|
+
|
5214
|
+
const componentsThemeToStyleObj = (componentsTheme) =>
|
5084
5215
|
transformTheme(componentsTheme, [], (path, val) => {
|
5085
5216
|
const [component, ...restPath] = path;
|
5086
5217
|
const property = restPath.pop();
|
@@ -5364,49 +5495,56 @@ const globals = {
|
|
5364
5495
|
shadow,
|
5365
5496
|
fonts
|
5366
5497
|
};
|
5367
|
-
const vars$
|
5498
|
+
const vars$m = getThemeVars(globals);
|
5368
5499
|
|
5369
|
-
const globalRefs$
|
5500
|
+
const globalRefs$c = getThemeRefs(globals);
|
5370
5501
|
const compVars$2 = ButtonClass.cssVarList;
|
5371
5502
|
|
5372
5503
|
const mode = {
|
5373
|
-
primary: globalRefs$
|
5374
|
-
secondary: globalRefs$
|
5375
|
-
success: globalRefs$
|
5376
|
-
error: globalRefs$
|
5377
|
-
surface: globalRefs$
|
5504
|
+
primary: globalRefs$c.colors.primary,
|
5505
|
+
secondary: globalRefs$c.colors.secondary,
|
5506
|
+
success: globalRefs$c.colors.success,
|
5507
|
+
error: globalRefs$c.colors.error,
|
5508
|
+
surface: globalRefs$c.colors.surface
|
5378
5509
|
};
|
5379
5510
|
|
5380
|
-
const [helperTheme$
|
5511
|
+
const [helperTheme$3, helperRefs$3, helperVars$2] = createHelperVars({ mode }, componentName$o);
|
5381
5512
|
|
5382
5513
|
const verticalPaddingRatio = 3;
|
5383
5514
|
const horizontalPaddingRatio = 2;
|
5384
5515
|
|
5385
5516
|
const button = {
|
5386
|
-
...helperTheme$
|
5517
|
+
...helperTheme$3,
|
5518
|
+
|
5519
|
+
[compVars$2.fontFamily]: globalRefs$c.fonts.font1.family,
|
5387
5520
|
|
5388
5521
|
[compVars$2.cursor]: 'pointer',
|
5389
5522
|
|
5390
|
-
[compVars$2.borderRadius]: globalRefs$
|
5523
|
+
[compVars$2.borderRadius]: globalRefs$c.radius.sm,
|
5391
5524
|
[compVars$2.borderWidth]: '2px',
|
5392
5525
|
[compVars$2.borderStyle]: 'solid',
|
5393
5526
|
[compVars$2.borderColor]: 'transparent',
|
5394
5527
|
|
5395
|
-
[compVars$2.
|
5528
|
+
[compVars$2.labelSpacing]: '0.25em',
|
5396
5529
|
|
5397
5530
|
[compVars$2.verticalPadding]: `calc(var(${compVars$2.fontSize}) / ${verticalPaddingRatio})`,
|
5398
5531
|
[compVars$2.horizontalPadding]: `calc(var(${compVars$2.fontSize}) / ${horizontalPaddingRatio})`,
|
5399
5532
|
|
5533
|
+
[compVars$2.outlineWidth]: globals.border.sm,
|
5534
|
+
[compVars$2.outlineOffset]: '1px',
|
5535
|
+
[compVars$2.outlineStyle]: 'solid',
|
5536
|
+
[compVars$2.outlineColor]: 'transparent',
|
5537
|
+
|
5400
5538
|
size: {
|
5401
|
-
xs: { [compVars$2.fontSize]: '
|
5402
|
-
sm: { [compVars$2.fontSize]: '
|
5403
|
-
md: { [compVars$2.fontSize]: '
|
5404
|
-
lg: { [compVars$2.fontSize]: '
|
5405
|
-
xl: { [compVars$2.fontSize]: '
|
5539
|
+
xs: { [compVars$2.fontSize]: '8px' },
|
5540
|
+
sm: { [compVars$2.fontSize]: '10px' },
|
5541
|
+
md: { [compVars$2.fontSize]: '14px' },
|
5542
|
+
lg: { [compVars$2.fontSize]: '20px' },
|
5543
|
+
xl: { [compVars$2.fontSize]: '25px' }
|
5406
5544
|
},
|
5407
5545
|
|
5408
5546
|
_fullWidth: {
|
5409
|
-
[compVars$2.
|
5547
|
+
[compVars$2.hostWidth]: '100%'
|
5410
5548
|
},
|
5411
5549
|
|
5412
5550
|
_loading: {
|
@@ -5415,189 +5553,176 @@ const button = {
|
|
5415
5553
|
|
5416
5554
|
variant: {
|
5417
5555
|
contained: {
|
5418
|
-
[compVars$2.
|
5419
|
-
[compVars$2.backgroundColor]: helperRefs$
|
5556
|
+
[compVars$2.labelTextColor]: helperRefs$3.contrast,
|
5557
|
+
[compVars$2.backgroundColor]: helperRefs$3.main,
|
5420
5558
|
_hover: {
|
5421
|
-
[compVars$2.backgroundColor]: helperRefs$
|
5559
|
+
[compVars$2.backgroundColor]: helperRefs$3.dark
|
5422
5560
|
},
|
5423
5561
|
_active: {
|
5424
|
-
[compVars$2.backgroundColor]: helperRefs$
|
5562
|
+
[compVars$2.backgroundColor]: helperRefs$3.dark
|
5425
5563
|
}
|
5426
5564
|
},
|
5427
5565
|
|
5428
5566
|
outline: {
|
5429
|
-
[compVars$2.
|
5567
|
+
[compVars$2.labelTextColor]: helperRefs$3.main,
|
5430
5568
|
[compVars$2.borderColor]: 'currentColor',
|
5431
5569
|
_hover: {
|
5432
|
-
[compVars$2.
|
5570
|
+
[compVars$2.labelTextColor]: helperRefs$3.dark,
|
5433
5571
|
},
|
5434
5572
|
_active: {
|
5435
|
-
[compVars$2.
|
5573
|
+
[compVars$2.labelTextColor]: helperRefs$3.light,
|
5436
5574
|
}
|
5437
5575
|
},
|
5438
5576
|
|
5439
5577
|
link: {
|
5440
|
-
[compVars$2.
|
5578
|
+
[compVars$2.labelTextColor]: helperRefs$3.main,
|
5441
5579
|
_hover: {
|
5442
|
-
[compVars$2.
|
5443
|
-
[compVars$2.
|
5580
|
+
[compVars$2.labelTextColor]: helperRefs$3.main,
|
5581
|
+
[compVars$2.labelTextDecoration]: 'underline'
|
5444
5582
|
},
|
5445
5583
|
_active: {
|
5446
|
-
[compVars$2.
|
5584
|
+
[compVars$2.labelTextColor]: helperRefs$3.dark
|
5447
5585
|
}
|
5448
5586
|
}
|
5587
|
+
},
|
5588
|
+
|
5589
|
+
_focused: {
|
5590
|
+
[compVars$2.outlineColor]: globals.colors.surface.main,
|
5449
5591
|
}
|
5450
5592
|
};
|
5451
|
-
|
5593
|
+
|
5594
|
+
const vars$l = {
|
5595
|
+
...compVars$2,
|
5596
|
+
...helperVars$2
|
5597
|
+
};
|
5452
5598
|
|
5453
5599
|
var button$1 = /*#__PURE__*/Object.freeze({
|
5454
5600
|
__proto__: null,
|
5455
5601
|
default: button,
|
5456
|
-
vars: vars$
|
5602
|
+
vars: vars$l
|
5457
5603
|
});
|
5458
5604
|
|
5459
|
-
const
|
5605
|
+
const componentName = getComponentName('input-wrapper');
|
5606
|
+
const globalRefs$b = getThemeRefs(globals);
|
5460
5607
|
|
5461
|
-
const vars$
|
5608
|
+
const [theme$1, refs, vars$k] = createHelperVars({
|
5609
|
+
labelTextColor: globalRefs$b.colors.surface.contrast,
|
5610
|
+
valueTextColor: globalRefs$b.colors.surface.contrast,
|
5611
|
+
placeholderTextColor: globalRefs$b.colors.surface.main,
|
5612
|
+
requiredIndicator: "'*'",
|
5462
5613
|
|
5463
|
-
|
5464
|
-
|
5614
|
+
borderWidth: globalRefs$b.border.xs,
|
5615
|
+
borderRadius: globalRefs$b.radius.xs,
|
5616
|
+
borderColor: 'transparent',
|
5465
5617
|
|
5466
|
-
|
5467
|
-
|
5468
|
-
|
5618
|
+
outlineWidth: globalRefs$b.border.sm,
|
5619
|
+
outlineStyle: 'solid',
|
5620
|
+
outlineColor: 'transparent',
|
5621
|
+
outlineOffset: '0px', // we need to keep the px unit even for 0 value, as this var is used for calc in different component classes
|
5469
5622
|
|
5470
|
-
|
5623
|
+
inputHeight: '2em',
|
5471
5624
|
|
5472
|
-
|
5473
|
-
xs: {
|
5474
|
-
[vars.fontSize]: '8px',
|
5475
|
-
},
|
5476
|
-
sm: {
|
5477
|
-
[vars.fontSize]: '10px',
|
5478
|
-
},
|
5479
|
-
md: {
|
5480
|
-
[vars.fontSize]: '14px',
|
5481
|
-
},
|
5482
|
-
lg: {
|
5483
|
-
[vars.fontSize]: '20px',
|
5484
|
-
},
|
5485
|
-
xl: {
|
5486
|
-
[vars.fontSize]: '25px',
|
5487
|
-
}
|
5488
|
-
},
|
5625
|
+
backgroundColor: globalRefs$b.colors.surface.light,
|
5489
5626
|
|
5490
|
-
|
5491
|
-
[vars.labelTextColor]: globalRefs$d.colors.surface.contrast,
|
5492
|
-
[vars.placeholderColor]: globalRefs$d.colors.surface.main,
|
5627
|
+
fontFamily: globalRefs$b.fonts.font1.family,
|
5493
5628
|
|
5494
|
-
|
5629
|
+
size: {
|
5630
|
+
xs: { fontSize: '8px' },
|
5631
|
+
sm: { fontSize: '10px' },
|
5632
|
+
md: { fontSize: '14px' },
|
5633
|
+
lg: { fontSize: '20px' },
|
5634
|
+
xl: { fontSize: '25px' }
|
5635
|
+
},
|
5495
5636
|
|
5496
|
-
|
5497
|
-
|
5498
|
-
|
5499
|
-
[vars.borderRadius]: globalRefs$d.radius.xs,
|
5637
|
+
_fullWidth: {
|
5638
|
+
width: '100%',
|
5639
|
+
},
|
5500
5640
|
|
5501
|
-
|
5502
|
-
|
5503
|
-
|
5504
|
-
|
5505
|
-
|
5641
|
+
_focused: {
|
5642
|
+
outlineColor: globalRefs$b.colors.surface.main,
|
5643
|
+
_invalid: {
|
5644
|
+
outlineColor: globalRefs$b.colors.error.light,
|
5645
|
+
}
|
5646
|
+
},
|
5506
5647
|
|
5507
|
-
|
5508
|
-
|
5509
|
-
|
5648
|
+
_bordered: {
|
5649
|
+
borderColor: globalRefs$b.colors.surface.main,
|
5650
|
+
borderStyle: 'solid',
|
5651
|
+
_invalid: {
|
5652
|
+
borderColor: globalRefs$b.colors.error.main,
|
5653
|
+
}
|
5654
|
+
},
|
5510
5655
|
|
5511
|
-
|
5512
|
-
|
5513
|
-
|
5656
|
+
_disabled: {
|
5657
|
+
labelTextColor: globalRefs$b.colors.surface.main,
|
5658
|
+
valueTextColor: globalRefs$b.colors.surface.dark,
|
5659
|
+
placeholderTextColor: globalRefs$b.colors.surface.dark,
|
5660
|
+
backgroundColor: globalRefs$b.colors.surface.main
|
5661
|
+
},
|
5514
5662
|
|
5515
|
-
|
5516
|
-
|
5517
|
-
|
5663
|
+
_invalid: {
|
5664
|
+
labelTextColor: globalRefs$b.colors.error.main,
|
5665
|
+
valueTextColor: globalRefs$b.colors.error.main,
|
5666
|
+
placeholderTextColor: globalRefs$b.colors.error.light,
|
5667
|
+
}
|
5668
|
+
}, componentName);
|
5518
5669
|
|
5519
|
-
|
5520
|
-
|
5521
|
-
|
5522
|
-
|
5523
|
-
|
5524
|
-
}
|
5670
|
+
var inputWrapper = /*#__PURE__*/Object.freeze({
|
5671
|
+
__proto__: null,
|
5672
|
+
default: theme$1,
|
5673
|
+
refs: refs,
|
5674
|
+
vars: vars$k
|
5525
5675
|
});
|
5526
5676
|
|
5527
|
-
|
5677
|
+
const vars$j = TextFieldClass.cssVarList;
|
5678
|
+
|
5679
|
+
const textField = ({
|
5680
|
+
[vars$j.hostWidth]: refs.width,
|
5681
|
+
[vars$j.fontSize]: refs.fontSize,
|
5682
|
+
[vars$j.fontFamily]: refs.fontFamily,
|
5683
|
+
[vars$j.labelTextColor]: refs.labelTextColor,
|
5684
|
+
[vars$j.labelRequiredIndicator]: refs.requiredIndicator,
|
5685
|
+
[vars$j.inputValueTextColor]: refs.valueTextColor,
|
5686
|
+
[vars$j.inputPlaceholderColor]: refs.placeholderTextColor,
|
5687
|
+
[vars$j.inputBorderWidth]: refs.borderWidth,
|
5688
|
+
[vars$j.inputBorderStyle]: refs.borderStyle,
|
5689
|
+
[vars$j.inputBorderColor]: refs.borderColor,
|
5690
|
+
[vars$j.inputBorderRadius]: refs.borderRadius,
|
5691
|
+
[vars$j.inputOutlineWidth]: refs.outlineWidth,
|
5692
|
+
[vars$j.inputOutlineStyle]: refs.outlineStyle,
|
5693
|
+
[vars$j.inputOutlineColor]: refs.outlineColor,
|
5694
|
+
[vars$j.inputOutlineOffset]: refs.outlineOffset,
|
5695
|
+
[vars$j.inputBackgroundColor]: refs.backgroundColor,
|
5696
|
+
[vars$j.inputHeight]: refs.inputHeight,
|
5697
|
+
});
|
5528
5698
|
|
5529
|
-
var textField$
|
5699
|
+
var textField$1 = /*#__PURE__*/Object.freeze({
|
5530
5700
|
__proto__: null,
|
5531
|
-
default: textField
|
5701
|
+
default: textField,
|
5532
5702
|
textField: textField,
|
5533
5703
|
vars: vars$j
|
5534
5704
|
});
|
5535
5705
|
|
5536
|
-
const globalRefs$c = getThemeRefs(globals);
|
5537
|
-
|
5538
5706
|
const vars$i = PasswordFieldClass.cssVarList;
|
5539
5707
|
|
5540
5708
|
const passwordField = {
|
5541
|
-
[vars$i.
|
5542
|
-
[vars$i.
|
5543
|
-
[vars$i.
|
5544
|
-
[vars$i.
|
5545
|
-
[vars$i.
|
5546
|
-
|
5547
|
-
[vars$i.
|
5548
|
-
[vars$i.
|
5549
|
-
[vars$i.
|
5550
|
-
|
5551
|
-
[vars$i.
|
5552
|
-
|
5553
|
-
|
5554
|
-
[vars$i.
|
5555
|
-
[vars$i.
|
5556
|
-
[vars$i.
|
5557
|
-
|
5558
|
-
[vars$i.pointerCursor]: 'pointer',
|
5559
|
-
|
5560
|
-
[vars$i.padding]: '0',
|
5561
|
-
[vars$i.height]: '2em',
|
5562
|
-
|
5563
|
-
size: {
|
5564
|
-
xs: {
|
5565
|
-
[vars$i.fontSize]: '8px',
|
5566
|
-
},
|
5567
|
-
sm: {
|
5568
|
-
[vars$i.fontSize]: '10px',
|
5569
|
-
},
|
5570
|
-
md: {
|
5571
|
-
[vars$i.fontSize]: '14px',
|
5572
|
-
},
|
5573
|
-
lg: {
|
5574
|
-
[vars$i.fontSize]: '20px',
|
5575
|
-
},
|
5576
|
-
xl: {
|
5577
|
-
[vars$i.fontSize]: '25px',
|
5578
|
-
}
|
5579
|
-
},
|
5580
|
-
|
5581
|
-
_bordered: {
|
5582
|
-
[vars$i.padding]: '0 0.5em',
|
5583
|
-
[vars$i.wrapperBorderColor]: globalRefs$c.colors.surface.main
|
5584
|
-
},
|
5585
|
-
|
5586
|
-
_fullWidth: {
|
5587
|
-
[vars$i.width]: '100%'
|
5588
|
-
},
|
5589
|
-
|
5590
|
-
_focused: {
|
5591
|
-
[vars$i.outlineColor]: globalRefs$c.colors.surface.main
|
5592
|
-
},
|
5593
|
-
|
5594
|
-
_invalid: {
|
5595
|
-
[vars$i.labelTextColor]: globalRefs$c.colors.error.main,
|
5596
|
-
[vars$i.inputTextColor]: globalRefs$c.colors.error.main,
|
5597
|
-
[vars$i.placeholderTextColor]: globalRefs$c.colors.error.light,
|
5598
|
-
[vars$i.wrapperBorderColor]: globalRefs$c.colors.error.main,
|
5599
|
-
[vars$i.outlineColor]: globalRefs$c.colors.error.light,
|
5600
|
-
},
|
5709
|
+
[vars$i.hostWidth]: refs.width,
|
5710
|
+
[vars$i.fontSize]: refs.fontSize,
|
5711
|
+
[vars$i.fontFamily]: refs.fontFamily,
|
5712
|
+
[vars$i.labelTextColor]: refs.labelTextColor,
|
5713
|
+
[vars$i.inputHeight]: refs.inputHeight,
|
5714
|
+
[vars$i.inputBackgroundColor]: refs.backgroundColor,
|
5715
|
+
[vars$i.labelRequiredIndicator]: refs.requiredIndicator,
|
5716
|
+
[vars$i.inputValueTextColor]: refs.valueTextColor,
|
5717
|
+
[vars$i.inputPlaceholderTextColor]: refs.placeholderTextColor,
|
5718
|
+
[vars$i.inputBorderWidth]: refs.borderWidth,
|
5719
|
+
[vars$i.inputBorderStyle]: refs.borderStyle,
|
5720
|
+
[vars$i.inputBorderColor]: refs.borderColor,
|
5721
|
+
[vars$i.inputBorderRadius]: refs.borderRadius,
|
5722
|
+
[vars$i.inputOutlineWidth]: refs.outlineWidth,
|
5723
|
+
[vars$i.inputOutlineStyle]: refs.outlineStyle,
|
5724
|
+
[vars$i.inputOutlineColor]: refs.outlineColor,
|
5725
|
+
[vars$i.inputOutlineOffset]: refs.outlineOffset,
|
5601
5726
|
};
|
5602
5727
|
|
5603
5728
|
var passwordField$1 = /*#__PURE__*/Object.freeze({
|
@@ -5606,10 +5731,27 @@ var passwordField$1 = /*#__PURE__*/Object.freeze({
|
|
5606
5731
|
vars: vars$i
|
5607
5732
|
});
|
5608
5733
|
|
5734
|
+
const vars$h = NumberFieldClass.cssVarList;
|
5735
|
+
|
5609
5736
|
const numberField = {
|
5610
|
-
|
5737
|
+
[vars$h.hostWidth]: refs.width,
|
5738
|
+
[vars$h.fontSize]: refs.fontSize,
|
5739
|
+
[vars$h.fontFamily]: refs.fontFamily,
|
5740
|
+
[vars$h.labelTextColor]: refs.labelTextColor,
|
5741
|
+
[vars$h.inputValueTextColor]: refs.valueTextColor,
|
5742
|
+
[vars$h.inputPlaceholderColor]: refs.placeholderTextColor,
|
5743
|
+
[vars$h.inputBorderWidth]: refs.borderWidth,
|
5744
|
+
[vars$h.inputBorderStyle]: refs.borderStyle,
|
5745
|
+
[vars$h.inputBorderColor]: refs.borderColor,
|
5746
|
+
[vars$h.inputBorderRadius]: refs.borderRadius,
|
5747
|
+
[vars$h.inputOutlineWidth]: refs.outlineWidth,
|
5748
|
+
[vars$h.inputOutlineStyle]: refs.outlineStyle,
|
5749
|
+
[vars$h.inputOutlineColor]: refs.outlineColor,
|
5750
|
+
[vars$h.inputOutlineOffset]: refs.outlineOffset,
|
5751
|
+
[vars$h.inputBackgroundColor]: refs.backgroundColor,
|
5752
|
+
[vars$h.labelRequiredIndicator]: refs.requiredIndicator,
|
5753
|
+
[vars$h.inputHeight]: refs.inputHeight,
|
5611
5754
|
};
|
5612
|
-
const vars$h = NumberFieldClass.cssVarList;
|
5613
5755
|
|
5614
5756
|
var numberField$1 = /*#__PURE__*/Object.freeze({
|
5615
5757
|
__proto__: null,
|
@@ -5617,10 +5759,27 @@ var numberField$1 = /*#__PURE__*/Object.freeze({
|
|
5617
5759
|
vars: vars$h
|
5618
5760
|
});
|
5619
5761
|
|
5762
|
+
const vars$g = EmailFieldClass.cssVarList;
|
5763
|
+
|
5620
5764
|
const emailField = {
|
5621
|
-
|
5765
|
+
[vars$g.hostWidth]: refs.width,
|
5766
|
+
[vars$g.fontSize]: refs.fontSize,
|
5767
|
+
[vars$g.fontFamily]: refs.fontFamily,
|
5768
|
+
[vars$g.labelTextColor]: refs.labelTextColor,
|
5769
|
+
[vars$g.inputValueTextColor]: refs.valueTextColor,
|
5770
|
+
[vars$g.labelRequiredIndicator]: refs.requiredIndicator,
|
5771
|
+
[vars$g.inputPlaceholderColor]: refs.placeholderTextColor,
|
5772
|
+
[vars$g.inputBorderWidth]: refs.borderWidth,
|
5773
|
+
[vars$g.inputBorderStyle]: refs.borderStyle,
|
5774
|
+
[vars$g.inputBorderColor]: refs.borderColor,
|
5775
|
+
[vars$g.inputBorderRadius]: refs.borderRadius,
|
5776
|
+
[vars$g.inputOutlineWidth]: refs.outlineWidth,
|
5777
|
+
[vars$g.inputOutlineStyle]: refs.outlineStyle,
|
5778
|
+
[vars$g.inputOutlineColor]: refs.outlineColor,
|
5779
|
+
[vars$g.inputOutlineOffset]: refs.outlineOffset,
|
5780
|
+
[vars$g.inputBackgroundColor]: refs.backgroundColor,
|
5781
|
+
[vars$g.inputHeight]: refs.inputHeight
|
5622
5782
|
};
|
5623
|
-
const vars$g = EmailFieldClass.cssVarList;
|
5624
5783
|
|
5625
5784
|
var emailField$1 = /*#__PURE__*/Object.freeze({
|
5626
5785
|
__proto__: null,
|
@@ -5628,52 +5787,34 @@ var emailField$1 = /*#__PURE__*/Object.freeze({
|
|
5628
5787
|
vars: vars$g
|
5629
5788
|
});
|
5630
5789
|
|
5631
|
-
const globalRefs$
|
5790
|
+
const globalRefs$a = getThemeRefs(globals);
|
5632
5791
|
const vars$f = TextAreaClass.cssVarList;
|
5633
5792
|
|
5634
5793
|
const textArea = {
|
5635
|
-
[vars$f.
|
5636
|
-
[vars$f.placeholderColor]: globalRefs$b.colors.surface.main,
|
5637
|
-
[vars$f.color]: globalRefs$b.colors.surface.contrast,
|
5794
|
+
[vars$f.hostWidth]: refs.width,
|
5638
5795
|
[vars$f.fontSize]: '14px',
|
5639
|
-
|
5640
|
-
[vars$f.
|
5641
|
-
[vars$f.
|
5642
|
-
|
5643
|
-
[vars$f.
|
5644
|
-
[vars$f.
|
5645
|
-
[vars$f.
|
5646
|
-
[vars$f.
|
5647
|
-
[vars$f.
|
5648
|
-
[vars$f.
|
5649
|
-
[vars$f.
|
5650
|
-
[vars$f.
|
5651
|
-
|
5652
|
-
|
5653
|
-
|
5654
|
-
},
|
5655
|
-
|
5656
|
-
_focused: {
|
5657
|
-
[vars$f.outlineColor]: globalRefs$b.colors.surface.main
|
5658
|
-
},
|
5796
|
+
[vars$f.fontFamily]: refs.fontFamily,
|
5797
|
+
[vars$f.labelTextColor]: refs.labelTextColor,
|
5798
|
+
[vars$f.labelRequiredIndicator]: refs.requiredIndicator,
|
5799
|
+
[vars$f.inputBackgroundColor]: refs.backgroundColor,
|
5800
|
+
[vars$f.inputValueTextColor]: refs.valueTextColor,
|
5801
|
+
[vars$f.inputPlaceholderTextColor]: refs.placeholderTextColor,
|
5802
|
+
[vars$f.inputBorderRadius]: refs.borderRadius,
|
5803
|
+
[vars$f.inputBorderWidth]: refs.borderWidth,
|
5804
|
+
[vars$f.inputBorderStyle]: refs.borderStyle,
|
5805
|
+
[vars$f.inputBorderColor]: refs.borderColor,
|
5806
|
+
[vars$f.inputOutlineWidth]: refs.outlineWidth,
|
5807
|
+
[vars$f.inputOutlineStyle]: refs.outlineStyle,
|
5808
|
+
[vars$f.inputOutlineColor]: refs.outlineColor,
|
5809
|
+
[vars$f.inputOutlineOffset]: refs.outlineOffset,
|
5810
|
+
[vars$f.inputResizeType]: 'vertical',
|
5659
5811
|
|
5660
5812
|
_disabled: {
|
5661
|
-
[vars$f.
|
5662
|
-
},
|
5663
|
-
|
5664
|
-
_bordered: {
|
5665
|
-
[vars$f.borderColor]: globalRefs$b.colors.surface.main,
|
5666
|
-
},
|
5667
|
-
|
5668
|
-
_invalid: {
|
5669
|
-
[vars$f.labelColor]: globalRefs$b.colors.error.main,
|
5670
|
-
[vars$f.borderColor]: globalRefs$b.colors.error.main,
|
5671
|
-
[vars$f.outlineColor]: globalRefs$b.colors.error.light,
|
5672
|
-
[vars$f.placeholderColor]: globalRefs$b.colors.error.light,
|
5813
|
+
[vars$f.inputBackgroundColor]: globalRefs$a.colors.surface.light,
|
5673
5814
|
},
|
5674
5815
|
|
5675
5816
|
_readonly: {
|
5676
|
-
[vars$f.
|
5817
|
+
[vars$f.inputResizeType]: 'none',
|
5677
5818
|
}
|
5678
5819
|
};
|
5679
5820
|
|
@@ -5683,63 +5824,33 @@ var textArea$1 = /*#__PURE__*/Object.freeze({
|
|
5683
5824
|
vars: vars$f
|
5684
5825
|
});
|
5685
5826
|
|
5686
|
-
const globalRefs$
|
5827
|
+
const globalRefs$9 = getThemeRefs(globals);
|
5687
5828
|
const vars$e = CheckboxClass.cssVarList;
|
5688
5829
|
|
5689
5830
|
const checkbox = {
|
5690
|
-
[vars$e.
|
5691
|
-
[vars$e.
|
5692
|
-
|
5693
|
-
[vars$e.
|
5694
|
-
[vars$e.
|
5695
|
-
|
5696
|
-
[vars$e.labelTextColor]: globalRefs$a.colors.surface.contrast,
|
5697
|
-
[vars$e.labelMargin]: '0.5em',
|
5831
|
+
[vars$e.hostWidth]: refs.width,
|
5832
|
+
[vars$e.fontSize]: refs.fontSize,
|
5833
|
+
[vars$e.fontFamily]: refs.fontFamily,
|
5834
|
+
[vars$e.labelTextColor]: refs.labelTextColor,
|
5835
|
+
[vars$e.labelRequiredIndicator]: refs.requiredIndicator,
|
5698
5836
|
[vars$e.labelFontWeight]: '400',
|
5699
|
-
|
5700
|
-
|
5701
|
-
|
5702
|
-
|
5703
|
-
|
5704
|
-
|
5705
|
-
|
5706
|
-
|
5707
|
-
md: {
|
5708
|
-
[vars$e.labelFontSize]: '14px',
|
5709
|
-
},
|
5710
|
-
lg: {
|
5711
|
-
[vars$e.labelFontSize]: '20px',
|
5712
|
-
},
|
5713
|
-
xl: {
|
5714
|
-
[vars$e.labelFontSize]: '25px',
|
5715
|
-
}
|
5716
|
-
},
|
5717
|
-
|
5718
|
-
_fullWidth: {
|
5719
|
-
[vars$e.width]: '100%',
|
5720
|
-
},
|
5837
|
+
[vars$e.labelSpacing]: '0.5em',
|
5838
|
+
[vars$e.inputOutlineWidth]: refs.outlineWidth,
|
5839
|
+
[vars$e.inputOutlineOffset]: refs.outlineOffset,
|
5840
|
+
[vars$e.inputOutlineColor]: refs.outlineColor,
|
5841
|
+
[vars$e.inputOutlineStyle]: refs.outlineStyle,
|
5842
|
+
[vars$e.inputBorderRadius]: refs.borderRadius,
|
5843
|
+
[vars$e.inputBackgroundColor]: globalRefs$9.colors.surface.main,
|
5844
|
+
[vars$e.inputSize]: '2em',
|
5721
5845
|
|
5722
5846
|
_checked: {
|
5723
|
-
[vars$e.
|
5724
|
-
[vars$e.
|
5847
|
+
[vars$e.inputBackgroundColor]: globalRefs$9.colors.primary.main,
|
5848
|
+
[vars$e.inputValueTextColor]: globalRefs$9.colors.primary.contrast,
|
5725
5849
|
},
|
5726
5850
|
|
5727
5851
|
_disabled: {
|
5728
|
-
[vars$e.
|
5729
|
-
},
|
5730
|
-
|
5731
|
-
_focused: {
|
5732
|
-
[vars$e.checkboxOutlineWidth]: '2px',
|
5733
|
-
[vars$e.checkboxOutlineOffset]: '1px',
|
5734
|
-
[vars$e.checkboxOutlineColor]: globalRefs$a.colors.primary.main,
|
5735
|
-
[vars$e.checkboxOutlineStyle]: 'solid'
|
5852
|
+
[vars$e.inputBackgroundColor]: globalRefs$9.colors.surface.main,
|
5736
5853
|
},
|
5737
|
-
|
5738
|
-
_invalid: {
|
5739
|
-
[vars$e.checkboxOutlineColor]: globalRefs$a.colors.error.main,
|
5740
|
-
[vars$e.labelTextColor]: globalRefs$a.colors.error.main
|
5741
|
-
},
|
5742
|
-
|
5743
5854
|
};
|
5744
5855
|
|
5745
5856
|
var checkbox$1 = /*#__PURE__*/Object.freeze({
|
@@ -5750,73 +5861,58 @@ var checkbox$1 = /*#__PURE__*/Object.freeze({
|
|
5750
5861
|
|
5751
5862
|
const knobMargin = '2px';
|
5752
5863
|
const checkboxHeight = '1.25em';
|
5753
|
-
const trackBorderWidth = '2px';
|
5754
5864
|
|
5755
|
-
const globalRefs$
|
5865
|
+
const globalRefs$8 = getThemeRefs(globals);
|
5756
5866
|
const vars$d = SwitchToggleClass.cssVarList;
|
5757
5867
|
|
5758
5868
|
const switchToggle = {
|
5759
|
-
|
5760
|
-
|
5761
|
-
sm: { [vars$d.fontSize]: '12px' },
|
5762
|
-
md: { [vars$d.fontSize]: '16px' },
|
5763
|
-
lg: { [vars$d.fontSize]: '20px' },
|
5764
|
-
xl: { [vars$d.fontSize]: '24px' }
|
5765
|
-
},
|
5766
|
-
|
5767
|
-
[vars$d.cursor]: 'pointer',
|
5869
|
+
[vars$d.fontSize]: refs.fontSize,
|
5870
|
+
[vars$d.fontFamily]: refs.fontFamily,
|
5768
5871
|
|
5769
|
-
[vars$d.
|
5770
|
-
[vars$d.
|
5771
|
-
[vars$d.
|
5872
|
+
[vars$d.inputOutlineWidth]: refs.outlineWidth,
|
5873
|
+
[vars$d.inputOutlineOffset]: refs.outlineOffset,
|
5874
|
+
[vars$d.inputOutlineColor]: refs.outlineColor,
|
5875
|
+
[vars$d.inputOutlineStyle]: refs.outlineStyle,
|
5772
5876
|
|
5877
|
+
[vars$d.trackBorderStyle]: refs.borderStyle,
|
5878
|
+
[vars$d.trackBorderWidth]: refs.borderWidth, // var `trackBorderWidth` used outside the theme for `left` margin calculation
|
5879
|
+
[vars$d.trackBorderColor]: globalRefs$8.colors.surface.contrast,
|
5773
5880
|
[vars$d.trackBackgroundColor]: 'none',
|
5774
|
-
[vars$d.
|
5775
|
-
[vars$d.trackWidth]: '2.5em',
|
5881
|
+
[vars$d.trackBorderRadius]: globalRefs$8.radius.md,
|
5882
|
+
[vars$d.trackWidth]: '2.5em', // var `trackWidth` used outside the theme for `left` margin calculation
|
5776
5883
|
[vars$d.trackHeight]: checkboxHeight,
|
5777
5884
|
|
5778
5885
|
[vars$d.knobSize]: `calc(1em - ${knobMargin})`,
|
5779
5886
|
[vars$d.knobRadius]: '50%',
|
5780
5887
|
[vars$d.knobTopOffset]: '1px',
|
5781
|
-
[vars$d.
|
5782
|
-
[vars$d.
|
5783
|
-
[vars$d.
|
5888
|
+
[vars$d.knobLeftOffset]: knobMargin,
|
5889
|
+
[vars$d.knobColor]: refs.valueTextColor,
|
5890
|
+
[vars$d.knobTransitionDuration]: '0.3s',
|
5784
5891
|
|
5785
|
-
[vars$d.labelTextColor]:
|
5892
|
+
[vars$d.labelTextColor]: refs.labelTextColor,
|
5786
5893
|
[vars$d.labelFontWeight]: '400',
|
5787
5894
|
[vars$d.labelLineHeight]: `calc(${checkboxHeight} + 0.25em)`,
|
5788
|
-
[vars$d.
|
5895
|
+
[vars$d.labelSpacing]: '0.25em',
|
5896
|
+
[vars$d.labelRequiredIndicator]: refs.requiredIndicator,
|
5789
5897
|
|
5790
|
-
|
5791
|
-
[vars$d.width]: '100%',
|
5792
|
-
},
|
5898
|
+
[vars$d.hostWidth]: refs.width,
|
5793
5899
|
|
5794
5900
|
_checked: {
|
5795
|
-
[vars$d.trackBorderColor]: globalRefs$
|
5796
|
-
[vars$d.
|
5797
|
-
[vars$d.knobColor]: globalRefs$
|
5798
|
-
[vars$d.knobTextColor]:
|
5901
|
+
[vars$d.trackBorderColor]: globalRefs$8.colors.primary.main,
|
5902
|
+
[vars$d.knobLeftOffset]: `calc(100% - var(${vars$d.knobSize}) - ${knobMargin})`,
|
5903
|
+
[vars$d.knobColor]: globalRefs$8.colors.primary.main,
|
5904
|
+
[vars$d.knobTextColor]: refs.valueTextColor,
|
5799
5905
|
},
|
5800
5906
|
|
5801
5907
|
_disabled: {
|
5802
|
-
[vars$d.
|
5803
|
-
[vars$d.
|
5804
|
-
[vars$d.
|
5805
|
-
[vars$d.trackBackgroundColor]: globalRefs$9.colors.surface.light,
|
5806
|
-
},
|
5807
|
-
|
5808
|
-
_focused: {
|
5809
|
-
[vars$d.switchOutlineWidth]: '2px',
|
5810
|
-
[vars$d.switchOutlineOffset]: '1px',
|
5811
|
-
[vars$d.switchOutlineColor]: globalRefs$9.colors.primary.main,
|
5812
|
-
[vars$d.switchOutlineStyle]: 'solid'
|
5908
|
+
[vars$d.knobColor]: globalRefs$8.colors.surface.main,
|
5909
|
+
[vars$d.trackBorderColor]: globalRefs$8.colors.surface.main,
|
5910
|
+
[vars$d.trackBackgroundColor]: globalRefs$8.colors.surface.light,
|
5813
5911
|
},
|
5814
5912
|
|
5815
5913
|
_invalid: {
|
5816
|
-
[vars$d.
|
5817
|
-
[vars$d.
|
5818
|
-
[vars$d.knobColor]: globalRefs$9.colors.error.main,
|
5819
|
-
[vars$d.labelTextColor]: globalRefs$9.colors.error.main
|
5914
|
+
[vars$d.trackBorderColor]: globalRefs$8.colors.error.main,
|
5915
|
+
[vars$d.knobColor]: globalRefs$8.colors.error.main,
|
5820
5916
|
},
|
5821
5917
|
};
|
5822
5918
|
|
@@ -5826,119 +5922,106 @@ var switchToggle$1 = /*#__PURE__*/Object.freeze({
|
|
5826
5922
|
vars: vars$d
|
5827
5923
|
});
|
5828
5924
|
|
5829
|
-
const globalRefs$
|
5925
|
+
const globalRefs$7 = getThemeRefs(globals);
|
5830
5926
|
|
5831
5927
|
const compVars$1 = ContainerClass.cssVarList;
|
5832
5928
|
|
5833
5929
|
const verticalAlignment = {
|
5834
5930
|
start: { verticalAlignment: 'start' },
|
5835
|
-
center: { verticalAlignment: 'center' },
|
5931
|
+
center: { verticalAlignment: 'safe center' },
|
5836
5932
|
end: { verticalAlignment: 'end' },
|
5837
5933
|
};
|
5838
5934
|
|
5839
5935
|
const horizontalAlignment = {
|
5840
5936
|
start: { horizontalAlignment: 'start' },
|
5841
|
-
center: { horizontalAlignment: 'center' },
|
5937
|
+
center: { horizontalAlignment: 'safe center' },
|
5842
5938
|
end: { horizontalAlignment: 'end' },
|
5843
5939
|
};
|
5844
5940
|
|
5845
|
-
const [helperTheme$
|
5941
|
+
const [helperTheme$2, helperRefs$2, helperVars$1] =
|
5846
5942
|
createHelperVars({
|
5847
5943
|
verticalAlignment,
|
5848
5944
|
horizontalAlignment,
|
5849
5945
|
shadowColor: '#00000020' //if we want to support transparency vars, we should use different color format
|
5850
|
-
}, componentName$
|
5946
|
+
}, componentName$i);
|
5947
|
+
|
5948
|
+
const { shadowColor } = helperRefs$2;
|
5851
5949
|
|
5852
5950
|
const container = {
|
5853
|
-
...helperTheme$
|
5854
|
-
|
5951
|
+
...helperTheme$2,
|
5952
|
+
|
5953
|
+
[compVars$1.hostWidth]: '100%',
|
5855
5954
|
[compVars$1.boxShadow]: 'none',
|
5856
|
-
[compVars$1.backgroundColor]: globalRefs$
|
5857
|
-
[compVars$1.color]: globalRefs$
|
5955
|
+
[compVars$1.backgroundColor]: globalRefs$7.colors.surface.light,
|
5956
|
+
[compVars$1.color]: globalRefs$7.colors.surface.contrast,
|
5957
|
+
|
5858
5958
|
verticalPadding: {
|
5859
5959
|
sm: { [compVars$1.verticalPadding]: '5px' },
|
5860
5960
|
md: { [compVars$1.verticalPadding]: '10px' },
|
5861
5961
|
lg: { [compVars$1.verticalPadding]: '20px' },
|
5862
5962
|
},
|
5963
|
+
|
5863
5964
|
horizontalPadding: {
|
5864
5965
|
sm: { [compVars$1.horizontalPadding]: '5px' },
|
5865
5966
|
md: { [compVars$1.horizontalPadding]: '10px' },
|
5866
5967
|
lg: { [compVars$1.horizontalPadding]: '20px' },
|
5867
5968
|
},
|
5969
|
+
|
5868
5970
|
direction: {
|
5869
5971
|
row: {
|
5870
5972
|
[compVars$1.flexDirection]: 'row',
|
5871
|
-
[compVars$1.alignItems]: helperRefs$
|
5872
|
-
[compVars$1.justifyContent]: helperRefs$
|
5973
|
+
[compVars$1.alignItems]: helperRefs$2.verticalAlignment,
|
5974
|
+
[compVars$1.justifyContent]: helperRefs$2.horizontalAlignment,
|
5873
5975
|
[compVars$1.flexWrap]: 'wrap',
|
5874
5976
|
horizontalAlignment: {
|
5875
|
-
spaceBetween: {
|
5977
|
+
spaceBetween: {
|
5978
|
+
[helperVars$1.horizontalAlignment]: 'space-between'
|
5979
|
+
},
|
5876
5980
|
}
|
5877
5981
|
},
|
5878
|
-
|
5879
5982
|
column: {
|
5880
5983
|
[compVars$1.flexDirection]: 'column',
|
5881
|
-
[compVars$1.alignItems]: helperRefs$
|
5882
|
-
[compVars$1.justifyContent]: helperRefs$
|
5984
|
+
[compVars$1.alignItems]: helperRefs$2.horizontalAlignment,
|
5985
|
+
[compVars$1.justifyContent]: helperRefs$2.verticalAlignment,
|
5883
5986
|
verticalAlignment: {
|
5884
|
-
spaceBetween: {
|
5987
|
+
spaceBetween: {
|
5988
|
+
[helperVars$1.verticalAlignment]: 'space-between'
|
5989
|
+
}
|
5885
5990
|
}
|
5886
5991
|
},
|
5887
5992
|
},
|
5888
5993
|
|
5889
5994
|
spaceBetween: {
|
5890
|
-
sm: {
|
5891
|
-
|
5892
|
-
}
|
5893
|
-
md: {
|
5894
|
-
[compVars$1.gap]: '20px'
|
5895
|
-
},
|
5896
|
-
lg: {
|
5897
|
-
[compVars$1.gap]: '30px'
|
5898
|
-
}
|
5995
|
+
sm: { [compVars$1.gap]: '10px' },
|
5996
|
+
md: { [compVars$1.gap]: '20px' },
|
5997
|
+
lg: { [compVars$1.gap]: '30px' }
|
5899
5998
|
},
|
5900
5999
|
|
5901
6000
|
shadow: {
|
5902
|
-
sm: {
|
5903
|
-
|
5904
|
-
},
|
5905
|
-
|
5906
|
-
[compVars$1.boxShadow]: `${globalRefs$8.shadow.wide.md} ${helperRefs$1.shadowColor}, ${globalRefs$8.shadow.narrow.md} ${helperRefs$1.shadowColor}`
|
5907
|
-
},
|
5908
|
-
lg: {
|
5909
|
-
[compVars$1.boxShadow]: `${globalRefs$8.shadow.wide.lg} ${helperRefs$1.shadowColor}, ${globalRefs$8.shadow.narrow.lg} ${helperRefs$1.shadowColor}`
|
5910
|
-
},
|
5911
|
-
xl: {
|
5912
|
-
[compVars$1.boxShadow]: `${globalRefs$8.shadow.wide.xl} ${helperRefs$1.shadowColor}, ${globalRefs$8.shadow.narrow.xl} ${helperRefs$1.shadowColor}`
|
5913
|
-
},
|
6001
|
+
sm: { [compVars$1.boxShadow]: `${globalRefs$7.shadow.wide.sm} ${shadowColor}, ${globalRefs$7.shadow.narrow.sm} ${shadowColor}` },
|
6002
|
+
md: { [compVars$1.boxShadow]: `${globalRefs$7.shadow.wide.md} ${shadowColor}, ${globalRefs$7.shadow.narrow.md} ${shadowColor}` },
|
6003
|
+
lg: { [compVars$1.boxShadow]: `${globalRefs$7.shadow.wide.lg} ${shadowColor}, ${globalRefs$7.shadow.narrow.lg} ${shadowColor}` },
|
6004
|
+
xl: { [compVars$1.boxShadow]: `${globalRefs$7.shadow.wide.xl} ${shadowColor}, ${globalRefs$7.shadow.narrow.xl} ${shadowColor}` },
|
5914
6005
|
'2xl': {
|
5915
6006
|
[helperVars$1.shadowColor]: '#00000050', // mimic daisyUI shadow settings
|
5916
|
-
[compVars$1.boxShadow]: `${globalRefs$
|
6007
|
+
[compVars$1.boxShadow]: `${globalRefs$7.shadow.wide['2xl']} ${shadowColor}`
|
5917
6008
|
},
|
5918
6009
|
},
|
5919
6010
|
|
5920
6011
|
borderRadius: {
|
5921
|
-
sm: {
|
5922
|
-
|
5923
|
-
},
|
5924
|
-
|
5925
|
-
|
5926
|
-
},
|
5927
|
-
lg: {
|
5928
|
-
[compVars$1.borderRadius]: globalRefs$8.radius.lg
|
5929
|
-
},
|
5930
|
-
xl: {
|
5931
|
-
[compVars$1.borderRadius]: globalRefs$8.radius.xl
|
5932
|
-
},
|
5933
|
-
'2xl': {
|
5934
|
-
[compVars$1.borderRadius]: globalRefs$8.radius['2xl']
|
5935
|
-
},
|
5936
|
-
'3xl': {
|
5937
|
-
[compVars$1.borderRadius]: globalRefs$8.radius['3xl']
|
5938
|
-
},
|
6012
|
+
sm: { [compVars$1.borderRadius]: globalRefs$7.radius.sm },
|
6013
|
+
md: { [compVars$1.borderRadius]: globalRefs$7.radius.md },
|
6014
|
+
lg: { [compVars$1.borderRadius]: globalRefs$7.radius.lg },
|
6015
|
+
xl: { [compVars$1.borderRadius]: globalRefs$7.radius.xl },
|
6016
|
+
'2xl': { [compVars$1.borderRadius]: globalRefs$7.radius['2xl'] },
|
6017
|
+
'3xl': { [compVars$1.borderRadius]: globalRefs$7.radius['3xl'] },
|
5939
6018
|
}
|
5940
6019
|
};
|
5941
|
-
|
6020
|
+
|
6021
|
+
const vars$c = {
|
6022
|
+
...compVars$1,
|
6023
|
+
...helperVars$1
|
6024
|
+
};
|
5942
6025
|
|
5943
6026
|
var container$1 = /*#__PURE__*/Object.freeze({
|
5944
6027
|
__proto__: null,
|
@@ -5958,79 +6041,84 @@ var logo$1 = /*#__PURE__*/Object.freeze({
|
|
5958
6041
|
vars: vars$b
|
5959
6042
|
});
|
5960
6043
|
|
5961
|
-
const globalRefs$
|
5962
|
-
|
6044
|
+
const globalRefs$6 = getThemeRefs(globals);
|
5963
6045
|
const vars$a = TextClass.cssVarList;
|
5964
6046
|
|
5965
6047
|
const text = {
|
5966
|
-
[vars$a.
|
6048
|
+
[vars$a.textLineHeight]: '1em',
|
5967
6049
|
[vars$a.textAlign]: 'left',
|
5968
|
-
[vars$a.
|
6050
|
+
[vars$a.textColor]: globalRefs$6.colors.surface.dark,
|
5969
6051
|
variant: {
|
5970
6052
|
h1: {
|
5971
|
-
[vars$a.fontSize]: globalRefs$
|
5972
|
-
[vars$a.fontWeight]: globalRefs$
|
5973
|
-
[vars$a.fontFamily]: globalRefs$
|
6053
|
+
[vars$a.fontSize]: globalRefs$6.typography.h1.size,
|
6054
|
+
[vars$a.fontWeight]: globalRefs$6.typography.h1.weight,
|
6055
|
+
[vars$a.fontFamily]: globalRefs$6.typography.h1.font
|
5974
6056
|
},
|
5975
6057
|
h2: {
|
5976
|
-
[vars$a.fontSize]: globalRefs$
|
5977
|
-
[vars$a.fontWeight]: globalRefs$
|
5978
|
-
[vars$a.fontFamily]: globalRefs$
|
6058
|
+
[vars$a.fontSize]: globalRefs$6.typography.h2.size,
|
6059
|
+
[vars$a.fontWeight]: globalRefs$6.typography.h2.weight,
|
6060
|
+
[vars$a.fontFamily]: globalRefs$6.typography.h2.font
|
5979
6061
|
},
|
5980
6062
|
h3: {
|
5981
|
-
[vars$a.fontSize]: globalRefs$
|
5982
|
-
[vars$a.fontWeight]: globalRefs$
|
5983
|
-
[vars$a.fontFamily]: globalRefs$
|
6063
|
+
[vars$a.fontSize]: globalRefs$6.typography.h3.size,
|
6064
|
+
[vars$a.fontWeight]: globalRefs$6.typography.h3.weight,
|
6065
|
+
[vars$a.fontFamily]: globalRefs$6.typography.h3.font
|
5984
6066
|
},
|
5985
6067
|
subtitle1: {
|
5986
|
-
[vars$a.fontSize]: globalRefs$
|
5987
|
-
[vars$a.fontWeight]: globalRefs$
|
5988
|
-
[vars$a.fontFamily]: globalRefs$
|
6068
|
+
[vars$a.fontSize]: globalRefs$6.typography.subtitle1.size,
|
6069
|
+
[vars$a.fontWeight]: globalRefs$6.typography.subtitle1.weight,
|
6070
|
+
[vars$a.fontFamily]: globalRefs$6.typography.subtitle1.font
|
5989
6071
|
},
|
5990
6072
|
subtitle2: {
|
5991
|
-
[vars$a.fontSize]: globalRefs$
|
5992
|
-
[vars$a.fontWeight]: globalRefs$
|
5993
|
-
[vars$a.fontFamily]: globalRefs$
|
6073
|
+
[vars$a.fontSize]: globalRefs$6.typography.subtitle2.size,
|
6074
|
+
[vars$a.fontWeight]: globalRefs$6.typography.subtitle2.weight,
|
6075
|
+
[vars$a.fontFamily]: globalRefs$6.typography.subtitle2.font
|
5994
6076
|
},
|
5995
6077
|
body1: {
|
5996
|
-
[vars$a.fontSize]: globalRefs$
|
5997
|
-
[vars$a.fontWeight]: globalRefs$
|
5998
|
-
[vars$a.fontFamily]: globalRefs$
|
6078
|
+
[vars$a.fontSize]: globalRefs$6.typography.body1.size,
|
6079
|
+
[vars$a.fontWeight]: globalRefs$6.typography.body1.weight,
|
6080
|
+
[vars$a.fontFamily]: globalRefs$6.typography.body1.font
|
5999
6081
|
},
|
6000
6082
|
body2: {
|
6001
|
-
[vars$a.fontSize]: globalRefs$
|
6002
|
-
[vars$a.fontWeight]: globalRefs$
|
6003
|
-
[vars$a.fontFamily]: globalRefs$
|
6083
|
+
[vars$a.fontSize]: globalRefs$6.typography.body2.size,
|
6084
|
+
[vars$a.fontWeight]: globalRefs$6.typography.body2.weight,
|
6085
|
+
[vars$a.fontFamily]: globalRefs$6.typography.body2.font
|
6004
6086
|
}
|
6005
6087
|
},
|
6088
|
+
|
6006
6089
|
mode: {
|
6007
6090
|
primary: {
|
6008
|
-
[vars$a.
|
6091
|
+
[vars$a.textColor]: globalRefs$6.colors.primary.main
|
6009
6092
|
},
|
6010
6093
|
secondary: {
|
6011
|
-
[vars$a.
|
6094
|
+
[vars$a.textColor]: globalRefs$6.colors.secondary.main
|
6012
6095
|
},
|
6013
6096
|
error: {
|
6014
|
-
[vars$a.
|
6097
|
+
[vars$a.textColor]: globalRefs$6.colors.error.main
|
6015
6098
|
},
|
6016
6099
|
success: {
|
6017
|
-
[vars$a.
|
6100
|
+
[vars$a.textColor]: globalRefs$6.colors.success.main
|
6018
6101
|
}
|
6019
6102
|
},
|
6103
|
+
|
6020
6104
|
textAlign: {
|
6021
6105
|
right: { [vars$a.textAlign]: 'right' },
|
6022
6106
|
left: { [vars$a.textAlign]: 'left' },
|
6023
6107
|
center: { [vars$a.textAlign]: 'center' }
|
6024
6108
|
},
|
6109
|
+
|
6025
6110
|
_fullWidth: {
|
6026
|
-
[vars$a.
|
6111
|
+
[vars$a.hostWidth]: '100%',
|
6027
6112
|
},
|
6113
|
+
|
6028
6114
|
_italic: {
|
6029
6115
|
[vars$a.fontStyle]: 'italic'
|
6030
6116
|
},
|
6117
|
+
|
6031
6118
|
_uppercase: {
|
6032
6119
|
[vars$a.textTransform]: 'uppercase'
|
6033
6120
|
},
|
6121
|
+
|
6034
6122
|
_lowercase: {
|
6035
6123
|
[vars$a.textTransform]: 'lowercase'
|
6036
6124
|
}
|
@@ -6042,18 +6130,19 @@ var text$1 = /*#__PURE__*/Object.freeze({
|
|
6042
6130
|
vars: vars$a
|
6043
6131
|
});
|
6044
6132
|
|
6045
|
-
const globalRefs$
|
6133
|
+
const globalRefs$5 = getThemeRefs(globals);
|
6046
6134
|
const vars$9 = LinkClass.cssVarList;
|
6047
6135
|
|
6048
6136
|
const link = {
|
6049
6137
|
[vars$9.cursor]: 'pointer',
|
6050
|
-
|
6051
|
-
[vars$9.
|
6052
|
-
[vars$9.
|
6053
|
-
[vars$9.
|
6138
|
+
|
6139
|
+
[vars$9.textUnderlineWidth]: '2px',
|
6140
|
+
[vars$9.textUnderlineStyle]: 'solid',
|
6141
|
+
[vars$9.textUnderlineColor]: 'transparent',
|
6142
|
+
[vars$9.textColor]: globalRefs$5.colors.primary.main,
|
6054
6143
|
|
6055
6144
|
_hover: {
|
6056
|
-
[vars$9.
|
6145
|
+
[vars$9.textUnderlineColor]: globalRefs$5.colors.primary.main
|
6057
6146
|
},
|
6058
6147
|
|
6059
6148
|
textAlign: {
|
@@ -6063,33 +6152,25 @@ const link = {
|
|
6063
6152
|
},
|
6064
6153
|
|
6065
6154
|
_fullWidth: {
|
6066
|
-
[vars$9.
|
6155
|
+
[vars$9.hostWidth]: '100%'
|
6156
|
+
},
|
6157
|
+
|
6158
|
+
_hover: {
|
6159
|
+
[vars$9.textUnderlineColor]: 'currentColor'
|
6067
6160
|
},
|
6068
6161
|
|
6069
6162
|
mode: {
|
6070
6163
|
primary: {
|
6071
|
-
[vars$9.
|
6072
|
-
_hover: {
|
6073
|
-
[vars$9.borderBottomColor]: globalRefs$6.colors.primary.main
|
6074
|
-
}
|
6164
|
+
[vars$9.textColor]: globalRefs$5.colors.primary.main,
|
6075
6165
|
},
|
6076
6166
|
secondary: {
|
6077
|
-
[vars$9.
|
6078
|
-
_hover: {
|
6079
|
-
[vars$9.borderBottomColor]: globalRefs$6.colors.secondary.main
|
6080
|
-
}
|
6167
|
+
[vars$9.textColor]: globalRefs$5.colors.secondary.main,
|
6081
6168
|
},
|
6082
6169
|
error: {
|
6083
|
-
[vars$9.
|
6084
|
-
_hover: {
|
6085
|
-
[vars$9.borderBottomColor]: globalRefs$6.colors.error.main
|
6086
|
-
}
|
6170
|
+
[vars$9.textColor]: globalRefs$5.colors.error.main,
|
6087
6171
|
},
|
6088
6172
|
success: {
|
6089
|
-
[vars$9.
|
6090
|
-
_hover: {
|
6091
|
-
[vars$9.borderBottomColor]: globalRefs$6.colors.success.main
|
6092
|
-
}
|
6173
|
+
[vars$9.textColor]: globalRefs$5.colors.success.main,
|
6093
6174
|
}
|
6094
6175
|
}
|
6095
6176
|
};
|
@@ -6100,37 +6181,48 @@ var link$1 = /*#__PURE__*/Object.freeze({
|
|
6100
6181
|
vars: vars$9
|
6101
6182
|
});
|
6102
6183
|
|
6103
|
-
const globalRefs$
|
6104
|
-
|
6184
|
+
const globalRefs$4 = getThemeRefs(globals);
|
6105
6185
|
const compVars = DividerClass.cssVarList;
|
6106
6186
|
|
6107
|
-
const
|
6108
|
-
|
6109
|
-
|
6187
|
+
const [
|
6188
|
+
helperTheme$1,
|
6189
|
+
helperRefs$1,
|
6190
|
+
helperVars
|
6191
|
+
] = createHelperVars({
|
6192
|
+
thickness: '2px',
|
6193
|
+
spacing: '10px'
|
6194
|
+
}, componentName$h);
|
6110
6195
|
|
6111
6196
|
const divider = {
|
6112
|
-
...helperTheme,
|
6197
|
+
...helperTheme$1,
|
6198
|
+
|
6113
6199
|
[compVars.alignItems]: 'center',
|
6114
|
-
[compVars.dividerHeight]: helperRefs.thickness,
|
6115
|
-
[compVars.backgroundColor]: globalRefs$5.colors.surface.main,
|
6116
|
-
[compVars.textPadding]: `0 ${helperRefs.textPaddingSize}`,
|
6117
|
-
[compVars.width]: '100%',
|
6118
6200
|
[compVars.flexDirection]: 'row',
|
6119
|
-
[compVars.alignSelf]: '
|
6120
|
-
[compVars.
|
6121
|
-
[compVars.
|
6201
|
+
[compVars.alignSelf]: 'stretch',
|
6202
|
+
[compVars.hostWidth]: '100%',
|
6203
|
+
[compVars.stripeColor]: globalRefs$4.colors.surface.main,
|
6204
|
+
[compVars.stripeColorOpacity]: '0.5',
|
6205
|
+
[compVars.stripeHorizontalThickness]: helperRefs$1.thickness,
|
6206
|
+
[compVars.labelTextWidth]: 'fit-content',
|
6207
|
+
[compVars.labelTextMaxWidth]: 'calc(100% - 100px)',
|
6208
|
+
[compVars.labelTextHorizontalSpacing]: helperRefs$1.spacing,
|
6209
|
+
|
6122
6210
|
_vertical: {
|
6123
|
-
[compVars.padding]: `0 calc(${thickness} * 3)`,
|
6124
|
-
[compVars.width]: 'fit-content',
|
6125
|
-
[compVars.textPadding]: `${helperRefs.textPaddingSize} 0`,
|
6126
|
-
[compVars.flexDirection]: 'column',
|
6127
6211
|
[compVars.minHeight]: '200px',
|
6128
|
-
[compVars.
|
6129
|
-
[compVars.
|
6130
|
-
[compVars.
|
6212
|
+
[compVars.flexDirection]: 'column',
|
6213
|
+
[compVars.hostWidth]: 'fit-content',
|
6214
|
+
[compVars.hostPadding]: `0 calc(${helperRefs$1.thickness} * 3)`,
|
6215
|
+
[compVars.stripeVerticalThickness]: helperRefs$1.thickness,
|
6216
|
+
[compVars.labelTextWidth]: 'fit-content',
|
6217
|
+
[compVars.labelTextMaxWidth]: '100%',
|
6218
|
+
[compVars.labelTextVerticalSpacing]: helperRefs$1.spacing,
|
6131
6219
|
}
|
6132
6220
|
};
|
6133
|
-
|
6221
|
+
|
6222
|
+
const vars$8 = {
|
6223
|
+
...compVars,
|
6224
|
+
...helperVars
|
6225
|
+
};
|
6134
6226
|
|
6135
6227
|
var divider$1 = /*#__PURE__*/Object.freeze({
|
6136
6228
|
__proto__: null,
|
@@ -6138,41 +6230,29 @@ var divider$1 = /*#__PURE__*/Object.freeze({
|
|
6138
6230
|
vars: vars$8
|
6139
6231
|
});
|
6140
6232
|
|
6233
|
+
const globalRefs$3 = getThemeRefs(globals);
|
6141
6234
|
const vars$7 = PasscodeClass.cssVarList;
|
6142
|
-
const globalRefs$4 = getThemeRefs(globals);
|
6143
6235
|
|
6144
6236
|
const passcode = {
|
6145
|
-
[vars$7.
|
6146
|
-
[vars$7.
|
6147
|
-
[vars$7.
|
6148
|
-
[vars$7.
|
6149
|
-
[vars$7.
|
6150
|
-
[vars$7.
|
6151
|
-
[vars$7.
|
6152
|
-
[vars$7.
|
6153
|
-
[vars$7.
|
6237
|
+
[vars$7.fontFamily]: refs.fontFamily,
|
6238
|
+
[vars$7.labelTextColor]: refs.labelTextColor,
|
6239
|
+
[vars$7.labelRequiredIndicator]: refs.requiredIndicator,
|
6240
|
+
[vars$7.digitValueTextColor]: refs.valueTextColor,
|
6241
|
+
[vars$7.digitPadding]: '0',
|
6242
|
+
[vars$7.digitTextAlign]: 'center',
|
6243
|
+
[vars$7.digitSpacing]: '0',
|
6244
|
+
[vars$7.hostWidth]: refs.width,
|
6245
|
+
[vars$7.digitOutlineColor]: 'transparent',
|
6246
|
+
[vars$7.digitOutlineWidth]: '2px',
|
6247
|
+
[vars$7.focusedDigitFieldOutlineColor]: globalRefs$3.colors.surface.main,
|
6154
6248
|
|
6155
6249
|
_hideCursor: {
|
6156
|
-
[vars$7.
|
6157
|
-
},
|
6158
|
-
|
6159
|
-
_disabled: {
|
6160
|
-
[vars$7.backgroundColor]: globalRefs$4.colors.surface.main
|
6161
|
-
},
|
6162
|
-
|
6163
|
-
_fullWidth: {
|
6164
|
-
[vars$7.width]: '100%'
|
6165
|
-
},
|
6166
|
-
|
6167
|
-
_bordered: {
|
6168
|
-
[vars$7.borderColor]: globalRefs$4.colors.surface.main
|
6250
|
+
[vars$7.digitCaretTextColor]: 'transparent',
|
6169
6251
|
},
|
6170
6252
|
|
6171
6253
|
_invalid: {
|
6172
|
-
[vars$7.
|
6173
|
-
|
6174
|
-
[vars$7.focusedDigitFieldOutlineColor]: globalRefs$4.colors.error.light,
|
6175
|
-
},
|
6254
|
+
[vars$7.focusedDigitFieldOutlineColor]: globalRefs$3.colors.error.light,
|
6255
|
+
}
|
6176
6256
|
};
|
6177
6257
|
|
6178
6258
|
var passcode$1 = /*#__PURE__*/Object.freeze({
|
@@ -6181,47 +6261,42 @@ var passcode$1 = /*#__PURE__*/Object.freeze({
|
|
6181
6261
|
vars: vars$7
|
6182
6262
|
});
|
6183
6263
|
|
6184
|
-
const globalRefs$
|
6185
|
-
|
6264
|
+
const globalRefs$2 = getThemeRefs(globals);
|
6186
6265
|
const vars$6 = LoaderLinearClass.cssVarList;
|
6187
6266
|
|
6188
6267
|
const loaderLinear = {
|
6189
|
-
[vars$6.
|
6190
|
-
[vars$6.
|
6268
|
+
[vars$6.hostDisplay]: 'inline-block',
|
6269
|
+
[vars$6.hostWidth]: '100%',
|
6270
|
+
|
6271
|
+
[vars$6.barColor]: globalRefs$2.colors.surface.contrast,
|
6191
6272
|
[vars$6.barWidth]: '20%',
|
6192
|
-
|
6193
|
-
[vars$6.
|
6273
|
+
|
6274
|
+
[vars$6.barBackgroundColor]: globalRefs$2.colors.surface.main,
|
6275
|
+
[vars$6.barBorderRadius]: '4px',
|
6276
|
+
|
6194
6277
|
[vars$6.animationDuration]: '2s',
|
6195
6278
|
[vars$6.animationTimingFunction]: 'linear',
|
6196
6279
|
[vars$6.animationIterationCount]: 'infinite',
|
6197
|
-
|
6280
|
+
|
6198
6281
|
size: {
|
6199
|
-
xs: {
|
6200
|
-
|
6201
|
-
},
|
6202
|
-
|
6203
|
-
|
6204
|
-
},
|
6205
|
-
md: {
|
6206
|
-
[vars$6.height]: '10px'
|
6207
|
-
},
|
6208
|
-
lg: {
|
6209
|
-
[vars$6.height]: '12px'
|
6210
|
-
},
|
6211
|
-
xl: {
|
6212
|
-
[vars$6.height]: '14px'
|
6213
|
-
}
|
6282
|
+
xs: { [vars$6.barHeight]: '8px' },
|
6283
|
+
sm: { [vars$6.barHeight]: '10px' },
|
6284
|
+
md: { [vars$6.barHeight]: '14px' },
|
6285
|
+
lg: { [vars$6.barHeight]: '20px' },
|
6286
|
+
xl: { [vars$6.barHeight]: '25px' }
|
6214
6287
|
},
|
6288
|
+
|
6215
6289
|
mode: {
|
6216
6290
|
primary: {
|
6217
|
-
[vars$6.barColor]: globalRefs$
|
6291
|
+
[vars$6.barColor]: globalRefs$2.colors.primary.main
|
6218
6292
|
},
|
6219
6293
|
secondary: {
|
6220
|
-
[vars$6.barColor]: globalRefs$
|
6294
|
+
[vars$6.barColor]: globalRefs$2.colors.secondary.main
|
6221
6295
|
}
|
6222
6296
|
},
|
6297
|
+
|
6223
6298
|
_hidden: {
|
6224
|
-
[vars$6.
|
6299
|
+
[vars$6.hostDisplay]: 'none'
|
6225
6300
|
}
|
6226
6301
|
};
|
6227
6302
|
|
@@ -6231,60 +6306,45 @@ var loaderLinear$1 = /*#__PURE__*/Object.freeze({
|
|
6231
6306
|
vars: vars$6
|
6232
6307
|
});
|
6233
6308
|
|
6234
|
-
const globalRefs$
|
6235
|
-
|
6309
|
+
const globalRefs$1 = getThemeRefs(globals);
|
6236
6310
|
const vars$5 = LoaderRadialClass.cssVarList;
|
6237
6311
|
|
6238
|
-
const
|
6239
|
-
|
6240
|
-
[vars$5.color]: globalRefs$2.colors.surface.contrast,
|
6241
|
-
[vars$5.animationDuration]: '2s',
|
6242
|
-
[vars$5.animationTimingFunction]: 'linear',
|
6243
|
-
[vars$5.animationIterationCount]: 'infinite',
|
6244
|
-
[vars$5.spinnerStyle]: 'solid',
|
6245
|
-
[vars$5.spinnerWidth]: '4px',
|
6246
|
-
[vars$5.spinnerRadius]: '50%',
|
6247
|
-
[vars$5.spinnerTopColor]: 'currentColor',
|
6248
|
-
[vars$5.spinnerBottomColor]: 'transparent',
|
6249
|
-
[vars$5.spinnerRightColor]: 'currentColor',
|
6250
|
-
[vars$5.spinnerLeftColor]: 'transparent',
|
6251
|
-
size: {
|
6252
|
-
xs: {
|
6253
|
-
[vars$5.width]: '20px',
|
6254
|
-
[vars$5.height]: '20px',
|
6255
|
-
[vars$5.spinnerWidth]: '2px'
|
6256
|
-
},
|
6257
|
-
sm: {
|
6258
|
-
[vars$5.width]: '30px',
|
6259
|
-
[vars$5.height]: '30px',
|
6260
|
-
[vars$5.spinnerWidth]: '3px'
|
6261
|
-
},
|
6262
|
-
md: {
|
6263
|
-
[vars$5.width]: '40px',
|
6264
|
-
[vars$5.height]: '40px',
|
6265
|
-
[vars$5.spinnerWidth]: '4px'
|
6266
|
-
},
|
6267
|
-
lg: {
|
6268
|
-
[vars$5.width]: '60px',
|
6269
|
-
[vars$5.height]: '60px',
|
6270
|
-
[vars$5.spinnerWidth]: '5px'
|
6271
|
-
},
|
6272
|
-
xl: {
|
6273
|
-
[vars$5.width]: '80px',
|
6274
|
-
[vars$5.height]: '80px',
|
6275
|
-
[vars$5.spinnerWidth]: '6px'
|
6276
|
-
}
|
6277
|
-
},
|
6312
|
+
const [helperTheme, helperRefs] = createHelperVars({
|
6313
|
+
spinnerColor: globalRefs$1.colors.surface.contrast,
|
6278
6314
|
mode: {
|
6279
6315
|
primary: {
|
6280
|
-
|
6316
|
+
spinnerColor: globalRefs$1.colors.primary.main
|
6281
6317
|
},
|
6282
6318
|
secondary: {
|
6283
|
-
|
6319
|
+
spinnerColor: globalRefs$1.colors.secondary.main
|
6284
6320
|
}
|
6321
|
+
}
|
6322
|
+
}, componentName$j);
|
6323
|
+
|
6324
|
+
const loaderRadial = {
|
6325
|
+
...helperTheme,
|
6326
|
+
|
6327
|
+
[vars$5.animationDuration]: '2s',
|
6328
|
+
[vars$5.animationTimingFunction]: 'linear',
|
6329
|
+
[vars$5.animationIterationCount]: 'infinite',
|
6330
|
+
[vars$5.spinnerBorderStyle]: 'solid',
|
6331
|
+
[vars$5.spinnerBorderWidth]: '0.2em',
|
6332
|
+
[vars$5.spinnerBorderRadius]: '50%',
|
6333
|
+
[vars$5.spinnerQuadrant1Color]: helperRefs.spinnerColor,
|
6334
|
+
[vars$5.spinnerQuadrant2Color]: 'transparent',
|
6335
|
+
[vars$5.spinnerQuadrant3Color]: helperRefs.spinnerColor,
|
6336
|
+
[vars$5.spinnerQuadrant4Color]: 'transparent',
|
6337
|
+
|
6338
|
+
size: {
|
6339
|
+
xs: { [vars$5.spinnerSize]: '20px' },
|
6340
|
+
sm: { [vars$5.spinnerSize]: '30px' },
|
6341
|
+
md: { [vars$5.spinnerSize]: '40px' },
|
6342
|
+
lg: { [vars$5.spinnerSize]: '60px' },
|
6343
|
+
xl: { [vars$5.spinnerSize]: '80px' }
|
6285
6344
|
},
|
6345
|
+
|
6286
6346
|
_hidden: {
|
6287
|
-
[vars$5.
|
6347
|
+
[vars$5.hostDisplay]: 'none'
|
6288
6348
|
}
|
6289
6349
|
};
|
6290
6350
|
|
@@ -6294,51 +6354,38 @@ var loaderRadial$1 = /*#__PURE__*/Object.freeze({
|
|
6294
6354
|
vars: vars$5
|
6295
6355
|
});
|
6296
6356
|
|
6297
|
-
const globalRefs
|
6298
|
-
|
6357
|
+
const globalRefs = getThemeRefs(globals);
|
6299
6358
|
const vars$4 = ComboBoxClass.cssVarList;
|
6300
6359
|
|
6301
6360
|
const comboBox = {
|
6302
|
-
[vars$4.
|
6303
|
-
[vars$4.
|
6304
|
-
[vars$4.
|
6305
|
-
[vars$4.
|
6306
|
-
[vars$4.
|
6307
|
-
[vars$4.
|
6308
|
-
[vars$4.
|
6309
|
-
[vars$4.
|
6310
|
-
[vars$4.
|
6311
|
-
[vars$4.
|
6312
|
-
|
6313
|
-
[vars$4.
|
6314
|
-
|
6315
|
-
|
6316
|
-
|
6317
|
-
|
6318
|
-
|
6319
|
-
|
6320
|
-
|
6321
|
-
},
|
6322
|
-
md: {
|
6323
|
-
[vars$4.fontSize]: '14px',
|
6324
|
-
},
|
6325
|
-
lg: {
|
6326
|
-
[vars$4.fontSize]: '20px',
|
6327
|
-
},
|
6328
|
-
xl: {
|
6329
|
-
[vars$4.fontSize]: '25px',
|
6330
|
-
}
|
6331
|
-
},
|
6361
|
+
[vars$4.hostWidth]: refs.width,
|
6362
|
+
[vars$4.fontSize]: refs.fontSize,
|
6363
|
+
[vars$4.fontFamily]: refs.fontFamily,
|
6364
|
+
[vars$4.labelTextColor]: refs.labelTextColor,
|
6365
|
+
[vars$4.inputBorderColor]: refs.borderColor,
|
6366
|
+
[vars$4.inputBorderWidth]: refs.borderWidth,
|
6367
|
+
[vars$4.inputBorderStyle]: refs.borderStyle,
|
6368
|
+
[vars$4.inputBorderRadius]: refs.borderRadius,
|
6369
|
+
[vars$4.inputOutlineColor]: refs.outlineColor,
|
6370
|
+
[vars$4.inputOutlineOffset]: refs.outlineOffset,
|
6371
|
+
[vars$4.inputOutlineWidth]: refs.outlineWidth,
|
6372
|
+
[vars$4.inputOutlineStyle]: refs.outlineStyle,
|
6373
|
+
[vars$4.labelRequiredIndicator]: refs.requiredIndicator,
|
6374
|
+
[vars$4.inputValueTextColor]: refs.valueTextColor,
|
6375
|
+
[vars$4.inputPlaceholderTextColor]: refs.placeholderTextColor,
|
6376
|
+
[vars$4.inputBackgroundColor]: refs.backgroundColor,
|
6377
|
+
[vars$4.inputHeight]: refs.inputHeight,
|
6378
|
+
[vars$4.inputDropdownButtonColor]: globalRefs.colors.surface.contrast,
|
6379
|
+
[vars$4.inputDropdownButtonCursor]: 'pointer',
|
6332
6380
|
|
6333
6381
|
_readonly: {
|
6334
|
-
[vars$4.
|
6382
|
+
[vars$4.inputDropdownButtonCursor]: 'default'
|
6335
6383
|
},
|
6336
6384
|
|
6337
6385
|
_invalid: {
|
6338
|
-
[vars$4.
|
6339
|
-
[vars$4.placeholderColor]: globalRefs$1.colors.error.light,
|
6340
|
-
[vars$4.toggleColor]: globalRefs$1.colors.error.main,
|
6386
|
+
[vars$4.inputDropdownButtonColor]: globalRefs.colors.error.main
|
6341
6387
|
},
|
6388
|
+
|
6342
6389
|
// [vars.overlayCursor]: 'pointer',
|
6343
6390
|
// [vars.overlayBackground]: globalRefs.colors.surface.light,
|
6344
6391
|
// [vars.overlayBorder]: `2px solid red`,
|
@@ -6361,65 +6408,28 @@ var image$1 = /*#__PURE__*/Object.freeze({
|
|
6361
6408
|
vars: vars$3
|
6362
6409
|
});
|
6363
6410
|
|
6364
|
-
const globalRefs = getThemeRefs(globals);
|
6365
6411
|
const vars$2 = PhoneFieldClass.cssVarList;
|
6366
6412
|
|
6367
6413
|
const phoneField = {
|
6368
|
-
[vars$2.
|
6369
|
-
[vars$2.
|
6370
|
-
[vars$2.
|
6371
|
-
[vars$2.
|
6372
|
-
[vars$2.
|
6373
|
-
[vars$2.
|
6374
|
-
|
6414
|
+
[vars$2.hostWidth]: refs.width,
|
6415
|
+
[vars$2.fontSize]: refs.fontSize,
|
6416
|
+
[vars$2.fontFamily]: refs.fontFamily,
|
6417
|
+
[vars$2.labelTextColor]: refs.labelTextColor,
|
6418
|
+
[vars$2.labelRequiredIndicator]: refs.requiredIndicator,
|
6419
|
+
[vars$2.inputValueTextColor]: refs.valueTextColor,
|
6420
|
+
[vars$2.inputPlaceholderTextColor]: refs.placeholderTextColor,
|
6421
|
+
[vars$2.inputBorderStyle]: refs.borderStyle,
|
6422
|
+
[vars$2.inputBorderWidth]: refs.borderWidth,
|
6423
|
+
[vars$2.inputBorderColor]: refs.borderColor,
|
6424
|
+
[vars$2.inputBorderRadius]: refs.borderRadius,
|
6425
|
+
[vars$2.inputOutlineStyle]: refs.outlineStyle,
|
6426
|
+
[vars$2.inputOutlineWidth]: refs.outlineWidth,
|
6427
|
+
[vars$2.inputOutlineColor]: refs.outlineColor,
|
6428
|
+
[vars$2.inputOutlineOffset]: refs.outlineOffset,
|
6429
|
+
[vars$2.inputHeight]: refs.inputHeight,
|
6375
6430
|
[vars$2.phoneInputWidth]: '10em',
|
6376
6431
|
[vars$2.countryCodeInputWidth]: '5em',
|
6377
|
-
|
6378
|
-
[vars$2.inputHeight]: '2em',
|
6379
|
-
[vars$2.countryCodeDropdownWidth]: '12em',
|
6380
|
-
|
6381
|
-
size: {
|
6382
|
-
xs: {
|
6383
|
-
[vars$2.fontSize]: '8px',
|
6384
|
-
},
|
6385
|
-
sm: {
|
6386
|
-
[vars$2.fontSize]: '20px',
|
6387
|
-
},
|
6388
|
-
md: {
|
6389
|
-
[vars$2.fontSize]: '14px',
|
6390
|
-
},
|
6391
|
-
lg: {
|
6392
|
-
[vars$2.fontSize]: '20px',
|
6393
|
-
},
|
6394
|
-
xl: {
|
6395
|
-
[vars$2.fontSize]: '25px',
|
6396
|
-
}
|
6397
|
-
},
|
6398
|
-
|
6399
|
-
_fullWidth: {
|
6400
|
-
[vars$2.componentWidth]: '100%',
|
6401
|
-
[vars$2.phoneInputWidth]: '100%',
|
6402
|
-
[vars$2.countryCodeDropdownWidth]: '100%',
|
6403
|
-
},
|
6404
|
-
|
6405
|
-
_bordered: {
|
6406
|
-
[vars$2.wrapperBorderColor]: globalRefs.colors.surface.main
|
6407
|
-
},
|
6408
|
-
|
6409
|
-
[vars$2.outlineStyle]: 'solid',
|
6410
|
-
[vars$2.outlineWidth]: '0.1em',
|
6411
|
-
[vars$2.outlineColor]: 'transparent',
|
6412
|
-
|
6413
|
-
_focused: {
|
6414
|
-
[vars$2.outlineColor]: globalRefs.colors.surface.main
|
6415
|
-
},
|
6416
|
-
|
6417
|
-
_invalid: {
|
6418
|
-
[vars$2.outlineColor]: globalRefs.colors.error.light,
|
6419
|
-
[vars$2.color]: globalRefs.colors.error.main,
|
6420
|
-
[vars$2.placeholderColor]: globalRefs.colors.error.light,
|
6421
|
-
[vars$2.wrapperBorderColor]: globalRefs.colors.error.main
|
6422
|
-
},
|
6432
|
+
[vars$2.countryCodeDropdownWidth]: '20em',
|
6423
6433
|
|
6424
6434
|
// '@overlay': {
|
6425
6435
|
// overlayItemBackgroundColor: 'red'
|
@@ -6435,33 +6445,17 @@ var phoneField$1 = /*#__PURE__*/Object.freeze({
|
|
6435
6445
|
const vars$1 = NewPasswordClass.cssVarList;
|
6436
6446
|
|
6437
6447
|
const newPassword = {
|
6438
|
-
[vars$1.
|
6448
|
+
[vars$1.hostWidth]: refs.width,
|
6449
|
+
[vars$1.fontSize]: refs.fontSize,
|
6450
|
+
[vars$1.fontFamily]: refs.fontFamily,
|
6451
|
+
[vars$1.spaceBetweenInputs]: '1em',
|
6439
6452
|
|
6440
6453
|
_required: {
|
6441
|
-
|
6442
|
-
|
6443
|
-
|
6444
|
-
|
6445
|
-
|
6446
|
-
},
|
6447
|
-
|
6448
|
-
size: {
|
6449
|
-
xs: {
|
6450
|
-
[vars$1.fontSize]: '8px',
|
6451
|
-
},
|
6452
|
-
sm: {
|
6453
|
-
[vars$1.fontSize]: '10px',
|
6454
|
-
},
|
6455
|
-
md: {
|
6456
|
-
[vars$1.fontSize]: '14px',
|
6457
|
-
},
|
6458
|
-
lg: {
|
6459
|
-
[vars$1.fontSize]: '20px',
|
6460
|
-
},
|
6461
|
-
xl: {
|
6462
|
-
[vars$1.fontSize]: '25px',
|
6463
|
-
}
|
6464
|
-
},
|
6454
|
+
// NewPassword doesn't pass `required` attribute to its PasswordFields.
|
6455
|
+
// That's why we fake the required indicator on each input.
|
6456
|
+
// We do that by injecting `::after` element, and populating it with requiredIndicator content.
|
6457
|
+
[vars$1.inputsRequiredIndicator]: refs.requiredIndicator, // used to populate required content for NewPassword input fields outside the theme
|
6458
|
+
}
|
6465
6459
|
};
|
6466
6460
|
|
6467
6461
|
var newPassword$1 = /*#__PURE__*/Object.freeze({
|
@@ -6472,7 +6466,7 @@ var newPassword$1 = /*#__PURE__*/Object.freeze({
|
|
6472
6466
|
|
6473
6467
|
const components = {
|
6474
6468
|
button: button$1,
|
6475
|
-
textField: textField$
|
6469
|
+
textField: textField$1,
|
6476
6470
|
passwordField: passwordField$1,
|
6477
6471
|
numberField: numberField$1,
|
6478
6472
|
emailField: emailField$1,
|
@@ -6491,14 +6485,14 @@ const components = {
|
|
6491
6485
|
image: image$1,
|
6492
6486
|
phoneField: phoneField$1,
|
6493
6487
|
newPassword: newPassword$1,
|
6488
|
+
inputWrapper,
|
6494
6489
|
};
|
6495
6490
|
|
6496
|
-
|
6497
6491
|
const theme = Object.keys(components).reduce((acc, comp) => ({ ...acc, [comp]: components[comp].default }), {});
|
6498
6492
|
const vars = Object.keys(components).reduce((acc, comp) => ({ ...acc, [comp]: components[comp].vars }), {});
|
6499
6493
|
|
6500
6494
|
const defaultTheme = { globals, components: theme };
|
6501
|
-
const themeVars = { globals: vars$
|
6495
|
+
const themeVars = { globals: vars$m, components: vars };
|
6502
6496
|
|
6503
6497
|
export { ButtonClass, CheckboxClass, ContainerClass, DividerClass, EmailFieldClass, ImageClass, LinkClass, LoaderLinearClass, LoaderRadialClass, LogoClass, NewPasswordClass, NumberFieldClass, PasscodeClass, PasswordFieldClass, PhoneFieldClass, SwitchToggleClass, TextAreaClass, TextClass, TextFieldClass, componentsThemeManager, createComponentsTheme, defaultTheme, genColor, globalsThemeToStyle, themeToStyle, themeVars };
|
6504
6498
|
//# sourceMappingURL=index.esm.js.map
|