@gjsify/adwaita-nativescript 0.63.0 → 0.63.1-next.236

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (89) hide show
  1. package/lib/esm/builder/index.js +1 -1
  2. package/lib/esm/namespace/gtk.js +1 -1
  3. package/lib/esm/widgets/adw-bottom-sheet.js +1 -1
  4. package/lib/esm/widgets/adw-data-grid.js +1 -1
  5. package/lib/esm/widgets/adw-split-button.js +1 -1
  6. package/lib/esm/widgets/adw-toggle-group.js +1 -1
  7. package/lib/esm/widgets/adw-toggle.js +1 -1
  8. package/lib/esm/widgets/construct-props.js +1 -1
  9. package/lib/esm/widgets/gtk-box.js +1 -1
  10. package/lib/esm/widgets/gtk-enums.js +1 -1
  11. package/lib/esm/widgets/gtk-grid.js +1 -1
  12. package/lib/esm/widgets/gtk-list-box.js +1 -1
  13. package/lib/esm/widgets/gtk-window.js +1 -1
  14. package/lib/esm/widgets/index.js +1 -1
  15. package/lib/esm/widgets/shadowed-properties.js +1 -0
  16. package/lib/esm/widgets/signals.js +1 -1
  17. package/lib/esm/widgets/window-base.js +1 -1
  18. package/lib/esm/window-host.js +1 -1
  19. package/lib/esm/window-source.android.js +1 -1
  20. package/lib/esm/window-source.ios.js +1 -1
  21. package/lib/esm/window-source.js +1 -1
  22. package/lib/types/canvas2d/canvas2d-bridge.d.ts +4 -42
  23. package/lib/types/index.d.ts +1 -1
  24. package/lib/types/namespace/gtk.d.ts +1 -1
  25. package/lib/types/shadowed-properties.spec.d.ts +1 -0
  26. package/lib/types/testing/ns-core.d.mts +1 -1
  27. package/lib/types/widgets/adw-about-dialog.d.ts +8 -6
  28. package/lib/types/widgets/adw-action-row.d.ts +8 -6
  29. package/lib/types/widgets/adw-alert-dialog.d.ts +8 -6
  30. package/lib/types/widgets/adw-avatar.d.ts +8 -6
  31. package/lib/types/widgets/adw-banner.d.ts +8 -6
  32. package/lib/types/widgets/adw-bottom-sheet.d.ts +30 -16
  33. package/lib/types/widgets/adw-button-content.d.ts +8 -6
  34. package/lib/types/widgets/adw-carousel.d.ts +8 -6
  35. package/lib/types/widgets/adw-clamp.d.ts +8 -6
  36. package/lib/types/widgets/adw-data-grid.d.ts +26 -12
  37. package/lib/types/widgets/adw-header-bar.d.ts +8 -6
  38. package/lib/types/widgets/adw-image-button.d.ts +8 -6
  39. package/lib/types/widgets/adw-navigation-page.d.ts +8 -6
  40. package/lib/types/widgets/adw-navigation-view.d.ts +8 -6
  41. package/lib/types/widgets/adw-preferences-dialog.d.ts +8 -6
  42. package/lib/types/widgets/adw-preferences-group.d.ts +8 -6
  43. package/lib/types/widgets/adw-preferences-page.d.ts +8 -6
  44. package/lib/types/widgets/adw-shortcut-label.d.ts +8 -6
  45. package/lib/types/widgets/adw-sidebar.d.ts +8 -6
  46. package/lib/types/widgets/adw-slider-row.d.ts +8 -6
  47. package/lib/types/widgets/adw-spinner.d.ts +8 -6
  48. package/lib/types/widgets/adw-split-button.d.ts +30 -10
  49. package/lib/types/widgets/adw-status-page.d.ts +8 -6
  50. package/lib/types/widgets/adw-tab-view.d.ts +8 -6
  51. package/lib/types/widgets/adw-toast-overlay.d.ts +8 -6
  52. package/lib/types/widgets/adw-toggle-group.d.ts +8 -6
  53. package/lib/types/widgets/adw-toggle.d.ts +16 -8
  54. package/lib/types/widgets/adw-toolbar-view.d.ts +8 -6
  55. package/lib/types/widgets/adw-view-stack.d.ts +8 -6
  56. package/lib/types/widgets/adw-view-switcher-bar.d.ts +8 -6
  57. package/lib/types/widgets/adw-window-title.d.ts +8 -6
  58. package/lib/types/widgets/adw-wrap-box.d.ts +8 -6
  59. package/lib/types/widgets/carousel-indicator-base.d.ts +8 -6
  60. package/lib/types/widgets/construct-props.d.ts +9 -3
  61. package/lib/types/widgets/gtk-action-bar.d.ts +8 -6
  62. package/lib/types/widgets/gtk-box.d.ts +1 -1
  63. package/lib/types/widgets/gtk-button.d.ts +8 -6
  64. package/lib/types/widgets/gtk-drop-down.d.ts +8 -6
  65. package/lib/types/widgets/gtk-entry.d.ts +8 -6
  66. package/lib/types/widgets/gtk-enums.d.ts +8 -0
  67. package/lib/types/widgets/gtk-grid.d.ts +1 -1
  68. package/lib/types/widgets/gtk-image.d.ts +8 -6
  69. package/lib/types/widgets/gtk-label.d.ts +8 -6
  70. package/lib/types/widgets/gtk-list-box.d.ts +1 -1
  71. package/lib/types/widgets/gtk-popover-menu.d.ts +8 -6
  72. package/lib/types/widgets/gtk-stack.d.ts +8 -6
  73. package/lib/types/widgets/gtk-text-view.d.ts +8 -6
  74. package/lib/types/widgets/gtk-window.d.ts +12 -0
  75. package/lib/types/widgets/shadowed-properties.d.ts +99 -0
  76. package/lib/types/widgets/signals.d.ts +15 -6
  77. package/lib/types/widgets/split-view-base.d.ts +8 -6
  78. package/lib/types/widgets/stack-page.d.ts +8 -6
  79. package/lib/types/widgets/styled-layout-base.d.ts +8 -6
  80. package/lib/types/widgets/view-stack-page.d.ts +8 -6
  81. package/lib/types/widgets/view-switcher-base.d.ts +8 -6
  82. package/lib/types/widgets/widget-layout.d.ts +22 -19
  83. package/lib/types/widgets/window-base.d.ts +2 -0
  84. package/lib/types/window-host.d.ts +6 -0
  85. package/lib/types/window-source.android.d.ts +2 -0
  86. package/lib/types/window-source.d.ts +6 -0
  87. package/lib/types/window-source.ios.d.ts +2 -0
  88. package/package.json +14 -13
  89. package/src/testing/ns-core.mts +5 -3
@@ -12,6 +12,8 @@ declare const GtkStackPage_base: (abstract new (...args: any[]) => {
12
12
  connect(eventName: string, callback: (self: /*elided*/ any, data: import("@nativescript/core").EventData) => unknown): number;
13
13
  disconnect(handlerId: number): void;
14
14
  emit(eventName: string, ...args: unknown[]): void;
15
+ get_property(name: string): unknown;
16
+ set_property(name: string, value: unknown): void;
15
17
  get halign(): string;
16
18
  set halign(value: string | number);
17
19
  get valign(): string;
@@ -30,6 +32,12 @@ declare const GtkStackPage_base: (abstract new (...args: any[]) => {
30
32
  set sensitive(value: boolean | string);
31
33
  get name(): string;
32
34
  set name(value: string | null);
35
+ get tooltipText(): string;
36
+ set tooltipText(value: string);
37
+ get widthRequest(): number;
38
+ set widthRequest(value: number | string);
39
+ get heightRequest(): number;
40
+ set heightRequest(value: number | string);
33
41
  set_direction(direction: number): void;
34
42
  get_direction(): number;
35
43
  get_first_child(): object | null;
@@ -38,12 +46,6 @@ declare const GtkStackPage_base: (abstract new (...args: any[]) => {
38
46
  get_prev_sibling(): object | null;
39
47
  get_parent(): object | null;
40
48
  insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
41
- get tooltipText(): string;
42
- set tooltipText(value: string);
43
- get widthRequest(): number;
44
- set widthRequest(value: number | string);
45
- get heightRequest(): number;
46
- set heightRequest(value: number | string);
47
49
  _emit(eventName: string): void;
48
50
  addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
49
51
  removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
@@ -4,6 +4,8 @@ declare const AdwStyledLayoutBase_base: (abstract new (...args: any[]) => {
4
4
  connect(eventName: string, callback: (self: /*elided*/ any, data: import("@nativescript/core").EventData) => unknown): number;
5
5
  disconnect(handlerId: number): void;
6
6
  emit(eventName: string, ...args: unknown[]): void;
7
+ get_property(name: string): unknown;
8
+ set_property(name: string, value: unknown): void;
7
9
  get halign(): string;
8
10
  set halign(value: string | number);
9
11
  get valign(): string;
@@ -22,6 +24,12 @@ declare const AdwStyledLayoutBase_base: (abstract new (...args: any[]) => {
22
24
  set sensitive(value: boolean | string);
23
25
  get name(): string;
24
26
  set name(value: string | null);
27
+ get tooltipText(): string;
28
+ set tooltipText(value: string);
29
+ get widthRequest(): number;
30
+ set widthRequest(value: number | string);
31
+ get heightRequest(): number;
32
+ set heightRequest(value: number | string);
25
33
  set_direction(direction: number): void;
26
34
  get_direction(): number;
27
35
  get_first_child(): object | null;
@@ -30,12 +38,6 @@ declare const AdwStyledLayoutBase_base: (abstract new (...args: any[]) => {
30
38
  get_prev_sibling(): object | null;
31
39
  get_parent(): object | null;
32
40
  insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
33
- get tooltipText(): string;
34
- set tooltipText(value: string);
35
- get widthRequest(): number;
36
- set widthRequest(value: number | string);
37
- get heightRequest(): number;
38
- set heightRequest(value: number | string);
39
41
  _emit(eventName: string): void;
40
42
  addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
41
43
  removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
@@ -12,6 +12,8 @@ declare const AdwViewStackPage_base: (abstract new (...args: any[]) => {
12
12
  connect(eventName: string, callback: (self: /*elided*/ any, data: import("@nativescript/core").EventData) => unknown): number;
13
13
  disconnect(handlerId: number): void;
14
14
  emit(eventName: string, ...args: unknown[]): void;
15
+ get_property(name: string): unknown;
16
+ set_property(name: string, value: unknown): void;
15
17
  get halign(): string;
16
18
  set halign(value: string | number);
17
19
  get valign(): string;
@@ -30,6 +32,12 @@ declare const AdwViewStackPage_base: (abstract new (...args: any[]) => {
30
32
  set sensitive(value: boolean | string);
31
33
  get name(): string;
32
34
  set name(value: string | null);
35
+ get tooltipText(): string;
36
+ set tooltipText(value: string);
37
+ get widthRequest(): number;
38
+ set widthRequest(value: number | string);
39
+ get heightRequest(): number;
40
+ set heightRequest(value: number | string);
33
41
  set_direction(direction: number): void;
34
42
  get_direction(): number;
35
43
  get_first_child(): object | null;
@@ -38,12 +46,6 @@ declare const AdwViewStackPage_base: (abstract new (...args: any[]) => {
38
46
  get_prev_sibling(): object | null;
39
47
  get_parent(): object | null;
40
48
  insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
41
- get tooltipText(): string;
42
- set tooltipText(value: string);
43
- get widthRequest(): number;
44
- set widthRequest(value: number | string);
45
- get heightRequest(): number;
46
- set heightRequest(value: number | string);
47
49
  _emit(eventName: string): void;
48
50
  addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
49
51
  removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
@@ -16,6 +16,8 @@ declare const AdwViewSwitcherBase_base: (abstract new (...args: any[]) => {
16
16
  connect(eventName: string, callback: (self: /*elided*/ any, data: EventData) => unknown): number;
17
17
  disconnect(handlerId: number): void;
18
18
  emit(eventName: string, ...args: unknown[]): void;
19
+ get_property(name: string): unknown;
20
+ set_property(name: string, value: unknown): void;
19
21
  get halign(): string;
20
22
  set halign(value: string | number);
21
23
  get valign(): string;
@@ -34,6 +36,12 @@ declare const AdwViewSwitcherBase_base: (abstract new (...args: any[]) => {
34
36
  set sensitive(value: boolean | string);
35
37
  get name(): string;
36
38
  set name(value: string | null);
39
+ get tooltipText(): string;
40
+ set tooltipText(value: string);
41
+ get widthRequest(): number;
42
+ set widthRequest(value: number | string);
43
+ get heightRequest(): number;
44
+ set heightRequest(value: number | string);
37
45
  set_direction(direction: number): void;
38
46
  get_direction(): number;
39
47
  get_first_child(): object | null;
@@ -42,12 +50,6 @@ declare const AdwViewSwitcherBase_base: (abstract new (...args: any[]) => {
42
50
  get_prev_sibling(): object | null;
43
51
  get_parent(): object | null;
44
52
  insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
45
- get tooltipText(): string;
46
- set tooltipText(value: string);
47
- get widthRequest(): number;
48
- set widthRequest(value: number | string);
49
- get heightRequest(): number;
50
- set heightRequest(value: number | string);
51
53
  _emit(eventName: string): void;
52
54
  addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
53
55
  removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
@@ -36,13 +36,15 @@ export interface GtkWidgetLayout {
36
36
  heightRequest: number;
37
37
  }
38
38
  /**
39
- * Give a `@nativescript/core` base GTK's widget layout properties.
39
+ * Everything the mixin adds to an instance, spelled out so the emitted declaration names it.
40
40
  *
41
- * Applied by `withSignals` and nowhere else, so it reaches exactly the classes that meet the
42
- * platform — the rule arm 6 of `check-nativescript-xml-doors.mjs` already holds for that
43
- * mixin — and a subclass of a port class inherits it like any other accessor.
41
+ * Left to inference, `tsc` re-inlines the anonymous mixin class into every subclass's `.d.ts`
42
+ * and writes each setter as `set x(v): any`, which TS1095 rejects in a consumer that checks
43
+ * library files. A `declare class`, not an interface: interface accessors count as properties,
44
+ * and a subclass overriding one with an accessor is then TS2611.
45
+ * The accessors keep their wider setter types (TS 5.1 unrelated accessor types).
44
46
  */
45
- export declare function withGtkWidgetLayout<TBase extends ObservableConstructor>(Base: TBase): (abstract new (...args: any[]) => {
47
+ export declare abstract class GtkWidgetLayoutMembers {
46
48
  get halign(): string;
47
49
  set halign(value: string | number);
48
50
  get valign(): string;
@@ -61,6 +63,12 @@ export declare function withGtkWidgetLayout<TBase extends ObservableConstructor>
61
63
  set sensitive(value: boolean | string);
62
64
  get name(): string;
63
65
  set name(value: string | null);
66
+ get tooltipText(): string;
67
+ set tooltipText(value: string);
68
+ get widthRequest(): number;
69
+ set widthRequest(value: number | string);
70
+ get heightRequest(): number;
71
+ set heightRequest(value: number | string);
64
72
  /** `gtk_widget_set_direction`: written to the CSS `direction` a view resolves its margins by; NONE clears it. */
65
73
  set_direction(direction: number): void;
66
74
  /** `gtk_widget_get_direction`: LTR until set. */
@@ -72,18 +80,13 @@ export declare function withGtkWidgetLayout<TBase extends ObservableConstructor>
72
80
  get_parent(): object | null;
73
81
  /** `gtk_widget_insert_action_group`: `null` removes the group of `prefix`. */
74
82
  insert_action_group(prefix: string, group: ActionGroupLike | null): void;
75
- get tooltipText(): string;
76
- set tooltipText(value: string);
77
- get widthRequest(): number;
78
- set widthRequest(value: number | string);
79
- get heightRequest(): number;
80
- set heightRequest(value: number | string);
81
- _emit(eventName: string): void;
82
- addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
83
- removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
84
- notify<T extends import("@nativescript/core").EventData>(data: T): void;
85
- notifyPropertyChange(name: string, value: unknown, oldValue?: unknown): void;
86
- set(name: string, value: unknown): void;
87
- get(name: string): unknown;
88
- }) & TBase;
83
+ }
84
+ /**
85
+ * Give a `@nativescript/core` base GTK's widget layout properties.
86
+ *
87
+ * Applied by `withSignals` and nowhere else, so it reaches exactly the classes that meet the
88
+ * platform — the rule arm 6 of `check-nativescript-xml-doors.mjs` already holds for that
89
+ * mixin — and a subclass of a port class inherits it like any other accessor.
90
+ */
91
+ export declare function withGtkWidgetLayout<TBase extends ObservableConstructor>(Base: TBase): (abstract new (...args: any[]) => GtkWidgetLayoutMembers) & TBase;
89
92
  export {};
@@ -24,6 +24,8 @@ export declare abstract class AdwWindowBase extends GtkWindow implements DialogH
24
24
  get dialogs(): readonly View[];
25
25
  /** `DialogHost` — `AdwDialog.present (parent)` calls this on the window it finds. */
26
26
  _hostDialog(dialog: unknown): void;
27
+ /** Back closes the topmost open dialog; a dialog that cannot close (`can-close`) still takes the press. */
28
+ protected _consumeBack(): boolean;
27
29
  /** `DialogHost` — the dialog closed. A view this window did not host is left alone. */
28
30
  _unhostDialog(dialog: unknown): void;
29
31
  }
@@ -6,6 +6,12 @@ export interface WindowHost {
6
6
  isForeground(): boolean;
7
7
  /** Call `onChange` whenever the application enters or leaves the foreground; returns the unsubscribe. */
8
8
  watchForeground(onChange: (foreground: boolean) => void): () => void;
9
+ /**
10
+ * Call `onBack` when the system's back button or gesture is used; it answers whether it took
11
+ * the press (true stops the system's own back). Returns the unsubscribe. Never fires where
12
+ * the platform has no back button.
13
+ */
14
+ watchBack(onBack: () => boolean): () => void;
9
15
  /** End the window. Throws where the platform has no way to. */
10
16
  finish(): void;
11
17
  isFocused(view: View): boolean;
@@ -1,5 +1,7 @@
1
1
  import { type View } from '@nativescript/core';
2
+ import type { BackPressedEvent } from './window-source.js';
2
3
  export declare const canFinishWindow = true;
4
+ export declare function watchBackButton(onBack: (event: BackPressedEvent) => void): () => void;
3
5
  export declare function finishWindow(): void;
4
6
  export declare function isViewFocused(view: View): boolean;
5
7
  export declare function focusView(view: View): void;
@@ -5,3 +5,9 @@ export declare function finishWindow(): void;
5
5
  export declare function isViewFocused(_view: View): boolean;
6
6
  export declare function focusView(_view: View): void;
7
7
  export declare function blurView(_view: View): void;
8
+ /** Back-button event data NativeScript hands its listeners: `cancel` stops the system's own back. */
9
+ export interface BackPressedEvent {
10
+ cancel: boolean;
11
+ }
12
+ /** This host has no back button to hear; nothing to unsubscribe. */
13
+ export declare function watchBackButton(_onBack: (event: BackPressedEvent) => void): () => void;
@@ -1,6 +1,8 @@
1
1
  import type { View } from '@nativescript/core';
2
+ import type { BackPressedEvent } from './window-source.js';
2
3
  export declare const canFinishWindow = false;
3
4
  export declare function finishWindow(): void;
4
5
  export declare function isViewFocused(view: View): boolean;
5
6
  export declare function focusView(view: View): void;
6
7
  export declare function blurView(view: View): void;
8
+ export declare function watchBackButton(_onBack: (event: BackPressedEvent) => void): () => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gjsify/adwaita-nativescript",
3
- "version": "0.63.0",
3
+ "version": "0.63.1-next.236",
4
4
  "description": "Native Adwaita widgets for the NativeScript runtime — real NativeScript components (StackLayout/GridLayout/Switch/Label) styled like Libadwaita, not a webview",
5
5
  "type": "module",
6
6
  "module": "lib/esm/index.js",
@@ -73,15 +73,15 @@
73
73
  "design-system"
74
74
  ],
75
75
  "dependencies": {
76
- "@gjsify/adwaita-core": "^0.63.0",
77
- "@gjsify/adwaita-fonts": "^0.63.0",
78
- "@gjsify/adwaita-icons": "^0.63.0",
79
- "@gjsify/canvas2d-core": "^0.63.0",
80
- "@gjsify/native-platform": "^0.63.0"
76
+ "@gjsify/adwaita-core": "0.63.1-next.236",
77
+ "@gjsify/adwaita-fonts": "0.63.1-next.236",
78
+ "@gjsify/adwaita-icons": "0.63.1-next.236",
79
+ "@gjsify/canvas2d-core": "0.63.1-next.236",
80
+ "@gjsify/native-platform": "0.63.1-next.236"
81
81
  },
82
82
  "peerDependencies": {
83
83
  "@nativescript/core": "*",
84
- "@gjsify/app-settings": "^0.63.0"
84
+ "@gjsify/app-settings": "0.63.1-next.236"
85
85
  },
86
86
  "peerDependenciesMeta": {
87
87
  "@nativescript/core": {
@@ -92,11 +92,11 @@
92
92
  }
93
93
  },
94
94
  "devDependencies": {
95
- "@gjsify/app-settings": "^0.63.0",
96
- "@gjsify/blueprint": "^0.63.0",
97
- "@gjsify/cli": "^0.63.0",
98
- "@gjsify/unit": "^0.63.0",
99
- "@gjsify/vite-plugin-blueprint": "^0.63.0",
95
+ "@gjsify/app-settings": "0.63.1-next.236",
96
+ "@gjsify/blueprint": "0.63.1-next.236",
97
+ "@gjsify/cli": "0.63.1-next.236",
98
+ "@gjsify/unit": "0.63.1-next.236",
99
+ "@gjsify/vite-plugin-blueprint": "0.63.1-next.236",
100
100
  "@types/node": "^25.9.2",
101
101
  "typescript": "^6.0.3"
102
102
  },
@@ -125,5 +125,6 @@
125
125
  "bugs": {
126
126
  "url": "https://github.com/gjsify/gjsify/issues"
127
127
  },
128
- "homepage": "https://github.com/gjsify/gjsify/tree/main/packages/nativescript-bridge/adwaita#readme"
128
+ "homepage": "https://github.com/gjsify/gjsify/tree/main/packages/nativescript-bridge/adwaita#readme",
129
+ "gitHead": "d4ae412daabae9cb89f4fa11ee7279a308c9e4be"
129
130
  }
@@ -503,10 +503,12 @@ const placementOf = (view: View) => {
503
503
 
504
504
  export class GridLayout extends LayoutBase {
505
505
  protected _rows: ItemSpec[] = [];
506
- protected _columns: ItemSpec[] = [];
506
+ // `_cols`, as `GridLayoutBase` names it. The double said `_columns`, and `AdwDataGrid`'s own
507
+ // `_columns` (its data) received every track spec here and nowhere on a device.
508
+ protected _cols: ItemSpec[] = [];
507
509
 
508
510
  addColumn(itemSpec: ItemSpec): void {
509
- this._columns.push(itemSpec);
511
+ this._cols.push(itemSpec);
510
512
  }
511
513
 
512
514
  addRow(itemSpec: ItemSpec): void {
@@ -519,7 +521,7 @@ export class GridLayout extends LayoutBase {
519
521
  }
520
522
 
521
523
  removeColumns(): void {
522
- this._columns.length = 0;
524
+ this._cols.length = 0;
523
525
  }
524
526
 
525
527
  removeRows(): void {