@onereach/ui-components 4.1.1-beta.2541.0 → 4.1.1
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/components/OrButtonV3/styles.js +1 -3
- package/dist/bundled/v2/components/OrCheckboxV3/styles.js +1 -1
- package/dist/bundled/v2/components/OrInputBoxV3/styles.js +7 -7
- package/dist/bundled/v2/components/OrMenuV3/OrMenu.js +1 -6
- package/dist/bundled/v2/components/OrMenuV3/OrMenu.vue.d.ts +0 -2
- package/dist/bundled/v2/components/OrRadioV3/styles.js +1 -1
- package/dist/bundled/v2/components/OrSelectV3/OrSelect.js +3 -1
- package/dist/bundled/v2/components/OrSelectV3/index.js +1 -1
- package/dist/bundled/v2/components/OrSwitchV3/styles.js +1 -1
- package/dist/bundled/v2/components/index.d.ts +3 -6
- package/dist/bundled/v2/components/index.js +9 -25
- package/dist/bundled/v2/directives/dropdown-close.js +0 -1
- package/dist/bundled/v2/directives/dropdown-open.js +1 -6
- package/dist/bundled/v2/index.js +7 -23
- package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-ddb8a48b.js → OrCardCollection.vue_vue_type_script_lang-843e396a.js} +3 -3
- package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-3981e810.js → OrConfirm.vue_vue_type_script_lang-d069c95f.js} +2 -2
- package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-f1f53512.js → OrInput.vue_vue_type_script_lang-fe526531.js} +1 -1
- package/dist/bundled/v3/{OrMenu.vue_vue_type_script_lang-64369843.js → OrMenu.vue_vue_type_script_lang-4772731e.js} +1 -6
- package/dist/bundled/v3/{OrPagination.vue_vue_type_script_lang-5c2c0ef9.js → OrPagination.vue_vue_type_script_lang-ddef5272.js} +2 -2
- package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-cb158795.js → OrSearch.vue_vue_type_script_lang-36ad17a9.js} +1 -1
- package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-dfb75069.js → OrSelect.vue_vue_type_script_lang-f7601423.js} +7 -5
- package/dist/bundled/v3/{OrTabs.vue_vue_type_script_lang-62e0aa25.js → OrTabs.vue_vue_type_script_lang-4f5e0d90.js} +1 -1
- package/dist/bundled/v3/{OrTextarea.vue_vue_type_script_lang-f287189f.js → OrTextarea.vue_vue_type_script_lang-2e216875.js} +1 -1
- package/dist/bundled/v3/components/OrButtonV3/OrButton.js +2 -2
- package/dist/bundled/v3/components/OrButtonV3/index.js +1 -1
- package/dist/bundled/v3/components/OrButtonV3/styles.js +1 -3
- package/dist/bundled/v3/components/OrCardCollectionV3/OrCardCollection.js +7 -7
- package/dist/bundled/v3/components/OrCardCollectionV3/index.js +6 -6
- package/dist/bundled/v3/components/OrCheckboxV3/OrCheckbox.js +2 -2
- 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/OrConfirmV3/OrConfirm.js +5 -5
- package/dist/bundled/v3/components/OrConfirmV3/index.js +4 -4
- package/dist/bundled/v3/components/OrInputBoxV3/OrInputBox.js +2 -2
- package/dist/bundled/v3/components/OrInputBoxV3/index.js +1 -1
- package/dist/bundled/v3/components/OrInputBoxV3/styles.js +7 -7
- package/dist/bundled/v3/components/OrInputV3/OrInput.js +3 -3
- package/dist/bundled/v3/components/OrInputV3/index.js +2 -2
- package/dist/bundled/v3/components/OrMenuV3/OrMenu.js +2 -2
- package/dist/bundled/v3/components/OrMenuV3/OrMenu.vue.d.ts +0 -2
- package/dist/bundled/v3/components/OrMenuV3/index.js +1 -1
- package/dist/bundled/v3/components/OrPaginationV3/OrPagination.js +4 -4
- package/dist/bundled/v3/components/OrPaginationV3/index.js +3 -3
- package/dist/bundled/v3/components/OrRadioV3/OrRadio.js +2 -2
- 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/OrSearchV3/OrSearch.js +4 -4
- package/dist/bundled/v3/components/OrSearchV3/index.js +3 -3
- package/dist/bundled/v3/components/OrSelectV3/OrSelect.js +6 -6
- package/dist/bundled/v3/components/OrSelectV3/index.js +5 -5
- package/dist/bundled/v3/components/OrSwitchV3/OrSwitch.js +2 -2
- 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/OrTabsV3/OrTabs.js +3 -3
- package/dist/bundled/v3/components/OrTabsV3/index.js +2 -2
- package/dist/bundled/v3/components/OrTextareaV3/OrTextarea.js +3 -3
- package/dist/bundled/v3/components/OrTextareaV3/index.js +2 -2
- package/dist/bundled/v3/components/index.d.ts +3 -6
- package/dist/bundled/v3/components/index.js +22 -38
- package/dist/bundled/v3/directives/dropdown-close.js +0 -1
- package/dist/bundled/v3/directives/dropdown-open.js +1 -6
- package/dist/bundled/v3/index.js +27 -46
- package/dist/esm/v2/{OrButton-9622e713.js → OrButton-6b60a776.js} +1 -3
- package/dist/esm/v2/{OrCardCollection-37e07aee.js → OrCardCollection-6b43a9b2.js} +4 -4
- package/dist/esm/v2/{OrCheckbox-f26dde41.js → OrCheckbox-dc587ec9.js} +1 -1
- package/dist/esm/v2/{OrConfirm-dc082874.js → OrConfirm-92e39afe.js} +2 -2
- package/dist/esm/v2/{OrInput-9e5d01ca.js → OrInput-6370bd94.js} +2 -2
- package/dist/esm/v2/{OrInputBox-d36b1323.js → OrInputBox-6b1aec08.js} +1 -1
- package/dist/esm/v2/{OrInputBox.vue_rollup-plugin-vue_script-fe250f7a.js → OrInputBox.vue_rollup-plugin-vue_script-23426690.js} +8 -8
- package/dist/esm/v2/{OrMenu-b2f98f30.js → OrMenu-fce31ed4.js} +1 -6
- package/dist/esm/v2/{OrPagination-94986010.js → OrPagination-ad0e1d23.js} +2 -2
- package/dist/esm/v2/{OrRadio-a812088f.js → OrRadio-26031dd3.js} +1 -1
- package/dist/esm/v2/{OrSearch-1f845d8f.js → OrSearch-a3038272.js} +2 -2
- package/dist/esm/v2/{OrSelect-9387e798.js → OrSelect-40183874.js} +7 -5
- package/dist/esm/v2/{OrSwitch-9fae0bae.js → OrSwitch-823f71a6.js} +1 -1
- package/dist/esm/v2/{OrTabs-e2dbfd20.js → OrTabs-58881ef9.js} +1 -1
- package/dist/esm/v2/{OrTextarea-800f63d4.js → OrTextarea-2d5d0be6.js} +2 -2
- package/dist/esm/v2/components/index.d.ts +3 -6
- package/dist/esm/v2/components/index.js +17 -23
- package/dist/esm/v2/components/or-button-v3/index.js +1 -1
- package/dist/esm/v2/components/or-card-collection-v3/index.js +7 -7
- package/dist/esm/v2/components/or-checkbox-v3/index.js +1 -1
- package/dist/esm/v2/components/or-combined-input-v3/index.js +2 -2
- package/dist/esm/v2/components/or-confirm-v3/index.js +5 -5
- package/dist/esm/v2/components/or-input-box-v3/index.js +2 -2
- package/dist/esm/v2/components/or-input-v3/index.js +3 -3
- package/dist/esm/v2/components/or-menu-v3/OrMenu.vue.d.ts +0 -2
- package/dist/esm/v2/components/or-menu-v3/index.js +1 -1
- package/dist/esm/v2/components/or-pagination-v3/index.js +3 -3
- package/dist/esm/v2/components/or-radio-v3/index.js +1 -1
- package/dist/esm/v2/components/or-search-v3/index.js +4 -4
- package/dist/esm/v2/components/or-select-v3/index.js +6 -6
- package/dist/esm/v2/components/or-switch-v3/index.js +1 -1
- package/dist/esm/v2/components/or-tabs-v3/index.js +2 -2
- package/dist/esm/v2/components/or-textarea-v3/index.js +3 -3
- package/dist/esm/v2/directives/index.js +1 -1
- package/dist/esm/v2/{dropdown-open-e1f90e0a.js → dropdown-open-0d314aa4.js} +1 -7
- package/dist/esm/v2/index.js +17 -23
- package/dist/esm/v3/{OrButton-c2b6aa9e.js → OrButton-8558588c.js} +1 -3
- package/dist/esm/v3/{OrCardCollection-98497ba1.js → OrCardCollection-631cb8e3.js} +4 -4
- package/dist/esm/v3/{OrCheckbox-e9cb1bf3.js → OrCheckbox-56f849f7.js} +1 -1
- package/dist/esm/v3/{OrConfirm-6c8cf960.js → OrConfirm-b0c7f796.js} +2 -2
- package/dist/esm/v3/{OrInput-59cefc84.js → OrInput-a43b53d2.js} +1 -1
- package/dist/esm/v3/{OrInputBox-ba40bbdf.js → OrInputBox-11389afd.js} +8 -8
- package/dist/esm/v3/{OrMenu-c8876a6b.js → OrMenu-f8132f3e.js} +1 -6
- package/dist/esm/v3/{OrPagination-c1183308.js → OrPagination-1e334ccd.js} +2 -2
- package/dist/esm/v3/{OrRadio-a6c88f29.js → OrRadio-a890ee7c.js} +1 -1
- package/dist/esm/v3/{OrSearch-07b723b8.js → OrSearch-d5d46937.js} +2 -2
- package/dist/esm/v3/{OrSelect-b6d9d320.js → OrSelect-5502d82d.js} +6 -4
- package/dist/esm/v3/{OrSwitch-594f5a63.js → OrSwitch-97096491.js} +1 -1
- package/dist/esm/v3/{OrTabs-ae2c86c4.js → OrTabs-f667cf9f.js} +1 -1
- package/dist/esm/v3/{OrTextarea-fa1454e3.js → OrTextarea-08b22d36.js} +1 -1
- package/dist/esm/v3/components/index.d.ts +3 -6
- package/dist/esm/v3/components/index.js +16 -22
- package/dist/esm/v3/components/or-button-v3/index.js +1 -1
- package/dist/esm/v3/components/or-card-collection-v3/index.js +6 -6
- package/dist/esm/v3/components/or-checkbox-v3/index.js +1 -1
- package/dist/esm/v3/components/or-combined-input-v3/index.js +2 -2
- package/dist/esm/v3/components/or-confirm-v3/index.js +4 -4
- package/dist/esm/v3/components/or-input-box-v3/index.js +1 -1
- package/dist/esm/v3/components/or-input-v3/index.js +2 -2
- package/dist/esm/v3/components/or-menu-v3/OrMenu.vue.d.ts +0 -2
- package/dist/esm/v3/components/or-menu-v3/index.js +1 -1
- package/dist/esm/v3/components/or-pagination-v3/index.js +3 -3
- package/dist/esm/v3/components/or-radio-v3/index.js +1 -1
- package/dist/esm/v3/components/or-search-v3/index.js +3 -3
- package/dist/esm/v3/components/or-select-v3/index.js +5 -5
- package/dist/esm/v3/components/or-switch-v3/index.js +1 -1
- package/dist/esm/v3/components/or-tabs-v3/index.js +2 -2
- package/dist/esm/v3/components/or-textarea-v3/index.js +2 -2
- package/dist/esm/v3/directives/index.js +1 -1
- package/dist/esm/v3/{dropdown-open-e1f90e0a.js → dropdown-open-0d314aa4.js} +1 -7
- package/dist/esm/v3/index.js +16 -22
- package/package.json +4 -3
- package/src/components/index.ts +3 -6
- package/src/components/or-button-v3/styles.ts +1 -5
- package/src/components/or-checkbox-v3/OrCheckbox.stories3.ts +1 -1
- package/src/components/or-checkbox-v3/styles.ts +2 -2
- package/src/components/or-combined-input-v3/OrCombinedInput.stories3.ts +1 -1
- package/src/components/{or-date-picker-v3/OrDatePicker.docs.mdx → or-error-v3/OrError.docs.mdx} +1 -1
- package/src/components/or-error-v3/OrError.stories3.ts +77 -0
- package/src/components/{or-time-picker-v3/OrTimePicker.docs.mdx → or-hint-v3/OrHint.docs.mdx} +1 -1
- package/src/components/or-hint-v3/OrHint.stories3.ts +77 -0
- package/src/components/or-inline-input-box-v3/OrInlineInputBox.docs.mdx +3 -0
- package/src/components/or-inline-input-box-v3/OrInlineInputBox.stories3.ts +67 -0
- package/src/components/or-inline-input-v3/OrInlineInput.stories3.ts +1 -1
- package/src/components/or-inline-textarea-v3/OrInlineTextarea.stories3.ts +1 -1
- package/src/components/or-input-box-v3/OrInputBox.docs.mdx +3 -0
- package/src/components/or-input-box-v3/OrInputBox.stories3.ts +80 -0
- package/src/components/or-input-box-v3/styles.ts +20 -20
- package/src/components/or-input-v3/OrInput.stories3.ts +2 -2
- package/src/components/or-label-v3/OrLabel.docs.mdx +11 -0
- package/src/components/or-label-v3/OrLabel.stories3.ts +91 -0
- package/src/components/or-menu-v3/OrMenu.vue +0 -3
- package/src/components/or-radio-v3/OrRadio.stories3.ts +1 -1
- package/src/components/or-radio-v3/styles.ts +2 -2
- package/src/components/or-segmented-control-v3/OrSegmentedControl.stories3.ts +1 -1
- package/src/components/or-select-v3/OrSelect.stories3.ts +117 -2
- package/src/components/or-select-v3/OrSelect.vue +1 -1
- package/src/components/or-switch-v3/OrSwitch.stories3.ts +1 -1
- package/src/components/or-switch-v3/styles.ts +2 -2
- package/src/components/or-textarea-v3/OrTextarea.stories3.ts +1 -1
- package/src/directives/dropdown-close.ts +0 -1
- package/src/directives/dropdown-open.ts +1 -7
- package/dist/bundled/v2/OrDateTimePickerMonthSelect-5aa2774a.js +0 -563
- package/dist/bundled/v2/OrDateTimePickerPopoverHeader-40001d2f.js +0 -218
- package/dist/bundled/v2/OrDateTimePickerTimeSelect-153a174a.js +0 -291
- package/dist/bundled/v2/components/OrDatePickerV3/OrDatePicker.js +0 -349
- package/dist/bundled/v2/components/OrDatePickerV3/OrDatePicker.vue.d.ts +0 -163
- package/dist/bundled/v2/components/OrDatePickerV3/index.d.ts +0 -2
- package/dist/bundled/v2/components/OrDatePickerV3/index.js +0 -56
- package/dist/bundled/v2/components/OrDatePickerV3/props.d.ts +0 -1
- package/dist/bundled/v2/components/OrDatePickerV3/props.js +0 -1
- package/dist/bundled/v2/components/OrDatePickerV3/styles.d.ts +0 -1
- package/dist/bundled/v2/components/OrDatePickerV3/styles.js +0 -7
- package/dist/bundled/v2/components/OrDateTimePickerV3/OrDateTimePicker.js +0 -461
- package/dist/bundled/v2/components/OrDateTimePickerV3/OrDateTimePicker.vue.d.ts +0 -193
- package/dist/bundled/v2/components/OrDateTimePickerV3/hooks/useDatePlaceholder.d.ts +0 -1
- package/dist/bundled/v2/components/OrDateTimePickerV3/hooks/useDatePlaceholder.js +0 -9
- package/dist/bundled/v2/components/OrDateTimePickerV3/hooks/useDefaultDate.d.ts +0 -1
- package/dist/bundled/v2/components/OrDateTimePickerV3/hooks/useDefaultDate.js +0 -5
- package/dist/bundled/v2/components/OrDateTimePickerV3/hooks/useDefaultHours.d.ts +0 -1
- package/dist/bundled/v2/components/OrDateTimePickerV3/hooks/useDefaultHours.js +0 -5
- package/dist/bundled/v2/components/OrDateTimePickerV3/hooks/useDefaultMinutes.d.ts +0 -1
- package/dist/bundled/v2/components/OrDateTimePickerV3/hooks/useDefaultMinutes.js +0 -5
- package/dist/bundled/v2/components/OrDateTimePickerV3/hooks/useDefaultMonth.d.ts +0 -1
- package/dist/bundled/v2/components/OrDateTimePickerV3/hooks/useDefaultMonth.js +0 -5
- package/dist/bundled/v2/components/OrDateTimePickerV3/hooks/useDefaultYear.d.ts +0 -1
- package/dist/bundled/v2/components/OrDateTimePickerV3/hooks/useDefaultYear.js +0 -5
- package/dist/bundled/v2/components/OrDateTimePickerV3/hooks/useTimePlaceholder.d.ts +0 -1
- package/dist/bundled/v2/components/OrDateTimePickerV3/hooks/useTimePlaceholder.js +0 -9
- package/dist/bundled/v2/components/OrDateTimePickerV3/index.d.ts +0 -2
- package/dist/bundled/v2/components/OrDateTimePickerV3/index.js +0 -58
- package/dist/bundled/v2/components/OrDateTimePickerV3/props.d.ts +0 -1
- package/dist/bundled/v2/components/OrDateTimePickerV3/props.js +0 -1
- package/dist/bundled/v2/components/OrDateTimePickerV3/styles.d.ts +0 -1
- package/dist/bundled/v2/components/OrDateTimePickerV3/styles.js +0 -7
- package/dist/bundled/v2/components/OrTimePickerV3/OrTimePicker.js +0 -333
- package/dist/bundled/v2/components/OrTimePickerV3/OrTimePicker.vue.d.ts +0 -163
- package/dist/bundled/v2/components/OrTimePickerV3/index.d.ts +0 -2
- package/dist/bundled/v2/components/OrTimePickerV3/index.js +0 -52
- package/dist/bundled/v2/components/OrTimePickerV3/props.d.ts +0 -1
- package/dist/bundled/v2/components/OrTimePickerV3/props.js +0 -1
- package/dist/bundled/v2/components/OrTimePickerV3/styles.d.ts +0 -1
- package/dist/bundled/v2/components/OrTimePickerV3/styles.js +0 -7
- package/dist/bundled/v3/OrDatePicker.vue_vue_type_script_lang-254d4344.js +0 -162
- package/dist/bundled/v3/OrDateTimePicker.vue_vue_type_script_lang-1f5577c9.js +0 -207
- package/dist/bundled/v3/OrDateTimePickerMonthSelect-90a1aed9.js +0 -477
- package/dist/bundled/v3/OrDateTimePickerPopoverHeader-a2ad9c79.js +0 -143
- package/dist/bundled/v3/OrDateTimePickerTimeSelect-55f86e80.js +0 -239
- package/dist/bundled/v3/OrTimePicker.vue_vue_type_script_lang-d6f6927c.js +0 -161
- package/dist/bundled/v3/components/OrDatePickerV3/OrDatePicker.js +0 -189
- package/dist/bundled/v3/components/OrDatePickerV3/OrDatePicker.vue.d.ts +0 -163
- package/dist/bundled/v3/components/OrDatePickerV3/index.d.ts +0 -2
- package/dist/bundled/v3/components/OrDatePickerV3/index.js +0 -70
- package/dist/bundled/v3/components/OrDatePickerV3/props.d.ts +0 -1
- package/dist/bundled/v3/components/OrDatePickerV3/props.js +0 -1
- package/dist/bundled/v3/components/OrDatePickerV3/styles.d.ts +0 -1
- package/dist/bundled/v3/components/OrDatePickerV3/styles.js +0 -7
- package/dist/bundled/v3/components/OrDateTimePickerV3/OrDateTimePicker.js +0 -243
- package/dist/bundled/v3/components/OrDateTimePickerV3/OrDateTimePicker.vue.d.ts +0 -193
- package/dist/bundled/v3/components/OrDateTimePickerV3/hooks/useDatePlaceholder.d.ts +0 -1
- package/dist/bundled/v3/components/OrDateTimePickerV3/hooks/useDatePlaceholder.js +0 -9
- package/dist/bundled/v3/components/OrDateTimePickerV3/hooks/useDefaultDate.d.ts +0 -1
- package/dist/bundled/v3/components/OrDateTimePickerV3/hooks/useDefaultDate.js +0 -5
- package/dist/bundled/v3/components/OrDateTimePickerV3/hooks/useDefaultHours.d.ts +0 -1
- package/dist/bundled/v3/components/OrDateTimePickerV3/hooks/useDefaultHours.js +0 -5
- package/dist/bundled/v3/components/OrDateTimePickerV3/hooks/useDefaultMinutes.d.ts +0 -1
- package/dist/bundled/v3/components/OrDateTimePickerV3/hooks/useDefaultMinutes.js +0 -5
- package/dist/bundled/v3/components/OrDateTimePickerV3/hooks/useDefaultMonth.d.ts +0 -1
- package/dist/bundled/v3/components/OrDateTimePickerV3/hooks/useDefaultMonth.js +0 -5
- package/dist/bundled/v3/components/OrDateTimePickerV3/hooks/useDefaultYear.d.ts +0 -1
- package/dist/bundled/v3/components/OrDateTimePickerV3/hooks/useDefaultYear.js +0 -5
- package/dist/bundled/v3/components/OrDateTimePickerV3/hooks/useTimePlaceholder.d.ts +0 -1
- package/dist/bundled/v3/components/OrDateTimePickerV3/hooks/useTimePlaceholder.js +0 -9
- package/dist/bundled/v3/components/OrDateTimePickerV3/index.d.ts +0 -2
- package/dist/bundled/v3/components/OrDateTimePickerV3/index.js +0 -72
- package/dist/bundled/v3/components/OrDateTimePickerV3/props.d.ts +0 -1
- package/dist/bundled/v3/components/OrDateTimePickerV3/props.js +0 -1
- package/dist/bundled/v3/components/OrDateTimePickerV3/styles.d.ts +0 -1
- package/dist/bundled/v3/components/OrDateTimePickerV3/styles.js +0 -7
- package/dist/bundled/v3/components/OrTimePickerV3/OrTimePicker.js +0 -178
- package/dist/bundled/v3/components/OrTimePickerV3/OrTimePicker.vue.d.ts +0 -163
- package/dist/bundled/v3/components/OrTimePickerV3/index.d.ts +0 -2
- package/dist/bundled/v3/components/OrTimePickerV3/index.js +0 -64
- package/dist/bundled/v3/components/OrTimePickerV3/props.d.ts +0 -1
- package/dist/bundled/v3/components/OrTimePickerV3/props.js +0 -1
- package/dist/bundled/v3/components/OrTimePickerV3/styles.d.ts +0 -1
- package/dist/bundled/v3/components/OrTimePickerV3/styles.js +0 -7
- package/dist/esm/v2/OrDatePicker-0cdd933a.js +0 -313
- package/dist/esm/v2/OrDateTimePicker-76455cd3.js +0 -424
- package/dist/esm/v2/OrDateTimePickerMonthSelect-439fb0d1.js +0 -564
- package/dist/esm/v2/OrDateTimePickerPopoverHeader-ad3792f8.js +0 -235
- package/dist/esm/v2/OrDateTimePickerTimeSelect-821a843c.js +0 -292
- package/dist/esm/v2/OrTimePicker-1430220a.js +0 -301
- package/dist/esm/v2/components/or-date-picker-v3/OrDatePicker.vue.d.ts +0 -163
- package/dist/esm/v2/components/or-date-picker-v3/index.d.ts +0 -2
- package/dist/esm/v2/components/or-date-picker-v3/index.js +0 -27
- package/dist/esm/v2/components/or-date-picker-v3/props.d.ts +0 -1
- package/dist/esm/v2/components/or-date-picker-v3/styles.d.ts +0 -1
- package/dist/esm/v2/components/or-date-time-picker-v3/OrDateTimePicker.vue.d.ts +0 -193
- package/dist/esm/v2/components/or-date-time-picker-v3/hooks/useDatePlaceholder.d.ts +0 -1
- package/dist/esm/v2/components/or-date-time-picker-v3/hooks/useDefaultDate.d.ts +0 -1
- package/dist/esm/v2/components/or-date-time-picker-v3/hooks/useDefaultHours.d.ts +0 -1
- package/dist/esm/v2/components/or-date-time-picker-v3/hooks/useDefaultMinutes.d.ts +0 -1
- package/dist/esm/v2/components/or-date-time-picker-v3/hooks/useDefaultMonth.d.ts +0 -1
- package/dist/esm/v2/components/or-date-time-picker-v3/hooks/useDefaultYear.d.ts +0 -1
- package/dist/esm/v2/components/or-date-time-picker-v3/hooks/useTimePlaceholder.d.ts +0 -1
- package/dist/esm/v2/components/or-date-time-picker-v3/index.d.ts +0 -2
- package/dist/esm/v2/components/or-date-time-picker-v3/index.js +0 -28
- package/dist/esm/v2/components/or-date-time-picker-v3/partials/or-date-time-picker-date-control/OrDateTimePickerDateControl.vue.d.ts +0 -65
- package/dist/esm/v2/components/or-date-time-picker-v3/partials/or-date-time-picker-date-control/styles.d.ts +0 -2
- package/dist/esm/v2/components/or-date-time-picker-v3/partials/or-date-time-picker-day-select/OrDateTimePickerDaySelect.vue.d.ts +0 -58
- package/dist/esm/v2/components/or-date-time-picker-v3/partials/or-date-time-picker-day-select/styles.d.ts +0 -5
- package/dist/esm/v2/components/or-date-time-picker-v3/partials/or-date-time-picker-mobile-control/OrDateTimePickerMobileControl.vue.d.ts +0 -24
- package/dist/esm/v2/components/or-date-time-picker-v3/partials/or-date-time-picker-mobile-control/styles.d.ts +0 -2
- package/dist/esm/v2/components/or-date-time-picker-v3/partials/or-date-time-picker-month-select/OrDateTimePickerMonthSelect.vue.d.ts +0 -102
- package/dist/esm/v2/components/or-date-time-picker-v3/partials/or-date-time-picker-month-select/styles.d.ts +0 -1
- package/dist/esm/v2/components/or-date-time-picker-v3/partials/or-date-time-picker-popover-footer/OrDateTimePickerPopoverFooter.vue.d.ts +0 -12
- package/dist/esm/v2/components/or-date-time-picker-v3/partials/or-date-time-picker-popover-footer/styles.d.ts +0 -1
- package/dist/esm/v2/components/or-date-time-picker-v3/partials/or-date-time-picker-popover-header/OrDateTimePickerPopoverHeader.vue.d.ts +0 -8
- package/dist/esm/v2/components/or-date-time-picker-v3/partials/or-date-time-picker-popover-header/styles.d.ts +0 -1
- package/dist/esm/v2/components/or-date-time-picker-v3/partials/or-date-time-picker-time-control/OrDateTimePickerTimeControl.vue.d.ts +0 -65
- package/dist/esm/v2/components/or-date-time-picker-v3/partials/or-date-time-picker-time-control/styles.d.ts +0 -2
- package/dist/esm/v2/components/or-date-time-picker-v3/partials/or-date-time-picker-time-select/OrDateTimePickerTimeSelect.vue.d.ts +0 -54
- package/dist/esm/v2/components/or-date-time-picker-v3/partials/or-date-time-picker-time-select/styles.d.ts +0 -3
- package/dist/esm/v2/components/or-date-time-picker-v3/props.d.ts +0 -1
- package/dist/esm/v2/components/or-date-time-picker-v3/styles.d.ts +0 -1
- package/dist/esm/v2/components/or-time-picker-v3/OrTimePicker.vue.d.ts +0 -163
- package/dist/esm/v2/components/or-time-picker-v3/index.d.ts +0 -2
- package/dist/esm/v2/components/or-time-picker-v3/index.js +0 -25
- package/dist/esm/v2/components/or-time-picker-v3/props.d.ts +0 -1
- package/dist/esm/v2/components/or-time-picker-v3/styles.d.ts +0 -1
- package/dist/esm/v3/OrDatePicker-bb0517c6.js +0 -277
- package/dist/esm/v3/OrDateTimePicker-b3901823.js +0 -374
- package/dist/esm/v3/OrDateTimePickerMonthSelect-770a31d9.js +0 -476
- package/dist/esm/v3/OrDateTimePickerPopoverHeader-70bf7220.js +0 -161
- package/dist/esm/v3/OrDateTimePickerTimeSelect-d86e1c85.js +0 -241
- package/dist/esm/v3/OrTimePicker-775f3098.js +0 -271
- package/dist/esm/v3/components/or-date-picker-v3/OrDatePicker.vue.d.ts +0 -163
- package/dist/esm/v3/components/or-date-picker-v3/index.d.ts +0 -2
- package/dist/esm/v3/components/or-date-picker-v3/index.js +0 -25
- package/dist/esm/v3/components/or-date-picker-v3/props.d.ts +0 -1
- package/dist/esm/v3/components/or-date-picker-v3/styles.d.ts +0 -1
- package/dist/esm/v3/components/or-date-time-picker-v3/OrDateTimePicker.vue.d.ts +0 -193
- package/dist/esm/v3/components/or-date-time-picker-v3/hooks/useDatePlaceholder.d.ts +0 -1
- package/dist/esm/v3/components/or-date-time-picker-v3/hooks/useDefaultDate.d.ts +0 -1
- package/dist/esm/v3/components/or-date-time-picker-v3/hooks/useDefaultHours.d.ts +0 -1
- package/dist/esm/v3/components/or-date-time-picker-v3/hooks/useDefaultMinutes.d.ts +0 -1
- package/dist/esm/v3/components/or-date-time-picker-v3/hooks/useDefaultMonth.d.ts +0 -1
- package/dist/esm/v3/components/or-date-time-picker-v3/hooks/useDefaultYear.d.ts +0 -1
- package/dist/esm/v3/components/or-date-time-picker-v3/hooks/useTimePlaceholder.d.ts +0 -1
- package/dist/esm/v3/components/or-date-time-picker-v3/index.d.ts +0 -2
- package/dist/esm/v3/components/or-date-time-picker-v3/index.js +0 -26
- package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-date-control/OrDateTimePickerDateControl.vue.d.ts +0 -65
- package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-date-control/styles.d.ts +0 -2
- package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-day-select/OrDateTimePickerDaySelect.vue.d.ts +0 -58
- package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-day-select/styles.d.ts +0 -5
- package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-mobile-control/OrDateTimePickerMobileControl.vue.d.ts +0 -24
- package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-mobile-control/styles.d.ts +0 -2
- package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-month-select/OrDateTimePickerMonthSelect.vue.d.ts +0 -102
- package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-month-select/styles.d.ts +0 -1
- package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-popover-footer/OrDateTimePickerPopoverFooter.vue.d.ts +0 -12
- package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-popover-footer/styles.d.ts +0 -1
- package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-popover-header/OrDateTimePickerPopoverHeader.vue.d.ts +0 -8
- package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-popover-header/styles.d.ts +0 -1
- package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-time-control/OrDateTimePickerTimeControl.vue.d.ts +0 -65
- package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-time-control/styles.d.ts +0 -2
- package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-time-select/OrDateTimePickerTimeSelect.vue.d.ts +0 -54
- package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-time-select/styles.d.ts +0 -3
- package/dist/esm/v3/components/or-date-time-picker-v3/props.d.ts +0 -1
- package/dist/esm/v3/components/or-date-time-picker-v3/styles.d.ts +0 -1
- package/dist/esm/v3/components/or-time-picker-v3/OrTimePicker.vue.d.ts +0 -163
- package/dist/esm/v3/components/or-time-picker-v3/index.d.ts +0 -2
- package/dist/esm/v3/components/or-time-picker-v3/index.js +0 -23
- package/dist/esm/v3/components/or-time-picker-v3/props.d.ts +0 -1
- package/dist/esm/v3/components/or-time-picker-v3/styles.d.ts +0 -1
- package/src/components/or-date-picker-v3/OrDatePicker.stories3.ts +0 -168
- package/src/components/or-date-picker-v3/OrDatePicker.vue +0 -294
- package/src/components/or-date-picker-v3/index.ts +0 -2
- package/src/components/or-date-picker-v3/props.ts +0 -1
- package/src/components/or-date-picker-v3/styles.ts +0 -7
- package/src/components/or-date-time-picker-v3/OrDateTimePicker.docs.mdx +0 -7
- package/src/components/or-date-time-picker-v3/OrDateTimePicker.stories3.ts +0 -168
- package/src/components/or-date-time-picker-v3/OrDateTimePicker.vue +0 -381
- package/src/components/or-date-time-picker-v3/hooks/useDatePlaceholder.ts +0 -11
- package/src/components/or-date-time-picker-v3/hooks/useDefaultDate.ts +0 -3
- package/src/components/or-date-time-picker-v3/hooks/useDefaultHours.ts +0 -3
- package/src/components/or-date-time-picker-v3/hooks/useDefaultMinutes.ts +0 -3
- package/src/components/or-date-time-picker-v3/hooks/useDefaultMonth.ts +0 -3
- package/src/components/or-date-time-picker-v3/hooks/useDefaultYear.ts +0 -3
- package/src/components/or-date-time-picker-v3/hooks/useTimePlaceholder.ts +0 -11
- package/src/components/or-date-time-picker-v3/index.ts +0 -2
- package/src/components/or-date-time-picker-v3/partials/or-date-time-picker-date-control/OrDateTimePickerDateControl.vue +0 -102
- package/src/components/or-date-time-picker-v3/partials/or-date-time-picker-date-control/styles.ts +0 -20
- package/src/components/or-date-time-picker-v3/partials/or-date-time-picker-day-select/OrDateTimePickerDaySelect.vue +0 -209
- package/src/components/or-date-time-picker-v3/partials/or-date-time-picker-day-select/styles.ts +0 -59
- package/src/components/or-date-time-picker-v3/partials/or-date-time-picker-mobile-control/OrDateTimePickerMobileControl.vue +0 -58
- package/src/components/or-date-time-picker-v3/partials/or-date-time-picker-mobile-control/styles.ts +0 -16
- package/src/components/or-date-time-picker-v3/partials/or-date-time-picker-month-select/OrDateTimePickerMonthSelect.vue +0 -239
- package/src/components/or-date-time-picker-v3/partials/or-date-time-picker-month-select/styles.ts +0 -10
- package/src/components/or-date-time-picker-v3/partials/or-date-time-picker-popover-footer/OrDateTimePickerPopoverFooter.vue +0 -59
- package/src/components/or-date-time-picker-v3/partials/or-date-time-picker-popover-footer/styles.ts +0 -13
- package/src/components/or-date-time-picker-v3/partials/or-date-time-picker-popover-header/OrDateTimePickerPopoverHeader.vue +0 -37
- package/src/components/or-date-time-picker-v3/partials/or-date-time-picker-popover-header/styles.ts +0 -10
- package/src/components/or-date-time-picker-v3/partials/or-date-time-picker-time-control/OrDateTimePickerTimeControl.vue +0 -102
- package/src/components/or-date-time-picker-v3/partials/or-date-time-picker-time-control/styles.ts +0 -20
- package/src/components/or-date-time-picker-v3/partials/or-date-time-picker-time-select/OrDateTimePickerTimeSelect.vue +0 -166
- package/src/components/or-date-time-picker-v3/partials/or-date-time-picker-time-select/styles.ts +0 -34
- package/src/components/or-date-time-picker-v3/props.ts +0 -1
- package/src/components/or-date-time-picker-v3/styles.ts +0 -7
- package/src/components/or-time-picker-v3/OrTimePicker.stories3.ts +0 -168
- package/src/components/or-time-picker-v3/OrTimePicker.vue +0 -287
- package/src/components/or-time-picker-v3/index.ts +0 -2
- package/src/components/or-time-picker-v3/props.ts +0 -1
- package/src/components/or-time-picker-v3/styles.ts +0 -7
- /package/dist/bundled/v3/{OrButton.vue_vue_type_script_lang-f58fa1b8.js → OrButton.vue_vue_type_script_lang-5650b394.js} +0 -0
- /package/dist/bundled/v3/{OrCheckbox.vue_vue_type_script_lang-0a2323c2.js → OrCheckbox.vue_vue_type_script_lang-60cefcbd.js} +0 -0
- /package/dist/bundled/v3/{OrInputBox.vue_vue_type_script_lang-a21db166.js → OrInputBox.vue_vue_type_script_lang-e3bba923.js} +0 -0
- /package/dist/bundled/v3/{OrRadio.vue_vue_type_script_lang-e9ac87e8.js → OrRadio.vue_vue_type_script_lang-99b109c4.js} +0 -0
- /package/dist/bundled/v3/{OrSwitch.vue_vue_type_script_lang-286a0a4e.js → OrSwitch.vue_vue_type_script_lang-53f0c8b1.js} +0 -0
|
@@ -1,476 +0,0 @@
|
|
|
1
|
-
import { defineComponent, ref, computed } from 'vue-demi';
|
|
2
|
-
import { openBlock, createElementBlock, normalizeClass, Fragment, createTextVNode, toDisplayString, resolveComponent, createElementVNode, renderList, createBlock, withModifiers, withCtx, createVNode } from 'vue';
|
|
3
|
-
import { s as script$3 } from './OrButton-c2b6aa9e.js';
|
|
4
|
-
import { u as useDefaultYear, c as useDefaultMonth, d as useDefaultDate, e as useDefaultHours, f as useDefaultMinutes } from './OrDateTimePickerPopoverHeader-70bf7220.js';
|
|
5
|
-
import { s as script$5 } from './OrIconButton-786b9346.js';
|
|
6
|
-
import { s as script$4 } from './OrIcon-62793572.js';
|
|
7
|
-
import { s as script$7 } from './OrMenuItem-dbee450f.js';
|
|
8
|
-
import { s as script$6 } from './OrMenu-c8876a6b.js';
|
|
9
|
-
import './OrPopover-d6d82a06.js';
|
|
10
|
-
|
|
11
|
-
function useDatePlaceholder() {
|
|
12
|
-
const sample = new Date(Date.UTC(1111, 1, 3, 4, 5)).toLocaleString(navigator.language, {
|
|
13
|
-
dateStyle: 'short',
|
|
14
|
-
timeZone: 'UTC'
|
|
15
|
-
});
|
|
16
|
-
return sample.replace(/1/g, 'Y').replace(/02/, 'MM').replace(/2/, 'M').replace(/03/g, 'DD').replace(/3/, 'D');
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
const DateTimePickerDateControl = [
|
|
20
|
-
// Layout
|
|
21
|
-
'layout-inline-row',
|
|
22
|
-
// Interactivity
|
|
23
|
-
'interactivity-auto',
|
|
24
|
-
// Theme (focus)
|
|
25
|
-
'focus:theme-border-2-inherit', 'dark:focus:theme-border-2-inherit-dark', 'focus:theme-border-underline', 'dark:focus:theme-border-underline'];
|
|
26
|
-
const DateTimePickerDateControlPlaceholder = [
|
|
27
|
-
// Theme
|
|
28
|
-
'theme-foreground-outline', 'dark:theme-foreground-outline-dark'];
|
|
29
|
-
|
|
30
|
-
var script$2 = defineComponent({
|
|
31
|
-
name: 'OrDateTimePickerDateControl',
|
|
32
|
-
model: {
|
|
33
|
-
prop: 'modelValue',
|
|
34
|
-
event: 'update:modelValue'
|
|
35
|
-
},
|
|
36
|
-
props: {
|
|
37
|
-
modelValue: {
|
|
38
|
-
type: Date,
|
|
39
|
-
default: undefined
|
|
40
|
-
},
|
|
41
|
-
required: {
|
|
42
|
-
type: Boolean,
|
|
43
|
-
default: false
|
|
44
|
-
},
|
|
45
|
-
readonly: {
|
|
46
|
-
type: Boolean,
|
|
47
|
-
default: false
|
|
48
|
-
},
|
|
49
|
-
disabled: {
|
|
50
|
-
type: Boolean,
|
|
51
|
-
default: false
|
|
52
|
-
}
|
|
53
|
-
},
|
|
54
|
-
expose: ['root'],
|
|
55
|
-
setup(props, context) {
|
|
56
|
-
// Refs
|
|
57
|
-
const root = ref();
|
|
58
|
-
// Styles
|
|
59
|
-
const rootStyles = computed(() => ['or-date-time-picker-date-control', ...DateTimePickerDateControl]);
|
|
60
|
-
const placeholderStyles = computed(() => [...DateTimePickerDateControlPlaceholder]);
|
|
61
|
-
// State
|
|
62
|
-
const proxyModelValue = computed({
|
|
63
|
-
get: () => props.modelValue,
|
|
64
|
-
set: value => {
|
|
65
|
-
context.emit('update:modelValue', value);
|
|
66
|
-
}
|
|
67
|
-
});
|
|
68
|
-
const placeholder = useDatePlaceholder();
|
|
69
|
-
// Methods
|
|
70
|
-
function formatModelValue(value) {
|
|
71
|
-
return value.toLocaleString(navigator.language, {
|
|
72
|
-
dateStyle: 'short',
|
|
73
|
-
timeZone: 'UTC'
|
|
74
|
-
});
|
|
75
|
-
}
|
|
76
|
-
return {
|
|
77
|
-
root,
|
|
78
|
-
rootStyles,
|
|
79
|
-
placeholderStyles,
|
|
80
|
-
proxyModelValue,
|
|
81
|
-
placeholder,
|
|
82
|
-
formatModelValue
|
|
83
|
-
};
|
|
84
|
-
}
|
|
85
|
-
});
|
|
86
|
-
|
|
87
|
-
const _hoisted_1$1 = ["required", "readonly", "disabled"];
|
|
88
|
-
function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
89
|
-
return openBlock(), createElementBlock("div", {
|
|
90
|
-
ref: "root",
|
|
91
|
-
class: normalizeClass(_ctx.rootStyles),
|
|
92
|
-
contenteditable: '',
|
|
93
|
-
required: _ctx.required ? '' : null,
|
|
94
|
-
readonly: _ctx.readonly ? '' : null,
|
|
95
|
-
disabled: _ctx.disabled ? '' : null
|
|
96
|
-
}, [_ctx.proxyModelValue ? (openBlock(), createElementBlock(Fragment, {
|
|
97
|
-
key: 0
|
|
98
|
-
}, [createTextVNode(toDisplayString(_ctx.formatModelValue(_ctx.proxyModelValue)), 1 /* TEXT */)], 64 /* STABLE_FRAGMENT */)) : (openBlock(), createElementBlock("span", {
|
|
99
|
-
key: 1,
|
|
100
|
-
class: normalizeClass(_ctx.placeholderStyles)
|
|
101
|
-
}, toDisplayString(_ctx.placeholder), 3 /* TEXT, CLASS */))], 10 /* CLASS, PROPS */, _hoisted_1$1);
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
script$2.render = render$2;
|
|
105
|
-
script$2.__file = "src/components/or-date-time-picker-v3/partials/or-date-time-picker-date-control/OrDateTimePickerDateControl.vue";
|
|
106
|
-
|
|
107
|
-
const DateTimePickerDaySelect = [
|
|
108
|
-
// Layout
|
|
109
|
-
'layout-column',
|
|
110
|
-
// Spacing
|
|
111
|
-
'px-md', 'py-md', 'gap-sm'];
|
|
112
|
-
const DateTimePickerDaySelectButtonGroup = [
|
|
113
|
-
// Layout
|
|
114
|
-
'grid', 'grid-cols-7',
|
|
115
|
-
// Spacing
|
|
116
|
-
'gap-xs'];
|
|
117
|
-
const DateTimePickerDaySelectButtonGroupWeekdayItem = [
|
|
118
|
-
// Layout
|
|
119
|
-
'layout-row justify-center',
|
|
120
|
-
// Spacing
|
|
121
|
-
'px-sm', 'py-sm',
|
|
122
|
-
// Interactivity
|
|
123
|
-
'interactivity-none',
|
|
124
|
-
// Typography
|
|
125
|
-
'typography-caption-regular',
|
|
126
|
-
// Theme
|
|
127
|
-
'theme-foreground-outline', 'dark:theme-foreground-outline-dark'];
|
|
128
|
-
const DateTimePickerDaySelectButtonGroupDayItem = [
|
|
129
|
-
// Box
|
|
130
|
-
'min-w-fit',
|
|
131
|
-
// Spacing
|
|
132
|
-
'!px-sm', '!py-sm',
|
|
133
|
-
// Typography
|
|
134
|
-
'typography-caption-regular'];
|
|
135
|
-
const DateTimePickerDaySelectButtonGroupTodayItem = [
|
|
136
|
-
// Theme
|
|
137
|
-
'theme-foreground-primary', 'dark:theme-foreground-primary-dark', 'theme-outline-1-primary', 'dark:theme-outline-1-primary-dark'];
|
|
138
|
-
|
|
139
|
-
var script$1 = defineComponent({
|
|
140
|
-
name: 'OrDateTimePickerDaySelect',
|
|
141
|
-
components: {
|
|
142
|
-
OrButton: script$3
|
|
143
|
-
},
|
|
144
|
-
model: {
|
|
145
|
-
prop: 'modelValue',
|
|
146
|
-
event: 'update:modelValue'
|
|
147
|
-
},
|
|
148
|
-
props: {
|
|
149
|
-
modelValue: {
|
|
150
|
-
type: Date,
|
|
151
|
-
default: undefined
|
|
152
|
-
},
|
|
153
|
-
filter: {
|
|
154
|
-
type: Function,
|
|
155
|
-
default: undefined
|
|
156
|
-
}
|
|
157
|
-
},
|
|
158
|
-
emits: ['update:modelValue'],
|
|
159
|
-
expose: ['root'],
|
|
160
|
-
setup(props, context) {
|
|
161
|
-
// Refs
|
|
162
|
-
const root = ref();
|
|
163
|
-
// Styles
|
|
164
|
-
const rootStyles = computed(() => ['or-date-time-picker-day-select', ...DateTimePickerDaySelect]);
|
|
165
|
-
const buttonGroupStyles = computed(() => [...DateTimePickerDaySelectButtonGroup]);
|
|
166
|
-
const buttonGroupWeekdayItemStyles = computed(() => [...DateTimePickerDaySelectButtonGroupWeekdayItem]);
|
|
167
|
-
const buttonGroupDayItemStyles = computed(() => [...DateTimePickerDaySelectButtonGroupDayItem]);
|
|
168
|
-
const buttonGroupTodayItemStyles = computed(() => [...DateTimePickerDaySelectButtonGroupTodayItem]);
|
|
169
|
-
// State
|
|
170
|
-
const proxyModelValue = computed({
|
|
171
|
-
get: () => {
|
|
172
|
-
var _a;
|
|
173
|
-
return (_a = props.modelValue) !== null && _a !== void 0 ? _a : new Date(Date.UTC(useDefaultYear(), useDefaultMonth(), useDefaultDate(), useDefaultHours(), useDefaultMinutes()));
|
|
174
|
-
},
|
|
175
|
-
set: value => {
|
|
176
|
-
context.emit('update:modelValue', value);
|
|
177
|
-
}
|
|
178
|
-
});
|
|
179
|
-
const dayOptions = computed(() => {
|
|
180
|
-
const monthStartDate = new Date(Date.UTC(proxyModelValue.value.getUTCFullYear(), proxyModelValue.value.getUTCMonth(), 1, proxyModelValue.value.getUTCHours(), proxyModelValue.value.getUTCMinutes()));
|
|
181
|
-
const monthEndDate = new Date(Date.UTC(proxyModelValue.value.getUTCFullYear(), proxyModelValue.value.getUTCMonth() + 1, 0, proxyModelValue.value.getUTCHours(), proxyModelValue.value.getUTCMinutes()));
|
|
182
|
-
const calendarStartDate = new Date(Date.UTC(monthStartDate.getUTCFullYear(), monthStartDate.getUTCMonth(), 1 - monthStartDate.getUTCDay(), monthStartDate.getUTCHours(), monthStartDate.getUTCMinutes()));
|
|
183
|
-
const calendarEndDate = new Date(Date.UTC(monthEndDate.getUTCFullYear(), monthEndDate.getUTCMonth() + 1, 7 - monthEndDate.getUTCDay(), monthEndDate.getUTCHours(), monthEndDate.getUTCMinutes()));
|
|
184
|
-
return (() => {
|
|
185
|
-
let options = [],
|
|
186
|
-
value = calendarStartDate;
|
|
187
|
-
while (Number(value) !== Number(calendarEndDate)) {
|
|
188
|
-
options = [...options, value];
|
|
189
|
-
value = new Date(Date.UTC(value.getUTCFullYear(), value.getUTCMonth(), value.getUTCDate() + 1, value.getUTCHours(), value.getUTCMinutes()));
|
|
190
|
-
}
|
|
191
|
-
return options;
|
|
192
|
-
})();
|
|
193
|
-
});
|
|
194
|
-
const currentDate = computed(() => {
|
|
195
|
-
const value = new Date();
|
|
196
|
-
value.setUTCHours(proxyModelValue.value.getUTCHours());
|
|
197
|
-
value.setUTCMinutes(proxyModelValue.value.getUTCMinutes());
|
|
198
|
-
value.setUTCSeconds(proxyModelValue.value.getUTCSeconds());
|
|
199
|
-
value.setUTCMilliseconds(proxyModelValue.value.getUTCMilliseconds());
|
|
200
|
-
return value;
|
|
201
|
-
});
|
|
202
|
-
// Methods
|
|
203
|
-
function formatWeekday(value) {
|
|
204
|
-
return value.toLocaleString(navigator.language, {
|
|
205
|
-
weekday: 'short',
|
|
206
|
-
timeZone: 'UTC'
|
|
207
|
-
});
|
|
208
|
-
}
|
|
209
|
-
function formatDay(value) {
|
|
210
|
-
return value.toLocaleString(navigator.language, {
|
|
211
|
-
day: 'numeric',
|
|
212
|
-
timeZone: 'UTC'
|
|
213
|
-
});
|
|
214
|
-
}
|
|
215
|
-
return {
|
|
216
|
-
root,
|
|
217
|
-
rootStyles,
|
|
218
|
-
buttonGroupStyles,
|
|
219
|
-
buttonGroupWeekdayItemStyles,
|
|
220
|
-
buttonGroupDayItemStyles,
|
|
221
|
-
buttonGroupTodayItemStyles,
|
|
222
|
-
proxyModelValue,
|
|
223
|
-
dayOptions,
|
|
224
|
-
currentDate,
|
|
225
|
-
formatWeekday,
|
|
226
|
-
formatDay
|
|
227
|
-
};
|
|
228
|
-
}
|
|
229
|
-
});
|
|
230
|
-
|
|
231
|
-
function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
232
|
-
const _component_OrButton = resolveComponent("OrButton");
|
|
233
|
-
return openBlock(), createElementBlock("div", {
|
|
234
|
-
ref: "root",
|
|
235
|
-
class: normalizeClass(_ctx.rootStyles)
|
|
236
|
-
}, [createElementVNode("div", {
|
|
237
|
-
class: normalizeClass(_ctx.buttonGroupStyles)
|
|
238
|
-
}, [(openBlock(), createElementBlock(Fragment, null, renderList(7, weekday => {
|
|
239
|
-
return createElementVNode("div", {
|
|
240
|
-
key: weekday,
|
|
241
|
-
class: normalizeClass(_ctx.buttonGroupWeekdayItemStyles)
|
|
242
|
-
}, toDisplayString(_ctx.formatWeekday(_ctx.dayOptions[weekday - 1])), 3 /* TEXT, CLASS */);
|
|
243
|
-
}), 64 /* STABLE_FRAGMENT */)), (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.dayOptions, value => {
|
|
244
|
-
return openBlock(), createBlock(_component_OrButton, {
|
|
245
|
-
key: Number(value),
|
|
246
|
-
class: normalizeClass({
|
|
247
|
-
[_ctx.buttonGroupDayItemStyles.join(' ')]: true,
|
|
248
|
-
[_ctx.buttonGroupTodayItemStyles.join(' ')]: Number(value) === Number(_ctx.currentDate) && Number(value) !== Number(_ctx.proxyModelValue)
|
|
249
|
-
}),
|
|
250
|
-
variant: Number(value) === Number(_ctx.proxyModelValue) ? 'contained' : 'text',
|
|
251
|
-
color: Number(value) === Number(_ctx.proxyModelValue) ? 'primary' : 'inherit',
|
|
252
|
-
disabled: _ctx.filter && !_ctx.filter(value) || value.getUTCMonth() !== _ctx.proxyModelValue.getUTCMonth(),
|
|
253
|
-
onClick: withModifiers($event => _ctx.proxyModelValue = value, ["stop"])
|
|
254
|
-
}, {
|
|
255
|
-
default: withCtx(() => [createTextVNode(toDisplayString(_ctx.formatDay(value)), 1 /* TEXT */)]),
|
|
256
|
-
|
|
257
|
-
_: 2 /* DYNAMIC */
|
|
258
|
-
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["class", "variant", "color", "disabled", "onClick"]);
|
|
259
|
-
}), 128 /* KEYED_FRAGMENT */))], 2 /* CLASS */)], 2 /* CLASS */);
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
script$1.render = render$1;
|
|
263
|
-
script$1.__file = "src/components/or-date-time-picker-v3/partials/or-date-time-picker-day-select/OrDateTimePickerDaySelect.vue";
|
|
264
|
-
|
|
265
|
-
const DateTimePickerMonthSelect = [
|
|
266
|
-
// Layout
|
|
267
|
-
'layout-row justify-between',
|
|
268
|
-
// Spacing
|
|
269
|
-
'px-md', 'py-md', 'gap-md'];
|
|
270
|
-
|
|
271
|
-
var script = defineComponent({
|
|
272
|
-
name: 'OrDateTimePickerMonthSelect',
|
|
273
|
-
components: {
|
|
274
|
-
OrButton: script$3,
|
|
275
|
-
OrIcon: script$4,
|
|
276
|
-
OrIconButton: script$5,
|
|
277
|
-
OrMenu: script$6,
|
|
278
|
-
OrMenuItem: script$7
|
|
279
|
-
},
|
|
280
|
-
model: {
|
|
281
|
-
prop: 'modelValue',
|
|
282
|
-
event: 'update:modelValue'
|
|
283
|
-
},
|
|
284
|
-
props: {
|
|
285
|
-
modelValue: {
|
|
286
|
-
type: Date,
|
|
287
|
-
default: undefined
|
|
288
|
-
},
|
|
289
|
-
filter: {
|
|
290
|
-
type: Function,
|
|
291
|
-
default: undefined
|
|
292
|
-
}
|
|
293
|
-
},
|
|
294
|
-
emits: ['update:modelValue'],
|
|
295
|
-
expose: ['root'],
|
|
296
|
-
setup(props, context) {
|
|
297
|
-
// Refs
|
|
298
|
-
const root = ref();
|
|
299
|
-
const yearButton = ref();
|
|
300
|
-
const monthButton = ref();
|
|
301
|
-
const yearButtonRoot = computed(() => {
|
|
302
|
-
var _a;
|
|
303
|
-
return (_a = yearButton.value) === null || _a === void 0 ? void 0 : _a.root;
|
|
304
|
-
});
|
|
305
|
-
const monthButtonRoot = computed(() => {
|
|
306
|
-
var _a;
|
|
307
|
-
return (_a = monthButton.value) === null || _a === void 0 ? void 0 : _a.root;
|
|
308
|
-
});
|
|
309
|
-
const yearMenu = ref();
|
|
310
|
-
const monthMenu = ref();
|
|
311
|
-
const yearMenuState = computed(() => {
|
|
312
|
-
var _a;
|
|
313
|
-
return (_a = yearMenu.value) === null || _a === void 0 ? void 0 : _a.state;
|
|
314
|
-
});
|
|
315
|
-
const monthMenuState = computed(() => {
|
|
316
|
-
var _a;
|
|
317
|
-
return (_a = monthMenu.value) === null || _a === void 0 ? void 0 : _a.state;
|
|
318
|
-
});
|
|
319
|
-
// Styles
|
|
320
|
-
const rootStyles = computed(() => ['or-date-time-picker-month-select', ...DateTimePickerMonthSelect]);
|
|
321
|
-
// State
|
|
322
|
-
const proxyModelValue = computed({
|
|
323
|
-
get: () => {
|
|
324
|
-
var _a;
|
|
325
|
-
return (_a = props.modelValue) !== null && _a !== void 0 ? _a : new Date(Date.UTC(useDefaultYear(), useDefaultMonth(), useDefaultDate(), useDefaultHours(), useDefaultMinutes()));
|
|
326
|
-
},
|
|
327
|
-
set: value => {
|
|
328
|
-
context.emit('update:modelValue', value);
|
|
329
|
-
}
|
|
330
|
-
});
|
|
331
|
-
const yearOptions = computed(() => {
|
|
332
|
-
return Array.from({
|
|
333
|
-
length: 11
|
|
334
|
-
}).map((_value, index, {
|
|
335
|
-
length
|
|
336
|
-
}) => {
|
|
337
|
-
const value = proxyModelValue.value.getUTCFullYear() - Math.floor(length / 2) + index;
|
|
338
|
-
return new Date(Date.UTC(value, proxyModelValue.value.getUTCMonth(), proxyModelValue.value.getUTCDate(), proxyModelValue.value.getUTCHours(), proxyModelValue.value.getUTCMinutes()));
|
|
339
|
-
});
|
|
340
|
-
});
|
|
341
|
-
const monthOptions = computed(() => {
|
|
342
|
-
return Array.from({
|
|
343
|
-
length: 12
|
|
344
|
-
}, (_value, index) => {
|
|
345
|
-
const value = index;
|
|
346
|
-
return new Date(Date.UTC(proxyModelValue.value.getUTCFullYear(), value, proxyModelValue.value.getUTCDate(), proxyModelValue.value.getUTCHours(), proxyModelValue.value.getUTCMinutes()));
|
|
347
|
-
});
|
|
348
|
-
});
|
|
349
|
-
// Methods
|
|
350
|
-
function goToNextMonth() {
|
|
351
|
-
proxyModelValue.value = new Date(Date.UTC(proxyModelValue.value.getUTCFullYear(), proxyModelValue.value.getUTCMonth() + 1, proxyModelValue.value.getUTCDate(), proxyModelValue.value.getUTCHours(), proxyModelValue.value.getUTCMinutes()));
|
|
352
|
-
}
|
|
353
|
-
function goToPreviousMonth() {
|
|
354
|
-
proxyModelValue.value = new Date(Date.UTC(proxyModelValue.value.getUTCFullYear(), proxyModelValue.value.getUTCMonth() - 1, proxyModelValue.value.getUTCDate(), proxyModelValue.value.getUTCHours(), proxyModelValue.value.getUTCMinutes()));
|
|
355
|
-
}
|
|
356
|
-
function formatYear(value) {
|
|
357
|
-
return value.toLocaleString(navigator.language, {
|
|
358
|
-
year: 'numeric',
|
|
359
|
-
timeZone: 'UTC'
|
|
360
|
-
});
|
|
361
|
-
}
|
|
362
|
-
function formatMonth(value) {
|
|
363
|
-
return value.toLocaleString(navigator.language, {
|
|
364
|
-
month: 'long',
|
|
365
|
-
timeZone: 'UTC'
|
|
366
|
-
});
|
|
367
|
-
}
|
|
368
|
-
return {
|
|
369
|
-
root,
|
|
370
|
-
yearButton,
|
|
371
|
-
monthButton,
|
|
372
|
-
yearButtonRoot,
|
|
373
|
-
monthButtonRoot,
|
|
374
|
-
yearMenu,
|
|
375
|
-
monthMenu,
|
|
376
|
-
yearMenuState,
|
|
377
|
-
monthMenuState,
|
|
378
|
-
rootStyles,
|
|
379
|
-
proxyModelValue,
|
|
380
|
-
yearOptions,
|
|
381
|
-
monthOptions,
|
|
382
|
-
goToNextMonth,
|
|
383
|
-
goToPreviousMonth,
|
|
384
|
-
formatYear,
|
|
385
|
-
formatMonth
|
|
386
|
-
};
|
|
387
|
-
}
|
|
388
|
-
});
|
|
389
|
-
|
|
390
|
-
const _hoisted_1 = {
|
|
391
|
-
class: /*#__PURE__*/normalizeClass(['layout-row-reverse', 'gap-md'])
|
|
392
|
-
};
|
|
393
|
-
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
394
|
-
const _component_OrIconButton = resolveComponent("OrIconButton");
|
|
395
|
-
const _component_OrIcon = resolveComponent("OrIcon");
|
|
396
|
-
const _component_OrButton = resolveComponent("OrButton");
|
|
397
|
-
const _component_OrMenuItem = resolveComponent("OrMenuItem");
|
|
398
|
-
const _component_OrMenu = resolveComponent("OrMenu");
|
|
399
|
-
return openBlock(), createElementBlock("div", {
|
|
400
|
-
ref: "root",
|
|
401
|
-
class: normalizeClass(_ctx.rootStyles)
|
|
402
|
-
}, [createVNode(_component_OrIconButton, {
|
|
403
|
-
icon: 'chevron_left',
|
|
404
|
-
onClick: _cache[0] || (_cache[0] = withModifiers($event => _ctx.goToPreviousMonth(), ["stop"]))
|
|
405
|
-
}), createElementVNode("div", _hoisted_1, [createVNode(_component_OrButton, {
|
|
406
|
-
ref: "yearButton",
|
|
407
|
-
variant: 'link',
|
|
408
|
-
color: 'inherit',
|
|
409
|
-
onClick: _cache[1] || (_cache[1] = withModifiers($event => _ctx.yearMenu.open(), ["stop"]))
|
|
410
|
-
}, {
|
|
411
|
-
default: withCtx(() => [createTextVNode(toDisplayString(_ctx.formatYear(_ctx.proxyModelValue)) + " ", 1 /* TEXT */), createVNode(_component_OrIcon, {
|
|
412
|
-
icon: _ctx.yearMenuState === 'open' ? 'arrow_drop_up' : 'arrow_drop_down'
|
|
413
|
-
}, null, 8 /* PROPS */, ["icon"])]),
|
|
414
|
-
_: 1 /* STABLE */
|
|
415
|
-
}, 512 /* NEED_PATCH */), createVNode(_component_OrButton, {
|
|
416
|
-
ref: "monthButton",
|
|
417
|
-
variant: 'link',
|
|
418
|
-
color: 'inherit',
|
|
419
|
-
onClick: _cache[2] || (_cache[2] = withModifiers($event => _ctx.monthMenu.open(), ["stop"]))
|
|
420
|
-
}, {
|
|
421
|
-
default: withCtx(() => [createTextVNode(toDisplayString(_ctx.formatMonth(_ctx.proxyModelValue)) + " ", 1 /* TEXT */), createVNode(_component_OrIcon, {
|
|
422
|
-
icon: _ctx.monthMenuState === 'open' ? 'arrow_drop_up' : 'arrow_drop_down'
|
|
423
|
-
}, null, 8 /* PROPS */, ["icon"])]),
|
|
424
|
-
_: 1 /* STABLE */
|
|
425
|
-
}, 512 /* NEED_PATCH */), createVNode(_component_OrMenu, {
|
|
426
|
-
ref: "yearMenu",
|
|
427
|
-
trigger: _ctx.yearButtonRoot
|
|
428
|
-
}, {
|
|
429
|
-
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.yearOptions, value => {
|
|
430
|
-
return openBlock(), createBlock(_component_OrMenuItem, {
|
|
431
|
-
key: Number(value),
|
|
432
|
-
selected: Number(value) === Number(_ctx.proxyModelValue),
|
|
433
|
-
disabled: _ctx.filter && !_ctx.filter(value),
|
|
434
|
-
onClick: withModifiers($event => {
|
|
435
|
-
_ctx.proxyModelValue = value;
|
|
436
|
-
_ctx.yearMenu.close();
|
|
437
|
-
}, ["stop"])
|
|
438
|
-
}, {
|
|
439
|
-
default: withCtx(() => [createTextVNode(toDisplayString(_ctx.formatYear(value)), 1 /* TEXT */)]),
|
|
440
|
-
|
|
441
|
-
_: 2 /* DYNAMIC */
|
|
442
|
-
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["selected", "disabled", "onClick"]);
|
|
443
|
-
}), 128 /* KEYED_FRAGMENT */))]),
|
|
444
|
-
|
|
445
|
-
_: 1 /* STABLE */
|
|
446
|
-
}, 8 /* PROPS */, ["trigger"]), createVNode(_component_OrMenu, {
|
|
447
|
-
ref: "monthMenu",
|
|
448
|
-
trigger: _ctx.monthButtonRoot
|
|
449
|
-
}, {
|
|
450
|
-
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.monthOptions, value => {
|
|
451
|
-
return openBlock(), createBlock(_component_OrMenuItem, {
|
|
452
|
-
key: Number(value),
|
|
453
|
-
selected: Number(value) === Number(_ctx.proxyModelValue),
|
|
454
|
-
disabled: _ctx.filter && !_ctx.filter(value),
|
|
455
|
-
onClick: withModifiers($event => {
|
|
456
|
-
_ctx.proxyModelValue = value;
|
|
457
|
-
_ctx.monthMenu.close();
|
|
458
|
-
}, ["stop"])
|
|
459
|
-
}, {
|
|
460
|
-
default: withCtx(() => [createTextVNode(toDisplayString(_ctx.formatMonth(value)), 1 /* TEXT */)]),
|
|
461
|
-
|
|
462
|
-
_: 2 /* DYNAMIC */
|
|
463
|
-
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["selected", "disabled", "onClick"]);
|
|
464
|
-
}), 128 /* KEYED_FRAGMENT */))]),
|
|
465
|
-
|
|
466
|
-
_: 1 /* STABLE */
|
|
467
|
-
}, 8 /* PROPS */, ["trigger"])]), createVNode(_component_OrIconButton, {
|
|
468
|
-
icon: 'chevron_right',
|
|
469
|
-
onClick: _cache[3] || (_cache[3] = withModifiers($event => _ctx.goToNextMonth(), ["stop"]))
|
|
470
|
-
})], 2 /* CLASS */);
|
|
471
|
-
}
|
|
472
|
-
|
|
473
|
-
script.render = render;
|
|
474
|
-
script.__file = "src/components/or-date-time-picker-v3/partials/or-date-time-picker-month-select/OrDateTimePickerMonthSelect.vue";
|
|
475
|
-
|
|
476
|
-
export { script$1 as a, script as b, script$2 as s };
|
|
@@ -1,161 +0,0 @@
|
|
|
1
|
-
import { defineComponent, ref, computed } from 'vue-demi';
|
|
2
|
-
import { s as script$3 } from './OrLabel-4da56db0.js';
|
|
3
|
-
import { resolveComponent, openBlock, createElementBlock, normalizeClass, createVNode, withCtx, createTextVNode, toDisplayString, createElementVNode, renderSlot, withModifiers } from 'vue';
|
|
4
|
-
import { s as script$4 } from './OrButton-c2b6aa9e.js';
|
|
5
|
-
|
|
6
|
-
function useDefaultDate() {
|
|
7
|
-
return new Date().getUTCDate();
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
function useDefaultHours() {
|
|
11
|
-
return 0;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
function useDefaultMinutes() {
|
|
15
|
-
return 0;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
function useDefaultMonth() {
|
|
19
|
-
return new Date().getUTCMonth();
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
function useDefaultYear() {
|
|
23
|
-
return new Date().getUTCFullYear();
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
const DateTimePickerMobileControl = [
|
|
27
|
-
// Layout
|
|
28
|
-
'layout-column',
|
|
29
|
-
// Spacing
|
|
30
|
-
'gap-xs'];
|
|
31
|
-
const DateTimePickerMobileControlContent = [
|
|
32
|
-
// Typography
|
|
33
|
-
'typography-headline-1',
|
|
34
|
-
// Theme
|
|
35
|
-
'theme-foreground-outline', 'dark:theme-foreground-outline-dark'];
|
|
36
|
-
|
|
37
|
-
var script$2 = defineComponent({
|
|
38
|
-
name: 'OrDateTimePickerMobileControl',
|
|
39
|
-
components: {
|
|
40
|
-
OrLabel: script$3
|
|
41
|
-
},
|
|
42
|
-
props: {
|
|
43
|
-
label: {
|
|
44
|
-
type: String,
|
|
45
|
-
required: true
|
|
46
|
-
}
|
|
47
|
-
},
|
|
48
|
-
expose: ['root'],
|
|
49
|
-
setup() {
|
|
50
|
-
// Refs
|
|
51
|
-
const root = ref();
|
|
52
|
-
// Styles
|
|
53
|
-
const rootStyles = computed(() => ['or-date-time-picker-mobile-control', ...DateTimePickerMobileControl]);
|
|
54
|
-
const contentStyles = computed(() => [...DateTimePickerMobileControlContent]);
|
|
55
|
-
return {
|
|
56
|
-
root,
|
|
57
|
-
rootStyles,
|
|
58
|
-
contentStyles
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
});
|
|
62
|
-
|
|
63
|
-
function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
64
|
-
const _component_OrLabel = resolveComponent("OrLabel");
|
|
65
|
-
return openBlock(), createElementBlock("div", {
|
|
66
|
-
ref: "root",
|
|
67
|
-
class: normalizeClass(_ctx.rootStyles)
|
|
68
|
-
}, [createVNode(_component_OrLabel, null, {
|
|
69
|
-
default: withCtx(() => [createTextVNode(toDisplayString(_ctx.label), 1 /* TEXT */)]),
|
|
70
|
-
|
|
71
|
-
_: 1 /* STABLE */
|
|
72
|
-
}), createElementVNode("div", {
|
|
73
|
-
class: normalizeClass(_ctx.contentStyles)
|
|
74
|
-
}, [renderSlot(_ctx.$slots, "default")], 2 /* CLASS */)], 2 /* CLASS */);
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
script$2.render = render$2;
|
|
78
|
-
script$2.__file = "src/components/or-date-time-picker-v3/partials/or-date-time-picker-mobile-control/OrDateTimePickerMobileControl.vue";
|
|
79
|
-
|
|
80
|
-
const DateTimePickerPopoverFooter = [
|
|
81
|
-
// Layout
|
|
82
|
-
'layout-row-reverse',
|
|
83
|
-
// Layout (children)
|
|
84
|
-
'children:grow',
|
|
85
|
-
// Spacing
|
|
86
|
-
'px-md md:px-sm', 'py-md md:py-sm', 'gap-md md:gap-sm'];
|
|
87
|
-
|
|
88
|
-
var script$1 = defineComponent({
|
|
89
|
-
name: 'OrDateTimePickerPopoverFooter',
|
|
90
|
-
components: {
|
|
91
|
-
OrButton: script$4
|
|
92
|
-
},
|
|
93
|
-
emits: ['resolve', 'reject'],
|
|
94
|
-
expose: ['root'],
|
|
95
|
-
setup() {
|
|
96
|
-
// Refs
|
|
97
|
-
const root = ref();
|
|
98
|
-
// Styles
|
|
99
|
-
const rootStyles = computed(() => ['or-date-time-picker-popover-footer', ...DateTimePickerPopoverFooter]);
|
|
100
|
-
return {
|
|
101
|
-
root,
|
|
102
|
-
rootStyles
|
|
103
|
-
};
|
|
104
|
-
}
|
|
105
|
-
});
|
|
106
|
-
|
|
107
|
-
function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
108
|
-
const _component_OrButton = resolveComponent("OrButton");
|
|
109
|
-
return openBlock(), createElementBlock("footer", {
|
|
110
|
-
ref: "root",
|
|
111
|
-
class: normalizeClass(_ctx.rootStyles)
|
|
112
|
-
}, [createVNode(_component_OrButton, {
|
|
113
|
-
variant: 'outlined',
|
|
114
|
-
onClick: _cache[0] || (_cache[0] = withModifiers($event => _ctx.$emit('resolve'), ["stop"]))
|
|
115
|
-
}, {
|
|
116
|
-
default: withCtx(() => [createTextVNode(" Done ")]),
|
|
117
|
-
_: 1 /* STABLE */
|
|
118
|
-
}), createVNode(_component_OrButton, {
|
|
119
|
-
variant: 'text',
|
|
120
|
-
onClick: _cache[1] || (_cache[1] = withModifiers($event => _ctx.$emit('reject'), ["stop"]))
|
|
121
|
-
}, {
|
|
122
|
-
default: withCtx(() => [createTextVNode(" Cancel ")]),
|
|
123
|
-
_: 1 /* STABLE */
|
|
124
|
-
})], 2 /* CLASS */);
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
script$1.render = render$1;
|
|
128
|
-
script$1.__file = "src/components/or-date-time-picker-v3/partials/or-date-time-picker-popover-footer/OrDateTimePickerPopoverFooter.vue";
|
|
129
|
-
|
|
130
|
-
const DateTimePickerPopoverHeader = [
|
|
131
|
-
// Layout
|
|
132
|
-
'layout-row md:hidden',
|
|
133
|
-
// Spacing
|
|
134
|
-
'px-md', 'py-md', 'gap-xl'];
|
|
135
|
-
|
|
136
|
-
var script = defineComponent({
|
|
137
|
-
name: 'OrDateTimePickerPopoverHeader',
|
|
138
|
-
expose: ['root'],
|
|
139
|
-
setup() {
|
|
140
|
-
// Refs
|
|
141
|
-
const root = ref();
|
|
142
|
-
// Styles
|
|
143
|
-
const rootStyles = computed(() => ['or-date-time-picker-popover-header', ...DateTimePickerPopoverHeader]);
|
|
144
|
-
return {
|
|
145
|
-
root,
|
|
146
|
-
rootStyles
|
|
147
|
-
};
|
|
148
|
-
}
|
|
149
|
-
});
|
|
150
|
-
|
|
151
|
-
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
152
|
-
return openBlock(), createElementBlock("header", {
|
|
153
|
-
ref: "root",
|
|
154
|
-
class: normalizeClass(_ctx.rootStyles)
|
|
155
|
-
}, [renderSlot(_ctx.$slots, "default")], 2 /* CLASS */);
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
script.render = render;
|
|
159
|
-
script.__file = "src/components/or-date-time-picker-v3/partials/or-date-time-picker-popover-header/OrDateTimePickerPopoverHeader.vue";
|
|
160
|
-
|
|
161
|
-
export { script$1 as a, script as b, useDefaultMonth as c, useDefaultDate as d, useDefaultHours as e, useDefaultMinutes as f, script$2 as s, useDefaultYear as u };
|