@onereach/ui-components 19.2.0 → 19.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundled/components/OrDataGridV3/OrDataGrid.js +1 -1
- package/dist/bundled/components/OrDataGridV3/index.js +1 -1
- package/dist/bundled/components/OrDataGridV3/styles.js +1 -1
- package/dist/bundled/components/{OrDataGridV3-68fc4d4a.js → OrDataGridV3-607bd571.js} +3 -3
- package/dist/bundled/components/OrDateFormatV3/OrDateFormat.js +1 -1
- package/dist/bundled/components/OrDateFormatV3/index.js +1 -1
- package/dist/bundled/components/OrDateFormatV3/styles.js +1 -1
- package/dist/bundled/components/{OrDateFormatV3-a754f32e.js → OrDateFormatV3-7523e0b0.js} +1 -1
- package/dist/bundled/components/OrDatePickerV3/OrDatePicker.js +1 -1
- package/dist/bundled/components/OrDatePickerV3/index.js +1 -1
- package/dist/bundled/components/OrDatePickerV3/styles.js +1 -1
- package/dist/bundled/components/{OrDatePickerV3-645dbd2b.js → OrDatePickerV3-3c11a0c8.js} +1 -1
- package/dist/bundled/components/OrDateRangePickerV3/OrDateRangePicker.js +1 -1
- package/dist/bundled/components/OrDateRangePickerV3/index.js +1 -1
- package/dist/bundled/components/OrDateRangePickerV3/styles.js +1 -1
- package/dist/bundled/components/{OrDateRangePickerV3-021ef0fe.js → OrDateRangePickerV3-f13790a5.js} +1 -1
- package/dist/bundled/components/OrDateTimeFormatV3/OrDateTimeFormat.js +1 -1
- package/dist/bundled/components/OrDateTimeFormatV3/index.js +1 -1
- package/dist/bundled/components/OrDateTimeFormatV3/styles.js +1 -1
- package/dist/bundled/components/{OrDateTimeFormatV3-e936bf16.js → OrDateTimeFormatV3-9318ab89.js} +1 -1
- package/dist/bundled/components/OrDateTimePickerV3/OrDateTimePicker.js +1 -1
- package/dist/bundled/components/OrDateTimePickerV3/index.js +1 -1
- package/dist/bundled/components/OrDateTimePickerV3/styles.js +1 -1
- package/dist/bundled/components/OrDateTimePickerV3/utils/formatDate.js +1 -1
- package/dist/bundled/components/OrDateTimePickerV3/utils/formatMobileDate.js +1 -1
- package/dist/bundled/components/OrDateTimePickerV3/utils/formatMobileTime.js +1 -1
- package/dist/bundled/components/OrDateTimePickerV3/utils/formatTime.js +1 -1
- package/dist/bundled/components/OrDateTimePickerV3/utils/getCurrentDate.js +1 -1
- package/dist/bundled/components/OrDateTimePickerV3/utils/getNextMonthDate.js +1 -1
- package/dist/bundled/components/OrDateTimePickerV3/utils/index.d.ts +1 -0
- package/dist/bundled/components/OrDateTimePickerV3/utils/index.js +1 -1
- package/dist/bundled/components/OrDateTimePickerV3/utils/scrollToElementWithinContainer.d.ts +1 -0
- package/dist/bundled/components/OrDateTimePickerV3/utils/scrollToElementWithinContainer.js +1 -0
- package/dist/bundled/components/{OrDateTimePickerV3-948d583e.js → OrDateTimePickerV3-4499a5fe.js} +23 -9
- package/dist/bundled/components/OrTimeFormatV3/OrTimeFormat.js +1 -1
- package/dist/bundled/components/OrTimeFormatV3/index.js +1 -1
- package/dist/bundled/components/OrTimeFormatV3/styles.js +1 -1
- package/dist/bundled/components/{OrTimeFormatV3-c1ffba45.js → OrTimeFormatV3-3931b513.js} +1 -1
- package/dist/bundled/components/OrTimePickerV3/OrTimePicker.js +1 -1
- package/dist/bundled/components/OrTimePickerV3/index.js +1 -1
- package/dist/bundled/components/OrTimePickerV3/styles.js +1 -1
- package/dist/bundled/components/{OrTimePickerV3-29f9bdfa.js → OrTimePickerV3-b61abf08.js} +1 -1
- package/dist/bundled/components/OrTimeRangePickerV3/OrTimeRangePicker.js +1 -1
- package/dist/bundled/components/OrTimeRangePickerV3/index.js +1 -1
- package/dist/bundled/components/OrTimeRangePickerV3/styles.js +1 -1
- package/dist/bundled/components/{OrTimeRangePickerV3-b16a5b71.js → OrTimeRangePickerV3-4e2746f9.js} +1 -1
- package/dist/bundled/components/index.js +9 -9
- package/dist/bundled/index.js +9 -9
- package/dist/esm/components/index.js +1 -1
- package/dist/esm/components/or-data-grid-v3/index.js +1 -1
- package/dist/esm/components/or-data-grid-v3/partials/index.js +1 -1
- package/dist/esm/components/or-date-format-v3/index.js +1 -1
- package/dist/esm/components/or-date-picker-v3/index.js +1 -1
- package/dist/esm/components/or-date-range-picker-v3/index.js +1 -1
- package/dist/esm/components/or-date-time-format-v3/index.js +1 -1
- package/dist/esm/components/or-date-time-picker-v3/index.js +1 -1
- package/dist/esm/components/or-date-time-picker-v3/partials/index.js +11 -9
- package/dist/esm/components/or-date-time-picker-v3/partials/or-date-time-picker-time-select/OrDateTimePickerTimeSelect.vue.d.ts +2 -0
- package/dist/esm/components/or-date-time-picker-v3/utils/index.d.ts +1 -0
- package/dist/esm/components/or-date-time-picker-v3/utils/index.js +1 -1
- package/dist/esm/components/or-date-time-picker-v3/utils/scrollToElementWithinContainer.d.ts +1 -0
- package/dist/esm/components/or-time-format-v3/index.js +1 -1
- package/dist/esm/components/or-time-picker-v3/index.js +1 -1
- package/dist/esm/components/or-time-range-picker-v3/index.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/scrollToElementWithinContainer-f5107b92.js +36 -0
- package/package.json +3 -3
- package/src/components/or-date-time-picker-v3/partials/or-date-time-picker-time-select/OrDateTimePickerTimeSelect.vue +18 -6
- package/src/components/or-date-time-picker-v3/utils/index.ts +1 -0
- package/src/components/or-date-time-picker-v3/utils/scrollToElementWithinContainer.ts +13 -0
- package/dist/esm/formatTime-a1de80d6.js +0 -24
|
@@ -1 +1 @@
|
|
|
1
|
-
export { s as default } from '../OrDataGridV3-
|
|
1
|
+
export { s as default } from '../OrDataGridV3-607bd571.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { D as DataGridVariant, s as OrDataGridV3 } from '../OrDataGridV3-
|
|
1
|
+
export { D as DataGridVariant, s as OrDataGridV3 } from '../OrDataGridV3-607bd571.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { a as DataGrid } from '../OrDataGridV3-
|
|
1
|
+
export { a as DataGrid } from '../OrDataGridV3-607bd571.js';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, openBlock, createElementBlock, normalizeClass, renderSlot, createCommentVNode, resolveComponent, normalizeStyle, Fragment, createBlock, watch, createElementVNode, createSlots, withCtx, createVNode, renderList, createTextVNode, toDisplayString } from 'vue';
|
|
2
2
|
import { s as script$f } from './OrCheckboxV3-775b2227.js';
|
|
3
|
-
import { s as script$g } from './OrDatePickerV3-
|
|
4
|
-
import { s as script$h } from './OrDateTimePickerV3-
|
|
3
|
+
import { s as script$g } from './OrDatePickerV3-3c11a0c8.js';
|
|
4
|
+
import { s as script$h } from './OrDateTimePickerV3-4499a5fe.js';
|
|
5
5
|
import { s as script$i } from './OrInputV3-08632ecc.js';
|
|
6
6
|
import { s as script$j } from './OrRatingV3-2a906a67.js';
|
|
7
7
|
import { s as script$k } from './OrSelectV3-8c297b29.js';
|
|
8
8
|
import { s as script$l } from './OrSwitchV3-9dff8d01.js';
|
|
9
9
|
import { s as script$m } from './OrTagInputV3-05553dc2.js';
|
|
10
|
-
import { s as script$n } from './OrTimePickerV3-
|
|
10
|
+
import { s as script$n } from './OrTimePickerV3-b61abf08.js';
|
|
11
11
|
import { e as useElementSize } from './OrAutocompleteV3-839e5aa2.js';
|
|
12
12
|
import { s as script$o } from './OrIconV3-9807ee48.js';
|
|
13
13
|
import { s as script$p } from './OrPaginationV3-d4c44779.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { s as default } from '../OrDateFormatV3-
|
|
1
|
+
export { s as default } from '../OrDateFormatV3-7523e0b0.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { s as OrDateFormatV3 } from '../OrDateFormatV3-
|
|
1
|
+
export { s as OrDateFormatV3 } from '../OrDateFormatV3-7523e0b0.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { D as DateFormat } from '../OrDateFormatV3-
|
|
1
|
+
export { D as DateFormat } from '../OrDateFormatV3-7523e0b0.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, toRef, openBlock, createElementBlock, normalizeClass, Fragment, createTextVNode, toDisplayString } from 'vue';
|
|
2
2
|
import { useDateFormat } from '../hooks/useDateFormat.js';
|
|
3
3
|
import { useLocale } from '../hooks/useLocale.js';
|
|
4
|
-
import { f as formatDate } from './OrDateTimePickerV3-
|
|
4
|
+
import { f as formatDate } from './OrDateTimePickerV3-4499a5fe.js';
|
|
5
5
|
|
|
6
6
|
const DateFormat = [
|
|
7
7
|
// Layout
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { s as default } from '../OrDatePickerV3-
|
|
1
|
+
export { s as default } from '../OrDatePickerV3-3c11a0c8.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { s as OrDatePickerV3 } from '../OrDatePickerV3-
|
|
1
|
+
export { s as OrDatePickerV3 } from '../OrDatePickerV3-3c11a0c8.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { D as DatePicker, a as DatePickerPopover } from '../OrDatePickerV3-
|
|
1
|
+
export { D as DatePicker, a as DatePickerPopover } from '../OrDatePickerV3-3c11a0c8.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, toRef, watch, resolveComponent, resolveDirective, openBlock, createElementBlock, normalizeClass, createBlock, withCtx, renderSlot, createTextVNode, toDisplayString, createCommentVNode, withDirectives, withModifiers, createVNode, vShow, createElementVNode } from 'vue';
|
|
2
|
-
import { a as script$1, b as script$2, c as script$3, d as script$4, e as script$5, g as script$6, h as getCurrentDate, i as formatMobileDate } from './OrDateTimePickerV3-
|
|
2
|
+
import { a as script$1, b as script$2, c as script$3, d as script$4, e as script$5, g as script$6, h as getCurrentDate, i as formatMobileDate } from './OrDateTimePickerV3-4499a5fe.js';
|
|
3
3
|
import { s as script$7 } from './OrErrorV3-cff3a70c.js';
|
|
4
4
|
import { s as script$8 } from './OrHintV3-a9a95858.js';
|
|
5
5
|
import { s as script$9 } from './OrIconV3-9807ee48.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { s as default } from '../OrDateRangePickerV3-
|
|
1
|
+
export { s as default } from '../OrDateRangePickerV3-f13790a5.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { s as OrDateRangePickerV3 } from '../OrDateRangePickerV3-
|
|
1
|
+
export { s as OrDateRangePickerV3 } from '../OrDateRangePickerV3-f13790a5.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { D as DateRangePicker, a as DateRangePickerPopover } from '../OrDateRangePickerV3-
|
|
1
|
+
export { D as DateRangePicker, a as DateRangePickerPopover } from '../OrDateRangePickerV3-f13790a5.js';
|
package/dist/bundled/components/{OrDateRangePickerV3-021ef0fe.js → OrDateRangePickerV3-f13790a5.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, toRef, watch, resolveComponent, resolveDirective, openBlock, createElementBlock, normalizeClass, createBlock, withCtx, renderSlot, createTextVNode, toDisplayString, createCommentVNode, withDirectives, withModifiers, createVNode, createElementVNode, vShow } from 'vue';
|
|
2
|
-
import { a as script$1, b as script$2, c as script$3, d as script$4, e as script$5, g as script$6, h as getCurrentDate, j as getNextMonthDate, i as formatMobileDate } from './OrDateTimePickerV3-
|
|
2
|
+
import { a as script$1, b as script$2, c as script$3, d as script$4, e as script$5, g as script$6, h as getCurrentDate, j as getNextMonthDate, i as formatMobileDate } from './OrDateTimePickerV3-4499a5fe.js';
|
|
3
3
|
import { s as script$7 } from './OrErrorV3-cff3a70c.js';
|
|
4
4
|
import { s as script$8 } from './OrHintV3-a9a95858.js';
|
|
5
5
|
import { s as script$9 } from './OrIconV3-9807ee48.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { s as default } from '../OrDateTimeFormatV3-
|
|
1
|
+
export { s as default } from '../OrDateTimeFormatV3-9318ab89.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { s as OrDateTimeFormatV3 } from '../OrDateTimeFormatV3-
|
|
1
|
+
export { s as OrDateTimeFormatV3 } from '../OrDateTimeFormatV3-9318ab89.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { D as DateTimeFormat } from '../OrDateTimeFormatV3-
|
|
1
|
+
export { D as DateTimeFormat } from '../OrDateTimeFormatV3-9318ab89.js';
|
package/dist/bundled/components/{OrDateTimeFormatV3-e936bf16.js → OrDateTimeFormatV3-9318ab89.js}
RENAMED
|
@@ -2,7 +2,7 @@ import { defineComponent, ref, computed, toRef, openBlock, createElementBlock, n
|
|
|
2
2
|
import { useDateFormat } from '../hooks/useDateFormat.js';
|
|
3
3
|
import { useTimeFormat } from '../hooks/useTimeFormat.js';
|
|
4
4
|
import { useLocale } from '../hooks/useLocale.js';
|
|
5
|
-
import { f as formatDate, k as formatTime } from './OrDateTimePickerV3-
|
|
5
|
+
import { f as formatDate, k as formatTime } from './OrDateTimePickerV3-4499a5fe.js';
|
|
6
6
|
|
|
7
7
|
const DateTimeFormat = [
|
|
8
8
|
// Layout
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { s as default } from '../OrDateTimePickerV3-
|
|
1
|
+
export { s as default } from '../OrDateTimePickerV3-4499a5fe.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { a as OrDateTimePickerDateControl, b as OrDateTimePickerDateSelect, c as OrDateTimePickerMobileControl, d as OrDateTimePickerMonthSelect, e as OrDateTimePickerPopoverFooter, g as OrDateTimePickerPopoverHeader, l as OrDateTimePickerTimeControl, m as OrDateTimePickerTimeSelect, s as OrDateTimePickerV3, f as formatDate, i as formatMobileDate, n as formatMobileTime, k as formatTime, h as getCurrentDate, j as getNextMonthDate } from '../OrDateTimePickerV3-
|
|
1
|
+
export { a as OrDateTimePickerDateControl, b as OrDateTimePickerDateSelect, c as OrDateTimePickerMobileControl, d as OrDateTimePickerMonthSelect, e as OrDateTimePickerPopoverFooter, g as OrDateTimePickerPopoverHeader, l as OrDateTimePickerTimeControl, m as OrDateTimePickerTimeSelect, s as OrDateTimePickerV3, f as formatDate, i as formatMobileDate, n as formatMobileTime, k as formatTime, h as getCurrentDate, j as getNextMonthDate, o as scrollToElementWithinContainer } from '../OrDateTimePickerV3-4499a5fe.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { D as DateTimePicker,
|
|
1
|
+
export { D as DateTimePicker, p as DateTimePickerDatePopover, q as DateTimePickerTimePopover } from '../OrDateTimePickerV3-4499a5fe.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { f as formatDate } from '../../OrDateTimePickerV3-
|
|
1
|
+
export { f as formatDate } from '../../OrDateTimePickerV3-4499a5fe.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { i as formatMobileDate } from '../../OrDateTimePickerV3-
|
|
1
|
+
export { i as formatMobileDate } from '../../OrDateTimePickerV3-4499a5fe.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import '../../../types/TimeFormat.js';
|
|
2
|
-
export { n as formatMobileTime } from '../../OrDateTimePickerV3-
|
|
2
|
+
export { n as formatMobileTime } from '../../OrDateTimePickerV3-4499a5fe.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import '../../../types/TimeFormat.js';
|
|
2
|
-
export { k as formatTime } from '../../OrDateTimePickerV3-
|
|
2
|
+
export { k as formatTime } from '../../OrDateTimePickerV3-4499a5fe.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { h as getCurrentDate } from '../../OrDateTimePickerV3-
|
|
1
|
+
export { h as getCurrentDate } from '../../OrDateTimePickerV3-4499a5fe.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { j as getNextMonthDate } from '../../OrDateTimePickerV3-
|
|
1
|
+
export { j as getNextMonthDate } from '../../OrDateTimePickerV3-4499a5fe.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { f as formatDate, i as formatMobileDate, n as formatMobileTime, k as formatTime, h as getCurrentDate, j as getNextMonthDate } from '../../OrDateTimePickerV3-
|
|
1
|
+
export { f as formatDate, i as formatMobileDate, n as formatMobileTime, k as formatTime, h as getCurrentDate, j as getNextMonthDate, o as scrollToElementWithinContainer } from '../../OrDateTimePickerV3-4499a5fe.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const scrollToElementWithinContainer: (element: HTMLElement, container: HTMLElement) => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { o as scrollToElementWithinContainer } from '../../OrDateTimePickerV3-4499a5fe.js';
|
package/dist/bundled/components/{OrDateTimePickerV3-948d583e.js → OrDateTimePickerV3-4499a5fe.js}
RENAMED
|
@@ -65,6 +65,18 @@ const getNextMonthDate = () => {
|
|
|
65
65
|
return new Date(Date.UTC(currentDate.getUTCFullYear(), currentDate.getUTCMonth() + 1, currentDate.getUTCDate()));
|
|
66
66
|
};
|
|
67
67
|
|
|
68
|
+
const scrollToElementWithinContainer = (element, container) => {
|
|
69
|
+
const elementRect = element.getBoundingClientRect();
|
|
70
|
+
const containerRect = container.getBoundingClientRect();
|
|
71
|
+
// Determine if the element is fully visible within the container by comparing their positions.
|
|
72
|
+
const isFullyVisible = elementRect.top >= containerRect.top && elementRect.bottom <= containerRect.bottom;
|
|
73
|
+
if (!isFullyVisible) {
|
|
74
|
+
// Calculate the new scrollTop value to center the element within the container.
|
|
75
|
+
// This involves adjusting for the height of the element and container, ensuring the element is centered.
|
|
76
|
+
container.scrollTop = element.offsetTop - container.offsetTop - container.clientHeight / 2 + element.clientHeight / 2;
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
|
|
68
80
|
const DateTimePickerDateControl = [
|
|
69
81
|
// Layout
|
|
70
82
|
'layout-inline-row',
|
|
@@ -868,6 +880,8 @@ var script$1 = defineComponent({
|
|
|
868
880
|
var _a;
|
|
869
881
|
// Refs & Styles
|
|
870
882
|
const root = ref();
|
|
883
|
+
const hoursContainer = ref();
|
|
884
|
+
const minutesContainer = ref();
|
|
871
885
|
const hoursButtons = ref([]);
|
|
872
886
|
const minutesButtons = ref([]);
|
|
873
887
|
const rootStyles = computed(() => ['or-date-time-picker-time-select-v3', ...DateTimePickerTimeSelect]);
|
|
@@ -896,17 +910,13 @@ var script$1 = defineComponent({
|
|
|
896
910
|
}
|
|
897
911
|
const activeHourButton = getActiveButton(hoursButtons.value, hoursOptions.value);
|
|
898
912
|
const activeMinuteButton = getActiveButton(minutesButtons.value, minutesOptions.value);
|
|
899
|
-
if (activeHourButton) {
|
|
913
|
+
if (activeHourButton && hoursContainer.value) {
|
|
900
914
|
// scroll to the active hour button within the hours container.
|
|
901
|
-
activeHourButton.
|
|
902
|
-
block: 'center'
|
|
903
|
-
});
|
|
915
|
+
scrollToElementWithinContainer(activeHourButton, hoursContainer.value);
|
|
904
916
|
}
|
|
905
|
-
if (activeMinuteButton) {
|
|
917
|
+
if (activeMinuteButton && minutesContainer.value) {
|
|
906
918
|
// scroll to the active minute button within the minutes container.
|
|
907
|
-
activeMinuteButton.
|
|
908
|
-
block: 'center'
|
|
909
|
-
});
|
|
919
|
+
scrollToElementWithinContainer(activeMinuteButton, minutesContainer.value);
|
|
910
920
|
}
|
|
911
921
|
});
|
|
912
922
|
}, {
|
|
@@ -976,6 +986,8 @@ var script$1 = defineComponent({
|
|
|
976
986
|
return {
|
|
977
987
|
root,
|
|
978
988
|
rootStyles,
|
|
989
|
+
hoursContainer,
|
|
990
|
+
minutesContainer,
|
|
979
991
|
hoursButtons,
|
|
980
992
|
minutesButtons,
|
|
981
993
|
buttonGroupStyles,
|
|
@@ -997,6 +1009,7 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
997
1009
|
ref: 'root',
|
|
998
1010
|
class: normalizeClass(_ctx.rootStyles)
|
|
999
1011
|
}, [createElementVNode("div", {
|
|
1012
|
+
ref: 'hoursContainer',
|
|
1000
1013
|
class: normalizeClass(_ctx.buttonGroupStyles)
|
|
1001
1014
|
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.hoursOptions, value => {
|
|
1002
1015
|
return openBlock(), createBlock(_component_OrButton, {
|
|
@@ -1013,6 +1026,7 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1013
1026
|
_: 2 /* DYNAMIC */
|
|
1014
1027
|
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["class", "variant", "color", "disabled", "onClick"]);
|
|
1015
1028
|
}), 128 /* KEYED_FRAGMENT */))], 2 /* CLASS */), createTextVNode(" : "), createElementVNode("div", {
|
|
1029
|
+
ref: 'minutesContainer',
|
|
1016
1030
|
class: normalizeClass(_ctx.buttonGroupStyles)
|
|
1017
1031
|
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.minutesOptions, value => {
|
|
1018
1032
|
return openBlock(), createBlock(_component_OrButton, {
|
|
@@ -1495,4 +1509,4 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1495
1509
|
script.render = render;
|
|
1496
1510
|
script.__file = "src/components/or-date-time-picker-v3/OrDateTimePicker.vue";
|
|
1497
1511
|
|
|
1498
|
-
export { DateTimePicker as D, script$8 as a, script$7 as b, script$6 as c, script$5 as d, script$4 as e, formatDate as f, script$3 as g, getCurrentDate as h, formatMobileDate as i, getNextMonthDate as j, formatTime as k, script$2 as l, script$1 as m, formatMobileTime as n,
|
|
1512
|
+
export { DateTimePicker as D, script$8 as a, script$7 as b, script$6 as c, script$5 as d, script$4 as e, formatDate as f, script$3 as g, getCurrentDate as h, formatMobileDate as i, getNextMonthDate as j, formatTime as k, script$2 as l, script$1 as m, formatMobileTime as n, scrollToElementWithinContainer as o, DateTimePickerDatePopover as p, DateTimePickerTimePopover as q, script as s };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { s as default } from '../OrTimeFormatV3-
|
|
1
|
+
export { s as default } from '../OrTimeFormatV3-3931b513.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { s as OrTimeFormatV3 } from '../OrTimeFormatV3-
|
|
1
|
+
export { s as OrTimeFormatV3 } from '../OrTimeFormatV3-3931b513.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { T as TimeFormat } from '../OrTimeFormatV3-
|
|
1
|
+
export { T as TimeFormat } from '../OrTimeFormatV3-3931b513.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, toRef, openBlock, createElementBlock, normalizeClass, Fragment, createTextVNode, toDisplayString } from 'vue';
|
|
2
2
|
import { useTimeFormat } from '../hooks/useTimeFormat.js';
|
|
3
3
|
import { useLocale } from '../hooks/useLocale.js';
|
|
4
|
-
import { k as formatTime } from './OrDateTimePickerV3-
|
|
4
|
+
import { k as formatTime } from './OrDateTimePickerV3-4499a5fe.js';
|
|
5
5
|
|
|
6
6
|
const TimeFormat = [
|
|
7
7
|
// Layout
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { s as default } from '../OrTimePickerV3-
|
|
1
|
+
export { s as default } from '../OrTimePickerV3-b61abf08.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { s as OrTimePickerV3 } from '../OrTimePickerV3-
|
|
1
|
+
export { s as OrTimePickerV3 } from '../OrTimePickerV3-b61abf08.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { T as TimePicker, a as TimePickerPopover } from '../OrTimePickerV3-
|
|
1
|
+
export { T as TimePicker, a as TimePickerPopover } from '../OrTimePickerV3-b61abf08.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, toRef, watch, resolveComponent, resolveDirective, openBlock, createElementBlock, normalizeClass, createBlock, withCtx, renderSlot, createTextVNode, toDisplayString, createCommentVNode, withDirectives, withModifiers, createVNode, vShow, createElementVNode } from 'vue';
|
|
2
|
-
import { c as script$1, e as script$2, g as script$3, l as script$4, m as script$5, h as getCurrentDate, n as formatMobileTime } from './OrDateTimePickerV3-
|
|
2
|
+
import { c as script$1, e as script$2, g as script$3, l as script$4, m as script$5, h as getCurrentDate, n as formatMobileTime } from './OrDateTimePickerV3-4499a5fe.js';
|
|
3
3
|
import { s as script$6 } from './OrErrorV3-cff3a70c.js';
|
|
4
4
|
import { s as script$7 } from './OrHintV3-a9a95858.js';
|
|
5
5
|
import { s as script$8 } from './OrIconV3-9807ee48.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { s as default } from '../OrTimeRangePickerV3-
|
|
1
|
+
export { s as default } from '../OrTimeRangePickerV3-4e2746f9.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { s as OrTimeRangePickerV3 } from '../OrTimeRangePickerV3-
|
|
1
|
+
export { s as OrTimeRangePickerV3 } from '../OrTimeRangePickerV3-4e2746f9.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { T as TimeRangePicker, a as TimeRangePickerPopover } from '../OrTimeRangePickerV3-
|
|
1
|
+
export { T as TimeRangePicker, a as TimeRangePickerPopover } from '../OrTimeRangePickerV3-4e2746f9.js';
|
package/dist/bundled/components/{OrTimeRangePickerV3-b16a5b71.js → OrTimeRangePickerV3-4e2746f9.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, toRef, watch, resolveComponent, resolveDirective, openBlock, createElementBlock, normalizeClass, createBlock, withCtx, renderSlot, createTextVNode, toDisplayString, createCommentVNode, withDirectives, withModifiers, createVNode, createElementVNode, vShow } from 'vue';
|
|
2
|
-
import { c as script$1, e as script$2, g as script$3, l as script$4, m as script$5, h as getCurrentDate, n as formatMobileTime } from './OrDateTimePickerV3-
|
|
2
|
+
import { c as script$1, e as script$2, g as script$3, l as script$4, m as script$5, h as getCurrentDate, n as formatMobileTime } from './OrDateTimePickerV3-4499a5fe.js';
|
|
3
3
|
import { s as script$6 } from './OrErrorV3-cff3a70c.js';
|
|
4
4
|
import { s as script$7 } from './OrHintV3-a9a95858.js';
|
|
5
5
|
import { s as script$8 } from './OrIconV3-9807ee48.js';
|
|
@@ -24,13 +24,13 @@ export { s as OrCombinedInputV3 } from './OrCombinedInputV3-7aa0d255.js';
|
|
|
24
24
|
export { s as OrConfirm } from './OrConfirm-3de90b03.js';
|
|
25
25
|
export { C as ConfirmType, s as OrConfirmV3 } from './OrConfirmV3-82b876b1.js';
|
|
26
26
|
export { default as OrContextMenuV3 } from './OrContextMenuV3/OrContextMenu.js';
|
|
27
|
-
export { D as DataGridVariant, s as OrDataGridV3 } from './OrDataGridV3-
|
|
28
|
-
export { s as OrDateFormatV3 } from './OrDateFormatV3-
|
|
29
|
-
export { s as OrDatePickerV3 } from './OrDatePickerV3-
|
|
30
|
-
export { s as OrDateRangePickerV3 } from './OrDateRangePickerV3-
|
|
31
|
-
export { s as OrDateTimeFormatV3 } from './OrDateTimeFormatV3-
|
|
27
|
+
export { D as DataGridVariant, s as OrDataGridV3 } from './OrDataGridV3-607bd571.js';
|
|
28
|
+
export { s as OrDateFormatV3 } from './OrDateFormatV3-7523e0b0.js';
|
|
29
|
+
export { s as OrDatePickerV3 } from './OrDatePickerV3-3c11a0c8.js';
|
|
30
|
+
export { s as OrDateRangePickerV3 } from './OrDateRangePickerV3-f13790a5.js';
|
|
31
|
+
export { s as OrDateTimeFormatV3 } from './OrDateTimeFormatV3-9318ab89.js';
|
|
32
32
|
export { D as DEFAULT_TEXT, s as OrDateTimePicker, n as OrDateTimePickerItemTypes, O as OrDateTimePickerTypes } from './OrDateTimePicker-374b1e4c.js';
|
|
33
|
-
export { a as OrDateTimePickerDateControl, b as OrDateTimePickerDateSelect, c as OrDateTimePickerMobileControl, d as OrDateTimePickerMonthSelect, e as OrDateTimePickerPopoverFooter, g as OrDateTimePickerPopoverHeader, l as OrDateTimePickerTimeControl, m as OrDateTimePickerTimeSelect, s as OrDateTimePickerV3, f as formatDate, i as formatMobileDate, n as formatMobileTime, k as formatTime, h as getCurrentDate, j as getNextMonthDate } from './OrDateTimePickerV3-
|
|
33
|
+
export { a as OrDateTimePickerDateControl, b as OrDateTimePickerDateSelect, c as OrDateTimePickerMobileControl, d as OrDateTimePickerMonthSelect, e as OrDateTimePickerPopoverFooter, g as OrDateTimePickerPopoverHeader, l as OrDateTimePickerTimeControl, m as OrDateTimePickerTimeSelect, s as OrDateTimePickerV3, f as formatDate, i as formatMobileDate, n as formatMobileTime, k as formatTime, h as getCurrentDate, j as getNextMonthDate, o as scrollToElementWithinContainer } from './OrDateTimePickerV3-4499a5fe.js';
|
|
34
34
|
export { D as DrawerPlacement, s as OrDrawerV3 } from './OrDrawerV3-82c79922.js';
|
|
35
35
|
export { D as DropAreaSize, s as OrDropAreaV3, a as approximateFileSize } from './OrDropAreaV3-f5cf734e.js';
|
|
36
36
|
export { E as EditorTabsOverflow, s as OrEditorTabsV3 } from './OrEditorTabsV3-0266a3ce.js';
|
|
@@ -120,9 +120,9 @@ export { s as OrTextV3 } from './OrTextV3-3d9e530f.js';
|
|
|
120
120
|
export { default as OrTextarea } from './OrTextarea/OrTextarea.js';
|
|
121
121
|
export { s as OrTextareaV3 } from './OrTextareaV3-55191866.js';
|
|
122
122
|
export { OrTextbox, TextboxTypes } from './OrTextbox/index.js';
|
|
123
|
-
export { s as OrTimeFormatV3 } from './OrTimeFormatV3-
|
|
124
|
-
export { s as OrTimePickerV3 } from './OrTimePickerV3-
|
|
125
|
-
export { s as OrTimeRangePickerV3 } from './OrTimeRangePickerV3-
|
|
123
|
+
export { s as OrTimeFormatV3 } from './OrTimeFormatV3-3931b513.js';
|
|
124
|
+
export { s as OrTimePickerV3 } from './OrTimePickerV3-b61abf08.js';
|
|
125
|
+
export { s as OrTimeRangePickerV3 } from './OrTimeRangePickerV3-4e2746f9.js';
|
|
126
126
|
export { s as OrToast, a as OrToastContainer, P as PositionsX, c as PositionsY, d as ToastType, T as TransitionType, b as useQueue, u as useToast } from './OrToast-4f7d2737.js';
|
|
127
127
|
export { a as OrToastContainerV3, s as OrToastV3, p as PropsV3, t as TypesV3, b as useQueueV3, u as useToastV3 } from './OrToastV3-2636ad96.js';
|
|
128
128
|
export { OrTooltip, OrTooltipContent } from './OrTooltip/index.js';
|
package/dist/bundled/index.js
CHANGED
|
@@ -16,10 +16,10 @@ export { s as OrCombinedInputV3 } from './components/OrCombinedInputV3-7aa0d255.
|
|
|
16
16
|
export { s as OrConfirm } from './components/OrConfirm-3de90b03.js';
|
|
17
17
|
export { C as ConfirmType, s as OrConfirmV3 } from './components/OrConfirmV3-82b876b1.js';
|
|
18
18
|
export { default as OrContextMenuV3 } from './components/OrContextMenuV3/OrContextMenu.js';
|
|
19
|
-
export { D as DataGridVariant, s as OrDataGridV3 } from './components/OrDataGridV3-
|
|
20
|
-
export { s as OrDateFormatV3 } from './components/OrDateFormatV3-
|
|
21
|
-
export { s as OrDateRangePickerV3 } from './components/OrDateRangePickerV3-
|
|
22
|
-
export { s as OrDateTimeFormatV3 } from './components/OrDateTimeFormatV3-
|
|
19
|
+
export { D as DataGridVariant, s as OrDataGridV3 } from './components/OrDataGridV3-607bd571.js';
|
|
20
|
+
export { s as OrDateFormatV3 } from './components/OrDateFormatV3-7523e0b0.js';
|
|
21
|
+
export { s as OrDateRangePickerV3 } from './components/OrDateRangePickerV3-f13790a5.js';
|
|
22
|
+
export { s as OrDateTimeFormatV3 } from './components/OrDateTimeFormatV3-9318ab89.js';
|
|
23
23
|
export { D as DEFAULT_TEXT, s as OrDateTimePicker, n as OrDateTimePickerItemTypes, O as OrDateTimePickerTypes } from './components/OrDateTimePicker-374b1e4c.js';
|
|
24
24
|
export { D as DrawerPlacement, s as OrDrawerV3 } from './components/OrDrawerV3-82c79922.js';
|
|
25
25
|
export { D as DropAreaSize, s as OrDropAreaV3, a as approximateFileSize } from './components/OrDropAreaV3-f5cf734e.js';
|
|
@@ -64,8 +64,8 @@ export { default as OrTag } from './components/OrTag/OrTag.js';
|
|
|
64
64
|
export { default as OrTextarea } from './components/OrTextarea/OrTextarea.js';
|
|
65
65
|
export { s as OrTextareaV3 } from './components/OrTextareaV3-55191866.js';
|
|
66
66
|
export { OrTextbox, TextboxTypes } from './components/OrTextbox/index.js';
|
|
67
|
-
export { s as OrTimeFormatV3 } from './components/OrTimeFormatV3-
|
|
68
|
-
export { s as OrTimeRangePickerV3 } from './components/OrTimeRangePickerV3-
|
|
67
|
+
export { s as OrTimeFormatV3 } from './components/OrTimeFormatV3-3931b513.js';
|
|
68
|
+
export { s as OrTimeRangePickerV3 } from './components/OrTimeRangePickerV3-4e2746f9.js';
|
|
69
69
|
export { s as OrToast, a as OrToastContainer, P as PositionsX, c as PositionsY, d as ToastType, T as TransitionType, b as useQueue, u as useToast } from './components/OrToast-4f7d2737.js';
|
|
70
70
|
export { a as OrToastContainerV3, s as OrToastV3, p as PropsV3, t as TypesV3, b as useQueueV3, u as useToastV3 } from './components/OrToastV3-2636ad96.js';
|
|
71
71
|
export { OrTreeV3, TreeNodeDropPosition } from './components/OrTreeV3/index.js';
|
|
@@ -78,8 +78,8 @@ export { default as OrCheckbox } from './components/OrCheckbox/OrCheckbox.js';
|
|
|
78
78
|
export { s as OrCheckboxTreeV3 } from './components/OrCheckboxTreeV3-c3c6067e.js';
|
|
79
79
|
export { s as OrCheckboxV3 } from './components/OrCheckboxV3-775b2227.js';
|
|
80
80
|
export { default as OrCollapse } from './components/OrCollapse/OrCollapse.js';
|
|
81
|
-
export { s as OrDatePickerV3 } from './components/OrDatePickerV3-
|
|
82
|
-
export { a as OrDateTimePickerDateControl, b as OrDateTimePickerDateSelect, c as OrDateTimePickerMobileControl, d as OrDateTimePickerMonthSelect, e as OrDateTimePickerPopoverFooter, g as OrDateTimePickerPopoverHeader, l as OrDateTimePickerTimeControl, m as OrDateTimePickerTimeSelect, s as OrDateTimePickerV3, f as formatDate, i as formatMobileDate, n as formatMobileTime, k as formatTime, h as getCurrentDate, j as getNextMonthDate } from './components/OrDateTimePickerV3-
|
|
81
|
+
export { s as OrDatePickerV3 } from './components/OrDatePickerV3-3c11a0c8.js';
|
|
82
|
+
export { a as OrDateTimePickerDateControl, b as OrDateTimePickerDateSelect, c as OrDateTimePickerMobileControl, d as OrDateTimePickerMonthSelect, e as OrDateTimePickerPopoverFooter, g as OrDateTimePickerPopoverHeader, l as OrDateTimePickerTimeControl, m as OrDateTimePickerTimeSelect, s as OrDateTimePickerV3, f as formatDate, i as formatMobileDate, n as formatMobileTime, k as formatTime, h as getCurrentDate, j as getNextMonthDate, o as scrollToElementWithinContainer } from './components/OrDateTimePickerV3-4499a5fe.js';
|
|
83
83
|
export { default as OrError } from './components/OrError/OrError.js';
|
|
84
84
|
export { s as OrErrorV3 } from './components/OrErrorV3-cff3a70c.js';
|
|
85
85
|
export { b as ExpansionPanelBackgroundColor, a as ExpansionPanelColor, E as ExpansionPanelVariant, s as OrExpansionPanelV3 } from './components/OrExpansionPanelV3-d4b16458.js';
|
|
@@ -126,7 +126,7 @@ export { s as OrTagsV3, T as TagsOverflow } from './components/OrTagsV3-f888ee0e
|
|
|
126
126
|
export { s as OrTeleport } from './components/OrTeleport-2cb93adf.js';
|
|
127
127
|
export { default as OrTeleportV3 } from './components/OrTeleportV3/OrTeleport.js';
|
|
128
128
|
export { s as OrTextV3 } from './components/OrTextV3-3d9e530f.js';
|
|
129
|
-
export { s as OrTimePickerV3 } from './components/OrTimePickerV3-
|
|
129
|
+
export { s as OrTimePickerV3 } from './components/OrTimePickerV3-b61abf08.js';
|
|
130
130
|
export { OrTooltip, OrTooltipContent } from './components/OrTooltip/index.js';
|
|
131
131
|
export { s as OrTooltipV3 } from './components/OrTooltipV3-956d9020.js';
|
|
132
132
|
export { DropdownClose } from './directives/dropdown-close.js';
|
|
@@ -41,7 +41,7 @@ export { OrDateTimeFormatV3 } from './or-date-time-format-v3/index.js';
|
|
|
41
41
|
export { DEFAULT_TEXT, OrDateTimePicker, OrDateTimePickerItemTypes, OrDateTimePickerTypes } from './or-date-time-picker/index.js';
|
|
42
42
|
export { s as OrDateTimePickerV3 } from '../OrDateTimePicker-2bdd4140.js';
|
|
43
43
|
export { OrDateTimePickerDateControl, OrDateTimePickerDateSelect, OrDateTimePickerMobileControl, OrDateTimePickerMonthSelect, OrDateTimePickerPopoverFooter, OrDateTimePickerPopoverHeader, OrDateTimePickerTimeControl, OrDateTimePickerTimeSelect } from './or-date-time-picker-v3/partials/index.js';
|
|
44
|
-
export { f as formatDate, a as formatTime } from '../
|
|
44
|
+
export { f as formatDate, a as formatTime, s as scrollToElementWithinContainer } from '../scrollToElementWithinContainer-f5107b92.js';
|
|
45
45
|
export { f as formatMobileDate, a as formatMobileTime, g as getCurrentDate } from '../getCurrentDate-9b88f8a8.js';
|
|
46
46
|
export { getNextMonthDate } from './or-date-time-picker-v3/utils/index.js';
|
|
47
47
|
export { DrawerPlacement, OrDrawerV3 } from './or-drawer-v3/index.js';
|
|
@@ -55,7 +55,7 @@ import '../../tokens/index.js';
|
|
|
55
55
|
import '../../OrDateTimePicker-2bdd4140.js';
|
|
56
56
|
import '../or-date-time-picker-v3/partials/index.js';
|
|
57
57
|
import '../../useTimeMask-a5856b1a.js';
|
|
58
|
-
import '../../
|
|
58
|
+
import '../../scrollToElementWithinContainer-f5107b92.js';
|
|
59
59
|
import '../../getCurrentDate-9b88f8a8.js';
|
|
60
60
|
import '../or-rating-v3/index.js';
|
|
61
61
|
import '../or-select-v3/index.js';
|
|
@@ -40,7 +40,7 @@ import '../../../isAncestor-905b8d1d.js';
|
|
|
40
40
|
import '../../or-input-box-v3/index.js';
|
|
41
41
|
import '../../or-date-time-picker-v3/partials/index.js';
|
|
42
42
|
import '../../../useTimeMask-a5856b1a.js';
|
|
43
|
-
import '../../../
|
|
43
|
+
import '../../../scrollToElementWithinContainer-f5107b92.js';
|
|
44
44
|
import '../../or-button-v3/index.js';
|
|
45
45
|
import '../../or-loader-v3/index.js';
|
|
46
46
|
import '../../or-menu-item-v3/index.js';
|
|
@@ -7,7 +7,7 @@ import '@onereach/styles/tailwind.config.json';
|
|
|
7
7
|
import '../../types/index.js';
|
|
8
8
|
import '../../OrDateTimePicker-2bdd4140.js';
|
|
9
9
|
import '../or-date-time-picker-v3/partials/index.js';
|
|
10
|
-
import { f as formatDate } from '../../
|
|
10
|
+
import { f as formatDate } from '../../scrollToElementWithinContainer-f5107b92.js';
|
|
11
11
|
import '../../tokens/index.js';
|
|
12
12
|
import 'lodash/get';
|
|
13
13
|
import 'lodash/isElement';
|
|
@@ -21,7 +21,7 @@ import '../../tokens/index.js';
|
|
|
21
21
|
import 'lodash/get';
|
|
22
22
|
import 'lodash/isElement';
|
|
23
23
|
import '../../useTimeMask-a5856b1a.js';
|
|
24
|
-
import '../../
|
|
24
|
+
import '../../scrollToElementWithinContainer-f5107b92.js';
|
|
25
25
|
import '../or-button-v3/index.js';
|
|
26
26
|
import '../../constants-57e8b5da.js';
|
|
27
27
|
import '../or-loader-v3/index.js';
|
|
@@ -23,7 +23,7 @@ import 'lodash/get';
|
|
|
23
23
|
import 'lodash/isElement';
|
|
24
24
|
import '@onereach/styles/screens.json';
|
|
25
25
|
import '../../useTimeMask-a5856b1a.js';
|
|
26
|
-
import '../../
|
|
26
|
+
import '../../scrollToElementWithinContainer-f5107b92.js';
|
|
27
27
|
import '../or-button-v3/index.js';
|
|
28
28
|
import '../../constants-57e8b5da.js';
|
|
29
29
|
import '../or-loader-v3/index.js';
|
|
@@ -7,7 +7,7 @@ import '@onereach/styles/tailwind.config.json';
|
|
|
7
7
|
import '../../types/index.js';
|
|
8
8
|
import '../../OrDateTimePicker-2bdd4140.js';
|
|
9
9
|
import '../or-date-time-picker-v3/partials/index.js';
|
|
10
|
-
import { f as formatDate, a as formatTime } from '../../
|
|
10
|
+
import { f as formatDate, a as formatTime } from '../../scrollToElementWithinContainer-f5107b92.js';
|
|
11
11
|
import '../../tokens/index.js';
|
|
12
12
|
import 'lodash/get';
|
|
13
13
|
import 'lodash/isElement';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { s as OrDateTimePickerV3 } from '../../OrDateTimePicker-2bdd4140.js';
|
|
2
2
|
export { OrDateTimePickerDateControl, OrDateTimePickerDateSelect, OrDateTimePickerMobileControl, OrDateTimePickerMonthSelect, OrDateTimePickerPopoverFooter, OrDateTimePickerPopoverHeader, OrDateTimePickerTimeControl, OrDateTimePickerTimeSelect } from './partials/index.js';
|
|
3
|
-
export { f as formatDate, a as formatTime } from '../../
|
|
3
|
+
export { f as formatDate, a as formatTime, s as scrollToElementWithinContainer } from '../../scrollToElementWithinContainer-f5107b92.js';
|
|
4
4
|
export { f as formatMobileDate, a as formatMobileTime, g as getCurrentDate } from '../../getCurrentDate-9b88f8a8.js';
|
|
5
5
|
export { getNextMonthDate } from './utils/index.js';
|
|
6
6
|
import 'vue';
|
|
@@ -6,7 +6,7 @@ import '@vueuse/core';
|
|
|
6
6
|
import { u as useProxyModelValue } from '../../../useProxyModelValue-55ed539b.js';
|
|
7
7
|
import '@onereach/styles/screens.json';
|
|
8
8
|
import '@onereach/styles/tailwind.config.json';
|
|
9
|
-
import { f as formatDate, a as formatTime } from '../../../
|
|
9
|
+
import { f as formatDate, a as formatTime, s as scrollToElementWithinContainer } from '../../../scrollToElementWithinContainer-f5107b92.js';
|
|
10
10
|
import { OrButtonV3 as script$8 } from '../../or-button-v3/index.js';
|
|
11
11
|
import { OrLabelV3 as script$9 } from '../../or-label-v3/index.js';
|
|
12
12
|
import { OrIconButtonV3 as script$b } from '../../or-icon-button-v3/index.js';
|
|
@@ -834,6 +834,8 @@ var script = defineComponent({
|
|
|
834
834
|
var _a;
|
|
835
835
|
// Refs & Styles
|
|
836
836
|
const root = ref();
|
|
837
|
+
const hoursContainer = ref();
|
|
838
|
+
const minutesContainer = ref();
|
|
837
839
|
const hoursButtons = ref([]);
|
|
838
840
|
const minutesButtons = ref([]);
|
|
839
841
|
const rootStyles = computed(() => ['or-date-time-picker-time-select-v3', ...DateTimePickerTimeSelect]);
|
|
@@ -862,17 +864,13 @@ var script = defineComponent({
|
|
|
862
864
|
}
|
|
863
865
|
const activeHourButton = getActiveButton(hoursButtons.value, hoursOptions.value);
|
|
864
866
|
const activeMinuteButton = getActiveButton(minutesButtons.value, minutesOptions.value);
|
|
865
|
-
if (activeHourButton) {
|
|
867
|
+
if (activeHourButton && hoursContainer.value) {
|
|
866
868
|
// scroll to the active hour button within the hours container.
|
|
867
|
-
activeHourButton.
|
|
868
|
-
block: 'center'
|
|
869
|
-
});
|
|
869
|
+
scrollToElementWithinContainer(activeHourButton, hoursContainer.value);
|
|
870
870
|
}
|
|
871
|
-
if (activeMinuteButton) {
|
|
871
|
+
if (activeMinuteButton && minutesContainer.value) {
|
|
872
872
|
// scroll to the active minute button within the minutes container.
|
|
873
|
-
activeMinuteButton.
|
|
874
|
-
block: 'center'
|
|
875
|
-
});
|
|
873
|
+
scrollToElementWithinContainer(activeMinuteButton, minutesContainer.value);
|
|
876
874
|
}
|
|
877
875
|
});
|
|
878
876
|
}, {
|
|
@@ -942,6 +940,8 @@ var script = defineComponent({
|
|
|
942
940
|
return {
|
|
943
941
|
root,
|
|
944
942
|
rootStyles,
|
|
943
|
+
hoursContainer,
|
|
944
|
+
minutesContainer,
|
|
945
945
|
hoursButtons,
|
|
946
946
|
minutesButtons,
|
|
947
947
|
buttonGroupStyles,
|
|
@@ -963,6 +963,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
963
963
|
ref: 'root',
|
|
964
964
|
class: normalizeClass(_ctx.rootStyles)
|
|
965
965
|
}, [createElementVNode("div", {
|
|
966
|
+
ref: 'hoursContainer',
|
|
966
967
|
class: normalizeClass(_ctx.buttonGroupStyles)
|
|
967
968
|
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.hoursOptions, value => {
|
|
968
969
|
return openBlock(), createBlock(_component_OrButton, {
|
|
@@ -979,6 +980,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
979
980
|
_: 2 /* DYNAMIC */
|
|
980
981
|
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["class", "variant", "color", "disabled", "onClick"]);
|
|
981
982
|
}), 128 /* KEYED_FRAGMENT */))], 2 /* CLASS */), createTextVNode(" : "), createElementVNode("div", {
|
|
983
|
+
ref: 'minutesContainer',
|
|
982
984
|
class: normalizeClass(_ctx.buttonGroupStyles)
|
|
983
985
|
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.minutesOptions, value => {
|
|
984
986
|
return openBlock(), createBlock(_component_OrButton, {
|
|
@@ -41,6 +41,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
41
41
|
}, {
|
|
42
42
|
root: import("vue").Ref<HTMLElement | undefined>;
|
|
43
43
|
rootStyles: import("vue").ComputedRef<string[]>;
|
|
44
|
+
hoursContainer: import("vue").Ref<HTMLElement | undefined>;
|
|
45
|
+
minutesContainer: import("vue").Ref<HTMLElement | undefined>;
|
|
44
46
|
hoursButtons: import("vue").Ref<any[]>;
|
|
45
47
|
minutesButtons: import("vue").Ref<any[]>;
|
|
46
48
|
buttonGroupStyles: import("vue").ComputedRef<string[]>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { f as formatDate, a as formatTime } from '../../../
|
|
1
|
+
export { f as formatDate, a as formatTime, s as scrollToElementWithinContainer } from '../../../scrollToElementWithinContainer-f5107b92.js';
|
|
2
2
|
export { f as formatMobileDate, a as formatMobileTime, g as getCurrentDate } from '../../../getCurrentDate-9b88f8a8.js';
|
|
3
3
|
import '../../../types/index.js';
|
|
4
4
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const scrollToElementWithinContainer: (element: HTMLElement, container: HTMLElement) => void;
|
|
@@ -7,7 +7,7 @@ import '@onereach/styles/screens.json';
|
|
|
7
7
|
import '@onereach/styles/tailwind.config.json';
|
|
8
8
|
import '../../OrDateTimePicker-2bdd4140.js';
|
|
9
9
|
import '../or-date-time-picker-v3/partials/index.js';
|
|
10
|
-
import { a as formatTime } from '../../
|
|
10
|
+
import { a as formatTime } from '../../scrollToElementWithinContainer-f5107b92.js';
|
|
11
11
|
import 'lodash/get';
|
|
12
12
|
import 'lodash/isElement';
|
|
13
13
|
import '../../tokens/index.js';
|
|
@@ -21,7 +21,7 @@ import 'lodash/get';
|
|
|
21
21
|
import 'lodash/isElement';
|
|
22
22
|
import '../../tokens/index.js';
|
|
23
23
|
import '../../useTimeMask-a5856b1a.js';
|
|
24
|
-
import '../../
|
|
24
|
+
import '../../scrollToElementWithinContainer-f5107b92.js';
|
|
25
25
|
import '../or-button-v3/index.js';
|
|
26
26
|
import '../../constants-57e8b5da.js';
|
|
27
27
|
import '../or-loader-v3/index.js';
|
|
@@ -22,7 +22,7 @@ import 'lodash/isElement';
|
|
|
22
22
|
import '../../tokens/index.js';
|
|
23
23
|
import '@onereach/styles/screens.json';
|
|
24
24
|
import '../../useTimeMask-a5856b1a.js';
|
|
25
|
-
import '../../
|
|
25
|
+
import '../../scrollToElementWithinContainer-f5107b92.js';
|
|
26
26
|
import '../or-button-v3/index.js';
|
|
27
27
|
import '../../constants-57e8b5da.js';
|
|
28
28
|
import '../or-loader-v3/index.js';
|
package/dist/esm/index.js
CHANGED
|
@@ -41,7 +41,7 @@ export { OrDateTimeFormatV3 } from './components/or-date-time-format-v3/index.js
|
|
|
41
41
|
export { DEFAULT_TEXT, OrDateTimePicker, OrDateTimePickerItemTypes, OrDateTimePickerTypes } from './components/or-date-time-picker/index.js';
|
|
42
42
|
export { s as OrDateTimePickerV3 } from './OrDateTimePicker-2bdd4140.js';
|
|
43
43
|
export { OrDateTimePickerDateControl, OrDateTimePickerDateSelect, OrDateTimePickerMobileControl, OrDateTimePickerMonthSelect, OrDateTimePickerPopoverFooter, OrDateTimePickerPopoverHeader, OrDateTimePickerTimeControl, OrDateTimePickerTimeSelect } from './components/or-date-time-picker-v3/partials/index.js';
|
|
44
|
-
export { f as formatDate, a as formatTime } from './
|
|
44
|
+
export { f as formatDate, a as formatTime, s as scrollToElementWithinContainer } from './scrollToElementWithinContainer-f5107b92.js';
|
|
45
45
|
export { f as formatMobileDate, a as formatMobileTime, g as getCurrentDate } from './getCurrentDate-9b88f8a8.js';
|
|
46
46
|
export { getNextMonthDate } from './components/or-date-time-picker-v3/utils/index.js';
|
|
47
47
|
export { DrawerPlacement, OrDrawerV3 } from './components/or-drawer-v3/index.js';
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { TimeFormat } from './types/index.js';
|
|
2
|
+
|
|
3
|
+
const formatDate = (value, format, locale) => {
|
|
4
|
+
if (typeof format === 'function') {
|
|
5
|
+
return format(value, locale);
|
|
6
|
+
}
|
|
7
|
+
return value.toLocaleString(locale, {
|
|
8
|
+
dateStyle: format,
|
|
9
|
+
timeZone: 'UTC'
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
const formatTime = (value, format, locale) => {
|
|
14
|
+
if (typeof format === 'function') {
|
|
15
|
+
return format(value, locale);
|
|
16
|
+
}
|
|
17
|
+
return value.toLocaleString(locale, {
|
|
18
|
+
timeStyle: 'short',
|
|
19
|
+
hourCycle: format !== TimeFormat.Auto ? format : undefined,
|
|
20
|
+
timeZone: 'UTC'
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
const scrollToElementWithinContainer = (element, container) => {
|
|
25
|
+
const elementRect = element.getBoundingClientRect();
|
|
26
|
+
const containerRect = container.getBoundingClientRect();
|
|
27
|
+
// Determine if the element is fully visible within the container by comparing their positions.
|
|
28
|
+
const isFullyVisible = elementRect.top >= containerRect.top && elementRect.bottom <= containerRect.bottom;
|
|
29
|
+
if (!isFullyVisible) {
|
|
30
|
+
// Calculate the new scrollTop value to center the element within the container.
|
|
31
|
+
// This involves adjusting for the height of the element and container, ensuring the element is centered.
|
|
32
|
+
container.scrollTop = element.offsetTop - container.offsetTop - container.clientHeight / 2 + element.clientHeight / 2;
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
export { formatTime as a, formatDate as f, scrollToElementWithinContainer as s };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onereach/ui-components",
|
|
3
|
-
"version": "19.2.
|
|
3
|
+
"version": "19.2.2",
|
|
4
4
|
"npmUnpacked": "4.15.2",
|
|
5
5
|
"description": "Vue components library for v3",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"@codemirror/view": "^6",
|
|
34
34
|
"@floating-ui/dom": "1.5.3",
|
|
35
35
|
"@lezer/highlight": "*",
|
|
36
|
-
"@onereach/styles": "^19.2.
|
|
36
|
+
"@onereach/styles": "^19.2.2",
|
|
37
37
|
"@splidejs/splide": "4.0.6",
|
|
38
38
|
"@tiptap/core": "2.0.3",
|
|
39
39
|
"@tiptap/extension-blockquote": "2.0.3",
|
|
@@ -141,5 +141,5 @@
|
|
|
141
141
|
},
|
|
142
142
|
"./package.json": "./package.json"
|
|
143
143
|
},
|
|
144
|
-
"gitHead": "
|
|
144
|
+
"gitHead": "7d8b579b6b21d7cad63889a24f581abe0ff0a527"
|
|
145
145
|
}
|
|
@@ -3,7 +3,10 @@
|
|
|
3
3
|
:ref="'root'"
|
|
4
4
|
:class="rootStyles"
|
|
5
5
|
>
|
|
6
|
-
<div
|
|
6
|
+
<div
|
|
7
|
+
:ref="'hoursContainer'"
|
|
8
|
+
:class="buttonGroupStyles"
|
|
9
|
+
>
|
|
7
10
|
<OrButton
|
|
8
11
|
v-for="value in hoursOptions"
|
|
9
12
|
:ref="'hoursButtons'"
|
|
@@ -20,7 +23,10 @@
|
|
|
20
23
|
|
|
21
24
|
:
|
|
22
25
|
|
|
23
|
-
<div
|
|
26
|
+
<div
|
|
27
|
+
:ref="'minutesContainer'"
|
|
28
|
+
:class="buttonGroupStyles"
|
|
29
|
+
>
|
|
24
30
|
<OrButton
|
|
25
31
|
v-for="value in minutesOptions"
|
|
26
32
|
:ref="'minutesButtons'"
|
|
@@ -66,6 +72,7 @@ import { FilterFunction, FormatFunction, TimeFormat } from '../../../../types';
|
|
|
66
72
|
import { OrButtonV3 as OrButton } from '../../../or-button-v3';
|
|
67
73
|
import { DateTimePickerModelValue } from '../../types';
|
|
68
74
|
import * as Styles from './styles';
|
|
75
|
+
import { scrollToElementWithinContainer } from '../../utils';
|
|
69
76
|
|
|
70
77
|
export default defineComponent({
|
|
71
78
|
name: 'OrDateTimePickerTimeSelect',
|
|
@@ -137,6 +144,8 @@ export default defineComponent({
|
|
|
137
144
|
setup(props, context) {
|
|
138
145
|
// Refs & Styles
|
|
139
146
|
const root = ref<HTMLElement>();
|
|
147
|
+
const hoursContainer = ref<HTMLElement>();
|
|
148
|
+
const minutesContainer = ref<HTMLElement>();
|
|
140
149
|
const hoursButtons = ref<InstanceType<typeof OrButton>[]>([]);
|
|
141
150
|
const minutesButtons = ref<InstanceType<typeof OrButton>[]>([]);
|
|
142
151
|
|
|
@@ -194,14 +203,14 @@ export default defineComponent({
|
|
|
194
203
|
const activeHourButton = getActiveButton(hoursButtons.value, hoursOptions.value);
|
|
195
204
|
const activeMinuteButton = getActiveButton(minutesButtons.value, minutesOptions.value);
|
|
196
205
|
|
|
197
|
-
if (activeHourButton) {
|
|
206
|
+
if (activeHourButton && hoursContainer.value) {
|
|
198
207
|
// scroll to the active hour button within the hours container.
|
|
199
|
-
activeHourButton.
|
|
208
|
+
scrollToElementWithinContainer(activeHourButton, hoursContainer.value);
|
|
200
209
|
}
|
|
201
210
|
|
|
202
|
-
if (activeMinuteButton) {
|
|
211
|
+
if (activeMinuteButton && minutesContainer.value) {
|
|
203
212
|
// scroll to the active minute button within the minutes container.
|
|
204
|
-
activeMinuteButton.
|
|
213
|
+
scrollToElementWithinContainer(activeMinuteButton, minutesContainer.value);
|
|
205
214
|
}
|
|
206
215
|
});
|
|
207
216
|
}, { immediate: true });
|
|
@@ -293,6 +302,9 @@ export default defineComponent({
|
|
|
293
302
|
root,
|
|
294
303
|
rootStyles,
|
|
295
304
|
|
|
305
|
+
hoursContainer,
|
|
306
|
+
minutesContainer,
|
|
307
|
+
|
|
296
308
|
hoursButtons,
|
|
297
309
|
minutesButtons,
|
|
298
310
|
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export const scrollToElementWithinContainer = (element: HTMLElement, container: HTMLElement): void => {
|
|
2
|
+
const elementRect = element.getBoundingClientRect();
|
|
3
|
+
const containerRect = container.getBoundingClientRect();
|
|
4
|
+
|
|
5
|
+
// Determine if the element is fully visible within the container by comparing their positions.
|
|
6
|
+
const isFullyVisible = elementRect.top >= containerRect.top && elementRect.bottom <= containerRect.bottom;
|
|
7
|
+
|
|
8
|
+
if (!isFullyVisible) {
|
|
9
|
+
// Calculate the new scrollTop value to center the element within the container.
|
|
10
|
+
// This involves adjusting for the height of the element and container, ensuring the element is centered.
|
|
11
|
+
container.scrollTop = element.offsetTop - container.offsetTop - (container.clientHeight / 2) + (element.clientHeight / 2);
|
|
12
|
+
}
|
|
13
|
+
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { TimeFormat } from './types/index.js';
|
|
2
|
-
|
|
3
|
-
const formatDate = (value, format, locale) => {
|
|
4
|
-
if (typeof format === 'function') {
|
|
5
|
-
return format(value, locale);
|
|
6
|
-
}
|
|
7
|
-
return value.toLocaleString(locale, {
|
|
8
|
-
dateStyle: format,
|
|
9
|
-
timeZone: 'UTC'
|
|
10
|
-
});
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
const formatTime = (value, format, locale) => {
|
|
14
|
-
if (typeof format === 'function') {
|
|
15
|
-
return format(value, locale);
|
|
16
|
-
}
|
|
17
|
-
return value.toLocaleString(locale, {
|
|
18
|
-
timeStyle: 'short',
|
|
19
|
-
hourCycle: format !== TimeFormat.Auto ? format : undefined,
|
|
20
|
-
timeZone: 'UTC'
|
|
21
|
-
});
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
export { formatTime as a, formatDate as f };
|