@eeplatform/nuxt-layer-common 1.7.11 → 1.7.12

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,11 @@
1
1
  # @eeplatform/nuxt-layer-common
2
2
 
3
+ ## 1.7.12
4
+
5
+ ### Patch Changes
6
+
7
+ - 07d90b1: Add required list validation
8
+
3
9
  ## 1.7.11
4
10
 
5
11
  ### Patch Changes
@@ -18,6 +18,10 @@ export default function useUtils() {
18
18
  return value.length ? "" : "Required";
19
19
  }
20
20
 
21
+ function requiredListRule(value: string[]) {
22
+ return value.length ? true : "Required";
23
+ }
24
+
21
25
  const minOneMonthAdvance = (value: string): boolean | string => {
22
26
  if (!/^(0[1-9]|1[0-2])\/(0[1-9]|[12][0-9]|3[01])\/\d{4}$/.test(value)) {
23
27
  return "Invalid date format (MM/DD/YYYY)";
@@ -294,6 +298,7 @@ export default function useUtils() {
294
298
 
295
299
  return {
296
300
  requiredRule,
301
+ requiredListRule,
297
302
  emailRule,
298
303
  passwordRule,
299
304
  confirmPasswordRule,
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@eeplatform/nuxt-layer-common",
3
3
  "license": "MIT",
4
4
  "type": "module",
5
- "version": "1.7.11",
5
+ "version": "1.7.12",
6
6
  "main": "./nuxt.config.ts",
7
7
  "publishConfig": {
8
8
  "access": "public"