@licklist/design 0.68.6-dev.2 → 0.68.7-dev.0
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/.prettierrc
CHANGED
|
@@ -79,11 +79,13 @@ var useWorkHoursValidation = function() {
|
|
|
79
79
|
var workHours = Array.from({
|
|
80
80
|
length: 7
|
|
81
81
|
}, function(_, i) {
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
82
|
+
var existing = _workHours.find(function(param) {
|
|
83
|
+
var day = param.day;
|
|
84
|
+
return day === i;
|
|
85
|
+
});
|
|
86
|
+
if (existing) return existing;
|
|
85
87
|
return {
|
|
86
|
-
day: i
|
|
88
|
+
day: i,
|
|
87
89
|
start: '00:00',
|
|
88
90
|
end: '23:59',
|
|
89
91
|
description: ''
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@licklist/design",
|
|
3
|
-
"version": "0.68.
|
|
3
|
+
"version": "0.68.7-dev.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+ssh://git@bitbucket.org/artelogicsoft/licklist_design.git"
|
|
@@ -206,6 +206,5 @@
|
|
|
206
206
|
"volta": {
|
|
207
207
|
"node": "20.9.0",
|
|
208
208
|
"yarn": "4.4.0"
|
|
209
|
-
}
|
|
210
|
-
"stableVersion": "0.66.7-dev.5"
|
|
209
|
+
}
|
|
211
210
|
}
|
|
@@ -127,12 +127,12 @@ export const useWorkHoursValidation = (
|
|
|
127
127
|
if (!_workHours) return {}
|
|
128
128
|
|
|
129
129
|
const workHours: WorkHour[] = Array.from({ length: 7 }, (_, i) => {
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
130
|
+
const existing = _workHours.find(({ day }) => day === i)
|
|
131
|
+
|
|
132
|
+
if (existing) return existing
|
|
133
133
|
|
|
134
134
|
return {
|
|
135
|
-
day:
|
|
135
|
+
day: i as Day,
|
|
136
136
|
start: '00:00',
|
|
137
137
|
end: '23:59',
|
|
138
138
|
description: '',
|
package/yarn.lock
CHANGED
|
@@ -14946,11 +14946,11 @@ __metadata:
|
|
|
14946
14946
|
linkType: hard
|
|
14947
14947
|
|
|
14948
14948
|
"nan@npm:^2.12.1":
|
|
14949
|
-
version: 2.
|
|
14950
|
-
resolution: "nan@npm:2.
|
|
14949
|
+
version: 2.21.0
|
|
14950
|
+
resolution: "nan@npm:2.21.0"
|
|
14951
14951
|
dependencies:
|
|
14952
14952
|
node-gyp: "npm:latest"
|
|
14953
|
-
checksum: 10c0/
|
|
14953
|
+
checksum: 10c0/cc3f89ca7dbba3413bed8f450284016af2d127ef7303e8cbcee5cb2a3ade989871ab7653fb36fffcddb3cde420a8279859cee4e4e9d64d4c1783e762b1f3237b
|
|
14954
14954
|
languageName: node
|
|
14955
14955
|
linkType: hard
|
|
14956
14956
|
|