meemup-library 1.1.86 → 1.1.88
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.
|
@@ -68,9 +68,12 @@ class ColorController {
|
|
|
68
68
|
if (background_color === null || background_color.trim().toLowerCase() === "transparent") {
|
|
69
69
|
return default_text_color;
|
|
70
70
|
}
|
|
71
|
-
// استفاده از متد generateContrastColorForHex برای رنگهای HEX
|
|
72
|
-
if (/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/i.test(background_color.trim())) {
|
|
73
|
-
|
|
71
|
+
// // استفاده از متد generateContrastColorForHex برای رنگهای HEX
|
|
72
|
+
// if (/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/i.test(background_color.trim())) {
|
|
73
|
+
// return this.generateContrastColorForHex(background_color);
|
|
74
|
+
// }
|
|
75
|
+
if (background_color.trim().startsWith("#")) {
|
|
76
|
+
return this.generateContrastColorForRgb(this.hexWithAlphaToRgba(background_color));
|
|
74
77
|
}
|
|
75
78
|
// استفاده از متد generateContrastColorForRgb برای رنگهای RGB
|
|
76
79
|
if (/^rgb\(/i.test(background_color)) {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import EnumOrientation from "../enums/EnumOrientation";
|
|
2
|
+
import TActionStatus from "../types/TActionStatus";
|
|
2
3
|
import TApiStatus from "../types/TApiStatus";
|
|
3
4
|
import IOrderDetails from "./print/IOrderDetails";
|
|
4
5
|
interface IWorkScreen {
|
|
@@ -12,6 +13,7 @@ interface IWorkScreen {
|
|
|
12
13
|
apiCancelRequests: TApiStatus;
|
|
13
14
|
detail: IOrderDetails | null;
|
|
14
15
|
showLogScreen: boolean;
|
|
16
|
+
task: TActionStatus;
|
|
15
17
|
}
|
|
16
18
|
export default IWorkScreen;
|
|
17
19
|
export declare const initWorkScreen: IWorkScreen;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
type TTask = "start" | "doing" | "done";
|
|
File without changes
|