@bravobit/bb-foundation 0.42.5 → 0.42.8

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 (162) hide show
  1. package/dialog/lib/dialog.config.d.ts +1 -1
  2. package/elements/lib/directives/file-drop.directive.d.ts +13 -0
  3. package/elements/lib/elements.module.d.ts +20 -19
  4. package/elements/lib/file-picker/file-picker.component.d.ts +3 -8
  5. package/elements/lib/multi-file-control/multi-file-control.component.d.ts +5 -7
  6. package/elements/public_api.d.ts +1 -0
  7. package/esm2022/auth/lib/auth.interceptor.mjs +3 -3
  8. package/esm2022/auth/lib/auth.module.mjs +4 -4
  9. package/esm2022/auth/lib/auth.service.mjs +3 -3
  10. package/esm2022/auth/lib/directives/authenticated.directive.mjs +3 -3
  11. package/esm2022/collections/lib/collections.module.mjs +4 -4
  12. package/esm2022/collections/lib/components/collections-actions/collections-actions.component.mjs +3 -3
  13. package/esm2022/collections/lib/components/collections-grid/collections-grid.component.mjs +3 -3
  14. package/esm2022/collections/lib/components/collections-pager/collections-pager.component.mjs +5 -5
  15. package/esm2022/collections/lib/components/collections-table/collections-table.component.mjs +3 -3
  16. package/esm2022/collections/lib/components/collections-table-label/collections-table-label.component.mjs +3 -3
  17. package/esm2022/collections/lib/components/collections-table-sorting/collections-table-sorting.component.mjs +3 -3
  18. package/esm2022/collections/lib/components/collections-viewer/collections-viewer.component.mjs +3 -3
  19. package/esm2022/collections/lib/directives/collections-data-row.directive.mjs +3 -3
  20. package/esm2022/collections/lib/directives/collections-data.directive.mjs +3 -3
  21. package/esm2022/collections/lib/directives/collections-empty.directive.mjs +3 -3
  22. package/esm2022/collections/lib/directives/collections-error.directive.mjs +3 -3
  23. package/esm2022/collections/lib/directives/collections-initial.directive.mjs +3 -3
  24. package/esm2022/collections/lib/directives/collections-item.directive.mjs +3 -3
  25. package/esm2022/combobox/combobox/combobox-container.directive.mjs +3 -3
  26. package/esm2022/combobox/combobox/combobox.component.mjs +3 -3
  27. package/esm2022/combobox/combobox-label.directive.mjs +3 -3
  28. package/esm2022/combobox/combobox-option.directive.mjs +3 -3
  29. package/esm2022/combobox/combobox-panel/combobox-panel.component.mjs +3 -3
  30. package/esm2022/dashboard/lib/dashboard/dashboard.component.mjs +3 -3
  31. package/esm2022/dashboard/lib/dashboard-header/dashboard-header.component.mjs +3 -3
  32. package/esm2022/dashboard/lib/dashboard-menu/dashboard-menu.component.mjs +3 -3
  33. package/esm2022/dashboard/lib/dashboard-menu-item/dashboard-menu-item.component.mjs +3 -3
  34. package/esm2022/dashboard/lib/dashboard-sidebar/dashboard-sidebar.component.mjs +4 -4
  35. package/esm2022/dashboard/lib/dashboard-sidebar-group/dashboard-sidebar-group.component.mjs +5 -5
  36. package/esm2022/dashboard/lib/dashboard-sidebar-item/dashboard-sidebar-item.component.mjs +3 -3
  37. package/esm2022/dashboard/lib/dashboard.module.mjs +4 -4
  38. package/esm2022/dialog/lib/dialog-actions/dialog-actions.component.mjs +3 -3
  39. package/esm2022/dialog/lib/dialog-confirm/dialog-confirm.component.mjs +3 -3
  40. package/esm2022/dialog/lib/dialog-container/dialog-container.component.mjs +3 -3
  41. package/esm2022/dialog/lib/dialog-header/dialog-header.component.mjs +3 -3
  42. package/esm2022/dialog/lib/dialog-link/dialog-link.component.mjs +3 -3
  43. package/esm2022/dialog/lib/dialog-modal/dialog-modal.component.mjs +3 -3
  44. package/esm2022/dialog/lib/dialog-overlay/dialog-overlay.component.mjs +3 -3
  45. package/esm2022/dialog/lib/dialog.config.mjs +1 -1
  46. package/esm2022/dialog/lib/dialog.insertion.mjs +3 -3
  47. package/esm2022/dialog/lib/dialog.module.mjs +4 -4
  48. package/esm2022/dialog/lib/dialog.service.mjs +3 -3
  49. package/esm2022/dialog/lib/directives/confirm.directive.mjs +3 -3
  50. package/esm2022/elements/lib/avatar/avatar.component.mjs +3 -3
  51. package/esm2022/elements/lib/button/button.component.mjs +9 -9
  52. package/esm2022/elements/lib/checkbox/checkbox.component.mjs +3 -3
  53. package/esm2022/elements/lib/checkbox-group/checkbox-group.component.mjs +3 -3
  54. package/esm2022/elements/lib/date-picker/date-picker.component.mjs +3 -3
  55. package/esm2022/elements/lib/directives/addon.directive.mjs +6 -6
  56. package/esm2022/elements/lib/directives/extra-error-controls.directive.mjs +3 -3
  57. package/esm2022/elements/lib/directives/file-drop.directive.mjs +62 -0
  58. package/esm2022/elements/lib/directives/form-submit.directive.mjs +3 -3
  59. package/esm2022/elements/lib/directives/form-submitter.directive.mjs +3 -3
  60. package/esm2022/elements/lib/directives/image-upload.directive.mjs +3 -3
  61. package/esm2022/elements/lib/directives/input.directive.mjs +3 -3
  62. package/esm2022/elements/lib/elements.config.mjs +2 -1
  63. package/esm2022/elements/lib/elements.module.mjs +9 -5
  64. package/esm2022/elements/lib/file-picker/file-picker.component.mjs +19 -72
  65. package/esm2022/elements/lib/form-control/form-control.component.mjs +5 -5
  66. package/esm2022/elements/lib/form-error/form-error.component.mjs +3 -3
  67. package/esm2022/elements/lib/form-group/form-group.component.mjs +3 -3
  68. package/esm2022/elements/lib/icon/icon.component.mjs +3 -3
  69. package/esm2022/elements/lib/image-picker/image-picker.component.mjs +3 -3
  70. package/esm2022/elements/lib/multi-file-control/multi-file-control.component.mjs +29 -49
  71. package/esm2022/elements/lib/pipes/date.pipe.mjs +3 -3
  72. package/esm2022/elements/lib/pipes/file-image.pipe.mjs +3 -3
  73. package/esm2022/elements/lib/pipes/file-size.pipe.mjs +3 -3
  74. package/esm2022/elements/lib/pipes/relative-time.pipe.mjs +3 -3
  75. package/esm2022/elements/lib/radio-button/radio-button.component.mjs +3 -3
  76. package/esm2022/elements/lib/radio-group/radio-group.component.mjs +3 -3
  77. package/esm2022/elements/lib/spinner/spinner.component.mjs +3 -3
  78. package/esm2022/elements/public_api.mjs +2 -1
  79. package/esm2022/http/lib/http.module.mjs +4 -4
  80. package/esm2022/http/lib/interceptors/base-url.interceptor.mjs +3 -3
  81. package/esm2022/http/lib/interceptors/error.interceptor.mjs +3 -3
  82. package/esm2022/lib/core/services/exif.service.mjs +3 -3
  83. package/esm2022/lib/core/services/file-loader.service.mjs +3 -3
  84. package/esm2022/lib/core/services/files.service.mjs +3 -3
  85. package/esm2022/lib/core/services/image-converter.service.mjs +3 -3
  86. package/esm2022/lib/core/services/languages.service.mjs +3 -3
  87. package/esm2022/lib/core/services/network.service.mjs +3 -3
  88. package/esm2022/lib/core/services/patch.service.mjs +3 -3
  89. package/esm2022/localize/lib/localizations/dutch.localization.mjs +2 -1
  90. package/esm2022/localize/lib/localizations/english.localization.mjs +2 -1
  91. package/esm2022/localize/lib/localizations/papiamento.localization.mjs +2 -1
  92. package/esm2022/localize/lib/localize.module.mjs +4 -4
  93. package/esm2022/localize/lib/localize.pipe.mjs +3 -3
  94. package/esm2022/localize/lib/localize.service.mjs +3 -3
  95. package/esm2022/localize/lib/views/localize-string/localize-string.component.mjs +3 -3
  96. package/esm2022/localize/lib/views/localize-template.directive.mjs +3 -3
  97. package/esm2022/masking/lib/directives/currency-mask.directive.mjs +3 -3
  98. package/esm2022/masking/lib/directives/date-mask.directive.mjs +3 -3
  99. package/esm2022/masking/lib/directives/input-mask.directive.mjs +3 -3
  100. package/esm2022/masking/lib/masking.module.mjs +4 -4
  101. package/esm2022/masking/lib/masking.service.mjs +3 -3
  102. package/esm2022/notifications/lib/notifications-item/notifications-item.component.mjs +3 -3
  103. package/esm2022/notifications/lib/notifications-list/notifications-list.component.mjs +3 -3
  104. package/esm2022/notifications/lib/notifications.module.mjs +4 -4
  105. package/esm2022/notifications/lib/notifications.service.mjs +3 -3
  106. package/esm2022/permissions/lib/directives/permission.directive.mjs +3 -3
  107. package/esm2022/permissions/lib/permissions.module.mjs +4 -4
  108. package/esm2022/permissions/lib/permissions.service.mjs +3 -3
  109. package/esm2022/recaptcha/lib/recaptcha/recaptcha.component.mjs +3 -3
  110. package/esm2022/recaptcha/lib/recaptcha-loader.service.mjs +3 -3
  111. package/esm2022/recaptcha/lib/recaptcha.module.mjs +4 -4
  112. package/esm2022/select/lib/select/select.component.mjs +14 -11
  113. package/esm2022/select/lib/select-label.directive.mjs +3 -3
  114. package/esm2022/select/lib/select-multi-label.directive.mjs +3 -3
  115. package/esm2022/select/lib/select-option-group.directive.mjs +3 -3
  116. package/esm2022/select/lib/select-option.directive.mjs +3 -3
  117. package/esm2022/select/lib/select.module.mjs +4 -4
  118. package/esm2022/storage/lib/storage.service.mjs +3 -3
  119. package/esm2022/table/lib/components/table/table.component.mjs +9 -9
  120. package/esm2022/table/lib/components/table-cell/table-cell.component.mjs +3 -3
  121. package/esm2022/table/lib/components/table-header-cell/table-header-cell.component.mjs +3 -3
  122. package/esm2022/table/lib/components/table-pager/table-pager.component.mjs +3 -3
  123. package/esm2022/table/lib/table.module.mjs +4 -4
  124. package/esm2022/tooltip/lib/tooltip-container/tooltip-container.component.mjs +3 -3
  125. package/esm2022/tooltip/lib/tooltip.directive.mjs +3 -3
  126. package/esm2022/tooltip/lib/tooltip.module.mjs +4 -4
  127. package/esm2022/utils/lib/directives/autosize.directive.mjs +3 -3
  128. package/esm2022/utils/lib/directives/focus-trap.directive.mjs +3 -3
  129. package/esm2022/utils/lib/directives/focus.directive.mjs +3 -3
  130. package/esm2022/utils/lib/directives/template.directive.mjs +3 -3
  131. package/esm2022/utils/lib/utils.module.mjs +4 -4
  132. package/fesm2022/bravobit-bb-foundation-auth.mjs +13 -13
  133. package/fesm2022/bravobit-bb-foundation-collections.mjs +44 -44
  134. package/fesm2022/bravobit-bb-foundation-collections.mjs.map +1 -1
  135. package/fesm2022/bravobit-bb-foundation-combobox.mjs +15 -15
  136. package/fesm2022/bravobit-bb-foundation-dashboard.mjs +27 -27
  137. package/fesm2022/bravobit-bb-foundation-dashboard.mjs.map +1 -1
  138. package/fesm2022/bravobit-bb-foundation-dialog.mjs +34 -34
  139. package/fesm2022/bravobit-bb-foundation-dialog.mjs.map +1 -1
  140. package/fesm2022/bravobit-bb-foundation-elements.mjs +189 -200
  141. package/fesm2022/bravobit-bb-foundation-elements.mjs.map +1 -1
  142. package/fesm2022/bravobit-bb-foundation-http.mjs +10 -10
  143. package/fesm2022/bravobit-bb-foundation-localize.mjs +19 -16
  144. package/fesm2022/bravobit-bb-foundation-localize.mjs.map +1 -1
  145. package/fesm2022/bravobit-bb-foundation-masking.mjs +16 -16
  146. package/fesm2022/bravobit-bb-foundation-notifications.mjs +13 -13
  147. package/fesm2022/bravobit-bb-foundation-permissions.mjs +10 -10
  148. package/fesm2022/bravobit-bb-foundation-recaptcha.mjs +10 -10
  149. package/fesm2022/bravobit-bb-foundation-select.mjs +29 -26
  150. package/fesm2022/bravobit-bb-foundation-select.mjs.map +1 -1
  151. package/fesm2022/bravobit-bb-foundation-storage.mjs +3 -3
  152. package/fesm2022/bravobit-bb-foundation-table.mjs +22 -22
  153. package/fesm2022/bravobit-bb-foundation-table.mjs.map +1 -1
  154. package/fesm2022/bravobit-bb-foundation-tooltip.mjs +10 -10
  155. package/fesm2022/bravobit-bb-foundation-utils.mjs +16 -16
  156. package/fesm2022/bravobit-bb-foundation.mjs +21 -21
  157. package/localize/lib/localizations/dutch.localization.d.ts +1 -0
  158. package/localize/lib/localizations/english.localization.d.ts +1 -0
  159. package/localize/lib/localizations/papiamento.localization.d.ts +1 -0
  160. package/package.json +17 -17
  161. package/select/lib/select/select.component.d.ts +1 -1
  162. package/styles/theme.scss +54 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bravobit/bb-foundation",
3
- "version": "0.42.5",
3
+ "version": "0.42.8",
4
4
  "description": "The Angular core foundation of the Bravobit team.",
5
5
  "author": {
6
6
  "name": "Stan van Heumen",
@@ -8,15 +8,15 @@
8
8
  "url": "https://bravobit.nl"
9
9
  },
10
10
  "peerDependencies": {
11
- "@angular/common": "^18.1.0",
12
- "@angular/core": "^18.1.0",
13
- "@angular/cdk": "^18.1.0"
11
+ "@angular/common": "^18.2.0",
12
+ "@angular/core": "^18.2.0",
13
+ "@angular/cdk": "^18.2.0"
14
14
  },
15
15
  "dependencies": {
16
16
  "tslib": "^2.6.3",
17
17
  "inputmask": "^5.0.9",
18
18
  "@types/grecaptcha": "^3.0.9",
19
- "@ng-select/ng-select": "~13.0.4"
19
+ "@ng-select/ng-select": "^13.7.0"
20
20
  },
21
21
  "sideEffects": false,
22
22
  "module": "fesm2022/bravobit-bb-foundation.mjs",
@@ -37,36 +37,36 @@
37
37
  "esm": "./esm2022/auth/bravobit-bb-foundation-auth.mjs",
38
38
  "default": "./fesm2022/bravobit-bb-foundation-auth.mjs"
39
39
  },
40
+ "./collections": {
41
+ "types": "./collections/index.d.ts",
42
+ "esm2022": "./esm2022/collections/bravobit-bb-foundation-collections.mjs",
43
+ "esm": "./esm2022/collections/bravobit-bb-foundation-collections.mjs",
44
+ "default": "./fesm2022/bravobit-bb-foundation-collections.mjs"
45
+ },
40
46
  "./dashboard": {
41
47
  "types": "./dashboard/index.d.ts",
42
48
  "esm2022": "./esm2022/dashboard/bravobit-bb-foundation-dashboard.mjs",
43
49
  "esm": "./esm2022/dashboard/bravobit-bb-foundation-dashboard.mjs",
44
50
  "default": "./fesm2022/bravobit-bb-foundation-dashboard.mjs"
45
51
  },
46
- "./combobox": {
47
- "types": "./combobox/index.d.ts",
48
- "esm2022": "./esm2022/combobox/bravobit-bb-foundation-combobox.mjs",
49
- "esm": "./esm2022/combobox/bravobit-bb-foundation-combobox.mjs",
50
- "default": "./fesm2022/bravobit-bb-foundation-combobox.mjs"
51
- },
52
52
  "./dialog": {
53
53
  "types": "./dialog/index.d.ts",
54
54
  "esm2022": "./esm2022/dialog/bravobit-bb-foundation-dialog.mjs",
55
55
  "esm": "./esm2022/dialog/bravobit-bb-foundation-dialog.mjs",
56
56
  "default": "./fesm2022/bravobit-bb-foundation-dialog.mjs"
57
57
  },
58
- "./collections": {
59
- "types": "./collections/index.d.ts",
60
- "esm2022": "./esm2022/collections/bravobit-bb-foundation-collections.mjs",
61
- "esm": "./esm2022/collections/bravobit-bb-foundation-collections.mjs",
62
- "default": "./fesm2022/bravobit-bb-foundation-collections.mjs"
63
- },
64
58
  "./http": {
65
59
  "types": "./http/index.d.ts",
66
60
  "esm2022": "./esm2022/http/bravobit-bb-foundation-http.mjs",
67
61
  "esm": "./esm2022/http/bravobit-bb-foundation-http.mjs",
68
62
  "default": "./fesm2022/bravobit-bb-foundation-http.mjs"
69
63
  },
64
+ "./combobox": {
65
+ "types": "./combobox/index.d.ts",
66
+ "esm2022": "./esm2022/combobox/bravobit-bb-foundation-combobox.mjs",
67
+ "esm": "./esm2022/combobox/bravobit-bb-foundation-combobox.mjs",
68
+ "default": "./fesm2022/bravobit-bb-foundation-combobox.mjs"
69
+ },
70
70
  "./elements": {
71
71
  "types": "./elements/index.d.ts",
72
72
  "esm2022": "./esm2022/elements/bravobit-bb-foundation-elements.mjs",
@@ -1,6 +1,6 @@
1
1
  import { EventEmitter, OnDestroy, OnInit, TemplateRef } from '@angular/core';
2
- import { ControlValueAccessor, FormControl } from '@angular/forms';
3
2
  import { NgSelectComponent } from '@ng-select/ng-select';
3
+ import { ControlValueAccessor, FormControl } from '@angular/forms';
4
4
  import { Observable, Subject } from 'rxjs';
5
5
  import * as i0 from "@angular/core";
6
6
  export declare class BbSelect<T> implements ControlValueAccessor, OnInit, OnDestroy {
package/styles/theme.scss CHANGED
@@ -61,14 +61,26 @@
61
61
  --bb-radio-outline-color: var(--bb-primary-color-100);
62
62
 
63
63
  // Form control
64
- --bb-form-control-box-shadow: 0 0 0 0.1875rem var(--bb-primary-color-100);
64
+ --bb-form-control-border-color: hsla(213, 8%, 74%, 1);
65
+ --bb-form-control-focus-border-color: hsla(213, 8%, 50%, 1);
66
+ --bb-form-control-border-radius: 0.5rem;
67
+ --bb-form-control-background-color: white;
68
+ --bb-form-control-box-shadow: 0 0.375rem 0.375rem -0.375rem hsla(0, 0%, 0%, 0.1);
69
+ --bb-form-control-focus-box-shadow: 0 0.375rem 0.375rem -0.375rem hsla(0, 0%, 0%, 0.1), 0 0 0 0.1875rem var(--bb-primary-color-100);
65
70
 
66
71
  // Select
67
- --select-box-shadow: 0 0 0 0.1875rem var(--bb-primary-color-100);
72
+ --bb-select-border-radius: 0.5rem;
73
+ --bb-select-background-color: white;
74
+ --bb-select-border-color: hsla(213, 8%, 74%, 1);
75
+ --bb-select-box-shadow: 0 0.375rem 0.375rem -0.375rem hsla(0, 0%, 0%, 0.1);
76
+ --bb-select-focus-box-shadow: 0 0.375rem 0.375rem -0.375rem hsla(0, 0%, 0%, 0.1), 0 0 0 0.1875rem var(--bb-primary-color-100);
68
77
 
69
78
  // File picker.
70
79
  --bb-file-picker-color: var(--bb-primary-color-550);
80
+ --bb-file-picker-border-radius: 0.5rem;
71
81
  --bb-file-picker-box-shadow: 0 0 0 0.1875rem var(--bb-primary-color-100);
82
+ --bb-file-picker-border-color: hsla(213, 8%, 74%, 1);
83
+ --bb-file-picker-background-color: white;
72
84
 
73
85
  // Multi file control.
74
86
  --bb-multi-file-control-color: var(--bb-primary-color-550);
@@ -86,3 +98,43 @@
86
98
  --bb-collections-table-label-color: var(--bb-primary-color-550);
87
99
  }
88
100
  }
101
+
102
+ @mixin bb-legacy-theme($primary-color) {
103
+ @include bb-theme(('primary-color': $primary-color));
104
+
105
+ :root {
106
+ // Legacy button styling.
107
+ --bb-button-border-radius: 0.25rem;
108
+ --bb-button-color: #2d3c4d;
109
+ --bb-button-secondary-border-color: #d4d8e1;
110
+ --bb-button-secondary-hover-background-color: hsla(60, 0%, 99%, 1);
111
+ --bb-button-secondary-active-background-color: hsla(60, 0%, 99%, 1);
112
+ --bb-button-secondary-focus-box-shadow: 0 0 0 0.1875rem hsla(222, 6%, 91%, 0.5);
113
+
114
+ // Legacy general control styling.
115
+ --bb-form-label-color: #111111;
116
+ --bb-form-label-font-weight: 500;
117
+ --bb-form-label-font-size: 1rem;
118
+
119
+ // Legacy form control styling.
120
+ --bb-form-control-box-shadow: inset 0 0.1875rem hsla(213, 8%, 74%, 0.2), 0 0.375rem 0.375rem -0.375rem hsla(0, 0%, 0%, 0.1);
121
+ --bb-form-control-focus-box-shadow: inset 0 0.1875rem hsla(213, 8%, 74%, 0.2), 0 0.375rem 0.375rem -0.375rem hsla(0, 0%, 0%, 0.1), 0 0 0 0.1875rem hsla(211, 100%, 50%, 0.2);
122
+ --bb-form-control-border-color: hsla(213, 8%, 74%, 1);
123
+ --bb-form-control-focus-border-color: hsla(213, 8%, 74%, 1);
124
+ --bb-form-control-border-radius: 0.1875rem;
125
+ --bb-form-control-background-color: hsla(300, 100%, 99%, 1);
126
+
127
+ // Legacy select styling.
128
+ --bb-select-border-radius: 0.1875rem;
129
+ --bb-select-background-color: hsla(300, 100%, 99%, 1);
130
+ --bb-select-border-color: hsla(213, 8%, 74%, 1);
131
+ --bb-select-box-shadow: inset 0 0.1875rem hsla(213, 8%, 74%, 0.2), 0 0.375rem 0.375rem -0.375rem hsla(0, 0%, 0%, 0.1);
132
+ --bb-select-focus-box-shadow: inset 0 0.1875rem hsla(213, 8%, 74%, 0.2), 0 0.375rem 0.375rem -0.375rem hsla(0, 0%, 0%, 0.1), 0 0 0 0.1875rem hsla(211, 100%, 50%, 0.2);
133
+
134
+ // Legacy file picker styling.
135
+ --bb-file-picker-box-shadow: 0 0 0 0.1875rem hsla(211, 100%, 50%, 0.2);
136
+ --bb-file-picker-border-radius: 0.1875rem;
137
+ --bb-file-picker-border-color: hsla(213, 8%, 74%, 1);
138
+ --bb-file-picker-background-color: hsla(300, 100%, 99%, 1);
139
+ }
140
+ }