dockview-angular 4.11.0 → 4.13.0

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 (37) hide show
  1. package/dist/cjs/lib/dockview/dockview-angular.component.js +2 -1
  2. package/dist/cjs/lib/dockview-angular.module.js +2 -4
  3. package/dist/cjs/lib/gridview/gridview-angular.component.js +2 -1
  4. package/dist/cjs/lib/paneview/paneview-angular.component.js +2 -1
  5. package/dist/cjs/lib/splitview/splitview-angular.component.js +2 -1
  6. package/dist/cjs/lib/utils/angular-renderer.js +11 -3
  7. package/dist/cjs/lib/utils/component-factory.js +1 -0
  8. package/dist/dockview-angular.amd.js +194 -65
  9. package/dist/dockview-angular.amd.js.map +1 -1
  10. package/dist/dockview-angular.amd.min.js +2 -2
  11. package/dist/dockview-angular.amd.min.js.map +1 -1
  12. package/dist/dockview-angular.amd.min.noStyle.js +2 -2
  13. package/dist/dockview-angular.amd.min.noStyle.js.map +1 -1
  14. package/dist/dockview-angular.amd.noStyle.js +194 -65
  15. package/dist/dockview-angular.amd.noStyle.js.map +1 -1
  16. package/dist/dockview-angular.cjs.js +194 -65
  17. package/dist/dockview-angular.cjs.js.map +1 -1
  18. package/dist/dockview-angular.esm.js +194 -66
  19. package/dist/dockview-angular.esm.js.map +1 -1
  20. package/dist/dockview-angular.esm.min.js +2 -2
  21. package/dist/dockview-angular.esm.min.js.map +1 -1
  22. package/dist/dockview-angular.js +194 -65
  23. package/dist/dockview-angular.js.map +1 -1
  24. package/dist/dockview-angular.min.js +2 -2
  25. package/dist/dockview-angular.min.js.map +1 -1
  26. package/dist/dockview-angular.min.noStyle.js +2 -2
  27. package/dist/dockview-angular.min.noStyle.js.map +1 -1
  28. package/dist/dockview-angular.noStyle.js +194 -65
  29. package/dist/dockview-angular.noStyle.js.map +1 -1
  30. package/dist/esm/lib/dockview/dockview-angular.component.js +2 -1
  31. package/dist/esm/lib/dockview-angular.module.js +2 -4
  32. package/dist/esm/lib/gridview/gridview-angular.component.js +2 -1
  33. package/dist/esm/lib/paneview/paneview-angular.component.js +2 -1
  34. package/dist/esm/lib/splitview/splitview-angular.component.js +2 -1
  35. package/dist/esm/lib/utils/angular-renderer.js +11 -3
  36. package/dist/esm/lib/utils/component-factory.js +1 -0
  37. package/package.json +4 -4
@@ -233,6 +233,7 @@ __decorate([
233
233
  DockviewAngularComponent = __decorate([
234
234
  Component({
235
235
  selector: 'dv-dockview',
236
+ standalone: true,
236
237
  template: '<div #dockviewContainer class="dockview-container"></div>',
237
238
  styles: [`
238
239
  :host {
@@ -240,7 +241,7 @@ DockviewAngularComponent = __decorate([
240
241
  width: 100%;
241
242
  height: 100%;
242
243
  }
243
-
244
+
244
245
  .dockview-container {
245
246
  width: 100%;
246
247
  height: 100%;
@@ -14,15 +14,13 @@ let DockviewAngularModule = class DockviewAngularModule {
14
14
  };
15
15
  DockviewAngularModule = __decorate([
16
16
  NgModule({
17
- declarations: [
17
+ imports: [
18
+ CommonModule,
18
19
  DockviewAngularComponent,
19
20
  GridviewAngularComponent,
20
21
  PaneviewAngularComponent,
21
22
  SplitviewAngularComponent
22
23
  ],
23
- imports: [
24
- CommonModule
25
- ],
26
24
  exports: [
27
25
  DockviewAngularComponent,
28
26
  GridviewAngularComponent,
@@ -117,6 +117,7 @@ __decorate([
117
117
  GridviewAngularComponent = __decorate([
118
118
  Component({
119
119
  selector: 'dv-gridview',
120
+ standalone: true,
120
121
  template: '<div #gridviewContainer class="gridview-container"></div>',
121
122
  styles: [`
122
123
  :host {
@@ -124,7 +125,7 @@ GridviewAngularComponent = __decorate([
124
125
  width: 100%;
125
126
  height: 100%;
126
127
  }
127
-
128
+
128
129
  .gridview-container {
129
130
  width: 100%;
130
131
  height: 100%;
@@ -143,6 +143,7 @@ __decorate([
143
143
  PaneviewAngularComponent = __decorate([
144
144
  Component({
145
145
  selector: 'dv-paneview',
146
+ standalone: true,
146
147
  template: '<div #paneviewContainer class="paneview-container"></div>',
147
148
  styles: [`
148
149
  :host {
@@ -150,7 +151,7 @@ PaneviewAngularComponent = __decorate([
150
151
  width: 100%;
151
152
  height: 100%;
152
153
  }
153
-
154
+
154
155
  .paneview-container {
155
156
  width: 100%;
156
157
  height: 100%;
@@ -117,6 +117,7 @@ __decorate([
117
117
  SplitviewAngularComponent = __decorate([
118
118
  Component({
119
119
  selector: 'dv-splitview',
120
+ standalone: true,
120
121
  template: '<div #splitviewContainer class="splitview-container"></div>',
121
122
  styles: [`
122
123
  :host {
@@ -124,7 +125,7 @@ SplitviewAngularComponent = __decorate([
124
125
  width: 100%;
125
126
  height: 100%;
126
127
  }
127
-
128
+
128
129
  .splitview-container {
129
130
  width: 100%;
130
131
  height: 100%;
@@ -12,12 +12,19 @@ export class AngularRenderer {
12
12
  return this._element;
13
13
  }
14
14
  init(parameters) {
15
- this.render(parameters);
15
+ // If already initialized, just update the parameters
16
+ if (this.componentRef) {
17
+ this.update(parameters);
18
+ }
19
+ else {
20
+ this.render(parameters);
21
+ }
16
22
  }
17
23
  update(params) {
18
24
  if (this.componentRef) {
19
25
  Object.keys(params).forEach(key => {
20
- if (this.componentRef.instance.hasOwnProperty(key)) {
26
+ // Use 'in' operator instead of hasOwnProperty to support getter/setter properties
27
+ if (key in this.componentRef.instance) {
21
28
  this.componentRef.instance[key] = params[key];
22
29
  }
23
30
  });
@@ -33,7 +40,8 @@ export class AngularRenderer {
33
40
  });
34
41
  // Set initial parameters
35
42
  Object.keys(parameters).forEach(key => {
36
- if (this.componentRef.instance.hasOwnProperty(key)) {
43
+ // Use 'in' operator instead of hasOwnProperty to support getter/setter properties
44
+ if (key in this.componentRef.instance) {
37
45
  this.componentRef.instance[key] = parameters[key];
38
46
  }
39
47
  });
@@ -92,6 +92,7 @@ export class AngularFrameworkComponentFactory {
92
92
  injector: this.injector,
93
93
  environmentInjector: this.environmentInjector
94
94
  });
95
+ // Initialize with empty props - dockview-core will call init() again with actual IGroupHeaderProps
95
96
  renderer.init({});
96
97
  return renderer;
97
98
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dockview-angular",
3
- "version": "4.11.0",
3
+ "version": "4.13.0",
4
4
  "description": "Zero dependency layout manager supporting tabs, grids and splitviews",
5
5
  "keywords": [
6
6
  "splitview",
@@ -53,11 +53,11 @@
53
53
  "test:cov": "cross-env ../../node_modules/.bin/jest --selectProjects dockview-angular --coverage"
54
54
  },
55
55
  "dependencies": {
56
- "dockview-core": "^4.11.0"
56
+ "dockview-core": "^4.13.0"
57
57
  },
58
58
  "peerDependencies": {
59
- "@angular/common": ">=14.0.0",
60
- "@angular/core": ">=14.0.0",
59
+ "@angular/common": ">=21.0.6",
60
+ "@angular/core": ">=21.0.6",
61
61
  "rxjs": ">=7.0.0"
62
62
  },
63
63
  "devDependencies": {