@mmlogic/components 0.3.5 → 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} +31 -308
- 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} +32 -394
- 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/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 -3961
- 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 -707
- 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 -809
- 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 -135
- 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 -145
- package/dist/collection/dev/app.js +0 -890
- 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 -3940
- 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-e477187c.entry.js +0 -1
|
@@ -1,291 +0,0 @@
|
|
|
1
|
-
import { Host, h } from "@stencil/core";
|
|
2
|
-
import { t } from "../../utils/i18n";
|
|
3
|
-
import { validateRequired, validateUrl } from "../../utils/validation";
|
|
4
|
-
export class MrdHyperlinkField {
|
|
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.internalHref = '';
|
|
14
|
-
this.internalName = '';
|
|
15
|
-
this.error = '';
|
|
16
|
-
this.handleHrefInput = (e) => {
|
|
17
|
-
this.internalHref = e.target.value;
|
|
18
|
-
this.mrdChange.emit({ name: this.name, value: this.buildValue() });
|
|
19
|
-
};
|
|
20
|
-
this.handleNameInput = (e) => {
|
|
21
|
-
this.internalName = e.target.value;
|
|
22
|
-
this.mrdChange.emit({ name: this.name, value: this.buildValue() });
|
|
23
|
-
};
|
|
24
|
-
this.handleBlur = () => {
|
|
25
|
-
if (this.required && !validateRequired(this.internalHref)) {
|
|
26
|
-
this.error = t('required', this.locale);
|
|
27
|
-
}
|
|
28
|
-
else if (this.internalHref && !validateUrl(this.internalHref)) {
|
|
29
|
-
this.error = t('invalid_url', this.locale);
|
|
30
|
-
}
|
|
31
|
-
else {
|
|
32
|
-
this.error = '';
|
|
33
|
-
}
|
|
34
|
-
this.mrdBlur.emit({ name: this.name, value: this.buildValue() });
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
componentWillLoad() {
|
|
38
|
-
this.parseValue(this.value);
|
|
39
|
-
}
|
|
40
|
-
valueChanged(val) {
|
|
41
|
-
this.parseValue(val);
|
|
42
|
-
}
|
|
43
|
-
parseValue(val) {
|
|
44
|
-
var _a, _b, _c;
|
|
45
|
-
if (val !== null && val !== undefined && typeof val === 'object' && 'href' in val) {
|
|
46
|
-
this.internalHref = (_a = val.href) !== null && _a !== void 0 ? _a : '';
|
|
47
|
-
this.internalName = (_b = val.name) !== null && _b !== void 0 ? _b : '';
|
|
48
|
-
}
|
|
49
|
-
else {
|
|
50
|
-
this.internalHref = (_c = val) !== null && _c !== void 0 ? _c : '';
|
|
51
|
-
this.internalName = '';
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
buildValue() {
|
|
55
|
-
return this.internalName.trim()
|
|
56
|
-
? { href: this.internalHref, name: this.internalName }
|
|
57
|
-
: { href: this.internalHref };
|
|
58
|
-
}
|
|
59
|
-
render() {
|
|
60
|
-
const hasError = !!this.error;
|
|
61
|
-
if (this.disabled) {
|
|
62
|
-
return (h(Host, null, h("div", { class: "mrd-hyperlink-field" }, this.label && h("span", { class: "mrd-hyperlink-field__label" }, this.label), this.internalHref
|
|
63
|
-
? h("a", { class: "mrd-hyperlink-field__link", href: this.internalHref, target: "_blank", rel: "noopener noreferrer" }, this.internalName || this.internalHref)
|
|
64
|
-
: h("span", { class: "mrd-hyperlink-field__empty" }, "\u2014"))));
|
|
65
|
-
}
|
|
66
|
-
return (h(Host, null, h("div", { class: "mrd-hyperlink-field" }, this.label && (h("label", { class: `mrd-hyperlink-field__label${this.required ? ' mrd-hyperlink-field__label--required' : ''}` }, this.label)), h("input", { class: `mrd-hyperlink-field__input${hasError ? ' mrd-hyperlink-field__input--error' : ''}`, type: "url", name: this.name, value: this.internalHref, placeholder: this.placeholder || 'https://', required: this.required, onInput: this.handleHrefInput, onBlur: this.handleBlur }), h("input", { class: "mrd-hyperlink-field__input mrd-hyperlink-field__input--name", type: "text", value: this.internalName, placeholder: t('hyperlink_name', this.locale), onInput: this.handleNameInput, onBlur: this.handleBlur }), hasError && h("span", { class: "mrd-hyperlink-field__error" }, this.error))));
|
|
67
|
-
}
|
|
68
|
-
static get is() { return "mrd-hyperlink-field"; }
|
|
69
|
-
static get encapsulation() { return "scoped"; }
|
|
70
|
-
static get originalStyleUrls() {
|
|
71
|
-
return {
|
|
72
|
-
"$": ["mrd-hyperlink-field.scss"]
|
|
73
|
-
};
|
|
74
|
-
}
|
|
75
|
-
static get styleUrls() {
|
|
76
|
-
return {
|
|
77
|
-
"$": ["mrd-hyperlink-field.css"]
|
|
78
|
-
};
|
|
79
|
-
}
|
|
80
|
-
static get properties() {
|
|
81
|
-
return {
|
|
82
|
-
"name": {
|
|
83
|
-
"type": "string",
|
|
84
|
-
"mutable": false,
|
|
85
|
-
"complexType": {
|
|
86
|
-
"original": "string",
|
|
87
|
-
"resolved": "string",
|
|
88
|
-
"references": {}
|
|
89
|
-
},
|
|
90
|
-
"required": false,
|
|
91
|
-
"optional": false,
|
|
92
|
-
"docs": {
|
|
93
|
-
"tags": [],
|
|
94
|
-
"text": ""
|
|
95
|
-
},
|
|
96
|
-
"getter": false,
|
|
97
|
-
"setter": false,
|
|
98
|
-
"reflect": false,
|
|
99
|
-
"attribute": "name",
|
|
100
|
-
"defaultValue": "''"
|
|
101
|
-
},
|
|
102
|
-
"label": {
|
|
103
|
-
"type": "string",
|
|
104
|
-
"mutable": false,
|
|
105
|
-
"complexType": {
|
|
106
|
-
"original": "string",
|
|
107
|
-
"resolved": "string",
|
|
108
|
-
"references": {}
|
|
109
|
-
},
|
|
110
|
-
"required": false,
|
|
111
|
-
"optional": false,
|
|
112
|
-
"docs": {
|
|
113
|
-
"tags": [],
|
|
114
|
-
"text": ""
|
|
115
|
-
},
|
|
116
|
-
"getter": false,
|
|
117
|
-
"setter": false,
|
|
118
|
-
"reflect": false,
|
|
119
|
-
"attribute": "label",
|
|
120
|
-
"defaultValue": "''"
|
|
121
|
-
},
|
|
122
|
-
"value": {
|
|
123
|
-
"type": "string",
|
|
124
|
-
"mutable": false,
|
|
125
|
-
"complexType": {
|
|
126
|
-
"original": "HyperlinkValue | string",
|
|
127
|
-
"resolved": "HyperlinkValue | string",
|
|
128
|
-
"references": {
|
|
129
|
-
"HyperlinkValue": {
|
|
130
|
-
"location": "import",
|
|
131
|
-
"path": "../../types/client-layout",
|
|
132
|
-
"id": "src/types/client-layout.ts::HyperlinkValue",
|
|
133
|
-
"referenceLocation": "HyperlinkValue"
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
},
|
|
137
|
-
"required": false,
|
|
138
|
-
"optional": false,
|
|
139
|
-
"docs": {
|
|
140
|
-
"tags": [],
|
|
141
|
-
"text": ""
|
|
142
|
-
},
|
|
143
|
-
"getter": false,
|
|
144
|
-
"setter": false,
|
|
145
|
-
"reflect": false,
|
|
146
|
-
"attribute": "value",
|
|
147
|
-
"defaultValue": "''"
|
|
148
|
-
},
|
|
149
|
-
"placeholder": {
|
|
150
|
-
"type": "string",
|
|
151
|
-
"mutable": false,
|
|
152
|
-
"complexType": {
|
|
153
|
-
"original": "string",
|
|
154
|
-
"resolved": "string",
|
|
155
|
-
"references": {}
|
|
156
|
-
},
|
|
157
|
-
"required": false,
|
|
158
|
-
"optional": false,
|
|
159
|
-
"docs": {
|
|
160
|
-
"tags": [],
|
|
161
|
-
"text": ""
|
|
162
|
-
},
|
|
163
|
-
"getter": false,
|
|
164
|
-
"setter": false,
|
|
165
|
-
"reflect": false,
|
|
166
|
-
"attribute": "placeholder",
|
|
167
|
-
"defaultValue": "''"
|
|
168
|
-
},
|
|
169
|
-
"required": {
|
|
170
|
-
"type": "boolean",
|
|
171
|
-
"mutable": false,
|
|
172
|
-
"complexType": {
|
|
173
|
-
"original": "boolean",
|
|
174
|
-
"resolved": "boolean",
|
|
175
|
-
"references": {}
|
|
176
|
-
},
|
|
177
|
-
"required": false,
|
|
178
|
-
"optional": false,
|
|
179
|
-
"docs": {
|
|
180
|
-
"tags": [],
|
|
181
|
-
"text": ""
|
|
182
|
-
},
|
|
183
|
-
"getter": false,
|
|
184
|
-
"setter": false,
|
|
185
|
-
"reflect": false,
|
|
186
|
-
"attribute": "required",
|
|
187
|
-
"defaultValue": "false"
|
|
188
|
-
},
|
|
189
|
-
"disabled": {
|
|
190
|
-
"type": "boolean",
|
|
191
|
-
"mutable": false,
|
|
192
|
-
"complexType": {
|
|
193
|
-
"original": "boolean",
|
|
194
|
-
"resolved": "boolean",
|
|
195
|
-
"references": {}
|
|
196
|
-
},
|
|
197
|
-
"required": false,
|
|
198
|
-
"optional": false,
|
|
199
|
-
"docs": {
|
|
200
|
-
"tags": [],
|
|
201
|
-
"text": ""
|
|
202
|
-
},
|
|
203
|
-
"getter": false,
|
|
204
|
-
"setter": false,
|
|
205
|
-
"reflect": false,
|
|
206
|
-
"attribute": "disabled",
|
|
207
|
-
"defaultValue": "false"
|
|
208
|
-
},
|
|
209
|
-
"locale": {
|
|
210
|
-
"type": "string",
|
|
211
|
-
"mutable": false,
|
|
212
|
-
"complexType": {
|
|
213
|
-
"original": "string",
|
|
214
|
-
"resolved": "string",
|
|
215
|
-
"references": {}
|
|
216
|
-
},
|
|
217
|
-
"required": false,
|
|
218
|
-
"optional": false,
|
|
219
|
-
"docs": {
|
|
220
|
-
"tags": [],
|
|
221
|
-
"text": ""
|
|
222
|
-
},
|
|
223
|
-
"getter": false,
|
|
224
|
-
"setter": false,
|
|
225
|
-
"reflect": false,
|
|
226
|
-
"attribute": "locale",
|
|
227
|
-
"defaultValue": "navigator.language"
|
|
228
|
-
}
|
|
229
|
-
};
|
|
230
|
-
}
|
|
231
|
-
static get states() {
|
|
232
|
-
return {
|
|
233
|
-
"internalHref": {},
|
|
234
|
-
"internalName": {},
|
|
235
|
-
"error": {}
|
|
236
|
-
};
|
|
237
|
-
}
|
|
238
|
-
static get events() {
|
|
239
|
-
return [{
|
|
240
|
-
"method": "mrdChange",
|
|
241
|
-
"name": "mrdChange",
|
|
242
|
-
"bubbles": true,
|
|
243
|
-
"cancelable": true,
|
|
244
|
-
"composed": true,
|
|
245
|
-
"docs": {
|
|
246
|
-
"tags": [],
|
|
247
|
-
"text": ""
|
|
248
|
-
},
|
|
249
|
-
"complexType": {
|
|
250
|
-
"original": "{ name: string; value: HyperlinkValue }",
|
|
251
|
-
"resolved": "{ name: string; value: HyperlinkValue; }",
|
|
252
|
-
"references": {
|
|
253
|
-
"HyperlinkValue": {
|
|
254
|
-
"location": "import",
|
|
255
|
-
"path": "../../types/client-layout",
|
|
256
|
-
"id": "src/types/client-layout.ts::HyperlinkValue",
|
|
257
|
-
"referenceLocation": "HyperlinkValue"
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
|
-
}
|
|
261
|
-
}, {
|
|
262
|
-
"method": "mrdBlur",
|
|
263
|
-
"name": "mrdBlur",
|
|
264
|
-
"bubbles": true,
|
|
265
|
-
"cancelable": true,
|
|
266
|
-
"composed": true,
|
|
267
|
-
"docs": {
|
|
268
|
-
"tags": [],
|
|
269
|
-
"text": ""
|
|
270
|
-
},
|
|
271
|
-
"complexType": {
|
|
272
|
-
"original": "{ name: string; value: HyperlinkValue }",
|
|
273
|
-
"resolved": "{ name: string; value: HyperlinkValue; }",
|
|
274
|
-
"references": {
|
|
275
|
-
"HyperlinkValue": {
|
|
276
|
-
"location": "import",
|
|
277
|
-
"path": "../../types/client-layout",
|
|
278
|
-
"id": "src/types/client-layout.ts::HyperlinkValue",
|
|
279
|
-
"referenceLocation": "HyperlinkValue"
|
|
280
|
-
}
|
|
281
|
-
}
|
|
282
|
-
}
|
|
283
|
-
}];
|
|
284
|
-
}
|
|
285
|
-
static get watchers() {
|
|
286
|
-
return [{
|
|
287
|
-
"propName": "value",
|
|
288
|
-
"methodName": "valueChanged"
|
|
289
|
-
}];
|
|
290
|
-
}
|
|
291
|
-
}
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
:host {
|
|
2
|
-
display: block;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.mrd-hyperlink-field {
|
|
6
|
-
display: flex;
|
|
7
|
-
flex-direction: column;
|
|
8
|
-
gap: var(--mrd-space-1);
|
|
9
|
-
width: 100%;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.mrd-hyperlink-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-hyperlink-field__label--required::after {
|
|
21
|
-
content: ' *';
|
|
22
|
-
color: var(--mrd-color-danger);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.mrd-hyperlink-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-hyperlink-field__input::placeholder {
|
|
43
|
-
color: var(--mrd-input-placeholder-color);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.mrd-hyperlink-field__input:focus {
|
|
47
|
-
border-color: var(--mrd-border-color-focus);
|
|
48
|
-
box-shadow: var(--mrd-shadow-focus);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.mrd-hyperlink-field__input:disabled {
|
|
52
|
-
background-color: var(--mrd-input-bg-disabled);
|
|
53
|
-
cursor: not-allowed;
|
|
54
|
-
opacity: 0.7;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.mrd-hyperlink-field__input--error {
|
|
58
|
-
border-color: var(--mrd-border-color-error);
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.mrd-hyperlink-field__input--error:focus {
|
|
62
|
-
box-shadow: var(--mrd-shadow-focus-error);
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.mrd-hyperlink-field__input--name {
|
|
66
|
-
margin-top: var(--mrd-space-1);
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.mrd-hyperlink-field__link {
|
|
70
|
-
font-family: var(--mrd-font-family);
|
|
71
|
-
font-size: var(--mrd-font-size-base);
|
|
72
|
-
color: var(--mrd-color-primary);
|
|
73
|
-
text-decoration: underline;
|
|
74
|
-
word-break: break-all;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.mrd-hyperlink-field__link:hover {
|
|
78
|
-
opacity: 0.8;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
.mrd-hyperlink-field__empty {
|
|
82
|
-
font-family: var(--mrd-font-family);
|
|
83
|
-
font-size: var(--mrd-font-size-base);
|
|
84
|
-
color: var(--mrd-color-neutral-400);
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.mrd-hyperlink-field__error {
|
|
88
|
-
font-family: var(--mrd-font-family);
|
|
89
|
-
font-size: var(--mrd-error-font-size);
|
|
90
|
-
color: var(--mrd-error-color);
|
|
91
|
-
}
|