eco-vue-js 0.22.0 → 0.23.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.
Files changed (67) hide show
  1. package/dist/assets/icons/IconSuccess.js +1 -1
  2. package/dist/components/BottomSheet/WBottomSheet.vue_vue_type_script_setup_true_lang.js +1 -1
  3. package/dist/components/Button/WButtonDropdown.vue.d.ts +2 -2
  4. package/dist/components/Button/WButtonDropdown.vue.d.ts.map +1 -1
  5. package/dist/components/Button/WButtonDropdown.vue_vue_type_script_setup_true_lang.js +65 -50
  6. package/dist/components/Button/WButtonMore.vue_vue_type_script_setup_true_lang.js +1 -1
  7. package/dist/components/Chart/WChartHeatmap.vue.d.ts.map +1 -1
  8. package/dist/components/Chart/WChartHeatmap.vue_vue_type_script_setup_true_lang.js +9 -13
  9. package/dist/components/Chart/WChartLine.vue.d.ts +1 -1
  10. package/dist/components/Chart/WChartLine.vue.d.ts.map +1 -1
  11. package/dist/components/Chart/WChartLine.vue_vue_type_script_setup_true_lang.js +2 -1
  12. package/dist/components/Chart/WChartLinear.vue.d.ts +2 -2
  13. package/dist/components/Chart/WChartLinear.vue.d.ts.map +1 -1
  14. package/dist/components/Chart/WChartLinear.vue_vue_type_script_setup_true_lang.js +2 -2
  15. package/dist/components/Chart/models/WeekGrid.d.ts +1 -1
  16. package/dist/components/Chart/models/WeekGrid.d.ts.map +1 -1
  17. package/dist/components/Chart/models/WeekGrid.js +3 -4
  18. package/dist/components/ClickOutside/WClickOutside.vue.d.ts.map +1 -1
  19. package/dist/components/ClickOutside/WClickOutside.vue_vue_type_script_setup_true_lang.js +10 -1
  20. package/dist/components/DatePicker/WDatePicker.vue.d.ts.map +1 -1
  21. package/dist/components/DatePicker/WDatePicker.vue_vue_type_script_setup_true_lang.js +5 -2
  22. package/dist/components/DatePicker/components/CalendarValue.vue.d.ts.map +1 -1
  23. package/dist/components/DatePicker/components/CalendarValue.vue_vue_type_script_setup_true_lang.js +2 -1
  24. package/dist/components/Input/WInputDate.vue_vue_type_script_setup_true_lang.js +5 -5
  25. package/dist/components/Input/WInputSuggest.vue_vue_type_script_setup_true_lang.js +1 -1
  26. package/dist/components/Input/components/InputSuggestEmbedded.vue.d.ts.map +1 -1
  27. package/dist/components/Input/components/InputSuggestEmbedded.vue_vue_type_script_setup_true_lang.js +1 -1
  28. package/dist/components/Modal/WModal.vue_vue_type_script_setup_true_lang.js +1 -1
  29. package/dist/components/Modal/components/OverlayDropdown.vue.d.ts.map +1 -1
  30. package/dist/components/Modal/components/OverlayDropdown.vue_vue_type_script_setup_true_lang.js +3 -3
  31. package/dist/components/Modal/models/overlayRegistry.d.ts +7 -4
  32. package/dist/components/Modal/models/overlayRegistry.d.ts.map +1 -1
  33. package/dist/components/Modal/models/overlayRegistry.js +66 -14
  34. package/dist/components/Nav/WNavItemExpand.vue_vue_type_script_setup_true_lang.js +1 -1
  35. package/dist/components/Notify/WNotifyCenter.vue.d.ts.map +1 -1
  36. package/dist/components/Notify/WNotifyCenter.vue_vue_type_script_setup_true_lang.js +11 -8
  37. package/dist/components/Notify/components/NotifyCard.vue.d.ts.map +1 -1
  38. package/dist/components/Notify/components/NotifyCard.vue_vue_type_script_setup_true_lang.js +5 -2
  39. package/dist/components/Tabs/WTabs.vue_vue_type_script_setup_true_lang.js +1 -1
  40. package/dist/components/Uniform/use/useUniformField.d.ts.map +1 -1
  41. package/dist/components/Uniform/use/useUniformField.js +3 -5
  42. package/dist/main.d.ts +1 -0
  43. package/dist/main.d.ts.map +1 -1
  44. package/dist/main.js +10 -9
  45. package/dist/utils/Overlay.d.ts +3 -1
  46. package/dist/utils/Overlay.d.ts.map +1 -1
  47. package/dist/utils/Overlay.js +4 -4
  48. package/dist/utils/dateTime.d.ts +36 -10
  49. package/dist/utils/dateTime.d.ts.map +1 -1
  50. package/dist/utils/dateTime.js +142 -68
  51. package/dist/utils/locale.d.ts +12 -0
  52. package/dist/utils/locale.d.ts.map +1 -0
  53. package/dist/utils/locale.js +25 -0
  54. package/dist/utils/texts.d.ts +7 -0
  55. package/dist/utils/texts.d.ts.map +1 -1
  56. package/dist/utils/texts.js +5 -1
  57. package/dist/utils/utils.d.ts +2 -2
  58. package/dist/utils/utils.d.ts.map +1 -1
  59. package/dist/utils/utils.js +9 -7
  60. package/docs/components/charts.md +2 -2
  61. package/docs/components/click-outside.md +1 -1
  62. package/docs/components/dropdown-menu.md +1 -1
  63. package/docs/guide/getting-started.md +9 -1
  64. package/docs/llms.txt +2 -2
  65. package/docs/recipes/list-with-fields.md +4 -4
  66. package/docs/utilities/formatting.md +27 -15
  67. package/package.json +4 -1
@@ -10,7 +10,7 @@ var _hoisted_1 = {
10
10
  function render(_ctx, _cache) {
11
11
  return openBlock(), createElementBlock("svg", _hoisted_1, [..._cache[0] || (_cache[0] = [createElementVNode("path", {
12
12
  "clip-rule": "evenodd",
13
- d: "M12 0a12 12 0 1 0 0 24 12 12 0 1 0 0-24M10.6 18 5 10.61h2.2l3.4 4.48L16.79 7H19z",
13
+ d: "M12 0a12 12 0 1 0 0 24 12 12 0 1 0 0-24m-1.4 18L5 10.61h2.2l3.4 4.48L16.79 7H19z",
14
14
  fill: "currentcolor",
15
15
  "fill-rule": "evenodd"
16
16
  }, null, -1)])]);
@@ -29,7 +29,7 @@ hide: () => dismissableRef.value?.hide() ?? Promise.resolve() });
29
29
  return openBlock(), createElementBlock(Fragment, null, [renderSlot(_ctx.$slots, "toggle", { unclickable: true }), (openBlock(), createBlock(Teleport, { to: "body" }, [createVNode(WDismissable_default, {
30
30
  ref: "dismissable",
31
31
  "is-open": __props.isOpen,
32
- class: normalizeClass(["fixed inset-0", __props.noOverlay ? "pointer-events-none" : "bg-backdrop backdrop-blur"]),
32
+ class: normalizeClass(["fixed inset-0", __props.noOverlay ? "" : "bg-backdrop backdrop-blur"]),
33
33
  "content-class": contentClass.value,
34
34
  style: normalizeStyle({ zIndex: unref(baseZIndex) + unref(100) }),
35
35
  onClose: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("close"))
@@ -1,15 +1,15 @@
1
1
  import { ButtonDropdownProps } from './types';
2
2
  import { VNode } from 'vue';
3
3
  import { HorizontalAlign } from '../../utils/HorizontalAlign';
4
- declare const close: () => void;
5
4
  type __VLS_Slots = {
6
5
  /** Buttons joined to the arrow button. They keep their own click handlers. */
7
6
  button?: () => VNode[];
8
- /** Menu content, usually WButtonMoreItem. A click inside closes the menu, and so does `close`. */
7
+ /** Menu content, usually WButtonMoreItem. A click inside closes the menu, and so does `close`. On phones it is a bottom sheet. */
9
8
  content?: (props: {
10
9
  close: typeof close;
11
10
  }) => VNode[];
12
11
  };
12
+ declare const close: () => void;
13
13
  declare const __VLS_base: import('vue').DefineComponent<ButtonDropdownProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ButtonDropdownProps> & Readonly<{}>, {
14
14
  horizontalAlign: HorizontalAlign;
15
15
  disabled: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"WButtonDropdown.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Button/WButtonDropdown.vue"],"names":[],"mappings":"AAmEA;AAyGA,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,SAAS,CAAA;AAEhD,OAAO,EAAC,KAAK,KAAK,EAAM,MAAM,KAAK,CAAA;AAQnC,OAAO,EAAC,eAAe,EAAC,MAAM,yBAAyB,CAAA;AAevD,QAAA,MAAM,KAAK,YAEV,CAAA;AAED,KAAK,WAAW,GAAG;IACjB,8EAA8E;IAC9E,MAAM,CAAC,EAAE,MAAM,KAAK,EAAE,CAAA;IACtB,kGAAkG;IAClG,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE;QAAC,KAAK,EAAE,OAAO,KAAK,CAAA;KAAC,KAAK,KAAK,EAAE,CAAA;CACpD,CAAC;AAsPF,QAAA,MAAM,UAAU;;;6EAGd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"WButtonDropdown.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Button/WButtonDropdown.vue"],"names":[],"mappings":"AA4CA;AAyHA,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,SAAS,CAAA;AAEhD,OAAO,EAAC,KAAK,KAAK,EAAyC,MAAM,KAAK,CAAA;AAMtE,OAAO,EAAC,eAAe,EAAC,MAAM,yBAAyB,CAAA;AAcvD,KAAK,WAAW,GAAG;IACjB,8EAA8E;IAC9E,MAAM,CAAC,EAAE,MAAM,KAAK,EAAE,CAAA;IACtB,kIAAkI;IAClI,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE;QAAC,KAAK,EAAE,OAAO,KAAK,CAAA;KAAC,KAAK,KAAK,EAAE,CAAA;CACpD,CAAC;AAaF,QAAA,MAAM,KAAK,YAEV,CAAA;AAiLD,QAAA,MAAM,UAAU;;;6EAGd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
@@ -1,12 +1,12 @@
1
1
  import WTooltip_default from "../Tooltip/WTooltip.vue.js";
2
- import WClickOutside_default from "../ClickOutside/WClickOutside.vue.js";
3
2
  import WButton_default from "./WButton.vue.js";
4
- import { HorizontalAlign } from "../../utils/HorizontalAlign.js";
5
- import WDropdownMenu_default from "../DropdownMenu/WDropdownMenu.vue.js";
6
3
  import IconArrow_default from "../../assets/icons/IconArrow.js";
7
- import { Fragment, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, normalizeClass, openBlock, ref, renderList, renderSlot, resolveDynamicComponent, unref, withCtx } from "vue";
4
+ import { HorizontalAlign } from "../../utils/HorizontalAlign.js";
5
+ import { useOverlay } from "../../utils/Overlay.js";
6
+ import { Fragment, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, markRaw, normalizeClass, openBlock, ref, renderList, resolveDynamicComponent, unref, useSlots, useTemplateRef, withCtx } from "vue";
8
7
  //#region src/components/Button/WButtonDropdown.vue?vue&type=script&setup=true&lang.ts
9
- var _hoisted_1 = { class: "flex" };
8
+ var _hoisted_1 = { ref: "toggle" };
9
+ var _hoisted_2 = { class: "flex" };
10
10
  var WButtonDropdown_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
11
11
  __name: "WButtonDropdown",
12
12
  props: {
@@ -20,57 +20,72 @@ var WButtonDropdown_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/
20
20
  horizontalAlign: { default: HorizontalAlign.LEFT_INNER }
21
21
  },
22
22
  setup(__props) {
23
+ const props = __props;
24
+ const slots = useSlots();
25
+ const toggleRef = useTemplateRef("toggle");
26
+ const overlay = useOverlay();
23
27
  const isOpen = ref(false);
28
+ let closeMenu = null;
24
29
  const close = () => {
25
- isOpen.value = false;
30
+ closeMenu?.();
31
+ };
32
+ const renderContent = markRaw(() => slots.content?.({ close }));
33
+ const open = () => {
34
+ if (!toggleRef.value) return;
35
+ const value = overlay.open({
36
+ present: "dropdown",
37
+ anchor: toggleRef.value,
38
+ content: renderContent,
39
+ dropdown: {
40
+ align: props.horizontalAlign,
41
+ closeOnClick: true
42
+ },
43
+ onClose: () => {
44
+ if (closeMenu !== value) return;
45
+ closeMenu = null;
46
+ isOpen.value = false;
47
+ }
48
+ });
49
+ closeMenu = value;
50
+ isOpen.value = value !== null;
51
+ };
52
+ const toggle = () => {
53
+ if (isOpen.value) close();
54
+ else open();
26
55
  };
27
56
  return (_ctx, _cache) => {
28
- return openBlock(), createBlock(WDropdownMenu_default, {
29
- "is-open": isOpen.value,
30
- "horizontal-align": __props.horizontalAlign,
31
- "update-align": ""
32
- }, {
33
- toggle: withCtx(() => [createElementVNode("div", null, [createElementVNode("div", _hoisted_1, [
34
- __props.leftToggle ? (openBlock(), createBlock(WButton_default, {
35
- key: 0,
36
- "semantic-type": __props.semanticType,
37
- disabled: __props.disabled,
38
- join: "",
39
- onClick: _cache[0] || (_cache[0] = ($event) => isOpen.value = !isOpen.value)
40
- }, {
41
- default: withCtx(() => [createVNode(unref(IconArrow_default), { class: normalizeClass(["square-4 transition-transform", { "rotate-180": isOpen.value }]) }, null, 8, ["class"])]),
42
- _: 1
43
- }, 8, ["semantic-type", "disabled"])) : createCommentVNode("", true),
44
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.$slots.button?.(), (item, index) => {
45
- return openBlock(), createBlock(resolveDynamicComponent(item), {
46
- key: index,
47
- join: "",
48
- class: "flex-1"
49
- });
50
- }), 128)),
51
- !__props.leftToggle ? (openBlock(), createBlock(WButton_default, {
52
- key: 1,
53
- "semantic-type": __props.semanticType,
54
- disabled: __props.disabled,
55
- join: "",
56
- onClick: _cache[1] || (_cache[1] = ($event) => isOpen.value = !isOpen.value)
57
- }, {
58
- default: withCtx(() => [createVNode(unref(IconArrow_default), { class: normalizeClass(["square-[1em] transition-transform", { "rotate-180": isOpen.value }]) }, null, 8, ["class"])]),
59
- _: 1
60
- }, 8, ["semantic-type", "disabled"])) : createCommentVNode("", true)
61
- ]), __props.tooltipText ? (openBlock(), createBlock(WTooltip_default, {
57
+ return openBlock(), createElementBlock("div", _hoisted_1, [createElementVNode("div", _hoisted_2, [
58
+ __props.leftToggle ? (openBlock(), createBlock(WButton_default, {
62
59
  key: 0,
63
- text: __props.tooltipText
64
- }, null, 8, ["text"])) : createCommentVNode("", true)])]),
65
- content: withCtx(() => [createVNode(WClickOutside_default, {
66
- class: "surface-raised my-1 max-h-[inherit] w-full overflow-y-auto overflow-x-hidden overscroll-contain rounded-xl shadow-md border border-solid border-line-raised",
67
- onClick: close
60
+ "semantic-type": __props.semanticType,
61
+ disabled: __props.disabled,
62
+ join: "",
63
+ onClick: toggle
64
+ }, {
65
+ default: withCtx(() => [createVNode(unref(IconArrow_default), { class: normalizeClass(["square-4 transition-transform", { "rotate-180": isOpen.value }]) }, null, 8, ["class"])]),
66
+ _: 1
67
+ }, 8, ["semantic-type", "disabled"])) : createCommentVNode("", true),
68
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.$slots.button?.(), (item, index) => {
69
+ return openBlock(), createBlock(resolveDynamicComponent(item), {
70
+ key: index,
71
+ join: "",
72
+ class: "flex-1"
73
+ });
74
+ }), 128)),
75
+ !__props.leftToggle ? (openBlock(), createBlock(WButton_default, {
76
+ key: 1,
77
+ "semantic-type": __props.semanticType,
78
+ disabled: __props.disabled,
79
+ join: "",
80
+ onClick: toggle
68
81
  }, {
69
- default: withCtx(() => [renderSlot(_ctx.$slots, "content", { close })]),
70
- _: 3
71
- })]),
72
- _: 3
73
- }, 8, ["is-open", "horizontal-align"]);
82
+ default: withCtx(() => [createVNode(unref(IconArrow_default), { class: normalizeClass(["square-[1em] transition-transform", { "rotate-180": isOpen.value }]) }, null, 8, ["class"])]),
83
+ _: 1
84
+ }, 8, ["semantic-type", "disabled"])) : createCommentVNode("", true)
85
+ ]), __props.tooltipText ? (openBlock(), createBlock(WTooltip_default, {
86
+ key: 0,
87
+ text: __props.tooltipText
88
+ }, null, 8, ["text"])) : createCommentVNode("", true)], 512);
74
89
  };
75
90
  }
76
91
  });
@@ -1,6 +1,6 @@
1
- import IconMore_default from "../../assets/icons/IconMore.js";
2
1
  import { hasAnchorLayer } from "../Modal/models/overlayRegistry.js";
3
2
  import { useOverlay } from "../../utils/Overlay.js";
3
+ import IconMore_default from "../../assets/icons/IconMore.js";
4
4
  import { computed, createBlock, createElementBlock, createElementVNode, defineComponent, markRaw, mergeProps, normalizeClass, openBlock, ref, resolveDynamicComponent, shallowRef, unref, useSlots, useTemplateRef } from "vue";
5
5
  //#region src/components/Button/WButtonMore.vue?vue&type=script&setup=true&lang.ts
6
6
  var _hoisted_1 = [
@@ -1 +1 @@
1
- {"version":3,"file":"WChartHeatmap.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Chart/WChartHeatmap.vue"],"names":[],"mappings":"AA+EA;AAsMA,QAAA,MAAM,YAAY,GAAK,IAAI,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC1D,aAAa,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,EAC9D,YAAY,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,EAC3G,gBAAgB,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,EAClE;WA4UO,OAAO,KAAK,EAAE,WAAW,GAAG,mBAAmB;QAhUnD,yCAAyC;cACnC,IAAI,EAAE;QACZ,4CAA4C;cACtC,MAAM,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QAC9C,oDAAoD;cAC9C,MAAM,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QAC9C,kDAAkD;gBAC1C,MAAM;QACd,8GAA8G;mBACnG,OAAO;MAuToD,GAAG,CAAC,OAAO,UAAU,SAAS;QAAE,oBAAoB,EAAE,MAAM,CAAC,CAAA;KAAE,GAAG,CAAC,GAAG,EAAE,CAAC;YAC1I,CAAC,OAAO,EAAE,EAAE,KAAK,IAAI;WACtB,GAAG;;QA/OT,+EAA+E;kBACrE,CAAC,KAAK,EAAE;YAAC,CAAC,EAAE,IAAI,CAAC;YAAC,KAAK,EAAE,MAAM,CAAA;SAA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;MAwToD,GAAG,CAAC,OAAO,UAAU,SAAS;QAAE,oBAAoB,EAAE,MAAM,CAAC,CAAA;KAAE,GAAG,CAAC,GAAG,EAAE,CAAC;YAC1I,CAAC,OAAO,EAAE,EAAE,KAAK,IAAI;WACtB,GAAG;;QAhPT,+EAA+E;kBACrE,CAAC,KAAK,EAAE;YAAC,CAAC,EAAE,IAAI,CAAC;YAAC,KAAK,EAAE,MAAM,CAAA;SAAC,KAAK,OAAO;;UAiPjD,EAAE;EAEL,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAA;CAAI,CAAC;wBACpE,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,mBAAmB,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,GAAG,GAAG;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG;KAAG,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,CAAC,GAAG,EAAE,CAAC"}
@@ -1,5 +1,6 @@
1
1
  import WSkeleton_default from "../Skeleton/WSkeleton.vue.js";
2
2
  import { useComponentStatesSkeleton } from "../../utils/useComponentStates.js";
3
+ import { addDay, getStartOfWeek, monthShortFormatter, weekdayNarrowFormatter } from "../../utils/dateTime.js";
3
4
  import HeatmapCell_default from "./components/HeatmapCell.vue.js";
4
5
  import { dateToKey, weekGrid } from "./models/WeekGrid.js";
5
6
  import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, nextTick, onMounted, openBlock, renderList, renderSlot, toDisplayString, unref, useTemplateRef, watch, withCtx } from "vue";
@@ -39,15 +40,10 @@ var WChartHeatmap_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ de
39
40
  .8,
40
41
  1
41
42
  ];
42
- const DAY_LABELS = [
43
- "M",
44
- "",
45
- "W",
46
- "",
47
- "F",
48
- "",
49
- ""
50
- ];
43
+ const dayLabels = computed(() => {
44
+ const monday = getStartOfWeek();
45
+ return Array.from({ length: 7 }, (_, index) => index % 2 || index > 4 ? "" : weekdayNarrowFormatter.format(addDay(monday, index)));
46
+ });
51
47
  const props = __props;
52
48
  const { isSkeleton } = useComponentStatesSkeleton(props);
53
49
  const scrollContainerRef = useTemplateRef("scrollContainer");
@@ -111,16 +107,16 @@ var WChartHeatmap_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ de
111
107
  default: withCtx(() => [createTextVNode(toDisplayString(thresholds.value[i]) + toDisplayString(i === OPACITIES.length - 1 ? "+" : ""), 1)]),
112
108
  _: 2
113
109
  }, 1032, ["opacity"]);
114
- }), 64))])) : createCommentVNode("", true)]), createElementVNode("div", _hoisted_5, [createElementVNode("div", _hoisted_6, [(openBlock(), createElementBlock(Fragment, null, renderList(DAY_LABELS, (label, i) => {
115
- return createElementVNode("div", {
110
+ }), 64))])) : createCommentVNode("", true)]), createElementVNode("div", _hoisted_5, [createElementVNode("div", _hoisted_6, [(openBlock(true), createElementBlock(Fragment, null, renderList(dayLabels.value, (label, i) => {
111
+ return openBlock(), createElementBlock("div", {
116
112
  key: i,
117
113
  class: "my-(--w-chart-heatmap-gap,0.125rem) flex h-(--w-chart-heatmap-size,1rem) items-center"
118
114
  }, toDisplayString(label), 1);
119
- }), 64))]), createElementVNode("div", _hoisted_7, [createElementVNode("div", _hoisted_8, [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(weekGrid), (week, wi) => {
115
+ }), 128))]), createElementVNode("div", _hoisted_7, [createElementVNode("div", _hoisted_8, [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(weekGrid), (week, wi) => {
120
116
  return openBlock(), createElementBlock("div", {
121
117
  key: wi,
122
118
  class: "flex flex-col"
123
- }, [createElementVNode("div", _hoisted_9, toDisplayString(week.monthLabel), 1), (openBlock(true), createElementBlock(Fragment, null, renderList(week.days, (key, di) => {
119
+ }, [createElementVNode("div", _hoisted_9, toDisplayString(week.month ? unref(monthShortFormatter).format(week.month) : ""), 1), (openBlock(true), createElementBlock(Fragment, null, renderList(week.days, (key, di) => {
124
120
  return openBlock(), createBlock(HeatmapCell_default, {
125
121
  key: di,
126
122
  opacity: key !== null ? dataMap.value.get(key)?.opacity ?? null : null,
@@ -19,7 +19,7 @@ declare const __VLS_export: <Data extends Record<string, number>>(__VLS_props: N
19
19
  hasArea?: boolean;
20
20
  /** Radius in px of the point marked under the tooltip. Defaults to 3. */
21
21
  pointRadius?: number;
22
- /** Text shown when there are no points in range. The `empty` slot replaces it. */
22
+ /** Text shown when there are no points in range, instead of the `noData` text set with `setTexts`. The `empty` slot replaces it. */
23
23
  emptyStub?: string;
24
24
  /** Lets the y axis start above 0, at the lowest value. By default it includes 0. */
25
25
  calcMin?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"WChartLine.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Chart/WChartLine.vue"],"names":[],"mappings":"AAwJA;AA4aA,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,SAAS,CAAA;AAMzC,QAAA,MAAM,YAAY,GAAK,IAAI,SAAS,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EACzD,aAAa,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,EAC9D,YAAY,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,EAC3G,gBAAgB,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,EAClE;WA0eO,OAAO,KAAK,EAAE,WAAW,GAAG,mBAAmB;QAterD,0FAA0F;cACpF,IAAI,EAAE;QACZ,8CAA8C;cACxC,MAAM,IAAI;QAChB,mCAAmC;cAC7B,MAAM,I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AAE,GAAG,CAAC,GAAG,EAAE,CAAC;YAC1I,CAAC,OAAO,EAAE,EAAE,KAAK,IAAI;WACtB,GAAG;;QA/cT,6MAA6M;kBACnM,CAAC,KAAK,EAAE;YAAC,CAAC,EAAE,IAAI,CAAC;YAAC,CAAC,EAAE,MAAM,CAAC;YAAC,CAAC,EAAE,MAAM,CAAC;YAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;YAAC,IAAI,EAAE,IAAI,GAAG,SAAS,CAAC;YAAC,IAAI,EAAE,IAAI,GAAG,SAAS,CAAA;SAAC,KAAK,IAAI;QAChI,uMAAuM;mBAC5L,CAAC,KAAK,EAAE;YAAC,MAAM,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;YAAC,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;YAAC,UAAU,EAAE,MAAM,CAAC;YAAC,aAAa,EAAE,MAAM,CAAA;SAAC,KAAK,IAAI;QACpJ,8EAA8E;gBACtE,MAAM,IAAI;;UA4cb,EAAE;EAEL,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAA;CAAI,CAAC;wBACpE,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,mBAAmB,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,GAAG,GAAG;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG;KAAG,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,CAAC,GAAG,EAAE,CAAC"}
@@ -1,4 +1,5 @@
1
1
  import WTooltip_default from "../Tooltip/WTooltip.vue.js";
2
+ import { getText } from "../../utils/texts.js";
2
3
  import { Fragment, computed, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, guardReactiveProps, nextTick, normalizeProps, onUnmounted, openBlock, ref, renderSlot, toDisplayString, unref, useId, useTemplateRef, watch, withCtx } from "vue";
3
4
  //#region src/components/Chart/WChartLine.vue?vue&type=script&setup=true&lang.ts
4
5
  var _hoisted_1 = { key: 0 };
@@ -312,7 +313,7 @@ var WChartLine_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defin
312
313
  x: __props.left,
313
314
  width: "100%",
314
315
  height: "100%"
315
- }, [createElementVNode("div", _hoisted_17, [renderSlot(_ctx.$slots, "empty", {}, () => [createElementVNode("div", null, toDisplayString(__props.emptyStub ?? "No data"), 1)])])], 8, _hoisted_16));
316
+ }, [createElementVNode("div", _hoisted_17, [renderSlot(_ctx.$slots, "empty", {}, () => [createElementVNode("div", null, toDisplayString(__props.emptyStub ?? unref(getText)("noData")), 1)])])], 8, _hoisted_16));
316
317
  };
317
318
  }
318
319
  });
@@ -1,7 +1,7 @@
1
1
  import { ChartContext } from './types';
2
2
  import { VNode } from 'vue';
3
3
  type __VLS_Props = {
4
- /** Time range of the x axis, as `[from, to]` timestamps in ms. The axis labels are dates, and "Today". */
4
+ /** Time range of the x axis, as `[from, to]` timestamps in ms. The axis labels are dates, and "Today", in the locale set with `setLocale`. */
5
5
  xDomain: [number, number];
6
6
  /** Range of the y axis from the range of all the lines' values. By default it is rounded out to tens or hundreds and starts at 0 or below. */
7
7
  yDomainGetter?: (extent: [number, number]) => [number, number];
@@ -38,8 +38,8 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {
38
38
  skeleton: boolean;
39
39
  left: number;
40
40
  right: number;
41
- height: number;
42
41
  yDomainGetter: (extent: [number, number]) => [number, number];
42
+ height: number;
43
43
  yFormat: (value: number) => string;
44
44
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
45
45
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -1 +1 @@
1
- {"version":3,"file":"WChartLinear.vue.d.ts","sourceRoot":"","sources":["../../../../src/components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8G;IAC9G,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAC;AA8FJ,KAAK,WAAW,GAAG;IACjB,6IAA6I;IAC7I,OAAO,EAAE,CAAC,KAAK,EAAE,YAAY,KAAK,KAAK,EAAE,CAAA;CAC1C,CAAC;AAiIF,QAAA,MAAM,UAAU;;;SA3ON,MAAM;YAEH,MAAM;cAMJ,OAAO;UAJX,MAAM;WAEL,MAAM;mBAlBE,CAAC,MAAM,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,EAAE,MAAM,CAAC;YAErD,MAAM;aAQL,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM;6EAiPrC,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import WSkeleton_default from "../Skeleton/WSkeleton.vue.js";
2
2
  import { useComponentStatesSkeleton } from "../../utils/useComponentStates.js";
3
- import { dateFormatShort, isSameDate } from "../../utils/dateTime.js";
3
+ import { dateFormat, isSameDate, todayFormat } from "../../utils/dateTime.js";
4
4
  import ChartAxis_default from "./components/ChartAxis.vue.js";
5
5
  import { computed, createBlock, createCommentVNode, createElementBlock, defineComponent, normalizeClass, onBeforeUnmount, onMounted, openBlock, ref, renderSlot, unref, useTemplateRef, watch } from "vue";
6
6
  //#region src/components/Chart/WChartLinear.vue?vue&type=script&setup=true&lang.ts
@@ -99,7 +99,7 @@ var WChartLinear_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ def
99
99
  key: 0,
100
100
  orientation: "x",
101
101
  scale: scaleX,
102
- format: (value) => unref(isSameDate)(new Date(value), /* @__PURE__ */ new Date()) ? "Today" : unref(dateFormatShort)(new Date(value)),
102
+ format: (value) => unref(isSameDate)(new Date(value), /* @__PURE__ */ new Date()) ? unref(todayFormat)() : unref(dateFormat)(new Date(value), { year: "auto" }),
103
103
  domain: xExtent.value,
104
104
  transform: `translate(0, ${svgHeight.value - __props.bottom})`,
105
105
  "y-right": __props.yRight === true
@@ -1,6 +1,6 @@
1
1
  export declare const dateToKey: (date: Date) => string;
2
2
  export declare const weekGrid: {
3
3
  days: Array<string | null>;
4
- monthLabel: string | undefined;
4
+ month: Date | undefined;
5
5
  }[];
6
6
  //# sourceMappingURL=WeekGrid.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"WeekGrid.d.ts","sourceRoot":"","sources":["../../../../../src/components/Chart/models/WeekGrid.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS,GAAI,MAAM,IAAI,KAAG,MAEtC,CAAA;AAED,eAAO,MAAM,QAAQ;UAeQ,KAAK,CAAC,MAAM,GAAG,IAAI,CAAC;gBAAc,MAAM,GAAG,SAAS;GAiC7E,CAAA"}
1
+ {"version":3,"file":"WeekGrid.d.ts","sourceRoot":"","sources":["../../../../../src/components/Chart/models/WeekGrid.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,GAAI,MAAM,IAAI,KAAG,MAEtC,CAAA;AAED,eAAO,MAAM,QAAQ;UAeQ,KAAK,CAAC,MAAM,GAAG,IAAI,CAAC;WAAS,IAAI,GAAG,SAAS;GAiCtE,CAAA"}
@@ -1,5 +1,4 @@
1
1
  //#region src/components/Chart/models/WeekGrid.ts
2
- var monthFormatter = new Intl.DateTimeFormat("en", { month: "short" });
3
2
  var dateToKey = (date) => {
4
3
  return `${date.getFullYear()}-${String(date.getMonth() + 1).padStart(2, "0")}-${String(date.getDate()).padStart(2, "0")}`;
5
4
  };
@@ -28,17 +27,17 @@ var weekGrid = (() => {
28
27
  }
29
28
  current.setDate(current.getDate() + 1);
30
29
  }
31
- let monthLabel;
30
+ let monthStart;
32
31
  if (firstVisibleDate) {
33
32
  const month = firstVisibleDate.getMonth();
34
33
  if (month !== lastMonth) {
35
- monthLabel = monthFormatter.format(firstVisibleDate);
34
+ monthStart = firstVisibleDate;
36
35
  lastMonth = month;
37
36
  }
38
37
  }
39
38
  result.push({
40
39
  days,
41
- monthLabel
40
+ month: monthStart
42
41
  });
43
42
  }
44
43
  return result;
@@ -1 +1 @@
1
- {"version":3,"file":"WClickOutside.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/ClickOutside/WClickOutside.vue"],"names":[],"mappings":"AAUA;AAkFA,KAAK,WAAW,GAAG;IACjB,sDAAsD;IACtD,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAC;AAeF,KAAK,WAAW,GAAG;IACjB,4EAA4E;IAC5E,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;CACrB,CAAC;AAoFF,QAAA,MAAM,UAAU;;;;;;;;;;kFAGd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"WClickOutside.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/ClickOutside/WClickOutside.vue"],"names":[],"mappings":"AAUA;AAiGA,KAAK,WAAW,GAAG;IACjB,sDAAsD;IACtD,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAC;AAeF,KAAK,WAAW,GAAG;IACjB,4EAA4E;IAC5E,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;CACrB,CAAC;AAmGF,QAAA,MAAM,UAAU;;;;;;;;;;kFAGd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
@@ -15,9 +15,16 @@ var WClickOutside_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ de
15
15
  const emit = __emit;
16
16
  const elementRef = useTemplateRef("element");
17
17
  const isOnDisabled = (event) => event.target instanceof Element && event.target.closest(":disabled") !== null;
18
+ const isInside = (event) => !!elementRef.value && event.composedPath().includes(elementRef.value);
19
+ let isPressedInside = false;
20
+ const pointerdownListener = (event) => {
21
+ isPressedInside = isInside(event);
22
+ };
18
23
  const emitOutside = (event) => {
24
+ const wasPressedInside = isPressedInside;
25
+ if (event.type !== "pointerup") isPressedInside = false;
19
26
  if (!props.noFilter) {
20
- if (!elementRef.value || event.composedPath().includes(elementRef.value)) return;
27
+ if (!elementRef.value || wasPressedInside || isInside(event)) return;
21
28
  }
22
29
  emit("click", event);
23
30
  };
@@ -30,6 +37,7 @@ var WClickOutside_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ de
30
37
  onMounted(() => {
31
38
  if (!getIsClientSide()) return;
32
39
  setTimeout(() => {
40
+ document.addEventListener("pointerdown", pointerdownListener, true);
33
41
  document.addEventListener("click", clickListener);
34
42
  document.addEventListener("contextmenu", clickListener);
35
43
  document.addEventListener("pointerup", pointerListener);
@@ -37,6 +45,7 @@ var WClickOutside_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ de
37
45
  });
38
46
  onBeforeUnmount(() => {
39
47
  if (!getIsClientSide()) return;
48
+ document.removeEventListener("pointerdown", pointerdownListener, true);
40
49
  document.removeEventListener("click", clickListener);
41
50
  document.removeEventListener("contextmenu", clickListener);
42
51
  document.removeEventListener("pointerup", pointerListener);
@@ -1 +1 @@
1
- {"version":3,"file":"WDatePicker.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/DatePicker/WDatePicker.vue"],"names":[],"mappings":"AAkEA;AAqLA,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,gBAAgB,CAAA;AAY7C,KAAK,WAAW,GAAG;IACf,qFAAqF;IACrF,UAAU,EAAE,SAAS,GAAG,SAAS,CAAA;IACjC,+EAA+E;IAC/E,OAAO,CAAC,EAAE,IAAI,CAAA;IACd,4EAA4E;IAC5E,OAAO,CAAC,EAAE,IAAI,CAAA;IACd,gHAAgH;IAChH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,gHAAgH;IAChH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,gHAAgH;IAChH,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAC;AAsUJ,QAAA,MAAM,YAAY;;;;;cAvUH,OAAO;cAFP,OAAO;cAFP,OAAO;aAJR,IAAI;aAEJ,IAAI;6EAiVhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
1
+ {"version":3,"file":"WDatePicker.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/DatePicker/WDatePicker.vue"],"names":[],"mappings":"AAkEA;AAsLA,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,gBAAgB,CAAA;AAa7C,KAAK,WAAW,GAAG;IACf,qFAAqF;IACrF,UAAU,EAAE,SAAS,GAAG,SAAS,CAAA;IACjC,+EAA+E;IAC/E,OAAO,CAAC,EAAE,IAAI,CAAA;IACd,4EAA4E;IAC5E,OAAO,CAAC,EAAE,IAAI,CAAA;IACd,gHAAgH;IAChH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,gHAAgH;IAChH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,gHAAgH;IAChH,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAC;AAuUJ,QAAA,MAAM,YAAY;;;;;cAxUH,OAAO;cAFP,OAAO;cAFP,OAAO;aAJR,IAAI;aAEJ,IAAI;6EAkVhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -1,5 +1,6 @@
1
1
  import { useComponentStates } from "../../utils/useComponentStates.js";
2
2
  import { getStartOfDay, isSameMonth, monthShortFormatter } from "../../utils/dateTime.js";
3
+ import { getText } from "../../utils/texts.js";
3
4
  import CalendarMonth_default from "./components/CalendarMonth.vue.js";
4
5
  import CalendarToggle_default from "./components/CalendarToggle.vue.js";
5
6
  import CalendarValue_default from "./components/CalendarValue.vue.js";
@@ -72,21 +73,23 @@ var WDatePicker_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defi
72
73
  });
73
74
  return (_ctx, _cache) => {
74
75
  return openBlock(), createElementBlock("div", null, [createElementVNode("div", _hoisted_1, [createVNode(CalendarValue_default, {
75
- title: "From:",
76
+ title: unref(getText)("dateFrom"),
76
77
  value: dateRange.value?.from,
77
78
  "current-date": unref(currentDate),
78
79
  "auto-focus": "",
79
80
  "onUpdate:currentDate": unref(setCurrentDate)
80
81
  }, null, 8, [
82
+ "title",
81
83
  "value",
82
84
  "current-date",
83
85
  "onUpdate:currentDate"
84
86
  ]), createVNode(CalendarValue_default, {
85
- title: "To:",
87
+ title: unref(getText)("dateTo"),
86
88
  value: dateRange.value?.to,
87
89
  "current-date": unref(currentDate),
88
90
  "onUpdate:currentDate": unref(setCurrentDate)
89
91
  }, null, 8, [
92
+ "title",
90
93
  "value",
91
94
  "current-date",
92
95
  "onUpdate:currentDate"
@@ -1 +1 @@
1
- {"version":3,"file":"CalendarValue.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/DatePicker/components/CalendarValue.vue"],"names":[],"mappings":"AAsBA;AA+DA,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,IAAI,CAAA;IACjB,KAAK,CAAC,EAAE,IAAI,CAAA;IACZ,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB,CAAC;AAqFF,QAAA,MAAM,YAAY;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
1
+ {"version":3,"file":"CalendarValue.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/DatePicker/components/CalendarValue.vue"],"names":[],"mappings":"AAsBA;AAiEA,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,IAAI,CAAA;IACjB,KAAK,CAAC,EAAE,IAAI,CAAA;IACZ,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB,CAAC;AAsFF,QAAA,MAAM,YAAY;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -1,5 +1,6 @@
1
1
  import { SemanticType, useSemanticTypeBackgroundMap } from "../../../utils/SemanticType.js";
2
2
  import { dateFormat, getStartOfMonth, isSameMonth } from "../../../utils/dateTime.js";
3
+ import { getText } from "../../../utils/texts.js";
3
4
  import { computed, createElementBlock, createElementVNode, defineComponent, normalizeClass, onBeforeMount, openBlock, toDisplayString, unref } from "vue";
4
5
  //#region src/components/DatePicker/components/CalendarValue.vue?vue&type=script&setup=true&lang.ts
5
6
  var _hoisted_1 = { class: "mb-0.5 font-normal tracking-wide" };
@@ -28,7 +29,7 @@ var CalendarValue_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ de
28
29
  return openBlock(), createElementBlock("div", {
29
30
  class: normalizeClass(["relative w-full select-none rounded-xl bg-linear-to-tr px-4 py-3", [{ "w-ripple w-ripple-hover cursor-pointer": clickable.value }, unref(semanticTypeBackgroundMap)[unref(SemanticType).PRIMARY]]]),
30
31
  onClick: updateCurrentDate
31
- }, [createElementVNode("div", _hoisted_1, toDisplayString(__props.title), 1), createElementVNode("div", { class: normalizeClass(["font-semibold tracking-wide", { "opacity-50": !__props.value }]) }, toDisplayString(__props.value ? unref(dateFormat)(__props.value) : "NONE"), 3)], 2);
32
+ }, [createElementVNode("div", _hoisted_1, toDisplayString(__props.title), 1), createElementVNode("div", { class: normalizeClass(["font-semibold tracking-wide", { "opacity-50": !__props.value }]) }, toDisplayString(__props.value ? unref(dateFormat)(__props.value) : unref(getText)("noDate")), 3)], 2);
32
33
  };
33
34
  }
34
35
  });
@@ -1,5 +1,5 @@
1
1
  import { HorizontalAlign } from "../../utils/HorizontalAlign.js";
2
- import { dateFormat, parseDate } from "../../utils/dateTime.js";
2
+ import { dateInputFormat, parseDateInput } from "../../utils/dateTime.js";
3
3
  import WDatePickerSingle_default from "../DatePicker/WDatePickerSingle.vue.js";
4
4
  import WInputSuggest_default from "./WInputSuggest.vue.js";
5
5
  import { createBlock, createElementVNode, createSlots, createVNode, defineComponent, guardReactiveProps, mergeProps, normalizeProps, openBlock, ref, renderSlot, useTemplateRef, watch, withCtx, withModifiers } from "vue";
@@ -87,14 +87,14 @@ var WInputDate_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defin
87
87
  const props = __props;
88
88
  const emit = __emit;
89
89
  const inputComponentRef = useTemplateRef("inputComponent");
90
- const inputValue = ref(props.modelValue ? dateFormat(props.modelValue) : "");
90
+ const inputValue = ref(props.modelValue ? dateInputFormat(props.modelValue) : "");
91
91
  const updateInputValue = (value) => {
92
92
  inputValue.value = value ?? "";
93
93
  if (!value) {
94
94
  emit("update:model-value", void 0);
95
95
  return;
96
96
  }
97
- const date = parseDate(value);
97
+ const date = parseDateInput(value);
98
98
  if (!date) return;
99
99
  if (props.minDate && props.minDate > date) {
100
100
  emit("update:model-value", props.minDate);
@@ -107,10 +107,10 @@ var WInputDate_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defin
107
107
  emit("update:model-value", date);
108
108
  };
109
109
  const formatModelValue = (value) => {
110
- inputValue.value = value ? dateFormat(value) : "";
110
+ inputValue.value = value ? dateInputFormat(value) : "";
111
111
  };
112
112
  watch(() => props.modelValue, (value) => {
113
- inputValue.value = value ? dateFormat(value) : "";
113
+ inputValue.value = value ? dateInputFormat(value) : "";
114
114
  });
115
115
  return (_ctx, _cache) => {
116
116
  return openBlock(), createBlock(WInputSuggest_default, mergeProps({ ref: "inputComponent" }, {
@@ -1,7 +1,7 @@
1
1
  import { useIsMobile } from "../../utils/mobile.js";
2
2
  import { useComponentStates } from "../../utils/useComponentStates.js";
3
- import { HorizontalAlign } from "../../utils/HorizontalAlign.js";
4
3
  import IconArrow_default from "../../assets/icons/IconArrow.js";
4
+ import { HorizontalAlign } from "../../utils/HorizontalAlign.js";
5
5
  import WDropdownAdaptive_default from "../DropdownMenu/WDropdownAdaptive.vue.js";
6
6
  import InputActionsButton_default from "./components/InputActionsButton.vue.js";
7
7
  import WInput_default from "./WInput.vue.js";
@@ -1 +1 @@
1
- {"version":3,"file":"InputSuggestEmbedded.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/Input/components/InputSuggestEmbedded.vue"],"names":[],"mappings":"AAaA;AAiDA,QAAA,IAAI,OAAO;;;CAAU,EAAE,OAAO,IAAW,CAAE;AAC3C,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC3C;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAC/C,QAAA,MAAM,UAAU,+QACd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"InputSuggestEmbedded.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/Input/components/InputSuggestEmbedded.vue"],"names":[],"mappings":"AAaA;AAkDA,QAAA,IAAI,OAAO;;;CAAU,EAAE,OAAO,IAAW,CAAE;AAC3C,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC3C;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAC/C,QAAA,MAAM,UAAU,+QACd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import OverlayRegionPart_default from "../../Modal/components/OverlayRegionPart.vue.js";
2
2
  import { Fragment, createElementBlock, createElementVNode, createVNode, defineComponent, guardReactiveProps, normalizeProps, openBlock, renderSlot, withCtx } from "vue";
3
3
  //#region src/components/Input/components/InputSuggestEmbedded.vue?vue&type=script&setup=true&lang.ts
4
- var _hoisted_1 = { class: "w-frame-bleed" };
4
+ var _hoisted_1 = { class: "w-frame-bleed [&_.w-select-option]:px-(--w-frame-padding)" };
5
5
  var InputSuggestEmbedded_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
6
6
  __name: "InputSuggestEmbedded",
7
7
  setup(__props) {
@@ -2,8 +2,8 @@ import { SemanticType } from "../../utils/SemanticType.js";
2
2
  import { BASE_ZINDEX_MODAL, getIsClientSide, isAnchorConnected, wBaseZIndex } from "../../utils/utils.js";
3
3
  import { useIsBackdrop } from "./use/useIsBackdrop.js";
4
4
  import { closeChildLayers, closeLayer, hasLayerChanges, isLayerBusy, openConfirm, setOverlayHost, toClose, useOverlayLayers } from "./models/overlayRegistry.js";
5
- import { wIsModal } from "./models/injection.js";
6
5
  import { getText } from "../../utils/texts.js";
6
+ import { wIsModal } from "./models/injection.js";
7
7
  import ModalCloseButton_default from "./components/ModalCloseButton.vue.js";
8
8
  import OverlayDropdown_default from "./components/OverlayDropdown.vue.js";
9
9
  import OverlayLayerProvider_default from "./components/OverlayLayerProvider.vue.js";
@@ -1 +1 @@
1
- {"version":3,"file":"OverlayDropdown.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/Modal/components/OverlayDropdown.vue"],"names":[],"mappings":"AAoKA;AAAA,OA0QO,KAAK,EAAC,aAAa,EAAE,sBAAsB,EAAC,MAAM,iBAAiB,CAAA;AAU1E,OAAO,EAAC,eAAe,EAAC,MAAM,yBAAyB,CAAA;AAUvD,KAAK,WAAW,GAAG,sBAAsB,GAAG;IACxC,MAAM,EAAE,aAAa,CAAA;IACrB,4EAA4E;IAC5E,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,wEAAwE;IACxE,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,kGAAkG;IAClG,IAAI,CAAC,EAAE,OAAO,CAAA;CACf,CAAC;AAsdJ,QAAA,IAAuB,QAAQ,IAAW,EAAuB,QAAQ,IAAY,CAAE;AACvF,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC7C;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAShD,QAAA,MAAM,UAAU;;;;;;;;;;6EAId,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"OverlayDropdown.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/Modal/components/OverlayDropdown.vue"],"names":[],"mappings":"AAoKA;AAAA,OA0QO,KAAK,EAAC,aAAa,EAAE,sBAAsB,EAAC,MAAM,iBAAiB,CAAA;AAU1E,OAAO,EAAC,eAAe,EAAC,MAAM,yBAAyB,CAAA;AAUvD,KAAK,WAAW,GAAG,sBAAsB,GAAG;IACxC,MAAM,EAAE,aAAa,CAAA;IACrB,4EAA4E;IAC5E,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,wEAAwE;IACxE,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,kGAAkG;IAClG,IAAI,CAAC,EAAE,OAAO,CAAA;CACf,CAAC;AAwdJ,QAAA,IAAuB,QAAQ,IAAW,EAAuB,QAAQ,IAAY,CAAE;AACvF,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC7C;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAShD,QAAA,MAAM,UAAU;;;;;;;;;;6EAId,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
@@ -3,8 +3,8 @@ import { getIsMobile } from "../../../utils/mobile.js";
3
3
  import WClickOutside_default from "../../ClickOutside/WClickOutside.vue.js";
4
4
  import WBottomSheet_default from "../../BottomSheet/WBottomSheet.vue.js";
5
5
  import { HorizontalAlign } from "../../../utils/HorizontalAlign.js";
6
- import WDropdown_default from "../../Dropdown/WDropdown.vue.js";
7
6
  import { LAYER_ATTRIBUTE, isInLayerWithin, wOverlayFrame, wOverlayLayer } from "../models/overlayRegistry.js";
7
+ import WDropdown_default from "../../Dropdown/WDropdown.vue.js";
8
8
  import WDropdownTip_default from "../../Dropdown/WDropdownTip.vue.js";
9
9
  import WInfiniteListScrollingElement_default from "../../InfiniteList/WInfiniteListScrollingElement.vue.js";
10
10
  import OverlayRegion_default from "./OverlayRegion.vue.js";
@@ -143,7 +143,7 @@ var OverlayDropdown_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/
143
143
  "no-filter": __props.closeOnClick,
144
144
  class: normalizeClass([[
145
145
  __props.frameClass ?? "w-dropdown-frame",
146
- unref(regions).title.length ? [unref(options)?.fitContent ? "w-max min-w-48 max-w-[min(24rem,calc(100vw-2rem))]" : "w-[min(24rem,calc(100vw-2rem))]", "max-h-112"] : void 0,
146
+ unref(regions).title.length ? [unref(options)?.fitContent ? "w-max min-w-[min(18rem,calc(100vw-2rem))] max-w-[min(24rem,calc(100vw-2rem))]" : "w-[min(24rem,calc(100vw-2rem))]", "max-h-112"] : void 0,
147
147
  hasTip.value ? isBeside.value ? "w-tooltip-center-y" : "w-tooltip-center-x" : void 0,
148
148
  __props.cornered && __props.frameClass === void 0 && {
149
149
  "rounded-bl-none": isRight && isTop,
@@ -167,7 +167,7 @@ var OverlayDropdown_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/
167
167
  key: 2,
168
168
  class: normalizeClass(["px-(--w-frame-padding) pb-4", { "pt-(--w-frame-padding)": !unref(regions).title.length && !unref(regions).subtitle.length }])
169
169
  }, [createVNode(OverlayRegion_default, { parts: unref(regions).header }, null, 8, ["parts"])], 2)) : createCommentVNode("", true),
170
- createVNode(WInfiniteListScrollingElement_default, { class: normalizeClass(["min-h-0 flex-1 overflow-auto overscroll-contain", unref(options)?.padded ? ["px-(--w-frame-padding)", {
170
+ createVNode(WInfiniteListScrollingElement_default, { class: normalizeClass(["flex min-h-0 flex-1 flex-col overflow-auto overscroll-contain", unref(options)?.padded ? ["px-(--w-frame-padding)", {
171
171
  "pt-(--w-frame-padding)": !hasTop.value,
172
172
  "pb-(--w-frame-padding)": !unref(regions).actions.length
173
173
  }] : "[--w-frame-padding:0px]"]) }, {