@colijnit/sharedcomponents 255.1.22 → 255.1.24

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 (44) hide show
  1. package/3rdpartylicenses.txt +1405 -0
  2. package/bundles/colijnit-sharedcomponents.umd.js +237 -30
  3. package/bundles/colijnit-sharedcomponents.umd.js.map +1 -1
  4. package/colijnit-sharedcomponents.metadata.json +1 -1
  5. package/esm2015/lib/components/activity-list/activity-list.component.js +11 -3
  6. package/esm2015/lib/components/activity-overview-component/component-activity-overview.component.js +9 -3
  7. package/esm2015/lib/components/files-upload/components/base-file-upload.component.js +2 -2
  8. package/esm2015/lib/components/files-upload/files-upload.component.js +1 -1
  9. package/esm2015/lib/components/open-activity-list/component-activity-list.component.js +9 -2
  10. package/esm2015/lib/components/preferred-planning/preferred-planning.component.js +210 -0
  11. package/esm2015/lib/components/preferred-planning/preferred-planning.module.js +25 -0
  12. package/esm2015/lib/components/stock/components/stock-location/components/stock-location-popup/stock-location-popup.component.js +9 -13
  13. package/esm2015/lib/components/stock/components/stock-location/stock-location.component.js +4 -5
  14. package/esm2015/lib/components/stock/stock-tabs/stock-tabs.component.js +4 -3
  15. package/esm2015/lib/components/tab-bar/tab-bar.component.js +11 -4
  16. package/esm2015/lib/components/task-creator/task-creator.component.js +69 -62
  17. package/esm2015/lib/res/dictionary/dictionaries.js +2 -2
  18. package/esm2015/lib/service/stock.service.js +2 -3
  19. package/esm2015/public-api.js +3 -1
  20. package/favicon.ico +0 -0
  21. package/fesm2015/colijnit-sharedcomponents.js +337 -85
  22. package/fesm2015/colijnit-sharedcomponents.js.map +1 -1
  23. package/index.html +12 -0
  24. package/lib/components/activity-list/activity-list.component.d.ts +10 -1
  25. package/lib/components/open-activity-list/component-activity-list.component.d.ts +10 -1
  26. package/lib/components/open-activity-list/style/_layout.scss +3 -1
  27. package/lib/components/preferred-planning/preferred-planning.component.d.ts +34 -0
  28. package/lib/components/preferred-planning/preferred-planning.module.d.ts +2 -0
  29. package/lib/components/preferred-planning/style/_layout.scss +74 -0
  30. package/lib/components/preferred-planning/style/_material-definition.scss +0 -0
  31. package/lib/components/preferred-planning/style/_theme.scss +5 -0
  32. package/lib/components/preferred-planning/style/material.scss +5 -0
  33. package/lib/components/stock/components/stock-location/components/stock-location-popup/stock-location-popup.component.d.ts +4 -6
  34. package/lib/components/tab-bar/tab-bar.component.d.ts +4 -1
  35. package/lib/components/task-creator/style/_layout.scss +3 -1
  36. package/lib/components/task-creator/task-creator.component.d.ts +10 -2
  37. package/lib/service/stock.service.d.ts +0 -2
  38. package/lib/style/sharedcomponents-globals.scss +4 -0
  39. package/main.fbdbe938084ad6fbf240.js +1 -0
  40. package/package.json +1 -1
  41. package/polyfills.907fe9d1887c5de17993.js +1 -0
  42. package/public-api.d.ts +2 -0
  43. package/runtime.8aac21847ed3d3829cca.js +1 -0
  44. package/styles.49bd98bd336b5413992f.css +1 -0
package/index.html ADDED
@@ -0,0 +1,12 @@
1
+ <!DOCTYPE html><html lang="en"><head>
2
+ <meta charset="utf-8">
3
+ <title>Sharedcomponents</title>
4
+ <base href="/">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1">
6
+ <link rel="icon" type="image/x-icon" href="favicon.ico">
7
+ <style>@charset "UTF-8";@import url(https://fonts.googleapis.com/css2?family=Public+Sans:wght@100;200;300;400;500;600;800;900&display=swap);@import url(https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;800;900&display=swap);@import url(https://fonts.googleapis.com/css2?family=Public+Sans&display=swap);body,html{margin:0;overflow:hidden}body,html{width:100%;height:100%}*{box-sizing:border-box;padding:0;margin:0}</style><link rel="stylesheet" href="styles.49bd98bd336b5413992f.css" media="print" onload="this.media='all'"><noscript><link rel="stylesheet" href="styles.49bd98bd336b5413992f.css"></noscript></head>
8
+ <body>
9
+ <app-root></app-root>
10
+ <script src="runtime.8aac21847ed3d3829cca.js" defer></script><script src="polyfills.907fe9d1887c5de17993.js" defer></script><script src="main.fbdbe938084ad6fbf240.js" defer></script>
11
+
12
+ </body></html>
@@ -8,7 +8,8 @@ import { TimeUtils } from "@colijnit/mainapi/build/utils/time-utils";
8
8
  import { RelationSmallObject } from "@colijnit/mainapi/build/model/relation-small-object.bo";
9
9
  import { CoDocument } from "@colijnit/mainapi/build/model/co-document";
10
10
  import { SharedComponentsDictionaryService } from '../../translation/shared-components-dictionary.service';
11
- export declare class ActivityListComponent implements OnInit {
11
+ import { ScreenConfigAdapterComponent } from "@colijnit/corecomponents_v12";
12
+ export declare class ActivityListComponent implements OnInit, ScreenConfigAdapterComponent {
12
13
  iconCacheService: IconCacheService;
13
14
  private _dictionaryService;
14
15
  readonly Icon: typeof Icon;
@@ -22,6 +23,14 @@ export declare class ActivityListComponent implements OnInit {
22
23
  workIcon: Icon;
23
24
  statusIcon: Icon;
24
25
  taskIcon: Icon;
26
+ objectConfigName: string;
27
+ hidden: boolean;
28
+ required: boolean;
29
+ forceReadonly: boolean;
30
+ readonly: boolean;
31
+ maxLength: number;
32
+ decimals: number;
33
+ redErrorBackground: boolean;
25
34
  showActivityPopup: Boolean;
26
35
  currentActivityDocuments: CoDocument[];
27
36
  private _activities;
@@ -10,7 +10,8 @@ import { PersonalActivityOverviewComponent } from "./components/personal-activit
10
10
  import { OperationCallbackFunctionWithValidation } from "../../interface/operation-callback-function-with-validation";
11
11
  import { SharedService } from "../../service/shared.service";
12
12
  import { TableName } from "@colijnit/mainapi/build/enum/table-name.enum";
13
- export declare class ComponentActivityListComponent extends BaseActivityListComponent implements OnDestroy {
13
+ import { ScreenConfigAdapterComponent } from "@colijnit/corecomponents_v12";
14
+ export declare class ComponentActivityListComponent extends BaseActivityListComponent implements OnDestroy, ScreenConfigAdapterComponent {
14
15
  protected sharedService: SharedService;
15
16
  readonly tabs: typeof PersonalActivityTabEnum;
16
17
  readonly icons: typeof Icon;
@@ -42,6 +43,14 @@ export declare class ComponentActivityListComponent extends BaseActivityListComp
42
43
  activeTab: PersonalActivityTabEnum;
43
44
  activityList: ActivityViewModel[];
44
45
  trackByFn(index: number, vm: ActivityViewModel): any;
46
+ objectConfigName: string;
47
+ hidden: boolean;
48
+ required: boolean;
49
+ forceReadonly: boolean;
50
+ readonly: boolean;
51
+ maxLength: number;
52
+ decimals: number;
53
+ redErrorBackground: boolean;
45
54
  private _table;
46
55
  private _key;
47
56
  private _subs;
@@ -1,6 +1,8 @@
1
1
  @include export-module('co-component-activity-list-layout') {
2
2
  .co-component-activity-list {
3
- display: flex;
3
+ &:not(.co-shared-hidden) {
4
+ display: flex;
5
+ }
4
6
  flex-direction: column;
5
7
  height: 100%;
6
8
  padding: 30px 0;
@@ -0,0 +1,34 @@
1
+ import { ChangeDetectorRef, ElementRef, EventEmitter, OnInit } from '@angular/core';
2
+ import { AgendaEventPerDay } from "../../model/agenda-event-per-day.model";
3
+ import { AgendaEvent } from "../../model/agenda-event.model";
4
+ import { IconCacheService } from "../../service/icon-cache.service";
5
+ import { Icon } from "../../enum/icon.enum";
6
+ export declare class PreferredPlanningComponent implements OnInit {
7
+ locale: string;
8
+ iconCacheService: IconCacheService;
9
+ private _changeDetector;
10
+ dayStart: ElementRef;
11
+ readonly icons: typeof Icon;
12
+ firstAvailableDate: Date;
13
+ buttonLabel: string;
14
+ headerText: string;
15
+ headerDescription: string;
16
+ disclaimerHeader: string;
17
+ disclaimerDescription: string;
18
+ loadMoreButtonText: string;
19
+ eventsPerDay: AgendaEventPerDay[];
20
+ selectedDate: Date;
21
+ readonly buttonClick: EventEmitter<MouseEvent>;
22
+ selected: EventEmitter<AgendaEventPerDay>;
23
+ showClass: boolean;
24
+ days: Date[];
25
+ events: AgendaEventPerDay[];
26
+ limit: number;
27
+ selectedOption: AgendaEvent;
28
+ moreLoadable: boolean;
29
+ checkDisabled: boolean;
30
+ constructor(locale: string, iconCacheService: IconCacheService, _changeDetector: ChangeDetectorRef);
31
+ ngOnInit(): void;
32
+ handleOptionSelect(event: boolean, selectedOption: AgendaEvent, date: Date, index: number): void;
33
+ loadMore(): void;
34
+ }
@@ -0,0 +1,2 @@
1
+ export declare class PreferredPlanningModule {
2
+ }
@@ -0,0 +1,74 @@
1
+ @include export-module('co-preferred-planning') {
2
+ .co-preferred-planning {
3
+ .planning-container {
4
+ display: flex;
5
+ min-height: 0;
6
+ margin-top: 20px;
7
+ .eventOption {
8
+ border: 1px solid #939397;
9
+ border-radius: 2px;
10
+ box-sizing: border-box;
11
+ padding: 15px;
12
+ min-width: 330px;
13
+ margin-bottom: 15px;
14
+ p {
15
+ font-weight: bold;
16
+ margin-bottom: 5px;
17
+ }
18
+ .planning-option {
19
+ margin-bottom: 10px;
20
+ }
21
+ }
22
+ .day-selected {
23
+ border: 1px solid #1A73E8;
24
+ }
25
+ .planning-disclaimer {
26
+ box-sizing: border-box;
27
+ padding-left: 20px;
28
+ h2 {
29
+ font-weight: bold;
30
+ margin-bottom: 10px;
31
+ }
32
+
33
+ .planning-disclaimer-contents {
34
+ display: flex;
35
+ justify-items: center;
36
+ align-items: center;
37
+ .disclaimer-icon {
38
+ path {
39
+ fill: #1A73E8;
40
+ }
41
+ }
42
+ }
43
+ }
44
+ }
45
+ .load-more-container {
46
+ margin: 10px 0;
47
+ }
48
+ .load-more-container p {
49
+ display: flex;
50
+ color: #1A73E8;
51
+ cursor: pointer;
52
+ align-items: center;
53
+ polygon {
54
+ fill: #1A73E8;
55
+ }
56
+ }
57
+ .load-more-container-disabled p {
58
+ color: #939397;
59
+ cursor: default;
60
+ polygon {
61
+ fill: #939397;
62
+ }
63
+
64
+ }
65
+ }
66
+ .submit-button {
67
+ cursor: pointer;
68
+ padding: 15px;
69
+ place-content: center;
70
+ background: #1A73E8;
71
+ color: #fff;
72
+ max-width: 250px;
73
+ }
74
+ }
@@ -0,0 +1,5 @@
1
+ @include export-module('co-preferred-planning') {
2
+ .co-date-planning {
3
+
4
+ }
5
+ }
@@ -0,0 +1,5 @@
1
+ @import "./material-definition";
2
+ @import "./layout";
3
+ @import "./theme";
4
+
5
+
@@ -1,4 +1,4 @@
1
- import { ChangeDetectorRef, EventEmitter, OnDestroy, OnInit } from "@angular/core";
1
+ import { ChangeDetectorRef, EventEmitter } from "@angular/core";
2
2
  import { IconCacheService } from "../../../../../../service/icon-cache.service";
3
3
  import { Icon } from "../../../../../../enum/icon.enum";
4
4
  import { StockService } from "../../../../../../service/stock.service";
@@ -8,7 +8,7 @@ import { ArticleDetailsBo } from "@colijnit/articleapi/build/model/article-detai
8
8
  import { StockStatus } from "@colijnit/articleapi/build/model/stock-status.bo";
9
9
  import { ArticleFlat } from "@colijnit/articleapi/build/model/article-flat.bo";
10
10
  import { StockLocation } from "@colijnit/articleapi/build/model/stock-location.bo";
11
- export declare class StockLocationPopupComponent implements OnInit, OnDestroy {
11
+ export declare class StockLocationPopupComponent {
12
12
  iconCacheService: IconCacheService;
13
13
  private _stockService;
14
14
  private _changeDetector;
@@ -26,17 +26,15 @@ export declare class StockLocationPopupComponent implements OnInit, OnDestroy {
26
26
  stockLocations: StockLocation[];
27
27
  stockStatus: StockStatus[];
28
28
  constructor(iconCacheService: IconCacheService, _stockService: StockService, _changeDetector: ChangeDetectorRef);
29
- ngOnInit(): void;
30
- statusForId(id: number): StockStatus;
29
+ statusForId(id: number): 0 | StockStatus;
31
30
  handleStockStatusChange(status: StockStatus): void;
32
31
  handleStockStatusRemarkChange(remark: string): void;
33
32
  amountInStockChanged(data: any): void;
34
33
  disabled(): boolean;
35
34
  handleOkClick(): void;
36
- ngOnDestroy(): void;
37
35
  togglePopup(): void;
38
36
  getStockLocations(): void;
39
- locationForNumber(number: string): StockLocation;
37
+ locationForNumber(number: string): "" | StockLocation;
40
38
  locationChanged(event: StockLocation): void;
41
39
  handleStockChange(): void;
42
40
  }
@@ -1,7 +1,9 @@
1
1
  import { EventEmitter } from "@angular/core";
2
2
  import { Tab } from "./tab.interface";
3
3
  import { StockManagementWarehouses } from "@colijnit/articleapi/build/model/stock-management-warehouses.bo";
4
+ import { StockService } from "../../service/stock.service";
4
5
  export declare class TabBarComponent {
6
+ private _stockService;
5
7
  wareHouseLabel: string;
6
8
  wareHouseSearchLabel: string;
7
9
  tabs: Tab[];
@@ -12,7 +14,8 @@ export declare class TabBarComponent {
12
14
  showWarehouseSelection: boolean;
13
15
  warehouseSelected: EventEmitter<StockManagementWarehouses>;
14
16
  selectedWarehouse: StockManagementWarehouses;
17
+ constructor(_stockService: StockService);
15
18
  selectTab(tab: Tab): void;
16
19
  selectSecondaryTab(secondaryTab: Tab): void;
17
- onSelectWarehouse(event: any): void;
20
+ onSelectWarehouse(event: StockManagementWarehouses): void;
18
21
  }
@@ -2,7 +2,9 @@
2
2
  .co-task-creator{
3
3
  width: 100%;
4
4
  position: relative;
5
- display: block;
5
+ &:not(.co-shared-hidden) {
6
+ display: block;
7
+ }
6
8
  .task-creator-wrapper {
7
9
  margin-left: 40px;
8
10
  box-shadow: 0px 2px 4px 0px #0000001A;
@@ -10,10 +10,10 @@ import { WorkflowCategoryType } from '@colijnit/mainapi/build/enum/workflow-cate
10
10
  import { CoDocument } from '@colijnit/mainapi/build/model/co-document';
11
11
  import { activityEmailRequestData } from '@colijnit/mainapi/build/model/activity-email-request-data';
12
12
  import { SharedService } from '../../service/shared.service';
13
- import { CoreDialogService, FormComponent, FormMasterService } from '@colijnit/corecomponents_v12';
13
+ import { CoreDialogService, FormComponent, FormMasterService, ScreenConfigAdapterComponent } from '@colijnit/corecomponents_v12';
14
14
  import { IconListItem } from '@colijnit/corecomponents_v12/lib/model/icon-list-item';
15
15
  import { SharedComponentsDictionaryService } from '../../translation/shared-components-dictionary.service';
16
- export declare class TaskCreatorComponent implements OnInit {
16
+ export declare class TaskCreatorComponent implements OnInit, ScreenConfigAdapterComponent {
17
17
  iconService: IconCacheService;
18
18
  dictionaryService: SharedComponentsDictionaryService;
19
19
  sharedService: SharedService;
@@ -29,6 +29,14 @@ export declare class TaskCreatorComponent implements OnInit {
29
29
  workflowCategoryType: WorkflowCategoryType;
30
30
  activityCreated: EventEmitter<void>;
31
31
  showClass(): boolean;
32
+ objectConfigName: string;
33
+ hidden: boolean;
34
+ required: boolean;
35
+ forceReadonly: boolean;
36
+ readonly: boolean;
37
+ maxLength: number;
38
+ decimals: number;
39
+ redErrorBackground: boolean;
32
40
  optionCollection: IconListItem[];
33
41
  showFilesDialog: boolean;
34
42
  documents: CoDocument[];
@@ -1,4 +1,3 @@
1
- import { EventEmitter } from "@angular/core";
2
1
  import { PrintStockStickers } from "@colijnit/sharedapi/build/model/print-stock-stickers";
3
2
  import { GetStockHistoryRequest } from "@colijnit/articleapi/build/model/get-stock-history-request";
4
3
  import { ArticleStock as ArticleStockBo } from "@colijnit/articleapi/build/model/article-stock.bo";
@@ -22,7 +21,6 @@ export declare class StockService {
22
21
  private _sharedService;
23
22
  stockStickers: PrintStockStickers;
24
23
  printLayoutParams: SendMethodParams;
25
- readonly warehouseSelected: EventEmitter<StockManagementWarehouses>;
26
24
  constructor(_sharedService: SharedConnectorService);
27
25
  getStockHistory(data: GetStockHistoryRequest): Promise<StockHistoryBo[]>;
28
26
  getStockInformation(data: ArticleStock): Promise<ArticleStockBo[]>;
@@ -7,4 +7,8 @@
7
7
 
8
8
  }
9
9
 
10
+ .co-shared-hidden {
11
+ display: none;
12
+ }
13
+
10
14
  @import "./variables";