@colijnit/sharedcomponents 1.0.40 → 1.0.41
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/README.md +24 -24
- package/bundles/colijnit-sharedcomponents.umd.js +132 -102
- package/bundles/colijnit-sharedcomponents.umd.js.map +1 -1
- package/colijnit-sharedcomponents.d.ts +44 -43
- package/colijnit-sharedcomponents.metadata.json +1 -1
- package/esm2015/colijnit-sharedcomponents.js +45 -44
- package/esm2015/lib/components/statusbar/statusbar-popup.component.js +29 -0
- package/esm2015/lib/components/statusbar/statusbar.component.js +33 -34
- package/esm2015/lib/components/statusbar/statusbar.module.js +14 -10
- package/esm2015/lib/enum/icon.enum.js +1 -1
- package/esm2015/lib/model/icon-svg.js +1 -1
- package/fesm2015/colijnit-sharedcomponents.js +65 -37
- package/fesm2015/colijnit-sharedcomponents.js.map +1 -1
- package/lib/components/screen-config-generator/style/_layout.scss +65 -0
- package/lib/components/screen-config-generator/style/_material-definition.scss +0 -0
- package/lib/components/screen-config-generator/style/_theme.scss +4 -0
- package/lib/components/screen-config-generator/style/material.scss +4 -0
- package/lib/components/statusbar/statusbar-popup.component.d.ts +7 -0
- package/lib/components/statusbar/statusbar.component.d.ts +9 -8
- package/lib/components/statusbar/style/_layout.scss +12 -28
- package/lib/components/statusbar/style/_theme.scss +5 -6
- package/package.json +14 -10
|
@@ -23,7 +23,7 @@ import { BusinessObjectFactory } from '@colijnit/ioneconnector/build/factory/bus
|
|
|
23
23
|
import { SendMethod as SendMethod$1 } from '@colijnit/mainapi/build/model/send-method.bo';
|
|
24
24
|
import { PrintStockStickers } from '@colijnit/sharedapi/build/model/print-stock-stickers';
|
|
25
25
|
import { ArticleStock as ArticleStock$1 } from '@colijnit/articleapi/build/model/article-stock';
|
|
26
|
-
import { InputCheckboxModule, IconModule, CoDialogModule, ButtonModule, ClickoutsideModule, InputComboBoxModule, CoGridModule, InputRadioButtonModule, DropDownModule, SimpleGridModule, ImageModule, InputTextModule, InputNumberPickerModule, CoDialogWizardModule, InputTextareaModule, InputDatePickerModule } from '@colijnit/corecomponents_v12';
|
|
26
|
+
import { InputCheckboxModule, IconModule, CoDialogModule, ButtonModule, OverlayService, ClickoutsideModule, OverlayModule, InputComboBoxModule, CoGridModule, InputRadioButtonModule, DropDownModule, SimpleGridModule, ImageModule, InputTextModule, InputNumberPickerModule, CoDialogWizardModule, InputTextareaModule, InputDatePickerModule } from '@colijnit/corecomponents_v12';
|
|
27
27
|
import * as i1 from '@angular/platform-browser';
|
|
28
28
|
import { DomSanitizer } from '@angular/platform-browser';
|
|
29
29
|
import { ArticleStockManagement } from '@colijnit/articleapi/build/model/article-stock-management';
|
|
@@ -3603,11 +3603,40 @@ CoLinearGaugeModule.decorators = [
|
|
|
3603
3603
|
},] }
|
|
3604
3604
|
];
|
|
3605
3605
|
|
|
3606
|
-
class
|
|
3606
|
+
class StatusbarPopupComponent {
|
|
3607
3607
|
constructor() {
|
|
3608
|
+
this.statusbarData = [];
|
|
3609
|
+
this.showClass = true;
|
|
3610
|
+
}
|
|
3611
|
+
}
|
|
3612
|
+
StatusbarPopupComponent.decorators = [
|
|
3613
|
+
{ type: Component, args: [{
|
|
3614
|
+
selector: "co-statusbar-popup",
|
|
3615
|
+
template: `
|
|
3616
|
+
<div class="co-statusbar-popup-wrapper" [overlay]="parentForOverlay">
|
|
3617
|
+
<div class="status-descriptions">
|
|
3618
|
+
<div *ngFor="let data of statusbarData; let index = index" class="status-description">
|
|
3619
|
+
<co-circular-gauge [value]="data.percentage"></co-circular-gauge>
|
|
3620
|
+
<span [textContent]="data.label"></span>
|
|
3621
|
+
</div>
|
|
3622
|
+
</div>
|
|
3623
|
+
</div>
|
|
3624
|
+
`,
|
|
3625
|
+
encapsulation: ViewEncapsulation.None
|
|
3626
|
+
},] }
|
|
3627
|
+
];
|
|
3628
|
+
StatusbarPopupComponent.propDecorators = {
|
|
3629
|
+
statusbarData: [{ type: Input }],
|
|
3630
|
+
parentForOverlay: [{ type: Input }],
|
|
3631
|
+
showClass: [{ type: HostBinding, args: ["class.co-statusbar-popup",] }]
|
|
3632
|
+
};
|
|
3633
|
+
|
|
3634
|
+
class StatusbarComponent {
|
|
3635
|
+
constructor(_elementRef, _overlayService) {
|
|
3636
|
+
this._elementRef = _elementRef;
|
|
3637
|
+
this._overlayService = _overlayService;
|
|
3608
3638
|
this.statusbarClick = new EventEmitter();
|
|
3609
|
-
this.
|
|
3610
|
-
this.popupClass = 'dropdown';
|
|
3639
|
+
this.popupShowing = false;
|
|
3611
3640
|
}
|
|
3612
3641
|
set statusbarData(value) {
|
|
3613
3642
|
this._statusbarData = value;
|
|
@@ -3619,23 +3648,21 @@ class StatusbarComponent {
|
|
|
3619
3648
|
showClass() {
|
|
3620
3649
|
return true;
|
|
3621
3650
|
}
|
|
3622
|
-
|
|
3623
|
-
this.
|
|
3624
|
-
if (this.showPopup) {
|
|
3625
|
-
this._mouseY = event.screenY;
|
|
3626
|
-
this._windowHeight = window.innerHeight;
|
|
3627
|
-
this.setPopupClass();
|
|
3628
|
-
}
|
|
3651
|
+
handleClick(event) {
|
|
3652
|
+
this.handleShowPopup(event);
|
|
3629
3653
|
}
|
|
3630
|
-
|
|
3631
|
-
|
|
3632
|
-
|
|
3633
|
-
if (dropdownInScreen) {
|
|
3634
|
-
this.popupClass = 'dropdown';
|
|
3635
|
-
}
|
|
3636
|
-
else {
|
|
3637
|
-
this.popupClass = 'dropup';
|
|
3654
|
+
handleShowPopup(event) {
|
|
3655
|
+
if (this.popupShowing) {
|
|
3656
|
+
return;
|
|
3638
3657
|
}
|
|
3658
|
+
event.preventDefault();
|
|
3659
|
+
event.stopPropagation();
|
|
3660
|
+
this._overlayService.createComponent(StatusbarPopupComponent, { parentForOverlay: this._elementRef, statusbarData: this.statusbarData });
|
|
3661
|
+
this.popupShowing = true;
|
|
3662
|
+
}
|
|
3663
|
+
handleHidePopup() {
|
|
3664
|
+
this._overlayService.removeComponent();
|
|
3665
|
+
this.popupShowing = false;
|
|
3639
3666
|
}
|
|
3640
3667
|
adjustTooHighPercentages() {
|
|
3641
3668
|
this._statusbarData.forEach(data => data.percentage > 100 ? data.percentage = 100 : false);
|
|
@@ -3645,25 +3672,19 @@ StatusbarComponent.decorators = [
|
|
|
3645
3672
|
{ type: Component, args: [{
|
|
3646
3673
|
selector: "co-statusbar",
|
|
3647
3674
|
template: `
|
|
3648
|
-
<div class="co-statusbar-wrapper"
|
|
3649
|
-
|
|
3650
|
-
(click)="onStatusbarClick($event)">
|
|
3675
|
+
<div class="co-statusbar-wrapper" *ngIf="statusbarData" [clickOutside]="popupShowing"
|
|
3676
|
+
(clickOutside)="handleHidePopup()">
|
|
3651
3677
|
<div class="statuses">
|
|
3652
3678
|
<div *ngFor="let data of statusbarData; let index = index" class="status">
|
|
3653
3679
|
<co-linear-gauge [class.focused-status]="focusedStatusIndex !== undefined && focusedStatusIndex === index"
|
|
3654
|
-
|
|
3655
|
-
</div>
|
|
3656
|
-
</div>
|
|
3657
|
-
<div class=status-description-popup *ngIf="showPopup" @showHidePopup [ngClass]="popupClass" clickOutside (clickOutside)="showPopup=false">
|
|
3658
|
-
<div class="status-descriptions">
|
|
3659
|
-
<div *ngFor="let data of statusbarData; let index = index" class="status-description">
|
|
3660
|
-
<co-circular-gauge [value]="data.percentage"></co-circular-gauge>
|
|
3661
|
-
<span [textContent]="data.label"></span>
|
|
3662
|
-
</div>
|
|
3680
|
+
[value]="data.percentage" [count]="data.count ? data.count : undefined"></co-linear-gauge>
|
|
3663
3681
|
</div>
|
|
3664
3682
|
</div>
|
|
3665
3683
|
</div>
|
|
3666
3684
|
`,
|
|
3685
|
+
providers: [
|
|
3686
|
+
OverlayService
|
|
3687
|
+
],
|
|
3667
3688
|
animations: [
|
|
3668
3689
|
trigger("showHidePopup", [
|
|
3669
3690
|
state("void", style({ opacity: 0 })),
|
|
@@ -3674,12 +3695,16 @@ StatusbarComponent.decorators = [
|
|
|
3674
3695
|
encapsulation: ViewEncapsulation.None
|
|
3675
3696
|
},] }
|
|
3676
3697
|
];
|
|
3677
|
-
StatusbarComponent.ctorParameters = () => [
|
|
3698
|
+
StatusbarComponent.ctorParameters = () => [
|
|
3699
|
+
{ type: ElementRef },
|
|
3700
|
+
{ type: OverlayService }
|
|
3701
|
+
];
|
|
3678
3702
|
StatusbarComponent.propDecorators = {
|
|
3679
3703
|
statusbarData: [{ type: Input }],
|
|
3680
3704
|
focusedStatusIndex: [{ type: Input }],
|
|
3681
3705
|
statusbarClick: [{ type: Output }],
|
|
3682
|
-
showClass: [{ type: HostBinding, args: ["class.co-statusbar",] }]
|
|
3706
|
+
showClass: [{ type: HostBinding, args: ["class.co-statusbar",] }],
|
|
3707
|
+
handleClick: [{ type: HostListener, args: ["click", ["$event"],] }]
|
|
3683
3708
|
};
|
|
3684
3709
|
|
|
3685
3710
|
class StatusbarModule {
|
|
@@ -3690,13 +3715,16 @@ StatusbarModule.decorators = [
|
|
|
3690
3715
|
CommonModule,
|
|
3691
3716
|
CoCircularGaugeModule,
|
|
3692
3717
|
CoLinearGaugeModule,
|
|
3693
|
-
ClickoutsideModule
|
|
3718
|
+
ClickoutsideModule,
|
|
3719
|
+
OverlayModule
|
|
3694
3720
|
],
|
|
3695
3721
|
declarations: [
|
|
3696
|
-
StatusbarComponent
|
|
3722
|
+
StatusbarComponent,
|
|
3723
|
+
StatusbarPopupComponent
|
|
3697
3724
|
],
|
|
3698
3725
|
exports: [
|
|
3699
|
-
StatusbarComponent
|
|
3726
|
+
StatusbarComponent,
|
|
3727
|
+
StatusbarPopupComponent
|
|
3700
3728
|
]
|
|
3701
3729
|
},] }
|
|
3702
3730
|
];
|
|
@@ -6030,5 +6058,5 @@ DatePlanningModule.decorators = [
|
|
|
6030
6058
|
* Generated bundle index. Do not edit.
|
|
6031
6059
|
*/
|
|
6032
6060
|
|
|
6033
|
-
export { CoCircularGaugeComponent, CoCircularGaugeModule, CoLinearGaugeComponent, CoLinearGaugeModule, DatePlanningComponent, DatePlanningModule, DocsignComponent, DocsignModule, KeyPadComponent, KeyPadModule, LayoutSwitcherComponent, LayoutSwitcherModule, SendMethodDialogComponent, SendMethodDialogModule, SharedService, StatusbarComponent, StatusbarModule, StockComponent, StockModule, sendMethodsWithIcon, SignatureComponent as ɵa, SignaturesComponent as ɵb,
|
|
6061
|
+
export { CoCircularGaugeComponent, CoCircularGaugeModule, CoLinearGaugeComponent, CoLinearGaugeModule, DatePlanningComponent, DatePlanningModule, DocsignComponent, DocsignModule, KeyPadComponent, KeyPadModule, LayoutSwitcherComponent, LayoutSwitcherModule, SendMethodDialogComponent, SendMethodDialogModule, SharedService, StatusbarComponent, StatusbarModule, StockComponent, StockModule, sendMethodsWithIcon, SignatureComponent as ɵa, SignaturesComponent as ɵb, OrderTabComponent as ɵba, StockTabsComponent as ɵbb, StockHistoryTabsComponent as ɵbc, OrderStockTabComponent as ɵbd, StockLocationComponent as ɵbe, StockHistoryComponent as ɵbf, OrderSupplyStockHistoryComponent as ɵbg, OrderCommissionStockHistoryComponent as ɵbh, OrderStockHistoryComponent as ɵbi, AllocationStockHistoryComponent as ɵbj, SendMethod as ɵbk, Icon as ɵbl, CalendarAllYearsComponent as ɵbm, CalendarAllMonthsComponent as ɵbn, CalendarHeaderComponent as ɵbo, CalendarComponent as ɵbp, CalendarViewComponent as ɵbq, LanguageCode as ɵbr, AgendaHeaderComponent as ɵbs, AgendaViewComponent as ɵbt, AgendaMonthViewComponent as ɵbu, AgendaBaseViewComponent as ɵbv, AgendaDayViewComponent as ɵbw, AgendaWeekViewComponent as ɵbx, AgendaWeekSelectViewComponent as ɵby, AgendaHourViewComponent as ɵbz, StockService as ɵc, AgendaHourCellComponent as ɵca, AgendaHourViewLabelsComponent as ɵcb, AgendaHalfHourCellComponent as ɵcc, AgendaEventsComponent as ɵcd, AgendaEventComponent as ɵce, ViewSelectComponent as ɵcf, AgendaSelectEventComponent as ɵcg, MASTER_PIPES as ɵch, ArrayNumberPipe as ɵci, UCfirstPipe as ɵcj, SharedConnectorService as ɵd, OptionsService as ɵe, DictionaryService as ɵf, IconCacheService as ɵg, SendMethodService as ɵh, SendMethodEmailModule as ɵi, LayoutSelectionModule as ɵj, LayoutSelectionComponent as ɵk, SendMethodEmailComponent as ɵl, SendMethodPrinterModule as ɵm, PrinterSelectionModule as ɵn, PrinterSelectionComponent as ɵo, SendMethodPrinterComponent as ɵp, TabBarModule as ɵq, TabBarComponent as ɵr, StatusbarPopupComponent as ɵs, StockStatusbarModule as ɵt, StockStatusbarComponent as ɵu, StockInformationComponent as ɵv, StockInformationGridComponent as ɵw, StockTransferComponent as ɵx, StockChangeAmountComponent as ɵy, StockTabComponent as ɵz };
|
|
6034
6062
|
//# sourceMappingURL=colijnit-sharedcomponents.js.map
|