zek 17.3.119 → 19.0.1
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 +856 -750
- 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/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],
|
|
@@ -4183,69 +4226,67 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
4183
4226
|
}] });
|
|
4184
4227
|
|
|
4185
4228
|
class ZekEditToolbar {
|
|
4186
|
-
|
|
4187
|
-
this._showSave = true;
|
|
4188
|
-
this._showCancel = true;
|
|
4189
|
-
this.PrintType = PrintType;
|
|
4190
|
-
this._showExport = false;
|
|
4191
|
-
this._showPrint = false;
|
|
4192
|
-
this._readOnly = false;
|
|
4193
|
-
this.onSave = new EventEmitter();
|
|
4194
|
-
// save(navigateToReturnUrl: boolean) {
|
|
4195
|
-
// this.onSave.emit(navigateToReturnUrl);
|
|
4196
|
-
// }
|
|
4197
|
-
this.onCancel = new EventEmitter();
|
|
4198
|
-
// @Output()
|
|
4199
|
-
// onReset = new EventEmitter();
|
|
4200
|
-
// reset() {
|
|
4201
|
-
// this.onReset.emit();
|
|
4202
|
-
// }
|
|
4203
|
-
this.onPrint = new EventEmitter();
|
|
4204
|
-
this.onExport = new EventEmitter();
|
|
4205
|
-
}
|
|
4229
|
+
_showSave = true;
|
|
4206
4230
|
get showSave() {
|
|
4207
4231
|
return this._showSave;
|
|
4208
4232
|
}
|
|
4209
4233
|
set showSave(v) {
|
|
4210
4234
|
this._showSave = Convert.toBooleanProperty(v);
|
|
4211
4235
|
}
|
|
4236
|
+
_showCancel = true;
|
|
4212
4237
|
get showCancel() {
|
|
4213
4238
|
return this._showCancel;
|
|
4214
4239
|
}
|
|
4215
4240
|
set showCancel(v) {
|
|
4216
4241
|
this._showCancel = Convert.toBooleanProperty(v);
|
|
4217
4242
|
}
|
|
4243
|
+
PrintType = PrintType;
|
|
4244
|
+
_showExport = false;
|
|
4218
4245
|
get showExport() {
|
|
4219
4246
|
return this._showExport;
|
|
4220
4247
|
}
|
|
4221
4248
|
set showExport(v) {
|
|
4222
4249
|
this._showExport = Convert.toBooleanProperty(v);
|
|
4223
4250
|
}
|
|
4251
|
+
_showPrint = false;
|
|
4224
4252
|
get showPrint() {
|
|
4225
4253
|
return this._showPrint;
|
|
4226
4254
|
}
|
|
4227
4255
|
set showPrint(v) {
|
|
4228
4256
|
this._showPrint = Convert.toBooleanProperty(v);
|
|
4229
4257
|
}
|
|
4258
|
+
_readOnly = false;
|
|
4230
4259
|
get readOnly() {
|
|
4231
4260
|
return this._readOnly;
|
|
4232
4261
|
}
|
|
4233
4262
|
set readOnly(v) {
|
|
4234
4263
|
this._readOnly = Convert.toBooleanProperty(v);
|
|
4235
4264
|
}
|
|
4265
|
+
onSave = new EventEmitter();
|
|
4266
|
+
// save(navigateToReturnUrl: boolean) {
|
|
4267
|
+
// this.onSave.emit(navigateToReturnUrl);
|
|
4268
|
+
// }
|
|
4269
|
+
onCancel = new EventEmitter();
|
|
4236
4270
|
cancel() {
|
|
4237
4271
|
this.onCancel.emit();
|
|
4238
4272
|
}
|
|
4273
|
+
// @Output()
|
|
4274
|
+
// onReset = new EventEmitter();
|
|
4275
|
+
// reset() {
|
|
4276
|
+
// this.onReset.emit();
|
|
4277
|
+
// }
|
|
4278
|
+
onPrint = new EventEmitter();
|
|
4239
4279
|
print(printType) {
|
|
4240
4280
|
this.onPrint.emit(printType);
|
|
4241
4281
|
}
|
|
4282
|
+
onExport = new EventEmitter();
|
|
4242
4283
|
exportExcel() {
|
|
4243
4284
|
this.onExport.emit(1);
|
|
4244
4285
|
}
|
|
4245
|
-
static
|
|
4246
|
-
static
|
|
4286
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekEditToolbar, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
4287
|
+
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
4288
|
}
|
|
4248
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4289
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekEditToolbar, decorators: [{
|
|
4249
4290
|
type: Component,
|
|
4250
4291
|
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
4292
|
}], propDecorators: { showSave: [{
|
|
@@ -4278,19 +4319,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
4278
4319
|
* formats to: 1 KB
|
|
4279
4320
|
*/
|
|
4280
4321
|
class ZekFileSizePipe {
|
|
4281
|
-
|
|
4282
|
-
|
|
4283
|
-
|
|
4284
|
-
|
|
4285
|
-
|
|
4286
|
-
|
|
4287
|
-
|
|
4288
|
-
|
|
4289
|
-
|
|
4290
|
-
|
|
4291
|
-
|
|
4292
|
-
];
|
|
4293
|
-
}
|
|
4322
|
+
units = [
|
|
4323
|
+
'bytes',
|
|
4324
|
+
'kB',
|
|
4325
|
+
'MB',
|
|
4326
|
+
'GB',
|
|
4327
|
+
'TB',
|
|
4328
|
+
'PB',
|
|
4329
|
+
'EB',
|
|
4330
|
+
'ZB',
|
|
4331
|
+
'YB'
|
|
4332
|
+
];
|
|
4294
4333
|
transform(bytes = 0, precision = 0) {
|
|
4295
4334
|
if (typeof bytes === 'undefined' || bytes == null)
|
|
4296
4335
|
bytes = 0;
|
|
@@ -4305,10 +4344,10 @@ class ZekFileSizePipe {
|
|
|
4305
4344
|
}
|
|
4306
4345
|
return bytes.toFixed(+precision) + ' ' + this.units[unit];
|
|
4307
4346
|
}
|
|
4308
|
-
static
|
|
4309
|
-
static
|
|
4347
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekFileSizePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
4348
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.0.6", ngImport: i0, type: ZekFileSizePipe, isStandalone: true, name: "fileSize" });
|
|
4310
4349
|
}
|
|
4311
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4350
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekFileSizePipe, decorators: [{
|
|
4312
4351
|
type: Pipe,
|
|
4313
4352
|
args: [{
|
|
4314
4353
|
standalone: true,
|
|
@@ -4317,20 +4356,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
4317
4356
|
}] });
|
|
4318
4357
|
|
|
4319
4358
|
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
|
-
}
|
|
4359
|
+
// @Input() model!: string[] | null;
|
|
4360
|
+
onUpload = new EventEmitter();
|
|
4361
|
+
fileService = inject(FileService);
|
|
4362
|
+
_uniqueId = `zek-file-input-${this.uniqueId}`;
|
|
4363
|
+
/** The unique ID for the tag. */
|
|
4364
|
+
id = this._uniqueId;
|
|
4331
4365
|
get inputId() {
|
|
4332
4366
|
return `${this.id || this._uniqueId}-input`;
|
|
4333
4367
|
}
|
|
4368
|
+
_accept = '*';
|
|
4334
4369
|
get accept() {
|
|
4335
4370
|
return this._accept;
|
|
4336
4371
|
}
|
|
@@ -4340,6 +4375,7 @@ class ZekFileInput extends CoreUiComponent {
|
|
|
4340
4375
|
else
|
|
4341
4376
|
this._accept = v;
|
|
4342
4377
|
}
|
|
4378
|
+
_multiple = false;
|
|
4343
4379
|
get multiple() {
|
|
4344
4380
|
return this._multiple;
|
|
4345
4381
|
}
|
|
@@ -4370,10 +4406,10 @@ class ZekFileInput extends CoreUiComponent {
|
|
|
4370
4406
|
}
|
|
4371
4407
|
});
|
|
4372
4408
|
}
|
|
4373
|
-
static
|
|
4374
|
-
static
|
|
4409
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekFileInput, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
4410
|
+
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
4411
|
}
|
|
4376
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4412
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekFileInput, decorators: [{
|
|
4377
4413
|
type: Component,
|
|
4378
4414
|
args: [{ standalone: true, imports: [CommonModule, FormsModule], selector: 'zek-file-input', providers: [FileService], host: {
|
|
4379
4415
|
'[attr.id]': 'id',
|
|
@@ -4389,33 +4425,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
4389
4425
|
}] } });
|
|
4390
4426
|
|
|
4391
4427
|
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
|
-
}
|
|
4428
|
+
translate = inject(TranslateService);
|
|
4419
4429
|
async destroy() {
|
|
4420
4430
|
await super.destroy();
|
|
4421
4431
|
this._modal?.dispose();
|
|
@@ -4446,30 +4456,55 @@ class ZekModal extends CoreComponent {
|
|
|
4446
4456
|
}
|
|
4447
4457
|
}, 1);
|
|
4448
4458
|
}
|
|
4459
|
+
_uniqueId = `zek-modal-${this.uniqueId}`;
|
|
4460
|
+
/** The unique ID for the radio button. */
|
|
4461
|
+
id = this._uniqueId;
|
|
4462
|
+
modalId = `${this.id}-modal`;
|
|
4463
|
+
lableId = `${this.id}-lable`;
|
|
4464
|
+
cancelButtonId = `${this.id}-cancel-button`;
|
|
4465
|
+
okButtonId = `${this.id}-ok-button`;
|
|
4466
|
+
shownHandler;
|
|
4467
|
+
hiddenHandler;
|
|
4468
|
+
model;
|
|
4469
|
+
elementId = RandomHelper.randomHex();
|
|
4470
|
+
_showOk = true;
|
|
4449
4471
|
get showOk() {
|
|
4450
4472
|
return this._showOk;
|
|
4451
4473
|
}
|
|
4452
4474
|
set showOk(v) {
|
|
4453
4475
|
this._showOk = Convert.toBooleanProperty(v);
|
|
4454
4476
|
}
|
|
4477
|
+
_disabledOk = false;
|
|
4455
4478
|
get disabledOk() {
|
|
4456
4479
|
return this._disabledOk;
|
|
4457
4480
|
}
|
|
4458
4481
|
set disabledOk(v) {
|
|
4459
4482
|
this._disabledOk = Convert.toBooleanProperty(v);
|
|
4460
4483
|
}
|
|
4484
|
+
_showCancel = true;
|
|
4461
4485
|
get showCancel() {
|
|
4462
4486
|
return this._showCancel;
|
|
4463
4487
|
}
|
|
4464
4488
|
set showCancel(v) {
|
|
4465
4489
|
this._showCancel = Convert.toBooleanProperty(v);
|
|
4466
4490
|
}
|
|
4491
|
+
_autoHide = true;
|
|
4467
4492
|
get autoHide() {
|
|
4468
4493
|
return this._autoHide;
|
|
4469
4494
|
}
|
|
4470
4495
|
set autoHide(v) {
|
|
4471
4496
|
this._autoHide = Convert.toBooleanProperty(v);
|
|
4472
4497
|
}
|
|
4498
|
+
title;
|
|
4499
|
+
text;
|
|
4500
|
+
icon;
|
|
4501
|
+
okButtonText;
|
|
4502
|
+
onShown = new EventEmitter();
|
|
4503
|
+
onHidden = new EventEmitter();
|
|
4504
|
+
onOk = new EventEmitter();
|
|
4505
|
+
onCancel = new EventEmitter();
|
|
4506
|
+
componentType = ComponentType.Primary;
|
|
4507
|
+
_size = '';
|
|
4473
4508
|
get size() {
|
|
4474
4509
|
return this._size;
|
|
4475
4510
|
}
|
|
@@ -4494,30 +4529,37 @@ class ZekModal extends CoreComponent {
|
|
|
4494
4529
|
set xl(v) {
|
|
4495
4530
|
this._size = Convert.toBooleanProperty(v) ? 'xl' : '';
|
|
4496
4531
|
}
|
|
4532
|
+
_scrollable = false;
|
|
4497
4533
|
get scrollable() {
|
|
4498
4534
|
return this._scrollable;
|
|
4499
4535
|
}
|
|
4500
4536
|
set scrollable(v) {
|
|
4501
4537
|
this._scrollable = Convert.toBooleanProperty(v);
|
|
4502
4538
|
}
|
|
4539
|
+
_fullscreen = false;
|
|
4503
4540
|
get fullscreen() {
|
|
4504
4541
|
return this._fullscreen;
|
|
4505
4542
|
}
|
|
4506
4543
|
set fullscreen(v) {
|
|
4507
4544
|
this._fullscreen = Convert.toBooleanProperty(v);
|
|
4508
4545
|
}
|
|
4546
|
+
_showHeader = true;
|
|
4509
4547
|
get showHeader() {
|
|
4510
4548
|
return this._showHeader;
|
|
4511
4549
|
}
|
|
4512
4550
|
set showHeader(v) {
|
|
4513
4551
|
this._showHeader = Convert.toBooleanProperty(v);
|
|
4514
4552
|
}
|
|
4553
|
+
_showFooter = true;
|
|
4515
4554
|
get showFooter() {
|
|
4516
4555
|
return this._showFooter;
|
|
4517
4556
|
}
|
|
4518
4557
|
set showFooter(v) {
|
|
4519
4558
|
this._showFooter = Convert.toBooleanProperty(v);
|
|
4520
4559
|
}
|
|
4560
|
+
onValidating = new EventEmitter(false);
|
|
4561
|
+
// @Input() xxl: boolean;
|
|
4562
|
+
_modal;
|
|
4521
4563
|
// public get modal(): any {
|
|
4522
4564
|
// if (!this._modal) {
|
|
4523
4565
|
// this.getModal();
|
|
@@ -4591,12 +4633,12 @@ class ZekModal extends CoreComponent {
|
|
|
4591
4633
|
e.preventDefault();
|
|
4592
4634
|
this.ok();
|
|
4593
4635
|
}
|
|
4594
|
-
static
|
|
4595
|
-
static
|
|
4636
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekModal, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
4637
|
+
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
4638
|
}
|
|
4597
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4639
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekModal, decorators: [{
|
|
4598
4640
|
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>" }]
|
|
4641
|
+
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
4642
|
}], propDecorators: { id: [{
|
|
4601
4643
|
type: Input
|
|
4602
4644
|
}], model: [{
|
|
@@ -4655,12 +4697,12 @@ class ZekDeleteModal extends ZekModal {
|
|
|
4655
4697
|
this.translate.get('Alert.DeleteQuestion').subscribe((res) => this.text = res);
|
|
4656
4698
|
this.componentType = ComponentType.Delete;
|
|
4657
4699
|
}
|
|
4658
|
-
static
|
|
4659
|
-
static
|
|
4700
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekDeleteModal, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
4701
|
+
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
4702
|
}
|
|
4661
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4703
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekDeleteModal, decorators: [{
|
|
4662
4704
|
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>" }]
|
|
4705
|
+
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
4706
|
}], ctorParameters: () => [] });
|
|
4665
4707
|
/**
|
|
4666
4708
|
* @deprecated Please use ZekModal
|
|
@@ -4673,12 +4715,12 @@ class ZekApproveModal extends ZekModal {
|
|
|
4673
4715
|
this.translate.get('Alert.ApproveQuestion').subscribe((res) => this.text = res);
|
|
4674
4716
|
this.componentType = ComponentType.Success;
|
|
4675
4717
|
}
|
|
4676
|
-
static
|
|
4677
|
-
static
|
|
4718
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekApproveModal, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
4719
|
+
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
4720
|
}
|
|
4679
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4721
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekApproveModal, decorators: [{
|
|
4680
4722
|
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>" }]
|
|
4723
|
+
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
4724
|
}], ctorParameters: () => [] });
|
|
4683
4725
|
/**
|
|
4684
4726
|
* @deprecated Please use ZekModal
|
|
@@ -4691,12 +4733,12 @@ class ZekSubmitModal extends ZekModal {
|
|
|
4691
4733
|
this.translate.get('Alert.SubmitQuestion').subscribe((res) => this.text = res);
|
|
4692
4734
|
this.componentType = ComponentType.Success;
|
|
4693
4735
|
}
|
|
4694
|
-
static
|
|
4695
|
-
static
|
|
4736
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekSubmitModal, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
4737
|
+
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
4738
|
}
|
|
4697
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4739
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekSubmitModal, decorators: [{
|
|
4698
4740
|
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>" }]
|
|
4741
|
+
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
4742
|
}], ctorParameters: () => [] });
|
|
4701
4743
|
/**
|
|
4702
4744
|
* @deprecated Please use ZekModal
|
|
@@ -4709,12 +4751,12 @@ class ZekDisapproveModal extends ZekModal {
|
|
|
4709
4751
|
this.translate.get('Alert.DisapproveQuestion').subscribe((res) => this.text = res);
|
|
4710
4752
|
this.componentType = ComponentType.Delete;
|
|
4711
4753
|
}
|
|
4712
|
-
static
|
|
4713
|
-
static
|
|
4754
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekDisapproveModal, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
4755
|
+
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
4756
|
}
|
|
4715
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4757
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekDisapproveModal, decorators: [{
|
|
4716
4758
|
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>" }]
|
|
4759
|
+
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
4760
|
}], ctorParameters: () => [] });
|
|
4719
4761
|
/**
|
|
4720
4762
|
* @deprecated Please use ZekModal
|
|
@@ -4727,33 +4769,32 @@ class ZekRestoreModal extends ZekModal {
|
|
|
4727
4769
|
this.translate.get('Action.RestoreQuestion').subscribe((res) => this.text = res);
|
|
4728
4770
|
this.componentType = ComponentType.Success;
|
|
4729
4771
|
}
|
|
4730
|
-
static
|
|
4731
|
-
static
|
|
4772
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekRestoreModal, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
4773
|
+
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
4774
|
}
|
|
4733
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4775
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekRestoreModal, decorators: [{
|
|
4734
4776
|
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>" }]
|
|
4777
|
+
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
4778
|
}], ctorParameters: () => [] });
|
|
4737
4779
|
|
|
4738
4780
|
class ZekFilterModal extends ZekModal {
|
|
4739
|
-
|
|
4740
|
-
super(...arguments);
|
|
4741
|
-
this.onReset = new EventEmitter();
|
|
4742
|
-
}
|
|
4781
|
+
onReset = new EventEmitter();
|
|
4743
4782
|
reset() {
|
|
4744
4783
|
this.onReset.emit();
|
|
4745
4784
|
}
|
|
4746
|
-
static
|
|
4747
|
-
static
|
|
4785
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekFilterModal, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
4786
|
+
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
4787
|
}
|
|
4749
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4788
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekFilterModal, decorators: [{
|
|
4750
4789
|
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>" }]
|
|
4790
|
+
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
4791
|
}], propDecorators: { onReset: [{
|
|
4753
4792
|
type: Output
|
|
4754
4793
|
}] } });
|
|
4755
4794
|
|
|
4756
4795
|
class ZekSumModal {
|
|
4796
|
+
model;
|
|
4797
|
+
modal;
|
|
4757
4798
|
sum() {
|
|
4758
4799
|
if (this.modal) {
|
|
4759
4800
|
this.modal.show();
|
|
@@ -4762,12 +4803,12 @@ class ZekSumModal {
|
|
|
4762
4803
|
throw new Error('sumModal is null or undefined');
|
|
4763
4804
|
}
|
|
4764
4805
|
}
|
|
4765
|
-
static
|
|
4766
|
-
static
|
|
4806
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekSumModal, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
4807
|
+
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
4808
|
}
|
|
4768
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4809
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekSumModal, decorators: [{
|
|
4769
4810
|
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>" }]
|
|
4811
|
+
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
4812
|
}], propDecorators: { model: [{
|
|
4772
4813
|
type: Input
|
|
4773
4814
|
}], modal: [{
|
|
@@ -4776,8 +4817,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
4776
4817
|
}] } });
|
|
4777
4818
|
|
|
4778
4819
|
class ZekModalModule {
|
|
4779
|
-
static
|
|
4780
|
-
static
|
|
4820
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekModalModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
4821
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.6", ngImport: i0, type: ZekModalModule, declarations: [ZekModal,
|
|
4781
4822
|
ZekDeleteModal,
|
|
4782
4823
|
ZekApproveModal,
|
|
4783
4824
|
ZekSubmitModal,
|
|
@@ -4793,12 +4834,12 @@ class ZekModalModule {
|
|
|
4793
4834
|
ZekDisapproveModal,
|
|
4794
4835
|
ZekRestoreModal,
|
|
4795
4836
|
ZekFilterModal,
|
|
4796
|
-
ZekSumModal] });
|
|
4797
|
-
static
|
|
4837
|
+
ZekSumModal] });
|
|
4838
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekModalModule, imports: [CommonModule,
|
|
4798
4839
|
RouterModule,
|
|
4799
|
-
TranslateModule] });
|
|
4840
|
+
TranslateModule] });
|
|
4800
4841
|
}
|
|
4801
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4842
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekModalModule, decorators: [{
|
|
4802
4843
|
type: NgModule,
|
|
4803
4844
|
args: [{
|
|
4804
4845
|
imports: [
|
|
@@ -4830,6 +4871,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
4830
4871
|
}] });
|
|
4831
4872
|
|
|
4832
4873
|
class ZekSafePipe {
|
|
4874
|
+
sanitizer;
|
|
4833
4875
|
constructor(sanitizer) {
|
|
4834
4876
|
this.sanitizer = sanitizer;
|
|
4835
4877
|
}
|
|
@@ -4855,10 +4897,10 @@ class ZekSafePipe {
|
|
|
4855
4897
|
return this.sanitizer.bypassSecurityTrustHtml(value);
|
|
4856
4898
|
}
|
|
4857
4899
|
}
|
|
4858
|
-
static
|
|
4859
|
-
static
|
|
4900
|
+
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 });
|
|
4901
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.0.6", ngImport: i0, type: ZekSafePipe, isStandalone: true, name: "safe" });
|
|
4860
4902
|
}
|
|
4861
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4903
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekSafePipe, decorators: [{
|
|
4862
4904
|
type: Pipe,
|
|
4863
4905
|
args: [{
|
|
4864
4906
|
standalone: true,
|
|
@@ -4867,6 +4909,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
4867
4909
|
}], ctorParameters: () => [{ type: i1$3.DomSanitizer }] });
|
|
4868
4910
|
|
|
4869
4911
|
class ZekFileViewer extends CoreComponent {
|
|
4912
|
+
viewModal;
|
|
4913
|
+
src;
|
|
4870
4914
|
show(url, extension) {
|
|
4871
4915
|
const ext = extension || FileHelper.getExtension(url);
|
|
4872
4916
|
switch (ext) {
|
|
@@ -4899,10 +4943,10 @@ class ZekFileViewer extends CoreComponent {
|
|
|
4899
4943
|
this.viewModal.show();
|
|
4900
4944
|
}
|
|
4901
4945
|
}
|
|
4902
|
-
static
|
|
4903
|
-
static
|
|
4946
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekFileViewer, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
4947
|
+
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
4948
|
}
|
|
4905
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4949
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekFileViewer, decorators: [{
|
|
4906
4950
|
type: Component,
|
|
4907
4951
|
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
4952
|
}], propDecorators: { viewModal: [{
|
|
@@ -4920,51 +4964,64 @@ function loadScript$1(onLoaded, url, nonce) {
|
|
|
4920
4964
|
const loader$1 = { loadScript: loadScript$1 };
|
|
4921
4965
|
|
|
4922
4966
|
class ZekGoogleLoginButton extends CoreComponent {
|
|
4967
|
+
client_id;
|
|
4923
4968
|
constructor(client_id) {
|
|
4924
4969
|
super();
|
|
4925
4970
|
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
4971
|
}
|
|
4972
|
+
_uniqueId = `zek-google-button-container-${this.uniqueId}`;
|
|
4973
|
+
id = this._uniqueId;
|
|
4974
|
+
_prompt = true;
|
|
4938
4975
|
get prompt() {
|
|
4939
4976
|
return this._prompt;
|
|
4940
4977
|
}
|
|
4941
4978
|
set prompt(v) {
|
|
4942
4979
|
this._prompt = Convert.toBooleanProperty(v);
|
|
4943
4980
|
}
|
|
4981
|
+
_autoSelect = false;
|
|
4944
4982
|
get autoSelect() {
|
|
4945
4983
|
return this._autoSelect;
|
|
4946
4984
|
}
|
|
4947
4985
|
set autoSelect(v) {
|
|
4948
4986
|
this._autoSelect = Convert.toBooleanProperty(v);
|
|
4949
4987
|
}
|
|
4988
|
+
_cancelOnTapOutside = true;
|
|
4950
4989
|
get cancelOnTapOutside() {
|
|
4951
4990
|
return this._cancelOnTapOutside;
|
|
4952
4991
|
}
|
|
4953
4992
|
set cancelOnTapOutside(v) {
|
|
4954
4993
|
this._cancelOnTapOutside = Convert.toBooleanProperty(v);
|
|
4955
4994
|
}
|
|
4995
|
+
_width;
|
|
4956
4996
|
get width() {
|
|
4957
4997
|
return this._width;
|
|
4958
4998
|
}
|
|
4959
4999
|
set width(v) {
|
|
4960
5000
|
this._width = v;
|
|
4961
5001
|
}
|
|
5002
|
+
_text;
|
|
4962
5003
|
get text() {
|
|
4963
5004
|
return this._text;
|
|
4964
5005
|
}
|
|
4965
5006
|
set text(v) {
|
|
4966
5007
|
this._text = v;
|
|
4967
5008
|
}
|
|
5009
|
+
onLoginResponse = new EventEmitter();
|
|
5010
|
+
onLogin = new EventEmitter();
|
|
5011
|
+
// private _type: 'standard' | 'icon';
|
|
5012
|
+
// public get type(): '' {
|
|
5013
|
+
// return this._type;
|
|
5014
|
+
// }
|
|
5015
|
+
// public set type(v: 'standard' | 'icon') {
|
|
5016
|
+
// this._type = v;
|
|
5017
|
+
// }
|
|
5018
|
+
// private static _loaded = false;
|
|
5019
|
+
// static async loadScript() {
|
|
5020
|
+
// if (this._loaded) return;
|
|
5021
|
+
// await HtmlHelper.loadScripts('https://accounts.google.com/gsi/client');
|
|
5022
|
+
// this._loaded = true;
|
|
5023
|
+
// }
|
|
5024
|
+
google;
|
|
4968
5025
|
async init() {
|
|
4969
5026
|
super.init();
|
|
4970
5027
|
// await GoogleLoginButton.loadScript();
|
|
@@ -4976,6 +5033,10 @@ class ZekGoogleLoginButton extends CoreComponent {
|
|
|
4976
5033
|
loader$1.loadScript(this.onLoadComplete);
|
|
4977
5034
|
}
|
|
4978
5035
|
}
|
|
5036
|
+
onLoadComplete = (google) => {
|
|
5037
|
+
this.google = google;
|
|
5038
|
+
this.initialize();
|
|
5039
|
+
};
|
|
4979
5040
|
initialize() {
|
|
4980
5041
|
this.google.accounts.id.initialize({
|
|
4981
5042
|
client_id: this.client_id,
|
|
@@ -5016,12 +5077,13 @@ class ZekGoogleLoginButton extends CoreComponent {
|
|
|
5016
5077
|
// console.log("Image URL: " + payload.picture);
|
|
5017
5078
|
// console.log("Email: " + payload.email);
|
|
5018
5079
|
}
|
|
5019
|
-
static
|
|
5020
|
-
static
|
|
5080
|
+
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 });
|
|
5081
|
+
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
5082
|
}
|
|
5022
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5083
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekGoogleLoginButton, decorators: [{
|
|
5023
5084
|
type: Directive,
|
|
5024
5085
|
args: [{
|
|
5086
|
+
standalone: false,
|
|
5025
5087
|
selector: 'zek-google-login',
|
|
5026
5088
|
host: {
|
|
5027
5089
|
'[attr.id]': 'id',
|
|
@@ -5064,11 +5126,11 @@ class ZekGoogleLoginModule {
|
|
|
5064
5126
|
static forChild(config) {
|
|
5065
5127
|
return this.forRoot(config);
|
|
5066
5128
|
}
|
|
5067
|
-
static
|
|
5068
|
-
static
|
|
5069
|
-
static
|
|
5129
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekGoogleLoginModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
5130
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.6", ngImport: i0, type: ZekGoogleLoginModule, declarations: [ZekGoogleLoginButton], imports: [CommonModule], exports: [ZekGoogleLoginButton] });
|
|
5131
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekGoogleLoginModule, imports: [CommonModule] });
|
|
5070
5132
|
}
|
|
5071
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5133
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekGoogleLoginModule, decorators: [{
|
|
5072
5134
|
type: NgModule,
|
|
5073
5135
|
args: [{
|
|
5074
5136
|
imports: [
|
|
@@ -5084,105 +5146,110 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
5084
5146
|
}] });
|
|
5085
5147
|
|
|
5086
5148
|
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
|
-
}
|
|
5149
|
+
// constructor(private readonly router: Router) {
|
|
5150
|
+
// //private readonly viewContainerRef: ViewContainerRef,
|
|
5151
|
+
// }
|
|
5152
|
+
// getParentComponent(): any {
|
|
5153
|
+
// return this.viewContainerRef['_data'].componentView.component.viewContainerRef['_view'].component
|
|
5154
|
+
// }
|
|
5155
|
+
model;
|
|
5156
|
+
_showEdit = true;
|
|
5106
5157
|
get showEdit() {
|
|
5107
5158
|
return this._showEdit;
|
|
5108
5159
|
}
|
|
5109
5160
|
set showEdit(v) {
|
|
5110
5161
|
this._showEdit = Convert.toBooleanProperty(v);
|
|
5111
5162
|
}
|
|
5163
|
+
_editEnabled = true;
|
|
5112
5164
|
get editEnabled() {
|
|
5113
5165
|
return this._editEnabled;
|
|
5114
5166
|
}
|
|
5115
5167
|
set editEnabled(v) {
|
|
5116
5168
|
this._editEnabled = Convert.toBooleanProperty(v);
|
|
5117
5169
|
}
|
|
5170
|
+
_showDelete = true;
|
|
5118
5171
|
get showDelete() {
|
|
5119
5172
|
return this._showDelete;
|
|
5120
5173
|
}
|
|
5121
5174
|
set showDelete(v) {
|
|
5122
5175
|
this._showDelete = Convert.toBooleanProperty(v);
|
|
5123
5176
|
}
|
|
5177
|
+
_deleteEnabled = true;
|
|
5124
5178
|
get deleteEnabled() {
|
|
5125
5179
|
return this._deleteEnabled;
|
|
5126
5180
|
}
|
|
5127
5181
|
set deleteEnabled(v) {
|
|
5128
5182
|
this._deleteEnabled = Convert.toBooleanProperty(v);
|
|
5129
5183
|
}
|
|
5184
|
+
_showRestore = false;
|
|
5130
5185
|
get showRestore() {
|
|
5131
5186
|
return this._showRestore;
|
|
5132
5187
|
}
|
|
5133
5188
|
set showRestore(v) {
|
|
5134
5189
|
this._showRestore = Convert.toBooleanProperty(v);
|
|
5135
5190
|
}
|
|
5191
|
+
_restoreEnabled = true;
|
|
5136
5192
|
get restoreEnabled() {
|
|
5137
5193
|
return this._restoreEnabled;
|
|
5138
5194
|
}
|
|
5139
5195
|
set restoreEnabled(v) {
|
|
5140
5196
|
this._restoreEnabled = Convert.toBooleanProperty(v);
|
|
5141
5197
|
}
|
|
5198
|
+
approveText = 'Action.Approve';
|
|
5199
|
+
_showApprove = false;
|
|
5142
5200
|
get showApprove() {
|
|
5143
5201
|
return this._showApprove;
|
|
5144
5202
|
}
|
|
5145
5203
|
set showApprove(v) {
|
|
5146
5204
|
this._showApprove = Convert.toBooleanProperty(v);
|
|
5147
5205
|
}
|
|
5206
|
+
_approveEnabled = false;
|
|
5148
5207
|
get approveEnabled() {
|
|
5149
5208
|
return this._approveEnabled;
|
|
5150
5209
|
}
|
|
5151
5210
|
set approveEnabled(v) {
|
|
5152
5211
|
this._approveEnabled = Convert.toBooleanProperty(v);
|
|
5153
5212
|
}
|
|
5213
|
+
disapproveText = 'Action.Disapprove';
|
|
5214
|
+
_showDisapprove = false;
|
|
5154
5215
|
get showDisapprove() {
|
|
5155
5216
|
return this._showDisapprove;
|
|
5156
5217
|
}
|
|
5157
5218
|
set showDisapprove(v) {
|
|
5158
5219
|
this._showDisapprove = Convert.toBooleanProperty(v);
|
|
5159
5220
|
}
|
|
5221
|
+
_disapproveEnabled = false;
|
|
5160
5222
|
get disapproveEnabled() {
|
|
5161
5223
|
return this._disapproveEnabled;
|
|
5162
5224
|
}
|
|
5163
5225
|
set disapproveEnabled(v) {
|
|
5164
5226
|
this._disapproveEnabled = Convert.toBooleanProperty(v);
|
|
5165
5227
|
}
|
|
5228
|
+
onEdit = new EventEmitter();
|
|
5166
5229
|
edit() {
|
|
5167
5230
|
//this.router.navigate([this.router.url, this.model]);
|
|
5168
5231
|
this.onEdit.emit(this.model);
|
|
5169
5232
|
}
|
|
5233
|
+
onDelete = new EventEmitter();
|
|
5170
5234
|
delete() {
|
|
5171
5235
|
this.onDelete.emit(this.model);
|
|
5172
5236
|
}
|
|
5237
|
+
onApprove = new EventEmitter();
|
|
5173
5238
|
approve() {
|
|
5174
5239
|
this.onApprove.emit(this.model);
|
|
5175
5240
|
}
|
|
5241
|
+
onDisapprove = new EventEmitter();
|
|
5176
5242
|
disapprove() {
|
|
5177
5243
|
this.onDisapprove.emit(this.model);
|
|
5178
5244
|
}
|
|
5245
|
+
onRestore = new EventEmitter();
|
|
5179
5246
|
restore() {
|
|
5180
5247
|
this.onRestore.emit(this.model);
|
|
5181
5248
|
}
|
|
5182
|
-
static
|
|
5183
|
-
static
|
|
5249
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekGridToolbar, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5250
|
+
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
5251
|
}
|
|
5185
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5252
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekGridToolbar, decorators: [{
|
|
5186
5253
|
type: Component,
|
|
5187
5254
|
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
5255
|
}], propDecorators: { model: [{
|
|
@@ -5224,67 +5291,68 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
5224
5291
|
}] } });
|
|
5225
5292
|
|
|
5226
5293
|
class ZekGridToolbarBar extends ZekGridToolbar {
|
|
5227
|
-
static
|
|
5228
|
-
static
|
|
5294
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekGridToolbarBar, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
5295
|
+
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
5296
|
}
|
|
5230
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5297
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekGridToolbarBar, decorators: [{
|
|
5231
5298
|
type: Component,
|
|
5232
5299
|
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
5300
|
}] });
|
|
5234
5301
|
|
|
5235
5302
|
class ZekListToolbar {
|
|
5303
|
+
router;
|
|
5236
5304
|
constructor(router) {
|
|
5237
5305
|
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
5306
|
}
|
|
5307
|
+
printType = PrintType;
|
|
5308
|
+
_isFiltered = false;
|
|
5252
5309
|
get isFiltered() {
|
|
5253
5310
|
return this._isFiltered;
|
|
5254
5311
|
}
|
|
5255
5312
|
set isFiltered(v) {
|
|
5256
5313
|
this._isFiltered = Convert.toBooleanProperty(v);
|
|
5257
5314
|
}
|
|
5315
|
+
_showCreate = true;
|
|
5258
5316
|
get showCreate() {
|
|
5259
5317
|
return this._showCreate;
|
|
5260
5318
|
}
|
|
5261
5319
|
set showCreate(v) {
|
|
5262
5320
|
this._showCreate = Convert.toBooleanProperty(v);
|
|
5263
5321
|
}
|
|
5322
|
+
_showFilter = true;
|
|
5264
5323
|
get showFilter() {
|
|
5265
5324
|
return this._showFilter;
|
|
5266
5325
|
}
|
|
5267
5326
|
set showFilter(v) {
|
|
5268
5327
|
this._showFilter = Convert.toBooleanProperty(v);
|
|
5269
5328
|
}
|
|
5329
|
+
_showPrint = false;
|
|
5270
5330
|
get showPrint() {
|
|
5271
5331
|
return this._showPrint;
|
|
5272
5332
|
}
|
|
5273
5333
|
set showPrint(v) {
|
|
5274
5334
|
this._showPrint = Convert.toBooleanProperty(v);
|
|
5275
5335
|
}
|
|
5336
|
+
_showSum = false;
|
|
5276
5337
|
get showSum() {
|
|
5277
5338
|
return this._showSum;
|
|
5278
5339
|
}
|
|
5279
5340
|
set showSum(v) {
|
|
5280
5341
|
this._showSum = Convert.toBooleanProperty(v);
|
|
5281
5342
|
}
|
|
5343
|
+
_showExport = false;
|
|
5282
5344
|
get showExport() {
|
|
5283
5345
|
return this._showExport;
|
|
5284
5346
|
}
|
|
5285
5347
|
set showExport(v) {
|
|
5286
5348
|
this._showExport = Convert.toBooleanProperty(v);
|
|
5287
5349
|
}
|
|
5350
|
+
onRefresh = new EventEmitter();
|
|
5351
|
+
onFilter = new EventEmitter();
|
|
5352
|
+
onCreate = new EventEmitter();
|
|
5353
|
+
onSum = new EventEmitter();
|
|
5354
|
+
onPrint = new EventEmitter();
|
|
5355
|
+
onExport = new EventEmitter();
|
|
5288
5356
|
refresh() {
|
|
5289
5357
|
this.onRefresh.emit();
|
|
5290
5358
|
}
|
|
@@ -5303,10 +5371,10 @@ class ZekListToolbar {
|
|
|
5303
5371
|
exportExcel() {
|
|
5304
5372
|
this.onExport.emit(1);
|
|
5305
5373
|
}
|
|
5306
|
-
static
|
|
5307
|
-
static
|
|
5374
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekListToolbar, deps: [{ token: i1.Router }], target: i0.ɵɵFactoryTarget.Component });
|
|
5375
|
+
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
5376
|
}
|
|
5309
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5377
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekListToolbar, decorators: [{
|
|
5310
5378
|
type: Component,
|
|
5311
5379
|
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
5380
|
}], ctorParameters: () => [{ type: i1.Router }], propDecorators: { isFiltered: [{
|
|
@@ -5336,9 +5404,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
5336
5404
|
}] } });
|
|
5337
5405
|
|
|
5338
5406
|
class ZekLoadingService {
|
|
5339
|
-
|
|
5340
|
-
|
|
5341
|
-
|
|
5407
|
+
_pendingRequests = 0;
|
|
5408
|
+
_loadingSubject$;
|
|
5409
|
+
_onLoadingObservable;
|
|
5342
5410
|
start() {
|
|
5343
5411
|
this._pendingRequests++;
|
|
5344
5412
|
this._loadingSubject$?.next(true);
|
|
@@ -5360,14 +5428,15 @@ class ZekLoadingService {
|
|
|
5360
5428
|
throw new Error("_onExecuteObservable is undefined");
|
|
5361
5429
|
return this._onLoadingObservable;
|
|
5362
5430
|
}
|
|
5363
|
-
static
|
|
5364
|
-
static
|
|
5431
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekLoadingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5432
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekLoadingService, providedIn: 'root' });
|
|
5365
5433
|
}
|
|
5366
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5434
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekLoadingService, decorators: [{
|
|
5367
5435
|
type: Injectable,
|
|
5368
5436
|
args: [{ providedIn: 'root' }]
|
|
5369
5437
|
}] });
|
|
5370
5438
|
class ZekLoadingInterceptor {
|
|
5439
|
+
_loading;
|
|
5371
5440
|
constructor(_loading) {
|
|
5372
5441
|
this._loading = _loading;
|
|
5373
5442
|
}
|
|
@@ -5377,10 +5446,10 @@ class ZekLoadingInterceptor {
|
|
|
5377
5446
|
this._loading.end();
|
|
5378
5447
|
}));
|
|
5379
5448
|
}
|
|
5380
|
-
static
|
|
5381
|
-
static
|
|
5449
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekLoadingInterceptor, deps: [{ token: ZekLoadingService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5450
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekLoadingInterceptor });
|
|
5382
5451
|
}
|
|
5383
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5452
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekLoadingInterceptor, decorators: [{
|
|
5384
5453
|
type: Injectable
|
|
5385
5454
|
}], ctorParameters: () => [{ type: ZekLoadingService }] });
|
|
5386
5455
|
const ZekLoadingInterceptorProvider = [{
|
|
@@ -5390,9 +5459,11 @@ const ZekLoadingInterceptorProvider = [{
|
|
|
5390
5459
|
}];
|
|
5391
5460
|
|
|
5392
5461
|
class ZekLoading {
|
|
5462
|
+
_loading;
|
|
5463
|
+
show = false;
|
|
5464
|
+
subscription;
|
|
5393
5465
|
constructor(_loading) {
|
|
5394
5466
|
this._loading = _loading;
|
|
5395
|
-
this.show = false;
|
|
5396
5467
|
}
|
|
5397
5468
|
ngOnInit() {
|
|
5398
5469
|
this.subscription = this._loading.onLoading.subscribe(x => {
|
|
@@ -5402,16 +5473,16 @@ class ZekLoading {
|
|
|
5402
5473
|
ngOnDestroy() {
|
|
5403
5474
|
this.subscription?.unsubscribe();
|
|
5404
5475
|
}
|
|
5405
|
-
static
|
|
5406
|
-
static
|
|
5476
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekLoading, deps: [{ token: ZekLoadingService }], target: i0.ɵɵFactoryTarget.Component });
|
|
5477
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.6", type: ZekLoading, isStandalone: false, selector: "zek-loading", ngImport: i0, template: `
|
|
5407
5478
|
<div *ngIf="show" id="loading" class="progress">
|
|
5408
5479
|
<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
5480
|
</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"] }] });
|
|
5481
|
+
`, 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
5482
|
}
|
|
5412
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5483
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekLoading, decorators: [{
|
|
5413
5484
|
type: Component,
|
|
5414
|
-
args: [{ selector: 'zek-loading', template: `
|
|
5485
|
+
args: [{ standalone: false, selector: 'zek-loading', template: `
|
|
5415
5486
|
<div *ngIf="show" id="loading" class="progress">
|
|
5416
5487
|
<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
5488
|
</div>
|
|
@@ -5419,14 +5490,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
5419
5490
|
}], ctorParameters: () => [{ type: ZekLoadingService }] });
|
|
5420
5491
|
|
|
5421
5492
|
class ZekLoadingModule {
|
|
5422
|
-
static
|
|
5423
|
-
static
|
|
5424
|
-
static
|
|
5493
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekLoadingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
5494
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.6", ngImport: i0, type: ZekLoadingModule, declarations: [ZekLoading], imports: [CommonModule], exports: [ZekLoading] });
|
|
5495
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekLoadingModule, providers: [
|
|
5425
5496
|
ZekLoadingInterceptor,
|
|
5426
5497
|
ZekLoadingInterceptorProvider,
|
|
5427
|
-
], imports: [CommonModule] });
|
|
5498
|
+
], imports: [CommonModule] });
|
|
5428
5499
|
}
|
|
5429
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5500
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekLoadingModule, decorators: [{
|
|
5430
5501
|
type: NgModule,
|
|
5431
5502
|
args: [{
|
|
5432
5503
|
imports: [
|
|
@@ -5448,6 +5519,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
5448
5519
|
// export * from './loading-interceptor';
|
|
5449
5520
|
|
|
5450
5521
|
class ZekNumericDirective {
|
|
5522
|
+
el;
|
|
5523
|
+
_digits = 0;
|
|
5451
5524
|
get digits() {
|
|
5452
5525
|
return this._digits;
|
|
5453
5526
|
}
|
|
@@ -5455,6 +5528,7 @@ class ZekNumericDirective {
|
|
|
5455
5528
|
const tmp = MathHelper.clamp(Convert.toNumber(v) ?? 0, 0, 29);
|
|
5456
5529
|
this._digits = tmp;
|
|
5457
5530
|
}
|
|
5531
|
+
_negative = false;
|
|
5458
5532
|
get negative() {
|
|
5459
5533
|
return this._negative;
|
|
5460
5534
|
}
|
|
@@ -5506,8 +5580,6 @@ class ZekNumericDirective {
|
|
|
5506
5580
|
}
|
|
5507
5581
|
constructor(el) {
|
|
5508
5582
|
this.el = el;
|
|
5509
|
-
this._digits = 0;
|
|
5510
|
-
this._negative = false;
|
|
5511
5583
|
}
|
|
5512
5584
|
onKeyDown(event) {
|
|
5513
5585
|
this.run(this.el.nativeElement.value);
|
|
@@ -5515,10 +5587,10 @@ class ZekNumericDirective {
|
|
|
5515
5587
|
onPaste(event) {
|
|
5516
5588
|
this.run(this.el.nativeElement.value);
|
|
5517
5589
|
}
|
|
5518
|
-
static
|
|
5519
|
-
static
|
|
5590
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekNumericDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
5591
|
+
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
5592
|
}
|
|
5521
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5593
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekNumericDirective, decorators: [{
|
|
5522
5594
|
type: Directive,
|
|
5523
5595
|
args: [{
|
|
5524
5596
|
standalone: true,
|
|
@@ -5537,19 +5609,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
5537
5609
|
}] } });
|
|
5538
5610
|
|
|
5539
5611
|
class ZekPageTitle {
|
|
5540
|
-
|
|
5541
|
-
|
|
5542
|
-
|
|
5612
|
+
icon;
|
|
5613
|
+
title;
|
|
5614
|
+
_isEditPage = false;
|
|
5543
5615
|
get isEditPage() {
|
|
5544
5616
|
return this._isEditPage;
|
|
5545
5617
|
}
|
|
5546
5618
|
set isEditPage(v) {
|
|
5547
5619
|
this._isEditPage = Convert.toBooleanProperty(v);
|
|
5548
5620
|
}
|
|
5549
|
-
|
|
5550
|
-
static
|
|
5621
|
+
modelId;
|
|
5622
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekPageTitle, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5623
|
+
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
5624
|
}
|
|
5552
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5625
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekPageTitle, decorators: [{
|
|
5553
5626
|
type: Component,
|
|
5554
5627
|
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
5628
|
}], propDecorators: { icon: [{
|
|
@@ -5563,19 +5636,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
5563
5636
|
}] } });
|
|
5564
5637
|
|
|
5565
5638
|
class ZekPager {
|
|
5566
|
-
|
|
5567
|
-
|
|
5568
|
-
this._showPageSize = true;
|
|
5569
|
-
this.pagerAlign = 'start';
|
|
5570
|
-
this.onPageChange = new EventEmitter();
|
|
5571
|
-
this.onPageSizeChange = new EventEmitter();
|
|
5572
|
-
}
|
|
5639
|
+
pager = new Pager();
|
|
5640
|
+
_showPageSize = true;
|
|
5573
5641
|
get showPageSize() {
|
|
5574
5642
|
return this._showPageSize;
|
|
5575
5643
|
}
|
|
5576
5644
|
set showPageSize(v) {
|
|
5577
5645
|
this._showPageSize = Convert.toBooleanProperty(v);
|
|
5578
5646
|
}
|
|
5647
|
+
pagerAlign = 'start';
|
|
5579
5648
|
setPage(page) {
|
|
5580
5649
|
// if (!this.pager) return;
|
|
5581
5650
|
if (page === this.pager.pageNumber)
|
|
@@ -5588,10 +5657,12 @@ class ZekPager {
|
|
|
5588
5657
|
return;
|
|
5589
5658
|
this.onPageSizeChange.emit(pageSize);
|
|
5590
5659
|
}
|
|
5591
|
-
|
|
5592
|
-
|
|
5660
|
+
onPageChange = new EventEmitter();
|
|
5661
|
+
onPageSizeChange = new EventEmitter();
|
|
5662
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekPager, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5663
|
+
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
5664
|
}
|
|
5594
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5665
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekPager, decorators: [{
|
|
5595
5666
|
type: Component,
|
|
5596
5667
|
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
5668
|
}], propDecorators: { pager: [{
|
|
@@ -5607,10 +5678,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
5607
5678
|
}] } });
|
|
5608
5679
|
|
|
5609
5680
|
class ZekFieldValidator {
|
|
5610
|
-
|
|
5611
|
-
static
|
|
5681
|
+
field;
|
|
5682
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekFieldValidator, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5683
|
+
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
5684
|
}
|
|
5613
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5685
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekFieldValidator, decorators: [{
|
|
5614
5686
|
type: Component,
|
|
5615
5687
|
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
5688
|
}], propDecorators: { field: [{
|
|
@@ -5618,30 +5690,29 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
5618
5690
|
}] } });
|
|
5619
5691
|
|
|
5620
5692
|
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
|
-
}
|
|
5693
|
+
name = 'Password';
|
|
5694
|
+
_required = false;
|
|
5629
5695
|
get required() {
|
|
5630
5696
|
return this._required;
|
|
5631
5697
|
}
|
|
5632
5698
|
set required(v) {
|
|
5633
5699
|
this._required = Convert.toBooleanProperty(v);
|
|
5634
5700
|
}
|
|
5701
|
+
minlength = null;
|
|
5702
|
+
maxlength = null;
|
|
5703
|
+
model;
|
|
5704
|
+
onChange = new EventEmitter();
|
|
5705
|
+
_type = 'password';
|
|
5635
5706
|
get type() {
|
|
5636
5707
|
return this._type;
|
|
5637
5708
|
}
|
|
5638
5709
|
showHide() {
|
|
5639
5710
|
this._type = this._type === 'password' ? 'text' : 'password';
|
|
5640
5711
|
}
|
|
5641
|
-
static
|
|
5642
|
-
static
|
|
5712
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekPassword, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5713
|
+
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
5714
|
}
|
|
5644
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5715
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekPassword, decorators: [{
|
|
5645
5716
|
type: Component,
|
|
5646
5717
|
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
5718
|
}], propDecorators: { name: [{
|
|
@@ -5660,16 +5731,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
5660
5731
|
}] } });
|
|
5661
5732
|
|
|
5662
5733
|
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
5734
|
get value() {
|
|
5674
5735
|
return this._value;
|
|
5675
5736
|
}
|
|
@@ -5679,18 +5740,21 @@ class ZekProgress {
|
|
|
5679
5740
|
this._value = tmp;
|
|
5680
5741
|
}
|
|
5681
5742
|
}
|
|
5743
|
+
_value = 0;
|
|
5682
5744
|
get showValue() {
|
|
5683
5745
|
return this._showValue;
|
|
5684
5746
|
}
|
|
5685
5747
|
set showValue(v) {
|
|
5686
5748
|
this._showValue = Convert.toBooleanProperty(v);
|
|
5687
5749
|
}
|
|
5750
|
+
_showValue = false;
|
|
5688
5751
|
get showTitle() {
|
|
5689
5752
|
return this._showTitle;
|
|
5690
5753
|
}
|
|
5691
5754
|
set showTitle(v) {
|
|
5692
5755
|
this._showTitle = Convert.toBooleanProperty(v);
|
|
5693
5756
|
}
|
|
5757
|
+
_showTitle = true;
|
|
5694
5758
|
get _title() {
|
|
5695
5759
|
return this._showTitle ? `${this._value} %` : null;
|
|
5696
5760
|
}
|
|
@@ -5700,18 +5764,21 @@ class ZekProgress {
|
|
|
5700
5764
|
set striped(v) {
|
|
5701
5765
|
this._striped = Convert.toBooleanProperty(v);
|
|
5702
5766
|
}
|
|
5767
|
+
_striped = false;
|
|
5703
5768
|
get animated() {
|
|
5704
5769
|
return this._animated;
|
|
5705
5770
|
}
|
|
5706
5771
|
set animated(v) {
|
|
5707
5772
|
this._animated = Convert.toBooleanProperty(v);
|
|
5708
5773
|
}
|
|
5774
|
+
_animated = false;
|
|
5709
5775
|
get label() {
|
|
5710
5776
|
return this._label;
|
|
5711
5777
|
}
|
|
5712
5778
|
set label(v) {
|
|
5713
5779
|
this._label = v ? v : null;
|
|
5714
5780
|
}
|
|
5781
|
+
_label = null;
|
|
5715
5782
|
get height() {
|
|
5716
5783
|
return this._height;
|
|
5717
5784
|
}
|
|
@@ -5719,16 +5786,18 @@ class ZekProgress {
|
|
|
5719
5786
|
const tmp = Convert.toNumber(v) || 0;
|
|
5720
5787
|
this._height = tmp > 0 ? tmp : null;
|
|
5721
5788
|
}
|
|
5789
|
+
_height = null;
|
|
5722
5790
|
get background() {
|
|
5723
5791
|
return this._background;
|
|
5724
5792
|
}
|
|
5725
5793
|
set background(v) {
|
|
5726
5794
|
this._background = v;
|
|
5727
5795
|
}
|
|
5728
|
-
|
|
5729
|
-
static
|
|
5796
|
+
_background = 'primary';
|
|
5797
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekProgress, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5798
|
+
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
5799
|
}
|
|
5731
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5800
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekProgress, decorators: [{
|
|
5732
5801
|
type: Component,
|
|
5733
5802
|
args: [{ standalone: true, selector: 'zek-progress', imports: [
|
|
5734
5803
|
CommonModule
|
|
@@ -5762,15 +5831,23 @@ const ZEK_RADIO_CONTROL_VALUE_ACCESSOR = {
|
|
|
5762
5831
|
multi: true,
|
|
5763
5832
|
};
|
|
5764
5833
|
class ZekRadio extends CoreUiComponent {
|
|
5834
|
+
_changeDetector;
|
|
5765
5835
|
constructor(_changeDetector, _renderer, _elementRef) {
|
|
5766
5836
|
super(_renderer, _elementRef);
|
|
5767
5837
|
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
5838
|
}
|
|
5839
|
+
_uniqueId = `zek-radio-${this.uniqueId}`;
|
|
5840
|
+
/** The unique ID for the radio button. */
|
|
5841
|
+
id = this._uniqueId;
|
|
5842
|
+
/** Used to set the 'aria-label' attribute on the underlying input element. */
|
|
5843
|
+
ariaLabel;
|
|
5844
|
+
/** The 'aria-labelledby' attribute takes precedence as the element's text alternative. */
|
|
5845
|
+
ariaLabelledby;
|
|
5846
|
+
/** The 'aria-describedby' attribute is read after the element's label and field type. */
|
|
5847
|
+
ariaDescribedby;
|
|
5848
|
+
/** The native `<input type=radio>` element */
|
|
5849
|
+
_inputElement;
|
|
5850
|
+
_inline = false;
|
|
5774
5851
|
get inline() {
|
|
5775
5852
|
return this._inline;
|
|
5776
5853
|
}
|
|
@@ -5785,6 +5862,9 @@ class ZekRadio extends CoreUiComponent {
|
|
|
5785
5862
|
get inputId() {
|
|
5786
5863
|
return `${this.id || this._uniqueId}-input`;
|
|
5787
5864
|
}
|
|
5865
|
+
/** The value from ngModel. */
|
|
5866
|
+
modelValue;
|
|
5867
|
+
_checked = false;
|
|
5788
5868
|
get checked() {
|
|
5789
5869
|
return this._checked;
|
|
5790
5870
|
}
|
|
@@ -5843,10 +5923,10 @@ class ZekRadio extends CoreUiComponent {
|
|
|
5843
5923
|
}
|
|
5844
5924
|
}
|
|
5845
5925
|
}
|
|
5846
|
-
static
|
|
5847
|
-
static
|
|
5926
|
+
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 });
|
|
5927
|
+
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
5928
|
}
|
|
5849
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5929
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekRadio, decorators: [{
|
|
5850
5930
|
type: Component,
|
|
5851
5931
|
args: [{ standalone: true, selector: 'zek-radio', host: {
|
|
5852
5932
|
'[attr.id]': 'id',
|
|
@@ -5880,19 +5960,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
5880
5960
|
}] } });
|
|
5881
5961
|
|
|
5882
5962
|
class ZekReadOnlyDirective {
|
|
5883
|
-
|
|
5884
|
-
this._readOnly = false;
|
|
5885
|
-
}
|
|
5963
|
+
_readOnly = false;
|
|
5886
5964
|
get readonly() {
|
|
5887
5965
|
return this._readOnly;
|
|
5888
5966
|
}
|
|
5889
5967
|
set readonly(v) {
|
|
5890
5968
|
this._readOnly = Convert.toBooleanProperty(v);
|
|
5891
5969
|
}
|
|
5892
|
-
static
|
|
5893
|
-
static
|
|
5970
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekReadOnlyDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
5971
|
+
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
5972
|
}
|
|
5895
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5973
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekReadOnlyDirective, decorators: [{
|
|
5896
5974
|
type: Directive,
|
|
5897
5975
|
args: [{
|
|
5898
5976
|
standalone: true,
|
|
@@ -5918,16 +5996,16 @@ urlParams, url, nonce) {
|
|
|
5918
5996
|
const loader = { loadScript };
|
|
5919
5997
|
|
|
5920
5998
|
class ReCaptchaService {
|
|
5999
|
+
isBrowser = true;
|
|
6000
|
+
siteKey;
|
|
6001
|
+
zone;
|
|
6002
|
+
actionBacklog;
|
|
6003
|
+
grecaptcha;
|
|
6004
|
+
onExecuteSubject;
|
|
6005
|
+
onExecuteErrorSubject;
|
|
6006
|
+
onExecuteObservable;
|
|
6007
|
+
onExecuteErrorObservable;
|
|
5921
6008
|
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
6009
|
this.zone = zone;
|
|
5932
6010
|
this.siteKey = siteKey;
|
|
5933
6011
|
this.init();
|
|
@@ -6019,10 +6097,18 @@ class ReCaptchaService {
|
|
|
6019
6097
|
}
|
|
6020
6098
|
}
|
|
6021
6099
|
}
|
|
6022
|
-
|
|
6023
|
-
|
|
6100
|
+
/** @internal */
|
|
6101
|
+
onLoadComplete = (grecaptcha) => {
|
|
6102
|
+
this.grecaptcha = grecaptcha;
|
|
6103
|
+
if (this.actionBacklog && this.actionBacklog.length > 0) {
|
|
6104
|
+
this.actionBacklog.forEach(([action, subject]) => this.executeActionWithSubject(action, subject));
|
|
6105
|
+
this.actionBacklog = undefined;
|
|
6106
|
+
}
|
|
6107
|
+
};
|
|
6108
|
+
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 });
|
|
6109
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ReCaptchaService });
|
|
6024
6110
|
}
|
|
6025
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
6111
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ReCaptchaService, decorators: [{
|
|
6026
6112
|
type: Injectable
|
|
6027
6113
|
}], ctorParameters: () => [{ type: i0.NgZone }, { type: undefined, decorators: [{
|
|
6028
6114
|
type: Optional
|
|
@@ -6048,11 +6134,11 @@ class RecaptchaModule {
|
|
|
6048
6134
|
static forChild(config) {
|
|
6049
6135
|
return this.forRoot(config);
|
|
6050
6136
|
}
|
|
6051
|
-
static
|
|
6052
|
-
static
|
|
6053
|
-
static
|
|
6137
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: RecaptchaModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
6138
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.6", ngImport: i0, type: RecaptchaModule });
|
|
6139
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: RecaptchaModule, providers: [ReCaptchaService] });
|
|
6054
6140
|
}
|
|
6055
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
6141
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: RecaptchaModule, decorators: [{
|
|
6056
6142
|
type: NgModule,
|
|
6057
6143
|
args: [{
|
|
6058
6144
|
providers: [ReCaptchaService]
|
|
@@ -6067,18 +6153,14 @@ const ZEK_SELECT_MULTIPLE_CONTROL_VALUE_ACCESSOR = {
|
|
|
6067
6153
|
class ZekSelectMultiple extends CoreUiComponent {
|
|
6068
6154
|
constructor(renderer, elementRef) {
|
|
6069
6155
|
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
6156
|
}
|
|
6157
|
+
_uniqueId = `zek-select-${this.uniqueId}`;
|
|
6158
|
+
/** The unique ID for the radio button. */
|
|
6159
|
+
id = this._uniqueId;
|
|
6160
|
+
valueField;
|
|
6161
|
+
textField;
|
|
6162
|
+
checkedTextField;
|
|
6163
|
+
css = 'primary';
|
|
6082
6164
|
get placeholder() {
|
|
6083
6165
|
return this._placeholder;
|
|
6084
6166
|
}
|
|
@@ -6088,6 +6170,7 @@ class ZekSelectMultiple extends CoreUiComponent {
|
|
|
6088
6170
|
else
|
|
6089
6171
|
this._placeholder = '';
|
|
6090
6172
|
}
|
|
6173
|
+
_placeholder = '';
|
|
6091
6174
|
get label() {
|
|
6092
6175
|
return this._label;
|
|
6093
6176
|
}
|
|
@@ -6097,12 +6180,15 @@ class ZekSelectMultiple extends CoreUiComponent {
|
|
|
6097
6180
|
else
|
|
6098
6181
|
this._label = '';
|
|
6099
6182
|
}
|
|
6183
|
+
_label = '';
|
|
6100
6184
|
get multiple() {
|
|
6101
6185
|
return this._multiple;
|
|
6102
6186
|
}
|
|
6103
6187
|
set multiple(value) {
|
|
6104
6188
|
this._multiple = Convert.toBooleanProperty(value);
|
|
6105
6189
|
}
|
|
6190
|
+
_multiple = true;
|
|
6191
|
+
_selected = [];
|
|
6106
6192
|
get data() {
|
|
6107
6193
|
return this._data;
|
|
6108
6194
|
}
|
|
@@ -6112,12 +6198,15 @@ class ZekSelectMultiple extends CoreUiComponent {
|
|
|
6112
6198
|
this.onDataChanged();
|
|
6113
6199
|
}
|
|
6114
6200
|
}
|
|
6201
|
+
_data = [];
|
|
6202
|
+
normalized = [];
|
|
6115
6203
|
onDataChanged() {
|
|
6116
6204
|
this._setSelectionByValue(this._value);
|
|
6117
6205
|
if (this.isInitialized) {
|
|
6118
6206
|
this._normalizeData();
|
|
6119
6207
|
}
|
|
6120
6208
|
}
|
|
6209
|
+
_text = '';
|
|
6121
6210
|
onValueChanged() {
|
|
6122
6211
|
if (Array.isArray(this._data)) {
|
|
6123
6212
|
this._setSelectionByValue(this._value);
|
|
@@ -6224,10 +6313,10 @@ class ZekSelectMultiple extends CoreUiComponent {
|
|
|
6224
6313
|
this._text = this._selected.join(', ');
|
|
6225
6314
|
}
|
|
6226
6315
|
}
|
|
6227
|
-
static
|
|
6228
|
-
static
|
|
6316
|
+
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 });
|
|
6317
|
+
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
6318
|
}
|
|
6230
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
6319
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekSelectMultiple, decorators: [{
|
|
6231
6320
|
type: Component,
|
|
6232
6321
|
args: [{ standalone: true, selector: 'zek-select,[zek-select]', providers: [ZEK_SELECT_MULTIPLE_CONTROL_VALUE_ACCESSOR], imports: [
|
|
6233
6322
|
CommonModule,
|
|
@@ -6254,14 +6343,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
6254
6343
|
}] } });
|
|
6255
6344
|
|
|
6256
6345
|
class ZekSelect2 {
|
|
6257
|
-
|
|
6258
|
-
|
|
6259
|
-
|
|
6260
|
-
|
|
6261
|
-
this.placeholder = '';
|
|
6262
|
-
this.selectedItemChange = new EventEmitter();
|
|
6263
|
-
this.valueChange = new EventEmitter();
|
|
6264
|
-
}
|
|
6346
|
+
filter;
|
|
6347
|
+
text;
|
|
6348
|
+
elementId = RandomHelper.randomHex();
|
|
6349
|
+
_data = [];
|
|
6265
6350
|
get data() {
|
|
6266
6351
|
return this._data;
|
|
6267
6352
|
}
|
|
@@ -6272,9 +6357,17 @@ class ZekSelect2 {
|
|
|
6272
6357
|
this.filterData();
|
|
6273
6358
|
}
|
|
6274
6359
|
}
|
|
6360
|
+
filteredData = [];
|
|
6361
|
+
textField;
|
|
6362
|
+
valueField;
|
|
6363
|
+
placeholder = '';
|
|
6364
|
+
selectedItemChange = new EventEmitter();
|
|
6365
|
+
_selectedItem;
|
|
6275
6366
|
get selectedItem() {
|
|
6276
6367
|
return this._selectedItem;
|
|
6277
6368
|
}
|
|
6369
|
+
valueChange = new EventEmitter();
|
|
6370
|
+
_value;
|
|
6278
6371
|
get value() {
|
|
6279
6372
|
return this._value;
|
|
6280
6373
|
}
|
|
@@ -6396,10 +6489,10 @@ class ZekSelect2 {
|
|
|
6396
6489
|
}
|
|
6397
6490
|
}
|
|
6398
6491
|
}
|
|
6399
|
-
static
|
|
6400
|
-
static
|
|
6492
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekSelect2, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
6493
|
+
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
6494
|
}
|
|
6402
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
6495
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekSelect2, decorators: [{
|
|
6403
6496
|
type: Component,
|
|
6404
6497
|
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
6498
|
}], propDecorators: { data: [{
|
|
@@ -6420,15 +6513,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
6420
6513
|
|
|
6421
6514
|
//declare let bootstrap: any;
|
|
6422
6515
|
class ZekSelect2Multiple {
|
|
6423
|
-
|
|
6424
|
-
|
|
6425
|
-
|
|
6426
|
-
|
|
6427
|
-
this.placeholder = '';
|
|
6428
|
-
this.selectedItemChange = new EventEmitter();
|
|
6429
|
-
this._selectedItems = [];
|
|
6430
|
-
this.valueChange = new EventEmitter();
|
|
6431
|
-
}
|
|
6516
|
+
filter;
|
|
6517
|
+
text;
|
|
6518
|
+
elementId = RandomHelper.randomHex();
|
|
6519
|
+
_data = [];
|
|
6432
6520
|
get data() {
|
|
6433
6521
|
return this._data;
|
|
6434
6522
|
}
|
|
@@ -6439,9 +6527,18 @@ class ZekSelect2Multiple {
|
|
|
6439
6527
|
this.filterData();
|
|
6440
6528
|
}
|
|
6441
6529
|
}
|
|
6530
|
+
filteredData = [];
|
|
6531
|
+
textField;
|
|
6532
|
+
selectedField;
|
|
6533
|
+
valueField;
|
|
6534
|
+
placeholder = '';
|
|
6535
|
+
selectedItemChange = new EventEmitter();
|
|
6536
|
+
_selectedItems = [];
|
|
6442
6537
|
get selectedItems() {
|
|
6443
6538
|
return this._selectedItems;
|
|
6444
6539
|
}
|
|
6540
|
+
valueChange = new EventEmitter();
|
|
6541
|
+
_value;
|
|
6445
6542
|
get value() {
|
|
6446
6543
|
return this._value;
|
|
6447
6544
|
}
|
|
@@ -6524,10 +6621,10 @@ class ZekSelect2Multiple {
|
|
|
6524
6621
|
this._value = v;
|
|
6525
6622
|
this.valueChange.emit(v);
|
|
6526
6623
|
}
|
|
6527
|
-
static
|
|
6528
|
-
static
|
|
6624
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekSelect2Multiple, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
6625
|
+
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
6626
|
}
|
|
6530
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
6627
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekSelect2Multiple, decorators: [{
|
|
6531
6628
|
type: Component,
|
|
6532
6629
|
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
6630
|
}], propDecorators: { data: [{
|
|
@@ -6549,27 +6646,26 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
6549
6646
|
}] } });
|
|
6550
6647
|
|
|
6551
6648
|
class ZekSort {
|
|
6649
|
+
el;
|
|
6650
|
+
innerHtml = '';
|
|
6651
|
+
/**
|
|
6652
|
+
* name of sorting column
|
|
6653
|
+
*/
|
|
6654
|
+
header = null;
|
|
6655
|
+
/**
|
|
6656
|
+
* Executes after 'sort' input changed
|
|
6657
|
+
*/
|
|
6658
|
+
sortChange = new EventEmitter();
|
|
6659
|
+
/**
|
|
6660
|
+
* Executes after 'asc' input changed
|
|
6661
|
+
*/
|
|
6662
|
+
ascChange = new EventEmitter();
|
|
6663
|
+
/**
|
|
6664
|
+
* Executes after click on column
|
|
6665
|
+
*/
|
|
6666
|
+
onChange = new EventEmitter();
|
|
6552
6667
|
constructor(el /*, renderer: Renderer, private templateRef: TemplateRef<any>, private viewContainer: ViewContainerRef */) {
|
|
6553
6668
|
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
6669
|
}
|
|
6574
6670
|
// @Input() set myIf(shouldAdd: boolean) {
|
|
6575
6671
|
// if (shouldAdd) {
|
|
@@ -6622,6 +6718,7 @@ class ZekSort {
|
|
|
6622
6718
|
}
|
|
6623
6719
|
this.onChange.emit();
|
|
6624
6720
|
}
|
|
6721
|
+
_sort = null;
|
|
6625
6722
|
get sort() {
|
|
6626
6723
|
return this._sort;
|
|
6627
6724
|
}
|
|
@@ -6631,6 +6728,7 @@ class ZekSort {
|
|
|
6631
6728
|
this.initIcon();
|
|
6632
6729
|
}
|
|
6633
6730
|
}
|
|
6731
|
+
_asc = false;
|
|
6634
6732
|
get asc() {
|
|
6635
6733
|
return this._asc;
|
|
6636
6734
|
}
|
|
@@ -6640,10 +6738,10 @@ class ZekSort {
|
|
|
6640
6738
|
this.initIcon();
|
|
6641
6739
|
}
|
|
6642
6740
|
}
|
|
6643
|
-
static
|
|
6644
|
-
static
|
|
6741
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekSort, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
6742
|
+
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
6743
|
}
|
|
6646
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
6744
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekSort, decorators: [{
|
|
6647
6745
|
type: Directive,
|
|
6648
6746
|
args: [{
|
|
6649
6747
|
standalone: true,
|
|
@@ -6667,6 +6765,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
6667
6765
|
}] } });
|
|
6668
6766
|
|
|
6669
6767
|
class ZekSortButtonGroup {
|
|
6768
|
+
elementName = '';
|
|
6769
|
+
/**
|
|
6770
|
+
* Executes after 'sort' input changed
|
|
6771
|
+
*/
|
|
6772
|
+
sortChange = new EventEmitter();
|
|
6773
|
+
/**
|
|
6774
|
+
* Executes after 'asc' input changed
|
|
6775
|
+
*/
|
|
6776
|
+
ascChange = new EventEmitter();
|
|
6777
|
+
/**
|
|
6778
|
+
* Executes after click on column
|
|
6779
|
+
*/
|
|
6780
|
+
onChange = new EventEmitter();
|
|
6781
|
+
sortField;
|
|
6782
|
+
_sort = null;
|
|
6670
6783
|
get sort() {
|
|
6671
6784
|
return this._sort;
|
|
6672
6785
|
}
|
|
@@ -6675,6 +6788,7 @@ class ZekSortButtonGroup {
|
|
|
6675
6788
|
this._sort = value;
|
|
6676
6789
|
}
|
|
6677
6790
|
}
|
|
6791
|
+
_asc = false;
|
|
6678
6792
|
get asc() {
|
|
6679
6793
|
return this._asc;
|
|
6680
6794
|
}
|
|
@@ -6683,26 +6797,11 @@ class ZekSortButtonGroup {
|
|
|
6683
6797
|
this._asc = value;
|
|
6684
6798
|
}
|
|
6685
6799
|
}
|
|
6800
|
+
sortFields = null;
|
|
6686
6801
|
/**
|
|
6687
6802
|
* Default constructor
|
|
6688
6803
|
*/
|
|
6689
6804
|
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
6805
|
this.elementName = 'sort-button-group-' + RandomHelper.randomHex();
|
|
6707
6806
|
}
|
|
6708
6807
|
sortFieldClick(item) {
|
|
@@ -6720,10 +6819,10 @@ class ZekSortButtonGroup {
|
|
|
6720
6819
|
this.ascChange.emit(this.asc);
|
|
6721
6820
|
this.onChange.emit();
|
|
6722
6821
|
}
|
|
6723
|
-
static
|
|
6724
|
-
static
|
|
6822
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekSortButtonGroup, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
6823
|
+
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
6824
|
}
|
|
6726
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
6825
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekSortButtonGroup, decorators: [{
|
|
6727
6826
|
type: Component,
|
|
6728
6827
|
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
6828
|
}], ctorParameters: () => [], propDecorators: { sortChange: [{
|
|
@@ -6741,17 +6840,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
6741
6840
|
}] } });
|
|
6742
6841
|
|
|
6743
6842
|
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
|
-
}
|
|
6843
|
+
model;
|
|
6844
|
+
modelChange = new EventEmitter();
|
|
6755
6845
|
get max() {
|
|
6756
6846
|
return this._max;
|
|
6757
6847
|
}
|
|
@@ -6761,6 +6851,8 @@ class ZekTag extends CoreUiComponent {
|
|
|
6761
6851
|
this._max = tmp;
|
|
6762
6852
|
}
|
|
6763
6853
|
}
|
|
6854
|
+
_max = 1000000000;
|
|
6855
|
+
_maxlength = null;
|
|
6764
6856
|
get maxlength() {
|
|
6765
6857
|
return this._maxlength;
|
|
6766
6858
|
}
|
|
@@ -6774,12 +6866,14 @@ class ZekTag extends CoreUiComponent {
|
|
|
6774
6866
|
}
|
|
6775
6867
|
this._maxlength = tmp;
|
|
6776
6868
|
}
|
|
6869
|
+
_duplicate = false;
|
|
6777
6870
|
get duplicate() {
|
|
6778
6871
|
return this._duplicate;
|
|
6779
6872
|
}
|
|
6780
6873
|
set duplicate(v) {
|
|
6781
6874
|
this._duplicate = Convert.toBooleanProperty(v);
|
|
6782
6875
|
}
|
|
6876
|
+
text = null;
|
|
6783
6877
|
onKeyEnter(e) {
|
|
6784
6878
|
e.preventDefault();
|
|
6785
6879
|
e.stopPropagation();
|
|
@@ -6787,6 +6881,9 @@ class ZekTag extends CoreUiComponent {
|
|
|
6787
6881
|
this.text = null;
|
|
6788
6882
|
}
|
|
6789
6883
|
}
|
|
6884
|
+
_uniqueId = `zek-tag-${this.uniqueId}`;
|
|
6885
|
+
/** The unique ID for the tag. */
|
|
6886
|
+
id = this._uniqueId;
|
|
6790
6887
|
get inputId() {
|
|
6791
6888
|
return `${this.id || this._uniqueId}-input`;
|
|
6792
6889
|
}
|
|
@@ -6821,10 +6918,10 @@ class ZekTag extends CoreUiComponent {
|
|
|
6821
6918
|
this.model.splice(index, 1);
|
|
6822
6919
|
}
|
|
6823
6920
|
}
|
|
6824
|
-
static
|
|
6825
|
-
static
|
|
6921
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekTag, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
6922
|
+
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
6923
|
}
|
|
6827
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
6924
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekTag, decorators: [{
|
|
6828
6925
|
type: Component,
|
|
6829
6926
|
args: [{ standalone: true, imports: [CommonModule, FormsModule], selector: 'zek-tag', host: {
|
|
6830
6927
|
'[attr.id]': 'id',
|
|
@@ -6845,6 +6942,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
6845
6942
|
|
|
6846
6943
|
//import { toDate } from '../../extensions';
|
|
6847
6944
|
class TimePipe {
|
|
6945
|
+
_datePipe;
|
|
6848
6946
|
constructor(_datePipe) {
|
|
6849
6947
|
this._datePipe = _datePipe;
|
|
6850
6948
|
}
|
|
@@ -6870,24 +6968,25 @@ class TimePipe {
|
|
|
6870
6968
|
isValidDate(d) {
|
|
6871
6969
|
return d instanceof Date && !isNaN(d.getTime());
|
|
6872
6970
|
}
|
|
6873
|
-
static
|
|
6874
|
-
static
|
|
6971
|
+
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 });
|
|
6972
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.0.6", ngImport: i0, type: TimePipe, isStandalone: false, name: "time" });
|
|
6875
6973
|
}
|
|
6876
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
6974
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: TimePipe, decorators: [{
|
|
6877
6975
|
type: Pipe,
|
|
6878
6976
|
args: [{
|
|
6977
|
+
standalone: false,
|
|
6879
6978
|
name: 'time'
|
|
6880
6979
|
}]
|
|
6881
6980
|
}], ctorParameters: () => [{ type: i1$2.DatePipe }] });
|
|
6882
6981
|
|
|
6883
6982
|
class TimeModule {
|
|
6884
|
-
static
|
|
6885
|
-
static
|
|
6886
|
-
static
|
|
6983
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: TimeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
6984
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.6", ngImport: i0, type: TimeModule, declarations: [TimePipe], imports: [CommonModule], exports: [TimePipe] });
|
|
6985
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: TimeModule, providers: [
|
|
6887
6986
|
DatePipe
|
|
6888
|
-
], imports: [CommonModule] });
|
|
6987
|
+
], imports: [CommonModule] });
|
|
6889
6988
|
}
|
|
6890
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
6989
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: TimeModule, decorators: [{
|
|
6891
6990
|
type: NgModule,
|
|
6892
6991
|
args: [{
|
|
6893
6992
|
imports: [
|
|
@@ -6904,23 +7003,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
6904
7003
|
}] });
|
|
6905
7004
|
|
|
6906
7005
|
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
|
-
}
|
|
7006
|
+
seconds = 0;
|
|
7007
|
+
// running = false;
|
|
7008
|
+
_count = 0;
|
|
6918
7009
|
get count() {
|
|
6919
7010
|
return this._count;
|
|
6920
7011
|
}
|
|
7012
|
+
_left = 0;
|
|
6921
7013
|
get left() {
|
|
6922
7014
|
return this._left;
|
|
6923
7015
|
}
|
|
7016
|
+
expireDate = null;
|
|
7017
|
+
subscription = null;
|
|
7018
|
+
//@Output() checkTime: EventEmitter<number> = new EventEmitter();
|
|
7019
|
+
tick = new Subject();
|
|
7020
|
+
completed = new Subject();
|
|
6924
7021
|
// tickerInterval: any;
|
|
6925
7022
|
// expired: Observable<number> = new Observable<number>();
|
|
6926
7023
|
// initialCountValue: number = 0;
|
|
@@ -6978,16 +7075,18 @@ class TimerService {
|
|
|
6978
7075
|
let seconds = delta % 60; // in theory the modulus is not required
|
|
6979
7076
|
*/
|
|
6980
7077
|
}
|
|
6981
|
-
static
|
|
6982
|
-
static
|
|
7078
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: TimerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
7079
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: TimerService });
|
|
6983
7080
|
}
|
|
6984
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
7081
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: TimerService, decorators: [{
|
|
6985
7082
|
type: Injectable
|
|
6986
7083
|
}], propDecorators: { seconds: [{
|
|
6987
7084
|
type: Input
|
|
6988
7085
|
}] } });
|
|
6989
7086
|
|
|
6990
7087
|
class ZekTooltip extends CoreComponent {
|
|
7088
|
+
el;
|
|
7089
|
+
_tooltip;
|
|
6991
7090
|
constructor(el) {
|
|
6992
7091
|
super();
|
|
6993
7092
|
this.el = el;
|
|
@@ -7000,10 +7099,10 @@ class ZekTooltip extends CoreComponent {
|
|
|
7000
7099
|
ngAfterViewInit() {
|
|
7001
7100
|
this._tooltip = new bootstrap.Tooltip(this.el.nativeElement);
|
|
7002
7101
|
}
|
|
7003
|
-
static
|
|
7004
|
-
static
|
|
7102
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekTooltip, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
7103
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.6", type: ZekTooltip, isStandalone: true, selector: "[zek-toltip]", usesInheritance: true, ngImport: i0 });
|
|
7005
7104
|
}
|
|
7006
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
7105
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekTooltip, decorators: [{
|
|
7007
7106
|
type: Directive,
|
|
7008
7107
|
args: [{
|
|
7009
7108
|
standalone: true,
|
|
@@ -7012,6 +7111,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
7012
7111
|
}], ctorParameters: () => [{ type: i0.ElementRef }] });
|
|
7013
7112
|
|
|
7014
7113
|
class ZekLocalToUtcPipe {
|
|
7114
|
+
_datePipe;
|
|
7015
7115
|
constructor(_datePipe) {
|
|
7016
7116
|
this._datePipe = _datePipe;
|
|
7017
7117
|
}
|
|
@@ -7021,22 +7121,23 @@ class ZekLocalToUtcPipe {
|
|
|
7021
7121
|
const date = DateHelper.localToUtc(DateHelper.toDate(value));
|
|
7022
7122
|
return this._datePipe.transform(date, format);
|
|
7023
7123
|
}
|
|
7024
|
-
static
|
|
7025
|
-
static
|
|
7124
|
+
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 });
|
|
7125
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.0.6", ngImport: i0, type: ZekLocalToUtcPipe, isStandalone: false, name: "localToUtc" });
|
|
7026
7126
|
}
|
|
7027
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
7127
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekLocalToUtcPipe, decorators: [{
|
|
7028
7128
|
type: Pipe,
|
|
7029
7129
|
args: [{
|
|
7130
|
+
standalone: false,
|
|
7030
7131
|
name: 'localToUtc',
|
|
7031
7132
|
pure: true
|
|
7032
7133
|
}]
|
|
7033
7134
|
}], ctorParameters: () => [{ type: i1$2.DatePipe }] });
|
|
7034
7135
|
class ZekLocalToUtcModule {
|
|
7035
|
-
static
|
|
7036
|
-
static
|
|
7037
|
-
static
|
|
7136
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekLocalToUtcModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
7137
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.6", ngImport: i0, type: ZekLocalToUtcModule, declarations: [ZekLocalToUtcPipe], exports: [ZekLocalToUtcPipe] });
|
|
7138
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekLocalToUtcModule, providers: [DatePipe] });
|
|
7038
7139
|
}
|
|
7039
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
7140
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekLocalToUtcModule, decorators: [{
|
|
7040
7141
|
type: NgModule,
|
|
7041
7142
|
args: [{
|
|
7042
7143
|
declarations: [ZekLocalToUtcPipe],
|
|
@@ -7046,6 +7147,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
7046
7147
|
}] });
|
|
7047
7148
|
|
|
7048
7149
|
class ZekUtcToLocalPipe {
|
|
7150
|
+
_datePipe;
|
|
7049
7151
|
constructor(_datePipe) {
|
|
7050
7152
|
this._datePipe = _datePipe;
|
|
7051
7153
|
}
|
|
@@ -7055,21 +7157,22 @@ class ZekUtcToLocalPipe {
|
|
|
7055
7157
|
const date = DateHelper.utcToLocal(DateHelper.toDate(value));
|
|
7056
7158
|
return this._datePipe.transform(date, format);
|
|
7057
7159
|
}
|
|
7058
|
-
static
|
|
7059
|
-
static
|
|
7160
|
+
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 });
|
|
7161
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.0.6", ngImport: i0, type: ZekUtcToLocalPipe, isStandalone: false, name: "utcToLocal" });
|
|
7060
7162
|
}
|
|
7061
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
7163
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekUtcToLocalPipe, decorators: [{
|
|
7062
7164
|
type: Pipe,
|
|
7063
7165
|
args: [{
|
|
7166
|
+
standalone: false,
|
|
7064
7167
|
name: 'utcToLocal'
|
|
7065
7168
|
}]
|
|
7066
7169
|
}], ctorParameters: () => [{ type: i1$2.DatePipe }] });
|
|
7067
7170
|
class ZekUtcToLocalModule {
|
|
7068
|
-
static
|
|
7069
|
-
static
|
|
7070
|
-
static
|
|
7171
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekUtcToLocalModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
7172
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.6", ngImport: i0, type: ZekUtcToLocalModule, declarations: [ZekUtcToLocalPipe], exports: [ZekUtcToLocalPipe] });
|
|
7173
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekUtcToLocalModule, providers: [DatePipe] });
|
|
7071
7174
|
}
|
|
7072
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
7175
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekUtcToLocalModule, decorators: [{
|
|
7073
7176
|
type: NgModule,
|
|
7074
7177
|
args: [{
|
|
7075
7178
|
declarations: [ZekUtcToLocalPipe],
|
|
@@ -7201,9 +7304,16 @@ function toFloat(value) {
|
|
|
7201
7304
|
return typeof value === 'number' ? value : parseFloat(value);
|
|
7202
7305
|
}
|
|
7203
7306
|
class AbstractValidatorDirective {
|
|
7204
|
-
|
|
7205
|
-
|
|
7206
|
-
|
|
7307
|
+
_validator = nullValidator;
|
|
7308
|
+
_onChange;
|
|
7309
|
+
/**
|
|
7310
|
+
* A flag that tracks whether this validator is enabled.
|
|
7311
|
+
*
|
|
7312
|
+
* Marking it `internal` (vs `protected`), so that this flag can be used in host bindings of
|
|
7313
|
+
* directive classes that extend this base class.
|
|
7314
|
+
* @internal
|
|
7315
|
+
*/
|
|
7316
|
+
_enabled;
|
|
7207
7317
|
/** @nodoc */
|
|
7208
7318
|
ngOnChanges(changes) {
|
|
7209
7319
|
if (this.inputName in changes) {
|
|
@@ -7233,10 +7343,10 @@ class AbstractValidatorDirective {
|
|
|
7233
7343
|
enabled(input) {
|
|
7234
7344
|
return input != null /* both `null` and `undefined` */;
|
|
7235
7345
|
}
|
|
7236
|
-
static
|
|
7237
|
-
static
|
|
7346
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: AbstractValidatorDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
7347
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.6", type: AbstractValidatorDirective, isStandalone: true, usesOnChanges: true, ngImport: i0 });
|
|
7238
7348
|
}
|
|
7239
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
7349
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: AbstractValidatorDirective, decorators: [{
|
|
7240
7350
|
type: Directive
|
|
7241
7351
|
}] });
|
|
7242
7352
|
const RANGE_VALIDATOR = {
|
|
@@ -7245,21 +7355,20 @@ const RANGE_VALIDATOR = {
|
|
|
7245
7355
|
multi: true
|
|
7246
7356
|
};
|
|
7247
7357
|
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: [{
|
|
7358
|
+
range;
|
|
7359
|
+
/** @internal */
|
|
7360
|
+
inputName = 'range';
|
|
7361
|
+
/** @internal */
|
|
7362
|
+
normalizeInput = (input) => toFloat(input);
|
|
7363
|
+
/** @internal */
|
|
7364
|
+
createValidator = (range) => rangeValidator(range);
|
|
7365
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: RangeValidator, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
7366
|
+
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 });
|
|
7367
|
+
}
|
|
7368
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: RangeValidator, decorators: [{
|
|
7261
7369
|
type: Directive,
|
|
7262
7370
|
args: [{
|
|
7371
|
+
standalone: false,
|
|
7263
7372
|
selector: 'input[type=number][range][formControlName],input[type=number][range][formControl],input[type=number][range][ngModel]',
|
|
7264
7373
|
providers: [RANGE_VALIDATOR],
|
|
7265
7374
|
host: { '[attr.range]': '_enabled ? range : null' }
|
|
@@ -7277,21 +7386,20 @@ const MATCH_VALIDATOR = {
|
|
|
7277
7386
|
multi: true
|
|
7278
7387
|
};
|
|
7279
7388
|
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: [{
|
|
7389
|
+
match;
|
|
7390
|
+
/** @internal */
|
|
7391
|
+
inputName = 'match';
|
|
7392
|
+
/** @internal */
|
|
7393
|
+
normalizeInput = (input) => input;
|
|
7394
|
+
/** @internal */
|
|
7395
|
+
createValidator = (input) => matchValidator(input);
|
|
7396
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: MatchValidator, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
7397
|
+
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 });
|
|
7398
|
+
}
|
|
7399
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: MatchValidator, decorators: [{
|
|
7293
7400
|
type: Directive,
|
|
7294
7401
|
args: [{
|
|
7402
|
+
standalone: false,
|
|
7295
7403
|
selector: '[match][formControlName],match][formControl],[match][ngModel]',
|
|
7296
7404
|
providers: [MATCH_VALIDATOR],
|
|
7297
7405
|
host: { '[attr.match]': '_enabled ? match : null' }
|
|
@@ -7301,13 +7409,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
7301
7409
|
}] } });
|
|
7302
7410
|
|
|
7303
7411
|
class ValidatorsModule {
|
|
7304
|
-
static
|
|
7305
|
-
static
|
|
7412
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ValidatorsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
7413
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.6", ngImport: i0, type: ValidatorsModule, declarations: [RangeValidator,
|
|
7306
7414
|
MatchValidator], imports: [CommonModule], exports: [RangeValidator,
|
|
7307
|
-
MatchValidator] });
|
|
7308
|
-
static
|
|
7415
|
+
MatchValidator] });
|
|
7416
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ValidatorsModule, imports: [CommonModule] });
|
|
7309
7417
|
}
|
|
7310
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
7418
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ValidatorsModule, decorators: [{
|
|
7311
7419
|
type: NgModule,
|
|
7312
7420
|
args: [{
|
|
7313
7421
|
imports: [
|
|
@@ -7325,14 +7433,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
7325
7433
|
}] });
|
|
7326
7434
|
|
|
7327
7435
|
class ZekWizard {
|
|
7328
|
-
|
|
7329
|
-
|
|
7330
|
-
|
|
7331
|
-
|
|
7332
|
-
|
|
7333
|
-
this._steps = 1;
|
|
7334
|
-
this._step = 1;
|
|
7335
|
-
}
|
|
7436
|
+
progress = 0;
|
|
7437
|
+
stepsArray = [
|
|
7438
|
+
{ step: 1, progress: 0 }
|
|
7439
|
+
];
|
|
7440
|
+
_steps = 1;
|
|
7336
7441
|
get steps() {
|
|
7337
7442
|
return this._steps;
|
|
7338
7443
|
}
|
|
@@ -7344,6 +7449,7 @@ class ZekWizard {
|
|
|
7344
7449
|
this.init();
|
|
7345
7450
|
}
|
|
7346
7451
|
}
|
|
7452
|
+
_step = 1;
|
|
7347
7453
|
get step() {
|
|
7348
7454
|
return this._step;
|
|
7349
7455
|
}
|
|
@@ -7373,10 +7479,10 @@ class ZekWizard {
|
|
|
7373
7479
|
next() {
|
|
7374
7480
|
this.step++;
|
|
7375
7481
|
}
|
|
7376
|
-
static
|
|
7377
|
-
static
|
|
7482
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekWizard, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
7483
|
+
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
7484
|
}
|
|
7379
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
7485
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekWizard, decorators: [{
|
|
7380
7486
|
type: Component,
|
|
7381
7487
|
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
7488
|
}], propDecorators: { steps: [{
|
|
@@ -7386,10 +7492,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
7386
7492
|
}] } });
|
|
7387
7493
|
|
|
7388
7494
|
class ZekWizard2 extends ZekWizard {
|
|
7389
|
-
static
|
|
7390
|
-
static
|
|
7495
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekWizard2, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
7496
|
+
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
7497
|
}
|
|
7392
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
7498
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekWizard2, decorators: [{
|
|
7393
7499
|
type: Component,
|
|
7394
7500
|
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
7501
|
}] });
|
|
@@ -7410,11 +7516,11 @@ class WebApiModule {
|
|
|
7410
7516
|
static forChild(config) {
|
|
7411
7517
|
return this.forRoot(config);
|
|
7412
7518
|
}
|
|
7413
|
-
static
|
|
7414
|
-
static
|
|
7415
|
-
static
|
|
7519
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: WebApiModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
7520
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.6", ngImport: i0, type: WebApiModule });
|
|
7521
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: WebApiModule });
|
|
7416
7522
|
}
|
|
7417
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
7523
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: WebApiModule, decorators: [{
|
|
7418
7524
|
type: NgModule
|
|
7419
7525
|
}] });
|
|
7420
7526
|
|