Skip to content

Commit

Permalink
feat: update private change handlers to protected (#5872)
Browse files Browse the repository at this point in the history
* update attribute and observable change handlers with internal logic to be protected instead of private

* Change files

* udpate api docs
  • Loading branch information
chrisdholt committed May 5, 2022
1 parent 9a05141 commit 8fc96ca
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/web-components/fast-foundation/src/combobox/combobox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,17 @@ export class Combobox extends FormAssociatedCombobox {
* HTML Attribute: autocomplete
*/
@attr({ attribute: "autocomplete", mode: "fromView" })
<<<<<<< HEAD
autocomplete: ComboboxAutocomplete | undefined;
=======
public autocomplete:
| ComboboxAutocomplete
| "inline"
| "list"
| "both"
| "none"
| undefined;
>>>>>>> feat: update private change handlers to protected (#5872)

/**
* Reference to the internal text input element.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,10 @@ export const myDataGrid = DataGrid.compose({
| Name | Privacy | Description | Parameters | Return | Inherited From |
| ---------------------------- | --------- | ----------- | ------------------ | ------ | ----------------- |
| `gridTemplateColumnsChanged` | protected | | | `void` | |
<<<<<<< HEAD
=======
| `rowTypeChanged` | protected | | | `void` | |
>>>>>>> feat: update private change handlers to protected (#5872)
| `rowDataChanged` | protected | | | `void` | |
| `handleFocusout` | public | | `e: FocusEvent` | `void` | |
| `handleCellFocus` | public | | `e: Event` | `void` | |
Expand Down Expand Up @@ -293,6 +297,10 @@ export const myDataGrid = DataGrid.compose({
| Name | Privacy | Description | Parameters | Return | Inherited From |
| ---------------------------- | --------- | ----------- | ---------- | ------ | ----------------- |
| `noTabbingChanged` | protected | | | `void` | |
<<<<<<< HEAD
=======
| `generateHeaderChanged` | protected | | | `void` | |
>>>>>>> feat: update private change handlers to protected (#5872)
| `gridTemplateColumnsChanged` | protected | | | `void` | |
| `rowsDataChanged` | protected | | | `void` | |
| `columnDefinitionsChanged` | protected | | | `void` | |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,14 @@ export class DataGridRow extends FoundationElement {
* HTML Attribute: row-type
*/
@attr({ attribute: "row-type" })
<<<<<<< HEAD
public rowType: DataGridRowTypes = DataGridRowTypes.default;
private rowTypeChanged(): void {
=======
public rowType: DataGridRowTypes | "default" | "header" | "sticky-header" =
DataGridRowTypes.default;
protected rowTypeChanged(): void {
>>>>>>> feat: update private change handlers to protected (#5872)
if (this.$fastController.isConnected) {
this.updateItemTemplate();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,14 @@ export class DataGrid extends FoundationElement {
* HTML Attribute: generate-header
*/
@attr({ attribute: "generate-header" })
<<<<<<< HEAD
public generateHeader: GenerateHeaderOptions = GenerateHeaderOptions.default;
private generateHeaderChanged(): void {
=======
public generateHeader: GenerateHeaderOptions | "none" | "default" | "sticky" =
GenerateHeaderOptions.default;
protected generateHeaderChanged(): void {
>>>>>>> feat: update private change handlers to protected (#5872)
if (this.$fastController.isConnected) {
this.toggleGeneratedHeader();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,14 @@ export class TextField extends FormAssociatedTextField {
* HTML Attribute: type
*/
@attr
<<<<<<< HEAD
public type: TextFieldType = TextFieldType.text;
private typeChanged(): void {
=======
public type: TextFieldType | "email" | "password" | "tel" | "text" | "url" =
TextFieldType.text;
protected typeChanged(): void {
>>>>>>> feat: update private change handlers to protected (#5872)
if (this.proxy instanceof HTMLInputElement) {
this.proxy.type = this.type;
this.validate();
Expand Down
4 changes: 4 additions & 0 deletions packages/web-components/fast-foundation/src/tooltip/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@ export const myTooltip = Tooltip.compose({
| ------------------------ | --------- | ----------- | ------------------------------- | ------ | ----------------- |
| `visibleChanged` | protected | | | `void` | |
| `anchorChanged` | protected | | | `void` | |
<<<<<<< HEAD
=======
| `positionChanged` | protected | | | `void` | |
>>>>>>> feat: update private change handlers to protected (#5872)
| `anchorElementChanged` | protected | | `oldValue: HTMLElement or null` | `void` | |
| `viewportElementChanged` | protected | | | `void` | |
| `templateChanged` | protected | | | `void` | FoundationElement |
Expand Down

0 comments on commit 8fc96ca

Please sign in to comment.