monkey-style-guide 21.2.3 → 21.2.6
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 +24 -24
- package/assets/scss/autocomplete/_index.scss +6 -6
- package/assets/scss/autocomplete/_styles.scss +149 -149
- package/assets/scss/directives/_badge.scss +48 -48
- package/assets/scss/directives/_index.scss +8 -8
- package/assets/scss/directives/_popover.scss +102 -102
- package/assets/scss/directives/_styles.scss +99 -99
- package/assets/scss/input/_index.scss +6 -6
- package/assets/scss/input/_styles.scss +67 -67
- package/assets/scss/partials/_breakpoints.scss +145 -145
- package/assets/scss/partials/_grid-system.scss +5069 -5069
- package/assets/scss/partials/_helper-classes.scss +373 -373
- package/assets/scss/partials/_icons.scss +38 -38
- package/assets/scss/partials/_index.scss +14 -14
- package/assets/scss/partials/_popover.scss +3 -3
- package/assets/scss/partials/_scrollbars.scss +29 -29
- package/assets/scss/partials/_skeleton-loading.scss +95 -95
- package/assets/scss/partials/_style-reset.scss +191 -191
- package/assets/scss/partials/_variables.scss +95 -95
- package/assets/scss/table/_index.scss +6 -6
- package/assets/scss/table/_styles.scss +11 -11
- package/assets/scss/theme.scss +14 -14
- package/assets/scss/typography/_index.scss +6 -6
- package/assets/scss/typography/_styles.scss +60 -43
- package/fesm2022/monkey-style-guide.mjs +3262 -2805
- package/fesm2022/monkey-style-guide.mjs.map +1 -1
- package/monkey-style-guide-21.2.6.tgz +0 -0
- package/package.json +1 -1
- package/types/monkey-style-guide.d.ts +189 -248
- package/monkey-style-guide-21.2.3.tgz +0 -0
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { TemplateRef, ComponentRef, InputSignal, OutputEmitterRef, AfterContentInit, AfterContentChecked, OnDestroy, ElementRef, EventEmitter, ChangeDetectorRef, OnChanges, OnInit, InputSignalWithTransform, SimpleChanges, Renderer2,
|
|
2
|
+
import { TemplateRef, ComponentRef, InputSignal, OutputEmitterRef, AfterContentInit, AfterContentChecked, OnDestroy, ElementRef, EventEmitter, ChangeDetectorRef, OnChanges, OnInit, InputSignalWithTransform, AfterViewInit, SimpleChanges, Renderer2, QueryList, StaticProvider, Injector, InjectionToken, ViewContainerRef, ApplicationRef } from '@angular/core';
|
|
3
3
|
import { NgControl, AbstractControlDirective, ControlValueAccessor, Validator, AbstractControl, ValidationErrors } from '@angular/forms';
|
|
4
4
|
import * as rxjs from 'rxjs';
|
|
5
5
|
import { Observable, Subject, BehaviorSubject } from 'rxjs';
|
|
6
6
|
import { Router } from '@angular/router';
|
|
7
|
+
import * as monkey_style_guide from 'monkey-style-guide';
|
|
7
8
|
import * as i2 from '@angular/common';
|
|
8
9
|
import { CurrencyPipe } from '@angular/common';
|
|
9
10
|
import { BooleanInput } from '@angular/cdk/coercion';
|
|
@@ -651,53 +652,28 @@ declare class MonkeyDownloadButtonComponent {
|
|
|
651
652
|
* This style guide was developed by Monkey Exchange Team
|
|
652
653
|
* MIT Licence
|
|
653
654
|
************************* */
|
|
654
|
-
/**
|
|
655
|
-
* Filter types supported by the filter bar
|
|
656
|
-
*/
|
|
657
655
|
type FilterType = 'text' | 'date' | 'currency' | 'status';
|
|
658
|
-
/**
|
|
659
|
-
* Status option for status filter checkboxes
|
|
660
|
-
*/
|
|
661
656
|
interface StatusOption {
|
|
662
|
-
/** Value of the checkbox option */
|
|
663
657
|
value: string;
|
|
664
|
-
/** Description/label for the checkbox option */
|
|
665
658
|
description: string;
|
|
666
659
|
}
|
|
667
|
-
/**
|
|
668
|
-
* Configuration for a filter option
|
|
669
|
-
*/
|
|
670
660
|
interface FilterOption {
|
|
671
|
-
/** Unique identifier for the filter */
|
|
672
661
|
key: string;
|
|
673
|
-
/** Display label for the filter */
|
|
674
662
|
label: string;
|
|
675
|
-
/** Icon name to display (optional) */
|
|
676
663
|
icon?: string;
|
|
677
|
-
/** Type of filter input */
|
|
678
664
|
type: FilterType;
|
|
679
|
-
/** Placeholder text for the filter input (optional) */
|
|
680
665
|
placeholder?: string;
|
|
681
|
-
/** Minimum date for date filters (optional) */
|
|
682
666
|
minDate?: Date | string;
|
|
683
|
-
/** Maximum date for date filters (optional) */
|
|
684
667
|
maxDate?: Date | string;
|
|
685
|
-
/** Currency code for currency filters (optional) */
|
|
686
668
|
currency?: string;
|
|
687
|
-
/** Status options for status filters (required when type is 'status') */
|
|
688
669
|
statusOptions?: StatusOption[];
|
|
670
|
+
/** Human-readable explanation shown in the complex filter documentation panel */
|
|
671
|
+
explanation?: string;
|
|
689
672
|
}
|
|
690
|
-
/**
|
|
691
|
-
* Active filter value
|
|
692
|
-
*/
|
|
693
673
|
interface ActiveFilter {
|
|
694
|
-
/** Filter key */
|
|
695
674
|
key: string;
|
|
696
|
-
/** Filter label */
|
|
697
675
|
label: string;
|
|
698
|
-
/** Filter type */
|
|
699
676
|
type: FilterType;
|
|
700
|
-
/** Filter value (format depends on type: string for text, object for date/currency, string[] for status) */
|
|
701
677
|
value: string | {
|
|
702
678
|
startDate: string;
|
|
703
679
|
endDate: string;
|
|
@@ -705,182 +681,157 @@ interface ActiveFilter {
|
|
|
705
681
|
min?: number;
|
|
706
682
|
max?: number;
|
|
707
683
|
} | string[];
|
|
708
|
-
/** Display text for the filter tag */
|
|
709
684
|
displayText: string;
|
|
710
|
-
/** Icon name (optional) */
|
|
711
685
|
icon?: string;
|
|
712
686
|
}
|
|
713
|
-
/**
|
|
714
|
-
* Filter bar configuration
|
|
715
|
-
*/
|
|
716
687
|
interface FilterBarConfig {
|
|
717
|
-
/** Available filter options */
|
|
718
688
|
filterOptions: FilterOption[];
|
|
719
|
-
/** Placeholder text for search input */
|
|
720
689
|
searchPlaceholder?: string;
|
|
721
690
|
}
|
|
691
|
+
type ComplexFilterOperator = ':' | '>' | '<';
|
|
692
|
+
interface ComplexFilterCondition {
|
|
693
|
+
logicalOp?: 'AND' | 'OR';
|
|
694
|
+
field: string;
|
|
695
|
+
operator: ComplexFilterOperator;
|
|
696
|
+
value: string;
|
|
697
|
+
}
|
|
698
|
+
interface ComplexFilterGroup {
|
|
699
|
+
/** Logical operator connecting this group to the previous one */
|
|
700
|
+
logicalOp?: 'AND' | 'OR';
|
|
701
|
+
conditions: ComplexFilterCondition[];
|
|
702
|
+
}
|
|
703
|
+
interface ComplexFilterResult {
|
|
704
|
+
raw: string;
|
|
705
|
+
groups: ComplexFilterGroup[];
|
|
706
|
+
}
|
|
707
|
+
type AutocompleteSuggestionType = 'field' | 'logical' | 'value';
|
|
708
|
+
interface AutocompleteSuggestion {
|
|
709
|
+
type: AutocompleteSuggestionType;
|
|
710
|
+
label: string;
|
|
711
|
+
/** Field key shown as secondary text for field suggestions */
|
|
712
|
+
sublabel?: string;
|
|
713
|
+
/** Text spliced into the query when the suggestion is selected */
|
|
714
|
+
insertValue: string;
|
|
715
|
+
explanation?: string;
|
|
716
|
+
}
|
|
722
717
|
|
|
723
|
-
declare class
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
718
|
+
declare class MonkeyComplexFilterBarComponent implements OnInit, OnChanges, AfterViewInit, OnDestroy {
|
|
719
|
+
private _service;
|
|
720
|
+
key: i0.InputSignal<string>;
|
|
721
|
+
config: i0.InputSignal<FilterBarConfig | undefined>;
|
|
722
|
+
placeholder: i0.InputSignal<string | undefined>;
|
|
723
|
+
complexFilterChange: EventEmitter<ComplexFilterResult>;
|
|
724
|
+
private _queryInputRef?;
|
|
725
|
+
complexQuery: string;
|
|
726
|
+
queryError: string;
|
|
727
|
+
autocompleteItems: AutocompleteSuggestion[];
|
|
728
|
+
autocompleteActiveIndex: number;
|
|
729
|
+
showDocsPanel: boolean;
|
|
730
|
+
docsPanelTarget: HTMLElement | null;
|
|
731
|
+
serviceConfig: i0.Signal<FilterBarConfig | undefined>;
|
|
732
|
+
allFilterOptions: i0.Signal<monkey_style_guide.FilterOption[]>;
|
|
733
|
+
queryPlaceholder: i0.Signal<string>;
|
|
734
|
+
hasActiveQuery: i0.Signal<boolean>;
|
|
735
|
+
constructor();
|
|
736
|
+
ngOnInit(): void;
|
|
737
|
+
ngAfterViewInit(): void;
|
|
738
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
739
|
+
ngOnDestroy(): void;
|
|
740
|
+
private validateQuery;
|
|
741
|
+
private _autoResize;
|
|
742
|
+
onInputFocus(textarea: HTMLTextAreaElement): void;
|
|
743
|
+
onTextareaInput(textarea: HTMLTextAreaElement): void;
|
|
744
|
+
onQueryInput(textarea: HTMLTextAreaElement): void;
|
|
745
|
+
onKeydown(event: KeyboardEvent, textarea: HTMLTextAreaElement): void;
|
|
746
|
+
onSelectSuggestion(item: AutocompleteSuggestion, textarea: HTMLTextAreaElement): void;
|
|
747
|
+
onInputBlur(): void;
|
|
748
|
+
applyQuery(): void;
|
|
749
|
+
clearQuery(): void;
|
|
750
|
+
onShowDocs(event: MouseEvent): void;
|
|
751
|
+
closeDocs: () => void;
|
|
752
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyComplexFilterBarComponent, never>;
|
|
753
|
+
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>;
|
|
754
|
+
}
|
|
755
|
+
|
|
756
|
+
declare class MonkeyFilterBarComponent implements OnInit, OnChanges, OnDestroy {
|
|
757
|
+
protected _elementRef: ElementRef<any>;
|
|
758
|
+
private _service;
|
|
727
759
|
key: i0.InputSignal<string>;
|
|
728
|
-
/** Filter bar configuration */
|
|
729
760
|
config: i0.InputSignal<FilterBarConfig | undefined>;
|
|
730
|
-
/** Output event when filters change */
|
|
731
761
|
filtersChange: EventEmitter<{
|
|
732
762
|
search?: string;
|
|
733
763
|
filters: ActiveFilter[];
|
|
734
764
|
}>;
|
|
735
|
-
/** Output event when search value changes */
|
|
736
765
|
searchChange: EventEmitter<string>;
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
766
|
+
showFilterMenu: boolean;
|
|
767
|
+
showDateSubmenu: boolean;
|
|
768
|
+
showFilterInput: boolean;
|
|
769
|
+
filterMenuTarget: HTMLElement | null;
|
|
770
|
+
dateSubmenuTarget: HTMLElement | null;
|
|
742
771
|
filterInputTarget: HTMLElement | null;
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
772
|
+
isEditingFilter: boolean;
|
|
773
|
+
activeOption: i0.WritableSignal<FilterOption | null>;
|
|
774
|
+
textValue: string;
|
|
775
|
+
currencyValue: number | null;
|
|
776
|
+
currencyMode: 'from' | 'until';
|
|
777
|
+
statusValues: string[];
|
|
778
|
+
dateRange: {
|
|
747
779
|
startDate: string;
|
|
748
780
|
endDate: string;
|
|
749
781
|
};
|
|
750
|
-
|
|
751
|
-
min: number;
|
|
752
|
-
max: number;
|
|
753
|
-
};
|
|
754
|
-
currencyRangeType: 'from' | 'until';
|
|
755
|
-
selectedStatusValues: string[];
|
|
756
|
-
isEditingActiveFilter: boolean;
|
|
757
|
-
handledFilterOptionLabel: i0.Signal<string | undefined>;
|
|
758
|
-
handledFilterOptionIcon: i0.Signal<string | undefined>;
|
|
782
|
+
showCustomDate: boolean;
|
|
759
783
|
serviceConfig: i0.Signal<FilterBarConfig | undefined>;
|
|
760
784
|
activeFilters: i0.Signal<ActiveFilter[]>;
|
|
761
785
|
searchValue: i0.Signal<string>;
|
|
786
|
+
searchPlaceholder: i0.Signal<string>;
|
|
762
787
|
constructor();
|
|
763
788
|
ngOnInit(): void;
|
|
764
|
-
ngAfterContentInit(): void;
|
|
765
789
|
ngOnChanges(changes: SimpleChanges): void;
|
|
766
790
|
ngOnDestroy(): void;
|
|
767
|
-
/**
|
|
768
|
-
* Get available filter options (excluding already active filters)
|
|
769
|
-
*/
|
|
770
791
|
availableFilterOptions(): FilterOption[];
|
|
771
|
-
/**
|
|
772
|
-
* Check if a filter is already active
|
|
773
|
-
*/
|
|
774
792
|
isFilterActive(filterKey: string): boolean;
|
|
775
|
-
|
|
776
|
-
* Handle showing the popover
|
|
777
|
-
*/
|
|
778
|
-
onShowPopOver(el: MonkeyButtonComponent): void;
|
|
779
|
-
/**
|
|
780
|
-
* Get unique ID for a filter option
|
|
781
|
-
*/
|
|
782
|
-
getFilterOptionId(optionKey: string): string;
|
|
783
|
-
/**
|
|
784
|
-
* Get unique ID for an active filter tag
|
|
785
|
-
*/
|
|
793
|
+
getOptionId(optionKey: string): string;
|
|
786
794
|
getActiveFilterId(filterKey: string): string;
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
/**
|
|
792
|
-
* Handle quick date selection from submenu
|
|
793
|
-
*/
|
|
794
|
-
onSelectQuickDate(option: string): void;
|
|
795
|
-
/**
|
|
796
|
-
* Show filter input popover (for non-date filters or custom date picker)
|
|
797
|
-
*/
|
|
798
|
-
onShowFilterInput(): void;
|
|
799
|
-
/**
|
|
800
|
-
* Handle date range change
|
|
801
|
-
*/
|
|
802
|
-
onDateRangeChange(event: {
|
|
795
|
+
onShowFilterMenu(btn: MonkeyButtonComponent): void;
|
|
796
|
+
onSelectOption(option: FilterOption): void;
|
|
797
|
+
onQuickDate(preset: string): void;
|
|
798
|
+
onDateChange(event: {
|
|
803
799
|
startDate: string;
|
|
804
800
|
endDate: string;
|
|
805
801
|
}): void;
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
* Apply the selected filter
|
|
812
|
-
*/
|
|
813
|
-
onApplyFilter(): void;
|
|
814
|
-
/**
|
|
815
|
-
* Edit an active filter - opens the input popover with current values
|
|
816
|
-
*/
|
|
817
|
-
onEditActiveFilter(activeFilter: ActiveFilter): void;
|
|
818
|
-
/**
|
|
819
|
-
* Remove a filter
|
|
820
|
-
*/
|
|
821
|
-
onRemoveFilter(filterKey: string, event?: Event): void;
|
|
822
|
-
/**
|
|
823
|
-
* Clear all filters
|
|
824
|
-
*/
|
|
825
|
-
onClearAllFilters(): void;
|
|
826
|
-
/**
|
|
827
|
-
* Handle search input change
|
|
828
|
-
*/
|
|
802
|
+
onStatusChange(val: string, checked: boolean): void;
|
|
803
|
+
onApply(): void;
|
|
804
|
+
onEditFilter(filter: ActiveFilter): void;
|
|
805
|
+
onRemoveFilter(filterKey: string, event: Event): void;
|
|
806
|
+
onClearAll(): void;
|
|
829
807
|
onSearchChange(value: string): void;
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
private
|
|
834
|
-
|
|
835
|
-
closeSubmenuPopover: () => void;
|
|
836
|
-
closeFilterInputPopover: () => void;
|
|
808
|
+
closeFilterMenu: () => void;
|
|
809
|
+
closeDateSubmenu: () => void;
|
|
810
|
+
closeFilterInput: () => void;
|
|
811
|
+
private _resetInputState;
|
|
812
|
+
private _emit;
|
|
837
813
|
static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyFilterBarComponent, never>;
|
|
838
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MonkeyFilterBarComponent, "monkey-filter-bar", never, { "key": { "alias": "key"; "required": true; "isSignal": true; }; "config": { "alias": "config"; "required": false; "isSignal": true; }; }, { "filtersChange": "filtersChange"; "searchChange": "searchChange"; }, never,
|
|
814
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MonkeyFilterBarComponent, "monkey-filter-bar", never, { "key": { "alias": "key"; "required": true; "isSignal": true; }; "config": { "alias": "config"; "required": false; "isSignal": true; }; }, { "filtersChange": "filtersChange"; "searchChange": "searchChange"; }, never, ["*"], true, never>;
|
|
839
815
|
}
|
|
840
816
|
|
|
841
817
|
interface FilterBarState {
|
|
842
818
|
search: string;
|
|
843
819
|
filters: ActiveFilter[];
|
|
820
|
+
complexQuery?: string;
|
|
844
821
|
}
|
|
845
822
|
declare class MonkeyFilterBarService {
|
|
846
823
|
private _configs;
|
|
847
824
|
private _activeFilters;
|
|
848
825
|
private _searchValues;
|
|
849
|
-
|
|
850
|
-
* Initialize or update configuration for a filter bar instance
|
|
851
|
-
*/
|
|
826
|
+
private _complexQueries;
|
|
852
827
|
setConfig(storageKey: string, config: FilterBarConfig): void;
|
|
853
|
-
/**
|
|
854
|
-
* Get configuration for a filter bar instance
|
|
855
|
-
*/
|
|
856
828
|
getConfig(storageKey: string): FilterBarConfig | undefined;
|
|
857
|
-
/**
|
|
858
|
-
* Get configuration as a computed signal
|
|
859
|
-
*/
|
|
860
829
|
config(storageKey: string): i0.Signal<FilterBarConfig | undefined>;
|
|
861
|
-
/**
|
|
862
|
-
* Get available filter options (excluding already active filters)
|
|
863
|
-
*/
|
|
864
830
|
availableFilterOptions(storageKey: string): FilterOption[];
|
|
865
|
-
/**
|
|
866
|
-
* Get active filters for a filter bar instance
|
|
867
|
-
*/
|
|
868
831
|
getActiveFilters(storageKey: string): ActiveFilter[];
|
|
869
|
-
/**
|
|
870
|
-
* Get active filters as a computed signal
|
|
871
|
-
*/
|
|
872
832
|
activeFilters(storageKey: string): i0.Signal<ActiveFilter[]>;
|
|
873
|
-
/**
|
|
874
|
-
* Check if a filter is already active
|
|
875
|
-
*/
|
|
876
833
|
isFilterActive(storageKey: string, filterKey: string): boolean;
|
|
877
|
-
/**
|
|
878
|
-
* Set active filters for a filter bar instance (overwrites existing)
|
|
879
|
-
*/
|
|
880
834
|
setActiveFilters(storageKey: string, filters: ActiveFilter[]): void;
|
|
881
|
-
/**
|
|
882
|
-
* Add a filter
|
|
883
|
-
*/
|
|
884
835
|
addFilter(storageKey: string, option: FilterOption, value: string | {
|
|
885
836
|
startDate: string;
|
|
886
837
|
endDate: string;
|
|
@@ -888,9 +839,6 @@ declare class MonkeyFilterBarService {
|
|
|
888
839
|
min?: number;
|
|
889
840
|
max?: number;
|
|
890
841
|
} | string[]): void;
|
|
891
|
-
/**
|
|
892
|
-
* Update an existing filter (preserves position in array)
|
|
893
|
-
*/
|
|
894
842
|
updateFilter(storageKey: string, filterKey: string, option: FilterOption, value: string | {
|
|
895
843
|
startDate: string;
|
|
896
844
|
endDate: string;
|
|
@@ -898,40 +846,39 @@ declare class MonkeyFilterBarService {
|
|
|
898
846
|
min?: number;
|
|
899
847
|
max?: number;
|
|
900
848
|
} | string[]): void;
|
|
901
|
-
/**
|
|
902
|
-
* Remove a filter
|
|
903
|
-
*/
|
|
904
849
|
removeFilter(storageKey: string, filterKey: string): void;
|
|
905
|
-
/**
|
|
906
|
-
* Clear all filters for a filter bar instance
|
|
907
|
-
*/
|
|
908
850
|
clearAllFilters(storageKey: string): void;
|
|
909
|
-
/**
|
|
910
|
-
* Get search value for a filter bar instance
|
|
911
|
-
*/
|
|
912
851
|
getSearchValue(storageKey: string): string;
|
|
913
|
-
/**
|
|
914
|
-
* Get search value as a computed signal
|
|
915
|
-
*/
|
|
916
852
|
searchValue(storageKey: string): i0.Signal<string>;
|
|
917
|
-
/**
|
|
918
|
-
* Set search value
|
|
919
|
-
*/
|
|
920
853
|
setSearchValue(storageKey: string, value: string): void;
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
854
|
+
getComplexQuery(storageKey: string): string;
|
|
855
|
+
setComplexQuery(storageKey: string, query: string): void;
|
|
856
|
+
clearComplexQuery(storageKey: string): void;
|
|
924
857
|
getState(storageKey: string): FilterBarState;
|
|
925
|
-
/**
|
|
926
|
-
* Get state as a computed signal
|
|
927
|
-
*/
|
|
928
858
|
state(storageKey: string): i0.Signal<{
|
|
929
859
|
search: string;
|
|
930
860
|
filters: ActiveFilter[];
|
|
861
|
+
complexQuery: string | undefined;
|
|
931
862
|
}>;
|
|
932
863
|
/**
|
|
933
|
-
*
|
|
864
|
+
* Returns autocomplete suggestions for the complex filter input.
|
|
865
|
+
*
|
|
866
|
+
* Token resolution (relative to cursorPos):
|
|
867
|
+
* - Scan backwards from cursor over non-whitespace / non-paren chars → currentToken
|
|
868
|
+
* - Token with operator (fieldKey[:<>]valuePrefix) → suggest status values
|
|
869
|
+
* - Token without operator → suggest fields, AND/OR (after a complete term), and ( (at top level)
|
|
870
|
+
*/
|
|
871
|
+
getAutocompleteSuggestions(storageKey: string, query: string, cursorPos: number): AutocompleteSuggestion[];
|
|
872
|
+
/**
|
|
873
|
+
* Parses a raw complex query string into structured groups.
|
|
874
|
+
* Parenthesised expressions become a single group; bare conditions
|
|
875
|
+
* each become their own single-condition group.
|
|
876
|
+
*
|
|
877
|
+
* Example: `(a:1 OR b:2) AND c:3` →
|
|
878
|
+
* [{ conditions:[{a:1},{logicalOp:OR,b:2}] }, { logicalOp:AND, conditions:[{c:3}] }]
|
|
934
879
|
*/
|
|
880
|
+
parseComplexQuery(raw: string): ComplexFilterGroup[];
|
|
881
|
+
private _parseConditionToken;
|
|
935
882
|
private formatFilterValuePlain;
|
|
936
883
|
static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyFilterBarService, never>;
|
|
937
884
|
static ɵprov: i0.ɵɵInjectableDeclaration<MonkeyFilterBarService>;
|
|
@@ -1157,12 +1104,6 @@ declare class MonkeyInputDateRangeComponent implements MonkeyFormFieldControl, C
|
|
|
1157
1104
|
static ngAcceptInputType_required: unknown;
|
|
1158
1105
|
}
|
|
1159
1106
|
|
|
1160
|
-
/** ************************
|
|
1161
|
-
* Copyright Monkey Exchange. All Rights Reserved
|
|
1162
|
-
* This style guide was developed by Monkey Exchange Team
|
|
1163
|
-
* MIT Licence
|
|
1164
|
-
************************* */
|
|
1165
|
-
|
|
1166
1107
|
interface Country {
|
|
1167
1108
|
iso: string;
|
|
1168
1109
|
code: string;
|
|
@@ -1475,6 +1416,54 @@ declare class MonkeyOptionComponent {
|
|
|
1475
1416
|
static ngAcceptInputType_disabled: unknown;
|
|
1476
1417
|
}
|
|
1477
1418
|
|
|
1419
|
+
declare class MonkeyPassNumberComponent {
|
|
1420
|
+
disabled: boolean;
|
|
1421
|
+
protected _uid: string;
|
|
1422
|
+
protected _id: string;
|
|
1423
|
+
protected selected: number[];
|
|
1424
|
+
onChange: i0.OutputEmitterRef<number[]>;
|
|
1425
|
+
get isDisabledNumbers(): boolean;
|
|
1426
|
+
get isDisabledClear(): boolean;
|
|
1427
|
+
get id(): string;
|
|
1428
|
+
set id(value: string);
|
|
1429
|
+
constructor();
|
|
1430
|
+
protected clear(): void;
|
|
1431
|
+
protected onPress(pin: number): void;
|
|
1432
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyPassNumberComponent, never>;
|
|
1433
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MonkeyPassNumberComponent, "monkey-pass-number", never, { "disabled": { "alias": "disabled"; "required": false; }; "id": { "alias": "id"; "required": false; }; }, { "onChange": "onChange"; }, never, never, true, never>;
|
|
1434
|
+
}
|
|
1435
|
+
|
|
1436
|
+
type PinCombinations = {
|
|
1437
|
+
first: number;
|
|
1438
|
+
last: number;
|
|
1439
|
+
};
|
|
1440
|
+
type PinResult = {
|
|
1441
|
+
passNumber1: string;
|
|
1442
|
+
passNumber2: string;
|
|
1443
|
+
passNumber3: string;
|
|
1444
|
+
passNumber4: string;
|
|
1445
|
+
};
|
|
1446
|
+
declare class MonkeyPassSecretNumberComponent implements OnInit {
|
|
1447
|
+
protected _uid: string;
|
|
1448
|
+
disabled: boolean;
|
|
1449
|
+
protected _id: string;
|
|
1450
|
+
readonly orLabel: rxjs.Observable<any>;
|
|
1451
|
+
protected pins: PinCombinations[];
|
|
1452
|
+
protected selected: string[];
|
|
1453
|
+
onChange: i0.OutputEmitterRef<PinResult>;
|
|
1454
|
+
get id(): string;
|
|
1455
|
+
set id(value: string);
|
|
1456
|
+
get isDisabledNumbers(): boolean;
|
|
1457
|
+
get isDisabledClear(): boolean;
|
|
1458
|
+
constructor();
|
|
1459
|
+
ngOnInit(): void;
|
|
1460
|
+
protected clear(): void;
|
|
1461
|
+
private getPinPassword;
|
|
1462
|
+
protected onPress(pin: PinCombinations): void;
|
|
1463
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyPassSecretNumberComponent, never>;
|
|
1464
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MonkeyPassSecretNumberComponent, "monkey-pass-secret-number", never, { "disabled": { "alias": "disabled"; "required": false; }; "id": { "alias": "id"; "required": false; }; }, { "onChange": "onChange"; }, never, never, true, never>;
|
|
1465
|
+
}
|
|
1466
|
+
|
|
1478
1467
|
/** ************************
|
|
1479
1468
|
* Copyright Monkey Exchange. All Rights Reserved
|
|
1480
1469
|
* This style guide was developed by Monkey Exchange Team
|
|
@@ -2076,29 +2065,6 @@ declare class MonkeyTooltipDirective {
|
|
|
2076
2065
|
static ngAcceptInputType_enabled: unknown;
|
|
2077
2066
|
}
|
|
2078
2067
|
|
|
2079
|
-
/** ************************
|
|
2080
|
-
* Copyright Monkey Exchange. All Rights Reserved
|
|
2081
|
-
* This style guide was developed by Monkey Exchange Team
|
|
2082
|
-
* MIT Licence
|
|
2083
|
-
************************* */
|
|
2084
|
-
|
|
2085
|
-
declare class MonkeyUserProfileButtonComponent {
|
|
2086
|
-
protected _uid: string;
|
|
2087
|
-
elementRef: ElementRef<any>;
|
|
2088
|
-
size: MonkeySize;
|
|
2089
|
-
name: string;
|
|
2090
|
-
iconName: string;
|
|
2091
|
-
protected _id: string;
|
|
2092
|
-
open: boolean;
|
|
2093
|
-
get id(): string;
|
|
2094
|
-
set id(value: string);
|
|
2095
|
-
constructor();
|
|
2096
|
-
onClick(event: MouseEvent): void;
|
|
2097
|
-
handleClose: () => void;
|
|
2098
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyUserProfileButtonComponent, never>;
|
|
2099
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MonkeyUserProfileButtonComponent, "monkey-user-profile-button", never, { "size": { "alias": "size"; "required": false; }; "name": { "alias": "name"; "required": true; }; "iconName": { "alias": "iconName"; "required": false; }; "id": { "alias": "id"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
2100
|
-
}
|
|
2101
|
-
|
|
2102
2068
|
/** ************************
|
|
2103
2069
|
* Copyright Monkey Exchange. All Rights Reserved
|
|
2104
2070
|
* This style guide was developed by Monkey Exchange Team
|
|
@@ -2117,52 +2083,27 @@ declare class MonkeyUserProfileComponent {
|
|
|
2117
2083
|
static ɵcmp: i0.ɵɵComponentDeclaration<MonkeyUserProfileComponent, "monkey-user-profile", never, { "email": { "alias": "email"; "required": true; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; }; }, {}, never, never, true, never>;
|
|
2118
2084
|
}
|
|
2119
2085
|
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
onChange: i0.OutputEmitterRef<number[]>;
|
|
2126
|
-
get isDisabledNumbers(): boolean;
|
|
2127
|
-
get isDisabledClear(): boolean;
|
|
2128
|
-
get id(): string;
|
|
2129
|
-
set id(value: string);
|
|
2130
|
-
constructor();
|
|
2131
|
-
protected clear(): void;
|
|
2132
|
-
protected onPress(pin: number): void;
|
|
2133
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyPassNumberComponent, never>;
|
|
2134
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MonkeyPassNumberComponent, "monkey-pass-number", never, { "disabled": { "alias": "disabled"; "required": false; }; "id": { "alias": "id"; "required": false; }; }, { "onChange": "onChange"; }, never, never, true, never>;
|
|
2135
|
-
}
|
|
2086
|
+
/** ************************
|
|
2087
|
+
* Copyright Monkey Exchange. All Rights Reserved
|
|
2088
|
+
* This style guide was developed by Monkey Exchange Team
|
|
2089
|
+
* MIT Licence
|
|
2090
|
+
************************* */
|
|
2136
2091
|
|
|
2137
|
-
|
|
2138
|
-
first: number;
|
|
2139
|
-
last: number;
|
|
2140
|
-
};
|
|
2141
|
-
type PinResult = {
|
|
2142
|
-
passNumber1: string;
|
|
2143
|
-
passNumber2: string;
|
|
2144
|
-
passNumber3: string;
|
|
2145
|
-
passNumber4: string;
|
|
2146
|
-
};
|
|
2147
|
-
declare class MonkeyPassSecretNumberComponent implements OnInit {
|
|
2092
|
+
declare class MonkeyUserProfileButtonComponent {
|
|
2148
2093
|
protected _uid: string;
|
|
2149
|
-
|
|
2094
|
+
elementRef: ElementRef<any>;
|
|
2095
|
+
size: MonkeySize;
|
|
2096
|
+
name: string;
|
|
2097
|
+
iconName: string;
|
|
2150
2098
|
protected _id: string;
|
|
2151
|
-
|
|
2152
|
-
protected pins: PinCombinations[];
|
|
2153
|
-
protected selected: string[];
|
|
2154
|
-
onChange: i0.OutputEmitterRef<PinResult>;
|
|
2099
|
+
open: boolean;
|
|
2155
2100
|
get id(): string;
|
|
2156
2101
|
set id(value: string);
|
|
2157
|
-
get isDisabledNumbers(): boolean;
|
|
2158
|
-
get isDisabledClear(): boolean;
|
|
2159
2102
|
constructor();
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyPassSecretNumberComponent, never>;
|
|
2165
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MonkeyPassSecretNumberComponent, "monkey-pass-secret-number", never, { "disabled": { "alias": "disabled"; "required": false; }; "id": { "alias": "id"; "required": false; }; }, { "onChange": "onChange"; }, never, never, true, never>;
|
|
2103
|
+
onClick(event: MouseEvent): void;
|
|
2104
|
+
handleClose: () => void;
|
|
2105
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyUserProfileButtonComponent, never>;
|
|
2106
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MonkeyUserProfileButtonComponent, "monkey-user-profile-button", never, { "size": { "alias": "size"; "required": false; }; "name": { "alias": "name"; "required": true; }; "iconName": { "alias": "iconName"; "required": false; }; "id": { "alias": "id"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
2166
2107
|
}
|
|
2167
2108
|
|
|
2168
2109
|
/** ************************
|
|
@@ -2375,5 +2316,5 @@ declare const MECX_COUNTRY_ISO_CODE: InjectionToken<string>;
|
|
|
2375
2316
|
declare const MECX_GOOGLE_API_KEY: InjectionToken<string>;
|
|
2376
2317
|
declare function injectTokenWithWarning<T>(token: InjectionToken<T>, name?: string): T | null;
|
|
2377
2318
|
|
|
2378
|
-
export { MECX_COUNTRY_ISO_CODE, MECX_GOOGLE_API_KEY, MECX_I18N_WRAPPER, MECX_MODAL_DATA, MECX_MODAL_DEFAULT_CONFIG, MECX_POPOVER_OPTIONS, MonkeyAccordionComponent, MonkeyActionBarComponent, MonkeyAlertComponent, MonkeyAutocompleteAddressComponent, MonkeyAutocompleteComponent, MonkeyAvatarComponent, MonkeyBadgeComponent, MonkeyBadgeDirective, MonkeyBreadcrumbComponent, MonkeyButtonComponent, MonkeyCheckboxComponent, MonkeyColumnChecked, MonkeyColumnExpansible, MonkeyColumnSortable, MonkeyColumnStick, MonkeyDateRangeComponent, MonkeyDictionaryService, MonkeyDisplayDirective, MonkeyDividerComponent, MonkeyDownloadButtonComponent, MonkeyEcxAddressService, MonkeyErrorDirective, MonkeyFilterBarComponent, MonkeyFilterBarService, 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, MonkeySecurityLevelComponent, MonkeySelectComponent, MonkeyStatusComponent, MonkeyStepComponent, MonkeyStepperComponent, MonkeyStepperModule, MonkeyStepperService, MonkeySuffixDirective, MonkeyTabComponent, MonkeyTabLinkDirective, MonkeyTableComponent, MonkeyTableModule, MonkeyTabsComponent, MonkeyTabsModule, MonkeyToastComponent, MonkeyToastRef, MonkeyToastService, MonkeyToggleComponent, MonkeyToggleLineButtonComponent, MonkeyToggleLineComponent, MonkeyTooltipComponent, MonkeyTooltipDirective, MonkeyUserProfileButtonComponent, MonkeyUserProfileComponent, getCurrencySymbol, injectTokenWithWarning };
|
|
2379
|
-
export type { ActiveFilter, FilterBarConfig, FilterBarState, FilterOption, FilterType, GoogleApiPlaces, GoogleApiPlacesAddressComponents, GoogleApiPlacesResponse, MonkeyAlertType, MonkeyAutocompleteData, MonkeyAutocompleteResponse, MonkeyBreadcrumb, MonkeyButtonColor, MonkeyButtonType, MonkeyDownloadButtonChangeEvent, MonkeyInputUploadChangeEvent, MonkeyModalConfirmationConfig, MonkeyModalDefaultConfig, MonkeyPopoverDir, MonkeyPopoverOptions, MonkeySize, MonkeyTableScrollConfig, MonkeyToastPosition, MonkeyToastType, StatusOption, ToastConfig };
|
|
2319
|
+
export { MECX_COUNTRY_ISO_CODE, MECX_GOOGLE_API_KEY, MECX_I18N_WRAPPER, MECX_MODAL_DATA, MECX_MODAL_DEFAULT_CONFIG, MECX_POPOVER_OPTIONS, MonkeyAccordionComponent, MonkeyActionBarComponent, MonkeyAlertComponent, MonkeyAutocompleteAddressComponent, MonkeyAutocompleteComponent, MonkeyAvatarComponent, MonkeyBadgeComponent, MonkeyBadgeDirective, MonkeyBreadcrumbComponent, MonkeyButtonComponent, MonkeyCheckboxComponent, MonkeyColumnChecked, MonkeyColumnExpansible, MonkeyColumnSortable, MonkeyColumnStick, MonkeyComplexFilterBarComponent, MonkeyDateRangeComponent, MonkeyDictionaryService, MonkeyDisplayDirective, MonkeyDividerComponent, MonkeyDownloadButtonComponent, MonkeyEcxAddressService, MonkeyErrorDirective, MonkeyFilterBarComponent, MonkeyFilterBarService, 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, MonkeySecurityLevelComponent, MonkeySelectComponent, MonkeyStatusComponent, MonkeyStepComponent, MonkeyStepperComponent, MonkeyStepperModule, MonkeyStepperService, MonkeySuffixDirective, MonkeyTabComponent, MonkeyTabLinkDirective, MonkeyTableComponent, MonkeyTableModule, MonkeyTabsComponent, MonkeyTabsModule, MonkeyToastComponent, MonkeyToastRef, MonkeyToastService, MonkeyToggleComponent, MonkeyToggleLineButtonComponent, MonkeyToggleLineComponent, MonkeyTooltipComponent, MonkeyTooltipDirective, MonkeyUserProfileButtonComponent, MonkeyUserProfileComponent, getCurrencySymbol, injectTokenWithWarning };
|
|
2320
|
+
export type { ActiveFilter, AutocompleteSuggestion, AutocompleteSuggestionType, ComplexFilterCondition, ComplexFilterGroup, ComplexFilterOperator, ComplexFilterResult, FilterBarConfig, FilterBarState, FilterOption, FilterType, GoogleApiPlaces, GoogleApiPlacesAddressComponents, GoogleApiPlacesResponse, MonkeyAlertType, MonkeyAutocompleteData, MonkeyAutocompleteResponse, MonkeyBreadcrumb, MonkeyButtonColor, MonkeyButtonType, MonkeyDownloadButtonChangeEvent, MonkeyInputUploadChangeEvent, MonkeyModalConfirmationConfig, MonkeyModalDefaultConfig, MonkeyPopoverDir, MonkeyPopoverOptions, MonkeySize, MonkeyTableScrollConfig, MonkeyToastPosition, MonkeyToastType, StatusOption, ToastConfig };
|
|
Binary file
|