@acorex/core 5.0.8 → 5.0.14
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/tailwind.config.js +146 -215
- package/{esm2015/acorex-core.js → esm2020/acorex-core.mjs} +0 -0
- package/{esm2015/lib/config/configs.js → esm2020/lib/config/configs.mjs} +0 -0
- package/{esm2015/lib/core.module.js → esm2020/lib/core.module.mjs} +4 -4
- package/{esm2015/lib/dateTime/datetime.class.js → esm2020/lib/dateTime/datetime.class.mjs} +0 -0
- package/{esm2015/lib/dateTime/datetime.module.js → esm2020/lib/dateTime/datetime.module.mjs} +4 -4
- package/{esm2015/lib/dateTime/datetime.pipe.js → esm2020/lib/dateTime/datetime.pipe.mjs} +3 -3
- package/{esm2015/lib/dateTime/georgian.calendar.js → esm2020/lib/dateTime/georgian.calendar.mjs} +0 -0
- package/{esm2015/lib/dateTime/index.js → esm2020/lib/dateTime/index.mjs} +0 -0
- package/{esm2015/lib/dateTime/jalali.calendar.js → esm2020/lib/dateTime/jalali.calendar.mjs} +0 -0
- package/esm2020/lib/hotkeys/hotkeys.service.mjs +37 -0
- package/esm2020/lib/hotkeys/index.mjs +2 -0
- package/{esm2015/lib/platform/index.js → esm2020/lib/platform/index.mjs} +0 -0
- package/{esm2015/lib/platform/platform.service.js → esm2020/lib/platform/platform.service.mjs} +12 -4
- package/{esm2015/lib/translation/index.js → esm2020/lib/translation/index.mjs} +0 -0
- package/{esm2015/lib/translation/translation.module.js → esm2020/lib/translation/translation.module.mjs} +4 -4
- package/{esm2015/lib/translation/translator.js → esm2020/lib/translation/translator.mjs} +0 -0
- package/{esm2015/lib/translation/translator.pipe.js → esm2020/lib/translation/translator.pipe.mjs} +3 -3
- package/{esm2015/lib/utils/drawing-util.js → esm2020/lib/utils/drawing-util.mjs} +0 -0
- package/{esm2015/lib/utils/index.js → esm2020/lib/utils/index.mjs} +2 -1
- package/{esm2015/lib/utils/object-util.js → esm2020/lib/utils/object-util.mjs} +0 -0
- package/{esm2015/lib/utils/safe.pipe.js → esm2020/lib/utils/safe.pipe.mjs} +3 -3
- package/esm2020/lib/utils/string-util.mjs +21 -0
- package/esm2020/public-api.mjs +12 -0
- package/fesm2015/acorex-core.mjs +1221 -0
- package/fesm2015/acorex-core.mjs.map +1 -0
- package/{fesm2015/acorex-core.js → fesm2020/acorex-core.mjs} +90 -27
- package/fesm2020/acorex-core.mjs.map +1 -0
- package/lib/hotkeys/hotkeys.service.d.ts +17 -0
- package/lib/hotkeys/index.d.ts +1 -0
- package/lib/platform/platform.service.d.ts +2 -0
- package/lib/utils/index.d.ts +1 -0
- package/lib/utils/string-util.d.ts +6 -0
- package/package.json +19 -6
- package/public-api.d.ts +1 -0
- package/bundles/acorex-core.umd.js +0 -1320
- package/bundles/acorex-core.umd.js.map +0 -1
- package/esm2015/public-api.js +0 -11
- package/fesm2015/acorex-core.js.map +0 -1
|
@@ -3,10 +3,10 @@ import { AXTranslatorPipe } from './translator.pipe';
|
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export class AXTranslationModule {
|
|
5
5
|
}
|
|
6
|
-
AXTranslationModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
7
|
-
AXTranslationModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
|
|
8
|
-
AXTranslationModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
9
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
6
|
+
AXTranslationModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXTranslationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
7
|
+
AXTranslationModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXTranslationModule, declarations: [AXTranslatorPipe], exports: [AXTranslatorPipe] });
|
|
8
|
+
AXTranslationModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXTranslationModule, providers: [], imports: [[]] });
|
|
9
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXTranslationModule, decorators: [{
|
|
10
10
|
type: NgModule,
|
|
11
11
|
args: [{
|
|
12
12
|
imports: [],
|
|
File without changes
|
package/{esm2015/lib/translation/translator.pipe.js → esm2020/lib/translation/translator.pipe.mjs}
RENAMED
|
@@ -6,9 +6,9 @@ export class AXTranslatorPipe {
|
|
|
6
6
|
return AXTranslator.get(value, lang);
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
|
-
AXTranslatorPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
10
|
-
AXTranslatorPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "
|
|
11
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
9
|
+
AXTranslatorPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXTranslatorPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
10
|
+
AXTranslatorPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXTranslatorPipe, name: "trans" });
|
|
11
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXTranslatorPipe, decorators: [{
|
|
12
12
|
type: Pipe,
|
|
13
13
|
args: [{ name: 'trans', pure: true }]
|
|
14
14
|
}] });
|
|
File without changes
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * from './object-util';
|
|
2
2
|
export * from './drawing-util';
|
|
3
|
+
export * from './string-util';
|
|
3
4
|
export * from './safe.pipe';
|
|
4
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hY29yZXgvY29yZS9zcmMvbGliL3V0aWxzL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsZUFBZSxDQUFDO0FBQzlCLGNBQWMsZ0JBQWdCLENBQUM7QUFDL0IsY0FBYyxlQUFlLENBQUM7QUFDOUIsY0FBYyxhQUFhLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL29iamVjdC11dGlsJztcclxuZXhwb3J0ICogZnJvbSAnLi9kcmF3aW5nLXV0aWwnO1xyXG5leHBvcnQgKiBmcm9tICcuL3N0cmluZy11dGlsJztcclxuZXhwb3J0ICogZnJvbSAnLi9zYWZlLnBpcGUnOyJdfQ==
|
|
File without changes
|
|
@@ -18,9 +18,9 @@ export class AXSafePipe {
|
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
|
-
AXSafePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
22
|
-
AXSafePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "
|
|
23
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
21
|
+
AXSafePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXSafePipe, deps: [{ token: i1.DomSanitizer }], target: i0.ɵɵFactoryTarget.Pipe });
|
|
22
|
+
AXSafePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXSafePipe, name: "safe" });
|
|
23
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXSafePipe, decorators: [{
|
|
24
24
|
type: Pipe,
|
|
25
25
|
args: [{
|
|
26
26
|
name: 'safe',
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// @dynamic
|
|
2
|
+
export class AXStringUtil {
|
|
3
|
+
static getWordBoundsAtPosition(str, position) {
|
|
4
|
+
const isSpace = (c) => /[^a-zA-Z0-9]+/i.exec(c);
|
|
5
|
+
let start = position - 1;
|
|
6
|
+
let end = position;
|
|
7
|
+
while (start >= 0 && !isSpace(str[start])) {
|
|
8
|
+
start -= 1;
|
|
9
|
+
}
|
|
10
|
+
start = Math.max(0, start + 1);
|
|
11
|
+
while (end < str.length && !isSpace(str[end])) {
|
|
12
|
+
end += 1;
|
|
13
|
+
}
|
|
14
|
+
end = Math.max(start, end);
|
|
15
|
+
return {
|
|
16
|
+
start,
|
|
17
|
+
end
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RyaW5nLXV0aWwuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hY29yZXgvY29yZS9zcmMvbGliL3V0aWxzL3N0cmluZy11dGlsLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLFdBQVc7QUFDWCxNQUFNLE9BQU8sWUFBWTtJQUVyQixNQUFNLENBQUMsdUJBQXVCLENBQUMsR0FBVyxFQUFFLFFBQWdCO1FBQ3hELE1BQU0sT0FBTyxHQUFHLENBQUMsQ0FBQyxFQUFFLEVBQUUsQ0FBQyxnQkFBZ0IsQ0FBQyxJQUFJLENBQUMsQ0FBQyxDQUFDLENBQUM7UUFDaEQsSUFBSSxLQUFLLEdBQUcsUUFBUSxHQUFHLENBQUMsQ0FBQztRQUN6QixJQUFJLEdBQUcsR0FBRyxRQUF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tcclxuICAgICAgICB9XHJcbiAgICAgICAgc3RhcnQgPSBNYXRoLm1heCgwLCBzdGFydCArIDEpO1xyXG5cclxuICAgICAgICB3aGlsZSAoZW5kIDwgc3RyLmxlbmd0aCAmJiAhaXNTcGFjZShzdHJbZW5kXSkpIHtcclxuICAgICAgICAgICAgZW5kICs9IDE7XHJcbiAgICAgICAgfVxyXG4gICAgICAgIGVuZCA9IE1hdGgubWF4KHN0YXJ0LCBlbmQpO1xyXG5cclxuICAgICAgICByZXR1cm4geyBcclxuICAgICAgICAgICAgc3RhcnQsIFxyXG4gICAgICAgICAgICBlbmQgXHJcbiAgICAgICAgfTtcclxuICAgIH1cclxufSJdfQ==
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Public API refrences of core libraries
|
|
3
|
+
* @module @acorex/core
|
|
4
|
+
*/
|
|
5
|
+
export * from './lib/core.module';
|
|
6
|
+
export * from './lib/dateTime';
|
|
7
|
+
export * from './lib/hotkeys';
|
|
8
|
+
export * from './lib/utils';
|
|
9
|
+
export * from './lib/config/configs';
|
|
10
|
+
export * from './lib/translation';
|
|
11
|
+
export * from './lib/platform';
|
|
12
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL2Fjb3JleC9jb3JlL3NyYy9wdWJsaWMtYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUNBOzs7R0FHRztBQUNILGNBQWMsbUJBQW1CLENBQUM7QUFDbEMsY0FBYyxnQkFBZ0IsQ0FBQztBQUMvQixjQUFjLGVBQWUsQ0FBQztBQUM5QixjQUFjLGFBQWEsQ0FBQztBQUM1QixjQUFjLHNCQUFzQixDQUFDO0FBQ3JDLGNBQWMsbUJBQW1CLENBQUM7QUFDbEMsY0FBYyxnQkFBZ0IsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIlxyXG4vKipcclxuICogUHVibGljIEFQSSByZWZyZW5jZXMgb2YgY29yZSBsaWJyYXJpZXNcclxuICogQG1vZHVsZSBAYWNvcmV4L2NvcmVcclxuICovXHJcbmV4cG9ydCAqIGZyb20gJy4vbGliL2NvcmUubW9kdWxlJztcclxuZXhwb3J0ICogZnJvbSAnLi9saWIvZGF0ZVRpbWUnO1xyXG5leHBvcnQgKiBmcm9tICcuL2xpYi9ob3RrZXlzJztcclxuZXhwb3J0ICogZnJvbSAnLi9saWIvdXRpbHMnO1xyXG5leHBvcnQgKiBmcm9tICcuL2xpYi9jb25maWcvY29uZmlncyc7XHJcbmV4cG9ydCAqIGZyb20gJy4vbGliL3RyYW5zbGF0aW9uJztcclxuZXhwb3J0ICogZnJvbSAnLi9saWIvcGxhdGZvcm0nOyJdfQ==
|