@onereach/ui-components 2.68.0-beta.2008.0 → 2.68.0-beta.2016.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundled/v2/{OrCode-b9332066.js → OrCode-edc7a1f5.js} +115 -2
- package/dist/bundled/v2/{OrConfirm-19758dae.js → OrConfirm-56d01cff.js} +1 -1
- package/dist/bundled/{v3/useFocusTrap-d21726e3.js → v2/OrModal-a5411b0d.js} +200 -3
- package/dist/bundled/v2/components/index.d.ts +0 -1
- package/dist/bundled/v2/components/index.js +3 -7
- package/dist/bundled/v2/components/or-code/index.js +2 -4
- package/dist/bundled/v2/components/or-confirm/index.js +2 -3
- package/dist/bundled/v2/components/or-input-box-v3/OrInputBox.vue.d.ts +1 -1
- package/dist/bundled/v2/components/or-modal/index.js +1 -2
- package/dist/bundled/v2/index.js +4 -8
- package/dist/bundled/v3/{OrCode.vue_vue_type_script_lang-5fe573eb.js → OrCode.vue_vue_type_script_lang-ef5e7f04.js} +116 -3
- package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-4451e782.js → OrConfirm.vue_vue_type_script_lang-0f16fc67.js} +2 -2
- package/dist/bundled/v3/{OrModal-bbabef06.js → OrModal-868160ef.js} +1 -1
- package/dist/bundled/{v2/useFocusTrap-d744652a.js → v3/OrModal.vue_vue_type_script_lang-a1ed2ebb.js} +126 -4
- package/dist/bundled/v3/{OrTabs.vue_vue_type_script_lang-2fdbd2f2.js → OrTabs.vue_vue_type_script_lang-ca57f9d9.js} +36 -10
- package/dist/bundled/v3/components/index.d.ts +0 -1
- package/dist/bundled/v3/components/index.js +5 -10
- package/dist/bundled/v3/components/or-code/index.js +3 -5
- package/dist/bundled/v3/components/or-confirm/index.js +3 -4
- package/dist/bundled/v3/components/or-input-box-v3/OrInputBox.vue.d.ts +1 -1
- package/dist/bundled/v3/components/or-modal/index.js +1 -2
- package/dist/bundled/v3/components/or-tabs-v3/index.js +1 -2
- package/dist/bundled/v3/index.js +182 -278
- package/dist/esm/v2/components/index.d.ts +0 -1
- package/dist/esm/v2/components/index.js +0 -19
- package/dist/esm/v2/components/or-input-box-v3/OrInputBox.vue.d.ts +1 -1
- package/dist/esm/v2/index.js +0 -19
- package/dist/esm/v3/OrInput-4f55c0eb.js +1 -1
- package/dist/esm/v3/{OrInputBox-634230b1.js → OrInputBox-542d2f2c.js} +1 -1
- package/dist/esm/v3/OrSearch-d74891a5.js +1 -1
- package/dist/esm/v3/OrSelect-b3a233cc.js +1 -1
- package/dist/esm/v3/OrTextarea-98895b2a.js +1 -1
- package/dist/esm/v3/components/index.d.ts +0 -1
- package/dist/esm/v3/components/index.js +1 -20
- package/dist/esm/v3/components/or-card-collection-v3/index.js +1 -1
- package/dist/esm/v3/components/or-confirm-v3/index.js +1 -1
- package/dist/esm/v3/components/or-input-box-v3/OrInputBox.vue.d.ts +1 -1
- package/dist/esm/v3/components/or-input-box-v3/index.js +2 -2
- package/dist/esm/v3/components/or-input-v3/index.js +1 -1
- package/dist/esm/v3/components/or-search-v3/index.js +1 -1
- package/dist/esm/v3/components/or-select-v3/index.js +1 -1
- package/dist/esm/v3/components/or-textarea-v3/index.js +1 -1
- package/dist/esm/v3/index.js +1 -20
- package/package.json +10 -20
- package/src/components/index.ts +0 -1
- package/src/components/or-input-box-v3/OrInputBox.vue +1 -1
- package/src/utils/functions/text.ts +2 -2
- package/dist/bundled/v2/OrModal-71d33219.js +0 -202
- package/dist/bundled/v2/OrRichTextEditor-4a41e294.js +0 -36832
- package/dist/bundled/v2/components/or-rich-text-editor-v3/OrRichTextEditor.stories3.d.ts +0 -12
- package/dist/bundled/v2/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +0 -149
- package/dist/bundled/v2/components/or-rich-text-editor-v3/index.d.ts +0 -1
- package/dist/bundled/v2/components/or-rich-text-editor-v3/index.js +0 -25
- package/dist/bundled/v2/components/or-rich-text-editor-v3/styles.d.ts +0 -6
- package/dist/bundled/v2/index.es-3f39f316.js +0 -115
- package/dist/bundled/v3/OrMenu-08aa60de.js +0 -29
- package/dist/bundled/v3/OrModal.vue_vue_type_script_lang-a599dfe7.js +0 -128
- package/dist/bundled/v3/OrRichTextEditor.vue_vue_type_script_lang-f5d3e39b.js +0 -36712
- package/dist/bundled/v3/components/or-rich-text-editor-v3/OrRichTextEditor.stories3.d.ts +0 -12
- package/dist/bundled/v3/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +0 -149
- package/dist/bundled/v3/components/or-rich-text-editor-v3/index.d.ts +0 -1
- package/dist/bundled/v3/components/or-rich-text-editor-v3/index.js +0 -26
- package/dist/bundled/v3/components/or-rich-text-editor-v3/styles.d.ts +0 -6
- package/dist/bundled/v3/index.es-3f39f316.js +0 -115
- package/dist/esm/v2/OrRichTextEditor-11967cd9.js +0 -520
- package/dist/esm/v2/components/or-rich-text-editor-v3/OrRichTextEditor.stories3.d.ts +0 -12
- package/dist/esm/v2/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +0 -149
- package/dist/esm/v2/components/or-rich-text-editor-v3/index.d.ts +0 -1
- package/dist/esm/v2/components/or-rich-text-editor-v3/index.js +0 -39
- package/dist/esm/v2/components/or-rich-text-editor-v3/styles.d.ts +0 -6
- package/dist/esm/v3/OrRichTextEditor-ad5f24ba.js +0 -490
- package/dist/esm/v3/components/or-rich-text-editor-v3/OrRichTextEditor.stories3.d.ts +0 -12
- package/dist/esm/v3/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +0 -149
- package/dist/esm/v3/components/or-rich-text-editor-v3/index.d.ts +0 -1
- package/dist/esm/v3/components/or-rich-text-editor-v3/index.js +0 -38
- package/dist/esm/v3/components/or-rich-text-editor-v3/styles.d.ts +0 -6
- package/src/components/or-rich-text-editor-v3/OrRichTextEditor.docs.mdx +0 -16
- package/src/components/or-rich-text-editor-v3/OrRichTextEditor.stories3.ts +0 -62
- package/src/components/or-rich-text-editor-v3/OrRichTextEditor.vue +0 -526
- package/src/components/or-rich-text-editor-v3/index.ts +0 -1
- package/src/components/or-rich-text-editor-v3/styles.ts +0 -65
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryFn } from '@storybook/vue3';
|
|
2
|
-
declare const _default: Meta<import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<unknown>, import("@vue/composition-api").MethodOptions, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>, import("@vue/composition-api").ExtractPropTypes<import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
|
|
3
|
-
[x: string]: ((...args: any[]) => any) | null;
|
|
4
|
-
} | string[], {} & {}, {
|
|
5
|
-
[x: number]: string;
|
|
6
|
-
} | {}, true>)>;
|
|
7
|
-
export default _default;
|
|
8
|
-
export declare const RichTextEditor: StoryFn<import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<unknown>, import("@vue/composition-api").MethodOptions, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>, import("@vue/composition-api").ExtractPropTypes<import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
|
|
9
|
-
[x: string]: ((...args: any[]) => any) | null;
|
|
10
|
-
} | string[], {} & {}, {
|
|
11
|
-
[x: number]: string;
|
|
12
|
-
} | {}, true>)>;
|
|
@@ -1,149 +0,0 @@
|
|
|
1
|
-
import { Editor } from '@tiptap/core';
|
|
2
|
-
import { Level } from '@tiptap/extension-heading';
|
|
3
|
-
declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
4
|
-
editor: Editor | null;
|
|
5
|
-
editorRef: import("@vue/composition-api").Ref<HTMLDivElement | undefined>;
|
|
6
|
-
containerRef: import("@vue/composition-api").Ref<HTMLDivElement | undefined>;
|
|
7
|
-
toolbarButtonRef: import("@vue/composition-api").Ref<import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
|
|
8
|
-
[x: string]: ((...args: any[]) => any) | null;
|
|
9
|
-
} | string[], {} & {}, {
|
|
10
|
-
[x: number]: string;
|
|
11
|
-
} | {}, true> | undefined>;
|
|
12
|
-
menuRef: import("@vue/composition-api").Ref<import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
|
|
13
|
-
[x: string]: ((...args: any[]) => any) | null;
|
|
14
|
-
} | string[], {} & {}, {
|
|
15
|
-
[x: number]: string;
|
|
16
|
-
} | {}, true> | undefined>;
|
|
17
|
-
iconsEnum: import("@vue/composition-api").Ref<{
|
|
18
|
-
[x: string]: string;
|
|
19
|
-
}>;
|
|
20
|
-
handleToolbarClick: (item: string, level?: number | undefined) => void;
|
|
21
|
-
handleEditorClick: () => void;
|
|
22
|
-
isActive: import("@vue/composition-api").Ref<{
|
|
23
|
-
[x: string]: boolean;
|
|
24
|
-
}>;
|
|
25
|
-
iconTooltipsEnum: import("@vue/composition-api").Ref<{
|
|
26
|
-
[x: string]: string;
|
|
27
|
-
}>;
|
|
28
|
-
containerStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
29
|
-
toolbarContainerStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
30
|
-
toolbarStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
31
|
-
rootStyles: import("@vue/composition-api").ComputedRef<(string | undefined)[]>;
|
|
32
|
-
toolbarButtonStyles: (item: string) => string[];
|
|
33
|
-
editorInputStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
34
|
-
getIndexOfHeading: import("@vue/composition-api").ComputedRef<number>;
|
|
35
|
-
headingLevels: Level[];
|
|
36
|
-
headingIcon: import("@vue/composition-api").ComputedRef<string>;
|
|
37
|
-
}> & import("@vue/composition-api").Data, {}, {}, {
|
|
38
|
-
modelValue: {
|
|
39
|
-
type: StringConstructor;
|
|
40
|
-
default: string;
|
|
41
|
-
required: false;
|
|
42
|
-
};
|
|
43
|
-
toolbar: {
|
|
44
|
-
type: ArrayConstructor;
|
|
45
|
-
default: () => string[][];
|
|
46
|
-
};
|
|
47
|
-
description: {
|
|
48
|
-
type: StringConstructor;
|
|
49
|
-
default: string;
|
|
50
|
-
};
|
|
51
|
-
placeholder: {
|
|
52
|
-
type: StringConstructor;
|
|
53
|
-
default: string;
|
|
54
|
-
};
|
|
55
|
-
autofocus: {
|
|
56
|
-
type: BooleanConstructor;
|
|
57
|
-
default: boolean;
|
|
58
|
-
};
|
|
59
|
-
markdownFormat: {
|
|
60
|
-
type: BooleanConstructor;
|
|
61
|
-
default: boolean;
|
|
62
|
-
};
|
|
63
|
-
}, import("@vue/composition-api").ExtractPropTypes<{
|
|
64
|
-
modelValue: {
|
|
65
|
-
type: StringConstructor;
|
|
66
|
-
default: string;
|
|
67
|
-
required: false;
|
|
68
|
-
};
|
|
69
|
-
toolbar: {
|
|
70
|
-
type: ArrayConstructor;
|
|
71
|
-
default: () => string[][];
|
|
72
|
-
};
|
|
73
|
-
description: {
|
|
74
|
-
type: StringConstructor;
|
|
75
|
-
default: string;
|
|
76
|
-
};
|
|
77
|
-
placeholder: {
|
|
78
|
-
type: StringConstructor;
|
|
79
|
-
default: string;
|
|
80
|
-
};
|
|
81
|
-
autofocus: {
|
|
82
|
-
type: BooleanConstructor;
|
|
83
|
-
default: boolean;
|
|
84
|
-
};
|
|
85
|
-
markdownFormat: {
|
|
86
|
-
type: BooleanConstructor;
|
|
87
|
-
default: boolean;
|
|
88
|
-
};
|
|
89
|
-
}>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
|
|
90
|
-
modelValue: string;
|
|
91
|
-
toolbar: unknown[];
|
|
92
|
-
description: string;
|
|
93
|
-
placeholder: string;
|
|
94
|
-
autofocus: boolean;
|
|
95
|
-
markdownFormat: boolean;
|
|
96
|
-
} & {} & {
|
|
97
|
-
[x: string & `on${string}`]: ((...args: any[]) => any) | undefined;
|
|
98
|
-
}, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
99
|
-
editor: Editor | null;
|
|
100
|
-
editorRef: import("@vue/composition-api").Ref<HTMLDivElement | undefined>;
|
|
101
|
-
containerRef: import("@vue/composition-api").Ref<HTMLDivElement | undefined>;
|
|
102
|
-
toolbarButtonRef: import("@vue/composition-api").Ref<import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
|
|
103
|
-
[x: string]: ((...args: any[]) => any) | null;
|
|
104
|
-
} | string[], {} & {}, {
|
|
105
|
-
[x: number]: string;
|
|
106
|
-
} | {}, true> | undefined>;
|
|
107
|
-
menuRef: import("@vue/composition-api").Ref<import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
|
|
108
|
-
[x: string]: ((...args: any[]) => any) | null;
|
|
109
|
-
} | string[], {} & {}, {
|
|
110
|
-
[x: number]: string;
|
|
111
|
-
} | {}, true> | undefined>;
|
|
112
|
-
iconsEnum: import("@vue/composition-api").Ref<{
|
|
113
|
-
[x: string]: string;
|
|
114
|
-
}>;
|
|
115
|
-
handleToolbarClick: (item: string, level?: number | undefined) => void;
|
|
116
|
-
handleEditorClick: () => void;
|
|
117
|
-
isActive: import("@vue/composition-api").Ref<{
|
|
118
|
-
[x: string]: boolean;
|
|
119
|
-
}>;
|
|
120
|
-
iconTooltipsEnum: import("@vue/composition-api").Ref<{
|
|
121
|
-
[x: string]: string;
|
|
122
|
-
}>;
|
|
123
|
-
containerStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
124
|
-
toolbarContainerStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
125
|
-
toolbarStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
126
|
-
rootStyles: import("@vue/composition-api").ComputedRef<(string | undefined)[]>;
|
|
127
|
-
toolbarButtonStyles: (item: string) => string[];
|
|
128
|
-
editorInputStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
129
|
-
getIndexOfHeading: import("@vue/composition-api").ComputedRef<number>;
|
|
130
|
-
headingLevels: Level[];
|
|
131
|
-
headingIcon: import("@vue/composition-api").ComputedRef<string>;
|
|
132
|
-
}>, import("@vue/composition-api").Data, {}, {}, {}, {}, string[], {
|
|
133
|
-
modelValue: string;
|
|
134
|
-
toolbar: unknown[];
|
|
135
|
-
description: string;
|
|
136
|
-
placeholder: string;
|
|
137
|
-
autofocus: boolean;
|
|
138
|
-
markdownFormat: boolean;
|
|
139
|
-
} & {} & {
|
|
140
|
-
[x: string & `on${string}`]: ((...args: any[]) => any) | undefined;
|
|
141
|
-
}, {
|
|
142
|
-
modelValue: string;
|
|
143
|
-
toolbar: unknown[];
|
|
144
|
-
description: string;
|
|
145
|
-
placeholder: string;
|
|
146
|
-
autofocus: boolean;
|
|
147
|
-
markdownFormat: boolean;
|
|
148
|
-
}, true>);
|
|
149
|
-
export default _default;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as OrRichTextEditorV3 } from './OrRichTextEditor.vue';
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
export { _ as OrRichTextEditorV3 } from '../../OrRichTextEditor-4a41e294.js';
|
|
2
|
-
import '../../index-fa6eb4ca.js';
|
|
3
|
-
import 'vue';
|
|
4
|
-
import '@vue/composition-api/dist/vue-composition-api.mjs';
|
|
5
|
-
import '../../useFocusTrap-d744652a.js';
|
|
6
|
-
import '@vueuse/core';
|
|
7
|
-
import 'node:punycode';
|
|
8
|
-
import '../../index.es-3f39f316.js';
|
|
9
|
-
import '../../OrIconButton-2bf36347.js';
|
|
10
|
-
import '../../OrIcon-ce8fd08b.js';
|
|
11
|
-
import '../../useClassAttribute-9bf33346.js';
|
|
12
|
-
import '../../normalize-component-6e8e3d80.js';
|
|
13
|
-
import '../../OrTooltip-d1764f37.js';
|
|
14
|
-
import '../../OrPopover-2f48b854.js';
|
|
15
|
-
import '../../floating-ui.dom.esm-83eba816.js';
|
|
16
|
-
import '../../OrBottomSheet-7b5760dc.js';
|
|
17
|
-
import '../../OrOverlay-3c89d622.js';
|
|
18
|
-
import '../../OrTeleport.vue2-e9ba3054.js';
|
|
19
|
-
import 'portal-vue';
|
|
20
|
-
import '../../useElevation-aac032f4.js';
|
|
21
|
-
import '../../useResponsive-e13dfbb0.js';
|
|
22
|
-
import '../../OrLabel-0424be48.js';
|
|
23
|
-
import '../../OrMenuItem-f89dfc77.js';
|
|
24
|
-
import '../../OrMenu-5ac06751.js';
|
|
25
|
-
import '../../browser-82dea9ed.js';
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export declare const EditorContainer: string[];
|
|
2
|
-
export declare const ToolbarContainer: string[];
|
|
3
|
-
export declare const Toolbar: string[];
|
|
4
|
-
export declare const ToolbarButton: string[];
|
|
5
|
-
export declare const ToolbarButtonActive: string[];
|
|
6
|
-
export declare const EditorInput: string[];
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
var base = {
|
|
2
|
-
8: "Backspace",
|
|
3
|
-
9: "Tab",
|
|
4
|
-
10: "Enter",
|
|
5
|
-
12: "NumLock",
|
|
6
|
-
13: "Enter",
|
|
7
|
-
16: "Shift",
|
|
8
|
-
17: "Control",
|
|
9
|
-
18: "Alt",
|
|
10
|
-
20: "CapsLock",
|
|
11
|
-
27: "Escape",
|
|
12
|
-
32: " ",
|
|
13
|
-
33: "PageUp",
|
|
14
|
-
34: "PageDown",
|
|
15
|
-
35: "End",
|
|
16
|
-
36: "Home",
|
|
17
|
-
37: "ArrowLeft",
|
|
18
|
-
38: "ArrowUp",
|
|
19
|
-
39: "ArrowRight",
|
|
20
|
-
40: "ArrowDown",
|
|
21
|
-
44: "PrintScreen",
|
|
22
|
-
45: "Insert",
|
|
23
|
-
46: "Delete",
|
|
24
|
-
59: ";",
|
|
25
|
-
61: "=",
|
|
26
|
-
91: "Meta",
|
|
27
|
-
92: "Meta",
|
|
28
|
-
106: "*",
|
|
29
|
-
107: "+",
|
|
30
|
-
108: ",",
|
|
31
|
-
109: "-",
|
|
32
|
-
110: ".",
|
|
33
|
-
111: "/",
|
|
34
|
-
144: "NumLock",
|
|
35
|
-
145: "ScrollLock",
|
|
36
|
-
160: "Shift",
|
|
37
|
-
161: "Shift",
|
|
38
|
-
162: "Control",
|
|
39
|
-
163: "Control",
|
|
40
|
-
164: "Alt",
|
|
41
|
-
165: "Alt",
|
|
42
|
-
173: "-",
|
|
43
|
-
186: ";",
|
|
44
|
-
187: "=",
|
|
45
|
-
188: ",",
|
|
46
|
-
189: "-",
|
|
47
|
-
190: ".",
|
|
48
|
-
191: "/",
|
|
49
|
-
192: "`",
|
|
50
|
-
219: "[",
|
|
51
|
-
220: "\\",
|
|
52
|
-
221: "]",
|
|
53
|
-
222: "'"
|
|
54
|
-
};
|
|
55
|
-
var shift = {
|
|
56
|
-
48: ")",
|
|
57
|
-
49: "!",
|
|
58
|
-
50: "@",
|
|
59
|
-
51: "#",
|
|
60
|
-
52: "$",
|
|
61
|
-
53: "%",
|
|
62
|
-
54: "^",
|
|
63
|
-
55: "&",
|
|
64
|
-
56: "*",
|
|
65
|
-
57: "(",
|
|
66
|
-
59: ":",
|
|
67
|
-
61: "+",
|
|
68
|
-
173: "_",
|
|
69
|
-
186: ":",
|
|
70
|
-
187: "+",
|
|
71
|
-
188: "<",
|
|
72
|
-
189: "_",
|
|
73
|
-
190: ">",
|
|
74
|
-
191: "?",
|
|
75
|
-
192: "~",
|
|
76
|
-
219: "{",
|
|
77
|
-
220: "|",
|
|
78
|
-
221: "}",
|
|
79
|
-
222: "\""
|
|
80
|
-
};
|
|
81
|
-
var chrome = typeof navigator != "undefined" && /Chrome\/(\d+)/.exec(navigator.userAgent);
|
|
82
|
-
typeof navigator != "undefined" && /Gecko\/\d+/.test(navigator.userAgent);
|
|
83
|
-
var mac = typeof navigator != "undefined" && /Mac/.test(navigator.platform);
|
|
84
|
-
var ie = typeof navigator != "undefined" && /MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);
|
|
85
|
-
var brokenModifierNames = mac || chrome && +chrome[1] < 57;
|
|
86
|
-
|
|
87
|
-
// Fill in the digit keys
|
|
88
|
-
for (var i = 0; i < 10; i++) base[48 + i] = base[96 + i] = String(i);
|
|
89
|
-
|
|
90
|
-
// The function keys
|
|
91
|
-
for (var i = 1; i <= 24; i++) base[i + 111] = "F" + i;
|
|
92
|
-
|
|
93
|
-
// And the alphabetic keys
|
|
94
|
-
for (var i = 65; i <= 90; i++) {
|
|
95
|
-
base[i] = String.fromCharCode(i + 32);
|
|
96
|
-
shift[i] = String.fromCharCode(i);
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
// For each code that doesn't have a shift-equivalent, copy the base name
|
|
100
|
-
for (var code in base) if (!shift.hasOwnProperty(code)) shift[code] = base[code];
|
|
101
|
-
function keyName(event) {
|
|
102
|
-
var ignoreKey = brokenModifierNames && (event.ctrlKey || event.altKey || event.metaKey) || ie && event.shiftKey && event.key && event.key.length == 1 || event.key == "Unidentified";
|
|
103
|
-
var name = !ignoreKey && event.key || (event.shiftKey ? shift : base)[event.keyCode] || event.key || "Unidentified";
|
|
104
|
-
// Edge sometimes produces wrong names (Issue #3)
|
|
105
|
-
if (name == "Esc") name = "Escape";
|
|
106
|
-
if (name == "Del") name = "Delete";
|
|
107
|
-
// https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/8860571/
|
|
108
|
-
if (name == "Left") name = "ArrowLeft";
|
|
109
|
-
if (name == "Up") name = "ArrowUp";
|
|
110
|
-
if (name == "Right") name = "ArrowRight";
|
|
111
|
-
if (name == "Down") name = "ArrowDown";
|
|
112
|
-
return name;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
export { base as b, keyName as k, shift as s };
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { s as script } from './OrMenu.vue_vue_type_script_lang-bae45062.js';
|
|
2
|
-
import { resolveComponent, openBlock, createElementBlock, mergeProps, createVNode, withCtx, createElementVNode, normalizeClass, withModifiers, renderSlot } from 'vue';
|
|
3
|
-
|
|
4
|
-
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5
|
-
const _component_OrPopover = resolveComponent("OrPopover");
|
|
6
|
-
return openBlock(), createElementBlock("div", mergeProps({
|
|
7
|
-
ref: "root"
|
|
8
|
-
}, _ctx.$attrs, {
|
|
9
|
-
class: _ctx.rootStyles
|
|
10
|
-
}), [createVNode(_component_OrPopover, {
|
|
11
|
-
ref: "popover",
|
|
12
|
-
variant: 'auto',
|
|
13
|
-
trigger: _ctx.trigger,
|
|
14
|
-
placement: _ctx.placement,
|
|
15
|
-
"full-width": false,
|
|
16
|
-
"disable-default-styles": false,
|
|
17
|
-
"onUpdate:state": _cache[1] || (_cache[1] = $event => _ctx.$emit('update:state', $event))
|
|
18
|
-
}, {
|
|
19
|
-
default: withCtx(() => [createElementVNode("div", {
|
|
20
|
-
class: normalizeClass(_ctx.bodyStyles),
|
|
21
|
-
onClick: _cache[0] || (_cache[0] = withModifiers((...args) => _ctx.onClick && _ctx.onClick(...args), ["stop"]))
|
|
22
|
-
}, [renderSlot(_ctx.$slots, "default")], 2 /* CLASS */)]),
|
|
23
|
-
|
|
24
|
-
_: 3 /* FORWARDED */
|
|
25
|
-
}, 8 /* PROPS */, ["trigger", "placement"])], 16 /* FULL_PROPS */);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
script.render = render;
|
|
29
|
-
script.__file = "src/components/or-menu-v3/OrMenu.vue";
|
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
import { openBlock, createElementBlock, normalizeClass, renderSlot, defineComponent, ref, watch, onBeforeUnmount } from 'vue';
|
|
2
|
-
import _ from 'lodash';
|
|
3
|
-
import { onClickOutside } from '@vueuse/core';
|
|
4
|
-
import { u as useFocusTrap } from './useFocusTrap-d21726e3.js';
|
|
5
|
-
import './OrIconButton-e637158e.js';
|
|
6
|
-
import { s as script$1 } from './OrOverlay.vue_vue_type_script_lang-b9bf5e50.js';
|
|
7
|
-
import { s as styleInject } from './style-inject.es-4c6f2515.js';
|
|
8
|
-
import { s as script$2 } from './OrIconButton.vue_vue_type_script_lang-40547ab0.js';
|
|
9
|
-
|
|
10
|
-
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
11
|
-
return openBlock(), createElementBlock("div", {
|
|
12
|
-
class: normalizeClass(["or-overlay", _ctx.states])
|
|
13
|
-
}, [renderSlot(_ctx.$slots, "default")], 2 /* CLASS */);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
var css_248z = "/**\n * A simple way to manage mobile breakpoints described in https://davidwalsh.name/write-media-queries-sass.\n * Can be further extended using following approach https://rimdev.io/making-media-query-mixins-with-sass/\n */\n@keyframes spinAround-34f88318 {\nfrom {\n transform: rotate(0);\n}\nto {\n transform: rotate(359deg);\n}\n}\n@keyframes fade-34f88318 {\nfrom {\n opacity: 1;\n}\nto {\n opacity: 0;\n}\n}\n.or-overlay[data-v-34f88318] {\n display: none;\n position: absolute;\n top: 0;\n left: 0;\n height: 100%;\n width: 100%;\n z-index: 25;\n}\n.or-overlay[data-v-34f88318]:not(.without-background) {\n background-color: rgba(30, 35, 43, 0.8);\n}\n.or-overlay.active[data-v-34f88318] {\n display: flex;\n}\n.or-overlay.page[data-v-34f88318] {\n position: fixed;\n height: 100vh;\n width: 100vw;\n}";
|
|
17
|
-
styleInject(css_248z);
|
|
18
|
-
|
|
19
|
-
script$1.render = render;
|
|
20
|
-
script$1.__scopeId = "data-v-34f88318";
|
|
21
|
-
script$1.__file = "src/components/or-overlay/OrOverlay.vue";
|
|
22
|
-
|
|
23
|
-
var OrModalSizes;
|
|
24
|
-
(function (OrModalSizes) {
|
|
25
|
-
OrModalSizes["tiny"] = "tiny";
|
|
26
|
-
OrModalSizes["small"] = "small";
|
|
27
|
-
OrModalSizes["medium"] = "medium";
|
|
28
|
-
OrModalSizes["large"] = "large";
|
|
29
|
-
OrModalSizes["fullScreen"] = "fullScreen";
|
|
30
|
-
})(OrModalSizes || (OrModalSizes = {}));
|
|
31
|
-
|
|
32
|
-
var script = defineComponent({
|
|
33
|
-
name: 'OrModal',
|
|
34
|
-
components: {
|
|
35
|
-
OrIconButton: script$2,
|
|
36
|
-
OrOverlay: script$1
|
|
37
|
-
},
|
|
38
|
-
props: {
|
|
39
|
-
titleText: {
|
|
40
|
-
type: String,
|
|
41
|
-
required: false,
|
|
42
|
-
default: null,
|
|
43
|
-
validator: _.isString
|
|
44
|
-
},
|
|
45
|
-
showClose: {
|
|
46
|
-
type: Boolean,
|
|
47
|
-
default: true,
|
|
48
|
-
validator: _.isBoolean
|
|
49
|
-
},
|
|
50
|
-
closeOnClickOutside: {
|
|
51
|
-
type: Boolean,
|
|
52
|
-
required: false,
|
|
53
|
-
default: false,
|
|
54
|
-
validator: _.isBoolean
|
|
55
|
-
},
|
|
56
|
-
size: {
|
|
57
|
-
type: String,
|
|
58
|
-
required: false,
|
|
59
|
-
default: OrModalSizes.small
|
|
60
|
-
},
|
|
61
|
-
isOpen: {
|
|
62
|
-
type: Boolean,
|
|
63
|
-
required: true,
|
|
64
|
-
validator: _.isBoolean
|
|
65
|
-
},
|
|
66
|
-
isWithoutOverlay: {
|
|
67
|
-
type: Boolean,
|
|
68
|
-
required: false,
|
|
69
|
-
default: false,
|
|
70
|
-
validator: _.isBoolean
|
|
71
|
-
},
|
|
72
|
-
trapFocus: {
|
|
73
|
-
type: Boolean,
|
|
74
|
-
default: true,
|
|
75
|
-
validator: _.isBoolean
|
|
76
|
-
}
|
|
77
|
-
},
|
|
78
|
-
emits: ['close'],
|
|
79
|
-
setup(props, {
|
|
80
|
-
emit
|
|
81
|
-
}) {
|
|
82
|
-
const overlay = ref();
|
|
83
|
-
let container = ref(null);
|
|
84
|
-
let trap = useFocusTrap(container, {
|
|
85
|
-
immediate: props.trapFocus,
|
|
86
|
-
fallbackFocus: '.container',
|
|
87
|
-
allowOutsideClick: true
|
|
88
|
-
});
|
|
89
|
-
const handleClose = () => emit('close');
|
|
90
|
-
onClickOutside(container, evt => {
|
|
91
|
-
if (!evt.composedPath().includes(overlay.value.$el)) return;
|
|
92
|
-
if (props.closeOnClickOutside) handleClose();
|
|
93
|
-
});
|
|
94
|
-
const toggleFocusTrap = isNeedToTrap => {
|
|
95
|
-
if (isNeedToTrap && props.isOpen) {
|
|
96
|
-
trap.activate();
|
|
97
|
-
} else {
|
|
98
|
-
trap === null || trap === void 0 ? void 0 : trap.deactivate();
|
|
99
|
-
}
|
|
100
|
-
};
|
|
101
|
-
watch(() => props.trapFocus, toggleFocusTrap, {
|
|
102
|
-
immediate: true
|
|
103
|
-
});
|
|
104
|
-
watch(() => props.isOpen, isOpen => {
|
|
105
|
-
toggleFocusTrap(false);
|
|
106
|
-
if (isOpen) {
|
|
107
|
-
container = ref(null);
|
|
108
|
-
} else {
|
|
109
|
-
trap === null || trap === void 0 ? void 0 : trap.deactivate();
|
|
110
|
-
}
|
|
111
|
-
});
|
|
112
|
-
onBeforeUnmount(() => {
|
|
113
|
-
trap === null || trap === void 0 ? void 0 : trap.deactivate();
|
|
114
|
-
});
|
|
115
|
-
return {
|
|
116
|
-
container,
|
|
117
|
-
overlay,
|
|
118
|
-
handleClose
|
|
119
|
-
};
|
|
120
|
-
},
|
|
121
|
-
computed: {
|
|
122
|
-
sizeClass() {
|
|
123
|
-
return `is-${this.size}`;
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
});
|
|
127
|
-
|
|
128
|
-
export { OrModalSizes as O, script as s };
|