@tetacom/ng-components 1.6.9 → 1.6.10

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.
@@ -0,0 +1,7 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class FullScreenToggleDirective {
3
+ private fullScreen;
4
+ onClick(): Promise<void>;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<FullScreenToggleDirective, never>;
6
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FullScreenToggleDirective, "[tetaFullScreenToggle]", never, {}, {}, never, never, true, never>;
7
+ }
@@ -0,0 +1,12 @@
1
+ import { ElementRef } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class FullScreenDirective {
4
+ private service;
5
+ elementRef: ElementRef<any>;
6
+ enter(): Promise<void>;
7
+ exit(): Promise<void>;
8
+ toggle(): Promise<void>;
9
+ onEsc(ev: KeyboardEvent): Promise<void>;
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<FullScreenDirective, never>;
11
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FullScreenDirective, "[tetaFullScreen]", never, {}, {}, never, never, true, never>;
12
+ }
@@ -0,0 +1,9 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class FullScreenService {
3
+ private active?;
4
+ enter(el: Element): Promise<void>;
5
+ exit(): Promise<void>;
6
+ toggle(el: Element): Promise<void>;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<FullScreenService, never>;
8
+ static ɵprov: i0.ɵɵInjectableDeclaration<FullScreenService>;
9
+ }
@@ -5,6 +5,9 @@ export * from './disable-control/public-api';
5
5
  export * from './drag-drop/public-api';
6
6
  export * from './drag-sort/public-api';
7
7
  export * from './dynamic-content-base.directive';
8
+ export * from './full-screen/full-screen.directive';
9
+ export * from './full-screen/full-screen.service';
10
+ export * from './full-screen/full-screen-toggle.directive';
8
11
  export * from './highlight/public-api';
9
12
  export * from './hint/public-api';
10
13
  export * from './loader/public-api';
@@ -11291,6 +11291,94 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", ngImpor
11291
11291
  args: ['drop', ['$event']]
11292
11292
  }] } });
11293
11293
 
11294
+ class FullScreenService {
11295
+ async enter(el) {
11296
+ if (this.active) {
11297
+ await this.exit();
11298
+ }
11299
+ this.active = el;
11300
+ await el.requestFullscreen();
11301
+ }
11302
+ async exit() {
11303
+ if (document.fullscreenElement) {
11304
+ await document.exitFullscreen();
11305
+ }
11306
+ this.active = undefined;
11307
+ }
11308
+ async toggle(el) {
11309
+ if (document.fullscreenElement === el) {
11310
+ await this.exit();
11311
+ }
11312
+ else {
11313
+ await this.enter(el);
11314
+ }
11315
+ }
11316
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: FullScreenService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
11317
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: FullScreenService, providedIn: 'root' }); }
11318
+ }
11319
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: FullScreenService, decorators: [{
11320
+ type: Injectable,
11321
+ args: [{
11322
+ providedIn: 'root',
11323
+ }]
11324
+ }] });
11325
+
11326
+ class FullScreenDirective {
11327
+ constructor() {
11328
+ this.service = inject(FullScreenService);
11329
+ this.elementRef = inject(ElementRef);
11330
+ }
11331
+ async enter() {
11332
+ await this.service.enter(this.elementRef.nativeElement);
11333
+ }
11334
+ async exit() {
11335
+ await this.service.exit();
11336
+ }
11337
+ async toggle() {
11338
+ await this.service.toggle(this.elementRef.nativeElement);
11339
+ }
11340
+ async onEsc(ev) {
11341
+ if (document.fullscreenElement === this.elementRef.nativeElement) {
11342
+ ev.stopPropagation();
11343
+ await this.exit();
11344
+ }
11345
+ }
11346
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: FullScreenDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
11347
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.5", type: FullScreenDirective, isStandalone: true, selector: "[tetaFullScreen]", host: { listeners: { "keydown.escape": "onEsc($event)" } }, providers: [FullScreenService], ngImport: i0 }); }
11348
+ }
11349
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: FullScreenDirective, decorators: [{
11350
+ type: Directive,
11351
+ args: [{
11352
+ selector: '[tetaFullScreen]',
11353
+ providers: [FullScreenService],
11354
+ host: {
11355
+ '(keydown.escape)': 'onEsc($event)',
11356
+ },
11357
+ }]
11358
+ }] });
11359
+
11360
+ class FullScreenToggleDirective {
11361
+ constructor() {
11362
+ this.fullScreen = inject(FullScreenDirective, {
11363
+ optional: true,
11364
+ });
11365
+ }
11366
+ async onClick() {
11367
+ await this.fullScreen?.toggle();
11368
+ }
11369
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: FullScreenToggleDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
11370
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.5", type: FullScreenToggleDirective, isStandalone: true, selector: "[tetaFullScreenToggle]", host: { listeners: { "click": "onClick()" } }, ngImport: i0 }); }
11371
+ }
11372
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: FullScreenToggleDirective, decorators: [{
11373
+ type: Directive,
11374
+ args: [{
11375
+ selector: '[tetaFullScreenToggle]',
11376
+ host: {
11377
+ '(click)': 'onClick()',
11378
+ },
11379
+ }]
11380
+ }] });
11381
+
11294
11382
  class LoaderDirective {
11295
11383
  set tetaLoader(value) {
11296
11384
  this._loading = value;
@@ -11713,5 +11801,5 @@ function tetaZoneOptimized(ngZone) {
11713
11801
  * Generated bundle index. Do not edit.
11714
11802
  */
11715
11803
 
11716
- export { ANIMATION_FRAME, AccordionComponent, AccordionContentDirective, AccordionHeadComponent, AccordionItemComponent, AggregationType, Align, ArrayUtil, AutoPositionDirective, AutocompleteComponent, AvatarComponent, BooleanCellComponent, BooleanFilter, BooleanFilterComponent, ButtonComponent, CHECKBOX_CONTROL_VALUE_ACCESSOR, CellComponent, CellComponentBase, CellHostComponent, Chart3dComponent, Chart3dOptions, CheckboxComponent, ClickOutsideDirective, ClickService, ColorCellComponent, ColorInputComponent, ColorUtil, ColumnReorderEvent, ColumnResizeEvent, ContextMenuDirective, CurrentModal, DATE_PICKER_CONTROL_VALUE_ACCESSOR, DATE_Range_CONTROL_VALUE_ACCESSOR, DateCalendarComponent, DateCellComponent, DateFilter, DateFilterComponent, DateFilterValue, DatePeriod, DatePickerComponent, DatePickerMode, DateRangeComponent, DateTimeCellComponent, DateUtil, DayModel, DelimiterComponent, DetailComponentBase, DialogComponent, DialogService, DisableControlDirective, DividerComponent, DomUtil, DragContainerDirective, DragContainerInstance, DragDirective, DragDropService, DragInstance, DragPlaceholderDirective, DragPreviewDirective, DragSortContainerDirective, DragSortItemDirective, DropdownComponent, DropdownContentDirective, DropdownDirective, DropdownHeadDirective, DynamicComponentService, DynamicContentBaseDirective, DynamicData, EditEvent, EditType, ExpandCardComponent, ExpandItemComponent, ExpandPanelComponent, ExpandPanelContentDirective, ExpandPanelHeadDirective, ExportType, FileItemComponent, FileUploadAreaComponent, FilterBase, FilterComponentBase, FilterHostComponent, FilterItem, FilterState, FilterType, FormGroupTitleComponent, FormsUtil, HeadCellComponentBase, HeadCellHostComponent, HighlightDirective, HintDirective, IconComponent, IconFileComponent, IconService, IconSpriteDirective, InputComponent, LetContext, LetDirective, ListCellComponent, ListFilter, ListFilterComponent, ListFilterType, LoaderDirective, Message, MessageComponent, MessageHostComponent, MessageService, ModalCloseReason, ModalContainerComponent, ModalInstance, ModalModule, ModalService, NoAutofillDirective, NumberPipe, NumericCellComponent, NumericFilter, NumericFilterComponent, NumericFilterValue, OnlyNumberDirective, OverlayContainerService, PagerComponent, PagerState, PagerUtil, PanelComponent, PopupContentComponent, PositionUtil, PrependZeroPipe, ProgressBarComponent, PropertyGridComponent, PropertyGridItemComponent, PropertyGridItemDescriptionDirective, RadioButtonComponent, RadioComponent, RangeCalendarComponent, ResizeDragDirective, ResizePanelComponent, SLIDER_CONTROL_VALUE_ACCESSOR, SWITCH_CONTROL_VALUE_ACCESSOR, ScrollIntoViewDirective, ScrollableComponent, ScrollableDirective, SelectComponent, SelectOptionDirective, SelectType, SelectValueDirective, SidebarComponent, SidebarPosition, SortEvent, SortParam, StateUtil, StepperComponent, StringCellComponent, StringFilter, StringFilterComponent, StringFilterType, StringUtil, SwitchButtonComponent, SwitchComponent, TOGGLE_CONTROL_VALUE_ACCESSOR, TabComponent, TabContentDirective, TabTitleDirective, TableBodyComponent, TableColumn, TableColumnStore, TableComponent, TableHeadComponent, TableRow, TableRowComponent, TableService, TableUtil, TabsComponent, TetaConfigService, TetaContentRef, TetaDatePipe, TetaSize, TetaTemplateDirective, TextFieldComponent, ThemeSwitchComponent, ThemeSwitchService, ToggleComponent, ToolbarComponent, TooltipDirective, TreeComponent, TreeItemToggleComponent, TreeService, VerticalAlign, WINDOW, boolOrFuncCallback, enLocale, exportDomToImage, formatNumber, getCellComponent, getPrecision, isFunction, prependZero, ruLocale, tetaZoneFree, tetaZoneFull, tetaZoneOptimized };
11804
+ export { ANIMATION_FRAME, AccordionComponent, AccordionContentDirective, AccordionHeadComponent, AccordionItemComponent, AggregationType, Align, ArrayUtil, AutoPositionDirective, AutocompleteComponent, AvatarComponent, BooleanCellComponent, BooleanFilter, BooleanFilterComponent, ButtonComponent, CHECKBOX_CONTROL_VALUE_ACCESSOR, CellComponent, CellComponentBase, CellHostComponent, Chart3dComponent, Chart3dOptions, CheckboxComponent, ClickOutsideDirective, ClickService, ColorCellComponent, ColorInputComponent, ColorUtil, ColumnReorderEvent, ColumnResizeEvent, ContextMenuDirective, CurrentModal, DATE_PICKER_CONTROL_VALUE_ACCESSOR, DATE_Range_CONTROL_VALUE_ACCESSOR, DateCalendarComponent, DateCellComponent, DateFilter, DateFilterComponent, DateFilterValue, DatePeriod, DatePickerComponent, DatePickerMode, DateRangeComponent, DateTimeCellComponent, DateUtil, DayModel, DelimiterComponent, DetailComponentBase, DialogComponent, DialogService, DisableControlDirective, DividerComponent, DomUtil, DragContainerDirective, DragContainerInstance, DragDirective, DragDropService, DragInstance, DragPlaceholderDirective, DragPreviewDirective, DragSortContainerDirective, DragSortItemDirective, DropdownComponent, DropdownContentDirective, DropdownDirective, DropdownHeadDirective, DynamicComponentService, DynamicContentBaseDirective, DynamicData, EditEvent, EditType, ExpandCardComponent, ExpandItemComponent, ExpandPanelComponent, ExpandPanelContentDirective, ExpandPanelHeadDirective, ExportType, FileItemComponent, FileUploadAreaComponent, FilterBase, FilterComponentBase, FilterHostComponent, FilterItem, FilterState, FilterType, FormGroupTitleComponent, FormsUtil, FullScreenDirective, FullScreenService, FullScreenToggleDirective, HeadCellComponentBase, HeadCellHostComponent, HighlightDirective, HintDirective, IconComponent, IconFileComponent, IconService, IconSpriteDirective, InputComponent, LetContext, LetDirective, ListCellComponent, ListFilter, ListFilterComponent, ListFilterType, LoaderDirective, Message, MessageComponent, MessageHostComponent, MessageService, ModalCloseReason, ModalContainerComponent, ModalInstance, ModalModule, ModalService, NoAutofillDirective, NumberPipe, NumericCellComponent, NumericFilter, NumericFilterComponent, NumericFilterValue, OnlyNumberDirective, OverlayContainerService, PagerComponent, PagerState, PagerUtil, PanelComponent, PopupContentComponent, PositionUtil, PrependZeroPipe, ProgressBarComponent, PropertyGridComponent, PropertyGridItemComponent, PropertyGridItemDescriptionDirective, RadioButtonComponent, RadioComponent, RangeCalendarComponent, ResizeDragDirective, ResizePanelComponent, SLIDER_CONTROL_VALUE_ACCESSOR, SWITCH_CONTROL_VALUE_ACCESSOR, ScrollIntoViewDirective, ScrollableComponent, ScrollableDirective, SelectComponent, SelectOptionDirective, SelectType, SelectValueDirective, SidebarComponent, SidebarPosition, SortEvent, SortParam, StateUtil, StepperComponent, StringCellComponent, StringFilter, StringFilterComponent, StringFilterType, StringUtil, SwitchButtonComponent, SwitchComponent, TOGGLE_CONTROL_VALUE_ACCESSOR, TabComponent, TabContentDirective, TabTitleDirective, TableBodyComponent, TableColumn, TableColumnStore, TableComponent, TableHeadComponent, TableRow, TableRowComponent, TableService, TableUtil, TabsComponent, TetaConfigService, TetaContentRef, TetaDatePipe, TetaSize, TetaTemplateDirective, TextFieldComponent, ThemeSwitchComponent, ThemeSwitchService, ToggleComponent, ToolbarComponent, TooltipDirective, TreeComponent, TreeItemToggleComponent, TreeService, VerticalAlign, WINDOW, boolOrFuncCallback, enLocale, exportDomToImage, formatNumber, getCellComponent, getPrecision, isFunction, prependZero, ruLocale, tetaZoneFree, tetaZoneFull, tetaZoneOptimized };
11717
11805
  //# sourceMappingURL=tetacom-ng-components.mjs.map