@formio/js 5.0.0-dev.5743.988e4e6 → 5.0.0-dev.5746.d82b0b1
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/formio.form.js +1 -1
- package/dist/formio.form.min.js +1 -1
- package/dist/formio.full.js +3 -3
- package/dist/formio.full.min.js +1 -1
- package/lib/cjs/WebformBuilder.js +2 -1
- package/lib/cjs/components/file/File.js +4 -0
- package/lib/cjs/components/time/Time.form.js +2 -2
- package/lib/mjs/WebformBuilder.js +2 -1
- package/lib/mjs/components/file/File.js +4 -0
- package/lib/mjs/components/time/Time.form.js +2 -2
- package/package.json +1 -1
|
@@ -208,7 +208,8 @@ class WebformBuilder extends Component_1.default {
|
|
|
208
208
|
params: {
|
|
209
209
|
type: 'resource',
|
|
210
210
|
limit: 1000000,
|
|
211
|
-
select: '_id,title,name,components'
|
|
211
|
+
select: '_id,title,name,components',
|
|
212
|
+
'tags__ne': 'noBuilderResource'
|
|
212
213
|
}
|
|
213
214
|
};
|
|
214
215
|
if (this.options && this.options.resourceTag) {
|
|
@@ -935,6 +935,10 @@ class FileComponent extends Field_1.default {
|
|
|
935
935
|
: response.type === 'abort'
|
|
936
936
|
? this.t('Request was aborted')
|
|
937
937
|
: response.toString();
|
|
938
|
+
this.emit('fileUploadError', {
|
|
939
|
+
fileToSync,
|
|
940
|
+
response,
|
|
941
|
+
});
|
|
938
942
|
}
|
|
939
943
|
finally {
|
|
940
944
|
delete fileToSync.progress;
|
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const
|
|
6
|
+
const Component_form_1 = __importDefault(require("../_classes/component/Component.form"));
|
|
7
7
|
const Time_edit_data_1 = __importDefault(require("./editForm/Time.edit.data"));
|
|
8
8
|
const Time_edit_display_1 = __importDefault(require("./editForm/Time.edit.display"));
|
|
9
9
|
/**
|
|
@@ -12,7 +12,7 @@ const Time_edit_display_1 = __importDefault(require("./editForm/Time.edit.displa
|
|
|
12
12
|
* @returns {import('@formio/core').Component[]} - The edit form components.
|
|
13
13
|
*/
|
|
14
14
|
function default_1(...extend) {
|
|
15
|
-
return
|
|
15
|
+
return (0, Component_form_1.default)([
|
|
16
16
|
{
|
|
17
17
|
key: 'data',
|
|
18
18
|
components: Time_edit_data_1.default,
|
|
@@ -187,7 +187,8 @@ export default class WebformBuilder extends Component {
|
|
|
187
187
|
params: {
|
|
188
188
|
type: 'resource',
|
|
189
189
|
limit: 1000000,
|
|
190
|
-
select: '_id,title,name,components'
|
|
190
|
+
select: '_id,title,name,components',
|
|
191
|
+
'tags__ne': 'noBuilderResource'
|
|
191
192
|
}
|
|
192
193
|
};
|
|
193
194
|
if (this.options && this.options.resourceTag) {
|
|
@@ -931,6 +931,10 @@ export default class FileComponent extends Field {
|
|
|
931
931
|
: response.type === 'abort'
|
|
932
932
|
? this.t('Request was aborted')
|
|
933
933
|
: response.toString();
|
|
934
|
+
this.emit('fileUploadError', {
|
|
935
|
+
fileToSync,
|
|
936
|
+
response,
|
|
937
|
+
});
|
|
934
938
|
}
|
|
935
939
|
finally {
|
|
936
940
|
delete fileToSync.progress;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import baseEditForm from '../_classes/component/Component.form';
|
|
2
2
|
import TimeEditData from './editForm/Time.edit.data';
|
|
3
3
|
import TimeEditDisplay from './editForm/Time.edit.display';
|
|
4
4
|
/**
|
|
@@ -7,7 +7,7 @@ import TimeEditDisplay from './editForm/Time.edit.display';
|
|
|
7
7
|
* @returns {import('@formio/core').Component[]} - The edit form components.
|
|
8
8
|
*/
|
|
9
9
|
export default function (...extend) {
|
|
10
|
-
return
|
|
10
|
+
return baseEditForm([
|
|
11
11
|
{
|
|
12
12
|
key: 'data',
|
|
13
13
|
components: TimeEditData,
|