@ptsecurity/mosaic 15.5.0 → 15.7.2

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 (188) hide show
  1. package/_theming.scss +29 -6
  2. package/_visual.scss +6 -4
  3. package/autocomplete/autocomplete-trigger.directive.d.ts +5 -15
  4. package/button/_button-theme.scss +2 -5
  5. package/button-toggle/_button-toggle-theme.scss +2 -5
  6. package/checkbox/_checkbox-theme.scss +6 -5
  7. package/code-block/_code-block-theme.scss +2 -6
  8. package/core/formatters/index.d.ts +1 -1
  9. package/core/formatters/number/formatter.d.ts +25 -0
  10. package/core/forms/_forms-theme.scss +2 -4
  11. package/core/locales/en-US.d.ts +1 -2
  12. package/core/locales/es-LA.d.ts +9 -0
  13. package/core/locales/fa-IR.d.ts +9 -0
  14. package/core/locales/locale-service.d.ts +39 -5
  15. package/core/locales/pt-BR.d.ts +9 -0
  16. package/core/locales/ru-RU.d.ts +1 -2
  17. package/core/locales/zh-CN.d.ts +9 -0
  18. package/core/option/_optgroup-theme.scss +2 -4
  19. package/core/option/_option-theme.scss +2 -5
  20. package/core/option/option.d.ts +36 -7
  21. package/core/overlay/overlay-position-map.d.ts +7 -1
  22. package/core/styles/_variables.scss +1 -0
  23. package/core/styles/theming/_badges.scss +2 -1
  24. package/core/styles/theming/_theming.scss +1 -0
  25. package/datepicker/_datepicker-theme.scss +2 -5
  26. package/datepicker/calendar-header.component.d.ts +8 -2
  27. package/datepicker/calendar.component.d.ts +3 -4
  28. package/datepicker/month-view.component.d.ts +3 -4
  29. package/dl/_dl-theme.scss +2 -5
  30. package/dropdown/_dropdown-theme.scss +2 -5
  31. package/esm2020/autocomplete/autocomplete-trigger.directive.mjs +27 -24
  32. package/esm2020/core/formatters/index.mjs +6 -2
  33. package/esm2020/core/formatters/number/formatter.mjs +90 -1
  34. package/esm2020/core/locales/en-US.mjs +3 -4
  35. package/esm2020/core/locales/es-LA.mjs +11 -2
  36. package/esm2020/core/locales/fa-IR.mjs +11 -2
  37. package/esm2020/core/locales/locale-service.mjs +4 -4
  38. package/esm2020/core/locales/pt-BR.mjs +11 -2
  39. package/esm2020/core/locales/ru-RU.mjs +3 -4
  40. package/esm2020/core/locales/zh-CN.mjs +11 -2
  41. package/esm2020/core/option/optgroup.mjs +2 -2
  42. package/esm2020/core/option/option.mjs +44 -8
  43. package/esm2020/core/overlay/overlay-position-map.mjs +7 -1
  44. package/esm2020/core/version.mjs +2 -2
  45. package/esm2020/datepicker/calendar-header.component.mjs +8 -7
  46. package/esm2020/datepicker/calendar.component.mjs +5 -14
  47. package/esm2020/datepicker/datepicker-input.directive.mjs +7 -6
  48. package/esm2020/datepicker/month-view.component.mjs +6 -15
  49. package/esm2020/file-upload/multiple-file-upload.component.mjs +9 -5
  50. package/esm2020/file-upload/single-file-upload.component.mjs +10 -6
  51. package/esm2020/form-field/form-field.mjs +5 -8
  52. package/esm2020/form-field/password-hint.mjs +13 -5
  53. package/esm2020/list/list-selection.component.mjs +2 -2
  54. package/esm2020/list/list.component.mjs +2 -2
  55. package/esm2020/loader-overlay/loader-overlay.component.mjs +2 -2
  56. package/esm2020/modal/modal.component.mjs +6 -5
  57. package/esm2020/modal/modal.module.mjs +8 -4
  58. package/esm2020/navbar/navbar-item.component.mjs +14 -13
  59. package/esm2020/navbar/navbar.component.mjs +18 -9
  60. package/esm2020/navbar/vertical-navbar.component.mjs +9 -6
  61. package/esm2020/radio/radio.component.mjs +3 -2
  62. package/esm2020/select/select.component.mjs +23 -9
  63. package/esm2020/tabs/tab.component.mjs +13 -4
  64. package/esm2020/tags/tag-default-options.mjs +1 -1
  65. package/esm2020/tags/tag-input.mjs +10 -8
  66. package/esm2020/tags/tag-list.component.mjs +10 -6
  67. package/esm2020/tags/tag.component.mjs +5 -5
  68. package/esm2020/timezone/timezone-option.component.mjs +2 -2
  69. package/esm2020/timezone/timezone-select.component.mjs +2 -2
  70. package/esm2020/title/title.directive.mjs +2 -2
  71. package/esm2020/toast/toast.module.mjs +10 -4
  72. package/esm2020/tree/tree-option.component.mjs +7 -3
  73. package/esm2020/tree/tree-selection.component.mjs +6 -5
  74. package/esm2020/tree-select/tree-select.component.mjs +5 -5
  75. package/fesm2015/ptsecurity-mosaic-autocomplete.mjs +30 -24
  76. package/fesm2015/ptsecurity-mosaic-autocomplete.mjs.map +1 -1
  77. package/fesm2015/ptsecurity-mosaic-core.mjs +192 -25
  78. package/fesm2015/ptsecurity-mosaic-core.mjs.map +1 -1
  79. package/fesm2015/ptsecurity-mosaic-datepicker.mjs +20 -36
  80. package/fesm2015/ptsecurity-mosaic-datepicker.mjs.map +1 -1
  81. package/fesm2015/ptsecurity-mosaic-file-upload.mjs +15 -7
  82. package/fesm2015/ptsecurity-mosaic-file-upload.mjs.map +1 -1
  83. package/fesm2015/ptsecurity-mosaic-form-field.mjs +15 -11
  84. package/fesm2015/ptsecurity-mosaic-form-field.mjs.map +1 -1
  85. package/fesm2015/ptsecurity-mosaic-list.mjs +4 -4
  86. package/fesm2015/ptsecurity-mosaic-loader-overlay.mjs +2 -2
  87. package/fesm2015/ptsecurity-mosaic-loader-overlay.mjs.map +1 -1
  88. package/fesm2015/ptsecurity-mosaic-modal.mjs +10 -5
  89. package/fesm2015/ptsecurity-mosaic-modal.mjs.map +1 -1
  90. package/fesm2015/ptsecurity-mosaic-navbar.mjs +36 -27
  91. package/fesm2015/ptsecurity-mosaic-navbar.mjs.map +1 -1
  92. package/fesm2015/ptsecurity-mosaic-radio.mjs +2 -1
  93. package/fesm2015/ptsecurity-mosaic-radio.mjs.map +1 -1
  94. package/fesm2015/ptsecurity-mosaic-select.mjs +23 -8
  95. package/fesm2015/ptsecurity-mosaic-select.mjs.map +1 -1
  96. package/fesm2015/ptsecurity-mosaic-tabs.mjs +12 -3
  97. package/fesm2015/ptsecurity-mosaic-tabs.mjs.map +1 -1
  98. package/fesm2015/ptsecurity-mosaic-tags.mjs +22 -16
  99. package/fesm2015/ptsecurity-mosaic-tags.mjs.map +1 -1
  100. package/fesm2015/ptsecurity-mosaic-timezone.mjs +4 -4
  101. package/fesm2015/ptsecurity-mosaic-timezone.mjs.map +1 -1
  102. package/fesm2015/ptsecurity-mosaic-title.mjs +1 -1
  103. package/fesm2015/ptsecurity-mosaic-title.mjs.map +1 -1
  104. package/fesm2015/ptsecurity-mosaic-toast.mjs +8 -2
  105. package/fesm2015/ptsecurity-mosaic-toast.mjs.map +1 -1
  106. package/fesm2015/ptsecurity-mosaic-tree-select.mjs +4 -4
  107. package/fesm2015/ptsecurity-mosaic-tree-select.mjs.map +1 -1
  108. package/fesm2015/ptsecurity-mosaic-tree.mjs +12 -6
  109. package/fesm2015/ptsecurity-mosaic-tree.mjs.map +1 -1
  110. package/fesm2020/ptsecurity-mosaic-autocomplete.mjs +27 -24
  111. package/fesm2020/ptsecurity-mosaic-autocomplete.mjs.map +1 -1
  112. package/fesm2020/ptsecurity-mosaic-core.mjs +192 -24
  113. package/fesm2020/ptsecurity-mosaic-core.mjs.map +1 -1
  114. package/fesm2020/ptsecurity-mosaic-datepicker.mjs +20 -36
  115. package/fesm2020/ptsecurity-mosaic-datepicker.mjs.map +1 -1
  116. package/fesm2020/ptsecurity-mosaic-file-upload.mjs +15 -7
  117. package/fesm2020/ptsecurity-mosaic-file-upload.mjs.map +1 -1
  118. package/fesm2020/ptsecurity-mosaic-form-field.mjs +15 -10
  119. package/fesm2020/ptsecurity-mosaic-form-field.mjs.map +1 -1
  120. package/fesm2020/ptsecurity-mosaic-list.mjs +4 -4
  121. package/fesm2020/ptsecurity-mosaic-loader-overlay.mjs +2 -2
  122. package/fesm2020/ptsecurity-mosaic-loader-overlay.mjs.map +1 -1
  123. package/fesm2020/ptsecurity-mosaic-modal.mjs +10 -5
  124. package/fesm2020/ptsecurity-mosaic-modal.mjs.map +1 -1
  125. package/fesm2020/ptsecurity-mosaic-navbar.mjs +36 -27
  126. package/fesm2020/ptsecurity-mosaic-navbar.mjs.map +1 -1
  127. package/fesm2020/ptsecurity-mosaic-radio.mjs +2 -1
  128. package/fesm2020/ptsecurity-mosaic-radio.mjs.map +1 -1
  129. package/fesm2020/ptsecurity-mosaic-select.mjs +22 -8
  130. package/fesm2020/ptsecurity-mosaic-select.mjs.map +1 -1
  131. package/fesm2020/ptsecurity-mosaic-tabs.mjs +12 -3
  132. package/fesm2020/ptsecurity-mosaic-tabs.mjs.map +1 -1
  133. package/fesm2020/ptsecurity-mosaic-tags.mjs +22 -16
  134. package/fesm2020/ptsecurity-mosaic-tags.mjs.map +1 -1
  135. package/fesm2020/ptsecurity-mosaic-timezone.mjs +4 -4
  136. package/fesm2020/ptsecurity-mosaic-timezone.mjs.map +1 -1
  137. package/fesm2020/ptsecurity-mosaic-title.mjs +1 -1
  138. package/fesm2020/ptsecurity-mosaic-title.mjs.map +1 -1
  139. package/fesm2020/ptsecurity-mosaic-toast.mjs +8 -2
  140. package/fesm2020/ptsecurity-mosaic-toast.mjs.map +1 -1
  141. package/fesm2020/ptsecurity-mosaic-tree-select.mjs +4 -4
  142. package/fesm2020/ptsecurity-mosaic-tree-select.mjs.map +1 -1
  143. package/fesm2020/ptsecurity-mosaic-tree.mjs +11 -6
  144. package/fesm2020/ptsecurity-mosaic-tree.mjs.map +1 -1
  145. package/file-upload/_file-upload-theme.scss +2 -4
  146. package/file-upload/multiple-file-upload.component.d.ts +4 -3
  147. package/file-upload/single-file-upload.component.d.ts +4 -3
  148. package/form-field/_form-field-theme.scss +7 -5
  149. package/form-field/form-field.d.ts +0 -1
  150. package/form-field/form-field.scss +1 -3
  151. package/form-field/password-hint.d.ts +6 -3
  152. package/input/_input-theme.scss +7 -6
  153. package/link/_link-theme.scss +7 -8
  154. package/list/_list-theme.scss +2 -5
  155. package/loader-overlay/_loader-overlay-theme.scss +2 -5
  156. package/loader-overlay/loader-overlay.scss +3 -0
  157. package/markdown/_markdown-theme.scss +3 -6
  158. package/modal/_modal-theme.scss +3 -5
  159. package/modal/modal.module.d.ts +2 -1
  160. package/modal/modal.scss +14 -2
  161. package/navbar/_navbar-theme.scss +2 -6
  162. package/navbar/navbar-item.component.d.ts +3 -2
  163. package/navbar/navbar.component.d.ts +5 -2
  164. package/navbar/vertical-navbar.component.d.ts +4 -2
  165. package/package.json +11 -14
  166. package/popover/_popover-theme.scss +2 -6
  167. package/prebuilt-themes/dark-theme.css +1 -1
  168. package/prebuilt-themes/default-theme.css +1 -1
  169. package/radio/_radio-theme.scss +6 -6
  170. package/select/_select-theme.scss +2 -5
  171. package/select/select.component.d.ts +12 -9
  172. package/select/select.scss +3 -1
  173. package/sidepanel/_sidepanel-theme.scss +2 -5
  174. package/table/_table-theme.scss +2 -5
  175. package/tabs/_tabs-theme.scss +2 -5
  176. package/tags/_tag-theme.scss +2 -5
  177. package/tags/tag-default-options.d.ts +4 -0
  178. package/tags/tag-list.component.d.ts +1 -0
  179. package/tags/tag-list.scss +6 -2
  180. package/tags/tag.component.d.ts +1 -1
  181. package/textarea/_textarea-theme.scss +2 -5
  182. package/timezone/_timezone-option-theme.scss +2 -5
  183. package/toast/_toast-theme.scss +2 -5
  184. package/toggle/_toggle-theme.scss +2 -5
  185. package/tooltip/_tooltip-theme.scss +2 -5
  186. package/tree/_tree-theme.scss +2 -4
  187. package/tree/tree-option.scss +4 -2
  188. package/tree-select/_tree-select-theme.scss +2 -5
package/_theming.scss CHANGED
@@ -139,6 +139,7 @@ $light-color-scheme-foreground-text: #19252f;
139
139
  $light-color-scheme-foreground-text-less-contrast: #6d7a86;
140
140
  $light-color-scheme-foreground-text-disabled: #8c99a5;
141
141
  $light-color-scheme-foreground-text-error: #db3c55;
142
+ $light-color-scheme-foreground-text-warning: #a26e0c;
142
143
  $light-color-scheme-foreground-text-success: #016b37;
143
144
  $light-color-scheme-foreground-divider: #d7dee4;
144
145
  $light-color-scheme-foreground-border: #bdc7d1;
@@ -165,6 +166,7 @@ $dark-color-scheme-foreground-text: #d7dee4;
165
166
  $dark-color-scheme-foreground-text-less-contrast: #8c99a5;
166
167
  $dark-color-scheme-foreground-text-disabled: #6d7a86;
167
168
  $dark-color-scheme-foreground-text-error: #ee6f79;
169
+ $dark-color-scheme-foreground-text-warning: #e19f12;
168
170
  $dark-color-scheme-foreground-text-success: #4ba96c;
169
171
  $dark-color-scheme-foreground-divider: mix(#515e69, transparent, 50%);
170
172
  $dark-color-scheme-foreground-border: #515e69;
@@ -1311,7 +1313,7 @@ $list-light-color-scheme-footer-background: white;
1311
1313
  $list-light-color-scheme-footer-divider: #d7dee4;
1312
1314
  $list-dark-color-scheme-footer-background: #19252f;
1313
1315
  $list-dark-color-scheme-footer-divider: mix(#515e69, transparent, 50%);
1314
- $list-size-horizontal-padding: 12px;
1316
+ $list-size-horizontal-padding: 10px;
1315
1317
  $list-size-icon-right-margin: 8px;
1316
1318
  $list-size-item-height: 32px;
1317
1319
  $list-size-footer-min-height: 48px;
@@ -1514,9 +1516,9 @@ $navbar-item-size-height-vertical: 56px;
1514
1516
  $navbar-brand-size-padding: 12px;
1515
1517
  $navbar-brand-size-margin-right: 24px;
1516
1518
  $navbar-brand-font-title: title;
1517
- $optgroup-size-padding-left: 17px;
1519
+ $optgroup-size-padding-left: 12px;
1518
1520
  $optgroup-font-default: subheading;
1519
- $option-size-horizontal-padding: 12px;
1521
+ $option-size-horizontal-padding: 10px;
1520
1522
  $option-size-height: 32px;
1521
1523
  $option-size-border-width: 2px;
1522
1524
  $option-font-default: body;
@@ -1761,7 +1763,7 @@ $timezone-option-light-color-scheme-text: #19252f;
1761
1763
  $timezone-option-light-color-scheme-caption: #6d7a86;
1762
1764
  $timezone-option-dark-color-scheme-text: #d7dee4;
1763
1765
  $timezone-option-dark-color-scheme-caption: #8c99a5;
1764
- $timezone-option-size-padding: 6px 8px 6px 14px;
1766
+ $timezone-option-size-padding: 6px 10px;
1765
1767
  $timezone-option-size-column-gap: 16px;
1766
1768
  $timezone-option-size-height: auto;
1767
1769
  $timezone-option-size-max-height: 4em;
@@ -6020,6 +6022,7 @@ $light-warning: mc-palette($light-color-scheme-warning-palette, $light-color-sch
6020
6022
  text-disabled: $light-color-scheme-foreground-text-disabled,
6021
6023
  text-error: $light-color-scheme-foreground-text-error,
6022
6024
  text-success: $light-color-scheme-foreground-text-success,
6025
+ text-warning: $light-color-scheme-foreground-text-warning,
6023
6026
 
6024
6027
  divider: $light-color-scheme-foreground-divider,
6025
6028
  border: $light-color-scheme-foreground-border,
@@ -6097,6 +6100,7 @@ $dark-warning: mc-palette($dark-color-scheme-warning-palette, $dark-color-scheme
6097
6100
  text-disabled: $dark-color-scheme-foreground-text-disabled,
6098
6101
  text-error: $dark-color-scheme-foreground-text-error,
6099
6102
  text-success: $dark-color-scheme-foreground-text-success,
6103
+ text-warning: $dark-color-scheme-foreground-text-warning,
6100
6104
 
6101
6105
  divider: $dark-color-scheme-foreground-divider,
6102
6106
  border: $dark-color-scheme-foreground-border,
@@ -6140,6 +6144,8 @@ $dark-warning: mc-palette($dark-color-scheme-warning-palette, $dark-color-scheme
6140
6144
  text-disabled: map-get($tokens, '#{$scheme}-foreground-text-disabled'),
6141
6145
  text-error: map-get($tokens, '#{$scheme}-foreground-text-error'),
6142
6146
  text-success: map-get($tokens, '#{$scheme}-foreground-text-success'),
6147
+ text-warning: map-get($tokens, '#{$scheme}-foreground-text-warning'),
6148
+
6143
6149
 
6144
6150
  divider: map-get($tokens, '#{$scheme}-foreground-divider'),
6145
6151
  border: map-get($tokens, '#{$scheme}-foreground-border'),
@@ -7155,6 +7161,7 @@ $dark-warning: mc-palette($dark-color-scheme-warning-palette, $dark-color-scheme
7155
7161
  > .mc-icon-button {
7156
7162
  color: map-get($button-toggle, color);
7157
7163
  border-color: map-get($button-toggle-group, border);
7164
+ background: inherit;
7158
7165
 
7159
7166
  & .mc-icon {
7160
7167
  color: map-get($button-toggle, icon);
@@ -7334,6 +7341,10 @@ $dark-warning: mc-palette($dark-color-scheme-warning-palette, $dark-color-scheme
7334
7341
  }
7335
7342
  }
7336
7343
 
7344
+ & .mc-hint {
7345
+ color: map-get($foreground, text-less-contrast);
7346
+ }
7347
+
7337
7348
  &.mc-primary {
7338
7349
  @include mc-checkbox-color(map-get($checkbox, default));
7339
7350
 
@@ -7992,6 +8003,10 @@ $mc-datepicker-today-fade-amount: 0.2;
7992
8003
  color: map-get($hint, text-color);
7993
8004
  }
7994
8005
 
8006
+ &.mc-warning {
8007
+ color: map-get($foreground, text-warning);
8008
+ }
8009
+
7995
8010
  &.mc-error {
7996
8011
  color: map-get($foreground, text-error);
7997
8012
  }
@@ -8029,7 +8044,7 @@ $mc-datepicker-today-fade-amount: 0.2;
8029
8044
  @include mc-typography-level-to-styles($config, $form-field-font-default);
8030
8045
  }
8031
8046
 
8032
- .mc-form-field__hint {
8047
+ .mc-form-field__hint, .mc-password-hint {
8033
8048
  @include mc-typography-level-to-styles($config, $form-field-hint-font-default);
8034
8049
  }
8035
8050
 
@@ -8238,9 +8253,13 @@ $mc-datepicker-today-fade-amount: 0.2;
8238
8253
  }
8239
8254
 
8240
8255
  .mc-input.mc-input_monospace,
8241
- .mc-input.mc-input-password[type="password"] {
8256
+ .mc-input.mc-input-password {
8242
8257
  @include mc-typography-level-to-styles($config, $input-font-monospace);
8243
8258
  }
8259
+
8260
+ .mc-input.mc-input-password::placeholder {
8261
+ @include mc-typography-level-to-styles($config, $input-font-default);
8262
+ }
8244
8263
  }
8245
8264
 
8246
8265
 
@@ -9022,6 +9041,10 @@ button {
9022
9041
  }
9023
9042
 
9024
9043
  .mc-radio-button {
9044
+ & .mc-hint {
9045
+ color: map-get($foreground, text-less-contrast);
9046
+ }
9047
+
9025
9048
  & .mc-radio-button__outer-circle {
9026
9049
  border-color: map-get($radio, outer-circle_border);
9027
9050
  background: map-get($background, background);
package/_visual.scss CHANGED
@@ -93,6 +93,7 @@ $light-color-scheme-foreground-text: #19252f;
93
93
  $light-color-scheme-foreground-text-less-contrast: #6d7a86;
94
94
  $light-color-scheme-foreground-text-disabled: #8c99a5;
95
95
  $light-color-scheme-foreground-text-error: #db3c55;
96
+ $light-color-scheme-foreground-text-warning: #a26e0c;
96
97
  $light-color-scheme-foreground-text-success: #016b37;
97
98
  $light-color-scheme-foreground-divider: #d7dee4;
98
99
  $light-color-scheme-foreground-border: #bdc7d1;
@@ -119,6 +120,7 @@ $dark-color-scheme-foreground-text: #d7dee4;
119
120
  $dark-color-scheme-foreground-text-less-contrast: #8c99a5;
120
121
  $dark-color-scheme-foreground-text-disabled: #6d7a86;
121
122
  $dark-color-scheme-foreground-text-error: #ee6f79;
123
+ $dark-color-scheme-foreground-text-warning: #e19f12;
122
124
  $dark-color-scheme-foreground-text-success: #4ba96c;
123
125
  $dark-color-scheme-foreground-divider: mix(#515e69, transparent, 50%);
124
126
  $dark-color-scheme-foreground-border: #515e69;
@@ -1265,7 +1267,7 @@ $list-light-color-scheme-footer-background: white;
1265
1267
  $list-light-color-scheme-footer-divider: #d7dee4;
1266
1268
  $list-dark-color-scheme-footer-background: #19252f;
1267
1269
  $list-dark-color-scheme-footer-divider: mix(#515e69, transparent, 50%);
1268
- $list-size-horizontal-padding: 12px;
1270
+ $list-size-horizontal-padding: 10px;
1269
1271
  $list-size-icon-right-margin: 8px;
1270
1272
  $list-size-item-height: 32px;
1271
1273
  $list-size-footer-min-height: 48px;
@@ -1468,9 +1470,9 @@ $navbar-item-size-height-vertical: 56px;
1468
1470
  $navbar-brand-size-padding: 12px;
1469
1471
  $navbar-brand-size-margin-right: 24px;
1470
1472
  $navbar-brand-font-title: title;
1471
- $optgroup-size-padding-left: 17px;
1473
+ $optgroup-size-padding-left: 12px;
1472
1474
  $optgroup-font-default: subheading;
1473
- $option-size-horizontal-padding: 12px;
1475
+ $option-size-horizontal-padding: 10px;
1474
1476
  $option-size-height: 32px;
1475
1477
  $option-size-border-width: 2px;
1476
1478
  $option-font-default: body;
@@ -1715,7 +1717,7 @@ $timezone-option-light-color-scheme-text: #19252f;
1715
1717
  $timezone-option-light-color-scheme-caption: #6d7a86;
1716
1718
  $timezone-option-dark-color-scheme-text: #d7dee4;
1717
1719
  $timezone-option-dark-color-scheme-caption: #8c99a5;
1718
- $timezone-option-size-padding: 6px 8px 6px 14px;
1720
+ $timezone-option-size-padding: 6px 10px;
1719
1721
  $timezone-option-size-column-gap: 16px;
1720
1722
  $timezone-option-size-height: auto;
1721
1723
  $timezone-option-size-max-height: 4em;
@@ -1,9 +1,9 @@
1
1
  import { Directionality } from '@angular/cdk/bidi';
2
2
  import { Overlay, ScrollStrategy } from '@angular/cdk/overlay';
3
3
  import { ViewportRuler } from '@angular/cdk/scrolling';
4
- import { ChangeDetectorRef, ElementRef, InjectionToken, NgZone, OnDestroy, ViewContainerRef } from '@angular/core';
4
+ import { AfterViewInit, ChangeDetectorRef, ElementRef, InjectionToken, NgZone, OnDestroy, ViewContainerRef } from '@angular/core';
5
5
  import { ControlValueAccessor } from '@angular/forms';
6
- import { McOption, McOptionSelectionChange } from '@ptsecurity/mosaic/core';
6
+ import { KeyboardNavigationHandler, McOption, McOptionSelectionChange } from '@ptsecurity/mosaic/core';
7
7
  import { McFormField } from '@ptsecurity/mosaic/form-field';
8
8
  import { Observable } from 'rxjs';
9
9
  import { McAutocompleteOrigin } from './autocomplete-origin.directive';
@@ -14,8 +14,6 @@ import * as i0 from "@angular/core";
14
14
  * to properly calculate the scrollTop of the panel. Because we are not
15
15
  * actually focusing the active item, scroll must be handled manually.
16
16
  */
17
- /** The height of each autocomplete option. */
18
- export declare const AUTOCOMPLETE_OPTION_HEIGHT = 32;
19
17
  /** The total height of the autocomplete panel. */
20
18
  export declare const AUTOCOMPLETE_PANEL_HEIGHT = 256;
21
19
  export declare const AUTOCOMPLETE_BORDER_WIDTH: number;
@@ -37,7 +35,7 @@ export declare const MAT_AUTOCOMPLETE_VALUE_ACCESSOR: any;
37
35
  * @docs-private
38
36
  */
39
37
  export declare function getMcAutocompleteMissingPanelError(): Error;
40
- export declare class McAutocompleteTrigger implements ControlValueAccessor, OnDestroy {
38
+ export declare class McAutocompleteTrigger implements AfterViewInit, ControlValueAccessor, OnDestroy, KeyboardNavigationHandler {
41
39
  private elementRef;
42
40
  private viewContainerRef;
43
41
  private changeDetectorRef;
@@ -92,6 +90,7 @@ export declare class McAutocompleteTrigger implements ControlValueAccessor, OnDe
92
90
  /** Stream of keyboard events that can close the panel. */
93
91
  private readonly closeKeyEventStream;
94
92
  constructor(elementRef: ElementRef<HTMLInputElement>, viewContainerRef: ViewContainerRef, changeDetectorRef: ChangeDetectorRef, overlay: Overlay, zone: NgZone, scrollStrategy: any, dir: Directionality, formField: McFormField, document: any, viewportRuler?: ViewportRuler | undefined);
93
+ ngAfterViewInit(): void;
95
94
  ngOnDestroy(): void;
96
95
  /** `View -> model callback called when value changes` */
97
96
  onChange: (value: any) => void;
@@ -118,6 +117,7 @@ export declare class McAutocompleteTrigger implements ControlValueAccessor, OnDe
118
117
  handleInput(event: KeyboardEvent): void;
119
118
  handleFocus(): void;
120
119
  handleClick($event: MouseEvent): void;
120
+ scrollActiveOptionIntoView(): void;
121
121
  /** Stream of clicks outside of the autocomplete panel. */
122
122
  private getOutsideClickStream;
123
123
  /**
@@ -125,16 +125,6 @@ export declare class McAutocompleteTrigger implements ControlValueAccessor, OnDe
125
125
  * arrow function in order to preserve the context.
126
126
  */
127
127
  private windowBlurHandler;
128
- /**
129
- * Given that we are not actually focusing active options, we must manually adjust scroll
130
- * to reveal options below the fold. First, we find the offset of the option from the top
131
- * of the panel. If that offset is below the fold, the new scrollTop will be the offset -
132
- * the panel height + the option height, so the active option will be just visible at the
133
- * bottom of the panel. If that offset is above the top of the visible panel, the new scrollTop
134
- * will become the offset. If that offset is visible within the panel already, the scrollTop is
135
- * not adjusted.
136
- */
137
- private scrollToOption;
138
128
  /**
139
129
  * This method listens to a stream of panel closing actions and resets the
140
130
  * stream every time the option list changes.
@@ -3,11 +3,6 @@
3
3
 
4
4
  @use '../core/styles/typography/typography-utils' as *;
5
5
 
6
- @use '../core/styles/tokens';
7
-
8
-
9
- $tokens: meta.module-variables(tokens) !default;
10
-
11
6
  @mixin mc-button-color($params) {
12
7
  color: map.get($params, color);
13
8
  border-color: map.get($params, border);
@@ -132,6 +127,8 @@ $tokens: meta.module-variables(tokens) !default;
132
127
  }
133
128
 
134
129
  @mixin mc-button-typography($config) {
130
+ $tokens: map.get($config, tokens);
131
+
135
132
  .mc-button,
136
133
  .mc-icon-button {
137
134
  @include mc-typography-level-to-styles($config, map.get($tokens, button-font-default));
@@ -3,11 +3,6 @@
3
3
 
4
4
  @use '../core/styles/typography/typography-utils' as *;
5
5
 
6
- @use '../core/styles/tokens';
7
-
8
-
9
- $tokens: meta.module-variables(tokens) !default;
10
-
11
6
  @mixin mc-button-toggle-color($state) {
12
7
  & .mc-button-overlay {
13
8
  background: map.get($state, background);
@@ -80,6 +75,8 @@ $tokens: meta.module-variables(tokens) !default;
80
75
  }
81
76
 
82
77
  @mixin mc-button-toggle-typography($config) {
78
+ $tokens: map.get($config, tokens);
79
+
83
80
  .mc-button-toggle {
84
81
  @include mc-typography-level-to-styles($config, map.get($tokens, button-toggle-font-default));
85
82
 
@@ -3,11 +3,6 @@
3
3
 
4
4
  @use '../core/styles/typography/typography-utils' as *;
5
5
 
6
- @use '../core/styles/tokens';
7
-
8
-
9
- $tokens: meta.module-variables(tokens) !default;
10
-
11
6
  /* stylelint-disable no-descending-specificity */
12
7
  @mixin mc-checkbox-color($states) {
13
8
  & .mc-checkbox-frame {
@@ -67,6 +62,10 @@ $tokens: meta.module-variables(tokens) !default;
67
62
  }
68
63
  }
69
64
 
65
+ & .mc-hint {
66
+ color: map-get($foreground, text-less-contrast);
67
+ }
68
+
70
69
  &.mc-primary {
71
70
  @include mc-checkbox-color(map.get($checkbox, default));
72
71
 
@@ -99,6 +98,8 @@ $tokens: meta.module-variables(tokens) !default;
99
98
  }
100
99
 
101
100
  @mixin mc-checkbox-typography($config) {
101
+ $tokens: map.get($config, tokens);
102
+
102
103
  .mc-checkbox {
103
104
  @include mc-typography-level-to-styles($config, map.get($tokens, checkbox-font-default));
104
105
  }
@@ -4,12 +4,6 @@
4
4
 
5
5
  @use '../core/styles/typography/typography-utils' as *;
6
6
 
7
- @use '../core/styles/tokens';
8
-
9
-
10
- $tokens: meta.module-variables(tokens) !default;
11
-
12
-
13
7
  @mixin mc-code-block-theme($theme) {
14
8
  $code-block: map.get(map.get($theme, components), code-block);
15
9
 
@@ -319,6 +313,8 @@ $tokens: meta.module-variables(tokens) !default;
319
313
  }
320
314
 
321
315
  @mixin mc-code-block-typography($config) {
316
+ $tokens: map.get($config, tokens);
317
+
322
318
  .mc-code-block {
323
319
  @include mc-typography-level-to-styles($config, map.get($tokens, code-block-font-default));
324
320
 
@@ -3,7 +3,7 @@ import * as i1 from "./number/formatter";
3
3
  import * as i2 from "./date/formatter.pipe";
4
4
  export declare class McFormattersModule {
5
5
  static ɵfac: i0.ɵɵFactoryDeclaration<McFormattersModule, never>;
6
- static ɵmod: i0.ɵɵNgModuleDeclaration<McFormattersModule, [typeof i1.McDecimalPipe, typeof i2.AbsoluteDateFormatterPipe, typeof i2.AbsoluteDateTimeFormatterPipe, typeof i2.AbsoluteDateShortFormatterPipe, typeof i2.AbsoluteShortDateTimeFormatterPipe, typeof i2.RelativeDateFormatterPipe, typeof i2.RelativeDateTimeFormatterPipe, typeof i2.RelativeShortDateFormatterPipe, typeof i2.RelativeShortDateTimeFormatterPipe, typeof i2.RangeDateFormatterPipe, typeof i2.RangeShortDateFormatterPipe, typeof i2.RangeDateTimeFormatterPipe, typeof i2.RangeShortDateTimeFormatterPipe, typeof i2.RangeMiddleDateTimeFormatterPipe], never, [typeof i1.McDecimalPipe, typeof i2.AbsoluteDateFormatterPipe, typeof i2.AbsoluteDateTimeFormatterPipe, typeof i2.AbsoluteDateShortFormatterPipe, typeof i2.AbsoluteShortDateTimeFormatterPipe, typeof i2.RelativeDateFormatterPipe, typeof i2.RelativeDateTimeFormatterPipe, typeof i2.RelativeShortDateFormatterPipe, typeof i2.RelativeShortDateTimeFormatterPipe, typeof i2.RangeDateFormatterPipe, typeof i2.RangeShortDateFormatterPipe, typeof i2.RangeDateTimeFormatterPipe, typeof i2.RangeShortDateTimeFormatterPipe, typeof i2.RangeMiddleDateTimeFormatterPipe]>;
6
+ static ɵmod: i0.ɵɵNgModuleDeclaration<McFormattersModule, [typeof i1.McDecimalPipe, typeof i1.McTableNumberPipe, typeof i2.AbsoluteDateFormatterPipe, typeof i2.AbsoluteDateTimeFormatterPipe, typeof i2.AbsoluteDateShortFormatterPipe, typeof i2.AbsoluteShortDateTimeFormatterPipe, typeof i2.RelativeDateFormatterPipe, typeof i2.RelativeDateTimeFormatterPipe, typeof i2.RelativeShortDateFormatterPipe, typeof i2.RelativeShortDateTimeFormatterPipe, typeof i2.RangeDateFormatterPipe, typeof i2.RangeShortDateFormatterPipe, typeof i2.RangeDateTimeFormatterPipe, typeof i2.RangeShortDateTimeFormatterPipe, typeof i2.RangeMiddleDateTimeFormatterPipe], never, [typeof i1.McDecimalPipe, typeof i1.McTableNumberPipe, typeof i2.AbsoluteDateFormatterPipe, typeof i2.AbsoluteDateTimeFormatterPipe, typeof i2.AbsoluteDateShortFormatterPipe, typeof i2.AbsoluteShortDateTimeFormatterPipe, typeof i2.RelativeDateFormatterPipe, typeof i2.RelativeDateTimeFormatterPipe, typeof i2.RelativeShortDateFormatterPipe, typeof i2.RelativeShortDateTimeFormatterPipe, typeof i2.RangeDateFormatterPipe, typeof i2.RangeShortDateFormatterPipe, typeof i2.RangeDateTimeFormatterPipe, typeof i2.RangeShortDateTimeFormatterPipe, typeof i2.RangeMiddleDateTimeFormatterPipe]>;
7
7
  static ɵinj: i0.ɵɵInjectorDeclaration<McFormattersModule>;
8
8
  }
9
9
  export * from './number/formatter';
@@ -30,8 +30,33 @@ export declare class McDecimalPipe implements PipeTransform {
30
30
  * When not supplied, uses the value of `MC_LOCALE_ID`, which is `ru` by default.
31
31
  */
32
32
  transform(value: any, digitsInfo?: string, locale?: string): string | null;
33
+ isSpecialFormatForRULocale(locale: string, value: number, grouping?: boolean): boolean;
33
34
  static ɵfac: i0.ɵɵFactoryDeclaration<McDecimalPipe, [{ optional: true; }, { optional: true; }, { optional: true; }]>;
34
35
  static ɵpipe: i0.ɵɵPipeDeclaration<McDecimalPipe, "mcNumber", false>;
35
36
  static ɵprov: i0.ɵɵInjectableDeclaration<McDecimalPipe>;
36
37
  }
38
+ export declare class McTableNumberPipe implements PipeTransform {
39
+ private id;
40
+ private localeService;
41
+ private readonly options;
42
+ constructor(id: string, localeService: McLocaleService, options: ParsedDigitsInfo);
43
+ /**
44
+ * @param value The number to be formatted.
45
+ * @param digitsInfo Decimal representation options, specified by a string
46
+ * in the following format:<br>
47
+ * <code>{minIntegerDigits}.{minFractionDigits}-{maxFractionDigits}</code>.
48
+ * - `minIntegerDigits`: The minimum number of integer digits before the decimal point.
49
+ * Default is `1`.
50
+ * - `minFractionDigits`: The minimum number of digits after the decimal point.
51
+ * Default is `0`.
52
+ * - `maxFractionDigits`: The maximum number of digits after the decimal point.
53
+ * Default is `3`.
54
+ * @param locale A locale code for the locale format rules to use.
55
+ * When not supplied, uses the value of `MC_LOCALE_ID`, which is `ru` by default.
56
+ */
57
+ transform(value: any, digitsInfo?: string, locale?: string): string | null;
58
+ static ɵfac: i0.ɵɵFactoryDeclaration<McTableNumberPipe, [{ optional: true; }, { optional: true; }, { optional: true; }]>;
59
+ static ɵpipe: i0.ɵɵPipeDeclaration<McTableNumberPipe, "mcTableNumber", false>;
60
+ static ɵprov: i0.ɵɵInjectableDeclaration<McTableNumberPipe>;
61
+ }
37
62
  export {};
@@ -2,10 +2,6 @@
2
2
  @use 'sass:map';
3
3
 
4
4
  @use '../styles/typography' as *;
5
- @use '../styles/tokens';
6
-
7
-
8
- $tokens: meta.module-variables(tokens) !default;
9
5
 
10
6
  @mixin mc-forms-theme($theme) {
11
7
  $foreground: map.get($theme, foreground);
@@ -22,6 +18,8 @@ $tokens: meta.module-variables(tokens) !default;
22
18
  }
23
19
 
24
20
  @mixin mc-forms-typography($config) {
21
+ $tokens: map.get($config, tokens);
22
+
25
23
  .mc-form__label {
26
24
  @include mc-typography-level-to-styles($config, map.get($tokens, forms-font-default-label));
27
25
  }
@@ -1,11 +1,10 @@
1
1
  export declare const enUSLocaleData: {
2
- en: {
2
+ 'en-US': {
3
3
  select: {
4
4
  hiddenItemsText: string;
5
5
  };
6
6
  datepicker: {
7
7
  placeholder: string;
8
- dateInput: string;
9
8
  };
10
9
  };
11
10
  };
@@ -3,5 +3,14 @@ export declare const esLALocaleData: {
3
3
  select: {
4
4
  hiddenItemsText: string;
5
5
  };
6
+ datepicker: {
7
+ placeholder: string;
8
+ };
9
+ timepicker: {
10
+ placeholder: {
11
+ full: string;
12
+ short: string;
13
+ };
14
+ };
6
15
  };
7
16
  };
@@ -3,5 +3,14 @@ export declare const faIRLocaleData: {
3
3
  select: {
4
4
  hiddenItemsText: string;
5
5
  };
6
+ datepicker: {
7
+ placeholder: string;
8
+ };
9
+ timepicker: {
10
+ placeholder: {
11
+ full: string;
12
+ short: string;
13
+ };
14
+ };
6
15
  };
7
16
  };
@@ -2,44 +2,78 @@ import { InjectionToken } from '@angular/core';
2
2
  import { BehaviorSubject } from 'rxjs';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare const MC_LOCALE_ID: InjectionToken<string>;
5
- export declare const MC_DEFAULT_LOCALE_ID = "ru";
5
+ export declare const MC_DEFAULT_LOCALE_ID = "ru-RU";
6
6
  export declare function MC_DEFAULT_LOCALE_DATA_FACTORY(): {
7
7
  'zh-CN': {
8
8
  select: {
9
9
  hiddenItemsText: string;
10
10
  };
11
+ datepicker: {
12
+ placeholder: string;
13
+ };
14
+ timepicker: {
15
+ placeholder: {
16
+ full: string;
17
+ short: string;
18
+ };
19
+ };
11
20
  };
12
21
  'pt-BR': {
13
22
  select: {
14
23
  hiddenItemsText: string;
15
24
  };
25
+ datepicker: {
26
+ placeholder: string;
27
+ };
28
+ timepicker: {
29
+ placeholder: {
30
+ full: string;
31
+ short: string;
32
+ };
33
+ };
16
34
  };
17
35
  'fa-IR': {
18
36
  select: {
19
37
  hiddenItemsText: string;
20
38
  };
39
+ datepicker: {
40
+ placeholder: string;
41
+ };
42
+ timepicker: {
43
+ placeholder: {
44
+ full: string;
45
+ short: string;
46
+ };
47
+ };
21
48
  };
22
49
  'es-LA': {
23
50
  select: {
24
51
  hiddenItemsText: string;
25
52
  };
53
+ datepicker: {
54
+ placeholder: string;
55
+ };
56
+ timepicker: {
57
+ placeholder: {
58
+ full: string;
59
+ short: string;
60
+ };
61
+ };
26
62
  };
27
- en: {
63
+ 'en-US': {
28
64
  select: {
29
65
  hiddenItemsText: string;
30
66
  };
31
67
  datepicker: {
32
68
  placeholder: string;
33
- dateInput: string;
34
69
  };
35
70
  };
36
- ru: {
71
+ 'ru-RU': {
37
72
  select: {
38
73
  hiddenItemsText: string;
39
74
  };
40
75
  datepicker: {
41
76
  placeholder: string;
42
- dateInput: string;
43
77
  };
44
78
  };
45
79
  items: {
@@ -3,5 +3,14 @@ export declare const ptBRLocaleData: {
3
3
  select: {
4
4
  hiddenItemsText: string;
5
5
  };
6
+ datepicker: {
7
+ placeholder: string;
8
+ };
9
+ timepicker: {
10
+ placeholder: {
11
+ full: string;
12
+ short: string;
13
+ };
14
+ };
6
15
  };
7
16
  };
@@ -1,11 +1,10 @@
1
1
  export declare const ruRULocaleData: {
2
- ru: {
2
+ 'ru-RU': {
3
3
  select: {
4
4
  hiddenItemsText: string;
5
5
  };
6
6
  datepicker: {
7
7
  placeholder: string;
8
- dateInput: string;
9
8
  };
10
9
  };
11
10
  };
@@ -3,5 +3,14 @@ export declare const znCNLocaleData: {
3
3
  select: {
4
4
  hiddenItemsText: string;
5
5
  };
6
+ datepicker: {
7
+ placeholder: string;
8
+ };
9
+ timepicker: {
10
+ placeholder: {
11
+ full: string;
12
+ short: string;
13
+ };
14
+ };
6
15
  };
7
16
  };
@@ -2,10 +2,6 @@
2
2
  @use 'sass:map';
3
3
 
4
4
  @use '../styles/typography' as *;
5
- @use '../styles/tokens';
6
-
7
-
8
- $tokens: meta.module-variables(tokens) !default;
9
5
 
10
6
  @mixin mc-optgroup-theme($theme) {
11
7
  $foreground: map.get($theme, foreground);
@@ -20,6 +16,8 @@ $tokens: meta.module-variables(tokens) !default;
20
16
  }
21
17
 
22
18
  @mixin mc-optgroup-typography($config) {
19
+ $tokens: map.get($config, tokens);
20
+
23
21
  .mc-optgroup-label {
24
22
  @include mc-typography-level-to-styles($config, map.get($tokens, optgroup-font-default));
25
23
  }
@@ -3,11 +3,6 @@
3
3
 
4
4
  @use '../styles/typography' as *;
5
5
 
6
- @use '../styles/tokens';
7
-
8
-
9
- $tokens: meta.module-variables(tokens) !default;
10
-
11
6
  @mixin mc-option-theme($theme) {
12
7
  $foreground: map.get($theme, foreground);
13
8
  $background: map.get($theme, background);
@@ -40,6 +35,8 @@ $tokens: meta.module-variables(tokens) !default;
40
35
  }
41
36
 
42
37
  @mixin mc-option-typography($config) {
38
+ $tokens: map.get($config, tokens);
39
+
43
40
  .mc-option {
44
41
  @include mc-typography-level-to-styles($config, map.get($tokens, option-font-default));
45
42
  }