@cortezaproject/corteza-vue 2022.3.0 → 2022.3.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 +20 -17
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +20 -17
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -71253,13 +71253,13 @@ var script$a = {
|
|
|
71253
71253
|
const __vue_script__$a = script$a;
|
|
71254
71254
|
|
|
71255
71255
|
/* template */
|
|
71256
|
-
var __vue_render__$9 = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('b-input-
|
|
71256
|
+
var __vue_render__$9 = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('b-row',{staticClass:"c-input-date-time",attrs:{"align-v":"stretch","no-gutters":""}},[_c('b-col',{staticClass:"position-static overflow-hidden",attrs:{"lg":_vm.noTime ? 12 : 6}},[(!_vm.noDate)?_c('b-form-datepicker',{staticClass:"h-100 overflow-hidden",attrs:{"placeholder":_vm.labels.none,"date-format-options":{ year: 'numeric', month: 'numeric', day: 'numeric' },"min":_vm.minDate,"max":_vm.maxDate,"label-reset-button":_vm.labels.clear,"label-today-button":_vm.labels.today,"label-help":"","today-variant":"info","selected-variant":"secondary","boundary":"window","hide-header":"","reset-button":"","today-button":""},model:{value:(_vm.date),callback:function ($$v) {_vm.date=$$v;},expression:"date"}}):_vm._e()],1),_vm._v(" "),_c('b-col',{staticClass:"position-static overflow-hidden",class:{ 'mt-1 mt-lg-0 pl-lg-1': !_vm.noDate },attrs:{"lg":_vm.noDate ? 12 : 6}},[(!_vm.noTime)?_c('b-form-timepicker',{staticClass:"h-100 overflow-hidden",attrs:{"placeholder":_vm.labels.none,"label-reset-button":_vm.labels.clear,"label-now-button":_vm.labels.now,"boundary":"window","hide-header":"","no-close-button":"","reset-button":"","now-button":""},model:{value:(_vm.time),callback:function ($$v) {_vm.time=$$v;},expression:"time"}}):_vm._e()],1)],1)};
|
|
71257
71257
|
var __vue_staticRenderFns__$9 = [];
|
|
71258
71258
|
|
|
71259
71259
|
/* style */
|
|
71260
71260
|
const __vue_inject_styles__$b = function (inject) {
|
|
71261
71261
|
if (!inject) return
|
|
71262
|
-
inject("data-v-
|
|
71262
|
+
inject("data-v-1bc6bb72_0", { source: ".c-input-date-time{min-width:120px}.c-input-date-time .btn{padding:.25rem .5rem}.c-input-date-time label{font-family:Poppins-Regular;color:#495057!important}.b-calendar-inner{background-color:#fff}@media (min-width:992px){.c-input-date-time{min-width:250px}}", map: undefined, media: undefined });
|
|
71263
71263
|
|
|
71264
71264
|
};
|
|
71265
71265
|
/* scoped */
|
|
@@ -82152,12 +82152,20 @@ var script$G = {
|
|
|
82152
82152
|
|
|
82153
82153
|
watch: {
|
|
82154
82154
|
items: {
|
|
82155
|
-
|
|
82156
|
-
|
|
82157
|
-
|
|
82158
|
-
|
|
82159
|
-
|
|
82160
|
-
|
|
82155
|
+
immediate: true,
|
|
82156
|
+
|
|
82157
|
+
handler(items = []) {
|
|
82158
|
+
items.forEach(({
|
|
82159
|
+
page
|
|
82160
|
+
}) => {
|
|
82161
|
+
const px = this.pageIndex(page); // Apply startExpanded only if page isn't currently expanded
|
|
82162
|
+
|
|
82163
|
+
if (!this.collapses[px]) {
|
|
82164
|
+
this.$set(this.collapses, px, this.startExpanded);
|
|
82165
|
+
}
|
|
82166
|
+
});
|
|
82167
|
+
}
|
|
82168
|
+
|
|
82161
82169
|
}
|
|
82162
82170
|
},
|
|
82163
82171
|
methods: {
|
|
@@ -82176,11 +82184,6 @@ var script$G = {
|
|
|
82176
82184
|
this.$set(this.collapses, px, !this.collapses[px]);
|
|
82177
82185
|
},
|
|
82178
82186
|
|
|
82179
|
-
setState(p, state = false) {
|
|
82180
|
-
const px = this.pageIndex(p);
|
|
82181
|
-
this.$set(this.collapses, px, state);
|
|
82182
|
-
},
|
|
82183
|
-
|
|
82184
82187
|
// Recursively check for child pages that are open, so that parents can open aswell
|
|
82185
82188
|
showChildren({
|
|
82186
82189
|
params = {},
|
|
@@ -82204,21 +82207,21 @@ var script$G = {
|
|
|
82204
82207
|
const __vue_script__$G = script$G;
|
|
82205
82208
|
|
|
82206
82209
|
/* template */
|
|
82207
|
-
var __vue_render__$C = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"nav-sidebar"},_vm._l((_vm.items),function(ref
|
|
82210
|
+
var __vue_render__$C = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"nav-sidebar"},_vm._l((_vm.items),function(ref){
|
|
82208
82211
|
var page = ref.page; if ( page === void 0 ) page = {};
|
|
82209
82212
|
var params = ref.params; if ( params === void 0 ) params = {};
|
|
82210
82213
|
var children = ref.children; if ( children === void 0 ) children = [];
|
|
82211
|
-
return _c('b-button',{key:
|
|
82214
|
+
return _c('b-button',{key:_vm.pageIndex(page),staticClass:"w-100 text-dark text-decoration-none p-0 pt-2 nav-item",attrs:{"variant":"link","active-class":"nav-active","exact-active-class":"nav-active","to":{ name: page.name || _vm.defaultRouteName, params: params }}},[_c('span',{staticClass:"d-inline-block w-75 text-nowrap text-truncate",on:{"click":function($event){return _vm.closeSidebar()}}},[(page.icon)?_c('font-awesome-icon',{staticClass:"icon",attrs:{"icon":page.icon}}):_vm._e(),_vm._v(" "),_c('span',{staticClass:"title"},[_vm._v("\n "+_vm._s(page.title)+"\n ")])],1),_vm._v(" "),(children.length)?[_c('b-button',{staticClass:"p-0 float-right",attrs:{"variant":"link","disabled":_vm.showChildren({ params: params, children: children })},on:{"click":function($event){if($event.target !== $event.currentTarget){ return null; }$event.stopPropagation();$event.preventDefault();return _vm.toggle(page)}}},[(!_vm.collapses[_vm.pageIndex(page)])?_c('font-awesome-icon',{staticClass:"pointer-none",attrs:{"icon":['fas', 'chevron-down']}}):_c('font-awesome-icon',{staticClass:"pointer-none",attrs:{"icon":['fas', 'chevron-up']}})],1),_vm._v(" "),_c('b-collapse',{attrs:{"visible":_vm.collapses[_vm.pageIndex(page)] || _vm.showChildren({ params: params, children: children })},on:{"click":function($event){$event.stopPropagation();$event.preventDefault();}}},[_c('c-sidebar-nav-items',_vm._g({staticClass:"ml-2",attrs:{"items":children,"start-expanded":_vm.startExpanded,"default-route-name":_vm.defaultRouteName}},_vm.$listeners))],1)]:_vm._e()],2)}),1)};
|
|
82212
82215
|
var __vue_staticRenderFns__$C = [];
|
|
82213
82216
|
|
|
82214
82217
|
/* style */
|
|
82215
82218
|
const __vue_inject_styles__$H = function (inject) {
|
|
82216
82219
|
if (!inject) return
|
|
82217
|
-
inject("data-v-
|
|
82220
|
+
inject("data-v-bae441da_0", { source: ".pointer-none[data-v-bae441da]{pointer-events:none}.svg-inline--fa[data-v-bae441da]{width:30px}.nav-item>span>.title[data-v-bae441da]{font-family:Poppins-Regular}.nav-active>span>.icon[data-v-bae441da]{color:#4d7281}.nav-active>span>.title[data-v-bae441da]{font-family:Poppins-SemiBold}.nav-item[data-v-bae441da]{text-align:left}[dir=rtl] .nav-item[data-v-bae441da]{text-align:right}", map: undefined, media: undefined });
|
|
82218
82221
|
|
|
82219
82222
|
};
|
|
82220
82223
|
/* scoped */
|
|
82221
|
-
const __vue_scope_id__$H = "data-v-
|
|
82224
|
+
const __vue_scope_id__$H = "data-v-bae441da";
|
|
82222
82225
|
/* module identifier */
|
|
82223
82226
|
const __vue_module_identifier__$H = undefined;
|
|
82224
82227
|
/* functional template */
|