barsa-develop-components 1.0.456 → 1.0.457
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/fesm2022/barsa-develop-components.mjs +3774 -0
- package/fesm2022/barsa-develop-components.mjs.map +1 -0
- package/index.d.ts +5 -5
- package/lib/accept-reject/accept-reject.component.d.ts +28 -28
- package/lib/avatar/avatar.component.d.ts +12 -12
- package/lib/barcode-format-pipe.d.ts +7 -7
- package/lib/barcode-reader/barcode-reader.component.d.ts +19 -19
- package/lib/barcode-reader-dialog/barcode-reader-dialog.component.d.ts +32 -32
- package/lib/barcode-reader-video/barcode-reader-video.component.d.ts +22 -22
- package/lib/barcode.service.d.ts +98 -98
- package/lib/barsa-develop-components.module.d.ts +120 -117
- package/lib/barsa-document-list-item/barsa-document-list-item.component.d.ts +39 -39
- package/lib/barsa-documents/barsa-documents.component.d.ts +47 -47
- package/lib/barsa-geographic-location/barsa-geographic-location.component.d.ts +46 -46
- package/lib/card-content-image-and-title/card-content-image-and-title.component.d.ts +18 -18
- package/lib/card-content-line-chart/card-content-line-chart.component.d.ts +9 -9
- package/lib/card-header-big-image-title-and-subtitle/card-header-big-image-title-and-subtitle.component.d.ts +6 -6
- package/lib/card-header-kpi/card-header-kpi.component.d.ts +14 -14
- package/lib/card-header-logo-title-subtitle/card-header-logo-title-subtitle.component.d.ts +23 -23
- package/lib/checkbox-button/checkbox-button.component.d.ts +13 -13
- package/lib/column-chip/column-chip.component.d.ts +17 -0
- package/lib/column-form-viewer/column-form-viewer.component.d.ts +30 -30
- package/lib/column-progressbar/column-progressbar.component.d.ts +41 -0
- package/lib/enum-info-micro-proccess-flow/enum-info-micro-proccess-flow.component.d.ts +8 -8
- package/lib/footer/footer.component.d.ts +15 -15
- package/lib/form-card/form-card.component.d.ts +8 -8
- package/lib/form-chart-content/form-chart-content.component.d.ts +9 -9
- package/lib/form-content-quick-view/form-content-quick-view.component.d.ts +18 -18
- package/lib/form-report-view/form-report-view.component.d.ts +13 -13
- package/lib/form-report-view-item/form-report-view-item.component.d.ts +15 -15
- package/lib/g4b-details/g4b-details.component.d.ts +9 -9
- package/lib/g4b-estelam/g4b-estelam.component.d.ts +11 -11
- package/lib/geographic-location/geographic-location.component.d.ts +34 -34
- package/lib/login-form/login-form.component.d.ts +12 -12
- package/lib/login-social-conncetions/login-social-conncetions.component.d.ts +12 -12
- package/lib/master-detail-card-form/master-detail-card-form.component.d.ts +8 -8
- package/lib/media-file-uploader/media-file-uploader.component.d.ts +52 -52
- package/lib/micro-proccess-flow/micro-proccess-flow.component.d.ts +28 -28
- package/lib/micro-process-flow-view/micro-process-flow-view.component.d.ts +14 -14
- package/lib/mo-info-micro-proccess-flow/mo-info-micro-proccess-flow.component.d.ts +9 -9
- package/lib/models/document-item.d.ts +19 -19
- package/lib/models/documents-setting.d.ts +11 -11
- package/lib/models/form-report-view-setting.d.ts +7 -7
- package/lib/models/index.d.ts +7 -7
- package/lib/models/micro-process-flow-view-setting.d.ts +8 -8
- package/lib/models/person.d.ts +10 -10
- package/lib/models/service-desk-view-of-services-setting.d.ts +6 -6
- package/lib/models/tab-process-view-setting.d.ts +7 -7
- package/lib/pipes/datasource-to-flow-item.d.ts +10 -10
- package/lib/pipes/index.d.ts +2 -2
- package/lib/pipes/mo-list-to-flow-item.pipe.d.ts +10 -10
- package/lib/query-string-form-observable/query-string-form-observable.component.d.ts +13 -13
- package/lib/query-string-observable/query-string-observable.component.d.ts +9 -9
- package/lib/report-button-view/report-button-view.component.d.ts +12 -12
- package/lib/report-line-chart-view/report-line-chart-view.component.d.ts +7 -7
- package/lib/report-tab-view/report-tab-view.component.d.ts +15 -15
- package/lib/resend-verification-code/resend-verification-code.component.d.ts +19 -18
- package/lib/service-desk-card-content-mojavezhay-akhz-shode/service-desk-card-content-mojavezhay-akhz-shode.component.d.ts +15 -15
- package/lib/service-desk-form-layout-content-mojavez/service-desk-form-layout-content-mojavez.component.d.ts +26 -26
- package/lib/service-desk-header/service-desk-header.component.d.ts +61 -63
- package/lib/service-desk-servcie-detail/service-desk-servcie-detail.component.d.ts +39 -39
- package/lib/service-desk-view-of-services/service-desk-view-of-services.component.d.ts +16 -16
- package/lib/setting-form/setting-form.component.d.ts +20 -20
- package/lib/subform-in-row-report/subform-in-row-report.component.d.ts +22 -21
- package/lib/tab-process-view/tab-process-view.component.d.ts +20 -20
- package/lib/table-view-vertical-columns/table-view-vertical-columns.component.d.ts +6 -6
- package/lib/timer-count-down/timer-count-down.component.d.ts +16 -15
- package/lib/token-report-view/token-report-view.component.d.ts +15 -15
- package/lib/ui-enum-segmented-button/ui-enum-segmented-button.component.d.ts +9 -9
- package/lib/ui-num-rate/ui-num-rate.component.d.ts +9 -9
- package/lib/ui-person/ui-person.component.d.ts +31 -31
- package/lib/ui-person/ui-person.pipe.d.ts +7 -7
- package/lib/ui-pictures-carousel/ui-pictures-carousel.component.d.ts +6 -6
- package/lib/ui-text-field-search/ui-text-field-search.component.d.ts +17 -17
- package/lib/ulv-context-menu-item-show-file-content/ulv-context-menu-item-show-file-content.component.d.ts +25 -25
- package/package.json +5 -13
- package/public-api.d.ts +60 -58
- package/esm2020/barsa-develop-components.mjs +0 -5
- package/esm2020/lib/accept-reject/accept-reject.component.mjs +0 -69
- package/esm2020/lib/avatar/avatar.component.mjs +0 -29
- package/esm2020/lib/barcode-format-pipe.mjs +0 -24
- package/esm2020/lib/barcode-reader/barcode-reader.component.mjs +0 -62
- package/esm2020/lib/barcode-reader-dialog/barcode-reader-dialog.component.mjs +0 -82
- package/esm2020/lib/barcode-reader-video/barcode-reader-video.component.mjs +0 -66
- package/esm2020/lib/barcode.service.mjs +0 -330
- package/esm2020/lib/barsa-develop-components.module.mjs +0 -284
- package/esm2020/lib/barsa-document-list-item/barsa-document-list-item.component.mjs +0 -104
- package/esm2020/lib/barsa-documents/barsa-documents.component.mjs +0 -173
- package/esm2020/lib/barsa-geographic-location/barsa-geographic-location.component.mjs +0 -174
- package/esm2020/lib/card-content-image-and-title/card-content-image-and-title.component.mjs +0 -51
- package/esm2020/lib/card-content-line-chart/card-content-line-chart.component.mjs +0 -38
- package/esm2020/lib/card-header-big-image-title-and-subtitle/card-header-big-image-title-and-subtitle.component.mjs +0 -20
- package/esm2020/lib/card-header-kpi/card-header-kpi.component.mjs +0 -41
- package/esm2020/lib/card-header-logo-title-subtitle/card-header-logo-title-subtitle.component.mjs +0 -46
- package/esm2020/lib/checkbox-button/checkbox-button.component.mjs +0 -23
- package/esm2020/lib/column-form-viewer/column-form-viewer.component.mjs +0 -88
- package/esm2020/lib/enum-info-micro-proccess-flow/enum-info-micro-proccess-flow.component.mjs +0 -18
- package/esm2020/lib/footer/footer.component.mjs +0 -44
- package/esm2020/lib/form-card/form-card.component.mjs +0 -18
- package/esm2020/lib/form-chart-content/form-chart-content.component.mjs +0 -38
- package/esm2020/lib/form-content-quick-view/form-content-quick-view.component.mjs +0 -102
- package/esm2020/lib/form-report-view/form-report-view.component.mjs +0 -26
- package/esm2020/lib/form-report-view-item/form-report-view-item.component.mjs +0 -45
- package/esm2020/lib/g4b-details/g4b-details.component.mjs +0 -28
- package/esm2020/lib/g4b-estelam/g4b-estelam.component.mjs +0 -30
- package/esm2020/lib/geographic-location/geographic-location.component.mjs +0 -88
- package/esm2020/lib/login-form/login-form.component.mjs +0 -55
- package/esm2020/lib/login-social-conncetions/login-social-conncetions.component.mjs +0 -30
- package/esm2020/lib/master-detail-card-form/master-detail-card-form.component.mjs +0 -17
- package/esm2020/lib/media-file-uploader/media-file-uploader.component.mjs +0 -238
- package/esm2020/lib/micro-proccess-flow/micro-proccess-flow.component.mjs +0 -53
- package/esm2020/lib/micro-process-flow-view/micro-process-flow-view.component.mjs +0 -24
- package/esm2020/lib/mo-info-micro-proccess-flow/mo-info-micro-proccess-flow.component.mjs +0 -23
- package/esm2020/lib/models/document-item.mjs +0 -2
- package/esm2020/lib/models/documents-setting.mjs +0 -2
- package/esm2020/lib/models/form-report-view-setting.mjs +0 -2
- package/esm2020/lib/models/index.mjs +0 -8
- package/esm2020/lib/models/micro-process-flow-view-setting.mjs +0 -2
- package/esm2020/lib/models/person.mjs +0 -2
- package/esm2020/lib/models/service-desk-view-of-services-setting.mjs +0 -2
- package/esm2020/lib/models/tab-process-view-setting.mjs +0 -2
- package/esm2020/lib/pipes/datasource-to-flow-item.mjs +0 -22
- package/esm2020/lib/pipes/index.mjs +0 -3
- package/esm2020/lib/pipes/mo-list-to-flow-item.pipe.mjs +0 -22
- package/esm2020/lib/query-string-form-observable/query-string-form-observable.component.mjs +0 -37
- package/esm2020/lib/query-string-observable/query-string-observable.component.mjs +0 -22
- package/esm2020/lib/report-button-view/report-button-view.component.mjs +0 -38
- package/esm2020/lib/report-line-chart-view/report-line-chart-view.component.mjs +0 -13
- package/esm2020/lib/report-tab-view/report-tab-view.component.mjs +0 -28
- package/esm2020/lib/resend-verification-code/resend-verification-code.component.mjs +0 -59
- package/esm2020/lib/service-desk-card-content-mojavezhay-akhz-shode/service-desk-card-content-mojavezhay-akhz-shode.component.mjs +0 -28
- package/esm2020/lib/service-desk-form-layout-content-mojavez/service-desk-form-layout-content-mojavez.component.mjs +0 -110
- package/esm2020/lib/service-desk-header/service-desk-header.component.mjs +0 -236
- package/esm2020/lib/service-desk-servcie-detail/service-desk-servcie-detail.component.mjs +0 -142
- package/esm2020/lib/service-desk-view-of-services/service-desk-view-of-services.component.mjs +0 -37
- package/esm2020/lib/setting-form/setting-form.component.mjs +0 -64
- package/esm2020/lib/subform-in-row-report/subform-in-row-report.component.mjs +0 -65
- package/esm2020/lib/tab-process-view/tab-process-view.component.mjs +0 -49
- package/esm2020/lib/table-view-vertical-columns/table-view-vertical-columns.component.mjs +0 -16
- package/esm2020/lib/timer-count-down/timer-count-down.component.mjs +0 -98
- package/esm2020/lib/token-report-view/token-report-view.component.mjs +0 -27
- package/esm2020/lib/ui-enum-segmented-button/ui-enum-segmented-button.component.mjs +0 -25
- package/esm2020/lib/ui-num-rate/ui-num-rate.component.mjs +0 -29
- package/esm2020/lib/ui-person/ui-person.component.mjs +0 -160
- package/esm2020/lib/ui-person/ui-person.pipe.mjs +0 -40
- package/esm2020/lib/ui-pictures-carousel/ui-pictures-carousel.component.mjs +0 -17
- package/esm2020/lib/ui-text-field-search/ui-text-field-search.component.mjs +0 -42
- package/esm2020/lib/ulv-context-menu-item-show-file-content/ulv-context-menu-item-show-file-content.component.mjs +0 -70
- package/esm2020/public-api.mjs +0 -62
- package/fesm2015/barsa-develop-components.mjs +0 -3660
- package/fesm2015/barsa-develop-components.mjs.map +0 -1
- package/fesm2020/barsa-develop-components.mjs +0 -3625
- package/fesm2020/barsa-develop-components.mjs.map +0 -1
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated bundle index. Do not edit.
|
|
3
|
-
*/
|
|
4
|
-
/// <amd-module name="barsa-develop-components" />
|
|
5
|
-
export * from './public-api';
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
/// <amd-module name="barsa-develop-components" />
|
|
5
|
+
export * from './public-api';
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { ChangeDetectorRef, EventEmitter, OnInit } from '@angular/core';
|
|
2
|
-
import { AbbrevationDeviceSize, BaseComponent } from 'barsa-novin-ray-core';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class AcceptRejectComponent extends BaseComponent implements OnInit {
|
|
5
|
-
private _cdr;
|
|
6
|
-
negativeText: string;
|
|
7
|
-
positiveText: string;
|
|
8
|
-
rejectedReason: string;
|
|
9
|
-
acceptedText: string;
|
|
10
|
-
deviceSize: AbbrevationDeviceSize;
|
|
11
|
-
readonly: boolean;
|
|
12
|
-
rejected: boolean;
|
|
13
|
-
rejectedChanged: EventEmitter<{
|
|
14
|
-
accept: boolean;
|
|
15
|
-
error: string;
|
|
16
|
-
}>;
|
|
17
|
-
id: string;
|
|
18
|
-
applied: boolean;
|
|
19
|
-
constructor(_cdr: ChangeDetectorRef);
|
|
20
|
-
ngOnInit(): void;
|
|
21
|
-
onReject(): void;
|
|
22
|
-
onReset(): void;
|
|
23
|
-
onAccept(): void;
|
|
24
|
-
protected _initilaize(): void;
|
|
25
|
-
protected _raiseEvent(applied: boolean, rejected: boolean, rejectedReason?: string): void;
|
|
26
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AcceptRejectComponent, never>;
|
|
27
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AcceptRejectComponent, "bdc-accept-reject", never, { "negativeText": "negativeText"; "positiveText": "positiveText"; "rejectedReason": "rejectedReason"; "acceptedText": "acceptedText"; "deviceSize": "deviceSize"; "readonly": "readonly"; "rejected": "rejected"; }, { "rejectedChanged": "rejectedChanged"; }, never, never, false>;
|
|
28
|
-
}
|
|
1
|
+
import { ChangeDetectorRef, EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { AbbrevationDeviceSize, BaseComponent } from 'barsa-novin-ray-core';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class AcceptRejectComponent extends BaseComponent implements OnInit {
|
|
5
|
+
private _cdr;
|
|
6
|
+
negativeText: string;
|
|
7
|
+
positiveText: string;
|
|
8
|
+
rejectedReason: string;
|
|
9
|
+
acceptedText: string;
|
|
10
|
+
deviceSize: AbbrevationDeviceSize;
|
|
11
|
+
readonly: boolean;
|
|
12
|
+
rejected: boolean;
|
|
13
|
+
rejectedChanged: EventEmitter<{
|
|
14
|
+
accept: boolean;
|
|
15
|
+
error: string;
|
|
16
|
+
}>;
|
|
17
|
+
id: string;
|
|
18
|
+
applied: boolean;
|
|
19
|
+
constructor(_cdr: ChangeDetectorRef);
|
|
20
|
+
ngOnInit(): void;
|
|
21
|
+
onReject(): void;
|
|
22
|
+
onReset(): void;
|
|
23
|
+
onAccept(): void;
|
|
24
|
+
protected _initilaize(): void;
|
|
25
|
+
protected _raiseEvent(applied: boolean, rejected: boolean, rejectedReason?: string): void;
|
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AcceptRejectComponent, never>;
|
|
27
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AcceptRejectComponent, "bdc-accept-reject", never, { "negativeText": { "alias": "negativeText"; "required": false; }; "positiveText": { "alias": "positiveText"; "required": false; }; "rejectedReason": { "alias": "rejectedReason"; "required": false; }; "acceptedText": { "alias": "acceptedText"; "required": false; }; "deviceSize": { "alias": "deviceSize"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "rejected": { "alias": "rejected"; "required": false; }; }, { "rejectedChanged": "rejectedChanged"; }, never, never, false, never>;
|
|
28
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { OnInit, SimpleChanges } from '@angular/core';
|
|
2
|
-
import { BaseItemContentPropsComponent, UiReportViewBaseSetting, MetaobjectDataModel } from 'barsa-novin-ray-core';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class AvatarComponent extends BaseItemContentPropsComponent<UiReportViewBaseSetting> implements OnInit {
|
|
5
|
-
pictureId: string;
|
|
6
|
-
subtitle: string;
|
|
7
|
-
ngOnInit(): void;
|
|
8
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
9
|
-
protected _setProps(mo: MetaobjectDataModel): void;
|
|
10
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AvatarComponent, never>;
|
|
11
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AvatarComponent, "bdc-avatar", never, {}, {}, never, never, false>;
|
|
12
|
-
}
|
|
1
|
+
import { OnInit, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { BaseItemContentPropsComponent, UiReportViewBaseSetting, MetaobjectDataModel } from 'barsa-novin-ray-core';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class AvatarComponent extends BaseItemContentPropsComponent<UiReportViewBaseSetting> implements OnInit {
|
|
5
|
+
pictureId: string;
|
|
6
|
+
subtitle: string;
|
|
7
|
+
ngOnInit(): void;
|
|
8
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
9
|
+
protected _setProps(mo: MetaobjectDataModel): void;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AvatarComponent, never>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AvatarComponent, "bdc-avatar", never, {}, {}, never, never, false, never>;
|
|
12
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class BarcodeFormatPipe implements PipeTransform {
|
|
4
|
-
transform(value: number): string;
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BarcodeFormatPipe, never>;
|
|
6
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<BarcodeFormatPipe, "barcodeFormat", false>;
|
|
7
|
-
}
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class BarcodeFormatPipe implements PipeTransform {
|
|
4
|
+
transform(value: number): string;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BarcodeFormatPipe, never>;
|
|
6
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<BarcodeFormatPipe, "barcodeFormat", false>;
|
|
7
|
+
}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { ContentDensity, DynamicPageResponsiveSize } from '@fundamental-ngx/core';
|
|
4
|
-
import { UiMoInfoSubFormUiComponent } from 'barsa-sap-ui';
|
|
5
|
-
import { BarcodeFormat } from '@zxing/library';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class BarcodeReaderComponent extends UiMoInfoSubFormUiComponent implements OnInit {
|
|
8
|
-
size: DynamicPageResponsiveSize;
|
|
9
|
-
barcodeValue: string;
|
|
10
|
-
contentDensity$: Observable<ContentDensity>;
|
|
11
|
-
barcodeFormat: Array<BarcodeFormat>;
|
|
12
|
-
ngOnInit(): void;
|
|
13
|
-
onOpenBarcodeReader(): void;
|
|
14
|
-
onValueChange(e: any): void;
|
|
15
|
-
protected _addFormControl(formControl: any): void;
|
|
16
|
-
private _setFieldValue;
|
|
17
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BarcodeReaderComponent, never>;
|
|
18
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BarcodeReaderComponent, "bdc-barcode-reader", never, {}, {}, never, never, false>;
|
|
19
|
-
}
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { ContentDensity, DynamicPageResponsiveSize } from '@fundamental-ngx/core';
|
|
4
|
+
import { UiMoInfoSubFormUiComponent } from 'barsa-sap-ui';
|
|
5
|
+
import { BarcodeFormat } from '@zxing/library';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class BarcodeReaderComponent extends UiMoInfoSubFormUiComponent implements OnInit {
|
|
8
|
+
size: DynamicPageResponsiveSize;
|
|
9
|
+
barcodeValue: string;
|
|
10
|
+
contentDensity$: Observable<ContentDensity>;
|
|
11
|
+
barcodeFormat: Array<BarcodeFormat>;
|
|
12
|
+
ngOnInit(): void;
|
|
13
|
+
onOpenBarcodeReader(): void;
|
|
14
|
+
onValueChange(e: any): void;
|
|
15
|
+
protected _addFormControl(formControl: any): void;
|
|
16
|
+
private _setFieldValue;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BarcodeReaderComponent, never>;
|
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BarcodeReaderComponent, "bdc-barcode-reader", never, {}, {}, never, never, false, never>;
|
|
19
|
+
}
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import { AfterViewInit } from '@angular/core';
|
|
2
|
-
import { DialogRef } from '@fundamental-ngx/core';
|
|
3
|
-
import { Observable } from 'rxjs';
|
|
4
|
-
import { BaseComponent } from 'barsa-novin-ray-core';
|
|
5
|
-
import { UserMediaBaseService } from '../barcode.service';
|
|
6
|
-
import { BarcodeFormat } from '@zxing/library';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
export declare class BarcodeReaderDialogComponent extends BaseComponent implements AfterViewInit {
|
|
9
|
-
private _dialogRef;
|
|
10
|
-
private _userMediaService;
|
|
11
|
-
value: string;
|
|
12
|
-
cameras$: Observable<MediaDeviceInfo[]>;
|
|
13
|
-
format: BarcodeFormat[];
|
|
14
|
-
hasDevice$: Observable<boolean>;
|
|
15
|
-
permission$: Observable<boolean>;
|
|
16
|
-
loading: boolean;
|
|
17
|
-
selectedCamera: MediaDeviceInfo;
|
|
18
|
-
barcodeFormats: Array<BarcodeFormat>;
|
|
19
|
-
selectedFormat: BarcodeFormat;
|
|
20
|
-
constructor(_dialogRef: DialogRef, _userMediaService: UserMediaBaseService);
|
|
21
|
-
ngAfterViewInit(): void;
|
|
22
|
-
onDismiss(): void;
|
|
23
|
-
onOk(): void;
|
|
24
|
-
onCameraChange(value: any): void;
|
|
25
|
-
onFormatChange(format: any): void;
|
|
26
|
-
onScanSuccess(result: any): void;
|
|
27
|
-
onValueChanged(e: any): void;
|
|
28
|
-
private _close;
|
|
29
|
-
private _initialize;
|
|
30
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BarcodeReaderDialogComponent, never>;
|
|
31
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BarcodeReaderDialogComponent, "bdc-barcode-reader-dialog", never, {}, {}, never, never, false>;
|
|
32
|
-
}
|
|
1
|
+
import { AfterViewInit } from '@angular/core';
|
|
2
|
+
import { DialogRef } from '@fundamental-ngx/core';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import { BaseComponent } from 'barsa-novin-ray-core';
|
|
5
|
+
import { UserMediaBaseService } from '../barcode.service';
|
|
6
|
+
import { BarcodeFormat } from '@zxing/library';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class BarcodeReaderDialogComponent extends BaseComponent implements AfterViewInit {
|
|
9
|
+
private _dialogRef;
|
|
10
|
+
private _userMediaService;
|
|
11
|
+
value: string;
|
|
12
|
+
cameras$: Observable<MediaDeviceInfo[]>;
|
|
13
|
+
format: BarcodeFormat[];
|
|
14
|
+
hasDevice$: Observable<boolean>;
|
|
15
|
+
permission$: Observable<boolean>;
|
|
16
|
+
loading: boolean;
|
|
17
|
+
selectedCamera: MediaDeviceInfo;
|
|
18
|
+
barcodeFormats: Array<BarcodeFormat>;
|
|
19
|
+
selectedFormat: BarcodeFormat;
|
|
20
|
+
constructor(_dialogRef: DialogRef, _userMediaService: UserMediaBaseService);
|
|
21
|
+
ngAfterViewInit(): void;
|
|
22
|
+
onDismiss(): void;
|
|
23
|
+
onOk(): void;
|
|
24
|
+
onCameraChange(value: any): void;
|
|
25
|
+
onFormatChange(format: any): void;
|
|
26
|
+
onScanSuccess(result: any): void;
|
|
27
|
+
onValueChanged(e: any): void;
|
|
28
|
+
private _close;
|
|
29
|
+
private _initialize;
|
|
30
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BarcodeReaderDialogComponent, never>;
|
|
31
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BarcodeReaderDialogComponent, "bdc-barcode-reader-dialog", never, {}, {}, never, never, false, never>;
|
|
32
|
+
}
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { ElementRef, EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
-
import { BarcodeFormat } from '@zxing/library';
|
|
3
|
-
import { BaseComponent } from 'barsa-novin-ray-core';
|
|
4
|
-
import { WebBarcodeService } from '../barcode.service';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class BarcodeReaderVideoComponent extends BaseComponent implements OnInit, OnDestroy {
|
|
7
|
-
private _webBarcodeService;
|
|
8
|
-
allFormats: BarcodeFormat[];
|
|
9
|
-
previewFitMode: 'fill' | 'contain' | 'cover' | 'scale-down' | 'none';
|
|
10
|
-
scanSuccess: EventEmitter<string>;
|
|
11
|
-
videoElement: ElementRef<HTMLVideoElement>;
|
|
12
|
-
set selectedCamera(val: MediaDeviceInfo);
|
|
13
|
-
private _cameraSource;
|
|
14
|
-
constructor(_webBarcodeService: WebBarcodeService);
|
|
15
|
-
ngOnInit(): void;
|
|
16
|
-
ngOnDestroy(): void;
|
|
17
|
-
private _setFormat;
|
|
18
|
-
private _stopScan;
|
|
19
|
-
private _startScan;
|
|
20
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BarcodeReaderVideoComponent, never>;
|
|
21
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BarcodeReaderVideoComponent, "bdc-barcode-reader-video", never, { "allFormats": "allFormats"; "previewFitMode": "previewFitMode"; "selectedCamera": "selectedCamera"; }, { "scanSuccess": "scanSuccess"; }, never, never, false>;
|
|
22
|
-
}
|
|
1
|
+
import { ElementRef, EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { BarcodeFormat } from '@zxing/library';
|
|
3
|
+
import { BaseComponent } from 'barsa-novin-ray-core';
|
|
4
|
+
import { WebBarcodeService } from '../barcode.service';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class BarcodeReaderVideoComponent extends BaseComponent implements OnInit, OnDestroy {
|
|
7
|
+
private _webBarcodeService;
|
|
8
|
+
allFormats: BarcodeFormat[];
|
|
9
|
+
previewFitMode: 'fill' | 'contain' | 'cover' | 'scale-down' | 'none';
|
|
10
|
+
scanSuccess: EventEmitter<string>;
|
|
11
|
+
videoElement: ElementRef<HTMLVideoElement>;
|
|
12
|
+
set selectedCamera(val: MediaDeviceInfo);
|
|
13
|
+
private _cameraSource;
|
|
14
|
+
constructor(_webBarcodeService: WebBarcodeService);
|
|
15
|
+
ngOnInit(): void;
|
|
16
|
+
ngOnDestroy(): void;
|
|
17
|
+
private _setFormat;
|
|
18
|
+
private _stopScan;
|
|
19
|
+
private _startScan;
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BarcodeReaderVideoComponent, never>;
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BarcodeReaderVideoComponent, "bdc-barcode-reader-video", never, { "allFormats": { "alias": "allFormats"; "required": false; }; "previewFitMode": { "alias": "previewFitMode"; "required": false; }; "selectedCamera": { "alias": "selectedCamera"; "required": false; }; }, { "scanSuccess": "scanSuccess"; }, never, never, false, never>;
|
|
22
|
+
}
|
package/lib/barcode.service.d.ts
CHANGED
|
@@ -1,98 +1,98 @@
|
|
|
1
|
-
import { Result, Exception, BarcodeFormat } from '@zxing/library';
|
|
2
|
-
import { BrowserMultiFormatReader, IScannerControls } from '@zxing/browser';
|
|
3
|
-
import { BehaviorSubject, Observable, Subject } from 'rxjs';
|
|
4
|
-
import { LogService } from 'barsa-novin-ray-core';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export interface ResultAndError {
|
|
7
|
-
result?: Result;
|
|
8
|
-
error?: Exception;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Based on zxing-typescript BrowserCodeReader
|
|
12
|
-
*/
|
|
13
|
-
export declare class BrowserMultiFormatContinuousReader extends BrowserMultiFormatReader {
|
|
14
|
-
/**
|
|
15
|
-
* Allows to call scanner controls API while scanning.
|
|
16
|
-
* Will be undefined if no scanning is runnig.
|
|
17
|
-
*/
|
|
18
|
-
protected scannerControls: IScannerControls | undefined;
|
|
19
|
-
/**
|
|
20
|
-
* Returns the code reader scanner controls.
|
|
21
|
-
*/
|
|
22
|
-
getScannerControls(): IScannerControls;
|
|
23
|
-
/**
|
|
24
|
-
* Starts the decoding from the current or a new video element.
|
|
25
|
-
*
|
|
26
|
-
* @param deviceId The device's to be used Id
|
|
27
|
-
* @param previewEl A new video element
|
|
28
|
-
*/
|
|
29
|
-
scanFromDeviceObservable(deviceId?: string, previewEl?: HTMLVideoElement): Promise<Observable<ResultAndError>>;
|
|
30
|
-
}
|
|
31
|
-
export declare class UserMediaBaseService {
|
|
32
|
-
private _logService;
|
|
33
|
-
hasNavigator: boolean;
|
|
34
|
-
isMediaDevicesSupported: boolean;
|
|
35
|
-
_camerasSource: BehaviorSubject<MediaDeviceInfo[]>;
|
|
36
|
-
cameras$: Observable<MediaDeviceInfo[]>;
|
|
37
|
-
_permissionResponse: Subject<DOMException>;
|
|
38
|
-
permissionResponse$: Observable<DOMException>;
|
|
39
|
-
_hasDevicesSource: BehaviorSubject<boolean>;
|
|
40
|
-
hasDevices$: Observable<boolean>;
|
|
41
|
-
_permissionSource: BehaviorSubject<boolean>;
|
|
42
|
-
permission$: Observable<boolean>;
|
|
43
|
-
_camerasNotFoundSource: Subject<DOMException>;
|
|
44
|
-
camerasNotFound$: Observable<DOMException>;
|
|
45
|
-
/**
|
|
46
|
-
*
|
|
47
|
-
*/
|
|
48
|
-
constructor(_logService: LogService);
|
|
49
|
-
updateVideoInputDevices(): Promise<MediaDeviceInfo[]>;
|
|
50
|
-
/**
|
|
51
|
-
* Gets and registers all cammeras.
|
|
52
|
-
*/
|
|
53
|
-
askForPermission(): Promise<boolean>;
|
|
54
|
-
protected terminateStream(stream: MediaStream | undefined): void;
|
|
55
|
-
protected _setPermission(permission: boolean): void;
|
|
56
|
-
protected _getAnyVideoDevice(): Promise<MediaStream>;
|
|
57
|
-
protected _handlePermissionException(err: DOMException): boolean;
|
|
58
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<UserMediaBaseService, never>;
|
|
59
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<UserMediaBaseService>;
|
|
60
|
-
}
|
|
61
|
-
export declare class WebBarcodeService {
|
|
62
|
-
userMediaService: UserMediaBaseService;
|
|
63
|
-
scanError$: Observable<Error>;
|
|
64
|
-
scanFailure$: Observable<Error>;
|
|
65
|
-
scanComplete$: Observable<Result>;
|
|
66
|
-
scanSuccess$: Observable<string>;
|
|
67
|
-
private _device;
|
|
68
|
-
private _videoEl;
|
|
69
|
-
private _codeReader;
|
|
70
|
-
private _hints;
|
|
71
|
-
private _scanErrorSource;
|
|
72
|
-
private _scanFailureSource;
|
|
73
|
-
private _scanSubscription;
|
|
74
|
-
private _scanCompleteSource;
|
|
75
|
-
private _scanSuccessSource;
|
|
76
|
-
private _options;
|
|
77
|
-
constructor(userMediaService: UserMediaBaseService);
|
|
78
|
-
startScan(device: MediaDeviceInfo, videoEl: HTMLVideoElement, options?: {
|
|
79
|
-
delayBetweenScanAttempts: number;
|
|
80
|
-
delayBetweenScanSuccess: number;
|
|
81
|
-
}): void;
|
|
82
|
-
setFormat(input: BarcodeFormat[]): void;
|
|
83
|
-
scanStop(): void;
|
|
84
|
-
destroy(): void;
|
|
85
|
-
private getBarcodeFormatOrFail;
|
|
86
|
-
private scanFromDevice;
|
|
87
|
-
/**
|
|
88
|
-
* Handles decode errors.
|
|
89
|
-
*/
|
|
90
|
-
private _onDecodeError;
|
|
91
|
-
/**
|
|
92
|
-
* Handles decode results.
|
|
93
|
-
*/
|
|
94
|
-
private _onDecodeResult;
|
|
95
|
-
private getCodeReader;
|
|
96
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<WebBarcodeService, never>;
|
|
97
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<WebBarcodeService>;
|
|
98
|
-
}
|
|
1
|
+
import { Result, Exception, BarcodeFormat } from '@zxing/library';
|
|
2
|
+
import { BrowserMultiFormatReader, IScannerControls } from '@zxing/browser';
|
|
3
|
+
import { BehaviorSubject, Observable, Subject } from 'rxjs';
|
|
4
|
+
import { LogService } from 'barsa-novin-ray-core';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export interface ResultAndError {
|
|
7
|
+
result?: Result;
|
|
8
|
+
error?: Exception;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Based on zxing-typescript BrowserCodeReader
|
|
12
|
+
*/
|
|
13
|
+
export declare class BrowserMultiFormatContinuousReader extends BrowserMultiFormatReader {
|
|
14
|
+
/**
|
|
15
|
+
* Allows to call scanner controls API while scanning.
|
|
16
|
+
* Will be undefined if no scanning is runnig.
|
|
17
|
+
*/
|
|
18
|
+
protected scannerControls: IScannerControls | undefined;
|
|
19
|
+
/**
|
|
20
|
+
* Returns the code reader scanner controls.
|
|
21
|
+
*/
|
|
22
|
+
getScannerControls(): IScannerControls;
|
|
23
|
+
/**
|
|
24
|
+
* Starts the decoding from the current or a new video element.
|
|
25
|
+
*
|
|
26
|
+
* @param deviceId The device's to be used Id
|
|
27
|
+
* @param previewEl A new video element
|
|
28
|
+
*/
|
|
29
|
+
scanFromDeviceObservable(deviceId?: string, previewEl?: HTMLVideoElement): Promise<Observable<ResultAndError>>;
|
|
30
|
+
}
|
|
31
|
+
export declare class UserMediaBaseService {
|
|
32
|
+
private _logService;
|
|
33
|
+
hasNavigator: boolean;
|
|
34
|
+
isMediaDevicesSupported: boolean;
|
|
35
|
+
_camerasSource: BehaviorSubject<MediaDeviceInfo[]>;
|
|
36
|
+
cameras$: Observable<MediaDeviceInfo[]>;
|
|
37
|
+
_permissionResponse: Subject<DOMException>;
|
|
38
|
+
permissionResponse$: Observable<DOMException>;
|
|
39
|
+
_hasDevicesSource: BehaviorSubject<boolean>;
|
|
40
|
+
hasDevices$: Observable<boolean>;
|
|
41
|
+
_permissionSource: BehaviorSubject<boolean>;
|
|
42
|
+
permission$: Observable<boolean>;
|
|
43
|
+
_camerasNotFoundSource: Subject<DOMException>;
|
|
44
|
+
camerasNotFound$: Observable<DOMException>;
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
*/
|
|
48
|
+
constructor(_logService: LogService);
|
|
49
|
+
updateVideoInputDevices(): Promise<MediaDeviceInfo[]>;
|
|
50
|
+
/**
|
|
51
|
+
* Gets and registers all cammeras.
|
|
52
|
+
*/
|
|
53
|
+
askForPermission(): Promise<boolean>;
|
|
54
|
+
protected terminateStream(stream: MediaStream | undefined): void;
|
|
55
|
+
protected _setPermission(permission: boolean): void;
|
|
56
|
+
protected _getAnyVideoDevice(): Promise<MediaStream>;
|
|
57
|
+
protected _handlePermissionException(err: DOMException): boolean;
|
|
58
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UserMediaBaseService, never>;
|
|
59
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<UserMediaBaseService>;
|
|
60
|
+
}
|
|
61
|
+
export declare class WebBarcodeService {
|
|
62
|
+
userMediaService: UserMediaBaseService;
|
|
63
|
+
scanError$: Observable<Error>;
|
|
64
|
+
scanFailure$: Observable<Error>;
|
|
65
|
+
scanComplete$: Observable<Result>;
|
|
66
|
+
scanSuccess$: Observable<string>;
|
|
67
|
+
private _device;
|
|
68
|
+
private _videoEl;
|
|
69
|
+
private _codeReader;
|
|
70
|
+
private _hints;
|
|
71
|
+
private _scanErrorSource;
|
|
72
|
+
private _scanFailureSource;
|
|
73
|
+
private _scanSubscription;
|
|
74
|
+
private _scanCompleteSource;
|
|
75
|
+
private _scanSuccessSource;
|
|
76
|
+
private _options;
|
|
77
|
+
constructor(userMediaService: UserMediaBaseService);
|
|
78
|
+
startScan(device: MediaDeviceInfo, videoEl: HTMLVideoElement, options?: {
|
|
79
|
+
delayBetweenScanAttempts: number;
|
|
80
|
+
delayBetweenScanSuccess: number;
|
|
81
|
+
}): void;
|
|
82
|
+
setFormat(input: BarcodeFormat[]): void;
|
|
83
|
+
scanStop(): void;
|
|
84
|
+
destroy(): void;
|
|
85
|
+
private getBarcodeFormatOrFail;
|
|
86
|
+
private scanFromDevice;
|
|
87
|
+
/**
|
|
88
|
+
* Handles decode errors.
|
|
89
|
+
*/
|
|
90
|
+
private _onDecodeError;
|
|
91
|
+
/**
|
|
92
|
+
* Handles decode results.
|
|
93
|
+
*/
|
|
94
|
+
private _onDecodeResult;
|
|
95
|
+
private getCodeReader;
|
|
96
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WebBarcodeService, never>;
|
|
97
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<WebBarcodeService>;
|
|
98
|
+
}
|