Skip to content

Commit

Permalink
feat: new execution context design (#5800)
Browse files Browse the repository at this point in the history
* refactor: new design for execution context

* feat: add two new event helpers to the execution context and tests

* fix: wip update types to match new context apis

* fix: update foundation and components template types

* Change files

* fix: update template type in fast-website

* fix: update site components for new template types

* fix: add missing api updates

Co-authored-by: EisenbergEffect <[email protected]>
  • Loading branch information
2 people authored and nicholasrice committed Apr 7, 2022
1 parent 2b9f962 commit 0b6ba01
Show file tree
Hide file tree
Showing 46 changed files with 1,229 additions and 665 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "major",
"comment": "fix: update foundation and components template types",
"packageName": "@microsoft/fast-components",
"email": "[email protected]",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "major",
"comment": "refactor: new design for execution context",
"packageName": "@microsoft/fast-element",
"email": "[email protected]",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "major",
"comment": "fix: update foundation and components template types",
"packageName": "@microsoft/fast-foundation",
"email": "[email protected]",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "major",
"comment": "refactor: new design for execution context",
"packageName": "@microsoft/fast-router",
"email": "[email protected]",
"dependentChangeType": "patch"
}
284 changes: 142 additions & 142 deletions packages/web-components/fast-components/docs/api-report.md

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { html } from "@microsoft/fast-element";
import { html, item } from "@microsoft/fast-element";
import type {
Button,
ColumnDefinition,
Expand All @@ -18,15 +18,15 @@ const defaultRowData: object = newDataRow("default");

const columnWidths: string[] = ["1fr", "1fr", "1fr", "1fr"];

const defaultRowItemTemplate = html`
const defaultRowItemTemplate = item`
<fast-data-grid-row
:rowData="${x => x}"
:cellItemTemplate="${(x, c) => c.parent.cellItemTemplate}"
:headerCellItemTemplate="${(x, c) => c.parent.headerCellItemTemplate}"
></fast-data-grid-row>
`;

const customRowItemTemplate = html`
const customRowItemTemplate = item`
<fast-data-grid-row
:rowData="${x => x}"
:cellItemTemplate="${(x, c) => c.parent.cellItemTemplate}"
Expand All @@ -35,7 +35,7 @@ const customRowItemTemplate = html`
<fast-divider style="margin-bottom: 6px; margin-top: 6px;"></fast-divider>
`;

const customCellItemTemplate = html`
const customCellItemTemplate = item`
<fast-data-grid-cell
style="background: brown"
grid-column="${(x, c) => c.index + 1}"
Expand All @@ -44,7 +44,7 @@ const customCellItemTemplate = html`
></fast-data-grid-cell>
`;

const customHeaderCellItemTemplate = html`
const customHeaderCellItemTemplate = item`
<fast-data-grid-cell
style="background: orange"
cell-type="columnheader"
Expand Down
Loading

0 comments on commit 0b6ba01

Please sign in to comment.