@gipisistemas/ngx-core 1.0.25 → 1.0.26
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/components/form-wrapper/form-wrapper.scss +1 -1
- package/components/password-requirements/password-requirements.scss +1 -1
- package/components/select/select.scss +4 -12
- package/fesm2022/gipisistemas-ngx-core.mjs +11 -29
- package/fesm2022/gipisistemas-ngx-core.mjs.map +1 -1
- package/index.d.ts +3 -3
- package/package.json +1 -1
- package/theming/_breakpoints.scss +34 -5
|
@@ -51,16 +51,18 @@
|
|
|
51
51
|
gap: 0.4rem;
|
|
52
52
|
max-width: 14rem;
|
|
53
53
|
max-height: 2rem;
|
|
54
|
+
min-width: 0;
|
|
54
55
|
padding: 0.2rem 0.8rem;
|
|
55
56
|
border-radius: 0.6rem;
|
|
56
57
|
background-color: #e0e1e2;
|
|
57
58
|
font-size: 1.2rem;
|
|
58
59
|
color: $font-color;
|
|
59
60
|
font-weight: 600;
|
|
60
|
-
flex
|
|
61
|
+
flex: 0 1 auto;
|
|
61
62
|
}
|
|
62
63
|
|
|
63
64
|
.g-select-value-chip-label {
|
|
65
|
+
flex: 1 1 auto;
|
|
64
66
|
overflow: hidden;
|
|
65
67
|
text-overflow: ellipsis;
|
|
66
68
|
white-space: nowrap;
|
|
@@ -79,6 +81,7 @@
|
|
|
79
81
|
background: transparent;
|
|
80
82
|
color: $font-color;
|
|
81
83
|
cursor: pointer;
|
|
84
|
+
flex-shrink: 0;
|
|
82
85
|
|
|
83
86
|
> span {
|
|
84
87
|
font-size: 1.4rem;
|
|
@@ -91,17 +94,6 @@
|
|
|
91
94
|
}
|
|
92
95
|
}
|
|
93
96
|
|
|
94
|
-
.g-select-value-chip-ellipsis {
|
|
95
|
-
display: inline-flex;
|
|
96
|
-
align-items: center;
|
|
97
|
-
justify-content: center;
|
|
98
|
-
min-width: 2.4rem;
|
|
99
|
-
padding: 0 0.6rem;
|
|
100
|
-
font-size: $font-size;
|
|
101
|
-
color: $font-color;
|
|
102
|
-
flex-shrink: 0;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
97
|
.select-input-multiple-hidden {
|
|
106
98
|
display: none;
|
|
107
99
|
}
|
|
@@ -1414,9 +1414,9 @@ class ArrayUtil {
|
|
|
1414
1414
|
|
|
1415
1415
|
class CssUtil {
|
|
1416
1416
|
static { this.BREAKPOINT_MOBILE_PX = 639.98; }
|
|
1417
|
-
static { this.BREAKPOINT_MOBILE = '(max-width:
|
|
1418
|
-
static { this.BREAKPOINT_TABLET = '(min-width:
|
|
1419
|
-
static { this.BREAKPOINT_DESKTOP = '(min-width:
|
|
1417
|
+
static { this.BREAKPOINT_MOBILE = '(max-width: 767.98px)'; }
|
|
1418
|
+
static { this.BREAKPOINT_TABLET = '(min-width: 768px) and (max-width: 1366.98px)'; }
|
|
1419
|
+
static { this.BREAKPOINT_DESKTOP = '(min-width: 1367px)'; }
|
|
1420
1420
|
static { this.BREAKPOINTS = {
|
|
1421
1421
|
sm: this.BREAKPOINT_MOBILE,
|
|
1422
1422
|
md: this.BREAKPOINT_TABLET,
|
|
@@ -14338,12 +14338,6 @@ class Select extends BaseControlValueAccessor {
|
|
|
14338
14338
|
}
|
|
14339
14339
|
return this.valueAsArray().slice(0, this.visibleSelectedCount());
|
|
14340
14340
|
}, ...(ngDevMode ? [{ debugName: "visibleSelectedValues" }] : []));
|
|
14341
|
-
this.hasHiddenSelectedValues = computed(() => {
|
|
14342
|
-
if (!this.multiple()) {
|
|
14343
|
-
return false;
|
|
14344
|
-
}
|
|
14345
|
-
return this.hiddenSelectedCount() > 0;
|
|
14346
|
-
}, ...(ngDevMode ? [{ debugName: "hasHiddenSelectedValues" }] : []));
|
|
14347
14341
|
this.hiddenSelectedCount = computed(() => {
|
|
14348
14342
|
if (!this.multiple()) {
|
|
14349
14343
|
return 0;
|
|
@@ -14808,29 +14802,23 @@ class Select extends BaseControlValueAccessor {
|
|
|
14808
14802
|
const actionsWidth = actions?.offsetWidth ?? 0;
|
|
14809
14803
|
const availableWidth = Math.max(wrapperWidth - actionsWidth - 24, 0);
|
|
14810
14804
|
if (availableWidth <= 0) {
|
|
14811
|
-
this.visibleSelectedCount.set(
|
|
14805
|
+
this.visibleSelectedCount.set(1);
|
|
14812
14806
|
return;
|
|
14813
14807
|
}
|
|
14814
14808
|
const chipGap = 4;
|
|
14815
|
-
const ellipsisWidth = 28;
|
|
14816
14809
|
let usedWidth = 0;
|
|
14817
14810
|
let visibleCount = 0;
|
|
14818
|
-
for (
|
|
14819
|
-
const label = this.getOptionLabelByValue(
|
|
14811
|
+
for (const selectedValue of selected) {
|
|
14812
|
+
const label = this.getOptionLabelByValue(selectedValue);
|
|
14820
14813
|
const chipWidth = this._measureChipWidth(label, input);
|
|
14821
|
-
const
|
|
14822
|
-
const needsEllipsis = remainingItems > 0;
|
|
14823
|
-
const projectedWidth = usedWidth +
|
|
14824
|
-
(visibleCount > 0 ? chipGap : 0) +
|
|
14825
|
-
chipWidth +
|
|
14826
|
-
(needsEllipsis ? chipGap + ellipsisWidth : 0);
|
|
14814
|
+
const projectedWidth = usedWidth + (visibleCount > 0 ? chipGap : 0) + chipWidth;
|
|
14827
14815
|
if (projectedWidth > availableWidth) {
|
|
14828
14816
|
break;
|
|
14829
14817
|
}
|
|
14830
14818
|
usedWidth += (visibleCount > 0 ? chipGap : 0) + chipWidth;
|
|
14831
14819
|
visibleCount++;
|
|
14832
14820
|
}
|
|
14833
|
-
this.visibleSelectedCount.set(visibleCount);
|
|
14821
|
+
this.visibleSelectedCount.set(Math.max(visibleCount, 1));
|
|
14834
14822
|
}
|
|
14835
14823
|
_measureChipWidth(label, input) {
|
|
14836
14824
|
if (!this._measureCanvas) {
|
|
@@ -15001,9 +14989,6 @@ class Select extends BaseControlValueAccessor {
|
|
|
15001
14989
|
</button>
|
|
15002
14990
|
</span>
|
|
15003
14991
|
}
|
|
15004
|
-
@if (hasHiddenSelectedValues()) {
|
|
15005
|
-
<span class="g-select-value-chip-ellipsis">...</span>
|
|
15006
|
-
}
|
|
15007
14992
|
</div>
|
|
15008
14993
|
}
|
|
15009
14994
|
|
|
@@ -15242,9 +15227,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
15242
15227
|
</button>
|
|
15243
15228
|
</span>
|
|
15244
15229
|
}
|
|
15245
|
-
@if (hasHiddenSelectedValues()) {
|
|
15246
|
-
<span class="g-select-value-chip-ellipsis">...</span>
|
|
15247
|
-
}
|
|
15248
15230
|
</div>
|
|
15249
15231
|
}
|
|
15250
15232
|
|
|
@@ -16355,8 +16337,8 @@ const SELECTORS = `
|
|
|
16355
16337
|
const BREAKPOINTS = {
|
|
16356
16338
|
base: '(min-width: 0px)',
|
|
16357
16339
|
sm: '(max-width: 767px)',
|
|
16358
|
-
md: '(min-width: 768px) and (max-width:
|
|
16359
|
-
lg: '(min-width:
|
|
16340
|
+
md: '(min-width: 768px) and (max-width: 1366px)',
|
|
16341
|
+
lg: '(min-width: 1367px)',
|
|
16360
16342
|
};
|
|
16361
16343
|
class FlexLayoutDirective {
|
|
16362
16344
|
constructor() {
|
|
@@ -19629,7 +19611,7 @@ class Sidenav {
|
|
|
19629
19611
|
this._changeDetectorRef.detectChanges();
|
|
19630
19612
|
}
|
|
19631
19613
|
_getViewportSize(width) {
|
|
19632
|
-
if (width <=
|
|
19614
|
+
if (width <= 767) {
|
|
19633
19615
|
return 'mobile';
|
|
19634
19616
|
}
|
|
19635
19617
|
if (width < 1366) {
|