@dexteel/mesf-core 4.16.0 → 4.16.5
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.
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
name: NPM Publish
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
pull_request:
|
|
5
|
+
types: [closed]
|
|
6
|
+
branches:
|
|
7
|
+
- master
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
publish:
|
|
11
|
+
if: github.event.pull_request.merged == true && startsWith(github.event.pull_request.head.ref, 'release-please')
|
|
12
|
+
runs-on: ubuntu-latest
|
|
13
|
+
steps:
|
|
14
|
+
- uses: actions/checkout@v4
|
|
15
|
+
|
|
16
|
+
- name: Setup Node.js
|
|
17
|
+
uses: actions/setup-node@v4
|
|
18
|
+
with:
|
|
19
|
+
node-version: 'lts/hydrogen' # Adjust this to your Node.js version
|
|
20
|
+
registry-url: 'https://registry.npmjs.org'
|
|
21
|
+
|
|
22
|
+
- name: Install dependencies
|
|
23
|
+
run: npm install
|
|
24
|
+
|
|
25
|
+
- name: Build
|
|
26
|
+
run: npm run build
|
|
27
|
+
|
|
28
|
+
- name: Publish to npm
|
|
29
|
+
run: npm publish
|
|
30
|
+
env:
|
|
31
|
+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
@@ -32,6 +32,12 @@ jobs:
|
|
|
32
32
|
jq ".version = \"${version}\"" "$file" > temp.json && mv temp.json "$file"
|
|
33
33
|
done
|
|
34
34
|
|
|
35
|
+
- name: Delete and regenerate package-lock.json
|
|
36
|
+
if: ${{ steps.release.outputs.release_created }}
|
|
37
|
+
run: |
|
|
38
|
+
find . -name "package-lock.json" -type f -delete
|
|
39
|
+
npm install
|
|
40
|
+
|
|
35
41
|
- name: Update CHANGELOG.md
|
|
36
42
|
if: ${{ steps.release.outputs.release_created }}
|
|
37
43
|
run: |
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,69 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## [4.16.5](https://github.com/dexteel/mesf-core-frontend/compare/@dexteel/mesf-core-v4.16.4...@dexteel/mesf-core-v4.16.5) (2024-07-12)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* **devops:** fix react17 typings resolutions ([b9424eb](https://github.com/dexteel/mesf-core-frontend/commit/b9424eb53494bbb67f8eb6a378c5ee45a24662d9))
|
|
9
|
+
|
|
10
|
+
## [4.16.4] - 2024-07-12
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# Changelog
|
|
15
|
+
|
|
16
|
+
## [4.16.4](https://github.com/dexteel/mesf-core-frontend/compare/@dexteel/mesf-core-v4.16.3...@dexteel/mesf-core-v4.16.4) (2024-07-12)
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Bug Fixes
|
|
20
|
+
|
|
21
|
+
* **devops:** force resolutions to react 17 ([9389a8b](https://github.com/dexteel/mesf-core-frontend/commit/9389a8b5e88bbf89fb0c7163abfb6d00af522eba))
|
|
22
|
+
|
|
23
|
+
## [4.16.3] - 2024-07-12
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
# Changelog
|
|
28
|
+
|
|
29
|
+
## [4.16.3](https://github.com/dexteel/mesf-core-frontend/compare/@dexteel/mesf-core-v4.16.2...@dexteel/mesf-core-v4.16.3) (2024-07-12)
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
### Bug Fixes
|
|
33
|
+
|
|
34
|
+
* **devops:** Fix dependencies install in GH ([92c21af](https://github.com/dexteel/mesf-core-frontend/commit/92c21af53c55f24f97996b10594f27a35826a2ee))
|
|
35
|
+
|
|
36
|
+
## [4.16.2] - 2024-07-12
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
# Changelog
|
|
41
|
+
|
|
42
|
+
## [4.16.2](https://github.com/dexteel/mesf-core-frontend/compare/@dexteel/mesf-core-v4.16.1...@dexteel/mesf-core-v4.16.2) (2024-07-12)
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
### Bug Fixes
|
|
46
|
+
|
|
47
|
+
* **ShiftNavigator:** Prohibit future dates. Disable Last Shift button when needed. ([2674206](https://github.com/dexteel/mesf-core-frontend/commit/267420648d95275ec79c3171d466f683cb0c7d61))
|
|
48
|
+
|
|
49
|
+
## [4.16.1] - 2024-07-08
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
# Changelog
|
|
54
|
+
|
|
55
|
+
## [4.16.1](https://github.com/dexteel/mesf-core-frontend/compare/@dexteel/mesf-core-v4.16.0...@dexteel/mesf-core-v4.16.1) (2024-07-08)
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
### Bug Fixes
|
|
59
|
+
|
|
60
|
+
* fire action in gh ([8af76ad](https://github.com/dexteel/mesf-core-frontend/commit/8af76adee23e4572cdfd5fe1d606afe2667bcd20))
|
|
61
|
+
* **Shift Navigator:** use router optionally ([395ed7d](https://github.com/dexteel/mesf-core-frontend/commit/395ed7d93188c3794679df0d55a81e85d3798b50))
|
|
62
|
+
|
|
63
|
+
## [4.16.0] - 2024-07-08
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
|
|
1
67
|
# Changelog
|
|
2
68
|
|
|
3
69
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
package/dist/index.esm.js
CHANGED
|
@@ -7753,7 +7753,9 @@ var ShiftDayNavigatorControl = function (props) {
|
|
|
7753
7753
|
window.history.replaceState(null, "", "/".concat(paths[1]) + "/".concat(shiftId));
|
|
7754
7754
|
};
|
|
7755
7755
|
if (shiftInfo !== null && shiftInfo.CurrentShiftId !== null) {
|
|
7756
|
-
|
|
7756
|
+
if (props.useRouter) {
|
|
7757
|
+
updateHistory(shiftInfo.CurrentShiftId.toString());
|
|
7758
|
+
}
|
|
7757
7759
|
}
|
|
7758
7760
|
useEffect(function () {
|
|
7759
7761
|
if (firstRender.current) {
|
|
@@ -7782,7 +7784,7 @@ var ShiftDayNavigatorControl = function (props) {
|
|
|
7782
7784
|
}, size: "small" },
|
|
7783
7785
|
React__default.createElement(ArrowBackRounded, null)))),
|
|
7784
7786
|
React__default.createElement(Grid, { item: true },
|
|
7785
|
-
React__default.createElement(DatePicker, { label: "Current Date", timezone: TimeService.getInstance().getServerTimeZone(), format: "MM/DD/YYYY", closeOnSelect: true, formatDensity: 'dense', value: moment(shiftInfo === null || shiftInfo === void 0 ? void 0 : shiftInfo.CurrentProductionDate), onChange: function (date) {
|
|
7787
|
+
React__default.createElement(DatePicker, { label: "Current Date", timezone: TimeService.getInstance().getServerTimeZone(), format: "MM/DD/YYYY", maxDate: moment(), closeOnSelect: true, formatDensity: 'dense', value: moment(shiftInfo === null || shiftInfo === void 0 ? void 0 : shiftInfo.CurrentProductionDate), onChange: function (date) {
|
|
7786
7788
|
if (date) {
|
|
7787
7789
|
getShiftDataFromAPI(date.toDate(), 0)
|
|
7788
7790
|
.then(function () {
|
|
@@ -7812,7 +7814,7 @@ var ShiftDayNavigatorControl = function (props) {
|
|
|
7812
7814
|
React__default.createElement(ArrowForwardRounded, null)))),
|
|
7813
7815
|
React__default.createElement(Grid, { item: true },
|
|
7814
7816
|
React__default.createElement(Tooltip, { title: 'Last Shift' },
|
|
7815
|
-
React__default.createElement(IconButton$1, { "aria-label": "delete", color: 'primary', disabled: !(shiftInfo === null || shiftInfo === void 0 ? void 0 : shiftInfo.LastShiftId), onClick: function () {
|
|
7817
|
+
React__default.createElement(IconButton$1, { "aria-label": "delete", color: 'primary', disabled: !(shiftInfo === null || shiftInfo === void 0 ? void 0 : shiftInfo.LastShiftId) || !(shiftInfo === null || shiftInfo === void 0 ? void 0 : shiftInfo.NextShiftId), onClick: function () {
|
|
7816
7818
|
moveShift("Last").then(function () {
|
|
7817
7819
|
});
|
|
7818
7820
|
}, size: "small" },
|