@01-edu/shared 1.1.8 → 1.1.9
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/attrs-defs.js +19 -27
- package/package.json +1 -1
package/attrs-defs.js
CHANGED
|
@@ -3670,36 +3670,28 @@ types.timelineChunk = TypeObject({
|
|
|
3670
3670
|
}
|
|
3671
3671
|
},
|
|
3672
3672
|
}),
|
|
3673
|
-
|
|
3674
|
-
label: '
|
|
3673
|
+
skills: TypeObject({
|
|
3674
|
+
label: 'List of developed skills',
|
|
3675
3675
|
editable: true,
|
|
3676
|
-
|
|
3677
|
-
|
|
3678
|
-
|
|
3676
|
+
required: true,
|
|
3677
|
+
value: {},
|
|
3678
|
+
type: mapValues(
|
|
3679
|
+
skillsSet,
|
|
3680
|
+
({ name, type: instruction, description }) => ({
|
|
3681
|
+
label: name,
|
|
3682
|
+
instruction,
|
|
3683
|
+
description,
|
|
3679
3684
|
editable: true,
|
|
3680
|
-
|
|
3681
|
-
|
|
3685
|
+
type: 'number',
|
|
3686
|
+
value: 1,
|
|
3687
|
+
options: arrayOf(100, 1),
|
|
3688
|
+
check: amount => checkIntegerInBetween(amount, 1, 100),
|
|
3682
3689
|
}),
|
|
3683
|
-
|
|
3684
|
-
|
|
3685
|
-
|
|
3686
|
-
|
|
3687
|
-
|
|
3688
|
-
type: [
|
|
3689
|
-
Literal('', {
|
|
3690
|
-
label: 'Skill developed',
|
|
3691
|
-
editable: true,
|
|
3692
|
-
required: true,
|
|
3693
|
-
// check: value => checkNotEmpty(value), // cannot check not empty if def value is empty
|
|
3694
|
-
}),
|
|
3695
|
-
],
|
|
3696
|
-
check: list => {
|
|
3697
|
-
if (!list?.length || !Array.isArray(list)) {
|
|
3698
|
-
throw Error('Must be a non empty array')
|
|
3699
|
-
}
|
|
3700
|
-
},
|
|
3701
|
-
},
|
|
3702
|
-
},
|
|
3690
|
+
),
|
|
3691
|
+
}),
|
|
3692
|
+
notes: Literal('', {
|
|
3693
|
+
label: 'Other qualitative notes',
|
|
3694
|
+
editable: true,
|
|
3703
3695
|
}),
|
|
3704
3696
|
},
|
|
3705
3697
|
})
|