cja-phoenix 1.2.56 → 1.2.58

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/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cja-phoenix",
3
3
  "configKey": "cja-phoenix",
4
- "version": "1.2.56",
4
+ "version": "1.2.58",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
@@ -13,6 +13,7 @@ type __VLS_Props = {
13
13
  validationMode?: "change" | "blur" | "none";
14
14
  errorDisplay?: boolean;
15
15
  id?: InputHTMLAttributes["id"];
16
+ autocomplete?: InputHTMLAttributes["autocomplete"];
16
17
  disabled?: InputHTMLAttributes["disabled"];
17
18
  dateFormat?: DateFormat;
18
19
  minDate?: string;
@@ -13,7 +13,7 @@
13
13
  }"
14
14
  >
15
15
  <input
16
- v-bind="{ id, disabled }"
16
+ v-bind="{ id, autocomplete, disabled }"
17
17
  ref="inputEl"
18
18
  v-model="model"
19
19
  v-maska="maskOptions"
@@ -75,6 +75,7 @@ const props = defineProps({
75
75
  validationMode: { type: String, required: false, default: "blur" },
76
76
  errorDisplay: { type: Boolean, required: false, default: true },
77
77
  id: { type: null, required: false },
78
+ autocomplete: { type: null, required: false },
78
79
  disabled: { type: null, required: false },
79
80
  dateFormat: { type: String, required: false, default: "DD/MM/YYYY" },
80
81
  minDate: { type: String, required: false },
@@ -13,6 +13,7 @@ type __VLS_Props = {
13
13
  validationMode?: "change" | "blur" | "none";
14
14
  errorDisplay?: boolean;
15
15
  id?: InputHTMLAttributes["id"];
16
+ autocomplete?: InputHTMLAttributes["autocomplete"];
16
17
  disabled?: InputHTMLAttributes["disabled"];
17
18
  dateFormat?: DateFormat;
18
19
  minDate?: string;
@@ -90,7 +90,7 @@ const file = (messages, options) => {
90
90
  validation = validation.test(
91
91
  "fileSize",
92
92
  messages.size,
93
- (v) => v?.file && options.size?.collectionType ? v.file?.size < byteSize[options.size?.collectionType] * options.size.value : true
93
+ (v) => v?.file && Object.keys(v.file).length != 0 && options.size?.collectionType ? v.file.size < byteSize[options.size?.collectionType] * options.size.value : true
94
94
  );
95
95
  }
96
96
  return validation;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cja-phoenix",
3
- "version": "1.2.56",
3
+ "version": "1.2.58",
4
4
  "description": "Phoenix utility",
5
5
  "repository": {
6
6
  "type": "git",