@semcore/date-picker 4.58.0-prerelease.1 → 4.58.0-prerelease.5

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 (148) hide show
  1. package/lib/cjs/DatePicker.js +27 -36
  2. package/lib/cjs/DatePicker.js.map +1 -1
  3. package/lib/cjs/DateRangeComparator.js +38 -43
  4. package/lib/cjs/DateRangeComparator.js.map +1 -1
  5. package/lib/cjs/DateRangePicker.js +17 -22
  6. package/lib/cjs/DateRangePicker.js.map +1 -1
  7. package/lib/cjs/MonthDateRangeComparator.js +42 -47
  8. package/lib/cjs/MonthDateRangeComparator.js.map +1 -1
  9. package/lib/cjs/MonthPicker.js +16 -21
  10. package/lib/cjs/MonthPicker.js.map +1 -1
  11. package/lib/cjs/MonthRangePicker.js +18 -23
  12. package/lib/cjs/MonthRangePicker.js.map +1 -1
  13. package/lib/cjs/components/ButtonTrigger.js +8 -10
  14. package/lib/cjs/components/ButtonTrigger.js.map +1 -1
  15. package/lib/cjs/components/Calendar.js +109 -125
  16. package/lib/cjs/components/Calendar.js.map +1 -1
  17. package/lib/cjs/components/DateRangeComparatorAbstract.js +121 -104
  18. package/lib/cjs/components/DateRangeComparatorAbstract.js.map +1 -1
  19. package/lib/cjs/components/InputTrigger.js +179 -189
  20. package/lib/cjs/components/InputTrigger.js.map +1 -1
  21. package/lib/cjs/components/PickerAbstract.js +58 -57
  22. package/lib/cjs/components/PickerAbstract.js.map +1 -1
  23. package/lib/cjs/components/RangePickerAbstract.js +97 -76
  24. package/lib/cjs/components/RangePickerAbstract.js.map +1 -1
  25. package/lib/cjs/components/index.js +41 -46
  26. package/lib/cjs/components/index.js.map +1 -1
  27. package/lib/cjs/index.d.js.map +1 -1
  28. package/lib/cjs/index.js +2 -2
  29. package/lib/cjs/index.js.map +1 -1
  30. package/lib/cjs/style/calendar.shadow.css +19 -21
  31. package/lib/cjs/style/date-picker.shadow.css +7 -8
  32. package/lib/cjs/translations/__intergalactic-dynamic-locales.js +4 -5
  33. package/lib/cjs/translations/__intergalactic-dynamic-locales.js.map +1 -1
  34. package/lib/cjs/translations/de.json +6 -2
  35. package/lib/cjs/translations/es.json +6 -2
  36. package/lib/cjs/translations/fr.json +6 -2
  37. package/lib/cjs/translations/it.json +6 -2
  38. package/lib/cjs/translations/ja.json +6 -2
  39. package/lib/cjs/translations/ko.json +6 -2
  40. package/lib/cjs/translations/nl.json +6 -2
  41. package/lib/cjs/translations/pl.json +6 -2
  42. package/lib/cjs/translations/pt.json +6 -2
  43. package/lib/cjs/translations/sv.json +6 -2
  44. package/lib/cjs/translations/tr.json +6 -2
  45. package/lib/cjs/translations/vi.json +6 -2
  46. package/lib/cjs/translations/zh.json +6 -2
  47. package/lib/cjs/utils/cronTabScheduler.js +8 -5
  48. package/lib/cjs/utils/cronTabScheduler.js.map +1 -1
  49. package/lib/cjs/utils/datesIntersects.js +3 -4
  50. package/lib/cjs/utils/datesIntersects.js.map +1 -1
  51. package/lib/cjs/utils/formatDate.js +3 -5
  52. package/lib/cjs/utils/formatDate.js.map +1 -1
  53. package/lib/cjs/utils/includesDate.js +2 -3
  54. package/lib/cjs/utils/includesDate.js.map +1 -1
  55. package/lib/cjs/utils/isBetweenPlugin.js +21 -0
  56. package/lib/cjs/utils/isBetweenPlugin.js.map +1 -0
  57. package/lib/cjs/utils/shortDateRangeFormat.js +2 -2
  58. package/lib/cjs/utils/shortDateRangeFormat.js.map +1 -1
  59. package/lib/es6/DatePicker.js +22 -28
  60. package/lib/es6/DatePicker.js.map +1 -1
  61. package/lib/es6/DateRangeComparator.js +23 -27
  62. package/lib/es6/DateRangeComparator.js.map +1 -1
  63. package/lib/es6/DateRangePicker.js +13 -17
  64. package/lib/es6/DateRangePicker.js.map +1 -1
  65. package/lib/es6/MonthDateRangeComparator.js +28 -32
  66. package/lib/es6/MonthDateRangeComparator.js.map +1 -1
  67. package/lib/es6/MonthPicker.js +13 -17
  68. package/lib/es6/MonthPicker.js.map +1 -1
  69. package/lib/es6/MonthRangePicker.js +14 -18
  70. package/lib/es6/MonthRangePicker.js.map +1 -1
  71. package/lib/es6/components/ButtonTrigger.js +5 -5
  72. package/lib/es6/components/ButtonTrigger.js.map +1 -1
  73. package/lib/es6/components/Calendar.js +100 -112
  74. package/lib/es6/components/Calendar.js.map +1 -1
  75. package/lib/es6/components/DateRangeComparatorAbstract.js +120 -101
  76. package/lib/es6/components/DateRangeComparatorAbstract.js.map +1 -1
  77. package/lib/es6/components/InputTrigger.js +173 -180
  78. package/lib/es6/components/InputTrigger.js.map +1 -1
  79. package/lib/es6/components/PickerAbstract.js +58 -55
  80. package/lib/es6/components/PickerAbstract.js.map +1 -1
  81. package/lib/es6/components/RangePickerAbstract.js +94 -71
  82. package/lib/es6/components/RangePickerAbstract.js.map +1 -1
  83. package/lib/es6/components/index.js +35 -38
  84. package/lib/es6/components/index.js.map +1 -1
  85. package/lib/es6/index.d.js.map +1 -1
  86. package/lib/es6/index.js.map +1 -1
  87. package/lib/es6/style/calendar.shadow.css +19 -21
  88. package/lib/es6/style/date-picker.shadow.css +7 -8
  89. package/lib/es6/translations/__intergalactic-dynamic-locales.js +2 -2
  90. package/lib/es6/translations/__intergalactic-dynamic-locales.js.map +1 -1
  91. package/lib/es6/translations/de.json +6 -2
  92. package/lib/es6/translations/es.json +6 -2
  93. package/lib/es6/translations/fr.json +6 -2
  94. package/lib/es6/translations/it.json +6 -2
  95. package/lib/es6/translations/ja.json +6 -2
  96. package/lib/es6/translations/ko.json +6 -2
  97. package/lib/es6/translations/nl.json +6 -2
  98. package/lib/es6/translations/pl.json +6 -2
  99. package/lib/es6/translations/pt.json +6 -2
  100. package/lib/es6/translations/sv.json +6 -2
  101. package/lib/es6/translations/tr.json +6 -2
  102. package/lib/es6/translations/vi.json +6 -2
  103. package/lib/es6/translations/zh.json +6 -2
  104. package/lib/es6/utils/cronTabScheduler.js +7 -4
  105. package/lib/es6/utils/cronTabScheduler.js.map +1 -1
  106. package/lib/es6/utils/datesIntersects.js +1 -1
  107. package/lib/es6/utils/datesIntersects.js.map +1 -1
  108. package/lib/es6/utils/formatDate.js.map +1 -1
  109. package/lib/es6/utils/includesDate.js.map +1 -1
  110. package/lib/es6/utils/isBetweenPlugin.js +16 -0
  111. package/lib/es6/utils/isBetweenPlugin.js.map +1 -0
  112. package/lib/es6/utils/shortDateRangeFormat.js +1 -1
  113. package/lib/es6/utils/shortDateRangeFormat.js.map +1 -1
  114. package/lib/esm/DatePicker.mjs +27 -33
  115. package/lib/esm/DateRangeComparator.mjs +26 -30
  116. package/lib/esm/DateRangePicker.mjs +17 -21
  117. package/lib/esm/MonthDateRangeComparator.mjs +31 -35
  118. package/lib/esm/MonthPicker.mjs +16 -20
  119. package/lib/esm/MonthRangePicker.mjs +18 -22
  120. package/lib/esm/components/ButtonTrigger.mjs +5 -5
  121. package/lib/esm/components/Calendar.mjs +103 -115
  122. package/lib/esm/components/DateRangeComparatorAbstract.mjs +105 -89
  123. package/lib/esm/components/InputTrigger.mjs +143 -181
  124. package/lib/esm/components/PickerAbstract.mjs +61 -62
  125. package/lib/esm/components/RangePickerAbstract.mjs +94 -73
  126. package/lib/esm/components/index.mjs +29 -33
  127. package/lib/esm/style/calendar.shadow.css +19 -21
  128. package/lib/esm/style/date-picker.shadow.css +7 -8
  129. package/lib/esm/translations/__intergalactic-dynamic-locales.mjs +2 -2
  130. package/lib/esm/translations/de.json.mjs +18 -6
  131. package/lib/esm/translations/es.json.mjs +18 -6
  132. package/lib/esm/translations/fr.json.mjs +18 -6
  133. package/lib/esm/translations/it.json.mjs +18 -6
  134. package/lib/esm/translations/ja.json.mjs +18 -6
  135. package/lib/esm/translations/ko.json.mjs +18 -6
  136. package/lib/esm/translations/nl.json.mjs +18 -6
  137. package/lib/esm/translations/pl.json.mjs +18 -6
  138. package/lib/esm/translations/pt.json.mjs +18 -6
  139. package/lib/esm/translations/sv.json.mjs +18 -6
  140. package/lib/esm/translations/tr.json.mjs +18 -6
  141. package/lib/esm/translations/vi.json.mjs +18 -6
  142. package/lib/esm/translations/zh.json.mjs +18 -6
  143. package/lib/esm/utils/cronTabScheduler.mjs +4 -4
  144. package/lib/esm/utils/datesIntersects.mjs +1 -1
  145. package/lib/esm/utils/isBetweenPlugin.mjs +13 -0
  146. package/lib/esm/utils/shortDateRangeFormat.mjs +1 -2
  147. package/lib/types/index.d.ts +140 -171
  148. package/package.json +16 -16
@@ -2,20 +2,19 @@ import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
3
3
  import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
4
4
  import _createClass from "@babel/runtime/helpers/esm/createClass";
5
- import _assertThisInitialized from "@babel/runtime/helpers/esm/assertThisInitialized";
5
+ import _callSuper from "@babel/runtime/helpers/esm/callSuper";
6
6
  import _inherits from "@babel/runtime/helpers/esm/inherits";
7
- import _createSuper from "@babel/runtime/helpers/esm/createSuper";
8
7
  import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
9
8
  import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
10
9
  import { assignProps, sstyled, Component } from "@semcore/core";
11
- import React from "react";
12
- import dayjs from "dayjs";
13
- import Dropdown from "@semcore/dropdown";
14
- import { Box } from "@semcore/flex-box";
10
+ import { Box } from "@semcore/base-components";
15
11
  import Button from "@semcore/button";
12
+ import { callAllEventHandlers } from "@semcore/core/lib/utils/assignProps";
13
+ import Dropdown from "@semcore/dropdown";
16
14
  import ChevronLeft from "@semcore/icon/ChevronLeft/m";
17
15
  import ChevronRight from "@semcore/icon/ChevronRight/m";
18
- import { callAllEventHandlers } from "@semcore/utils/lib/assignProps";
16
+ import dayjs from "dayjs";
17
+ import React from "react";
19
18
  import ButtonTrigger from "./ButtonTrigger.mjs";
20
19
  import InputTrigger$1 from "./InputTrigger.mjs";
21
20
  var _excluded = ["value", "onClick", "onMouseEnter", "onMouseLeave"];
@@ -47,49 +46,45 @@ function Popper(props) {
47
46
  }, _ref3))));
48
47
  }
49
48
  function Header(props) {
50
- var _ref4 = arguments[0], _ref10;
49
+ var _ref4 = arguments[0], _ref0;
51
50
  var SHeader = Box;
52
- return _ref10 = sstyled(props.styles), /* @__PURE__ */ React.createElement(SHeader, _ref10.cn("SHeader", _objectSpread({}, assignProps({}, _ref4))));
51
+ return _ref0 = sstyled(props.styles), /* @__PURE__ */ React.createElement(SHeader, _ref0.cn("SHeader", _objectSpread({}, assignProps({}, _ref4))));
53
52
  }
54
- var Title = function Title2(_ref13) {
55
- var _ref5 = arguments[0], _ref11;
56
- var Children = _ref13.Children, styles = _ref13.styles;
53
+ function Title(_ref11) {
54
+ var _ref5 = arguments[0], _ref1;
55
+ var Children = _ref11.Children, styles = _ref11.styles;
57
56
  var STitle = Box;
58
- return _ref11 = sstyled(styles), /* @__PURE__ */ React.createElement(STitle, _ref11.cn("STitle", _objectSpread({}, assignProps({
57
+ return _ref1 = sstyled(styles), /* @__PURE__ */ React.createElement(STitle, _ref1.cn("STitle", _objectSpread({}, assignProps({
59
58
  "aria-live": "polite"
60
- }, _ref5))), /* @__PURE__ */ React.createElement(Children, _ref11.cn("Children", {})));
61
- };
62
- function Prev(_ref14) {
59
+ }, _ref5))), /* @__PURE__ */ React.createElement(Children, _ref1.cn("Children", {})));
60
+ }
61
+ function Prev(_ref12) {
63
62
  var _ref6 = arguments[0];
64
- _ref14.getI18nText;
65
- var children = _ref14.children, Children = _ref14.Children;
63
+ var children = _ref12.children, Children = _ref12.Children;
66
64
  return /* @__PURE__ */ React.createElement(Button, assignProps({
67
65
  "use": "tertiary",
68
66
  "theme": "muted",
69
67
  "size": "l"
70
68
  }, _ref6), children ? /* @__PURE__ */ React.createElement(Children, null) : /* @__PURE__ */ React.createElement(Button.Addon, null, /* @__PURE__ */ React.createElement(ChevronLeft, null)));
71
69
  }
72
- function Next(_ref15) {
70
+ function Next(_ref13) {
73
71
  var _ref7 = arguments[0];
74
- _ref15.getI18nText;
75
- var children = _ref15.children, Children = _ref15.Children;
72
+ var children = _ref13.children, Children = _ref13.Children;
76
73
  return /* @__PURE__ */ React.createElement(Button, assignProps({
77
74
  "use": "tertiary",
78
75
  "theme": "muted",
79
76
  "size": "l"
80
77
  }, _ref7), children ? /* @__PURE__ */ React.createElement(Children, null) : /* @__PURE__ */ React.createElement(Button.Addon, null, /* @__PURE__ */ React.createElement(ChevronRight, null)));
81
78
  }
82
- var Period = /* @__PURE__ */ function(_Component) {
83
- _inherits(Period2, _Component);
84
- var _super = _createSuper(Period2);
79
+ var Period = /* @__PURE__ */ (function(_Component) {
85
80
  function Period2() {
86
81
  var _this;
87
82
  _classCallCheck(this, Period2);
88
83
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
89
84
  args[_key] = arguments[_key];
90
85
  }
91
- _this = _super.call.apply(_super, [this].concat(args));
92
- _defineProperty(_assertThisInitialized(_this), "getActiveControl", function() {
86
+ _this = _callSuper(this, Period2, [].concat(args));
87
+ _defineProperty(_this, "getActiveControl", function() {
93
88
  var period = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
94
89
  var value = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : void 0;
95
90
  function compareMonth(monthOne, monthTwo) {
@@ -104,15 +99,17 @@ var Period = /* @__PURE__ */ function(_Component) {
104
99
  });
105
100
  return _this;
106
101
  }
107
- _createClass(Period2, [{
102
+ _inherits(Period2, _Component);
103
+ return _createClass(Period2, [{
108
104
  key: "render",
109
105
  value: function render() {
110
- var _ref8 = this.asProps, _ref12, _this2 = this;
106
+ var _ref8 = this.asProps, _ref10, _this2 = this;
111
107
  var SPeriod = Box;
112
- var _this$asProps = this.asProps, styles = _this$asProps.styles, value = _this$asProps.value, onChange = _this$asProps.onChange, periods = _this$asProps.periods, onHighlightedChange = _this$asProps.onHighlightedChange, onDisplayedPeriodChange = _this$asProps.onDisplayedPeriodChange;
113
- return _ref12 = sstyled(styles), /* @__PURE__ */ React.createElement(SPeriod, _ref12.cn("SPeriod", _objectSpread({}, assignProps({}, _ref8))), periods.map(function(_ref16, i) {
114
- var period = _ref16.value, onClick = _ref16.onClick, onMouseEnter = _ref16.onMouseEnter, onMouseLeave = _ref16.onMouseLeave, other = _objectWithoutProperties(_ref16, _excluded);
108
+ var _this$asProps = this.asProps, styles = _this$asProps.styles, value = _this$asProps.value, onChange = _this$asProps.onChange, periods = _this$asProps.periods, onHighlightedChange = _this$asProps.onHighlightedChange, onDisplayedPeriodChange = _this$asProps.onDisplayedPeriodChange, periodRef = _this$asProps.periodRef;
109
+ return _ref10 = sstyled(styles), /* @__PURE__ */ React.createElement(SPeriod, _ref10.cn("SPeriod", _objectSpread({}, assignProps({}, _ref8))), periods.map(function(_ref14, i) {
110
+ var period = _ref14.value, onClick = _ref14.onClick, onMouseEnter = _ref14.onMouseEnter, onMouseLeave = _ref14.onMouseLeave, other = _objectWithoutProperties(_ref14, _excluded);
115
111
  return /* @__PURE__ */ React.createElement(Button, _extends({
112
+ ref: periodRef === null || periodRef === void 0 ? void 0 : periodRef(i),
116
113
  key: i,
117
114
  use: "tertiary",
118
115
  theme: "muted",
@@ -134,8 +131,7 @@ var Period = /* @__PURE__ */ function(_Component) {
134
131
  }));
135
132
  }
136
133
  }]);
137
- return Period2;
138
- }(Component);
134
+ })(Component);
139
135
  export {
140
136
  Header,
141
137
  InputTrigger,
@@ -1,6 +1,11 @@
1
1
  SCalendar {
2
2
  display: flex;
3
3
  flex-direction: column;
4
+ border-radius: var(--intergalactic-surface-rounded, calc(6px + 2px));
5
+
6
+ SCalendarUnit:focus-visible {
7
+ outline: none;
8
+ }
4
9
  }
5
10
 
6
11
  SGridDays {
@@ -59,7 +64,7 @@ SCalendarUnit {
59
64
  min-height: 32px;
60
65
  min-width: 32px;
61
66
  position: relative;
62
- transition: color 0.15s, background 0.15s, box-shadow 0.15s, border-radius 0.15s 0.15s;
67
+ transition: border-radius 0.15s 0.15s;
63
68
  outline: none;
64
69
  margin: 0;
65
70
  margin-top: 4px;
@@ -93,30 +98,30 @@ SCalendarUnit[today]SCalendarUnit[endSelected] {
93
98
  }
94
99
 
95
100
  SCalendarUnit[selected] {
96
- background-color: var(--intergalactic-date-picker-cell-range, oklch(0.96 0.015 278.4));
101
+ background-color: var(--intergalactic-date-picker-cell-range, oklch(0.959 0.021 267.8));
97
102
  border-radius: 0;
98
- transition: color 0.15s, background 0.15s, box-shadow 0.15s, border-radius 0s 0s;
103
+ transition: border-radius 0s 0s;
99
104
  color: var(--intergalactic-text-primary, oklch(0.1 0.03 137 / 0.899));
100
105
 
101
106
  &:hover {
102
- background-color: var(--intergalactic-date-picker-cell-range-hover, oklch(0.9 0.038 278.4));
107
+ background-color: var(--intergalactic-date-picker-cell-range-hover, oklch(0.898 0.054 268.3));
103
108
  }
104
109
  }
105
110
 
106
111
  SCalendarUnit[highlighted] {
107
- background-color: var(--intergalactic-date-picker-cell-range-hover, oklch(0.9 0.038 278.4));
112
+ background-color: var(--intergalactic-date-picker-cell-range, oklch(0.959 0.021 267.8));
108
113
  border-radius: 0;
109
- transition: color 0.15s, background 0.15s, box-shadow 0.15s, border-radius 0s 0s;
114
+ transition: border-radius 0s 0s;
110
115
  color: var(--intergalactic-text-primary, oklch(0.1 0.03 137 / 0.899));
111
116
 
112
117
  &:hover {
113
- background-color: var(--intergalactic-date-picker-cell-range-hover, oklch(0.9 0.038 278.4));
118
+ background-color: var(--intergalactic-date-picker-cell-range-hover, oklch(0.898 0.054 268.3));
114
119
  }
115
120
  }
116
121
 
117
122
  SCalendarUnit[startSelected] {
118
123
  color: var(--intergalactic-text-primary-invert, oklch(0.999 0.001 180 / 0.949));
119
- background-color: var(--intergalactic-date-picker-cell-active, oklch(0.64 0.135 278.4));
124
+ background-color: var(--intergalactic-date-picker-cell-active, oklch(0.64 0.152 276.7));
120
125
 
121
126
  &:not([highlighted]) {
122
127
  border-bottom-left-radius: var(--intergalactic-control-rounded, 6px);
@@ -127,12 +132,12 @@ SCalendarUnit[startSelected] {
127
132
 
128
133
  &:hover {
129
134
  color: var(--intergalactic-text-primary-invert, oklch(0.999 0.001 180 / 0.949));
130
- background-color: var(--intergalactic-date-picker-cell-active-hover, oklch(0.6 0.15 278.4));
135
+ background-color: var(--intergalactic-date-picker-cell-active-hover, oklch(0.6 0.166 277.7));
131
136
  }
132
137
  }
133
138
 
134
139
  SCalendarUnit[endSelected] {
135
- background-color: var(--intergalactic-date-picker-cell-active, oklch(0.64 0.135 278.4));
140
+ background-color: var(--intergalactic-date-picker-cell-active, oklch(0.64 0.152 276.7));
136
141
  color: var(--intergalactic-text-primary-invert, oklch(0.999 0.001 180 / 0.949));
137
142
 
138
143
  &:not([highlighted]) {
@@ -144,7 +149,7 @@ SCalendarUnit[endSelected] {
144
149
 
145
150
  &:hover {
146
151
  color: var(--intergalactic-text-primary-invert, oklch(0.999 0.001 180 / 0.949));
147
- background-color: var(--intergalactic-date-picker-cell-active-hover, oklch(0.6 0.15 278.4));
152
+ background-color: var(--intergalactic-date-picker-cell-active-hover, oklch(0.6 0.166 277.7));
148
153
  }
149
154
  }
150
155
 
@@ -233,19 +238,12 @@ SCalendarUnit[disabled] {
233
238
  }
234
239
 
235
240
  SCalendar:focus {
236
- outline: none;
237
241
  & SCalendarUnit[highlighted] {
238
242
  z-index: 1;
239
- box-shadow: var(
240
- --intergalactic-keyboard-focus,
241
- 0px 0px 0px 3px oklch(0.376 0.247 264.2 / 0.441)
242
- );
243
243
  }
244
+
244
245
  &:not(&:has(SCalendarUnit[highlighted])) {
245
- box-shadow: var(
246
- --intergalactic-keyboard-focus,
247
- 0px 0px 0px 3px oklch(0.376 0.247 264.2 / 0.441)
248
- );
246
+ border-radius: var(--intergalactic-surface-rounded, calc(6px + 2px));
249
247
  }
250
248
  }
251
249
 
@@ -256,4 +254,4 @@ SCalendar:focus {
256
254
  SCalendarUnit[highlighted] {
257
255
  transition: none;
258
256
  }
259
- }
257
+ }
@@ -10,13 +10,8 @@ SPopper {
10
10
  &:active,
11
11
  &:hover,
12
12
  &:focus {
13
- outline: 0;
14
13
  text-decoration: none;
15
14
  }
16
-
17
- &:focus {
18
- box-shadow: var(--intergalactic-keyboard-focus, 0px 0px 0px 3px oklch(0.376 0.247 264.2 / 0.441));
19
- }
20
15
  }
21
16
 
22
17
  SHeader {
@@ -63,6 +58,10 @@ SInputMask[animationsDisabled] {
63
58
 
64
59
  SInputMask SValue {
65
60
  letter-spacing: 0;
61
+
62
+ &:focus {
63
+ outline: none;
64
+ }
66
65
  }
67
66
 
68
67
  SIndicator {
@@ -75,7 +74,7 @@ SRangeIndicator {
75
74
  }
76
75
 
77
76
  SRangeIndicator[range='value'] {
78
- background-color: var(--intergalactic-date-picker-cell-active, oklch(0.64 0.135 278.4));
77
+ background-color: var(--intergalactic-date-picker-cell-active, oklch(0.64 0.152 276.7));
79
78
  }
80
79
 
81
80
  SRangeIndicator[range='compare'] {
@@ -138,7 +137,7 @@ SInputMask[noHumanizedDate] SMask {
138
137
  }
139
138
 
140
139
  SDateRange SInputMask:focus-within SMask {
141
- background-color: var(--intergalactic-bg-highlight-focus, oklch(0.405 0.257 264.2 / 0.093));
140
+ background-color: var(--intergalactic-bg-highlight-focus, oklch(0.524 0.266 263.1 / 0.116));
142
141
  }
143
142
 
144
143
  SRangeSep[fulfilled],
@@ -176,4 +175,4 @@ SCompareToggle {
176
175
  SInputMask {
177
176
  transition: none;
178
177
  }
179
- }
178
+ }
@@ -6,13 +6,13 @@ import it from "./it.json.mjs";
6
6
  import ja from "./ja.json.mjs";
7
7
  import ko from "./ko.json.mjs";
8
8
  import nl from "./nl.json.mjs";
9
+ import pl from "./pl.json.mjs";
9
10
  import pt from "./pt.json.mjs";
10
11
  import ru from "./ru.json.mjs";
12
+ import sv from "./sv.json.mjs";
11
13
  import tr from "./tr.json.mjs";
12
14
  import vi from "./vi.json.mjs";
13
15
  import zh from "./zh.json.mjs";
14
- import pl from "./pl.json.mjs";
15
- import sv from "./sv.json.mjs";
16
16
  var localizedMessages = {
17
17
  de,
18
18
  en,
@@ -9,13 +9,17 @@ const last2Months = "Letzte 2 Monate";
9
9
  const last3Months = "Letzte 3 Monate";
10
10
  const last6Months = "Letzte 6 Monate";
11
11
  const last12Months = "Letzte 12 Monate";
12
- const prev = "Voriger Zeitraum";
13
- const next = "Nächster Zeitraum";
12
+ const prevYear = "Voriges Jahr";
13
+ const nextYear = "Folgejahr";
14
+ const prevMonth = "Vormonat";
15
+ const nextMonth = "Folgemonat";
14
16
  const input = "Datumsfeld";
15
17
  const compare = "Vergleichen mit";
16
18
  const fromDate = "Vom {date}";
17
19
  const toDate = "Bis {date}";
20
+ const fromDatePlaceholder = "Von-Datum";
18
21
  const periods = "Vorgaben";
22
+ const toDatePlaceholder = "Bis-Datum";
19
23
  const dateRange = "Datumsbereich";
20
24
  const dateRange1 = "Erster Datumsbereich";
21
25
  const dateRange2 = "Zweiter Datumsbereich";
@@ -37,13 +41,17 @@ const de = {
37
41
  last3Months,
38
42
  last6Months,
39
43
  last12Months,
40
- prev,
41
- next,
44
+ prevYear,
45
+ nextYear,
46
+ prevMonth,
47
+ nextMonth,
42
48
  input,
43
49
  compare,
44
50
  fromDate,
45
51
  toDate,
52
+ fromDatePlaceholder,
46
53
  periods,
54
+ toDatePlaceholder,
47
55
  dateRange,
48
56
  dateRange1,
49
57
  dateRange2,
@@ -65,6 +73,7 @@ export {
65
73
  dateRange2,
66
74
  de as default,
67
75
  fromDate,
76
+ fromDatePlaceholder,
68
77
  input,
69
78
  last12Months,
70
79
  last2Days,
@@ -74,13 +83,16 @@ export {
74
83
  last6Months,
75
84
  lastMonth,
76
85
  lastWeek,
77
- next,
86
+ nextMonth,
87
+ nextYear,
78
88
  periods,
79
- prev,
89
+ prevMonth,
90
+ prevYear,
80
91
  reset,
81
92
  selectingFinished,
82
93
  selectingStarted,
83
94
  toDate,
95
+ toDatePlaceholder,
84
96
  today,
85
97
  unavailableDate,
86
98
  unavailableEndDate,
@@ -9,13 +9,17 @@ const last2Months = "Últimos 2 meses";
9
9
  const last3Months = "Últimos 3 meses";
10
10
  const last6Months = "Últimos 6 meses";
11
11
  const last12Months = "Últimos 12 meses";
12
- const prev = "Periodo precedente";
13
- const next = "Periodo siguiente";
12
+ const prevYear = "Año anterior";
13
+ const nextYear = "Año siguiente";
14
+ const prevMonth = "Mes anterior";
15
+ const nextMonth = "Mes siguiente";
14
16
  const input = "Campo de datos";
15
17
  const compare = "Comparar con";
16
18
  const fromDate = "Desde {date}";
17
19
  const toDate = "Hasta {date}";
20
+ const fromDatePlaceholder = "Fecha de inicio";
18
21
  const periods = "Predefinidos";
22
+ const toDatePlaceholder = "Fecha de fin";
19
23
  const dateRange = "Rango de fechas";
20
24
  const dateRange1 = "Primer rango de fechas";
21
25
  const dateRange2 = "Segundo rango de fechas";
@@ -37,13 +41,17 @@ const es = {
37
41
  last3Months,
38
42
  last6Months,
39
43
  last12Months,
40
- prev,
41
- next,
44
+ prevYear,
45
+ nextYear,
46
+ prevMonth,
47
+ nextMonth,
42
48
  input,
43
49
  compare,
44
50
  fromDate,
45
51
  toDate,
52
+ fromDatePlaceholder,
46
53
  periods,
54
+ toDatePlaceholder,
47
55
  dateRange,
48
56
  dateRange1,
49
57
  dateRange2,
@@ -65,6 +73,7 @@ export {
65
73
  dateRange2,
66
74
  es as default,
67
75
  fromDate,
76
+ fromDatePlaceholder,
68
77
  input,
69
78
  last12Months,
70
79
  last2Days,
@@ -74,13 +83,16 @@ export {
74
83
  last6Months,
75
84
  lastMonth,
76
85
  lastWeek,
77
- next,
86
+ nextMonth,
87
+ nextYear,
78
88
  periods,
79
- prev,
89
+ prevMonth,
90
+ prevYear,
80
91
  reset,
81
92
  selectingFinished,
82
93
  selectingStarted,
83
94
  toDate,
95
+ toDatePlaceholder,
84
96
  today,
85
97
  unavailableDate,
86
98
  unavailableEndDate,
@@ -9,13 +9,17 @@ const last2Months = "2 derniers mois";
9
9
  const last3Months = "3 derniers mois";
10
10
  const last6Months = "6 derniers mois";
11
11
  const last12Months = "12 derniers mois";
12
- const prev = "Période précédente";
13
- const next = "Période suivante";
12
+ const prevYear = "Année précédente";
13
+ const nextYear = "Année suivante";
14
+ const prevMonth = "Mois précédent";
15
+ const nextMonth = "Mois suivant";
14
16
  const input = "Champ de date";
15
17
  const compare = "Comparer à";
16
18
  const fromDate = "Du {date}";
17
19
  const toDate = "Au {date}";
20
+ const fromDatePlaceholder = "Date de début";
18
21
  const periods = "Préréglages";
22
+ const toDatePlaceholder = "Date de fin";
19
23
  const dateRange = "Plage de dates";
20
24
  const dateRange1 = "Première plage de dates";
21
25
  const dateRange2 = "Deuxième plage de dates";
@@ -37,13 +41,17 @@ const fr = {
37
41
  last3Months,
38
42
  last6Months,
39
43
  last12Months,
40
- prev,
41
- next,
44
+ prevYear,
45
+ nextYear,
46
+ prevMonth,
47
+ nextMonth,
42
48
  input,
43
49
  compare,
44
50
  fromDate,
45
51
  toDate,
52
+ fromDatePlaceholder,
46
53
  periods,
54
+ toDatePlaceholder,
47
55
  dateRange,
48
56
  dateRange1,
49
57
  dateRange2,
@@ -65,6 +73,7 @@ export {
65
73
  dateRange2,
66
74
  fr as default,
67
75
  fromDate,
76
+ fromDatePlaceholder,
68
77
  input,
69
78
  last12Months,
70
79
  last2Days,
@@ -74,13 +83,16 @@ export {
74
83
  last6Months,
75
84
  lastMonth,
76
85
  lastWeek,
77
- next,
86
+ nextMonth,
87
+ nextYear,
78
88
  periods,
79
- prev,
89
+ prevMonth,
90
+ prevYear,
80
91
  reset,
81
92
  selectingFinished,
82
93
  selectingStarted,
83
94
  toDate,
95
+ toDatePlaceholder,
84
96
  today,
85
97
  unavailableDate,
86
98
  unavailableEndDate,
@@ -9,13 +9,17 @@ const last2Months = "Ultimi 2 mesi";
9
9
  const last3Months = "Ultimi 3 mesi";
10
10
  const last6Months = "Ultimi 6 mesi";
11
11
  const last12Months = "Ultimi 12 mesi";
12
- const prev = "Periodo precedente";
13
- const next = "Periodo successivo";
12
+ const prevYear = "Anno precedente";
13
+ const nextYear = "Anno successivo";
14
+ const prevMonth = "Mese precedente";
15
+ const nextMonth = "Mese successivo";
14
16
  const input = "Campo data";
15
17
  const compare = "Confronta con";
16
18
  const fromDate = "Da {date}";
17
19
  const toDate = "A {date}";
20
+ const fromDatePlaceholder = "Dalla data";
18
21
  const periods = "Impostazioni predefinite";
22
+ const toDatePlaceholder = "Alla data";
19
23
  const dateRange = "Intervallo temporale";
20
24
  const dateRange1 = "Primo intervallo temporale";
21
25
  const dateRange2 = "Secondo intervallo temporale";
@@ -37,13 +41,17 @@ const it = {
37
41
  last3Months,
38
42
  last6Months,
39
43
  last12Months,
40
- prev,
41
- next,
44
+ prevYear,
45
+ nextYear,
46
+ prevMonth,
47
+ nextMonth,
42
48
  input,
43
49
  compare,
44
50
  fromDate,
45
51
  toDate,
52
+ fromDatePlaceholder,
46
53
  periods,
54
+ toDatePlaceholder,
47
55
  dateRange,
48
56
  dateRange1,
49
57
  dateRange2,
@@ -65,6 +73,7 @@ export {
65
73
  dateRange2,
66
74
  it as default,
67
75
  fromDate,
76
+ fromDatePlaceholder,
68
77
  input,
69
78
  last12Months,
70
79
  last2Days,
@@ -74,13 +83,16 @@ export {
74
83
  last6Months,
75
84
  lastMonth,
76
85
  lastWeek,
77
- next,
86
+ nextMonth,
87
+ nextYear,
78
88
  periods,
79
- prev,
89
+ prevMonth,
90
+ prevYear,
80
91
  reset,
81
92
  selectingFinished,
82
93
  selectingStarted,
83
94
  toDate,
95
+ toDatePlaceholder,
84
96
  today,
85
97
  unavailableDate,
86
98
  unavailableEndDate,
@@ -9,13 +9,17 @@ const last2Months = "過去2か月間";
9
9
  const last3Months = "過去3か月間";
10
10
  const last6Months = "過去6か月間";
11
11
  const last12Months = "過去12か月間";
12
- const prev = "前期間";
13
- const next = "次の期間";
12
+ const prevYear = "前年";
13
+ const nextYear = "翌年";
14
+ const prevMonth = "前月";
15
+ const nextMonth = "翌月";
14
16
  const input = "データフィールド";
15
17
  const compare = "次と比較";
16
18
  const fromDate = "{date}から";
17
19
  const toDate = "{date}まで";
20
+ const fromDatePlaceholder = "開始日";
18
21
  const periods = "プリセット";
22
+ const toDatePlaceholder = "終了日";
19
23
  const dateRange = "日付範囲";
20
24
  const dateRange1 = "一番目の日付範囲";
21
25
  const dateRange2 = "二番目の日付範囲";
@@ -37,13 +41,17 @@ const ja = {
37
41
  last3Months,
38
42
  last6Months,
39
43
  last12Months,
40
- prev,
41
- next,
44
+ prevYear,
45
+ nextYear,
46
+ prevMonth,
47
+ nextMonth,
42
48
  input,
43
49
  compare,
44
50
  fromDate,
45
51
  toDate,
52
+ fromDatePlaceholder,
46
53
  periods,
54
+ toDatePlaceholder,
47
55
  dateRange,
48
56
  dateRange1,
49
57
  dateRange2,
@@ -65,6 +73,7 @@ export {
65
73
  dateRange2,
66
74
  ja as default,
67
75
  fromDate,
76
+ fromDatePlaceholder,
68
77
  input,
69
78
  last12Months,
70
79
  last2Days,
@@ -74,13 +83,16 @@ export {
74
83
  last6Months,
75
84
  lastMonth,
76
85
  lastWeek,
77
- next,
86
+ nextMonth,
87
+ nextYear,
78
88
  periods,
79
- prev,
89
+ prevMonth,
90
+ prevYear,
80
91
  reset,
81
92
  selectingFinished,
82
93
  selectingStarted,
83
94
  toDate,
95
+ toDatePlaceholder,
84
96
  today,
85
97
  unavailableDate,
86
98
  unavailableEndDate,