@ptsecurity/mosaic 17.2.1 → 17.3.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 (89) hide show
  1. package/autocomplete/autocomplete.scss +0 -2
  2. package/button/_button-theme.scss +3 -3
  3. package/button-toggle/_button-toggle-theme.scss +2 -2
  4. package/checkbox/_checkbox-theme.scss +1 -1
  5. package/code-block/_code-block-theme.scss +2 -2
  6. package/core/form-field/form-field-ref.d.ts +13 -0
  7. package/core/form-field/index.d.ts +1 -0
  8. package/core/forms/_forms-theme.scss +2 -2
  9. package/core/option/_optgroup-theme.scss +1 -1
  10. package/core/option/_option-theme.scss +1 -1
  11. package/core/public-api.d.ts +1 -0
  12. package/core/select/common.d.ts +35 -0
  13. package/core/select/index.d.ts +1 -0
  14. package/core/styles/common/_tokens.scss +29 -20
  15. package/core/styles/theming/_alerts.scss +5 -5
  16. package/core/styles/theming/_badges.scss +6 -6
  17. package/core/styles/typography/_typography.scss +26 -26
  18. package/datepicker/_datepicker-theme.scss +4 -4
  19. package/dl/_dl-theme.scss +8 -8
  20. package/dropdown/_dropdown-theme.scss +4 -4
  21. package/esm2022/core/form-field/form-field-ref.mjs +8 -0
  22. package/esm2022/core/form-field/index.mjs +2 -0
  23. package/esm2022/core/public-api.mjs +2 -1
  24. package/esm2022/core/select/common.mjs +119 -0
  25. package/esm2022/core/select/index.mjs +2 -1
  26. package/esm2022/core/version.mjs +2 -2
  27. package/esm2022/datepicker/calendar-header.component.mjs +1 -1
  28. package/esm2022/form-field/form-field.mjs +5 -11
  29. package/esm2022/form-field/password-hint.mjs +5 -4
  30. package/esm2022/select/select.component.mjs +15 -111
  31. package/esm2022/select/select.module.mjs +17 -17
  32. package/esm2022/tags/tag-default-options.mjs +1 -1
  33. package/esm2022/tags/tag-input.mjs +17 -3
  34. package/esm2022/timepicker/timepicker.directive.mjs +10 -2
  35. package/esm2022/timezone/timezone-select.component.mjs +3 -3
  36. package/esm2022/toast/toast.service.mjs +17 -11
  37. package/esm2022/tree-select/tree-select.component.mjs +4 -5
  38. package/fesm2022/ptsecurity-mosaic-core.mjs +125 -4
  39. package/fesm2022/ptsecurity-mosaic-core.mjs.map +1 -1
  40. package/fesm2022/ptsecurity-mosaic-datepicker.mjs +1 -1
  41. package/fesm2022/ptsecurity-mosaic-datepicker.mjs.map +1 -1
  42. package/fesm2022/ptsecurity-mosaic-form-field.mjs +7 -13
  43. package/fesm2022/ptsecurity-mosaic-form-field.mjs.map +1 -1
  44. package/fesm2022/ptsecurity-mosaic-select.mjs +34 -130
  45. package/fesm2022/ptsecurity-mosaic-select.mjs.map +1 -1
  46. package/fesm2022/ptsecurity-mosaic-tags.mjs +17 -4
  47. package/fesm2022/ptsecurity-mosaic-tags.mjs.map +1 -1
  48. package/fesm2022/ptsecurity-mosaic-timepicker.mjs +9 -1
  49. package/fesm2022/ptsecurity-mosaic-timepicker.mjs.map +1 -1
  50. package/fesm2022/ptsecurity-mosaic-timezone.mjs +2 -2
  51. package/fesm2022/ptsecurity-mosaic-timezone.mjs.map +1 -1
  52. package/fesm2022/ptsecurity-mosaic-toast.mjs +15 -9
  53. package/fesm2022/ptsecurity-mosaic-toast.mjs.map +1 -1
  54. package/fesm2022/ptsecurity-mosaic-tree-select.mjs +4 -4
  55. package/fesm2022/ptsecurity-mosaic-tree-select.mjs.map +1 -1
  56. package/file-upload/_file-upload-theme.scss +7 -7
  57. package/form-field/_form-field-theme.scss +7 -5
  58. package/form-field/form-field.d.ts +1 -7
  59. package/input/_input-theme.scss +4 -4
  60. package/link/_link-theme.scss +2 -2
  61. package/list/_list-theme.scss +1 -1
  62. package/loader-overlay/_loader-overlay-theme.scss +2 -2
  63. package/markdown/_markdown-theme.scss +14 -14
  64. package/modal/_modal-theme.scss +2 -2
  65. package/navbar/_navbar-theme.scss +4 -4
  66. package/package.json +16 -16
  67. package/popover/_popover-theme.scss +3 -3
  68. package/prebuilt-themes/dark-theme.css +1 -1
  69. package/prebuilt-themes/default-theme.css +1 -1
  70. package/radio/_radio-theme.scss +1 -1
  71. package/select/_select-theme.scss +2 -2
  72. package/select/select.component.d.ts +2 -32
  73. package/select/select.module.d.ts +1 -1
  74. package/sidepanel/_sidepanel-theme.scss +3 -3
  75. package/table/_table-theme.scss +2 -2
  76. package/tabs/_tabs-theme.scss +1 -1
  77. package/tags/_tag-theme.scss +5 -5
  78. package/tags/tag-default-options.d.ts +1 -0
  79. package/tags/tag-input.d.ts +7 -1
  80. package/textarea/_textarea-theme.scss +2 -2
  81. package/timezone/_timezone-option-theme.scss +3 -3
  82. package/timezone/timezone-select.component.d.ts +2 -1
  83. package/toast/_toast-theme.scss +3 -3
  84. package/toast/toast.service.d.ts +8 -4
  85. package/toggle/_toggle-theme.scss +2 -2
  86. package/tooltip/_tooltip-theme.scss +3 -3
  87. package/tree/_tree-theme.scss +1 -1
  88. package/tree-select/_tree-select-theme.scss +1 -1
  89. package/tree-select/tree-select.component.d.ts +1 -2
@@ -167,39 +167,39 @@
167
167
 
168
168
  @mixin mc-file-upload-typography($config) {
169
169
  .mc-single-file-upload {
170
- @include mc-typography-css-variables(file-upload, single);
170
+ @include mc-typography-css-variables($config, file-upload, single);
171
171
  }
172
172
 
173
173
  .mc-multiple-file-upload {
174
174
  .multiple__header {
175
- @include mc-typography-css-variables(file-upload, multiple-header);
175
+ @include mc-typography-css-variables($config, file-upload, multiple-header);
176
176
  }
177
177
 
178
178
  .multiple__caption {
179
179
  &, .mc-link {
180
- @include mc-typography-css-variables(file-upload, multiple-caption);
180
+ @include mc-typography-css-variables($config, file-upload, multiple-caption);
181
181
  }
182
182
  }
183
183
 
184
184
  .mc-file-multiple-uploaded__header {
185
- @include mc-typography-css-variables(file-upload, multiple-uploaded-header);
185
+ @include mc-typography-css-variables($config, file-upload, multiple-uploaded-header);
186
186
  }
187
187
 
188
188
  .multiple__uploaded-item {
189
- @include mc-typography-css-variables(file-upload, multiple-uploaded-item);
189
+ @include mc-typography-css-variables($config, file-upload, multiple-uploaded-item);
190
190
  }
191
191
 
192
192
  .mc-file-upload {
193
193
  .mc-list-item,
194
194
  .mc-list-option {
195
- @include mc-typography-css-variables(file-upload, multiple-uploaded-item);
195
+ @include mc-typography-css-variables($config, file-upload, multiple-uploaded-item);
196
196
  }
197
197
  }
198
198
  }
199
199
 
200
200
  .mc-single-file-upload, .mc-multiple-file-upload {
201
201
  .mc-file-upload__hint {
202
- @include mc-typography-css-variables(form-field-hint, default);
202
+ @include mc-typography-css-variables($config, form-field-hint, default);
203
203
  }
204
204
  }
205
205
  }
@@ -61,11 +61,13 @@
61
61
  &.cdk-focused {
62
62
  &:not(.ng-invalid) .mc-form-field__container {
63
63
  border-color: mc-css-variable(states-focused-color, map-get($theme, states, focused-color));
64
- box-shadow: 0 0 0 1px mc-css-variable(states-focused-color, map-get($theme, states, focused-color));
64
+ box-shadow: 0 0 0.1px 1px mc-css-variable(
65
+ states-focused-color, map-get($theme, states, focused-color)
66
+ );
65
67
  }
66
68
 
67
69
  &.ng-invalid .mc-form-field__container {
68
- box-shadow: 0 0 0 1px mc-css-variable(error-default, mc-color($error));
70
+ box-shadow: 0 0 0.1px 1px mc-css-variable(error-default, mc-color($error));
69
71
  }
70
72
  }
71
73
 
@@ -142,14 +144,14 @@
142
144
 
143
145
  @mixin mc-form-field-typography($config) {
144
146
  .mc-form-field {
145
- @include mc-typography-css-variables(form-field, default);
147
+ @include mc-typography-css-variables($config, form-field, default);
146
148
  }
147
149
 
148
150
  .mc-form-field__hint, .mc-password-hint {
149
- @include mc-typography-css-variables(form-field-hint, default);
151
+ @include mc-typography-css-variables($config, form-field-hint, default);
150
152
  }
151
153
 
152
154
  .mc-hint {
153
- @include mc-typography-level-to-styles_css-variables(typography, caption);
155
+ @include mc-typography-level-to-styles_css-variables($config, typography, caption);
154
156
  }
155
157
  }
@@ -1,5 +1,5 @@
1
1
  import { FocusMonitor } from '@angular/cdk/a11y';
2
- import { AfterContentChecked, AfterContentInit, AfterViewInit, ChangeDetectorRef, ElementRef, InjectionToken, OnDestroy, QueryList } from '@angular/core';
2
+ import { AfterContentChecked, AfterContentInit, AfterViewInit, ChangeDetectorRef, ElementRef, OnDestroy, QueryList } from '@angular/core';
3
3
  import { NgControl } from '@angular/forms';
4
4
  import { CanColor, CanColorCtor } from '@ptsecurity/mosaic/core';
5
5
  import { McCleaner } from './cleaner';
@@ -10,12 +10,6 @@ import { McPrefix } from './prefix';
10
10
  import { McStepper } from './stepper';
11
11
  import { McSuffix } from './suffix';
12
12
  import * as i0 from "@angular/core";
13
- /**
14
- * Injection token that can be used to inject an instances of `MatFormField`. It serves
15
- * as alternative token to the actual `MatFormField` class which would cause unnecessary
16
- * retention of the `MatFormField` class and its component metadata.
17
- */
18
- export declare const MC_FORM_FIELD: InjectionToken<McFormField>;
19
13
  /** @docs-private */
20
14
  export declare class McFormFieldBase {
21
15
  elementRef: ElementRef;
@@ -39,22 +39,22 @@
39
39
 
40
40
  &.cdk-keyboard-focused {
41
41
  border-color: mc-css-variable(states-focused-color, map-get($theme, states, focused-color));
42
- box-shadow: 0 0 0 1px mc-css-variable(states-focused-color, map-get($theme, states, focused-color));
42
+ box-shadow: 0 0 0.1px 1px mc-css-variable(states-focused-color, map-get($theme, states, focused-color));
43
43
  }
44
44
  }
45
45
  }
46
46
 
47
47
  @mixin mc-input-typography($config) {
48
48
  .mc-input {
49
- @include mc-typography-css-variables(input, default);
49
+ @include mc-typography-css-variables($config, input, default);
50
50
  }
51
51
 
52
52
  .mc-input.mc-input_monospace,
53
53
  .mc-input.mc-input-password {
54
- @include mc-typography-css-variables(input, monospace);
54
+ @include mc-typography-css-variables($config, input, monospace);
55
55
  }
56
56
 
57
57
  .mc-input.mc-input-password::placeholder {
58
- @include mc-typography-css-variables(input, default);
58
+ @include mc-typography-css-variables($config, input, default);
59
59
  }
60
60
  }
@@ -182,10 +182,10 @@
182
182
 
183
183
  @mixin mc-link-typography($config) {
184
184
  .mc-link {
185
- @include mc-typography-css-variables(link, default);
185
+ @include mc-typography-css-variables($config, link, default);
186
186
  }
187
187
 
188
188
  .mc-link.mc-link_caption {
189
- @include mc-typography-css-variables(link, caption);
189
+ @include mc-typography-css-variables($config, link, caption);
190
190
  }
191
191
  }
@@ -41,6 +41,6 @@
41
41
  @mixin mc-list-typography($config) {
42
42
  .mc-list-item,
43
43
  .mc-list-option {
44
- @include mc-typography-css-variables(list, item);
44
+ @include mc-typography-css-variables($config, list, item);
45
45
  }
46
46
  }
@@ -23,11 +23,11 @@
23
23
 
24
24
  @mixin mc-loader-overlay-typography($config) {
25
25
  .mc-loader-overlay-text {
26
- @include mc-typography-css-variables(loader-overlay, text);
26
+ @include mc-typography-css-variables($config, loader-overlay, text);
27
27
  }
28
28
 
29
29
  .mc-loader-overlay-caption {
30
- @include mc-typography-css-variables(loader-overlay, caption);
30
+ @include mc-typography-css-variables($config, loader-overlay, caption);
31
31
  }
32
32
  }
33
33
 
@@ -98,60 +98,60 @@
98
98
  @mixin mc-markdown-typography($config) {
99
99
  .mc-markdown {
100
100
  .mc-markdown__h1 {
101
- @include mc-typography-css-variables(markdown-h1, default);
101
+ @include mc-typography-css-variables($config, markdown-h1, default);
102
102
  }
103
103
 
104
104
  .mc-markdown__h2 {
105
- @include mc-typography-css-variables(markdown-h2, default);
105
+ @include mc-typography-css-variables($config, markdown-h2, default);
106
106
  }
107
107
 
108
108
  .mc-markdown__h3 {
109
- @include mc-typography-css-variables(markdown-h3, default);
109
+ @include mc-typography-css-variables($config, markdown-h3, default);
110
110
  }
111
111
 
112
112
  .mc-markdown__h4 {
113
- @include mc-typography-css-variables(markdown-h4, default);
113
+ @include mc-typography-css-variables($config, markdown-h4, default);
114
114
  }
115
115
 
116
116
  .mc-markdown__h5 {
117
- @include mc-typography-css-variables(markdown-h5, default);
117
+ @include mc-typography-css-variables($config, markdown-h5, default);
118
118
  }
119
119
 
120
120
  .mc-markdown__h6 {
121
- @include mc-typography-css-variables(markdown-h6, default);
121
+ @include mc-typography-css-variables($config, markdown-h6, default);
122
122
  }
123
123
 
124
124
  .mc-markdown__p {
125
- @include mc-typography-css-variables(markdown-p, default);
125
+ @include mc-typography-css-variables($config, markdown-p, default);
126
126
  }
127
127
 
128
128
  .mc-markdown__ul,
129
129
  .mc-markdown__ol {
130
- @include mc-typography-css-variables(markdown-list, default);
130
+ @include mc-typography-css-variables($config, markdown-list, default);
131
131
  }
132
132
 
133
133
  .mc-markdown__blockquote > .mc-markdown__p {
134
- @include mc-typography-css-variables(markdown-blockquote, default);
134
+ @include mc-typography-css-variables($config, markdown-blockquote, default);
135
135
  }
136
136
 
137
137
  .mc-markdown__code {
138
- @include mc-typography-css-variables(markdown-code, default);
138
+ @include mc-typography-css-variables($config, markdown-code, default);
139
139
  }
140
140
 
141
141
  .mc-markdown__a {
142
- @include mc-typography-css-variables(markdown-link, default);
142
+ @include mc-typography-css-variables($config, markdown-link, default);
143
143
  }
144
144
 
145
145
  .mc-markdown__img + em {
146
- @include mc-typography-css-variables(markdown-image, caption);
146
+ @include mc-typography-css-variables($config, markdown-image, caption);
147
147
  }
148
148
 
149
149
  .mc-markdown__table > .mc-markdown__thead {
150
- @include mc-typography-css-variables(markdown-table, header);
150
+ @include mc-typography-css-variables($config, markdown-table, header);
151
151
  }
152
152
 
153
153
  .mc-markdown__table > .mc-markdown__tbody {
154
- @include mc-typography-css-variables(markdown-table, body);
154
+ @include mc-typography-css-variables($config, markdown-table, body);
155
155
  }
156
156
  }
157
157
  }
@@ -78,10 +78,10 @@
78
78
 
79
79
  @mixin mc-modal-typography($config) {
80
80
  .mc-modal-title {
81
- @include mc-typography-css-variables(modal-header, default);
81
+ @include mc-typography-css-variables($config, modal-header, default);
82
82
  }
83
83
 
84
84
  .mc-modal-body {
85
- @include mc-typography-css-variables(modal-body, default);
85
+ @include mc-typography-css-variables($config, modal-body, default);
86
86
  }
87
87
  }
@@ -101,19 +101,19 @@ button {
101
101
 
102
102
  @mixin mc-navbar-typography($config) {
103
103
  .mc-navbar-title {
104
- @include mc-typography-css-variables(navbar, title);
104
+ @include mc-typography-css-variables($config, navbar, title);
105
105
  }
106
106
 
107
107
  .mc-navbar-subtitle {
108
- @include mc-typography-level-to-styles_css-variables(typography, extra-small-text);
108
+ @include mc-typography-level-to-styles_css-variables($config, typography, extra-small-text);
109
109
  }
110
110
 
111
111
  .mc-navbar-brand {
112
112
  .mc-navbar-title {
113
- @include mc-typography-css-variables(navbar-brand, title);
113
+ @include mc-typography-css-variables($config, navbar-brand, title);
114
114
 
115
115
  &.mc-navbar-title_small {
116
- @include mc-typography-level-to-styles_css-variables(typography, subheading);
116
+ @include mc-typography-level-to-styles_css-variables($config, typography, subheading);
117
117
 
118
118
  white-space: unset;
119
119
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ptsecurity/mosaic",
3
- "version": "17.2.1",
3
+ "version": "17.3.0",
4
4
  "description": "Mosaic",
5
5
  "repository": {
6
6
  "type": "git",
@@ -19,10 +19,10 @@
19
19
  "peerDependencies": {
20
20
  "@angular/cdk": "^17.2.0",
21
21
  "@angular/forms": "^17.2.0",
22
- "@ptsecurity/cdk": "^17.2.1",
23
- "@ptsecurity/mosaic-moment-adapter": "^17.2.1",
24
- "@ptsecurity/mosaic-luxon-adapter": "^17.2.1",
25
- "@mosaic-design/date-formatter": "^2.1.5",
22
+ "@ptsecurity/cdk": "^17.3.0",
23
+ "@ptsecurity/mosaic-moment-adapter": "^17.3.0",
24
+ "@ptsecurity/mosaic-luxon-adapter": "^17.3.0",
25
+ "@mosaic-design/date-formatter": "^2.1.6",
26
26
  "@ptsecurity/mosaic-icons": "^7.0.8",
27
27
  "@mosaic-design/tokens-builder": "^3.0.0",
28
28
  "@mosaic-design/tokens-fe-2022": "^3.0.0",
@@ -57,29 +57,29 @@
57
57
  "./package.json": {
58
58
  "default": "./package.json"
59
59
  },
60
- "./card": {
61
- "types": "./card/index.d.ts",
62
- "esm2022": "./esm2022/card/ptsecurity-mosaic-card.mjs",
63
- "esm": "./esm2022/card/ptsecurity-mosaic-card.mjs",
64
- "default": "./fesm2022/ptsecurity-mosaic-card.mjs"
65
- },
66
60
  "./autocomplete": {
67
61
  "types": "./autocomplete/index.d.ts",
68
62
  "esm2022": "./esm2022/autocomplete/ptsecurity-mosaic-autocomplete.mjs",
69
63
  "esm": "./esm2022/autocomplete/ptsecurity-mosaic-autocomplete.mjs",
70
64
  "default": "./fesm2022/ptsecurity-mosaic-autocomplete.mjs"
71
65
  },
66
+ "./button": {
67
+ "types": "./button/index.d.ts",
68
+ "esm2022": "./esm2022/button/ptsecurity-mosaic-button.mjs",
69
+ "esm": "./esm2022/button/ptsecurity-mosaic-button.mjs",
70
+ "default": "./fesm2022/ptsecurity-mosaic-button.mjs"
71
+ },
72
72
  "./button-toggle": {
73
73
  "types": "./button-toggle/index.d.ts",
74
74
  "esm2022": "./esm2022/button-toggle/ptsecurity-mosaic-button-toggle.mjs",
75
75
  "esm": "./esm2022/button-toggle/ptsecurity-mosaic-button-toggle.mjs",
76
76
  "default": "./fesm2022/ptsecurity-mosaic-button-toggle.mjs"
77
77
  },
78
- "./button": {
79
- "types": "./button/index.d.ts",
80
- "esm2022": "./esm2022/button/ptsecurity-mosaic-button.mjs",
81
- "esm": "./esm2022/button/ptsecurity-mosaic-button.mjs",
82
- "default": "./fesm2022/ptsecurity-mosaic-button.mjs"
78
+ "./card": {
79
+ "types": "./card/index.d.ts",
80
+ "esm2022": "./esm2022/card/ptsecurity-mosaic-card.mjs",
81
+ "esm": "./esm2022/card/ptsecurity-mosaic-card.mjs",
82
+ "default": "./fesm2022/ptsecurity-mosaic-card.mjs"
83
83
  },
84
84
  "./checkbox": {
85
85
  "types": "./checkbox/index.d.ts",
@@ -96,14 +96,14 @@
96
96
 
97
97
  @mixin mc-popover-typography($config) {
98
98
  .mc-popover__header {
99
- @include mc-typography-css-variables(popover-header, default);
99
+ @include mc-typography-css-variables($config, popover-header, default);
100
100
  }
101
101
 
102
102
  .mc-popover__content {
103
- @include mc-typography-css-variables(popover, default);
103
+ @include mc-typography-css-variables($config, popover, default);
104
104
  }
105
105
 
106
106
  .mc-popover__footer {
107
- @include mc-typography-css-variables(popover-footer, default);
107
+ @include mc-typography-css-variables($config, popover-footer, default);
108
108
  }
109
109
  }