-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'staging/4.0' into fix/ssr/core-initial
- Loading branch information
Showing
48 changed files
with
1,410 additions
and
822 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
--- | ||
"@patternfly/elements": major | ||
--- | ||
`<pf-icon>`: removed the `getIconUrl` static method, and replaced it with the | ||
`resolve` static method | ||
|
||
The steps for overriding icon loading behaviour have changed. Before, you had to | ||
return a string from the `getIconUrl` method, or the second argument to | ||
`addIconSet`. Now, both of those functions must return a Node, or any lit-html | ||
renderable value, or a Promise thereof. | ||
|
||
BEFORE: | ||
|
||
```js | ||
PfIcon.addIconSet('local', (set, icon) => | ||
new URL(`/assets/icons/${set}-${icon}.js`)); | ||
|
||
// or | ||
PfIcon.getIconUrl = (set, icon) => | ||
new URL(`/assets/icons/${set}-${icon}.js`)) | ||
``` | ||
|
||
AFTER | ||
```js | ||
PfIcon.addIconSet('local', (set, icon) => | ||
import(`/assets/icons/${set}-${icon}.js`)) | ||
.then(mod => mod.default); | ||
|
||
// or | ||
PfIcon.resolve = (set, icon) => | ||
import(`/assets/icons/${set}-${icon}.js`)) | ||
.then(mod => mod.default); | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
"@patternfly/elements": major | ||
--- | ||
`<pf-icon>`: removed the `defaultIconSet` static field. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
"@patternfly/pfe-tools": minor | ||
--- | ||
Added `querySnapshot` accessibility testing helper | ||
|
||
```ts | ||
|
||
describe('then clicking the toggle', function() { | ||
beforeEach(async function() { | ||
await clickElementAtCenter(toggle); | ||
}); | ||
it('expands the disclosure panel', async function() { | ||
const snapshot = await a11ySnapshot(); | ||
const expanded = querySnapshot(snapshot, { expanded: true }); | ||
expect(expanded).to.be.ok; | ||
}); | ||
}); | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
--- | ||
"@patternfly/elements": major | ||
--- | ||
`<pf-accordion>`: Removed `BaseAccordion*` classes, as well as static `isPanel`, `isHeader`, and `isAccordion` methods. Removed the optional `parentAccordion` parameter to `PfAccordion#expand(index)`. Renamed accordion event classes by adding the `Pf` prefix: | ||
|
||
**Before**: | ||
|
||
```js | ||
import { | ||
AccordionHeaderChangeEvent | ||
} from '@patternfly/elements/pf-accordion/pf-accordion.js'; | ||
|
||
addEventListener('change', function(event) { | ||
if (event instanceof AccordionHeaderChangeEvent) { | ||
// ... | ||
} | ||
}); | ||
``` | ||
|
||
**After**: | ||
|
||
```js | ||
import { | ||
PfAccordionHeaderChangeEvent | ||
} from '@patternfly/elements/pf-accordion/pf-accordion.js'; | ||
|
||
addEventListener('change', function(event) { | ||
if (event instanceof PfAccordionHeaderChangeEvent) { | ||
// ... | ||
} | ||
}); | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
"@patternfly/pfe-tools": patch | ||
--- | ||
**Dev Server**: load lightdom shim files |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
"@patternfly/pfe-tools": patch | ||
--- | ||
**Dev Server**: reload on typescript file changes |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@patternfly/elements": patch | ||
--- | ||
|
||
`<pf-back-to-top>`: fix hover color |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
"@patternfly/create-element": patch | ||
--- | ||
Element generator now generates demo files with inlined script and styles |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
"@patternfly/pfe-tools": minor | ||
--- | ||
**TypeScript**: Add static version transformer. This adds a runtime-only | ||
static `version` field to custom element classes. | ||
|
||
```js | ||
import '@patternfly/elements/pf-button/pf-button.js'; | ||
const PFE_VERSION = | ||
await customElements.whenDefined('pf-button') | ||
.then(PfButton => PfButton.version); | ||
``` |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"name": "@patternfly/elements", | ||
"license": "MIT", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"description": "PatternFly Elements", | ||
"customElements": "custom-elements.json", | ||
"type": "module", | ||
|
@@ -125,11 +125,13 @@ | |
"Nikki Massaro Kauffman <[email protected]> (https://github.com/nikkimk)", | ||
"Steven Spriggs <[email protected]", | ||
"castastrophe (https://github.com/castastrophe)", | ||
"Wes Ruvalcaba" | ||
"Wes Ruvalcaba", | ||
"Rohit Bharmal (https://github.com/Rohit2601)", | ||
"Ajinyka Shinde <[email protected]>" | ||
], | ||
"dependencies": { | ||
"@lit/context": "^1.1.0", | ||
"@patternfly/icons": "^1.0.2", | ||
"@patternfly/icons": "^1.0.3", | ||
"@patternfly/pfe-core": "^3.0.0", | ||
"lit": "^3.1.2", | ||
"tslib": "^2.6.2" | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.