@vived/app 4.15.1 → 4.16.0
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/lib/Components/FramedScreen/Entities/FramedScreenContainer.js +1 -1
- package/lib/Components/ThemeColors/Controllers/getOnPrimaryColor.d.ts +3 -0
- package/lib/Components/ThemeColors/Controllers/getOnPrimaryColor.js +16 -0
- package/lib/Components/ThemeColors/Controllers/getOnSurfaceColor.d.ts +3 -0
- package/lib/Components/ThemeColors/Controllers/getOnSurfaceColor.js +16 -0
- package/lib/Components/ThemeColors/Controllers/getPrimaryColor.d.ts +3 -0
- package/lib/Components/ThemeColors/Controllers/getPrimaryColor.js +16 -0
- package/lib/Components/ThemeColors/Controllers/getSurfaceColor.d.ts +3 -0
- package/lib/Components/ThemeColors/Controllers/getSurfaceColor.js +16 -0
- package/lib/Components/ThemeColors/Controllers/getSurfaceContainerColor.d.ts +3 -0
- package/lib/Components/ThemeColors/Controllers/getSurfaceContainerColor.js +16 -0
- package/lib/Components/ThemeColors/Controllers/index.d.ts +5 -0
- package/lib/Components/ThemeColors/Controllers/index.js +17 -0
- package/lib/Components/ThemeColors/index.d.ts +1 -0
- package/lib/Components/ThemeColors/index.js +1 -0
- package/package.json +1 -1
|
@@ -17,7 +17,7 @@ class FramedScreenContainerImp extends FramedScreenContainer {
|
|
|
17
17
|
super(appObject, FramedScreenContainer.type);
|
|
18
18
|
this.memoizedPos = new Entities_1.MemoizedVector2(ValueObjects_1.Vector2.Zero(), this.notifyOnChange);
|
|
19
19
|
this.memoizedSize = new Entities_1.MemoizedVector2(ValueObjects_1.Vector2.Zero(), this.notifyOnChange);
|
|
20
|
-
this.memoizedShow = new Entities_1.MemoizedBoolean(
|
|
20
|
+
this.memoizedShow = new Entities_1.MemoizedBoolean(false, this.notifyOnChange);
|
|
21
21
|
}
|
|
22
22
|
get id() {
|
|
23
23
|
return this.appObject.id;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getOnPrimaryColor = void 0;
|
|
4
|
+
const ValueObjects_1 = require("../../../ValueObjects");
|
|
5
|
+
const Entities_1 = require("../Entities");
|
|
6
|
+
function getOnPrimaryColor(appObjects) {
|
|
7
|
+
const theme = Entities_1.ThemeColors.get(appObjects);
|
|
8
|
+
if (theme) {
|
|
9
|
+
return theme.getColorForType(Entities_1.ThemeColorType.onPrimary);
|
|
10
|
+
}
|
|
11
|
+
else {
|
|
12
|
+
appObjects.submitError("getOnPrimaryColor", "Unable to find ThemeColors");
|
|
13
|
+
return ValueObjects_1.Color.RGB(0, 0, 0);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
exports.getOnPrimaryColor = getOnPrimaryColor;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getOnSurfaceColor = void 0;
|
|
4
|
+
const ValueObjects_1 = require("../../../ValueObjects");
|
|
5
|
+
const Entities_1 = require("../Entities");
|
|
6
|
+
function getOnSurfaceColor(appObjects) {
|
|
7
|
+
const theme = Entities_1.ThemeColors.get(appObjects);
|
|
8
|
+
if (theme) {
|
|
9
|
+
return theme.getColorForType(Entities_1.ThemeColorType.onSurface);
|
|
10
|
+
}
|
|
11
|
+
else {
|
|
12
|
+
appObjects.submitError("getOnSurfaceColor", "Unable to find ThemeColors");
|
|
13
|
+
return ValueObjects_1.Color.RGB(0, 0, 0);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
exports.getOnSurfaceColor = getOnSurfaceColor;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getPrimaryColor = void 0;
|
|
4
|
+
const ValueObjects_1 = require("../../../ValueObjects");
|
|
5
|
+
const Entities_1 = require("../Entities");
|
|
6
|
+
function getPrimaryColor(appObjects) {
|
|
7
|
+
const theme = Entities_1.ThemeColors.get(appObjects);
|
|
8
|
+
if (theme) {
|
|
9
|
+
return theme.getColorForType(Entities_1.ThemeColorType.primary);
|
|
10
|
+
}
|
|
11
|
+
else {
|
|
12
|
+
appObjects.submitError("getPrimaryColor", "Unable to find ThemeColors");
|
|
13
|
+
return ValueObjects_1.Color.RGB(0, 0, 0);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
exports.getPrimaryColor = getPrimaryColor;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getSurfaceColor = void 0;
|
|
4
|
+
const ValueObjects_1 = require("../../../ValueObjects");
|
|
5
|
+
const Entities_1 = require("../Entities");
|
|
6
|
+
function getSurfaceColor(appObjects) {
|
|
7
|
+
const theme = Entities_1.ThemeColors.get(appObjects);
|
|
8
|
+
if (theme) {
|
|
9
|
+
return theme.getColorForType(Entities_1.ThemeColorType.surface);
|
|
10
|
+
}
|
|
11
|
+
else {
|
|
12
|
+
appObjects.submitError("getSurfaceColor", "Unable to find ThemeColors");
|
|
13
|
+
return ValueObjects_1.Color.RGB(0, 0, 0);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
exports.getSurfaceColor = getSurfaceColor;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getSurfaceContainerColor = void 0;
|
|
4
|
+
const ValueObjects_1 = require("../../../ValueObjects");
|
|
5
|
+
const Entities_1 = require("../Entities");
|
|
6
|
+
function getSurfaceContainerColor(appObjects) {
|
|
7
|
+
const theme = Entities_1.ThemeColors.get(appObjects);
|
|
8
|
+
if (theme) {
|
|
9
|
+
return theme.getColorForType(Entities_1.ThemeColorType.surfaceContainer);
|
|
10
|
+
}
|
|
11
|
+
else {
|
|
12
|
+
appObjects.submitError("getSurfaceColor", "Unable to find ThemeColors");
|
|
13
|
+
return ValueObjects_1.Color.RGB(0, 0, 0);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
exports.getSurfaceContainerColor = getSurfaceContainerColor;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
+
};
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
__exportStar(require("./getOnPrimaryColor"), exports);
|
|
14
|
+
__exportStar(require("./getOnSurfaceColor"), exports);
|
|
15
|
+
__exportStar(require("./getPrimaryColor"), exports);
|
|
16
|
+
__exportStar(require("./getSurfaceColor"), exports);
|
|
17
|
+
__exportStar(require("./getSurfaceContainerColor"), exports);
|
|
@@ -10,5 +10,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
10
10
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
11
|
};
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
__exportStar(require("./Controllers"), exports);
|
|
13
14
|
__exportStar(require("./Entities"), exports);
|
|
14
15
|
__exportStar(require("./PM"), exports);
|