@onereach/ui-components 19.1.0-beta.4993.0 → 19.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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-470e9dd9.js → OrDataGridV3-0e1b9ec4.js} +4 -8
- package/dist/bundled/components/OrDateRangePickerV3/OrDateRangePicker.js +1 -1
- package/dist/bundled/components/OrDateRangePickerV3/OrDateRangePicker.vue.d.ts +19 -1
- package/dist/bundled/components/OrDateRangePickerV3/index.js +1 -1
- package/dist/bundled/components/OrDateRangePickerV3/styles.js +1 -1
- package/dist/bundled/components/{OrDateRangePickerV3-17dba772.js → OrDateRangePickerV3-edd29986.js} +14 -4
- package/dist/bundled/components/OrTimeRangePickerV3/OrTimeRangePicker.js +1 -1
- package/dist/bundled/components/OrTimeRangePickerV3/OrTimeRangePicker.vue.d.ts +37 -1
- package/dist/bundled/components/OrTimeRangePickerV3/index.js +1 -1
- package/dist/bundled/components/OrTimeRangePickerV3/styles.js +1 -1
- package/dist/bundled/components/{OrTimeRangePickerV3-e2afdbc2.js → OrTimeRangePickerV3-94c0b78a.js} +22 -2
- package/dist/bundled/components/index.js +3 -3
- package/dist/bundled/index.js +3 -3
- 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 +6 -6
- package/dist/esm/components/or-data-grid-v3/partials/or-data-grid-table-content-cell/OrDataGridTableContentCell.vue.d.ts +3 -3
- package/dist/esm/components/or-date-range-picker-v3/OrDateRangePicker.vue.d.ts +19 -1
- package/dist/esm/components/or-date-range-picker-v3/index.js +14 -4
- package/dist/esm/components/or-time-range-picker-v3/OrTimeRangePicker.vue.d.ts +37 -1
- package/dist/esm/components/or-time-range-picker-v3/index.js +22 -2
- package/dist/esm/{index-d3978799.js → index-f8564453.js} +9 -10
- package/dist/esm/index.js +1 -1
- package/package.json +4 -3
- package/src/components/or-data-grid-v3/partials/or-data-grid-table-content-cell/OrDataGridTableContentCell.vue +4 -9
- package/src/components/or-date-range-picker-v3/OrDateRangePicker.vue +13 -1
- package/src/components/or-time-range-picker-v3/OrTimeRangePicker.vue +25 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
export { s as default } from '../OrDataGridV3-
|
|
1
|
+
export { s as default } from '../OrDataGridV3-0e1b9ec4.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { D as DataGridVariant, s as OrDataGridV3 } from '../OrDataGridV3-
|
|
1
|
+
export { D as DataGridVariant, s as OrDataGridV3 } from '../OrDataGridV3-0e1b9ec4.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { a as DataGrid } from '../OrDataGridV3-
|
|
1
|
+
export { a as DataGrid } from '../OrDataGridV3-0e1b9ec4.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, ref, computed, openBlock, createElementBlock, normalizeClass, renderSlot, createCommentVNode, resolveComponent, normalizeStyle, Fragment, createBlock, watch, createElementVNode, createSlots, withCtx, createVNode, renderList, createTextVNode, toDisplayString } from 'vue';
|
|
1
|
+
import { defineComponent, ref, computed, openBlock, createElementBlock, normalizeClass, renderSlot, createCommentVNode, toRef, 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
3
|
import { s as script$g } from './OrDatePickerV3-88930e34.js';
|
|
4
4
|
import { s as script$h } from './OrDateTimePickerV3-cc9fbb4f.js';
|
|
@@ -8,6 +8,7 @@ import { s as script$k } from './OrSelectV3-54d1c522.js';
|
|
|
8
8
|
import { s as script$l } from './OrSwitchV3-89b34d58.js';
|
|
9
9
|
import { s as script$m } from './OrTagInputV3-cb94103b.js';
|
|
10
10
|
import { s as script$n } from './OrTimePickerV3-ca7f3fca.js';
|
|
11
|
+
import { useProxyModelValue } from '../hooks/useProxyModelValue.js';
|
|
11
12
|
import { e as useElementSize } from './OrAutocompleteV3-693d8511.js';
|
|
12
13
|
import { s as script$o } from './OrIconV3-9807ee48.js';
|
|
13
14
|
import { s as script$p } from './OrPaginationV3-df07fe99.js';
|
|
@@ -155,7 +156,7 @@ var script$c = defineComponent({
|
|
|
155
156
|
default: false
|
|
156
157
|
}
|
|
157
158
|
},
|
|
158
|
-
emits: ['update:
|
|
159
|
+
emits: ['update:modelValue'],
|
|
159
160
|
expose: ['root'],
|
|
160
161
|
setup(props, context) {
|
|
161
162
|
// Refs & Styles
|
|
@@ -193,12 +194,7 @@ var script$c = defineComponent({
|
|
|
193
194
|
};
|
|
194
195
|
});
|
|
195
196
|
// State
|
|
196
|
-
const model =
|
|
197
|
-
get: () => props.modelValue,
|
|
198
|
-
set: value => {
|
|
199
|
-
context.emit('update:model-value', value);
|
|
200
|
-
}
|
|
201
|
-
});
|
|
197
|
+
const model = useProxyModelValue(toRef(props, 'modelValue'), context.emit);
|
|
202
198
|
const control = computed(() => {
|
|
203
199
|
var _a;
|
|
204
200
|
return (_a = props.column) === null || _a === void 0 ? void 0 : _a.control;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { s as default } from '../OrDateRangePickerV3-
|
|
1
|
+
export { s as default } from '../OrDateRangePickerV3-edd29986.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
-
import { FormatFunction } from '../../types';
|
|
2
|
+
import { FilterFunction, FormatFunction } from '../../types';
|
|
3
3
|
import { DateTimePickerModelValue } from '../or-date-time-picker-v3';
|
|
4
4
|
import { DateRangePickerModelValue } from './types';
|
|
5
5
|
import { ReferenceElement } from '@floating-ui/dom';
|
|
@@ -52,6 +52,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
52
52
|
type: BooleanConstructor;
|
|
53
53
|
default: boolean;
|
|
54
54
|
};
|
|
55
|
+
startDateFilter: {
|
|
56
|
+
type: PropType<FilterFunction<Date>>;
|
|
57
|
+
default: undefined;
|
|
58
|
+
};
|
|
59
|
+
endDateFilter: {
|
|
60
|
+
type: PropType<FilterFunction<Date>>;
|
|
61
|
+
default: undefined;
|
|
62
|
+
};
|
|
55
63
|
}, {
|
|
56
64
|
root: import("vue").Ref<HTMLElement | undefined>;
|
|
57
65
|
rootStyles: import("vue").ComputedRef<string[]>;
|
|
@@ -562,6 +570,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
562
570
|
type: BooleanConstructor;
|
|
563
571
|
default: boolean;
|
|
564
572
|
};
|
|
573
|
+
startDateFilter: {
|
|
574
|
+
type: PropType<FilterFunction<Date>>;
|
|
575
|
+
default: undefined;
|
|
576
|
+
};
|
|
577
|
+
endDateFilter: {
|
|
578
|
+
type: PropType<FilterFunction<Date>>;
|
|
579
|
+
default: undefined;
|
|
580
|
+
};
|
|
565
581
|
}>> & {
|
|
566
582
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
567
583
|
onInput?: ((...args: any[]) => any) | undefined;
|
|
@@ -582,5 +598,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
582
598
|
required: boolean;
|
|
583
599
|
readonly: boolean;
|
|
584
600
|
disabled: boolean;
|
|
601
|
+
startDateFilter: FilterFunction<Date>;
|
|
602
|
+
endDateFilter: FilterFunction<Date>;
|
|
585
603
|
}, {}>;
|
|
586
604
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { s as OrDateRangePickerV3 } from '../OrDateRangePickerV3-
|
|
1
|
+
export { s as OrDateRangePickerV3 } from '../OrDateRangePickerV3-edd29986.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { D as DateRangePicker, a as DateRangePickerPopover } from '../OrDateRangePickerV3-
|
|
1
|
+
export { D as DateRangePicker, a as DateRangePickerPopover } from '../OrDateRangePickerV3-edd29986.js';
|
package/dist/bundled/components/{OrDateRangePickerV3-17dba772.js → OrDateRangePickerV3-edd29986.js}
RENAMED
|
@@ -96,6 +96,14 @@ var script = defineComponent({
|
|
|
96
96
|
disabled: {
|
|
97
97
|
type: Boolean,
|
|
98
98
|
default: false
|
|
99
|
+
},
|
|
100
|
+
startDateFilter: {
|
|
101
|
+
type: Function,
|
|
102
|
+
default: undefined
|
|
103
|
+
},
|
|
104
|
+
endDateFilter: {
|
|
105
|
+
type: Function,
|
|
106
|
+
default: undefined
|
|
99
107
|
}
|
|
100
108
|
},
|
|
101
109
|
emits: ['update:modelValue', 'input', 'keydown', 'keyup', 'focus', 'blur'],
|
|
@@ -357,8 +365,9 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
357
365
|
format: _ctx.resolvedFormat,
|
|
358
366
|
locale: _ctx.resolvedLocale,
|
|
359
367
|
"range-start": _ctx.draftFrom || _ctx.initialValueFrom,
|
|
360
|
-
"range-end": _ctx.draftTo || _ctx.initialValueTo
|
|
361
|
-
|
|
368
|
+
"range-end": _ctx.draftTo || _ctx.initialValueTo,
|
|
369
|
+
"date-filter": _ctx.startDateFilter
|
|
370
|
+
}, null, 8 /* PROPS */, ["modelValue", "initial-value", "format", "locale", "range-start", "range-end", "date-filter"])])) : createCommentVNode("v-if", true), _ctx.isDesktop || _ctx.isMobile && _ctx.activeControl === 'to' ? (openBlock(), createElementBlock("div", _hoisted_3, [createVNode(_component_OrDateTimePickerMonthSelect, {
|
|
362
371
|
modelValue: _ctx.initialValueTo,
|
|
363
372
|
"onUpdate:modelValue": _cache[7] || (_cache[7] = $event => _ctx.initialValueTo = $event),
|
|
364
373
|
locale: _ctx.resolvedLocale
|
|
@@ -369,8 +378,9 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
369
378
|
format: _ctx.resolvedFormat,
|
|
370
379
|
locale: _ctx.resolvedLocale,
|
|
371
380
|
"range-start": _ctx.draftFrom || _ctx.initialValueFrom,
|
|
372
|
-
"range-end": _ctx.draftTo || _ctx.initialValueTo
|
|
373
|
-
|
|
381
|
+
"range-end": _ctx.draftTo || _ctx.initialValueTo,
|
|
382
|
+
"date-filter": _ctx.endDateFilter
|
|
383
|
+
}, null, 8 /* PROPS */, ["modelValue", "initial-value", "format", "locale", "range-start", "range-end", "date-filter"])])) : createCommentVNode("v-if", true)]), createVNode(_component_OrDateTimePickerPopoverFooter, {
|
|
374
384
|
disabled: _ctx.invalid,
|
|
375
385
|
onApply: _cache[10] || (_cache[10] = $event => {
|
|
376
386
|
_ctx.apply();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { s as default } from '../OrTimeRangePickerV3-
|
|
1
|
+
export { s as default } from '../OrTimeRangePickerV3-94c0b78a.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReferenceElement } from '@floating-ui/dom';
|
|
2
2
|
import { PropType } from 'vue';
|
|
3
|
-
import { FormatFunction } from '../../types';
|
|
3
|
+
import { FilterFunction, FormatFunction } from '../../types';
|
|
4
4
|
import { DateTimePickerModelValue } from '../or-date-time-picker-v3';
|
|
5
5
|
import { TimeRangePickerModelValue } from './types';
|
|
6
6
|
declare const _default: import("vue").DefineComponent<{
|
|
@@ -60,6 +60,22 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
60
60
|
type: BooleanConstructor;
|
|
61
61
|
default: boolean;
|
|
62
62
|
};
|
|
63
|
+
startTimeHoursFilter: {
|
|
64
|
+
type: PropType<FilterFunction<Date>>;
|
|
65
|
+
default: undefined;
|
|
66
|
+
};
|
|
67
|
+
startTimeMinutesFilter: {
|
|
68
|
+
type: PropType<FilterFunction<Date>>;
|
|
69
|
+
default: undefined;
|
|
70
|
+
};
|
|
71
|
+
endTimeHoursFilter: {
|
|
72
|
+
type: PropType<FilterFunction<Date>>;
|
|
73
|
+
default: undefined;
|
|
74
|
+
};
|
|
75
|
+
endTimeMinutesFilter: {
|
|
76
|
+
type: PropType<FilterFunction<Date>>;
|
|
77
|
+
default: undefined;
|
|
78
|
+
};
|
|
63
79
|
}, {
|
|
64
80
|
root: import("vue").Ref<HTMLElement | undefined>;
|
|
65
81
|
rootStyles: import("vue").ComputedRef<string[]>;
|
|
@@ -514,6 +530,22 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
514
530
|
type: BooleanConstructor;
|
|
515
531
|
default: boolean;
|
|
516
532
|
};
|
|
533
|
+
startTimeHoursFilter: {
|
|
534
|
+
type: PropType<FilterFunction<Date>>;
|
|
535
|
+
default: undefined;
|
|
536
|
+
};
|
|
537
|
+
startTimeMinutesFilter: {
|
|
538
|
+
type: PropType<FilterFunction<Date>>;
|
|
539
|
+
default: undefined;
|
|
540
|
+
};
|
|
541
|
+
endTimeHoursFilter: {
|
|
542
|
+
type: PropType<FilterFunction<Date>>;
|
|
543
|
+
default: undefined;
|
|
544
|
+
};
|
|
545
|
+
endTimeMinutesFilter: {
|
|
546
|
+
type: PropType<FilterFunction<Date>>;
|
|
547
|
+
default: undefined;
|
|
548
|
+
};
|
|
517
549
|
}>> & {
|
|
518
550
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
519
551
|
onInput?: ((...args: any[]) => any) | undefined;
|
|
@@ -536,5 +568,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
536
568
|
required: boolean;
|
|
537
569
|
readonly: boolean;
|
|
538
570
|
disabled: boolean;
|
|
571
|
+
startTimeHoursFilter: FilterFunction<Date>;
|
|
572
|
+
startTimeMinutesFilter: FilterFunction<Date>;
|
|
573
|
+
endTimeHoursFilter: FilterFunction<Date>;
|
|
574
|
+
endTimeMinutesFilter: FilterFunction<Date>;
|
|
539
575
|
}, {}>;
|
|
540
576
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { s as OrTimeRangePickerV3 } from '../OrTimeRangePickerV3-
|
|
1
|
+
export { s as OrTimeRangePickerV3 } from '../OrTimeRangePickerV3-94c0b78a.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { T as TimeRangePicker, a as TimeRangePickerPopover } from '../OrTimeRangePickerV3-
|
|
1
|
+
export { T as TimeRangePicker, a as TimeRangePickerPopover } from '../OrTimeRangePickerV3-94c0b78a.js';
|
package/dist/bundled/components/{OrTimeRangePickerV3-e2afdbc2.js → OrTimeRangePickerV3-94c0b78a.js}
RENAMED
|
@@ -101,6 +101,22 @@ var script = defineComponent({
|
|
|
101
101
|
disabled: {
|
|
102
102
|
type: Boolean,
|
|
103
103
|
default: false
|
|
104
|
+
},
|
|
105
|
+
startTimeHoursFilter: {
|
|
106
|
+
type: Function,
|
|
107
|
+
default: undefined
|
|
108
|
+
},
|
|
109
|
+
startTimeMinutesFilter: {
|
|
110
|
+
type: Function,
|
|
111
|
+
default: undefined
|
|
112
|
+
},
|
|
113
|
+
endTimeHoursFilter: {
|
|
114
|
+
type: Function,
|
|
115
|
+
default: undefined
|
|
116
|
+
},
|
|
117
|
+
endTimeMinutesFilter: {
|
|
118
|
+
type: Function,
|
|
119
|
+
default: undefined
|
|
104
120
|
}
|
|
105
121
|
},
|
|
106
122
|
emits: ['update:modelValue', 'input', 'keydown', 'keyup', 'focus', 'blur'],
|
|
@@ -333,8 +349,10 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
333
349
|
locale: _ctx.resolvedLocale,
|
|
334
350
|
"hour-step": _ctx.hourStep,
|
|
335
351
|
"minute-step": _ctx.minuteStep,
|
|
352
|
+
"hours-filter": _ctx.startTimeHoursFilter,
|
|
353
|
+
"minutes-filter": _ctx.startTimeMinutesFilter,
|
|
336
354
|
"is-active": _ctx.popover && _ctx.popover.state === 'open'
|
|
337
|
-
}, null, 8 /* PROPS */, ["modelValue", "initial-value", "format", "locale", "hour-step", "minute-step", "is-active"])) : createCommentVNode("v-if", true), _ctx.isDesktop || _ctx.isMobile && _ctx.activeControl === 'to' ? (openBlock(), createBlock(_component_OrDateTimePickerTimeSelect, {
|
|
355
|
+
}, null, 8 /* PROPS */, ["modelValue", "initial-value", "format", "locale", "hour-step", "minute-step", "hours-filter", "minutes-filter", "is-active"])) : createCommentVNode("v-if", true), _ctx.isDesktop || _ctx.isMobile && _ctx.activeControl === 'to' ? (openBlock(), createBlock(_component_OrDateTimePickerTimeSelect, {
|
|
338
356
|
key: 1,
|
|
339
357
|
modelValue: _ctx.draftTo,
|
|
340
358
|
"onUpdate:modelValue": _cache[5] || (_cache[5] = $event => _ctx.draftTo = $event),
|
|
@@ -344,8 +362,10 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
344
362
|
locale: _ctx.resolvedLocale,
|
|
345
363
|
"hour-step": _ctx.hourStep,
|
|
346
364
|
"minute-step": _ctx.minuteStep,
|
|
365
|
+
"hours-filter": _ctx.endTimeHoursFilter,
|
|
366
|
+
"minutes-filter": _ctx.endTimeMinutesFilter,
|
|
347
367
|
"is-active": _ctx.popover && _ctx.popover.state === 'open'
|
|
348
|
-
}, null, 8 /* PROPS */, ["modelValue", "initial-value", "format", "locale", "hour-step", "minute-step", "is-active"])) : createCommentVNode("v-if", true)]), createVNode(_component_OrDateTimePickerPopoverFooter, {
|
|
368
|
+
}, null, 8 /* PROPS */, ["modelValue", "initial-value", "format", "locale", "hour-step", "minute-step", "hours-filter", "minutes-filter", "is-active"])) : createCommentVNode("v-if", true)]), createVNode(_component_OrDateTimePickerPopoverFooter, {
|
|
349
369
|
disabled: _ctx.invalid,
|
|
350
370
|
onApply: _cache[6] || (_cache[6] = $event => {
|
|
351
371
|
_ctx.apply();
|
|
@@ -24,10 +24,10 @@ export { s as OrCombinedInputV3 } from './OrCombinedInputV3-0a50eec6.js';
|
|
|
24
24
|
export { s as OrConfirm } from './OrConfirm-ca91ff42.js';
|
|
25
25
|
export { C as ConfirmType, s as OrConfirmV3 } from './OrConfirmV3-0d637165.js';
|
|
26
26
|
export { default as OrContextMenuV3 } from './OrContextMenuV3/OrContextMenu.js';
|
|
27
|
-
export { D as DataGridVariant, s as OrDataGridV3 } from './OrDataGridV3-
|
|
27
|
+
export { D as DataGridVariant, s as OrDataGridV3 } from './OrDataGridV3-0e1b9ec4.js';
|
|
28
28
|
export { s as OrDateFormatV3 } from './OrDateFormatV3-c7e34acd.js';
|
|
29
29
|
export { s as OrDatePickerV3 } from './OrDatePickerV3-88930e34.js';
|
|
30
|
-
export { s as OrDateRangePickerV3 } from './OrDateRangePickerV3-
|
|
30
|
+
export { s as OrDateRangePickerV3 } from './OrDateRangePickerV3-edd29986.js';
|
|
31
31
|
export { s as OrDateTimeFormatV3 } from './OrDateTimeFormatV3-53a0f41c.js';
|
|
32
32
|
export { D as DEFAULT_TEXT, s as OrDateTimePicker, n as OrDateTimePickerItemTypes, O as OrDateTimePickerTypes } from './OrDateTimePicker-d1f935ea.js';
|
|
33
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-cc9fbb4f.js';
|
|
@@ -122,7 +122,7 @@ export { s as OrTextareaV3 } from './OrTextareaV3-f084a844.js';
|
|
|
122
122
|
export { OrTextbox, TextboxTypes } from './OrTextbox/index.js';
|
|
123
123
|
export { s as OrTimeFormatV3 } from './OrTimeFormatV3-1fa3012a.js';
|
|
124
124
|
export { s as OrTimePickerV3 } from './OrTimePickerV3-ca7f3fca.js';
|
|
125
|
-
export { s as OrTimeRangePickerV3 } from './OrTimeRangePickerV3-
|
|
125
|
+
export { s as OrTimeRangePickerV3 } from './OrTimeRangePickerV3-94c0b78a.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-4c68fa32.js';
|
|
127
127
|
export { a as OrToastContainerV3, s as OrToastV3, p as PropsV3, t as TypesV3, b as useQueueV3, u as useToastV3 } from './OrToastV3-6e469c26.js';
|
|
128
128
|
export { OrTooltip, OrTooltipContent } from './OrTooltip/index.js';
|
package/dist/bundled/index.js
CHANGED
|
@@ -16,9 +16,9 @@ export { s as OrCombinedInputV3 } from './components/OrCombinedInputV3-0a50eec6.
|
|
|
16
16
|
export { s as OrConfirm } from './components/OrConfirm-ca91ff42.js';
|
|
17
17
|
export { C as ConfirmType, s as OrConfirmV3 } from './components/OrConfirmV3-0d637165.js';
|
|
18
18
|
export { default as OrContextMenuV3 } from './components/OrContextMenuV3/OrContextMenu.js';
|
|
19
|
-
export { D as DataGridVariant, s as OrDataGridV3 } from './components/OrDataGridV3-
|
|
19
|
+
export { D as DataGridVariant, s as OrDataGridV3 } from './components/OrDataGridV3-0e1b9ec4.js';
|
|
20
20
|
export { s as OrDateFormatV3 } from './components/OrDateFormatV3-c7e34acd.js';
|
|
21
|
-
export { s as OrDateRangePickerV3 } from './components/OrDateRangePickerV3-
|
|
21
|
+
export { s as OrDateRangePickerV3 } from './components/OrDateRangePickerV3-edd29986.js';
|
|
22
22
|
export { s as OrDateTimeFormatV3 } from './components/OrDateTimeFormatV3-53a0f41c.js';
|
|
23
23
|
export { D as DEFAULT_TEXT, s as OrDateTimePicker, n as OrDateTimePickerItemTypes, O as OrDateTimePickerTypes } from './components/OrDateTimePicker-d1f935ea.js';
|
|
24
24
|
export { D as DrawerPlacement, s as OrDrawerV3 } from './components/OrDrawerV3-66e3534f.js';
|
|
@@ -65,7 +65,7 @@ export { default as OrTextarea } from './components/OrTextarea/OrTextarea.js';
|
|
|
65
65
|
export { s as OrTextareaV3 } from './components/OrTextareaV3-f084a844.js';
|
|
66
66
|
export { OrTextbox, TextboxTypes } from './components/OrTextbox/index.js';
|
|
67
67
|
export { s as OrTimeFormatV3 } from './components/OrTimeFormatV3-1fa3012a.js';
|
|
68
|
-
export { s as OrTimeRangePickerV3 } from './components/OrTimeRangePickerV3-
|
|
68
|
+
export { s as OrTimeRangePickerV3 } from './components/OrTimeRangePickerV3-94c0b78a.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-4c68fa32.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-6e469c26.js';
|
|
71
71
|
export { OrTreeV3, TreeNodeDropPosition } from './components/OrTreeV3/index.js';
|
|
@@ -33,7 +33,7 @@ export { OrConfirm } from './or-confirm/index.js';
|
|
|
33
33
|
export { ConfirmType, OrConfirmV3 } from './or-confirm-v3/index.js';
|
|
34
34
|
export { OrContextMenuV3 } from './or-context-menu-v3/index.js';
|
|
35
35
|
export { OrDataGridV3 } from './or-data-grid-v3/index.js';
|
|
36
|
-
export { D as DataGridVariant } from '../index-
|
|
36
|
+
export { D as DataGridVariant } from '../index-f8564453.js';
|
|
37
37
|
export { OrDateFormatV3 } from './or-date-format-v3/index.js';
|
|
38
38
|
export { OrDatePickerV3 } from './or-date-picker-v3/index.js';
|
|
39
39
|
export { OrDateRangePickerV3 } from './or-date-range-picker-v3/index.js';
|
|
@@ -5,7 +5,7 @@ import { OrSearchV3 as script$h } from '../or-search-v3/index.js';
|
|
|
5
5
|
import '../or-skeleton-v3/or-skeleton-circle-v3/index.js';
|
|
6
6
|
import '../or-skeleton-v3/or-skeleton-rect-v3/index.js';
|
|
7
7
|
import { OrSkeletonTextV3 as script$i } from '../or-skeleton-v3/or-skeleton-text-v3/index.js';
|
|
8
|
-
import { s as script$2, a as script$3, b as script$4, c as script$5, d as script$6, e as script$7, f as script$8, g as script$9, h as script$a, i as script$b, j as script$c, k as script$d, l as script$e, m as script$f, D as DataGridVariant } from '../../index-
|
|
8
|
+
import { s as script$2, a as script$3, b as script$4, c as script$5, d as script$6, e as script$7, f as script$8, g as script$9, h as script$a, i as script$b, j as script$c, k as script$d, l as script$e, m as script$f, D as DataGridVariant } from '../../index-f8564453.js';
|
|
9
9
|
import '../../useIdAttribute-1a4eafac.js';
|
|
10
10
|
import '../../types/index.js';
|
|
11
11
|
import '../../include-a6208502.js';
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
export { s as OrDataGridFooter, a as OrDataGridHeader, b as OrDataGridTable, c as OrDataGridTableContent, d as OrDataGridTableContentCell, e as OrDataGridTableContentRow, f as OrDataGridTableFooter, g as OrDataGridTableFooterCell, h as OrDataGridTableFooterRow, i as OrDataGridTableHeader, j as OrDataGridTableHeaderCell, k as OrDataGridTableHeaderRow, l as OrDataGridTablePlaceholder, m as OrDataGridToolbar } from '../../../index-
|
|
1
|
+
export { s as OrDataGridFooter, a as OrDataGridHeader, b as OrDataGridTable, c as OrDataGridTableContent, d as OrDataGridTableContentCell, e as OrDataGridTableContentRow, f as OrDataGridTableFooter, g as OrDataGridTableFooterCell, h as OrDataGridTableFooterRow, i as OrDataGridTableHeader, j as OrDataGridTableHeaderCell, k as OrDataGridTableHeaderRow, l as OrDataGridTablePlaceholder, m as OrDataGridToolbar } from '../../../index-f8564453.js';
|
|
2
2
|
import 'vue';
|
|
3
|
-
import '../../or-checkbox-v3/index.js';
|
|
4
|
-
import '../../../useIdAttribute-1a4eafac.js';
|
|
5
3
|
import '../../../types/index.js';
|
|
6
|
-
import '../../../include-a6208502.js';
|
|
7
4
|
import '../../../dom-11141778.js';
|
|
8
5
|
import 'lodash/get';
|
|
9
6
|
import 'lodash/isElement';
|
|
10
|
-
import '../../../isArray-135d4ff2.js';
|
|
11
|
-
import '../../../isUndefined-f78f2fdc.js';
|
|
12
7
|
import '@vueuse/core';
|
|
13
8
|
import '../../../useProxyModelValue-55ed539b.js';
|
|
14
9
|
import '@onereach/styles/screens.json';
|
|
15
10
|
import '@onereach/styles/tailwind.config.json';
|
|
11
|
+
import '../../or-checkbox-v3/index.js';
|
|
12
|
+
import '../../../useIdAttribute-1a4eafac.js';
|
|
13
|
+
import '../../../include-a6208502.js';
|
|
14
|
+
import '../../../isArray-135d4ff2.js';
|
|
15
|
+
import '../../../isUndefined-f78f2fdc.js';
|
|
16
16
|
import '../../or-label-v3/index.js';
|
|
17
17
|
import '../../or-date-picker-v3/index.js';
|
|
18
18
|
import '../../../directives/index.js';
|
|
@@ -21,12 +21,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
21
21
|
root: import("vue").Ref<HTMLElement | undefined>;
|
|
22
22
|
rootStyles: import("vue").ComputedRef<string[]>;
|
|
23
23
|
rootInlineStyles: import("vue").ComputedRef<Partial<CSSStyleDeclaration>>;
|
|
24
|
-
model: import("
|
|
24
|
+
model: import("../../../../hooks").UseProxyModelValueReturn<any>;
|
|
25
25
|
control: import("vue").ComputedRef<{
|
|
26
26
|
type: "number" | "text" | "rating" | "select" | "checkbox" | "switch" | "date" | "time" | "datetime" | "tags";
|
|
27
27
|
options?: import("../../../or-select-v3").SelectItem[] | undefined;
|
|
28
28
|
} | undefined>;
|
|
29
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:
|
|
29
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
30
30
|
modelValue: {
|
|
31
31
|
type: PropType<any>;
|
|
32
32
|
default: undefined;
|
|
@@ -44,7 +44,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
44
44
|
default: boolean;
|
|
45
45
|
};
|
|
46
46
|
}>> & {
|
|
47
|
-
"onUpdate:
|
|
47
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
48
48
|
}, {
|
|
49
49
|
modelValue: any;
|
|
50
50
|
column: DataGridColumn;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
-
import { FormatFunction } from '../../types';
|
|
2
|
+
import { FilterFunction, FormatFunction } from '../../types';
|
|
3
3
|
import { DateTimePickerModelValue } from '../or-date-time-picker-v3';
|
|
4
4
|
import { DateRangePickerModelValue } from './types';
|
|
5
5
|
import { ReferenceElement } from '@floating-ui/dom';
|
|
@@ -52,6 +52,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
52
52
|
type: BooleanConstructor;
|
|
53
53
|
default: boolean;
|
|
54
54
|
};
|
|
55
|
+
startDateFilter: {
|
|
56
|
+
type: PropType<FilterFunction<Date>>;
|
|
57
|
+
default: undefined;
|
|
58
|
+
};
|
|
59
|
+
endDateFilter: {
|
|
60
|
+
type: PropType<FilterFunction<Date>>;
|
|
61
|
+
default: undefined;
|
|
62
|
+
};
|
|
55
63
|
}, {
|
|
56
64
|
root: import("vue").Ref<HTMLElement | undefined>;
|
|
57
65
|
rootStyles: import("vue").ComputedRef<string[]>;
|
|
@@ -562,6 +570,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
562
570
|
type: BooleanConstructor;
|
|
563
571
|
default: boolean;
|
|
564
572
|
};
|
|
573
|
+
startDateFilter: {
|
|
574
|
+
type: PropType<FilterFunction<Date>>;
|
|
575
|
+
default: undefined;
|
|
576
|
+
};
|
|
577
|
+
endDateFilter: {
|
|
578
|
+
type: PropType<FilterFunction<Date>>;
|
|
579
|
+
default: undefined;
|
|
580
|
+
};
|
|
565
581
|
}>> & {
|
|
566
582
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
567
583
|
onInput?: ((...args: any[]) => any) | undefined;
|
|
@@ -582,5 +598,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
582
598
|
required: boolean;
|
|
583
599
|
readonly: boolean;
|
|
584
600
|
disabled: boolean;
|
|
601
|
+
startDateFilter: FilterFunction<Date>;
|
|
602
|
+
endDateFilter: FilterFunction<Date>;
|
|
585
603
|
}, {}>;
|
|
586
604
|
export default _default;
|
|
@@ -123,6 +123,14 @@ var script = defineComponent({
|
|
|
123
123
|
disabled: {
|
|
124
124
|
type: Boolean,
|
|
125
125
|
default: false
|
|
126
|
+
},
|
|
127
|
+
startDateFilter: {
|
|
128
|
+
type: Function,
|
|
129
|
+
default: undefined
|
|
130
|
+
},
|
|
131
|
+
endDateFilter: {
|
|
132
|
+
type: Function,
|
|
133
|
+
default: undefined
|
|
126
134
|
}
|
|
127
135
|
},
|
|
128
136
|
emits: ['update:modelValue', 'input', 'keydown', 'keyup', 'focus', 'blur'],
|
|
@@ -384,8 +392,9 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
384
392
|
format: _ctx.resolvedFormat,
|
|
385
393
|
locale: _ctx.resolvedLocale,
|
|
386
394
|
"range-start": _ctx.draftFrom || _ctx.initialValueFrom,
|
|
387
|
-
"range-end": _ctx.draftTo || _ctx.initialValueTo
|
|
388
|
-
|
|
395
|
+
"range-end": _ctx.draftTo || _ctx.initialValueTo,
|
|
396
|
+
"date-filter": _ctx.startDateFilter
|
|
397
|
+
}, null, 8 /* PROPS */, ["modelValue", "initial-value", "format", "locale", "range-start", "range-end", "date-filter"])])) : createCommentVNode("v-if", true), _ctx.isDesktop || _ctx.isMobile && _ctx.activeControl === 'to' ? (openBlock(), createElementBlock("div", _hoisted_3, [createVNode(_component_OrDateTimePickerMonthSelect, {
|
|
389
398
|
modelValue: _ctx.initialValueTo,
|
|
390
399
|
"onUpdate:modelValue": _cache[7] || (_cache[7] = $event => _ctx.initialValueTo = $event),
|
|
391
400
|
locale: _ctx.resolvedLocale
|
|
@@ -396,8 +405,9 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
396
405
|
format: _ctx.resolvedFormat,
|
|
397
406
|
locale: _ctx.resolvedLocale,
|
|
398
407
|
"range-start": _ctx.draftFrom || _ctx.initialValueFrom,
|
|
399
|
-
"range-end": _ctx.draftTo || _ctx.initialValueTo
|
|
400
|
-
|
|
408
|
+
"range-end": _ctx.draftTo || _ctx.initialValueTo,
|
|
409
|
+
"date-filter": _ctx.endDateFilter
|
|
410
|
+
}, null, 8 /* PROPS */, ["modelValue", "initial-value", "format", "locale", "range-start", "range-end", "date-filter"])])) : createCommentVNode("v-if", true)]), createVNode(_component_OrDateTimePickerPopoverFooter, {
|
|
401
411
|
disabled: _ctx.invalid,
|
|
402
412
|
onApply: _cache[10] || (_cache[10] = $event => {
|
|
403
413
|
_ctx.apply();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReferenceElement } from '@floating-ui/dom';
|
|
2
2
|
import { PropType } from 'vue';
|
|
3
|
-
import { FormatFunction } from '../../types';
|
|
3
|
+
import { FilterFunction, FormatFunction } from '../../types';
|
|
4
4
|
import { DateTimePickerModelValue } from '../or-date-time-picker-v3';
|
|
5
5
|
import { TimeRangePickerModelValue } from './types';
|
|
6
6
|
declare const _default: import("vue").DefineComponent<{
|
|
@@ -60,6 +60,22 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
60
60
|
type: BooleanConstructor;
|
|
61
61
|
default: boolean;
|
|
62
62
|
};
|
|
63
|
+
startTimeHoursFilter: {
|
|
64
|
+
type: PropType<FilterFunction<Date>>;
|
|
65
|
+
default: undefined;
|
|
66
|
+
};
|
|
67
|
+
startTimeMinutesFilter: {
|
|
68
|
+
type: PropType<FilterFunction<Date>>;
|
|
69
|
+
default: undefined;
|
|
70
|
+
};
|
|
71
|
+
endTimeHoursFilter: {
|
|
72
|
+
type: PropType<FilterFunction<Date>>;
|
|
73
|
+
default: undefined;
|
|
74
|
+
};
|
|
75
|
+
endTimeMinutesFilter: {
|
|
76
|
+
type: PropType<FilterFunction<Date>>;
|
|
77
|
+
default: undefined;
|
|
78
|
+
};
|
|
63
79
|
}, {
|
|
64
80
|
root: import("vue").Ref<HTMLElement | undefined>;
|
|
65
81
|
rootStyles: import("vue").ComputedRef<string[]>;
|
|
@@ -514,6 +530,22 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
514
530
|
type: BooleanConstructor;
|
|
515
531
|
default: boolean;
|
|
516
532
|
};
|
|
533
|
+
startTimeHoursFilter: {
|
|
534
|
+
type: PropType<FilterFunction<Date>>;
|
|
535
|
+
default: undefined;
|
|
536
|
+
};
|
|
537
|
+
startTimeMinutesFilter: {
|
|
538
|
+
type: PropType<FilterFunction<Date>>;
|
|
539
|
+
default: undefined;
|
|
540
|
+
};
|
|
541
|
+
endTimeHoursFilter: {
|
|
542
|
+
type: PropType<FilterFunction<Date>>;
|
|
543
|
+
default: undefined;
|
|
544
|
+
};
|
|
545
|
+
endTimeMinutesFilter: {
|
|
546
|
+
type: PropType<FilterFunction<Date>>;
|
|
547
|
+
default: undefined;
|
|
548
|
+
};
|
|
517
549
|
}>> & {
|
|
518
550
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
519
551
|
onInput?: ((...args: any[]) => any) | undefined;
|
|
@@ -536,5 +568,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
536
568
|
required: boolean;
|
|
537
569
|
readonly: boolean;
|
|
538
570
|
disabled: boolean;
|
|
571
|
+
startTimeHoursFilter: FilterFunction<Date>;
|
|
572
|
+
startTimeMinutesFilter: FilterFunction<Date>;
|
|
573
|
+
endTimeHoursFilter: FilterFunction<Date>;
|
|
574
|
+
endTimeMinutesFilter: FilterFunction<Date>;
|
|
539
575
|
}, {}>;
|
|
540
576
|
export default _default;
|
|
@@ -127,6 +127,22 @@ var script = defineComponent({
|
|
|
127
127
|
disabled: {
|
|
128
128
|
type: Boolean,
|
|
129
129
|
default: false
|
|
130
|
+
},
|
|
131
|
+
startTimeHoursFilter: {
|
|
132
|
+
type: Function,
|
|
133
|
+
default: undefined
|
|
134
|
+
},
|
|
135
|
+
startTimeMinutesFilter: {
|
|
136
|
+
type: Function,
|
|
137
|
+
default: undefined
|
|
138
|
+
},
|
|
139
|
+
endTimeHoursFilter: {
|
|
140
|
+
type: Function,
|
|
141
|
+
default: undefined
|
|
142
|
+
},
|
|
143
|
+
endTimeMinutesFilter: {
|
|
144
|
+
type: Function,
|
|
145
|
+
default: undefined
|
|
130
146
|
}
|
|
131
147
|
},
|
|
132
148
|
emits: ['update:modelValue', 'input', 'keydown', 'keyup', 'focus', 'blur'],
|
|
@@ -359,8 +375,10 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
359
375
|
locale: _ctx.resolvedLocale,
|
|
360
376
|
"hour-step": _ctx.hourStep,
|
|
361
377
|
"minute-step": _ctx.minuteStep,
|
|
378
|
+
"hours-filter": _ctx.startTimeHoursFilter,
|
|
379
|
+
"minutes-filter": _ctx.startTimeMinutesFilter,
|
|
362
380
|
"is-active": _ctx.popover && _ctx.popover.state === 'open'
|
|
363
|
-
}, null, 8 /* PROPS */, ["modelValue", "initial-value", "format", "locale", "hour-step", "minute-step", "is-active"])) : createCommentVNode("v-if", true), _ctx.isDesktop || _ctx.isMobile && _ctx.activeControl === 'to' ? (openBlock(), createBlock(_component_OrDateTimePickerTimeSelect, {
|
|
381
|
+
}, null, 8 /* PROPS */, ["modelValue", "initial-value", "format", "locale", "hour-step", "minute-step", "hours-filter", "minutes-filter", "is-active"])) : createCommentVNode("v-if", true), _ctx.isDesktop || _ctx.isMobile && _ctx.activeControl === 'to' ? (openBlock(), createBlock(_component_OrDateTimePickerTimeSelect, {
|
|
364
382
|
key: 1,
|
|
365
383
|
modelValue: _ctx.draftTo,
|
|
366
384
|
"onUpdate:modelValue": _cache[5] || (_cache[5] = $event => _ctx.draftTo = $event),
|
|
@@ -370,8 +388,10 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
370
388
|
locale: _ctx.resolvedLocale,
|
|
371
389
|
"hour-step": _ctx.hourStep,
|
|
372
390
|
"minute-step": _ctx.minuteStep,
|
|
391
|
+
"hours-filter": _ctx.endTimeHoursFilter,
|
|
392
|
+
"minutes-filter": _ctx.endTimeMinutesFilter,
|
|
373
393
|
"is-active": _ctx.popover && _ctx.popover.state === 'open'
|
|
374
|
-
}, null, 8 /* PROPS */, ["modelValue", "initial-value", "format", "locale", "hour-step", "minute-step", "is-active"])) : createCommentVNode("v-if", true)]), createVNode(_component_OrDateTimePickerPopoverFooter, {
|
|
394
|
+
}, null, 8 /* PROPS */, ["modelValue", "initial-value", "format", "locale", "hour-step", "minute-step", "hours-filter", "minutes-filter", "is-active"])) : createCommentVNode("v-if", true)]), createVNode(_component_OrDateTimePickerPopoverFooter, {
|
|
375
395
|
disabled: _ctx.invalid,
|
|
376
396
|
onApply: _cache[6] || (_cache[6] = $event => {
|
|
377
397
|
_ctx.apply();
|
|
@@ -1,16 +1,20 @@
|
|
|
1
|
-
import { defineComponent, ref, computed, openBlock, createElementBlock, normalizeClass, renderSlot, createCommentVNode, resolveComponent, normalizeStyle, Fragment, createBlock, watch, createElementVNode } from 'vue';
|
|
1
|
+
import { defineComponent, ref, computed, openBlock, createElementBlock, normalizeClass, renderSlot, createCommentVNode, toRef, resolveComponent, normalizeStyle, Fragment, createBlock, watch, createElementVNode } from 'vue';
|
|
2
|
+
import './types/index.js';
|
|
3
|
+
import './dom-11141778.js';
|
|
4
|
+
import { useElementSize } from '@vueuse/core';
|
|
5
|
+
import { u as useProxyModelValue } from './useProxyModelValue-55ed539b.js';
|
|
6
|
+
import '@onereach/styles/screens.json';
|
|
7
|
+
import '@onereach/styles/tailwind.config.json';
|
|
2
8
|
import { OrCheckboxV3 as script$e } from './components/or-checkbox-v3/index.js';
|
|
3
9
|
import { OrDatePickerV3 as script$f } from './components/or-date-picker-v3/index.js';
|
|
4
10
|
import { s as script$g } from './OrDateTimePicker-2bdd4140.js';
|
|
5
11
|
import './components/or-date-time-picker-v3/partials/index.js';
|
|
6
|
-
import './types/index.js';
|
|
7
12
|
import { OrInputV3 as script$h } from './components/or-input-v3/index.js';
|
|
8
13
|
import { OrRatingV3 as script$i } from './components/or-rating-v3/index.js';
|
|
9
14
|
import { OrSelectV3 as script$j } from './components/or-select-v3/index.js';
|
|
10
15
|
import { OrSwitchV3 as script$k } from './components/or-switch-v3/index.js';
|
|
11
16
|
import { OrTagInputV3 as script$l } from './components/or-tag-input-v3/index.js';
|
|
12
17
|
import { OrTimePickerV3 as script$m } from './components/or-time-picker-v3/index.js';
|
|
13
|
-
import { useElementSize } from '@vueuse/core';
|
|
14
18
|
import { OrIconV3 as script$n } from './components/or-icon-v3/index.js';
|
|
15
19
|
|
|
16
20
|
const DataGridFooter = [
|
|
@@ -154,7 +158,7 @@ var script$b = defineComponent({
|
|
|
154
158
|
default: false
|
|
155
159
|
}
|
|
156
160
|
},
|
|
157
|
-
emits: ['update:
|
|
161
|
+
emits: ['update:modelValue'],
|
|
158
162
|
expose: ['root'],
|
|
159
163
|
setup(props, context) {
|
|
160
164
|
// Refs & Styles
|
|
@@ -192,12 +196,7 @@ var script$b = defineComponent({
|
|
|
192
196
|
};
|
|
193
197
|
});
|
|
194
198
|
// State
|
|
195
|
-
const model =
|
|
196
|
-
get: () => props.modelValue,
|
|
197
|
-
set: value => {
|
|
198
|
-
context.emit('update:model-value', value);
|
|
199
|
-
}
|
|
200
|
-
});
|
|
199
|
+
const model = useProxyModelValue(toRef(props, 'modelValue'), context.emit);
|
|
201
200
|
const control = computed(() => {
|
|
202
201
|
var _a;
|
|
203
202
|
return (_a = props.column) === null || _a === void 0 ? void 0 : _a.control;
|
package/dist/esm/index.js
CHANGED
|
@@ -33,7 +33,7 @@ export { OrConfirm } from './components/or-confirm/index.js';
|
|
|
33
33
|
export { ConfirmType, OrConfirmV3 } from './components/or-confirm-v3/index.js';
|
|
34
34
|
export { OrContextMenuV3 } from './components/or-context-menu-v3/index.js';
|
|
35
35
|
export { OrDataGridV3 } from './components/or-data-grid-v3/index.js';
|
|
36
|
-
export { D as DataGridVariant } from './index-
|
|
36
|
+
export { D as DataGridVariant } from './index-f8564453.js';
|
|
37
37
|
export { OrDateFormatV3 } from './components/or-date-format-v3/index.js';
|
|
38
38
|
export { OrDatePickerV3 } from './components/or-date-picker-v3/index.js';
|
|
39
39
|
export { OrDateRangePickerV3 } from './components/or-date-range-picker-v3/index.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onereach/ui-components",
|
|
3
|
-
"version": "19.1.0
|
|
3
|
+
"version": "19.1.0",
|
|
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.
|
|
36
|
+
"@onereach/styles": "^19.1.0",
|
|
37
37
|
"@splidejs/splide": "4.0.6",
|
|
38
38
|
"@tiptap/core": "2.0.3",
|
|
39
39
|
"@tiptap/extension-blockquote": "2.0.3",
|
|
@@ -140,5 +140,6 @@
|
|
|
140
140
|
"default": "./dist/bundled/components/*/index.js"
|
|
141
141
|
},
|
|
142
142
|
"./package.json": "./package.json"
|
|
143
|
-
}
|
|
143
|
+
},
|
|
144
|
+
"gitHead": "797ab205ef3c69030df8327819184b2941f960c8"
|
|
144
145
|
}
|
|
@@ -93,7 +93,8 @@
|
|
|
93
93
|
</template>
|
|
94
94
|
|
|
95
95
|
<script lang="ts">
|
|
96
|
-
import { PropType, computed, defineComponent, ref } from 'vue';
|
|
96
|
+
import { PropType, computed, defineComponent, ref, toRef } from 'vue';
|
|
97
|
+
import { useProxyModelValue } from '../../../../hooks';
|
|
97
98
|
import { OrCheckboxV3 as OrCheckbox } from '../../../or-checkbox-v3';
|
|
98
99
|
import { OrDatePickerV3 as OrDatePicker } from '../../../or-date-picker-v3';
|
|
99
100
|
import { OrDateTimePickerV3 as OrDateTimePicker } from '../../../or-date-time-picker-v3';
|
|
@@ -149,7 +150,7 @@ export default defineComponent({
|
|
|
149
150
|
},
|
|
150
151
|
|
|
151
152
|
emits: [
|
|
152
|
-
'update:
|
|
153
|
+
'update:modelValue',
|
|
153
154
|
],
|
|
154
155
|
|
|
155
156
|
expose: [
|
|
@@ -199,13 +200,7 @@ export default defineComponent({
|
|
|
199
200
|
});
|
|
200
201
|
|
|
201
202
|
// State
|
|
202
|
-
const model =
|
|
203
|
-
get: () => props.modelValue,
|
|
204
|
-
|
|
205
|
-
set: (value) => {
|
|
206
|
-
context.emit('update:model-value', value);
|
|
207
|
-
},
|
|
208
|
-
});
|
|
203
|
+
const model = useProxyModelValue(toRef(props, 'modelValue'), context.emit);
|
|
209
204
|
|
|
210
205
|
const control = computed(() => {
|
|
211
206
|
return props.column?.control;
|
|
@@ -101,6 +101,7 @@
|
|
|
101
101
|
:locale="resolvedLocale"
|
|
102
102
|
:range-start="draftFrom || initialValueFrom"
|
|
103
103
|
:range-end="draftTo || initialValueTo"
|
|
104
|
+
:date-filter="startDateFilter"
|
|
104
105
|
@update:model-value="toggleControl()"
|
|
105
106
|
/>
|
|
106
107
|
</div>
|
|
@@ -120,6 +121,7 @@
|
|
|
120
121
|
:locale="resolvedLocale"
|
|
121
122
|
:range-start="draftFrom || initialValueFrom"
|
|
122
123
|
:range-end="draftTo || initialValueTo"
|
|
124
|
+
:date-filter="endDateFilter"
|
|
123
125
|
@update:model-value="toggleControl()"
|
|
124
126
|
/>
|
|
125
127
|
</div>
|
|
@@ -178,7 +180,7 @@
|
|
|
178
180
|
import { PropType, computed, defineComponent, ref, toRef, watch } from 'vue';
|
|
179
181
|
import { DropdownClose, DropdownOpen } from '../../directives';
|
|
180
182
|
import { useDateFormat, useLocale, useProxyModelValue, useResponsive } from '../../hooks';
|
|
181
|
-
import { DateFormat, FormatFunction } from '../../types';
|
|
183
|
+
import { DateFormat, FilterFunction, FormatFunction } from '../../types';
|
|
182
184
|
import { DateTimePickerModelValue, OrDateTimePickerDateControl, OrDateTimePickerDateSelect, OrDateTimePickerMobileControl, OrDateTimePickerMonthSelect, OrDateTimePickerPopoverFooter, OrDateTimePickerPopoverHeader, formatMobileDate, getCurrentDate, getNextMonthDate } from '../or-date-time-picker-v3';
|
|
183
185
|
import { OrErrorV3 as OrError } from '../or-error-v3';
|
|
184
186
|
import { OrHintV3 as OrHint } from '../or-hint-v3';
|
|
@@ -280,6 +282,16 @@ export default defineComponent({
|
|
|
280
282
|
type: Boolean,
|
|
281
283
|
default: false,
|
|
282
284
|
},
|
|
285
|
+
|
|
286
|
+
startDateFilter: {
|
|
287
|
+
type: Function as PropType<FilterFunction<Date>>,
|
|
288
|
+
default: undefined,
|
|
289
|
+
},
|
|
290
|
+
|
|
291
|
+
endDateFilter: {
|
|
292
|
+
type: Function as PropType<FilterFunction<Date>>,
|
|
293
|
+
default: undefined,
|
|
294
|
+
},
|
|
283
295
|
},
|
|
284
296
|
|
|
285
297
|
emits: [
|
|
@@ -98,6 +98,8 @@
|
|
|
98
98
|
:locale="resolvedLocale"
|
|
99
99
|
:hour-step="hourStep"
|
|
100
100
|
:minute-step="minuteStep"
|
|
101
|
+
:hours-filter="startTimeHoursFilter"
|
|
102
|
+
:minutes-filter="startTimeMinutesFilter"
|
|
101
103
|
:is-active="popover && popover.state === 'open'"
|
|
102
104
|
/>
|
|
103
105
|
</template>
|
|
@@ -111,6 +113,8 @@
|
|
|
111
113
|
:locale="resolvedLocale"
|
|
112
114
|
:hour-step="hourStep"
|
|
113
115
|
:minute-step="minuteStep"
|
|
116
|
+
:hours-filter="endTimeHoursFilter"
|
|
117
|
+
:minutes-filter="endTimeMinutesFilter"
|
|
114
118
|
:is-active="popover && popover.state === 'open'"
|
|
115
119
|
/>
|
|
116
120
|
</template>
|
|
@@ -169,7 +173,7 @@ import { ReferenceElement } from '@floating-ui/dom';
|
|
|
169
173
|
import { PropType, computed, defineComponent, ref, toRef, watch } from 'vue';
|
|
170
174
|
import { DropdownClose, DropdownOpen } from '../../directives';
|
|
171
175
|
import { useLocale, useProxyModelValue, useResponsive, useTimeFormat } from '../../hooks';
|
|
172
|
-
import { FormatFunction, TimeFormat } from '../../types';
|
|
176
|
+
import { FilterFunction, FormatFunction, TimeFormat } from '../../types';
|
|
173
177
|
import { DateTimePickerModelValue, OrDateTimePickerMobileControl, OrDateTimePickerPopoverFooter, OrDateTimePickerPopoverHeader, OrDateTimePickerTimeControl, OrDateTimePickerTimeSelect, formatMobileTime, getCurrentDate } from '../or-date-time-picker-v3';
|
|
174
178
|
import { OrErrorV3 as OrError } from '../or-error-v3';
|
|
175
179
|
import { OrHintV3 as OrHint } from '../or-hint-v3';
|
|
@@ -279,6 +283,26 @@ export default defineComponent({
|
|
|
279
283
|
type: Boolean,
|
|
280
284
|
default: false,
|
|
281
285
|
},
|
|
286
|
+
|
|
287
|
+
startTimeHoursFilter: {
|
|
288
|
+
type: Function as PropType<FilterFunction<Date>>,
|
|
289
|
+
default: undefined,
|
|
290
|
+
},
|
|
291
|
+
|
|
292
|
+
startTimeMinutesFilter: {
|
|
293
|
+
type: Function as PropType<FilterFunction<Date>>,
|
|
294
|
+
default: undefined,
|
|
295
|
+
},
|
|
296
|
+
|
|
297
|
+
endTimeHoursFilter: {
|
|
298
|
+
type: Function as PropType<FilterFunction<Date>>,
|
|
299
|
+
default: undefined,
|
|
300
|
+
},
|
|
301
|
+
|
|
302
|
+
endTimeMinutesFilter: {
|
|
303
|
+
type: Function as PropType<FilterFunction<Date>>,
|
|
304
|
+
default: undefined,
|
|
305
|
+
},
|
|
282
306
|
},
|
|
283
307
|
|
|
284
308
|
emits: [
|