@salla.sa/twilight-components 2.11.22 → 2.11.24
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/salla-button_37.cjs.entry.js +8 -3
- package/dist/collection/components/salla-file-upload/salla-file-upload.js +10 -5
- package/dist/components/salla-file-upload2.js +8 -3
- package/dist/esm/salla-button_37.entry.js +8 -3
- package/dist/esm-es5/salla-button_37.entry.js +1 -1
- package/dist/twilight/p-1b87ab66.system.js +1 -1
- package/dist/twilight/p-3976df0c.entry.js +36 -0
- package/dist/twilight/{p-a55496d9.system.entry.js → p-62695b20.system.entry.js} +1 -1
- package/dist/twilight/twilight.esm.js +1 -1
- package/dist/types/components/salla-file-upload/salla-file-upload.d.ts +1 -1
- package/dist/types/components.d.ts +2 -2
- package/package.json +2 -2
- package/dist/twilight/p-5f625abf.entry.js +0 -36
|
@@ -20695,9 +20695,9 @@ const SallaFileUpload = class {
|
|
|
20695
20695
|
*/
|
|
20696
20696
|
this.formData = "{}";
|
|
20697
20697
|
/**
|
|
20698
|
-
* The maximum size of a file, for instance
|
|
20698
|
+
* The maximum size of a file, for instance 2MB or 750KB
|
|
20699
20699
|
*/
|
|
20700
|
-
this.maxFileSize = '
|
|
20700
|
+
this.maxFileSize = '2MB';
|
|
20701
20701
|
/**
|
|
20702
20702
|
* Enable or disable drag n' drop
|
|
20703
20703
|
*/
|
|
@@ -20852,7 +20852,12 @@ const SallaFileUpload = class {
|
|
|
20852
20852
|
this.filepond[key] = value;
|
|
20853
20853
|
}
|
|
20854
20854
|
getLabel() {
|
|
20855
|
-
|
|
20855
|
+
if (this.labelIdle) {
|
|
20856
|
+
return this.labelIdle
|
|
20857
|
+
.replace('common.uploader.drag_and_drop', salla.lang.get('common.uploader.drag_and_drop'))
|
|
20858
|
+
.replace('common.uploader.browse', salla.lang.get('common.uploader.browse'));
|
|
20859
|
+
}
|
|
20860
|
+
return `${salla.lang.get('common.uploader.drag_and_drop')}<span class="filepond--label-action"> ${salla.lang.get('common.uploader.browse')} </span>`;
|
|
20856
20861
|
}
|
|
20857
20862
|
/**
|
|
20858
20863
|
*
|
|
@@ -28,9 +28,9 @@ export class SallaFileUpload {
|
|
|
28
28
|
*/
|
|
29
29
|
this.formData = "{}";
|
|
30
30
|
/**
|
|
31
|
-
* The maximum size of a file, for instance
|
|
31
|
+
* The maximum size of a file, for instance 2MB or 750KB
|
|
32
32
|
*/
|
|
33
|
-
this.maxFileSize = '
|
|
33
|
+
this.maxFileSize = '2MB';
|
|
34
34
|
/**
|
|
35
35
|
* Enable or disable drag n' drop
|
|
36
36
|
*/
|
|
@@ -185,7 +185,12 @@ export class SallaFileUpload {
|
|
|
185
185
|
this.filepond[key] = value;
|
|
186
186
|
}
|
|
187
187
|
getLabel() {
|
|
188
|
-
|
|
188
|
+
if (this.labelIdle) {
|
|
189
|
+
return this.labelIdle
|
|
190
|
+
.replace('common.uploader.drag_and_drop', salla.lang.get('common.uploader.drag_and_drop'))
|
|
191
|
+
.replace('common.uploader.browse', salla.lang.get('common.uploader.browse'));
|
|
192
|
+
}
|
|
193
|
+
return `${salla.lang.get('common.uploader.drag_and_drop')}<span class="filepond--label-action"> ${salla.lang.get('common.uploader.browse')} </span>`;
|
|
189
194
|
}
|
|
190
195
|
/**
|
|
191
196
|
*
|
|
@@ -574,11 +579,11 @@ export class SallaFileUpload {
|
|
|
574
579
|
"optional": false,
|
|
575
580
|
"docs": {
|
|
576
581
|
"tags": [],
|
|
577
|
-
"text": "The maximum size of a file, for instance
|
|
582
|
+
"text": "The maximum size of a file, for instance 2MB or 750KB"
|
|
578
583
|
},
|
|
579
584
|
"attribute": "max-file-size",
|
|
580
585
|
"reflect": false,
|
|
581
|
-
"defaultValue": "'
|
|
586
|
+
"defaultValue": "'2MB'"
|
|
582
587
|
},
|
|
583
588
|
"disabled": {
|
|
584
589
|
"type": "boolean",
|
|
@@ -15129,9 +15129,9 @@ const SallaFileUpload = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
|
15129
15129
|
*/
|
|
15130
15130
|
this.formData = "{}";
|
|
15131
15131
|
/**
|
|
15132
|
-
* The maximum size of a file, for instance
|
|
15132
|
+
* The maximum size of a file, for instance 2MB or 750KB
|
|
15133
15133
|
*/
|
|
15134
|
-
this.maxFileSize = '
|
|
15134
|
+
this.maxFileSize = '2MB';
|
|
15135
15135
|
/**
|
|
15136
15136
|
* Enable or disable drag n' drop
|
|
15137
15137
|
*/
|
|
@@ -15286,7 +15286,12 @@ const SallaFileUpload = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
|
15286
15286
|
this.filepond[key] = value;
|
|
15287
15287
|
}
|
|
15288
15288
|
getLabel() {
|
|
15289
|
-
|
|
15289
|
+
if (this.labelIdle) {
|
|
15290
|
+
return this.labelIdle
|
|
15291
|
+
.replace('common.uploader.drag_and_drop', salla.lang.get('common.uploader.drag_and_drop'))
|
|
15292
|
+
.replace('common.uploader.browse', salla.lang.get('common.uploader.browse'));
|
|
15293
|
+
}
|
|
15294
|
+
return `${salla.lang.get('common.uploader.drag_and_drop')}<span class="filepond--label-action"> ${salla.lang.get('common.uploader.browse')} </span>`;
|
|
15290
15295
|
}
|
|
15291
15296
|
/**
|
|
15292
15297
|
*
|
|
@@ -20691,9 +20691,9 @@ const SallaFileUpload = class {
|
|
|
20691
20691
|
*/
|
|
20692
20692
|
this.formData = "{}";
|
|
20693
20693
|
/**
|
|
20694
|
-
* The maximum size of a file, for instance
|
|
20694
|
+
* The maximum size of a file, for instance 2MB or 750KB
|
|
20695
20695
|
*/
|
|
20696
|
-
this.maxFileSize = '
|
|
20696
|
+
this.maxFileSize = '2MB';
|
|
20697
20697
|
/**
|
|
20698
20698
|
* Enable or disable drag n' drop
|
|
20699
20699
|
*/
|
|
@@ -20848,7 +20848,12 @@ const SallaFileUpload = class {
|
|
|
20848
20848
|
this.filepond[key] = value;
|
|
20849
20849
|
}
|
|
20850
20850
|
getLabel() {
|
|
20851
|
-
|
|
20851
|
+
if (this.labelIdle) {
|
|
20852
|
+
return this.labelIdle
|
|
20853
|
+
.replace('common.uploader.drag_and_drop', salla.lang.get('common.uploader.drag_and_drop'))
|
|
20854
|
+
.replace('common.uploader.browse', salla.lang.get('common.uploader.browse'));
|
|
20855
|
+
}
|
|
20856
|
+
return `${salla.lang.get('common.uploader.drag_and_drop')}<span class="filepond--label-action"> ${salla.lang.get('common.uploader.browse')} </span>`;
|
|
20852
20857
|
}
|
|
20853
20858
|
/**
|
|
20854
20859
|
*
|