@indigina/ui-kit 1.1.49 → 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.
Files changed (25) hide show
  1. package/assets/icons/seko-360.svg +5 -0
  2. package/assets/icons/seko.svg +5 -0
  3. package/esm2022/lib/components/kit-datepicker/kit-datepicker.component.mjs +2 -2
  4. package/esm2022/lib/components/kit-daterange/kit-daterange.component.mjs +6 -17
  5. package/esm2022/lib/components/kit-navigation-menu/kit-navigation-menu-submenu/kit-navigation-menu-submenu.component.mjs +11 -19
  6. package/esm2022/lib/components/kit-navigation-menu/kit-navigation-menu.component.mjs +54 -39
  7. package/esm2022/lib/components/kit-navigation-menu/kit-navigation-menu.model.mjs +1 -1
  8. package/esm2022/lib/components/kit-navigation-menu/kit-navigation-menu.module.mjs +7 -3
  9. package/esm2022/lib/components/kit-navigation-menu/kit-navigation-menu.util.mjs +5 -8
  10. package/esm2022/lib/components/kit-svg-icon/kit-svg-icon.const.mjs +3 -1
  11. package/esm2022/lib/components/kit-svg-sprite/kit-svg-sprite.component.mjs +3 -3
  12. package/esm2022/public-api.mjs +2 -2
  13. package/fesm2022/indigina-ui-kit.mjs +80 -122
  14. package/fesm2022/indigina-ui-kit.mjs.map +1 -1
  15. package/lib/components/kit-daterange/kit-daterange.component.d.ts +3 -11
  16. package/lib/components/kit-navigation-menu/kit-navigation-menu-submenu/kit-navigation-menu-submenu.component.d.ts +3 -3
  17. package/lib/components/kit-navigation-menu/kit-navigation-menu.component.d.ts +14 -12
  18. package/lib/components/kit-navigation-menu/kit-navigation-menu.model.d.ts +1 -0
  19. package/lib/components/kit-navigation-menu/kit-navigation-menu.module.d.ts +2 -1
  20. package/lib/components/kit-navigation-menu/kit-navigation-menu.util.d.ts +1 -1
  21. package/lib/components/kit-svg-icon/kit-svg-icon.const.d.ts +3 -1
  22. package/package.json +1 -1
  23. package/public-api.d.ts +1 -1
  24. package/esm2022/lib/components/kit-navigation-menu/kit-navigation-menu-base.component.mjs +0 -42
  25. package/lib/components/kit-navigation-menu/kit-navigation-menu-base.component.d.ts +0 -15
@@ -7,10 +7,6 @@ export declare enum KitDaterangeType {
7
7
  DEFAULT = "default",
8
8
  BUTTON = "button"
9
9
  }
10
- export declare enum KitDaterangeIconPosition {
11
- LEFT = "left",
12
- RIGHT = "right"
13
- }
14
10
  export interface KitDaterangeValue {
15
11
  start: Date | null;
16
12
  end: Date | null;
@@ -62,13 +58,9 @@ export declare class KitDaterangeComponent {
62
58
  */
63
59
  disabled?: boolean;
64
60
  /**
65
- * Defines a state whether the component will be valid or not
66
- */
67
- isValid?: boolean;
68
- /**
69
- * Defines a value which used to set position of the calendar icon
61
+ * Defines a state whether the component will be invalid
70
62
  */
71
- iconPosition: KitDaterangeIconPosition;
63
+ invalid: boolean;
72
64
  /**
73
65
  * Defines an icon which will be used to the left of the info message
74
66
  */
@@ -109,5 +101,5 @@ export declare class KitDaterangeComponent {
109
101
  onBlur(): void;
110
102
  onClose(): void;
111
103
  static ɵfac: i0.ɵɵFactoryDeclaration<KitDaterangeComponent, never>;
112
- static ɵcmp: i0.ɵɵComponentDeclaration<KitDaterangeComponent, "kit-daterange", never, { "type": { "alias": "type"; "required": false; }; "label": { "alias": "label"; "required": false; }; "startLabel": { "alias": "startLabel"; "required": false; }; "endLabel": { "alias": "endLabel"; "required": false; }; "startPlaceholder": { "alias": "startPlaceholder"; "required": false; }; "endPlaceholder": { "alias": "endPlaceholder"; "required": false; }; "format": { "alias": "format"; "required": false; }; "defaultStartDate": { "alias": "defaultStartDate"; "required": false; }; "defaultEndDate": { "alias": "defaultEndDate"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "isValid": { "alias": "isValid"; "required": false; }; "iconPosition": { "alias": "iconPosition"; "required": false; }; "messageIcon": { "alias": "messageIcon"; "required": false; }; "messageText": { "alias": "messageText"; "required": false; }; "startDateControl": { "alias": "startDateControl"; "required": false; }; "endDateControl": { "alias": "endDateControl"; "required": false; }; }, { "startDateChanged": "startDateChanged"; "closed": "closed"; "endDateChanged": "endDateChanged"; }, never, never, false, never>;
104
+ static ɵcmp: i0.ɵɵComponentDeclaration<KitDaterangeComponent, "kit-daterange", never, { "type": { "alias": "type"; "required": false; }; "label": { "alias": "label"; "required": false; }; "startLabel": { "alias": "startLabel"; "required": false; }; "endLabel": { "alias": "endLabel"; "required": false; }; "startPlaceholder": { "alias": "startPlaceholder"; "required": false; }; "endPlaceholder": { "alias": "endPlaceholder"; "required": false; }; "format": { "alias": "format"; "required": false; }; "defaultStartDate": { "alias": "defaultStartDate"; "required": false; }; "defaultEndDate": { "alias": "defaultEndDate"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "invalid": { "alias": "invalid"; "required": false; }; "messageIcon": { "alias": "messageIcon"; "required": false; }; "messageText": { "alias": "messageText"; "required": false; }; "startDateControl": { "alias": "startDateControl"; "required": false; }; "endDateControl": { "alias": "endDateControl"; "required": false; }; }, { "startDateChanged": "startDateChanged"; "closed": "closed"; "endDateChanged": "endDateChanged"; }, never, never, false, never>;
113
105
  }
@@ -1,10 +1,10 @@
1
1
  import { KitNavigationMenuItem } from '../kit-navigation-menu.model';
2
- import { KitNavigationMenuBaseComponent } from '../kit-navigation-menu-base.component';
2
+ import { KitSvgIcon } from '../../kit-svg-icon/kit-svg-icon.const';
3
3
  import * as i0 from "@angular/core";
4
- export declare class KitNavigationMenuSubmenuComponent extends KitNavigationMenuBaseComponent {
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 { ChangeDetectorRef, OnChanges, OnInit, SimpleChanges } from '@angular/core';
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 { KitNavigationMenuBaseComponent } from './kit-navigation-menu-base.component';
5
+ import { KitTooltipPosition } from '../../directives/kit-tooltip/kit-tooltip.directive';
6
6
  import * as i0 from "@angular/core";
7
- export declare class KitNavigationMenuComponent extends KitNavigationMenuBaseComponent implements OnInit, OnChanges {
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 the component will have an animation when collapsing/expanding the menu
14
+ * Defines whether menu will be collapsed
16
15
  */
17
- animate: boolean;
16
+ collapsed: boolean;
18
17
  /**
19
- * Defines whether the component can have more than one item expanded at the same time
18
+ * An action which is emitted when the collapse state changes
20
19
  */
21
- multiple: boolean;
20
+ collapseChanged: EventEmitter<boolean>;
21
+ readonly selectedItem: WritableSignal<KitNavigationMenuItem | null>;
22
22
  readonly KitSvgIconType: typeof KitSvgIconType;
23
- constructor(router: Router, changeDetectorRef: ChangeDetectorRef);
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 setExpandedState;
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; }; "animate": { "alias": "animate"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; }, {}, never, never, false, never>;
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
  }
@@ -6,5 +6,6 @@ export interface KitNavigationMenuItem {
6
6
  icon?: KitSvgIcon;
7
7
  iconType?: KitSvgIconType;
8
8
  expanded?: boolean;
9
+ active?: boolean;
9
10
  items?: KitNavigationMenuItem[];
10
11
  }
@@ -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
@@ -7,7 +7,7 @@
7
7
  "components",
8
8
  "shared"
9
9
  ],
10
- "version": "1.1.49",
10
+ "version": "1.1.51",
11
11
  "peerDependencies": {
12
12
  "@angular/common": "^17.0.7",
13
13
  "@angular/core": "^17.0.7"
package/public-api.d.ts CHANGED
@@ -46,7 +46,7 @@ export { KitTooltipDirective, KitTooltipPosition } from './lib/directives/kit-to
46
46
  export { KitTooltipModule } from './lib/directives/kit-tooltip/kit-tooltip.module';
47
47
  export { KitToastrModule } from './lib/components/kit-toastr/kit-toastr.module';
48
48
  export { KitToastrService, KitToastrConfig, KitToastrType, KitToastrPosition } from './lib/components/kit-toastr/kit-toastr.service';
49
- export { KitDaterangeComponent, KitDaterangeType, KitDaterangeIconPosition, KitDaterangeValue, } from './lib/components/kit-daterange/kit-daterange.component';
49
+ export { KitDaterangeComponent, KitDaterangeType, KitDaterangeValue } from './lib/components/kit-daterange/kit-daterange.component';
50
50
  export { KitDaterangeModule } from './lib/components/kit-daterange/kit-daterange.module';
51
51
  export { KitCtaPanelItemComponent } from './lib/components/kit-cta-panel-item/kit-cta-panel-item.component';
52
52
  export { KitCtaPanelItemModule } from './lib/components/kit-cta-panel-item/kit-cta-panel-item.module';
@@ -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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoia2l0LW5hdmlnYXRpb24tbWVudS1iYXNlLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3VpLWtpdC9zcmMvbGliL2NvbXBvbmVudHMva2l0LW5hdmlnYXRpb24tbWVudS9raXQtbmF2aWdhdGlvbi1tZ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gIH1cbiAgICB9KTtcbiAgfVxuXG4gIGhhbmRsZUNsaWNrKGl0ZW06IEtpdE5hdmlnYXRpb25NZW51SXRlbSk6IHZvaWQge1xuICAgIGlmICghdGhpcy5jb2xsYXBzZWQpIHtcbiAgICAgIGl0ZW0uZXhwYW5kZWQgPSAhaXRlbS5leHBhbmRlZDtcbiAgICB9XG4gIH1cblxuICBoYW5kbGVIb3ZlcihpdGVtOiBLaXROYXZpZ2F0aW9uTWVudUl0ZW0sIGlzSG92ZXJpbmc6IGJvb2xlYW4pOiB2b2lkIHtcbiAgICBpZiAodGhpcy5jb2xsYXBzZWQpIHtcbiAgICAgIGl0ZW0uZXhwYW5kZWQgPSBpc0hvdmVyaW5nO1xuICAgIH1cbiAgfVxufVxuIl19
@@ -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
- }