@cortezaproject/corteza-vue 2023.9.9 → 2023.9.10-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/components/auth/index.d.ts +1 -0
- package/dist/components/notifications/index.d.ts +2 -0
- package/dist/components/notifications/types/index.d.ts +6 -0
- package/dist/components/webcam/index.d.ts +1 -0
- package/dist/components/wrapper/index.d.ts +1 -1
- package/dist/index.es.js +46 -26
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +46 -26
- package/dist/index.js.map +1 -1
- package/dist/store/notifications/index.d.ts +16 -0
- package/package.json +2 -2
- package/dist/components/Tour/index.d.ts +0 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as CExtendSession } from './CExtendSession.vue';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import NotificationSimple from './NotificationSimple.vue';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
NotificationSimple: import("vue").VueConstructor<NotificationSimple<Record<string, any>, Record<string, any>, never, never, (event: string, ...args: any[]) => NotificationSimple>>;
|
|
4
|
+
NotificationRecord: import("vue").VueConstructor<NotificationSimple<Record<string, any>, Record<string, any>, never, never, (event: string, ...args: any[]) => NotificationSimple>>;
|
|
5
|
+
};
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as CWebcam } from './CWebcam.vue';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default as CFormTableWrapper } from './CFormTableWrapper.vue';
|
|
1
|
+
export { default as CFormTableWrapper } from './CFormTableWrapper.vue';
|
package/dist/index.es.js
CHANGED
|
@@ -86405,7 +86405,8 @@ var script$y = {
|
|
|
86405
86405
|
default: () => false
|
|
86406
86406
|
},
|
|
86407
86407
|
payload: {
|
|
86408
|
-
type: Object
|
|
86408
|
+
type: Object,
|
|
86409
|
+
default: () => ({})
|
|
86409
86410
|
}
|
|
86410
86411
|
},
|
|
86411
86412
|
computed: {
|
|
@@ -86937,8 +86938,8 @@ var __vue_staticRenderFns__$y = [];
|
|
|
86937
86938
|
|
|
86938
86939
|
const validTypes = ['text', 'number', 'email', 'password', 'search', 'date', 'time'];
|
|
86939
86940
|
var script$D = {
|
|
86941
|
+
name: 'CPromptInput',
|
|
86940
86942
|
extends: __vue_component__$z,
|
|
86941
|
-
name: 'c-prompt-input',
|
|
86942
86943
|
|
|
86943
86944
|
data() {
|
|
86944
86945
|
return {
|
|
@@ -86946,10 +86947,6 @@ var script$D = {
|
|
|
86946
86947
|
};
|
|
86947
86948
|
},
|
|
86948
86949
|
|
|
86949
|
-
beforeMount() {
|
|
86950
|
-
this.value = this.pVal('value');
|
|
86951
|
-
},
|
|
86952
|
-
|
|
86953
86950
|
computed: {
|
|
86954
86951
|
type() {
|
|
86955
86952
|
const t = this.pVal('type', 'text');
|
|
@@ -86965,7 +86962,12 @@ var script$D = {
|
|
|
86965
86962
|
return this.pVal('label', '');
|
|
86966
86963
|
}
|
|
86967
86964
|
|
|
86965
|
+
},
|
|
86966
|
+
|
|
86967
|
+
beforeMount() {
|
|
86968
|
+
this.value = this.pVal('inputValue');
|
|
86968
86969
|
}
|
|
86970
|
+
|
|
86969
86971
|
};
|
|
86970
86972
|
|
|
86971
86973
|
/* script */
|
|
@@ -87806,7 +87808,7 @@ const prompts = Object.freeze([
|
|
|
87806
87808
|
},
|
|
87807
87809
|
{
|
|
87808
87810
|
ref: 'refetchRecords',
|
|
87809
|
-
meta: { short: '
|
|
87811
|
+
meta: { short: 'Refresh all record values on the page' },
|
|
87810
87812
|
},
|
|
87811
87813
|
{
|
|
87812
87814
|
ref: 'notification',
|
|
@@ -87872,7 +87874,7 @@ const prompts = Object.freeze([
|
|
|
87872
87874
|
parameters: [
|
|
87873
87875
|
{ name: 'owner', types: ['User', 'ID'], required: false },
|
|
87874
87876
|
{ name: 'title', types: ['String'] },
|
|
87875
|
-
{ name: 'variant', types: ['String'], meta: { visual: { input: { type: 'select', properties: { options: variants } } } } },
|
|
87877
|
+
{ name: 'variant', types: ['String'], meta: { visual: { input: { type: 'select', properties: { options: variants }, default: 'primary' } } } },
|
|
87876
87878
|
{ name: 'message', types: ['String'], required: true },
|
|
87877
87879
|
{ name: 'label', types: ['String'] },
|
|
87878
87880
|
{
|
|
@@ -87880,15 +87882,21 @@ const prompts = Object.freeze([
|
|
|
87880
87882
|
types: ['String'],
|
|
87881
87883
|
meta: {
|
|
87882
87884
|
visual: {
|
|
87883
|
-
|
|
87884
|
-
|
|
87885
|
-
|
|
87886
|
-
|
|
87887
|
-
|
|
87888
|
-
|
|
87889
|
-
|
|
87890
|
-
|
|
87891
|
-
|
|
87885
|
+
input: {
|
|
87886
|
+
type: 'select',
|
|
87887
|
+
properties: {
|
|
87888
|
+
options: [
|
|
87889
|
+
{ value: 'text', text: 'Text' },
|
|
87890
|
+
{ value: 'number', text: 'Number' },
|
|
87891
|
+
{ value: 'email', text: 'Email' },
|
|
87892
|
+
{ value: 'password', text: 'Password' },
|
|
87893
|
+
{ value: 'search', text: 'Search' },
|
|
87894
|
+
{ value: 'date', text: 'Date' },
|
|
87895
|
+
{ value: 'time', text: 'Time' },
|
|
87896
|
+
],
|
|
87897
|
+
},
|
|
87898
|
+
default: 'text',
|
|
87899
|
+
},
|
|
87892
87900
|
},
|
|
87893
87901
|
},
|
|
87894
87902
|
},
|
|
@@ -87912,10 +87920,16 @@ const prompts = Object.freeze([
|
|
|
87912
87920
|
types: ['String'],
|
|
87913
87921
|
meta: {
|
|
87914
87922
|
visual: {
|
|
87915
|
-
|
|
87916
|
-
|
|
87917
|
-
|
|
87918
|
-
|
|
87923
|
+
input: {
|
|
87924
|
+
type: 'select',
|
|
87925
|
+
properties: {
|
|
87926
|
+
options: [
|
|
87927
|
+
{ value: 'select', text: 'Select' },
|
|
87928
|
+
{ value: 'radio', text: 'Radio' },
|
|
87929
|
+
],
|
|
87930
|
+
},
|
|
87931
|
+
default: 'select',
|
|
87932
|
+
},
|
|
87919
87933
|
},
|
|
87920
87934
|
},
|
|
87921
87935
|
},
|
|
@@ -90469,7 +90483,7 @@ var script$11 = {
|
|
|
90469
90483
|
from: (page - 1) * limit + 1,
|
|
90470
90484
|
to: limit > 0 ? Math.min(page * limit, total) : total,
|
|
90471
90485
|
count: total,
|
|
90472
|
-
data: total
|
|
90486
|
+
data: total === 1 ? this.translations.resourceSingle : this.translations.resourcePlural
|
|
90473
90487
|
};
|
|
90474
90488
|
return this.$t(this.translations[total > limit ? 'showingPagination' : 'singlePluralPagination'], pagination);
|
|
90475
90489
|
},
|
|
@@ -90490,7 +90504,7 @@ var script$11 = {
|
|
|
90490
90504
|
methods: {
|
|
90491
90505
|
tableRowClasses(item = {}) {
|
|
90492
90506
|
return {
|
|
90493
|
-
|
|
90507
|
+
pointer: this.clickable,
|
|
90494
90508
|
...this.rowClass(item)
|
|
90495
90509
|
};
|
|
90496
90510
|
},
|
|
@@ -90563,7 +90577,8 @@ var script$11 = {
|
|
|
90563
90577
|
},
|
|
90564
90578
|
|
|
90565
90579
|
setDefaultValues() {
|
|
90566
|
-
this.selected = []
|
|
90580
|
+
this.selected = [];
|
|
90581
|
+
this.selectableItemIDs = [];
|
|
90567
90582
|
},
|
|
90568
90583
|
|
|
90569
90584
|
handleSort({
|
|
@@ -90573,6 +90588,11 @@ var script$11 = {
|
|
|
90573
90588
|
this.sorting.sortDesc = !this.sorting.sortDesc;
|
|
90574
90589
|
this.pagination.page = 1;
|
|
90575
90590
|
this.$refs.resourceList.refresh();
|
|
90591
|
+
},
|
|
90592
|
+
|
|
90593
|
+
handleSearch(searchQuery) {
|
|
90594
|
+
this.filter[this.queryField] = searchQuery ? searchQuery.trim() : '';
|
|
90595
|
+
this.$emit('search');
|
|
90576
90596
|
}
|
|
90577
90597
|
|
|
90578
90598
|
}
|
|
@@ -90582,7 +90602,7 @@ var script$11 = {
|
|
|
90582
90602
|
const __vue_script__$11 = script$11;
|
|
90583
90603
|
|
|
90584
90604
|
/* template */
|
|
90585
|
-
var __vue_render__$X = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('b-card',{staticClass:"shadow-sm",staticStyle:{"min-height":"45rem"},attrs:{"id":"resource-list-wrapper","no-body":"","footer-bg-variant":"light","footer-class":"p-0","header-class":("border-0 " + _vm.cardHeaderClass)},scopedSlots:_vm._u([{key:"header",fn:function(){return [_c('b-container',{staticClass:"d-flex flex-column p-0 gap-2 d-print-none",attrs:{"fluid":""}},[_c('b-row',{staticClass:"d-flex align-items-center justify-content-between gap-1",attrs:{"no-gutters":""}},[_c('div',{class:("d-flex align-items-center flex-grow-1 flex-wrap flex-fill-child gap-1 " + _vm.headerClass)},[_vm._t("header",null,{"selected":_vm.selected})],2),_vm._v(" "),(!_vm.hideSearch)?_c('div',{staticClass:"flex-fill"},[_c('c-input-search',{attrs:{"placeholder":_vm.translations.searchPlaceholder,"
|
|
90605
|
+
var __vue_render__$X = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('b-card',{staticClass:"shadow-sm",staticStyle:{"min-height":"45rem"},attrs:{"id":"resource-list-wrapper","no-body":"","footer-bg-variant":"light","footer-class":"p-0","header-class":("border-0 " + _vm.cardHeaderClass)},scopedSlots:_vm._u([{key:"header",fn:function(){return [_c('b-container',{staticClass:"d-flex flex-column p-0 gap-2 d-print-none",attrs:{"fluid":""}},[_c('b-row',{staticClass:"d-flex align-items-center justify-content-between gap-1",attrs:{"no-gutters":""}},[_c('div',{class:("d-flex align-items-center flex-grow-1 flex-wrap flex-fill-child gap-1 " + _vm.headerClass)},[_vm._t("header",null,{"selected":_vm.selected})],2),_vm._v(" "),(!_vm.hideSearch)?_c('div',{staticClass:"flex-fill"},[_c('c-input-search',{attrs:{"value":_vm.filter[_vm.queryField],"placeholder":_vm.translations.searchPlaceholder,"submittable":true},on:{"search":_vm.handleSearch}})],1):_vm._e()]),_vm._v(" "),(_vm.$slots.toolbar)?_c('b-row',{staticClass:"gap-1"},[_vm._t("toolbar")],2):_vm._e()],1)]},proxy:true},(_vm.showFooter)?{key:"footer",fn:function(){return [_c('div',{staticClass:"resource-list-footer d-flex align-items-center flex-wrap px-3 py-2 gap-2"},[_c('div',{staticClass:"d-flex align-items-center flex-wrap gap-2"},[(!_vm.hideTotal)?_c('div',{staticClass:"text-nowrap text-truncate py-1"},[_vm._v("\n "+_vm._s(_vm.getPagination)+"\n ")]):_vm._e(),_vm._v(" "),(!_vm.hidePerPageOption)?_c('div',{staticClass:"d-flex align-items-center gap-1 text-nowrap ml-auto"},[_c('span',[_vm._v("\n "+_vm._s(_vm.$t('general:resourceList.pagination.recordsPerPage'))+"\n ")]),_vm._v(" "),_c('b-form-select',{attrs:{"value":_vm.pagination.limit,"options":_vm.perPageOptions,"size":"sm"},on:{"change":_vm.handlePerPageChange}})],1):_vm._e()]),_vm._v(" "),(!_vm.hidePagination)?_c('div',{staticClass:"d-flex align-items-center ml-auto"},[_c('b-button-group',{staticClass:"gap-1"},[_c('b-button',{staticClass:"d-flex align-items-center text-dark border-0 p-1",attrs:{"disabled":!_vm.hasPrevPage,"variant":"outline-extra-light"},on:{"click":function($event){return _vm.goToPage()}}},[_c('font-awesome-icon',{attrs:{"icon":['fas', 'angle-double-left']}})],1),_vm._v(" "),_c('b-button',{staticClass:"d-flex align-items-center text-dark border-0 p-1",attrs:{"disabled":!_vm.hasPrevPage,"variant":"outline-extra-light"},on:{"click":function($event){return _vm.goToPage('prevPage')}}},[_c('font-awesome-icon',{staticClass:"mr-1",attrs:{"icon":['fas', 'angle-left']}}),_vm._v("\n\n "+_vm._s(_vm.translations.prevPagination)+"\n ")],1),_vm._v(" "),_c('b-button',{staticClass:"d-flex align-items-center justify-content-center text-dark border-0 p-1",attrs:{"disabled":!_vm.hasNextPage,"variant":"outline-extra-light"},on:{"click":function($event){return _vm.goToPage('nextPage')}}},[_vm._v("\n "+_vm._s(_vm.translations.nextPagination)+"\n\n "),_c('font-awesome-icon',{staticClass:"ml-1",attrs:{"icon":['fas', 'angle-right']}})],1)],1)],1):_vm._e()])]},proxy:true}:null],null,true)},[_vm._v(" "),_c('b-card-body',{staticClass:"p-0"},[_c('b-table',{ref:"resourceList",staticClass:"mh-100 h-100 mb-0",attrs:{"id":"resource-list","fields":_vm._fields,"items":_vm._items,"sticky-header":_vm.stickyHeader,"tbody-tr-class":_vm.tableRowClasses,"hover":"","responsive":"","show-empty":"","no-sort-reset":"","no-local-sorting":"","head-variant":"light","foot-variant":"light","primary-key":_vm.primaryKey},on:{"row-clicked":function($event){return _vm.$emit('row-clicked', $event)}},scopedSlots:_vm._u([{key:"head()",fn:function(field){return [_c('div',{staticClass:"d-flex align-items-center",on:{"click":function($event){$event.preventDefault();$event.stopPropagation();}}},[_c('div',{staticClass:"flex-fill text-nowrap"},[_vm._v("\n "+_vm._s(field.label)+"\n\n "),(field.field.sort)?_c('b-button',{staticClass:"d-inline-flex align-items-center text-secondary d-print-none border-0 px-1 ml-1",staticStyle:{"margin-right":"-0.25rem"},attrs:{"variant":"outline-extra-light"},on:{"click":function($event){return _vm.handleSort(field)}}},[_c('font-awesome-layers',{staticClass:"d-print-none"},[_c('font-awesome-icon',{staticClass:"mb-1",class:{ 'text-primary': field.column === _vm.sorting.sortBy && !_vm.sorting.sortDesc },attrs:{"icon":['fas', 'angle-up']}}),_vm._v(" "),_c('font-awesome-icon',{staticClass:"mt-1",class:{ 'text-primary': field.column === _vm.sorting.sortBy && _vm.sorting.sortDesc },attrs:{"icon":['fas', 'angle-down']}})],1)],1):_vm._e()],1)])]}},{key:"empty",fn:function(){return [_c('p',{staticClass:"text-center text-dark",staticStyle:{"margin-top":"1vh"},attrs:{"data-test-id":"no-matches"}},[_vm._v("\n "+_vm._s(_vm.translations.noItems)+"\n ")])]},proxy:true},{key:"table-busy",fn:function(){return [_c('div',{staticClass:"text-center m-5"},[_c('div',[_c('b-spinner',{staticClass:"align-middle m-2"})],1),_vm._v("\n "+_vm._s(_vm.translations.loading)+"\n ")])]},proxy:true},(_vm.selectable)?{key:"head(select)",fn:function(){return [_c('b-checkbox',{staticClass:"ml-1",attrs:{"disabled":_vm.disableSelectAll,"checked":_vm.allRowsSelected && !_vm.disableSelectAll},on:{"change":_vm.selectAllRows}})]},proxy:true}:null,{key:"cell(select)",fn:function(ref){
|
|
90586
90606
|
var item = ref.item;
|
|
90587
90607
|
return [(_vm.isItemSelectable(item))?_c('b-form-checkbox',{staticClass:"ml-1",attrs:{"checked":_vm.selected.includes(item[_vm.primaryKey])},on:{"change":function($event){return _vm.onSelectRow($event, item[_vm.primaryKey])}}}):_vm._e()]}},_vm._l((_vm.customFieldSlots),function(field){return {key:("cell(" + field + ")"),fn:function(ref){
|
|
90588
90608
|
var item = ref.item;
|
|
@@ -90592,7 +90612,7 @@ var __vue_staticRenderFns__$X = [];
|
|
|
90592
90612
|
/* style */
|
|
90593
90613
|
const __vue_inject_styles__$12 = function (inject) {
|
|
90594
90614
|
if (!inject) return
|
|
90595
|
-
inject("data-v-
|
|
90615
|
+
inject("data-v-80dd1ee0_0", { source: "#resource-list td.actions{padding-top:8px;right:0;opacity:0;position:sticky;transition:opacity .25s;width:1%;font-family:var(--font-regular)!important}#resource-list tr:hover td.actions{opacity:1;z-index:1;background-color:var(--light)}#resource-list>thead>tr>[aria-sort=ascending],#resource-list>thead>tr>[aria-sort=descending],#resource-list>thead>tr>[aria-sort=none]{background-image:none!important}.resource-list-footer{font-family:var(--font-medium)}", map: undefined, media: undefined });
|
|
90596
90616
|
|
|
90597
90617
|
};
|
|
90598
90618
|
/* scoped */
|