@stemy/ngx-utils 13.6.6 → 13.6.7
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/esm2020/ngx-utils/common-types.mjs +2 -5
- package/esm2020/ngx-utils/components/unordered-list/unordered-list.component.mjs +1 -1
- package/esm2020/ngx-utils/directives/unordered-list-item.directive.mjs +4 -2
- package/esm2020/ngx-utils/directives/unordered-list-template.directive.mjs +7 -13
- package/esm2020/public_api.mjs +2 -2
- package/fesm2015/stemy-ngx-utils.mjs +11 -16
- package/fesm2015/stemy-ngx-utils.mjs.map +1 -1
- package/fesm2020/stemy-ngx-utils.mjs +10 -16
- package/fesm2020/stemy-ngx-utils.mjs.map +1 -1
- package/ngx-utils/common-types.d.ts +4 -3
- package/ngx-utils/components/unordered-list/unordered-list.component.d.ts +2 -2
- package/ngx-utils/directives/unordered-list-item.directive.d.ts +2 -2
- package/ngx-utils/directives/unordered-list-template.directive.d.ts +5 -7
- package/package.json +1 -1
- package/public_api.d.ts +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { InjectionToken,
|
|
2
|
+
import { InjectionToken, PLATFORM_ID, Injectable, Inject, Optional, Injector, EventEmitter, isDevMode, ErrorHandler, NgZone, Pipe, Directive, Input, Output, HostBinding, HostListener, Component, ContentChildren, ViewChild, ContentChild, APP_INITIALIZER, NgModule } from '@angular/core';
|
|
3
3
|
import 'reflect-metadata';
|
|
4
4
|
import moment from 'moment';
|
|
5
5
|
import { first, skipWhile, mergeMap, timeout, map } from 'rxjs/operators';
|
|
@@ -391,9 +391,6 @@ var StorageMode;
|
|
|
391
391
|
const TOASTER_SERVICE = new InjectionToken("toaster-service");
|
|
392
392
|
const PROMISE_SERVICE = new InjectionToken("promise-service");
|
|
393
393
|
const WASI_IMPLEMENTATION = new InjectionToken("wasi-implementation");
|
|
394
|
-
// --- Unordered list ---
|
|
395
|
-
class UnorederedListTemplate extends TemplateRef {
|
|
396
|
-
}
|
|
397
394
|
// --- Reflect utils ---
|
|
398
395
|
function FactoryDependencies(...dependencies) {
|
|
399
396
|
return function (target, method) {
|
|
@@ -4941,7 +4938,9 @@ class UnorderedListItemDirective {
|
|
|
4941
4938
|
this.valueIsObject = ObjectUtils.isObject(this.item.value);
|
|
4942
4939
|
this.valueType = ObjectUtils.getType(this.item.value);
|
|
4943
4940
|
const context = this;
|
|
4944
|
-
const template = this
|
|
4941
|
+
const template = this
|
|
4942
|
+
.templates
|
|
4943
|
+
.find(t => t.type == this.type && ObjectUtils.evaluate(t.selector, context))?.templateRef || this.defaultTemplates[this.type];
|
|
4945
4944
|
// Set view
|
|
4946
4945
|
this.viewContainer.clear();
|
|
4947
4946
|
this.viewContainer.createEmbeddedView(template, context);
|
|
@@ -4993,24 +4992,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImpor
|
|
|
4993
4992
|
type: Input
|
|
4994
4993
|
}] } });
|
|
4995
4994
|
|
|
4996
|
-
class UnorderedListTemplateDirective
|
|
4997
|
-
constructor(
|
|
4998
|
-
super();
|
|
4999
|
-
this.elementRef = elementRef;
|
|
4995
|
+
class UnorderedListTemplateDirective {
|
|
4996
|
+
constructor(templateRef) {
|
|
5000
4997
|
this.templateRef = templateRef;
|
|
5001
4998
|
}
|
|
5002
|
-
createEmbeddedView(context) {
|
|
5003
|
-
return this.templateRef.createEmbeddedView(context);
|
|
5004
|
-
}
|
|
5005
4999
|
}
|
|
5006
|
-
UnorderedListTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: UnorderedListTemplateDirective, deps: [{ token: i0.
|
|
5007
|
-
UnorderedListTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.4.0", type: UnorderedListTemplateDirective, selector: "ng-template[type][selector]", inputs: { type: "type", selector: "selector" },
|
|
5000
|
+
UnorderedListTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: UnorderedListTemplateDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
5001
|
+
UnorderedListTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.4.0", type: UnorderedListTemplateDirective, selector: "ng-template[type][selector]", inputs: { type: "type", selector: "selector" }, ngImport: i0 });
|
|
5008
5002
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: UnorderedListTemplateDirective, decorators: [{
|
|
5009
5003
|
type: Directive,
|
|
5010
5004
|
args: [{
|
|
5011
5005
|
selector: "ng-template[type][selector]"
|
|
5012
5006
|
}]
|
|
5013
|
-
}], ctorParameters: function () { return [{ type: i0.
|
|
5007
|
+
}], ctorParameters: function () { return [{ type: i0.TemplateRef }]; }, propDecorators: { type: [{
|
|
5014
5008
|
type: Input
|
|
5015
5009
|
}], selector: [{
|
|
5016
5010
|
type: Input
|
|
@@ -5756,5 +5750,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImpor
|
|
|
5756
5750
|
* Generated bundle index. Do not edit.
|
|
5757
5751
|
*/
|
|
5758
5752
|
|
|
5759
|
-
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, JSONfn, JoinPipe, KeysPipe, LANGUAGE_SERVICE, LanguageService, LoaderUtils, LocalHttpService, MapPipe, MathUtils, MaxPipe, MinPipe, NgxTemplateOutletDirective, NgxUtilsModule, ObjectType, ObjectUtils, ObservableUtils, OpenApiService, PROMISE_SERVICE, PaginationDirective, PaginationItemContext, PaginationItemDirective, PaginationMenuComponent, Point, PopPipe, PromiseService, RESIZE_DELAY, RESIZE_STRATEGY, ROOT_ELEMENT, Rect, ReducePipe, ReflectUtils, RemapPipe, ReplacePipe, ResizeEventPlugin, ResourceIfContext, ResourceIfDirective, ReversePipe, RoundPipe, SCRIPT_PARAMS, SafeHtmlPipe, ScrollEventPlugin, SetUtils, ShiftPipe, SplitPipe, StateService, StaticAuthService, StaticLanguageService, StickyClassDirective, StickyDirective, StorageMode, StorageService, StringUtils, TOASTER_SERVICE, TimerUtils, TranslatePipe, TranslatedUrlSerializer, UniqueUtils, UniversalService, UnorderedListComponent, UnorderedListItemDirective, UnorderedListTemplateDirective,
|
|
5753
|
+
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, JSONfn, JoinPipe, KeysPipe, LANGUAGE_SERVICE, LanguageService, LoaderUtils, LocalHttpService, MapPipe, MathUtils, MaxPipe, MinPipe, NgxTemplateOutletDirective, NgxUtilsModule, ObjectType, ObjectUtils, ObservableUtils, OpenApiService, PROMISE_SERVICE, PaginationDirective, PaginationItemContext, PaginationItemDirective, PaginationMenuComponent, Point, PopPipe, PromiseService, RESIZE_DELAY, RESIZE_STRATEGY, ROOT_ELEMENT, Rect, ReducePipe, ReflectUtils, RemapPipe, ReplacePipe, ResizeEventPlugin, ResourceIfContext, ResourceIfDirective, ReversePipe, RoundPipe, SCRIPT_PARAMS, SafeHtmlPipe, ScrollEventPlugin, SetUtils, ShiftPipe, SplitPipe, StateService, StaticAuthService, StaticLanguageService, StickyClassDirective, StickyDirective, StorageMode, StorageService, StringUtils, TOASTER_SERVICE, TimerUtils, TranslatePipe, TranslatedUrlSerializer, UniqueUtils, UniversalService, UnorderedListComponent, UnorderedListItemDirective, UnorderedListTemplateDirective, ValuedPromise, ValuesPipe, Vector, WASI_IMPLEMENTATION, WasmService };
|
|
5760
5754
|
//# sourceMappingURL=stemy-ngx-utils.mjs.map
|