@onereach/ui-components 21.1.0-beta.5337.0 → 21.1.1
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/esm/components/index.js +1 -2
- package/dist/esm/components/or-data-grid-v3/index.js +1 -1
- package/dist/esm/components/or-date-format-v3/index.js +1 -1
- package/dist/esm/components/or-date-picker-v3/index.js +1 -1
- package/dist/esm/components/or-date-range-picker-v3/index.js +1 -1
- package/dist/esm/components/or-date-time-format-v3/index.js +1 -1
- package/dist/esm/components/or-date-time-picker-v3/index.js +1 -1
- package/dist/esm/components/or-modal-v3/index.js +10 -6
- package/dist/esm/components/or-modal-v3/partials/or-modal-header/OrModalHeader.vue.d.ts +1 -0
- package/dist/esm/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +0 -11
- package/dist/esm/components/or-rich-text-editor-v3/index.js +9 -25
- package/dist/esm/components/or-select-v3/OrSelect.vue.d.ts +1 -0
- package/dist/esm/components/or-select-v3/index.js +6 -2
- package/dist/esm/components/or-time-format-v3/index.js +1 -1
- package/dist/esm/components/or-time-picker-v3/index.js +1 -1
- package/dist/esm/components/or-time-range-picker-v3/index.js +1 -1
- package/dist/esm/index.js +1 -2
- package/package.json +5 -5
- package/dist/esm/components/{OrDateTimePickerV3-7c471714.js → OrDateTimePickerV3-7b24568c.js} +2 -2
|
@@ -23,7 +23,7 @@ export { OrDateFormatV3 } from './or-date-format-v3/index.js';
|
|
|
23
23
|
export { OrDatePickerV3 } from './or-date-picker-v3/index.js';
|
|
24
24
|
export { OrDateRangePickerV3 } from './or-date-range-picker-v3/index.js';
|
|
25
25
|
export { OrDateTimeFormatV3 } from './or-date-time-format-v3/index.js';
|
|
26
|
-
export { a as OrDateTimePickerDateControl, b as OrDateTimePickerDateSelect, c as OrDateTimePickerMobileControl, d as OrDateTimePickerMonthSelect, e as OrDateTimePickerPopoverFooter, g as OrDateTimePickerPopoverHeader, l as OrDateTimePickerTimeControl, m as OrDateTimePickerTimeSelect, s as OrDateTimePickerV3, f as formatDate, i as formatMobileDate, n as formatMobileTime, k as formatTime, h as getCurrentDate, j as getNextMonthDate, o as scrollToElementWithinContainer } from './OrDateTimePickerV3-
|
|
26
|
+
export { a as OrDateTimePickerDateControl, b as OrDateTimePickerDateSelect, c as OrDateTimePickerMobileControl, d as OrDateTimePickerMonthSelect, e as OrDateTimePickerPopoverFooter, g as OrDateTimePickerPopoverHeader, l as OrDateTimePickerTimeControl, m as OrDateTimePickerTimeSelect, s as OrDateTimePickerV3, f as formatDate, i as formatMobileDate, n as formatMobileTime, k as formatTime, h as getCurrentDate, j as getNextMonthDate, o as scrollToElementWithinContainer } from './OrDateTimePickerV3-7b24568c.js';
|
|
27
27
|
export { DrawerPlacement, OrDrawerV3 } from './or-drawer-v3/index.js';
|
|
28
28
|
export { DropAreaSize, OrDropAreaV3, approximateFileSize } from './or-drop-area-v3/index.js';
|
|
29
29
|
export { E as EditorTabsOverflow, s as OrEditorTabsV3 } from './OrEditorTabsV3-cbe58a9e.js';
|
|
@@ -109,7 +109,6 @@ import '@tiptap/extension-ordered-list';
|
|
|
109
109
|
import '@tiptap/extension-paragraph';
|
|
110
110
|
import '@tiptap/extension-placeholder';
|
|
111
111
|
import '@tiptap/extension-underline';
|
|
112
|
-
import '@tiptap/extension-character-count';
|
|
113
112
|
import '@tiptap/starter-kit';
|
|
114
113
|
import '@vueuse/integrations/useFocusTrap';
|
|
115
114
|
import 'prosemirror-state';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, openBlock, createElementBlock, normalizeClass, renderSlot, createCommentVNode, resolveComponent, normalizeStyle, Fragment, createBlock, watch, createElementVNode, createVNode, mergeProps, withCtx, createSlots, normalizeProps, guardReactiveProps, renderList, createTextVNode, toDisplayString } from 'vue';
|
|
2
2
|
import { OrCheckboxV3 as script$h } from '../or-checkbox-v3/index.js';
|
|
3
3
|
import { OrDatePickerV3 as script$i } from '../or-date-picker-v3/index.js';
|
|
4
|
-
import { s as script$j } from '../OrDateTimePickerV3-
|
|
4
|
+
import { s as script$j } from '../OrDateTimePickerV3-7b24568c.js';
|
|
5
5
|
import { OrInputV3 as script$k } from '../or-input-v3/index.js';
|
|
6
6
|
import { OrRatingV3 as script$l } from '../or-rating-v3/index.js';
|
|
7
7
|
import { OrSelectV3 as script$m } from '../or-select-v3/index.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, toRef, openBlock, createElementBlock, normalizeClass, Fragment, createTextVNode, toDisplayString } from 'vue';
|
|
2
2
|
import { G, e as X } from '../OrAutocompleteV3-961163d0.js';
|
|
3
|
-
import { f as formatDate } from '../OrDateTimePickerV3-
|
|
3
|
+
import { f as formatDate } from '../OrDateTimePickerV3-7b24568c.js';
|
|
4
4
|
import '@vueuse/core';
|
|
5
5
|
import '@onereach/styles/screens.json';
|
|
6
6
|
import '@onereach/styles/tailwind.config.json';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, toRef, watch, resolveComponent, resolveDirective, openBlock, createElementBlock, normalizeClass, createBlock, withCtx, renderSlot, createTextVNode, toDisplayString, createCommentVNode, withDirectives, withModifiers, createVNode, vShow, createElementVNode } from 'vue';
|
|
2
2
|
import { s, f as c, G, e as X, r as re } from '../OrAutocompleteV3-961163d0.js';
|
|
3
|
-
import { a as script$1, b as script$2, c as script$3, d as script$4, e as script$5, g as script$6, h as getCurrentDate, i as formatMobileDate } from '../OrDateTimePickerV3-
|
|
3
|
+
import { a as script$1, b as script$2, c as script$3, d as script$4, e as script$5, g as script$6, h as getCurrentDate, i as formatMobileDate } from '../OrDateTimePickerV3-7b24568c.js';
|
|
4
4
|
import { OrErrorV3 as script$7 } from '../or-error-v3/index.js';
|
|
5
5
|
import { OrHintV3 as script$8 } from '../or-hint-v3/index.js';
|
|
6
6
|
import { OrIconV3 as script$9 } from '../or-icon-v3/index.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, toRef, watch, resolveComponent, resolveDirective, openBlock, createElementBlock, normalizeClass, createBlock, withCtx, renderSlot, createTextVNode, toDisplayString, createCommentVNode, withDirectives, withModifiers, createVNode, createElementVNode, vShow } from 'vue';
|
|
2
2
|
import { s, f as c, G, e as X, r as re, n as ne } from '../OrAutocompleteV3-961163d0.js';
|
|
3
|
-
import { a as script$1, b as script$2, c as script$3, d as script$4, e as script$5, g as script$6, h as getCurrentDate, j as getNextMonthDate, i as formatMobileDate } from '../OrDateTimePickerV3-
|
|
3
|
+
import { a as script$1, b as script$2, c as script$3, d as script$4, e as script$5, g as script$6, h as getCurrentDate, j as getNextMonthDate, i as formatMobileDate } from '../OrDateTimePickerV3-7b24568c.js';
|
|
4
4
|
import { OrErrorV3 as script$7 } from '../or-error-v3/index.js';
|
|
5
5
|
import { OrHintV3 as script$8 } from '../or-hint-v3/index.js';
|
|
6
6
|
import { OrIconV3 as script$9 } from '../or-icon-v3/index.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, toRef, openBlock, createElementBlock, normalizeClass, Fragment, createTextVNode, toDisplayString } from 'vue';
|
|
2
2
|
import { G, g as se, e as X } from '../OrAutocompleteV3-961163d0.js';
|
|
3
|
-
import { f as formatDate, k as formatTime } from '../OrDateTimePickerV3-
|
|
3
|
+
import { f as formatDate, k as formatTime } from '../OrDateTimePickerV3-7b24568c.js';
|
|
4
4
|
import '@vueuse/core';
|
|
5
5
|
import '@onereach/styles/screens.json';
|
|
6
6
|
import '@onereach/styles/tailwind.config.json';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { a as OrDateTimePickerDateControl, b as OrDateTimePickerDateSelect, c as OrDateTimePickerMobileControl, d as OrDateTimePickerMonthSelect, e as OrDateTimePickerPopoverFooter, g as OrDateTimePickerPopoverHeader, l as OrDateTimePickerTimeControl, m as OrDateTimePickerTimeSelect, s as OrDateTimePickerV3, f as formatDate, i as formatMobileDate, n as formatMobileTime, k as formatTime, h as getCurrentDate, j as getNextMonthDate, o as scrollToElementWithinContainer } from '../OrDateTimePickerV3-
|
|
1
|
+
export { a as OrDateTimePickerDateControl, b as OrDateTimePickerDateSelect, c as OrDateTimePickerMobileControl, d as OrDateTimePickerMonthSelect, e as OrDateTimePickerPopoverFooter, g as OrDateTimePickerPopoverHeader, l as OrDateTimePickerTimeControl, m as OrDateTimePickerTimeSelect, s as OrDateTimePickerV3, f as formatDate, i as formatMobileDate, n as formatMobileTime, k as formatTime, h as getCurrentDate, j as getNextMonthDate, o as scrollToElementWithinContainer } from '../OrDateTimePickerV3-7b24568c.js';
|
|
2
2
|
import 'vue';
|
|
3
3
|
import '../OrAutocompleteV3-961163d0.js';
|
|
4
4
|
import '@vueuse/core';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import { n as ne, t as te } from '../OrAutocompleteV3-961163d0.js';
|
|
1
2
|
import { defineComponent, ref, computed, openBlock, createElementBlock, normalizeClass, renderSlot, resolveComponent, createElementVNode, createVNode, withModifiers, toRef, createBlock, withCtx, mergeProps, createCommentVNode } from 'vue';
|
|
2
|
-
import { t as te } from '../OrAutocompleteV3-961163d0.js';
|
|
3
|
-
import { OrIconButtonV3 as script$4 } from '../or-icon-button-v3/index.js';
|
|
4
|
-
import { OrOverlayV3 as script$5 } from '../or-overlay-v3/index.js';
|
|
5
3
|
import '@vueuse/core';
|
|
6
4
|
import '@onereach/styles/screens.json';
|
|
7
5
|
import '@onereach/styles/tailwind.config.json';
|
|
6
|
+
import { OrIconButtonV3 as script$4 } from '../or-icon-button-v3/index.js';
|
|
7
|
+
import { OrOverlayV3 as script$5 } from '../or-overlay-v3/index.js';
|
|
8
8
|
import '../or-error-v3/index.js';
|
|
9
9
|
import '../or-hint-v3/index.js';
|
|
10
10
|
import '../or-input-box-v3/index.js';
|
|
@@ -104,11 +104,15 @@ var script$1 = defineComponent({
|
|
|
104
104
|
setup() {
|
|
105
105
|
// Refs
|
|
106
106
|
const root = ref();
|
|
107
|
+
const {
|
|
108
|
+
isMobile
|
|
109
|
+
} = ne();
|
|
107
110
|
// Styles
|
|
108
111
|
const rootStyles = computed(() => ['or-modal-header', ...ModalHeader]);
|
|
109
112
|
return {
|
|
110
113
|
root,
|
|
111
|
-
rootStyles
|
|
114
|
+
rootStyles,
|
|
115
|
+
isMobile
|
|
112
116
|
};
|
|
113
117
|
}
|
|
114
118
|
});
|
|
@@ -123,9 +127,9 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
123
127
|
class: normalizeClass(_ctx.rootStyles)
|
|
124
128
|
}, [createElementVNode("div", _hoisted_1, [renderSlot(_ctx.$slots, "default")]), createVNode(_component_OrIconButton, {
|
|
125
129
|
icon: 'close',
|
|
126
|
-
size: 'l',
|
|
130
|
+
size: _ctx.isMobile ? 'l' : 'xl',
|
|
127
131
|
onClick: _cache[0] || (_cache[0] = withModifiers($event => _ctx.$emit('close'), ["stop"]))
|
|
128
|
-
})], 2 /* CLASS */);
|
|
132
|
+
}, null, 8 /* PROPS */, ["size"])], 2 /* CLASS */);
|
|
129
133
|
}
|
|
130
134
|
|
|
131
135
|
script$1.render = render$1;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{}, {
|
|
2
2
|
root: import("vue").Ref<HTMLElement | undefined>;
|
|
3
3
|
rootStyles: import("vue").ComputedRef<string[]>;
|
|
4
|
+
isMobile: import("vue").ComputedRef<boolean>;
|
|
4
5
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "close"[], "close", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
|
|
5
6
|
onClose?: ((...args: any[]) => any) | undefined;
|
|
6
7
|
}, {}, {}>;
|
|
@@ -43,11 +43,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
43
43
|
type: BooleanConstructor;
|
|
44
44
|
default: boolean;
|
|
45
45
|
};
|
|
46
|
-
maxLength: {
|
|
47
|
-
type: NumberConstructor;
|
|
48
|
-
required: false;
|
|
49
|
-
default: undefined;
|
|
50
|
-
};
|
|
51
46
|
}, {
|
|
52
47
|
root: import("vue").Ref<HTMLElement | undefined>;
|
|
53
48
|
rootStyles: import("vue").ComputedRef<string[]>;
|
|
@@ -128,11 +123,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
128
123
|
type: BooleanConstructor;
|
|
129
124
|
default: boolean;
|
|
130
125
|
};
|
|
131
|
-
maxLength: {
|
|
132
|
-
type: NumberConstructor;
|
|
133
|
-
required: false;
|
|
134
|
-
default: undefined;
|
|
135
|
-
};
|
|
136
126
|
}>> & {
|
|
137
127
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
138
128
|
onInput?: ((...args: any[]) => any) | undefined;
|
|
@@ -150,6 +140,5 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
150
140
|
error: string | boolean;
|
|
151
141
|
required: boolean;
|
|
152
142
|
disabled: boolean;
|
|
153
|
-
maxLength: number;
|
|
154
143
|
}, {}>;
|
|
155
144
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, shallowRef, ref, onMounted, onBeforeUnmount, computed, watch, nextTick, resolveComponent, openBlock, createElementBlock, normalizeClass, createBlock, withCtx, renderSlot, createTextVNode, toDisplayString, createCommentVNode, createVNode, createElementVNode, Fragment, renderList, withDirectives, vShow, vModelText
|
|
1
|
+
import { defineComponent, shallowRef, ref, onMounted, onBeforeUnmount, computed, watch, nextTick, resolveComponent, openBlock, createElementBlock, normalizeClass, createBlock, withCtx, renderSlot, createTextVNode, toDisplayString, createCommentVNode, createVNode, createElementVNode, Fragment, renderList, withDirectives, vShow, vModelText } from 'vue';
|
|
2
2
|
import { s as styleInject } from '../OrInlineInputV3-4e69972f.js';
|
|
3
3
|
import { Node, Editor, mergeAttributes } from '@tiptap/core';
|
|
4
4
|
import Blockquote from '@tiptap/extension-blockquote';
|
|
@@ -10,7 +10,6 @@ import OrderedList from '@tiptap/extension-ordered-list';
|
|
|
10
10
|
import Paragraph from '@tiptap/extension-paragraph';
|
|
11
11
|
import Placeholder from '@tiptap/extension-placeholder';
|
|
12
12
|
import Underline from '@tiptap/extension-underline';
|
|
13
|
-
import CharacterCount from '@tiptap/extension-character-count';
|
|
14
13
|
import StarterKit from '@tiptap/starter-kit';
|
|
15
14
|
import { useResizeObserver, useDebounceFn, onClickOutside } from '@vueuse/core';
|
|
16
15
|
import { useFocusTrap } from '@vueuse/integrations/useFocusTrap';
|
|
@@ -644,11 +643,6 @@ var script = defineComponent({
|
|
|
644
643
|
disabled: {
|
|
645
644
|
type: Boolean,
|
|
646
645
|
default: false
|
|
647
|
-
},
|
|
648
|
-
maxLength: {
|
|
649
|
-
type: Number,
|
|
650
|
-
required: false,
|
|
651
|
-
default: undefined
|
|
652
646
|
}
|
|
653
647
|
},
|
|
654
648
|
emits: ['update:modelValue', 'input', 'file-upload', 'focus', 'blur'],
|
|
@@ -767,8 +761,6 @@ var script = defineComponent({
|
|
|
767
761
|
HTMLAttributes: {
|
|
768
762
|
class: 'my-sm mx-lg px-lg border-l-2 border-outline'
|
|
769
763
|
}
|
|
770
|
-
}), CharacterCount.configure({
|
|
771
|
-
limit: props.maxLength
|
|
772
764
|
}), Heading.configure({
|
|
773
765
|
levels: headingLevels
|
|
774
766
|
}).extend({
|
|
@@ -1164,26 +1156,18 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1164
1156
|
class: normalizeClass(_ctx.controlStyles)
|
|
1165
1157
|
}, null, 2 /* CLASS */), [[vShow, !_ctx.disableMarkdown]]), renderSlot(_ctx.$slots, "files")])]),
|
|
1166
1158
|
_: 3 /* FORWARDED */
|
|
1167
|
-
}, 8 /* PROPS */, ["invalid", "disabled"]), _ctx.$slots.hint || _ctx.hint
|
|
1159
|
+
}, 8 /* PROPS */, ["invalid", "disabled"]), _ctx.$slots.hint || _ctx.hint ? withDirectives((openBlock(), createBlock(_component_OrHint, {
|
|
1168
1160
|
key: 1,
|
|
1169
1161
|
disabled: _ctx.disabled
|
|
1170
|
-
},
|
|
1162
|
+
}, {
|
|
1171
1163
|
default: withCtx(() => [renderSlot(_ctx.$slots, "hint", {}, () => [createTextVNode(toDisplayString(_ctx.hint), 1 /* TEXT */)])]),
|
|
1172
|
-
_:
|
|
1173
|
-
}, [
|
|
1174
|
-
name: "addon",
|
|
1175
|
-
fn: withCtx(() => [createTextVNode(toDisplayString(_ctx.editor.storage.characterCount.characters()) + " / " + toDisplayString(_ctx.maxLength), 1 /* TEXT */)]),
|
|
1176
|
-
key: "0"
|
|
1177
|
-
} : undefined]), 1032 /* PROPS, DYNAMIC_SLOTS */, ["disabled"])), [[vShow, !_ctx.error]]) : createCommentVNode("v-if", true), withDirectives(createVNode(_component_OrError, {
|
|
1164
|
+
_: 3 /* FORWARDED */
|
|
1165
|
+
}, 8 /* PROPS */, ["disabled"])), [[vShow, !_ctx.error]]) : createCommentVNode("v-if", true), withDirectives(createVNode(_component_OrError, {
|
|
1178
1166
|
disabled: _ctx.disabled
|
|
1179
|
-
},
|
|
1180
|
-
default: withCtx(() => [createTextVNode(toDisplayString(_ctx.error)
|
|
1181
|
-
_:
|
|
1182
|
-
}, [_ctx.
|
|
1183
|
-
name: "addon",
|
|
1184
|
-
fn: withCtx(() => [createTextVNode(toDisplayString(_ctx.editor.storage.characterCount.characters()) + " / " + toDisplayString(_ctx.maxLength), 1 /* TEXT */)]),
|
|
1185
|
-
key: "0"
|
|
1186
|
-
} : undefined]), 1032 /* PROPS, DYNAMIC_SLOTS */, ["disabled"]), [[vShow, typeof _ctx.error === 'string' && _ctx.error.length > 0]]), _ctx.moreButtonRef ? (openBlock(), createBlock(_component_OrPopover, {
|
|
1167
|
+
}, {
|
|
1168
|
+
default: withCtx(() => [createTextVNode(toDisplayString(_ctx.error), 1 /* TEXT */)]),
|
|
1169
|
+
_: 1 /* STABLE */
|
|
1170
|
+
}, 8 /* PROPS */, ["disabled"]), [[vShow, typeof _ctx.error === 'string' && _ctx.error.length > 0]]), _ctx.moreButtonRef ? (openBlock(), createBlock(_component_OrPopover, {
|
|
1187
1171
|
key: 2,
|
|
1188
1172
|
ref: 'moreRef',
|
|
1189
1173
|
trigger: _ctx.moreButtonRef && _ctx.moreButtonRef.root,
|
|
@@ -126,6 +126,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
126
126
|
selectOption: (value: SelectItem['value']) => void;
|
|
127
127
|
deselectOption: (value: SelectItem['value']) => void;
|
|
128
128
|
toggleOption: (value: SelectItem['value']) => void;
|
|
129
|
+
resetSearch: () => void;
|
|
129
130
|
isDesktop: import("vue").ComputedRef<boolean>;
|
|
130
131
|
isMobile: import("vue").ComputedRef<boolean>;
|
|
131
132
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("search" | "update:modelValue" | "focus" | "blur")[], "search" | "update:modelValue" | "focus" | "blur", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -671,7 +671,7 @@ var script = defineComponent({
|
|
|
671
671
|
}
|
|
672
672
|
},
|
|
673
673
|
emits: ['update:modelValue', 'focus', 'blur', 'search'],
|
|
674
|
-
expose: ['root', 'open', 'close', 'toggle', 'toggleOption', 'popover', 'popoverState'],
|
|
674
|
+
expose: ['root', 'open', 'close', 'toggle', 'toggleOption', 'resetSearch', 'popover', 'popoverState'],
|
|
675
675
|
setup(props, context) {
|
|
676
676
|
var _a;
|
|
677
677
|
const currentInstance = getCurrentInstance();
|
|
@@ -808,7 +808,7 @@ var script = defineComponent({
|
|
|
808
808
|
} else {
|
|
809
809
|
proxyModelValue.value = value;
|
|
810
810
|
}
|
|
811
|
-
|
|
811
|
+
resetSearch();
|
|
812
812
|
}
|
|
813
813
|
function deselectOption(value) {
|
|
814
814
|
if (props.multiple) {
|
|
@@ -828,6 +828,9 @@ var script = defineComponent({
|
|
|
828
828
|
} else {
|
|
829
829
|
proxyModelValue.value = proxyModelValue.value !== value ? value : undefined;
|
|
830
830
|
}
|
|
831
|
+
resetSearch();
|
|
832
|
+
}
|
|
833
|
+
function resetSearch() {
|
|
831
834
|
searchText.value = '';
|
|
832
835
|
}
|
|
833
836
|
// Utils
|
|
@@ -869,6 +872,7 @@ var script = defineComponent({
|
|
|
869
872
|
selectOption,
|
|
870
873
|
deselectOption,
|
|
871
874
|
toggleOption,
|
|
875
|
+
resetSearch,
|
|
872
876
|
isDesktop,
|
|
873
877
|
isMobile
|
|
874
878
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, toRef, openBlock, createElementBlock, normalizeClass, Fragment, createTextVNode, toDisplayString } from 'vue';
|
|
2
2
|
import { g as se, e as X } from '../OrAutocompleteV3-961163d0.js';
|
|
3
|
-
import { k as formatTime } from '../OrDateTimePickerV3-
|
|
3
|
+
import { k as formatTime } from '../OrDateTimePickerV3-7b24568c.js';
|
|
4
4
|
import '@vueuse/core';
|
|
5
5
|
import '@onereach/styles/screens.json';
|
|
6
6
|
import '@onereach/styles/tailwind.config.json';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, toRef, watch, resolveComponent, resolveDirective, openBlock, createElementBlock, normalizeClass, createBlock, withCtx, renderSlot, createTextVNode, toDisplayString, createCommentVNode, withDirectives, withModifiers, createVNode, vShow, createElementVNode } from 'vue';
|
|
2
2
|
import { s, f as c, g as se, e as X, r as re } from '../OrAutocompleteV3-961163d0.js';
|
|
3
|
-
import { c as script$1, e as script$2, g as script$3, l as script$4, m as script$5, h as getCurrentDate, n as formatMobileTime } from '../OrDateTimePickerV3-
|
|
3
|
+
import { c as script$1, e as script$2, g as script$3, l as script$4, m as script$5, h as getCurrentDate, n as formatMobileTime } from '../OrDateTimePickerV3-7b24568c.js';
|
|
4
4
|
import { OrErrorV3 as script$6 } from '../or-error-v3/index.js';
|
|
5
5
|
import { OrHintV3 as script$7 } from '../or-hint-v3/index.js';
|
|
6
6
|
import { OrIconV3 as script$8 } from '../or-icon-v3/index.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, toRef, watch, resolveComponent, resolveDirective, openBlock, createElementBlock, normalizeClass, createBlock, withCtx, renderSlot, createTextVNode, toDisplayString, createCommentVNode, withDirectives, withModifiers, createVNode, createElementVNode, vShow } from 'vue';
|
|
2
2
|
import { s, f as c, g as se, e as X, r as re, n as ne } from '../OrAutocompleteV3-961163d0.js';
|
|
3
|
-
import { c as script$1, e as script$2, g as script$3, l as script$4, m as script$5, h as getCurrentDate, n as formatMobileTime } from '../OrDateTimePickerV3-
|
|
3
|
+
import { c as script$1, e as script$2, g as script$3, l as script$4, m as script$5, h as getCurrentDate, n as formatMobileTime } from '../OrDateTimePickerV3-7b24568c.js';
|
|
4
4
|
import { OrErrorV3 as script$6 } from '../or-error-v3/index.js';
|
|
5
5
|
import { OrHintV3 as script$7 } from '../or-hint-v3/index.js';
|
|
6
6
|
import { OrIconV3 as script$8 } from '../or-icon-v3/index.js';
|
package/dist/esm/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { w as CODE_BACKSPACE, x as CODE_BREAK, y as CODE_DELETE, z as CODE_DOWN, A as CODE_END, B as CODE_ENTER, C as CODE_ESC, E as CODE_HOME, I as CODE_LEFT, L as CODE_PAGEDOWN, O as CODE_PAGEUP, U as CODE_RIGHT, Q as CODE_SPACE, V as CODE_UP, S as DATE_FORMAT, T as DateFormat, s as DropdownClose, f as DropdownOpen, W as HSL_LIMITS, Y as LOCALE, v as OrAutocompleteV3, Z as PLACEMENT_BOTTOM_END, _ as PLACEMENT_BOTTOM_START, a0 as PLACEMENT_LEFT_END, a1 as PLACEMENT_LEFT_START, a2 as PLACEMENT_RIGHT_END, a3 as PLACEMENT_RIGHT_START, a4 as PLACEMENT_TOP_END, a5 as PLACEMENT_TOP_START, a6 as RX_ABBREVIATION_FROM_STRING, a7 as RX_ARRAY_NOTATION, a8 as RX_BV_PREFIX, a9 as RX_DATE, aa as RX_DATE_SPLIT, ab as RX_DIGITS, ac as RX_ENCODED_COMMA, ad as RX_ENCODE_REVERSE, ae as RX_EXTENSION, af as RX_HASH, ag as RX_HASH_ID, ah as RX_HREF, ai as RX_HTML_TAGS, aj as RX_HYPHENATE, ak as RX_LONG_COLOR, al as RX_LOWER_UPPER, am as RX_NUMBER, an as RX_PLUS, ao as RX_QUERY_START, ap as RX_REGEXP_REPLACE, aq as RX_SHORT_COLOR, ar as RX_SPACES, as as RX_SPACE_SPLIT, at as RX_STAR, au as RX_START_SPACE_WORD, av as RX_TIME, aw as RX_TRIM_LEFT, ax as RX_TRIM_RIGHT, ay as RX_UNDERSCORE, az as RX_UN_KEBAB, aA as TIME_FORMAT, h as TimeFormat, P as exclude, aB as extractCssVarName, X as flattenDeep, aC as generateColorFromString, i as generateHslFromString, aD as getAbbreviation, aE as getHashOfString, aF as getPageElevations, aG as hexToRgb, D as hslToColorString, H as include, p as isAncestor, c as isArray, aH as isDescendant, $ as isEmpty, m as isEqual, l as isNil, aI as isNull, aJ as isNumber, R as isObject, aK as isString, b as isUndefined, aL as isVisible, aM as normalize, M as pxToRem, aN as requestAF, aO as rgbToHex, F as toArray, k as useControlAttributes, G as useDateFormat, J as useDateMask, K as useElevation, N as useIdAttribute, e as useLocale, q as useOverflow, t as usePopoverState, r as useProxyModelValue, n as useResponsive, u as useTheme, g as useTimeFormat, o as useTimeMask, aP as useToggle, d as useValidationAttributes } from './components/OrAutocompleteV3-961163d0.js';
|
|
2
2
|
export { E as EditorTabsOverflow, s as OrEditorTabsV3, a as getItemByValue, m as getItemsByValue, l as searchItemsByLabel } from './components/OrEditorTabsV3-cbe58a9e.js';
|
|
3
|
-
export { a as OrDateTimePickerDateControl, b as OrDateTimePickerDateSelect, c as OrDateTimePickerMobileControl, d as OrDateTimePickerMonthSelect, e as OrDateTimePickerPopoverFooter, g as OrDateTimePickerPopoverHeader, l as OrDateTimePickerTimeControl, m as OrDateTimePickerTimeSelect, s as OrDateTimePickerV3, p as Spacing, f as formatDate, i as formatMobileDate, n as formatMobileTime, k as formatTime, h as getCurrentDate, j as getNextMonthDate, o as scrollToElementWithinContainer } from './components/OrDateTimePickerV3-
|
|
3
|
+
export { a as OrDateTimePickerDateControl, b as OrDateTimePickerDateSelect, c as OrDateTimePickerMobileControl, d as OrDateTimePickerMonthSelect, e as OrDateTimePickerPopoverFooter, g as OrDateTimePickerPopoverHeader, l as OrDateTimePickerTimeControl, m as OrDateTimePickerTimeSelect, s as OrDateTimePickerV3, p as Spacing, f as formatDate, i as formatMobileDate, n as formatMobileTime, k as formatTime, h as getCurrentDate, j as getNextMonthDate, o as scrollToElementWithinContainer } from './components/OrDateTimePickerV3-7b24568c.js';
|
|
4
4
|
export { AvatarColor, AvatarSize, OrAvatarV3 } from './components/or-avatar-v3/index.js';
|
|
5
5
|
export { OrButtonGroupV3 } from './components/or-button-group-v3/index.js';
|
|
6
6
|
export { CardCollectionView, OrCardCollectionV3, defaultViewModes, gridView, listView } from './components/or-card-collection-v3/index.js';
|
|
@@ -109,7 +109,6 @@ import '@tiptap/extension-ordered-list';
|
|
|
109
109
|
import '@tiptap/extension-paragraph';
|
|
110
110
|
import '@tiptap/extension-placeholder';
|
|
111
111
|
import '@tiptap/extension-underline';
|
|
112
|
-
import '@tiptap/extension-character-count';
|
|
113
112
|
import '@tiptap/starter-kit';
|
|
114
113
|
import '@vueuse/integrations/useFocusTrap';
|
|
115
114
|
import 'prosemirror-state';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onereach/ui-components",
|
|
3
|
-
"version": "21.1.
|
|
3
|
+
"version": "21.1.1",
|
|
4
4
|
"description": "Vue components library for v3",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"exports": {
|
|
@@ -44,14 +44,13 @@
|
|
|
44
44
|
"@codemirror/view": "^6",
|
|
45
45
|
"@floating-ui/dom": "1.5.3",
|
|
46
46
|
"@lezer/highlight": "*",
|
|
47
|
-
"@onereach/styles": "^21.
|
|
48
|
-
"@onereach/ui-components-common": "^21.
|
|
47
|
+
"@onereach/styles": "^21.1.1",
|
|
48
|
+
"@onereach/ui-components-common": "^21.1.1",
|
|
49
49
|
"@splidejs/splide": "4.0.6",
|
|
50
50
|
"@tiptap/core": "2.0.3",
|
|
51
51
|
"@tiptap/extension-blockquote": "2.0.3",
|
|
52
52
|
"@tiptap/extension-bold": "2.0.3",
|
|
53
53
|
"@tiptap/extension-bullet-list": "2.0.3",
|
|
54
|
-
"@tiptap/extension-character-count": "2.0.3",
|
|
55
54
|
"@tiptap/extension-code-block": "2.0.3",
|
|
56
55
|
"@tiptap/extension-hard-break": "2.0.3",
|
|
57
56
|
"@tiptap/extension-heading": "2.0.3",
|
|
@@ -102,5 +101,6 @@
|
|
|
102
101
|
"publishConfig": {
|
|
103
102
|
"access": "public"
|
|
104
103
|
},
|
|
105
|
-
"npmUnpacked": "4.15.2"
|
|
104
|
+
"npmUnpacked": "4.15.2",
|
|
105
|
+
"gitHead": "19e2edac2a6a8b813c7cb3de10e538ef86504934"
|
|
106
106
|
}
|
package/dist/esm/components/{OrDateTimePickerV3-7c471714.js → OrDateTimePickerV3-7b24568c.js}
RENAMED
|
@@ -11,6 +11,8 @@ import { OrHintV3 as script$g } from './or-hint-v3/index.js';
|
|
|
11
11
|
import { OrInputBoxV3 as script$h, InputBoxVariant } from './or-input-box-v3/index.js';
|
|
12
12
|
import { OrPopoverV3 as script$i } from './or-popover-v3/index.js';
|
|
13
13
|
|
|
14
|
+
var m = /* @__PURE__ */ ((r) => (r.XS = "xs", r.SM = "sm", r.MD = "md", r.LG = "lg", r.XL = "xl", r))(m || {});
|
|
15
|
+
|
|
14
16
|
const formatDate = (value, format, locale) => {
|
|
15
17
|
if (typeof format === 'function') {
|
|
16
18
|
return format(value, locale);
|
|
@@ -28,8 +30,6 @@ const formatMobileDate = (value, format, locale) => {
|
|
|
28
30
|
});
|
|
29
31
|
};
|
|
30
32
|
|
|
31
|
-
var m = /* @__PURE__ */ ((r) => (r.XS = "xs", r.SM = "sm", r.MD = "md", r.LG = "lg", r.XL = "xl", r))(m || {});
|
|
32
|
-
|
|
33
33
|
const formatMobileTime = (value, format, locale) => {
|
|
34
34
|
return value.toLocaleString(locale, {
|
|
35
35
|
timeStyle: 'short',
|