igniteui-dockmanager 2.1.0-RC.0 → 2.1.1
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.
- package/README.md +4 -4
- package/components/button/button-component.js +3 -4
- package/components/context-menu/context-menu.js +3 -4
- package/components/dockmanager/docking/edge-docking-indicator-component.js +3 -4
- package/components/dockmanager/docking/joystick-icon-component.js +3 -4
- package/components/dockmanager/docking/joystick-indicator-component.js +3 -4
- package/components/dockmanager/docking/root-docking-indicator-component.js +3 -4
- package/components/dockmanager/docking/splitter-docking-indicator-component.js +3 -4
- package/components/dockmanager/dockmanager-component.js +15 -16
- package/components/dockmanager/dockmanager.service.js +1 -1
- package/components/dockmanager/pane-navigator/pane-navigator-component.js +3 -4
- package/components/dockmanager/panes/content-pane-component.js +3 -4
- package/components/dockmanager/panes/document-host-component.js +3 -4
- package/components/dockmanager/panes/floating-pane-component.js +3 -4
- package/components/dockmanager/panes/pane-header-component.js +3 -4
- package/components/dockmanager/panes/resizer-component.js +2 -3
- package/components/dockmanager/panes/split-pane-component.js +3 -4
- package/components/dockmanager/panes/splitter-component.d.ts +3 -3
- package/components/dockmanager/panes/splitter-component.js +3 -4
- package/components/dockmanager/panes/unpinned-pane-header-component.js +3 -4
- package/components/icon/icon-component.js +3 -4
- package/components/sample-component/sample-component.js +109 -109
- package/components/tabs/tab-header-component.js +3 -4
- package/components/tabs/tab-panel-component.js +3 -4
- package/components/tabs/tabs-component.js +3 -4
- package/custom-elements.json +65 -3
- package/igniteui-dockmanager.html-data.json +1 -1
- package/package.json +1 -1
- package/web-types.json +1 -1
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
[Ignite UI Dock Manager Web Component](https://www.infragistics.com/) provides means to manage the layout of your application through panes, allowing your end-users to customize it further by pinning, resizing, moving and hiding panes.
|
|
4
4
|
|
|
5
5
|
> [!IMPORTANT]
|
|
6
|
-
> **Version 2.0+ Notice:** The Dock Manager has been migrated from Stencil to **Lit**. For the legacy Stencil-based version, please refer to the [1.
|
|
6
|
+
> **Version 2.0+ Notice:** The Dock Manager has been migrated from Stencil to **Lit**. For the legacy Stencil-based version, please refer to the [1.x branch](https://github.com/IgniteUI/dock-manager/tree/1.x).
|
|
7
7
|
|
|
8
8
|
## NPM Package
|
|
9
9
|
|
|
@@ -26,9 +26,9 @@ defineComponents(IgcDockManagerComponent);
|
|
|
26
26
|
|
|
27
27
|
```
|
|
28
28
|
|
|
29
|
-
### Legacy Stencil Version (v1.
|
|
29
|
+
### Legacy Stencil Version (v1.x)
|
|
30
30
|
|
|
31
|
-
If you are using the version from the `1.
|
|
31
|
+
If you are using the version from the `1.x` branch, it is necessary to import and call the `defineCustomElements()` function:
|
|
32
32
|
|
|
33
33
|
```ts
|
|
34
34
|
import { defineCustomElements } from 'igniteui-dockmanager/loader';
|
|
@@ -65,7 +65,7 @@ To ensure stability for our customers, we maintain the following branch structur
|
|
|
65
65
|
| --- | --- | --- | --- |
|
|
66
66
|
| `master` | Stable | **Lit** | Active Development |
|
|
67
67
|
| `develop` | Bleeding Edge | **Lit** | Integration |
|
|
68
|
-
| `1.
|
|
68
|
+
| `1.x` | Legacy LTS | **Stencil** | Security & Critical Bug fixes Only |
|
|
69
69
|
|
|
70
70
|
## Support
|
|
71
71
|
|
|
@@ -8,7 +8,7 @@ import { html, LitElement } from 'lit';
|
|
|
8
8
|
import { property } from 'lit/decorators.js';
|
|
9
9
|
import { registerComponent } from '../../common/definitions/register.js';
|
|
10
10
|
import { styles } from './button-component.css.js';
|
|
11
|
-
class IgcButtonDMComponent extends LitElement {
|
|
11
|
+
export default class IgcButtonDMComponent extends LitElement {
|
|
12
12
|
constructor() {
|
|
13
13
|
super(...arguments);
|
|
14
14
|
this.disabled = false;
|
|
@@ -16,6 +16,8 @@ class IgcButtonDMComponent extends LitElement {
|
|
|
16
16
|
this.name = '';
|
|
17
17
|
this.value = '';
|
|
18
18
|
}
|
|
19
|
+
static { this.tagName = 'igc-button-component'; }
|
|
20
|
+
static { this.styles = [styles]; }
|
|
19
21
|
static register() {
|
|
20
22
|
registerComponent(IgcButtonDMComponent);
|
|
21
23
|
}
|
|
@@ -33,9 +35,6 @@ class IgcButtonDMComponent extends LitElement {
|
|
|
33
35
|
`;
|
|
34
36
|
}
|
|
35
37
|
}
|
|
36
|
-
IgcButtonDMComponent.tagName = 'igc-button-component';
|
|
37
|
-
IgcButtonDMComponent.styles = [styles];
|
|
38
|
-
export default IgcButtonDMComponent;
|
|
39
38
|
__decorate([
|
|
40
39
|
property({ type: Boolean })
|
|
41
40
|
], IgcButtonDMComponent.prototype, "disabled", void 0);
|
|
@@ -12,7 +12,9 @@ import { EventEmitterMixin } from '../../common/mixins/event-emitter.js';
|
|
|
12
12
|
import { partNameMap } from '../../utils/utils.js';
|
|
13
13
|
import IgcIconDMComponent from '../icon/icon-component.js';
|
|
14
14
|
import { styles } from './context-menu.css.js';
|
|
15
|
-
class IgcContextMenuComponent extends EventEmitterMixin(LitElement) {
|
|
15
|
+
export default class IgcContextMenuComponent extends EventEmitterMixin(LitElement) {
|
|
16
|
+
static { this.tagName = 'igc-context-menu'; }
|
|
17
|
+
static { this.styles = [styles]; }
|
|
16
18
|
static register() {
|
|
17
19
|
registerComponent(IgcContextMenuComponent, IgcIconDMComponent);
|
|
18
20
|
}
|
|
@@ -232,9 +234,6 @@ class IgcContextMenuComponent extends EventEmitterMixin(LitElement) {
|
|
|
232
234
|
`;
|
|
233
235
|
}
|
|
234
236
|
}
|
|
235
|
-
IgcContextMenuComponent.tagName = 'igc-context-menu';
|
|
236
|
-
IgcContextMenuComponent.styles = [styles];
|
|
237
|
-
export default IgcContextMenuComponent;
|
|
238
237
|
__decorate([
|
|
239
238
|
state()
|
|
240
239
|
], IgcContextMenuComponent.prototype, "activeIndex", void 0);
|
|
@@ -9,7 +9,9 @@ import { property } from 'lit/decorators.js';
|
|
|
9
9
|
import { registerComponent } from '../../../common/definitions/register.js';
|
|
10
10
|
import IgcIconDMComponent from '../../icon/icon-component.js';
|
|
11
11
|
import { styles } from './edge-docking-indicator-component.css.js';
|
|
12
|
-
class IgcEdgeDockingIndicatorComponent extends LitElement {
|
|
12
|
+
export default class IgcEdgeDockingIndicatorComponent extends LitElement {
|
|
13
|
+
static { this.tagName = 'igc-edge-docking-indicator'; }
|
|
14
|
+
static { this.styles = [styles]; }
|
|
13
15
|
static register() {
|
|
14
16
|
registerComponent(IgcEdgeDockingIndicatorComponent, IgcIconDMComponent);
|
|
15
17
|
}
|
|
@@ -38,9 +40,6 @@ class IgcEdgeDockingIndicatorComponent extends LitElement {
|
|
|
38
40
|
`;
|
|
39
41
|
}
|
|
40
42
|
}
|
|
41
|
-
IgcEdgeDockingIndicatorComponent.tagName = 'igc-edge-docking-indicator';
|
|
42
|
-
IgcEdgeDockingIndicatorComponent.styles = [styles];
|
|
43
|
-
export default IgcEdgeDockingIndicatorComponent;
|
|
44
43
|
__decorate([
|
|
45
44
|
property({ type: String })
|
|
46
45
|
], IgcEdgeDockingIndicatorComponent.prototype, "position", void 0);
|
|
@@ -9,13 +9,15 @@ import { property } from 'lit/decorators.js';
|
|
|
9
9
|
import { registerComponent } from '../../../common/definitions/register.js';
|
|
10
10
|
import IgcIconDMComponent from '../../icon/icon-component.js';
|
|
11
11
|
import { styles } from './joystick-icon-component.css.js';
|
|
12
|
-
class IgcJoystickIconComponent extends LitElement {
|
|
12
|
+
export default class IgcJoystickIconComponent extends LitElement {
|
|
13
13
|
constructor() {
|
|
14
14
|
super(...arguments);
|
|
15
15
|
this.isDocHost = false;
|
|
16
16
|
this.direction = 'ltr';
|
|
17
17
|
this.empty = false;
|
|
18
18
|
}
|
|
19
|
+
static { this.tagName = 'igc-joystick-icon'; }
|
|
20
|
+
static { this.styles = [styles]; }
|
|
19
21
|
static register() {
|
|
20
22
|
registerComponent(IgcJoystickIconComponent, IgcIconDMComponent);
|
|
21
23
|
}
|
|
@@ -192,9 +194,6 @@ class IgcJoystickIconComponent extends LitElement {
|
|
|
192
194
|
return html ` ${!this.empty ? this._renderIcon() : nothing} `;
|
|
193
195
|
}
|
|
194
196
|
}
|
|
195
|
-
IgcJoystickIconComponent.tagName = 'igc-joystick-icon';
|
|
196
|
-
IgcJoystickIconComponent.styles = [styles];
|
|
197
|
-
export default IgcJoystickIconComponent;
|
|
198
197
|
__decorate([
|
|
199
198
|
property({ type: Boolean })
|
|
200
199
|
], IgcJoystickIconComponent.prototype, "isDocHost", void 0);
|
|
@@ -11,13 +11,15 @@ import { registerComponent } from '../../../common/definitions/register.js';
|
|
|
11
11
|
import { closestElement, getDirection } from '../../../utils/utils.js';
|
|
12
12
|
import IgcJoystickIconComponent from './joystick-icon-component.js';
|
|
13
13
|
import { styles } from './joystick-indicator-component.css.js';
|
|
14
|
-
class IgcJoystickIndicatorComponent extends LitElement {
|
|
14
|
+
export default class IgcJoystickIndicatorComponent extends LitElement {
|
|
15
15
|
constructor() {
|
|
16
16
|
super(...arguments);
|
|
17
17
|
this.isDocHost = false;
|
|
18
18
|
this.documentOnlyDrag = false;
|
|
19
19
|
this.allowCenterDock = false;
|
|
20
20
|
}
|
|
21
|
+
static { this.tagName = 'igc-joystick-indicator'; }
|
|
22
|
+
static { this.styles = [styles]; }
|
|
21
23
|
static register() {
|
|
22
24
|
registerComponent(IgcJoystickIndicatorComponent, IgcJoystickIconComponent);
|
|
23
25
|
}
|
|
@@ -107,9 +109,6 @@ class IgcJoystickIndicatorComponent extends LitElement {
|
|
|
107
109
|
`;
|
|
108
110
|
}
|
|
109
111
|
}
|
|
110
|
-
IgcJoystickIndicatorComponent.tagName = 'igc-joystick-indicator';
|
|
111
|
-
IgcJoystickIndicatorComponent.styles = [styles];
|
|
112
|
-
export default IgcJoystickIndicatorComponent;
|
|
113
112
|
__decorate([
|
|
114
113
|
state()
|
|
115
114
|
], IgcJoystickIndicatorComponent.prototype, "isDocHost", void 0);
|
|
@@ -9,7 +9,9 @@ import { property } from 'lit/decorators.js';
|
|
|
9
9
|
import { registerComponent } from '../../../common/definitions/register.js';
|
|
10
10
|
import IgcIconDMComponent from '../../icon/icon-component.js';
|
|
11
11
|
import { styles } from './root-docking-indicator-component.css.js';
|
|
12
|
-
class IgcRootDockingIndicatorComponent extends LitElement {
|
|
12
|
+
export default class IgcRootDockingIndicatorComponent extends LitElement {
|
|
13
|
+
static { this.tagName = 'igc-root-docking-indicator'; }
|
|
14
|
+
static { this.styles = [styles]; }
|
|
13
15
|
static register() {
|
|
14
16
|
registerComponent(IgcRootDockingIndicatorComponent, IgcIconDMComponent);
|
|
15
17
|
}
|
|
@@ -38,9 +40,6 @@ class IgcRootDockingIndicatorComponent extends LitElement {
|
|
|
38
40
|
`;
|
|
39
41
|
}
|
|
40
42
|
}
|
|
41
|
-
IgcRootDockingIndicatorComponent.tagName = 'igc-root-docking-indicator';
|
|
42
|
-
IgcRootDockingIndicatorComponent.styles = [styles];
|
|
43
|
-
export default IgcRootDockingIndicatorComponent;
|
|
44
43
|
__decorate([
|
|
45
44
|
property({ type: String })
|
|
46
45
|
], IgcRootDockingIndicatorComponent.prototype, "position", void 0);
|
|
@@ -9,7 +9,9 @@ import { property } from 'lit/decorators.js';
|
|
|
9
9
|
import { registerComponent } from '../../../common/definitions/register.js';
|
|
10
10
|
import IgcIconDMComponent from '../../icon/icon-component.js';
|
|
11
11
|
import { styles } from './splitter-docking-indicator-component.css.js';
|
|
12
|
-
class IgcSplitterDockingIndicatorComponent extends LitElement {
|
|
12
|
+
export default class IgcSplitterDockingIndicatorComponent extends LitElement {
|
|
13
|
+
static { this.tagName = 'igc-splitter-docking-indicator'; }
|
|
14
|
+
static { this.styles = [styles]; }
|
|
13
15
|
static register() {
|
|
14
16
|
registerComponent(IgcSplitterDockingIndicatorComponent, IgcIconDMComponent);
|
|
15
17
|
}
|
|
@@ -31,9 +33,6 @@ class IgcSplitterDockingIndicatorComponent extends LitElement {
|
|
|
31
33
|
`;
|
|
32
34
|
}
|
|
33
35
|
}
|
|
34
|
-
IgcSplitterDockingIndicatorComponent.tagName = 'igc-splitter-docking-indicator';
|
|
35
|
-
IgcSplitterDockingIndicatorComponent.styles = [styles];
|
|
36
|
-
export default IgcSplitterDockingIndicatorComponent;
|
|
37
36
|
__decorate([
|
|
38
37
|
property({ type: String })
|
|
39
38
|
], IgcSplitterDockingIndicatorComponent.prototype, "position", void 0);
|
|
@@ -46,7 +46,9 @@ var ActionReason;
|
|
|
46
46
|
ActionReason["maximizeOrMinimize"] = "maximizeOrMinimize";
|
|
47
47
|
})(ActionReason || (ActionReason = {}));
|
|
48
48
|
const PANE_HEADER_HEIGHT = 40;
|
|
49
|
-
class IgcDockManagerComponent extends EventEmitterMixin(LitElement) {
|
|
49
|
+
export default class IgcDockManagerComponent extends EventEmitterMixin(LitElement) {
|
|
50
|
+
static { this.tagName = 'igc-dockmanager'; }
|
|
51
|
+
static { this.styles = [styles]; }
|
|
50
52
|
static register() {
|
|
51
53
|
registerComponent(IgcDockManagerComponent, IgcContentPaneComponent, IgcContextMenuComponent, IgcDocumentHostComponent, IgcFloatingPaneComponent, IgcJoystickIndicatorComponent, IgcEdgeDockingIndicatorComponent, IgcPaneHeaderComponent, IgcPaneNavigatorComponent, IgcRootDockingIndicatorComponent, IgcSplitPaneComponent, IgcSplitterComponent, IgcSplitterDockingIndicatorComponent, IgcTabHeaderComponent, IgcTabPanelComponent, IgcTabsComponent, IgcTrialWatermark, IgcUnpinnedPaneHeaderComponent);
|
|
52
54
|
}
|
|
@@ -283,7 +285,7 @@ class IgcDockManagerComponent extends EventEmitterMixin(LitElement) {
|
|
|
283
285
|
},
|
|
284
286
|
{
|
|
285
287
|
slot: 'splitterHandle',
|
|
286
|
-
targetName: 'igc-splitter',
|
|
288
|
+
targetName: 'igc-splitter-component',
|
|
287
289
|
targetSlot: 'splitterHandle',
|
|
288
290
|
targetPart: 'splitter-handle',
|
|
289
291
|
},
|
|
@@ -542,7 +544,7 @@ class IgcDockManagerComponent extends EventEmitterMixin(LitElement) {
|
|
|
542
544
|
const splitPane = this.panesElementMap.getByValue(splitPaneEl);
|
|
543
545
|
this.splitPaneToResize = splitPane;
|
|
544
546
|
if (this.flyoutPane) {
|
|
545
|
-
const splitterEl = pathHTMLElements.find((p) => p.tagName.toLowerCase() === 'igc-splitter');
|
|
547
|
+
const splitterEl = pathHTMLElements.find((p) => p.tagName.toLowerCase() === 'igc-splitter-component');
|
|
546
548
|
const isFlyoutSplitter = splitterEl?.flyoutLocation !== undefined;
|
|
547
549
|
if (!isFlyoutSplitter) {
|
|
548
550
|
this.service.flyoutPane(this.flyoutPane);
|
|
@@ -827,7 +829,7 @@ class IgcDockManagerComponent extends EventEmitterMixin(LitElement) {
|
|
|
827
829
|
const splitPaneChildren = Array.from(splitPaneEl.children);
|
|
828
830
|
const paneComponents = splitPaneChildren
|
|
829
831
|
.filter((c) => c instanceof HTMLElement)
|
|
830
|
-
.filter((c) => c.tagName.toLowerCase() !== 'igc-splitter');
|
|
832
|
+
.filter((c) => c.tagName.toLowerCase() !== 'igc-splitter-component');
|
|
831
833
|
const parentPane = this.service.getParent(pane);
|
|
832
834
|
const parentPaneElement = this.panesElementMap.get(parentPane);
|
|
833
835
|
const sizeProperty = parentPane.orientation === 'horizontal'
|
|
@@ -860,7 +862,7 @@ class IgcDockManagerComponent extends EventEmitterMixin(LitElement) {
|
|
|
860
862
|
if (!splitPane || !parentPane.orientation)
|
|
861
863
|
return;
|
|
862
864
|
const splitPaneChildren = Array.from(splitPane.children);
|
|
863
|
-
const paneComponents = splitPaneChildren.filter((c) => c.tagName.toLowerCase() !== 'igc-splitter');
|
|
865
|
+
const paneComponents = splitPaneChildren.filter((c) => c.tagName.toLowerCase() !== 'igc-splitter-component');
|
|
864
866
|
previousPane?.classList.remove('resize-target');
|
|
865
867
|
const sizeProperty = parentPane.orientation === 'horizontal' ? 'offsetWidth' : 'offsetHeight';
|
|
866
868
|
const sizeSum = paneComponents.reduce((s, p) => p[sizeProperty] + s, 0);
|
|
@@ -1078,7 +1080,7 @@ class IgcDockManagerComponent extends EventEmitterMixin(LitElement) {
|
|
|
1078
1080
|
renderSplitter(parentPane, pane) {
|
|
1079
1081
|
const scrollSpeed = this.autoScrollConfig?.scrollSpeed;
|
|
1080
1082
|
return html `
|
|
1081
|
-
<igc-splitter
|
|
1083
|
+
<igc-splitter-component
|
|
1082
1084
|
.splitPaneOrientation=${parentPane.orientation}
|
|
1083
1085
|
.parentUseFixedSize=${parentPane.useFixedSize ?? false}
|
|
1084
1086
|
.scrollSpeed=${scrollSpeed}
|
|
@@ -1086,7 +1088,7 @@ class IgcDockManagerComponent extends EventEmitterMixin(LitElement) {
|
|
|
1086
1088
|
@igcResizeEnd=${this.handleSplitterResizeEnd.bind(this, parentPane, pane)}
|
|
1087
1089
|
@focus=${this.clearActivePane.bind(this)}
|
|
1088
1090
|
>
|
|
1089
|
-
</igc-splitter>
|
|
1091
|
+
</igc-splitter-component>
|
|
1090
1092
|
`;
|
|
1091
1093
|
}
|
|
1092
1094
|
removeHoveredPane() {
|
|
@@ -1297,13 +1299,13 @@ class IgcDockManagerComponent extends EventEmitterMixin(LitElement) {
|
|
|
1297
1299
|
while (parentElement) {
|
|
1298
1300
|
if (parentElement.previousElementSibling &&
|
|
1299
1301
|
parentElement.previousElementSibling?.tagName.toLowerCase() ===
|
|
1300
|
-
'igc-splitter') {
|
|
1302
|
+
'igc-splitter-component') {
|
|
1301
1303
|
const parentPreviousElementSiblingRect = parentElement.previousElementSibling?.getBoundingClientRect();
|
|
1302
1304
|
reducedRect = this.getVisibleRect(reducedRect, parentPreviousElementSiblingRect, parentPreviousElementSiblingRect.width <= 5, true);
|
|
1303
1305
|
}
|
|
1304
1306
|
if (parentElement.nextElementSibling &&
|
|
1305
1307
|
parentElement.nextElementSibling?.tagName.toLowerCase() ===
|
|
1306
|
-
'igc-splitter') {
|
|
1308
|
+
'igc-splitter-component') {
|
|
1307
1309
|
const parentNextElementSiblingRect = parentElement.nextElementSibling?.getBoundingClientRect();
|
|
1308
1310
|
reducedRect = this.getVisibleRect(reducedRect, parentNextElementSiblingRect, parentNextElementSiblingRect.width <= 5, false);
|
|
1309
1311
|
}
|
|
@@ -1337,7 +1339,7 @@ class IgcDockManagerComponent extends EventEmitterMixin(LitElement) {
|
|
|
1337
1339
|
? elements.filter((e) => e.tagName.toLowerCase() === 'igc-document-host')
|
|
1338
1340
|
: [];
|
|
1339
1341
|
if (docHost.length > 0) {
|
|
1340
|
-
const splitter = docHost[0].querySelector('igc-splitter');
|
|
1342
|
+
const splitter = docHost[0].querySelector('igc-splitter-component');
|
|
1341
1343
|
if (splitter) {
|
|
1342
1344
|
const splitterRect = splitter.getBoundingClientRect();
|
|
1343
1345
|
this.splitterRect = splitterRect;
|
|
@@ -1514,7 +1516,7 @@ class IgcDockManagerComponent extends EventEmitterMixin(LitElement) {
|
|
|
1514
1516
|
}
|
|
1515
1517
|
if (!this.allowSplitterDock)
|
|
1516
1518
|
return;
|
|
1517
|
-
const splitters = this.shadowRoot?.querySelectorAll('igc-splitter');
|
|
1519
|
+
const splitters = this.shadowRoot?.querySelectorAll('igc-splitter-component');
|
|
1518
1520
|
let splitterFound = false;
|
|
1519
1521
|
if (!splitters) {
|
|
1520
1522
|
this.splitterProximityDock = null;
|
|
@@ -2813,13 +2815,13 @@ class IgcDockManagerComponent extends EventEmitterMixin(LitElement) {
|
|
|
2813
2815
|
style=${styleMap({ zIndex: maximized ? 10002 : 2 })}
|
|
2814
2816
|
>
|
|
2815
2817
|
${this.renderContentPane(this.flyoutPane, false, true)}
|
|
2816
|
-
<igc-splitter
|
|
2818
|
+
<igc-splitter-component
|
|
2817
2819
|
.flyoutLocation=${location}
|
|
2818
2820
|
.splitPaneOrientation=${splitPaneOrientation}
|
|
2819
2821
|
@igcResizeStart=${this.handleSplitterResizeStart.bind(this, this.flyoutPane)}
|
|
2820
2822
|
@igcResizeEnd=${this.handleFlyoutSplitterResizeEnd.bind(this, this.flyoutPane, splitPaneOrientation)}
|
|
2821
2823
|
>
|
|
2822
|
-
</igc-splitter>
|
|
2824
|
+
</igc-splitter-component>
|
|
2823
2825
|
</div>
|
|
2824
2826
|
`;
|
|
2825
2827
|
}
|
|
@@ -3000,9 +3002,6 @@ class IgcDockManagerComponent extends EventEmitterMixin(LitElement) {
|
|
|
3000
3002
|
`;
|
|
3001
3003
|
}
|
|
3002
3004
|
}
|
|
3003
|
-
IgcDockManagerComponent.tagName = 'igc-dockmanager';
|
|
3004
|
-
IgcDockManagerComponent.styles = [styles];
|
|
3005
|
-
export default IgcDockManagerComponent;
|
|
3006
3005
|
__decorate([
|
|
3007
3006
|
state()
|
|
3008
3007
|
], IgcDockManagerComponent.prototype, "dropTargetPaneInfo", void 0);
|
|
@@ -309,7 +309,7 @@ export class IgcDockManagerService {
|
|
|
309
309
|
if (!dockManagerElement || !dockManagerElement.shadowRoot) {
|
|
310
310
|
return IGC_DEFAULT_SPLITTER_SIZE;
|
|
311
311
|
}
|
|
312
|
-
const splitter = dockManagerElement.shadowRoot.querySelector('igc-splitter');
|
|
312
|
+
const splitter = dockManagerElement.shadowRoot.querySelector('igc-splitter-component');
|
|
313
313
|
if (splitter) {
|
|
314
314
|
const rect = splitter.getBoundingClientRect();
|
|
315
315
|
const thickness = Math.min(rect.width, rect.height);
|
|
@@ -12,7 +12,7 @@ import { EventEmitterMixin } from '../../../common/mixins/event-emitter.js';
|
|
|
12
12
|
import { partNameMap } from '../../../common/util.js';
|
|
13
13
|
import { isControlOrMetaPressed } from '../../../utils/utils.js';
|
|
14
14
|
import { styles } from './pane-navigator-component.css.js';
|
|
15
|
-
class IgcPaneNavigatorComponent extends EventEmitterMixin(LitElement) {
|
|
15
|
+
export default class IgcPaneNavigatorComponent extends EventEmitterMixin(LitElement) {
|
|
16
16
|
constructor() {
|
|
17
17
|
super(...arguments);
|
|
18
18
|
this._paneNav = createRef();
|
|
@@ -28,6 +28,8 @@ class IgcPaneNavigatorComponent extends EventEmitterMixin(LitElement) {
|
|
|
28
28
|
}
|
|
29
29
|
};
|
|
30
30
|
}
|
|
31
|
+
static { this.tagName = 'igc-pane-navigator'; }
|
|
32
|
+
static { this.styles = [styles]; }
|
|
31
33
|
static register() {
|
|
32
34
|
registerComponent(IgcPaneNavigatorComponent);
|
|
33
35
|
}
|
|
@@ -191,9 +193,6 @@ class IgcPaneNavigatorComponent extends EventEmitterMixin(LitElement) {
|
|
|
191
193
|
`;
|
|
192
194
|
}
|
|
193
195
|
}
|
|
194
|
-
IgcPaneNavigatorComponent.tagName = 'igc-pane-navigator';
|
|
195
|
-
IgcPaneNavigatorComponent.styles = [styles];
|
|
196
|
-
export default IgcPaneNavigatorComponent;
|
|
197
196
|
__decorate([
|
|
198
197
|
state()
|
|
199
198
|
], IgcPaneNavigatorComponent.prototype, "_allItems", void 0);
|
|
@@ -11,7 +11,7 @@ import { EventEmitterMixin } from '../../../common/mixins/event-emitter.js';
|
|
|
11
11
|
import { partNameMap } from '../../../utils/utils.js';
|
|
12
12
|
import { IGC_DEFAULT_PANE_SIZE, IGC_DEFAULT_UNPIN_PANE_SIZE, IGC_RESIZING_MIN_SIZE, } from '../dockmanager.interfaces.js';
|
|
13
13
|
import { styles } from './content-pane-component.base.css.js';
|
|
14
|
-
class IgcContentPaneComponent extends EventEmitterMixin(LitElement) {
|
|
14
|
+
export default class IgcContentPaneComponent extends EventEmitterMixin(LitElement) {
|
|
15
15
|
constructor() {
|
|
16
16
|
super(...arguments);
|
|
17
17
|
this._contentId = '';
|
|
@@ -25,6 +25,8 @@ class IgcContentPaneComponent extends EventEmitterMixin(LitElement) {
|
|
|
25
25
|
this._minResizeWidth = IGC_RESIZING_MIN_SIZE;
|
|
26
26
|
this._minResizeHeight = IGC_RESIZING_MIN_SIZE;
|
|
27
27
|
}
|
|
28
|
+
static { this.tagName = 'igc-content-pane'; }
|
|
29
|
+
static { this.styles = [styles]; }
|
|
28
30
|
static register() {
|
|
29
31
|
registerComponent(IgcContentPaneComponent);
|
|
30
32
|
}
|
|
@@ -131,9 +133,6 @@ class IgcContentPaneComponent extends EventEmitterMixin(LitElement) {
|
|
|
131
133
|
`;
|
|
132
134
|
}
|
|
133
135
|
}
|
|
134
|
-
IgcContentPaneComponent.tagName = 'igc-content-pane';
|
|
135
|
-
IgcContentPaneComponent.styles = [styles];
|
|
136
|
-
export default IgcContentPaneComponent;
|
|
137
136
|
__decorate([
|
|
138
137
|
property({ type: String, attribute: 'content-id' })
|
|
139
138
|
], IgcContentPaneComponent.prototype, "contentId", null);
|
|
@@ -9,12 +9,14 @@ import { property } from 'lit/decorators.js';
|
|
|
9
9
|
import { registerComponent } from '../../../common/definitions/register.js';
|
|
10
10
|
import { IGC_DEFAULT_PANE_SIZE } from '../dockmanager.interfaces.js';
|
|
11
11
|
import { styles } from './document-host-component.base.css.js';
|
|
12
|
-
class IgcDocumentHostComponent extends LitElement {
|
|
12
|
+
export default class IgcDocumentHostComponent extends LitElement {
|
|
13
13
|
constructor() {
|
|
14
14
|
super(...arguments);
|
|
15
15
|
this._size = IGC_DEFAULT_PANE_SIZE;
|
|
16
16
|
this._parentUseFixedSize = false;
|
|
17
17
|
}
|
|
18
|
+
static { this.tagName = 'igc-document-host'; }
|
|
19
|
+
static { this.styles = [styles]; }
|
|
18
20
|
static register() {
|
|
19
21
|
registerComponent(IgcDocumentHostComponent);
|
|
20
22
|
}
|
|
@@ -48,9 +50,6 @@ class IgcDocumentHostComponent extends LitElement {
|
|
|
48
50
|
return html ` <slot></slot> `;
|
|
49
51
|
}
|
|
50
52
|
}
|
|
51
|
-
IgcDocumentHostComponent.tagName = 'igc-document-host';
|
|
52
|
-
IgcDocumentHostComponent.styles = [styles];
|
|
53
|
-
export default IgcDocumentHostComponent;
|
|
54
53
|
__decorate([
|
|
55
54
|
property({ type: Boolean })
|
|
56
55
|
], IgcDocumentHostComponent.prototype, "parentUseFixedSize", null);
|
|
@@ -11,7 +11,7 @@ import { EventEmitterMixin } from '../../../common/mixins/event-emitter.js';
|
|
|
11
11
|
import { IGC_DEFAULT_PANE_SIZE, } from '../dockmanager.interfaces.js';
|
|
12
12
|
import { styles } from './floating-pane-component.css.js';
|
|
13
13
|
import IgcResizerComponent from './resizer-component.js';
|
|
14
|
-
class IgcFloatingPaneComponent extends EventEmitterMixin(LitElement) {
|
|
14
|
+
export default class IgcFloatingPaneComponent extends EventEmitterMixin(LitElement) {
|
|
15
15
|
constructor() {
|
|
16
16
|
super(...arguments);
|
|
17
17
|
this._floatingHeight = IGC_DEFAULT_PANE_SIZE;
|
|
@@ -52,6 +52,8 @@ class IgcFloatingPaneComponent extends EventEmitterMixin(LitElement) {
|
|
|
52
52
|
});
|
|
53
53
|
};
|
|
54
54
|
}
|
|
55
|
+
static { this.tagName = 'igc-floating-pane'; }
|
|
56
|
+
static { this.styles = [styles]; }
|
|
55
57
|
static register() {
|
|
56
58
|
registerComponent(IgcFloatingPaneComponent, IgcResizerComponent);
|
|
57
59
|
}
|
|
@@ -149,9 +151,6 @@ class IgcFloatingPaneComponent extends EventEmitterMixin(LitElement) {
|
|
|
149
151
|
`;
|
|
150
152
|
}
|
|
151
153
|
}
|
|
152
|
-
IgcFloatingPaneComponent.tagName = 'igc-floating-pane';
|
|
153
|
-
IgcFloatingPaneComponent.styles = [styles];
|
|
154
|
-
export default IgcFloatingPaneComponent;
|
|
155
154
|
__decorate([
|
|
156
155
|
property({ type: Boolean })
|
|
157
156
|
], IgcFloatingPaneComponent.prototype, "allowResize", void 0);
|
|
@@ -17,7 +17,9 @@ import IgcButtonDMComponent from '../../button/button-component.js';
|
|
|
17
17
|
import { IgcDragService } from '../../drag-drop/drag.service.js';
|
|
18
18
|
import IgcIconDMComponent from '../../icon/icon-component.js';
|
|
19
19
|
import { styles } from './pane-header-component.base.css.js';
|
|
20
|
-
class IgcPaneHeaderComponent extends EventEmitterMixin(LitElement) {
|
|
20
|
+
export default class IgcPaneHeaderComponent extends EventEmitterMixin(LitElement) {
|
|
21
|
+
static { this.tagName = 'igc-pane-header'; }
|
|
22
|
+
static { this.styles = [styles]; }
|
|
21
23
|
static register() {
|
|
22
24
|
registerComponent(IgcPaneHeaderComponent, IgcIconDMComponent, IgcButtonDMComponent);
|
|
23
25
|
}
|
|
@@ -239,9 +241,6 @@ class IgcPaneHeaderComponent extends EventEmitterMixin(LitElement) {
|
|
|
239
241
|
`;
|
|
240
242
|
}
|
|
241
243
|
}
|
|
242
|
-
IgcPaneHeaderComponent.tagName = 'igc-pane-header';
|
|
243
|
-
IgcPaneHeaderComponent.styles = [styles];
|
|
244
|
-
export default IgcPaneHeaderComponent;
|
|
245
244
|
__decorate([
|
|
246
245
|
property({ type: Boolean })
|
|
247
246
|
], IgcPaneHeaderComponent.prototype, "pinned", void 0);
|
|
@@ -10,7 +10,8 @@ import { styleMap } from 'lit/directives/style-map.js';
|
|
|
10
10
|
import { registerComponent } from '../../../common/definitions/register.js';
|
|
11
11
|
import { EventEmitterMixin } from '../../../common/mixins/event-emitter.js';
|
|
12
12
|
import { IgcDragService } from '../../drag-drop/drag.service.js';
|
|
13
|
-
class IgcResizerComponent extends EventEmitterMixin(LitElement) {
|
|
13
|
+
export default class IgcResizerComponent extends EventEmitterMixin(LitElement) {
|
|
14
|
+
static { this.tagName = 'igc-resizer'; }
|
|
14
15
|
static register() {
|
|
15
16
|
registerComponent(IgcResizerComponent);
|
|
16
17
|
}
|
|
@@ -84,8 +85,6 @@ class IgcResizerComponent extends EventEmitterMixin(LitElement) {
|
|
|
84
85
|
return html `<div class="resize-container" style=${styleMap(style)}></div>`;
|
|
85
86
|
}
|
|
86
87
|
}
|
|
87
|
-
IgcResizerComponent.tagName = 'igc-resizer';
|
|
88
|
-
export default IgcResizerComponent;
|
|
89
88
|
__decorate([
|
|
90
89
|
property({ type: String })
|
|
91
90
|
], IgcResizerComponent.prototype, "orientation", void 0);
|
|
@@ -10,7 +10,7 @@ import { registerComponent } from '../../../common/definitions/register.js';
|
|
|
10
10
|
import { EventEmitterMixin } from '../../../common/mixins/event-emitter.js';
|
|
11
11
|
import { IGC_DEFAULT_PANE_SIZE, IGC_RESIZING_MIN_SIZE, } from '../dockmanager.interfaces.js';
|
|
12
12
|
import { styles } from './split-pane-component.base.css.js';
|
|
13
|
-
class IgcSplitPaneComponent extends EventEmitterMixin(LitElement) {
|
|
13
|
+
export default class IgcSplitPaneComponent extends EventEmitterMixin(LitElement) {
|
|
14
14
|
constructor() {
|
|
15
15
|
super(...arguments);
|
|
16
16
|
this._parentUseFixedSize = false;
|
|
@@ -18,6 +18,8 @@ class IgcSplitPaneComponent extends EventEmitterMixin(LitElement) {
|
|
|
18
18
|
this._minResizeWidth = IGC_RESIZING_MIN_SIZE;
|
|
19
19
|
this._minResizeHeight = IGC_RESIZING_MIN_SIZE;
|
|
20
20
|
}
|
|
21
|
+
static { this.tagName = 'igc-split-pane'; }
|
|
22
|
+
static { this.styles = [styles]; }
|
|
21
23
|
static register() {
|
|
22
24
|
registerComponent(IgcSplitPaneComponent);
|
|
23
25
|
}
|
|
@@ -82,9 +84,6 @@ class IgcSplitPaneComponent extends EventEmitterMixin(LitElement) {
|
|
|
82
84
|
return html `<slot></slot>`;
|
|
83
85
|
}
|
|
84
86
|
}
|
|
85
|
-
IgcSplitPaneComponent.tagName = 'igc-split-pane';
|
|
86
|
-
IgcSplitPaneComponent.styles = [styles];
|
|
87
|
-
export default IgcSplitPaneComponent;
|
|
88
87
|
__decorate([
|
|
89
88
|
property({ type: String })
|
|
90
89
|
], IgcSplitPaneComponent.prototype, "orientation", null);
|
|
@@ -13,7 +13,7 @@ declare const IgcSplitterComponent_base: Constructor<import("../../../common/mix
|
|
|
13
13
|
* Represents a splitter element used between panes in the Dock Manager layout.
|
|
14
14
|
* Allows the user to resize adjacent panes by dragging.
|
|
15
15
|
*
|
|
16
|
-
* @element igc-splitter
|
|
16
|
+
* @element igc-splitter-component
|
|
17
17
|
*
|
|
18
18
|
* @fires igcResizeStart - Emitted when a resize interaction starts.
|
|
19
19
|
* @fires igcResizeEnd - Emitted when the resize ends, passing the final size.
|
|
@@ -23,7 +23,7 @@ declare const IgcSplitterComponent_base: Constructor<import("../../../common/mix
|
|
|
23
23
|
* @part splitter-ghost - The visual indicator (ghost element) shown during drag.
|
|
24
24
|
*/
|
|
25
25
|
export default class IgcSplitterComponent extends IgcSplitterComponent_base {
|
|
26
|
-
static readonly tagName = "igc-splitter";
|
|
26
|
+
static readonly tagName = "igc-splitter-component";
|
|
27
27
|
static styles: import("lit").CSSResult[];
|
|
28
28
|
static register(): void;
|
|
29
29
|
private _paneSizes;
|
|
@@ -92,7 +92,7 @@ export default class IgcSplitterComponent extends IgcSplitterComponent_base {
|
|
|
92
92
|
}
|
|
93
93
|
declare global {
|
|
94
94
|
interface HTMLElementTagNameMap {
|
|
95
|
-
'igc-splitter': IgcSplitterComponent;
|
|
95
|
+
'igc-splitter-component': IgcSplitterComponent;
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
export {};
|
|
@@ -15,7 +15,9 @@ import { IgcDragService } from '../../drag-drop/drag.service.js';
|
|
|
15
15
|
import { IGC_DEFAULT_RESIZE, IGC_DEFAULT_SPLITTER_SIZE, IGC_RESIZING_MIN_SIZE, } from '../dockmanager.interfaces.js';
|
|
16
16
|
import { styles } from './splitter-component.css.js';
|
|
17
17
|
const SCROLL_SPEED = 15;
|
|
18
|
-
class IgcSplitterComponent extends EventEmitterMixin(LitElement) {
|
|
18
|
+
export default class IgcSplitterComponent extends EventEmitterMixin(LitElement) {
|
|
19
|
+
static { this.tagName = 'igc-splitter-component'; }
|
|
20
|
+
static { this.styles = [styles]; }
|
|
19
21
|
static register() {
|
|
20
22
|
registerComponent(IgcSplitterComponent);
|
|
21
23
|
}
|
|
@@ -375,9 +377,6 @@ class IgcSplitterComponent extends EventEmitterMixin(LitElement) {
|
|
|
375
377
|
`;
|
|
376
378
|
}
|
|
377
379
|
}
|
|
378
|
-
IgcSplitterComponent.tagName = 'igc-splitter';
|
|
379
|
-
IgcSplitterComponent.styles = [styles];
|
|
380
|
-
export default IgcSplitterComponent;
|
|
381
380
|
__decorate([
|
|
382
381
|
state()
|
|
383
382
|
], IgcSplitterComponent.prototype, "_dragOffset", void 0);
|
|
@@ -9,12 +9,14 @@ import { property } from 'lit/decorators.js';
|
|
|
9
9
|
import { registerComponent } from '../../../common/definitions/register.js';
|
|
10
10
|
import { partNameMap } from '../../../common/util.js';
|
|
11
11
|
import { styles } from './unpinned-pane-header-component.base.css.js';
|
|
12
|
-
class IgcUnpinnedPaneHeaderComponent extends LitElement {
|
|
12
|
+
export default class IgcUnpinnedPaneHeaderComponent extends LitElement {
|
|
13
13
|
constructor() {
|
|
14
14
|
super(...arguments);
|
|
15
15
|
this._isActive = false;
|
|
16
16
|
this._disabled = false;
|
|
17
17
|
}
|
|
18
|
+
static { this.tagName = 'igc-unpinned-pane-header'; }
|
|
19
|
+
static { this.styles = [styles]; }
|
|
18
20
|
static register() {
|
|
19
21
|
registerComponent(IgcUnpinnedPaneHeaderComponent);
|
|
20
22
|
}
|
|
@@ -71,9 +73,6 @@ class IgcUnpinnedPaneHeaderComponent extends LitElement {
|
|
|
71
73
|
return html ` <slot></slot> `;
|
|
72
74
|
}
|
|
73
75
|
}
|
|
74
|
-
IgcUnpinnedPaneHeaderComponent.tagName = 'igc-unpinned-pane-header';
|
|
75
|
-
IgcUnpinnedPaneHeaderComponent.styles = [styles];
|
|
76
|
-
export default IgcUnpinnedPaneHeaderComponent;
|
|
77
76
|
__decorate([
|
|
78
77
|
property({ type: String })
|
|
79
78
|
], IgcUnpinnedPaneHeaderComponent.prototype, "location", null);
|
|
@@ -9,11 +9,13 @@ import { property } from 'lit/decorators.js';
|
|
|
9
9
|
import { registerComponent } from '../../common/definitions/register.js';
|
|
10
10
|
import { styles } from './icon-component.css.js';
|
|
11
11
|
import { icons } from './icons.js';
|
|
12
|
-
class IgcIconDMComponent extends LitElement {
|
|
12
|
+
export default class IgcIconDMComponent extends LitElement {
|
|
13
13
|
constructor() {
|
|
14
14
|
super(...arguments);
|
|
15
15
|
this.name = '';
|
|
16
16
|
}
|
|
17
|
+
static { this.tagName = 'igc-icon-component'; }
|
|
18
|
+
static { this.styles = [styles]; }
|
|
17
19
|
static register() {
|
|
18
20
|
registerComponent(IgcIconDMComponent);
|
|
19
21
|
}
|
|
@@ -24,9 +26,6 @@ class IgcIconDMComponent extends LitElement {
|
|
|
24
26
|
`;
|
|
25
27
|
}
|
|
26
28
|
}
|
|
27
|
-
IgcIconDMComponent.tagName = 'igc-icon-component';
|
|
28
|
-
IgcIconDMComponent.styles = [styles];
|
|
29
|
-
export default IgcIconDMComponent;
|
|
30
29
|
__decorate([
|
|
31
30
|
property({ type: String })
|
|
32
31
|
], IgcIconDMComponent.prototype, "name", void 0);
|