@madgex/design-system 13.6.0 → 13.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -29,8 +29,9 @@ i18n: {
|
|
|
29
29
|
removeButtonText: 'Remove file',
|
|
30
30
|
selectedFileText: 'Selected file:', // hidden text when a file has been selected
|
|
31
31
|
fallbackSelectedFileText: 'Use `[value]` or upload a different file',
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
cropperModalTitle: 'Edit image',
|
|
33
|
+
cropImageButtonText: 'Crop image',
|
|
34
|
+
cropperModalCloseButton: 'Close editor'
|
|
34
35
|
}
|
|
35
36
|
```
|
|
36
37
|
|
|
@@ -112,9 +112,16 @@
|
|
|
112
112
|
|
|
113
113
|
{# dont render cropper elements if opted out, mds-file-upload will handle missing elements #}
|
|
114
114
|
{% if not params.noImageCropper %}
|
|
115
|
-
{% call MdsModal({
|
|
116
|
-
|
|
117
|
-
|
|
115
|
+
{% call MdsModal({
|
|
116
|
+
id: params.id+'-cropper-modal',
|
|
117
|
+
siteContainerId: params.siteContainerId,
|
|
118
|
+
ariaLabelledby: params.id+'-cropper-modal-title',
|
|
119
|
+
i18n: {
|
|
120
|
+
closeText: params.i18n.cropperModalCloseButton | default('Close')
|
|
121
|
+
}
|
|
122
|
+
})
|
|
123
|
+
-%}
|
|
124
|
+
<h2 id="{{params.id}}-cropper-modal-title">{{params.i18n.cropperModalTitle | default('Edit image')}}</h2>
|
|
118
125
|
{{MdsImageCropper(params.cropper)}}
|
|
119
126
|
{%- endcall %}
|
|
120
127
|
{% endif %}
|