@onereach/ui-components 2.63.0-beta.1907.0 → 2.63.1-beta.1936.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/v2/OrCardCollection-5d5046f1.js +227 -0
- package/dist/v2/{OrConfirm-8d149ece.js → OrConfirm-edc537b3.js} +1 -1
- package/dist/v2/{OrIconButton-5883eba0.js → OrIconButton-2088a37f.js} +1 -1
- package/dist/v2/{OrInlineInput-16a343c1.js → OrInlineInput-da65c72a.js} +9 -8
- package/dist/v2/{OrInlineTextarea-f154bdf5.js → OrInlineTextarea-da66759a.js} +9 -8
- package/dist/v2/{OrInput-4a50fe57.js → OrInput-655bed71.js} +9 -7
- package/dist/v2/{OrModal-64c5ae2e.js → OrModal-a1452b11.js} +1 -1
- package/dist/v2/{OrNotification-9c164908.js → OrNotification-ac420f39.js} +1 -1
- package/dist/v2/{OrSearch-a247f072.js → OrSearch-287a08a9.js} +1 -1
- package/dist/v2/OrSegmentedControl-17df63b8.js +236 -0
- package/dist/v2/{OrSelect-f416b7aa.js → OrSelect-1a353817.js} +4 -4
- package/dist/v2/OrSortHeader-a6004b24.js +133 -0
- package/dist/v2/{OrTabs-b4a9740b.js → OrTabs-f2a60b41.js} +1 -1
- package/dist/v2/{OrTag-ab03c4f7.js → OrTag-1ced4e58.js} +1 -1
- package/dist/v2/{OrTextarea-8773d494.js → OrTextarea-cc70afc9.js} +5 -5
- package/dist/v2/{OrTooltip-caeac590.js → OrTooltip-afe7030b.js} +33 -3
- package/dist/v2/components/index.d.ts +3 -0
- package/dist/v2/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +17 -0
- package/dist/v2/components/or-card-collection-v3/OrCardCollection.vue.d.ts +98 -0
- package/dist/v2/components/or-card-collection-v3/index.d.ts +3 -0
- package/dist/v2/components/or-card-collection-v3/props.d.ts +4 -0
- package/dist/v2/components/or-card-collection-v3/styles.d.ts +6 -0
- package/dist/v2/components/or-card-collection-v3/types.d.ts +7 -0
- package/dist/v2/components/{or-rich-text-editor-v3/OrRichTextEditor.stories3.d.ts → or-segmented-control-v3/OrSegmentedControl.stories3.d.ts} +1 -1
- package/dist/v2/components/or-segmented-control-v3/OrSegmentedControl.vue.d.ts +77 -0
- package/dist/v2/components/or-segmented-control-v3/components/or-segmented-control-item/OrSegmentedControlItem.vue.d.ts +47 -0
- package/dist/v2/components/or-segmented-control-v3/components/or-segmented-control-item/styles.d.ts +3 -0
- package/dist/v2/components/or-segmented-control-v3/index.d.ts +3 -0
- package/dist/v2/components/or-segmented-control-v3/props.d.ts +4 -0
- package/dist/v2/components/or-segmented-control-v3/styles.d.ts +3 -0
- package/dist/v2/components/or-segmented-control-v3/types.d.ts +4 -0
- package/dist/{v3/components/or-rich-text-editor-v3/OrRichTextEditor.stories3.d.ts → v2/components/or-sort-header-v3/OrSortHeader.stories3.d.ts} +1 -1
- package/dist/v2/components/or-sort-header-v3/OrSortHeader.vue.d.ts +57 -0
- package/dist/v2/components/or-sort-header-v3/index.d.ts +2 -0
- package/dist/v2/components/or-sort-header-v3/styles.d.ts +1 -0
- package/dist/v2/components/or-sort-header-v3/types.d.ts +4 -0
- package/dist/v2/components/or-tooltip-v3/styles.d.ts +2 -0
- package/dist/v2/index.js +17 -14
- package/dist/v2/index11.js +20 -1
- package/dist/v2/index12.js +3 -12
- package/dist/v2/index13.js +3 -2
- package/dist/v2/index14.js +11 -5
- package/dist/v2/index15.js +5 -14
- package/dist/v2/index16.js +4 -19
- package/dist/v2/index17.js +28 -4
- package/dist/v2/index18.js +3 -7
- package/dist/v2/index19.js +5 -23
- package/dist/v2/index2.js +17 -14
- package/dist/v2/index20.js +25 -21
- package/dist/v2/index21.js +21 -18
- package/dist/v2/index22.js +20 -2
- package/dist/v2/index23.js +2 -4
- package/dist/v2/index24.js +2 -1
- package/dist/v2/index25.js +1 -2
- package/dist/v2/index26.js +2 -2
- package/dist/v2/index27.js +4 -7
- package/dist/v2/index28.js +6 -2
- package/dist/v2/index29.js +3 -3
- package/dist/v2/index30.js +3 -10
- package/dist/v2/index31.js +9 -12
- package/dist/v2/index32.js +11 -1
- package/dist/v2/index33.js +1 -1
- package/dist/v2/index34.js +1 -16
- package/dist/v2/index35.js +17 -17
- package/dist/v2/index36.js +17 -17
- package/dist/v2/index37.js +16 -1
- package/dist/v2/index38.js +1 -17
- package/dist/v2/index39.js +18 -22
- package/dist/v2/index40.js +22 -2
- package/dist/v2/index41.js +3 -3
- package/dist/v2/index42.js +1 -1
- package/dist/v2/index43.js +3 -20
- package/dist/v2/index44.js +1 -7
- package/dist/v2/index45.js +24 -1
- package/dist/v2/index46.js +3 -3
- package/dist/v2/index47.js +1 -2
- package/dist/v2/index48.js +2 -9
- package/dist/v2/index49.js +10 -17
- package/dist/v2/index50.js +17 -13
- package/dist/v2/index51.js +13 -14
- package/dist/v2/index52.js +14 -13
- package/dist/v2/index53.js +12 -15
- package/dist/v2/index54.js +16 -1
- package/dist/v2/index55.js +2 -6
- package/dist/v2/index56.js +1 -5
- package/dist/v2/index57.js +10 -3
- package/dist/v2/index58.js +2 -4
- package/dist/v2/index59.js +5 -3
- package/dist/v2/index60.js +2 -1
- package/dist/v2/index61.js +2 -5
- package/dist/v2/index62.js +6 -334
- package/dist/v2/index63.js +4 -4
- package/dist/v2/index64.js +2 -16
- package/dist/v2/index65.js +15 -24
- package/dist/v2/index66.js +26 -4
- package/dist/v2/index67.js +2 -1
- package/dist/v2/index68.js +3 -4
- package/dist/v2/index69.js +3 -4
- package/dist/v2/index70.js +3 -10
- package/dist/v2/index71.js +3 -6
- package/dist/v2/index72.js +4 -4
- package/dist/v2/index73.js +15 -6
- package/dist/v2/index74.js +2 -2
- package/dist/v2/index75.js +6 -3
- package/dist/v2/index76.js +4 -3
- package/dist/v2/index77.js +1 -2
- package/dist/v2/index78.js +2 -14
- package/dist/v2/index79.js +2 -10
- package/dist/v2/index80.js +5 -4
- package/dist/v2/index81.js +12 -2
- package/dist/v2/index82.js +14 -2
- package/dist/v2/index83.js +2 -3
- package/dist/v2/index84.js +2 -8
- package/dist/v2/index85.js +2 -20
- package/dist/v2/index86.js +8 -18
- package/dist/v2/index87.js +21 -1
- package/dist/v2/index88.js +17 -16
- package/dist/v2/index89.js +1 -1
- package/dist/v2/index90.js +17 -9
- package/dist/v2/index91.js +2 -12
- package/dist/v2/index92.js +10 -1
- package/dist/v2/index93.js +12 -6
- package/dist/v2/index94.js +1 -2
- package/dist/v2/index95.js +7 -0
- package/dist/v2/index96.js +3 -0
- package/dist/v2/{types-fb93ea4e.js → types-89aad7fb.js} +1 -1
- package/dist/v3/OrCardCollection-c6f3ac23.js +198 -0
- package/dist/v3/{OrConfirm-456ddee1.js → OrConfirm-0bafcc7b.js} +1 -1
- package/dist/v3/{OrIconButton-b8066b5d.js → OrIconButton-5fb3a9aa.js} +1 -1
- package/dist/v3/{OrInlineInput-280768ba.js → OrInlineInput-d9bbc08c.js} +9 -6
- package/dist/v3/{OrInlineTextarea-0f63f344.js → OrInlineTextarea-d5a97ed9.js} +9 -6
- package/dist/v3/{OrInput-3eef7945.js → OrInput-db4813b4.js} +11 -6
- package/dist/v3/{OrModal-f67d37d3.js → OrModal-3a43b7e7.js} +1 -1
- package/dist/v3/{OrNotification-fefa1cb4.js → OrNotification-433d16f7.js} +1 -1
- package/dist/v3/{OrSearch-15a70678.js → OrSearch-0c29f499.js} +1 -1
- package/dist/v3/OrSegmentedControl-2bbc0f22.js +184 -0
- package/dist/v3/{OrSelect-9d300f55.js → OrSelect-323a87b4.js} +7 -5
- package/dist/v3/OrSortHeader-5eba50cd.js +104 -0
- package/dist/v3/{OrTabs-194ca950.js → OrTabs-ac0be933.js} +1 -1
- package/dist/v3/{OrTag-144b4ab8.js → OrTag-deaff080.js} +1 -1
- package/dist/v3/{OrTextarea-09aa33dc.js → OrTextarea-98895b2a.js} +6 -4
- package/dist/v3/{OrTooltip-30e05f9e.js → OrTooltip-36c6728c.js} +33 -3
- package/dist/v3/components/index.d.ts +3 -0
- package/dist/v3/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +17 -0
- package/dist/v3/components/or-card-collection-v3/OrCardCollection.vue.d.ts +98 -0
- package/dist/v3/components/or-card-collection-v3/index.d.ts +3 -0
- package/dist/v3/components/or-card-collection-v3/props.d.ts +4 -0
- package/dist/v3/components/or-card-collection-v3/styles.d.ts +6 -0
- package/dist/v3/components/or-card-collection-v3/types.d.ts +7 -0
- package/dist/v3/components/or-segmented-control-v3/OrSegmentedControl.stories3.d.ts +12 -0
- package/dist/v3/components/or-segmented-control-v3/OrSegmentedControl.vue.d.ts +77 -0
- package/dist/v3/components/or-segmented-control-v3/components/or-segmented-control-item/OrSegmentedControlItem.vue.d.ts +47 -0
- package/dist/v3/components/or-segmented-control-v3/components/or-segmented-control-item/styles.d.ts +3 -0
- package/dist/v3/components/or-segmented-control-v3/index.d.ts +3 -0
- package/dist/v3/components/or-segmented-control-v3/props.d.ts +4 -0
- package/dist/v3/components/or-segmented-control-v3/styles.d.ts +3 -0
- package/dist/v3/components/or-segmented-control-v3/types.d.ts +4 -0
- package/dist/v3/components/or-sort-header-v3/OrSortHeader.stories3.d.ts +12 -0
- package/dist/v3/components/or-sort-header-v3/OrSortHeader.vue.d.ts +57 -0
- package/dist/v3/components/or-sort-header-v3/index.d.ts +2 -0
- package/dist/v3/components/or-sort-header-v3/styles.d.ts +1 -0
- package/dist/v3/components/or-sort-header-v3/types.d.ts +4 -0
- package/dist/v3/components/or-tooltip-v3/styles.d.ts +2 -0
- package/dist/v3/index.js +17 -14
- package/dist/v3/index11.js +19 -1
- package/dist/v3/index12.js +3 -11
- package/dist/v3/index13.js +3 -2
- package/dist/v3/index14.js +9 -4
- package/dist/v3/index15.js +4 -11
- package/dist/v3/index16.js +3 -17
- package/dist/v3/index17.js +25 -4
- package/dist/v3/index18.js +3 -6
- package/dist/v3/index19.js +5 -20
- package/dist/v3/index2.js +17 -14
- package/dist/v3/index20.js +21 -20
- package/dist/v3/index21.js +20 -15
- package/dist/v3/index22.js +16 -1
- package/dist/v3/index23.js +2 -4
- package/dist/v3/index24.js +2 -1
- package/dist/v3/index25.js +1 -2
- package/dist/v3/index26.js +2 -2
- package/dist/v3/index27.js +4 -6
- package/dist/v3/index28.js +5 -2
- package/dist/v3/index29.js +3 -3
- package/dist/v3/index30.js +3 -9
- package/dist/v3/index31.js +8 -11
- package/dist/v3/index32.js +10 -1
- package/dist/v3/index33.js +1 -1
- package/dist/v3/index34.js +1 -15
- package/dist/v3/index35.js +16 -14
- package/dist/v3/index36.js +14 -16
- package/dist/v3/index37.js +16 -2
- package/dist/v3/index38.js +2 -17
- package/dist/v3/index39.js +17 -17
- package/dist/v3/index40.js +16 -1
- package/dist/v3/index41.js +3 -3
- package/dist/v3/index42.js +1 -1
- package/dist/v3/index43.js +3 -16
- package/dist/v3/index44.js +1 -7
- package/dist/v3/index45.js +20 -1
- package/dist/v3/index46.js +3 -3
- package/dist/v3/index47.js +1 -2
- package/dist/v3/index48.js +2 -8
- package/dist/v3/index49.js +9 -14
- package/dist/v3/index50.js +14 -12
- package/dist/v3/index51.js +12 -11
- package/dist/v3/index52.js +11 -12
- package/dist/v3/index53.js +11 -11
- package/dist/v3/index54.js +12 -1
- package/dist/v3/index55.js +2 -5
- package/dist/v3/index56.js +1 -5
- package/dist/v3/index57.js +9 -3
- package/dist/v3/index58.js +2 -4
- package/dist/v3/index59.js +5 -3
- package/dist/v3/index60.js +2 -1
- package/dist/v3/index61.js +1 -4
- package/dist/v3/index62.js +6 -307
- package/dist/v3/index63.js +4 -4
- package/dist/v3/index64.js +2 -15
- package/dist/v3/index65.js +13 -22
- package/dist/v3/index66.js +24 -3
- package/dist/v3/index67.js +2 -1
- package/dist/v3/index68.js +3 -4
- package/dist/v3/index69.js +3 -4
- package/dist/v3/index70.js +3 -9
- package/dist/v3/index71.js +3 -4
- package/dist/v3/index72.js +4 -4
- package/dist/v3/index73.js +11 -5
- package/dist/v3/index74.js +2 -2
- package/dist/v3/index75.js +5 -2
- package/dist/v3/index76.js +4 -3
- package/dist/v3/index77.js +1 -2
- package/dist/v3/index78.js +2 -13
- package/dist/v3/index79.js +2 -9
- package/dist/v3/index80.js +5 -4
- package/dist/v3/index81.js +11 -1
- package/dist/v3/index82.js +13 -1
- package/dist/v3/index83.js +1 -3
- package/dist/v3/index84.js +1 -8
- package/dist/v3/index85.js +2 -17
- package/dist/v3/index86.js +7 -14
- package/dist/v3/index87.js +18 -1
- package/dist/v3/index88.js +14 -15
- package/dist/v3/index89.js +1 -1
- package/dist/v3/index90.js +15 -6
- package/dist/v3/index91.js +2 -11
- package/dist/v3/index92.js +8 -1
- package/dist/v3/index93.js +11 -6
- package/dist/v3/index94.js +1 -2
- package/dist/v3/index95.js +7 -0
- package/dist/v3/index96.js +3 -0
- package/dist/v3/{types-a2a8f948.js → types-d5d4ab32.js} +1 -1
- package/package.json +2 -8
- package/src/components/index.ts +3 -0
- package/src/components/or-card-collection-v3/OrCardCollection.docs.mdx +3 -0
- package/src/components/or-card-collection-v3/OrCardCollection.stories3.ts +162 -0
- package/src/components/or-card-collection-v3/OrCardCollection.vue +210 -0
- package/src/components/or-card-collection-v3/index.ts +3 -0
- package/src/components/or-card-collection-v3/props.ts +4 -0
- package/src/components/or-card-collection-v3/styles.ts +53 -0
- package/src/components/or-card-collection-v3/types.ts +8 -0
- package/src/components/or-checkbox-v3/OrCheckbox.stories3.ts +1 -1
- package/src/components/or-inline-input-v3/OrInlineInput.vue +14 -12
- package/src/components/or-inline-textarea-v3/OrInlineTextarea.vue +14 -12
- package/src/components/or-input-v3/OrInput.vue +33 -29
- package/src/components/or-radio-v3/OrRadio.stories3.ts +1 -1
- package/src/components/or-segmented-control-v3/OrSegmentedControl.docs.mdx +7 -0
- package/src/components/or-segmented-control-v3/OrSegmentedControl.stories3.ts +106 -0
- package/src/components/or-segmented-control-v3/OrSegmentedControl.vue +107 -0
- package/src/components/or-segmented-control-v3/components/or-segmented-control-item/OrSegmentedControlItem.vue +64 -0
- package/src/components/or-segmented-control-v3/components/or-segmented-control-item/styles.ts +50 -0
- package/src/components/or-segmented-control-v3/index.ts +3 -0
- package/src/components/or-segmented-control-v3/props.ts +4 -0
- package/src/components/or-segmented-control-v3/styles.ts +24 -0
- package/src/components/or-segmented-control-v3/types.ts +4 -0
- package/src/components/or-select-v3/OrSelect.vue +5 -3
- package/src/components/or-sort-header-v3/OrSortHeader.docs.mdx +3 -0
- package/src/components/or-sort-header-v3/OrSortHeader.stories3.ts +132 -0
- package/src/components/or-sort-header-v3/OrSortHeader.vue +111 -0
- package/src/components/or-sort-header-v3/index.ts +2 -0
- package/src/components/or-sort-header-v3/styles.ts +23 -0
- package/src/components/or-sort-header-v3/types.ts +4 -0
- package/src/components/or-switch-v3/OrSwitch.stories3.ts +1 -1
- package/src/components/or-tabs-v3/OrTabs.stories3.ts +9 -4
- package/src/components/or-tabs-v3/OrTabs.vue +1 -1
- package/src/components/or-textarea-v3/OrTextarea.vue +12 -10
- package/src/components/or-tooltip-v3/OrTooltip.vue +3 -2
- package/src/components/or-tooltip-v3/styles.ts +55 -0
- package/src/hooks/useClassAttribute.ts +1 -1
- package/dist/v2/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +0 -111
- package/dist/v2/components/or-rich-text-editor-v3/index.d.ts +0 -1
- package/dist/v2/components/or-rich-text-editor-v3/styles.d.ts +0 -7
- package/dist/v3/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +0 -111
- package/dist/v3/components/or-rich-text-editor-v3/index.d.ts +0 -1
- package/dist/v3/components/or-rich-text-editor-v3/styles.d.ts +0 -7
- 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 -57
- package/src/components/or-rich-text-editor-v3/OrRichTextEditor.vue +0 -322
- package/src/components/or-rich-text-editor-v3/index.ts +0 -1
- package/src/components/or-rich-text-editor-v3/styles.ts +0 -71
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
import { defineComponent, ref, computed, watch } from 'vue-demi';
|
|
2
|
+
import { u as useClassAttribute } from './useClassAttribute-47fdb016.js';
|
|
3
|
+
import '@vueuse/core';
|
|
4
|
+
import { _ as __vue_component__$1 } from './OrCard-1d904e72.js';
|
|
5
|
+
import { _ as __vue_component__$2 } from './OrIconButton-2088a37f.js';
|
|
6
|
+
import { _ as __vue_component__$3 } from './OrInput-655bed71.js';
|
|
7
|
+
import { _ as __vue_component__$4 } from './OrSortHeader-a6004b24.js';
|
|
8
|
+
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
9
|
+
|
|
10
|
+
var CardCollectionView;
|
|
11
|
+
(function (CardCollectionView) {
|
|
12
|
+
CardCollectionView["Grid"] = "grid";
|
|
13
|
+
CardCollectionView["List"] = "list";
|
|
14
|
+
})(CardCollectionView || (CardCollectionView = {}));
|
|
15
|
+
|
|
16
|
+
const CardCollectionRoot = [
|
|
17
|
+
// Layout
|
|
18
|
+
'flex flex-col',
|
|
19
|
+
// Spacing
|
|
20
|
+
'gap-md'];
|
|
21
|
+
const CardCollectionToolbar = [
|
|
22
|
+
// Layout
|
|
23
|
+
'flex', 'justify-between', 'items-center',
|
|
24
|
+
// Typography
|
|
25
|
+
'typography-body-2-regular',
|
|
26
|
+
// Theme
|
|
27
|
+
'theme-foreground-default', 'dark:theme-foreground-default-dark'];
|
|
28
|
+
const CardCollectionToolbarPanel = [
|
|
29
|
+
// Layout
|
|
30
|
+
'flex', 'justify-normal', 'items-center',
|
|
31
|
+
// Spacing
|
|
32
|
+
'gap-sm'];
|
|
33
|
+
const CardCollectionContent = [
|
|
34
|
+
// Layout
|
|
35
|
+
'grid',
|
|
36
|
+
// Spacing
|
|
37
|
+
'gap-sm md:gap-md'];
|
|
38
|
+
const CardCollectionContentViews = {
|
|
39
|
+
'grid': [
|
|
40
|
+
// Layout
|
|
41
|
+
'sm:grid-cols-1', 'md:grid-cols-2', 'lg:grid-cols-4', 'xl:grid-cols-6'],
|
|
42
|
+
'list': []
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
var script = defineComponent({
|
|
46
|
+
name: 'OrCardCollection',
|
|
47
|
+
components: {
|
|
48
|
+
OrCard: __vue_component__$1,
|
|
49
|
+
OrIconButton: __vue_component__$2,
|
|
50
|
+
OrInput: __vue_component__$3,
|
|
51
|
+
OrSortHeader: __vue_component__$4
|
|
52
|
+
},
|
|
53
|
+
inheritAttrs: false,
|
|
54
|
+
props: {
|
|
55
|
+
items: {
|
|
56
|
+
type: Array,
|
|
57
|
+
default: []
|
|
58
|
+
},
|
|
59
|
+
view: {
|
|
60
|
+
type: String,
|
|
61
|
+
default: CardCollectionView.Grid
|
|
62
|
+
},
|
|
63
|
+
sort: {
|
|
64
|
+
type: Object,
|
|
65
|
+
default: undefined
|
|
66
|
+
},
|
|
67
|
+
sortHeaders: {
|
|
68
|
+
type: Array,
|
|
69
|
+
default: undefined
|
|
70
|
+
},
|
|
71
|
+
search: {
|
|
72
|
+
type: String,
|
|
73
|
+
default: undefined
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
emits: ['viewChange', 'sortChange', 'searchChange'],
|
|
77
|
+
expose: ['root'],
|
|
78
|
+
setup(props, context) {
|
|
79
|
+
// Refs
|
|
80
|
+
const root = ref();
|
|
81
|
+
// Styles
|
|
82
|
+
const classAttribute = useClassAttribute();
|
|
83
|
+
const rootStyles = computed(() => ['or-card-collection', ...CardCollectionRoot, classAttribute.value]);
|
|
84
|
+
const toolbarStyles = computed(() => [...CardCollectionToolbar]);
|
|
85
|
+
const toolbarPanelStyles = computed(() => [...CardCollectionToolbarPanel]);
|
|
86
|
+
const contentStyles = computed(() => [...CardCollectionContent, ...CardCollectionContentViews[proxyView.value]]);
|
|
87
|
+
// State
|
|
88
|
+
const proxyView = ref(props.view);
|
|
89
|
+
const proxySort = ref(props.sort);
|
|
90
|
+
const proxySearch = ref(props.search);
|
|
91
|
+
// Methods
|
|
92
|
+
function switchToGridView() {
|
|
93
|
+
proxyView.value = CardCollectionView.Grid;
|
|
94
|
+
}
|
|
95
|
+
function switchToListView() {
|
|
96
|
+
proxyView.value = CardCollectionView.List;
|
|
97
|
+
}
|
|
98
|
+
// Effects
|
|
99
|
+
watch(() => props.view, value => {
|
|
100
|
+
proxyView.value = value;
|
|
101
|
+
});
|
|
102
|
+
watch(proxyView, value => {
|
|
103
|
+
context.emit('viewChange', value);
|
|
104
|
+
});
|
|
105
|
+
watch(() => props.sort, value => {
|
|
106
|
+
proxySort.value = value;
|
|
107
|
+
});
|
|
108
|
+
watch(proxySort, value => {
|
|
109
|
+
context.emit('sortChange', value);
|
|
110
|
+
});
|
|
111
|
+
watch(() => props.search, value => {
|
|
112
|
+
proxySearch.value = value;
|
|
113
|
+
});
|
|
114
|
+
watch(proxySearch, value => {
|
|
115
|
+
context.emit('searchChange', value);
|
|
116
|
+
});
|
|
117
|
+
return {
|
|
118
|
+
root,
|
|
119
|
+
rootStyles,
|
|
120
|
+
toolbarStyles,
|
|
121
|
+
toolbarPanelStyles,
|
|
122
|
+
contentStyles,
|
|
123
|
+
proxyView,
|
|
124
|
+
proxySort,
|
|
125
|
+
proxySearch,
|
|
126
|
+
switchToGridView,
|
|
127
|
+
switchToListView
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
});
|
|
131
|
+
|
|
132
|
+
/* script */
|
|
133
|
+
const __vue_script__ = script;
|
|
134
|
+
|
|
135
|
+
/* template */
|
|
136
|
+
var __vue_render__ = function () {
|
|
137
|
+
var _vm = this;
|
|
138
|
+
var _h = _vm.$createElement;
|
|
139
|
+
var _c = _vm._self._c || _h;
|
|
140
|
+
return _c('div', _vm._b({
|
|
141
|
+
ref: "root",
|
|
142
|
+
class: _vm.rootStyles
|
|
143
|
+
}, 'div', _vm.$attrs, false), [_c('div', {
|
|
144
|
+
class: _vm.toolbarStyles
|
|
145
|
+
}, [_c('div', {
|
|
146
|
+
class: _vm.toolbarPanelStyles
|
|
147
|
+
}, [_vm.sortHeaders ? _vm._l(_vm.sortHeaders, function (header) {
|
|
148
|
+
return _c('OrSortHeader', {
|
|
149
|
+
key: header.value,
|
|
150
|
+
attrs: {
|
|
151
|
+
"input-value": header.value
|
|
152
|
+
},
|
|
153
|
+
model: {
|
|
154
|
+
value: _vm.proxySort,
|
|
155
|
+
callback: function ($$v) {
|
|
156
|
+
_vm.proxySort = $$v;
|
|
157
|
+
},
|
|
158
|
+
expression: "proxySort"
|
|
159
|
+
}
|
|
160
|
+
}, [_vm._v("\n " + _vm._s(header.label) + "\n ")]);
|
|
161
|
+
}) : _vm._e()], 2), _vm._v(" "), _c('div', {
|
|
162
|
+
class: _vm.toolbarPanelStyles
|
|
163
|
+
}, [_c('OrInput', {
|
|
164
|
+
attrs: {
|
|
165
|
+
"type": 'search',
|
|
166
|
+
"placeholder": 'Search',
|
|
167
|
+
"size": 's'
|
|
168
|
+
},
|
|
169
|
+
model: {
|
|
170
|
+
value: _vm.proxySearch,
|
|
171
|
+
callback: function ($$v) {
|
|
172
|
+
_vm.proxySearch = $$v;
|
|
173
|
+
},
|
|
174
|
+
expression: "proxySearch"
|
|
175
|
+
}
|
|
176
|
+
}), _vm._v(" "), _c('OrIconButton', {
|
|
177
|
+
attrs: {
|
|
178
|
+
"icon": 'grid_view'
|
|
179
|
+
},
|
|
180
|
+
on: {
|
|
181
|
+
"click": function ($event) {
|
|
182
|
+
return _vm.switchToGridView();
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
}), _vm._v(" "), _c('OrIconButton', {
|
|
186
|
+
attrs: {
|
|
187
|
+
"icon": 'view_list'
|
|
188
|
+
},
|
|
189
|
+
on: {
|
|
190
|
+
"click": function ($event) {
|
|
191
|
+
return _vm.switchToListView();
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
}), _vm._v(" "), _vm._t("addon")], 2)]), _vm._v(" "), _c('div', {
|
|
195
|
+
class: _vm.contentStyles
|
|
196
|
+
}, [_vm.proxyView === 'grid' ? _vm._l(_vm.items, function (item) {
|
|
197
|
+
return _c('OrCard', {
|
|
198
|
+
key: item.id
|
|
199
|
+
}, [_vm._t("gridItem", null, null, item)], 2);
|
|
200
|
+
}) : _vm._e(), _vm._v(" "), _vm.proxyView === 'list' ? _vm._l(_vm.items, function (item) {
|
|
201
|
+
return _c('OrCard', {
|
|
202
|
+
key: item.id
|
|
203
|
+
}, [_vm._t("listItem", null, null, item)], 2);
|
|
204
|
+
}) : _vm._e()], 2)]);
|
|
205
|
+
};
|
|
206
|
+
var __vue_staticRenderFns__ = [];
|
|
207
|
+
|
|
208
|
+
/* style */
|
|
209
|
+
const __vue_inject_styles__ = undefined;
|
|
210
|
+
/* scoped */
|
|
211
|
+
const __vue_scope_id__ = undefined;
|
|
212
|
+
/* module identifier */
|
|
213
|
+
const __vue_module_identifier__ = undefined;
|
|
214
|
+
/* functional template */
|
|
215
|
+
const __vue_is_functional_template__ = false;
|
|
216
|
+
/* style inject */
|
|
217
|
+
|
|
218
|
+
/* style inject SSR */
|
|
219
|
+
|
|
220
|
+
/* style inject shadow dom */
|
|
221
|
+
|
|
222
|
+
const __vue_component__ = /*#__PURE__*/normalizeComponent({
|
|
223
|
+
render: __vue_render__,
|
|
224
|
+
staticRenderFns: __vue_staticRenderFns__
|
|
225
|
+
}, __vue_inject_styles__, __vue_script__, __vue_scope_id__, __vue_is_functional_template__, __vue_module_identifier__, false, undefined, undefined, undefined);
|
|
226
|
+
|
|
227
|
+
export { CardCollectionView as C, __vue_component__ as _ };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, watch } from 'vue-demi';
|
|
2
2
|
import { _ as __vue_component__$2, a as ButtonColor } from './OrButton-eb895669.js';
|
|
3
3
|
import { _ as __vue_component__$1 } from './OrOverlay-4838a9b0.js';
|
|
4
|
-
import { _ as __vue_component__$3 } from './OrInput-
|
|
4
|
+
import { _ as __vue_component__$3 } from './OrInput-655bed71.js';
|
|
5
5
|
import { useMagicKeys, whenever } from '@vueuse/core';
|
|
6
6
|
import { logicAnd } from '@vueuse/math';
|
|
7
7
|
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
@@ -2,7 +2,7 @@ import { defineComponent, ref, computed } from 'vue-demi';
|
|
|
2
2
|
import { u as useClassAttribute } from './useClassAttribute-47fdb016.js';
|
|
3
3
|
import '@vueuse/core';
|
|
4
4
|
import { _ as __vue_component__$1 } from './OrIcon-124f3bad.js';
|
|
5
|
-
import { _ as __vue_component__$2 } from './OrTooltip-
|
|
5
|
+
import { _ as __vue_component__$2 } from './OrTooltip-afe7030b.js';
|
|
6
6
|
import './OrPopover-9080fc00.js';
|
|
7
7
|
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
8
8
|
|
|
@@ -3,7 +3,7 @@ import { u as useClassAttribute } from './useClassAttribute-47fdb016.js';
|
|
|
3
3
|
import '@vueuse/core';
|
|
4
4
|
import { _ as __vue_component__$1 } from './OrError-be656098.js';
|
|
5
5
|
import { _ as __vue_component__$2 } from './OrHint-44356417.js';
|
|
6
|
-
import { _ as __vue_component__$3 } from './OrIconButton-
|
|
6
|
+
import { _ as __vue_component__$3 } from './OrIconButton-2088a37f.js';
|
|
7
7
|
import { _ as __vue_component__$4, I as InlineInputBoxSize } from './OrInlineInputBox-6a15ea2b.js';
|
|
8
8
|
import { s as styleInject } from './style-inject.es-4c6f2515.js';
|
|
9
9
|
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
@@ -129,14 +129,15 @@ var script = defineComponent({
|
|
|
129
129
|
activated.value = false;
|
|
130
130
|
}
|
|
131
131
|
function reset() {
|
|
132
|
+
var _a;
|
|
132
133
|
if (draftModelValue.value !== proxyModelValue.value) {
|
|
133
|
-
draftModelValue.value = proxyModelValue.value;
|
|
134
|
+
draftModelValue.value = (_a = proxyModelValue.value) !== null && _a !== void 0 ? _a : '';
|
|
134
135
|
}
|
|
135
136
|
activated.value = false;
|
|
136
137
|
}
|
|
137
138
|
// Effects
|
|
138
139
|
watch(proxyModelValue, value => {
|
|
139
|
-
draftModelValue.value = value;
|
|
140
|
+
draftModelValue.value = value !== null && value !== void 0 ? value : '';
|
|
140
141
|
}, {
|
|
141
142
|
immediate: true
|
|
142
143
|
});
|
|
@@ -160,7 +161,7 @@ var script = defineComponent({
|
|
|
160
161
|
}
|
|
161
162
|
});
|
|
162
163
|
|
|
163
|
-
var css_248z = "input[data-v-
|
|
164
|
+
var css_248z = "input[data-v-28f73e22]{min-width:0;background:0 0;outline:0}input[type=number][data-v-28f73e22]::-webkit-inner-spin-button{display:none}input[type=search][data-v-28f73e22]::-webkit-search-cancel-button{display:none}";
|
|
164
165
|
styleInject(css_248z);
|
|
165
166
|
|
|
166
167
|
/* script */
|
|
@@ -310,15 +311,15 @@ var __vue_render__ = function () {
|
|
|
310
311
|
return _vm.reset.apply(null, arguments);
|
|
311
312
|
}
|
|
312
313
|
}
|
|
313
|
-
})], 1)] : _vm._e()], 2), _vm._v(" "), !_vm.invalid ? [_c('OrHint', {
|
|
314
|
+
})], 1)] : _vm._e()], 2), _vm._v(" "), !_vm.invalid ? [_vm.hint || _vm.maxLength ? [_c('OrHint', {
|
|
314
315
|
scopedSlots: _vm._u([_vm.maxLength ? {
|
|
315
316
|
key: "addon",
|
|
316
317
|
fn: function () {
|
|
317
|
-
return [_vm._v("\n
|
|
318
|
+
return [_vm._v("\n " + _vm._s(_vm.currentLength) + " / " + _vm._s(_vm.maxLength) + "\n ")];
|
|
318
319
|
},
|
|
319
320
|
proxy: true
|
|
320
321
|
} : null], null, true)
|
|
321
|
-
}, [_vm._v("\n
|
|
322
|
+
}, [_vm._v("\n " + _vm._s(_vm.hint) + "\n\n ")])] : _vm._e()] : [_c('OrError', {
|
|
322
323
|
scopedSlots: _vm._u([_vm.maxLength ? {
|
|
323
324
|
key: "addon",
|
|
324
325
|
fn: function () {
|
|
@@ -333,7 +334,7 @@ var __vue_staticRenderFns__ = [];
|
|
|
333
334
|
/* style */
|
|
334
335
|
const __vue_inject_styles__ = undefined;
|
|
335
336
|
/* scoped */
|
|
336
|
-
const __vue_scope_id__ = "data-v-
|
|
337
|
+
const __vue_scope_id__ = "data-v-28f73e22";
|
|
337
338
|
/* module identifier */
|
|
338
339
|
const __vue_module_identifier__ = undefined;
|
|
339
340
|
/* functional template */
|
|
@@ -3,7 +3,7 @@ import { u as useClassAttribute } from './useClassAttribute-47fdb016.js';
|
|
|
3
3
|
import '@vueuse/core';
|
|
4
4
|
import { _ as __vue_component__$1 } from './OrError-be656098.js';
|
|
5
5
|
import { _ as __vue_component__$2 } from './OrHint-44356417.js';
|
|
6
|
-
import { _ as __vue_component__$3 } from './OrIconButton-
|
|
6
|
+
import { _ as __vue_component__$3 } from './OrIconButton-2088a37f.js';
|
|
7
7
|
import { _ as __vue_component__$4 } from './OrInlineInputBox-6a15ea2b.js';
|
|
8
8
|
import { s as styleInject } from './style-inject.es-4c6f2515.js';
|
|
9
9
|
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
@@ -115,14 +115,15 @@ var script = defineComponent({
|
|
|
115
115
|
activated.value = false;
|
|
116
116
|
}
|
|
117
117
|
function reset() {
|
|
118
|
+
var _a;
|
|
118
119
|
if (draftModelValue.value !== proxyModelValue.value) {
|
|
119
|
-
draftModelValue.value = proxyModelValue.value;
|
|
120
|
+
draftModelValue.value = (_a = proxyModelValue.value) !== null && _a !== void 0 ? _a : '';
|
|
120
121
|
}
|
|
121
122
|
activated.value = false;
|
|
122
123
|
}
|
|
123
124
|
// Effects
|
|
124
125
|
watch(proxyModelValue, value => {
|
|
125
|
-
draftModelValue.value = value;
|
|
126
|
+
draftModelValue.value = value !== null && value !== void 0 ? value : '';
|
|
126
127
|
}, {
|
|
127
128
|
immediate: true
|
|
128
129
|
});
|
|
@@ -146,7 +147,7 @@ var script = defineComponent({
|
|
|
146
147
|
}
|
|
147
148
|
});
|
|
148
149
|
|
|
149
|
-
var css_248z = "textarea[data-v-
|
|
150
|
+
var css_248z = "textarea[data-v-23c697a5]{min-width:0;background:0 0;outline:0}";
|
|
150
151
|
styleInject(css_248z);
|
|
151
152
|
|
|
152
153
|
/* script */
|
|
@@ -222,15 +223,15 @@ var __vue_render__ = function () {
|
|
|
222
223
|
return _vm.reset.apply(null, arguments);
|
|
223
224
|
}
|
|
224
225
|
}
|
|
225
|
-
})], 1)] : _vm._e()], 2), _vm._v(" "), !_vm.invalid ? [_c('OrHint', {
|
|
226
|
+
})], 1)] : _vm._e()], 2), _vm._v(" "), !_vm.invalid ? [_vm.hint || _vm.maxLength ? [_c('OrHint', {
|
|
226
227
|
scopedSlots: _vm._u([_vm.maxLength ? {
|
|
227
228
|
key: "addon",
|
|
228
229
|
fn: function () {
|
|
229
|
-
return [_vm._v("\n
|
|
230
|
+
return [_vm._v("\n " + _vm._s(_vm.currentLength) + " / " + _vm._s(_vm.maxLength) + "\n ")];
|
|
230
231
|
},
|
|
231
232
|
proxy: true
|
|
232
233
|
} : null], null, true)
|
|
233
|
-
}, [_vm._v("\n
|
|
234
|
+
}, [_vm._v("\n " + _vm._s(_vm.hint) + "\n\n ")])] : _vm._e()] : [_c('OrError', {
|
|
234
235
|
scopedSlots: _vm._u([_vm.maxLength ? {
|
|
235
236
|
key: "addon",
|
|
236
237
|
fn: function () {
|
|
@@ -245,7 +246,7 @@ var __vue_staticRenderFns__ = [];
|
|
|
245
246
|
/* style */
|
|
246
247
|
const __vue_inject_styles__ = undefined;
|
|
247
248
|
/* scoped */
|
|
248
|
-
const __vue_scope_id__ = "data-v-
|
|
249
|
+
const __vue_scope_id__ = "data-v-23c697a5";
|
|
249
250
|
/* module identifier */
|
|
250
251
|
const __vue_module_identifier__ = undefined;
|
|
251
252
|
/* functional template */
|
|
@@ -3,7 +3,7 @@ import { u as useClassAttribute } from './useClassAttribute-47fdb016.js';
|
|
|
3
3
|
import '@vueuse/core';
|
|
4
4
|
import { _ as __vue_component__$1 } from './OrError-be656098.js';
|
|
5
5
|
import { _ as __vue_component__$2 } from './OrHint-44356417.js';
|
|
6
|
-
import { _ as __vue_component__$4 } from './OrIconButton-
|
|
6
|
+
import { _ as __vue_component__$4 } from './OrIconButton-2088a37f.js';
|
|
7
7
|
import { _ as __vue_component__$3 } from './OrIcon-124f3bad.js';
|
|
8
8
|
import { _ as __vue_component__$5, a as InputBoxSize } from './OrInputBox-208dceac.js';
|
|
9
9
|
import { _ as __vue_component__$6 } from './OrLabel-5670468e.js';
|
|
@@ -143,7 +143,7 @@ var script = defineComponent({
|
|
|
143
143
|
}
|
|
144
144
|
});
|
|
145
145
|
|
|
146
|
-
var css_248z = "input[data-v-
|
|
146
|
+
var css_248z = "input[data-v-2b692b9f]{min-width:0;background:0 0;outline:0}input[type=number][data-v-2b692b9f]::-webkit-inner-spin-button{display:none}input[type=search][data-v-2b692b9f]::-webkit-search-cancel-button{display:none}";
|
|
147
147
|
styleInject(css_248z);
|
|
148
148
|
|
|
149
149
|
/* script */
|
|
@@ -302,7 +302,9 @@ var __vue_render__ = function () {
|
|
|
302
302
|
_vm.proxyModelValue = $event.target.value;
|
|
303
303
|
}
|
|
304
304
|
}
|
|
305
|
-
}, 'input', _vm.$attrs, false)), _vm._v(" "),
|
|
305
|
+
}, 'input', _vm.$attrs, false)), _vm._v(" "), _c('div', {
|
|
306
|
+
class: ['-m-xs', 'ml-none']
|
|
307
|
+
}, [_vm.type === 'password' ? [_c('OrIconButton', {
|
|
306
308
|
attrs: {
|
|
307
309
|
"icon": {
|
|
308
310
|
icon: _vm.disclosed ? 'visibility_off' : 'visibility',
|
|
@@ -334,18 +336,18 @@ var __vue_render__ = function () {
|
|
|
334
336
|
"icon": 'search',
|
|
335
337
|
"variant": 'outlined'
|
|
336
338
|
}
|
|
337
|
-
})]] : _vm._e()], 2), _vm._v(" "), !_vm.invalid ? [_c('OrHint', {
|
|
339
|
+
})]] : _vm._e()], 2)]), _vm._v(" "), !_vm.invalid ? [_vm.hint || _vm.maxLength ? [_c('OrHint', {
|
|
338
340
|
attrs: {
|
|
339
341
|
"disabled": _vm.disabled
|
|
340
342
|
},
|
|
341
343
|
scopedSlots: _vm._u([_vm.maxLength ? {
|
|
342
344
|
key: "addon",
|
|
343
345
|
fn: function () {
|
|
344
|
-
return [_vm._v("\n
|
|
346
|
+
return [_vm._v("\n " + _vm._s(_vm.currentLength) + " / " + _vm._s(_vm.maxLength) + "\n ")];
|
|
345
347
|
},
|
|
346
348
|
proxy: true
|
|
347
349
|
} : null], null, true)
|
|
348
|
-
}, [_vm._v("\n
|
|
350
|
+
}, [_vm._v("\n " + _vm._s(_vm.hint) + "\n\n ")])] : _vm._e()] : [_c('OrError', {
|
|
349
351
|
attrs: {
|
|
350
352
|
"disabled": _vm.disabled
|
|
351
353
|
},
|
|
@@ -363,7 +365,7 @@ var __vue_staticRenderFns__ = [];
|
|
|
363
365
|
/* style */
|
|
364
366
|
const __vue_inject_styles__ = undefined;
|
|
365
367
|
/* scoped */
|
|
366
|
-
const __vue_scope_id__ = "data-v-
|
|
368
|
+
const __vue_scope_id__ = "data-v-2b692b9f";
|
|
367
369
|
/* module identifier */
|
|
368
370
|
const __vue_module_identifier__ = undefined;
|
|
369
371
|
/* functional template */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, watch } from 'vue-demi';
|
|
2
2
|
import { u as useClassAttribute } from './useClassAttribute-47fdb016.js';
|
|
3
3
|
import '@vueuse/core';
|
|
4
|
-
import { _ as __vue_component__$2 } from './OrIconButton-
|
|
4
|
+
import { _ as __vue_component__$2 } from './OrIconButton-2088a37f.js';
|
|
5
5
|
import { _ as __vue_component__$1 } from './OrOverlay-4838a9b0.js';
|
|
6
6
|
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, ref, computed } from 'vue-demi';
|
|
2
2
|
import { u as useClassAttribute } from './useClassAttribute-47fdb016.js';
|
|
3
3
|
import '@vueuse/core';
|
|
4
|
-
import { _ as __vue_component__$2 } from './OrIconButton-
|
|
4
|
+
import { _ as __vue_component__$2 } from './OrIconButton-2088a37f.js';
|
|
5
5
|
import { _ as __vue_component__$1 } from './OrIcon-124f3bad.js';
|
|
6
6
|
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, ref, computed } from 'vue-demi';
|
|
2
2
|
import { debouncedWatch } from '@vueuse/core';
|
|
3
3
|
import { u as useClassAttribute } from './useClassAttribute-47fdb016.js';
|
|
4
|
-
import { _ as __vue_component__$1 } from './OrInput-
|
|
4
|
+
import { _ as __vue_component__$1 } from './OrInput-655bed71.js';
|
|
5
5
|
import { a as InputBoxSize } from './OrInputBox-208dceac.js';
|
|
6
6
|
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
7
7
|
|