@koobiq/components 18.20.0 → 18.21.0

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 (103) hide show
  1. package/breadcrumbs/breadcrumbs-tokens.scss +1 -0
  2. package/breadcrumbs/breadcrumbs.d.ts +13 -2
  3. package/breadcrumbs/breadcrumbs.scss +72 -18
  4. package/button/button-tokens.scss +1 -1
  5. package/button/button.scss +2 -15
  6. package/checkbox/checkbox-tokens.scss +2 -0
  7. package/checkbox/checkbox.scss +4 -4
  8. package/core/formatters/date/formatter.d.ts +3 -2
  9. package/core/locales/locale-service.d.ts +5 -1
  10. package/core/styles/theming/scrollbar-tokens.scss +10 -4
  11. package/dropdown/dropdown.scss +20 -5
  12. package/esm2022/breadcrumbs/breadcrumbs.mjs +18 -7
  13. package/esm2022/button/button.component.mjs +2 -2
  14. package/esm2022/checkbox/checkbox.mjs +2 -2
  15. package/esm2022/core/formatters/date/formatter.mjs +13 -4
  16. package/esm2022/core/locales/en-US.mjs +29 -29
  17. package/esm2022/core/locales/es-LA.mjs +29 -29
  18. package/esm2022/core/locales/fa-IR.mjs +29 -29
  19. package/esm2022/core/locales/locale-service.mjs +38 -3
  20. package/esm2022/core/locales/pt-BR.mjs +29 -29
  21. package/esm2022/core/locales/tk-TM.mjs +29 -29
  22. package/esm2022/core/locales/zh-CN.mjs +29 -29
  23. package/esm2022/core/pop-up/pop-up-trigger.mjs +2 -2
  24. package/esm2022/core/version.mjs +2 -2
  25. package/esm2022/dropdown/dropdown.component.mjs +3 -3
  26. package/esm2022/filter-bar/filter-bar.mjs +3 -3
  27. package/esm2022/filter-bar/pipes/pipe-date.mjs +37 -22
  28. package/esm2022/filter-bar/pipes/pipe-datetime.mjs +38 -23
  29. package/esm2022/filter-bar/pipes/pipe-text.mjs +4 -4
  30. package/esm2022/form-field/form-field.mjs +2 -2
  31. package/esm2022/form-field/validate.directive.mjs +19 -9
  32. package/esm2022/input/input-number.mjs +2 -2
  33. package/esm2022/navbar/navbar-item.component.mjs +6 -9
  34. package/esm2022/overflow-items/overflow-items.mjs +24 -3
  35. package/esm2022/progress-spinner/progress-spinner.component.mjs +2 -2
  36. package/esm2022/scrollbar/scrollbar.component.mjs +3 -3
  37. package/esm2022/select/select.component.mjs +3 -3
  38. package/esm2022/sidepanel/sidepanel-container.component.mjs +3 -3
  39. package/esm2022/sidepanel/sidepanel-directives.mjs +16 -5
  40. package/esm2022/textarea/textarea.component.mjs +35 -9
  41. package/esm2022/timezone/timezone-select.component.mjs +2 -2
  42. package/esm2022/top-bar/top-bar.mjs +2 -2
  43. package/esm2022/tree-select/tree-select.component.mjs +3 -3
  44. package/fesm2022/koobiq-components-breadcrumbs.mjs +18 -7
  45. package/fesm2022/koobiq-components-breadcrumbs.mjs.map +1 -1
  46. package/fesm2022/koobiq-components-button.mjs +2 -2
  47. package/fesm2022/koobiq-components-button.mjs.map +1 -1
  48. package/fesm2022/koobiq-components-checkbox.mjs +2 -2
  49. package/fesm2022/koobiq-components-checkbox.mjs.map +1 -1
  50. package/fesm2022/koobiq-components-core.mjs +1012 -970
  51. package/fesm2022/koobiq-components-core.mjs.map +1 -1
  52. package/fesm2022/koobiq-components-dropdown.mjs +2 -2
  53. package/fesm2022/koobiq-components-dropdown.mjs.map +1 -1
  54. package/fesm2022/koobiq-components-filter-bar.mjs +78 -48
  55. package/fesm2022/koobiq-components-filter-bar.mjs.map +1 -1
  56. package/fesm2022/koobiq-components-form-field.mjs +17 -8
  57. package/fesm2022/koobiq-components-form-field.mjs.map +1 -1
  58. package/fesm2022/koobiq-components-input.mjs +1 -1
  59. package/fesm2022/koobiq-components-input.mjs.map +1 -1
  60. package/fesm2022/koobiq-components-navbar.mjs +5 -8
  61. package/fesm2022/koobiq-components-navbar.mjs.map +1 -1
  62. package/fesm2022/koobiq-components-overflow-items.mjs +24 -3
  63. package/fesm2022/koobiq-components-overflow-items.mjs.map +1 -1
  64. package/fesm2022/koobiq-components-progress-spinner.mjs +2 -2
  65. package/fesm2022/koobiq-components-progress-spinner.mjs.map +1 -1
  66. package/fesm2022/koobiq-components-scrollbar.mjs +2 -2
  67. package/fesm2022/koobiq-components-scrollbar.mjs.map +1 -1
  68. package/fesm2022/koobiq-components-select.mjs +2 -2
  69. package/fesm2022/koobiq-components-select.mjs.map +1 -1
  70. package/fesm2022/koobiq-components-sidepanel.mjs +17 -6
  71. package/fesm2022/koobiq-components-sidepanel.mjs.map +1 -1
  72. package/fesm2022/koobiq-components-textarea.mjs +34 -8
  73. package/fesm2022/koobiq-components-textarea.mjs.map +1 -1
  74. package/fesm2022/koobiq-components-timezone.mjs +2 -2
  75. package/fesm2022/koobiq-components-timezone.mjs.map +1 -1
  76. package/fesm2022/koobiq-components-top-bar.mjs +2 -2
  77. package/fesm2022/koobiq-components-top-bar.mjs.map +1 -1
  78. package/fesm2022/koobiq-components-tree-select.mjs +2 -2
  79. package/fesm2022/koobiq-components-tree-select.mjs.map +1 -1
  80. package/filter-bar/filter-bar.scss +1 -0
  81. package/filter-bar/pipes/pipe-date.d.ts +3 -1
  82. package/filter-bar/pipes/pipe-date.scss +7 -0
  83. package/filter-bar/pipes/pipe-datetime.d.ts +3 -1
  84. package/form-field/_form-field-theme.scss +7 -3
  85. package/form-field/validate.directive.d.ts +4 -2
  86. package/link/_link-theme.scss +6 -16
  87. package/navbar/navbar-item.component.d.ts +1 -2
  88. package/overflow-items/overflow-items.d.ts +17 -1
  89. package/package.json +5 -5
  90. package/prebuilt-themes/dark-theme.css +1 -1
  91. package/prebuilt-themes/light-theme.css +1 -1
  92. package/prebuilt-themes/theme.css +1 -1
  93. package/progress-spinner/progress-spinner.scss +10 -4
  94. package/schematics/ng-add/index.js +3 -3
  95. package/scrollbar/scrollbar-tokens.scss +10 -4
  96. package/select/_select-theme.scss +4 -1
  97. package/sidepanel/sidepanel-directives.d.ts +6 -1
  98. package/sidepanel/sidepanel.scss +9 -3
  99. package/textarea/textarea.component.d.ts +16 -3
  100. package/textarea/textarea.scss +4 -0
  101. package/top-bar/top-bar-tokens.scss +2 -2
  102. package/top-bar/top-bar.scss +1 -1
  103. package/tree-select/_tree-select-theme.scss +4 -1
@@ -27,9 +27,15 @@ export declare class KbqTextarea extends KbqTextareaMixinBase implements KbqForm
27
27
  protected elementRef: ElementRef;
28
28
  private parent;
29
29
  private ngZone;
30
+ /** Parameter enables or disables the ability to automatically increase the height.
31
+ * If set to false, the textarea becomes vertically resizable. */
32
+ set canGrow(value: boolean);
33
+ get canGrow(): boolean;
30
34
  protected readonly isBrowser: boolean;
31
35
  protected readonly renderer: Renderer2;
32
- canGrow: boolean;
36
+ private _canGrow;
37
+ /** Maximum number of lines to which the textarea will grow. Default unlimited */
38
+ maxRows: number;
33
39
  /** An object used to control when error messages are shown. */
34
40
  errorStateMatcher: ErrorStateMatcher;
35
41
  /**
@@ -64,6 +70,8 @@ export declare class KbqTextarea extends KbqTextareaMixinBase implements KbqForm
64
70
  * @docs-private
65
71
  */
66
72
  placeholder: string;
73
+ /** Distance from the last line to the bottom border */
74
+ freeRowsHeight: number;
67
75
  /**
68
76
  * Implemented as part of KbqFormFieldControl.
69
77
  * @docs-private
@@ -76,6 +84,9 @@ export declare class KbqTextarea extends KbqTextareaMixinBase implements KbqForm
76
84
  */
77
85
  get value(): string;
78
86
  set value(value: string);
87
+ /** Flag that will be set to true when the maximum number of lines is reached.
88
+ * Maximum number of rows can be set using the maxRows input. */
89
+ get maxRowLimitReached(): boolean;
79
90
  protected uid: string;
80
91
  protected previousNativeValue: any;
81
92
  private _disabled;
@@ -84,8 +95,8 @@ export declare class KbqTextarea extends KbqTextareaMixinBase implements KbqForm
84
95
  private valueAccessor;
85
96
  private growSubscription;
86
97
  private lineHeight;
87
- private freeRowsHeight;
88
98
  private minHeight;
99
+ private rowsCount;
89
100
  constructor(elementRef: ElementRef, ngControl: NgControl, parentForm: NgForm, parentFormGroup: FormGroupDirective, defaultErrorStateMatcher: ErrorStateMatcher, inputValueAccessor: any, parent: any, ngZone: NgZone);
90
101
  ngOnInit(): void;
91
102
  ngOnChanges(): void;
@@ -113,5 +124,7 @@ export declare class KbqTextarea extends KbqTextareaMixinBase implements KbqForm
113
124
  /** Checks whether the textarea is invalid based on the native validation. */
114
125
  protected isBadInput(): boolean;
115
126
  static ɵfac: i0.ɵɵFactoryDeclaration<KbqTextarea, [null, { optional: true; self: true; }, { optional: true; }, { optional: true; }, null, { optional: true; self: true; }, { optional: true; host: true; }, null]>;
116
- static ɵdir: i0.ɵɵDirectiveDeclaration<KbqTextarea, "textarea[kbqTextarea]", ["kbqTextarea"], { "canGrow": { "alias": "canGrow"; "required": false; }; "errorStateMatcher": { "alias": "errorStateMatcher"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "id": { "alias": "id"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "required": { "alias": "required"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, {}, never, never, false, never>;
127
+ static ɵdir: i0.ɵɵDirectiveDeclaration<KbqTextarea, "textarea[kbqTextarea]", ["kbqTextarea"], { "canGrow": { "alias": "canGrow"; "required": false; }; "maxRows": { "alias": "maxRows"; "required": false; }; "errorStateMatcher": { "alias": "errorStateMatcher"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "id": { "alias": "id"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "freeRowsHeight": { "alias": "freeRowsHeight"; "required": false; }; "required": { "alias": "required"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, {}, never, never, false, never>;
128
+ static ngAcceptInputType_canGrow: unknown;
129
+ static ngAcceptInputType_freeRowsHeight: unknown;
117
130
  }
@@ -30,6 +30,10 @@
30
30
  resize: vertical;
31
31
  min-height: var(--kbq-textarea-size-min-height);
32
32
  }
33
+
34
+ &.kbq-textarea_max-row-limit-reached {
35
+ resize: unset;
36
+ }
33
37
  }
34
38
 
35
39
  /* remove default red border for HTML5 validation invalid fields in Firefox */
@@ -2,8 +2,8 @@
2
2
  --kbq-top-bar-position: sticky;
3
3
  --kbq-top-bar-background: var(--kbq-background-bg);
4
4
  --kbq-top-bar-spacer-min-width: 80px;
5
- --kbq-top-bar-padding-vertical: var(--kbq-size-l);
6
- --kbq-top-bar-padding-horizontal: var(--kbq-size-l);
5
+ --kbq-top-bar-padding-vertical: var(--kbq-size-xl);
6
+ --kbq-top-bar-padding-horizontal: var(--kbq-size-xxl);
7
7
  --kbq-top-bar-border-radius: 0;
8
8
  --kbq-top-bar-left-gap: 0;
9
9
  --kbq-top-bar-right-gap: var(--kbq-size-s);
@@ -10,7 +10,7 @@
10
10
  position: var(--kbq-top-bar-position);
11
11
  background-color: var(--kbq-top-bar-background);
12
12
  padding: var(--kbq-top-bar-padding-vertical) var(--kbq-top-bar-padding-horizontal);
13
- border: var(--kbq-top-bar-border-radius);
13
+ border-radius: var(--kbq-top-bar-border-radius);
14
14
 
15
15
  .kbq-top-bar-spacer {
16
16
  height: 100%;
@@ -4,7 +4,10 @@
4
4
  .kbq-tree-select {
5
5
  color: var(--kbq-foreground-contrast);
6
6
 
7
- &.ng-invalid {
7
+ // Invalid by `KbqValidateDirective`
8
+ &.kbq-control_has-validate-directive.ng-invalid,
9
+ // Invalid by control `ErrorStateMatcher`
10
+ &.kbq-invalid {
8
11
  color: var(--kbq-error-default);
9
12
 
10
13
  .kbq-select__placeholder {