@arsedizioni/ars-utils 18.1.129 → 18.1.130
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/clipper.common/common/services/clipper.service.d.ts +1 -3
- package/clipper.ui/ui/references/references.component.d.ts +0 -12
- package/core/core.module.d.ts +0 -1
- package/core/public_api.d.ts +0 -1
- package/esm2022/clipper.common/common/services/clipper.service.mjs +2 -6
- package/esm2022/clipper.ui/ui/references/references.component.mjs +4 -25
- package/esm2022/core/core.module.mjs +1 -2
- package/esm2022/core/public_api.mjs +1 -2
- package/fesm2022/arsedizioni-ars-utils-clipper.common.mjs +1 -5
- package/fesm2022/arsedizioni-ars-utils-clipper.common.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-clipper.ui.mjs +3 -24
- package/fesm2022/arsedizioni-ars-utils-clipper.ui.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-core.mjs +1 -58
- package/fesm2022/arsedizioni-ars-utils-core.mjs.map +1 -1
- package/package.json +7 -7
|
@@ -1634,63 +1634,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.3", ngImpor
|
|
|
1634
1634
|
}]
|
|
1635
1635
|
}] });
|
|
1636
1636
|
|
|
1637
|
-
class Scrollable {
|
|
1638
|
-
constructor() {
|
|
1639
|
-
this.scrollPositions = [];
|
|
1640
|
-
}
|
|
1641
|
-
/**
|
|
1642
|
-
* Try to restore the scroll position on a DOM element
|
|
1643
|
-
* @param id : the unique id
|
|
1644
|
-
* @param elementName : the DOM element name
|
|
1645
|
-
*/
|
|
1646
|
-
tryRestorePosition(id, elementName) {
|
|
1647
|
-
if (!SystemUtils.isBrowser())
|
|
1648
|
-
return;
|
|
1649
|
-
let found = false;
|
|
1650
|
-
if (this.scrollPositions.length > 0) {
|
|
1651
|
-
let positions = this.scrollPositions.map((x) => ({ ...x }));
|
|
1652
|
-
while (positions.length > 0) {
|
|
1653
|
-
if (positions[positions.length - 1].id != id)
|
|
1654
|
-
positions.pop();
|
|
1655
|
-
else {
|
|
1656
|
-
let p = positions.pop();
|
|
1657
|
-
setTimeout(() => {
|
|
1658
|
-
document.querySelector(elementName)?.scrollTo(0, p.position);
|
|
1659
|
-
});
|
|
1660
|
-
// Restore positions
|
|
1661
|
-
this.scrollPositions = positions;
|
|
1662
|
-
found = true;
|
|
1663
|
-
break;
|
|
1664
|
-
}
|
|
1665
|
-
}
|
|
1666
|
-
}
|
|
1667
|
-
if (!found) {
|
|
1668
|
-
setTimeout(() => {
|
|
1669
|
-
document.querySelector(elementName)?.scrollTo(0, 0);
|
|
1670
|
-
});
|
|
1671
|
-
}
|
|
1672
|
-
}
|
|
1673
|
-
/**
|
|
1674
|
-
* Save a DOM elment scroll position on the stack
|
|
1675
|
-
* @param id : the unique id
|
|
1676
|
-
* @param elementName : the DOM element name
|
|
1677
|
-
*/
|
|
1678
|
-
savePosition(id, elementName) {
|
|
1679
|
-
if (!SystemUtils.isBrowser())
|
|
1680
|
-
return;
|
|
1681
|
-
this.scrollPositions.push({
|
|
1682
|
-
id: id,
|
|
1683
|
-
position: document.querySelector(elementName)?.scrollTop
|
|
1684
|
-
});
|
|
1685
|
-
}
|
|
1686
|
-
/**
|
|
1687
|
-
* Clear scroll positions
|
|
1688
|
-
*/
|
|
1689
|
-
resetPositions() {
|
|
1690
|
-
this.scrollPositions = [];
|
|
1691
|
-
}
|
|
1692
|
-
}
|
|
1693
|
-
|
|
1694
1637
|
class SelectableModel {
|
|
1695
1638
|
get all() {
|
|
1696
1639
|
return this._all;
|
|
@@ -2040,5 +1983,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.3", ngImpor
|
|
|
2040
1983
|
* Generated bundle index. Do not edit.
|
|
2041
1984
|
*/
|
|
2042
1985
|
|
|
2043
|
-
export { ArsCoreModule, ArsDateFnsModule, AutoFocusDirective, BroadcastService, CopyClipboardDirective, DateFnsAdapter, DateFormat, DateInterval, DateIntervalChangeDirective, DeleteModel, EmailsValidatorDirective, EnvironmentService, EqualsValidatorDirective, FileInfo, FileSizeValidatorDirective, FormatPipe, GroupModel, GuidValidatorDirective, IDModel, ImportModel, MAT_DATE_FNS_FORMATS, NotFutureValidatorDirective, PasswordValidatorDirective, QueryModel, RelationModel, ReplacePipe, SafeHtmlPipe, SafeUrlPipe, ScreenMessages, ScreenService,
|
|
1986
|
+
export { ArsCoreModule, ArsDateFnsModule, AutoFocusDirective, BroadcastService, CopyClipboardDirective, DateFnsAdapter, DateFormat, DateInterval, DateIntervalChangeDirective, DeleteModel, EmailsValidatorDirective, EnvironmentService, EqualsValidatorDirective, FileInfo, FileSizeValidatorDirective, FormatPipe, GroupModel, GuidValidatorDirective, IDModel, ImportModel, MAT_DATE_FNS_FORMATS, NotFutureValidatorDirective, PasswordValidatorDirective, QueryModel, RelationModel, ReplacePipe, SafeHtmlPipe, SafeUrlPipe, ScreenMessages, ScreenService, SearchCallbackPipe, SearchFilterPipe, SelectableModel, SqlDateValidatorDirective, SystemUtils, TimeValidatorDirective, UpdateRelationsModel, UrlValidatorDirective, ValidIfDirective, ValidatorDirective, ValueModel };
|
|
2044
1987
|
//# sourceMappingURL=arsedizioni-ars-utils-core.mjs.map
|