@ptsecurity/mosaic 14.3.1 → 14.5.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.
- package/_theming.scss +220 -7
- package/_visual.scss +34 -3
- package/core/formatters/date/formatter.pipe.d.ts +79 -66
- package/core/formatters/number/formatter.d.ts +13 -3
- package/design-tokens/legacy-2017/tokens/components/datepicker.json5 +15 -6
- package/design-tokens/legacy-2017/tokens/components/popup.json5 +1 -1
- package/design-tokens/legacy-2017/tokens/components/scrollbars.json5 +52 -0
- package/design-tokens/legacy-2017/tokens.d.ts +35 -3
- package/design-tokens/pt-2022/tokens/components/datepicker.json5 +13 -4
- package/design-tokens/pt-2022/tokens/components/popup.json5 +1 -1
- package/design-tokens/pt-2022/tokens/components/scrollbars.json5 +52 -0
- package/design-tokens/pt-2022/tokens/components/sidepanel.json5 +1 -2
- package/design-tokens/pt-2022/tokens.d.ts +34 -3
- package/esm2020/button-toggle/button-toggle.component.mjs +2 -2
- package/esm2020/core/formatters/date/formatter.pipe.mjs +87 -54
- package/esm2020/core/formatters/number/formatter.mjs +26 -10
- package/esm2020/core/select/constants.mjs +1 -1
- package/esm2020/core/version.mjs +2 -2
- package/esm2020/datepicker/calendar-body.component.mjs +2 -2
- package/esm2020/datepicker/datepicker.component.mjs +3 -3
- package/esm2020/design-tokens/legacy-2017/tokens.mjs +36 -4
- package/esm2020/design-tokens/pt-2022/tokens.mjs +35 -4
- package/esm2020/dropdown/dropdown-item.component.mjs +2 -2
- package/esm2020/form-field/form-field.mjs +50 -9
- package/esm2020/form-field/form-field.module.mjs +10 -6
- package/esm2020/form-field/password-hint.mjs +4 -4
- package/esm2020/form-field/validate.directive.mjs +7 -4
- package/esm2020/input/input.mjs +10 -21
- package/esm2020/select/select.component.mjs +2 -4
- package/esm2020/sidepanel/sidepanel-container.component.mjs +3 -3
- package/esm2020/sidepanel/sidepanel-directives.mjs +16 -11
- package/esm2020/tags/tag-input.mjs +19 -7
- package/esm2020/timezone/timezone-option.directive.mjs +3 -1
- package/esm2020/timezone/timezone.utils.mjs +11 -4
- package/esm2020/toast/toast.service.mjs +5 -4
- package/esm2020/tree-select/tree-select.component.mjs +3 -3
- package/fesm2015/ptsecurity-mosaic-button-toggle.mjs +2 -2
- package/fesm2015/ptsecurity-mosaic-button-toggle.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-core.mjs +110 -60
- package/fesm2015/ptsecurity-mosaic-core.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-datepicker.mjs +4 -4
- package/fesm2015/ptsecurity-mosaic-datepicker.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-design-tokens.mjs +104 -9
- package/fesm2015/ptsecurity-mosaic-design-tokens.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-dropdown.mjs +2 -2
- package/fesm2015/ptsecurity-mosaic-dropdown.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-form-field.mjs +68 -18
- package/fesm2015/ptsecurity-mosaic-form-field.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-input.mjs +10 -20
- package/fesm2015/ptsecurity-mosaic-input.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-select.mjs +1 -3
- package/fesm2015/ptsecurity-mosaic-select.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-sidepanel.mjs +18 -13
- package/fesm2015/ptsecurity-mosaic-sidepanel.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-tags.mjs +19 -8
- package/fesm2015/ptsecurity-mosaic-tags.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-timezone.mjs +12 -4
- package/fesm2015/ptsecurity-mosaic-timezone.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-toast.mjs +4 -3
- package/fesm2015/ptsecurity-mosaic-toast.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-tree-select.mjs +2 -2
- package/fesm2015/ptsecurity-mosaic-tree-select.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-button-toggle.mjs +2 -2
- package/fesm2020/ptsecurity-mosaic-button-toggle.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-core.mjs +110 -63
- package/fesm2020/ptsecurity-mosaic-core.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-datepicker.mjs +4 -4
- package/fesm2020/ptsecurity-mosaic-datepicker.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-design-tokens.mjs +104 -9
- package/fesm2020/ptsecurity-mosaic-design-tokens.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-dropdown.mjs +2 -2
- package/fesm2020/ptsecurity-mosaic-dropdown.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-form-field.mjs +65 -19
- package/fesm2020/ptsecurity-mosaic-form-field.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-input.mjs +9 -20
- package/fesm2020/ptsecurity-mosaic-input.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-select.mjs +1 -3
- package/fesm2020/ptsecurity-mosaic-select.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-sidepanel.mjs +18 -13
- package/fesm2020/ptsecurity-mosaic-sidepanel.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-tags.mjs +16 -5
- package/fesm2020/ptsecurity-mosaic-tags.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-timezone.mjs +12 -4
- package/fesm2020/ptsecurity-mosaic-timezone.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-toast.mjs +4 -3
- package/fesm2020/ptsecurity-mosaic-toast.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-tree-select.mjs +2 -2
- package/fesm2020/ptsecurity-mosaic-tree-select.mjs.map +1 -1
- package/form-field/form-field.d.ts +12 -2
- package/form-field/form-field.module.d.ts +1 -1
- package/form-field/validate.directive.d.ts +1 -0
- package/input/input.d.ts +1 -2
- package/package.json +4 -4
- package/prebuilt-themes/dark-theme.css +1 -1
- package/prebuilt-themes/default-theme.css +1 -1
- package/tags/tag-input.d.ts +5 -2
package/_theming.scss
CHANGED
@@ -793,21 +793,27 @@ $checkbox-size-toggle-box-shadow: inset 0 0 1px 0 rgba(0, 0, 0, 0.2);
|
|
793
793
|
$checkbox-font-default: body;
|
794
794
|
$datepicker-toggle-size-width: 30px;
|
795
795
|
$datepicker-toggle-size-height: 30px;
|
796
|
-
$datepicker-body-light-color-scheme-states-
|
796
|
+
$datepicker-body-light-color-scheme-states-today-color: #0374eb;
|
797
|
+
$datepicker-body-light-color-scheme-states-today-background: white;
|
798
|
+
$datepicker-body-light-color-scheme-states-selected-color: #19252f;
|
797
799
|
$datepicker-body-light-color-scheme-states-selected-background: #e7f1ff;
|
798
|
-
$datepicker-body-dark-color-scheme-states-
|
800
|
+
$datepicker-body-dark-color-scheme-states-today-color: #4187ff;
|
801
|
+
$datepicker-body-dark-color-scheme-states-today-background: #19252f;
|
802
|
+
$datepicker-body-dark-color-scheme-states-selected-color: #d7dee4;
|
799
803
|
$datepicker-body-dark-color-scheme-states-selected-background: rgba(3, 116, 235, 0.3);
|
800
804
|
$datepicker-body-size-label-paddings: 8px 28px 12px 12px;
|
801
805
|
$datepicker-body-size-cell-min-size: 32px;
|
802
806
|
$datepicker-body-size-cell-margin: 5%;
|
803
807
|
$datepicker-body-size-cell-padding: 8px;
|
804
808
|
$datepicker-body-size-cell-border-width: 1px;
|
809
|
+
$datepicker-body-size-cell-border-radius: 0;
|
805
810
|
$datepicker-body-font-label: body-strong;
|
806
811
|
$datepicker-body-font-today: body-strong;
|
807
812
|
$datepicker-calendar-size-padding-top: 16px;
|
808
813
|
$datepicker-calendar-size-padding-horizontal: 8px;
|
809
814
|
$datepicker-calendar-size-padding-bottom: 8px;
|
810
815
|
$datepicker-calendar-size-padding-blocks: 12px;
|
816
|
+
$datepicker-calendar-size-border-radius: 0;
|
811
817
|
$datepicker-calendar-size-divider-width: 1px;
|
812
818
|
$datepicker-calendar-size-icon-border-width: 2px;
|
813
819
|
$datepicker-calendar-size-icon-prev-icon-transform: translateX(2px) rotate(-45deg);
|
@@ -1252,6 +1258,32 @@ $radio-size-inner-size: 10px;
|
|
1252
1258
|
$radio-size-cap-size: 6px;
|
1253
1259
|
$radio-size-label-margin: 8px;
|
1254
1260
|
$radio-font-default: body;
|
1261
|
+
$scrollbar-light-color-scheme-track: #f2f5f9;
|
1262
|
+
$scrollbar-light-color-scheme-thumb-normal: #bdc7d1;
|
1263
|
+
$scrollbar-light-color-scheme-thumb-hover: #8c99a5;
|
1264
|
+
$scrollbar-light-color-scheme-thumb-active: #7f8c98;
|
1265
|
+
$scrollbar-light-color-scheme-thumb-disabled: #d7dee4;
|
1266
|
+
$scrollbar-light-color-scheme-arrow-normal: #8c99a5;
|
1267
|
+
$scrollbar-light-color-scheme-arrow-disabled: #d7dee4;
|
1268
|
+
$scrollbar-light-color-scheme-arrow-background: #f2f5f9;
|
1269
|
+
$scrollbar-light-color-scheme-corner-background: #f2f5f9;
|
1270
|
+
$scrollbar-light-color-scheme-resizer-background: #f2f5f9;
|
1271
|
+
$scrollbar-dark-color-scheme-track: #27333e;
|
1272
|
+
$scrollbar-dark-color-scheme-thumb-normal: #515e69;
|
1273
|
+
$scrollbar-dark-color-scheme-thumb-hover: #6d7a86;
|
1274
|
+
$scrollbar-dark-color-scheme-thumb-active: #7f8c98;
|
1275
|
+
$scrollbar-dark-color-scheme-thumb-disabled: #333f4a;
|
1276
|
+
$scrollbar-dark-color-scheme-arrow-normal: #515e69;
|
1277
|
+
$scrollbar-dark-color-scheme-arrow-disabled: #333f4a;
|
1278
|
+
$scrollbar-dark-color-scheme-arrow-background: #27333e;
|
1279
|
+
$scrollbar-dark-color-scheme-corner-background: #27333e;
|
1280
|
+
$scrollbar-dark-color-scheme-resizer-background: #27333e;
|
1281
|
+
$scrollbar-size-track-width: 16px;
|
1282
|
+
$scrollbar-size-thumb-width: 8px;
|
1283
|
+
$scrollbar-size-thumb-border-width: 4px;
|
1284
|
+
$scrollbar-size-thumb-border-radius: 8px;
|
1285
|
+
$scrollbar-size-arrow-icon-width: 16px;
|
1286
|
+
$scrollbar-size-arrow-icon-height: 16px;
|
1255
1287
|
$select-size-left-padding: 12px;
|
1256
1288
|
$select-size-right-padding: 6px;
|
1257
1289
|
$select-size-left-padding-multiple: 12px;
|
@@ -1269,7 +1301,6 @@ $sidepanel-header-light-color-scheme-border: #d7dee4;
|
|
1269
1301
|
$sidepanel-header-dark-color-scheme-border: mix(#515e69, transparent, 50%);
|
1270
1302
|
$sidepanel-header-size-height: 56px;
|
1271
1303
|
$sidepanel-header-size-padding: 0 16px;
|
1272
|
-
$sidepanel-header-size-close-padding: 0 0 0 8px;
|
1273
1304
|
$sidepanel-header-font-default: title;
|
1274
1305
|
$sidepanel-footer-light-color-scheme-border: #f2f5f9;
|
1275
1306
|
$sidepanel-footer-dark-color-scheme-border: mix(#515e69, transparent, 50%);
|
@@ -2865,6 +2896,7 @@ $md-typography: (
|
|
2865
2896
|
);
|
2866
2897
|
|
2867
2898
|
$datepicker: (
|
2899
|
+
state-today-color: $datepicker-body-light-color-scheme-states-today-color,
|
2868
2900
|
state-selected-color: $datepicker-body-light-color-scheme-states-selected-color,
|
2869
2901
|
state-selected-background: $datepicker-body-light-color-scheme-states-selected-background
|
2870
2902
|
);
|
@@ -3193,6 +3225,23 @@ $md-typography: (
|
|
3193
3225
|
)
|
3194
3226
|
);
|
3195
3227
|
|
3228
|
+
$scrollbar: (
|
3229
|
+
track: $scrollbar-light-color-scheme-track,
|
3230
|
+
thumb: (
|
3231
|
+
normal: $scrollbar-light-color-scheme-thumb-normal,
|
3232
|
+
hover: $scrollbar-light-color-scheme-thumb-hover,
|
3233
|
+
active: $scrollbar-light-color-scheme-thumb-active,
|
3234
|
+
disabled: $scrollbar-light-color-scheme-thumb-disabled,
|
3235
|
+
),
|
3236
|
+
arrow: (
|
3237
|
+
normal: $scrollbar-light-color-scheme-arrow-normal,
|
3238
|
+
disabled: $scrollbar-light-color-scheme-arrow-disabled,
|
3239
|
+
background: $scrollbar-light-color-scheme-arrow-background,
|
3240
|
+
),
|
3241
|
+
corner-background: $scrollbar-light-color-scheme-corner-background,
|
3242
|
+
resizer-background: $scrollbar-light-color-scheme-resizer-background
|
3243
|
+
);
|
3244
|
+
|
3196
3245
|
@return (
|
3197
3246
|
alert: $alert,
|
3198
3247
|
popup: $popup,
|
@@ -3223,7 +3272,8 @@ $md-typography: (
|
|
3223
3272
|
timezone: $timezone,
|
3224
3273
|
toast: $toast,
|
3225
3274
|
toggle: $toggle,
|
3226
|
-
tooltip: $tooltip
|
3275
|
+
tooltip: $tooltip,
|
3276
|
+
scrollbar: $scrollbar
|
3227
3277
|
);
|
3228
3278
|
}
|
3229
3279
|
|
@@ -3440,6 +3490,7 @@ $md-typography: (
|
|
3440
3490
|
);
|
3441
3491
|
|
3442
3492
|
$datepicker: (
|
3493
|
+
state-selected-today-color: $datepicker-body-dark-color-scheme-states-today-color,
|
3443
3494
|
state-selected-color: $datepicker-body-dark-color-scheme-states-selected-color,
|
3444
3495
|
state-selected-background: $datepicker-body-dark-color-scheme-states-selected-background
|
3445
3496
|
);
|
@@ -3768,6 +3819,23 @@ $md-typography: (
|
|
3768
3819
|
)
|
3769
3820
|
);
|
3770
3821
|
|
3822
|
+
$scrollbar: (
|
3823
|
+
track: $scrollbar-dark-color-scheme-track,
|
3824
|
+
thumb: (
|
3825
|
+
normal: $scrollbar-dark-color-scheme-thumb-normal,
|
3826
|
+
hover: $scrollbar-dark-color-scheme-thumb-hover,
|
3827
|
+
active: $scrollbar-dark-color-scheme-thumb-active,
|
3828
|
+
disabled: $scrollbar-dark-color-scheme-thumb-disabled,
|
3829
|
+
),
|
3830
|
+
arrow: (
|
3831
|
+
normal: $scrollbar-dark-color-scheme-arrow-normal,
|
3832
|
+
disabled: $scrollbar-dark-color-scheme-arrow-disabled,
|
3833
|
+
background: $scrollbar-dark-color-scheme-arrow-background,
|
3834
|
+
),
|
3835
|
+
corner-background: $scrollbar-dark-color-scheme-corner-background,
|
3836
|
+
resizer-background: $scrollbar-dark-color-scheme-resizer-background
|
3837
|
+
);
|
3838
|
+
|
3771
3839
|
@return (
|
3772
3840
|
alert: $alert,
|
3773
3841
|
popup: $popup,
|
@@ -3798,7 +3866,8 @@ $md-typography: (
|
|
3798
3866
|
timezone: $timezone,
|
3799
3867
|
toast: $toast,
|
3800
3868
|
toggle: $toggle,
|
3801
|
-
tooltip: $tooltip
|
3869
|
+
tooltip: $tooltip,
|
3870
|
+
scrollbar: $scrollbar
|
3802
3871
|
);
|
3803
3872
|
}
|
3804
3873
|
|
@@ -4911,7 +4980,8 @@ $mc-datepicker-today-fade-amount: 0.2;
|
|
4911
4980
|
}
|
4912
4981
|
|
4913
4982
|
.mc-calendar__body-today {
|
4914
|
-
color: map-get($datepicker, state-
|
4983
|
+
color: map-get($datepicker, state-today-color);
|
4984
|
+
background-color: map-get($datepicker, state-today-background);
|
4915
4985
|
}
|
4916
4986
|
|
4917
4987
|
.mc-calendar__body_disabled > .mc-calendar__body-today:not(.mc-selected) {
|
@@ -4921,6 +4991,7 @@ $mc-datepicker-today-fade-amount: 0.2;
|
|
4921
4991
|
|
4922
4992
|
.mc-calendar__body-cell-content.mc-selected {
|
4923
4993
|
background: map-get($datepicker, state-selected-background);
|
4994
|
+
color: map-get($datepicker, state-selected-color);
|
4924
4995
|
}
|
4925
4996
|
|
4926
4997
|
.mc-calendar__body_disabled > .mc-selected {
|
@@ -7151,6 +7222,146 @@ button {
|
|
7151
7222
|
|
7152
7223
|
|
7153
7224
|
|
7225
|
+
|
7226
|
+
/// Replace `$search` with `$replace` in `$string`
|
7227
|
+
/// @author Kitty Giraudel
|
7228
|
+
/// @param {String} $string - Initial string
|
7229
|
+
/// @param {String} $search - Substring to replace
|
7230
|
+
/// @param {String} $replace ('') - New value
|
7231
|
+
/// @return {String} - Updated string
|
7232
|
+
@function str-replace($string, $search, $replace: '') {
|
7233
|
+
$index: str-index($string, $search);
|
7234
|
+
|
7235
|
+
@if $index {
|
7236
|
+
@return str-slice($string, 1, $index - 1) + $replace +
|
7237
|
+
str-replace(str-slice($string, $index + str-length($search)), $search, $replace);
|
7238
|
+
}
|
7239
|
+
|
7240
|
+
@return $string;
|
7241
|
+
}
|
7242
|
+
|
7243
|
+
|
7244
|
+
.mc-scrollbar {
|
7245
|
+
//firefox
|
7246
|
+
scrollbar-width: auto;
|
7247
|
+
|
7248
|
+
// webkit
|
7249
|
+
&::-webkit-scrollbar,
|
7250
|
+
::-webkit-scrollbar {
|
7251
|
+
width: var(--mc-scrollbar-size-track-width, $scrollbar-size-track-width);
|
7252
|
+
}
|
7253
|
+
|
7254
|
+
&::-webkit-scrollbar-thumb,
|
7255
|
+
::-webkit-scrollbar-thumb {
|
7256
|
+
width: var(--mc-scrollbar-size-thumb-width, $scrollbar-size-thumb-width);
|
7257
|
+
border-width: var(--mc-scrollbar-size-thumb-inset-border-width, $scrollbar-size-thumb-border-width);
|
7258
|
+
border-radius: var(--mc-scrollbar-size-thumb-inset-border-radius, $scrollbar-size-thumb-border-radius);
|
7259
|
+
}
|
7260
|
+
|
7261
|
+
&::-webkit-scrollbar-button,
|
7262
|
+
::-webkit-scrollbar-button {
|
7263
|
+
display: none;
|
7264
|
+
|
7265
|
+
height: var(--mc-scrollbar-size-arrow-icon-height, $scrollbar-size-arrow-icon-height);
|
7266
|
+
width: var(--mc-scrollbar-size-arrow-icon-width, $scrollbar-size-arrow-icon-width);
|
7267
|
+
}
|
7268
|
+
}
|
7269
|
+
|
7270
|
+
@mixin mc-scrollbar-theme($theme) {
|
7271
|
+
$scrollbar: map-get(map-get($theme, components), scrollbar);
|
7272
|
+
$thumb: map-get($scrollbar, thumb);
|
7273
|
+
$arrow: map-get($scrollbar, arrow);
|
7274
|
+
|
7275
|
+
.mc-scrollbar {
|
7276
|
+
|
7277
|
+
// firefox
|
7278
|
+
scrollbar-color: map-get($thumb, normal) map-get($scrollbar, track);
|
7279
|
+
|
7280
|
+
// webkit
|
7281
|
+
&::-webkit-scrollbar,
|
7282
|
+
::-webkit-scrollbar {
|
7283
|
+
background-color: map-get($scrollbar, track);
|
7284
|
+
}
|
7285
|
+
|
7286
|
+
&::-webkit-scrollbar-corner,
|
7287
|
+
::-webkit-scrollbar-corner {
|
7288
|
+
background-color: map-get($scrollbar, corner-background);
|
7289
|
+
}
|
7290
|
+
|
7291
|
+
|
7292
|
+
&::-webkit-scrollbar-thumb,
|
7293
|
+
::-webkit-scrollbar-thumb {
|
7294
|
+
background-color: map-get($thumb, normal);
|
7295
|
+
|
7296
|
+
border-color: map-get($scrollbar, track);
|
7297
|
+
border-style: solid;
|
7298
|
+
|
7299
|
+
&:hover {
|
7300
|
+
background-color: map-get($thumb, hover);
|
7301
|
+
}
|
7302
|
+
|
7303
|
+
&:disabled {
|
7304
|
+
background-color: map-get($thumb, disabled);
|
7305
|
+
}
|
7306
|
+
|
7307
|
+
&:active {
|
7308
|
+
background-color: map-get($thumb, active);
|
7309
|
+
}
|
7310
|
+
}
|
7311
|
+
|
7312
|
+
/* stylelint-disable */
|
7313
|
+
&::-webkit-scrollbar-button,
|
7314
|
+
::-webkit-scrollbar-button {
|
7315
|
+
background-color: map-get($arrow, background);
|
7316
|
+
background-size: 10px 10px;
|
7317
|
+
background-repeat: no-repeat;
|
7318
|
+
background-position: center center;
|
7319
|
+
|
7320
|
+
&:single-button {
|
7321
|
+
&:horizontal:decrement {
|
7322
|
+
@include arrow-image(right, map-get($arrow, normal));
|
7323
|
+
}
|
7324
|
+
|
7325
|
+
&:horizontal:increment {
|
7326
|
+
@include arrow-image(left, map-get($arrow, normal));
|
7327
|
+
}
|
7328
|
+
|
7329
|
+
&:vertical:decrement {
|
7330
|
+
@include arrow-image(up, map-get($arrow, normal));
|
7331
|
+
}
|
7332
|
+
|
7333
|
+
&:vertical:increment {
|
7334
|
+
@include arrow-image(down, map-get($arrow, normal));
|
7335
|
+
}
|
7336
|
+
}
|
7337
|
+
|
7338
|
+
// disable double-button
|
7339
|
+
&:vertical:start:increment,
|
7340
|
+
&:vertical:end:decrement,
|
7341
|
+
&:horizontal:end:increment,
|
7342
|
+
&:horizontal:end:decrement {
|
7343
|
+
display: none;
|
7344
|
+
}
|
7345
|
+
}
|
7346
|
+
/* stylelint-enable */
|
7347
|
+
}
|
7348
|
+
}
|
7349
|
+
|
7350
|
+
@mixin arrow-image($direction, $color) {
|
7351
|
+
$color: str-replace('#{$color}', '#', '%23');
|
7352
|
+
|
7353
|
+
@if $direction == up {
|
7354
|
+
background-image: url('data:image/svg+xml;utf8,<svg width="8" height="4" viewBox="0 0 8 4" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M0 4L4 0L8 4H0Z" fill="#{$color}"/></svg>');
|
7355
|
+
} @else if $direction == left {
|
7356
|
+
background-image: url('data:image/svg+xml;utf8,<svg width="4" height="8" viewBox="0 0 4 8" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M0.354973 0.111252L3.64503 3.40028C3.84808 3.60327 3.84107 3.91407 3.64503 4.11011L0.354973 7.40017C0.15192 7.60322 0 7.53112 0 7.25478V0.256747C0 -0.0128497 0.158927 -0.0847332 0.354973 0.111252Z" fill="#{$color}"/></svg>');
|
7357
|
+
} @else if $direction == down {
|
7358
|
+
background-image: url('data:image/svg+xml;utf8,<svg width="8" height="4" viewBox="0 0 8 4" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M0 0L4 4L8 0H0Z" fill="#{$color}"/></svg>');
|
7359
|
+
} @else if $direction == right {
|
7360
|
+
background-image: url('data:image/svg+xml;utf8,<svg width="5" height="8" viewBox="0 0 5 8" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M3.64975 0.111682C3.8458 -0.0845414 4.00472 -0.0128511 4.00472 0.256746V7.25478C4.00472 7.53112 3.8528 7.6034 3.64975 7.4006L0.359696 4.11454C0.163649 3.91873 0.156643 3.60794 0.359696 3.40471L3.64975 0.111682Z" fill="#{$color}"/></svg>');
|
7361
|
+
}
|
7362
|
+
}
|
7363
|
+
|
7364
|
+
|
7154
7365
|
@mixin mc-pseudo-checkbox-color($states) {
|
7155
7366
|
border-color: map-get($states, border);
|
7156
7367
|
|
@@ -7706,6 +7917,7 @@ button {
|
|
7706
7917
|
@include mc-dropdown-theme($theme);
|
7707
7918
|
@include mc-form-field-theme($theme);
|
7708
7919
|
@include mc-forms-theme($theme);
|
7920
|
+
@include mc-highlight-theme($theme);
|
7709
7921
|
@include mc-icon-theme($theme);
|
7710
7922
|
@include mc-input-theme($theme);
|
7711
7923
|
@include mc-link-theme($theme);
|
@@ -7723,6 +7935,7 @@ button {
|
|
7723
7935
|
@include mc-progress-spinner-theme($theme);
|
7724
7936
|
@include mc-pseudo-checkbox-theme($theme);
|
7725
7937
|
@include mc-radio-theme($theme);
|
7938
|
+
@include mc-scrollbar-theme($theme);
|
7726
7939
|
@include mc-select-theme($theme);
|
7727
7940
|
@include mc-sidepanel-theme($theme);
|
7728
7941
|
@include mc-splitter-theme($theme);
|
@@ -7735,6 +7948,6 @@ button {
|
|
7735
7948
|
@include mc-tooltip-theme($theme);
|
7736
7949
|
@include mc-tree-select-theme($theme);
|
7737
7950
|
@include mc-tree-theme($theme);
|
7738
|
-
@include mc-highlight-theme($theme);
|
7739
7951
|
@include mc-table-theme($theme);
|
7952
|
+
|
7740
7953
|
}
|
package/_visual.scss
CHANGED
@@ -627,21 +627,27 @@ $checkbox-size-toggle-box-shadow: inset 0 0 1px 0 rgba(0, 0, 0, 0.2);
|
|
627
627
|
$checkbox-font-default: body;
|
628
628
|
$datepicker-toggle-size-width: 30px;
|
629
629
|
$datepicker-toggle-size-height: 30px;
|
630
|
-
$datepicker-body-light-color-scheme-states-
|
630
|
+
$datepicker-body-light-color-scheme-states-today-color: #0374eb;
|
631
|
+
$datepicker-body-light-color-scheme-states-today-background: white;
|
632
|
+
$datepicker-body-light-color-scheme-states-selected-color: #19252f;
|
631
633
|
$datepicker-body-light-color-scheme-states-selected-background: #e7f1ff;
|
632
|
-
$datepicker-body-dark-color-scheme-states-
|
634
|
+
$datepicker-body-dark-color-scheme-states-today-color: #4187ff;
|
635
|
+
$datepicker-body-dark-color-scheme-states-today-background: #19252f;
|
636
|
+
$datepicker-body-dark-color-scheme-states-selected-color: #d7dee4;
|
633
637
|
$datepicker-body-dark-color-scheme-states-selected-background: rgba(3, 116, 235, 0.3);
|
634
638
|
$datepicker-body-size-label-paddings: 8px 28px 12px 12px;
|
635
639
|
$datepicker-body-size-cell-min-size: 32px;
|
636
640
|
$datepicker-body-size-cell-margin: 5%;
|
637
641
|
$datepicker-body-size-cell-padding: 8px;
|
638
642
|
$datepicker-body-size-cell-border-width: 1px;
|
643
|
+
$datepicker-body-size-cell-border-radius: 0;
|
639
644
|
$datepicker-body-font-label: body-strong;
|
640
645
|
$datepicker-body-font-today: body-strong;
|
641
646
|
$datepicker-calendar-size-padding-top: 16px;
|
642
647
|
$datepicker-calendar-size-padding-horizontal: 8px;
|
643
648
|
$datepicker-calendar-size-padding-bottom: 8px;
|
644
649
|
$datepicker-calendar-size-padding-blocks: 12px;
|
650
|
+
$datepicker-calendar-size-border-radius: 0;
|
645
651
|
$datepicker-calendar-size-divider-width: 1px;
|
646
652
|
$datepicker-calendar-size-icon-border-width: 2px;
|
647
653
|
$datepicker-calendar-size-icon-prev-icon-transform: translateX(2px) rotate(-45deg);
|
@@ -1086,6 +1092,32 @@ $radio-size-inner-size: 10px;
|
|
1086
1092
|
$radio-size-cap-size: 6px;
|
1087
1093
|
$radio-size-label-margin: 8px;
|
1088
1094
|
$radio-font-default: body;
|
1095
|
+
$scrollbar-light-color-scheme-track: #f2f5f9;
|
1096
|
+
$scrollbar-light-color-scheme-thumb-normal: #bdc7d1;
|
1097
|
+
$scrollbar-light-color-scheme-thumb-hover: #8c99a5;
|
1098
|
+
$scrollbar-light-color-scheme-thumb-active: #7f8c98;
|
1099
|
+
$scrollbar-light-color-scheme-thumb-disabled: #d7dee4;
|
1100
|
+
$scrollbar-light-color-scheme-arrow-normal: #8c99a5;
|
1101
|
+
$scrollbar-light-color-scheme-arrow-disabled: #d7dee4;
|
1102
|
+
$scrollbar-light-color-scheme-arrow-background: #f2f5f9;
|
1103
|
+
$scrollbar-light-color-scheme-corner-background: #f2f5f9;
|
1104
|
+
$scrollbar-light-color-scheme-resizer-background: #f2f5f9;
|
1105
|
+
$scrollbar-dark-color-scheme-track: #27333e;
|
1106
|
+
$scrollbar-dark-color-scheme-thumb-normal: #515e69;
|
1107
|
+
$scrollbar-dark-color-scheme-thumb-hover: #6d7a86;
|
1108
|
+
$scrollbar-dark-color-scheme-thumb-active: #7f8c98;
|
1109
|
+
$scrollbar-dark-color-scheme-thumb-disabled: #333f4a;
|
1110
|
+
$scrollbar-dark-color-scheme-arrow-normal: #515e69;
|
1111
|
+
$scrollbar-dark-color-scheme-arrow-disabled: #333f4a;
|
1112
|
+
$scrollbar-dark-color-scheme-arrow-background: #27333e;
|
1113
|
+
$scrollbar-dark-color-scheme-corner-background: #27333e;
|
1114
|
+
$scrollbar-dark-color-scheme-resizer-background: #27333e;
|
1115
|
+
$scrollbar-size-track-width: 16px;
|
1116
|
+
$scrollbar-size-thumb-width: 8px;
|
1117
|
+
$scrollbar-size-thumb-border-width: 4px;
|
1118
|
+
$scrollbar-size-thumb-border-radius: 8px;
|
1119
|
+
$scrollbar-size-arrow-icon-width: 16px;
|
1120
|
+
$scrollbar-size-arrow-icon-height: 16px;
|
1089
1121
|
$select-size-left-padding: 12px;
|
1090
1122
|
$select-size-right-padding: 6px;
|
1091
1123
|
$select-size-left-padding-multiple: 12px;
|
@@ -1103,7 +1135,6 @@ $sidepanel-header-light-color-scheme-border: #d7dee4;
|
|
1103
1135
|
$sidepanel-header-dark-color-scheme-border: mix(#515e69, transparent, 50%);
|
1104
1136
|
$sidepanel-header-size-height: 56px;
|
1105
1137
|
$sidepanel-header-size-padding: 0 16px;
|
1106
|
-
$sidepanel-header-size-close-padding: 0 0 0 8px;
|
1107
1138
|
$sidepanel-header-font-default: title;
|
1108
1139
|
$sidepanel-footer-light-color-scheme-border: #f2f5f9;
|
1109
1140
|
$sidepanel-footer-dark-color-scheme-border: mix(#515e69, transparent, 50%);
|
@@ -1,95 +1,108 @@
|
|
1
1
|
import { PipeTransform } from '@angular/core';
|
2
|
-
import {
|
2
|
+
import { DateAdapter } from '@ptsecurity/cdk/datetime';
|
3
3
|
import { DateFormatter, DateTimeOptions } from './formatter';
|
4
4
|
import * as i0 from "@angular/core";
|
5
|
-
export declare class AbsoluteDateFormatterPipe implements PipeTransform {
|
5
|
+
export declare class AbsoluteDateFormatterPipe<D> implements PipeTransform {
|
6
|
+
private adapter;
|
6
7
|
private formatter;
|
7
|
-
constructor(formatter: DateFormatter<
|
8
|
-
transform(value:
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AbsoluteDateFormatterPipe
|
10
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<AbsoluteDateFormatterPipe
|
8
|
+
constructor(adapter: DateAdapter<D>, formatter: DateFormatter<D>);
|
9
|
+
transform(value: D | string, currYear?: boolean): string;
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AbsoluteDateFormatterPipe<any>, never>;
|
11
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<AbsoluteDateFormatterPipe<any>, "absoluteLongDate", false>;
|
11
12
|
}
|
12
|
-
export declare class AbsoluteDateTimeFormatterPipe implements PipeTransform {
|
13
|
+
export declare class AbsoluteDateTimeFormatterPipe<D> implements PipeTransform {
|
14
|
+
private adapter;
|
13
15
|
private formatter;
|
14
|
-
constructor(formatter: DateFormatter<
|
15
|
-
transform(value:
|
16
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AbsoluteDateTimeFormatterPipe
|
17
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<AbsoluteDateTimeFormatterPipe
|
16
|
+
constructor(adapter: DateAdapter<D>, formatter: DateFormatter<D>);
|
17
|
+
transform(value: D | string, options?: DateTimeOptions): string;
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AbsoluteDateTimeFormatterPipe<any>, never>;
|
19
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<AbsoluteDateTimeFormatterPipe<any>, "absoluteLongDateTime", false>;
|
18
20
|
}
|
19
|
-
export declare class AbsoluteDateShortFormatterPipe implements PipeTransform {
|
21
|
+
export declare class AbsoluteDateShortFormatterPipe<D> implements PipeTransform {
|
22
|
+
private adapter;
|
20
23
|
private formatter;
|
21
|
-
constructor(formatter: DateFormatter<
|
22
|
-
transform(value:
|
23
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AbsoluteDateShortFormatterPipe
|
24
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<AbsoluteDateShortFormatterPipe
|
24
|
+
constructor(adapter: DateAdapter<D>, formatter: DateFormatter<D>);
|
25
|
+
transform(value: D | string, currYear?: boolean): string;
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AbsoluteDateShortFormatterPipe<any>, never>;
|
27
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<AbsoluteDateShortFormatterPipe<any>, "absoluteShortDate", false>;
|
25
28
|
}
|
26
|
-
export declare class AbsoluteShortDateTimeFormatterPipe implements PipeTransform {
|
29
|
+
export declare class AbsoluteShortDateTimeFormatterPipe<D> implements PipeTransform {
|
30
|
+
private adapter;
|
27
31
|
private formatter;
|
28
|
-
constructor(formatter: DateFormatter<
|
29
|
-
transform(value:
|
30
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AbsoluteShortDateTimeFormatterPipe
|
31
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<AbsoluteShortDateTimeFormatterPipe
|
32
|
+
constructor(adapter: DateAdapter<D>, formatter: DateFormatter<D>);
|
33
|
+
transform(value: D | string, options?: DateTimeOptions): string;
|
34
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AbsoluteShortDateTimeFormatterPipe<any>, never>;
|
35
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<AbsoluteShortDateTimeFormatterPipe<any>, "absoluteShortDateTime", false>;
|
32
36
|
}
|
33
|
-
export declare class RelativeDateFormatterPipe implements PipeTransform {
|
37
|
+
export declare class RelativeDateFormatterPipe<D> implements PipeTransform {
|
38
|
+
private adapter;
|
34
39
|
private formatter;
|
35
|
-
constructor(formatter: DateFormatter<
|
36
|
-
transform(value:
|
37
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<RelativeDateFormatterPipe
|
38
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<RelativeDateFormatterPipe
|
40
|
+
constructor(adapter: DateAdapter<D>, formatter: DateFormatter<D>);
|
41
|
+
transform(value: D | string): string;
|
42
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RelativeDateFormatterPipe<any>, never>;
|
43
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<RelativeDateFormatterPipe<any>, "relativeLongDate", false>;
|
39
44
|
}
|
40
|
-
export declare class RelativeDateTimeFormatterPipe implements PipeTransform {
|
45
|
+
export declare class RelativeDateTimeFormatterPipe<D> implements PipeTransform {
|
46
|
+
private adapter;
|
41
47
|
private formatter;
|
42
|
-
constructor(formatter: DateFormatter<
|
43
|
-
transform(value:
|
44
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<RelativeDateTimeFormatterPipe
|
45
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<RelativeDateTimeFormatterPipe
|
48
|
+
constructor(adapter: DateAdapter<D>, formatter: DateFormatter<D>);
|
49
|
+
transform(value: D | string, options?: DateTimeOptions): string;
|
50
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RelativeDateTimeFormatterPipe<any>, never>;
|
51
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<RelativeDateTimeFormatterPipe<any>, "relativeLongDateTime", false>;
|
46
52
|
}
|
47
|
-
export declare class RelativeShortDateFormatterPipe implements PipeTransform {
|
53
|
+
export declare class RelativeShortDateFormatterPipe<D> implements PipeTransform {
|
54
|
+
private adapter;
|
48
55
|
private formatter;
|
49
|
-
constructor(formatter: DateFormatter<
|
50
|
-
transform(value:
|
51
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<RelativeShortDateFormatterPipe
|
52
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<RelativeShortDateFormatterPipe
|
56
|
+
constructor(adapter: DateAdapter<D>, formatter: DateFormatter<D>);
|
57
|
+
transform(value: D | string): string;
|
58
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RelativeShortDateFormatterPipe<any>, never>;
|
59
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<RelativeShortDateFormatterPipe<any>, "relativeShortDate", false>;
|
53
60
|
}
|
54
|
-
export declare class RelativeShortDateTimeFormatterPipe implements PipeTransform {
|
61
|
+
export declare class RelativeShortDateTimeFormatterPipe<D> implements PipeTransform {
|
62
|
+
private adapter;
|
55
63
|
private formatter;
|
56
|
-
constructor(formatter: DateFormatter<
|
57
|
-
transform(value:
|
58
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<RelativeShortDateTimeFormatterPipe
|
59
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<RelativeShortDateTimeFormatterPipe
|
64
|
+
constructor(adapter: DateAdapter<D>, formatter: DateFormatter<D>);
|
65
|
+
transform(value: D | string, options?: DateTimeOptions): string;
|
66
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RelativeShortDateTimeFormatterPipe<any>, never>;
|
67
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<RelativeShortDateTimeFormatterPipe<any>, "relativeShortDateTime", false>;
|
60
68
|
}
|
61
|
-
export declare class RangeDateFormatterPipe implements PipeTransform {
|
69
|
+
export declare class RangeDateFormatterPipe<D> implements PipeTransform {
|
70
|
+
private adapter;
|
62
71
|
private formatter;
|
63
|
-
constructor(formatter: DateFormatter<
|
64
|
-
transform([value1, value2]:
|
65
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<RangeDateFormatterPipe
|
66
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<RangeDateFormatterPipe
|
72
|
+
constructor(adapter: DateAdapter<D>, formatter: DateFormatter<D>);
|
73
|
+
transform([value1, value2]: D[] | string[]): string;
|
74
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RangeDateFormatterPipe<any>, never>;
|
75
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<RangeDateFormatterPipe<any>, "rangeLongDate", false>;
|
67
76
|
}
|
68
|
-
export declare class RangeShortDateFormatterPipe implements PipeTransform {
|
77
|
+
export declare class RangeShortDateFormatterPipe<D> implements PipeTransform {
|
78
|
+
private adapter;
|
69
79
|
private formatter;
|
70
|
-
constructor(formatter: DateFormatter<
|
71
|
-
transform([value1, value2]:
|
72
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<RangeShortDateFormatterPipe
|
73
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<RangeShortDateFormatterPipe
|
80
|
+
constructor(adapter: DateAdapter<D>, formatter: DateFormatter<D>);
|
81
|
+
transform([value1, value2]: D[] | string[]): string;
|
82
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RangeShortDateFormatterPipe<any>, never>;
|
83
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<RangeShortDateFormatterPipe<any>, "rangeShortDate", false>;
|
74
84
|
}
|
75
|
-
export declare class RangeDateTimeFormatterPipe implements PipeTransform {
|
85
|
+
export declare class RangeDateTimeFormatterPipe<D> implements PipeTransform {
|
86
|
+
private adapter;
|
76
87
|
private formatter;
|
77
|
-
constructor(formatter: DateFormatter<
|
78
|
-
transform([value1, value2]:
|
79
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<RangeDateTimeFormatterPipe
|
80
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<RangeDateTimeFormatterPipe
|
88
|
+
constructor(adapter: DateAdapter<D>, formatter: DateFormatter<D>);
|
89
|
+
transform([value1, value2]: D[] | string[], options?: DateTimeOptions): string;
|
90
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RangeDateTimeFormatterPipe<any>, never>;
|
91
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<RangeDateTimeFormatterPipe<any>, "rangeLongDateTime", false>;
|
81
92
|
}
|
82
|
-
export declare class RangeMiddleDateTimeFormatterPipe implements PipeTransform {
|
93
|
+
export declare class RangeMiddleDateTimeFormatterPipe<D> implements PipeTransform {
|
94
|
+
private adapter;
|
83
95
|
private formatter;
|
84
|
-
constructor(formatter: DateFormatter<
|
85
|
-
transform([value1, value2]:
|
86
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<RangeMiddleDateTimeFormatterPipe
|
87
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<RangeMiddleDateTimeFormatterPipe
|
96
|
+
constructor(adapter: DateAdapter<D>, formatter: DateFormatter<D>);
|
97
|
+
transform([value1, value2]: D[] | string[], options?: DateTimeOptions): string;
|
98
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RangeMiddleDateTimeFormatterPipe<any>, never>;
|
99
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<RangeMiddleDateTimeFormatterPipe<any>, "rangeMiddleDateTime", false>;
|
88
100
|
}
|
89
|
-
export declare class RangeShortDateTimeFormatterPipe implements PipeTransform {
|
101
|
+
export declare class RangeShortDateTimeFormatterPipe<D> implements PipeTransform {
|
102
|
+
private adapter;
|
90
103
|
private formatter;
|
91
|
-
constructor(formatter: DateFormatter<
|
92
|
-
transform([value1, value2]:
|
93
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<RangeShortDateTimeFormatterPipe
|
94
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<RangeShortDateTimeFormatterPipe
|
104
|
+
constructor(adapter: DateAdapter<D>, formatter: DateFormatter<D>);
|
105
|
+
transform([value1, value2]: D[] | string[], options?: DateTimeOptions): string;
|
106
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RangeShortDateTimeFormatterPipe<any>, never>;
|
107
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<RangeShortDateTimeFormatterPipe<any>, "rangeShortDateTime", false>;
|
95
108
|
}
|
@@ -1,11 +1,20 @@
|
|
1
1
|
import { InjectionToken, PipeTransform } from '@angular/core';
|
2
2
|
import * as i0 from "@angular/core";
|
3
3
|
export declare const MC_LOCALE_ID: InjectionToken<string>;
|
4
|
+
export declare const MC_NUMBER_FORMATTER_OPTIONS: InjectionToken<string>;
|
5
|
+
export declare const MC_NUMBER_FORMATTER_DEFAULT_OPTIONS: ParsedDigitsInfo;
|
4
6
|
export declare const DEFAULT_MC_LOCALE_ID = "ru";
|
5
7
|
export declare const NUMBER_FORMAT_REGEXP: RegExp;
|
8
|
+
declare class ParsedDigitsInfo {
|
9
|
+
useGrouping: boolean;
|
10
|
+
minimumIntegerDigits: number;
|
11
|
+
minimumFractionDigits: number;
|
12
|
+
maximumFractionDigits: number;
|
13
|
+
}
|
6
14
|
export declare class McDecimalPipe implements PipeTransform {
|
7
|
-
private
|
8
|
-
|
15
|
+
private locale;
|
16
|
+
private readonly options;
|
17
|
+
constructor(locale: string, options: ParsedDigitsInfo);
|
9
18
|
/**
|
10
19
|
* @param value The number to be formatted.
|
11
20
|
* @param digitsInfo Decimal representation options, specified by a string
|
@@ -21,7 +30,8 @@ export declare class McDecimalPipe implements PipeTransform {
|
|
21
30
|
* When not supplied, uses the value of `MC_LOCALE_ID`, which is `ru` by default.
|
22
31
|
*/
|
23
32
|
transform(value: any, digitsInfo?: string, locale?: string): string | null;
|
24
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<McDecimalPipe, [{ optional: true; }]>;
|
33
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<McDecimalPipe, [{ optional: true; }, { optional: true; }]>;
|
25
34
|
static ɵpipe: i0.ɵɵPipeDeclaration<McDecimalPipe, "mcNumber", false>;
|
26
35
|
static ɵprov: i0.ɵɵInjectableDeclaration<McDecimalPipe>;
|
27
36
|
}
|
37
|
+
export {};
|