@energysage/es-ds-components 4.1.2 → 4.2.0
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/CHANGELOG.md +12 -0
- package/app/components/es-file-input.vue +14 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [4.2.0](https://github.com/EnergySage/es-ds/compare/es-ds-components-v4.1.2...es-ds-components-v4.2.0) (2026-02-16)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* expose clear and openFilePicker methods on EsFileInput ([#1703](https://github.com/EnergySage/es-ds/issues/1703)) ([0b011ac](https://github.com/EnergySage/es-ds/commit/0b011acdeddff26df0c54e2651e883a9965bd61b))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* ran npm audit fix for nanotar vulnerability ([#1706](https://github.com/EnergySage/es-ds/issues/1706)) ([57b579f](https://github.com/EnergySage/es-ds/commit/57b579fafdd3414aeb116cf51df675fc20007a23))
|
|
14
|
+
|
|
3
15
|
## [4.1.2](https://github.com/EnergySage/es-ds/compare/es-ds-components-v4.1.1...es-ds-components-v4.1.2) (2026-02-10)
|
|
4
16
|
|
|
5
17
|
|
|
@@ -284,12 +284,26 @@ const onDrop = (event: any) => {
|
|
|
284
284
|
verifyFiles(dataTransfersAsFiles);
|
|
285
285
|
};
|
|
286
286
|
|
|
287
|
+
const clear = () => {
|
|
288
|
+
if (fileInput.value) {
|
|
289
|
+
// @ts-ignore
|
|
290
|
+
fileInput.value.value = null;
|
|
291
|
+
}
|
|
292
|
+
};
|
|
293
|
+
|
|
287
294
|
const openFilePicker = () => {
|
|
288
295
|
if (fileInput.value) {
|
|
289
296
|
// @ts-expect-error not sure
|
|
290
297
|
fileInput.value.click();
|
|
291
298
|
}
|
|
292
299
|
};
|
|
300
|
+
|
|
301
|
+
// expose to parent components so alternate buttons can be used to open file modal
|
|
302
|
+
// https://vuejs.org/api/sfc-script-setup.html#defineexpose
|
|
303
|
+
defineExpose({
|
|
304
|
+
clear,
|
|
305
|
+
openFilePicker,
|
|
306
|
+
});
|
|
293
307
|
</script>
|
|
294
308
|
|
|
295
309
|
<template>
|