@indigina/ui-kit 1.1.50 → 1.1.51
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/assets/icons/seko-360.svg +5 -0
- package/assets/icons/seko.svg +5 -0
- package/esm2022/lib/components/kit-navigation-menu/kit-navigation-menu-submenu/kit-navigation-menu-submenu.component.mjs +11 -19
- package/esm2022/lib/components/kit-navigation-menu/kit-navigation-menu.component.mjs +54 -39
- package/esm2022/lib/components/kit-navigation-menu/kit-navigation-menu.model.mjs +1 -1
- package/esm2022/lib/components/kit-navigation-menu/kit-navigation-menu.module.mjs +7 -3
- package/esm2022/lib/components/kit-navigation-menu/kit-navigation-menu.util.mjs +5 -8
- package/esm2022/lib/components/kit-svg-icon/kit-svg-icon.const.mjs +3 -1
- package/esm2022/lib/components/kit-svg-sprite/kit-svg-sprite.component.mjs +3 -3
- package/fesm2022/indigina-ui-kit.mjs +72 -103
- package/fesm2022/indigina-ui-kit.mjs.map +1 -1
- package/lib/components/kit-navigation-menu/kit-navigation-menu-submenu/kit-navigation-menu-submenu.component.d.ts +3 -3
- package/lib/components/kit-navigation-menu/kit-navigation-menu.component.d.ts +14 -12
- package/lib/components/kit-navigation-menu/kit-navigation-menu.model.d.ts +1 -0
- package/lib/components/kit-navigation-menu/kit-navigation-menu.module.d.ts +2 -1
- package/lib/components/kit-navigation-menu/kit-navigation-menu.util.d.ts +1 -1
- package/lib/components/kit-svg-icon/kit-svg-icon.const.d.ts +3 -1
- package/package.json +1 -1
- package/esm2022/lib/components/kit-navigation-menu/kit-navigation-menu-base.component.mjs +0 -42
- package/lib/components/kit-navigation-menu/kit-navigation-menu-base.component.d.ts +0 -15
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { KitNavigationMenuItem } from '../kit-navigation-menu.model';
|
|
2
|
-
import {
|
|
2
|
+
import { KitSvgIcon } from '../../kit-svg-icon/kit-svg-icon.const';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class KitNavigationMenuSubmenuComponent
|
|
4
|
+
export declare class KitNavigationMenuSubmenuComponent {
|
|
5
5
|
item: KitNavigationMenuItem | null;
|
|
6
|
+
readonly KitSvgIcon: typeof KitSvgIcon;
|
|
6
7
|
handleClick(item: KitNavigationMenuItem): void;
|
|
7
|
-
collapseMenu(item: KitNavigationMenuItem | null): void;
|
|
8
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<KitNavigationMenuSubmenuComponent, never>;
|
|
9
9
|
static ɵcmp: i0.ɵɵComponentDeclaration<KitNavigationMenuSubmenuComponent, "kit-navigation-menu-submenu", never, { "item": { "alias": "item"; "required": false; }; }, {}, never, never, false, never>;
|
|
10
10
|
}
|
|
@@ -1,31 +1,33 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { EventEmitter, OnInit, WritableSignal } from '@angular/core';
|
|
2
2
|
import { KitNavigationMenuItem } from './kit-navigation-menu.model';
|
|
3
3
|
import { KitSvgIconType } from '../kit-svg-icon/kit-svg-icon.const';
|
|
4
4
|
import { Router } from '@angular/router';
|
|
5
|
-
import {
|
|
5
|
+
import { KitTooltipPosition } from '../../directives/kit-tooltip/kit-tooltip.directive';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class KitNavigationMenuComponent
|
|
7
|
+
export declare class KitNavigationMenuComponent implements OnInit {
|
|
8
8
|
private router;
|
|
9
|
-
private changeDetectorRef;
|
|
10
9
|
/**
|
|
11
10
|
* An items list which is going to be rendered as menu items
|
|
12
11
|
*/
|
|
13
12
|
items: KitNavigationMenuItem[];
|
|
14
13
|
/**
|
|
15
|
-
* Defines whether
|
|
14
|
+
* Defines whether menu will be collapsed
|
|
16
15
|
*/
|
|
17
|
-
|
|
16
|
+
collapsed: boolean;
|
|
18
17
|
/**
|
|
19
|
-
*
|
|
18
|
+
* An action which is emitted when the collapse state changes
|
|
20
19
|
*/
|
|
21
|
-
|
|
20
|
+
collapseChanged: EventEmitter<boolean>;
|
|
21
|
+
readonly selectedItem: WritableSignal<KitNavigationMenuItem | null>;
|
|
22
22
|
readonly KitSvgIconType: typeof KitSvgIconType;
|
|
23
|
-
|
|
23
|
+
readonly KitTooltipPosition: typeof KitTooltipPosition;
|
|
24
|
+
constructor(router: Router);
|
|
24
25
|
ngOnInit(): void;
|
|
25
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
26
26
|
handleClick(item: KitNavigationMenuItem): void;
|
|
27
27
|
private setExpandedStateOnRouterChange;
|
|
28
|
-
private
|
|
28
|
+
private updateNavigationState;
|
|
29
|
+
private collapseAllItems;
|
|
30
|
+
private toggleItem;
|
|
29
31
|
static ɵfac: i0.ɵɵFactoryDeclaration<KitNavigationMenuComponent, never>;
|
|
30
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KitNavigationMenuComponent, "kit-navigation-menu", never, { "items": { "alias": "items"; "required": false; }; "
|
|
32
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KitNavigationMenuComponent, "kit-navigation-menu", never, { "items": { "alias": "items"; "required": false; }; "collapsed": { "alias": "collapsed"; "required": false; }; }, { "collapseChanged": "collapseChanged"; }, never, never, false, never>;
|
|
31
33
|
}
|
|
@@ -4,8 +4,9 @@ import * as i2 from "@angular/common";
|
|
|
4
4
|
import * as i3 from "../kit-svg-icon/kit-svg-icon.module";
|
|
5
5
|
import * as i4 from "@angular/router";
|
|
6
6
|
import * as i5 from "./kit-navigation-menu-submenu/kit-navigation-menu-submenu.module";
|
|
7
|
+
import * as i6 from "../../directives/kit-tooltip/kit-tooltip.module";
|
|
7
8
|
export declare class KitNavigationMenuModule {
|
|
8
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<KitNavigationMenuModule, never>;
|
|
9
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<KitNavigationMenuModule, [typeof i1.KitNavigationMenuComponent], [typeof i2.CommonModule, typeof i3.KitSvgIconModule, typeof i4.RouterModule, typeof i5.KitNavigationMenuSubmenuModule], [typeof i1.KitNavigationMenuComponent]>;
|
|
10
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<KitNavigationMenuModule, [typeof i1.KitNavigationMenuComponent], [typeof i2.CommonModule, typeof i3.KitSvgIconModule, typeof i4.RouterModule, typeof i5.KitNavigationMenuSubmenuModule, typeof i6.KitTooltipModule], [typeof i1.KitNavigationMenuComponent]>;
|
|
10
11
|
static ɵinj: i0.ɵɵInjectorDeclaration<KitNavigationMenuModule>;
|
|
11
12
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { AnimationTriggerMetadata } from '@angular/animations';
|
|
2
|
-
export declare const expandCollapseAnimation: AnimationTriggerMetadata;
|
|
2
|
+
export declare const expandCollapseAnimation: (property: 'height' | 'width') => AnimationTriggerMetadata;
|
|
@@ -92,7 +92,9 @@ export declare enum KitSvgIcon {
|
|
|
92
92
|
PAYMENTS = "payments",
|
|
93
93
|
SUPPLY_CHAIN = "supply-chain",
|
|
94
94
|
ANALYTICS = "analytics",
|
|
95
|
-
CONTROL_PANEL = "control-panel"
|
|
95
|
+
CONTROL_PANEL = "control-panel",
|
|
96
|
+
SEKO = "seko",
|
|
97
|
+
SEKO_360 = "seko-360"
|
|
96
98
|
}
|
|
97
99
|
export declare enum KitSvgIconType {
|
|
98
100
|
FILL = "fill",
|
package/package.json
CHANGED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
|
|
2
|
-
import { KitSvgIcon } from '../kit-svg-icon/kit-svg-icon.const';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export class KitNavigationMenuBaseComponent {
|
|
5
|
-
constructor() {
|
|
6
|
-
/**
|
|
7
|
-
* Defines whether menu will be collapsed
|
|
8
|
-
*/
|
|
9
|
-
this.collapsed = false;
|
|
10
|
-
this.KitSvgIcon = KitSvgIcon;
|
|
11
|
-
}
|
|
12
|
-
collapseAll(items) {
|
|
13
|
-
items.forEach(item => {
|
|
14
|
-
item.expanded = false;
|
|
15
|
-
if (item.items?.length) {
|
|
16
|
-
this.collapseAll(item.items);
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
handleClick(item) {
|
|
21
|
-
if (!this.collapsed) {
|
|
22
|
-
item.expanded = !item.expanded;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
handleHover(item, isHovering) {
|
|
26
|
-
if (this.collapsed) {
|
|
27
|
-
item.expanded = isHovering;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.7", ngImport: i0, type: KitNavigationMenuBaseComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
31
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.7", type: KitNavigationMenuBaseComponent, selector: "ng-component", inputs: { collapsed: "collapsed" }, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
32
|
-
}
|
|
33
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.7", ngImport: i0, type: KitNavigationMenuBaseComponent, decorators: [{
|
|
34
|
-
type: Component,
|
|
35
|
-
args: [{
|
|
36
|
-
template: '',
|
|
37
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
38
|
-
}]
|
|
39
|
-
}], propDecorators: { collapsed: [{
|
|
40
|
-
type: Input
|
|
41
|
-
}] } });
|
|
42
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoia2l0LW5hdmlnYXRpb24tbWVudS1iYXNlLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3VpLWtpdC9zcmMvbGliL2NvbXBvbmVudHMva2l0LW5hdmlnYXRpb24tbWVudS9raXQtbmF2aWdhdGlvbi1tZW51L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1cbiAgICB9KTtcbiAgfVxuXG4gIGhhbmRsZUNsaWNrKGl0ZW06IEtpdE5hdmlnYXRpb25NZW51SXRlbSk6IHZvaWQge1xuICAgIGlmICghdGhpcy5jb2xsYXBzZWQpIHtcbiAgICAgIGl0ZW0uZXhwYW5kZWQgPSAhaXRlbS5leHBhbmRlZDtcbiAgICB9XG4gIH1cblxuICBoYW5kbGVIb3ZlcihpdGVtOiBLaXROYXZpZ2F0aW9uTWVudUl0ZW0sIGlzSG92ZXJpbmc6IGJvb2xlYW4pOiB2b2lkIHtcbiAgICBpZiAodGhpcy5jb2xsYXBzZWQpIHtcbiAgICAgIGl0ZW0uZXhwYW5kZWQgPSBpc0hvdmVyaW5nO1xuICAgIH1cbiAgfVxufVxuIl19
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { KitNavigationMenuItem } from './kit-navigation-menu.model';
|
|
2
|
-
import { KitSvgIcon } from '../kit-svg-icon/kit-svg-icon.const';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class KitNavigationMenuBaseComponent {
|
|
5
|
-
/**
|
|
6
|
-
* Defines whether menu will be collapsed
|
|
7
|
-
*/
|
|
8
|
-
collapsed: boolean;
|
|
9
|
-
readonly KitSvgIcon: typeof KitSvgIcon;
|
|
10
|
-
collapseAll(items: KitNavigationMenuItem[]): void;
|
|
11
|
-
handleClick(item: KitNavigationMenuItem): void;
|
|
12
|
-
handleHover(item: KitNavigationMenuItem, isHovering: boolean): void;
|
|
13
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<KitNavigationMenuBaseComponent, never>;
|
|
14
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KitNavigationMenuBaseComponent, "ng-component", never, { "collapsed": { "alias": "collapsed"; "required": false; }; }, {}, never, never, false, never>;
|
|
15
|
-
}
|