@onereach/ui-components 6.5.1-beta.3485.0 → 6.5.1-beta.3491.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/components/OrButtonV3/OrButton.js +5 -8
- package/dist/bundled/v2/components/OrButtonV3/OrButton.vue.d.ts +0 -2
- package/dist/bundled/v2/components/OrDatePickerV3/OrDatePicker.js +2 -2
- package/dist/bundled/v2/components/OrDateTimePickerV3/OrDateTimePicker.js +3 -3
- package/dist/bundled/v2/components/OrDateTimePickerV3/index.js +3 -3
- package/dist/bundled/v2/components/OrInputBoxV3/OrInputBox.js +0 -6
- package/dist/bundled/v2/components/OrInputBoxV3/OrInputBox.vue.d.ts +3 -7
- package/dist/bundled/v2/components/OrSelectV3/OrSelect.js +25 -25
- package/dist/bundled/v2/components/OrSelectV3/OrSelect.vue.d.ts +6 -14
- package/dist/bundled/v2/components/OrTagInputV3/OrTagInput.js +67 -142
- package/dist/bundled/v2/components/OrTagInputV3/OrTagInput.vue.d.ts +14 -59
- package/dist/bundled/v2/components/OrTagInputV3/styles.js +1 -1
- package/dist/bundled/v2/components/OrTagsV3/OrTags.js +19 -46
- package/dist/bundled/v2/components/OrTagsV3/OrTags.vue.d.ts +12 -30
- package/dist/bundled/v2/components/OrTagsV3/props.d.ts +1 -3
- package/dist/bundled/v2/components/OrTagsV3/props.js +0 -4
- package/dist/bundled/v2/components/OrTagsV3/styles.js +5 -15
- package/dist/bundled/v2/components/OrTimePickerV3/OrTimePicker.js +2 -2
- package/dist/bundled/v2/components/index.js +3 -3
- package/dist/bundled/v2/hooks/useOverflow.d.ts +1 -4
- package/dist/bundled/v2/hooks/useOverflow.js +2 -9
- package/dist/bundled/v2/index.js +4 -4
- package/dist/bundled/v3/{OrButton.vue_vue_type_script_lang-62a7ece1.js → OrButton.vue_vue_type_script_lang-547a7f18.js} +2 -7
- package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-b41bb546.js → OrCardCollection.vue_vue_type_script_lang-3b37f8da.js} +2 -2
- package/dist/bundled/v3/{OrCheckboxGroup.vue_vue_type_script_lang-c1c20524.js → OrCheckboxGroup.vue_vue_type_script_lang-7f9a7ed0.js} +1 -1
- package/dist/bundled/v3/{OrCheckboxTree.vue_vue_type_script_lang-d57fcde9.js → OrCheckboxTree.vue_vue_type_script_lang-c5288bf5.js} +1 -1
- package/dist/bundled/v3/{OrCode.vue_vue_type_script_lang-36d1c49e.js → OrCode.vue_vue_type_script_lang-b6e82206.js} +1 -1
- package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-9318b8c4.js → OrConfirm.vue_vue_type_script_lang-56a57a28.js} +2 -2
- package/dist/bundled/v3/{OrDatePicker.vue_vue_type_script_lang-f4a1a186.js → OrDatePicker.vue_vue_type_script_lang-7d8b90bc.js} +3 -3
- package/dist/bundled/v3/{OrDateTimePicker.vue_vue_type_script_lang-ae05def8.js → OrDateTimePicker.vue_vue_type_script_lang-090b5555.js} +4 -4
- package/dist/bundled/v3/{OrDateTimePickerPopoverHeader-eed5dc11.js → OrDateTimePickerPopoverHeader-e59d849a.js} +2 -2
- package/dist/bundled/v3/{OrDateTimePickerPopoverHeader.vue_vue_type_script_lang-b024eadf.js → OrDateTimePickerPopoverHeader.vue_vue_type_script_lang-e8fe4357.js} +1 -1
- package/dist/bundled/v3/{OrDateTimePickerTimeSelect-cbe523d9.js → OrDateTimePickerTimeSelect-d40024d8.js} +1 -1
- package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-dddbcae1.js → OrInput.vue_vue_type_script_lang-bd483fbc.js} +1 -1
- package/dist/bundled/v3/{OrInputBox.vue_vue_type_script_lang-dede5b69.js → OrInputBox.vue_vue_type_script_lang-137cb650.js} +0 -1
- package/dist/bundled/v3/{OrPagination.vue_vue_type_script_lang-b5b8aa2e.js → OrPagination.vue_vue_type_script_lang-ca8c0f8a.js} +1 -1
- package/dist/bundled/v3/{OrRichTextEditor.vue_vue_type_script_lang-7a720d54.js → OrRichTextEditor.vue_vue_type_script_lang-d7752181.js} +2 -2
- package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-f50c9bbc.js → OrSearch.vue_vue_type_script_lang-e76fd9bd.js} +1 -1
- package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-41b913c1.js → OrSelect.vue_vue_type_script_lang-c0bcc2b5.js} +14 -12
- package/dist/bundled/v3/{OrSorting.vue_vue_type_script_lang-e2e3c613.js → OrSorting.vue_vue_type_script_lang-f6a4b444.js} +1 -1
- package/dist/bundled/v3/{OrTagInput.vue_vue_type_script_lang-5f83a6a6.js → OrTagInput.vue_vue_type_script_lang-108a1678.js} +14 -75
- package/dist/bundled/v3/{OrTags.vue_vue_type_script_lang-d8ddd4ca.js → OrTags.vue_vue_type_script_lang-a6fed075.js} +9 -34
- package/dist/bundled/v3/{OrTextarea.vue_vue_type_script_lang-60883233.js → OrTextarea.vue_vue_type_script_lang-a7cfbe82.js} +1 -1
- package/dist/bundled/v3/{OrTimePicker.vue_vue_type_script_lang-418cc153.js → OrTimePicker.vue_vue_type_script_lang-18f5c74e.js} +3 -3
- package/dist/bundled/v3/{OrTree.vue_vue_type_script_lang-252b98f5.js → OrTree.vue_vue_type_script_lang-980998c6.js} +1 -1
- package/dist/bundled/v3/components/OrButtonV3/OrButton.js +3 -3
- package/dist/bundled/v3/components/OrButtonV3/OrButton.vue.d.ts +0 -1
- package/dist/bundled/v3/components/OrButtonV3/index.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/OrCheckboxGroupV3/OrCheckboxGroup.js +2 -2
- package/dist/bundled/v3/components/OrCheckboxGroupV3/index.js +1 -1
- package/dist/bundled/v3/components/OrCheckboxTreeV3/OrCheckboxTree.js +2 -2
- package/dist/bundled/v3/components/OrCheckboxTreeV3/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 +4 -4
- package/dist/bundled/v3/components/OrInputBoxV3/OrInputBox.js +4 -5
- package/dist/bundled/v3/components/OrInputBoxV3/OrInputBox.vue.d.ts +2 -4
- package/dist/bundled/v3/components/OrInputBoxV3/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/OrPaginationV3/OrPagination.js +2 -2
- package/dist/bundled/v3/components/OrPaginationV3/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 +20 -18
- package/dist/bundled/v3/components/OrSelectV3/OrSelect.vue.d.ts +3 -11
- package/dist/bundled/v3/components/OrSelectV3/index.js +1 -1
- package/dist/bundled/v3/components/OrSortingV3/OrSorting.js +2 -2
- package/dist/bundled/v3/components/OrSortingV3/index.js +1 -1
- package/dist/bundled/v3/components/OrTagInputV3/OrTagInput.js +39 -60
- package/dist/bundled/v3/components/OrTagInputV3/OrTagInput.vue.d.ts +12 -31
- package/dist/bundled/v3/components/OrTagInputV3/index.js +1 -1
- package/dist/bundled/v3/components/OrTagInputV3/styles.js +1 -1
- package/dist/bundled/v3/components/OrTagsV3/OrTags.js +15 -22
- package/dist/bundled/v3/components/OrTagsV3/OrTags.vue.d.ts +7 -20
- package/dist/bundled/v3/components/OrTagsV3/index.js +1 -1
- package/dist/bundled/v3/components/OrTagsV3/props.d.ts +1 -3
- package/dist/bundled/v3/components/OrTagsV3/props.js +0 -4
- package/dist/bundled/v3/components/OrTagsV3/styles.js +5 -15
- package/dist/bundled/v3/components/OrTextareaV3/OrTextarea.js +2 -2
- package/dist/bundled/v3/components/OrTextareaV3/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/OrTreeV3/OrTree.js +2 -2
- package/dist/bundled/v3/components/OrTreeV3/index.js +1 -1
- package/dist/bundled/v3/components/index.js +23 -23
- package/dist/bundled/v3/hooks/useOverflow.d.ts +1 -4
- package/dist/bundled/v3/hooks/useOverflow.js +2 -9
- package/dist/bundled/v3/index.js +24 -24
- package/dist/esm/v2/{OrButton-aa4798c0.js → OrButton-a23ee9f0.js} +5 -8
- package/dist/esm/v2/{OrCardCollection-a49f3019.js → OrCardCollection-45c66d62.js} +3 -3
- package/dist/esm/v2/{OrCheckboxGroup-1fa11748.js → OrCheckboxGroup-6f1bacb2.js} +1 -1
- package/dist/esm/v2/{OrCheckboxTree-e35e7dc9.js → OrCheckboxTree-260748ff.js} +1 -1
- package/dist/esm/v2/{OrCode-e8c9704e.js → OrCode-2129a3dc.js} +2 -2
- package/dist/esm/v2/{OrCombinedInput-5b710ae4.js → OrCombinedInput-08f20c4c.js} +1 -1
- package/dist/esm/v2/{OrConfirm-478ba894.js → OrConfirm-3ff773e4.js} +2 -2
- package/dist/esm/v2/{OrDateFormat-a2c5145f.js → OrDateFormat-d06e6a17.js} +3 -3
- package/dist/esm/v2/{OrDatePicker-ae5246f4.js → OrDatePicker-8590a3e0.js} +5 -5
- package/dist/esm/v2/{OrDateTimeFormat-cd8971d6.js → OrDateTimeFormat-958ac2b5.js} +3 -3
- package/dist/esm/v2/{OrDateTimePicker-3b9da7bf.js → OrDateTimePicker-43e5c95b.js} +1 -1
- package/dist/esm/v2/{OrDateTimePicker.vue_rollup-plugin-vue_script-7ad70a1b.js → OrDateTimePicker.vue_rollup-plugin-vue_script-c15c0ff1.js} +4 -4
- package/dist/esm/v2/{OrDateTimePickerTimeSelect-1bac9af2.js → OrDateTimePickerTimeSelect-a122ae93.js} +2 -2
- package/dist/esm/v2/{OrInput-9b7bc7c7.js → OrInput-794bc2f6.js} +2 -2
- package/dist/esm/v2/{OrInputBox-54d34025.js → OrInputBox-7dc5b9e9.js} +1 -6
- package/dist/esm/v2/{OrInputBox.vue_rollup-plugin-vue_script-8549f215.js → OrInputBox.vue_rollup-plugin-vue_script-4fde9829.js} +0 -1
- package/dist/esm/v2/{OrPagination-dd35b060.js → OrPagination-4ca1f4b0.js} +1 -1
- package/dist/esm/v2/{OrRichTextEditor-5536e33f.js → OrRichTextEditor-b12605d3.js} +2 -2
- package/dist/esm/v2/{OrSearch-2a42defc.js → OrSearch-21ae4e63.js} +2 -2
- package/dist/esm/v2/{OrSelect-3d5ca0cf.js → OrSelect-0a5c0317.js} +28 -28
- package/dist/esm/v2/{OrSorting-e59838a5.js → OrSorting-b280f39c.js} +1 -1
- package/dist/esm/v2/{OrTagInput-839076a0.js → OrTagInput-ebfaeaca.js} +71 -145
- package/dist/esm/v2/{OrTags-b0e75480.js → OrTags-b02fadce.js} +26 -77
- package/dist/esm/v2/{OrTextarea-5f4a6d2a.js → OrTextarea-58bd5e83.js} +2 -2
- package/dist/esm/v2/{OrTimeFormat-4af3ddf7.js → OrTimeFormat-c369099a.js} +3 -3
- package/dist/esm/v2/{OrTimePicker-fa3e11cf.js → OrTimePicker-444a7d26.js} +5 -5
- package/dist/esm/v2/{OrTree-e9db3bcf.js → OrTree-9a27b1fa.js} +1 -1
- package/dist/esm/v2/components/index.js +29 -29
- package/dist/esm/v2/components/or-button-v3/OrButton.vue.d.ts +0 -2
- 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-group-v3/index.js +3 -3
- package/dist/esm/v2/components/or-checkbox-tree-v3/index.js +2 -2
- package/dist/esm/v2/components/or-code-v3/index.js +3 -3
- 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-date-format-v3/index.js +7 -7
- package/dist/esm/v2/components/or-date-picker-v3/index.js +7 -7
- package/dist/esm/v2/components/or-date-time-format-v3/index.js +7 -7
- package/dist/esm/v2/components/or-date-time-picker-v3/index.js +7 -7
- package/dist/esm/v2/components/or-date-time-picker-v3/partials/index.js +4 -4
- package/dist/esm/v2/components/or-date-time-picker-v3/utils/index.js +2 -2
- package/dist/esm/v2/components/or-input-box-v3/OrInputBox.vue.d.ts +3 -7
- 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-pagination-v3/index.js +2 -2
- package/dist/esm/v2/components/or-rich-text-editor-v3/index.js +5 -5
- package/dist/esm/v2/components/or-search-v3/index.js +4 -4
- package/dist/esm/v2/components/or-select-v3/OrSelect.vue.d.ts +6 -14
- package/dist/esm/v2/components/or-select-v3/index.js +6 -8
- package/dist/esm/v2/components/or-sorting-v3/index.js +2 -2
- package/dist/esm/v2/components/or-tag-input-v3/OrTagInput.vue.d.ts +14 -59
- package/dist/esm/v2/components/or-tag-input-v3/index.js +7 -7
- package/dist/esm/v2/components/or-tags-v3/OrTags.vue.d.ts +12 -30
- package/dist/esm/v2/components/or-tags-v3/index.js +3 -3
- package/dist/esm/v2/components/or-tags-v3/props.d.ts +1 -3
- package/dist/esm/v2/components/or-textarea-v3/index.js +3 -3
- package/dist/esm/v2/components/or-time-format-v3/index.js +7 -7
- package/dist/esm/v2/components/or-time-picker-v3/index.js +7 -7
- package/dist/esm/v2/components/or-tree-v3/index.js +2 -2
- package/dist/esm/v2/{getTimePlaceholder-4a7e7a31.js → getTimePlaceholder-06d57fcf.js} +1 -1
- package/dist/esm/v2/hooks/index.js +1 -1
- package/dist/esm/v2/hooks/useOverflow.d.ts +1 -4
- package/dist/esm/v2/index.js +29 -29
- package/dist/esm/{v3/useOverflow-b482f3c9.js → v2/useOverflow-ff9ae748.js} +2 -9
- package/dist/esm/v3/{OrButton-16675582.js → OrButton-4a3c3e7b.js} +3 -8
- package/dist/esm/v3/{OrCardCollection-279e664e.js → OrCardCollection-64175d94.js} +3 -3
- package/dist/esm/v3/{OrCheckboxGroup-448e2147.js → OrCheckboxGroup-bcf1f5b0.js} +1 -1
- package/dist/esm/v3/{OrCheckboxTree-3042018d.js → OrCheckboxTree-d1f457da.js} +1 -1
- package/dist/esm/v3/{OrCode-3b9aedcc.js → OrCode-8183ef38.js} +1 -1
- package/dist/esm/v3/{OrCombinedInput-28a8d0b4.js → OrCombinedInput-b8a868cb.js} +1 -1
- package/dist/esm/v3/{OrConfirm-2b5fd183.js → OrConfirm-658dfa58.js} +2 -2
- package/dist/esm/v3/{OrDateFormat-b0bb8b44.js → OrDateFormat-8322187d.js} +3 -3
- package/dist/esm/v3/{OrDatePicker-c0563d08.js → OrDatePicker-a6518904.js} +4 -4
- package/dist/esm/v3/{OrDateTimeFormat-a16b0c72.js → OrDateTimeFormat-fc9a09d9.js} +3 -3
- package/dist/esm/v3/{OrDateTimePicker-4b2b1442.js → OrDateTimePicker-e13abe97.js} +3 -3
- package/dist/esm/v3/{OrDateTimePickerTimeSelect-eace7c5c.js → OrDateTimePickerTimeSelect-1a7950ad.js} +2 -2
- package/dist/esm/v3/{OrInput-b7b6e94d.js → OrInput-30df8d73.js} +1 -1
- package/dist/esm/v3/{OrInputBox-893ccc8d.js → OrInputBox-912a6254.js} +2 -4
- package/dist/esm/v3/{OrPagination-f2932f2a.js → OrPagination-ed2409fa.js} +1 -1
- package/dist/esm/v3/{OrRichTextEditor-6c3528cc.js → OrRichTextEditor-bdf2e88f.js} +2 -2
- package/dist/esm/v3/{OrSearch-a7b923ca.js → OrSearch-04fdc116.js} +2 -2
- package/dist/esm/v3/{OrSelect-54a645d1.js → OrSelect-559c6cf5.js} +31 -27
- package/dist/esm/v3/{OrSorting-e95c214c.js → OrSorting-535539dc.js} +1 -1
- package/dist/esm/v3/{OrTagInput-5a0e62fa.js → OrTagInput-6824b64e.js} +52 -133
- package/dist/esm/v3/{OrTags-55613233.js → OrTags-ba7e85ee.js} +27 -83
- package/dist/esm/v3/{OrTextarea-5159520e.js → OrTextarea-aa1cf564.js} +1 -1
- package/dist/esm/v3/{OrTimeFormat-ba545558.js → OrTimeFormat-845f1078.js} +3 -3
- package/dist/esm/v3/{OrTimePicker-8c1e9596.js → OrTimePicker-294ab841.js} +4 -4
- package/dist/esm/v3/{OrTree-6237097d.js → OrTree-f661895f.js} +1 -1
- package/dist/esm/v3/components/index.js +27 -27
- package/dist/esm/v3/components/or-button-v3/OrButton.vue.d.ts +0 -1
- 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-group-v3/index.js +3 -3
- package/dist/esm/v3/components/or-checkbox-tree-v3/index.js +2 -2
- package/dist/esm/v3/components/or-code-v3/index.js +2 -2
- package/dist/esm/v3/components/or-combined-input-v3/index.js +2 -2
- package/dist/esm/v3/components/or-confirm-v3/index.js +4 -4
- package/dist/esm/v3/components/or-date-format-v3/index.js +6 -6
- package/dist/esm/v3/components/or-date-picker-v3/index.js +6 -6
- package/dist/esm/v3/components/or-date-time-format-v3/index.js +6 -6
- package/dist/esm/v3/components/or-date-time-picker-v3/index.js +5 -5
- package/dist/esm/v3/components/or-date-time-picker-v3/partials/index.js +4 -4
- package/dist/esm/v3/components/or-date-time-picker-v3/utils/index.js +2 -2
- package/dist/esm/v3/components/or-input-box-v3/OrInputBox.vue.d.ts +2 -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-pagination-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/OrSelect.vue.d.ts +3 -11
- package/dist/esm/v3/components/or-select-v3/index.js +5 -7
- package/dist/esm/v3/components/or-sorting-v3/index.js +2 -2
- package/dist/esm/v3/components/or-tag-input-v3/OrTagInput.vue.d.ts +12 -31
- package/dist/esm/v3/components/or-tag-input-v3/index.js +6 -6
- package/dist/esm/v3/components/or-tags-v3/OrTags.vue.d.ts +7 -20
- package/dist/esm/v3/components/or-tags-v3/index.js +3 -3
- package/dist/esm/v3/components/or-tags-v3/props.d.ts +1 -3
- package/dist/esm/v3/components/or-textarea-v3/index.js +2 -2
- package/dist/esm/v3/components/or-time-format-v3/index.js +6 -6
- package/dist/esm/v3/components/or-time-picker-v3/index.js +6 -6
- package/dist/esm/v3/components/or-tree-v3/index.js +2 -2
- package/dist/esm/v3/{getTimePlaceholder-60978b3e.js → getTimePlaceholder-09859f55.js} +1 -1
- package/dist/esm/v3/hooks/index.js +1 -1
- package/dist/esm/v3/hooks/useOverflow.d.ts +1 -4
- package/dist/esm/v3/index.js +27 -27
- package/dist/esm/{v2/useOverflow-b482f3c9.js → v3/useOverflow-ff9ae748.js} +2 -9
- package/package.json +2 -2
- package/src/components/or-button-v3/OrButton.vue +2 -8
- package/src/components/or-input-box-v3/OrInputBox.vue +0 -4
- package/src/components/or-select-v3/OrSelect.vue +23 -23
- package/src/components/or-tag-input-v3/OrTagInput.vue +44 -123
- package/src/components/or-tag-input-v3/styles.ts +1 -1
- package/src/components/or-tags-v3/OrTags.vue +15 -56
- package/src/components/or-tags-v3/props.ts +0 -4
- package/src/components/or-tags-v3/styles.ts +2 -17
- package/src/hooks/useOverflow.ts +3 -13
- package/dist/bundled/v2/components/OrTagsV3/types.d.ts +0 -6
- package/dist/bundled/v2/components/OrTagsV3/types.js +0 -1
- package/dist/bundled/v2/components/OrTagsV3/utils/castToTag.d.ts +0 -2
- package/dist/bundled/v2/components/OrTagsV3/utils/castToTag.js +0 -12
- package/dist/bundled/v3/components/OrTagsV3/types.d.ts +0 -6
- package/dist/bundled/v3/components/OrTagsV3/types.js +0 -1
- package/dist/bundled/v3/components/OrTagsV3/utils/castToTag.d.ts +0 -2
- package/dist/bundled/v3/components/OrTagsV3/utils/castToTag.js +0 -12
- package/dist/esm/v2/components/or-tags-v3/types.d.ts +0 -6
- package/dist/esm/v2/components/or-tags-v3/utils/castToTag.d.ts +0 -2
- package/dist/esm/v3/components/or-tags-v3/types.d.ts +0 -6
- package/dist/esm/v3/components/or-tags-v3/utils/castToTag.d.ts +0 -2
- package/src/components/or-tags-v3/types.ts +0 -6
- package/src/components/or-tags-v3/utils/castToTag.ts +0 -11
- /package/dist/bundled/v2/{OrDateTimePickerMonthSelect-2bd81295.js → OrDateTimePickerMonthSelect-e2a587bb.js} +0 -0
- /package/dist/bundled/v2/{OrDateTimePickerPopoverHeader-26ec0633.js → OrDateTimePickerPopoverHeader-e90e27c0.js} +0 -0
- /package/dist/bundled/v2/{OrDateTimePickerTimeSelect-3555e247.js → OrDateTimePickerTimeSelect-3d88a1aa.js} +0 -0
|
@@ -41,20 +41,15 @@ var script = defineComponent({
|
|
|
41
41
|
},
|
|
42
42
|
emits: ['click', 'focus', 'blur'],
|
|
43
43
|
expose: ['root'],
|
|
44
|
-
setup(props
|
|
44
|
+
setup(props) {
|
|
45
45
|
// Refs
|
|
46
46
|
const root = ref();
|
|
47
47
|
// Styles
|
|
48
48
|
const rootStyles = computed(() => ['or-button-v3', ...Button, ...ButtonVariants[props.variant], ...ButtonColors[`${props.color}-${props.variant}`], props.loading && 'interactivity-none']);
|
|
49
|
-
// Methods
|
|
50
|
-
function handleClick(e) {
|
|
51
|
-
context.emit('click', e);
|
|
52
|
-
}
|
|
53
49
|
return {
|
|
54
50
|
root,
|
|
55
51
|
rootStyles,
|
|
56
|
-
isVue3
|
|
57
|
-
handleClick
|
|
52
|
+
isVue3
|
|
58
53
|
};
|
|
59
54
|
}
|
|
60
55
|
});
|
|
@@ -76,7 +71,9 @@ var __vue_render__ = function () {
|
|
|
76
71
|
"disabled": _vm.disabled
|
|
77
72
|
}
|
|
78
73
|
}, Object.assign({}, _vm.isVue3 ? {} : _vm.$listeners, {
|
|
79
|
-
click:
|
|
74
|
+
click: function (e) {
|
|
75
|
+
return _vm.$emit('click', e);
|
|
76
|
+
},
|
|
80
77
|
focus: function (e) {
|
|
81
78
|
return _vm.$emit('focus', e);
|
|
82
79
|
},
|
|
@@ -4,7 +4,6 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
4
4
|
root: import("@vue/composition-api").Ref<HTMLButtonElement | undefined>;
|
|
5
5
|
rootStyles: import("@vue/composition-api").ComputedRef<(string | false)[]>;
|
|
6
6
|
isVue3: boolean;
|
|
7
|
-
handleClick: (e: MouseEvent) => void;
|
|
8
7
|
}> & import("@vue/composition-api").Data, {}, {}, {
|
|
9
8
|
type: {
|
|
10
9
|
type: PropType<"button" | "submit" | "reset">;
|
|
@@ -77,7 +76,6 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
77
76
|
root: import("@vue/composition-api").Ref<HTMLButtonElement | undefined>;
|
|
78
77
|
rootStyles: import("@vue/composition-api").ComputedRef<(string | false)[]>;
|
|
79
78
|
isVue3: boolean;
|
|
80
|
-
handleClick: (e: MouseEvent) => void;
|
|
81
79
|
}>, import("@vue/composition-api").Data, {}, {}, {}, {}, string[], {
|
|
82
80
|
activated: boolean;
|
|
83
81
|
type: "button" | "submit" | "reset";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, toRef, watch } from 'vue-demi';
|
|
2
2
|
import { DatePicker, DatePickerPopover } from './styles.js';
|
|
3
|
-
import { O as OrDateTimePickerDateControl, a as OrDateTimePickerDateSelect, b as OrDateTimePickerMonthSelect } from '../../OrDateTimePickerMonthSelect-
|
|
4
|
-
import { O as OrDateTimePickerMobileControl, a as OrDateTimePickerPopoverFooter, b as OrDateTimePickerPopoverHeader } from '../../OrDateTimePickerPopoverHeader-
|
|
3
|
+
import { O as OrDateTimePickerDateControl, a as OrDateTimePickerDateSelect, b as OrDateTimePickerMonthSelect } from '../../OrDateTimePickerMonthSelect-e2a587bb.js';
|
|
4
|
+
import { O as OrDateTimePickerMobileControl, a as OrDateTimePickerPopoverFooter, b as OrDateTimePickerPopoverHeader } from '../../OrDateTimePickerPopoverHeader-e90e27c0.js';
|
|
5
5
|
import __vue_component__$1 from '../OrErrorV3/OrError.js';
|
|
6
6
|
import __vue_component__$2 from '../OrHintV3/OrHint.js';
|
|
7
7
|
import __vue_component__$3 from '../OrIconV3/OrIcon.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, toRef, watch } from 'vue-demi';
|
|
2
|
-
import { O as OrDateTimePickerDateControl, a as OrDateTimePickerDateSelect, b as OrDateTimePickerMonthSelect } from '../../OrDateTimePickerMonthSelect-
|
|
3
|
-
import { O as OrDateTimePickerMobileControl, a as OrDateTimePickerPopoverFooter, b as OrDateTimePickerPopoverHeader } from '../../OrDateTimePickerPopoverHeader-
|
|
4
|
-
import { O as OrDateTimePickerTimeControl, a as OrDateTimePickerTimeSelect } from '../../OrDateTimePickerTimeSelect-
|
|
2
|
+
import { O as OrDateTimePickerDateControl, a as OrDateTimePickerDateSelect, b as OrDateTimePickerMonthSelect } from '../../OrDateTimePickerMonthSelect-e2a587bb.js';
|
|
3
|
+
import { O as OrDateTimePickerMobileControl, a as OrDateTimePickerPopoverFooter, b as OrDateTimePickerPopoverHeader } from '../../OrDateTimePickerPopoverHeader-e90e27c0.js';
|
|
4
|
+
import { O as OrDateTimePickerTimeControl, a as OrDateTimePickerTimeSelect } from '../../OrDateTimePickerTimeSelect-3d88a1aa.js';
|
|
5
5
|
import { DateTimePickerTimeFormat } from './props.js';
|
|
6
6
|
import { DateTimePicker, DateTimePickerDatePopover, DateTimePickerTimePopover } from './styles.js';
|
|
7
7
|
import __vue_component__$1 from '../OrErrorV3/OrError.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { default as OrDateTimePickerV3 } from './OrDateTimePicker.js';
|
|
2
|
-
export { O as OrDateTimePickerDateControl, a as OrDateTimePickerDateSelect, b as OrDateTimePickerMonthSelect } from '../../OrDateTimePickerMonthSelect-
|
|
3
|
-
export { O as OrDateTimePickerMobileControl, a as OrDateTimePickerPopoverFooter, b as OrDateTimePickerPopoverHeader } from '../../OrDateTimePickerPopoverHeader-
|
|
4
|
-
export { O as OrDateTimePickerTimeControl, a as OrDateTimePickerTimeSelect } from '../../OrDateTimePickerTimeSelect-
|
|
2
|
+
export { O as OrDateTimePickerDateControl, a as OrDateTimePickerDateSelect, b as OrDateTimePickerMonthSelect } from '../../OrDateTimePickerMonthSelect-e2a587bb.js';
|
|
3
|
+
export { O as OrDateTimePickerMobileControl, a as OrDateTimePickerPopoverFooter, b as OrDateTimePickerPopoverHeader } from '../../OrDateTimePickerPopoverHeader-e90e27c0.js';
|
|
4
|
+
export { O as OrDateTimePickerTimeControl, a as OrDateTimePickerTimeSelect } from '../../OrDateTimePickerTimeSelect-3d88a1aa.js';
|
|
5
5
|
export { DateTimePickerTimeFormat } from './props.js';
|
|
6
6
|
export { InputBoxSize as DateTimePickerSize } from '../OrInputBoxV3/props.js';
|
|
7
7
|
export { formatDate } from './utils/formatDate.js';
|
|
@@ -104,7 +104,6 @@ var script = defineComponent({
|
|
|
104
104
|
}
|
|
105
105
|
},
|
|
106
106
|
expose: ['root'],
|
|
107
|
-
emits: ['focus'],
|
|
108
107
|
setup(props) {
|
|
109
108
|
// Refs
|
|
110
109
|
const root = ref();
|
|
@@ -132,11 +131,6 @@ var __vue_render__ = function () {
|
|
|
132
131
|
"invalid": _vm.invalid ? '' : null,
|
|
133
132
|
"readonly": _vm.readonly ? '' : null,
|
|
134
133
|
"disabled": _vm.disabled ? '' : null
|
|
135
|
-
},
|
|
136
|
-
on: {
|
|
137
|
-
"focus": function ($event) {
|
|
138
|
-
return _vm.$emit('focus');
|
|
139
|
-
}
|
|
140
134
|
}
|
|
141
135
|
}, [_vm._t("default"), _vm._v(" "), _vm.$slots.addon ? [_c('OrInputBoxAddon', {
|
|
142
136
|
attrs: {
|
|
@@ -51,20 +51,16 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
51
51
|
invalid: boolean;
|
|
52
52
|
readonly: boolean;
|
|
53
53
|
disabled: boolean;
|
|
54
|
-
} & {}
|
|
55
|
-
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
56
|
-
}, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
54
|
+
} & {}, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
57
55
|
root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
|
|
58
56
|
rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
59
|
-
}>, import("@vue/composition-api").Data, {}, {}, {}, {},
|
|
57
|
+
}>, import("@vue/composition-api").Data, {}, {}, {}, {}, {}, {
|
|
60
58
|
variant: "styled" | "unstyled";
|
|
61
59
|
size: "m" | "s";
|
|
62
60
|
invalid: boolean;
|
|
63
61
|
readonly: boolean;
|
|
64
62
|
disabled: boolean;
|
|
65
|
-
} & {}
|
|
66
|
-
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
67
|
-
}, {
|
|
63
|
+
} & {}, {
|
|
68
64
|
variant: "styled" | "unstyled";
|
|
69
65
|
size: "m" | "s";
|
|
70
66
|
invalid: boolean;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, getCurrentInstance, toRefs, onMounted, watch } from 'vue-demi';
|
|
2
|
+
import { isEmptyValue } from '../../utils/isEmptyValue.js';
|
|
2
3
|
import { n as normalizeComponent } from '../../normalize-component-6e8e3d80.js';
|
|
3
4
|
import { Select, SelectControl, SelectSearchControl, SelectDropdown, SelectDropdownFlipped, SelectDropdownDefault, SelectDropdownItem, SelectNoSearchResults } from './styles.js';
|
|
4
5
|
import __vue_component__$2 from '../OrCheckboxV3/OrCheckbox.js';
|
|
@@ -12,9 +13,8 @@ import __vue_component__$9 from '../OrInputBoxV3/OrInputBox.js';
|
|
|
12
13
|
import __vue_component__$a from '../OrLabelV3/OrLabel.js';
|
|
13
14
|
import __vue_component__$b from '../OrMenuItemV3/OrMenuItem.js';
|
|
14
15
|
import __vue_component__$c from '../OrPopoverV3/OrPopover.js';
|
|
15
|
-
import __vue_component__$d from '../
|
|
16
|
-
import {
|
|
17
|
-
import { isEmptyValue } from '../../utils/isEmptyValue.js';
|
|
16
|
+
import __vue_component__$d from '../OrTagV3/OrTag.js';
|
|
17
|
+
import { useOverflow } from '../../hooks/useOverflow.js';
|
|
18
18
|
import { DropdownClose } from '../../directives/dropdown-close.js';
|
|
19
19
|
import { DropdownOpen } from '../../directives/dropdown-open.js';
|
|
20
20
|
import { InputBoxSize } from '../OrInputBoxV3/props.js';
|
|
@@ -101,7 +101,7 @@ var script = defineComponent({
|
|
|
101
101
|
OrMenuItem: __vue_component__$b,
|
|
102
102
|
OrPopover: __vue_component__$c,
|
|
103
103
|
OrSelectPlaceholder,
|
|
104
|
-
|
|
104
|
+
OrTag: __vue_component__$d
|
|
105
105
|
},
|
|
106
106
|
directives: {
|
|
107
107
|
DropdownClose,
|
|
@@ -190,10 +190,6 @@ var script = defineComponent({
|
|
|
190
190
|
externalControl: {
|
|
191
191
|
type: Boolean,
|
|
192
192
|
default: false
|
|
193
|
-
},
|
|
194
|
-
overflow: {
|
|
195
|
-
type: String,
|
|
196
|
-
default: TagsOverflow.Hidden
|
|
197
193
|
}
|
|
198
194
|
},
|
|
199
195
|
emits: ['update:modelValue', 'focus', 'blur', 'search'],
|
|
@@ -309,12 +305,16 @@ var script = defineComponent({
|
|
|
309
305
|
function deselect(option) {
|
|
310
306
|
const modelValue = proxyModelValue.value;
|
|
311
307
|
if (Array.isArray(modelValue)) {
|
|
312
|
-
proxyModelValue.value = modelValue.filter(value => value !== option);
|
|
308
|
+
proxyModelValue.value = modelValue.filter(value => value !== option.value);
|
|
313
309
|
}
|
|
314
310
|
}
|
|
315
311
|
function clearSearchControl() {
|
|
316
312
|
searchText.value = '';
|
|
317
313
|
}
|
|
314
|
+
const {
|
|
315
|
+
innerItems,
|
|
316
|
+
outerItems
|
|
317
|
+
} = useOverflow(control);
|
|
318
318
|
// Utils
|
|
319
319
|
const {
|
|
320
320
|
isDesktop,
|
|
@@ -355,6 +355,8 @@ var script = defineComponent({
|
|
|
355
355
|
close,
|
|
356
356
|
deselect,
|
|
357
357
|
clearSearchControl,
|
|
358
|
+
innerItems,
|
|
359
|
+
outerItems,
|
|
358
360
|
isDesktop,
|
|
359
361
|
isMobile
|
|
360
362
|
};
|
|
@@ -424,22 +426,20 @@ var __vue_render__ = function () {
|
|
|
424
426
|
}
|
|
425
427
|
}
|
|
426
428
|
}, [_vm.multiple ? [!_vm.isEmptyModelValue ? [_vm._t("valueTemplate", function () {
|
|
427
|
-
return
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
"tag-props": {
|
|
434
|
-
variant: _vm.readonly || _vm.disabled ? 'tag' : 'reset',
|
|
435
|
-
disabled: _vm.disabled
|
|
429
|
+
return _vm._l(_vm.selection, function (option) {
|
|
430
|
+
return _c('OrTag', {
|
|
431
|
+
key: option.value,
|
|
432
|
+
attrs: {
|
|
433
|
+
"variant": _vm.readonly || _vm.disabled ? 'tag' : 'reset',
|
|
434
|
+
"disabled": _vm.disabled
|
|
436
435
|
},
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
436
|
+
on: {
|
|
437
|
+
"reset": function ($event) {
|
|
438
|
+
return _vm.deselect(option);
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
}, [_vm._v("\n " + _vm._s(option.label) + "\n ")]);
|
|
442
|
+
});
|
|
443
443
|
}, {
|
|
444
444
|
"model": _vm.proxyModelValue
|
|
445
445
|
})] : _vm.popoverState === 'closed' || !_vm.enableSearch ? [_c('OrSelectPlaceholder', {
|
|
@@ -456,7 +456,7 @@ var __vue_render__ = function () {
|
|
|
456
456
|
attrs: {
|
|
457
457
|
"disabled": _vm.disabled
|
|
458
458
|
}
|
|
459
|
-
}, [_vm._v("\n " + _vm._s(_vm.placeholder) + "\n ")])] : _vm._e()]], 2), _vm._v(" "), _vm.popoverState === 'open' && _vm.enableSearch && _vm.isDesktop
|
|
459
|
+
}, [_vm._v("\n " + _vm._s(_vm.placeholder) + "\n ")])] : _vm._e()]], 2), _vm._v(" "), _vm.multiple && _vm.outerItems.length > 0 ? [_vm._v("\n +" + _vm._s(_vm.outerItems.length) + "\n ")] : _vm._e(), _vm._v(" "), _vm.popoverState === 'open' && _vm.enableSearch && _vm.isDesktop ? [_c('OrInput', {
|
|
460
460
|
ref: "searchControl",
|
|
461
461
|
class: _vm.searchControlStyles.concat([_vm.isEmptyModelValue && 'md:!ml-none']),
|
|
462
462
|
attrs: {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { PropType } from 'vue-demi';
|
|
2
2
|
import { SelectSize } from './props';
|
|
3
3
|
import { SelectGroupByFunction, SelectOption, SelectSearchFunction } from './types';
|
|
4
|
-
import { TagsOverflow } from '../or-tags-v3';
|
|
5
4
|
declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
6
5
|
root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
|
|
7
6
|
inputBox: import("@vue/composition-api").Ref<import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
|
|
@@ -40,8 +39,10 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
40
39
|
groupedOptions: import("@vue/composition-api").ComputedRef<Record<string, SelectOption[]>>;
|
|
41
40
|
toggle: () => void;
|
|
42
41
|
close: () => void;
|
|
43
|
-
deselect: (option:
|
|
42
|
+
deselect: (option: SelectOption) => void;
|
|
44
43
|
clearSearchControl: () => void;
|
|
44
|
+
innerItems: import("@vue/composition-api").Ref<HTMLElement[]>;
|
|
45
|
+
outerItems: import("@vue/composition-api").Ref<HTMLElement[]>;
|
|
45
46
|
isDesktop: import("@vue/composition-api").ComputedRef<boolean>;
|
|
46
47
|
isMobile: import("@vue/composition-api").ComputedRef<boolean>;
|
|
47
48
|
}> & import("@vue/composition-api").Data, {}, {}, {
|
|
@@ -117,10 +118,6 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
117
118
|
type: BooleanConstructor;
|
|
118
119
|
default: boolean;
|
|
119
120
|
};
|
|
120
|
-
overflow: {
|
|
121
|
-
type: PropType<"default" | "wrap" | "hidden" | "scroll">;
|
|
122
|
-
default: TagsOverflow;
|
|
123
|
-
};
|
|
124
121
|
}, import("@vue/composition-api").ExtractPropTypes<{
|
|
125
122
|
options: {
|
|
126
123
|
type: PropType<SelectOption[]>;
|
|
@@ -194,10 +191,6 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
194
191
|
type: BooleanConstructor;
|
|
195
192
|
default: boolean;
|
|
196
193
|
};
|
|
197
|
-
overflow: {
|
|
198
|
-
type: PropType<"default" | "wrap" | "hidden" | "scroll">;
|
|
199
|
-
default: TagsOverflow;
|
|
200
|
-
};
|
|
201
194
|
}>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
|
|
202
195
|
modelValue: string | number | object | string[] | object[] | number[];
|
|
203
196
|
label: string;
|
|
@@ -217,7 +210,6 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
217
210
|
searchFunction: SelectSearchFunction;
|
|
218
211
|
groupByFunction: SelectGroupByFunction;
|
|
219
212
|
externalControl: boolean;
|
|
220
|
-
overflow: "default" | "wrap" | "hidden" | "scroll";
|
|
221
213
|
} & {} & {
|
|
222
214
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
223
215
|
}, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
@@ -258,8 +250,10 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
258
250
|
groupedOptions: import("@vue/composition-api").ComputedRef<Record<string, SelectOption[]>>;
|
|
259
251
|
toggle: () => void;
|
|
260
252
|
close: () => void;
|
|
261
|
-
deselect: (option:
|
|
253
|
+
deselect: (option: SelectOption) => void;
|
|
262
254
|
clearSearchControl: () => void;
|
|
255
|
+
innerItems: import("@vue/composition-api").Ref<HTMLElement[]>;
|
|
256
|
+
outerItems: import("@vue/composition-api").Ref<HTMLElement[]>;
|
|
263
257
|
isDesktop: import("@vue/composition-api").ComputedRef<boolean>;
|
|
264
258
|
isMobile: import("@vue/composition-api").ComputedRef<boolean>;
|
|
265
259
|
}>, import("@vue/composition-api").Data, {}, {}, {}, {}, string[], {
|
|
@@ -281,7 +275,6 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
281
275
|
searchFunction: SelectSearchFunction;
|
|
282
276
|
groupByFunction: SelectGroupByFunction;
|
|
283
277
|
externalControl: boolean;
|
|
284
|
-
overflow: "default" | "wrap" | "hidden" | "scroll";
|
|
285
278
|
} & {} & {
|
|
286
279
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
287
280
|
}, {
|
|
@@ -303,6 +296,5 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
303
296
|
searchFunction: SelectSearchFunction;
|
|
304
297
|
groupByFunction: SelectGroupByFunction;
|
|
305
298
|
externalControl: boolean;
|
|
306
|
-
overflow: "default" | "wrap" | "hidden" | "scroll";
|
|
307
299
|
}, true>);
|
|
308
300
|
export default _default;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { defineComponent, ref,
|
|
2
|
-
import { o as onClickOutside } from '../../index-a488b35e.js';
|
|
1
|
+
import { defineComponent, ref, computed, reactive, toRef } from 'vue-demi';
|
|
3
2
|
import { TagInput, TagInputControl, TagInputItem } from './styles.js';
|
|
4
3
|
import __vue_component__$1 from '../OrErrorV3/OrError.js';
|
|
5
4
|
import __vue_component__$2 from '../OrHintV3/OrHint.js';
|
|
@@ -7,7 +6,7 @@ import __vue_component__$3 from '../OrIconButtonV3/OrIconButton.js';
|
|
|
7
6
|
import __vue_component__$4 from '../OrInputBoxV3/OrInputBox.js';
|
|
8
7
|
import __vue_component__$5 from '../OrLabelV3/OrLabel.js';
|
|
9
8
|
import __vue_component__$6 from '../OrTagsV3/OrTags.js';
|
|
10
|
-
import {
|
|
9
|
+
import { InputBoxSize } from '../OrInputBoxV3/props.js';
|
|
11
10
|
import { useIdAttribute } from '../../hooks/useIdAttribute.js';
|
|
12
11
|
import { useControlAttributes } from '../../hooks/useControlAttributes.js';
|
|
13
12
|
import { useValidationAttributes } from '../../hooks/useValidationAttributes.js';
|
|
@@ -16,6 +15,7 @@ import { s as styleInject } from '../../style-inject.es-4c6f2515.js';
|
|
|
16
15
|
import { n as normalizeComponent } from '../../normalize-component-6e8e3d80.js';
|
|
17
16
|
|
|
18
17
|
var script = defineComponent({
|
|
18
|
+
name: 'OrTagInput',
|
|
19
19
|
components: {
|
|
20
20
|
OrError: __vue_component__$1,
|
|
21
21
|
OrHint: __vue_component__$2,
|
|
@@ -33,6 +33,10 @@ var script = defineComponent({
|
|
|
33
33
|
type: Array,
|
|
34
34
|
default: () => []
|
|
35
35
|
},
|
|
36
|
+
size: {
|
|
37
|
+
type: String,
|
|
38
|
+
default: InputBoxSize.M
|
|
39
|
+
},
|
|
36
40
|
label: {
|
|
37
41
|
type: String,
|
|
38
42
|
default: undefined
|
|
@@ -64,33 +68,14 @@ var script = defineComponent({
|
|
|
64
68
|
disableDefaultStyles: {
|
|
65
69
|
type: Boolean,
|
|
66
70
|
default: false
|
|
67
|
-
},
|
|
68
|
-
overflow: {
|
|
69
|
-
type: String,
|
|
70
|
-
default: TagsOverflow.Hidden
|
|
71
|
-
},
|
|
72
|
-
// todo: review default state, disabling will breaking
|
|
73
|
-
enableClear: {
|
|
74
|
-
type: Boolean,
|
|
75
|
-
default: true
|
|
76
71
|
}
|
|
77
72
|
},
|
|
78
|
-
emits: ['update:modelValue', 'keydown', 'keyup', 'focus', 'blur'
|
|
73
|
+
emits: ['update:modelValue', 'keydown', 'keyup', 'focus', 'blur'],
|
|
79
74
|
expose: ['root', 'focus', 'blur'],
|
|
80
75
|
setup(props, context) {
|
|
81
76
|
// Refs
|
|
82
77
|
const root = ref();
|
|
83
78
|
const control = ref();
|
|
84
|
-
const inputBox = ref();
|
|
85
|
-
const tags = ref();
|
|
86
|
-
// Props
|
|
87
|
-
const {
|
|
88
|
-
modelValue,
|
|
89
|
-
overflow,
|
|
90
|
-
placeholder,
|
|
91
|
-
disabled,
|
|
92
|
-
readonly
|
|
93
|
-
} = toRefs(props);
|
|
94
79
|
// Styles
|
|
95
80
|
const rootStyles = computed(() => ['or-tag-input-v3', ...TagInput]);
|
|
96
81
|
const controlStyles = computed(() => [...TagInputControl]);
|
|
@@ -101,24 +86,13 @@ var script = defineComponent({
|
|
|
101
86
|
...useControlAttributes(),
|
|
102
87
|
...useValidationAttributes()
|
|
103
88
|
});
|
|
104
|
-
const
|
|
105
|
-
const
|
|
106
|
-
const draftModelValue = ref('');
|
|
89
|
+
const proxyModelValue = useProxyModelValue(toRef(props, 'modelValue'), context.emit);
|
|
90
|
+
const draftModelValue = ref();
|
|
107
91
|
const currentLength = computed(() => {
|
|
108
92
|
var _a, _b;
|
|
109
93
|
return (_b = (_a = proxyModelValue.value) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0;
|
|
110
94
|
});
|
|
111
95
|
const maxLength = computed(() => controlAttributes.maxlength);
|
|
112
|
-
const controlInlineStyles = computed(() => {
|
|
113
|
-
var _a, _b;
|
|
114
|
-
const chars = draftModelValue.value.length > 0 ? draftModelValue.value.length : currentLength.value === 0 ? (_b = (_a = placeholder.value) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0 : 0;
|
|
115
|
-
return {
|
|
116
|
-
width: `${Math.max(chars + 1 || 0, 3)}ch`
|
|
117
|
-
};
|
|
118
|
-
});
|
|
119
|
-
const showControl = computed(() => {
|
|
120
|
-
return draftModelValue.value.length > 0 || currentLength.value === 0 || activated.value;
|
|
121
|
-
});
|
|
122
96
|
// Methods
|
|
123
97
|
function focus() {
|
|
124
98
|
var _a;
|
|
@@ -128,17 +102,6 @@ var script = defineComponent({
|
|
|
128
102
|
var _a;
|
|
129
103
|
(_a = control.value) === null || _a === void 0 ? void 0 : _a.blur();
|
|
130
104
|
}
|
|
131
|
-
function deactivate() {
|
|
132
|
-
activated.value = false;
|
|
133
|
-
nextTick(() => blur());
|
|
134
|
-
context.emit('blur');
|
|
135
|
-
}
|
|
136
|
-
function activate() {
|
|
137
|
-
if (disabled.value || readonly.value) return;
|
|
138
|
-
activated.value = true;
|
|
139
|
-
nextTick(() => focus());
|
|
140
|
-
context.emit('focus');
|
|
141
|
-
}
|
|
142
105
|
function add() {
|
|
143
106
|
var _a;
|
|
144
107
|
const newItem = (_a = draftModelValue.value) === null || _a === void 0 ? void 0 : _a.trim();
|
|
@@ -146,60 +109,36 @@ var script = defineComponent({
|
|
|
146
109
|
if (proxyModelValue.value.includes(newItem)) return;
|
|
147
110
|
if (maxLength.value && currentLength.value >= maxLength.value) return;
|
|
148
111
|
proxyModelValue.value = [...proxyModelValue.value, newItem];
|
|
149
|
-
draftModelValue.value =
|
|
112
|
+
draftModelValue.value = undefined;
|
|
150
113
|
}
|
|
151
114
|
function remove(value) {
|
|
152
115
|
proxyModelValue.value = proxyModelValue.value.filter(item => item !== value);
|
|
153
116
|
}
|
|
154
117
|
function reset() {
|
|
155
118
|
proxyModelValue.value = [];
|
|
156
|
-
draftModelValue.value =
|
|
157
|
-
context.emit('reset');
|
|
119
|
+
draftModelValue.value = undefined;
|
|
158
120
|
}
|
|
159
|
-
// Effects
|
|
160
|
-
onClickOutside(inputBox, () => {
|
|
161
|
-
var _a, _b;
|
|
162
|
-
if (activated.value === false || ((_b = (_a = tags.value) === null || _a === void 0 ? void 0 : _a.overflowPopover) === null || _b === void 0 ? void 0 : _b.state) === 'open') return;
|
|
163
|
-
deactivate();
|
|
164
|
-
});
|
|
165
|
-
watch(proxyModelValue, (items, prevItems) => {
|
|
166
|
-
if (items.length != prevItems.length && overflow.value === TagsOverflow.Scroll) {
|
|
167
|
-
nextTick(() => {
|
|
168
|
-
var _a, _b, _c;
|
|
169
|
-
(_c = (_b = (_a = tags.value) === null || _a === void 0 ? void 0 : _a.container) === null || _b === void 0 ? void 0 : _b.lastElementChild) === null || _c === void 0 ? void 0 : _c.scrollIntoView({
|
|
170
|
-
behavior: 'smooth'
|
|
171
|
-
});
|
|
172
|
-
});
|
|
173
|
-
}
|
|
174
|
-
});
|
|
175
121
|
return {
|
|
176
122
|
root,
|
|
177
123
|
control,
|
|
178
|
-
inputBox,
|
|
179
|
-
tags,
|
|
180
124
|
rootStyles,
|
|
181
125
|
controlStyles,
|
|
182
126
|
itemStyles,
|
|
183
|
-
controlInlineStyles,
|
|
184
127
|
controlAttributes,
|
|
185
128
|
proxyModelValue,
|
|
186
129
|
draftModelValue,
|
|
187
130
|
currentLength,
|
|
188
131
|
maxLength,
|
|
189
|
-
activated,
|
|
190
|
-
showControl,
|
|
191
132
|
focus,
|
|
192
133
|
blur,
|
|
193
134
|
add,
|
|
194
|
-
activate,
|
|
195
|
-
deactivate,
|
|
196
135
|
remove,
|
|
197
136
|
reset
|
|
198
137
|
};
|
|
199
138
|
}
|
|
200
139
|
});
|
|
201
140
|
|
|
202
|
-
var css_248z = "input[data-v-
|
|
141
|
+
var css_248z = "input[data-v-51a52348]{min-width:0;background:0 0;outline:0}";
|
|
203
142
|
styleInject(css_248z);
|
|
204
143
|
|
|
205
144
|
/* script */
|
|
@@ -227,20 +166,14 @@ var __vue_render__ = function () {
|
|
|
227
166
|
proxy: true
|
|
228
167
|
}], null, true)
|
|
229
168
|
}, [_vm._v("\n " + _vm._s(_vm.label) + "\n\n ")])] : _vm._e(), _vm._v(" "), _c('OrInputBox', {
|
|
230
|
-
ref: "inputBox",
|
|
231
|
-
staticClass: "cursor-text",
|
|
232
169
|
attrs: {
|
|
233
170
|
"variant": _vm.disableDefaultStyles ? 'unstyled' : 'styled',
|
|
234
|
-
"
|
|
171
|
+
"size": _vm.size,
|
|
235
172
|
"invalid": !!_vm.error,
|
|
236
173
|
"readonly": _vm.readonly,
|
|
237
|
-
"disabled": _vm.disabled
|
|
238
|
-
"tabindex": "0"
|
|
239
|
-
},
|
|
240
|
-
on: {
|
|
241
|
-
"focus": _vm.activate
|
|
174
|
+
"disabled": _vm.disabled
|
|
242
175
|
},
|
|
243
|
-
scopedSlots: _vm._u([
|
|
176
|
+
scopedSlots: _vm._u([{
|
|
244
177
|
key: "addon",
|
|
245
178
|
fn: function () {
|
|
246
179
|
return [_vm.proxyModelValue.length > 0 || _vm.draftModelValue ? [_c('OrIconButton', {
|
|
@@ -251,82 +184,74 @@ var __vue_render__ = function () {
|
|
|
251
184
|
},
|
|
252
185
|
on: {
|
|
253
186
|
"click": function ($event) {
|
|
187
|
+
$event.stopPropagation();
|
|
254
188
|
return _vm.reset();
|
|
255
189
|
}
|
|
256
190
|
}
|
|
257
191
|
})] : _vm._e()];
|
|
258
192
|
},
|
|
259
193
|
proxy: true
|
|
260
|
-
}
|
|
261
|
-
}, [_c('OrTags', {
|
|
262
|
-
ref: "tags",
|
|
263
|
-
staticClass: "grow",
|
|
194
|
+
}])
|
|
195
|
+
}, [_vm.proxyModelValue.length > 0 ? [_c('OrTags', {
|
|
264
196
|
attrs: {
|
|
265
197
|
"items": _vm.proxyModelValue,
|
|
266
|
-
"disabled": _vm.disabled,
|
|
267
198
|
"tag-props": {
|
|
268
199
|
variant: _vm.readonly || _vm.disabled ? 'tag' : 'reset',
|
|
269
200
|
disabled: _vm.disabled
|
|
270
|
-
}
|
|
271
|
-
"overflow": _vm.overflow
|
|
201
|
+
}
|
|
272
202
|
},
|
|
273
203
|
on: {
|
|
274
204
|
"reset": function ($event) {
|
|
275
205
|
return _vm.remove($event);
|
|
276
206
|
}
|
|
207
|
+
}
|
|
208
|
+
})] : _vm._e(), _vm._v(" "), _c('input', _vm._b({
|
|
209
|
+
directives: [{
|
|
210
|
+
name: "model",
|
|
211
|
+
rawName: "v-model",
|
|
212
|
+
value: _vm.draftModelValue,
|
|
213
|
+
expression: "draftModelValue"
|
|
214
|
+
}],
|
|
215
|
+
ref: "control",
|
|
216
|
+
class: _vm.controlStyles,
|
|
217
|
+
attrs: {
|
|
218
|
+
"placeholder": _vm.proxyModelValue.length === 0 ? _vm.placeholder : undefined,
|
|
219
|
+
"readonly": _vm.readonly,
|
|
220
|
+
"disabled": _vm.disabled,
|
|
221
|
+
"autocomplete": 'off',
|
|
222
|
+
"minlength": undefined,
|
|
223
|
+
"maxlength": undefined,
|
|
224
|
+
"type": 'text'
|
|
277
225
|
},
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
style: _vm.controlInlineStyles,
|
|
293
|
-
attrs: {
|
|
294
|
-
"placeholder": _vm.proxyModelValue.length === 0 ? _vm.placeholder : undefined,
|
|
295
|
-
"readonly": _vm.readonly,
|
|
296
|
-
"disabled": _vm.disabled,
|
|
297
|
-
"autocomplete": 'off',
|
|
298
|
-
"minlength": undefined,
|
|
299
|
-
"maxlength": undefined,
|
|
300
|
-
"type": 'text'
|
|
301
|
-
},
|
|
302
|
-
domProps: {
|
|
303
|
-
"value": _vm.draftModelValue
|
|
304
|
-
},
|
|
305
|
-
on: {
|
|
306
|
-
"keydown": [function ($event) {
|
|
307
|
-
if (!$event.type.indexOf('key') && _vm._k($event.keyCode, "enter", 13, $event.key, "Enter")) {
|
|
308
|
-
return null;
|
|
309
|
-
}
|
|
310
|
-
return _vm.add();
|
|
311
|
-
}, function ($event) {
|
|
312
|
-
return _vm.$emit('keydown', $event);
|
|
313
|
-
}],
|
|
314
|
-
"keyup": function ($event) {
|
|
315
|
-
return _vm.$emit('keyup', $event);
|
|
316
|
-
},
|
|
317
|
-
"focus": _vm.activate,
|
|
318
|
-
"input": function ($event) {
|
|
319
|
-
if ($event.target.composing) {
|
|
320
|
-
return;
|
|
321
|
-
}
|
|
322
|
-
_vm.draftModelValue = $event.target.value;
|
|
323
|
-
}
|
|
324
|
-
}
|
|
325
|
-
}, 'input', _vm.controlAttributes, false))])];
|
|
226
|
+
domProps: {
|
|
227
|
+
"value": _vm.draftModelValue
|
|
228
|
+
},
|
|
229
|
+
on: {
|
|
230
|
+
"keydown": [function ($event) {
|
|
231
|
+
if (!$event.type.indexOf('key') && _vm._k($event.keyCode, "enter", 13, $event.key, "Enter")) {
|
|
232
|
+
return null;
|
|
233
|
+
}
|
|
234
|
+
return _vm.add();
|
|
235
|
+
}, function ($event) {
|
|
236
|
+
return _vm.$emit('keydown', $event);
|
|
237
|
+
}],
|
|
238
|
+
"keyup": function ($event) {
|
|
239
|
+
return _vm.$emit('keyup', $event);
|
|
326
240
|
},
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
241
|
+
"focus": function ($event) {
|
|
242
|
+
return _vm.$emit('focus', $event);
|
|
243
|
+
},
|
|
244
|
+
"blur": function ($event) {
|
|
245
|
+
return _vm.$emit('blur', $event);
|
|
246
|
+
},
|
|
247
|
+
"input": function ($event) {
|
|
248
|
+
if ($event.target.composing) {
|
|
249
|
+
return;
|
|
250
|
+
}
|
|
251
|
+
_vm.draftModelValue = $event.target.value;
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
}, 'input', _vm.controlAttributes, false))], 2), _vm._v(" "), _c('div', {
|
|
330
255
|
directives: [{
|
|
331
256
|
name: "show",
|
|
332
257
|
rawName: "v-show",
|
|
@@ -371,7 +296,7 @@ var __vue_staticRenderFns__ = [];
|
|
|
371
296
|
/* style */
|
|
372
297
|
const __vue_inject_styles__ = undefined;
|
|
373
298
|
/* scoped */
|
|
374
|
-
const __vue_scope_id__ = "data-v-
|
|
299
|
+
const __vue_scope_id__ = "data-v-51a52348";
|
|
375
300
|
/* module identifier */
|
|
376
301
|
const __vue_module_identifier__ = undefined;
|
|
377
302
|
/* functional template */
|