@appsemble/utils 0.20.24 → 0.20.25
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/README.md +4 -4
- package/api/components/schemas/BasePageDefinition.js +22 -23
- package/api/components/schemas/BasePageDefinition.js.map +1 -1
- package/api/components/schemas/BasePageDefinition.ts +22 -23
- package/api/schema-tests/PageDefinition/valid/all-properties.yaml +2 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
#  Appsemble Utilities
|
|
2
2
|
|
|
3
3
|
> Internal utility functions used across multiple Appsemble projects.
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/@appsemble/utils)
|
|
6
|
-
[](https://gitlab.com/appsemble/appsemble/-/releases/0.20.25)
|
|
7
|
+
[](https://codecov.io/gl/appsemble/appsemble)
|
|
8
8
|
[](https://prettier.io)
|
|
9
9
|
|
|
10
10
|
## Installation
|
|
@@ -21,5 +21,5 @@ not guaranteed.
|
|
|
21
21
|
|
|
22
22
|
## License
|
|
23
23
|
|
|
24
|
-
[LGPL-3.0-only](https://gitlab.com/appsemble/appsemble/-/blob/0.20.
|
|
24
|
+
[LGPL-3.0-only](https://gitlab.com/appsemble/appsemble/-/blob/0.20.25/LICENSE.md) ©
|
|
25
25
|
[Appsemble](https://appsemble.com)
|
|
@@ -9,8 +9,7 @@ export const BasePageDefinition = {
|
|
|
9
9
|
description: `The name of an app.
|
|
10
10
|
|
|
11
11
|
This field is always required and must be unique within the app, meaning that it is not possible to
|
|
12
|
-
have two pages with the same name. The name of the page is displayed at the
|
|
13
|
-
as in the side navigational menu.
|
|
12
|
+
have two pages with the same name. The name of the page is displayed at the *app bar* of each page as well as in the side navigational menu.
|
|
14
13
|
|
|
15
14
|
> **Note**: The URL used to navigate to pages is determined by this property.
|
|
16
15
|
`,
|
|
@@ -23,7 +22,27 @@ as in the side navigational menu.
|
|
|
23
22
|
$ref: '#/components/schemas/RemapperDefinition',
|
|
24
23
|
description: `The name of the page when displayed in the navigation menu.
|
|
25
24
|
|
|
26
|
-
Context property \`name\` can be used to access the name of the page.
|
|
25
|
+
Context property \`name\` can be used to access the name of the page.
|
|
26
|
+
`,
|
|
27
|
+
},
|
|
28
|
+
hideNavTitle: {
|
|
29
|
+
type: 'boolean',
|
|
30
|
+
description: `Whether or not the page should be displayed in navigational menus.
|
|
31
|
+
|
|
32
|
+
By default all pages without parameters are added to navigational menus. Set to \`true\` to hide the
|
|
33
|
+
page from menus.
|
|
34
|
+
`,
|
|
35
|
+
default: false,
|
|
36
|
+
},
|
|
37
|
+
navigation: {
|
|
38
|
+
$ref: '#/components/schemas/AppLayoutDefinition/properties/navigation',
|
|
39
|
+
description: `The type of navigation displayed on the page.
|
|
40
|
+
|
|
41
|
+
This overrides the navigation property of the app itself. Defaults to \`left-menu\` if navigation or
|
|
42
|
+
App navigation are not set.
|
|
43
|
+
|
|
44
|
+
Set to \`bottom\` to use a navigation pane at the bottom of the screen instead of the default side
|
|
45
|
+
menu. Set to \`hidden\` to display no navigational menus at all.
|
|
27
46
|
`,
|
|
28
47
|
},
|
|
29
48
|
icon: {
|
|
@@ -64,26 +83,6 @@ instructed to contact the app owner to get permissions.
|
|
|
64
83
|
theme: {
|
|
65
84
|
$ref: '#/components/schemas/Theme',
|
|
66
85
|
},
|
|
67
|
-
navigation: {
|
|
68
|
-
$ref: '#/components/schemas/AppLayoutDefinition/properties/navigation',
|
|
69
|
-
description: `The type of navigation displayed on the page.
|
|
70
|
-
|
|
71
|
-
This overrides the navigation property of the app itself. Defaults to \`left-menu\` if navigation or
|
|
72
|
-
App navigation are not set.
|
|
73
|
-
|
|
74
|
-
Set to \`bottom\` to use a navigation pane at the bottom of the screen instead of the default side
|
|
75
|
-
menu. Set to \`hidden\` to display no navigational menus at all.
|
|
76
|
-
`,
|
|
77
|
-
},
|
|
78
|
-
hideFromMenu: {
|
|
79
|
-
type: 'boolean',
|
|
80
|
-
description: `Whether or not the page should be displayed in navigational menus.
|
|
81
|
-
|
|
82
|
-
By default all pages without parameters are added to navigational menus. Set to \`true\` to hide the
|
|
83
|
-
page from menus.
|
|
84
|
-
`,
|
|
85
|
-
default: false,
|
|
86
|
-
},
|
|
87
86
|
},
|
|
88
87
|
};
|
|
89
88
|
//# sourceMappingURL=BasePageDefinition.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BasePageDefinition.js","sourceRoot":"","sources":["BasePageDefinition.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,kBAAkB,GAAmC;IAChE,IAAI,EAAE,QAAQ;IACd,oBAAoB,EAAE,KAAK;IAC3B,QAAQ,EAAE,CAAC,MAAM,CAAC;IAClB,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;YACd,SAAS,EAAE,EAAE;YACb,WAAW,EAAE
|
|
1
|
+
{"version":3,"file":"BasePageDefinition.js","sourceRoot":"","sources":["BasePageDefinition.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,kBAAkB,GAAmC;IAChE,IAAI,EAAE,QAAQ;IACd,oBAAoB,EAAE,KAAK;IAC3B,QAAQ,EAAE,CAAC,MAAM,CAAC;IAClB,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;YACd,SAAS,EAAE,EAAE;YACb,WAAW,EAAE;;;;;;CAMlB;SACI;QACD,QAAQ,EAAE;YACR,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,oEAAoE;SAClF;QACD,QAAQ,EAAE;YACR,IAAI,EAAE,yCAAyC;YAC/C,WAAW,EAAE;;;GAGhB;SACE;QACD,YAAY,EAAE;YACZ,IAAI,EAAE,SAAS;YACf,WAAW,EAAE;;;;GAIhB;YACG,OAAO,EAAE,KAAK;SACf;QACD,UAAU,EAAE;YACV,IAAI,EAAE,gEAAgE;YACtE,WAAW,EAAE;;;;;;;CAOlB;SACI;QACD,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE;;;CAGlB;SACI;QACD,UAAU,EAAE;YACV,IAAI,EAAE,OAAO;YACb,WAAW,EAAE;;;;CAIlB;YACK,KAAK,EAAE;gBACL,IAAI,EAAE,QAAQ;gBACd,SAAS,EAAE,CAAC;gBACZ,SAAS,EAAE,EAAE;aACd;SACF;QACD,KAAK,EAAE;YACL,IAAI,EAAE,OAAO;YACb,WAAW,EAAE;;;;;;;;CAQlB;YACK,KAAK,EAAE;gBACL,IAAI,EAAE,QAAQ;aACf;SACF;QACD,KAAK,EAAE;YACL,IAAI,EAAE,4BAA4B;SACnC;KACF;CACF,CAAC"}
|
|
@@ -11,8 +11,7 @@ export const BasePageDefinition: OpenAPIV3.NonArraySchemaObject = {
|
|
|
11
11
|
description: `The name of an app.
|
|
12
12
|
|
|
13
13
|
This field is always required and must be unique within the app, meaning that it is not possible to
|
|
14
|
-
have two pages with the same name. The name of the page is displayed at the
|
|
15
|
-
as in the side navigational menu.
|
|
14
|
+
have two pages with the same name. The name of the page is displayed at the *app bar* of each page as well as in the side navigational menu.
|
|
16
15
|
|
|
17
16
|
> **Note**: The URL used to navigate to pages is determined by this property.
|
|
18
17
|
`,
|
|
@@ -25,7 +24,27 @@ as in the side navigational menu.
|
|
|
25
24
|
$ref: '#/components/schemas/RemapperDefinition',
|
|
26
25
|
description: `The name of the page when displayed in the navigation menu.
|
|
27
26
|
|
|
28
|
-
Context property \`name\` can be used to access the name of the page.
|
|
27
|
+
Context property \`name\` can be used to access the name of the page.
|
|
28
|
+
`,
|
|
29
|
+
},
|
|
30
|
+
hideNavTitle: {
|
|
31
|
+
type: 'boolean',
|
|
32
|
+
description: `Whether or not the page should be displayed in navigational menus.
|
|
33
|
+
|
|
34
|
+
By default all pages without parameters are added to navigational menus. Set to \`true\` to hide the
|
|
35
|
+
page from menus.
|
|
36
|
+
`,
|
|
37
|
+
default: false,
|
|
38
|
+
},
|
|
39
|
+
navigation: {
|
|
40
|
+
$ref: '#/components/schemas/AppLayoutDefinition/properties/navigation',
|
|
41
|
+
description: `The type of navigation displayed on the page.
|
|
42
|
+
|
|
43
|
+
This overrides the navigation property of the app itself. Defaults to \`left-menu\` if navigation or
|
|
44
|
+
App navigation are not set.
|
|
45
|
+
|
|
46
|
+
Set to \`bottom\` to use a navigation pane at the bottom of the screen instead of the default side
|
|
47
|
+
menu. Set to \`hidden\` to display no navigational menus at all.
|
|
29
48
|
`,
|
|
30
49
|
},
|
|
31
50
|
icon: {
|
|
@@ -66,25 +85,5 @@ instructed to contact the app owner to get permissions.
|
|
|
66
85
|
theme: {
|
|
67
86
|
$ref: '#/components/schemas/Theme',
|
|
68
87
|
},
|
|
69
|
-
navigation: {
|
|
70
|
-
$ref: '#/components/schemas/AppLayoutDefinition/properties/navigation',
|
|
71
|
-
description: `The type of navigation displayed on the page.
|
|
72
|
-
|
|
73
|
-
This overrides the navigation property of the app itself. Defaults to \`left-menu\` if navigation or
|
|
74
|
-
App navigation are not set.
|
|
75
|
-
|
|
76
|
-
Set to \`bottom\` to use a navigation pane at the bottom of the screen instead of the default side
|
|
77
|
-
menu. Set to \`hidden\` to display no navigational menus at all.
|
|
78
|
-
`,
|
|
79
|
-
},
|
|
80
|
-
hideFromMenu: {
|
|
81
|
-
type: 'boolean',
|
|
82
|
-
description: `Whether or not the page should be displayed in navigational menus.
|
|
83
|
-
|
|
84
|
-
By default all pages without parameters are added to navigational menus. Set to \`true\` to hide the
|
|
85
|
-
page from menus.
|
|
86
|
-
`,
|
|
87
|
-
default: false,
|
|
88
|
-
},
|
|
89
88
|
},
|
|
90
89
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# yaml-language-server: $schema=https://appsemble.app/api.json#/components/schemas/PageDefinition
|
|
2
2
|
name: Test page
|
|
3
|
-
hideFromMenu: true
|
|
4
3
|
icon: book
|
|
5
|
-
navigation: bottom
|
|
6
4
|
navTitle: { translate: testPageTitle }
|
|
5
|
+
hideNavTitle: true
|
|
6
|
+
navigation: bottom
|
|
7
7
|
theme:
|
|
8
8
|
primaryColor: '#dfeb08'
|
|
9
9
|
parameters:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@appsemble/utils",
|
|
3
|
-
"version": "0.20.
|
|
3
|
+
"version": "0.20.25",
|
|
4
4
|
"description": "Utility functions used in Appsemble internally",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"app",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"test": "NODE_OPTIONS=--experimental-vm-modules jest"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@appsemble/types": "0.20.
|
|
34
|
+
"@appsemble/types": "0.20.25",
|
|
35
35
|
"axios": "^0.27.0",
|
|
36
36
|
"cron-parser": "^4.0.0",
|
|
37
37
|
"date-fns": "^2.0.0",
|