@koobiq/components 20.4.2 → 20.4.4
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/badge/_badge-theme.scss +31 -0
- package/breadcrumbs/breadcrumbs.scss +16 -1
- package/fesm2022/koobiq-components-badge.mjs +2 -2
- package/fesm2022/koobiq-components-badge.mjs.map +1 -1
- package/fesm2022/koobiq-components-breadcrumbs.mjs +2 -2
- package/fesm2022/koobiq-components-breadcrumbs.mjs.map +1 -1
- package/fesm2022/koobiq-components-core.mjs +1 -1
- package/fesm2022/koobiq-components-core.mjs.map +1 -1
- package/fesm2022/koobiq-components-dl.mjs +6 -4
- package/fesm2022/koobiq-components-dl.mjs.map +1 -1
- package/fesm2022/koobiq-components-notification-center.mjs +2 -2
- package/fesm2022/koobiq-components-notification-center.mjs.map +1 -1
- package/fesm2022/koobiq-components-overflow-items.mjs +99 -42
- package/fesm2022/koobiq-components-overflow-items.mjs.map +1 -1
- package/fesm2022/koobiq-components-search-expandable.mjs +2 -0
- package/fesm2022/koobiq-components-search-expandable.mjs.map +1 -1
- package/fesm2022/koobiq-components-sidepanel.mjs +14 -24
- package/fesm2022/koobiq-components-sidepanel.mjs.map +1 -1
- package/fesm2022/koobiq-components-toast.mjs +1 -3
- package/fesm2022/koobiq-components-toast.mjs.map +1 -1
- package/fesm2022/koobiq-components-toggle.mjs +11 -4
- package/fesm2022/koobiq-components-toggle.mjs.map +1 -1
- package/fesm2022/koobiq-components-tree.mjs +49 -19
- package/fesm2022/koobiq-components-tree.mjs.map +1 -1
- package/overflow-items/index.d.ts +12 -3
- package/package.json +4 -4
- package/schematics/ng-add/index.js +1 -1
- package/sidepanel/index.d.ts +6 -1
- package/tree/index.d.ts +10 -0
|
@@ -108,7 +108,8 @@ declare class KbqOverflowItems {
|
|
|
108
108
|
*/
|
|
109
109
|
readonly additionalResizeObserverTargets: _angular_core.InputSignal<Element | Element[]>;
|
|
110
110
|
/**
|
|
111
|
-
* Emits
|
|
111
|
+
* Emits the set of hidden items after every recalculation, also when it has not changed: a recalculation shows every
|
|
112
|
+
* item before it hides the overflown ones again, so a consumer that hides items itself re-applies that here.
|
|
112
113
|
*/
|
|
113
114
|
readonly changes: _angular_core.OutputEmitterRef<ReadonlySet<unknown>>;
|
|
114
115
|
/**
|
|
@@ -127,6 +128,7 @@ declare class KbqOverflowItems {
|
|
|
127
128
|
* @default 'nowrap'
|
|
128
129
|
*/
|
|
129
130
|
readonly wrap: _angular_core.InputSignal<KbqFlexWrap>;
|
|
131
|
+
/** The main axis of each orientation, as the `DOMRect` and `CSSStyleDeclaration` members to read. */
|
|
130
132
|
private readonly orientationConfig;
|
|
131
133
|
constructor();
|
|
132
134
|
private setupObservers;
|
|
@@ -146,9 +148,16 @@ declare class KbqOverflowItems {
|
|
|
146
148
|
private setStyles;
|
|
147
149
|
private hasOverflown;
|
|
148
150
|
/**
|
|
149
|
-
*
|
|
151
|
+
* Measures how far the children of the container that take part in its layout exceed its content box along the
|
|
152
|
+
* main axis, and the space each of them takes, its margins and one gap included.
|
|
150
153
|
*/
|
|
151
|
-
private
|
|
154
|
+
private measure;
|
|
155
|
+
/**
|
|
156
|
+
* Children of the element that take part in its flex layout: neither `display: none` nor taken out of flow, as
|
|
157
|
+
* hidden items are, with the children of a `display: contents` child in its place.
|
|
158
|
+
*/
|
|
159
|
+
private getLaidOutChildren;
|
|
160
|
+
private px;
|
|
152
161
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<KbqOverflowItems, never>;
|
|
153
162
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<KbqOverflowItems, "[kbqOverflowItems]", ["kbqOverflowItems"], { "reverseOverflowOrder": { "alias": "reverseOverflowOrder"; "required": false; "isSignal": true; }; "debounceTime": { "alias": "debounceTime"; "required": false; "isSignal": true; }; "additionalResizeObserverTargets": { "alias": "additionalResizeObserverTargets"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "wrap": { "alias": "wrap"; "required": false; "isSignal": true; }; }, { "changes": "changes"; }, ["items", "result"], never, true, never>;
|
|
154
163
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@koobiq/components",
|
|
3
|
-
"version": "20.4.
|
|
3
|
+
"version": "20.4.4",
|
|
4
4
|
"description": "koobiq",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -25,10 +25,10 @@
|
|
|
25
25
|
"@angular/cdk": ">=20.0.0",
|
|
26
26
|
"@angular/core": ">=20.0.0",
|
|
27
27
|
"@angular/forms": ">=20.0.0",
|
|
28
|
-
"@koobiq/angular-moment-adapter": "20.4.
|
|
29
|
-
"@koobiq/angular-luxon-adapter": "20.4.
|
|
28
|
+
"@koobiq/angular-moment-adapter": "20.4.4",
|
|
29
|
+
"@koobiq/angular-luxon-adapter": "20.4.4",
|
|
30
30
|
"@koobiq/date-formatter": "^3.2.3",
|
|
31
|
-
"@koobiq/icons": "^11.1.3",
|
|
31
|
+
"@koobiq/icons": "^11.1.3 || ^12.0.0",
|
|
32
32
|
"@koobiq/design-tokens": "^3.14.0"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
@@ -27,7 +27,7 @@ function ngAdd(options) {
|
|
|
27
27
|
}
|
|
28
28
|
// Installing dependencies
|
|
29
29
|
utils_packageConfig.addPackageToPackageJson(tree, '@angular/cdk', "^20.2.14");
|
|
30
|
-
utils_packageConfig.addPackageToPackageJson(tree, '@koobiq/angular-luxon-adapter', "^20.4.
|
|
30
|
+
utils_packageConfig.addPackageToPackageJson(tree, '@koobiq/angular-luxon-adapter', "^20.4.4");
|
|
31
31
|
utils_packageConfig.addPackageToPackageJson(tree, '@koobiq/date-formatter', "^3.5.1");
|
|
32
32
|
utils_packageConfig.addPackageToPackageJson(tree, '@koobiq/date-adapter', "^3.5.1");
|
|
33
33
|
utils_packageConfig.addPackageToPackageJson(tree, '@koobiq/icons', "^12.2.0");
|
package/sidepanel/index.d.ts
CHANGED
|
@@ -152,12 +152,17 @@ declare class KbqSidepanelRef<T = any, R = any> {
|
|
|
152
152
|
* Button that will close the current sidepanel.
|
|
153
153
|
*/
|
|
154
154
|
declare class KbqSidepanelClose implements OnInit, OnChanges {
|
|
155
|
-
|
|
155
|
+
private readonly declaredSidepanelRef;
|
|
156
156
|
private elementRef;
|
|
157
157
|
private sidepanelService;
|
|
158
158
|
private readonly renderer;
|
|
159
159
|
sidepanelResult: any;
|
|
160
160
|
readonly kbqSidepanelClose: i0.InputSignal<any>;
|
|
161
|
+
/**
|
|
162
|
+
* Sidepanel the button closes: the one it is rendered in. A button rendered outside any sidepanel, such as
|
|
163
|
+
* an item of a dropdown opened from one, closes the sidepanel its template is declared in.
|
|
164
|
+
*/
|
|
165
|
+
get sidepanelRef(): KbqSidepanelRef;
|
|
161
166
|
ngOnInit(): void;
|
|
162
167
|
ngOnChanges(changes: SimpleChanges): void;
|
|
163
168
|
static ɵfac: i0.ɵɵFactoryDeclaration<KbqSidepanelClose, never>;
|
package/tree/index.d.ts
CHANGED
|
@@ -576,6 +576,8 @@ declare class KbqTreeOption extends KbqTreeNode<KbqTreeOption> implements AfterC
|
|
|
576
576
|
markForCheck(): void;
|
|
577
577
|
/** @docs-private */
|
|
578
578
|
protected onMouseenter(): void;
|
|
579
|
+
/** Recomputes the option's own checkbox state, leaving its ancestors as they are. */
|
|
580
|
+
private syncCheckboxState;
|
|
579
581
|
static ɵfac: i0.ɵɵFactoryDeclaration<KbqTreeOption, never>;
|
|
580
582
|
static ɵcmp: i0.ɵɵComponentDeclaration<KbqTreeOption, "kbq-tree-option", ["kbqTreeOption"], { "checkboxThirdState": { "alias": "checkboxThirdState"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; }; "selectable": { "alias": "selectable"; "required": false; "isSignal": true; }; "selectAllRow": { "alias": "selectAllRow"; "required": false; "isSignal": true; }; "showCheckbox": { "alias": "showCheckbox"; "required": false; }; }, { "onSelectionChange": "onSelectionChange"; }, ["toggleElementDirective", "toggleElementComponent", "pseudoCheckbox", "actionButton", "tooltipTrigger", "dropdownTrigger"], ["kbq-tree-node-toggle, [kbq-tree-node-toggle], [kbqTreeNodeToggle]", "kbq-pseudo-checkbox", "kbq-checkbox", "[kbq-icon]", "kbq-progress-spinner", "*", "kbq-option-action"], true, never>;
|
|
581
583
|
}
|
|
@@ -640,6 +642,8 @@ declare class KbqTreeSelection extends KbqTreeBase<any> implements ControlValueA
|
|
|
640
642
|
readonly selectAllOption: i0.Signal<KbqTreeOption | undefined>;
|
|
641
643
|
unorderedOptions: QueryList<KbqTreeOption>;
|
|
642
644
|
treeControl: FlatTreeControl<any>;
|
|
645
|
+
/** `treeControl.dataNodes` the options' checkbox states were last recomputed against. */
|
|
646
|
+
private checkboxSyncedDataNodes;
|
|
643
647
|
readonly navigationChange: i0.OutputEmitterRef<KbqTreeNavigationChange<KbqTreeOption>>;
|
|
644
648
|
readonly selectionChange: EventEmitter<KbqTreeSelectionChange<KbqTreeOption>>;
|
|
645
649
|
readonly onSelectAll: i0.OutputEmitterRef<KbqTreeSelectAllEvent<KbqTreeOption>>;
|
|
@@ -720,6 +724,12 @@ declare class KbqTreeSelection extends KbqTreeBase<any> implements ControlValueA
|
|
|
720
724
|
setFocusedOption(option: KbqTreeOption): void;
|
|
721
725
|
toggleFocusedOption(): void;
|
|
722
726
|
renderNodeChanges(data: KbqTreeOption[], dataDiffer?: IterableDiffer<KbqTreeOption>, viewContainer?: ViewContainerRef, parentData?: KbqTreeOption): void;
|
|
727
|
+
/**
|
|
728
|
+
* Recomputes every option's checkbox state after `dataNodes` is replaced, which moves the descendants a branch
|
|
729
|
+
* counts: no selection change follows to do it. A microtask later, as a flat data source assigns `dataNodes` only
|
|
730
|
+
* after it emits.
|
|
731
|
+
*/
|
|
732
|
+
private scheduleCheckboxSync;
|
|
723
733
|
emitNavigationEvent(option: KbqTreeOption): void;
|
|
724
734
|
emitChangeEvent(option: KbqTreeOption): void;
|
|
725
735
|
/**
|