cronofy-elements 1.41.0 → 1.44.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/Makefile +6 -12
- package/build/CronofyElements.v1.44.0.js +2 -0
- package/build/{CronofyElements.v1.41.0.js.LICENSE.txt → CronofyElements.v1.44.0.js.LICENSE.txt} +1 -1
- package/build/npm/CronofyElements.js +2 -2
- package/demo/date-time-picker.ejs +83 -23
- package/package.json +4 -4
- package/src/js/components/DateTimePicker/DateTimePicker.js +16 -2
- 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 +37 -8
- package/src/js/components/DateTimePicker/contexts/status-reducer.js +53 -9
- 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 +105 -2
- package/src/js/helpers/connections.js +38 -0
- package/src/js/helpers/init.DateTimePicker.js +4 -0
- 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 +378 -68
- package/tests/DateTimePicker/dummy-data.js +277 -0
- package/tests/DateTimePicker/utils.test.js +53 -1
- package/build/CronofyElements.v1.41.0.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"
|
package/Makefile
CHANGED
|
@@ -3,7 +3,7 @@ default: install dev
|
|
|
3
3
|
|
|
4
4
|
.PHONY: install
|
|
5
5
|
install:
|
|
6
|
-
|
|
6
|
+
yarn install
|
|
7
7
|
|
|
8
8
|
.PHONY: init
|
|
9
9
|
init: install
|
|
@@ -39,7 +39,7 @@ rebuild: clean build
|
|
|
39
39
|
|
|
40
40
|
.PHONY: ci
|
|
41
41
|
ci: clean
|
|
42
|
-
|
|
42
|
+
yarn install --frozen-lockfile
|
|
43
43
|
npm run test
|
|
44
44
|
|
|
45
45
|
.PHONY: test
|
|
@@ -70,24 +70,18 @@ build_dev:
|
|
|
70
70
|
|
|
71
71
|
.PHONY: bump_version
|
|
72
72
|
bump_patch:
|
|
73
|
-
|
|
73
|
+
yarn version --patch --no-git-tag-version
|
|
74
74
|
npm run build
|
|
75
|
-
git add .
|
|
76
|
-
git commit -m'version bump'
|
|
77
75
|
|
|
78
76
|
.PHONY: bump_minor
|
|
79
77
|
bump_minor:
|
|
80
|
-
|
|
78
|
+
yarn version --minor --no-git-tag-version
|
|
81
79
|
npm run build
|
|
82
|
-
git add .
|
|
83
|
-
git commit -m'version bump'
|
|
84
80
|
|
|
85
81
|
.PHONY: bump_major
|
|
86
|
-
bump_major:
|
|
87
|
-
|
|
82
|
+
bump_major: build
|
|
83
|
+
yarn version --major --no-git-tag-version
|
|
88
84
|
npm run build
|
|
89
|
-
git add .
|
|
90
|
-
git commit -m'version bump'
|
|
91
85
|
|
|
92
86
|
.PHONY: i18n-export
|
|
93
87
|
i18n-export:
|