@bizy/core 19.0.30 → 19.1.0

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.
@@ -3,7 +3,7 @@ import { EventEmitter, ChangeDetectorRef, Output, Input, Inject, ChangeDetection
3
3
  import * as i1 from '@angular/common';
4
4
  import { CommonModule, DOCUMENT, registerLocaleData, DatePipe } from '@angular/common';
5
5
  import { Subject, Subscription, BehaviorSubject, filter, take, skip, auditTime, throttleTime, debounceTime as debounceTime$1, interval, fromEvent, merge, timer, of } from 'rxjs';
6
- import { debounceTime, distinctUntilChanged, takeUntil, map, filter as filter$1, switchMap } from 'rxjs/operators';
6
+ import { debounceTime, distinctUntilChanged, takeUntil, map, filter as filter$1, switchMap, take as take$1 } from 'rxjs/operators';
7
7
  import * as echarts from 'echarts';
8
8
  import html2canvas from 'html2canvas';
9
9
  import * as i2 from 'angular-calendar';
@@ -4256,6 +4256,43 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImpor
4256
4256
  }]
4257
4257
  }] });
4258
4258
 
4259
+ class BizyTableScrollingDirective {
4260
+ viewContainerRef;
4261
+ template;
4262
+ ref;
4263
+ #items = new BehaviorSubject([]);
4264
+ get items$() {
4265
+ return this.#items.asObservable();
4266
+ }
4267
+ set tableForIn(value) {
4268
+ this.#items.next(value);
4269
+ }
4270
+ constructor(viewContainerRef, template, ref) {
4271
+ this.viewContainerRef = viewContainerRef;
4272
+ this.template = template;
4273
+ this.ref = ref;
4274
+ }
4275
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyTableScrollingDirective, deps: [{ token: ViewContainerRef }, { token: TemplateRef }, { token: ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive });
4276
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.1", type: BizyTableScrollingDirective, isStandalone: true, selector: "[tableFor]", inputs: { tableForIn: "tableForIn" }, ngImport: i0 });
4277
+ }
4278
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyTableScrollingDirective, decorators: [{
4279
+ type: Directive,
4280
+ args: [{
4281
+ selector: '[tableFor]',
4282
+ }]
4283
+ }], ctorParameters: () => [{ type: i0.ViewContainerRef, decorators: [{
4284
+ type: Inject,
4285
+ args: [ViewContainerRef]
4286
+ }] }, { type: i0.TemplateRef, decorators: [{
4287
+ type: Inject,
4288
+ args: [TemplateRef]
4289
+ }] }, { type: i0.ChangeDetectorRef, decorators: [{
4290
+ type: Inject,
4291
+ args: [ChangeDetectorRef]
4292
+ }] }], propDecorators: { tableForIn: [{
4293
+ type: Input
4294
+ }] } });
4295
+
4259
4296
  class BizyTableColumnFixedDirective {
4260
4297
  #elementRef = inject(ElementRef);
4261
4298
  #renderer = inject(Renderer2);
@@ -4630,43 +4667,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImpor
4630
4667
  args: ['tableScrollingContent']
4631
4668
  }] } });
4632
4669
 
4633
- class BizyTableScrollingDirective {
4634
- viewContainerRef;
4635
- template;
4636
- ref;
4637
- #items = new BehaviorSubject([]);
4638
- get items$() {
4639
- return this.#items.asObservable();
4640
- }
4641
- set tableForIn(value) {
4642
- this.#items.next(value);
4643
- }
4644
- constructor(viewContainerRef, template, ref) {
4645
- this.viewContainerRef = viewContainerRef;
4646
- this.template = template;
4647
- this.ref = ref;
4648
- }
4649
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyTableScrollingDirective, deps: [{ token: ViewContainerRef }, { token: TemplateRef }, { token: ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive });
4650
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.1", type: BizyTableScrollingDirective, isStandalone: true, selector: "[tableFor]", inputs: { tableForIn: "tableForIn" }, ngImport: i0 });
4651
- }
4652
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyTableScrollingDirective, decorators: [{
4653
- type: Directive,
4654
- args: [{
4655
- selector: '[tableFor]',
4656
- }]
4657
- }], ctorParameters: () => [{ type: i0.ViewContainerRef, decorators: [{
4658
- type: Inject,
4659
- args: [ViewContainerRef]
4660
- }] }, { type: i0.TemplateRef, decorators: [{
4661
- type: Inject,
4662
- args: [TemplateRef]
4663
- }] }, { type: i0.ChangeDetectorRef, decorators: [{
4664
- type: Inject,
4665
- args: [ChangeDetectorRef]
4666
- }] }], propDecorators: { tableForIn: [{
4667
- type: Input
4668
- }] } });
4669
-
4670
4670
  class BizyTableComponent {
4671
4671
  ref;
4672
4672
  document;
@@ -4904,7 +4904,8 @@ const COMPONENTS$4 = [
4904
4904
  BizyTableScrollingComponent
4905
4905
  ];
4906
4906
  const DIRECTIVES$1 = [
4907
- BizyTableColumnFixedDirective,
4907
+ BizyTableScrollingDirective,
4908
+ BizyTableColumnFixedDirective
4908
4909
  ];
4909
4910
  class BizyTableModule {
4910
4911
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyTableModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
@@ -4915,14 +4916,16 @@ class BizyTableModule {
4915
4916
  BizyTableHeaderComponent,
4916
4917
  BizyTableRowComponent,
4917
4918
  BizyTableRowExpandContentComponent,
4918
- BizyTableScrollingComponent, BizyTableColumnFixedDirective], exports: [BizyTableComponent,
4919
+ BizyTableScrollingComponent, BizyTableScrollingDirective,
4920
+ BizyTableColumnFixedDirective], exports: [BizyTableComponent,
4919
4921
  BizyTableColumnComponent,
4920
4922
  BizyTableColumnArrowsComponent,
4921
4923
  BizyTableFooterComponent,
4922
4924
  BizyTableHeaderComponent,
4923
4925
  BizyTableRowComponent,
4924
4926
  BizyTableRowExpandContentComponent,
4925
- BizyTableScrollingComponent, BizyTableColumnFixedDirective] });
4927
+ BizyTableScrollingComponent, BizyTableScrollingDirective,
4928
+ BizyTableColumnFixedDirective] });
4926
4929
  static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyTableModule, imports: [BizyTableComponent,
4927
4930
  BizyTableColumnComponent,
4928
4931
  BizyTableColumnArrowsComponent,
@@ -7444,6 +7447,47 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImpor
7444
7447
  type: Host
7445
7448
  }] }] });
7446
7449
 
7450
+ class BizyAutoFocusDirective {
7451
+ elementRef;
7452
+ ref;
7453
+ autoFocus;
7454
+ constructor(elementRef, ref) {
7455
+ this.elementRef = elementRef;
7456
+ this.ref = ref;
7457
+ }
7458
+ ngAfterViewInit() {
7459
+ if (typeof this.autoFocus !== 'undefined' && this.autoFocus !== null && this.autoFocus !== false) {
7460
+ this.setFocus();
7461
+ }
7462
+ }
7463
+ setFocus() {
7464
+ const interval = setInterval(() => {
7465
+ this.elementRef.nativeElement.focus();
7466
+ this.ref.detectChanges();
7467
+ }, 300);
7468
+ fromEvent(this.elementRef.nativeElement, 'focus').pipe(take$1(1)).subscribe(() => {
7469
+ clearInterval(interval);
7470
+ });
7471
+ }
7472
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyAutoFocusDirective, deps: [{ token: ElementRef }, { token: ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive });
7473
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.1", type: BizyAutoFocusDirective, isStandalone: true, selector: "[bizyAutoFocus]", inputs: { autoFocus: ["bizyAutoFocus", "autoFocus"] }, ngImport: i0 });
7474
+ }
7475
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyAutoFocusDirective, decorators: [{
7476
+ type: Directive,
7477
+ args: [{
7478
+ selector: '[bizyAutoFocus]'
7479
+ }]
7480
+ }], ctorParameters: () => [{ type: i0.ElementRef, decorators: [{
7481
+ type: Inject,
7482
+ args: [ElementRef]
7483
+ }] }, { type: i0.ChangeDetectorRef, decorators: [{
7484
+ type: Inject,
7485
+ args: [ChangeDetectorRef]
7486
+ }] }], propDecorators: { autoFocus: [{
7487
+ type: Input,
7488
+ args: ['bizyAutoFocus']
7489
+ }] } });
7490
+
7447
7491
  const DIRECTIVES = [
7448
7492
  BizyCopyToClipboardDirective,
7449
7493
  BizyCurrencyFormatDirective,
@@ -7453,7 +7497,8 @@ const DIRECTIVES = [
7453
7497
  BizyOnlyPhoneDigitsDirective,
7454
7498
  BizyTextEllipsisDirective,
7455
7499
  BizyTooltipDirective,
7456
- BizyTrackByIdDirective
7500
+ BizyTrackByIdDirective,
7501
+ BizyAutoFocusDirective
7457
7502
  ];
7458
7503
  class BizyDirectivesModule {
7459
7504
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyDirectivesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
@@ -7465,7 +7510,8 @@ class BizyDirectivesModule {
7465
7510
  BizyOnlyPhoneDigitsDirective,
7466
7511
  BizyTextEllipsisDirective,
7467
7512
  BizyTooltipDirective,
7468
- BizyTrackByIdDirective], exports: [BizyCopyToClipboardDirective,
7513
+ BizyTrackByIdDirective,
7514
+ BizyAutoFocusDirective], exports: [BizyCopyToClipboardDirective,
7469
7515
  BizyCurrencyFormatDirective,
7470
7516
  BizyLoadingDirective,
7471
7517
  BizyLongPressDirective,
@@ -7473,7 +7519,8 @@ class BizyDirectivesModule {
7473
7519
  BizyOnlyPhoneDigitsDirective,
7474
7520
  BizyTextEllipsisDirective,
7475
7521
  BizyTooltipDirective,
7476
- BizyTrackByIdDirective] });
7522
+ BizyTrackByIdDirective,
7523
+ BizyAutoFocusDirective] });
7477
7524
  static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyDirectivesModule });
7478
7525
  }
7479
7526
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyDirectivesModule, decorators: [{
@@ -7488,5 +7535,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImpor
7488
7535
  * Generated bundle index. Do not edit.
7489
7536
  */
7490
7537
 
7491
- export { BIZY_CALENDAR_DAY, BIZY_CALENDAR_EVENT_ACTION, BIZY_CALENDAR_LANGUAGE, BIZY_CALENDAR_MODE, BIZY_SKELETON_SHAPE, BIZY_TAG_TYPE, BizyAccordionComponent, BizyAccordionModule, BizyAnimationService, BizyAudioPlayerComponent, BizyAudioPlayerModule, BizyAveragePipe, BizyBarLineChartComponent, BizyBarLineChartModule, BizyBreadcrumbComponent, BizyBreadcrumbModule, BizyButtonComponent, BizyButtonModule, BizyCacheService, BizyCalendarComponent, BizyCalendarModule, BizyCardComponent, BizyCardModule, BizyCheckboxComponent, BizyCheckboxModule, BizyCopyToClipboardDirective, BizyCopyToClipboardService, BizyCurrencyFormatDirective, BizyDatePickerComponent, BizyDatePickerModule, BizyDirectivesModule, BizyEnumToArrayPipe, BizyExportToCSVService, BizyFileUploaderComponent, BizyFileUploaderModule, BizyFileUploaderService, BizyFilterComponent, BizyFilterContentComponent, BizyFilterModule, BizyFilterPipe, BizyFilterSectionCheckboxOptionComponent, BizyFilterSectionComponent, BizyFilterSectionRangeOptionComponent, BizyFilterSectionSearchOptionComponent, BizyFilterSectionsComponent, BizyFormComponent, BizyFormModule, BizyFormatSecondsPipe, BizyGridComponent, BizyGridForDirective, BizyGridModule, BizyGridRowComponent, BizyInputComponent, BizyInputModule, BizyInputOptionComponent, BizyKeyboardService, BizyListComponent, BizyListModule, BizyLoadingDirective, BizyLogService, BizyLongPressDirective, BizyMenuComponent, BizyMenuModule, BizyMenuOptionComponent, BizyMenuTitleComponent, BizyOnlyNumbersDirective, BizyOnlyPhoneDigitsDirective, BizyOrderByPipe, BizyPieChartComponent, BizyPieChartModule, BizyPipesModule, BizyPopupModule, BizyPopupService, BizyPopupWrapperComponent, BizyRadioComponent, BizyRadioModule, BizyRangeFilterPipe, BizyReducePipe, BizyRepeatPipe, BizyRouterService, BizySafePipe, BizySearchPipe, BizySelectComponent, BizySelectModule, BizySelectOptionComponent, BizySelectedPipe, BizyServicesModule, BizySetToArrayPipe, BizySidebarComponent, BizySidebarFloatingOptionComponent, BizySidebarFloatingOptionTitleComponent, BizySidebarModule, BizySidebarOptionComponent, BizySkeletonComponent, BizySkeletonModule, BizySliderComponent, BizySliderModule, BizyStorageService, BizyTabComponent, BizyTableColumnArrowsComponent, BizyTableColumnComponent, BizyTableColumnFixedDirective, BizyTableComponent, BizyTableFooterComponent, BizyTableHeaderComponent, BizyTableModule, BizyTableRowComponent, BizyTableRowExpandContentComponent, BizyTableScrollingComponent, BizyTableScrollingDirective, BizyTabsComponent, BizyTabsModule, BizyTagComponent, BizyTagModule, BizyTextEllipsisDirective, BizyToastModule, BizyToastService, BizyToastWrapperComponent, BizyToggleComponent, BizyToggleModule, BizyToolbarComponent, BizyToolbarModule, BizyTooltipDirective, BizyTrackByIdDirective, BizyTranslateModule, BizyTranslatePipe, BizyTranslateService, BizyUserAgentService, BizyValidatorService, BizyViewportService, LANGUAGE, LOADING_TYPE, MIME_TYPE };
7538
+ export { BIZY_CALENDAR_DAY, BIZY_CALENDAR_EVENT_ACTION, BIZY_CALENDAR_LANGUAGE, BIZY_CALENDAR_MODE, BIZY_SKELETON_SHAPE, BIZY_TAG_TYPE, BizyAccordionComponent, BizyAccordionModule, BizyAnimationService, BizyAudioPlayerComponent, BizyAudioPlayerModule, BizyAutoFocusDirective, BizyAveragePipe, BizyBarLineChartComponent, BizyBarLineChartModule, BizyBreadcrumbComponent, BizyBreadcrumbModule, BizyButtonComponent, BizyButtonModule, BizyCacheService, BizyCalendarComponent, BizyCalendarModule, BizyCardComponent, BizyCardModule, BizyCheckboxComponent, BizyCheckboxModule, BizyCopyToClipboardDirective, BizyCopyToClipboardService, BizyCurrencyFormatDirective, BizyDatePickerComponent, BizyDatePickerModule, BizyDirectivesModule, BizyEnumToArrayPipe, BizyExportToCSVService, BizyFileUploaderComponent, BizyFileUploaderModule, BizyFileUploaderService, BizyFilterComponent, BizyFilterContentComponent, BizyFilterModule, BizyFilterPipe, BizyFilterSectionCheckboxOptionComponent, BizyFilterSectionComponent, BizyFilterSectionRangeOptionComponent, BizyFilterSectionSearchOptionComponent, BizyFilterSectionsComponent, BizyFormComponent, BizyFormModule, BizyFormatSecondsPipe, BizyGridComponent, BizyGridForDirective, BizyGridModule, BizyGridRowComponent, BizyInputComponent, BizyInputModule, BizyInputOptionComponent, BizyKeyboardService, BizyListComponent, BizyListModule, BizyLoadingDirective, BizyLogService, BizyLongPressDirective, BizyMenuComponent, BizyMenuModule, BizyMenuOptionComponent, BizyMenuTitleComponent, BizyOnlyNumbersDirective, BizyOnlyPhoneDigitsDirective, BizyOrderByPipe, BizyPieChartComponent, BizyPieChartModule, BizyPipesModule, BizyPopupModule, BizyPopupService, BizyPopupWrapperComponent, BizyRadioComponent, BizyRadioModule, BizyRangeFilterPipe, BizyReducePipe, BizyRepeatPipe, BizyRouterService, BizySafePipe, BizySearchPipe, BizySelectComponent, BizySelectModule, BizySelectOptionComponent, BizySelectedPipe, BizyServicesModule, BizySetToArrayPipe, BizySidebarComponent, BizySidebarFloatingOptionComponent, BizySidebarFloatingOptionTitleComponent, BizySidebarModule, BizySidebarOptionComponent, BizySkeletonComponent, BizySkeletonModule, BizySliderComponent, BizySliderModule, BizyStorageService, BizyTabComponent, BizyTableColumnArrowsComponent, BizyTableColumnComponent, BizyTableColumnFixedDirective, BizyTableComponent, BizyTableFooterComponent, BizyTableHeaderComponent, BizyTableModule, BizyTableRowComponent, BizyTableRowExpandContentComponent, BizyTableScrollingComponent, BizyTableScrollingDirective, BizyTabsComponent, BizyTabsModule, BizyTagComponent, BizyTagModule, BizyTextEllipsisDirective, BizyToastModule, BizyToastService, BizyToastWrapperComponent, BizyToggleComponent, BizyToggleModule, BizyToolbarComponent, BizyToolbarModule, BizyTooltipDirective, BizyTrackByIdDirective, BizyTranslateModule, BizyTranslatePipe, BizyTranslateService, BizyUserAgentService, BizyValidatorService, BizyViewportService, LANGUAGE, LOADING_TYPE, MIME_TYPE };
7492
7539
  //# sourceMappingURL=bizy-core.mjs.map