@cortezaproject/corteza-vue 2024.9.3 → 2024.9.4-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/c3/C3.d.ts +5 -0
- package/dist/components/filePreview/common/index.d.ts +2 -0
- package/dist/components/filePreview/common/types/PDF/helpers.d.ts +53 -0
- package/dist/components/filePreview/common/types/index.d.ts +3 -0
- package/dist/components/input/CRichTextInput/RToolbar/TMark/loader.d.ts +10 -0
- package/dist/components/input/CRichTextInput/RToolbar/TNode/loader.d.ts +6 -0
- package/dist/components/input/CRichTextInput/RToolbar/TNodeAttr/loader.d.ts +6 -0
- package/dist/components/input/CRichTextInput/RToolbar/loader.d.ts +9 -0
- package/dist/components/input/CRichTextInput/extensions/heading.d.ts +12 -0
- package/dist/components/input/CRichTextInput/extensions/htmlPaster.d.ts +4 -0
- package/dist/components/input/CRichTextInput/extensions/index.d.ts +6 -0
- package/dist/components/input/CRichTextInput/extensions/link.d.ts +6 -0
- package/dist/components/input/CRichTextInput/extensions/paragraph.d.ts +9 -0
- package/dist/components/input/CRichTextInput/extensions/textBackground.d.ts +23 -0
- package/dist/components/input/CRichTextInput/extensions/textColor.d.ts +23 -0
- package/dist/components/input/CRichTextInput/extensions/utils.d.ts +15 -0
- package/dist/components/input/CRichTextInput/lib/formats.d.ts +85 -0
- package/dist/components/input/CRichTextInput/lib/index.d.ts +1 -0
- package/dist/components/itemPicker/C3.d.ts +1 -0
- package/dist/components/itemPicker/CItemPicker.c3.d.ts +32 -0
- package/dist/components/toaster/actions/index.d.ts +3 -0
- package/dist/index.es.js +7 -2
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +7 -2
- package/dist/index.js.map +1 -1
- package/dist/mixins/corredor.d.ts +49 -0
- package/dist/mixins/files.d.ts +19 -0
- package/dist/mixins/vue-select-position.d.ts +11 -0
- package/dist/plugins/reminder.d.ts +66 -0
- package/dist/plugins/settings.d.ts +27 -0
- package/package.json +2 -2
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Helper to generate a placeholder page node
|
|
3
|
+
* @param {Object} labels Available labels
|
|
4
|
+
* @returns {Node}
|
|
5
|
+
*/
|
|
6
|
+
export function makePlaceholder(labels: Object): Node;
|
|
7
|
+
/**
|
|
8
|
+
* Helper to generate a failed page node
|
|
9
|
+
* @param {Object} labels Available labels
|
|
10
|
+
*/
|
|
11
|
+
export function makeFailedPage(labels: Object): HTMLDivElement;
|
|
12
|
+
/**
|
|
13
|
+
* Represents a PDF's page + system metadata
|
|
14
|
+
*/
|
|
15
|
+
export class Page {
|
|
16
|
+
constructor(params: any);
|
|
17
|
+
merge({ index, page, loading, loaded, rendered, failed, node }: {
|
|
18
|
+
index: any;
|
|
19
|
+
page: any;
|
|
20
|
+
loading: any;
|
|
21
|
+
loaded: any;
|
|
22
|
+
rendered: any;
|
|
23
|
+
failed: any;
|
|
24
|
+
node: any;
|
|
25
|
+
}): void;
|
|
26
|
+
index: any;
|
|
27
|
+
page: any;
|
|
28
|
+
loading: any;
|
|
29
|
+
loaded: any;
|
|
30
|
+
rendered: any;
|
|
31
|
+
failed: any;
|
|
32
|
+
node: any;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Represents the document source
|
|
36
|
+
*/
|
|
37
|
+
export class Document {
|
|
38
|
+
constructor(params: any);
|
|
39
|
+
merge({ src, pdf, loading, loaded, failed, scale }: {
|
|
40
|
+
src: any;
|
|
41
|
+
pdf: any;
|
|
42
|
+
loading: any;
|
|
43
|
+
loaded: any;
|
|
44
|
+
failed: any;
|
|
45
|
+
scale: any;
|
|
46
|
+
}): void;
|
|
47
|
+
src: any;
|
|
48
|
+
pdf: any;
|
|
49
|
+
loading: any;
|
|
50
|
+
loaded: any;
|
|
51
|
+
failed: any;
|
|
52
|
+
scale: any;
|
|
53
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference path="../../../../../src/vue.shims.d.ts" />
|
|
2
|
+
declare namespace _default {
|
|
3
|
+
export { Color };
|
|
4
|
+
export { Item };
|
|
5
|
+
export { Link };
|
|
6
|
+
}
|
|
7
|
+
export default _default;
|
|
8
|
+
import Color from "*.vue";
|
|
9
|
+
import Item from "*.vue";
|
|
10
|
+
import Link from "*.vue";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Extends original heading node to allow content alignment
|
|
3
|
+
*/
|
|
4
|
+
export default class Heading {
|
|
5
|
+
get defaultOptions(): any;
|
|
6
|
+
get baseP(): any;
|
|
7
|
+
get schema(): any;
|
|
8
|
+
commands({ type, schema }: {
|
|
9
|
+
type: any;
|
|
10
|
+
schema: any;
|
|
11
|
+
}): (attrs: any) => any;
|
|
12
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { default as Paragraph } from "./paragraph";
|
|
2
|
+
export { default as Heading } from "./heading";
|
|
3
|
+
export { default as TextColor } from "./textColor";
|
|
4
|
+
export { default as TextBackground } from "./textBackground";
|
|
5
|
+
export { default as Link } from "./link";
|
|
6
|
+
export { default as HtmlPaster } from "./htmlPaster";
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Represents text's background color
|
|
3
|
+
*/
|
|
4
|
+
export default class Background {
|
|
5
|
+
get name(): string;
|
|
6
|
+
get schema(): {
|
|
7
|
+
attrs: {
|
|
8
|
+
color: {};
|
|
9
|
+
};
|
|
10
|
+
parseDOM: {
|
|
11
|
+
style: string;
|
|
12
|
+
getAttrs: (color: any) => {
|
|
13
|
+
color: any;
|
|
14
|
+
};
|
|
15
|
+
}[];
|
|
16
|
+
toDOM: (node: any) => (string | number | {
|
|
17
|
+
style: string;
|
|
18
|
+
})[];
|
|
19
|
+
};
|
|
20
|
+
commands({ type }: {
|
|
21
|
+
type: any;
|
|
22
|
+
}): (attr: any) => any;
|
|
23
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Represents text's color
|
|
3
|
+
*/
|
|
4
|
+
export default class Color {
|
|
5
|
+
get name(): string;
|
|
6
|
+
get schema(): {
|
|
7
|
+
attrs: {
|
|
8
|
+
color: {};
|
|
9
|
+
};
|
|
10
|
+
parseDOM: {
|
|
11
|
+
style: string;
|
|
12
|
+
getAttrs: (color: any) => {
|
|
13
|
+
color: any;
|
|
14
|
+
};
|
|
15
|
+
}[];
|
|
16
|
+
toDOM: (node: any) => (string | number | {
|
|
17
|
+
style: string;
|
|
18
|
+
})[];
|
|
19
|
+
};
|
|
20
|
+
commands({ type }: {
|
|
21
|
+
type: any;
|
|
22
|
+
}): (attr: any) => any;
|
|
23
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export function toAttrs(node: any): {
|
|
2
|
+
style: string;
|
|
3
|
+
} | {
|
|
4
|
+
style?: undefined;
|
|
5
|
+
};
|
|
6
|
+
export function alignmentParser(node: any): {
|
|
7
|
+
alignment: any;
|
|
8
|
+
};
|
|
9
|
+
export const qAlignments: {
|
|
10
|
+
'ql-align-right': string;
|
|
11
|
+
'ql-align-left': string;
|
|
12
|
+
'ql-align-center': string;
|
|
13
|
+
'ql-align-justify': string;
|
|
14
|
+
};
|
|
15
|
+
export function makeDOMParser(pd: any): any;
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
export function getFormats(): any[];
|
|
2
|
+
export function getToolbar(): ({
|
|
3
|
+
type: string;
|
|
4
|
+
mark: boolean;
|
|
5
|
+
icon: string;
|
|
6
|
+
component?: undefined;
|
|
7
|
+
node?: undefined;
|
|
8
|
+
label?: undefined;
|
|
9
|
+
attrs?: undefined;
|
|
10
|
+
nodeAttr?: undefined;
|
|
11
|
+
variants?: undefined;
|
|
12
|
+
} | {
|
|
13
|
+
type: string;
|
|
14
|
+
mark: boolean;
|
|
15
|
+
component: string;
|
|
16
|
+
icon?: undefined;
|
|
17
|
+
node?: undefined;
|
|
18
|
+
label?: undefined;
|
|
19
|
+
attrs?: undefined;
|
|
20
|
+
nodeAttr?: undefined;
|
|
21
|
+
variants?: undefined;
|
|
22
|
+
} | {
|
|
23
|
+
type: string;
|
|
24
|
+
node: boolean;
|
|
25
|
+
icon: string;
|
|
26
|
+
mark?: undefined;
|
|
27
|
+
component?: undefined;
|
|
28
|
+
label?: undefined;
|
|
29
|
+
attrs?: undefined;
|
|
30
|
+
nodeAttr?: undefined;
|
|
31
|
+
variants?: undefined;
|
|
32
|
+
} | {
|
|
33
|
+
type: string;
|
|
34
|
+
node: boolean;
|
|
35
|
+
label: string;
|
|
36
|
+
attrs: {
|
|
37
|
+
level: number;
|
|
38
|
+
href?: undefined;
|
|
39
|
+
};
|
|
40
|
+
mark?: undefined;
|
|
41
|
+
icon?: undefined;
|
|
42
|
+
component?: undefined;
|
|
43
|
+
nodeAttr?: undefined;
|
|
44
|
+
variants?: undefined;
|
|
45
|
+
} | {
|
|
46
|
+
type: string;
|
|
47
|
+
icon: string;
|
|
48
|
+
nodeAttr: boolean;
|
|
49
|
+
component: string;
|
|
50
|
+
variants: {
|
|
51
|
+
variant: string;
|
|
52
|
+
icon: string;
|
|
53
|
+
attrs: {
|
|
54
|
+
alignment: string;
|
|
55
|
+
};
|
|
56
|
+
}[];
|
|
57
|
+
mark?: undefined;
|
|
58
|
+
node?: undefined;
|
|
59
|
+
label?: undefined;
|
|
60
|
+
attrs?: undefined;
|
|
61
|
+
} | {
|
|
62
|
+
type: string;
|
|
63
|
+
mark: boolean;
|
|
64
|
+
component: string;
|
|
65
|
+
icon: string;
|
|
66
|
+
attrs: {
|
|
67
|
+
href: null;
|
|
68
|
+
level?: undefined;
|
|
69
|
+
};
|
|
70
|
+
node?: undefined;
|
|
71
|
+
label?: undefined;
|
|
72
|
+
nodeAttr?: undefined;
|
|
73
|
+
variants?: undefined;
|
|
74
|
+
} | {
|
|
75
|
+
type: string;
|
|
76
|
+
node: boolean;
|
|
77
|
+
label: string;
|
|
78
|
+
mark?: undefined;
|
|
79
|
+
icon?: undefined;
|
|
80
|
+
component?: undefined;
|
|
81
|
+
attrs?: undefined;
|
|
82
|
+
nodeAttr?: undefined;
|
|
83
|
+
variants?: undefined;
|
|
84
|
+
})[];
|
|
85
|
+
export const nodeTypes: string[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./formats";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as CItemPicker } from "./CItemPicker.c3";
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/// <reference path="../../src/vue.shims.d.ts" />
|
|
2
|
+
declare namespace _default {
|
|
3
|
+
export const name: string;
|
|
4
|
+
export const group: string[];
|
|
5
|
+
export { component };
|
|
6
|
+
export { props };
|
|
7
|
+
export const controls: any[];
|
|
8
|
+
}
|
|
9
|
+
export default _default;
|
|
10
|
+
import { default as component } from "*.vue";
|
|
11
|
+
declare namespace props {
|
|
12
|
+
export const options: {
|
|
13
|
+
value: string;
|
|
14
|
+
text: string;
|
|
15
|
+
}[];
|
|
16
|
+
export const value: string[];
|
|
17
|
+
export namespace labels {
|
|
18
|
+
export const searchPlaceholder: string;
|
|
19
|
+
export const availableItems: string;
|
|
20
|
+
export const selectAllItems: string;
|
|
21
|
+
export const selectedItems: string;
|
|
22
|
+
export const systemItem: string;
|
|
23
|
+
export const unselectAllItems: string;
|
|
24
|
+
export const noItemsFound: string;
|
|
25
|
+
}
|
|
26
|
+
export const hideFilter: boolean;
|
|
27
|
+
export const hideIcons: boolean;
|
|
28
|
+
export const disabled: boolean;
|
|
29
|
+
export const disabledFilter: boolean;
|
|
30
|
+
export const disabledSorting: boolean;
|
|
31
|
+
export const disabledDragging: boolean;
|
|
32
|
+
}
|
package/dist/index.es.js
CHANGED
|
@@ -20141,6 +20141,11 @@ var script$f = {
|
|
|
20141
20141
|
this.pagination.page = 1;
|
|
20142
20142
|
this.$refs.resourceList.refresh();
|
|
20143
20143
|
},
|
|
20144
|
+
|
|
20145
|
+
handleSearch (searchQuery) {
|
|
20146
|
+
this.filter[this.queryField] = searchQuery ? searchQuery.trim() : '';
|
|
20147
|
+
this.$emit('search');
|
|
20148
|
+
},
|
|
20144
20149
|
},
|
|
20145
20150
|
};
|
|
20146
20151
|
|
|
@@ -20148,7 +20153,7 @@ var script$f = {
|
|
|
20148
20153
|
const __vue_script__$f = script$f;
|
|
20149
20154
|
|
|
20150
20155
|
/* template */
|
|
20151
|
-
var __vue_render__$g = 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,"
|
|
20156
|
+
var __vue_render__$g = 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){
|
|
20152
20157
|
var item = ref.item;
|
|
20153
20158
|
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){
|
|
20154
20159
|
var item = ref.item;
|
|
@@ -20158,7 +20163,7 @@ var __vue_staticRenderFns__$g = [];
|
|
|
20158
20163
|
/* style */
|
|
20159
20164
|
const __vue_inject_styles__$g = function (inject) {
|
|
20160
20165
|
if (!inject) return
|
|
20161
|
-
inject("data-v-
|
|
20166
|
+
inject("data-v-6eb187b4_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 });
|
|
20162
20167
|
|
|
20163
20168
|
};
|
|
20164
20169
|
/* scoped */
|