@tekus/kiosks-design-system 3.0.1 → 3.1.1

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,5 +1,6 @@
1
1
  import { EventEmitter } from '@angular/core';
2
2
  import { FormControl } from '@angular/forms';
3
+ import { SearchEventPayload } from '../../../models/SearchEventPayload.model';
3
4
  import * as i0 from "@angular/core";
4
5
  export declare class TkKioskBarSearchComponent {
5
6
  iconSearch: string;
@@ -10,7 +11,7 @@ export declare class TkKioskBarSearchComponent {
10
11
  cursorPosition: number;
11
12
  set resetSearch(value: boolean);
12
13
  /** Event output when enter button is pressed */
13
- searchValue: EventEmitter<string>;
14
+ searchValue: EventEmitter<SearchEventPayload>;
14
15
  cursorPositionChange: EventEmitter<number>;
15
16
  search: FormControl<string | null>;
16
17
  keyboard: boolean;
@@ -18,7 +19,7 @@ export declare class TkKioskBarSearchComponent {
18
19
  openKeyboard(): void;
19
20
  changeValue(e: string): void;
20
21
  closeKeyboard(): void;
21
- searchValueEvent(): void;
22
+ searchValueEvent(event?: Event): void;
22
23
  updateCursorPosition(event: Event): void;
23
24
  static ɵfac: i0.ɵɵFactoryDeclaration<TkKioskBarSearchComponent, never>;
24
25
  static ɵcmp: i0.ɵɵComponentDeclaration<TkKioskBarSearchComponent, "tk-kiosk-bar-search", never, { "iconSearch": { "alias": "iconSearch"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "keyboardTop": { "alias": "keyboardTop"; "required": false; }; "keyboardEnterText": { "alias": "keyboardEnterText"; "required": false; }; "resetSearch": { "alias": "resetSearch"; "required": false; }; }, { "searchValue": "searchValue"; "cursorPositionChange": "cursorPositionChange"; }, never, never, true, never>;
@@ -1,17 +1,58 @@
1
1
  import { EventEmitter } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class TkKioskBtnCountComponent {
4
+ /**
5
+ * Emitted when add button is clicked
6
+ */
4
7
  onAdd: EventEmitter<any>;
8
+ /**
9
+ * Emitted when remove button is clicked
10
+ */
5
11
  onRemove: EventEmitter<any>;
12
+ /**
13
+ * Current count value to display
14
+ */
6
15
  count: number;
16
+ /**
17
+ * Maximum allowed count value
18
+ */
7
19
  totalMax: number;
20
+ /**
21
+ * Minimum allowed count value
22
+ */
8
23
  totalMin: number;
24
+ /**
25
+ * Unit of measurement to display after count
26
+ */
9
27
  measure: string;
28
+ /**
29
+ * Whether the add button is disabled
30
+ */
31
+ isAddDisabled: boolean;
32
+ /**
33
+ * Whether the minus button is disabled
34
+ */
35
+ isMinusDisabled: boolean;
36
+ /**
37
+ * Type of counter display
38
+ */
10
39
  type: '' | 'button';
40
+ /**
41
+ * Whether to use rounded corners
42
+ */
11
43
  rounded: boolean;
44
+ /**
45
+ * Color theme of the counter
46
+ */
12
47
  color: 'primary' | 'secondary' | 'accent';
48
+ /**
49
+ * Size of the counter
50
+ */
13
51
  size: 'small' | 'regular' | 'large';
52
+ /**
53
+ * Whether to use stroked style
54
+ */
14
55
  stroked: boolean;
15
56
  static ɵfac: i0.ɵɵFactoryDeclaration<TkKioskBtnCountComponent, never>;
16
- static ɵcmp: i0.ɵɵComponentDeclaration<TkKioskBtnCountComponent, "tk-kiosk-btn-count", never, { "count": { "alias": "count"; "required": false; }; "totalMax": { "alias": "totalMax"; "required": false; }; "totalMin": { "alias": "totalMin"; "required": false; }; "measure": { "alias": "measure"; "required": false; }; "type": { "alias": "type"; "required": false; }; "rounded": { "alias": "rounded"; "required": false; }; "color": { "alias": "color"; "required": false; }; "size": { "alias": "size"; "required": false; }; "stroked": { "alias": "stroked"; "required": false; }; }, { "onAdd": "onAdd"; "onRemove": "onRemove"; }, never, never, true, never>;
57
+ static ɵcmp: i0.ɵɵComponentDeclaration<TkKioskBtnCountComponent, "tk-kiosk-btn-count", never, { "count": { "alias": "count"; "required": false; }; "totalMax": { "alias": "totalMax"; "required": false; }; "totalMin": { "alias": "totalMin"; "required": false; }; "measure": { "alias": "measure"; "required": false; }; "isAddDisabled": { "alias": "isAddDisabled"; "required": false; }; "isMinusDisabled": { "alias": "isMinusDisabled"; "required": false; }; "type": { "alias": "type"; "required": false; }; "rounded": { "alias": "rounded"; "required": false; }; "color": { "alias": "color"; "required": false; }; "size": { "alias": "size"; "required": false; }; "stroked": { "alias": "stroked"; "required": false; }; }, { "onAdd": "onAdd"; "onRemove": "onRemove"; }, never, never, true, never>;
17
58
  }
@@ -66,6 +66,14 @@ export declare class TkKioskCustomCheckCardComponent {
66
66
  * Emitted when component is clicked
67
67
  */
68
68
  onClick: EventEmitter<void>;
69
+ /**
70
+ * Determines if the add button should be disabled
71
+ */
72
+ get isAddDisabled(): boolean;
73
+ /**
74
+ * Determines if the minus button should be disabled
75
+ */
76
+ get isMinusDisabled(): boolean;
69
77
  /**
70
78
  * Handles counter value changes with validation
71
79
  * @param value - The increment/decrement value
@@ -1,14 +1,41 @@
1
1
  import { EventEmitter } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class TkKioskIconBtnComponent {
4
+ /**
5
+ * Emitted when button is clicked
6
+ */
4
7
  btnClick: EventEmitter<any>;
8
+ /**
9
+ * Whether the button is disabled
10
+ */
5
11
  isDisabled: boolean;
12
+ /**
13
+ * Size of the button
14
+ */
6
15
  size: 'small' | 'regular' | 'large';
16
+ /**
17
+ * Type of button style
18
+ */
7
19
  type: 'outline' | 'border-less' | 'stroked' | '';
20
+ /**
21
+ * Color theme of the button
22
+ */
8
23
  color: 'primary' | 'secondary' | 'accent';
24
+ /**
25
+ * Icon name to display
26
+ */
9
27
  icon: string;
28
+ /**
29
+ * Custom icon source URL
30
+ */
10
31
  iconSrc: string | undefined;
32
+ /**
33
+ * Custom background color
34
+ */
11
35
  bgColor: string;
36
+ /**
37
+ * Handles button click events
38
+ */
12
39
  onClick(): void;
13
40
  static ɵfac: i0.ɵɵFactoryDeclaration<TkKioskIconBtnComponent, never>;
14
41
  static ɵcmp: i0.ɵɵComponentDeclaration<TkKioskIconBtnComponent, "tk-kiosk-icon-btn", never, { "isDisabled": { "alias": "isDisabled"; "required": false; }; "size": { "alias": "size"; "required": false; }; "type": { "alias": "type"; "required": false; }; "color": { "alias": "color"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "iconSrc": { "alias": "iconSrc"; "required": false; }; "bgColor": { "alias": "bgColor"; "required": false; }; }, { "btnClick": "btnClick"; }, never, never, true, never>;
@@ -0,0 +1,4 @@
1
+ export interface SearchEventPayload {
2
+ value: string;
3
+ event: Event;
4
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tekus/kiosks-design-system",
3
- "version": "3.0.1",
3
+ "version": "3.1.1",
4
4
  "license": "UNLICENSED",
5
5
  "peerDependencies": {
6
6
  "@angular/animations": "^17.0.0",