dockview-angular 4.10.0 → 4.12.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 +184 -46
  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 +184 -46
  15. package/dist/dockview-angular.amd.noStyle.js.map +1 -1
  16. package/dist/dockview-angular.cjs.js +184 -46
  17. package/dist/dockview-angular.cjs.js.map +1 -1
  18. package/dist/dockview-angular.esm.js +184 -46
  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 +184 -46
  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 +184 -46
  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 +2 -2
@@ -237,6 +237,7 @@ __decorate([
237
237
  exports.DockviewAngularComponent = DockviewAngularComponent = __decorate([
238
238
  (0, core_1.Component)({
239
239
  selector: 'dv-dockview',
240
+ standalone: true,
240
241
  template: '<div #dockviewContainer class="dockview-container"></div>',
241
242
  styles: [`
242
243
  :host {
@@ -244,7 +245,7 @@ exports.DockviewAngularComponent = DockviewAngularComponent = __decorate([
244
245
  width: 100%;
245
246
  height: 100%;
246
247
  }
247
-
248
+
248
249
  .dockview-container {
249
250
  width: 100%;
250
251
  height: 100%;
@@ -18,15 +18,13 @@ let DockviewAngularModule = class DockviewAngularModule {
18
18
  exports.DockviewAngularModule = DockviewAngularModule;
19
19
  exports.DockviewAngularModule = DockviewAngularModule = __decorate([
20
20
  (0, core_1.NgModule)({
21
- declarations: [
21
+ imports: [
22
+ common_1.CommonModule,
22
23
  dockview_angular_component_1.DockviewAngularComponent,
23
24
  gridview_angular_component_1.GridviewAngularComponent,
24
25
  paneview_angular_component_1.PaneviewAngularComponent,
25
26
  splitview_angular_component_1.SplitviewAngularComponent
26
27
  ],
27
- imports: [
28
- common_1.CommonModule
29
- ],
30
28
  exports: [
31
29
  dockview_angular_component_1.DockviewAngularComponent,
32
30
  gridview_angular_component_1.GridviewAngularComponent,
@@ -121,6 +121,7 @@ __decorate([
121
121
  exports.GridviewAngularComponent = GridviewAngularComponent = __decorate([
122
122
  (0, core_1.Component)({
123
123
  selector: 'dv-gridview',
124
+ standalone: true,
124
125
  template: '<div #gridviewContainer class="gridview-container"></div>',
125
126
  styles: [`
126
127
  :host {
@@ -128,7 +129,7 @@ exports.GridviewAngularComponent = GridviewAngularComponent = __decorate([
128
129
  width: 100%;
129
130
  height: 100%;
130
131
  }
131
-
132
+
132
133
  .gridview-container {
133
134
  width: 100%;
134
135
  height: 100%;
@@ -147,6 +147,7 @@ __decorate([
147
147
  exports.PaneviewAngularComponent = PaneviewAngularComponent = __decorate([
148
148
  (0, core_1.Component)({
149
149
  selector: 'dv-paneview',
150
+ standalone: true,
150
151
  template: '<div #paneviewContainer class="paneview-container"></div>',
151
152
  styles: [`
152
153
  :host {
@@ -154,7 +155,7 @@ exports.PaneviewAngularComponent = PaneviewAngularComponent = __decorate([
154
155
  width: 100%;
155
156
  height: 100%;
156
157
  }
157
-
158
+
158
159
  .paneview-container {
159
160
  width: 100%;
160
161
  height: 100%;
@@ -121,6 +121,7 @@ __decorate([
121
121
  exports.SplitviewAngularComponent = SplitviewAngularComponent = __decorate([
122
122
  (0, core_1.Component)({
123
123
  selector: 'dv-splitview',
124
+ standalone: true,
124
125
  template: '<div #splitviewContainer class="splitview-container"></div>',
125
126
  styles: [`
126
127
  :host {
@@ -128,7 +129,7 @@ exports.SplitviewAngularComponent = SplitviewAngularComponent = __decorate([
128
129
  width: 100%;
129
130
  height: 100%;
130
131
  }
131
-
132
+
132
133
  .splitview-container {
133
134
  width: 100%;
134
135
  height: 100%;
@@ -15,12 +15,19 @@ class AngularRenderer {
15
15
  return this._element;
16
16
  }
17
17
  init(parameters) {
18
- this.render(parameters);
18
+ // If already initialized, just update the parameters
19
+ if (this.componentRef) {
20
+ this.update(parameters);
21
+ }
22
+ else {
23
+ this.render(parameters);
24
+ }
19
25
  }
20
26
  update(params) {
21
27
  if (this.componentRef) {
22
28
  Object.keys(params).forEach(key => {
23
- if (this.componentRef.instance.hasOwnProperty(key)) {
29
+ // Use 'in' operator instead of hasOwnProperty to support getter/setter properties
30
+ if (key in this.componentRef.instance) {
24
31
  this.componentRef.instance[key] = params[key];
25
32
  }
26
33
  });
@@ -36,7 +43,8 @@ class AngularRenderer {
36
43
  });
37
44
  // Set initial parameters
38
45
  Object.keys(parameters).forEach(key => {
39
- if (this.componentRef.instance.hasOwnProperty(key)) {
46
+ // Use 'in' operator instead of hasOwnProperty to support getter/setter properties
47
+ if (key in this.componentRef.instance) {
40
48
  this.componentRef.instance[key] = parameters[key];
41
49
  }
42
50
  });
@@ -95,6 +95,7 @@ class AngularFrameworkComponentFactory {
95
95
  injector: this.injector,
96
96
  environmentInjector: this.environmentInjector
97
97
  });
98
+ // Initialize with empty props - dockview-core will call init() again with actual IGroupHeaderProps
98
99
  renderer.init({});
99
100
  return renderer;
100
101
  }