@colijnit/corecomponents_v12 12.2.12 → 12.2.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/bundles/colijnit-corecomponents_v12.umd.js +723 -281
- package/bundles/colijnit-corecomponents_v12.umd.js.map +1 -1
- package/colijnit-corecomponents_v12.d.ts +11 -7
- package/colijnit-corecomponents_v12.metadata.json +1 -1
- package/esm2015/colijnit-corecomponents_v12.js +12 -8
- package/esm2015/lib/components/base/dialog-base.component.js +6 -0
- package/esm2015/lib/components/core-dialog/confirmation-dialog/confirmation-dialog.component.js +79 -0
- package/esm2015/lib/components/core-dialog/core-dialog.module.js +39 -0
- package/esm2015/lib/components/core-dialog/core-dialog.service.js +67 -0
- package/esm2015/lib/components/core-dialog/core-dynamic-component.service.js +93 -0
- package/esm2015/lib/components/filter-item/filter-item.component.js +145 -145
- package/esm2015/lib/components/input-scanner/bar-code-scanner.js +23 -0
- package/esm2015/lib/components/input-scanner/input-scanner.component.js +69 -0
- package/esm2015/lib/components/input-scanner/input-scanner.module.js +21 -0
- package/esm2015/lib/components/input-scanner/scanner.service.js +28 -0
- package/esm2015/lib/components/input-search/input-search.component.js +2 -1
- package/esm2015/lib/components/input-text/input-text.component.js +2 -1
- package/esm2015/lib/components/simple-grid/simple-grid-cell.component.js +37 -27
- package/esm2015/lib/components/simple-grid/simple-grid.component.js +55 -35
- package/esm2015/lib/components/simple-grid/simple-grid.module.js +4 -2
- package/esm2015/lib/components/validation-error/validation-error.component.js +6 -6
- package/esm2015/lib/core/enum/core-components-icon.enum.js +2 -1
- package/esm2015/lib/core/model/core-components-icon-svg.js +2 -1
- package/esm2015/lib/interfaces/dialog-response.interface.js +2 -0
- package/esm2015/lib/interfaces/scanner-input.interface.js +2 -0
- package/esm2015/lib/model/enum/app-button-type.enum.js +11 -0
- package/esm2015/lib/model/enum/app-popup-type.enum.js +8 -0
- package/esm2015/lib/translation/core-components-translation.module.js +6 -6
- package/esm2015/lib/translation/core-components-translation.service.js +3 -3
- package/esm2015/lib/translation/core-dictionary.service.js +29 -0
- package/esm2015/lib/translation/core-localize.pipe.js +26 -0
- package/esm2015/public-api.js +16 -11
- package/fesm2015/colijnit-corecomponents_v12.js +870 -425
- package/fesm2015/colijnit-corecomponents_v12.js.map +1 -1
- package/lib/components/base/dialog-base.component.d.ts +4 -0
- package/lib/components/core-dialog/confirmation-dialog/confirmation-dialog.component.d.ts +20 -0
- package/lib/components/core-dialog/confirmation-dialog/style/_layout.scss +30 -0
- package/lib/components/core-dialog/confirmation-dialog/style/_material-definition.scss +2 -0
- package/lib/components/core-dialog/confirmation-dialog/style/_theme.scss +6 -0
- package/lib/components/core-dialog/confirmation-dialog/style/material.scss +4 -0
- package/lib/components/core-dialog/core-dialog.module.d.ts +4 -0
- package/lib/components/core-dialog/core-dialog.service.d.ts +15 -0
- package/lib/components/core-dialog/core-dynamic-component.service.d.ts +12 -0
- package/lib/components/core-dialog/style/_layout.scss +6 -0
- package/lib/components/core-dialog/style/_material-definition.scss +0 -0
- package/lib/components/core-dialog/style/_theme.scss +6 -0
- package/lib/components/core-dialog/style/material.scss +4 -0
- package/lib/components/input-scanner/bar-code-scanner.d.ts +7 -0
- package/lib/components/input-scanner/input-scanner.component.d.ts +23 -0
- package/lib/components/input-scanner/input-scanner.module.d.ts +2 -0
- package/lib/components/input-scanner/scanner.service.d.ts +11 -0
- package/lib/components/input-scanner/style/_layout.scss +4 -0
- package/lib/components/input-scanner/style/_material-definition.scss +0 -0
- package/lib/components/input-scanner/style/_theme.scss +4 -0
- package/lib/components/input-scanner/style/material.scss +4 -0
- package/lib/components/simple-grid/simple-grid-cell.component.d.ts +4 -2
- package/lib/components/simple-grid/simple-grid.component.d.ts +5 -3
- package/lib/components/simple-grid/style/_layout.scss +30 -4
- package/lib/components/simple-grid/style/_material-definition.scss +9 -2
- package/lib/components/simple-grid/style/_theme.scss +3 -0
- package/lib/core/enum/core-components-icon.enum.d.ts +1 -0
- package/lib/interfaces/dialog-response.interface.d.ts +6 -0
- package/lib/interfaces/scanner-input.interface.d.ts +3 -0
- package/lib/model/enum/app-button-type.enum.d.ts +9 -0
- package/lib/model/enum/app-popup-type.enum.d.ts +6 -0
- package/lib/translation/core-components-translation.service.d.ts +2 -2
- package/lib/translation/{dictionary.service.d.ts → core-dictionary.service.d.ts} +1 -1
- package/lib/translation/core-localize.pipe.d.ts +7 -0
- package/package.json +1 -1
- package/public-api.d.ts +15 -10
- package/esm2015/lib/translation/dictionary.service.js +0 -29
- package/esm2015/lib/translation/localize.pipe.js +0 -26
- package/lib/translation/localize.pipe.d.ts +0 -7
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { IconCacheService } from '../../icon/icon-cache.service';
|
|
2
|
+
import { CoreComponentsIcon } from '../../../core/enum/core-components-icon.enum';
|
|
3
|
+
import { AppPopupType } from '../../../model/enum/app-popup-type.enum';
|
|
4
|
+
import { DialogBaseComponent } from '../../base/dialog-base.component';
|
|
5
|
+
export declare class ConfirmationDialogComponent extends DialogBaseComponent {
|
|
6
|
+
iconCacheService: IconCacheService;
|
|
7
|
+
readonly icons: typeof CoreComponentsIcon;
|
|
8
|
+
readonly ptype: typeof AppPopupType;
|
|
9
|
+
title: string;
|
|
10
|
+
text: string;
|
|
11
|
+
details: string;
|
|
12
|
+
type: AppPopupType;
|
|
13
|
+
showRememberCheckbox: boolean;
|
|
14
|
+
showClass(): boolean;
|
|
15
|
+
rememberChoice: boolean;
|
|
16
|
+
constructor(iconCacheService: IconCacheService);
|
|
17
|
+
handleYesClick(event: MouseEvent): void;
|
|
18
|
+
handleNoClick(event: MouseEvent): void;
|
|
19
|
+
handleOkClick(event: MouseEvent): void;
|
|
20
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
@import "../../../../style/mixin";
|
|
2
|
+
|
|
3
|
+
@include export-module('co-confirmation-dialog-layout') {
|
|
4
|
+
.co-confirmation-dialog {
|
|
5
|
+
.confirmation-dialog-wrapper {
|
|
6
|
+
font-family: $co-confirmation-dialog-font-family;
|
|
7
|
+
font-size: $co-confirmation-dialog-font-size;
|
|
8
|
+
display: flex;
|
|
9
|
+
flex-direction: column;
|
|
10
|
+
row-gap: 20px;
|
|
11
|
+
}
|
|
12
|
+
.title {
|
|
13
|
+
}
|
|
14
|
+
.button-wrapper {
|
|
15
|
+
display: flex;
|
|
16
|
+
flex-direction: row;
|
|
17
|
+
justify-content: flex-end;
|
|
18
|
+
column-gap: 5px;
|
|
19
|
+
}
|
|
20
|
+
.dialog-error-wrapper {
|
|
21
|
+
padding: 10px 0;
|
|
22
|
+
}
|
|
23
|
+
.dialog-error-collapseable-label {
|
|
24
|
+
margin-top: 20px;
|
|
25
|
+
.dialog-error-collapseable-content {
|
|
26
|
+
height: 0;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ApplicationRef, ComponentFactoryResolver, Injector } from '@angular/core';
|
|
2
|
+
import { CoreDynamicComponentService } from './core-dynamic-component.service';
|
|
3
|
+
import { DialogResponseInterface } from '../../interfaces/dialog-response.interface';
|
|
4
|
+
export declare class CoreDialogService {
|
|
5
|
+
private _compFactoryResolver;
|
|
6
|
+
private appRef;
|
|
7
|
+
private injector;
|
|
8
|
+
private dynamicComponentService;
|
|
9
|
+
private _componentRefs;
|
|
10
|
+
constructor(_compFactoryResolver: ComponentFactoryResolver, appRef: ApplicationRef, injector: Injector, dynamicComponentService: CoreDynamicComponentService);
|
|
11
|
+
showYesNo(title: string, text: string, showRememberChoice?: boolean): Promise<DialogResponseInterface>;
|
|
12
|
+
showError(message: string, details?: string): Promise<any>;
|
|
13
|
+
showInformation(message: string): Promise<any>;
|
|
14
|
+
showWarning(message: string): Promise<any>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ApplicationRef, ComponentFactoryResolver, ComponentRef, Injector, StaticProvider } from "@angular/core";
|
|
2
|
+
import { DialogResponseInterface } from '../../interfaces/dialog-response.interface';
|
|
3
|
+
export declare class CoreDynamicComponentService {
|
|
4
|
+
private _compFactoryResolver;
|
|
5
|
+
private appRef;
|
|
6
|
+
private injector;
|
|
7
|
+
private _componentRefs;
|
|
8
|
+
constructor(_compFactoryResolver: ComponentFactoryResolver, appRef: ApplicationRef, injector: Injector);
|
|
9
|
+
getComponentRefs(): ComponentRef<any>[];
|
|
10
|
+
createAndReturnComponentRef(componentClass: any, inputs?: any): Promise<any>;
|
|
11
|
+
createComponent(componentClass: any, inputs?: any, outputs?: any, providers?: StaticProvider[]): Promise<DialogResponseInterface>;
|
|
12
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { ScannerService } from './scanner.service';
|
|
3
|
+
import { ScannerInput } from '../../interfaces/scanner-input.interface';
|
|
4
|
+
import { SafeHtml } from '@angular/platform-browser';
|
|
5
|
+
export declare class InputScannerComponent implements ScannerInput {
|
|
6
|
+
private _scannerService;
|
|
7
|
+
model: string;
|
|
8
|
+
placeholder: string;
|
|
9
|
+
centerLabel: boolean;
|
|
10
|
+
useLeftIcon: boolean;
|
|
11
|
+
useRightIcon: boolean;
|
|
12
|
+
leftIconData: SafeHtml | undefined;
|
|
13
|
+
rightIconData: SafeHtml | undefined;
|
|
14
|
+
customCssClass: string;
|
|
15
|
+
modelChange: EventEmitter<string>;
|
|
16
|
+
leftIconClick: EventEmitter<MouseEvent>;
|
|
17
|
+
rightIconClick: EventEmitter<MouseEvent>;
|
|
18
|
+
search: EventEmitter<string>;
|
|
19
|
+
barCodeScanned: EventEmitter<string>;
|
|
20
|
+
showClass(): boolean;
|
|
21
|
+
constructor(_scannerService: ScannerService);
|
|
22
|
+
triggerCodeScanned(code?: string): void;
|
|
23
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { NgZone, OnDestroy } from '@angular/core';
|
|
2
|
+
import { ScannerInput } from '../../interfaces/scanner-input.interface';
|
|
3
|
+
export declare class ScannerService implements OnDestroy {
|
|
4
|
+
private _ngZone;
|
|
5
|
+
private _activeInput;
|
|
6
|
+
private barCodeScanner;
|
|
7
|
+
constructor(_ngZone: NgZone);
|
|
8
|
+
ngOnDestroy(): void;
|
|
9
|
+
registerInput(input: ScannerInput): void;
|
|
10
|
+
private _barCodeScanned;
|
|
11
|
+
}
|
|
File without changes
|
|
@@ -2,16 +2,18 @@ import { ChangeDetectorRef, EventEmitter } from '@angular/core';
|
|
|
2
2
|
import { ColumnAlign, SimpleGridColumnDirective } from "./simple-grid-column.directive";
|
|
3
3
|
export declare class SimpleGridCellComponent {
|
|
4
4
|
private _changeDetector;
|
|
5
|
+
get editMode(): boolean;
|
|
6
|
+
set editMode(value: boolean);
|
|
5
7
|
readonly defaultTextAlign: ColumnAlign;
|
|
6
8
|
set editTemplateContent(template: any);
|
|
7
9
|
set noEditTemplateContent(template: any);
|
|
8
10
|
set noTemplateContent(template: any);
|
|
9
11
|
column: SimpleGridColumnDirective;
|
|
10
12
|
row: {};
|
|
11
|
-
|
|
13
|
+
private _editMode;
|
|
12
14
|
set fieldEditMode(value: boolean);
|
|
13
15
|
get fieldEditMode(): boolean;
|
|
14
|
-
cellClick: EventEmitter<
|
|
16
|
+
cellClick: EventEmitter<MouseEvent>;
|
|
15
17
|
showClass(): boolean;
|
|
16
18
|
handleClick(event: MouseEvent): void;
|
|
17
19
|
private _fieldEditMode;
|
|
@@ -23,18 +23,19 @@ export declare class SimpleGridComponent extends BaseSimpleGridComponent {
|
|
|
23
23
|
private _doubleClicked;
|
|
24
24
|
private _newRow;
|
|
25
25
|
constructor(_changeDetection: ChangeDetectorRef, _formMaster: FormMasterService);
|
|
26
|
+
handleClickOutsideRow(): void;
|
|
26
27
|
isRowDisabled(row: any): boolean;
|
|
27
28
|
isSingleColumn(column: any): boolean;
|
|
28
29
|
rowContainsSingleColumn(row: any, columns: any): boolean;
|
|
29
|
-
addNewRow(): void
|
|
30
|
+
addNewRow(): Promise<void>;
|
|
30
31
|
validateAndSave(stopediting?: boolean): boolean;
|
|
31
32
|
cancelEditRow(): void;
|
|
32
33
|
removeRow(): void;
|
|
33
34
|
handleClickRow(event: MouseEvent, index: number, row: any): void;
|
|
34
35
|
selectTheRow(index: number, emit?: boolean): void;
|
|
35
36
|
handleDblClickRow(event: MouseEvent, index: number, row: any): void;
|
|
36
|
-
editRow(event: MouseEvent): void;
|
|
37
|
-
handleCellClick(
|
|
37
|
+
editRow(event: MouseEvent, selectCell?: boolean): void;
|
|
38
|
+
handleCellClick(event: MouseEvent, row: any, rowIndex: number, cellIndex: number): void;
|
|
38
39
|
private _resetDblClick;
|
|
39
40
|
/**
|
|
40
41
|
*
|
|
@@ -52,4 +53,5 @@ export declare class SimpleGridComponent extends BaseSimpleGridComponent {
|
|
|
52
53
|
goToNextPage(): void;
|
|
53
54
|
setCurrentPage(page: number): void;
|
|
54
55
|
private _detectChanges;
|
|
56
|
+
private _resetEdit;
|
|
55
57
|
}
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
.simple-grid-table {
|
|
21
|
+
height: 1px; // fix for 100% height of cells
|
|
21
22
|
table-layout: fixed;
|
|
22
23
|
width: 100%;
|
|
23
24
|
border-collapse: collapse;
|
|
@@ -55,10 +56,10 @@
|
|
|
55
56
|
width: 100%;
|
|
56
57
|
}
|
|
57
58
|
.simple-grid-column-cell {
|
|
58
|
-
padding: $cc-simple-grid-cell-padding;
|
|
59
|
+
//padding: $cc-simple-grid-cell-padding;
|
|
59
60
|
align-items: $cc-simple-grid-row-align-items;
|
|
60
61
|
vertical-align: $cc-simple-grid-row-vertical-align-items;
|
|
61
|
-
height: $cc-simple-grid-row-height;
|
|
62
|
+
//height: $cc-simple-grid-row-height;
|
|
62
63
|
}
|
|
63
64
|
.co-simple-grid-cell {
|
|
64
65
|
width: 100%;
|
|
@@ -75,10 +76,26 @@
|
|
|
75
76
|
}
|
|
76
77
|
}
|
|
77
78
|
.simple-grid-column-cell-value {
|
|
78
|
-
|
|
79
|
+
height: 100%;
|
|
79
80
|
width: 100%;
|
|
80
81
|
> * {
|
|
81
|
-
|
|
82
|
+
height: 100%;
|
|
83
|
+
width: 100%;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
.simple-grid-column-cell-field {
|
|
87
|
+
display: flex;
|
|
88
|
+
align-items: $cc-simple-grid-cell-field-align-items;
|
|
89
|
+
border-style: $cc-simple-grid-cell-field-border-style;
|
|
90
|
+
border-width: $cc-simple-grid-cell-field-border-width;
|
|
91
|
+
padding: $cc-simple-grid-cell-field-padding;
|
|
92
|
+
border-radius: $cc-simple-grid-cell-field-radius;
|
|
93
|
+
span {
|
|
94
|
+
white-space: normal;
|
|
95
|
+
text-overflow: ellipsis;
|
|
96
|
+
overflow: hidden;
|
|
97
|
+
}
|
|
98
|
+
.form-input {
|
|
82
99
|
width: 100%;
|
|
83
100
|
}
|
|
84
101
|
}
|
|
@@ -101,6 +118,7 @@
|
|
|
101
118
|
width: 5px;
|
|
102
119
|
}
|
|
103
120
|
.simple-grid-row {
|
|
121
|
+
height: $cc-simple-grid-row-height;
|
|
104
122
|
font-family: $cc-simple-grid-font-familiy;
|
|
105
123
|
font-size: $cc-simple-grid-font-size;
|
|
106
124
|
//display: flex;
|
|
@@ -113,6 +131,14 @@
|
|
|
113
131
|
opacity: $cc-simple-grid-row-disabled-opacity;
|
|
114
132
|
background: $cc-simple-grid-row-disabled-background-color;
|
|
115
133
|
}
|
|
134
|
+
&.editing {
|
|
135
|
+
.form-input {
|
|
136
|
+
&:before, &:hover, &:hover:before, &.cc-input-focused, &.cc-input-focused:before {
|
|
137
|
+
border: none !important; // nasty hack, fix asap
|
|
138
|
+
box-shadow: none !important; // nasty hack, fix asap
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
}
|
|
116
142
|
}
|
|
117
143
|
.right-align {
|
|
118
144
|
text-align: right;
|
|
@@ -18,7 +18,7 @@ $cc-simple-grid-row-vertical-align-items: middle !default;
|
|
|
18
18
|
$cc-simple-grid-row-background-color: $cc-color-grid-row-background !default;
|
|
19
19
|
$cc-simple-grid-row-odd-background-color: $cc-color-grid-row-odd-background !default;
|
|
20
20
|
$cc-simple-grid-row-selected-background-color: $cc-color-grid-row-selected-background !default;
|
|
21
|
-
$cc-simple-grid-row-edit-input-background-color:
|
|
21
|
+
$cc-simple-grid-row-edit-input-background-color: transparent !default;
|
|
22
22
|
$cc-simple-grid-row-hover-background-color: $cc-color-grid-row-hover-background !default;
|
|
23
23
|
$cc-simple-grid-row-hover-background-transparent: transparent !default;
|
|
24
24
|
$cc-simple-grid-row-border: none !default;
|
|
@@ -27,9 +27,16 @@ $cc-simple-grid-row-disabled-opacity: 0.5 !default;
|
|
|
27
27
|
$cc-simple-grid-row-disabled-background-color: white !default;
|
|
28
28
|
$cc-simple-grid-row-border-width: 10px 0 0 0 !default;
|
|
29
29
|
$cc-simple-grid-cell-padding: 15px 5px !default;
|
|
30
|
-
$cc-simple-grid-row-height:
|
|
30
|
+
$cc-simple-grid-row-height: 75px !default;
|
|
31
31
|
$cc-simple-grid-row-even-background: #F5F5FC !default;
|
|
32
|
+
|
|
32
33
|
$cc-simple-grid-cell-icon-size: 20px !default;
|
|
34
|
+
$cc-simple-grid-cell-field-border-style: solid !default;
|
|
35
|
+
$cc-simple-grid-cell-field-border-color: $cc-color-border !default;
|
|
36
|
+
$cc-simple-grid-cell-field-border-width: 1px !default;
|
|
37
|
+
$cc-simple-grid-cell-field-padding: 10px !default;
|
|
38
|
+
$cc-simple-grid-cell-field-radius: 5px !default;
|
|
39
|
+
$cc-simple-grid-cell-field-align-items: center !default;
|
|
33
40
|
|
|
34
41
|
$cc-simple-grid-pagination-background-color: white !default;
|
|
35
42
|
$cc-simple-grid-pagination-bar-margin: 10px 0 0 0 !default;
|
|
@@ -12,6 +12,9 @@
|
|
|
12
12
|
background-color: $cc-simple-grid-header-background-color;
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
|
+
.simple-grid-column-cell-field {
|
|
16
|
+
border-color: $cc-simple-grid-cell-field-border-color;
|
|
17
|
+
}
|
|
15
18
|
// styling outside of grid because of drag and drop functionality
|
|
16
19
|
.simple-grid-row {
|
|
17
20
|
background-color: $cc-simple-grid-row-background-color;
|
|
@@ -48,6 +48,7 @@ export declare enum CoreComponentsIcon {
|
|
|
48
48
|
CashRegisterSimple = "cash_register_simple",
|
|
49
49
|
ChangeLocation = "change_location",
|
|
50
50
|
Check = "check",
|
|
51
|
+
CheckDuotone = "check_duotone",
|
|
51
52
|
CheckRound = "check_round",
|
|
52
53
|
CheckRoundOpen = "check_round_open",
|
|
53
54
|
CheckSimple = "check_simple",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CoreDictionaryService } from './core-dictionary.service';
|
|
2
2
|
export declare class CoreComponentsTranslationService {
|
|
3
3
|
private _dictionaryService;
|
|
4
|
-
constructor(_dictionaryService:
|
|
4
|
+
constructor(_dictionaryService: CoreDictionaryService);
|
|
5
5
|
setTranslation(translation: {}): void;
|
|
6
6
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { CoreDictionaryService } from './core-dictionary.service';
|
|
3
|
+
export declare class CoreLocalizePipe implements PipeTransform {
|
|
4
|
+
private _dictionaryService;
|
|
5
|
+
constructor(_dictionaryService: CoreDictionaryService);
|
|
6
|
+
transform(value: string, upperCaseFirst?: boolean, replace?: string | string[]): string;
|
|
7
|
+
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -77,7 +77,20 @@ export * from './lib/components/list-of-values/list-of-values.module';
|
|
|
77
77
|
export * from './lib/components/responsive-text/responsive-text.component';
|
|
78
78
|
export * from './lib/components/responsive-text/responsive-text.module';
|
|
79
79
|
export * from './lib/components/color-picker/color-picker.component';
|
|
80
|
-
export * from './lib/components
|
|
80
|
+
export * from './lib/components/color-picker/color-picker.module';
|
|
81
|
+
export * from './lib/components/core-dialog/core-dialog.module';
|
|
82
|
+
export * from './lib/components/core-dialog/core-dialog.service';
|
|
83
|
+
export * from './lib/components/filter-item/filter-item.component';
|
|
84
|
+
export * from './lib/components/filter-item/filter-item.module';
|
|
85
|
+
export * from './lib/components/pagination/pagination.component';
|
|
86
|
+
export * from './lib/components/pagination/pagination.module';
|
|
87
|
+
export * from './lib/components/pagination-bar/pagination-bar.component';
|
|
88
|
+
export * from './lib/components/pagination-bar/pagination-bar.module';
|
|
89
|
+
export * from './lib/components/checkmark-overlay/checkmark-overlay.module';
|
|
90
|
+
export * from './lib/components/filter-item/filter-item-viewmodel';
|
|
91
|
+
export * from './lib/components/filter-item/filter-viewmodel';
|
|
92
|
+
export * from './lib/components/input-scanner/input-scanner.component';
|
|
93
|
+
export * from './lib/components/input-scanner/input-scanner.module';
|
|
81
94
|
export * from './lib/pipes/price-display.pipe';
|
|
82
95
|
export * from './lib/pipes/price-display-pipe.module';
|
|
83
96
|
export * from './lib/pipes/filter.pipe';
|
|
@@ -90,23 +103,15 @@ export * from './lib/core/validator/precision-scale.validator';
|
|
|
90
103
|
export * from './lib/core/validator/max-string-length.validator';
|
|
91
104
|
export * from "./lib/core/service/form-input-user-change-listener.service";
|
|
92
105
|
export * from "./lib/core/service/ng-zone-wrapper.service";
|
|
93
|
-
export * from './lib/components/filter-item/filter-item.component';
|
|
94
|
-
export * from './lib/components/filter-item/filter-item.module';
|
|
95
106
|
export * from './lib/directives/clickoutside/clickoutside.module';
|
|
96
107
|
export * from './lib/directives/observe-visibility/observe-visibility.module';
|
|
97
108
|
export * from './lib/directives/overlay/overlay.module';
|
|
98
109
|
export * from './lib/directives/tooltip/tooltip-directive.module';
|
|
99
|
-
export * from './lib/components/pagination/pagination.component';
|
|
100
|
-
export * from './lib/components/pagination/pagination.module';
|
|
101
|
-
export * from './lib/components/pagination-bar/pagination-bar.component';
|
|
102
|
-
export * from './lib/components/pagination-bar/pagination-bar.module';
|
|
103
|
-
export * from './lib/components/checkmark-overlay/checkmark-overlay.module';
|
|
104
110
|
export * from './lib/directives/screen-configuration/screen-configuration.module';
|
|
105
111
|
export * from './lib/directives/screen-configuration/screen-configuration.directive';
|
|
106
112
|
export * from './lib/interfaces/screen-config-adapter-component-interface-name';
|
|
107
113
|
export * from './lib/interfaces/screen-config-adapter.component.interface';
|
|
108
|
-
export * from './lib/
|
|
109
|
-
export * from './lib/components/filter-item/filter-viewmodel';
|
|
114
|
+
export * from './lib/interfaces/dialog-response.interface';
|
|
110
115
|
export * from './lib/service/color-sequence.service';
|
|
111
116
|
export * from './lib/service/overlay.service';
|
|
112
117
|
export * from './lib/service/base-module-screen-config.service';
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { Injectable } from "@angular/core";
|
|
2
|
-
// The localization service, providing peers with text translation functionality.
|
|
3
|
-
export class DictionaryService {
|
|
4
|
-
constructor() {
|
|
5
|
-
// Some dictionary values have one or more '|~' texts in them, meant to be replaced with client-side given texts.
|
|
6
|
-
this._placeholder = "|~";
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* Returns the localized text for the given dictionary key.
|
|
10
|
-
* @param {string} key
|
|
11
|
-
* @param {boolean} [upperCaseFirst = true] False for first letter lowercase, true for first letter uppercase for returned dict val
|
|
12
|
-
* @param {string[]} replacementTexts Rest params for replacement of '|~' in returned dict value
|
|
13
|
-
* @returns {string} The translated text for given dictionary key
|
|
14
|
-
*/
|
|
15
|
-
get(key, upperCaseFirst = true, ...replacementTexts) {
|
|
16
|
-
let text = key;
|
|
17
|
-
if (this.translation && this.translation.hasOwnProperty(key)) {
|
|
18
|
-
text = this.translation[key].toLowerCase();
|
|
19
|
-
if (upperCaseFirst) {
|
|
20
|
-
text = text.charAt(0).toUpperCase() + text.slice(1);
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
return text;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
DictionaryService.decorators = [
|
|
27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dmVuIGRpY3Rpb25hcnkga2V5XHJcbiAgICAgKi9cclxuICAgIHB1YmxpYyBnZXQoa2V5OiBzdHJpbmcsIHVwcGVyQ2FzZUZpcnN0OiBib29sZWFuID0gdHJ1ZSwgLi4ucmVwbGFjZW1lbnRUZXh0czogc3RyaW5nW10pOiBzdHJpbmcge1xyXG4gICAgICAgIGxldCB0ZXh0OiBzdHJpbmcgPSBrZXk7XHJcbiAgICAgICAgaWYgKHRoaXMudHJhbnNsYXRpb24gJiYgdGhpcy50cmFuc2xhdGlvbi5oYXNPd25Qcm9wZXJ0eShrZXkpKSB7XHJcbiAgICAgICAgICAgIHRleHQgPSB0aGlzLnRyYW5zbGF0aW9uW2tleV0udG9Mb3dlckNhc2UoKTtcclxuICAgICAgICAgICAgaWYgKHVwcGVyQ2FzZUZpcnN0KSB7XHJcbiAgICAgICAgICAgICAgICB0ZXh0ID0gdGV4dC5jaGFyQXQoMCkudG9VcHBlckNhc2UoKSArIHRleHQuc2xpY2UoMSk7XHJcbiAgICAgICAgICAgIH1cclxuICAgICAgICB9XHJcbiAgICAgICAgcmV0dXJuIHRleHQ7XHJcbiAgICB9XHJcbn1cclxuIl19
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { Pipe } from '@angular/core';
|
|
2
|
-
import { DictionaryService } from './dictionary.service';
|
|
3
|
-
export class LocalizePipe {
|
|
4
|
-
constructor(_dictionaryService) {
|
|
5
|
-
this._dictionaryService = _dictionaryService;
|
|
6
|
-
}
|
|
7
|
-
transform(value, upperCaseFirst = true, replace = []) {
|
|
8
|
-
if (!value) {
|
|
9
|
-
return "";
|
|
10
|
-
}
|
|
11
|
-
replace = (replace !== undefined && replace !== null) ? replace : [];
|
|
12
|
-
if (!Array.isArray(replace)) {
|
|
13
|
-
replace = [replace];
|
|
14
|
-
}
|
|
15
|
-
return this._dictionaryService.get(value, upperCaseFirst, ...replace);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
LocalizePipe.decorators = [
|
|
19
|
-
{ type: Pipe, args: [{
|
|
20
|
-
name: "localize"
|
|
21
|
-
},] }
|
|
22
|
-
];
|
|
23
|
-
LocalizePipe.ctorParameters = () => [
|
|
24
|
-
{ type: DictionaryService }
|
|
25
|
-
];
|
|
26
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibG9jYWxpemUucGlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NvcmVjb21wb25lbnRzL3NyYy9saWIvdHJhbnNsYXRpb24vbG9jYWxpemUucGlwZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUMsSUFBSSxFQUFnQixNQUFNLGVBQWUsQ0FBQztBQUNsRCxPQUFPLEVBQUMsaUJBQWlCLEVBQUMsTUFBTSxzQkFBc0IsQ0FBQztBQUt2RCxNQUFNLE9BQU8sWUFBWTtJQUVyQixZQUFvQixrQkFBcUM7UUFBckMsdUJBQWtCLEdBQWxCLGtCQUFrQixDQUFtQjtJQUFHLENBQUM7SUFFN0QsU0FBUyxDQUFDLEtBQWEsRUFBRSxpQkFBMEIsSUFBSSxFQUFFLFVBQTJCLEVBQUU7UUFDbEYsSUFBSSxDQUFDLEtBQUssRUFBRTtZQUNSLE9BQU8sRUFBRSxDQUFDO1NBQ2I7UUFDRCxPQUFPLEdBQUcsQ0FBQyxPQUFPLEtBQUssU0FBUyxJQUFJLE9BQU8sS0FBSyxJQUFJLENBQUMsQ0FBQyxDQUFDLENBQUMsT0FBTyxDQUFDLENBQUMsQ0FBQyxFQUFFLENBQUM7UUFDckUsSUFBSSxDQUFDLEtBQUssQ0FBQyxPQUFPLENBQUMsT0FBTyxDQUFDLEVBQUU7WUFDekIsT0FBTyxHQUFHLENBQUMsT0FBTyxDQUFDLENBQUM7U0FDdkI7UUFDRCxPQUFPLElBQUksQ0FBQyxrQkFBa0IsQ0FB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h2YWx1ZSwgdXBwZXJDYXNlRmlyc3QsIC4uLnJlcGxhY2UpO1xyXG4gICAgfVxyXG59XHJcbiJdfQ==
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import { DictionaryService } from './dictionary.service';
|
|
3
|
-
export declare class LocalizePipe implements PipeTransform {
|
|
4
|
-
private _dictionaryService;
|
|
5
|
-
constructor(_dictionaryService: DictionaryService);
|
|
6
|
-
transform(value: string, upperCaseFirst?: boolean, replace?: string | string[]): string;
|
|
7
|
-
}
|