@energysage/es-ds-components 4.1.2 → 5.0.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 CHANGED
@@ -1,5 +1,29 @@
1
1
  # Changelog
2
2
 
3
+ ## [5.0.0](https://github.com/EnergySage/es-ds/compare/es-ds-components-v4.2.0...es-ds-components-v5.0.0) (2026-02-23)
4
+
5
+
6
+ ### ⚠ BREAKING CHANGES
7
+
8
+ * telephone input mask no longer allows cursor to get stuck ([#1708](https://github.com/EnergySage/es-ds/issues/1708))
9
+
10
+ ### Bug Fixes
11
+
12
+ * open security vulnerabilities ([#1710](https://github.com/EnergySage/es-ds/issues/1710)) ([3ebd65a](https://github.com/EnergySage/es-ds/commit/3ebd65abe10eba46faa1ee911e87a213cdd6d035))
13
+ * telephone input mask no longer allows cursor to get stuck ([#1708](https://github.com/EnergySage/es-ds/issues/1708)) ([304cb42](https://github.com/EnergySage/es-ds/commit/304cb4248bb16fdd8910754413e482ed4697c06c))
14
+
15
+ ## [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)
16
+
17
+
18
+ ### Features
19
+
20
+ * 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))
21
+
22
+
23
+ ### Bug Fixes
24
+
25
+ * 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))
26
+
3
27
  ## [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
28
 
5
29
 
@@ -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>
@@ -1,6 +1,7 @@
1
1
  <script setup lang="ts">
2
2
  import InputText from 'primevue/inputtext';
3
- import InputMask from 'primevue/inputmask';
3
+ import { vMaska } from 'maska/vue';
4
+
4
5
  // Prevents attributes from being applied to first <div>
5
6
  // v-bind="$attr" is on the input instead
6
7
  defineOptions({
@@ -51,7 +52,7 @@ defineProps({
51
52
  },
52
53
  phoneMaskValue: {
53
54
  type: String,
54
- default: '(999) 999-9999',
55
+ default: '(###) ###-####',
55
56
  required: false,
56
57
  },
57
58
  });
@@ -94,19 +95,18 @@ const hasExtraContext = () => !!slots.extraContext;
94
95
  class="prefix-icon position-absolute">
95
96
  <slot name="prefixIcon" />
96
97
  </span>
97
- <component
98
- :is="type === 'maskedTel' ? InputMask : InputText"
98
+ <input-text
99
99
  :id="id"
100
100
  v-bind="{ ...$attrs, class: undefined }"
101
- :type="type"
101
+ v-maska:mask="type === 'maskedTel' ? phoneMaskValue : ''"
102
102
  class="es-form-input form-control w-100"
103
103
  :class="{
104
104
  'has-prefix-icon': $slots.prefixIcon,
105
105
  'is-invalid': state === false,
106
106
  }"
107
- :mask="phoneMaskValue"
108
107
  :disabled="disabled"
109
- :invalid="state === false" />
108
+ :invalid="state === false"
109
+ :type="type" />
110
110
  <small
111
111
  v-if="hasMessage() && ((!hasSuccess() && state) || state == null)"
112
112
  class="text-muted">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@energysage/es-ds-components",
3
- "version": "4.1.2",
3
+ "version": "5.0.0",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "An EnergySage Vue component library",
@@ -23,6 +23,7 @@
23
23
  "@vuelidate/validators": "^2.0.4",
24
24
  "@vueuse/core": "^13.9.0",
25
25
  "html-truncate": "^1.2.2",
26
+ "maska": "^3.2.0",
26
27
  "nuxt": "^4.3.1",
27
28
  "nuxt-primevue": "^3.0.0",
28
29
  "primevue": "^3.53.0",
@@ -41,6 +42,7 @@
41
42
  "vue-tsc": "^3.0.8"
42
43
  },
43
44
  "overrides": {
44
- "chokidar": "==3.6.0"
45
+ "chokidar": "==3.6.0",
46
+ "minimatch": "==10.2.1"
45
47
  }
46
48
  }