ui-soxo-bootstrap-core 2.6.1-dev.7 → 2.6.2
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/.github/workflows/npm-publish.yml +19 -49
- package/core/components/external-window/DEVELOPER_GUIDE.md +705 -0
- package/core/components/menu-template-api/menu-template-api.js +2 -2
- package/core/lib/elements/basic/country-phone-input/country-phone-input.js +57 -26
- package/core/lib/elements/basic/country-phone-input/phone-input.scss +0 -14
- package/core/lib/models/forms/components/form-creator/form-creator.js +502 -468
- package/core/lib/pages/change-password/change-password.js +14 -24
- package/core/lib/pages/login/login.js +10 -33
- package/core/lib/pages/login/reset-password.js +13 -12
- package/core/lib/utils/api/api.utils.js +39 -50
- package/core/lib/utils/common/common.utils.js +0 -24
- package/core/lib/utils/http/http.utils.js +1 -0
- package/core/lib/utils/index.js +28 -22
- package/core/models/base/base.js +3 -7
- package/core/models/menus/components/menu-lists/menu-lists.js +2 -2
- package/core/models/menus/menus.js +4 -15
- package/core/models/roles/roles.js +0 -9
- package/core/models/users/components/assign-role/assign-role.js +50 -138
- package/core/models/users/components/assign-role/assign-role.scss +45 -189
- package/core/models/users/components/user-add/user-add.js +10 -13
- package/core/models/users/components/user-add/user-edit.js +1 -8
- package/core/models/users/users.js +8 -24
- package/core/modules/reporting/components/reporting-dashboard/reporting-dashboard.js +26 -59
- package/core/modules/steps/action-buttons.js +1 -5
- package/package.json +2 -2
- package/core/models/users/components/assign-role/avatar-props.js +0 -45
|
@@ -1,63 +1,33 @@
|
|
|
1
1
|
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
|
|
2
2
|
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
|
|
3
3
|
|
|
4
|
-
name:
|
|
4
|
+
name: Node.js Package
|
|
5
5
|
|
|
6
6
|
on:
|
|
7
7
|
release:
|
|
8
8
|
types: [created]
|
|
9
9
|
|
|
10
|
-
permissions:
|
|
11
|
-
contents: read
|
|
12
|
-
id-token: write # REQUIRED for OIDC
|
|
13
|
-
|
|
14
10
|
jobs:
|
|
15
|
-
|
|
11
|
+
build:
|
|
16
12
|
runs-on: ubuntu-latest
|
|
17
|
-
|
|
18
13
|
steps:
|
|
19
|
-
|
|
20
|
-
-
|
|
21
|
-
|
|
14
|
+
- uses: actions/checkout@v3
|
|
15
|
+
- uses: actions/setup-node@v3
|
|
16
|
+
with:
|
|
17
|
+
node-version: 16
|
|
18
|
+
- run: npm i
|
|
19
|
+
# - run: npm test
|
|
22
20
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
21
|
+
publish-npm:
|
|
22
|
+
needs: build
|
|
23
|
+
runs-on: ubuntu-latest
|
|
24
|
+
steps:
|
|
25
|
+
- uses: actions/checkout@v3
|
|
26
|
+
- uses: actions/setup-node@v3
|
|
27
27
|
with:
|
|
28
|
-
node-version:
|
|
28
|
+
node-version: 16
|
|
29
29
|
registry-url: https://registry.npmjs.org/
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
run: npm ci
|
|
35
|
-
|
|
36
|
-
# 4. Verify git tag matches package.json version
|
|
37
|
-
# This prevents publishing the wrong version
|
|
38
|
-
- name: Verify tag matches package.json version
|
|
39
|
-
run: |
|
|
40
|
-
TAG="${{ github.event.release.tag_name }}"
|
|
41
|
-
VERSION=$(node -p "require('./package.json').version")
|
|
42
|
-
|
|
43
|
-
echo "Release tag: $TAG"
|
|
44
|
-
echo "Package version: $VERSION"
|
|
45
|
-
|
|
46
|
-
if [[ "$TAG" != "v$VERSION"* ]]; then
|
|
47
|
-
echo "::error::Release tag does not match package.json version"
|
|
48
|
-
exit 1
|
|
49
|
-
fi
|
|
50
|
-
|
|
51
|
-
# 5. Publish using OIDC (NO TOKEN)
|
|
52
|
-
# --provenance triggers GitHub → npm identity verification
|
|
53
|
-
- name: Publish to npm (OIDC)
|
|
54
|
-
run: |
|
|
55
|
-
TAG="${{ github.event.release.tag_name }}"
|
|
56
|
-
|
|
57
|
-
if [[ "$TAG" == *"dev"* ]]; then
|
|
58
|
-
echo "Publishing dev release"
|
|
59
|
-
npm publish --tag dev --provenance
|
|
60
|
-
else
|
|
61
|
-
echo "Publishing stable release"
|
|
62
|
-
npm publish --provenance
|
|
63
|
-
fi
|
|
30
|
+
- run: npm i
|
|
31
|
+
- run: npm publish
|
|
32
|
+
env:
|
|
33
|
+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
|