@onereach/ui-components 2.70.0-beta.2131.0 → 2.70.0-beta.2159.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/{OrAvatar-2fa559e1.js → OrAvatar-ae61bfb9.js} +41 -15
- package/dist/bundled/v2/{OrButton-0e91a808.js → OrButton-4b99c680.js} +5 -1
- package/dist/bundled/v2/{OrCard-58a1ba3e.js → OrCard-29116e1f.js} +2 -2
- package/dist/bundled/v2/OrCardCollection-c4209a92.js +350 -0
- package/dist/bundled/v2/OrCode-be1bd373.js +4255 -0
- package/dist/bundled/v2/{OrConfirm-18c534df.js → OrConfirm-cab6535b.js} +1 -1
- package/dist/bundled/v2/OrEmptyState-9fb413f9.js +160 -0
- package/dist/bundled/v2/{OrRichTextEditor-63ef1357.js → OrRichTextEditor-5843ecda.js} +13803 -20711
- package/dist/bundled/v2/{OrSearch-9d402f56.js → OrSearch-76b002cf.js} +10 -4
- package/dist/bundled/v2/{OrSortHeader-396e6a7c.js → OrSortHeader-9932d28f.js} +2 -2
- package/dist/bundled/v2/codemirrorView-14f6685c.js +7136 -0
- package/dist/bundled/v2/components/index.d.ts +1 -0
- package/dist/bundled/v2/components/index.js +13 -10
- package/dist/bundled/v2/components/or-avatar-v3/OrAvatar.stories3.d.ts +1 -1
- package/dist/bundled/v2/components/or-avatar-v3/OrAvatar.vue.d.ts +11 -0
- package/dist/bundled/v2/components/or-avatar-v3/index.js +2 -1
- package/dist/bundled/v2/components/or-avatar-v3/props.d.ts +2 -1
- package/dist/bundled/v2/components/or-avatar-v3/styles.d.ts +2 -0
- package/dist/bundled/v2/components/or-button-v3/index.js +1 -1
- package/dist/bundled/v2/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +10 -0
- package/dist/bundled/v2/components/or-card-collection-v3/OrCardCollection.vue.d.ts +87 -40
- package/dist/bundled/v2/components/or-card-collection-v3/OrCardCollectionView.vue2.vue.d.ts +35 -0
- package/dist/bundled/v2/components/or-card-collection-v3/index.js +7 -4
- package/dist/bundled/v2/components/or-card-collection-v3/props.d.ts +5 -1
- package/dist/bundled/v2/components/or-card-collection-v3/styles.d.ts +2 -2
- package/dist/bundled/v2/components/or-card-collection-v3/types.d.ts +8 -3
- package/dist/bundled/v2/components/or-card-v3/index.js +1 -1
- package/dist/bundled/v2/components/or-code/index.js +3 -2
- package/dist/bundled/v2/components/or-confirm-v3/index.js +2 -2
- package/dist/bundled/v2/components/or-empty-state-v3/OrEmptyState.vue.d.ts +1 -1
- package/dist/bundled/v2/components/or-empty-state-v3/index.js +3 -159
- package/dist/bundled/v2/components/or-input-box-v3/OrInputBox.vue.d.ts +1 -2
- package/dist/bundled/v2/components/or-rich-text-editor-v3/index.js +4 -2
- package/dist/bundled/v2/components/or-rich-text-editor-v3/utils/codemirror/codemirrorNode.d.ts +3 -0
- package/dist/bundled/v2/components/or-rich-text-editor-v3/utils/codemirror/codemirrorView.d.ts +45 -0
- package/dist/bundled/v2/components/or-rich-text-editor-v3/utils/codemirror/index.d.ts +1 -0
- package/dist/bundled/v2/components/or-rich-text-editor-v3/utils/codemirror/index.js +2 -0
- package/dist/bundled/v2/components/or-rich-text-editor-v3/utils/codemirror/types.d.ts +19 -0
- package/dist/bundled/v2/components/or-search-v3/OrSearch.vue.d.ts +15 -2
- package/dist/bundled/v2/components/or-search-v3/index.js +1 -1
- package/dist/bundled/v2/components/or-sort-header-v3/index.js +1 -1
- package/dist/bundled/v2/index-46cc379c.js +12186 -0
- package/dist/bundled/v2/index-780d00b0.js +13307 -0
- package/dist/bundled/v2/index.js +14 -11
- package/dist/bundled/v3/{OrAvatar.vue_vue_type_script_lang-22e46ce1.js → OrAvatar.vue_vue_type_script_lang-0426862b.js} +35 -13
- package/dist/bundled/v3/OrButton-a671b8a1.js +33 -0
- package/dist/bundled/v3/{OrButton.vue_vue_type_script_lang-3718b300.js → OrButton.vue_vue_type_script_lang-b0dc31ca.js} +5 -1
- package/dist/bundled/v3/OrCardCollection.vue_vue_type_script_lang-9a2ae9a3.js +236 -0
- package/dist/bundled/v3/OrCode.vue_vue_type_script_lang-0f668150.js +4133 -0
- package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-289b5600.js → OrConfirm.vue_vue_type_script_lang-f57ffa1a.js} +6 -36
- package/dist/bundled/v3/OrEmptyState.vue_vue_type_script_lang-da7d6c42.js +111 -0
- package/dist/bundled/v3/{OrIconButton-4bd33e3c.js → OrIconButton-1581013c.js} +1 -1
- package/dist/bundled/v3/{OrIconButton.vue_vue_type_script_lang-641f6e06.js → OrIconButton.vue_vue_type_script_lang-f6f801ff.js} +1 -1
- package/dist/bundled/v3/{OrInlineInput.vue_vue_type_script_lang-3a8189f4.js → OrInlineInput.vue_vue_type_script_lang-f29483f4.js} +2 -2
- package/dist/bundled/v3/{OrInlineTextarea.vue_vue_type_script_lang-890b97ab.js → OrInlineTextarea.vue_vue_type_script_lang-cc40af48.js} +2 -2
- package/dist/bundled/v3/OrInput.vue_vue_type_script_lang-f6d793d3.js +2 -2
- package/dist/bundled/v3/{OrModal.vue_vue_type_script_lang-00a477f0.js → OrModal.vue_vue_type_script_lang-80a7b906.js} +2 -2
- package/dist/bundled/v3/OrNotification.vue_vue_type_script_lang-fbb35355.js +2 -2
- package/dist/bundled/v3/{OrRichTextEditor.vue_vue_type_script_lang-47fffbd6.js → OrRichTextEditor.vue_vue_type_script_lang-e0dfd695.js} +13803 -20711
- package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-ed78b21f.js → OrSearch.vue_vue_type_script_lang-014ad470.js} +9 -3
- package/dist/bundled/v3/OrSelect.vue_vue_type_script_lang-15285ce4.js +1 -1
- package/dist/bundled/v3/{OrTag.vue_vue_type_script_lang-92d9fb12.js → OrTag.vue_vue_type_script_lang-dc6a4011.js} +2 -2
- package/dist/bundled/v3/{OrToastContainer-afb51e5d.js → OrToastContainer-7c3c0b12.js} +1 -1
- package/dist/bundled/v3/codemirrorView-14f6685c.js +7136 -0
- package/dist/bundled/v3/components/index.d.ts +1 -0
- package/dist/bundled/v3/components/index.js +23 -19
- package/dist/bundled/v3/components/or-avatar-v3/OrAvatar.stories3.d.ts +1 -1
- package/dist/bundled/v3/components/or-avatar-v3/OrAvatar.vue.d.ts +11 -0
- package/dist/bundled/v3/components/or-avatar-v3/index.js +3 -1
- package/dist/bundled/v3/components/or-avatar-v3/props.d.ts +2 -1
- package/dist/bundled/v3/components/or-avatar-v3/styles.d.ts +2 -0
- package/dist/bundled/v3/components/or-button-v3/index.js +1 -1
- package/dist/bundled/v3/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +10 -0
- package/dist/bundled/v3/components/or-card-collection-v3/OrCardCollection.vue.d.ts +87 -40
- package/dist/bundled/v3/components/or-card-collection-v3/OrCardCollectionView.vue3.vue.d.ts +35 -0
- package/dist/bundled/v3/components/or-card-collection-v3/index.js +13 -6
- package/dist/bundled/v3/components/or-card-collection-v3/props.d.ts +5 -1
- package/dist/bundled/v3/components/or-card-collection-v3/styles.d.ts +2 -2
- package/dist/bundled/v3/components/or-card-collection-v3/types.d.ts +8 -3
- package/dist/bundled/v3/components/or-code/index.js +3 -2
- package/dist/bundled/v3/components/or-confirm-v3/index.js +5 -4
- package/dist/bundled/v3/components/or-empty-state-v3/OrEmptyState.vue.d.ts +1 -1
- package/dist/bundled/v3/components/or-empty-state-v3/index.js +2 -134
- package/dist/bundled/v3/components/or-icon-button-v3/index.js +1 -1
- package/dist/bundled/v3/components/or-inline-input-v3/index.js +3 -3
- package/dist/bundled/v3/components/or-inline-textarea-v3/index.js +3 -3
- package/dist/bundled/v3/components/or-input-box-v3/OrInputBox.vue.d.ts +1 -2
- package/dist/bundled/v3/components/or-input-v3/index.js +2 -2
- package/dist/bundled/v3/components/or-modal-v3/index.js +3 -3
- package/dist/bundled/v3/components/or-notification-v3/index.js +2 -2
- package/dist/bundled/v3/components/or-rich-text-editor-v3/index.js +6 -4
- package/dist/bundled/v3/components/or-rich-text-editor-v3/utils/codemirror/codemirrorNode.d.ts +3 -0
- package/dist/bundled/v3/components/or-rich-text-editor-v3/utils/codemirror/codemirrorView.d.ts +45 -0
- package/dist/bundled/v3/components/or-rich-text-editor-v3/utils/codemirror/index.d.ts +1 -0
- package/dist/bundled/v3/components/or-rich-text-editor-v3/utils/codemirror/index.js +2 -0
- package/dist/bundled/v3/components/or-rich-text-editor-v3/utils/codemirror/types.d.ts +19 -0
- package/dist/bundled/v3/components/or-search-v3/OrSearch.vue.d.ts +15 -2
- package/dist/bundled/v3/components/or-search-v3/index.js +3 -3
- package/dist/bundled/v3/components/or-select-v3/index.js +3 -3
- package/dist/bundled/v3/components/or-tag-v3/index.js +3 -3
- package/dist/bundled/v3/components/or-toast-v3/index.js +4 -4
- package/dist/bundled/v3/index-44faad6a.js +12186 -0
- package/dist/bundled/v3/index-780d00b0.js +13307 -0
- package/dist/bundled/v3/index.js +415 -351
- package/dist/bundled/v3/{types-6c5eee23.js → types-dcc78caa.js} +2 -2
- package/dist/esm/v2/{OrAvatar-0afdef36.js → OrAvatar-3d155af3.js} +41 -15
- package/dist/esm/v2/{OrButton-357a5756.js → OrButton-357e1e2c.js} +5 -1
- package/dist/esm/v2/OrCardCollection-57d11adf.js +350 -0
- package/dist/esm/v2/{OrCode-41dd5f9b.js → OrCode-d4400b42.js} +6 -4
- package/dist/esm/v2/{OrConfirm-b0b2e43c.js → OrConfirm-ec7aef0e.js} +1 -1
- package/dist/esm/v2/OrEmptyState-2481f13f.js +158 -0
- package/dist/esm/v2/{OrRichTextEditor-c3dee275.js → OrRichTextEditor-2d152db0.js} +59 -11
- package/dist/esm/v2/{OrSearch-ddb7c1fe.js → OrSearch-2f260b09.js} +8 -2
- package/dist/esm/v2/codemirrorView-8ea431d2.js +184 -0
- package/dist/esm/v2/components/index.d.ts +1 -0
- package/dist/esm/v2/components/index.js +13 -7
- package/dist/esm/v2/components/or-avatar-v3/OrAvatar.stories3.d.ts +1 -1
- package/dist/esm/v2/components/or-avatar-v3/OrAvatar.vue.d.ts +11 -0
- package/dist/esm/v2/components/or-avatar-v3/index.js +2 -1
- package/dist/esm/v2/components/or-avatar-v3/props.d.ts +2 -1
- package/dist/esm/v2/components/or-avatar-v3/styles.d.ts +2 -0
- package/dist/esm/v2/components/or-button-v3/index.js +1 -1
- package/dist/esm/v2/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +10 -0
- package/dist/esm/v2/components/or-card-collection-v3/OrCardCollection.vue.d.ts +87 -40
- package/dist/esm/v2/components/or-card-collection-v3/OrCardCollectionView.vue2.vue.d.ts +35 -0
- package/dist/esm/v2/components/or-card-collection-v3/index.js +7 -4
- package/dist/esm/v2/components/or-card-collection-v3/props.d.ts +5 -1
- package/dist/esm/v2/components/or-card-collection-v3/styles.d.ts +2 -2
- package/dist/esm/v2/components/or-card-collection-v3/types.d.ts +8 -3
- package/dist/esm/v2/components/or-code/index.js +3 -1
- package/dist/esm/v2/components/or-confirm-v3/index.js +2 -2
- package/dist/esm/v2/components/or-empty-state-v3/OrEmptyState.vue.d.ts +1 -1
- package/dist/esm/v2/components/or-empty-state-v3/index.js +3 -158
- package/dist/esm/v2/components/or-input-box-v3/OrInputBox.vue.d.ts +1 -2
- package/dist/esm/v2/components/or-rich-text-editor-v3/index.js +8 -1
- package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/codemirrorNode.d.ts +3 -0
- package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/codemirrorView.d.ts +45 -0
- package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/index.d.ts +1 -0
- package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/index.js +5 -0
- package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/types.d.ts +19 -0
- package/dist/esm/v2/components/or-search-v3/OrSearch.vue.d.ts +15 -2
- package/dist/esm/v2/components/or-search-v3/index.js +1 -1
- package/dist/esm/v2/index.js +13 -7
- package/dist/esm/v3/{OrAvatar-ef88d31c.js → OrAvatar-53a4429d.js} +43 -16
- package/dist/esm/v3/{OrButton-f4b9ee51.js → OrButton-bb6bf8a9.js} +5 -1
- package/dist/esm/v3/OrCardCollection-2a6514f3.js +298 -0
- package/dist/esm/v3/{OrCode-ee19a5e6.js → OrCode-5ed69c23.js} +3 -1
- package/dist/esm/v3/{OrConfirm-906427ef.js → OrConfirm-5d56cbd3.js} +1 -1
- package/dist/esm/v3/OrEmptyState-bb8e3145.js +135 -0
- package/dist/esm/v3/OrInput-41691fb3.js +1 -1
- package/dist/esm/v3/{OrInputBox-5247ab25.js → OrInputBox-6d1b6059.js} +1 -1
- package/dist/esm/v3/{OrRichTextEditor-b2e87342.js → OrRichTextEditor-f1271eb6.js} +58 -10
- package/dist/esm/v3/{OrSearch-cdde55ce.js → OrSearch-e5a2e93e.js} +9 -3
- package/dist/esm/v3/OrSelect-7e813982.js +1 -1
- package/dist/esm/v3/OrTextarea-bb9ef3f2.js +1 -1
- package/dist/esm/v3/codemirrorView-8ea431d2.js +184 -0
- package/dist/esm/v3/components/index.d.ts +1 -0
- package/dist/esm/v3/components/index.js +14 -8
- package/dist/esm/v3/components/or-avatar-v3/OrAvatar.stories3.d.ts +1 -1
- package/dist/esm/v3/components/or-avatar-v3/OrAvatar.vue.d.ts +11 -0
- package/dist/esm/v3/components/or-avatar-v3/index.js +2 -1
- package/dist/esm/v3/components/or-avatar-v3/props.d.ts +2 -1
- package/dist/esm/v3/components/or-avatar-v3/styles.d.ts +2 -0
- package/dist/esm/v3/components/or-button-v3/index.js +1 -1
- package/dist/esm/v3/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +10 -0
- package/dist/esm/v3/components/or-card-collection-v3/OrCardCollection.vue.d.ts +87 -40
- package/dist/esm/v3/components/or-card-collection-v3/OrCardCollectionView.vue3.vue.d.ts +35 -0
- package/dist/esm/v3/components/or-card-collection-v3/index.js +8 -5
- package/dist/esm/v3/components/or-card-collection-v3/props.d.ts +5 -1
- package/dist/esm/v3/components/or-card-collection-v3/styles.d.ts +2 -2
- package/dist/esm/v3/components/or-card-collection-v3/types.d.ts +8 -3
- package/dist/esm/v3/components/or-code/index.js +3 -1
- package/dist/esm/v3/components/or-confirm-v3/index.js +3 -3
- package/dist/esm/v3/components/or-empty-state-v3/OrEmptyState.vue.d.ts +1 -1
- package/dist/esm/v3/components/or-empty-state-v3/index.js +3 -135
- package/dist/esm/v3/components/or-input-box-v3/OrInputBox.vue.d.ts +1 -2
- 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-rich-text-editor-v3/index.js +8 -1
- package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/codemirrorNode.d.ts +3 -0
- package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/codemirrorView.d.ts +45 -0
- package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/index.d.ts +1 -0
- package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/index.js +5 -0
- package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/types.d.ts +19 -0
- package/dist/esm/v3/components/or-search-v3/OrSearch.vue.d.ts +15 -2
- package/dist/esm/v3/components/or-search-v3/index.js +2 -2
- 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 +14 -8
- package/package.json +2 -1
- package/src/components/index.ts +1 -0
- package/src/components/or-avatar-v3/OrAvatar.stories3.ts +9 -7
- package/src/components/or-avatar-v3/OrAvatar.vue +22 -2
- package/src/components/or-avatar-v3/props.ts +1 -0
- package/src/components/or-avatar-v3/styles.ts +49 -11
- package/src/components/or-button-v3/styles.ts +6 -0
- package/src/components/or-card/OrCard.stories.ts +1 -1
- package/src/components/or-card-collection/OrCardCollection.stories.ts +1 -1
- package/src/components/or-card-collection-v3/OrCardCollection.docs.mdx +4 -0
- package/src/components/or-card-collection-v3/OrCardCollection.stories3.ts +246 -30
- package/src/components/or-card-collection-v3/OrCardCollection.vue +132 -77
- package/src/components/or-card-collection-v3/OrCardCollectionView.vue2.vue +41 -0
- package/src/components/or-card-collection-v3/OrCardCollectionView.vue3.vue +42 -0
- package/src/components/or-card-collection-v3/props.ts +14 -1
- package/src/components/or-card-collection-v3/styles.ts +6 -4
- package/src/components/or-card-collection-v3/types.ts +9 -3
- package/src/components/or-code/OrCode.vue +3 -1
- package/src/components/or-empty-state-v3/OrEmptyState.vue +16 -10
- package/src/components/or-input-box-v3/OrInputBox.vue +1 -2
- package/src/components/or-menu-v3/OrMenu.stories3.ts +1 -1
- package/src/components/or-rich-text-editor-v3/OrRichTextEditor.stories3.ts +2 -0
- package/src/components/or-rich-text-editor-v3/OrRichTextEditor.vue +32 -6
- package/src/components/or-rich-text-editor-v3/utils/codemirror/codemirrorNode.ts +40 -0
- package/src/components/or-rich-text-editor-v3/utils/codemirror/codemirrorView.ts +257 -0
- package/src/components/or-rich-text-editor-v3/utils/codemirror/index.ts +1 -0
- package/src/components/or-rich-text-editor-v3/utils/codemirror/types.ts +22 -0
- package/src/components/or-rich-text-editor-v3/utils/markdown.ts +2 -0
- package/src/components/or-search-v3/OrSearch.stories3.ts +1 -1
- package/src/components/or-search-v3/OrSearch.vue +8 -2
- package/src/components/or-teleport-v3/OrTeleport.stories3.ts +1 -1
- package/dist/bundled/v2/OrCardCollection-a9a779ea.js +0 -228
- package/dist/bundled/v2/OrCode-0cd991a1.js +0 -29579
- package/dist/bundled/v2/index.es-3f39f316.js +0 -115
- package/dist/bundled/v3/OrCardCollection.vue_vue_type_script_lang-3993a015.js +0 -164
- package/dist/bundled/v3/OrCode.vue_vue_type_script_lang-6c5f94a6.js +0 -29457
- package/dist/bundled/v3/index.es-3f39f316.js +0 -115
- package/dist/esm/v2/OrCardCollection-4f001551.js +0 -227
- package/dist/esm/v3/OrCardCollection-5a0febaf.js +0 -198
|
@@ -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,164 +0,0 @@
|
|
|
1
|
-
import { openBlock, createElementBlock, mergeProps, renderSlot, resolveComponent, withModifiers, createBlock, normalizeClass, createCommentVNode, defineComponent, ref, computed, watch } from 'vue';
|
|
2
|
-
import { s as script$1 } from './OrCard.vue_vue_type_script_lang-165de137.js';
|
|
3
|
-
import './OrIconButton-4bd33e3c.js';
|
|
4
|
-
import { s as script$3 } from './OrIconButton.vue_vue_type_script_lang-641f6e06.js';
|
|
5
|
-
import './OrInput-fa782fc1.js';
|
|
6
|
-
import { s as script$4 } from './OrInput.vue_vue_type_script_lang-f6d793d3.js';
|
|
7
|
-
import { s as script$2 } from './OrSortHeader.vue_vue_type_script_lang-75115125.js';
|
|
8
|
-
import { u as useClassAttribute } from './useClassAttribute-00888f78.js';
|
|
9
|
-
|
|
10
|
-
function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
11
|
-
return openBlock(), createElementBlock("div", mergeProps({
|
|
12
|
-
ref: "root"
|
|
13
|
-
}, _ctx.$attrs, {
|
|
14
|
-
class: _ctx.rootStyles
|
|
15
|
-
}), [renderSlot(_ctx.$slots, "default")], 16 /* FULL_PROPS */);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
script$1.render = render$1;
|
|
19
|
-
script$1.__file = "src/components/or-card-v3/OrCard.vue";
|
|
20
|
-
|
|
21
|
-
const _hoisted_1 = ["activated"];
|
|
22
|
-
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
23
|
-
const _component_OrIcon = resolveComponent("OrIcon");
|
|
24
|
-
return openBlock(), createElementBlock("div", mergeProps({
|
|
25
|
-
ref: "root"
|
|
26
|
-
}, _ctx.$attrs, {
|
|
27
|
-
class: _ctx.rootStyles,
|
|
28
|
-
activated: _ctx.activated ? '' : null,
|
|
29
|
-
onClick: _cache[0] || (_cache[0] = withModifiers($event => _ctx.toggleDirection(), ["stop"]))
|
|
30
|
-
}), [renderSlot(_ctx.$slots, "default"), _ctx.activated ? (openBlock(), createBlock(_component_OrIcon, {
|
|
31
|
-
key: 0,
|
|
32
|
-
class: normalizeClass({
|
|
33
|
-
'rotate-180': _ctx.proxyModelValue.direction === 'asc'
|
|
34
|
-
}),
|
|
35
|
-
icon: 'arrow_downward'
|
|
36
|
-
}, null, 8 /* PROPS */, ["class"])) : createCommentVNode("v-if", true)], 16 /* FULL_PROPS */, _hoisted_1);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
script$2.render = render;
|
|
40
|
-
script$2.__file = "src/components/or-sort-header-v3/OrSortHeader.vue";
|
|
41
|
-
|
|
42
|
-
var CardCollectionView;
|
|
43
|
-
(function (CardCollectionView) {
|
|
44
|
-
CardCollectionView["Grid"] = "grid";
|
|
45
|
-
CardCollectionView["List"] = "list";
|
|
46
|
-
})(CardCollectionView || (CardCollectionView = {}));
|
|
47
|
-
|
|
48
|
-
const CardCollectionRoot = [
|
|
49
|
-
// Layout
|
|
50
|
-
'layout-column',
|
|
51
|
-
// Spacing
|
|
52
|
-
'gap-md'];
|
|
53
|
-
const CardCollectionToolbar = [
|
|
54
|
-
// Layout
|
|
55
|
-
'layout-row justify-between',
|
|
56
|
-
// Typography
|
|
57
|
-
'typography-body-2-regular',
|
|
58
|
-
// Theme
|
|
59
|
-
'theme-foreground-default', 'dark:theme-foreground-default-dark'];
|
|
60
|
-
const CardCollectionToolbarPanel = [
|
|
61
|
-
// Layout
|
|
62
|
-
'layout-row',
|
|
63
|
-
// Spacing
|
|
64
|
-
'gap-sm+'];
|
|
65
|
-
const CardCollectionContent = [
|
|
66
|
-
// Layout
|
|
67
|
-
'grid',
|
|
68
|
-
// Spacing
|
|
69
|
-
'gap-sm md:gap-md'];
|
|
70
|
-
const CardCollectionContentViews = {
|
|
71
|
-
'grid': [
|
|
72
|
-
// Layout
|
|
73
|
-
'sm:grid-cols-1', 'md:grid-cols-2', 'lg:grid-cols-4', 'xl:grid-cols-6'],
|
|
74
|
-
'list': []
|
|
75
|
-
};
|
|
76
|
-
|
|
77
|
-
var script = defineComponent({
|
|
78
|
-
name: 'OrCardCollection',
|
|
79
|
-
components: {
|
|
80
|
-
OrCard: script$1,
|
|
81
|
-
OrIconButton: script$3,
|
|
82
|
-
OrInput: script$4,
|
|
83
|
-
OrSortHeader: script$2
|
|
84
|
-
},
|
|
85
|
-
inheritAttrs: false,
|
|
86
|
-
props: {
|
|
87
|
-
items: {
|
|
88
|
-
type: Array,
|
|
89
|
-
default: []
|
|
90
|
-
},
|
|
91
|
-
view: {
|
|
92
|
-
type: String,
|
|
93
|
-
default: CardCollectionView.Grid
|
|
94
|
-
},
|
|
95
|
-
sort: {
|
|
96
|
-
type: Object,
|
|
97
|
-
default: undefined
|
|
98
|
-
},
|
|
99
|
-
sortHeaders: {
|
|
100
|
-
type: Array,
|
|
101
|
-
default: undefined
|
|
102
|
-
},
|
|
103
|
-
search: {
|
|
104
|
-
type: String,
|
|
105
|
-
default: undefined
|
|
106
|
-
}
|
|
107
|
-
},
|
|
108
|
-
emits: ['viewChange', 'sortChange', 'searchChange'],
|
|
109
|
-
expose: ['root'],
|
|
110
|
-
setup(props, context) {
|
|
111
|
-
// Refs
|
|
112
|
-
const root = ref();
|
|
113
|
-
// Styles
|
|
114
|
-
const classAttribute = useClassAttribute();
|
|
115
|
-
const rootStyles = computed(() => ['or-card-collection', ...CardCollectionRoot, classAttribute.value]);
|
|
116
|
-
const toolbarStyles = computed(() => [...CardCollectionToolbar]);
|
|
117
|
-
const toolbarPanelStyles = computed(() => [...CardCollectionToolbarPanel]);
|
|
118
|
-
const contentStyles = computed(() => [...CardCollectionContent, ...CardCollectionContentViews[proxyView.value]]);
|
|
119
|
-
// State
|
|
120
|
-
const proxyView = ref(props.view);
|
|
121
|
-
const proxySort = ref(props.sort);
|
|
122
|
-
const proxySearch = ref(props.search);
|
|
123
|
-
// Methods
|
|
124
|
-
function switchToGridView() {
|
|
125
|
-
proxyView.value = CardCollectionView.Grid;
|
|
126
|
-
}
|
|
127
|
-
function switchToListView() {
|
|
128
|
-
proxyView.value = CardCollectionView.List;
|
|
129
|
-
}
|
|
130
|
-
// Effects
|
|
131
|
-
watch(() => props.view, value => {
|
|
132
|
-
proxyView.value = value;
|
|
133
|
-
});
|
|
134
|
-
watch(proxyView, value => {
|
|
135
|
-
context.emit('viewChange', value);
|
|
136
|
-
});
|
|
137
|
-
watch(() => props.sort, value => {
|
|
138
|
-
proxySort.value = value;
|
|
139
|
-
});
|
|
140
|
-
watch(proxySort, value => {
|
|
141
|
-
context.emit('sortChange', value);
|
|
142
|
-
});
|
|
143
|
-
watch(() => props.search, value => {
|
|
144
|
-
proxySearch.value = value;
|
|
145
|
-
});
|
|
146
|
-
watch(proxySearch, value => {
|
|
147
|
-
context.emit('searchChange', value);
|
|
148
|
-
});
|
|
149
|
-
return {
|
|
150
|
-
root,
|
|
151
|
-
rootStyles,
|
|
152
|
-
toolbarStyles,
|
|
153
|
-
toolbarPanelStyles,
|
|
154
|
-
contentStyles,
|
|
155
|
-
proxyView,
|
|
156
|
-
proxySort,
|
|
157
|
-
proxySearch,
|
|
158
|
-
switchToGridView,
|
|
159
|
-
switchToListView
|
|
160
|
-
};
|
|
161
|
-
}
|
|
162
|
-
});
|
|
163
|
-
|
|
164
|
-
export { CardCollectionView as C, script as s };
|