@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 CHANGED
@@ -82144,19 +82144,29 @@ var script$F = {
82144
82144
  '$route.name': {
82145
82145
  immediate: true,
82146
82146
 
82147
- handler(name) {
82148
- // If sidebar should be disabled on route, close and unpin when navigating to route
82149
- if (this.disabledRoutes.includes(name)) {
82150
- this.isPinned = false;
82151
- this.isExpanded = false;
82152
- } else if (this.expandOnHover) {
82153
- this.defaultSidebarAppearance();
82154
- }
82147
+ handler() {
82148
+ this.checkSidebar();
82149
+ }
82150
+
82151
+ },
82152
+ disabledRoutes: {
82153
+ handler() {
82154
+ this.checkSidebar();
82155
82155
  }
82156
82156
 
82157
82157
  }
82158
82158
  },
82159
82159
  methods: {
82160
+ checkSidebar() {
82161
+ // If sidebar should be disabled on route, close and unpin when navigating to route
82162
+ if (this.disabledRoutes.includes(this.$route.name)) {
82163
+ this.isPinned = false;
82164
+ this.isExpanded = false;
82165
+ } else if (this.expandOnHover) {
82166
+ this.defaultSidebarAppearance();
82167
+ }
82168
+ },
82169
+
82160
82170
  onHover: throttle(function (expand) {
82161
82171
  if (!this.pinned && this.expandOnHover) {
82162
82172
  setTimeout(() => {
@@ -82226,12 +82236,12 @@ var __vue_staticRenderFns__$B = [];
82226
82236
  /* style */
82227
82237
  const __vue_inject_styles__$G = function (inject) {
82228
82238
  if (!inject) return
82229
- inject("data-v-c7f9ec72_0", { source: ".tab[data-v-c7f9ec72]{z-index:1021;top:0;height:64px;width:66px}.icon[data-v-c7f9ec72]{max-height:40px;max-width:40px}.logo[data-v-c7f9ec72]{max-height:40px}.sidebar-header[data-v-c7f9ec72]{height:64px}", map: undefined, media: undefined })
82230
- ,inject("data-v-c7f9ec72_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 });
82239
+ 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 })
82240
+ ,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 });
82231
82241
 
82232
82242
  };
82233
82243
  /* scoped */
82234
- const __vue_scope_id__$G = "data-v-c7f9ec72";
82244
+ const __vue_scope_id__$G = "data-v-f380476a";
82235
82245
  /* module identifier */
82236
82246
  const __vue_module_identifier__$G = undefined;
82237
82247
  /* functional template */