@festo-ui/angular 3.1.0-pre-20220328.2 → 3.1.0-pre-20220331.4

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.
Files changed (48) hide show
  1. package/README.md +5 -1
  2. package/css/bundle.css +1 -0
  3. package/css/image-gallery.css +1 -0
  4. package/css/popover.css +1 -0
  5. package/esm2020/index.mjs +3 -1
  6. package/esm2020/lib/components/accordion/accordion-header/accordion-header.component.mjs +2 -2
  7. package/esm2020/lib/components/accordion/accordion-item/accordion-item-body/accordion-item-body.component.mjs +2 -2
  8. package/esm2020/lib/components/accordion/accordion-item/accordion-item.component.mjs +2 -2
  9. package/esm2020/lib/components/buttons/button/button.component.mjs +2 -2
  10. package/esm2020/lib/components/image-gallery/image-gallery.component.mjs +58 -0
  11. package/esm2020/lib/components/image-gallery/image-gallery.module.mjs +21 -0
  12. package/esm2020/lib/components/modals/alert/alert.component.mjs +3 -3
  13. package/esm2020/lib/components/modals/confirm/confirm.component.mjs +3 -17
  14. package/esm2020/lib/components/modals/custom-modal/custom-modal.component.mjs +70 -0
  15. package/esm2020/lib/components/modals/modal.service.mjs +10 -1
  16. package/esm2020/lib/components/modals/modals.module.mjs +9 -6
  17. package/esm2020/lib/components/modals/prompt/prompt.component.mjs +3 -3
  18. package/esm2020/lib/components/popovers/legend/legend.component.mjs +2 -2
  19. package/esm2020/lib/components/popovers/popover-content/popover-content.component.mjs +2 -2
  20. package/esm2020/lib/components/tabs/tabs.component.mjs +2 -2
  21. package/esm2020/lib/festo-angular.module.mjs +14 -7
  22. package/esm2020/lib/forms/checkbox/checkbox.component.mjs +2 -2
  23. package/esm2020/lib/forms/color-indicator/color-indicator.component.mjs +2 -2
  24. package/esm2020/lib/forms/color-picker/color-picker.component.mjs +2 -2
  25. package/esm2020/lib/forms/select/select.component.mjs +2 -2
  26. package/esm2020/lib/forms/slider/slider.component.mjs +2 -2
  27. package/esm2020/lib/forms/text-area/text-area.component.mjs +2 -2
  28. package/esm2020/lib/forms/text-editor/text-editor.component.mjs +2 -2
  29. package/fesm2015/festo-ui-angular.mjs +198 -60
  30. package/fesm2015/festo-ui-angular.mjs.map +1 -1
  31. package/fesm2020/festo-ui-angular.mjs +197 -60
  32. package/fesm2020/festo-ui-angular.mjs.map +1 -1
  33. package/index.d.ts +1 -0
  34. package/lib/components/image-gallery/image-gallery.component.d.ts +33 -0
  35. package/lib/components/image-gallery/image-gallery.module.d.ts +10 -0
  36. package/lib/components/modals/confirm/confirm.component.d.ts +1 -3
  37. package/lib/components/modals/custom-modal/custom-modal.component.d.ts +21 -0
  38. package/lib/components/modals/modal.service.d.ts +2 -0
  39. package/lib/components/modals/modals.module.d.ts +8 -5
  40. package/lib/festo-angular.module.d.ts +2 -1
  41. package/package.json +11 -4
  42. package/scss/base/components/buttons/button/button.component.scss +6 -1
  43. package/scss/base/components/image-gallery/image-gallery.component.scss +0 -0
  44. package/scss/base/components/image-gallery/styles.scss +5 -0
  45. package/scss/base/components/popovers/popover/styles.scss +1 -2
  46. package/scss/base/forms/color-indicator/color-indicator.component.scss +1 -1
  47. package/scss/base/forms/color-picker/color-picker.component.scss +3 -3
  48. package/scss/styles.scss +0 -2083
package/index.d.ts CHANGED
@@ -4,6 +4,7 @@ export * from './lib/components/snackbar/snackbar.module';
4
4
  export * from './lib/content/content.module';
5
5
  export * from './lib/forms/forms.module';
6
6
  export * from './lib/layout/layout.module';
7
+ export * from './lib/components/image-gallery/image-gallery.module';
7
8
  export * from './lib/festo-angular.module';
8
9
  export * from './lib/components/modals/modal.service';
9
10
  export * from './lib/components/snackbar/snackbar.service';
@@ -0,0 +1,33 @@
1
+ import { ChangeDetectorRef, EventEmitter } from '@angular/core';
2
+ import { Modal } from '../modals';
3
+ import * as i0 from "@angular/core";
4
+ export interface ImageGalleryData {
5
+ startIndex: number;
6
+ images: {
7
+ url: string;
8
+ alt: string;
9
+ }[];
10
+ thumbnailImages?: {
11
+ url: string;
12
+ alt: string;
13
+ }[];
14
+ pagination?: boolean;
15
+ slideChanged?: (index: number) => void;
16
+ }
17
+ export declare class ImageGalleryComponent implements Modal<ImageGalleryData, any> {
18
+ private cd;
19
+ data: ImageGalleryData;
20
+ close: EventEmitter<any>;
21
+ cancel: EventEmitter<any>;
22
+ ok: EventEmitter<any>;
23
+ thumbsSwiper: any;
24
+ currentIndex: number;
25
+ constructor(cd: ChangeDetectorRef);
26
+ onKeyUp(event: KeyboardEvent): void;
27
+ onSlideChange(swiper: {
28
+ activeIndex: number;
29
+ }[]): void;
30
+ onClose(): void;
31
+ static ɵfac: i0.ɵɵFactoryDeclaration<ImageGalleryComponent, never>;
32
+ static ɵcmp: i0.ɵɵComponentDeclaration<ImageGalleryComponent, "fng-image-gallery", never, { "data": "data"; }, { "close": "close"; "cancel": "cancel"; "ok": "ok"; }, never, never>;
33
+ }
@@ -0,0 +1,10 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./image-gallery.component";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "swiper/angular";
5
+ export * from './image-gallery.component';
6
+ export declare class FestoAngularImageGalleryModule {
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<FestoAngularImageGalleryModule, never>;
8
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FestoAngularImageGalleryModule, [typeof i1.ImageGalleryComponent], [typeof i2.CommonModule, typeof i3.SwiperModule], [typeof i1.ImageGalleryComponent]>;
9
+ static ɵinj: i0.ɵɵInjectorDeclaration<FestoAngularImageGalleryModule>;
10
+ }
@@ -7,23 +7,21 @@ export interface ConfirmData {
7
7
  body: string;
8
8
  cancel?: string;
9
9
  ok?: string;
10
+ large?: boolean;
10
11
  }
11
12
  export declare class ConfirmComponent implements AfterViewInit, Modal<ConfirmData, any> {
12
13
  private cd;
13
- hasScrollableContent: boolean;
14
14
  data: ConfirmData;
15
15
  close: EventEmitter<any>;
16
16
  cancel: EventEmitter<any>;
17
17
  ok: EventEmitter<any>;
18
18
  closeBtn: ElementRef;
19
- content: ElementRef;
20
19
  onKeyUp(event: KeyboardEvent): void;
21
20
  constructor(cd: ChangeDetectorRef);
22
21
  ngAfterViewInit(): void;
23
22
  onClose(): void;
24
23
  onOk(): void;
25
24
  onCancel(): void;
26
- private shouldScroll;
27
25
  static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmComponent, never>;
28
26
  static ɵcmp: i0.ɵɵComponentDeclaration<ConfirmComponent, "fng-confirm", never, { "data": "data"; }, { "close": "close"; "cancel": "cancel"; "ok": "ok"; }, never, never>;
29
27
  }
@@ -0,0 +1,21 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class CustomModalComponent {
4
+ closeOnBackdrop: boolean;
5
+ large: boolean;
6
+ visible: boolean;
7
+ visibleChange: EventEmitter<boolean>;
8
+ header: string;
9
+ subheader: string;
10
+ acknowledgeLabel: string;
11
+ acknowledge: EventEmitter<void>;
12
+ cancelLabel: string;
13
+ cancel: EventEmitter<void>;
14
+ closeModal(): void;
15
+ onCancel(): void;
16
+ onAcknowledge(): void;
17
+ onClickOutside(): void;
18
+ onClickInside(event: MouseEvent): void;
19
+ static ɵfac: i0.ɵɵFactoryDeclaration<CustomModalComponent, never>;
20
+ static ɵcmp: i0.ɵɵComponentDeclaration<CustomModalComponent, "fng-custom-modal", never, { "closeOnBackdrop": "closeOnBackdrop"; "large": "large"; "visible": "visible"; "header": "header"; "subheader": "subheader"; "acknowledgeLabel": "acknowledgeLabel"; "cancelLabel": "cancelLabel"; }, { "visibleChange": "visibleChange"; "acknowledge": "acknowledge"; "cancel": "cancel"; }, never, ["*"]>;
21
+ }
@@ -5,6 +5,7 @@ import { Modal, ModalOptions, ModalResult } from './index';
5
5
  import { AlertData } from './alert/alert.component';
6
6
  import { ConfirmData } from './confirm/confirm.component';
7
7
  import { PromptData } from './prompt/prompt.component';
8
+ import { ImageGalleryData } from '../image-gallery/image-gallery.component';
8
9
  import * as i0 from "@angular/core";
9
10
  export declare class ModalService {
10
11
  protected overlay: Overlay;
@@ -13,6 +14,7 @@ export declare class ModalService {
13
14
  alert(data: AlertData, options?: ModalOptions): Promise<ModalResult<any>>;
14
15
  confirm(data: ConfirmData, options?: ModalOptions): Promise<ModalResult<any>>;
15
16
  prompt(data: PromptData, options?: ModalOptions): Promise<ModalResult<any>>;
17
+ openImageGallery(data: ImageGalleryData): Promise<ModalResult<any>>;
16
18
  open<TData, TResult, TModal extends Modal<TData, TResult>>(data: TData, modal: ComponentType<TModal>, options: ModalOptions): Promise<ModalResult<TResult>>;
17
19
  private dispose;
18
20
  static ɵfac: i0.ɵɵFactoryDeclaration<ModalService, never>;
@@ -2,16 +2,19 @@ import * as i0 from "@angular/core";
2
2
  import * as i1 from "./alert/alert.component";
3
3
  import * as i2 from "./confirm/confirm.component";
4
4
  import * as i3 from "./prompt/prompt.component";
5
- import * as i4 from "@angular/common";
6
- import * as i5 from "@angular/router";
7
- import * as i6 from "@angular/cdk/overlay";
8
- import * as i7 from "../../forms/forms.module";
5
+ import * as i4 from "./custom-modal/custom-modal.component";
6
+ import * as i5 from "@angular/common";
7
+ import * as i6 from "@angular/router";
8
+ import * as i7 from "@angular/cdk/overlay";
9
+ import * as i8 from "../../forms/forms.module";
10
+ import * as i9 from "../components.module";
9
11
  export * from './index';
10
12
  export * from './alert/alert.component';
11
13
  export * from './confirm/confirm.component';
12
14
  export * from './prompt/prompt.component';
15
+ export * from './custom-modal/custom-modal.component';
13
16
  export declare class FestoAngularModalsModule {
14
17
  static ɵfac: i0.ɵɵFactoryDeclaration<FestoAngularModalsModule, never>;
15
- static ɵmod: i0.ɵɵNgModuleDeclaration<FestoAngularModalsModule, [typeof i1.AlertComponent, typeof i2.ConfirmComponent, typeof i3.PromptComponent], [typeof i4.CommonModule, typeof i5.RouterModule, typeof i6.OverlayModule, typeof i7.FestoAngularFormsModule], [typeof i1.AlertComponent, typeof i2.ConfirmComponent, typeof i3.PromptComponent]>;
18
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FestoAngularModalsModule, [typeof i1.AlertComponent, typeof i2.ConfirmComponent, typeof i3.PromptComponent, typeof i4.CustomModalComponent], [typeof i5.CommonModule, typeof i6.RouterModule, typeof i7.OverlayModule, typeof i8.FestoAngularFormsModule, typeof i9.FestoAngularComponentsModule], [typeof i1.AlertComponent, typeof i2.ConfirmComponent, typeof i3.PromptComponent, typeof i4.CustomModalComponent]>;
16
19
  static ɵinj: i0.ɵɵInjectorDeclaration<FestoAngularModalsModule>;
17
20
  }
@@ -5,8 +5,9 @@ import * as i3 from "./content/content.module";
5
5
  import * as i4 from "./forms/forms.module";
6
6
  import * as i5 from "./components/modals/modals.module";
7
7
  import * as i6 from "./components/snackbar/snackbar.module";
8
+ import * as i7 from "./components/image-gallery/image-gallery.module";
8
9
  export declare class FestoAngularModule {
9
10
  static ɵfac: i0.ɵɵFactoryDeclaration<FestoAngularModule, never>;
10
- static ɵmod: i0.ɵɵNgModuleDeclaration<FestoAngularModule, never, [typeof i1.FestoAngularLayoutModule, typeof i2.FestoAngularComponentsModule, typeof i3.FestoAngularContentModule, typeof i4.FestoAngularFormsModule, typeof i5.FestoAngularModalsModule, typeof i6.FestoAngularSnackbarModule], [typeof i1.FestoAngularLayoutModule, typeof i2.FestoAngularComponentsModule, typeof i3.FestoAngularContentModule, typeof i4.FestoAngularFormsModule, typeof i5.FestoAngularModalsModule, typeof i6.FestoAngularSnackbarModule]>;
11
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FestoAngularModule, never, [typeof i1.FestoAngularLayoutModule, typeof i2.FestoAngularComponentsModule, typeof i3.FestoAngularContentModule, typeof i4.FestoAngularFormsModule, typeof i5.FestoAngularModalsModule, typeof i6.FestoAngularSnackbarModule, typeof i7.FestoAngularImageGalleryModule], [typeof i1.FestoAngularLayoutModule, typeof i2.FestoAngularComponentsModule, typeof i3.FestoAngularContentModule, typeof i4.FestoAngularFormsModule, typeof i5.FestoAngularModalsModule, typeof i6.FestoAngularSnackbarModule, typeof i7.FestoAngularImageGalleryModule]>;
11
12
  static ɵinj: i0.ɵɵInjectorDeclaration<FestoAngularModule>;
12
13
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@festo-ui/angular",
3
- "version": "3.1.0-pre-20220328.2",
3
+ "version": "3.1.0-pre-20220331.4",
4
4
  "author": "Festo UI (styleguide@festo.com)",
5
5
  "license": "apache-2.0",
6
6
  "description": "CSS framework and utils to build FESTO web applications",
@@ -14,13 +14,20 @@
14
14
  "@angular/cdk": "^13.1.1",
15
15
  "rxjs": "^6.6.7",
16
16
  "@festo-ui/web-essentials": "*",
17
+ "swiper": "8.0.7",
18
+ "simplebar": "5.3.6",
19
+ "quill": "1.3.7",
20
+ "flatpickr": "^4.6.9",
17
21
  "@angular/platform-browser-dynamic": "13.1.1"
18
22
  },
19
23
  "dependencies": {
24
+ "tslib": "^2.1.0"
25
+ },
26
+ "optionalDependencies": {
20
27
  "flatpickr": "^4.6.9",
21
- "quill": "~1.3.7",
22
- "tslib": "^2.1.0",
23
- "simplebar": "5.3.6"
28
+ "quill": "1.3.7",
29
+ "simplebar": "5.3.6",
30
+ "swiper": "8.0.7"
24
31
  },
25
32
  "module": "fesm2015/festo-ui-angular.mjs",
26
33
  "es2020": "fesm2020/festo-ui-angular.mjs",
@@ -1,4 +1,9 @@
1
- .fng-button {
1
+ fng-button {
2
+ display: inline-block;
3
+ }
4
+
5
+ .fng-button {
6
+ width: 100%;
2
7
  .fng-button-text {
3
8
  margin: -1px 0px 1px 0px;
4
9
  }
@@ -0,0 +1,5 @@
1
+ @import "swiper/scss";
2
+ @import "swiper/scss/free-mode";
3
+ @import "swiper/scss/navigation";
4
+ @import "swiper/scss/thumbs";
5
+ @import "swiper/scss/zoom";
@@ -1,6 +1,5 @@
1
- @import "~@angular/cdk/overlay-prebuilt";
2
- @import "../../../../../../web-essentials/scss/variables";
3
1
  @import "../../../../../../web-essentials/scss/popover";
2
+ @import "@angular/cdk/overlay-prebuilt";
4
3
 
5
4
  /* This file is imported into global ~src/styles.scss to overwrite cdk overlay styles */
6
5
 
@@ -21,7 +21,7 @@
21
21
  .fwe-color-label {
22
22
  height: 18px;
23
23
  font-size: $font-size-small;
24
- font-weight: bold;
24
+ font-weight: $font-weight-bold;
25
25
  margin-bottom: $spacer-xxxs;
26
26
  }
27
27
 
@@ -72,9 +72,9 @@ $knobSize: 14px;
72
72
  display: flex;
73
73
  .fwe-type-indicator {
74
74
  .fwe-input-type {
75
- font-size: 12px;
76
- line-height: 17px;
77
- font-weight: bold;
75
+ font-size: $font-size-small;
76
+ line-height: calc(#{$font-size-small} + 5px);
77
+ font-weight: $font-weight-bold;
78
78
  }
79
79
  flex-shrink: 1;
80
80
  cursor: pointer;