@sd-angular/core 1.3.220 → 1.3.221
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/core/form.scss +30 -3
- package/bundles/sd-angular-core-common.umd.js +37 -0
- package/bundles/sd-angular-core-common.umd.js.map +1 -1
- package/bundles/sd-angular-core-common.umd.min.js +1 -1
- package/bundles/sd-angular-core-common.umd.min.js.map +1 -1
- package/bundles/sd-angular-core-select.umd.js +34 -5
- package/bundles/sd-angular-core-select.umd.js.map +1 -1
- package/bundles/sd-angular-core-select.umd.min.js +2 -2
- package/bundles/sd-angular-core-select.umd.min.js.map +1 -1
- package/bundles/sd-angular-core-table.umd.js +187 -181
- package/bundles/sd-angular-core-table.umd.js.map +1 -1
- package/bundles/sd-angular-core-table.umd.min.js +1 -1
- package/bundles/sd-angular-core-table.umd.min.js.map +1 -1
- package/common/sd-angular-core-common.metadata.json +1 -1
- package/common/src/lib/directives/sd-suffix-icon.directive.d.ts +6 -0
- package/common/src/public-api.d.ts +1 -0
- package/esm2015/common/src/lib/common.module.js +4 -1
- package/esm2015/common/src/lib/directives/sd-suffix-icon.directive.js +34 -0
- package/esm2015/common/src/public-api.js +2 -1
- package/esm2015/select/src/lib/select.component.js +26 -7
- package/esm2015/table/src/lib/models/table-configuration.model.js +1 -1
- package/esm2015/table/src/lib/services/table-filter/table-filter.service.js +3 -3
- package/esm2015/table/src/lib/table.component.js +22 -16
- package/fesm2015/sd-angular-core-common.js +36 -1
- package/fesm2015/sd-angular-core-common.js.map +1 -1
- package/fesm2015/sd-angular-core-select.js +25 -7
- package/fesm2015/sd-angular-core-select.js.map +1 -1
- package/fesm2015/sd-angular-core-table.js +23 -17
- package/fesm2015/sd-angular-core-table.js.map +1 -1
- package/package.json +1 -1
- package/{sd-angular-core-1.3.220.tgz → sd-angular-core-1.3.221.tgz} +0 -0
- package/select/sd-angular-core-select.metadata.json +1 -1
- package/select/src/lib/select.component.d.ts +5 -1
- package/table/sd-angular-core-table.metadata.json +1 -1
- package/table/src/lib/models/table-configuration.model.d.ts +4 -1
- package/table/src/lib/services/table-filter/table-filter.service.d.ts +2 -1
|
@@ -11,6 +11,22 @@
|
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
+
|
|
15
|
+
// sdSuffixIcon
|
|
16
|
+
// Directive sdSuffixIcon (truyền icon từ component sử dụng vào Core)
|
|
17
|
+
.sd-suffix-icon.sd-hover {
|
|
18
|
+
visibility: hidden;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
// Chỉ hiển thị khi được hover
|
|
22
|
+
.mat-form-field-flex {
|
|
23
|
+
&:hover {
|
|
24
|
+
.sd-suffix-icon.sd-hover {
|
|
25
|
+
visibility: visible;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
14
30
|
.mat-form-field-prefix,
|
|
15
31
|
.mat-form-field-suffix {
|
|
16
32
|
display: inline-flex;
|
|
@@ -23,7 +39,6 @@
|
|
|
23
39
|
}
|
|
24
40
|
|
|
25
41
|
.mat-form-field-infix {
|
|
26
|
-
|
|
27
42
|
mat-select.mat-select,
|
|
28
43
|
mat-date-range-input.mat-date-range-input,
|
|
29
44
|
input.mat-input-element {
|
|
@@ -37,6 +52,7 @@
|
|
|
37
52
|
}
|
|
38
53
|
}
|
|
39
54
|
|
|
55
|
+
// Size normal
|
|
40
56
|
&.sd-md {
|
|
41
57
|
&.mat-form-field-appearance-outline {
|
|
42
58
|
.mat-form-field-flex {
|
|
@@ -65,6 +81,17 @@
|
|
|
65
81
|
}
|
|
66
82
|
}
|
|
67
83
|
|
|
84
|
+
.sd-suffix-icons {
|
|
85
|
+
.mat-form-field-suffix {
|
|
86
|
+
mat-icon {
|
|
87
|
+
height: 24px;
|
|
88
|
+
width: 24px;
|
|
89
|
+
font-size: 20px;
|
|
90
|
+
text-align: center;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
68
95
|
&.mat-form-field-can-float {
|
|
69
96
|
&.mat-form-field-should-float {
|
|
70
97
|
.mat-form-field-label {
|
|
@@ -76,7 +103,7 @@
|
|
|
76
103
|
}
|
|
77
104
|
}
|
|
78
105
|
|
|
79
|
-
//
|
|
106
|
+
// Size small
|
|
80
107
|
&.sd-sm {
|
|
81
108
|
&.mat-form-field-appearance-outline {
|
|
82
109
|
.mat-form-field-flex {
|
|
@@ -132,4 +159,4 @@ mat-checkbox {
|
|
|
132
159
|
label.mat-checkbox-layout {
|
|
133
160
|
margin-bottom: 0;
|
|
134
161
|
}
|
|
135
|
-
}
|
|
162
|
+
}
|
|
@@ -1294,6 +1294,40 @@
|
|
|
1294
1294
|
{ type: i0.TemplateRef }
|
|
1295
1295
|
]; };
|
|
1296
1296
|
|
|
1297
|
+
var SdSuffixIconDirective = /** @class */ (function () {
|
|
1298
|
+
// #elementClass: string[] = [];
|
|
1299
|
+
// @Input('class')
|
|
1300
|
+
// @HostBinding('class')
|
|
1301
|
+
// get elementClass(): string {
|
|
1302
|
+
// return this.#elementClass.join(' ');
|
|
1303
|
+
// }
|
|
1304
|
+
// set(val: string) {
|
|
1305
|
+
// this.#elementClass = val.split(' ');
|
|
1306
|
+
// }
|
|
1307
|
+
function SdSuffixIconDirective(templateRef, renderer, hostElement) {
|
|
1308
|
+
this.templateRef = templateRef;
|
|
1309
|
+
this.renderer = renderer;
|
|
1310
|
+
// Thêm class cho suffix icon
|
|
1311
|
+
// this.renderer.addClass(hostElement.nativeElement.children[0], 'sd-suffix-icon');
|
|
1312
|
+
// this.renderer.addClass(hostElement.nativeElement.children[0], 'sd-hover');
|
|
1313
|
+
// this.renderer.addClass(hostElement.nativeElement.children[0], 'pointer');
|
|
1314
|
+
// this.#elementClass.push('sd-suffix-icon'); // Thêm class cho suffix icon
|
|
1315
|
+
// this.#elementClass.push('sd-hover'); // Thêm class cho suffix icon
|
|
1316
|
+
// this.#elementClass.push('pointer'); // Thêm class cho suffix icon
|
|
1317
|
+
}
|
|
1318
|
+
return SdSuffixIconDirective;
|
|
1319
|
+
}());
|
|
1320
|
+
SdSuffixIconDirective.decorators = [
|
|
1321
|
+
{ type: i0.Directive, args: [{
|
|
1322
|
+
selector: '[sdSuffixIcon]',
|
|
1323
|
+
},] }
|
|
1324
|
+
];
|
|
1325
|
+
SdSuffixIconDirective.ctorParameters = function () { return [
|
|
1326
|
+
{ type: i0.TemplateRef },
|
|
1327
|
+
{ type: i0.Renderer2 },
|
|
1328
|
+
{ type: i0.ElementRef }
|
|
1329
|
+
]; };
|
|
1330
|
+
|
|
1297
1331
|
var SdLabelDefDirective = /** @class */ (function () {
|
|
1298
1332
|
// @Input() sdLableDef: string;
|
|
1299
1333
|
function SdLabelDefDirective(templateRef) {
|
|
@@ -1416,6 +1450,7 @@
|
|
|
1416
1450
|
SdLetDirective,
|
|
1417
1451
|
SdScrollDirective,
|
|
1418
1452
|
SdSuffixDirective,
|
|
1453
|
+
SdSuffixIconDirective,
|
|
1419
1454
|
SdLabelDefDirective
|
|
1420
1455
|
],
|
|
1421
1456
|
exports: [
|
|
@@ -1424,6 +1459,7 @@
|
|
|
1424
1459
|
SdLetDirective,
|
|
1425
1460
|
SdScrollDirective,
|
|
1426
1461
|
SdSuffixDirective,
|
|
1462
|
+
SdSuffixIconDirective,
|
|
1427
1463
|
SdLabelDefDirective
|
|
1428
1464
|
],
|
|
1429
1465
|
providers: []
|
|
@@ -1443,6 +1479,7 @@
|
|
|
1443
1479
|
exports.SdLetDirective = SdLetDirective;
|
|
1444
1480
|
exports.SdScrollDirective = SdScrollDirective;
|
|
1445
1481
|
exports.SdSuffixDirective = SdSuffixDirective;
|
|
1482
|
+
exports.SdSuffixIconDirective = SdSuffixIconDirective;
|
|
1446
1483
|
exports.SdViewDefDirective = SdViewDefDirective;
|
|
1447
1484
|
exports.ɵa = SdForDirective;
|
|
1448
1485
|
|