@shisyamo4131/air-guard-v2-schemas 2.4.2-dev.84 → 2.4.2-dev.86
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/package.json
CHANGED
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
* @property {number} order - 状態の順序(数値が小さいほど優先度が高い)
|
|
8
8
|
* @property {string} color - 状態に対応するカラーコード(例: "#F57C00")
|
|
9
9
|
* @property {function} disabled - 現在の状態を引数に取り、次の状態への遷移が可能かどうかを判定する関数
|
|
10
|
-
* @property {
|
|
11
|
-
* @property {
|
|
10
|
+
* @property {object|null} next - 次の状態への遷移情報(status: 遷移先の状態識別子、text: 遷移ボタンに表示するテキスト)。遷移がない場合はnull。
|
|
11
|
+
* @property {object|null} prev - 前の状態への遷移情報(status: 遷移先の状態識別子、text: 遷移ボタンに表示するテキスト)。遷移がない場合はnull。
|
|
12
12
|
*
|
|
13
13
|
* ### 状態
|
|
14
14
|
* - 配置済(ARRANGED): 管制により配置が行われた状態で、配置通知の初期状態。作業員はまだ確認していない。
|
|
@@ -38,8 +38,10 @@ export const VALUES = Object.freeze({
|
|
|
38
38
|
disabled: (currentStatus) => {
|
|
39
39
|
return true;
|
|
40
40
|
},
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
text: "未確認配置です。",
|
|
42
|
+
icon: "mdi-alert-circle-outline",
|
|
43
|
+
next: { status: "CONFIRMED", text: "配置了解" },
|
|
44
|
+
prev: null,
|
|
43
45
|
},
|
|
44
46
|
|
|
45
47
|
CONFIRMED: {
|
|
@@ -57,8 +59,10 @@ export const VALUES = Object.freeze({
|
|
|
57
59
|
disabled: (currentStatus) => {
|
|
58
60
|
return !(currentStatus === "ARRANGED" || currentStatus === "ARRIVED");
|
|
59
61
|
},
|
|
60
|
-
|
|
61
|
-
|
|
62
|
+
text: "確認済みの配置です。",
|
|
63
|
+
icon: "mdi-check-circle-outline",
|
|
64
|
+
next: { status: "ARRIVED", text: "上番する" },
|
|
65
|
+
prev: { status: "ARRANGED", text: "配置を差し戻す" },
|
|
62
66
|
},
|
|
63
67
|
|
|
64
68
|
ARRIVED: {
|
|
@@ -75,8 +79,10 @@ export const VALUES = Object.freeze({
|
|
|
75
79
|
disabled: (currentStatus) => {
|
|
76
80
|
return !(currentStatus === "CONFIRMED" || currentStatus === "LEAVED");
|
|
77
81
|
},
|
|
78
|
-
|
|
79
|
-
|
|
82
|
+
text: "上番済みの配置です。",
|
|
83
|
+
icon: "mdi-account-check-outline",
|
|
84
|
+
next: { status: "LEAVED", text: "下番する" },
|
|
85
|
+
prev: { status: "CONFIRMED", text: "上番を取り消す" },
|
|
80
86
|
},
|
|
81
87
|
|
|
82
88
|
LEAVED: {
|
|
@@ -94,8 +100,10 @@ export const VALUES = Object.freeze({
|
|
|
94
100
|
disabled: (currentStatus) => {
|
|
95
101
|
return !(currentStatus === "ARRIVED" || currentStatus === "LEAVED");
|
|
96
102
|
},
|
|
103
|
+
text: "下番済みの配置です。",
|
|
104
|
+
icon: "mdi-account-off-outline",
|
|
97
105
|
next: null,
|
|
98
|
-
|
|
106
|
+
prev: { status: "ARRIVED", text: "下番を取り消す" },
|
|
99
107
|
},
|
|
100
108
|
|
|
101
109
|
/**
|