@colijnit/sharedcomponents 255.1.19 → 255.1.21
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-sharedcomponents.umd.js +506 -676
- package/bundles/colijnit-sharedcomponents.umd.js.map +1 -1
- package/colijnit-sharedcomponents.d.ts +120 -123
- package/colijnit-sharedcomponents.metadata.json +1 -1
- package/esm2015/colijnit-sharedcomponents.js +121 -124
- package/esm2015/lib/components/activity-list/activity-list.component.js +3 -3
- package/esm2015/lib/components/activity-list-header/activity-list-header.component.js +4 -4
- package/esm2015/lib/components/activity-list-header/activity-list-header.module.js +9 -9
- package/esm2015/lib/components/activity-list-header/components/period-filter/period-filter-popup.component.js +3 -3
- package/esm2015/lib/components/activity-list-header/components/period-filter/period-filter.component.js +2 -2
- package/esm2015/lib/components/activity-list-header/components/period-filter/period-filter.module.js +9 -10
- package/esm2015/lib/components/activity-overview-component/component-activity-overview.component.js +8 -11
- package/esm2015/lib/components/activity-overview-component/component-activity-overview.module.js +8 -8
- package/esm2015/lib/components/activity-overview-component/components/base-activity-overview.component.js +3 -3
- package/esm2015/lib/components/app-file-dropzone/app-file-dropzone.component.js +3 -3
- package/esm2015/lib/components/email-selector/email-selector.module.js +9 -9
- package/esm2015/lib/components/file-upload-popup/file-upload-popup.component.js +7 -7
- package/esm2015/lib/components/file-upload-popup/file-upload-popup.module.js +8 -8
- package/esm2015/lib/components/files-upload/components/base-file-upload.component.js +3 -3
- package/esm2015/lib/components/files-upload/files-upload.component.js +5 -5
- package/esm2015/lib/components/files-upload/files-upload.module.js +14 -14
- package/esm2015/lib/components/image-display/image-display.component.js +2 -2
- package/esm2015/lib/components/image-display/image-display.module.js +7 -7
- package/esm2015/lib/components/modify-task-form/components/activity-summary-block/activity-summary-block.component.js +3 -3
- package/esm2015/lib/components/modify-task-form/components/activity-summary-block/activity-summary-block.module.js +7 -7
- package/esm2015/lib/components/modify-task-form/components/base-activity-summary.component.js +3 -3
- package/esm2015/lib/components/modify-task-form/components/creation-summary-block/creation-summary-block.component.js +7 -7
- package/esm2015/lib/components/modify-task-form/components/creation-summary-block/creation-summary-block.module.js +8 -8
- package/esm2015/lib/components/modify-task-form/components/executive-summary-block/executive-summary-block.component.js +6 -6
- package/esm2015/lib/components/modify-task-form/components/executive-summary-block/executive-summary-block.module.js +7 -7
- package/esm2015/lib/components/modify-task-form/components/notification-summary-block/notification-summary-block.component.js +3 -3
- package/esm2015/lib/components/modify-task-form/components/status-summary-block/status-summary-block.component.js +6 -6
- package/esm2015/lib/components/modify-task-form/components/status-summary-block/status-summary-block.module.js +7 -7
- package/esm2015/lib/components/modify-task-form/components/task-details/task-details.component.js +7 -7
- package/esm2015/lib/components/modify-task-form/components/task-details/task-details.module.js +7 -7
- package/esm2015/lib/components/modify-task-form/modify-task-form.component.js +7 -7
- package/esm2015/lib/components/modify-task-form/modify-task-form.module.js +15 -15
- package/esm2015/lib/components/multi-property-toggler/multiple-property-toggler.component.js +2 -2
- package/esm2015/lib/components/open-activity-list/component-activity-list.module.js +10 -10
- package/esm2015/lib/components/open-activity-list/components/personal-activity-overview/personal-activity-overview.component.js +1 -1
- package/esm2015/lib/components/role-email-selector/role-email-selector.component.js +3 -3
- package/esm2015/lib/components/role-email-selector/role-email-selector.module.js +8 -8
- package/esm2015/lib/components/stock/components/allocation-stock-history/allocation-stock-history.component.js +14 -14
- package/esm2015/lib/components/stock/components/order-commission-stock-history/order-commission-stock-history.component.js +14 -14
- package/esm2015/lib/components/stock/components/order-stock-history/order-stock-history.component.js +14 -14
- package/esm2015/lib/components/stock/components/order-stock-tab/order-stock-tab.component.js +7 -7
- package/esm2015/lib/components/stock/components/order-supply-stock-history/order-supply-stock-history.component.js +14 -14
- package/esm2015/lib/components/stock/components/order-tab/order-tab.component.js +9 -9
- package/esm2015/lib/components/stock/components/stock-history/stock-history.component.js +14 -14
- package/esm2015/lib/components/stock/components/stock-location/components/stock-location-popup/stock-location-popup.component.js +14 -14
- package/esm2015/lib/components/stock/components/stock-location/stock-location.component.js +15 -15
- package/esm2015/lib/components/stock/components/stock-prognose/stock-prognose.component.js +11 -11
- package/esm2015/lib/components/stock/components/stock-tab/stock-tab.component.js +11 -18
- package/esm2015/lib/components/stock/stock-history-tabs/stock-history-tabs.component.js +6 -6
- package/esm2015/lib/components/stock/stock-information/stock-information.component.js +6 -6
- package/esm2015/lib/components/stock/stock-information-grid/stock-information-grid.component.js +61 -61
- package/esm2015/lib/components/stock/stock-tabs/stock-tabs.component.js +26 -29
- package/esm2015/lib/components/stock/stock-transfer/stock-change-amount.component.js +5 -5
- package/esm2015/lib/components/stock/stock-transfer/stock-transfer.component.js +12 -12
- package/esm2015/lib/components/stock/stock.component.js +4 -15
- package/esm2015/lib/components/stock/stock.module.js +6 -8
- package/esm2015/lib/components/tab-bar/tab-bar.component.js +17 -23
- package/esm2015/lib/components/tab-bar/tab-bar.module.js +3 -2
- package/esm2015/lib/components/task-creator/task-creator.component.js +24 -24
- package/esm2015/lib/components/task-creator/task-creator.module.js +11 -11
- package/esm2015/lib/components/task-modifyer/task-modifier.component.js +15 -15
- package/esm2015/lib/components/task-modifyer/task-modifyer.module..js +9 -9
- package/esm2015/lib/components/workflow-info-tiles/components/workflow-info-tile.component.js +2 -2
- package/esm2015/lib/components/workflow-info-tiles/components/workflow-info-tile.module.js +6 -6
- package/esm2015/lib/components/workflow-notification-toggle/workflow-notification-toggle.component.js +2 -2
- package/esm2015/lib/components/workflow-notification-toggle/workflow-notification-toggle.module.js +9 -9
- package/esm2015/lib/res/dictionary/dictionaries.js +9 -0
- package/esm2015/lib/service/options.service.js +5 -5
- package/esm2015/lib/service/shared.service.js +5 -5
- package/esm2015/lib/translation/shared-components-dictionary.service.js +69 -0
- package/esm2015/lib/translation/shared-components-translation.module.js +15 -0
- package/esm2015/lib/translation/shared-localize.pipe.js +26 -0
- package/esm2015/lib/utils/enum-utils.js +1 -1
- package/esm2015/public-api.js +3 -2
- package/fesm2015/colijnit-sharedcomponents.js +512 -658
- package/fesm2015/colijnit-sharedcomponents.js.map +1 -1
- package/lib/components/activity-list/activity-list.component.d.ts +2 -2
- package/lib/components/activity-overview-component/component-activity-overview.component.d.ts +3 -3
- package/lib/components/activity-overview-component/components/base-activity-overview.component.d.ts +2 -2
- package/lib/components/app-file-dropzone/app-file-dropzone.component.d.ts +3 -3
- package/lib/components/files-upload/components/base-file-upload.component.d.ts +3 -3
- package/lib/components/files-upload/files-upload.component.d.ts +2 -2
- package/lib/components/modify-task-form/components/base-activity-summary.component.d.ts +3 -3
- package/lib/components/modify-task-form/components/creation-summary-block/creation-summary-block.component.d.ts +3 -3
- package/lib/components/modify-task-form/components/executive-summary-block/executive-summary-block.component.d.ts +3 -3
- package/lib/components/modify-task-form/components/notification-summary-block/notification-summary-block.component.d.ts +3 -3
- package/lib/components/modify-task-form/components/status-summary-block/status-summary-block.component.d.ts +3 -3
- package/lib/components/modify-task-form/components/task-details/task-details.component.d.ts +3 -3
- package/lib/components/stock/stock-tabs/stock-tabs.component.d.ts +17 -19
- package/lib/components/stock/stock.component.d.ts +2 -6
- package/lib/components/tab-bar/tab-bar.component.d.ts +0 -3
- package/lib/components/task-creator/task-creator.component.d.ts +17 -17
- package/lib/components/task-modifyer/task-modifier.component.d.ts +13 -13
- package/lib/res/dictionary/dictionaries.d.ts +18809 -0
- package/lib/service/options.service.d.ts +2 -2
- package/lib/service/shared.service.d.ts +3 -3
- package/lib/{service/dictionary.service.d.ts → translation/shared-components-dictionary.service.d.ts} +5 -7
- package/lib/translation/shared-components-translation.module.d.ts +2 -0
- package/lib/translation/shared-localize.pipe.d.ts +7 -0
- package/lib/utils/enum-utils.d.ts +3 -3
- package/package.json +1 -1
- package/public-api.d.ts +2 -1
- package/3rdpartylicenses.txt +0 -1405
- package/esm2015/lib/assets/dictionary/text.properties.js +0 -11
- package/esm2015/lib/components/stock/localization/translation.js +0 -78
- package/esm2015/lib/localization/localization.module.js +0 -19
- package/esm2015/lib/localization/localize.pipe.js +0 -26
- package/esm2015/lib/localization/localize.service.js +0 -30
- package/esm2015/lib/localization/translation.js +0 -3
- package/esm2015/lib/service/dictionary.service.js +0 -76
- package/favicon.ico +0 -0
- package/index.html +0 -12
- package/lib/assets/dictionary/text.properties.d.ts +0 -3
- package/lib/components/stock/localization/translation.d.ts +0 -75
- package/lib/localization/localization.module.d.ts +0 -2
- package/lib/localization/localize.pipe.d.ts +0 -7
- package/lib/localization/localize.service.d.ts +0 -7
- package/lib/localization/translation.d.ts +0 -2
- package/main.871f327ed7ea343aa7b1.js +0 -1
- package/polyfills.907fe9d1887c5de17993.js +0 -1
- package/runtime.8aac21847ed3d3829cca.js +0 -1
- package/styles.47560e51cc093de66ebe.css +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BehaviorSubject } from "rxjs";
|
|
2
|
-
import {
|
|
2
|
+
import { SharedComponentsDictionaryService } from '../translation/shared-components-dictionary.service';
|
|
3
3
|
export declare class OptionsService {
|
|
4
4
|
private _dictionary;
|
|
5
5
|
optionsInitialized: BehaviorSubject<boolean>;
|
|
@@ -7,7 +7,7 @@ export declare class OptionsService {
|
|
|
7
7
|
get options(): any;
|
|
8
8
|
optionsLoaded: BehaviorSubject<boolean>;
|
|
9
9
|
private _options;
|
|
10
|
-
constructor(_dictionary:
|
|
10
|
+
constructor(_dictionary: SharedComponentsDictionaryService);
|
|
11
11
|
createSettingsFromObject(obj: any): Promise<void>;
|
|
12
12
|
initialize(options: any): Promise<void>;
|
|
13
13
|
}
|
|
@@ -22,16 +22,16 @@ import { ReportType } from "@colijnit/mainapi/build/enum/report-type.enum";
|
|
|
22
22
|
import { LanguageCode } from "../enum/language-code.enum";
|
|
23
23
|
import { Work } from "@colijnit/mainapi/build/model/work.bo";
|
|
24
24
|
import { Remark } from "@colijnit/mainapi/build/model/remark.bo";
|
|
25
|
-
import { DictionaryService } from "./dictionary.service";
|
|
26
25
|
import { ActivityEmailHistory } from "@colijnit/mainapi/build/model/activity-email-history.bo";
|
|
27
26
|
import { ActivityWorkflow } from "@colijnit/mainapi/build/model/activity-workflow";
|
|
28
27
|
import { CoEmailAttachment } from "@colijnit/mainapi/build/model/co-email-attachment.bo";
|
|
28
|
+
import { SharedComponentsDictionaryService } from '../translation/shared-components-dictionary.service';
|
|
29
29
|
export declare class SharedService {
|
|
30
30
|
protected readonly locale: LanguageCode;
|
|
31
31
|
protected options: OptionsService;
|
|
32
32
|
protected connector: SharedConnectorService;
|
|
33
|
-
protected dictionary:
|
|
34
|
-
constructor(locale: LanguageCode, options: OptionsService, connector: SharedConnectorService, dictionary:
|
|
33
|
+
protected dictionary: SharedComponentsDictionaryService;
|
|
34
|
+
constructor(locale: LanguageCode, options: OptionsService, connector: SharedConnectorService, dictionary: SharedComponentsDictionaryService);
|
|
35
35
|
init(options: any): Promise<void>;
|
|
36
36
|
connect(): Promise<void>;
|
|
37
37
|
getAllPrinters(): Promise<Printer[]>;
|
|
@@ -1,15 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { LanguageCode } from '@colijnit/ioneconnector/build/enum/language-code.enum';
|
|
2
|
+
export declare class SharedComponentsDictionaryService {
|
|
3
3
|
get language(): string;
|
|
4
|
-
|
|
5
|
-
private _dictBasePath;
|
|
6
|
-
private _rootUrl;
|
|
4
|
+
private _dictionaryPromise;
|
|
7
5
|
private _dictionaries;
|
|
8
6
|
private _language;
|
|
9
7
|
private readonly _placeholder;
|
|
10
8
|
constructor();
|
|
11
|
-
setDictionary(language:
|
|
12
|
-
private _loadDictionary;
|
|
9
|
+
setDictionary(language: LanguageCode): Promise<void>;
|
|
13
10
|
/**
|
|
14
11
|
* Returns the localized text for the given dictionary key.
|
|
15
12
|
* @param {string} key
|
|
@@ -18,4 +15,5 @@ export declare class DictionaryService {
|
|
|
18
15
|
* @returns {string} The translated text for given dictionary key
|
|
19
16
|
*/
|
|
20
17
|
get(key: string, upperCaseFirst?: boolean, ...replacementTexts: string[]): string;
|
|
18
|
+
private _dictionaryLoaded;
|
|
21
19
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { SharedComponentsDictionaryService } from './shared-components-dictionary.service';
|
|
3
|
+
export declare class SharedLocalizePipe implements PipeTransform {
|
|
4
|
+
private _dictionaryService;
|
|
5
|
+
constructor(_dictionaryService: SharedComponentsDictionaryService);
|
|
6
|
+
transform(value: string, upperCaseFirst?: boolean, replace?: string | string[]): string;
|
|
7
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { KeyValuePair } from "../interface/key-value-pair";
|
|
2
2
|
import { CoDomainValue } from "@colijnit/mainapi/build/model/co-domain-value.bo";
|
|
3
|
-
import {
|
|
3
|
+
import { SharedComponentsDictionaryService } from '../translation/shared-components-dictionary.service';
|
|
4
4
|
export declare class EnumUtils {
|
|
5
5
|
static StringEnumToArray(clazz: any): string[];
|
|
6
6
|
/**
|
|
@@ -23,8 +23,8 @@ export declare class EnumUtils {
|
|
|
23
23
|
*/
|
|
24
24
|
static createObjectFromEnum(enumClass: any): KeyValuePair[];
|
|
25
25
|
static getStringEnumKeysArray(enumType: object): string[];
|
|
26
|
-
static buildPromiseDomainValueListFromEnumClass(enumClass: any, dictionary:
|
|
27
|
-
static buildDomainValueListFromEnumClass(enumClass: any, dictionary:
|
|
26
|
+
static buildPromiseDomainValueListFromEnumClass(enumClass: any, dictionary: SharedComponentsDictionaryService, keysAsDescription?: boolean): Promise<CoDomainValue[]>;
|
|
27
|
+
static buildDomainValueListFromEnumClass(enumClass: any, dictionary: SharedComponentsDictionaryService, keysAsDescription?: boolean): CoDomainValue[];
|
|
28
28
|
static getKeyByValue(enumType: object, enumValue: string): string;
|
|
29
29
|
private static isNumeral;
|
|
30
30
|
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -2,7 +2,6 @@ export * from './lib/components/docsign/docsign.component';
|
|
|
2
2
|
export * from './lib/components/docsign/docsign.module';
|
|
3
3
|
export * from './lib/components/stock/stock.component';
|
|
4
4
|
export * from './lib/components/stock/stock.module';
|
|
5
|
-
export * from './lib/components/stock/localization/translation';
|
|
6
5
|
export * from './lib/components/send-method-dialog/send-method-dialog.component';
|
|
7
6
|
export * from './lib/components/send-method-dialog/send-method-dialog.module';
|
|
8
7
|
export * from './lib/components/key-pad/key-pad.component';
|
|
@@ -32,6 +31,8 @@ export * from './lib/components/task-creator/task-creator.module';
|
|
|
32
31
|
export * from './lib/components/role-email-selector/role-email-selector.component';
|
|
33
32
|
export * from './lib/components/role-email-selector/role-email-selector.module';
|
|
34
33
|
export * from './lib/service/shared.service';
|
|
34
|
+
export * from './lib/translation/shared-components-translation.module';
|
|
35
|
+
export * from './lib/translation/shared-components-dictionary.service';
|
|
35
36
|
export * from './lib/enum/calendar-view.enum';
|
|
36
37
|
export * from './lib/model/agenda-event-per-day.model';
|
|
37
38
|
export * from './lib/model/agenda-event.model';
|