@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
|
@@ -11,13 +11,18 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
11
11
|
focus: () => void;
|
|
12
12
|
clear: () => void;
|
|
13
13
|
}> & import("@vue/composition-api").Data, {}, {}, {
|
|
14
|
+
modelValue: {
|
|
15
|
+
type: StringConstructor;
|
|
16
|
+
default: string;
|
|
17
|
+
required: false;
|
|
18
|
+
};
|
|
14
19
|
size: {
|
|
15
20
|
type: PropType<SearchSize>;
|
|
16
21
|
default: SearchSize;
|
|
17
22
|
};
|
|
18
23
|
placeholder: {
|
|
19
24
|
type: StringConstructor;
|
|
20
|
-
default:
|
|
25
|
+
default: string;
|
|
21
26
|
};
|
|
22
27
|
debounce: {
|
|
23
28
|
type: NumberConstructor;
|
|
@@ -32,13 +37,18 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
32
37
|
default: boolean;
|
|
33
38
|
};
|
|
34
39
|
}, import("@vue/composition-api").ExtractPropTypes<{
|
|
40
|
+
modelValue: {
|
|
41
|
+
type: StringConstructor;
|
|
42
|
+
default: string;
|
|
43
|
+
required: false;
|
|
44
|
+
};
|
|
35
45
|
size: {
|
|
36
46
|
type: PropType<SearchSize>;
|
|
37
47
|
default: SearchSize;
|
|
38
48
|
};
|
|
39
49
|
placeholder: {
|
|
40
50
|
type: StringConstructor;
|
|
41
|
-
default:
|
|
51
|
+
default: string;
|
|
42
52
|
};
|
|
43
53
|
debounce: {
|
|
44
54
|
type: NumberConstructor;
|
|
@@ -53,6 +63,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
53
63
|
default: boolean;
|
|
54
64
|
};
|
|
55
65
|
}>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
|
|
66
|
+
modelValue: string;
|
|
56
67
|
size: SearchSize;
|
|
57
68
|
placeholder: string;
|
|
58
69
|
debounce: number;
|
|
@@ -71,6 +82,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
71
82
|
focus: () => void;
|
|
72
83
|
clear: () => void;
|
|
73
84
|
}>, import("@vue/composition-api").Data, {}, {}, {}, {}, string[], {
|
|
85
|
+
modelValue: string;
|
|
74
86
|
size: SearchSize;
|
|
75
87
|
placeholder: string;
|
|
76
88
|
debounce: number;
|
|
@@ -79,6 +91,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
79
91
|
} & {} & {
|
|
80
92
|
[x: string & `on${string}`]: ((...args: any[]) => any) | undefined;
|
|
81
93
|
}, {
|
|
94
|
+
modelValue: string;
|
|
82
95
|
size: SearchSize;
|
|
83
96
|
placeholder: string;
|
|
84
97
|
debounce: number;
|
package/dist/esm/v2/index.js
CHANGED
|
@@ -1,29 +1,30 @@
|
|
|
1
1
|
export { O as OR_AVATAR_SIZE, _ as OrAvatar } from './OrAvatar-4824c57f.js';
|
|
2
|
-
export { a as AvatarColor, A as AvatarSize, _ as OrAvatarV3 } from './OrAvatar-
|
|
2
|
+
export { a as AvatarColor, A as AvatarSize, _ as OrAvatarV3 } from './OrAvatar-3d155af3.js';
|
|
3
3
|
export { _ as OrBottomSheetV3 } from './OrBottomSheet-16c2e610.js';
|
|
4
4
|
export { _ as OrButton, a as OrButtonColors, b as OrButtonSizes, O as OrButtonViews } from './OrButton-2ca1c3d6.js';
|
|
5
5
|
export { _ as OrButtonV2 } from './OrButton-c4f9955b.js';
|
|
6
6
|
export { _ as OrIconButton } from './OrIconButton-014e86a7.js';
|
|
7
7
|
export { a as BUTTON_COLOR, c as BUTTON_LOADER_TYPE, b as BUTTON_SIZE, B as BUTTON_TYPE, I as ICON_BUTTON_TYPE } from './OrIconButton.vue_rollup-plugin-vue_script-9fb7b7ab.js';
|
|
8
|
-
export { a as ButtonColor, b as ButtonType, B as ButtonVariant, _ as OrButtonV3 } from './OrButton-
|
|
8
|
+
export { a as ButtonColor, b as ButtonType, B as ButtonVariant, _ as OrButtonV3 } from './OrButton-357e1e2c.js';
|
|
9
9
|
export { _ as OrCard } from './OrCard-b7268256.js';
|
|
10
10
|
export { C as CARD_COLLECTION_LAYOUT, _ as OrCardCollection } from './OrCardCollection-f6b07557.js';
|
|
11
|
-
export {
|
|
11
|
+
export { D as DefaultCardCollectionViews, _ as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from './OrCardCollection-57d11adf.js';
|
|
12
12
|
export { _ as OrCardV3 } from './OrCard-de799db0.js';
|
|
13
13
|
export { a as OrCarousel, _ as OrCarouselItem } from './OrCarouselItem-4e2cf3d8.js';
|
|
14
14
|
export { _ as OrCheckbox } from './OrCheckbox-915f1f0a.js';
|
|
15
15
|
export { _ as OrCheckboxV3 } from './OrCheckbox-567e387c.js';
|
|
16
16
|
export { _ as OrChip } from './OrChips.vue_rollup-plugin-vue_script-aa8fedaa.js';
|
|
17
17
|
export { _ as OrChips } from './OrChips-5e0063be.js';
|
|
18
|
-
export { _ as OrCode, O as OrCodeLanguages } from './OrCode-
|
|
18
|
+
export { _ as OrCode, O as OrCodeLanguages } from './OrCode-d4400b42.js';
|
|
19
19
|
export { _ as OrCollapse } from './OrCollapse-4d892ca3.js';
|
|
20
20
|
export { _ as OrColorPicker, h as amber, n as black, b as blue, m as blueGrey, k as brown, c as cyan, j as deepOrange, d as deepPurple, g as green, i as indigo, l as lightBlue, e as lightGreen, f as lime, o as orange, p as pink, a as purple, r as red, t as teal, w as white, y as yellow } from './OrColorPicker-75abefdd.js';
|
|
21
21
|
export { _ as OrConfirm } from './OrConfirm-d7112dd3.js';
|
|
22
|
-
export { C as ConfirmType, _ as OrConfirmV3 } from './OrConfirm-
|
|
22
|
+
export { C as ConfirmType, _ as OrConfirmV3 } from './OrConfirm-ec7aef0e.js';
|
|
23
23
|
export { D as DEFAULT_TEXT, _ as OrDateTimePicker, a as OrDateTimePickerItemTypes, O as OrDateTimePickerTypes } from './OrDateTimePicker-349df9b2.js';
|
|
24
24
|
export { _ as OrError } from './OrError-081130bb.js';
|
|
25
25
|
export { _ as OrErrorTagV3 } from './OrErrorTag-782dd714.js';
|
|
26
26
|
export { _ as OrErrorV3 } from './OrError-d267ee9a.js';
|
|
27
|
+
export { E as EmptyStateSize, _ as OrEmptyStateV3 } from './OrEmptyState-2481f13f.js';
|
|
27
28
|
export { a as ExpansionPanelColor, E as ExpansionPanelVariant, _ as OrExpansionPanelV3 } from './OrExpansionPanel-968ddc61.js';
|
|
28
29
|
export { F as FabColor, _ as OrFabV3 } from './OrFab-26106618.js';
|
|
29
30
|
export { _ as OrFloating, a as OrFloatingHideStrategy, O as OrFloatingPlacements } from './OrFloating-89d6582a.js';
|
|
@@ -63,7 +64,7 @@ export { _ as OrProgressV3, P as ProgressColor, a as ProgressType } from './OrPr
|
|
|
63
64
|
export { _ as OrRadio } from './OrRadio-e4198532.js';
|
|
64
65
|
export { _ as OrRadioGroup } from './OrRadioGroup-d9d32cba.js';
|
|
65
66
|
export { _ as OrRadioV3 } from './OrRadio-848ce55d.js';
|
|
66
|
-
export { _ as OrSearchV3 } from './OrSearch-
|
|
67
|
+
export { _ as OrSearchV3 } from './OrSearch-2f260b09.js';
|
|
67
68
|
export { _ as OrSegmentedControlV3, S as SegmentedControlSize } from './OrSegmentedControl-e8dce8f9.js';
|
|
68
69
|
export { _ as OrSelect } from './OrSelect-dae2b069.js';
|
|
69
70
|
export { _ as OrSelectV3 } from './OrSelect-f0ff5a85.js';
|
|
@@ -95,7 +96,7 @@ export { p as PropsV3, a as useQueueV3, u as useToastV3 } from './useToast-06654
|
|
|
95
96
|
export { _ as OrTooltip } from './OrTooltip-614b016d.js';
|
|
96
97
|
export { _ as OrTooltipContent } from './OrTooltip.vue_rollup-plugin-vue_script-63559536.js';
|
|
97
98
|
export { _ as OrTooltipV3 } from './OrTooltip-513bee30.js';
|
|
98
|
-
export { _ as OrRichTextEditorV3 } from './OrRichTextEditor-
|
|
99
|
+
export { _ as OrRichTextEditorV3 } from './OrRichTextEditor-2d152db0.js';
|
|
99
100
|
export { D as DropdownClose, a as DropdownOpen } from './dropdown-open-0d314aa4.js';
|
|
100
101
|
export { u as useClassAttribute } from './useClassAttribute-47fdb016.js';
|
|
101
102
|
export { u as useElevation } from './useElevation-31bfe1f6.js';
|
|
@@ -110,6 +111,8 @@ import './browser-82dea9ed.js';
|
|
|
110
111
|
import '@vueuse/core';
|
|
111
112
|
import '@splidejs/splide';
|
|
112
113
|
import '@codemirror/state';
|
|
114
|
+
import '@codemirror/view';
|
|
115
|
+
import '@codemirror/commands';
|
|
113
116
|
import 'codemirror';
|
|
114
117
|
import '@codemirror/lang-html';
|
|
115
118
|
import '@codemirror/lang-css';
|
|
@@ -145,6 +148,9 @@ import '@tiptap/starter-kit';
|
|
|
145
148
|
import '@tiptap/extension-underline';
|
|
146
149
|
import '@tiptap/extension-heading';
|
|
147
150
|
import '@tiptap/extension-placeholder';
|
|
151
|
+
import './codemirrorView-8ea431d2.js';
|
|
152
|
+
import 'prosemirror-state';
|
|
153
|
+
import 'prosemirror-commands';
|
|
148
154
|
|
|
149
155
|
function getAbbreviation(text, limit) {
|
|
150
156
|
var _a;
|
|
@@ -2,7 +2,8 @@ import { defineComponent, ref, computed, watchPostEffect } from 'vue-demi';
|
|
|
2
2
|
import { u as useClassAttribute } from './useClassAttribute-47fdb016.js';
|
|
3
3
|
import '@vueuse/core';
|
|
4
4
|
import { h as hslToColorString, g as generateHslFromString } from './color-1f348774.js';
|
|
5
|
-
import {
|
|
5
|
+
import { s as script$1 } from './OrIcon-b195169c.js';
|
|
6
|
+
import { resolveComponent, openBlock, createElementBlock, mergeProps, renderSlot, normalizeClass, createBlock, createCommentVNode } from 'vue';
|
|
6
7
|
|
|
7
8
|
var AvatarSize;
|
|
8
9
|
(function (AvatarSize) {
|
|
@@ -10,6 +11,7 @@ var AvatarSize;
|
|
|
10
11
|
AvatarSize["L"] = "l";
|
|
11
12
|
AvatarSize["M"] = "m";
|
|
12
13
|
AvatarSize["S"] = "s";
|
|
14
|
+
AvatarSize["XS"] = "xs";
|
|
13
15
|
})(AvatarSize || (AvatarSize = {}));
|
|
14
16
|
var AvatarColor;
|
|
15
17
|
(function (AvatarColor) {
|
|
@@ -34,24 +36,19 @@ const AvatarImage = [
|
|
|
34
36
|
const AvatarRootSizes = {
|
|
35
37
|
'xl': [
|
|
36
38
|
// Box
|
|
37
|
-
'w-[80px]', 'h-[80px]',
|
|
38
|
-
// Typography
|
|
39
|
-
'text-[32px]'],
|
|
39
|
+
'w-[80px]', 'h-[80px]'],
|
|
40
40
|
'l': [
|
|
41
41
|
// Box
|
|
42
|
-
'w-[64px]', 'h-[64px]',
|
|
43
|
-
// Typography
|
|
44
|
-
'text-[24px]'],
|
|
42
|
+
'w-[64px]', 'h-[64px]'],
|
|
45
43
|
'm': [
|
|
46
44
|
// Box
|
|
47
|
-
'w-[40px]', 'h-[40px]',
|
|
48
|
-
// Typography
|
|
49
|
-
'text-[16px]'],
|
|
45
|
+
'w-[40px]', 'h-[40px]'],
|
|
50
46
|
's': [
|
|
51
47
|
// Box
|
|
52
|
-
'w-[32px]', 'h-[32px]',
|
|
53
|
-
|
|
54
|
-
|
|
48
|
+
'w-[32px]', 'h-[32px]'],
|
|
49
|
+
'xs': [
|
|
50
|
+
// Box
|
|
51
|
+
'w-[24px]', 'h-[24px]']
|
|
55
52
|
};
|
|
56
53
|
const AvatarRootColors = {
|
|
57
54
|
[AvatarColor.blue]: [
|
|
@@ -73,9 +70,26 @@ const AvatarRootColors = {
|
|
|
73
70
|
// Theme
|
|
74
71
|
'text-white', 'dark:text-overlay-dark']
|
|
75
72
|
};
|
|
73
|
+
const AvatarRootAbbreviationSizes = {
|
|
74
|
+
'xl': ['typography-headline-1'],
|
|
75
|
+
'l': ['typography-headline-1'],
|
|
76
|
+
'm': ['typography-body-1-bold'],
|
|
77
|
+
's': ['typography-body-1-bold'],
|
|
78
|
+
'xs': ['typography-caption-semibold']
|
|
79
|
+
};
|
|
80
|
+
const AvatarRootIconSizes = {
|
|
81
|
+
'xl': ['text-[40px]'],
|
|
82
|
+
'l': ['text-[32px]'],
|
|
83
|
+
'm': ['text-[20px]'],
|
|
84
|
+
's': ['text-[16px]'],
|
|
85
|
+
'xs': ['text-[16px]']
|
|
86
|
+
};
|
|
76
87
|
|
|
77
88
|
var script = defineComponent({
|
|
78
89
|
name: 'OrAvatar',
|
|
90
|
+
components: {
|
|
91
|
+
OrIcon: script$1
|
|
92
|
+
},
|
|
79
93
|
inheritAttrs: false,
|
|
80
94
|
props: {
|
|
81
95
|
src: {
|
|
@@ -86,6 +100,10 @@ var script = defineComponent({
|
|
|
86
100
|
type: String,
|
|
87
101
|
default: AvatarSize.M
|
|
88
102
|
},
|
|
103
|
+
icon: {
|
|
104
|
+
type: String,
|
|
105
|
+
default: undefined
|
|
106
|
+
},
|
|
89
107
|
color: {
|
|
90
108
|
type: String,
|
|
91
109
|
default: AvatarColor.auto,
|
|
@@ -101,9 +119,12 @@ var script = defineComponent({
|
|
|
101
119
|
setup(props) {
|
|
102
120
|
// Refs
|
|
103
121
|
const root = ref();
|
|
122
|
+
const isIcon = computed(() => {
|
|
123
|
+
return !props.icon;
|
|
124
|
+
});
|
|
104
125
|
// Styles
|
|
105
126
|
const classAttribute = useClassAttribute();
|
|
106
|
-
const rootStyles = computed(() => ['or-avatar', ...AvatarRoot, ...AvatarRootSizes[props.size], ...AvatarRootColors[props.color], classAttribute.value]);
|
|
127
|
+
const rootStyles = computed(() => ['or-avatar', ...AvatarRoot, ...AvatarRootSizes[props.size], ...AvatarRootColors[props.color], ...(isIcon.value ? AvatarRootAbbreviationSizes[props.size] : AvatarRootIconSizes[props.size]), classAttribute.value]);
|
|
107
128
|
const imageStyles = computed(() => [...AvatarImage]);
|
|
108
129
|
// Effects
|
|
109
130
|
watchPostEffect(() => {
|
|
@@ -126,15 +147,21 @@ var script = defineComponent({
|
|
|
126
147
|
|
|
127
148
|
const _hoisted_1 = ["src"];
|
|
128
149
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
150
|
+
const _component_or_icon = resolveComponent("or-icon");
|
|
129
151
|
return openBlock(), createElementBlock("div", mergeProps({
|
|
130
152
|
ref: "root"
|
|
131
153
|
}, _ctx.$attrs, {
|
|
132
154
|
class: _ctx.rootStyles
|
|
133
|
-
}), [renderSlot(_ctx.$slots, "default", {}, () => [
|
|
155
|
+
}), [renderSlot(_ctx.$slots, "default", {}, () => [_ctx.src ? (openBlock(), createElementBlock("img", {
|
|
156
|
+
key: 0,
|
|
134
157
|
class: normalizeClass(_ctx.imageStyles),
|
|
135
158
|
src: _ctx.src,
|
|
136
159
|
alt: ''
|
|
137
|
-
}, null, 10 /* CLASS, PROPS */, _hoisted_1)
|
|
160
|
+
}, null, 10 /* CLASS, PROPS */, _hoisted_1)) : _ctx.icon ? (openBlock(), createBlock(_component_or_icon, {
|
|
161
|
+
key: 1,
|
|
162
|
+
icon: _ctx.icon,
|
|
163
|
+
size: "inherit"
|
|
164
|
+
}, null, 8 /* PROPS */, ["icon"])) : createCommentVNode("v-if", true)])], 16 /* FULL_PROPS */);
|
|
138
165
|
}
|
|
139
166
|
|
|
140
167
|
script.render = render;
|
|
@@ -29,6 +29,8 @@ const ButtonRoot = [
|
|
|
29
29
|
'layout-inline-row justify-center',
|
|
30
30
|
// Shape
|
|
31
31
|
'rounded-md',
|
|
32
|
+
// Sizing
|
|
33
|
+
'min-w-[96px]',
|
|
32
34
|
// Interactivity
|
|
33
35
|
'interactivity-auto',
|
|
34
36
|
// Typography
|
|
@@ -47,7 +49,9 @@ const ButtonRootVariants = {
|
|
|
47
49
|
'px-md md:px-md', 'py-sm+ md:py-sm', 'gap-sm+ md:gap-sm'],
|
|
48
50
|
'link': [
|
|
49
51
|
// Spacing
|
|
50
|
-
'gap-sm md:gap-xs'
|
|
52
|
+
'gap-sm md:gap-xs',
|
|
53
|
+
// Sizing
|
|
54
|
+
'min-w-[auto]']
|
|
51
55
|
};
|
|
52
56
|
const ButtonRootColors = {
|
|
53
57
|
'primary-contained': [
|
|
@@ -0,0 +1,298 @@
|
|
|
1
|
+
import { defineComponent, computed, ref, watch } from 'vue-demi';
|
|
2
|
+
import { u as useClassAttribute } from './useClassAttribute-47fdb016.js';
|
|
3
|
+
import '@vueuse/core';
|
|
4
|
+
import { s as script$2 } from './OrIconButton-1eebcafc.js';
|
|
5
|
+
import { s as script$4 } from './OrMenu-840038cd.js';
|
|
6
|
+
import './OrPopover-1075dd38.js';
|
|
7
|
+
import { s as script$5 } from './OrMenuItem-9da279f6.js';
|
|
8
|
+
import { s as script$6 } from './OrIcon-b195169c.js';
|
|
9
|
+
import { openBlock, createElementBlock, normalizeClass, Fragment, renderList, renderSlot, mergeProps, createTextVNode, toDisplayString, resolveComponent, createElementVNode, createVNode, withCtx, createBlock, createCommentVNode, normalizeProps, guardReactiveProps } from 'vue';
|
|
10
|
+
import { s as script$3 } from './OrButton-bb6bf8a9.js';
|
|
11
|
+
import { s as script$7 } from './OrSearch-e5a2e93e.js';
|
|
12
|
+
import './OrInputBox-6d1b6059.js';
|
|
13
|
+
|
|
14
|
+
const CardCollectionRoot = [
|
|
15
|
+
// Layout
|
|
16
|
+
'layout-column',
|
|
17
|
+
// Spacing
|
|
18
|
+
'gap-md'];
|
|
19
|
+
const CardCollectionToolbar = [
|
|
20
|
+
// Layout
|
|
21
|
+
'layout-row justify-between',
|
|
22
|
+
// Typography
|
|
23
|
+
'typography-body-2-regular',
|
|
24
|
+
// Theme
|
|
25
|
+
'theme-foreground-default', 'dark:theme-foreground-default-dark'];
|
|
26
|
+
const CardCollectionToolbarPanel = [
|
|
27
|
+
// Layout
|
|
28
|
+
'layout-row',
|
|
29
|
+
// Spacing
|
|
30
|
+
'gap-lg+'];
|
|
31
|
+
const CardCollectionContent = [
|
|
32
|
+
// Layout
|
|
33
|
+
'grid',
|
|
34
|
+
// Spacing
|
|
35
|
+
'gap-sm md:gap-md'];
|
|
36
|
+
const CardCollectionContentViews = {
|
|
37
|
+
'grid': [
|
|
38
|
+
// Layout
|
|
39
|
+
'sm:grid-cols-1', 'md:grid-cols-2', 'lg:grid-cols-4', 'xl:grid-cols-6'],
|
|
40
|
+
'list': ['grid-cols-1']
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
var script$1 = defineComponent({
|
|
44
|
+
name: 'OrCardCollectionView',
|
|
45
|
+
props: {
|
|
46
|
+
items: {
|
|
47
|
+
type: Array,
|
|
48
|
+
default: []
|
|
49
|
+
},
|
|
50
|
+
mode: {
|
|
51
|
+
type: String,
|
|
52
|
+
required: true
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
setup(props) {
|
|
56
|
+
const contentStyles = computed(() => [...CardCollectionContent, ...CardCollectionContentViews[props.mode]]);
|
|
57
|
+
return {
|
|
58
|
+
contentStyles
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
64
|
+
return openBlock(), createElementBlock("div", {
|
|
65
|
+
class: normalizeClass(_ctx.contentStyles)
|
|
66
|
+
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.items, (item, index) => {
|
|
67
|
+
return renderSlot(_ctx.$slots, "item", mergeProps({
|
|
68
|
+
key: item.key || index
|
|
69
|
+
}, {
|
|
70
|
+
item,
|
|
71
|
+
mode: _ctx.mode
|
|
72
|
+
}), () => [createTextVNode(toDisplayString(item.key), 1 /* TEXT */)]);
|
|
73
|
+
}), 128 /* KEYED_FRAGMENT */))], 2 /* CLASS */);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
script$1.render = render$1;
|
|
77
|
+
script$1.__file = "src/components/or-card-collection-v3/OrCardCollectionView.vue3.vue";
|
|
78
|
+
|
|
79
|
+
var DefaultCardCollectionViews;
|
|
80
|
+
(function (DefaultCardCollectionViews) {
|
|
81
|
+
DefaultCardCollectionViews["Grid"] = "grid";
|
|
82
|
+
DefaultCardCollectionViews["List"] = "list";
|
|
83
|
+
})(DefaultCardCollectionViews || (DefaultCardCollectionViews = {}));
|
|
84
|
+
const gridView = {
|
|
85
|
+
view: DefaultCardCollectionViews.Grid,
|
|
86
|
+
icon: 'grid_view'
|
|
87
|
+
};
|
|
88
|
+
const listView = {
|
|
89
|
+
view: DefaultCardCollectionViews.List,
|
|
90
|
+
icon: 'view_agenda'
|
|
91
|
+
};
|
|
92
|
+
const defaultViewModes = [gridView, listView];
|
|
93
|
+
|
|
94
|
+
var script = defineComponent({
|
|
95
|
+
name: 'OrCardCollection',
|
|
96
|
+
components: {
|
|
97
|
+
OrCardCollectionView: script$1,
|
|
98
|
+
OrIconButton: script$2,
|
|
99
|
+
OrButton: script$3,
|
|
100
|
+
OrMenu: script$4,
|
|
101
|
+
OrMenuItem: script$5,
|
|
102
|
+
OrIcon: script$6,
|
|
103
|
+
OrSearch: script$7
|
|
104
|
+
},
|
|
105
|
+
inheritAttrs: false,
|
|
106
|
+
props: {
|
|
107
|
+
items: {
|
|
108
|
+
type: Array,
|
|
109
|
+
default: []
|
|
110
|
+
},
|
|
111
|
+
view: {
|
|
112
|
+
type: String,
|
|
113
|
+
default: gridView.view
|
|
114
|
+
},
|
|
115
|
+
viewModes: {
|
|
116
|
+
type: Array,
|
|
117
|
+
default: () => defaultViewModes
|
|
118
|
+
},
|
|
119
|
+
sort: {
|
|
120
|
+
type: String,
|
|
121
|
+
default: undefined
|
|
122
|
+
},
|
|
123
|
+
sortOptions: {
|
|
124
|
+
type: Array,
|
|
125
|
+
default: () => []
|
|
126
|
+
},
|
|
127
|
+
search: {
|
|
128
|
+
type: String,
|
|
129
|
+
default: ''
|
|
130
|
+
},
|
|
131
|
+
searchPlaceholder: {
|
|
132
|
+
type: String,
|
|
133
|
+
default: undefined
|
|
134
|
+
},
|
|
135
|
+
searchDebounce: {
|
|
136
|
+
type: Number,
|
|
137
|
+
default: undefined
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
emits: ['viewChange', 'sortChange', 'searchChange'],
|
|
141
|
+
expose: ['root'],
|
|
142
|
+
setup(props, context) {
|
|
143
|
+
// Refs
|
|
144
|
+
const root = ref();
|
|
145
|
+
const sortMenu = ref();
|
|
146
|
+
const sortButton = ref();
|
|
147
|
+
// Styles
|
|
148
|
+
const classAttribute = useClassAttribute();
|
|
149
|
+
const rootStyles = computed(() => ['or-card-collection', ...CardCollectionRoot, classAttribute.value]);
|
|
150
|
+
const toolbarStyles = computed(() => [...CardCollectionToolbar]);
|
|
151
|
+
const toolbarPanelStyles = computed(() => [...CardCollectionToolbarPanel]);
|
|
152
|
+
const sortLabel = computed(() => {
|
|
153
|
+
var _a;
|
|
154
|
+
return (_a = props.sortOptions.find(item => item.value === props.sort)) === null || _a === void 0 ? void 0 : _a.label;
|
|
155
|
+
});
|
|
156
|
+
// State
|
|
157
|
+
const proxyView = ref(props.view);
|
|
158
|
+
const proxySort = ref(props.sort);
|
|
159
|
+
const proxySearch = ref(props.search);
|
|
160
|
+
// Methods
|
|
161
|
+
function switchView(view) {
|
|
162
|
+
proxyView.value = view;
|
|
163
|
+
}
|
|
164
|
+
function handleSort(sort) {
|
|
165
|
+
proxySort.value = sort;
|
|
166
|
+
}
|
|
167
|
+
function handleSearch(search) {
|
|
168
|
+
proxySearch.value = search;
|
|
169
|
+
}
|
|
170
|
+
// Effects
|
|
171
|
+
watch(() => props.view, value => {
|
|
172
|
+
proxyView.value = value;
|
|
173
|
+
});
|
|
174
|
+
watch(proxyView, value => {
|
|
175
|
+
context.emit('viewChange', value);
|
|
176
|
+
});
|
|
177
|
+
watch(() => props.sort, value => {
|
|
178
|
+
proxySort.value = value;
|
|
179
|
+
});
|
|
180
|
+
watch(proxySort, value => {
|
|
181
|
+
context.emit('sortChange', value);
|
|
182
|
+
});
|
|
183
|
+
watch(() => props.search, value => {
|
|
184
|
+
proxySearch.value = value;
|
|
185
|
+
});
|
|
186
|
+
watch(proxySearch, value => {
|
|
187
|
+
context.emit('searchChange', value);
|
|
188
|
+
});
|
|
189
|
+
return {
|
|
190
|
+
root,
|
|
191
|
+
sortMenu,
|
|
192
|
+
sortButton,
|
|
193
|
+
rootStyles,
|
|
194
|
+
toolbarStyles,
|
|
195
|
+
toolbarPanelStyles,
|
|
196
|
+
proxyView,
|
|
197
|
+
proxySort,
|
|
198
|
+
proxySearch,
|
|
199
|
+
sortLabel,
|
|
200
|
+
switchView,
|
|
201
|
+
handleSort,
|
|
202
|
+
handleSearch
|
|
203
|
+
};
|
|
204
|
+
}
|
|
205
|
+
});
|
|
206
|
+
|
|
207
|
+
const _hoisted_1 = {
|
|
208
|
+
class: "layout-row gap-sm"
|
|
209
|
+
};
|
|
210
|
+
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
211
|
+
const _component_OrIcon = resolveComponent("OrIcon");
|
|
212
|
+
const _component_OrButton = resolveComponent("OrButton");
|
|
213
|
+
const _component_OrMenuItem = resolveComponent("OrMenuItem");
|
|
214
|
+
const _component_OrMenu = resolveComponent("OrMenu");
|
|
215
|
+
const _component_OrSearch = resolveComponent("OrSearch");
|
|
216
|
+
const _component_OrIconButton = resolveComponent("OrIconButton");
|
|
217
|
+
const _component_OrCardCollectionView = resolveComponent("OrCardCollectionView");
|
|
218
|
+
return openBlock(), createElementBlock("div", mergeProps({
|
|
219
|
+
ref: "root"
|
|
220
|
+
}, _ctx.$attrs, {
|
|
221
|
+
class: _ctx.rootStyles
|
|
222
|
+
}), [createElementVNode("div", {
|
|
223
|
+
class: normalizeClass(_ctx.toolbarStyles)
|
|
224
|
+
}, [createElementVNode("div", {
|
|
225
|
+
class: normalizeClass(_ctx.toolbarPanelStyles)
|
|
226
|
+
}, [_ctx.sortOptions.length ? (openBlock(), createElementBlock(Fragment, {
|
|
227
|
+
key: 0
|
|
228
|
+
}, [createVNode(_component_OrButton, {
|
|
229
|
+
ref: "sortButton",
|
|
230
|
+
variant: "link",
|
|
231
|
+
color: "inherit",
|
|
232
|
+
onClick: _cache[0] || (_cache[0] = $event => _ctx.sortMenu.toggle())
|
|
233
|
+
}, {
|
|
234
|
+
default: withCtx(() => [createTextVNode(toDisplayString(_ctx.sortLabel) + " ", 1 /* TEXT */), _ctx.sortMenu ? (openBlock(), createBlock(_component_OrIcon, {
|
|
235
|
+
key: 0,
|
|
236
|
+
icon: _ctx.sortMenu.isOpen ? 'arrow_drop_up' : 'arrow_drop_down'
|
|
237
|
+
}, null, 8 /* PROPS */, ["icon"])) : createCommentVNode("v-if", true)]),
|
|
238
|
+
_: 1 /* STABLE */
|
|
239
|
+
}, 512 /* NEED_PATCH */), createVNode(_component_OrMenu, {
|
|
240
|
+
ref: "sortMenu",
|
|
241
|
+
trigger: _ctx.sortButton && _ctx.sortButton.root
|
|
242
|
+
}, {
|
|
243
|
+
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.sortOptions, sortItem => {
|
|
244
|
+
return openBlock(), createBlock(_component_OrMenuItem, {
|
|
245
|
+
key: sortItem,
|
|
246
|
+
onClick: $event => _ctx.handleSort(sortItem.value)
|
|
247
|
+
}, {
|
|
248
|
+
default: withCtx(() => [createTextVNode(toDisplayString(sortItem.label), 1 /* TEXT */)]),
|
|
249
|
+
|
|
250
|
+
_: 2 /* DYNAMIC */
|
|
251
|
+
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["onClick"]);
|
|
252
|
+
}), 128 /* KEYED_FRAGMENT */))]),
|
|
253
|
+
|
|
254
|
+
_: 1 /* STABLE */
|
|
255
|
+
}, 8 /* PROPS */, ["trigger"])], 64 /* STABLE_FRAGMENT */)) : createCommentVNode("v-if", true)], 2 /* CLASS */), createElementVNode("div", {
|
|
256
|
+
class: normalizeClass(_ctx.toolbarPanelStyles)
|
|
257
|
+
}, [createVNode(_component_OrSearch, {
|
|
258
|
+
"model-value": _ctx.proxySearch,
|
|
259
|
+
class: "md:w-[350px]",
|
|
260
|
+
placeholder: _ctx.searchPlaceholder,
|
|
261
|
+
debounce: _ctx.searchDebounce,
|
|
262
|
+
size: "s",
|
|
263
|
+
onSearch: _ctx.handleSearch
|
|
264
|
+
}, null, 8 /* PROPS */, ["model-value", "placeholder", "debounce", "onSearch"]), createElementVNode("div", _hoisted_1, [_ctx.viewModes.length > 1 ? (openBlock(true), createElementBlock(Fragment, {
|
|
265
|
+
key: 0
|
|
266
|
+
}, renderList(_ctx.viewModes, viewOption => {
|
|
267
|
+
return openBlock(), createBlock(_component_OrIconButton, {
|
|
268
|
+
key: viewOption.view,
|
|
269
|
+
icon: {
|
|
270
|
+
icon: viewOption.icon,
|
|
271
|
+
variant: viewOption.view === _ctx.proxyView ? 'filled' : 'outlined'
|
|
272
|
+
},
|
|
273
|
+
onClick: $event => _ctx.switchView(viewOption.view)
|
|
274
|
+
}, null, 8 /* PROPS */, ["icon", "onClick"]);
|
|
275
|
+
}), 128 /* KEYED_FRAGMENT */)) : createCommentVNode("v-if", true), renderSlot(_ctx.$slots, "addon")])], 2 /* CLASS */)], 2 /* CLASS */), renderSlot(_ctx.$slots, "header", normalizeProps(guardReactiveProps({
|
|
276
|
+
items: _ctx.items,
|
|
277
|
+
mode: _ctx.proxyView
|
|
278
|
+
}))), _ctx.items.length ? renderSlot(_ctx.$slots, _ctx.proxyView, normalizeProps(mergeProps({
|
|
279
|
+
key: 0
|
|
280
|
+
}, {
|
|
281
|
+
items: _ctx.items
|
|
282
|
+
})), () => [createVNode(_component_OrCardCollectionView, {
|
|
283
|
+
items: _ctx.items,
|
|
284
|
+
mode: _ctx.proxyView
|
|
285
|
+
}, {
|
|
286
|
+
item: withCtx(props => [renderSlot(_ctx.$slots, "item", normalizeProps(guardReactiveProps(props)))]),
|
|
287
|
+
_: 3 /* FORWARDED */
|
|
288
|
+
}, 8 /* PROPS */, ["items", "mode"])]) : _ctx.items.length === 0 && _ctx.proxySearch.length > 0 ? renderSlot(_ctx.$slots, "noSearchResults", normalizeProps(mergeProps({
|
|
289
|
+
key: 1
|
|
290
|
+
}, {
|
|
291
|
+
search: _ctx.proxySearch
|
|
292
|
+
})), () => [createTextVNode(" No results ")]) : createCommentVNode("v-if", true)], 16 /* FULL_PROPS */);
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
script.render = render;
|
|
296
|
+
script.__file = "src/components/or-card-collection-v3/OrCardCollection.vue";
|
|
297
|
+
|
|
298
|
+
export { DefaultCardCollectionViews as D, defaultViewModes as d, gridView as g, listView as l, script as s };
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { EditorState } from '@codemirror/state';
|
|
2
|
+
import { keymap } from '@codemirror/view';
|
|
3
|
+
import { indentWithTab } from '@codemirror/commands';
|
|
2
4
|
import { useElementHover } from '@vueuse/core';
|
|
3
5
|
import { basicSetup, EditorView } from 'codemirror';
|
|
4
6
|
import _ from 'lodash';
|
|
@@ -199,7 +201,7 @@ var script = defineComponent({
|
|
|
199
201
|
}
|
|
200
202
|
}),
|
|
201
203
|
// line wrapping
|
|
202
|
-
lineWrapping ? EditorView.lineWrapping : undefined]);
|
|
204
|
+
lineWrapping ? EditorView.lineWrapping : undefined, keymap.of([indentWithTab])]);
|
|
203
205
|
// Append Extensions (such as basic-setup)
|
|
204
206
|
if (this.extensions.length !== 0) _.merge(ext, this.extensions);
|
|
205
207
|
return ext;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, watch } from 'vue-demi';
|
|
2
|
-
import { s as script$2, a as ButtonColor } from './OrButton-
|
|
2
|
+
import { s as script$2, a as ButtonColor } from './OrButton-bb6bf8a9.js';
|
|
3
3
|
import { s as script$1 } from './OrOverlay-738a44d5.js';
|
|
4
4
|
import { s as script$3 } from './OrInput-41691fb3.js';
|
|
5
5
|
import { useMagicKeys, whenever } from '@vueuse/core';
|