@koobiq/components 17.0.3 → 17.2.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 (95) hide show
  1. package/badge/badge.component.scss +2 -2
  2. package/button/button.scss +2 -6
  3. package/button-toggle/button-toggle.scss +8 -6
  4. package/checkbox/checkbox.scss +9 -18
  5. package/code-block/code-block.scss +1 -4
  6. package/core/pop-up/index.d.ts +1 -0
  7. package/core/pop-up/pop-up-styles.d.ts +2 -0
  8. package/core/pop-up/pop-up.d.ts +5 -0
  9. package/core/styles/_koobiq-theme.scss +0 -2
  10. package/core/styles/common/_groups.scss +2 -2
  11. package/core/styles/common/_select.scss +23 -60
  12. package/core/styles/common/_tokens.scss +52 -0
  13. package/core/styles/theming/_components-theming.scss +10 -24
  14. package/core/styles/theming/_scrollbar-theme.scss +8 -19
  15. package/datepicker/_datepicker-theme.scss +1 -0
  16. package/datepicker/calendar-header.component.d.ts +10 -6
  17. package/datepicker/calendar.scss +2 -3
  18. package/datepicker/datepicker-input.directive.d.ts +10 -0
  19. package/esm2022/button-toggle/button-toggle.component.mjs +2 -2
  20. package/esm2022/code-block/actionbar.component.mjs +1 -1
  21. package/esm2022/core/pop-up/index.mjs +2 -1
  22. package/esm2022/core/pop-up/pop-up-styles.mjs +26 -0
  23. package/esm2022/core/pop-up/pop-up.mjs +1 -1
  24. package/esm2022/core/version.mjs +2 -2
  25. package/esm2022/datepicker/calendar-header.component.mjs +32 -9
  26. package/esm2022/datepicker/datepicker-input.directive.mjs +101 -21
  27. package/esm2022/file-upload/multiple-file-upload.component.mjs +2 -2
  28. package/esm2022/file-upload/single-file-upload.component.mjs +2 -2
  29. package/esm2022/navbar/vertical-navbar.component.mjs +8 -4
  30. package/esm2022/popover/popover.component.mjs +4 -1
  31. package/esm2022/radio/radio.component.mjs +2 -2
  32. package/esm2022/tabs/tab-group.component.mjs +1 -1
  33. package/esm2022/toast/toast.component.mjs +7 -6
  34. package/esm2022/toast/toast.module.mjs +5 -1
  35. package/esm2022/toggle/toggle.component.mjs +3 -3
  36. package/esm2022/tooltip/tooltip.component.mjs +42 -10
  37. package/fesm2022/koobiq-components-button-toggle.mjs +2 -2
  38. package/fesm2022/koobiq-components-button-toggle.mjs.map +1 -1
  39. package/fesm2022/koobiq-components-code-block.mjs +1 -1
  40. package/fesm2022/koobiq-components-code-block.mjs.map +1 -1
  41. package/fesm2022/koobiq-components-core.mjs +28 -3
  42. package/fesm2022/koobiq-components-core.mjs.map +1 -1
  43. package/fesm2022/koobiq-components-datepicker.mjs +131 -28
  44. package/fesm2022/koobiq-components-datepicker.mjs.map +1 -1
  45. package/fesm2022/koobiq-components-file-upload.mjs +4 -4
  46. package/fesm2022/koobiq-components-file-upload.mjs.map +1 -1
  47. package/fesm2022/koobiq-components-navbar.mjs +7 -3
  48. package/fesm2022/koobiq-components-navbar.mjs.map +1 -1
  49. package/fesm2022/koobiq-components-popover.mjs +3 -0
  50. package/fesm2022/koobiq-components-popover.mjs.map +1 -1
  51. package/fesm2022/koobiq-components-radio.mjs +2 -2
  52. package/fesm2022/koobiq-components-radio.mjs.map +1 -1
  53. package/fesm2022/koobiq-components-tabs.mjs +1 -1
  54. package/fesm2022/koobiq-components-tabs.mjs.map +1 -1
  55. package/fesm2022/koobiq-components-toast.mjs +8 -3
  56. package/fesm2022/koobiq-components-toast.mjs.map +1 -1
  57. package/fesm2022/koobiq-components-toggle.mjs +2 -2
  58. package/fesm2022/koobiq-components-toggle.mjs.map +1 -1
  59. package/fesm2022/koobiq-components-tooltip.mjs +41 -9
  60. package/fesm2022/koobiq-components-tooltip.mjs.map +1 -1
  61. package/file-upload/multiple-file-upload.component.scss +16 -33
  62. package/file-upload/single-file-upload.component.scss +8 -6
  63. package/form-field/form-field.scss +8 -14
  64. package/input/input.scss +4 -11
  65. package/navbar/vertical-navbar.component.d.ts +2 -1
  66. package/navbar/vertical-navbar.scss +9 -4
  67. package/package.json +12 -18
  68. package/prebuilt-themes/dark-theme.css +1 -1
  69. package/prebuilt-themes/light-theme.css +1 -1
  70. package/radio/radio.scss +9 -24
  71. package/schematics/ng-add/index.js +4 -4
  72. package/tabs/_tabs-common.scss +6 -14
  73. package/tags/tag-list.scss +2 -15
  74. package/toast/toast.component.scss +12 -1
  75. package/toast/toast.module.d.ts +5 -4
  76. package/toggle/_toggle-theme.scss +5 -2
  77. package/toggle/toggle.scss +2 -16
  78. package/tooltip/_tooltip-theme.scss +12 -0
  79. package/tooltip/tooltip.component.d.ts +12 -3
  80. package/tooltip/tooltip.scss +6 -1
  81. package/tree/tree-option.scss +9 -20
  82. package/card/_card-theme.scss +0 -62
  83. package/card/card.component.d.ts +0 -28
  84. package/card/card.component.scss +0 -37
  85. package/card/card.module.d.ts +0 -10
  86. package/card/index.d.ts +0 -1
  87. package/card/public-api.d.ts +0 -2
  88. package/esm2022/card/card.component.mjs +0 -79
  89. package/esm2022/card/card.module.mjs +0 -28
  90. package/esm2022/card/index.mjs +0 -2
  91. package/esm2022/card/koobiq-components-card.mjs +0 -5
  92. package/esm2022/card/public-api.mjs +0 -3
  93. package/fesm2022/koobiq-components-card.mjs +0 -110
  94. package/fesm2022/koobiq-components-card.mjs.map +0 -1
  95. /package/{card → toggle}/README.md +0 -0
package/radio/radio.scss CHANGED
@@ -44,12 +44,9 @@ $tokens: meta.module-variables(tokens) !default;
44
44
  order: 0;
45
45
  line-height: inherit;
46
46
 
47
- padding-left: calc(
48
- var(--kbq-radio-size-normal-outer-size, map.get($tokens, radio-size-normal-outer-size)) +
49
- var(
50
- --kbq-radio-size-normal-horizontal-content-padding,
51
- map.get($tokens, radio-size-normal-horizontal-content-padding)
52
- )
47
+ padding-left: kbq-sum-series-css-variables(
48
+ [radio-size-normal-outer-size,
49
+ radio-size-normal-horizontal-content-padding]
53
50
  );
54
51
  padding-right: 0;
55
52
 
@@ -73,12 +70,8 @@ $tokens: meta.module-variables(tokens) !default;
73
70
  }
74
71
 
75
72
  left: 0;
76
- top: calc(
77
- (
78
- var(--radio-font-normal-label-line-height, map.get($tokens, radio-font-normal-label-line-height)) -
79
- (var(--radio-size-normal-outer-size, map.get($tokens, radio-size-normal-outer-size)) + 2px)
80
- ) / 2
81
- );
73
+
74
+ top: kbq-css-half-difference(radio-font-normal-label-line-height, radio-size-normal-outer-size, 1px);
82
75
 
83
76
  width: kbq-css-variable(radio-size-normal-outer-size);
84
77
  height: kbq-css-variable(radio-size-normal-outer-size);
@@ -115,21 +108,13 @@ $tokens: meta.module-variables(tokens) !default;
115
108
 
116
109
  .kbq-radio-button.kbq-radio-button_big {
117
110
  .kbq-radio-label-content {
118
- padding-left: calc(
119
- var(--kbq-radio-size-big-outer-size, map.get($tokens, radio-size-big-outer-size)) +
120
- var(
121
- --kbq-radio-size-big-horizontal-content-padding,
122
- map.get($tokens, radio-size-big-horizontal-content-padding)
123
- )
111
+ padding-left: kbq-sum-series-css-variables(
112
+ [radio-size-big-outer-size,
113
+ radio-size-big-horizontal-content-padding]
124
114
  );
125
115
 
126
116
  .kbq-radio-button__outer-circle {
127
- top: calc(
128
- (
129
- var(--radio-font-big-label-line-height, map.get($tokens, radio-font-big-label-line-height)) -
130
- (var(--radio-size-big-outer-size, map.get($tokens, radio-size-big-outer-size)) + 2px)
131
- ) / 2
132
- );
117
+ top: kbq-css-half-difference(radio-font-big-label-line-height, radio-size-big-outer-size, 1px);
133
118
 
134
119
  width: kbq-css-variable(radio-size-big-outer-size);
135
120
  height: kbq-css-variable(radio-size-big-outer-size);
@@ -52,13 +52,13 @@ function ngAdd(options) {
52
52
  }
53
53
  // Installing dependencies
54
54
  addPackageToPackageJson(tree, '@angular/cdk', "^17.2.0");
55
- addPackageToPackageJson(tree, '@koobiq/cdk', "^17.0.3");
56
- addPackageToPackageJson(tree, '@koobiq/angular-luxon-adapter', "^17.0.3");
55
+ addPackageToPackageJson(tree, '@koobiq/cdk', "^17.2.0");
56
+ addPackageToPackageJson(tree, '@koobiq/angular-luxon-adapter', "^17.2.0");
57
57
  addPackageToPackageJson(tree, '@koobiq/date-formatter', "^3.1.2");
58
58
  addPackageToPackageJson(tree, '@koobiq/date-adapter', "^3.1.2");
59
59
  addPackageToPackageJson(tree, '@koobiq/icons', "^7.1.1");
60
- addPackageToPackageJson(tree, '@koobiq/tokens-builder', "^3.0.0");
61
- addPackageToPackageJson(tree, '@koobiq/design-tokens', "^3.0.0");
60
+ addPackageToPackageJson(tree, '@koobiq/tokens-builder', "^3.3.1");
61
+ addPackageToPackageJson(tree, '@koobiq/design-tokens', "^3.3.1");
62
62
  addPackageToPackageJson(tree, '@messageformat/core', "^3.0.1");
63
63
  addPackageToPackageJson(tree, 'luxon', "^3.4.4");
64
64
  addPackageToPackageJson(tree, 'marked', "^9.0.0");
@@ -20,21 +20,13 @@ $tokens: meta.module-variables(tokens) !default;
20
20
 
21
21
  cursor: pointer;
22
22
 
23
- $padding-vertical: map.get($tokens, tabs-size-tab-item-padding-vertical);
24
- $padding-horizontal: map.get($tokens, tabs-size-tab-item-padding-horizontal);
25
- $border-width: map.get($tokens, tabs-size-tab-item-focus-outline-width);
26
-
27
- padding: calc(
28
- var(--kbq-tabs-size-tab-item-padding-vertical, $padding-vertical) - var(
29
- --kbq-tabs-size-tab-item-focus-outline-width,
30
- $border-width
31
- )
23
+ padding: kbq-difference-series-css-variables(
24
+ [tabs-size-tab-item-padding-vertical,
25
+ tabs-size-tab-item-focus-outline-width]
32
26
  )
33
- calc(
34
- var(--kbq-tabs-size-tab-item-padding-horizontal, $padding-horizontal) - var(
35
- --kbq-tabs-size-tab-item-focus-outline-width,
36
- $border-width
37
- )
27
+ kbq-difference-series-css-variables(
28
+ [tabs-size-tab-item-padding-horizontal,
29
+ tabs-size-tab-item-focus-outline-width]
38
30
  );
39
31
 
40
32
  border: {
@@ -58,22 +58,9 @@ $tokens: meta.module-variables(tokens) !default;
58
58
 
59
59
  .kbq-form-field-type-tag-list {
60
60
  & .kbq-form-field__container {
61
- $padding-vertical: map.get($tokens, tag-input-size-padding-vertical);
62
- $border-width: map.get($tokens, form-field-size-border-width);
63
-
64
- padding: calc(
65
- var(--kbq-tag-input-size-padding-vertical, #{$padding-vertical}) - var(
66
- --kbq-form-field-size-border-width,
67
- $border-width
68
- )
69
- )
61
+ padding: kbq-difference-series-css-variables([tag-input-size-padding-vertical, form-field-size-border-width])
70
62
  kbq-css-variable(tag-input-size-padding-right)
71
- calc(
72
- var(--kbq-tag-input-size-padding-vertical, #{$padding-vertical}) - var(
73
- --kbq-form-field-size-border-width,
74
- $border-width
75
- )
76
- )
63
+ kbq-difference-series-css-variables([tag-input-size-padding-vertical, form-field-size-border-width])
77
64
  kbq-css-variable(tag-input-size-padding-left);
78
65
  }
79
66
  }
@@ -84,6 +84,17 @@ $tokens: meta.module-variables(tokens) !default;
84
84
  }
85
85
 
86
86
  .kbq-toast__close-button {
87
- margin-top: kbq-css-variable(toast-size-close-button-margin-top);
87
+ margin-top: kbq-difference-series-css-variables(
88
+ [toast-size-content-padding-top,
89
+ calc(
90
+ kbq-difference-series-css-variables(
91
+ [kbq-sum-series-css-variables(
92
+ [calc(kbq-css-variable(icon-button-size-small-vertical-padding) * 2),
93
+ 16px]
94
+ ),
95
+ toast-font-title-line-height]
96
+ ) / 2
97
+ )]
98
+ );
88
99
  margin-right: kbq-css-variable(toast-size-close-button-margin-right);
89
100
  }
@@ -3,11 +3,12 @@ import * as i1 from "./toast.component";
3
3
  import * as i2 from "./toast-container.component";
4
4
  import * as i3 from "@angular/common";
5
5
  import * as i4 from "@angular/cdk/overlay";
6
- import * as i5 from "@angular/cdk/a11y";
7
- import * as i6 from "@koobiq/components/icon";
8
- import * as i7 from "@koobiq/components/button";
6
+ import * as i5 from "@koobiq/components/title";
7
+ import * as i6 from "@angular/cdk/a11y";
8
+ import * as i7 from "@koobiq/components/icon";
9
+ import * as i8 from "@koobiq/components/button";
9
10
  export declare class KbqToastModule {
10
11
  static ɵfac: i0.ɵɵFactoryDeclaration<KbqToastModule, never>;
11
- static ɵmod: i0.ɵɵNgModuleDeclaration<KbqToastModule, [typeof i1.KbqToastComponent, typeof i2.KbqToastContainerComponent, typeof i1.KbqToastCloseButton], [typeof i3.CommonModule, typeof i4.OverlayModule, typeof i5.A11yModule, typeof i6.KbqIconModule, typeof i7.KbqButtonModule], [typeof i1.KbqToastComponent, typeof i2.KbqToastContainerComponent, typeof i1.KbqToastCloseButton]>;
12
+ static ɵmod: i0.ɵɵNgModuleDeclaration<KbqToastModule, [typeof i1.KbqToastComponent, typeof i2.KbqToastContainerComponent, typeof i1.KbqToastCloseButton], [typeof i3.CommonModule, typeof i4.OverlayModule, typeof i5.KbqTitleModule, typeof i6.A11yModule, typeof i7.KbqIconModule, typeof i8.KbqButtonModule], [typeof i1.KbqToastComponent, typeof i2.KbqToastContainerComponent, typeof i1.KbqToastCloseButton]>;
12
13
  static ɵinj: i0.ɵɵInjectorDeclaration<KbqToastModule>;
13
14
  }
@@ -74,15 +74,18 @@
74
74
 
75
75
  @mixin kbq-toggle-theme($theme) {
76
76
  $toggle: map.get($theme, components, toggle);
77
+ $foreground: map.get($theme, foreground);
77
78
 
78
79
  .kbq-toggle {
79
- color: kbq-css-variable(foreground-contrast, map.get($theme, foreground, contrast));
80
-
81
80
  @include kbq-toggle-color($toggle, theme);
82
81
 
83
82
  &.kbq-error {
84
83
  @include kbq-toggle-color($toggle, error);
85
84
  }
85
+
86
+ &.kbq-disabled {
87
+ color: map.get($foreground, text-disabled);
88
+ }
86
89
  }
87
90
  }
88
91
 
@@ -31,14 +31,7 @@ $tokens: meta.module-variables(tokens) !default;
31
31
  }
32
32
 
33
33
  .kbq-toggle-bar-container:has(+ .kbq-toggle__content) {
34
- padding-top: calc(
35
- (
36
- var(
37
- --toggle-font-normal-label-line-height,
38
- map.get($tokens, toggle-font-normal-label-line-height)
39
- ) - var(--toggle-size-normal-height, map.get($tokens, toggle-size-normal-height))
40
- ) / 2
41
- );
34
+ padding-top: kbq-css-half-difference(toggle-font-normal-label-line-height, toggle-size-normal-height);
42
35
  }
43
36
  }
44
37
 
@@ -96,14 +89,7 @@ $tokens: meta.module-variables(tokens) !default;
96
89
 
97
90
  .kbq-toggle-layout {
98
91
  .kbq-toggle-bar-container:has(+ .kbq-toggle__content) {
99
- padding-top: calc(
100
- (
101
- var(--toggle-font-big-label-line-height, map.get($tokens, toggle-font-big-label-line-height)) - var(
102
- --toggle-size-big-height,
103
- map.get($tokens, toggle-size-big-height)
104
- )
105
- ) / 2
106
- );
92
+ padding-top: kbq-css-half-difference(toggle-font-big-label-line-height, toggle-size-big-height);
107
93
  }
108
94
  }
109
95
  }
@@ -36,10 +36,22 @@
36
36
  .kbq-tooltip.kbq-contrast-fade {
37
37
  @include kbq-tooltip-color($tooltip, contrast-fade-on);
38
38
  }
39
+
40
+ .kbq-tooltip.kbq-warning {
41
+ @include kbq-tooltip-color($tooltip, warning-fade-off);
42
+ }
43
+
44
+ .kbq-tooltip.kbq-error {
45
+ @include kbq-tooltip-color($tooltip, error-fade-off);
46
+ }
39
47
  }
40
48
 
41
49
  @mixin kbq-tooltip-typography($config) {
42
50
  .kbq-tooltip {
43
51
  @include kbq-typography-css-variables(tooltip, default);
52
+
53
+ .kbq-tooltip__header {
54
+ @include kbq-typography-css-variables(tooltip, title);
55
+ }
44
56
  }
45
57
  }
@@ -1,7 +1,7 @@
1
1
  import { FocusMonitor } from '@angular/cdk/a11y';
2
2
  import { Directionality } from '@angular/cdk/bidi';
3
3
  import { Overlay, OverlayConfig, ScrollDispatcher, ScrollStrategy } from '@angular/cdk/overlay';
4
- import { ChangeDetectorRef, ElementRef, EventEmitter, InjectionToken, NgZone, OnDestroy, TemplateRef, Type, ViewContainerRef } from '@angular/core';
4
+ import { ChangeDetectorRef, ElementRef, EventEmitter, InjectionToken, Injector, NgZone, OnDestroy, TemplateRef, Type, ViewContainerRef } from '@angular/core';
5
5
  import { KbqComponentColors, KbqPopUp, KbqPopUpTrigger, PopUpPlacements } from '@koobiq/components/core';
6
6
  import * as i0 from "@angular/core";
7
7
  export declare enum TooltipModifier {
@@ -19,9 +19,11 @@ export declare const KBQ_TOOLTIP_OPEN_TIME_PROVIDER: {
19
19
  };
20
20
  export declare const MIN_TIME_FOR_DELAY = 2000;
21
21
  export declare class KbqTooltipComponent extends KbqPopUp {
22
+ private injector;
22
23
  private openTime;
23
24
  prefix: string;
24
- constructor(changeDetectorRef: ChangeDetectorRef, openTime: any);
25
+ elementRef: ElementRef;
26
+ constructor(changeDetectorRef: ChangeDetectorRef, injector: Injector, openTime: any);
25
27
  show(delay: number): void;
26
28
  updateClassMap(placement: string, customClass: string, { modifier }: {
27
29
  modifier: any;
@@ -57,9 +59,14 @@ export declare class KbqTooltipTrigger extends KbqPopUpTrigger<KbqTooltipCompone
57
59
  protected _trigger: string;
58
60
  get customClass(): string;
59
61
  set customClass(value: string);
62
+ get context(): any;
63
+ set context(ctx: any);
64
+ private _context;
60
65
  get color(): string;
61
66
  set color(value: KbqComponentColors | string);
62
67
  private _color;
68
+ arrow: boolean;
69
+ offset: number | null;
63
70
  placementChange: EventEmitter<any>;
64
71
  visibleChange: EventEmitter<boolean>;
65
72
  private get hasClickInTrigger();
@@ -74,7 +81,9 @@ export declare class KbqTooltipTrigger extends KbqPopUpTrigger<KbqTooltipCompone
74
81
  getOverlayHandleComponentType(): Type<KbqTooltipComponent>;
75
82
  updateClassMap(newPlacement?: string): void;
76
83
  static ɵfac: i0.ɵɵFactoryDeclaration<KbqTooltipTrigger, [null, null, null, null, null, null, { optional: true; }, null]>;
77
- static ɵdir: i0.ɵɵDirectiveDeclaration<KbqTooltipTrigger, "[kbqTooltip]", ["kbqTooltip"], { "tooltipVisible": { "alias": "kbqVisible"; "required": false; }; "tooltipPlacement": { "alias": "kbqPlacement"; "required": false; }; "tooltipPlacementPriority": { "alias": "kbqPlacementPriority"; "required": false; }; "content": { "alias": "kbqTooltip"; "required": false; }; "disabled": { "alias": "kbqTooltipDisabled"; "required": false; }; "enterDelay": { "alias": "kbqEnterDelay"; "required": false; }; "leaveDelay": { "alias": "kbqLeaveDelay"; "required": false; }; "trigger": { "alias": "kbqTrigger"; "required": false; }; "customClass": { "alias": "kbqTooltipClass"; "required": false; }; "color": { "alias": "kbqTooltipColor"; "required": false; }; }, { "placementChange": "kbqPlacementChange"; "visibleChange": "kbqVisibleChange"; }, never, never, false, never>;
84
+ static ɵdir: i0.ɵɵDirectiveDeclaration<KbqTooltipTrigger, "[kbqTooltip]", ["kbqTooltip"], { "tooltipVisible": { "alias": "kbqVisible"; "required": false; }; "tooltipPlacement": { "alias": "kbqPlacement"; "required": false; }; "tooltipPlacementPriority": { "alias": "kbqPlacementPriority"; "required": false; }; "content": { "alias": "kbqTooltip"; "required": false; }; "disabled": { "alias": "kbqTooltipDisabled"; "required": false; }; "enterDelay": { "alias": "kbqEnterDelay"; "required": false; }; "leaveDelay": { "alias": "kbqLeaveDelay"; "required": false; }; "trigger": { "alias": "kbqTrigger"; "required": false; }; "customClass": { "alias": "kbqTooltipClass"; "required": false; }; "context": { "alias": "kbqTooltipContext"; "required": false; }; "color": { "alias": "kbqTooltipColor"; "required": false; }; "arrow": { "alias": "kbqTooltipArrow"; "required": false; }; "offset": { "alias": "kbqTooltipOffset"; "required": false; }; }, { "placementChange": "kbqPlacementChange"; "visibleChange": "kbqVisibleChange"; }, never, never, false, never>;
85
+ static ngAcceptInputType_arrow: unknown;
86
+ static ngAcceptInputType_offset: unknown;
78
87
  }
79
88
  export declare class KbqWarningTooltipTrigger extends KbqTooltipTrigger {
80
89
  get content(): string | TemplateRef<any>;
@@ -6,6 +6,7 @@
6
6
  @use '../core/styles/common/tokens' as *;
7
7
 
8
8
  $trigger-margin: 8px;
9
+ $trigger-margin_without-arrow: 4px;
9
10
 
10
11
  .kbq-tooltip__inner {
11
12
  border-radius: kbq-css-variable(tooltip-size-border-radius);
@@ -26,6 +27,10 @@ $trigger-margin: 8px;
26
27
  .kbq-tooltip__inner {
27
28
  padding: kbq-css-variable(tooltip-size-padding-vertical) kbq-css-variable(tooltip-size-padding-horizontal);
28
29
  }
30
+
31
+ &.kbq-tooltip_arrowless {
32
+ @include pop-up.popup-margins(kbq-tooltip, $trigger-margin_without-arrow);
33
+ }
29
34
  }
30
35
 
31
36
  .kbq-tooltip__arrow {
@@ -39,7 +44,7 @@ $trigger-margin: 8px;
39
44
  z-index: -1;
40
45
  }
41
46
 
42
- $arrow-offset: calc((var(--kbq-tooltip-size-arrow-size, #{map.get($tokens, tooltip-size-arrow-size)}) - 1px) / -2);
47
+ $arrow-offset: calc((#{kbq-css-variable(tooltip-size-arrow-size)} - 1px) / -2);
43
48
  $arrow-padding: calc((18px + $trigger-margin) / 2);
44
49
 
45
50
  @include pop-up.popup-arrow-positions(kbq-tooltip, $arrow-offset, $arrow-padding);
@@ -10,11 +10,6 @@ $tokens: meta.module-variables(tokens) !default;
10
10
  .kbq-tree-option {
11
11
  @include common.kbq-no-select;
12
12
 
13
- $padding-vertical: map.get($tokens, tree-size-container-padding-vertical);
14
- $padding-right: map.get($tokens, tree-size-container-padding-right);
15
-
16
- $outline-width: map.get($tokens, tree-size-container-focus-outline-width);
17
-
18
13
  box-sizing: border-box;
19
14
 
20
15
  display: flex;
@@ -28,23 +23,17 @@ $tokens: meta.module-variables(tokens) !default;
28
23
  border-style: solid;
29
24
  border-color: transparent;
30
25
 
31
- padding-top: calc(
32
- var(--kbq-tree-size-container-padding-vertical, $padding-vertical) - var(
33
- --kbq-tree-size-container-focus-outline-width,
34
- $outline-width
35
- )
26
+ padding-top: kbq-difference-series-css-variables(
27
+ [ tree-size-container-padding-vertical,
28
+ tree-size-container-focus-outline-width]
36
29
  );
37
- padding-right: calc(
38
- var(--kbq-tree-size-container-padding-right, $padding-right) - var(
39
- --kbq-tree-size-container-focus-outline-width,
40
- $outline-width
41
- )
30
+ padding-right: kbq-difference-series-css-variables(
31
+ [ tree-size-container-padding-right,
32
+ tree-size-container-focus-outline-width]
42
33
  );
43
- padding-bottom: calc(
44
- var(--kbq-tree-size-container-padding-vertical, $padding-vertical) - var(
45
- --kbq-tree-size-container-focus-outline-width,
46
- $outline-width
47
- )
34
+ padding-bottom: kbq-difference-series-css-variables(
35
+ [ tree-size-container-padding-vertical,
36
+ tree-size-container-focus-outline-width]
48
37
  );
49
38
 
50
39
  gap: kbq-css-variable(tree-size-container-content-gap-horizontal);
@@ -1,62 +0,0 @@
1
- @use 'sass:map';
2
-
3
- @use '../core/styles/common/tokens' as *;
4
-
5
- @mixin kbq-card-style($component, $style-name) {
6
- $style: map.get($component, $style-name);
7
-
8
- box-shadow:
9
- inset -1px 0 0 0 kbq-css-variable(card-#{$style-name}-shadow, map.get($style, shadow)),
10
- inset 0 1px 0 0 kbq-css-variable(card-#{$style-name}-shadow, map.get($style, shadow)),
11
- inset 0 -1px 0 0 kbq-css-variable(card-#{$style-name}-shadow, map.get($style, shadow));
12
-
13
- background-color: kbq-css-variable(card-#{$style-name}-background, map.get($style, background));
14
-
15
- border-left-color: kbq-css-variable(card-#{$style-name}-vertical-line, map.get($style, vertical-line));
16
- }
17
-
18
- @mixin kbq-card-theme($theme) {
19
- $foreground: map.get($theme, foreground);
20
- $background: map.get($theme, background);
21
-
22
- $card: map.get(map.get($theme, components), card);
23
- $popup: map.get(map.get($theme, components), popup);
24
-
25
- .kbq-card {
26
- color: kbq-css-variable(foreground-contrast, map.get($foreground, contrast));
27
-
28
- &.kbq-card_error {
29
- @include kbq-card-style($card, error);
30
- }
31
-
32
- &.kbq-card_warning {
33
- @include kbq-card-style($card, warning);
34
- }
35
-
36
- &.kbq-card_success {
37
- @include kbq-card-style($card, success);
38
- }
39
-
40
- &.kbq-card_info {
41
- @include kbq-card-style($card, info);
42
- }
43
-
44
- &.kbq-card_white {
45
- background-color: kbq-css-variable(popup-background, map.get($popup, background));
46
- }
47
-
48
- &.kbq-selected {
49
- background-color: kbq-css-variable(states-selected-color, map.get($theme, states, selected-color));
50
- }
51
-
52
- &:not(.kbq-card_readonly):hover {
53
- .kbq-card__overlay {
54
- background: kbq-css-variable(background-overlay-hover, map.get($background, overlay-hover));
55
- }
56
- }
57
-
58
- &.cdk-keyboard-focused {
59
- box-shadow: 0 0 0.1px 2px kbq-css-variable(states-focused-color, map.get($theme, states, focused-color));
60
- }
61
- }
62
- }
@@ -1,28 +0,0 @@
1
- import { FocusMonitor } from '@angular/cdk/a11y';
2
- import { ElementRef, EventEmitter, OnDestroy } from '@angular/core';
3
- import { CanColorCtor } from '@koobiq/components/core';
4
- import * as i0 from "@angular/core";
5
- /** @docs-private */
6
- export declare class KbqCardBase {
7
- elementRef: ElementRef;
8
- constructor(elementRef: ElementRef);
9
- }
10
- /** @docs-private */
11
- export declare const KbqCardBaseMixin: CanColorCtor & typeof KbqCardBase;
12
- export declare class KbqCard extends KbqCardBaseMixin implements OnDestroy {
13
- private _focusMonitor;
14
- readonly: boolean;
15
- selected: boolean;
16
- selectedChange: EventEmitter<boolean>;
17
- get tabIndex(): number | null;
18
- set tabIndex(value: number | null);
19
- private _tabIndex;
20
- constructor(elementRef: ElementRef, _focusMonitor: FocusMonitor);
21
- ngOnDestroy(): void;
22
- focus(): void;
23
- onClick($event: MouseEvent): void;
24
- onKeyDown($event: KeyboardEvent): void;
25
- private get hostElement();
26
- static ɵfac: i0.ɵɵFactoryDeclaration<KbqCard, never>;
27
- static ɵcmp: i0.ɵɵComponentDeclaration<KbqCard, "kbq-card", never, { "color": { "alias": "color"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; }, { "selectedChange": "selectedChange"; }, never, ["*"], false, never>;
28
- }
@@ -1,37 +0,0 @@
1
- @use 'sass:meta';
2
- @use 'sass:map';
3
-
4
- @use '../core/styles/common/layout';
5
-
6
- @use '../core/styles/common/tokens' as *;
7
-
8
- .kbq-card {
9
- position: relative;
10
- box-sizing: border-box;
11
-
12
- display: flex;
13
- flex-direction: column;
14
-
15
- cursor: pointer;
16
-
17
- &:focus {
18
- outline: none;
19
- }
20
-
21
- border-left: {
22
- width: kbq-css-variable(card-size-vertical-line);
23
- style: solid;
24
- color: transparent;
25
- }
26
-
27
- & .kbq-card__overlay {
28
- @include layout.kbq-fill;
29
- pointer-events: none;
30
-
31
- background: transparent;
32
- }
33
-
34
- &.kbq-card_readonly {
35
- cursor: auto;
36
- }
37
- }
@@ -1,10 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./card.component";
3
- import * as i2 from "@angular/common";
4
- import * as i3 from "@angular/cdk/a11y";
5
- import * as i4 from "@angular/cdk/platform";
6
- export declare class KbqCardModule {
7
- static ɵfac: i0.ɵɵFactoryDeclaration<KbqCardModule, never>;
8
- static ɵmod: i0.ɵɵNgModuleDeclaration<KbqCardModule, [typeof i1.KbqCard], [typeof i2.CommonModule, typeof i3.A11yModule, typeof i4.PlatformModule], [typeof i1.KbqCard]>;
9
- static ɵinj: i0.ɵɵInjectorDeclaration<KbqCardModule>;
10
- }
package/card/index.d.ts DELETED
@@ -1 +0,0 @@
1
- export * from './public-api';
@@ -1,2 +0,0 @@
1
- export * from './card.component';
2
- export * from './card.module';
@@ -1,79 +0,0 @@
1
- import { FocusMonitor } from '@angular/cdk/a11y';
2
- import { ChangeDetectionStrategy, Component, ElementRef, EventEmitter, Input, Output, ViewEncapsulation } from '@angular/core';
3
- import { SPACE } from '@koobiq/cdk/keycodes';
4
- import { mixinColor } from '@koobiq/components/core';
5
- import * as i0 from "@angular/core";
6
- import * as i1 from "@angular/cdk/a11y";
7
- /** @docs-private */
8
- export class KbqCardBase {
9
- constructor(elementRef) {
10
- this.elementRef = elementRef;
11
- }
12
- }
13
- /** @docs-private */
14
- export const KbqCardBaseMixin = mixinColor(KbqCardBase);
15
- export class KbqCard extends KbqCardBaseMixin {
16
- get tabIndex() {
17
- return this.readonly ? null : this._tabIndex;
18
- }
19
- set tabIndex(value) {
20
- this._tabIndex = value;
21
- }
22
- constructor(elementRef, _focusMonitor) {
23
- super(elementRef);
24
- this._focusMonitor = _focusMonitor;
25
- this.readonly = false;
26
- this.selected = false;
27
- this.selectedChange = new EventEmitter();
28
- this._tabIndex = 0;
29
- this._focusMonitor.monitor(this.elementRef.nativeElement, false);
30
- }
31
- ngOnDestroy() {
32
- this._focusMonitor.stopMonitoring(this.elementRef.nativeElement);
33
- }
34
- focus() {
35
- this.hostElement.focus();
36
- }
37
- onClick($event) {
38
- if (!this.readonly) {
39
- $event.stopPropagation();
40
- this.selectedChange.emit(!this.selected);
41
- }
42
- }
43
- onKeyDown($event) {
44
- switch ($event.keyCode) {
45
- case SPACE:
46
- if (!this.readonly) {
47
- $event.preventDefault();
48
- this.selectedChange.emit(!this.selected);
49
- }
50
- break;
51
- default:
52
- }
53
- }
54
- get hostElement() {
55
- return this.elementRef.nativeElement;
56
- }
57
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.0", ngImport: i0, type: KbqCard, deps: [{ token: i0.ElementRef }, { token: i1.FocusMonitor }], target: i0.ɵɵFactoryTarget.Component }); }
58
- /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.2.0", type: KbqCard, selector: "kbq-card", inputs: { color: "color", readonly: "readonly", selected: "selected", tabIndex: "tabIndex" }, outputs: { selectedChange: "selectedChange" }, host: { listeners: { "keydown": "onKeyDown($event)", "click": "onClick($event)" }, properties: { "class.kbq-card_readonly": "readonly", "class.kbq-selected": "selected", "attr.tabindex": "tabIndex" }, classAttribute: "kbq-card" }, usesInheritance: true, ngImport: i0, template: "<ng-content />\n<div class=\"kbq-card__overlay\"></div>\n", styles: [".kbq-card{position:relative;box-sizing:border-box;display:flex;flex-direction:column;cursor:pointer;border-left-width:var(--kbq-card-size-vertical-line, 4px);border-left-style:solid;border-left-color:transparent}.kbq-card:focus{outline:none}.kbq-card .kbq-card__overlay{inset:0;position:absolute;pointer-events:none;background:transparent}.kbq-card.kbq-card_readonly{cursor:auto}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
59
- }
60
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.0", ngImport: i0, type: KbqCard, decorators: [{
61
- type: Component,
62
- args: [{ selector: 'kbq-card', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, inputs: ['color'], host: {
63
- class: 'kbq-card',
64
- '[class.kbq-card_readonly]': 'readonly',
65
- '[class.kbq-selected]': 'selected',
66
- '[attr.tabindex]': 'tabIndex',
67
- '(keydown)': 'onKeyDown($event)',
68
- '(click)': 'onClick($event)'
69
- }, template: "<ng-content />\n<div class=\"kbq-card__overlay\"></div>\n", styles: [".kbq-card{position:relative;box-sizing:border-box;display:flex;flex-direction:column;cursor:pointer;border-left-width:var(--kbq-card-size-vertical-line, 4px);border-left-style:solid;border-left-color:transparent}.kbq-card:focus{outline:none}.kbq-card .kbq-card__overlay{inset:0;position:absolute;pointer-events:none;background:transparent}.kbq-card.kbq-card_readonly{cursor:auto}\n"] }]
70
- }], ctorParameters: () => [{ type: i0.ElementRef }, { type: i1.FocusMonitor }], propDecorators: { readonly: [{
71
- type: Input
72
- }], selected: [{
73
- type: Input
74
- }], selectedChange: [{
75
- type: Output
76
- }], tabIndex: [{
77
- type: Input
78
- }] } });
79
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2FyZC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wYWNrYWdlcy9jb21wb25lbnRzL2NhcmQvY2FyZC5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi9wYWNrYWdlcy9jb21wb25lbnRzL2NhcmQvY2FyZC5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0sbUJBQW1CLENBQUM7QUFDakQsT0FBTyxFQUNILHVCQUF1QixFQUN2QixTQUFTLEVBQ1QsV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gICAgQElucHV0KClcbiAgICBnZXQgdGFiSW5kZXgoKTogbnVtYmVyIHwgbnVsbCB7XG4gICAgICAgIHJldHVybiB0aGlzLnJlYWRvbmx5ID8gbnVsbCA6IHRoaXMuX3RhYkluZGV4O1xuICAgIH1cblxuICAgIHNldCB0YWJJbmRleCh2YWx1ZTogbnVtYmVyIHwgbnVsbCkge1xuICAgICAgICB0aGlzLl90YWJJbmRleCA9IHZhbHVlO1xuICAgIH1cblxuICAgIHByaXZhdGUgX3RhYkluZGV4OiBudW1iZXIgfCBudWxsID0gMDtcblxuICAgIGNvbnN0cnVjdG9yKFxuICAgICAgICBlbGVtZW50UmVmOiBFbGVtZW50UmVmLFxuICAgICAgICBwcml2YXRlIF9mb2N1c01vbml0b3I6IEZvY3VzTW9uaXRvclxuICAgICkge1xuICAgICAgICBzdXBlcihlbGVtZW50UmVmKTtcblxuICAgICAgICB0aGlzLl9mb2N1c01vbml0b3IubW9uaXRvcih0aGlzLmVsZW1lbnRSZWYubmF0aXZlRWxlbWVudCwgZmFsc2UpO1xuICAgIH1cblxuICAgIG5nT25EZXN0cm95KCkge1xuICAgICAgICB0aGlzLl9mb2N1c01vbml0b3Iuc3RvcE1vbml0b3JpbmcodGhpcy5lbGVtZW50UmVmLm5hdGl2ZUVsZW1lbnQpO1xuICAgIH1cblxuICAgIGZvY3VzKCk6IHZvaWQge1xuICAgICAgICB0aGlzLmhvc3RFbGVtZW50LmZvY3VzKCk7XG4gICAgfVxuXG4gICAgb25DbGljaygkZXZlbnQ6IE1vdXNlRXZlbnQpIHtcbiAgICAgICAgaWYgKCF0aGlzLnJlYWRvbmx5KSB7XG4gICAgICAgICAgICAkZXZlbnQuc3RvcFByb3BhZ2F0aW9uKCk7XG5cbiAgICAgICAgICAgIHRoaXMuc2VsZWN0ZWRDaGFuZ2UuZW1pdCghdGhpcy5zZWxlY3RlZCk7XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBvbktleURvd24oJGV2ZW50OiBLZXlib2FyZEV2ZW50KSB7XG4gICAgICAgIHN3aXRjaCAoJGV2ZW50LmtleUNvZGUpIHtcbiAgICAgICAgICAgIGNhc2UgU1BBQ0U6XG4gICAgICAgICAgICAgICAgaWYgKCF0aGlzLnJlYWRvbmx5KSB7XG4gICAgICAgICAgICAgICAgICAgICRldmVudC5wcmV2ZW50RGVmYXVsdCgpO1xuICAgICAgICAgICAgICAgICAgICB0aGlzLnNlbGVjdGVkQ2hhbmdlLmVtaXQoIXRoaXMuc2VsZWN0ZWQpO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgIGRlZmF1bHQ6XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBwcml2YXRlIGdldCBob3N0RWxlbWVudCgpIHtcbiAgICAgICAgcmV0dXJuIHRoaXMuZWxlbWVudFJlZi5uYXRpdmVFbGVtZW50O1xuICAgIH1cbn1cbiIsIjxuZy1jb250ZW50IC8+XG48ZGl2IGNsYXNzPVwia2JxLWNhcmRfX292ZXJsYXlcIj48L2Rpdj5cbiJdfQ==
@@ -1,28 +0,0 @@
1
- import { A11yModule } from '@angular/cdk/a11y';
2
- import { PlatformModule } from '@angular/cdk/platform';
3
- import { CommonModule } from '@angular/common';
4
- import { NgModule } from '@angular/core';
5
- import { KbqCard } from './card.component';
6
- import * as i0 from "@angular/core";
7
- export class KbqCardModule {
8
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.0", ngImport: i0, type: KbqCardModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
9
- /** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.2.0", ngImport: i0, type: KbqCardModule, declarations: [KbqCard], imports: [CommonModule,
10
- A11yModule,
11
- PlatformModule], exports: [KbqCard] }); }
12
- /** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.2.0", ngImport: i0, type: KbqCardModule, imports: [CommonModule,
13
- A11yModule,
14
- PlatformModule] }); }
15
- }
16
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.0", ngImport: i0, type: KbqCardModule, decorators: [{
17
- type: NgModule,
18
- args: [{
19
- imports: [
20
- CommonModule,
21
- A11yModule,
22
- PlatformModule
23
- ],
24
- exports: [KbqCard],
25
- declarations: [KbqCard]
26
- }]
27
- }] });
28
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2FyZC5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wYWNrYWdlcy9jb21wb25lbnRzL2NhcmQvY2FyZC5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLG1CQUFtQixDQUFDO0FBQy9DLE9BQU8sRUFBRSxjQUFjLEVBQUUsTUFBTSx1QkFBdUIsQ0FBQztBQUN2RCxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDL0MsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUN6QyxPQUFPLEVBQUUsT0FBTyxFQUFFLE1BQU0sa0JBQWtCLENBQUM7O0FBVzNDLE1BQU0sT0FBTyxhQUFhO2lJQUFiLGFBQWE7a0lBQWIsYUFBYSxpQkFGUCxPQUFPLGFBTGxCLFlBQVk7WUFDWixVQUFVO1lBQ1YsY0FBYyxhQUVSLE9BQU87a0lBR1IsYUFBYSxZQVBsQixZQUFZO1lBQ1osVUFBVTtZQUNWLGNBQWM7OzJGQUtULGFBQWE7a0JBVHpCLFFBQVE7bUJBQUM7b0JBQ04sT0FBTyxFQUFFO3dCQUNMLFlBQVk7d0JBQ1osVUFBVTt3QkFDVixjQUFjO3FCQUNqQjtvQkFDRCxPQUFPLEV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