@mmlogic/components 0.3.4 → 0.3.6
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/{collection/utils/cell-renderer.js → mosterdcomponents/cell-renderer-CbRwLOo8.js} +9 -3
- package/dist/mosterdcomponents/cell-renderer-CbRwLOo8.js.map +1 -0
- package/dist/{esm/index.js → mosterdcomponents/client-layout-D88nn5zf.js} +4 -1
- package/dist/mosterdcomponents/client-layout-D88nn5zf.js.map +1 -0
- package/dist/{collection/utils/format.js → mosterdcomponents/format-BAfsQfy1.js} +12 -7
- package/dist/mosterdcomponents/format-BAfsQfy1.js.map +1 -0
- package/dist/{collection/utils/i18n.js → mosterdcomponents/i18n-hoGGKbKU.js} +6 -1
- package/dist/mosterdcomponents/i18n-hoGGKbKU.js.map +1 -0
- package/dist/mosterdcomponents/index-B_tPFIvS.js +4585 -0
- package/dist/mosterdcomponents/index-B_tPFIvS.js.map +1 -0
- package/dist/mosterdcomponents/index-I5SuYv7a.js +4 -0
- package/dist/mosterdcomponents/index-I5SuYv7a.js.map +1 -0
- package/dist/mosterdcomponents/index.esm.js +5 -1
- package/dist/mosterdcomponents/index.esm.js.map +1 -0
- package/dist/mosterdcomponents/mosterdcomponents.css +180 -1
- package/dist/mosterdcomponents/mosterdcomponents.esm.js +50 -1
- package/dist/mosterdcomponents/mosterdcomponents.esm.js.map +1 -0
- package/dist/mosterdcomponents/mrd-boolean-field.entry.js +37 -0
- package/dist/mosterdcomponents/mrd-boolean-field.entry.js.map +1 -0
- package/dist/mosterdcomponents/mrd-currency-field.entry.js +67 -0
- package/dist/mosterdcomponents/mrd-currency-field.entry.js.map +1 -0
- package/dist/mosterdcomponents/mrd-date-field.entry.js +46 -0
- package/dist/mosterdcomponents/mrd-date-field.entry.js.map +1 -0
- package/dist/mosterdcomponents/mrd-datetime-field.entry.js +78 -0
- package/dist/mosterdcomponents/mrd-datetime-field.entry.js.map +1 -0
- package/dist/mosterdcomponents/mrd-email-field.entry.js +50 -0
- package/dist/mosterdcomponents/mrd-email-field.entry.js.map +1 -0
- package/dist/{collection/components/mrd-field/mrd-field.js → mosterdcomponents/mrd-field.entry.js} +28 -179
- package/dist/mosterdcomponents/mrd-field.entry.js.map +1 -0
- package/dist/mosterdcomponents/mrd-file-field.entry.js +108 -0
- package/dist/mosterdcomponents/mrd-file-field.entry.js.map +1 -0
- package/dist/{collection/components/mrd-form/mrd-form.js → mosterdcomponents/mrd-form.entry.js} +82 -280
- package/dist/mosterdcomponents/mrd-form.entry.js.map +1 -0
- package/dist/mosterdcomponents/mrd-hyperlink-field.entry.js +87 -0
- package/dist/mosterdcomponents/mrd-hyperlink-field.entry.js.map +1 -0
- package/dist/mosterdcomponents/mrd-image-field.entry.js +122 -0
- package/dist/mosterdcomponents/mrd-image-field.entry.js.map +1 -0
- package/dist/{collection/components/mrd-layout-section/mrd-layout-section.js → mosterdcomponents/mrd-layout-section.entry.js} +31 -418
- package/dist/mosterdcomponents/mrd-layout-section.entry.js.map +1 -0
- package/dist/mosterdcomponents/mrd-list-field.entry.js +107 -0
- package/dist/mosterdcomponents/mrd-list-field.entry.js.map +1 -0
- package/dist/mosterdcomponents/mrd-longtext-field.entry.js +47 -0
- package/dist/mosterdcomponents/mrd-longtext-field.entry.js.map +1 -0
- package/dist/mosterdcomponents/mrd-number-field.entry.js +87 -0
- package/dist/mosterdcomponents/mrd-number-field.entry.js.map +1 -0
- package/dist/mosterdcomponents/mrd-relation-field.entry.js +267 -0
- package/dist/mosterdcomponents/mrd-relation-field.entry.js.map +1 -0
- package/dist/mosterdcomponents/mrd-secret-field.entry.js +49 -0
- package/dist/mosterdcomponents/mrd-secret-field.entry.js.map +1 -0
- package/dist/{collection/components/mrd-table/mrd-table.js → mosterdcomponents/mrd-table.entry.js} +67 -398
- package/dist/mosterdcomponents/mrd-table.entry.js.map +1 -0
- package/dist/mosterdcomponents/mrd-text-field.entry.js +47 -0
- package/dist/mosterdcomponents/mrd-text-field.entry.js.map +1 -0
- package/dist/mosterdcomponents/mrd-textarea-field.entry.js +86 -0
- package/dist/mosterdcomponents/mrd-textarea-field.entry.js.map +1 -0
- package/dist/mosterdcomponents/mrd-time-field.entry.js +46 -0
- package/dist/mosterdcomponents/mrd-time-field.entry.js.map +1 -0
- package/dist/{esm/quill-CiuCgGz_.js → mosterdcomponents/quill-C9pgw_k-.js} +16282 -1397
- package/dist/mosterdcomponents/quill-C9pgw_k-.js.map +1 -0
- package/dist/{collection/utils/validation.js → mosterdcomponents/validation-ixb43cqU.js} +12 -5
- package/dist/mosterdcomponents/validation-ixb43cqU.js.map +1 -0
- package/dist/types/components/mrd-form/mrd-form.d.ts +13 -1
- package/dist/types/components/mrd-relation-field/mrd-relation-field.d.ts +3 -0
- package/dist/types/components/mrd-table/mrd-table.d.ts +4 -0
- package/dist/types/components.d.ts +19 -9
- package/package.json +1 -1
- package/dist/cjs/app-globals-V2Kpy_OQ.js +0 -5
- package/dist/cjs/index-BPj2cBXs.js +0 -1570
- package/dist/cjs/index.cjs.js +0 -66
- package/dist/cjs/loader.cjs.js +0 -13
- package/dist/cjs/mosterdcomponents.cjs.js +0 -25
- package/dist/cjs/mrd-boolean-field_20.cjs.entry.js +0 -3848
- package/dist/cjs/quill-DmFfnC1f.js +0 -16272
- package/dist/collection/collection-manifest.json +0 -32
- package/dist/collection/components/mrd-boolean-field/mrd-boolean-field.js +0 -199
- package/dist/collection/components/mrd-boolean-field/mrd-boolean-field.scss +0 -77
- package/dist/collection/components/mrd-currency-field/mrd-currency-field.js +0 -248
- package/dist/collection/components/mrd-currency-field/mrd-currency-field.scss +0 -100
- package/dist/collection/components/mrd-date-field/mrd-date-field.js +0 -206
- package/dist/collection/components/mrd-date-field/mrd-date-field.scss +0 -66
- package/dist/collection/components/mrd-datetime-field/mrd-datetime-field.js +0 -240
- package/dist/collection/components/mrd-datetime-field/mrd-datetime-field.scss +0 -66
- package/dist/collection/components/mrd-email-field/mrd-email-field.js +0 -230
- package/dist/collection/components/mrd-email-field/mrd-email-field.scss +0 -69
- package/dist/collection/components/mrd-field/mrd-field.scss +0 -118
- package/dist/collection/components/mrd-file-field/mrd-file-field.js +0 -341
- package/dist/collection/components/mrd-file-field/mrd-file-field.scss +0 -153
- package/dist/collection/components/mrd-form/mrd-form.scss +0 -148
- package/dist/collection/components/mrd-hyperlink-field/mrd-hyperlink-field.js +0 -291
- package/dist/collection/components/mrd-hyperlink-field/mrd-hyperlink-field.scss +0 -91
- package/dist/collection/components/mrd-image-field/mrd-image-field.js +0 -356
- package/dist/collection/components/mrd-image-field/mrd-image-field.scss +0 -190
- package/dist/collection/components/mrd-layout-section/mrd-layout-section.scss +0 -445
- package/dist/collection/components/mrd-list-field/mrd-list-field.js +0 -313
- package/dist/collection/components/mrd-list-field/mrd-list-field.scss +0 -109
- package/dist/collection/components/mrd-longtext-field/mrd-longtext-field.js +0 -227
- package/dist/collection/components/mrd-longtext-field/mrd-longtext-field.scss +0 -78
- package/dist/collection/components/mrd-number-field/mrd-number-field.js +0 -316
- package/dist/collection/components/mrd-number-field/mrd-number-field.scss +0 -77
- package/dist/collection/components/mrd-relation-field/mrd-relation-field.js +0 -678
- package/dist/collection/components/mrd-relation-field/mrd-relation-field.scss +0 -266
- package/dist/collection/components/mrd-secret-field/mrd-secret-field.js +0 -229
- package/dist/collection/components/mrd-secret-field/mrd-secret-field.scss +0 -73
- package/dist/collection/components/mrd-table/mrd-table.scss +0 -742
- package/dist/collection/components/mrd-text-field/mrd-text-field.js +0 -227
- package/dist/collection/components/mrd-text-field/mrd-text-field.scss +0 -69
- package/dist/collection/components/mrd-textarea-field/mrd-textarea-field.js +0 -267
- package/dist/collection/components/mrd-textarea-field/mrd-textarea-field.scss +0 -79
- package/dist/collection/components/mrd-time-field/mrd-time-field.js +0 -206
- package/dist/collection/components/mrd-time-field/mrd-time-field.scss +0 -66
- package/dist/collection/dev/api.js +0 -136
- package/dist/collection/dev/app.js +0 -868
- package/dist/collection/dev/auth.js +0 -156
- package/dist/collection/dev/example-data.js +0 -403
- package/dist/collection/dev/sprites.svg +0 -55
- package/dist/collection/index.js +0 -1
- package/dist/collection/types/client-layout.js +0 -64
- package/dist/collection/types/index.js +0 -1
- package/dist/components/client-layout.js +0 -1
- package/dist/components/format.js +0 -1
- package/dist/components/i18n.js +0 -1
- package/dist/components/index.js +0 -1
- package/dist/components/mrd-boolean-field.js +0 -1
- package/dist/components/mrd-boolean-field2.js +0 -1
- package/dist/components/mrd-currency-field.js +0 -1
- package/dist/components/mrd-currency-field2.js +0 -1
- package/dist/components/mrd-date-field.js +0 -1
- package/dist/components/mrd-date-field2.js +0 -1
- package/dist/components/mrd-datetime-field.js +0 -1
- package/dist/components/mrd-datetime-field2.js +0 -1
- package/dist/components/mrd-email-field.js +0 -1
- package/dist/components/mrd-email-field2.js +0 -1
- package/dist/components/mrd-field.js +0 -1
- package/dist/components/mrd-field2.js +0 -1
- package/dist/components/mrd-file-field.js +0 -1
- package/dist/components/mrd-file-field2.js +0 -1
- package/dist/components/mrd-form.js +0 -1
- package/dist/components/mrd-hyperlink-field.js +0 -1
- package/dist/components/mrd-hyperlink-field2.js +0 -1
- package/dist/components/mrd-image-field.js +0 -1
- package/dist/components/mrd-image-field2.js +0 -1
- package/dist/components/mrd-layout-section.js +0 -1
- package/dist/components/mrd-list-field.js +0 -1
- package/dist/components/mrd-list-field2.js +0 -1
- package/dist/components/mrd-longtext-field.js +0 -1
- package/dist/components/mrd-longtext-field2.js +0 -1
- package/dist/components/mrd-number-field.js +0 -1
- package/dist/components/mrd-number-field2.js +0 -1
- package/dist/components/mrd-relation-field.js +0 -1
- package/dist/components/mrd-relation-field2.js +0 -1
- package/dist/components/mrd-secret-field.js +0 -1
- package/dist/components/mrd-secret-field2.js +0 -1
- package/dist/components/mrd-table.js +0 -1
- package/dist/components/mrd-table2.js +0 -1
- package/dist/components/mrd-text-field.js +0 -1
- package/dist/components/mrd-text-field2.js +0 -1
- package/dist/components/mrd-textarea-field.js +0 -1
- package/dist/components/mrd-textarea-field2.js +0 -1
- package/dist/components/mrd-time-field.js +0 -1
- package/dist/components/mrd-time-field2.js +0 -1
- package/dist/components/quill.js +0 -1
- package/dist/components/validation.js +0 -1
- package/dist/esm/app-globals-DQuL1Twl.js +0 -3
- package/dist/esm/index-_tsCCkAi.js +0 -1561
- package/dist/esm/loader.js +0 -11
- package/dist/esm/mosterdcomponents.js +0 -21
- package/dist/esm/mrd-boolean-field_20.entry.js +0 -3827
- package/dist/index.cjs.js +0 -1
- package/dist/index.js +0 -1
- package/dist/mosterdcomponents/p-CiuCgGz_.js +0 -1
- package/dist/mosterdcomponents/p-DQuL1Twl.js +0 -1
- package/dist/mosterdcomponents/p-_tsCCkAi.js +0 -2
- package/dist/mosterdcomponents/p-c9839596.entry.js +0 -1
|
@@ -1,230 +0,0 @@
|
|
|
1
|
-
import { Host, h } from "@stencil/core";
|
|
2
|
-
import { t } from "../../utils/i18n";
|
|
3
|
-
import { validateRequired, validateEmail } from "../../utils/validation";
|
|
4
|
-
export class MrdEmailField {
|
|
5
|
-
constructor() {
|
|
6
|
-
this.name = '';
|
|
7
|
-
this.label = '';
|
|
8
|
-
this.value = '';
|
|
9
|
-
this.placeholder = '';
|
|
10
|
-
this.required = false;
|
|
11
|
-
this.disabled = false;
|
|
12
|
-
this.locale = navigator.language;
|
|
13
|
-
this.error = '';
|
|
14
|
-
this.handleInput = (e) => {
|
|
15
|
-
const val = e.target.value;
|
|
16
|
-
this.mrdChange.emit({ name: this.name, value: val });
|
|
17
|
-
};
|
|
18
|
-
this.handleBlur = (e) => {
|
|
19
|
-
const val = e.target.value;
|
|
20
|
-
if (this.required && !validateRequired(val)) {
|
|
21
|
-
this.error = t('required', this.locale);
|
|
22
|
-
}
|
|
23
|
-
else if (val && !validateEmail(val)) {
|
|
24
|
-
this.error = t('invalid_email', this.locale);
|
|
25
|
-
}
|
|
26
|
-
else {
|
|
27
|
-
this.error = '';
|
|
28
|
-
}
|
|
29
|
-
this.mrdBlur.emit({ name: this.name, value: val });
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
render() {
|
|
33
|
-
const hasError = !!this.error;
|
|
34
|
-
return (h(Host, { key: '851ec092957ab86e811b292eaabe29d04a600fe0' }, h("div", { key: '2d8969d60378f3161656369494549d682de8ec0e', class: "mrd-email-field" }, this.label && (h("label", { key: '7a35cc60d4804097e1a54f984c7da1829f6bbd11', class: `mrd-email-field__label${this.required ? ' mrd-email-field__label--required' : ''}` }, this.label)), h("input", { key: '1fc20e860aa021886f7ed522c3a0c8dd2cb1e093', class: `mrd-email-field__input${hasError ? ' mrd-email-field__input--error' : ''}`, type: "email", name: this.name, value: this.value, placeholder: this.placeholder || 'name@example.com', required: this.required, disabled: this.disabled, onInput: this.handleInput, onBlur: this.handleBlur }), hasError && h("span", { key: 'a44b3b41b7cd6b8c643cc64e6aadd884a2ba4961', class: "mrd-email-field__error" }, this.error))));
|
|
35
|
-
}
|
|
36
|
-
static get is() { return "mrd-email-field"; }
|
|
37
|
-
static get encapsulation() { return "scoped"; }
|
|
38
|
-
static get originalStyleUrls() {
|
|
39
|
-
return {
|
|
40
|
-
"$": ["mrd-email-field.scss"]
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
static get styleUrls() {
|
|
44
|
-
return {
|
|
45
|
-
"$": ["mrd-email-field.css"]
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
static get properties() {
|
|
49
|
-
return {
|
|
50
|
-
"name": {
|
|
51
|
-
"type": "string",
|
|
52
|
-
"mutable": false,
|
|
53
|
-
"complexType": {
|
|
54
|
-
"original": "string",
|
|
55
|
-
"resolved": "string",
|
|
56
|
-
"references": {}
|
|
57
|
-
},
|
|
58
|
-
"required": false,
|
|
59
|
-
"optional": false,
|
|
60
|
-
"docs": {
|
|
61
|
-
"tags": [],
|
|
62
|
-
"text": ""
|
|
63
|
-
},
|
|
64
|
-
"getter": false,
|
|
65
|
-
"setter": false,
|
|
66
|
-
"reflect": false,
|
|
67
|
-
"attribute": "name",
|
|
68
|
-
"defaultValue": "''"
|
|
69
|
-
},
|
|
70
|
-
"label": {
|
|
71
|
-
"type": "string",
|
|
72
|
-
"mutable": false,
|
|
73
|
-
"complexType": {
|
|
74
|
-
"original": "string",
|
|
75
|
-
"resolved": "string",
|
|
76
|
-
"references": {}
|
|
77
|
-
},
|
|
78
|
-
"required": false,
|
|
79
|
-
"optional": false,
|
|
80
|
-
"docs": {
|
|
81
|
-
"tags": [],
|
|
82
|
-
"text": ""
|
|
83
|
-
},
|
|
84
|
-
"getter": false,
|
|
85
|
-
"setter": false,
|
|
86
|
-
"reflect": false,
|
|
87
|
-
"attribute": "label",
|
|
88
|
-
"defaultValue": "''"
|
|
89
|
-
},
|
|
90
|
-
"value": {
|
|
91
|
-
"type": "string",
|
|
92
|
-
"mutable": false,
|
|
93
|
-
"complexType": {
|
|
94
|
-
"original": "string",
|
|
95
|
-
"resolved": "string",
|
|
96
|
-
"references": {}
|
|
97
|
-
},
|
|
98
|
-
"required": false,
|
|
99
|
-
"optional": false,
|
|
100
|
-
"docs": {
|
|
101
|
-
"tags": [],
|
|
102
|
-
"text": ""
|
|
103
|
-
},
|
|
104
|
-
"getter": false,
|
|
105
|
-
"setter": false,
|
|
106
|
-
"reflect": false,
|
|
107
|
-
"attribute": "value",
|
|
108
|
-
"defaultValue": "''"
|
|
109
|
-
},
|
|
110
|
-
"placeholder": {
|
|
111
|
-
"type": "string",
|
|
112
|
-
"mutable": false,
|
|
113
|
-
"complexType": {
|
|
114
|
-
"original": "string",
|
|
115
|
-
"resolved": "string",
|
|
116
|
-
"references": {}
|
|
117
|
-
},
|
|
118
|
-
"required": false,
|
|
119
|
-
"optional": false,
|
|
120
|
-
"docs": {
|
|
121
|
-
"tags": [],
|
|
122
|
-
"text": ""
|
|
123
|
-
},
|
|
124
|
-
"getter": false,
|
|
125
|
-
"setter": false,
|
|
126
|
-
"reflect": false,
|
|
127
|
-
"attribute": "placeholder",
|
|
128
|
-
"defaultValue": "''"
|
|
129
|
-
},
|
|
130
|
-
"required": {
|
|
131
|
-
"type": "boolean",
|
|
132
|
-
"mutable": false,
|
|
133
|
-
"complexType": {
|
|
134
|
-
"original": "boolean",
|
|
135
|
-
"resolved": "boolean",
|
|
136
|
-
"references": {}
|
|
137
|
-
},
|
|
138
|
-
"required": false,
|
|
139
|
-
"optional": false,
|
|
140
|
-
"docs": {
|
|
141
|
-
"tags": [],
|
|
142
|
-
"text": ""
|
|
143
|
-
},
|
|
144
|
-
"getter": false,
|
|
145
|
-
"setter": false,
|
|
146
|
-
"reflect": false,
|
|
147
|
-
"attribute": "required",
|
|
148
|
-
"defaultValue": "false"
|
|
149
|
-
},
|
|
150
|
-
"disabled": {
|
|
151
|
-
"type": "boolean",
|
|
152
|
-
"mutable": false,
|
|
153
|
-
"complexType": {
|
|
154
|
-
"original": "boolean",
|
|
155
|
-
"resolved": "boolean",
|
|
156
|
-
"references": {}
|
|
157
|
-
},
|
|
158
|
-
"required": false,
|
|
159
|
-
"optional": false,
|
|
160
|
-
"docs": {
|
|
161
|
-
"tags": [],
|
|
162
|
-
"text": ""
|
|
163
|
-
},
|
|
164
|
-
"getter": false,
|
|
165
|
-
"setter": false,
|
|
166
|
-
"reflect": false,
|
|
167
|
-
"attribute": "disabled",
|
|
168
|
-
"defaultValue": "false"
|
|
169
|
-
},
|
|
170
|
-
"locale": {
|
|
171
|
-
"type": "string",
|
|
172
|
-
"mutable": false,
|
|
173
|
-
"complexType": {
|
|
174
|
-
"original": "string",
|
|
175
|
-
"resolved": "string",
|
|
176
|
-
"references": {}
|
|
177
|
-
},
|
|
178
|
-
"required": false,
|
|
179
|
-
"optional": false,
|
|
180
|
-
"docs": {
|
|
181
|
-
"tags": [],
|
|
182
|
-
"text": ""
|
|
183
|
-
},
|
|
184
|
-
"getter": false,
|
|
185
|
-
"setter": false,
|
|
186
|
-
"reflect": false,
|
|
187
|
-
"attribute": "locale",
|
|
188
|
-
"defaultValue": "navigator.language"
|
|
189
|
-
}
|
|
190
|
-
};
|
|
191
|
-
}
|
|
192
|
-
static get states() {
|
|
193
|
-
return {
|
|
194
|
-
"error": {}
|
|
195
|
-
};
|
|
196
|
-
}
|
|
197
|
-
static get events() {
|
|
198
|
-
return [{
|
|
199
|
-
"method": "mrdChange",
|
|
200
|
-
"name": "mrdChange",
|
|
201
|
-
"bubbles": true,
|
|
202
|
-
"cancelable": true,
|
|
203
|
-
"composed": true,
|
|
204
|
-
"docs": {
|
|
205
|
-
"tags": [],
|
|
206
|
-
"text": ""
|
|
207
|
-
},
|
|
208
|
-
"complexType": {
|
|
209
|
-
"original": "{ name: string; value: string }",
|
|
210
|
-
"resolved": "{ name: string; value: string; }",
|
|
211
|
-
"references": {}
|
|
212
|
-
}
|
|
213
|
-
}, {
|
|
214
|
-
"method": "mrdBlur",
|
|
215
|
-
"name": "mrdBlur",
|
|
216
|
-
"bubbles": true,
|
|
217
|
-
"cancelable": true,
|
|
218
|
-
"composed": true,
|
|
219
|
-
"docs": {
|
|
220
|
-
"tags": [],
|
|
221
|
-
"text": ""
|
|
222
|
-
},
|
|
223
|
-
"complexType": {
|
|
224
|
-
"original": "{ name: string; value: string }",
|
|
225
|
-
"resolved": "{ name: string; value: string; }",
|
|
226
|
-
"references": {}
|
|
227
|
-
}
|
|
228
|
-
}];
|
|
229
|
-
}
|
|
230
|
-
}
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
:host {
|
|
2
|
-
display: block;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.mrd-email-field {
|
|
6
|
-
display: flex;
|
|
7
|
-
flex-direction: column;
|
|
8
|
-
gap: var(--mrd-space-1);
|
|
9
|
-
width: 100%;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.mrd-email-field__label {
|
|
13
|
-
display: block;
|
|
14
|
-
font-family: var(--mrd-font-family);
|
|
15
|
-
font-size: var(--mrd-label-font-size);
|
|
16
|
-
font-weight: var(--mrd-label-font-weight);
|
|
17
|
-
color: var(--mrd-label-color);
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.mrd-email-field__label--required::after {
|
|
21
|
-
content: ' *';
|
|
22
|
-
color: var(--mrd-color-danger);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.mrd-email-field__input {
|
|
26
|
-
display: block;
|
|
27
|
-
width: 100%;
|
|
28
|
-
height: var(--mrd-input-height);
|
|
29
|
-
padding: var(--mrd-input-padding-y) var(--mrd-input-padding-x);
|
|
30
|
-
font-family: var(--mrd-font-family);
|
|
31
|
-
font-size: var(--mrd-font-size-base);
|
|
32
|
-
color: var(--mrd-input-color);
|
|
33
|
-
background-color: var(--mrd-input-bg);
|
|
34
|
-
border: var(--mrd-border-width) solid var(--mrd-border-color);
|
|
35
|
-
border-radius: var(--mrd-border-radius);
|
|
36
|
-
transition: border-color var(--mrd-transition), box-shadow var(--mrd-transition);
|
|
37
|
-
outline: none;
|
|
38
|
-
appearance: none;
|
|
39
|
-
box-sizing: border-box;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.mrd-email-field__input::placeholder {
|
|
43
|
-
color: var(--mrd-input-placeholder-color);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.mrd-email-field__input:focus {
|
|
47
|
-
border-color: var(--mrd-border-color-focus);
|
|
48
|
-
box-shadow: var(--mrd-shadow-focus);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.mrd-email-field__input:disabled {
|
|
52
|
-
background-color: var(--mrd-input-bg-disabled);
|
|
53
|
-
cursor: not-allowed;
|
|
54
|
-
opacity: 0.7;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.mrd-email-field__input--error {
|
|
58
|
-
border-color: var(--mrd-border-color-error);
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.mrd-email-field__input--error:focus {
|
|
62
|
-
box-shadow: var(--mrd-shadow-focus-error);
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.mrd-email-field__error {
|
|
66
|
-
font-family: var(--mrd-font-family);
|
|
67
|
-
font-size: var(--mrd-error-font-size);
|
|
68
|
-
color: var(--mrd-error-color);
|
|
69
|
-
}
|
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
:host {
|
|
2
|
-
display: block;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.mrd-field__inner {
|
|
6
|
-
display: block;
|
|
7
|
-
width: 100%;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.mrd-field__history-editor {
|
|
11
|
-
margin-top: var(--mrd-space-2);
|
|
12
|
-
display: flex;
|
|
13
|
-
flex-direction: column;
|
|
14
|
-
gap: var(--mrd-space-1);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.mrd-field__history-editor-label {
|
|
18
|
-
font-family: var(--mrd-font-family);
|
|
19
|
-
font-size: var(--mrd-font-size-xs);
|
|
20
|
-
font-weight: var(--mrd-font-weight-medium);
|
|
21
|
-
color: var(--mrd-color-neutral-500);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.mrd-field__history-editor-row {
|
|
25
|
-
display: flex;
|
|
26
|
-
align-items: center;
|
|
27
|
-
gap: var(--mrd-space-2);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.mrd-field__history-editor-sep {
|
|
31
|
-
flex-shrink: 0;
|
|
32
|
-
font-family: var(--mrd-font-family);
|
|
33
|
-
font-size: var(--mrd-font-size-xs);
|
|
34
|
-
color: var(--mrd-color-neutral-500);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.mrd-field__history-editor-value {
|
|
38
|
-
flex: 1 1 0;
|
|
39
|
-
min-width: 0;
|
|
40
|
-
height: var(--mrd-input-height);
|
|
41
|
-
padding: 0 var(--mrd-space-3);
|
|
42
|
-
font-family: var(--mrd-font-family);
|
|
43
|
-
font-size: var(--mrd-font-size-sm);
|
|
44
|
-
color: var(--mrd-color-neutral-800);
|
|
45
|
-
background-color: var(--mrd-color-white);
|
|
46
|
-
border: var(--mrd-border-width) solid var(--mrd-border-color);
|
|
47
|
-
border-radius: var(--mrd-border-radius-md);
|
|
48
|
-
outline: none;
|
|
49
|
-
transition: border-color var(--mrd-transition-fast), box-shadow var(--mrd-transition-fast);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.mrd-field__history-editor-value:focus {
|
|
53
|
-
border-color: var(--mrd-color-primary);
|
|
54
|
-
box-shadow: var(--mrd-shadow-focus);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.mrd-field__history-editor-until {
|
|
58
|
-
flex: 0 0 10rem;
|
|
59
|
-
height: var(--mrd-input-height);
|
|
60
|
-
padding: 0 var(--mrd-space-3);
|
|
61
|
-
font-family: var(--mrd-font-family);
|
|
62
|
-
font-size: var(--mrd-font-size-sm);
|
|
63
|
-
color: var(--mrd-color-neutral-800);
|
|
64
|
-
background-color: var(--mrd-color-white);
|
|
65
|
-
border: var(--mrd-border-width) solid var(--mrd-border-color);
|
|
66
|
-
border-radius: var(--mrd-border-radius-md);
|
|
67
|
-
outline: none;
|
|
68
|
-
transition: border-color var(--mrd-transition-fast), box-shadow var(--mrd-transition-fast);
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.mrd-field__history-editor-until:focus {
|
|
72
|
-
border-color: var(--mrd-color-primary);
|
|
73
|
-
box-shadow: var(--mrd-shadow-focus);
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
.mrd-field__history-editor-remove {
|
|
77
|
-
display: inline-flex;
|
|
78
|
-
align-items: center;
|
|
79
|
-
justify-content: center;
|
|
80
|
-
flex-shrink: 0;
|
|
81
|
-
width: 2rem;
|
|
82
|
-
height: 2rem;
|
|
83
|
-
padding: 0;
|
|
84
|
-
background: transparent;
|
|
85
|
-
border: none;
|
|
86
|
-
border-radius: var(--mrd-border-radius-sm);
|
|
87
|
-
color: var(--mrd-color-neutral-400);
|
|
88
|
-
cursor: pointer;
|
|
89
|
-
transition: color var(--mrd-transition-fast), background-color var(--mrd-transition-fast);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
.mrd-field__history-editor-remove:hover {
|
|
93
|
-
color: var(--mrd-color-danger);
|
|
94
|
-
background-color: var(--mrd-color-danger-light);
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
.mrd-field__history-editor-remove svg {
|
|
98
|
-
width: 1rem;
|
|
99
|
-
height: 1rem;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
.mrd-field__history-editor-add {
|
|
103
|
-
align-self: flex-start;
|
|
104
|
-
padding: var(--mrd-space-1) var(--mrd-space-3);
|
|
105
|
-
font-family: var(--mrd-font-family);
|
|
106
|
-
font-size: var(--mrd-font-size-xs);
|
|
107
|
-
font-weight: var(--mrd-font-weight-medium);
|
|
108
|
-
color: var(--mrd-color-primary);
|
|
109
|
-
background: transparent;
|
|
110
|
-
border: var(--mrd-border-width) solid var(--mrd-color-primary);
|
|
111
|
-
border-radius: var(--mrd-border-radius-md);
|
|
112
|
-
cursor: pointer;
|
|
113
|
-
transition: background-color var(--mrd-transition-fast), color var(--mrd-transition-fast);
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
.mrd-field__history-editor-add:hover {
|
|
117
|
-
background-color: var(--mrd-color-primary-light);
|
|
118
|
-
}
|