@sprucelabs/heartwood-view-controllers 121.3.22 → 122.0.1
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/build/.spruce/schemas/heartwoodViewControllers/v2021_02_11/controlBar.schema.d.ts +3 -0
- package/build/.spruce/schemas/heartwoodViewControllers/v2021_02_11/controlBar.schema.js +45 -0
- package/build/.spruce/schemas/heartwoodViewControllers/v2021_02_11/lockScreen.schema.js +2 -42
- package/build/.spruce/schemas/heartwoodViewControllers/v2021_02_11/navigationButton.schema.js +7 -0
- package/build/.spruce/schemas/heartwoodViewControllers/v2021_02_11/skillView.schema.js +2 -42
- package/build/.spruce/schemas/heartwoodViewControllers/v2021_02_11/skillViewLayout.schema.d.ts +3 -0
- package/build/.spruce/schemas/heartwoodViewControllers/v2021_02_11/skillViewLayout.schema.js +69 -0
- package/build/.spruce/schemas/heartwoodViewControllers/v2021_02_11/themeProps.schema.js +5 -21
- package/build/.spruce/schemas/schemas.types.d.ts +538 -573
- package/build/esm/.spruce/schemas/heartwoodViewControllers/v2021_02_11/controlBar.schema.d.ts +3 -0
- package/build/esm/.spruce/schemas/heartwoodViewControllers/v2021_02_11/controlBar.schema.js +40 -0
- package/build/esm/.spruce/schemas/heartwoodViewControllers/v2021_02_11/lockScreen.schema.js +2 -42
- package/build/esm/.spruce/schemas/heartwoodViewControllers/v2021_02_11/navigationButton.schema.js +7 -0
- package/build/esm/.spruce/schemas/heartwoodViewControllers/v2021_02_11/skillView.schema.js +2 -42
- package/build/esm/.spruce/schemas/heartwoodViewControllers/v2021_02_11/skillViewLayout.schema.d.ts +3 -0
- package/build/esm/.spruce/schemas/heartwoodViewControllers/v2021_02_11/skillViewLayout.schema.js +64 -0
- package/build/esm/.spruce/schemas/heartwoodViewControllers/v2021_02_11/themeProps.schema.js +5 -21
- package/build/esm/.spruce/schemas/schemas.types.d.ts +538 -573
- package/build/esm/index.d.ts +3 -3
- package/build/esm/index.js +3 -3
- package/build/esm/schemas/v2021_02_11/lockScreen.builder.d.ts +57 -30043
- package/build/esm/schemas/v2021_02_11/navigation.builder.d.ts +5 -0
- package/build/esm/schemas/v2021_02_11/navigationButton.builder.d.ts +5 -0
- package/build/esm/schemas/v2021_02_11/navigationButton.builder.js +4 -0
- package/build/esm/schemas/v2021_02_11/skillView.builder.d.ts +57 -30043
- package/build/esm/schemas/v2021_02_11/skillView.builder.js +1 -77
- package/build/esm/schemas/v2021_02_11/skillViewLayout.builder.d.ts +86 -0
- package/build/esm/schemas/v2021_02_11/skillViewLayout.builder.js +126 -0
- package/build/esm/schemas/v2021_02_11/theme.builder.d.ts +38 -18
- package/build/esm/schemas/v2021_02_11/theme.builder.js +44 -17
- package/build/esm/tests/utilities/formAssert.d.ts +3 -5
- package/build/esm/tests/utilities/listAssert.d.ts +3 -5
- package/build/esm/tests/utilities/vcAssert.d.ts +2 -2
- package/build/esm/tests/utilities/vcAssert.js +10 -15
- package/build/esm/types/heartwood.types.d.ts +3 -2
- package/build/esm/utilities/buildSkillViewLayout.d.ts +17 -9
- package/build/esm/utilities/buildSkillViewLayout.js +2 -2
- package/build/esm/utilities/splitCardsIntoColumns.d.ts +2 -0
- package/build/esm/utilities/splitCardsIntoColumns.js +13 -0
- package/build/index.d.ts +3 -3
- package/build/index.js +9 -9
- package/build/schemas/v2021_02_11/lockScreen.builder.d.ts +57 -30043
- package/build/schemas/v2021_02_11/navigation.builder.d.ts +5 -0
- package/build/schemas/v2021_02_11/navigationButton.builder.d.ts +5 -0
- package/build/schemas/v2021_02_11/navigationButton.builder.js +5 -0
- package/build/schemas/v2021_02_11/skillView.builder.d.ts +57 -30043
- package/build/schemas/v2021_02_11/skillView.builder.js +2 -78
- package/build/schemas/v2021_02_11/skillViewLayout.builder.d.ts +86 -0
- package/build/schemas/v2021_02_11/skillViewLayout.builder.js +128 -0
- package/build/schemas/v2021_02_11/theme.builder.d.ts +38 -18
- package/build/schemas/v2021_02_11/theme.builder.js +44 -17
- package/build/tests/utilities/formAssert.d.ts +3 -5
- package/build/tests/utilities/listAssert.d.ts +3 -5
- package/build/tests/utilities/vcAssert.d.ts +2 -2
- package/build/tests/utilities/vcAssert.js +6 -13
- package/build/types/heartwood.types.d.ts +3 -2
- package/build/utilities/buildSkillViewLayout.d.ts +17 -9
- package/build/utilities/buildSkillViewLayout.js +2 -2
- package/build/utilities/splitCardsIntoColumns.d.ts +2 -0
- package/build/utilities/splitCardsIntoColumns.js +16 -0
- package/package.json +1 -1
- package/build/.spruce/schemas/heartwoodViewControllers/v2021_02_11/layout.schema.d.ts +0 -3
- package/build/.spruce/schemas/heartwoodViewControllers/v2021_02_11/layout.schema.js +0 -46
- package/build/builders/buildSkillView.d.ts +0 -2
- package/build/builders/buildSkillView.js +0 -6
- package/build/esm/.spruce/schemas/heartwoodViewControllers/v2021_02_11/layout.schema.d.ts +0 -3
- package/build/esm/.spruce/schemas/heartwoodViewControllers/v2021_02_11/layout.schema.js +0 -41
- package/build/esm/builders/buildSkillView.d.ts +0 -2
- package/build/esm/builders/buildSkillView.js +0 -3
- package/build/esm/schemas/v2021_02_11/layout.builder.d.ts +0 -30014
- package/build/esm/schemas/v2021_02_11/layout.builder.js +0 -48
- package/build/esm/utilities/splitCardsIntoLayouts.d.ts +0 -4
- package/build/esm/utilities/splitCardsIntoLayouts.js +0 -15
- package/build/schemas/v2021_02_11/layout.builder.d.ts +0 -30014
- package/build/schemas/v2021_02_11/layout.builder.js +0 -53
- package/build/utilities/splitCardsIntoLayouts.d.ts +0 -4
- package/build/utilities/splitCardsIntoLayouts.js +0 -18
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const schema_1 = require("@sprucelabs/schema");
|
|
7
|
+
const fontSetting_schema_1 = __importDefault(require("./fontSetting.schema"));
|
|
8
|
+
const controlBarSchema = {
|
|
9
|
+
id: 'controlBar',
|
|
10
|
+
version: 'v2021_02_11',
|
|
11
|
+
namespace: 'HeartwoodViewControllers',
|
|
12
|
+
name: '',
|
|
13
|
+
moduleToImportFromWhenRemote: '@sprucelabs/heartwood-view-controllers',
|
|
14
|
+
fields: {
|
|
15
|
+
/** Control bar color 1. The foreground color of the control bar. */
|
|
16
|
+
'foregroundColor': {
|
|
17
|
+
label: 'Control bar color 1',
|
|
18
|
+
type: 'text',
|
|
19
|
+
hint: 'The foreground color of the control bar.',
|
|
20
|
+
options: undefined
|
|
21
|
+
},
|
|
22
|
+
/** Control bar color 2. The background color of the control bar. */
|
|
23
|
+
'backgroundColor': {
|
|
24
|
+
label: 'Control bar color 2',
|
|
25
|
+
type: 'text',
|
|
26
|
+
hint: 'The background color of the control bar.',
|
|
27
|
+
options: undefined
|
|
28
|
+
},
|
|
29
|
+
/** Control bar font. The font used in the control bar. */
|
|
30
|
+
'font': {
|
|
31
|
+
label: 'Control bar font',
|
|
32
|
+
type: 'schema',
|
|
33
|
+
hint: 'The font used in the control bar.',
|
|
34
|
+
options: { schema: fontSetting_schema_1.default, }
|
|
35
|
+
},
|
|
36
|
+
/** Control bar size. */
|
|
37
|
+
'size': {
|
|
38
|
+
label: 'Control bar size',
|
|
39
|
+
type: 'select',
|
|
40
|
+
options: { choices: [{ "value": "medium", "label": "Standard" }, { "value": "large", "label": "Large" }], }
|
|
41
|
+
},
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
schema_1.SchemaRegistry.getInstance().trackSchema(controlBarSchema);
|
|
45
|
+
exports.default = controlBarSchema;
|
|
@@ -4,8 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const schema_1 = require("@sprucelabs/schema");
|
|
7
|
-
const
|
|
8
|
-
const card_schema_1 = __importDefault(require("./card.schema"));
|
|
7
|
+
const skillViewLayout_schema_1 = __importDefault(require("./skillViewLayout.schema"));
|
|
9
8
|
const lockScreenSchema = {
|
|
10
9
|
id: 'lockScreen',
|
|
11
10
|
version: 'v2021_02_11',
|
|
@@ -58,46 +57,7 @@ const lockScreenSchema = {
|
|
|
58
57
|
label: 'Layout',
|
|
59
58
|
type: 'schema',
|
|
60
59
|
isArray: true,
|
|
61
|
-
options: { schema:
|
|
62
|
-
},
|
|
63
|
-
/** . */
|
|
64
|
-
'leftCards': {
|
|
65
|
-
type: 'schema',
|
|
66
|
-
isArray: true,
|
|
67
|
-
minArrayLength: 0,
|
|
68
|
-
options: { schema: card_schema_1.default, }
|
|
69
|
-
},
|
|
70
|
-
/** . */
|
|
71
|
-
'rightCards': {
|
|
72
|
-
type: 'schema',
|
|
73
|
-
isArray: true,
|
|
74
|
-
minArrayLength: 0,
|
|
75
|
-
options: { schema: card_schema_1.default, }
|
|
76
|
-
},
|
|
77
|
-
/** . */
|
|
78
|
-
'topCards': {
|
|
79
|
-
type: 'schema',
|
|
80
|
-
isArray: true,
|
|
81
|
-
minArrayLength: 0,
|
|
82
|
-
options: { schema: card_schema_1.default, }
|
|
83
|
-
},
|
|
84
|
-
/** . */
|
|
85
|
-
'cards': {
|
|
86
|
-
type: 'schema',
|
|
87
|
-
isArray: true,
|
|
88
|
-
minArrayLength: 0,
|
|
89
|
-
options: { schema: card_schema_1.default, }
|
|
90
|
-
},
|
|
91
|
-
/** . */
|
|
92
|
-
'bottomCards': {
|
|
93
|
-
type: 'schema',
|
|
94
|
-
isArray: true,
|
|
95
|
-
options: { schema: card_schema_1.default, }
|
|
96
|
-
},
|
|
97
|
-
/** . */
|
|
98
|
-
'layout': {
|
|
99
|
-
type: 'select',
|
|
100
|
-
options: { choices: [{ "value": "big-left", "label": "Big left" }, { "value": "big-right", "label": "Big right" }, { "value": "big-top", "label": "Big top" }, { "value": "big-top-left", "label": "Big top left" }, { "value": "grid", "label": "Grid" }], }
|
|
60
|
+
options: { schema: skillViewLayout_schema_1.default, }
|
|
101
61
|
},
|
|
102
62
|
/** Card controller. */
|
|
103
63
|
'skillViewController': {
|
package/build/.spruce/schemas/heartwoodViewControllers/v2021_02_11/navigationButton.schema.js
CHANGED
|
@@ -38,6 +38,13 @@ const navigationButtonSchema = {
|
|
|
38
38
|
type: 'schema',
|
|
39
39
|
options: { schema: routerDestination_schema_1.default, }
|
|
40
40
|
},
|
|
41
|
+
/** Is spacer. This will act as a spacer and spread buttons out evenly. */
|
|
42
|
+
'isSpacer': {
|
|
43
|
+
label: 'Is spacer',
|
|
44
|
+
type: 'boolean',
|
|
45
|
+
hint: 'This will act as a spacer and spread buttons out evenly.',
|
|
46
|
+
options: undefined
|
|
47
|
+
},
|
|
41
48
|
/** Selected. */
|
|
42
49
|
'isEnabled': {
|
|
43
50
|
label: 'Selected',
|
|
@@ -4,8 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const schema_1 = require("@sprucelabs/schema");
|
|
7
|
-
const
|
|
8
|
-
const card_schema_1 = __importDefault(require("./card.schema"));
|
|
7
|
+
const skillViewLayout_schema_1 = __importDefault(require("./skillViewLayout.schema"));
|
|
9
8
|
const skillViewSchema = {
|
|
10
9
|
id: 'skillView',
|
|
11
10
|
version: 'v2021_02_11',
|
|
@@ -58,46 +57,7 @@ const skillViewSchema = {
|
|
|
58
57
|
label: 'Layout',
|
|
59
58
|
type: 'schema',
|
|
60
59
|
isArray: true,
|
|
61
|
-
options: { schema:
|
|
62
|
-
},
|
|
63
|
-
/** . */
|
|
64
|
-
'leftCards': {
|
|
65
|
-
type: 'schema',
|
|
66
|
-
isArray: true,
|
|
67
|
-
minArrayLength: 0,
|
|
68
|
-
options: { schema: card_schema_1.default, }
|
|
69
|
-
},
|
|
70
|
-
/** . */
|
|
71
|
-
'rightCards': {
|
|
72
|
-
type: 'schema',
|
|
73
|
-
isArray: true,
|
|
74
|
-
minArrayLength: 0,
|
|
75
|
-
options: { schema: card_schema_1.default, }
|
|
76
|
-
},
|
|
77
|
-
/** . */
|
|
78
|
-
'topCards': {
|
|
79
|
-
type: 'schema',
|
|
80
|
-
isArray: true,
|
|
81
|
-
minArrayLength: 0,
|
|
82
|
-
options: { schema: card_schema_1.default, }
|
|
83
|
-
},
|
|
84
|
-
/** . */
|
|
85
|
-
'cards': {
|
|
86
|
-
type: 'schema',
|
|
87
|
-
isArray: true,
|
|
88
|
-
minArrayLength: 0,
|
|
89
|
-
options: { schema: card_schema_1.default, }
|
|
90
|
-
},
|
|
91
|
-
/** . */
|
|
92
|
-
'bottomCards': {
|
|
93
|
-
type: 'schema',
|
|
94
|
-
isArray: true,
|
|
95
|
-
options: { schema: card_schema_1.default, }
|
|
96
|
-
},
|
|
97
|
-
/** . */
|
|
98
|
-
'layout': {
|
|
99
|
-
type: 'select',
|
|
100
|
-
options: { choices: [{ "value": "big-left", "label": "Big left" }, { "value": "big-right", "label": "Big right" }, { "value": "big-top", "label": "Big top" }, { "value": "big-top-left", "label": "Big top left" }, { "value": "grid", "label": "Grid" }], }
|
|
60
|
+
options: { schema: skillViewLayout_schema_1.default, }
|
|
101
61
|
},
|
|
102
62
|
}
|
|
103
63
|
};
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const schema_1 = require("@sprucelabs/schema");
|
|
7
|
+
const card_schema_1 = __importDefault(require("./card.schema"));
|
|
8
|
+
const skillViewLayoutSchema = {
|
|
9
|
+
id: 'skillViewLayout',
|
|
10
|
+
version: 'v2021_02_11',
|
|
11
|
+
namespace: 'HeartwoodViewControllers',
|
|
12
|
+
name: 'Layout',
|
|
13
|
+
moduleToImportFromWhenRemote: '@sprucelabs/heartwood-view-controllers',
|
|
14
|
+
fields: {
|
|
15
|
+
/** . */
|
|
16
|
+
'headerCard': {
|
|
17
|
+
type: 'schema',
|
|
18
|
+
options: { schema: card_schema_1.default, }
|
|
19
|
+
},
|
|
20
|
+
/** . */
|
|
21
|
+
'leftCards': {
|
|
22
|
+
type: 'schema',
|
|
23
|
+
isArray: true,
|
|
24
|
+
minArrayLength: 0,
|
|
25
|
+
options: { schema: card_schema_1.default, }
|
|
26
|
+
},
|
|
27
|
+
/** . */
|
|
28
|
+
'rightCards': {
|
|
29
|
+
type: 'schema',
|
|
30
|
+
isArray: true,
|
|
31
|
+
minArrayLength: 0,
|
|
32
|
+
options: { schema: card_schema_1.default, }
|
|
33
|
+
},
|
|
34
|
+
/** . */
|
|
35
|
+
'topCards': {
|
|
36
|
+
type: 'schema',
|
|
37
|
+
isArray: true,
|
|
38
|
+
minArrayLength: 0,
|
|
39
|
+
options: { schema: card_schema_1.default, }
|
|
40
|
+
},
|
|
41
|
+
/** . */
|
|
42
|
+
'cards': {
|
|
43
|
+
type: 'schema',
|
|
44
|
+
isArray: true,
|
|
45
|
+
minArrayLength: 0,
|
|
46
|
+
options: { schema: card_schema_1.default, }
|
|
47
|
+
},
|
|
48
|
+
/** . */
|
|
49
|
+
'bottomCards': {
|
|
50
|
+
type: 'schema',
|
|
51
|
+
isArray: true,
|
|
52
|
+
options: { schema: card_schema_1.default, }
|
|
53
|
+
},
|
|
54
|
+
/** . */
|
|
55
|
+
'style': {
|
|
56
|
+
type: 'select',
|
|
57
|
+
options: { choices: [{ "value": "one-col", "label": "One column" }, { "value": "two-col", "label": "Two columns" }, { "value": "three-col", "label": "Three columns" }, { "value": "big-left", "label": "Big left" }, { "value": "big-right", "label": "Big right" }, { "value": "big-top", "label": "Big top" }, { "value": "big-top-left", "label": "Big top left" }, { "value": "grid", "label": "Grid" }], }
|
|
58
|
+
},
|
|
59
|
+
/** Width. */
|
|
60
|
+
'width': {
|
|
61
|
+
label: 'Width',
|
|
62
|
+
type: 'select',
|
|
63
|
+
defaultValue: "tight",
|
|
64
|
+
options: { choices: [{ "value": "wide", "label": "Wide" }, { "value": "tight", "label": "Tight" }, { "value": "full", "label": "Full width" }], }
|
|
65
|
+
},
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
schema_1.SchemaRegistry.getInstance().trackSchema(skillViewLayoutSchema);
|
|
69
|
+
exports.default = skillViewLayoutSchema;
|
|
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const schema_1 = require("@sprucelabs/schema");
|
|
7
|
-
const
|
|
7
|
+
const controlBar_schema_1 = __importDefault(require("./controlBar.schema"));
|
|
8
8
|
const calendarEventColors_schema_1 = __importDefault(require("./calendarEventColors.schema"));
|
|
9
9
|
const statusIndicatorColors_schema_1 = __importDefault(require("./statusIndicatorColors.schema"));
|
|
10
10
|
const fontFamily_schema_1 = __importDefault(require("./fontFamily.schema"));
|
|
@@ -135,19 +135,10 @@ const themePropsSchema = {
|
|
|
135
135
|
hint: 'Background for buttons and menu items',
|
|
136
136
|
options: undefined
|
|
137
137
|
},
|
|
138
|
-
/**
|
|
139
|
-
'
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
hint: 'The foreground color of the control bar.',
|
|
143
|
-
options: undefined
|
|
144
|
-
},
|
|
145
|
-
/** Control bar color 2. The background color of the control bar. */
|
|
146
|
-
'controlBarColor2': {
|
|
147
|
-
label: 'Control bar color 2',
|
|
148
|
-
type: 'text',
|
|
149
|
-
hint: 'The background color of the control bar.',
|
|
150
|
-
options: undefined
|
|
138
|
+
/** . */
|
|
139
|
+
'controlBar': {
|
|
140
|
+
type: 'schema',
|
|
141
|
+
options: { schema: controlBar_schema_1.default, }
|
|
151
142
|
},
|
|
152
143
|
/** Tool belt color 2. The background color of the tool belts. */
|
|
153
144
|
'toolBeltColor2': {
|
|
@@ -156,13 +147,6 @@ const themePropsSchema = {
|
|
|
156
147
|
hint: 'The background color of the tool belts.',
|
|
157
148
|
options: undefined
|
|
158
149
|
},
|
|
159
|
-
/** Control bar font. The font used in the control bar. */
|
|
160
|
-
'controlBarFont': {
|
|
161
|
-
label: 'Control bar font',
|
|
162
|
-
type: 'schema',
|
|
163
|
-
hint: 'The font used in the control bar.',
|
|
164
|
-
options: { schema: fontSetting_schema_1.default, }
|
|
165
|
-
},
|
|
166
150
|
/** Error color 1. Errors overlayed on a background colored with errorColor1Inverse. */
|
|
167
151
|
'errorColor1': {
|
|
168
152
|
label: 'Error color 1',
|