@onereach/ui-components 3.0.4-beta.2487.0 → 3.0.4-beta.2500.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/v2/{OrDateTimePicker-11b6d4dd.js → OrDateTimePicker-5a379f88.js} +85 -19
- package/dist/bundled/v2/components/index.js +1 -1
- package/dist/bundled/v2/components/or-date-time-picker-v3/OrDateTimePicker.vue.d.ts +20 -1
- package/dist/bundled/v2/components/or-date-time-picker-v3/index.js +1 -1
- package/dist/bundled/v2/components/or-date-time-picker-v3/partials/or-date-time-picker-day-select/OrDateTimePickerDaySelect.vue.d.ts +12 -0
- package/dist/bundled/v2/components/or-date-time-picker-v3/partials/or-date-time-picker-month-select/OrDateTimePickerMonthSelect.vue.d.ts +12 -0
- package/dist/bundled/v2/components/or-date-time-picker-v3/partials/or-date-time-picker-time-select/OrDateTimePickerTimeSelect.vue.d.ts +12 -0
- package/dist/bundled/v2/index.js +2 -2
- package/dist/bundled/v3/{OrDateTimePicker.vue_vue_type_script_lang-b9bc77aa.js → OrDateTimePicker.vue_vue_type_script_lang-77c42110.js} +65 -8
- package/dist/bundled/v3/components/index.js +1 -1
- package/dist/bundled/v3/components/or-date-time-picker-v3/OrDateTimePicker.vue.d.ts +20 -1
- package/dist/bundled/v3/components/or-date-time-picker-v3/index.js +1 -1
- package/dist/bundled/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-day-select/OrDateTimePickerDaySelect.vue.d.ts +12 -0
- package/dist/bundled/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-month-select/OrDateTimePickerMonthSelect.vue.d.ts +12 -0
- package/dist/bundled/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-time-select/OrDateTimePickerTimeSelect.vue.d.ts +12 -0
- package/dist/bundled/v3/index.js +26 -19
- package/dist/esm/v2/{OrDateTimePicker-7411ea1f.js → OrDateTimePicker-9b277e74.js} +88 -22
- package/dist/esm/v2/components/index.js +1 -1
- package/dist/esm/v2/components/or-date-time-picker-v3/OrDateTimePicker.vue.d.ts +20 -1
- package/dist/esm/v2/components/or-date-time-picker-v3/index.js +4 -4
- package/dist/esm/v2/components/or-date-time-picker-v3/partials/or-date-time-picker-day-select/OrDateTimePickerDaySelect.vue.d.ts +12 -0
- package/dist/esm/v2/components/or-date-time-picker-v3/partials/or-date-time-picker-month-select/OrDateTimePickerMonthSelect.vue.d.ts +12 -0
- package/dist/esm/v2/components/or-date-time-picker-v3/partials/or-date-time-picker-time-select/OrDateTimePickerTimeSelect.vue.d.ts +12 -0
- package/dist/esm/v2/index.js +1 -1
- package/dist/esm/v3/{OrDateTimePicker-966d5b1d.js → OrDateTimePicker-46b452b3.js} +91 -27
- package/dist/esm/v3/components/index.js +1 -1
- package/dist/esm/v3/components/or-date-time-picker-v3/OrDateTimePicker.vue.d.ts +20 -1
- package/dist/esm/v3/components/or-date-time-picker-v3/index.js +3 -3
- package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-day-select/OrDateTimePickerDaySelect.vue.d.ts +12 -0
- package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-month-select/OrDateTimePickerMonthSelect.vue.d.ts +12 -0
- package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-time-select/OrDateTimePickerTimeSelect.vue.d.ts +12 -0
- package/dist/esm/v3/index.js +1 -1
- package/package.json +2 -2
- package/src/components/or-date-time-picker-v3/OrDateTimePicker.stories3.ts +4 -0
- package/src/components/or-date-time-picker-v3/OrDateTimePicker.vue +88 -34
- package/src/components/or-date-time-picker-v3/partials/or-date-time-picker-day-select/OrDateTimePickerDaySelect.vue +7 -1
- package/src/components/or-date-time-picker-v3/partials/or-date-time-picker-day-select/styles.ts +3 -0
- package/src/components/or-date-time-picker-v3/partials/or-date-time-picker-month-select/OrDateTimePickerMonthSelect.vue +8 -1
- package/src/components/or-date-time-picker-v3/partials/or-date-time-picker-time-select/OrDateTimePickerTimeSelect.vue +8 -1
- package/src/components/or-date-time-picker-v3/styles.ts +5 -2
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, reactive, watch } from 'vue-demi';
|
|
2
|
-
import { s as styleInject } from './style-inject.es-4c6f2515.js';
|
|
3
|
-
import { _ as __vue_component__$f } from './OrInputBox-0f4e8500.js';
|
|
4
|
-
import { I as InputBoxSize } from './OrInputBox.vue_rollup-plugin-vue_script-b2d0c353.js';
|
|
5
2
|
import { D as DropdownClose, a as DropdownOpen } from './dropdown-open-e1f90e0a.js';
|
|
6
3
|
import { a as useIdAttribute, u as useControlAttributes } from './useIdAttribute-859439f0.js';
|
|
7
4
|
import '@vueuse/core';
|
|
@@ -9,6 +6,8 @@ import { u as useValidationAttributes } from './useValidationAttributes-d1abbe34
|
|
|
9
6
|
import { _ as __vue_component__$d } from './OrError-4ffc1c39.js';
|
|
10
7
|
import { _ as __vue_component__$e } from './OrHint-aa221198.js';
|
|
11
8
|
import { _ as __vue_component__$a } from './OrIconButton-ec2e21aa.js';
|
|
9
|
+
import { _ as __vue_component__$f } from './OrInputBox-0f4e8500.js';
|
|
10
|
+
import { I as InputBoxSize } from './OrInputBox.vue_rollup-plugin-vue_script-b2d0c353.js';
|
|
12
11
|
import { _ as __vue_component__$8 } from './OrLabel-63380256.js';
|
|
13
12
|
import { _ as __vue_component__$g } from './OrPopover-83c885d0.js';
|
|
14
13
|
import { _ as __vue_component__$7 } from './OrButton-2283df1c.js';
|
|
@@ -16,6 +15,7 @@ import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
|
16
15
|
import { _ as __vue_component__$9 } from './OrIcon-d35a84d8.js';
|
|
17
16
|
import { _ as __vue_component__$c } from './OrMenuItem-6f9b8a93.js';
|
|
18
17
|
import { _ as __vue_component__$b } from './OrMenu-18a7f179.js';
|
|
18
|
+
import { s as styleInject } from './style-inject.es-4c6f2515.js';
|
|
19
19
|
|
|
20
20
|
function useDefaultDate() {
|
|
21
21
|
return new Date().getUTCDate();
|
|
@@ -44,7 +44,9 @@ const DateTimePickerDaySelect = [
|
|
|
44
44
|
'px-md', 'py-md', 'gap-sm'];
|
|
45
45
|
const DateTimePickerDaySelectButtonGroup = [
|
|
46
46
|
// Layout
|
|
47
|
-
'grid', 'grid-cols-7'
|
|
47
|
+
'grid', 'grid-cols-7',
|
|
48
|
+
// Spacing
|
|
49
|
+
'gap-xs'];
|
|
48
50
|
const DateTimePickerDaySelectButtonGroupItem = [
|
|
49
51
|
// Box
|
|
50
52
|
'min-w-fit',
|
|
@@ -66,6 +68,10 @@ var script$6 = defineComponent({
|
|
|
66
68
|
modelValue: {
|
|
67
69
|
type: Date,
|
|
68
70
|
default: undefined
|
|
71
|
+
},
|
|
72
|
+
filter: {
|
|
73
|
+
type: Function,
|
|
74
|
+
default: undefined
|
|
69
75
|
}
|
|
70
76
|
},
|
|
71
77
|
emits: ['update:modelValue'],
|
|
@@ -140,7 +146,8 @@ var __vue_render__$6 = function () {
|
|
|
140
146
|
class: _vm.buttonGroupItemStyles,
|
|
141
147
|
attrs: {
|
|
142
148
|
"variant": Number(value) === Number(_vm.proxyModelValue) ? 'contained' : 'text',
|
|
143
|
-
"color": Number(value) === Number(_vm.proxyModelValue) ? 'primary' : 'inherit'
|
|
149
|
+
"color": Number(value) === Number(_vm.proxyModelValue) ? 'primary' : 'inherit',
|
|
150
|
+
"disabled": _vm.filter && !_vm.filter(value)
|
|
144
151
|
},
|
|
145
152
|
on: {
|
|
146
153
|
"click": function ($event) {
|
|
@@ -268,6 +275,10 @@ var script$4 = defineComponent({
|
|
|
268
275
|
modelValue: {
|
|
269
276
|
type: Date,
|
|
270
277
|
default: undefined
|
|
278
|
+
},
|
|
279
|
+
filter: {
|
|
280
|
+
type: Function,
|
|
281
|
+
default: undefined
|
|
271
282
|
}
|
|
272
283
|
},
|
|
273
284
|
emits: ['update:modelValue'],
|
|
@@ -430,7 +441,8 @@ var __vue_render__$4 = function () {
|
|
|
430
441
|
return _c('OrMenuItem', {
|
|
431
442
|
key: Number(value),
|
|
432
443
|
attrs: {
|
|
433
|
-
"selected": Number(value) === Number(_vm.proxyModelValue)
|
|
444
|
+
"selected": Number(value) === Number(_vm.proxyModelValue),
|
|
445
|
+
"disabled": _vm.filter && !_vm.filter(value)
|
|
434
446
|
},
|
|
435
447
|
on: {
|
|
436
448
|
"click": function ($event) {
|
|
@@ -449,7 +461,8 @@ var __vue_render__$4 = function () {
|
|
|
449
461
|
return _c('OrMenuItem', {
|
|
450
462
|
key: Number(value),
|
|
451
463
|
attrs: {
|
|
452
|
-
"selected": Number(value) === Number(_vm.proxyModelValue)
|
|
464
|
+
"selected": Number(value) === Number(_vm.proxyModelValue),
|
|
465
|
+
"disabled": _vm.filter && !_vm.filter(value)
|
|
453
466
|
},
|
|
454
467
|
on: {
|
|
455
468
|
"click": function ($event) {
|
|
@@ -661,6 +674,10 @@ var script$1 = defineComponent({
|
|
|
661
674
|
modelValue: {
|
|
662
675
|
type: Date,
|
|
663
676
|
default: undefined
|
|
677
|
+
},
|
|
678
|
+
filter: {
|
|
679
|
+
type: Function,
|
|
680
|
+
default: undefined
|
|
664
681
|
}
|
|
665
682
|
},
|
|
666
683
|
emits: ['update:modelValue'],
|
|
@@ -744,7 +761,8 @@ var __vue_render__$1 = function () {
|
|
|
744
761
|
class: _vm.buttonGroupItemStyles,
|
|
745
762
|
attrs: {
|
|
746
763
|
"variant": Number(value) === Number(_vm.proxyModelValue) ? 'contained' : 'text',
|
|
747
|
-
"color": Number(value) === Number(_vm.proxyModelValue) ? 'primary' : 'inherit'
|
|
764
|
+
"color": Number(value) === Number(_vm.proxyModelValue) ? 'primary' : 'inherit',
|
|
765
|
+
"disabled": _vm.filter && !_vm.filter(value)
|
|
748
766
|
},
|
|
749
767
|
on: {
|
|
750
768
|
"click": function ($event) {
|
|
@@ -761,7 +779,8 @@ var __vue_render__$1 = function () {
|
|
|
761
779
|
class: _vm.buttonGroupItemStyles,
|
|
762
780
|
attrs: {
|
|
763
781
|
"variant": Number(value) === Number(_vm.proxyModelValue) ? 'contained' : 'text',
|
|
764
|
-
"color": Number(value) === Number(_vm.proxyModelValue) ? 'primary' : 'inherit'
|
|
782
|
+
"color": Number(value) === Number(_vm.proxyModelValue) ? 'primary' : 'inherit',
|
|
783
|
+
"disabled": _vm.filter && !_vm.filter(value)
|
|
765
784
|
},
|
|
766
785
|
on: {
|
|
767
786
|
"click": function ($event) {
|
|
@@ -799,8 +818,10 @@ const DateTimePicker = [
|
|
|
799
818
|
// Spacing
|
|
800
819
|
'gap-xs'];
|
|
801
820
|
const DateTimePickerControl = [
|
|
821
|
+
// Layout
|
|
822
|
+
'layout-inline-row justify-center',
|
|
802
823
|
// Theme (focus)
|
|
803
|
-
'focus:theme-border-
|
|
824
|
+
'focus:theme-border-2-current', 'dark:focus:theme-border-2-current-dark', 'focus:theme-border-underline', 'dark:focus:theme-border-underline'];
|
|
804
825
|
|
|
805
826
|
var script = defineComponent({
|
|
806
827
|
name: 'OrDateTimePicker',
|
|
@@ -831,6 +852,10 @@ var script = defineComponent({
|
|
|
831
852
|
type: Date,
|
|
832
853
|
default: undefined
|
|
833
854
|
},
|
|
855
|
+
filter: {
|
|
856
|
+
type: Function,
|
|
857
|
+
default: undefined
|
|
858
|
+
},
|
|
834
859
|
size: {
|
|
835
860
|
type: String,
|
|
836
861
|
default: InputBoxSize.M
|
|
@@ -939,6 +964,34 @@ var script = defineComponent({
|
|
|
939
964
|
popoverInstance.close();
|
|
940
965
|
}
|
|
941
966
|
}
|
|
967
|
+
function formatDate(value) {
|
|
968
|
+
var _a;
|
|
969
|
+
return (_a = value === null || value === void 0 ? void 0 : value.toLocaleString('default', {
|
|
970
|
+
dateStyle: 'short',
|
|
971
|
+
timeZone: 'UTC'
|
|
972
|
+
})) !== null && _a !== void 0 ? _a : '--';
|
|
973
|
+
}
|
|
974
|
+
function formatTime(value) {
|
|
975
|
+
var _a;
|
|
976
|
+
return (_a = value === null || value === void 0 ? void 0 : value.toLocaleString('default', {
|
|
977
|
+
timeStyle: 'short',
|
|
978
|
+
timeZone: 'UTC'
|
|
979
|
+
})) !== null && _a !== void 0 ? _a : '--';
|
|
980
|
+
}
|
|
981
|
+
function formatDateAlt(value) {
|
|
982
|
+
var _a;
|
|
983
|
+
return (_a = value === null || value === void 0 ? void 0 : value.toLocaleString('default', {
|
|
984
|
+
dateStyle: 'medium',
|
|
985
|
+
timeZone: 'UTC'
|
|
986
|
+
})) !== null && _a !== void 0 ? _a : '--';
|
|
987
|
+
}
|
|
988
|
+
function formatTimeAlt(value) {
|
|
989
|
+
var _a;
|
|
990
|
+
return (_a = value === null || value === void 0 ? void 0 : value.toLocaleString('default', {
|
|
991
|
+
timeStyle: 'short',
|
|
992
|
+
timeZone: 'UTC'
|
|
993
|
+
})) !== null && _a !== void 0 ? _a : '--';
|
|
994
|
+
}
|
|
942
995
|
return {
|
|
943
996
|
root,
|
|
944
997
|
dateControl,
|
|
@@ -955,12 +1008,16 @@ var script = defineComponent({
|
|
|
955
1008
|
toggleDatePopover,
|
|
956
1009
|
toggleTimePopover,
|
|
957
1010
|
closeDatePopover,
|
|
958
|
-
closeTimePopover
|
|
1011
|
+
closeTimePopover,
|
|
1012
|
+
formatDate,
|
|
1013
|
+
formatTime,
|
|
1014
|
+
formatDateAlt,
|
|
1015
|
+
formatTimeAlt
|
|
959
1016
|
};
|
|
960
1017
|
}
|
|
961
1018
|
});
|
|
962
1019
|
|
|
963
|
-
var css_248z = "input[data-v-
|
|
1020
|
+
var css_248z = "input[data-v-4d939067]{min-width:0;background:0 0;outline:0}";
|
|
964
1021
|
styleInject(css_248z);
|
|
965
1022
|
|
|
966
1023
|
/* script */
|
|
@@ -1006,7 +1063,7 @@ var __vue_render__ = function () {
|
|
|
1006
1063
|
"readonly": _vm.readonly,
|
|
1007
1064
|
"disabled": _vm.disabled
|
|
1008
1065
|
}
|
|
1009
|
-
}, [_c('
|
|
1066
|
+
}, [_c('div', _vm._b({
|
|
1010
1067
|
directives: [{
|
|
1011
1068
|
name: "dropdown-open",
|
|
1012
1069
|
rawName: "v-dropdown-open",
|
|
@@ -1021,12 +1078,12 @@ var __vue_render__ = function () {
|
|
|
1021
1078
|
ref: "dateControl",
|
|
1022
1079
|
class: _vm.controlStyles,
|
|
1023
1080
|
attrs: {
|
|
1024
|
-
"
|
|
1081
|
+
"contenteditable": true,
|
|
1025
1082
|
"required": _vm.required,
|
|
1026
1083
|
"readonly": _vm.readonly,
|
|
1027
1084
|
"disabled": _vm.disabled
|
|
1028
1085
|
}
|
|
1029
|
-
}, '
|
|
1086
|
+
}, 'div', _vm.controlAttributes, false), [_vm._v("\n " + _vm._s(_vm.formatDate(_vm.proxyModelValue)) + "\n ")]), _vm._v(" "), _c('div', _vm._b({
|
|
1030
1087
|
directives: [{
|
|
1031
1088
|
name: "dropdown-open",
|
|
1032
1089
|
rawName: "v-dropdown-open",
|
|
@@ -1041,12 +1098,12 @@ var __vue_render__ = function () {
|
|
|
1041
1098
|
ref: "timeControl",
|
|
1042
1099
|
class: _vm.controlStyles,
|
|
1043
1100
|
attrs: {
|
|
1044
|
-
"
|
|
1101
|
+
"contenteditable": true,
|
|
1045
1102
|
"required": _vm.required,
|
|
1046
1103
|
"readonly": _vm.readonly,
|
|
1047
1104
|
"disabled": _vm.disabled
|
|
1048
1105
|
}
|
|
1049
|
-
}, '
|
|
1106
|
+
}, 'div', _vm.controlAttributes, false), [_vm._v("\n " + _vm._s(_vm.formatTime(_vm.proxyModelValue)) + "\n ")]), _vm._v(" "), _c('OrPopover', {
|
|
1050
1107
|
ref: "datePopover",
|
|
1051
1108
|
attrs: {
|
|
1052
1109
|
"variant": 'auto',
|
|
@@ -1057,11 +1114,14 @@ var __vue_render__ = function () {
|
|
|
1057
1114
|
attrs: {
|
|
1058
1115
|
"label": "Date"
|
|
1059
1116
|
}
|
|
1060
|
-
}, [_vm._v("\n
|
|
1117
|
+
}, [_vm._v("\n " + _vm._s(_vm.formatDateAlt(_vm.draftModelValue)) + "\n ")]), _vm._v(" "), _c('OrDateTimePickerMobileControl', {
|
|
1061
1118
|
attrs: {
|
|
1062
1119
|
"label": "Time"
|
|
1063
1120
|
}
|
|
1064
|
-
}, [_vm._v("\n
|
|
1121
|
+
}, [_vm._v("\n " + _vm._s(_vm.formatTimeAlt(_vm.draftModelValue)) + "\n ")])], 1), _vm._v(" "), _c('OrDateTimePickerMonthSelect', {
|
|
1122
|
+
attrs: {
|
|
1123
|
+
"filter": _vm.filter
|
|
1124
|
+
},
|
|
1065
1125
|
model: {
|
|
1066
1126
|
value: _vm.draftModelValue,
|
|
1067
1127
|
callback: function ($$v) {
|
|
@@ -1070,6 +1130,9 @@ var __vue_render__ = function () {
|
|
|
1070
1130
|
expression: "draftModelValue"
|
|
1071
1131
|
}
|
|
1072
1132
|
}), _vm._v(" "), _c('OrDateTimePickerDaySelect', {
|
|
1133
|
+
attrs: {
|
|
1134
|
+
"filter": _vm.filter
|
|
1135
|
+
},
|
|
1073
1136
|
model: {
|
|
1074
1137
|
value: _vm.draftModelValue,
|
|
1075
1138
|
callback: function ($$v) {
|
|
@@ -1099,11 +1162,14 @@ var __vue_render__ = function () {
|
|
|
1099
1162
|
attrs: {
|
|
1100
1163
|
"label": "Date"
|
|
1101
1164
|
}
|
|
1102
|
-
}, [_vm._v("\n
|
|
1165
|
+
}, [_vm._v("\n " + _vm._s(_vm.formatDateAlt(_vm.draftModelValue)) + "\n ")]), _vm._v(" "), _c('OrDateTimePickerMobileControl', {
|
|
1103
1166
|
attrs: {
|
|
1104
1167
|
"label": "Time"
|
|
1105
1168
|
}
|
|
1106
|
-
}, [_vm._v("\n
|
|
1169
|
+
}, [_vm._v("\n " + _vm._s(_vm.formatTimeAlt(_vm.draftModelValue)) + "\n ")])], 1), _vm._v(" "), _c('OrDateTimePickerTimeSelect', {
|
|
1170
|
+
attrs: {
|
|
1171
|
+
"filter": _vm.filter
|
|
1172
|
+
},
|
|
1107
1173
|
model: {
|
|
1108
1174
|
value: _vm.draftModelValue,
|
|
1109
1175
|
callback: function ($$v) {
|
|
@@ -1153,7 +1219,7 @@ var __vue_staticRenderFns__ = [];
|
|
|
1153
1219
|
/* style */
|
|
1154
1220
|
const __vue_inject_styles__ = undefined;
|
|
1155
1221
|
/* scoped */
|
|
1156
|
-
const __vue_scope_id__ = "data-v-
|
|
1222
|
+
const __vue_scope_id__ = "data-v-4d939067";
|
|
1157
1223
|
/* module identifier */
|
|
1158
1224
|
const __vue_module_identifier__ = undefined;
|
|
1159
1225
|
/* functional template */
|
|
@@ -21,7 +21,7 @@ export { _ as OrColorPicker, h as amber, n as black, b as blue, m as blueGrey, k
|
|
|
21
21
|
export { _ as OrConfirm } from '../OrConfirm-64e815c7.js';
|
|
22
22
|
export { C as ConfirmType, _ as OrConfirmV3 } from '../OrConfirm-1be17f86.js';
|
|
23
23
|
export { D as DEFAULT_TEXT, _ as OrDateTimePicker, a as OrDateTimePickerItemTypes, O as OrDateTimePickerTypes } from '../OrDateTimePicker-85e5e03e.js';
|
|
24
|
-
export { _ as OrDateTimePickerV3 } from '../OrDateTimePicker-
|
|
24
|
+
export { _ as OrDateTimePickerV3 } from '../OrDateTimePicker-9b277e74.js';
|
|
25
25
|
export { _ as OrInputBoxV3 } from '../OrInputBox-0f4e8500.js';
|
|
26
26
|
export { I as DateTimePickerSize, I as InputBoxSize, a as InputBoxVariant, I as InputSize, I as SearchSize, I as SelectSize, I as TextareaSize } from '../OrInputBox.vue_rollup-plugin-vue_script-b2d0c353.js';
|
|
27
27
|
export { E as EmptyStateSize, _ as OrEmptyStateV3 } from '../OrEmptyState-2d3fd68d.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PropType } from 'vue-demi';
|
|
2
|
-
import { DateTimePickerSize } from '
|
|
2
|
+
import { DateTimePickerSize } from './props';
|
|
3
3
|
declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
4
4
|
root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
|
|
5
5
|
dateControl: import("@vue/composition-api").Ref<HTMLInputElement | undefined>;
|
|
@@ -37,11 +37,19 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
37
37
|
toggleTimePopover: () => void;
|
|
38
38
|
closeDatePopover: () => void;
|
|
39
39
|
closeTimePopover: () => void;
|
|
40
|
+
formatDate: (value?: Date) => string;
|
|
41
|
+
formatTime: (value?: Date) => string;
|
|
42
|
+
formatDateAlt: (value?: Date) => string;
|
|
43
|
+
formatTimeAlt: (value?: Date) => string;
|
|
40
44
|
}> & import("@vue/composition-api").Data, {}, {}, {
|
|
41
45
|
modelValue: {
|
|
42
46
|
type: DateConstructor;
|
|
43
47
|
default: undefined;
|
|
44
48
|
};
|
|
49
|
+
filter: {
|
|
50
|
+
type: PropType<(value: Date) => boolean>;
|
|
51
|
+
default: undefined;
|
|
52
|
+
};
|
|
45
53
|
size: {
|
|
46
54
|
type: PropType<DateTimePickerSize>;
|
|
47
55
|
default: DateTimePickerSize;
|
|
@@ -79,6 +87,10 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
79
87
|
type: DateConstructor;
|
|
80
88
|
default: undefined;
|
|
81
89
|
};
|
|
90
|
+
filter: {
|
|
91
|
+
type: PropType<(value: Date) => boolean>;
|
|
92
|
+
default: undefined;
|
|
93
|
+
};
|
|
82
94
|
size: {
|
|
83
95
|
type: PropType<DateTimePickerSize>;
|
|
84
96
|
default: DateTimePickerSize;
|
|
@@ -112,6 +124,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
112
124
|
default: boolean;
|
|
113
125
|
};
|
|
114
126
|
}>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
|
|
127
|
+
filter: (value: Date) => boolean;
|
|
115
128
|
modelValue: Date;
|
|
116
129
|
size: DateTimePickerSize;
|
|
117
130
|
label: string;
|
|
@@ -160,7 +173,12 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
160
173
|
toggleTimePopover: () => void;
|
|
161
174
|
closeDatePopover: () => void;
|
|
162
175
|
closeTimePopover: () => void;
|
|
176
|
+
formatDate: (value?: Date) => string;
|
|
177
|
+
formatTime: (value?: Date) => string;
|
|
178
|
+
formatDateAlt: (value?: Date) => string;
|
|
179
|
+
formatTimeAlt: (value?: Date) => string;
|
|
163
180
|
}>, import("@vue/composition-api").Data, {}, {}, {}, {}, string[], {
|
|
181
|
+
filter: (value: Date) => boolean;
|
|
164
182
|
modelValue: Date;
|
|
165
183
|
size: DateTimePickerSize;
|
|
166
184
|
label: string;
|
|
@@ -173,6 +191,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
173
191
|
} & {} & {
|
|
174
192
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
175
193
|
}, {
|
|
194
|
+
filter: (value: Date) => boolean;
|
|
176
195
|
modelValue: Date;
|
|
177
196
|
size: DateTimePickerSize;
|
|
178
197
|
label: string;
|
|
@@ -1,14 +1,12 @@
|
|
|
1
|
-
export { _ as OrDateTimePickerV3 } from '../../OrDateTimePicker-
|
|
1
|
+
export { _ as OrDateTimePickerV3 } from '../../OrDateTimePicker-9b277e74.js';
|
|
2
2
|
export { I as DateTimePickerSize } from '../../OrInputBox.vue_rollup-plugin-vue_script-b2d0c353.js';
|
|
3
3
|
import 'vue-demi';
|
|
4
|
-
import '../../style-inject.es-4c6f2515.js';
|
|
5
|
-
import '../../OrInputBox-0f4e8500.js';
|
|
6
|
-
import '../../normalize-component-6e8e3d80.js';
|
|
7
4
|
import '../../dropdown-open-e1f90e0a.js';
|
|
8
5
|
import '../../useIdAttribute-859439f0.js';
|
|
9
6
|
import '@vueuse/core';
|
|
10
7
|
import '../../useValidationAttributes-d1abbe34.js';
|
|
11
8
|
import '../../OrError-4ffc1c39.js';
|
|
9
|
+
import '../../normalize-component-6e8e3d80.js';
|
|
12
10
|
import '../../OrHint-aa221198.js';
|
|
13
11
|
import '../../OrIconButton-ec2e21aa.js';
|
|
14
12
|
import '../../OrIcon-d35a84d8.js';
|
|
@@ -21,8 +19,10 @@ import '../../OrBottomSheet-29df8db9.js';
|
|
|
21
19
|
import '../../OrOverlay-2ce3cfd7.js';
|
|
22
20
|
import '../../OrTeleport.vue2-fb92f29f.js';
|
|
23
21
|
import 'portal-vue';
|
|
22
|
+
import '../../OrInputBox-0f4e8500.js';
|
|
24
23
|
import '../../OrLabel-63380256.js';
|
|
25
24
|
import '../../OrButton-2283df1c.js';
|
|
26
25
|
import '../../OrLoader-b0c381f9.js';
|
|
27
26
|
import '../../OrMenuItem-6f9b8a93.js';
|
|
28
27
|
import '../../OrMenu-18a7f179.js';
|
|
28
|
+
import '../../style-inject.es-4c6f2515.js';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { PropType } from 'vue-demi';
|
|
1
2
|
declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
2
3
|
root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
|
|
3
4
|
rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
@@ -11,12 +12,21 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
11
12
|
type: DateConstructor;
|
|
12
13
|
default: undefined;
|
|
13
14
|
};
|
|
15
|
+
filter: {
|
|
16
|
+
type: PropType<(value: Date) => boolean>;
|
|
17
|
+
default: undefined;
|
|
18
|
+
};
|
|
14
19
|
}, import("@vue/composition-api").ExtractPropTypes<{
|
|
15
20
|
modelValue: {
|
|
16
21
|
type: DateConstructor;
|
|
17
22
|
default: undefined;
|
|
18
23
|
};
|
|
24
|
+
filter: {
|
|
25
|
+
type: PropType<(value: Date) => boolean>;
|
|
26
|
+
default: undefined;
|
|
27
|
+
};
|
|
19
28
|
}>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
|
|
29
|
+
filter: (value: Date) => boolean;
|
|
20
30
|
modelValue: Date;
|
|
21
31
|
} & {} & {
|
|
22
32
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
@@ -29,10 +39,12 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
29
39
|
dayOptions: import("@vue/composition-api").ComputedRef<Date[]>;
|
|
30
40
|
formatDay: (value: Date) => string;
|
|
31
41
|
}>, import("@vue/composition-api").Data, {}, {}, {}, {}, string[], {
|
|
42
|
+
filter: (value: Date) => boolean;
|
|
32
43
|
modelValue: Date;
|
|
33
44
|
} & {} & {
|
|
34
45
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
35
46
|
}, {
|
|
47
|
+
filter: (value: Date) => boolean;
|
|
36
48
|
modelValue: Date;
|
|
37
49
|
}, true>);
|
|
38
50
|
export default _default;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { PropType } from 'vue-demi';
|
|
1
2
|
declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
2
3
|
root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
|
|
3
4
|
yearButton: import("@vue/composition-api").Ref<import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
|
|
@@ -37,12 +38,21 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
37
38
|
type: DateConstructor;
|
|
38
39
|
default: undefined;
|
|
39
40
|
};
|
|
41
|
+
filter: {
|
|
42
|
+
type: PropType<(value: Date) => boolean>;
|
|
43
|
+
default: undefined;
|
|
44
|
+
};
|
|
40
45
|
}, import("@vue/composition-api").ExtractPropTypes<{
|
|
41
46
|
modelValue: {
|
|
42
47
|
type: DateConstructor;
|
|
43
48
|
default: undefined;
|
|
44
49
|
};
|
|
50
|
+
filter: {
|
|
51
|
+
type: PropType<(value: Date) => boolean>;
|
|
52
|
+
default: undefined;
|
|
53
|
+
};
|
|
45
54
|
}>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
|
|
55
|
+
filter: (value: Date) => boolean;
|
|
46
56
|
modelValue: Date;
|
|
47
57
|
} & {} & {
|
|
48
58
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
@@ -81,10 +91,12 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
81
91
|
formatYear: (value: Date) => string;
|
|
82
92
|
formatMonth: (value: Date) => string;
|
|
83
93
|
}>, import("@vue/composition-api").Data, {}, {}, {}, {}, string[], {
|
|
94
|
+
filter: (value: Date) => boolean;
|
|
84
95
|
modelValue: Date;
|
|
85
96
|
} & {} & {
|
|
86
97
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
87
98
|
}, {
|
|
99
|
+
filter: (value: Date) => boolean;
|
|
88
100
|
modelValue: Date;
|
|
89
101
|
}, true>);
|
|
90
102
|
export default _default;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { PropType } from 'vue-demi';
|
|
1
2
|
declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
2
3
|
root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
|
|
3
4
|
rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
@@ -13,12 +14,21 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
13
14
|
type: DateConstructor;
|
|
14
15
|
default: undefined;
|
|
15
16
|
};
|
|
17
|
+
filter: {
|
|
18
|
+
type: PropType<(value: Date) => boolean>;
|
|
19
|
+
default: undefined;
|
|
20
|
+
};
|
|
16
21
|
}, import("@vue/composition-api").ExtractPropTypes<{
|
|
17
22
|
modelValue: {
|
|
18
23
|
type: DateConstructor;
|
|
19
24
|
default: undefined;
|
|
20
25
|
};
|
|
26
|
+
filter: {
|
|
27
|
+
type: PropType<(value: Date) => boolean>;
|
|
28
|
+
default: undefined;
|
|
29
|
+
};
|
|
21
30
|
}>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
|
|
31
|
+
filter: (value: Date) => boolean;
|
|
22
32
|
modelValue: Date;
|
|
23
33
|
} & {} & {
|
|
24
34
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
@@ -33,10 +43,12 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
33
43
|
formatHours: (value: Date) => string;
|
|
34
44
|
formatMinutes: (value: Date) => string;
|
|
35
45
|
}>, import("@vue/composition-api").Data, {}, {}, {}, {}, string[], {
|
|
46
|
+
filter: (value: Date) => boolean;
|
|
36
47
|
modelValue: Date;
|
|
37
48
|
} & {} & {
|
|
38
49
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
39
50
|
}, {
|
|
51
|
+
filter: (value: Date) => boolean;
|
|
40
52
|
modelValue: Date;
|
|
41
53
|
}, true>);
|
|
42
54
|
export default _default;
|
package/dist/esm/v2/index.js
CHANGED
|
@@ -21,7 +21,7 @@ export { _ as OrColorPicker, h as amber, n as black, b as blue, m as blueGrey, k
|
|
|
21
21
|
export { _ as OrConfirm } from './OrConfirm-64e815c7.js';
|
|
22
22
|
export { C as ConfirmType, _ as OrConfirmV3 } from './OrConfirm-1be17f86.js';
|
|
23
23
|
export { D as DEFAULT_TEXT, _ as OrDateTimePicker, a as OrDateTimePickerItemTypes, O as OrDateTimePickerTypes } from './OrDateTimePicker-85e5e03e.js';
|
|
24
|
-
export { _ as OrDateTimePickerV3 } from './OrDateTimePicker-
|
|
24
|
+
export { _ as OrDateTimePickerV3 } from './OrDateTimePicker-9b277e74.js';
|
|
25
25
|
export { _ as OrInputBoxV3 } from './OrInputBox-0f4e8500.js';
|
|
26
26
|
export { I as DateTimePickerSize, I as InputBoxSize, a as InputBoxVariant, I as InputSize, I as SearchSize, I as SelectSize, I as TextareaSize } from './OrInputBox.vue_rollup-plugin-vue_script-b2d0c353.js';
|
|
27
27
|
export { E as EmptyStateSize, _ as OrEmptyStateV3 } from './OrEmptyState-2d3fd68d.js';
|