cja-phoenix 1.2.59 → 1.2.60

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.
Files changed (42) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/runtime/assets/scss/variables/_colors.scss +2 -2
  3. package/dist/runtime/components/form/CheckboxInput.d.vue.ts +7 -7
  4. package/dist/runtime/components/form/CheckboxInput.vue +3 -6
  5. package/dist/runtime/components/form/CheckboxInput.vue.d.ts +7 -7
  6. package/dist/runtime/components/form/CheckboxInputList.d.vue.ts +8 -9
  7. package/dist/runtime/components/form/CheckboxInputList.vue +2 -5
  8. package/dist/runtime/components/form/CheckboxInputList.vue.d.ts +8 -9
  9. package/dist/runtime/components/form/CurrencyInput.d.vue.ts +8 -9
  10. package/dist/runtime/components/form/CurrencyInput.vue +2 -2
  11. package/dist/runtime/components/form/CurrencyInput.vue.d.ts +8 -9
  12. package/dist/runtime/components/form/DateInput.d.vue.ts +0 -1
  13. package/dist/runtime/components/form/DateInput.vue +1 -1
  14. package/dist/runtime/components/form/DateInput.vue.d.ts +0 -1
  15. package/dist/runtime/components/form/FileInput.d.vue.ts +0 -1
  16. package/dist/runtime/components/form/FileInput.vue +1 -1
  17. package/dist/runtime/components/form/FileInput.vue.d.ts +0 -1
  18. package/dist/runtime/components/form/NumberInput.d.vue.ts +6 -7
  19. package/dist/runtime/components/form/NumberInput.vue +3 -6
  20. package/dist/runtime/components/form/NumberInput.vue.d.ts +6 -7
  21. package/dist/runtime/components/form/PhoneInput.d.vue.ts +0 -1
  22. package/dist/runtime/components/form/PhoneInput.vue +1 -1
  23. package/dist/runtime/components/form/PhoneInput.vue.d.ts +0 -1
  24. package/dist/runtime/components/form/RadioInputList.d.vue.ts +0 -1
  25. package/dist/runtime/components/form/RadioInputList.vue +1 -1
  26. package/dist/runtime/components/form/RadioInputList.vue.d.ts +0 -1
  27. package/dist/runtime/components/form/SelectInput.d.vue.ts +0 -1
  28. package/dist/runtime/components/form/SelectInput.vue +1 -1
  29. package/dist/runtime/components/form/SelectInput.vue.d.ts +0 -1
  30. package/dist/runtime/components/form/SliderInput.d.vue.ts +0 -1
  31. package/dist/runtime/components/form/SliderInput.vue +15 -10
  32. package/dist/runtime/components/form/SliderInput.vue.d.ts +0 -1
  33. package/dist/runtime/components/form/TextInput.d.vue.ts +14 -15
  34. package/dist/runtime/components/form/TextInput.vue +8 -3
  35. package/dist/runtime/components/form/TextInput.vue.d.ts +14 -15
  36. package/dist/runtime/components/form/TextareaInput.d.vue.ts +9 -10
  37. package/dist/runtime/components/form/TextareaInput.vue +1 -1
  38. package/dist/runtime/components/form/TextareaInput.vue.d.ts +9 -10
  39. package/dist/runtime/components/form/structure/Container.d.vue.ts +4 -2
  40. package/dist/runtime/components/form/structure/Container.vue +2 -5
  41. package/dist/runtime/components/form/structure/Container.vue.d.ts +4 -2
  42. package/package.json +1 -1
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.59",
4
+ "version": "1.2.60",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
@@ -55,7 +55,7 @@ $gradient-in: linear-gradient(75deg, #f6f4ff, $white);
55
55
  $gradient-en: linear-gradient(75deg, #fffbef, $white);
56
56
  $gradient-bb: linear-gradient(75deg, #fff7f1, $white);
57
57
  $gradient-cc: linear-gradient(75deg, #fff4ff, $white);
58
- $gradient-sa: linear-gradient(75deg, #e8f1f1, $white);
58
+ $gradient-td: linear-gradient(75deg, #e8f1f1, $white);
59
59
  $gradient-cja-1: linear-gradient(90deg, $bright-green 2.5%, $main-blue 100%);
60
60
 
61
61
  $colors: (
@@ -97,5 +97,5 @@ $gradients: (
97
97
  "en": $gradient-en,
98
98
  "bb": $gradient-bb,
99
99
  "cc": $gradient-cc,
100
- "sa": $gradient-sa,
100
+ "td": $gradient-td,
101
101
  );
@@ -1,15 +1,15 @@
1
- import type { InputHTMLAttributes } from 'vue';
2
- import type { Lazy, Schema } from 'yup';
1
+ import type { InputHTMLAttributes } from "vue";
2
+ import type { Lazy, Schema } from "yup";
3
3
  type __VLS_Props = {
4
4
  label?: string;
5
- value?: InputHTMLAttributes['value'];
6
- disabled?: InputHTMLAttributes['disabled'];
7
- name?: InputHTMLAttributes['name'];
8
- size?: 'sm' | 'md' | 'lg';
5
+ value?: InputHTMLAttributes["value"];
6
+ disabled?: InputHTMLAttributes["disabled"];
7
+ name?: InputHTMLAttributes["name"];
8
+ size?: "sm" | "md" | "lg";
9
9
  error?: boolean;
10
10
  errorDisplay?: boolean;
11
11
  validation?: Schema | Lazy<any>;
12
- validationMode?: 'change' | 'none';
12
+ validationMode?: "change" | "none";
13
13
  };
14
14
  type __VLS_ModelProps = {
15
15
  modelValue: boolean | string | string[] | undefined;
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <FormStructureContainer layout="vertical">
2
+ <FormStructureContainer>
3
3
  <label
4
4
  class="input-wrapper"
5
5
  :class="[
@@ -15,12 +15,9 @@
15
15
  type="checkbox"
16
16
  v-bind="{ value, disabled, name }"
17
17
  :aria-label="label"
18
- >
18
+ />
19
19
  <div class="checkbox-icon m-cgg-icon--check" />
20
- <div
21
- v-if="label || $slots.default"
22
- class="text-container"
23
- >
20
+ <div v-if="label || $slots.default" class="text-container">
24
21
  <slot v-if="$slots.default" />
25
22
  <Scaffold v-else>
26
23
  {{ label }}
@@ -1,15 +1,15 @@
1
- import type { InputHTMLAttributes } from 'vue';
2
- import type { Lazy, Schema } from 'yup';
1
+ import type { InputHTMLAttributes } from "vue";
2
+ import type { Lazy, Schema } from "yup";
3
3
  type __VLS_Props = {
4
4
  label?: string;
5
- value?: InputHTMLAttributes['value'];
6
- disabled?: InputHTMLAttributes['disabled'];
7
- name?: InputHTMLAttributes['name'];
8
- size?: 'sm' | 'md' | 'lg';
5
+ value?: InputHTMLAttributes["value"];
6
+ disabled?: InputHTMLAttributes["disabled"];
7
+ name?: InputHTMLAttributes["name"];
8
+ size?: "sm" | "md" | "lg";
9
9
  error?: boolean;
10
10
  errorDisplay?: boolean;
11
11
  validation?: Schema | Lazy<any>;
12
- validationMode?: 'change' | 'none';
12
+ validationMode?: "change" | "none";
13
13
  };
14
14
  type __VLS_ModelProps = {
15
15
  modelValue: boolean | string | string[] | undefined;
@@ -1,16 +1,16 @@
1
- import type { InputHTMLAttributes } from 'vue';
2
- import type { CheckboxOption } from '../../types/Form.js';
3
- import type { Lazy, Schema } from 'yup';
1
+ import type { InputHTMLAttributes } from "vue";
2
+ import type { CheckboxOption } from "../../types/Form.js";
3
+ import type { Lazy, Schema } from "yup";
4
4
  type __VLS_Props = {
5
5
  title?: string;
6
6
  tooltip?: string;
7
- layout?: 'vertical' | 'horizontal';
8
- listLayout?: 'vertical' | 'horizontal';
9
- size?: 'sm' | 'md' | 'lg';
7
+ layout?: "vertical" | "horizontal";
8
+ listLayout?: "vertical" | "horizontal";
9
+ size?: "sm" | "md" | "lg";
10
10
  validation?: Schema | Lazy<any>;
11
- validationMode?: 'change' | 'none';
11
+ validationMode?: "change" | "none";
12
12
  errorDisplay?: boolean;
13
- disabled?: InputHTMLAttributes['disabled'];
13
+ disabled?: InputHTMLAttributes["disabled"];
14
14
  options: CheckboxOption[] | undefined;
15
15
  name: string;
16
16
  };
@@ -30,7 +30,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
30
30
  size: "sm" | "md" | "lg";
31
31
  errorDisplay: boolean;
32
32
  validationMode: "change" | "none";
33
- layout: "vertical" | "horizontal";
34
33
  listLayout: "vertical" | "horizontal";
35
34
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
36
35
  declare const _default: typeof __VLS_export;
@@ -14,10 +14,7 @@
14
14
  }
15
15
  ]"
16
16
  >
17
- <li
18
- v-for="option in options"
19
- :key="option.value"
20
- >
17
+ <li v-for="option in options" :key="option.value">
21
18
  <FormCheckboxInput
22
19
  v-bind="{
23
20
  ...option,
@@ -43,7 +40,7 @@ import { useField } from "vee-validate";
43
40
  const props = defineProps({
44
41
  title: { type: String, required: false },
45
42
  tooltip: { type: String, required: false },
46
- layout: { type: String, required: false, default: "vertical" },
43
+ layout: { type: String, required: false },
47
44
  listLayout: { type: String, required: false, default: "vertical" },
48
45
  size: { type: String, required: false, default: "md" },
49
46
  validation: { type: Object, required: false },
@@ -1,16 +1,16 @@
1
- import type { InputHTMLAttributes } from 'vue';
2
- import type { CheckboxOption } from '../../types/Form.js';
3
- import type { Lazy, Schema } from 'yup';
1
+ import type { InputHTMLAttributes } from "vue";
2
+ import type { CheckboxOption } from "../../types/Form.js";
3
+ import type { Lazy, Schema } from "yup";
4
4
  type __VLS_Props = {
5
5
  title?: string;
6
6
  tooltip?: string;
7
- layout?: 'vertical' | 'horizontal';
8
- listLayout?: 'vertical' | 'horizontal';
9
- size?: 'sm' | 'md' | 'lg';
7
+ layout?: "vertical" | "horizontal";
8
+ listLayout?: "vertical" | "horizontal";
9
+ size?: "sm" | "md" | "lg";
10
10
  validation?: Schema | Lazy<any>;
11
- validationMode?: 'change' | 'none';
11
+ validationMode?: "change" | "none";
12
12
  errorDisplay?: boolean;
13
- disabled?: InputHTMLAttributes['disabled'];
13
+ disabled?: InputHTMLAttributes["disabled"];
14
14
  options: CheckboxOption[] | undefined;
15
15
  name: string;
16
16
  };
@@ -30,7 +30,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
30
30
  size: "sm" | "md" | "lg";
31
31
  errorDisplay: boolean;
32
32
  validationMode: "change" | "none";
33
- layout: "vertical" | "horizontal";
34
33
  listLayout: "vertical" | "horizontal";
35
34
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
36
35
  declare const _default: typeof __VLS_export;
@@ -1,17 +1,17 @@
1
- import { type InputHTMLAttributes } from 'vue';
2
- import type { Lazy, Schema } from 'yup';
1
+ import { type InputHTMLAttributes } from "vue";
2
+ import type { Lazy, Schema } from "yup";
3
3
  type __VLS_Props = {
4
4
  title?: string;
5
5
  label?: string;
6
6
  tooltip?: string;
7
- placeholder?: InputHTMLAttributes['placeholder'];
8
- layout?: 'vertical' | 'horizontal';
9
- size?: 'sm' | 'md' | 'lg';
7
+ placeholder?: InputHTMLAttributes["placeholder"];
8
+ layout?: "vertical" | "horizontal";
9
+ size?: "sm" | "md" | "lg";
10
10
  validation?: Schema | Lazy<any>;
11
- validationMode?: 'change' | 'blur' | 'none';
11
+ validationMode?: "change" | "blur" | "none";
12
12
  errorDisplay?: boolean;
13
- id?: InputHTMLAttributes['id'];
14
- disabled?: InputHTMLAttributes['disabled'];
13
+ id?: InputHTMLAttributes["id"];
14
+ disabled?: InputHTMLAttributes["disabled"];
15
15
  currency?: string;
16
16
  };
17
17
  type __VLS_ModelProps = {
@@ -30,7 +30,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
30
30
  size: "sm" | "md" | "lg";
31
31
  errorDisplay: boolean;
32
32
  validationMode: "change" | "blur" | "none";
33
- layout: "vertical" | "horizontal";
34
33
  currency: string;
35
34
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
36
35
  declare const _default: typeof __VLS_export;
@@ -20,7 +20,7 @@
20
20
  inputmode="decimal"
21
21
  :aria-label="label || title"
22
22
  @blur="handleBlur($event, validationMode == 'blur')"
23
- >
23
+ />
24
24
 
25
25
  <span class="input-currency">
26
26
  {{ currency }}
@@ -46,7 +46,7 @@ const props = defineProps({
46
46
  label: { type: String, required: false },
47
47
  tooltip: { type: String, required: false },
48
48
  placeholder: { type: null, required: false },
49
- layout: { type: String, required: false, default: "vertical" },
49
+ layout: { type: String, required: false },
50
50
  size: { type: String, required: false, default: "md" },
51
51
  validation: { type: Object, required: false },
52
52
  validationMode: { type: String, required: false, default: "change" },
@@ -1,17 +1,17 @@
1
- import { type InputHTMLAttributes } from 'vue';
2
- import type { Lazy, Schema } from 'yup';
1
+ import { type InputHTMLAttributes } from "vue";
2
+ import type { Lazy, Schema } from "yup";
3
3
  type __VLS_Props = {
4
4
  title?: string;
5
5
  label?: string;
6
6
  tooltip?: string;
7
- placeholder?: InputHTMLAttributes['placeholder'];
8
- layout?: 'vertical' | 'horizontal';
9
- size?: 'sm' | 'md' | 'lg';
7
+ placeholder?: InputHTMLAttributes["placeholder"];
8
+ layout?: "vertical" | "horizontal";
9
+ size?: "sm" | "md" | "lg";
10
10
  validation?: Schema | Lazy<any>;
11
- validationMode?: 'change' | 'blur' | 'none';
11
+ validationMode?: "change" | "blur" | "none";
12
12
  errorDisplay?: boolean;
13
- id?: InputHTMLAttributes['id'];
14
- disabled?: InputHTMLAttributes['disabled'];
13
+ id?: InputHTMLAttributes["id"];
14
+ disabled?: InputHTMLAttributes["disabled"];
15
15
  currency?: string;
16
16
  };
17
17
  type __VLS_ModelProps = {
@@ -30,7 +30,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
30
30
  size: "sm" | "md" | "lg";
31
31
  errorDisplay: boolean;
32
32
  validationMode: "change" | "blur" | "none";
33
- layout: "vertical" | "horizontal";
34
33
  currency: string;
35
34
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
36
35
  declare const _default: typeof __VLS_export;
@@ -35,7 +35,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
35
35
  size: "sm" | "md" | "lg";
36
36
  errorDisplay: boolean;
37
37
  validationMode: "change" | "blur" | "none";
38
- layout: "vertical" | "horizontal";
39
38
  dateFormat: DateFormat;
40
39
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
41
40
  declare const _default: typeof __VLS_export;
@@ -69,7 +69,7 @@ const props = defineProps({
69
69
  label: { type: String, required: false },
70
70
  tooltip: { type: String, required: false },
71
71
  placeholder: { type: null, required: false },
72
- layout: { type: String, required: false, default: "vertical" },
72
+ layout: { type: String, required: false },
73
73
  size: { type: String, required: false, default: "md" },
74
74
  validation: { type: Object, required: false },
75
75
  validationMode: { type: String, required: false, default: "blur" },
@@ -35,7 +35,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
35
35
  size: "sm" | "md" | "lg";
36
36
  errorDisplay: boolean;
37
37
  validationMode: "change" | "blur" | "none";
38
- layout: "vertical" | "horizontal";
39
38
  dateFormat: DateFormat;
40
39
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
41
40
  declare const _default: typeof __VLS_export;
@@ -41,7 +41,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
41
41
  size: "sm" | "md" | "lg";
42
42
  errorDisplay: boolean;
43
43
  validationMode: "change" | "none";
44
- layout: "vertical" | "horizontal";
45
44
  placeholder: string;
46
45
  variant: "white" | "blue";
47
46
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -64,7 +64,7 @@ import { ref } from "vue";
64
64
  import { useField } from "vee-validate";
65
65
  const props = defineProps({
66
66
  id: { type: null, required: false },
67
- layout: { type: String, required: false, default: "vertical" },
67
+ layout: { type: String, required: false },
68
68
  size: { type: String, required: false, default: "md" },
69
69
  title: { type: String, required: false },
70
70
  label: { type: String, required: false },
@@ -41,7 +41,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
41
41
  size: "sm" | "md" | "lg";
42
42
  errorDisplay: boolean;
43
43
  validationMode: "change" | "none";
44
- layout: "vertical" | "horizontal";
45
44
  placeholder: string;
46
45
  variant: "white" | "blue";
47
46
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -1,18 +1,18 @@
1
- import type { InputHTMLAttributes } from 'vue';
2
- import type { Lazy, Schema } from 'yup';
1
+ import type { InputHTMLAttributes } from "vue";
2
+ import type { Lazy, Schema } from "yup";
3
3
  type __VLS_Props = {
4
4
  title?: string;
5
5
  label?: string;
6
6
  tooltip?: string;
7
- layout?: 'vertical' | 'horizontal';
8
- size?: 'sm' | 'md' | 'lg';
7
+ layout?: "vertical" | "horizontal";
8
+ size?: "sm" | "md" | "lg";
9
9
  max?: number;
10
10
  min?: number;
11
11
  step?: number;
12
12
  validation?: Schema | Lazy<any>;
13
- validationMode?: 'change' | 'none';
13
+ validationMode?: "change" | "none";
14
14
  errorDisplay?: boolean;
15
- disabled?: InputHTMLAttributes['disabled'];
15
+ disabled?: InputHTMLAttributes["disabled"];
16
16
  };
17
17
  declare const __VLS_defaultModels: {
18
18
  modelValue: number;
@@ -33,7 +33,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
33
33
  size: "sm" | "md" | "lg";
34
34
  errorDisplay: boolean;
35
35
  validationMode: "change" | "none";
36
- layout: "vertical" | "horizontal";
37
36
  min: number;
38
37
  step: number;
39
38
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -10,7 +10,7 @@
10
10
  type="number"
11
11
  v-bind="{ min, max, step, disabled }"
12
12
  :aria-label="label || title"
13
- >
13
+ />
14
14
 
15
15
  <button
16
16
  class="btn-minus"
@@ -18,10 +18,7 @@
18
18
  aria-hidden
19
19
  @click="$emit('update:modelValue', model - step)"
20
20
  />
21
- <div
22
- class="value"
23
- :class="{ disabled }"
24
- >
21
+ <div class="value" :class="{ disabled }">
25
22
  {{ model }}
26
23
  </div>
27
24
  <button
@@ -44,7 +41,7 @@ const props = defineProps({
44
41
  title: { type: String, required: false },
45
42
  label: { type: String, required: false },
46
43
  tooltip: { type: String, required: false },
47
- layout: { type: String, required: false, default: "vertical" },
44
+ layout: { type: String, required: false },
48
45
  size: { type: String, required: false, default: "md" },
49
46
  max: { type: Number, required: false },
50
47
  min: { type: Number, required: false, default: 0 },
@@ -1,18 +1,18 @@
1
- import type { InputHTMLAttributes } from 'vue';
2
- import type { Lazy, Schema } from 'yup';
1
+ import type { InputHTMLAttributes } from "vue";
2
+ import type { Lazy, Schema } from "yup";
3
3
  type __VLS_Props = {
4
4
  title?: string;
5
5
  label?: string;
6
6
  tooltip?: string;
7
- layout?: 'vertical' | 'horizontal';
8
- size?: 'sm' | 'md' | 'lg';
7
+ layout?: "vertical" | "horizontal";
8
+ size?: "sm" | "md" | "lg";
9
9
  max?: number;
10
10
  min?: number;
11
11
  step?: number;
12
12
  validation?: Schema | Lazy<any>;
13
- validationMode?: 'change' | 'none';
13
+ validationMode?: "change" | "none";
14
14
  errorDisplay?: boolean;
15
- disabled?: InputHTMLAttributes['disabled'];
15
+ disabled?: InputHTMLAttributes["disabled"];
16
16
  };
17
17
  declare const __VLS_defaultModels: {
18
18
  modelValue: number;
@@ -33,7 +33,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
33
33
  size: "sm" | "md" | "lg";
34
34
  errorDisplay: boolean;
35
35
  validationMode: "change" | "none";
36
- layout: "vertical" | "horizontal";
37
36
  min: number;
38
37
  step: number;
39
38
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -38,7 +38,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
38
38
  size: "sm" | "md" | "lg";
39
39
  errorDisplay: boolean;
40
40
  validationMode: "change" | "blur" | "none";
41
- layout: "vertical" | "horizontal";
42
41
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
43
42
  declare const _default: typeof __VLS_export;
44
43
  export default _default;
@@ -59,7 +59,7 @@ const props = defineProps({
59
59
  tooltip: { type: String, required: false },
60
60
  description: { type: String, required: false },
61
61
  placeholder: { type: null, required: false },
62
- layout: { type: String, required: false, default: "vertical" },
62
+ layout: { type: String, required: false },
63
63
  size: { type: String, required: false, default: "md" },
64
64
  validation: { type: Object, required: false },
65
65
  validationMode: { type: String, required: false, default: "blur" },
@@ -38,7 +38,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
38
38
  size: "sm" | "md" | "lg";
39
39
  errorDisplay: boolean;
40
40
  validationMode: "change" | "blur" | "none";
41
- layout: "vertical" | "horizontal";
42
41
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
43
42
  declare const _default: typeof __VLS_export;
44
43
  export default _default;
@@ -40,7 +40,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
40
40
  size: "sm" | "md" | "lg";
41
41
  errorDisplay: boolean;
42
42
  validationMode: "change" | "none";
43
- layout: "vertical" | "horizontal";
44
43
  listLayout: "vertical" | "horizontal";
45
44
  radioStyle: {
46
45
  variant: "default" | "button";
@@ -45,7 +45,7 @@ import { useField } from "vee-validate";
45
45
  const props = defineProps({
46
46
  title: { type: String, required: false },
47
47
  tooltip: { type: String, required: false },
48
- layout: { type: String, required: false, default: "vertical" },
48
+ layout: { type: String, required: false },
49
49
  listLayout: { type: String, required: false, default: "vertical" },
50
50
  size: { type: String, required: false, default: "md" },
51
51
  validation: { type: Object, required: false },
@@ -40,7 +40,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
40
40
  size: "sm" | "md" | "lg";
41
41
  errorDisplay: boolean;
42
42
  validationMode: "change" | "none";
43
- layout: "vertical" | "horizontal";
44
43
  listLayout: "vertical" | "horizontal";
45
44
  radioStyle: {
46
45
  variant: "default" | "button";
@@ -39,7 +39,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
39
39
  size: "sm" | "md" | "lg";
40
40
  errorDisplay: boolean;
41
41
  validationMode: "change" | "blur" | "none";
42
- layout: "vertical" | "horizontal";
43
42
  placeholder: string;
44
43
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
45
44
  declare const _default: typeof __VLS_export;
@@ -94,7 +94,7 @@ const props = defineProps({
94
94
  label: { type: String, required: false },
95
95
  tooltip: { type: String, required: false },
96
96
  placeholder: { type: null, required: false, default: "Selecionar" },
97
- layout: { type: String, required: false, default: "vertical" },
97
+ layout: { type: String, required: false },
98
98
  size: { type: String, required: false, default: "md" },
99
99
  error: { type: String, required: false },
100
100
  validation: { type: Object, required: false },
@@ -39,7 +39,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
39
39
  size: "sm" | "md" | "lg";
40
40
  errorDisplay: boolean;
41
41
  validationMode: "change" | "blur" | "none";
42
- layout: "vertical" | "horizontal";
43
42
  placeholder: string;
44
43
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
45
44
  declare const _default: typeof __VLS_export;
@@ -39,7 +39,6 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
39
39
  size: "sm" | "md" | "lg";
40
40
  errorDisplay: boolean;
41
41
  validationMode: "change" | "none";
42
- layout: "vertical" | "horizontal";
43
42
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
44
43
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
45
44
  declare const _default: typeof __VLS_export;
@@ -43,7 +43,7 @@ const props = defineProps({
43
43
  title: { type: String, required: false },
44
44
  label: { type: String, required: false },
45
45
  tooltip: { type: String, required: false },
46
- layout: { type: String, required: false, default: "vertical" },
46
+ layout: { type: String, required: false },
47
47
  size: { type: String, required: false, default: "md" },
48
48
  disabled: { type: null, required: false },
49
49
  min: { type: Number, required: true },
@@ -72,7 +72,8 @@ const sliderProgress = computed(() => ({
72
72
  $sliderHeight: 12px;
73
73
  $sliderThumb: 20px;
74
74
  $sliderProgress: calc(
75
- 0.5 * #{$sliderThumb} + var(--slider-progress-value) * (100% - #{$sliderThumb})
75
+ 0.5 * #{$sliderThumb} + var(--slider-progress-value) *
76
+ (100% - #{$sliderThumb})
76
77
  );
77
78
 
78
79
  .input-wrapper {
@@ -103,8 +104,9 @@ $sliderProgress: calc(
103
104
  border: none;
104
105
  border-radius: $sliderHeight;
105
106
  box-shadow: inset 0px 0px 10px rgba(129, 129, 129, 0.25);
106
- background: linear-gradient($bright-green, $bright-green) 0 /
107
- $sliderProgress 100% no-repeat,
107
+ background:
108
+ linear-gradient($bright-green, $bright-green) 0 / $sliderProgress 100%
109
+ no-repeat,
108
110
  $light-green;
109
111
  }
110
112
 
@@ -122,8 +124,9 @@ $sliderProgress: calc(
122
124
  border: none;
123
125
  border-radius: $sliderHeight;
124
126
  box-shadow: none;
125
- background: linear-gradient($bright-green, $bright-green) 0 /
126
- $sliderProgress 100% no-repeat,
127
+ background:
128
+ linear-gradient($bright-green, $bright-green) 0 / $sliderProgress 100%
129
+ no-repeat,
127
130
  $light-green;
128
131
  }
129
132
 
@@ -139,15 +142,17 @@ $sliderProgress: calc(
139
142
  }
140
143
 
141
144
  &::-webkit-slider-runnable-track {
142
- background: linear-gradient($light-grey, $light-grey) 0 /
143
- $sliderProgress 100% no-repeat,
145
+ background:
146
+ linear-gradient($light-grey, $light-grey) 0 / $sliderProgress 100%
147
+ no-repeat,
144
148
  $disabled-grey;
145
149
  cursor: auto;
146
150
  }
147
151
 
148
152
  &::-moz-range-track {
149
- background: linear-gradient($light-grey, $light-grey) 0 /
150
- $sliderProgress 100% no-repeat,
153
+ background:
154
+ linear-gradient($light-grey, $light-grey) 0 / $sliderProgress 100%
155
+ no-repeat,
151
156
  $disabled-grey;
152
157
  cursor: auto;
153
158
  }
@@ -39,7 +39,6 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
39
39
  size: "sm" | "md" | "lg";
40
40
  errorDisplay: boolean;
41
41
  validationMode: "change" | "none";
42
- layout: "vertical" | "horizontal";
43
42
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
44
43
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
45
44
  declare const _default: typeof __VLS_export;
@@ -1,24 +1,24 @@
1
- import { type InputHTMLAttributes } from 'vue';
2
- import type { Icon } from '../../types/Icon.js';
3
- import type { Lazy, Schema } from 'yup';
1
+ import { type InputHTMLAttributes } from "vue";
2
+ import type { Icon } from "../../types/Icon.js";
3
+ import type { Lazy, Schema } from "yup";
4
4
  type __VLS_Props = {
5
5
  title?: string;
6
6
  label?: string;
7
7
  tooltip?: string;
8
- placeholder?: InputHTMLAttributes['placeholder'];
9
- layout?: 'vertical' | 'horizontal';
10
- size?: 'sm' | 'md' | 'lg';
8
+ placeholder?: InputHTMLAttributes["placeholder"];
9
+ layout?: "vertical" | "horizontal";
10
+ size?: "sm" | "md" | "lg";
11
11
  validation?: Schema | Lazy<any>;
12
- validationMode?: 'change' | 'blur' | 'none';
12
+ validationMode?: "change" | "blur" | "none";
13
13
  errorDisplay?: boolean;
14
- id?: InputHTMLAttributes['id'];
15
- disabled?: InputHTMLAttributes['disabled'];
16
- inputmode?: InputHTMLAttributes['inputmode'];
17
- type?: InputHTMLAttributes['type'];
18
- autocomplete?: InputHTMLAttributes['autocomplete'];
14
+ id?: InputHTMLAttributes["id"];
15
+ disabled?: InputHTMLAttributes["disabled"];
16
+ inputmode?: InputHTMLAttributes["inputmode"];
17
+ type?: InputHTMLAttributes["type"];
18
+ autocomplete?: InputHTMLAttributes["autocomplete"];
19
19
  suffix?: string;
20
20
  icon?: Icon;
21
- iconPosition?: 'left' | 'right';
21
+ iconPosition?: "left" | "right";
22
22
  mask?: string;
23
23
  numberOptions?: {
24
24
  positiveOnly?: boolean;
@@ -27,7 +27,7 @@ type __VLS_Props = {
27
27
  };
28
28
  type __VLS_ModelProps = {
29
29
  modelValue: any;
30
- 'masked'?: any;
30
+ "masked"?: any;
31
31
  };
32
32
  type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
33
33
  declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
@@ -45,7 +45,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
45
45
  size: "sm" | "md" | "lg";
46
46
  errorDisplay: boolean;
47
47
  validationMode: "change" | "blur" | "none";
48
- layout: "vertical" | "horizontal";
49
48
  iconPosition: "left" | "right";
50
49
  numberOptions: {
51
50
  positiveOnly?: boolean;
@@ -20,7 +20,7 @@
20
20
  :class="[`size-${size}`, `icon-${iconPosition}`, { 'has-icon': icon }]"
21
21
  :aria-label="label || title"
22
22
  @blur="handleBlur($event, validationMode == 'blur')"
23
- >
23
+ />
24
24
 
25
25
  <div
26
26
  v-if="icon"
@@ -47,14 +47,19 @@
47
47
 
48
48
  <script setup>
49
49
  import { useField } from "vee-validate";
50
- import { computed, onMounted, ref, watch } from "vue";
50
+ import {
51
+ computed,
52
+ onMounted,
53
+ ref,
54
+ watch
55
+ } from "vue";
51
56
  import { vMaska } from "maska/vue";
52
57
  const props = defineProps({
53
58
  title: { type: String, required: false },
54
59
  label: { type: String, required: false },
55
60
  tooltip: { type: String, required: false },
56
61
  placeholder: { type: null, required: false },
57
- layout: { type: String, required: false, default: "vertical" },
62
+ layout: { type: String, required: false },
58
63
  size: { type: String, required: false, default: "md" },
59
64
  validation: { type: Object, required: false },
60
65
  validationMode: { type: String, required: false, default: "change" },
@@ -1,24 +1,24 @@
1
- import { type InputHTMLAttributes } from 'vue';
2
- import type { Icon } from '../../types/Icon.js';
3
- import type { Lazy, Schema } from 'yup';
1
+ import { type InputHTMLAttributes } from "vue";
2
+ import type { Icon } from "../../types/Icon.js";
3
+ import type { Lazy, Schema } from "yup";
4
4
  type __VLS_Props = {
5
5
  title?: string;
6
6
  label?: string;
7
7
  tooltip?: string;
8
- placeholder?: InputHTMLAttributes['placeholder'];
9
- layout?: 'vertical' | 'horizontal';
10
- size?: 'sm' | 'md' | 'lg';
8
+ placeholder?: InputHTMLAttributes["placeholder"];
9
+ layout?: "vertical" | "horizontal";
10
+ size?: "sm" | "md" | "lg";
11
11
  validation?: Schema | Lazy<any>;
12
- validationMode?: 'change' | 'blur' | 'none';
12
+ validationMode?: "change" | "blur" | "none";
13
13
  errorDisplay?: boolean;
14
- id?: InputHTMLAttributes['id'];
15
- disabled?: InputHTMLAttributes['disabled'];
16
- inputmode?: InputHTMLAttributes['inputmode'];
17
- type?: InputHTMLAttributes['type'];
18
- autocomplete?: InputHTMLAttributes['autocomplete'];
14
+ id?: InputHTMLAttributes["id"];
15
+ disabled?: InputHTMLAttributes["disabled"];
16
+ inputmode?: InputHTMLAttributes["inputmode"];
17
+ type?: InputHTMLAttributes["type"];
18
+ autocomplete?: InputHTMLAttributes["autocomplete"];
19
19
  suffix?: string;
20
20
  icon?: Icon;
21
- iconPosition?: 'left' | 'right';
21
+ iconPosition?: "left" | "right";
22
22
  mask?: string;
23
23
  numberOptions?: {
24
24
  positiveOnly?: boolean;
@@ -27,7 +27,7 @@ type __VLS_Props = {
27
27
  };
28
28
  type __VLS_ModelProps = {
29
29
  modelValue: any;
30
- 'masked'?: any;
30
+ "masked"?: any;
31
31
  };
32
32
  type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
33
33
  declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
@@ -45,7 +45,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
45
45
  size: "sm" | "md" | "lg";
46
46
  errorDisplay: boolean;
47
47
  validationMode: "change" | "blur" | "none";
48
- layout: "vertical" | "horizontal";
49
48
  iconPosition: "left" | "right";
50
49
  numberOptions: {
51
50
  positiveOnly?: boolean;
@@ -1,18 +1,18 @@
1
- import type { TextareaHTMLAttributes } from 'vue';
2
- import type { Lazy, Schema } from 'yup';
1
+ import type { TextareaHTMLAttributes } from "vue";
2
+ import type { Lazy, Schema } from "yup";
3
3
  type __VLS_Props = {
4
4
  title?: string;
5
5
  label?: string;
6
6
  tooltip?: string;
7
- placeholder?: TextareaHTMLAttributes['placeholder'];
8
- layout?: 'vertical' | 'horizontal';
9
- size?: 'sm' | 'md' | 'lg';
7
+ placeholder?: TextareaHTMLAttributes["placeholder"];
8
+ layout?: "vertical" | "horizontal";
9
+ size?: "sm" | "md" | "lg";
10
10
  validation?: Schema | Lazy<any>;
11
- validationMode?: 'change' | 'blur' | 'none';
11
+ validationMode?: "change" | "blur" | "none";
12
12
  errorDisplay?: boolean;
13
- id?: TextareaHTMLAttributes['id'];
14
- disabled?: TextareaHTMLAttributes['disabled'];
15
- rows?: TextareaHTMLAttributes['rows'];
13
+ id?: TextareaHTMLAttributes["id"];
14
+ disabled?: TextareaHTMLAttributes["disabled"];
15
+ rows?: TextareaHTMLAttributes["rows"];
16
16
  };
17
17
  type __VLS_ModelProps = {
18
18
  modelValue: string;
@@ -30,7 +30,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
30
30
  size: "sm" | "md" | "lg";
31
31
  errorDisplay: boolean;
32
32
  validationMode: "change" | "blur" | "none";
33
- layout: "vertical" | "horizontal";
34
33
  rows: string | number;
35
34
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
36
35
  declare const _default: typeof __VLS_export;
@@ -34,7 +34,7 @@ const props = defineProps({
34
34
  label: { type: String, required: false },
35
35
  tooltip: { type: String, required: false },
36
36
  placeholder: { type: null, required: false },
37
- layout: { type: String, required: false, default: "vertical" },
37
+ layout: { type: String, required: false },
38
38
  size: { type: String, required: false, default: "md" },
39
39
  validation: { type: Object, required: false },
40
40
  validationMode: { type: String, required: false, default: "change" },
@@ -1,18 +1,18 @@
1
- import type { TextareaHTMLAttributes } from 'vue';
2
- import type { Lazy, Schema } from 'yup';
1
+ import type { TextareaHTMLAttributes } from "vue";
2
+ import type { Lazy, Schema } from "yup";
3
3
  type __VLS_Props = {
4
4
  title?: string;
5
5
  label?: string;
6
6
  tooltip?: string;
7
- placeholder?: TextareaHTMLAttributes['placeholder'];
8
- layout?: 'vertical' | 'horizontal';
9
- size?: 'sm' | 'md' | 'lg';
7
+ placeholder?: TextareaHTMLAttributes["placeholder"];
8
+ layout?: "vertical" | "horizontal";
9
+ size?: "sm" | "md" | "lg";
10
10
  validation?: Schema | Lazy<any>;
11
- validationMode?: 'change' | 'blur' | 'none';
11
+ validationMode?: "change" | "blur" | "none";
12
12
  errorDisplay?: boolean;
13
- id?: TextareaHTMLAttributes['id'];
14
- disabled?: TextareaHTMLAttributes['disabled'];
15
- rows?: TextareaHTMLAttributes['rows'];
13
+ id?: TextareaHTMLAttributes["id"];
14
+ disabled?: TextareaHTMLAttributes["disabled"];
15
+ rows?: TextareaHTMLAttributes["rows"];
16
16
  };
17
17
  type __VLS_ModelProps = {
18
18
  modelValue: string;
@@ -30,7 +30,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
30
30
  size: "sm" | "md" | "lg";
31
31
  errorDisplay: boolean;
32
32
  validationMode: "change" | "blur" | "none";
33
- layout: "vertical" | "horizontal";
34
33
  rows: string | number;
35
34
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
36
35
  declare const _default: typeof __VLS_export;
@@ -1,11 +1,13 @@
1
1
  type __VLS_Props = {
2
- layout?: 'vertical' | 'horizontal';
2
+ layout?: "vertical" | "horizontal";
3
3
  };
4
4
  declare var __VLS_1: {};
5
5
  type __VLS_Slots = {} & {
6
6
  default?: (props: typeof __VLS_1) => any;
7
7
  };
8
- declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
8
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
9
+ layout: "vertical" | "horizontal";
10
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
9
11
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
10
12
  declare const _default: typeof __VLS_export;
11
13
  export default _default;
@@ -1,15 +1,12 @@
1
1
  <template>
2
- <div
3
- class="input-container"
4
- :class="[layout]"
5
- >
2
+ <div class="input-container" :class="[layout]">
6
3
  <slot />
7
4
  </div>
8
5
  </template>
9
6
 
10
7
  <script setup>
11
8
  defineProps({
12
- layout: { type: String, required: false }
9
+ layout: { type: String, required: false, default: "vertical" }
13
10
  });
14
11
  </script>
15
12
 
@@ -1,11 +1,13 @@
1
1
  type __VLS_Props = {
2
- layout?: 'vertical' | 'horizontal';
2
+ layout?: "vertical" | "horizontal";
3
3
  };
4
4
  declare var __VLS_1: {};
5
5
  type __VLS_Slots = {} & {
6
6
  default?: (props: typeof __VLS_1) => any;
7
7
  };
8
- declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
8
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
9
+ layout: "vertical" | "horizontal";
10
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
9
11
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
10
12
  declare const _default: typeof __VLS_export;
11
13
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cja-phoenix",
3
- "version": "1.2.59",
3
+ "version": "1.2.60",
4
4
  "description": "Phoenix utility",
5
5
  "repository": {
6
6
  "type": "git",