@saltcorn/data 1.6.0-alpha.2 → 1.6.0-alpha.4
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/base-plugin/actions.d.ts +1 -1
- package/dist/base-plugin/index.d.ts.map +1 -1
- package/dist/base-plugin/viewtemplates/edit.js +1 -1
- package/dist/base-plugin/viewtemplates/edit.js.map +1 -1
- package/dist/base-plugin/viewtemplates/filter.js +1 -1
- package/dist/base-plugin/viewtemplates/filter.js.map +1 -1
- package/dist/base-plugin/viewtemplates/list.js +1 -1
- package/dist/base-plugin/viewtemplates/list.js.map +1 -1
- package/dist/base-plugin/viewtemplates/listshowlist.js +1 -1
- package/dist/base-plugin/viewtemplates/listshowlist.js.map +1 -1
- package/dist/base-plugin/viewtemplates/room.js +1 -1
- package/dist/base-plugin/viewtemplates/room.js.map +1 -1
- package/dist/base-plugin/viewtemplates/show.js +1 -1
- package/dist/base-plugin/viewtemplates/show.js.map +1 -1
- package/dist/base-plugin/viewtemplates/viewable_fields.d.ts +2 -187
- package/dist/base-plugin/viewtemplates/viewable_fields.d.ts.map +1 -1
- package/dist/base-plugin/viewtemplates/viewable_fields.js +2 -1898
- package/dist/base-plugin/viewtemplates/viewable_fields.js.map +1 -1
- package/dist/base-plugin/viewtemplates/workflow-room.js +1 -1
- package/dist/base-plugin/viewtemplates/workflow-room.js.map +1 -1
- package/dist/db/connect.d.ts.map +1 -1
- package/dist/db/connect.js +19 -2
- package/dist/db/connect.js.map +1 -1
- package/dist/diagram/node_extract_utils.js +1 -1
- package/dist/diagram/node_extract_utils.js.map +1 -1
- package/dist/models/file.d.ts +1 -1
- package/dist/models/file.d.ts.map +1 -1
- package/dist/models/page.d.ts.map +1 -1
- package/dist/models/page.js +28 -1
- package/dist/models/page.js.map +1 -1
- package/dist/models/table.d.ts.map +1 -1
- package/dist/models/table.js +5 -1
- package/dist/models/table.js.map +1 -1
- package/dist/models/workflow_step.d.ts +5 -0
- package/dist/models/workflow_step.d.ts.map +1 -1
- package/dist/models/workflow_step.js +142 -0
- package/dist/models/workflow_step.js.map +1 -1
- package/dist/plugin-helper.d.ts +1 -1
- package/dist/plugin-helper.d.ts.map +1 -1
- package/dist/plugin-helper.js +18 -7
- package/dist/plugin-helper.js.map +1 -1
- package/dist/plugin-testing.js +1 -1
- package/dist/plugin-testing.js.map +1 -1
- package/dist/viewable_fields.d.ts +16 -0
- package/dist/viewable_fields.d.ts.map +1 -1
- package/dist/viewable_fields.js +342 -4
- package/dist/viewable_fields.js.map +1 -1
- package/dist/web-mobile-commons.js +1 -1
- package/dist/web-mobile-commons.js.map +1 -1
- package/package.json +8 -8
- package/dist/models/s3_helpers.d.ts +0 -54
- package/dist/models/s3_helpers.d.ts.map +0 -1
- package/dist/models/s3_helpers.js +0 -505
- package/dist/models/s3_helpers.js.map +0 -1
- package/dist/test-utils/mocks.d.ts +0 -203
- package/dist/test-utils/mocks.d.ts.map +0 -1
- package/dist/test-utils/mocks.js +0 -329
- package/dist/test-utils/mocks.js.map +0 -1
- package/dist/tests/actions.test.d.ts +0 -2
- package/dist/tests/actions.test.d.ts.map +0 -1
- package/dist/tests/actions.test.js +0 -860
- package/dist/tests/actions.test.js.map +0 -1
- package/dist/tests/auth.test.d.ts +0 -2
- package/dist/tests/auth.test.d.ts.map +0 -1
- package/dist/tests/auth.test.js +0 -790
- package/dist/tests/auth.test.js.map +0 -1
- package/dist/tests/auxtest.test.d.ts +0 -2
- package/dist/tests/auxtest.test.d.ts.map +0 -1
- package/dist/tests/auxtest.test.js +0 -556
- package/dist/tests/auxtest.test.js.map +0 -1
- package/dist/tests/base.test.d.ts +0 -2
- package/dist/tests/base.test.d.ts.map +0 -1
- package/dist/tests/base.test.js +0 -30
- package/dist/tests/base.test.js.map +0 -1
- package/dist/tests/calc.test.d.ts +0 -2
- package/dist/tests/calc.test.d.ts.map +0 -1
- package/dist/tests/calc.test.js +0 -1081
- package/dist/tests/calc.test.js.map +0 -1
- package/dist/tests/composite_pk.test.d.ts +0 -2
- package/dist/tests/composite_pk.test.d.ts.map +0 -1
- package/dist/tests/composite_pk.test.js +0 -98
- package/dist/tests/composite_pk.test.js.map +0 -1
- package/dist/tests/config.test.d.ts +0 -2
- package/dist/tests/config.test.d.ts.map +0 -1
- package/dist/tests/config.test.js +0 -86
- package/dist/tests/config.test.js.map +0 -1
- package/dist/tests/db.test.d.ts +0 -2
- package/dist/tests/db.test.d.ts.map +0 -1
- package/dist/tests/db.test.js +0 -178
- package/dist/tests/db.test.js.map +0 -1
- package/dist/tests/discover.test.d.ts +0 -2
- package/dist/tests/discover.test.d.ts.map +0 -1
- package/dist/tests/discover.test.js +0 -245
- package/dist/tests/discover.test.js.map +0 -1
- package/dist/tests/edit.test.d.ts +0 -2
- package/dist/tests/edit.test.d.ts.map +0 -1
- package/dist/tests/edit.test.js +0 -1161
- package/dist/tests/edit.test.js.map +0 -1
- package/dist/tests/email.test.d.ts +0 -2
- package/dist/tests/email.test.d.ts.map +0 -1
- package/dist/tests/email.test.js +0 -255
- package/dist/tests/email.test.js.map +0 -1
- package/dist/tests/exact_views.test.d.ts +0 -2
- package/dist/tests/exact_views.test.d.ts.map +0 -1
- package/dist/tests/exact_views.test.js +0 -1363
- package/dist/tests/exact_views.test.js.map +0 -1
- package/dist/tests/field.test.d.ts +0 -2
- package/dist/tests/field.test.d.ts.map +0 -1
- package/dist/tests/field.test.js +0 -588
- package/dist/tests/field.test.js.map +0 -1
- package/dist/tests/fieldviews.test.d.ts +0 -2
- package/dist/tests/fieldviews.test.d.ts.map +0 -1
- package/dist/tests/fieldviews.test.js +0 -74
- package/dist/tests/fieldviews.test.js.map +0 -1
- package/dist/tests/file.test.d.ts +0 -2
- package/dist/tests/file.test.d.ts.map +0 -1
- package/dist/tests/file.test.js +0 -148
- package/dist/tests/file.test.js.map +0 -1
- package/dist/tests/filter.test.d.ts +0 -2
- package/dist/tests/filter.test.d.ts.map +0 -1
- package/dist/tests/filter.test.js +0 -496
- package/dist/tests/filter.test.js.map +0 -1
- package/dist/tests/form.test.d.ts +0 -2
- package/dist/tests/form.test.d.ts.map +0 -1
- package/dist/tests/form.test.js +0 -199
- package/dist/tests/form.test.js.map +0 -1
- package/dist/tests/list.test.d.ts +0 -2
- package/dist/tests/list.test.d.ts.map +0 -1
- package/dist/tests/list.test.js +0 -1037
- package/dist/tests/list.test.js.map +0 -1
- package/dist/tests/mail_queue.test.d.ts +0 -2
- package/dist/tests/mail_queue.test.d.ts.map +0 -1
- package/dist/tests/mail_queue.test.js +0 -122
- package/dist/tests/mail_queue.test.js.map +0 -1
- package/dist/tests/models.test.d.ts +0 -2
- package/dist/tests/models.test.d.ts.map +0 -1
- package/dist/tests/models.test.js +0 -417
- package/dist/tests/models.test.js.map +0 -1
- package/dist/tests/page.test.d.ts +0 -2
- package/dist/tests/page.test.d.ts.map +0 -1
- package/dist/tests/page.test.js +0 -26
- package/dist/tests/page.test.js.map +0 -1
- package/dist/tests/page_group.test.d.ts +0 -2
- package/dist/tests/page_group.test.d.ts.map +0 -1
- package/dist/tests/page_group.test.js +0 -51
- package/dist/tests/page_group.test.js.map +0 -1
- package/dist/tests/plugin.test.d.ts +0 -2
- package/dist/tests/plugin.test.d.ts.map +0 -1
- package/dist/tests/plugin.test.js +0 -60
- package/dist/tests/plugin.test.js.map +0 -1
- package/dist/tests/show.test.d.ts +0 -2
- package/dist/tests/show.test.d.ts.map +0 -1
- package/dist/tests/show.test.js +0 -561
- package/dist/tests/show.test.js.map +0 -1
- package/dist/tests/state.test.d.ts +0 -2
- package/dist/tests/state.test.d.ts.map +0 -1
- package/dist/tests/state.test.js +0 -82
- package/dist/tests/state.test.js.map +0 -1
- package/dist/tests/table.test.d.ts +0 -2
- package/dist/tests/table.test.d.ts.map +0 -1
- package/dist/tests/table.test.js +0 -2717
- package/dist/tests/table.test.js.map +0 -1
- package/dist/tests/table_history.test.d.ts +0 -2
- package/dist/tests/table_history.test.d.ts.map +0 -1
- package/dist/tests/table_history.test.js +0 -413
- package/dist/tests/table_history.test.js.map +0 -1
- package/dist/tests/table_sync_info.test.d.ts +0 -2
- package/dist/tests/table_sync_info.test.d.ts.map +0 -1
- package/dist/tests/table_sync_info.test.js +0 -62
- package/dist/tests/table_sync_info.test.js.map +0 -1
- package/dist/tests/tag.test.d.ts +0 -2
- package/dist/tests/tag.test.d.ts.map +0 -1
- package/dist/tests/tag.test.js +0 -97
- package/dist/tests/tag.test.js.map +0 -1
- package/dist/tests/user.test.d.ts +0 -2
- package/dist/tests/user.test.d.ts.map +0 -1
- package/dist/tests/user.test.js +0 -390
- package/dist/tests/user.test.js.map +0 -1
- package/dist/tests/view.test.d.ts +0 -2
- package/dist/tests/view.test.d.ts.map +0 -1
- package/dist/tests/view.test.js +0 -699
- package/dist/tests/view.test.js.map +0 -1
- package/dist/tests/workflow.test.d.ts +0 -2
- package/dist/tests/workflow.test.d.ts.map +0 -1
- package/dist/tests/workflow.test.js +0 -303
- package/dist/tests/workflow.test.js.map +0 -1
- package/dist/tests/workflow_run.test.d.ts +0 -2
- package/dist/tests/workflow_run.test.d.ts.map +0 -1
- package/dist/tests/workflow_run.test.js +0 -826
- package/dist/tests/workflow_run.test.js.map +0 -1
|
@@ -1,188 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
* @param {string} viewname
|
|
4
|
-
* @param {Table|object} table
|
|
5
|
-
* @param {Field[]} fields
|
|
6
|
-
* @param {object[]} columns
|
|
7
|
-
* @param {boolean} isShow
|
|
8
|
-
* @param {object} req
|
|
9
|
-
* @param {*} __
|
|
10
|
-
* @returns {object[]}
|
|
11
|
-
*/
|
|
12
|
-
export function get_viewable_fields(viewname: string, statehash: any, table: Table | object, fields: Field[], columns: object[], isShow: boolean, req: object, __: any, state: {} | undefined, srcViewName: any, viewResults: any, in_row_click: any): object[];
|
|
13
|
-
export function get_viewable_fields_from_layout(viewname: any, statehash: any, table: any, fields: any, columns: any, isShow: any, req: any, __: any, state: {} | undefined, srcViewName: any, layoutCols: any, viewResults: any, in_row_click: any): object[];
|
|
14
|
-
/**
|
|
15
|
-
* @param {string} viewname
|
|
16
|
-
* @param {Table|object} table
|
|
17
|
-
* @param {string} action_name
|
|
18
|
-
* @param {object} r
|
|
19
|
-
* @param {string} colId
|
|
20
|
-
* @param {string} colIdNm
|
|
21
|
-
* @param {string} confirm
|
|
22
|
-
* @param {number|undefined} index
|
|
23
|
-
* @returns {any}
|
|
24
|
-
*/
|
|
25
|
-
export function action_url(viewname: string, table: Table | object, action_name: string, r: object, colId: string, colIdNm: string, confirm: string, colIndex: any, runAsync: any): any;
|
|
26
|
-
export function objToQueryString(o: any): string;
|
|
27
|
-
/**
|
|
28
|
-
* @param {string} url
|
|
29
|
-
* @param {object} req
|
|
30
|
-
* @param {object} opts
|
|
31
|
-
* @param {string} opts.action_name
|
|
32
|
-
* @param {string} opts.action_label
|
|
33
|
-
* @param {*} opts.confirm
|
|
34
|
-
* @param {*} opts.rndid
|
|
35
|
-
* @param {string} opts.action_style
|
|
36
|
-
* @param {number} opts.action_size
|
|
37
|
-
* @param {*} opts.action_icon
|
|
38
|
-
* @param {string} opts.action_bgcol
|
|
39
|
-
* @param {string} opts.action_bordercol
|
|
40
|
-
* @param {string} opts.action_textcol
|
|
41
|
-
* @param {*} __
|
|
42
|
-
* @returns {object}
|
|
43
|
-
*/
|
|
44
|
-
export function action_link(url: string, req: object, { action_name, action_label, confirm, rndid, action_style, action_size, action_icon, action_bgcol, action_title, action_class, action_bordercol, action_textcol, spinner, block, }: {
|
|
45
|
-
action_name: string;
|
|
46
|
-
action_label: string;
|
|
47
|
-
confirm: any;
|
|
48
|
-
rndid: any;
|
|
49
|
-
action_style: string;
|
|
50
|
-
action_size: number;
|
|
51
|
-
action_icon: any;
|
|
52
|
-
action_bgcol: string;
|
|
53
|
-
action_bordercol: string;
|
|
54
|
-
action_textcol: string;
|
|
55
|
-
}, __?: any): object;
|
|
56
|
-
/**
|
|
57
|
-
* @function
|
|
58
|
-
* @param {object} opts
|
|
59
|
-
* @param {string} opts.view
|
|
60
|
-
* @param {string} opts.relation
|
|
61
|
-
* @param {object} opts.view_label missing in contract
|
|
62
|
-
* @param {object} opts.in_modal
|
|
63
|
-
* @param {object} opts.view_label_formula
|
|
64
|
-
* @param {string} [opts.link_style = ""]
|
|
65
|
-
* @param {string} [opts.link_size = ""]
|
|
66
|
-
* @param {string} [opts.link_icon = ""]
|
|
67
|
-
* @param {string} [opts.textStyle = ""]
|
|
68
|
-
* @param {string} [opts.link_bgcol]
|
|
69
|
-
* @param {string} [opts.link_bordercol]
|
|
70
|
-
* @param {string} [opts.link_textcol]
|
|
71
|
-
* @param {Field[]} fields
|
|
72
|
-
* @returns {object}
|
|
73
|
-
*/
|
|
74
|
-
export function view_linker({ view, relation, view_label, in_modal, view_label_formula, link_style, link_size, link_icon, icon, textStyle, link_bgcol, link_bordercol, link_textcol, in_dropdown, extra_state_fml, link_target_blank, link_title, link_class, }: {
|
|
75
|
-
view: string;
|
|
76
|
-
relation: string;
|
|
77
|
-
view_label: object;
|
|
78
|
-
in_modal: object;
|
|
79
|
-
view_label_formula: object;
|
|
80
|
-
link_style?: string | undefined;
|
|
81
|
-
link_size?: string | undefined;
|
|
82
|
-
link_icon?: string | undefined;
|
|
83
|
-
textStyle?: string | undefined;
|
|
84
|
-
link_bgcol?: string | undefined;
|
|
85
|
-
link_bordercol?: string | undefined;
|
|
86
|
-
link_textcol?: string | undefined;
|
|
87
|
-
}, fields: Field[], __: (s: any) => any, isWeb: boolean | undefined, user: any, targetPrefix: string | undefined, state: {} | undefined, req: any, srcViewName: any, label_attr: any, in_row_click: any): object;
|
|
88
|
-
/**
|
|
89
|
-
* @param {string} view name of the view or a legacy relation (type:telation)
|
|
90
|
-
* @param {string} relation new relation path syntax
|
|
91
|
-
* @returns {object}
|
|
92
|
-
*/
|
|
93
|
-
export function parse_view_select(view: string, relation: string): object;
|
|
94
|
-
/**
|
|
95
|
-
* @function
|
|
96
|
-
* @param {Field[]} fields
|
|
97
|
-
* @param {object} state
|
|
98
|
-
* @param {boolean} [fuzzyStrings]
|
|
99
|
-
* @returns {object}
|
|
100
|
-
*/
|
|
101
|
-
export function splitUniques(fields: Field[], state: object, fuzzyStrings?: boolean): object;
|
|
102
|
-
/**
|
|
103
|
-
* @param {object} table
|
|
104
|
-
* @param {string} viewname
|
|
105
|
-
* @param {object[]} [columns]
|
|
106
|
-
* @param {object} layout0
|
|
107
|
-
* @param {boolean|null} id
|
|
108
|
-
* @param {object} req
|
|
109
|
-
* @param {boolean} isRemote
|
|
110
|
-
* @returns {Promise<Form>}
|
|
111
|
-
*/
|
|
112
|
-
export function getForm(table: object, viewname: string, columns?: object[], layout0: object, id: boolean | null, req: object, isRemote: boolean): Promise<Form>;
|
|
113
|
-
/**
|
|
114
|
-
* @param {object} table
|
|
115
|
-
* @param {object} req
|
|
116
|
-
* @param {object} fixed
|
|
117
|
-
* @returns {Promise<object>}
|
|
118
|
-
*/
|
|
119
|
-
export function fill_presets(table: object, req: object, fixed: object): Promise<object>;
|
|
120
|
-
/**
|
|
121
|
-
* @function
|
|
122
|
-
* @param {Field[]} fields
|
|
123
|
-
* @returns {function}
|
|
124
|
-
*/
|
|
125
|
-
export function get_view_link_query(fields: Field[], view: any): Function;
|
|
126
|
-
/**
|
|
127
|
-
* @function
|
|
128
|
-
* @param {object} opts
|
|
129
|
-
* @param {string} opts.link_text
|
|
130
|
-
* @param {boolean} opts.link_text_formula missing in contract
|
|
131
|
-
* @param {string} [opts.link_url]
|
|
132
|
-
* @param {boolean} opts.link_url_formula
|
|
133
|
-
* @param {boolean} opts.link_target_blank
|
|
134
|
-
* @param {Field[]} fields
|
|
135
|
-
* @returns {object}
|
|
136
|
-
*/
|
|
137
|
-
export function make_link({ link_text, link_text_formula, link_url, link_url_formula, link_target_blank, in_dropdown, in_modal, link_icon, icon, link_style, link_size, }: {
|
|
138
|
-
link_text: string;
|
|
139
|
-
link_text_formula: boolean;
|
|
140
|
-
link_url?: string | undefined;
|
|
141
|
-
link_url_formula: boolean;
|
|
142
|
-
link_target_blank: boolean;
|
|
143
|
-
}, fields: Field[], __: (s: any) => any, in_row_click: any): object;
|
|
144
|
-
export const edit_build_in_actions: string[];
|
|
145
|
-
export function standardBlockDispatch(viewname: any, state: any, table: any, extra: any, row: any): {
|
|
146
|
-
field({ field_name, fieldview, configuration, click_to_edit }: {
|
|
147
|
-
field_name: any;
|
|
148
|
-
fieldview: any;
|
|
149
|
-
configuration: any;
|
|
150
|
-
click_to_edit: any;
|
|
151
|
-
}): any;
|
|
152
|
-
join_field(jf: any): string;
|
|
153
|
-
aggregation(column: any): string;
|
|
154
|
-
action(segment: any): object | "";
|
|
155
|
-
view_link(view: any): any;
|
|
156
|
-
tabs(segment: any, go: any): any;
|
|
157
|
-
blank(segment: any): any;
|
|
158
|
-
};
|
|
159
|
-
export function standardLayoutRowVisitor(viewname: any, state: any, table: any, row: any, req: any): {
|
|
160
|
-
link(segment: any): void;
|
|
161
|
-
view_link(segment: any): void;
|
|
162
|
-
blank(segment: any): void;
|
|
163
|
-
tabs(segment: any): void;
|
|
164
|
-
action(segment: any): void;
|
|
165
|
-
card(segment: any): void;
|
|
166
|
-
image(segment: any): void;
|
|
167
|
-
container(segment: any): void;
|
|
168
|
-
};
|
|
169
|
-
export function setDateLocales(form: any, locale: any): void;
|
|
170
|
-
export function transformForm({ form, table, req, row, res, getRowQuery, viewname, optionsQuery, state, }: {
|
|
171
|
-
form: any;
|
|
172
|
-
table: any;
|
|
173
|
-
req: any;
|
|
174
|
-
row: any;
|
|
175
|
-
res: any;
|
|
176
|
-
getRowQuery: any;
|
|
177
|
-
viewname: any;
|
|
178
|
-
optionsQuery: any;
|
|
179
|
-
state: any;
|
|
180
|
-
}): Promise<void>;
|
|
181
|
-
/**
|
|
182
|
-
* update viewSelect so that it looks like a normal ChildList
|
|
183
|
-
*/
|
|
184
|
-
export function updateViewSelect(viewSelect: any): void;
|
|
185
|
-
import Table = require("../../models/table");
|
|
186
|
-
import Field = require("../../models/field");
|
|
187
|
-
import Form = require("../../models/form");
|
|
1
|
+
declare const _exports: typeof import("../../viewable_fields");
|
|
2
|
+
export = _exports;
|
|
188
3
|
//# sourceMappingURL=viewable_fields.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"viewable_fields.d.ts","sourceRoot":"","sources":["../../../base-plugin/viewtemplates/viewable_fields.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"viewable_fields.d.ts","sourceRoot":"","sources":["../../../base-plugin/viewtemplates/viewable_fields.js"],"names":[],"mappings":""}
|