@shisyamo4131/air-guard-v2-schemas 2.3.7-dev.14 → 2.3.7-dev.16
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 +1 -1
- package/src/Employee.js +5 -0
- package/src/parts/fieldDefinitions.js +19 -0
package/package.json
CHANGED
package/src/Employee.js
CHANGED
|
@@ -24,10 +24,13 @@ const classProps = {
|
|
|
24
24
|
address: defField("address", { required: true }),
|
|
25
25
|
building: defField("building"),
|
|
26
26
|
location: defField("location", { hidden: true }), // 非表示でOK
|
|
27
|
+
mobile: defField("mobile", { required: true }),
|
|
28
|
+
email: defField("email", { required: false }),
|
|
27
29
|
dateOfHire: defField("dateAt", { label: "入社日", required: true }),
|
|
28
30
|
employmentStatus: defField("employmentStatus", { required: true }),
|
|
29
31
|
dateOfTermination: defField("dateAt", {
|
|
30
32
|
label: "退職日",
|
|
33
|
+
default: null,
|
|
31
34
|
component: {
|
|
32
35
|
attrs: {
|
|
33
36
|
required: (item) => item.employmentStatus === "terminated",
|
|
@@ -89,6 +92,8 @@ const classProps = {
|
|
|
89
92
|
* @props {string} address - Address details.
|
|
90
93
|
* @props {string} building - Building name.
|
|
91
94
|
* @props {object} location - Geographical location.
|
|
95
|
+
* @props {string} mobile - Mobile phone number.
|
|
96
|
+
* @props {string} email - Email address.
|
|
92
97
|
* @props {Date} dateOfHire - Date of hire.
|
|
93
98
|
* @props {string} employmentStatus - Employment status.
|
|
94
99
|
* @props {Date} dateOfTermination - Date of termination.
|
|
@@ -276,6 +276,13 @@ export const fieldDefinitions = {
|
|
|
276
276
|
...generalDefinitions.oneLine,
|
|
277
277
|
label: "本名",
|
|
278
278
|
length: 50,
|
|
279
|
+
component: {
|
|
280
|
+
name: generalDefinitions.oneLine.component.name,
|
|
281
|
+
attrs: {
|
|
282
|
+
hint: "パスポート等の表記をご入力ください。",
|
|
283
|
+
persistentHint: true,
|
|
284
|
+
},
|
|
285
|
+
},
|
|
279
286
|
},
|
|
280
287
|
lastName: {
|
|
281
288
|
...generalDefinitions.oneLine,
|
|
@@ -293,6 +300,18 @@ export const fieldDefinitions = {
|
|
|
293
300
|
},
|
|
294
301
|
},
|
|
295
302
|
},
|
|
303
|
+
mobile: {
|
|
304
|
+
...generalDefinitions.oneLine,
|
|
305
|
+
label: "携帯電話",
|
|
306
|
+
length: 13,
|
|
307
|
+
component: {
|
|
308
|
+
name: generalDefinitions.oneLine.component.name,
|
|
309
|
+
attrs: {
|
|
310
|
+
counter: true,
|
|
311
|
+
inputType: "tel",
|
|
312
|
+
},
|
|
313
|
+
},
|
|
314
|
+
},
|
|
296
315
|
name: {
|
|
297
316
|
...generalDefinitions.oneLine,
|
|
298
317
|
label: "名前",
|