@colijnit/sharedcomponents 255.1.19 → 255.1.20

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.
Files changed (127) hide show
  1. package/bundles/colijnit-sharedcomponents.umd.js +506 -676
  2. package/bundles/colijnit-sharedcomponents.umd.js.map +1 -1
  3. package/colijnit-sharedcomponents.d.ts +120 -123
  4. package/colijnit-sharedcomponents.metadata.json +1 -1
  5. package/esm2015/colijnit-sharedcomponents.js +121 -124
  6. package/esm2015/lib/components/activity-list/activity-list.component.js +3 -3
  7. package/esm2015/lib/components/activity-list-header/activity-list-header.component.js +4 -4
  8. package/esm2015/lib/components/activity-list-header/activity-list-header.module.js +9 -9
  9. package/esm2015/lib/components/activity-list-header/components/period-filter/period-filter-popup.component.js +3 -3
  10. package/esm2015/lib/components/activity-list-header/components/period-filter/period-filter.component.js +2 -2
  11. package/esm2015/lib/components/activity-list-header/components/period-filter/period-filter.module.js +9 -10
  12. package/esm2015/lib/components/activity-overview-component/component-activity-overview.component.js +8 -11
  13. package/esm2015/lib/components/activity-overview-component/component-activity-overview.module.js +8 -8
  14. package/esm2015/lib/components/activity-overview-component/components/base-activity-overview.component.js +3 -3
  15. package/esm2015/lib/components/app-file-dropzone/app-file-dropzone.component.js +3 -3
  16. package/esm2015/lib/components/email-selector/email-selector.module.js +9 -9
  17. package/esm2015/lib/components/file-upload-popup/file-upload-popup.component.js +7 -7
  18. package/esm2015/lib/components/file-upload-popup/file-upload-popup.module.js +8 -8
  19. package/esm2015/lib/components/files-upload/components/base-file-upload.component.js +3 -3
  20. package/esm2015/lib/components/files-upload/files-upload.component.js +5 -5
  21. package/esm2015/lib/components/files-upload/files-upload.module.js +14 -14
  22. package/esm2015/lib/components/image-display/image-display.component.js +2 -2
  23. package/esm2015/lib/components/image-display/image-display.module.js +7 -7
  24. package/esm2015/lib/components/modify-task-form/components/activity-summary-block/activity-summary-block.component.js +3 -3
  25. package/esm2015/lib/components/modify-task-form/components/activity-summary-block/activity-summary-block.module.js +7 -7
  26. package/esm2015/lib/components/modify-task-form/components/base-activity-summary.component.js +3 -3
  27. package/esm2015/lib/components/modify-task-form/components/creation-summary-block/creation-summary-block.component.js +7 -7
  28. package/esm2015/lib/components/modify-task-form/components/creation-summary-block/creation-summary-block.module.js +8 -8
  29. package/esm2015/lib/components/modify-task-form/components/executive-summary-block/executive-summary-block.component.js +6 -6
  30. package/esm2015/lib/components/modify-task-form/components/executive-summary-block/executive-summary-block.module.js +7 -7
  31. package/esm2015/lib/components/modify-task-form/components/notification-summary-block/notification-summary-block.component.js +3 -3
  32. package/esm2015/lib/components/modify-task-form/components/status-summary-block/status-summary-block.component.js +6 -6
  33. package/esm2015/lib/components/modify-task-form/components/status-summary-block/status-summary-block.module.js +7 -7
  34. package/esm2015/lib/components/modify-task-form/components/task-details/task-details.component.js +7 -7
  35. package/esm2015/lib/components/modify-task-form/components/task-details/task-details.module.js +7 -7
  36. package/esm2015/lib/components/modify-task-form/modify-task-form.component.js +7 -7
  37. package/esm2015/lib/components/modify-task-form/modify-task-form.module.js +15 -15
  38. package/esm2015/lib/components/multi-property-toggler/multiple-property-toggler.component.js +2 -2
  39. package/esm2015/lib/components/open-activity-list/component-activity-list.module.js +10 -10
  40. package/esm2015/lib/components/open-activity-list/components/personal-activity-overview/personal-activity-overview.component.js +1 -1
  41. package/esm2015/lib/components/role-email-selector/role-email-selector.component.js +3 -3
  42. package/esm2015/lib/components/role-email-selector/role-email-selector.module.js +8 -8
  43. package/esm2015/lib/components/stock/components/allocation-stock-history/allocation-stock-history.component.js +14 -14
  44. package/esm2015/lib/components/stock/components/order-commission-stock-history/order-commission-stock-history.component.js +14 -14
  45. package/esm2015/lib/components/stock/components/order-stock-history/order-stock-history.component.js +14 -14
  46. package/esm2015/lib/components/stock/components/order-stock-tab/order-stock-tab.component.js +7 -7
  47. package/esm2015/lib/components/stock/components/order-supply-stock-history/order-supply-stock-history.component.js +14 -14
  48. package/esm2015/lib/components/stock/components/order-tab/order-tab.component.js +9 -9
  49. package/esm2015/lib/components/stock/components/stock-history/stock-history.component.js +14 -14
  50. package/esm2015/lib/components/stock/components/stock-location/components/stock-location-popup/stock-location-popup.component.js +14 -14
  51. package/esm2015/lib/components/stock/components/stock-location/stock-location.component.js +15 -15
  52. package/esm2015/lib/components/stock/components/stock-prognose/stock-prognose.component.js +11 -11
  53. package/esm2015/lib/components/stock/components/stock-tab/stock-tab.component.js +11 -18
  54. package/esm2015/lib/components/stock/stock-history-tabs/stock-history-tabs.component.js +6 -6
  55. package/esm2015/lib/components/stock/stock-information/stock-information.component.js +6 -6
  56. package/esm2015/lib/components/stock/stock-information-grid/stock-information-grid.component.js +61 -61
  57. package/esm2015/lib/components/stock/stock-tabs/stock-tabs.component.js +26 -29
  58. package/esm2015/lib/components/stock/stock-transfer/stock-change-amount.component.js +5 -5
  59. package/esm2015/lib/components/stock/stock-transfer/stock-transfer.component.js +12 -12
  60. package/esm2015/lib/components/stock/stock.component.js +4 -15
  61. package/esm2015/lib/components/stock/stock.module.js +6 -8
  62. package/esm2015/lib/components/tab-bar/tab-bar.component.js +9 -21
  63. package/esm2015/lib/components/tab-bar/tab-bar.module.js +3 -2
  64. package/esm2015/lib/components/task-creator/task-creator.component.js +24 -24
  65. package/esm2015/lib/components/task-creator/task-creator.module.js +11 -11
  66. package/esm2015/lib/components/task-modifyer/task-modifier.component.js +15 -15
  67. package/esm2015/lib/components/task-modifyer/task-modifyer.module..js +9 -9
  68. package/esm2015/lib/components/workflow-info-tiles/components/workflow-info-tile.component.js +2 -2
  69. package/esm2015/lib/components/workflow-info-tiles/components/workflow-info-tile.module.js +6 -6
  70. package/esm2015/lib/components/workflow-notification-toggle/workflow-notification-toggle.component.js +2 -2
  71. package/esm2015/lib/components/workflow-notification-toggle/workflow-notification-toggle.module.js +9 -9
  72. package/esm2015/lib/res/dictionary/dictionaries.js +9 -0
  73. package/esm2015/lib/service/options.service.js +5 -5
  74. package/esm2015/lib/service/shared.service.js +5 -5
  75. package/esm2015/lib/translation/shared-components-dictionary.service.js +69 -0
  76. package/esm2015/lib/translation/shared-components-translation.module.js +15 -0
  77. package/esm2015/lib/translation/shared-localize.pipe.js +26 -0
  78. package/esm2015/lib/utils/enum-utils.js +1 -1
  79. package/esm2015/public-api.js +3 -2
  80. package/fesm2015/colijnit-sharedcomponents.js +504 -656
  81. package/fesm2015/colijnit-sharedcomponents.js.map +1 -1
  82. package/lib/components/activity-list/activity-list.component.d.ts +2 -2
  83. package/lib/components/activity-overview-component/component-activity-overview.component.d.ts +3 -3
  84. package/lib/components/activity-overview-component/components/base-activity-overview.component.d.ts +2 -2
  85. package/lib/components/app-file-dropzone/app-file-dropzone.component.d.ts +3 -3
  86. package/lib/components/files-upload/components/base-file-upload.component.d.ts +3 -3
  87. package/lib/components/files-upload/files-upload.component.d.ts +2 -2
  88. package/lib/components/modify-task-form/components/base-activity-summary.component.d.ts +3 -3
  89. package/lib/components/modify-task-form/components/creation-summary-block/creation-summary-block.component.d.ts +3 -3
  90. package/lib/components/modify-task-form/components/executive-summary-block/executive-summary-block.component.d.ts +3 -3
  91. package/lib/components/modify-task-form/components/notification-summary-block/notification-summary-block.component.d.ts +3 -3
  92. package/lib/components/modify-task-form/components/status-summary-block/status-summary-block.component.d.ts +3 -3
  93. package/lib/components/modify-task-form/components/task-details/task-details.component.d.ts +3 -3
  94. package/lib/components/stock/stock-tabs/stock-tabs.component.d.ts +17 -19
  95. package/lib/components/stock/stock.component.d.ts +2 -6
  96. package/lib/components/tab-bar/tab-bar.component.d.ts +0 -3
  97. package/lib/components/task-creator/task-creator.component.d.ts +17 -17
  98. package/lib/components/task-modifyer/task-modifier.component.d.ts +13 -13
  99. package/lib/res/dictionary/dictionaries.d.ts +18805 -0
  100. package/lib/service/options.service.d.ts +2 -2
  101. package/lib/service/shared.service.d.ts +3 -3
  102. package/lib/{service/dictionary.service.d.ts → translation/shared-components-dictionary.service.d.ts} +5 -7
  103. package/lib/translation/shared-components-translation.module.d.ts +2 -0
  104. package/lib/translation/shared-localize.pipe.d.ts +7 -0
  105. package/lib/utils/enum-utils.d.ts +3 -3
  106. package/package.json +1 -1
  107. package/public-api.d.ts +2 -1
  108. package/3rdpartylicenses.txt +0 -1405
  109. package/esm2015/lib/assets/dictionary/text.properties.js +0 -11
  110. package/esm2015/lib/components/stock/localization/translation.js +0 -78
  111. package/esm2015/lib/localization/localization.module.js +0 -19
  112. package/esm2015/lib/localization/localize.pipe.js +0 -26
  113. package/esm2015/lib/localization/localize.service.js +0 -30
  114. package/esm2015/lib/localization/translation.js +0 -3
  115. package/esm2015/lib/service/dictionary.service.js +0 -76
  116. package/favicon.ico +0 -0
  117. package/index.html +0 -12
  118. package/lib/assets/dictionary/text.properties.d.ts +0 -3
  119. package/lib/components/stock/localization/translation.d.ts +0 -75
  120. package/lib/localization/localization.module.d.ts +0 -2
  121. package/lib/localization/localize.pipe.d.ts +0 -7
  122. package/lib/localization/localize.service.d.ts +0 -7
  123. package/lib/localization/translation.d.ts +0 -2
  124. package/main.871f327ed7ea343aa7b1.js +0 -1
  125. package/polyfills.907fe9d1887c5de17993.js +0 -1
  126. package/runtime.8aac21847ed3d3829cca.js +0 -1
  127. package/styles.47560e51cc093de66ebe.css +0 -1
@@ -1,5 +1,5 @@
1
1
  import { BehaviorSubject } from "rxjs";
2
- import { DictionaryService } from "./dictionary.service";
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: DictionaryService);
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: DictionaryService;
34
- constructor(locale: LanguageCode, options: OptionsService, connector: SharedConnectorService, dictionary: DictionaryService);
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
- export declare class DictionaryService {
2
- private readonly dictionaryUrl;
1
+ import { LanguageCode } from '@colijnit/ioneconnector/build/enum/language-code.enum';
2
+ export declare class SharedComponentsDictionaryService {
3
3
  get language(): string;
4
- set rootUrl(value: string);
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: string): Promise<void>;
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,2 @@
1
+ export declare class SharedComponentsTranslationModule {
2
+ }
@@ -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 { DictionaryService } from "../service/dictionary.service";
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: DictionaryService, keysAsDescription?: boolean): Promise<CoDomainValue[]>;
27
- static buildDomainValueListFromEnumClass(enumClass: any, dictionary: DictionaryService, keysAsDescription?: boolean): CoDomainValue[];
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@colijnit/sharedcomponents",
3
- "version": "255.1.19",
3
+ "version": "255.1.20",
4
4
  "private": false,
5
5
  "dependencies": {
6
6
  "chart.js": "4.3.0",
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';