@cortezaproject/corteza-vue 2022.9.4 → 2023.3.0-dev.1
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/index.es.js +21 -11
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +21 -11
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -82151,19 +82151,29 @@ var script$F = {
|
|
|
82151
82151
|
'$route.name': {
|
|
82152
82152
|
immediate: true,
|
|
82153
82153
|
|
|
82154
|
-
handler(
|
|
82155
|
-
|
|
82156
|
-
|
|
82157
|
-
|
|
82158
|
-
|
|
82159
|
-
|
|
82160
|
-
|
|
82161
|
-
|
|
82154
|
+
handler() {
|
|
82155
|
+
this.checkSidebar();
|
|
82156
|
+
}
|
|
82157
|
+
|
|
82158
|
+
},
|
|
82159
|
+
disabledRoutes: {
|
|
82160
|
+
handler() {
|
|
82161
|
+
this.checkSidebar();
|
|
82162
82162
|
}
|
|
82163
82163
|
|
|
82164
82164
|
}
|
|
82165
82165
|
},
|
|
82166
82166
|
methods: {
|
|
82167
|
+
checkSidebar() {
|
|
82168
|
+
// If sidebar should be disabled on route, close and unpin when navigating to route
|
|
82169
|
+
if (this.disabledRoutes.includes(this.$route.name)) {
|
|
82170
|
+
this.isPinned = false;
|
|
82171
|
+
this.isExpanded = false;
|
|
82172
|
+
} else if (this.expandOnHover) {
|
|
82173
|
+
this.defaultSidebarAppearance();
|
|
82174
|
+
}
|
|
82175
|
+
},
|
|
82176
|
+
|
|
82167
82177
|
onHover: _.throttle(function (expand) {
|
|
82168
82178
|
if (!this.pinned && this.expandOnHover) {
|
|
82169
82179
|
setTimeout(() => {
|
|
@@ -82233,12 +82243,12 @@ var __vue_staticRenderFns__$B = [];
|
|
|
82233
82243
|
/* style */
|
|
82234
82244
|
const __vue_inject_styles__$G = function (inject) {
|
|
82235
82245
|
if (!inject) return
|
|
82236
|
-
inject("data-v-
|
|
82237
|
-
,inject("data-v-
|
|
82246
|
+
inject("data-v-f380476a_0", { source: ".tab[data-v-f380476a]{z-index:1021;top:0;height:64px;width:66px}.icon[data-v-f380476a]{max-height:40px;max-width:40px}.logo[data-v-f380476a]{max-height:40px}.sidebar-header[data-v-f380476a]{height:64px}", map: undefined, media: undefined })
|
|
82247
|
+
,inject("data-v-f380476a_1", { source: ".sidebar{display:flex!important;left:calc(-320px)!important;-webkit-transition:left .15s ease-in-out;-moz-transition:left .15s ease-in-out;-o-transition:left .15s ease-in-out;transition:left .15s ease-in-out}.sidebar header{background-color:#fff}.sidebar header.expanded{background-color:#f4f7fa!important}.sidebar.expanded{left:0!important;-webkit-transition:left .2s ease-in-out;-moz-transition:left .2s ease-in-out;-o-transition:left .2s ease-in-out;transition:left .2s ease-in-out}[dir=rtl] .sidebar{right:calc(-320px)!important;-webkit-transition:right .15s ease-in-out;-moz-transition:right .15s ease-in-out;-o-transition:right .15s ease-in-out;transition:right .15s ease-in-out}[dir=rtl] .sidebar header{background-color:#fff}[dir=rtl] .sidebar header.expanded{background-color:#f4f7fa!important}[dir=rtl] .sidebar.expanded{right:0!important;-webkit-transition:right .2s ease-in-out;-moz-transition:right .2s ease-in-out;-o-transition:right .2s ease-in-out;transition:right .2s ease-in-out}", map: undefined, media: undefined });
|
|
82238
82248
|
|
|
82239
82249
|
};
|
|
82240
82250
|
/* scoped */
|
|
82241
|
-
const __vue_scope_id__$G = "data-v-
|
|
82251
|
+
const __vue_scope_id__$G = "data-v-f380476a";
|
|
82242
82252
|
/* module identifier */
|
|
82243
82253
|
const __vue_module_identifier__$G = undefined;
|
|
82244
82254
|
/* functional template */
|