@colijnit/sharedcomponents 1.0.22 → 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.
- package/bundles/colijnit-sharedcomponents.umd.js +312 -6
- package/bundles/colijnit-sharedcomponents.umd.js.map +1 -1
- package/colijnit-sharedcomponents-1.0.23.tgz +0 -0
- package/colijnit-sharedcomponents.metadata.json +1 -1
- package/esm2015/lib/components/circular-gauge/co-circular-gauge.component.js +125 -0
- package/esm2015/lib/components/circular-gauge/co-circular-gauge.module.js +21 -0
- package/esm2015/lib/components/linear-gauge/co-linear-gauge.component.js +55 -0
- package/esm2015/lib/components/linear-gauge/co-linear-gauge.module.js +19 -0
- package/esm2015/lib/components/statusbar/statusbar.component.js +81 -0
- package/esm2015/lib/components/statusbar/statusbar.module.js +23 -0
- package/esm2015/lib/service/shared-connector.service.js +1 -3
- package/esm2015/public-api.js +7 -1
- package/fesm2015/colijnit-sharedcomponents.js +310 -3
- package/fesm2015/colijnit-sharedcomponents.js.map +1 -1
- package/lib/components/circular-gauge/co-circular-gauge.component.d.ts +20 -0
- package/lib/components/circular-gauge/co-circular-gauge.module.d.ts +2 -0
- package/lib/components/circular-gauge/style/_layout.scss +24 -0
- package/lib/components/circular-gauge/style/_material-definition.scss +8 -0
- package/lib/components/circular-gauge/style/_theme.scss +9 -0
- package/lib/components/circular-gauge/style/material.scss +5 -0
- package/lib/components/linear-gauge/co-linear-gauge.component.d.ts +16 -0
- package/lib/components/linear-gauge/co-linear-gauge.module.d.ts +2 -0
- package/lib/components/linear-gauge/style/_layout.scss +22 -0
- package/lib/components/linear-gauge/style/_material-definition.scss +8 -0
- package/lib/components/linear-gauge/style/_theme.scss +6 -0
- package/lib/components/linear-gauge/style/material.scss +5 -0
- package/lib/components/statusbar/statusbar.component.d.ts +23 -0
- package/lib/components/statusbar/statusbar.module.d.ts +2 -0
- package/lib/components/statusbar/style/_layout.scss +61 -0
- package/lib/components/statusbar/style/_material-definition.scss +23 -0
- package/lib/components/statusbar/style/_theme.scss +16 -0
- package/lib/components/statusbar/style/material.scss +6 -0
- package/package.json +1 -1
- package/public-api.d.ts +6 -0
|
@@ -41,6 +41,7 @@ import * as i1 from '@angular/platform-browser';
|
|
|
41
41
|
import { DomSanitizer } from '@angular/platform-browser';
|
|
42
42
|
import { ArticleStockManagement } from '@colijnit/articleapi/build/model/article-stock-management';
|
|
43
43
|
import { ArticleTransaction as ArticleTransaction$1 } from '@colijnit/articleapi/build/model/article-transaction';
|
|
44
|
+
import { CircularGaugeModule } from '@syncfusion/ej2-angular-circulargauge';
|
|
44
45
|
|
|
45
46
|
class DocsignComponent {
|
|
46
47
|
constructor() {
|
|
@@ -1278,8 +1279,6 @@ class SharedConnectorService {
|
|
|
1278
1279
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1279
1280
|
this.articleConnector = new Articles(this._optionsService.options);
|
|
1280
1281
|
this.sharedConnector = new Sharedapi(this._optionsService.options);
|
|
1281
|
-
console.log(this.articleConnector);
|
|
1282
|
-
console.log(this.sharedConnector);
|
|
1283
1282
|
});
|
|
1284
1283
|
}
|
|
1285
1284
|
getAllPrinters(showAll = true) {
|
|
@@ -3169,6 +3168,314 @@ LayoutSwitcherModule.decorators = [
|
|
|
3169
3168
|
},] }
|
|
3170
3169
|
];
|
|
3171
3170
|
|
|
3171
|
+
var GaugeColor$1;
|
|
3172
|
+
(function (GaugeColor) {
|
|
3173
|
+
GaugeColor["Low"] = "#E0E0E0";
|
|
3174
|
+
GaugeColor["Medium"] = "#F88952";
|
|
3175
|
+
GaugeColor["High"] = "#5FDCB3";
|
|
3176
|
+
})(GaugeColor$1 || (GaugeColor$1 = {}));
|
|
3177
|
+
class CoCircularGaugeComponent {
|
|
3178
|
+
constructor() {
|
|
3179
|
+
this._color = GaugeColor$1.Low;
|
|
3180
|
+
this.majorTicks = {
|
|
3181
|
+
height: 0,
|
|
3182
|
+
};
|
|
3183
|
+
this.minorTicks = {
|
|
3184
|
+
height: 0
|
|
3185
|
+
};
|
|
3186
|
+
this.labelStyle = {
|
|
3187
|
+
position: 'Inside', useRangeColor: true,
|
|
3188
|
+
font: { size: '0px', fontFamily: 'inherit' }
|
|
3189
|
+
};
|
|
3190
|
+
this.lineStyle = {
|
|
3191
|
+
width: 0
|
|
3192
|
+
};
|
|
3193
|
+
this.ranges = [
|
|
3194
|
+
{
|
|
3195
|
+
start: 1, end: 100,
|
|
3196
|
+
radius: '13px',
|
|
3197
|
+
startWidth: 3, endWidth: 3,
|
|
3198
|
+
color: '#E0E0E0',
|
|
3199
|
+
roundedCornerRadius: 0
|
|
3200
|
+
},
|
|
3201
|
+
];
|
|
3202
|
+
}
|
|
3203
|
+
set value(value) {
|
|
3204
|
+
this._value = value;
|
|
3205
|
+
this._setColor();
|
|
3206
|
+
}
|
|
3207
|
+
get value() {
|
|
3208
|
+
return this._value;
|
|
3209
|
+
}
|
|
3210
|
+
get color() {
|
|
3211
|
+
return this._color;
|
|
3212
|
+
}
|
|
3213
|
+
showClass() {
|
|
3214
|
+
return true;
|
|
3215
|
+
}
|
|
3216
|
+
getAxes() {
|
|
3217
|
+
return [{
|
|
3218
|
+
minimum: 0,
|
|
3219
|
+
maximum: 100,
|
|
3220
|
+
radius: '15px',
|
|
3221
|
+
startAngle: 1,
|
|
3222
|
+
endAngle: 360,
|
|
3223
|
+
majorTicks: this.majorTicks,
|
|
3224
|
+
minorTicks: this.minorTicks,
|
|
3225
|
+
labelStyle: this.labelStyle,
|
|
3226
|
+
lineStyle: this.lineStyle,
|
|
3227
|
+
ranges: this.ranges,
|
|
3228
|
+
pointers: this.getPointers(),
|
|
3229
|
+
annotations: this.getAnnotations(),
|
|
3230
|
+
}];
|
|
3231
|
+
}
|
|
3232
|
+
getPointers() {
|
|
3233
|
+
if (this.value) {
|
|
3234
|
+
return [{
|
|
3235
|
+
roundedCornerRadius: 0,
|
|
3236
|
+
value: this.value,
|
|
3237
|
+
type: 'RangeBar',
|
|
3238
|
+
radius: '13px',
|
|
3239
|
+
color: this.color,
|
|
3240
|
+
border: {
|
|
3241
|
+
width: 0
|
|
3242
|
+
},
|
|
3243
|
+
animation: {
|
|
3244
|
+
enable: false
|
|
3245
|
+
},
|
|
3246
|
+
pointerWidth: 3
|
|
3247
|
+
}];
|
|
3248
|
+
}
|
|
3249
|
+
}
|
|
3250
|
+
;
|
|
3251
|
+
getAnnotations() {
|
|
3252
|
+
if (this.value) {
|
|
3253
|
+
return [{
|
|
3254
|
+
content: '<div class="annotation">' +
|
|
3255
|
+
this.value + '%</div>',
|
|
3256
|
+
angle: 90,
|
|
3257
|
+
radius: '50%',
|
|
3258
|
+
zIndex: '10',
|
|
3259
|
+
}];
|
|
3260
|
+
}
|
|
3261
|
+
}
|
|
3262
|
+
_setColor() {
|
|
3263
|
+
if (this.value == 0) {
|
|
3264
|
+
this._color = GaugeColor$1.Low;
|
|
3265
|
+
}
|
|
3266
|
+
else if (this.value >= 0 && this.value < 100) {
|
|
3267
|
+
this._color = GaugeColor$1.Medium;
|
|
3268
|
+
}
|
|
3269
|
+
else if (this.value == 100) {
|
|
3270
|
+
this._color = GaugeColor$1.High;
|
|
3271
|
+
}
|
|
3272
|
+
}
|
|
3273
|
+
}
|
|
3274
|
+
CoCircularGaugeComponent.decorators = [
|
|
3275
|
+
{ type: Component, args: [{
|
|
3276
|
+
selector: "co-circular-gauge",
|
|
3277
|
+
template: `
|
|
3278
|
+
<div class="circular-gauge-wrapper">
|
|
3279
|
+
<ejs-circulargauge
|
|
3280
|
+
class="circular-gauge"
|
|
3281
|
+
[width]="'100%'"
|
|
3282
|
+
[axes]="getAxes()">
|
|
3283
|
+
</ejs-circulargauge>
|
|
3284
|
+
</div>
|
|
3285
|
+
`,
|
|
3286
|
+
encapsulation: ViewEncapsulation.None
|
|
3287
|
+
},] }
|
|
3288
|
+
];
|
|
3289
|
+
CoCircularGaugeComponent.propDecorators = {
|
|
3290
|
+
circulargauge: [{ type: ViewChild, args: ['circulargauge',] }],
|
|
3291
|
+
value: [{ type: Input }],
|
|
3292
|
+
showClass: [{ type: HostBinding, args: ["class.co-circular-gauge",] }]
|
|
3293
|
+
};
|
|
3294
|
+
|
|
3295
|
+
class CoCircularGaugeModule {
|
|
3296
|
+
}
|
|
3297
|
+
CoCircularGaugeModule.decorators = [
|
|
3298
|
+
{ type: NgModule, args: [{
|
|
3299
|
+
imports: [
|
|
3300
|
+
CommonModule,
|
|
3301
|
+
CircularGaugeModule
|
|
3302
|
+
],
|
|
3303
|
+
declarations: [
|
|
3304
|
+
CoCircularGaugeComponent
|
|
3305
|
+
],
|
|
3306
|
+
exports: [
|
|
3307
|
+
CoCircularGaugeComponent
|
|
3308
|
+
]
|
|
3309
|
+
},] }
|
|
3310
|
+
];
|
|
3311
|
+
|
|
3312
|
+
var GaugeColor;
|
|
3313
|
+
(function (GaugeColor) {
|
|
3314
|
+
GaugeColor["Low"] = "#E0E0E0";
|
|
3315
|
+
GaugeColor["Medium"] = "#F88952";
|
|
3316
|
+
GaugeColor["High"] = "#5FDCB3";
|
|
3317
|
+
})(GaugeColor || (GaugeColor = {}));
|
|
3318
|
+
class CoLinearGaugeComponent {
|
|
3319
|
+
constructor() {
|
|
3320
|
+
this.color = GaugeColor.Low;
|
|
3321
|
+
}
|
|
3322
|
+
set value(value) {
|
|
3323
|
+
this._value = value;
|
|
3324
|
+
this._setColor();
|
|
3325
|
+
}
|
|
3326
|
+
get value() {
|
|
3327
|
+
return this._value;
|
|
3328
|
+
}
|
|
3329
|
+
showClass() {
|
|
3330
|
+
return true;
|
|
3331
|
+
}
|
|
3332
|
+
getStyle() {
|
|
3333
|
+
return `linear-gradient(90deg, ${this.color} 0 ${this.value}%, white ${this.value}% 100%`;
|
|
3334
|
+
}
|
|
3335
|
+
_setColor() {
|
|
3336
|
+
if (this.value == 0) {
|
|
3337
|
+
this.color = GaugeColor.Low;
|
|
3338
|
+
}
|
|
3339
|
+
else if (this.value >= 0 && this.value < 100) {
|
|
3340
|
+
this.color = GaugeColor.Medium;
|
|
3341
|
+
}
|
|
3342
|
+
else if (this.value == 100) {
|
|
3343
|
+
this.color = GaugeColor.High;
|
|
3344
|
+
}
|
|
3345
|
+
}
|
|
3346
|
+
}
|
|
3347
|
+
CoLinearGaugeComponent.decorators = [
|
|
3348
|
+
{ type: Component, args: [{
|
|
3349
|
+
selector: "co-linear-gauge",
|
|
3350
|
+
template: `
|
|
3351
|
+
<div class="linear-gauge"
|
|
3352
|
+
[style.background]="getStyle()"
|
|
3353
|
+
[style.border-color]="color"
|
|
3354
|
+
[textContent]="count ? count : ''"
|
|
3355
|
+
></div>
|
|
3356
|
+
`,
|
|
3357
|
+
encapsulation: ViewEncapsulation.None
|
|
3358
|
+
},] }
|
|
3359
|
+
];
|
|
3360
|
+
CoLinearGaugeComponent.propDecorators = {
|
|
3361
|
+
value: [{ type: Input }],
|
|
3362
|
+
count: [{ type: Input }],
|
|
3363
|
+
showClass: [{ type: HostBinding, args: ["class.co-linear-gauge",] }]
|
|
3364
|
+
};
|
|
3365
|
+
|
|
3366
|
+
class CoLinearGaugeModule {
|
|
3367
|
+
}
|
|
3368
|
+
CoLinearGaugeModule.decorators = [
|
|
3369
|
+
{ type: NgModule, args: [{
|
|
3370
|
+
imports: [
|
|
3371
|
+
CommonModule,
|
|
3372
|
+
],
|
|
3373
|
+
declarations: [
|
|
3374
|
+
CoLinearGaugeComponent
|
|
3375
|
+
],
|
|
3376
|
+
exports: [
|
|
3377
|
+
CoLinearGaugeComponent
|
|
3378
|
+
]
|
|
3379
|
+
},] }
|
|
3380
|
+
];
|
|
3381
|
+
|
|
3382
|
+
class StatusbarComponent {
|
|
3383
|
+
constructor() {
|
|
3384
|
+
this.statusbarClick = new EventEmitter();
|
|
3385
|
+
this.showPopup = false;
|
|
3386
|
+
this.popupClass = 'dropdown';
|
|
3387
|
+
}
|
|
3388
|
+
set statusbarData(value) {
|
|
3389
|
+
this._statusbarData = value;
|
|
3390
|
+
}
|
|
3391
|
+
get statusbarData() {
|
|
3392
|
+
return this._statusbarData;
|
|
3393
|
+
}
|
|
3394
|
+
showClass() {
|
|
3395
|
+
return true;
|
|
3396
|
+
}
|
|
3397
|
+
onHover(event) {
|
|
3398
|
+
this.showPopup = true;
|
|
3399
|
+
this._mouseY = event.screenY;
|
|
3400
|
+
this._windowHeight = window.innerHeight;
|
|
3401
|
+
this.setPopupClass();
|
|
3402
|
+
}
|
|
3403
|
+
onLeave() {
|
|
3404
|
+
this.showPopup = false;
|
|
3405
|
+
}
|
|
3406
|
+
onStatusbarClick() {
|
|
3407
|
+
this.statusbarClick.emit();
|
|
3408
|
+
}
|
|
3409
|
+
setPopupClass() {
|
|
3410
|
+
const popupHeight = this.statusbarData.length * 30;
|
|
3411
|
+
let dropdownInScreen = (this._mouseY + popupHeight) <= this._windowHeight;
|
|
3412
|
+
if (dropdownInScreen) {
|
|
3413
|
+
this.popupClass = 'dropdown';
|
|
3414
|
+
}
|
|
3415
|
+
else {
|
|
3416
|
+
this.popupClass = 'dropup';
|
|
3417
|
+
}
|
|
3418
|
+
}
|
|
3419
|
+
}
|
|
3420
|
+
StatusbarComponent.decorators = [
|
|
3421
|
+
{ type: Component, args: [{
|
|
3422
|
+
selector: "co-statusbar",
|
|
3423
|
+
template: `
|
|
3424
|
+
<div class="co-statusbar-wrapper"
|
|
3425
|
+
*ngIf="statusbarData"
|
|
3426
|
+
(mouseover)="onHover($event)"
|
|
3427
|
+
(mouseleave)="onLeave()"
|
|
3428
|
+
(click)="onStatusbarClick()">
|
|
3429
|
+
<div class="statuses">
|
|
3430
|
+
<div *ngFor="let data of statusbarData; let index = index" class="status">
|
|
3431
|
+
<co-linear-gauge [value]="data.percentage" [count]="data.count ? data.count : undefined"></co-linear-gauge>
|
|
3432
|
+
</div>
|
|
3433
|
+
</div>
|
|
3434
|
+
<div class=status-description-popup *ngIf="showPopup" @showHidePopup [ngClass]="popupClass">
|
|
3435
|
+
<div class="status-descriptions">
|
|
3436
|
+
<div *ngFor="let data of statusbarData; let index = index" class="status-description">
|
|
3437
|
+
<co-circular-gauge [value]="data.percentage"></co-circular-gauge>
|
|
3438
|
+
<span [textContent]="data.label"></span>
|
|
3439
|
+
</div>
|
|
3440
|
+
</div>
|
|
3441
|
+
</div>
|
|
3442
|
+
</div>
|
|
3443
|
+
`,
|
|
3444
|
+
animations: [
|
|
3445
|
+
trigger("showHidePopup", [
|
|
3446
|
+
state("void", style({ opacity: 0 })),
|
|
3447
|
+
state("*", style({ opacity: 1 })),
|
|
3448
|
+
transition("void <=> *", animate("250ms ease-in-out")),
|
|
3449
|
+
])
|
|
3450
|
+
],
|
|
3451
|
+
encapsulation: ViewEncapsulation.None
|
|
3452
|
+
},] }
|
|
3453
|
+
];
|
|
3454
|
+
StatusbarComponent.ctorParameters = () => [];
|
|
3455
|
+
StatusbarComponent.propDecorators = {
|
|
3456
|
+
statusbarData: [{ type: Input }],
|
|
3457
|
+
statusbarClick: [{ type: Output }],
|
|
3458
|
+
showClass: [{ type: HostBinding, args: ["class.co-statusbar",] }]
|
|
3459
|
+
};
|
|
3460
|
+
|
|
3461
|
+
class StatusbarModule {
|
|
3462
|
+
}
|
|
3463
|
+
StatusbarModule.decorators = [
|
|
3464
|
+
{ type: NgModule, args: [{
|
|
3465
|
+
imports: [
|
|
3466
|
+
CommonModule,
|
|
3467
|
+
CoCircularGaugeModule,
|
|
3468
|
+
CoLinearGaugeModule
|
|
3469
|
+
],
|
|
3470
|
+
declarations: [
|
|
3471
|
+
StatusbarComponent
|
|
3472
|
+
],
|
|
3473
|
+
exports: [
|
|
3474
|
+
StatusbarComponent
|
|
3475
|
+
]
|
|
3476
|
+
},] }
|
|
3477
|
+
];
|
|
3478
|
+
|
|
3172
3479
|
class SharedService {
|
|
3173
3480
|
constructor(options, connector) {
|
|
3174
3481
|
this.options = options;
|
|
@@ -3200,5 +3507,5 @@ SharedService.ctorParameters = () => [
|
|
|
3200
3507
|
* Generated bundle index. Do not edit.
|
|
3201
3508
|
*/
|
|
3202
3509
|
|
|
3203
|
-
export { DocsignComponent, DocsignModule, KeyPadComponent, KeyPadModule, LayoutSwitcherComponent, LayoutSwitcherModule, SendMethodDialogComponent, SendMethodDialogModule, SharedService, StockComponent, StockModule, SignatureComponent as ɵa, SignaturesComponent as ɵb, StockService as ɵc, SharedConnectorService as ɵd, OptionsService as ɵe, DictionaryService as ɵf, IconCacheService as ɵg, StockInformationComponent as ɵh, StockInformationGridComponent as ɵi, StockLocationComponent as ɵj, StockTransferComponent as ɵk, StockChangeAmountComponent as ɵl };
|
|
3510
|
+
export { CoCircularGaugeComponent, CoCircularGaugeModule, CoLinearGaugeComponent, CoLinearGaugeModule, DocsignComponent, DocsignModule, KeyPadComponent, KeyPadModule, LayoutSwitcherComponent, LayoutSwitcherModule, SendMethodDialogComponent, SendMethodDialogModule, SharedService, StatusbarComponent, StatusbarModule, StockComponent, StockModule, SignatureComponent as ɵa, SignaturesComponent as ɵb, StockService as ɵc, SharedConnectorService as ɵd, OptionsService as ɵe, DictionaryService as ɵf, IconCacheService as ɵg, StockInformationComponent as ɵh, StockInformationGridComponent as ɵi, StockLocationComponent as ɵj, StockTransferComponent as ɵk, StockChangeAmountComponent as ɵl };
|
|
3204
3511
|
//# sourceMappingURL=colijnit-sharedcomponents.js.map
|