@muxima-ui/core 1.4.1 → 1.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/README.md +11 -0
- package/fesm2022/muxima-ui-core-alert.mjs +5 -3
- package/fesm2022/muxima-ui-core-alert.mjs.map +1 -1
- package/fesm2022/muxima-ui-core-breadcrumb.mjs +5 -3
- package/fesm2022/muxima-ui-core-breadcrumb.mjs.map +1 -1
- package/fesm2022/muxima-ui-core-carousel.mjs +19 -17
- package/fesm2022/muxima-ui-core-carousel.mjs.map +1 -1
- package/fesm2022/muxima-ui-core-chips.mjs +19 -14
- package/fesm2022/muxima-ui-core-chips.mjs.map +1 -1
- package/fesm2022/muxima-ui-core-clipboard.mjs +10 -6
- package/fesm2022/muxima-ui-core-clipboard.mjs.map +1 -1
- package/fesm2022/muxima-ui-core-color-picker.mjs +53 -50
- package/fesm2022/muxima-ui-core-color-picker.mjs.map +1 -1
- package/fesm2022/muxima-ui-core-combobox.mjs +15 -12
- package/fesm2022/muxima-ui-core-combobox.mjs.map +1 -1
- package/fesm2022/muxima-ui-core-command.mjs +21 -16
- package/fesm2022/muxima-ui-core-command.mjs.map +1 -1
- package/fesm2022/muxima-ui-core-data-grid.mjs +50 -52
- package/fesm2022/muxima-ui-core-data-grid.mjs.map +1 -1
- package/fesm2022/muxima-ui-core-date-picker.mjs +97 -69
- package/fesm2022/muxima-ui-core-date-picker.mjs.map +1 -1
- package/fesm2022/muxima-ui-core-editor.mjs +25 -19
- package/fesm2022/muxima-ui-core-editor.mjs.map +1 -1
- package/fesm2022/muxima-ui-core-file-upload.mjs +30 -25
- package/fesm2022/muxima-ui-core-file-upload.mjs.map +1 -1
- package/fesm2022/muxima-ui-core-i18n.mjs +550 -0
- package/fesm2022/muxima-ui-core-i18n.mjs.map +1 -0
- package/fesm2022/muxima-ui-core-image-cropper.mjs +27 -24
- package/fesm2022/muxima-ui-core-image-cropper.mjs.map +1 -1
- package/fesm2022/muxima-ui-core-kanban.mjs +22 -19
- package/fesm2022/muxima-ui-core-kanban.mjs.map +1 -1
- package/fesm2022/muxima-ui-core-notification-center.mjs +41 -36
- package/fesm2022/muxima-ui-core-notification-center.mjs.map +1 -1
- package/fesm2022/muxima-ui-core-pagination.mjs +29 -26
- package/fesm2022/muxima-ui-core-pagination.mjs.map +1 -1
- package/fesm2022/muxima-ui-core-progress.mjs +5 -3
- package/fesm2022/muxima-ui-core-progress.mjs.map +1 -1
- package/fesm2022/muxima-ui-core-rating.mjs +12 -8
- package/fesm2022/muxima-ui-core-rating.mjs.map +1 -1
- package/fesm2022/muxima-ui-core-select.mjs +14 -11
- package/fesm2022/muxima-ui-core-select.mjs.map +1 -1
- package/fesm2022/muxima-ui-core-sidebar.mjs +10 -7
- package/fesm2022/muxima-ui-core-sidebar.mjs.map +1 -1
- package/fesm2022/muxima-ui-core-slider.mjs +8 -6
- package/fesm2022/muxima-ui-core-slider.mjs.map +1 -1
- package/fesm2022/muxima-ui-core-stepper.mjs +5 -3
- package/fesm2022/muxima-ui-core-stepper.mjs.map +1 -1
- package/fesm2022/muxima-ui-core-table.mjs +4 -4
- package/fesm2022/muxima-ui-core-table.mjs.map +1 -1
- package/fesm2022/muxima-ui-core-time-picker.mjs +7 -5
- package/fesm2022/muxima-ui-core-time-picker.mjs.map +1 -1
- package/fesm2022/muxima-ui-core-toast.mjs +8 -5
- package/fesm2022/muxima-ui-core-toast.mjs.map +1 -1
- package/fesm2022/muxima-ui-core-tour.mjs +10 -11
- package/fesm2022/muxima-ui-core-tour.mjs.map +1 -1
- package/fesm2022/muxima-ui-core.mjs +1 -1
- package/fesm2022/muxima-ui-core.mjs.map +1 -1
- package/package.json +5 -1
- package/types/muxima-ui-core-alert.d.ts +3 -1
- package/types/muxima-ui-core-breadcrumb.d.ts +6 -4
- package/types/muxima-ui-core-carousel.d.ts +4 -2
- package/types/muxima-ui-core-chips.d.ts +23 -3
- package/types/muxima-ui-core-clipboard.d.ts +6 -3
- package/types/muxima-ui-core-color-picker.d.ts +40 -7
- package/types/muxima-ui-core-combobox.d.ts +6 -3
- package/types/muxima-ui-core-command.d.ts +7 -3
- package/types/muxima-ui-core-data-grid.d.ts +31 -11
- package/types/muxima-ui-core-date-picker.d.ts +59 -14
- package/types/muxima-ui-core-editor.d.ts +13 -2
- package/types/muxima-ui-core-file-upload.d.ts +22 -6
- package/types/muxima-ui-core-i18n.d.ts +322 -0
- package/types/muxima-ui-core-image-cropper.d.ts +19 -6
- package/types/muxima-ui-core-kanban.d.ts +16 -3
- package/types/muxima-ui-core-notification-center.d.ts +30 -8
- package/types/muxima-ui-core-pagination.d.ts +16 -1
- package/types/muxima-ui-core-progress.d.ts +10 -8
- package/types/muxima-ui-core-rating.d.ts +6 -2
- package/types/muxima-ui-core-select.d.ts +6 -3
- package/types/muxima-ui-core-sidebar.d.ts +6 -3
- package/types/muxima-ui-core-slider.d.ts +4 -2
- package/types/muxima-ui-core-stepper.d.ts +10 -8
- package/types/muxima-ui-core-table.d.ts +3 -3
- package/types/muxima-ui-core-time-picker.d.ts +3 -1
- package/types/muxima-ui-core-toast.d.ts +3 -0
- package/types/muxima-ui-core-tour.d.ts +6 -1
- package/types/muxima-ui-core.d.ts +1 -1
|
@@ -48,10 +48,10 @@ declare class MxSortHeader {
|
|
|
48
48
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<MxSortHeader, "th[mxSortHeader]", never, { "key": { "alias": "mxSortHeader"; "required": true; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
49
49
|
}
|
|
50
50
|
/**
|
|
51
|
-
* Ordena uma lista segundo o estado de `MxTable`. Texto é comparado
|
|
52
|
-
* (acentos e maiúsculas), números numericamente.
|
|
51
|
+
* Ordena uma lista segundo o estado de `MxTable`. Texto é comparado segundo `locale`
|
|
52
|
+
* (português por omissão; acentos e maiúsculas contam como a mesma letra), números numericamente.
|
|
53
53
|
*/
|
|
54
|
-
declare function mxSortData<T>(rows: readonly T[], sort: MxSortState, accessor?: (row: T, key: string) => unknown): T[];
|
|
54
|
+
declare function mxSortData<T>(rows: readonly T[], sort: MxSortState, accessor?: (row: T, key: string) => unknown, locale?: string): T[];
|
|
55
55
|
declare const MX_TABLE: readonly [typeof MxTable, typeof MxSortHeader];
|
|
56
56
|
|
|
57
57
|
export { MX_TABLE, MxSortHeader, MxTable, mxSortData };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as _muxima_ui_core_i18n from '@muxima-ui/core/i18n';
|
|
1
2
|
import * as _angular_core from '@angular/core';
|
|
2
3
|
import { ConnectedPosition } from '@angular/cdk/overlay';
|
|
3
4
|
import { ControlValueAccessor } from '@angular/forms';
|
|
@@ -31,7 +32,8 @@ declare class MxTimePicker implements ControlValueAccessor, MxFormFieldControl {
|
|
|
31
32
|
/** Primeira e última hora permitidas, "HH:mm". */
|
|
32
33
|
readonly min: _angular_core.InputSignal<string | null>;
|
|
33
34
|
readonly max: _angular_core.InputSignal<string | null>;
|
|
34
|
-
readonly placeholder: _angular_core.InputSignal<string>;
|
|
35
|
+
readonly placeholder: _angular_core.InputSignal<string | undefined>;
|
|
36
|
+
protected readonly i18n: _angular_core.Signal<_muxima_ui_core_i18n.MxMessages>;
|
|
35
37
|
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
36
38
|
readonly required: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
37
39
|
readonly invalid: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
+
import * as _muxima_ui_core_i18n from '@muxima-ui/core/i18n';
|
|
2
3
|
|
|
3
4
|
type MxToastVariant = 'default' | 'info' | 'success' | 'warning' | 'danger';
|
|
4
5
|
type MxToastPosition = 'bottom-right' | 'bottom-left' | 'bottom-center' | 'top-right' | 'top-left' | 'top-center';
|
|
@@ -30,6 +31,7 @@ interface MxToastItem {
|
|
|
30
31
|
}
|
|
31
32
|
/** Pilha de notificações. Criada uma vez pelo MxToast; não se usa directamente. */
|
|
32
33
|
declare class MxToaster {
|
|
34
|
+
protected readonly i18n: i0.Signal<_muxima_ui_core_i18n.MxMessages>;
|
|
33
35
|
readonly toasts: i0.WritableSignal<MxToastItem[]>;
|
|
34
36
|
readonly position: i0.WritableSignal<MxToastPosition>;
|
|
35
37
|
private readonly timers;
|
|
@@ -62,6 +64,7 @@ declare class MxToast {
|
|
|
62
64
|
private readonly appRef;
|
|
63
65
|
private readonly envInjector;
|
|
64
66
|
private readonly announcer;
|
|
67
|
+
private readonly i18n;
|
|
65
68
|
private toaster?;
|
|
66
69
|
private nextId;
|
|
67
70
|
private positionValue;
|
|
@@ -35,6 +35,10 @@ interface MxTourLabels {
|
|
|
35
35
|
/** Texto do progresso, por exemplo "Passo 2 de 5". */
|
|
36
36
|
progress: (current: number, total: number) => string;
|
|
37
37
|
}
|
|
38
|
+
/**
|
|
39
|
+
* Textos em português.
|
|
40
|
+
* @deprecated Os textos por omissão vêm agora do idioma activo (`MxI18n`); usa `MX_MESSAGES_PT.tour`.
|
|
41
|
+
*/
|
|
38
42
|
declare const MX_TOUR_LABELS: MxTourLabels;
|
|
39
43
|
interface MxTourOptions {
|
|
40
44
|
/** Passo inicial (base 0). */
|
|
@@ -65,7 +69,7 @@ declare class MxTourRef {
|
|
|
65
69
|
readonly showDots: boolean;
|
|
66
70
|
private resolve;
|
|
67
71
|
private done;
|
|
68
|
-
constructor(steps: readonly MxTourStep[], options: MxTourOptions, onClose: (r: MxTourResult) => void);
|
|
72
|
+
constructor(steps: readonly MxTourStep[], options: MxTourOptions, onClose: (r: MxTourResult) => void, defaults?: MxTourLabels);
|
|
69
73
|
get isOpen(): boolean;
|
|
70
74
|
get isLast(): boolean;
|
|
71
75
|
next(): void;
|
|
@@ -134,6 +138,7 @@ declare class MxTourPanel {
|
|
|
134
138
|
*/
|
|
135
139
|
declare class MxTour {
|
|
136
140
|
private readonly injector;
|
|
141
|
+
private readonly i18n;
|
|
137
142
|
private readonly anchors;
|
|
138
143
|
private overlayRef?;
|
|
139
144
|
/** A visita em curso, ou null. */
|