sdga-ui 1.0.8 → 1.0.9
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/css/dga-ui.css +16 -2
- package/css/dga-ui.css.map +1 -1
- package/package.json +20 -4
- package/theme/customizations/_links.scss +22 -21
- package/.editorconfig +0 -23
- package/.github/workflows/deploy.yml +0 -71
- package/.github/workflows/publish.yml +0 -36
- package/.prettierignore +0 -73
- package/.prettierrc +0 -17
- package/demo-angular/.editorconfig +0 -17
- package/demo-angular/.vscode/extensions.json +0 -4
- package/demo-angular/.vscode/launch.json +0 -20
- package/demo-angular/.vscode/tasks.json +0 -42
- package/demo-angular/README.md +0 -91
- package/demo-angular/angular.json +0 -96
- package/demo-angular/package-lock.json +0 -10600
- package/demo-angular/package.json +0 -53
- package/demo-angular/public/404.html +0 -35
- package/demo-angular/public/favicon.ico +0 -0
- package/demo-angular/public/i18n/ar.json +0 -289
- package/demo-angular/public/i18n/en.json +0 -289
- package/demo-angular/src/app/app.config.ts +0 -20
- package/demo-angular/src/app/app.html +0 -52
- package/demo-angular/src/app/app.routes.ts +0 -49
- package/demo-angular/src/app/app.scss +0 -430
- package/demo-angular/src/app/app.spec.ts +0 -23
- package/demo-angular/src/app/app.ts +0 -97
- package/demo-angular/src/app/shared/code-example/code-example.component.html +0 -30
- package/demo-angular/src/app/shared/code-example/code-example.component.scss +0 -183
- package/demo-angular/src/app/shared/code-example/code-example.component.ts +0 -89
- package/demo-angular/src/app/views/alerts/alerts.component.html +0 -155
- package/demo-angular/src/app/views/alerts/alerts.component.scss +0 -3
- package/demo-angular/src/app/views/alerts/alerts.component.ts +0 -134
- package/demo-angular/src/app/views/buttons/buttons.component.html +0 -360
- package/demo-angular/src/app/views/buttons/buttons.component.scss +0 -11
- package/demo-angular/src/app/views/buttons/buttons.component.ts +0 -225
- package/demo-angular/src/app/views/cards/cards.component.html +0 -156
- package/demo-angular/src/app/views/cards/cards.component.html.backup +0 -156
- package/demo-angular/src/app/views/cards/cards.component.scss +0 -11
- package/demo-angular/src/app/views/cards/cards.component.ts +0 -194
- package/demo-angular/src/app/views/footer/footer.html +0 -270
- package/demo-angular/src/app/views/footer/footer.ts +0 -276
- package/demo-angular/src/app/views/forms/forms.component.html +0 -347
- package/demo-angular/src/app/views/forms/forms.component.scss +0 -3
- package/demo-angular/src/app/views/forms/forms.component.ts +0 -222
- package/demo-angular/src/app/views/header/header.html +0 -1
- package/demo-angular/src/app/views/header/header.scss +0 -0
- package/demo-angular/src/app/views/header/header.spec.ts +0 -23
- package/demo-angular/src/app/views/header/header.ts +0 -11
- package/demo-angular/src/app/views/home/home.component.html +0 -33
- package/demo-angular/src/app/views/home/home.component.scss +0 -35
- package/demo-angular/src/app/views/home/home.component.ts +0 -12
- package/demo-angular/src/app/views/links/links.component.html +0 -21
- package/demo-angular/src/app/views/links/links.component.scss +0 -11
- package/demo-angular/src/app/views/links/links.component.ts +0 -19
- package/demo-angular/src/app/views/tables/tables.component.html +0 -289
- package/demo-angular/src/app/views/tables/tables.component.scss +0 -3
- package/demo-angular/src/app/views/tables/tables.component.ts +0 -278
- package/demo-angular/src/app/views/toasts/toasts.component.html +0 -201
- package/demo-angular/src/app/views/toasts/toasts.component.scss +0 -0
- package/demo-angular/src/app/views/toasts/toasts.component.ts +0 -182
- package/demo-angular/src/index.html +0 -28
- package/demo-angular/src/main.ts +0 -6
- package/demo-angular/src/styles.scss +0 -4
- package/demo-angular/tsconfig.app.json +0 -16
- package/demo-angular/tsconfig.json +0 -33
- package/demo-angular/tsconfig.spec.json +0 -15
- package/sdga-ui/README.md +0 -45
- package/sdga-ui/content/docs/components/alerts.mdx +0 -475
- package/sdga-ui/content/docs/index.mdx +0 -239
- package/sdga-ui/next.config.mjs +0 -10
- package/sdga-ui/package-lock.json +0 -5851
- package/sdga-ui/package.json +0 -32
- package/sdga-ui/postcss.config.mjs +0 -5
- package/sdga-ui/source.config.ts +0 -27
- package/sdga-ui/src/app/(home)/layout.tsx +0 -6
- package/sdga-ui/src/app/(home)/page.tsx +0 -202
- package/sdga-ui/src/app/api/search/route.ts +0 -7
- package/sdga-ui/src/app/docs/[[...slug]]/page.tsx +0 -54
- package/sdga-ui/src/app/docs/layout.tsx +0 -11
- package/sdga-ui/src/app/global.css +0 -3
- package/sdga-ui/src/app/layout.tsx +0 -25
- package/sdga-ui/src/app/llms-full.txt/route.ts +0 -10
- package/sdga-ui/src/app/og/docs/[...slug]/route.tsx +0 -34
- package/sdga-ui/src/app/sdga-scoped.css +0 -7
- package/sdga-ui/src/components/sdga-preview.tsx +0 -105
- package/sdga-ui/src/lib/layout.shared.tsx +0 -9
- package/sdga-ui/src/lib/source.ts +0 -27
- package/sdga-ui/src/mdx-components.tsx +0 -9
- package/sdga-ui/tsconfig.json +0 -46
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sdga-ui",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.9",
|
|
4
4
|
"description": "DGA UI - Government-Style Bootstrap Theme",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"sdga",
|
|
@@ -26,24 +26,40 @@
|
|
|
26
26
|
"author": "Mahmoud Adel",
|
|
27
27
|
"type": "module",
|
|
28
28
|
"main": "index.js",
|
|
29
|
+
"exports": {
|
|
30
|
+
".": "./index.js",
|
|
31
|
+
"./css/dga-ui.css": "./css/dga-ui.css",
|
|
32
|
+
"./css/*": "./css/*",
|
|
33
|
+
"./fonts/*": "./fonts/*",
|
|
34
|
+
"./theme/*": "./theme/*"
|
|
35
|
+
},
|
|
36
|
+
"files": [
|
|
37
|
+
"css",
|
|
38
|
+
"fonts",
|
|
39
|
+
"theme",
|
|
40
|
+
"README.md",
|
|
41
|
+
"LICENSE"
|
|
42
|
+
],
|
|
29
43
|
"scripts": {
|
|
30
44
|
"test": "echo \"No tests yet\" && exit 0",
|
|
31
45
|
"format": "prettier --write \"**/*.{js,json,md,css,scss}\"",
|
|
32
46
|
"format:check": "prettier --check \"**/*.{js,json,md,css,scss}\"",
|
|
33
47
|
"build-css": "sass --load-path=node_modules theme/dga-ui.scss css/dga-ui.css",
|
|
34
48
|
"watch-css": "sass --load-path=node_modules --watch theme/dga-ui.scss css/dga-ui.css",
|
|
35
|
-
"update-
|
|
49
|
+
"update-docs-version": "node -e \"const fs=require('fs');const pkg=JSON.parse(fs.readFileSync('package.json'));const docsPkg=JSON.parse(fs.readFileSync('docs/package.json'));docsPkg.version=pkg.version;fs.writeFileSync('docs/package.json',JSON.stringify(docsPkg,null,2)+'\\n');console.log('Synced docs version to',pkg.version);\"",
|
|
36
50
|
"prepublishOnly": "npm run build-css",
|
|
37
51
|
"preversion": "npm run build-css",
|
|
38
|
-
"version": "npm run update-
|
|
52
|
+
"version": "npm run update-docs-version && git add .",
|
|
39
53
|
"postversion": "git push --follow-tags"
|
|
40
54
|
},
|
|
41
55
|
"peerDependencies": {
|
|
42
|
-
"bootstrap": "^5.3.8"
|
|
56
|
+
"bootstrap": "^5.3.8",
|
|
57
|
+
"bootstrap-icons": "^1.13.1"
|
|
43
58
|
},
|
|
44
59
|
"devDependencies": {
|
|
45
60
|
"autoprefixer": "^10.4.19",
|
|
46
61
|
"bootstrap": "^5.3.8",
|
|
62
|
+
"bootstrap-icons": "^1.13.1",
|
|
47
63
|
"postcss": "^8.4.38",
|
|
48
64
|
"prettier": "^3.7.3",
|
|
49
65
|
"sass": "^1.69.5"
|
|
@@ -7,37 +7,33 @@
|
|
|
7
7
|
|
|
8
8
|
// Define link color variants with their shades
|
|
9
9
|
$link-variants: (
|
|
10
|
-
"primary": (
|
|
11
|
-
base: rgba($primary-600, var(--#{$prefix}link-opacity, 1)),
|
|
10
|
+
"primary": (base: rgba($primary-600, var(--#{$prefix}link-opacity, 1)),
|
|
12
11
|
base-decoration: rgba($primary-600, var(--#{$prefix}link-decoration-opacity, 1)),
|
|
13
12
|
hover: rgba($primary-400, var(--#{$prefix}link-opacity, 1)),
|
|
14
13
|
hover-decoration: rgba($primary-400, var(--#{$prefix}link-decoration-opacity, 1)),
|
|
15
14
|
active: rgba($primary-300, var(--#{$prefix}link-opacity, 1)),
|
|
16
|
-
active-decoration: rgba($primary-300, var(--#{$prefix}link-decoration-opacity, 1))
|
|
17
|
-
"neutral": (
|
|
18
|
-
base: rgba($neutral-700, var(--#{$prefix}link-opacity, 1)),
|
|
15
|
+
active-decoration: rgba($primary-300, var(--#{$prefix}link-decoration-opacity, 1))),
|
|
16
|
+
"neutral": (base: rgba($neutral-700, var(--#{$prefix}link-opacity, 1)),
|
|
19
17
|
base-decoration: rgba($neutral-700, var(--#{$prefix}link-decoration-opacity, 1)),
|
|
20
18
|
hover: rgba($neutral-500, var(--#{$prefix}link-opacity, 1)),
|
|
21
19
|
hover-decoration: rgba($neutral-500, var(--#{$prefix}link-decoration-opacity, 1)),
|
|
22
20
|
active: rgba($neutral-400, var(--#{$prefix}link-opacity, 1)),
|
|
23
|
-
active-decoration: rgba($neutral-400, var(--#{$prefix}link-decoration-opacity, 1))
|
|
21
|
+
active-decoration: rgba($neutral-400, var(--#{$prefix}link-decoration-opacity, 1)))
|
|
24
22
|
);
|
|
25
23
|
|
|
26
24
|
$on-primary-link-variants: (
|
|
27
|
-
"primary": (
|
|
28
|
-
base: rgba($white, var(--#{$prefix}link-opacity, 1)),
|
|
25
|
+
"primary": (base: rgba($white, var(--#{$prefix}link-opacity, 1)),
|
|
29
26
|
base-decoration: rgba($white, var(--#{$prefix}link-decoration-opacity, 1)),
|
|
30
27
|
hover: rgba($white, var(--#{$prefix}link-opacity, 0.8)),
|
|
31
28
|
hover-decoration: rgba($white, var(--#{$prefix}link-decoration-opacity, 0.8)),
|
|
32
29
|
active: rgba($white, var(--#{$prefix}link-opacity, 0.6)),
|
|
33
|
-
active-decoration: rgba($white, var(--#{$prefix}link-decoration-opacity, 0.6))
|
|
34
|
-
"neutral": (
|
|
35
|
-
base: rgba($white, var(--#{$prefix}link-opacity, 1)),
|
|
30
|
+
active-decoration: rgba($white, var(--#{$prefix}link-decoration-opacity, 0.6))),
|
|
31
|
+
"neutral": (base: rgba($white, var(--#{$prefix}link-opacity, 1)),
|
|
36
32
|
base-decoration: rgba($white, var(--#{$prefix}link-decoration-opacity, 1)),
|
|
37
33
|
hover: rgba($white, var(--#{$prefix}link-opacity, 0.8)),
|
|
38
34
|
hover-decoration: rgba($white, var(--#{$prefix}link-decoration-opacity, 0.8)),
|
|
39
35
|
active: rgba($white, var(--#{$prefix}link-opacity, 0.6)),
|
|
40
|
-
active-decoration: rgba($white, var(--#{$prefix}link-decoration-opacity, 0.6))
|
|
36
|
+
active-decoration: rgba($white, var(--#{$prefix}link-decoration-opacity, 0.6)))
|
|
41
37
|
);
|
|
42
38
|
|
|
43
39
|
// Generate link variant classes
|
|
@@ -63,10 +59,16 @@ $on-primary-link-variants: (
|
|
|
63
59
|
color: map-get($colors, active) !important;
|
|
64
60
|
text-decoration-color: map-get($colors, active-decoration) !important;
|
|
65
61
|
}
|
|
62
|
+
|
|
63
|
+
&.disabled {
|
|
64
|
+
color: rgba($gray-400, var(--#{$prefix}link-opacity, 1)) !important;
|
|
65
|
+
text-decoration-color: rgba($gray-400, var(--#{$prefix}link-opacity, 1)) !important;
|
|
66
|
+
pointer-events: none;
|
|
67
|
+
}
|
|
66
68
|
}
|
|
67
69
|
}
|
|
68
70
|
|
|
69
|
-
.on-primary
|
|
71
|
+
.on-primary {
|
|
70
72
|
@each $name, $colors in $on-primary-link-variants {
|
|
71
73
|
.link-#{$name} {
|
|
72
74
|
color: map-get($colors, base) !important;
|
|
@@ -88,13 +90,12 @@ $on-primary-link-variants: (
|
|
|
88
90
|
color: map-get($colors, active) !important;
|
|
89
91
|
text-decoration-color: map-get($colors, active-decoration) !important;
|
|
90
92
|
}
|
|
93
|
+
|
|
94
|
+
&.disabled {
|
|
95
|
+
color: rgba($gray-400, var(--#{$prefix}link-opacity, 1)) !important;
|
|
96
|
+
text-decoration-color: rgba($gray-400, var(--#{$prefix}link-opacity, 1)) !important;
|
|
97
|
+
pointer-events: none;
|
|
98
|
+
}
|
|
91
99
|
}
|
|
92
100
|
}
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
a.disabled {
|
|
96
|
-
color: rgba($gray-400, var(--#{$prefix}link-opacity, 1)) !important;
|
|
97
|
-
text-decoration-color: rgba($gray-400, var(--#{$prefix}link-opacity, 1)) !important;
|
|
98
|
-
pointer-events: none;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
+
}
|
package/.editorconfig
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
# EditorConfig is awesome: https://EditorConfig.org
|
|
2
|
-
|
|
3
|
-
# top-most EditorConfig file
|
|
4
|
-
root = true
|
|
5
|
-
|
|
6
|
-
# Unix-style newlines with a newline ending every file
|
|
7
|
-
[*]
|
|
8
|
-
end_of_line = lf
|
|
9
|
-
insert_final_newline = true
|
|
10
|
-
charset = utf-8
|
|
11
|
-
trim_trailing_whitespace = true
|
|
12
|
-
|
|
13
|
-
# Matches multiple files with brace expansion notation
|
|
14
|
-
[*.{js,jsx,ts,tsx,json,css,scss,md,html,yml,yaml}]
|
|
15
|
-
indent_style = space
|
|
16
|
-
indent_size = 2
|
|
17
|
-
|
|
18
|
-
[*.md]
|
|
19
|
-
trim_trailing_whitespace = false
|
|
20
|
-
max_line_length = off
|
|
21
|
-
|
|
22
|
-
[Makefile]
|
|
23
|
-
indent_style = tab
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
name: Deploy to GitHub Pages
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
tags:
|
|
6
|
-
- 'v*'
|
|
7
|
-
workflow_dispatch:
|
|
8
|
-
|
|
9
|
-
permissions:
|
|
10
|
-
contents: read
|
|
11
|
-
pages: write
|
|
12
|
-
id-token: write
|
|
13
|
-
|
|
14
|
-
concurrency:
|
|
15
|
-
group: "pages"
|
|
16
|
-
cancel-in-progress: false
|
|
17
|
-
|
|
18
|
-
jobs:
|
|
19
|
-
build:
|
|
20
|
-
runs-on: ubuntu-latest
|
|
21
|
-
|
|
22
|
-
steps:
|
|
23
|
-
- name: Checkout
|
|
24
|
-
uses: actions/checkout@v4
|
|
25
|
-
|
|
26
|
-
- name: Setup Node.js
|
|
27
|
-
uses: actions/setup-node@v4
|
|
28
|
-
with:
|
|
29
|
-
node-version: '20'
|
|
30
|
-
|
|
31
|
-
- name: Wait for npm publish
|
|
32
|
-
run: |
|
|
33
|
-
VERSION=$(node -p "require('./package.json').version")
|
|
34
|
-
echo "Waiting for sdga-ui@$VERSION to be available on npm..."
|
|
35
|
-
for i in {1..30}; do
|
|
36
|
-
if npm view sdga-ui@$VERSION version 2>/dev/null; then
|
|
37
|
-
echo "Package sdga-ui@$VERSION is now available!"
|
|
38
|
-
exit 0
|
|
39
|
-
fi
|
|
40
|
-
echo "Attempt $i/30: Package not yet available, waiting 10 seconds..."
|
|
41
|
-
sleep 10
|
|
42
|
-
done
|
|
43
|
-
echo "Warning: Package may not be available yet, proceeding anyway..."
|
|
44
|
-
|
|
45
|
-
- name: Install dependencies
|
|
46
|
-
working-directory: ./demo-angular
|
|
47
|
-
run: npm run use:npm
|
|
48
|
-
|
|
49
|
-
- name: Build Angular app
|
|
50
|
-
working-directory: ./demo-angular
|
|
51
|
-
run: npm run build:prod
|
|
52
|
-
|
|
53
|
-
- name: Setup Pages
|
|
54
|
-
uses: actions/configure-pages@v4
|
|
55
|
-
|
|
56
|
-
- name: Upload artifact
|
|
57
|
-
uses: actions/upload-pages-artifact@v3
|
|
58
|
-
with:
|
|
59
|
-
path: './demo-angular/dist/demo-angular/browser'
|
|
60
|
-
|
|
61
|
-
deploy:
|
|
62
|
-
environment:
|
|
63
|
-
name: github-pages
|
|
64
|
-
url: ${{ steps.deployment.outputs.page_url }}
|
|
65
|
-
runs-on: ubuntu-latest
|
|
66
|
-
needs: build
|
|
67
|
-
|
|
68
|
-
steps:
|
|
69
|
-
- name: Deploy to GitHub Pages
|
|
70
|
-
id: deployment
|
|
71
|
-
uses: actions/deploy-pages@v4
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
name: Publish to npm
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
tags:
|
|
6
|
-
- 'v*'
|
|
7
|
-
|
|
8
|
-
jobs:
|
|
9
|
-
build-and-publish:
|
|
10
|
-
runs-on: ubuntu-latest
|
|
11
|
-
permissions:
|
|
12
|
-
id-token: write # Required for OIDC
|
|
13
|
-
contents: read
|
|
14
|
-
|
|
15
|
-
steps:
|
|
16
|
-
- name: Checkout code
|
|
17
|
-
uses: actions/checkout@v4
|
|
18
|
-
|
|
19
|
-
- name: Set up Node.js
|
|
20
|
-
uses: actions/setup-node@v4
|
|
21
|
-
with:
|
|
22
|
-
node-version: 20
|
|
23
|
-
registry-url: 'https://registry.npmjs.org/'
|
|
24
|
-
|
|
25
|
-
- name: Update npm
|
|
26
|
-
run: npm install -g npm@latest
|
|
27
|
-
|
|
28
|
-
- name: Install dependencies
|
|
29
|
-
run: npm install
|
|
30
|
-
|
|
31
|
-
- name: Build CSS
|
|
32
|
-
run: npm run build-css
|
|
33
|
-
|
|
34
|
-
# Trusted Publishing doesn't need NODE_AUTH_TOKEN
|
|
35
|
-
- name: Publish package to npm
|
|
36
|
-
run: npm publish --access public
|
package/.prettierignore
DELETED
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
# Dependencies
|
|
2
|
-
node_modules
|
|
3
|
-
bower_components
|
|
4
|
-
|
|
5
|
-
# Production builds
|
|
6
|
-
dist
|
|
7
|
-
build
|
|
8
|
-
out
|
|
9
|
-
.next
|
|
10
|
-
.nuxt
|
|
11
|
-
.cache
|
|
12
|
-
.parcel-cache
|
|
13
|
-
|
|
14
|
-
# Package files
|
|
15
|
-
*.min.js
|
|
16
|
-
*.min.css
|
|
17
|
-
package-lock.json
|
|
18
|
-
yarn.lock
|
|
19
|
-
pnpm-lock.yaml
|
|
20
|
-
|
|
21
|
-
# Logs
|
|
22
|
-
logs
|
|
23
|
-
*.log
|
|
24
|
-
npm-debug.log*
|
|
25
|
-
yarn-debug.log*
|
|
26
|
-
yarn-error.log*
|
|
27
|
-
|
|
28
|
-
# Coverage and test reports
|
|
29
|
-
coverage
|
|
30
|
-
.nyc_output
|
|
31
|
-
*.lcov
|
|
32
|
-
|
|
33
|
-
# Environment and config
|
|
34
|
-
.env
|
|
35
|
-
.env.local
|
|
36
|
-
.env.*.local
|
|
37
|
-
|
|
38
|
-
# Git
|
|
39
|
-
.git
|
|
40
|
-
.gitignore
|
|
41
|
-
|
|
42
|
-
# IDE and editors
|
|
43
|
-
.vscode
|
|
44
|
-
.idea
|
|
45
|
-
*.swp
|
|
46
|
-
*.swo
|
|
47
|
-
*~
|
|
48
|
-
|
|
49
|
-
# OS files
|
|
50
|
-
.DS_Store
|
|
51
|
-
Thumbs.db
|
|
52
|
-
|
|
53
|
-
# Documentation
|
|
54
|
-
CHANGELOG.md
|
|
55
|
-
LICENSE
|
|
56
|
-
|
|
57
|
-
# Generated files
|
|
58
|
-
*.generated.*
|
|
59
|
-
*.bundle.*
|
|
60
|
-
|
|
61
|
-
# Assets
|
|
62
|
-
*.png
|
|
63
|
-
*.jpg
|
|
64
|
-
*.jpeg
|
|
65
|
-
*.gif
|
|
66
|
-
*.svg
|
|
67
|
-
*.ico
|
|
68
|
-
*.pdf
|
|
69
|
-
*.woff
|
|
70
|
-
*.woff2
|
|
71
|
-
*.ttf
|
|
72
|
-
*.eot
|
|
73
|
-
*.otf
|
package/.prettierrc
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"semi": true,
|
|
3
|
-
"trailingComma": "es5",
|
|
4
|
-
"singleQuote": true,
|
|
5
|
-
"printWidth": 100,
|
|
6
|
-
"tabWidth": 2,
|
|
7
|
-
"useTabs": false,
|
|
8
|
-
"arrowParens": "avoid",
|
|
9
|
-
"bracketSpacing": true,
|
|
10
|
-
"endOfLine": "lf",
|
|
11
|
-
"quoteProps": "as-needed",
|
|
12
|
-
"jsxSingleQuote": false,
|
|
13
|
-
"bracketSameLine": false,
|
|
14
|
-
"proseWrap": "preserve",
|
|
15
|
-
"htmlWhitespaceSensitivity": "css",
|
|
16
|
-
"embeddedLanguageFormatting": "auto"
|
|
17
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
# Editor configuration, see https://editorconfig.org
|
|
2
|
-
root = true
|
|
3
|
-
|
|
4
|
-
[*]
|
|
5
|
-
charset = utf-8
|
|
6
|
-
indent_style = space
|
|
7
|
-
indent_size = 2
|
|
8
|
-
insert_final_newline = true
|
|
9
|
-
trim_trailing_whitespace = true
|
|
10
|
-
|
|
11
|
-
[*.ts]
|
|
12
|
-
quote_type = single
|
|
13
|
-
ij_typescript_use_double_quotes = false
|
|
14
|
-
|
|
15
|
-
[*.md]
|
|
16
|
-
max_line_length = off
|
|
17
|
-
trim_trailing_whitespace = false
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
|
3
|
-
"version": "0.2.0",
|
|
4
|
-
"configurations": [
|
|
5
|
-
{
|
|
6
|
-
"name": "ng serve",
|
|
7
|
-
"type": "chrome",
|
|
8
|
-
"request": "launch",
|
|
9
|
-
"preLaunchTask": "npm: start",
|
|
10
|
-
"url": "http://localhost:4200/"
|
|
11
|
-
},
|
|
12
|
-
{
|
|
13
|
-
"name": "ng test",
|
|
14
|
-
"type": "chrome",
|
|
15
|
-
"request": "launch",
|
|
16
|
-
"preLaunchTask": "npm: test",
|
|
17
|
-
"url": "http://localhost:9876/debug.html"
|
|
18
|
-
}
|
|
19
|
-
]
|
|
20
|
-
}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
// For more information, visit: https://go.microsoft.com/fwlink/?LinkId=733558
|
|
3
|
-
"version": "2.0.0",
|
|
4
|
-
"tasks": [
|
|
5
|
-
{
|
|
6
|
-
"type": "npm",
|
|
7
|
-
"script": "start",
|
|
8
|
-
"isBackground": true,
|
|
9
|
-
"problemMatcher": {
|
|
10
|
-
"owner": "typescript",
|
|
11
|
-
"pattern": "$tsc",
|
|
12
|
-
"background": {
|
|
13
|
-
"activeOnStart": true,
|
|
14
|
-
"beginsPattern": {
|
|
15
|
-
"regexp": "(.*?)"
|
|
16
|
-
},
|
|
17
|
-
"endsPattern": {
|
|
18
|
-
"regexp": "bundle generation complete"
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
"type": "npm",
|
|
25
|
-
"script": "test",
|
|
26
|
-
"isBackground": true,
|
|
27
|
-
"problemMatcher": {
|
|
28
|
-
"owner": "typescript",
|
|
29
|
-
"pattern": "$tsc",
|
|
30
|
-
"background": {
|
|
31
|
-
"activeOnStart": true,
|
|
32
|
-
"beginsPattern": {
|
|
33
|
-
"regexp": "(.*?)"
|
|
34
|
-
},
|
|
35
|
-
"endsPattern": {
|
|
36
|
-
"regexp": "bundle generation complete"
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
]
|
|
42
|
-
}
|
package/demo-angular/README.md
DELETED
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
# DGA UI - Angular Demo
|
|
2
|
-
|
|
3
|
-
This is the demo application showcasing the DGA UI theme components and features.
|
|
4
|
-
|
|
5
|
-
## Development vs Production Library Usage
|
|
6
|
-
|
|
7
|
-
### Local Development
|
|
8
|
-
During development, the demo uses the **local version** of `sdga-ui` from the parent directory:
|
|
9
|
-
|
|
10
|
-
```bash
|
|
11
|
-
npm start
|
|
12
|
-
```
|
|
13
|
-
|
|
14
|
-
This automatically runs `npm run use:local` which installs the library from `file:..`, allowing you to test changes immediately.
|
|
15
|
-
|
|
16
|
-
### Production Build / Deployment
|
|
17
|
-
For production builds and GitHub Pages deployment, the demo uses the **published npm package**:
|
|
18
|
-
|
|
19
|
-
```bash
|
|
20
|
-
npm run build:prod
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
This automatically runs `npm run use:npm` which installs the library from the npm registry.
|
|
24
|
-
|
|
25
|
-
### Manual Switching
|
|
26
|
-
|
|
27
|
-
You can manually switch between local and npm versions:
|
|
28
|
-
|
|
29
|
-
```bash
|
|
30
|
-
# Use local development version
|
|
31
|
-
npm run use:local
|
|
32
|
-
|
|
33
|
-
# Use published npm version
|
|
34
|
-
npm run use:npm
|
|
35
|
-
```
|
|
36
|
-
|
|
37
|
-
## Development server
|
|
38
|
-
|
|
39
|
-
To start a local development server, run:
|
|
40
|
-
|
|
41
|
-
```bash
|
|
42
|
-
ng serve
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
Once the server is running, open your browser and navigate to `http://localhost:4200/`. The application will automatically reload whenever you modify any of the source files.
|
|
46
|
-
|
|
47
|
-
## Code scaffolding
|
|
48
|
-
|
|
49
|
-
Angular CLI includes powerful code scaffolding tools. To generate a new component, run:
|
|
50
|
-
|
|
51
|
-
```bash
|
|
52
|
-
ng generate component component-name
|
|
53
|
-
```
|
|
54
|
-
|
|
55
|
-
For a complete list of available schematics (such as `components`, `directives`, or `pipes`), run:
|
|
56
|
-
|
|
57
|
-
```bash
|
|
58
|
-
ng generate --help
|
|
59
|
-
```
|
|
60
|
-
|
|
61
|
-
## Building
|
|
62
|
-
|
|
63
|
-
To build the project run:
|
|
64
|
-
|
|
65
|
-
```bash
|
|
66
|
-
ng build
|
|
67
|
-
```
|
|
68
|
-
|
|
69
|
-
This will compile your project and store the build artifacts in the `dist/` directory. By default, the production build optimizes your application for performance and speed.
|
|
70
|
-
|
|
71
|
-
## Running unit tests
|
|
72
|
-
|
|
73
|
-
To execute unit tests with the [Vitest](https://vitest.dev/) test runner, use the following command:
|
|
74
|
-
|
|
75
|
-
```bash
|
|
76
|
-
ng test
|
|
77
|
-
```
|
|
78
|
-
|
|
79
|
-
## Running end-to-end tests
|
|
80
|
-
|
|
81
|
-
For end-to-end (e2e) testing, run:
|
|
82
|
-
|
|
83
|
-
```bash
|
|
84
|
-
ng e2e
|
|
85
|
-
```
|
|
86
|
-
|
|
87
|
-
Angular CLI does not come with an end-to-end testing framework by default. You can choose one that suits your needs.
|
|
88
|
-
|
|
89
|
-
## Additional Resources
|
|
90
|
-
|
|
91
|
-
For more information on using the Angular CLI, including detailed command references, visit the [Angular CLI Overview and Command Reference](https://angular.dev/tools/cli) page.
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
|
|
3
|
-
"version": 1,
|
|
4
|
-
"cli": {
|
|
5
|
-
"packageManager": "npm"
|
|
6
|
-
},
|
|
7
|
-
"newProjectRoot": "projects",
|
|
8
|
-
"projects": {
|
|
9
|
-
"demo-angular": {
|
|
10
|
-
"projectType": "application",
|
|
11
|
-
"schematics": {
|
|
12
|
-
"@schematics/angular:component": {
|
|
13
|
-
"style": "scss"
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
|
-
"root": "",
|
|
17
|
-
"sourceRoot": "src",
|
|
18
|
-
"prefix": "app",
|
|
19
|
-
"architect": {
|
|
20
|
-
"build": {
|
|
21
|
-
"builder": "@angular/build:application",
|
|
22
|
-
"options": {
|
|
23
|
-
"outputPath": "dist/demo-angular",
|
|
24
|
-
"browser": "src/main.ts",
|
|
25
|
-
"tsConfig": "tsconfig.app.json",
|
|
26
|
-
"inlineStyleLanguage": "scss",
|
|
27
|
-
"assets": [
|
|
28
|
-
{
|
|
29
|
-
"glob": "**/*",
|
|
30
|
-
"input": "public"
|
|
31
|
-
}
|
|
32
|
-
],
|
|
33
|
-
"styles": [
|
|
34
|
-
"src/styles.scss"
|
|
35
|
-
],
|
|
36
|
-
"scripts": [
|
|
37
|
-
"node_modules/bootstrap/dist/js/bootstrap.bundle.min.js"
|
|
38
|
-
],
|
|
39
|
-
"preserveSymlinks": true,
|
|
40
|
-
"stylePreprocessorOptions": {
|
|
41
|
-
"includePaths": [
|
|
42
|
-
"../../node_modules"
|
|
43
|
-
]
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
"configurations": {
|
|
47
|
-
"production": {
|
|
48
|
-
"baseHref": "/dga-ui/",
|
|
49
|
-
"budgets": [
|
|
50
|
-
{
|
|
51
|
-
"type": "initial",
|
|
52
|
-
"maximumWarning": "500kB",
|
|
53
|
-
"maximumError": "1MB"
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
"type": "anyComponentStyle",
|
|
57
|
-
"maximumWarning": "4kB",
|
|
58
|
-
"maximumError": "8kB"
|
|
59
|
-
}
|
|
60
|
-
],
|
|
61
|
-
"outputHashing": "all"
|
|
62
|
-
},
|
|
63
|
-
"development": {
|
|
64
|
-
"optimization": false,
|
|
65
|
-
"extractLicenses": false,
|
|
66
|
-
"sourceMap": true
|
|
67
|
-
}
|
|
68
|
-
},
|
|
69
|
-
"defaultConfiguration": "production"
|
|
70
|
-
},
|
|
71
|
-
"serve": {
|
|
72
|
-
"builder": "@angular/build:dev-server",
|
|
73
|
-
"configurations": {
|
|
74
|
-
"production": {
|
|
75
|
-
"buildTarget": "demo-angular:build:production"
|
|
76
|
-
},
|
|
77
|
-
"development": {
|
|
78
|
-
"buildTarget": "demo-angular:build:development"
|
|
79
|
-
}
|
|
80
|
-
},
|
|
81
|
-
"defaultConfiguration": "development"
|
|
82
|
-
},
|
|
83
|
-
"test": {
|
|
84
|
-
"builder": "@angular/build:unit-test"
|
|
85
|
-
},
|
|
86
|
-
"deploy": {
|
|
87
|
-
"builder": "angular-cli-ghpages:deploy",
|
|
88
|
-
"options": {
|
|
89
|
-
"baseHref": "/dga-ui/",
|
|
90
|
-
"cname": ""
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
}
|