@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
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { defineComponent, ref, toRefs, computed, watch, getCurrentInstance
|
|
1
|
+
import { defineComponent, ref, toRefs, computed, watch, getCurrentInstance } from 'vue-demi';
|
|
2
2
|
import { g as useFocus } from '../../index-cc89d6b7.js';
|
|
3
3
|
import { useProxyModelValue } from '../../hooks/useProxyModelValue.js';
|
|
4
4
|
import { n as normalizeComponent } from '../../normalize-component-6e8e3d80.js';
|
|
5
|
-
import {
|
|
5
|
+
import { castToMultipleValue } from './utils/castToMultipleValue.js';
|
|
6
6
|
import __vue_component__$5 from '../OrTagsV3/OrTags.js';
|
|
7
7
|
import { TagsOverflow } from '../OrTagsV3/props.js';
|
|
8
8
|
import { isEqualValue } from '../../utils/isEqualValue.js';
|
|
9
|
+
import { isEmptyValue } from '../../utils/isEmptyValue.js';
|
|
9
10
|
import { Select, SelectControl, SelectSearchControl, SelectDropdown, SelectDropdownFlipped, SelectDropdownDefault, SelectDropdownItem, SelectNoSearchResults } from './styles.js';
|
|
10
11
|
import __vue_component__$6 from '../OrCheckboxV3/OrCheckbox.js';
|
|
11
12
|
import __vue_component__$7 from '../OrErrorV3/OrError.js';
|
|
@@ -225,13 +226,6 @@ const SelectMultipleControlRoot = [
|
|
|
225
226
|
// Layout
|
|
226
227
|
'layout-row', 'w-full'];
|
|
227
228
|
|
|
228
|
-
function castToMultipleValue(value) {
|
|
229
|
-
if (Array.isArray(value)) {
|
|
230
|
-
return value;
|
|
231
|
-
}
|
|
232
|
-
return isEmptyValue(value) ? [] : [value];
|
|
233
|
-
}
|
|
234
|
-
|
|
235
229
|
var script$2 = defineComponent({
|
|
236
230
|
components: {
|
|
237
231
|
OrSelectPlaceholder,
|
|
@@ -377,7 +371,17 @@ var __vue_render__$2 = function () {
|
|
|
377
371
|
return _vm.$emit('reset', $event);
|
|
378
372
|
}
|
|
379
373
|
},
|
|
380
|
-
scopedSlots: _vm._u([
|
|
374
|
+
scopedSlots: _vm._u([{
|
|
375
|
+
key: "tag",
|
|
376
|
+
fn: function (ref) {
|
|
377
|
+
var item = ref.item;
|
|
378
|
+
return [_vm._t("tag", function () {
|
|
379
|
+
return [_vm._v("\n " + _vm._s(item.label) + "\n ")];
|
|
380
|
+
}, {
|
|
381
|
+
"item": item
|
|
382
|
+
})];
|
|
383
|
+
}
|
|
384
|
+
}, _vm.enableSearch ? {
|
|
381
385
|
key: "tail",
|
|
382
386
|
fn: function () {
|
|
383
387
|
return [_c('div', {
|
|
@@ -730,11 +734,6 @@ var script = defineComponent({
|
|
|
730
734
|
const showClear = computed(() => {
|
|
731
735
|
return enableClear.value && !isEmptyModelValue.value;
|
|
732
736
|
});
|
|
733
|
-
onMounted(() => {
|
|
734
|
-
if (!proxyModelValue.value && props.multiple) {
|
|
735
|
-
proxyModelValue.value = [];
|
|
736
|
-
}
|
|
737
|
-
});
|
|
738
737
|
const focused = computed(() => {
|
|
739
738
|
var _a, _b;
|
|
740
739
|
if (multiple.value) {
|
|
@@ -819,11 +818,11 @@ var script = defineComponent({
|
|
|
819
818
|
}
|
|
820
819
|
function toggleOption(option) {
|
|
821
820
|
const modelValue = proxyModelValue.value;
|
|
822
|
-
if (
|
|
823
|
-
if (modelValue.includes(option)) {
|
|
821
|
+
if (multiple.value) {
|
|
822
|
+
if (modelValue && Array.isArray(modelValue) && modelValue.includes(option)) {
|
|
824
823
|
deselect(option);
|
|
825
824
|
} else {
|
|
826
|
-
proxyModelValue.value = [...modelValue, option];
|
|
825
|
+
proxyModelValue.value = [...castToMultipleValue(modelValue), option];
|
|
827
826
|
}
|
|
828
827
|
} else {
|
|
829
828
|
proxyModelValue.value = option;
|
|
@@ -954,6 +953,15 @@ var __vue_render__ = function () {
|
|
|
954
953
|
on: {
|
|
955
954
|
"reset": _vm.deselect
|
|
956
955
|
},
|
|
956
|
+
scopedSlots: _vm._u([{
|
|
957
|
+
key: "tag",
|
|
958
|
+
fn: function (ref) {
|
|
959
|
+
var item = ref.item;
|
|
960
|
+
return [_vm._t("tag", null, {
|
|
961
|
+
"item": item
|
|
962
|
+
})];
|
|
963
|
+
}
|
|
964
|
+
}], null, true),
|
|
957
965
|
model: {
|
|
958
966
|
value: _vm.searchText,
|
|
959
967
|
callback: function ($$v) {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { SelectValue } from '
|
|
1
|
+
import { SelectValue } from '../types';
|
|
2
2
|
export declare function castToMultipleValue(value: SelectValue): SelectValue[];
|
|
@@ -218,7 +218,7 @@ var script = defineComponent({
|
|
|
218
218
|
}
|
|
219
219
|
});
|
|
220
220
|
|
|
221
|
-
var css_248z = "input[data-v-
|
|
221
|
+
var css_248z = "input[data-v-85ccf734]{min-width:0;background:0 0;outline:0}";
|
|
222
222
|
styleInject(css_248z);
|
|
223
223
|
|
|
224
224
|
/* script */
|
|
@@ -291,7 +291,17 @@ var __vue_render__ = function () {
|
|
|
291
291
|
return _vm.remove($event);
|
|
292
292
|
}
|
|
293
293
|
},
|
|
294
|
-
scopedSlots: _vm._u([
|
|
294
|
+
scopedSlots: _vm._u([{
|
|
295
|
+
key: "tag",
|
|
296
|
+
fn: function (ref) {
|
|
297
|
+
var item = ref.item;
|
|
298
|
+
return [_vm._t("tag", function () {
|
|
299
|
+
return [_vm._v("\n " + _vm._s(item.label) + "\n ")];
|
|
300
|
+
}, {
|
|
301
|
+
"item": item
|
|
302
|
+
})];
|
|
303
|
+
}
|
|
304
|
+
}, _vm.showControl ? {
|
|
295
305
|
key: "tail",
|
|
296
306
|
fn: function () {
|
|
297
307
|
return [_c('div', {
|
|
@@ -393,7 +403,7 @@ var __vue_staticRenderFns__ = [];
|
|
|
393
403
|
/* style */
|
|
394
404
|
const __vue_inject_styles__ = undefined;
|
|
395
405
|
/* scoped */
|
|
396
|
-
const __vue_scope_id__ = "data-v-
|
|
406
|
+
const __vue_scope_id__ = "data-v-85ccf734";
|
|
397
407
|
/* module identifier */
|
|
398
408
|
const __vue_module_identifier__ = undefined;
|
|
399
409
|
/* functional template */
|
|
@@ -54,7 +54,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
54
54
|
}> & import("@vue/composition-api").Data, {}, {}, {
|
|
55
55
|
modelValue: {
|
|
56
56
|
type: PropType<string[]>;
|
|
57
|
-
default: () =>
|
|
57
|
+
default: () => [];
|
|
58
58
|
};
|
|
59
59
|
label: {
|
|
60
60
|
type: StringConstructor;
|
|
@@ -103,7 +103,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
103
103
|
}, import("@vue/composition-api").ExtractPropTypes<{
|
|
104
104
|
modelValue: {
|
|
105
105
|
type: PropType<string[]>;
|
|
106
|
-
default: () =>
|
|
106
|
+
default: () => [];
|
|
107
107
|
};
|
|
108
108
|
label: {
|
|
109
109
|
type: StringConstructor;
|
|
@@ -133,7 +133,11 @@ var __vue_render__ = function () {
|
|
|
133
133
|
return _vm.$emit('reset', item.value);
|
|
134
134
|
}
|
|
135
135
|
}
|
|
136
|
-
}, 'OrTag', Object.assign({}, _vm.tagProps, item.tagProps), false), [_vm.
|
|
136
|
+
}, 'OrTag', Object.assign({}, _vm.tagProps, item.tagProps), false), [_vm._t("tag", function () {
|
|
137
|
+
return [_vm._v("\n " + _vm._s(item.label) + "\n ")];
|
|
138
|
+
}, {
|
|
139
|
+
"item": item
|
|
140
|
+
})], 2);
|
|
137
141
|
}), _vm._v(" "), _vm.localOverflow === 'wrap' ? _vm._t("tail") : _vm._e()], 2) : _vm._e(), _vm._v(" "), _vm.localOverflow === 'hidden' && _vm.overflowItems.length > 0 ? [_c('OrButton', {
|
|
138
142
|
ref: "overflowButton",
|
|
139
143
|
class: _vm.overflowButtonStyles,
|
|
@@ -166,7 +170,11 @@ var __vue_render__ = function () {
|
|
|
166
170
|
return _vm.$emit('reset', item.value);
|
|
167
171
|
}
|
|
168
172
|
}
|
|
169
|
-
}, 'OrTag', Object.assign({}, _vm.tagProps, item.tagProps), false), [_vm.
|
|
173
|
+
}, 'OrTag', Object.assign({}, _vm.tagProps, item.tagProps), false), [_vm._t("tag", function () {
|
|
174
|
+
return [_vm._v("\n " + _vm._s(item.label) + "\n ")];
|
|
175
|
+
}, {
|
|
176
|
+
"item": item
|
|
177
|
+
})], 2);
|
|
170
178
|
}), 1)])] : _vm._e(), _vm._v(" "), _vm.localOverflow != 'wrap' || _vm.items.length === 0 ? _vm._t("tail") : _vm._e()], 2);
|
|
171
179
|
};
|
|
172
180
|
var __vue_staticRenderFns__ = [];
|
package/dist/bundled/v2/index.js
CHANGED
|
@@ -221,7 +221,7 @@ export { HSL_LIMITS } from './utils/constants/color.js';
|
|
|
221
221
|
export { CODE_BACKSPACE, CODE_BREAK, CODE_DELETE, CODE_DOWN, CODE_END, CODE_ENTER, CODE_ESC, CODE_HOME, CODE_LEFT, CODE_PAGEDOWN, CODE_PAGEUP, CODE_RIGHT, CODE_SPACE, CODE_UP } from './utils/constants/key-codes.js';
|
|
222
222
|
export { PLACEMENT_BOTTOM_END, PLACEMENT_BOTTOM_START, PLACEMENT_LEFT_END, PLACEMENT_LEFT_START, PLACEMENT_RIGHT_END, PLACEMENT_RIGHT_START, PLACEMENT_TOP_END, PLACEMENT_TOP_START } from './utils/constants/poper.js';
|
|
223
223
|
export { RX_ABBREVIATION_FROM_STRING, RX_ARRAY_NOTATION, RX_BV_PREFIX, RX_DATE, RX_DATE_SPLIT, RX_DIGITS, RX_ENCODED_COMMA, RX_ENCODE_REVERSE, RX_EXTENSION, RX_HASH, RX_HASH_ID, RX_HREF, RX_HTML_TAGS, RX_HYPHENATE, RX_LONG_COLOR, RX_LOWER_UPPER, RX_NUMBER, RX_PLUS, RX_QUERY_START, RX_REGEXP_REPLACE, RX_SHORT_COLOR, RX_SPACES, RX_SPACE_SPLIT, RX_STAR, RX_START_SPACE_WORD, RX_TIME, RX_TRIM_LEFT, RX_TRIM_RIGHT, RX_UNDERSCORE, RX_UN_KEBAB } from './utils/constants/regex.js';
|
|
224
|
-
export { generateHslFromString, hexToRgb, hslToColorString, rgbToHex } from './utils/functions/color.js';
|
|
224
|
+
export { generateColorFromString, generateHslFromString, hexToRgb, hslToColorString, rgbToHex } from './utils/functions/color.js';
|
|
225
225
|
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-cec392f3.js';
|
|
226
226
|
export { getHashOfString, normalize } from './utils/functions/hash.js';
|
|
227
227
|
export { pxToRem } from './utils/functions/px-to-rem.js';
|
|
@@ -36,5 +36,9 @@ function generateHslFromString(str) {
|
|
|
36
36
|
function hslToColorString(hsl) {
|
|
37
37
|
return `hsl(${hsl.h}, ${hsl.s}%, ${hsl.l}%)`;
|
|
38
38
|
}
|
|
39
|
+
function generateColorFromString(str) {
|
|
40
|
+
let limits = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : HSL_LIMITS;
|
|
41
|
+
return hslToColorString(generateHslFromString(str, limits));
|
|
42
|
+
}
|
|
39
43
|
|
|
40
|
-
export { generateHslFromString, hexToRgb, hslToColorString, rgbToHex };
|
|
44
|
+
export { generateColorFromString, generateHslFromString, hexToRgb, hslToColorString, rgbToHex };
|
|
@@ -2,7 +2,7 @@ export { HSL_LIMITS } from './constants/color.js';
|
|
|
2
2
|
export { CODE_BACKSPACE, CODE_BREAK, CODE_DELETE, CODE_DOWN, CODE_END, CODE_ENTER, CODE_ESC, CODE_HOME, CODE_LEFT, CODE_PAGEDOWN, CODE_PAGEUP, CODE_RIGHT, CODE_SPACE, CODE_UP } from './constants/key-codes.js';
|
|
3
3
|
export { PLACEMENT_BOTTOM_END, PLACEMENT_BOTTOM_START, PLACEMENT_LEFT_END, PLACEMENT_LEFT_START, PLACEMENT_RIGHT_END, PLACEMENT_RIGHT_START, PLACEMENT_TOP_END, PLACEMENT_TOP_START } from './constants/poper.js';
|
|
4
4
|
export { RX_ABBREVIATION_FROM_STRING, RX_ARRAY_NOTATION, RX_BV_PREFIX, RX_DATE, RX_DATE_SPLIT, RX_DIGITS, RX_ENCODED_COMMA, RX_ENCODE_REVERSE, RX_EXTENSION, RX_HASH, RX_HASH_ID, RX_HREF, RX_HTML_TAGS, RX_HYPHENATE, RX_LONG_COLOR, RX_LOWER_UPPER, RX_NUMBER, RX_PLUS, RX_QUERY_START, RX_REGEXP_REPLACE, RX_SHORT_COLOR, RX_SPACES, RX_SPACE_SPLIT, RX_STAR, RX_START_SPACE_WORD, RX_TIME, RX_TRIM_LEFT, RX_TRIM_RIGHT, RX_UNDERSCORE, RX_UN_KEBAB } from './constants/regex.js';
|
|
5
|
-
export { generateHslFromString, hexToRgb, hslToColorString, rgbToHex } from './functions/color.js';
|
|
5
|
+
export { generateColorFromString, generateHslFromString, hexToRgb, hslToColorString, rgbToHex } from './functions/color.js';
|
|
6
6
|
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-cec392f3.js';
|
|
7
7
|
export { getHashOfString, normalize } from './functions/hash.js';
|
|
8
8
|
export { pxToRem } from './functions/px-to-rem.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { s as default } from '../OrAvatarV3-
|
|
1
|
+
export { s as default } from '../OrAvatarV3-700dd5ab.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { a as AvatarColor, A as AvatarSize, s as OrAvatarV3 } from '../OrAvatarV3-
|
|
1
|
+
export { a as AvatarColor, A as AvatarSize, s as OrAvatarV3 } from '../OrAvatarV3-700dd5ab.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { a as AvatarColor, A as AvatarSize } from '../OrAvatarV3-
|
|
1
|
+
export { a as AvatarColor, A as AvatarSize } from '../OrAvatarV3-700dd5ab.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { b as Avatar, f as AvatarColors, d as AvatarIconSizes, c as AvatarSizes, e as AvatarTextSizes } from '../OrAvatarV3-
|
|
1
|
+
export { b as Avatar, f as AvatarColors, d as AvatarIconSizes, c as AvatarSizes, e as AvatarTextSizes } from '../OrAvatarV3-700dd5ab.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { s as default } from '../OrSelectV3-
|
|
1
|
+
export { s as default } from '../OrSelectV3-ef8b82f7.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { s as OrSelectV3 } from '../OrSelectV3-
|
|
1
|
+
export { s as OrSelectV3 } from '../OrSelectV3-ef8b82f7.js';
|
|
2
2
|
export { I as SelectSize } from '../OrInputBoxV3-90e51950.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { S as Select, a as SelectControl,
|
|
1
|
+
export { S as Select, a as SelectControl, d as SelectDropdown, e as SelectDropdownDefault, f as SelectDropdownFlipped, g as SelectDropdownItem, h as SelectNoSearchResults, b as SelectSearchControl } from '../OrSelectV3-ef8b82f7.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { SelectValue } from '
|
|
1
|
+
import { SelectValue } from '../types';
|
|
2
2
|
export declare function castToMultipleValue(value: SelectValue): SelectValue[];
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { s as script$d, I as InputBoxSize } from './OrInputBoxV3-90e51950.js';
|
|
2
|
-
import { withDirectives, openBlock, createElementBlock, normalizeStyle, normalizeClass, vModelDynamic, renderSlot, resolveComponent, createVNode, createSlots, withCtx,
|
|
3
|
-
import { defineComponent, ref, toRefs, computed, watch, getCurrentInstance
|
|
2
|
+
import { withDirectives, openBlock, createElementBlock, normalizeStyle, normalizeClass, vModelDynamic, renderSlot, resolveComponent, createVNode, createSlots, withCtx, createTextVNode, toDisplayString, createElementVNode, vShow, createBlock, createCommentVNode, Fragment, resolveDirective, withModifiers, renderList } from 'vue';
|
|
3
|
+
import { defineComponent, ref, toRefs, computed, watch, getCurrentInstance } from 'vue-demi';
|
|
4
4
|
import { n as useFocus } from './OrBottomSheetV3-83beaa38.js';
|
|
5
5
|
import { useProxyModelValue } from '../hooks/useProxyModelValue.js';
|
|
6
6
|
import { isEmptyValue } from '../utils/isEmptyValue.js';
|
|
7
|
-
import { s as script$5, T as TagsOverflow } from './OrTagsV3-
|
|
7
|
+
import { s as script$5, T as TagsOverflow } from './OrTagsV3-69f51def.js';
|
|
8
8
|
import { isEqualValue } from '../utils/isEqualValue.js';
|
|
9
9
|
import { s as script$6 } from './OrCheckboxV3-e9c24a67.js';
|
|
10
10
|
import { s as script$7 } from './OrErrorV3-19502b8d.js';
|
|
@@ -294,6 +294,15 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
294
294
|
overflow: _ctx.overflow,
|
|
295
295
|
onReset: _cache[1] || (_cache[1] = $event => _ctx.$emit('reset', $event))
|
|
296
296
|
}, createSlots({
|
|
297
|
+
tag: withCtx(_ref => {
|
|
298
|
+
let {
|
|
299
|
+
item
|
|
300
|
+
} = _ref;
|
|
301
|
+
return [renderSlot(_ctx.$slots, "tag", {
|
|
302
|
+
item: item
|
|
303
|
+
}, () => [createTextVNode(toDisplayString(item.label), 1 /* TEXT */)])];
|
|
304
|
+
}),
|
|
305
|
+
|
|
297
306
|
_: 2 /* DYNAMIC */
|
|
298
307
|
}, [_ctx.enableSearch ? {
|
|
299
308
|
name: "tail",
|
|
@@ -652,11 +661,6 @@ var script = defineComponent({
|
|
|
652
661
|
const showClear = computed(() => {
|
|
653
662
|
return enableClear.value && !isEmptyModelValue.value;
|
|
654
663
|
});
|
|
655
|
-
onMounted(() => {
|
|
656
|
-
if (!proxyModelValue.value && props.multiple) {
|
|
657
|
-
proxyModelValue.value = [];
|
|
658
|
-
}
|
|
659
|
-
});
|
|
660
664
|
const focused = computed(() => {
|
|
661
665
|
var _a, _b;
|
|
662
666
|
if (multiple.value) {
|
|
@@ -741,11 +745,11 @@ var script = defineComponent({
|
|
|
741
745
|
}
|
|
742
746
|
function toggleOption(option) {
|
|
743
747
|
const modelValue = proxyModelValue.value;
|
|
744
|
-
if (
|
|
745
|
-
if (modelValue.includes(option)) {
|
|
748
|
+
if (multiple.value) {
|
|
749
|
+
if (modelValue && Array.isArray(modelValue) && modelValue.includes(option)) {
|
|
746
750
|
deselect(option);
|
|
747
751
|
} else {
|
|
748
|
-
proxyModelValue.value = [...modelValue, option];
|
|
752
|
+
proxyModelValue.value = [...castToMultipleValue(modelValue), option];
|
|
749
753
|
}
|
|
750
754
|
} else {
|
|
751
755
|
proxyModelValue.value = option;
|
|
@@ -872,7 +876,17 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
872
876
|
"enable-search": _ctx.enableSearch,
|
|
873
877
|
"is-open": _ctx.popoverState === 'open',
|
|
874
878
|
onReset: _ctx.deselect
|
|
875
|
-
},
|
|
879
|
+
}, {
|
|
880
|
+
tag: withCtx(_ref => {
|
|
881
|
+
let {
|
|
882
|
+
item
|
|
883
|
+
} = _ref;
|
|
884
|
+
return [renderSlot(_ctx.$slots, "tag", {
|
|
885
|
+
item: item
|
|
886
|
+
})];
|
|
887
|
+
}),
|
|
888
|
+
_: 3 /* FORWARDED */
|
|
889
|
+
}, 8 /* PROPS */, ["modelValue", "model", "options", "overflow", "placeholder", "readonly", "disabled", "enable-search", "is-open", "onReset"])) : (openBlock(), createBlock(_component_OrSelectSingleControl, {
|
|
876
890
|
key: 1,
|
|
877
891
|
ref: "singleControl",
|
|
878
892
|
modelValue: _ctx.searchText,
|
|
@@ -1040,4 +1054,4 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1040
1054
|
script.render = render;
|
|
1041
1055
|
script.__file = "src/components/or-select-v3/OrSelect.vue";
|
|
1042
1056
|
|
|
1043
|
-
export { Select as S, SelectControl as a, SelectSearchControl as b,
|
|
1057
|
+
export { Select as S, SelectControl as a, SelectSearchControl as b, castToMultipleValue as c, SelectDropdown as d, SelectDropdownDefault as e, SelectDropdownFlipped as f, SelectDropdownItem as g, SelectNoSearchResults as h, script as s };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { s as default } from '../OrTagInputV3-
|
|
1
|
+
export { s as default } from '../OrTagInputV3-701195d9.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,2 +1,2 @@
|
|
|
1
|
-
export { s as OrTagInputV3 } from '../OrTagInputV3-
|
|
1
|
+
export { s as OrTagInputV3 } from '../OrTagInputV3-701195d9.js';
|
|
2
2
|
export { I as TagInputSize } from '../OrInputBoxV3-90e51950.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { T as TagInput, a as TagInputControl, b as TagInputItem } from '../OrTagInputV3-
|
|
1
|
+
export { T as TagInput, a as TagInputControl, b as TagInputItem } from '../OrTagInputV3-701195d9.js';
|
|
@@ -7,7 +7,7 @@ import { s as script$1 } from './OrErrorV3-19502b8d.js';
|
|
|
7
7
|
import { s as script$2 } from './OrHintV3-25a3be82.js';
|
|
8
8
|
import { s as script$3 } from './OrIconButtonV3-c243936a.js';
|
|
9
9
|
import { s as script$5 } from './OrLabelV3-44afce27.js';
|
|
10
|
-
import { s as script$6, T as TagsOverflow } from './OrTagsV3-
|
|
10
|
+
import { s as script$6, T as TagsOverflow } from './OrTagsV3-69f51def.js';
|
|
11
11
|
import { T as TagColor } from './OrTagV3-b3d78269.js';
|
|
12
12
|
import { useIdAttribute } from '../hooks/useIdAttribute.js';
|
|
13
13
|
import { useControlAttributes } from '../hooks/useControlAttributes.js';
|
|
@@ -283,6 +283,15 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
283
283
|
overflow: _ctx.overflow,
|
|
284
284
|
onReset: _cache[5] || (_cache[5] = $event => _ctx.remove($event))
|
|
285
285
|
}, createSlots({
|
|
286
|
+
tag: withCtx(_ref => {
|
|
287
|
+
let {
|
|
288
|
+
item
|
|
289
|
+
} = _ref;
|
|
290
|
+
return [renderSlot(_ctx.$slots, "tag", {
|
|
291
|
+
item: item
|
|
292
|
+
}, () => [createTextVNode(toDisplayString(item.label), 1 /* TEXT */)])];
|
|
293
|
+
}),
|
|
294
|
+
|
|
286
295
|
_: 2 /* DYNAMIC */
|
|
287
296
|
}, [_ctx.showControl ? {
|
|
288
297
|
name: "tail",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { s as default } from '../OrTagsV3-
|
|
1
|
+
export { s as default } from '../OrTagsV3-69f51def.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { s as OrTagsV3, T as TagsOverflow } from '../OrTagsV3-
|
|
1
|
+
export { s as OrTagsV3, T as TagsOverflow } from '../OrTagsV3-69f51def.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { T as TagsOverflow } from '../OrTagsV3-
|
|
1
|
+
export { T as TagsOverflow } from '../OrTagsV3-69f51def.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { a as Tags, b as TagsContainer, c as TagsContainerOverflows, d as TagsOverflowButton, e as TagsOverflowPopover } from '../OrTagsV3-
|
|
1
|
+
export { a as Tags, b as TagsContainer, c as TagsContainerOverflows, d as TagsOverflowButton, e as TagsOverflowPopover } from '../OrTagsV3-69f51def.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { f as castToTagObject } from '../../OrTagsV3-
|
|
1
|
+
export { f as castToTagObject } from '../../OrTagsV3-69f51def.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { resolveComponent, openBlock, createElementBlock, normalizeClass, Fragment, renderList, createBlock, mergeProps, withCtx, createTextVNode, toDisplayString,
|
|
1
|
+
import { resolveComponent, openBlock, createElementBlock, normalizeClass, Fragment, renderList, createBlock, mergeProps, withCtx, renderSlot, createTextVNode, toDisplayString, createCommentVNode, createVNode, withModifiers, createElementVNode } from 'vue';
|
|
2
2
|
import { defineComponent, ref, toRefs, computed, nextTick } from 'vue-demi';
|
|
3
3
|
import { s as script$1 } from './OrButtonV3-cce9b2ba.js';
|
|
4
4
|
import { s as script$2 } from './OrPopoverV3-5010d168.js';
|
|
@@ -191,7 +191,9 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
191
191
|
class: ['max-w-full'],
|
|
192
192
|
onReset: $event => _ctx.$emit('reset', item.value)
|
|
193
193
|
}), {
|
|
194
|
-
default: withCtx(() => [
|
|
194
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "tag", {
|
|
195
|
+
item: item
|
|
196
|
+
}, () => [createTextVNode(toDisplayString(item.label), 1 /* TEXT */)])]),
|
|
195
197
|
|
|
196
198
|
_: 2 /* DYNAMIC */
|
|
197
199
|
}, 1040 /* FULL_PROPS, DYNAMIC_SLOTS */, ["onReset"]);
|
|
@@ -227,13 +229,15 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
227
229
|
key: item.value,
|
|
228
230
|
onReset: $event => _ctx.$emit('reset', item.value)
|
|
229
231
|
}), {
|
|
230
|
-
default: withCtx(() => [
|
|
232
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "tag", {
|
|
233
|
+
item: item
|
|
234
|
+
}, () => [createTextVNode(toDisplayString(item.label), 1 /* TEXT */)])]),
|
|
231
235
|
|
|
232
236
|
_: 2 /* DYNAMIC */
|
|
233
237
|
}, 1040 /* FULL_PROPS, DYNAMIC_SLOTS */, ["onReset"]);
|
|
234
238
|
}), 128 /* KEYED_FRAGMENT */))], 2 /* CLASS */)]),
|
|
235
239
|
|
|
236
|
-
_:
|
|
240
|
+
_: 3 /* FORWARDED */
|
|
237
241
|
}, 8 /* PROPS */, ["class", "custom-styles", "trigger"])], 64 /* STABLE_FRAGMENT */)) : createCommentVNode("v-if", true), _ctx.localOverflow != 'wrap' || _ctx.items.length === 0 ? renderSlot(_ctx.$slots, "tail", {
|
|
238
242
|
key: 2
|
|
239
243
|
}) : createCommentVNode("v-if", true)], 2 /* CLASS */);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { O as OR_AVATAR_SIZE, a as OrAvatar } from './OrAvatar-467fe574.js';
|
|
2
|
-
export { a as AvatarColor, A as AvatarSize, s as OrAvatarV3 } from './OrAvatarV3-
|
|
2
|
+
export { a as AvatarColor, A as AvatarSize, s as OrAvatarV3 } from './OrAvatarV3-700dd5ab.js';
|
|
3
3
|
export { B as BottomSheetVariant, s as OrBottomSheetV3 } from './OrBottomSheetV3-83beaa38.js';
|
|
4
4
|
export { OrButton, OrButtonColors, OrButtonSizes, OrButtonViews } from './OrButton/index.js';
|
|
5
5
|
export { s as OrButtonGroupV3 } from './OrButtonGroupV3-c6b2f2a6.js';
|
|
@@ -86,7 +86,7 @@ export { default as OrSearch } from './OrSearch/OrSearch.js';
|
|
|
86
86
|
export { OrSearchV3 } from './OrSearchV3/index.js';
|
|
87
87
|
export { s as OrSegmentedControlV3, S as SegmentedControlSize } from './OrSegmentedControlV3-d7578374.js';
|
|
88
88
|
export { s as OrSelect } from './OrSelect-eb515d23.js';
|
|
89
|
-
export { s as OrSelectV3 } from './OrSelectV3-
|
|
89
|
+
export { s as OrSelectV3 } from './OrSelectV3-ef8b82f7.js';
|
|
90
90
|
export { OrSidebar, OrSidebarSide } from './OrSidebar/index.js';
|
|
91
91
|
export { S as OrSidebarPlacement, s as OrSidebarV3, S as SidebarPlacement } from './OrSidebarV3-4f866148.js';
|
|
92
92
|
export { s as OrSkeletonCircle, a as OrSkeletonRect, b as OrSkeletonText, O as OrSkeletonTextSizes } from './OrSkeleton-d2c6d5e5.js';
|
|
@@ -103,9 +103,9 @@ export { s as OrTabV3 } from './OrTabV3-9dbd8ad9.js';
|
|
|
103
103
|
export { default as OrTabs } from './OrTabs/OrTabs.js';
|
|
104
104
|
export { s as OrTabsV3, T as TabsVariant } from './OrTabsV3-410ce4e3.js';
|
|
105
105
|
export { default as OrTag } from './OrTag/OrTag.js';
|
|
106
|
-
export { s as OrTagInputV3 } from './OrTagInputV3-
|
|
106
|
+
export { s as OrTagInputV3 } from './OrTagInputV3-701195d9.js';
|
|
107
107
|
export { s as OrTagV3, T as TagColor, a as TagVariant } from './OrTagV3-b3d78269.js';
|
|
108
|
-
export { s as OrTagsV3, T as TagsOverflow } from './OrTagsV3-
|
|
108
|
+
export { s as OrTagsV3, T as TagsOverflow } from './OrTagsV3-69f51def.js';
|
|
109
109
|
export { s as OrTeleport } from './OrTeleport-5a34b07f.js';
|
|
110
110
|
export { default as OrTeleportV3 } from './OrTeleportV3/OrTeleport.js';
|
|
111
111
|
export { s as OrTextV3 } from './OrTextV3-ff806d55.js';
|
package/dist/bundled/v3/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { s as styleInject } from './components/OrAvatar-467fe574.js';
|
|
2
2
|
export { O as OR_AVATAR_SIZE, a as OrAvatar } from './components/OrAvatar-467fe574.js';
|
|
3
|
-
export { a as AvatarColor, A as AvatarSize, s as OrAvatarV3 } from './components/OrAvatarV3-
|
|
3
|
+
export { a as AvatarColor, A as AvatarSize, s as OrAvatarV3 } from './components/OrAvatarV3-700dd5ab.js';
|
|
4
4
|
export { OrButton, OrButtonColors, OrButtonSizes, OrButtonViews } from './components/OrButton/index.js';
|
|
5
5
|
export { s as OrButtonGroupV3 } from './components/OrButtonGroupV3-c6b2f2a6.js';
|
|
6
6
|
export { CARD_COLLECTION_LAYOUT, OrCardCollection } from './components/OrCardCollection/index.js';
|
|
@@ -46,7 +46,7 @@ export { s as OrRatingV3 } from './components/OrRatingV3-b6b47938.js';
|
|
|
46
46
|
export { F as Formats, s as OrRichTextEditorV3 } from './components/OrRichTextEditorV3-ae8f39d3.js';
|
|
47
47
|
export { s as OrSegmentedControlV3, S as SegmentedControlSize } from './components/OrSegmentedControlV3-d7578374.js';
|
|
48
48
|
export { s as OrSelect } from './components/OrSelect-eb515d23.js';
|
|
49
|
-
export { s as OrSelectV3 } from './components/OrSelectV3-
|
|
49
|
+
export { s as OrSelectV3 } from './components/OrSelectV3-ef8b82f7.js';
|
|
50
50
|
export { OrSidebar, OrSidebarSide } from './components/OrSidebar/index.js';
|
|
51
51
|
export { S as OrSidebarPlacement, s as OrSidebarV3, S as SidebarPlacement } from './components/OrSidebarV3-4f866148.js';
|
|
52
52
|
export { s as OrSkeletonCircle, a as OrSkeletonRect, b as OrSkeletonText, O as OrSkeletonTextSizes } from './components/OrSkeleton-d2c6d5e5.js';
|
|
@@ -61,7 +61,7 @@ export { default as OrTab } from './components/OrTab/OrTab.js';
|
|
|
61
61
|
export { default as OrTabs } from './components/OrTabs/OrTabs.js';
|
|
62
62
|
export { s as OrTabsV3, T as TabsVariant } from './components/OrTabsV3-410ce4e3.js';
|
|
63
63
|
export { default as OrTag } from './components/OrTag/OrTag.js';
|
|
64
|
-
export { s as OrTagInputV3 } from './components/OrTagInputV3-
|
|
64
|
+
export { s as OrTagInputV3 } from './components/OrTagInputV3-701195d9.js';
|
|
65
65
|
export { s as OrTextV3 } from './components/OrTextV3-ff806d55.js';
|
|
66
66
|
export { default as OrTextarea } from './components/OrTextarea/OrTextarea.js';
|
|
67
67
|
export { s as OrTextareaV3 } from './components/OrTextareaV3-c8ff3638.js';
|
|
@@ -116,7 +116,7 @@ export { s as OrSortingV3 } from './components/OrSortingV3-1e709185.js';
|
|
|
116
116
|
export { default as OrTabHeaderItem } from './components/OrTabHeaderItem/OrTabHeaderItem.js';
|
|
117
117
|
export { s as OrTabV3 } from './components/OrTabV3-9dbd8ad9.js';
|
|
118
118
|
export { s as OrTagV3, T as TagColor, a as TagVariant } from './components/OrTagV3-b3d78269.js';
|
|
119
|
-
export { s as OrTagsV3, T as TagsOverflow } from './components/OrTagsV3-
|
|
119
|
+
export { s as OrTagsV3, T as TagsOverflow } from './components/OrTagsV3-69f51def.js';
|
|
120
120
|
export { s as OrTeleport } from './components/OrTeleport-5a34b07f.js';
|
|
121
121
|
export { default as OrTeleportV3 } from './components/OrTeleportV3/OrTeleport.js';
|
|
122
122
|
export { OrTooltip, OrTooltipContent } from './components/OrTooltip/index.js';
|
|
@@ -137,7 +137,7 @@ export { HSL_LIMITS } from './utils/constants/color.js';
|
|
|
137
137
|
export { CODE_BACKSPACE, CODE_BREAK, CODE_DELETE, CODE_DOWN, CODE_END, CODE_ENTER, CODE_ESC, CODE_HOME, CODE_LEFT, CODE_PAGEDOWN, CODE_PAGEUP, CODE_RIGHT, CODE_SPACE, CODE_UP } from './utils/constants/key-codes.js';
|
|
138
138
|
export { PLACEMENT_BOTTOM_END, PLACEMENT_BOTTOM_START, PLACEMENT_LEFT_END, PLACEMENT_LEFT_START, PLACEMENT_RIGHT_END, PLACEMENT_RIGHT_START, PLACEMENT_TOP_END, PLACEMENT_TOP_START } from './utils/constants/poper.js';
|
|
139
139
|
export { RX_ABBREVIATION_FROM_STRING, RX_ARRAY_NOTATION, RX_BV_PREFIX, RX_DATE, RX_DATE_SPLIT, RX_DIGITS, RX_ENCODED_COMMA, RX_ENCODE_REVERSE, RX_EXTENSION, RX_HASH, RX_HASH_ID, RX_HREF, RX_HTML_TAGS, RX_HYPHENATE, RX_LONG_COLOR, RX_LOWER_UPPER, RX_NUMBER, RX_PLUS, RX_QUERY_START, RX_REGEXP_REPLACE, RX_SHORT_COLOR, RX_SPACES, RX_SPACE_SPLIT, RX_STAR, RX_START_SPACE_WORD, RX_TIME, RX_TRIM_LEFT, RX_TRIM_RIGHT, RX_UNDERSCORE, RX_UN_KEBAB } from './utils/constants/regex.js';
|
|
140
|
-
export { generateHslFromString, hexToRgb, hslToColorString, rgbToHex } from './utils/functions/color.js';
|
|
140
|
+
export { generateColorFromString, generateHslFromString, hexToRgb, hslToColorString, rgbToHex } from './utils/functions/color.js';
|
|
141
141
|
export { MutationObs, addClass, cancelAF, contains, getAttr, getBCR, getById, getCS, getMaxZIndex, getStyle, hasAttr, hasClass, isVisible, offset, position, reflow, removeAttr, removeClass, removeNode, removeStyle, requestAF, select, selectAll, setAttr, setStyle } from './utils/functions/dom.js';
|
|
142
142
|
export { getHashOfString, normalize } from './utils/functions/hash.js';
|
|
143
143
|
export { pxToRem } from './utils/functions/px-to-rem.js';
|
|
@@ -36,5 +36,9 @@ function generateHslFromString(str) {
|
|
|
36
36
|
function hslToColorString(hsl) {
|
|
37
37
|
return `hsl(${hsl.h}, ${hsl.s}%, ${hsl.l}%)`;
|
|
38
38
|
}
|
|
39
|
+
function generateColorFromString(str) {
|
|
40
|
+
let limits = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : HSL_LIMITS;
|
|
41
|
+
return hslToColorString(generateHslFromString(str, limits));
|
|
42
|
+
}
|
|
39
43
|
|
|
40
|
-
export { generateHslFromString, hexToRgb, hslToColorString, rgbToHex };
|
|
44
|
+
export { generateColorFromString, generateHslFromString, hexToRgb, hslToColorString, rgbToHex };
|
|
@@ -2,7 +2,7 @@ export { HSL_LIMITS } from './constants/color.js';
|
|
|
2
2
|
export { CODE_BACKSPACE, CODE_BREAK, CODE_DELETE, CODE_DOWN, CODE_END, CODE_ENTER, CODE_ESC, CODE_HOME, CODE_LEFT, CODE_PAGEDOWN, CODE_PAGEUP, CODE_RIGHT, CODE_SPACE, CODE_UP } from './constants/key-codes.js';
|
|
3
3
|
export { PLACEMENT_BOTTOM_END, PLACEMENT_BOTTOM_START, PLACEMENT_LEFT_END, PLACEMENT_LEFT_START, PLACEMENT_RIGHT_END, PLACEMENT_RIGHT_START, PLACEMENT_TOP_END, PLACEMENT_TOP_START } from './constants/poper.js';
|
|
4
4
|
export { RX_ABBREVIATION_FROM_STRING, RX_ARRAY_NOTATION, RX_BV_PREFIX, RX_DATE, RX_DATE_SPLIT, RX_DIGITS, RX_ENCODED_COMMA, RX_ENCODE_REVERSE, RX_EXTENSION, RX_HASH, RX_HASH_ID, RX_HREF, RX_HTML_TAGS, RX_HYPHENATE, RX_LONG_COLOR, RX_LOWER_UPPER, RX_NUMBER, RX_PLUS, RX_QUERY_START, RX_REGEXP_REPLACE, RX_SHORT_COLOR, RX_SPACES, RX_SPACE_SPLIT, RX_STAR, RX_START_SPACE_WORD, RX_TIME, RX_TRIM_LEFT, RX_TRIM_RIGHT, RX_UNDERSCORE, RX_UN_KEBAB } from './constants/regex.js';
|
|
5
|
-
export { generateHslFromString, hexToRgb, hslToColorString, rgbToHex } from './functions/color.js';
|
|
5
|
+
export { generateColorFromString, generateHslFromString, hexToRgb, hslToColorString, rgbToHex } from './functions/color.js';
|
|
6
6
|
export { MutationObs, addClass, cancelAF, contains, getAttr, getBCR, getById, getCS, getMaxZIndex, getStyle, hasAttr, hasClass, isVisible, offset, position, reflow, removeAttr, removeClass, removeNode, removeStyle, requestAF, select, selectAll, setAttr, setStyle } from './functions/dom.js';
|
|
7
7
|
export { getHashOfString, normalize } from './functions/hash.js';
|
|
8
8
|
export { pxToRem } from './functions/px-to-rem.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, ref, computed } from 'vue-demi';
|
|
2
|
-
import { G as hslToColorString, F as generateHslFromString } from './color-
|
|
2
|
+
import { G as hslToColorString, F as generateHslFromString } from './color-911f1122.js';
|
|
3
3
|
import { _ as __vue_component__$1 } from './OrIcon-3f99ef27.js';
|
|
4
4
|
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
5
5
|
|