Skip to content

Commit f1f9913

Browse files
authored
Updated package to support the latest version of Ignite UI Web components
* Streamlined build process and removed deprecated dependencies * Fixed issues around deprecated API usage for dependent packages * Added a shim for the now internal `@themes` decorator from the Ignite UI package * Aligned component registration and dynamic theme changes API * Refactored the test suite
1 parent a320471 commit f1f9913

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+7455
-15415
lines changed

.browserslistrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

.eslintignore

Lines changed: 0 additions & 41 deletions
This file was deleted.

.eslintrc.json

Lines changed: 0 additions & 61 deletions
This file was deleted.

.github/workflows/codeql-analysis.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ on:
1818
# The branches below must be a subset of the branches above
1919
branches: [master]
2020
schedule:
21-
- cron: '33 4 * * 4'
21+
- cron: '24 4 * * 0'
2222

2323
jobs:
2424
analyze:
@@ -39,11 +39,11 @@ jobs:
3939

4040
steps:
4141
- name: Checkout repository
42-
uses: actions/checkout@v2
42+
uses: actions/checkout@v4
4343

4444
# Initializes the CodeQL tools for scanning.
4545
- name: Initialize CodeQL
46-
uses: github/codeql-action/init@v2
46+
uses: github/codeql-action/init@v3
4747
with:
4848
languages: ${{ matrix.language }}
4949
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -54,7 +54,7 @@ jobs:
5454
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
5555
# If this step fails, then you should remove it and run the build manually (see below)
5656
- name: Autobuild
57-
uses: github/codeql-action/autobuild@v2
57+
uses: github/codeql-action/autobuild@v3
5858

5959
# ℹ️ Command-line programs to run using the OS shell.
6060
# 📚 https://git.io/JvXDl
@@ -68,4 +68,4 @@ jobs:
6868
# make release
6969

7070
- name: Perform CodeQL Analysis
71-
uses: github/codeql-action/analyze@v2
71+
uses: github/codeql-action/analyze@v3

.github/workflows/node.js.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,24 @@ jobs:
1515

1616
strategy:
1717
matrix:
18-
node-version: [16.x, 18.x]
18+
node-version: [20.x, 22.x]
1919
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
2020

2121
steps:
22-
- uses: actions/checkout@v3
22+
- uses: actions/checkout@v4
2323
- name: Use Node.js ${{ matrix.node-version }}
24-
uses: actions/setup-node@v3
24+
uses: actions/setup-node@v4
2525
with:
2626
node-version: ${{ matrix.node-version }}
27+
cache: 'npm'
2728
- run: npm ci
29+
- run: npx playwright install --with-deps --only-shell chromium
2830
- run: npm run lint
2931
- run: npm run build
3032
- run: npm run test
3133
- name: Publish to coveralls.io
32-
if: matrix.node-version == '16.x'
33-
uses: coverallsapp/github-action@v1.1.2
34+
if: matrix.node-version == '20.x'
35+
uses: coverallsapp/github-action@v2
3436
with:
3537
github-token: ${{ github.token }}
36-
path-to-lcov: ./dist/test/coverage/lcov.info
38+
path-to-lcov: ./coverage/lcov.info

.github/workflows/npm-publish.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,11 @@ jobs:
1111
publish-npm:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v3
15-
- uses: actions/setup-node@v3
14+
- uses: actions/checkout@v4
15+
- uses: actions/setup-node@v4
1616
with:
17-
node-version: 16
17+
node-version: '20'
18+
cache: 'npm'
1819
registry-url: https://registry.npmjs.org/
1920
- run: npm ci
2021
- run: npm run build

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ __snapshots__
2020
screenshots/.current
2121
screenshots/.diff
2222

23-
2423
## build
2524
_site
2625
dist
@@ -30,3 +29,6 @@ build
3029
*.tgz
3130
*.tsbuildinfo
3231
storybook-static
32+
33+
custom-elements.json
34+
*.css.ts

.husky/pre-commit

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
#!/usr/bin/env sh
2-
. "$(dirname -- "$0")/_/husky.sh"
3-
41
npx lint-staged

.stylelintrc.json

Lines changed: 3 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,25 @@
11
{
2-
"extends": "stylelint-config-standard-scss",
3-
"plugins": ["stylelint-scss"],
2+
"extends": ["stylelint-config-standard-scss"],
3+
"plugins": ["stylelint-scss", "stylelint-prettier"],
44
"rules": {
55
"at-rule-disallowed-list": [
66
"debug",
77
{
88
"severity": "warning"
99
}
1010
],
11-
"block-closing-brace-empty-line-before": "never",
12-
"block-closing-brace-newline-after": "always-single-line",
1311
"block-no-empty": true,
14-
"color-hex-case": "lower",
1512
"color-hex-length": "short",
1613
"color-no-invalid-hex": true,
1714
"comment-no-empty": true,
1815
"custom-property-pattern": "(?:igc-)?.+",
1916
"declaration-block-no-duplicate-properties": true,
2017
"declaration-block-no-shorthand-property-overrides": true,
2118
"declaration-block-single-line-max-declarations": 1,
22-
"declaration-colon-space-after": "always-single-line",
2319
"font-family-no-duplicate-names": true,
2420
"font-family-no-missing-generic-family-keyword": true,
2521
"font-weight-notation": "numeric",
2622
"function-calc-no-unspaced-operator": true,
27-
"function-comma-space-after": "always-single-line",
28-
"indentation": 4,
2923
"length-zero-no-unit": true,
3024
"max-nesting-depth": [
3125
3,
@@ -36,11 +30,7 @@
3630
"no-descending-specificity": null,
3731
"no-duplicate-at-import-rules": true,
3832
"no-duplicate-selectors": true,
39-
"no-extra-semicolons": true,
4033
"no-invalid-double-slash-comments": true,
41-
"no-missing-end-of-source-newline": true,
42-
"number-leading-zero": "never",
43-
"number-no-trailing-zeros": true,
4434
"property-no-unknown": true,
4535
"rule-empty-line-before": [
4636
"always-multi-line",
@@ -50,16 +40,7 @@
5040
}
5141
],
5242
"selector-attribute-quotes": "always",
53-
"selector-attribute-operator-space-after": "never",
54-
"selector-attribute-operator-space-before": "never",
55-
"selector-combinator-space-after": "always",
56-
"selector-combinator-space-before": "always",
57-
"selector-descendant-combinator-no-non-space": true,
58-
"selector-list-comma-newline-after": "always",
59-
"selector-pseudo-class-case": "lower",
6043
"selector-pseudo-class-no-unknown": true,
61-
"selector-pseudo-class-parentheses-space-inside": "never",
62-
"selector-pseudo-element-case": "lower",
6344
"selector-pseudo-element-colon-notation": "double",
6445
"selector-pseudo-element-no-unknown": true,
6546
"selector-type-case": "lower",
@@ -70,10 +51,7 @@
7051
}
7152
],
7253
"shorthand-property-no-redundant-values": true,
73-
"string-quotes": "single",
74-
"unit-case": "lower",
7554
"value-keyword-case": "lower",
76-
"value-list-comma-space-after": "always-single-line",
7755
"value-no-vendor-prefix": true,
7856
"scss/at-mixin-pattern": null,
7957
"scss/at-function-pattern": null,
@@ -83,7 +61,7 @@
8361
"scss/at-else-empty-line-before": "never",
8462
"scss/at-if-closing-brace-newline-after": "always-last-in-chain",
8563
"scss/at-if-closing-brace-space-after": "always-intermediate",
86-
"scss/at-import-no-partial-leading-underscore": true,
64+
"scss/load-no-partial-leading-underscore": true,
8765
"scss/at-mixin-argumentless-call-parentheses": "always",
8866
"scss/at-mixin-parentheses-space-before": "never",
8967
"scss/at-rule-no-unknown": true,

biome.json

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/2.0.6/schema.json",
3+
"vcs": {
4+
"enabled": true,
5+
"clientKind": "git",
6+
"useIgnoreFile": true
7+
},
8+
"files": {
9+
"includes": ["src/**/*.ts", "test/**/*.ts", "scripts/**/*.js"],
10+
"ignoreUnknown": true
11+
},
12+
"formatter": {
13+
"enabled": true,
14+
"formatWithErrors": false,
15+
"indentStyle": "space",
16+
"indentWidth": 2,
17+
"lineEnding": "lf",
18+
"lineWidth": 100,
19+
"attributePosition": "auto",
20+
"bracketSameLine": false,
21+
"bracketSpacing": true,
22+
"expand": "auto",
23+
"useEditorconfig": false
24+
},
25+
"linter": {
26+
"enabled": true,
27+
"rules": {
28+
"recommended": true,
29+
"complexity": {
30+
"noForEach": "warn",
31+
"noStaticOnlyClass": "off"
32+
},
33+
"correctness": {
34+
"noUnusedVariables": "error",
35+
"noUnusedFunctionParameters": "error",
36+
"noUnusedImports": "error",
37+
"noUnusedPrivateClassMembers": "error",
38+
"useImportExtensions": {
39+
"level": "error",
40+
"options": { "forceJsExtensions": true }
41+
}
42+
},
43+
"style": {
44+
"noNamespace": "error",
45+
"useCollapsedElseIf": "error",
46+
"noNonNullAssertion": "off",
47+
"noParameterAssign": "error",
48+
"useAsConstAssertion": "error",
49+
"useDefaultParameterLast": "error",
50+
"useEnumInitializers": "error",
51+
"useSelfClosingElements": "error",
52+
"useSingleVarDeclarator": "error",
53+
"noUnusedTemplateLiteral": "error",
54+
"useNumberNamespace": "error",
55+
"noInferrableTypes": "error",
56+
"noUselessElse": "error"
57+
},
58+
"suspicious": {
59+
"noConsole": "error",
60+
"noDebugger": "error",
61+
"noExplicitAny": "off"
62+
}
63+
}
64+
},
65+
"javascript": {
66+
"formatter": {
67+
"jsxQuoteStyle": "double",
68+
"quoteProperties": "asNeeded",
69+
"trailingCommas": "es5",
70+
"semicolons": "always",
71+
"arrowParentheses": "always",
72+
"bracketSameLine": false,
73+
"quoteStyle": "single",
74+
"attributePosition": "auto",
75+
"bracketSpacing": true
76+
}
77+
},
78+
"html": {
79+
"formatter": {
80+
"selfCloseVoidElements": "always"
81+
}
82+
},
83+
"assist": {
84+
"enabled": true,
85+
"actions": {
86+
"source": {
87+
"organizeImports": "on"
88+
}
89+
}
90+
}
91+
}

0 commit comments

Comments
 (0)