@onereach/ui-components 2.72.2-beta.2257.0 → 2.72.2-beta.2260.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/{OrCardCollection-134b0ffe.js → OrCardCollection-06ecb8e1.js} +1 -1
- package/dist/bundled/v2/{OrConfirm-3eceda8f.js → OrConfirm-8c0e957d.js} +1 -1
- package/dist/bundled/v2/{OrInput-eebed0aa.js → OrInput-00070eee.js} +11 -28
- package/dist/bundled/v2/{OrInputBox-10aecdc4.js → OrInputBox-2f559e98.js} +1 -1
- package/dist/bundled/v2/{OrSearch-5093c721.js → OrSearch-bb87b34c.js} +2 -2
- package/dist/bundled/v2/{OrSelect-974a83f8.js → OrSelect-2ececfc1.js} +2 -2
- package/dist/bundled/v2/{OrSidebar-c95ef614.js → OrSidebar-64cc9127.js} +92 -86
- package/dist/bundled/v2/OrSidebarCollapseButton-fcc085c7.js +235 -0
- package/dist/bundled/v2/{OrTextarea-dba56362.js → OrTextarea-5c57c02b.js} +1 -1
- package/dist/bundled/v2/components/index.js +10 -9
- package/dist/bundled/v2/components/or-card-collection-v3/index.js +4 -4
- package/dist/bundled/v2/components/or-confirm-v3/index.js +3 -3
- package/dist/bundled/v2/components/or-input-box-v3/index.js +1 -1
- package/dist/bundled/v2/components/or-input-v3/OrInput.vue.d.ts +0 -13
- package/dist/bundled/v2/components/or-input-v3/index.js +2 -3
- package/dist/bundled/v2/components/or-search-v3/index.js +3 -4
- package/dist/bundled/v2/components/or-select-v3/index.js +3 -4
- package/dist/bundled/v2/components/or-sidebar-v3/OrSidebar.stories3.d.ts +36 -1
- package/dist/bundled/v2/components/or-sidebar-v3/OrSidebar.vue.d.ts +49 -4
- package/dist/bundled/v2/components/or-sidebar-v3/index.js +13 -1
- package/dist/bundled/v2/components/or-sidebar-v3/partials/OrSidebarCollapseButton.stories3.d.ts +12 -0
- package/dist/bundled/v2/components/or-sidebar-v3/partials/OrSidebarCollapseButton.vue.d.ts +53 -0
- package/dist/bundled/v2/components/or-sidebar-v3/partials/index.d.ts +1 -0
- package/dist/bundled/v2/components/or-sidebar-v3/partials/index.js +18 -0
- package/dist/bundled/v2/components/or-sidebar-v3/styles.d.ts +9 -1
- package/dist/bundled/v2/components/or-textarea-v3/index.js +2 -2
- package/dist/bundled/v2/index.js +10 -9
- package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-bd6bc732.js → OrCardCollection.vue_vue_type_script_lang-e2980d04.js} +1 -1
- package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-b7e3ac90.js → OrConfirm.vue_vue_type_script_lang-eb2bfce2.js} +2 -2
- package/dist/bundled/v3/{OrInput-889fbd90.js → OrInput-dcf2606e.js} +6 -15
- package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-8d2b69ae.js → OrInput.vue_vue_type_script_lang-27220623.js} +3 -15
- package/dist/bundled/v3/{OrInputBox-c8beb6c2.js → OrInputBox-4c7900c2.js} +1 -1
- package/dist/bundled/v3/{OrInputBox.vue_vue_type_script_lang-0174af07.js → OrInputBox.vue_vue_type_script_lang-47d98e81.js} +1 -1
- package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-97d023eb.js → OrSearch.vue_vue_type_script_lang-321907ec.js} +3 -3
- package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-b20d66fa.js → OrSelect.vue_vue_type_script_lang-7fd5e2f0.js} +4 -4
- package/dist/bundled/v3/{OrSidebar.vue_vue_type_script_lang-ce0b152c.js → OrSidebar.vue_vue_type_script_lang-a150808b.js} +75 -80
- package/dist/bundled/v3/OrSidebarCollapseButton.vue_vue_type_script_lang-d3e3cd4f.js +185 -0
- package/dist/bundled/v3/{OrTextarea.vue_vue_type_script_lang-7c88ef85.js → OrTextarea.vue_vue_type_script_lang-296da567.js} +2 -2
- package/dist/bundled/v3/components/index.js +12 -11
- package/dist/bundled/v3/components/or-card-collection-v3/index.js +6 -6
- package/dist/bundled/v3/components/or-confirm-v3/index.js +5 -5
- package/dist/bundled/v3/components/or-input-box-v3/index.js +1 -1
- package/dist/bundled/v3/components/or-input-v3/OrInput.vue.d.ts +0 -13
- package/dist/bundled/v3/components/or-input-v3/index.js +3 -5
- package/dist/bundled/v3/components/or-search-v3/index.js +5 -7
- package/dist/bundled/v3/components/or-select-v3/index.js +5 -7
- package/dist/bundled/v3/components/or-sidebar-v3/OrSidebar.stories3.d.ts +36 -1
- package/dist/bundled/v3/components/or-sidebar-v3/OrSidebar.vue.d.ts +49 -4
- package/dist/bundled/v3/components/or-sidebar-v3/index.js +16 -2
- package/dist/bundled/v3/components/or-sidebar-v3/partials/OrSidebarCollapseButton.stories3.d.ts +12 -0
- package/dist/bundled/v3/components/or-sidebar-v3/partials/OrSidebarCollapseButton.vue.d.ts +53 -0
- package/dist/bundled/v3/components/or-sidebar-v3/partials/index.d.ts +1 -0
- package/dist/bundled/v3/components/or-sidebar-v3/partials/index.js +17 -0
- package/dist/bundled/v3/components/or-sidebar-v3/styles.d.ts +9 -1
- package/dist/bundled/v3/components/or-textarea-v3/index.js +3 -3
- package/dist/bundled/v3/index.js +39 -22
- package/dist/esm/v2/{OrCardCollection-4f8957aa.js → OrCardCollection-251ab033.js} +2 -2
- package/dist/esm/v2/{OrConfirm-d87f2ae9.js → OrConfirm-9dbdedd7.js} +1 -1
- package/dist/esm/v2/{OrInput-cf2900cd.js → OrInput-59a15d80.js} +11 -28
- package/dist/esm/v2/{OrInputBox-1a8887df.js → OrInputBox-9ceb9fc4.js} +1 -1
- package/dist/esm/v2/{OrSearch-3e058ad4.js → OrSearch-f42d588d.js} +2 -2
- package/dist/esm/v2/{OrSelect-bf21fff7.js → OrSelect-e31d1c8b.js} +2 -2
- package/dist/esm/v2/{OrSidebar-fabc7bc9.js → OrSidebar-a10424d2.js} +92 -86
- package/dist/esm/v2/OrSidebarCollapseButton-3b461dfe.js +233 -0
- package/dist/esm/v2/{OrTextarea-2ec6facd.js → OrTextarea-a5a3572b.js} +1 -1
- package/dist/esm/v2/components/index.js +10 -9
- package/dist/esm/v2/components/or-card-collection-v3/index.js +4 -4
- package/dist/esm/v2/components/or-confirm-v3/index.js +4 -4
- package/dist/esm/v2/components/or-input-box-v3/index.js +1 -1
- package/dist/esm/v2/components/or-input-v3/OrInput.vue.d.ts +0 -13
- package/dist/esm/v2/components/or-input-v3/index.js +3 -4
- package/dist/esm/v2/components/or-search-v3/index.js +4 -5
- package/dist/esm/v2/components/or-select-v3/index.js +4 -5
- package/dist/esm/v2/components/or-sidebar-v3/OrSidebar.stories3.d.ts +36 -1
- package/dist/esm/v2/components/or-sidebar-v3/OrSidebar.vue.d.ts +49 -4
- package/dist/esm/v2/components/or-sidebar-v3/index.js +13 -1
- package/dist/esm/v2/components/or-sidebar-v3/partials/OrSidebarCollapseButton.stories3.d.ts +12 -0
- package/dist/esm/v2/components/or-sidebar-v3/partials/OrSidebarCollapseButton.vue.d.ts +53 -0
- package/dist/esm/v2/components/or-sidebar-v3/partials/index.d.ts +1 -0
- package/dist/esm/v2/components/or-sidebar-v3/partials/index.js +16 -0
- package/dist/esm/v2/components/or-sidebar-v3/styles.d.ts +9 -1
- package/dist/esm/v2/components/or-textarea-v3/index.js +2 -2
- package/dist/esm/v2/index.js +9 -8
- package/dist/esm/v3/{OrCardCollection-ab9b6d70.js → OrCardCollection-8b8e3745.js} +2 -2
- package/dist/esm/v3/{OrConfirm-223b1303.js → OrConfirm-37454a63.js} +1 -1
- package/dist/esm/v3/{OrInput-5afc20da.js → OrInput-bd054213.js} +7 -27
- package/dist/esm/v3/{OrInputBox-74646840.js → OrInputBox-e16ade90.js} +1 -1
- package/dist/esm/v3/{OrSearch-100ed7c8.js → OrSearch-4c5c44f2.js} +2 -2
- package/dist/esm/v3/{OrSelect-f1a2a55d.js → OrSelect-466e50ca.js} +2 -2
- package/dist/esm/v3/{OrSidebar-a62972f5.js → OrSidebar-3be35e8d.js} +81 -89
- package/dist/esm/v3/OrSidebarCollapseButton-30d0033b.js +204 -0
- package/dist/esm/v3/{OrTextarea-3e28946b.js → OrTextarea-37566985.js} +1 -1
- package/dist/esm/v3/components/index.js +10 -9
- package/dist/esm/v3/components/or-card-collection-v3/index.js +4 -4
- package/dist/esm/v3/components/or-confirm-v3/index.js +4 -4
- package/dist/esm/v3/components/or-input-box-v3/index.js +1 -1
- package/dist/esm/v3/components/or-input-v3/OrInput.vue.d.ts +0 -13
- package/dist/esm/v3/components/or-input-v3/index.js +3 -4
- package/dist/esm/v3/components/or-search-v3/index.js +4 -5
- package/dist/esm/v3/components/or-select-v3/index.js +4 -5
- package/dist/esm/v3/components/or-sidebar-v3/OrSidebar.stories3.d.ts +36 -1
- package/dist/esm/v3/components/or-sidebar-v3/OrSidebar.vue.d.ts +49 -4
- package/dist/esm/v3/components/or-sidebar-v3/index.js +12 -1
- package/dist/esm/v3/components/or-sidebar-v3/partials/OrSidebarCollapseButton.stories3.d.ts +12 -0
- package/dist/esm/v3/components/or-sidebar-v3/partials/OrSidebarCollapseButton.vue.d.ts +53 -0
- package/dist/esm/v3/components/or-sidebar-v3/partials/index.d.ts +1 -0
- package/dist/esm/v3/components/or-sidebar-v3/partials/index.js +15 -0
- package/dist/esm/v3/components/or-sidebar-v3/styles.d.ts +9 -1
- package/dist/esm/v3/components/or-textarea-v3/index.js +2 -2
- package/dist/esm/v3/index.js +9 -8
- package/package.json +1 -1
- package/src/components/or-input-box-v3/styles.ts +2 -2
- package/src/components/or-input-v3/OrInput.stories3.ts +0 -4
- package/src/components/or-input-v3/OrInput.vue +19 -39
- package/src/components/or-sidebar-v3/OrSidebar.docs.mdx +6 -0
- package/src/components/or-sidebar-v3/OrSidebar.stories3.ts +253 -12
- package/src/components/or-sidebar-v3/OrSidebar.vue +130 -23
- package/src/components/or-sidebar-v3/partials/OrSidebarCollapseButton.stories3.ts +48 -0
- package/src/components/or-sidebar-v3/partials/OrSidebarCollapseButton.vue +74 -0
- package/src/components/or-sidebar-v3/partials/index.ts +1 -0
- package/src/components/or-sidebar-v3/styles.ts +164 -9
package/dist/esm/v2/index.js
CHANGED
|
@@ -8,7 +8,7 @@ export { a as BUTTON_COLOR, c as BUTTON_LOADER_TYPE, b as BUTTON_SIZE, B as BUTT
|
|
|
8
8
|
export { a as ButtonColor, b as ButtonType, B as ButtonVariant, _ as OrButtonV3 } from './OrButton-66964360.js';
|
|
9
9
|
export { _ as OrCard } from './OrCard-b7268256.js';
|
|
10
10
|
export { C as CARD_COLLECTION_LAYOUT, _ as OrCardCollection } from './OrCardCollection-19582949.js';
|
|
11
|
-
export { D as DefaultCardCollectionViews, _ as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from './OrCardCollection-
|
|
11
|
+
export { D as DefaultCardCollectionViews, _ as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from './OrCardCollection-251ab033.js';
|
|
12
12
|
export { _ as OrCardV3 } from './OrCard-e89c44ef.js';
|
|
13
13
|
export { a as OrCarousel, _ as OrCarouselItem } from './OrCarouselItem-4e2cf3d8.js';
|
|
14
14
|
export { _ as OrCheckbox } from './OrCheckbox-915f1f0a.js';
|
|
@@ -19,7 +19,7 @@ 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-ede619eb.js';
|
|
22
|
-
export { C as ConfirmType, _ as OrConfirmV3 } from './OrConfirm-
|
|
22
|
+
export { C as ConfirmType, _ as OrConfirmV3 } from './OrConfirm-9dbdedd7.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-80f82cdf.js';
|
|
@@ -37,8 +37,8 @@ export { I as InlineInputBoxSize, I as InlineInputSize, _ as OrInlineInputBoxV3
|
|
|
37
37
|
export { I as InlineInputType, _ as OrInlineInputV3 } from './OrInlineInput-b85b84b4.js';
|
|
38
38
|
export { a as InlineTextEditTrimmingTypes, I as InlineTextEditTypes, _ as OrInlineTextEdit } from './OrInlineTextEdit-b47cfc2d.js';
|
|
39
39
|
export { _ as OrInlineTextareaV3 } from './OrInlineTextarea-afd33047.js';
|
|
40
|
-
export { a as InputBoxSize, I as InputBoxVariant, a as InputSize, _ as OrInputBoxV3, a as SearchSize, a as SelectSize, a as TextareaSize } from './OrInputBox-
|
|
41
|
-
export { I as InputType, _ as OrInputV3 } from './OrInput-
|
|
40
|
+
export { a as InputBoxSize, I as InputBoxVariant, a as InputSize, _ as OrInputBoxV3, a as SearchSize, a as SelectSize, a as TextareaSize } from './OrInputBox-9ceb9fc4.js';
|
|
41
|
+
export { I as InputType, _ as OrInputV3 } from './OrInput-59a15d80.js';
|
|
42
42
|
export { _ as OrInput } from './OrInput-6e6cfd11.js';
|
|
43
43
|
export { _ as OrLabel } from './OrLabel-33b41516.js';
|
|
44
44
|
export { L as LabelVariant, _ as OrLabelV3 } from './OrLabel-0945a4d9.js';
|
|
@@ -66,12 +66,13 @@ export { _ as OrRadio } from './OrRadio-e4198532.js';
|
|
|
66
66
|
export { _ as OrRadioGroup } from './OrRadioGroup-d9d32cba.js';
|
|
67
67
|
export { _ as OrRadioV3 } from './OrRadio-87a4d226.js';
|
|
68
68
|
export { _ as OrSearch } from './OrSearch-b4f4d59b.js';
|
|
69
|
-
export { _ as OrSearchV3 } from './OrSearch-
|
|
69
|
+
export { _ as OrSearchV3 } from './OrSearch-f42d588d.js';
|
|
70
70
|
export { _ as OrSegmentedControlV3, S as SegmentedControlSize } from './OrSegmentedControl-7486115b.js';
|
|
71
71
|
export { _ as OrSelect } from './OrSelect-dae2b069.js';
|
|
72
|
-
export { _ as OrSelectV3 } from './OrSelect-
|
|
72
|
+
export { _ as OrSelectV3 } from './OrSelect-e31d1c8b.js';
|
|
73
73
|
export { _ as OrSidebar, O as OrSidebarSide } from './OrSidebar-7d6125bb.js';
|
|
74
|
-
export {
|
|
74
|
+
export { _ as OrSidebarV3 } from './OrSidebar-a10424d2.js';
|
|
75
|
+
export { O as OrSidebarPlacement } from './OrSidebarCollapseButton-3b461dfe.js';
|
|
75
76
|
export { _ as OrSkeletonCircle, a as OrSkeletonRect, b as OrSkeletonText, O as OrSkeletonTextSizes } from './OrSkeletonText-cc94bdc9.js';
|
|
76
77
|
export { _ as OrSkeletonCircleV3, a as OrSkeletonRectV3, b as OrSkeletonTextV3 } from './OrSkeletonText-6ee72718.js';
|
|
77
78
|
export { _ as OrSlider } from './OrSlider-f7b9c7c2.js';
|
|
@@ -90,7 +91,7 @@ export { _ as OrTeleport } from './OrTeleportVue2-8ef4ceca.js';
|
|
|
90
91
|
export { _ as OrTeleportV3 } from './OrTeleport.vue2-fb92f29f.js';
|
|
91
92
|
export { _ as OrTextV3 } from './OrText-b12d0682.js';
|
|
92
93
|
export { _ as OrTextarea } from './OrTextarea-91a95068.js';
|
|
93
|
-
export { _ as OrTextareaV3 } from './OrTextarea-
|
|
94
|
+
export { _ as OrTextareaV3 } from './OrTextarea-a5a3572b.js';
|
|
94
95
|
export { _ as OrTextbox, T as TextboxTypes } from './OrTextbox-2594c980.js';
|
|
95
96
|
export { _ as OrToast, a as OrToastContainer } from './OrToastContainer-2fbd4358.js';
|
|
96
97
|
export { P as PositionsX, b as PositionsY, c as ToastType, T as TransitionType, a as useQueue, u as useToast } from './useToast-4fbe0e5a.js';
|
|
@@ -5,8 +5,8 @@ import { s as script$6 } from './OrIcon-34f59f73.js';
|
|
|
5
5
|
import { s as script$5 } from './OrMenuItem-58707d47.js';
|
|
6
6
|
import { s as script$4 } from './OrMenu-7f3ea117.js';
|
|
7
7
|
import './OrPopover-40217b49.js';
|
|
8
|
-
import { s as script$7 } from './OrSearch-
|
|
9
|
-
import './OrInputBox-
|
|
8
|
+
import { s as script$7 } from './OrSearch-4c5c44f2.js';
|
|
9
|
+
import './OrInputBox-e16ade90.js';
|
|
10
10
|
import { openBlock, createElementBlock, normalizeClass, Fragment, renderList, renderSlot, mergeProps, createTextVNode, toDisplayString, resolveComponent, createElementVNode, createVNode, withCtx, createBlock, createCommentVNode, normalizeProps, guardReactiveProps } from 'vue';
|
|
11
11
|
|
|
12
12
|
const CardCollectionRoot = [
|
|
@@ -2,7 +2,7 @@ import { useMagicKeys, whenever, onClickOutside } from '@vueuse/core';
|
|
|
2
2
|
import { logicAnd } from '@vueuse/math';
|
|
3
3
|
import { defineComponent, ref, computed, watch } from 'vue-demi';
|
|
4
4
|
import { s as script$2, a as ButtonColor } from './OrButton-c56998e7.js';
|
|
5
|
-
import { s as script$3 } from './OrInput-
|
|
5
|
+
import { s as script$3 } from './OrInput-bd054213.js';
|
|
6
6
|
import { s as script$1 } from './OrOverlay-afad3aa4.js';
|
|
7
7
|
import { resolveComponent, openBlock, createBlock, withCtx, createElementVNode, mergeProps, normalizeClass, renderSlot, createTextVNode, toDisplayString, createElementBlock, createVNode, createCommentVNode } from 'vue';
|
|
8
8
|
|
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, reactive } from 'vue-demi';
|
|
2
2
|
import { a as useIdAttribute, u as useControlAttributes } from './useIdAttribute-859439f0.js';
|
|
3
3
|
import '@vueuse/core';
|
|
4
|
-
import { u as useResponsive } from './useResponsive-a02e95b7.js';
|
|
5
4
|
import { u as useValidationAttributes } from './useValidationAttributes-d1abbe34.js';
|
|
6
5
|
import { s as script$1 } from './OrError-19198748.js';
|
|
7
6
|
import { s as script$2 } from './OrHint-6863124f.js';
|
|
8
7
|
import { s as script$4 } from './OrIconButton-2dcfb83e.js';
|
|
9
8
|
import { s as script$3 } from './OrIcon-34f59f73.js';
|
|
10
|
-
import { s as script$5, a as InputBoxSize } from './OrInputBox-
|
|
9
|
+
import { s as script$5, a as InputBoxSize } from './OrInputBox-e16ade90.js';
|
|
11
10
|
import { s as script$6 } from './OrLabel-f700f9fb.js';
|
|
12
|
-
import {
|
|
13
|
-
import { resolveComponent, openBlock, createElementBlock, normalizeClass, createBlock, withCtx, renderSlot, createTextVNode, toDisplayString, createCommentVNode, createVNode, withDirectives, createElementVNode, mergeProps, vModelDynamic, Fragment, withModifiers, createSlots } from 'vue';
|
|
11
|
+
import { resolveComponent, openBlock, createElementBlock, normalizeClass, createBlock, withCtx, renderSlot, createTextVNode, toDisplayString, createCommentVNode, createVNode, withDirectives, createElementVNode, mergeProps, vModelDynamic, withModifiers, Fragment, createSlots } from 'vue';
|
|
14
12
|
import { s as styleInject } from './style-inject.es-4c6f2515.js';
|
|
15
13
|
|
|
16
14
|
var InputType;
|
|
@@ -42,8 +40,7 @@ var script = defineComponent({
|
|
|
42
40
|
OrIcon: script$3,
|
|
43
41
|
OrIconButton: script$4,
|
|
44
42
|
OrInputBox: script$5,
|
|
45
|
-
OrLabel: script$6
|
|
46
|
-
OrLoader: script$7
|
|
43
|
+
OrLabel: script$6
|
|
47
44
|
},
|
|
48
45
|
model: {
|
|
49
46
|
prop: 'modelValue',
|
|
@@ -78,10 +75,6 @@ var script = defineComponent({
|
|
|
78
75
|
type: String,
|
|
79
76
|
default: undefined
|
|
80
77
|
},
|
|
81
|
-
loading: {
|
|
82
|
-
type: Boolean,
|
|
83
|
-
default: false
|
|
84
|
-
},
|
|
85
78
|
required: {
|
|
86
79
|
type: Boolean,
|
|
87
80
|
default: false
|
|
@@ -127,9 +120,6 @@ var script = defineComponent({
|
|
|
127
120
|
const maxLength = computed(() => controlAttributes.maxlength);
|
|
128
121
|
const invalid = computed(() => !!props.error);
|
|
129
122
|
const disclosed = ref(false);
|
|
130
|
-
const {
|
|
131
|
-
isMobile
|
|
132
|
-
} = useResponsive();
|
|
133
123
|
// Methods
|
|
134
124
|
function focus() {
|
|
135
125
|
var _a;
|
|
@@ -150,7 +140,6 @@ var script = defineComponent({
|
|
|
150
140
|
maxLength,
|
|
151
141
|
invalid,
|
|
152
142
|
disclosed,
|
|
153
|
-
isMobile,
|
|
154
143
|
focus,
|
|
155
144
|
blur
|
|
156
145
|
};
|
|
@@ -163,7 +152,6 @@ const _hoisted_2 = {
|
|
|
163
152
|
};
|
|
164
153
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
165
154
|
const _component_OrLabel = resolveComponent("OrLabel");
|
|
166
|
-
const _component_OrLoader = resolveComponent("OrLoader");
|
|
167
155
|
const _component_OrIconButton = resolveComponent("OrIconButton");
|
|
168
156
|
const _component_OrIcon = resolveComponent("OrIcon");
|
|
169
157
|
const _component_OrInputBox = resolveComponent("OrInputBox");
|
|
@@ -187,7 +175,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
187
175
|
variant: _ctx.disableDefaultStyles ? 'unstyled' : 'styled',
|
|
188
176
|
size: _ctx.size,
|
|
189
177
|
invalid: _ctx.invalid,
|
|
190
|
-
readonly: _ctx.readonly
|
|
178
|
+
readonly: _ctx.readonly,
|
|
191
179
|
disabled: _ctx.disabled
|
|
192
180
|
}, {
|
|
193
181
|
default: withCtx(() => [withDirectives(createElementVNode("input", mergeProps({
|
|
@@ -198,20 +186,13 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
198
186
|
type: _ctx.type === 'password' && _ctx.disclosed ? 'text' : _ctx.type,
|
|
199
187
|
placeholder: _ctx.placeholder,
|
|
200
188
|
required: _ctx.required,
|
|
201
|
-
readonly: _ctx.readonly
|
|
189
|
+
readonly: _ctx.readonly,
|
|
202
190
|
disabled: _ctx.disabled,
|
|
203
191
|
onKeydown: _cache[1] || (_cache[1] = $event => _ctx.$emit('keydown', $event)),
|
|
204
192
|
onKeyup: _cache[2] || (_cache[2] = $event => _ctx.$emit('keyup', $event)),
|
|
205
193
|
onFocus: _cache[3] || (_cache[3] = $event => _ctx.$emit('focus', $event)),
|
|
206
194
|
onBlur: _cache[4] || (_cache[4] = $event => _ctx.$emit('blur', $event))
|
|
207
|
-
}), null, 16 /* FULL_PROPS */, _hoisted_1), [[vModelDynamic, _ctx.proxyModelValue]]), createElementVNode("div", _hoisted_2, [_ctx.
|
|
208
|
-
key: 0,
|
|
209
|
-
variant: 'circular',
|
|
210
|
-
color: 'primary',
|
|
211
|
-
size: _ctx.isMobile ? 'm' : 's'
|
|
212
|
-
}, null, 8 /* PROPS */, ["size"])) : (openBlock(), createElementBlock(Fragment, {
|
|
213
|
-
key: 1
|
|
214
|
-
}, [_ctx.type === 'password' ? (openBlock(), createBlock(_component_OrIconButton, {
|
|
195
|
+
}), null, 16 /* FULL_PROPS */, _hoisted_1), [[vModelDynamic, _ctx.proxyModelValue]]), createElementVNode("div", _hoisted_2, [_ctx.type === 'password' ? (openBlock(), createBlock(_component_OrIconButton, {
|
|
215
196
|
key: 0,
|
|
216
197
|
icon: {
|
|
217
198
|
icon: _ctx.disclosed ? 'visibility_off' : 'visibility',
|
|
@@ -232,8 +213,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
232
213
|
key: 1,
|
|
233
214
|
icon: 'search',
|
|
234
215
|
variant: 'outlined'
|
|
235
|
-
}))], 64 /* STABLE_FRAGMENT */)) : createCommentVNode("v-if", true)]
|
|
236
|
-
|
|
216
|
+
}))], 64 /* STABLE_FRAGMENT */)) : createCommentVNode("v-if", true)])]),
|
|
237
217
|
_: 1 /* STABLE */
|
|
238
218
|
}, 8 /* PROPS */, ["variant", "size", "invalid", "readonly", "disabled"]), !_ctx.invalid ? (openBlock(), createElementBlock(Fragment, {
|
|
239
219
|
key: 1
|
|
@@ -51,7 +51,7 @@ const InputBoxRootSizes = {
|
|
|
51
51
|
// Box
|
|
52
52
|
'children:min-h-[30px]',
|
|
53
53
|
// Spacing
|
|
54
|
-
'first-child:pl-
|
|
54
|
+
'first-child:pl-sm', 'last-child:pr-sm', 'children:py-[6px]', 'gap-[6px]',
|
|
55
55
|
// Typography
|
|
56
56
|
'typography-caption-regular']
|
|
57
57
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { debouncedWatch } from '@vueuse/core';
|
|
2
2
|
import { defineComponent, ref, computed, watch } from 'vue-demi';
|
|
3
|
-
import { s as script$1 } from './OrInput-
|
|
4
|
-
import { a as InputBoxSize } from './OrInputBox-
|
|
3
|
+
import { s as script$1 } from './OrInput-bd054213.js';
|
|
4
|
+
import { a as InputBoxSize } from './OrInputBox-e16ade90.js';
|
|
5
5
|
import { resolveComponent, openBlock, createBlock, normalizeClass } from 'vue';
|
|
6
6
|
|
|
7
7
|
var script = defineComponent({
|
|
@@ -7,8 +7,8 @@ import { s as script$2 } from './OrError-19198748.js';
|
|
|
7
7
|
import { s as script$3 } from './OrExpansionPanel-3a4282da.js';
|
|
8
8
|
import { s as script$4 } from './OrHint-6863124f.js';
|
|
9
9
|
import { s as script$5 } from './OrIcon-34f59f73.js';
|
|
10
|
-
import { s as script$7, a as InputBoxSize } from './OrInputBox-
|
|
11
|
-
import { s as script$6 } from './OrInput-
|
|
10
|
+
import { s as script$7, a as InputBoxSize } from './OrInputBox-e16ade90.js';
|
|
11
|
+
import { s as script$6 } from './OrInput-bd054213.js';
|
|
12
12
|
import { s as script$8 } from './OrLabel-f700f9fb.js';
|
|
13
13
|
import { s as script$9 } from './OrMenuItem-58707d47.js';
|
|
14
14
|
import { s as script$a } from './OrPopover-40217b49.js';
|
|
@@ -1,92 +1,28 @@
|
|
|
1
1
|
import { useDraggable, useElementBounding } from '@vueuse/core';
|
|
2
2
|
import _ from 'lodash';
|
|
3
|
-
import { defineComponent, ref, computed, watch } from 'vue-demi';
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
var OrSidebarPlacement;
|
|
7
|
-
(function (OrSidebarPlacement) {
|
|
8
|
-
OrSidebarPlacement["left"] = "left";
|
|
9
|
-
OrSidebarPlacement["right"] = "right";
|
|
10
|
-
})(OrSidebarPlacement || (OrSidebarPlacement = {}));
|
|
11
|
-
|
|
12
|
-
const SidebarRoot = [
|
|
13
|
-
// Position
|
|
14
|
-
'relative',
|
|
15
|
-
// Layout
|
|
16
|
-
'flex', 'flex-col', 'shrink-0',
|
|
17
|
-
// Box
|
|
18
|
-
'min-h-0', 'p-0'];
|
|
19
|
-
const SidebarRootSides = {
|
|
20
|
-
[OrSidebarPlacement.left]: [
|
|
21
|
-
// Borders
|
|
22
|
-
'border-r-[1px]', 'border-r-solid', 'border-r-secondary dark:border-r-secondary-dark'],
|
|
23
|
-
[OrSidebarPlacement.right]: [
|
|
24
|
-
// Borders
|
|
25
|
-
'border-l-[1px]', 'border-l-solid', 'border-l-secondary dark:border-l-secondary-dark']
|
|
26
|
-
};
|
|
27
|
-
const SidebarResize = [
|
|
28
|
-
// Position
|
|
29
|
-
'absolute', 'inset-y-none', 'z-[1]',
|
|
30
|
-
// Box
|
|
31
|
-
'w-[12px]', 'h-[100%]',
|
|
32
|
-
// Cursor
|
|
33
|
-
'cursor-ew-resize'];
|
|
34
|
-
const SidebarResizeSides = {
|
|
35
|
-
[OrSidebarPlacement.left]: [
|
|
36
|
-
// Position
|
|
37
|
-
'-right-[1px]',
|
|
38
|
-
// Borders
|
|
39
|
-
'hover:border-r-2', 'hover:border-r-primary hover:dark:border-r-primary-dark',
|
|
40
|
-
// Transition
|
|
41
|
-
'transition-[border-right]'],
|
|
42
|
-
[OrSidebarPlacement.right]: [
|
|
43
|
-
// Position
|
|
44
|
-
'-left-[1px]',
|
|
45
|
-
// Borders
|
|
46
|
-
'hover:border-l-2', 'hover:border-l-primary hover:dark:border-l-primary-dark',
|
|
47
|
-
// Transition
|
|
48
|
-
'transition-[border-left]']
|
|
49
|
-
};
|
|
50
|
-
const SidebarResizingSides = {
|
|
51
|
-
[OrSidebarPlacement.left]: [
|
|
52
|
-
// Borders
|
|
53
|
-
'border-r-2', 'border-r-primary dark:border-r-primary-dark'],
|
|
54
|
-
[OrSidebarPlacement.right]: [
|
|
55
|
-
// Borders
|
|
56
|
-
'border-l-2', 'border-l-primary dark:border-l-primary-dark']
|
|
57
|
-
};
|
|
58
|
-
const SidebarMain = [
|
|
59
|
-
// Layout
|
|
60
|
-
'flex', 'flex-col', 'grow',
|
|
61
|
-
// Box
|
|
62
|
-
'min-h-0'];
|
|
63
|
-
const SidebarHeader = [
|
|
64
|
-
// Sizing
|
|
65
|
-
'p-md'];
|
|
66
|
-
const SidebarContent = [
|
|
67
|
-
// Layout
|
|
68
|
-
'grow', 'overflow-auto',
|
|
69
|
-
// Sizing
|
|
70
|
-
'p-md'];
|
|
71
|
-
const SidebarFooter = [
|
|
72
|
-
// Sizing
|
|
73
|
-
'p-md',
|
|
74
|
-
// Borders
|
|
75
|
-
'border-t-[1px]', 'border-t-solid', 'border-t-secondary dark:border-t-secondary-dark'];
|
|
3
|
+
import { defineComponent, ref, computed, useSlots, watch } from 'vue-demi';
|
|
4
|
+
import { s as script$1, O as OrSidebarPlacement, S as SidebarRoot, a as SidebarBar, b as SidebarSides, c as SidebarToolbar, C as CollapsibleSidebarToolbar, d as SidebarToolbarSides, e as SidebarResize, f as SidebarResizeSides, g as SidebarResizingSides, h as SidebarCollapseButton, i as SidebarCollapseButtonSides, j as SidebarMain, k as SidebarHeader, l as SidebarContent, m as SidebarFooter } from './OrSidebarCollapseButton-30d0033b.js';
|
|
5
|
+
import { resolveComponent, openBlock, createElementBlock, normalizeClass, renderSlot, createCommentVNode, createElementVNode, normalizeStyle, createBlock, withDirectives, vShow } from 'vue';
|
|
76
6
|
|
|
77
7
|
var script = defineComponent({
|
|
78
8
|
name: 'OrSidebar',
|
|
9
|
+
components: {
|
|
10
|
+
OrSidebarCollapseButton: script$1
|
|
11
|
+
},
|
|
79
12
|
props: {
|
|
80
13
|
width: {
|
|
81
14
|
type: Number,
|
|
82
|
-
|
|
83
|
-
default: 0,
|
|
15
|
+
default: 320,
|
|
84
16
|
validator: value => _.isNumber(value) && value >= 0
|
|
85
17
|
},
|
|
86
18
|
minimumWidth: {
|
|
87
19
|
type: Number,
|
|
88
|
-
|
|
89
|
-
|
|
20
|
+
default: 256,
|
|
21
|
+
validator: value => _.isNumber(value) && value >= 0
|
|
22
|
+
},
|
|
23
|
+
maximumWidth: {
|
|
24
|
+
type: Number,
|
|
25
|
+
default: 384,
|
|
90
26
|
validator: value => _.isNumber(value) && value >= 0
|
|
91
27
|
},
|
|
92
28
|
/**
|
|
@@ -100,9 +36,18 @@ var script = defineComponent({
|
|
|
100
36
|
type: String,
|
|
101
37
|
default: OrSidebarPlacement.right,
|
|
102
38
|
validator: value => _.includes(_.values(OrSidebarPlacement), value)
|
|
39
|
+
},
|
|
40
|
+
draggable: {
|
|
41
|
+
type: Boolean,
|
|
42
|
+
default: true
|
|
43
|
+
},
|
|
44
|
+
collapsible: {
|
|
45
|
+
type: Boolean,
|
|
46
|
+
default: false
|
|
103
47
|
}
|
|
104
48
|
},
|
|
105
|
-
emits: ['change:width'],
|
|
49
|
+
emits: ['change:width', 'open', 'close'],
|
|
50
|
+
expose: ['root', 'open', 'close'],
|
|
106
51
|
setup(props, {
|
|
107
52
|
emit
|
|
108
53
|
}) {
|
|
@@ -113,16 +58,26 @@ var script = defineComponent({
|
|
|
113
58
|
var _a;
|
|
114
59
|
return (_a = root.value) === null || _a === void 0 ? void 0 : _a.parentElement;
|
|
115
60
|
});
|
|
61
|
+
// Slots
|
|
62
|
+
const {
|
|
63
|
+
toolbar: toolbarSlot
|
|
64
|
+
} = useSlots();
|
|
116
65
|
// State
|
|
117
66
|
const startPositionX = ref(0);
|
|
118
67
|
const isResizing = ref(false);
|
|
68
|
+
const isCollapsed = ref(false);
|
|
69
|
+
const maximumWidth = ref(props.maximumWidth || 384);
|
|
119
70
|
const localWidth = ref(props.width >= props.minimumWidth ? props.width : props.minimumWidth);
|
|
71
|
+
const isShowingToolbar = computed(() => !!toolbarSlot);
|
|
120
72
|
// Styles
|
|
121
73
|
const sidebarStyle = computed(() => ({
|
|
122
|
-
width: localWidth.value + 'px'
|
|
74
|
+
width: (isCollapsed.value ? 16 : localWidth.value) + 'px'
|
|
123
75
|
}));
|
|
124
|
-
const rootStyles = computed(() => ['or-sidebar', ...SidebarRoot
|
|
76
|
+
const rootStyles = computed(() => ['or-sidebar', ...SidebarRoot]);
|
|
77
|
+
const sidebarStyles = computed(() => [...SidebarBar, ...SidebarSides[props.side]]);
|
|
78
|
+
const toolbarStyles = computed(() => [...SidebarToolbar, ...(props.collapsible ? CollapsibleSidebarToolbar : []), ...SidebarToolbarSides[props.side]]);
|
|
125
79
|
const resizeStyles = computed(() => [...SidebarResize, ...SidebarResizeSides[props.side], ...(isResizing.value ? SidebarResizingSides[props.side] : [])]);
|
|
80
|
+
const collapsibleButtonStyles = computed(() => [...SidebarCollapseButton, ...SidebarCollapseButtonSides[props.side]]);
|
|
126
81
|
const mainStyles = computed(() => [...SidebarMain]);
|
|
127
82
|
const headerStyles = computed(() => [...SidebarHeader]);
|
|
128
83
|
const contentStyles = computed(() => [...SidebarContent]);
|
|
@@ -148,8 +103,15 @@ var script = defineComponent({
|
|
|
148
103
|
isResizing.value = false;
|
|
149
104
|
}
|
|
150
105
|
});
|
|
106
|
+
// Methods
|
|
107
|
+
function open() {
|
|
108
|
+
isCollapsed.value = false;
|
|
109
|
+
}
|
|
110
|
+
function close() {
|
|
111
|
+
isCollapsed.value = true;
|
|
112
|
+
}
|
|
151
113
|
const {
|
|
152
|
-
width:
|
|
114
|
+
width: containerWidth
|
|
153
115
|
} = useElementBounding(parentContainer);
|
|
154
116
|
watch(() => props.width, newValue => {
|
|
155
117
|
if (newValue !== localWidth.value) {
|
|
@@ -159,48 +121,78 @@ var script = defineComponent({
|
|
|
159
121
|
watch(() => props.minimumWidth, newMinimum => {
|
|
160
122
|
if (newMinimum > localWidth.value) localWidth.value = newMinimum;
|
|
161
123
|
});
|
|
124
|
+
watch(() => props.maximumWidth, newMaximum => {
|
|
125
|
+
if (newMaximum < maximumWidth.value) maximumWidth.value = newMaximum;
|
|
126
|
+
});
|
|
127
|
+
watch(containerWidth, newMaximum => {
|
|
128
|
+
if (newMaximum < maximumWidth.value) maximumWidth.value = newMaximum;
|
|
129
|
+
});
|
|
162
130
|
watch(maximumWidth, newMaximum => {
|
|
163
131
|
if (newMaximum < localWidth.value) localWidth.value = newMaximum;
|
|
164
132
|
});
|
|
165
133
|
watch(localWidth, val => emit('change:width', val));
|
|
134
|
+
watch(isCollapsed, val => emit(val ? 'close' : 'open'));
|
|
166
135
|
return {
|
|
167
136
|
root,
|
|
168
137
|
resizeBar,
|
|
169
138
|
isResizing,
|
|
139
|
+
isCollapsed,
|
|
170
140
|
localWidth,
|
|
141
|
+
isShowingToolbar,
|
|
171
142
|
sidebarStyle,
|
|
172
143
|
rootStyles,
|
|
144
|
+
sidebarStyles,
|
|
145
|
+
toolbarStyles,
|
|
173
146
|
resizeStyles,
|
|
147
|
+
collapsibleButtonStyles,
|
|
174
148
|
mainStyles,
|
|
175
149
|
headerStyles,
|
|
176
150
|
contentStyles,
|
|
177
|
-
footerStyles
|
|
151
|
+
footerStyles,
|
|
152
|
+
open,
|
|
153
|
+
close
|
|
178
154
|
};
|
|
179
155
|
}
|
|
180
156
|
});
|
|
181
157
|
|
|
182
158
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
159
|
+
const _component_or_sidebar_collapse_button = resolveComponent("or-sidebar-collapse-button");
|
|
183
160
|
return openBlock(), createElementBlock("aside", {
|
|
184
161
|
ref: "root",
|
|
185
|
-
class: normalizeClass(_ctx.rootStyles)
|
|
162
|
+
class: normalizeClass(_ctx.rootStyles)
|
|
163
|
+
}, [_ctx.side === 'right' && _ctx.isShowingToolbar ? (openBlock(), createElementBlock("div", {
|
|
164
|
+
key: 0,
|
|
165
|
+
class: normalizeClass(_ctx.toolbarStyles)
|
|
166
|
+
}, [renderSlot(_ctx.$slots, "toolbar")], 2 /* CLASS */)) : createCommentVNode("v-if", true), createElementVNode("div", {
|
|
167
|
+
class: normalizeClass(_ctx.sidebarStyles),
|
|
186
168
|
style: normalizeStyle(_ctx.sidebarStyle)
|
|
187
|
-
}, [
|
|
169
|
+
}, [_ctx.draggable && !_ctx.isCollapsed ? (openBlock(), createElementBlock("div", {
|
|
170
|
+
key: 0,
|
|
188
171
|
ref: "resizeBar",
|
|
189
172
|
class: normalizeClass(_ctx.resizeStyles)
|
|
190
|
-
}, null, 2 /* CLASS */)
|
|
173
|
+
}, null, 2 /* CLASS */)) : createCommentVNode("v-if", true), _ctx.collapsible ? (openBlock(), createBlock(_component_or_sidebar_collapse_button, {
|
|
174
|
+
key: 1,
|
|
175
|
+
modelValue: _ctx.isCollapsed,
|
|
176
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => _ctx.isCollapsed = $event),
|
|
177
|
+
class: normalizeClass(_ctx.collapsibleButtonStyles),
|
|
178
|
+
side: _ctx.side
|
|
179
|
+
}, null, 8 /* PROPS */, ["modelValue", "class", "side"])) : createCommentVNode("v-if", true), withDirectives(createElementVNode("div", {
|
|
191
180
|
class: normalizeClass(_ctx.mainStyles)
|
|
192
181
|
}, [_ctx.$slots.header ? (openBlock(), createElementBlock("div", {
|
|
193
182
|
key: 0,
|
|
194
183
|
class: normalizeClass(_ctx.headerStyles)
|
|
195
184
|
}, [renderSlot(_ctx.$slots, "header")], 2 /* CLASS */)) : createCommentVNode("v-if", true), createElementVNode("div", {
|
|
196
185
|
class: normalizeClass(_ctx.contentStyles)
|
|
197
|
-
}, [renderSlot(_ctx.$slots, "default")], 2 /* CLASS */)], 2 /* CLASS */), _ctx.$slots.footer ? (openBlock(), createElementBlock("div", {
|
|
198
|
-
key:
|
|
186
|
+
}, [renderSlot(_ctx.$slots, "default")], 2 /* CLASS */)], 2 /* CLASS */), [[vShow, !_ctx.isCollapsed]]), _ctx.$slots.footer ? withDirectives((openBlock(), createElementBlock("div", {
|
|
187
|
+
key: 2,
|
|
199
188
|
class: normalizeClass(_ctx.footerStyles)
|
|
200
|
-
}, [renderSlot(_ctx.$slots, "footer")], 2 /* CLASS */)) : createCommentVNode("v-if", true)], 6 /* CLASS, STYLE */)
|
|
189
|
+
}, [renderSlot(_ctx.$slots, "footer")], 2 /* CLASS */)), [[vShow, !_ctx.isCollapsed]]) : createCommentVNode("v-if", true)], 6 /* CLASS, STYLE */), _ctx.side === 'left' && _ctx.isShowingToolbar ? (openBlock(), createElementBlock("div", {
|
|
190
|
+
key: 1,
|
|
191
|
+
class: normalizeClass(_ctx.toolbarStyles)
|
|
192
|
+
}, [renderSlot(_ctx.$slots, "toolbar")], 2 /* CLASS */)) : createCommentVNode("v-if", true)], 2 /* CLASS */);
|
|
201
193
|
}
|
|
202
194
|
|
|
203
195
|
script.render = render;
|
|
204
196
|
script.__file = "src/components/or-sidebar-v3/OrSidebar.vue";
|
|
205
197
|
|
|
206
|
-
export {
|
|
198
|
+
export { script as s };
|