cronofy-elements 1.40.2 → 1.43.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/.eslintrc.yaml +31 -30
- package/build/CronofyElements.v1.43.0.js +2 -0
- package/build/{CronofyElements.v1.40.2.js.LICENSE.txt → CronofyElements.v1.43.0.js.LICENSE.txt} +0 -0
- package/build/npm/CronofyElements.js +2 -2
- package/demo/date-time-picker.ejs +74 -0
- package/package.json +1 -1
- package/src/js/components/DateTimePicker/CalendarHeader.js +21 -14
- package/src/js/components/DateTimePicker/DateTimePicker.js +34 -10
- package/src/js/components/DateTimePicker/Details.js +5 -3
- package/src/js/components/DateTimePicker/LoadingCalendar.js +21 -0
- package/src/js/components/DateTimePicker/SequencedSlotButton.js +71 -0
- package/src/js/components/DateTimePicker/SlotsList.js +6 -1
- package/src/js/components/DateTimePicker/Wrapper.js +78 -23
- package/src/js/components/DateTimePicker/contexts/status-reducer.js +69 -28
- package/src/js/components/DateTimePicker/scss/_components.loading.scss +10 -0
- package/src/js/components/DateTimePicker/utils/calendar.js +23 -0
- package/src/js/components/DateTimePicker/utils/slots.js +115 -5
- package/src/js/helpers/connections.js +38 -0
- package/src/js/helpers/init.DateTimePicker.js +65 -2
- package/src/js/translations/en/date_time_picker.json +1 -0
- package/tests/DateTimePicker/SequencedSlotButton.test.js +130 -0
- package/tests/DateTimePicker/contexts/status-reducer.test.js +497 -187
- package/tests/DateTimePicker/dummy-data.js +277 -0
- package/tests/DateTimePicker/utils.test.js +53 -1
- package/build/CronofyElements.v1.40.2.js +0 -2
package/.eslintrc.yaml
CHANGED
|
@@ -2,41 +2,42 @@
|
|
|
2
2
|
parser: "babel-eslint"
|
|
3
3
|
|
|
4
4
|
extends:
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
- "eslint:recommended"
|
|
6
|
+
- "plugin:jsx-a11y/recommended"
|
|
7
7
|
|
|
8
8
|
plugins:
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
9
|
+
- import
|
|
10
|
+
- unused-imports
|
|
11
|
+
- jsx-a11y
|
|
12
|
+
- react
|
|
13
|
+
- prettier
|
|
14
14
|
|
|
15
15
|
parserOptions:
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
ecmaVersion: 6
|
|
17
|
+
sourceType: "module"
|
|
18
|
+
ecmaFeatures:
|
|
19
|
+
jsx: true
|
|
20
20
|
|
|
21
21
|
env:
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
browser: true
|
|
23
|
+
node: true
|
|
24
|
+
es6: true
|
|
25
|
+
jest: true
|
|
25
26
|
|
|
26
27
|
rules:
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
28
|
+
react/jsx-uses-react: "error"
|
|
29
|
+
react/jsx-uses-vars: "error"
|
|
30
|
+
import/imports-first: "error"
|
|
31
|
+
import/newline-after-import: "error"
|
|
32
|
+
import/no-dynamic-require: "off"
|
|
33
|
+
import/no-extraneous-dependencies: "error"
|
|
34
|
+
import/no-named-as-default: "off"
|
|
35
|
+
import/no-unresolved: "error"
|
|
36
|
+
import/no-webpack-loader-syntax: "error"
|
|
37
|
+
import/prefer-default-export: "off"
|
|
38
|
+
prettier/prettier: "error"
|
|
39
|
+
unused-imports/no-unused-imports: "warn"
|
|
40
|
+
no-unused-vars: "off"
|
|
41
|
+
no-case-declarations: "off"
|
|
42
|
+
no-prototype-builtins: "off"
|
|
43
|
+
no-extra-boolean-cast: "off"
|