sas-ui 0.8.183 → 0.8.185
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/sas-alert_26.cjs.entry.js +9 -4
- package/dist/collection/components/sas-multiselect/sas-multiselect.js +4 -3
- package/dist/collection/components/sas-upload/sas-upload.js +5 -1
- package/dist/custom-elements/index.js +9 -4
- package/dist/esm/sas-alert_26.entry.js +9 -4
- package/dist/sas-ui/{p-13a9b779.entry.js → p-739a814b.entry.js} +1 -1
- package/dist/sas-ui/sas-ui.esm.js +1 -1
- package/package.json +1 -1
|
@@ -4709,9 +4709,10 @@ let SasMultiselect = class {
|
|
|
4709
4709
|
return this.el.shadowRoot.querySelector('sas-form-input-template').querySelector('sas-checkbox-group').shadowRoot.querySelector('sas-checkbox[checked]');
|
|
4710
4710
|
}
|
|
4711
4711
|
clearFilterText() {
|
|
4712
|
-
const
|
|
4713
|
-
|
|
4714
|
-
this.
|
|
4712
|
+
const filterInput = this.el.shadowRoot.querySelector(".filter");
|
|
4713
|
+
filterInput.value = "";
|
|
4714
|
+
this.filterText = "";
|
|
4715
|
+
this.filter();
|
|
4715
4716
|
}
|
|
4716
4717
|
clearSelection() {
|
|
4717
4718
|
this.values = [];
|
|
@@ -5679,6 +5680,10 @@ let SasUpload = class {
|
|
|
5679
5680
|
gif: 'image/gif',
|
|
5680
5681
|
xls: 'application/vnd.ms-excel',
|
|
5681
5682
|
xlsx: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
|
|
5683
|
+
mp4: 'video/mp4',
|
|
5684
|
+
mov: 'video/quicktime',
|
|
5685
|
+
wmv: 'video/x-ms-asf, video/x-ms-wmv',
|
|
5686
|
+
avi: 'application/x-troff-msvideo, video/avi, video/msvideo, video/x-msvideo'
|
|
5682
5687
|
};
|
|
5683
5688
|
this.acceptTypes = [];
|
|
5684
5689
|
/**
|
|
@@ -6149,7 +6154,7 @@ let SasUpload = class {
|
|
|
6149
6154
|
: null, !this.disabled && !this.inputOutside
|
|
6150
6155
|
? index.h("div", { class: `info-container ${this.files.length > 0 && this.fullImage ? 'hide' : ''}` }, index.h("sas-icon", { class: "upload-icon", icon: this.type === 'image'
|
|
6151
6156
|
? "fal fa-camera-alt"
|
|
6152
|
-
: "fal fa-cloud-upload" }), index.h("div", { class: "drop-zone-text" }, "Drag and drop your ", this.type === 'image' ? 'photo' : '
|
|
6157
|
+
: "fal fa-cloud-upload" }), index.h("div", { class: "drop-zone-text" }, "Drag and drop your ", this.type === 'image' ? 'photo' : 'file', " here, or", index.h("label", { class: "input-label", tabindex: 0, htmlFor: "input", onKeyDown: global.keydownEvent }, " browse")), index.h("input", { id: "input", type: "file", accept: this.getAcceptAttributeValue(), multiple: this.max !== 1, onChange: this.handleInputChange }), index.h("div", { class: "tip" }, "(Accepted files ", `.${this.acceptTypes.join(', .')}`, " Max size ", this.size, "mb each)"))
|
|
6153
6158
|
: null, this.files.length > 0
|
|
6154
6159
|
? index.h("div", { class: "file-container" }, this.getFiles())
|
|
6155
6160
|
: null)));
|
|
@@ -638,9 +638,10 @@ export class SasMultiselect {
|
|
|
638
638
|
return this.el.shadowRoot.querySelector('sas-form-input-template').querySelector('sas-checkbox-group').shadowRoot.querySelector('sas-checkbox[checked]');
|
|
639
639
|
}
|
|
640
640
|
clearFilterText() {
|
|
641
|
-
const
|
|
642
|
-
|
|
643
|
-
this.
|
|
641
|
+
const filterInput = this.el.shadowRoot.querySelector(".filter");
|
|
642
|
+
filterInput.value = "";
|
|
643
|
+
this.filterText = "";
|
|
644
|
+
this.filter();
|
|
644
645
|
}
|
|
645
646
|
clearSelection() {
|
|
646
647
|
this.values = [];
|
|
@@ -14,6 +14,10 @@ export class SasUpload {
|
|
|
14
14
|
gif: 'image/gif',
|
|
15
15
|
xls: 'application/vnd.ms-excel',
|
|
16
16
|
xlsx: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
|
|
17
|
+
mp4: 'video/mp4',
|
|
18
|
+
mov: 'video/quicktime',
|
|
19
|
+
wmv: 'video/x-ms-asf, video/x-ms-wmv',
|
|
20
|
+
avi: 'application/x-troff-msvideo, video/avi, video/msvideo, video/x-msvideo'
|
|
17
21
|
};
|
|
18
22
|
this.acceptTypes = [];
|
|
19
23
|
/**
|
|
@@ -502,7 +506,7 @@ export class SasUpload {
|
|
|
502
506
|
: "fal fa-cloud-upload" }),
|
|
503
507
|
h("div", { class: "drop-zone-text" },
|
|
504
508
|
"Drag and drop your ",
|
|
505
|
-
this.type === 'image' ? 'photo' : '
|
|
509
|
+
this.type === 'image' ? 'photo' : 'file',
|
|
506
510
|
" here, or",
|
|
507
511
|
h("label", { class: "input-label", tabindex: 0, htmlFor: "input", onKeyDown: keydownEvent }, " browse")),
|
|
508
512
|
h("input", { id: "input", type: "file", accept: this.getAcceptAttributeValue(), multiple: this.max !== 1, onChange: this.handleInputChange }),
|
|
@@ -11658,9 +11658,10 @@ let SasMultiselect$1 = class extends H {
|
|
|
11658
11658
|
return this.el.shadowRoot.querySelector('sas-form-input-template').querySelector('sas-checkbox-group').shadowRoot.querySelector('sas-checkbox[checked]');
|
|
11659
11659
|
}
|
|
11660
11660
|
clearFilterText() {
|
|
11661
|
-
const
|
|
11662
|
-
|
|
11663
|
-
this.
|
|
11661
|
+
const filterInput = this.el.shadowRoot.querySelector(".filter");
|
|
11662
|
+
filterInput.value = "";
|
|
11663
|
+
this.filterText = "";
|
|
11664
|
+
this.filter();
|
|
11664
11665
|
}
|
|
11665
11666
|
clearSelection() {
|
|
11666
11667
|
this.values = [];
|
|
@@ -13838,6 +13839,10 @@ let SasUpload$1 = class extends H {
|
|
|
13838
13839
|
gif: 'image/gif',
|
|
13839
13840
|
xls: 'application/vnd.ms-excel',
|
|
13840
13841
|
xlsx: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
|
|
13842
|
+
mp4: 'video/mp4',
|
|
13843
|
+
mov: 'video/quicktime',
|
|
13844
|
+
wmv: 'video/x-ms-asf, video/x-ms-wmv',
|
|
13845
|
+
avi: 'application/x-troff-msvideo, video/avi, video/msvideo, video/x-msvideo'
|
|
13841
13846
|
};
|
|
13842
13847
|
this.acceptTypes = [];
|
|
13843
13848
|
/**
|
|
@@ -14308,7 +14313,7 @@ let SasUpload$1 = class extends H {
|
|
|
14308
14313
|
: null, !this.disabled && !this.inputOutside
|
|
14309
14314
|
? h("div", { class: `info-container ${this.files.length > 0 && this.fullImage ? 'hide' : ''}` }, h("sas-icon", { class: "upload-icon", icon: this.type === 'image'
|
|
14310
14315
|
? "fal fa-camera-alt"
|
|
14311
|
-
: "fal fa-cloud-upload" }), h("div", { class: "drop-zone-text" }, "Drag and drop your ", this.type === 'image' ? 'photo' : '
|
|
14316
|
+
: "fal fa-cloud-upload" }), h("div", { class: "drop-zone-text" }, "Drag and drop your ", this.type === 'image' ? 'photo' : 'file', " here, or", h("label", { class: "input-label", tabindex: 0, htmlFor: "input", onKeyDown: keydownEvent }, " browse")), h("input", { id: "input", type: "file", accept: this.getAcceptAttributeValue(), multiple: this.max !== 1, onChange: this.handleInputChange }), h("div", { class: "tip" }, "(Accepted files ", `.${this.acceptTypes.join(', .')}`, " Max size ", this.size, "mb each)"))
|
|
14312
14317
|
: null, this.files.length > 0
|
|
14313
14318
|
? h("div", { class: "file-container" }, this.getFiles())
|
|
14314
14319
|
: null)));
|
|
@@ -4705,9 +4705,10 @@ let SasMultiselect = class {
|
|
|
4705
4705
|
return this.el.shadowRoot.querySelector('sas-form-input-template').querySelector('sas-checkbox-group').shadowRoot.querySelector('sas-checkbox[checked]');
|
|
4706
4706
|
}
|
|
4707
4707
|
clearFilterText() {
|
|
4708
|
-
const
|
|
4709
|
-
|
|
4710
|
-
this.
|
|
4708
|
+
const filterInput = this.el.shadowRoot.querySelector(".filter");
|
|
4709
|
+
filterInput.value = "";
|
|
4710
|
+
this.filterText = "";
|
|
4711
|
+
this.filter();
|
|
4711
4712
|
}
|
|
4712
4713
|
clearSelection() {
|
|
4713
4714
|
this.values = [];
|
|
@@ -5675,6 +5676,10 @@ let SasUpload = class {
|
|
|
5675
5676
|
gif: 'image/gif',
|
|
5676
5677
|
xls: 'application/vnd.ms-excel',
|
|
5677
5678
|
xlsx: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
|
|
5679
|
+
mp4: 'video/mp4',
|
|
5680
|
+
mov: 'video/quicktime',
|
|
5681
|
+
wmv: 'video/x-ms-asf, video/x-ms-wmv',
|
|
5682
|
+
avi: 'application/x-troff-msvideo, video/avi, video/msvideo, video/x-msvideo'
|
|
5678
5683
|
};
|
|
5679
5684
|
this.acceptTypes = [];
|
|
5680
5685
|
/**
|
|
@@ -6145,7 +6150,7 @@ let SasUpload = class {
|
|
|
6145
6150
|
: null, !this.disabled && !this.inputOutside
|
|
6146
6151
|
? h("div", { class: `info-container ${this.files.length > 0 && this.fullImage ? 'hide' : ''}` }, h("sas-icon", { class: "upload-icon", icon: this.type === 'image'
|
|
6147
6152
|
? "fal fa-camera-alt"
|
|
6148
|
-
: "fal fa-cloud-upload" }), h("div", { class: "drop-zone-text" }, "Drag and drop your ", this.type === 'image' ? 'photo' : '
|
|
6153
|
+
: "fal fa-cloud-upload" }), h("div", { class: "drop-zone-text" }, "Drag and drop your ", this.type === 'image' ? 'photo' : 'file', " here, or", h("label", { class: "input-label", tabindex: 0, htmlFor: "input", onKeyDown: keydownEvent }, " browse")), h("input", { id: "input", type: "file", accept: this.getAcceptAttributeValue(), multiple: this.max !== 1, onChange: this.handleInputChange }), h("div", { class: "tip" }, "(Accepted files ", `.${this.acceptTypes.join(', .')}`, " Max size ", this.size, "mb each)"))
|
|
6149
6154
|
: null, this.files.length > 0
|
|
6150
6155
|
? h("div", { class: "file-container" }, this.getFiles())
|
|
6151
6156
|
: null)));
|