@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,17 +1,23 @@
|
|
|
1
1
|
import { PropType } from 'vue-demi';
|
|
2
|
-
import {
|
|
2
|
+
import { DateTimePickerModelValue, formatTime } from '../or-date-time-picker-v3';
|
|
3
3
|
declare const _default: import("vue2").ComponentOptions<import("vue2").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
|
+
resolvedFormat: import("@vue/composition-api").ComputedRef<"auto" | "h12" | "h23">;
|
|
7
|
+
resolvedLocale: import("@vue/composition-api").ComputedRef<string>;
|
|
6
8
|
formatTime: typeof formatTime;
|
|
7
9
|
}> & import("@vue/composition-api").Data, {}, {}, {
|
|
8
10
|
modelValue: {
|
|
9
|
-
type:
|
|
11
|
+
type: PropType<DateTimePickerModelValue>;
|
|
10
12
|
default: undefined;
|
|
11
13
|
};
|
|
12
14
|
format: {
|
|
13
15
|
type: PropType<"auto" | "h12" | "h23">;
|
|
14
|
-
default:
|
|
16
|
+
default: undefined;
|
|
17
|
+
};
|
|
18
|
+
locale: {
|
|
19
|
+
type: StringConstructor;
|
|
20
|
+
default: undefined;
|
|
15
21
|
};
|
|
16
22
|
placeholder: {
|
|
17
23
|
type: StringConstructor;
|
|
@@ -19,32 +25,41 @@ declare const _default: import("vue2").ComponentOptions<import("vue2").default,
|
|
|
19
25
|
};
|
|
20
26
|
}, import("@vue/composition-api").ExtractPropTypes<{
|
|
21
27
|
modelValue: {
|
|
22
|
-
type:
|
|
28
|
+
type: PropType<DateTimePickerModelValue>;
|
|
23
29
|
default: undefined;
|
|
24
30
|
};
|
|
25
31
|
format: {
|
|
26
32
|
type: PropType<"auto" | "h12" | "h23">;
|
|
27
|
-
default:
|
|
33
|
+
default: undefined;
|
|
34
|
+
};
|
|
35
|
+
locale: {
|
|
36
|
+
type: StringConstructor;
|
|
37
|
+
default: undefined;
|
|
28
38
|
};
|
|
29
39
|
placeholder: {
|
|
30
40
|
type: StringConstructor;
|
|
31
41
|
default: undefined;
|
|
32
42
|
};
|
|
33
43
|
}>> & Omit<import("vue2").VueConstructor<import("vue2").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
|
|
34
|
-
modelValue:
|
|
44
|
+
modelValue: DateTimePickerModelValue;
|
|
35
45
|
format: "auto" | "h12" | "h23";
|
|
46
|
+
locale: string;
|
|
36
47
|
placeholder: string;
|
|
37
48
|
} & {}, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
38
49
|
root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
|
|
39
50
|
rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
51
|
+
resolvedFormat: import("@vue/composition-api").ComputedRef<"auto" | "h12" | "h23">;
|
|
52
|
+
resolvedLocale: import("@vue/composition-api").ComputedRef<string>;
|
|
40
53
|
formatTime: typeof formatTime;
|
|
41
54
|
}>, import("@vue/composition-api").Data, {}, {}, {}, {}, {}, {
|
|
42
|
-
modelValue:
|
|
55
|
+
modelValue: DateTimePickerModelValue;
|
|
43
56
|
format: "auto" | "h12" | "h23";
|
|
57
|
+
locale: string;
|
|
44
58
|
placeholder: string;
|
|
45
59
|
} & {}, {
|
|
46
|
-
modelValue:
|
|
60
|
+
modelValue: DateTimePickerModelValue;
|
|
47
61
|
format: "auto" | "h12" | "h23";
|
|
62
|
+
locale: string;
|
|
48
63
|
placeholder: string;
|
|
49
64
|
}, true>);
|
|
50
65
|
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { _ as OrTimeFormatV3 } from '../../OrTimeFormat-
|
|
1
|
+
export { _ as OrTimeFormatV3 } from '../../OrTimeFormat-bd9582b8.js';
|
|
2
2
|
import 'vue-demi';
|
|
3
|
-
import '../../OrDateTimePicker.vue_rollup-plugin-vue_script-
|
|
3
|
+
import '../../OrDateTimePicker.vue_rollup-plugin-vue_script-b7ca34e8.js';
|
|
4
4
|
import '../../dropdown-open-06d651cf.js';
|
|
5
5
|
import '@vueuse/core';
|
|
6
6
|
import '../../dom-aecadd9a.js';
|
|
@@ -29,9 +29,9 @@ import '../../isPrevented-6994b101.js';
|
|
|
29
29
|
import '../../isAncestor-9acec98b.js';
|
|
30
30
|
import '../../OrInputBox-1a8fda9b.js';
|
|
31
31
|
import '../../OrInputBox.vue_rollup-plugin-vue_script-8c39b9ca.js';
|
|
32
|
-
import '../../OrLabel-
|
|
33
|
-
import '../../OrDateTimePickerTimeSelect-
|
|
34
|
-
import '../../getTimePlaceholder-
|
|
32
|
+
import '../../OrLabel-b0805497.js';
|
|
33
|
+
import '../../OrDateTimePickerTimeSelect-3fa9a7c7.js';
|
|
34
|
+
import '../../getTimePlaceholder-9d18b5ac.js';
|
|
35
35
|
import '../../OrButton-e4e85817.js';
|
|
36
36
|
import '../../OrButton.vue_rollup-plugin-vue_script-199bb600.js';
|
|
37
37
|
import '../../OrLoader-4ac49224.js';
|
|
@@ -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("vue2").ComponentOptions<import("vue2").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,37 @@ declare const _default: import("vue2").ComponentOptions<import("vue2").default,
|
|
|
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<"auto" | "h12" | "h23">;
|
|
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
|
-
formatTimeAlt: (value
|
|
30
|
+
formatTimeAlt: (value: DateTimePickerModelValue) => string;
|
|
29
31
|
}> & import("@vue/composition-api").Data, {}, {}, {
|
|
30
32
|
modelValue: {
|
|
31
|
-
type:
|
|
33
|
+
type: PropType<DateTimePickerModelValue>;
|
|
32
34
|
default: undefined;
|
|
33
35
|
};
|
|
34
36
|
format: {
|
|
35
37
|
type: PropType<"auto" | "h12" | "h23">;
|
|
36
|
-
default:
|
|
38
|
+
default: undefined;
|
|
39
|
+
};
|
|
40
|
+
locale: {
|
|
41
|
+
type: StringConstructor;
|
|
42
|
+
default: undefined;
|
|
37
43
|
};
|
|
38
44
|
hoursFilter: {
|
|
39
|
-
type: PropType<
|
|
45
|
+
type: PropType<DateTimePickerFilterFunction>;
|
|
40
46
|
default: undefined;
|
|
41
47
|
};
|
|
42
48
|
minutesFilter: {
|
|
43
|
-
type: PropType<
|
|
49
|
+
type: PropType<DateTimePickerFilterFunction>;
|
|
44
50
|
default: undefined;
|
|
45
51
|
};
|
|
46
52
|
size: {
|
|
@@ -77,19 +83,23 @@ declare const _default: import("vue2").ComponentOptions<import("vue2").default,
|
|
|
77
83
|
};
|
|
78
84
|
}, import("@vue/composition-api").ExtractPropTypes<{
|
|
79
85
|
modelValue: {
|
|
80
|
-
type:
|
|
86
|
+
type: PropType<DateTimePickerModelValue>;
|
|
81
87
|
default: undefined;
|
|
82
88
|
};
|
|
83
89
|
format: {
|
|
84
90
|
type: PropType<"auto" | "h12" | "h23">;
|
|
85
|
-
default:
|
|
91
|
+
default: undefined;
|
|
92
|
+
};
|
|
93
|
+
locale: {
|
|
94
|
+
type: StringConstructor;
|
|
95
|
+
default: undefined;
|
|
86
96
|
};
|
|
87
97
|
hoursFilter: {
|
|
88
|
-
type: PropType<
|
|
98
|
+
type: PropType<DateTimePickerFilterFunction>;
|
|
89
99
|
default: undefined;
|
|
90
100
|
};
|
|
91
101
|
minutesFilter: {
|
|
92
|
-
type: PropType<
|
|
102
|
+
type: PropType<DateTimePickerFilterFunction>;
|
|
93
103
|
default: undefined;
|
|
94
104
|
};
|
|
95
105
|
size: {
|
|
@@ -125,10 +135,11 @@ declare const _default: import("vue2").ComponentOptions<import("vue2").default,
|
|
|
125
135
|
default: boolean;
|
|
126
136
|
};
|
|
127
137
|
}>> & Omit<import("vue2").VueConstructor<import("vue2").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
|
|
128
|
-
modelValue:
|
|
138
|
+
modelValue: DateTimePickerModelValue;
|
|
129
139
|
format: "auto" | "h12" | "h23";
|
|
130
|
-
|
|
131
|
-
|
|
140
|
+
locale: string;
|
|
141
|
+
hoursFilter: DateTimePickerFilterFunction;
|
|
142
|
+
minutesFilter: DateTimePickerFilterFunction;
|
|
132
143
|
size: "m" | "s";
|
|
133
144
|
label: string;
|
|
134
145
|
hint: string;
|
|
@@ -141,6 +152,7 @@ declare const _default: import("vue2").ComponentOptions<import("vue2").default,
|
|
|
141
152
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
142
153
|
}, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
143
154
|
root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
|
|
155
|
+
rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
144
156
|
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
157
|
[x: string]: ((...args: any[]) => any) | null;
|
|
146
158
|
} | string[], {} & {}, {
|
|
@@ -153,22 +165,24 @@ declare const _default: import("vue2").ComponentOptions<import("vue2").default,
|
|
|
153
165
|
[x: number]: string;
|
|
154
166
|
} | {}, true> | undefined>;
|
|
155
167
|
popoverState: import("@vue/composition-api").ComputedRef<undefined>;
|
|
156
|
-
rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
157
168
|
popoverStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
169
|
+
resolvedFormat: import("@vue/composition-api").ComputedRef<"auto" | "h12" | "h23">;
|
|
170
|
+
resolvedLocale: import("@vue/composition-api").ComputedRef<string>;
|
|
158
171
|
initialValue: import("@vue/composition-api").Ref<Date>;
|
|
159
|
-
proxyModelValue: import("../../hooks").UseProxyModelValueReturn<
|
|
160
|
-
draftModelValue: import("@vue/composition-api").Ref<
|
|
172
|
+
proxyModelValue: import("../../hooks").UseProxyModelValueReturn<DateTimePickerModelValue>;
|
|
173
|
+
draftModelValue: import("@vue/composition-api").Ref<DateTimePickerModelValue>;
|
|
161
174
|
isInvalidDraftModelValue: import("@vue/composition-api").ComputedRef<boolean>;
|
|
162
175
|
apply: () => void;
|
|
163
176
|
reset: () => void;
|
|
164
177
|
openPopover: () => void;
|
|
165
178
|
closePopover: () => void;
|
|
166
|
-
formatTimeAlt: (value
|
|
179
|
+
formatTimeAlt: (value: DateTimePickerModelValue) => string;
|
|
167
180
|
}>, import("@vue/composition-api").Data, {}, {}, {}, {}, string[], {
|
|
168
|
-
modelValue:
|
|
181
|
+
modelValue: DateTimePickerModelValue;
|
|
169
182
|
format: "auto" | "h12" | "h23";
|
|
170
|
-
|
|
171
|
-
|
|
183
|
+
locale: string;
|
|
184
|
+
hoursFilter: DateTimePickerFilterFunction;
|
|
185
|
+
minutesFilter: DateTimePickerFilterFunction;
|
|
172
186
|
size: "m" | "s";
|
|
173
187
|
label: string;
|
|
174
188
|
hint: string;
|
|
@@ -180,10 +194,11 @@ declare const _default: import("vue2").ComponentOptions<import("vue2").default,
|
|
|
180
194
|
} & {} & {
|
|
181
195
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
182
196
|
}, {
|
|
183
|
-
modelValue:
|
|
197
|
+
modelValue: DateTimePickerModelValue;
|
|
184
198
|
format: "auto" | "h12" | "h23";
|
|
185
|
-
|
|
186
|
-
|
|
199
|
+
locale: string;
|
|
200
|
+
hoursFilter: DateTimePickerFilterFunction;
|
|
201
|
+
minutesFilter: DateTimePickerFilterFunction;
|
|
187
202
|
size: "m" | "s";
|
|
188
203
|
label: string;
|
|
189
204
|
hint: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { _ as OrTimePickerV3 } from '../../OrTimePicker-
|
|
1
|
+
export { _ as OrTimePickerV3 } from '../../OrTimePicker-7878d2c8.js';
|
|
2
2
|
import 'vue-demi';
|
|
3
3
|
import '../../dropdown-open-06d651cf.js';
|
|
4
4
|
import '@vueuse/core';
|
|
@@ -8,7 +8,7 @@ import 'lodash/get';
|
|
|
8
8
|
import '../../useProxyModelValue-940010d2.js';
|
|
9
9
|
import '@onereach/styles/tailwind/plugins/core';
|
|
10
10
|
import '@onereach/styles/tailwind.config.json';
|
|
11
|
-
import '../../OrDateTimePicker.vue_rollup-plugin-vue_script-
|
|
11
|
+
import '../../OrDateTimePicker.vue_rollup-plugin-vue_script-b7ca34e8.js';
|
|
12
12
|
import '../../OrError-b25d782d.js';
|
|
13
13
|
import '../../normalize-component-6e8e3d80.js';
|
|
14
14
|
import '../../OrHint-2fe1157b.js';
|
|
@@ -29,9 +29,9 @@ import '../../isPrevented-6994b101.js';
|
|
|
29
29
|
import '../../isAncestor-9acec98b.js';
|
|
30
30
|
import '../../OrInputBox-1a8fda9b.js';
|
|
31
31
|
import '../../OrInputBox.vue_rollup-plugin-vue_script-8c39b9ca.js';
|
|
32
|
-
import '../../OrLabel-
|
|
33
|
-
import '../../OrDateTimePickerTimeSelect-
|
|
34
|
-
import '../../getTimePlaceholder-
|
|
32
|
+
import '../../OrLabel-b0805497.js';
|
|
33
|
+
import '../../OrDateTimePickerTimeSelect-3fa9a7c7.js';
|
|
34
|
+
import '../../getTimePlaceholder-9d18b5ac.js';
|
|
35
35
|
import '../../OrButton-e4e85817.js';
|
|
36
36
|
import '../../OrButton.vue_rollup-plugin-vue_script-199bb600.js';
|
|
37
37
|
import '../../OrLoader-4ac49224.js';
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { PropType } from 'vue-demi';
|
|
2
|
-
import {
|
|
2
|
+
import { DateTimePickerModelValue } from '../or-date-time-picker-v3';
|
|
3
3
|
import { InputBoxSize } from '../or-input-box-v3';
|
|
4
|
+
import { TimeRangePickerModelValue } from './types';
|
|
4
5
|
declare const _default: import("vue2").ComponentOptions<import("vue2").default, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
5
6
|
root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
|
|
7
|
+
rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
6
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, {
|
|
7
9
|
[x: string]: ((...args: any[]) => any) | null;
|
|
8
10
|
} | string[], {} & {}, {
|
|
@@ -15,30 +17,36 @@ declare const _default: import("vue2").ComponentOptions<import("vue2").default,
|
|
|
15
17
|
[x: number]: string;
|
|
16
18
|
} | {}, true> | undefined>;
|
|
17
19
|
popoverState: import("@vue/composition-api").ComputedRef<undefined>;
|
|
18
|
-
rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
19
20
|
popoverStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
resolvedFormat: import("@vue/composition-api").ComputedRef<"auto" | "h12" | "h23">;
|
|
22
|
+
resolvedLocale: import("@vue/composition-api").ComputedRef<string>;
|
|
23
|
+
initialValueFrom: import("@vue/composition-api").Ref<Date>;
|
|
24
|
+
initialValueTo: import("@vue/composition-api").Ref<Date>;
|
|
25
|
+
proxyModelValue: import("../../hooks").UseProxyModelValueReturn<TimeRangePickerModelValue>;
|
|
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>;
|
|
25
29
|
selectedControl: import("@vue/composition-api").Ref<"from" | "to">;
|
|
26
30
|
isInvalidDraftModelValue: import("@vue/composition-api").ComputedRef<boolean>;
|
|
27
31
|
apply: () => void;
|
|
28
32
|
reset: () => void;
|
|
29
33
|
openPopover: (control: 'from' | 'to') => void;
|
|
30
34
|
closePopover: () => void;
|
|
31
|
-
formatTimeAlt: (value
|
|
35
|
+
formatTimeAlt: (value: DateTimePickerModelValue) => string;
|
|
32
36
|
isDesktop: import("@vue/composition-api").ComputedRef<boolean>;
|
|
33
37
|
isMobile: import("@vue/composition-api").ComputedRef<boolean>;
|
|
34
38
|
}> & import("@vue/composition-api").Data, {}, {}, {
|
|
35
39
|
modelValue: {
|
|
36
|
-
type: PropType<
|
|
40
|
+
type: PropType<TimeRangePickerModelValue>;
|
|
37
41
|
default: undefined;
|
|
38
42
|
};
|
|
39
43
|
format: {
|
|
40
44
|
type: PropType<"auto" | "h12" | "h23">;
|
|
41
|
-
default:
|
|
45
|
+
default: undefined;
|
|
46
|
+
};
|
|
47
|
+
locale: {
|
|
48
|
+
type: StringConstructor;
|
|
49
|
+
default: undefined;
|
|
42
50
|
};
|
|
43
51
|
size: {
|
|
44
52
|
type: PropType<"m" | "s">;
|
|
@@ -74,12 +82,16 @@ declare const _default: import("vue2").ComponentOptions<import("vue2").default,
|
|
|
74
82
|
};
|
|
75
83
|
}, import("@vue/composition-api").ExtractPropTypes<{
|
|
76
84
|
modelValue: {
|
|
77
|
-
type: PropType<
|
|
85
|
+
type: PropType<TimeRangePickerModelValue>;
|
|
78
86
|
default: undefined;
|
|
79
87
|
};
|
|
80
88
|
format: {
|
|
81
89
|
type: PropType<"auto" | "h12" | "h23">;
|
|
82
|
-
default:
|
|
90
|
+
default: undefined;
|
|
91
|
+
};
|
|
92
|
+
locale: {
|
|
93
|
+
type: StringConstructor;
|
|
94
|
+
default: undefined;
|
|
83
95
|
};
|
|
84
96
|
size: {
|
|
85
97
|
type: PropType<"m" | "s">;
|
|
@@ -114,8 +126,9 @@ declare const _default: import("vue2").ComponentOptions<import("vue2").default,
|
|
|
114
126
|
default: boolean;
|
|
115
127
|
};
|
|
116
128
|
}>> & Omit<import("vue2").VueConstructor<import("vue2").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
|
|
117
|
-
modelValue:
|
|
129
|
+
modelValue: TimeRangePickerModelValue;
|
|
118
130
|
format: "auto" | "h12" | "h23";
|
|
131
|
+
locale: string;
|
|
119
132
|
size: "m" | "s";
|
|
120
133
|
label: string;
|
|
121
134
|
hint: string;
|
|
@@ -128,6 +141,7 @@ declare const _default: import("vue2").ComponentOptions<import("vue2").default,
|
|
|
128
141
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
129
142
|
}, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
130
143
|
root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
|
|
144
|
+
rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
131
145
|
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, {
|
|
132
146
|
[x: string]: ((...args: any[]) => any) | null;
|
|
133
147
|
} | string[], {} & {}, {
|
|
@@ -140,25 +154,28 @@ declare const _default: import("vue2").ComponentOptions<import("vue2").default,
|
|
|
140
154
|
[x: number]: string;
|
|
141
155
|
} | {}, true> | undefined>;
|
|
142
156
|
popoverState: import("@vue/composition-api").ComputedRef<undefined>;
|
|
143
|
-
rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
144
157
|
popoverStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
158
|
+
resolvedFormat: import("@vue/composition-api").ComputedRef<"auto" | "h12" | "h23">;
|
|
159
|
+
resolvedLocale: import("@vue/composition-api").ComputedRef<string>;
|
|
160
|
+
initialValueFrom: import("@vue/composition-api").Ref<Date>;
|
|
161
|
+
initialValueTo: import("@vue/composition-api").Ref<Date>;
|
|
162
|
+
proxyModelValue: import("../../hooks").UseProxyModelValueReturn<TimeRangePickerModelValue>;
|
|
163
|
+
draftModelValue: import("@vue/composition-api").Ref<[DateTimePickerModelValue, DateTimePickerModelValue]>;
|
|
164
|
+
draftModelValueFrom: import("@vue/composition-api").WritableComputedRef<DateTimePickerModelValue>;
|
|
165
|
+
draftModelValueTo: import("@vue/composition-api").WritableComputedRef<DateTimePickerModelValue>;
|
|
150
166
|
selectedControl: import("@vue/composition-api").Ref<"from" | "to">;
|
|
151
167
|
isInvalidDraftModelValue: import("@vue/composition-api").ComputedRef<boolean>;
|
|
152
168
|
apply: () => void;
|
|
153
169
|
reset: () => void;
|
|
154
170
|
openPopover: (control: 'from' | 'to') => void;
|
|
155
171
|
closePopover: () => void;
|
|
156
|
-
formatTimeAlt: (value
|
|
172
|
+
formatTimeAlt: (value: DateTimePickerModelValue) => string;
|
|
157
173
|
isDesktop: import("@vue/composition-api").ComputedRef<boolean>;
|
|
158
174
|
isMobile: import("@vue/composition-api").ComputedRef<boolean>;
|
|
159
175
|
}>, import("@vue/composition-api").Data, {}, {}, {}, {}, string[], {
|
|
160
|
-
modelValue:
|
|
176
|
+
modelValue: TimeRangePickerModelValue;
|
|
161
177
|
format: "auto" | "h12" | "h23";
|
|
178
|
+
locale: string;
|
|
162
179
|
size: "m" | "s";
|
|
163
180
|
label: string;
|
|
164
181
|
hint: string;
|
|
@@ -170,8 +187,9 @@ declare const _default: import("vue2").ComponentOptions<import("vue2").default,
|
|
|
170
187
|
} & {} & {
|
|
171
188
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
172
189
|
}, {
|
|
173
|
-
modelValue:
|
|
190
|
+
modelValue: TimeRangePickerModelValue;
|
|
174
191
|
format: "auto" | "h12" | "h23";
|
|
192
|
+
locale: string;
|
|
175
193
|
size: "m" | "s";
|
|
176
194
|
label: string;
|
|
177
195
|
hint: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { _ as OrTimeRangePickerV3 } from '../../OrTimeRangePicker-
|
|
1
|
+
export { _ as OrTimeRangePickerV3 } from '../../OrTimeRangePicker-bee857dc.js';
|
|
2
2
|
import 'vue-demi';
|
|
3
3
|
import '../../dropdown-open-06d651cf.js';
|
|
4
4
|
import '@vueuse/core';
|
|
@@ -9,7 +9,7 @@ import '../../useProxyModelValue-940010d2.js';
|
|
|
9
9
|
import '../../useResponsive-1baf3485.js';
|
|
10
10
|
import '@onereach/styles/tailwind/plugins/core';
|
|
11
11
|
import '@onereach/styles/tailwind.config.json';
|
|
12
|
-
import '../../OrDateTimePicker.vue_rollup-plugin-vue_script-
|
|
12
|
+
import '../../OrDateTimePicker.vue_rollup-plugin-vue_script-b7ca34e8.js';
|
|
13
13
|
import '../../OrError-b25d782d.js';
|
|
14
14
|
import '../../normalize-component-6e8e3d80.js';
|
|
15
15
|
import '../../OrHint-2fe1157b.js';
|
|
@@ -29,9 +29,9 @@ import '../../isPrevented-6994b101.js';
|
|
|
29
29
|
import '../../isAncestor-9acec98b.js';
|
|
30
30
|
import '../../OrInputBox-1a8fda9b.js';
|
|
31
31
|
import '../../OrInputBox.vue_rollup-plugin-vue_script-8c39b9ca.js';
|
|
32
|
-
import '../../OrLabel-
|
|
33
|
-
import '../../OrDateTimePickerTimeSelect-
|
|
34
|
-
import '../../getTimePlaceholder-
|
|
32
|
+
import '../../OrLabel-b0805497.js';
|
|
33
|
+
import '../../OrDateTimePickerTimeSelect-3fa9a7c7.js';
|
|
34
|
+
import '../../getTimePlaceholder-9d18b5ac.js';
|
|
35
35
|
import '../../OrButton-e4e85817.js';
|
|
36
36
|
import '../../OrButton.vue_rollup-plugin-vue_script-199bb600.js';
|
|
37
37
|
import '../../OrLoader-4ac49224.js';
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
function formatDate(value, format, locale) {
|
|
2
|
+
return value.toLocaleString(locale, {
|
|
3
|
+
dateStyle: format,
|
|
4
|
+
timeZone: 'UTC'
|
|
5
|
+
});
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
var DateTimePickerDateFormat;
|
|
9
|
+
(function (DateTimePickerDateFormat) {
|
|
10
|
+
DateTimePickerDateFormat["Short"] = "short";
|
|
11
|
+
DateTimePickerDateFormat["Medium"] = "medium";
|
|
12
|
+
DateTimePickerDateFormat["Long"] = "long";
|
|
13
|
+
})(DateTimePickerDateFormat || (DateTimePickerDateFormat = {}));
|
|
14
|
+
var DateTimePickerTimeFormat;
|
|
15
|
+
(function (DateTimePickerTimeFormat) {
|
|
16
|
+
DateTimePickerTimeFormat["Auto"] = "auto";
|
|
17
|
+
DateTimePickerTimeFormat["H12"] = "h12";
|
|
18
|
+
DateTimePickerTimeFormat["H23"] = "h23";
|
|
19
|
+
})(DateTimePickerTimeFormat || (DateTimePickerTimeFormat = {}));
|
|
20
|
+
|
|
21
|
+
function formatTime(value, format, locale) {
|
|
22
|
+
return value.toLocaleString(locale, {
|
|
23
|
+
timeStyle: 'short',
|
|
24
|
+
hourCycle: format !== DateTimePickerTimeFormat.Auto ? format : undefined,
|
|
25
|
+
timeZone: 'UTC'
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
function getDatePlaceholder(format, locale) {
|
|
30
|
+
const formatter = new Intl.DateTimeFormat(locale, {
|
|
31
|
+
dateStyle: format,
|
|
32
|
+
timeZone: 'UTC'
|
|
33
|
+
});
|
|
34
|
+
return formatter.formatToParts(Date.UTC(0, 0)).reduce((accumulator, part) => {
|
|
35
|
+
switch (part.type) {
|
|
36
|
+
case 'year':
|
|
37
|
+
return accumulator + part.value.replace(/^\d{2}$/, 'YY').replace(/^\d{4}$/, 'YYYY');
|
|
38
|
+
case 'month':
|
|
39
|
+
switch (format) {
|
|
40
|
+
case 'short':
|
|
41
|
+
return accumulator + part.value.replace(/^\d{1}$/, 'M').replace(/^\d{2}$/, 'MM');
|
|
42
|
+
case 'medium':
|
|
43
|
+
return accumulator + 'MMM';
|
|
44
|
+
case 'long':
|
|
45
|
+
return accumulator + 'MMMM';
|
|
46
|
+
default:
|
|
47
|
+
throw new Error();
|
|
48
|
+
}
|
|
49
|
+
case 'day':
|
|
50
|
+
return accumulator + part.value.replace(/^\d{1}$/, 'D').replace(/^\d{2}$/, 'DD');
|
|
51
|
+
default:
|
|
52
|
+
return accumulator + part.value;
|
|
53
|
+
}
|
|
54
|
+
}, '');
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
function getTimePlaceholder(format, locale) {
|
|
58
|
+
const formatter = new Intl.DateTimeFormat(locale, {
|
|
59
|
+
timeStyle: 'short',
|
|
60
|
+
hourCycle: format !== DateTimePickerTimeFormat.Auto ? format : undefined,
|
|
61
|
+
timeZone: 'UTC'
|
|
62
|
+
});
|
|
63
|
+
return formatter.formatToParts(Date.UTC(0, 0)).reduce((accumulator, part) => {
|
|
64
|
+
switch (part.type) {
|
|
65
|
+
case 'hour':
|
|
66
|
+
return accumulator + part.value.replace(/^\d{1}$/, 'H').replace(/^\d{2}$/, 'HH');
|
|
67
|
+
case 'minute':
|
|
68
|
+
return accumulator + part.value.replace(/^\d{1}$/, 'M').replace(/^\d{2}$/, 'MM');
|
|
69
|
+
case 'dayPeriod':
|
|
70
|
+
return accumulator + 'A';
|
|
71
|
+
default:
|
|
72
|
+
return accumulator + part.value;
|
|
73
|
+
}
|
|
74
|
+
}, '');
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export { DateTimePickerDateFormat as D, DateTimePickerTimeFormat as a, formatTime as b, getTimePlaceholder as c, formatDate as f, getDatePlaceholder as g };
|