@stemy/ngx-utils 13.1.1 → 13.1.4
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/bundles/stemy-ngx-utils.umd.js +6145 -0
- package/bundles/stemy-ngx-utils.umd.js.map +1 -0
- package/esm2015/ngx-utils/common-types.js +116 -0
- package/esm2015/ngx-utils/components/dynamic-table/dynamic-table.component.js +139 -0
- package/esm2015/ngx-utils/components/pagination-menu/pagination-menu.component.js +96 -0
- package/esm2015/ngx-utils/components/unordered-list/unordered-list.component.js +51 -0
- package/esm2015/ngx-utils/directives/async-method.base.js +54 -0
- package/esm2015/ngx-utils/directives/async-method.directive.js +24 -0
- package/esm2015/ngx-utils/directives/background.directive.js +51 -0
- package/esm2015/ngx-utils/directives/dynamic-table-template.directive.js +19 -0
- package/esm2015/ngx-utils/directives/global-template.directive.js +27 -0
- package/esm2015/ngx-utils/directives/icon.directive.js +59 -0
- package/esm2015/ngx-utils/directives/ngx-template-outlet.directive.js +88 -0
- package/esm2015/ngx-utils/directives/pagination-item.directive.js +33 -0
- package/esm2015/ngx-utils/directives/pagination.directive.js +76 -0
- package/esm2015/ngx-utils/directives/resource-if.directive.js +51 -0
- package/esm2015/ngx-utils/directives/sticky-class.directive.js +35 -0
- package/esm2015/ngx-utils/directives/sticky.directive.js +48 -0
- package/esm2015/ngx-utils/directives/unordered-list-item.directive.js +70 -0
- package/esm2015/ngx-utils/directives/unordered-list-template.directive.js +26 -0
- package/esm2015/ngx-utils/ngx-utils.module.js +238 -0
- package/esm2015/ngx-utils/pipes/chunk.pipe.js +21 -0
- package/esm2015/ngx-utils/pipes/entries.pipe.js +24 -0
- package/esm2015/ngx-utils/pipes/extra-item-properties.pipe.js +27 -0
- package/esm2015/ngx-utils/pipes/filter.pipe.js +38 -0
- package/esm2015/ngx-utils/pipes/find.pipe.js +25 -0
- package/esm2015/ngx-utils/pipes/format-number.pipe.js +19 -0
- package/esm2015/ngx-utils/pipes/get-offset.pipe.js +13 -0
- package/esm2015/ngx-utils/pipes/get-type.pipe.js +12 -0
- package/esm2015/ngx-utils/pipes/global-template.pipe.js +37 -0
- package/esm2015/ngx-utils/pipes/group-by.pipe.js +23 -0
- package/esm2015/ngx-utils/pipes/is-type.pipe.js +12 -0
- package/esm2015/ngx-utils/pipes/join.pipe.js +15 -0
- package/esm2015/ngx-utils/pipes/keys.pipe.js +18 -0
- package/esm2015/ngx-utils/pipes/map.pipe.js +25 -0
- package/esm2015/ngx-utils/pipes/max.pipe.js +22 -0
- package/esm2015/ngx-utils/pipes/min.pipe.js +22 -0
- package/esm2015/ngx-utils/pipes/reduce.pipe.js +26 -0
- package/esm2015/ngx-utils/pipes/remap.pipe.js +28 -0
- package/esm2015/ngx-utils/pipes/replace.pipe.js +12 -0
- package/esm2015/ngx-utils/pipes/reverse.pipe.js +20 -0
- package/esm2015/ngx-utils/pipes/round.pipe.js +19 -0
- package/esm2015/ngx-utils/pipes/safe-html.pipe.js +32 -0
- package/esm2015/ngx-utils/pipes/translate.pipe.js +81 -0
- package/esm2015/ngx-utils/pipes/values.pipe.js +18 -0
- package/esm2015/ngx-utils/plugins/resize-event.plugin.js +56 -0
- package/esm2015/ngx-utils/plugins/scroll-event.plugin.js +36 -0
- package/esm2015/ngx-utils/services/acl.service.js +81 -0
- package/esm2015/ngx-utils/services/api.service.js +35 -0
- package/esm2015/ngx-utils/services/auth.service.js +14 -0
- package/esm2015/ngx-utils/services/base-http.client.js +46 -0
- package/esm2015/ngx-utils/services/base-http.service.js +285 -0
- package/esm2015/ngx-utils/services/config.service.js +122 -0
- package/esm2015/ngx-utils/services/error-handler.service.js +49 -0
- package/esm2015/ngx-utils/services/events.service.js +24 -0
- package/esm2015/ngx-utils/services/formatter.service.js +44 -0
- package/esm2015/ngx-utils/services/global-template.service.js +35 -0
- package/esm2015/ngx-utils/services/icon.service.js +24 -0
- package/esm2015/ngx-utils/services/language.service.js +117 -0
- package/esm2015/ngx-utils/services/open-api.service.js +41 -0
- package/esm2015/ngx-utils/services/promise.service.js +52 -0
- package/esm2015/ngx-utils/services/state.service.js +181 -0
- package/esm2015/ngx-utils/services/static-language.service.js +152 -0
- package/esm2015/ngx-utils/services/storage.service.js +48 -0
- package/esm2015/ngx-utils/services/toaster.service.js +29 -0
- package/esm2015/ngx-utils/services/translated-url.serializer.js +70 -0
- package/esm2015/ngx-utils/services/universal.service.js +75 -0
- package/esm2015/ngx-utils/utils/ajax-request-handler.js +40 -0
- package/esm2015/ngx-utils/utils/array.utils.js +100 -0
- package/esm2015/ngx-utils/utils/auth.guard.js +156 -0
- package/esm2015/ngx-utils/utils/canvas.utils.js +388 -0
- package/esm2015/ngx-utils/utils/date.utils.js +28 -0
- package/esm2015/ngx-utils/utils/file-system.js +20 -0
- package/esm2015/ngx-utils/utils/file.utils.js +90 -0
- package/esm2015/ngx-utils/utils/generic-value.js +20 -0
- package/esm2015/ngx-utils/utils/geometry.js +132 -0
- package/esm2015/ngx-utils/utils/initializer.js +20 -0
- package/esm2015/ngx-utils/utils/loader.utils.js +55 -0
- package/esm2015/ngx-utils/utils/math.utils.js +15 -0
- package/esm2015/ngx-utils/utils/object.utils.js +263 -0
- package/esm2015/ngx-utils/utils/observable.utils.js +63 -0
- package/esm2015/ngx-utils/utils/reflect.utils.js +33 -0
- package/esm2015/ngx-utils/utils/set.utils.js +20 -0
- package/esm2015/ngx-utils/utils/string.utils.js +28 -0
- package/esm2015/ngx-utils/utils/timer.utils.js +52 -0
- package/esm2015/ngx-utils/utils/unique.utils.js +24 -0
- package/esm2015/ngx-utils/utils/vector.js +77 -0
- package/esm2015/public_api.js +85 -0
- package/esm2015/stemy-ngx-utils.js +7 -0
- package/esm2020/ngx-utils/services/acl.service.mjs +3 -1
- package/esm2020/ngx-utils/utils/file-system.mjs +20 -0
- package/esm2020/ngx-utils/utils/string.utils.mjs +4 -1
- package/esm2020/public_api.mjs +2 -1
- package/fesm2015/stemy-ngx-utils.js +4882 -0
- package/fesm2015/stemy-ngx-utils.js.map +1 -0
- package/fesm2015/stemy-ngx-utils.mjs +26 -1
- package/fesm2015/stemy-ngx-utils.mjs.map +1 -1
- package/fesm2020/stemy-ngx-utils.mjs +26 -1
- package/fesm2020/stemy-ngx-utils.mjs.map +1 -1
- package/ngx-utils/utils/file-system.d.ts +16 -0
- package/ngx-utils/utils/string.utils.d.ts +1 -0
- package/package.json +1 -1
- package/public_api.d.ts +1 -0
- package/stemy-ngx-utils.metadata.json +1 -0
- package/tools/circular.js +117 -0
- package/tools/circular.js.map +1 -0
- package/tools/config.js +79 -0
- package/tools/config.js.map +1 -0
- package/tools/icons.js +14 -0
- package/tools/icons.js.map +1 -0
|
@@ -987,6 +987,26 @@ class GenericValue extends Subject {
|
|
|
987
987
|
}
|
|
988
988
|
}
|
|
989
989
|
|
|
990
|
+
class FileSystemEntry {
|
|
991
|
+
constructor(label, meta, image, data, parent, openCb) {
|
|
992
|
+
this.label = label;
|
|
993
|
+
this.meta = meta;
|
|
994
|
+
this.image = image;
|
|
995
|
+
this.data = data;
|
|
996
|
+
this.parent = parent;
|
|
997
|
+
this.openCb = openCb;
|
|
998
|
+
this.path = !parent ? [this] : parent.path.concat([this]);
|
|
999
|
+
this.level = this.path.length - 1;
|
|
1000
|
+
this.classes = this.path
|
|
1001
|
+
.filter(t => typeof t.data === "string" && t.data.length > 0).map(t => t.data)
|
|
1002
|
+
.concat([`level-${this.level}`]);
|
|
1003
|
+
}
|
|
1004
|
+
open() {
|
|
1005
|
+
this.result = this.result || this.openCb(this.data, this);
|
|
1006
|
+
return this.result;
|
|
1007
|
+
}
|
|
1008
|
+
}
|
|
1009
|
+
|
|
990
1010
|
class Rect {
|
|
991
1011
|
constructor(x, y, width, height, rotation = 0) {
|
|
992
1012
|
this.x = x;
|
|
@@ -1774,6 +1794,9 @@ class StringUtils {
|
|
|
1774
1794
|
static ucFirst(str) {
|
|
1775
1795
|
return str ? str.charAt(0).toUpperCase() + str.substring(1) : "";
|
|
1776
1796
|
}
|
|
1797
|
+
static isObjectId(id) {
|
|
1798
|
+
return typeof id === "string" && id.length == 24 && !isNaN(Number("0x" + id));
|
|
1799
|
+
}
|
|
1777
1800
|
static parseDomain(baseUrl) {
|
|
1778
1801
|
try {
|
|
1779
1802
|
const url = new URL(baseUrl);
|
|
@@ -2022,6 +2045,8 @@ class AclService {
|
|
|
2022
2045
|
return;
|
|
2023
2046
|
info.dirty = false;
|
|
2024
2047
|
const component = info.component;
|
|
2048
|
+
if (!info.component)
|
|
2049
|
+
return;
|
|
2025
2050
|
if (info.first) {
|
|
2026
2051
|
if (ObjectUtils.isFunction(component.onUserInitialized)) {
|
|
2027
2052
|
component.onUserInitialized();
|
|
@@ -5161,5 +5186,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.8", ngImpor
|
|
|
5161
5186
|
* Generated bundle index. Do not edit.
|
|
5162
5187
|
*/
|
|
5163
5188
|
|
|
5164
|
-
export { API_SERVICE, APP_BASE_URL, AUTH_SERVICE, AclService, AjaxRequestHandler, ApiService, ArrayUtils, AsyncMethodBase, AsyncMethodDirective, AuthGuard, BASE_CONFIG, BackgroundDirective, BaseHttpClient, BaseHttpService, CONFIG_SERVICE, CanvasColor, CanvasUtils, ChunkPipe, Circle, ConfigService, ConsoleToasterService, DateUtils, DynamicTableComponent, DynamicTableTemplateDirective, ERROR_HANDLER, EXPRESS_REQUEST, EntriesPipe, ErrorHandlerService, EventsService, ExtraItemPropertiesPipe, FactoryDependencies, FileUtils, FilterPipe, FindPipe, FormatNumberPipe, FormatterService, GLOBAL_TEMPLATES, GenericValue, GetOffsetPipe, GetTypePipe, GlobalTemplateDirective, GlobalTemplatePipe, GlobalTemplateService, GroupByPipe, HttpPromise, ICON_SERVICE, IConfiguration, IconDirective, IconService, Initializer, IsTypePipe, JoinPipe, KeysPipe, LANGUAGE_SERVICE, LanguageService, LoaderUtils, MapPipe, MathUtils, MaxPipe, MinPipe, NgxTemplateOutletDirective, NgxUtilsModule, ObjectUtils, ObservableUtils, OpenApiService, PROMISE_SERVICE, PaginationDirective, PaginationItemContext, PaginationItemDirective, PaginationMenuComponent, Point, PromiseService, ROOT_ELEMENT, Rect, ReducePipe, ReflectUtils, RemapPipe, ReplacePipe, ResizeEventPlugin, ResourceIfContext, ResourceIfDirective, ReversePipe, RoundPipe, SCRIPT_PARAMS, SafeHtmlPipe, ScrollEventPlugin, SetUtils, StateService, StaticAuthService, StaticLanguageService, StickyClassDirective, StickyDirective, StorageMode, StorageService, StringUtils, TOASTER_SERVICE, TimerUtils, TranslatePipe, TranslatedUrlSerializer, UniqueUtils, UniversalService, UnorderedListComponent, UnorderedListItemDirective, UnorderedListTemplateDirective, UnorederedListTemplate, ValuedPromise, ValuesPipe, Vector };
|
|
5189
|
+
export { API_SERVICE, APP_BASE_URL, AUTH_SERVICE, AclService, AjaxRequestHandler, ApiService, ArrayUtils, AsyncMethodBase, AsyncMethodDirective, AuthGuard, BASE_CONFIG, BackgroundDirective, BaseHttpClient, BaseHttpService, CONFIG_SERVICE, CanvasColor, CanvasUtils, ChunkPipe, Circle, ConfigService, ConsoleToasterService, DateUtils, DynamicTableComponent, DynamicTableTemplateDirective, ERROR_HANDLER, EXPRESS_REQUEST, EntriesPipe, ErrorHandlerService, EventsService, ExtraItemPropertiesPipe, FactoryDependencies, FileSystemEntry, FileUtils, FilterPipe, FindPipe, FormatNumberPipe, FormatterService, GLOBAL_TEMPLATES, GenericValue, GetOffsetPipe, GetTypePipe, GlobalTemplateDirective, GlobalTemplatePipe, GlobalTemplateService, GroupByPipe, HttpPromise, ICON_SERVICE, IConfiguration, IconDirective, IconService, Initializer, IsTypePipe, JoinPipe, KeysPipe, LANGUAGE_SERVICE, LanguageService, LoaderUtils, MapPipe, MathUtils, MaxPipe, MinPipe, NgxTemplateOutletDirective, NgxUtilsModule, ObjectUtils, ObservableUtils, OpenApiService, PROMISE_SERVICE, PaginationDirective, PaginationItemContext, PaginationItemDirective, PaginationMenuComponent, Point, PromiseService, ROOT_ELEMENT, Rect, ReducePipe, ReflectUtils, RemapPipe, ReplacePipe, ResizeEventPlugin, ResourceIfContext, ResourceIfDirective, ReversePipe, RoundPipe, SCRIPT_PARAMS, SafeHtmlPipe, ScrollEventPlugin, SetUtils, StateService, StaticAuthService, StaticLanguageService, StickyClassDirective, StickyDirective, StorageMode, StorageService, StringUtils, TOASTER_SERVICE, TimerUtils, TranslatePipe, TranslatedUrlSerializer, UniqueUtils, UniversalService, UnorderedListComponent, UnorderedListItemDirective, UnorderedListTemplateDirective, UnorederedListTemplate, ValuedPromise, ValuesPipe, Vector };
|
|
5165
5190
|
//# sourceMappingURL=stemy-ngx-utils.mjs.map
|