@indigina/ui-kit 1.1.109 → 1.1.111
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/icons/to-approve.svg +6 -0
- package/fesm2022/indigina-ui-kit.mjs +56 -90
- package/fesm2022/indigina-ui-kit.mjs.map +1 -1
- package/lib/components/kit-button/kit-button.const.d.ts +2 -1
- package/lib/components/kit-dialog/kit-dialog.component.d.ts +1 -1
- package/lib/components/kit-dialog/kit-dialog.service.d.ts +7 -11
- package/lib/components/kit-dialog-actions/kit-dialog-actions.component.d.ts +1 -1
- package/lib/components/kit-popup/kit-popup.component.d.ts +2 -1
- package/lib/components/kit-svg-icon/kit-svg-icon.const.d.ts +2 -1
- package/package.json +1 -1
- package/public-api.d.ts +2 -3
- package/styles/components/button-variants.scss +277 -0
- package/lib/components/kit-dialog/kit-dialog.module.d.ts +0 -9
- package/lib/components/kit-dialog-actions/kit-dialog-actions.module.d.ts +0 -8
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
export declare class KitDialogComponent {
|
|
3
3
|
static ɵfac: i0.ɵɵFactoryDeclaration<KitDialogComponent, never>;
|
|
4
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KitDialogComponent, "kit-dialog", never, {}, {}, never, never,
|
|
4
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KitDialogComponent, "kit-dialog", never, {}, {}, never, never, true, never>;
|
|
5
5
|
}
|
|
@@ -1,17 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { DialogRef, DialogService } from '@progress/kendo-angular-dialog';
|
|
1
|
+
import { DialogRef, DialogService, DialogSettings } from '@progress/kendo-angular-dialog';
|
|
3
2
|
import * as i0 from "@angular/core";
|
|
4
|
-
export interface KitDialog<C> {
|
|
5
|
-
title: string;
|
|
6
|
-
component: Type<C>;
|
|
7
|
-
}
|
|
8
3
|
export declare class KitDialogService {
|
|
9
|
-
private dialogService;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
4
|
+
private readonly dialogService;
|
|
5
|
+
private readonly _dialogRef;
|
|
6
|
+
get isDialogOpen(): boolean;
|
|
7
|
+
get dialogInstance(): DialogRef['content']['instance'] | null;
|
|
8
|
+
get dialogRef(): DialogRef | null;
|
|
13
9
|
constructor(dialogService: DialogService);
|
|
14
|
-
openDialog
|
|
10
|
+
openDialog(settings: DialogSettings): void;
|
|
15
11
|
closeDialog(): void;
|
|
16
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<KitDialogService, never>;
|
|
17
13
|
static ɵprov: i0.ɵɵInjectableDeclaration<KitDialogService>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
export declare class KitDialogActionsComponent {
|
|
3
3
|
static ɵfac: i0.ɵɵFactoryDeclaration<KitDialogActionsComponent, never>;
|
|
4
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KitDialogActionsComponent, "kit-dialog-actions", never, {}, {}, never, ["*"],
|
|
4
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KitDialogActionsComponent, "kit-dialog-actions", never, {}, {}, never, ["*"], true, never>;
|
|
5
5
|
}
|
|
@@ -15,6 +15,7 @@ export declare class KitPopupComponent {
|
|
|
15
15
|
readonly isApplyButtonDisabled: InputSignal<boolean>;
|
|
16
16
|
readonly positionMode: InputSignal<KitPopupPositionMode>;
|
|
17
17
|
readonly popupClass: InputSignal<string>;
|
|
18
|
+
readonly closePopupOnCancel: InputSignal<boolean>;
|
|
18
19
|
readonly onCancel: OutputEmitterRef<void>;
|
|
19
20
|
readonly onApply: OutputEmitterRef<void>;
|
|
20
21
|
readonly onOpen: OutputEmitterRef<void>;
|
|
@@ -35,5 +36,5 @@ export declare class KitPopupComponent {
|
|
|
35
36
|
cancel(): void;
|
|
36
37
|
apply(): void;
|
|
37
38
|
static ɵfac: i0.ɵɵFactoryDeclaration<KitPopupComponent, never>;
|
|
38
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KitPopupComponent, "kit-popup", never, { "anchor": { "alias": "anchor"; "required": true; "isSignal": true; }; "content": { "alias": "content"; "required": true; "isSignal": true; }; "closeOnOutsideClick": { "alias": "closeOnOutsideClick"; "required": false; "isSignal": true; }; "showFooter": { "alias": "showFooter"; "required": false; "isSignal": true; }; "cancelButtonLabel": { "alias": "cancelButtonLabel"; "required": false; "isSignal": true; }; "applyButtonLabel": { "alias": "applyButtonLabel"; "required": false; "isSignal": true; }; "isApplyButtonDisabled": { "alias": "isApplyButtonDisabled"; "required": false; "isSignal": true; }; "positionMode": { "alias": "positionMode"; "required": false; "isSignal": true; }; "popupClass": { "alias": "popupClass"; "required": false; "isSignal": true; }; }, { "onCancel": "onCancel"; "onApply": "onApply"; "onOpen": "onOpen"; "onClose": "onClose"; }, never, never, true, never>;
|
|
39
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KitPopupComponent, "kit-popup", never, { "anchor": { "alias": "anchor"; "required": true; "isSignal": true; }; "content": { "alias": "content"; "required": true; "isSignal": true; }; "closeOnOutsideClick": { "alias": "closeOnOutsideClick"; "required": false; "isSignal": true; }; "showFooter": { "alias": "showFooter"; "required": false; "isSignal": true; }; "cancelButtonLabel": { "alias": "cancelButtonLabel"; "required": false; "isSignal": true; }; "applyButtonLabel": { "alias": "applyButtonLabel"; "required": false; "isSignal": true; }; "isApplyButtonDisabled": { "alias": "isApplyButtonDisabled"; "required": false; "isSignal": true; }; "positionMode": { "alias": "positionMode"; "required": false; "isSignal": true; }; "popupClass": { "alias": "popupClass"; "required": false; "isSignal": true; }; "closePopupOnCancel": { "alias": "closePopupOnCancel"; "required": false; "isSignal": true; }; }, { "onCancel": "onCancel"; "onApply": "onApply"; "onOpen": "onOpen"; "onClose": "onClose"; }, never, never, true, never>;
|
|
39
40
|
}
|
|
@@ -140,7 +140,8 @@ export declare enum KitSvgIcon {
|
|
|
140
140
|
NOTIFICATION_WARNING = "notification-warning",
|
|
141
141
|
EYE_OPEN = "eye-open",
|
|
142
142
|
EYE_CLOSE = "eye-close",
|
|
143
|
-
GLOBAL = "global"
|
|
143
|
+
GLOBAL = "global",
|
|
144
|
+
TO_APPROVE = "to-approve"
|
|
144
145
|
}
|
|
145
146
|
export declare enum KitSvgIconType {
|
|
146
147
|
FILL = "fill",
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -77,10 +77,9 @@ export { KitNavigationTabsModule } from './lib/components/kit-navigation-tabs/ki
|
|
|
77
77
|
export { KitNavigationTabsItem, KitNavigationTabsItemLink } from './lib/components/kit-navigation-tabs/kit-navigation-tabs.model';
|
|
78
78
|
export { KitNavigationTabsType } from './lib/components/kit-navigation-tabs/kit-navigation-tabs.const';
|
|
79
79
|
export { KitDialogComponent } from './lib/components/kit-dialog/kit-dialog.component';
|
|
80
|
-
export {
|
|
81
|
-
export { KitDialog, KitDialogService } from './lib/components/kit-dialog/kit-dialog.service';
|
|
80
|
+
export { KitDialogService } from './lib/components/kit-dialog/kit-dialog.service';
|
|
82
81
|
export { KitDialogActionsComponent } from './lib/components/kit-dialog-actions/kit-dialog-actions.component';
|
|
83
|
-
export {
|
|
82
|
+
export { DialogRef, DialogContentBase, DialogAction, DialogCloseResult, DialogResult } from '@progress/kendo-angular-dialog';
|
|
84
83
|
export { KitTimepickerComponent } from './lib/components/kit-timepicker/kit-timepicker.component';
|
|
85
84
|
export { KitTimepickerModule } from './lib/components/kit-timepicker/kit-timepicker.module';
|
|
86
85
|
export { KitSkeletonComponent, KitSkeletonShape, KitSkeletonAnimation } from './lib/components/kit-skeleton/kit-skeleton.component';
|
|
@@ -0,0 +1,277 @@
|
|
|
1
|
+
@mixin setIconColor($color) {
|
|
2
|
+
&.fill {
|
|
3
|
+
fill: $color;
|
|
4
|
+
stroke: none;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
&.stroke {
|
|
8
|
+
stroke: $color;
|
|
9
|
+
fill: none;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
@mixin styles {
|
|
14
|
+
.k-button-text {
|
|
15
|
+
display: flex;
|
|
16
|
+
align-items: center;
|
|
17
|
+
gap: 8px;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.kit-button-icon {
|
|
21
|
+
display: block;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.k-button {
|
|
25
|
+
font-weight: 400;
|
|
26
|
+
border: 1px solid transparent;
|
|
27
|
+
transition: none;
|
|
28
|
+
|
|
29
|
+
&:focus {
|
|
30
|
+
box-shadow: none;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&:disabled {
|
|
34
|
+
color: var(--ui-kit-color-grey-12);
|
|
35
|
+
border: 1px solid var(--ui-kit-color-grey-11);
|
|
36
|
+
background: var(--ui-kit-color-grey-13);
|
|
37
|
+
|
|
38
|
+
.kit-button-icon {
|
|
39
|
+
@include setIconColor(var(--ui-kit-color-grey-12));
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.primary {
|
|
45
|
+
color: var(--ui-kit-color-white);
|
|
46
|
+
background: var(--ui-kit-color-main);
|
|
47
|
+
|
|
48
|
+
&:hover {
|
|
49
|
+
background: var(--ui-kit-color-hover);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&.active,
|
|
53
|
+
&:active {
|
|
54
|
+
background: var(--ui-kit-color-main);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.kit-button-icon {
|
|
58
|
+
@include setIconColor(var(--ui-kit-color-white));
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.ghost {
|
|
63
|
+
color: var(--ui-kit-color-grey-10);
|
|
64
|
+
border-color: var(--ui-kit-color-grey-11);
|
|
65
|
+
background: var(--ui-kit-color-white);
|
|
66
|
+
|
|
67
|
+
&:hover {
|
|
68
|
+
color: var(--ui-kit-color-hover);
|
|
69
|
+
border-color: var(--ui-kit-color-hover);
|
|
70
|
+
|
|
71
|
+
.kit-button-icon {
|
|
72
|
+
@include setIconColor(var(--ui-kit-color-hover));
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
&.active,
|
|
77
|
+
&:active {
|
|
78
|
+
color: var(--ui-kit-color-main);
|
|
79
|
+
border-color: var(--ui-kit-color-main);
|
|
80
|
+
background: var(--ui-kit-color-background);
|
|
81
|
+
|
|
82
|
+
.kit-button-icon {
|
|
83
|
+
@include setIconColor(var(--ui-kit-color-main));
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.kit-button-icon {
|
|
88
|
+
@include setIconColor(var(--ui-kit-color-grey-10));
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.text {
|
|
93
|
+
color: var(--ui-kit-color-grey-10);
|
|
94
|
+
background: none;
|
|
95
|
+
|
|
96
|
+
&:disabled {
|
|
97
|
+
border: none;
|
|
98
|
+
background: none;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
&:hover,
|
|
102
|
+
&.active,
|
|
103
|
+
&:active {
|
|
104
|
+
background: var(--ui-kit-color-grey-13);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
&:hover {
|
|
108
|
+
color: var(--ui-kit-color-hover);
|
|
109
|
+
|
|
110
|
+
.kit-button-icon {
|
|
111
|
+
@include setIconColor(var(--ui-kit-color-hover));
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
&.active,
|
|
116
|
+
&:active {
|
|
117
|
+
color: var(--ui-kit-color-main);
|
|
118
|
+
|
|
119
|
+
.kit-button-icon {
|
|
120
|
+
@include setIconColor(var(--ui-kit-color-main));
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.kit-button-icon {
|
|
125
|
+
@include setIconColor(var(--ui-kit-color-grey-10));
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.link {
|
|
130
|
+
color: var(--ui-kit-color-main);
|
|
131
|
+
background: none;
|
|
132
|
+
|
|
133
|
+
&:disabled {
|
|
134
|
+
border: none;
|
|
135
|
+
background: none;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
&:hover {
|
|
139
|
+
color: var(--ui-kit-color-hover);
|
|
140
|
+
|
|
141
|
+
.kit-button-icon {
|
|
142
|
+
@include setIconColor(var(--ui-kit-color-hover));
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
&.active,
|
|
147
|
+
&:active {
|
|
148
|
+
color: var(--ui-kit-color-main);
|
|
149
|
+
|
|
150
|
+
.kit-button-icon {
|
|
151
|
+
@include setIconColor(var(--ui-kit-color-main));
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.kit-button-icon {
|
|
156
|
+
@include setIconColor(var(--ui-kit-color-main));
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.dashed {
|
|
161
|
+
color: var(--ui-kit-color-main);
|
|
162
|
+
border-color: var(--ui-kit-color-main);
|
|
163
|
+
border-style: dashed;
|
|
164
|
+
background: var(--ui-kit-color-white);
|
|
165
|
+
|
|
166
|
+
&:disabled {
|
|
167
|
+
border-style: dashed;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
&:hover {
|
|
171
|
+
color: var(--ui-kit-color-hover);
|
|
172
|
+
border-color: var(--ui-kit-color-hover);
|
|
173
|
+
|
|
174
|
+
.kit-button-icon {
|
|
175
|
+
@include setIconColor(var(--ui-kit-color-hover));
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
&.active,
|
|
180
|
+
&:active {
|
|
181
|
+
color: var(--ui-kit-color-main);
|
|
182
|
+
border-color: var(--ui-kit-color-main);
|
|
183
|
+
|
|
184
|
+
.kit-button-icon {
|
|
185
|
+
@include setIconColor(var(--ui-kit-color-main));
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.kit-button-icon {
|
|
190
|
+
@include setIconColor(var(--ui-kit-color-main));
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.success {
|
|
195
|
+
color: var(--ui-kit-color-white);
|
|
196
|
+
background: var(--ui-kit-color-green-1);
|
|
197
|
+
|
|
198
|
+
.kit-button-icon {
|
|
199
|
+
@include setIconColor(var(--ui-kit-color-white));
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
&:hover {
|
|
203
|
+
background: var(--ui-kit-color-green-6);
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
&:disabled {
|
|
207
|
+
border: 1px solid var(--ui-kit-color-grey-11);
|
|
208
|
+
background: var(--ui-kit-color-grey-13);
|
|
209
|
+
|
|
210
|
+
.kit-button-icon {
|
|
211
|
+
@include setIconColor(var(--ui-kit-color-grey-12));
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.large {
|
|
217
|
+
padding: 0 16px;
|
|
218
|
+
height: 40px;
|
|
219
|
+
font-size: 16px;
|
|
220
|
+
border-radius: 8px;
|
|
221
|
+
|
|
222
|
+
.kit-button-icon {
|
|
223
|
+
width: 18px;
|
|
224
|
+
height: 18px;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
.medium {
|
|
229
|
+
padding: 0 16px;
|
|
230
|
+
height: 32px;
|
|
231
|
+
font-size: 14px;
|
|
232
|
+
border-radius: 6px;
|
|
233
|
+
|
|
234
|
+
.kit-button-icon {
|
|
235
|
+
width: 16px;
|
|
236
|
+
height: 16px;
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
.small {
|
|
241
|
+
padding: 0 8px;
|
|
242
|
+
height: 24px;
|
|
243
|
+
font-size: 14px;
|
|
244
|
+
border-radius: 4px;
|
|
245
|
+
|
|
246
|
+
.kit-button-icon {
|
|
247
|
+
width: 14px;
|
|
248
|
+
height: 14px;
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
.leading {
|
|
253
|
+
.k-button-text {
|
|
254
|
+
flex-direction: row-reverse;
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
.trailing {
|
|
259
|
+
.k-button-text {
|
|
260
|
+
flex-direction: row;
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
.no-label {
|
|
265
|
+
&.large {
|
|
266
|
+
padding: 0 11px;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
&.medium {
|
|
270
|
+
padding: 0 8px;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
&.small {
|
|
274
|
+
padding: 0 6px;
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./kit-dialog.component";
|
|
3
|
-
import * as i2 from "@progress/kendo-angular-dialog";
|
|
4
|
-
import * as i3 from "@progress/kendo-angular-buttons";
|
|
5
|
-
export declare class KitDialogModule {
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<KitDialogModule, never>;
|
|
7
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<KitDialogModule, [typeof i1.KitDialogComponent], [typeof i2.DialogModule, typeof i3.ButtonModule], [typeof i1.KitDialogComponent]>;
|
|
8
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<KitDialogModule>;
|
|
9
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./kit-dialog-actions.component";
|
|
3
|
-
import * as i2 from "@progress/kendo-angular-dialog";
|
|
4
|
-
export declare class KitDialogActionsModule {
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<KitDialogActionsModule, never>;
|
|
6
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<KitDialogActionsModule, [typeof i1.KitDialogActionsComponent], [typeof i2.WindowModule], [typeof i1.KitDialogActionsComponent]>;
|
|
7
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<KitDialogActionsModule>;
|
|
8
|
-
}
|