@colijnit/corecomponents_v12 261.20.0 → 261.20.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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __decorate } from 'tslib';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
|
-
import { Input, Injectable, HostBinding, ViewEncapsulation, Component, Directive, ElementRef, Pipe, EventEmitter, Output, ViewChildren, ViewContainerRef, HostListener, ViewChild, Optional, NgModule, SkipSelf, InjectionToken, Inject, forwardRef, ChangeDetectionStrategy, ContentChildren, NO_ERRORS_SCHEMA, Injector
|
|
3
|
+
import { Input, Injectable, HostBinding, ViewEncapsulation, Component, Directive, ElementRef, Pipe, EventEmitter, Output, ViewChildren, ViewContainerRef, HostListener, ViewChild, Optional, NgModule, SkipSelf, InjectionToken, Inject, forwardRef, ChangeDetectionStrategy, ContentChildren, NO_ERRORS_SCHEMA, Injector } from '@angular/core';
|
|
4
4
|
import * as i5 from '@angular/forms';
|
|
5
5
|
import { NgModel, UntypedFormGroup, FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
6
6
|
import * as i1 from '@angular/platform-browser';
|
|
@@ -11460,6 +11460,33 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
11460
11460
|
}]
|
|
11461
11461
|
}] });
|
|
11462
11462
|
|
|
11463
|
+
class SimpleGridColumnTemplateDirective {
|
|
11464
|
+
template;
|
|
11465
|
+
type;
|
|
11466
|
+
constructor(template) {
|
|
11467
|
+
this.template = template;
|
|
11468
|
+
}
|
|
11469
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: SimpleGridColumnTemplateDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
11470
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.16", type: SimpleGridColumnTemplateDirective, isStandalone: false, selector: "[templateType]", inputs: { type: ["templateType", "type"] }, ngImport: i0 });
|
|
11471
|
+
}
|
|
11472
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: SimpleGridColumnTemplateDirective, decorators: [{
|
|
11473
|
+
type: Directive,
|
|
11474
|
+
args: [{
|
|
11475
|
+
selector: '[templateType]',
|
|
11476
|
+
standalone: false
|
|
11477
|
+
}]
|
|
11478
|
+
}], ctorParameters: () => [{ type: i0.TemplateRef }], propDecorators: { type: [{
|
|
11479
|
+
type: Input,
|
|
11480
|
+
args: ['templateType']
|
|
11481
|
+
}] } });
|
|
11482
|
+
|
|
11483
|
+
var SimpleGridColumnTemplateType;
|
|
11484
|
+
(function (SimpleGridColumnTemplateType) {
|
|
11485
|
+
SimpleGridColumnTemplateType["Header"] = "header";
|
|
11486
|
+
SimpleGridColumnTemplateType["Content"] = "content";
|
|
11487
|
+
SimpleGridColumnTemplateType["Edit"] = "edit";
|
|
11488
|
+
})(SimpleGridColumnTemplateType || (SimpleGridColumnTemplateType = {}));
|
|
11489
|
+
|
|
11463
11490
|
var ColumnAlign;
|
|
11464
11491
|
(function (ColumnAlign) {
|
|
11465
11492
|
ColumnAlign["Left"] = "left-align";
|
|
@@ -11469,27 +11496,17 @@ var ColumnAlign;
|
|
|
11469
11496
|
class SimpleGridColumnDirective {
|
|
11470
11497
|
elementRef;
|
|
11471
11498
|
static _MinManualResizeWidthPx = 50;
|
|
11472
|
-
set
|
|
11473
|
-
if (
|
|
11474
|
-
this.
|
|
11499
|
+
set templates(templates) {
|
|
11500
|
+
if (templates && templates.length) {
|
|
11501
|
+
this._templates = templates.toArray();
|
|
11475
11502
|
}
|
|
11476
11503
|
}
|
|
11477
11504
|
get headerTemplate() {
|
|
11478
11505
|
return this._headerTemplate;
|
|
11479
11506
|
}
|
|
11480
|
-
set template(template) {
|
|
11481
|
-
if (template) {
|
|
11482
|
-
this._template = template;
|
|
11483
|
-
}
|
|
11484
|
-
}
|
|
11485
11507
|
get template() {
|
|
11486
11508
|
return this._template;
|
|
11487
11509
|
}
|
|
11488
|
-
set editTemplate(template) {
|
|
11489
|
-
if (template) {
|
|
11490
|
-
this._editTemplate = template;
|
|
11491
|
-
}
|
|
11492
|
-
}
|
|
11493
11510
|
get editTemplate() {
|
|
11494
11511
|
return this._editTemplate;
|
|
11495
11512
|
}
|
|
@@ -11526,6 +11543,7 @@ class SimpleGridColumnDirective {
|
|
|
11526
11543
|
originalWidth;
|
|
11527
11544
|
widthPercentage;
|
|
11528
11545
|
_width;
|
|
11546
|
+
_templates = [];
|
|
11529
11547
|
constructor(elementRef) {
|
|
11530
11548
|
this.elementRef = elementRef;
|
|
11531
11549
|
}
|
|
@@ -11537,6 +11555,21 @@ class SimpleGridColumnDirective {
|
|
|
11537
11555
|
this._template = undefined;
|
|
11538
11556
|
this._editTemplate = undefined;
|
|
11539
11557
|
}
|
|
11558
|
+
ngAfterContentInit() {
|
|
11559
|
+
for (const t of this._templates) {
|
|
11560
|
+
switch (t.type) {
|
|
11561
|
+
case SimpleGridColumnTemplateType.Header:
|
|
11562
|
+
this._headerTemplate = t.template;
|
|
11563
|
+
break;
|
|
11564
|
+
case SimpleGridColumnTemplateType.Content:
|
|
11565
|
+
this._template = t.template;
|
|
11566
|
+
break;
|
|
11567
|
+
case SimpleGridColumnTemplateType.Edit:
|
|
11568
|
+
this._editTemplate = t.template;
|
|
11569
|
+
break;
|
|
11570
|
+
}
|
|
11571
|
+
}
|
|
11572
|
+
}
|
|
11540
11573
|
getFieldValue(value) {
|
|
11541
11574
|
if (this.collection && this.displayField) {
|
|
11542
11575
|
const result = this.collection.find(c => c[this.codeField] === value);
|
|
@@ -11557,7 +11590,7 @@ class SimpleGridColumnDirective {
|
|
|
11557
11590
|
}
|
|
11558
11591
|
}
|
|
11559
11592
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: SimpleGridColumnDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
11560
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.16", type: SimpleGridColumnDirective, isStandalone: false, selector: "co-simple-grid-column", inputs: { headerText: "headerText", field: "field", codeField: "codeField", displayField: "displayField", textAlign: "textAlign", format: "format", resizable: "resizable", required: "required", autoFit: "autoFit", isSelected: "isSelected", width: "width", readonly: "readonly", collection: "collection", order: "order", singleColumn: "singleColumn" }, queries: [{ propertyName: "
|
|
11593
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.16", type: SimpleGridColumnDirective, isStandalone: false, selector: "co-simple-grid-column", inputs: { headerText: "headerText", field: "field", codeField: "codeField", displayField: "displayField", textAlign: "textAlign", format: "format", resizable: "resizable", required: "required", autoFit: "autoFit", isSelected: "isSelected", width: "width", readonly: "readonly", collection: "collection", order: "order", singleColumn: "singleColumn" }, queries: [{ propertyName: "templates", predicate: SimpleGridColumnTemplateDirective }], ngImport: i0 });
|
|
11561
11594
|
}
|
|
11562
11595
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: SimpleGridColumnDirective, decorators: [{
|
|
11563
11596
|
type: Directive,
|
|
@@ -11565,15 +11598,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
11565
11598
|
selector: "co-simple-grid-column",
|
|
11566
11599
|
standalone: false
|
|
11567
11600
|
}]
|
|
11568
|
-
}], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: {
|
|
11569
|
-
type:
|
|
11570
|
-
args: [
|
|
11571
|
-
}], template: [{
|
|
11572
|
-
type: ContentChild,
|
|
11573
|
-
args: ['template']
|
|
11574
|
-
}], editTemplate: [{
|
|
11575
|
-
type: ContentChild,
|
|
11576
|
-
args: ['editTemplate']
|
|
11601
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { templates: [{
|
|
11602
|
+
type: ContentChildren,
|
|
11603
|
+
args: [SimpleGridColumnTemplateDirective]
|
|
11577
11604
|
}], headerText: [{
|
|
11578
11605
|
type: Input
|
|
11579
11606
|
}], field: [{
|
|
@@ -13694,7 +13721,8 @@ class SimpleGridModule {
|
|
|
13694
13721
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: SimpleGridModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
13695
13722
|
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.16", ngImport: i0, type: SimpleGridModule, declarations: [SimpleGridComponent,
|
|
13696
13723
|
SimpleGridCellComponent,
|
|
13697
|
-
SimpleGridColumnDirective
|
|
13724
|
+
SimpleGridColumnDirective,
|
|
13725
|
+
SimpleGridColumnTemplateDirective], imports: [CommonModule,
|
|
13698
13726
|
DragDropModule$1,
|
|
13699
13727
|
GridToolbarModule,
|
|
13700
13728
|
InputTextModule,
|
|
@@ -13707,7 +13735,8 @@ class SimpleGridModule {
|
|
|
13707
13735
|
CoreComponentsTranslationModule,
|
|
13708
13736
|
IconModule], exports: [SimpleGridComponent,
|
|
13709
13737
|
SimpleGridCellComponent,
|
|
13710
|
-
SimpleGridColumnDirective
|
|
13738
|
+
SimpleGridColumnDirective,
|
|
13739
|
+
SimpleGridColumnTemplateDirective] });
|
|
13711
13740
|
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: SimpleGridModule, imports: [CommonModule,
|
|
13712
13741
|
DragDropModule$1,
|
|
13713
13742
|
GridToolbarModule,
|
|
@@ -13741,12 +13770,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
13741
13770
|
declarations: [
|
|
13742
13771
|
SimpleGridComponent,
|
|
13743
13772
|
SimpleGridCellComponent,
|
|
13744
|
-
SimpleGridColumnDirective
|
|
13773
|
+
SimpleGridColumnDirective,
|
|
13774
|
+
SimpleGridColumnTemplateDirective
|
|
13745
13775
|
],
|
|
13746
13776
|
exports: [
|
|
13747
13777
|
SimpleGridComponent,
|
|
13748
13778
|
SimpleGridCellComponent,
|
|
13749
|
-
SimpleGridColumnDirective
|
|
13779
|
+
SimpleGridColumnDirective,
|
|
13780
|
+
SimpleGridColumnTemplateDirective
|
|
13750
13781
|
]
|
|
13751
13782
|
}]
|
|
13752
13783
|
}] });
|
|
@@ -20498,5 +20529,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
20498
20529
|
* Generated bundle index. Do not edit.
|
|
20499
20530
|
*/
|
|
20500
20531
|
|
|
20501
|
-
export { AlignWithDirective, AlignWithModule, AppendPipe, AppendPipeModule, ArticleTileComponent, ArticleTileModule, BaseInputComponent, BaseInputDatePickerDirective, BaseModuleScreenConfigService, BaseModuleService, ButtonComponent, ButtonModule, CalendarComponent, CalendarModule, CalendarTemplateComponent, CardComponent, CardModule, Carousel3dComponent, Carousel3dModule, CarouselComponent, CarouselHammerConfig, CarouselModule, CheckmarkOverlayComponent, CheckmarkOverlayModule, ClickOutsideDirective, ClickoutsideModule, CoCurrencyPipe, CoCurrencyPipeModule, CoDialogComponent, CoDialogModule, CoDialogWizardComponent, CoDialogWizardModule, CoDirection, CoOrientation, CollapsibleComponent, CollapsibleModule, ColorPickerComponent, ColorPickerModule, ColorSequenceService, ColumnAlign, ContentViewMode, CoreComponentsIcon, CoreComponentsTranslationModule, CoreComponentsTranslationService, CoreDialogModule, CoreDialogService, CoreLocalizePipe, DoubleCalendarComponent, DoubleCalendarModule, DragDropContainer, DragDropContainerComponent, DragDropManagerService, DragDropModule, DraggableDirective, ElementPosition, FilterItemComponent, FilterItemMode, FilterItemModule, FilterItemViewmodel, FilterPipe, FilterPipeModule, FilterViewmodel, FormComponent, FormInputUserModelChangeListenerService, FormMasterService, FormModule, GridToolbarButtonComponent, GridToolbarButtonModule, GridToolbarComponent, GridToolbarModule, HourSchedulingComponent, HourSchedulingComponentModule, HourSchedulingExpandableComponent, HourSchedulingExpandableComponentModule, HourSchedulingExpandableTemplateComponent, HourSchedulingExpandableTemplateModule, HourSchedulingTestObjectComponent, IconCacheService, IconCollapseHandleComponent, IconCollapseHandleModule, IconComponent, IconModule, ImageComponent, ImageModule, InputCheckboxComponent, InputCheckboxModule, InputDatePickerComponent, InputDatePickerModule, InputDateRangePickerComponent, InputDateRangePickerModule, InputNumberPickerComponent, InputNumberPickerModule, InputRadioButtonComponent, InputRadioButtonModule, InputScannerComponent, InputScannerModule, InputSearchComponent, InputSearchModule, InputTextComponent, InputTextModule, InputTextareaComponent, InputTextareaModule, InputTimeComponent, InputTimeModule, LevelIndicatorComponent, LevelIndicatorModule, ListOfIconsComponent, ListOfIconsModule, ListOfValuesComponent, ListOfValuesModule, ListOfValuesPopupComponent, LoaderComponent, LoaderModule, NgZoneWrapperService, ObserveVisibilityDirective, ObserveVisibilityModule, OrientationOfDirection, OverlayDirective, OverlayModule, OverlayParentDirective, OverlayService, PaginatePipe, PaginationBarComponent, PaginationBarModule, PaginationComponent, PaginationModule, PopupButtonsComponent, PopupMessageDisplayComponent, PopupModule, PopupWindowShellComponent, PrependPipe, PrependPipeModule, PriceDisplayPipe, PriceDisplayPipeModule, PromptService, ResponsiveTextComponent, ResponsiveTextModule, SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME, ScreenConfigurationDirective, ScreenConfigurationModule, ScrollContainerComponent, ScrollContainerModule, SimpleGridCellComponent, SimpleGridColumnDirective, SimpleGridComponent, SimpleGridModule, TemplateWrapperDirective, TemplateWrapperModule, TextInputPopupComponent, TileComponent, TileModule, TileSelectComponent, TileSelectModule, TooltipDirective, TooltipDirectiveModule, ViewModeButtonsComponent, ViewModeButtonsModule, emailValidator, equalValidator, getValidatePasswordErrorString, maxStringLengthValidator, passwordValidator, precisionScaleValidator, requiredValidator, showHideDialog };
|
|
20532
|
+
export { AlignWithDirective, AlignWithModule, AppendPipe, AppendPipeModule, ArticleTileComponent, ArticleTileModule, BaseInputComponent, BaseInputDatePickerDirective, BaseModuleScreenConfigService, BaseModuleService, ButtonComponent, ButtonModule, CalendarComponent, CalendarModule, CalendarTemplateComponent, CardComponent, CardModule, Carousel3dComponent, Carousel3dModule, CarouselComponent, CarouselHammerConfig, CarouselModule, CheckmarkOverlayComponent, CheckmarkOverlayModule, ClickOutsideDirective, ClickoutsideModule, CoCurrencyPipe, CoCurrencyPipeModule, CoDialogComponent, CoDialogModule, CoDialogWizardComponent, CoDialogWizardModule, CoDirection, CoOrientation, CollapsibleComponent, CollapsibleModule, ColorPickerComponent, ColorPickerModule, ColorSequenceService, ColumnAlign, ContentViewMode, CoreComponentsIcon, CoreComponentsTranslationModule, CoreComponentsTranslationService, CoreDialogModule, CoreDialogService, CoreLocalizePipe, DoubleCalendarComponent, DoubleCalendarModule, DragDropContainer, DragDropContainerComponent, DragDropManagerService, DragDropModule, DraggableDirective, ElementPosition, FilterItemComponent, FilterItemMode, FilterItemModule, FilterItemViewmodel, FilterPipe, FilterPipeModule, FilterViewmodel, FormComponent, FormInputUserModelChangeListenerService, FormMasterService, FormModule, GridToolbarButtonComponent, GridToolbarButtonModule, GridToolbarComponent, GridToolbarModule, HourSchedulingComponent, HourSchedulingComponentModule, HourSchedulingExpandableComponent, HourSchedulingExpandableComponentModule, HourSchedulingExpandableTemplateComponent, HourSchedulingExpandableTemplateModule, HourSchedulingTestObjectComponent, IconCacheService, IconCollapseHandleComponent, IconCollapseHandleModule, IconComponent, IconModule, ImageComponent, ImageModule, InputCheckboxComponent, InputCheckboxModule, InputDatePickerComponent, InputDatePickerModule, InputDateRangePickerComponent, InputDateRangePickerModule, InputNumberPickerComponent, InputNumberPickerModule, InputRadioButtonComponent, InputRadioButtonModule, InputScannerComponent, InputScannerModule, InputSearchComponent, InputSearchModule, InputTextComponent, InputTextModule, InputTextareaComponent, InputTextareaModule, InputTimeComponent, InputTimeModule, LevelIndicatorComponent, LevelIndicatorModule, ListOfIconsComponent, ListOfIconsModule, ListOfValuesComponent, ListOfValuesModule, ListOfValuesPopupComponent, LoaderComponent, LoaderModule, NgZoneWrapperService, ObserveVisibilityDirective, ObserveVisibilityModule, OrientationOfDirection, OverlayDirective, OverlayModule, OverlayParentDirective, OverlayService, PaginatePipe, PaginationBarComponent, PaginationBarModule, PaginationComponent, PaginationModule, PopupButtonsComponent, PopupMessageDisplayComponent, PopupModule, PopupWindowShellComponent, PrependPipe, PrependPipeModule, PriceDisplayPipe, PriceDisplayPipeModule, PromptService, ResponsiveTextComponent, ResponsiveTextModule, SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME, ScreenConfigurationDirective, ScreenConfigurationModule, ScrollContainerComponent, ScrollContainerModule, SimpleGridCellComponent, SimpleGridColumnDirective, SimpleGridColumnTemplateDirective, SimpleGridColumnTemplateType, SimpleGridComponent, SimpleGridModule, TemplateWrapperDirective, TemplateWrapperModule, TextInputPopupComponent, TileComponent, TileModule, TileSelectComponent, TileSelectModule, TooltipDirective, TooltipDirectiveModule, ViewModeButtonsComponent, ViewModeButtonsModule, emailValidator, equalValidator, getValidatePasswordErrorString, maxStringLengthValidator, passwordValidator, precisionScaleValidator, requiredValidator, showHideDialog };
|
|
20502
20533
|
//# sourceMappingURL=colijnit-corecomponents_v12.mjs.map
|