zek 17.3.119 → 19.0.2
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/README.md +49 -10
- package/fesm2022/zek.mjs +1056 -751
- package/fesm2022/zek.mjs.map +1 -1
- package/lib/components/base.component.d.ts +1 -1
- package/lib/components/core-ui.component.d.ts +1 -1
- package/lib/components/core.component.d.ts +1 -1
- package/lib/components/edit-base.component.d.ts +3 -3
- package/lib/components/list-base.component.d.ts +1 -1
- package/lib/modules/bb/bb-modal-base.d.ts +1 -1
- package/lib/modules/dropdown/dropdown.d.ts +38 -0
- package/lib/modules/dropdown/index.d.ts +1 -0
- package/lib/modules/index.d.ts +1 -0
- package/lib/modules/validators/directive.d.ts +1 -1
- package/package.json +3 -5
- package/esm2022/lib/components/args.mjs +0 -2
- package/esm2022/lib/components/base.component.mjs +0 -101
- package/esm2022/lib/components/core-ui.component.mjs +0 -193
- package/esm2022/lib/components/core.component.mjs +0 -46
- package/esm2022/lib/components/edit-base.component.mjs +0 -226
- package/esm2022/lib/components/index.mjs +0 -8
- package/esm2022/lib/components/list-base.component.mjs +0 -311
- package/esm2022/lib/components/types.mjs +0 -2
- package/esm2022/lib/directives/delayed-input.directive.mjs +0 -57
- package/esm2022/lib/directives/index.mjs +0 -2
- package/esm2022/lib/models/alert-type.mjs +0 -2
- package/esm2022/lib/models/api.mjs +0 -2
- package/esm2022/lib/models/approve.moodel.mjs +0 -2
- package/esm2022/lib/models/batch.model.mjs +0 -2
- package/esm2022/lib/models/captcha.model.mjs +0 -2
- package/esm2022/lib/models/ctor.mjs +0 -2
- package/esm2022/lib/models/edit-base.model.mjs +0 -3
- package/esm2022/lib/models/file.model.mjs +0 -2
- package/esm2022/lib/models/filter.model.mjs +0 -12
- package/esm2022/lib/models/gender.model.mjs +0 -6
- package/esm2022/lib/models/index.mjs +0 -22
- package/esm2022/lib/models/key-pair.model.mjs +0 -14
- package/esm2022/lib/models/list-base.model.mjs +0 -3
- package/esm2022/lib/models/login.model.mjs +0 -2
- package/esm2022/lib/models/modal-size.mjs +0 -2
- package/esm2022/lib/models/month.model.mjs +0 -16
- package/esm2022/lib/models/nav.model.mjs +0 -2
- package/esm2022/lib/models/pager.model.mjs +0 -33
- package/esm2022/lib/models/print.model.mjs +0 -6
- package/esm2022/lib/models/tree.mjs +0 -2
- package/esm2022/lib/models/tree.model.mjs +0 -7
- package/esm2022/lib/models/valid-event-args.model.mjs +0 -6
- package/esm2022/lib/modules/age/age.pipe.mjs +0 -22
- package/esm2022/lib/modules/age/index.mjs +0 -2
- package/esm2022/lib/modules/alert/alert/alert.mjs +0 -48
- package/esm2022/lib/modules/alert/index.mjs +0 -5
- package/esm2022/lib/modules/alert/toast/toast.mjs +0 -119
- package/esm2022/lib/modules/alert/validation/validation.mjs +0 -56
- package/esm2022/lib/modules/autocomplete/autocomplete.directive.mjs +0 -25
- package/esm2022/lib/modules/autocomplete/index.mjs +0 -2
- package/esm2022/lib/modules/bb/bb-modal-base.mjs +0 -74
- package/esm2022/lib/modules/bb/bb-modal-toolbar.mjs +0 -44
- package/esm2022/lib/modules/bb/bb.component.mjs +0 -207
- package/esm2022/lib/modules/bb/bb.module.mjs +0 -37
- package/esm2022/lib/modules/bb/index.mjs +0 -5
- package/esm2022/lib/modules/callback/callback.pipe.mjs +0 -23
- package/esm2022/lib/modules/callback/index.mjs +0 -2
- package/esm2022/lib/modules/card/card/card.mjs +0 -48
- package/esm2022/lib/modules/card/index.mjs +0 -2
- package/esm2022/lib/modules/countdown/countdown.mjs +0 -103
- package/esm2022/lib/modules/countdown/index.mjs +0 -2
- package/esm2022/lib/modules/date-ago/date-ago.pipe.mjs +0 -45
- package/esm2022/lib/modules/date-ago/index.mjs +0 -2
- package/esm2022/lib/modules/datepicker/date-value-accessor.mjs +0 -188
- package/esm2022/lib/modules/datepicker/datepicker.module.mjs +0 -31
- package/esm2022/lib/modules/datepicker/index.mjs +0 -3
- package/esm2022/lib/modules/edit-toolbar/edit-toolbar.mjs +0 -94
- package/esm2022/lib/modules/edit-toolbar/index.mjs +0 -2
- package/esm2022/lib/modules/file/file-size.pipe.mjs +0 -50
- package/esm2022/lib/modules/file/index.mjs +0 -2
- package/esm2022/lib/modules/file-input/file-input.mjs +0 -79
- package/esm2022/lib/modules/file-input/index.mjs +0 -2
- package/esm2022/lib/modules/file-viewer/file-viewer.mjs +0 -53
- package/esm2022/lib/modules/file-viewer/index.mjs +0 -2
- package/esm2022/lib/modules/google-login-button/google-login-button.mjs +0 -135
- package/esm2022/lib/modules/google-login-button/index.mjs +0 -3
- package/esm2022/lib/modules/google-login-button/loader.mjs +0 -10
- package/esm2022/lib/modules/google-login-button/module.mjs +0 -40
- package/esm2022/lib/modules/grid-toolbar/grid-toolbar/grid-toolbar.mjs +0 -147
- package/esm2022/lib/modules/grid-toolbar/grid-toolbar-bar/grid-toolbar-bar.mjs +0 -16
- package/esm2022/lib/modules/grid-toolbar/index.mjs +0 -3
- package/esm2022/lib/modules/index.mjs +0 -39
- package/esm2022/lib/modules/list-toolbar/index.mjs +0 -2
- package/esm2022/lib/modules/list-toolbar/list-toolbar.mjs +0 -112
- package/esm2022/lib/modules/loading/index.mjs +0 -4
- package/esm2022/lib/modules/loading/loading-interceptor.mjs +0 -59
- package/esm2022/lib/modules/loading/loading.mjs +0 -33
- package/esm2022/lib/modules/loading/loading.module.mjs +0 -32
- package/esm2022/lib/modules/modal/filter-modal/filter-modal.component.mjs +0 -23
- package/esm2022/lib/modules/modal/index.mjs +0 -5
- package/esm2022/lib/modules/modal/modal/modal.component.mjs +0 -355
- package/esm2022/lib/modules/modal/modal.module.mjs +0 -62
- package/esm2022/lib/modules/modal/sum-modal/sum-modal.component.mjs +0 -27
- package/esm2022/lib/modules/numeric/index.mjs +0 -2
- package/esm2022/lib/modules/numeric/numeric.directive.mjs +0 -92
- package/esm2022/lib/modules/page-title/index.mjs +0 -2
- package/esm2022/lib/modules/page-title/page-title.component.mjs +0 -33
- package/esm2022/lib/modules/pager/index.mjs +0 -2
- package/esm2022/lib/modules/pager/pager/pager.mjs +0 -52
- package/esm2022/lib/modules/password/index.mjs +0 -2
- package/esm2022/lib/modules/password/password.mjs +0 -48
- package/esm2022/lib/modules/progress/index.mjs +0 -2
- package/esm2022/lib/modules/progress/progress.mjs +0 -97
- package/esm2022/lib/modules/radio/index.mjs +0 -2
- package/esm2022/lib/modules/radio/radio.mjs +0 -133
- package/esm2022/lib/modules/readonly/index.mjs +0 -2
- package/esm2022/lib/modules/readonly/readonly.directive.mjs +0 -29
- package/esm2022/lib/modules/recaptcha/index.mjs +0 -4
- package/esm2022/lib/modules/recaptcha/loader.mjs +0 -13
- package/esm2022/lib/modules/recaptcha/recaptcha.model.mjs +0 -2
- package/esm2022/lib/modules/recaptcha/recaptcha.module.mjs +0 -32
- package/esm2022/lib/modules/recaptcha/recaptcha.service.mjs +0 -119
- package/esm2022/lib/modules/safe/index.mjs +0 -2
- package/esm2022/lib/modules/safe/safe.pipe.mjs +0 -40
- package/esm2022/lib/modules/select/index.mjs +0 -2
- package/esm2022/lib/modules/select/model.mjs +0 -4
- package/esm2022/lib/modules/select/select.mjs +0 -201
- package/esm2022/lib/modules/select2/index.mjs +0 -2
- package/esm2022/lib/modules/select2/select2.mjs +0 -172
- package/esm2022/lib/modules/select2-multiple/index.mjs +0 -2
- package/esm2022/lib/modules/select2-multiple/select2-multiple.mjs +0 -137
- package/esm2022/lib/modules/sort/index.mjs +0 -3
- package/esm2022/lib/modules/sort/sort-button-group/sort-button-group.mjs +0 -81
- package/esm2022/lib/modules/sort/sort.mjs +0 -120
- package/esm2022/lib/modules/tag/index.mjs +0 -2
- package/esm2022/lib/modules/tag/tag.mjs +0 -111
- package/esm2022/lib/modules/time/index.mjs +0 -4
- package/esm2022/lib/modules/time/time.module.mjs +0 -27
- package/esm2022/lib/modules/time/time.pipe.mjs +0 -40
- package/esm2022/lib/modules/time/timer-service.mjs +0 -89
- package/esm2022/lib/modules/tooltip/index.mjs +0 -2
- package/esm2022/lib/modules/tooltip/tooltip.mjs +0 -27
- package/esm2022/lib/modules/utc-to-local/index.mjs +0 -3
- package/esm2022/lib/modules/utc-to-local/local-to-utc.pipe.mjs +0 -39
- package/esm2022/lib/modules/utc-to-local/utc-to-local.pipe.mjs +0 -38
- package/esm2022/lib/modules/validator/field-validator.mjs +0 -17
- package/esm2022/lib/modules/validator/index.mjs +0 -2
- package/esm2022/lib/modules/validators/directive.mjs +0 -107
- package/esm2022/lib/modules/validators/index.mjs +0 -4
- package/esm2022/lib/modules/validators/module.mjs +0 -28
- package/esm2022/lib/modules/validators/validator.mjs +0 -119
- package/esm2022/lib/modules/wizard/index.mjs +0 -3
- package/esm2022/lib/modules/wizard/wizard/wizard.mjs +0 -66
- package/esm2022/lib/modules/wizard/wizard2/wizard2.mjs +0 -14
- package/esm2022/lib/services/alert.service.mjs +0 -74
- package/esm2022/lib/services/auth-guard.service.mjs +0 -13
- package/esm2022/lib/services/auth.service.mjs +0 -194
- package/esm2022/lib/services/base.service.mjs +0 -8
- package/esm2022/lib/services/cache-helper.mjs +0 -35
- package/esm2022/lib/services/crud.service.mjs +0 -48
- package/esm2022/lib/services/file.service.mjs +0 -32
- package/esm2022/lib/services/http-error-handler.service.mjs +0 -141
- package/esm2022/lib/services/index.mjs +0 -9
- package/esm2022/lib/services/web.api.mjs +0 -139
- package/esm2022/lib/tokens.mjs +0 -7
- package/esm2022/lib/utils/array-helper.mjs +0 -216
- package/esm2022/lib/utils/base64-helper.mjs +0 -18
- package/esm2022/lib/utils/bitwise-helper.mjs +0 -14
- package/esm2022/lib/utils/bootstrap.helper.mjs +0 -124
- package/esm2022/lib/utils/convert.mjs +0 -35
- package/esm2022/lib/utils/css-helper.mjs +0 -41
- package/esm2022/lib/utils/date-helper.mjs +0 -264
- package/esm2022/lib/utils/error-helper.mjs +0 -32
- package/esm2022/lib/utils/excel-helper.mjs +0 -13
- package/esm2022/lib/utils/file.helper.mjs +0 -75
- package/esm2022/lib/utils/filter-helper.mjs +0 -13
- package/esm2022/lib/utils/handler.mjs +0 -24
- package/esm2022/lib/utils/html-helper.mjs +0 -73
- package/esm2022/lib/utils/index.mjs +0 -28
- package/esm2022/lib/utils/interval-helper.mjs +0 -32
- package/esm2022/lib/utils/jwt-helper.mjs +0 -11
- package/esm2022/lib/utils/math-helper.mjs +0 -19
- package/esm2022/lib/utils/object-helper.mjs +0 -80
- package/esm2022/lib/utils/overlap-helper.mjs +0 -73
- package/esm2022/lib/utils/pager-helper.mjs +0 -63
- package/esm2022/lib/utils/random-helper.mjs +0 -16
- package/esm2022/lib/utils/storage-helper.mjs +0 -28
- package/esm2022/lib/utils/string-helper.mjs +0 -84
- package/esm2022/lib/utils/thenBy.mjs +0 -41
- package/esm2022/lib/utils/time-helper.mjs +0 -46
- package/esm2022/lib/utils/tmp-helper.mjs +0 -25
- package/esm2022/lib/utils/url-helper.mjs +0 -44
- package/esm2022/lib/utils/validation-helper.mjs +0 -10
- package/esm2022/lib/zek.module.mjs +0 -28
- package/esm2022/public-api.mjs +0 -12
- package/esm2022/zek.mjs +0 -5
package/fesm2022/zek.mjs
CHANGED
|
@@ -647,7 +647,7 @@ class DateHelper {
|
|
|
647
647
|
return str;
|
|
648
648
|
}
|
|
649
649
|
//** Offes seconds ( offsetmin * 60sec * 1000ms) */
|
|
650
|
-
static
|
|
650
|
+
static _utcDiff = -new Date().getTimezoneOffset() * 60000;
|
|
651
651
|
static utcToLocal(utc) {
|
|
652
652
|
return new Date(utc.getTime() + this._utcDiff);
|
|
653
653
|
}
|
|
@@ -762,7 +762,7 @@ class DateHelper {
|
|
|
762
762
|
//
|
|
763
763
|
return Math.floor(((timeDiff % 86400000) % 3600000) / 60000);
|
|
764
764
|
}
|
|
765
|
-
static
|
|
765
|
+
static ISO8601_DATE_REGEX = /^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;
|
|
766
766
|
// 1 2 3 4 5 6 7 8 9 10 11
|
|
767
767
|
static parseDate(value) {
|
|
768
768
|
if (typeof value === 'undefined' || value == null || value === '')
|
|
@@ -1420,7 +1420,7 @@ const firstBy = (function () {
|
|
|
1420
1420
|
})();
|
|
1421
1421
|
|
|
1422
1422
|
class IntervalHelper {
|
|
1423
|
-
static
|
|
1423
|
+
static _timeouts = [];
|
|
1424
1424
|
static create(callback, ms) {
|
|
1425
1425
|
const id = setInterval(() => {
|
|
1426
1426
|
callback();
|
|
@@ -1452,7 +1452,7 @@ class IntervalHelper {
|
|
|
1452
1452
|
}
|
|
1453
1453
|
|
|
1454
1454
|
class TmpHelper {
|
|
1455
|
-
static
|
|
1455
|
+
static _obj = {};
|
|
1456
1456
|
static get(key, remove = true) {
|
|
1457
1457
|
if (!key)
|
|
1458
1458
|
return;
|
|
@@ -1520,7 +1520,7 @@ class UrlHelper {
|
|
|
1520
1520
|
}
|
|
1521
1521
|
|
|
1522
1522
|
class ValidationHelper {
|
|
1523
|
-
static
|
|
1523
|
+
static emailRegExp = /^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;
|
|
1524
1524
|
static isValidEmail(email) {
|
|
1525
1525
|
if (typeof email === 'undefined' || email == null || ((typeof email === 'string') && email.length === 0)) {
|
|
1526
1526
|
return false;
|
|
@@ -1530,11 +1530,13 @@ class ValidationHelper {
|
|
|
1530
1530
|
}
|
|
1531
1531
|
|
|
1532
1532
|
class AuthService {
|
|
1533
|
-
static
|
|
1534
|
-
static
|
|
1533
|
+
static USER_KEY = 'user';
|
|
1534
|
+
static REFRESH_TOKEN_INTERVAL = 15 * 60 * 1000;
|
|
1535
|
+
_auth = false;
|
|
1536
|
+
_user = null;
|
|
1537
|
+
_timerId;
|
|
1538
|
+
_refreshTimerId;
|
|
1535
1539
|
constructor() {
|
|
1536
|
-
this._auth = false;
|
|
1537
|
-
this._user = null;
|
|
1538
1540
|
const user = StorageHelper.get(AuthService.USER_KEY);
|
|
1539
1541
|
if (user) {
|
|
1540
1542
|
this._init(user);
|
|
@@ -1596,6 +1598,8 @@ class AuthService {
|
|
|
1596
1598
|
this._onSignedInSubject.next(this._auth);
|
|
1597
1599
|
}
|
|
1598
1600
|
}
|
|
1601
|
+
_onSignedInSubject; //BehaviorSubject is for initial firt value = false
|
|
1602
|
+
_onSignedInObservable;
|
|
1599
1603
|
get onSignedIn() {
|
|
1600
1604
|
if (!this._onSignedInSubject) {
|
|
1601
1605
|
this._onSignedInSubject = new Subject(); //(this.isAuthenticated);
|
|
@@ -1605,6 +1609,8 @@ class AuthService {
|
|
|
1605
1609
|
throw new Error("_onExecuteObservable is undefined");
|
|
1606
1610
|
return this._onSignedInObservable;
|
|
1607
1611
|
}
|
|
1612
|
+
_onRefreshTokenSubject;
|
|
1613
|
+
_onRefreshTokenObservable;
|
|
1608
1614
|
get onRefreshToken() {
|
|
1609
1615
|
if (!this._onRefreshTokenSubject) {
|
|
1610
1616
|
this._onRefreshTokenSubject = new Subject();
|
|
@@ -1711,10 +1717,10 @@ class AuthService {
|
|
|
1711
1717
|
// return isInRole && hasPermission;
|
|
1712
1718
|
return hasPermission;
|
|
1713
1719
|
}
|
|
1714
|
-
static
|
|
1715
|
-
static
|
|
1720
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: AuthService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1721
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: AuthService });
|
|
1716
1722
|
}
|
|
1717
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1723
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: AuthService, decorators: [{
|
|
1718
1724
|
type: Injectable
|
|
1719
1725
|
}], ctorParameters: () => [] });
|
|
1720
1726
|
|
|
@@ -1729,6 +1735,9 @@ const zekAuthGuard = (route, state) => {
|
|
|
1729
1735
|
};
|
|
1730
1736
|
|
|
1731
1737
|
class BaseService {
|
|
1738
|
+
controller;
|
|
1739
|
+
api;
|
|
1740
|
+
handleError;
|
|
1732
1741
|
constructor(controller, api, httpErrorHandler) {
|
|
1733
1742
|
this.controller = controller;
|
|
1734
1743
|
this.api = api;
|
|
@@ -1737,7 +1746,7 @@ class BaseService {
|
|
|
1737
1746
|
}
|
|
1738
1747
|
|
|
1739
1748
|
class CacheHelper {
|
|
1740
|
-
static
|
|
1749
|
+
static _cache = new Map();
|
|
1741
1750
|
static get(key) {
|
|
1742
1751
|
const data = this._cache.get(key);
|
|
1743
1752
|
if (!data) {
|
|
@@ -1816,17 +1825,23 @@ class CrudService extends BaseService {
|
|
|
1816
1825
|
}
|
|
1817
1826
|
|
|
1818
1827
|
class BaseAlert {
|
|
1828
|
+
type;
|
|
1829
|
+
icon;
|
|
1830
|
+
title;
|
|
1831
|
+
css;
|
|
1819
1832
|
}
|
|
1820
1833
|
class Alert extends BaseAlert {
|
|
1834
|
+
messages;
|
|
1821
1835
|
}
|
|
1822
1836
|
class Toast extends BaseAlert {
|
|
1837
|
+
message;
|
|
1823
1838
|
}
|
|
1824
1839
|
class AlertService {
|
|
1840
|
+
alertSubject = new Subject();
|
|
1841
|
+
toastSubject = new Subject();
|
|
1842
|
+
keepAfterRouteChange = false;
|
|
1825
1843
|
// private id = 0;
|
|
1826
1844
|
constructor(router) {
|
|
1827
|
-
this.alertSubject = new Subject();
|
|
1828
|
-
this.toastSubject = new Subject();
|
|
1829
|
-
this.keepAfterRouteChange = false;
|
|
1830
1845
|
// clear alert messages on route change unless 'keepAfterRouteChange' flag is true
|
|
1831
1846
|
router.events.subscribe(event => {
|
|
1832
1847
|
if (event instanceof NavigationStart) {
|
|
@@ -1877,23 +1892,26 @@ class AlertService {
|
|
|
1877
1892
|
// }
|
|
1878
1893
|
this.toastSubject.next({ message, title, type: alertType, icon }); //, id: `${this.id++}`
|
|
1879
1894
|
}
|
|
1880
|
-
static
|
|
1881
|
-
static
|
|
1895
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: AlertService, deps: [{ token: i1.Router }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1896
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: AlertService });
|
|
1882
1897
|
}
|
|
1883
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1898
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: AlertService, decorators: [{
|
|
1884
1899
|
type: Injectable
|
|
1885
1900
|
}], ctorParameters: () => [{ type: i1.Router }] });
|
|
1886
1901
|
|
|
1887
1902
|
/** Handles HttpClient errors */
|
|
1888
1903
|
class HttpErrorHandler {
|
|
1904
|
+
alert;
|
|
1905
|
+
translate;
|
|
1906
|
+
router;
|
|
1889
1907
|
constructor(alert, translate, router) {
|
|
1890
1908
|
this.alert = alert;
|
|
1891
1909
|
this.translate = translate;
|
|
1892
1910
|
this.router = router;
|
|
1893
|
-
/** Create curried handleError function that already knows the service name */
|
|
1894
|
-
this.createHandleError = (serviceName = '') => (operation = 'operation', result = {}, show = true) => this.handleError(serviceName, operation, result, show);
|
|
1895
|
-
this.createHandleErrorResult = (serviceName = '') => (operation = 'operation', result = {}, show = true) => this.handleErrorResult(serviceName, operation, result, show);
|
|
1896
1911
|
}
|
|
1912
|
+
/** Create curried handleError function that already knows the service name */
|
|
1913
|
+
createHandleError = (serviceName = '') => (operation = 'operation', result = {}, show = true) => this.handleError(serviceName, operation, result, show);
|
|
1914
|
+
createHandleErrorResult = (serviceName = '') => (operation = 'operation', result = {}, show = true) => this.handleErrorResult(serviceName, operation, result, show);
|
|
1897
1915
|
/**
|
|
1898
1916
|
* Returns a function that handles Http operation failures.
|
|
1899
1917
|
* This error handler lets the app continue to run as if no error occurred.
|
|
@@ -2011,10 +2029,10 @@ class HttpErrorHandler {
|
|
|
2011
2029
|
break;
|
|
2012
2030
|
}
|
|
2013
2031
|
}
|
|
2014
|
-
static
|
|
2015
|
-
static
|
|
2032
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: HttpErrorHandler, deps: [{ token: AlertService }, { token: i2.TranslateService }, { token: i1.Router }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2033
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: HttpErrorHandler });
|
|
2016
2034
|
}
|
|
2017
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2035
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: HttpErrorHandler, decorators: [{
|
|
2018
2036
|
type: Injectable
|
|
2019
2037
|
}], ctorParameters: () => [{ type: AlertService }, { type: i2.TranslateService }, { type: i1.Router }] });
|
|
2020
2038
|
|
|
@@ -2025,6 +2043,9 @@ const RECAPTCHA_SITE_KEY = new InjectionToken('RECAPTCHA_SITE_KEY');
|
|
|
2025
2043
|
const GOOGLE_CLIENT_ID = new InjectionToken('GOOGLE_CLIENT_ID');
|
|
2026
2044
|
|
|
2027
2045
|
class WebApiClient {
|
|
2046
|
+
http;
|
|
2047
|
+
auth;
|
|
2048
|
+
baseUrl;
|
|
2028
2049
|
constructor(http, auth, baseUrl) {
|
|
2029
2050
|
this.http = http;
|
|
2030
2051
|
this.auth = auth;
|
|
@@ -2132,10 +2153,10 @@ class WebApiClient {
|
|
|
2132
2153
|
httpHeaders = httpHeaders.set('Authorization', token);
|
|
2133
2154
|
return httpHeaders;
|
|
2134
2155
|
}
|
|
2135
|
-
static
|
|
2136
|
-
static
|
|
2156
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: WebApiClient, deps: [{ token: i1$1.HttpClient }, { token: AuthService }, { token: API_BASE_URL }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2157
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: WebApiClient });
|
|
2137
2158
|
}
|
|
2138
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2159
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: WebApiClient, decorators: [{
|
|
2139
2160
|
type: Injectable
|
|
2140
2161
|
}], ctorParameters: () => [{ type: i1$1.HttpClient }, { type: AuthService }, { type: undefined, decorators: [{
|
|
2141
2162
|
type: Inject,
|
|
@@ -2175,25 +2196,23 @@ class FileService extends CrudService {
|
|
|
2175
2196
|
}
|
|
2176
2197
|
});
|
|
2177
2198
|
}
|
|
2178
|
-
static
|
|
2179
|
-
static
|
|
2199
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: FileService, deps: [{ token: WebApiClient }, { token: HttpErrorHandler }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2200
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: FileService });
|
|
2180
2201
|
}
|
|
2181
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2202
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: FileService, decorators: [{
|
|
2182
2203
|
type: Injectable
|
|
2183
2204
|
}], ctorParameters: () => [{ type: WebApiClient }, { type: HttpErrorHandler }] });
|
|
2184
2205
|
|
|
2185
2206
|
let uniqueId = 0;
|
|
2186
2207
|
class CoreComponent {
|
|
2187
|
-
|
|
2188
|
-
this.loading = false;
|
|
2189
|
-
this.uniqueId = ++uniqueId;
|
|
2190
|
-
}
|
|
2208
|
+
loading = false;
|
|
2191
2209
|
ngOnInit() {
|
|
2192
2210
|
this.load();
|
|
2193
2211
|
}
|
|
2194
2212
|
ngOnDestroy() {
|
|
2195
2213
|
this.destroy();
|
|
2196
2214
|
}
|
|
2215
|
+
uniqueId = ++uniqueId;
|
|
2197
2216
|
async load() {
|
|
2198
2217
|
try {
|
|
2199
2218
|
if (this.loading)
|
|
@@ -2219,34 +2238,32 @@ class CoreComponent {
|
|
|
2219
2238
|
onLoadCompleted() { }
|
|
2220
2239
|
async destroy() {
|
|
2221
2240
|
}
|
|
2222
|
-
static
|
|
2223
|
-
static
|
|
2241
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: CoreComponent, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
2242
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.6", type: CoreComponent, isStandalone: true, ngImport: i0 });
|
|
2224
2243
|
}
|
|
2225
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2244
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: CoreComponent, decorators: [{
|
|
2226
2245
|
type: Directive
|
|
2227
2246
|
}] });
|
|
2228
2247
|
|
|
2229
2248
|
class BaseComponent extends CoreComponent {
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
this.router = inject(Router);
|
|
2235
|
-
this._readOnly = false;
|
|
2236
|
-
this._url = null;
|
|
2237
|
-
this.modelChange = new EventEmitter();
|
|
2238
|
-
}
|
|
2249
|
+
api = inject(WebApiClient);
|
|
2250
|
+
route = inject(ActivatedRoute);
|
|
2251
|
+
router = inject(Router);
|
|
2252
|
+
_readOnly = false;
|
|
2239
2253
|
get readOnly() {
|
|
2240
2254
|
return this._readOnly;
|
|
2241
2255
|
}
|
|
2242
2256
|
set readOnly(v) {
|
|
2243
2257
|
this._readOnly = Convert.toBooleanProperty(v);
|
|
2244
2258
|
}
|
|
2259
|
+
_url = null;
|
|
2245
2260
|
get url() {
|
|
2246
2261
|
if (!this._url)
|
|
2247
2262
|
this._url = UrlHelper.getNoParam(this.router.url);
|
|
2248
2263
|
return this._url;
|
|
2249
2264
|
}
|
|
2265
|
+
model;
|
|
2266
|
+
modelChange = new EventEmitter();
|
|
2250
2267
|
getParam(name) {
|
|
2251
2268
|
return this.route.snapshot.paramMap.get(name);
|
|
2252
2269
|
}
|
|
@@ -2307,10 +2324,10 @@ class BaseComponent extends CoreComponent {
|
|
|
2307
2324
|
}
|
|
2308
2325
|
});
|
|
2309
2326
|
}
|
|
2310
|
-
static
|
|
2311
|
-
static
|
|
2327
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: BaseComponent, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
2328
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.6", type: BaseComponent, isStandalone: true, inputs: { readOnly: "readOnly", model: "model" }, outputs: { modelChange: "modelChange" }, usesInheritance: true, ngImport: i0 });
|
|
2312
2329
|
}
|
|
2313
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2330
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: BaseComponent, decorators: [{
|
|
2314
2331
|
type: Directive
|
|
2315
2332
|
}], propDecorators: { readOnly: [{
|
|
2316
2333
|
type: Input
|
|
@@ -2321,28 +2338,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
2321
2338
|
}] } });
|
|
2322
2339
|
|
|
2323
2340
|
class CoreUiComponent extends CoreComponent {
|
|
2341
|
+
_renderer;
|
|
2342
|
+
_elementRef;
|
|
2324
2343
|
constructor(_renderer, _elementRef
|
|
2325
2344
|
//private _changeDetector: ChangeDetectorRef
|
|
2326
2345
|
) {
|
|
2327
2346
|
super();
|
|
2328
2347
|
this._renderer = _renderer;
|
|
2329
2348
|
this._elementRef = _elementRef;
|
|
2330
|
-
/** The method to be called in order to update ngModel */
|
|
2331
|
-
this._onChange = () => { };
|
|
2332
|
-
/**
|
|
2333
|
-
* onTouch function registered via registerOnTouch (ControlValueAccessor).
|
|
2334
|
-
* @docs-private
|
|
2335
|
-
*/
|
|
2336
|
-
this._onTouched = () => { };
|
|
2337
|
-
this.change = new EventEmitter();
|
|
2338
|
-
this.changing = new EventEmitter();
|
|
2339
|
-
this._name = `zek-${++this.uniqueId}`;
|
|
2340
|
-
this._isInitialized = false;
|
|
2341
|
-
this._value = null;
|
|
2342
|
-
this._readonly = false;
|
|
2343
|
-
this._disabled = false;
|
|
2344
|
-
this._required = false;
|
|
2345
2349
|
}
|
|
2350
|
+
/** The method to be called in order to update ngModel */
|
|
2351
|
+
_onChange = () => { };
|
|
2352
|
+
/**
|
|
2353
|
+
* onTouch function registered via registerOnTouch (ControlValueAccessor).
|
|
2354
|
+
* @docs-private
|
|
2355
|
+
*/
|
|
2356
|
+
_onTouched = () => { };
|
|
2346
2357
|
/**
|
|
2347
2358
|
* Helper method that sets a property on a target element using the current Renderer
|
|
2348
2359
|
* implementation.
|
|
@@ -2351,6 +2362,9 @@ class CoreUiComponent extends CoreComponent {
|
|
|
2351
2362
|
setProperty(key, value) {
|
|
2352
2363
|
this._renderer.setProperty(this._elementRef.nativeElement, key, value);
|
|
2353
2364
|
}
|
|
2365
|
+
change = new EventEmitter();
|
|
2366
|
+
changing = new EventEmitter();
|
|
2367
|
+
_name = `zek-${++this.uniqueId}`;
|
|
2354
2368
|
get name() {
|
|
2355
2369
|
return this._name;
|
|
2356
2370
|
}
|
|
@@ -2361,9 +2375,11 @@ class CoreUiComponent extends CoreComponent {
|
|
|
2361
2375
|
}
|
|
2362
2376
|
}
|
|
2363
2377
|
onNameChanged() { }
|
|
2378
|
+
_isInitialized = false;
|
|
2364
2379
|
get isInitialized() {
|
|
2365
2380
|
return this._isInitialized;
|
|
2366
2381
|
}
|
|
2382
|
+
_value = null;
|
|
2367
2383
|
get value() {
|
|
2368
2384
|
return this._value;
|
|
2369
2385
|
}
|
|
@@ -2398,6 +2414,7 @@ class CoreUiComponent extends CoreComponent {
|
|
|
2398
2414
|
}
|
|
2399
2415
|
}
|
|
2400
2416
|
}
|
|
2417
|
+
_readonly = false;
|
|
2401
2418
|
/** Whether the component is disabled */
|
|
2402
2419
|
get readonly() {
|
|
2403
2420
|
return this._readonly;
|
|
@@ -2410,6 +2427,7 @@ class CoreUiComponent extends CoreComponent {
|
|
|
2410
2427
|
}
|
|
2411
2428
|
}
|
|
2412
2429
|
onReadOnlyChanged() { }
|
|
2430
|
+
_disabled = false;
|
|
2413
2431
|
/** Whether the component is disabled */
|
|
2414
2432
|
get disabled() {
|
|
2415
2433
|
return this._disabled;
|
|
@@ -2422,6 +2440,7 @@ class CoreUiComponent extends CoreComponent {
|
|
|
2422
2440
|
}
|
|
2423
2441
|
}
|
|
2424
2442
|
onDisabledChanged() { }
|
|
2443
|
+
_required = false;
|
|
2425
2444
|
/** Whether the component is required */
|
|
2426
2445
|
get required() {
|
|
2427
2446
|
return this._required;
|
|
@@ -2488,10 +2507,10 @@ class CoreUiComponent extends CoreComponent {
|
|
|
2488
2507
|
//this._changeDetector.markForCheck();
|
|
2489
2508
|
//this._renderer.setProperty(this._elementRef.nativeElement, 'disabled', isDisabled);
|
|
2490
2509
|
}
|
|
2491
|
-
static
|
|
2492
|
-
static
|
|
2510
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: CoreUiComponent, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2511
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.6", type: CoreUiComponent, isStandalone: true, inputs: { name: "name", value: "value", readonly: "readonly", disabled: "disabled", required: "required" }, outputs: { change: "change", changing: "changing" }, usesInheritance: true, ngImport: i0 });
|
|
2493
2512
|
}
|
|
2494
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2513
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: CoreUiComponent, decorators: [{
|
|
2495
2514
|
type: Directive
|
|
2496
2515
|
}], ctorParameters: () => [{ type: i0.Renderer2 }, { type: i0.ElementRef }], propDecorators: { change: [{
|
|
2497
2516
|
type: Output
|
|
@@ -2510,10 +2529,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
2510
2529
|
}] } });
|
|
2511
2530
|
|
|
2512
2531
|
class EditFormComponent extends BaseComponent {
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
}
|
|
2532
|
+
id;
|
|
2533
|
+
id2;
|
|
2534
|
+
form;
|
|
2535
|
+
approveModel = {};
|
|
2536
|
+
approveModal;
|
|
2537
|
+
disapproveModal;
|
|
2517
2538
|
// @ViewChild('submitModal', { static: false }) protected readonly submitModal?: ModalComponent;
|
|
2518
2539
|
init() {
|
|
2519
2540
|
super.init();
|
|
@@ -2592,10 +2613,10 @@ class EditFormComponent extends BaseComponent {
|
|
|
2592
2613
|
internalDisapprove(model) {
|
|
2593
2614
|
throw 'Not implemented internalDisapprove';
|
|
2594
2615
|
}
|
|
2595
|
-
static
|
|
2596
|
-
static
|
|
2616
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: EditFormComponent, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
2617
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.6", type: EditFormComponent, isStandalone: true, viewQueries: [{ propertyName: "form", first: true, predicate: ["f"], descendants: true }, { propertyName: "approveModal", first: true, predicate: ["approveModal"], descendants: true }, { propertyName: "disapproveModal", first: true, predicate: ["disapproveModal"], descendants: true }], usesInheritance: true, ngImport: i0 });
|
|
2597
2618
|
}
|
|
2598
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2619
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: EditFormComponent, decorators: [{
|
|
2599
2620
|
type: Directive
|
|
2600
2621
|
}], propDecorators: { form: [{
|
|
2601
2622
|
type: ViewChild,
|
|
@@ -2608,12 +2629,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
2608
2629
|
args: ['disapproveModal', { static: false }]
|
|
2609
2630
|
}] } });
|
|
2610
2631
|
class EditBaseComponent extends EditFormComponent {
|
|
2632
|
+
service;
|
|
2611
2633
|
constructor(service) {
|
|
2612
2634
|
super();
|
|
2613
2635
|
this.service = service;
|
|
2614
|
-
this.translate = inject(TranslateService);
|
|
2615
|
-
this.alert = inject(AlertService);
|
|
2616
2636
|
}
|
|
2637
|
+
translate = inject(TranslateService);
|
|
2638
|
+
alert = inject(AlertService);
|
|
2617
2639
|
async internalSave(navigateToReturnUrl) {
|
|
2618
2640
|
this.alert.clear();
|
|
2619
2641
|
const data = await firstValueFrom(this.service.save(this.model));
|
|
@@ -2708,13 +2730,14 @@ class EditBaseComponent extends EditFormComponent {
|
|
|
2708
2730
|
this.downloadFile(data, 'export.xlsx', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet');
|
|
2709
2731
|
});
|
|
2710
2732
|
}
|
|
2711
|
-
static
|
|
2712
|
-
static
|
|
2733
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: EditBaseComponent, deps: "invalid", target: i0.ɵɵFactoryTarget.Directive });
|
|
2734
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.6", type: EditBaseComponent, isStandalone: true, usesInheritance: true, ngImport: i0 });
|
|
2713
2735
|
}
|
|
2714
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2736
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: EditBaseComponent, decorators: [{
|
|
2715
2737
|
type: Directive
|
|
2716
2738
|
}], ctorParameters: () => [{ type: undefined }] });
|
|
2717
2739
|
class EditComponent extends EditBaseComponent {
|
|
2740
|
+
_ctorModel;
|
|
2718
2741
|
constructor(_ctorModel, service) {
|
|
2719
2742
|
super(service);
|
|
2720
2743
|
this._ctorModel = _ctorModel;
|
|
@@ -2722,26 +2745,27 @@ class EditComponent extends EditBaseComponent {
|
|
|
2722
2745
|
initCreate() {
|
|
2723
2746
|
this.model = new this._ctorModel();
|
|
2724
2747
|
}
|
|
2725
|
-
static
|
|
2726
|
-
static
|
|
2748
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: EditComponent, deps: "invalid", target: i0.ɵɵFactoryTarget.Directive });
|
|
2749
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.6", type: EditComponent, isStandalone: true, usesInheritance: true, ngImport: i0 });
|
|
2727
2750
|
}
|
|
2728
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2751
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: EditComponent, decorators: [{
|
|
2729
2752
|
type: Directive
|
|
2730
2753
|
}], ctorParameters: () => [{ type: undefined }, { type: undefined }] });
|
|
2731
2754
|
|
|
2732
2755
|
class EditBase {
|
|
2756
|
+
id;
|
|
2757
|
+
isDeleted;
|
|
2758
|
+
readOnly;
|
|
2733
2759
|
}
|
|
2734
2760
|
|
|
2735
2761
|
class FilterBase {
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
|
|
2742
|
-
|
|
2743
|
-
this.asc = false;
|
|
2744
|
-
}
|
|
2762
|
+
id = null;
|
|
2763
|
+
isDeleted = null;
|
|
2764
|
+
quickSearch = null;
|
|
2765
|
+
page = 1;
|
|
2766
|
+
pageSize = 10;
|
|
2767
|
+
sort = null;
|
|
2768
|
+
asc = false;
|
|
2745
2769
|
}
|
|
2746
2770
|
|
|
2747
2771
|
var Gender;
|
|
@@ -2751,6 +2775,8 @@ var Gender;
|
|
|
2751
2775
|
})(Gender || (Gender = {}));
|
|
2752
2776
|
|
|
2753
2777
|
class KeyPair {
|
|
2778
|
+
key;
|
|
2779
|
+
value;
|
|
2754
2780
|
constructor(init) {
|
|
2755
2781
|
if (init) {
|
|
2756
2782
|
Object.assign(this, init);
|
|
@@ -2760,11 +2786,15 @@ class KeyPair {
|
|
|
2760
2786
|
class KeyPairEx extends KeyPair {
|
|
2761
2787
|
}
|
|
2762
2788
|
class KeyPairChecked extends KeyPair {
|
|
2789
|
+
checked;
|
|
2763
2790
|
}
|
|
2764
2791
|
class KeyPairRequired extends KeyPair {
|
|
2792
|
+
required;
|
|
2765
2793
|
}
|
|
2766
2794
|
|
|
2767
2795
|
class ListBase {
|
|
2796
|
+
id;
|
|
2797
|
+
isDeleted;
|
|
2768
2798
|
}
|
|
2769
2799
|
|
|
2770
2800
|
var Month;
|
|
@@ -2784,76 +2814,81 @@ var Month;
|
|
|
2784
2814
|
})(Month || (Month = {}));
|
|
2785
2815
|
|
|
2786
2816
|
class Pager {
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
|
|
2795
|
-
|
|
2796
|
-
|
|
2797
|
-
|
|
2798
|
-
this.pages = [];
|
|
2799
|
-
}
|
|
2817
|
+
totalItemCount = 0;
|
|
2818
|
+
pageCount = 1;
|
|
2819
|
+
pageNumber = 1;
|
|
2820
|
+
pageSize = 25;
|
|
2821
|
+
hasPreviousPage = false;
|
|
2822
|
+
hasNextPage = false;
|
|
2823
|
+
isFirstPage = false;
|
|
2824
|
+
isLastPage = false;
|
|
2825
|
+
firstItemOnPage = 0;
|
|
2826
|
+
lastItemOnPage = 0;
|
|
2827
|
+
pages = [];
|
|
2800
2828
|
}
|
|
2801
2829
|
class PagedList {
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
|
|
2807
|
-
|
|
2808
|
-
|
|
2809
|
-
|
|
2810
|
-
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
|
|
2814
|
-
|
|
2815
|
-
this.lastItemOnPage = 0;
|
|
2816
|
-
}
|
|
2830
|
+
items = [];
|
|
2831
|
+
pager = new Pager();
|
|
2832
|
+
totalItemCount = 0;
|
|
2833
|
+
count = 0;
|
|
2834
|
+
pageNumber = 1;
|
|
2835
|
+
pageSize = 25;
|
|
2836
|
+
pageCount = 1;
|
|
2837
|
+
hasPreviousPage = false;
|
|
2838
|
+
hasNextPage = false;
|
|
2839
|
+
isFirstPage = false;
|
|
2840
|
+
isLastPage = false;
|
|
2841
|
+
firstItemOnPage = 0;
|
|
2842
|
+
lastItemOnPage = 0;
|
|
2817
2843
|
}
|
|
2818
2844
|
|
|
2819
2845
|
/**
|
|
2820
2846
|
* @deprecated use ITreeNode
|
|
2821
2847
|
*/
|
|
2822
2848
|
class Tree extends KeyPairChecked {
|
|
2849
|
+
parentId;
|
|
2850
|
+
children;
|
|
2851
|
+
childrenCount;
|
|
2852
|
+
indent;
|
|
2853
|
+
childrenIds;
|
|
2823
2854
|
}
|
|
2824
2855
|
|
|
2825
2856
|
class ValidEventArgs {
|
|
2826
|
-
|
|
2827
|
-
this.valid = true;
|
|
2828
|
-
}
|
|
2857
|
+
valid = true;
|
|
2829
2858
|
}
|
|
2830
2859
|
|
|
2831
2860
|
// declare let bootstrap: any;
|
|
2832
2861
|
class ListBaseComponent extends BaseComponent {
|
|
2862
|
+
service;
|
|
2863
|
+
filter = new FilterBase();
|
|
2864
|
+
saveFilter = true;
|
|
2865
|
+
sortFields;
|
|
2866
|
+
internalFilter = new FilterBase();
|
|
2867
|
+
isFiltered = false;
|
|
2868
|
+
selectedIds = [];
|
|
2869
|
+
selectedItems = [];
|
|
2870
|
+
pager = new Pager();
|
|
2871
|
+
sumModel;
|
|
2872
|
+
tableId = 'table';
|
|
2873
|
+
_initItems = true;
|
|
2833
2874
|
get initItems() {
|
|
2834
2875
|
return this._initItems;
|
|
2835
2876
|
}
|
|
2836
2877
|
set initItems(v) {
|
|
2837
2878
|
this._initItems = Convert.toBooleanProperty(v);
|
|
2838
2879
|
}
|
|
2880
|
+
filterModal;
|
|
2881
|
+
approveModel = {};
|
|
2882
|
+
approveModal;
|
|
2883
|
+
approvedMesage = 'Alert.Approved';
|
|
2884
|
+
disapproveModal;
|
|
2885
|
+
disapprovedMesage = 'Alert.Disapproved';
|
|
2839
2886
|
constructor(service) {
|
|
2840
2887
|
super();
|
|
2841
2888
|
this.service = service;
|
|
2842
|
-
this.filter = new FilterBase();
|
|
2843
|
-
this.saveFilter = true;
|
|
2844
|
-
this.internalFilter = new FilterBase();
|
|
2845
|
-
this.isFiltered = false;
|
|
2846
|
-
this.selectedIds = [];
|
|
2847
|
-
this.selectedItems = [];
|
|
2848
|
-
this.pager = new Pager();
|
|
2849
|
-
this.tableId = 'table';
|
|
2850
|
-
this._initItems = true;
|
|
2851
|
-
this.approveModel = {};
|
|
2852
|
-
this.approvedMesage = 'Alert.Approved';
|
|
2853
|
-
this.disapprovedMesage = 'Alert.Disapproved';
|
|
2854
|
-
this.translate = inject(TranslateService);
|
|
2855
|
-
this.alert = inject(AlertService);
|
|
2856
2889
|
}
|
|
2890
|
+
translate = inject(TranslateService);
|
|
2891
|
+
alert = inject(AlertService);
|
|
2857
2892
|
init() {
|
|
2858
2893
|
super.init();
|
|
2859
2894
|
this.reset();
|
|
@@ -2869,7 +2904,7 @@ class ListBaseComponent extends BaseComponent {
|
|
|
2869
2904
|
if (!totalCount && this.model.pager) {
|
|
2870
2905
|
totalCount = this.model.pager ? (this.model.pager.totalItemCount || 0) : 0;
|
|
2871
2906
|
}
|
|
2872
|
-
this.pager = PagerHelper.get(totalCount, this.
|
|
2907
|
+
this.pager = PagerHelper.get(totalCount, this.model.pageNumber, this.model.pageSize);
|
|
2873
2908
|
this.onBindModelCompleted();
|
|
2874
2909
|
}
|
|
2875
2910
|
else {
|
|
@@ -3113,10 +3148,10 @@ class ListBaseComponent extends BaseComponent {
|
|
|
3113
3148
|
super.print(id, printType);
|
|
3114
3149
|
}
|
|
3115
3150
|
}
|
|
3116
|
-
static
|
|
3117
|
-
static
|
|
3151
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ListBaseComponent, deps: "invalid", target: i0.ɵɵFactoryTarget.Directive });
|
|
3152
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.6", type: ListBaseComponent, isStandalone: true, inputs: { initItems: "initItems" }, viewQueries: [{ propertyName: "filterModal", first: true, predicate: ["filterModal"], descendants: true }, { propertyName: "approveModal", first: true, predicate: ["approveModal"], descendants: true }, { propertyName: "disapproveModal", first: true, predicate: ["disapproveModal"], descendants: true }], usesInheritance: true, ngImport: i0 });
|
|
3118
3153
|
}
|
|
3119
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3154
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ListBaseComponent, decorators: [{
|
|
3120
3155
|
type: Directive
|
|
3121
3156
|
}], ctorParameters: () => [{ type: undefined }], propDecorators: { initItems: [{
|
|
3122
3157
|
type: Input
|
|
@@ -3132,16 +3167,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
3132
3167
|
}] } });
|
|
3133
3168
|
|
|
3134
3169
|
class ZekDelayedInputDirective {
|
|
3135
|
-
|
|
3136
|
-
|
|
3137
|
-
|
|
3138
|
-
this._delay = 500;
|
|
3139
|
-
}
|
|
3170
|
+
_inputSubject$ = new Subject();
|
|
3171
|
+
delayedInput = new EventEmitter();
|
|
3172
|
+
_delay = 500;
|
|
3140
3173
|
get delay() {
|
|
3141
3174
|
return this._delay;
|
|
3142
3175
|
}
|
|
3143
3176
|
set delay(v) {
|
|
3144
|
-
const tmp = MathHelper.clamp(Convert.toNumber(v), 1,
|
|
3177
|
+
const tmp = MathHelper.clamp(Convert.toNumber(v), 1, 3_600_000);
|
|
3145
3178
|
if (this._delay !== tmp) {
|
|
3146
3179
|
this._delay = tmp;
|
|
3147
3180
|
}
|
|
@@ -3165,10 +3198,10 @@ class ZekDelayedInputDirective {
|
|
|
3165
3198
|
onInput(value) {
|
|
3166
3199
|
this._inputSubject$.next(value); // Push new value to the Subject
|
|
3167
3200
|
}
|
|
3168
|
-
static
|
|
3169
|
-
static
|
|
3201
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekDelayedInputDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
3202
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.6", type: ZekDelayedInputDirective, isStandalone: true, selector: "[zek-delayed-input]", inputs: { delay: "delay" }, outputs: { delayedInput: "delayedInput" }, host: { listeners: { "input": "onInput($event.target.value)" } }, ngImport: i0 });
|
|
3170
3203
|
}
|
|
3171
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3204
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekDelayedInputDirective, decorators: [{
|
|
3172
3205
|
type: Directive,
|
|
3173
3206
|
args: [{
|
|
3174
3207
|
standalone: true,
|
|
@@ -3191,10 +3224,10 @@ class AgePipe {
|
|
|
3191
3224
|
const timeDiff = (now ? DateHelper.toDate(now).getTime() : Date.now()) - date.getTime();
|
|
3192
3225
|
return Math.floor((timeDiff / (1000 * 3600 * 24)) / 365.25);
|
|
3193
3226
|
}
|
|
3194
|
-
static
|
|
3195
|
-
static
|
|
3227
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: AgePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
3228
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.0.6", ngImport: i0, type: AgePipe, isStandalone: true, name: "age" });
|
|
3196
3229
|
}
|
|
3197
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3230
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: AgePipe, decorators: [{
|
|
3198
3231
|
type: Pipe,
|
|
3199
3232
|
args: [{
|
|
3200
3233
|
standalone: true,
|
|
@@ -3203,13 +3236,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
3203
3236
|
}] });
|
|
3204
3237
|
|
|
3205
3238
|
class ZekAlert extends CoreComponent {
|
|
3206
|
-
|
|
3207
|
-
super(...arguments);
|
|
3208
|
-
this._type = 'info';
|
|
3209
|
-
this._showClose = true;
|
|
3210
|
-
this.cssAlert = '';
|
|
3211
|
-
this.cssIcon = '';
|
|
3212
|
-
}
|
|
3239
|
+
_type = 'info';
|
|
3213
3240
|
get type() {
|
|
3214
3241
|
return this._type;
|
|
3215
3242
|
}
|
|
@@ -3219,20 +3246,24 @@ class ZekAlert extends CoreComponent {
|
|
|
3219
3246
|
this.init();
|
|
3220
3247
|
}
|
|
3221
3248
|
}
|
|
3249
|
+
_showClose = true;
|
|
3222
3250
|
get showClose() {
|
|
3223
3251
|
return this._showClose;
|
|
3224
3252
|
}
|
|
3225
3253
|
set showClose(v) {
|
|
3226
3254
|
this._showClose = Convert.toBooleanProperty(v);
|
|
3227
3255
|
}
|
|
3256
|
+
title;
|
|
3228
3257
|
init() {
|
|
3229
3258
|
this.cssAlert = BootstrapHelper.cssAlert(this._type);
|
|
3230
3259
|
this.cssIcon = BootstrapHelper.cssAlertIcon(this._type);
|
|
3231
3260
|
}
|
|
3232
|
-
|
|
3233
|
-
|
|
3261
|
+
cssAlert = '';
|
|
3262
|
+
cssIcon = '';
|
|
3263
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekAlert, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
3264
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.6", type: ZekAlert, isStandalone: true, selector: "zek-alert", inputs: { type: "type", showClose: "showClose", title: "title" }, usesInheritance: true, ngImport: i0, template: "<div class=\"alert {{cssAlert}} alert-dismissible fade show\" role=\"alert\">\r\n <button *ngIf=\"_showClose\" type=\"button\" class=\"btn-close\" data-bs-dismiss=\"alert\" aria-label=\"Close\"></button>\r\n <div class=\"row\">\r\n <div class=\"col-auto pe-1\" *ngIf=\"cssIcon\">\r\n <span class=\"flex-shrink-0\"><i class=\"{{cssIcon}}\"></i></span>\r\n </div>\r\n <div class=\"col-auto\">\r\n <div *ngIf=\"title\">\r\n <h5 class=\"alert-heading\">{{title}}</h5>\r\n </div>\r\n <ng-content></ng-content>\r\n </div>\r\n </div>\r\n</div>", styles: [":host{display:block}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
3234
3265
|
}
|
|
3235
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3266
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekAlert, decorators: [{
|
|
3236
3267
|
type: Component,
|
|
3237
3268
|
args: [{ standalone: true, selector: 'zek-alert', imports: [CommonModule], template: "<div class=\"alert {{cssAlert}} alert-dismissible fade show\" role=\"alert\">\r\n <button *ngIf=\"_showClose\" type=\"button\" class=\"btn-close\" data-bs-dismiss=\"alert\" aria-label=\"Close\"></button>\r\n <div class=\"row\">\r\n <div class=\"col-auto pe-1\" *ngIf=\"cssIcon\">\r\n <span class=\"flex-shrink-0\"><i class=\"{{cssIcon}}\"></i></span>\r\n </div>\r\n <div class=\"col-auto\">\r\n <div *ngIf=\"title\">\r\n <h5 class=\"alert-heading\">{{title}}</h5>\r\n </div>\r\n <ng-content></ng-content>\r\n </div>\r\n </div>\r\n</div>", styles: [":host{display:block}\n"] }]
|
|
3238
3269
|
}], propDecorators: { type: [{
|
|
@@ -3244,6 +3275,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
3244
3275
|
}] } });
|
|
3245
3276
|
|
|
3246
3277
|
class ZekToast {
|
|
3278
|
+
alertService;
|
|
3247
3279
|
get delay() {
|
|
3248
3280
|
return this._delay;
|
|
3249
3281
|
}
|
|
@@ -3253,11 +3285,13 @@ class ZekToast {
|
|
|
3253
3285
|
this._delay = tmp;
|
|
3254
3286
|
}
|
|
3255
3287
|
}
|
|
3288
|
+
_delay = 3000;
|
|
3289
|
+
icon = true;
|
|
3290
|
+
toasts = [];
|
|
3291
|
+
_subscription;
|
|
3292
|
+
_timeout;
|
|
3256
3293
|
constructor(alertService) {
|
|
3257
3294
|
this.alertService = alertService;
|
|
3258
|
-
this._delay = 3000;
|
|
3259
|
-
this.icon = true;
|
|
3260
|
-
this.toasts = [];
|
|
3261
3295
|
}
|
|
3262
3296
|
ngOnInit() {
|
|
3263
3297
|
this._subscription = this.alertService.getToast().subscribe((toast) => {
|
|
@@ -3344,10 +3378,10 @@ class ZekToast {
|
|
|
3344
3378
|
break;
|
|
3345
3379
|
}
|
|
3346
3380
|
}
|
|
3347
|
-
static
|
|
3348
|
-
static
|
|
3381
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekToast, deps: [{ token: AlertService }], target: i0.ɵɵFactoryTarget.Component });
|
|
3382
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.6", type: ZekToast, isStandalone: true, selector: "zek-toast", inputs: { delay: "delay", icon: "icon" }, ngImport: i0, template: "<div class=\"toast-container position-fixed top-0 end-0 p-3\">\r\n <div *ngFor=\"let toast of toasts\" class=\"toast fade show border-0 {{ toast.css }}\" role=\"alert\" aria-live=\"assertive\" aria-atomic=\"true\" [attr.data-bs-delay]=\"_delay\">\r\n <div class=\"toast-header\">\r\n <span class=\"me-1\" *ngIf=\"icon && toast.icon\"><i class=\"{{ toast.icon }}\"></i></span>\r\n <strong class=\"me-auto\" *ngIf=\"toast.title\">{{ toast.title }}</strong>\r\n <button type=\"button\" class=\"btn-close ms-auto me-2\" data-bs-dismiss=\"toast\" aria-label=\"Close\" (click)=\"remove(toast)\"></button>\r\n </div>\r\n <div class=\"toast-body\">\r\n {{ toast.message }}\r\n </div>\r\n </div>\r\n <!-- <div *ngFor=\"let toast of toasts\" class=\"toast fade show\" role=\"alert\" aria-live=\"assertive\" aria-atomic=\"true\" data-bs-delay=\"3000\">\r\n <div class=\"toast-body\">\r\n <div class=\"row\">\r\n <div class=\"col-auto pe-1 border-start border-8 {{toast.borderColor}}\">\r\n <span *ngIf=\"toast.icon\" class=\"icon flex-shrink-0 {{toast.iconColor}}\"><i class=\"{{toast.icon}}\"></i></span>\r\n </div>\r\n <div class=\"col\">\r\n <div *ngIf=\"toast.title\"><h5>{{toast.title}}</h5></div>\r\n {{ toast.message }}\r\n </div>\r\n <div class=\"col-auto p-0\">\r\n <button type=\"button\" class=\"btn-close ms-auto me-2\" data-bs-dismiss=\"toast\" aria-label=\"Close\" (click)=\"remove(toast)\"></button>\r\n </div>\r\n </div>\r\n </div>\r\n </div> -->\r\n</div>", styles: [":host>.toast-container{z-index:999999;opacity:.9}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
3349
3383
|
}
|
|
3350
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3384
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekToast, decorators: [{
|
|
3351
3385
|
type: Component,
|
|
3352
3386
|
args: [{ standalone: true, selector: 'zek-toast', imports: [CommonModule], template: "<div class=\"toast-container position-fixed top-0 end-0 p-3\">\r\n <div *ngFor=\"let toast of toasts\" class=\"toast fade show border-0 {{ toast.css }}\" role=\"alert\" aria-live=\"assertive\" aria-atomic=\"true\" [attr.data-bs-delay]=\"_delay\">\r\n <div class=\"toast-header\">\r\n <span class=\"me-1\" *ngIf=\"icon && toast.icon\"><i class=\"{{ toast.icon }}\"></i></span>\r\n <strong class=\"me-auto\" *ngIf=\"toast.title\">{{ toast.title }}</strong>\r\n <button type=\"button\" class=\"btn-close ms-auto me-2\" data-bs-dismiss=\"toast\" aria-label=\"Close\" (click)=\"remove(toast)\"></button>\r\n </div>\r\n <div class=\"toast-body\">\r\n {{ toast.message }}\r\n </div>\r\n </div>\r\n <!-- <div *ngFor=\"let toast of toasts\" class=\"toast fade show\" role=\"alert\" aria-live=\"assertive\" aria-atomic=\"true\" data-bs-delay=\"3000\">\r\n <div class=\"toast-body\">\r\n <div class=\"row\">\r\n <div class=\"col-auto pe-1 border-start border-8 {{toast.borderColor}}\">\r\n <span *ngIf=\"toast.icon\" class=\"icon flex-shrink-0 {{toast.iconColor}}\"><i class=\"{{toast.icon}}\"></i></span>\r\n </div>\r\n <div class=\"col\">\r\n <div *ngIf=\"toast.title\"><h5>{{toast.title}}</h5></div>\r\n {{ toast.message }}\r\n </div>\r\n <div class=\"col-auto p-0\">\r\n <button type=\"button\" class=\"btn-close ms-auto me-2\" data-bs-dismiss=\"toast\" aria-label=\"Close\" (click)=\"remove(toast)\"></button>\r\n </div>\r\n </div>\r\n </div>\r\n </div> -->\r\n</div>", styles: [":host>.toast-container{z-index:999999;opacity:.9}\n"] }]
|
|
3353
3387
|
}], ctorParameters: () => [{ type: AlertService }], propDecorators: { delay: [{
|
|
@@ -3357,9 +3391,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
3357
3391
|
}] } });
|
|
3358
3392
|
|
|
3359
3393
|
class ZekValidation {
|
|
3394
|
+
alertService;
|
|
3395
|
+
alerts = [];
|
|
3396
|
+
subscription;
|
|
3360
3397
|
constructor(alertService) {
|
|
3361
3398
|
this.alertService = alertService;
|
|
3362
|
-
this.alerts = [];
|
|
3363
3399
|
}
|
|
3364
3400
|
ngOnInit() {
|
|
3365
3401
|
this.subscription = this.alertService.getAlert().subscribe((alert) => {
|
|
@@ -3398,15 +3434,17 @@ class ZekValidation {
|
|
|
3398
3434
|
}
|
|
3399
3435
|
return BootstrapHelper.cssAlert(alert.type);
|
|
3400
3436
|
}
|
|
3401
|
-
static
|
|
3402
|
-
static
|
|
3437
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekValidation, deps: [{ token: AlertService }], target: i0.ɵɵFactoryTarget.Component });
|
|
3438
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.6", type: ZekValidation, isStandalone: true, selector: "zek-validation", ngImport: i0, template: "<div *ngFor=\"let alert of alerts\" class=\"alert {{ cssAlert(alert) }} alert-dismissible fade show mt-3\" role=\"alert\">\r\n <button (click)=\"remove(alert)\" type=\"button\" class=\"btn-close\" aria-label=\"Close\"></button>\r\n <div *ngFor=\"let message of alert.messages\">\r\n <i *ngIf=\"cssIcon(alert)\" class=\"{{ cssIcon(alert) }}\"></i>\r\n {{message}}\r\n </div>\r\n <ng-content></ng-content>\r\n</div>", styles: [":host{display:block}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
3403
3439
|
}
|
|
3404
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3440
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekValidation, decorators: [{
|
|
3405
3441
|
type: Component,
|
|
3406
3442
|
args: [{ standalone: true, selector: 'zek-validation', imports: [CommonModule], template: "<div *ngFor=\"let alert of alerts\" class=\"alert {{ cssAlert(alert) }} alert-dismissible fade show mt-3\" role=\"alert\">\r\n <button (click)=\"remove(alert)\" type=\"button\" class=\"btn-close\" aria-label=\"Close\"></button>\r\n <div *ngFor=\"let message of alert.messages\">\r\n <i *ngIf=\"cssIcon(alert)\" class=\"{{ cssIcon(alert) }}\"></i>\r\n {{message}}\r\n </div>\r\n <ng-content></ng-content>\r\n</div>", styles: [":host{display:block}\n"] }]
|
|
3407
3443
|
}], ctorParameters: () => [{ type: AlertService }] });
|
|
3408
3444
|
|
|
3409
3445
|
class ZekAutoComplete {
|
|
3446
|
+
el;
|
|
3447
|
+
router;
|
|
3410
3448
|
constructor(el, router) {
|
|
3411
3449
|
this.el = el;
|
|
3412
3450
|
this.router = router;
|
|
@@ -3417,10 +3455,10 @@ class ZekAutoComplete {
|
|
|
3417
3455
|
}
|
|
3418
3456
|
this.el.nativeElement.setAttribute('autocomplete', 'off');
|
|
3419
3457
|
}
|
|
3420
|
-
static
|
|
3421
|
-
static
|
|
3458
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekAutoComplete, deps: [{ token: i0.ElementRef }, { token: i1.Router }], target: i0.ɵɵFactoryTarget.Directive });
|
|
3459
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.6", type: ZekAutoComplete, isStandalone: true, selector: "form", ngImport: i0 });
|
|
3422
3460
|
}
|
|
3423
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3461
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekAutoComplete, decorators: [{
|
|
3424
3462
|
type: Directive,
|
|
3425
3463
|
args: [{
|
|
3426
3464
|
standalone: true,
|
|
@@ -3439,35 +3477,20 @@ const ZEK_BB_CONTROL_VALUE_ACCESSOR = {
|
|
|
3439
3477
|
multi: true,
|
|
3440
3478
|
};
|
|
3441
3479
|
class ZekButtonBrowse extends CoreUiComponent {
|
|
3442
|
-
constructor() {
|
|
3443
|
-
super(...arguments);
|
|
3444
|
-
this._uniqueId = `zek-bb-${this.uniqueId}`;
|
|
3445
|
-
/** The unique ID for the bb. */
|
|
3446
|
-
this.id = this._uniqueId;
|
|
3447
|
-
this.filter = {};
|
|
3448
|
-
this.data = new PagedList();
|
|
3449
|
-
this._text = null;
|
|
3450
|
-
this._readOnly = false;
|
|
3451
|
-
this._hide = false;
|
|
3452
|
-
this._showInput = true;
|
|
3453
|
-
this._multiSelect = false;
|
|
3454
|
-
this.onShowModal = new EventEmitter();
|
|
3455
|
-
this.onChooseAll = new EventEmitter();
|
|
3456
|
-
this.onKeyPairChange = new EventEmitter();
|
|
3457
|
-
this.onBindText = new EventEmitter();
|
|
3458
|
-
this._size = '';
|
|
3459
|
-
this._scrollable = false;
|
|
3460
|
-
this._fullscreen = false;
|
|
3461
|
-
this._showHeader = true;
|
|
3462
|
-
}
|
|
3463
3480
|
destroy() {
|
|
3464
3481
|
this._modal?.dispose();
|
|
3465
3482
|
this._modal = null;
|
|
3466
3483
|
return super.destroy();
|
|
3467
3484
|
}
|
|
3485
|
+
_uniqueId = `zek-bb-${this.uniqueId}`;
|
|
3486
|
+
/** The unique ID for the bb. */
|
|
3487
|
+
id = this._uniqueId;
|
|
3468
3488
|
get modalId() {
|
|
3469
3489
|
return `${this.id || this._uniqueId}-modal`;
|
|
3470
3490
|
}
|
|
3491
|
+
filter = {};
|
|
3492
|
+
data = new PagedList();
|
|
3493
|
+
_type;
|
|
3471
3494
|
get type() {
|
|
3472
3495
|
return this._type;
|
|
3473
3496
|
}
|
|
@@ -3477,6 +3500,7 @@ class ZekButtonBrowse extends CoreUiComponent {
|
|
|
3477
3500
|
this.onValueChanged(); //get and set input text
|
|
3478
3501
|
}
|
|
3479
3502
|
}
|
|
3503
|
+
_text = null;
|
|
3480
3504
|
get text() {
|
|
3481
3505
|
return this._text;
|
|
3482
3506
|
}
|
|
@@ -3489,30 +3513,39 @@ class ZekButtonBrowse extends CoreUiComponent {
|
|
|
3489
3513
|
onTextChanged() {
|
|
3490
3514
|
this.onKeyPairChange.emit(new KeyPair({ key: this._value, value: this._text }));
|
|
3491
3515
|
}
|
|
3516
|
+
_readOnly = false;
|
|
3492
3517
|
get readOnly() {
|
|
3493
3518
|
return this._readOnly;
|
|
3494
3519
|
}
|
|
3495
3520
|
set readOnly(v) {
|
|
3496
3521
|
this._readOnly = Convert.toBooleanProperty(v);
|
|
3497
3522
|
}
|
|
3523
|
+
_hide = false;
|
|
3498
3524
|
get hide() {
|
|
3499
3525
|
return this._hide;
|
|
3500
3526
|
}
|
|
3501
3527
|
set hide(v) {
|
|
3502
3528
|
this._hide = Convert.toBooleanProperty(v);
|
|
3503
3529
|
}
|
|
3530
|
+
_showInput = true;
|
|
3504
3531
|
get showInput() {
|
|
3505
3532
|
return this._showInput;
|
|
3506
3533
|
}
|
|
3507
3534
|
set showInput(v) {
|
|
3508
3535
|
this._showInput = Convert.toBooleanProperty(v);
|
|
3509
3536
|
}
|
|
3537
|
+
_multiSelect = false;
|
|
3510
3538
|
get multiSelect() {
|
|
3511
3539
|
return this._multiSelect;
|
|
3512
3540
|
}
|
|
3513
3541
|
set multiSelect(v) {
|
|
3514
3542
|
this._multiSelect = Convert.toBooleanProperty(v);
|
|
3515
3543
|
}
|
|
3544
|
+
onShowModal = new EventEmitter();
|
|
3545
|
+
onChooseAll = new EventEmitter();
|
|
3546
|
+
onKeyPairChange = new EventEmitter();
|
|
3547
|
+
onBindText = new EventEmitter();
|
|
3548
|
+
_modal;
|
|
3516
3549
|
get modal() {
|
|
3517
3550
|
if (!this._modal) {
|
|
3518
3551
|
const modalEl = document.getElementById(this.modalId);
|
|
@@ -3523,24 +3556,28 @@ class ZekButtonBrowse extends CoreUiComponent {
|
|
|
3523
3556
|
set modal(v) {
|
|
3524
3557
|
this._modal = v;
|
|
3525
3558
|
}
|
|
3559
|
+
_size = '';
|
|
3526
3560
|
get size() {
|
|
3527
3561
|
return this._size;
|
|
3528
3562
|
}
|
|
3529
3563
|
set size(v) {
|
|
3530
3564
|
this._size = v;
|
|
3531
3565
|
}
|
|
3566
|
+
_scrollable = false;
|
|
3532
3567
|
get scrollable() {
|
|
3533
3568
|
return this._scrollable;
|
|
3534
3569
|
}
|
|
3535
3570
|
set scrollable(v) {
|
|
3536
3571
|
this._scrollable = Convert.toBooleanProperty(v);
|
|
3537
3572
|
}
|
|
3573
|
+
_fullscreen = false;
|
|
3538
3574
|
get fullscreen() {
|
|
3539
3575
|
return this._fullscreen;
|
|
3540
3576
|
}
|
|
3541
3577
|
set fullscreen(v) {
|
|
3542
3578
|
this._fullscreen = Convert.toBooleanProperty(v);
|
|
3543
3579
|
}
|
|
3580
|
+
_showHeader = true;
|
|
3544
3581
|
get showHeader() {
|
|
3545
3582
|
return this._showHeader;
|
|
3546
3583
|
}
|
|
@@ -3589,12 +3626,12 @@ class ZekButtonBrowse extends CoreUiComponent {
|
|
|
3589
3626
|
bindText() {
|
|
3590
3627
|
this.onBindText.emit();
|
|
3591
3628
|
}
|
|
3592
|
-
static
|
|
3593
|
-
static
|
|
3629
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekButtonBrowse, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
3630
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.6", type: ZekButtonBrowse, isStandalone: false, selector: "zek-bb", inputs: { id: "id", type: "type", text: "text", readOnly: "readOnly", hide: "hide", showInput: "showInput", multiSelect: "multiSelect", size: "size", scrollable: "scrollable", fullscreen: "fullscreen", showHeader: "showHeader" }, outputs: { onShowModal: "onShowModal", onChooseAll: "onChooseAll", onKeyPairChange: "onKeyPairChange", onBindText: "onBindText" }, providers: [ZEK_BB_CONTROL_VALUE_ACCESSOR], usesInheritance: true, ngImport: i0, template: "<div *ngIf=\"!hide && showInput\" class=\"input-group\">\r\n <input type=\"text\" class=\"form-control\" [ngClass]=\"{ 'ng-valid required': !required || value, 'ng-invalid': required && !value }\" (keyup)=\"_onKey($event)\" title=\"ID = {{value}}\" [value]=\"text\" [attr.readonly]=\"true\">\r\n <button type=\"button\" [disabled]=\"disabled || readOnly\" class=\"btn btn-outline-secondary\" (click)=\"showModal()\">\r\n <i class=\"fa-solid fa-ellipsis\"></i>\r\n </button>\r\n <button type=\"button\" [disabled]=\"disabled || readOnly\" class=\"btn btn-outline-secondary dropdown-toggle dropdown-toggle-split\" data-bs-toggle=\"dropdown\" aria-expanded=\"false\">\r\n <span class=\"visually-hidden\">Toggle Dropdown</span>\r\n </button>\r\n <ul class=\"dropdown-menu\">\r\n <li><a class=\"dropdown-item\" (click)=\"delete()\" href=\"javascript:void(0)\"> <i class=\"fa-solid fa-trash\"></i> Delete <kbd>delete</kbd> </a></li>\r\n </ul>\r\n</div>\r\n<div *ngIf=\"!hide || disabled || readOnly\" class=\"modal fade\" [id]=\"modalId\" tabindex=\"-1\" aria-labelledby=\"bb-modal-label\" aria-hidden=\"true\">\r\n <div class=\"modal-dialog\" [ngClass]=\"{\r\n 'modal-sm': size === 'sm',\r\n 'modal-lg': size === 'lg', \r\n 'modal-xl': size === 'xl'\r\n }\" [class.modal-dialog-scrollable]=\"scrollable\" [class.modal-fullscreen]=\"fullscreen\">\r\n <div class=\"modal-content\">\r\n <div class=\"modal-header\" *ngIf=\"showHeader\">\r\n <h5 class=\"modal-title\" id=\"{{modalId}}-label\">{{'Action.Choose' | translate }}</h5>\r\n <button type=\"button\" (click)=\"close()\" class=\"btn-close\" data-bs-dismiss2=\"modal\" aria-label=\"Close\"></button>\r\n </div>\r\n <div class=\"modal-body\">\r\n <ng-content></ng-content>\r\n </div>\r\n </div>\r\n </div>\r\n</div>", dependencies: [{ kind: "directive", type: i1$2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }] });
|
|
3594
3631
|
}
|
|
3595
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3632
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekButtonBrowse, decorators: [{
|
|
3596
3633
|
type: Component,
|
|
3597
|
-
args: [{ selector: 'zek-bb', providers: [ZEK_BB_CONTROL_VALUE_ACCESSOR], template: "<div *ngIf=\"!hide && showInput\" class=\"input-group\">\r\n <input type=\"text\" class=\"form-control\" [ngClass]=\"{ 'ng-valid required': !required || value, 'ng-invalid': required && !value }\" (keyup)=\"_onKey($event)\" title=\"ID = {{value}}\" [value]=\"text\" [attr.readonly]=\"true\">\r\n <button type=\"button\" [disabled]=\"disabled || readOnly\" class=\"btn btn-outline-secondary\" (click)=\"showModal()\">\r\n <i class=\"fa-solid fa-ellipsis\"></i>\r\n </button>\r\n <button type=\"button\" [disabled]=\"disabled || readOnly\" class=\"btn btn-outline-secondary dropdown-toggle dropdown-toggle-split\" data-bs-toggle=\"dropdown\" aria-expanded=\"false\">\r\n <span class=\"visually-hidden\">Toggle Dropdown</span>\r\n </button>\r\n <ul class=\"dropdown-menu\">\r\n <li><a class=\"dropdown-item\" (click)=\"delete()\" href=\"javascript:void(0)\"> <i class=\"fa-solid fa-trash\"></i> Delete <kbd>delete</kbd> </a></li>\r\n </ul>\r\n</div>\r\n<div *ngIf=\"!hide || disabled || readOnly\" class=\"modal fade\" [id]=\"modalId\" tabindex=\"-1\" aria-labelledby=\"bb-modal-label\" aria-hidden=\"true\">\r\n <div class=\"modal-dialog\" [ngClass]=\"{\r\n 'modal-sm': size === 'sm',\r\n 'modal-lg': size === 'lg', \r\n 'modal-xl': size === 'xl'\r\n }\" [class.modal-dialog-scrollable]=\"scrollable\" [class.modal-fullscreen]=\"fullscreen\">\r\n <div class=\"modal-content\">\r\n <div class=\"modal-header\" *ngIf=\"showHeader\">\r\n <h5 class=\"modal-title\" id=\"{{modalId}}-label\">{{'Action.Choose' | translate }}</h5>\r\n <button type=\"button\" (click)=\"close()\" class=\"btn-close\" data-bs-dismiss2=\"modal\" aria-label=\"Close\"></button>\r\n </div>\r\n <div class=\"modal-body\">\r\n <ng-content></ng-content>\r\n </div>\r\n </div>\r\n </div>\r\n</div>" }]
|
|
3634
|
+
args: [{ standalone: false, selector: 'zek-bb', providers: [ZEK_BB_CONTROL_VALUE_ACCESSOR], template: "<div *ngIf=\"!hide && showInput\" class=\"input-group\">\r\n <input type=\"text\" class=\"form-control\" [ngClass]=\"{ 'ng-valid required': !required || value, 'ng-invalid': required && !value }\" (keyup)=\"_onKey($event)\" title=\"ID = {{value}}\" [value]=\"text\" [attr.readonly]=\"true\">\r\n <button type=\"button\" [disabled]=\"disabled || readOnly\" class=\"btn btn-outline-secondary\" (click)=\"showModal()\">\r\n <i class=\"fa-solid fa-ellipsis\"></i>\r\n </button>\r\n <button type=\"button\" [disabled]=\"disabled || readOnly\" class=\"btn btn-outline-secondary dropdown-toggle dropdown-toggle-split\" data-bs-toggle=\"dropdown\" aria-expanded=\"false\">\r\n <span class=\"visually-hidden\">Toggle Dropdown</span>\r\n </button>\r\n <ul class=\"dropdown-menu\">\r\n <li><a class=\"dropdown-item\" (click)=\"delete()\" href=\"javascript:void(0)\"> <i class=\"fa-solid fa-trash\"></i> Delete <kbd>delete</kbd> </a></li>\r\n </ul>\r\n</div>\r\n<div *ngIf=\"!hide || disabled || readOnly\" class=\"modal fade\" [id]=\"modalId\" tabindex=\"-1\" aria-labelledby=\"bb-modal-label\" aria-hidden=\"true\">\r\n <div class=\"modal-dialog\" [ngClass]=\"{\r\n 'modal-sm': size === 'sm',\r\n 'modal-lg': size === 'lg', \r\n 'modal-xl': size === 'xl'\r\n }\" [class.modal-dialog-scrollable]=\"scrollable\" [class.modal-fullscreen]=\"fullscreen\">\r\n <div class=\"modal-content\">\r\n <div class=\"modal-header\" *ngIf=\"showHeader\">\r\n <h5 class=\"modal-title\" id=\"{{modalId}}-label\">{{'Action.Choose' | translate }}</h5>\r\n <button type=\"button\" (click)=\"close()\" class=\"btn-close\" data-bs-dismiss2=\"modal\" aria-label=\"Close\"></button>\r\n </div>\r\n <div class=\"modal-body\">\r\n <ng-content></ng-content>\r\n </div>\r\n </div>\r\n </div>\r\n</div>" }]
|
|
3598
3635
|
}], propDecorators: { id: [{
|
|
3599
3636
|
type: Input
|
|
3600
3637
|
}], type: [{
|
|
@@ -3628,35 +3665,33 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
3628
3665
|
}] } });
|
|
3629
3666
|
|
|
3630
3667
|
class ZekButtonBrowseModalToolbar {
|
|
3631
|
-
|
|
3632
|
-
this.onSearch = new EventEmitter();
|
|
3633
|
-
this.onReset = new EventEmitter();
|
|
3634
|
-
this._multiSelect = false;
|
|
3635
|
-
this.onChooseAll = new EventEmitter();
|
|
3636
|
-
}
|
|
3668
|
+
onSearch = new EventEmitter();
|
|
3637
3669
|
search() {
|
|
3638
3670
|
this.onSearch.emit();
|
|
3639
3671
|
}
|
|
3672
|
+
onReset = new EventEmitter();
|
|
3640
3673
|
reset() {
|
|
3641
3674
|
this.onReset.emit();
|
|
3642
3675
|
}
|
|
3676
|
+
_multiSelect = false;
|
|
3643
3677
|
get multiSelect() {
|
|
3644
3678
|
return this._multiSelect;
|
|
3645
3679
|
}
|
|
3646
3680
|
set multiSelect(v) {
|
|
3647
3681
|
this._multiSelect = Convert.toBooleanProperty(v);
|
|
3648
3682
|
}
|
|
3683
|
+
onChooseAll = new EventEmitter();
|
|
3649
3684
|
chooseAll() {
|
|
3650
3685
|
if (!this.multiSelect)
|
|
3651
3686
|
return;
|
|
3652
3687
|
this.onChooseAll.emit();
|
|
3653
3688
|
}
|
|
3654
|
-
static
|
|
3655
|
-
static
|
|
3689
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekButtonBrowseModalToolbar, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3690
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.6", type: ZekButtonBrowseModalToolbar, isStandalone: false, selector: "zek-bb-modal-toolbar", inputs: { multiSelect: "multiSelect" }, outputs: { onSearch: "onSearch", onReset: "onReset", onChooseAll: "onChooseAll" }, ngImport: i0, template: "<ng-content select=\"[left]\"></ng-content>\r\n<button type=\"button\" (click)=\"search()\" class=\"btn btn-primary me-2\" id=\"bb-filter-button\" title=\"Filter\">\r\n <i class=\"fa-solid fa-filter\" aria-hidden=\"true\"></i>\r\n</button>\r\n<button type=\"button\" (click)=\"reset()\" class=\"btn btn-secondary me-2\" title=\"Reset\">\r\n <i class=\"fa-solid fa-xmark\" aria-hidden=\"true\"></i>\r\n</button>\r\n<button *ngIf=\"multiSelect\" type=\"button\" (click)=\"chooseAll()\" class=\"btn btn-secondary me-2\" title=\"Choose All\">\r\n <i class=\"fa-solid fa-hand-point-up\" aria-hidden=\"true\"></i>\r\n</button>\r\n<ng-content></ng-content>", dependencies: [{ kind: "directive", type: i1$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
3656
3691
|
}
|
|
3657
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3692
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekButtonBrowseModalToolbar, decorators: [{
|
|
3658
3693
|
type: Component,
|
|
3659
|
-
args: [{ selector: 'zek-bb-modal-toolbar', template: "<ng-content select=\"[left]\"></ng-content>\r\n<button type=\"button\" (click)=\"search()\" class=\"btn btn-primary me-2\" id=\"bb-filter-button\" title=\"Filter\">\r\n <i class=\"fa-solid fa-filter\" aria-hidden=\"true\"></i>\r\n</button>\r\n<button type=\"button\" (click)=\"reset()\" class=\"btn btn-secondary me-2\" title=\"Reset\">\r\n <i class=\"fa-solid fa-xmark\" aria-hidden=\"true\"></i>\r\n</button>\r\n<button *ngIf=\"multiSelect\" type=\"button\" (click)=\"chooseAll()\" class=\"btn btn-secondary me-2\" title=\"Choose All\">\r\n <i class=\"fa-solid fa-hand-point-up\" aria-hidden=\"true\"></i>\r\n</button>\r\n<ng-content></ng-content>" }]
|
|
3694
|
+
args: [{ standalone: false, selector: 'zek-bb-modal-toolbar', template: "<ng-content select=\"[left]\"></ng-content>\r\n<button type=\"button\" (click)=\"search()\" class=\"btn btn-primary me-2\" id=\"bb-filter-button\" title=\"Filter\">\r\n <i class=\"fa-solid fa-filter\" aria-hidden=\"true\"></i>\r\n</button>\r\n<button type=\"button\" (click)=\"reset()\" class=\"btn btn-secondary me-2\" title=\"Reset\">\r\n <i class=\"fa-solid fa-xmark\" aria-hidden=\"true\"></i>\r\n</button>\r\n<button *ngIf=\"multiSelect\" type=\"button\" (click)=\"chooseAll()\" class=\"btn btn-secondary me-2\" title=\"Choose All\">\r\n <i class=\"fa-solid fa-hand-point-up\" aria-hidden=\"true\"></i>\r\n</button>\r\n<ng-content></ng-content>" }]
|
|
3660
3695
|
}], propDecorators: { onSearch: [{
|
|
3661
3696
|
type: Output
|
|
3662
3697
|
}], onReset: [{
|
|
@@ -3668,17 +3703,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
3668
3703
|
}] } });
|
|
3669
3704
|
|
|
3670
3705
|
class ZekButtonBrowseModule {
|
|
3671
|
-
static
|
|
3672
|
-
static
|
|
3706
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekButtonBrowseModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
3707
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.6", ngImport: i0, type: ZekButtonBrowseModule, declarations: [ZekButtonBrowse,
|
|
3673
3708
|
ZekButtonBrowseModalToolbar], imports: [CommonModule,
|
|
3674
3709
|
FormsModule,
|
|
3675
3710
|
TranslateModule], exports: [ZekButtonBrowse,
|
|
3676
|
-
ZekButtonBrowseModalToolbar] });
|
|
3677
|
-
static
|
|
3711
|
+
ZekButtonBrowseModalToolbar] });
|
|
3712
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekButtonBrowseModule, imports: [CommonModule,
|
|
3678
3713
|
FormsModule,
|
|
3679
|
-
TranslateModule] });
|
|
3714
|
+
TranslateModule] });
|
|
3680
3715
|
}
|
|
3681
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3716
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekButtonBrowseModule, decorators: [{
|
|
3682
3717
|
type: NgModule,
|
|
3683
3718
|
args: [{
|
|
3684
3719
|
imports: [
|
|
@@ -3698,22 +3733,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
3698
3733
|
}] });
|
|
3699
3734
|
|
|
3700
3735
|
class ZekButtonBrowseModalBase extends CoreComponent {
|
|
3701
|
-
|
|
3702
|
-
|
|
3703
|
-
|
|
3704
|
-
|
|
3705
|
-
this.onChoose = new EventEmitter();
|
|
3706
|
-
this.onChooseAll = new EventEmitter();
|
|
3707
|
-
}
|
|
3736
|
+
type;
|
|
3737
|
+
filter = {};
|
|
3738
|
+
data;
|
|
3739
|
+
_multiSelect = false;
|
|
3708
3740
|
get multiSelect() {
|
|
3709
3741
|
return this._multiSelect;
|
|
3710
3742
|
}
|
|
3711
3743
|
set multiSelect(v) {
|
|
3712
3744
|
this._multiSelect = Convert.toBooleanProperty(v);
|
|
3713
3745
|
}
|
|
3746
|
+
value;
|
|
3747
|
+
onChoose = new EventEmitter();
|
|
3714
3748
|
choose(value) {
|
|
3715
3749
|
this.onChoose.emit(value);
|
|
3716
3750
|
}
|
|
3751
|
+
onChooseAll = new EventEmitter();
|
|
3717
3752
|
chooseAll() {
|
|
3718
3753
|
this.onChooseAll.emit(this.filter);
|
|
3719
3754
|
}
|
|
@@ -3746,10 +3781,10 @@ class ZekButtonBrowseModalBase extends CoreComponent {
|
|
|
3746
3781
|
reset() {
|
|
3747
3782
|
this.filter = {};
|
|
3748
3783
|
}
|
|
3749
|
-
static
|
|
3750
|
-
static
|
|
3784
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekButtonBrowseModalBase, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
3785
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.6", type: ZekButtonBrowseModalBase, isStandalone: true, inputs: { type: "type", filter: "filter", data: "data", multiSelect: "multiSelect", value: "value" }, outputs: { onChoose: "onChoose", onChooseAll: "onChooseAll" }, usesInheritance: true, ngImport: i0 });
|
|
3751
3786
|
}
|
|
3752
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3787
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekButtonBrowseModalBase, decorators: [{
|
|
3753
3788
|
type: Directive
|
|
3754
3789
|
}], propDecorators: { type: [{
|
|
3755
3790
|
type: Input
|
|
@@ -3776,10 +3811,10 @@ class ZekCallbackPipe {
|
|
|
3776
3811
|
? items.filter(item => callback(item, filter))
|
|
3777
3812
|
: items.filter(item => callback(item));
|
|
3778
3813
|
}
|
|
3779
|
-
static
|
|
3780
|
-
static
|
|
3814
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekCallbackPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
3815
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.0.6", ngImport: i0, type: ZekCallbackPipe, isStandalone: true, name: "callback", pure: false });
|
|
3781
3816
|
}
|
|
3782
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3817
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekCallbackPipe, decorators: [{
|
|
3783
3818
|
type: Pipe,
|
|
3784
3819
|
args: [{
|
|
3785
3820
|
standalone: true,
|
|
@@ -3789,23 +3824,28 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
3789
3824
|
}] });
|
|
3790
3825
|
|
|
3791
3826
|
class ZekCard {
|
|
3827
|
+
cdRef;
|
|
3792
3828
|
/**
|
|
3793
3829
|
*
|
|
3794
3830
|
*/
|
|
3795
3831
|
constructor(cdRef) {
|
|
3796
3832
|
this.cdRef = cdRef;
|
|
3797
|
-
this._css = '';
|
|
3798
|
-
this.showHeader = true;
|
|
3799
|
-
this.showBody = true;
|
|
3800
|
-
// showContent = true;
|
|
3801
|
-
this.showFooter = true;
|
|
3802
3833
|
}
|
|
3834
|
+
headerWrapper;
|
|
3835
|
+
bodyRef;
|
|
3836
|
+
// @ViewChild('contentRef') private contentRef: ElementRef | undefined;
|
|
3837
|
+
footerRef;
|
|
3838
|
+
_css = '';
|
|
3803
3839
|
get css() {
|
|
3804
3840
|
return this._css;
|
|
3805
3841
|
}
|
|
3806
3842
|
set css(value) {
|
|
3807
3843
|
this._css = value || '';
|
|
3808
3844
|
}
|
|
3845
|
+
showHeader = true;
|
|
3846
|
+
showBody = true;
|
|
3847
|
+
// showContent = true;
|
|
3848
|
+
showFooter = true;
|
|
3809
3849
|
ngAfterViewInit() {
|
|
3810
3850
|
this.showHeader = this.headerWrapper ? this.headerWrapper.nativeElement.childNodes.length > 0 : false;
|
|
3811
3851
|
this.showBody = this.bodyRef ? this.bodyRef.nativeElement.children.length > 0 : false;
|
|
@@ -3813,10 +3853,10 @@ class ZekCard {
|
|
|
3813
3853
|
this.showFooter = this.footerRef ? this.footerRef.nativeElement.childNodes.length > 0 : false;
|
|
3814
3854
|
this.cdRef.detectChanges();
|
|
3815
3855
|
}
|
|
3816
|
-
static
|
|
3817
|
-
static
|
|
3856
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekCard, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
3857
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.6", type: ZekCard, isStandalone: true, selector: "zek-card", inputs: { css: "css" }, viewQueries: [{ propertyName: "headerWrapper", first: true, predicate: ["headerRef"], descendants: true }, { propertyName: "bodyRef", first: true, predicate: ["bodyRef"], descendants: true }, { propertyName: "footerRef", first: true, predicate: ["footerRef"], descendants: true }], ngImport: i0, template: "<div class=\"card {{css}}\">\r\n <div class=\"card-header\" #headerRef *ngIf=\"showHeader\">\r\n <ng-content select=\"[card-header]\"></ng-content>\r\n </div>\r\n <div class=\"card-body\" #bodyRef *ngIf=\"showBody\">\r\n <ng-content select=\"[card-body]\"></ng-content>\r\n </div>\r\n <ng-content></ng-content>\r\n <div class=\"card-footer\" #footerRef *ngIf=\"showFooter\">\r\n <ng-content select=\"[card-footer]\"></ng-content>\r\n </div>\r\n</div>", styles: [":host{display:block}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
3818
3858
|
}
|
|
3819
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3859
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekCard, decorators: [{
|
|
3820
3860
|
type: Component,
|
|
3821
3861
|
args: [{ standalone: true, selector: 'zek-card', imports: [CommonModule], template: "<div class=\"card {{css}}\">\r\n <div class=\"card-header\" #headerRef *ngIf=\"showHeader\">\r\n <ng-content select=\"[card-header]\"></ng-content>\r\n </div>\r\n <div class=\"card-body\" #bodyRef *ngIf=\"showBody\">\r\n <ng-content select=\"[card-body]\"></ng-content>\r\n </div>\r\n <ng-content></ng-content>\r\n <div class=\"card-footer\" #footerRef *ngIf=\"showFooter\">\r\n <ng-content select=\"[card-footer]\"></ng-content>\r\n </div>\r\n</div>", styles: [":host{display:block}\n"] }]
|
|
3822
3862
|
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }], propDecorators: { headerWrapper: [{
|
|
@@ -3833,25 +3873,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
3833
3873
|
}] } });
|
|
3834
3874
|
|
|
3835
3875
|
class ZekCountdown extends CoreComponent {
|
|
3836
|
-
constructor() {
|
|
3837
|
-
super(...arguments);
|
|
3838
|
-
this.left = {
|
|
3839
|
-
days: 0,
|
|
3840
|
-
hours: 0,
|
|
3841
|
-
hh: '00',
|
|
3842
|
-
minutes: 0,
|
|
3843
|
-
mm: '00',
|
|
3844
|
-
seconds: 0,
|
|
3845
|
-
ss: '00'
|
|
3846
|
-
};
|
|
3847
|
-
this.date = new Date();
|
|
3848
|
-
this._targetDate = null;
|
|
3849
|
-
this._targetTime = null;
|
|
3850
|
-
}
|
|
3851
3876
|
destroy() {
|
|
3852
3877
|
stop();
|
|
3853
3878
|
return super.destroy();
|
|
3854
3879
|
}
|
|
3880
|
+
left = {
|
|
3881
|
+
days: 0,
|
|
3882
|
+
hours: 0,
|
|
3883
|
+
hh: '00',
|
|
3884
|
+
minutes: 0,
|
|
3885
|
+
mm: '00',
|
|
3886
|
+
seconds: 0,
|
|
3887
|
+
ss: '00'
|
|
3888
|
+
};
|
|
3889
|
+
date = new Date();
|
|
3890
|
+
_interval$;
|
|
3891
|
+
_subscription;
|
|
3855
3892
|
// private _onTickSubject?: Subject<void>;
|
|
3856
3893
|
// private _onTickObservable?: Observable<void>;
|
|
3857
3894
|
// get onRefreshToken(): Observable<void> {
|
|
@@ -3867,6 +3904,8 @@ class ZekCountdown extends CoreComponent {
|
|
|
3867
3904
|
this.start();
|
|
3868
3905
|
this.tick();
|
|
3869
3906
|
}
|
|
3907
|
+
_targetDate = null;
|
|
3908
|
+
_targetTime = null;
|
|
3870
3909
|
get targetDate() {
|
|
3871
3910
|
return this._targetDate;
|
|
3872
3911
|
}
|
|
@@ -3920,10 +3959,10 @@ class ZekCountdown extends CoreComponent {
|
|
|
3920
3959
|
this.left.seconds = 60 - this.date.getSeconds();
|
|
3921
3960
|
this.left.ss = (this.left.seconds < 10 ? '0' : '') + this.left.seconds;
|
|
3922
3961
|
}
|
|
3923
|
-
static
|
|
3924
|
-
static
|
|
3962
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekCountdown, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
3963
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.6", type: ZekCountdown, isStandalone: true, selector: "zek-countdown", inputs: { targetDate: "targetDate" }, usesInheritance: true, ngImport: i0, template: "{{left.days}}d - {{left.hh}}h - {{left.mm}}m - {{left.ss}}s" });
|
|
3925
3964
|
}
|
|
3926
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3965
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekCountdown, decorators: [{
|
|
3927
3966
|
type: Component,
|
|
3928
3967
|
args: [{ standalone: true, imports: [], selector: 'zek-countdown', template: "{{left.days}}d - {{left.hh}}h - {{left.mm}}m - {{left.ss}}s" }]
|
|
3929
3968
|
}], propDecorators: { targetDate: [{
|
|
@@ -3960,10 +3999,10 @@ class ZekDateAgoPipe {
|
|
|
3960
3999
|
}
|
|
3961
4000
|
return date;
|
|
3962
4001
|
}
|
|
3963
|
-
static
|
|
3964
|
-
static
|
|
4002
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekDateAgoPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
4003
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.0.6", ngImport: i0, type: ZekDateAgoPipe, isStandalone: true, name: "dateAgo" });
|
|
3965
4004
|
}
|
|
3966
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4005
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekDateAgoPipe, decorators: [{
|
|
3967
4006
|
type: Pipe,
|
|
3968
4007
|
args: [{
|
|
3969
4008
|
standalone: true,
|
|
@@ -3978,21 +4017,12 @@ const DATE_VALUE_ACCESSOR = {
|
|
|
3978
4017
|
multi: true,
|
|
3979
4018
|
};
|
|
3980
4019
|
class DateValueAccessor {
|
|
4020
|
+
el;
|
|
4021
|
+
//@Input() ngModel: any;
|
|
4022
|
+
datepicker;
|
|
4023
|
+
oldValue = null;
|
|
3981
4024
|
constructor(el, format, language, env) {
|
|
3982
4025
|
this.el = el;
|
|
3983
|
-
this.oldValue = null;
|
|
3984
|
-
/*writeValue(date: Date) {
|
|
3985
|
-
// Create UTC Date, time is set to 00:00 in UTC time
|
|
3986
|
-
const utcDate: Date | null = date
|
|
3987
|
-
? new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate()))
|
|
3988
|
-
: null;
|
|
3989
|
-
this.renderer.setProperty(this.elementRef.nativeElement, 'valueAsDate', utcDate);
|
|
3990
|
-
}*/
|
|
3991
|
-
//@HostListener('input', ['$event.target.valueAsDate']) onChange = (_: any) => { };
|
|
3992
|
-
//@HostListener('input', [])
|
|
3993
|
-
this.onChange = () => { };
|
|
3994
|
-
//@HostListener('blur', [])
|
|
3995
|
-
this.onTouched = () => { };
|
|
3996
4026
|
if (env) {
|
|
3997
4027
|
if (env.datepickerFormat) {
|
|
3998
4028
|
format = env.datepickerFormat;
|
|
@@ -4125,18 +4155,31 @@ class DateValueAccessor {
|
|
|
4125
4155
|
// this.datepicker.setDate(date);
|
|
4126
4156
|
// }
|
|
4127
4157
|
}
|
|
4158
|
+
/*writeValue(date: Date) {
|
|
4159
|
+
// Create UTC Date, time is set to 00:00 in UTC time
|
|
4160
|
+
const utcDate: Date | null = date
|
|
4161
|
+
? new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate()))
|
|
4162
|
+
: null;
|
|
4163
|
+
this.renderer.setProperty(this.elementRef.nativeElement, 'valueAsDate', utcDate);
|
|
4164
|
+
}*/
|
|
4165
|
+
//@HostListener('input', ['$event.target.valueAsDate']) onChange = (_: any) => { };
|
|
4166
|
+
//@HostListener('input', [])
|
|
4167
|
+
onChange = () => { };
|
|
4128
4168
|
registerOnChange(fn) {
|
|
4129
4169
|
this.onChange = fn;
|
|
4130
4170
|
}
|
|
4171
|
+
//@HostListener('blur', [])
|
|
4172
|
+
onTouched = () => { };
|
|
4131
4173
|
registerOnTouched(fn) {
|
|
4132
4174
|
this.onTouched = fn;
|
|
4133
4175
|
}
|
|
4134
|
-
static
|
|
4135
|
-
static
|
|
4176
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: DateValueAccessor, deps: [{ token: i0.ElementRef }, { token: DATE_FORMAT }, { token: LANGUAGE }, { token: 'env' }], target: i0.ɵɵFactoryTarget.Directive });
|
|
4177
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.6", type: DateValueAccessor, isStandalone: false, selector: "[zek-date],input[type=date][formControlName],input[type=date][formControl],input[type=date][ngModel]", providers: [DATE_VALUE_ACCESSOR], ngImport: i0 });
|
|
4136
4178
|
}
|
|
4137
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4179
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: DateValueAccessor, decorators: [{
|
|
4138
4180
|
type: Directive,
|
|
4139
4181
|
args: [{
|
|
4182
|
+
standalone: false,
|
|
4140
4183
|
selector: '[zek-date],input[type=date][formControlName],input[type=date][formControl],input[type=date][ngModel]', //,input[type=date][ngModel]
|
|
4141
4184
|
providers: [DATE_VALUE_ACCESSOR],
|
|
4142
4185
|
host: {
|
|
@@ -4170,11 +4213,11 @@ class DatepickerModule {
|
|
|
4170
4213
|
static forChild(config, environment) {
|
|
4171
4214
|
return this.forRoot(config, environment);
|
|
4172
4215
|
}
|
|
4173
|
-
static
|
|
4174
|
-
static
|
|
4175
|
-
static
|
|
4216
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: DatepickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
4217
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.6", ngImport: i0, type: DatepickerModule, declarations: [DateValueAccessor], exports: [DateValueAccessor] });
|
|
4218
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: DatepickerModule });
|
|
4176
4219
|
}
|
|
4177
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4220
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: DatepickerModule, decorators: [{
|
|
4178
4221
|
type: NgModule,
|
|
4179
4222
|
args: [{
|
|
4180
4223
|
declarations: [DateValueAccessor],
|
|
@@ -4182,70 +4225,267 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
4182
4225
|
}]
|
|
4183
4226
|
}] });
|
|
4184
4227
|
|
|
4185
|
-
|
|
4186
|
-
|
|
4187
|
-
|
|
4188
|
-
|
|
4189
|
-
|
|
4190
|
-
|
|
4191
|
-
|
|
4192
|
-
|
|
4193
|
-
|
|
4194
|
-
|
|
4195
|
-
|
|
4196
|
-
|
|
4197
|
-
|
|
4198
|
-
|
|
4199
|
-
|
|
4200
|
-
|
|
4201
|
-
|
|
4202
|
-
|
|
4203
|
-
|
|
4204
|
-
|
|
4228
|
+
const ZEK_DROPDOWN_CONTROL_VALUE_ACCESSOR = {
|
|
4229
|
+
provide: NG_VALUE_ACCESSOR,
|
|
4230
|
+
useExisting: forwardRef(() => ZekDropdown),
|
|
4231
|
+
multi: true,
|
|
4232
|
+
};
|
|
4233
|
+
class ZekDropdown extends CoreUiComponent {
|
|
4234
|
+
constructor(renderer, elementRef) {
|
|
4235
|
+
super(renderer, elementRef);
|
|
4236
|
+
}
|
|
4237
|
+
_uniqueId = `zek-dropdown-${this.uniqueId}`;
|
|
4238
|
+
/** The unique ID for the radio button. */
|
|
4239
|
+
id = this._uniqueId;
|
|
4240
|
+
get inputId() {
|
|
4241
|
+
return `${this.id || this._uniqueId}-input`;
|
|
4242
|
+
}
|
|
4243
|
+
_multiple = false;
|
|
4244
|
+
get multiple() {
|
|
4245
|
+
return this._multiple;
|
|
4246
|
+
}
|
|
4247
|
+
set multiple(value) {
|
|
4248
|
+
this._multiple = Convert.toBooleanProperty(value);
|
|
4249
|
+
}
|
|
4250
|
+
valueField;
|
|
4251
|
+
textField;
|
|
4252
|
+
checkedTextField;
|
|
4253
|
+
css = 'primary';
|
|
4254
|
+
searchText = '';
|
|
4255
|
+
get label() {
|
|
4256
|
+
return this._label;
|
|
4257
|
+
}
|
|
4258
|
+
set label(value) {
|
|
4259
|
+
if (value)
|
|
4260
|
+
this._label = value;
|
|
4261
|
+
else
|
|
4262
|
+
this._label = '';
|
|
4263
|
+
}
|
|
4264
|
+
_label = '';
|
|
4265
|
+
_data = [];
|
|
4266
|
+
get data() {
|
|
4267
|
+
return this._data;
|
|
4268
|
+
}
|
|
4269
|
+
set data(value) {
|
|
4270
|
+
if (this._data !== value) {
|
|
4271
|
+
this._data = value ? value : [];
|
|
4272
|
+
this._onDataChanged();
|
|
4273
|
+
}
|
|
4274
|
+
}
|
|
4275
|
+
_onDataChanged() {
|
|
4276
|
+
this._normalizeData();
|
|
4277
|
+
this._filterData();
|
|
4278
|
+
}
|
|
4279
|
+
normalizedItems = [];
|
|
4280
|
+
filteredItems = [];
|
|
4281
|
+
selectedItems = [];
|
|
4282
|
+
selectedItemsText = '';
|
|
4283
|
+
onTextChange() {
|
|
4284
|
+
this._filterData();
|
|
4285
|
+
}
|
|
4286
|
+
_filterData() {
|
|
4287
|
+
if (this.searchText) {
|
|
4288
|
+
const normalized = StringHelper.trimStart(this.searchText.toUpperCase(), ' ');
|
|
4289
|
+
this.filteredItems = this.normalizedItems.filter(item => item.normalized.indexOf(normalized) !== -1);
|
|
4290
|
+
}
|
|
4291
|
+
else {
|
|
4292
|
+
this.filteredItems = this.normalizedItems;
|
|
4293
|
+
}
|
|
4294
|
+
}
|
|
4295
|
+
_normalizeData() {
|
|
4296
|
+
this.normalizedItems = [];
|
|
4297
|
+
if (this.valueField && this.textField) {
|
|
4298
|
+
for (const item of this._data) {
|
|
4299
|
+
this.normalizedItems.push({
|
|
4300
|
+
key: item[this.valueField],
|
|
4301
|
+
value: item[this.textField],
|
|
4302
|
+
normalized: (item[this.textField] || '').toUpperCase(),
|
|
4303
|
+
checked: this.selectedItems.includes(item),
|
|
4304
|
+
item: item
|
|
4305
|
+
});
|
|
4306
|
+
}
|
|
4307
|
+
}
|
|
4308
|
+
else {
|
|
4309
|
+
for (const item of this._data) {
|
|
4310
|
+
this.normalizedItems.push({ key: item, value: item, checked: this.selectedItems.includes(item), item });
|
|
4311
|
+
}
|
|
4312
|
+
}
|
|
4313
|
+
}
|
|
4314
|
+
checkAll(checked, ngModelChange = true) {
|
|
4315
|
+
if (this.disabled || this.readonly)
|
|
4316
|
+
return;
|
|
4317
|
+
for (const item of this.normalizedItems) {
|
|
4318
|
+
item.checked = checked;
|
|
4319
|
+
}
|
|
4320
|
+
this.selectedItems = [];
|
|
4321
|
+
if (checked) {
|
|
4322
|
+
if (this.multiple) {
|
|
4323
|
+
const tmp = [];
|
|
4324
|
+
for (const normalized of this.normalizedItems) {
|
|
4325
|
+
this.selectedItems.push(normalized.item);
|
|
4326
|
+
tmp.push(normalized.key);
|
|
4327
|
+
}
|
|
4328
|
+
if (ngModelChange)
|
|
4329
|
+
this.setNgModel(tmp);
|
|
4330
|
+
}
|
|
4331
|
+
}
|
|
4332
|
+
else if (ngModelChange)
|
|
4333
|
+
this.setNgModel(null);
|
|
4334
|
+
}
|
|
4335
|
+
toggleChecked(normalized) {
|
|
4336
|
+
if (!normalized || this.disabled || this.readonly)
|
|
4337
|
+
return;
|
|
4338
|
+
const checked = normalized.checked || false;
|
|
4339
|
+
if (!this.multiple) {
|
|
4340
|
+
for (const item of this.normalizedItems) {
|
|
4341
|
+
item.checked = false;
|
|
4342
|
+
}
|
|
4343
|
+
}
|
|
4344
|
+
//on check item
|
|
4345
|
+
if (!checked) {
|
|
4346
|
+
normalized.checked = true;
|
|
4347
|
+
if (this.multiple) {
|
|
4348
|
+
if (!this.selectedItems.includes(normalized.item)) {
|
|
4349
|
+
this.selectedItems.push(normalized.item);
|
|
4350
|
+
}
|
|
4351
|
+
//todo optimize
|
|
4352
|
+
const tmp = [];
|
|
4353
|
+
for (const item of this.normalizedItems) {
|
|
4354
|
+
if (item.checked) {
|
|
4355
|
+
tmp.push(item.key);
|
|
4356
|
+
}
|
|
4357
|
+
}
|
|
4358
|
+
this.setNgModel(tmp);
|
|
4359
|
+
}
|
|
4360
|
+
else {
|
|
4361
|
+
this.selectedItems = [normalized.item];
|
|
4362
|
+
this.setNgModel(normalized.key);
|
|
4363
|
+
}
|
|
4364
|
+
}
|
|
4365
|
+
else {
|
|
4366
|
+
//on uncheck
|
|
4367
|
+
normalized.checked = false;
|
|
4368
|
+
if (this.multiple) {
|
|
4369
|
+
const index = this.selectedItems.indexOf(normalized.item);
|
|
4370
|
+
if (index !== -1) {
|
|
4371
|
+
this.selectedItems.splice(index, 1);
|
|
4372
|
+
}
|
|
4373
|
+
//todo optimize
|
|
4374
|
+
const tmp = [];
|
|
4375
|
+
for (const item of this.normalizedItems) {
|
|
4376
|
+
if (item.checked) {
|
|
4377
|
+
tmp.push(item.key);
|
|
4378
|
+
}
|
|
4379
|
+
}
|
|
4380
|
+
this.setNgModel(tmp);
|
|
4381
|
+
}
|
|
4382
|
+
else {
|
|
4383
|
+
this.selectedItems = [];
|
|
4384
|
+
this.setNgModel(null);
|
|
4385
|
+
}
|
|
4386
|
+
}
|
|
4387
|
+
this._initText();
|
|
4205
4388
|
}
|
|
4389
|
+
_initText() {
|
|
4390
|
+
const field = this.checkedTextField || this.textField || '';
|
|
4391
|
+
if (field) {
|
|
4392
|
+
this.selectedItemsText = this.selectedItems.map(x => x[field]).join(', ');
|
|
4393
|
+
}
|
|
4394
|
+
else {
|
|
4395
|
+
this.selectedItemsText = this.selectedItems.join(', ');
|
|
4396
|
+
}
|
|
4397
|
+
}
|
|
4398
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekDropdown, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
4399
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.6", type: ZekDropdown, isStandalone: true, selector: "zek-dropdown,[zek-dropdown]", inputs: { id: "id", multiple: "multiple", valueField: "valueField", textField: "textField", checkedTextField: "checkedTextField", css: "css", label: "label", data: "data" }, host: { properties: { "attr.id": "id" } }, providers: [ZEK_DROPDOWN_CONTROL_VALUE_ACCESSOR], usesInheritance: true, ngImport: i0, template: "<div class=\"btn-group\" id=\"dropdown-{{id}}\">\r\n <button class=\"btn btn-{{css}} dropdown-toggle\" type=\"button\" data-bs-toggle=\"dropdown\" data-bs-auto-close=\"outside\" aria-expanded=\"false\">\r\n <!-- <ng-container *ngIf=\"!_text\">{{placeholder}}</ng-container> {{_text}} -->\r\n {{label}}\r\n </button>\r\n <ul class=\"dropdown-menu dropdown-menu-scrollable\">\r\n <li class=\"px-2 py-1\">\r\n <input type=\"text\" class=\"form-control\"\r\n [id]=\"inputId\"\r\n [name]=\"inputId\"\r\n [(ngModel)]=\"searchText\"\r\n (ngModelChange)=\"onTextChange()\">\r\n </li>\r\n <ng-container *ngIf=\"normalizedItems\">\r\n <li>\r\n <a class=\"dropdown-item\" href=\"javascript:void(0)\" *ngFor=\"let item of filteredItems\" (click)=\"toggleChecked(item)\">\r\n <span *ngIf=\"item.checked\"><i class=\"fa-regular fa-square-check\"></i></span>\r\n <span *ngIf=\"!item.checked\"><i class=\"fa-regular fa-square\"></i></span>\r\n {{item.value}}\r\n </a>\r\n </li>\r\n </ng-container>\r\n </ul>\r\n</div>", styles: [":host{display:inline-block}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }] });
|
|
4400
|
+
}
|
|
4401
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekDropdown, decorators: [{
|
|
4402
|
+
type: Component,
|
|
4403
|
+
args: [{ standalone: true, selector: 'zek-dropdown,[zek-dropdown]', providers: [ZEK_DROPDOWN_CONTROL_VALUE_ACCESSOR], host: {
|
|
4404
|
+
'[attr.id]': 'id',
|
|
4405
|
+
}, imports: [
|
|
4406
|
+
CommonModule,
|
|
4407
|
+
FormsModule
|
|
4408
|
+
], template: "<div class=\"btn-group\" id=\"dropdown-{{id}}\">\r\n <button class=\"btn btn-{{css}} dropdown-toggle\" type=\"button\" data-bs-toggle=\"dropdown\" data-bs-auto-close=\"outside\" aria-expanded=\"false\">\r\n <!-- <ng-container *ngIf=\"!_text\">{{placeholder}}</ng-container> {{_text}} -->\r\n {{label}}\r\n </button>\r\n <ul class=\"dropdown-menu dropdown-menu-scrollable\">\r\n <li class=\"px-2 py-1\">\r\n <input type=\"text\" class=\"form-control\"\r\n [id]=\"inputId\"\r\n [name]=\"inputId\"\r\n [(ngModel)]=\"searchText\"\r\n (ngModelChange)=\"onTextChange()\">\r\n </li>\r\n <ng-container *ngIf=\"normalizedItems\">\r\n <li>\r\n <a class=\"dropdown-item\" href=\"javascript:void(0)\" *ngFor=\"let item of filteredItems\" (click)=\"toggleChecked(item)\">\r\n <span *ngIf=\"item.checked\"><i class=\"fa-regular fa-square-check\"></i></span>\r\n <span *ngIf=\"!item.checked\"><i class=\"fa-regular fa-square\"></i></span>\r\n {{item.value}}\r\n </a>\r\n </li>\r\n </ng-container>\r\n </ul>\r\n</div>", styles: [":host{display:inline-block}\n"] }]
|
|
4409
|
+
}], ctorParameters: () => [{ type: i0.Renderer2 }, { type: i0.ElementRef }], propDecorators: { id: [{
|
|
4410
|
+
type: Input
|
|
4411
|
+
}], multiple: [{
|
|
4412
|
+
type: Input
|
|
4413
|
+
}], valueField: [{
|
|
4414
|
+
type: Input
|
|
4415
|
+
}], textField: [{
|
|
4416
|
+
type: Input
|
|
4417
|
+
}], checkedTextField: [{
|
|
4418
|
+
type: Input
|
|
4419
|
+
}], css: [{
|
|
4420
|
+
type: Input
|
|
4421
|
+
}], label: [{
|
|
4422
|
+
type: Input
|
|
4423
|
+
}], data: [{
|
|
4424
|
+
type: Input
|
|
4425
|
+
}] } });
|
|
4426
|
+
|
|
4427
|
+
class ZekEditToolbar {
|
|
4428
|
+
_showSave = true;
|
|
4206
4429
|
get showSave() {
|
|
4207
4430
|
return this._showSave;
|
|
4208
4431
|
}
|
|
4209
4432
|
set showSave(v) {
|
|
4210
4433
|
this._showSave = Convert.toBooleanProperty(v);
|
|
4211
4434
|
}
|
|
4435
|
+
_showCancel = true;
|
|
4212
4436
|
get showCancel() {
|
|
4213
4437
|
return this._showCancel;
|
|
4214
4438
|
}
|
|
4215
4439
|
set showCancel(v) {
|
|
4216
4440
|
this._showCancel = Convert.toBooleanProperty(v);
|
|
4217
4441
|
}
|
|
4442
|
+
PrintType = PrintType;
|
|
4443
|
+
_showExport = false;
|
|
4218
4444
|
get showExport() {
|
|
4219
4445
|
return this._showExport;
|
|
4220
4446
|
}
|
|
4221
4447
|
set showExport(v) {
|
|
4222
4448
|
this._showExport = Convert.toBooleanProperty(v);
|
|
4223
4449
|
}
|
|
4450
|
+
_showPrint = false;
|
|
4224
4451
|
get showPrint() {
|
|
4225
4452
|
return this._showPrint;
|
|
4226
4453
|
}
|
|
4227
4454
|
set showPrint(v) {
|
|
4228
4455
|
this._showPrint = Convert.toBooleanProperty(v);
|
|
4229
4456
|
}
|
|
4457
|
+
_readOnly = false;
|
|
4230
4458
|
get readOnly() {
|
|
4231
4459
|
return this._readOnly;
|
|
4232
4460
|
}
|
|
4233
4461
|
set readOnly(v) {
|
|
4234
4462
|
this._readOnly = Convert.toBooleanProperty(v);
|
|
4235
4463
|
}
|
|
4464
|
+
onSave = new EventEmitter();
|
|
4465
|
+
// save(navigateToReturnUrl: boolean) {
|
|
4466
|
+
// this.onSave.emit(navigateToReturnUrl);
|
|
4467
|
+
// }
|
|
4468
|
+
onCancel = new EventEmitter();
|
|
4236
4469
|
cancel() {
|
|
4237
4470
|
this.onCancel.emit();
|
|
4238
4471
|
}
|
|
4472
|
+
// @Output()
|
|
4473
|
+
// onReset = new EventEmitter();
|
|
4474
|
+
// reset() {
|
|
4475
|
+
// this.onReset.emit();
|
|
4476
|
+
// }
|
|
4477
|
+
onPrint = new EventEmitter();
|
|
4239
4478
|
print(printType) {
|
|
4240
4479
|
this.onPrint.emit(printType);
|
|
4241
4480
|
}
|
|
4481
|
+
onExport = new EventEmitter();
|
|
4242
4482
|
exportExcel() {
|
|
4243
4483
|
this.onExport.emit(1);
|
|
4244
4484
|
}
|
|
4245
|
-
static
|
|
4246
|
-
static
|
|
4485
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekEditToolbar, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
4486
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.6", type: ZekEditToolbar, isStandalone: true, selector: "zek-edit-toolbar", inputs: { showSave: "showSave", showCancel: "showCancel", showExport: "showExport", showPrint: "showPrint", readOnly: "readOnly" }, outputs: { onSave: "onSave", onCancel: "onCancel", onPrint: "onPrint", onExport: "onExport" }, ngImport: i0, template: "<div class=\"btn-toolbar\" role=\"toolbar\" aria-label=\"Action toolbar\">\r\n <ng-content select=\"[left]\"></ng-content>\r\n <div *ngIf=\"showSave\" class=\"btn-group me-2\" role=\"group\" aria-label=\"Save group\">\r\n <button type=\"submit\" class=\"btn btn-primary\" [disabled]=\"readOnly\"><i class=\"fa-solid fa-floppy-disk\"></i> {{ 'Action.Save' | translate }}</button>\r\n </div>\r\n <div *ngIf=\"showCancel\" class=\"btn-group me-2\" role=\"group\" aria-label=\"Cancel group\">\r\n <button type=\"button\" class=\"btn btn-secondary\" (click)=\"cancel()\"><i class=\"fa-solid fa-ban\"></i> {{ 'Action.Close' | translate }}</button>\r\n </div>\r\n <div *ngIf=\"showPrint\" class=\"btn-group me-2\" role=\"group\" aria-label=\"Print group\">\r\n <button type=\"button\" class=\"btn btn-secondary\" (click)=\"print(PrintType.Pdf)\"><i class=\"fa-solid fa-print\"></i> {{ 'Action.Print' | translate }}</button>\r\n <div class=\"btn-group\" role=\"group\">\r\n <button type=\"button\" class=\"btn btn-secondary dropdown-toggle\" data-bs-toggle=\"dropdown\" aria-expanded=\"false\">\r\n <!-- dropdown-toggle-split -->\r\n <span class=\"visually-hidden\">Toggle Dropend</span>\r\n </button>\r\n <ul class=\"dropdown-menu\">\r\n <li><button type=\"button\" class=\"dropdown-item\" (click)=\"print(PrintType.Show)\"><i class=\"fa-solid fa-print\"></i> {{ 'Action.Print' | translate }}</button></li>\r\n <li><button type=\"button\" class=\"dropdown-item\" (click)=\"print(PrintType.Pdf)\"><i class=\"fa-solid fa-file-pdf\"></i> {{ 'Action.Print' | translate }} PDF</button></li>\r\n <ng-content select=\"[print]\"></ng-content>\r\n </ul>\r\n </div>\r\n </div>\r\n <div *ngIf=\"showExport\" class=\"btn-group\" role=\"group\" aria-label=\"Filter / Export group\">\r\n <div class=\"btn-group\" role=\"group\">\r\n <button id=\"btnGroupExport\" type=\"button\" class=\"btn btn-secondary dropdown-toggle\" data-bs-toggle=\"dropdown\" aria-expanded=\"false\"><i class=\"fa-solid fa-download\"></i> {{ 'Action.Export' | translate }}</button>\r\n <ul class=\"dropdown-menu\" aria-labelledby=\"btnGroupExport\">\r\n <li><a class=\"dropdown-item\" href=\"javascript:void(0)\" (click)=\"exportExcel()\"><i class=\"fa-solid fa-file-excel\"></i> Excel</a></li>\r\n <ng-content select=\"[export]\"></ng-content>\r\n </ul>\r\n </div>\r\n </div>\r\n <ng-content></ng-content>\r\n</div>", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }] });
|
|
4247
4487
|
}
|
|
4248
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4488
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekEditToolbar, decorators: [{
|
|
4249
4489
|
type: Component,
|
|
4250
4490
|
args: [{ standalone: true, selector: 'zek-edit-toolbar', imports: [CommonModule, TranslateModule], template: "<div class=\"btn-toolbar\" role=\"toolbar\" aria-label=\"Action toolbar\">\r\n <ng-content select=\"[left]\"></ng-content>\r\n <div *ngIf=\"showSave\" class=\"btn-group me-2\" role=\"group\" aria-label=\"Save group\">\r\n <button type=\"submit\" class=\"btn btn-primary\" [disabled]=\"readOnly\"><i class=\"fa-solid fa-floppy-disk\"></i> {{ 'Action.Save' | translate }}</button>\r\n </div>\r\n <div *ngIf=\"showCancel\" class=\"btn-group me-2\" role=\"group\" aria-label=\"Cancel group\">\r\n <button type=\"button\" class=\"btn btn-secondary\" (click)=\"cancel()\"><i class=\"fa-solid fa-ban\"></i> {{ 'Action.Close' | translate }}</button>\r\n </div>\r\n <div *ngIf=\"showPrint\" class=\"btn-group me-2\" role=\"group\" aria-label=\"Print group\">\r\n <button type=\"button\" class=\"btn btn-secondary\" (click)=\"print(PrintType.Pdf)\"><i class=\"fa-solid fa-print\"></i> {{ 'Action.Print' | translate }}</button>\r\n <div class=\"btn-group\" role=\"group\">\r\n <button type=\"button\" class=\"btn btn-secondary dropdown-toggle\" data-bs-toggle=\"dropdown\" aria-expanded=\"false\">\r\n <!-- dropdown-toggle-split -->\r\n <span class=\"visually-hidden\">Toggle Dropend</span>\r\n </button>\r\n <ul class=\"dropdown-menu\">\r\n <li><button type=\"button\" class=\"dropdown-item\" (click)=\"print(PrintType.Show)\"><i class=\"fa-solid fa-print\"></i> {{ 'Action.Print' | translate }}</button></li>\r\n <li><button type=\"button\" class=\"dropdown-item\" (click)=\"print(PrintType.Pdf)\"><i class=\"fa-solid fa-file-pdf\"></i> {{ 'Action.Print' | translate }} PDF</button></li>\r\n <ng-content select=\"[print]\"></ng-content>\r\n </ul>\r\n </div>\r\n </div>\r\n <div *ngIf=\"showExport\" class=\"btn-group\" role=\"group\" aria-label=\"Filter / Export group\">\r\n <div class=\"btn-group\" role=\"group\">\r\n <button id=\"btnGroupExport\" type=\"button\" class=\"btn btn-secondary dropdown-toggle\" data-bs-toggle=\"dropdown\" aria-expanded=\"false\"><i class=\"fa-solid fa-download\"></i> {{ 'Action.Export' | translate }}</button>\r\n <ul class=\"dropdown-menu\" aria-labelledby=\"btnGroupExport\">\r\n <li><a class=\"dropdown-item\" href=\"javascript:void(0)\" (click)=\"exportExcel()\"><i class=\"fa-solid fa-file-excel\"></i> Excel</a></li>\r\n <ng-content select=\"[export]\"></ng-content>\r\n </ul>\r\n </div>\r\n </div>\r\n <ng-content></ng-content>\r\n</div>" }]
|
|
4251
4491
|
}], propDecorators: { showSave: [{
|
|
@@ -4278,19 +4518,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
4278
4518
|
* formats to: 1 KB
|
|
4279
4519
|
*/
|
|
4280
4520
|
class ZekFileSizePipe {
|
|
4281
|
-
|
|
4282
|
-
|
|
4283
|
-
|
|
4284
|
-
|
|
4285
|
-
|
|
4286
|
-
|
|
4287
|
-
|
|
4288
|
-
|
|
4289
|
-
|
|
4290
|
-
|
|
4291
|
-
|
|
4292
|
-
];
|
|
4293
|
-
}
|
|
4521
|
+
units = [
|
|
4522
|
+
'bytes',
|
|
4523
|
+
'kB',
|
|
4524
|
+
'MB',
|
|
4525
|
+
'GB',
|
|
4526
|
+
'TB',
|
|
4527
|
+
'PB',
|
|
4528
|
+
'EB',
|
|
4529
|
+
'ZB',
|
|
4530
|
+
'YB'
|
|
4531
|
+
];
|
|
4294
4532
|
transform(bytes = 0, precision = 0) {
|
|
4295
4533
|
if (typeof bytes === 'undefined' || bytes == null)
|
|
4296
4534
|
bytes = 0;
|
|
@@ -4305,10 +4543,10 @@ class ZekFileSizePipe {
|
|
|
4305
4543
|
}
|
|
4306
4544
|
return bytes.toFixed(+precision) + ' ' + this.units[unit];
|
|
4307
4545
|
}
|
|
4308
|
-
static
|
|
4309
|
-
static
|
|
4546
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekFileSizePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
4547
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.0.6", ngImport: i0, type: ZekFileSizePipe, isStandalone: true, name: "fileSize" });
|
|
4310
4548
|
}
|
|
4311
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4549
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekFileSizePipe, decorators: [{
|
|
4312
4550
|
type: Pipe,
|
|
4313
4551
|
args: [{
|
|
4314
4552
|
standalone: true,
|
|
@@ -4317,20 +4555,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
4317
4555
|
}] });
|
|
4318
4556
|
|
|
4319
4557
|
class ZekFileInput extends CoreUiComponent {
|
|
4320
|
-
|
|
4321
|
-
|
|
4322
|
-
|
|
4323
|
-
|
|
4324
|
-
|
|
4325
|
-
|
|
4326
|
-
/** The unique ID for the tag. */
|
|
4327
|
-
this.id = this._uniqueId;
|
|
4328
|
-
this._accept = '*';
|
|
4329
|
-
this._multiple = false;
|
|
4330
|
-
}
|
|
4558
|
+
// @Input() model!: string[] | null;
|
|
4559
|
+
onUpload = new EventEmitter();
|
|
4560
|
+
fileService = inject(FileService);
|
|
4561
|
+
_uniqueId = `zek-file-input-${this.uniqueId}`;
|
|
4562
|
+
/** The unique ID for the tag. */
|
|
4563
|
+
id = this._uniqueId;
|
|
4331
4564
|
get inputId() {
|
|
4332
4565
|
return `${this.id || this._uniqueId}-input`;
|
|
4333
4566
|
}
|
|
4567
|
+
_accept = '*';
|
|
4334
4568
|
get accept() {
|
|
4335
4569
|
return this._accept;
|
|
4336
4570
|
}
|
|
@@ -4340,6 +4574,7 @@ class ZekFileInput extends CoreUiComponent {
|
|
|
4340
4574
|
else
|
|
4341
4575
|
this._accept = v;
|
|
4342
4576
|
}
|
|
4577
|
+
_multiple = false;
|
|
4343
4578
|
get multiple() {
|
|
4344
4579
|
return this._multiple;
|
|
4345
4580
|
}
|
|
@@ -4370,10 +4605,10 @@ class ZekFileInput extends CoreUiComponent {
|
|
|
4370
4605
|
}
|
|
4371
4606
|
});
|
|
4372
4607
|
}
|
|
4373
|
-
static
|
|
4374
|
-
static
|
|
4608
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekFileInput, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
4609
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.6", type: ZekFileInput, isStandalone: true, selector: "zek-file-input", inputs: { id: "id", accept: "accept", multiple: "multiple" }, outputs: { onUpload: "onUpload" }, host: { properties: { "attr.id": "id" } }, providers: [FileService], usesInheritance: true, ngImport: i0, template: "<input type=\"file\" class=\"form-control\"\r\n name=\"{{inputId}}\"\r\n id=\"{{inputId}}\"\r\n [multiple]=\"multiple\" [accept]=\"accept\" [required]=\"required\" [disabled]=\"readonly\"\r\n #fileInput\r\n (change)=\"onFileInputChange($event)\" />", styles: [":host input[type=file]{display:none}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }] });
|
|
4375
4610
|
}
|
|
4376
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4611
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekFileInput, decorators: [{
|
|
4377
4612
|
type: Component,
|
|
4378
4613
|
args: [{ standalone: true, imports: [CommonModule, FormsModule], selector: 'zek-file-input', providers: [FileService], host: {
|
|
4379
4614
|
'[attr.id]': 'id',
|
|
@@ -4389,33 +4624,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
4389
4624
|
}] } });
|
|
4390
4625
|
|
|
4391
4626
|
class ZekModal extends CoreComponent {
|
|
4392
|
-
|
|
4393
|
-
super(...arguments);
|
|
4394
|
-
this.translate = inject(TranslateService);
|
|
4395
|
-
this._uniqueId = `zek-modal-${this.uniqueId}`;
|
|
4396
|
-
/** The unique ID for the radio button. */
|
|
4397
|
-
this.id = this._uniqueId;
|
|
4398
|
-
this.modalId = `${this.id}-modal`;
|
|
4399
|
-
this.lableId = `${this.id}-lable`;
|
|
4400
|
-
this.cancelButtonId = `${this.id}-cancel-button`;
|
|
4401
|
-
this.okButtonId = `${this.id}-ok-button`;
|
|
4402
|
-
this.elementId = RandomHelper.randomHex();
|
|
4403
|
-
this._showOk = true;
|
|
4404
|
-
this._disabledOk = false;
|
|
4405
|
-
this._showCancel = true;
|
|
4406
|
-
this._autoHide = true;
|
|
4407
|
-
this.onShown = new EventEmitter();
|
|
4408
|
-
this.onHidden = new EventEmitter();
|
|
4409
|
-
this.onOk = new EventEmitter();
|
|
4410
|
-
this.onCancel = new EventEmitter();
|
|
4411
|
-
this.componentType = ComponentType.Primary;
|
|
4412
|
-
this._size = '';
|
|
4413
|
-
this._scrollable = false;
|
|
4414
|
-
this._fullscreen = false;
|
|
4415
|
-
this._showHeader = true;
|
|
4416
|
-
this._showFooter = true;
|
|
4417
|
-
this.onValidating = new EventEmitter(false);
|
|
4418
|
-
}
|
|
4627
|
+
translate = inject(TranslateService);
|
|
4419
4628
|
async destroy() {
|
|
4420
4629
|
await super.destroy();
|
|
4421
4630
|
this._modal?.dispose();
|
|
@@ -4446,30 +4655,55 @@ class ZekModal extends CoreComponent {
|
|
|
4446
4655
|
}
|
|
4447
4656
|
}, 1);
|
|
4448
4657
|
}
|
|
4658
|
+
_uniqueId = `zek-modal-${this.uniqueId}`;
|
|
4659
|
+
/** The unique ID for the radio button. */
|
|
4660
|
+
id = this._uniqueId;
|
|
4661
|
+
modalId = `${this.id}-modal`;
|
|
4662
|
+
lableId = `${this.id}-lable`;
|
|
4663
|
+
cancelButtonId = `${this.id}-cancel-button`;
|
|
4664
|
+
okButtonId = `${this.id}-ok-button`;
|
|
4665
|
+
shownHandler;
|
|
4666
|
+
hiddenHandler;
|
|
4667
|
+
model;
|
|
4668
|
+
elementId = RandomHelper.randomHex();
|
|
4669
|
+
_showOk = true;
|
|
4449
4670
|
get showOk() {
|
|
4450
4671
|
return this._showOk;
|
|
4451
4672
|
}
|
|
4452
4673
|
set showOk(v) {
|
|
4453
4674
|
this._showOk = Convert.toBooleanProperty(v);
|
|
4454
4675
|
}
|
|
4676
|
+
_disabledOk = false;
|
|
4455
4677
|
get disabledOk() {
|
|
4456
4678
|
return this._disabledOk;
|
|
4457
4679
|
}
|
|
4458
4680
|
set disabledOk(v) {
|
|
4459
4681
|
this._disabledOk = Convert.toBooleanProperty(v);
|
|
4460
4682
|
}
|
|
4683
|
+
_showCancel = true;
|
|
4461
4684
|
get showCancel() {
|
|
4462
4685
|
return this._showCancel;
|
|
4463
4686
|
}
|
|
4464
4687
|
set showCancel(v) {
|
|
4465
4688
|
this._showCancel = Convert.toBooleanProperty(v);
|
|
4466
4689
|
}
|
|
4690
|
+
_autoHide = true;
|
|
4467
4691
|
get autoHide() {
|
|
4468
4692
|
return this._autoHide;
|
|
4469
4693
|
}
|
|
4470
4694
|
set autoHide(v) {
|
|
4471
4695
|
this._autoHide = Convert.toBooleanProperty(v);
|
|
4472
4696
|
}
|
|
4697
|
+
title;
|
|
4698
|
+
text;
|
|
4699
|
+
icon;
|
|
4700
|
+
okButtonText;
|
|
4701
|
+
onShown = new EventEmitter();
|
|
4702
|
+
onHidden = new EventEmitter();
|
|
4703
|
+
onOk = new EventEmitter();
|
|
4704
|
+
onCancel = new EventEmitter();
|
|
4705
|
+
componentType = ComponentType.Primary;
|
|
4706
|
+
_size = '';
|
|
4473
4707
|
get size() {
|
|
4474
4708
|
return this._size;
|
|
4475
4709
|
}
|
|
@@ -4494,30 +4728,37 @@ class ZekModal extends CoreComponent {
|
|
|
4494
4728
|
set xl(v) {
|
|
4495
4729
|
this._size = Convert.toBooleanProperty(v) ? 'xl' : '';
|
|
4496
4730
|
}
|
|
4731
|
+
_scrollable = false;
|
|
4497
4732
|
get scrollable() {
|
|
4498
4733
|
return this._scrollable;
|
|
4499
4734
|
}
|
|
4500
4735
|
set scrollable(v) {
|
|
4501
4736
|
this._scrollable = Convert.toBooleanProperty(v);
|
|
4502
4737
|
}
|
|
4738
|
+
_fullscreen = false;
|
|
4503
4739
|
get fullscreen() {
|
|
4504
4740
|
return this._fullscreen;
|
|
4505
4741
|
}
|
|
4506
4742
|
set fullscreen(v) {
|
|
4507
4743
|
this._fullscreen = Convert.toBooleanProperty(v);
|
|
4508
4744
|
}
|
|
4745
|
+
_showHeader = true;
|
|
4509
4746
|
get showHeader() {
|
|
4510
4747
|
return this._showHeader;
|
|
4511
4748
|
}
|
|
4512
4749
|
set showHeader(v) {
|
|
4513
4750
|
this._showHeader = Convert.toBooleanProperty(v);
|
|
4514
4751
|
}
|
|
4752
|
+
_showFooter = true;
|
|
4515
4753
|
get showFooter() {
|
|
4516
4754
|
return this._showFooter;
|
|
4517
4755
|
}
|
|
4518
4756
|
set showFooter(v) {
|
|
4519
4757
|
this._showFooter = Convert.toBooleanProperty(v);
|
|
4520
4758
|
}
|
|
4759
|
+
onValidating = new EventEmitter(false);
|
|
4760
|
+
// @Input() xxl: boolean;
|
|
4761
|
+
_modal;
|
|
4521
4762
|
// public get modal(): any {
|
|
4522
4763
|
// if (!this._modal) {
|
|
4523
4764
|
// this.getModal();
|
|
@@ -4591,12 +4832,12 @@ class ZekModal extends CoreComponent {
|
|
|
4591
4832
|
e.preventDefault();
|
|
4592
4833
|
this.ok();
|
|
4593
4834
|
}
|
|
4594
|
-
static
|
|
4595
|
-
static
|
|
4835
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekModal, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
4836
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.6", type: ZekModal, isStandalone: false, selector: "zek-modal", inputs: { id: "id", model: "model", showOk: "showOk", disabledOk: "disabledOk", showCancel: "showCancel", autoHide: "autoHide", title: "title", text: "text", icon: "icon", okButtonText: "okButtonText", componentType: "componentType", size: "size", large: "large", xl: "xl", scrollable: "scrollable", fullscreen: "fullscreen", showHeader: "showHeader", showFooter: "showFooter" }, outputs: { onShown: "onShown", onHidden: "onHidden", onOk: "onOk", onCancel: "onCancel", onValidating: "onValidating" }, usesInheritance: true, ngImport: i0, template: "<div (keydown.enter)=\"keyDown($event)\" class=\"modal fade\" data-bs-backdrop=\"static\" id=\"{{modalId}}\" tabindex=\"-1\" attr.aria-labelledby=\"{{lableId}}\" aria-hidden=\"true\">\r\n <div class=\"modal-dialog\" [ngClass]=\"{\r\n 'modal-sm': size === 'sm',\r\n 'modal-lg': size === 'lg', \r\n 'modal-xl': size === 'xl'\r\n }\" [class.modal-dialog-scrollable]=\"scrollable\" [class.modal-fullscreen]=\"fullscreen\">\r\n <div class=\"modal-content\">\r\n <div class=\"modal-header\" *ngIf=\"showHeader\">\r\n <ng-content select=\"header\"></ng-content>\r\n <h5 class=\"modal-title\" id=\"{{lableId}}\">{{title}}</h5>\r\n <button type=\"button\" class=\"btn-close\" (click)=\"cancel()\" aria-label=\"Close\"></button>\r\n </div>\r\n <div class=\"modal-body\">\r\n {{text}}\r\n <ng-content></ng-content>\r\n </div>\r\n <div class=\"modal-footer\" *ngIf=\"showFooter\">\r\n <ng-content select=\"footer\"></ng-content>\r\n <button [class.visually-hidden]=\"!showOk\" [disabled]=\"disabledOk\" type=\"button\" class=\"btn {{cssButton()}}\" id=\"{{okButtonId}}\"\r\n (click)=\"ok()\">\r\n <i *ngIf=\"icon\" class=\"{{ icon }}\"></i> {{ okButtonText }}\r\n </button>\r\n <button [class.visually-hidden]=\"!showCancel\" type=\"button\" class=\"btn btn-secondary\"\r\n (click)=\"cancel()\">\r\n <i class=\"fa-solid fa-ban\"></i> {{ 'Action.Cancel' | translate }}\r\n </button>\r\n <button type=\"button\" class=\"d-none\" id=\"{{cancelButtonId}}\" data-bs-dismiss=\"modal\"></button>\r\n </div>\r\n </div>\r\n </div>\r\n</div>", dependencies: [{ kind: "directive", type: i1$2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }] });
|
|
4596
4837
|
}
|
|
4597
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4838
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekModal, decorators: [{
|
|
4598
4839
|
type: Component,
|
|
4599
|
-
args: [{ selector: 'zek-modal', template: "<div (keydown.enter)=\"keyDown($event)\" class=\"modal fade\" data-bs-backdrop=\"static\" id=\"{{modalId}}\" tabindex=\"-1\" attr.aria-labelledby=\"{{lableId}}\" aria-hidden=\"true\">\r\n <div class=\"modal-dialog\" [ngClass]=\"{\r\n 'modal-sm': size === 'sm',\r\n 'modal-lg': size === 'lg', \r\n 'modal-xl': size === 'xl'\r\n }\" [class.modal-dialog-scrollable]=\"scrollable\" [class.modal-fullscreen]=\"fullscreen\">\r\n <div class=\"modal-content\">\r\n <div class=\"modal-header\" *ngIf=\"showHeader\">\r\n <ng-content select=\"header\"></ng-content>\r\n <h5 class=\"modal-title\" id=\"{{lableId}}\">{{title}}</h5>\r\n <button type=\"button\" class=\"btn-close\" (click)=\"cancel()\" aria-label=\"Close\"></button>\r\n </div>\r\n <div class=\"modal-body\">\r\n {{text}}\r\n <ng-content></ng-content>\r\n </div>\r\n <div class=\"modal-footer\" *ngIf=\"showFooter\">\r\n <ng-content select=\"footer\"></ng-content>\r\n <button [class.visually-hidden]=\"!showOk\" [disabled]=\"disabledOk\" type=\"button\" class=\"btn {{cssButton()}}\" id=\"{{okButtonId}}\"\r\n (click)=\"ok()\">\r\n <i *ngIf=\"icon\" class=\"{{ icon }}\"></i> {{ okButtonText }}\r\n </button>\r\n <button [class.visually-hidden]=\"!showCancel\" type=\"button\" class=\"btn btn-secondary\"\r\n (click)=\"cancel()\">\r\n <i class=\"fa-solid fa-ban\"></i> {{ 'Action.Cancel' | translate }}\r\n </button>\r\n <button type=\"button\" class=\"d-none\" id=\"{{cancelButtonId}}\" data-bs-dismiss=\"modal\"></button>\r\n </div>\r\n </div>\r\n </div>\r\n</div>" }]
|
|
4840
|
+
args: [{ standalone: false, selector: 'zek-modal', template: "<div (keydown.enter)=\"keyDown($event)\" class=\"modal fade\" data-bs-backdrop=\"static\" id=\"{{modalId}}\" tabindex=\"-1\" attr.aria-labelledby=\"{{lableId}}\" aria-hidden=\"true\">\r\n <div class=\"modal-dialog\" [ngClass]=\"{\r\n 'modal-sm': size === 'sm',\r\n 'modal-lg': size === 'lg', \r\n 'modal-xl': size === 'xl'\r\n }\" [class.modal-dialog-scrollable]=\"scrollable\" [class.modal-fullscreen]=\"fullscreen\">\r\n <div class=\"modal-content\">\r\n <div class=\"modal-header\" *ngIf=\"showHeader\">\r\n <ng-content select=\"header\"></ng-content>\r\n <h5 class=\"modal-title\" id=\"{{lableId}}\">{{title}}</h5>\r\n <button type=\"button\" class=\"btn-close\" (click)=\"cancel()\" aria-label=\"Close\"></button>\r\n </div>\r\n <div class=\"modal-body\">\r\n {{text}}\r\n <ng-content></ng-content>\r\n </div>\r\n <div class=\"modal-footer\" *ngIf=\"showFooter\">\r\n <ng-content select=\"footer\"></ng-content>\r\n <button [class.visually-hidden]=\"!showOk\" [disabled]=\"disabledOk\" type=\"button\" class=\"btn {{cssButton()}}\" id=\"{{okButtonId}}\"\r\n (click)=\"ok()\">\r\n <i *ngIf=\"icon\" class=\"{{ icon }}\"></i> {{ okButtonText }}\r\n </button>\r\n <button [class.visually-hidden]=\"!showCancel\" type=\"button\" class=\"btn btn-secondary\"\r\n (click)=\"cancel()\">\r\n <i class=\"fa-solid fa-ban\"></i> {{ 'Action.Cancel' | translate }}\r\n </button>\r\n <button type=\"button\" class=\"d-none\" id=\"{{cancelButtonId}}\" data-bs-dismiss=\"modal\"></button>\r\n </div>\r\n </div>\r\n </div>\r\n</div>" }]
|
|
4600
4841
|
}], propDecorators: { id: [{
|
|
4601
4842
|
type: Input
|
|
4602
4843
|
}], model: [{
|
|
@@ -4655,12 +4896,12 @@ class ZekDeleteModal extends ZekModal {
|
|
|
4655
4896
|
this.translate.get('Alert.DeleteQuestion').subscribe((res) => this.text = res);
|
|
4656
4897
|
this.componentType = ComponentType.Delete;
|
|
4657
4898
|
}
|
|
4658
|
-
static
|
|
4659
|
-
static
|
|
4899
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekDeleteModal, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
4900
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.6", type: ZekDeleteModal, isStandalone: false, selector: "zek-delete-modal", usesInheritance: true, ngImport: i0, template: "<div (keydown.enter)=\"keyDown($event)\" class=\"modal fade\" data-bs-backdrop=\"static\" id=\"{{modalId}}\" tabindex=\"-1\" attr.aria-labelledby=\"{{lableId}}\" aria-hidden=\"true\">\r\n <div class=\"modal-dialog\" [ngClass]=\"{\r\n 'modal-sm': size === 'sm',\r\n 'modal-lg': size === 'lg', \r\n 'modal-xl': size === 'xl'\r\n }\" [class.modal-dialog-scrollable]=\"scrollable\" [class.modal-fullscreen]=\"fullscreen\">\r\n <div class=\"modal-content\">\r\n <div class=\"modal-header\" *ngIf=\"showHeader\">\r\n <ng-content select=\"header\"></ng-content>\r\n <h5 class=\"modal-title\" id=\"{{lableId}}\">{{title}}</h5>\r\n <button type=\"button\" class=\"btn-close\" (click)=\"cancel()\" aria-label=\"Close\"></button>\r\n </div>\r\n <div class=\"modal-body\">\r\n {{text}}\r\n <ng-content></ng-content>\r\n </div>\r\n <div class=\"modal-footer\" *ngIf=\"showFooter\">\r\n <ng-content select=\"footer\"></ng-content>\r\n <button [class.visually-hidden]=\"!showOk\" [disabled]=\"disabledOk\" type=\"button\" class=\"btn {{cssButton()}}\" id=\"{{okButtonId}}\"\r\n (click)=\"ok()\">\r\n <i *ngIf=\"icon\" class=\"{{ icon }}\"></i> {{ okButtonText }}\r\n </button>\r\n <button [class.visually-hidden]=\"!showCancel\" type=\"button\" class=\"btn btn-secondary\"\r\n (click)=\"cancel()\">\r\n <i class=\"fa-solid fa-ban\"></i> {{ 'Action.Cancel' | translate }}\r\n </button>\r\n <button type=\"button\" class=\"d-none\" id=\"{{cancelButtonId}}\" data-bs-dismiss=\"modal\"></button>\r\n </div>\r\n </div>\r\n </div>\r\n</div>", dependencies: [{ kind: "directive", type: i1$2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }] });
|
|
4660
4901
|
}
|
|
4661
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4902
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekDeleteModal, decorators: [{
|
|
4662
4903
|
type: Component,
|
|
4663
|
-
args: [{ selector: 'zek-delete-modal', template: "<div (keydown.enter)=\"keyDown($event)\" class=\"modal fade\" data-bs-backdrop=\"static\" id=\"{{modalId}}\" tabindex=\"-1\" attr.aria-labelledby=\"{{lableId}}\" aria-hidden=\"true\">\r\n <div class=\"modal-dialog\" [ngClass]=\"{\r\n 'modal-sm': size === 'sm',\r\n 'modal-lg': size === 'lg', \r\n 'modal-xl': size === 'xl'\r\n }\" [class.modal-dialog-scrollable]=\"scrollable\" [class.modal-fullscreen]=\"fullscreen\">\r\n <div class=\"modal-content\">\r\n <div class=\"modal-header\" *ngIf=\"showHeader\">\r\n <ng-content select=\"header\"></ng-content>\r\n <h5 class=\"modal-title\" id=\"{{lableId}}\">{{title}}</h5>\r\n <button type=\"button\" class=\"btn-close\" (click)=\"cancel()\" aria-label=\"Close\"></button>\r\n </div>\r\n <div class=\"modal-body\">\r\n {{text}}\r\n <ng-content></ng-content>\r\n </div>\r\n <div class=\"modal-footer\" *ngIf=\"showFooter\">\r\n <ng-content select=\"footer\"></ng-content>\r\n <button [class.visually-hidden]=\"!showOk\" [disabled]=\"disabledOk\" type=\"button\" class=\"btn {{cssButton()}}\" id=\"{{okButtonId}}\"\r\n (click)=\"ok()\">\r\n <i *ngIf=\"icon\" class=\"{{ icon }}\"></i> {{ okButtonText }}\r\n </button>\r\n <button [class.visually-hidden]=\"!showCancel\" type=\"button\" class=\"btn btn-secondary\"\r\n (click)=\"cancel()\">\r\n <i class=\"fa-solid fa-ban\"></i> {{ 'Action.Cancel' | translate }}\r\n </button>\r\n <button type=\"button\" class=\"d-none\" id=\"{{cancelButtonId}}\" data-bs-dismiss=\"modal\"></button>\r\n </div>\r\n </div>\r\n </div>\r\n</div>" }]
|
|
4904
|
+
args: [{ standalone: false, selector: 'zek-delete-modal', template: "<div (keydown.enter)=\"keyDown($event)\" class=\"modal fade\" data-bs-backdrop=\"static\" id=\"{{modalId}}\" tabindex=\"-1\" attr.aria-labelledby=\"{{lableId}}\" aria-hidden=\"true\">\r\n <div class=\"modal-dialog\" [ngClass]=\"{\r\n 'modal-sm': size === 'sm',\r\n 'modal-lg': size === 'lg', \r\n 'modal-xl': size === 'xl'\r\n }\" [class.modal-dialog-scrollable]=\"scrollable\" [class.modal-fullscreen]=\"fullscreen\">\r\n <div class=\"modal-content\">\r\n <div class=\"modal-header\" *ngIf=\"showHeader\">\r\n <ng-content select=\"header\"></ng-content>\r\n <h5 class=\"modal-title\" id=\"{{lableId}}\">{{title}}</h5>\r\n <button type=\"button\" class=\"btn-close\" (click)=\"cancel()\" aria-label=\"Close\"></button>\r\n </div>\r\n <div class=\"modal-body\">\r\n {{text}}\r\n <ng-content></ng-content>\r\n </div>\r\n <div class=\"modal-footer\" *ngIf=\"showFooter\">\r\n <ng-content select=\"footer\"></ng-content>\r\n <button [class.visually-hidden]=\"!showOk\" [disabled]=\"disabledOk\" type=\"button\" class=\"btn {{cssButton()}}\" id=\"{{okButtonId}}\"\r\n (click)=\"ok()\">\r\n <i *ngIf=\"icon\" class=\"{{ icon }}\"></i> {{ okButtonText }}\r\n </button>\r\n <button [class.visually-hidden]=\"!showCancel\" type=\"button\" class=\"btn btn-secondary\"\r\n (click)=\"cancel()\">\r\n <i class=\"fa-solid fa-ban\"></i> {{ 'Action.Cancel' | translate }}\r\n </button>\r\n <button type=\"button\" class=\"d-none\" id=\"{{cancelButtonId}}\" data-bs-dismiss=\"modal\"></button>\r\n </div>\r\n </div>\r\n </div>\r\n</div>" }]
|
|
4664
4905
|
}], ctorParameters: () => [] });
|
|
4665
4906
|
/**
|
|
4666
4907
|
* @deprecated Please use ZekModal
|
|
@@ -4673,12 +4914,12 @@ class ZekApproveModal extends ZekModal {
|
|
|
4673
4914
|
this.translate.get('Alert.ApproveQuestion').subscribe((res) => this.text = res);
|
|
4674
4915
|
this.componentType = ComponentType.Success;
|
|
4675
4916
|
}
|
|
4676
|
-
static
|
|
4677
|
-
static
|
|
4917
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekApproveModal, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
4918
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.6", type: ZekApproveModal, isStandalone: false, selector: "zek-approve-modal", usesInheritance: true, ngImport: i0, template: "<div (keydown.enter)=\"keyDown($event)\" class=\"modal fade\" data-bs-backdrop=\"static\" id=\"{{modalId}}\" tabindex=\"-1\" attr.aria-labelledby=\"{{lableId}}\" aria-hidden=\"true\">\r\n <div class=\"modal-dialog\" [ngClass]=\"{\r\n 'modal-sm': size === 'sm',\r\n 'modal-lg': size === 'lg', \r\n 'modal-xl': size === 'xl'\r\n }\" [class.modal-dialog-scrollable]=\"scrollable\" [class.modal-fullscreen]=\"fullscreen\">\r\n <div class=\"modal-content\">\r\n <div class=\"modal-header\" *ngIf=\"showHeader\">\r\n <ng-content select=\"header\"></ng-content>\r\n <h5 class=\"modal-title\" id=\"{{lableId}}\">{{title}}</h5>\r\n <button type=\"button\" class=\"btn-close\" (click)=\"cancel()\" aria-label=\"Close\"></button>\r\n </div>\r\n <div class=\"modal-body\">\r\n {{text}}\r\n <ng-content></ng-content>\r\n </div>\r\n <div class=\"modal-footer\" *ngIf=\"showFooter\">\r\n <ng-content select=\"footer\"></ng-content>\r\n <button [class.visually-hidden]=\"!showOk\" [disabled]=\"disabledOk\" type=\"button\" class=\"btn {{cssButton()}}\" id=\"{{okButtonId}}\"\r\n (click)=\"ok()\">\r\n <i *ngIf=\"icon\" class=\"{{ icon }}\"></i> {{ okButtonText }}\r\n </button>\r\n <button [class.visually-hidden]=\"!showCancel\" type=\"button\" class=\"btn btn-secondary\"\r\n (click)=\"cancel()\">\r\n <i class=\"fa-solid fa-ban\"></i> {{ 'Action.Cancel' | translate }}\r\n </button>\r\n <button type=\"button\" class=\"d-none\" id=\"{{cancelButtonId}}\" data-bs-dismiss=\"modal\"></button>\r\n </div>\r\n </div>\r\n </div>\r\n</div>", dependencies: [{ kind: "directive", type: i1$2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }] });
|
|
4678
4919
|
}
|
|
4679
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4920
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekApproveModal, decorators: [{
|
|
4680
4921
|
type: Component,
|
|
4681
|
-
args: [{ selector: 'zek-approve-modal', template: "<div (keydown.enter)=\"keyDown($event)\" class=\"modal fade\" data-bs-backdrop=\"static\" id=\"{{modalId}}\" tabindex=\"-1\" attr.aria-labelledby=\"{{lableId}}\" aria-hidden=\"true\">\r\n <div class=\"modal-dialog\" [ngClass]=\"{\r\n 'modal-sm': size === 'sm',\r\n 'modal-lg': size === 'lg', \r\n 'modal-xl': size === 'xl'\r\n }\" [class.modal-dialog-scrollable]=\"scrollable\" [class.modal-fullscreen]=\"fullscreen\">\r\n <div class=\"modal-content\">\r\n <div class=\"modal-header\" *ngIf=\"showHeader\">\r\n <ng-content select=\"header\"></ng-content>\r\n <h5 class=\"modal-title\" id=\"{{lableId}}\">{{title}}</h5>\r\n <button type=\"button\" class=\"btn-close\" (click)=\"cancel()\" aria-label=\"Close\"></button>\r\n </div>\r\n <div class=\"modal-body\">\r\n {{text}}\r\n <ng-content></ng-content>\r\n </div>\r\n <div class=\"modal-footer\" *ngIf=\"showFooter\">\r\n <ng-content select=\"footer\"></ng-content>\r\n <button [class.visually-hidden]=\"!showOk\" [disabled]=\"disabledOk\" type=\"button\" class=\"btn {{cssButton()}}\" id=\"{{okButtonId}}\"\r\n (click)=\"ok()\">\r\n <i *ngIf=\"icon\" class=\"{{ icon }}\"></i> {{ okButtonText }}\r\n </button>\r\n <button [class.visually-hidden]=\"!showCancel\" type=\"button\" class=\"btn btn-secondary\"\r\n (click)=\"cancel()\">\r\n <i class=\"fa-solid fa-ban\"></i> {{ 'Action.Cancel' | translate }}\r\n </button>\r\n <button type=\"button\" class=\"d-none\" id=\"{{cancelButtonId}}\" data-bs-dismiss=\"modal\"></button>\r\n </div>\r\n </div>\r\n </div>\r\n</div>" }]
|
|
4922
|
+
args: [{ standalone: false, selector: 'zek-approve-modal', template: "<div (keydown.enter)=\"keyDown($event)\" class=\"modal fade\" data-bs-backdrop=\"static\" id=\"{{modalId}}\" tabindex=\"-1\" attr.aria-labelledby=\"{{lableId}}\" aria-hidden=\"true\">\r\n <div class=\"modal-dialog\" [ngClass]=\"{\r\n 'modal-sm': size === 'sm',\r\n 'modal-lg': size === 'lg', \r\n 'modal-xl': size === 'xl'\r\n }\" [class.modal-dialog-scrollable]=\"scrollable\" [class.modal-fullscreen]=\"fullscreen\">\r\n <div class=\"modal-content\">\r\n <div class=\"modal-header\" *ngIf=\"showHeader\">\r\n <ng-content select=\"header\"></ng-content>\r\n <h5 class=\"modal-title\" id=\"{{lableId}}\">{{title}}</h5>\r\n <button type=\"button\" class=\"btn-close\" (click)=\"cancel()\" aria-label=\"Close\"></button>\r\n </div>\r\n <div class=\"modal-body\">\r\n {{text}}\r\n <ng-content></ng-content>\r\n </div>\r\n <div class=\"modal-footer\" *ngIf=\"showFooter\">\r\n <ng-content select=\"footer\"></ng-content>\r\n <button [class.visually-hidden]=\"!showOk\" [disabled]=\"disabledOk\" type=\"button\" class=\"btn {{cssButton()}}\" id=\"{{okButtonId}}\"\r\n (click)=\"ok()\">\r\n <i *ngIf=\"icon\" class=\"{{ icon }}\"></i> {{ okButtonText }}\r\n </button>\r\n <button [class.visually-hidden]=\"!showCancel\" type=\"button\" class=\"btn btn-secondary\"\r\n (click)=\"cancel()\">\r\n <i class=\"fa-solid fa-ban\"></i> {{ 'Action.Cancel' | translate }}\r\n </button>\r\n <button type=\"button\" class=\"d-none\" id=\"{{cancelButtonId}}\" data-bs-dismiss=\"modal\"></button>\r\n </div>\r\n </div>\r\n </div>\r\n</div>" }]
|
|
4682
4923
|
}], ctorParameters: () => [] });
|
|
4683
4924
|
/**
|
|
4684
4925
|
* @deprecated Please use ZekModal
|
|
@@ -4691,12 +4932,12 @@ class ZekSubmitModal extends ZekModal {
|
|
|
4691
4932
|
this.translate.get('Alert.SubmitQuestion').subscribe((res) => this.text = res);
|
|
4692
4933
|
this.componentType = ComponentType.Success;
|
|
4693
4934
|
}
|
|
4694
|
-
static
|
|
4695
|
-
static
|
|
4935
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekSubmitModal, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
4936
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.6", type: ZekSubmitModal, isStandalone: false, selector: "zek-submit-modal", usesInheritance: true, ngImport: i0, template: "<div (keydown.enter)=\"keyDown($event)\" class=\"modal fade\" data-bs-backdrop=\"static\" id=\"{{modalId}}\" tabindex=\"-1\" attr.aria-labelledby=\"{{lableId}}\" aria-hidden=\"true\">\r\n <div class=\"modal-dialog\" [ngClass]=\"{\r\n 'modal-sm': size === 'sm',\r\n 'modal-lg': size === 'lg', \r\n 'modal-xl': size === 'xl'\r\n }\" [class.modal-dialog-scrollable]=\"scrollable\" [class.modal-fullscreen]=\"fullscreen\">\r\n <div class=\"modal-content\">\r\n <div class=\"modal-header\" *ngIf=\"showHeader\">\r\n <ng-content select=\"header\"></ng-content>\r\n <h5 class=\"modal-title\" id=\"{{lableId}}\">{{title}}</h5>\r\n <button type=\"button\" class=\"btn-close\" (click)=\"cancel()\" aria-label=\"Close\"></button>\r\n </div>\r\n <div class=\"modal-body\">\r\n {{text}}\r\n <ng-content></ng-content>\r\n </div>\r\n <div class=\"modal-footer\" *ngIf=\"showFooter\">\r\n <ng-content select=\"footer\"></ng-content>\r\n <button [class.visually-hidden]=\"!showOk\" [disabled]=\"disabledOk\" type=\"button\" class=\"btn {{cssButton()}}\" id=\"{{okButtonId}}\"\r\n (click)=\"ok()\">\r\n <i *ngIf=\"icon\" class=\"{{ icon }}\"></i> {{ okButtonText }}\r\n </button>\r\n <button [class.visually-hidden]=\"!showCancel\" type=\"button\" class=\"btn btn-secondary\"\r\n (click)=\"cancel()\">\r\n <i class=\"fa-solid fa-ban\"></i> {{ 'Action.Cancel' | translate }}\r\n </button>\r\n <button type=\"button\" class=\"d-none\" id=\"{{cancelButtonId}}\" data-bs-dismiss=\"modal\"></button>\r\n </div>\r\n </div>\r\n </div>\r\n</div>", dependencies: [{ kind: "directive", type: i1$2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }] });
|
|
4696
4937
|
}
|
|
4697
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4938
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekSubmitModal, decorators: [{
|
|
4698
4939
|
type: Component,
|
|
4699
|
-
args: [{ selector: 'zek-submit-modal', template: "<div (keydown.enter)=\"keyDown($event)\" class=\"modal fade\" data-bs-backdrop=\"static\" id=\"{{modalId}}\" tabindex=\"-1\" attr.aria-labelledby=\"{{lableId}}\" aria-hidden=\"true\">\r\n <div class=\"modal-dialog\" [ngClass]=\"{\r\n 'modal-sm': size === 'sm',\r\n 'modal-lg': size === 'lg', \r\n 'modal-xl': size === 'xl'\r\n }\" [class.modal-dialog-scrollable]=\"scrollable\" [class.modal-fullscreen]=\"fullscreen\">\r\n <div class=\"modal-content\">\r\n <div class=\"modal-header\" *ngIf=\"showHeader\">\r\n <ng-content select=\"header\"></ng-content>\r\n <h5 class=\"modal-title\" id=\"{{lableId}}\">{{title}}</h5>\r\n <button type=\"button\" class=\"btn-close\" (click)=\"cancel()\" aria-label=\"Close\"></button>\r\n </div>\r\n <div class=\"modal-body\">\r\n {{text}}\r\n <ng-content></ng-content>\r\n </div>\r\n <div class=\"modal-footer\" *ngIf=\"showFooter\">\r\n <ng-content select=\"footer\"></ng-content>\r\n <button [class.visually-hidden]=\"!showOk\" [disabled]=\"disabledOk\" type=\"button\" class=\"btn {{cssButton()}}\" id=\"{{okButtonId}}\"\r\n (click)=\"ok()\">\r\n <i *ngIf=\"icon\" class=\"{{ icon }}\"></i> {{ okButtonText }}\r\n </button>\r\n <button [class.visually-hidden]=\"!showCancel\" type=\"button\" class=\"btn btn-secondary\"\r\n (click)=\"cancel()\">\r\n <i class=\"fa-solid fa-ban\"></i> {{ 'Action.Cancel' | translate }}\r\n </button>\r\n <button type=\"button\" class=\"d-none\" id=\"{{cancelButtonId}}\" data-bs-dismiss=\"modal\"></button>\r\n </div>\r\n </div>\r\n </div>\r\n</div>" }]
|
|
4940
|
+
args: [{ standalone: false, selector: 'zek-submit-modal', template: "<div (keydown.enter)=\"keyDown($event)\" class=\"modal fade\" data-bs-backdrop=\"static\" id=\"{{modalId}}\" tabindex=\"-1\" attr.aria-labelledby=\"{{lableId}}\" aria-hidden=\"true\">\r\n <div class=\"modal-dialog\" [ngClass]=\"{\r\n 'modal-sm': size === 'sm',\r\n 'modal-lg': size === 'lg', \r\n 'modal-xl': size === 'xl'\r\n }\" [class.modal-dialog-scrollable]=\"scrollable\" [class.modal-fullscreen]=\"fullscreen\">\r\n <div class=\"modal-content\">\r\n <div class=\"modal-header\" *ngIf=\"showHeader\">\r\n <ng-content select=\"header\"></ng-content>\r\n <h5 class=\"modal-title\" id=\"{{lableId}}\">{{title}}</h5>\r\n <button type=\"button\" class=\"btn-close\" (click)=\"cancel()\" aria-label=\"Close\"></button>\r\n </div>\r\n <div class=\"modal-body\">\r\n {{text}}\r\n <ng-content></ng-content>\r\n </div>\r\n <div class=\"modal-footer\" *ngIf=\"showFooter\">\r\n <ng-content select=\"footer\"></ng-content>\r\n <button [class.visually-hidden]=\"!showOk\" [disabled]=\"disabledOk\" type=\"button\" class=\"btn {{cssButton()}}\" id=\"{{okButtonId}}\"\r\n (click)=\"ok()\">\r\n <i *ngIf=\"icon\" class=\"{{ icon }}\"></i> {{ okButtonText }}\r\n </button>\r\n <button [class.visually-hidden]=\"!showCancel\" type=\"button\" class=\"btn btn-secondary\"\r\n (click)=\"cancel()\">\r\n <i class=\"fa-solid fa-ban\"></i> {{ 'Action.Cancel' | translate }}\r\n </button>\r\n <button type=\"button\" class=\"d-none\" id=\"{{cancelButtonId}}\" data-bs-dismiss=\"modal\"></button>\r\n </div>\r\n </div>\r\n </div>\r\n</div>" }]
|
|
4700
4941
|
}], ctorParameters: () => [] });
|
|
4701
4942
|
/**
|
|
4702
4943
|
* @deprecated Please use ZekModal
|
|
@@ -4709,12 +4950,12 @@ class ZekDisapproveModal extends ZekModal {
|
|
|
4709
4950
|
this.translate.get('Alert.DisapproveQuestion').subscribe((res) => this.text = res);
|
|
4710
4951
|
this.componentType = ComponentType.Delete;
|
|
4711
4952
|
}
|
|
4712
|
-
static
|
|
4713
|
-
static
|
|
4953
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekDisapproveModal, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
4954
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.6", type: ZekDisapproveModal, isStandalone: false, selector: "zek-disapprove-modal", usesInheritance: true, ngImport: i0, template: "<div (keydown.enter)=\"keyDown($event)\" class=\"modal fade\" data-bs-backdrop=\"static\" id=\"{{modalId}}\" tabindex=\"-1\" attr.aria-labelledby=\"{{lableId}}\" aria-hidden=\"true\">\r\n <div class=\"modal-dialog\" [ngClass]=\"{\r\n 'modal-sm': size === 'sm',\r\n 'modal-lg': size === 'lg', \r\n 'modal-xl': size === 'xl'\r\n }\" [class.modal-dialog-scrollable]=\"scrollable\" [class.modal-fullscreen]=\"fullscreen\">\r\n <div class=\"modal-content\">\r\n <div class=\"modal-header\" *ngIf=\"showHeader\">\r\n <ng-content select=\"header\"></ng-content>\r\n <h5 class=\"modal-title\" id=\"{{lableId}}\">{{title}}</h5>\r\n <button type=\"button\" class=\"btn-close\" (click)=\"cancel()\" aria-label=\"Close\"></button>\r\n </div>\r\n <div class=\"modal-body\">\r\n {{text}}\r\n <ng-content></ng-content>\r\n </div>\r\n <div class=\"modal-footer\" *ngIf=\"showFooter\">\r\n <ng-content select=\"footer\"></ng-content>\r\n <button [class.visually-hidden]=\"!showOk\" [disabled]=\"disabledOk\" type=\"button\" class=\"btn {{cssButton()}}\" id=\"{{okButtonId}}\"\r\n (click)=\"ok()\">\r\n <i *ngIf=\"icon\" class=\"{{ icon }}\"></i> {{ okButtonText }}\r\n </button>\r\n <button [class.visually-hidden]=\"!showCancel\" type=\"button\" class=\"btn btn-secondary\"\r\n (click)=\"cancel()\">\r\n <i class=\"fa-solid fa-ban\"></i> {{ 'Action.Cancel' | translate }}\r\n </button>\r\n <button type=\"button\" class=\"d-none\" id=\"{{cancelButtonId}}\" data-bs-dismiss=\"modal\"></button>\r\n </div>\r\n </div>\r\n </div>\r\n</div>", dependencies: [{ kind: "directive", type: i1$2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }] });
|
|
4714
4955
|
}
|
|
4715
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4956
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekDisapproveModal, decorators: [{
|
|
4716
4957
|
type: Component,
|
|
4717
|
-
args: [{ selector: 'zek-disapprove-modal', template: "<div (keydown.enter)=\"keyDown($event)\" class=\"modal fade\" data-bs-backdrop=\"static\" id=\"{{modalId}}\" tabindex=\"-1\" attr.aria-labelledby=\"{{lableId}}\" aria-hidden=\"true\">\r\n <div class=\"modal-dialog\" [ngClass]=\"{\r\n 'modal-sm': size === 'sm',\r\n 'modal-lg': size === 'lg', \r\n 'modal-xl': size === 'xl'\r\n }\" [class.modal-dialog-scrollable]=\"scrollable\" [class.modal-fullscreen]=\"fullscreen\">\r\n <div class=\"modal-content\">\r\n <div class=\"modal-header\" *ngIf=\"showHeader\">\r\n <ng-content select=\"header\"></ng-content>\r\n <h5 class=\"modal-title\" id=\"{{lableId}}\">{{title}}</h5>\r\n <button type=\"button\" class=\"btn-close\" (click)=\"cancel()\" aria-label=\"Close\"></button>\r\n </div>\r\n <div class=\"modal-body\">\r\n {{text}}\r\n <ng-content></ng-content>\r\n </div>\r\n <div class=\"modal-footer\" *ngIf=\"showFooter\">\r\n <ng-content select=\"footer\"></ng-content>\r\n <button [class.visually-hidden]=\"!showOk\" [disabled]=\"disabledOk\" type=\"button\" class=\"btn {{cssButton()}}\" id=\"{{okButtonId}}\"\r\n (click)=\"ok()\">\r\n <i *ngIf=\"icon\" class=\"{{ icon }}\"></i> {{ okButtonText }}\r\n </button>\r\n <button [class.visually-hidden]=\"!showCancel\" type=\"button\" class=\"btn btn-secondary\"\r\n (click)=\"cancel()\">\r\n <i class=\"fa-solid fa-ban\"></i> {{ 'Action.Cancel' | translate }}\r\n </button>\r\n <button type=\"button\" class=\"d-none\" id=\"{{cancelButtonId}}\" data-bs-dismiss=\"modal\"></button>\r\n </div>\r\n </div>\r\n </div>\r\n</div>" }]
|
|
4958
|
+
args: [{ standalone: false, selector: 'zek-disapprove-modal', template: "<div (keydown.enter)=\"keyDown($event)\" class=\"modal fade\" data-bs-backdrop=\"static\" id=\"{{modalId}}\" tabindex=\"-1\" attr.aria-labelledby=\"{{lableId}}\" aria-hidden=\"true\">\r\n <div class=\"modal-dialog\" [ngClass]=\"{\r\n 'modal-sm': size === 'sm',\r\n 'modal-lg': size === 'lg', \r\n 'modal-xl': size === 'xl'\r\n }\" [class.modal-dialog-scrollable]=\"scrollable\" [class.modal-fullscreen]=\"fullscreen\">\r\n <div class=\"modal-content\">\r\n <div class=\"modal-header\" *ngIf=\"showHeader\">\r\n <ng-content select=\"header\"></ng-content>\r\n <h5 class=\"modal-title\" id=\"{{lableId}}\">{{title}}</h5>\r\n <button type=\"button\" class=\"btn-close\" (click)=\"cancel()\" aria-label=\"Close\"></button>\r\n </div>\r\n <div class=\"modal-body\">\r\n {{text}}\r\n <ng-content></ng-content>\r\n </div>\r\n <div class=\"modal-footer\" *ngIf=\"showFooter\">\r\n <ng-content select=\"footer\"></ng-content>\r\n <button [class.visually-hidden]=\"!showOk\" [disabled]=\"disabledOk\" type=\"button\" class=\"btn {{cssButton()}}\" id=\"{{okButtonId}}\"\r\n (click)=\"ok()\">\r\n <i *ngIf=\"icon\" class=\"{{ icon }}\"></i> {{ okButtonText }}\r\n </button>\r\n <button [class.visually-hidden]=\"!showCancel\" type=\"button\" class=\"btn btn-secondary\"\r\n (click)=\"cancel()\">\r\n <i class=\"fa-solid fa-ban\"></i> {{ 'Action.Cancel' | translate }}\r\n </button>\r\n <button type=\"button\" class=\"d-none\" id=\"{{cancelButtonId}}\" data-bs-dismiss=\"modal\"></button>\r\n </div>\r\n </div>\r\n </div>\r\n</div>" }]
|
|
4718
4959
|
}], ctorParameters: () => [] });
|
|
4719
4960
|
/**
|
|
4720
4961
|
* @deprecated Please use ZekModal
|
|
@@ -4727,33 +4968,32 @@ class ZekRestoreModal extends ZekModal {
|
|
|
4727
4968
|
this.translate.get('Action.RestoreQuestion').subscribe((res) => this.text = res);
|
|
4728
4969
|
this.componentType = ComponentType.Success;
|
|
4729
4970
|
}
|
|
4730
|
-
static
|
|
4731
|
-
static
|
|
4971
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekRestoreModal, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
4972
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.6", type: ZekRestoreModal, isStandalone: false, selector: "zek-restore-modal", usesInheritance: true, ngImport: i0, template: "<div (keydown.enter)=\"keyDown($event)\" class=\"modal fade\" data-bs-backdrop=\"static\" id=\"{{modalId}}\" tabindex=\"-1\" attr.aria-labelledby=\"{{lableId}}\" aria-hidden=\"true\">\r\n <div class=\"modal-dialog\" [ngClass]=\"{\r\n 'modal-sm': size === 'sm',\r\n 'modal-lg': size === 'lg', \r\n 'modal-xl': size === 'xl'\r\n }\" [class.modal-dialog-scrollable]=\"scrollable\" [class.modal-fullscreen]=\"fullscreen\">\r\n <div class=\"modal-content\">\r\n <div class=\"modal-header\" *ngIf=\"showHeader\">\r\n <ng-content select=\"header\"></ng-content>\r\n <h5 class=\"modal-title\" id=\"{{lableId}}\">{{title}}</h5>\r\n <button type=\"button\" class=\"btn-close\" (click)=\"cancel()\" aria-label=\"Close\"></button>\r\n </div>\r\n <div class=\"modal-body\">\r\n {{text}}\r\n <ng-content></ng-content>\r\n </div>\r\n <div class=\"modal-footer\" *ngIf=\"showFooter\">\r\n <ng-content select=\"footer\"></ng-content>\r\n <button [class.visually-hidden]=\"!showOk\" [disabled]=\"disabledOk\" type=\"button\" class=\"btn {{cssButton()}}\" id=\"{{okButtonId}}\"\r\n (click)=\"ok()\">\r\n <i *ngIf=\"icon\" class=\"{{ icon }}\"></i> {{ okButtonText }}\r\n </button>\r\n <button [class.visually-hidden]=\"!showCancel\" type=\"button\" class=\"btn btn-secondary\"\r\n (click)=\"cancel()\">\r\n <i class=\"fa-solid fa-ban\"></i> {{ 'Action.Cancel' | translate }}\r\n </button>\r\n <button type=\"button\" class=\"d-none\" id=\"{{cancelButtonId}}\" data-bs-dismiss=\"modal\"></button>\r\n </div>\r\n </div>\r\n </div>\r\n</div>", dependencies: [{ kind: "directive", type: i1$2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }] });
|
|
4732
4973
|
}
|
|
4733
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4974
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekRestoreModal, decorators: [{
|
|
4734
4975
|
type: Component,
|
|
4735
|
-
args: [{ selector: 'zek-restore-modal', template: "<div (keydown.enter)=\"keyDown($event)\" class=\"modal fade\" data-bs-backdrop=\"static\" id=\"{{modalId}}\" tabindex=\"-1\" attr.aria-labelledby=\"{{lableId}}\" aria-hidden=\"true\">\r\n <div class=\"modal-dialog\" [ngClass]=\"{\r\n 'modal-sm': size === 'sm',\r\n 'modal-lg': size === 'lg', \r\n 'modal-xl': size === 'xl'\r\n }\" [class.modal-dialog-scrollable]=\"scrollable\" [class.modal-fullscreen]=\"fullscreen\">\r\n <div class=\"modal-content\">\r\n <div class=\"modal-header\" *ngIf=\"showHeader\">\r\n <ng-content select=\"header\"></ng-content>\r\n <h5 class=\"modal-title\" id=\"{{lableId}}\">{{title}}</h5>\r\n <button type=\"button\" class=\"btn-close\" (click)=\"cancel()\" aria-label=\"Close\"></button>\r\n </div>\r\n <div class=\"modal-body\">\r\n {{text}}\r\n <ng-content></ng-content>\r\n </div>\r\n <div class=\"modal-footer\" *ngIf=\"showFooter\">\r\n <ng-content select=\"footer\"></ng-content>\r\n <button [class.visually-hidden]=\"!showOk\" [disabled]=\"disabledOk\" type=\"button\" class=\"btn {{cssButton()}}\" id=\"{{okButtonId}}\"\r\n (click)=\"ok()\">\r\n <i *ngIf=\"icon\" class=\"{{ icon }}\"></i> {{ okButtonText }}\r\n </button>\r\n <button [class.visually-hidden]=\"!showCancel\" type=\"button\" class=\"btn btn-secondary\"\r\n (click)=\"cancel()\">\r\n <i class=\"fa-solid fa-ban\"></i> {{ 'Action.Cancel' | translate }}\r\n </button>\r\n <button type=\"button\" class=\"d-none\" id=\"{{cancelButtonId}}\" data-bs-dismiss=\"modal\"></button>\r\n </div>\r\n </div>\r\n </div>\r\n</div>" }]
|
|
4976
|
+
args: [{ standalone: false, selector: 'zek-restore-modal', template: "<div (keydown.enter)=\"keyDown($event)\" class=\"modal fade\" data-bs-backdrop=\"static\" id=\"{{modalId}}\" tabindex=\"-1\" attr.aria-labelledby=\"{{lableId}}\" aria-hidden=\"true\">\r\n <div class=\"modal-dialog\" [ngClass]=\"{\r\n 'modal-sm': size === 'sm',\r\n 'modal-lg': size === 'lg', \r\n 'modal-xl': size === 'xl'\r\n }\" [class.modal-dialog-scrollable]=\"scrollable\" [class.modal-fullscreen]=\"fullscreen\">\r\n <div class=\"modal-content\">\r\n <div class=\"modal-header\" *ngIf=\"showHeader\">\r\n <ng-content select=\"header\"></ng-content>\r\n <h5 class=\"modal-title\" id=\"{{lableId}}\">{{title}}</h5>\r\n <button type=\"button\" class=\"btn-close\" (click)=\"cancel()\" aria-label=\"Close\"></button>\r\n </div>\r\n <div class=\"modal-body\">\r\n {{text}}\r\n <ng-content></ng-content>\r\n </div>\r\n <div class=\"modal-footer\" *ngIf=\"showFooter\">\r\n <ng-content select=\"footer\"></ng-content>\r\n <button [class.visually-hidden]=\"!showOk\" [disabled]=\"disabledOk\" type=\"button\" class=\"btn {{cssButton()}}\" id=\"{{okButtonId}}\"\r\n (click)=\"ok()\">\r\n <i *ngIf=\"icon\" class=\"{{ icon }}\"></i> {{ okButtonText }}\r\n </button>\r\n <button [class.visually-hidden]=\"!showCancel\" type=\"button\" class=\"btn btn-secondary\"\r\n (click)=\"cancel()\">\r\n <i class=\"fa-solid fa-ban\"></i> {{ 'Action.Cancel' | translate }}\r\n </button>\r\n <button type=\"button\" class=\"d-none\" id=\"{{cancelButtonId}}\" data-bs-dismiss=\"modal\"></button>\r\n </div>\r\n </div>\r\n </div>\r\n</div>" }]
|
|
4736
4977
|
}], ctorParameters: () => [] });
|
|
4737
4978
|
|
|
4738
4979
|
class ZekFilterModal extends ZekModal {
|
|
4739
|
-
|
|
4740
|
-
super(...arguments);
|
|
4741
|
-
this.onReset = new EventEmitter();
|
|
4742
|
-
}
|
|
4980
|
+
onReset = new EventEmitter();
|
|
4743
4981
|
reset() {
|
|
4744
4982
|
this.onReset.emit();
|
|
4745
4983
|
}
|
|
4746
|
-
static
|
|
4747
|
-
static
|
|
4984
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekFilterModal, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
4985
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.6", type: ZekFilterModal, isStandalone: false, selector: "zek-filter-modal", outputs: { onReset: "onReset" }, usesInheritance: true, ngImport: i0, template: "<div (keydown.enter)=\"keyDown($event)\" class=\"modal fade\" data-bs-backdrop=\"static\" id=\"{{modalId}}\" tabindex=\"-1\" attr.aria-labelledby=\"{{lableId}}\" aria-hidden=\"true\">\r\n <div class=\"modal-dialog\" [ngClass]=\"{\r\n 'modal-sm': size === 'sm',\r\n 'modal-lg': size === 'lg', \r\n 'modal-xl': size === 'xl'\r\n }\" [class.modal-dialog-scrollable]=\"scrollable\" [class.modal-fullscreen]=\"fullscreen\">\r\n <div class=\"modal-content\">\r\n <div class=\"modal-header\" *ngIf=\"showHeader\">\r\n <ng-content select=\"header\"></ng-content>\r\n <h5 class=\"modal-title\" id=\"{{lableId}}\">{{ 'Action.Filter' | translate }}</h5>\r\n <button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"modal\" aria-label=\"Close\"></button>\r\n </div>\r\n <div class=\"modal-body\">\r\n {{text}}\r\n <ng-content></ng-content>\r\n </div>\r\n <div class=\"modal-footer\" *ngIf=\"showFooter\">\r\n <ng-content select=\"footer\"></ng-content>\r\n <button type=\"button\" class=\"btn btn-primary\" (click)=\"ok()\"><i class=\"fa-solid fa-filter\"></i> {{ 'Action.Filter' | translate }}</button>\r\n <button *ngIf=\"showCancel\" type=\"button\" class=\"btn btn-secondary\" id=\"modal-cancel-button-{{elementId}}\" data-bs-dismiss=\"modal\"><i class=\"fa-solid fa-ban\"></i> {{ 'Action.Cancel' | translate }}</button>\r\n <button type=\"button\" class=\"btn btn-secondary\" (click)=\"reset()\"><i class=\"fa-solid fa-xmark\"></i> {{ 'Action.Reset' | translate }}</button>\r\n </div>\r\n </div>\r\n </div>\r\n</div>", dependencies: [{ kind: "directive", type: i1$2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }] });
|
|
4748
4986
|
}
|
|
4749
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4987
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekFilterModal, decorators: [{
|
|
4750
4988
|
type: Component,
|
|
4751
|
-
args: [{ selector: 'zek-filter-modal', template: "<div (keydown.enter)=\"keyDown($event)\" class=\"modal fade\" data-bs-backdrop=\"static\" id=\"{{modalId}}\" tabindex=\"-1\" attr.aria-labelledby=\"{{lableId}}\" aria-hidden=\"true\">\r\n <div class=\"modal-dialog\" [ngClass]=\"{\r\n 'modal-sm': size === 'sm',\r\n 'modal-lg': size === 'lg', \r\n 'modal-xl': size === 'xl'\r\n }\" [class.modal-dialog-scrollable]=\"scrollable\" [class.modal-fullscreen]=\"fullscreen\">\r\n <div class=\"modal-content\">\r\n <div class=\"modal-header\" *ngIf=\"showHeader\">\r\n <ng-content select=\"header\"></ng-content>\r\n <h5 class=\"modal-title\" id=\"{{lableId}}\">{{ 'Action.Filter' | translate }}</h5>\r\n <button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"modal\" aria-label=\"Close\"></button>\r\n </div>\r\n <div class=\"modal-body\">\r\n {{text}}\r\n <ng-content></ng-content>\r\n </div>\r\n <div class=\"modal-footer\" *ngIf=\"showFooter\">\r\n <ng-content select=\"footer\"></ng-content>\r\n <button type=\"button\" class=\"btn btn-primary\" (click)=\"ok()\"><i class=\"fa-solid fa-filter\"></i> {{ 'Action.Filter' | translate }}</button>\r\n <button *ngIf=\"showCancel\" type=\"button\" class=\"btn btn-secondary\" id=\"modal-cancel-button-{{elementId}}\" data-bs-dismiss=\"modal\"><i class=\"fa-solid fa-ban\"></i> {{ 'Action.Cancel' | translate }}</button>\r\n <button type=\"button\" class=\"btn btn-secondary\" (click)=\"reset()\"><i class=\"fa-solid fa-xmark\"></i> {{ 'Action.Reset' | translate }}</button>\r\n </div>\r\n </div>\r\n </div>\r\n</div>" }]
|
|
4989
|
+
args: [{ standalone: false, selector: 'zek-filter-modal', template: "<div (keydown.enter)=\"keyDown($event)\" class=\"modal fade\" data-bs-backdrop=\"static\" id=\"{{modalId}}\" tabindex=\"-1\" attr.aria-labelledby=\"{{lableId}}\" aria-hidden=\"true\">\r\n <div class=\"modal-dialog\" [ngClass]=\"{\r\n 'modal-sm': size === 'sm',\r\n 'modal-lg': size === 'lg', \r\n 'modal-xl': size === 'xl'\r\n }\" [class.modal-dialog-scrollable]=\"scrollable\" [class.modal-fullscreen]=\"fullscreen\">\r\n <div class=\"modal-content\">\r\n <div class=\"modal-header\" *ngIf=\"showHeader\">\r\n <ng-content select=\"header\"></ng-content>\r\n <h5 class=\"modal-title\" id=\"{{lableId}}\">{{ 'Action.Filter' | translate }}</h5>\r\n <button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"modal\" aria-label=\"Close\"></button>\r\n </div>\r\n <div class=\"modal-body\">\r\n {{text}}\r\n <ng-content></ng-content>\r\n </div>\r\n <div class=\"modal-footer\" *ngIf=\"showFooter\">\r\n <ng-content select=\"footer\"></ng-content>\r\n <button type=\"button\" class=\"btn btn-primary\" (click)=\"ok()\"><i class=\"fa-solid fa-filter\"></i> {{ 'Action.Filter' | translate }}</button>\r\n <button *ngIf=\"showCancel\" type=\"button\" class=\"btn btn-secondary\" id=\"modal-cancel-button-{{elementId}}\" data-bs-dismiss=\"modal\"><i class=\"fa-solid fa-ban\"></i> {{ 'Action.Cancel' | translate }}</button>\r\n <button type=\"button\" class=\"btn btn-secondary\" (click)=\"reset()\"><i class=\"fa-solid fa-xmark\"></i> {{ 'Action.Reset' | translate }}</button>\r\n </div>\r\n </div>\r\n </div>\r\n</div>" }]
|
|
4752
4990
|
}], propDecorators: { onReset: [{
|
|
4753
4991
|
type: Output
|
|
4754
4992
|
}] } });
|
|
4755
4993
|
|
|
4756
4994
|
class ZekSumModal {
|
|
4995
|
+
model;
|
|
4996
|
+
modal;
|
|
4757
4997
|
sum() {
|
|
4758
4998
|
if (this.modal) {
|
|
4759
4999
|
this.modal.show();
|
|
@@ -4762,12 +5002,12 @@ class ZekSumModal {
|
|
|
4762
5002
|
throw new Error('sumModal is null or undefined');
|
|
4763
5003
|
}
|
|
4764
5004
|
}
|
|
4765
|
-
static
|
|
4766
|
-
static
|
|
5005
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekSumModal, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5006
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.6", type: ZekSumModal, isStandalone: false, selector: "zek-sum-modal", inputs: { model: "model" }, viewQueries: [{ propertyName: "modal", first: true, predicate: ["sumModal"], descendants: true }], ngImport: i0, template: "<zek-modal #sumModal [showCancel]=\"false\" [title]=\"'Action.Sum' | translate\">\r\n <table class=\"table table-striped table-borderless table-hover\">\r\n <tbody>\r\n <tr *ngFor=\"let item of model\">\r\n <td class=\"w-75\">{{'Fields.'+item.key | translate}}</td>\r\n <td class=\"w-25\">\r\n <ng-container *ngIf=\"item.key != 'Count'; else elseBlock\">{{item.value | number:'1.2' }}</ng-container>\r\n <ng-template #elseBlock>{{item.value}}</ng-template>\r\n </td>\r\n <tr>\r\n </tbody>\r\n </table>\r\n</zek-modal>", dependencies: [{ kind: "directive", type: i1$2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: ZekModal, selector: "zek-modal", inputs: ["id", "model", "showOk", "disabledOk", "showCancel", "autoHide", "title", "text", "icon", "okButtonText", "componentType", "size", "large", "xl", "scrollable", "fullscreen", "showHeader", "showFooter"], outputs: ["onShown", "onHidden", "onOk", "onCancel", "onValidating"] }, { kind: "pipe", type: i1$2.DecimalPipe, name: "number" }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }] });
|
|
4767
5007
|
}
|
|
4768
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5008
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekSumModal, decorators: [{
|
|
4769
5009
|
type: Component,
|
|
4770
|
-
args: [{ selector: 'zek-sum-modal', template: "<zek-modal #sumModal [showCancel]=\"false\" [title]=\"'Action.Sum' | translate\">\r\n <table class=\"table table-striped table-borderless table-hover\">\r\n <tbody>\r\n <tr *ngFor=\"let item of model\">\r\n <td class=\"w-75\">{{'Fields.'+item.key | translate}}</td>\r\n <td class=\"w-25\">\r\n <ng-container *ngIf=\"item.key != 'Count'; else elseBlock\">{{item.value | number:'1.2' }}</ng-container>\r\n <ng-template #elseBlock>{{item.value}}</ng-template>\r\n </td>\r\n <tr>\r\n </tbody>\r\n </table>\r\n</zek-modal>" }]
|
|
5010
|
+
args: [{ standalone: false, selector: 'zek-sum-modal', template: "<zek-modal #sumModal [showCancel]=\"false\" [title]=\"'Action.Sum' | translate\">\r\n <table class=\"table table-striped table-borderless table-hover\">\r\n <tbody>\r\n <tr *ngFor=\"let item of model\">\r\n <td class=\"w-75\">{{'Fields.'+item.key | translate}}</td>\r\n <td class=\"w-25\">\r\n <ng-container *ngIf=\"item.key != 'Count'; else elseBlock\">{{item.value | number:'1.2' }}</ng-container>\r\n <ng-template #elseBlock>{{item.value}}</ng-template>\r\n </td>\r\n <tr>\r\n </tbody>\r\n </table>\r\n</zek-modal>" }]
|
|
4771
5011
|
}], propDecorators: { model: [{
|
|
4772
5012
|
type: Input
|
|
4773
5013
|
}], modal: [{
|
|
@@ -4776,8 +5016,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
4776
5016
|
}] } });
|
|
4777
5017
|
|
|
4778
5018
|
class ZekModalModule {
|
|
4779
|
-
static
|
|
4780
|
-
static
|
|
5019
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekModalModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
5020
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.6", ngImport: i0, type: ZekModalModule, declarations: [ZekModal,
|
|
4781
5021
|
ZekDeleteModal,
|
|
4782
5022
|
ZekApproveModal,
|
|
4783
5023
|
ZekSubmitModal,
|
|
@@ -4793,12 +5033,12 @@ class ZekModalModule {
|
|
|
4793
5033
|
ZekDisapproveModal,
|
|
4794
5034
|
ZekRestoreModal,
|
|
4795
5035
|
ZekFilterModal,
|
|
4796
|
-
ZekSumModal] });
|
|
4797
|
-
static
|
|
5036
|
+
ZekSumModal] });
|
|
5037
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekModalModule, imports: [CommonModule,
|
|
4798
5038
|
RouterModule,
|
|
4799
|
-
TranslateModule] });
|
|
5039
|
+
TranslateModule] });
|
|
4800
5040
|
}
|
|
4801
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5041
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekModalModule, decorators: [{
|
|
4802
5042
|
type: NgModule,
|
|
4803
5043
|
args: [{
|
|
4804
5044
|
imports: [
|
|
@@ -4830,6 +5070,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
4830
5070
|
}] });
|
|
4831
5071
|
|
|
4832
5072
|
class ZekSafePipe {
|
|
5073
|
+
sanitizer;
|
|
4833
5074
|
constructor(sanitizer) {
|
|
4834
5075
|
this.sanitizer = sanitizer;
|
|
4835
5076
|
}
|
|
@@ -4855,10 +5096,10 @@ class ZekSafePipe {
|
|
|
4855
5096
|
return this.sanitizer.bypassSecurityTrustHtml(value);
|
|
4856
5097
|
}
|
|
4857
5098
|
}
|
|
4858
|
-
static
|
|
4859
|
-
static
|
|
5099
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekSafePipe, deps: [{ token: i1$3.DomSanitizer }], target: i0.ɵɵFactoryTarget.Pipe });
|
|
5100
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.0.6", ngImport: i0, type: ZekSafePipe, isStandalone: true, name: "safe" });
|
|
4860
5101
|
}
|
|
4861
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5102
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekSafePipe, decorators: [{
|
|
4862
5103
|
type: Pipe,
|
|
4863
5104
|
args: [{
|
|
4864
5105
|
standalone: true,
|
|
@@ -4867,6 +5108,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
4867
5108
|
}], ctorParameters: () => [{ type: i1$3.DomSanitizer }] });
|
|
4868
5109
|
|
|
4869
5110
|
class ZekFileViewer extends CoreComponent {
|
|
5111
|
+
viewModal;
|
|
5112
|
+
src;
|
|
4870
5113
|
show(url, extension) {
|
|
4871
5114
|
const ext = extension || FileHelper.getExtension(url);
|
|
4872
5115
|
switch (ext) {
|
|
@@ -4899,10 +5142,10 @@ class ZekFileViewer extends CoreComponent {
|
|
|
4899
5142
|
this.viewModal.show();
|
|
4900
5143
|
}
|
|
4901
5144
|
}
|
|
4902
|
-
static
|
|
4903
|
-
static
|
|
5145
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekFileViewer, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
5146
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.6", type: ZekFileViewer, isStandalone: true, selector: "zek-file-viewer", providers: [], viewQueries: [{ propertyName: "viewModal", first: true, predicate: ["viewModal"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<zek-modal #viewModal [fullscreen]=\"true\" [showHeader]=\"true\" [showFooter]=\"false\">\r\n <ng-container *ngIf=\"src\">\r\n <iframe id=\"office\" width=\"100%\" height=\"99%\" frameborder=\"0\" marginheight=\"0\" marginwidth=\"0\" scrolling=\"no\" allowfullscreen=\"allowfullscreen\"\r\n [src]=\"src | safe:'resourceUrl'\">\r\n </iframe>\r\n </ng-container>\r\n</zek-modal>", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: ZekModalModule }, { kind: "component", type: ZekModal, selector: "zek-modal", inputs: ["id", "model", "showOk", "disabledOk", "showCancel", "autoHide", "title", "text", "icon", "okButtonText", "componentType", "size", "large", "xl", "scrollable", "fullscreen", "showHeader", "showFooter"], outputs: ["onShown", "onHidden", "onOk", "onCancel", "onValidating"] }, { kind: "pipe", type: ZekSafePipe, name: "safe" }] });
|
|
4904
5147
|
}
|
|
4905
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5148
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekFileViewer, decorators: [{
|
|
4906
5149
|
type: Component,
|
|
4907
5150
|
args: [{ standalone: true, selector: 'zek-file-viewer', imports: [CommonModule, ZekModalModule, ZekSafePipe], providers: [], template: "<zek-modal #viewModal [fullscreen]=\"true\" [showHeader]=\"true\" [showFooter]=\"false\">\r\n <ng-container *ngIf=\"src\">\r\n <iframe id=\"office\" width=\"100%\" height=\"99%\" frameborder=\"0\" marginheight=\"0\" marginwidth=\"0\" scrolling=\"no\" allowfullscreen=\"allowfullscreen\"\r\n [src]=\"src | safe:'resourceUrl'\">\r\n </iframe>\r\n </ng-container>\r\n</zek-modal>" }]
|
|
4908
5151
|
}], propDecorators: { viewModal: [{
|
|
@@ -4920,51 +5163,64 @@ function loadScript$1(onLoaded, url, nonce) {
|
|
|
4920
5163
|
const loader$1 = { loadScript: loadScript$1 };
|
|
4921
5164
|
|
|
4922
5165
|
class ZekGoogleLoginButton extends CoreComponent {
|
|
5166
|
+
client_id;
|
|
4923
5167
|
constructor(client_id) {
|
|
4924
5168
|
super();
|
|
4925
5169
|
this.client_id = client_id;
|
|
4926
|
-
this._uniqueId = `zek-google-button-container-${this.uniqueId}`;
|
|
4927
|
-
this.id = this._uniqueId;
|
|
4928
|
-
this._prompt = true;
|
|
4929
|
-
this._autoSelect = false;
|
|
4930
|
-
this._cancelOnTapOutside = true;
|
|
4931
|
-
this.onLoginResponse = new EventEmitter();
|
|
4932
|
-
this.onLogin = new EventEmitter();
|
|
4933
|
-
this.onLoadComplete = (google) => {
|
|
4934
|
-
this.google = google;
|
|
4935
|
-
this.initialize();
|
|
4936
|
-
};
|
|
4937
5170
|
}
|
|
5171
|
+
_uniqueId = `zek-google-button-container-${this.uniqueId}`;
|
|
5172
|
+
id = this._uniqueId;
|
|
5173
|
+
_prompt = true;
|
|
4938
5174
|
get prompt() {
|
|
4939
5175
|
return this._prompt;
|
|
4940
5176
|
}
|
|
4941
5177
|
set prompt(v) {
|
|
4942
5178
|
this._prompt = Convert.toBooleanProperty(v);
|
|
4943
5179
|
}
|
|
5180
|
+
_autoSelect = false;
|
|
4944
5181
|
get autoSelect() {
|
|
4945
5182
|
return this._autoSelect;
|
|
4946
5183
|
}
|
|
4947
5184
|
set autoSelect(v) {
|
|
4948
5185
|
this._autoSelect = Convert.toBooleanProperty(v);
|
|
4949
5186
|
}
|
|
5187
|
+
_cancelOnTapOutside = true;
|
|
4950
5188
|
get cancelOnTapOutside() {
|
|
4951
5189
|
return this._cancelOnTapOutside;
|
|
4952
5190
|
}
|
|
4953
5191
|
set cancelOnTapOutside(v) {
|
|
4954
5192
|
this._cancelOnTapOutside = Convert.toBooleanProperty(v);
|
|
4955
5193
|
}
|
|
5194
|
+
_width;
|
|
4956
5195
|
get width() {
|
|
4957
5196
|
return this._width;
|
|
4958
5197
|
}
|
|
4959
5198
|
set width(v) {
|
|
4960
5199
|
this._width = v;
|
|
4961
5200
|
}
|
|
5201
|
+
_text;
|
|
4962
5202
|
get text() {
|
|
4963
5203
|
return this._text;
|
|
4964
5204
|
}
|
|
4965
5205
|
set text(v) {
|
|
4966
5206
|
this._text = v;
|
|
4967
5207
|
}
|
|
5208
|
+
onLoginResponse = new EventEmitter();
|
|
5209
|
+
onLogin = new EventEmitter();
|
|
5210
|
+
// private _type: 'standard' | 'icon';
|
|
5211
|
+
// public get type(): '' {
|
|
5212
|
+
// return this._type;
|
|
5213
|
+
// }
|
|
5214
|
+
// public set type(v: 'standard' | 'icon') {
|
|
5215
|
+
// this._type = v;
|
|
5216
|
+
// }
|
|
5217
|
+
// private static _loaded = false;
|
|
5218
|
+
// static async loadScript() {
|
|
5219
|
+
// if (this._loaded) return;
|
|
5220
|
+
// await HtmlHelper.loadScripts('https://accounts.google.com/gsi/client');
|
|
5221
|
+
// this._loaded = true;
|
|
5222
|
+
// }
|
|
5223
|
+
google;
|
|
4968
5224
|
async init() {
|
|
4969
5225
|
super.init();
|
|
4970
5226
|
// await GoogleLoginButton.loadScript();
|
|
@@ -4976,6 +5232,10 @@ class ZekGoogleLoginButton extends CoreComponent {
|
|
|
4976
5232
|
loader$1.loadScript(this.onLoadComplete);
|
|
4977
5233
|
}
|
|
4978
5234
|
}
|
|
5235
|
+
onLoadComplete = (google) => {
|
|
5236
|
+
this.google = google;
|
|
5237
|
+
this.initialize();
|
|
5238
|
+
};
|
|
4979
5239
|
initialize() {
|
|
4980
5240
|
this.google.accounts.id.initialize({
|
|
4981
5241
|
client_id: this.client_id,
|
|
@@ -5016,12 +5276,13 @@ class ZekGoogleLoginButton extends CoreComponent {
|
|
|
5016
5276
|
// console.log("Image URL: " + payload.picture);
|
|
5017
5277
|
// console.log("Email: " + payload.email);
|
|
5018
5278
|
}
|
|
5019
|
-
static
|
|
5020
|
-
static
|
|
5279
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekGoogleLoginButton, deps: [{ token: GOOGLE_CLIENT_ID }], target: i0.ɵɵFactoryTarget.Directive });
|
|
5280
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.6", type: ZekGoogleLoginButton, isStandalone: false, selector: "zek-google-login", inputs: { id: "id", prompt: "prompt", autoSelect: "autoSelect", cancelOnTapOutside: "cancelOnTapOutside", width: "width", text: "text" }, outputs: { onLoginResponse: "onLoginResponse", onLogin: "onLogin" }, host: { properties: { "attr.id": "id" } }, usesInheritance: true, ngImport: i0 });
|
|
5021
5281
|
}
|
|
5022
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5282
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekGoogleLoginButton, decorators: [{
|
|
5023
5283
|
type: Directive,
|
|
5024
5284
|
args: [{
|
|
5285
|
+
standalone: false,
|
|
5025
5286
|
selector: 'zek-google-login',
|
|
5026
5287
|
host: {
|
|
5027
5288
|
'[attr.id]': 'id',
|
|
@@ -5064,11 +5325,11 @@ class ZekGoogleLoginModule {
|
|
|
5064
5325
|
static forChild(config) {
|
|
5065
5326
|
return this.forRoot(config);
|
|
5066
5327
|
}
|
|
5067
|
-
static
|
|
5068
|
-
static
|
|
5069
|
-
static
|
|
5328
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekGoogleLoginModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
5329
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.6", ngImport: i0, type: ZekGoogleLoginModule, declarations: [ZekGoogleLoginButton], imports: [CommonModule], exports: [ZekGoogleLoginButton] });
|
|
5330
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekGoogleLoginModule, imports: [CommonModule] });
|
|
5070
5331
|
}
|
|
5071
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5332
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekGoogleLoginModule, decorators: [{
|
|
5072
5333
|
type: NgModule,
|
|
5073
5334
|
args: [{
|
|
5074
5335
|
imports: [
|
|
@@ -5084,105 +5345,110 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
5084
5345
|
}] });
|
|
5085
5346
|
|
|
5086
5347
|
class ZekGridToolbar {
|
|
5087
|
-
constructor() {
|
|
5088
|
-
|
|
5089
|
-
|
|
5090
|
-
|
|
5091
|
-
|
|
5092
|
-
|
|
5093
|
-
|
|
5094
|
-
|
|
5095
|
-
this._showApprove = false;
|
|
5096
|
-
this._approveEnabled = false;
|
|
5097
|
-
this.disapproveText = 'Action.Disapprove';
|
|
5098
|
-
this._showDisapprove = false;
|
|
5099
|
-
this._disapproveEnabled = false;
|
|
5100
|
-
this.onEdit = new EventEmitter();
|
|
5101
|
-
this.onDelete = new EventEmitter();
|
|
5102
|
-
this.onApprove = new EventEmitter();
|
|
5103
|
-
this.onDisapprove = new EventEmitter();
|
|
5104
|
-
this.onRestore = new EventEmitter();
|
|
5105
|
-
}
|
|
5348
|
+
// constructor(private readonly router: Router) {
|
|
5349
|
+
// //private readonly viewContainerRef: ViewContainerRef,
|
|
5350
|
+
// }
|
|
5351
|
+
// getParentComponent(): any {
|
|
5352
|
+
// return this.viewContainerRef['_data'].componentView.component.viewContainerRef['_view'].component
|
|
5353
|
+
// }
|
|
5354
|
+
model;
|
|
5355
|
+
_showEdit = true;
|
|
5106
5356
|
get showEdit() {
|
|
5107
5357
|
return this._showEdit;
|
|
5108
5358
|
}
|
|
5109
5359
|
set showEdit(v) {
|
|
5110
5360
|
this._showEdit = Convert.toBooleanProperty(v);
|
|
5111
5361
|
}
|
|
5362
|
+
_editEnabled = true;
|
|
5112
5363
|
get editEnabled() {
|
|
5113
5364
|
return this._editEnabled;
|
|
5114
5365
|
}
|
|
5115
5366
|
set editEnabled(v) {
|
|
5116
5367
|
this._editEnabled = Convert.toBooleanProperty(v);
|
|
5117
5368
|
}
|
|
5369
|
+
_showDelete = true;
|
|
5118
5370
|
get showDelete() {
|
|
5119
5371
|
return this._showDelete;
|
|
5120
5372
|
}
|
|
5121
5373
|
set showDelete(v) {
|
|
5122
5374
|
this._showDelete = Convert.toBooleanProperty(v);
|
|
5123
5375
|
}
|
|
5376
|
+
_deleteEnabled = true;
|
|
5124
5377
|
get deleteEnabled() {
|
|
5125
5378
|
return this._deleteEnabled;
|
|
5126
5379
|
}
|
|
5127
5380
|
set deleteEnabled(v) {
|
|
5128
5381
|
this._deleteEnabled = Convert.toBooleanProperty(v);
|
|
5129
5382
|
}
|
|
5383
|
+
_showRestore = false;
|
|
5130
5384
|
get showRestore() {
|
|
5131
5385
|
return this._showRestore;
|
|
5132
5386
|
}
|
|
5133
5387
|
set showRestore(v) {
|
|
5134
5388
|
this._showRestore = Convert.toBooleanProperty(v);
|
|
5135
5389
|
}
|
|
5390
|
+
_restoreEnabled = true;
|
|
5136
5391
|
get restoreEnabled() {
|
|
5137
5392
|
return this._restoreEnabled;
|
|
5138
5393
|
}
|
|
5139
5394
|
set restoreEnabled(v) {
|
|
5140
5395
|
this._restoreEnabled = Convert.toBooleanProperty(v);
|
|
5141
5396
|
}
|
|
5397
|
+
approveText = 'Action.Approve';
|
|
5398
|
+
_showApprove = false;
|
|
5142
5399
|
get showApprove() {
|
|
5143
5400
|
return this._showApprove;
|
|
5144
5401
|
}
|
|
5145
5402
|
set showApprove(v) {
|
|
5146
5403
|
this._showApprove = Convert.toBooleanProperty(v);
|
|
5147
5404
|
}
|
|
5405
|
+
_approveEnabled = false;
|
|
5148
5406
|
get approveEnabled() {
|
|
5149
5407
|
return this._approveEnabled;
|
|
5150
5408
|
}
|
|
5151
5409
|
set approveEnabled(v) {
|
|
5152
5410
|
this._approveEnabled = Convert.toBooleanProperty(v);
|
|
5153
5411
|
}
|
|
5412
|
+
disapproveText = 'Action.Disapprove';
|
|
5413
|
+
_showDisapprove = false;
|
|
5154
5414
|
get showDisapprove() {
|
|
5155
5415
|
return this._showDisapprove;
|
|
5156
5416
|
}
|
|
5157
5417
|
set showDisapprove(v) {
|
|
5158
5418
|
this._showDisapprove = Convert.toBooleanProperty(v);
|
|
5159
5419
|
}
|
|
5420
|
+
_disapproveEnabled = false;
|
|
5160
5421
|
get disapproveEnabled() {
|
|
5161
5422
|
return this._disapproveEnabled;
|
|
5162
5423
|
}
|
|
5163
5424
|
set disapproveEnabled(v) {
|
|
5164
5425
|
this._disapproveEnabled = Convert.toBooleanProperty(v);
|
|
5165
5426
|
}
|
|
5427
|
+
onEdit = new EventEmitter();
|
|
5166
5428
|
edit() {
|
|
5167
5429
|
//this.router.navigate([this.router.url, this.model]);
|
|
5168
5430
|
this.onEdit.emit(this.model);
|
|
5169
5431
|
}
|
|
5432
|
+
onDelete = new EventEmitter();
|
|
5170
5433
|
delete() {
|
|
5171
5434
|
this.onDelete.emit(this.model);
|
|
5172
5435
|
}
|
|
5436
|
+
onApprove = new EventEmitter();
|
|
5173
5437
|
approve() {
|
|
5174
5438
|
this.onApprove.emit(this.model);
|
|
5175
5439
|
}
|
|
5440
|
+
onDisapprove = new EventEmitter();
|
|
5176
5441
|
disapprove() {
|
|
5177
5442
|
this.onDisapprove.emit(this.model);
|
|
5178
5443
|
}
|
|
5444
|
+
onRestore = new EventEmitter();
|
|
5179
5445
|
restore() {
|
|
5180
5446
|
this.onRestore.emit(this.model);
|
|
5181
5447
|
}
|
|
5182
|
-
static
|
|
5183
|
-
static
|
|
5448
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekGridToolbar, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5449
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.6", type: ZekGridToolbar, isStandalone: true, selector: "zek-grid-toolbar", inputs: { model: "model", showEdit: "showEdit", editEnabled: "editEnabled", showDelete: "showDelete", deleteEnabled: "deleteEnabled", showRestore: "showRestore", restoreEnabled: "restoreEnabled", approveText: "approveText", showApprove: "showApprove", approveEnabled: "approveEnabled", disapproveText: "disapproveText", showDisapprove: "showDisapprove", disapproveEnabled: "disapproveEnabled" }, outputs: { onEdit: "onEdit", onDelete: "onDelete", onApprove: "onApprove", onDisapprove: "onDisapprove", onRestore: "onRestore" }, ngImport: i0, template: "<div class=\"btn-group btn-group-sm\" role=\"group\" aria-label=\"Table action group\">\r\n <button *ngIf=\"showEdit\" (click)=\"edit()\" type=\"button\" class=\"btn btn-secondary\" title=\"{{ 'Action.Edit' | translate }}\" [disabled]=\"!editEnabled\">\r\n <i class=\"fa-solid fa-pencil\"></i>\r\n </button>\r\n <button *ngIf=\"showApprove\" (click)=\"approve()\" type=\"button\" class=\"btn btn-success\" title=\"{{ approveText | translate }}\" [disabled]=\"!approveEnabled\">\r\n <i class=\"fa-solid fa-thumbs-up\"></i>\r\n </button>\r\n <button *ngIf=\"showDisapprove\" (click)=\"disapprove()\" type=\"button\" class=\"btn btn-danger\" title=\"{{ disapproveText | translate }}\" [disabled]=\"!disapproveEnabled\">\r\n <i class=\"fa-solid fa-thumbs-down\"></i>\r\n </button>\r\n <button *ngIf=\"showDelete\" (click)=\"delete()\" type=\"button\" class=\"btn btn-danger\" title=\"{{ 'Action.Delete' | translate }}\" [disabled]=\"!deleteEnabled\">\r\n <i class=\"fa-solid fa-trash\"></i>\r\n </button>\r\n <button *ngIf=\"showRestore\" (click)=\"restore()\" type=\"button\" class=\"btn btn-success\" title=\"{{ 'Action.Restore' | translate }}\" [disabled]=\"!restoreEnabled\">\r\n <i class=\"fa-solid fa-clock-rotate-left\"></i>\r\n </button>\r\n <ng-content></ng-content>\r\n</div>", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }] });
|
|
5184
5450
|
}
|
|
5185
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5451
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekGridToolbar, decorators: [{
|
|
5186
5452
|
type: Component,
|
|
5187
5453
|
args: [{ standalone: true, selector: 'zek-grid-toolbar', imports: [CommonModule, TranslateModule], template: "<div class=\"btn-group btn-group-sm\" role=\"group\" aria-label=\"Table action group\">\r\n <button *ngIf=\"showEdit\" (click)=\"edit()\" type=\"button\" class=\"btn btn-secondary\" title=\"{{ 'Action.Edit' | translate }}\" [disabled]=\"!editEnabled\">\r\n <i class=\"fa-solid fa-pencil\"></i>\r\n </button>\r\n <button *ngIf=\"showApprove\" (click)=\"approve()\" type=\"button\" class=\"btn btn-success\" title=\"{{ approveText | translate }}\" [disabled]=\"!approveEnabled\">\r\n <i class=\"fa-solid fa-thumbs-up\"></i>\r\n </button>\r\n <button *ngIf=\"showDisapprove\" (click)=\"disapprove()\" type=\"button\" class=\"btn btn-danger\" title=\"{{ disapproveText | translate }}\" [disabled]=\"!disapproveEnabled\">\r\n <i class=\"fa-solid fa-thumbs-down\"></i>\r\n </button>\r\n <button *ngIf=\"showDelete\" (click)=\"delete()\" type=\"button\" class=\"btn btn-danger\" title=\"{{ 'Action.Delete' | translate }}\" [disabled]=\"!deleteEnabled\">\r\n <i class=\"fa-solid fa-trash\"></i>\r\n </button>\r\n <button *ngIf=\"showRestore\" (click)=\"restore()\" type=\"button\" class=\"btn btn-success\" title=\"{{ 'Action.Restore' | translate }}\" [disabled]=\"!restoreEnabled\">\r\n <i class=\"fa-solid fa-clock-rotate-left\"></i>\r\n </button>\r\n <ng-content></ng-content>\r\n</div>" }]
|
|
5188
5454
|
}], propDecorators: { model: [{
|
|
@@ -5224,67 +5490,68 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
5224
5490
|
}] } });
|
|
5225
5491
|
|
|
5226
5492
|
class ZekGridToolbarBar extends ZekGridToolbar {
|
|
5227
|
-
static
|
|
5228
|
-
static
|
|
5493
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekGridToolbarBar, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
5494
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.6", type: ZekGridToolbarBar, isStandalone: true, selector: "zek-grid-toolbar-bar", usesInheritance: true, ngImport: i0, template: "<button type=\"button\" class=\"btn btn-light btn-sm\" data-bs-toggle=\"dropdown\">\r\n <i class=\"fa-solid fa-ellipsis\"></i>\r\n</button>\r\n<ul class=\"dropdown-menu\">\r\n <li><button *ngIf=\"showEdit\" (click)=\"edit()\" type=\"button\" class=\"dropdown-item\" [disabled]=\"!editEnabled\">\r\n <i class=\"fa-solid fa-pencil\"></i> {{ 'Action.Edit' | translate }}\r\n </button></li>\r\n <li><button *ngIf=\"showApprove\" (click)=\"approve()\" type=\"button\" class=\"dropdown-item\" [disabled]=\"!approveEnabled\">\r\n <i class=\"fa-solid fa-thumbs-up\"></i> {{ approveText | translate }}\r\n </button></li>\r\n <li><button *ngIf=\"showDisapprove\" (click)=\"disapprove()\" type=\"button\" class=\"dropdown-item\" [disabled]=\"!disapproveEnabled\">\r\n <i class=\"fa-solid fa-thumbs-down\"></i> {{ disapproveText | translate }}\r\n </button></li>\r\n <li><button *ngIf=\"showDelete\" (click)=\"delete()\" type=\"button\" class=\"dropdown-item\" [disabled]=\"!deleteEnabled\">\r\n <i class=\"fa-solid fa-trash\"></i> {{ 'Action.Delete' | translate }}\r\n </button></li>\r\n <li><button *ngIf=\"showRestore\" (click)=\"restore()\" type=\"button\" class=\"dropdown-item\" [disabled]=\"!restoreEnabled\">\r\n <i class=\"fa-solid fa-clock-rotate-left\"></i> {{ 'Action.Restore' | translate }}\r\n </button></li>\r\n <ng-content></ng-content>\r\n</ul>", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }] });
|
|
5229
5495
|
}
|
|
5230
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5496
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekGridToolbarBar, decorators: [{
|
|
5231
5497
|
type: Component,
|
|
5232
5498
|
args: [{ standalone: true, selector: 'zek-grid-toolbar-bar', imports: [CommonModule, TranslateModule], template: "<button type=\"button\" class=\"btn btn-light btn-sm\" data-bs-toggle=\"dropdown\">\r\n <i class=\"fa-solid fa-ellipsis\"></i>\r\n</button>\r\n<ul class=\"dropdown-menu\">\r\n <li><button *ngIf=\"showEdit\" (click)=\"edit()\" type=\"button\" class=\"dropdown-item\" [disabled]=\"!editEnabled\">\r\n <i class=\"fa-solid fa-pencil\"></i> {{ 'Action.Edit' | translate }}\r\n </button></li>\r\n <li><button *ngIf=\"showApprove\" (click)=\"approve()\" type=\"button\" class=\"dropdown-item\" [disabled]=\"!approveEnabled\">\r\n <i class=\"fa-solid fa-thumbs-up\"></i> {{ approveText | translate }}\r\n </button></li>\r\n <li><button *ngIf=\"showDisapprove\" (click)=\"disapprove()\" type=\"button\" class=\"dropdown-item\" [disabled]=\"!disapproveEnabled\">\r\n <i class=\"fa-solid fa-thumbs-down\"></i> {{ disapproveText | translate }}\r\n </button></li>\r\n <li><button *ngIf=\"showDelete\" (click)=\"delete()\" type=\"button\" class=\"dropdown-item\" [disabled]=\"!deleteEnabled\">\r\n <i class=\"fa-solid fa-trash\"></i> {{ 'Action.Delete' | translate }}\r\n </button></li>\r\n <li><button *ngIf=\"showRestore\" (click)=\"restore()\" type=\"button\" class=\"dropdown-item\" [disabled]=\"!restoreEnabled\">\r\n <i class=\"fa-solid fa-clock-rotate-left\"></i> {{ 'Action.Restore' | translate }}\r\n </button></li>\r\n <ng-content></ng-content>\r\n</ul>" }]
|
|
5233
5499
|
}] });
|
|
5234
5500
|
|
|
5235
5501
|
class ZekListToolbar {
|
|
5502
|
+
router;
|
|
5236
5503
|
constructor(router) {
|
|
5237
5504
|
this.router = router;
|
|
5238
|
-
this.printType = PrintType;
|
|
5239
|
-
this._isFiltered = false;
|
|
5240
|
-
this._showCreate = true;
|
|
5241
|
-
this._showFilter = true;
|
|
5242
|
-
this._showPrint = false;
|
|
5243
|
-
this._showSum = false;
|
|
5244
|
-
this._showExport = false;
|
|
5245
|
-
this.onRefresh = new EventEmitter();
|
|
5246
|
-
this.onFilter = new EventEmitter();
|
|
5247
|
-
this.onCreate = new EventEmitter();
|
|
5248
|
-
this.onSum = new EventEmitter();
|
|
5249
|
-
this.onPrint = new EventEmitter();
|
|
5250
|
-
this.onExport = new EventEmitter();
|
|
5251
5505
|
}
|
|
5506
|
+
printType = PrintType;
|
|
5507
|
+
_isFiltered = false;
|
|
5252
5508
|
get isFiltered() {
|
|
5253
5509
|
return this._isFiltered;
|
|
5254
5510
|
}
|
|
5255
5511
|
set isFiltered(v) {
|
|
5256
5512
|
this._isFiltered = Convert.toBooleanProperty(v);
|
|
5257
5513
|
}
|
|
5514
|
+
_showCreate = true;
|
|
5258
5515
|
get showCreate() {
|
|
5259
5516
|
return this._showCreate;
|
|
5260
5517
|
}
|
|
5261
5518
|
set showCreate(v) {
|
|
5262
5519
|
this._showCreate = Convert.toBooleanProperty(v);
|
|
5263
5520
|
}
|
|
5521
|
+
_showFilter = true;
|
|
5264
5522
|
get showFilter() {
|
|
5265
5523
|
return this._showFilter;
|
|
5266
5524
|
}
|
|
5267
5525
|
set showFilter(v) {
|
|
5268
5526
|
this._showFilter = Convert.toBooleanProperty(v);
|
|
5269
5527
|
}
|
|
5528
|
+
_showPrint = false;
|
|
5270
5529
|
get showPrint() {
|
|
5271
5530
|
return this._showPrint;
|
|
5272
5531
|
}
|
|
5273
5532
|
set showPrint(v) {
|
|
5274
5533
|
this._showPrint = Convert.toBooleanProperty(v);
|
|
5275
5534
|
}
|
|
5535
|
+
_showSum = false;
|
|
5276
5536
|
get showSum() {
|
|
5277
5537
|
return this._showSum;
|
|
5278
5538
|
}
|
|
5279
5539
|
set showSum(v) {
|
|
5280
5540
|
this._showSum = Convert.toBooleanProperty(v);
|
|
5281
5541
|
}
|
|
5542
|
+
_showExport = false;
|
|
5282
5543
|
get showExport() {
|
|
5283
5544
|
return this._showExport;
|
|
5284
5545
|
}
|
|
5285
5546
|
set showExport(v) {
|
|
5286
5547
|
this._showExport = Convert.toBooleanProperty(v);
|
|
5287
5548
|
}
|
|
5549
|
+
onRefresh = new EventEmitter();
|
|
5550
|
+
onFilter = new EventEmitter();
|
|
5551
|
+
onCreate = new EventEmitter();
|
|
5552
|
+
onSum = new EventEmitter();
|
|
5553
|
+
onPrint = new EventEmitter();
|
|
5554
|
+
onExport = new EventEmitter();
|
|
5288
5555
|
refresh() {
|
|
5289
5556
|
this.onRefresh.emit();
|
|
5290
5557
|
}
|
|
@@ -5303,10 +5570,10 @@ class ZekListToolbar {
|
|
|
5303
5570
|
exportExcel() {
|
|
5304
5571
|
this.onExport.emit(1);
|
|
5305
5572
|
}
|
|
5306
|
-
static
|
|
5307
|
-
static
|
|
5573
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekListToolbar, deps: [{ token: i1.Router }], target: i0.ɵɵFactoryTarget.Component });
|
|
5574
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.6", type: ZekListToolbar, isStandalone: true, selector: "zek-list-toolbar", inputs: { isFiltered: "isFiltered", showCreate: "showCreate", showFilter: "showFilter", showPrint: "showPrint", showSum: "showSum", showExport: "showExport" }, outputs: { onRefresh: "onRefresh", onFilter: "onFilter", onCreate: "onCreate", onSum: "onSum", onPrint: "onPrint", onExport: "onExport" }, ngImport: i0, template: "<div class=\"btn-toolbar\" role=\"toolbar\" aria-label=\"Toolbar\">\r\n <div class=\"btn-group me-2\" role=\"group\" aria-label=\"Action group\">\r\n <button *ngIf=\"showCreate\" type=\"button\" class=\"btn btn-primary\" (click)=\"create()\"><i class=\"fa-solid fa-plus\"></i> {{ 'Action.Create' | translate }}</button>\r\n </div>\r\n <div class=\"btn-group me-2\" role=\"group\" aria-label=\"Filter group\">\r\n <button *ngIf=\"showFilter\" type=\"button\" class=\"btn btn-secondary\" [ngClass]=\"{'btn-outline-success': isFiltered, 'btn-secondary': !isFiltered }\" (click)=\"filter()\" data-bs-toggle0=\"modal\" data-bs-backdrop0=\"static\" data-bs-target0=\"#filter-modal\"><i class=\"fa-solid fa-filter\"></i> {{ 'Action.Filter' | translate }}</button>\r\n <button type=\"button\" class=\"btn btn-secondary\" title=\"{{ 'Action.Refresh' | translate }}\" (click)=\"refresh()\"><i class=\"fa-solid fa-rotate\"></i></button>\r\n </div>\r\n <div *ngIf=\"showPrint\" class=\"btn-group me-2\" role=\"group\" aria-label=\"Print group\">\r\n <button type=\"button\" class=\"btn btn-secondary\" (click)=\"print(printType.Pdf)\"><i class=\"fa-solid fa-print\"></i> {{ 'Action.Print' | translate }}</button>\r\n <div class=\"btn-group\" role=\"group\">\r\n <button type=\"button\" class=\"btn btn-secondary dropdown-toggle dropdown-toggle-split\" data-bs-toggle=\"dropdown\" aria-expanded=\"false\">\r\n <span class=\"visually-hidden\">Toggle Dropdown</span>\r\n </button>\r\n <ul class=\"dropdown-menu\">\r\n <li><button type=\"button\" class=\"dropdown-item\" (click)=\"print(printType.Show)\"><i class=\"fa-solid fa-print\"></i> {{ 'Action.Print' | translate }}</button></li>\r\n <li><button type=\"button\" class=\"dropdown-item\" (click)=\"print(printType.Pdf)\"><i class=\"fa-solid fa-file-pdf\"></i> {{ 'Action.Print' | translate }} PDF</button></li>\r\n </ul>\r\n </div>\r\n </div>\r\n <div *ngIf=\"showSum\" class=\"btn-group me-2\" role=\"group\" aria-label=\"Sum group\">\r\n <button type=\"button\" class=\"btn btn-secondary\" (click)=\"sum()\"><i class=\"fa-solid fa-sigma\"></i> {{ 'Action.Sum' | translate }}</button>\r\n </div>\r\n <div *ngIf=\"showExport\" class=\"btn-group me-2\" role=\"group\" aria-label=\"Export group\">\r\n <div class=\"btn-group\" role=\"group\">\r\n <button id=\"btn-group-export\" type=\"button\" class=\"btn btn-secondary dropdown-toggle\" data-bs-toggle=\"dropdown\" aria-expanded=\"false\"><i class=\"fa-solid fa-download\"></i> {{ 'Action.Export' | translate }}</button>\r\n <ul class=\"dropdown-menu\" aria-labelledby=\"btn-group-export\">\r\n <li><a class=\"dropdown-item\" href=\"javascript:void(0)\" (click)=\"exportExcel()\"><i class=\"fa-solid fa-file-excel\"></i> Excel</a></li>\r\n </ul>\r\n </div>\r\n </div>\r\n <ng-content></ng-content>\r\n</div>", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }] });
|
|
5308
5575
|
}
|
|
5309
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5576
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekListToolbar, decorators: [{
|
|
5310
5577
|
type: Component,
|
|
5311
5578
|
args: [{ standalone: true, selector: 'zek-list-toolbar', imports: [CommonModule, TranslateModule], template: "<div class=\"btn-toolbar\" role=\"toolbar\" aria-label=\"Toolbar\">\r\n <div class=\"btn-group me-2\" role=\"group\" aria-label=\"Action group\">\r\n <button *ngIf=\"showCreate\" type=\"button\" class=\"btn btn-primary\" (click)=\"create()\"><i class=\"fa-solid fa-plus\"></i> {{ 'Action.Create' | translate }}</button>\r\n </div>\r\n <div class=\"btn-group me-2\" role=\"group\" aria-label=\"Filter group\">\r\n <button *ngIf=\"showFilter\" type=\"button\" class=\"btn btn-secondary\" [ngClass]=\"{'btn-outline-success': isFiltered, 'btn-secondary': !isFiltered }\" (click)=\"filter()\" data-bs-toggle0=\"modal\" data-bs-backdrop0=\"static\" data-bs-target0=\"#filter-modal\"><i class=\"fa-solid fa-filter\"></i> {{ 'Action.Filter' | translate }}</button>\r\n <button type=\"button\" class=\"btn btn-secondary\" title=\"{{ 'Action.Refresh' | translate }}\" (click)=\"refresh()\"><i class=\"fa-solid fa-rotate\"></i></button>\r\n </div>\r\n <div *ngIf=\"showPrint\" class=\"btn-group me-2\" role=\"group\" aria-label=\"Print group\">\r\n <button type=\"button\" class=\"btn btn-secondary\" (click)=\"print(printType.Pdf)\"><i class=\"fa-solid fa-print\"></i> {{ 'Action.Print' | translate }}</button>\r\n <div class=\"btn-group\" role=\"group\">\r\n <button type=\"button\" class=\"btn btn-secondary dropdown-toggle dropdown-toggle-split\" data-bs-toggle=\"dropdown\" aria-expanded=\"false\">\r\n <span class=\"visually-hidden\">Toggle Dropdown</span>\r\n </button>\r\n <ul class=\"dropdown-menu\">\r\n <li><button type=\"button\" class=\"dropdown-item\" (click)=\"print(printType.Show)\"><i class=\"fa-solid fa-print\"></i> {{ 'Action.Print' | translate }}</button></li>\r\n <li><button type=\"button\" class=\"dropdown-item\" (click)=\"print(printType.Pdf)\"><i class=\"fa-solid fa-file-pdf\"></i> {{ 'Action.Print' | translate }} PDF</button></li>\r\n </ul>\r\n </div>\r\n </div>\r\n <div *ngIf=\"showSum\" class=\"btn-group me-2\" role=\"group\" aria-label=\"Sum group\">\r\n <button type=\"button\" class=\"btn btn-secondary\" (click)=\"sum()\"><i class=\"fa-solid fa-sigma\"></i> {{ 'Action.Sum' | translate }}</button>\r\n </div>\r\n <div *ngIf=\"showExport\" class=\"btn-group me-2\" role=\"group\" aria-label=\"Export group\">\r\n <div class=\"btn-group\" role=\"group\">\r\n <button id=\"btn-group-export\" type=\"button\" class=\"btn btn-secondary dropdown-toggle\" data-bs-toggle=\"dropdown\" aria-expanded=\"false\"><i class=\"fa-solid fa-download\"></i> {{ 'Action.Export' | translate }}</button>\r\n <ul class=\"dropdown-menu\" aria-labelledby=\"btn-group-export\">\r\n <li><a class=\"dropdown-item\" href=\"javascript:void(0)\" (click)=\"exportExcel()\"><i class=\"fa-solid fa-file-excel\"></i> Excel</a></li>\r\n </ul>\r\n </div>\r\n </div>\r\n <ng-content></ng-content>\r\n</div>" }]
|
|
5312
5579
|
}], ctorParameters: () => [{ type: i1.Router }], propDecorators: { isFiltered: [{
|
|
@@ -5336,9 +5603,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
5336
5603
|
}] } });
|
|
5337
5604
|
|
|
5338
5605
|
class ZekLoadingService {
|
|
5339
|
-
|
|
5340
|
-
|
|
5341
|
-
|
|
5606
|
+
_pendingRequests = 0;
|
|
5607
|
+
_loadingSubject$;
|
|
5608
|
+
_onLoadingObservable;
|
|
5342
5609
|
start() {
|
|
5343
5610
|
this._pendingRequests++;
|
|
5344
5611
|
this._loadingSubject$?.next(true);
|
|
@@ -5360,14 +5627,15 @@ class ZekLoadingService {
|
|
|
5360
5627
|
throw new Error("_onExecuteObservable is undefined");
|
|
5361
5628
|
return this._onLoadingObservable;
|
|
5362
5629
|
}
|
|
5363
|
-
static
|
|
5364
|
-
static
|
|
5630
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekLoadingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5631
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekLoadingService, providedIn: 'root' });
|
|
5365
5632
|
}
|
|
5366
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5633
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekLoadingService, decorators: [{
|
|
5367
5634
|
type: Injectable,
|
|
5368
5635
|
args: [{ providedIn: 'root' }]
|
|
5369
5636
|
}] });
|
|
5370
5637
|
class ZekLoadingInterceptor {
|
|
5638
|
+
_loading;
|
|
5371
5639
|
constructor(_loading) {
|
|
5372
5640
|
this._loading = _loading;
|
|
5373
5641
|
}
|
|
@@ -5377,10 +5645,10 @@ class ZekLoadingInterceptor {
|
|
|
5377
5645
|
this._loading.end();
|
|
5378
5646
|
}));
|
|
5379
5647
|
}
|
|
5380
|
-
static
|
|
5381
|
-
static
|
|
5648
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekLoadingInterceptor, deps: [{ token: ZekLoadingService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5649
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekLoadingInterceptor });
|
|
5382
5650
|
}
|
|
5383
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5651
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekLoadingInterceptor, decorators: [{
|
|
5384
5652
|
type: Injectable
|
|
5385
5653
|
}], ctorParameters: () => [{ type: ZekLoadingService }] });
|
|
5386
5654
|
const ZekLoadingInterceptorProvider = [{
|
|
@@ -5390,9 +5658,11 @@ const ZekLoadingInterceptorProvider = [{
|
|
|
5390
5658
|
}];
|
|
5391
5659
|
|
|
5392
5660
|
class ZekLoading {
|
|
5661
|
+
_loading;
|
|
5662
|
+
show = false;
|
|
5663
|
+
subscription;
|
|
5393
5664
|
constructor(_loading) {
|
|
5394
5665
|
this._loading = _loading;
|
|
5395
|
-
this.show = false;
|
|
5396
5666
|
}
|
|
5397
5667
|
ngOnInit() {
|
|
5398
5668
|
this.subscription = this._loading.onLoading.subscribe(x => {
|
|
@@ -5402,16 +5672,16 @@ class ZekLoading {
|
|
|
5402
5672
|
ngOnDestroy() {
|
|
5403
5673
|
this.subscription?.unsubscribe();
|
|
5404
5674
|
}
|
|
5405
|
-
static
|
|
5406
|
-
static
|
|
5675
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekLoading, deps: [{ token: ZekLoadingService }], target: i0.ɵɵFactoryTarget.Component });
|
|
5676
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.6", type: ZekLoading, isStandalone: false, selector: "zek-loading", ngImport: i0, template: `
|
|
5407
5677
|
<div *ngIf="show" id="loading" class="progress">
|
|
5408
5678
|
<div class="progress-bar progress-bar-striped progress-bar-animated bg-danger" role="progressbar" style="width:100%" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100"></div>
|
|
5409
5679
|
</div>
|
|
5410
|
-
`, isInline: true, styles: ["#loading{-webkit-pointer-events:none;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;position:fixed;inset:0;z-index:10000;background-color:#00000080;outline:0;height:3px}#loading>.progress-bar{-webkit-transition:none!important;transition:none!important}\n"], dependencies: [{ kind: "directive", type: i1$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
5680
|
+
`, isInline: true, styles: ["#loading{-webkit-pointer-events:none;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;position:fixed;inset:0;z-index:10000;background-color:#00000080;outline:0;height:3px}#loading>.progress-bar{-webkit-transition:none!important;transition:none!important}\n"], dependencies: [{ kind: "directive", type: i1$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
5411
5681
|
}
|
|
5412
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5682
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekLoading, decorators: [{
|
|
5413
5683
|
type: Component,
|
|
5414
|
-
args: [{ selector: 'zek-loading', template: `
|
|
5684
|
+
args: [{ standalone: false, selector: 'zek-loading', template: `
|
|
5415
5685
|
<div *ngIf="show" id="loading" class="progress">
|
|
5416
5686
|
<div class="progress-bar progress-bar-striped progress-bar-animated bg-danger" role="progressbar" style="width:100%" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100"></div>
|
|
5417
5687
|
</div>
|
|
@@ -5419,14 +5689,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
5419
5689
|
}], ctorParameters: () => [{ type: ZekLoadingService }] });
|
|
5420
5690
|
|
|
5421
5691
|
class ZekLoadingModule {
|
|
5422
|
-
static
|
|
5423
|
-
static
|
|
5424
|
-
static
|
|
5692
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekLoadingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
5693
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.6", ngImport: i0, type: ZekLoadingModule, declarations: [ZekLoading], imports: [CommonModule], exports: [ZekLoading] });
|
|
5694
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekLoadingModule, providers: [
|
|
5425
5695
|
ZekLoadingInterceptor,
|
|
5426
5696
|
ZekLoadingInterceptorProvider,
|
|
5427
|
-
], imports: [CommonModule] });
|
|
5697
|
+
], imports: [CommonModule] });
|
|
5428
5698
|
}
|
|
5429
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5699
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekLoadingModule, decorators: [{
|
|
5430
5700
|
type: NgModule,
|
|
5431
5701
|
args: [{
|
|
5432
5702
|
imports: [
|
|
@@ -5448,6 +5718,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
5448
5718
|
// export * from './loading-interceptor';
|
|
5449
5719
|
|
|
5450
5720
|
class ZekNumericDirective {
|
|
5721
|
+
el;
|
|
5722
|
+
_digits = 0;
|
|
5451
5723
|
get digits() {
|
|
5452
5724
|
return this._digits;
|
|
5453
5725
|
}
|
|
@@ -5455,6 +5727,7 @@ class ZekNumericDirective {
|
|
|
5455
5727
|
const tmp = MathHelper.clamp(Convert.toNumber(v) ?? 0, 0, 29);
|
|
5456
5728
|
this._digits = tmp;
|
|
5457
5729
|
}
|
|
5730
|
+
_negative = false;
|
|
5458
5731
|
get negative() {
|
|
5459
5732
|
return this._negative;
|
|
5460
5733
|
}
|
|
@@ -5506,8 +5779,6 @@ class ZekNumericDirective {
|
|
|
5506
5779
|
}
|
|
5507
5780
|
constructor(el) {
|
|
5508
5781
|
this.el = el;
|
|
5509
|
-
this._digits = 0;
|
|
5510
|
-
this._negative = false;
|
|
5511
5782
|
}
|
|
5512
5783
|
onKeyDown(event) {
|
|
5513
5784
|
this.run(this.el.nativeElement.value);
|
|
@@ -5515,10 +5786,10 @@ class ZekNumericDirective {
|
|
|
5515
5786
|
onPaste(event) {
|
|
5516
5787
|
this.run(this.el.nativeElement.value);
|
|
5517
5788
|
}
|
|
5518
|
-
static
|
|
5519
|
-
static
|
|
5789
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekNumericDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
5790
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.6", type: ZekNumericDirective, isStandalone: true, selector: "[numeric]", inputs: { digits: "digits", negative: "negative" }, host: { listeners: { "keydown": "onKeyDown($event)", "paste": "onPaste($event)" } }, ngImport: i0 });
|
|
5520
5791
|
}
|
|
5521
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5792
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekNumericDirective, decorators: [{
|
|
5522
5793
|
type: Directive,
|
|
5523
5794
|
args: [{
|
|
5524
5795
|
standalone: true,
|
|
@@ -5537,19 +5808,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
5537
5808
|
}] } });
|
|
5538
5809
|
|
|
5539
5810
|
class ZekPageTitle {
|
|
5540
|
-
|
|
5541
|
-
|
|
5542
|
-
|
|
5811
|
+
icon;
|
|
5812
|
+
title;
|
|
5813
|
+
_isEditPage = false;
|
|
5543
5814
|
get isEditPage() {
|
|
5544
5815
|
return this._isEditPage;
|
|
5545
5816
|
}
|
|
5546
5817
|
set isEditPage(v) {
|
|
5547
5818
|
this._isEditPage = Convert.toBooleanProperty(v);
|
|
5548
5819
|
}
|
|
5549
|
-
|
|
5550
|
-
static
|
|
5820
|
+
modelId;
|
|
5821
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekPageTitle, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5822
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.6", type: ZekPageTitle, isStandalone: true, selector: "zek-page-title", inputs: { icon: "icon", title: "title", isEditPage: "isEditPage", modelId: "modelId" }, ngImport: i0, template: "<h1 class=\"h2 pt-3 pb-2 mb-3 border-bottom\">\r\n <i *ngIf=\"icon\" class=\"{{icon}}\"></i><ng-container *ngIf=\"icon\"> </ng-container>{{ title }} <ng-container *ngIf=\"isEditPage\">\r\n <small class=\"text-muted\" *ngIf=\"modelId && modelId > 0 else elseBlock\">[<ng-container>{{ 'Action.Edit' | translate }}</ng-container>]</small>\r\n <ng-template #elseBlock>\r\n <small class=\"text-muted\">[<ng-container>{{ 'Action.Create' | translate }}</ng-container>]</small>\r\n </ng-template>\r\n </ng-container>\r\n</h1>", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }] });
|
|
5551
5823
|
}
|
|
5552
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5824
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekPageTitle, decorators: [{
|
|
5553
5825
|
type: Component,
|
|
5554
5826
|
args: [{ standalone: true, selector: 'zek-page-title', imports: [CommonModule, TranslateModule], template: "<h1 class=\"h2 pt-3 pb-2 mb-3 border-bottom\">\r\n <i *ngIf=\"icon\" class=\"{{icon}}\"></i><ng-container *ngIf=\"icon\"> </ng-container>{{ title }} <ng-container *ngIf=\"isEditPage\">\r\n <small class=\"text-muted\" *ngIf=\"modelId && modelId > 0 else elseBlock\">[<ng-container>{{ 'Action.Edit' | translate }}</ng-container>]</small>\r\n <ng-template #elseBlock>\r\n <small class=\"text-muted\">[<ng-container>{{ 'Action.Create' | translate }}</ng-container>]</small>\r\n </ng-template>\r\n </ng-container>\r\n</h1>" }]
|
|
5555
5827
|
}], propDecorators: { icon: [{
|
|
@@ -5563,19 +5835,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
5563
5835
|
}] } });
|
|
5564
5836
|
|
|
5565
5837
|
class ZekPager {
|
|
5566
|
-
|
|
5567
|
-
|
|
5568
|
-
this._showPageSize = true;
|
|
5569
|
-
this.pagerAlign = 'start';
|
|
5570
|
-
this.onPageChange = new EventEmitter();
|
|
5571
|
-
this.onPageSizeChange = new EventEmitter();
|
|
5572
|
-
}
|
|
5838
|
+
pager = new Pager();
|
|
5839
|
+
_showPageSize = true;
|
|
5573
5840
|
get showPageSize() {
|
|
5574
5841
|
return this._showPageSize;
|
|
5575
5842
|
}
|
|
5576
5843
|
set showPageSize(v) {
|
|
5577
5844
|
this._showPageSize = Convert.toBooleanProperty(v);
|
|
5578
5845
|
}
|
|
5846
|
+
pagerAlign = 'start';
|
|
5579
5847
|
setPage(page) {
|
|
5580
5848
|
// if (!this.pager) return;
|
|
5581
5849
|
if (page === this.pager.pageNumber)
|
|
@@ -5588,10 +5856,12 @@ class ZekPager {
|
|
|
5588
5856
|
return;
|
|
5589
5857
|
this.onPageSizeChange.emit(pageSize);
|
|
5590
5858
|
}
|
|
5591
|
-
|
|
5592
|
-
|
|
5859
|
+
onPageChange = new EventEmitter();
|
|
5860
|
+
onPageSizeChange = new EventEmitter();
|
|
5861
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekPager, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5862
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.6", type: ZekPager, isStandalone: true, selector: "zek-pager", inputs: { pager: "pager", showPageSize: "showPageSize", pagerAlign: "pagerAlign" }, outputs: { onPageChange: "onPageChange", onPageSizeChange: "onPageSizeChange" }, ngImport: i0, template: "<div *ngIf=\"pager\" class=\"row\">\r\n <div [ngClass]=\"{ 'col-sm-8': showPageSize, 'col-sm-12': !showPageSize}\">\r\n <nav aria-label=\"Pagination\">\r\n <ul class=\"pagination\" [ngClass]=\"{ 'justify-content-center': pagerAlign === 'center', 'justify-content-end': pagerAlign === 'end'}\">\r\n <li [class.disabled]=\"pager.isFirstPage\" class=\"page-item\">\r\n <a class=\"page-link\" (click)=\"setPage(1)\" href=\"javascript:void(0)\" [attr.aria-disabled]=\"pager.isFirstPage ? 'true' : null\" aria-label=\"First\">\r\n <span aria-hidden=\"true\">««</span>\r\n </a>\r\n </li>\r\n <li [class.disabled]=\"!pager.hasPreviousPage\" class=\"page-item\">\r\n <a class=\"page-link\" (click)=\"setPage(pager.pageNumber - 1)\" href=\"javascript:void(0)\" [attr.aria-disabled]=\"!pager.hasPreviousPage ? 'true' : null\" aria-label=\"Previous\">\r\n <span aria-hidden=\"true\">«</span>\r\n </a>\r\n </li>\r\n <li *ngFor=\"let page of pager.pages\" [class.active]=\"page === pager.pageNumber\" class=\"page-item\"><a class=\"page-link\" (click)=\"setPage(page)\" href=\"javascript:void(0)\">{{page}}</a></li>\r\n <li [class.disabled]=\"!pager.hasNextPage\" class=\"page-item\">\r\n <a class=\"page-link\" (click)=\"setPage(pager.pageNumber + 1)\" href=\"javascript:void(0)\" [attr.aria-disabled]=\"!pager.hasNextPage ? 'true' : null\" aria-label=\"Next\">\r\n <span aria-hidden=\"true\">»</span>\r\n </a>\r\n </li>\r\n <li [class.disabled]=\"pager.isLastPage\" class=\"page-item\">\r\n <a class=\"page-link\" (click)=\"setPage(pager.pageCount)\" href=\"javascript:void(0)\" [attr.aria-disabled]=\"pager.isLastPage ? 'true' : null\" aria-label=\"Last\">\r\n <span aria-hidden=\"true\">»»</span>\r\n </a>\r\n </li>\r\n </ul>\r\n </nav>\r\n </div>\r\n <div class=\"col-sm-4\" *ngIf=\"showPageSize\">\r\n <div class=\"float-end\">\r\n <div class=\"dropdown\">\r\n <button class=\"btn btn-secondary dropdown-toggle\" type=\"button\" id=\"page-size-button\" data-bs-toggle=\"dropdown\" aria-expanded=\"false\">\r\n {{pager.pageSize}}\r\n </button>\r\n <ul class=\"dropdown-menu dropdown-menu-end\" aria-labelledby=\"page-size-button\">\r\n <li><h6 class=\"dropdown-header\">{{ 'Pagination.PageSize' | translate }}</h6></li>\r\n <li><a class=\"dropdown-item\" [class.active]=\"pager.pageSize === 10\" (click)=\"setPageSize(10)\" href=\"javascript:void(0)\">10</a></li>\r\n <li><a class=\"dropdown-item\" [class.active]=\"pager.pageSize === 20\" (click)=\"setPageSize(20)\" href=\"javascript:void(0)\">20</a></li>\r\n <li><a class=\"dropdown-item\" [class.active]=\"pager.pageSize === 50\" (click)=\"setPageSize(50)\" href=\"javascript:void(0)\">50</a></li>\r\n <li><a class=\"dropdown-item\" [class.active]=\"pager.pageSize === 100\" (click)=\"setPageSize(100)\" href=\"javascript:void(0)\">100</a></li>\r\n <li><a class=\"dropdown-item\" [class.active]=\"pager.pageSize === 500\" (click)=\"setPageSize(500)\" href=\"javascript:void(0)\">500</a></li>\r\n </ul>\r\n </div>\r\n </div>\r\n <div class=\"float-end mt-2\">\r\n {{pager.firstItemOnPage}} - {{pager.lastItemOnPage}} of {{pager.totalItemCount}} \r\n </div>\r\n </div>\r\n</div>", styles: [":host{display:block}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }] });
|
|
5593
5863
|
}
|
|
5594
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5864
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekPager, decorators: [{
|
|
5595
5865
|
type: Component,
|
|
5596
5866
|
args: [{ standalone: true, selector: 'zek-pager', imports: [CommonModule, TranslateModule], template: "<div *ngIf=\"pager\" class=\"row\">\r\n <div [ngClass]=\"{ 'col-sm-8': showPageSize, 'col-sm-12': !showPageSize}\">\r\n <nav aria-label=\"Pagination\">\r\n <ul class=\"pagination\" [ngClass]=\"{ 'justify-content-center': pagerAlign === 'center', 'justify-content-end': pagerAlign === 'end'}\">\r\n <li [class.disabled]=\"pager.isFirstPage\" class=\"page-item\">\r\n <a class=\"page-link\" (click)=\"setPage(1)\" href=\"javascript:void(0)\" [attr.aria-disabled]=\"pager.isFirstPage ? 'true' : null\" aria-label=\"First\">\r\n <span aria-hidden=\"true\">««</span>\r\n </a>\r\n </li>\r\n <li [class.disabled]=\"!pager.hasPreviousPage\" class=\"page-item\">\r\n <a class=\"page-link\" (click)=\"setPage(pager.pageNumber - 1)\" href=\"javascript:void(0)\" [attr.aria-disabled]=\"!pager.hasPreviousPage ? 'true' : null\" aria-label=\"Previous\">\r\n <span aria-hidden=\"true\">«</span>\r\n </a>\r\n </li>\r\n <li *ngFor=\"let page of pager.pages\" [class.active]=\"page === pager.pageNumber\" class=\"page-item\"><a class=\"page-link\" (click)=\"setPage(page)\" href=\"javascript:void(0)\">{{page}}</a></li>\r\n <li [class.disabled]=\"!pager.hasNextPage\" class=\"page-item\">\r\n <a class=\"page-link\" (click)=\"setPage(pager.pageNumber + 1)\" href=\"javascript:void(0)\" [attr.aria-disabled]=\"!pager.hasNextPage ? 'true' : null\" aria-label=\"Next\">\r\n <span aria-hidden=\"true\">»</span>\r\n </a>\r\n </li>\r\n <li [class.disabled]=\"pager.isLastPage\" class=\"page-item\">\r\n <a class=\"page-link\" (click)=\"setPage(pager.pageCount)\" href=\"javascript:void(0)\" [attr.aria-disabled]=\"pager.isLastPage ? 'true' : null\" aria-label=\"Last\">\r\n <span aria-hidden=\"true\">»»</span>\r\n </a>\r\n </li>\r\n </ul>\r\n </nav>\r\n </div>\r\n <div class=\"col-sm-4\" *ngIf=\"showPageSize\">\r\n <div class=\"float-end\">\r\n <div class=\"dropdown\">\r\n <button class=\"btn btn-secondary dropdown-toggle\" type=\"button\" id=\"page-size-button\" data-bs-toggle=\"dropdown\" aria-expanded=\"false\">\r\n {{pager.pageSize}}\r\n </button>\r\n <ul class=\"dropdown-menu dropdown-menu-end\" aria-labelledby=\"page-size-button\">\r\n <li><h6 class=\"dropdown-header\">{{ 'Pagination.PageSize' | translate }}</h6></li>\r\n <li><a class=\"dropdown-item\" [class.active]=\"pager.pageSize === 10\" (click)=\"setPageSize(10)\" href=\"javascript:void(0)\">10</a></li>\r\n <li><a class=\"dropdown-item\" [class.active]=\"pager.pageSize === 20\" (click)=\"setPageSize(20)\" href=\"javascript:void(0)\">20</a></li>\r\n <li><a class=\"dropdown-item\" [class.active]=\"pager.pageSize === 50\" (click)=\"setPageSize(50)\" href=\"javascript:void(0)\">50</a></li>\r\n <li><a class=\"dropdown-item\" [class.active]=\"pager.pageSize === 100\" (click)=\"setPageSize(100)\" href=\"javascript:void(0)\">100</a></li>\r\n <li><a class=\"dropdown-item\" [class.active]=\"pager.pageSize === 500\" (click)=\"setPageSize(500)\" href=\"javascript:void(0)\">500</a></li>\r\n </ul>\r\n </div>\r\n </div>\r\n <div class=\"float-end mt-2\">\r\n {{pager.firstItemOnPage}} - {{pager.lastItemOnPage}} of {{pager.totalItemCount}} \r\n </div>\r\n </div>\r\n</div>", styles: [":host{display:block}\n"] }]
|
|
5597
5867
|
}], propDecorators: { pager: [{
|
|
@@ -5607,10 +5877,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
5607
5877
|
}] } });
|
|
5608
5878
|
|
|
5609
5879
|
class ZekFieldValidator {
|
|
5610
|
-
|
|
5611
|
-
static
|
|
5880
|
+
field;
|
|
5881
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekFieldValidator, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5882
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.6", type: ZekFieldValidator, isStandalone: true, selector: "zek-field-validator, [zek-field-validator]", inputs: { field: "field" }, host: { properties: { "class": "\"invalid-tooltip\"" } }, ngImport: i0, template: "<ng-container *ngIf=\"field && field.invalid && field.errors && (field.dirty || field.touched || field.formDirective?.submitted)\">\r\n <ng-container *ngIf=\"field.errors.required\">{{ 'Validation.Required' | translate }}</ng-container>\r\n <ng-container *ngIf=\"field.errors.minlength\">{{ 'Validation.MinLengthFormat' | translate:{ value: field.errors.minlength.requiredLength } }}</ng-container>\r\n <ng-container *ngIf=\"field.errors.maxlength\">{{ 'Validation.MaxLengthFormat' | translate:{ value: field.errors.maxlength.requiredLength } }}</ng-container>\r\n <ng-container *ngIf=\"field.errors.min\">{{ 'Validation.Min' | translate:{ value: field.errors.min.min } }}</ng-container>\r\n <ng-container *ngIf=\"field.errors.max\">{{ 'Validation.Max' | translate:{ value: field.errors.min.max } }}</ng-container>\r\n <ng-container *ngIf=\"field.errors.email\">{{ 'Validation.Pattern' | translate }}</ng-container>\r\n <ng-container *ngIf=\"field.errors.pattern\">{{ 'Validation.Pattern' | translate }}</ng-container><!-- {{ field.errors.pattern.requiredPattern }} -->\r\n <ng-container *ngIf=\"field.errors.mismatch\">{{ 'Validation.Mismatch' | translate }}</ng-container>\r\n <ng-container *ngIf=\"field.errors.server\">{{field.errors.server}}</ng-container>\r\n</ng-container>", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }] });
|
|
5612
5883
|
}
|
|
5613
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5884
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekFieldValidator, decorators: [{
|
|
5614
5885
|
type: Component,
|
|
5615
5886
|
args: [{ standalone: true, selector: 'zek-field-validator, [zek-field-validator]', host: { '[class]': '"invalid-tooltip"' }, imports: [CommonModule, TranslateModule], template: "<ng-container *ngIf=\"field && field.invalid && field.errors && (field.dirty || field.touched || field.formDirective?.submitted)\">\r\n <ng-container *ngIf=\"field.errors.required\">{{ 'Validation.Required' | translate }}</ng-container>\r\n <ng-container *ngIf=\"field.errors.minlength\">{{ 'Validation.MinLengthFormat' | translate:{ value: field.errors.minlength.requiredLength } }}</ng-container>\r\n <ng-container *ngIf=\"field.errors.maxlength\">{{ 'Validation.MaxLengthFormat' | translate:{ value: field.errors.maxlength.requiredLength } }}</ng-container>\r\n <ng-container *ngIf=\"field.errors.min\">{{ 'Validation.Min' | translate:{ value: field.errors.min.min } }}</ng-container>\r\n <ng-container *ngIf=\"field.errors.max\">{{ 'Validation.Max' | translate:{ value: field.errors.min.max } }}</ng-container>\r\n <ng-container *ngIf=\"field.errors.email\">{{ 'Validation.Pattern' | translate }}</ng-container>\r\n <ng-container *ngIf=\"field.errors.pattern\">{{ 'Validation.Pattern' | translate }}</ng-container><!-- {{ field.errors.pattern.requiredPattern }} -->\r\n <ng-container *ngIf=\"field.errors.mismatch\">{{ 'Validation.Mismatch' | translate }}</ng-container>\r\n <ng-container *ngIf=\"field.errors.server\">{{field.errors.server}}</ng-container>\r\n</ng-container>" }]
|
|
5616
5887
|
}], propDecorators: { field: [{
|
|
@@ -5618,30 +5889,29 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
5618
5889
|
}] } });
|
|
5619
5890
|
|
|
5620
5891
|
class ZekPassword {
|
|
5621
|
-
|
|
5622
|
-
|
|
5623
|
-
this._required = false;
|
|
5624
|
-
this.minlength = null;
|
|
5625
|
-
this.maxlength = null;
|
|
5626
|
-
this.onChange = new EventEmitter();
|
|
5627
|
-
this._type = 'password';
|
|
5628
|
-
}
|
|
5892
|
+
name = 'Password';
|
|
5893
|
+
_required = false;
|
|
5629
5894
|
get required() {
|
|
5630
5895
|
return this._required;
|
|
5631
5896
|
}
|
|
5632
5897
|
set required(v) {
|
|
5633
5898
|
this._required = Convert.toBooleanProperty(v);
|
|
5634
5899
|
}
|
|
5900
|
+
minlength = null;
|
|
5901
|
+
maxlength = null;
|
|
5902
|
+
model;
|
|
5903
|
+
onChange = new EventEmitter();
|
|
5904
|
+
_type = 'password';
|
|
5635
5905
|
get type() {
|
|
5636
5906
|
return this._type;
|
|
5637
5907
|
}
|
|
5638
5908
|
showHide() {
|
|
5639
5909
|
this._type = this._type === 'password' ? 'text' : 'password';
|
|
5640
5910
|
}
|
|
5641
|
-
static
|
|
5642
|
-
static
|
|
5911
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekPassword, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5912
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.6", type: ZekPassword, isStandalone: true, selector: "zek-password", inputs: { name: "name", required: "required", minlength: "minlength", maxlength: "maxlength", model: "model" }, outputs: { onChange: "modelChange" }, ngImport: i0, template: "<div class=\"input-group has-validation\">\r\n <input type=\"{{type}}\" class=\"form-control\" name=\"{{name}}\" id=\"{{name}}\" [attr.aria-describedby]=\"name+'-show'\"\r\n [required]=\"required\" [minlength]=\"minlength\" [maxlength]=\"maxlength\"\r\n [ngModel]=\"model\" (ngModelChange)=\"onChange.emit($event)\"\r\n #password=\"ngModel\"\r\n >\r\n <button class=\"btn btn-outline-secondary\" type=\"button\" id=\"{{name}}-show\" (click)=\"showHide()\"><i class=\"fa-solid fa-eye\"></i></button>\r\n <div zek-field-validator [field]=\"password\"></div>\r\n</div>", dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i2$1.MinLengthValidator, selector: "[minlength][formControlName],[minlength][formControl],[minlength][ngModel]", inputs: ["minlength"] }, { kind: "directive", type: i2$1.MaxLengthValidator, selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", inputs: ["maxlength"] }, { kind: "directive", type: i2$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: ZekFieldValidator, selector: "zek-field-validator, [zek-field-validator]", inputs: ["field"] }] });
|
|
5643
5913
|
}
|
|
5644
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5914
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekPassword, decorators: [{
|
|
5645
5915
|
type: Component,
|
|
5646
5916
|
args: [{ standalone: true, selector: 'zek-password', imports: [FormsModule, ZekFieldValidator], template: "<div class=\"input-group has-validation\">\r\n <input type=\"{{type}}\" class=\"form-control\" name=\"{{name}}\" id=\"{{name}}\" [attr.aria-describedby]=\"name+'-show'\"\r\n [required]=\"required\" [minlength]=\"minlength\" [maxlength]=\"maxlength\"\r\n [ngModel]=\"model\" (ngModelChange)=\"onChange.emit($event)\"\r\n #password=\"ngModel\"\r\n >\r\n <button class=\"btn btn-outline-secondary\" type=\"button\" id=\"{{name}}-show\" (click)=\"showHide()\"><i class=\"fa-solid fa-eye\"></i></button>\r\n <div zek-field-validator [field]=\"password\"></div>\r\n</div>" }]
|
|
5647
5917
|
}], propDecorators: { name: [{
|
|
@@ -5660,16 +5930,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
5660
5930
|
}] } });
|
|
5661
5931
|
|
|
5662
5932
|
class ZekProgress {
|
|
5663
|
-
constructor() {
|
|
5664
|
-
this._value = 0;
|
|
5665
|
-
this._showValue = false;
|
|
5666
|
-
this._showTitle = true;
|
|
5667
|
-
this._striped = false;
|
|
5668
|
-
this._animated = false;
|
|
5669
|
-
this._label = null;
|
|
5670
|
-
this._height = null;
|
|
5671
|
-
this._background = 'primary';
|
|
5672
|
-
}
|
|
5673
5933
|
get value() {
|
|
5674
5934
|
return this._value;
|
|
5675
5935
|
}
|
|
@@ -5679,18 +5939,21 @@ class ZekProgress {
|
|
|
5679
5939
|
this._value = tmp;
|
|
5680
5940
|
}
|
|
5681
5941
|
}
|
|
5942
|
+
_value = 0;
|
|
5682
5943
|
get showValue() {
|
|
5683
5944
|
return this._showValue;
|
|
5684
5945
|
}
|
|
5685
5946
|
set showValue(v) {
|
|
5686
5947
|
this._showValue = Convert.toBooleanProperty(v);
|
|
5687
5948
|
}
|
|
5949
|
+
_showValue = false;
|
|
5688
5950
|
get showTitle() {
|
|
5689
5951
|
return this._showTitle;
|
|
5690
5952
|
}
|
|
5691
5953
|
set showTitle(v) {
|
|
5692
5954
|
this._showTitle = Convert.toBooleanProperty(v);
|
|
5693
5955
|
}
|
|
5956
|
+
_showTitle = true;
|
|
5694
5957
|
get _title() {
|
|
5695
5958
|
return this._showTitle ? `${this._value} %` : null;
|
|
5696
5959
|
}
|
|
@@ -5700,18 +5963,21 @@ class ZekProgress {
|
|
|
5700
5963
|
set striped(v) {
|
|
5701
5964
|
this._striped = Convert.toBooleanProperty(v);
|
|
5702
5965
|
}
|
|
5966
|
+
_striped = false;
|
|
5703
5967
|
get animated() {
|
|
5704
5968
|
return this._animated;
|
|
5705
5969
|
}
|
|
5706
5970
|
set animated(v) {
|
|
5707
5971
|
this._animated = Convert.toBooleanProperty(v);
|
|
5708
5972
|
}
|
|
5973
|
+
_animated = false;
|
|
5709
5974
|
get label() {
|
|
5710
5975
|
return this._label;
|
|
5711
5976
|
}
|
|
5712
5977
|
set label(v) {
|
|
5713
5978
|
this._label = v ? v : null;
|
|
5714
5979
|
}
|
|
5980
|
+
_label = null;
|
|
5715
5981
|
get height() {
|
|
5716
5982
|
return this._height;
|
|
5717
5983
|
}
|
|
@@ -5719,16 +5985,18 @@ class ZekProgress {
|
|
|
5719
5985
|
const tmp = Convert.toNumber(v) || 0;
|
|
5720
5986
|
this._height = tmp > 0 ? tmp : null;
|
|
5721
5987
|
}
|
|
5988
|
+
_height = null;
|
|
5722
5989
|
get background() {
|
|
5723
5990
|
return this._background;
|
|
5724
5991
|
}
|
|
5725
5992
|
set background(v) {
|
|
5726
5993
|
this._background = v;
|
|
5727
5994
|
}
|
|
5728
|
-
|
|
5729
|
-
static
|
|
5995
|
+
_background = 'primary';
|
|
5996
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekProgress, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5997
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.6", type: ZekProgress, isStandalone: true, selector: "zek-progress", inputs: { value: "value", showValue: "showValue", showTitle: "showTitle", striped: "striped", animated: "animated", label: "label", height: "height", background: "background" }, ngImport: i0, template: "<div class=\"progress\" [style.height.px]=\"height\" [title]=\"_title\" >\r\n <div class=\"progress-bar bg-{{background}}\" role=\"progressbar\"\r\n [class.progress-bar-striped]=\"striped || animated\"\r\n [class.progress-bar-animated]=\"animated\"\r\n [style.width.%]=\"value\"\r\n [attr.aria-valuenow]=\"value\"\r\n aria-valuemin=\"0\"\r\n aria-valuemax=\"100\">\r\n <ng-container *ngIf=\"showValue\">{{value}}%</ng-container>\r\n <ng-content></ng-content>\r\n </div>\r\n</div>", styles: [":host{display:block}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
5730
5998
|
}
|
|
5731
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5999
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekProgress, decorators: [{
|
|
5732
6000
|
type: Component,
|
|
5733
6001
|
args: [{ standalone: true, selector: 'zek-progress', imports: [
|
|
5734
6002
|
CommonModule
|
|
@@ -5762,15 +6030,23 @@ const ZEK_RADIO_CONTROL_VALUE_ACCESSOR = {
|
|
|
5762
6030
|
multi: true,
|
|
5763
6031
|
};
|
|
5764
6032
|
class ZekRadio extends CoreUiComponent {
|
|
6033
|
+
_changeDetector;
|
|
5765
6034
|
constructor(_changeDetector, _renderer, _elementRef) {
|
|
5766
6035
|
super(_renderer, _elementRef);
|
|
5767
6036
|
this._changeDetector = _changeDetector;
|
|
5768
|
-
this._uniqueId = `zek-radio-${this.uniqueId}`;
|
|
5769
|
-
/** The unique ID for the radio button. */
|
|
5770
|
-
this.id = this._uniqueId;
|
|
5771
|
-
this._inline = false;
|
|
5772
|
-
this._checked = false;
|
|
5773
6037
|
}
|
|
6038
|
+
_uniqueId = `zek-radio-${this.uniqueId}`;
|
|
6039
|
+
/** The unique ID for the radio button. */
|
|
6040
|
+
id = this._uniqueId;
|
|
6041
|
+
/** Used to set the 'aria-label' attribute on the underlying input element. */
|
|
6042
|
+
ariaLabel;
|
|
6043
|
+
/** The 'aria-labelledby' attribute takes precedence as the element's text alternative. */
|
|
6044
|
+
ariaLabelledby;
|
|
6045
|
+
/** The 'aria-describedby' attribute is read after the element's label and field type. */
|
|
6046
|
+
ariaDescribedby;
|
|
6047
|
+
/** The native `<input type=radio>` element */
|
|
6048
|
+
_inputElement;
|
|
6049
|
+
_inline = false;
|
|
5774
6050
|
get inline() {
|
|
5775
6051
|
return this._inline;
|
|
5776
6052
|
}
|
|
@@ -5785,6 +6061,9 @@ class ZekRadio extends CoreUiComponent {
|
|
|
5785
6061
|
get inputId() {
|
|
5786
6062
|
return `${this.id || this._uniqueId}-input`;
|
|
5787
6063
|
}
|
|
6064
|
+
/** The value from ngModel. */
|
|
6065
|
+
modelValue;
|
|
6066
|
+
_checked = false;
|
|
5788
6067
|
get checked() {
|
|
5789
6068
|
return this._checked;
|
|
5790
6069
|
}
|
|
@@ -5843,10 +6122,10 @@ class ZekRadio extends CoreUiComponent {
|
|
|
5843
6122
|
}
|
|
5844
6123
|
}
|
|
5845
6124
|
}
|
|
5846
|
-
static
|
|
5847
|
-
static
|
|
6125
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekRadio, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
6126
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.6", type: ZekRadio, isStandalone: true, selector: "zek-radio", inputs: { id: "id", ariaLabel: ["aria-label", "ariaLabel"], ariaLabelledby: ["aria-labelledby", "ariaLabelledby"], ariaDescribedby: ["aria-describedby", "ariaDescribedby"], inline: "inline", checked: "checked" }, host: { listeners: { "focus": "_inputElement.nativeElement.focus()" }, properties: { "attr.id": "id", "attr.tabindex": "null", "attr.aria-label": "null", "attr.aria-labelledby": "null", "attr.aria-describedby": "null" } }, providers: [ZEK_RADIO_CONTROL_VALUE_ACCESSOR], viewQueries: [{ propertyName: "_inputElement", first: true, predicate: ["input"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"form-check\" [class.form-check-inline]=\"inline\">\r\n <input #input class=\"form-check-input\" type=\"radio\"\r\n [id]=\"inputId\"\r\n [checked]=\"checked\"\r\n [disabled]=\"disabled\"\r\n [attr.name]=\"name\"\r\n [attr.value]=\"value\"\r\n [required]=\"required\"\r\n [attr.aria-label]=\"ariaLabel\"\r\n [attr.aria-labelledby]=\"ariaLabelledby\"\r\n [attr.aria-describedby]=\"ariaDescribedby\"\r\n (change)=\"_onInputInteraction($event)\">\r\n <label [for]=\"inputId\">\r\n <ng-content></ng-content>\r\n </label>\r\n</div>", changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
5848
6127
|
}
|
|
5849
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
6128
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekRadio, decorators: [{
|
|
5850
6129
|
type: Component,
|
|
5851
6130
|
args: [{ standalone: true, selector: 'zek-radio', host: {
|
|
5852
6131
|
'[attr.id]': 'id',
|
|
@@ -5880,19 +6159,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
5880
6159
|
}] } });
|
|
5881
6160
|
|
|
5882
6161
|
class ZekReadOnlyDirective {
|
|
5883
|
-
|
|
5884
|
-
this._readOnly = false;
|
|
5885
|
-
}
|
|
6162
|
+
_readOnly = false;
|
|
5886
6163
|
get readonly() {
|
|
5887
6164
|
return this._readOnly;
|
|
5888
6165
|
}
|
|
5889
6166
|
set readonly(v) {
|
|
5890
6167
|
this._readOnly = Convert.toBooleanProperty(v);
|
|
5891
6168
|
}
|
|
5892
|
-
static
|
|
5893
|
-
static
|
|
6169
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekReadOnlyDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
6170
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.6", type: ZekReadOnlyDirective, isStandalone: true, selector: "[readonly],[readOnly]", inputs: { readonly: "readonly" }, host: { properties: { "attr.readonly": "_readOnly ? \"\" : null" } }, ngImport: i0 });
|
|
5894
6171
|
}
|
|
5895
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
6172
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekReadOnlyDirective, decorators: [{
|
|
5896
6173
|
type: Directive,
|
|
5897
6174
|
args: [{
|
|
5898
6175
|
standalone: true,
|
|
@@ -5918,16 +6195,16 @@ urlParams, url, nonce) {
|
|
|
5918
6195
|
const loader = { loadScript };
|
|
5919
6196
|
|
|
5920
6197
|
class ReCaptchaService {
|
|
6198
|
+
isBrowser = true;
|
|
6199
|
+
siteKey;
|
|
6200
|
+
zone;
|
|
6201
|
+
actionBacklog;
|
|
6202
|
+
grecaptcha;
|
|
6203
|
+
onExecuteSubject;
|
|
6204
|
+
onExecuteErrorSubject;
|
|
6205
|
+
onExecuteObservable;
|
|
6206
|
+
onExecuteErrorObservable;
|
|
5921
6207
|
constructor(zone, siteKey) {
|
|
5922
|
-
this.isBrowser = true;
|
|
5923
|
-
/** @internal */
|
|
5924
|
-
this.onLoadComplete = (grecaptcha) => {
|
|
5925
|
-
this.grecaptcha = grecaptcha;
|
|
5926
|
-
if (this.actionBacklog && this.actionBacklog.length > 0) {
|
|
5927
|
-
this.actionBacklog.forEach(([action, subject]) => this.executeActionWithSubject(action, subject));
|
|
5928
|
-
this.actionBacklog = undefined;
|
|
5929
|
-
}
|
|
5930
|
-
};
|
|
5931
6208
|
this.zone = zone;
|
|
5932
6209
|
this.siteKey = siteKey;
|
|
5933
6210
|
this.init();
|
|
@@ -6019,10 +6296,18 @@ class ReCaptchaService {
|
|
|
6019
6296
|
}
|
|
6020
6297
|
}
|
|
6021
6298
|
}
|
|
6022
|
-
|
|
6023
|
-
|
|
6299
|
+
/** @internal */
|
|
6300
|
+
onLoadComplete = (grecaptcha) => {
|
|
6301
|
+
this.grecaptcha = grecaptcha;
|
|
6302
|
+
if (this.actionBacklog && this.actionBacklog.length > 0) {
|
|
6303
|
+
this.actionBacklog.forEach(([action, subject]) => this.executeActionWithSubject(action, subject));
|
|
6304
|
+
this.actionBacklog = undefined;
|
|
6305
|
+
}
|
|
6306
|
+
};
|
|
6307
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ReCaptchaService, deps: [{ token: i0.NgZone }, { token: RECAPTCHA_SITE_KEY, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
6308
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ReCaptchaService });
|
|
6024
6309
|
}
|
|
6025
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
6310
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ReCaptchaService, decorators: [{
|
|
6026
6311
|
type: Injectable
|
|
6027
6312
|
}], ctorParameters: () => [{ type: i0.NgZone }, { type: undefined, decorators: [{
|
|
6028
6313
|
type: Optional
|
|
@@ -6048,11 +6333,11 @@ class RecaptchaModule {
|
|
|
6048
6333
|
static forChild(config) {
|
|
6049
6334
|
return this.forRoot(config);
|
|
6050
6335
|
}
|
|
6051
|
-
static
|
|
6052
|
-
static
|
|
6053
|
-
static
|
|
6336
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: RecaptchaModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
6337
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.6", ngImport: i0, type: RecaptchaModule });
|
|
6338
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: RecaptchaModule, providers: [ReCaptchaService] });
|
|
6054
6339
|
}
|
|
6055
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
6340
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: RecaptchaModule, decorators: [{
|
|
6056
6341
|
type: NgModule,
|
|
6057
6342
|
args: [{
|
|
6058
6343
|
providers: [ReCaptchaService]
|
|
@@ -6067,18 +6352,14 @@ const ZEK_SELECT_MULTIPLE_CONTROL_VALUE_ACCESSOR = {
|
|
|
6067
6352
|
class ZekSelectMultiple extends CoreUiComponent {
|
|
6068
6353
|
constructor(renderer, elementRef) {
|
|
6069
6354
|
super(renderer, elementRef);
|
|
6070
|
-
this._uniqueId = `zek-select-${this.uniqueId}`;
|
|
6071
|
-
/** The unique ID for the radio button. */
|
|
6072
|
-
this.id = this._uniqueId;
|
|
6073
|
-
this.css = 'primary';
|
|
6074
|
-
this._placeholder = '';
|
|
6075
|
-
this._label = '';
|
|
6076
|
-
this._multiple = true;
|
|
6077
|
-
this._selected = [];
|
|
6078
|
-
this._data = [];
|
|
6079
|
-
this.normalized = [];
|
|
6080
|
-
this._text = '';
|
|
6081
6355
|
}
|
|
6356
|
+
_uniqueId = `zek-select-${this.uniqueId}`;
|
|
6357
|
+
/** The unique ID for the radio button. */
|
|
6358
|
+
id = this._uniqueId;
|
|
6359
|
+
valueField;
|
|
6360
|
+
textField;
|
|
6361
|
+
checkedTextField;
|
|
6362
|
+
css = 'primary';
|
|
6082
6363
|
get placeholder() {
|
|
6083
6364
|
return this._placeholder;
|
|
6084
6365
|
}
|
|
@@ -6088,6 +6369,7 @@ class ZekSelectMultiple extends CoreUiComponent {
|
|
|
6088
6369
|
else
|
|
6089
6370
|
this._placeholder = '';
|
|
6090
6371
|
}
|
|
6372
|
+
_placeholder = '';
|
|
6091
6373
|
get label() {
|
|
6092
6374
|
return this._label;
|
|
6093
6375
|
}
|
|
@@ -6097,12 +6379,15 @@ class ZekSelectMultiple extends CoreUiComponent {
|
|
|
6097
6379
|
else
|
|
6098
6380
|
this._label = '';
|
|
6099
6381
|
}
|
|
6382
|
+
_label = '';
|
|
6100
6383
|
get multiple() {
|
|
6101
6384
|
return this._multiple;
|
|
6102
6385
|
}
|
|
6103
6386
|
set multiple(value) {
|
|
6104
6387
|
this._multiple = Convert.toBooleanProperty(value);
|
|
6105
6388
|
}
|
|
6389
|
+
_multiple = true;
|
|
6390
|
+
_selected = [];
|
|
6106
6391
|
get data() {
|
|
6107
6392
|
return this._data;
|
|
6108
6393
|
}
|
|
@@ -6112,12 +6397,15 @@ class ZekSelectMultiple extends CoreUiComponent {
|
|
|
6112
6397
|
this.onDataChanged();
|
|
6113
6398
|
}
|
|
6114
6399
|
}
|
|
6400
|
+
_data = [];
|
|
6401
|
+
normalized = [];
|
|
6115
6402
|
onDataChanged() {
|
|
6116
6403
|
this._setSelectionByValue(this._value);
|
|
6117
6404
|
if (this.isInitialized) {
|
|
6118
6405
|
this._normalizeData();
|
|
6119
6406
|
}
|
|
6120
6407
|
}
|
|
6408
|
+
_text = '';
|
|
6121
6409
|
onValueChanged() {
|
|
6122
6410
|
if (Array.isArray(this._data)) {
|
|
6123
6411
|
this._setSelectionByValue(this._value);
|
|
@@ -6224,10 +6512,10 @@ class ZekSelectMultiple extends CoreUiComponent {
|
|
|
6224
6512
|
this._text = this._selected.join(', ');
|
|
6225
6513
|
}
|
|
6226
6514
|
}
|
|
6227
|
-
static
|
|
6228
|
-
static
|
|
6515
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekSelectMultiple, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
6516
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.6", type: ZekSelectMultiple, isStandalone: true, selector: "zek-select,[zek-select]", inputs: { id: "id", valueField: "valueField", textField: "textField", checkedTextField: "checkedTextField", css: "css", placeholder: "placeholder", label: "label", multiple: "multiple", data: "data" }, providers: [ZEK_SELECT_MULTIPLE_CONTROL_VALUE_ACCESSOR], usesInheritance: true, ngImport: i0, template: "<div class=\"dropdown\" id=\"dropdown-{{id}}\">\r\n <button class=\"btn btn-{{css}} dropdown-toggle\" type=\"button\" data-bs-toggle=\"dropdown\" aria-expanded=\"false\">\r\n {{label}} <ng-container *ngIf=\"!_text\">{{placeholder}}</ng-container> {{_text}}\r\n </button>\r\n <ul class=\"dropdown-menu\">\r\n <ng-container *ngIf=\"normalized\">\r\n <li><a class=\"dropdown-item\" href=\"javascript:void(0)\" *ngFor=\"let item of normalized\" (click)=\"toggleChecked(item)\">\r\n <span *ngIf=\"item.checked\"><i class=\"fa-regular fa-square-check\"></i></span>\r\n <span *ngIf=\"!item.checked\"><i class=\"fa-regular fa-square\"></i></span>\r\n {{item.value}}\r\n </a></li>\r\n </ng-container>\r\n </ul>\r\n</div>", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }] });
|
|
6229
6517
|
}
|
|
6230
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
6518
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekSelectMultiple, decorators: [{
|
|
6231
6519
|
type: Component,
|
|
6232
6520
|
args: [{ standalone: true, selector: 'zek-select,[zek-select]', providers: [ZEK_SELECT_MULTIPLE_CONTROL_VALUE_ACCESSOR], imports: [
|
|
6233
6521
|
CommonModule,
|
|
@@ -6254,14 +6542,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
6254
6542
|
}] } });
|
|
6255
6543
|
|
|
6256
6544
|
class ZekSelect2 {
|
|
6257
|
-
|
|
6258
|
-
|
|
6259
|
-
|
|
6260
|
-
|
|
6261
|
-
this.placeholder = '';
|
|
6262
|
-
this.selectedItemChange = new EventEmitter();
|
|
6263
|
-
this.valueChange = new EventEmitter();
|
|
6264
|
-
}
|
|
6545
|
+
filter;
|
|
6546
|
+
text;
|
|
6547
|
+
elementId = RandomHelper.randomHex();
|
|
6548
|
+
_data = [];
|
|
6265
6549
|
get data() {
|
|
6266
6550
|
return this._data;
|
|
6267
6551
|
}
|
|
@@ -6272,9 +6556,17 @@ class ZekSelect2 {
|
|
|
6272
6556
|
this.filterData();
|
|
6273
6557
|
}
|
|
6274
6558
|
}
|
|
6559
|
+
filteredData = [];
|
|
6560
|
+
textField;
|
|
6561
|
+
valueField;
|
|
6562
|
+
placeholder = '';
|
|
6563
|
+
selectedItemChange = new EventEmitter();
|
|
6564
|
+
_selectedItem;
|
|
6275
6565
|
get selectedItem() {
|
|
6276
6566
|
return this._selectedItem;
|
|
6277
6567
|
}
|
|
6568
|
+
valueChange = new EventEmitter();
|
|
6569
|
+
_value;
|
|
6278
6570
|
get value() {
|
|
6279
6571
|
return this._value;
|
|
6280
6572
|
}
|
|
@@ -6396,10 +6688,10 @@ class ZekSelect2 {
|
|
|
6396
6688
|
}
|
|
6397
6689
|
}
|
|
6398
6690
|
}
|
|
6399
|
-
static
|
|
6400
|
-
static
|
|
6691
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekSelect2, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
6692
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.6", type: ZekSelect2, isStandalone: true, selector: "zek-select2,[zek-select2]", inputs: { data: "data", textField: "textField", valueField: "valueField", placeholder: "placeholder", value: "value" }, outputs: { selectedItemChange: "selectedItemChange", valueChange: "valueChange" }, ngImport: i0, template: "<div class=\"input-group position-relative\" id=\"dropdown-menu-container-{{elementId}}\">\r\n <input type=\"text\" class=\"form-control\" placeholder=\"{{placeholder}}\" data-bs-toggle=\"dropdown\" id=\"input-{{elementId}}\" [(ngModel)]=\"text\" (ngModelChange)=\"onTextChange($event)\" (focus)=\"onFocus($event)\" (blur)=\"inputUnfocused()\">\r\n <button class=\"btn btn-outline-secondary dropdown-toggle\" id=\"btn-{{elementId}}\" type=\"button\" data-bs-toggle=\"dropdown\" aria-expanded=\"false\" data-bs-reference=\"parent\"></button>\r\n <ul class=\"dropdown-menu dropdown-menu-start w-100 scrollable-menu\" id=\"dropdown-menu-{{elementId}}\">\r\n <ng-container *ngIf=\"textField\">\r\n <li *ngFor=\"let entry of filteredData\">\r\n <a href=\"javascript:void(0)\" (click)=\"selectItem(entry)\" class=\"dropdown-item\">{{entry[textField]}}</a>\r\n </li>\r\n </ng-container>\r\n <ng-container *ngIf=\"!textField\">\r\n <li *ngFor=\"let entry of filteredData\">\r\n <a href=\"javascript:void(0)\" (click)=\"selectItem(entry)\" class=\"dropdown-item\">{{textField}}</a>\r\n </li>\r\n </ng-container>\r\n </ul>\r\n</div>\r\n<!-- <kendo-autocomplete\r\n [data]=\"data\"\r\n [filterable]=\"true\"\r\n (valueChange)=\"valueChange($event)\"\r\n (filterChange)=\"filterChange($event)\"\r\n (open)=\"open()\"\r\n (close)=\"close()\"\r\n (focus)=\"focus()\"\r\n (blur)=\"blur()\">\r\n</kendo-autocomplete> -->", styles: [".scrollable-menu{max-height:400px;overflow-y:auto}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }] });
|
|
6401
6693
|
}
|
|
6402
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
6694
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekSelect2, decorators: [{
|
|
6403
6695
|
type: Component,
|
|
6404
6696
|
args: [{ standalone: true, selector: 'zek-select2,[zek-select2]', imports: [CommonModule, FormsModule], template: "<div class=\"input-group position-relative\" id=\"dropdown-menu-container-{{elementId}}\">\r\n <input type=\"text\" class=\"form-control\" placeholder=\"{{placeholder}}\" data-bs-toggle=\"dropdown\" id=\"input-{{elementId}}\" [(ngModel)]=\"text\" (ngModelChange)=\"onTextChange($event)\" (focus)=\"onFocus($event)\" (blur)=\"inputUnfocused()\">\r\n <button class=\"btn btn-outline-secondary dropdown-toggle\" id=\"btn-{{elementId}}\" type=\"button\" data-bs-toggle=\"dropdown\" aria-expanded=\"false\" data-bs-reference=\"parent\"></button>\r\n <ul class=\"dropdown-menu dropdown-menu-start w-100 scrollable-menu\" id=\"dropdown-menu-{{elementId}}\">\r\n <ng-container *ngIf=\"textField\">\r\n <li *ngFor=\"let entry of filteredData\">\r\n <a href=\"javascript:void(0)\" (click)=\"selectItem(entry)\" class=\"dropdown-item\">{{entry[textField]}}</a>\r\n </li>\r\n </ng-container>\r\n <ng-container *ngIf=\"!textField\">\r\n <li *ngFor=\"let entry of filteredData\">\r\n <a href=\"javascript:void(0)\" (click)=\"selectItem(entry)\" class=\"dropdown-item\">{{textField}}</a>\r\n </li>\r\n </ng-container>\r\n </ul>\r\n</div>\r\n<!-- <kendo-autocomplete\r\n [data]=\"data\"\r\n [filterable]=\"true\"\r\n (valueChange)=\"valueChange($event)\"\r\n (filterChange)=\"filterChange($event)\"\r\n (open)=\"open()\"\r\n (close)=\"close()\"\r\n (focus)=\"focus()\"\r\n (blur)=\"blur()\">\r\n</kendo-autocomplete> -->", styles: [".scrollable-menu{max-height:400px;overflow-y:auto}\n"] }]
|
|
6405
6697
|
}], propDecorators: { data: [{
|
|
@@ -6420,15 +6712,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
6420
6712
|
|
|
6421
6713
|
//declare let bootstrap: any;
|
|
6422
6714
|
class ZekSelect2Multiple {
|
|
6423
|
-
|
|
6424
|
-
|
|
6425
|
-
|
|
6426
|
-
|
|
6427
|
-
this.placeholder = '';
|
|
6428
|
-
this.selectedItemChange = new EventEmitter();
|
|
6429
|
-
this._selectedItems = [];
|
|
6430
|
-
this.valueChange = new EventEmitter();
|
|
6431
|
-
}
|
|
6715
|
+
filter;
|
|
6716
|
+
text;
|
|
6717
|
+
elementId = RandomHelper.randomHex();
|
|
6718
|
+
_data = [];
|
|
6432
6719
|
get data() {
|
|
6433
6720
|
return this._data;
|
|
6434
6721
|
}
|
|
@@ -6439,9 +6726,18 @@ class ZekSelect2Multiple {
|
|
|
6439
6726
|
this.filterData();
|
|
6440
6727
|
}
|
|
6441
6728
|
}
|
|
6729
|
+
filteredData = [];
|
|
6730
|
+
textField;
|
|
6731
|
+
selectedField;
|
|
6732
|
+
valueField;
|
|
6733
|
+
placeholder = '';
|
|
6734
|
+
selectedItemChange = new EventEmitter();
|
|
6735
|
+
_selectedItems = [];
|
|
6442
6736
|
get selectedItems() {
|
|
6443
6737
|
return this._selectedItems;
|
|
6444
6738
|
}
|
|
6739
|
+
valueChange = new EventEmitter();
|
|
6740
|
+
_value;
|
|
6445
6741
|
get value() {
|
|
6446
6742
|
return this._value;
|
|
6447
6743
|
}
|
|
@@ -6524,10 +6820,10 @@ class ZekSelect2Multiple {
|
|
|
6524
6820
|
this._value = v;
|
|
6525
6821
|
this.valueChange.emit(v);
|
|
6526
6822
|
}
|
|
6527
|
-
static
|
|
6528
|
-
static
|
|
6823
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekSelect2Multiple, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
6824
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.6", type: ZekSelect2Multiple, isStandalone: true, selector: "zek-select2-multiple,[zek-select2-multiple]", inputs: { data: "data", textField: "textField", selectedField: "selectedField", valueField: "valueField", placeholder: "placeholder", value: "value" }, outputs: { selectedItemChange: "selectedItemChange", valueChange: "valueChange" }, ngImport: i0, template: "<div class=\"input-group position-relative\" id=\"dropdown-menu-container-{{elementId}}\">\r\n <input type=\"text\" class=\"form-control\" placeholder=\"{{placeholder}}\" data-bs-toggle=\"dropdown\" data-bs-auto-close=\"outside\" id=\"input-{{elementId}}\" [(ngModel)]=\"text\" (ngModelChange)=\"onTextChange($event)\" (focus)=\"onFocus($event)\" (blur)=\"inputUnfocused()\">\r\n <button class=\"btn btn-outline-secondary dropdown-toggle\" id=\"btn-{{elementId}}\" type=\"button\" data-bs-toggle=\"dropdown\" aria-expanded=\"false\" data-bs-reference=\"parent\"></button>\r\n <ul class=\"dropdown-menu dropdown-menu-start w-100 scrollable-menu\" id=\"dropdown-menu-{{elementId}}\">\r\n <ng-container *ngIf=\"textField\">\r\n <li *ngFor=\"let item of filteredData\">\r\n <a href=\"javascript:void(0)\" (click)=\"selectItem(item)\" class=\"dropdown-item\">\r\n <span *ngIf=\"item.selected\"><i class=\"fa-regular fa-square-check\"></i></span>\r\n <span *ngIf=\"!item.selected\"><i class=\"fa-regular fa-square\"></i></span>\r\n {{item[textField]}}\r\n </a>\r\n </li>\r\n </ng-container>\r\n <ng-container *ngIf=\"!textField\">\r\n <li *ngFor=\"let item of filteredData\">\r\n <a href=\"javascript:void(0)\" (click)=\"selectItem(item)\" class=\"dropdown-item\">\r\n <span *ngIf=\"item.selected\"><i class=\"fa-regular fa-square-check\"></i></span>\r\n <span *ngIf=\"!item.selected\"><i class=\"fa-regular fa-square\"></i></span>\r\n {{item}}\r\n </a>\r\n </li>\r\n </ng-container>\r\n </ul>\r\n</div>", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }] });
|
|
6529
6825
|
}
|
|
6530
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
6826
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekSelect2Multiple, decorators: [{
|
|
6531
6827
|
type: Component,
|
|
6532
6828
|
args: [{ standalone: true, selector: 'zek-select2-multiple,[zek-select2-multiple]', imports: [CommonModule, FormsModule], template: "<div class=\"input-group position-relative\" id=\"dropdown-menu-container-{{elementId}}\">\r\n <input type=\"text\" class=\"form-control\" placeholder=\"{{placeholder}}\" data-bs-toggle=\"dropdown\" data-bs-auto-close=\"outside\" id=\"input-{{elementId}}\" [(ngModel)]=\"text\" (ngModelChange)=\"onTextChange($event)\" (focus)=\"onFocus($event)\" (blur)=\"inputUnfocused()\">\r\n <button class=\"btn btn-outline-secondary dropdown-toggle\" id=\"btn-{{elementId}}\" type=\"button\" data-bs-toggle=\"dropdown\" aria-expanded=\"false\" data-bs-reference=\"parent\"></button>\r\n <ul class=\"dropdown-menu dropdown-menu-start w-100 scrollable-menu\" id=\"dropdown-menu-{{elementId}}\">\r\n <ng-container *ngIf=\"textField\">\r\n <li *ngFor=\"let item of filteredData\">\r\n <a href=\"javascript:void(0)\" (click)=\"selectItem(item)\" class=\"dropdown-item\">\r\n <span *ngIf=\"item.selected\"><i class=\"fa-regular fa-square-check\"></i></span>\r\n <span *ngIf=\"!item.selected\"><i class=\"fa-regular fa-square\"></i></span>\r\n {{item[textField]}}\r\n </a>\r\n </li>\r\n </ng-container>\r\n <ng-container *ngIf=\"!textField\">\r\n <li *ngFor=\"let item of filteredData\">\r\n <a href=\"javascript:void(0)\" (click)=\"selectItem(item)\" class=\"dropdown-item\">\r\n <span *ngIf=\"item.selected\"><i class=\"fa-regular fa-square-check\"></i></span>\r\n <span *ngIf=\"!item.selected\"><i class=\"fa-regular fa-square\"></i></span>\r\n {{item}}\r\n </a>\r\n </li>\r\n </ng-container>\r\n </ul>\r\n</div>" }]
|
|
6533
6829
|
}], propDecorators: { data: [{
|
|
@@ -6549,27 +6845,26 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
6549
6845
|
}] } });
|
|
6550
6846
|
|
|
6551
6847
|
class ZekSort {
|
|
6848
|
+
el;
|
|
6849
|
+
innerHtml = '';
|
|
6850
|
+
/**
|
|
6851
|
+
* name of sorting column
|
|
6852
|
+
*/
|
|
6853
|
+
header = null;
|
|
6854
|
+
/**
|
|
6855
|
+
* Executes after 'sort' input changed
|
|
6856
|
+
*/
|
|
6857
|
+
sortChange = new EventEmitter();
|
|
6858
|
+
/**
|
|
6859
|
+
* Executes after 'asc' input changed
|
|
6860
|
+
*/
|
|
6861
|
+
ascChange = new EventEmitter();
|
|
6862
|
+
/**
|
|
6863
|
+
* Executes after click on column
|
|
6864
|
+
*/
|
|
6865
|
+
onChange = new EventEmitter();
|
|
6552
6866
|
constructor(el /*, renderer: Renderer, private templateRef: TemplateRef<any>, private viewContainer: ViewContainerRef */) {
|
|
6553
6867
|
this.el = el;
|
|
6554
|
-
this.innerHtml = '';
|
|
6555
|
-
/**
|
|
6556
|
-
* name of sorting column
|
|
6557
|
-
*/
|
|
6558
|
-
this.header = null;
|
|
6559
|
-
/**
|
|
6560
|
-
* Executes after 'sort' input changed
|
|
6561
|
-
*/
|
|
6562
|
-
this.sortChange = new EventEmitter();
|
|
6563
|
-
/**
|
|
6564
|
-
* Executes after 'asc' input changed
|
|
6565
|
-
*/
|
|
6566
|
-
this.ascChange = new EventEmitter();
|
|
6567
|
-
/**
|
|
6568
|
-
* Executes after click on column
|
|
6569
|
-
*/
|
|
6570
|
-
this.onChange = new EventEmitter();
|
|
6571
|
-
this._sort = null;
|
|
6572
|
-
this._asc = false;
|
|
6573
6868
|
}
|
|
6574
6869
|
// @Input() set myIf(shouldAdd: boolean) {
|
|
6575
6870
|
// if (shouldAdd) {
|
|
@@ -6622,6 +6917,7 @@ class ZekSort {
|
|
|
6622
6917
|
}
|
|
6623
6918
|
this.onChange.emit();
|
|
6624
6919
|
}
|
|
6920
|
+
_sort = null;
|
|
6625
6921
|
get sort() {
|
|
6626
6922
|
return this._sort;
|
|
6627
6923
|
}
|
|
@@ -6631,6 +6927,7 @@ class ZekSort {
|
|
|
6631
6927
|
this.initIcon();
|
|
6632
6928
|
}
|
|
6633
6929
|
}
|
|
6930
|
+
_asc = false;
|
|
6634
6931
|
get asc() {
|
|
6635
6932
|
return this._asc;
|
|
6636
6933
|
}
|
|
@@ -6640,10 +6937,10 @@ class ZekSort {
|
|
|
6640
6937
|
this.initIcon();
|
|
6641
6938
|
}
|
|
6642
6939
|
}
|
|
6643
|
-
static
|
|
6644
|
-
static
|
|
6940
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekSort, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
6941
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.6", type: ZekSort, isStandalone: true, selector: "[zek-sort]", inputs: { header: "header", sort: "sort", asc: "asc" }, outputs: { sortChange: "sortChange", ascChange: "ascChange", onChange: "onChange" }, host: { listeners: { "click": "onClick()" } }, ngImport: i0 });
|
|
6645
6942
|
}
|
|
6646
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
6943
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekSort, decorators: [{
|
|
6647
6944
|
type: Directive,
|
|
6648
6945
|
args: [{
|
|
6649
6946
|
standalone: true,
|
|
@@ -6667,6 +6964,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
6667
6964
|
}] } });
|
|
6668
6965
|
|
|
6669
6966
|
class ZekSortButtonGroup {
|
|
6967
|
+
elementName = '';
|
|
6968
|
+
/**
|
|
6969
|
+
* Executes after 'sort' input changed
|
|
6970
|
+
*/
|
|
6971
|
+
sortChange = new EventEmitter();
|
|
6972
|
+
/**
|
|
6973
|
+
* Executes after 'asc' input changed
|
|
6974
|
+
*/
|
|
6975
|
+
ascChange = new EventEmitter();
|
|
6976
|
+
/**
|
|
6977
|
+
* Executes after click on column
|
|
6978
|
+
*/
|
|
6979
|
+
onChange = new EventEmitter();
|
|
6980
|
+
sortField;
|
|
6981
|
+
_sort = null;
|
|
6670
6982
|
get sort() {
|
|
6671
6983
|
return this._sort;
|
|
6672
6984
|
}
|
|
@@ -6675,6 +6987,7 @@ class ZekSortButtonGroup {
|
|
|
6675
6987
|
this._sort = value;
|
|
6676
6988
|
}
|
|
6677
6989
|
}
|
|
6990
|
+
_asc = false;
|
|
6678
6991
|
get asc() {
|
|
6679
6992
|
return this._asc;
|
|
6680
6993
|
}
|
|
@@ -6683,26 +6996,11 @@ class ZekSortButtonGroup {
|
|
|
6683
6996
|
this._asc = value;
|
|
6684
6997
|
}
|
|
6685
6998
|
}
|
|
6999
|
+
sortFields = null;
|
|
6686
7000
|
/**
|
|
6687
7001
|
* Default constructor
|
|
6688
7002
|
*/
|
|
6689
7003
|
constructor() {
|
|
6690
|
-
this.elementName = '';
|
|
6691
|
-
/**
|
|
6692
|
-
* Executes after 'sort' input changed
|
|
6693
|
-
*/
|
|
6694
|
-
this.sortChange = new EventEmitter();
|
|
6695
|
-
/**
|
|
6696
|
-
* Executes after 'asc' input changed
|
|
6697
|
-
*/
|
|
6698
|
-
this.ascChange = new EventEmitter();
|
|
6699
|
-
/**
|
|
6700
|
-
* Executes after click on column
|
|
6701
|
-
*/
|
|
6702
|
-
this.onChange = new EventEmitter();
|
|
6703
|
-
this._sort = null;
|
|
6704
|
-
this._asc = false;
|
|
6705
|
-
this.sortFields = null;
|
|
6706
7004
|
this.elementName = 'sort-button-group-' + RandomHelper.randomHex();
|
|
6707
7005
|
}
|
|
6708
7006
|
sortFieldClick(item) {
|
|
@@ -6720,10 +7018,10 @@ class ZekSortButtonGroup {
|
|
|
6720
7018
|
this.ascChange.emit(this.asc);
|
|
6721
7019
|
this.onChange.emit();
|
|
6722
7020
|
}
|
|
6723
|
-
static
|
|
6724
|
-
static
|
|
7021
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekSortButtonGroup, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
7022
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.6", type: ZekSortButtonGroup, isStandalone: true, selector: "zek-sort-button-group", inputs: { sort: "sort", asc: "asc", sortFields: "sortFields" }, outputs: { sortChange: "sortChange", ascChange: "ascChange", onChange: "onChange" }, ngImport: i0, template: "<div class=\"btn-group me-3\" role=\"group\" aria-label=\"Sort group\">\r\n <button type=\"button\" class=\"btn btn-light\" (click)=\"ascDescClick()\">\r\n <span *ngIf=\"asc === undefined || asc === null\"><i class=\"fa-solid fa-sort fa-fw\"></i></span>\r\n <span *ngIf=\"asc === true\"><i class=\"fa-solid fa-arrow-down-z-a fa-fw\"></i></span>\r\n <span *ngIf=\"asc === false\"><i class=\"fa-solid fa-arrow-up-z-a fa-fw\"></i></span>\r\n </button>\r\n <button *ngIf=\"sortFields && sortFields.length > 0\" class=\"btn btn-light dropdown-toggle\" type=\"button\" id=\"{{elementName}}\" data-bs-toggle=\"dropdown\" aria-expanded=\"false\">\r\n <ng-container *ngIf=\"sortField; else elseFieldBlock\">{{ sortField.value | translate }}</ng-container>\r\n <ng-template #elseFieldBlock>{{ 'Action.Sort' | translate }}</ng-template>\r\n </button>\r\n <ul *ngIf=\"sortFields && sortFields.length > 0\" class=\"dropdown-menu\" [attr.aria-labelledby]=\"elementName\">\r\n <li><a *ngFor=\"let item of sortFields\" class=\"dropdown-item\" href=\"javascript:void(0)\" (click)=\"sortFieldClick(item)\">{{ (item.value) | translate }}</a></li>\r\n </ul>\r\n</div><i class=\"\"></i>", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }] });
|
|
6725
7023
|
}
|
|
6726
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
7024
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekSortButtonGroup, decorators: [{
|
|
6727
7025
|
type: Component,
|
|
6728
7026
|
args: [{ standalone: true, selector: 'zek-sort-button-group', imports: [CommonModule, TranslateModule], template: "<div class=\"btn-group me-3\" role=\"group\" aria-label=\"Sort group\">\r\n <button type=\"button\" class=\"btn btn-light\" (click)=\"ascDescClick()\">\r\n <span *ngIf=\"asc === undefined || asc === null\"><i class=\"fa-solid fa-sort fa-fw\"></i></span>\r\n <span *ngIf=\"asc === true\"><i class=\"fa-solid fa-arrow-down-z-a fa-fw\"></i></span>\r\n <span *ngIf=\"asc === false\"><i class=\"fa-solid fa-arrow-up-z-a fa-fw\"></i></span>\r\n </button>\r\n <button *ngIf=\"sortFields && sortFields.length > 0\" class=\"btn btn-light dropdown-toggle\" type=\"button\" id=\"{{elementName}}\" data-bs-toggle=\"dropdown\" aria-expanded=\"false\">\r\n <ng-container *ngIf=\"sortField; else elseFieldBlock\">{{ sortField.value | translate }}</ng-container>\r\n <ng-template #elseFieldBlock>{{ 'Action.Sort' | translate }}</ng-template>\r\n </button>\r\n <ul *ngIf=\"sortFields && sortFields.length > 0\" class=\"dropdown-menu\" [attr.aria-labelledby]=\"elementName\">\r\n <li><a *ngFor=\"let item of sortFields\" class=\"dropdown-item\" href=\"javascript:void(0)\" (click)=\"sortFieldClick(item)\">{{ (item.value) | translate }}</a></li>\r\n </ul>\r\n</div><i class=\"\"></i>" }]
|
|
6729
7027
|
}], ctorParameters: () => [], propDecorators: { sortChange: [{
|
|
@@ -6741,17 +7039,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
6741
7039
|
}] } });
|
|
6742
7040
|
|
|
6743
7041
|
class ZekTag extends CoreUiComponent {
|
|
6744
|
-
|
|
6745
|
-
|
|
6746
|
-
this.modelChange = new EventEmitter();
|
|
6747
|
-
this._max = 1000000000;
|
|
6748
|
-
this._maxlength = null;
|
|
6749
|
-
this._duplicate = false;
|
|
6750
|
-
this.text = null;
|
|
6751
|
-
this._uniqueId = `zek-tag-${this.uniqueId}`;
|
|
6752
|
-
/** The unique ID for the tag. */
|
|
6753
|
-
this.id = this._uniqueId;
|
|
6754
|
-
}
|
|
7042
|
+
model;
|
|
7043
|
+
modelChange = new EventEmitter();
|
|
6755
7044
|
get max() {
|
|
6756
7045
|
return this._max;
|
|
6757
7046
|
}
|
|
@@ -6761,6 +7050,8 @@ class ZekTag extends CoreUiComponent {
|
|
|
6761
7050
|
this._max = tmp;
|
|
6762
7051
|
}
|
|
6763
7052
|
}
|
|
7053
|
+
_max = 1000000000;
|
|
7054
|
+
_maxlength = null;
|
|
6764
7055
|
get maxlength() {
|
|
6765
7056
|
return this._maxlength;
|
|
6766
7057
|
}
|
|
@@ -6774,12 +7065,14 @@ class ZekTag extends CoreUiComponent {
|
|
|
6774
7065
|
}
|
|
6775
7066
|
this._maxlength = tmp;
|
|
6776
7067
|
}
|
|
7068
|
+
_duplicate = false;
|
|
6777
7069
|
get duplicate() {
|
|
6778
7070
|
return this._duplicate;
|
|
6779
7071
|
}
|
|
6780
7072
|
set duplicate(v) {
|
|
6781
7073
|
this._duplicate = Convert.toBooleanProperty(v);
|
|
6782
7074
|
}
|
|
7075
|
+
text = null;
|
|
6783
7076
|
onKeyEnter(e) {
|
|
6784
7077
|
e.preventDefault();
|
|
6785
7078
|
e.stopPropagation();
|
|
@@ -6787,6 +7080,9 @@ class ZekTag extends CoreUiComponent {
|
|
|
6787
7080
|
this.text = null;
|
|
6788
7081
|
}
|
|
6789
7082
|
}
|
|
7083
|
+
_uniqueId = `zek-tag-${this.uniqueId}`;
|
|
7084
|
+
/** The unique ID for the tag. */
|
|
7085
|
+
id = this._uniqueId;
|
|
6790
7086
|
get inputId() {
|
|
6791
7087
|
return `${this.id || this._uniqueId}-input`;
|
|
6792
7088
|
}
|
|
@@ -6821,10 +7117,10 @@ class ZekTag extends CoreUiComponent {
|
|
|
6821
7117
|
this.model.splice(index, 1);
|
|
6822
7118
|
}
|
|
6823
7119
|
}
|
|
6824
|
-
static
|
|
6825
|
-
static
|
|
7120
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekTag, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
7121
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.6", type: ZekTag, isStandalone: true, selector: "zek-tag", inputs: { model: "model", max: "max", maxlength: "maxlength", duplicate: "duplicate", id: "id" }, outputs: { modelChange: "modelChange" }, host: { properties: { "attr.id": "id" } }, usesInheritance: true, ngImport: i0, template: "<div class=\"d-flex flex-wrap align-items-center gap-1 form-control\">\r\n <ng-container *ngIf=\"model\">\r\n <button *ngFor=\"let item of model\" type=\"button\" (click)=\"remove(item)\" class=\"align-items-center gap-1 d-inline-flex py-0 border-0 btn btn-primary\">{{item}}<span class=\"d-inline-flex\" role=\"button\" tabindex=\"-1\"><i class=\"fa-solid fa-xmark\"></i></span></button>\r\n </ng-container>\r\n <div class=\"input-wrapper\"><span>i</span><input type=\"text\"\r\n [id]=\"inputId\"\r\n [name]=\"inputId\"\r\n [(ngModel)]=\"text\"\r\n [maxlength]=\"maxlength\"\r\n (keydown.enter)=\"onKeyEnter($event)\"></div>\r\n</div>", styles: [".input-wrapper{position:relative;min-width:4px;flex-grow:1;white-space:nowrap}.input-wrapper>span{visibility:hidden}.input-wrapper input[type=text]{position:absolute;top:0;left:0;padding:0;outline:0;border:0;width:100%;background-color:transparent}.input-wrapper input[type=text]::placeholder{color:#212529bf;opacity:1}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$1.MaxLengthValidator, selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", inputs: ["maxlength"] }, { kind: "directive", type: i2$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }] });
|
|
6826
7122
|
}
|
|
6827
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
7123
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekTag, decorators: [{
|
|
6828
7124
|
type: Component,
|
|
6829
7125
|
args: [{ standalone: true, imports: [CommonModule, FormsModule], selector: 'zek-tag', host: {
|
|
6830
7126
|
'[attr.id]': 'id',
|
|
@@ -6845,6 +7141,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
6845
7141
|
|
|
6846
7142
|
//import { toDate } from '../../extensions';
|
|
6847
7143
|
class TimePipe {
|
|
7144
|
+
_datePipe;
|
|
6848
7145
|
constructor(_datePipe) {
|
|
6849
7146
|
this._datePipe = _datePipe;
|
|
6850
7147
|
}
|
|
@@ -6870,24 +7167,25 @@ class TimePipe {
|
|
|
6870
7167
|
isValidDate(d) {
|
|
6871
7168
|
return d instanceof Date && !isNaN(d.getTime());
|
|
6872
7169
|
}
|
|
6873
|
-
static
|
|
6874
|
-
static
|
|
7170
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: TimePipe, deps: [{ token: i1$2.DatePipe }], target: i0.ɵɵFactoryTarget.Pipe });
|
|
7171
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.0.6", ngImport: i0, type: TimePipe, isStandalone: false, name: "time" });
|
|
6875
7172
|
}
|
|
6876
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
7173
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: TimePipe, decorators: [{
|
|
6877
7174
|
type: Pipe,
|
|
6878
7175
|
args: [{
|
|
7176
|
+
standalone: false,
|
|
6879
7177
|
name: 'time'
|
|
6880
7178
|
}]
|
|
6881
7179
|
}], ctorParameters: () => [{ type: i1$2.DatePipe }] });
|
|
6882
7180
|
|
|
6883
7181
|
class TimeModule {
|
|
6884
|
-
static
|
|
6885
|
-
static
|
|
6886
|
-
static
|
|
7182
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: TimeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
7183
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.6", ngImport: i0, type: TimeModule, declarations: [TimePipe], imports: [CommonModule], exports: [TimePipe] });
|
|
7184
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: TimeModule, providers: [
|
|
6887
7185
|
DatePipe
|
|
6888
|
-
], imports: [CommonModule] });
|
|
7186
|
+
], imports: [CommonModule] });
|
|
6889
7187
|
}
|
|
6890
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
7188
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: TimeModule, decorators: [{
|
|
6891
7189
|
type: NgModule,
|
|
6892
7190
|
args: [{
|
|
6893
7191
|
imports: [
|
|
@@ -6904,23 +7202,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
6904
7202
|
}] });
|
|
6905
7203
|
|
|
6906
7204
|
class TimerService {
|
|
6907
|
-
|
|
6908
|
-
|
|
6909
|
-
|
|
6910
|
-
this._count = 0;
|
|
6911
|
-
this._left = 0;
|
|
6912
|
-
this.expireDate = null;
|
|
6913
|
-
this.subscription = null;
|
|
6914
|
-
//@Output() checkTime: EventEmitter<number> = new EventEmitter();
|
|
6915
|
-
this.tick = new Subject();
|
|
6916
|
-
this.completed = new Subject();
|
|
6917
|
-
}
|
|
7205
|
+
seconds = 0;
|
|
7206
|
+
// running = false;
|
|
7207
|
+
_count = 0;
|
|
6918
7208
|
get count() {
|
|
6919
7209
|
return this._count;
|
|
6920
7210
|
}
|
|
7211
|
+
_left = 0;
|
|
6921
7212
|
get left() {
|
|
6922
7213
|
return this._left;
|
|
6923
7214
|
}
|
|
7215
|
+
expireDate = null;
|
|
7216
|
+
subscription = null;
|
|
7217
|
+
//@Output() checkTime: EventEmitter<number> = new EventEmitter();
|
|
7218
|
+
tick = new Subject();
|
|
7219
|
+
completed = new Subject();
|
|
6924
7220
|
// tickerInterval: any;
|
|
6925
7221
|
// expired: Observable<number> = new Observable<number>();
|
|
6926
7222
|
// initialCountValue: number = 0;
|
|
@@ -6978,16 +7274,18 @@ class TimerService {
|
|
|
6978
7274
|
let seconds = delta % 60; // in theory the modulus is not required
|
|
6979
7275
|
*/
|
|
6980
7276
|
}
|
|
6981
|
-
static
|
|
6982
|
-
static
|
|
7277
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: TimerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
7278
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: TimerService });
|
|
6983
7279
|
}
|
|
6984
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
7280
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: TimerService, decorators: [{
|
|
6985
7281
|
type: Injectable
|
|
6986
7282
|
}], propDecorators: { seconds: [{
|
|
6987
7283
|
type: Input
|
|
6988
7284
|
}] } });
|
|
6989
7285
|
|
|
6990
7286
|
class ZekTooltip extends CoreComponent {
|
|
7287
|
+
el;
|
|
7288
|
+
_tooltip;
|
|
6991
7289
|
constructor(el) {
|
|
6992
7290
|
super();
|
|
6993
7291
|
this.el = el;
|
|
@@ -7000,10 +7298,10 @@ class ZekTooltip extends CoreComponent {
|
|
|
7000
7298
|
ngAfterViewInit() {
|
|
7001
7299
|
this._tooltip = new bootstrap.Tooltip(this.el.nativeElement);
|
|
7002
7300
|
}
|
|
7003
|
-
static
|
|
7004
|
-
static
|
|
7301
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekTooltip, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
7302
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.6", type: ZekTooltip, isStandalone: true, selector: "[zek-toltip]", usesInheritance: true, ngImport: i0 });
|
|
7005
7303
|
}
|
|
7006
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
7304
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekTooltip, decorators: [{
|
|
7007
7305
|
type: Directive,
|
|
7008
7306
|
args: [{
|
|
7009
7307
|
standalone: true,
|
|
@@ -7012,6 +7310,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
7012
7310
|
}], ctorParameters: () => [{ type: i0.ElementRef }] });
|
|
7013
7311
|
|
|
7014
7312
|
class ZekLocalToUtcPipe {
|
|
7313
|
+
_datePipe;
|
|
7015
7314
|
constructor(_datePipe) {
|
|
7016
7315
|
this._datePipe = _datePipe;
|
|
7017
7316
|
}
|
|
@@ -7021,22 +7320,23 @@ class ZekLocalToUtcPipe {
|
|
|
7021
7320
|
const date = DateHelper.localToUtc(DateHelper.toDate(value));
|
|
7022
7321
|
return this._datePipe.transform(date, format);
|
|
7023
7322
|
}
|
|
7024
|
-
static
|
|
7025
|
-
static
|
|
7323
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekLocalToUtcPipe, deps: [{ token: i1$2.DatePipe }], target: i0.ɵɵFactoryTarget.Pipe });
|
|
7324
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.0.6", ngImport: i0, type: ZekLocalToUtcPipe, isStandalone: false, name: "localToUtc" });
|
|
7026
7325
|
}
|
|
7027
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
7326
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekLocalToUtcPipe, decorators: [{
|
|
7028
7327
|
type: Pipe,
|
|
7029
7328
|
args: [{
|
|
7329
|
+
standalone: false,
|
|
7030
7330
|
name: 'localToUtc',
|
|
7031
7331
|
pure: true
|
|
7032
7332
|
}]
|
|
7033
7333
|
}], ctorParameters: () => [{ type: i1$2.DatePipe }] });
|
|
7034
7334
|
class ZekLocalToUtcModule {
|
|
7035
|
-
static
|
|
7036
|
-
static
|
|
7037
|
-
static
|
|
7335
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekLocalToUtcModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
7336
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.6", ngImport: i0, type: ZekLocalToUtcModule, declarations: [ZekLocalToUtcPipe], exports: [ZekLocalToUtcPipe] });
|
|
7337
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekLocalToUtcModule, providers: [DatePipe] });
|
|
7038
7338
|
}
|
|
7039
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
7339
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekLocalToUtcModule, decorators: [{
|
|
7040
7340
|
type: NgModule,
|
|
7041
7341
|
args: [{
|
|
7042
7342
|
declarations: [ZekLocalToUtcPipe],
|
|
@@ -7046,6 +7346,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
7046
7346
|
}] });
|
|
7047
7347
|
|
|
7048
7348
|
class ZekUtcToLocalPipe {
|
|
7349
|
+
_datePipe;
|
|
7049
7350
|
constructor(_datePipe) {
|
|
7050
7351
|
this._datePipe = _datePipe;
|
|
7051
7352
|
}
|
|
@@ -7055,21 +7356,22 @@ class ZekUtcToLocalPipe {
|
|
|
7055
7356
|
const date = DateHelper.utcToLocal(DateHelper.toDate(value));
|
|
7056
7357
|
return this._datePipe.transform(date, format);
|
|
7057
7358
|
}
|
|
7058
|
-
static
|
|
7059
|
-
static
|
|
7359
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekUtcToLocalPipe, deps: [{ token: i1$2.DatePipe }], target: i0.ɵɵFactoryTarget.Pipe });
|
|
7360
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.0.6", ngImport: i0, type: ZekUtcToLocalPipe, isStandalone: false, name: "utcToLocal" });
|
|
7060
7361
|
}
|
|
7061
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
7362
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekUtcToLocalPipe, decorators: [{
|
|
7062
7363
|
type: Pipe,
|
|
7063
7364
|
args: [{
|
|
7365
|
+
standalone: false,
|
|
7064
7366
|
name: 'utcToLocal'
|
|
7065
7367
|
}]
|
|
7066
7368
|
}], ctorParameters: () => [{ type: i1$2.DatePipe }] });
|
|
7067
7369
|
class ZekUtcToLocalModule {
|
|
7068
|
-
static
|
|
7069
|
-
static
|
|
7070
|
-
static
|
|
7370
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekUtcToLocalModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
7371
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.6", ngImport: i0, type: ZekUtcToLocalModule, declarations: [ZekUtcToLocalPipe], exports: [ZekUtcToLocalPipe] });
|
|
7372
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekUtcToLocalModule, providers: [DatePipe] });
|
|
7071
7373
|
}
|
|
7072
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
7374
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekUtcToLocalModule, decorators: [{
|
|
7073
7375
|
type: NgModule,
|
|
7074
7376
|
args: [{
|
|
7075
7377
|
declarations: [ZekUtcToLocalPipe],
|
|
@@ -7201,9 +7503,16 @@ function toFloat(value) {
|
|
|
7201
7503
|
return typeof value === 'number' ? value : parseFloat(value);
|
|
7202
7504
|
}
|
|
7203
7505
|
class AbstractValidatorDirective {
|
|
7204
|
-
|
|
7205
|
-
|
|
7206
|
-
|
|
7506
|
+
_validator = nullValidator;
|
|
7507
|
+
_onChange;
|
|
7508
|
+
/**
|
|
7509
|
+
* A flag that tracks whether this validator is enabled.
|
|
7510
|
+
*
|
|
7511
|
+
* Marking it `internal` (vs `protected`), so that this flag can be used in host bindings of
|
|
7512
|
+
* directive classes that extend this base class.
|
|
7513
|
+
* @internal
|
|
7514
|
+
*/
|
|
7515
|
+
_enabled;
|
|
7207
7516
|
/** @nodoc */
|
|
7208
7517
|
ngOnChanges(changes) {
|
|
7209
7518
|
if (this.inputName in changes) {
|
|
@@ -7233,10 +7542,10 @@ class AbstractValidatorDirective {
|
|
|
7233
7542
|
enabled(input) {
|
|
7234
7543
|
return input != null /* both `null` and `undefined` */;
|
|
7235
7544
|
}
|
|
7236
|
-
static
|
|
7237
|
-
static
|
|
7545
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: AbstractValidatorDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
7546
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.6", type: AbstractValidatorDirective, isStandalone: true, usesOnChanges: true, ngImport: i0 });
|
|
7238
7547
|
}
|
|
7239
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
7548
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: AbstractValidatorDirective, decorators: [{
|
|
7240
7549
|
type: Directive
|
|
7241
7550
|
}] });
|
|
7242
7551
|
const RANGE_VALIDATOR = {
|
|
@@ -7245,21 +7554,20 @@ const RANGE_VALIDATOR = {
|
|
|
7245
7554
|
multi: true
|
|
7246
7555
|
};
|
|
7247
7556
|
class RangeValidator extends AbstractValidatorDirective {
|
|
7248
|
-
|
|
7249
|
-
|
|
7250
|
-
|
|
7251
|
-
|
|
7252
|
-
|
|
7253
|
-
|
|
7254
|
-
|
|
7255
|
-
|
|
7256
|
-
}
|
|
7257
|
-
|
|
7258
|
-
|
|
7259
|
-
}
|
|
7260
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: RangeValidator, decorators: [{
|
|
7557
|
+
range;
|
|
7558
|
+
/** @internal */
|
|
7559
|
+
inputName = 'range';
|
|
7560
|
+
/** @internal */
|
|
7561
|
+
normalizeInput = (input) => toFloat(input);
|
|
7562
|
+
/** @internal */
|
|
7563
|
+
createValidator = (range) => rangeValidator(range);
|
|
7564
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: RangeValidator, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
7565
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.6", type: RangeValidator, isStandalone: false, selector: "input[type=number][range][formControlName],input[type=number][range][formControl],input[type=number][range][ngModel]", inputs: { range: "range" }, host: { properties: { "attr.range": "_enabled ? range : null" } }, providers: [RANGE_VALIDATOR], usesInheritance: true, ngImport: i0 });
|
|
7566
|
+
}
|
|
7567
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: RangeValidator, decorators: [{
|
|
7261
7568
|
type: Directive,
|
|
7262
7569
|
args: [{
|
|
7570
|
+
standalone: false,
|
|
7263
7571
|
selector: 'input[type=number][range][formControlName],input[type=number][range][formControl],input[type=number][range][ngModel]',
|
|
7264
7572
|
providers: [RANGE_VALIDATOR],
|
|
7265
7573
|
host: { '[attr.range]': '_enabled ? range : null' }
|
|
@@ -7277,21 +7585,20 @@ const MATCH_VALIDATOR = {
|
|
|
7277
7585
|
multi: true
|
|
7278
7586
|
};
|
|
7279
7587
|
class MatchValidator extends AbstractValidatorDirective {
|
|
7280
|
-
|
|
7281
|
-
|
|
7282
|
-
|
|
7283
|
-
|
|
7284
|
-
|
|
7285
|
-
|
|
7286
|
-
|
|
7287
|
-
|
|
7288
|
-
}
|
|
7289
|
-
|
|
7290
|
-
|
|
7291
|
-
}
|
|
7292
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: MatchValidator, decorators: [{
|
|
7588
|
+
match;
|
|
7589
|
+
/** @internal */
|
|
7590
|
+
inputName = 'match';
|
|
7591
|
+
/** @internal */
|
|
7592
|
+
normalizeInput = (input) => input;
|
|
7593
|
+
/** @internal */
|
|
7594
|
+
createValidator = (input) => matchValidator(input);
|
|
7595
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: MatchValidator, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
7596
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.6", type: MatchValidator, isStandalone: false, selector: "[match][formControlName],match][formControl],[match][ngModel]", inputs: { match: "match" }, host: { properties: { "attr.match": "_enabled ? match : null" } }, providers: [MATCH_VALIDATOR], usesInheritance: true, ngImport: i0 });
|
|
7597
|
+
}
|
|
7598
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: MatchValidator, decorators: [{
|
|
7293
7599
|
type: Directive,
|
|
7294
7600
|
args: [{
|
|
7601
|
+
standalone: false,
|
|
7295
7602
|
selector: '[match][formControlName],match][formControl],[match][ngModel]',
|
|
7296
7603
|
providers: [MATCH_VALIDATOR],
|
|
7297
7604
|
host: { '[attr.match]': '_enabled ? match : null' }
|
|
@@ -7301,13 +7608,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
7301
7608
|
}] } });
|
|
7302
7609
|
|
|
7303
7610
|
class ValidatorsModule {
|
|
7304
|
-
static
|
|
7305
|
-
static
|
|
7611
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ValidatorsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
7612
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.6", ngImport: i0, type: ValidatorsModule, declarations: [RangeValidator,
|
|
7306
7613
|
MatchValidator], imports: [CommonModule], exports: [RangeValidator,
|
|
7307
|
-
MatchValidator] });
|
|
7308
|
-
static
|
|
7614
|
+
MatchValidator] });
|
|
7615
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ValidatorsModule, imports: [CommonModule] });
|
|
7309
7616
|
}
|
|
7310
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
7617
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ValidatorsModule, decorators: [{
|
|
7311
7618
|
type: NgModule,
|
|
7312
7619
|
args: [{
|
|
7313
7620
|
imports: [
|
|
@@ -7325,14 +7632,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
7325
7632
|
}] });
|
|
7326
7633
|
|
|
7327
7634
|
class ZekWizard {
|
|
7328
|
-
|
|
7329
|
-
|
|
7330
|
-
|
|
7331
|
-
|
|
7332
|
-
|
|
7333
|
-
this._steps = 1;
|
|
7334
|
-
this._step = 1;
|
|
7335
|
-
}
|
|
7635
|
+
progress = 0;
|
|
7636
|
+
stepsArray = [
|
|
7637
|
+
{ step: 1, progress: 0 }
|
|
7638
|
+
];
|
|
7639
|
+
_steps = 1;
|
|
7336
7640
|
get steps() {
|
|
7337
7641
|
return this._steps;
|
|
7338
7642
|
}
|
|
@@ -7344,6 +7648,7 @@ class ZekWizard {
|
|
|
7344
7648
|
this.init();
|
|
7345
7649
|
}
|
|
7346
7650
|
}
|
|
7651
|
+
_step = 1;
|
|
7347
7652
|
get step() {
|
|
7348
7653
|
return this._step;
|
|
7349
7654
|
}
|
|
@@ -7373,10 +7678,10 @@ class ZekWizard {
|
|
|
7373
7678
|
next() {
|
|
7374
7679
|
this.step++;
|
|
7375
7680
|
}
|
|
7376
|
-
static
|
|
7377
|
-
static
|
|
7681
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekWizard, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
7682
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.6", type: ZekWizard, isStandalone: true, selector: "zek-wizard", inputs: { steps: "steps", step: "step" }, ngImport: i0, template: "<div class=\"position-relative m-4\">\r\n <div class=\"progress\" style=\"height: 1px;\">\r\n <div class=\"progress-bar\" role=\"progressbar\" [style.width.%]=\"progress\" [attr.aria-valuenow]=\"progress\" aria-valuemin=\"0\" aria-valuemax=\"100\"></div>\r\n </div>\r\n <!-- left: 33%!important -->\r\n <!-- [style.left.%]=\"item.progress\" -->\r\n <button *ngFor=\"let item of stepsArray\" [attr.style]=\"('width:2rem; height:2rem; left:' + item.progress + '%!important') | safe:'style'\" type=\"button\" class=\"position-absolute top-0 translate-middle btn btn-sm btn-primary rounded-pill\">{{ item.step }}</button>\r\n</div>", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "pipe", type: ZekSafePipe, name: "safe" }] });
|
|
7378
7683
|
}
|
|
7379
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
7684
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekWizard, decorators: [{
|
|
7380
7685
|
type: Component,
|
|
7381
7686
|
args: [{ standalone: true, selector: 'zek-wizard', imports: [CommonModule, ZekSafePipe], template: "<div class=\"position-relative m-4\">\r\n <div class=\"progress\" style=\"height: 1px;\">\r\n <div class=\"progress-bar\" role=\"progressbar\" [style.width.%]=\"progress\" [attr.aria-valuenow]=\"progress\" aria-valuemin=\"0\" aria-valuemax=\"100\"></div>\r\n </div>\r\n <!-- left: 33%!important -->\r\n <!-- [style.left.%]=\"item.progress\" -->\r\n <button *ngFor=\"let item of stepsArray\" [attr.style]=\"('width:2rem; height:2rem; left:' + item.progress + '%!important') | safe:'style'\" type=\"button\" class=\"position-absolute top-0 translate-middle btn btn-sm btn-primary rounded-pill\">{{ item.step }}</button>\r\n</div>" }]
|
|
7382
7687
|
}], propDecorators: { steps: [{
|
|
@@ -7386,10 +7691,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
7386
7691
|
}] } });
|
|
7387
7692
|
|
|
7388
7693
|
class ZekWizard2 extends ZekWizard {
|
|
7389
|
-
static
|
|
7390
|
-
static
|
|
7694
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekWizard2, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
7695
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.6", type: ZekWizard2, isStandalone: true, selector: "zek-wizard2", usesInheritance: true, ngImport: i0, template: "<div class=\"m-2\">\r\n <button *ngFor=\"let item of stepsArray\"\r\n [class.btn-outline-secondary]=\"item.step >= steps\"\r\n [class.btn-primary]=\"item.step < steps\"\r\n type=\"button\"\r\n class=\"btn btn-sm mr me-2\"></button>\r\n</div>", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
7391
7696
|
}
|
|
7392
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
7697
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekWizard2, decorators: [{
|
|
7393
7698
|
type: Component,
|
|
7394
7699
|
args: [{ standalone: true, selector: 'zek-wizard2', imports: [CommonModule], template: "<div class=\"m-2\">\r\n <button *ngFor=\"let item of stepsArray\"\r\n [class.btn-outline-secondary]=\"item.step >= steps\"\r\n [class.btn-primary]=\"item.step < steps\"\r\n type=\"button\"\r\n class=\"btn btn-sm mr me-2\"></button>\r\n</div>" }]
|
|
7395
7700
|
}] });
|
|
@@ -7410,11 +7715,11 @@ class WebApiModule {
|
|
|
7410
7715
|
static forChild(config) {
|
|
7411
7716
|
return this.forRoot(config);
|
|
7412
7717
|
}
|
|
7413
|
-
static
|
|
7414
|
-
static
|
|
7415
|
-
static
|
|
7718
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: WebApiModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
7719
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.6", ngImport: i0, type: WebApiModule });
|
|
7720
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: WebApiModule });
|
|
7416
7721
|
}
|
|
7417
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
7722
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: WebApiModule, decorators: [{
|
|
7418
7723
|
type: NgModule
|
|
7419
7724
|
}] });
|
|
7420
7725
|
|
|
@@ -7426,5 +7731,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
7426
7731
|
* Generated bundle index. Do not edit.
|
|
7427
7732
|
*/
|
|
7428
7733
|
|
|
7429
|
-
export { API_BASE_URL, AgePipe, Alert, AlertService, ArrayHelper, AuthService, Base64Helper, BaseAlert, BaseComponent, BaseService, BitwiseHelper, BootstrapHelper, CacheHelper, Color, ComponentType, Convert, CoreComponent, CoreUiComponent, CrudService, CssHelper, CustomHttpParamEncoder, DATE_FORMAT, DateHelper, DateValueAccessor, DatepickerModule, EditBase, EditBaseComponent, EditComponent, EditFormComponent, ErrorHelper, ExcelHelper, FileHelper, FileService, FilterBase, FilterHelper, GOOGLE_CLIENT_ID, Gender, HtmlHelper, HttpErrorHandler, IntervalHelper, JwtHelper, KeyPair, KeyPairChecked, KeyPairEx, KeyPairRequired, LANGUAGE, ListBase, ListBaseComponent, MATCH_VALIDATOR, MatchValidator, MathHelper, Month, ObjectHelper, OverlapHelper, PagedList, Pager, PagerHelper, PeriodRelation, PrintType, RANGE_VALIDATOR, RECAPTCHA_SITE_KEY, RandomHelper, RangeValidator, ReCaptchaService, RecaptchaModule, StorageHelper, StringHelper, TimeHelper, TimeModule, TimePipe, TimerService, TmpHelper, Toast, Tree, UrlHelper, ValidEventArgs, ValidationHelper, Validators, ValidatorsModule, WebApiClient, WebApiModule, ZekAlert, ZekApproveModal, ZekAutoComplete, ZekButtonBrowse, ZekButtonBrowseModalBase, ZekButtonBrowseModalToolbar, ZekButtonBrowseModule, ZekCallbackPipe, ZekCard, ZekCountdown, ZekDateAgoPipe, ZekDelayedInputDirective, ZekDeleteModal, ZekDisapproveModal, ZekEditToolbar, ZekFieldValidator, ZekFileInput, ZekFileSizePipe, ZekFileViewer, ZekFilterModal, ZekGoogleLoginButton, ZekGoogleLoginModule, ZekGridToolbar, ZekGridToolbarBar, ZekListToolbar, ZekLoading, ZekLoadingModule, ZekLocalToUtcModule, ZekLocalToUtcPipe, ZekModal, ZekModalModule, ZekNumericDirective, ZekPageTitle, ZekPager, ZekPassword, ZekProgress, ZekRadio, ZekReadOnlyDirective, ZekRestoreModal, ZekSafePipe, ZekSelect2, ZekSelect2Multiple, ZekSelectMultiple, ZekSort, ZekSortButtonGroup, ZekSubmitModal, ZekSumModal, ZekTag, ZekToast, ZekTooltip, ZekUtcToLocalModule, ZekUtcToLocalPipe, ZekValidation, ZekWizard, ZekWizard2, firstBy, handler, matchValidator, nullValidator, rangeValidator, zekAuthGuard };
|
|
7734
|
+
export { API_BASE_URL, AgePipe, Alert, AlertService, ArrayHelper, AuthService, Base64Helper, BaseAlert, BaseComponent, BaseService, BitwiseHelper, BootstrapHelper, CacheHelper, Color, ComponentType, Convert, CoreComponent, CoreUiComponent, CrudService, CssHelper, CustomHttpParamEncoder, DATE_FORMAT, DateHelper, DateValueAccessor, DatepickerModule, EditBase, EditBaseComponent, EditComponent, EditFormComponent, ErrorHelper, ExcelHelper, FileHelper, FileService, FilterBase, FilterHelper, GOOGLE_CLIENT_ID, Gender, HtmlHelper, HttpErrorHandler, IntervalHelper, JwtHelper, KeyPair, KeyPairChecked, KeyPairEx, KeyPairRequired, LANGUAGE, ListBase, ListBaseComponent, MATCH_VALIDATOR, MatchValidator, MathHelper, Month, ObjectHelper, OverlapHelper, PagedList, Pager, PagerHelper, PeriodRelation, PrintType, RANGE_VALIDATOR, RECAPTCHA_SITE_KEY, RandomHelper, RangeValidator, ReCaptchaService, RecaptchaModule, StorageHelper, StringHelper, TimeHelper, TimeModule, TimePipe, TimerService, TmpHelper, Toast, Tree, UrlHelper, ValidEventArgs, ValidationHelper, Validators, ValidatorsModule, WebApiClient, WebApiModule, ZekAlert, ZekApproveModal, ZekAutoComplete, ZekButtonBrowse, ZekButtonBrowseModalBase, ZekButtonBrowseModalToolbar, ZekButtonBrowseModule, ZekCallbackPipe, ZekCard, ZekCountdown, ZekDateAgoPipe, ZekDelayedInputDirective, ZekDeleteModal, ZekDisapproveModal, ZekDropdown, ZekEditToolbar, ZekFieldValidator, ZekFileInput, ZekFileSizePipe, ZekFileViewer, ZekFilterModal, ZekGoogleLoginButton, ZekGoogleLoginModule, ZekGridToolbar, ZekGridToolbarBar, ZekListToolbar, ZekLoading, ZekLoadingModule, ZekLocalToUtcModule, ZekLocalToUtcPipe, ZekModal, ZekModalModule, ZekNumericDirective, ZekPageTitle, ZekPager, ZekPassword, ZekProgress, ZekRadio, ZekReadOnlyDirective, ZekRestoreModal, ZekSafePipe, ZekSelect2, ZekSelect2Multiple, ZekSelectMultiple, ZekSort, ZekSortButtonGroup, ZekSubmitModal, ZekSumModal, ZekTag, ZekToast, ZekTooltip, ZekUtcToLocalModule, ZekUtcToLocalPipe, ZekValidation, ZekWizard, ZekWizard2, firstBy, handler, matchValidator, nullValidator, rangeValidator, zekAuthGuard };
|
|
7430
7735
|
//# sourceMappingURL=zek.mjs.map
|