@onereach/ui-components 8.22.1 → 8.22.2
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/OrSelectV3/OrSelect.js +26 -18
- package/dist/{esm/v2/components/or-select-v3/partials/or-select-multiple-control/utils/castToMultipleModel.d.ts → bundled/v2/components/OrSelectV3/utils/castToMultipleValue.d.ts} +1 -1
- package/dist/bundled/v2/components/OrSelectV3/utils/castToMultipleValue.js +10 -0
- package/dist/bundled/v2/components/OrTagInputV3/OrTagInput.js +13 -3
- package/dist/bundled/v2/components/OrTagInputV3/OrTagInput.vue.d.ts +2 -2
- package/dist/bundled/v2/components/OrTagsV3/OrTags.js +10 -2
- package/dist/bundled/v2/index.js +1 -1
- package/dist/bundled/v2/utils/functions/color.d.ts +4 -0
- package/dist/bundled/v2/utils/functions/color.js +5 -1
- package/dist/bundled/v2/utils/index.js +1 -1
- package/dist/bundled/v3/components/OrAvatarV3/OrAvatar.js +1 -1
- package/dist/bundled/v3/components/OrAvatarV3/index.js +1 -1
- package/dist/bundled/v3/components/OrAvatarV3/props.js +1 -1
- package/dist/bundled/v3/components/OrAvatarV3/styles.js +1 -1
- package/dist/bundled/v3/components/OrSelectV3/OrSelect.js +1 -1
- package/dist/bundled/v3/components/OrSelectV3/index.js +1 -1
- package/dist/bundled/v3/components/OrSelectV3/styles.js +1 -1
- package/dist/{esm/v3/components/or-select-v3/partials/or-select-multiple-control/utils/castToMultipleModel.d.ts → bundled/v3/components/OrSelectV3/utils/castToMultipleValue.d.ts} +1 -1
- package/dist/bundled/v3/components/OrSelectV3/utils/castToMultipleValue.js +2 -0
- package/dist/bundled/v3/components/{OrSelectV3-33734991.js → OrSelectV3-ef8b82f7.js} +27 -13
- package/dist/bundled/v3/components/OrTagInputV3/OrTagInput.js +1 -1
- package/dist/bundled/v3/components/OrTagInputV3/OrTagInput.vue.d.ts +2 -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/{OrTagInputV3-fbe9a802.js → OrTagInputV3-701195d9.js} +10 -1
- package/dist/bundled/v3/components/OrTagsV3/OrTags.js +1 -1
- package/dist/bundled/v3/components/OrTagsV3/index.js +1 -1
- package/dist/bundled/v3/components/OrTagsV3/props.js +1 -1
- package/dist/bundled/v3/components/OrTagsV3/styles.js +1 -1
- package/dist/bundled/v3/components/OrTagsV3/utils/castToTag.js +1 -1
- package/dist/bundled/v3/components/{OrTagsV3-65838b57.js → OrTagsV3-69f51def.js} +8 -4
- package/dist/bundled/v3/components/index.js +4 -4
- package/dist/bundled/v3/index.js +5 -5
- package/dist/bundled/v3/utils/functions/color.d.ts +4 -0
- package/dist/bundled/v3/utils/functions/color.js +5 -1
- package/dist/bundled/v3/utils/index.js +1 -1
- package/dist/esm/v2/{OrAvatar-9d0217f7.js → OrAvatar-62fcfe74.js} +1 -1
- package/dist/esm/v2/{OrSelect-83aff1e9.js → OrSelect-e10fb4a5.js} +15 -11
- package/dist/esm/v2/{OrSelectMultipleControl-300ba243.js → OrSelectMultipleControl-b449de97.js} +13 -3
- package/dist/esm/v2/{OrTag-ce728fad.js → OrTag-53599b71.js} +1 -1
- package/dist/esm/v2/{OrTagInput-1589f828.js → OrTagInput-18665ac7.js} +14 -4
- package/dist/esm/v2/{OrTags-93fff411.js → OrTags-1acb6cde.js} +10 -2
- package/dist/esm/v2/{color-6b0fc765.js → color-911f1122.js} +5 -1
- package/dist/esm/v2/components/index.js +7 -7
- package/dist/esm/v2/components/or-avatar-v3/index.js +2 -2
- package/dist/esm/v2/components/or-select-v3/index.js +3 -3
- package/dist/esm/v2/components/or-select-v3/partials/index.js +2 -2
- package/dist/esm/v2/components/or-select-v3/partials/or-select-multiple-control/index.js +2 -2
- package/dist/esm/v2/components/or-select-v3/utils/castToMultipleValue.d.ts +2 -0
- package/dist/esm/v2/components/or-tag/index.js +2 -2
- package/dist/esm/v2/components/or-tag-input-v3/OrTagInput.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-tag-input-v3/index.js +2 -2
- package/dist/esm/v2/components/or-tags-v3/index.js +1 -1
- package/dist/esm/v2/components/or-text-v3/OrText.vue.d.ts +2 -2
- package/dist/esm/v2/index.js +8 -8
- package/dist/esm/v2/{isDescendant-61c67ccc.js → isDescendant-4434a968.js} +1 -1
- package/dist/esm/v2/utils/functions/color.d.ts +4 -0
- package/dist/esm/v2/utils/index.js +2 -2
- package/dist/esm/v3/{OrAvatar-b0179873.js → OrAvatar-ae032fe2.js} +1 -1
- package/dist/esm/v3/{OrSelect-7e9a8fa9.js → OrSelect-78a9da6c.js} +17 -12
- package/dist/esm/v3/{OrSelectMultipleControl-6476e58b.js → OrSelectMultipleControl-9d33a012.js} +12 -3
- package/dist/esm/v3/{OrTag-bc8177a4.js → OrTag-04abf6a7.js} +1 -1
- package/dist/esm/v3/{OrTagInput-c9eefc97.js → OrTagInput-dfa119ea.js} +10 -1
- package/dist/esm/v3/{OrTags-b5c62b28.js → OrTags-b5aea0be.js} +8 -4
- package/dist/esm/v3/{color-6b0fc765.js → color-911f1122.js} +5 -1
- package/dist/esm/v3/components/index.js +7 -7
- package/dist/esm/v3/components/or-avatar-v3/index.js +2 -2
- package/dist/esm/v3/components/or-select-v3/index.js +3 -3
- package/dist/esm/v3/components/or-select-v3/partials/index.js +2 -2
- package/dist/esm/v3/components/or-select-v3/partials/or-select-multiple-control/index.js +2 -2
- package/dist/esm/v3/components/or-select-v3/utils/castToMultipleValue.d.ts +2 -0
- package/dist/esm/v3/components/or-tag/index.js +2 -2
- package/dist/esm/v3/components/or-tag-input-v3/OrTagInput.vue.d.ts +2 -2
- package/dist/esm/v3/components/or-tag-input-v3/index.js +2 -2
- package/dist/esm/v3/components/or-tags-v3/index.js +1 -1
- package/dist/esm/v3/index.js +8 -8
- package/dist/esm/v3/{isDescendant-61c67ccc.js → isDescendant-4434a968.js} +1 -1
- package/dist/esm/v3/utils/functions/color.d.ts +4 -0
- package/dist/esm/v3/utils/index.js +2 -2
- package/package.json +2 -2
- package/src/components/or-select-v3/OrSelect.vue +13 -10
- package/src/components/or-select-v3/partials/or-select-multiple-control/OrSelectMultipleControl.vue +11 -1
- package/src/components/or-select-v3/{partials/or-select-multiple-control/utils/castToMultipleModel.ts → utils/castToMultipleValue.ts} +2 -2
- package/src/components/or-tag-input-v3/OrTagInput.vue +9 -1
- package/src/components/or-tags-v3/OrTags.vue +12 -2
- package/src/utils/functions/color.ts +7 -0
- /package/dist/bundled/v3/components/{OrAvatarV3-96e091cc.js → OrAvatarV3-700dd5ab.js} +0 -0
|
@@ -7,7 +7,7 @@ import { s as script$1 } from './OrButton-9ca0dc8e.js';
|
|
|
7
7
|
import { s as script$2 } from './OrPopover-1c87b4ed.js';
|
|
8
8
|
import './dom-aecadd9a.js';
|
|
9
9
|
import { s as script$3 } from './OrTag-1b111af7.js';
|
|
10
|
-
import { resolveComponent, openBlock, createElementBlock, normalizeClass, Fragment, renderList, createBlock, mergeProps, withCtx, createTextVNode, toDisplayString,
|
|
10
|
+
import { resolveComponent, openBlock, createElementBlock, normalizeClass, Fragment, renderList, createBlock, mergeProps, withCtx, renderSlot, createTextVNode, toDisplayString, createCommentVNode, createVNode, withModifiers, createElementVNode } from 'vue';
|
|
11
11
|
|
|
12
12
|
var TagsOverflow;
|
|
13
13
|
(function (TagsOverflow) {
|
|
@@ -195,7 +195,9 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
195
195
|
class: ['max-w-full'],
|
|
196
196
|
onReset: $event => _ctx.$emit('reset', item.value)
|
|
197
197
|
}), {
|
|
198
|
-
default: withCtx(() => [
|
|
198
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "tag", {
|
|
199
|
+
item: item
|
|
200
|
+
}, () => [createTextVNode(toDisplayString(item.label), 1 /* TEXT */)])]),
|
|
199
201
|
|
|
200
202
|
_: 2 /* DYNAMIC */
|
|
201
203
|
}, 1040 /* FULL_PROPS, DYNAMIC_SLOTS */, ["onReset"]);
|
|
@@ -231,13 +233,15 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
231
233
|
key: item.value,
|
|
232
234
|
onReset: $event => _ctx.$emit('reset', item.value)
|
|
233
235
|
}), {
|
|
234
|
-
default: withCtx(() => [
|
|
236
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "tag", {
|
|
237
|
+
item: item
|
|
238
|
+
}, () => [createTextVNode(toDisplayString(item.label), 1 /* TEXT */)])]),
|
|
235
239
|
|
|
236
240
|
_: 2 /* DYNAMIC */
|
|
237
241
|
}, 1040 /* FULL_PROPS, DYNAMIC_SLOTS */, ["onReset"]);
|
|
238
242
|
}), 128 /* KEYED_FRAGMENT */))], 2 /* CLASS */)]),
|
|
239
243
|
|
|
240
|
-
_:
|
|
244
|
+
_: 3 /* FORWARDED */
|
|
241
245
|
}, 8 /* PROPS */, ["class", "custom-styles", "trigger"])], 64 /* STABLE_FRAGMENT */)) : createCommentVNode("v-if", true), _ctx.localOverflow != 'wrap' || _ctx.items.length === 0 ? renderSlot(_ctx.$slots, "tail", {
|
|
242
246
|
key: 2
|
|
243
247
|
}) : createCommentVNode("v-if", true)], 2 /* CLASS */);
|
|
@@ -102,5 +102,9 @@ function generateHslFromString(str) {
|
|
|
102
102
|
function hslToColorString(hsl) {
|
|
103
103
|
return `hsl(${hsl.h}, ${hsl.s}%, ${hsl.l}%)`;
|
|
104
104
|
}
|
|
105
|
+
function generateColorFromString(str) {
|
|
106
|
+
let limits = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : HSL_LIMITS;
|
|
107
|
+
return hslToColorString(generateHslFromString(str, limits));
|
|
108
|
+
}
|
|
105
109
|
|
|
106
|
-
export { RX_QUERY_START as A, RX_SHORT_COLOR as B, RX_LONG_COLOR as C, hexToRgb as D, rgbToHex as E, generateHslFromString as F, hslToColorString as G, HSL_LIMITS as H,
|
|
110
|
+
export { RX_QUERY_START as A, RX_SHORT_COLOR as B, RX_LONG_COLOR as C, hexToRgb as D, rgbToHex as E, generateHslFromString as F, hslToColorString as G, HSL_LIMITS as H, generateColorFromString as I, getHashOfString as J, normalize as K, RX_ARRAY_NOTATION as R, RX_BV_PREFIX as a, RX_DIGITS as b, RX_EXTENSION as c, RX_HASH as d, RX_HASH_ID as e, RX_HTML_TAGS as f, RX_HYPHENATE as g, RX_LOWER_UPPER as h, RX_NUMBER as i, RX_PLUS as j, RX_REGEXP_REPLACE as k, RX_SPACES as l, RX_SPACE_SPLIT as m, RX_STAR as n, RX_START_SPACE_WORD as o, RX_TRIM_LEFT as p, RX_TRIM_RIGHT as q, RX_UNDERSCORE as r, RX_UN_KEBAB as s, RX_ABBREVIATION_FROM_STRING as t, RX_DATE as u, RX_DATE_SPLIT as v, RX_TIME as w, RX_HREF as x, RX_ENCODED_COMMA as y, RX_ENCODE_REVERSE as z };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { O as OR_AVATAR_SIZE, s as OrAvatar } from '../OrAvatar-e79f6f21.js';
|
|
2
|
-
export { a as AvatarColor, A as AvatarSize, s as OrAvatarV3 } from '../OrAvatar-
|
|
2
|
+
export { a as AvatarColor, A as AvatarSize, s as OrAvatarV3 } from '../OrAvatar-ae032fe2.js';
|
|
3
3
|
export { B as BottomSheetVariant, s as OrBottomSheetV3 } from '../OrBottomSheet-e33d1de9.js';
|
|
4
4
|
export { s as OrButton, a as OrButtonColors, b as OrButtonSizes, O as OrButtonViews } from '../OrButton-e5f925bb.js';
|
|
5
5
|
export { s as OrButtonGroupV3 } from '../OrButtonGroup-2583d1d0.js';
|
|
@@ -101,7 +101,7 @@ export { s as OrSearch } from '../OrSearch-54a642d3.js';
|
|
|
101
101
|
export { s as OrSearchV3 } from '../OrSearch-44810f4c.js';
|
|
102
102
|
export { s as OrSegmentedControlV3, S as SegmentedControlSize } from '../OrSegmentedControl-08992fc7.js';
|
|
103
103
|
export { s as OrSelect } from '../OrSelect-c87b9c23.js';
|
|
104
|
-
export { s as OrSelectV3 } from '../OrSelect-
|
|
104
|
+
export { s as OrSelectV3 } from '../OrSelect-78a9da6c.js';
|
|
105
105
|
export { s as OrSidebar, O as OrSidebarSide } from '../OrSidebar-4ab42b93.js';
|
|
106
106
|
export { S as OrSidebarPlacement, s as OrSidebarV3, S as SidebarPlacement } from '../OrSidebar-a6d3d1be.js';
|
|
107
107
|
export { s as OrSkeletonCircle } from '../OrSkeletonCircle-66e175a0.js';
|
|
@@ -122,10 +122,10 @@ export { s as OrTabHeaderItem } from '../OrTabHeaderItem-c2af7ca3.js';
|
|
|
122
122
|
export { s as OrTabV3 } from '../OrTab-42be32d1.js';
|
|
123
123
|
export { s as OrTabs } from '../OrTabs-3da3ea89.js';
|
|
124
124
|
export { s as OrTabsV3, T as TabsVariant } from '../OrTabs-b0c9d2a5.js';
|
|
125
|
-
export { s as OrTag } from '../OrTag-
|
|
126
|
-
export { s as OrTagInputV3 } from '../OrTagInput-
|
|
125
|
+
export { s as OrTag } from '../OrTag-04abf6a7.js';
|
|
126
|
+
export { s as OrTagInputV3 } from '../OrTagInput-dfa119ea.js';
|
|
127
127
|
export { s as OrTagV3, a as TagColor, T as TagVariant } from '../OrTag-1b111af7.js';
|
|
128
|
-
export { s as OrTagsV3, T as TagsOverflow } from '../OrTags-
|
|
128
|
+
export { s as OrTagsV3, T as TagsOverflow } from '../OrTags-b5aea0be.js';
|
|
129
129
|
export { s as OrTeleport } from '../OrTeleport.vue3-9bce0c02.js';
|
|
130
130
|
export { s as OrTeleportV3 } from '../OrTeleport.vue3-bf77eed4.js';
|
|
131
131
|
export { s as OrTextV3 } from '../OrText-d54c951d.js';
|
|
@@ -146,7 +146,7 @@ export { s as OrTreeV3, T as TreeNodeDropPosition } from '../OrTree-82c3b90e.js'
|
|
|
146
146
|
import 'vue-demi';
|
|
147
147
|
import 'vue';
|
|
148
148
|
import '../style-inject.es-4c6f2515.js';
|
|
149
|
-
import '../color-
|
|
149
|
+
import '../color-911f1122.js';
|
|
150
150
|
import '@vueuse/core';
|
|
151
151
|
import '../dom-aecadd9a.js';
|
|
152
152
|
import 'lodash/isElement';
|
|
@@ -203,7 +203,7 @@ import '../codemirrorView-020fe885.js';
|
|
|
203
203
|
import 'prosemirror-state';
|
|
204
204
|
import 'prosemirror-commands';
|
|
205
205
|
import 'lodash/keyBy';
|
|
206
|
-
import '../OrSelectMultipleControl-
|
|
206
|
+
import '../OrSelectMultipleControl-9d33a012.js';
|
|
207
207
|
import '../isEqualValue-f8bf73d9.js';
|
|
208
208
|
import '../OrSelectControlInput-266e9375.js';
|
|
209
209
|
import '../OrSelectPlaceholder-fc5a2dbf.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { a as AvatarColor, A as AvatarSize, s as OrAvatarV3 } from '../../OrAvatar-
|
|
1
|
+
export { a as AvatarColor, A as AvatarSize, s as OrAvatarV3 } from '../../OrAvatar-ae032fe2.js';
|
|
2
2
|
import 'vue-demi';
|
|
3
|
-
import '../../color-
|
|
3
|
+
import '../../color-911f1122.js';
|
|
4
4
|
import '../../OrIcon-b2e2d0aa.js';
|
|
5
5
|
import 'vue';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { s as OrSelectV3 } from '../../OrSelect-
|
|
1
|
+
export { s as OrSelectV3 } from '../../OrSelect-78a9da6c.js';
|
|
2
2
|
export { I as SelectSize } from '../../OrInputBox-be83fe16.js';
|
|
3
3
|
import 'vue-demi';
|
|
4
4
|
import '../../dropdown-open-06d651cf.js';
|
|
@@ -36,11 +36,11 @@ import '../../OrInput-c92be458.js';
|
|
|
36
36
|
import '../../useValidationAttributes-d1abbe34.js';
|
|
37
37
|
import '../../OrLoader-b7d415dd.js';
|
|
38
38
|
import '../../OrMenuItem-2928ba60.js';
|
|
39
|
-
import '../../OrTags-
|
|
39
|
+
import '../../OrTags-b5aea0be.js';
|
|
40
40
|
import '../../useOverflow-e91d2314.js';
|
|
41
41
|
import '../../OrButton-9ca0dc8e.js';
|
|
42
42
|
import '../../OrTag-1b111af7.js';
|
|
43
|
-
import '../../OrSelectMultipleControl-
|
|
43
|
+
import '../../OrSelectMultipleControl-9d33a012.js';
|
|
44
44
|
import '../../isEqualValue-f8bf73d9.js';
|
|
45
45
|
import '../../OrSelectControlInput-266e9375.js';
|
|
46
46
|
import '../../OrSelectPlaceholder-fc5a2dbf.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { s as OrSelectMultipleControl } from '../../../OrSelectMultipleControl-
|
|
1
|
+
export { s as OrSelectMultipleControl } from '../../../OrSelectMultipleControl-9d33a012.js';
|
|
2
2
|
export { s as OrSelectSingleControl } from '../../../OrSelectSingleControl-384d4b45.js';
|
|
3
3
|
export { s as OrSelectPlaceholder } from '../../../OrSelectPlaceholder-fc5a2dbf.js';
|
|
4
4
|
import 'vue-demi';
|
|
@@ -10,7 +10,7 @@ import '../../../isEqualValue-f8bf73d9.js';
|
|
|
10
10
|
import '../../../useProxyModelValue-940010d2.js';
|
|
11
11
|
import '@onereach/styles/tailwind/plugins/core';
|
|
12
12
|
import '@onereach/styles/tailwind.config.json';
|
|
13
|
-
import '../../../OrTags-
|
|
13
|
+
import '../../../OrTags-b5aea0be.js';
|
|
14
14
|
import '../../../useOverflow-e91d2314.js';
|
|
15
15
|
import '../../../OrButton-9ca0dc8e.js';
|
|
16
16
|
import '../../../OrLoader-b7d415dd.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { s as OrSelectMultipleControl } from '../../../../OrSelectMultipleControl-
|
|
1
|
+
export { s as OrSelectMultipleControl } from '../../../../OrSelectMultipleControl-9d33a012.js';
|
|
2
2
|
import 'vue-demi';
|
|
3
3
|
import '@vueuse/core';
|
|
4
4
|
import '../../../../dom-aecadd9a.js';
|
|
@@ -8,7 +8,7 @@ import '../../../../isEqualValue-f8bf73d9.js';
|
|
|
8
8
|
import '../../../../useProxyModelValue-940010d2.js';
|
|
9
9
|
import '@onereach/styles/tailwind/plugins/core';
|
|
10
10
|
import '@onereach/styles/tailwind.config.json';
|
|
11
|
-
import '../../../../OrTags-
|
|
11
|
+
import '../../../../OrTags-b5aea0be.js';
|
|
12
12
|
import '../../../../useOverflow-e91d2314.js';
|
|
13
13
|
import '../../../../OrButton-9ca0dc8e.js';
|
|
14
14
|
import '../../../../OrLoader-b7d415dd.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { s as OrTag } from '../../OrTag-
|
|
1
|
+
export { s as OrTag } from '../../OrTag-04abf6a7.js';
|
|
2
2
|
import 'vue-demi';
|
|
3
3
|
import '../../OrIcon-eb0a5aa2.js';
|
|
4
4
|
import '../../OrTooltip-ac7736a3.js';
|
|
@@ -13,4 +13,4 @@ import '../../dom-aecadd9a.js';
|
|
|
13
13
|
import 'lodash/isElement';
|
|
14
14
|
import 'lodash/get';
|
|
15
15
|
import '../../px-to-rem-0b26b83e.js';
|
|
16
|
-
import '../../color-
|
|
16
|
+
import '../../color-911f1122.js';
|
|
@@ -4,7 +4,7 @@ import { TagObject } from '../or-tags-v3/types';
|
|
|
4
4
|
declare const _default: import("vue-demi").DefineComponent<{
|
|
5
5
|
modelValue: {
|
|
6
6
|
type: PropType<string[]>;
|
|
7
|
-
default: () =>
|
|
7
|
+
default: () => [];
|
|
8
8
|
};
|
|
9
9
|
label: {
|
|
10
10
|
type: StringConstructor;
|
|
@@ -95,7 +95,7 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
95
95
|
}, unknown, {}, {}, import("vue-demi").ComponentOptionsMixin, import("vue-demi").ComponentOptionsMixin, ("update:modelValue" | "keydown" | "keyup" | "focus" | "blur" | "reset")[], "update:modelValue" | "keydown" | "keyup" | "focus" | "blur" | "reset", import("vue-demi").VNodeProps & import("vue-demi").AllowedComponentProps & import("vue-demi").ComponentCustomProps, Readonly<import("vue-demi").ExtractPropTypes<{
|
|
96
96
|
modelValue: {
|
|
97
97
|
type: PropType<string[]>;
|
|
98
|
-
default: () =>
|
|
98
|
+
default: () => [];
|
|
99
99
|
};
|
|
100
100
|
label: {
|
|
101
101
|
type: StringConstructor;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { s as OrTagInputV3 } from '../../OrTagInput-
|
|
1
|
+
export { s as OrTagInputV3 } from '../../OrTagInput-dfa119ea.js';
|
|
2
2
|
export { I as TagInputSize } from '../../OrInputBox-be83fe16.js';
|
|
3
3
|
import '@vueuse/core';
|
|
4
4
|
import 'vue-demi';
|
|
@@ -29,7 +29,7 @@ import '../../isPrevented-6994b101.js';
|
|
|
29
29
|
import '../../isAncestor-9acec98b.js';
|
|
30
30
|
import '../../OrLabel-6c83afe4.js';
|
|
31
31
|
import '../../OrTag-1b111af7.js';
|
|
32
|
-
import '../../OrTags-
|
|
32
|
+
import '../../OrTags-b5aea0be.js';
|
|
33
33
|
import '../../useOverflow-e91d2314.js';
|
|
34
34
|
import '../../OrButton-9ca0dc8e.js';
|
|
35
35
|
import '../../OrLoader-b7d415dd.js';
|
package/dist/esm/v3/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { O as OR_AVATAR_SIZE, s as OrAvatar } from './OrAvatar-e79f6f21.js';
|
|
2
|
-
export { a as AvatarColor, A as AvatarSize, s as OrAvatarV3 } from './OrAvatar-
|
|
2
|
+
export { a as AvatarColor, A as AvatarSize, s as OrAvatarV3 } from './OrAvatar-ae032fe2.js';
|
|
3
3
|
export { B as BottomSheetVariant, s as OrBottomSheetV3 } from './OrBottomSheet-e33d1de9.js';
|
|
4
4
|
export { s as OrButton, a as OrButtonColors, b as OrButtonSizes, O as OrButtonViews } from './OrButton-e5f925bb.js';
|
|
5
5
|
export { s as OrButtonGroupV3 } from './OrButtonGroup-2583d1d0.js';
|
|
@@ -101,7 +101,7 @@ export { s as OrSearch } from './OrSearch-54a642d3.js';
|
|
|
101
101
|
export { s as OrSearchV3 } from './OrSearch-44810f4c.js';
|
|
102
102
|
export { s as OrSegmentedControlV3, S as SegmentedControlSize } from './OrSegmentedControl-08992fc7.js';
|
|
103
103
|
export { s as OrSelect } from './OrSelect-c87b9c23.js';
|
|
104
|
-
export { s as OrSelectV3 } from './OrSelect-
|
|
104
|
+
export { s as OrSelectV3 } from './OrSelect-78a9da6c.js';
|
|
105
105
|
export { s as OrSidebar, O as OrSidebarSide } from './OrSidebar-4ab42b93.js';
|
|
106
106
|
export { S as OrSidebarPlacement, s as OrSidebarV3, S as SidebarPlacement } from './OrSidebar-a6d3d1be.js';
|
|
107
107
|
export { s as OrSkeletonCircle } from './OrSkeletonCircle-66e175a0.js';
|
|
@@ -122,10 +122,10 @@ export { s as OrTabHeaderItem } from './OrTabHeaderItem-c2af7ca3.js';
|
|
|
122
122
|
export { s as OrTabV3 } from './OrTab-42be32d1.js';
|
|
123
123
|
export { s as OrTabs } from './OrTabs-3da3ea89.js';
|
|
124
124
|
export { s as OrTabsV3, T as TabsVariant } from './OrTabs-b0c9d2a5.js';
|
|
125
|
-
export { s as OrTag } from './OrTag-
|
|
126
|
-
export { s as OrTagInputV3 } from './OrTagInput-
|
|
125
|
+
export { s as OrTag } from './OrTag-04abf6a7.js';
|
|
126
|
+
export { s as OrTagInputV3 } from './OrTagInput-dfa119ea.js';
|
|
127
127
|
export { s as OrTagV3, a as TagColor, T as TagVariant } from './OrTag-1b111af7.js';
|
|
128
|
-
export { s as OrTagsV3, T as TagsOverflow } from './OrTags-
|
|
128
|
+
export { s as OrTagsV3, T as TagsOverflow } from './OrTags-b5aea0be.js';
|
|
129
129
|
export { s as OrTeleport } from './OrTeleport.vue3-9bce0c02.js';
|
|
130
130
|
export { s as OrTeleportV3 } from './OrTeleport.vue3-bf77eed4.js';
|
|
131
131
|
export { s as OrTextV3 } from './OrText-d54c951d.js';
|
|
@@ -153,8 +153,8 @@ export { u as useResponsive } from './useResponsive-1baf3485.js';
|
|
|
153
153
|
export { u as useTheme } from './useTheme-0ef25778.js';
|
|
154
154
|
export { u as useToggle } from './useToggle-c04fc920.js';
|
|
155
155
|
export { u as useValidationAttributes } from './useValidationAttributes-d1abbe34.js';
|
|
156
|
-
export { H as HSL_LIMITS, t as RX_ABBREVIATION_FROM_STRING, R as RX_ARRAY_NOTATION, a as RX_BV_PREFIX, u as RX_DATE, v as RX_DATE_SPLIT, b as RX_DIGITS, y as RX_ENCODED_COMMA, z as RX_ENCODE_REVERSE, c as RX_EXTENSION, d as RX_HASH, e as RX_HASH_ID, x as RX_HREF, f as RX_HTML_TAGS, g as RX_HYPHENATE, C as RX_LONG_COLOR, h as RX_LOWER_UPPER, i as RX_NUMBER, j as RX_PLUS, A as RX_QUERY_START, k as RX_REGEXP_REPLACE, B as RX_SHORT_COLOR, l as RX_SPACES, m as RX_SPACE_SPLIT, n as RX_STAR, o as RX_START_SPACE_WORD, w as RX_TIME, p as RX_TRIM_LEFT, q as RX_TRIM_RIGHT, r as RX_UNDERSCORE, s as RX_UN_KEBAB, F as generateHslFromString,
|
|
157
|
-
export { C as CODE_BACKSPACE, a as CODE_BREAK, b as CODE_DELETE, c as CODE_DOWN, d as CODE_END, e as CODE_ENTER, f as CODE_ESC, g as CODE_HOME, h as CODE_LEFT, i as CODE_PAGEDOWN, j as CODE_PAGEUP, k as CODE_RIGHT, l as CODE_SPACE, m as CODE_UP, p as PLACEMENT_BOTTOM_END, o as PLACEMENT_BOTTOM_START, t as PLACEMENT_LEFT_END, s as PLACEMENT_LEFT_START, r as PLACEMENT_RIGHT_END, q as PLACEMENT_RIGHT_START, n as PLACEMENT_TOP_END, P as PLACEMENT_TOP_START, u as getAbbreviation, v as isDescendant } from './isDescendant-
|
|
156
|
+
export { H as HSL_LIMITS, t as RX_ABBREVIATION_FROM_STRING, R as RX_ARRAY_NOTATION, a as RX_BV_PREFIX, u as RX_DATE, v as RX_DATE_SPLIT, b as RX_DIGITS, y as RX_ENCODED_COMMA, z as RX_ENCODE_REVERSE, c as RX_EXTENSION, d as RX_HASH, e as RX_HASH_ID, x as RX_HREF, f as RX_HTML_TAGS, g as RX_HYPHENATE, C as RX_LONG_COLOR, h as RX_LOWER_UPPER, i as RX_NUMBER, j as RX_PLUS, A as RX_QUERY_START, k as RX_REGEXP_REPLACE, B as RX_SHORT_COLOR, l as RX_SPACES, m as RX_SPACE_SPLIT, n as RX_STAR, o as RX_START_SPACE_WORD, w as RX_TIME, p as RX_TRIM_LEFT, q as RX_TRIM_RIGHT, r as RX_UNDERSCORE, s as RX_UN_KEBAB, I as generateColorFromString, F as generateHslFromString, J as getHashOfString, D as hexToRgb, G as hslToColorString, K as normalize, E as rgbToHex } from './color-911f1122.js';
|
|
157
|
+
export { C as CODE_BACKSPACE, a as CODE_BREAK, b as CODE_DELETE, c as CODE_DOWN, d as CODE_END, e as CODE_ENTER, f as CODE_ESC, g as CODE_HOME, h as CODE_LEFT, i as CODE_PAGEDOWN, j as CODE_PAGEUP, k as CODE_RIGHT, l as CODE_SPACE, m as CODE_UP, p as PLACEMENT_BOTTOM_END, o as PLACEMENT_BOTTOM_START, t as PLACEMENT_LEFT_END, s as PLACEMENT_LEFT_START, r as PLACEMENT_RIGHT_END, q as PLACEMENT_RIGHT_START, n as PLACEMENT_TOP_END, P as PLACEMENT_TOP_START, u as getAbbreviation, v as isDescendant } from './isDescendant-4434a968.js';
|
|
158
158
|
export { M as MutationObs, f as addClass, c as cancelAF, e as contains, m as getAttr, t as getBCR, g as getById, u as getCS, x as getMaxZIndex, q as getStyle, n as hasAttr, j as hasClass, i as isVisible, v as offset, w as position, b as reflow, l as removeAttr, h as removeClass, a as removeNode, p as removeStyle, r as requestAF, d as select, s as selectAll, k as setAttr, o as setStyle } from './dom-aecadd9a.js';
|
|
159
159
|
export { p as pxToRem } from './px-to-rem-0b26b83e.js';
|
|
160
160
|
export { i as isAncestor } from './isAncestor-9acec98b.js';
|
|
@@ -205,7 +205,7 @@ import './codemirrorView-020fe885.js';
|
|
|
205
205
|
import 'prosemirror-state';
|
|
206
206
|
import 'prosemirror-commands';
|
|
207
207
|
import 'lodash/keyBy';
|
|
208
|
-
import './OrSelectMultipleControl-
|
|
208
|
+
import './OrSelectMultipleControl-9d33a012.js';
|
|
209
209
|
import './OrSelectControlInput-266e9375.js';
|
|
210
210
|
import './OrSelectPlaceholder-fc5a2dbf.js';
|
|
211
211
|
import './OrSelectSingleControl-384d4b45.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { H as HSL_LIMITS, t as RX_ABBREVIATION_FROM_STRING, R as RX_ARRAY_NOTATION, a as RX_BV_PREFIX, u as RX_DATE, v as RX_DATE_SPLIT, b as RX_DIGITS, y as RX_ENCODED_COMMA, z as RX_ENCODE_REVERSE, c as RX_EXTENSION, d as RX_HASH, e as RX_HASH_ID, x as RX_HREF, f as RX_HTML_TAGS, g as RX_HYPHENATE, C as RX_LONG_COLOR, h as RX_LOWER_UPPER, i as RX_NUMBER, j as RX_PLUS, A as RX_QUERY_START, k as RX_REGEXP_REPLACE, B as RX_SHORT_COLOR, l as RX_SPACES, m as RX_SPACE_SPLIT, n as RX_STAR, o as RX_START_SPACE_WORD, w as RX_TIME, p as RX_TRIM_LEFT, q as RX_TRIM_RIGHT, r as RX_UNDERSCORE, s as RX_UN_KEBAB, F as generateHslFromString,
|
|
2
|
-
export { C as CODE_BACKSPACE, a as CODE_BREAK, b as CODE_DELETE, c as CODE_DOWN, d as CODE_END, e as CODE_ENTER, f as CODE_ESC, g as CODE_HOME, h as CODE_LEFT, i as CODE_PAGEDOWN, j as CODE_PAGEUP, k as CODE_RIGHT, l as CODE_SPACE, m as CODE_UP, p as PLACEMENT_BOTTOM_END, o as PLACEMENT_BOTTOM_START, t as PLACEMENT_LEFT_END, s as PLACEMENT_LEFT_START, r as PLACEMENT_RIGHT_END, q as PLACEMENT_RIGHT_START, n as PLACEMENT_TOP_END, P as PLACEMENT_TOP_START, u as getAbbreviation, v as isDescendant } from '../isDescendant-
|
|
1
|
+
export { H as HSL_LIMITS, t as RX_ABBREVIATION_FROM_STRING, R as RX_ARRAY_NOTATION, a as RX_BV_PREFIX, u as RX_DATE, v as RX_DATE_SPLIT, b as RX_DIGITS, y as RX_ENCODED_COMMA, z as RX_ENCODE_REVERSE, c as RX_EXTENSION, d as RX_HASH, e as RX_HASH_ID, x as RX_HREF, f as RX_HTML_TAGS, g as RX_HYPHENATE, C as RX_LONG_COLOR, h as RX_LOWER_UPPER, i as RX_NUMBER, j as RX_PLUS, A as RX_QUERY_START, k as RX_REGEXP_REPLACE, B as RX_SHORT_COLOR, l as RX_SPACES, m as RX_SPACE_SPLIT, n as RX_STAR, o as RX_START_SPACE_WORD, w as RX_TIME, p as RX_TRIM_LEFT, q as RX_TRIM_RIGHT, r as RX_UNDERSCORE, s as RX_UN_KEBAB, I as generateColorFromString, F as generateHslFromString, J as getHashOfString, D as hexToRgb, G as hslToColorString, K as normalize, E as rgbToHex } from '../color-911f1122.js';
|
|
2
|
+
export { C as CODE_BACKSPACE, a as CODE_BREAK, b as CODE_DELETE, c as CODE_DOWN, d as CODE_END, e as CODE_ENTER, f as CODE_ESC, g as CODE_HOME, h as CODE_LEFT, i as CODE_PAGEDOWN, j as CODE_PAGEUP, k as CODE_RIGHT, l as CODE_SPACE, m as CODE_UP, p as PLACEMENT_BOTTOM_END, o as PLACEMENT_BOTTOM_START, t as PLACEMENT_LEFT_END, s as PLACEMENT_LEFT_START, r as PLACEMENT_RIGHT_END, q as PLACEMENT_RIGHT_START, n as PLACEMENT_TOP_END, P as PLACEMENT_TOP_START, u as getAbbreviation, v as isDescendant } from '../isDescendant-4434a968.js';
|
|
3
3
|
export { M as MutationObs, f as addClass, c as cancelAF, e as contains, m as getAttr, t as getBCR, g as getById, u as getCS, x as getMaxZIndex, q as getStyle, n as hasAttr, j as hasClass, i as isVisible, v as offset, w as position, b as reflow, l as removeAttr, h as removeClass, a as removeNode, p as removeStyle, r as requestAF, d as select, s as selectAll, k as setAttr, o as setStyle } from '../dom-aecadd9a.js';
|
|
4
4
|
export { p as pxToRem } from '../px-to-rem-0b26b83e.js';
|
|
5
5
|
export { i as isAncestor } from '../isAncestor-9acec98b.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onereach/ui-components",
|
|
3
|
-
"version": "8.22.
|
|
3
|
+
"version": "8.22.2",
|
|
4
4
|
"npmUnpacked": "4.15.2",
|
|
5
5
|
"description": "Vue components library for v2/3",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -178,5 +178,5 @@
|
|
|
178
178
|
},
|
|
179
179
|
"./package.json": "./package.json"
|
|
180
180
|
},
|
|
181
|
-
"gitHead": "
|
|
181
|
+
"gitHead": "e25654439cc46123247a6d0f70a117015a8a8274"
|
|
182
182
|
}
|
|
@@ -55,7 +55,14 @@
|
|
|
55
55
|
:enable-search="enableSearch"
|
|
56
56
|
:is-open="popoverState === 'open'"
|
|
57
57
|
@reset="deselect"
|
|
58
|
-
|
|
58
|
+
>
|
|
59
|
+
<template v-slot:tag="{item}">
|
|
60
|
+
<slot
|
|
61
|
+
name="tag"
|
|
62
|
+
:item="item"
|
|
63
|
+
/>
|
|
64
|
+
</template>
|
|
65
|
+
</OrSelectMultipleControl>
|
|
59
66
|
</template>
|
|
60
67
|
|
|
61
68
|
<template v-else>
|
|
@@ -248,7 +255,7 @@
|
|
|
248
255
|
</template>
|
|
249
256
|
|
|
250
257
|
<script lang="ts">
|
|
251
|
-
import { computed, defineComponent, getCurrentInstance,
|
|
258
|
+
import { computed, defineComponent, getCurrentInstance, PropType, ref, toRefs, watch } from 'vue-demi';
|
|
252
259
|
import { DropdownClose, DropdownOpen } from '../../directives';
|
|
253
260
|
import { useProxyModelValue, useResponsive } from '../../hooks';
|
|
254
261
|
import { isEmptyValue } from '../../utils';
|
|
@@ -268,6 +275,7 @@ import { OrSelectMultipleControl, OrSelectSingleControl } from './partials';
|
|
|
268
275
|
import { SelectSize } from './props';
|
|
269
276
|
import { Select, SelectControl, SelectDropdown, SelectDropdownDefault, SelectDropdownFlipped, SelectDropdownItem, SelectNoSearchResults, SelectSearchControl } from './styles';
|
|
270
277
|
import { RawValue, SelectGroupByFunction, SelectOption, SelectSearchFunction, SelectValue } from './types';
|
|
278
|
+
import { castToMultipleValue } from './utils/castToMultipleValue';
|
|
271
279
|
|
|
272
280
|
export default defineComponent({
|
|
273
281
|
components: {
|
|
@@ -474,11 +482,6 @@ export default defineComponent({
|
|
|
474
482
|
return enableClear.value && !isEmptyModelValue.value;
|
|
475
483
|
});
|
|
476
484
|
|
|
477
|
-
onMounted(() => {
|
|
478
|
-
if (!proxyModelValue.value && props.multiple) {
|
|
479
|
-
proxyModelValue.value = [];
|
|
480
|
-
}
|
|
481
|
-
});
|
|
482
485
|
|
|
483
486
|
const focused = computed(() => {
|
|
484
487
|
if (multiple.value) {
|
|
@@ -592,11 +595,11 @@ export default defineComponent({
|
|
|
592
595
|
function toggleOption(option: RawValue): void {
|
|
593
596
|
const modelValue = proxyModelValue.value;
|
|
594
597
|
|
|
595
|
-
if (
|
|
596
|
-
if (modelValue.includes(option)) {
|
|
598
|
+
if (multiple.value) {
|
|
599
|
+
if (modelValue && Array.isArray(modelValue) && modelValue.includes(option)) {
|
|
597
600
|
deselect(option);
|
|
598
601
|
} else {
|
|
599
|
-
proxyModelValue.value = [...modelValue, option];
|
|
602
|
+
proxyModelValue.value = [...castToMultipleValue(modelValue), option];
|
|
600
603
|
}
|
|
601
604
|
} else {
|
|
602
605
|
proxyModelValue.value = option;
|
package/src/components/or-select-v3/partials/or-select-multiple-control/OrSelectMultipleControl.vue
CHANGED
|
@@ -16,6 +16,16 @@
|
|
|
16
16
|
:overflow="overflow"
|
|
17
17
|
@reset="$emit('reset', $event)"
|
|
18
18
|
>
|
|
19
|
+
<template
|
|
20
|
+
v-slot:tag="{item}"
|
|
21
|
+
>
|
|
22
|
+
<slot
|
|
23
|
+
name="tag"
|
|
24
|
+
:item="item"
|
|
25
|
+
>
|
|
26
|
+
{{ item.label }}
|
|
27
|
+
</slot>
|
|
28
|
+
</template>
|
|
19
29
|
<template
|
|
20
30
|
v-if="enableSearch"
|
|
21
31
|
v-slot:tail
|
|
@@ -49,7 +59,7 @@ import { SelectOption, SelectValue } from '../../types';
|
|
|
49
59
|
import { OrSelectControlInput } from '../or-select-control-input';
|
|
50
60
|
import OrSelectPlaceholder from '../or-select-placeholder/OrSelectPlaceholder.vue';
|
|
51
61
|
import { SelectMultipleControlRoot } from './styles';
|
|
52
|
-
import { castToMultipleValue } from '
|
|
62
|
+
import { castToMultipleValue } from '../../utils/castToMultipleValue';
|
|
53
63
|
|
|
54
64
|
export default defineComponent({
|
|
55
65
|
components: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { SelectValue } from '
|
|
2
|
-
import { isEmptyValue } from '
|
|
1
|
+
import { SelectValue } from '../types';
|
|
2
|
+
import { isEmptyValue } from '../../../utils';
|
|
3
3
|
|
|
4
4
|
export function castToMultipleValue(value: SelectValue): SelectValue[] {
|
|
5
5
|
if (Array.isArray(value)) {
|
|
@@ -38,6 +38,14 @@
|
|
|
38
38
|
:overflow="overflow"
|
|
39
39
|
@reset="remove($event)"
|
|
40
40
|
>
|
|
41
|
+
<template v-slot:tag="{item}">
|
|
42
|
+
<slot
|
|
43
|
+
name="tag"
|
|
44
|
+
:item="item"
|
|
45
|
+
>
|
|
46
|
+
{{ item.label }}
|
|
47
|
+
</slot>
|
|
48
|
+
</template>
|
|
41
49
|
<template
|
|
42
50
|
v-if="showControl"
|
|
43
51
|
v-slot:tail
|
|
@@ -148,7 +156,7 @@ export default defineComponent({
|
|
|
148
156
|
props: {
|
|
149
157
|
modelValue: {
|
|
150
158
|
type: Array as PropType<string[]>,
|
|
151
|
-
default: () => [],
|
|
159
|
+
default: (): [] => [],
|
|
152
160
|
},
|
|
153
161
|
|
|
154
162
|
label: {
|
|
@@ -15,7 +15,12 @@
|
|
|
15
15
|
:class="['max-w-full']"
|
|
16
16
|
@reset="$emit('reset', item.value)"
|
|
17
17
|
>
|
|
18
|
-
|
|
18
|
+
<slot
|
|
19
|
+
name="tag"
|
|
20
|
+
:item="item"
|
|
21
|
+
>
|
|
22
|
+
{{ item.label }}
|
|
23
|
+
</slot>
|
|
19
24
|
</OrTag>
|
|
20
25
|
|
|
21
26
|
<slot
|
|
@@ -50,7 +55,12 @@
|
|
|
50
55
|
:key="item.value"
|
|
51
56
|
@reset="$emit('reset', item.value)"
|
|
52
57
|
>
|
|
53
|
-
|
|
58
|
+
<slot
|
|
59
|
+
name="tag"
|
|
60
|
+
:item="item"
|
|
61
|
+
>
|
|
62
|
+
{{ item.label }}
|
|
63
|
+
</slot>
|
|
54
64
|
</OrTag>
|
|
55
65
|
</div>
|
|
56
66
|
</OrPopover>
|
|
@@ -46,3 +46,10 @@ export function generateHslFromString(
|
|
|
46
46
|
export function hslToColorString(hsl: { h: number; s: number; l: number; }): string {
|
|
47
47
|
return `hsl(${hsl.h}, ${hsl.s}%, ${hsl.l}%)`;
|
|
48
48
|
}
|
|
49
|
+
|
|
50
|
+
export function generateColorFromString(
|
|
51
|
+
str: string,
|
|
52
|
+
limits: Partial<Record<'h'|'s'|'l', { min: number; max: number; }>> = HSL_LIMITS,
|
|
53
|
+
): string {
|
|
54
|
+
return hslToColorString(generateHslFromString(str, limits));
|
|
55
|
+
}
|
|
File without changes
|