@acorex/core 7.1.0 → 7.1.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/config/index.d.ts +5 -5
- package/config/public-api.d.ts +1 -1
- package/config/src/configs.d.ts +9 -9
- package/dateTime/index.d.ts +5 -5
- package/dateTime/public-api.d.ts +5 -5
- package/dateTime/src/datetime.class.d.ts +100 -100
- package/dateTime/src/datetime.module.d.ts +8 -8
- package/dateTime/src/datetime.pipe.d.ts +8 -8
- package/dateTime/src/georgian.calendar.d.ts +20 -20
- package/dateTime/src/jalali.calendar.d.ts +35 -35
- package/esm2022/acorex-core.mjs +4 -4
- package/esm2022/config/acorex-core-config.mjs +4 -4
- package/esm2022/config/public-api.mjs +1 -1
- package/esm2022/config/src/configs.mjs +25 -24
- package/esm2022/dateTime/acorex-core-dateTime.mjs +4 -4
- package/esm2022/dateTime/public-api.mjs +5 -5
- package/esm2022/dateTime/src/datetime.class.mjs +294 -294
- package/esm2022/dateTime/src/datetime.module.mjs +40 -39
- package/esm2022/dateTime/src/datetime.pipe.mjs +27 -26
- package/esm2022/dateTime/src/georgian.calendar.mjs +186 -186
- package/esm2022/dateTime/src/jalali.calendar.mjs +356 -356
- package/esm2022/events/acorex-core-events.mjs +4 -4
- package/esm2022/events/public-api.mjs +1 -1
- package/esm2022/events/src/event.service.mjs +35 -34
- package/esm2022/file/acorex-core-file.mjs +4 -4
- package/esm2022/file/public-api.mjs +4 -4
- package/esm2022/file/src/file-download-ref.class.mjs +12 -12
- package/esm2022/file/src/file-download-result.class.mjs +46 -46
- package/esm2022/file/src/file-upload-ref.class.mjs +12 -12
- package/esm2022/file/src/file.service.mjs +103 -102
- package/esm2022/http/acorex-core-http.mjs +4 -4
- package/esm2022/http/public-api.mjs +5 -5
- package/esm2022/http/src/http-error.class.mjs +1 -1
- package/esm2022/http/src/http-events.interceptor.mjs +2 -2
- package/esm2022/http/src/http-request.class.mjs +1 -1
- package/esm2022/http/src/http-result.class.mjs +24 -24
- package/esm2022/http/src/http.module.mjs +30 -29
- package/esm2022/http/src/http.service.mjs +152 -151
- package/esm2022/image/acorex-core-image.mjs +4 -4
- package/esm2022/image/public-api.mjs +1 -1
- package/esm2022/image/src/image.service.mjs +44 -43
- package/esm2022/pipes/acorex-core-pipes.mjs +4 -4
- package/esm2022/pipes/public-api.mjs +2 -2
- package/esm2022/pipes/src/pipes.module.mjs +20 -19
- package/esm2022/pipes/src/safe.pipe.mjs +32 -31
- package/esm2022/platform/acorex-core-platform.mjs +4 -4
- package/esm2022/platform/public-api.mjs +1 -1
- package/esm2022/platform/src/platform.service.mjs +152 -159
- package/esm2022/public-api.mjs +4 -4
- package/esm2022/translation/acorex-core-translation.mjs +4 -4
- package/esm2022/translation/public-api.mjs +3 -3
- package/esm2022/translation/src/translation.module.mjs +19 -18
- package/esm2022/translation/src/translator.mjs +44 -43
- package/esm2022/translation/src/translator.pipe.mjs +16 -15
- package/esm2022/utils/acorex-core-utils.mjs +4 -4
- package/esm2022/utils/public-api.mjs +5 -5
- package/esm2022/utils/src/color-util.mjs +114 -114
- package/esm2022/utils/src/drawing-util.mjs +29 -29
- package/esm2022/utils/src/html-util.mjs +15 -15
- package/esm2022/utils/src/object-util.mjs +38 -38
- package/esm2022/utils/src/string-util.mjs +18 -18
- package/events/index.d.ts +5 -5
- package/events/public-api.d.ts +1 -1
- package/events/src/event.service.d.ts +9 -9
- package/fesm2022/acorex-core-config.mjs +22 -22
- package/fesm2022/acorex-core-config.mjs.map +1 -1
- package/fesm2022/acorex-core-dateTime.mjs +882 -882
- package/fesm2022/acorex-core-dateTime.mjs.map +1 -1
- package/fesm2022/acorex-core-events.mjs +32 -32
- package/fesm2022/acorex-core-events.mjs.map +1 -1
- package/fesm2022/acorex-core-file.mjs +162 -162
- package/fesm2022/acorex-core-file.mjs.map +1 -1
- package/fesm2022/acorex-core-http.mjs +190 -190
- package/fesm2022/acorex-core-http.mjs.map +1 -1
- package/fesm2022/acorex-core-image.mjs +41 -41
- package/fesm2022/acorex-core-image.mjs.map +1 -1
- package/fesm2022/acorex-core-pipes.mjs +41 -41
- package/fesm2022/acorex-core-pipes.mjs.map +1 -1
- package/fesm2022/acorex-core-platform.mjs +147 -155
- package/fesm2022/acorex-core-platform.mjs.map +1 -1
- package/fesm2022/acorex-core-translation.mjs +63 -63
- package/fesm2022/acorex-core-translation.mjs.map +1 -1
- package/fesm2022/acorex-core-utils.mjs +209 -209
- package/fesm2022/acorex-core.mjs +5 -5
- package/file/index.d.ts +5 -5
- package/file/public-api.d.ts +4 -4
- package/file/src/file-download-ref.class.d.ts +6 -6
- package/file/src/file-download-result.class.d.ts +8 -8
- package/file/src/file-upload-ref.class.d.ts +5 -5
- package/file/src/file.service.d.ts +18 -18
- package/http/index.d.ts +5 -5
- package/http/public-api.d.ts +5 -5
- package/http/src/http-error.class.d.ts +7 -7
- package/http/src/http-events.interceptor.d.ts +10 -10
- package/http/src/http-request.class.d.ts +14 -14
- package/http/src/http-result.class.d.ts +11 -11
- package/http/src/http.module.d.ts +8 -8
- package/http/src/http.service.d.ts +23 -23
- package/image/index.d.ts +5 -5
- package/image/public-api.d.ts +1 -1
- package/image/src/image.service.d.ts +12 -12
- package/index.d.ts +5 -5
- package/package.json +7 -7
- package/pipes/index.d.ts +5 -5
- package/pipes/public-api.d.ts +2 -2
- package/pipes/src/pipes.module.d.ts +8 -8
- package/pipes/src/safe.pipe.d.ts +10 -10
- package/platform/index.d.ts +5 -5
- package/platform/public-api.d.ts +1 -1
- package/platform/src/platform.service.d.ts +26 -26
- package/public-api.d.ts +1 -1
- package/translation/index.d.ts +5 -5
- package/translation/public-api.d.ts +3 -3
- package/translation/src/translation.module.d.ts +7 -7
- package/translation/src/translator.d.ts +11 -11
- package/translation/src/translator.pipe.d.ts +7 -7
- package/utils/index.d.ts +5 -5
- package/utils/public-api.d.ts +5 -5
- package/utils/src/color-util.d.ts +23 -23
- package/utils/src/drawing-util.d.ts +18 -18
- package/utils/src/html-util.d.ts +4 -4
- package/utils/src/object-util.d.ts +4 -4
- package/utils/src/string-util.d.ts +6 -6
@@ -1,19 +1,19 @@
|
|
1
|
-
// @dynamic
|
2
|
-
export class AXStringUtil {
|
3
|
-
static getWordBoundsAtPosition(str, position) {
|
4
|
-
const isSpace = (c) => /[^a-zA-Z0-9]+/i.test(c);
|
5
|
-
let start = position - 1;
|
6
|
-
while (start >= 0 && !isSpace(str[start])) {
|
7
|
-
start -= 1;
|
8
|
-
}
|
9
|
-
start = Math.max(0, start + 1);
|
10
|
-
const leftSideString = str.slice(start).match(/[a-zA-Z0-9]+/i);
|
11
|
-
start += leftSideString.index;
|
12
|
-
let end = start + leftSideString[0].length;
|
13
|
-
return {
|
14
|
-
start,
|
15
|
-
end
|
16
|
-
};
|
17
|
-
}
|
18
|
-
}
|
1
|
+
// @dynamic
|
2
|
+
export class AXStringUtil {
|
3
|
+
static getWordBoundsAtPosition(str, position) {
|
4
|
+
const isSpace = (c) => /[^a-zA-Z0-9]+/i.test(c);
|
5
|
+
let start = position - 1;
|
6
|
+
while (start >= 0 && !isSpace(str[start])) {
|
7
|
+
start -= 1;
|
8
|
+
}
|
9
|
+
start = Math.max(0, start + 1);
|
10
|
+
const leftSideString = str.slice(start).match(/[a-zA-Z0-9]+/i);
|
11
|
+
start += leftSideString.index;
|
12
|
+
let end = start + leftSideString[0].length;
|
13
|
+
return {
|
14
|
+
start,
|
15
|
+
end
|
16
|
+
};
|
17
|
+
}
|
18
|
+
}
|
19
19
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RyaW5nLXV0aWwuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hY29yZXgvY29yZS91dGlscy9zcmMvc3RyaW5nLXV0aWwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsV0FBVztBQUNYLE1BQU0sT0FBTyxZQUFZO0lBRXJ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gL1teYS16QS1aMC05XSsvaS50ZXN0KGMpO1xyXG4gICAgICAgIGxldCBzdGFydCA9IHBvc2l0aW9uIC0gMTtcclxuXHJcbiAgICAgICAgd2hpbGUgKHN0YXJ0ID49IDAgJiYgIWlzU3BhY2Uoc3RyW3N0YXJ0XSkpIHtcclxuICAgICAgICAgICAgc3RhcnQgLT0gMTtcclxuICAgICAgICB9XHJcbiAgICAgICAgc3RhcnQgPSBNYXRoLm1heCgwLCBzdGFydCArIDEpO1xyXG4gICAgICAgIGNvbnN0IGxlZnRTaWRlU3RyaW5nOmFueSA9IHN0ci5zbGljZShzdGFydCkubWF0Y2goL1thLXpBLVowLTldKy9pKTtcclxuICAgICAgICBzdGFydCArPSBsZWZ0U2lkZVN0cmluZy5pbmRleDtcclxuICAgICAgICBsZXQgZW5kID0gc3RhcnQgKyBsZWZ0U2lkZVN0cmluZ1swXS5sZW5ndGg7XHJcbiAgICAgICAgcmV0dXJuIHtcclxuICAgICAgICAgICAgc3RhcnQsXHJcbiAgICAgICAgICAgIGVuZFxyXG4gICAgICAgIH07XHJcbiAgICB9XHJcblxyXG5cclxuXHJcblxyXG5cclxufSJdfQ==
|
package/events/index.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
/**
|
2
|
-
* Generated bundle index. Do not edit.
|
3
|
-
*/
|
4
|
-
/// <amd-module name="@acorex/core/events" />
|
5
|
-
export * from './public-api';
|
1
|
+
/**
|
2
|
+
* Generated bundle index. Do not edit.
|
3
|
+
*/
|
4
|
+
/// <amd-module name="@acorex/core/events" />
|
5
|
+
export * from './public-api';
|
package/events/public-api.d.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export * from './src/event.service';
|
1
|
+
export * from './src/event.service';
|
@@ -1,9 +1,9 @@
|
|
1
|
-
import * as i0 from "@angular/core";
|
2
|
-
export declare class AXEventService {
|
3
|
-
private list;
|
4
|
-
broadcast(key: string, options?: any): void;
|
5
|
-
on(key: string, callback: (options?: any) => void): void;
|
6
|
-
destroy(key: string, callback: (options?: any) => void): void;
|
7
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AXEventService, never>;
|
8
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AXEventService>;
|
9
|
-
}
|
1
|
+
import * as i0 from "@angular/core";
|
2
|
+
export declare class AXEventService {
|
3
|
+
private list;
|
4
|
+
broadcast(key: string, options?: any): void;
|
5
|
+
on(key: string, callback: (options?: any) => void): void;
|
6
|
+
destroy(key: string, callback: (options?: any) => void): void;
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXEventService, never>;
|
8
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXEventService>;
|
9
|
+
}
|
@@ -1,30 +1,30 @@
|
|
1
1
|
import { set, merge, get } from 'lodash-es';
|
2
2
|
import { Subject } from 'rxjs';
|
3
3
|
|
4
|
-
// @dynamic
|
5
|
-
class AXConfig {
|
6
|
-
static dataModel = {};
|
7
|
-
static dataChangeSubject = new Subject();
|
8
|
-
static get onChange() {
|
9
|
-
return AXConfig.dataChangeSubject.asObservable();
|
10
|
-
}
|
11
|
-
static set(arg1, arg2) {
|
12
|
-
if (arg1 && typeof arg1 == 'string') {
|
13
|
-
set(AXConfig.dataModel, arg1, arg2);
|
14
|
-
AXConfig.dataChangeSubject.next(AXConfig.dataModel);
|
15
|
-
}
|
16
|
-
if (arg1 && typeof arg1 == 'object') {
|
17
|
-
merge(AXConfig.dataModel, arg1);
|
18
|
-
AXConfig.dataChangeSubject.next(AXConfig.dataModel);
|
19
|
-
}
|
20
|
-
}
|
21
|
-
static get(path, defaultValue) {
|
22
|
-
return get(AXConfig.dataModel, path, defaultValue);
|
23
|
-
}
|
4
|
+
// @dynamic
|
5
|
+
class AXConfig {
|
6
|
+
static dataModel = {};
|
7
|
+
static dataChangeSubject = new Subject();
|
8
|
+
static get onChange() {
|
9
|
+
return AXConfig.dataChangeSubject.asObservable();
|
10
|
+
}
|
11
|
+
static set(arg1, arg2) {
|
12
|
+
if (arg1 && typeof arg1 == 'string') {
|
13
|
+
set(AXConfig.dataModel, arg1, arg2);
|
14
|
+
AXConfig.dataChangeSubject.next(AXConfig.dataModel);
|
15
|
+
}
|
16
|
+
if (arg1 && typeof arg1 == 'object') {
|
17
|
+
merge(AXConfig.dataModel, arg1);
|
18
|
+
AXConfig.dataChangeSubject.next(AXConfig.dataModel);
|
19
|
+
}
|
20
|
+
}
|
21
|
+
static get(path, defaultValue) {
|
22
|
+
return get(AXConfig.dataModel, path, defaultValue);
|
23
|
+
}
|
24
24
|
}
|
25
25
|
|
26
|
-
/**
|
27
|
-
* Generated bundle index. Do not edit.
|
26
|
+
/**
|
27
|
+
* Generated bundle index. Do not edit.
|
28
28
|
*/
|
29
29
|
|
30
30
|
export { AXConfig };
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"acorex-core-config.mjs","sources":["../../../../projects/acorex/core/config/src/configs.ts","../../../../projects/acorex/core/config/acorex-core-config.ts"],"sourcesContent":["import { get, set, merge } from 'lodash-es';\r\nimport { Subject, Observable } from 'rxjs';\r\n\r\n// @dynamic\r\nexport class AXConfig {\r\n private static dataModel: any = {};\r\n private static dataChangeSubject = new Subject<any>();\r\n\r\n static get onChange(): Observable<any> {\r\n return AXConfig.dataChangeSubject.asObservable();\r\n }\r\n\r\n static set(config: any): void;\r\n static set(path: string, value?: any): void;\r\n static set(arg1?: any, arg2?: any): void {\r\n if (arg1 && typeof arg1 == 'string') {\r\n set(AXConfig.dataModel, arg1, arg2);\r\n AXConfig.dataChangeSubject.next(AXConfig.dataModel);\r\n }\r\n if (arg1 && typeof arg1 == 'object') {\r\n merge(AXConfig.dataModel, arg1);\r\n AXConfig.dataChangeSubject.next(AXConfig.dataModel);\r\n }\r\n }\r\n\r\n static get(path: string, defaultValue?: any): any {\r\n return get(AXConfig.dataModel, path, defaultValue);\r\n }\r\n}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;AAGA;
|
1
|
+
{"version":3,"file":"acorex-core-config.mjs","sources":["../../../../projects/acorex/core/config/src/configs.ts","../../../../projects/acorex/core/config/acorex-core-config.ts"],"sourcesContent":["import { get, set, merge } from 'lodash-es';\r\nimport { Subject, Observable } from 'rxjs';\r\n\r\n// @dynamic\r\nexport class AXConfig {\r\n private static dataModel: any = {};\r\n private static dataChangeSubject = new Subject<any>();\r\n\r\n static get onChange(): Observable<any> {\r\n return AXConfig.dataChangeSubject.asObservable();\r\n }\r\n\r\n static set(config: any): void;\r\n static set(path: string, value?: any): void;\r\n static set(arg1?: any, arg2?: any): void {\r\n if (arg1 && typeof arg1 == 'string') {\r\n set(AXConfig.dataModel, arg1, arg2);\r\n AXConfig.dataChangeSubject.next(AXConfig.dataModel);\r\n }\r\n if (arg1 && typeof arg1 == 'object') {\r\n merge(AXConfig.dataModel, arg1);\r\n AXConfig.dataChangeSubject.next(AXConfig.dataModel);\r\n }\r\n }\r\n\r\n static get(path: string, defaultValue?: any): any {\r\n return get(AXConfig.dataModel, path, defaultValue);\r\n }\r\n}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;AAGA;AACA,MAAa,QAAQ,CAAA;AACX,IAAA,OAAO,SAAS,GAAQ,EAAE,CAAC;AAC3B,IAAA,OAAO,iBAAiB,GAAG,IAAI,OAAO,EAAO,CAAC;AAEtD,IAAA,WAAW,QAAQ,GAAA;AACjB,QAAA,OAAO,QAAQ,CAAC,iBAAiB,CAAC,YAAY,EAAE,CAAC;KAClD;AAID,IAAA,OAAO,GAAG,CAAC,IAAU,EAAE,IAAU,EAAA;AAC/B,QAAA,IAAI,IAAI,IAAI,OAAO,IAAI,IAAI,QAAQ,EAAE;YACnC,GAAG,CAAC,QAAQ,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;YACpC,QAAQ,CAAC,iBAAiB,CAAC,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;AACrD,SAAA;AACD,QAAA,IAAI,IAAI,IAAI,OAAO,IAAI,IAAI,QAAQ,EAAE;AACnC,YAAA,KAAK,CAAC,QAAQ,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;YAChC,QAAQ,CAAC,iBAAiB,CAAC,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;AACrD,SAAA;KACF;AAED,IAAA,OAAO,GAAG,CAAC,IAAY,EAAE,YAAkB,EAAA;QACzC,OAAO,GAAG,CAAC,QAAQ,CAAC,SAAS,EAAE,IAAI,EAAE,YAAY,CAAC,CAAC;KACpD;;;AC3BH;;AAEG;;;;"}
|