Skip to content

Commit 06b53c0

Browse files
committed
Angular: now support signal inputs
* fix #2950 Angular: now support signal inputs (ng14.1+) like `name = input<string>()`
1 parent 7afb1d6 commit 06b53c0

6 files changed

Lines changed: 100 additions & 88 deletions

File tree

angular/doc/api/base-widget.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ new BaseWidget(): BaseWidget;
2828
serialize(): undefined | NgCompInputs;
2929
```
3030

31-
Defined in: [angular/projects/lib/src/lib/base-widget.ts:66](https://github.com/adumesny/gridstack.js/blob/master/angular/projects/lib/src/lib/base-widget.ts#L66)
31+
Defined in: [angular/projects/lib/src/lib/base-widget.ts:69](https://github.com/adumesny/gridstack.js/blob/master/angular/projects/lib/src/lib/base-widget.ts#L69)
3232

3333
Override this method to return serializable data for this widget.
3434

@@ -59,7 +59,7 @@ serialize() {
5959
deserialize(w): void;
6060
```
6161

62-
Defined in: [angular/projects/lib/src/lib/base-widget.ts:88](https://github.com/adumesny/gridstack.js/blob/master/angular/projects/lib/src/lib/base-widget.ts#L88)
62+
Defined in: [angular/projects/lib/src/lib/base-widget.ts:91](https://github.com/adumesny/gridstack.js/blob/master/angular/projects/lib/src/lib/base-widget.ts#L91)
6363

6464
Override this method to handle widget restoration from saved data.
6565

angular/doc/api/gridstack.component.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2860,7 +2860,7 @@ GridHTMLElement.replaceChildren
28602860
28612861
| Property | Modifier | Type | Description | Inherited from | Defined in |
28622862
| ------ | ------ | ------ | ------ | ------ | ------ |
2863-
| <a id="gridstack"></a> `gridstack?` | `public` | `GridStack` | - | `GridHTMLElement.gridstack` | dist/gridstack.d.ts:25 |
2863+
| <a id="gridstack"></a> `gridstack?` | `public` | `GridStack` | - | `GridHTMLElement.gridstack` | dist/gridstack.d.ts:24 |
28642864
| <a id="_gridcomp"></a> `_gridComp?` | `public` | [`GridstackComponent`](#gridstackcomponent) | Back-reference to the Angular GridStack component | - | [angular/projects/lib/src/lib/gridstack.component.ts:41](https://github.com/adumesny/gridstack.js/blob/master/angular/projects/lib/src/lib/gridstack.component.ts#L41) |
28652865
| <a id="ariaatomic"></a> `ariaAtomic` | `public` | `null` \| `string` | - | `GridHTMLElement.ariaAtomic` | node\_modules/typescript/lib/lib.dom.d.ts:2020 |
28662866
| <a id="ariaautocomplete"></a> `ariaAutoComplete` | `public` | `null` \| `string` | - | `GridHTMLElement.ariaAutoComplete` | node\_modules/typescript/lib/lib.dom.d.ts:2021 |
@@ -3121,7 +3121,7 @@ can be used when a new item needs to be created, which we do as a Angular compon
31213121
function gsSaveAdditionalNgInfo(n, w): void;
31223122
```
31233123
3124-
Defined in: [angular/projects/lib/src/lib/gridstack.component.ts:447](https://github.com/adumesny/gridstack.js/blob/master/angular/projects/lib/src/lib/gridstack.component.ts#L447)
3124+
Defined in: [angular/projects/lib/src/lib/gridstack.component.ts:449](https://github.com/adumesny/gridstack.js/blob/master/angular/projects/lib/src/lib/gridstack.component.ts#L449)
31253125
31263126
called for each item in the grid - check if additional information needs to be saved.
31273127
Note: since this is options minus gridstack protected members using Utils.removeInternalForSave(),
@@ -3147,7 +3147,7 @@ using BaseWidget.serialize()
31473147
function gsUpdateNgComponents(n): void;
31483148
```
31493149
3150-
Defined in: [angular/projects/lib/src/lib/gridstack.component.ts:466](https://github.com/adumesny/gridstack.js/blob/master/angular/projects/lib/src/lib/gridstack.component.ts#L466)
3150+
Defined in: [angular/projects/lib/src/lib/gridstack.component.ts:468](https://github.com/adumesny/gridstack.js/blob/master/angular/projects/lib/src/lib/gridstack.component.ts#L468)
31513151
31523152
track when widgeta re updated (rather than created) to make sure we de-serialize them as well
31533153

0 commit comments

Comments
 (0)