@energysage/es-ds-components 4.2.0 → 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,17 @@
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
+
3
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)
4
16
 
5
17
 
@@ -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.2.0",
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
  }