zek 17.3.118 → 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 -752
- 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/models/index.d.ts +1 -0
- 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,78 +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
|
-
//export * from './';
|
|
2832
|
-
|
|
2833
2860
|
// declare let bootstrap: any;
|
|
2834
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;
|
|
2835
2874
|
get initItems() {
|
|
2836
2875
|
return this._initItems;
|
|
2837
2876
|
}
|
|
2838
2877
|
set initItems(v) {
|
|
2839
2878
|
this._initItems = Convert.toBooleanProperty(v);
|
|
2840
2879
|
}
|
|
2880
|
+
filterModal;
|
|
2881
|
+
approveModel = {};
|
|
2882
|
+
approveModal;
|
|
2883
|
+
approvedMesage = 'Alert.Approved';
|
|
2884
|
+
disapproveModal;
|
|
2885
|
+
disapprovedMesage = 'Alert.Disapproved';
|
|
2841
2886
|
constructor(service) {
|
|
2842
2887
|
super();
|
|
2843
2888
|
this.service = service;
|
|
2844
|
-
this.filter = new FilterBase();
|
|
2845
|
-
this.saveFilter = true;
|
|
2846
|
-
this.internalFilter = new FilterBase();
|
|
2847
|
-
this.isFiltered = false;
|
|
2848
|
-
this.selectedIds = [];
|
|
2849
|
-
this.selectedItems = [];
|
|
2850
|
-
this.pager = new Pager();
|
|
2851
|
-
this.tableId = 'table';
|
|
2852
|
-
this._initItems = true;
|
|
2853
|
-
this.approveModel = {};
|
|
2854
|
-
this.approvedMesage = 'Alert.Approved';
|
|
2855
|
-
this.disapprovedMesage = 'Alert.Disapproved';
|
|
2856
|
-
this.translate = inject(TranslateService);
|
|
2857
|
-
this.alert = inject(AlertService);
|
|
2858
2889
|
}
|
|
2890
|
+
translate = inject(TranslateService);
|
|
2891
|
+
alert = inject(AlertService);
|
|
2859
2892
|
init() {
|
|
2860
2893
|
super.init();
|
|
2861
2894
|
this.reset();
|
|
@@ -2871,7 +2904,7 @@ class ListBaseComponent extends BaseComponent {
|
|
|
2871
2904
|
if (!totalCount && this.model.pager) {
|
|
2872
2905
|
totalCount = this.model.pager ? (this.model.pager.totalItemCount || 0) : 0;
|
|
2873
2906
|
}
|
|
2874
|
-
this.pager = PagerHelper.get(totalCount, this.
|
|
2907
|
+
this.pager = PagerHelper.get(totalCount, this.model.pageNumber, this.model.pageSize);
|
|
2875
2908
|
this.onBindModelCompleted();
|
|
2876
2909
|
}
|
|
2877
2910
|
else {
|
|
@@ -3115,10 +3148,10 @@ class ListBaseComponent extends BaseComponent {
|
|
|
3115
3148
|
super.print(id, printType);
|
|
3116
3149
|
}
|
|
3117
3150
|
}
|
|
3118
|
-
static
|
|
3119
|
-
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 });
|
|
3120
3153
|
}
|
|
3121
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3154
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ListBaseComponent, decorators: [{
|
|
3122
3155
|
type: Directive
|
|
3123
3156
|
}], ctorParameters: () => [{ type: undefined }], propDecorators: { initItems: [{
|
|
3124
3157
|
type: Input
|
|
@@ -3134,16 +3167,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
3134
3167
|
}] } });
|
|
3135
3168
|
|
|
3136
3169
|
class ZekDelayedInputDirective {
|
|
3137
|
-
|
|
3138
|
-
|
|
3139
|
-
|
|
3140
|
-
this._delay = 500;
|
|
3141
|
-
}
|
|
3170
|
+
_inputSubject$ = new Subject();
|
|
3171
|
+
delayedInput = new EventEmitter();
|
|
3172
|
+
_delay = 500;
|
|
3142
3173
|
get delay() {
|
|
3143
3174
|
return this._delay;
|
|
3144
3175
|
}
|
|
3145
3176
|
set delay(v) {
|
|
3146
|
-
const tmp = MathHelper.clamp(Convert.toNumber(v), 1,
|
|
3177
|
+
const tmp = MathHelper.clamp(Convert.toNumber(v), 1, 3_600_000);
|
|
3147
3178
|
if (this._delay !== tmp) {
|
|
3148
3179
|
this._delay = tmp;
|
|
3149
3180
|
}
|
|
@@ -3167,10 +3198,10 @@ class ZekDelayedInputDirective {
|
|
|
3167
3198
|
onInput(value) {
|
|
3168
3199
|
this._inputSubject$.next(value); // Push new value to the Subject
|
|
3169
3200
|
}
|
|
3170
|
-
static
|
|
3171
|
-
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 });
|
|
3172
3203
|
}
|
|
3173
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3204
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekDelayedInputDirective, decorators: [{
|
|
3174
3205
|
type: Directive,
|
|
3175
3206
|
args: [{
|
|
3176
3207
|
standalone: true,
|
|
@@ -3193,10 +3224,10 @@ class AgePipe {
|
|
|
3193
3224
|
const timeDiff = (now ? DateHelper.toDate(now).getTime() : Date.now()) - date.getTime();
|
|
3194
3225
|
return Math.floor((timeDiff / (1000 * 3600 * 24)) / 365.25);
|
|
3195
3226
|
}
|
|
3196
|
-
static
|
|
3197
|
-
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" });
|
|
3198
3229
|
}
|
|
3199
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3230
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: AgePipe, decorators: [{
|
|
3200
3231
|
type: Pipe,
|
|
3201
3232
|
args: [{
|
|
3202
3233
|
standalone: true,
|
|
@@ -3205,13 +3236,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
3205
3236
|
}] });
|
|
3206
3237
|
|
|
3207
3238
|
class ZekAlert extends CoreComponent {
|
|
3208
|
-
|
|
3209
|
-
super(...arguments);
|
|
3210
|
-
this._type = 'info';
|
|
3211
|
-
this._showClose = true;
|
|
3212
|
-
this.cssAlert = '';
|
|
3213
|
-
this.cssIcon = '';
|
|
3214
|
-
}
|
|
3239
|
+
_type = 'info';
|
|
3215
3240
|
get type() {
|
|
3216
3241
|
return this._type;
|
|
3217
3242
|
}
|
|
@@ -3221,20 +3246,24 @@ class ZekAlert extends CoreComponent {
|
|
|
3221
3246
|
this.init();
|
|
3222
3247
|
}
|
|
3223
3248
|
}
|
|
3249
|
+
_showClose = true;
|
|
3224
3250
|
get showClose() {
|
|
3225
3251
|
return this._showClose;
|
|
3226
3252
|
}
|
|
3227
3253
|
set showClose(v) {
|
|
3228
3254
|
this._showClose = Convert.toBooleanProperty(v);
|
|
3229
3255
|
}
|
|
3256
|
+
title;
|
|
3230
3257
|
init() {
|
|
3231
3258
|
this.cssAlert = BootstrapHelper.cssAlert(this._type);
|
|
3232
3259
|
this.cssIcon = BootstrapHelper.cssAlertIcon(this._type);
|
|
3233
3260
|
}
|
|
3234
|
-
|
|
3235
|
-
|
|
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"] }] });
|
|
3236
3265
|
}
|
|
3237
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3266
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekAlert, decorators: [{
|
|
3238
3267
|
type: Component,
|
|
3239
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"] }]
|
|
3240
3269
|
}], propDecorators: { type: [{
|
|
@@ -3246,6 +3275,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
3246
3275
|
}] } });
|
|
3247
3276
|
|
|
3248
3277
|
class ZekToast {
|
|
3278
|
+
alertService;
|
|
3249
3279
|
get delay() {
|
|
3250
3280
|
return this._delay;
|
|
3251
3281
|
}
|
|
@@ -3255,11 +3285,13 @@ class ZekToast {
|
|
|
3255
3285
|
this._delay = tmp;
|
|
3256
3286
|
}
|
|
3257
3287
|
}
|
|
3288
|
+
_delay = 3000;
|
|
3289
|
+
icon = true;
|
|
3290
|
+
toasts = [];
|
|
3291
|
+
_subscription;
|
|
3292
|
+
_timeout;
|
|
3258
3293
|
constructor(alertService) {
|
|
3259
3294
|
this.alertService = alertService;
|
|
3260
|
-
this._delay = 3000;
|
|
3261
|
-
this.icon = true;
|
|
3262
|
-
this.toasts = [];
|
|
3263
3295
|
}
|
|
3264
3296
|
ngOnInit() {
|
|
3265
3297
|
this._subscription = this.alertService.getToast().subscribe((toast) => {
|
|
@@ -3346,10 +3378,10 @@ class ZekToast {
|
|
|
3346
3378
|
break;
|
|
3347
3379
|
}
|
|
3348
3380
|
}
|
|
3349
|
-
static
|
|
3350
|
-
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"] }] });
|
|
3351
3383
|
}
|
|
3352
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3384
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekToast, decorators: [{
|
|
3353
3385
|
type: Component,
|
|
3354
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"] }]
|
|
3355
3387
|
}], ctorParameters: () => [{ type: AlertService }], propDecorators: { delay: [{
|
|
@@ -3359,9 +3391,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
3359
3391
|
}] } });
|
|
3360
3392
|
|
|
3361
3393
|
class ZekValidation {
|
|
3394
|
+
alertService;
|
|
3395
|
+
alerts = [];
|
|
3396
|
+
subscription;
|
|
3362
3397
|
constructor(alertService) {
|
|
3363
3398
|
this.alertService = alertService;
|
|
3364
|
-
this.alerts = [];
|
|
3365
3399
|
}
|
|
3366
3400
|
ngOnInit() {
|
|
3367
3401
|
this.subscription = this.alertService.getAlert().subscribe((alert) => {
|
|
@@ -3400,15 +3434,17 @@ class ZekValidation {
|
|
|
3400
3434
|
}
|
|
3401
3435
|
return BootstrapHelper.cssAlert(alert.type);
|
|
3402
3436
|
}
|
|
3403
|
-
static
|
|
3404
|
-
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"] }] });
|
|
3405
3439
|
}
|
|
3406
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3440
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekValidation, decorators: [{
|
|
3407
3441
|
type: Component,
|
|
3408
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"] }]
|
|
3409
3443
|
}], ctorParameters: () => [{ type: AlertService }] });
|
|
3410
3444
|
|
|
3411
3445
|
class ZekAutoComplete {
|
|
3446
|
+
el;
|
|
3447
|
+
router;
|
|
3412
3448
|
constructor(el, router) {
|
|
3413
3449
|
this.el = el;
|
|
3414
3450
|
this.router = router;
|
|
@@ -3419,10 +3455,10 @@ class ZekAutoComplete {
|
|
|
3419
3455
|
}
|
|
3420
3456
|
this.el.nativeElement.setAttribute('autocomplete', 'off');
|
|
3421
3457
|
}
|
|
3422
|
-
static
|
|
3423
|
-
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 });
|
|
3424
3460
|
}
|
|
3425
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3461
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekAutoComplete, decorators: [{
|
|
3426
3462
|
type: Directive,
|
|
3427
3463
|
args: [{
|
|
3428
3464
|
standalone: true,
|
|
@@ -3441,35 +3477,20 @@ const ZEK_BB_CONTROL_VALUE_ACCESSOR = {
|
|
|
3441
3477
|
multi: true,
|
|
3442
3478
|
};
|
|
3443
3479
|
class ZekButtonBrowse extends CoreUiComponent {
|
|
3444
|
-
constructor() {
|
|
3445
|
-
super(...arguments);
|
|
3446
|
-
this._uniqueId = `zek-bb-${this.uniqueId}`;
|
|
3447
|
-
/** The unique ID for the bb. */
|
|
3448
|
-
this.id = this._uniqueId;
|
|
3449
|
-
this.filter = {};
|
|
3450
|
-
this.data = new PagedList();
|
|
3451
|
-
this._text = null;
|
|
3452
|
-
this._readOnly = false;
|
|
3453
|
-
this._hide = false;
|
|
3454
|
-
this._showInput = true;
|
|
3455
|
-
this._multiSelect = false;
|
|
3456
|
-
this.onShowModal = new EventEmitter();
|
|
3457
|
-
this.onChooseAll = new EventEmitter();
|
|
3458
|
-
this.onKeyPairChange = new EventEmitter();
|
|
3459
|
-
this.onBindText = new EventEmitter();
|
|
3460
|
-
this._size = '';
|
|
3461
|
-
this._scrollable = false;
|
|
3462
|
-
this._fullscreen = false;
|
|
3463
|
-
this._showHeader = true;
|
|
3464
|
-
}
|
|
3465
3480
|
destroy() {
|
|
3466
3481
|
this._modal?.dispose();
|
|
3467
3482
|
this._modal = null;
|
|
3468
3483
|
return super.destroy();
|
|
3469
3484
|
}
|
|
3485
|
+
_uniqueId = `zek-bb-${this.uniqueId}`;
|
|
3486
|
+
/** The unique ID for the bb. */
|
|
3487
|
+
id = this._uniqueId;
|
|
3470
3488
|
get modalId() {
|
|
3471
3489
|
return `${this.id || this._uniqueId}-modal`;
|
|
3472
3490
|
}
|
|
3491
|
+
filter = {};
|
|
3492
|
+
data = new PagedList();
|
|
3493
|
+
_type;
|
|
3473
3494
|
get type() {
|
|
3474
3495
|
return this._type;
|
|
3475
3496
|
}
|
|
@@ -3479,6 +3500,7 @@ class ZekButtonBrowse extends CoreUiComponent {
|
|
|
3479
3500
|
this.onValueChanged(); //get and set input text
|
|
3480
3501
|
}
|
|
3481
3502
|
}
|
|
3503
|
+
_text = null;
|
|
3482
3504
|
get text() {
|
|
3483
3505
|
return this._text;
|
|
3484
3506
|
}
|
|
@@ -3491,30 +3513,39 @@ class ZekButtonBrowse extends CoreUiComponent {
|
|
|
3491
3513
|
onTextChanged() {
|
|
3492
3514
|
this.onKeyPairChange.emit(new KeyPair({ key: this._value, value: this._text }));
|
|
3493
3515
|
}
|
|
3516
|
+
_readOnly = false;
|
|
3494
3517
|
get readOnly() {
|
|
3495
3518
|
return this._readOnly;
|
|
3496
3519
|
}
|
|
3497
3520
|
set readOnly(v) {
|
|
3498
3521
|
this._readOnly = Convert.toBooleanProperty(v);
|
|
3499
3522
|
}
|
|
3523
|
+
_hide = false;
|
|
3500
3524
|
get hide() {
|
|
3501
3525
|
return this._hide;
|
|
3502
3526
|
}
|
|
3503
3527
|
set hide(v) {
|
|
3504
3528
|
this._hide = Convert.toBooleanProperty(v);
|
|
3505
3529
|
}
|
|
3530
|
+
_showInput = true;
|
|
3506
3531
|
get showInput() {
|
|
3507
3532
|
return this._showInput;
|
|
3508
3533
|
}
|
|
3509
3534
|
set showInput(v) {
|
|
3510
3535
|
this._showInput = Convert.toBooleanProperty(v);
|
|
3511
3536
|
}
|
|
3537
|
+
_multiSelect = false;
|
|
3512
3538
|
get multiSelect() {
|
|
3513
3539
|
return this._multiSelect;
|
|
3514
3540
|
}
|
|
3515
3541
|
set multiSelect(v) {
|
|
3516
3542
|
this._multiSelect = Convert.toBooleanProperty(v);
|
|
3517
3543
|
}
|
|
3544
|
+
onShowModal = new EventEmitter();
|
|
3545
|
+
onChooseAll = new EventEmitter();
|
|
3546
|
+
onKeyPairChange = new EventEmitter();
|
|
3547
|
+
onBindText = new EventEmitter();
|
|
3548
|
+
_modal;
|
|
3518
3549
|
get modal() {
|
|
3519
3550
|
if (!this._modal) {
|
|
3520
3551
|
const modalEl = document.getElementById(this.modalId);
|
|
@@ -3525,24 +3556,28 @@ class ZekButtonBrowse extends CoreUiComponent {
|
|
|
3525
3556
|
set modal(v) {
|
|
3526
3557
|
this._modal = v;
|
|
3527
3558
|
}
|
|
3559
|
+
_size = '';
|
|
3528
3560
|
get size() {
|
|
3529
3561
|
return this._size;
|
|
3530
3562
|
}
|
|
3531
3563
|
set size(v) {
|
|
3532
3564
|
this._size = v;
|
|
3533
3565
|
}
|
|
3566
|
+
_scrollable = false;
|
|
3534
3567
|
get scrollable() {
|
|
3535
3568
|
return this._scrollable;
|
|
3536
3569
|
}
|
|
3537
3570
|
set scrollable(v) {
|
|
3538
3571
|
this._scrollable = Convert.toBooleanProperty(v);
|
|
3539
3572
|
}
|
|
3573
|
+
_fullscreen = false;
|
|
3540
3574
|
get fullscreen() {
|
|
3541
3575
|
return this._fullscreen;
|
|
3542
3576
|
}
|
|
3543
3577
|
set fullscreen(v) {
|
|
3544
3578
|
this._fullscreen = Convert.toBooleanProperty(v);
|
|
3545
3579
|
}
|
|
3580
|
+
_showHeader = true;
|
|
3546
3581
|
get showHeader() {
|
|
3547
3582
|
return this._showHeader;
|
|
3548
3583
|
}
|
|
@@ -3591,12 +3626,12 @@ class ZekButtonBrowse extends CoreUiComponent {
|
|
|
3591
3626
|
bindText() {
|
|
3592
3627
|
this.onBindText.emit();
|
|
3593
3628
|
}
|
|
3594
|
-
static
|
|
3595
|
-
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" }] });
|
|
3596
3631
|
}
|
|
3597
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3632
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekButtonBrowse, decorators: [{
|
|
3598
3633
|
type: Component,
|
|
3599
|
-
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>" }]
|
|
3600
3635
|
}], propDecorators: { id: [{
|
|
3601
3636
|
type: Input
|
|
3602
3637
|
}], type: [{
|
|
@@ -3630,35 +3665,33 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
3630
3665
|
}] } });
|
|
3631
3666
|
|
|
3632
3667
|
class ZekButtonBrowseModalToolbar {
|
|
3633
|
-
|
|
3634
|
-
this.onSearch = new EventEmitter();
|
|
3635
|
-
this.onReset = new EventEmitter();
|
|
3636
|
-
this._multiSelect = false;
|
|
3637
|
-
this.onChooseAll = new EventEmitter();
|
|
3638
|
-
}
|
|
3668
|
+
onSearch = new EventEmitter();
|
|
3639
3669
|
search() {
|
|
3640
3670
|
this.onSearch.emit();
|
|
3641
3671
|
}
|
|
3672
|
+
onReset = new EventEmitter();
|
|
3642
3673
|
reset() {
|
|
3643
3674
|
this.onReset.emit();
|
|
3644
3675
|
}
|
|
3676
|
+
_multiSelect = false;
|
|
3645
3677
|
get multiSelect() {
|
|
3646
3678
|
return this._multiSelect;
|
|
3647
3679
|
}
|
|
3648
3680
|
set multiSelect(v) {
|
|
3649
3681
|
this._multiSelect = Convert.toBooleanProperty(v);
|
|
3650
3682
|
}
|
|
3683
|
+
onChooseAll = new EventEmitter();
|
|
3651
3684
|
chooseAll() {
|
|
3652
3685
|
if (!this.multiSelect)
|
|
3653
3686
|
return;
|
|
3654
3687
|
this.onChooseAll.emit();
|
|
3655
3688
|
}
|
|
3656
|
-
static
|
|
3657
|
-
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"] }] });
|
|
3658
3691
|
}
|
|
3659
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3692
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekButtonBrowseModalToolbar, decorators: [{
|
|
3660
3693
|
type: Component,
|
|
3661
|
-
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>" }]
|
|
3662
3695
|
}], propDecorators: { onSearch: [{
|
|
3663
3696
|
type: Output
|
|
3664
3697
|
}], onReset: [{
|
|
@@ -3670,17 +3703,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
3670
3703
|
}] } });
|
|
3671
3704
|
|
|
3672
3705
|
class ZekButtonBrowseModule {
|
|
3673
|
-
static
|
|
3674
|
-
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,
|
|
3675
3708
|
ZekButtonBrowseModalToolbar], imports: [CommonModule,
|
|
3676
3709
|
FormsModule,
|
|
3677
3710
|
TranslateModule], exports: [ZekButtonBrowse,
|
|
3678
|
-
ZekButtonBrowseModalToolbar] });
|
|
3679
|
-
static
|
|
3711
|
+
ZekButtonBrowseModalToolbar] });
|
|
3712
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekButtonBrowseModule, imports: [CommonModule,
|
|
3680
3713
|
FormsModule,
|
|
3681
|
-
TranslateModule] });
|
|
3714
|
+
TranslateModule] });
|
|
3682
3715
|
}
|
|
3683
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3716
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekButtonBrowseModule, decorators: [{
|
|
3684
3717
|
type: NgModule,
|
|
3685
3718
|
args: [{
|
|
3686
3719
|
imports: [
|
|
@@ -3700,22 +3733,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
3700
3733
|
}] });
|
|
3701
3734
|
|
|
3702
3735
|
class ZekButtonBrowseModalBase extends CoreComponent {
|
|
3703
|
-
|
|
3704
|
-
|
|
3705
|
-
|
|
3706
|
-
|
|
3707
|
-
this.onChoose = new EventEmitter();
|
|
3708
|
-
this.onChooseAll = new EventEmitter();
|
|
3709
|
-
}
|
|
3736
|
+
type;
|
|
3737
|
+
filter = {};
|
|
3738
|
+
data;
|
|
3739
|
+
_multiSelect = false;
|
|
3710
3740
|
get multiSelect() {
|
|
3711
3741
|
return this._multiSelect;
|
|
3712
3742
|
}
|
|
3713
3743
|
set multiSelect(v) {
|
|
3714
3744
|
this._multiSelect = Convert.toBooleanProperty(v);
|
|
3715
3745
|
}
|
|
3746
|
+
value;
|
|
3747
|
+
onChoose = new EventEmitter();
|
|
3716
3748
|
choose(value) {
|
|
3717
3749
|
this.onChoose.emit(value);
|
|
3718
3750
|
}
|
|
3751
|
+
onChooseAll = new EventEmitter();
|
|
3719
3752
|
chooseAll() {
|
|
3720
3753
|
this.onChooseAll.emit(this.filter);
|
|
3721
3754
|
}
|
|
@@ -3748,10 +3781,10 @@ class ZekButtonBrowseModalBase extends CoreComponent {
|
|
|
3748
3781
|
reset() {
|
|
3749
3782
|
this.filter = {};
|
|
3750
3783
|
}
|
|
3751
|
-
static
|
|
3752
|
-
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 });
|
|
3753
3786
|
}
|
|
3754
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3787
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekButtonBrowseModalBase, decorators: [{
|
|
3755
3788
|
type: Directive
|
|
3756
3789
|
}], propDecorators: { type: [{
|
|
3757
3790
|
type: Input
|
|
@@ -3778,10 +3811,10 @@ class ZekCallbackPipe {
|
|
|
3778
3811
|
? items.filter(item => callback(item, filter))
|
|
3779
3812
|
: items.filter(item => callback(item));
|
|
3780
3813
|
}
|
|
3781
|
-
static
|
|
3782
|
-
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 });
|
|
3783
3816
|
}
|
|
3784
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3817
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekCallbackPipe, decorators: [{
|
|
3785
3818
|
type: Pipe,
|
|
3786
3819
|
args: [{
|
|
3787
3820
|
standalone: true,
|
|
@@ -3791,23 +3824,28 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
3791
3824
|
}] });
|
|
3792
3825
|
|
|
3793
3826
|
class ZekCard {
|
|
3827
|
+
cdRef;
|
|
3794
3828
|
/**
|
|
3795
3829
|
*
|
|
3796
3830
|
*/
|
|
3797
3831
|
constructor(cdRef) {
|
|
3798
3832
|
this.cdRef = cdRef;
|
|
3799
|
-
this._css = '';
|
|
3800
|
-
this.showHeader = true;
|
|
3801
|
-
this.showBody = true;
|
|
3802
|
-
// showContent = true;
|
|
3803
|
-
this.showFooter = true;
|
|
3804
3833
|
}
|
|
3834
|
+
headerWrapper;
|
|
3835
|
+
bodyRef;
|
|
3836
|
+
// @ViewChild('contentRef') private contentRef: ElementRef | undefined;
|
|
3837
|
+
footerRef;
|
|
3838
|
+
_css = '';
|
|
3805
3839
|
get css() {
|
|
3806
3840
|
return this._css;
|
|
3807
3841
|
}
|
|
3808
3842
|
set css(value) {
|
|
3809
3843
|
this._css = value || '';
|
|
3810
3844
|
}
|
|
3845
|
+
showHeader = true;
|
|
3846
|
+
showBody = true;
|
|
3847
|
+
// showContent = true;
|
|
3848
|
+
showFooter = true;
|
|
3811
3849
|
ngAfterViewInit() {
|
|
3812
3850
|
this.showHeader = this.headerWrapper ? this.headerWrapper.nativeElement.childNodes.length > 0 : false;
|
|
3813
3851
|
this.showBody = this.bodyRef ? this.bodyRef.nativeElement.children.length > 0 : false;
|
|
@@ -3815,10 +3853,10 @@ class ZekCard {
|
|
|
3815
3853
|
this.showFooter = this.footerRef ? this.footerRef.nativeElement.childNodes.length > 0 : false;
|
|
3816
3854
|
this.cdRef.detectChanges();
|
|
3817
3855
|
}
|
|
3818
|
-
static
|
|
3819
|
-
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"] }] });
|
|
3820
3858
|
}
|
|
3821
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3859
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekCard, decorators: [{
|
|
3822
3860
|
type: Component,
|
|
3823
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"] }]
|
|
3824
3862
|
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }], propDecorators: { headerWrapper: [{
|
|
@@ -3835,25 +3873,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
3835
3873
|
}] } });
|
|
3836
3874
|
|
|
3837
3875
|
class ZekCountdown extends CoreComponent {
|
|
3838
|
-
constructor() {
|
|
3839
|
-
super(...arguments);
|
|
3840
|
-
this.left = {
|
|
3841
|
-
days: 0,
|
|
3842
|
-
hours: 0,
|
|
3843
|
-
hh: '00',
|
|
3844
|
-
minutes: 0,
|
|
3845
|
-
mm: '00',
|
|
3846
|
-
seconds: 0,
|
|
3847
|
-
ss: '00'
|
|
3848
|
-
};
|
|
3849
|
-
this.date = new Date();
|
|
3850
|
-
this._targetDate = null;
|
|
3851
|
-
this._targetTime = null;
|
|
3852
|
-
}
|
|
3853
3876
|
destroy() {
|
|
3854
3877
|
stop();
|
|
3855
3878
|
return super.destroy();
|
|
3856
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;
|
|
3857
3892
|
// private _onTickSubject?: Subject<void>;
|
|
3858
3893
|
// private _onTickObservable?: Observable<void>;
|
|
3859
3894
|
// get onRefreshToken(): Observable<void> {
|
|
@@ -3869,6 +3904,8 @@ class ZekCountdown extends CoreComponent {
|
|
|
3869
3904
|
this.start();
|
|
3870
3905
|
this.tick();
|
|
3871
3906
|
}
|
|
3907
|
+
_targetDate = null;
|
|
3908
|
+
_targetTime = null;
|
|
3872
3909
|
get targetDate() {
|
|
3873
3910
|
return this._targetDate;
|
|
3874
3911
|
}
|
|
@@ -3922,10 +3959,10 @@ class ZekCountdown extends CoreComponent {
|
|
|
3922
3959
|
this.left.seconds = 60 - this.date.getSeconds();
|
|
3923
3960
|
this.left.ss = (this.left.seconds < 10 ? '0' : '') + this.left.seconds;
|
|
3924
3961
|
}
|
|
3925
|
-
static
|
|
3926
|
-
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" });
|
|
3927
3964
|
}
|
|
3928
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3965
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekCountdown, decorators: [{
|
|
3929
3966
|
type: Component,
|
|
3930
3967
|
args: [{ standalone: true, imports: [], selector: 'zek-countdown', template: "{{left.days}}d - {{left.hh}}h - {{left.mm}}m - {{left.ss}}s" }]
|
|
3931
3968
|
}], propDecorators: { targetDate: [{
|
|
@@ -3962,10 +3999,10 @@ class ZekDateAgoPipe {
|
|
|
3962
3999
|
}
|
|
3963
4000
|
return date;
|
|
3964
4001
|
}
|
|
3965
|
-
static
|
|
3966
|
-
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" });
|
|
3967
4004
|
}
|
|
3968
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4005
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekDateAgoPipe, decorators: [{
|
|
3969
4006
|
type: Pipe,
|
|
3970
4007
|
args: [{
|
|
3971
4008
|
standalone: true,
|
|
@@ -3980,21 +4017,12 @@ const DATE_VALUE_ACCESSOR = {
|
|
|
3980
4017
|
multi: true,
|
|
3981
4018
|
};
|
|
3982
4019
|
class DateValueAccessor {
|
|
4020
|
+
el;
|
|
4021
|
+
//@Input() ngModel: any;
|
|
4022
|
+
datepicker;
|
|
4023
|
+
oldValue = null;
|
|
3983
4024
|
constructor(el, format, language, env) {
|
|
3984
4025
|
this.el = el;
|
|
3985
|
-
this.oldValue = null;
|
|
3986
|
-
/*writeValue(date: Date) {
|
|
3987
|
-
// Create UTC Date, time is set to 00:00 in UTC time
|
|
3988
|
-
const utcDate: Date | null = date
|
|
3989
|
-
? new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate()))
|
|
3990
|
-
: null;
|
|
3991
|
-
this.renderer.setProperty(this.elementRef.nativeElement, 'valueAsDate', utcDate);
|
|
3992
|
-
}*/
|
|
3993
|
-
//@HostListener('input', ['$event.target.valueAsDate']) onChange = (_: any) => { };
|
|
3994
|
-
//@HostListener('input', [])
|
|
3995
|
-
this.onChange = () => { };
|
|
3996
|
-
//@HostListener('blur', [])
|
|
3997
|
-
this.onTouched = () => { };
|
|
3998
4026
|
if (env) {
|
|
3999
4027
|
if (env.datepickerFormat) {
|
|
4000
4028
|
format = env.datepickerFormat;
|
|
@@ -4127,18 +4155,31 @@ class DateValueAccessor {
|
|
|
4127
4155
|
// this.datepicker.setDate(date);
|
|
4128
4156
|
// }
|
|
4129
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 = () => { };
|
|
4130
4168
|
registerOnChange(fn) {
|
|
4131
4169
|
this.onChange = fn;
|
|
4132
4170
|
}
|
|
4171
|
+
//@HostListener('blur', [])
|
|
4172
|
+
onTouched = () => { };
|
|
4133
4173
|
registerOnTouched(fn) {
|
|
4134
4174
|
this.onTouched = fn;
|
|
4135
4175
|
}
|
|
4136
|
-
static
|
|
4137
|
-
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 });
|
|
4138
4178
|
}
|
|
4139
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4179
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: DateValueAccessor, decorators: [{
|
|
4140
4180
|
type: Directive,
|
|
4141
4181
|
args: [{
|
|
4182
|
+
standalone: false,
|
|
4142
4183
|
selector: '[zek-date],input[type=date][formControlName],input[type=date][formControl],input[type=date][ngModel]', //,input[type=date][ngModel]
|
|
4143
4184
|
providers: [DATE_VALUE_ACCESSOR],
|
|
4144
4185
|
host: {
|
|
@@ -4172,11 +4213,11 @@ class DatepickerModule {
|
|
|
4172
4213
|
static forChild(config, environment) {
|
|
4173
4214
|
return this.forRoot(config, environment);
|
|
4174
4215
|
}
|
|
4175
|
-
static
|
|
4176
|
-
static
|
|
4177
|
-
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 });
|
|
4178
4219
|
}
|
|
4179
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4220
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: DatepickerModule, decorators: [{
|
|
4180
4221
|
type: NgModule,
|
|
4181
4222
|
args: [{
|
|
4182
4223
|
declarations: [DateValueAccessor],
|
|
@@ -4185,69 +4226,67 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
4185
4226
|
}] });
|
|
4186
4227
|
|
|
4187
4228
|
class ZekEditToolbar {
|
|
4188
|
-
|
|
4189
|
-
this._showSave = true;
|
|
4190
|
-
this._showCancel = true;
|
|
4191
|
-
this.PrintType = PrintType;
|
|
4192
|
-
this._showExport = false;
|
|
4193
|
-
this._showPrint = false;
|
|
4194
|
-
this._readOnly = false;
|
|
4195
|
-
this.onSave = new EventEmitter();
|
|
4196
|
-
// save(navigateToReturnUrl: boolean) {
|
|
4197
|
-
// this.onSave.emit(navigateToReturnUrl);
|
|
4198
|
-
// }
|
|
4199
|
-
this.onCancel = new EventEmitter();
|
|
4200
|
-
// @Output()
|
|
4201
|
-
// onReset = new EventEmitter();
|
|
4202
|
-
// reset() {
|
|
4203
|
-
// this.onReset.emit();
|
|
4204
|
-
// }
|
|
4205
|
-
this.onPrint = new EventEmitter();
|
|
4206
|
-
this.onExport = new EventEmitter();
|
|
4207
|
-
}
|
|
4229
|
+
_showSave = true;
|
|
4208
4230
|
get showSave() {
|
|
4209
4231
|
return this._showSave;
|
|
4210
4232
|
}
|
|
4211
4233
|
set showSave(v) {
|
|
4212
4234
|
this._showSave = Convert.toBooleanProperty(v);
|
|
4213
4235
|
}
|
|
4236
|
+
_showCancel = true;
|
|
4214
4237
|
get showCancel() {
|
|
4215
4238
|
return this._showCancel;
|
|
4216
4239
|
}
|
|
4217
4240
|
set showCancel(v) {
|
|
4218
4241
|
this._showCancel = Convert.toBooleanProperty(v);
|
|
4219
4242
|
}
|
|
4243
|
+
PrintType = PrintType;
|
|
4244
|
+
_showExport = false;
|
|
4220
4245
|
get showExport() {
|
|
4221
4246
|
return this._showExport;
|
|
4222
4247
|
}
|
|
4223
4248
|
set showExport(v) {
|
|
4224
4249
|
this._showExport = Convert.toBooleanProperty(v);
|
|
4225
4250
|
}
|
|
4251
|
+
_showPrint = false;
|
|
4226
4252
|
get showPrint() {
|
|
4227
4253
|
return this._showPrint;
|
|
4228
4254
|
}
|
|
4229
4255
|
set showPrint(v) {
|
|
4230
4256
|
this._showPrint = Convert.toBooleanProperty(v);
|
|
4231
4257
|
}
|
|
4258
|
+
_readOnly = false;
|
|
4232
4259
|
get readOnly() {
|
|
4233
4260
|
return this._readOnly;
|
|
4234
4261
|
}
|
|
4235
4262
|
set readOnly(v) {
|
|
4236
4263
|
this._readOnly = Convert.toBooleanProperty(v);
|
|
4237
4264
|
}
|
|
4265
|
+
onSave = new EventEmitter();
|
|
4266
|
+
// save(navigateToReturnUrl: boolean) {
|
|
4267
|
+
// this.onSave.emit(navigateToReturnUrl);
|
|
4268
|
+
// }
|
|
4269
|
+
onCancel = new EventEmitter();
|
|
4238
4270
|
cancel() {
|
|
4239
4271
|
this.onCancel.emit();
|
|
4240
4272
|
}
|
|
4273
|
+
// @Output()
|
|
4274
|
+
// onReset = new EventEmitter();
|
|
4275
|
+
// reset() {
|
|
4276
|
+
// this.onReset.emit();
|
|
4277
|
+
// }
|
|
4278
|
+
onPrint = new EventEmitter();
|
|
4241
4279
|
print(printType) {
|
|
4242
4280
|
this.onPrint.emit(printType);
|
|
4243
4281
|
}
|
|
4282
|
+
onExport = new EventEmitter();
|
|
4244
4283
|
exportExcel() {
|
|
4245
4284
|
this.onExport.emit(1);
|
|
4246
4285
|
}
|
|
4247
|
-
static
|
|
4248
|
-
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" }] });
|
|
4249
4288
|
}
|
|
4250
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4289
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekEditToolbar, decorators: [{
|
|
4251
4290
|
type: Component,
|
|
4252
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>" }]
|
|
4253
4292
|
}], propDecorators: { showSave: [{
|
|
@@ -4280,19 +4319,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
4280
4319
|
* formats to: 1 KB
|
|
4281
4320
|
*/
|
|
4282
4321
|
class ZekFileSizePipe {
|
|
4283
|
-
|
|
4284
|
-
|
|
4285
|
-
|
|
4286
|
-
|
|
4287
|
-
|
|
4288
|
-
|
|
4289
|
-
|
|
4290
|
-
|
|
4291
|
-
|
|
4292
|
-
|
|
4293
|
-
|
|
4294
|
-
];
|
|
4295
|
-
}
|
|
4322
|
+
units = [
|
|
4323
|
+
'bytes',
|
|
4324
|
+
'kB',
|
|
4325
|
+
'MB',
|
|
4326
|
+
'GB',
|
|
4327
|
+
'TB',
|
|
4328
|
+
'PB',
|
|
4329
|
+
'EB',
|
|
4330
|
+
'ZB',
|
|
4331
|
+
'YB'
|
|
4332
|
+
];
|
|
4296
4333
|
transform(bytes = 0, precision = 0) {
|
|
4297
4334
|
if (typeof bytes === 'undefined' || bytes == null)
|
|
4298
4335
|
bytes = 0;
|
|
@@ -4307,10 +4344,10 @@ class ZekFileSizePipe {
|
|
|
4307
4344
|
}
|
|
4308
4345
|
return bytes.toFixed(+precision) + ' ' + this.units[unit];
|
|
4309
4346
|
}
|
|
4310
|
-
static
|
|
4311
|
-
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" });
|
|
4312
4349
|
}
|
|
4313
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4350
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekFileSizePipe, decorators: [{
|
|
4314
4351
|
type: Pipe,
|
|
4315
4352
|
args: [{
|
|
4316
4353
|
standalone: true,
|
|
@@ -4319,20 +4356,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
4319
4356
|
}] });
|
|
4320
4357
|
|
|
4321
4358
|
class ZekFileInput extends CoreUiComponent {
|
|
4322
|
-
|
|
4323
|
-
|
|
4324
|
-
|
|
4325
|
-
|
|
4326
|
-
|
|
4327
|
-
|
|
4328
|
-
/** The unique ID for the tag. */
|
|
4329
|
-
this.id = this._uniqueId;
|
|
4330
|
-
this._accept = '*';
|
|
4331
|
-
this._multiple = false;
|
|
4332
|
-
}
|
|
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;
|
|
4333
4365
|
get inputId() {
|
|
4334
4366
|
return `${this.id || this._uniqueId}-input`;
|
|
4335
4367
|
}
|
|
4368
|
+
_accept = '*';
|
|
4336
4369
|
get accept() {
|
|
4337
4370
|
return this._accept;
|
|
4338
4371
|
}
|
|
@@ -4342,6 +4375,7 @@ class ZekFileInput extends CoreUiComponent {
|
|
|
4342
4375
|
else
|
|
4343
4376
|
this._accept = v;
|
|
4344
4377
|
}
|
|
4378
|
+
_multiple = false;
|
|
4345
4379
|
get multiple() {
|
|
4346
4380
|
return this._multiple;
|
|
4347
4381
|
}
|
|
@@ -4372,10 +4406,10 @@ class ZekFileInput extends CoreUiComponent {
|
|
|
4372
4406
|
}
|
|
4373
4407
|
});
|
|
4374
4408
|
}
|
|
4375
|
-
static
|
|
4376
|
-
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 }] });
|
|
4377
4411
|
}
|
|
4378
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4412
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekFileInput, decorators: [{
|
|
4379
4413
|
type: Component,
|
|
4380
4414
|
args: [{ standalone: true, imports: [CommonModule, FormsModule], selector: 'zek-file-input', providers: [FileService], host: {
|
|
4381
4415
|
'[attr.id]': 'id',
|
|
@@ -4391,33 +4425,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
4391
4425
|
}] } });
|
|
4392
4426
|
|
|
4393
4427
|
class ZekModal extends CoreComponent {
|
|
4394
|
-
|
|
4395
|
-
super(...arguments);
|
|
4396
|
-
this.translate = inject(TranslateService);
|
|
4397
|
-
this._uniqueId = `zek-modal-${this.uniqueId}`;
|
|
4398
|
-
/** The unique ID for the radio button. */
|
|
4399
|
-
this.id = this._uniqueId;
|
|
4400
|
-
this.modalId = `${this.id}-modal`;
|
|
4401
|
-
this.lableId = `${this.id}-lable`;
|
|
4402
|
-
this.cancelButtonId = `${this.id}-cancel-button`;
|
|
4403
|
-
this.okButtonId = `${this.id}-ok-button`;
|
|
4404
|
-
this.elementId = RandomHelper.randomHex();
|
|
4405
|
-
this._showOk = true;
|
|
4406
|
-
this._disabledOk = false;
|
|
4407
|
-
this._showCancel = true;
|
|
4408
|
-
this._autoHide = true;
|
|
4409
|
-
this.onShown = new EventEmitter();
|
|
4410
|
-
this.onHidden = new EventEmitter();
|
|
4411
|
-
this.onOk = new EventEmitter();
|
|
4412
|
-
this.onCancel = new EventEmitter();
|
|
4413
|
-
this.componentType = ComponentType.Primary;
|
|
4414
|
-
this._size = '';
|
|
4415
|
-
this._scrollable = false;
|
|
4416
|
-
this._fullscreen = false;
|
|
4417
|
-
this._showHeader = true;
|
|
4418
|
-
this._showFooter = true;
|
|
4419
|
-
this.onValidating = new EventEmitter(false);
|
|
4420
|
-
}
|
|
4428
|
+
translate = inject(TranslateService);
|
|
4421
4429
|
async destroy() {
|
|
4422
4430
|
await super.destroy();
|
|
4423
4431
|
this._modal?.dispose();
|
|
@@ -4448,30 +4456,55 @@ class ZekModal extends CoreComponent {
|
|
|
4448
4456
|
}
|
|
4449
4457
|
}, 1);
|
|
4450
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;
|
|
4451
4471
|
get showOk() {
|
|
4452
4472
|
return this._showOk;
|
|
4453
4473
|
}
|
|
4454
4474
|
set showOk(v) {
|
|
4455
4475
|
this._showOk = Convert.toBooleanProperty(v);
|
|
4456
4476
|
}
|
|
4477
|
+
_disabledOk = false;
|
|
4457
4478
|
get disabledOk() {
|
|
4458
4479
|
return this._disabledOk;
|
|
4459
4480
|
}
|
|
4460
4481
|
set disabledOk(v) {
|
|
4461
4482
|
this._disabledOk = Convert.toBooleanProperty(v);
|
|
4462
4483
|
}
|
|
4484
|
+
_showCancel = true;
|
|
4463
4485
|
get showCancel() {
|
|
4464
4486
|
return this._showCancel;
|
|
4465
4487
|
}
|
|
4466
4488
|
set showCancel(v) {
|
|
4467
4489
|
this._showCancel = Convert.toBooleanProperty(v);
|
|
4468
4490
|
}
|
|
4491
|
+
_autoHide = true;
|
|
4469
4492
|
get autoHide() {
|
|
4470
4493
|
return this._autoHide;
|
|
4471
4494
|
}
|
|
4472
4495
|
set autoHide(v) {
|
|
4473
4496
|
this._autoHide = Convert.toBooleanProperty(v);
|
|
4474
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 = '';
|
|
4475
4508
|
get size() {
|
|
4476
4509
|
return this._size;
|
|
4477
4510
|
}
|
|
@@ -4496,30 +4529,37 @@ class ZekModal extends CoreComponent {
|
|
|
4496
4529
|
set xl(v) {
|
|
4497
4530
|
this._size = Convert.toBooleanProperty(v) ? 'xl' : '';
|
|
4498
4531
|
}
|
|
4532
|
+
_scrollable = false;
|
|
4499
4533
|
get scrollable() {
|
|
4500
4534
|
return this._scrollable;
|
|
4501
4535
|
}
|
|
4502
4536
|
set scrollable(v) {
|
|
4503
4537
|
this._scrollable = Convert.toBooleanProperty(v);
|
|
4504
4538
|
}
|
|
4539
|
+
_fullscreen = false;
|
|
4505
4540
|
get fullscreen() {
|
|
4506
4541
|
return this._fullscreen;
|
|
4507
4542
|
}
|
|
4508
4543
|
set fullscreen(v) {
|
|
4509
4544
|
this._fullscreen = Convert.toBooleanProperty(v);
|
|
4510
4545
|
}
|
|
4546
|
+
_showHeader = true;
|
|
4511
4547
|
get showHeader() {
|
|
4512
4548
|
return this._showHeader;
|
|
4513
4549
|
}
|
|
4514
4550
|
set showHeader(v) {
|
|
4515
4551
|
this._showHeader = Convert.toBooleanProperty(v);
|
|
4516
4552
|
}
|
|
4553
|
+
_showFooter = true;
|
|
4517
4554
|
get showFooter() {
|
|
4518
4555
|
return this._showFooter;
|
|
4519
4556
|
}
|
|
4520
4557
|
set showFooter(v) {
|
|
4521
4558
|
this._showFooter = Convert.toBooleanProperty(v);
|
|
4522
4559
|
}
|
|
4560
|
+
onValidating = new EventEmitter(false);
|
|
4561
|
+
// @Input() xxl: boolean;
|
|
4562
|
+
_modal;
|
|
4523
4563
|
// public get modal(): any {
|
|
4524
4564
|
// if (!this._modal) {
|
|
4525
4565
|
// this.getModal();
|
|
@@ -4593,12 +4633,12 @@ class ZekModal extends CoreComponent {
|
|
|
4593
4633
|
e.preventDefault();
|
|
4594
4634
|
this.ok();
|
|
4595
4635
|
}
|
|
4596
|
-
static
|
|
4597
|
-
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" }] });
|
|
4598
4638
|
}
|
|
4599
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4639
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekModal, decorators: [{
|
|
4600
4640
|
type: Component,
|
|
4601
|
-
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>" }]
|
|
4602
4642
|
}], propDecorators: { id: [{
|
|
4603
4643
|
type: Input
|
|
4604
4644
|
}], model: [{
|
|
@@ -4657,12 +4697,12 @@ class ZekDeleteModal extends ZekModal {
|
|
|
4657
4697
|
this.translate.get('Alert.DeleteQuestion').subscribe((res) => this.text = res);
|
|
4658
4698
|
this.componentType = ComponentType.Delete;
|
|
4659
4699
|
}
|
|
4660
|
-
static
|
|
4661
|
-
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" }] });
|
|
4662
4702
|
}
|
|
4663
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4703
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekDeleteModal, decorators: [{
|
|
4664
4704
|
type: Component,
|
|
4665
|
-
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>" }]
|
|
4666
4706
|
}], ctorParameters: () => [] });
|
|
4667
4707
|
/**
|
|
4668
4708
|
* @deprecated Please use ZekModal
|
|
@@ -4675,12 +4715,12 @@ class ZekApproveModal extends ZekModal {
|
|
|
4675
4715
|
this.translate.get('Alert.ApproveQuestion').subscribe((res) => this.text = res);
|
|
4676
4716
|
this.componentType = ComponentType.Success;
|
|
4677
4717
|
}
|
|
4678
|
-
static
|
|
4679
|
-
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" }] });
|
|
4680
4720
|
}
|
|
4681
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4721
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekApproveModal, decorators: [{
|
|
4682
4722
|
type: Component,
|
|
4683
|
-
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>" }]
|
|
4684
4724
|
}], ctorParameters: () => [] });
|
|
4685
4725
|
/**
|
|
4686
4726
|
* @deprecated Please use ZekModal
|
|
@@ -4693,12 +4733,12 @@ class ZekSubmitModal extends ZekModal {
|
|
|
4693
4733
|
this.translate.get('Alert.SubmitQuestion').subscribe((res) => this.text = res);
|
|
4694
4734
|
this.componentType = ComponentType.Success;
|
|
4695
4735
|
}
|
|
4696
|
-
static
|
|
4697
|
-
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" }] });
|
|
4698
4738
|
}
|
|
4699
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4739
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekSubmitModal, decorators: [{
|
|
4700
4740
|
type: Component,
|
|
4701
|
-
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>" }]
|
|
4702
4742
|
}], ctorParameters: () => [] });
|
|
4703
4743
|
/**
|
|
4704
4744
|
* @deprecated Please use ZekModal
|
|
@@ -4711,12 +4751,12 @@ class ZekDisapproveModal extends ZekModal {
|
|
|
4711
4751
|
this.translate.get('Alert.DisapproveQuestion').subscribe((res) => this.text = res);
|
|
4712
4752
|
this.componentType = ComponentType.Delete;
|
|
4713
4753
|
}
|
|
4714
|
-
static
|
|
4715
|
-
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" }] });
|
|
4716
4756
|
}
|
|
4717
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4757
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekDisapproveModal, decorators: [{
|
|
4718
4758
|
type: Component,
|
|
4719
|
-
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>" }]
|
|
4720
4760
|
}], ctorParameters: () => [] });
|
|
4721
4761
|
/**
|
|
4722
4762
|
* @deprecated Please use ZekModal
|
|
@@ -4729,33 +4769,32 @@ class ZekRestoreModal extends ZekModal {
|
|
|
4729
4769
|
this.translate.get('Action.RestoreQuestion').subscribe((res) => this.text = res);
|
|
4730
4770
|
this.componentType = ComponentType.Success;
|
|
4731
4771
|
}
|
|
4732
|
-
static
|
|
4733
|
-
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" }] });
|
|
4734
4774
|
}
|
|
4735
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4775
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekRestoreModal, decorators: [{
|
|
4736
4776
|
type: Component,
|
|
4737
|
-
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>" }]
|
|
4738
4778
|
}], ctorParameters: () => [] });
|
|
4739
4779
|
|
|
4740
4780
|
class ZekFilterModal extends ZekModal {
|
|
4741
|
-
|
|
4742
|
-
super(...arguments);
|
|
4743
|
-
this.onReset = new EventEmitter();
|
|
4744
|
-
}
|
|
4781
|
+
onReset = new EventEmitter();
|
|
4745
4782
|
reset() {
|
|
4746
4783
|
this.onReset.emit();
|
|
4747
4784
|
}
|
|
4748
|
-
static
|
|
4749
|
-
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" }] });
|
|
4750
4787
|
}
|
|
4751
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4788
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekFilterModal, decorators: [{
|
|
4752
4789
|
type: Component,
|
|
4753
|
-
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>" }]
|
|
4754
4791
|
}], propDecorators: { onReset: [{
|
|
4755
4792
|
type: Output
|
|
4756
4793
|
}] } });
|
|
4757
4794
|
|
|
4758
4795
|
class ZekSumModal {
|
|
4796
|
+
model;
|
|
4797
|
+
modal;
|
|
4759
4798
|
sum() {
|
|
4760
4799
|
if (this.modal) {
|
|
4761
4800
|
this.modal.show();
|
|
@@ -4764,12 +4803,12 @@ class ZekSumModal {
|
|
|
4764
4803
|
throw new Error('sumModal is null or undefined');
|
|
4765
4804
|
}
|
|
4766
4805
|
}
|
|
4767
|
-
static
|
|
4768
|
-
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" }] });
|
|
4769
4808
|
}
|
|
4770
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4809
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekSumModal, decorators: [{
|
|
4771
4810
|
type: Component,
|
|
4772
|
-
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>" }]
|
|
4773
4812
|
}], propDecorators: { model: [{
|
|
4774
4813
|
type: Input
|
|
4775
4814
|
}], modal: [{
|
|
@@ -4778,8 +4817,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
4778
4817
|
}] } });
|
|
4779
4818
|
|
|
4780
4819
|
class ZekModalModule {
|
|
4781
|
-
static
|
|
4782
|
-
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,
|
|
4783
4822
|
ZekDeleteModal,
|
|
4784
4823
|
ZekApproveModal,
|
|
4785
4824
|
ZekSubmitModal,
|
|
@@ -4795,12 +4834,12 @@ class ZekModalModule {
|
|
|
4795
4834
|
ZekDisapproveModal,
|
|
4796
4835
|
ZekRestoreModal,
|
|
4797
4836
|
ZekFilterModal,
|
|
4798
|
-
ZekSumModal] });
|
|
4799
|
-
static
|
|
4837
|
+
ZekSumModal] });
|
|
4838
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekModalModule, imports: [CommonModule,
|
|
4800
4839
|
RouterModule,
|
|
4801
|
-
TranslateModule] });
|
|
4840
|
+
TranslateModule] });
|
|
4802
4841
|
}
|
|
4803
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4842
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekModalModule, decorators: [{
|
|
4804
4843
|
type: NgModule,
|
|
4805
4844
|
args: [{
|
|
4806
4845
|
imports: [
|
|
@@ -4832,6 +4871,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
4832
4871
|
}] });
|
|
4833
4872
|
|
|
4834
4873
|
class ZekSafePipe {
|
|
4874
|
+
sanitizer;
|
|
4835
4875
|
constructor(sanitizer) {
|
|
4836
4876
|
this.sanitizer = sanitizer;
|
|
4837
4877
|
}
|
|
@@ -4857,10 +4897,10 @@ class ZekSafePipe {
|
|
|
4857
4897
|
return this.sanitizer.bypassSecurityTrustHtml(value);
|
|
4858
4898
|
}
|
|
4859
4899
|
}
|
|
4860
|
-
static
|
|
4861
|
-
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" });
|
|
4862
4902
|
}
|
|
4863
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4903
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekSafePipe, decorators: [{
|
|
4864
4904
|
type: Pipe,
|
|
4865
4905
|
args: [{
|
|
4866
4906
|
standalone: true,
|
|
@@ -4869,6 +4909,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
4869
4909
|
}], ctorParameters: () => [{ type: i1$3.DomSanitizer }] });
|
|
4870
4910
|
|
|
4871
4911
|
class ZekFileViewer extends CoreComponent {
|
|
4912
|
+
viewModal;
|
|
4913
|
+
src;
|
|
4872
4914
|
show(url, extension) {
|
|
4873
4915
|
const ext = extension || FileHelper.getExtension(url);
|
|
4874
4916
|
switch (ext) {
|
|
@@ -4901,10 +4943,10 @@ class ZekFileViewer extends CoreComponent {
|
|
|
4901
4943
|
this.viewModal.show();
|
|
4902
4944
|
}
|
|
4903
4945
|
}
|
|
4904
|
-
static
|
|
4905
|
-
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" }] });
|
|
4906
4948
|
}
|
|
4907
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4949
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekFileViewer, decorators: [{
|
|
4908
4950
|
type: Component,
|
|
4909
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>" }]
|
|
4910
4952
|
}], propDecorators: { viewModal: [{
|
|
@@ -4922,51 +4964,64 @@ function loadScript$1(onLoaded, url, nonce) {
|
|
|
4922
4964
|
const loader$1 = { loadScript: loadScript$1 };
|
|
4923
4965
|
|
|
4924
4966
|
class ZekGoogleLoginButton extends CoreComponent {
|
|
4967
|
+
client_id;
|
|
4925
4968
|
constructor(client_id) {
|
|
4926
4969
|
super();
|
|
4927
4970
|
this.client_id = client_id;
|
|
4928
|
-
this._uniqueId = `zek-google-button-container-${this.uniqueId}`;
|
|
4929
|
-
this.id = this._uniqueId;
|
|
4930
|
-
this._prompt = true;
|
|
4931
|
-
this._autoSelect = false;
|
|
4932
|
-
this._cancelOnTapOutside = true;
|
|
4933
|
-
this.onLoginResponse = new EventEmitter();
|
|
4934
|
-
this.onLogin = new EventEmitter();
|
|
4935
|
-
this.onLoadComplete = (google) => {
|
|
4936
|
-
this.google = google;
|
|
4937
|
-
this.initialize();
|
|
4938
|
-
};
|
|
4939
4971
|
}
|
|
4972
|
+
_uniqueId = `zek-google-button-container-${this.uniqueId}`;
|
|
4973
|
+
id = this._uniqueId;
|
|
4974
|
+
_prompt = true;
|
|
4940
4975
|
get prompt() {
|
|
4941
4976
|
return this._prompt;
|
|
4942
4977
|
}
|
|
4943
4978
|
set prompt(v) {
|
|
4944
4979
|
this._prompt = Convert.toBooleanProperty(v);
|
|
4945
4980
|
}
|
|
4981
|
+
_autoSelect = false;
|
|
4946
4982
|
get autoSelect() {
|
|
4947
4983
|
return this._autoSelect;
|
|
4948
4984
|
}
|
|
4949
4985
|
set autoSelect(v) {
|
|
4950
4986
|
this._autoSelect = Convert.toBooleanProperty(v);
|
|
4951
4987
|
}
|
|
4988
|
+
_cancelOnTapOutside = true;
|
|
4952
4989
|
get cancelOnTapOutside() {
|
|
4953
4990
|
return this._cancelOnTapOutside;
|
|
4954
4991
|
}
|
|
4955
4992
|
set cancelOnTapOutside(v) {
|
|
4956
4993
|
this._cancelOnTapOutside = Convert.toBooleanProperty(v);
|
|
4957
4994
|
}
|
|
4995
|
+
_width;
|
|
4958
4996
|
get width() {
|
|
4959
4997
|
return this._width;
|
|
4960
4998
|
}
|
|
4961
4999
|
set width(v) {
|
|
4962
5000
|
this._width = v;
|
|
4963
5001
|
}
|
|
5002
|
+
_text;
|
|
4964
5003
|
get text() {
|
|
4965
5004
|
return this._text;
|
|
4966
5005
|
}
|
|
4967
5006
|
set text(v) {
|
|
4968
5007
|
this._text = v;
|
|
4969
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;
|
|
4970
5025
|
async init() {
|
|
4971
5026
|
super.init();
|
|
4972
5027
|
// await GoogleLoginButton.loadScript();
|
|
@@ -4978,6 +5033,10 @@ class ZekGoogleLoginButton extends CoreComponent {
|
|
|
4978
5033
|
loader$1.loadScript(this.onLoadComplete);
|
|
4979
5034
|
}
|
|
4980
5035
|
}
|
|
5036
|
+
onLoadComplete = (google) => {
|
|
5037
|
+
this.google = google;
|
|
5038
|
+
this.initialize();
|
|
5039
|
+
};
|
|
4981
5040
|
initialize() {
|
|
4982
5041
|
this.google.accounts.id.initialize({
|
|
4983
5042
|
client_id: this.client_id,
|
|
@@ -5018,12 +5077,13 @@ class ZekGoogleLoginButton extends CoreComponent {
|
|
|
5018
5077
|
// console.log("Image URL: " + payload.picture);
|
|
5019
5078
|
// console.log("Email: " + payload.email);
|
|
5020
5079
|
}
|
|
5021
|
-
static
|
|
5022
|
-
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 });
|
|
5023
5082
|
}
|
|
5024
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5083
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekGoogleLoginButton, decorators: [{
|
|
5025
5084
|
type: Directive,
|
|
5026
5085
|
args: [{
|
|
5086
|
+
standalone: false,
|
|
5027
5087
|
selector: 'zek-google-login',
|
|
5028
5088
|
host: {
|
|
5029
5089
|
'[attr.id]': 'id',
|
|
@@ -5066,11 +5126,11 @@ class ZekGoogleLoginModule {
|
|
|
5066
5126
|
static forChild(config) {
|
|
5067
5127
|
return this.forRoot(config);
|
|
5068
5128
|
}
|
|
5069
|
-
static
|
|
5070
|
-
static
|
|
5071
|
-
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] });
|
|
5072
5132
|
}
|
|
5073
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5133
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekGoogleLoginModule, decorators: [{
|
|
5074
5134
|
type: NgModule,
|
|
5075
5135
|
args: [{
|
|
5076
5136
|
imports: [
|
|
@@ -5086,105 +5146,110 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
5086
5146
|
}] });
|
|
5087
5147
|
|
|
5088
5148
|
class ZekGridToolbar {
|
|
5089
|
-
constructor() {
|
|
5090
|
-
|
|
5091
|
-
|
|
5092
|
-
|
|
5093
|
-
|
|
5094
|
-
|
|
5095
|
-
|
|
5096
|
-
|
|
5097
|
-
this._showApprove = false;
|
|
5098
|
-
this._approveEnabled = false;
|
|
5099
|
-
this.disapproveText = 'Action.Disapprove';
|
|
5100
|
-
this._showDisapprove = false;
|
|
5101
|
-
this._disapproveEnabled = false;
|
|
5102
|
-
this.onEdit = new EventEmitter();
|
|
5103
|
-
this.onDelete = new EventEmitter();
|
|
5104
|
-
this.onApprove = new EventEmitter();
|
|
5105
|
-
this.onDisapprove = new EventEmitter();
|
|
5106
|
-
this.onRestore = new EventEmitter();
|
|
5107
|
-
}
|
|
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;
|
|
5108
5157
|
get showEdit() {
|
|
5109
5158
|
return this._showEdit;
|
|
5110
5159
|
}
|
|
5111
5160
|
set showEdit(v) {
|
|
5112
5161
|
this._showEdit = Convert.toBooleanProperty(v);
|
|
5113
5162
|
}
|
|
5163
|
+
_editEnabled = true;
|
|
5114
5164
|
get editEnabled() {
|
|
5115
5165
|
return this._editEnabled;
|
|
5116
5166
|
}
|
|
5117
5167
|
set editEnabled(v) {
|
|
5118
5168
|
this._editEnabled = Convert.toBooleanProperty(v);
|
|
5119
5169
|
}
|
|
5170
|
+
_showDelete = true;
|
|
5120
5171
|
get showDelete() {
|
|
5121
5172
|
return this._showDelete;
|
|
5122
5173
|
}
|
|
5123
5174
|
set showDelete(v) {
|
|
5124
5175
|
this._showDelete = Convert.toBooleanProperty(v);
|
|
5125
5176
|
}
|
|
5177
|
+
_deleteEnabled = true;
|
|
5126
5178
|
get deleteEnabled() {
|
|
5127
5179
|
return this._deleteEnabled;
|
|
5128
5180
|
}
|
|
5129
5181
|
set deleteEnabled(v) {
|
|
5130
5182
|
this._deleteEnabled = Convert.toBooleanProperty(v);
|
|
5131
5183
|
}
|
|
5184
|
+
_showRestore = false;
|
|
5132
5185
|
get showRestore() {
|
|
5133
5186
|
return this._showRestore;
|
|
5134
5187
|
}
|
|
5135
5188
|
set showRestore(v) {
|
|
5136
5189
|
this._showRestore = Convert.toBooleanProperty(v);
|
|
5137
5190
|
}
|
|
5191
|
+
_restoreEnabled = true;
|
|
5138
5192
|
get restoreEnabled() {
|
|
5139
5193
|
return this._restoreEnabled;
|
|
5140
5194
|
}
|
|
5141
5195
|
set restoreEnabled(v) {
|
|
5142
5196
|
this._restoreEnabled = Convert.toBooleanProperty(v);
|
|
5143
5197
|
}
|
|
5198
|
+
approveText = 'Action.Approve';
|
|
5199
|
+
_showApprove = false;
|
|
5144
5200
|
get showApprove() {
|
|
5145
5201
|
return this._showApprove;
|
|
5146
5202
|
}
|
|
5147
5203
|
set showApprove(v) {
|
|
5148
5204
|
this._showApprove = Convert.toBooleanProperty(v);
|
|
5149
5205
|
}
|
|
5206
|
+
_approveEnabled = false;
|
|
5150
5207
|
get approveEnabled() {
|
|
5151
5208
|
return this._approveEnabled;
|
|
5152
5209
|
}
|
|
5153
5210
|
set approveEnabled(v) {
|
|
5154
5211
|
this._approveEnabled = Convert.toBooleanProperty(v);
|
|
5155
5212
|
}
|
|
5213
|
+
disapproveText = 'Action.Disapprove';
|
|
5214
|
+
_showDisapprove = false;
|
|
5156
5215
|
get showDisapprove() {
|
|
5157
5216
|
return this._showDisapprove;
|
|
5158
5217
|
}
|
|
5159
5218
|
set showDisapprove(v) {
|
|
5160
5219
|
this._showDisapprove = Convert.toBooleanProperty(v);
|
|
5161
5220
|
}
|
|
5221
|
+
_disapproveEnabled = false;
|
|
5162
5222
|
get disapproveEnabled() {
|
|
5163
5223
|
return this._disapproveEnabled;
|
|
5164
5224
|
}
|
|
5165
5225
|
set disapproveEnabled(v) {
|
|
5166
5226
|
this._disapproveEnabled = Convert.toBooleanProperty(v);
|
|
5167
5227
|
}
|
|
5228
|
+
onEdit = new EventEmitter();
|
|
5168
5229
|
edit() {
|
|
5169
5230
|
//this.router.navigate([this.router.url, this.model]);
|
|
5170
5231
|
this.onEdit.emit(this.model);
|
|
5171
5232
|
}
|
|
5233
|
+
onDelete = new EventEmitter();
|
|
5172
5234
|
delete() {
|
|
5173
5235
|
this.onDelete.emit(this.model);
|
|
5174
5236
|
}
|
|
5237
|
+
onApprove = new EventEmitter();
|
|
5175
5238
|
approve() {
|
|
5176
5239
|
this.onApprove.emit(this.model);
|
|
5177
5240
|
}
|
|
5241
|
+
onDisapprove = new EventEmitter();
|
|
5178
5242
|
disapprove() {
|
|
5179
5243
|
this.onDisapprove.emit(this.model);
|
|
5180
5244
|
}
|
|
5245
|
+
onRestore = new EventEmitter();
|
|
5181
5246
|
restore() {
|
|
5182
5247
|
this.onRestore.emit(this.model);
|
|
5183
5248
|
}
|
|
5184
|
-
static
|
|
5185
|
-
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" }] });
|
|
5186
5251
|
}
|
|
5187
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5252
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekGridToolbar, decorators: [{
|
|
5188
5253
|
type: Component,
|
|
5189
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>" }]
|
|
5190
5255
|
}], propDecorators: { model: [{
|
|
@@ -5226,67 +5291,68 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
5226
5291
|
}] } });
|
|
5227
5292
|
|
|
5228
5293
|
class ZekGridToolbarBar extends ZekGridToolbar {
|
|
5229
|
-
static
|
|
5230
|
-
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" }] });
|
|
5231
5296
|
}
|
|
5232
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5297
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekGridToolbarBar, decorators: [{
|
|
5233
5298
|
type: Component,
|
|
5234
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>" }]
|
|
5235
5300
|
}] });
|
|
5236
5301
|
|
|
5237
5302
|
class ZekListToolbar {
|
|
5303
|
+
router;
|
|
5238
5304
|
constructor(router) {
|
|
5239
5305
|
this.router = router;
|
|
5240
|
-
this.printType = PrintType;
|
|
5241
|
-
this._isFiltered = false;
|
|
5242
|
-
this._showCreate = true;
|
|
5243
|
-
this._showFilter = true;
|
|
5244
|
-
this._showPrint = false;
|
|
5245
|
-
this._showSum = false;
|
|
5246
|
-
this._showExport = false;
|
|
5247
|
-
this.onRefresh = new EventEmitter();
|
|
5248
|
-
this.onFilter = new EventEmitter();
|
|
5249
|
-
this.onCreate = new EventEmitter();
|
|
5250
|
-
this.onSum = new EventEmitter();
|
|
5251
|
-
this.onPrint = new EventEmitter();
|
|
5252
|
-
this.onExport = new EventEmitter();
|
|
5253
5306
|
}
|
|
5307
|
+
printType = PrintType;
|
|
5308
|
+
_isFiltered = false;
|
|
5254
5309
|
get isFiltered() {
|
|
5255
5310
|
return this._isFiltered;
|
|
5256
5311
|
}
|
|
5257
5312
|
set isFiltered(v) {
|
|
5258
5313
|
this._isFiltered = Convert.toBooleanProperty(v);
|
|
5259
5314
|
}
|
|
5315
|
+
_showCreate = true;
|
|
5260
5316
|
get showCreate() {
|
|
5261
5317
|
return this._showCreate;
|
|
5262
5318
|
}
|
|
5263
5319
|
set showCreate(v) {
|
|
5264
5320
|
this._showCreate = Convert.toBooleanProperty(v);
|
|
5265
5321
|
}
|
|
5322
|
+
_showFilter = true;
|
|
5266
5323
|
get showFilter() {
|
|
5267
5324
|
return this._showFilter;
|
|
5268
5325
|
}
|
|
5269
5326
|
set showFilter(v) {
|
|
5270
5327
|
this._showFilter = Convert.toBooleanProperty(v);
|
|
5271
5328
|
}
|
|
5329
|
+
_showPrint = false;
|
|
5272
5330
|
get showPrint() {
|
|
5273
5331
|
return this._showPrint;
|
|
5274
5332
|
}
|
|
5275
5333
|
set showPrint(v) {
|
|
5276
5334
|
this._showPrint = Convert.toBooleanProperty(v);
|
|
5277
5335
|
}
|
|
5336
|
+
_showSum = false;
|
|
5278
5337
|
get showSum() {
|
|
5279
5338
|
return this._showSum;
|
|
5280
5339
|
}
|
|
5281
5340
|
set showSum(v) {
|
|
5282
5341
|
this._showSum = Convert.toBooleanProperty(v);
|
|
5283
5342
|
}
|
|
5343
|
+
_showExport = false;
|
|
5284
5344
|
get showExport() {
|
|
5285
5345
|
return this._showExport;
|
|
5286
5346
|
}
|
|
5287
5347
|
set showExport(v) {
|
|
5288
5348
|
this._showExport = Convert.toBooleanProperty(v);
|
|
5289
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();
|
|
5290
5356
|
refresh() {
|
|
5291
5357
|
this.onRefresh.emit();
|
|
5292
5358
|
}
|
|
@@ -5305,10 +5371,10 @@ class ZekListToolbar {
|
|
|
5305
5371
|
exportExcel() {
|
|
5306
5372
|
this.onExport.emit(1);
|
|
5307
5373
|
}
|
|
5308
|
-
static
|
|
5309
|
-
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" }] });
|
|
5310
5376
|
}
|
|
5311
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5377
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekListToolbar, decorators: [{
|
|
5312
5378
|
type: Component,
|
|
5313
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>" }]
|
|
5314
5380
|
}], ctorParameters: () => [{ type: i1.Router }], propDecorators: { isFiltered: [{
|
|
@@ -5338,9 +5404,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
5338
5404
|
}] } });
|
|
5339
5405
|
|
|
5340
5406
|
class ZekLoadingService {
|
|
5341
|
-
|
|
5342
|
-
|
|
5343
|
-
|
|
5407
|
+
_pendingRequests = 0;
|
|
5408
|
+
_loadingSubject$;
|
|
5409
|
+
_onLoadingObservable;
|
|
5344
5410
|
start() {
|
|
5345
5411
|
this._pendingRequests++;
|
|
5346
5412
|
this._loadingSubject$?.next(true);
|
|
@@ -5362,14 +5428,15 @@ class ZekLoadingService {
|
|
|
5362
5428
|
throw new Error("_onExecuteObservable is undefined");
|
|
5363
5429
|
return this._onLoadingObservable;
|
|
5364
5430
|
}
|
|
5365
|
-
static
|
|
5366
|
-
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' });
|
|
5367
5433
|
}
|
|
5368
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5434
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekLoadingService, decorators: [{
|
|
5369
5435
|
type: Injectable,
|
|
5370
5436
|
args: [{ providedIn: 'root' }]
|
|
5371
5437
|
}] });
|
|
5372
5438
|
class ZekLoadingInterceptor {
|
|
5439
|
+
_loading;
|
|
5373
5440
|
constructor(_loading) {
|
|
5374
5441
|
this._loading = _loading;
|
|
5375
5442
|
}
|
|
@@ -5379,10 +5446,10 @@ class ZekLoadingInterceptor {
|
|
|
5379
5446
|
this._loading.end();
|
|
5380
5447
|
}));
|
|
5381
5448
|
}
|
|
5382
|
-
static
|
|
5383
|
-
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 });
|
|
5384
5451
|
}
|
|
5385
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5452
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekLoadingInterceptor, decorators: [{
|
|
5386
5453
|
type: Injectable
|
|
5387
5454
|
}], ctorParameters: () => [{ type: ZekLoadingService }] });
|
|
5388
5455
|
const ZekLoadingInterceptorProvider = [{
|
|
@@ -5392,9 +5459,11 @@ const ZekLoadingInterceptorProvider = [{
|
|
|
5392
5459
|
}];
|
|
5393
5460
|
|
|
5394
5461
|
class ZekLoading {
|
|
5462
|
+
_loading;
|
|
5463
|
+
show = false;
|
|
5464
|
+
subscription;
|
|
5395
5465
|
constructor(_loading) {
|
|
5396
5466
|
this._loading = _loading;
|
|
5397
|
-
this.show = false;
|
|
5398
5467
|
}
|
|
5399
5468
|
ngOnInit() {
|
|
5400
5469
|
this.subscription = this._loading.onLoading.subscribe(x => {
|
|
@@ -5404,16 +5473,16 @@ class ZekLoading {
|
|
|
5404
5473
|
ngOnDestroy() {
|
|
5405
5474
|
this.subscription?.unsubscribe();
|
|
5406
5475
|
}
|
|
5407
|
-
static
|
|
5408
|
-
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: `
|
|
5409
5478
|
<div *ngIf="show" id="loading" class="progress">
|
|
5410
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>
|
|
5411
5480
|
</div>
|
|
5412
|
-
`, 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"] }] });
|
|
5413
5482
|
}
|
|
5414
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5483
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekLoading, decorators: [{
|
|
5415
5484
|
type: Component,
|
|
5416
|
-
args: [{ selector: 'zek-loading', template: `
|
|
5485
|
+
args: [{ standalone: false, selector: 'zek-loading', template: `
|
|
5417
5486
|
<div *ngIf="show" id="loading" class="progress">
|
|
5418
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>
|
|
5419
5488
|
</div>
|
|
@@ -5421,14 +5490,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
5421
5490
|
}], ctorParameters: () => [{ type: ZekLoadingService }] });
|
|
5422
5491
|
|
|
5423
5492
|
class ZekLoadingModule {
|
|
5424
|
-
static
|
|
5425
|
-
static
|
|
5426
|
-
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: [
|
|
5427
5496
|
ZekLoadingInterceptor,
|
|
5428
5497
|
ZekLoadingInterceptorProvider,
|
|
5429
|
-
], imports: [CommonModule] });
|
|
5498
|
+
], imports: [CommonModule] });
|
|
5430
5499
|
}
|
|
5431
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5500
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekLoadingModule, decorators: [{
|
|
5432
5501
|
type: NgModule,
|
|
5433
5502
|
args: [{
|
|
5434
5503
|
imports: [
|
|
@@ -5450,6 +5519,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
5450
5519
|
// export * from './loading-interceptor';
|
|
5451
5520
|
|
|
5452
5521
|
class ZekNumericDirective {
|
|
5522
|
+
el;
|
|
5523
|
+
_digits = 0;
|
|
5453
5524
|
get digits() {
|
|
5454
5525
|
return this._digits;
|
|
5455
5526
|
}
|
|
@@ -5457,6 +5528,7 @@ class ZekNumericDirective {
|
|
|
5457
5528
|
const tmp = MathHelper.clamp(Convert.toNumber(v) ?? 0, 0, 29);
|
|
5458
5529
|
this._digits = tmp;
|
|
5459
5530
|
}
|
|
5531
|
+
_negative = false;
|
|
5460
5532
|
get negative() {
|
|
5461
5533
|
return this._negative;
|
|
5462
5534
|
}
|
|
@@ -5508,8 +5580,6 @@ class ZekNumericDirective {
|
|
|
5508
5580
|
}
|
|
5509
5581
|
constructor(el) {
|
|
5510
5582
|
this.el = el;
|
|
5511
|
-
this._digits = 0;
|
|
5512
|
-
this._negative = false;
|
|
5513
5583
|
}
|
|
5514
5584
|
onKeyDown(event) {
|
|
5515
5585
|
this.run(this.el.nativeElement.value);
|
|
@@ -5517,10 +5587,10 @@ class ZekNumericDirective {
|
|
|
5517
5587
|
onPaste(event) {
|
|
5518
5588
|
this.run(this.el.nativeElement.value);
|
|
5519
5589
|
}
|
|
5520
|
-
static
|
|
5521
|
-
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 });
|
|
5522
5592
|
}
|
|
5523
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5593
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekNumericDirective, decorators: [{
|
|
5524
5594
|
type: Directive,
|
|
5525
5595
|
args: [{
|
|
5526
5596
|
standalone: true,
|
|
@@ -5539,19 +5609,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
5539
5609
|
}] } });
|
|
5540
5610
|
|
|
5541
5611
|
class ZekPageTitle {
|
|
5542
|
-
|
|
5543
|
-
|
|
5544
|
-
|
|
5612
|
+
icon;
|
|
5613
|
+
title;
|
|
5614
|
+
_isEditPage = false;
|
|
5545
5615
|
get isEditPage() {
|
|
5546
5616
|
return this._isEditPage;
|
|
5547
5617
|
}
|
|
5548
5618
|
set isEditPage(v) {
|
|
5549
5619
|
this._isEditPage = Convert.toBooleanProperty(v);
|
|
5550
5620
|
}
|
|
5551
|
-
|
|
5552
|
-
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" }] });
|
|
5553
5624
|
}
|
|
5554
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5625
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekPageTitle, decorators: [{
|
|
5555
5626
|
type: Component,
|
|
5556
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>" }]
|
|
5557
5628
|
}], propDecorators: { icon: [{
|
|
@@ -5565,19 +5636,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
5565
5636
|
}] } });
|
|
5566
5637
|
|
|
5567
5638
|
class ZekPager {
|
|
5568
|
-
|
|
5569
|
-
|
|
5570
|
-
this._showPageSize = true;
|
|
5571
|
-
this.pagerAlign = 'start';
|
|
5572
|
-
this.onPageChange = new EventEmitter();
|
|
5573
|
-
this.onPageSizeChange = new EventEmitter();
|
|
5574
|
-
}
|
|
5639
|
+
pager = new Pager();
|
|
5640
|
+
_showPageSize = true;
|
|
5575
5641
|
get showPageSize() {
|
|
5576
5642
|
return this._showPageSize;
|
|
5577
5643
|
}
|
|
5578
5644
|
set showPageSize(v) {
|
|
5579
5645
|
this._showPageSize = Convert.toBooleanProperty(v);
|
|
5580
5646
|
}
|
|
5647
|
+
pagerAlign = 'start';
|
|
5581
5648
|
setPage(page) {
|
|
5582
5649
|
// if (!this.pager) return;
|
|
5583
5650
|
if (page === this.pager.pageNumber)
|
|
@@ -5590,10 +5657,12 @@ class ZekPager {
|
|
|
5590
5657
|
return;
|
|
5591
5658
|
this.onPageSizeChange.emit(pageSize);
|
|
5592
5659
|
}
|
|
5593
|
-
|
|
5594
|
-
|
|
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" }] });
|
|
5595
5664
|
}
|
|
5596
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5665
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekPager, decorators: [{
|
|
5597
5666
|
type: Component,
|
|
5598
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"] }]
|
|
5599
5668
|
}], propDecorators: { pager: [{
|
|
@@ -5609,10 +5678,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
5609
5678
|
}] } });
|
|
5610
5679
|
|
|
5611
5680
|
class ZekFieldValidator {
|
|
5612
|
-
|
|
5613
|
-
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" }] });
|
|
5614
5684
|
}
|
|
5615
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5685
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekFieldValidator, decorators: [{
|
|
5616
5686
|
type: Component,
|
|
5617
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>" }]
|
|
5618
5688
|
}], propDecorators: { field: [{
|
|
@@ -5620,30 +5690,29 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
5620
5690
|
}] } });
|
|
5621
5691
|
|
|
5622
5692
|
class ZekPassword {
|
|
5623
|
-
|
|
5624
|
-
|
|
5625
|
-
this._required = false;
|
|
5626
|
-
this.minlength = null;
|
|
5627
|
-
this.maxlength = null;
|
|
5628
|
-
this.onChange = new EventEmitter();
|
|
5629
|
-
this._type = 'password';
|
|
5630
|
-
}
|
|
5693
|
+
name = 'Password';
|
|
5694
|
+
_required = false;
|
|
5631
5695
|
get required() {
|
|
5632
5696
|
return this._required;
|
|
5633
5697
|
}
|
|
5634
5698
|
set required(v) {
|
|
5635
5699
|
this._required = Convert.toBooleanProperty(v);
|
|
5636
5700
|
}
|
|
5701
|
+
minlength = null;
|
|
5702
|
+
maxlength = null;
|
|
5703
|
+
model;
|
|
5704
|
+
onChange = new EventEmitter();
|
|
5705
|
+
_type = 'password';
|
|
5637
5706
|
get type() {
|
|
5638
5707
|
return this._type;
|
|
5639
5708
|
}
|
|
5640
5709
|
showHide() {
|
|
5641
5710
|
this._type = this._type === 'password' ? 'text' : 'password';
|
|
5642
5711
|
}
|
|
5643
|
-
static
|
|
5644
|
-
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"] }] });
|
|
5645
5714
|
}
|
|
5646
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5715
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekPassword, decorators: [{
|
|
5647
5716
|
type: Component,
|
|
5648
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>" }]
|
|
5649
5718
|
}], propDecorators: { name: [{
|
|
@@ -5662,16 +5731,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
5662
5731
|
}] } });
|
|
5663
5732
|
|
|
5664
5733
|
class ZekProgress {
|
|
5665
|
-
constructor() {
|
|
5666
|
-
this._value = 0;
|
|
5667
|
-
this._showValue = false;
|
|
5668
|
-
this._showTitle = true;
|
|
5669
|
-
this._striped = false;
|
|
5670
|
-
this._animated = false;
|
|
5671
|
-
this._label = null;
|
|
5672
|
-
this._height = null;
|
|
5673
|
-
this._background = 'primary';
|
|
5674
|
-
}
|
|
5675
5734
|
get value() {
|
|
5676
5735
|
return this._value;
|
|
5677
5736
|
}
|
|
@@ -5681,18 +5740,21 @@ class ZekProgress {
|
|
|
5681
5740
|
this._value = tmp;
|
|
5682
5741
|
}
|
|
5683
5742
|
}
|
|
5743
|
+
_value = 0;
|
|
5684
5744
|
get showValue() {
|
|
5685
5745
|
return this._showValue;
|
|
5686
5746
|
}
|
|
5687
5747
|
set showValue(v) {
|
|
5688
5748
|
this._showValue = Convert.toBooleanProperty(v);
|
|
5689
5749
|
}
|
|
5750
|
+
_showValue = false;
|
|
5690
5751
|
get showTitle() {
|
|
5691
5752
|
return this._showTitle;
|
|
5692
5753
|
}
|
|
5693
5754
|
set showTitle(v) {
|
|
5694
5755
|
this._showTitle = Convert.toBooleanProperty(v);
|
|
5695
5756
|
}
|
|
5757
|
+
_showTitle = true;
|
|
5696
5758
|
get _title() {
|
|
5697
5759
|
return this._showTitle ? `${this._value} %` : null;
|
|
5698
5760
|
}
|
|
@@ -5702,18 +5764,21 @@ class ZekProgress {
|
|
|
5702
5764
|
set striped(v) {
|
|
5703
5765
|
this._striped = Convert.toBooleanProperty(v);
|
|
5704
5766
|
}
|
|
5767
|
+
_striped = false;
|
|
5705
5768
|
get animated() {
|
|
5706
5769
|
return this._animated;
|
|
5707
5770
|
}
|
|
5708
5771
|
set animated(v) {
|
|
5709
5772
|
this._animated = Convert.toBooleanProperty(v);
|
|
5710
5773
|
}
|
|
5774
|
+
_animated = false;
|
|
5711
5775
|
get label() {
|
|
5712
5776
|
return this._label;
|
|
5713
5777
|
}
|
|
5714
5778
|
set label(v) {
|
|
5715
5779
|
this._label = v ? v : null;
|
|
5716
5780
|
}
|
|
5781
|
+
_label = null;
|
|
5717
5782
|
get height() {
|
|
5718
5783
|
return this._height;
|
|
5719
5784
|
}
|
|
@@ -5721,16 +5786,18 @@ class ZekProgress {
|
|
|
5721
5786
|
const tmp = Convert.toNumber(v) || 0;
|
|
5722
5787
|
this._height = tmp > 0 ? tmp : null;
|
|
5723
5788
|
}
|
|
5789
|
+
_height = null;
|
|
5724
5790
|
get background() {
|
|
5725
5791
|
return this._background;
|
|
5726
5792
|
}
|
|
5727
5793
|
set background(v) {
|
|
5728
5794
|
this._background = v;
|
|
5729
5795
|
}
|
|
5730
|
-
|
|
5731
|
-
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"] }] });
|
|
5732
5799
|
}
|
|
5733
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5800
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekProgress, decorators: [{
|
|
5734
5801
|
type: Component,
|
|
5735
5802
|
args: [{ standalone: true, selector: 'zek-progress', imports: [
|
|
5736
5803
|
CommonModule
|
|
@@ -5764,15 +5831,23 @@ const ZEK_RADIO_CONTROL_VALUE_ACCESSOR = {
|
|
|
5764
5831
|
multi: true,
|
|
5765
5832
|
};
|
|
5766
5833
|
class ZekRadio extends CoreUiComponent {
|
|
5834
|
+
_changeDetector;
|
|
5767
5835
|
constructor(_changeDetector, _renderer, _elementRef) {
|
|
5768
5836
|
super(_renderer, _elementRef);
|
|
5769
5837
|
this._changeDetector = _changeDetector;
|
|
5770
|
-
this._uniqueId = `zek-radio-${this.uniqueId}`;
|
|
5771
|
-
/** The unique ID for the radio button. */
|
|
5772
|
-
this.id = this._uniqueId;
|
|
5773
|
-
this._inline = false;
|
|
5774
|
-
this._checked = false;
|
|
5775
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;
|
|
5776
5851
|
get inline() {
|
|
5777
5852
|
return this._inline;
|
|
5778
5853
|
}
|
|
@@ -5787,6 +5862,9 @@ class ZekRadio extends CoreUiComponent {
|
|
|
5787
5862
|
get inputId() {
|
|
5788
5863
|
return `${this.id || this._uniqueId}-input`;
|
|
5789
5864
|
}
|
|
5865
|
+
/** The value from ngModel. */
|
|
5866
|
+
modelValue;
|
|
5867
|
+
_checked = false;
|
|
5790
5868
|
get checked() {
|
|
5791
5869
|
return this._checked;
|
|
5792
5870
|
}
|
|
@@ -5845,10 +5923,10 @@ class ZekRadio extends CoreUiComponent {
|
|
|
5845
5923
|
}
|
|
5846
5924
|
}
|
|
5847
5925
|
}
|
|
5848
|
-
static
|
|
5849
|
-
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 });
|
|
5850
5928
|
}
|
|
5851
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5929
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekRadio, decorators: [{
|
|
5852
5930
|
type: Component,
|
|
5853
5931
|
args: [{ standalone: true, selector: 'zek-radio', host: {
|
|
5854
5932
|
'[attr.id]': 'id',
|
|
@@ -5882,19 +5960,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
5882
5960
|
}] } });
|
|
5883
5961
|
|
|
5884
5962
|
class ZekReadOnlyDirective {
|
|
5885
|
-
|
|
5886
|
-
this._readOnly = false;
|
|
5887
|
-
}
|
|
5963
|
+
_readOnly = false;
|
|
5888
5964
|
get readonly() {
|
|
5889
5965
|
return this._readOnly;
|
|
5890
5966
|
}
|
|
5891
5967
|
set readonly(v) {
|
|
5892
5968
|
this._readOnly = Convert.toBooleanProperty(v);
|
|
5893
5969
|
}
|
|
5894
|
-
static
|
|
5895
|
-
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 });
|
|
5896
5972
|
}
|
|
5897
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5973
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekReadOnlyDirective, decorators: [{
|
|
5898
5974
|
type: Directive,
|
|
5899
5975
|
args: [{
|
|
5900
5976
|
standalone: true,
|
|
@@ -5920,16 +5996,16 @@ urlParams, url, nonce) {
|
|
|
5920
5996
|
const loader = { loadScript };
|
|
5921
5997
|
|
|
5922
5998
|
class ReCaptchaService {
|
|
5999
|
+
isBrowser = true;
|
|
6000
|
+
siteKey;
|
|
6001
|
+
zone;
|
|
6002
|
+
actionBacklog;
|
|
6003
|
+
grecaptcha;
|
|
6004
|
+
onExecuteSubject;
|
|
6005
|
+
onExecuteErrorSubject;
|
|
6006
|
+
onExecuteObservable;
|
|
6007
|
+
onExecuteErrorObservable;
|
|
5923
6008
|
constructor(zone, siteKey) {
|
|
5924
|
-
this.isBrowser = true;
|
|
5925
|
-
/** @internal */
|
|
5926
|
-
this.onLoadComplete = (grecaptcha) => {
|
|
5927
|
-
this.grecaptcha = grecaptcha;
|
|
5928
|
-
if (this.actionBacklog && this.actionBacklog.length > 0) {
|
|
5929
|
-
this.actionBacklog.forEach(([action, subject]) => this.executeActionWithSubject(action, subject));
|
|
5930
|
-
this.actionBacklog = undefined;
|
|
5931
|
-
}
|
|
5932
|
-
};
|
|
5933
6009
|
this.zone = zone;
|
|
5934
6010
|
this.siteKey = siteKey;
|
|
5935
6011
|
this.init();
|
|
@@ -6021,10 +6097,18 @@ class ReCaptchaService {
|
|
|
6021
6097
|
}
|
|
6022
6098
|
}
|
|
6023
6099
|
}
|
|
6024
|
-
|
|
6025
|
-
|
|
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 });
|
|
6026
6110
|
}
|
|
6027
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
6111
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ReCaptchaService, decorators: [{
|
|
6028
6112
|
type: Injectable
|
|
6029
6113
|
}], ctorParameters: () => [{ type: i0.NgZone }, { type: undefined, decorators: [{
|
|
6030
6114
|
type: Optional
|
|
@@ -6050,11 +6134,11 @@ class RecaptchaModule {
|
|
|
6050
6134
|
static forChild(config) {
|
|
6051
6135
|
return this.forRoot(config);
|
|
6052
6136
|
}
|
|
6053
|
-
static
|
|
6054
|
-
static
|
|
6055
|
-
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] });
|
|
6056
6140
|
}
|
|
6057
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
6141
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: RecaptchaModule, decorators: [{
|
|
6058
6142
|
type: NgModule,
|
|
6059
6143
|
args: [{
|
|
6060
6144
|
providers: [ReCaptchaService]
|
|
@@ -6069,18 +6153,14 @@ const ZEK_SELECT_MULTIPLE_CONTROL_VALUE_ACCESSOR = {
|
|
|
6069
6153
|
class ZekSelectMultiple extends CoreUiComponent {
|
|
6070
6154
|
constructor(renderer, elementRef) {
|
|
6071
6155
|
super(renderer, elementRef);
|
|
6072
|
-
this._uniqueId = `zek-select-${this.uniqueId}`;
|
|
6073
|
-
/** The unique ID for the radio button. */
|
|
6074
|
-
this.id = this._uniqueId;
|
|
6075
|
-
this.css = 'primary';
|
|
6076
|
-
this._placeholder = '';
|
|
6077
|
-
this._label = '';
|
|
6078
|
-
this._multiple = true;
|
|
6079
|
-
this._selected = [];
|
|
6080
|
-
this._data = [];
|
|
6081
|
-
this.normalized = [];
|
|
6082
|
-
this._text = '';
|
|
6083
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';
|
|
6084
6164
|
get placeholder() {
|
|
6085
6165
|
return this._placeholder;
|
|
6086
6166
|
}
|
|
@@ -6090,6 +6170,7 @@ class ZekSelectMultiple extends CoreUiComponent {
|
|
|
6090
6170
|
else
|
|
6091
6171
|
this._placeholder = '';
|
|
6092
6172
|
}
|
|
6173
|
+
_placeholder = '';
|
|
6093
6174
|
get label() {
|
|
6094
6175
|
return this._label;
|
|
6095
6176
|
}
|
|
@@ -6099,12 +6180,15 @@ class ZekSelectMultiple extends CoreUiComponent {
|
|
|
6099
6180
|
else
|
|
6100
6181
|
this._label = '';
|
|
6101
6182
|
}
|
|
6183
|
+
_label = '';
|
|
6102
6184
|
get multiple() {
|
|
6103
6185
|
return this._multiple;
|
|
6104
6186
|
}
|
|
6105
6187
|
set multiple(value) {
|
|
6106
6188
|
this._multiple = Convert.toBooleanProperty(value);
|
|
6107
6189
|
}
|
|
6190
|
+
_multiple = true;
|
|
6191
|
+
_selected = [];
|
|
6108
6192
|
get data() {
|
|
6109
6193
|
return this._data;
|
|
6110
6194
|
}
|
|
@@ -6114,12 +6198,15 @@ class ZekSelectMultiple extends CoreUiComponent {
|
|
|
6114
6198
|
this.onDataChanged();
|
|
6115
6199
|
}
|
|
6116
6200
|
}
|
|
6201
|
+
_data = [];
|
|
6202
|
+
normalized = [];
|
|
6117
6203
|
onDataChanged() {
|
|
6118
6204
|
this._setSelectionByValue(this._value);
|
|
6119
6205
|
if (this.isInitialized) {
|
|
6120
6206
|
this._normalizeData();
|
|
6121
6207
|
}
|
|
6122
6208
|
}
|
|
6209
|
+
_text = '';
|
|
6123
6210
|
onValueChanged() {
|
|
6124
6211
|
if (Array.isArray(this._data)) {
|
|
6125
6212
|
this._setSelectionByValue(this._value);
|
|
@@ -6226,10 +6313,10 @@ class ZekSelectMultiple extends CoreUiComponent {
|
|
|
6226
6313
|
this._text = this._selected.join(', ');
|
|
6227
6314
|
}
|
|
6228
6315
|
}
|
|
6229
|
-
static
|
|
6230
|
-
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 }] });
|
|
6231
6318
|
}
|
|
6232
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
6319
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekSelectMultiple, decorators: [{
|
|
6233
6320
|
type: Component,
|
|
6234
6321
|
args: [{ standalone: true, selector: 'zek-select,[zek-select]', providers: [ZEK_SELECT_MULTIPLE_CONTROL_VALUE_ACCESSOR], imports: [
|
|
6235
6322
|
CommonModule,
|
|
@@ -6256,14 +6343,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
6256
6343
|
}] } });
|
|
6257
6344
|
|
|
6258
6345
|
class ZekSelect2 {
|
|
6259
|
-
|
|
6260
|
-
|
|
6261
|
-
|
|
6262
|
-
|
|
6263
|
-
this.placeholder = '';
|
|
6264
|
-
this.selectedItemChange = new EventEmitter();
|
|
6265
|
-
this.valueChange = new EventEmitter();
|
|
6266
|
-
}
|
|
6346
|
+
filter;
|
|
6347
|
+
text;
|
|
6348
|
+
elementId = RandomHelper.randomHex();
|
|
6349
|
+
_data = [];
|
|
6267
6350
|
get data() {
|
|
6268
6351
|
return this._data;
|
|
6269
6352
|
}
|
|
@@ -6274,9 +6357,17 @@ class ZekSelect2 {
|
|
|
6274
6357
|
this.filterData();
|
|
6275
6358
|
}
|
|
6276
6359
|
}
|
|
6360
|
+
filteredData = [];
|
|
6361
|
+
textField;
|
|
6362
|
+
valueField;
|
|
6363
|
+
placeholder = '';
|
|
6364
|
+
selectedItemChange = new EventEmitter();
|
|
6365
|
+
_selectedItem;
|
|
6277
6366
|
get selectedItem() {
|
|
6278
6367
|
return this._selectedItem;
|
|
6279
6368
|
}
|
|
6369
|
+
valueChange = new EventEmitter();
|
|
6370
|
+
_value;
|
|
6280
6371
|
get value() {
|
|
6281
6372
|
return this._value;
|
|
6282
6373
|
}
|
|
@@ -6398,10 +6489,10 @@ class ZekSelect2 {
|
|
|
6398
6489
|
}
|
|
6399
6490
|
}
|
|
6400
6491
|
}
|
|
6401
|
-
static
|
|
6402
|
-
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"] }] });
|
|
6403
6494
|
}
|
|
6404
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
6495
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekSelect2, decorators: [{
|
|
6405
6496
|
type: Component,
|
|
6406
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"] }]
|
|
6407
6498
|
}], propDecorators: { data: [{
|
|
@@ -6422,15 +6513,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
6422
6513
|
|
|
6423
6514
|
//declare let bootstrap: any;
|
|
6424
6515
|
class ZekSelect2Multiple {
|
|
6425
|
-
|
|
6426
|
-
|
|
6427
|
-
|
|
6428
|
-
|
|
6429
|
-
this.placeholder = '';
|
|
6430
|
-
this.selectedItemChange = new EventEmitter();
|
|
6431
|
-
this._selectedItems = [];
|
|
6432
|
-
this.valueChange = new EventEmitter();
|
|
6433
|
-
}
|
|
6516
|
+
filter;
|
|
6517
|
+
text;
|
|
6518
|
+
elementId = RandomHelper.randomHex();
|
|
6519
|
+
_data = [];
|
|
6434
6520
|
get data() {
|
|
6435
6521
|
return this._data;
|
|
6436
6522
|
}
|
|
@@ -6441,9 +6527,18 @@ class ZekSelect2Multiple {
|
|
|
6441
6527
|
this.filterData();
|
|
6442
6528
|
}
|
|
6443
6529
|
}
|
|
6530
|
+
filteredData = [];
|
|
6531
|
+
textField;
|
|
6532
|
+
selectedField;
|
|
6533
|
+
valueField;
|
|
6534
|
+
placeholder = '';
|
|
6535
|
+
selectedItemChange = new EventEmitter();
|
|
6536
|
+
_selectedItems = [];
|
|
6444
6537
|
get selectedItems() {
|
|
6445
6538
|
return this._selectedItems;
|
|
6446
6539
|
}
|
|
6540
|
+
valueChange = new EventEmitter();
|
|
6541
|
+
_value;
|
|
6447
6542
|
get value() {
|
|
6448
6543
|
return this._value;
|
|
6449
6544
|
}
|
|
@@ -6526,10 +6621,10 @@ class ZekSelect2Multiple {
|
|
|
6526
6621
|
this._value = v;
|
|
6527
6622
|
this.valueChange.emit(v);
|
|
6528
6623
|
}
|
|
6529
|
-
static
|
|
6530
|
-
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"] }] });
|
|
6531
6626
|
}
|
|
6532
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
6627
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekSelect2Multiple, decorators: [{
|
|
6533
6628
|
type: Component,
|
|
6534
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>" }]
|
|
6535
6630
|
}], propDecorators: { data: [{
|
|
@@ -6551,27 +6646,26 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
6551
6646
|
}] } });
|
|
6552
6647
|
|
|
6553
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();
|
|
6554
6667
|
constructor(el /*, renderer: Renderer, private templateRef: TemplateRef<any>, private viewContainer: ViewContainerRef */) {
|
|
6555
6668
|
this.el = el;
|
|
6556
|
-
this.innerHtml = '';
|
|
6557
|
-
/**
|
|
6558
|
-
* name of sorting column
|
|
6559
|
-
*/
|
|
6560
|
-
this.header = null;
|
|
6561
|
-
/**
|
|
6562
|
-
* Executes after 'sort' input changed
|
|
6563
|
-
*/
|
|
6564
|
-
this.sortChange = new EventEmitter();
|
|
6565
|
-
/**
|
|
6566
|
-
* Executes after 'asc' input changed
|
|
6567
|
-
*/
|
|
6568
|
-
this.ascChange = new EventEmitter();
|
|
6569
|
-
/**
|
|
6570
|
-
* Executes after click on column
|
|
6571
|
-
*/
|
|
6572
|
-
this.onChange = new EventEmitter();
|
|
6573
|
-
this._sort = null;
|
|
6574
|
-
this._asc = false;
|
|
6575
6669
|
}
|
|
6576
6670
|
// @Input() set myIf(shouldAdd: boolean) {
|
|
6577
6671
|
// if (shouldAdd) {
|
|
@@ -6624,6 +6718,7 @@ class ZekSort {
|
|
|
6624
6718
|
}
|
|
6625
6719
|
this.onChange.emit();
|
|
6626
6720
|
}
|
|
6721
|
+
_sort = null;
|
|
6627
6722
|
get sort() {
|
|
6628
6723
|
return this._sort;
|
|
6629
6724
|
}
|
|
@@ -6633,6 +6728,7 @@ class ZekSort {
|
|
|
6633
6728
|
this.initIcon();
|
|
6634
6729
|
}
|
|
6635
6730
|
}
|
|
6731
|
+
_asc = false;
|
|
6636
6732
|
get asc() {
|
|
6637
6733
|
return this._asc;
|
|
6638
6734
|
}
|
|
@@ -6642,10 +6738,10 @@ class ZekSort {
|
|
|
6642
6738
|
this.initIcon();
|
|
6643
6739
|
}
|
|
6644
6740
|
}
|
|
6645
|
-
static
|
|
6646
|
-
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 });
|
|
6647
6743
|
}
|
|
6648
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
6744
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekSort, decorators: [{
|
|
6649
6745
|
type: Directive,
|
|
6650
6746
|
args: [{
|
|
6651
6747
|
standalone: true,
|
|
@@ -6669,6 +6765,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
6669
6765
|
}] } });
|
|
6670
6766
|
|
|
6671
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;
|
|
6672
6783
|
get sort() {
|
|
6673
6784
|
return this._sort;
|
|
6674
6785
|
}
|
|
@@ -6677,6 +6788,7 @@ class ZekSortButtonGroup {
|
|
|
6677
6788
|
this._sort = value;
|
|
6678
6789
|
}
|
|
6679
6790
|
}
|
|
6791
|
+
_asc = false;
|
|
6680
6792
|
get asc() {
|
|
6681
6793
|
return this._asc;
|
|
6682
6794
|
}
|
|
@@ -6685,26 +6797,11 @@ class ZekSortButtonGroup {
|
|
|
6685
6797
|
this._asc = value;
|
|
6686
6798
|
}
|
|
6687
6799
|
}
|
|
6800
|
+
sortFields = null;
|
|
6688
6801
|
/**
|
|
6689
6802
|
* Default constructor
|
|
6690
6803
|
*/
|
|
6691
6804
|
constructor() {
|
|
6692
|
-
this.elementName = '';
|
|
6693
|
-
/**
|
|
6694
|
-
* Executes after 'sort' input changed
|
|
6695
|
-
*/
|
|
6696
|
-
this.sortChange = new EventEmitter();
|
|
6697
|
-
/**
|
|
6698
|
-
* Executes after 'asc' input changed
|
|
6699
|
-
*/
|
|
6700
|
-
this.ascChange = new EventEmitter();
|
|
6701
|
-
/**
|
|
6702
|
-
* Executes after click on column
|
|
6703
|
-
*/
|
|
6704
|
-
this.onChange = new EventEmitter();
|
|
6705
|
-
this._sort = null;
|
|
6706
|
-
this._asc = false;
|
|
6707
|
-
this.sortFields = null;
|
|
6708
6805
|
this.elementName = 'sort-button-group-' + RandomHelper.randomHex();
|
|
6709
6806
|
}
|
|
6710
6807
|
sortFieldClick(item) {
|
|
@@ -6722,10 +6819,10 @@ class ZekSortButtonGroup {
|
|
|
6722
6819
|
this.ascChange.emit(this.asc);
|
|
6723
6820
|
this.onChange.emit();
|
|
6724
6821
|
}
|
|
6725
|
-
static
|
|
6726
|
-
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" }] });
|
|
6727
6824
|
}
|
|
6728
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
6825
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekSortButtonGroup, decorators: [{
|
|
6729
6826
|
type: Component,
|
|
6730
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>" }]
|
|
6731
6828
|
}], ctorParameters: () => [], propDecorators: { sortChange: [{
|
|
@@ -6743,17 +6840,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
6743
6840
|
}] } });
|
|
6744
6841
|
|
|
6745
6842
|
class ZekTag extends CoreUiComponent {
|
|
6746
|
-
|
|
6747
|
-
|
|
6748
|
-
this.modelChange = new EventEmitter();
|
|
6749
|
-
this._max = 1000000000;
|
|
6750
|
-
this._maxlength = null;
|
|
6751
|
-
this._duplicate = false;
|
|
6752
|
-
this.text = null;
|
|
6753
|
-
this._uniqueId = `zek-tag-${this.uniqueId}`;
|
|
6754
|
-
/** The unique ID for the tag. */
|
|
6755
|
-
this.id = this._uniqueId;
|
|
6756
|
-
}
|
|
6843
|
+
model;
|
|
6844
|
+
modelChange = new EventEmitter();
|
|
6757
6845
|
get max() {
|
|
6758
6846
|
return this._max;
|
|
6759
6847
|
}
|
|
@@ -6763,6 +6851,8 @@ class ZekTag extends CoreUiComponent {
|
|
|
6763
6851
|
this._max = tmp;
|
|
6764
6852
|
}
|
|
6765
6853
|
}
|
|
6854
|
+
_max = 1000000000;
|
|
6855
|
+
_maxlength = null;
|
|
6766
6856
|
get maxlength() {
|
|
6767
6857
|
return this._maxlength;
|
|
6768
6858
|
}
|
|
@@ -6776,12 +6866,14 @@ class ZekTag extends CoreUiComponent {
|
|
|
6776
6866
|
}
|
|
6777
6867
|
this._maxlength = tmp;
|
|
6778
6868
|
}
|
|
6869
|
+
_duplicate = false;
|
|
6779
6870
|
get duplicate() {
|
|
6780
6871
|
return this._duplicate;
|
|
6781
6872
|
}
|
|
6782
6873
|
set duplicate(v) {
|
|
6783
6874
|
this._duplicate = Convert.toBooleanProperty(v);
|
|
6784
6875
|
}
|
|
6876
|
+
text = null;
|
|
6785
6877
|
onKeyEnter(e) {
|
|
6786
6878
|
e.preventDefault();
|
|
6787
6879
|
e.stopPropagation();
|
|
@@ -6789,6 +6881,9 @@ class ZekTag extends CoreUiComponent {
|
|
|
6789
6881
|
this.text = null;
|
|
6790
6882
|
}
|
|
6791
6883
|
}
|
|
6884
|
+
_uniqueId = `zek-tag-${this.uniqueId}`;
|
|
6885
|
+
/** The unique ID for the tag. */
|
|
6886
|
+
id = this._uniqueId;
|
|
6792
6887
|
get inputId() {
|
|
6793
6888
|
return `${this.id || this._uniqueId}-input`;
|
|
6794
6889
|
}
|
|
@@ -6823,10 +6918,10 @@ class ZekTag extends CoreUiComponent {
|
|
|
6823
6918
|
this.model.splice(index, 1);
|
|
6824
6919
|
}
|
|
6825
6920
|
}
|
|
6826
|
-
static
|
|
6827
|
-
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"] }] });
|
|
6828
6923
|
}
|
|
6829
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
6924
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekTag, decorators: [{
|
|
6830
6925
|
type: Component,
|
|
6831
6926
|
args: [{ standalone: true, imports: [CommonModule, FormsModule], selector: 'zek-tag', host: {
|
|
6832
6927
|
'[attr.id]': 'id',
|
|
@@ -6847,6 +6942,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
6847
6942
|
|
|
6848
6943
|
//import { toDate } from '../../extensions';
|
|
6849
6944
|
class TimePipe {
|
|
6945
|
+
_datePipe;
|
|
6850
6946
|
constructor(_datePipe) {
|
|
6851
6947
|
this._datePipe = _datePipe;
|
|
6852
6948
|
}
|
|
@@ -6872,24 +6968,25 @@ class TimePipe {
|
|
|
6872
6968
|
isValidDate(d) {
|
|
6873
6969
|
return d instanceof Date && !isNaN(d.getTime());
|
|
6874
6970
|
}
|
|
6875
|
-
static
|
|
6876
|
-
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" });
|
|
6877
6973
|
}
|
|
6878
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
6974
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: TimePipe, decorators: [{
|
|
6879
6975
|
type: Pipe,
|
|
6880
6976
|
args: [{
|
|
6977
|
+
standalone: false,
|
|
6881
6978
|
name: 'time'
|
|
6882
6979
|
}]
|
|
6883
6980
|
}], ctorParameters: () => [{ type: i1$2.DatePipe }] });
|
|
6884
6981
|
|
|
6885
6982
|
class TimeModule {
|
|
6886
|
-
static
|
|
6887
|
-
static
|
|
6888
|
-
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: [
|
|
6889
6986
|
DatePipe
|
|
6890
|
-
], imports: [CommonModule] });
|
|
6987
|
+
], imports: [CommonModule] });
|
|
6891
6988
|
}
|
|
6892
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
6989
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: TimeModule, decorators: [{
|
|
6893
6990
|
type: NgModule,
|
|
6894
6991
|
args: [{
|
|
6895
6992
|
imports: [
|
|
@@ -6906,23 +7003,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
6906
7003
|
}] });
|
|
6907
7004
|
|
|
6908
7005
|
class TimerService {
|
|
6909
|
-
|
|
6910
|
-
|
|
6911
|
-
|
|
6912
|
-
this._count = 0;
|
|
6913
|
-
this._left = 0;
|
|
6914
|
-
this.expireDate = null;
|
|
6915
|
-
this.subscription = null;
|
|
6916
|
-
//@Output() checkTime: EventEmitter<number> = new EventEmitter();
|
|
6917
|
-
this.tick = new Subject();
|
|
6918
|
-
this.completed = new Subject();
|
|
6919
|
-
}
|
|
7006
|
+
seconds = 0;
|
|
7007
|
+
// running = false;
|
|
7008
|
+
_count = 0;
|
|
6920
7009
|
get count() {
|
|
6921
7010
|
return this._count;
|
|
6922
7011
|
}
|
|
7012
|
+
_left = 0;
|
|
6923
7013
|
get left() {
|
|
6924
7014
|
return this._left;
|
|
6925
7015
|
}
|
|
7016
|
+
expireDate = null;
|
|
7017
|
+
subscription = null;
|
|
7018
|
+
//@Output() checkTime: EventEmitter<number> = new EventEmitter();
|
|
7019
|
+
tick = new Subject();
|
|
7020
|
+
completed = new Subject();
|
|
6926
7021
|
// tickerInterval: any;
|
|
6927
7022
|
// expired: Observable<number> = new Observable<number>();
|
|
6928
7023
|
// initialCountValue: number = 0;
|
|
@@ -6980,16 +7075,18 @@ class TimerService {
|
|
|
6980
7075
|
let seconds = delta % 60; // in theory the modulus is not required
|
|
6981
7076
|
*/
|
|
6982
7077
|
}
|
|
6983
|
-
static
|
|
6984
|
-
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 });
|
|
6985
7080
|
}
|
|
6986
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
7081
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: TimerService, decorators: [{
|
|
6987
7082
|
type: Injectable
|
|
6988
7083
|
}], propDecorators: { seconds: [{
|
|
6989
7084
|
type: Input
|
|
6990
7085
|
}] } });
|
|
6991
7086
|
|
|
6992
7087
|
class ZekTooltip extends CoreComponent {
|
|
7088
|
+
el;
|
|
7089
|
+
_tooltip;
|
|
6993
7090
|
constructor(el) {
|
|
6994
7091
|
super();
|
|
6995
7092
|
this.el = el;
|
|
@@ -7002,10 +7099,10 @@ class ZekTooltip extends CoreComponent {
|
|
|
7002
7099
|
ngAfterViewInit() {
|
|
7003
7100
|
this._tooltip = new bootstrap.Tooltip(this.el.nativeElement);
|
|
7004
7101
|
}
|
|
7005
|
-
static
|
|
7006
|
-
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 });
|
|
7007
7104
|
}
|
|
7008
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
7105
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekTooltip, decorators: [{
|
|
7009
7106
|
type: Directive,
|
|
7010
7107
|
args: [{
|
|
7011
7108
|
standalone: true,
|
|
@@ -7014,6 +7111,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
7014
7111
|
}], ctorParameters: () => [{ type: i0.ElementRef }] });
|
|
7015
7112
|
|
|
7016
7113
|
class ZekLocalToUtcPipe {
|
|
7114
|
+
_datePipe;
|
|
7017
7115
|
constructor(_datePipe) {
|
|
7018
7116
|
this._datePipe = _datePipe;
|
|
7019
7117
|
}
|
|
@@ -7023,22 +7121,23 @@ class ZekLocalToUtcPipe {
|
|
|
7023
7121
|
const date = DateHelper.localToUtc(DateHelper.toDate(value));
|
|
7024
7122
|
return this._datePipe.transform(date, format);
|
|
7025
7123
|
}
|
|
7026
|
-
static
|
|
7027
|
-
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" });
|
|
7028
7126
|
}
|
|
7029
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
7127
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekLocalToUtcPipe, decorators: [{
|
|
7030
7128
|
type: Pipe,
|
|
7031
7129
|
args: [{
|
|
7130
|
+
standalone: false,
|
|
7032
7131
|
name: 'localToUtc',
|
|
7033
7132
|
pure: true
|
|
7034
7133
|
}]
|
|
7035
7134
|
}], ctorParameters: () => [{ type: i1$2.DatePipe }] });
|
|
7036
7135
|
class ZekLocalToUtcModule {
|
|
7037
|
-
static
|
|
7038
|
-
static
|
|
7039
|
-
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] });
|
|
7040
7139
|
}
|
|
7041
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
7140
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekLocalToUtcModule, decorators: [{
|
|
7042
7141
|
type: NgModule,
|
|
7043
7142
|
args: [{
|
|
7044
7143
|
declarations: [ZekLocalToUtcPipe],
|
|
@@ -7048,6 +7147,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
7048
7147
|
}] });
|
|
7049
7148
|
|
|
7050
7149
|
class ZekUtcToLocalPipe {
|
|
7150
|
+
_datePipe;
|
|
7051
7151
|
constructor(_datePipe) {
|
|
7052
7152
|
this._datePipe = _datePipe;
|
|
7053
7153
|
}
|
|
@@ -7057,21 +7157,22 @@ class ZekUtcToLocalPipe {
|
|
|
7057
7157
|
const date = DateHelper.utcToLocal(DateHelper.toDate(value));
|
|
7058
7158
|
return this._datePipe.transform(date, format);
|
|
7059
7159
|
}
|
|
7060
|
-
static
|
|
7061
|
-
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" });
|
|
7062
7162
|
}
|
|
7063
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
7163
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekUtcToLocalPipe, decorators: [{
|
|
7064
7164
|
type: Pipe,
|
|
7065
7165
|
args: [{
|
|
7166
|
+
standalone: false,
|
|
7066
7167
|
name: 'utcToLocal'
|
|
7067
7168
|
}]
|
|
7068
7169
|
}], ctorParameters: () => [{ type: i1$2.DatePipe }] });
|
|
7069
7170
|
class ZekUtcToLocalModule {
|
|
7070
|
-
static
|
|
7071
|
-
static
|
|
7072
|
-
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] });
|
|
7073
7174
|
}
|
|
7074
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
7175
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekUtcToLocalModule, decorators: [{
|
|
7075
7176
|
type: NgModule,
|
|
7076
7177
|
args: [{
|
|
7077
7178
|
declarations: [ZekUtcToLocalPipe],
|
|
@@ -7203,9 +7304,16 @@ function toFloat(value) {
|
|
|
7203
7304
|
return typeof value === 'number' ? value : parseFloat(value);
|
|
7204
7305
|
}
|
|
7205
7306
|
class AbstractValidatorDirective {
|
|
7206
|
-
|
|
7207
|
-
|
|
7208
|
-
|
|
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;
|
|
7209
7317
|
/** @nodoc */
|
|
7210
7318
|
ngOnChanges(changes) {
|
|
7211
7319
|
if (this.inputName in changes) {
|
|
@@ -7235,10 +7343,10 @@ class AbstractValidatorDirective {
|
|
|
7235
7343
|
enabled(input) {
|
|
7236
7344
|
return input != null /* both `null` and `undefined` */;
|
|
7237
7345
|
}
|
|
7238
|
-
static
|
|
7239
|
-
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 });
|
|
7240
7348
|
}
|
|
7241
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
7349
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: AbstractValidatorDirective, decorators: [{
|
|
7242
7350
|
type: Directive
|
|
7243
7351
|
}] });
|
|
7244
7352
|
const RANGE_VALIDATOR = {
|
|
@@ -7247,21 +7355,20 @@ const RANGE_VALIDATOR = {
|
|
|
7247
7355
|
multi: true
|
|
7248
7356
|
};
|
|
7249
7357
|
class RangeValidator extends AbstractValidatorDirective {
|
|
7250
|
-
|
|
7251
|
-
|
|
7252
|
-
|
|
7253
|
-
|
|
7254
|
-
|
|
7255
|
-
|
|
7256
|
-
|
|
7257
|
-
|
|
7258
|
-
}
|
|
7259
|
-
|
|
7260
|
-
|
|
7261
|
-
}
|
|
7262
|
-
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: [{
|
|
7263
7369
|
type: Directive,
|
|
7264
7370
|
args: [{
|
|
7371
|
+
standalone: false,
|
|
7265
7372
|
selector: 'input[type=number][range][formControlName],input[type=number][range][formControl],input[type=number][range][ngModel]',
|
|
7266
7373
|
providers: [RANGE_VALIDATOR],
|
|
7267
7374
|
host: { '[attr.range]': '_enabled ? range : null' }
|
|
@@ -7279,21 +7386,20 @@ const MATCH_VALIDATOR = {
|
|
|
7279
7386
|
multi: true
|
|
7280
7387
|
};
|
|
7281
7388
|
class MatchValidator extends AbstractValidatorDirective {
|
|
7282
|
-
|
|
7283
|
-
|
|
7284
|
-
|
|
7285
|
-
|
|
7286
|
-
|
|
7287
|
-
|
|
7288
|
-
|
|
7289
|
-
|
|
7290
|
-
}
|
|
7291
|
-
|
|
7292
|
-
|
|
7293
|
-
}
|
|
7294
|
-
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: [{
|
|
7295
7400
|
type: Directive,
|
|
7296
7401
|
args: [{
|
|
7402
|
+
standalone: false,
|
|
7297
7403
|
selector: '[match][formControlName],match][formControl],[match][ngModel]',
|
|
7298
7404
|
providers: [MATCH_VALIDATOR],
|
|
7299
7405
|
host: { '[attr.match]': '_enabled ? match : null' }
|
|
@@ -7303,13 +7409,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
7303
7409
|
}] } });
|
|
7304
7410
|
|
|
7305
7411
|
class ValidatorsModule {
|
|
7306
|
-
static
|
|
7307
|
-
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,
|
|
7308
7414
|
MatchValidator], imports: [CommonModule], exports: [RangeValidator,
|
|
7309
|
-
MatchValidator] });
|
|
7310
|
-
static
|
|
7415
|
+
MatchValidator] });
|
|
7416
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ValidatorsModule, imports: [CommonModule] });
|
|
7311
7417
|
}
|
|
7312
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
7418
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ValidatorsModule, decorators: [{
|
|
7313
7419
|
type: NgModule,
|
|
7314
7420
|
args: [{
|
|
7315
7421
|
imports: [
|
|
@@ -7327,14 +7433,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
7327
7433
|
}] });
|
|
7328
7434
|
|
|
7329
7435
|
class ZekWizard {
|
|
7330
|
-
|
|
7331
|
-
|
|
7332
|
-
|
|
7333
|
-
|
|
7334
|
-
|
|
7335
|
-
this._steps = 1;
|
|
7336
|
-
this._step = 1;
|
|
7337
|
-
}
|
|
7436
|
+
progress = 0;
|
|
7437
|
+
stepsArray = [
|
|
7438
|
+
{ step: 1, progress: 0 }
|
|
7439
|
+
];
|
|
7440
|
+
_steps = 1;
|
|
7338
7441
|
get steps() {
|
|
7339
7442
|
return this._steps;
|
|
7340
7443
|
}
|
|
@@ -7346,6 +7449,7 @@ class ZekWizard {
|
|
|
7346
7449
|
this.init();
|
|
7347
7450
|
}
|
|
7348
7451
|
}
|
|
7452
|
+
_step = 1;
|
|
7349
7453
|
get step() {
|
|
7350
7454
|
return this._step;
|
|
7351
7455
|
}
|
|
@@ -7375,10 +7479,10 @@ class ZekWizard {
|
|
|
7375
7479
|
next() {
|
|
7376
7480
|
this.step++;
|
|
7377
7481
|
}
|
|
7378
|
-
static
|
|
7379
|
-
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" }] });
|
|
7380
7484
|
}
|
|
7381
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
7485
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekWizard, decorators: [{
|
|
7382
7486
|
type: Component,
|
|
7383
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>" }]
|
|
7384
7488
|
}], propDecorators: { steps: [{
|
|
@@ -7388,10 +7492,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
7388
7492
|
}] } });
|
|
7389
7493
|
|
|
7390
7494
|
class ZekWizard2 extends ZekWizard {
|
|
7391
|
-
static
|
|
7392
|
-
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"] }] });
|
|
7393
7497
|
}
|
|
7394
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
7498
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: ZekWizard2, decorators: [{
|
|
7395
7499
|
type: Component,
|
|
7396
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>" }]
|
|
7397
7501
|
}] });
|
|
@@ -7412,11 +7516,11 @@ class WebApiModule {
|
|
|
7412
7516
|
static forChild(config) {
|
|
7413
7517
|
return this.forRoot(config);
|
|
7414
7518
|
}
|
|
7415
|
-
static
|
|
7416
|
-
static
|
|
7417
|
-
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 });
|
|
7418
7522
|
}
|
|
7419
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
7523
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: WebApiModule, decorators: [{
|
|
7420
7524
|
type: NgModule
|
|
7421
7525
|
}] });
|
|
7422
7526
|
|