@onereach/ui-components 6.4.7 → 6.4.8-beta.3470.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/OrInputBoxV3/OrInputBox.js +6 -0
- package/dist/bundled/v2/components/OrInputBoxV3/OrInputBox.vue.d.ts +7 -3
- package/dist/bundled/v2/components/OrTagInputV3/OrTagInput.js +138 -60
- package/dist/bundled/v2/components/OrTagInputV3/OrTagInput.vue.d.ts +59 -2
- package/dist/bundled/v2/components/OrTagInputV3/styles.js +1 -1
- package/dist/bundled/v2/components/OrTagsV3/OrTags.js +24 -10
- package/dist/bundled/v2/components/OrTagsV3/OrTags.vue.d.ts +9 -5
- package/dist/bundled/v2/components/OrTagsV3/props.d.ts +3 -1
- package/dist/bundled/v2/components/OrTagsV3/props.js +4 -0
- package/dist/bundled/v2/components/OrTagsV3/styles.js +13 -3
- package/dist/bundled/v2/hooks/useOverflow.js +1 -1
- package/dist/bundled/v2/index.js +1 -1
- package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-3b37f8da.js → OrCardCollection.vue_vue_type_script_lang-519a5968.js} +1 -1
- package/dist/bundled/v3/{OrCode.vue_vue_type_script_lang-126d56f7.js → OrCode.vue_vue_type_script_lang-c360396d.js} +1 -1
- package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-56a57a28.js → OrConfirm.vue_vue_type_script_lang-b3dfc56e.js} +1 -1
- package/dist/bundled/v3/{OrDatePicker.vue_vue_type_script_lang-7d8b90bc.js → OrDatePicker.vue_vue_type_script_lang-be208d62.js} +1 -1
- package/dist/bundled/v3/{OrDateTimePicker.vue_vue_type_script_lang-090b5555.js → OrDateTimePicker.vue_vue_type_script_lang-297ed75c.js} +1 -1
- package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-bd483fbc.js → OrInput.vue_vue_type_script_lang-dddbcae1.js} +1 -1
- package/dist/bundled/v3/{OrInputBox.vue_vue_type_script_lang-137cb650.js → OrInputBox.vue_vue_type_script_lang-dede5b69.js} +1 -0
- package/dist/bundled/v3/{OrRichTextEditor.vue_vue_type_script_lang-b9bfac12.js → OrRichTextEditor.vue_vue_type_script_lang-583a4bae.js} +1 -1
- package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-e76fd9bd.js → OrSearch.vue_vue_type_script_lang-f50c9bbc.js} +1 -1
- package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-c0bcc2b5.js → OrSelect.vue_vue_type_script_lang-982f9498.js} +2 -2
- package/dist/bundled/v3/{OrTagInput.vue_vue_type_script_lang-108a1678.js → OrTagInput.vue_vue_type_script_lang-a7282068.js} +72 -8
- package/dist/bundled/v3/{OrTags.vue_vue_type_script_lang-a6fed075.js → OrTags.vue_vue_type_script_lang-d083e203.js} +18 -5
- package/dist/bundled/v3/{OrTextarea.vue_vue_type_script_lang-a7cfbe82.js → OrTextarea.vue_vue_type_script_lang-60883233.js} +1 -1
- package/dist/bundled/v3/{OrTimePicker.vue_vue_type_script_lang-18f5c74e.js → OrTimePicker.vue_vue_type_script_lang-ee21c668.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 +1 -1
- package/dist/bundled/v3/components/OrInputBoxV3/OrInputBox.js +5 -4
- package/dist/bundled/v3/components/OrInputBoxV3/OrInputBox.vue.d.ts +4 -2
- 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/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/OrTagInputV3/OrTagInput.js +59 -38
- package/dist/bundled/v3/components/OrTagInputV3/OrTagInput.vue.d.ts +31 -2
- 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 +14 -8
- package/dist/bundled/v3/components/OrTagsV3/OrTags.vue.d.ts +5 -3
- package/dist/bundled/v3/components/OrTagsV3/index.js +1 -1
- package/dist/bundled/v3/components/OrTagsV3/props.d.ts +3 -1
- package/dist/bundled/v3/components/OrTagsV3/props.js +4 -0
- package/dist/bundled/v3/components/OrTagsV3/styles.js +13 -3
- 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/index.js +14 -14
- package/dist/bundled/v3/hooks/useOverflow.js +1 -1
- package/dist/bundled/v3/index.js +15 -15
- package/dist/esm/v2/{OrCardCollection-45c66d62.js → OrCardCollection-1e564f10.js} +2 -2
- package/dist/esm/v2/{OrCode-57bd041c.js → OrCode-cb4f5246.js} +2 -2
- package/dist/esm/v2/{OrCombinedInput-08f20c4c.js → OrCombinedInput-5b710ae4.js} +1 -1
- package/dist/esm/v2/{OrConfirm-3ff773e4.js → OrConfirm-f3a8c7d7.js} +1 -1
- package/dist/esm/v2/{OrDateFormat-d06e6a17.js → OrDateFormat-e65a57be.js} +3 -3
- package/dist/esm/v2/{OrDatePicker-8590a3e0.js → OrDatePicker-d0b137f9.js} +5 -5
- package/dist/esm/v2/{OrDateTimeFormat-958ac2b5.js → OrDateTimeFormat-bc6b4742.js} +3 -3
- package/dist/esm/v2/{OrDateTimePicker-43e5c95b.js → OrDateTimePicker-d53a45b3.js} +1 -1
- package/dist/esm/v2/{OrDateTimePicker.vue_rollup-plugin-vue_script-c15c0ff1.js → OrDateTimePicker.vue_rollup-plugin-vue_script-31aa2dea.js} +4 -4
- package/dist/esm/v2/{OrDateTimePickerTimeSelect-a122ae93.js → OrDateTimePickerTimeSelect-89a31a71.js} +1 -1
- package/dist/esm/v2/{OrInput-794bc2f6.js → OrInput-9b7bc7c7.js} +2 -2
- package/dist/esm/v2/{OrInputBox-7dc5b9e9.js → OrInputBox-54d34025.js} +6 -1
- package/dist/esm/v2/{OrInputBox.vue_rollup-plugin-vue_script-4fde9829.js → OrInputBox.vue_rollup-plugin-vue_script-8549f215.js} +1 -0
- package/dist/esm/v2/{OrRichTextEditor-b12605d3.js → OrRichTextEditor-bb5f6ec0.js} +1 -1
- package/dist/esm/v2/{OrSearch-21ae4e63.js → OrSearch-2a42defc.js} +2 -2
- package/dist/esm/v2/{OrSelect-0a5c0317.js → OrSelect-c87358c4.js} +4 -4
- package/dist/esm/v2/{OrTagInput-ebfaeaca.js → OrTagInput-0ac007eb.js} +141 -65
- package/dist/esm/v2/{OrTags-b02fadce.js → OrTags-b3f626d1.js} +42 -14
- package/dist/esm/v2/{OrTextarea-58bd5e83.js → OrTextarea-5f4a6d2a.js} +2 -2
- package/dist/esm/v2/{OrTimeFormat-c369099a.js → OrTimeFormat-1f20464e.js} +3 -3
- package/dist/esm/v2/{OrTimePicker-444a7d26.js → OrTimePicker-9c1501e2.js} +5 -5
- package/dist/esm/v2/components/index.js +23 -23
- package/dist/esm/v2/components/or-card-collection-v3/index.js +5 -5
- 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 +4 -4
- package/dist/esm/v2/components/or-date-format-v3/index.js +6 -6
- package/dist/esm/v2/components/or-date-picker-v3/index.js +6 -6
- package/dist/esm/v2/components/or-date-time-format-v3/index.js +6 -6
- package/dist/esm/v2/components/or-date-time-picker-v3/index.js +6 -6
- package/dist/esm/v2/components/or-date-time-picker-v3/partials/index.js +3 -3
- package/dist/esm/v2/components/or-date-time-picker-v3/utils/index.js +2 -2
- package/dist/esm/v2/components/or-input-box-v3/OrInputBox.vue.d.ts +7 -3
- 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-rich-text-editor-v3/index.js +4 -4
- package/dist/esm/v2/components/or-search-v3/index.js +4 -4
- package/dist/esm/v2/components/or-select-v3/index.js +5 -5
- package/dist/esm/v2/components/or-tag-input-v3/OrTagInput.vue.d.ts +59 -2
- package/dist/esm/v2/components/or-tag-input-v3/index.js +6 -6
- package/dist/esm/v2/components/or-tags-v3/OrTags.vue.d.ts +9 -5
- package/dist/esm/v2/components/or-tags-v3/index.js +2 -2
- package/dist/esm/v2/components/or-tags-v3/props.d.ts +3 -1
- package/dist/esm/v2/components/or-textarea-v3/index.js +3 -3
- package/dist/esm/v2/components/or-time-format-v3/index.js +6 -6
- package/dist/esm/v2/components/or-time-picker-v3/index.js +6 -6
- package/dist/esm/v2/{getTimePlaceholder-06d57fcf.js → getTimePlaceholder-4a7e7a31.js} +1 -1
- package/dist/esm/v2/hooks/index.js +1 -1
- package/dist/esm/v2/index.js +23 -23
- package/dist/esm/v2/{useOverflow-ff9ae748.js → useOverflow-122c613d.js} +1 -1
- package/dist/esm/v3/{OrCardCollection-64175d94.js → OrCardCollection-307a4c3d.js} +2 -2
- package/dist/esm/v3/{OrCode-56268647.js → OrCode-b4fe3443.js} +1 -1
- package/dist/esm/v3/{OrCombinedInput-b8a868cb.js → OrCombinedInput-28a8d0b4.js} +1 -1
- package/dist/esm/v3/{OrConfirm-658dfa58.js → OrConfirm-4d88e0c8.js} +1 -1
- package/dist/esm/v3/{OrDateFormat-8322187d.js → OrDateFormat-c2d94f69.js} +3 -3
- package/dist/esm/v3/{OrDatePicker-a6518904.js → OrDatePicker-7d148993.js} +4 -4
- package/dist/esm/v3/{OrDateTimeFormat-fc9a09d9.js → OrDateTimeFormat-2061b8a0.js} +3 -3
- package/dist/esm/v3/{OrDateTimePicker-e13abe97.js → OrDateTimePicker-765046c1.js} +3 -3
- package/dist/esm/v3/{OrDateTimePickerTimeSelect-1a7950ad.js → OrDateTimePickerTimeSelect-ae6165f0.js} +1 -1
- package/dist/esm/v3/{OrInput-30df8d73.js → OrInput-b7b6e94d.js} +1 -1
- package/dist/esm/v3/{OrInputBox-912a6254.js → OrInputBox-893ccc8d.js} +4 -2
- package/dist/esm/v3/{OrRichTextEditor-bdf2e88f.js → OrRichTextEditor-29838f8d.js} +1 -1
- package/dist/esm/v3/{OrSearch-04fdc116.js → OrSearch-a7b923ca.js} +2 -2
- package/dist/esm/v3/{OrSelect-559c6cf5.js → OrSelect-aa023d90.js} +3 -3
- package/dist/esm/v3/{OrTagInput-6824b64e.js → OrTagInput-7225068a.js} +129 -46
- package/dist/esm/v3/{OrTags-ba7e85ee.js → OrTags-5b795df2.js} +48 -15
- package/dist/esm/v3/{OrTextarea-aa1cf564.js → OrTextarea-5159520e.js} +1 -1
- package/dist/esm/v3/{OrTimeFormat-845f1078.js → OrTimeFormat-dc1ab7ee.js} +3 -3
- package/dist/esm/v3/{OrTimePicker-294ab841.js → OrTimePicker-a77919b5.js} +4 -4
- package/dist/esm/v3/components/index.js +21 -21
- package/dist/esm/v3/components/or-card-collection-v3/index.js +4 -4
- package/dist/esm/v3/components/or-code-v3/index.js +2 -2
- package/dist/esm/v3/components/or-combined-input-v3/index.js +2 -2
- package/dist/esm/v3/components/or-confirm-v3/index.js +3 -3
- package/dist/esm/v3/components/or-date-format-v3/index.js +5 -5
- package/dist/esm/v3/components/or-date-picker-v3/index.js +5 -5
- package/dist/esm/v3/components/or-date-time-format-v3/index.js +5 -5
- package/dist/esm/v3/components/or-date-time-picker-v3/index.js +4 -4
- package/dist/esm/v3/components/or-date-time-picker-v3/partials/index.js +3 -3
- package/dist/esm/v3/components/or-date-time-picker-v3/utils/index.js +2 -2
- package/dist/esm/v3/components/or-input-box-v3/OrInputBox.vue.d.ts +4 -2
- 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-rich-text-editor-v3/index.js +3 -3
- package/dist/esm/v3/components/or-search-v3/index.js +3 -3
- package/dist/esm/v3/components/or-select-v3/index.js +4 -4
- package/dist/esm/v3/components/or-tag-input-v3/OrTagInput.vue.d.ts +31 -2
- package/dist/esm/v3/components/or-tag-input-v3/index.js +5 -5
- package/dist/esm/v3/components/or-tags-v3/OrTags.vue.d.ts +5 -3
- package/dist/esm/v3/components/or-tags-v3/index.js +2 -2
- package/dist/esm/v3/components/or-tags-v3/props.d.ts +3 -1
- package/dist/esm/v3/components/or-textarea-v3/index.js +2 -2
- package/dist/esm/v3/components/or-time-format-v3/index.js +5 -5
- package/dist/esm/v3/components/or-time-picker-v3/index.js +5 -5
- package/dist/esm/v3/{getTimePlaceholder-09859f55.js → getTimePlaceholder-60978b3e.js} +1 -1
- package/dist/esm/v3/hooks/index.js +1 -1
- package/dist/esm/v3/index.js +21 -21
- package/dist/esm/v3/{useOverflow-ff9ae748.js → useOverflow-122c613d.js} +1 -1
- package/package.json +2 -3
- package/src/components/or-input-box-v3/OrInputBox.vue +4 -0
- package/src/components/or-tag-input-v3/OrTagInput.vue +122 -36
- package/src/components/or-tag-input-v3/styles.ts +1 -1
- package/src/components/or-tags-v3/OrTags.vue +33 -5
- package/src/components/or-tags-v3/props.ts +4 -0
- package/src/components/or-tags-v3/styles.ts +15 -0
- package/src/hooks/useOverflow.ts +1 -1
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-307a4c3d.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,23 +21,23 @@ 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-b4fe3443.js';
|
|
25
25
|
export { s as OrCollapse } from './OrCollapse-d7c0afae.js';
|
|
26
26
|
export { s as OrColorPicker, h as amber, n as black, b as blue, m as blueGrey, k as brown, c as cyan, j as deepOrange, d as deepPurple, g as green, i as indigo, l as lightBlue, e as lightGreen, f as lime, o as orange, p as pink, a as purple, r as red, t as teal, w as white, y as yellow } from './OrColorPicker-252f482b.js';
|
|
27
|
-
export { s as OrCombinedInputV3 } from './OrCombinedInput-
|
|
28
|
-
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-
|
|
27
|
+
export { s as OrCombinedInputV3 } from './OrCombinedInput-28a8d0b4.js';
|
|
28
|
+
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-893ccc8d.js';
|
|
29
29
|
export { s as OrConfirm } from './OrConfirm-97ab80b9.js';
|
|
30
|
-
export { C as ConfirmType, s as OrConfirmV3 } from './OrConfirm-
|
|
30
|
+
export { C as ConfirmType, s as OrConfirmV3 } from './OrConfirm-4d88e0c8.js';
|
|
31
31
|
export { s as OrContextMenuV3 } from './OrContextMenu-0a6a5668.js';
|
|
32
32
|
export { s as OrMenuV3 } from './OrMenu-ce78b703.js';
|
|
33
33
|
export { P as ContextMenuPlacement, P as MenuPlacement, s as OrPopoverV3, P as PopoverPlacement, a as PopoverVariant, P as TooltipPlacement } from './OrPopover-2132e8b9.js';
|
|
34
|
-
export { s as OrDateFormatV3 } from './OrDateFormat-
|
|
35
|
-
export { s as OrDatePickerV3 } from './OrDatePicker-
|
|
36
|
-
export { s as OrDateTimeFormatV3 } from './OrDateTimeFormat-
|
|
34
|
+
export { s as OrDateFormatV3 } from './OrDateFormat-c2d94f69.js';
|
|
35
|
+
export { s as OrDatePickerV3 } from './OrDatePicker-7d148993.js';
|
|
36
|
+
export { s as OrDateTimeFormatV3 } from './OrDateTimeFormat-2061b8a0.js';
|
|
37
37
|
export { D as DEFAULT_TEXT, s as OrDateTimePicker, a as OrDateTimePickerItemTypes, O as OrDateTimePickerTypes } from './OrDateTimePicker-4bfefbcd.js';
|
|
38
|
-
export { s as OrDateTimePickerV3 } from './OrDateTimePicker-
|
|
39
|
-
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 { D as DateTimePickerTimeFormat, D as TimePickerFormat, f as formatDate, a as formatTime, g as getDatePlaceholder, b as getTimePlaceholder } from './getTimePlaceholder-
|
|
38
|
+
export { s as OrDateTimePickerV3 } from './OrDateTimePicker-765046c1.js';
|
|
39
|
+
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-ae6165f0.js';
|
|
40
|
+
export { D as DateTimePickerTimeFormat, D as TimePickerFormat, f as formatDate, a as formatTime, g as getDatePlaceholder, b as getTimePlaceholder } from './getTimePlaceholder-60978b3e.js';
|
|
41
41
|
export { g as getCurrentDate } from './getCurrentDate-046a888d.js';
|
|
42
42
|
export { E as EmptyStateSize, s as OrEmptyStateV3 } from './OrEmptyState-5349a1f9.js';
|
|
43
43
|
export { s as OrError } from './OrError-f90296db.js';
|
|
@@ -57,7 +57,7 @@ export { I as InlineInputType, s as OrInlineInputV3 } from './OrInlineInput-4321
|
|
|
57
57
|
export { a as InlineTextEditTrimmingTypes, I as InlineTextEditTypes, s as OrInlineTextEdit } from './OrInlineTextEdit-a3c4c7dc.js';
|
|
58
58
|
export { s as OrInlineTextareaV3 } from './OrInlineTextarea-3434585e.js';
|
|
59
59
|
export { s as OrInput } from './OrInput-2c3111c2.js';
|
|
60
|
-
export { I as InputType, s as OrInputV3 } from './OrInput-
|
|
60
|
+
export { I as InputType, s as OrInputV3 } from './OrInput-b7b6e94d.js';
|
|
61
61
|
export { s as OrLabel } from './OrLabel-a7d99df4.js';
|
|
62
62
|
export { L as LabelVariant, s as OrLabelV3 } from './OrLabel-d4c46bb6.js';
|
|
63
63
|
export { L as LinkColor, s as OrLinkV3 } from './OrLink-dcae31fb.js';
|
|
@@ -82,12 +82,12 @@ export { s as OrRadio } from './OrRadio-40bf2c87.js';
|
|
|
82
82
|
export { s as OrRadioGroup } from './OrRadioGroup-00785e41.js';
|
|
83
83
|
export { s as OrRadioGroupV3 } from './OrRadioGroup-cae1897c.js';
|
|
84
84
|
export { s as OrRadioV3 } from './OrRadio-02e0d111.js';
|
|
85
|
-
export { F as Formats, s as OrRichTextEditorV3 } from './OrRichTextEditor-
|
|
85
|
+
export { F as Formats, s as OrRichTextEditorV3 } from './OrRichTextEditor-29838f8d.js';
|
|
86
86
|
export { s as OrSearch } from './OrSearch-2800e9bf.js';
|
|
87
|
-
export { s as OrSearchV3 } from './OrSearch-
|
|
87
|
+
export { s as OrSearchV3 } from './OrSearch-a7b923ca.js';
|
|
88
88
|
export { s as OrSegmentedControlV3, S as SegmentedControlSize } from './OrSegmentedControl-4c4fff7b.js';
|
|
89
89
|
export { s as OrSelect } from './OrSelect-9520d6e6.js';
|
|
90
|
-
export { s as OrSelectV3 } from './OrSelect-
|
|
90
|
+
export { s as OrSelectV3 } from './OrSelect-aa023d90.js';
|
|
91
91
|
export { s as OrSidebar, O as OrSidebarSide } from './OrSidebar-aaf73310.js';
|
|
92
92
|
export { s as OrSidebarV3 } from './OrSidebar-f9803fee.js';
|
|
93
93
|
export { O as OrSidebarPlacement } from './OrSidebarCollapseButton-035f0736.js';
|
|
@@ -109,17 +109,17 @@ export { s as OrTabV3 } from './OrTab-2d567d8e.js';
|
|
|
109
109
|
export { s as OrTabs } from './OrTabs-3da3ea89.js';
|
|
110
110
|
export { s as OrTabsV3, T as TabsVariant } from './OrTabs-05d39983.js';
|
|
111
111
|
export { s as OrTag } from './OrTag-1b3b1296.js';
|
|
112
|
-
export { s as OrTagInputV3 } from './OrTagInput-
|
|
112
|
+
export { s as OrTagInputV3 } from './OrTagInput-7225068a.js';
|
|
113
113
|
export { s as OrTagV3, a as TagColor, T as TagVariant } from './OrTag-31b2c78f.js';
|
|
114
|
-
export { s as OrTagsV3, T as TagsOverflow } from './OrTags-
|
|
114
|
+
export { s as OrTagsV3, T as TagsOverflow } from './OrTags-5b795df2.js';
|
|
115
115
|
export { s as OrTeleport } from './OrTeleport.vue3-9bce0c02.js';
|
|
116
116
|
export { s as OrTeleportV3 } from './OrTeleport.vue3-8099178c.js';
|
|
117
117
|
export { s as OrTextV3 } from './OrText-d54c951d.js';
|
|
118
118
|
export { s as OrTextarea } from './OrTextarea-7a753c1a.js';
|
|
119
|
-
export { s as OrTextareaV3 } from './OrTextarea-
|
|
119
|
+
export { s as OrTextareaV3 } from './OrTextarea-5159520e.js';
|
|
120
120
|
export { s as OrTextbox, T as TextboxTypes } from './OrTextbox-cb6762c8.js';
|
|
121
|
-
export { s as OrTimeFormatV3 } from './OrTimeFormat-
|
|
122
|
-
export { s as OrTimePickerV3 } from './OrTimePicker-
|
|
121
|
+
export { s as OrTimeFormatV3 } from './OrTimeFormat-dc1ab7ee.js';
|
|
122
|
+
export { s as OrTimePickerV3 } from './OrTimePicker-a77919b5.js';
|
|
123
123
|
export { s as OrToast, a as OrToastContainer } from './OrToastContainer-d6f117e2.js';
|
|
124
124
|
export { P as PositionsX, b as PositionsY, c as ToastType, T as TransitionType, a as useQueue, u as useToast } from './useToast-05a9c81b.js';
|
|
125
125
|
export { a as OrToastContainerV3, s as OrToastV3, t as TypesV3 } from './types-7a770dfb.js';
|
|
@@ -131,7 +131,7 @@ export { s as OrTreeV3, T as TreeNodeDropPosition } from './OrTree-f661895f.js';
|
|
|
131
131
|
export { D as DropdownClose, a as DropdownOpen } from './dropdown-open-06d651cf.js';
|
|
132
132
|
export { u as useControlAttributes, a as useIdAttribute } from './useIdAttribute-859439f0.js';
|
|
133
133
|
export { u as useElevation } from './useElevation-a50ec347.js';
|
|
134
|
-
export { u as useOverflow } from './useOverflow-
|
|
134
|
+
export { u as useOverflow } from './useOverflow-122c613d.js';
|
|
135
135
|
export { u as usePopoverState } from './usePopoverState-b92c698b.js';
|
|
136
136
|
export { u as useProxyModelValue } from './useProxyModelValue-940010d2.js';
|
|
137
137
|
export { u as useResponsive } from './useResponsive-5c8291da.js';
|
|
@@ -26,7 +26,7 @@ function useOverflow(container) {
|
|
|
26
26
|
width: containerWidth
|
|
27
27
|
} = container.getBoundingClientRect();
|
|
28
28
|
if (itemOffset + itemWidth > containerOffset + containerWidth) {
|
|
29
|
-
item.style.setProperty('visibility', 'hidden');
|
|
29
|
+
// item.style.setProperty('visibility', 'hidden');
|
|
30
30
|
return {
|
|
31
31
|
innerItems,
|
|
32
32
|
outerItems: [...outerItems, item]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onereach/ui-components",
|
|
3
|
-
"version": "6.4.
|
|
3
|
+
"version": "6.4.8-beta.3470.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": "07a128f25cc5c0703dca1e25b86c80e410a8bbf1"
|
|
178
|
+
}
|
|
180
179
|
}
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
:invalid="invalid ? '' : null"
|
|
6
6
|
:readonly="readonly ? '' : null"
|
|
7
7
|
:disabled="disabled ? '' : null"
|
|
8
|
+
@focus="$emit('focus')"
|
|
8
9
|
>
|
|
9
10
|
<slot />
|
|
10
11
|
|
|
@@ -62,6 +63,9 @@ export default defineComponent({
|
|
|
62
63
|
'root',
|
|
63
64
|
],
|
|
64
65
|
|
|
66
|
+
emits: [
|
|
67
|
+
'focus',
|
|
68
|
+
],
|
|
65
69
|
setup(props) {
|
|
66
70
|
// Refs
|
|
67
71
|
const root = ref<HTMLElement>();
|
|
@@ -19,49 +19,65 @@
|
|
|
19
19
|
</template>
|
|
20
20
|
|
|
21
21
|
<OrInputBox
|
|
22
|
+
ref="inputBox"
|
|
22
23
|
:variant="disableDefaultStyles ? 'unstyled' : 'styled'"
|
|
23
24
|
:size="size"
|
|
25
|
+
:force-state="activated ? 'focus-within': undefined"
|
|
26
|
+
class="cursor-text"
|
|
24
27
|
:invalid="!!error"
|
|
25
28
|
:readonly="readonly"
|
|
26
29
|
:disabled="disabled"
|
|
30
|
+
tabindex="0"
|
|
31
|
+
@focus="activate"
|
|
27
32
|
>
|
|
28
|
-
<
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
<input
|
|
40
|
-
ref="control"
|
|
41
|
-
v-model="draftModelValue"
|
|
42
|
-
v-bind="controlAttributes"
|
|
43
|
-
:class="controlStyles"
|
|
44
|
-
:type="'text'"
|
|
45
|
-
:placeholder="proxyModelValue.length === 0 ? placeholder : undefined"
|
|
46
|
-
:readonly="readonly"
|
|
47
|
-
:disabled="disabled"
|
|
48
|
-
:autocomplete="'off'"
|
|
49
|
-
:minlength="undefined"
|
|
50
|
-
:maxlength="undefined"
|
|
51
|
-
@keydown.enter="add()"
|
|
52
|
-
@keydown="$emit('keydown', $event)"
|
|
53
|
-
@keyup="$emit('keyup', $event)"
|
|
54
|
-
@focus="$emit('focus', $event)"
|
|
55
|
-
@blur="$emit('blur', $event)"
|
|
33
|
+
<OrTags
|
|
34
|
+
ref="tags"
|
|
35
|
+
:items="proxyModelValue"
|
|
36
|
+
class="grow"
|
|
37
|
+
:tag-props="{
|
|
38
|
+
variant: readonly || disabled ? 'tag' : 'reset',
|
|
39
|
+
disabled: disabled
|
|
40
|
+
}"
|
|
41
|
+
:overflow="overflow"
|
|
42
|
+
@reset="remove($event)"
|
|
56
43
|
>
|
|
44
|
+
<template
|
|
45
|
+
v-if="showControl"
|
|
46
|
+
v-slot:tail
|
|
47
|
+
>
|
|
48
|
+
<div class="inline-flex w-fit">
|
|
49
|
+
<input
|
|
50
|
+
ref="control"
|
|
51
|
+
v-model="draftModelValue"
|
|
52
|
+
v-bind="controlAttributes"
|
|
53
|
+
:class="controlStyles"
|
|
54
|
+
:style="controlInlineStyles"
|
|
55
|
+
:type="'text'"
|
|
56
|
+
:placeholder="proxyModelValue.length === 0 ? placeholder : undefined"
|
|
57
|
+
:readonly="readonly"
|
|
58
|
+
:disabled="disabled"
|
|
59
|
+
:autocomplete="'off'"
|
|
60
|
+
:minlength="undefined"
|
|
61
|
+
:maxlength="undefined"
|
|
62
|
+
@keydown.enter="add()"
|
|
63
|
+
@keydown="$emit('keydown', $event)"
|
|
64
|
+
@keyup="$emit('keyup', $event)"
|
|
65
|
+
@focus="activate"
|
|
66
|
+
>
|
|
67
|
+
</div>
|
|
68
|
+
</template>
|
|
69
|
+
</OrTags>
|
|
57
70
|
|
|
58
|
-
<template
|
|
71
|
+
<template
|
|
72
|
+
v-if="enableClear"
|
|
73
|
+
v-slot:addon
|
|
74
|
+
>
|
|
59
75
|
<template v-if="proxyModelValue.length > 0 || draftModelValue">
|
|
60
76
|
<OrIconButton
|
|
61
77
|
:icon="'close'"
|
|
62
78
|
:color="'inherit'"
|
|
63
79
|
:disabled="readonly || disabled"
|
|
64
|
-
@click
|
|
80
|
+
@click="reset()"
|
|
65
81
|
/>
|
|
66
82
|
</template>
|
|
67
83
|
</template>
|
|
@@ -104,14 +120,15 @@
|
|
|
104
120
|
</template>
|
|
105
121
|
|
|
106
122
|
<script lang="ts">
|
|
107
|
-
import { PropType, computed, defineComponent, reactive, ref,
|
|
123
|
+
import { PropType, computed, defineComponent, reactive, ref, toRefs, nextTick, watch } from 'vue-demi';
|
|
124
|
+
import { MaybeElementRef, onClickOutside } from '@vueuse/core';
|
|
108
125
|
import { useControlAttributes, useIdAttribute, useProxyModelValue, useValidationAttributes } from '../../hooks';
|
|
109
126
|
import { OrErrorV3 as OrError } from '../or-error-v3';
|
|
110
127
|
import { OrHintV3 as OrHint } from '../or-hint-v3';
|
|
111
128
|
import { OrIconButtonV3 as OrIconButton } from '../or-icon-button-v3';
|
|
112
129
|
import { OrInputBoxV3 as OrInputBox } from '../or-input-box-v3';
|
|
113
130
|
import { OrLabelV3 as OrLabel } from '../or-label-v3';
|
|
114
|
-
import { OrTagsV3 as OrTags } from '../or-tags-v3';
|
|
131
|
+
import { OrTagsV3 as OrTags, TagsOverflow } from '../or-tags-v3';
|
|
115
132
|
import { TagInputSize } from './props';
|
|
116
133
|
import { TagInput, TagInputControl, TagInputItem } from './styles';
|
|
117
134
|
|
|
@@ -182,6 +199,17 @@ export default defineComponent({
|
|
|
182
199
|
type: Boolean,
|
|
183
200
|
default: false,
|
|
184
201
|
},
|
|
202
|
+
|
|
203
|
+
overflow: {
|
|
204
|
+
type: String as PropType<`${TagsOverflow}`>,
|
|
205
|
+
default: TagsOverflow.Hidden,
|
|
206
|
+
},
|
|
207
|
+
|
|
208
|
+
// todo: review default state, disabling will breaking
|
|
209
|
+
enableClear: {
|
|
210
|
+
type: Boolean,
|
|
211
|
+
default: true,
|
|
212
|
+
},
|
|
185
213
|
},
|
|
186
214
|
|
|
187
215
|
emits: [
|
|
@@ -191,6 +219,7 @@ export default defineComponent({
|
|
|
191
219
|
'keyup',
|
|
192
220
|
'focus',
|
|
193
221
|
'blur',
|
|
222
|
+
'reset',
|
|
194
223
|
],
|
|
195
224
|
|
|
196
225
|
expose: [
|
|
@@ -204,6 +233,11 @@ export default defineComponent({
|
|
|
204
233
|
// Refs
|
|
205
234
|
const root = ref<HTMLElement>();
|
|
206
235
|
const control = ref<HTMLInputElement>();
|
|
236
|
+
const inputBox = ref<InstanceType<typeof OrInputBox>>();
|
|
237
|
+
const tags = ref<InstanceType<typeof OrTags>>();
|
|
238
|
+
|
|
239
|
+
// Props
|
|
240
|
+
const { modelValue, overflow, placeholder } = toRefs(props);
|
|
207
241
|
|
|
208
242
|
// Styles
|
|
209
243
|
const rootStyles = computed(() => [
|
|
@@ -226,12 +260,30 @@ export default defineComponent({
|
|
|
226
260
|
...useValidationAttributes(),
|
|
227
261
|
});
|
|
228
262
|
|
|
229
|
-
const
|
|
230
|
-
const
|
|
263
|
+
const activated = ref(false);
|
|
264
|
+
const proxyModelValue = useProxyModelValue(modelValue, context.emit);
|
|
265
|
+
const draftModelValue = ref<string>('');
|
|
231
266
|
|
|
232
267
|
const currentLength = computed(() => proxyModelValue.value?.length ?? 0);
|
|
233
268
|
const maxLength = computed(() => controlAttributes.maxlength);
|
|
234
269
|
|
|
270
|
+
const controlInlineStyles = computed(() => {
|
|
271
|
+
const chars = draftModelValue.value.length > 0
|
|
272
|
+
? draftModelValue.value.length
|
|
273
|
+
: currentLength.value === 0
|
|
274
|
+
? placeholder.value?.length ?? 0
|
|
275
|
+
: 0;
|
|
276
|
+
return {
|
|
277
|
+
width: `${Math.max(chars + 1 || 0, 3)}ch`,
|
|
278
|
+
};
|
|
279
|
+
});
|
|
280
|
+
|
|
281
|
+
const showControl = computed(() => {
|
|
282
|
+
return draftModelValue.value.length > 0
|
|
283
|
+
|| currentLength.value === 0
|
|
284
|
+
|| activated.value;
|
|
285
|
+
});
|
|
286
|
+
|
|
235
287
|
// Methods
|
|
236
288
|
function focus(): void {
|
|
237
289
|
control.value?.focus();
|
|
@@ -241,6 +293,18 @@ export default defineComponent({
|
|
|
241
293
|
control.value?.blur();
|
|
242
294
|
}
|
|
243
295
|
|
|
296
|
+
function deactivate() {
|
|
297
|
+
activated.value = false;
|
|
298
|
+
nextTick(() => blur());
|
|
299
|
+
context.emit('blur');
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
function activate() {
|
|
303
|
+
activated.value = true;
|
|
304
|
+
nextTick(() => focus());
|
|
305
|
+
context.emit('focus');
|
|
306
|
+
}
|
|
307
|
+
|
|
244
308
|
function add(): void {
|
|
245
309
|
const newItem = draftModelValue.value?.trim();
|
|
246
310
|
|
|
@@ -249,7 +313,7 @@ export default defineComponent({
|
|
|
249
313
|
if (maxLength.value && currentLength.value >= maxLength.value) return;
|
|
250
314
|
|
|
251
315
|
proxyModelValue.value = [...proxyModelValue.value, newItem];
|
|
252
|
-
draftModelValue.value =
|
|
316
|
+
draftModelValue.value = '';
|
|
253
317
|
}
|
|
254
318
|
|
|
255
319
|
function remove(value: string): void {
|
|
@@ -258,23 +322,45 @@ export default defineComponent({
|
|
|
258
322
|
|
|
259
323
|
function reset(): void {
|
|
260
324
|
proxyModelValue.value = [];
|
|
261
|
-
draftModelValue.value =
|
|
325
|
+
draftModelValue.value = '';
|
|
326
|
+
context.emit('reset');
|
|
262
327
|
}
|
|
263
328
|
|
|
329
|
+
// Effects
|
|
330
|
+
onClickOutside((inputBox as MaybeElementRef), () => {
|
|
331
|
+
if (activated.value === false || (tags.value?.overflowPopover as any)?.state === 'open') return;
|
|
332
|
+
deactivate();
|
|
333
|
+
});
|
|
334
|
+
|
|
335
|
+
watch(proxyModelValue, (items, prevItems) => {
|
|
336
|
+
if (items.length != prevItems.length && overflow.value === TagsOverflow.Scroll) {
|
|
337
|
+
nextTick(() => {
|
|
338
|
+
(tags.value?.container as any)?.lastElementChild?.scrollIntoView({ behavior: 'smooth' });
|
|
339
|
+
});
|
|
340
|
+
}
|
|
341
|
+
});
|
|
342
|
+
|
|
264
343
|
return {
|
|
265
344
|
root,
|
|
266
345
|
control,
|
|
346
|
+
inputBox,
|
|
347
|
+
tags,
|
|
267
348
|
rootStyles,
|
|
268
349
|
controlStyles,
|
|
269
350
|
itemStyles,
|
|
351
|
+
controlInlineStyles,
|
|
270
352
|
controlAttributes,
|
|
271
353
|
proxyModelValue,
|
|
272
354
|
draftModelValue,
|
|
273
355
|
currentLength,
|
|
274
356
|
maxLength,
|
|
357
|
+
activated,
|
|
358
|
+
showControl,
|
|
275
359
|
focus,
|
|
276
360
|
blur,
|
|
277
361
|
add,
|
|
362
|
+
activate,
|
|
363
|
+
deactivate,
|
|
278
364
|
remove,
|
|
279
365
|
reset,
|
|
280
366
|
};
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
:class="rootStyles"
|
|
5
5
|
>
|
|
6
6
|
<div
|
|
7
|
+
v-if="items.length > 0"
|
|
7
8
|
ref="container"
|
|
8
9
|
:class="containerStyles"
|
|
9
10
|
>
|
|
@@ -11,20 +12,25 @@
|
|
|
11
12
|
v-for="item in items"
|
|
12
13
|
v-bind="tagProps"
|
|
13
14
|
:key="item"
|
|
15
|
+
class="max-w-full"
|
|
14
16
|
@reset="$emit('reset', item)"
|
|
15
17
|
>
|
|
16
18
|
{{ item }}
|
|
17
19
|
</OrTag>
|
|
20
|
+
<slot
|
|
21
|
+
v-if="localOverflow === 'wrap'"
|
|
22
|
+
name="tail"
|
|
23
|
+
/>
|
|
18
24
|
</div>
|
|
19
25
|
|
|
20
|
-
<template v-if="overflowItems.length > 0">
|
|
26
|
+
<template v-if="localOverflow === 'hidden' && overflowItems.length > 0">
|
|
21
27
|
<OrButton
|
|
22
28
|
ref="overflowButton"
|
|
23
29
|
:class="overflowButtonStyles"
|
|
24
30
|
:type="'button'"
|
|
25
31
|
:variant="'link'"
|
|
26
32
|
:color="'inherit'"
|
|
27
|
-
@click.stop="
|
|
33
|
+
@click.stop="togglePopover"
|
|
28
34
|
>
|
|
29
35
|
+{{ overflowItems.length }}
|
|
30
36
|
</OrButton>
|
|
@@ -45,11 +51,15 @@
|
|
|
45
51
|
</div>
|
|
46
52
|
</OrPopover>
|
|
47
53
|
</template>
|
|
54
|
+
<slot
|
|
55
|
+
v-if="localOverflow != 'wrap' || items.length === 0"
|
|
56
|
+
name="tail"
|
|
57
|
+
/>
|
|
48
58
|
</div>
|
|
49
59
|
</template>
|
|
50
60
|
|
|
51
61
|
<script lang="ts">
|
|
52
|
-
import { PropType, computed, defineComponent, ref } from 'vue-demi';
|
|
62
|
+
import { PropType, computed, defineComponent, ref, toRefs } from 'vue-demi';
|
|
53
63
|
import { useOverflow } from '../../hooks';
|
|
54
64
|
import { OrButtonV3 as OrButton } from '../or-button-v3';
|
|
55
65
|
import { OrPopoverV3 as OrPopover } from '../or-popover-v3';
|
|
@@ -74,7 +84,7 @@ export default defineComponent({
|
|
|
74
84
|
|
|
75
85
|
overflow: {
|
|
76
86
|
type: String as PropType<`${TagsOverflow}`>,
|
|
77
|
-
default: TagsOverflow.
|
|
87
|
+
default: TagsOverflow.Hidden,
|
|
78
88
|
},
|
|
79
89
|
|
|
80
90
|
tagProps: {
|
|
@@ -93,6 +103,8 @@ export default defineComponent({
|
|
|
93
103
|
|
|
94
104
|
expose: [
|
|
95
105
|
'root',
|
|
106
|
+
'container',
|
|
107
|
+
'overflowPopover',
|
|
96
108
|
],
|
|
97
109
|
|
|
98
110
|
setup(props) {
|
|
@@ -100,6 +112,15 @@ export default defineComponent({
|
|
|
100
112
|
const root = ref<HTMLElement>();
|
|
101
113
|
const container = ref<HTMLElement>();
|
|
102
114
|
|
|
115
|
+
// Props
|
|
116
|
+
const { overflow } = toRefs(props);
|
|
117
|
+
|
|
118
|
+
const localOverflow = computed(() => {
|
|
119
|
+
return overflow.value === TagsOverflow.Default
|
|
120
|
+
? TagsOverflow.Hidden
|
|
121
|
+
: overflow.value;
|
|
122
|
+
});
|
|
123
|
+
|
|
103
124
|
const overflowButton = ref<InstanceType<typeof OrButton>>();
|
|
104
125
|
const overflowButtonRoot = computed(() => overflowButton.value?.root);
|
|
105
126
|
|
|
@@ -114,7 +135,7 @@ export default defineComponent({
|
|
|
114
135
|
|
|
115
136
|
const containerStyles = computed(() => [
|
|
116
137
|
...TagsContainer,
|
|
117
|
-
...TagsContainerOverflows[
|
|
138
|
+
...TagsContainerOverflows[localOverflow.value],
|
|
118
139
|
]);
|
|
119
140
|
|
|
120
141
|
const overflowButtonStyles = computed(() => [
|
|
@@ -132,9 +153,15 @@ export default defineComponent({
|
|
|
132
153
|
return props.items.slice(innerItems.value.length);
|
|
133
154
|
});
|
|
134
155
|
|
|
156
|
+
// Methods
|
|
157
|
+
function togglePopover() {
|
|
158
|
+
(overflowPopover.value!.toggle as () => void)();
|
|
159
|
+
}
|
|
160
|
+
|
|
135
161
|
return {
|
|
136
162
|
root,
|
|
137
163
|
container,
|
|
164
|
+
localOverflow,
|
|
138
165
|
overflowButton,
|
|
139
166
|
overflowButtonRoot,
|
|
140
167
|
overflowPopover,
|
|
@@ -144,6 +171,7 @@ export default defineComponent({
|
|
|
144
171
|
overflowButtonStyles,
|
|
145
172
|
overflowPopoverStyles,
|
|
146
173
|
overflowItems,
|
|
174
|
+
togglePopover,
|
|
147
175
|
};
|
|
148
176
|
},
|
|
149
177
|
});
|
|
@@ -18,21 +18,36 @@ export const Tags: string[] = [
|
|
|
18
18
|
export const TagsContainer: string[] = [
|
|
19
19
|
// Layout
|
|
20
20
|
'layout-row',
|
|
21
|
+
'max-w-full',
|
|
21
22
|
|
|
22
23
|
// Spacing
|
|
23
24
|
'gap-sm',
|
|
25
|
+
'py-xs',
|
|
24
26
|
];
|
|
25
27
|
|
|
26
28
|
export const TagsContainerOverflows: Record<TagsOverflow, string[]> = {
|
|
29
|
+
// todo: remove in next braking release
|
|
30
|
+
// @deprecated use Hidden instead
|
|
27
31
|
[TagsOverflow.Default]: [
|
|
28
32
|
// Overflow
|
|
29
33
|
'overflow-hidden',
|
|
30
34
|
],
|
|
31
35
|
|
|
36
|
+
[TagsOverflow.Hidden]: [
|
|
37
|
+
// Overflow
|
|
38
|
+
'overflow-hidden',
|
|
39
|
+
],
|
|
40
|
+
|
|
32
41
|
[TagsOverflow.Wrap]: [
|
|
33
42
|
// Layout
|
|
34
43
|
'!flex-wrap',
|
|
35
44
|
],
|
|
45
|
+
[TagsOverflow.Scroll]: [
|
|
46
|
+
// Layout
|
|
47
|
+
'overflow-y-auto',
|
|
48
|
+
// todo: extract to plugin?
|
|
49
|
+
'[&::-webkit-scrollbar]:hidden [-ms-overflow-style:\'none\'] [scrollbar-width:\'none\']',
|
|
50
|
+
],
|
|
36
51
|
};
|
|
37
52
|
|
|
38
53
|
export const TagsOverflowButton: string[] = [
|
package/src/hooks/useOverflow.ts
CHANGED
|
@@ -26,7 +26,7 @@ export function useOverflow(container: MaybeElementRef<HTMLElement | undefined>)
|
|
|
26
26
|
const { x: containerOffset, width: containerWidth } = container.getBoundingClientRect();
|
|
27
27
|
|
|
28
28
|
if (itemOffset + itemWidth > containerOffset + containerWidth) {
|
|
29
|
-
item.style.setProperty('visibility', 'hidden');
|
|
29
|
+
// item.style.setProperty('visibility', 'hidden');
|
|
30
30
|
|
|
31
31
|
return {
|
|
32
32
|
innerItems,
|