@indigina/ui-kit 1.1.92 → 1.1.93

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.
@@ -1,14 +1,43 @@
1
1
  import { EventEmitter } from '@angular/core';
2
- import { KitSvgIcon } from '../kit-svg-icon/kit-svg-icon.const';
2
+ import { KitSvgIcon, KitSvgIconType } from '../kit-svg-icon/kit-svg-icon.const';
3
+ import { KitPillType } from './kit-pill.const';
3
4
  import * as i0 from "@angular/core";
4
5
  export declare class KitPillComponent {
6
+ /**
7
+ * Defines if the pill will be removable. If set to true pill renders a remove button
8
+ */
5
9
  removable: boolean;
10
+ /**
11
+ * Defines if the pill will be selectable
12
+ */
6
13
  selectable: boolean;
14
+ /**
15
+ * Defines the selected state of the pill
16
+ */
7
17
  selected: boolean;
18
+ /**
19
+ * Defines the pill type
20
+ */
21
+ type: KitPillType;
22
+ /**
23
+ * Defines the icon which will be used in a pill with icon
24
+ */
25
+ icon?: KitSvgIcon;
26
+ /**
27
+ * Defines the icon type
28
+ */
29
+ iconType?: KitSvgIconType;
30
+ /**
31
+ * An action which is emitted when the pill is clicked
32
+ */
8
33
  clicked: EventEmitter<boolean>;
34
+ /**
35
+ * An action which is emitted when the close button is clicked
36
+ */
9
37
  removed: EventEmitter<void>;
10
- onComponentClick(): void;
11
38
  readonly closeIcon: KitSvgIcon;
39
+ readonly kitSvgIconType: typeof KitSvgIconType;
40
+ onComponentClick(): void;
12
41
  static ɵfac: i0.ɵɵFactoryDeclaration<KitPillComponent, never>;
13
- static ɵcmp: i0.ɵɵComponentDeclaration<KitPillComponent, "kit-pill", never, { "removable": { "alias": "removable"; "required": false; }; "selectable": { "alias": "selectable"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; }, { "clicked": "clicked"; "removed": "removed"; }, never, ["*"], false, never>;
42
+ static ɵcmp: i0.ɵɵComponentDeclaration<KitPillComponent, "kit-pill", never, { "removable": { "alias": "removable"; "required": false; }; "selectable": { "alias": "selectable"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "type": { "alias": "type"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "iconType": { "alias": "iconType"; "required": false; }; }, { "clicked": "clicked"; "removed": "removed"; }, never, ["*"], true, never>;
14
43
  }
@@ -0,0 +1,4 @@
1
+ export declare enum KitPillType {
2
+ DEFAULT = "default",
3
+ DASHED = "dashed"
4
+ }
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "components",
8
8
  "shared"
9
9
  ],
10
- "version": "1.1.92",
10
+ "version": "1.1.93",
11
11
  "peerDependencies": {
12
12
  "@angular/common": "^18.2.6",
13
13
  "@angular/core": "^18.2.6"
package/public-api.d.ts CHANGED
@@ -44,7 +44,7 @@ export { KitCheckboxModule } from './lib/components/kit-checkbox/kit-checkbox.mo
44
44
  export { KitToggleComponent } from './lib/components/kit-toggle/kit-toggle.component';
45
45
  export { KitToggleModule } from './lib/components/kit-toggle/kit-toggle.module';
46
46
  export { KitPillComponent } from './lib/components/kit-pill/kit-pill.component';
47
- export { KitPillModule } from './lib/components/kit-pill/kit-pill.module';
47
+ export { KitPillType } from './lib/components/kit-pill/kit-pill.const';
48
48
  export { KitTooltipDirective, KitTooltipPosition } from './lib/directives/kit-tooltip/kit-tooltip.directive';
49
49
  export { KitTooltipModule } from './lib/directives/kit-tooltip/kit-tooltip.module';
50
50
  export { KitToastrModule } from './lib/components/kit-toastr/kit-toastr.module';
@@ -1,28 +0,0 @@
1
- import { NgModule } from '@angular/core';
2
- import { KitPillComponent } from './kit-pill.component';
3
- import { CommonModule } from '@angular/common';
4
- import { KitSvgIconModule } from '../kit-svg-icon/kit-svg-icon.module';
5
- import * as i0 from "@angular/core";
6
- export class KitPillModule {
7
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: KitPillModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
8
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.6", ngImport: i0, type: KitPillModule, declarations: [KitPillComponent], imports: [KitSvgIconModule,
9
- CommonModule], exports: [KitPillComponent] }); }
10
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: KitPillModule, imports: [KitSvgIconModule,
11
- CommonModule] }); }
12
- }
13
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: KitPillModule, decorators: [{
14
- type: NgModule,
15
- args: [{
16
- declarations: [
17
- KitPillComponent,
18
- ],
19
- exports: [
20
- KitPillComponent,
21
- ],
22
- imports: [
23
- KitSvgIconModule,
24
- CommonModule,
25
- ],
26
- }]
27
- }] });
28
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoia2l0LXBpbGwubW9kdWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdWkta2l0L3NyYy9saWIvY29tcG9uZW50cy9raXQtcGlsbC9raXQtcGlsbC5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUN6QyxPQUFPLEVBQUUsZ0JBQWdCLEVBQUUsTUFBTSxzQkFBc0IsQ0FBQztBQUN4RCxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDL0MsT0FBTyxFQUFFLGdCQUFnQixFQUFFLE1BQU0scUNBQXFDLENBQUM7O0FBY3ZFLE1BQU0sT0FBTyxhQUFhOzhHQUFiLGFBQWE7K0dBQWIsYUFBYSxpQkFWdEIsZ0JBQWdCLGFBTWhCLGdCQUFnQjtZQUNoQixZQUFZLGFBSlosZ0JBQWdCOytHQU9QLGFBQWEsWUFKdEIsZ0JBQWdCO1lBQ2hCLFlBQVk7OzJGQUdILGFBQWE7a0JBWnpCLFFBQVE7bUJBQUM7b0JBQ1IsWUFBWSxFQUFFO3dCQUNaLGdCQUFnQjtxQkFDakI7b0JBQ0QsT0FBTyxFQUFFO3dCQUNQLGdCQUFnQjtxQkFDakI7b0JBQ0QsT0FBTyxFQUFFO3dCQUNQLGdCQUFnQjt3QkFDaEIsWUFBWTtxQkFDYjtpQkFDRiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IE5nTW9kdWxlIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5pbXBvcnQgeyBLaXRQaWxsQ29tcG9uZW50IH0gZnJvbSAnLi9raXQtcGlsbC5jb21wb25lbnQnO1xuaW1wb3J0IHsgQ29tbW9uTW9kdWxlIH0gZnJvbSAnQGFuZ3VsYXIvY29tbW9uJztcbmltcG9ydCB7IEtpdFN2Z0ljb25Nb2R1bGUgfSBmcm9tICcuLi9raXQtc3ZnLWljb24va2l0LXN2Zy1pY29uLm1vZHVsZSc7XG5cbkBOZ01vZHVsZSh7XG4gIGRlY2xhcmF0aW9uczogW1xuICAgIEtpdFBpbGxDb21wb25lbnQsXG4gIF0sXG4gIGV4cG9ydHM6IFtcbiAgICBLaXRQaWxsQ29tcG9uZW50LFxuICBdLFxuICBpbXBvcnRzOiBbXG4gICAgS2l0U3ZnSWNvbk1vZHVsZSxcbiAgICBDb21tb25Nb2R1bGUsXG4gIF0sXG59KVxuZXhwb3J0IGNsYXNzIEtpdFBpbGxNb2R1bGUge1xufVxuIl19
@@ -1,9 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./kit-pill.component";
3
- import * as i2 from "../kit-svg-icon/kit-svg-icon.module";
4
- import * as i3 from "@angular/common";
5
- export declare class KitPillModule {
6
- static ɵfac: i0.ɵɵFactoryDeclaration<KitPillModule, never>;
7
- static ɵmod: i0.ɵɵNgModuleDeclaration<KitPillModule, [typeof i1.KitPillComponent], [typeof i2.KitSvgIconModule, typeof i3.CommonModule], [typeof i1.KitPillComponent]>;
8
- static ɵinj: i0.ɵɵInjectorDeclaration<KitPillModule>;
9
- }