@clr/angular 17.11.1 → 17.11.3
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/clarity.api.md +0 -4
- package/esm2020/data/datagrid/datagrid.mjs +4 -1
- package/esm2020/popover/dropdown/dropdown-item.mjs +1 -5
- package/esm2020/popover/dropdown/dropdown-trigger.mjs +1 -7
- package/fesm2015/clr-angular.mjs +3 -30
- package/fesm2015/clr-angular.mjs.map +1 -1
- package/fesm2020/clr-angular.mjs +3 -30
- package/fesm2020/clr-angular.mjs.map +1 -1
- package/package.json +2 -2
- package/popover/dropdown/dropdown-item.d.ts +0 -1
- package/popover/dropdown/dropdown-trigger.d.ts +0 -1
- package/esm2020/popover/dropdown/utils/content-wrapping.mjs +0 -22
- package/popover/dropdown/utils/content-wrapping.d.ts +0 -2
package/fesm2020/clr-angular.mjs
CHANGED
|
@@ -5526,28 +5526,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.2", ngImpor
|
|
|
5526
5526
|
args: ['clrPosition']
|
|
5527
5527
|
}] } });
|
|
5528
5528
|
|
|
5529
|
-
/*
|
|
5530
|
-
* Copyright (c) 2016-2025 Broadcom. All Rights Reserved.
|
|
5531
|
-
* The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
|
|
5532
|
-
* This software is released under MIT license.
|
|
5533
|
-
* The full license information can be found in LICENSE in the root directory of this project.
|
|
5534
|
-
*/
|
|
5535
|
-
function wrapHostContentInsideSpan(hostElement, renderer, wrapperClass) {
|
|
5536
|
-
if (!hostElement || !renderer) {
|
|
5537
|
-
return;
|
|
5538
|
-
}
|
|
5539
|
-
const wrapper = renderer.createElement('span');
|
|
5540
|
-
if (wrapperClass) {
|
|
5541
|
-
renderer.addClass(wrapper, wrapperClass);
|
|
5542
|
-
}
|
|
5543
|
-
// Move all existing children into the wrapper
|
|
5544
|
-
// We must loop while there are child nodes and re-append them to wrapper.
|
|
5545
|
-
while (hostElement.firstChild) {
|
|
5546
|
-
renderer.appendChild(wrapper, hostElement.firstChild);
|
|
5547
|
-
}
|
|
5548
|
-
renderer.appendChild(hostElement, wrapper);
|
|
5549
|
-
}
|
|
5550
|
-
|
|
5551
5529
|
/*
|
|
5552
5530
|
* Copyright (c) 2016-2025 Broadcom. All Rights Reserved.
|
|
5553
5531
|
* The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
|
|
@@ -5572,11 +5550,6 @@ class ClrDropdownTrigger {
|
|
|
5572
5550
|
onDropdownTriggerClick(event) {
|
|
5573
5551
|
this.toggleService.toggleWithEvent(event);
|
|
5574
5552
|
}
|
|
5575
|
-
ngAfterViewInit() {
|
|
5576
|
-
if (!this.isRootLevelToggle) {
|
|
5577
|
-
wrapHostContentInsideSpan(this.el.nativeElement, this.renderer, 'dropdown-item-content');
|
|
5578
|
-
}
|
|
5579
|
-
}
|
|
5580
5553
|
}
|
|
5581
5554
|
ClrDropdownTrigger.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.2", ngImport: i0, type: ClrDropdownTrigger, deps: [{ token: ClrDropdown }, { token: ClrPopoverToggleService }, { token: i0.ElementRef }, { token: DropdownFocusHandler }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
|
|
5582
5555
|
ClrDropdownTrigger.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.2", type: ClrDropdownTrigger, selector: "[clrDropdownTrigger],[clrDropdownToggle]", host: { listeners: { "click": "onDropdownTriggerClick($event)" }, properties: { "class.dropdown-toggle": "isRootLevelToggle", "class.dropdown-item": "!isRootLevelToggle", "class.expandable": "!isRootLevelToggle", "class.active": "active", "attr.aria-haspopup": "\"menu\"", "attr.aria-expanded": "active" } }, ngImport: i0 });
|
|
@@ -5679,9 +5652,6 @@ class ClrDropdownItem {
|
|
|
5679
5652
|
set dropdownItemId(value) {
|
|
5680
5653
|
this.focusableItem.id = value;
|
|
5681
5654
|
}
|
|
5682
|
-
ngAfterViewInit() {
|
|
5683
|
-
wrapHostContentInsideSpan(this.el.nativeElement, this.renderer, 'dropdown-item-content');
|
|
5684
|
-
}
|
|
5685
5655
|
onDropdownItemClick() {
|
|
5686
5656
|
// Move focus back to the root dropdown trigger.
|
|
5687
5657
|
// This is done BEFORE the dropdown is closed so that focus gets moved properly if a modal is opened.
|
|
@@ -22576,6 +22546,9 @@ class ClrDatagrid {
|
|
|
22576
22546
|
});
|
|
22577
22547
|
}
|
|
22578
22548
|
}));
|
|
22549
|
+
if (this.virtualScroll) {
|
|
22550
|
+
this.toggleVirtualScrollSubscriptions();
|
|
22551
|
+
}
|
|
22579
22552
|
// We need to preserve shift state, so it can be used on selection change, regardless of the input event
|
|
22580
22553
|
// that triggered the change. This helps us to easily resolve the k/b only case together with the mouse selection case.
|
|
22581
22554
|
this.zone.runOutsideAngular(() => {
|