monkey-style-guide 21.2.33 → 21.2.35
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.
|
Binary file
|
package/package.json
CHANGED
|
@@ -59,7 +59,7 @@ interface MonkeyAutocompleteResponse {
|
|
|
59
59
|
data: MonkeyAutocompleteData[];
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
-
interface
|
|
62
|
+
interface MonkeyGoogleApiPlacesAddressComponents {
|
|
63
63
|
longText: string;
|
|
64
64
|
shortText: string;
|
|
65
65
|
types: [
|
|
@@ -68,17 +68,17 @@ interface GoogleApiPlacesAddressComponents {
|
|
|
68
68
|
languageCode: string;
|
|
69
69
|
[key: string]: any;
|
|
70
70
|
}
|
|
71
|
-
interface
|
|
71
|
+
interface MonkeyGoogleApiPlaces {
|
|
72
72
|
formattedAddress: string;
|
|
73
|
-
addressComponents?:
|
|
73
|
+
addressComponents?: MonkeyGoogleApiPlacesAddressComponents[];
|
|
74
74
|
adrFormatAddress?: string;
|
|
75
75
|
displayName?: {
|
|
76
76
|
text: string;
|
|
77
77
|
languageCode: string;
|
|
78
78
|
};
|
|
79
79
|
}
|
|
80
|
-
interface
|
|
81
|
-
places:
|
|
80
|
+
interface MonkeyGoogleApiPlacesResponse {
|
|
81
|
+
places: MonkeyGoogleApiPlaces[];
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
/** ************************
|
|
@@ -176,7 +176,7 @@ declare class MonkeyToastRef {
|
|
|
176
176
|
}
|
|
177
177
|
type MonkeyToastPosition = 'top-center' | 'top-left' | 'top-right' | 'bottom-center' | 'bottom-left' | 'bottom-right';
|
|
178
178
|
type MonkeyToastType = 'default' | 'success' | 'error' | 'warning' | 'question';
|
|
179
|
-
type
|
|
179
|
+
type MonkeyToastConfig = {
|
|
180
180
|
type?: MonkeyToastType;
|
|
181
181
|
icon?: string;
|
|
182
182
|
isClosable?: boolean;
|
|
@@ -189,7 +189,7 @@ type ToastConfig = {
|
|
|
189
189
|
action?: () => void;
|
|
190
190
|
closeOnAction?: boolean;
|
|
191
191
|
};
|
|
192
|
-
type
|
|
192
|
+
type MonkeyDownloadToastConfig = Pick<MonkeyToastConfig, 'message' | 'position' | 'duration' | 'keepOpen'> & {
|
|
193
193
|
id?: string;
|
|
194
194
|
progress?: number | Signal<number>;
|
|
195
195
|
onCancel?: () => void;
|
|
@@ -418,7 +418,7 @@ declare class MonkeyAutocompleteAddressComponent implements MonkeyFormFieldContr
|
|
|
418
418
|
private _resizeObserver?;
|
|
419
419
|
initialDisplayWidth: number;
|
|
420
420
|
showPopOver: boolean;
|
|
421
|
-
options:
|
|
421
|
+
options: MonkeyGoogleApiPlaces[];
|
|
422
422
|
readonly loadingDictionary: rxjs.Observable<any>;
|
|
423
423
|
readonly noDataDictionary: rxjs.Observable<any>;
|
|
424
424
|
loading: boolean;
|
|
@@ -440,8 +440,8 @@ declare class MonkeyAutocompleteAddressComponent implements MonkeyFormFieldContr
|
|
|
440
440
|
writeValue(value: any): void;
|
|
441
441
|
openPopOver(): void;
|
|
442
442
|
onInputChange(event: Event): void;
|
|
443
|
-
onSelect(option:
|
|
444
|
-
isSelected(option:
|
|
443
|
+
onSelect(option: MonkeyGoogleApiPlaces): void;
|
|
444
|
+
isSelected(option: MonkeyGoogleApiPlaces): boolean;
|
|
445
445
|
static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyAutocompleteAddressComponent, [{ optional: true; }, null]>;
|
|
446
446
|
static ɵcmp: i0.ɵɵComponentDeclaration<MonkeyAutocompleteAddressComponent, "monkey-autocomplete-address", never, { "placeholder": { "alias": "placeholder"; "required": true; }; "debounce": { "alias": "debounce"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "required": { "alias": "required"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "onChange": "onChange"; }, ["optionTemplate"], never, true, never>;
|
|
447
447
|
static ngAcceptInputType_disabled: unknown;
|
|
@@ -691,7 +691,7 @@ declare class MonkeyDownloadButtonComponent {
|
|
|
691
691
|
* MIT Licence
|
|
692
692
|
************************* */
|
|
693
693
|
declare const DOWNLOAD_TOAST_EXIT_MS = 200;
|
|
694
|
-
interface
|
|
694
|
+
interface MonkeyDownloadToastDictionary {
|
|
695
695
|
singular: string;
|
|
696
696
|
plural: string;
|
|
697
697
|
expand: string;
|
|
@@ -715,7 +715,7 @@ declare class MonkeyDownloadToastComponent {
|
|
|
715
715
|
readonly onCancel: OutputEmitterRef<void>;
|
|
716
716
|
readonly onClose: OutputEmitterRef<string>;
|
|
717
717
|
readonly onDownload: OutputEmitterRef<void>;
|
|
718
|
-
protected readonly dict: Signal<
|
|
718
|
+
protected readonly dict: Signal<MonkeyDownloadToastDictionary>;
|
|
719
719
|
protected readonly displayMessage: Signal<string>;
|
|
720
720
|
protected readonly safeProgress: Signal<number>;
|
|
721
721
|
protected readonly isBusy: Signal<boolean>;
|
|
@@ -736,25 +736,25 @@ declare class MonkeyDownloadToastComponent {
|
|
|
736
736
|
* MIT Licence
|
|
737
737
|
************************* */
|
|
738
738
|
|
|
739
|
-
interface
|
|
739
|
+
interface MonkeyDownloadStackItem {
|
|
740
740
|
id: string;
|
|
741
741
|
message: string;
|
|
742
742
|
progress: number | Signal<number>;
|
|
743
743
|
onCancel?: () => void;
|
|
744
744
|
onDownload?: () => void;
|
|
745
745
|
}
|
|
746
|
-
type
|
|
746
|
+
type MonkeyDownloadStackItemUpdate = Partial<Pick<MonkeyDownloadStackItem, 'message' | 'progress'>>;
|
|
747
747
|
interface DownloadStackRow {
|
|
748
|
-
item:
|
|
748
|
+
item: MonkeyDownloadStackItem;
|
|
749
749
|
depth: number;
|
|
750
750
|
leaving: boolean;
|
|
751
751
|
}
|
|
752
752
|
declare class MonkeyDownloadToastStackComponent {
|
|
753
753
|
protected readonly position: InputSignal<string>;
|
|
754
|
-
readonly items: WritableSignal<
|
|
754
|
+
readonly items: WritableSignal<MonkeyDownloadStackItem[]>;
|
|
755
755
|
readonly expanded: WritableSignal<boolean>;
|
|
756
756
|
readonly isMobile: WritableSignal<boolean>;
|
|
757
|
-
protected readonly dict: Signal<
|
|
757
|
+
protected readonly dict: Signal<MonkeyDownloadToastDictionary>;
|
|
758
758
|
protected readonly maxVisible: number;
|
|
759
759
|
private readonly cardEl;
|
|
760
760
|
private readonly cardHeight;
|
|
@@ -783,14 +783,14 @@ declare class MonkeyDownloadToastStackComponent {
|
|
|
783
783
|
protected onHoverMove(): void;
|
|
784
784
|
protected onHoverLeave(): void;
|
|
785
785
|
protected toggleExpanded(): void;
|
|
786
|
-
add(item:
|
|
787
|
-
update(id: string, changes:
|
|
786
|
+
add(item: MonkeyDownloadStackItem): void;
|
|
787
|
+
update(id: string, changes: MonkeyDownloadStackItemUpdate): void;
|
|
788
788
|
remove(id: string): void;
|
|
789
789
|
private unmount;
|
|
790
790
|
private clearExit;
|
|
791
|
-
protected getProgress(item:
|
|
792
|
-
protected handleCancel(item:
|
|
793
|
-
protected handleDownload(item:
|
|
791
|
+
protected getProgress(item: MonkeyDownloadStackItem): number;
|
|
792
|
+
protected handleCancel(item: MonkeyDownloadStackItem): void;
|
|
793
|
+
protected handleDownload(item: MonkeyDownloadStackItem): void;
|
|
794
794
|
protected handleClose(id: string): void;
|
|
795
795
|
static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyDownloadToastStackComponent, never>;
|
|
796
796
|
static ɵcmp: i0.ɵɵComponentDeclaration<MonkeyDownloadToastStackComponent, "monkey-download-toast-stack", never, { "position": { "alias": "position"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
@@ -801,28 +801,28 @@ declare class MonkeyDownloadToastStackComponent {
|
|
|
801
801
|
* This style guide was developed by Monkey Exchange Team
|
|
802
802
|
* MIT Licence
|
|
803
803
|
************************* */
|
|
804
|
-
type
|
|
805
|
-
interface
|
|
804
|
+
type MonkeyFilterType = 'text' | 'date' | 'currency' | 'status';
|
|
805
|
+
interface MonkeyStatusOption {
|
|
806
806
|
value: string;
|
|
807
807
|
description: string;
|
|
808
808
|
}
|
|
809
|
-
interface
|
|
809
|
+
interface MonkeyFilterOption {
|
|
810
810
|
key: string;
|
|
811
811
|
label: string;
|
|
812
812
|
icon?: string;
|
|
813
|
-
type:
|
|
813
|
+
type: MonkeyFilterType;
|
|
814
814
|
placeholder?: string;
|
|
815
815
|
minDate?: Date | string;
|
|
816
816
|
maxDate?: Date | string;
|
|
817
817
|
currency?: string;
|
|
818
|
-
statusOptions?:
|
|
818
|
+
statusOptions?: MonkeyStatusOption[];
|
|
819
819
|
/** Human-readable explanation shown in the complex filter documentation panel */
|
|
820
820
|
explanation?: string;
|
|
821
821
|
}
|
|
822
|
-
interface
|
|
822
|
+
interface MonkeyActiveFilter {
|
|
823
823
|
key: string;
|
|
824
824
|
label: string;
|
|
825
|
-
type:
|
|
825
|
+
type: MonkeyFilterType;
|
|
826
826
|
value: string | {
|
|
827
827
|
startDate: string;
|
|
828
828
|
endDate: string;
|
|
@@ -833,29 +833,29 @@ interface ActiveFilter {
|
|
|
833
833
|
displayText: string;
|
|
834
834
|
icon?: string;
|
|
835
835
|
}
|
|
836
|
-
interface
|
|
837
|
-
filterOptions:
|
|
836
|
+
interface MonkeyComplexFilterBarConfig {
|
|
837
|
+
filterOptions: MonkeyFilterOption[];
|
|
838
838
|
searchPlaceholder?: string;
|
|
839
839
|
}
|
|
840
|
-
type
|
|
841
|
-
interface
|
|
840
|
+
type MonkeyComplexFilterOperator = ':' | '>' | '<';
|
|
841
|
+
interface MonkeyComplexFilterCondition {
|
|
842
842
|
logicalOp?: 'AND' | 'OR';
|
|
843
843
|
field: string;
|
|
844
|
-
operator:
|
|
844
|
+
operator: MonkeyComplexFilterOperator;
|
|
845
845
|
value: string;
|
|
846
846
|
}
|
|
847
|
-
interface
|
|
847
|
+
interface MonkeyComplexFilterGroup {
|
|
848
848
|
/** Logical operator connecting this group to the previous one */
|
|
849
849
|
logicalOp?: 'AND' | 'OR';
|
|
850
|
-
conditions:
|
|
850
|
+
conditions: MonkeyComplexFilterCondition[];
|
|
851
851
|
}
|
|
852
|
-
interface
|
|
852
|
+
interface MonkeyComplexFilterResult {
|
|
853
853
|
raw: string;
|
|
854
|
-
groups:
|
|
854
|
+
groups: MonkeyComplexFilterGroup[];
|
|
855
855
|
}
|
|
856
|
-
type
|
|
857
|
-
interface
|
|
858
|
-
type:
|
|
856
|
+
type MonkeyAutocompleteSuggestionType = 'field' | 'logical' | 'value';
|
|
857
|
+
interface MonkeyAutocompleteSuggestion {
|
|
858
|
+
type: MonkeyAutocompleteSuggestionType;
|
|
859
859
|
label: string;
|
|
860
860
|
/** Field key shown as secondary text for field suggestions */
|
|
861
861
|
sublabel?: string;
|
|
@@ -867,18 +867,18 @@ interface AutocompleteSuggestion {
|
|
|
867
867
|
declare class MonkeyComplexFilterBarComponent implements OnInit, OnChanges, AfterViewInit, OnDestroy {
|
|
868
868
|
private _service;
|
|
869
869
|
key: i0.InputSignal<string>;
|
|
870
|
-
config: i0.InputSignal<
|
|
870
|
+
config: i0.InputSignal<MonkeyComplexFilterBarConfig | undefined>;
|
|
871
871
|
placeholder: i0.InputSignal<string | undefined>;
|
|
872
|
-
complexFilterChange: EventEmitter<
|
|
872
|
+
complexFilterChange: EventEmitter<MonkeyComplexFilterResult>;
|
|
873
873
|
private _queryInputRef?;
|
|
874
874
|
complexQuery: string;
|
|
875
875
|
queryError: string;
|
|
876
|
-
autocompleteItems:
|
|
876
|
+
autocompleteItems: MonkeyAutocompleteSuggestion[];
|
|
877
877
|
autocompleteActiveIndex: number;
|
|
878
878
|
showDocsPanel: boolean;
|
|
879
879
|
docsPanelTarget: HTMLElement | null;
|
|
880
|
-
serviceConfig: i0.Signal<
|
|
881
|
-
allFilterOptions: i0.Signal<monkey_style_guide.
|
|
880
|
+
serviceConfig: i0.Signal<MonkeyComplexFilterBarConfig | undefined>;
|
|
881
|
+
allFilterOptions: i0.Signal<monkey_style_guide.MonkeyFilterOption[]>;
|
|
882
882
|
queryPlaceholder: i0.Signal<string>;
|
|
883
883
|
hasActiveQuery: i0.Signal<boolean>;
|
|
884
884
|
constructor();
|
|
@@ -892,7 +892,7 @@ declare class MonkeyComplexFilterBarComponent implements OnInit, OnChanges, Afte
|
|
|
892
892
|
onTextareaInput(textarea: HTMLTextAreaElement): void;
|
|
893
893
|
onQueryInput(textarea: HTMLTextAreaElement): void;
|
|
894
894
|
onKeydown(event: KeyboardEvent, textarea: HTMLTextAreaElement): void;
|
|
895
|
-
onSelectSuggestion(item:
|
|
895
|
+
onSelectSuggestion(item: MonkeyAutocompleteSuggestion, textarea: HTMLTextAreaElement): void;
|
|
896
896
|
onInputBlur(): void;
|
|
897
897
|
applyQuery(): void;
|
|
898
898
|
clearQuery(): void;
|
|
@@ -902,9 +902,9 @@ declare class MonkeyComplexFilterBarComponent implements OnInit, OnChanges, Afte
|
|
|
902
902
|
static ɵcmp: i0.ɵɵComponentDeclaration<MonkeyComplexFilterBarComponent, "monkey-complex-filter-bar", never, { "key": { "alias": "key"; "required": true; "isSignal": true; }; "config": { "alias": "config"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; }, { "complexFilterChange": "complexFilterChange"; }, never, ["*"], true, never>;
|
|
903
903
|
}
|
|
904
904
|
|
|
905
|
-
interface
|
|
905
|
+
interface MonkeyFilterBarState {
|
|
906
906
|
search: string;
|
|
907
|
-
filters:
|
|
907
|
+
filters: MonkeyActiveFilter[];
|
|
908
908
|
complexQuery?: string;
|
|
909
909
|
}
|
|
910
910
|
declare class MonkeyFilterBarService {
|
|
@@ -912,22 +912,22 @@ declare class MonkeyFilterBarService {
|
|
|
912
912
|
private _activeFilters;
|
|
913
913
|
private _searchValues;
|
|
914
914
|
private _complexQueries;
|
|
915
|
-
setConfig(storageKey: string, config:
|
|
916
|
-
getConfig(storageKey: string):
|
|
917
|
-
config(storageKey: string): i0.Signal<
|
|
918
|
-
availableFilterOptions(storageKey: string):
|
|
919
|
-
getActiveFilters(storageKey: string):
|
|
920
|
-
activeFilters(storageKey: string): i0.Signal<
|
|
915
|
+
setConfig(storageKey: string, config: MonkeyComplexFilterBarConfig): void;
|
|
916
|
+
getConfig(storageKey: string): MonkeyComplexFilterBarConfig | undefined;
|
|
917
|
+
config(storageKey: string): i0.Signal<MonkeyComplexFilterBarConfig | undefined>;
|
|
918
|
+
availableFilterOptions(storageKey: string): MonkeyFilterOption[];
|
|
919
|
+
getActiveFilters(storageKey: string): MonkeyActiveFilter[];
|
|
920
|
+
activeFilters(storageKey: string): i0.Signal<MonkeyActiveFilter[]>;
|
|
921
921
|
isFilterActive(storageKey: string, filterKey: string): boolean;
|
|
922
|
-
setActiveFilters(storageKey: string, filters:
|
|
923
|
-
addFilter(storageKey: string, option:
|
|
922
|
+
setActiveFilters(storageKey: string, filters: MonkeyActiveFilter[]): void;
|
|
923
|
+
addFilter(storageKey: string, option: MonkeyFilterOption, value: string | {
|
|
924
924
|
startDate: string;
|
|
925
925
|
endDate: string;
|
|
926
926
|
} | {
|
|
927
927
|
min?: number;
|
|
928
928
|
max?: number;
|
|
929
929
|
} | string[]): void;
|
|
930
|
-
updateFilter(storageKey: string, filterKey: string, option:
|
|
930
|
+
updateFilter(storageKey: string, filterKey: string, option: MonkeyFilterOption, value: string | {
|
|
931
931
|
startDate: string;
|
|
932
932
|
endDate: string;
|
|
933
933
|
} | {
|
|
@@ -942,10 +942,10 @@ declare class MonkeyFilterBarService {
|
|
|
942
942
|
getComplexQuery(storageKey: string): string;
|
|
943
943
|
setComplexQuery(storageKey: string, query: string): void;
|
|
944
944
|
clearComplexQuery(storageKey: string): void;
|
|
945
|
-
getState(storageKey: string):
|
|
945
|
+
getState(storageKey: string): MonkeyFilterBarState;
|
|
946
946
|
state(storageKey: string): i0.Signal<{
|
|
947
947
|
search: string;
|
|
948
|
-
filters:
|
|
948
|
+
filters: MonkeyActiveFilter[];
|
|
949
949
|
complexQuery: string | undefined;
|
|
950
950
|
}>;
|
|
951
951
|
/**
|
|
@@ -956,7 +956,7 @@ declare class MonkeyFilterBarService {
|
|
|
956
956
|
* - Token with operator (fieldKey[:<>]valuePrefix) → suggest status values
|
|
957
957
|
* - Token without operator → suggest fields, AND/OR (after a complete term), and ( (at top level)
|
|
958
958
|
*/
|
|
959
|
-
getAutocompleteSuggestions(storageKey: string, query: string, cursorPos: number):
|
|
959
|
+
getAutocompleteSuggestions(storageKey: string, query: string, cursorPos: number): MonkeyAutocompleteSuggestion[];
|
|
960
960
|
/**
|
|
961
961
|
* Parses a raw complex query string into structured groups.
|
|
962
962
|
* Parenthesised expressions become a single group; bare conditions
|
|
@@ -965,7 +965,7 @@ declare class MonkeyFilterBarService {
|
|
|
965
965
|
* Example: `(a:1 OR b:2) AND c:3` →
|
|
966
966
|
* [{ conditions:[{a:1},{logicalOp:OR,b:2}] }, { logicalOp:AND, conditions:[{c:3}] }]
|
|
967
967
|
*/
|
|
968
|
-
parseComplexQuery(raw: string):
|
|
968
|
+
parseComplexQuery(raw: string): MonkeyComplexFilterGroup[];
|
|
969
969
|
private _parseConditionToken;
|
|
970
970
|
private formatFilterValuePlain;
|
|
971
971
|
static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyFilterBarService, never>;
|
|
@@ -1247,7 +1247,7 @@ declare class MonkeyFilterSegmentComponent {
|
|
|
1247
1247
|
* This style guide was developed by Monkey Exchange Team
|
|
1248
1248
|
* MIT Licence
|
|
1249
1249
|
************************* */
|
|
1250
|
-
type
|
|
1250
|
+
type MonkeyMenuAlignment = 'start' | 'end';
|
|
1251
1251
|
|
|
1252
1252
|
type MonkeyFilterTriggerVariant = 'text' | 'icon';
|
|
1253
1253
|
declare class MonkeyFilterTriggerComponent {
|
|
@@ -1260,10 +1260,10 @@ declare class MonkeyFilterTriggerComponent {
|
|
|
1260
1260
|
readonly disabled: i0.InputSignalWithTransform<boolean, unknown>;
|
|
1261
1261
|
readonly immediateExit: i0.InputSignalWithTransform<boolean, unknown>;
|
|
1262
1262
|
readonly open: i0.InputSignalWithTransform<boolean, unknown>;
|
|
1263
|
-
readonly alignment: i0.InputSignal<
|
|
1263
|
+
readonly alignment: i0.InputSignal<MonkeyMenuAlignment | null>;
|
|
1264
1264
|
readonly onOpenChange: i0.OutputEmitterRef<boolean>;
|
|
1265
1265
|
readonly ariaLabelAttr: i0.Signal<string | null>;
|
|
1266
|
-
readonly menuAlignment: i0.Signal<
|
|
1266
|
+
readonly menuAlignment: i0.Signal<MonkeyMenuAlignment>;
|
|
1267
1267
|
constructor();
|
|
1268
1268
|
toggle(): void;
|
|
1269
1269
|
onDocumentPointerdown(event: PointerEvent): void;
|
|
@@ -2194,37 +2194,37 @@ declare class MonkeyPaginationSizeComponent {
|
|
|
2194
2194
|
* This style guide was developed by Monkey Exchange Team
|
|
2195
2195
|
* MIT Licence
|
|
2196
2196
|
************************* */
|
|
2197
|
-
type
|
|
2198
|
-
interface
|
|
2197
|
+
type MonkeySortDirection = 'asc' | 'desc';
|
|
2198
|
+
interface MonkeySortState {
|
|
2199
2199
|
column: string;
|
|
2200
|
-
direction:
|
|
2200
|
+
direction: MonkeySortDirection;
|
|
2201
2201
|
}
|
|
2202
|
-
type
|
|
2203
|
-
type
|
|
2204
|
-
type
|
|
2202
|
+
type MonkeySelectionState = 'none' | 'partial' | 'all';
|
|
2203
|
+
type MonkeyColumnAlign = 'start' | 'end';
|
|
2204
|
+
type MonkeyColumnPinned = 'none' | 'left' | 'right';
|
|
2205
2205
|
interface MonkeyTableColumnState {
|
|
2206
2206
|
name: string;
|
|
2207
2207
|
hidden: boolean;
|
|
2208
|
-
pinned:
|
|
2208
|
+
pinned: MonkeyColumnPinned;
|
|
2209
2209
|
}
|
|
2210
2210
|
declare function sameColumnState(a: readonly MonkeyTableColumnState[], b: readonly MonkeyTableColumnState[]): boolean;
|
|
2211
|
-
declare function ariaSortOf(sort:
|
|
2211
|
+
declare function ariaSortOf(sort: MonkeySortState | null, column: string): MonkeySortDirection | null;
|
|
2212
2212
|
declare function interpolate(template: string, values: Record<string, string | number>): string;
|
|
2213
2213
|
declare function toggleKey(current: ReadonlySet<string>, key: string): ReadonlySet<string>;
|
|
2214
|
-
declare function selectionState(current: ReadonlySet<string>, keys: readonly string[]):
|
|
2214
|
+
declare function selectionState(current: ReadonlySet<string>, keys: readonly string[]): MonkeySelectionState;
|
|
2215
2215
|
declare function addKeys(current: ReadonlySet<string>, keys: readonly string[], limit?: number): ReadonlySet<string>;
|
|
2216
2216
|
declare function removeKeys(current: ReadonlySet<string>, keys: readonly string[]): ReadonlySet<string>;
|
|
2217
2217
|
declare function sortByOrder<T>(items: readonly T[], nameOf: (item: T) => string, order: readonly string[]): T[];
|
|
2218
2218
|
declare function mergeOrder(previous: readonly string[], next: readonly string[]): string[];
|
|
2219
|
-
interface
|
|
2219
|
+
interface MonkeyRowMetrics {
|
|
2220
2220
|
count: number;
|
|
2221
2221
|
rowHeight: number;
|
|
2222
2222
|
detailHeight: number;
|
|
2223
2223
|
openIndices: readonly number[];
|
|
2224
2224
|
}
|
|
2225
|
-
declare function totalHeight(metrics:
|
|
2226
|
-
declare function offsetOfIndex(index: number, metrics:
|
|
2227
|
-
declare function indexAtOffset(offset: number, metrics:
|
|
2225
|
+
declare function totalHeight(metrics: MonkeyRowMetrics): number;
|
|
2226
|
+
declare function offsetOfIndex(index: number, metrics: MonkeyRowMetrics): number;
|
|
2227
|
+
declare function indexAtOffset(offset: number, metrics: MonkeyRowMetrics): number;
|
|
2228
2228
|
declare function toPx(width: string | null | undefined): number;
|
|
2229
2229
|
|
|
2230
2230
|
interface MonkeyTableCellContext<T> {
|
|
@@ -2252,13 +2252,13 @@ declare class MonkeyTableColumnDirective<T = any> {
|
|
|
2252
2252
|
readonly labelHidden: i0.InputSignalWithTransform<boolean, unknown>;
|
|
2253
2253
|
readonly unit: i0.InputSignal<string>;
|
|
2254
2254
|
readonly width: i0.InputSignal<string>;
|
|
2255
|
-
readonly align: i0.InputSignal<
|
|
2255
|
+
readonly align: i0.InputSignal<MonkeyColumnAlign>;
|
|
2256
2256
|
readonly sortable: i0.InputSignalWithTransform<boolean, unknown>;
|
|
2257
2257
|
readonly sortKind: i0.InputSignal<MonkeyTableSortKind>;
|
|
2258
2258
|
readonly hideable: i0.InputSignalWithTransform<boolean, unknown>;
|
|
2259
2259
|
readonly movable: i0.InputSignalWithTransform<boolean, unknown>;
|
|
2260
2260
|
readonly pinnable: i0.InputSignalWithTransform<boolean, unknown>;
|
|
2261
|
-
readonly pinned: i0.ModelSignal<
|
|
2261
|
+
readonly pinned: i0.ModelSignal<MonkeyColumnPinned>;
|
|
2262
2262
|
readonly hidden: i0.ModelSignal<boolean>;
|
|
2263
2263
|
readonly cell: i0.Signal<MonkeyTableCellDirective<any> | undefined>;
|
|
2264
2264
|
readonly headerCell: i0.Signal<MonkeyTableHeaderCellDirective | undefined>;
|
|
@@ -2307,7 +2307,7 @@ declare class MonkeyTableVirtualScroll implements VirtualScrollStrategy {
|
|
|
2307
2307
|
onContentRendered(): void;
|
|
2308
2308
|
onRenderedOffsetChanged(): void;
|
|
2309
2309
|
scrollToIndex(index: number, behavior: ScrollBehavior): void;
|
|
2310
|
-
setMetrics(metrics:
|
|
2310
|
+
setMetrics(metrics: MonkeyRowMetrics, buffer: number): void;
|
|
2311
2311
|
private update;
|
|
2312
2312
|
}
|
|
2313
2313
|
|
|
@@ -2316,9 +2316,9 @@ interface SlotBase {
|
|
|
2316
2316
|
key: string;
|
|
2317
2317
|
width: string | null;
|
|
2318
2318
|
px: number;
|
|
2319
|
-
pinned:
|
|
2319
|
+
pinned: MonkeyColumnPinned;
|
|
2320
2320
|
offset: number;
|
|
2321
|
-
align:
|
|
2321
|
+
align: MonkeyColumnAlign;
|
|
2322
2322
|
}
|
|
2323
2323
|
type Slot<T> = (SlotBase & {
|
|
2324
2324
|
kind: 'data';
|
|
@@ -2369,7 +2369,7 @@ declare class MonkeyTableComponent<T> implements OnDestroy {
|
|
|
2369
2369
|
readonly selectionMode: i0.InputSignal<"none" | "multiple">;
|
|
2370
2370
|
readonly selected: i0.ModelSignal<ReadonlySet<string>>;
|
|
2371
2371
|
readonly maxSelected: i0.InputSignal<number>;
|
|
2372
|
-
readonly sort: i0.InputSignal<
|
|
2372
|
+
readonly sort: i0.InputSignal<MonkeySortState | null>;
|
|
2373
2373
|
readonly expandable: i0.InputSignalWithTransform<boolean, unknown>;
|
|
2374
2374
|
readonly expanded: i0.ModelSignal<ReadonlySet<string>>;
|
|
2375
2375
|
readonly reorderable: i0.InputSignalWithTransform<boolean, unknown>;
|
|
@@ -2384,7 +2384,7 @@ declare class MonkeyTableComponent<T> implements OnDestroy {
|
|
|
2384
2384
|
readonly loading: i0.InputSignalWithTransform<boolean, unknown>;
|
|
2385
2385
|
readonly emptyText: i0.InputSignal<string>;
|
|
2386
2386
|
readonly skeletonRows: i0.InputSignal<number | "auto">;
|
|
2387
|
-
readonly onSortChange: i0.OutputEmitterRef<
|
|
2387
|
+
readonly onSortChange: i0.OutputEmitterRef<MonkeySortState | null>;
|
|
2388
2388
|
readonly onColumnHidden: i0.OutputEmitterRef<{
|
|
2389
2389
|
name: string;
|
|
2390
2390
|
label: string;
|
|
@@ -2466,8 +2466,8 @@ declare class MonkeyTableComponent<T> implements OnDestroy {
|
|
|
2466
2466
|
desc: string;
|
|
2467
2467
|
};
|
|
2468
2468
|
protected ariaSortFor(column: Column<T> | null): string | null;
|
|
2469
|
-
protected isSortedBy(column: Column<T>, direction:
|
|
2470
|
-
protected sortBy(column: Column<T>, direction:
|
|
2469
|
+
protected isSortedBy(column: Column<T>, direction: MonkeySortDirection): boolean;
|
|
2470
|
+
protected sortBy(column: Column<T>, direction: MonkeySortDirection): void;
|
|
2471
2471
|
protected canMove(column: Column<T>, delta: -1 | 1): boolean;
|
|
2472
2472
|
protected move(column: Column<T>, delta: -1 | 1): void;
|
|
2473
2473
|
protected hide(column: Column<T>): void;
|
|
@@ -2940,13 +2940,13 @@ declare class MonkeyDownloadToastService {
|
|
|
2940
2940
|
private findStackWithId;
|
|
2941
2941
|
private disposeStackIfEmpty;
|
|
2942
2942
|
private removeById;
|
|
2943
|
-
show(config:
|
|
2943
|
+
show(config: MonkeyDownloadToastConfig): {
|
|
2944
2944
|
id: string;
|
|
2945
2945
|
close: () => void;
|
|
2946
|
-
update: (partial:
|
|
2946
|
+
update: (partial: MonkeyDownloadStackItemUpdate) => void;
|
|
2947
2947
|
};
|
|
2948
2948
|
close(id: string): void;
|
|
2949
|
-
update(id: string, partial:
|
|
2949
|
+
update(id: string, partial: MonkeyDownloadStackItemUpdate): void;
|
|
2950
2950
|
closeAll(): void;
|
|
2951
2951
|
static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyDownloadToastService, never>;
|
|
2952
2952
|
static ɵprov: i0.ɵɵInjectableDeclaration<MonkeyDownloadToastService>;
|
|
@@ -2974,7 +2974,7 @@ declare class MonkeyToastService {
|
|
|
2974
2974
|
private closeToastIfNeeded;
|
|
2975
2975
|
private bindToastRelease;
|
|
2976
2976
|
private scheduleToastAutoClose;
|
|
2977
|
-
show(toastConfig:
|
|
2977
|
+
show(toastConfig: MonkeyToastConfig): MonkeyToastComponent;
|
|
2978
2978
|
static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyToastService, never>;
|
|
2979
2979
|
static ɵprov: i0.ɵɵInjectableDeclaration<MonkeyToastService>;
|
|
2980
2980
|
}
|
|
@@ -2993,4 +2993,4 @@ declare const MECX_I18N_LANG: InjectionToken<BehaviorSubject<string>>;
|
|
|
2993
2993
|
declare function injectTokenWithWarning<T>(token: InjectionToken<T>, name?: string): T | null;
|
|
2994
2994
|
|
|
2995
2995
|
export { DOWNLOAD_TOAST_EXIT_MS, MECX_COUNTRY_ISO_CODE, MECX_GOOGLE_API_KEY, MECX_I18N_LANG, MECX_I18N_WRAPPER, MECX_MODAL_DATA, MECX_MODAL_DEFAULT_CONFIG, MECX_POPOVER_OPTIONS, MonkeyAccordionComponent, MonkeyActionBarComponent, MonkeyAlertComponent, MonkeyAutocompleteAddressComponent, MonkeyAutocompleteComponent, MonkeyAvatarComponent, MonkeyBadgeComponent, MonkeyBadgeDirective, MonkeyBreadcrumbComponent, MonkeyButtonComponent, MonkeyCheckboxComponent, MonkeyComplexFilterBarComponent, MonkeyDateRangeComponent, MonkeyDictionaryService, MonkeyDisplayDirective, MonkeyDividerComponent, MonkeyDownloadButtonComponent, MonkeyDownloadToastComponent, MonkeyDownloadToastService, MonkeyDownloadToastStackComponent, MonkeyEcxAddressService, MonkeyErrorDirective, MonkeyFilterBarComponent, MonkeyFilterBarService, MonkeyFilterChipComponent, MonkeyFilterMenuComponent, MonkeyFilterMenuItemComponent, MonkeyFilterSegmentComponent, MonkeyFilterTriggerComponent, MonkeyFormDirective, MonkeyFormFieldComponent, MonkeyFormFieldControl, MonkeyFormFieldModule, MonkeyHelperDirective, MonkeyIconButtonComponent, MonkeyInfoDirective, MonkeyInputCodeComponent, MonkeyInputCurrencyDirective, MonkeyInputDateRangeComponent, MonkeyInputDirective, MonkeyInputModule, MonkeyInputPhoneComponent, MonkeyInputUploadComponent, MonkeyLabelDirective, MonkeyModalActionsDirective, MonkeyModalComponent, MonkeyModalConfig, MonkeyModalContentDirective, MonkeyModalModule, MonkeyModalRef, MonkeyModalService, MonkeyModalSubtitleDirective, MonkeyModalTitleDirective, MonkeyOptionComponent, MonkeyPaginationActionComponent, MonkeyPaginationLabelComponent, MonkeyPaginationSizeComponent, MonkeyPassNumberComponent, MonkeyPassSecretNumberComponent, MonkeyPopoverContentComponent, MonkeyPopoverDirective, MonkeyPrefixDirective, MonkeyRadioButtonComponent, MonkeyScrollbarComponent, MonkeySecurityLevelComponent, MonkeySelectComponent, MonkeyStatusComponent, MonkeyStepComponent, MonkeyStepperComponent, MonkeyStepperModule, MonkeyStepperService, MonkeySuffixDirective, MonkeyTabComponent, MonkeyTabLinkDirective, MonkeyTableCellDirective, MonkeyTableColumnDirective, MonkeyTableComponent, MonkeyTableEmptyDirective, MonkeyTableHeaderCellDirective, MonkeyTableLoadingDirective, MonkeyTableRowDetailDirective, MonkeyTabsComponent, MonkeyTabsModule, MonkeyToastComponent, MonkeyToastRef, MonkeyToastService, MonkeyToggleComponent, MonkeyToggleLineButtonComponent, MonkeyToggleLineComponent, MonkeyTooltipComponent, MonkeyTooltipDirective, MonkeyUserProfileButtonComponent, MonkeyUserProfileComponent, addKeys, appliedFrom, ariaSortOf, arityOf, closeOnClickAttribute, conditionsForOption, conditionsOf, getCurrencySymbol, indexAtOffset, injectTokenWithWarning, interpolate, isComplete, mergeOrder, offsetOfIndex, panelOf, removeKeys, sameColumnState, selectionState, sortByOrder, supportedConditionsOf, toPx, toggleKey, totalHeight, withCondition, withType };
|
|
2996
|
-
export type {
|
|
2996
|
+
export type { MonkeyActiveFilter, MonkeyAlertType, MonkeyAppliedFilter, MonkeyAutocompleteData, MonkeyAutocompleteResponse, MonkeyAutocompleteSuggestion, MonkeyAutocompleteSuggestionType, MonkeyBreadcrumb, MonkeyButtonColor, MonkeyButtonType, MonkeyColumnAlign, MonkeyColumnPinned, MonkeyComplexFilterBarConfig, MonkeyComplexFilterCondition, MonkeyComplexFilterGroup, MonkeyComplexFilterOperator, MonkeyComplexFilterResult, MonkeyDownloadButtonChangeEvent, MonkeyDownloadStackItem, MonkeyDownloadStackItemUpdate, MonkeyDownloadToastConfig, MonkeyDownloadToastDictionary, MonkeyFilterArity, MonkeyFilterBarConfig, MonkeyFilterBarOption, MonkeyFilterBarState, MonkeyFilterBarStatusOption, MonkeyFilterBarType, MonkeyFilterCondition, MonkeyFilterConditionsByType, MonkeyFilterMenuItemProperty, MonkeyFilterOperand, MonkeyFilterOperator, MonkeyFilterOption, MonkeyFilterPanel, MonkeyFilterRow, MonkeyFilterTriggerVariant, MonkeyFilterType, MonkeyGoogleApiPlaces, MonkeyGoogleApiPlacesAddressComponents, MonkeyGoogleApiPlacesResponse, MonkeyInputUploadChangeEvent, MonkeyModalConfirmationConfig, MonkeyModalDefaultConfig, MonkeyPopoverDir, MonkeyPopoverItemClick, MonkeyPopoverOptions, MonkeyRowMetrics, MonkeyScrollbarOrientation, MonkeyScrollbarSize, MonkeySelectionState, MonkeySize, MonkeySortDirection, MonkeySortState, MonkeyStatusOption, MonkeyTableCellContext, MonkeyTableColumnState, MonkeyTableScrollConfig, MonkeyTableSortKind, MonkeyToastConfig, MonkeyToastPosition, MonkeyToastType };
|
|
Binary file
|