coer-elements 2.0.2 → 2.0.3
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/lib/coer-button/coer-button.component.d.ts +3 -3
- package/components/lib/coer-datebox/coer-datebox.component.d.ts +1 -1
- package/components/lib/coer-dropdown/coer-dropdown.component.d.ts +4 -4
- package/components/lib/coer-numberbox/coer-numberbox.component.d.ts +1 -1
- package/components/lib/coer-secretbox/coer-secretbox.component.d.ts +1 -1
- package/components/lib/coer-selectbox/coer-selectbox.component.d.ts +3 -4
- package/components/lib/coer-switch/coer-switch.component.d.ts +1 -1
- package/components/lib/coer-textarea/coer-textarea.component.d.ts +1 -1
- package/components/lib/coer-textbox/coer-textbox.component.d.ts +1 -1
- package/fesm2022/coer-elements-components.mjs +8 -9
- package/fesm2022/coer-elements-components.mjs.map +1 -1
- package/fesm2022/coer-elements-tools.mjs +15 -1
- package/fesm2022/coer-elements-tools.mjs.map +1 -1
- package/package.json +5 -5
- package/tools/lib/breadcrumbs.class.d.ts +2 -0
- package/tools/lib/date-time.class.d.ts +2 -0
- package/tools/lib/page.class.d.ts +2 -0
@@ -598,6 +598,11 @@ class Breadcrumbs {
|
|
598
598
|
return (breadcrumbs.length > 0) ? breadcrumbs.shift() : null;
|
599
599
|
}
|
600
600
|
/** */
|
601
|
+
static GetLast() {
|
602
|
+
const breadcrumbs = this.Get();
|
603
|
+
return (breadcrumbs.length > 0) ? breadcrumbs.pop() : null;
|
604
|
+
}
|
605
|
+
/** */
|
601
606
|
static Save(breadcrumbs) {
|
602
607
|
let storage = sessionStorage.getItem(this.storage);
|
603
608
|
if (storage)
|
@@ -716,6 +721,10 @@ class DateTime {
|
|
716
721
|
return moment().utcOffset();
|
717
722
|
}
|
718
723
|
/** YYYY-MM-DD HH:mm:ss */
|
724
|
+
static GetCurrentDateTime() {
|
725
|
+
return moment().parseZone().local(true).format('YYYY-MM-DD HH:mm:ss');
|
726
|
+
}
|
727
|
+
/** YYYY-MM-DD HH:mm:ss */
|
719
728
|
static GetFormatDB(date) {
|
720
729
|
date = new Date(date.toString());
|
721
730
|
return moment(date).format('YYYY-MM-DD HH:mm:ss');
|
@@ -1251,7 +1260,7 @@ class Page {
|
|
1251
1260
|
}
|
1252
1261
|
ngOnDestroy() {
|
1253
1262
|
if (!this._preventDestroy)
|
1254
|
-
|
1263
|
+
this.ClearPageResponse();
|
1255
1264
|
}
|
1256
1265
|
/** Main method. Starts after ngAfterViewInit() */
|
1257
1266
|
RunPage() { }
|
@@ -1343,6 +1352,11 @@ class Page {
|
|
1343
1352
|
}
|
1344
1353
|
;
|
1345
1354
|
/** */
|
1355
|
+
ClearPageResponse() {
|
1356
|
+
Source.ClearPageResponse();
|
1357
|
+
}
|
1358
|
+
;
|
1359
|
+
/** */
|
1346
1360
|
ReloadPage() {
|
1347
1361
|
Breadcrumbs.RemoveLast();
|
1348
1362
|
setTimeout(() => window.location.reload());
|