@researchdatabox/sails-ng-common 0.0.1-beta.9873 → 0.0.1-beta.9909
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/src/config/component/cancel-button.model.d.ts +2 -0
- package/dist/src/config/component/cancel-button.model.js +3 -1
- package/dist/src/config/component/cancel-button.outline.d.ts +10 -0
- package/dist/src/config/component/delete-button.model.d.ts +4 -4
- package/dist/src/config/component/delete-button.model.js +5 -5
- package/dist/src/config/component/delete-button.outline.d.ts +32 -4
- package/dist/src/config/component/save-button.outline.d.ts +2 -0
- package/package.json +1 -1
|
@@ -9,6 +9,8 @@ export declare class CancelButtonFieldComponentConfig extends FieldComponentConf
|
|
|
9
9
|
cancelButtonMessage?: string;
|
|
10
10
|
confirmButtonMessage?: string;
|
|
11
11
|
buttonCssClasses?: string;
|
|
12
|
+
redirectLocation?: string;
|
|
13
|
+
redirectDelaySeconds?: number;
|
|
12
14
|
constructor();
|
|
13
15
|
}
|
|
14
16
|
export declare class CancelButtonFieldComponentDefinition extends FieldComponentDefinition implements CancelButtonFieldComponentDefinitionOutline {
|
|
@@ -12,6 +12,8 @@ class CancelButtonFieldComponentConfig extends field_component_model_1.FieldComp
|
|
|
12
12
|
cancelButtonMessage;
|
|
13
13
|
confirmButtonMessage;
|
|
14
14
|
buttonCssClasses;
|
|
15
|
+
redirectLocation;
|
|
16
|
+
redirectDelaySeconds;
|
|
15
17
|
constructor() {
|
|
16
18
|
super();
|
|
17
19
|
}
|
|
@@ -53,4 +55,4 @@ exports.CancelButtonDefaults = {
|
|
|
53
55
|
},
|
|
54
56
|
},
|
|
55
57
|
};
|
|
56
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
58
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2FuY2VsLWJ1dHRvbi5tb2RlbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy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y7QUFmRCxrRkFlQztBQUVZLFFBQUEsZUFBZSxHQUFHO0lBQzdCLEVBQUUsSUFBSSxFQUFFLHlDQUF3QixFQUFFLEdBQUcsRUFBRSxnQ0FBZ0MsRUFBRTtJQUN6RSxFQUFFLElBQUksRUFBRSw2Q0FBNEIsRUFBRSxHQUFHLEVBQUUsb0NBQW9DLEVBQUUsS0FBSyxFQUFFLGlEQUF5QixFQUFFO0lBQ25ILEVBQUUsSUFBSSxFQUFFLDRDQUEyQixFQUFFLEdBQUcsRUFBRSxtQ0FBbUMsRUFBRSxLQUFLLEVBQUUsaURBQXlCLEVBQUU7Q0FDbEgsQ0FBQztBQUNXLFFBQUEsb0JBQW9CLEdBQUc7SUFDbEMsQ0FBQyw0Q0FBMkIsQ0FBQyxFQUFFO1FBQzdCLENBQUMsaURBQXlCLENBQUMsRUFBRTtZQUMzQixDQUFDLDZDQUE0QixDQUFDLEVBQUUsaURBQXlCO1NBQzFEO0tBQ0Y7Q0FDRixDQUFDIn0=
|
|
@@ -27,6 +27,16 @@ export interface CancelButtonFieldComponentConfigFrame extends FieldComponentCon
|
|
|
27
27
|
* Example: 'btn-warning' or 'btn btn-warning'.
|
|
28
28
|
*/
|
|
29
29
|
buttonCssClasses?: string;
|
|
30
|
+
/**
|
|
31
|
+
* The relative url to redirect to.
|
|
32
|
+
* Leave empty to use the browser's location.back.
|
|
33
|
+
*/
|
|
34
|
+
redirectLocation?: string;
|
|
35
|
+
/**
|
|
36
|
+
* The delay before redirecting.
|
|
37
|
+
* Default is 3 seconds delay.
|
|
38
|
+
*/
|
|
39
|
+
redirectDelaySeconds?: number;
|
|
30
40
|
}
|
|
31
41
|
export interface CancelButtonFieldComponentConfigOutline extends CancelButtonFieldComponentConfigFrame, FieldComponentConfigOutline {
|
|
32
42
|
}
|
|
@@ -4,14 +4,14 @@ import { FormComponentDefinition } from '../form-component.model';
|
|
|
4
4
|
import { FormConfigVisitorOutline } from '../visitor/base.outline';
|
|
5
5
|
import { DeleteButtonFieldComponentConfigOutline, DeleteButtonFieldComponentDefinitionOutline, DeleteButtonFormComponentDefinitionOutline } from './delete-button.outline';
|
|
6
6
|
export declare class DeleteButtonFieldComponentConfig extends FieldComponentConfig implements DeleteButtonFieldComponentConfigOutline {
|
|
7
|
-
buttonCssClasses?: string;
|
|
8
|
-
closeOnDelete?: boolean;
|
|
9
|
-
redirectLocation?: string;
|
|
10
|
-
redirectDelaySeconds?: number;
|
|
11
7
|
confirmationMessage?: string;
|
|
12
8
|
confirmationTitle?: string;
|
|
13
9
|
cancelButtonMessage?: string;
|
|
14
10
|
confirmButtonMessage?: string;
|
|
11
|
+
buttonCssClasses?: string;
|
|
12
|
+
closeOnDelete?: boolean;
|
|
13
|
+
redirectLocation?: string;
|
|
14
|
+
redirectDelaySeconds?: number;
|
|
15
15
|
}
|
|
16
16
|
export declare class DeleteButtonFieldComponentDefinition extends FieldComponentDefinition implements DeleteButtonFieldComponentDefinitionOutline {
|
|
17
17
|
class: "DeleteButtonComponent";
|
|
@@ -6,14 +6,14 @@ const form_component_model_1 = require("../form-component.model");
|
|
|
6
6
|
const shared_outline_1 = require("../shared.outline");
|
|
7
7
|
const delete_button_outline_1 = require("./delete-button.outline");
|
|
8
8
|
class DeleteButtonFieldComponentConfig extends field_component_model_1.FieldComponentConfig {
|
|
9
|
-
buttonCssClasses;
|
|
10
|
-
closeOnDelete;
|
|
11
|
-
redirectLocation;
|
|
12
|
-
redirectDelaySeconds;
|
|
13
9
|
confirmationMessage;
|
|
14
10
|
confirmationTitle;
|
|
15
11
|
cancelButtonMessage;
|
|
16
12
|
confirmButtonMessage;
|
|
13
|
+
buttonCssClasses;
|
|
14
|
+
closeOnDelete;
|
|
15
|
+
redirectLocation;
|
|
16
|
+
redirectDelaySeconds;
|
|
17
17
|
}
|
|
18
18
|
exports.DeleteButtonFieldComponentConfig = DeleteButtonFieldComponentConfig;
|
|
19
19
|
class DeleteButtonFieldComponentDefinition extends field_component_model_1.FieldComponentDefinition {
|
|
@@ -45,4 +45,4 @@ exports.DeleteButtonDefaults = {
|
|
|
45
45
|
},
|
|
46
46
|
},
|
|
47
47
|
};
|
|
48
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
48
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVsZXRlLWJ1dHRvbi5tb2RlbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9jb25maWcvY29tcG9uZW50L2RlbGV0ZS1idXR0b24ubW9kZWwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsb0VBQTBGO0FBRTFGLGtFQUFrRTtBQUVsRSxzREFBd0g7QUFDeEgsbUVBS2lDO0FBRWpDLE1BQWEsZ0NBQWlDLFNBQVEsNENBQW9CO0lBQ3hFLG1CQUFtQixDQUFVO0lBQzdCLGlCQUFpQixDQUFVO0lBQzNCLG1CQUFtQixDQUFVO0lBQzdCLG9CQUFvQixDQUFVO0lBQzlCLGdCQUFnQixDQUFVO0lBQzFCLGFBQWEsQ0FBVztJQUN4QixnQkFBZ0IsQ0FBVTtJQUMxQixvQkFBb0IsQ0FBVTtDQUMvQjtBQVRELDRFQVNDO0FBRUQsTUFBYSxvQ0FDWCxTQUFRLGdEQUF3QjtJQUdoQyxLQUFLLEdBQUcsaURBQXlCLENBQUM7SUFDbEMsTUFBTSxDQUEyQztJQUVqRCxLQUFLLENBQUMsTUFBTSxDQUFDLE9BQWlDO1FBQzVDLE1BQU0sT0FBTyxDQUFDLHlDQUF5QyxDQUFDLElBQUksQ0FBQyxDQUFDO0lBQ2hFLENBQUM7Q0FDRjtBQVZELG9GQVVDO0FBRUQsTUFBYSxtQ0FDWCxTQUFRLDhDQUF1QjtJQUcvQixTQUFTLENBQStDO0lBQ3hELEtBQUssQ0FBUztJQUNkLE1BQU0sQ0FBMEM7SUFFaEQsS0FBSyxDQUFDLE1BQU0sQ0FBQyxPQUFpQztRQUM1QyxNQUFNLE9BQU8sQ0FBQyx3Q0FBd0MsQ0FBQyxJQUFJLENBQUMsQ0FBQztJQUMvRCxDQUFDO0NBQ0Y7QUFYRCxrRkFXQztBQUVZLFFBQUEsZUFBZSxHQUFHO0lBQzdCLEVBQUUsSUFBSSxFQUFFLHlDQUF3QixFQUFFLEdBQUcsRUFBRSxnQ0FBZ0MsRUFBRTtJQUN6RSxFQUFFLElBQUksRUFBRSw2Q0FBNEIsRUFBRSxHQUFHLEVBQUUsb0NBQW9DLEVBQUUsS0FBSyxFQUFFLGlEQUF5QixFQUFFO0lBQ25ILEVBQUUsSUFBSSxFQUFFLDRDQUEyQixFQUFFLEdBQUcsRUFBRSxtQ0FBbUMsRUFBRSxLQUFLLEVBQUUsaURBQXlCLEVBQUU7Q0FDbEgsQ0FBQztBQUVXLFFBQUEsb0JBQW9CLEdBQUc7SUFDbEMsQ0FBQyw0Q0FBMkIsQ0FBQyxFQUFFO1FBQzdCLENBQUMsaURBQXlCLENBQUMsRUFBRTtZQUMzQixDQUFDLDZDQUE0QixDQUFDLEVBQUUsaURBQXlCO1NBQzFEO0tBQ0Y7Q0FDRixDQUFDIn0=
|
|
@@ -5,14 +5,42 @@ import { FieldComponentConfigFrameKindType, FieldComponentConfigKindType, FieldC
|
|
|
5
5
|
export declare const DeleteButtonComponentName: "DeleteButtonComponent";
|
|
6
6
|
export type DeleteButtonComponentNameType = typeof DeleteButtonComponentName;
|
|
7
7
|
export interface DeleteButtonFieldComponentConfigFrame extends FieldComponentConfigFrame {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
/**
|
|
9
|
+
* An optional confirmation message shown to the user before cancelling.
|
|
10
|
+
* If not set, the cancel action proceeds without confirmation.
|
|
11
|
+
*/
|
|
12
12
|
confirmationMessage?: string;
|
|
13
|
+
/**
|
|
14
|
+
* The title of the confirmation dialog.
|
|
15
|
+
*/
|
|
13
16
|
confirmationTitle?: string;
|
|
17
|
+
/**
|
|
18
|
+
* The label for the cancel button in the confirmation dialog.
|
|
19
|
+
*/
|
|
14
20
|
cancelButtonMessage?: string;
|
|
21
|
+
/**
|
|
22
|
+
* The label for the confirm button in the confirmation dialog.
|
|
23
|
+
*/
|
|
15
24
|
confirmButtonMessage?: string;
|
|
25
|
+
/**
|
|
26
|
+
* CSS classes to apply to the main cancel button element.
|
|
27
|
+
* Example: 'btn-warning' or 'btn btn-warning'.
|
|
28
|
+
*/
|
|
29
|
+
buttonCssClasses?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Whether to 'close' the form by redirecting on a successful delete. Default false.
|
|
32
|
+
*/
|
|
33
|
+
closeOnDelete?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* The relative url to redirect to on a successful delete if closeOnDelete is true.
|
|
36
|
+
* Leave empty to use the browser's location.back.
|
|
37
|
+
*/
|
|
38
|
+
redirectLocation?: string;
|
|
39
|
+
/**
|
|
40
|
+
* The delay before redirecting on a successful delete if closeOnDelete is true.
|
|
41
|
+
* Default is 3 seconds delay.
|
|
42
|
+
*/
|
|
43
|
+
redirectDelaySeconds?: number;
|
|
16
44
|
}
|
|
17
45
|
export interface DeleteButtonFieldComponentConfigOutline extends DeleteButtonFieldComponentConfigFrame, FieldComponentConfigOutline {
|
|
18
46
|
}
|
|
@@ -34,10 +34,12 @@ export interface SaveButtonFieldComponentConfigFrame extends FieldComponentConfi
|
|
|
34
34
|
closeOnSave?: boolean;
|
|
35
35
|
/**
|
|
36
36
|
* The relative url to redirect to on a successful save if closeOnSave is true.
|
|
37
|
+
* Leave empty to use the browser's location.back.
|
|
37
38
|
*/
|
|
38
39
|
redirectLocation?: string;
|
|
39
40
|
/**
|
|
40
41
|
* The delay before redirecting on a successful save if closeOnSave is true.
|
|
42
|
+
* Default is 3 seconds delay.
|
|
41
43
|
*/
|
|
42
44
|
redirectDelaySeconds?: number;
|
|
43
45
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@researchdatabox/sails-ng-common",
|
|
3
|
-
"version": "0.0.1-beta.
|
|
3
|
+
"version": "0.0.1-beta.9909",
|
|
4
4
|
"description": "Common models shared between Sails API endpoints and client-side Angular code",
|
|
5
5
|
"main": "dist/src/index.js",
|
|
6
6
|
"types": "dist/src/index.d.ts",
|