monkey-style-guide-v2 0.0.30 → 0.0.32
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/assets/scss/input/_styles.scss +2 -3
- package/assets/scss/partials/_index.scss +1 -0
- package/assets/scss/partials/_popover.scss +3 -0
- package/assets/scss/partials/_skeleton-loading.scss +7 -1
- package/assets/scss/theme.scss +0 -1
- package/fesm2022/monkey-style-guide-v2.mjs +380 -56
- package/fesm2022/monkey-style-guide-v2.mjs.map +1 -1
- package/lib/components/index.d.ts +1 -0
- package/{assets/scss/typography/_index.scss → lib/components/input-date-range/index.d.ts} +3 -4
- package/lib/components/input-date-range/input-date-range.component.d.ts +57 -0
- package/lib/components/option/option.component.d.ts +2 -7
- package/lib/components/select/select.component.d.ts +3 -5
- package/monkey-style-guide-v2-0.0.32.tgz +0 -0
- package/package.json +1 -1
- package/assets/scss/typography/_styles.scss +0 -194
- package/monkey-style-guide-v2-0.0.30.tgz +0 -0
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
/** ************************
|
|
2
2
|
* Copyright Monkey Exchange. All Rights Reserved
|
|
3
3
|
* This style guide was developed by Monkey Exchange Team
|
|
4
4
|
* MIT Licence
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
@use 'styles';
|
|
5
|
+
************************* */
|
|
6
|
+
export * from './input-date-range.component';
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { AfterContentInit, ElementRef, OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { ControlValueAccessor, NgControl } from '@angular/forms';
|
|
3
|
+
import { Subject } from 'rxjs';
|
|
4
|
+
import { MonkeyFormFieldComponent, MonkeyFormFieldControl } from '../form-field';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class MonkeyInputDateRangeComponent implements MonkeyFormFieldControl, ControlValueAccessor, AfterContentInit, OnDestroy, OnChanges {
|
|
7
|
+
formField: MonkeyFormFieldComponent;
|
|
8
|
+
placeholder: string;
|
|
9
|
+
title: string;
|
|
10
|
+
tabIndex: number;
|
|
11
|
+
minDate: Date | string;
|
|
12
|
+
maxDate: Date | string;
|
|
13
|
+
get disabled(): boolean;
|
|
14
|
+
set disabled(value: boolean);
|
|
15
|
+
_disabled: boolean;
|
|
16
|
+
get required(): boolean;
|
|
17
|
+
set required(value: boolean);
|
|
18
|
+
private _required;
|
|
19
|
+
set value(value: any);
|
|
20
|
+
get value(): any;
|
|
21
|
+
_value: string | null;
|
|
22
|
+
constructor(formField: MonkeyFormFieldComponent);
|
|
23
|
+
ngControl: NgControl | null;
|
|
24
|
+
private readonly idGenerator;
|
|
25
|
+
readonly id: string;
|
|
26
|
+
focused: boolean;
|
|
27
|
+
readonly type: string;
|
|
28
|
+
readonly stateChanges: Subject<void>;
|
|
29
|
+
protected _elementRef: ElementRef<HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement>;
|
|
30
|
+
_onChange: any;
|
|
31
|
+
_onTouched: any;
|
|
32
|
+
showPopOver: boolean;
|
|
33
|
+
startDate: string;
|
|
34
|
+
endDate: string;
|
|
35
|
+
handledMinDate: string;
|
|
36
|
+
handledMaxDate: string;
|
|
37
|
+
get elementTarget(): any;
|
|
38
|
+
closePopOver: () => void;
|
|
39
|
+
ngAfterContentInit(): void;
|
|
40
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
41
|
+
ngOnDestroy(): void;
|
|
42
|
+
onContainerClick(event: MouseEvent): void;
|
|
43
|
+
_onFocus(): void;
|
|
44
|
+
_onBlur(): void;
|
|
45
|
+
registerOnChange(fn: any): void;
|
|
46
|
+
registerOnTouched(fn: any): void;
|
|
47
|
+
setDisabledState(isDisabled: boolean): void;
|
|
48
|
+
private handleValue;
|
|
49
|
+
private validateValue;
|
|
50
|
+
writeValue(value: any): void;
|
|
51
|
+
onOpenPopover(): void;
|
|
52
|
+
onHandleDate(event: any): void;
|
|
53
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyInputDateRangeComponent, [{ optional: true; }]>;
|
|
54
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MonkeyInputDateRangeComponent, "monkey-input-date-range", never, { "placeholder": { "alias": "placeholder"; "required": true; }; "title": { "alias": "title"; "required": true; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "minDate": { "alias": "minDate"; "required": false; }; "maxDate": { "alias": "maxDate"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "required": { "alias": "required"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, {}, never, never, true, never>;
|
|
55
|
+
static ngAcceptInputType_disabled: unknown;
|
|
56
|
+
static ngAcceptInputType_required: unknown;
|
|
57
|
+
}
|
|
@@ -1,14 +1,9 @@
|
|
|
1
|
-
/** ************************
|
|
2
|
-
* Copyright Monkey Exchange. All Rights Reserved
|
|
3
|
-
* This style guide was developed by Monkey Exchange Team
|
|
4
|
-
* MIT Licence
|
|
5
|
-
************************* */
|
|
6
1
|
import { ElementRef } from '@angular/core';
|
|
7
2
|
import * as i0 from "@angular/core";
|
|
8
3
|
export declare class MonkeyOptionComponent {
|
|
9
4
|
private readonly idGenerator;
|
|
10
5
|
_content: ElementRef<HTMLElement> | undefined;
|
|
11
|
-
value: any
|
|
6
|
+
readonly value: import("@angular/core").InputSignal<any>;
|
|
12
7
|
disabled: boolean;
|
|
13
8
|
type: string;
|
|
14
9
|
get displayContent(): string;
|
|
@@ -20,6 +15,6 @@ export declare class MonkeyOptionComponent {
|
|
|
20
15
|
onClick(event: MouseEvent): void;
|
|
21
16
|
handleKeyDown(event: KeyboardEvent): void;
|
|
22
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyOptionComponent, never>;
|
|
23
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MonkeyOptionComponent, "monkey-option", never, { "value": { "alias": "value"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "type": { "alias": "type"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MonkeyOptionComponent, "monkey-option", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; }; "type": { "alias": "type"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
24
19
|
static ngAcceptInputType_disabled: unknown;
|
|
25
20
|
}
|
|
@@ -17,12 +17,11 @@ export declare class MonkeySelectComponent implements MonkeyFormFieldControl, Co
|
|
|
17
17
|
options: QueryList<MonkeyOptionComponent>;
|
|
18
18
|
tabIndex: number;
|
|
19
19
|
onChange: EventEmitter<any>;
|
|
20
|
-
onSearch: EventEmitter<any>;
|
|
21
20
|
placeholder: string;
|
|
22
21
|
loading: boolean;
|
|
23
22
|
showSearch: boolean;
|
|
24
23
|
searchPlaceholder: string;
|
|
25
|
-
|
|
24
|
+
type: string;
|
|
26
25
|
get disabled(): boolean;
|
|
27
26
|
set disabled(value: boolean);
|
|
28
27
|
get required(): boolean;
|
|
@@ -43,7 +42,6 @@ export declare class MonkeySelectComponent implements MonkeyFormFieldControl, Co
|
|
|
43
42
|
readonly id: string;
|
|
44
43
|
readonly percent: boolean;
|
|
45
44
|
readonly stateChanges: Subject<void>;
|
|
46
|
-
readonly type: string;
|
|
47
45
|
readonly searchHandle: EventEmitter<string>;
|
|
48
46
|
readonly searchDictionary: import("rxjs").Observable<any>;
|
|
49
47
|
readonly loadingDictionary: import("rxjs").Observable<any>;
|
|
@@ -62,6 +60,7 @@ export declare class MonkeySelectComponent implements MonkeyFormFieldControl, Co
|
|
|
62
60
|
private updateSelectedLabel;
|
|
63
61
|
private executeSearch;
|
|
64
62
|
private repositionScroll;
|
|
63
|
+
private getComparationValue;
|
|
65
64
|
ngOnInit(): void;
|
|
66
65
|
ngAfterContentInit(): void;
|
|
67
66
|
ngOnDestroy(): void;
|
|
@@ -80,10 +79,9 @@ export declare class MonkeySelectComponent implements MonkeyFormFieldControl, Co
|
|
|
80
79
|
ngOnChanges(changes: SimpleChanges): void;
|
|
81
80
|
onHandleSearch(event: Event): void;
|
|
82
81
|
static ɵfac: i0.ɵɵFactoryDeclaration<MonkeySelectComponent, [null, null, null, { optional: true; }]>;
|
|
83
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MonkeySelectComponent, "monkey-select", never, { "tabIndex": { "alias": "tabIndex"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": true; }; "loading": { "alias": "loading"; "required": false; }; "showSearch": { "alias": "showSearch"; "required": false; }; "searchPlaceholder": { "alias": "searchPlaceholder"; "required": false; }; "
|
|
82
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MonkeySelectComponent, "monkey-select", never, { "tabIndex": { "alias": "tabIndex"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": true; }; "loading": { "alias": "loading"; "required": false; }; "showSearch": { "alias": "showSearch"; "required": false; }; "searchPlaceholder": { "alias": "searchPlaceholder"; "required": false; }; "type": { "alias": "type"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "required": { "alias": "required"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "onChange": "onChange"; }, ["options"], ["*"], true, never>;
|
|
84
83
|
static ngAcceptInputType_loading: unknown;
|
|
85
84
|
static ngAcceptInputType_showSearch: unknown;
|
|
86
|
-
static ngAcceptInputType_callbackSearch: unknown;
|
|
87
85
|
static ngAcceptInputType_disabled: unknown;
|
|
88
86
|
static ngAcceptInputType_required: unknown;
|
|
89
87
|
}
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,194 +0,0 @@
|
|
|
1
|
-
/** ************************
|
|
2
|
-
* Copyright Monkey Exchange. All Rights Reserved
|
|
3
|
-
* This style guide was developed by Monkey Exchange Team
|
|
4
|
-
* MIT Licence
|
|
5
|
-
************************* */
|
|
6
|
-
|
|
7
|
-
@use '../partials/variables';
|
|
8
|
-
|
|
9
|
-
* {
|
|
10
|
-
font-family: var(--mecx-font-name), arial, sans-serif;
|
|
11
|
-
-webkit-font-smoothing: auto;
|
|
12
|
-
-moz-osx-font-smoothing: auto;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
body {
|
|
16
|
-
margin: 0;
|
|
17
|
-
padding: 0;
|
|
18
|
-
background-color: var(--mecx-color-white);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
h1 {
|
|
22
|
-
// @include mecx-font(
|
|
23
|
-
// (
|
|
24
|
-
// size: f-size(xxl)
|
|
25
|
-
// )
|
|
26
|
-
// );
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
h2 {
|
|
30
|
-
// @include mecx-font(
|
|
31
|
-
// (
|
|
32
|
-
// size: f-size(xl)
|
|
33
|
-
// )
|
|
34
|
-
// );
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
h3 {
|
|
38
|
-
// @include mecx-font(
|
|
39
|
-
// (
|
|
40
|
-
// size: f-size(lg)
|
|
41
|
-
// )
|
|
42
|
-
// );
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
h4 {
|
|
46
|
-
// @include mecx-font(
|
|
47
|
-
// (
|
|
48
|
-
// size: f-size(md)
|
|
49
|
-
// )
|
|
50
|
-
// );
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
h5 {
|
|
54
|
-
// @include mecx-font(
|
|
55
|
-
// (
|
|
56
|
-
// size: f-size(sm)
|
|
57
|
-
// )
|
|
58
|
-
// );
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
h6 {
|
|
62
|
-
// @include mecx-font;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
p {
|
|
66
|
-
// @include mecx-font;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
a {
|
|
70
|
-
// text-decoration: none;
|
|
71
|
-
// cursor: pointer;
|
|
72
|
-
|
|
73
|
-
// @include mecx-font(
|
|
74
|
-
// (
|
|
75
|
-
// color: var(--mecx-color-link)
|
|
76
|
-
// )
|
|
77
|
-
// );
|
|
78
|
-
|
|
79
|
-
// &:hover {
|
|
80
|
-
// text-decoration: underline;
|
|
81
|
-
// }
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
.bg {
|
|
85
|
-
// @include gray-cl('background-color');
|
|
86
|
-
// @include theme-cl('background-color');
|
|
87
|
-
// @include warning-cl('background-color');
|
|
88
|
-
// @include success-cl('background-color');
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
.txt {
|
|
92
|
-
// @include gray-cl;
|
|
93
|
-
// @include theme-cl;
|
|
94
|
-
// @include warning-cl;
|
|
95
|
-
// @include success-cl;
|
|
96
|
-
// @include error-cl;
|
|
97
|
-
// @include align;
|
|
98
|
-
// @include sizes;
|
|
99
|
-
// @include weight;
|
|
100
|
-
// @include line-height;
|
|
101
|
-
|
|
102
|
-
&-none {
|
|
103
|
-
text-decoration: none;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
&-underline {
|
|
107
|
-
text-decoration: underline;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
&-upper {
|
|
111
|
-
text-transform: uppercase;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
&-lower {
|
|
115
|
-
text-transform: lowercase;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
&-capitalize {
|
|
119
|
-
text-transform: capitalize;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
&-shadow {
|
|
123
|
-
// text-shadow: 2px 2px 4px;
|
|
124
|
-
// color: f-cl-gray(700);
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
.mecx-title-page {
|
|
129
|
-
// @include mecx-font(
|
|
130
|
-
// (
|
|
131
|
-
// size: f-size(xl),
|
|
132
|
-
// weight: f-weight(bold),
|
|
133
|
-
// height: f-lh(super),
|
|
134
|
-
// color: f-cl-gray(900)
|
|
135
|
-
// )
|
|
136
|
-
// );
|
|
137
|
-
|
|
138
|
-
// font-style: normal;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
.mecx-subtitle-page {
|
|
142
|
-
// @include mecx-font(
|
|
143
|
-
// (
|
|
144
|
-
// size: f-size(xs),
|
|
145
|
-
// weight: f-weight(regular),
|
|
146
|
-
// height: f-lh(med),
|
|
147
|
-
// color: f-cl-gray(700)
|
|
148
|
-
// )
|
|
149
|
-
// );
|
|
150
|
-
|
|
151
|
-
// font-style: normal;
|
|
152
|
-
// letter-spacing: 0.48px;
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
.mecx-description {
|
|
156
|
-
// @include mecx-font(
|
|
157
|
-
// (
|
|
158
|
-
// size: f-size(xs),
|
|
159
|
-
// weight: f-weight(regular),
|
|
160
|
-
// height: f-lh(md)
|
|
161
|
-
// )
|
|
162
|
-
// );
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
.mecx-title {
|
|
166
|
-
// @include mecx-font(
|
|
167
|
-
// (
|
|
168
|
-
// size: f-size(xxs),
|
|
169
|
-
// weight: f-weight(regular),
|
|
170
|
-
// height: f-lh(md),
|
|
171
|
-
// color: f-cl-gray(700)
|
|
172
|
-
// )
|
|
173
|
-
// );
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
.mecx-value {
|
|
177
|
-
// @include mecx-font(
|
|
178
|
-
// (
|
|
179
|
-
// size: f-size(xxs),
|
|
180
|
-
// weight: f-weight(regular),
|
|
181
|
-
// height: f-lh(md)
|
|
182
|
-
// )
|
|
183
|
-
// );
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
.mecx-label {
|
|
187
|
-
// @include mecx-font(
|
|
188
|
-
// (
|
|
189
|
-
// size: f-size(xxs),
|
|
190
|
-
// weight: f-weight(regular),
|
|
191
|
-
// height: f-lh(md)
|
|
192
|
-
// )
|
|
193
|
-
// );
|
|
194
|
-
}
|
|
Binary file
|