@progress/kendo-angular-pivotgrid 1.0.1 → 1.0.2-dev.202209261139

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.
@@ -38,7 +38,7 @@ const packageMetadata = {
38
38
  name: '@progress/kendo-angular-pivotgrid',
39
39
  productName: 'Kendo UI for Angular',
40
40
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
41
- publishDate: 1663138494,
41
+ publishDate: 1664192350,
42
42
  version: '',
43
43
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
44
44
  };
@@ -165,8 +165,7 @@ const position = (target, before) => {
165
165
  const { offsetWidth, offsetHeight } = target;
166
166
  const left = targetRect.left + (before ? 0 : offsetWidth);
167
167
  const top = targetRect.top + offsetHeight / 2;
168
- const height = offsetHeight;
169
- return { left, top, height };
168
+ return { left, top };
170
169
  };
171
170
  /**
172
171
  * @hidden
@@ -541,11 +540,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
541
540
  /**
542
541
  * @hidden
543
542
  */
544
- const append = (element) => {
543
+ const append = (element, container) => {
545
544
  let appended = false;
546
545
  return () => {
547
546
  if (!appended) {
548
- document.body.appendChild(element);
547
+ container.appendChild(element);
549
548
  appended = true;
550
549
  }
551
550
  return element;
@@ -557,7 +556,6 @@ const append = (element) => {
557
556
  class DropCueService {
558
557
  create() {
559
558
  this.dom = document.createElement('span');
560
- this.dom.style.position = 'absolute';
561
559
  const wrapper = document.createElement('div');
562
560
  wrapper.classList.add('k-drop-hint', 'k-drop-hint-v');
563
561
  const hintStart = document.createElement('div');
@@ -570,25 +568,34 @@ class DropCueService {
570
568
  this.dom.append(wrapper);
571
569
  this.hide();
572
570
  }
573
- attach() {
574
- return append(this.dom)();
571
+ attach(container) {
572
+ return append(this.dom, container)();
575
573
  }
576
- remove() {
577
- if (this.dom && this.dom.parentElement) {
578
- document.body.removeChild(this.dom);
574
+ remove(container) {
575
+ if (this.dom && this.dom.parentElement && container.contains(this.dom)) {
576
+ container.removeChild(this.dom);
579
577
  this.dom = null;
580
578
  }
581
579
  }
582
580
  hide() {
583
- this.dom.style.display = "none";
581
+ this.dom.style.display = 'none';
584
582
  }
585
- position({ left, top, height }) {
586
- this.dom.style.display = 'block';
587
- this.dom.style.height = height + 'px';
588
- this.dom.style.top = top + 'px';
589
- this.dom.style.zIndex = '1000';
590
- const width = this.dom.offsetWidth / 2;
591
- this.dom.style.left = left - width + 'px';
583
+ show(direction, container, target) {
584
+ if (!this.dom) {
585
+ this.create();
586
+ }
587
+ if (direction === 'before') {
588
+ container.insertBefore(this.dom, target);
589
+ }
590
+ else {
591
+ if (target.classList.contains('k-chip') && target.matches(':last-child')) {
592
+ container.insertBefore(this.dom, target);
593
+ return;
594
+ }
595
+ // eslint-disable-next-line no-unused-expressions
596
+ target.classList.contains('k-chip') ? target.after(this.dom) : container.appendChild(this.dom);
597
+ }
598
+ this.dom.style.display = '';
592
599
  }
593
600
  }
594
601
  DropCueService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DropCueService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
@@ -1683,49 +1690,144 @@ class DropTargetDirective {
1683
1690
  this.subs = new Subscription();
1684
1691
  }
1685
1692
  ngOnInit() {
1693
+ var _a;
1686
1694
  const element = this.element.nativeElement;
1687
- this.elementType = element.nodeName === 'KENDO-CHIP' ? 'chip' : 'container';
1688
- this.zone.runOutsideAngular(() => {
1689
- this.subs.add(this.renderer.listen(element, 'mouseenter', this.handleMouseEnter.bind(this)));
1690
- this.subs.add(this.renderer.listen(element, 'mousemove', this.handleMouseMove.bind(this)));
1691
- this.subs.add(this.renderer.listen(element, 'mouseleave', this.handleMouseLeave.bind(this)));
1692
- });
1695
+ this.elementType = this.getElementType(element);
1696
+ this.elementSectionType = (_a = element.getAttribute('axes')) === null || _a === void 0 ? void 0 : _a.split('Axes')[0];
1697
+ this.subs.add(this.renderer.listen(element, 'mouseenter', this.handleMouseEnter.bind(this)));
1698
+ this.subs.add(this.renderer.listen(element, 'mousemove', this.handleMouseMove.bind(this)));
1699
+ this.subs.add(this.renderer.listen(element, 'mouseleave', this.handleMouseLeave.bind(this)));
1693
1700
  }
1694
1701
  ngOnDestroy() {
1695
1702
  this.subs.unsubscribe();
1696
1703
  }
1697
1704
  handleMouseEnter(event) {
1698
- if (this.configuratorService.state.dragItem) {
1699
- if (this.elementType === 'chip') {
1705
+ this.zone.runOutsideAngular(() => {
1706
+ if (this.configuratorService.state.dragItem) {
1707
+ this.configuratorService.dropTargetElement = this.element.nativeElement;
1708
+ if (this.configuratorService.draggedElement && !this.isDropAllowed(this.configuratorService.draggedElement.fromSection)) {
1709
+ return;
1710
+ }
1700
1711
  this.configuratorService.parseConfiguratorState({ type: PIVOT_CONFIGURATOR_ACTION.setDropTarget, payload: this.item });
1701
- this.targetElement = event.target;
1702
- this.cue.position(position(event.target, this.configuratorService.state.dropDirection === 'before'));
1712
+ this.targetElement = this.elementType === 'header' ? event.target.nextElementSibling : event.target;
1713
+ // eslint-disable-next-line no-unused-expressions
1714
+ this.cue.dom && this.cue.remove(this.getCueContainer());
1715
+ this.cue.create();
1716
+ this.cue.attach(this.getCueContainer());
1717
+ this.configuratorService.parseConfiguratorState({ type: PIVOT_CONFIGURATOR_ACTION.setDropZone, payload: this.axes });
1703
1718
  }
1704
- this.configuratorService.parseConfiguratorState({ type: PIVOT_CONFIGURATOR_ACTION.setDropZone, payload: this.axes });
1705
- }
1719
+ });
1706
1720
  }
1707
- handleMouseMove($event) {
1708
- if (this.configuratorService.state.dragItem) {
1709
- if (this.elementType !== 'chip') {
1710
- return;
1711
- }
1712
- if (this.element.nativeElement) {
1713
- const rect = this.element.nativeElement.getBoundingClientRect();
1714
- const x = $event.clientX - rect.left;
1715
- const direction = x < rect.width / 2 ? 'before' : 'after';
1716
- if ((direction !== this.configuratorService.state.dropDirection) && this.targetElement) {
1717
- this.cue.position(position(this.targetElement, direction === 'before'));
1721
+ handleMouseMove(event) {
1722
+ this.zone.runOutsideAngular(() => {
1723
+ var _a;
1724
+ event.stopImmediatePropagation();
1725
+ if (this.configuratorService.state.dragItem) {
1726
+ if (this.configuratorService.draggedElement && !this.isDropAllowed(this.configuratorService.draggedElement.fromSection)) {
1727
+ this.renderer.setStyle(this.element.nativeElement, 'cursor', 'not-allowed');
1728
+ return;
1729
+ }
1730
+ this.renderer.setStyle(this.element.nativeElement, 'cursor', 'pointer');
1731
+ const singleOrNoChip = ((_a = this.targetElement) === null || _a === void 0 ? void 0 : _a.querySelectorAll('.k-chip').length) < 2;
1732
+ const isInOwnContainer = this.elementSectionType === this.configuratorService.draggedElement.fromSection;
1733
+ if (!this.targetElement) {
1734
+ return;
1735
+ }
1736
+ switch (this.elementType) {
1737
+ case 'chip':
1738
+ const rect = this.element.nativeElement.getBoundingClientRect();
1739
+ const x = event.clientX - rect.left;
1740
+ const direction = x < rect.width / 2 ? 'before' : 'after';
1741
+ this.cue.show(direction, this.configuratorService.cueContainer, this.targetElement);
1742
+ if (direction !== this.configuratorService.state.dropDirection) {
1743
+ this.configuratorService.parseConfiguratorState({ type: PIVOT_CONFIGURATOR_ACTION.setDropDirection, payload: direction });
1744
+ }
1745
+ break;
1746
+ case 'container':
1747
+ case 'header':
1748
+ if (singleOrNoChip && isInOwnContainer) {
1749
+ return;
1750
+ }
1751
+ if (isInOwnContainer) {
1752
+ const draggedElement = this.configuratorService.draggedElement.element;
1753
+ const nextChip = this.getNextChip(draggedElement);
1754
+ if (!nextChip) {
1755
+ this.cue.show('before', this.configuratorService.cueContainer, draggedElement);
1756
+ if (this.configuratorService.state.dropDirection !== 'before') {
1757
+ this.configuratorService.parseConfiguratorState({ type: PIVOT_CONFIGURATOR_ACTION.setDropDirection, payload: 'before' });
1758
+ }
1759
+ return;
1760
+ }
1761
+ const isVertical = this.configuratorService.orientation === 'vertical';
1762
+ if (!isPresent(this.nextChipOffset)) {
1763
+ this.nextChipOffset = isVertical ? nextChip.getBoundingClientRect().left : nextChip.getBoundingClientRect().top;
1764
+ }
1765
+ const isBefore = isVertical ? event.clientX < this.nextChipOffset : event.clientY < this.nextChipOffset;
1766
+ if (isBefore) {
1767
+ this.cue.show('after', this.configuratorService.cueContainer, draggedElement);
1768
+ return;
1769
+ }
1770
+ }
1771
+ if (this.configuratorService.state.dropDirection !== 'after') {
1772
+ this.configuratorService.parseConfiguratorState({ type: PIVOT_CONFIGURATOR_ACTION.setDropDirection, payload: 'after' });
1773
+ }
1774
+ this.cue.show('after', this.configuratorService.cueContainer, this.targetElement);
1775
+ break;
1776
+ default:
1718
1777
  }
1719
- this.configuratorService.parseConfiguratorState({ type: PIVOT_CONFIGURATOR_ACTION.setDropDirection, payload: direction });
1720
1778
  }
1721
- }
1779
+ });
1722
1780
  }
1723
- handleMouseLeave() {
1724
- if (this.elementType === 'chip') {
1781
+ handleMouseLeave(event) {
1782
+ this.renderer.removeStyle(this.element.nativeElement, 'cursor');
1783
+ if (!this.configuratorService.draggedElement) {
1725
1784
  return;
1726
1785
  }
1727
- if (this.configuratorService.state.dragItem) {
1728
- this.configuratorService.parseConfiguratorState({ type: PIVOT_CONFIGURATOR_ACTION.setDropZone, payload: null });
1786
+ this.zone.runOutsideAngular(() => {
1787
+ event.stopImmediatePropagation();
1788
+ this.configuratorService.dropTargetElement = null;
1789
+ this.cue.remove(this.getCueContainer());
1790
+ if (this.elementType === 'chip') {
1791
+ return;
1792
+ }
1793
+ if (this.configuratorService.state.dragItem) {
1794
+ this.configuratorService.parseConfiguratorState({ type: PIVOT_CONFIGURATOR_ACTION.setDropZone, payload: null });
1795
+ }
1796
+ });
1797
+ }
1798
+ isDropAllowed(fromSection) {
1799
+ const element = this.element.nativeElement;
1800
+ const fromRowsOrColsToMeasures = (fromSection === 'row' || fromSection === 'column') && element.closest('[axes=measureAxes]');
1801
+ const fromMeasuresToRowsOrCols = fromSection === 'measure' && (element.closest('[axes=rowAxes]') || element.closest('[axes=columnAxes]'));
1802
+ return !(fromRowsOrColsToMeasures || fromMeasuresToRowsOrCols);
1803
+ }
1804
+ getElementType(element) {
1805
+ return {
1806
+ 'KENDO-CHIP': 'chip',
1807
+ 'KENDO-CHIPLIST': 'container',
1808
+ 'DIV': 'header'
1809
+ }[element.tagName];
1810
+ }
1811
+ getCueContainer() {
1812
+ const element = this.element.nativeElement;
1813
+ const cueContainer = {
1814
+ chip: element.parentElement,
1815
+ container: element,
1816
+ header: element.classList.contains('k-settings-description') ? element : element.nextElementSibling
1817
+ }[this.elementType];
1818
+ this.configuratorService.cueContainer = cueContainer;
1819
+ return cueContainer;
1820
+ }
1821
+ getNextChip(draggedElement) {
1822
+ let nextChip = draggedElement.nextElementSibling;
1823
+ if (nextChip && nextChip.matches('.k-chip')) {
1824
+ return nextChip;
1825
+ }
1826
+ while (nextChip) {
1827
+ nextChip = nextChip.nextElementSibling;
1828
+ if (nextChip === null || nextChip.matches('.k-chip')) {
1829
+ return nextChip;
1830
+ }
1729
1831
  }
1730
1832
  }
1731
1833
  }
@@ -1746,12 +1848,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
1746
1848
  * @hidden
1747
1849
  */
1748
1850
  class DraggableChipDirective {
1749
- constructor(draggable, element, zone, service, cue) {
1851
+ constructor(draggable, element, zone, service, cue, renderer) {
1750
1852
  this.draggable = draggable;
1751
1853
  this.element = element;
1752
1854
  this.zone = zone;
1753
1855
  this.service = service;
1754
1856
  this.cue = cue;
1857
+ this.renderer = renderer;
1755
1858
  this.touchActions = 'none';
1756
1859
  this.initialX = {};
1757
1860
  this.initialY = {};
@@ -1761,52 +1864,70 @@ class DraggableChipDirective {
1761
1864
  return this.drag ? 'none' : undefined;
1762
1865
  }
1763
1866
  ngOnInit() {
1764
- this.zone.runOutsideAngular(() => this.subs.add(this.draggable.kendoPress
1765
- .subscribe((event) => {
1766
- if (isDocumentAvailable()) {
1767
- this.cue.create();
1768
- this.cue.attach();
1769
- this.initialX.current = event.clientX;
1770
- this.initialY.current = event.clientY;
1771
- }
1772
- })));
1773
- this.zone.runOutsideAngular(() => this.subs.add(this.draggable.kendoDrag
1867
+ this.subs.add(this.draggable.kendoPress
1774
1868
  .subscribe((event) => {
1775
- if (isDocumentAvailable()) {
1776
- if (Math.abs(this.initialX.current - event.clientX) < 10 &&
1777
- Math.abs(this.initialY.current - event.clientY) < 10) {
1778
- return;
1869
+ this.zone.runOutsideAngular(() => {
1870
+ if (isDocumentAvailable()) {
1871
+ this.initialX.current = event.clientX;
1872
+ this.initialY.current = event.clientY;
1873
+ const element = this.element.nativeElement;
1874
+ this.renderer.setStyle(element, 'z-index', 1);
1875
+ this.service.parseConfiguratorState({ type: PIVOT_CONFIGURATOR_ACTION.setDragItem, payload: this.item });
1876
+ this.service.draggedElement = {
1877
+ element,
1878
+ fromSection: element.closest('.k-chip-list').getAttribute('axes').split('Axes')[0]
1879
+ };
1779
1880
  }
1780
- if (this.element.nativeElement) {
1781
- this.element.nativeElement.style.transform = `translate(${event.clientX - this.initialX.current}px, ${event.clientY - this.initialY.current}px)`;
1881
+ });
1882
+ }));
1883
+ this.subs.add(this.draggable.kendoDrag
1884
+ .subscribe((event) => {
1885
+ this.zone.runOutsideAngular(() => {
1886
+ var _a;
1887
+ if (isDocumentAvailable()) {
1888
+ const isDragging = Math.abs(this.initialX.current - event.clientX) > 5 ||
1889
+ Math.abs(this.initialY.current - event.clientY) > 5;
1890
+ if (!isDragging) {
1891
+ return;
1892
+ }
1893
+ this.drag = true;
1894
+ if (!((_a = document.elementFromPoint(event.clientX, event.clientY)) === null || _a === void 0 ? void 0 : _a.closest('.k-pivotgrid-configurator [kendodroptarget]'))) {
1895
+ return;
1896
+ }
1897
+ this.renderer.setStyle(this.element.nativeElement, 'transform', `translate(${event.clientX - this.initialX.current}px, ${event.clientY - this.initialY.current}px)`);
1782
1898
  }
1783
- }
1784
- this.drag = true;
1785
- this.service.parseConfiguratorState({ type: PIVOT_CONFIGURATOR_ACTION.setDragItem, payload: this.item });
1786
- })));
1787
- this.zone.runOutsideAngular(() => this.subs.add(this.draggable.kendoRelease
1899
+ });
1900
+ }));
1901
+ this.subs.add(this.draggable.kendoRelease
1788
1902
  .subscribe(() => {
1789
- this.drag = false;
1790
- if (this.service.state.dragItem) {
1791
- if (isDocumentAvailable()) {
1792
- if (this.element.nativeElement) {
1793
- this.element.nativeElement.style.transform = '';
1903
+ this.zone.runOutsideAngular(() => {
1904
+ this.drag = false;
1905
+ if (this.service.state.dragItem) {
1906
+ const element = this.element.nativeElement;
1907
+ if (isDocumentAvailable()) {
1908
+ this.renderer.removeStyle(element, 'transform');
1909
+ this.cue.remove(this.service.cueContainer);
1910
+ }
1911
+ this.service.parseConfiguratorState({ type: PIVOT_CONFIGURATOR_ACTION.drop, payload: this.item });
1912
+ this.service.state.dragItem = null;
1913
+ this.service.state.dropDirection = null;
1914
+ this.service.state.dropTarget = null;
1915
+ this.service.state.dropZone = null;
1916
+ this.renderer.removeStyle(element, 'z-index');
1917
+ this.service.draggedElement = null;
1918
+ if (this.service.dropTargetElement) {
1919
+ this.renderer.removeStyle(this.service.dropTargetElement, 'cursor');
1920
+ this.service.dropTargetElement = null;
1794
1921
  }
1795
- this.cue.remove();
1796
1922
  }
1797
- this.service.parseConfiguratorState({ type: PIVOT_CONFIGURATOR_ACTION.drop, payload: this.item });
1798
- this.service.state.dragItem = null;
1799
- this.service.state.dropDirection = null;
1800
- this.service.state.dropTarget = null;
1801
- this.service.state.dropZone = null;
1802
- }
1803
- })));
1923
+ });
1924
+ }));
1804
1925
  }
1805
1926
  ngOnDestroy() {
1806
1927
  this.subs.unsubscribe();
1807
1928
  }
1808
1929
  }
1809
- DraggableChipDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DraggableChipDirective, deps: [{ token: i3.DraggableDirective, optional: true }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: ConfiguratorService }, { token: DropCueService }], target: i0.ɵɵFactoryTarget.Directive });
1930
+ DraggableChipDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DraggableChipDirective, deps: [{ token: i3.DraggableDirective, optional: true }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: ConfiguratorService }, { token: DropCueService }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
1810
1931
  DraggableChipDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: DraggableChipDirective, selector: "[kendoChipDraggable]", inputs: { item: "item" }, host: { properties: { "style.pointerEvents": "this.pointerEvents", "style.touch-action": "this.touchActions" } }, ngImport: i0 });
1811
1932
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DraggableChipDirective, decorators: [{
1812
1933
  type: Directive,
@@ -1815,7 +1936,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
1815
1936
  }]
1816
1937
  }], ctorParameters: function () { return [{ type: i3.DraggableDirective, decorators: [{
1817
1938
  type: Optional
1818
- }] }, { type: i0.ElementRef }, { type: i0.NgZone }, { type: ConfiguratorService }, { type: DropCueService }]; }, propDecorators: { pointerEvents: [{
1939
+ }] }, { type: i0.ElementRef }, { type: i0.NgZone }, { type: ConfiguratorService }, { type: DropCueService }, { type: i0.Renderer2 }]; }, propDecorators: { pointerEvents: [{
1819
1940
  type: HostBinding,
1820
1941
  args: ['style.pointerEvents']
1821
1942
  }], touchActions: [{
@@ -1873,7 +1994,7 @@ class PivotGridConfiguratorComponent {
1873
1994
  this.subs.add(this.configuratorService.configuratorStateChange
1874
1995
  .subscribe(res => {
1875
1996
  this.state = res;
1876
- this.dataService.state = this.dataService.state = {
1997
+ this.dataService.state = {
1877
1998
  columnAxes: res.columnAxes,
1878
1999
  rowAxes: res.rowAxes,
1879
2000
  measureAxes: res.measureAxes,
@@ -1886,6 +2007,11 @@ class PivotGridConfiguratorComponent {
1886
2007
  ngOnDestroy() {
1887
2008
  this.subs.unsubscribe();
1888
2009
  }
2010
+ ngOnChanges(changes) {
2011
+ if (changes.orientation) {
2012
+ this.configuratorService.orientation = this.orientation;
2013
+ }
2014
+ }
1889
2015
  getName(name) {
1890
2016
  return name.toString();
1891
2017
  }
@@ -2033,7 +2159,7 @@ PivotGridConfiguratorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
2033
2159
  ConfiguratorService,
2034
2160
  DropCueService,
2035
2161
  SinglePopupService
2036
- ], ngImport: i0, template: `
2162
+ ], usesOnChanges: true, ngImport: i0, template: `
2037
2163
  <div
2038
2164
  class="k-pivotgrid-configurator-panel k-pivotgrid-configurator-push"
2039
2165
  [ngClass]="{
@@ -2187,7 +2313,7 @@ PivotGridConfiguratorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
2187
2313
  <button kendoButton themeColor="primary" type="button" (click)="handleSubmit()">{{messageFor('configuratorApplyButtonText')}}</button>
2188
2314
  </div>
2189
2315
  </div>
2190
- `, isInline: true, styles: ["\n .k-form .k-chip-list {\n width: 100%;\n }\n "], components: [{ type: i4.TreeViewComponent, selector: "kendo-treeview", inputs: ["filterInputPlaceholder", "expandDisabledNodes", "animate", "nodeTemplate", "loadMoreButtonTemplate", "trackBy", "nodes", "textField", "hasChildren", "isChecked", "isDisabled", "isExpanded", "isSelected", "isVisible", "navigable", "children", "loadOnDemand", "filterable", "filter", "size", "disableParentNodesOnly"], outputs: ["childrenLoaded", "blur", "focus", "expand", "collapse", "nodeDragStart", "nodeDrag", "filterStateChange", "nodeDrop", "nodeDragEnd", "addItem", "removeItem", "checkedChange", "selectionChange", "filterChange", "nodeClick", "nodeDblClick"], exportAs: ["kendoTreeView"] }, { type: i5.ChipListComponent, selector: "kendo-chiplist, kendo-chip-list", inputs: ["selection", "size"], outputs: ["selectedChange", "remove"] }, { type: i5.ChipComponent, selector: "kendo-chip", inputs: ["label", "icon", "iconClass", "avatarClass", "selected", "removable", "removeIcon", "disabled", "size", "rounded", "fillMode", "themeColor"], outputs: ["remove", "contentClick"] }, { type: ChipMenuComponent, selector: "kendo-pivot-chip-menu", inputs: ["chip", "tabIndex"] }], directives: [{ type: i7.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i4.ExpandDirective, selector: "[kendoTreeViewExpandable]", inputs: ["isExpanded", "expandBy", "expandOnFilter", "expandedKeys"], outputs: ["expandedKeysChange"] }, { type: i4.NodeTemplateDirective, selector: "[kendoTreeViewNodeTemplate]" }, { type: i7.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i6.CheckBoxDirective, selector: "input[kendoCheckBox]", inputs: ["size", "rounded"] }, { type: i7.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: DropTargetDirective, selector: "[kendoDropTarget]", inputs: ["item", "axes"] }, { type: i7.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: DraggableChipDirective, selector: "[kendoChipDraggable]", inputs: ["item"] }, { type: i3.DraggableDirective, selector: "[kendoDraggable]", inputs: ["enableDrag"], outputs: ["kendoPress", "kendoDrag", "kendoRelease"] }, { type: i5.ButtonDirective, selector: "button[kendoButton], span[kendoButton]", inputs: ["toggleable", "togglable", "selected", "tabIndex", "icon", "iconClass", "imageUrl", "disabled", "size", "rounded", "fillMode", "themeColor", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }] });
2316
+ `, isInline: true, styles: ["\n .k-form .k-chip-list {\n width: 100%;\n }\n\n .k-form .k-form-field,\n .k-form .k-settings-description {\n padding-top: 1em;\n margin-top: 0;\n }\n\n .k-form.k-form-horizontal .k-form-field,\n .k-form.k-form-horizontal .k-chip-list {\n padding-top: 0;\n padding-left: 16px;\n }\n\n .k-form.k-form-horizontal .k-form-field-wrapper {\n padding-left: 0;\n }\n "], components: [{ type: i4.TreeViewComponent, selector: "kendo-treeview", inputs: ["filterInputPlaceholder", "expandDisabledNodes", "animate", "nodeTemplate", "loadMoreButtonTemplate", "trackBy", "nodes", "textField", "hasChildren", "isChecked", "isDisabled", "isExpanded", "isSelected", "isVisible", "navigable", "children", "loadOnDemand", "filterable", "filter", "size", "disableParentNodesOnly"], outputs: ["childrenLoaded", "blur", "focus", "expand", "collapse", "nodeDragStart", "nodeDrag", "filterStateChange", "nodeDrop", "nodeDragEnd", "addItem", "removeItem", "checkedChange", "selectionChange", "filterChange", "nodeClick", "nodeDblClick"], exportAs: ["kendoTreeView"] }, { type: i5.ChipListComponent, selector: "kendo-chiplist, kendo-chip-list", inputs: ["selection", "size"], outputs: ["selectedChange", "remove"] }, { type: i5.ChipComponent, selector: "kendo-chip", inputs: ["label", "icon", "iconClass", "avatarClass", "selected", "removable", "removeIcon", "disabled", "size", "rounded", "fillMode", "themeColor"], outputs: ["remove", "contentClick"] }, { type: ChipMenuComponent, selector: "kendo-pivot-chip-menu", inputs: ["chip", "tabIndex"] }], directives: [{ type: i7.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i4.ExpandDirective, selector: "[kendoTreeViewExpandable]", inputs: ["isExpanded", "expandBy", "expandOnFilter", "expandedKeys"], outputs: ["expandedKeysChange"] }, { type: i4.NodeTemplateDirective, selector: "[kendoTreeViewNodeTemplate]" }, { type: i7.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i6.CheckBoxDirective, selector: "input[kendoCheckBox]", inputs: ["size", "rounded"] }, { type: i7.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: DropTargetDirective, selector: "[kendoDropTarget]", inputs: ["item", "axes"] }, { type: i7.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: DraggableChipDirective, selector: "[kendoChipDraggable]", inputs: ["item"] }, { type: i3.DraggableDirective, selector: "[kendoDraggable]", inputs: ["enableDrag"], outputs: ["kendoPress", "kendoDrag", "kendoRelease"] }, { type: i5.ButtonDirective, selector: "button[kendoButton], span[kendoButton]", inputs: ["toggleable", "togglable", "selected", "tabIndex", "icon", "iconClass", "imageUrl", "disabled", "size", "rounded", "fillMode", "themeColor", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }] });
2191
2317
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PivotGridConfiguratorComponent, decorators: [{
2192
2318
  type: Component,
2193
2319
  args: [{
@@ -2356,6 +2482,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
2356
2482
  .k-form .k-chip-list {
2357
2483
  width: 100%;
2358
2484
  }
2485
+
2486
+ .k-form .k-form-field,
2487
+ .k-form .k-settings-description {
2488
+ padding-top: 1em;
2489
+ margin-top: 0;
2490
+ }
2491
+
2492
+ .k-form.k-form-horizontal .k-form-field,
2493
+ .k-form.k-form-horizontal .k-chip-list {
2494
+ padding-top: 0;
2495
+ padding-left: 16px;
2496
+ }
2497
+
2498
+ .k-form.k-form-horizontal .k-form-field-wrapper {
2499
+ padding-left: 0;
2500
+ }
2359
2501
  `]
2360
2502
  }]
2361
2503
  }], ctorParameters: function () { return [{ type: PivotGridDataService }, { type: i1.LocalizationService }, { type: ConfiguratorService }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { hostClass: [{
package/main.d.ts CHANGED
@@ -18,4 +18,6 @@ export { PivotDataRowItem } from './models/data-row-item';
18
18
  export { ConfiguratorSettings } from './models/configurator-settings';
19
19
  export { PivotGridConfiguratorPosition } from './models/configurator-position';
20
20
  export { PivotGridConfiguratorOrientation } from './models/configurator-orientation';
21
+ export { DropTargetType } from './models/drop-target';
22
+ export { DropSectionType } from './models/drop-section';
21
23
  export { PivotGridAxis, PivotGridField, AxisDataItem, DimensionField, HierarchyField, KPIField, KPIMeasureField, LevelField, MeasureField, MemberField, PivotDataItem, sumAggregate, averageAggregate, minAggregate, maxAggregate, Aggregate, Dimension, Measure } from '@progress/kendo-pivotgrid-common';
@@ -0,0 +1,8 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ /**
6
+ * @hidden
7
+ */
8
+ export declare type DropSectionType = 'column' | 'row' | 'measure';
@@ -0,0 +1,8 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ /**
6
+ * @hidden
7
+ */
8
+ export declare type DropTargetType = 'chip' | 'container' | 'header';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-angular-pivotgrid",
3
- "version": "1.0.1",
3
+ "version": "1.0.2-dev.202209261139",
4
4
  "description": "PivotGrid package for Angular",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "Progress",
package/util.d.ts CHANGED
@@ -49,7 +49,6 @@ export declare const matchAriaAttributes: (wrapper: Element) => void;
49
49
  export declare const position: (target: any, before: any) => {
50
50
  left: any;
51
51
  top: number;
52
- height: any;
53
52
  };
54
53
  /**
55
54
  * @hidden