@onereach/ui-components 6.5.0 → 6.5.1-beta.3474.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/OrList-6d5e66b4.js +269 -0
- package/dist/bundled/v2/components/OrDatePickerV3/OrDatePicker.js +1 -1
- package/dist/bundled/v2/components/OrDateTimePickerV3/OrDateTimePicker.js +1 -1
- package/dist/bundled/v2/components/OrDateTimePickerV3/index.js +1 -1
- package/dist/bundled/v2/components/OrIconButtonV3/OrIconButton.vue.d.ts +5 -5
- package/dist/bundled/v2/components/OrIconButtonV3/props.d.ts +1 -0
- package/dist/bundled/v2/components/OrIconButtonV3/props.js +1 -0
- package/dist/bundled/v2/components/OrIconButtonV3/styles.js +12 -3
- package/dist/bundled/v2/components/OrListV3/OrList.js +2 -0
- package/dist/bundled/v2/components/OrListV3/OrList.vue.d.ts +115 -0
- package/dist/bundled/v2/components/OrListV3/index.d.ts +2 -0
- package/dist/bundled/v2/components/OrListV3/index.js +1 -0
- package/dist/bundled/v2/components/OrListV3/styles.d.ts +1 -0
- package/dist/bundled/v2/components/OrListV3/styles.js +7 -0
- package/dist/bundled/v2/components/index.d.ts +1 -0
- package/dist/bundled/v2/components/index.js +2 -1
- package/dist/bundled/v2/index.js +2 -1
- package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-3b37f8da.js → OrCardCollection.vue_vue_type_script_lang-4dbd88c2.js} +2 -2
- package/dist/bundled/v3/{OrCode.vue_vue_type_script_lang-b6e82206.js → OrCode.vue_vue_type_script_lang-340d9b1f.js} +2 -2
- package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-56a57a28.js → OrConfirm.vue_vue_type_script_lang-f003bd2f.js} +1 -1
- package/dist/bundled/v3/{OrDatePicker.vue_vue_type_script_lang-7d8b90bc.js → OrDatePicker.vue_vue_type_script_lang-8da8f184.js} +2 -2
- package/dist/bundled/v3/{OrDateTimePicker.vue_vue_type_script_lang-090b5555.js → OrDateTimePicker.vue_vue_type_script_lang-cde43138.js} +2 -2
- package/dist/bundled/v3/{OrDateTimePickerPopoverHeader-e59d849a.js → OrDateTimePickerPopoverHeader-1b837531.js} +1 -1
- package/dist/bundled/v3/{OrInlineInput.vue_vue_type_script_lang-a296caec.js → OrInlineInput.vue_vue_type_script_lang-7d55b790.js} +1 -1
- package/dist/bundled/v3/{OrInlineTextarea.vue_vue_type_script_lang-6f0607c5.js → OrInlineTextarea.vue_vue_type_script_lang-01a8b8bd.js} +1 -1
- package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-bd483fbc.js → OrInput.vue_vue_type_script_lang-efa53d36.js} +1 -1
- package/dist/bundled/v3/OrList.vue_vue_type_script_lang-33bfe264.js +141 -0
- package/dist/bundled/v3/{OrModal.vue_vue_type_script_lang-19e1ff1a.js → OrModal.vue_vue_type_script_lang-27e9f649.js} +1 -1
- package/dist/bundled/v3/{OrNotification.vue_vue_type_script_lang-1bb2ed3f.js → OrNotification.vue_vue_type_script_lang-8a74a5f2.js} +1 -1
- package/dist/bundled/v3/{OrRichTextEditor.vue_vue_type_script_lang-d7752181.js → OrRichTextEditor.vue_vue_type_script_lang-87f8d524.js} +3 -3
- package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-e76fd9bd.js → OrSearch.vue_vue_type_script_lang-32bcf499.js} +1 -1
- package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-c0bcc2b5.js → OrSelect.vue_vue_type_script_lang-d53f08b5.js} +3 -3
- package/dist/bundled/v3/{OrSidebar.vue_vue_type_script_lang-9a7188d1.js → OrSidebar.vue_vue_type_script_lang-4df966a8.js} +1 -1
- package/dist/bundled/v3/{OrTag.vue_vue_type_script_lang-32f995f5.js → OrTag.vue_vue_type_script_lang-1d84d4ce.js} +1 -1
- package/dist/bundled/v3/{OrTagInput.vue_vue_type_script_lang-108a1678.js → OrTagInput.vue_vue_type_script_lang-e3709f98.js} +2 -2
- package/dist/bundled/v3/{OrTags.vue_vue_type_script_lang-a6fed075.js → OrTags.vue_vue_type_script_lang-90264d9a.js} +1 -1
- package/dist/bundled/v3/{OrTimePicker.vue_vue_type_script_lang-18f5c74e.js → OrTimePicker.vue_vue_type_script_lang-af50d971.js} +1 -1
- package/dist/bundled/v3/components/OrCardCollectionV3/OrCardCollection.js +2 -2
- package/dist/bundled/v3/components/OrCardCollectionV3/index.js +1 -1
- package/dist/bundled/v3/components/OrCodeV3/OrCode.js +2 -2
- package/dist/bundled/v3/components/OrCodeV3/index.js +1 -1
- package/dist/bundled/v3/components/OrConfirmV3/OrConfirm.js +2 -2
- package/dist/bundled/v3/components/OrConfirmV3/index.js +1 -1
- package/dist/bundled/v3/components/OrDatePickerV3/OrDatePicker.js +2 -2
- package/dist/bundled/v3/components/OrDatePickerV3/index.js +1 -1
- package/dist/bundled/v3/components/OrDateTimePickerV3/OrDateTimePicker.js +2 -2
- package/dist/bundled/v3/components/OrDateTimePickerV3/index.js +2 -2
- package/dist/bundled/v3/components/OrIconButtonV3/OrIconButton.js +2 -2
- package/dist/bundled/v3/components/OrIconButtonV3/OrIconButton.vue.d.ts +3 -3
- package/dist/bundled/v3/components/OrIconButtonV3/index.js +1 -1
- package/dist/bundled/v3/components/OrIconButtonV3/props.d.ts +1 -0
- package/dist/bundled/v3/components/OrIconButtonV3/props.js +1 -0
- package/dist/bundled/v3/components/OrIconButtonV3/styles.js +12 -3
- package/dist/bundled/v3/components/OrInlineInputV3/OrInlineInput.js +2 -2
- package/dist/bundled/v3/components/OrInlineInputV3/index.js +1 -1
- package/dist/bundled/v3/components/OrInlineTextareaV3/OrInlineTextarea.js +2 -2
- package/dist/bundled/v3/components/OrInlineTextareaV3/index.js +1 -1
- package/dist/bundled/v3/components/OrInputV3/OrInput.js +2 -2
- package/dist/bundled/v3/components/OrInputV3/index.js +1 -1
- package/dist/bundled/v3/components/OrListV3/OrList.js +66 -0
- package/dist/bundled/v3/components/OrListV3/OrList.vue.d.ts +87 -0
- package/dist/bundled/v3/components/OrListV3/index.d.ts +2 -0
- package/dist/bundled/v3/components/OrListV3/index.js +1 -0
- package/dist/bundled/v3/components/OrListV3/styles.d.ts +1 -0
- package/dist/bundled/v3/components/OrListV3/styles.js +7 -0
- package/dist/bundled/v3/components/OrModalV3/OrModal.js +2 -2
- package/dist/bundled/v3/components/OrModalV3/index.js +1 -1
- package/dist/bundled/v3/components/OrNotificationV3/OrNotification.js +2 -2
- package/dist/bundled/v3/components/OrNotificationV3/index.js +1 -1
- package/dist/bundled/v3/components/OrRichTextEditorV3/OrRichTextEditor.js +2 -2
- package/dist/bundled/v3/components/OrRichTextEditorV3/index.js +1 -1
- package/dist/bundled/v3/components/OrSearchV3/OrSearch.js +2 -2
- package/dist/bundled/v3/components/OrSearchV3/index.js +1 -1
- package/dist/bundled/v3/components/OrSelectV3/OrSelect.js +2 -2
- package/dist/bundled/v3/components/OrSelectV3/index.js +1 -1
- package/dist/bundled/v3/components/OrSidebarV3/OrSidebar.js +2 -2
- package/dist/bundled/v3/components/OrSidebarV3/index.js +1 -1
- package/dist/bundled/v3/components/OrTagInputV3/OrTagInput.js +2 -2
- package/dist/bundled/v3/components/OrTagInputV3/index.js +1 -1
- package/dist/bundled/v3/components/OrTagV3/OrTag.js +2 -2
- package/dist/bundled/v3/components/OrTagV3/index.js +1 -1
- package/dist/bundled/v3/components/OrTagsV3/OrTags.js +2 -2
- package/dist/bundled/v3/components/OrTagsV3/index.js +1 -1
- package/dist/bundled/v3/components/OrTimePickerV3/OrTimePicker.js +2 -2
- package/dist/bundled/v3/components/OrTimePickerV3/index.js +1 -1
- package/dist/bundled/v3/components/OrToastContainerV3/OrToastContainer.js +2 -2
- package/dist/bundled/v3/components/OrToastContainerV3/index.js +1 -1
- package/dist/bundled/v3/components/OrToastV3/OrToast.js +1 -1
- package/dist/bundled/v3/components/OrToastV3/index.js +1 -1
- package/dist/bundled/v3/components/index.d.ts +1 -0
- package/dist/bundled/v3/components/index.js +22 -21
- package/dist/bundled/v3/index.js +23 -21
- package/dist/esm/v2/{OrCardCollection-45c66d62.js → OrCardCollection-0d74e435.js} +2 -2
- package/dist/esm/v2/{OrCode-2129a3dc.js → OrCode-45a7c385.js} +2 -2
- package/dist/esm/v2/{OrConfirm-3ff773e4.js → OrConfirm-8f429723.js} +1 -1
- package/dist/esm/v2/{OrDateFormat-d06e6a17.js → OrDateFormat-116c0a57.js} +2 -2
- package/dist/esm/v2/{OrDatePicker-8590a3e0.js → OrDatePicker-192a536d.js} +3 -3
- package/dist/esm/v2/{OrDateTimeFormat-958ac2b5.js → OrDateTimeFormat-9078f9c6.js} +2 -2
- package/dist/esm/v2/{OrDateTimePicker-43e5c95b.js → OrDateTimePicker-09b38c2c.js} +1 -1
- package/dist/esm/v2/{OrDateTimePicker.vue_rollup-plugin-vue_script-c15c0ff1.js → OrDateTimePicker.vue_rollup-plugin-vue_script-fa5fb5ea.js} +2 -2
- package/dist/esm/v2/{OrDateTimePickerTimeSelect-a122ae93.js → OrDateTimePickerTimeSelect-fab17076.js} +1 -1
- package/dist/esm/v2/{OrIconButton-08d2913d.js → OrIconButton-f30c2eb1.js} +13 -3
- package/dist/esm/v2/{OrInlineInput-b2e9bf37.js → OrInlineInput-01145a1d.js} +1 -1
- package/dist/esm/v2/{OrInlineTextarea-5f6d4064.js → OrInlineTextarea-ee18fb32.js} +1 -1
- package/dist/esm/v2/{OrInput-794bc2f6.js → OrInput-3212e170.js} +1 -1
- package/dist/esm/v2/OrList-d2494f60.js +225 -0
- package/dist/esm/v2/OrListItem-c6b0dd77.js +57 -0
- package/dist/esm/v2/{OrModal-dbb90626.js → OrModal-20a798e5.js} +1 -1
- package/dist/esm/v2/{OrNotification-f8f0b678.js → OrNotification-a2a36a0b.js} +1 -1
- package/dist/esm/v2/{OrRichTextEditor-b12605d3.js → OrRichTextEditor-4625df48.js} +3 -3
- package/dist/esm/v2/{OrSearch-21ae4e63.js → OrSearch-94875c21.js} +1 -1
- package/dist/esm/v2/{OrSelect-0a5c0317.js → OrSelect-1cea22d0.js} +3 -3
- package/dist/esm/v2/{OrSidebar-ef6de7df.js → OrSidebar-34fbe36f.js} +1 -1
- package/dist/esm/v2/{OrSidebarCollapseButton-1ed37f3e.js → OrSidebarCollapseButton-3cec1113.js} +1 -1
- package/dist/esm/v2/{OrTag-1ecc5734.js → OrTag-ecce0a9a.js} +1 -1
- package/dist/esm/v2/{OrTagInput-ebfaeaca.js → OrTagInput-40f16275.js} +2 -2
- package/dist/esm/v2/{OrTags-b02fadce.js → OrTags-6d48f69e.js} +1 -1
- package/dist/esm/v2/{OrTimeFormat-c369099a.js → OrTimeFormat-b597ffbb.js} +2 -2
- package/dist/esm/v2/{OrTimePicker-444a7d26.js → OrTimePicker-452b09a0.js} +3 -3
- package/dist/esm/v2/components/index.d.ts +1 -0
- package/dist/esm/v2/components/index.js +28 -26
- package/dist/esm/v2/components/or-card-collection-v3/index.js +4 -4
- package/dist/esm/v2/components/or-code-v3/index.js +3 -3
- package/dist/esm/v2/components/or-confirm-v3/index.js +3 -3
- package/dist/esm/v2/components/or-date-format-v3/index.js +4 -4
- package/dist/esm/v2/components/or-date-picker-v3/index.js +4 -4
- package/dist/esm/v2/components/or-date-time-format-v3/index.js +4 -4
- package/dist/esm/v2/components/or-date-time-picker-v3/index.js +4 -4
- package/dist/esm/v2/components/or-date-time-picker-v3/partials/index.js +2 -2
- package/dist/esm/v2/components/or-icon-button-v3/OrIconButton.vue.d.ts +5 -5
- package/dist/esm/v2/components/or-icon-button-v3/index.js +1 -1
- package/dist/esm/v2/components/or-icon-button-v3/props.d.ts +1 -0
- package/dist/esm/v2/components/or-inline-input-v3/index.js +2 -2
- package/dist/esm/v2/components/or-inline-textarea-v3/index.js +2 -2
- package/dist/esm/v2/components/or-input-v3/index.js +2 -2
- package/dist/esm/v2/components/or-list-v3/OrList.vue.d.ts +115 -0
- package/dist/esm/v2/components/or-list-v3/index.d.ts +2 -0
- package/dist/esm/v2/components/or-list-v3/index.js +26 -0
- package/dist/esm/v2/components/or-list-v3/partials/index.d.ts +1 -0
- package/dist/esm/v2/components/or-list-v3/partials/index.js +3 -0
- package/dist/esm/v2/components/or-list-v3/partials/or-list-item/OrListItem.vue.d.ts +8 -0
- package/dist/esm/v2/components/or-list-v3/partials/or-list-item/styles.d.ts +1 -0
- package/dist/esm/v2/components/or-list-v3/styles.d.ts +1 -0
- package/dist/esm/v2/components/or-modal-v3/index.js +2 -2
- package/dist/esm/v2/components/or-notification-v3/index.js +2 -2
- package/dist/esm/v2/components/or-rich-text-editor-v3/index.js +4 -4
- 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-sidebar-v3/index.js +3 -3
- package/dist/esm/v2/components/or-sidebar-v3/partials/index.js +2 -2
- package/dist/esm/v2/components/or-tag-input-v3/index.js +4 -4
- package/dist/esm/v2/components/or-tag-v3/index.js +2 -2
- package/dist/esm/v2/components/or-tags-v3/index.js +3 -3
- package/dist/esm/v2/components/or-time-format-v3/index.js +4 -4
- package/dist/esm/v2/components/or-time-picker-v3/index.js +4 -4
- package/dist/esm/v2/components/or-toast-v3/index.js +2 -2
- package/dist/esm/v2/components/or-toast-v3/or-toast-container-v3/index.js +2 -2
- package/dist/esm/v2/index.js +28 -26
- package/dist/esm/v2/{types-cb2b2335.js → types-bb66e77a.js} +1 -1
- package/dist/esm/v3/{OrCardCollection-64175d94.js → OrCardCollection-888ad4f6.js} +2 -2
- package/dist/esm/v3/{OrCode-8183ef38.js → OrCode-f7edb219.js} +2 -2
- package/dist/esm/v3/{OrConfirm-658dfa58.js → OrConfirm-16063ab3.js} +1 -1
- package/dist/esm/v3/{OrDateFormat-8322187d.js → OrDateFormat-6f98910a.js} +2 -2
- package/dist/esm/v3/{OrDatePicker-a6518904.js → OrDatePicker-cb114103.js} +3 -3
- package/dist/esm/v3/{OrDateTimeFormat-fc9a09d9.js → OrDateTimeFormat-3563e464.js} +2 -2
- package/dist/esm/v3/{OrDateTimePicker-e13abe97.js → OrDateTimePicker-3cb49522.js} +2 -2
- package/dist/esm/v3/{OrDateTimePickerTimeSelect-1a7950ad.js → OrDateTimePickerTimeSelect-939d603e.js} +1 -1
- package/dist/esm/v3/{OrIconButton-ad59bb05.js → OrIconButton-b16183e0.js} +13 -3
- package/dist/esm/v3/{OrInlineInput-432134eb.js → OrInlineInput-af88f5db.js} +1 -1
- package/dist/esm/v3/{OrInlineTextarea-3434585e.js → OrInlineTextarea-bd45a06a.js} +1 -1
- package/dist/esm/v3/{OrInput-30df8d73.js → OrInput-73fead51.js} +1 -1
- package/dist/esm/v3/OrList-c9379236.js +182 -0
- package/dist/esm/v3/OrListItem-d89cd659.js +33 -0
- package/dist/esm/v3/{OrModal-55582d5f.js → OrModal-e469dc8a.js} +1 -1
- package/dist/esm/v3/{OrNotification-98fe44b7.js → OrNotification-808ac1de.js} +1 -1
- package/dist/esm/v3/{OrRichTextEditor-bdf2e88f.js → OrRichTextEditor-ee991509.js} +3 -3
- package/dist/esm/v3/{OrSearch-04fdc116.js → OrSearch-b89cfce1.js} +1 -1
- package/dist/esm/v3/{OrSelect-559c6cf5.js → OrSelect-63ef94ce.js} +3 -3
- package/dist/esm/v3/{OrSidebar-f9803fee.js → OrSidebar-bf5bb7fe.js} +1 -1
- package/dist/esm/v3/{OrSidebarCollapseButton-035f0736.js → OrSidebarCollapseButton-01511312.js} +1 -1
- package/dist/esm/v3/{OrTag-31b2c78f.js → OrTag-67c36d0a.js} +1 -1
- package/dist/esm/v3/{OrTagInput-6824b64e.js → OrTagInput-94b25b33.js} +2 -2
- package/dist/esm/v3/{OrTags-ba7e85ee.js → OrTags-52a28046.js} +1 -1
- package/dist/esm/v3/{OrTimeFormat-845f1078.js → OrTimeFormat-7881ac41.js} +2 -2
- package/dist/esm/v3/{OrTimePicker-294ab841.js → OrTimePicker-761f8072.js} +3 -3
- package/dist/esm/v3/components/index.d.ts +1 -0
- package/dist/esm/v3/components/index.js +27 -25
- package/dist/esm/v3/components/or-card-collection-v3/index.js +4 -4
- package/dist/esm/v3/components/or-code-v3/index.js +3 -3
- package/dist/esm/v3/components/or-confirm-v3/index.js +3 -3
- package/dist/esm/v3/components/or-date-format-v3/index.js +4 -4
- package/dist/esm/v3/components/or-date-picker-v3/index.js +4 -4
- package/dist/esm/v3/components/or-date-time-format-v3/index.js +4 -4
- package/dist/esm/v3/components/or-date-time-picker-v3/index.js +3 -3
- package/dist/esm/v3/components/or-date-time-picker-v3/partials/index.js +2 -2
- package/dist/esm/v3/components/or-icon-button-v3/OrIconButton.vue.d.ts +3 -3
- package/dist/esm/v3/components/or-icon-button-v3/index.js +1 -1
- package/dist/esm/v3/components/or-icon-button-v3/props.d.ts +1 -0
- package/dist/esm/v3/components/or-inline-input-v3/index.js +2 -2
- package/dist/esm/v3/components/or-inline-textarea-v3/index.js +2 -2
- package/dist/esm/v3/components/or-input-v3/index.js +2 -2
- package/dist/esm/v3/components/or-list-v3/OrList.vue.d.ts +87 -0
- package/dist/esm/v3/components/or-list-v3/index.d.ts +2 -0
- package/dist/esm/v3/components/or-list-v3/index.js +25 -0
- package/dist/esm/v3/components/or-list-v3/partials/index.d.ts +1 -0
- package/dist/esm/v3/components/or-list-v3/partials/index.js +3 -0
- package/dist/esm/v3/components/or-list-v3/partials/or-list-item/OrListItem.vue.d.ts +5 -0
- package/dist/esm/v3/components/or-list-v3/partials/or-list-item/styles.d.ts +1 -0
- package/dist/esm/v3/components/or-list-v3/styles.d.ts +1 -0
- package/dist/esm/v3/components/or-modal-v3/index.js +2 -2
- package/dist/esm/v3/components/or-notification-v3/index.js +2 -2
- package/dist/esm/v3/components/or-rich-text-editor-v3/index.js +4 -4
- 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-sidebar-v3/index.js +3 -3
- package/dist/esm/v3/components/or-sidebar-v3/partials/index.js +2 -2
- package/dist/esm/v3/components/or-tag-input-v3/index.js +4 -4
- package/dist/esm/v3/components/or-tag-v3/index.js +2 -2
- package/dist/esm/v3/components/or-tags-v3/index.js +3 -3
- package/dist/esm/v3/components/or-time-format-v3/index.js +4 -4
- package/dist/esm/v3/components/or-time-picker-v3/index.js +4 -4
- package/dist/esm/v3/components/or-toast-v3/index.js +2 -2
- package/dist/esm/v3/components/or-toast-v3/or-toast-container-v3/index.js +2 -2
- package/dist/esm/v3/index.js +27 -25
- package/dist/esm/v3/{types-7a770dfb.js → types-93cc75b0.js} +1 -1
- package/package.json +2 -3
- package/src/components/index.ts +1 -0
- package/src/components/or-icon-button-v3/props.ts +1 -0
- package/src/components/or-icon-button-v3/styles.ts +30 -9
- package/src/components/or-list-v3/OrList.vue +234 -0
- package/src/components/or-list-v3/index.ts +2 -0
- package/src/components/or-list-v3/partials/index.ts +1 -0
- package/src/components/or-list-v3/partials/or-list-item/OrListItem.vue +31 -0
- package/src/components/or-list-v3/partials/or-list-item/styles.ts +7 -0
- package/src/components/or-list-v3/styles.ts +7 -0
- /package/dist/bundled/v2/{OrDateTimePickerMonthSelect-e2a587bb.js → OrDateTimePickerMonthSelect-c5329a40.js} +0 -0
- /package/dist/bundled/v3/{OrIconButton.vue_vue_type_script_lang-ff65c253.js → OrIconButton.vue_vue_type_script_lang-23bdebfd.js} +0 -0
- /package/dist/bundled/v3/{OrToastContainer.vue_vue_type_script_lang-4eb55799.js → OrToastContainer.vue_vue_type_script_lang-c5178349.js} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { s as OrTimePickerV3 } from '../../OrTimePicker-
|
|
2
|
-
import '../../OrDateTimePicker-
|
|
3
|
-
import '../../OrDateTimePickerTimeSelect-
|
|
1
|
+
export { s as OrTimePickerV3 } from '../../OrTimePicker-761f8072.js';
|
|
2
|
+
import '../../OrDateTimePicker-3cb49522.js';
|
|
3
|
+
import '../../OrDateTimePickerTimeSelect-939d603e.js';
|
|
4
4
|
export { D as TimePickerFormat } from '../../getTimePlaceholder-09859f55.js';
|
|
5
5
|
export { I as TimePickerSize } from '../../OrInputBox-912a6254.js';
|
|
6
6
|
import 'vue-demi';
|
|
@@ -16,7 +16,7 @@ import '../../getCurrentDate-046a888d.js';
|
|
|
16
16
|
import '../../OrError-c01d0c29.js';
|
|
17
17
|
import 'vue';
|
|
18
18
|
import '../../OrHint-06ab89d7.js';
|
|
19
|
-
import '../../OrIconButton-
|
|
19
|
+
import '../../OrIconButton-b16183e0.js';
|
|
20
20
|
import '../../OrIcon-a3e90289.js';
|
|
21
21
|
import '../../OrTooltip-998dc10b.js';
|
|
22
22
|
import '../../usePopoverState-b92c698b.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { a as OrToastContainerV3, s as OrToastV3, t as TypesV3 } from '../../types-
|
|
1
|
+
export { a as OrToastContainerV3, s as OrToastV3, t as TypesV3 } from '../../types-93cc75b0.js';
|
|
2
2
|
export { p as PropsV3, a as useQueueV3, u as useToastV3 } from '../../useToast-5aa9dc05.js';
|
|
3
3
|
import '@vueuse/core';
|
|
4
4
|
import 'vue-demi';
|
|
@@ -10,7 +10,7 @@ import '@onereach/styles/tailwind/plugins/core';
|
|
|
10
10
|
import '@onereach/styles/tailwind.config.json';
|
|
11
11
|
import '../../OrTeleport.vue3-8099178c.js';
|
|
12
12
|
import 'vue';
|
|
13
|
-
import '../../OrIconButton-
|
|
13
|
+
import '../../OrIconButton-b16183e0.js';
|
|
14
14
|
import '../../OrIcon-a3e90289.js';
|
|
15
15
|
import '../../OrTooltip-998dc10b.js';
|
|
16
16
|
import '../../usePopoverState-b92c698b.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { a as OrToastContainerV3, t as TypesV3 } from '../../../types-
|
|
1
|
+
export { a as OrToastContainerV3, t as TypesV3 } from '../../../types-93cc75b0.js';
|
|
2
2
|
export { p as PropsV3, a as useQueueV3, u as useToastV3 } from '../../../useToast-5aa9dc05.js';
|
|
3
3
|
import '@vueuse/core';
|
|
4
4
|
import 'vue-demi';
|
|
@@ -10,7 +10,7 @@ import '@onereach/styles/tailwind/plugins/core';
|
|
|
10
10
|
import '@onereach/styles/tailwind.config.json';
|
|
11
11
|
import '../../../OrTeleport.vue3-8099178c.js';
|
|
12
12
|
import 'vue';
|
|
13
|
-
import '../../../OrIconButton-
|
|
13
|
+
import '../../../OrIconButton-b16183e0.js';
|
|
14
14
|
import '../../../OrIcon-a3e90289.js';
|
|
15
15
|
import '../../../OrTooltip-998dc10b.js';
|
|
16
16
|
import '../../../usePopoverState-b92c698b.js';
|
package/dist/esm/v3/index.js
CHANGED
|
@@ -7,7 +7,7 @@ export { a as BUTTON_COLOR, c as BUTTON_LOADER_TYPE, b as BUTTON_SIZE, B as BUTT
|
|
|
7
7
|
export { a as ButtonColor, b as ButtonType, B as ButtonVariant, s as OrButtonV3 } from './OrButton-4a3c3e7b.js';
|
|
8
8
|
export { s as OrCard } from './OrCard-e3a5aea4.js';
|
|
9
9
|
export { C as CARD_COLLECTION_LAYOUT, s as OrCardCollection } from './OrCardCollection-8c81a2d5.js';
|
|
10
|
-
export { C as CardCollectionView, s as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from './OrCardCollection-
|
|
10
|
+
export { C as CardCollectionView, s as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from './OrCardCollection-888ad4f6.js';
|
|
11
11
|
export { C as CardPadding, s as OrCardV3 } from './OrCard-a789e0d9.js';
|
|
12
12
|
export { s as OrCheckbox } from './OrCheckbox-5666c954.js';
|
|
13
13
|
export { s as OrCheckboxGroupV3 } from './OrCheckboxGroup-bcf1f5b0.js';
|
|
@@ -21,7 +21,7 @@ export { lintGutter, linter } from '@codemirror/lint';
|
|
|
21
21
|
export { javascript } from '@codemirror/lang-javascript';
|
|
22
22
|
export { json, jsonParseLinter } from '@codemirror/lang-json';
|
|
23
23
|
export { html } from '@codemirror/lang-html';
|
|
24
|
-
export { C as CodeLanguage, s as OrCodeV3 } from './OrCode-
|
|
24
|
+
export { C as CodeLanguage, s as OrCodeV3 } from './OrCode-f7edb219.js';
|
|
25
25
|
export { EditorView } from '@codemirror/view';
|
|
26
26
|
export { EditorState } from '@codemirror/state';
|
|
27
27
|
export { s as OrCollapse } from './OrCollapse-d7c0afae.js';
|
|
@@ -29,16 +29,16 @@ export { s as OrColorPicker, h as amber, n as black, b as blue, m as blueGrey, k
|
|
|
29
29
|
export { s as OrCombinedInputV3 } from './OrCombinedInput-b8a868cb.js';
|
|
30
30
|
export { I as CombinedInputSize, I as DatePickerSize, I as DateTimePickerSize, I as InputBoxSize, a as InputBoxVariant, I as InputSize, s as OrInputBoxV3, I as SearchSize, I as SelectSize, I as TagInputSize, I as TextareaSize, I as TimePickerSize } from './OrInputBox-912a6254.js';
|
|
31
31
|
export { s as OrConfirm } from './OrConfirm-97ab80b9.js';
|
|
32
|
-
export { C as ConfirmType, s as OrConfirmV3 } from './OrConfirm-
|
|
32
|
+
export { C as ConfirmType, s as OrConfirmV3 } from './OrConfirm-16063ab3.js';
|
|
33
33
|
export { s as OrContextMenuV3 } from './OrContextMenu-0a6a5668.js';
|
|
34
34
|
export { s as OrMenuV3 } from './OrMenu-ce78b703.js';
|
|
35
35
|
export { P as ContextMenuPlacement, P as MenuPlacement, s as OrPopoverV3, P as PopoverPlacement, a as PopoverVariant, P as TooltipPlacement } from './OrPopover-2132e8b9.js';
|
|
36
|
-
export { s as OrDateFormatV3 } from './OrDateFormat-
|
|
37
|
-
export { s as OrDatePickerV3 } from './OrDatePicker-
|
|
38
|
-
export { s as OrDateTimeFormatV3 } from './OrDateTimeFormat-
|
|
36
|
+
export { s as OrDateFormatV3 } from './OrDateFormat-6f98910a.js';
|
|
37
|
+
export { s as OrDatePickerV3 } from './OrDatePicker-cb114103.js';
|
|
38
|
+
export { s as OrDateTimeFormatV3 } from './OrDateTimeFormat-3563e464.js';
|
|
39
39
|
export { D as DEFAULT_TEXT, s as OrDateTimePicker, a as OrDateTimePickerItemTypes, O as OrDateTimePickerTypes } from './OrDateTimePicker-4bfefbcd.js';
|
|
40
|
-
export { s as OrDateTimePickerV3 } from './OrDateTimePicker-
|
|
41
|
-
export { s as OrDateTimePickerDateControl, a as OrDateTimePickerDateSelect, b as OrDateTimePickerMobileControl, c as OrDateTimePickerMonthSelect, d as OrDateTimePickerPopoverFooter, e as OrDateTimePickerPopoverHeader, f as OrDateTimePickerTimeControl, g as OrDateTimePickerTimeSelect } from './OrDateTimePickerTimeSelect-
|
|
40
|
+
export { s as OrDateTimePickerV3 } from './OrDateTimePicker-3cb49522.js';
|
|
41
|
+
export { s as OrDateTimePickerDateControl, a as OrDateTimePickerDateSelect, b as OrDateTimePickerMobileControl, c as OrDateTimePickerMonthSelect, d as OrDateTimePickerPopoverFooter, e as OrDateTimePickerPopoverHeader, f as OrDateTimePickerTimeControl, g as OrDateTimePickerTimeSelect } from './OrDateTimePickerTimeSelect-939d603e.js';
|
|
42
42
|
export { D as DateTimePickerTimeFormat, D as TimePickerFormat, f as formatDate, a as formatTime, g as getDatePlaceholder, b as getTimePlaceholder } from './getTimePlaceholder-09859f55.js';
|
|
43
43
|
export { g as getCurrentDate } from './getCurrentDate-046a888d.js';
|
|
44
44
|
export { E as EmptyStateSize, s as OrEmptyStateV3 } from './OrEmptyState-5349a1f9.js';
|
|
@@ -52,26 +52,28 @@ export { F as FormGroupDirection, s as OrFormGroupV3 } from './OrFormGroup-37f2b
|
|
|
52
52
|
export { s as OrHint } from './OrHint-8822005b.js';
|
|
53
53
|
export { s as OrHintV3 } from './OrHint-06ab89d7.js';
|
|
54
54
|
export { s as OrIcon, O as OrIconColors, a as OrIconType } from './OrIcon-f7130a5c.js';
|
|
55
|
-
export { I as IconButtonColor, s as OrIconButtonV3 } from './OrIconButton-
|
|
55
|
+
export { I as IconButtonColor, s as OrIconButtonV3 } from './OrIconButton-b16183e0.js';
|
|
56
56
|
export { I as IconButtonSize, I as IconSize, a as IconVariant, s as OrIconV3 } from './OrIcon-a3e90289.js';
|
|
57
57
|
export { I as InlineInputBoxSize, I as InlineInputSize, s as OrInlineInputBoxV3 } from './OrInlineInputBox-01fb2cb2.js';
|
|
58
|
-
export { I as InlineInputType, s as OrInlineInputV3 } from './OrInlineInput-
|
|
58
|
+
export { I as InlineInputType, s as OrInlineInputV3 } from './OrInlineInput-af88f5db.js';
|
|
59
59
|
export { a as InlineTextEditTrimmingTypes, I as InlineTextEditTypes, s as OrInlineTextEdit } from './OrInlineTextEdit-a3c4c7dc.js';
|
|
60
|
-
export { s as OrInlineTextareaV3 } from './OrInlineTextarea-
|
|
60
|
+
export { s as OrInlineTextareaV3 } from './OrInlineTextarea-bd45a06a.js';
|
|
61
61
|
export { s as OrInput } from './OrInput-2c3111c2.js';
|
|
62
|
-
export { I as InputType, s as OrInputV3 } from './OrInput-
|
|
62
|
+
export { I as InputType, s as OrInputV3 } from './OrInput-73fead51.js';
|
|
63
63
|
export { s as OrLabel } from './OrLabel-a7d99df4.js';
|
|
64
64
|
export { L as LabelVariant, s as OrLabelV3 } from './OrLabel-d4c46bb6.js';
|
|
65
65
|
export { L as LinkColor, s as OrLinkV3 } from './OrLink-dcae31fb.js';
|
|
66
66
|
export { s as OrList } from './OrList-aa7b5ef9.js';
|
|
67
67
|
export { s as OrListOfInputs } from './OrListOfInputs-f8740785.js';
|
|
68
|
+
export { s as OrListV3 } from './OrList-c9379236.js';
|
|
69
|
+
export { s as OrListItem } from './OrListItem-d89cd659.js';
|
|
68
70
|
export { L as LoaderViews, s as OrLoader } from './OrLoader-d28a8ebf.js';
|
|
69
71
|
export { a as LoaderColor, b as LoaderSize, L as LoaderVariant, s as OrLoaderV3 } from './OrLoader-b79022da.js';
|
|
70
72
|
export { s as OrMenuItemV3 } from './OrMenuItem-eb98272d.js';
|
|
71
73
|
export { s as OrModal, O as OrModalSizes } from './OrModal-b2060770.js';
|
|
72
|
-
export { M as ModalSize, s as OrModalV3 } from './OrModal-
|
|
74
|
+
export { M as ModalSize, s as OrModalV3 } from './OrModal-e469dc8a.js';
|
|
73
75
|
export { a as OR_NOTIFICATION_SIZE, O as OR_NOTIFICATION_TYPE, s as OrNotification } from './OrNotification-1b28dd4a.js';
|
|
74
|
-
export { N as NotificationVariant, s as OrNotificationV3 } from './OrNotification-
|
|
76
|
+
export { N as NotificationVariant, s as OrNotificationV3 } from './OrNotification-808ac1de.js';
|
|
75
77
|
export { s as OrNumberInput } from './OrNumberInput-e9dcdcbd.js';
|
|
76
78
|
export { s as OrOverflowMenu } from './OrOverflowMenu-440ddf3e.js';
|
|
77
79
|
export { s as OrOverlay } from './OrOverlay-451dce49.js';
|
|
@@ -84,15 +86,15 @@ export { s as OrRadio } from './OrRadio-40bf2c87.js';
|
|
|
84
86
|
export { s as OrRadioGroup } from './OrRadioGroup-00785e41.js';
|
|
85
87
|
export { s as OrRadioGroupV3 } from './OrRadioGroup-cae1897c.js';
|
|
86
88
|
export { s as OrRadioV3 } from './OrRadio-02e0d111.js';
|
|
87
|
-
export { F as Formats, s as OrRichTextEditorV3 } from './OrRichTextEditor-
|
|
89
|
+
export { F as Formats, s as OrRichTextEditorV3 } from './OrRichTextEditor-ee991509.js';
|
|
88
90
|
export { s as OrSearch } from './OrSearch-2800e9bf.js';
|
|
89
|
-
export { s as OrSearchV3 } from './OrSearch-
|
|
91
|
+
export { s as OrSearchV3 } from './OrSearch-b89cfce1.js';
|
|
90
92
|
export { s as OrSegmentedControlV3, S as SegmentedControlSize } from './OrSegmentedControl-4c4fff7b.js';
|
|
91
93
|
export { s as OrSelect } from './OrSelect-9520d6e6.js';
|
|
92
|
-
export { s as OrSelectV3 } from './OrSelect-
|
|
94
|
+
export { s as OrSelectV3 } from './OrSelect-63ef94ce.js';
|
|
93
95
|
export { s as OrSidebar, O as OrSidebarSide } from './OrSidebar-aaf73310.js';
|
|
94
|
-
export { s as OrSidebarV3 } from './OrSidebar-
|
|
95
|
-
export { O as OrSidebarPlacement } from './OrSidebarCollapseButton-
|
|
96
|
+
export { s as OrSidebarV3 } from './OrSidebar-bf5bb7fe.js';
|
|
97
|
+
export { O as OrSidebarPlacement } from './OrSidebarCollapseButton-01511312.js';
|
|
96
98
|
export { s as OrSkeletonCircle } from './OrSkeletonCircle-66e175a0.js';
|
|
97
99
|
export { s as OrSkeletonRect } from './OrSkeletonRect-c694574e.js';
|
|
98
100
|
export { s as OrSkeletonText } from './OrSkeletonText-9a800de4.js';
|
|
@@ -111,20 +113,20 @@ export { s as OrTabV3 } from './OrTab-2d567d8e.js';
|
|
|
111
113
|
export { s as OrTabs } from './OrTabs-3da3ea89.js';
|
|
112
114
|
export { s as OrTabsV3, T as TabsVariant } from './OrTabs-05d39983.js';
|
|
113
115
|
export { s as OrTag } from './OrTag-1b3b1296.js';
|
|
114
|
-
export { s as OrTagInputV3 } from './OrTagInput-
|
|
115
|
-
export { s as OrTagV3, a as TagColor, T as TagVariant } from './OrTag-
|
|
116
|
-
export { s as OrTagsV3, T as TagsOverflow } from './OrTags-
|
|
116
|
+
export { s as OrTagInputV3 } from './OrTagInput-94b25b33.js';
|
|
117
|
+
export { s as OrTagV3, a as TagColor, T as TagVariant } from './OrTag-67c36d0a.js';
|
|
118
|
+
export { s as OrTagsV3, T as TagsOverflow } from './OrTags-52a28046.js';
|
|
117
119
|
export { s as OrTeleport } from './OrTeleport.vue3-9bce0c02.js';
|
|
118
120
|
export { s as OrTeleportV3 } from './OrTeleport.vue3-8099178c.js';
|
|
119
121
|
export { s as OrTextV3 } from './OrText-d54c951d.js';
|
|
120
122
|
export { s as OrTextarea } from './OrTextarea-7a753c1a.js';
|
|
121
123
|
export { s as OrTextareaV3 } from './OrTextarea-aa1cf564.js';
|
|
122
124
|
export { s as OrTextbox, T as TextboxTypes } from './OrTextbox-cb6762c8.js';
|
|
123
|
-
export { s as OrTimeFormatV3 } from './OrTimeFormat-
|
|
124
|
-
export { s as OrTimePickerV3 } from './OrTimePicker-
|
|
125
|
+
export { s as OrTimeFormatV3 } from './OrTimeFormat-7881ac41.js';
|
|
126
|
+
export { s as OrTimePickerV3 } from './OrTimePicker-761f8072.js';
|
|
125
127
|
export { s as OrToast, a as OrToastContainer } from './OrToastContainer-d6f117e2.js';
|
|
126
128
|
export { P as PositionsX, b as PositionsY, c as ToastType, T as TransitionType, a as useQueue, u as useToast } from './useToast-05a9c81b.js';
|
|
127
|
-
export { a as OrToastContainerV3, s as OrToastV3, t as TypesV3 } from './types-
|
|
129
|
+
export { a as OrToastContainerV3, s as OrToastV3, t as TypesV3 } from './types-93cc75b0.js';
|
|
128
130
|
export { p as PropsV3, a as useQueueV3, u as useToastV3 } from './useToast-5aa9dc05.js';
|
|
129
131
|
export { s as OrTooltip } from './OrTooltip-7ac03028.js';
|
|
130
132
|
export { s as OrTooltipContent } from './OrTooltipContent-c0042844.js';
|
|
@@ -6,7 +6,7 @@ import '@onereach/styles/tailwind/plugins/core';
|
|
|
6
6
|
import '@onereach/styles/tailwind.config.json';
|
|
7
7
|
import { s as script$4 } from './OrTeleport.vue3-8099178c.js';
|
|
8
8
|
import { T as ToastType, P as PositionsX, b as PositionsY, c as TransitionType, d as useToastEventBus, a as useQueue } from './useToast-5aa9dc05.js';
|
|
9
|
-
import { s as script$2 } from './OrIconButton-
|
|
9
|
+
import { s as script$2 } from './OrIconButton-b16183e0.js';
|
|
10
10
|
import { s as script$3 } from './OrLoader-b79022da.js';
|
|
11
11
|
import { resolveComponent, openBlock, createElementBlock, normalizeClass, renderSlot, createCommentVNode, createVNode, createElementVNode, toDisplayString, createBlock, withModifiers, withCtx, TransitionGroup, Fragment, renderList, mergeProps } from 'vue';
|
|
12
12
|
import { s as styleInject } from './style-inject.es-4c6f2515.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onereach/ui-components",
|
|
3
|
-
"version": "6.5.0",
|
|
3
|
+
"version": "6.5.1-beta.3474.0",
|
|
4
4
|
"npmUnpacked": "4.15.2",
|
|
5
5
|
"description": "Vue components library for v2/3",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -175,6 +175,5 @@
|
|
|
175
175
|
"default": "./dist/bundled/v3/components/*/index.js"
|
|
176
176
|
},
|
|
177
177
|
"./package.json": "./package.json"
|
|
178
|
-
}
|
|
179
|
-
"gitHead": "6dc24750ce9cc1a5afb6181bf937136b8800bae0"
|
|
178
|
+
}
|
|
180
179
|
}
|
package/src/components/index.ts
CHANGED
|
@@ -52,6 +52,7 @@ export * from './or-label-v3';
|
|
|
52
52
|
export * from './or-link-v3';
|
|
53
53
|
export * from './or-list';
|
|
54
54
|
export * from './or-list-of-inputs';
|
|
55
|
+
export * from './or-list-v3';
|
|
55
56
|
export * from './or-loader';
|
|
56
57
|
export * from './or-loader-v3';
|
|
57
58
|
export * from './or-menu-item-v3';
|
|
@@ -39,34 +39,55 @@ export const IconButtonColors: Record<IconButtonColor, string[]> = {
|
|
|
39
39
|
'dark:theme-foreground-outline-dark',
|
|
40
40
|
|
|
41
41
|
// Theme (hover)
|
|
42
|
-
'hover:md:outline-primary-opacity-0-08',
|
|
43
|
-
'dark:hover:md:outline-primary-opacity-0-08-dark',
|
|
44
|
-
|
|
45
42
|
'hover:md:theme-foreground-default',
|
|
46
43
|
'dark:hover:md:theme-foreground-default-dark',
|
|
47
44
|
|
|
48
|
-
|
|
49
|
-
'
|
|
50
|
-
'dark:focus-visible:md:outline-primary-opacity-0-08-dark',
|
|
45
|
+
'hover:md:outline-primary-opacity-0-08',
|
|
46
|
+
'dark:hover:md:outline-primary-opacity-0-08-dark',
|
|
51
47
|
|
|
48
|
+
// Theme (focus)
|
|
52
49
|
'focus-visible:md:theme-foreground-default',
|
|
53
50
|
'dark:focus-visible:md:theme-foreground-default-dark',
|
|
54
51
|
|
|
52
|
+
'focus-visible:md:outline-primary-opacity-0-08',
|
|
53
|
+
'dark:focus-visible:md:outline-primary-opacity-0-08-dark',
|
|
54
|
+
|
|
55
55
|
// Theme (active)
|
|
56
|
+
'active:theme-foreground-default',
|
|
57
|
+
'dark:active:theme-foreground-default-dark',
|
|
58
|
+
|
|
56
59
|
'active:outline-primary-opacity-0-08',
|
|
57
60
|
'dark:active:outline-primary-opacity-0-08-dark',
|
|
58
61
|
|
|
59
62
|
'active:md:outline-primary-opacity-0-16',
|
|
60
63
|
'dark:active:md:outline-primary-opacity-0-16-dark',
|
|
61
64
|
|
|
62
|
-
'active:theme-foreground-default',
|
|
63
|
-
'dark:active:theme-foreground-default-dark',
|
|
64
|
-
|
|
65
65
|
// Theme (selected)
|
|
66
66
|
'selected:theme-foreground-default',
|
|
67
67
|
'dark:selected:theme-foreground-default-dark',
|
|
68
68
|
],
|
|
69
69
|
|
|
70
|
+
[IconButtonColor.Primary]: [
|
|
71
|
+
// Theme
|
|
72
|
+
'theme-preset-3-primary',
|
|
73
|
+
'dark:theme-preset-3-primary-dark',
|
|
74
|
+
|
|
75
|
+
// Theme (hover)
|
|
76
|
+
'hover:md:outline-primary-opacity-0-08',
|
|
77
|
+
'dark:hover:md:outline-primary-opacity-0-08-dark',
|
|
78
|
+
|
|
79
|
+
// Theme (focus)
|
|
80
|
+
'focus-visible:md:outline-primary-opacity-0-08',
|
|
81
|
+
'dark:focus-visible:md:outline-primary-opacity-0-08-dark',
|
|
82
|
+
|
|
83
|
+
// Theme (active)
|
|
84
|
+
'active:outline-primary-opacity-0-08',
|
|
85
|
+
'dark:active:outline-primary-opacity-0-08-dark',
|
|
86
|
+
|
|
87
|
+
'active:md:outline-primary-opacity-0-16',
|
|
88
|
+
'dark:active:md:outline-primary-opacity-0-16-dark',
|
|
89
|
+
],
|
|
90
|
+
|
|
70
91
|
[IconButtonColor.Danger]: [
|
|
71
92
|
// Theme
|
|
72
93
|
'theme-preset-3-error',
|
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div
|
|
3
|
+
ref="root"
|
|
4
|
+
:class="rootStyles"
|
|
5
|
+
:disabled="disabled ? '' : null"
|
|
6
|
+
>
|
|
7
|
+
<slot
|
|
8
|
+
name="header"
|
|
9
|
+
|
|
10
|
+
v-bind="{
|
|
11
|
+
addItem,
|
|
12
|
+
deleteItem
|
|
13
|
+
}"
|
|
14
|
+
>
|
|
15
|
+
<OrLabel :disabled="disabled">
|
|
16
|
+
{{ label }}
|
|
17
|
+
|
|
18
|
+
<template v-slot:addon>
|
|
19
|
+
<slot name="label-addon" />
|
|
20
|
+
</template>
|
|
21
|
+
</OrLabel>
|
|
22
|
+
</slot>
|
|
23
|
+
|
|
24
|
+
<OrListItem
|
|
25
|
+
v-for="(item, index) in proxyModelValue"
|
|
26
|
+
:key="uuid()"
|
|
27
|
+
:draggable="canReorder"
|
|
28
|
+
@dragstart="onDragStart"
|
|
29
|
+
@dragenter="onDragEnter"
|
|
30
|
+
@dragover="onDragOver"
|
|
31
|
+
@dragleave="onDragLeave"
|
|
32
|
+
@dragend="onDragEnd"
|
|
33
|
+
@drop="onDrop"
|
|
34
|
+
>
|
|
35
|
+
<template v-if="canReorder">
|
|
36
|
+
<OrIcon
|
|
37
|
+
:icon="'drag_handle'"
|
|
38
|
+
:size="'l'"
|
|
39
|
+
/>
|
|
40
|
+
</template>
|
|
41
|
+
|
|
42
|
+
<slot
|
|
43
|
+
v-bind="{
|
|
44
|
+
item,
|
|
45
|
+
index,
|
|
46
|
+
items: proxyModelValue,
|
|
47
|
+
addItem,
|
|
48
|
+
deleteItem
|
|
49
|
+
}"
|
|
50
|
+
>
|
|
51
|
+
{{ item }}
|
|
52
|
+
</slot>
|
|
53
|
+
|
|
54
|
+
<template v-if="canDelete">
|
|
55
|
+
<OrIconButton
|
|
56
|
+
:icon="'delete'"
|
|
57
|
+
:disabled="disabled"
|
|
58
|
+
@click="deleteItem(index)"
|
|
59
|
+
/>
|
|
60
|
+
</template>
|
|
61
|
+
</OrListItem>
|
|
62
|
+
|
|
63
|
+
<slot
|
|
64
|
+
name="footer"
|
|
65
|
+
|
|
66
|
+
v-bind="{
|
|
67
|
+
addItem,
|
|
68
|
+
deleteItem
|
|
69
|
+
}"
|
|
70
|
+
>
|
|
71
|
+
<template v-if="canAdd">
|
|
72
|
+
<OrIconButton
|
|
73
|
+
:icon="'add'"
|
|
74
|
+
:disabled="disabled"
|
|
75
|
+
@click="addItem()"
|
|
76
|
+
/>
|
|
77
|
+
</template>
|
|
78
|
+
</slot>
|
|
79
|
+
</div>
|
|
80
|
+
</template>
|
|
81
|
+
|
|
82
|
+
<script lang="ts">
|
|
83
|
+
import { v4 as uuid } from 'uuid';
|
|
84
|
+
import { PropType, computed, defineComponent, ref, toRef } from 'vue-demi';
|
|
85
|
+
import { useProxyModelValue } from '../../hooks';
|
|
86
|
+
import { OrIconButtonV3 as OrIconButton } from '../or-icon-button-v3';
|
|
87
|
+
import { OrIconV3 as OrIcon } from '../or-icon-v3';
|
|
88
|
+
import { OrLabelV3 as OrLabel } from '../or-label-v3';
|
|
89
|
+
import { OrListItem } from './partials';
|
|
90
|
+
import { List } from './styles';
|
|
91
|
+
|
|
92
|
+
export default defineComponent({
|
|
93
|
+
components: {
|
|
94
|
+
OrIcon,
|
|
95
|
+
OrIconButton,
|
|
96
|
+
OrLabel,
|
|
97
|
+
OrListItem,
|
|
98
|
+
},
|
|
99
|
+
|
|
100
|
+
model: {
|
|
101
|
+
prop: 'modelValue',
|
|
102
|
+
event: 'update:modelValue',
|
|
103
|
+
},
|
|
104
|
+
|
|
105
|
+
props: {
|
|
106
|
+
modelValue: {
|
|
107
|
+
type: Array as PropType<object[]>,
|
|
108
|
+
default: () => [],
|
|
109
|
+
},
|
|
110
|
+
|
|
111
|
+
itemProps: {
|
|
112
|
+
type: Object as PropType<object>,
|
|
113
|
+
default: () => ({}),
|
|
114
|
+
},
|
|
115
|
+
|
|
116
|
+
label: {
|
|
117
|
+
type: String,
|
|
118
|
+
default: undefined,
|
|
119
|
+
},
|
|
120
|
+
|
|
121
|
+
disabled: {
|
|
122
|
+
type: Boolean,
|
|
123
|
+
default: false,
|
|
124
|
+
},
|
|
125
|
+
|
|
126
|
+
canAdd: {
|
|
127
|
+
type: Boolean,
|
|
128
|
+
default: true,
|
|
129
|
+
},
|
|
130
|
+
|
|
131
|
+
canDelete: {
|
|
132
|
+
type: Boolean,
|
|
133
|
+
default: true,
|
|
134
|
+
},
|
|
135
|
+
|
|
136
|
+
canReorder: {
|
|
137
|
+
type: Boolean,
|
|
138
|
+
default: true,
|
|
139
|
+
},
|
|
140
|
+
},
|
|
141
|
+
|
|
142
|
+
emits: [
|
|
143
|
+
'update:modelValue',
|
|
144
|
+
|
|
145
|
+
'add',
|
|
146
|
+
'delete',
|
|
147
|
+
'reorder',
|
|
148
|
+
],
|
|
149
|
+
|
|
150
|
+
expose: [
|
|
151
|
+
'root',
|
|
152
|
+
],
|
|
153
|
+
|
|
154
|
+
setup(props, context) {
|
|
155
|
+
// Refs
|
|
156
|
+
const root = ref<HTMLElement>();
|
|
157
|
+
|
|
158
|
+
// Styles
|
|
159
|
+
const rootStyles = computed(() => [
|
|
160
|
+
'or-list-v3',
|
|
161
|
+
...List,
|
|
162
|
+
]);
|
|
163
|
+
|
|
164
|
+
// State
|
|
165
|
+
const proxyModelValue = useProxyModelValue(toRef(props, 'modelValue'), context.emit);
|
|
166
|
+
|
|
167
|
+
// Methods
|
|
168
|
+
function addItem(): void {
|
|
169
|
+
const addedItem = props.itemProps;
|
|
170
|
+
|
|
171
|
+
proxyModelValue.value = [
|
|
172
|
+
...proxyModelValue.value,
|
|
173
|
+
addedItem,
|
|
174
|
+
];
|
|
175
|
+
|
|
176
|
+
context.emit('add', addedItem, proxyModelValue.value.indexOf(addedItem), proxyModelValue.value);
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
function deleteItem(index: number): void {
|
|
180
|
+
const deletedItem = proxyModelValue.value[index];
|
|
181
|
+
|
|
182
|
+
proxyModelValue.value = proxyModelValue.value.filter((item) => {
|
|
183
|
+
return item !== deletedItem;
|
|
184
|
+
});
|
|
185
|
+
|
|
186
|
+
context.emit('delete', deletedItem, index, proxyModelValue.value);
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
// Handlers
|
|
190
|
+
function onDragStart(event: DragEvent): void {
|
|
191
|
+
console.log('dragstart', event);
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
function onDragEnter(event: DragEvent): void {
|
|
195
|
+
console.log('dragenter', event);
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
function onDragOver(event: DragEvent): void {
|
|
199
|
+
console.log('dragover', event);
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
function onDragLeave(event: DragEvent): void {
|
|
203
|
+
console.log('dragleave', event);
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
function onDragEnd(event: DragEvent): void {
|
|
207
|
+
console.log('dragend', event);
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
function onDrop(event: DragEvent): void {
|
|
211
|
+
console.log('drop', event);
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
return {
|
|
215
|
+
root,
|
|
216
|
+
rootStyles,
|
|
217
|
+
|
|
218
|
+
proxyModelValue,
|
|
219
|
+
|
|
220
|
+
addItem,
|
|
221
|
+
deleteItem,
|
|
222
|
+
|
|
223
|
+
onDragStart,
|
|
224
|
+
onDragEnter,
|
|
225
|
+
onDragOver,
|
|
226
|
+
onDragLeave,
|
|
227
|
+
onDragEnd,
|
|
228
|
+
onDrop,
|
|
229
|
+
|
|
230
|
+
uuid,
|
|
231
|
+
};
|
|
232
|
+
},
|
|
233
|
+
});
|
|
234
|
+
</script>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as OrListItem } from './or-list-item/OrListItem.vue';
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div
|
|
3
|
+
ref="root"
|
|
4
|
+
:class="rootStyles"
|
|
5
|
+
>
|
|
6
|
+
<slot />
|
|
7
|
+
</div>
|
|
8
|
+
</template>
|
|
9
|
+
|
|
10
|
+
<script lang="ts">
|
|
11
|
+
import { computed, defineComponent, ref } from 'vue-demi';
|
|
12
|
+
import { ListItem } from './styles';
|
|
13
|
+
|
|
14
|
+
export default defineComponent({
|
|
15
|
+
setup() {
|
|
16
|
+
// Refs
|
|
17
|
+
const root = ref<HTMLElement>();
|
|
18
|
+
|
|
19
|
+
// Styles
|
|
20
|
+
const rootStyles = computed(() => [
|
|
21
|
+
'or-list-item-v3',
|
|
22
|
+
...ListItem,
|
|
23
|
+
]);
|
|
24
|
+
|
|
25
|
+
return {
|
|
26
|
+
root,
|
|
27
|
+
rootStyles,
|
|
28
|
+
};
|
|
29
|
+
},
|
|
30
|
+
});
|
|
31
|
+
</script>
|
|
File without changes
|
|
File without changes
|