@3t-transform/threeteeui 0.0.23 → 0.0.25
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-2943e8f8.js → index-451f61dd.js} +54 -88
- package/dist/cjs/loader.cjs.js +3 -4
- package/dist/cjs/tttx-button.cjs.entry.js +1 -1
- package/dist/cjs/tttx-form.cjs.entry.js +377 -0
- package/dist/cjs/tttx-icon.cjs.entry.js +1 -1
- package/dist/cjs/tttx-keyvalue-block.cjs.entry.js +1 -1
- package/dist/cjs/tttx-list.cjs.entry.js +1704 -0
- package/dist/cjs/tttx-loading-spinner.cjs.entry.js +1 -1
- package/dist/cjs/tttx-standalone-input.cjs.entry.js +1 -1
- package/dist/cjs/tttx.cjs.js +3 -7
- package/dist/collection/collection-manifest.json +5 -3
- package/dist/collection/components/molecules/tttx-form/lib/setErrorState.js +35 -0
- package/dist/collection/components/molecules/tttx-form/lib/validityCheck.js +58 -0
- package/dist/collection/components/molecules/tttx-form/tttx-form.css +314 -0
- package/dist/collection/components/molecules/tttx-form/tttx-form.js +364 -0
- package/dist/collection/components/molecules/tttx-form/tttx-form.stories.js +127 -0
- package/dist/collection/components/molecules/tttx-list/tttx-list.css +59 -0
- package/dist/collection/components/molecules/tttx-list/tttx-list.js +105 -0
- package/dist/collection/components/molecules/tttx-list/tttx-list.stories.js +71 -0
- package/dist/collection/shared/domsanitiser.options.js +14 -0
- package/dist/components/index.d.ts +2 -9
- package/dist/components/index.js +3 -1
- package/dist/components/tttx-form.d.ts +11 -0
- package/dist/components/tttx-form.js +394 -0
- package/dist/components/tttx-list.d.ts +11 -0
- package/dist/components/tttx-list.js +1727 -0
- package/dist/esm/{index-058a3cd0.js → index-0350f122.js} +55 -88
- package/dist/esm/loader.js +3 -4
- package/dist/esm/polyfills/css-shim.js +1 -1
- package/dist/esm/tttx-button.entry.js +1 -1
- package/dist/esm/tttx-form.entry.js +373 -0
- package/dist/esm/tttx-icon.entry.js +1 -1
- package/dist/esm/tttx-keyvalue-block.entry.js +1 -1
- package/dist/esm/tttx-list.entry.js +1700 -0
- package/dist/esm/tttx-loading-spinner.entry.js +1 -1
- package/dist/esm/tttx-standalone-input.entry.js +1 -1
- package/dist/esm/tttx.js +3 -4
- package/dist/tttx/{p-1adb2b75.entry.js → p-1b015a9d.entry.js} +1 -1
- package/dist/tttx/p-4ec3aee3.entry.js +1 -0
- package/dist/tttx/p-62869344.js +2 -0
- package/dist/tttx/{p-046868d9.entry.js → p-92465671.entry.js} +1 -1
- package/dist/tttx/{p-ad637dde.entry.js → p-a0179cb1.entry.js} +1 -1
- package/dist/tttx/{p-495cf4b3.entry.js → p-ae71c5ef.entry.js} +1 -1
- package/dist/tttx/p-cd1565e0.entry.js +3 -0
- package/dist/tttx/{p-a4d9929a.entry.js → p-f36c611b.entry.js} +1 -1
- package/dist/tttx/tttx.esm.js +1 -1
- package/dist/types/components/molecules/tttx-form/lib/setErrorState.d.ts +13 -0
- package/dist/types/components/molecules/tttx-form/lib/validityCheck.d.ts +17 -0
- package/dist/types/components/molecules/tttx-form/tttx-form.d.ts +114 -0
- package/dist/types/components/molecules/tttx-form/tttx-form.stories.d.ts +13 -0
- package/dist/types/components/molecules/tttx-list/interfaces.d.ts +6 -0
- package/dist/types/components/molecules/tttx-list/tttx-list.d.ts +11 -0
- package/dist/types/components/molecules/tttx-list/tttx-list.stories.d.ts +14 -0
- package/dist/types/components/molecules/tttx-standalone-input/tttx-standalone-input.d.ts +6 -6
- package/dist/types/components.d.ts +46 -0
- package/dist/types/shared/domsanitiser.options.d.ts +10 -0
- package/dist/types/stencil-public-runtime.d.ts +3 -59
- package/loader/index.d.ts +0 -9
- package/package.json +2 -1
- package/readme.md +20 -0
- package/dist/tttx/p-bbb7dbf7.js +0 -2
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-451f61dd.js');
|
|
6
6
|
|
|
7
7
|
const tttxLoadingSpinnerCss = ".material-symbols-rounded{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}.spinner-container{position:absolute}.loading-box{display:flex;align-items:center;justify-content:center}.loading-text{font-size:16px;font-weight:400;padding-top:10px;text-align:center}.spinner{border:solid #1479c6;border-bottom-color:#d5d5d5;border-radius:50%;position:relative;box-sizing:border-box;animation:rotation 1s linear infinite}.spinner.small{height:20px;width:20px;border-width:4px}.spinner.large{height:60px;width:60px;border-width:8px}@keyframes rotation{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}";
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-451f61dd.js');
|
|
6
6
|
|
|
7
7
|
const tttxStandaloneInputCss = ".material-symbols-rounded.sc-tttx-standalone-input{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}.material-symbols-rounded.sc-tttx-standalone-input{font-family:\"Material Symbols Rounded\", sans-serif;font-weight:400;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;color:#9e9e9e}.icon-left.sc-tttx-standalone-input,.icon-right.sc-tttx-standalone-input{flex-basis:24px}.icon-left.sc-tttx-standalone-input span.sc-tttx-standalone-input,.icon-right.sc-tttx-standalone-input span.sc-tttx-standalone-input{font-size:24px;line-height:24px;text-align:center;display:block;width:24px;height:24px;margin-top:4px}.icon-left.sc-tttx-standalone-input span.sc-tttx-standalone-input{margin-left:4px}.icon-right.sc-tttx-standalone-input span.sc-tttx-standalone-input{margin-right:4px}.icon-right.sc-tttx-standalone-input{margin-top:5px;margin-right:4px}.icon-left.sc-tttx-standalone-input{margin-top:5px;margin-left:4px}.iconleft.sc-tttx-standalone-input .input.sc-tttx-standalone-input{padding-left:4px}.iconright.sc-tttx-standalone-input .input.sc-tttx-standalone-input{padding-right:4px}.focused.sc-tttx-standalone-input{border-color:#1479c6}.errormsg.sc-tttx-standalone-input{display:flex;justify-content:center;align-items:center;float:left;margin-bottom:16px;box-sizing:border-box;background-color:transparent;height:26px;font-size:14px;border-radius:none;z-index:2;color:#dc0000}.errormsg.sc-tttx-standalone-input .validationicon.sc-tttx-standalone-input{width:16px;height:16px;font-size:16px;margin-right:4px;vertical-align:middle;color:#dc0000}.danger.sc-tttx-standalone-input{color:#dc0000}.optional.sc-tttx-standalone-input{color:#757575;font-weight:normal}label.inputBlock.sc-tttx-standalone-input{display:block;position:relative;line-height:21px}label.sc-tttx-standalone-input{font-weight:500;font-size:16px}input.sc-tttx-standalone-input:not([type=submit]){font-family:\"Roboto\", serif;box-sizing:border-box;width:100%;height:36px;padding:0 16px;font-size:16px;border:1px solid #d5d5d5;border-radius:4px;margin-top:4px}input[type=date].sc-tttx-standalone-input{background:white;display:block;min-width:calc(100% - 18px);line-height:37px}input.invalid.sc-tttx-standalone-input:invalid,input.standalone.invalid.sc-tttx-standalone-input{border:1px solid #dc0000}input.sc-tttx-standalone-input~.errorBubble.sc-tttx-standalone-input{min-height:27px;position:relative;font-size:14px;font-weight:normal;width:100%;font-family:\"Roboto\", sans-serif;color:#dc0000;display:flex;align-content:center;align-items:center;justify-items:center}input.sc-tttx-standalone-input~.errorBubble.sc-tttx-standalone-input:not(.visible){visibility:hidden}input.sc-tttx-standalone-input~.errorBubble.sc-tttx-standalone-input span.sc-tttx-standalone-input{color:#dc0000;font-size:16px;margin-right:4px;height:16px}input.invalid.sc-tttx-standalone-input:invalid~.errorBubble.sc-tttx-standalone-input{position:relative;font-size:14px;font-weight:normal;width:100%;font-family:\"Roboto\", sans-serif;color:#dc0000;visibility:visible}input.sc-tttx-standalone-input:focus{border-color:#1479c6}.sc-tttx-standalone-input-h{display:block}";
|
|
8
8
|
|
package/dist/cjs/tttx.cjs.js
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const index = require('./index-2943e8f8.js');
|
|
3
|
+
const index = require('./index-451f61dd.js');
|
|
6
4
|
|
|
7
5
|
/*
|
|
8
|
-
Stencil Client Patch Browser v2.
|
|
6
|
+
Stencil Client Patch Browser v2.20.0 | MIT Licensed | https://stenciljs.com
|
|
9
7
|
*/
|
|
10
8
|
const patchBrowser = () => {
|
|
11
9
|
const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('tttx.cjs.js', document.baseURI).href));
|
|
@@ -17,7 +15,5 @@ const patchBrowser = () => {
|
|
|
17
15
|
};
|
|
18
16
|
|
|
19
17
|
patchBrowser().then(options => {
|
|
20
|
-
return index.bootstrapLazy([["tttx-button.cjs",[[1,"tttx-button",{"notext":[4],"icon":[1],"iconposition":[1],"design":[1]}]]],["tttx-standalone-input.cjs",[[2,"tttx-standalone-input",{"label":[1],"showerrormsg":[4],"errormsg":[1],"iconleft":[1],"iconright":[1],"inputAutocapitalize":[1,"input-autocapitalize"],"inputAutofocus":[4,"input-autofocus"],"inputKeyhint":[1,"input-keyhint"],"inputIndex":[8,"input-index"],"inputTitle":[1,"input-title"],"autocomplete":[1],"checked":[4],"disabled":[4],"max":[8],"maxlength":[8],"min":[8],"minlength":[8],"name":[1],"pattern":[1],"placeholder":[1],"readonly":[8],"required":[4],"step":[8],"type":[1],"value":[1032]}]]],["tttx-keyvalue-block.cjs",[[1,"tttx-keyvalue-block",{"keyvalues":[8],"horizontal":[4]}]]],["tttx-loading-spinner.cjs",[[1,"tttx-loading-spinner",{"loadingMessage":[1028,"loading-message"],"size":[1025]}]]],["tttx-icon.cjs",[[1,"tttx-icon",{"icon":[1],"color":[1]}]]]], options);
|
|
18
|
+
return index.bootstrapLazy([["tttx-button.cjs",[[1,"tttx-button",{"notext":[4],"icon":[1],"iconposition":[1],"design":[1]}]]],["tttx-list.cjs",[[1,"tttx-list",{"data":[1025],"name":[1]}]]],["tttx-standalone-input.cjs",[[2,"tttx-standalone-input",{"label":[1],"showerrormsg":[4],"errormsg":[1],"iconleft":[1],"iconright":[1],"inputAutocapitalize":[1,"input-autocapitalize"],"inputAutofocus":[4,"input-autofocus"],"inputKeyhint":[1,"input-keyhint"],"inputIndex":[8,"input-index"],"inputTitle":[1,"input-title"],"autocomplete":[1],"checked":[4],"disabled":[4],"max":[8],"maxlength":[8],"min":[8],"minlength":[8],"name":[1],"pattern":[1],"placeholder":[1],"readonly":[8],"required":[4],"step":[8],"type":[1],"value":[1032]}]]],["tttx-form.cjs",[[1,"tttx-form",{"formschema":[1032],"submitValue":[1032,"submit-value"]}]]],["tttx-keyvalue-block.cjs",[[1,"tttx-keyvalue-block",{"keyvalues":[8],"horizontal":[4]}]]],["tttx-loading-spinner.cjs",[[1,"tttx-loading-spinner",{"loadingMessage":[1028,"loading-message"],"size":[1025]}]]],["tttx-icon.cjs",[[1,"tttx-icon",{"icon":[1],"color":[1]}]]]], options);
|
|
21
19
|
});
|
|
22
|
-
|
|
23
|
-
exports.setNonce = index.setNonce;
|
|
@@ -4,12 +4,14 @@
|
|
|
4
4
|
"./components/atoms/tttx-button/tttx-button.js",
|
|
5
5
|
"./components/atoms/tttx-icon/tttx-icon.js",
|
|
6
6
|
"./components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.js",
|
|
7
|
-
"./components/atoms/tttx-loading-spinner/tttx-loading-spinner.js"
|
|
7
|
+
"./components/atoms/tttx-loading-spinner/tttx-loading-spinner.js",
|
|
8
|
+
"./components/molecules/tttx-form/tttx-form.js",
|
|
9
|
+
"./components/molecules/tttx-list/tttx-list.js"
|
|
8
10
|
],
|
|
9
11
|
"compiler": {
|
|
10
12
|
"name": "@stencil/core",
|
|
11
|
-
"version": "2.
|
|
12
|
-
"typescriptVersion": "4.
|
|
13
|
+
"version": "2.20.0",
|
|
14
|
+
"typescriptVersion": "4.8.4"
|
|
13
15
|
},
|
|
14
16
|
"collections": [],
|
|
15
17
|
"bundles": []
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sets the error state of an input field by updating its class and error message.
|
|
3
|
+
* If an error was detected, it sets the input field's class to "invalid" and
|
|
4
|
+
* displays the error message in an error bubble. If no error was detected,
|
|
5
|
+
* it removes the "invalid" class from the input field and clears the error bubble.
|
|
6
|
+
*
|
|
7
|
+
* @param {HTMLInputElement} target - The input field to update.
|
|
8
|
+
* @param {boolean} hasError - Whether an error was detected in the field.
|
|
9
|
+
* @param {string} errorMessage - The error message to display (if any).
|
|
10
|
+
* @return {void}
|
|
11
|
+
*/
|
|
12
|
+
function setErrorState(target, hasError, errorMessage) {
|
|
13
|
+
// Find the error bubble element for the input field
|
|
14
|
+
const errorBubble = target.parentElement.querySelector('.errorBubble');
|
|
15
|
+
// If an error was detected, set the input field's class to "invalid" and display the error message in the error bubble
|
|
16
|
+
if (hasError) {
|
|
17
|
+
target.className = 'invalid';
|
|
18
|
+
const errorIcon = document.createElement('span');
|
|
19
|
+
// Set the class of the error icon to a pre-defined CSS class that specifies the icon's appearance
|
|
20
|
+
errorIcon.className = 'material-symbols-rounded';
|
|
21
|
+
// Set the text content of the error icon to the word "warning"
|
|
22
|
+
errorIcon.textContent = 'warning';
|
|
23
|
+
// errorBubble.replaceChildren cannot be used here because the tests don't support this new feature :(
|
|
24
|
+
errorBubble.innerHTML = '';
|
|
25
|
+
errorBubble.append(errorIcon);
|
|
26
|
+
errorBubble.append(errorMessage);
|
|
27
|
+
// errorBubble.replaceChildren(errorIcon, errorMessage);
|
|
28
|
+
}
|
|
29
|
+
// If no error was detected, remove the "invalid" class from the input field and clear the error bubble
|
|
30
|
+
else {
|
|
31
|
+
target.className = '';
|
|
32
|
+
errorBubble.innerHTML = '';
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
export default setErrorState;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Validates the input field on focusout event by checking its validity state,
|
|
3
|
+
* sets an error message if there's an issue, and emits a "dataChanged" event to
|
|
4
|
+
* the parent component with the field name and its new value.
|
|
5
|
+
*
|
|
6
|
+
* @param {Event} event - The focusout event triggered by the input field.
|
|
7
|
+
* @return {void}
|
|
8
|
+
*/
|
|
9
|
+
function validityCheck(event) {
|
|
10
|
+
var _a, _b, _c, _d;
|
|
11
|
+
event.preventDefault();
|
|
12
|
+
const target = event.target;
|
|
13
|
+
let hasError = true;
|
|
14
|
+
let errorMessage = '';
|
|
15
|
+
// validity object on HTML5 inputs has the following options
|
|
16
|
+
// badInput
|
|
17
|
+
// customError
|
|
18
|
+
// patternMismatch
|
|
19
|
+
// rangeOverflow
|
|
20
|
+
// rangeUnderflow
|
|
21
|
+
// stepMismatch
|
|
22
|
+
// tooLong
|
|
23
|
+
// tooShort
|
|
24
|
+
// typeMismatch
|
|
25
|
+
// valid
|
|
26
|
+
// valueMissing
|
|
27
|
+
// customErrors can be set with
|
|
28
|
+
// target.setCustomValidity('custom error!');
|
|
29
|
+
// and cleared with
|
|
30
|
+
// target.setCustomValidity('');
|
|
31
|
+
// Check the validity of the input field and set an error message if needed
|
|
32
|
+
switch (true) {
|
|
33
|
+
// The field is required, but has no value
|
|
34
|
+
case target.validity.valueMissing:
|
|
35
|
+
errorMessage = (_a = target.dataset.required) !== null && _a !== void 0 ? _a : 'This field is required';
|
|
36
|
+
break;
|
|
37
|
+
// The field's value does not match the expected pattern
|
|
38
|
+
case target.validity.patternMismatch:
|
|
39
|
+
errorMessage = (_b = target.dataset.pattern) !== null && _b !== void 0 ? _b : 'Incorrect format';
|
|
40
|
+
break;
|
|
41
|
+
// The field's value is not of the correct input type
|
|
42
|
+
case target.validity.badInput:
|
|
43
|
+
// IE string in a number field
|
|
44
|
+
errorMessage = (_c = target.dataset.badinput) !== null && _c !== void 0 ? _c : 'Wrong input type';
|
|
45
|
+
break;
|
|
46
|
+
// The field's value is above or below the range set in the "min" and "max" attributes
|
|
47
|
+
case target.validity.rangeOverflow || target.validity.rangeUnderflow:
|
|
48
|
+
// IE date or number is above or below value set in min or max tags
|
|
49
|
+
errorMessage = (_d = target.dataset.range) !== null && _d !== void 0 ? _d : 'Invalid value';
|
|
50
|
+
break;
|
|
51
|
+
// No error detected
|
|
52
|
+
default:
|
|
53
|
+
hasError = false;
|
|
54
|
+
}
|
|
55
|
+
// Return the error state
|
|
56
|
+
return { target, hasError, errorMessage };
|
|
57
|
+
}
|
|
58
|
+
export default validityCheck;
|
|
@@ -0,0 +1,314 @@
|
|
|
1
|
+
.material-symbols-rounded {
|
|
2
|
+
font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.material-symbols-rounded {
|
|
6
|
+
font-family: "Material Symbols Rounded", sans-serif;
|
|
7
|
+
font-weight: 400;
|
|
8
|
+
font-style: normal;
|
|
9
|
+
font-size: 24px;
|
|
10
|
+
line-height: 1;
|
|
11
|
+
letter-spacing: normal;
|
|
12
|
+
text-transform: none;
|
|
13
|
+
display: inline-block;
|
|
14
|
+
white-space: nowrap;
|
|
15
|
+
word-wrap: normal;
|
|
16
|
+
direction: ltr;
|
|
17
|
+
text-rendering: optimizeLegibility;
|
|
18
|
+
-webkit-font-smoothing: antialiased;
|
|
19
|
+
color: #9e9e9e;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.icon-left,
|
|
23
|
+
.icon-right {
|
|
24
|
+
flex-basis: 24px;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.icon-left span,
|
|
28
|
+
.icon-right span {
|
|
29
|
+
font-size: 24px;
|
|
30
|
+
line-height: 24px;
|
|
31
|
+
text-align: center;
|
|
32
|
+
display: block;
|
|
33
|
+
width: 24px;
|
|
34
|
+
height: 24px;
|
|
35
|
+
margin-top: 4px;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.icon-left span {
|
|
39
|
+
margin-left: 4px;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.icon-right span {
|
|
43
|
+
margin-right: 4px;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.icon-right {
|
|
47
|
+
margin-top: 5px;
|
|
48
|
+
margin-right: 4px;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.icon-left {
|
|
52
|
+
margin-top: 5px;
|
|
53
|
+
margin-left: 4px;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.iconleft .input {
|
|
57
|
+
padding-left: 4px;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.iconright .input {
|
|
61
|
+
padding-right: 4px;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.focused {
|
|
65
|
+
border-color: #1479c6;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.errormsg {
|
|
69
|
+
display: flex;
|
|
70
|
+
justify-content: center;
|
|
71
|
+
align-items: center;
|
|
72
|
+
float: left;
|
|
73
|
+
margin-bottom: 16px;
|
|
74
|
+
box-sizing: border-box;
|
|
75
|
+
background-color: transparent;
|
|
76
|
+
height: 26px;
|
|
77
|
+
font-size: 14px;
|
|
78
|
+
border-radius: none;
|
|
79
|
+
z-index: 2;
|
|
80
|
+
color: #dc0000;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.errormsg .validationicon {
|
|
84
|
+
width: 16px;
|
|
85
|
+
height: 16px;
|
|
86
|
+
font-size: 16px;
|
|
87
|
+
margin-right: 4px;
|
|
88
|
+
vertical-align: middle;
|
|
89
|
+
color: #dc0000;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.danger {
|
|
93
|
+
color: #dc0000;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.optional {
|
|
97
|
+
color: #757575;
|
|
98
|
+
font-weight: normal;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
label.inputBlock {
|
|
102
|
+
display: block;
|
|
103
|
+
position: relative;
|
|
104
|
+
line-height: 21px;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
label {
|
|
108
|
+
font-weight: 500;
|
|
109
|
+
font-size: 16px;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
input:not([type=submit]) {
|
|
113
|
+
font-family: "Roboto", serif;
|
|
114
|
+
box-sizing: border-box;
|
|
115
|
+
width: 100%;
|
|
116
|
+
height: 36px;
|
|
117
|
+
padding: 0 16px;
|
|
118
|
+
font-size: 16px;
|
|
119
|
+
border: 1px solid #d5d5d5;
|
|
120
|
+
border-radius: 4px;
|
|
121
|
+
margin-top: 4px;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/* iPhone OS fix */
|
|
125
|
+
input[type=date] {
|
|
126
|
+
background: white;
|
|
127
|
+
display: block;
|
|
128
|
+
min-width: calc(100% - 18px);
|
|
129
|
+
line-height: 37px;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
input.invalid:invalid, input.standalone.invalid {
|
|
133
|
+
border: 1px solid #dc0000;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
input ~ .errorBubble {
|
|
137
|
+
min-height: 27px;
|
|
138
|
+
position: relative;
|
|
139
|
+
font-size: 14px;
|
|
140
|
+
font-weight: normal;
|
|
141
|
+
width: 100%;
|
|
142
|
+
font-family: "Roboto", sans-serif;
|
|
143
|
+
color: #dc0000;
|
|
144
|
+
display: flex;
|
|
145
|
+
align-content: center;
|
|
146
|
+
align-items: center;
|
|
147
|
+
justify-items: center;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
input ~ .errorBubble:not(.visible) {
|
|
151
|
+
visibility: hidden;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
input ~ .errorBubble span {
|
|
155
|
+
color: #dc0000;
|
|
156
|
+
font-size: 16px;
|
|
157
|
+
margin-right: 4px;
|
|
158
|
+
height: 16px;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
input.invalid:invalid ~ .errorBubble {
|
|
162
|
+
position: relative;
|
|
163
|
+
font-size: 14px;
|
|
164
|
+
font-weight: normal;
|
|
165
|
+
width: 100%;
|
|
166
|
+
font-family: "Roboto", sans-serif;
|
|
167
|
+
color: #dc0000;
|
|
168
|
+
visibility: visible;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
input:focus {
|
|
172
|
+
border-color: #1479c6;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.button {
|
|
176
|
+
font-family: Roboto, serif;
|
|
177
|
+
box-sizing: border-box;
|
|
178
|
+
height: 36px;
|
|
179
|
+
min-width: 36px;
|
|
180
|
+
padding: 0;
|
|
181
|
+
margin: 0;
|
|
182
|
+
background: transparent;
|
|
183
|
+
color: #212121;
|
|
184
|
+
border: 1px solid #c8c8c8;
|
|
185
|
+
border-radius: 4px;
|
|
186
|
+
text-transform: uppercase;
|
|
187
|
+
display: flex;
|
|
188
|
+
justify-content: left;
|
|
189
|
+
align-items: center;
|
|
190
|
+
font-size: 14px;
|
|
191
|
+
font-weight: 400;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.button-content {
|
|
195
|
+
display: block;
|
|
196
|
+
padding: 0 16px;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.icon-left, .icon-right {
|
|
200
|
+
margin-top: 4px;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.iconleft {
|
|
204
|
+
padding-left: 8px;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.iconleft .button-content {
|
|
208
|
+
padding-left: 4px;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.iconright {
|
|
212
|
+
padding-right: 8px;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
.iconright .button-content {
|
|
216
|
+
padding-right: 4px;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.notext {
|
|
220
|
+
padding: 0 6px;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.button:hover {
|
|
224
|
+
background: rgba(17, 17, 17, 0.1);
|
|
225
|
+
border: 1px solid #D5D5D5;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
.button:active {
|
|
229
|
+
background: rgba(17, 17, 17, 0.2);
|
|
230
|
+
border: 1px solid #D5D5D5;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
.primary {
|
|
234
|
+
background: #1479c6;
|
|
235
|
+
border: 1px solid #1479c6;
|
|
236
|
+
color: white;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
.primary:hover {
|
|
240
|
+
background: #146EB3;
|
|
241
|
+
border: 1px solid #146EB3;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
.primary:active {
|
|
245
|
+
background: #1464A2;
|
|
246
|
+
border: 1px solid #1464A2;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
.borderless {
|
|
250
|
+
background: transparent;
|
|
251
|
+
border: none;
|
|
252
|
+
color: #212121;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
.borderless:hover {
|
|
256
|
+
background: rgba(17, 17, 17, 0.1);
|
|
257
|
+
border: none;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
.borderless:active {
|
|
261
|
+
background: rgba(17, 17, 17, 0.2);
|
|
262
|
+
border: none;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
.danger {
|
|
266
|
+
background: #DC0000;
|
|
267
|
+
border: 1px solid #DC0000;
|
|
268
|
+
color: white;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
.danger:hover {
|
|
272
|
+
background: #C60000;
|
|
273
|
+
border: 1px solid #C60000;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
.danger:active {
|
|
277
|
+
background: #B00000;
|
|
278
|
+
border: 1px solid #B00000;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
.disabled {
|
|
282
|
+
background: #aeaeae;
|
|
283
|
+
border: none;
|
|
284
|
+
color: #4c4c4c;
|
|
285
|
+
cursor: not-allowed;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
.disabled:hover {
|
|
289
|
+
background: #aeaeae;
|
|
290
|
+
border: none;
|
|
291
|
+
color: #4c4c4c;
|
|
292
|
+
cursor: not-allowed;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
.disabled:active {
|
|
296
|
+
background: #aeaeae;
|
|
297
|
+
border: none;
|
|
298
|
+
color: #4c4c4c;
|
|
299
|
+
cursor: not-allowed;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
:host {
|
|
303
|
+
display: block;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
fieldset {
|
|
307
|
+
margin: 0;
|
|
308
|
+
padding: 0;
|
|
309
|
+
border: none;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
input[type=submit] {
|
|
313
|
+
margin-left: auto;
|
|
314
|
+
}
|