@onereach/ui-components 2.73.0-beta.2258.0 → 2.73.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-06ecb8e1.js → OrCardCollection-4ac89ea5.js} +1 -1
- package/dist/bundled/v2/{OrCode-0cf7596d.js → OrCode-fc6876ec.js} +12 -184
- package/dist/bundled/v2/{OrNotification-2e2a1941.js → OrNotification-3909aaf2.js} +3 -3
- package/dist/bundled/v2/{OrSearch-bb87b34c.js → OrSearch-09fd004c.js} +2 -1
- package/dist/bundled/v2/{OrSidebar-c95ef614.js → OrSidebar-a2bc21b9.js} +155 -34
- package/dist/bundled/v2/OrSidebarCollapseButton-8297ef86.js +125 -0
- package/dist/bundled/v2/{OrSkeletonText-2f1a3cc7.js → OrSkeletonText-242d22f3.js} +3 -3
- package/dist/bundled/v2/components/index.js +7 -6
- package/dist/bundled/v2/components/or-card-collection-v3/index.js +2 -2
- package/dist/bundled/v2/components/or-code/OrCode.vue.d.ts +0 -10
- package/dist/bundled/v2/components/or-code/index.js +1 -1
- package/dist/bundled/v2/components/or-notification/index.js +1 -1
- package/dist/bundled/v2/components/or-search-v3/index.js +1 -1
- 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/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/partials/or-sidebar-collapse-button/OrSidebarCollapseButton.stories3.d.ts +12 -0
- package/dist/bundled/v2/components/or-sidebar-v3/partials/or-sidebar-collapse-button/OrSidebarCollapseButton.vue.d.ts +53 -0
- package/dist/bundled/v2/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.d.ts +1 -0
- package/dist/bundled/v2/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.js +18 -0
- package/dist/bundled/v2/components/or-sidebar-v3/partials/or-sidebar-collapse-button/styles.d.ts +2 -0
- package/dist/bundled/v2/components/or-sidebar-v3/styles.d.ts +7 -1
- package/dist/bundled/v2/components/or-skeleton/index.js +1 -1
- package/dist/bundled/v2/index.js +8 -7
- package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-e2980d04.js → OrCardCollection.vue_vue_type_script_lang-f76c3264.js} +1 -1
- package/dist/bundled/v3/{OrCode.vue_vue_type_script_lang-df150e3b.js → OrCode.vue_vue_type_script_lang-c55de81d.js} +8 -180
- package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-321907ec.js → OrSearch.vue_vue_type_script_lang-c054c8db.js} +2 -1
- package/dist/bundled/v3/OrSidebar.vue_vue_type_script_lang-7f3f1a16.js +291 -0
- package/dist/bundled/v3/OrSidebarCollapseButton.vue_vue_type_script_lang-9aeba2d4.js +75 -0
- package/dist/bundled/v3/components/index.js +5 -4
- package/dist/bundled/v3/components/or-card-collection-v3/index.js +2 -2
- package/dist/bundled/v3/components/or-code/OrCode.vue.d.ts +0 -10
- package/dist/bundled/v3/components/or-code/index.js +1 -1
- package/dist/bundled/v3/components/or-search-v3/index.js +1 -1
- 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/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/partials/or-sidebar-collapse-button/OrSidebarCollapseButton.stories3.d.ts +12 -0
- package/dist/bundled/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/OrSidebarCollapseButton.vue.d.ts +53 -0
- package/dist/bundled/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.d.ts +1 -0
- package/dist/bundled/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.js +17 -0
- package/dist/bundled/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/styles.d.ts +2 -0
- package/dist/bundled/v3/components/or-sidebar-v3/styles.d.ts +7 -1
- package/dist/bundled/v3/index.js +36 -19
- package/dist/esm/v2/{OrCardCollection-251ab033.js → OrCardCollection-5a9eda35.js} +1 -1
- package/dist/esm/v2/{OrCode-e2ce05ea.js → OrCode-d4400b42.js} +12 -30
- package/dist/esm/v2/{OrNotification-a49e76d3.js → OrNotification-a9231a83.js} +3 -3
- package/dist/esm/v2/{OrSearch-f42d588d.js → OrSearch-7411388b.js} +2 -1
- package/dist/esm/v2/{OrSidebar-fabc7bc9.js → OrSidebar-27236fbd.js} +155 -34
- package/dist/esm/v2/OrSidebarCollapseButton-cfe51a60.js +123 -0
- package/dist/esm/v2/{OrSkeletonText-24509efe.js → OrSkeletonText-cc94bdc9.js} +3 -3
- package/dist/esm/v2/components/index.js +7 -7
- package/dist/esm/v2/components/or-card-collection-v3/index.js +2 -2
- package/dist/esm/v2/components/or-code/OrCode.vue.d.ts +0 -10
- package/dist/esm/v2/components/or-code/index.js +2 -3
- package/dist/esm/v2/components/or-notification/index.js +1 -1
- package/dist/esm/v2/components/or-search-v3/index.js +1 -1
- 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/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/partials/or-sidebar-collapse-button/OrSidebarCollapseButton.stories3.d.ts +12 -0
- package/dist/esm/v2/components/or-sidebar-v3/partials/or-sidebar-collapse-button/OrSidebarCollapseButton.vue.d.ts +53 -0
- package/dist/esm/v2/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.d.ts +1 -0
- package/dist/esm/v2/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.js +16 -0
- package/dist/esm/v2/components/or-sidebar-v3/partials/or-sidebar-collapse-button/styles.d.ts +2 -0
- package/dist/esm/v2/components/or-sidebar-v3/styles.d.ts +7 -1
- package/dist/esm/v2/components/or-skeleton/index.js +1 -1
- package/dist/esm/v2/index.js +7 -7
- package/dist/esm/v3/{OrCardCollection-8b8e3745.js → OrCardCollection-e4fde5b4.js} +1 -1
- package/dist/esm/v3/{OrCode-72688173.js → OrCode-5ed69c23.js} +9 -27
- package/dist/esm/v3/{OrNotification-eb08de33.js → OrNotification-e85a4956.js} +1 -1
- package/dist/esm/v3/{OrSearch-4c5c44f2.js → OrSearch-5406bf03.js} +2 -1
- package/dist/esm/v3/OrSidebar-61d84c3e.js +313 -0
- package/dist/esm/v3/OrSidebarCollapseButton-1b9c83ef.js +94 -0
- package/dist/esm/v3/{OrSkeletonText-0546754d.js → OrSkeletonText-2b1610ce.js} +3 -3
- package/dist/esm/v3/components/index.js +7 -7
- package/dist/esm/v3/components/or-card-collection-v3/index.js +2 -2
- package/dist/esm/v3/components/or-code/OrCode.vue.d.ts +0 -10
- package/dist/esm/v3/components/or-code/index.js +2 -3
- package/dist/esm/v3/components/or-notification/index.js +1 -1
- package/dist/esm/v3/components/or-search-v3/index.js +1 -1
- 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/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/partials/or-sidebar-collapse-button/OrSidebarCollapseButton.stories3.d.ts +12 -0
- package/dist/esm/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/OrSidebarCollapseButton.vue.d.ts +53 -0
- package/dist/esm/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.d.ts +1 -0
- package/dist/esm/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.js +15 -0
- package/dist/esm/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/styles.d.ts +2 -0
- package/dist/esm/v3/components/or-sidebar-v3/styles.d.ts +7 -1
- package/dist/esm/v3/components/or-skeleton/index.js +1 -1
- package/dist/esm/v3/index.js +7 -7
- package/package.json +4 -4
- package/src/components/or-code/OrCode.vue +6 -23
- package/src/components/or-notification/OrNotification.vue +1 -26
- package/src/components/or-search-v3/OrSearch.vue +2 -1
- 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/index.ts +1 -0
- package/src/components/or-sidebar-v3/partials/or-sidebar-collapse-button/OrSidebarCollapseButton.stories3.ts +48 -0
- package/src/components/or-sidebar-v3/partials/or-sidebar-collapse-button/OrSidebarCollapseButton.vue +79 -0
- package/src/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.ts +1 -0
- package/src/components/or-sidebar-v3/partials/or-sidebar-collapse-button/styles.ts +50 -0
- package/src/components/or-sidebar-v3/styles.ts +114 -9
- package/src/components/or-skeleton/styles.scss +3 -18
- package/src/components/or-stepper/OrStepper.stories.ts +1 -1
- package/dist/bundled/v3/OrSidebar.vue_vue_type_script_lang-ce0b152c.js +0 -181
- package/dist/esm/v3/OrSidebar-a62972f5.js +0 -206
|
@@ -6,7 +6,7 @@ import { O as OrButton } from './OrButton-d45772c1.js';
|
|
|
6
6
|
import { O as OrMenu } from './OrMenu-52da43bc.js';
|
|
7
7
|
import { O as OrMenuItem } from './OrMenuItem-e2693a5f.js';
|
|
8
8
|
import { O as OrIcon } from './OrIcon-458206aa.js';
|
|
9
|
-
import { O as OrSearch } from './OrSearch-
|
|
9
|
+
import { O as OrSearch } from './OrSearch-09fd004c.js';
|
|
10
10
|
|
|
11
11
|
const CardCollectionRoot = [
|
|
12
12
|
// Layout
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { useElementHover } from '@vueuse/core';
|
|
2
2
|
import _ from 'lodash';
|
|
3
3
|
import './index-fa6eb4ca.js';
|
|
4
4
|
import { O as OrTeleport } from './OrTeleportVue2-3544f185.js';
|
|
@@ -23378,161 +23378,6 @@ const basicSetup = /*@__PURE__*/(() => [lineNumbers(), highlightActiveLineGutter
|
|
|
23378
23378
|
fallback: true
|
|
23379
23379
|
}), bracketMatching(), closeBrackets(), autocompletion(), rectangularSelection(), crosshairCursor(), highlightActiveLine(), highlightSelectionMatches(), keymap.of([...closeBracketsKeymap, ...defaultKeymap, ...searchKeymap, ...historyKeymap, ...foldKeymap, ...completionKeymap, ...lintKeymap])])();
|
|
23380
23380
|
|
|
23381
|
-
// Using https://github.com/one-dark/vscode-one-dark-theme/ as reference for the colors
|
|
23382
|
-
const chalky = "#e5c07b",
|
|
23383
|
-
coral = "#e06c75",
|
|
23384
|
-
cyan = "#56b6c2",
|
|
23385
|
-
invalid = "#ffffff",
|
|
23386
|
-
ivory = "#abb2bf",
|
|
23387
|
-
stone = "#7d8799",
|
|
23388
|
-
// Brightened compared to original to increase contrast
|
|
23389
|
-
malibu = "#61afef",
|
|
23390
|
-
sage = "#98c379",
|
|
23391
|
-
whiskey = "#d19a66",
|
|
23392
|
-
violet = "#c678dd",
|
|
23393
|
-
darkBackground = "#21252b",
|
|
23394
|
-
highlightBackground = "#2c313a",
|
|
23395
|
-
background = "#282c34",
|
|
23396
|
-
tooltipBackground = "#353a42",
|
|
23397
|
-
selection = "#3E4451",
|
|
23398
|
-
cursor = "#528bff";
|
|
23399
|
-
/**
|
|
23400
|
-
The editor theme styles for One Dark.
|
|
23401
|
-
*/
|
|
23402
|
-
const oneDarkTheme = /*@__PURE__*/EditorView.theme({
|
|
23403
|
-
"&": {
|
|
23404
|
-
color: ivory,
|
|
23405
|
-
backgroundColor: background
|
|
23406
|
-
},
|
|
23407
|
-
".cm-content": {
|
|
23408
|
-
caretColor: cursor
|
|
23409
|
-
},
|
|
23410
|
-
".cm-cursor, .cm-dropCursor": {
|
|
23411
|
-
borderLeftColor: cursor
|
|
23412
|
-
},
|
|
23413
|
-
"&.cm-focused .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection": {
|
|
23414
|
-
backgroundColor: selection
|
|
23415
|
-
},
|
|
23416
|
-
".cm-panels": {
|
|
23417
|
-
backgroundColor: darkBackground,
|
|
23418
|
-
color: ivory
|
|
23419
|
-
},
|
|
23420
|
-
".cm-panels.cm-panels-top": {
|
|
23421
|
-
borderBottom: "2px solid black"
|
|
23422
|
-
},
|
|
23423
|
-
".cm-panels.cm-panels-bottom": {
|
|
23424
|
-
borderTop: "2px solid black"
|
|
23425
|
-
},
|
|
23426
|
-
".cm-searchMatch": {
|
|
23427
|
-
backgroundColor: "#72a1ff59",
|
|
23428
|
-
outline: "1px solid #457dff"
|
|
23429
|
-
},
|
|
23430
|
-
".cm-searchMatch.cm-searchMatch-selected": {
|
|
23431
|
-
backgroundColor: "#6199ff2f"
|
|
23432
|
-
},
|
|
23433
|
-
".cm-activeLine": {
|
|
23434
|
-
backgroundColor: "#6699ff0b"
|
|
23435
|
-
},
|
|
23436
|
-
".cm-selectionMatch": {
|
|
23437
|
-
backgroundColor: "#aafe661a"
|
|
23438
|
-
},
|
|
23439
|
-
"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket": {
|
|
23440
|
-
backgroundColor: "#bad0f847"
|
|
23441
|
-
},
|
|
23442
|
-
".cm-gutters": {
|
|
23443
|
-
backgroundColor: background,
|
|
23444
|
-
color: stone,
|
|
23445
|
-
border: "none"
|
|
23446
|
-
},
|
|
23447
|
-
".cm-activeLineGutter": {
|
|
23448
|
-
backgroundColor: highlightBackground
|
|
23449
|
-
},
|
|
23450
|
-
".cm-foldPlaceholder": {
|
|
23451
|
-
backgroundColor: "transparent",
|
|
23452
|
-
border: "none",
|
|
23453
|
-
color: "#ddd"
|
|
23454
|
-
},
|
|
23455
|
-
".cm-tooltip": {
|
|
23456
|
-
border: "none",
|
|
23457
|
-
backgroundColor: tooltipBackground
|
|
23458
|
-
},
|
|
23459
|
-
".cm-tooltip .cm-tooltip-arrow:before": {
|
|
23460
|
-
borderTopColor: "transparent",
|
|
23461
|
-
borderBottomColor: "transparent"
|
|
23462
|
-
},
|
|
23463
|
-
".cm-tooltip .cm-tooltip-arrow:after": {
|
|
23464
|
-
borderTopColor: tooltipBackground,
|
|
23465
|
-
borderBottomColor: tooltipBackground
|
|
23466
|
-
},
|
|
23467
|
-
".cm-tooltip-autocomplete": {
|
|
23468
|
-
"& > ul > li[aria-selected]": {
|
|
23469
|
-
backgroundColor: highlightBackground,
|
|
23470
|
-
color: ivory
|
|
23471
|
-
}
|
|
23472
|
-
}
|
|
23473
|
-
}, {
|
|
23474
|
-
dark: true
|
|
23475
|
-
});
|
|
23476
|
-
/**
|
|
23477
|
-
The highlighting style for code in the One Dark theme.
|
|
23478
|
-
*/
|
|
23479
|
-
const oneDarkHighlightStyle = /*@__PURE__*/HighlightStyle.define([{
|
|
23480
|
-
tag: tags$1.keyword,
|
|
23481
|
-
color: violet
|
|
23482
|
-
}, {
|
|
23483
|
-
tag: [tags$1.name, tags$1.deleted, tags$1.character, tags$1.propertyName, tags$1.macroName],
|
|
23484
|
-
color: coral
|
|
23485
|
-
}, {
|
|
23486
|
-
tag: [/*@__PURE__*/tags$1.function(tags$1.variableName), tags$1.labelName],
|
|
23487
|
-
color: malibu
|
|
23488
|
-
}, {
|
|
23489
|
-
tag: [tags$1.color, /*@__PURE__*/tags$1.constant(tags$1.name), /*@__PURE__*/tags$1.standard(tags$1.name)],
|
|
23490
|
-
color: whiskey
|
|
23491
|
-
}, {
|
|
23492
|
-
tag: [/*@__PURE__*/tags$1.definition(tags$1.name), tags$1.separator],
|
|
23493
|
-
color: ivory
|
|
23494
|
-
}, {
|
|
23495
|
-
tag: [tags$1.typeName, tags$1.className, tags$1.number, tags$1.changed, tags$1.annotation, tags$1.modifier, tags$1.self, tags$1.namespace],
|
|
23496
|
-
color: chalky
|
|
23497
|
-
}, {
|
|
23498
|
-
tag: [tags$1.operator, tags$1.operatorKeyword, tags$1.url, tags$1.escape, tags$1.regexp, tags$1.link, /*@__PURE__*/tags$1.special(tags$1.string)],
|
|
23499
|
-
color: cyan
|
|
23500
|
-
}, {
|
|
23501
|
-
tag: [tags$1.meta, tags$1.comment],
|
|
23502
|
-
color: stone
|
|
23503
|
-
}, {
|
|
23504
|
-
tag: tags$1.strong,
|
|
23505
|
-
fontWeight: "bold"
|
|
23506
|
-
}, {
|
|
23507
|
-
tag: tags$1.emphasis,
|
|
23508
|
-
fontStyle: "italic"
|
|
23509
|
-
}, {
|
|
23510
|
-
tag: tags$1.strikethrough,
|
|
23511
|
-
textDecoration: "line-through"
|
|
23512
|
-
}, {
|
|
23513
|
-
tag: tags$1.link,
|
|
23514
|
-
color: stone,
|
|
23515
|
-
textDecoration: "underline"
|
|
23516
|
-
}, {
|
|
23517
|
-
tag: tags$1.heading,
|
|
23518
|
-
fontWeight: "bold",
|
|
23519
|
-
color: coral
|
|
23520
|
-
}, {
|
|
23521
|
-
tag: [tags$1.atom, tags$1.bool, /*@__PURE__*/tags$1.special(tags$1.variableName)],
|
|
23522
|
-
color: whiskey
|
|
23523
|
-
}, {
|
|
23524
|
-
tag: [tags$1.processingInstruction, tags$1.string, tags$1.inserted],
|
|
23525
|
-
color: sage
|
|
23526
|
-
}, {
|
|
23527
|
-
tag: tags$1.invalid,
|
|
23528
|
-
color: invalid
|
|
23529
|
-
}]);
|
|
23530
|
-
/**
|
|
23531
|
-
Extension to enable the One Dark theme (both the editor theme and
|
|
23532
|
-
the highlight style).
|
|
23533
|
-
*/
|
|
23534
|
-
const oneDark = [oneDarkTheme, /*@__PURE__*/syntaxHighlighting(oneDarkHighlightStyle)];
|
|
23535
|
-
|
|
23536
23381
|
var OrCodeLanguages;
|
|
23537
23382
|
(function (OrCodeLanguages) {
|
|
23538
23383
|
OrCodeLanguages["JS"] = "javascript";
|
|
@@ -29628,20 +29473,6 @@ var script = defineComponent({
|
|
|
29628
29473
|
setup(props, {
|
|
29629
29474
|
emit
|
|
29630
29475
|
}) {
|
|
29631
|
-
var _a;
|
|
29632
|
-
// theming refs
|
|
29633
|
-
const parent = document.querySelector('[data-theme]') || document.querySelector('html');
|
|
29634
|
-
const themeEl = ref(parent);
|
|
29635
|
-
const isDark = ref(((_a = parent === null || parent === void 0 ? void 0 : parent.getAttribute) === null || _a === void 0 ? void 0 : _a.call(parent, 'data-theme')) === 'dark');
|
|
29636
|
-
const themeObserver = useMutationObserver(themeEl, mutations => {
|
|
29637
|
-
var _a, _b;
|
|
29638
|
-
const mutation = mutations.find(m => m.attributeName === 'data-theme');
|
|
29639
|
-
if (!mutation) return;
|
|
29640
|
-
isDark.value = ((_b = (_a = mutation.target) === null || _a === void 0 ? void 0 : _a.getAttribute) === null || _b === void 0 ? void 0 : _b.call(_a, 'data-theme')) === 'dark';
|
|
29641
|
-
}, {
|
|
29642
|
-
attributes: true
|
|
29643
|
-
});
|
|
29644
|
-
// editor config
|
|
29645
29476
|
const root = ref();
|
|
29646
29477
|
const target = ref();
|
|
29647
29478
|
const fullscreenTarget = ref();
|
|
@@ -29661,9 +29492,7 @@ var script = defineComponent({
|
|
|
29661
29492
|
target,
|
|
29662
29493
|
fullscreenTarget,
|
|
29663
29494
|
editor,
|
|
29664
|
-
isHovered
|
|
29665
|
-
isDark,
|
|
29666
|
-
themeObserver
|
|
29495
|
+
isHovered
|
|
29667
29496
|
};
|
|
29668
29497
|
},
|
|
29669
29498
|
data() {
|
|
@@ -29685,11 +29514,9 @@ var script = defineComponent({
|
|
|
29685
29514
|
allowPaste,
|
|
29686
29515
|
lineWrapping
|
|
29687
29516
|
} = this;
|
|
29688
|
-
const ext = _.compact([
|
|
29517
|
+
const ext = _.compact([
|
|
29689
29518
|
// Toggle light/dark mode
|
|
29690
|
-
|
|
29691
|
-
dark: true
|
|
29692
|
-
}) : EditorView.baseTheme({}),
|
|
29519
|
+
EditorView.baseTheme({}),
|
|
29693
29520
|
// locale settings
|
|
29694
29521
|
this.phrases ? EditorState.phrases.of(this.phrases) : undefined,
|
|
29695
29522
|
// Parser language setting
|
|
@@ -29716,8 +29543,10 @@ var script = defineComponent({
|
|
|
29716
29543
|
}
|
|
29717
29544
|
}),
|
|
29718
29545
|
// line wrapping
|
|
29719
|
-
lineWrapping ? EditorView.lineWrapping : undefined, keymap.of([indentWithTab])
|
|
29720
|
-
|
|
29546
|
+
lineWrapping ? EditorView.lineWrapping : undefined, keymap.of([indentWithTab])]);
|
|
29547
|
+
// Append Extensions (such as basic-setup)
|
|
29548
|
+
if (this.extensions.length !== 0) _.merge(ext, this.extensions);
|
|
29549
|
+
return ext;
|
|
29721
29550
|
},
|
|
29722
29551
|
isShowingError() {
|
|
29723
29552
|
return !!this.error && this.isInvalid;
|
|
@@ -29760,7 +29589,6 @@ var script = defineComponent({
|
|
|
29760
29589
|
},
|
|
29761
29590
|
beforeUnmount() {
|
|
29762
29591
|
var _a;
|
|
29763
|
-
this.themeObserver.stop();
|
|
29764
29592
|
(_a = this.editor) === null || _a === void 0 ? void 0 : _a.destroy();
|
|
29765
29593
|
},
|
|
29766
29594
|
methods: {
|
|
@@ -29810,7 +29638,7 @@ var __vue_render__ = function () {
|
|
|
29810
29638
|
staticClass: "fullscreen-button",
|
|
29811
29639
|
attrs: {
|
|
29812
29640
|
"icon": "fullscreen",
|
|
29813
|
-
"icon-color": "neutral-
|
|
29641
|
+
"icon-color": "neutral-3"
|
|
29814
29642
|
},
|
|
29815
29643
|
on: {
|
|
29816
29644
|
"click": function ($event) {
|
|
@@ -29878,14 +29706,14 @@ var __vue_staticRenderFns__ = [];
|
|
|
29878
29706
|
/* style */
|
|
29879
29707
|
const __vue_inject_styles__ = function (inject) {
|
|
29880
29708
|
if (!inject) return;
|
|
29881
|
-
inject("data-v-
|
|
29882
|
-
source: "@keyframes spinAround-data-v-
|
|
29709
|
+
inject("data-v-2056db5f_0", {
|
|
29710
|
+
source: "@keyframes spinAround-data-v-2056db5f{from{transform:rotate(0)}to{transform:rotate(359deg)}}@keyframes fade-data-v-2056db5f{from{opacity:1}to{opacity:0}}.or-code .fullscreen-button[data-v-2056db5f]{width:2.25rem;height:2.25rem}.or-code .fullscreen-button>.or-icon[data-v-2056db5f]{font-size:1.5rem}.or-code .footer .or-code-error[data-v-2056db5f],.or-code .footer .or-code-hint[data-v-2056db5f]{flex-shrink:1;transition-timing-function:var(--t-func);transition-duration:var(--t-duration);transition-property:height,opacity}.header[data-v-2056db5f]{display:flex;flex-direction:row;align-items:center;height:36px}.header .actions[data-v-2056db5f]{margin-left:auto}.header .actions[data-v-2056db5f]:not(.is-visible){display:none}.or-code-editor[data-v-2056db5f]{min-height:calc(1.4em + 8px);overflow:auto;font-size:var(--fs-0);border:1px solid var(--c-neutral-2);border-radius:var(--s-2)}.or-code-editor.is-invalid[data-v-2056db5f]{border-color:var(--c-error)}.or-code-editor[data-v-2056db5f]> *{width:100%;height:100%}.or-code[data-v-2056db5f],.or-modal[data-v-2056db5f] .content{display:flex;flex-direction:column}.or-code .or-code-editor[data-v-2056db5f],.or-modal[data-v-2056db5f] .content .or-code-editor{flex-grow:1;text-align:left!important}",
|
|
29883
29711
|
map: undefined,
|
|
29884
29712
|
media: undefined
|
|
29885
29713
|
});
|
|
29886
29714
|
};
|
|
29887
29715
|
/* scoped */
|
|
29888
|
-
const __vue_scope_id__ = "data-v-
|
|
29716
|
+
const __vue_scope_id__ = "data-v-2056db5f";
|
|
29889
29717
|
/* module identifier */
|
|
29890
29718
|
const __vue_module_identifier__ = undefined;
|
|
29891
29719
|
/* functional template */
|
|
@@ -120,14 +120,14 @@ var __vue_staticRenderFns__ = [];
|
|
|
120
120
|
/* style */
|
|
121
121
|
const __vue_inject_styles__ = function (inject) {
|
|
122
122
|
if (!inject) return;
|
|
123
|
-
inject("data-v-
|
|
124
|
-
source: "@keyframes spinAround-data-v-
|
|
123
|
+
inject("data-v-7bc0e6b5_0", {
|
|
124
|
+
source: "@keyframes spinAround-data-v-7bc0e6b5{from{transform:rotate(0)}to{transform:rotate(359deg)}}@keyframes fade-data-v-7bc0e6b5{from{opacity:1}to{opacity:0}}.or-notification[data-v-7bc0e6b5]{--alignment-height:var(--lh-1);display:flex;align-items:flex-start;width:100%;padding:var(--s-4);background-color:var(--c-white);border-radius:.25rem;box-shadow:0 .0625rem .25rem .0625rem rgba(0,0,0,.08);transition-timing-function:var(--t-func);transition-duration:var(--t-duration);transition-property:background-color}.or-notification.is-size-default[data-v-7bc0e6b5]{max-width:48rem}.or-notification.is-size-inline[data-v-7bc0e6b5]{max-width:27.875rem}.or-notification a[data-v-7bc0e6b5]{font-weight:var(--fw-2);color:var(--c-black)}.or-notification--icon[data-v-7bc0e6b5]{display:flex;align-items:center;min-height:var(--alignment-height);margin-right:var(--s-4)}.or-notification--icon[data-v-7bc0e6b5] .or-icon{font-size:1rem}.or-notification--content[data-v-7bc0e6b5]{flex:1 1 100%;word-break:break-word}.or-notification--close[data-v-7bc0e6b5]{display:flex;height:var(--alignment-height);margin-left:1rem}.or-notification--close[data-v-7bc0e6b5] .or-icon{font-size:1rem!important}.or-notification.is-type-info[data-v-7bc0e6b5]{background-color:var(--c-primary-lighten-45)}.or-notification.is-type-info a[data-v-7bc0e6b5]{color:var(--c-primary)}.or-notification.is-type-error[data-v-7bc0e6b5]{background-color:var(--c-error-lighten-45)}.or-notification.is-type-error a[data-v-7bc0e6b5]{color:var(--c-error)}.or-notification.is-type-warning[data-v-7bc0e6b5]{background-color:var(--c-warning-lighten-45)}.or-notification.is-type-warning a[data-v-7bc0e6b5]{color:var(--c-warning)}.or-notification.is-type-success[data-v-7bc0e6b5]{background-color:var(--c-success-lighten-45)}.or-notification.is-type-success a[data-v-7bc0e6b5]{color:var(--c-success)}",
|
|
125
125
|
map: undefined,
|
|
126
126
|
media: undefined
|
|
127
127
|
});
|
|
128
128
|
};
|
|
129
129
|
/* scoped */
|
|
130
|
-
const __vue_scope_id__ = "data-v-
|
|
130
|
+
const __vue_scope_id__ = "data-v-7bc0e6b5";
|
|
131
131
|
/* module identifier */
|
|
132
132
|
const __vue_module_identifier__ = undefined;
|
|
133
133
|
/* functional template */
|
|
@@ -48,11 +48,12 @@ var script = defineComponent({
|
|
|
48
48
|
// State
|
|
49
49
|
const localModelValue = ref((_a = props.modelValue) !== null && _a !== void 0 ? _a : '');
|
|
50
50
|
// Events
|
|
51
|
-
debouncedWatch(localModelValue, () => context.emit('search', localModelValue.value), {
|
|
51
|
+
debouncedWatch(localModelValue, () => localModelValue.value.length > 0 && context.emit('search', localModelValue.value), {
|
|
52
52
|
debounce: props.debounce
|
|
53
53
|
});
|
|
54
54
|
watch(localModelValue, (val, beforeVal) => {
|
|
55
55
|
if (val.length === 0 && beforeVal.length > 0) {
|
|
56
|
+
context.emit('search');
|
|
56
57
|
context.emit('clear');
|
|
57
58
|
}
|
|
58
59
|
});
|
|
@@ -1,35 +1,63 @@
|
|
|
1
1
|
import { useDraggable, useElementBounding } from '@vueuse/core';
|
|
2
2
|
import _ from 'lodash';
|
|
3
3
|
import './index-fa6eb4ca.js';
|
|
4
|
-
import {
|
|
4
|
+
import { O as OrSidebarPlacement, a as OrSidebarCollapseButton } from './OrSidebarCollapseButton-8297ef86.js';
|
|
5
|
+
import { defineComponent, ref, computed, useSlots, watch } from '@vue/composition-api/dist/vue-composition-api.mjs';
|
|
5
6
|
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
6
7
|
|
|
7
|
-
var OrSidebarPlacement;
|
|
8
|
-
(function (OrSidebarPlacement) {
|
|
9
|
-
OrSidebarPlacement["left"] = "left";
|
|
10
|
-
OrSidebarPlacement["right"] = "right";
|
|
11
|
-
})(OrSidebarPlacement || (OrSidebarPlacement = {}));
|
|
12
|
-
|
|
13
8
|
const SidebarRoot = [
|
|
14
9
|
// Position
|
|
15
10
|
'relative',
|
|
16
11
|
// Layout
|
|
17
|
-
'flex', 'flex-
|
|
12
|
+
'flex', 'flex-row', 'shrink-0',
|
|
13
|
+
// Box
|
|
14
|
+
'min-w-0', 'h-auto', 'p-0',
|
|
15
|
+
// Theme
|
|
16
|
+
'bg-background', 'dark:bg-background-dark'];
|
|
17
|
+
const SidebarBar = [
|
|
18
|
+
// Position
|
|
19
|
+
'relative',
|
|
20
|
+
// Layout
|
|
21
|
+
'flex', 'flex-col', 'shrink-0', 'grow',
|
|
22
|
+
// Box
|
|
23
|
+
'min-h-0', 'p-0',
|
|
24
|
+
// Theme
|
|
25
|
+
'text-on-background', 'dark:text-on-background-dark',
|
|
26
|
+
// Transition
|
|
27
|
+
'transition-[width]'];
|
|
28
|
+
const SidebarToolbar = [
|
|
29
|
+
// Position
|
|
30
|
+
'relative',
|
|
31
|
+
// Layout
|
|
32
|
+
'flex', 'flex-col', 'shrink-0', 'grow', 'overflow-auto', 'items-center',
|
|
33
|
+
// Sizing
|
|
34
|
+
'gap-md',
|
|
18
35
|
// Box
|
|
19
|
-
'min-h-0', 'p-
|
|
20
|
-
|
|
36
|
+
'min-h-0', 'min-w-xl', 'p-[6px]', 'py-md+',
|
|
37
|
+
// Theme
|
|
38
|
+
'text-outline', 'dark:text-outline-dark'];
|
|
39
|
+
const CollapsibleSidebarToolbar = ['pt-[56px]'];
|
|
40
|
+
const SidebarSides = {
|
|
21
41
|
[OrSidebarPlacement.left]: [
|
|
22
42
|
// Borders
|
|
23
|
-
'border-r-[1px]', 'border-r-solid', 'border-r-
|
|
43
|
+
'border-r-[1px]', 'border-r-solid', 'border-r-outline-variant dark:border-r-outline-variant-dark'],
|
|
24
44
|
[OrSidebarPlacement.right]: [
|
|
25
45
|
// Borders
|
|
26
|
-
'border-l-[1px]', 'border-l-solid', 'border-l-
|
|
46
|
+
'border-l-[1px]', 'border-l-solid', 'border-l-outline-variant dark:border-l-outline-variant-dark']
|
|
47
|
+
};
|
|
48
|
+
const SidebarToolbarSides = {
|
|
49
|
+
[OrSidebarPlacement.left]: [
|
|
50
|
+
// Borders
|
|
51
|
+
'border-r-[1px]', 'border-r-solid', 'border-r-outline-variant dark:border-r-outline-variant-dark'],
|
|
52
|
+
[OrSidebarPlacement.right]: [
|
|
53
|
+
// Borders
|
|
54
|
+
'border-l-[1px]', 'border-l-solid', 'border-l-outline-variant dark:border-l-outline-variant-dark']
|
|
27
55
|
};
|
|
28
56
|
const SidebarResize = [
|
|
29
57
|
// Position
|
|
30
58
|
'absolute', 'inset-y-none', 'z-[1]',
|
|
31
59
|
// Box
|
|
32
|
-
'w-
|
|
60
|
+
'w-sm+', 'h-[100%]',
|
|
33
61
|
// Cursor
|
|
34
62
|
'cursor-ew-resize'];
|
|
35
63
|
const SidebarResizeSides = {
|
|
@@ -37,57 +65,80 @@ const SidebarResizeSides = {
|
|
|
37
65
|
// Position
|
|
38
66
|
'-right-[1px]',
|
|
39
67
|
// Borders
|
|
40
|
-
'hover:border-r-2', 'hover:border-r-primary hover:dark:border-r-primary-dark',
|
|
68
|
+
'hover:border-r-2', 'hover:border-r-primary-hover hover:dark:border-r-primary-hover-dark',
|
|
41
69
|
// Transition
|
|
42
70
|
'transition-[border-right]'],
|
|
43
71
|
[OrSidebarPlacement.right]: [
|
|
44
72
|
// Position
|
|
45
73
|
'-left-[1px]',
|
|
46
74
|
// Borders
|
|
47
|
-
'hover:border-l-2', 'hover:border-l-primary hover:dark:border-l-primary-dark',
|
|
75
|
+
'hover:border-l-2', 'hover:border-l-primary-hover hover:dark:border-l-primary-hover-dark',
|
|
48
76
|
// Transition
|
|
49
77
|
'transition-[border-left]']
|
|
50
78
|
};
|
|
79
|
+
const SidebarCollapseButton = [
|
|
80
|
+
// Position
|
|
81
|
+
'absolute', 'top-md', 'inset-y-none', 'z-[1]'];
|
|
82
|
+
const SidebarCollapseButtonSides = {
|
|
83
|
+
[OrSidebarPlacement.left]: [
|
|
84
|
+
// Position
|
|
85
|
+
'-right-[12px]'],
|
|
86
|
+
[OrSidebarPlacement.right]: [
|
|
87
|
+
// Position
|
|
88
|
+
'-left-[12px]']
|
|
89
|
+
};
|
|
51
90
|
const SidebarResizingSides = {
|
|
52
91
|
[OrSidebarPlacement.left]: [
|
|
53
92
|
// Borders
|
|
54
|
-
'border-r-2', 'border-r-primary dark:border-r-primary-dark'],
|
|
93
|
+
'border-r-2', 'border-r-primary-hover dark:border-r-primary-hover-dark'],
|
|
55
94
|
[OrSidebarPlacement.right]: [
|
|
56
95
|
// Borders
|
|
57
|
-
'border-l-2', 'border-l-primary dark:border-l-primary-dark']
|
|
96
|
+
'border-l-2', 'border-l-primary-hover dark:border-l-primary-hover-dark']
|
|
58
97
|
};
|
|
59
98
|
const SidebarMain = [
|
|
60
99
|
// Layout
|
|
61
|
-
'flex', 'flex-col', 'grow',
|
|
100
|
+
'flex', 'flex-col', 'grow', 'overflow-x-hidden',
|
|
62
101
|
// Box
|
|
63
102
|
'min-h-0'];
|
|
64
103
|
const SidebarHeader = [
|
|
104
|
+
// Layout
|
|
105
|
+
'shrink-0', 'overflow-hidden',
|
|
65
106
|
// Sizing
|
|
66
|
-
'p-md'
|
|
107
|
+
'p-md',
|
|
108
|
+
// Typography
|
|
109
|
+
'typography-headline-2', 'whitespace-nowrap', 'text-ellipsis'];
|
|
67
110
|
const SidebarContent = [
|
|
68
111
|
// Layout
|
|
69
112
|
'grow', 'overflow-auto',
|
|
70
113
|
// Sizing
|
|
71
114
|
'p-md'];
|
|
72
115
|
const SidebarFooter = [
|
|
116
|
+
// Layout
|
|
117
|
+
'shrink-0', 'overflow-x-hidden',
|
|
73
118
|
// Sizing
|
|
74
119
|
'p-md',
|
|
75
120
|
// Borders
|
|
76
|
-
'border-t-[1px]', 'border-t-solid', 'border-t-
|
|
121
|
+
'border-t-[1px]', 'border-t-solid', 'border-t-outline-variant dark:border-t-outline-variant-dark'];
|
|
77
122
|
|
|
78
123
|
var script = defineComponent({
|
|
79
124
|
name: 'OrSidebar',
|
|
125
|
+
components: {
|
|
126
|
+
OrSidebarCollapseButton
|
|
127
|
+
},
|
|
80
128
|
props: {
|
|
81
129
|
width: {
|
|
82
130
|
type: Number,
|
|
83
|
-
|
|
84
|
-
default: 0,
|
|
131
|
+
default: 320,
|
|
85
132
|
validator: value => _.isNumber(value) && value >= 0
|
|
86
133
|
},
|
|
87
134
|
minimumWidth: {
|
|
88
135
|
type: Number,
|
|
89
|
-
|
|
90
|
-
|
|
136
|
+
default: 256,
|
|
137
|
+
validator: value => _.isNumber(value) && value >= 0
|
|
138
|
+
},
|
|
139
|
+
maximumWidth: {
|
|
140
|
+
type: Number,
|
|
141
|
+
default: 384,
|
|
91
142
|
validator: value => _.isNumber(value) && value >= 0
|
|
92
143
|
},
|
|
93
144
|
/**
|
|
@@ -101,9 +152,18 @@ var script = defineComponent({
|
|
|
101
152
|
type: String,
|
|
102
153
|
default: OrSidebarPlacement.right,
|
|
103
154
|
validator: value => _.includes(_.values(OrSidebarPlacement), value)
|
|
155
|
+
},
|
|
156
|
+
draggable: {
|
|
157
|
+
type: Boolean,
|
|
158
|
+
default: true
|
|
159
|
+
},
|
|
160
|
+
collapsible: {
|
|
161
|
+
type: Boolean,
|
|
162
|
+
default: false
|
|
104
163
|
}
|
|
105
164
|
},
|
|
106
|
-
emits: ['change:width'],
|
|
165
|
+
emits: ['change:width', 'open', 'close'],
|
|
166
|
+
expose: ['root', 'open', 'close'],
|
|
107
167
|
setup(props, {
|
|
108
168
|
emit
|
|
109
169
|
}) {
|
|
@@ -114,16 +174,26 @@ var script = defineComponent({
|
|
|
114
174
|
var _a;
|
|
115
175
|
return (_a = root.value) === null || _a === void 0 ? void 0 : _a.parentElement;
|
|
116
176
|
});
|
|
177
|
+
// Slots
|
|
178
|
+
const {
|
|
179
|
+
toolbar: toolbarSlot
|
|
180
|
+
} = useSlots();
|
|
117
181
|
// State
|
|
118
182
|
const startPositionX = ref(0);
|
|
119
183
|
const isResizing = ref(false);
|
|
184
|
+
const isCollapsed = ref(false);
|
|
185
|
+
const maximumWidth = ref(props.maximumWidth || 384);
|
|
120
186
|
const localWidth = ref(props.width >= props.minimumWidth ? props.width : props.minimumWidth);
|
|
187
|
+
const isShowingToolbar = computed(() => !!toolbarSlot);
|
|
121
188
|
// Styles
|
|
122
189
|
const sidebarStyle = computed(() => ({
|
|
123
|
-
width: localWidth.value + 'px'
|
|
190
|
+
width: (isCollapsed.value ? 16 : localWidth.value) + 'px'
|
|
124
191
|
}));
|
|
125
|
-
const rootStyles = computed(() => ['or-sidebar', ...SidebarRoot
|
|
192
|
+
const rootStyles = computed(() => ['or-sidebar', ...SidebarRoot]);
|
|
193
|
+
const sidebarStyles = computed(() => [...SidebarBar, ...SidebarSides[props.side]]);
|
|
194
|
+
const toolbarStyles = computed(() => [...SidebarToolbar, ...(props.collapsible ? CollapsibleSidebarToolbar : []), ...SidebarToolbarSides[props.side]]);
|
|
126
195
|
const resizeStyles = computed(() => [...SidebarResize, ...SidebarResizeSides[props.side], ...(isResizing.value ? SidebarResizingSides[props.side] : [])]);
|
|
196
|
+
const collapsibleButtonStyles = computed(() => [...SidebarCollapseButton, ...SidebarCollapseButtonSides[props.side]]);
|
|
127
197
|
const mainStyles = computed(() => [...SidebarMain]);
|
|
128
198
|
const headerStyles = computed(() => [...SidebarHeader]);
|
|
129
199
|
const contentStyles = computed(() => [...SidebarContent]);
|
|
@@ -149,8 +219,15 @@ var script = defineComponent({
|
|
|
149
219
|
isResizing.value = false;
|
|
150
220
|
}
|
|
151
221
|
});
|
|
222
|
+
// Methods
|
|
223
|
+
function open() {
|
|
224
|
+
isCollapsed.value = false;
|
|
225
|
+
}
|
|
226
|
+
function close() {
|
|
227
|
+
isCollapsed.value = true;
|
|
228
|
+
}
|
|
152
229
|
const {
|
|
153
|
-
width:
|
|
230
|
+
width: containerWidth
|
|
154
231
|
} = useElementBounding(parentContainer);
|
|
155
232
|
watch(() => props.width, newValue => {
|
|
156
233
|
if (newValue !== localWidth.value) {
|
|
@@ -160,22 +237,36 @@ var script = defineComponent({
|
|
|
160
237
|
watch(() => props.minimumWidth, newMinimum => {
|
|
161
238
|
if (newMinimum > localWidth.value) localWidth.value = newMinimum;
|
|
162
239
|
});
|
|
240
|
+
watch(() => props.maximumWidth, newMaximum => {
|
|
241
|
+
if (newMaximum < maximumWidth.value) maximumWidth.value = newMaximum;
|
|
242
|
+
});
|
|
243
|
+
watch(containerWidth, newMaximum => {
|
|
244
|
+
if (newMaximum < maximumWidth.value) maximumWidth.value = newMaximum;
|
|
245
|
+
});
|
|
163
246
|
watch(maximumWidth, newMaximum => {
|
|
164
247
|
if (newMaximum < localWidth.value) localWidth.value = newMaximum;
|
|
165
248
|
});
|
|
166
249
|
watch(localWidth, val => emit('change:width', val));
|
|
250
|
+
watch(isCollapsed, val => emit(val ? 'close' : 'open'));
|
|
167
251
|
return {
|
|
168
252
|
root,
|
|
169
253
|
resizeBar,
|
|
170
254
|
isResizing,
|
|
255
|
+
isCollapsed,
|
|
171
256
|
localWidth,
|
|
257
|
+
isShowingToolbar,
|
|
172
258
|
sidebarStyle,
|
|
173
259
|
rootStyles,
|
|
260
|
+
sidebarStyles,
|
|
261
|
+
toolbarStyles,
|
|
174
262
|
resizeStyles,
|
|
263
|
+
collapsibleButtonStyles,
|
|
175
264
|
mainStyles,
|
|
176
265
|
headerStyles,
|
|
177
266
|
contentStyles,
|
|
178
|
-
footerStyles
|
|
267
|
+
footerStyles,
|
|
268
|
+
open,
|
|
269
|
+
close
|
|
179
270
|
};
|
|
180
271
|
}
|
|
181
272
|
});
|
|
@@ -190,20 +281,50 @@ var __vue_render__ = function () {
|
|
|
190
281
|
var _c = _vm._self._c || _h;
|
|
191
282
|
return _c('aside', {
|
|
192
283
|
ref: "root",
|
|
193
|
-
class: _vm.rootStyles
|
|
284
|
+
class: _vm.rootStyles
|
|
285
|
+
}, [_vm.side === 'right' && _vm.isShowingToolbar ? _c('div', {
|
|
286
|
+
class: _vm.toolbarStyles
|
|
287
|
+
}, [_vm._t("toolbar")], 2) : _vm._e(), _vm._v(" "), _c('div', {
|
|
288
|
+
class: _vm.sidebarStyles,
|
|
194
289
|
style: _vm.sidebarStyle
|
|
195
|
-
}, [_c('div', {
|
|
290
|
+
}, [_vm.draggable && !_vm.isCollapsed ? _c('div', {
|
|
196
291
|
ref: "resizeBar",
|
|
197
292
|
class: _vm.resizeStyles
|
|
198
|
-
}), _vm._v(" "), _c('
|
|
293
|
+
}) : _vm._e(), _vm._v(" "), _vm.collapsible ? _c('or-sidebar-collapse-button', {
|
|
294
|
+
class: _vm.collapsibleButtonStyles,
|
|
295
|
+
attrs: {
|
|
296
|
+
"side": _vm.side
|
|
297
|
+
},
|
|
298
|
+
model: {
|
|
299
|
+
value: _vm.isCollapsed,
|
|
300
|
+
callback: function ($$v) {
|
|
301
|
+
_vm.isCollapsed = $$v;
|
|
302
|
+
},
|
|
303
|
+
expression: "isCollapsed"
|
|
304
|
+
}
|
|
305
|
+
}) : _vm._e(), _vm._v(" "), _c('div', {
|
|
306
|
+
directives: [{
|
|
307
|
+
name: "show",
|
|
308
|
+
rawName: "v-show",
|
|
309
|
+
value: !_vm.isCollapsed,
|
|
310
|
+
expression: "!isCollapsed"
|
|
311
|
+
}],
|
|
199
312
|
class: _vm.mainStyles
|
|
200
313
|
}, [_vm.$slots.header ? _c('div', {
|
|
201
314
|
class: _vm.headerStyles
|
|
202
315
|
}, [_vm._t("header")], 2) : _vm._e(), _vm._v(" "), _c('div', {
|
|
203
316
|
class: _vm.contentStyles
|
|
204
317
|
}, [_vm._t("default")], 2)]), _vm._v(" "), _vm.$slots.footer ? _c('div', {
|
|
318
|
+
directives: [{
|
|
319
|
+
name: "show",
|
|
320
|
+
rawName: "v-show",
|
|
321
|
+
value: !_vm.isCollapsed,
|
|
322
|
+
expression: "!isCollapsed"
|
|
323
|
+
}],
|
|
205
324
|
class: _vm.footerStyles
|
|
206
|
-
}, [_vm._t("footer")], 2) : _vm._e()])
|
|
325
|
+
}, [_vm._t("footer")], 2) : _vm._e()], 1), _vm._v(" "), _vm.side === 'left' && _vm.isShowingToolbar ? _c('div', {
|
|
326
|
+
class: _vm.toolbarStyles
|
|
327
|
+
}, [_vm._t("toolbar")], 2) : _vm._e()]);
|
|
207
328
|
};
|
|
208
329
|
var __vue_staticRenderFns__ = [];
|
|
209
330
|
|
|
@@ -227,4 +348,4 @@ const __vue_component__ = /*#__PURE__*/normalizeComponent({
|
|
|
227
348
|
}, __vue_inject_styles__, __vue_script__, __vue_scope_id__, __vue_is_functional_template__, __vue_module_identifier__, false, undefined, undefined, undefined);
|
|
228
349
|
var __vue_component__$1 = __vue_component__;
|
|
229
350
|
|
|
230
|
-
export {
|
|
351
|
+
export { __vue_component__$1 as _ };
|