@colijnit/sharedcomponents 1.0.21 → 1.0.23

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 (47) hide show
  1. package/bundles/colijnit-sharedcomponents.umd.js +433 -119
  2. package/bundles/colijnit-sharedcomponents.umd.js.map +1 -1
  3. package/colijnit-sharedcomponents-1.0.23.tgz +0 -0
  4. package/colijnit-sharedcomponents.d.ts +3 -3
  5. package/colijnit-sharedcomponents.metadata.json +1 -1
  6. package/esm2015/colijnit-sharedcomponents.js +4 -4
  7. package/esm2015/lib/components/circular-gauge/co-circular-gauge.component.js +125 -0
  8. package/esm2015/lib/components/circular-gauge/co-circular-gauge.module.js +21 -0
  9. package/esm2015/lib/components/linear-gauge/co-linear-gauge.component.js +55 -0
  10. package/esm2015/lib/components/linear-gauge/co-linear-gauge.module.js +19 -0
  11. package/esm2015/lib/components/send-method-dialog/send-method-dialog.component.js +1 -18
  12. package/esm2015/lib/components/statusbar/statusbar.component.js +81 -0
  13. package/esm2015/lib/components/statusbar/statusbar.module.js +23 -0
  14. package/esm2015/lib/components/stock/stock-information-grid/stock-information-grid.component.js +7 -2
  15. package/esm2015/lib/components/stock/stock.component.js +33 -18
  16. package/esm2015/lib/components/stock/stock.module.js +2 -4
  17. package/esm2015/lib/service/shared-connector.service.js +13 -14
  18. package/esm2015/lib/service/stock.service.js +24 -22
  19. package/esm2015/public-api.js +7 -1
  20. package/fesm2015/colijnit-sharedcomponents.js +404 -92
  21. package/fesm2015/colijnit-sharedcomponents.js.map +1 -1
  22. package/lib/components/circular-gauge/co-circular-gauge.component.d.ts +20 -0
  23. package/lib/components/circular-gauge/co-circular-gauge.module.d.ts +2 -0
  24. package/lib/components/circular-gauge/style/_layout.scss +24 -0
  25. package/lib/components/circular-gauge/style/_material-definition.scss +8 -0
  26. package/lib/components/circular-gauge/style/_theme.scss +9 -0
  27. package/lib/components/circular-gauge/style/material.scss +5 -0
  28. package/lib/components/linear-gauge/co-linear-gauge.component.d.ts +16 -0
  29. package/lib/components/linear-gauge/co-linear-gauge.module.d.ts +2 -0
  30. package/lib/components/linear-gauge/style/_layout.scss +22 -0
  31. package/lib/components/linear-gauge/style/_material-definition.scss +8 -0
  32. package/lib/components/linear-gauge/style/_theme.scss +6 -0
  33. package/lib/components/linear-gauge/style/material.scss +5 -0
  34. package/lib/components/send-method-dialog/send-method-dialog.component.d.ts +0 -4
  35. package/lib/components/statusbar/statusbar.component.d.ts +23 -0
  36. package/lib/components/statusbar/statusbar.module.d.ts +2 -0
  37. package/lib/components/statusbar/style/_layout.scss +61 -0
  38. package/lib/components/statusbar/style/_material-definition.scss +23 -0
  39. package/lib/components/statusbar/style/_theme.scss +16 -0
  40. package/lib/components/statusbar/style/material.scss +6 -0
  41. package/lib/components/stock/stock.component.d.ts +10 -6
  42. package/lib/components/stock/style/_layout.scss +1 -2
  43. package/lib/components/stock/style/_material-definition.scss +1 -1
  44. package/lib/service/shared-connector.service.d.ts +1 -1
  45. package/lib/service/stock.service.d.ts +4 -2
  46. package/package.json +1 -1
  47. package/public-api.d.ts +6 -0
@@ -0,0 +1,20 @@
1
+ import { AxisModel, CircularGaugeComponent } from "@syncfusion/ej2-angular-circulargauge";
2
+ import { AnnotationModel } from "@syncfusion/ej2-circulargauge/src/circular-gauge/axes/axis-model";
3
+ export declare class CoCircularGaugeComponent {
4
+ circulargauge: CircularGaugeComponent;
5
+ set value(value: number);
6
+ get value(): number;
7
+ get color(): string;
8
+ showClass(): boolean;
9
+ private _value;
10
+ private _color;
11
+ majorTicks: Object;
12
+ minorTicks: Object;
13
+ labelStyle: Object;
14
+ lineStyle: Object;
15
+ ranges: Object[];
16
+ getAxes(): AxisModel[];
17
+ getPointers(): Object[];
18
+ getAnnotations(): AnnotationModel[];
19
+ private _setColor;
20
+ }
@@ -0,0 +1,2 @@
1
+ export declare class CoCircularGaugeModule {
2
+ }
@@ -0,0 +1,24 @@
1
+ @import "../../../style/mixin";
2
+
3
+ @include export-module('co-circular-gauge-layout') {
4
+ .co-circular-gauge {
5
+ .circular-gauge-wrapper{
6
+ width: $circular-gauge-width;
7
+ }
8
+
9
+ .circular-gauge {
10
+ display: block;
11
+ height: $circular-gauge-height;
12
+
13
+ }
14
+
15
+ .annotation {
16
+ display: flex;
17
+ justify-content: start;
18
+ font-family: $circular-gauge-annotation-font-family;
19
+ font-size: $circular-gauge-annotation-font-size;
20
+ font-weight: $circular-gauge-annotation-font-weight;
21
+ padding-top: $circular-gauge-annotation-padding-top;
22
+ }
23
+ }
24
+ }
@@ -0,0 +1,8 @@
1
+ $circular-gauge-height: 30px !default;
2
+ $circular-gauge-width: 30px !default;
3
+
4
+ $circular-gauge-annotation-font-family: $sc-font-family !default;
5
+ $circular-gauge-annotation-font-size: 8px !default;
6
+ $circular-gauge-annotation-font-weight: bold !default;
7
+ $circular-gauge-annotation-color: #525E64 !default;
8
+ $circular-gauge-annotation-padding-top: 2px !default;
@@ -0,0 +1,9 @@
1
+ @import "../../../style/mixin";
2
+
3
+ @include export-module('co-circular-gauge-theme') {
4
+ .co-circular-gauge {
5
+ .annotation {
6
+ color: $circular-gauge-annotation-color;
7
+ }
8
+ }
9
+ }
@@ -0,0 +1,5 @@
1
+ @import "./material-definition";
2
+ @import "./layout";
3
+ @import "./theme";
4
+
5
+
@@ -0,0 +1,16 @@
1
+ declare enum GaugeColor {
2
+ Low = "#E0E0E0",
3
+ Medium = "#F88952",
4
+ High = "#5FDCB3"
5
+ }
6
+ export declare class CoLinearGaugeComponent {
7
+ set value(value: number);
8
+ get value(): number;
9
+ count: number;
10
+ showClass(): boolean;
11
+ private _value;
12
+ color: GaugeColor;
13
+ getStyle(): string;
14
+ private _setColor;
15
+ }
16
+ export {};
@@ -0,0 +1,2 @@
1
+ export declare class CoLinearGaugeModule {
2
+ }
@@ -0,0 +1,22 @@
1
+ @import "../../../style/mixin";
2
+
3
+ @include export-module('co-linear-gauge-layout') {
4
+ .co-linear-gauge {
5
+ .linear-gauge {
6
+ height: $linear-gauge-height;
7
+ min-width: $linear-gauge-width;
8
+ max-width: fit-content;
9
+ margin: $linear-gauge-margin;
10
+ border: $linear-gauge-border;
11
+ border-radius: $linear-gauge-border-radius;
12
+
13
+ font-family: $linear-gauge-font-family;
14
+ font-size: $linear-gauge-font-size;
15
+ font-weight: $linear-gauge-font-weight;
16
+
17
+ display: flex;
18
+ justify-content: center;
19
+ align-items: center;
20
+ }
21
+ }
22
+ }
@@ -0,0 +1,8 @@
1
+ $linear-gauge-font-family: $sc-font-family !default;
2
+ $linear-gauge-font-size: 10px !default;
3
+ $linear-gauge-font-weight: bold !default;
4
+ $linear-gauge-height: 12px !default;
5
+ $linear-gauge-width: 12px !default;
6
+ $linear-gauge-margin: 1px !default;
7
+ $linear-gauge-border: solid 1px !default;
8
+ $linear-gauge-border-radius: 2px !default;
@@ -0,0 +1,6 @@
1
+ @import "../../../style/mixin";
2
+
3
+ @include export-module('co-linear-gauge-theme') {
4
+ .co-linear-gauge {
5
+ }
6
+ }
@@ -0,0 +1,5 @@
1
+ @import "./material-definition";
2
+ @import "./layout";
3
+ @import "./theme";
4
+
5
+
@@ -40,8 +40,6 @@ export declare class SendMethodDialogComponent implements OnDestroy {
40
40
  models: boolean[];
41
41
  layouts: any[];
42
42
  selectedLayout: 'Layout 1';
43
- set options(value: any);
44
- get options(): any;
45
43
  showDialog: boolean;
46
44
  headerTitle: string;
47
45
  printerList: Printer[];
@@ -50,8 +48,6 @@ export declare class SendMethodDialogComponent implements OnDestroy {
50
48
  printButtonClicked: EventEmitter<any>;
51
49
  showClass(): boolean;
52
50
  private _subscriptions;
53
- private _publicOptions;
54
- private _options;
55
51
  constructor(iconCacheService: IconCacheService, stockService: StockService, _optionsService: OptionsService, _dictionary: DictionaryService, _changeDetector: ChangeDetectorRef);
56
52
  ngOnDestroy(): void;
57
53
  getPrinters(): Promise<void>;
@@ -0,0 +1,23 @@
1
+ import { EventEmitter } from "@angular/core";
2
+ export interface StatusbarData {
3
+ label: string;
4
+ percentage: number;
5
+ count?: number;
6
+ totalCount?: number;
7
+ }
8
+ export declare class StatusbarComponent {
9
+ set statusbarData(value: StatusbarData[]);
10
+ get statusbarData(): StatusbarData[];
11
+ statusbarClick: EventEmitter<void>;
12
+ showClass(): boolean;
13
+ constructor();
14
+ showPopup: boolean;
15
+ popupClass: string;
16
+ private _statusbarData;
17
+ private _mouseY;
18
+ private _windowHeight;
19
+ onHover(event: any): void;
20
+ onLeave(): void;
21
+ onStatusbarClick(): void;
22
+ setPopupClass(): void;
23
+ }
@@ -0,0 +1,2 @@
1
+ export declare class StatusbarModule {
2
+ }
@@ -0,0 +1,61 @@
1
+ @import "../../../style/mixin";
2
+
3
+ @include export-module('co-statusbar-layout') {
4
+ .co-statusbar-wrapper {
5
+ display: flex;
6
+ flex-direction: column;;
7
+ position: relative;
8
+ font-family: $statusbar-font-family;
9
+ font-size:$statusbar-font-size;
10
+ height: $statusbar-height;
11
+ min-width: $statusbar-min-width;
12
+ max-width: $statusbar-max-width;
13
+
14
+ cursor: pointer;
15
+
16
+ .statuses {
17
+ display: flex;
18
+ flex-direction: row;
19
+ justify-content: center;
20
+ }
21
+
22
+ .status-description-popup{
23
+ min-height: $statusbar-popup-min-height;
24
+ min-width: $statusbar-popup-min-width;
25
+ max-width: $statusbar-popup-max-width;
26
+ padding: $statusbar-popup-padding;
27
+ border: $statusbar-popup-border;
28
+ border-radius: $statusbar-popup-border-radius;
29
+ z-index: $statusbar-popup-z-index;
30
+
31
+ &.dropdown {
32
+ position: absolute;
33
+ top: $statusbar-popup-dropdown-position-top;
34
+ left: 50%;
35
+ transform: translate(-50%, 0);
36
+ }
37
+
38
+ &.dropup {
39
+ position: absolute;
40
+ bottom: $statusbar-popup-dropup-position-down;
41
+ left: 50%;
42
+ transform: translate(-50%, 0);
43
+ }
44
+ }
45
+
46
+ .status-descriptions {
47
+ display: flex;
48
+ flex-direction: column;
49
+
50
+ .status-description {
51
+ display: flex;
52
+ flex-direction: row;
53
+ align-items: center;
54
+
55
+ span {
56
+ padding-left: $statusbar-status-description-padding-left;
57
+ }
58
+ }
59
+ }
60
+ }
61
+ }
@@ -0,0 +1,23 @@
1
+ $statusbar-font-family: $sc-font-family !default;
2
+ $statusbar-font-size: 12px !default;
3
+
4
+ $statusbar-height: 30px !default;
5
+ $statusbar-min-width: 100px !default;
6
+ $statusbar-max-width: fit-content !default;
7
+
8
+ $statusbar-background-color: white !default;
9
+
10
+ $statusbar-popup-min-height: auto !default;
11
+ $statusbar-popup-min-width: 180px !default;
12
+ $statusbar-popup-max-width: fit-content !default;
13
+ $statusbar-popup-padding: 10px !default;
14
+ $statusbar-popup-border: 2px solid !default;
15
+ $statusbar-popup-border-color: white !default;
16
+ $statusbar-popup-border-radius: 10px !default;
17
+ $statusbar-popup-border-box-shadow: 1px 1px 10px 1px #B6BFBF !default;
18
+ $statusbar-popup-z-index: 10 !default;
19
+
20
+ $statusbar-popup-dropdown-position-top: 30px;
21
+ $statusbar-popup-dropup-position-down: 35px;
22
+
23
+ $statusbar-status-description-padding-left: 15px !default;
@@ -0,0 +1,16 @@
1
+ @import "../../../style/mixin";
2
+
3
+ @include export-module('co-statusbar-theme') {
4
+ .co-statusbar-wrapper {
5
+ .statusses {
6
+ background-color: $statusbar-background-color;
7
+ }
8
+
9
+ .status-description-popup {
10
+ background-color: $statusbar-background-color;
11
+ border-color: $statusbar-popup-border-color;
12
+ box-shadow: $statusbar-popup-border-box-shadow;
13
+ }
14
+ }
15
+ }
16
+
@@ -0,0 +1,6 @@
1
+ @import "./material-definition";
2
+ @import "./layout";
3
+ @import "./theme";
4
+
5
+ @import "../../circular-gauge/style/material";
6
+ @import "../../linear-gauge/style/material";
@@ -1,4 +1,4 @@
1
- import { EventEmitter } from "@angular/core";
1
+ import { ChangeDetectorRef, EventEmitter, OnDestroy } from "@angular/core";
2
2
  import { StockService } from "../../service/stock.service";
3
3
  import { ArticleStock as ArticleStockBo } from "@colijnit/articleapi/build/model/article-stock.bo";
4
4
  import { ArticleExtended } from "@colijnit/articleapi/build/model/article-extended.bo";
@@ -6,12 +6,14 @@ import { ArticleStock } from "@colijnit/articleapi/build/model/article-stock";
6
6
  import { StockHistoryBo } from "@colijnit/articleapi/build/model/stock-history.bo";
7
7
  import { ArticleDetailsBo } from "@colijnit/articleapi/build/model/article-details.bo";
8
8
  import { OptionsService } from "../../service/options.service";
9
- export declare class StockComponent {
9
+ import { DictionaryService } from "../../service/dictionary.service";
10
+ export declare class StockComponent implements OnDestroy {
10
11
  stockService: StockService;
11
12
  private _optionsService;
13
+ private _dictionary;
14
+ private _changeDetector;
12
15
  stock: StockComponent;
13
16
  handleStickerClicked: EventEmitter<any>;
14
- set options(value: any);
15
17
  set article(article: any);
16
18
  articleWarehouse: any[];
17
19
  allWarehouses: any[];
@@ -27,12 +29,14 @@ export declare class StockComponent {
27
29
  stockHistory: StockHistoryBo[];
28
30
  allAvailableStock: number;
29
31
  allTechnicalStock: number;
30
- private _publicOptions;
31
- private _options;
32
- constructor(stockService: StockService, _optionsService: OptionsService);
32
+ private _subscriptions;
33
+ constructor(stockService: StockService, _optionsService: OptionsService, _dictionary: DictionaryService, _changeDetector: ChangeDetectorRef);
34
+ ngOnDestroy(): void;
33
35
  backToStockLinesClicked(): void;
34
36
  handleStockTransferClick(event: any): void;
35
37
  backToStock(): void;
36
38
  getStockHistory(): Promise<void>;
37
39
  getStockInformation(data: ArticleStock): Promise<void>;
40
+ private _handleSettingsLoaded;
41
+ private _initConnection;
38
42
  }
@@ -6,6 +6,7 @@
6
6
  .stock-info-container {
7
7
  max-width: $sc-stock-info-container-width;
8
8
  padding: $sc-stock-info-container-padding;
9
+ height: 70vh;
9
10
  }
10
11
 
11
12
  .stock-info {
@@ -54,7 +55,6 @@
54
55
 
55
56
  .tab-link {
56
57
  gap: 30px;
57
- padding: 20px 20px;
58
58
  &.hide {
59
59
  display: none;
60
60
  }
@@ -127,7 +127,6 @@
127
127
  .stock-button-middle-group {
128
128
  display: flex;
129
129
  flex: 1;
130
- margin-top: 10px;
131
130
  }
132
131
 
133
132
  .stock-transfer-right-column {
@@ -11,7 +11,7 @@ $sc-stock-simple-grid-row-border: none !default;
11
11
  $sc-stock-simple-grid-column-cell-padding: 10px 5px !default;
12
12
  $sc-stock-tab-link-buttons-active-color: $sc-color-action !default;
13
13
  $sc-stock-tab-link-buttons-pointer: pointer !default;
14
- $sc-stock-grid-margin: 50px 0 0 0 !default;
14
+ $sc-stock-grid-margin: 0 0 0 0 !default;
15
15
  $sc-stock-simple-grid-column-header-wrapper-border-bottom: 1px solid black !default;
16
16
  $sc-stock-info-container-width: 100% !default;
17
17
  $sc-stock-info-container-padding: 0px !default;
@@ -20,7 +20,7 @@ import { OptionsService } from "./options.service";
20
20
  import { PrintPriceStickers } from "@colijnit/sharedapi/build/model/print-price-stickers.bo";
21
21
  export declare class SharedConnectorService {
22
22
  private _optionsService;
23
- connector: Articles;
23
+ articleConnector: Articles;
24
24
  sharedConnector: Sharedapi;
25
25
  private _boFactory;
26
26
  constructor(_optionsService: OptionsService);
@@ -13,12 +13,14 @@ import { StockLocation } from "@colijnit/articleapi/build/model/stock-location.b
13
13
  import { DataServiceResponseData } from "@colijnit/articleapi/build/model/data-service-response-data";
14
14
  import { ArticleTransaction } from "@colijnit/articleapi/build/model/article-transaction";
15
15
  import { ArticleTransaction as ArticleTransactionBo } from "@colijnit/articleapi/build/model/article-transaction.bo";
16
- import { SharedService } from "./shared.service";
17
16
  import { PrintPriceStickers } from "@colijnit/sharedapi/build/model/print-price-stickers.bo";
18
- export declare class StockService extends SharedService {
17
+ import { SharedConnectorService } from "./shared-connector.service";
18
+ export declare class StockService {
19
+ private _sharedService;
19
20
  stockStickers: PrintStockStickers;
20
21
  printSticker: PrintStockStickers;
21
22
  printPriceSticker: PrintPriceStickers;
23
+ constructor(_sharedService: SharedConnectorService);
22
24
  getPrintStockStickers(data: PrintStockStickers): Promise<void>;
23
25
  getPrintPriceStickers(data: PrintPriceStickers): Promise<void>;
24
26
  getAllPrinters(showAll?: boolean): Promise<Printer[]>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@colijnit/sharedcomponents",
3
- "version": "1.0.21",
3
+ "version": "1.0.23",
4
4
  "private": false,
5
5
  "dependencies": {
6
6
  "@colijnit/sharedapi": "^1.0.1",
package/public-api.d.ts CHANGED
@@ -8,4 +8,10 @@ export * from './lib/components/key-pad/key-pad.component';
8
8
  export * from './lib/components/key-pad/key-pad.module';
9
9
  export * from './lib/components/layout-switcher/layout-switcher.component';
10
10
  export * from './lib/components/layout-switcher/layout-switcher.module';
11
+ export * from './lib/components/circular-gauge/co-circular-gauge.component';
12
+ export * from './lib/components/circular-gauge/co-circular-gauge.module';
13
+ export * from './lib/components/linear-gauge/co-linear-gauge.component';
14
+ export * from './lib/components/linear-gauge/co-linear-gauge.module';
15
+ export * from './lib/components/statusbar/statusbar.component';
16
+ export * from './lib/components/statusbar/statusbar.module';
11
17
  export * from './lib/service/shared.service';