@rebilly/revel 13.6.2 → 13.6.3
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/CHANGELOG.md +2 -4
- package/dist/_virtual/_plugin-vue_export-helper.mjs +8 -0
- package/dist/_virtual/_rolldown/runtime.mjs +27 -0
- package/dist/_virtual/builtin_esm-external-require-moment.mjs +9 -0
- package/dist/common/datetime-formats.mjs +22 -0
- package/dist/common/helpers/capitalize-first-letter.mjs +6 -0
- package/dist/common/helpers/format-date.mjs +7 -0
- package/dist/common/helpers/get-shadow-parent.mjs +6 -0
- package/dist/common/helpers/index.d.ts +1 -2
- package/dist/common/helpers/is-kebab-case.mjs +7 -0
- package/dist/common/helpers/is-mobile.mjs +5 -0
- package/dist/common/helpers/is-object.mjs +6 -0
- package/dist/common/helpers/sentence-case.mjs +33 -0
- package/dist/common/helpers/un-camel-case.mjs +7 -0
- package/dist/common/helpers/un-kebab-case.mjs +7 -0
- package/dist/components/index.mjs +81 -0
- package/dist/components/r-alert/r-alert.vue.mjs +6 -0
- package/dist/components/r-alert/r-alert.vue_vue_type_script_setup_true_lang.mjs +58 -0
- package/dist/components/r-avatar/r-avatar.vue.mjs +6 -0
- package/dist/components/r-avatar/r-avatar.vue_vue_type_script_setup_true_lang.mjs +56 -0
- package/dist/components/r-badge/r-badge.vue.mjs +6 -0
- package/dist/components/r-badge/r-badge.vue_vue_type_script_setup_true_lang.mjs +34 -0
- package/dist/components/r-button/r-button.vue.mjs +6 -0
- package/dist/components/r-button/r-button.vue_vue_type_script_setup_true_lang.mjs +119 -0
- package/dist/components/r-button-group/r-button-group.vue.mjs +6 -0
- package/dist/components/r-button-group/r-button-group.vue_vue_type_script_setup_true_lang.mjs +18 -0
- package/dist/components/r-checkbox/r-checkbox.vue.mjs +7 -0
- package/dist/components/r-checkbox/r-checkbox.vue_vue_type_script_setup_true_lang.mjs +77 -0
- package/dist/components/r-date-input/calendar-presets.mjs +85 -0
- package/dist/components/r-date-input/r-calendar.vue.mjs +5 -0
- package/dist/components/r-date-input/r-calendar.vue_vue_type_script_setup_true_lang.mjs +108 -0
- package/dist/components/r-date-input/r-date-input.vue.mjs +6 -0
- package/dist/components/r-date-input/r-date-input.vue_vue_type_script_setup_true_lang.mjs +136 -0
- package/dist/components/r-date-input/r-date-range-button-group.vue.mjs +6 -0
- package/dist/components/r-date-input/r-date-range-button-group.vue_vue_type_script_setup_true_lang.mjs +159 -0
- package/dist/components/r-date-input/r-range-calendar.vue.mjs +5 -0
- package/dist/components/r-date-input/r-range-calendar.vue_vue_type_script_setup_true_lang.mjs +116 -0
- package/dist/components/r-date-input/shared-calendar-options.mjs +41 -0
- package/dist/components/r-date-range/components/calendar.vue.mjs +5 -0
- package/dist/components/r-date-range/components/calendar.vue_vue_type_script_setup_true_lang.mjs +80 -0
- package/dist/components/r-date-range/components/inputs.vue.mjs +5 -0
- package/dist/components/r-date-range/components/inputs.vue_vue_type_script_setup_true_lang.mjs +405 -0
- package/dist/components/r-date-range/components/month.vue.mjs +5 -0
- package/dist/components/r-date-range/components/month.vue_vue_type_script_setup_true_lang.mjs +65 -0
- package/dist/components/r-date-range/components/popup.vue.mjs +5 -0
- package/dist/components/r-date-range/components/popup.vue_vue_type_script_setup_true_lang.mjs +163 -0
- package/dist/components/r-date-range/components/presets.vue.mjs +5 -0
- package/dist/components/r-date-range/components/presets.vue_vue_type_script_setup_true_lang.mjs +40 -0
- package/dist/components/r-date-range/components/trigger.vue.mjs +5 -0
- package/dist/components/r-date-range/components/trigger.vue_vue_type_script_setup_true_lang.mjs +81 -0
- package/dist/components/r-date-range/r-date-range.vue.mjs +6 -0
- package/dist/components/r-date-range/r-date-range.vue_vue_type_script_setup_true_lang.mjs +231 -0
- package/dist/components/r-date-range/resolve-effective-date-boundary.mjs +17 -0
- package/dist/components/r-date-range/use-calendar.mjs +87 -0
- package/dist/components/r-date-range/use-date-range-state.mjs +129 -0
- package/dist/components/r-field-group/r-field-group.vue.mjs +11 -0
- package/dist/components/r-field-label/r-field-label.vue.mjs +6 -0
- package/dist/components/r-field-label/r-field-label.vue_vue_type_script_setup_true_lang.mjs +33 -0
- package/dist/components/r-file-dropzone/pretty-file-name-format.mjs +28 -0
- package/dist/components/r-file-dropzone/pretty-file-size-format.mjs +15 -0
- package/dist/components/r-file-dropzone/r-file-dropzone-gallery-item.vue.mjs +5 -0
- package/dist/components/r-file-dropzone/r-file-dropzone-gallery-item.vue_vue_type_script_setup_true_lang.mjs +47 -0
- package/dist/components/r-file-dropzone/r-file-dropzone-gallery.vue.mjs +5 -0
- package/dist/components/r-file-dropzone/r-file-dropzone-gallery.vue_vue_type_script_setup_true_lang.mjs +18 -0
- package/dist/components/r-file-dropzone/r-file-dropzone-list.vue.mjs +5 -0
- package/dist/components/r-file-dropzone/r-file-dropzone-list.vue_vue_type_script_setup_true_lang.mjs +28 -0
- package/dist/components/r-file-dropzone/r-file-dropzone.vue.mjs +6 -0
- package/dist/components/r-file-dropzone/r-file-dropzone.vue_vue_type_script_setup_true_lang.mjs +174 -0
- package/dist/components/r-file-dropzone/types.mjs +6 -0
- package/dist/components/r-file-upload/r-file-upload.vue.mjs +6 -0
- package/dist/components/r-file-upload/r-file-upload.vue_vue_type_script_setup_true_lang.mjs +57 -0
- package/dist/components/r-flex/r-flex-item.vue.mjs +6 -0
- package/dist/components/r-flex/r-flex-item.vue_vue_type_script_setup_true_lang.mjs +28 -0
- package/dist/components/r-flex/r-flex.vue.mjs +6 -0
- package/dist/components/r-flex/r-flex.vue_vue_type_script_setup_true_lang.mjs +45 -0
- package/dist/components/r-grid/r-grid-cell.vue.mjs +6 -0
- package/dist/components/r-grid/r-grid-cell.vue_vue_type_script_setup_true_lang.mjs +46 -0
- package/dist/components/r-grid/r-grid.vue.mjs +6 -0
- package/dist/components/r-grid/r-grid.vue_vue_type_script_setup_true_lang.mjs +34 -0
- package/dist/components/r-icon/r-icon-sprites-16.mjs +811 -0
- package/dist/components/r-icon/r-icon-sprites-20.mjs +811 -0
- package/dist/components/r-icon/r-icon-sprites-24.mjs +811 -0
- package/dist/components/r-icon/r-icon-sprites-32.mjs +811 -0
- package/dist/components/r-icon/r-icon-sprites.mjs +170 -0
- package/dist/components/r-icon/r-icon.vue.mjs +6 -0
- package/dist/components/r-icon/r-icon.vue_vue_type_script_setup_true_lang.mjs +34 -0
- package/dist/components/r-img/r-img.vue.mjs +6 -0
- package/dist/components/r-img/r-img.vue_vue_type_script_setup_true_lang.mjs +42 -0
- package/dist/components/r-input/r-input.vue.mjs +6 -0
- package/dist/components/r-input/r-input.vue_vue_type_script_setup_true_lang.mjs +351 -0
- package/dist/components/r-input-errors/r-input-errors.vue.mjs +5 -0
- package/dist/components/r-input-errors/r-input-errors.vue_vue_type_script_setup_true_lang.mjs +22 -0
- package/dist/components/r-loader/r-loader.vue.mjs +6 -0
- package/dist/components/r-loader/r-loader.vue_vue_type_script_setup_true_lang.mjs +54 -0
- package/dist/components/r-modal/r-modal.vue.mjs +6 -0
- package/dist/components/r-modal/r-modal.vue_vue_type_script_setup_true_lang.mjs +128 -0
- package/dist/components/r-month-picker/months.mjs +17 -0
- package/dist/components/r-month-picker/r-month-picker.vue.mjs +6 -0
- package/dist/components/r-month-picker/r-month-picker.vue_vue_type_script_setup_true_lang.mjs +143 -0
- package/dist/components/r-multistep/r-multistep.vue.mjs +6 -0
- package/dist/components/r-multistep/r-multistep.vue_vue_type_script_setup_true_lang.mjs +66 -0
- package/dist/components/r-multistep/r-step.vue.mjs +6 -0
- package/dist/components/r-multistep/r-step.vue_vue_type_script_setup_true_lang.mjs +30 -0
- package/dist/components/r-pagination/r-pagination.vue.mjs +5 -0
- package/dist/components/r-pagination/r-pagination.vue_vue_type_script_setup_true_lang.mjs +61 -0
- package/dist/components/r-pagination-control/r-pagination-control.vue.mjs +6 -0
- package/dist/components/r-pagination-control/r-pagination-control.vue_vue_type_script_setup_true_lang.mjs +69 -0
- package/dist/components/r-popper/r-popper.vue.mjs +6 -0
- package/dist/components/r-popper/r-popper.vue_vue_type_script_setup_true_lang.mjs +252 -0
- package/dist/components/r-radio/r-radio.vue.mjs +7 -0
- package/dist/components/r-radio/r-radio.vue_vue_type_script_setup_true_lang.mjs +66 -0
- package/dist/components/r-repeater/r-repeater.vue.mjs +5 -0
- package/dist/components/r-repeater/r-repeater.vue_vue_type_script_setup_true_lang.mjs +50 -0
- package/dist/components/r-select/async-extension.mjs +171 -0
- package/dist/components/r-select/r-select.vue.mjs +245 -0
- package/dist/components/r-select/r-select.vue_vue_type_script_lang.mjs +599 -0
- package/dist/components/r-tabs/r-tab.vue.mjs +21 -0
- package/dist/components/r-tabs/r-tab.vue_vue_type_script_lang.mjs +84 -0
- package/dist/components/r-tabs/r-tabs.vue.mjs +72 -0
- package/dist/components/r-tabs/r-tabs.vue_vue_type_script_lang.mjs +140 -0
- package/dist/components/r-tile/r-tile-content.vue.mjs +6 -0
- package/dist/components/r-tile/r-tile-content.vue_vue_type_script_setup_true_lang.mjs +24 -0
- package/dist/components/r-tile/r-tile.vue.mjs +6 -0
- package/dist/components/r-tile/r-tile.vue_vue_type_script_setup_true_lang.mjs +26 -0
- package/dist/components/r-toast/default-error-handler.mjs +36 -0
- package/dist/components/r-toast/r-toast-manager.mjs +52 -0
- package/dist/components/r-toast/r-toast.vue.mjs +6 -0
- package/dist/components/r-toast/r-toast.vue_vue_type_script_setup_true_lang.mjs +96 -0
- package/dist/components/r-toast/types.mjs +6 -0
- package/dist/components/r-toggle/r-toggle.vue.mjs +6 -0
- package/dist/components/r-toggle/r-toggle.vue_vue_type_script_setup_true_lang.mjs +52 -0
- package/dist/composables/use-validate.mjs +20 -0
- package/dist/directives/index.mjs +14 -0
- package/dist/directives/r-click-outside/r-click-outside.mjs +13 -0
- package/dist/directives/r-content/r-content.mjs +12 -0
- package/dist/directives/r-lazy.mjs +19 -0
- package/dist/directives/r-tooltip/r-tooltip.mjs +51 -0
- package/dist/index.mjs +58 -0
- package/dist/revel.umd.js +3 -3
- package/dist/styles/index.mjs +5 -0
- package/dist/styles/tokens.mjs +220 -0
- package/dist/vendor/@angelblanco/v-calendar/dist/es/index.mjs +5106 -0
- package/dist/vendor/@popperjs/core/lib/createPopper.mjs +109 -0
- package/dist/vendor/@popperjs/core/lib/dom-utils/contains.mjs +16 -0
- package/dist/vendor/@popperjs/core/lib/dom-utils/getBoundingClientRect.mjs +23 -0
- package/dist/vendor/@popperjs/core/lib/dom-utils/getClippingRect.mjs +37 -0
- package/dist/vendor/@popperjs/core/lib/dom-utils/getCompositeRect.mjs +31 -0
- package/dist/vendor/@popperjs/core/lib/dom-utils/getComputedStyle.mjs +7 -0
- package/dist/vendor/@popperjs/core/lib/dom-utils/getDocumentElement.mjs +7 -0
- package/dist/vendor/@popperjs/core/lib/dom-utils/getDocumentRect.mjs +17 -0
- package/dist/vendor/@popperjs/core/lib/dom-utils/getHTMLElementScroll.mjs +9 -0
- package/dist/vendor/@popperjs/core/lib/dom-utils/getLayoutRect.mjs +13 -0
- package/dist/vendor/@popperjs/core/lib/dom-utils/getNodeName.mjs +6 -0
- package/dist/vendor/@popperjs/core/lib/dom-utils/getNodeScroll.mjs +10 -0
- package/dist/vendor/@popperjs/core/lib/dom-utils/getOffsetParent.mjs +28 -0
- package/dist/vendor/@popperjs/core/lib/dom-utils/getParentNode.mjs +9 -0
- package/dist/vendor/@popperjs/core/lib/dom-utils/getScrollParent.mjs +14 -0
- package/dist/vendor/@popperjs/core/lib/dom-utils/getViewportRect.mjs +21 -0
- package/dist/vendor/@popperjs/core/lib/dom-utils/getWindow.mjs +11 -0
- package/dist/vendor/@popperjs/core/lib/dom-utils/getWindowScroll.mjs +11 -0
- package/dist/vendor/@popperjs/core/lib/dom-utils/getWindowScrollBarX.mjs +9 -0
- package/dist/vendor/@popperjs/core/lib/dom-utils/instanceOf.mjs +13 -0
- package/dist/vendor/@popperjs/core/lib/dom-utils/isLayoutViewport.mjs +7 -0
- package/dist/vendor/@popperjs/core/lib/dom-utils/isScrollParent.mjs +8 -0
- package/dist/vendor/@popperjs/core/lib/dom-utils/isTableElement.mjs +11 -0
- package/dist/vendor/@popperjs/core/lib/dom-utils/listScrollParents.mjs +12 -0
- package/dist/vendor/@popperjs/core/lib/enums.mjs +26 -0
- package/dist/vendor/@popperjs/core/lib/modifiers/applyStyles.mjs +45 -0
- package/dist/vendor/@popperjs/core/lib/modifiers/arrow.mjs +35 -0
- package/dist/vendor/@popperjs/core/lib/modifiers/computeStyles.mjs +88 -0
- package/dist/vendor/@popperjs/core/lib/modifiers/eventListeners.mjs +23 -0
- package/dist/vendor/@popperjs/core/lib/modifiers/flip.mjs +69 -0
- package/dist/vendor/@popperjs/core/lib/modifiers/hide.mjs +45 -0
- package/dist/vendor/@popperjs/core/lib/modifiers/offset.mjs +28 -0
- package/dist/vendor/@popperjs/core/lib/modifiers/popperOffsets.mjs +20 -0
- package/dist/vendor/@popperjs/core/lib/modifiers/preventOverflow.mjs +52 -0
- package/dist/vendor/@popperjs/core/lib/popper.mjs +25 -0
- package/dist/vendor/@popperjs/core/lib/utils/computeAutoPlacement.mjs +27 -0
- package/dist/vendor/@popperjs/core/lib/utils/computeOffsets.mjs +51 -0
- package/dist/vendor/@popperjs/core/lib/utils/debounce.mjs +13 -0
- package/dist/vendor/@popperjs/core/lib/utils/detectOverflow.mjs +34 -0
- package/dist/vendor/@popperjs/core/lib/utils/expandToHashMap.mjs +8 -0
- package/dist/vendor/@popperjs/core/lib/utils/getAltAxis.mjs +6 -0
- package/dist/vendor/@popperjs/core/lib/utils/getBasePlacement.mjs +6 -0
- package/dist/vendor/@popperjs/core/lib/utils/getFreshSideObject.mjs +11 -0
- package/dist/vendor/@popperjs/core/lib/utils/getMainAxisFromPlacement.mjs +6 -0
- package/dist/vendor/@popperjs/core/lib/utils/getOppositePlacement.mjs +14 -0
- package/dist/vendor/@popperjs/core/lib/utils/getOppositeVariationPlacement.mjs +12 -0
- package/dist/vendor/@popperjs/core/lib/utils/getVariation.mjs +6 -0
- package/dist/vendor/@popperjs/core/lib/utils/math.mjs +4 -0
- package/dist/vendor/@popperjs/core/lib/utils/mergeByName.mjs +15 -0
- package/dist/vendor/@popperjs/core/lib/utils/mergePaddingObject.mjs +7 -0
- package/dist/vendor/@popperjs/core/lib/utils/orderModifiers.mjs +29 -0
- package/dist/vendor/@popperjs/core/lib/utils/rectToClientRect.mjs +11 -0
- package/dist/vendor/@popperjs/core/lib/utils/userAgent.mjs +9 -0
- package/dist/vendor/@popperjs/core/lib/utils/within.mjs +11 -0
- package/dist/vendor/es-toolkit/dist/_internal/globalThis.mjs +6 -0
- package/dist/vendor/es-toolkit/dist/compat/_internal/getSymbols.mjs +6 -0
- package/dist/vendor/es-toolkit/dist/compat/_internal/getTag.mjs +6 -0
- package/dist/vendor/es-toolkit/dist/compat/_internal/tags.mjs +4 -0
- package/dist/vendor/es-toolkit/dist/compat/function/debounce.mjs +15 -0
- package/dist/vendor/es-toolkit/dist/compat/object/cloneDeep.mjs +7 -0
- package/dist/vendor/es-toolkit/dist/compat/object/cloneDeepWith.mjs +31 -0
- package/dist/vendor/es-toolkit/dist/function/debounce.mjs +26 -0
- package/dist/vendor/es-toolkit/dist/function/throttle.mjs +15 -0
- package/dist/vendor/es-toolkit/dist/object/cloneDeepWith.mjs +116 -0
- package/dist/vendor/es-toolkit/dist/predicate/isBuffer.mjs +7 -0
- package/dist/vendor/es-toolkit/dist/predicate/isPrimitive.mjs +6 -0
- package/dist/vendor/es-toolkit/dist/predicate/isTypedArray.mjs +6 -0
- package/dist/vendor/es-toolkit/dist/string/kebabCase.mjs +7 -0
- package/dist/vendor/es-toolkit/dist/string/words.mjs +7 -0
- package/dist/vendor/moment-timezone/data/packed/latest.json.mjs +19 -0
- package/dist/vendor/moment-timezone/index.mjs +10 -0
- package/dist/vendor/moment-timezone/moment-timezone.mjs +236 -0
- package/dist/vendor/nanoid/non-secure/index.mjs +8 -0
- package/package.json +9 -3
- package/dist/revel.mjs +0 -15886
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { DatePicker as e } from "../../vendor/@angelblanco/v-calendar/dist/es/index.mjs";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import { getComputedPopoverConfigs as t, themeStyles as n } from "./shared-calendar-options.mjs";
|
|
4
|
+
import r from "./r-date-range-button-group.vue.mjs";
|
|
5
|
+
import { computed as i, createElementBlock as a, createVNode as o, defineComponent as s, mergeProps as c, openBlock as l, resolveComponent as u, unref as d, useAttrs as f, vShow as p, withCtx as m, withDirectives as h } from "vue";
|
|
6
|
+
import g from "moment";
|
|
7
|
+
//#region src/components/r-date-input/r-range-calendar.vue?vue&type=script&setup=true&lang.ts
|
|
8
|
+
var _ = { class: "calendar" }, v = /*@__PURE__*/ s({
|
|
9
|
+
__name: "r-range-calendar",
|
|
10
|
+
props: {
|
|
11
|
+
modelValue: { default: () => /* @__PURE__ */ new Date() },
|
|
12
|
+
disabled: {
|
|
13
|
+
type: Boolean,
|
|
14
|
+
default: !1
|
|
15
|
+
},
|
|
16
|
+
is24hr: {
|
|
17
|
+
type: Boolean,
|
|
18
|
+
default: !1
|
|
19
|
+
},
|
|
20
|
+
timePicker: {
|
|
21
|
+
type: Boolean,
|
|
22
|
+
default: !1
|
|
23
|
+
},
|
|
24
|
+
timezone: { default: "UTC" },
|
|
25
|
+
placeholder: { default: "" }
|
|
26
|
+
},
|
|
27
|
+
emits: ["update:modelValue"],
|
|
28
|
+
setup(s, { emit: v }) {
|
|
29
|
+
function y(e) {
|
|
30
|
+
if (!e.start && !e.end) throw Error(`Invalid date range value ${JSON.stringify(e)})}`);
|
|
31
|
+
}
|
|
32
|
+
let b = s, x = v, S = f(), C = { input: "YYYY-MM-DD h:mm A" }, w = { ...b.timePicker ? {} : {
|
|
33
|
+
start: { timeAdjust: "00:00:00" },
|
|
34
|
+
end: { timeAdjust: "23:59:59" }
|
|
35
|
+
} }, T = t({ attrs: S }), E = i(() => {
|
|
36
|
+
if (!b.modelValue) return null;
|
|
37
|
+
let e = b.modelValue, { start: t, end: n } = e, r = (e) => typeof e == "string" ? e : e && "format" in e ? e.format() : e;
|
|
38
|
+
return {
|
|
39
|
+
...e,
|
|
40
|
+
start: r(t),
|
|
41
|
+
end: r(n)
|
|
42
|
+
};
|
|
43
|
+
}), D = i(() => {
|
|
44
|
+
if (!b.modelValue || typeof b.modelValue == "string" || b.modelValue instanceof Date) return;
|
|
45
|
+
y(b.modelValue);
|
|
46
|
+
let { start: e, end: t } = b.modelValue;
|
|
47
|
+
return {
|
|
48
|
+
start: new Date(e),
|
|
49
|
+
end: new Date(t)
|
|
50
|
+
};
|
|
51
|
+
}), O = i(() => b.timePicker ? "dateTime" : "date"), k = (e) => {
|
|
52
|
+
let t = !0, n = e.isRelative ?? !1, r = e.relativeFilterValue ?? null, i = g.isMoment(e.start) ? e.start : g(e.start).tz(b.timezone), a = g.isMoment(e.end) ? e.end : g(e.end).tz(b.timezone);
|
|
53
|
+
if (E.value) {
|
|
54
|
+
let { start: e, end: n } = E.value, r = g(e).tz(b.timezone), o = g(n).tz(b.timezone), s = b.timePicker ? null : "day";
|
|
55
|
+
t = !i.isSame(r, s) || !a.isSame(o, s);
|
|
56
|
+
}
|
|
57
|
+
if (t) {
|
|
58
|
+
let e = {
|
|
59
|
+
isRelative: n,
|
|
60
|
+
relativeFilterValue: r,
|
|
61
|
+
start: i.toDate(),
|
|
62
|
+
end: a.toDate()
|
|
63
|
+
};
|
|
64
|
+
x("update:modelValue", e);
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
return (t, i) => {
|
|
68
|
+
let f = u("r-input");
|
|
69
|
+
return l(), a("div", _, [h(o(f, {
|
|
70
|
+
disabled: s.disabled,
|
|
71
|
+
"right-icon": "calendar"
|
|
72
|
+
}, null, 8, ["disabled"]), [[p, s.disabled]]), o(d(e), c({
|
|
73
|
+
"is-range": "",
|
|
74
|
+
"model-value": D.value
|
|
75
|
+
}, t.$attrs, {
|
|
76
|
+
masks: C,
|
|
77
|
+
"theme-styles": d(n),
|
|
78
|
+
"show-caps": "",
|
|
79
|
+
"model-config": w,
|
|
80
|
+
color: "blue",
|
|
81
|
+
popover: d(T),
|
|
82
|
+
timezone: s.timezone,
|
|
83
|
+
mode: O.value,
|
|
84
|
+
"onUpdate:modelValue": k
|
|
85
|
+
}), {
|
|
86
|
+
default: m(({ togglePopover: e }) => [o(r, {
|
|
87
|
+
"model-value": E.value,
|
|
88
|
+
"calendar-toggle": e,
|
|
89
|
+
disabled: s.disabled,
|
|
90
|
+
"time-picker": s.timePicker,
|
|
91
|
+
timezone: s.timezone,
|
|
92
|
+
is24hr: s.is24hr,
|
|
93
|
+
placeholder: s.placeholder,
|
|
94
|
+
onPresetSelect: k
|
|
95
|
+
}, null, 8, [
|
|
96
|
+
"model-value",
|
|
97
|
+
"calendar-toggle",
|
|
98
|
+
"disabled",
|
|
99
|
+
"time-picker",
|
|
100
|
+
"timezone",
|
|
101
|
+
"is24hr",
|
|
102
|
+
"placeholder"
|
|
103
|
+
])]),
|
|
104
|
+
_: 1
|
|
105
|
+
}, 16, [
|
|
106
|
+
"model-value",
|
|
107
|
+
"theme-styles",
|
|
108
|
+
"popover",
|
|
109
|
+
"timezone",
|
|
110
|
+
"mode"
|
|
111
|
+
])]);
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
});
|
|
115
|
+
//#endregion
|
|
116
|
+
export { v as default };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
//#region src/components/r-date-input/shared-calendar-options.ts
|
|
2
|
+
var e = {
|
|
3
|
+
wrapper: {
|
|
4
|
+
background: "#FFFFFF",
|
|
5
|
+
borderRadius: "4px",
|
|
6
|
+
boxShadow: "none",
|
|
7
|
+
border: "none",
|
|
8
|
+
fontFamily: "\"Roboto\", sans-serif"
|
|
9
|
+
},
|
|
10
|
+
header: { padding: "16px 20px" },
|
|
11
|
+
headerTitle: {
|
|
12
|
+
fontSize: "16px",
|
|
13
|
+
lineHeight: "20px",
|
|
14
|
+
fontFamily: "\"Montserrat\", sans-serif",
|
|
15
|
+
fontWeight: "500",
|
|
16
|
+
color: "#0D2B3E"
|
|
17
|
+
},
|
|
18
|
+
weekdays: {
|
|
19
|
+
fontSize: "14px",
|
|
20
|
+
lineHeight: "20px",
|
|
21
|
+
color: "#6B7384",
|
|
22
|
+
fontWeight: "normal"
|
|
23
|
+
},
|
|
24
|
+
dayCell: { backgroundColor: "" },
|
|
25
|
+
dayContent: {
|
|
26
|
+
fontSize: "14px",
|
|
27
|
+
lineHeight: "20px",
|
|
28
|
+
color: "#0D2B3E",
|
|
29
|
+
width: "32px",
|
|
30
|
+
height: "32px"
|
|
31
|
+
},
|
|
32
|
+
dayContentHover: { backgroundColor: "#E1E7EA" },
|
|
33
|
+
verticalDivider: { borderLeft: "1px solid #E1E7EA" },
|
|
34
|
+
bars: { backgroundColor: "red" },
|
|
35
|
+
tintColor: "#DCE7FE"
|
|
36
|
+
}, t = (e) => ({
|
|
37
|
+
placement: e.attrs.placement || "bottom",
|
|
38
|
+
visibility: "click"
|
|
39
|
+
});
|
|
40
|
+
//#endregion
|
|
41
|
+
export { t as getComputedPopoverConfigs, e as themeStyles };
|
package/dist/components/r-date-range/components/calendar.vue_vue_type_script_setup_true_lang.mjs
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import e from "../../r-icon/r-icon.vue.mjs";
|
|
2
|
+
import t from "./month.vue.mjs";
|
|
3
|
+
import { useCalendar as n } from "../use-calendar.mjs";
|
|
4
|
+
import { Fragment as r, createBlock as i, createElementBlock as a, createElementVNode as o, createVNode as s, defineComponent as c, normalizeClass as l, openBlock as u, renderList as d, toDisplayString as f, toRef as p, unref as m, watch as h } from "vue";
|
|
5
|
+
//#region src/components/r-date-range/components/calendar.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
+
var g = { class: "r-date-range-calendar-header" }, _ = { class: "r-date-range-calendar-nav" }, v = { class: "r-date-range-calendar-titles" }, y = { class: "r-date-range-calendar-nav" }, b = { class: "r-date-range-calendar-months" }, x = /*@__PURE__*/ c({
|
|
7
|
+
__name: "calendar",
|
|
8
|
+
props: {
|
|
9
|
+
columns: { default: 2 },
|
|
10
|
+
minDate: { default: void 0 },
|
|
11
|
+
maxDate: { default: void 0 },
|
|
12
|
+
timezone: { default: "UTC" },
|
|
13
|
+
navigateToDate: { default: void 0 },
|
|
14
|
+
isInRange: {},
|
|
15
|
+
isRangeStart: {},
|
|
16
|
+
isRangeEnd: {}
|
|
17
|
+
},
|
|
18
|
+
emits: ["date-click", "date-hover"],
|
|
19
|
+
setup(c, { emit: x }) {
|
|
20
|
+
let S = c, C = x, { displayedMonths: w, nextMonth: T, prevMonth: E, nextYear: D, prevYear: O, goToDate: k } = n({
|
|
21
|
+
timezone: S.timezone,
|
|
22
|
+
minDate: p(S, "minDate"),
|
|
23
|
+
maxDate: p(S, "maxDate"),
|
|
24
|
+
columns: p(S, "columns")
|
|
25
|
+
});
|
|
26
|
+
h(() => S.navigateToDate, (e) => {
|
|
27
|
+
e && k(e);
|
|
28
|
+
});
|
|
29
|
+
function A(e) {
|
|
30
|
+
C("date-click", e);
|
|
31
|
+
}
|
|
32
|
+
function j(e) {
|
|
33
|
+
C("date-hover", e);
|
|
34
|
+
}
|
|
35
|
+
return (n, c) => (u(), a("div", { class: l(["r-date-range-calendar", `r-date-range-calendar-cols-${S.columns}`]) }, [o("div", g, [
|
|
36
|
+
o("div", _, [o("button", {
|
|
37
|
+
type: "button",
|
|
38
|
+
class: "r-date-range-calendar-nav-btn",
|
|
39
|
+
"aria-label": "Previous year",
|
|
40
|
+
onClick: c[0] ||= (...e) => m(O) && m(O)(...e)
|
|
41
|
+
}, [s(e, { icon: "caret-double-left" })]), o("button", {
|
|
42
|
+
type: "button",
|
|
43
|
+
class: "r-date-range-calendar-nav-btn",
|
|
44
|
+
"aria-label": "Previous month",
|
|
45
|
+
onClick: c[1] ||= (...e) => m(E) && m(E)(...e)
|
|
46
|
+
}, [s(e, { icon: "caret-left" })])]),
|
|
47
|
+
o("div", v, [(u(!0), a(r, null, d(m(w), (e) => (u(), a("span", {
|
|
48
|
+
key: `title-${e.year}-${e.month}`,
|
|
49
|
+
class: "r-date-range-calendar-title"
|
|
50
|
+
}, f(e.name) + " " + f(e.year), 1))), 128))]),
|
|
51
|
+
o("div", y, [o("button", {
|
|
52
|
+
type: "button",
|
|
53
|
+
class: "r-date-range-calendar-nav-btn",
|
|
54
|
+
"aria-label": "Next month",
|
|
55
|
+
onClick: c[2] ||= (...e) => m(T) && m(T)(...e)
|
|
56
|
+
}, [s(e, { icon: "caret-right" })]), o("button", {
|
|
57
|
+
type: "button",
|
|
58
|
+
class: "r-date-range-calendar-nav-btn",
|
|
59
|
+
"aria-label": "Next year",
|
|
60
|
+
onClick: c[3] ||= (...e) => m(D) && m(D)(...e)
|
|
61
|
+
}, [s(e, { icon: "caret-double-right" })])])
|
|
62
|
+
]), o("div", b, [(u(!0), a(r, null, d(m(w), (e) => (u(), i(t, {
|
|
63
|
+
key: `${e.year}-${e.month}`,
|
|
64
|
+
month: e,
|
|
65
|
+
"show-header": !1,
|
|
66
|
+
"is-in-range": S.isInRange,
|
|
67
|
+
"is-range-start": S.isRangeStart,
|
|
68
|
+
"is-range-end": S.isRangeEnd,
|
|
69
|
+
onDateClick: A,
|
|
70
|
+
onDateHover: j
|
|
71
|
+
}, null, 8, [
|
|
72
|
+
"month",
|
|
73
|
+
"is-in-range",
|
|
74
|
+
"is-range-start",
|
|
75
|
+
"is-range-end"
|
|
76
|
+
]))), 128))])], 2));
|
|
77
|
+
}
|
|
78
|
+
});
|
|
79
|
+
//#endregion
|
|
80
|
+
export { x as default };
|
package/dist/components/r-date-range/components/inputs.vue_vue_type_script_setup_true_lang.mjs
ADDED
|
@@ -0,0 +1,405 @@
|
|
|
1
|
+
import e from "../../r-icon/r-icon.vue.mjs";
|
|
2
|
+
import { Fragment as t, computed as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createVNode as o, defineComponent as s, nextTick as c, normalizeClass as l, onMounted as ee, onUnmounted as te, openBlock as u, ref as d, renderList as f, toDisplayString as p, vModelText as m, watch as h, withDirectives as g, withModifiers as _ } from "vue";
|
|
3
|
+
//#region src/components/r-date-range/components/inputs.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
var ne = { class: "r-date-range-inputs" }, re = { class: "r-date-range-input-group" }, ie = { class: "r-date-range-input-row" }, ae = { class: "r-date-range-input-field" }, oe = { class: "r-date-range-input-field r-date-range-time-field" }, se = ["placeholder"], ce = {
|
|
5
|
+
key: 0,
|
|
6
|
+
class: "r-date-range-time-dropdown-list"
|
|
7
|
+
}, le = ["onMousedown"], ue = {
|
|
8
|
+
key: 0,
|
|
9
|
+
class: "r-date-range-input-separator"
|
|
10
|
+
}, de = { class: "r-date-range-input-group" }, fe = { class: "r-date-range-input-row" }, pe = { class: "r-date-range-input-field" }, me = { class: "r-date-range-input-field r-date-range-time-field" }, he = ["placeholder"], ge = {
|
|
11
|
+
key: 0,
|
|
12
|
+
class: "r-date-range-time-dropdown-list"
|
|
13
|
+
}, _e = ["onMousedown"], v = /*@__PURE__*/ s({
|
|
14
|
+
__name: "inputs",
|
|
15
|
+
props: {
|
|
16
|
+
startDate: {},
|
|
17
|
+
endDate: {},
|
|
18
|
+
startTime: {},
|
|
19
|
+
endTime: {},
|
|
20
|
+
showTimePicker: {
|
|
21
|
+
type: Boolean,
|
|
22
|
+
default: !0
|
|
23
|
+
},
|
|
24
|
+
is24hr: {
|
|
25
|
+
type: Boolean,
|
|
26
|
+
default: !1
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
emits: [
|
|
30
|
+
"update:startDate",
|
|
31
|
+
"update:endDate",
|
|
32
|
+
"update:startTime",
|
|
33
|
+
"update:endTime"
|
|
34
|
+
],
|
|
35
|
+
setup(s, { emit: v }) {
|
|
36
|
+
let y = s, b = v;
|
|
37
|
+
function x(e) {
|
|
38
|
+
return ("0" + e).slice(-2);
|
|
39
|
+
}
|
|
40
|
+
function S(e, t, n) {
|
|
41
|
+
let r = parseInt(e, 10), i = parseInt(t, 10), a = parseInt(n, 10);
|
|
42
|
+
if (isNaN(r) || isNaN(i) || isNaN(a) || r < 1 || r > 12 || i < 1 || i > 31 || a < 1900 || a > 2100) return null;
|
|
43
|
+
let o = new Date(a, r - 1, i);
|
|
44
|
+
return o.getMonth() !== r - 1 || o.getDate() !== i ? null : o;
|
|
45
|
+
}
|
|
46
|
+
let C = d(""), w = d(""), T = d(""), E = d(""), D = d(""), O = d(""), k = d(""), A = d(""), j = d("AM"), M = d(""), N = d(""), P = d("PM"), F = d(null), I = d(null), L = d(null), R = d(null), z = d(null), B = d(null), V = n(() => {
|
|
47
|
+
let e = [];
|
|
48
|
+
for (let t = 0; t < 24; t++) for (let n = 0; n < 60; n += 30) e.push({
|
|
49
|
+
label: ve(t, n),
|
|
50
|
+
hours: t,
|
|
51
|
+
minutes: n
|
|
52
|
+
});
|
|
53
|
+
return e;
|
|
54
|
+
});
|
|
55
|
+
function ve(e, t) {
|
|
56
|
+
if (y.is24hr) return `${x(e)} : ${x(t)}`;
|
|
57
|
+
let n = e >= 12 ? "PM" : "AM";
|
|
58
|
+
return `${x(e % 12 || 12)} : ${x(t)} ${n}`;
|
|
59
|
+
}
|
|
60
|
+
h(() => y.startDate, (e) => {
|
|
61
|
+
e ? (C.value = x(e.getMonth() + 1), w.value = x(e.getDate()), T.value = e.getFullYear().toString()) : (C.value = "", w.value = "", T.value = "");
|
|
62
|
+
}, { immediate: !0 }), h(() => y.endDate, (e) => {
|
|
63
|
+
e ? (E.value = x(e.getMonth() + 1), D.value = x(e.getDate()), O.value = e.getFullYear().toString()) : (E.value = "", D.value = "", O.value = "");
|
|
64
|
+
}, { immediate: !0 }), h(() => y.startTime, (e) => {
|
|
65
|
+
if (y.is24hr) k.value = x(e.hours);
|
|
66
|
+
else {
|
|
67
|
+
let t = e.hours % 12 || 12;
|
|
68
|
+
k.value = x(t), j.value = e.hours >= 12 ? "PM" : "AM";
|
|
69
|
+
}
|
|
70
|
+
A.value = x(e.minutes);
|
|
71
|
+
}, {
|
|
72
|
+
immediate: !0,
|
|
73
|
+
deep: !0
|
|
74
|
+
}), h(() => y.endTime, (e) => {
|
|
75
|
+
if (y.is24hr) M.value = x(e.hours);
|
|
76
|
+
else {
|
|
77
|
+
let t = e.hours % 12 || 12;
|
|
78
|
+
M.value = x(t), P.value = e.hours >= 12 ? "PM" : "AM";
|
|
79
|
+
}
|
|
80
|
+
N.value = x(e.minutes);
|
|
81
|
+
}, {
|
|
82
|
+
immediate: !0,
|
|
83
|
+
deep: !0
|
|
84
|
+
});
|
|
85
|
+
function H() {
|
|
86
|
+
let e = S(C.value, w.value, T.value);
|
|
87
|
+
e ? b("update:startDate", e) : y.startDate ? (C.value = x(y.startDate.getMonth() + 1), w.value = x(y.startDate.getDate()), T.value = y.startDate.getFullYear().toString()) : (C.value = "", w.value = "", T.value = "", b("update:startDate", null));
|
|
88
|
+
}
|
|
89
|
+
function U() {
|
|
90
|
+
let e = S(E.value, D.value, O.value);
|
|
91
|
+
e ? b("update:endDate", e) : y.endDate ? (E.value = x(y.endDate.getMonth() + 1), D.value = x(y.endDate.getDate()), O.value = y.endDate.getFullYear().toString()) : (E.value = "", D.value = "", O.value = "", b("update:endDate", null));
|
|
92
|
+
}
|
|
93
|
+
function W() {
|
|
94
|
+
let e = parseInt(k.value, 10), t = parseInt(A.value, 10);
|
|
95
|
+
if (!(isNaN(e) || isNaN(t))) {
|
|
96
|
+
if (!y.is24hr) {
|
|
97
|
+
if (e < 1 || e > 12) return;
|
|
98
|
+
j.value === "PM" && e !== 12 ? e += 12 : j.value === "AM" && e === 12 && (e = 0);
|
|
99
|
+
} else if (e < 0 || e > 23) return;
|
|
100
|
+
t < 0 || t > 59 || b("update:startTime", {
|
|
101
|
+
hours: e,
|
|
102
|
+
minutes: t
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
function G() {
|
|
107
|
+
let e = parseInt(M.value, 10), t = parseInt(N.value, 10);
|
|
108
|
+
if (!(isNaN(e) || isNaN(t))) {
|
|
109
|
+
if (!y.is24hr) {
|
|
110
|
+
if (e < 1 || e > 12) return;
|
|
111
|
+
P.value === "PM" && e !== 12 ? e += 12 : P.value === "AM" && e === 12 && (e = 0);
|
|
112
|
+
} else if (e < 0 || e > 23) return;
|
|
113
|
+
t < 0 || t > 59 || b("update:endTime", {
|
|
114
|
+
hours: e,
|
|
115
|
+
minutes: t
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
function ye() {
|
|
120
|
+
C.value.length >= 2 && c(() => F.value?.focus());
|
|
121
|
+
}
|
|
122
|
+
function be() {
|
|
123
|
+
w.value.length >= 2 && c(() => I.value?.focus());
|
|
124
|
+
}
|
|
125
|
+
function xe() {
|
|
126
|
+
E.value.length >= 2 && c(() => L.value?.focus());
|
|
127
|
+
}
|
|
128
|
+
function Se() {
|
|
129
|
+
D.value.length >= 2 && c(() => R.value?.focus());
|
|
130
|
+
}
|
|
131
|
+
function Ce() {
|
|
132
|
+
k.value.length >= 2 && c(() => z.value?.focus());
|
|
133
|
+
}
|
|
134
|
+
function we() {
|
|
135
|
+
M.value.length >= 2 && c(() => B.value?.focus());
|
|
136
|
+
}
|
|
137
|
+
function Te() {
|
|
138
|
+
j.value = j.value === "AM" ? "PM" : "AM", W();
|
|
139
|
+
}
|
|
140
|
+
function Ee() {
|
|
141
|
+
P.value = P.value === "AM" ? "PM" : "AM", G();
|
|
142
|
+
}
|
|
143
|
+
let K = d(!1), q = d(!1), J = d(null), Y = d(null);
|
|
144
|
+
function X() {
|
|
145
|
+
K.value = !0, q.value = !1;
|
|
146
|
+
}
|
|
147
|
+
function Z() {
|
|
148
|
+
q.value = !0, K.value = !1;
|
|
149
|
+
}
|
|
150
|
+
function Q() {
|
|
151
|
+
K.value = !1;
|
|
152
|
+
}
|
|
153
|
+
function De() {
|
|
154
|
+
q.value = !1;
|
|
155
|
+
}
|
|
156
|
+
function Oe(e) {
|
|
157
|
+
b("update:startTime", {
|
|
158
|
+
hours: e.hours,
|
|
159
|
+
minutes: e.minutes
|
|
160
|
+
}), K.value = !1;
|
|
161
|
+
}
|
|
162
|
+
function ke(e) {
|
|
163
|
+
b("update:endTime", {
|
|
164
|
+
hours: e.hours,
|
|
165
|
+
minutes: e.minutes
|
|
166
|
+
}), q.value = !1;
|
|
167
|
+
}
|
|
168
|
+
function Ae(e) {
|
|
169
|
+
return y.startTime.hours === e.hours && y.startTime.minutes === e.minutes;
|
|
170
|
+
}
|
|
171
|
+
function je(e) {
|
|
172
|
+
return y.endTime.hours === e.hours && y.endTime.minutes === e.minutes;
|
|
173
|
+
}
|
|
174
|
+
function Me(e) {
|
|
175
|
+
let t = e.target;
|
|
176
|
+
J.value && !J.value.contains(t) && (K.value = !1), Y.value && !Y.value.contains(t) && (q.value = !1);
|
|
177
|
+
}
|
|
178
|
+
function $(e) {
|
|
179
|
+
!/^\d$/.test(e.key) && ![
|
|
180
|
+
"Backspace",
|
|
181
|
+
"Delete",
|
|
182
|
+
"Tab",
|
|
183
|
+
"ArrowLeft",
|
|
184
|
+
"ArrowRight"
|
|
185
|
+
].includes(e.key) && e.preventDefault();
|
|
186
|
+
}
|
|
187
|
+
return ee(() => {
|
|
188
|
+
document.addEventListener("click", Me);
|
|
189
|
+
}), te(() => {
|
|
190
|
+
document.removeEventListener("click", Me);
|
|
191
|
+
}), (n, s) => (u(), i("div", ne, [
|
|
192
|
+
a("div", re, [s[18] ||= a("label", { class: "r-date-range-input-label" }, "Start date", -1), a("div", ie, [a("div", ae, [
|
|
193
|
+
g(a("input", {
|
|
194
|
+
"onUpdate:modelValue": s[0] ||= (e) => C.value = e,
|
|
195
|
+
type: "text",
|
|
196
|
+
class: "r-date-range-segment r-date-range-segment-month",
|
|
197
|
+
placeholder: "MM",
|
|
198
|
+
maxlength: "2",
|
|
199
|
+
onInput: ye,
|
|
200
|
+
onBlur: H,
|
|
201
|
+
onKeydown: $
|
|
202
|
+
}, null, 544), [[m, C.value]]),
|
|
203
|
+
s[14] ||= a("span", { class: "r-date-range-segment-separator" }, "/", -1),
|
|
204
|
+
g(a("input", {
|
|
205
|
+
ref_key: "startDayRef",
|
|
206
|
+
ref: F,
|
|
207
|
+
"onUpdate:modelValue": s[1] ||= (e) => w.value = e,
|
|
208
|
+
type: "text",
|
|
209
|
+
class: "r-date-range-segment r-date-range-segment-day",
|
|
210
|
+
placeholder: "DD",
|
|
211
|
+
maxlength: "2",
|
|
212
|
+
onInput: be,
|
|
213
|
+
onBlur: H,
|
|
214
|
+
onKeydown: $
|
|
215
|
+
}, null, 544), [[m, w.value]]),
|
|
216
|
+
s[15] ||= a("span", { class: "r-date-range-segment-separator" }, "/", -1),
|
|
217
|
+
g(a("input", {
|
|
218
|
+
ref_key: "startYearRef",
|
|
219
|
+
ref: I,
|
|
220
|
+
"onUpdate:modelValue": s[2] ||= (e) => T.value = e,
|
|
221
|
+
type: "text",
|
|
222
|
+
class: "r-date-range-segment r-date-range-segment-year",
|
|
223
|
+
placeholder: "YYYY",
|
|
224
|
+
maxlength: "4",
|
|
225
|
+
onBlur: H,
|
|
226
|
+
onKeydown: $
|
|
227
|
+
}, null, 544), [[m, T.value]]),
|
|
228
|
+
o(e, {
|
|
229
|
+
icon: "calendar",
|
|
230
|
+
class: "r-date-range-input-icon r-icon-20"
|
|
231
|
+
})
|
|
232
|
+
]), y.showTimePicker ? (u(), i("div", {
|
|
233
|
+
key: 0,
|
|
234
|
+
ref_key: "startDropdownRef",
|
|
235
|
+
ref: J,
|
|
236
|
+
class: "r-date-range-time-dropdown"
|
|
237
|
+
}, [a("div", oe, [
|
|
238
|
+
g(a("input", {
|
|
239
|
+
"onUpdate:modelValue": s[3] ||= (e) => k.value = e,
|
|
240
|
+
type: "text",
|
|
241
|
+
class: "r-date-range-segment r-date-range-segment-hour",
|
|
242
|
+
placeholder: y.is24hr ? "HH" : "hh",
|
|
243
|
+
maxlength: "2",
|
|
244
|
+
onInput: Ce,
|
|
245
|
+
onFocus: X,
|
|
246
|
+
onBlur: s[4] ||= (e) => {
|
|
247
|
+
W(), Q();
|
|
248
|
+
},
|
|
249
|
+
onKeydown: $
|
|
250
|
+
}, null, 40, se), [[m, k.value]]),
|
|
251
|
+
s[16] ||= a("span", { class: "r-date-range-segment-separator" }, ":", -1),
|
|
252
|
+
g(a("input", {
|
|
253
|
+
ref_key: "startMinuteRef",
|
|
254
|
+
ref: z,
|
|
255
|
+
"onUpdate:modelValue": s[5] ||= (e) => A.value = e,
|
|
256
|
+
type: "text",
|
|
257
|
+
class: "r-date-range-segment r-date-range-segment-minute",
|
|
258
|
+
placeholder: "mm",
|
|
259
|
+
maxlength: "2",
|
|
260
|
+
onFocus: X,
|
|
261
|
+
onBlur: s[6] ||= (e) => {
|
|
262
|
+
W(), Q();
|
|
263
|
+
},
|
|
264
|
+
onKeydown: $
|
|
265
|
+
}, null, 544), [[m, A.value]]),
|
|
266
|
+
y.is24hr ? r("", !0) : (u(), i("button", {
|
|
267
|
+
key: 0,
|
|
268
|
+
type: "button",
|
|
269
|
+
class: "r-date-range-period-toggle",
|
|
270
|
+
onClick: Te
|
|
271
|
+
}, p(j.value), 1)),
|
|
272
|
+
s[17] ||= a("svg", {
|
|
273
|
+
class: "r-date-range-time-clock-icon r-icon-20",
|
|
274
|
+
viewBox: "0 0 20 20",
|
|
275
|
+
fill: "currentColor"
|
|
276
|
+
}, [a("circle", {
|
|
277
|
+
cx: "10",
|
|
278
|
+
cy: "10",
|
|
279
|
+
r: "8",
|
|
280
|
+
fill: "none",
|
|
281
|
+
stroke: "currentColor",
|
|
282
|
+
"stroke-width": "1.5"
|
|
283
|
+
}), a("path", {
|
|
284
|
+
d: "M10 5v5l3 2",
|
|
285
|
+
fill: "none",
|
|
286
|
+
stroke: "currentColor",
|
|
287
|
+
"stroke-width": "1.5",
|
|
288
|
+
"stroke-linecap": "round"
|
|
289
|
+
})], -1)
|
|
290
|
+
]), K.value ? (u(), i("div", ce, [(u(!0), i(t, null, f(V.value, (e) => (u(), i("button", {
|
|
291
|
+
key: `start-${e.hours}-${e.minutes}`,
|
|
292
|
+
type: "button",
|
|
293
|
+
class: l(["r-date-range-time-dropdown-item", { "r-is-selected": Ae(e) }]),
|
|
294
|
+
onMousedown: _((t) => Oe(e), ["prevent"])
|
|
295
|
+
}, p(e.label), 43, le))), 128))])) : r("", !0)], 512)) : r("", !0)])]),
|
|
296
|
+
y.showTimePicker ? (u(), i("span", ue, "-")) : r("", !0),
|
|
297
|
+
a("div", de, [s[23] ||= a("label", { class: "r-date-range-input-label" }, "End date", -1), a("div", fe, [a("div", pe, [
|
|
298
|
+
g(a("input", {
|
|
299
|
+
"onUpdate:modelValue": s[7] ||= (e) => E.value = e,
|
|
300
|
+
type: "text",
|
|
301
|
+
class: "r-date-range-segment r-date-range-segment-month",
|
|
302
|
+
placeholder: "MM",
|
|
303
|
+
maxlength: "2",
|
|
304
|
+
onInput: xe,
|
|
305
|
+
onBlur: U,
|
|
306
|
+
onKeydown: $
|
|
307
|
+
}, null, 544), [[m, E.value]]),
|
|
308
|
+
s[19] ||= a("span", { class: "r-date-range-segment-separator" }, "/", -1),
|
|
309
|
+
g(a("input", {
|
|
310
|
+
ref_key: "endDayRef",
|
|
311
|
+
ref: L,
|
|
312
|
+
"onUpdate:modelValue": s[8] ||= (e) => D.value = e,
|
|
313
|
+
type: "text",
|
|
314
|
+
class: "r-date-range-segment r-date-range-segment-day",
|
|
315
|
+
placeholder: "DD",
|
|
316
|
+
maxlength: "2",
|
|
317
|
+
onInput: Se,
|
|
318
|
+
onBlur: U,
|
|
319
|
+
onKeydown: $
|
|
320
|
+
}, null, 544), [[m, D.value]]),
|
|
321
|
+
s[20] ||= a("span", { class: "r-date-range-segment-separator" }, "/", -1),
|
|
322
|
+
g(a("input", {
|
|
323
|
+
ref_key: "endYearRef",
|
|
324
|
+
ref: R,
|
|
325
|
+
"onUpdate:modelValue": s[9] ||= (e) => O.value = e,
|
|
326
|
+
type: "text",
|
|
327
|
+
class: "r-date-range-segment r-date-range-segment-year",
|
|
328
|
+
placeholder: "YYYY",
|
|
329
|
+
maxlength: "4",
|
|
330
|
+
onBlur: U,
|
|
331
|
+
onKeydown: $
|
|
332
|
+
}, null, 544), [[m, O.value]]),
|
|
333
|
+
o(e, {
|
|
334
|
+
icon: "calendar",
|
|
335
|
+
class: "r-date-range-input-icon r-icon-20"
|
|
336
|
+
})
|
|
337
|
+
]), y.showTimePicker ? (u(), i("div", {
|
|
338
|
+
key: 0,
|
|
339
|
+
ref_key: "endDropdownRef",
|
|
340
|
+
ref: Y,
|
|
341
|
+
class: "r-date-range-time-dropdown"
|
|
342
|
+
}, [a("div", me, [
|
|
343
|
+
g(a("input", {
|
|
344
|
+
"onUpdate:modelValue": s[10] ||= (e) => M.value = e,
|
|
345
|
+
type: "text",
|
|
346
|
+
class: "r-date-range-segment r-date-range-segment-hour",
|
|
347
|
+
placeholder: y.is24hr ? "HH" : "hh",
|
|
348
|
+
maxlength: "2",
|
|
349
|
+
onInput: we,
|
|
350
|
+
onFocus: Z,
|
|
351
|
+
onBlur: s[11] ||= (e) => {
|
|
352
|
+
G(), De();
|
|
353
|
+
},
|
|
354
|
+
onKeydown: $
|
|
355
|
+
}, null, 40, he), [[m, M.value]]),
|
|
356
|
+
s[21] ||= a("span", { class: "r-date-range-segment-separator" }, ":", -1),
|
|
357
|
+
g(a("input", {
|
|
358
|
+
ref_key: "endMinuteRef",
|
|
359
|
+
ref: B,
|
|
360
|
+
"onUpdate:modelValue": s[12] ||= (e) => N.value = e,
|
|
361
|
+
type: "text",
|
|
362
|
+
class: "r-date-range-segment r-date-range-segment-minute",
|
|
363
|
+
placeholder: "mm",
|
|
364
|
+
maxlength: "2",
|
|
365
|
+
onFocus: Z,
|
|
366
|
+
onBlur: s[13] ||= (e) => {
|
|
367
|
+
G(), De();
|
|
368
|
+
},
|
|
369
|
+
onKeydown: $
|
|
370
|
+
}, null, 544), [[m, N.value]]),
|
|
371
|
+
y.is24hr ? r("", !0) : (u(), i("button", {
|
|
372
|
+
key: 0,
|
|
373
|
+
type: "button",
|
|
374
|
+
class: "r-date-range-period-toggle",
|
|
375
|
+
onClick: Ee
|
|
376
|
+
}, p(P.value), 1)),
|
|
377
|
+
s[22] ||= a("svg", {
|
|
378
|
+
class: "r-date-range-time-clock-icon r-icon-20",
|
|
379
|
+
viewBox: "0 0 20 20",
|
|
380
|
+
fill: "currentColor"
|
|
381
|
+
}, [a("circle", {
|
|
382
|
+
cx: "10",
|
|
383
|
+
cy: "10",
|
|
384
|
+
r: "8",
|
|
385
|
+
fill: "none",
|
|
386
|
+
stroke: "currentColor",
|
|
387
|
+
"stroke-width": "1.5"
|
|
388
|
+
}), a("path", {
|
|
389
|
+
d: "M10 5v5l3 2",
|
|
390
|
+
fill: "none",
|
|
391
|
+
stroke: "currentColor",
|
|
392
|
+
"stroke-width": "1.5",
|
|
393
|
+
"stroke-linecap": "round"
|
|
394
|
+
})], -1)
|
|
395
|
+
]), q.value ? (u(), i("div", ge, [(u(!0), i(t, null, f(V.value, (e) => (u(), i("button", {
|
|
396
|
+
key: `end-${e.hours}-${e.minutes}`,
|
|
397
|
+
type: "button",
|
|
398
|
+
class: l(["r-date-range-time-dropdown-item", { "r-is-selected": je(e) }]),
|
|
399
|
+
onMousedown: _((t) => ke(e), ["prevent"])
|
|
400
|
+
}, p(e.label), 43, _e))), 128))])) : r("", !0)], 512)) : r("", !0)])])
|
|
401
|
+
]));
|
|
402
|
+
}
|
|
403
|
+
});
|
|
404
|
+
//#endregion
|
|
405
|
+
export { v as default };
|