vueless 0.0.163 → 0.0.165

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 (36) hide show
  1. package/composable.ui/index.js +2 -5
  2. package/package.json +2 -2
  3. package/service.ui/index.js +27 -8
  4. package/ui.button/composables/attrs.composable.js +3 -3
  5. package/ui.button/configs/default.config.js +1 -2
  6. package/ui.button-link/composables/attrs.composable.js +6 -3
  7. package/ui.container-modal-confirm/composable/attrs.composable.js +18 -29
  8. package/ui.form-calendar/components/DayView.vue +1 -1
  9. package/ui.form-calendar/configs/default.config.js +1 -1
  10. package/ui.form-calendar/index.stories.js +21 -10
  11. package/ui.form-calendar/index.vue +22 -15
  12. package/ui.form-calendar/services/calendar.service.js +5 -7
  13. package/ui.form-calendar/services/date.service.js +1 -23
  14. package/ui.form-checkbox/composables/attrs.composable.js +3 -3
  15. package/ui.form-date-picker/configs/default.config.js +1 -1
  16. package/ui.form-date-picker/index.stories.js +19 -7
  17. package/ui.form-date-picker/index.vue +7 -12
  18. package/ui.form-date-picker-range/configs/default.config.js +1 -1
  19. package/ui.form-date-picker-range/index.stories.js +22 -6
  20. package/ui.form-date-picker-range/index.vue +79 -84
  21. package/ui.form-date-picker-range/services/dateRange.service.js +8 -10
  22. package/ui.form-radio/composables/attrs.composable.js +2 -2
  23. package/ui.form-switch/composables/attrs.composable.js +3 -3
  24. package/ui.image-avatar/composables/attrs.composable.js +2 -2
  25. package/ui.image-icon/composables/attrs.composable.js +3 -3
  26. package/ui.loader/composables/attrs.composable.js +2 -2
  27. package/ui.loader-rendering/composables/attrs.composable.js +2 -2
  28. package/ui.loader-top/composables/attrs.composable.js +7 -2
  29. package/ui.navigation-progress/composables/attrs.composable.js +2 -2
  30. package/ui.other-dot/composables/attrs.composable.js +2 -2
  31. package/ui.text-alert/composables/attrs.composable.js +5 -2
  32. package/ui.text-alert/configs/default.config.js +5 -1
  33. package/ui.text-badge/composables/attrs.composable.js +5 -2
  34. package/ui.text-header/composables/attrs.composable.js +2 -2
  35. package/ui.text-money/composables/attrs.composable.js +5 -2
  36. package/web-types.json +14 -17
@@ -5,7 +5,7 @@ import defaultConfig from "../configs/default.config";
5
5
  import { computed } from "vue";
6
6
 
7
7
  export function useAttrs(props) {
8
- const { config, getAttrs, setColor } = useUI(defaultConfig, () => props.config);
8
+ const { config, getAttrs, getColor, setColor } = useUI(defaultConfig, () => props.config);
9
9
  const { wrapper } = config.value;
10
10
 
11
11
  const cvaWrapper = cva({
@@ -20,7 +20,7 @@ export function useAttrs(props) {
20
20
  size: props.size,
21
21
  weight: props.weight,
22
22
  underlined: props.underlined,
23
- color: props.color,
23
+ color: getColor(props.color),
24
24
  }),
25
25
  props.color,
26
26
  ),
@@ -5,7 +5,10 @@ import defaultConfig from "../configs/default.config";
5
5
  import { computed } from "vue";
6
6
 
7
7
  export function useAttrs(props) {
8
- const { config, hasSlotContent, getAttrs, setColor } = useUI(defaultConfig, () => props.config);
8
+ const { config, hasSlotContent, getAttrs, getColor, setColor } = useUI(
9
+ defaultConfig,
10
+ () => props.config,
11
+ );
9
12
  const { money, sum, penny } = config.value;
10
13
 
11
14
  const cvaMoney = cva({
@@ -30,7 +33,7 @@ export function useAttrs(props) {
30
33
  setColor(
31
34
  cvaMoney({
32
35
  align: props.align,
33
- color: props.color,
36
+ color: getColor(props.color),
34
37
  weight: props.weight,
35
38
  }),
36
39
  props.color,
package/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "framework": "vue",
3
3
  "name": "vueless",
4
- "version": "0.0.163",
4
+ "version": "0.0.165",
5
5
  "contributions": {
6
6
  "html": {
7
7
  "description-markup": "markdown",
@@ -53,11 +53,11 @@
53
53
  },
54
54
  {
55
55
  "name": "dateFormat",
56
- "required": true,
57
56
  "value": {
58
57
  "kind": "expression",
59
58
  "type": "string"
60
- }
59
+ },
60
+ "default": "undefined"
61
61
  },
62
62
  {
63
63
  "name": "range",
@@ -701,10 +701,10 @@
701
701
  "attributes": [
702
702
  {
703
703
  "name": "modelValue",
704
- "description": "Calendar value (timestamp).",
704
+ "description": "Calendar value in JS Date Object or String formatted in provided props.dateFormat.",
705
705
  "value": {
706
706
  "kind": "expression",
707
- "type": "number|object"
707
+ "type": "string|object"
708
708
  },
709
709
  "default": "null"
710
710
  },
@@ -741,8 +741,7 @@
741
741
  "value": {
742
742
  "kind": "expression",
743
743
  "type": "string"
744
- },
745
- "default": "Y-m-d"
744
+ }
746
745
  },
747
746
  {
748
747
  "name": "userFormat",
@@ -755,7 +754,7 @@
755
754
  },
756
755
  {
757
756
  "name": "minDate",
758
- "description": "Min date in format date string or Date.",
757
+ "description": "Min date in JS Date Object or Date String formatted in provided props.dateFormat.",
759
758
  "value": {
760
759
  "kind": "expression",
761
760
  "type": "date|string"
@@ -763,7 +762,7 @@
763
762
  },
764
763
  {
765
764
  "name": "maxDate",
766
- "description": "Max date in format date string or Date.",
765
+ "description": "Max date in JS Date Object or Date String formatted in provided props.dateFormat.",
767
766
  "value": {
768
767
  "kind": "expression",
769
768
  "type": "date|string"
@@ -1533,10 +1532,10 @@
1533
1532
  },
1534
1533
  {
1535
1534
  "name": "modelValue",
1536
- "description": "Datepicker value (timestamp).",
1535
+ "description": "Datepicker value in JS Date Object or String formatted in provided props.dateFormat.",
1537
1536
  "value": {
1538
1537
  "kind": "expression",
1539
- "type": "number"
1538
+ "type": "object|string"
1540
1539
  },
1541
1540
  "default": "null"
1542
1541
  },
@@ -1625,8 +1624,7 @@
1625
1624
  "value": {
1626
1625
  "kind": "expression",
1627
1626
  "type": "string"
1628
- },
1629
- "default": "Y-m-d"
1627
+ }
1630
1628
  },
1631
1629
  {
1632
1630
  "name": "userFormat",
@@ -1695,7 +1693,7 @@
1695
1693
  "attributes": [
1696
1694
  {
1697
1695
  "name": "modelValue",
1698
- "description": "Dater picker range value as object with from and to keys (timestamp).",
1696
+ "description": "Datepicker value in JS Date Objects or Strings formatted in provided props.dateFormat.",
1699
1697
  "value": {
1700
1698
  "kind": "expression",
1701
1699
  "type": "object"
@@ -1709,7 +1707,7 @@
1709
1707
  "kind": "expression",
1710
1708
  "type": "object"
1711
1709
  },
1712
- "default": "{\n range: { from: 0, to: 0 },\n label: \"\",\n description: \"\"\n}"
1710
+ "default": "{\n range: { from: null, to: null },\n label: \"\",\n description: \"\"\n}"
1713
1711
  },
1714
1712
  {
1715
1713
  "name": "openDirectionX",
@@ -1814,8 +1812,7 @@
1814
1812
  "value": {
1815
1813
  "kind": "expression",
1816
1814
  "type": "string"
1817
- },
1818
- "default": "d.m.Y"
1815
+ }
1819
1816
  },
1820
1817
  {
1821
1818
  "name": "id",