@shisyamo4131/air-guard-v2-schemas 2.3.7-dev.14 → 2.3.7-dev.15
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 +12 -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.
|
|
@@ -293,6 +293,18 @@ export const fieldDefinitions = {
|
|
|
293
293
|
},
|
|
294
294
|
},
|
|
295
295
|
},
|
|
296
|
+
mobile: {
|
|
297
|
+
...generalDefinitions.oneLine,
|
|
298
|
+
label: "携帯電話",
|
|
299
|
+
length: 13,
|
|
300
|
+
component: {
|
|
301
|
+
name: generalDefinitions.oneLine.component.name,
|
|
302
|
+
attrs: {
|
|
303
|
+
counter: true,
|
|
304
|
+
inputType: "tel",
|
|
305
|
+
},
|
|
306
|
+
},
|
|
307
|
+
},
|
|
296
308
|
name: {
|
|
297
309
|
...generalDefinitions.oneLine,
|
|
298
310
|
label: "名前",
|