@cortezaproject/corteza-vue 2026.9.0-dev.2 → 2026.9.0-rc.2
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.cjs +66 -16
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +66 -16
- 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/dist/src/libs/url.d.ts +16 -0
- package/package.json +2 -2
- package/dist/src/libs/datetime.d.ts +0 -5
|
@@ -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.cjs
CHANGED
|
@@ -5999,10 +5999,37 @@ function Make({ url = '', query = {}, hash = '', ref = window.location.toString(
|
|
|
5999
5999
|
u.search = qs.stringify(query, Object.assign(Object.assign({}, baseQsConfig), config));
|
|
6000
6000
|
return u.toString();
|
|
6001
6001
|
}
|
|
6002
|
+
/**
|
|
6003
|
+
* Builds a link to another web application
|
|
6004
|
+
*
|
|
6005
|
+
* Applications can be served under a path prefix (HTTP_BASE_URL), so a
|
|
6006
|
+
* root-absolute path like /workflow/... would miss it. The link is derived
|
|
6007
|
+
* from the configured webapp base or, failing that, from the current
|
|
6008
|
+
* application's <base href> which the server rewrites to <prefix>/<app>/.
|
|
6009
|
+
*/
|
|
6010
|
+
function MakeAppURL({ app, path = '', webapp, base }) {
|
|
6011
|
+
if (webapp === undefined) {
|
|
6012
|
+
// @ts-ignore
|
|
6013
|
+
webapp = typeof window !== 'undefined' ? window.CortezaWebapp : undefined;
|
|
6014
|
+
}
|
|
6015
|
+
if (base === undefined) {
|
|
6016
|
+
base = typeof document !== 'undefined' ? document.baseURI : undefined;
|
|
6017
|
+
}
|
|
6018
|
+
const rel = `${app}/${path}`.replace(/\/+$/, '');
|
|
6019
|
+
if (webapp) {
|
|
6020
|
+
const root = webapp.replace(/\/+$/, '');
|
|
6021
|
+
return /^(https?:)?\/\//.test(root)
|
|
6022
|
+
? new URL(`${root}/${rel}`).toString()
|
|
6023
|
+
: Make({ url: `${root}/${rel}`, ref: base });
|
|
6024
|
+
}
|
|
6025
|
+
// the current app lives one level below the webapp base
|
|
6026
|
+
return new URL(`../${rel}`, base).toString();
|
|
6027
|
+
}
|
|
6002
6028
|
|
|
6003
6029
|
var url = /*#__PURE__*/Object.freeze({
|
|
6004
6030
|
__proto__: null,
|
|
6005
|
-
Make: Make
|
|
6031
|
+
Make: Make,
|
|
6032
|
+
MakeAppURL: MakeAppURL
|
|
6006
6033
|
});
|
|
6007
6034
|
|
|
6008
6035
|
const accessToken = Symbol('accessToken');
|
|
@@ -7949,7 +7976,8 @@ var toast = {
|
|
|
7949
7976
|
return function () {
|
|
7950
7977
|
var err = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
7951
7978
|
var toastMsg = '';
|
|
7952
|
-
|
|
7979
|
+
// an error raised by a workflow error step may carry its own title
|
|
7980
|
+
var toastTitle = err.meta && err.meta.title || title;
|
|
7953
7981
|
err.message = _this.getToastMessage(err);
|
|
7954
7982
|
if (err.message) {
|
|
7955
7983
|
toastMsg = err.message;
|
|
@@ -31932,12 +31960,12 @@ var __vue_staticRenderFns__$B = [];
|
|
|
31932
31960
|
/* style */
|
|
31933
31961
|
const __vue_inject_styles__$D = function (inject) {
|
|
31934
31962
|
if (!inject) return
|
|
31935
|
-
inject("data-v-
|
|
31936
|
-
,inject("data-v-
|
|
31963
|
+
inject("data-v-3679b590_0", { source: ".nav-icon[data-v-3679b590]{width:calc(var(--topbar-height) - 24px);height:calc(var(--topbar-height) - 24px)}.nav-user-icon[data-v-3679b590]{min-width:calc(var(--topbar-height) - 16px);min-height:calc(var(--topbar-height) - 16px)}.header-navigation[data-v-3679b590]{width:100vw;min-height:var(--topbar-height);background-color:var(--topbar-bg)}.header-navigation .sidebar-spacer[data-v-3679b590]{display:none;min-width:calc(var(--sidebar-width) - 60px)}@media (min-width:1024px){.header-navigation .sidebar-spacer.expanded[data-v-3679b590]{display:block}}.avatar[data-v-3679b590]{border-radius:50%;background-size:cover;background-repeat:no-repeat;background-position:center}.avatar[data-v-3679b590]:hover{opacity:.8;transition:opacity .25s ease-in-out;-moz-transition:opacity .25s ease-in-out;-webkit-transition:opacity .25s ease-in-out}.title[data-v-3679b590]{display:flex;align-items:center;min-height:calc(var(--topbar-height) - 16px);padding-inline-start:47px}.title>*[data-v-3679b590]{padding:.25rem 0;display:-webkit-box;display:-ms-flexbox;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;overflow:hidden;text-overflow:ellipsis}.tools-wrapper[data-v-3679b590]{flex-grow:1}.tools-wrapper>*[data-v-3679b590]{display:flex;justify-content:end;align-items:center;flex-wrap:wrap}", map: undefined, media: undefined })
|
|
31964
|
+
,inject("data-v-3679b590_1", { source: ".topbar-dropdown-menu{z-index:1051}#theme-dropleft .btn{font-family:var(--font-regular)}", map: undefined, media: undefined });
|
|
31937
31965
|
|
|
31938
31966
|
};
|
|
31939
31967
|
/* scoped */
|
|
31940
|
-
const __vue_scope_id__$D = "data-v-
|
|
31968
|
+
const __vue_scope_id__$D = "data-v-3679b590";
|
|
31941
31969
|
/* module identifier */
|
|
31942
31970
|
const __vue_module_identifier__$D = undefined;
|
|
31943
31971
|
/* functional template */
|
|
@@ -35177,41 +35205,63 @@ var script$i = {
|
|
|
35177
35205
|
},
|
|
35178
35206
|
|
|
35179
35207
|
computed: {
|
|
35208
|
+
// Values come from reports that may yield nothing; never render NaN
|
|
35209
|
+
safeMin () {
|
|
35210
|
+
return Number.isFinite(this.min) ? this.min : 0
|
|
35211
|
+
},
|
|
35212
|
+
|
|
35213
|
+
safeMax () {
|
|
35214
|
+
return Number.isFinite(this.max) ? this.max : 100
|
|
35215
|
+
},
|
|
35216
|
+
|
|
35217
|
+
safeValue () {
|
|
35218
|
+
return Number.isFinite(this.value) ? this.value : this.safeMin
|
|
35219
|
+
},
|
|
35220
|
+
|
|
35180
35221
|
maxValue () {
|
|
35181
|
-
return Math.abs(this.
|
|
35222
|
+
return Math.abs(this.safeMax - this.safeMin)
|
|
35182
35223
|
},
|
|
35183
35224
|
|
|
35184
35225
|
progressValue () {
|
|
35185
|
-
if (this.
|
|
35186
|
-
return this.
|
|
35187
|
-
} else if (this.
|
|
35188
|
-
return this.
|
|
35226
|
+
if (this.safeValue < this.safeMin && this.safeMax > this.safeMin) {
|
|
35227
|
+
return this.safeValue - this.safeMin
|
|
35228
|
+
} else if (this.safeValue > this.safeMin && this.safeMax < this.safeMin) {
|
|
35229
|
+
return this.safeMin - this.safeValue
|
|
35230
|
+
}
|
|
35231
|
+
|
|
35232
|
+
return Math.abs(this.safeValue - this.safeMin)
|
|
35233
|
+
},
|
|
35234
|
+
|
|
35235
|
+
// Share of the range as a rounded percentage; 0 when the range is empty
|
|
35236
|
+
percentage () {
|
|
35237
|
+
if (!this.maxValue) {
|
|
35238
|
+
return 0
|
|
35189
35239
|
}
|
|
35190
35240
|
|
|
35191
|
-
|
|
35241
|
+
// https://stackoverflow.com/a/21907972/17926309
|
|
35242
|
+
return Math.round((((this.progressValue < 0 ? 0 : this.progressValue) / this.maxValue) * 100) * 100) / 100
|
|
35192
35243
|
},
|
|
35193
35244
|
|
|
35194
35245
|
progressLabel () {
|
|
35195
|
-
let value = this.
|
|
35246
|
+
let value = this.safeValue;
|
|
35196
35247
|
|
|
35197
35248
|
if (!this.labeled) {
|
|
35198
35249
|
return
|
|
35199
35250
|
}
|
|
35200
35251
|
|
|
35201
35252
|
if (this.relative) {
|
|
35202
|
-
|
|
35203
|
-
value = `${Math.round((((this.progressValue) / this.maxValue) * 100) * 100) / 100}%`;
|
|
35253
|
+
value = `${this.percentage}%`;
|
|
35204
35254
|
}
|
|
35205
35255
|
|
|
35206
35256
|
if (this.progress) {
|
|
35207
|
-
value = `${value} / ${this.relative ? '100' : this.
|
|
35257
|
+
value = `${value} / ${this.relative ? '100' : this.safeMax}${this.relative ? '%' : ''}`;
|
|
35208
35258
|
}
|
|
35209
35259
|
|
|
35210
35260
|
return value
|
|
35211
35261
|
},
|
|
35212
35262
|
|
|
35213
35263
|
progressVariant () {
|
|
35214
|
-
const value =
|
|
35264
|
+
const value = this.percentage;
|
|
35215
35265
|
|
|
35216
35266
|
let progressVariant = this.variant;
|
|
35217
35267
|
|