@ptsecurity/mosaic 17.3.0 → 17.4.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/autocomplete/autocomplete-trigger.directive.d.ts +1 -0
- package/button/button.scss +14 -4
- package/checkbox/checkbox.d.ts +6 -6
- package/core/animation/animation.d.ts +2 -1
- package/core/common-behaviors/checkbox.d.ts +1 -0
- package/core/common-behaviors/index.d.ts +1 -0
- package/core/forms/index.d.ts +1 -0
- package/core/forms/validators.d.ts +22 -0
- package/core/locales/en-US.d.ts +17 -0
- package/core/locales/es-LA.d.ts +17 -0
- package/core/locales/fa-IR.d.ts +17 -0
- package/core/locales/index.d.ts +7 -0
- package/core/locales/locale-service.d.ts +175 -0
- package/core/locales/pt-BR.d.ts +17 -0
- package/core/locales/ru-RU.d.ts +17 -0
- package/core/locales/tk-TM.d.ts +64 -0
- package/core/locales/zh-CN.d.ts +17 -0
- package/core/pop-up/constants.d.ts +9 -0
- package/core/pop-up/pop-up-trigger.d.ts +25 -9
- package/core/pop-up/pop-up.d.ts +3 -3
- package/core/styles/theming/_theming.scss +1 -0
- package/datepicker/calendar-header.component.d.ts +11 -5
- package/datepicker/datepicker-input.directive.d.ts +10 -0
- package/dropdown/dropdown-trigger.directive.d.ts +1 -1
- package/ellipsis-center/ellipsis-center.directive.d.ts +3 -7
- package/esm2022/autocomplete/autocomplete-trigger.directive.mjs +13 -5
- package/esm2022/button/button.component.mjs +2 -2
- package/esm2022/checkbox/checkbox.mjs +5 -5
- package/esm2022/code-block/actionbar.component.mjs +1 -1
- package/esm2022/core/animation/animation.mjs +2 -1
- package/esm2022/core/common-behaviors/checkbox.mjs +2 -0
- package/esm2022/core/common-behaviors/index.mjs +2 -1
- package/esm2022/core/forms/index.mjs +2 -1
- package/esm2022/core/forms/validators.mjs +33 -0
- package/esm2022/core/locales/en-US.mjs +19 -2
- package/esm2022/core/locales/es-LA.mjs +19 -2
- package/esm2022/core/locales/fa-IR.mjs +19 -2
- package/esm2022/core/locales/index.mjs +8 -1
- package/esm2022/core/locales/locale-service.mjs +39 -3
- package/esm2022/core/locales/pt-BR.mjs +19 -2
- package/esm2022/core/locales/ru-RU.mjs +19 -2
- package/esm2022/core/locales/tk-TM.mjs +63 -0
- package/esm2022/core/locales/zh-CN.mjs +19 -2
- package/esm2022/core/pop-up/constants.mjs +6 -1
- package/esm2022/core/pop-up/pop-up-trigger.mjs +68 -21
- package/esm2022/core/pop-up/pop-up.mjs +7 -6
- package/esm2022/core/version.mjs +2 -2
- package/esm2022/datepicker/calendar-header.component.mjs +40 -10
- package/esm2022/datepicker/datepicker-input.directive.mjs +103 -23
- package/esm2022/dropdown/dropdown-trigger.directive.mjs +2 -2
- package/esm2022/ellipsis-center/ellipsis-center.directive.mjs +12 -23
- package/esm2022/file-upload/file-upload.mjs +39 -2
- package/esm2022/file-upload/file-upload.module.mjs +8 -1
- package/esm2022/file-upload/multiple-file-upload.component.mjs +157 -42
- package/esm2022/file-upload/single-file-upload.component.mjs +140 -38
- package/esm2022/form-field/form-field.mjs +6 -6
- package/esm2022/form-field/validate.directive.mjs +5 -2
- package/esm2022/input/input-number.mjs +31 -59
- package/esm2022/input/input-password.mjs +15 -26
- package/esm2022/input/input.mjs +3 -3
- package/esm2022/loader-overlay/loader-overlay.component.mjs +10 -8
- package/esm2022/modal/modal.component.mjs +3 -3
- package/esm2022/modal/modal.directive.mjs +38 -7
- package/esm2022/navbar/navbar-item.component.mjs +16 -30
- package/esm2022/popover/popover-confirm.component.mjs +11 -20
- package/esm2022/popover/popover.component.mjs +27 -29
- package/esm2022/progress-spinner/progress-spinner.component.mjs +2 -2
- package/esm2022/select/select-option.directive.mjs +7 -18
- package/esm2022/select/select.component.mjs +9 -6
- package/esm2022/sidebar/sidebar.component.mjs +10 -6
- package/esm2022/tabs/tab-group.component.mjs +1 -1
- package/esm2022/tabs/tab-header.component.mjs +2 -2
- package/esm2022/timezone/timezone-option.directive.mjs +7 -18
- package/esm2022/title/title.directive.mjs +7 -18
- package/esm2022/toggle/toggle.component.mjs +103 -18
- package/esm2022/tooltip/tooltip.component.mjs +72 -45
- package/esm2022/tree-select/tree-select.component.mjs +8 -6
- package/fesm2022/ptsecurity-mosaic-autocomplete.mjs +12 -4
- package/fesm2022/ptsecurity-mosaic-autocomplete.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-button.mjs +2 -2
- package/fesm2022/ptsecurity-mosaic-button.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-checkbox.mjs +4 -4
- package/fesm2022/ptsecurity-mosaic-checkbox.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-code-block.mjs +1 -1
- package/fesm2022/ptsecurity-mosaic-code-block.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-core.mjs +322 -36
- package/fesm2022/ptsecurity-mosaic-core.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-datepicker.mjs +141 -31
- package/fesm2022/ptsecurity-mosaic-datepicker.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-dropdown.mjs +1 -1
- package/fesm2022/ptsecurity-mosaic-dropdown.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-ellipsis-center.mjs +11 -19
- package/fesm2022/ptsecurity-mosaic-ellipsis-center.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-file-upload.mjs +327 -73
- package/fesm2022/ptsecurity-mosaic-file-upload.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-form-field.mjs +9 -6
- package/fesm2022/ptsecurity-mosaic-form-field.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-input.mjs +39 -75
- package/fesm2022/ptsecurity-mosaic-input.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-loader-overlay.mjs +10 -8
- package/fesm2022/ptsecurity-mosaic-loader-overlay.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-modal.mjs +32 -7
- package/fesm2022/ptsecurity-mosaic-modal.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-navbar.mjs +14 -26
- package/fesm2022/ptsecurity-mosaic-navbar.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-popover.mjs +33 -39
- package/fesm2022/ptsecurity-mosaic-popover.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-progress-spinner.mjs +2 -2
- package/fesm2022/ptsecurity-mosaic-progress-spinner.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-select.mjs +25 -28
- package/fesm2022/ptsecurity-mosaic-select.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-sidebar.mjs +8 -4
- package/fesm2022/ptsecurity-mosaic-sidebar.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-tabs.mjs +3 -3
- package/fesm2022/ptsecurity-mosaic-tabs.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-timezone.mjs +10 -17
- package/fesm2022/ptsecurity-mosaic-timezone.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-title.mjs +6 -14
- package/fesm2022/ptsecurity-mosaic-title.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-toggle.mjs +102 -17
- package/fesm2022/ptsecurity-mosaic-toggle.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-tooltip.mjs +71 -42
- package/fesm2022/ptsecurity-mosaic-tooltip.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-tree-select.mjs +7 -5
- package/fesm2022/ptsecurity-mosaic-tree-select.mjs.map +1 -1
- package/file-upload/_file-upload-theme.scss +23 -13
- package/file-upload/file-upload.d.ts +31 -3
- package/file-upload/file-upload.module.d.ts +11 -10
- package/file-upload/file-upload.scss +8 -1
- package/file-upload/multiple-file-upload.component.d.ts +62 -10
- package/file-upload/multiple-file-upload.component.scss +0 -8
- package/file-upload/single-file-upload.component.d.ts +55 -11
- package/file-upload/single-file-upload.component.scss +0 -8
- package/form-field/form-field.d.ts +1 -1
- package/form-field/validate.directive.d.ts +5 -2
- package/input/input-number.d.ts +10 -11
- package/input/input-password.d.ts +3 -6
- package/input/input.d.ts +1 -1
- package/loader-overlay/loader-overlay.component.d.ts +4 -3
- package/modal/modal.directive.d.ts +4 -1
- package/navbar/navbar-item.component.d.ts +5 -7
- package/package.json +8 -8
- package/popover/popover-confirm.component.d.ts +3 -6
- package/popover/popover.component.d.ts +9 -6
- package/prebuilt-themes/dark-theme.css +1 -1
- package/prebuilt-themes/default-theme.css +1 -1
- package/progress-spinner/progress-spinner.scss +1 -0
- package/select/select-option.directive.d.ts +3 -6
- package/sidebar/sidebar.component.d.ts +3 -2
- package/tabs/tab-header.scss +2 -2
- package/timezone/timezone-option.directive.d.ts +3 -6
- package/title/title.directive.d.ts +3 -6
- package/toggle/_toggle-theme.scss +7 -1
- package/toggle/toggle.component.d.ts +23 -6
- package/toggle/toggle.scss +23 -0
- package/tooltip/tooltip.component.d.ts +25 -13
@@ -124,6 +124,7 @@ export declare class McAutocompleteTrigger implements AfterViewInit, ControlValu
|
|
124
124
|
handleFocus(): void;
|
125
125
|
handleClick($event: MouseEvent): void;
|
126
126
|
scrollActiveOptionIntoView(): void;
|
127
|
+
private get activeElement();
|
127
128
|
/** Stream of clicks outside of the autocomplete panel. */
|
128
129
|
private getOutsideClickStream;
|
129
130
|
/**
|
package/button/button.scss
CHANGED
@@ -12,8 +12,13 @@ $tokens: meta.module-variables(tokens) !default;
|
|
12
12
|
.mc-button {
|
13
13
|
@extend %mc-button-base;
|
14
14
|
|
15
|
-
padding
|
16
|
-
|
15
|
+
$horizontal-padding: calc(
|
16
|
+
mc-css-variable(button-size-horizontal-padding) -
|
17
|
+
#{mc-css-variable(button-size-border-width)}
|
18
|
+
);
|
19
|
+
|
20
|
+
padding-left: $horizontal-padding;
|
21
|
+
padding-right: $horizontal-padding;
|
17
22
|
}
|
18
23
|
|
19
24
|
.mc-light-button {
|
@@ -23,8 +28,13 @@ $tokens: meta.module-variables(tokens) !default;
|
|
23
28
|
.mc-icon-button {
|
24
29
|
@extend %mc-button-base;
|
25
30
|
|
26
|
-
padding
|
27
|
-
|
31
|
+
$horizontal-padding: calc(
|
32
|
+
mc-css-variable(icon-button-size-horizontal-padding) -
|
33
|
+
#{mc-css-variable(button-size-border-width)}
|
34
|
+
);
|
35
|
+
|
36
|
+
padding-left: $horizontal-padding;
|
37
|
+
padding-right: $horizontal-padding;
|
28
38
|
}
|
29
39
|
|
30
40
|
.mc-button-overlay {
|
package/checkbox/checkbox.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { FocusMonitor } from '@angular/cdk/a11y';
|
2
2
|
import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy } from '@angular/core';
|
3
3
|
import { ControlValueAccessor } from '@angular/forms';
|
4
|
-
import { CanColor, CanColorCtor, CanDisable, CanDisableCtor, HasTabIndex, HasTabIndexCtor } from '@ptsecurity/mosaic/core';
|
4
|
+
import { CanColor, CanColorCtor, CanDisable, CanDisableCtor, HasTabIndex, HasTabIndexCtor, checkedState } from '@ptsecurity/mosaic/core';
|
5
5
|
import { McCheckboxClickAction } from './checkbox-config';
|
6
6
|
import * as i0 from "@angular/core";
|
7
7
|
/**
|
@@ -16,13 +16,13 @@ export declare const MC_CHECKBOX_CONTROL_VALUE_ACCESSOR: any;
|
|
16
16
|
*/
|
17
17
|
export declare enum TransitionCheckState {
|
18
18
|
/** The initial state of the component before any user interaction. */
|
19
|
-
Init =
|
19
|
+
Init = "init",
|
20
20
|
/** The state representing the component when it's becoming checked. */
|
21
|
-
Checked =
|
21
|
+
Checked = "checked",
|
22
22
|
/** The state representing the component when it's becoming unchecked. */
|
23
|
-
Unchecked =
|
23
|
+
Unchecked = "unchecked",
|
24
24
|
/** The state representing the component when it's becoming indeterminate. */
|
25
|
-
Indeterminate =
|
25
|
+
Indeterminate = "indeterminate"
|
26
26
|
}
|
27
27
|
/** Change event object emitted by McCheckbox. */
|
28
28
|
export declare class McCheckboxChange {
|
@@ -108,7 +108,7 @@ export declare class McCheckbox extends McCheckboxMixinBase implements ControlVa
|
|
108
108
|
registerOnChange(fn: (value: any) => void): void;
|
109
109
|
registerOnTouched(fn: any): void;
|
110
110
|
setDisabledState(isDisabled: boolean): void;
|
111
|
-
getAriaChecked():
|
111
|
+
getAriaChecked(): checkedState;
|
112
112
|
/** Toggles the `checked` state of the checkbox. */
|
113
113
|
toggle(): void;
|
114
114
|
/**
|
@@ -2,5 +2,6 @@ export declare enum AnimationCurves {
|
|
2
2
|
StandardCurve = "cubic-bezier(0.4,0.0,0.2,1)",
|
3
3
|
DecelerationCurve = "cubic-bezier(0.0,0.0,0.2,1)",
|
4
4
|
AccelerationCurve = "cubic-bezier(0.4,0.0,1,1)",
|
5
|
-
SharpCurve = "cubic-bezier(0.4,0.0,0.6,1)"
|
5
|
+
SharpCurve = "cubic-bezier(0.4,0.0,0.6,1)",
|
6
|
+
EaseInOut = "ease-in-out"
|
6
7
|
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export type checkedState = 'true' | 'false' | 'mixed';
|
@@ -4,4 +4,5 @@ export { CanDisable, CanDisableCtor, mixinDisabled } from './disabled';
|
|
4
4
|
export { CanColor, CanColorCtor, mixinColor, ThemePalette } from './color';
|
5
5
|
export { HasTabIndex, HasTabIndexCtor, mixinTabIndex } from './tabindex';
|
6
6
|
export { CanUpdateErrorStateCtor, CanUpdateErrorState, mixinErrorState } from './error-state';
|
7
|
+
export * from './checkbox';
|
7
8
|
export declare const MC_PARENT_ANIMATION_COMPONENT: InjectionToken<any>;
|
package/core/forms/index.d.ts
CHANGED
@@ -0,0 +1,22 @@
|
|
1
|
+
import { ValidatorFn } from '@angular/forms';
|
2
|
+
/** Provides a set of validators for file-related form controls. */
|
3
|
+
export declare class FileValidators {
|
4
|
+
/**
|
5
|
+
* Validator that checks if the file size is less than or equal to the provided `maxSize`.
|
6
|
+
*
|
7
|
+
* @param maxSize - The maximum allowed file size in bytes.
|
8
|
+
*
|
9
|
+
* @returns A ValidatorFn function that checks the file size.
|
10
|
+
*
|
11
|
+
* ## Usage:
|
12
|
+
*
|
13
|
+
* ```typescript
|
14
|
+
* const control = new FormControl(null, [FileValidators.maxFileSize(1024 * 1024)]); // 1MB
|
15
|
+
* control.setValue(FILE_LESS_OR_EQUAL_THAN_1MB);
|
16
|
+
* console.log(control.errors); // null
|
17
|
+
* control.setValue(FILE_MORE_THAN_1MB);
|
18
|
+
* console.log(control.errors); // {maxFileSize: { max: 1048576, actual: FILE_MORE_THAN_1MB.size }}
|
19
|
+
* ```
|
20
|
+
*/
|
21
|
+
static maxFileSize(maxSize: number): ValidatorFn;
|
22
|
+
}
|
package/core/locales/en-US.d.ts
CHANGED
@@ -25,5 +25,22 @@ export declare const enUSLocaleData: {
|
|
25
25
|
fractionSeparator: string;
|
26
26
|
};
|
27
27
|
};
|
28
|
+
fileUpload: {
|
29
|
+
single: {
|
30
|
+
captionText: string;
|
31
|
+
browseLink: string;
|
32
|
+
};
|
33
|
+
multiple: {
|
34
|
+
captionText: string;
|
35
|
+
captionTextWhenSelected: string;
|
36
|
+
captionTextForCompactSize: string;
|
37
|
+
browseLink: string;
|
38
|
+
title: string;
|
39
|
+
gridHeaders: {
|
40
|
+
file: string;
|
41
|
+
size: string;
|
42
|
+
};
|
43
|
+
};
|
44
|
+
};
|
28
45
|
};
|
29
46
|
};
|
package/core/locales/es-LA.d.ts
CHANGED
@@ -30,5 +30,22 @@ export declare const esLALocaleData: {
|
|
30
30
|
fractionSeparator: string;
|
31
31
|
};
|
32
32
|
};
|
33
|
+
fileUpload: {
|
34
|
+
single: {
|
35
|
+
captionText: string;
|
36
|
+
browseLink: string;
|
37
|
+
};
|
38
|
+
multiple: {
|
39
|
+
captionText: string;
|
40
|
+
captionTextWhenSelected: string;
|
41
|
+
captionTextForCompactSize: string;
|
42
|
+
browseLink: string;
|
43
|
+
title: string;
|
44
|
+
gridHeaders: {
|
45
|
+
file: string;
|
46
|
+
size: string;
|
47
|
+
};
|
48
|
+
};
|
49
|
+
};
|
33
50
|
};
|
34
51
|
};
|
package/core/locales/fa-IR.d.ts
CHANGED
@@ -31,5 +31,22 @@ export declare const faIRLocaleData: {
|
|
31
31
|
fractionSeparator: string;
|
32
32
|
};
|
33
33
|
};
|
34
|
+
fileUpload: {
|
35
|
+
single: {
|
36
|
+
captionText: string;
|
37
|
+
browseLink: string;
|
38
|
+
};
|
39
|
+
multiple: {
|
40
|
+
captionText: string;
|
41
|
+
captionTextWhenSelected: string;
|
42
|
+
captionTextForCompactSize: string;
|
43
|
+
browseLink: string;
|
44
|
+
title: string;
|
45
|
+
gridHeaders: {
|
46
|
+
file: string;
|
47
|
+
size: string;
|
48
|
+
};
|
49
|
+
};
|
50
|
+
};
|
34
51
|
};
|
35
52
|
};
|
package/core/locales/index.d.ts
CHANGED
@@ -1,2 +1,9 @@
|
|
1
1
|
export * from './locale-service';
|
2
2
|
export * from './locale-service.module';
|
3
|
+
export * from './en-US';
|
4
|
+
export * from './es-LA';
|
5
|
+
export * from './fa-IR';
|
6
|
+
export * from './pt-BR';
|
7
|
+
export * from './ru-RU';
|
8
|
+
export * from './tk-TM';
|
9
|
+
export * from './zh-CN';
|
@@ -4,6 +4,68 @@ import * as i0 from "@angular/core";
|
|
4
4
|
export declare const MC_LOCALE_ID: InjectionToken<string>;
|
5
5
|
export declare const MC_DEFAULT_LOCALE_ID = "ru-RU";
|
6
6
|
export declare function MC_DEFAULT_LOCALE_DATA_FACTORY(): {
|
7
|
+
'tk-TM': {
|
8
|
+
select: {
|
9
|
+
hiddenItemsText: string;
|
10
|
+
};
|
11
|
+
datepicker: {
|
12
|
+
placeholder: string;
|
13
|
+
};
|
14
|
+
timepicker: {
|
15
|
+
placeholder: {
|
16
|
+
full: string;
|
17
|
+
short: string;
|
18
|
+
};
|
19
|
+
};
|
20
|
+
formatters: {
|
21
|
+
number: {
|
22
|
+
rounding: {
|
23
|
+
separator: string;
|
24
|
+
groupSeparator: string;
|
25
|
+
thousand: string;
|
26
|
+
million: string;
|
27
|
+
billion: string;
|
28
|
+
trillion: string;
|
29
|
+
};
|
30
|
+
};
|
31
|
+
};
|
32
|
+
input: {
|
33
|
+
number: {
|
34
|
+
groupSeparator: string[];
|
35
|
+
fractionSeparator: string;
|
36
|
+
};
|
37
|
+
};
|
38
|
+
codeBlock: {
|
39
|
+
softWrapOnTooltip: string;
|
40
|
+
softWrapOffTooltip: string;
|
41
|
+
downloadTooltip: string;
|
42
|
+
copiedTooltip: string;
|
43
|
+
copyTooltip: string;
|
44
|
+
viewAllText: string;
|
45
|
+
viewLessText: string;
|
46
|
+
openExternalSystemTooltip: string;
|
47
|
+
};
|
48
|
+
timezone: {
|
49
|
+
searchPlaceholder: string;
|
50
|
+
};
|
51
|
+
fileUpload: {
|
52
|
+
single: {
|
53
|
+
captionText: string;
|
54
|
+
browseLink: string;
|
55
|
+
};
|
56
|
+
multiple: {
|
57
|
+
captionText: string;
|
58
|
+
captionTextWhenSelected: string;
|
59
|
+
captionTextForCompactSize: string;
|
60
|
+
browseLink: string;
|
61
|
+
title: string;
|
62
|
+
gridHeaders: {
|
63
|
+
file: string;
|
64
|
+
size: string;
|
65
|
+
};
|
66
|
+
};
|
67
|
+
};
|
68
|
+
};
|
7
69
|
'zh-CN': {
|
8
70
|
select: {
|
9
71
|
hiddenItemsText: string;
|
@@ -34,6 +96,23 @@ export declare function MC_DEFAULT_LOCALE_DATA_FACTORY(): {
|
|
34
96
|
fractionSeparator: string;
|
35
97
|
};
|
36
98
|
};
|
99
|
+
fileUpload: {
|
100
|
+
single: {
|
101
|
+
captionText: string;
|
102
|
+
browseLink: string;
|
103
|
+
};
|
104
|
+
multiple: {
|
105
|
+
captionText: string;
|
106
|
+
captionTextWhenSelected: string;
|
107
|
+
captionTextForCompactSize: string;
|
108
|
+
browseLink: string;
|
109
|
+
title: string;
|
110
|
+
gridHeaders: {
|
111
|
+
file: string;
|
112
|
+
size: string;
|
113
|
+
};
|
114
|
+
};
|
115
|
+
};
|
37
116
|
};
|
38
117
|
'pt-BR': {
|
39
118
|
select: {
|
@@ -66,6 +145,23 @@ export declare function MC_DEFAULT_LOCALE_DATA_FACTORY(): {
|
|
66
145
|
fractionSeparator: string;
|
67
146
|
};
|
68
147
|
};
|
148
|
+
fileUpload: {
|
149
|
+
single: {
|
150
|
+
captionText: string;
|
151
|
+
browseLink: string;
|
152
|
+
};
|
153
|
+
multiple: {
|
154
|
+
captionText: string;
|
155
|
+
captionTextWhenSelected: string;
|
156
|
+
captionTextForCompactSize: string;
|
157
|
+
browseLink: string;
|
158
|
+
title: string;
|
159
|
+
gridHeaders: {
|
160
|
+
file: string;
|
161
|
+
size: string;
|
162
|
+
};
|
163
|
+
};
|
164
|
+
};
|
69
165
|
};
|
70
166
|
'fa-IR': {
|
71
167
|
select: {
|
@@ -99,6 +195,23 @@ export declare function MC_DEFAULT_LOCALE_DATA_FACTORY(): {
|
|
99
195
|
fractionSeparator: string;
|
100
196
|
};
|
101
197
|
};
|
198
|
+
fileUpload: {
|
199
|
+
single: {
|
200
|
+
captionText: string;
|
201
|
+
browseLink: string;
|
202
|
+
};
|
203
|
+
multiple: {
|
204
|
+
captionText: string;
|
205
|
+
captionTextWhenSelected: string;
|
206
|
+
captionTextForCompactSize: string;
|
207
|
+
browseLink: string;
|
208
|
+
title: string;
|
209
|
+
gridHeaders: {
|
210
|
+
file: string;
|
211
|
+
size: string;
|
212
|
+
};
|
213
|
+
};
|
214
|
+
};
|
102
215
|
};
|
103
216
|
'es-LA': {
|
104
217
|
select: {
|
@@ -131,6 +244,23 @@ export declare function MC_DEFAULT_LOCALE_DATA_FACTORY(): {
|
|
131
244
|
fractionSeparator: string;
|
132
245
|
};
|
133
246
|
};
|
247
|
+
fileUpload: {
|
248
|
+
single: {
|
249
|
+
captionText: string;
|
250
|
+
browseLink: string;
|
251
|
+
};
|
252
|
+
multiple: {
|
253
|
+
captionText: string;
|
254
|
+
captionTextWhenSelected: string;
|
255
|
+
captionTextForCompactSize: string;
|
256
|
+
browseLink: string;
|
257
|
+
title: string;
|
258
|
+
gridHeaders: {
|
259
|
+
file: string;
|
260
|
+
size: string;
|
261
|
+
};
|
262
|
+
};
|
263
|
+
};
|
134
264
|
};
|
135
265
|
'en-US': {
|
136
266
|
select: {
|
@@ -158,6 +288,23 @@ export declare function MC_DEFAULT_LOCALE_DATA_FACTORY(): {
|
|
158
288
|
fractionSeparator: string;
|
159
289
|
};
|
160
290
|
};
|
291
|
+
fileUpload: {
|
292
|
+
single: {
|
293
|
+
captionText: string;
|
294
|
+
browseLink: string;
|
295
|
+
};
|
296
|
+
multiple: {
|
297
|
+
captionText: string;
|
298
|
+
captionTextWhenSelected: string;
|
299
|
+
captionTextForCompactSize: string;
|
300
|
+
browseLink: string;
|
301
|
+
title: string;
|
302
|
+
gridHeaders: {
|
303
|
+
file: string;
|
304
|
+
size: string;
|
305
|
+
};
|
306
|
+
};
|
307
|
+
};
|
161
308
|
};
|
162
309
|
'ru-RU': {
|
163
310
|
select: {
|
@@ -186,6 +333,23 @@ export declare function MC_DEFAULT_LOCALE_DATA_FACTORY(): {
|
|
186
333
|
startFormattingFrom: number;
|
187
334
|
};
|
188
335
|
};
|
336
|
+
fileUpload: {
|
337
|
+
single: {
|
338
|
+
captionText: string;
|
339
|
+
browseLink: string;
|
340
|
+
};
|
341
|
+
multiple: {
|
342
|
+
captionText: string;
|
343
|
+
captionTextWhenSelected: string;
|
344
|
+
captionTextForCompactSize: string;
|
345
|
+
browseLink: string;
|
346
|
+
title: string;
|
347
|
+
gridHeaders: {
|
348
|
+
file: string;
|
349
|
+
size: string;
|
350
|
+
};
|
351
|
+
};
|
352
|
+
};
|
189
353
|
};
|
190
354
|
items: {
|
191
355
|
id: string;
|
@@ -206,3 +370,14 @@ export declare class McLocaleService {
|
|
206
370
|
static ɵfac: i0.ɵɵFactoryDeclaration<McLocaleService, [{ optional: true; }, { optional: true; }]>;
|
207
371
|
static ɵprov: i0.ɵɵInjectableDeclaration<McLocaleService>;
|
208
372
|
}
|
373
|
+
/**
|
374
|
+
* Function that returns a string representation of a number without localized separators
|
375
|
+
*/
|
376
|
+
export declare function normalizeNumber(value: string | null | undefined, customConfig: {
|
377
|
+
groupSeparator: string[];
|
378
|
+
fractionSeparator: string;
|
379
|
+
}): string;
|
380
|
+
/**
|
381
|
+
* Function that parse string and return a number. The string can be in any locale.
|
382
|
+
*/
|
383
|
+
export declare function checkAndNormalizeLocalizedNumber(num: string | null | undefined): number | null;
|
package/core/locales/pt-BR.d.ts
CHANGED
@@ -30,5 +30,22 @@ export declare const ptBRLocaleData: {
|
|
30
30
|
fractionSeparator: string;
|
31
31
|
};
|
32
32
|
};
|
33
|
+
fileUpload: {
|
34
|
+
single: {
|
35
|
+
captionText: string;
|
36
|
+
browseLink: string;
|
37
|
+
};
|
38
|
+
multiple: {
|
39
|
+
captionText: string;
|
40
|
+
captionTextWhenSelected: string;
|
41
|
+
captionTextForCompactSize: string;
|
42
|
+
browseLink: string;
|
43
|
+
title: string;
|
44
|
+
gridHeaders: {
|
45
|
+
file: string;
|
46
|
+
size: string;
|
47
|
+
};
|
48
|
+
};
|
49
|
+
};
|
33
50
|
};
|
34
51
|
};
|
package/core/locales/ru-RU.d.ts
CHANGED
@@ -26,5 +26,22 @@ export declare const ruRULocaleData: {
|
|
26
26
|
startFormattingFrom: number;
|
27
27
|
};
|
28
28
|
};
|
29
|
+
fileUpload: {
|
30
|
+
single: {
|
31
|
+
captionText: string;
|
32
|
+
browseLink: string;
|
33
|
+
};
|
34
|
+
multiple: {
|
35
|
+
captionText: string;
|
36
|
+
captionTextWhenSelected: string;
|
37
|
+
captionTextForCompactSize: string;
|
38
|
+
browseLink: string;
|
39
|
+
title: string;
|
40
|
+
gridHeaders: {
|
41
|
+
file: string;
|
42
|
+
size: string;
|
43
|
+
};
|
44
|
+
};
|
45
|
+
};
|
29
46
|
};
|
30
47
|
};
|
@@ -0,0 +1,64 @@
|
|
1
|
+
export declare const tkTMLocaleData: {
|
2
|
+
'tk-TM': {
|
3
|
+
select: {
|
4
|
+
hiddenItemsText: string;
|
5
|
+
};
|
6
|
+
datepicker: {
|
7
|
+
placeholder: string;
|
8
|
+
};
|
9
|
+
timepicker: {
|
10
|
+
placeholder: {
|
11
|
+
full: string;
|
12
|
+
short: string;
|
13
|
+
};
|
14
|
+
};
|
15
|
+
formatters: {
|
16
|
+
number: {
|
17
|
+
rounding: {
|
18
|
+
separator: string;
|
19
|
+
groupSeparator: string;
|
20
|
+
thousand: string;
|
21
|
+
million: string;
|
22
|
+
billion: string;
|
23
|
+
trillion: string;
|
24
|
+
};
|
25
|
+
};
|
26
|
+
};
|
27
|
+
input: {
|
28
|
+
number: {
|
29
|
+
groupSeparator: string[];
|
30
|
+
fractionSeparator: string;
|
31
|
+
};
|
32
|
+
};
|
33
|
+
codeBlock: {
|
34
|
+
softWrapOnTooltip: string;
|
35
|
+
softWrapOffTooltip: string;
|
36
|
+
downloadTooltip: string;
|
37
|
+
copiedTooltip: string;
|
38
|
+
copyTooltip: string;
|
39
|
+
viewAllText: string;
|
40
|
+
viewLessText: string;
|
41
|
+
openExternalSystemTooltip: string;
|
42
|
+
};
|
43
|
+
timezone: {
|
44
|
+
searchPlaceholder: string;
|
45
|
+
};
|
46
|
+
fileUpload: {
|
47
|
+
single: {
|
48
|
+
captionText: string;
|
49
|
+
browseLink: string;
|
50
|
+
};
|
51
|
+
multiple: {
|
52
|
+
captionText: string;
|
53
|
+
captionTextWhenSelected: string;
|
54
|
+
captionTextForCompactSize: string;
|
55
|
+
browseLink: string;
|
56
|
+
title: string;
|
57
|
+
gridHeaders: {
|
58
|
+
file: string;
|
59
|
+
size: string;
|
60
|
+
};
|
61
|
+
};
|
62
|
+
};
|
63
|
+
};
|
64
|
+
};
|
package/core/locales/zh-CN.d.ts
CHANGED
@@ -29,5 +29,22 @@ export declare const znCNLocaleData: {
|
|
29
29
|
fractionSeparator: string;
|
30
30
|
};
|
31
31
|
};
|
32
|
+
fileUpload: {
|
33
|
+
single: {
|
34
|
+
captionText: string;
|
35
|
+
browseLink: string;
|
36
|
+
};
|
37
|
+
multiple: {
|
38
|
+
captionText: string;
|
39
|
+
captionTextWhenSelected: string;
|
40
|
+
captionTextForCompactSize: string;
|
41
|
+
browseLink: string;
|
42
|
+
title: string;
|
43
|
+
gridHeaders: {
|
44
|
+
file: string;
|
45
|
+
size: string;
|
46
|
+
};
|
47
|
+
};
|
48
|
+
};
|
32
49
|
};
|
33
50
|
};
|
@@ -1,3 +1,12 @@
|
|
1
|
+
import { InjectionToken } from '@angular/core';
|
2
|
+
import { Observable } from 'rxjs';
|
3
|
+
export interface McParentPopup {
|
4
|
+
closedStream: Observable<boolean>;
|
5
|
+
}
|
6
|
+
/**
|
7
|
+
* InjectionToken for providing component with popup. Used in select and tree-select for tooltip.
|
8
|
+
*/
|
9
|
+
export declare const MC_PARENT_POPUP: InjectionToken<McParentPopup>;
|
1
10
|
export declare enum PopUpPlacements {
|
2
11
|
Top = "top",
|
3
12
|
TopLeft = "topLeft",
|
@@ -1,18 +1,11 @@
|
|
1
1
|
import { Directionality } from '@angular/cdk/bidi';
|
2
|
-
import { ConnectedOverlayPositionChange, ConnectionPositionPair, Overlay, OverlayRef, ScrollDispatcher,
|
2
|
+
import { ConnectedOverlayPositionChange, ConnectionPositionPair, FlexibleConnectedPositionStrategy, Overlay, OverlayConfig, OverlayRef, ScrollDispatcher, ScrollStrategy } from '@angular/cdk/overlay';
|
3
3
|
import { ComponentPortal } from '@angular/cdk/portal';
|
4
4
|
import { ElementRef, EventEmitter, NgZone, TemplateRef, Type, ViewContainerRef } from '@angular/core';
|
5
5
|
import { Observable, Subject, Subscription } from 'rxjs';
|
6
6
|
import { PopUpPlacements } from './constants';
|
7
7
|
import * as i0 from "@angular/core";
|
8
8
|
export declare abstract class McPopUpTrigger<T> {
|
9
|
-
protected overlay: Overlay;
|
10
|
-
protected elementRef: ElementRef;
|
11
|
-
protected ngZone: NgZone;
|
12
|
-
protected scrollDispatcher: ScrollDispatcher;
|
13
|
-
protected hostView: ViewContainerRef;
|
14
|
-
protected scrollStrategy: any;
|
15
|
-
protected direction?: Directionality | undefined;
|
16
9
|
isOpen: boolean;
|
17
10
|
enterDelay: number;
|
18
11
|
leaveDelay: number;
|
@@ -22,8 +15,16 @@ export declare abstract class McPopUpTrigger<T> {
|
|
22
15
|
abstract content: string | TemplateRef<any>;
|
23
16
|
abstract placementChange: EventEmitter<string>;
|
24
17
|
abstract visibleChange: EventEmitter<boolean>;
|
18
|
+
protected readonly overlay: Overlay;
|
19
|
+
protected readonly elementRef: ElementRef;
|
20
|
+
protected readonly ngZone: NgZone;
|
21
|
+
protected readonly scrollDispatcher: ScrollDispatcher;
|
22
|
+
protected readonly hostView: ViewContainerRef;
|
23
|
+
protected readonly direction: Directionality | null;
|
24
|
+
protected abstract scrollStrategy: () => ScrollStrategy;
|
25
25
|
protected abstract originSelector: string;
|
26
26
|
protected abstract overlayConfig: OverlayConfig;
|
27
|
+
protected abstract arrowOffset: number;
|
27
28
|
protected placement: PopUpPlacements;
|
28
29
|
protected placementPriority: string | string[] | null;
|
29
30
|
protected visible: boolean;
|
@@ -40,7 +41,8 @@ export declare abstract class McPopUpTrigger<T> {
|
|
40
41
|
};
|
41
42
|
protected readonly destroyed: Subject<void>;
|
42
43
|
protected triggerName: string;
|
43
|
-
protected
|
44
|
+
protected mouseEvent?: MouseEvent;
|
45
|
+
protected strategy: FlexibleConnectedPositionStrategy;
|
44
46
|
abstract updateClassMap(newPlacement?: string): void;
|
45
47
|
abstract updateData(): void;
|
46
48
|
abstract closingActions(): Observable<any>;
|
@@ -57,14 +59,28 @@ export declare abstract class McPopUpTrigger<T> {
|
|
57
59
|
detach: () => void;
|
58
60
|
/** Create the overlay config and position strategy */
|
59
61
|
createOverlay(): OverlayRef;
|
62
|
+
resetOrigin(): void;
|
60
63
|
onPositionChange: ($event: ConnectedOverlayPositionChange) => void;
|
61
64
|
initListeners(): void;
|
62
65
|
/** Updates the position of the current popover. */
|
63
66
|
updatePosition(reapplyPosition?: boolean): void;
|
67
|
+
/**
|
68
|
+
* Returns a list of positions that are aligned with the element's dimensions and offsets.
|
69
|
+
*/
|
70
|
+
protected getAdjustedPositions(): {
|
71
|
+
offsetX?: number | undefined;
|
72
|
+
offsetY?: number | undefined;
|
73
|
+
panelClass?: string | string[] | undefined;
|
74
|
+
originX: import("@angular/cdk/overlay").HorizontalConnectionPos;
|
75
|
+
originY: import("@angular/cdk/overlay").VerticalConnectionPos;
|
76
|
+
overlayX: import("@angular/cdk/overlay").HorizontalConnectionPos;
|
77
|
+
overlayY: import("@angular/cdk/overlay").VerticalConnectionPos;
|
78
|
+
}[];
|
64
79
|
protected getPriorityPlacementStrategy(value: string | string[]): ConnectionPositionPair[];
|
65
80
|
protected getPrioritizedPositions(): ConnectionPositionPair[];
|
66
81
|
protected clearListeners(): void;
|
67
82
|
private createListener;
|
83
|
+
private saveMouseEvent;
|
68
84
|
private addEventListener;
|
69
85
|
private removeEventListener;
|
70
86
|
private subscribeOnClosingActions;
|
package/core/pop-up/pop-up.d.ts
CHANGED
@@ -1,10 +1,9 @@
|
|
1
1
|
import { AnimationEvent } from '@angular/animations';
|
2
|
-
import { ChangeDetectorRef, EventEmitter, OnDestroy, TemplateRef } from '@angular/core';
|
2
|
+
import { ChangeDetectorRef, EventEmitter, OnDestroy, Renderer2, TemplateRef } from '@angular/core';
|
3
3
|
import { Observable, Subject } from 'rxjs';
|
4
4
|
import { PopUpVisibility } from './constants';
|
5
5
|
import * as i0 from "@angular/core";
|
6
6
|
export declare abstract class McPopUp implements OnDestroy {
|
7
|
-
private changeDetectorRef;
|
8
7
|
header: string | TemplateRef<any>;
|
9
8
|
content: string | TemplateRef<any>;
|
10
9
|
context: {
|
@@ -14,13 +13,14 @@ export declare abstract class McPopUp implements OnDestroy {
|
|
14
13
|
warning: boolean;
|
15
14
|
visibility: PopUpVisibility;
|
16
15
|
visibleChange: EventEmitter<boolean>;
|
16
|
+
protected readonly renderer: Renderer2;
|
17
|
+
protected readonly changeDetectorRef: ChangeDetectorRef;
|
17
18
|
protected prefix: string;
|
18
19
|
/** Subject for notifying that the tooltip has been hidden from the view */
|
19
20
|
protected readonly onHideSubject: Subject<void>;
|
20
21
|
protected closeOnInteraction: boolean;
|
21
22
|
private showTimeoutId;
|
22
23
|
private hideTimeoutId;
|
23
|
-
protected constructor(changeDetectorRef: ChangeDetectorRef);
|
24
24
|
ngOnDestroy(): void;
|
25
25
|
isTemplateRef(value: any): boolean;
|
26
26
|
show(delay: number): void;
|