@onereach/ui-components 10.0.2 → 10.1.0-beta.4242.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/{OrDateTimePickerMonthSelect-980a9ada.js → OrDateTimePickerMonthSelect-d0681d68.js} +40 -21
- package/dist/bundled/v2/{OrDateTimePickerPopoverHeader-a0ea3524.js → OrDateTimePickerPopoverHeader-31d1e247.js} +3 -6
- package/dist/bundled/v2/{OrDateTimePickerTimeSelect-328896c3.js → OrDateTimePickerTimeSelect-bcdf865d.js} +27 -14
- package/dist/bundled/v2/components/OrConfirmV3/OrConfirm.js +1 -1
- package/dist/bundled/v2/components/OrDateFormatV3/OrDateFormat.js +26 -6
- package/dist/bundled/v2/components/OrDateFormatV3/OrDateFormat.vue.d.ts +33 -6
- package/dist/bundled/v2/components/OrDatePickerV3/OrDatePicker.js +34 -9
- package/dist/bundled/v2/components/OrDatePickerV3/OrDatePicker.vue.d.ts +55 -29
- package/dist/bundled/v2/components/OrDateRangePickerV3/OrDateRangePicker.js +47 -13
- package/dist/bundled/v2/components/OrDateRangePickerV3/OrDateRangePicker.vue.d.ts +49 -21
- package/dist/bundled/v2/components/OrDateRangePickerV3/index.d.ts +1 -0
- package/dist/bundled/v2/components/OrDateRangePickerV3/types.d.ts +2 -0
- package/dist/bundled/v2/components/OrDateTimeFormatV3/OrDateTimeFormat.js +32 -8
- package/dist/bundled/v2/components/OrDateTimeFormatV3/OrDateTimeFormat.vue.d.ts +36 -8
- package/dist/bundled/v2/components/OrDateTimePickerV3/OrDateTimePicker.js +49 -18
- package/dist/bundled/v2/components/OrDateTimePickerV3/OrDateTimePicker.vue.d.ts +73 -46
- package/dist/bundled/v2/components/OrDateTimePickerV3/index.d.ts +1 -1
- package/dist/bundled/v2/components/OrDateTimePickerV3/index.js +5 -4
- package/dist/bundled/v2/components/OrDateTimePickerV3/tokens.d.ts +3 -0
- package/dist/bundled/v2/components/OrDateTimePickerV3/tokens.js +5 -0
- package/dist/bundled/v2/components/OrDateTimePickerV3/types.d.ts +12 -1
- package/dist/bundled/v2/components/OrDateTimePickerV3/utils/formatDate.d.ts +2 -1
- package/dist/bundled/v2/components/OrDateTimePickerV3/utils/formatDate.js +3 -3
- package/dist/bundled/v2/components/OrDateTimePickerV3/utils/formatTime.d.ts +2 -2
- package/dist/bundled/v2/components/OrDateTimePickerV3/utils/formatTime.js +3 -3
- package/dist/bundled/v2/components/OrDateTimePickerV3/utils/getDatePlaceholder.d.ts +2 -1
- package/dist/bundled/v2/components/OrDateTimePickerV3/utils/getDatePlaceholder.js +24 -4
- package/dist/bundled/v2/components/OrDateTimePickerV3/utils/getTimePlaceholder.d.ts +2 -2
- package/dist/bundled/v2/components/OrDateTimePickerV3/utils/getTimePlaceholder.js +15 -4
- package/dist/bundled/v2/components/OrInputV3/OrInput.js +1 -1
- package/dist/bundled/v2/components/OrInputV3/index.js +1 -1
- package/dist/bundled/v2/components/OrLabelV3/styles.js +3 -3
- package/dist/bundled/v2/components/OrListV3/OrList.js +1 -1
- package/dist/bundled/v2/components/OrListV3/index.js +1 -1
- package/dist/bundled/v2/components/OrRichTextEditorV3/OrRichTextEditor.js +1 -1
- package/dist/bundled/v2/components/OrSearchV3/OrSearch.js +1 -1
- package/dist/bundled/v2/components/OrSelectV3/OrSelect.js +1 -1
- package/dist/bundled/v2/components/OrTimeFormatV3/OrTimeFormat.js +23 -8
- package/dist/bundled/v2/components/OrTimeFormatV3/OrTimeFormat.vue.d.ts +23 -8
- package/dist/bundled/v2/components/OrTimePickerV3/OrTimePicker.js +30 -13
- package/dist/bundled/v2/components/OrTimePickerV3/OrTimePicker.vue.d.ts +41 -26
- package/dist/bundled/v2/components/OrTimeRangePickerV3/OrTimeRangePicker.js +45 -22
- package/dist/bundled/v2/components/OrTimeRangePickerV3/OrTimeRangePicker.vue.d.ts +40 -22
- package/dist/bundled/v2/components/OrTimeRangePickerV3/index.d.ts +1 -0
- package/dist/bundled/v2/components/OrTimeRangePickerV3/types.d.ts +2 -0
- package/dist/bundled/v2/components/index.js +7 -6
- package/dist/bundled/v2/index.js +7 -6
- package/dist/bundled/v2/types-6a847182.js +14 -0
- package/dist/bundled/v3/components/OrCardCollectionV3/OrCardCollection.js +1 -1
- package/dist/bundled/v3/components/OrCardCollectionV3/index.js +1 -1
- package/dist/bundled/v3/components/OrCardCollectionV3/props.js +1 -1
- package/dist/bundled/v3/components/OrCardCollectionV3/styles.js +1 -1
- package/dist/bundled/v3/components/OrCheckboxGroupV3/OrCheckboxGroup.js +2 -2
- package/dist/bundled/v3/components/OrCheckboxTreeV3/OrCheckboxTree.js +1 -1
- package/dist/bundled/v3/components/OrCheckboxTreeV3/index.js +1 -1
- package/dist/bundled/v3/components/OrCheckboxTreeV3/styles.js +1 -1
- package/dist/bundled/v3/components/OrCheckboxTreeV3/utils/extractChildrenValues.js +1 -1
- package/dist/bundled/v3/components/{OrCheckboxTreeV3-4635160f.js → OrCheckboxTreeV3-a4d5bc04.js} +1 -1
- package/dist/bundled/v3/components/OrCheckboxV3/OrCheckbox.js +1 -1
- package/dist/bundled/v3/components/OrCheckboxV3/index.js +1 -1
- package/dist/bundled/v3/components/OrCheckboxV3/styles.js +1 -1
- package/dist/bundled/v3/components/{OrCheckboxV3-69269b9c.js → OrCheckboxV3-50db4f65.js} +1 -1
- package/dist/bundled/v3/components/OrCodeV3/OrCode.js +1 -1
- package/dist/bundled/v3/components/OrCodeV3/index.js +1 -1
- package/dist/bundled/v3/components/OrCodeV3/props.js +1 -1
- package/dist/bundled/v3/components/OrCodeV3/styles.js +1 -1
- package/dist/bundled/v3/components/{OrCodeV3-5b8b5a7a.js → OrCodeV3-782af0c4.js} +1 -1
- package/dist/bundled/v3/components/OrCombinedInputV3/OrCombinedInput.js +1 -1
- package/dist/bundled/v3/components/OrCombinedInputV3/index.js +1 -1
- package/dist/bundled/v3/components/OrCombinedInputV3/styles.js +1 -1
- package/dist/bundled/v3/components/{OrCombinedInputV3-d6f24b0f.js → OrCombinedInputV3-933f1920.js} +1 -1
- package/dist/bundled/v3/components/OrConfirmV3/OrConfirm.js +1 -1
- package/dist/bundled/v3/components/OrConfirmV3/index.js +1 -1
- package/dist/bundled/v3/components/OrConfirmV3/props.js +1 -1
- package/dist/bundled/v3/components/OrConfirmV3/styles.js +1 -1
- package/dist/bundled/v3/components/{OrConfirmV3-882d8f35.js → OrConfirmV3-bd6d7a69.js} +1 -1
- package/dist/bundled/v3/components/OrDateFormatV3/OrDateFormat.js +1 -1
- package/dist/bundled/v3/components/OrDateFormatV3/OrDateFormat.vue.d.ts +25 -4
- package/dist/bundled/v3/components/OrDateFormatV3/index.js +1 -1
- package/dist/bundled/v3/components/OrDateFormatV3/styles.js +1 -1
- package/dist/bundled/v3/components/OrDateFormatV3-79a25ac8.js +71 -0
- package/dist/bundled/v3/components/OrDatePickerV3/OrDatePicker.js +1 -1
- package/dist/bundled/v3/components/OrDatePickerV3/OrDatePicker.vue.d.ts +37 -17
- package/dist/bundled/v3/components/OrDatePickerV3/index.js +1 -1
- package/dist/bundled/v3/components/OrDatePickerV3/styles.js +1 -1
- package/dist/bundled/v3/components/{OrDatePickerV3-d5f8c11a.js → OrDatePickerV3-7e493ca1.js} +35 -12
- package/dist/bundled/v3/components/OrDateRangePickerV3/OrDateRangePicker.js +1 -1
- package/dist/bundled/v3/components/OrDateRangePickerV3/OrDateRangePicker.vue.d.ts +34 -12
- package/dist/bundled/v3/components/OrDateRangePickerV3/index.d.ts +1 -0
- package/dist/bundled/v3/components/OrDateRangePickerV3/index.js +1 -1
- package/dist/bundled/v3/components/OrDateRangePickerV3/styles.js +1 -1
- package/dist/bundled/v3/components/OrDateRangePickerV3/types.d.ts +2 -0
- package/dist/bundled/v3/components/{OrDateRangePickerV3-e62adab9.js → OrDateRangePickerV3-f215b1ba.js} +49 -21
- package/dist/bundled/v3/components/OrDateTimeFormatV3/OrDateTimeFormat.js +1 -1
- package/dist/bundled/v3/components/OrDateTimeFormatV3/OrDateTimeFormat.vue.d.ts +27 -6
- package/dist/bundled/v3/components/OrDateTimeFormatV3/index.js +1 -1
- package/dist/bundled/v3/components/OrDateTimeFormatV3/styles.js +1 -1
- package/dist/bundled/v3/components/OrDateTimeFormatV3-57c82e28.js +81 -0
- package/dist/bundled/v3/components/OrDateTimePickerV3/OrDateTimePicker.js +1 -1
- package/dist/bundled/v3/components/OrDateTimePickerV3/OrDateTimePicker.vue.d.ts +48 -28
- package/dist/bundled/v3/components/OrDateTimePickerV3/index.d.ts +1 -1
- package/dist/bundled/v3/components/OrDateTimePickerV3/index.js +1 -1
- package/dist/bundled/v3/components/OrDateTimePickerV3/styles.js +1 -1
- package/dist/bundled/v3/components/OrDateTimePickerV3/tokens.d.ts +3 -0
- package/dist/bundled/v3/components/OrDateTimePickerV3/tokens.js +1 -0
- package/dist/bundled/v3/components/OrDateTimePickerV3/types.d.ts +12 -1
- package/dist/bundled/v3/components/OrDateTimePickerV3/utils/formatDate.d.ts +2 -1
- package/dist/bundled/v3/components/OrDateTimePickerV3/utils/formatDate.js +1 -1
- package/dist/bundled/v3/components/OrDateTimePickerV3/utils/formatTime.d.ts +2 -2
- package/dist/bundled/v3/components/OrDateTimePickerV3/utils/formatTime.js +1 -1
- package/dist/bundled/v3/components/OrDateTimePickerV3/utils/getCurrentDate.js +1 -1
- package/dist/bundled/v3/components/OrDateTimePickerV3/utils/getDatePlaceholder.d.ts +2 -1
- package/dist/bundled/v3/components/OrDateTimePickerV3/utils/getDatePlaceholder.js +1 -1
- package/dist/bundled/v3/components/OrDateTimePickerV3/utils/getNextMonthDate.js +1 -1
- package/dist/bundled/v3/components/OrDateTimePickerV3/utils/getTimePlaceholder.d.ts +2 -2
- package/dist/bundled/v3/components/OrDateTimePickerV3/utils/getTimePlaceholder.js +1 -1
- package/dist/bundled/v3/components/OrDateTimePickerV3/utils/index.js +1 -1
- package/dist/bundled/v3/components/{OrDateTimePickerV3-84c0fee3.js → OrDateTimePickerV3-345a6c12.js} +171 -75
- package/dist/bundled/v3/components/OrFormGroupV3/OrFormGroup.js +1 -1
- package/dist/bundled/v3/components/OrFormGroupV3/index.js +1 -1
- package/dist/bundled/v3/components/OrFormGroupV3/props.js +1 -1
- package/dist/bundled/v3/components/OrFormGroupV3/styles.js +1 -1
- package/dist/bundled/v3/components/{OrFormGroupV3-7d09a939.js → OrFormGroupV3-72dc8852.js} +1 -1
- package/dist/bundled/v3/components/OrInputV3/OrInput.js +1 -1
- package/dist/bundled/v3/components/OrInputV3/index.js +1 -1
- package/dist/bundled/v3/components/OrInputV3/styles.js +1 -1
- package/dist/bundled/v3/components/{OrInputV3-db89dfb7.js → OrInputV3-ac1c7fe7.js} +1 -1
- package/dist/bundled/v3/components/OrLabelV3/OrLabel.js +1 -1
- package/dist/bundled/v3/components/OrLabelV3/index.js +1 -1
- package/dist/bundled/v3/components/OrLabelV3/props.js +1 -1
- package/dist/bundled/v3/components/OrLabelV3/styles.js +1 -1
- package/dist/bundled/v3/components/{OrLabelV3-b1cd132a.js → OrLabelV3-23a42d9d.js} +3 -3
- package/dist/bundled/v3/components/OrListV3/OrList.js +1 -1
- package/dist/bundled/v3/components/OrListV3/index.js +1 -1
- package/dist/bundled/v3/components/OrListV3/styles.js +1 -1
- package/dist/bundled/v3/components/{OrListV3-62e510b2.js → OrListV3-02565baf.js} +1 -1
- package/dist/bundled/v3/components/OrRadioGroupV3/OrRadioGroup.js +2 -2
- package/dist/bundled/v3/components/OrRadioV3/OrRadio.js +1 -1
- package/dist/bundled/v3/components/OrRadioV3/index.js +1 -1
- package/dist/bundled/v3/components/OrRadioV3/styles.js +1 -1
- package/dist/bundled/v3/components/{OrRadioV3-e9c05c7b.js → OrRadioV3-0e34f4d0.js} +1 -1
- package/dist/bundled/v3/components/OrRichTextEditorV3/OrRichTextEditor.js +1 -1
- package/dist/bundled/v3/components/OrRichTextEditorV3/index.js +1 -1
- package/dist/bundled/v3/components/OrRichTextEditorV3/props.js +1 -1
- package/dist/bundled/v3/components/OrRichTextEditorV3/styles.js +1 -1
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/codemirrorNode.js +1 -1
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/codemirrorView.js +1 -1
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/index.js +1 -1
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/theme.js +1 -1
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/markdown.js +1 -1
- package/dist/bundled/v3/components/{OrRichTextEditorV3-01acbe53.js → OrRichTextEditorV3-cbaf6f09.js} +2 -2
- package/dist/bundled/v3/components/OrSearchV3/OrSearch.js +1 -1
- package/dist/bundled/v3/components/OrSelectV3/OrSelect.js +1 -1
- package/dist/bundled/v3/components/OrSelectV3/index.js +1 -1
- package/dist/bundled/v3/components/OrSelectV3/styles.js +1 -1
- package/dist/bundled/v3/components/OrSelectV3/utils/castToMultipleValue.js +1 -1
- package/dist/bundled/v3/components/{OrSelectV3-7888ad93.js → OrSelectV3-c63decef.js} +3 -3
- package/dist/bundled/v3/components/OrSwitchV3/OrSwitch.js +1 -1
- package/dist/bundled/v3/components/OrSwitchV3/index.js +1 -1
- package/dist/bundled/v3/components/OrSwitchV3/styles.js +1 -1
- package/dist/bundled/v3/components/{OrSwitchV3-2fa19537.js → OrSwitchV3-efb0189f.js} +1 -1
- package/dist/bundled/v3/components/OrTagInputV3/OrTagInput.js +1 -1
- package/dist/bundled/v3/components/OrTagInputV3/index.js +1 -1
- package/dist/bundled/v3/components/OrTagInputV3/styles.js +1 -1
- package/dist/bundled/v3/components/{OrTagInputV3-1dadfcfd.js → OrTagInputV3-591da379.js} +1 -1
- package/dist/bundled/v3/components/OrTextareaV3/OrTextarea.js +1 -1
- package/dist/bundled/v3/components/OrTextareaV3/index.js +1 -1
- package/dist/bundled/v3/components/OrTextareaV3/styles.js +1 -1
- package/dist/bundled/v3/components/{OrTextareaV3-4a8136b0.js → OrTextareaV3-e2e9affb.js} +1 -1
- package/dist/bundled/v3/components/OrTimeFormatV3/OrTimeFormat.js +1 -1
- package/dist/bundled/v3/components/OrTimeFormatV3/OrTimeFormat.vue.d.ts +17 -6
- package/dist/bundled/v3/components/OrTimeFormatV3/index.js +1 -1
- package/dist/bundled/v3/components/OrTimeFormatV3/styles.js +1 -1
- package/dist/bundled/v3/components/OrTimeFormatV3-9d2eeebc.js +71 -0
- package/dist/bundled/v3/components/OrTimePickerV3/OrTimePicker.js +1 -1
- package/dist/bundled/v3/components/OrTimePickerV3/OrTimePicker.vue.d.ts +27 -16
- package/dist/bundled/v3/components/OrTimePickerV3/index.js +1 -1
- package/dist/bundled/v3/components/OrTimePickerV3/styles.js +1 -1
- package/dist/bundled/v3/components/{OrTimePickerV3-ac66eecb.js → OrTimePickerV3-973014d4.js} +30 -14
- package/dist/bundled/v3/components/OrTimeRangePickerV3/OrTimeRangePicker.js +1 -1
- package/dist/bundled/v3/components/OrTimeRangePickerV3/OrTimeRangePicker.vue.d.ts +90 -15
- package/dist/bundled/v3/components/OrTimeRangePickerV3/index.d.ts +1 -0
- package/dist/bundled/v3/components/OrTimeRangePickerV3/index.js +1 -1
- package/dist/bundled/v3/components/OrTimeRangePickerV3/styles.js +1 -1
- package/dist/bundled/v3/components/OrTimeRangePickerV3/types.d.ts +2 -0
- package/dist/bundled/v3/components/{OrTimeRangePickerV3-ea15e8da.js → OrTimeRangePickerV3-b5c80254.js} +47 -25
- package/dist/bundled/v3/components/index.js +24 -24
- package/dist/bundled/v3/index.js +24 -24
- package/dist/esm/v2/{OrCardCollection-dae2f81d.js → OrCardCollection-cd033a01.js} +1 -1
- package/dist/esm/v2/{OrCheckbox-2e14d995.js → OrCheckbox-8cdfdc56.js} +1 -1
- package/dist/esm/v2/{OrCheckboxGroup-4c3c1418.js → OrCheckboxGroup-4a817c00.js} +2 -2
- package/dist/esm/v2/{OrCheckboxTree-9613ade5.js → OrCheckboxTree-338b5ff4.js} +1 -1
- package/dist/esm/v2/{OrCode-bab23c65.js → OrCode-06a15a0c.js} +1 -1
- package/dist/esm/v2/{OrCombinedInput-e3f4498e.js → OrCombinedInput-79d57e49.js} +1 -1
- package/dist/esm/v2/{OrConfirm-4561fd88.js → OrConfirm-121af86c.js} +1 -1
- package/dist/esm/v2/{OrDateFormat-7b761b0f.js → OrDateFormat-a17b5b23.js} +27 -9
- package/dist/esm/v2/{OrDatePicker-847e9db1.js → OrDatePicker-67c281d7.js} +34 -11
- package/dist/esm/v2/{OrDateRangePicker-01c5a09c.js → OrDateRangePicker-4d776fe2.js} +47 -15
- package/dist/esm/v2/{OrDateTimeFormat-80ff6397.js → OrDateTimeFormat-70e61dd6.js} +33 -10
- package/dist/esm/v2/{OrDateTimePicker-c68aacf9.js → OrDateTimePicker-cb46a36b.js} +10 -3
- package/dist/esm/v2/{OrDateTimePicker.vue_rollup-plugin-vue_script-bd0836fd.js → OrDateTimePicker.vue_rollup-plugin-vue_script-b7ca34e8.js} +43 -16
- package/dist/esm/v2/{OrDateTimePickerTimeSelect-2f7efc41.js → OrDateTimePickerTimeSelect-3fa9a7c7.js} +71 -42
- package/dist/esm/v2/{OrFormGroup-d8b290f4.js → OrFormGroup-936aa0ff.js} +1 -1
- package/dist/esm/v2/{OrInput-43f90e4a.js → OrInput-431ae55a.js} +1 -1
- package/dist/esm/v2/{OrLabel-113eae8d.js → OrLabel-b0805497.js} +3 -3
- package/dist/esm/v2/{OrList-aae21920.js → OrList-3078c5cd.js} +1 -1
- package/dist/esm/v2/{OrRadio-c6aec5c3.js → OrRadio-fd1fbde2.js} +1 -1
- package/dist/esm/v2/{OrRadioGroup-038ad285.js → OrRadioGroup-c4135a8f.js} +2 -2
- package/dist/esm/v2/{OrRichTextEditor-6a2785c0.js → OrRichTextEditor-85f52908.js} +2 -2
- package/dist/esm/v2/{OrSearch-5dd1820f.js → OrSearch-493eb34d.js} +1 -1
- package/dist/esm/v2/{OrSelect-bf279168.js → OrSelect-8acf0bfe.js} +3 -3
- package/dist/esm/v2/{OrSwitch-b636a4e7.js → OrSwitch-b1c4a235.js} +1 -1
- package/dist/esm/v2/{OrTagInput-dbd9096c.js → OrTagInput-cc597ae0.js} +1 -1
- package/dist/esm/v2/{OrTextarea-56e2159d.js → OrTextarea-ba7551a4.js} +1 -1
- package/dist/esm/v2/{OrTimeFormat-6e82fcd3.js → OrTimeFormat-bd9582b8.js} +24 -10
- package/dist/esm/v2/{OrTimePicker-e18d9265.js → OrTimePicker-7878d2c8.js} +30 -14
- package/dist/esm/v2/{OrTimeRangePicker-e46462b3.js → OrTimeRangePicker-bee857dc.js} +45 -23
- package/dist/esm/v2/components/index.js +30 -30
- package/dist/esm/v2/components/or-card-collection-v3/index.js +4 -4
- package/dist/esm/v2/components/or-checkbox-group-v3/index.js +5 -5
- package/dist/esm/v2/components/or-checkbox-tree-v3/index.js +3 -3
- package/dist/esm/v2/components/or-checkbox-v3/index.js +2 -2
- package/dist/esm/v2/components/or-code-v3/index.js +2 -2
- package/dist/esm/v2/components/or-combined-input-v3/index.js +2 -2
- package/dist/esm/v2/components/or-confirm-v3/index.js +3 -3
- package/dist/esm/v2/components/or-date-format-v3/OrDateFormat.vue.d.ts +33 -6
- package/dist/esm/v2/components/or-date-format-v3/index.js +5 -5
- package/dist/esm/v2/components/or-date-picker-v3/OrDatePicker.vue.d.ts +55 -29
- package/dist/esm/v2/components/or-date-picker-v3/index.js +5 -5
- package/dist/esm/v2/components/or-date-range-picker-v3/OrDateRangePicker.vue.d.ts +49 -21
- package/dist/esm/v2/components/or-date-range-picker-v3/index.d.ts +1 -0
- package/dist/esm/v2/components/or-date-range-picker-v3/index.js +5 -5
- package/dist/esm/v2/components/or-date-range-picker-v3/types.d.ts +2 -0
- package/dist/esm/v2/components/or-date-time-format-v3/OrDateTimeFormat.vue.d.ts +36 -8
- package/dist/esm/v2/components/or-date-time-format-v3/index.js +5 -5
- package/dist/esm/v2/components/or-date-time-picker-v3/OrDateTimePicker.vue.d.ts +73 -46
- package/dist/esm/v2/components/or-date-time-picker-v3/index.d.ts +1 -1
- package/dist/esm/v2/components/or-date-time-picker-v3/index.js +14 -14
- package/dist/esm/v2/components/or-date-time-picker-v3/partials/index.js +3 -3
- package/dist/esm/v2/components/or-date-time-picker-v3/partials/or-date-time-picker-date-control/OrDateTimePickerDateControl.vue.d.ts +31 -9
- package/dist/esm/v2/components/or-date-time-picker-v3/partials/or-date-time-picker-date-select/OrDateTimePickerDateSelect.vue.d.ts +33 -13
- package/dist/esm/v2/components/or-date-time-picker-v3/partials/or-date-time-picker-month-select/OrDateTimePickerMonthSelect.vue.d.ts +29 -19
- package/dist/esm/v2/components/or-date-time-picker-v3/partials/or-date-time-picker-time-control/OrDateTimePickerTimeControl.vue.d.ts +22 -13
- package/dist/esm/v2/components/or-date-time-picker-v3/partials/or-date-time-picker-time-select/OrDateTimePickerTimeSelect.vue.d.ts +30 -22
- package/dist/esm/v2/components/or-date-time-picker-v3/tokens.d.ts +3 -0
- package/dist/esm/v2/components/or-date-time-picker-v3/types.d.ts +12 -1
- package/dist/esm/v2/components/or-date-time-picker-v3/utils/formatDate.d.ts +2 -1
- package/dist/esm/v2/components/or-date-time-picker-v3/utils/formatTime.d.ts +2 -2
- package/dist/esm/v2/components/or-date-time-picker-v3/utils/getDatePlaceholder.d.ts +2 -1
- package/dist/esm/v2/components/or-date-time-picker-v3/utils/getTimePlaceholder.d.ts +2 -2
- package/dist/esm/v2/components/or-date-time-picker-v3/utils/index.js +1 -1
- package/dist/esm/v2/components/or-form-group-v3/index.js +2 -2
- package/dist/esm/v2/components/or-input-v3/index.js +2 -2
- package/dist/esm/v2/components/or-label-v3/index.js +1 -1
- package/dist/esm/v2/components/or-list-v3/index.js +2 -2
- package/dist/esm/v2/components/or-radio-group-v3/index.js +4 -4
- package/dist/esm/v2/components/or-radio-v3/index.js +2 -2
- package/dist/esm/v2/components/or-rich-text-editor-v3/index.js +3 -3
- package/dist/esm/v2/components/or-search-v3/index.js +3 -3
- package/dist/esm/v2/components/or-select-v3/index.js +4 -4
- package/dist/esm/v2/components/or-switch-v3/index.js +2 -2
- package/dist/esm/v2/components/or-tag-input-v3/index.js +2 -2
- package/dist/esm/v2/components/or-textarea-v3/index.js +2 -2
- package/dist/esm/v2/components/or-time-format-v3/OrTimeFormat.vue.d.ts +23 -8
- package/dist/esm/v2/components/or-time-format-v3/index.js +5 -5
- package/dist/esm/v2/components/or-time-picker-v3/OrTimePicker.vue.d.ts +41 -26
- package/dist/esm/v2/components/or-time-picker-v3/index.js +5 -5
- package/dist/esm/v2/components/or-time-range-picker-v3/OrTimeRangePicker.vue.d.ts +40 -22
- package/dist/esm/v2/components/or-time-range-picker-v3/index.d.ts +1 -0
- package/dist/esm/v2/components/or-time-range-picker-v3/index.js +5 -5
- package/dist/esm/v2/components/or-time-range-picker-v3/types.d.ts +2 -0
- package/dist/esm/v2/getTimePlaceholder-9d18b5ac.js +77 -0
- package/dist/esm/v2/index.js +30 -30
- package/dist/esm/v3/{OrCardCollection-7eecfe1b.js → OrCardCollection-853aaa1c.js} +1 -1
- package/dist/esm/v3/{OrCheckbox-91bc37d7.js → OrCheckbox-637049b9.js} +1 -1
- package/dist/esm/v3/{OrCheckboxGroup-ba429495.js → OrCheckboxGroup-4f9235bb.js} +2 -2
- package/dist/esm/v3/{OrCheckboxTree-e3b760d1.js → OrCheckboxTree-129603b3.js} +1 -1
- package/dist/esm/v3/{OrCode-590736cc.js → OrCode-79ec7fc2.js} +1 -1
- package/dist/esm/v3/{OrCombinedInput-1a22e413.js → OrCombinedInput-391b1de9.js} +1 -1
- package/dist/esm/v3/{OrConfirm-fdc47d05.js → OrConfirm-7333b2ff.js} +1 -1
- package/dist/esm/v3/OrDateFormat-3ef8c5c3.js +73 -0
- package/dist/esm/v3/{OrDatePicker-a65e349c.js → OrDatePicker-1d21985d.js} +37 -14
- package/dist/esm/v3/{OrDateRangePicker-06b39fc4.js → OrDateRangePicker-fb715f58.js} +51 -23
- package/dist/esm/v3/OrDateTimeFormat-595566fa.js +83 -0
- package/dist/esm/v3/{OrDateTimePicker-b2749f72.js → OrDateTimePicker-c3544059.js} +57 -23
- package/dist/esm/v3/{OrDateTimePickerTimeSelect-c6ea3195.js → OrDateTimePickerTimeSelect-62e04a6c.js} +69 -44
- package/dist/esm/v3/{OrFormGroup-17c3cc0a.js → OrFormGroup-230f2015.js} +1 -1
- package/dist/esm/v3/{OrInput-89bb16d6.js → OrInput-89162a71.js} +1 -1
- package/dist/esm/v3/{OrLabel-02aa56ad.js → OrLabel-59d09591.js} +3 -3
- package/dist/esm/v3/{OrList-384bf436.js → OrList-75b5e6ac.js} +1 -1
- package/dist/esm/v3/{OrRadio-160d7841.js → OrRadio-a7bb97f7.js} +1 -1
- package/dist/esm/v3/{OrRadioGroup-6a5af61f.js → OrRadioGroup-2648ef67.js} +2 -2
- package/dist/esm/v3/{OrRichTextEditor-87baa915.js → OrRichTextEditor-56c41be2.js} +2 -2
- package/dist/esm/v3/{OrSearch-42922cb7.js → OrSearch-169317ea.js} +1 -1
- package/dist/esm/v3/{OrSelect-27ede5ab.js → OrSelect-cb207029.js} +3 -3
- package/dist/esm/v3/{OrSwitch-43616cd3.js → OrSwitch-bd2093d2.js} +1 -1
- package/dist/esm/v3/{OrTagInput-e768c2d1.js → OrTagInput-c68c8430.js} +1 -1
- package/dist/esm/v3/{OrTextarea-97b57866.js → OrTextarea-d5beb823.js} +1 -1
- package/dist/esm/v3/OrTimeFormat-25c748db.js +73 -0
- package/dist/esm/v3/{OrTimePicker-9dcd20dd.js → OrTimePicker-5f6111da.js} +32 -16
- package/dist/esm/v3/{OrTimeRangePicker-1f6509eb.js → OrTimeRangePicker-0d79f664.js} +49 -27
- package/dist/esm/v3/components/index.js +29 -29
- package/dist/esm/v3/components/or-card-collection-v3/index.js +4 -4
- package/dist/esm/v3/components/or-checkbox-group-v3/index.js +5 -5
- package/dist/esm/v3/components/or-checkbox-tree-v3/index.js +3 -3
- package/dist/esm/v3/components/or-checkbox-v3/index.js +2 -2
- package/dist/esm/v3/components/or-code-v3/index.js +2 -2
- package/dist/esm/v3/components/or-combined-input-v3/index.js +2 -2
- package/dist/esm/v3/components/or-confirm-v3/index.js +3 -3
- package/dist/esm/v3/components/or-date-format-v3/OrDateFormat.vue.d.ts +25 -4
- package/dist/esm/v3/components/or-date-format-v3/index.js +5 -5
- package/dist/esm/v3/components/or-date-picker-v3/OrDatePicker.vue.d.ts +37 -17
- package/dist/esm/v3/components/or-date-picker-v3/index.js +5 -5
- package/dist/esm/v3/components/or-date-range-picker-v3/OrDateRangePicker.vue.d.ts +34 -12
- package/dist/esm/v3/components/or-date-range-picker-v3/index.d.ts +1 -0
- package/dist/esm/v3/components/or-date-range-picker-v3/index.js +5 -5
- package/dist/esm/v3/components/or-date-range-picker-v3/types.d.ts +2 -0
- package/dist/esm/v3/components/or-date-time-format-v3/OrDateTimeFormat.vue.d.ts +27 -6
- package/dist/esm/v3/components/or-date-time-format-v3/index.js +5 -5
- package/dist/esm/v3/components/or-date-time-picker-v3/OrDateTimePicker.vue.d.ts +48 -28
- package/dist/esm/v3/components/or-date-time-picker-v3/index.d.ts +1 -1
- package/dist/esm/v3/components/or-date-time-picker-v3/index.js +4 -4
- package/dist/esm/v3/components/or-date-time-picker-v3/partials/index.js +3 -3
- package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-date-control/OrDateTimePickerDateControl.vue.d.ts +23 -5
- package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-date-select/OrDateTimePickerDateSelect.vue.d.ts +24 -8
- package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-month-select/OrDateTimePickerMonthSelect.vue.d.ts +20 -12
- package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-time-control/OrDateTimePickerTimeControl.vue.d.ts +16 -9
- package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-time-select/OrDateTimePickerTimeSelect.vue.d.ts +21 -15
- package/dist/esm/v3/components/or-date-time-picker-v3/tokens.d.ts +3 -0
- package/dist/esm/v3/components/or-date-time-picker-v3/types.d.ts +12 -1
- package/dist/esm/v3/components/or-date-time-picker-v3/utils/formatDate.d.ts +2 -1
- package/dist/esm/v3/components/or-date-time-picker-v3/utils/formatTime.d.ts +2 -2
- package/dist/esm/v3/components/or-date-time-picker-v3/utils/getDatePlaceholder.d.ts +2 -1
- package/dist/esm/v3/components/or-date-time-picker-v3/utils/getTimePlaceholder.d.ts +2 -2
- package/dist/esm/v3/components/or-date-time-picker-v3/utils/index.js +1 -1
- package/dist/esm/v3/components/or-form-group-v3/index.js +2 -2
- package/dist/esm/v3/components/or-input-v3/index.js +2 -2
- package/dist/esm/v3/components/or-label-v3/index.js +1 -1
- package/dist/esm/v3/components/or-list-v3/index.js +2 -2
- package/dist/esm/v3/components/or-radio-group-v3/index.js +4 -4
- package/dist/esm/v3/components/or-radio-v3/index.js +2 -2
- package/dist/esm/v3/components/or-rich-text-editor-v3/index.js +3 -3
- package/dist/esm/v3/components/or-search-v3/index.js +3 -3
- package/dist/esm/v3/components/or-select-v3/index.js +4 -4
- package/dist/esm/v3/components/or-switch-v3/index.js +2 -2
- package/dist/esm/v3/components/or-tag-input-v3/index.js +2 -2
- package/dist/esm/v3/components/or-textarea-v3/index.js +2 -2
- package/dist/esm/v3/components/or-time-format-v3/OrTimeFormat.vue.d.ts +17 -6
- package/dist/esm/v3/components/or-time-format-v3/index.js +5 -5
- package/dist/esm/v3/components/or-time-picker-v3/OrTimePicker.vue.d.ts +27 -16
- package/dist/esm/v3/components/or-time-picker-v3/index.js +5 -5
- package/dist/esm/v3/components/or-time-range-picker-v3/OrTimeRangePicker.vue.d.ts +90 -15
- package/dist/esm/v3/components/or-time-range-picker-v3/index.d.ts +1 -0
- package/dist/esm/v3/components/or-time-range-picker-v3/index.js +5 -5
- package/dist/esm/v3/components/or-time-range-picker-v3/types.d.ts +2 -0
- package/dist/esm/v3/getTimePlaceholder-9d18b5ac.js +77 -0
- package/dist/esm/v3/index.js +29 -29
- package/package.json +2 -3
- package/src/components/or-date-format-v3/OrDateFormat.vue +36 -9
- package/src/components/or-date-picker-v3/OrDatePicker.vue +48 -18
- package/src/components/or-date-range-picker-v3/OrDateRangePicker.vue +60 -22
- package/src/components/or-date-range-picker-v3/index.ts +1 -0
- package/src/components/or-date-range-picker-v3/types.ts +3 -0
- package/src/components/or-date-time-format-v3/OrDateTimeFormat.vue +42 -10
- package/src/components/or-date-time-picker-v3/OrDateTimePicker.vue +70 -32
- package/src/components/or-date-time-picker-v3/index.ts +1 -1
- package/src/components/or-date-time-picker-v3/partials/or-date-time-picker-date-control/OrDateTimePickerDateControl.vue +23 -9
- package/src/components/or-date-time-picker-v3/partials/or-date-time-picker-date-select/OrDateTimePickerDateSelect.vue +27 -15
- package/src/components/or-date-time-picker-v3/partials/or-date-time-picker-mobile-control/OrDateTimePickerMobileControl.vue +5 -5
- package/src/components/or-date-time-picker-v3/partials/or-date-time-picker-month-select/OrDateTimePickerMonthSelect.vue +33 -21
- package/src/components/or-date-time-picker-v3/partials/or-date-time-picker-popover-footer/OrDateTimePickerPopoverFooter.vue +3 -4
- package/src/components/or-date-time-picker-v3/partials/or-date-time-picker-popover-header/OrDateTimePickerPopoverHeader.vue +3 -4
- package/src/components/or-date-time-picker-v3/partials/or-date-time-picker-time-control/OrDateTimePickerTimeControl.vue +19 -10
- package/src/components/or-date-time-picker-v3/partials/or-date-time-picker-time-select/OrDateTimePickerTimeSelect.vue +22 -16
- package/src/components/or-date-time-picker-v3/tokens.ts +4 -0
- package/src/components/or-date-time-picker-v3/types.ts +15 -1
- package/src/components/or-date-time-picker-v3/utils/formatDate.ts +5 -3
- package/src/components/or-date-time-picker-v3/utils/formatTime.ts +3 -3
- package/src/components/or-date-time-picker-v3/utils/getDatePlaceholder.ts +38 -7
- package/src/components/or-date-time-picker-v3/utils/getTimePlaceholder.ts +22 -7
- package/src/components/or-label-v3/styles.ts +3 -3
- package/src/components/or-time-format-v3/OrTimeFormat.vue +32 -10
- package/src/components/or-time-picker-v3/OrTimePicker.vue +42 -20
- package/src/components/or-time-range-picker-v3/OrTimeRangePicker.vue +57 -27
- package/src/components/or-time-range-picker-v3/index.ts +1 -0
- package/src/components/or-time-range-picker-v3/types.ts +3 -0
- package/dist/bundled/v2/components/OrDateTimePickerV3/props.d.ts +0 -5
- package/dist/bundled/v2/components/OrDateTimePickerV3/props.js +0 -8
- package/dist/bundled/v3/components/OrDateFormatV3-3000643b.js +0 -49
- package/dist/bundled/v3/components/OrDateTimeFormatV3-1ff1795b.js +0 -54
- package/dist/bundled/v3/components/OrDateTimePickerV3/props.d.ts +0 -5
- package/dist/bundled/v3/components/OrDateTimePickerV3/props.js +0 -1
- package/dist/bundled/v3/components/OrTimeFormatV3-1a6191e2.js +0 -53
- package/dist/esm/v2/components/or-date-time-picker-v3/props.d.ts +0 -5
- package/dist/esm/v2/getTimePlaceholder-a1d75821.js +0 -40
- package/dist/esm/v3/OrDateFormat-755671ca.js +0 -51
- package/dist/esm/v3/OrDateTimeFormat-3408f038.js +0 -56
- package/dist/esm/v3/OrTimeFormat-ef653117.js +0 -55
- package/dist/esm/v3/components/or-date-time-picker-v3/props.d.ts +0 -5
- package/dist/esm/v3/getTimePlaceholder-a1d75821.js +0 -40
- package/src/components/or-date-time-picker-v3/props.ts +0 -5
- /package/dist/bundled/v2/{OrInput-aeca8c1a.js → OrInput-5cef921b.js} +0 -0
- /package/dist/bundled/v2/{OrList-1cda0d88.js → OrList-ee849918.js} +0 -0
- /package/dist/bundled/v3/components/{OrCardCollectionV3-7416a26d.js → OrCardCollectionV3-8a2f7f68.js} +0 -0
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { PropType } from 'vue-demi';
|
|
2
|
-
import {
|
|
2
|
+
import { DateTimePickerFilterFunction, DateTimePickerModelValue } from '../or-date-time-picker-v3';
|
|
3
3
|
import { InputBoxSize } from '../or-input-box-v3';
|
|
4
4
|
declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
5
5
|
root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
|
|
6
|
+
rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
6
7
|
inputBox: 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, {
|
|
7
8
|
[x: string]: ((...args: any[]) => any) | null;
|
|
8
9
|
} | string[], {} & {}, {
|
|
@@ -15,32 +16,41 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
15
16
|
[x: number]: string;
|
|
16
17
|
} | {}, true> | undefined>;
|
|
17
18
|
popoverState: import("@vue/composition-api").ComputedRef<undefined>;
|
|
18
|
-
rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
19
19
|
popoverStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
20
|
+
resolvedFormat: import("@vue/composition-api").ComputedRef<"short" | "medium" | "long">;
|
|
21
|
+
resolvedLocale: import("@vue/composition-api").ComputedRef<string>;
|
|
20
22
|
initialValue: import("@vue/composition-api").Ref<Date>;
|
|
21
|
-
proxyModelValue: import("../../hooks").UseProxyModelValueReturn<
|
|
22
|
-
draftModelValue: import("@vue/composition-api").Ref<
|
|
23
|
+
proxyModelValue: import("../../hooks").UseProxyModelValueReturn<DateTimePickerModelValue>;
|
|
24
|
+
draftModelValue: import("@vue/composition-api").Ref<DateTimePickerModelValue>;
|
|
23
25
|
isInvalidDraftModelValue: import("@vue/composition-api").ComputedRef<boolean>;
|
|
24
26
|
apply: () => void;
|
|
25
27
|
reset: () => void;
|
|
26
28
|
openPopover: () => void;
|
|
27
29
|
closePopover: () => void;
|
|
28
|
-
formatDateAlt: (value
|
|
30
|
+
formatDateAlt: (value: DateTimePickerModelValue) => string;
|
|
29
31
|
}> & import("@vue/composition-api").Data, {}, {}, {
|
|
30
32
|
modelValue: {
|
|
31
|
-
type:
|
|
33
|
+
type: PropType<DateTimePickerModelValue>;
|
|
34
|
+
default: undefined;
|
|
35
|
+
};
|
|
36
|
+
format: {
|
|
37
|
+
type: PropType<"short" | "medium" | "long">;
|
|
38
|
+
default: undefined;
|
|
39
|
+
};
|
|
40
|
+
locale: {
|
|
41
|
+
type: StringConstructor;
|
|
32
42
|
default: undefined;
|
|
33
43
|
};
|
|
34
44
|
yearFilter: {
|
|
35
|
-
type: PropType<
|
|
45
|
+
type: PropType<DateTimePickerFilterFunction>;
|
|
36
46
|
default: undefined;
|
|
37
47
|
};
|
|
38
48
|
monthFilter: {
|
|
39
|
-
type: PropType<
|
|
49
|
+
type: PropType<DateTimePickerFilterFunction>;
|
|
40
50
|
default: undefined;
|
|
41
51
|
};
|
|
42
52
|
dateFilter: {
|
|
43
|
-
type: PropType<
|
|
53
|
+
type: PropType<DateTimePickerFilterFunction>;
|
|
44
54
|
default: undefined;
|
|
45
55
|
};
|
|
46
56
|
size: {
|
|
@@ -77,19 +87,27 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
77
87
|
};
|
|
78
88
|
}, import("@vue/composition-api").ExtractPropTypes<{
|
|
79
89
|
modelValue: {
|
|
80
|
-
type:
|
|
90
|
+
type: PropType<DateTimePickerModelValue>;
|
|
91
|
+
default: undefined;
|
|
92
|
+
};
|
|
93
|
+
format: {
|
|
94
|
+
type: PropType<"short" | "medium" | "long">;
|
|
95
|
+
default: undefined;
|
|
96
|
+
};
|
|
97
|
+
locale: {
|
|
98
|
+
type: StringConstructor;
|
|
81
99
|
default: undefined;
|
|
82
100
|
};
|
|
83
101
|
yearFilter: {
|
|
84
|
-
type: PropType<
|
|
102
|
+
type: PropType<DateTimePickerFilterFunction>;
|
|
85
103
|
default: undefined;
|
|
86
104
|
};
|
|
87
105
|
monthFilter: {
|
|
88
|
-
type: PropType<
|
|
106
|
+
type: PropType<DateTimePickerFilterFunction>;
|
|
89
107
|
default: undefined;
|
|
90
108
|
};
|
|
91
109
|
dateFilter: {
|
|
92
|
-
type: PropType<
|
|
110
|
+
type: PropType<DateTimePickerFilterFunction>;
|
|
93
111
|
default: undefined;
|
|
94
112
|
};
|
|
95
113
|
size: {
|
|
@@ -125,10 +143,12 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
125
143
|
default: boolean;
|
|
126
144
|
};
|
|
127
145
|
}>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
|
|
128
|
-
modelValue:
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
146
|
+
modelValue: DateTimePickerModelValue;
|
|
147
|
+
format: "short" | "medium" | "long";
|
|
148
|
+
locale: string;
|
|
149
|
+
yearFilter: DateTimePickerFilterFunction;
|
|
150
|
+
monthFilter: DateTimePickerFilterFunction;
|
|
151
|
+
dateFilter: DateTimePickerFilterFunction;
|
|
132
152
|
size: "m" | "s";
|
|
133
153
|
label: string;
|
|
134
154
|
hint: string;
|
|
@@ -141,6 +161,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
141
161
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
142
162
|
}, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
143
163
|
root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
|
|
164
|
+
rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
144
165
|
inputBox: 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, {
|
|
145
166
|
[x: string]: ((...args: any[]) => any) | null;
|
|
146
167
|
} | string[], {} & {}, {
|
|
@@ -153,22 +174,25 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
153
174
|
[x: number]: string;
|
|
154
175
|
} | {}, true> | undefined>;
|
|
155
176
|
popoverState: import("@vue/composition-api").ComputedRef<undefined>;
|
|
156
|
-
rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
157
177
|
popoverStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
178
|
+
resolvedFormat: import("@vue/composition-api").ComputedRef<"short" | "medium" | "long">;
|
|
179
|
+
resolvedLocale: import("@vue/composition-api").ComputedRef<string>;
|
|
158
180
|
initialValue: import("@vue/composition-api").Ref<Date>;
|
|
159
|
-
proxyModelValue: import("../../hooks").UseProxyModelValueReturn<
|
|
160
|
-
draftModelValue: import("@vue/composition-api").Ref<
|
|
181
|
+
proxyModelValue: import("../../hooks").UseProxyModelValueReturn<DateTimePickerModelValue>;
|
|
182
|
+
draftModelValue: import("@vue/composition-api").Ref<DateTimePickerModelValue>;
|
|
161
183
|
isInvalidDraftModelValue: import("@vue/composition-api").ComputedRef<boolean>;
|
|
162
184
|
apply: () => void;
|
|
163
185
|
reset: () => void;
|
|
164
186
|
openPopover: () => void;
|
|
165
187
|
closePopover: () => void;
|
|
166
|
-
formatDateAlt: (value
|
|
188
|
+
formatDateAlt: (value: DateTimePickerModelValue) => string;
|
|
167
189
|
}>, import("@vue/composition-api").Data, {}, {}, {}, {}, string[], {
|
|
168
|
-
modelValue:
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
190
|
+
modelValue: DateTimePickerModelValue;
|
|
191
|
+
format: "short" | "medium" | "long";
|
|
192
|
+
locale: string;
|
|
193
|
+
yearFilter: DateTimePickerFilterFunction;
|
|
194
|
+
monthFilter: DateTimePickerFilterFunction;
|
|
195
|
+
dateFilter: DateTimePickerFilterFunction;
|
|
172
196
|
size: "m" | "s";
|
|
173
197
|
label: string;
|
|
174
198
|
hint: string;
|
|
@@ -180,10 +204,12 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
180
204
|
} & {} & {
|
|
181
205
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
182
206
|
}, {
|
|
183
|
-
modelValue:
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
207
|
+
modelValue: DateTimePickerModelValue;
|
|
208
|
+
format: "short" | "medium" | "long";
|
|
209
|
+
locale: string;
|
|
210
|
+
yearFilter: DateTimePickerFilterFunction;
|
|
211
|
+
monthFilter: DateTimePickerFilterFunction;
|
|
212
|
+
dateFilter: DateTimePickerFilterFunction;
|
|
187
213
|
size: "m" | "s";
|
|
188
214
|
label: string;
|
|
189
215
|
hint: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, ref, computed, watch, toRef } from 'vue-demi';
|
|
1
|
+
import { defineComponent, ref, computed, inject, watch, toRef } from 'vue-demi';
|
|
2
2
|
import { DateRangePicker, DateRangePickerPopover } from './styles.js';
|
|
3
3
|
import __vue_component__$1 from '../OrErrorV3/OrError.js';
|
|
4
4
|
import __vue_component__$2 from '../OrHintV3/OrHint.js';
|
|
@@ -8,11 +8,13 @@ import __vue_component__$5 from '../OrInputBoxV3/OrInputBox.js';
|
|
|
8
8
|
import __vue_component__$6 from '../OrLabelV3/OrLabel.js';
|
|
9
9
|
import __vue_component__$7 from '../OrPopoverV3/OrPopover.js';
|
|
10
10
|
import { getNextMonthDate } from '../OrDateTimePickerV3/utils/getNextMonthDate.js';
|
|
11
|
-
import { O as OrDateTimePickerDateControl, a as OrDateTimePickerDateSelect, b as OrDateTimePickerMonthSelect } from '../../OrDateTimePickerMonthSelect-
|
|
12
|
-
import { O as OrDateTimePickerMobileControl, a as OrDateTimePickerPopoverFooter, b as OrDateTimePickerPopoverHeader } from '../../OrDateTimePickerPopoverHeader-
|
|
11
|
+
import { O as OrDateTimePickerDateControl, a as OrDateTimePickerDateSelect, b as OrDateTimePickerMonthSelect } from '../../OrDateTimePickerMonthSelect-d0681d68.js';
|
|
12
|
+
import { O as OrDateTimePickerMobileControl, a as OrDateTimePickerPopoverFooter, b as OrDateTimePickerPopoverHeader } from '../../OrDateTimePickerPopoverHeader-31d1e247.js';
|
|
13
13
|
import { DropdownClose } from '../../directives/dropdown-close.js';
|
|
14
14
|
import { DropdownOpen } from '../../directives/dropdown-open.js';
|
|
15
15
|
import { InputBoxSize } from '../OrInputBoxV3/props.js';
|
|
16
|
+
import { DateFormat, Locale } from '../OrDateTimePickerV3/tokens.js';
|
|
17
|
+
import { D as DateTimePickerDateFormat } from '../../types-6a847182.js';
|
|
16
18
|
import { getCurrentDate } from '../OrDateTimePickerV3/utils/getCurrentDate.js';
|
|
17
19
|
import { useProxyModelValue } from '../../hooks/useProxyModelValue.js';
|
|
18
20
|
import useResponsive from '../../hooks/useResponsive/useResponsive.js';
|
|
@@ -45,7 +47,15 @@ var script = defineComponent({
|
|
|
45
47
|
},
|
|
46
48
|
props: {
|
|
47
49
|
modelValue: {
|
|
48
|
-
type:
|
|
50
|
+
type: undefined,
|
|
51
|
+
default: undefined
|
|
52
|
+
},
|
|
53
|
+
format: {
|
|
54
|
+
type: String,
|
|
55
|
+
default: undefined
|
|
56
|
+
},
|
|
57
|
+
locale: {
|
|
58
|
+
type: String,
|
|
49
59
|
default: undefined
|
|
50
60
|
},
|
|
51
61
|
size: {
|
|
@@ -85,8 +95,9 @@ var script = defineComponent({
|
|
|
85
95
|
expose: ['root', 'focus', 'blur'],
|
|
86
96
|
setup(props, context) {
|
|
87
97
|
var _a, _b, _c, _d, _e;
|
|
88
|
-
// Refs
|
|
98
|
+
// Refs & Styles
|
|
89
99
|
const root = ref();
|
|
100
|
+
const rootStyles = computed(() => ['or-date-range-picker-v3', ...DateRangePicker]);
|
|
90
101
|
const inputBox = ref();
|
|
91
102
|
const inputBoxRoot = computed(() => {
|
|
92
103
|
var _a;
|
|
@@ -97,9 +108,16 @@ var script = defineComponent({
|
|
|
97
108
|
var _a;
|
|
98
109
|
return (_a = popover.value) === null || _a === void 0 ? void 0 : _a.state;
|
|
99
110
|
});
|
|
100
|
-
// Styles
|
|
101
|
-
const rootStyles = computed(() => ['or-date-range-picker-v3', ...DateRangePicker]);
|
|
102
111
|
const popoverStyles = computed(() => ['or-date-range-picker-popover-v3', ...DateRangePickerPopover]);
|
|
112
|
+
// Options
|
|
113
|
+
const resolvedFormat = computed(() => {
|
|
114
|
+
var _a;
|
|
115
|
+
return (_a = props.format) !== null && _a !== void 0 ? _a : inject(DateFormat, DateTimePickerDateFormat.Short);
|
|
116
|
+
});
|
|
117
|
+
const resolvedLocale = computed(() => {
|
|
118
|
+
var _a;
|
|
119
|
+
return (_a = props.locale) !== null && _a !== void 0 ? _a : inject(Locale, navigator.language);
|
|
120
|
+
});
|
|
103
121
|
// State
|
|
104
122
|
const initialValueFrom = ref((_b = (_a = props.modelValue) === null || _a === void 0 ? void 0 : _a[0]) !== null && _b !== void 0 ? _b : getCurrentDate());
|
|
105
123
|
const initialValueTo = ref((_d = (_c = props.modelValue) === null || _c === void 0 ? void 0 : _c[1]) !== null && _d !== void 0 ? _d : getNextMonthDate());
|
|
@@ -151,9 +169,6 @@ var script = defineComponent({
|
|
|
151
169
|
return true;
|
|
152
170
|
});
|
|
153
171
|
// Methods
|
|
154
|
-
function switchSelectedControl() {
|
|
155
|
-
selectedControl.value = selectedControl.value === 'from' ? 'to' : 'from';
|
|
156
|
-
}
|
|
157
172
|
function apply() {
|
|
158
173
|
proxyModelValue.value = draftModelValue.value;
|
|
159
174
|
}
|
|
@@ -161,6 +176,9 @@ var script = defineComponent({
|
|
|
161
176
|
var _a;
|
|
162
177
|
draftModelValue.value = (_a = proxyModelValue.value) !== null && _a !== void 0 ? _a : [undefined, undefined];
|
|
163
178
|
}
|
|
179
|
+
function switchSelectedControl() {
|
|
180
|
+
selectedControl.value = selectedControl.value === 'from' ? 'to' : 'from';
|
|
181
|
+
}
|
|
164
182
|
function openPopover(control) {
|
|
165
183
|
if (!props.readonly && !props.disabled) {
|
|
166
184
|
const popoverInstance = popover.value;
|
|
@@ -178,7 +196,7 @@ var script = defineComponent({
|
|
|
178
196
|
}
|
|
179
197
|
function formatDateAlt(value) {
|
|
180
198
|
var _a;
|
|
181
|
-
return (_a = value === null || value === void 0 ? void 0 : value.toLocaleString(
|
|
199
|
+
return (_a = value === null || value === void 0 ? void 0 : value.toLocaleString(resolvedLocale.value, {
|
|
182
200
|
dateStyle: 'medium',
|
|
183
201
|
timeZone: 'UTC'
|
|
184
202
|
})) !== null && _a !== void 0 ? _a : '--';
|
|
@@ -190,12 +208,14 @@ var script = defineComponent({
|
|
|
190
208
|
} = useResponsive();
|
|
191
209
|
return {
|
|
192
210
|
root,
|
|
211
|
+
rootStyles,
|
|
193
212
|
inputBox,
|
|
194
213
|
inputBoxRoot,
|
|
195
214
|
popover,
|
|
196
215
|
popoverState,
|
|
197
|
-
rootStyles,
|
|
198
216
|
popoverStyles,
|
|
217
|
+
resolvedFormat,
|
|
218
|
+
resolvedLocale,
|
|
199
219
|
initialValueFrom,
|
|
200
220
|
initialValueTo,
|
|
201
221
|
proxyModelValue,
|
|
@@ -205,9 +225,9 @@ var script = defineComponent({
|
|
|
205
225
|
genericDraftModelValue,
|
|
206
226
|
selectedControl,
|
|
207
227
|
isInvalidDraftModelValue,
|
|
208
|
-
switchSelectedControl,
|
|
209
228
|
apply,
|
|
210
229
|
reset,
|
|
230
|
+
switchSelectedControl,
|
|
211
231
|
openPopover,
|
|
212
232
|
closePopover,
|
|
213
233
|
formatDateAlt,
|
|
@@ -304,6 +324,8 @@ var __vue_render__ = function () {
|
|
|
304
324
|
expression: "closePopover"
|
|
305
325
|
}],
|
|
306
326
|
attrs: {
|
|
327
|
+
"format": _vm.resolvedFormat,
|
|
328
|
+
"locale": _vm.resolvedLocale,
|
|
307
329
|
"selected": _vm.popover && _vm.popover.state === 'open' && _vm.selectedControl === 'from',
|
|
308
330
|
"required": _vm.required,
|
|
309
331
|
"readonly": _vm.readonly,
|
|
@@ -331,6 +353,8 @@ var __vue_render__ = function () {
|
|
|
331
353
|
expression: "closePopover"
|
|
332
354
|
}],
|
|
333
355
|
attrs: {
|
|
356
|
+
"format": _vm.resolvedFormat,
|
|
357
|
+
"locale": _vm.resolvedLocale,
|
|
334
358
|
"selected": _vm.popover && _vm.popover.state === 'open' && _vm.selectedControl === 'to',
|
|
335
359
|
"required": _vm.required,
|
|
336
360
|
"readonly": _vm.readonly,
|
|
@@ -385,6 +409,9 @@ var __vue_render__ = function () {
|
|
|
385
409
|
}, [_vm.isDesktop || _vm.isMobile && _vm.selectedControl === 'from' ? [_c('div', {
|
|
386
410
|
class: ['layout-column', 'grow']
|
|
387
411
|
}, [_c('OrDateTimePickerMonthSelect', {
|
|
412
|
+
attrs: {
|
|
413
|
+
"locale": _vm.resolvedLocale
|
|
414
|
+
},
|
|
388
415
|
model: {
|
|
389
416
|
value: _vm.initialValueFrom,
|
|
390
417
|
callback: function ($$v) {
|
|
@@ -395,6 +422,8 @@ var __vue_render__ = function () {
|
|
|
395
422
|
}), _vm._v(" "), _c('OrDateTimePickerDateSelect', {
|
|
396
423
|
attrs: {
|
|
397
424
|
"initial-value": _vm.initialValueFrom,
|
|
425
|
+
"format": _vm.resolvedFormat,
|
|
426
|
+
"locale": _vm.resolvedLocale,
|
|
398
427
|
"range-start": _vm.draftModelValueFrom || _vm.initialValueFrom,
|
|
399
428
|
"range-end": _vm.draftModelValueTo || _vm.initialValueTo
|
|
400
429
|
},
|
|
@@ -413,6 +442,9 @@ var __vue_render__ = function () {
|
|
|
413
442
|
})], 1)] : _vm._e(), _vm._v(" "), _vm.isDesktop || _vm.isMobile && _vm.selectedControl === 'to' ? [_c('div', {
|
|
414
443
|
class: ['layout-column', 'grow']
|
|
415
444
|
}, [_c('OrDateTimePickerMonthSelect', {
|
|
445
|
+
attrs: {
|
|
446
|
+
"locale": _vm.resolvedLocale
|
|
447
|
+
},
|
|
416
448
|
model: {
|
|
417
449
|
value: _vm.initialValueTo,
|
|
418
450
|
callback: function ($$v) {
|
|
@@ -423,6 +455,8 @@ var __vue_render__ = function () {
|
|
|
423
455
|
}), _vm._v(" "), _c('OrDateTimePickerDateSelect', {
|
|
424
456
|
attrs: {
|
|
425
457
|
"initial-value": _vm.initialValueTo,
|
|
458
|
+
"format": _vm.resolvedFormat,
|
|
459
|
+
"locale": _vm.resolvedLocale,
|
|
426
460
|
"range-start": _vm.draftModelValueFrom || _vm.initialValueFrom,
|
|
427
461
|
"range-end": _vm.draftModelValueTo || _vm.initialValueTo
|
|
428
462
|
},
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { PropType } from 'vue-demi';
|
|
2
|
+
import { DateTimePickerModelValue } from '../or-date-time-picker-v3';
|
|
2
3
|
import { InputBoxSize } from '../or-input-box-v3';
|
|
4
|
+
import { DateRangePickerModelValue } from './types';
|
|
3
5
|
declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
4
6
|
root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
|
|
7
|
+
rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
5
8
|
inputBox: 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, {
|
|
6
9
|
[x: string]: ((...args: any[]) => any) | null;
|
|
7
10
|
} | string[], {} & {}, {
|
|
@@ -14,28 +17,37 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
14
17
|
[x: number]: string;
|
|
15
18
|
} | {}, true> | undefined>;
|
|
16
19
|
popoverState: import("@vue/composition-api").ComputedRef<undefined>;
|
|
17
|
-
rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
18
20
|
popoverStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
21
|
+
resolvedFormat: import("@vue/composition-api").ComputedRef<"short" | "medium" | "long">;
|
|
22
|
+
resolvedLocale: import("@vue/composition-api").ComputedRef<string>;
|
|
19
23
|
initialValueFrom: import("@vue/composition-api").Ref<Date>;
|
|
20
24
|
initialValueTo: import("@vue/composition-api").Ref<Date>;
|
|
21
|
-
proxyModelValue: import("../../hooks").UseProxyModelValueReturn<
|
|
22
|
-
draftModelValue: import("@vue/composition-api").Ref<[
|
|
23
|
-
draftModelValueFrom: import("@vue/composition-api").WritableComputedRef<
|
|
24
|
-
draftModelValueTo: import("@vue/composition-api").WritableComputedRef<
|
|
25
|
-
genericDraftModelValue: import("@vue/composition-api").WritableComputedRef<
|
|
25
|
+
proxyModelValue: import("../../hooks").UseProxyModelValueReturn<DateRangePickerModelValue>;
|
|
26
|
+
draftModelValue: import("@vue/composition-api").Ref<[DateTimePickerModelValue, DateTimePickerModelValue]>;
|
|
27
|
+
draftModelValueFrom: import("@vue/composition-api").WritableComputedRef<DateTimePickerModelValue>;
|
|
28
|
+
draftModelValueTo: import("@vue/composition-api").WritableComputedRef<DateTimePickerModelValue>;
|
|
29
|
+
genericDraftModelValue: import("@vue/composition-api").WritableComputedRef<DateTimePickerModelValue>;
|
|
26
30
|
selectedControl: import("@vue/composition-api").Ref<"from" | "to">;
|
|
27
31
|
isInvalidDraftModelValue: import("@vue/composition-api").ComputedRef<boolean>;
|
|
28
|
-
switchSelectedControl: () => void;
|
|
29
32
|
apply: () => void;
|
|
30
33
|
reset: () => void;
|
|
34
|
+
switchSelectedControl: () => void;
|
|
31
35
|
openPopover: (control: 'from' | 'to') => void;
|
|
32
36
|
closePopover: () => void;
|
|
33
|
-
formatDateAlt: (value
|
|
37
|
+
formatDateAlt: (value: DateTimePickerModelValue) => string;
|
|
34
38
|
isDesktop: import("@vue/composition-api").ComputedRef<boolean>;
|
|
35
39
|
isMobile: import("@vue/composition-api").ComputedRef<boolean>;
|
|
36
40
|
}> & import("@vue/composition-api").Data, {}, {}, {
|
|
37
41
|
modelValue: {
|
|
38
|
-
type: PropType<
|
|
42
|
+
type: PropType<DateRangePickerModelValue>;
|
|
43
|
+
default: undefined;
|
|
44
|
+
};
|
|
45
|
+
format: {
|
|
46
|
+
type: PropType<"short" | "medium" | "long">;
|
|
47
|
+
default: undefined;
|
|
48
|
+
};
|
|
49
|
+
locale: {
|
|
50
|
+
type: StringConstructor;
|
|
39
51
|
default: undefined;
|
|
40
52
|
};
|
|
41
53
|
size: {
|
|
@@ -72,7 +84,15 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
72
84
|
};
|
|
73
85
|
}, import("@vue/composition-api").ExtractPropTypes<{
|
|
74
86
|
modelValue: {
|
|
75
|
-
type: PropType<
|
|
87
|
+
type: PropType<DateRangePickerModelValue>;
|
|
88
|
+
default: undefined;
|
|
89
|
+
};
|
|
90
|
+
format: {
|
|
91
|
+
type: PropType<"short" | "medium" | "long">;
|
|
92
|
+
default: undefined;
|
|
93
|
+
};
|
|
94
|
+
locale: {
|
|
95
|
+
type: StringConstructor;
|
|
76
96
|
default: undefined;
|
|
77
97
|
};
|
|
78
98
|
size: {
|
|
@@ -108,7 +128,9 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
108
128
|
default: boolean;
|
|
109
129
|
};
|
|
110
130
|
}>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
|
|
111
|
-
modelValue:
|
|
131
|
+
modelValue: DateRangePickerModelValue;
|
|
132
|
+
format: "short" | "medium" | "long";
|
|
133
|
+
locale: string;
|
|
112
134
|
size: "m" | "s";
|
|
113
135
|
label: string;
|
|
114
136
|
hint: string;
|
|
@@ -121,6 +143,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
121
143
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
122
144
|
}, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
123
145
|
root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
|
|
146
|
+
rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
124
147
|
inputBox: 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, {
|
|
125
148
|
[x: string]: ((...args: any[]) => any) | null;
|
|
126
149
|
} | string[], {} & {}, {
|
|
@@ -133,27 +156,30 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
133
156
|
[x: number]: string;
|
|
134
157
|
} | {}, true> | undefined>;
|
|
135
158
|
popoverState: import("@vue/composition-api").ComputedRef<undefined>;
|
|
136
|
-
rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
137
159
|
popoverStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
160
|
+
resolvedFormat: import("@vue/composition-api").ComputedRef<"short" | "medium" | "long">;
|
|
161
|
+
resolvedLocale: import("@vue/composition-api").ComputedRef<string>;
|
|
138
162
|
initialValueFrom: import("@vue/composition-api").Ref<Date>;
|
|
139
163
|
initialValueTo: import("@vue/composition-api").Ref<Date>;
|
|
140
|
-
proxyModelValue: import("../../hooks").UseProxyModelValueReturn<
|
|
141
|
-
draftModelValue: import("@vue/composition-api").Ref<[
|
|
142
|
-
draftModelValueFrom: import("@vue/composition-api").WritableComputedRef<
|
|
143
|
-
draftModelValueTo: import("@vue/composition-api").WritableComputedRef<
|
|
144
|
-
genericDraftModelValue: import("@vue/composition-api").WritableComputedRef<
|
|
164
|
+
proxyModelValue: import("../../hooks").UseProxyModelValueReturn<DateRangePickerModelValue>;
|
|
165
|
+
draftModelValue: import("@vue/composition-api").Ref<[DateTimePickerModelValue, DateTimePickerModelValue]>;
|
|
166
|
+
draftModelValueFrom: import("@vue/composition-api").WritableComputedRef<DateTimePickerModelValue>;
|
|
167
|
+
draftModelValueTo: import("@vue/composition-api").WritableComputedRef<DateTimePickerModelValue>;
|
|
168
|
+
genericDraftModelValue: import("@vue/composition-api").WritableComputedRef<DateTimePickerModelValue>;
|
|
145
169
|
selectedControl: import("@vue/composition-api").Ref<"from" | "to">;
|
|
146
170
|
isInvalidDraftModelValue: import("@vue/composition-api").ComputedRef<boolean>;
|
|
147
|
-
switchSelectedControl: () => void;
|
|
148
171
|
apply: () => void;
|
|
149
172
|
reset: () => void;
|
|
173
|
+
switchSelectedControl: () => void;
|
|
150
174
|
openPopover: (control: 'from' | 'to') => void;
|
|
151
175
|
closePopover: () => void;
|
|
152
|
-
formatDateAlt: (value
|
|
176
|
+
formatDateAlt: (value: DateTimePickerModelValue) => string;
|
|
153
177
|
isDesktop: import("@vue/composition-api").ComputedRef<boolean>;
|
|
154
178
|
isMobile: import("@vue/composition-api").ComputedRef<boolean>;
|
|
155
179
|
}>, import("@vue/composition-api").Data, {}, {}, {}, {}, string[], {
|
|
156
|
-
modelValue:
|
|
180
|
+
modelValue: DateRangePickerModelValue;
|
|
181
|
+
format: "short" | "medium" | "long";
|
|
182
|
+
locale: string;
|
|
157
183
|
size: "m" | "s";
|
|
158
184
|
label: string;
|
|
159
185
|
hint: string;
|
|
@@ -165,7 +191,9 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
165
191
|
} & {} & {
|
|
166
192
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
167
193
|
}, {
|
|
168
|
-
modelValue:
|
|
194
|
+
modelValue: DateRangePickerModelValue;
|
|
195
|
+
format: "short" | "medium" | "long";
|
|
196
|
+
locale: string;
|
|
169
197
|
size: "m" | "s";
|
|
170
198
|
label: string;
|
|
171
199
|
hint: string;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { defineComponent, ref, computed } from 'vue-demi';
|
|
1
|
+
import { defineComponent, ref, computed, inject } from 'vue-demi';
|
|
2
2
|
import { DateTimeFormat } from './styles.js';
|
|
3
|
-
import {
|
|
3
|
+
import { DateFormat, TimeFormat, Locale } from '../OrDateTimePickerV3/tokens.js';
|
|
4
|
+
import { D as DateTimePickerDateFormat, a as DateTimePickerTimeFormat } from '../../types-6a847182.js';
|
|
4
5
|
import { formatDate } from '../OrDateTimePickerV3/utils/formatDate.js';
|
|
5
6
|
import { formatTime } from '../OrDateTimePickerV3/utils/formatTime.js';
|
|
6
7
|
import { n as normalizeComponent } from '../../normalize-component-6e8e3d80.js';
|
|
@@ -13,12 +14,20 @@ var script = defineComponent({
|
|
|
13
14
|
},
|
|
14
15
|
props: {
|
|
15
16
|
modelValue: {
|
|
16
|
-
type:
|
|
17
|
+
type: undefined,
|
|
18
|
+
default: undefined
|
|
19
|
+
},
|
|
20
|
+
dateFormat: {
|
|
21
|
+
type: String,
|
|
17
22
|
default: undefined
|
|
18
23
|
},
|
|
19
24
|
timeFormat: {
|
|
20
25
|
type: String,
|
|
21
|
-
default:
|
|
26
|
+
default: undefined
|
|
27
|
+
},
|
|
28
|
+
locale: {
|
|
29
|
+
type: String,
|
|
30
|
+
default: undefined
|
|
22
31
|
},
|
|
23
32
|
placeholder: {
|
|
24
33
|
type: String,
|
|
@@ -26,14 +35,29 @@ var script = defineComponent({
|
|
|
26
35
|
}
|
|
27
36
|
},
|
|
28
37
|
expose: ['root'],
|
|
29
|
-
setup() {
|
|
30
|
-
// Refs
|
|
38
|
+
setup(props) {
|
|
39
|
+
// Refs & Styles
|
|
31
40
|
const root = ref();
|
|
32
|
-
// Styles
|
|
33
41
|
const rootStyles = computed(() => ['or-date-time-format-v3', ...DateTimeFormat]);
|
|
42
|
+
// Options
|
|
43
|
+
const resolvedDateFormat = computed(() => {
|
|
44
|
+
var _a;
|
|
45
|
+
return (_a = props.dateFormat) !== null && _a !== void 0 ? _a : inject(DateFormat, DateTimePickerDateFormat.Short);
|
|
46
|
+
});
|
|
47
|
+
const resolvedTimeFormat = computed(() => {
|
|
48
|
+
var _a;
|
|
49
|
+
return (_a = props.timeFormat) !== null && _a !== void 0 ? _a : inject(TimeFormat, DateTimePickerTimeFormat.Auto);
|
|
50
|
+
});
|
|
51
|
+
const resolvedLocale = computed(() => {
|
|
52
|
+
var _a;
|
|
53
|
+
return (_a = props.locale) !== null && _a !== void 0 ? _a : inject(Locale, navigator.language);
|
|
54
|
+
});
|
|
34
55
|
return {
|
|
35
56
|
root,
|
|
36
57
|
rootStyles,
|
|
58
|
+
resolvedDateFormat,
|
|
59
|
+
resolvedTimeFormat,
|
|
60
|
+
resolvedLocale,
|
|
37
61
|
formatDate,
|
|
38
62
|
formatTime
|
|
39
63
|
};
|
|
@@ -51,7 +75,7 @@ var __vue_render__ = function () {
|
|
|
51
75
|
return _c('div', {
|
|
52
76
|
ref: 'root',
|
|
53
77
|
class: _vm.rootStyles
|
|
54
|
-
}, [_vm._v("\n
|
|
78
|
+
}, [_vm.modelValue ? [_vm._v("\n " + _vm._s(_vm.formatDate(_vm.modelValue, _vm.resolvedDateFormat, _vm.resolvedLocale) + " " + _vm.formatTime(_vm.modelValue, _vm.resolvedTimeFormat, _vm.resolvedLocale)) + "\n ")] : [_vm._v("\n " + _vm._s(_vm.placeholder) + "\n ")]], 2);
|
|
55
79
|
};
|
|
56
80
|
var __vue_staticRenderFns__ = [];
|
|
57
81
|
|
|
@@ -1,18 +1,29 @@
|
|
|
1
1
|
import { PropType } from 'vue-demi';
|
|
2
|
-
import {
|
|
2
|
+
import { DateTimePickerModelValue, formatDate, formatTime } from '../or-date-time-picker-v3';
|
|
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
|
rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
6
|
+
resolvedDateFormat: import("@vue/composition-api").ComputedRef<"short" | "medium" | "long">;
|
|
7
|
+
resolvedTimeFormat: import("@vue/composition-api").ComputedRef<"auto" | "h12" | "h23">;
|
|
8
|
+
resolvedLocale: import("@vue/composition-api").ComputedRef<string>;
|
|
6
9
|
formatDate: typeof formatDate;
|
|
7
10
|
formatTime: typeof formatTime;
|
|
8
11
|
}> & import("@vue/composition-api").Data, {}, {}, {
|
|
9
12
|
modelValue: {
|
|
10
|
-
type:
|
|
13
|
+
type: PropType<DateTimePickerModelValue>;
|
|
14
|
+
default: undefined;
|
|
15
|
+
};
|
|
16
|
+
dateFormat: {
|
|
17
|
+
type: PropType<"short" | "medium" | "long">;
|
|
11
18
|
default: undefined;
|
|
12
19
|
};
|
|
13
20
|
timeFormat: {
|
|
14
21
|
type: PropType<"auto" | "h12" | "h23">;
|
|
15
|
-
default:
|
|
22
|
+
default: undefined;
|
|
23
|
+
};
|
|
24
|
+
locale: {
|
|
25
|
+
type: StringConstructor;
|
|
26
|
+
default: undefined;
|
|
16
27
|
};
|
|
17
28
|
placeholder: {
|
|
18
29
|
type: StringConstructor;
|
|
@@ -20,33 +31,50 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
20
31
|
};
|
|
21
32
|
}, import("@vue/composition-api").ExtractPropTypes<{
|
|
22
33
|
modelValue: {
|
|
23
|
-
type:
|
|
34
|
+
type: PropType<DateTimePickerModelValue>;
|
|
35
|
+
default: undefined;
|
|
36
|
+
};
|
|
37
|
+
dateFormat: {
|
|
38
|
+
type: PropType<"short" | "medium" | "long">;
|
|
24
39
|
default: undefined;
|
|
25
40
|
};
|
|
26
41
|
timeFormat: {
|
|
27
42
|
type: PropType<"auto" | "h12" | "h23">;
|
|
28
|
-
default:
|
|
43
|
+
default: undefined;
|
|
44
|
+
};
|
|
45
|
+
locale: {
|
|
46
|
+
type: StringConstructor;
|
|
47
|
+
default: undefined;
|
|
29
48
|
};
|
|
30
49
|
placeholder: {
|
|
31
50
|
type: StringConstructor;
|
|
32
51
|
default: undefined;
|
|
33
52
|
};
|
|
34
53
|
}>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
|
|
35
|
-
modelValue:
|
|
54
|
+
modelValue: DateTimePickerModelValue;
|
|
55
|
+
dateFormat: "short" | "medium" | "long";
|
|
36
56
|
timeFormat: "auto" | "h12" | "h23";
|
|
57
|
+
locale: string;
|
|
37
58
|
placeholder: string;
|
|
38
59
|
} & {}, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
39
60
|
root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
|
|
40
61
|
rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
62
|
+
resolvedDateFormat: import("@vue/composition-api").ComputedRef<"short" | "medium" | "long">;
|
|
63
|
+
resolvedTimeFormat: import("@vue/composition-api").ComputedRef<"auto" | "h12" | "h23">;
|
|
64
|
+
resolvedLocale: import("@vue/composition-api").ComputedRef<string>;
|
|
41
65
|
formatDate: typeof formatDate;
|
|
42
66
|
formatTime: typeof formatTime;
|
|
43
67
|
}>, import("@vue/composition-api").Data, {}, {}, {}, {}, {}, {
|
|
44
|
-
modelValue:
|
|
68
|
+
modelValue: DateTimePickerModelValue;
|
|
69
|
+
dateFormat: "short" | "medium" | "long";
|
|
45
70
|
timeFormat: "auto" | "h12" | "h23";
|
|
71
|
+
locale: string;
|
|
46
72
|
placeholder: string;
|
|
47
73
|
} & {}, {
|
|
48
|
-
modelValue:
|
|
74
|
+
modelValue: DateTimePickerModelValue;
|
|
75
|
+
dateFormat: "short" | "medium" | "long";
|
|
49
76
|
timeFormat: "auto" | "h12" | "h23";
|
|
77
|
+
locale: string;
|
|
50
78
|
placeholder: string;
|
|
51
79
|
}, true>);
|
|
52
80
|
export default _default;
|