simpo-component-library 3.6.56 → 3.6.60

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 (29) hide show
  1. package/esm2022/lib/directive/background-directive.mjs +94 -3
  2. package/esm2022/lib/directive/button-directive.directive.mjs +15 -2
  3. package/esm2022/lib/directive/button-editor.directive.mjs +20 -4
  4. package/esm2022/lib/elements/link-editor/link-editor.component.mjs +43 -9
  5. package/esm2022/lib/elements/simpo-button/simpo-button.component.mjs +3 -3
  6. package/esm2022/lib/sections/banner-section/banner-section.component.mjs +3 -3
  7. package/esm2022/lib/sections/footer/footer.component.mjs +4 -4
  8. package/esm2022/lib/sections/header-section/header-section.component.mjs +10 -3
  9. package/esm2022/lib/sections/process-section/process-section.component.mjs +6 -3
  10. package/esm2022/lib/sections/process-section/process-section.modal.mjs +1 -1
  11. package/esm2022/lib/services/rest.service.mjs +2 -2
  12. package/esm2022/lib/styles/style.model.mjs +1 -1
  13. package/esm2022/lib/styles/types.mjs +1 -1
  14. package/fesm2022/simpo-component-library.mjs +220 -57
  15. package/fesm2022/simpo-component-library.mjs.map +1 -1
  16. package/lib/directive/background-directive.d.ts +1 -1
  17. package/lib/directive/button-directive.directive.d.ts +1 -1
  18. package/lib/directive/button-editor.directive.d.ts +6 -2
  19. package/lib/directive/color.directive.d.ts +1 -1
  20. package/lib/elements/link-editor/link-editor.component.d.ts +7 -1
  21. package/lib/sections/header-section/header-section.component.d.ts +2 -0
  22. package/lib/sections/pricing-section/pricing-section.component.d.ts +1 -1
  23. package/lib/sections/process-section/process-section.component.d.ts +1 -0
  24. package/lib/sections/process-section/process-section.modal.d.ts +2 -0
  25. package/lib/styles/style.model.d.ts +3 -1
  26. package/lib/styles/types.d.ts +4 -2
  27. package/package.json +1 -1
  28. package/simpo-component-library-3.6.60.tgz +0 -0
  29. package/simpo-component-library-3.6.56.tgz +0 -0
@@ -11,7 +11,7 @@ export declare class BackgroundDirective implements OnChanges {
11
11
  constructor(el: ElementRef, eventService: EventsService);
12
12
  ngOnDestroy(): void;
13
13
  ngOnChanges(change: SimpleChanges): void;
14
- getTextColor(bgColor: string): "#ffffff" | "#000000" | "#ffffff;";
14
+ getTextColor(bgColor: string): "#000000" | "#ffffff" | "#ffffff;";
15
15
  static ɵfac: i0.ɵɵFactoryDeclaration<BackgroundDirective, never>;
16
16
  static ɵdir: i0.ɵɵDirectiveDeclaration<BackgroundDirective, "[simpoBackground]", never, { "simpoBackground": { "alias": "simpoBackground"; "required": false; }; "scrollValue": { "alias": "scrollValue"; "required": false; }; }, {}, never, never, true, never>;
17
17
  }
@@ -16,7 +16,7 @@ export declare class ButtonDirectiveDirective implements OnChanges {
16
16
  applyButtonStyleChanges(): void;
17
17
  applyButtonType(style: ButtonStyleModel, backgroundInfo?: BackgroundModel): void;
18
18
  applyButtonShape(style: ButtonStyleModel): void;
19
- getTextColor(bgColor: string): "#ffffff" | "#000000" | "#ffffff;";
19
+ getTextColor(bgColor: string): "#000000" | "#ffffff" | "#ffffff;";
20
20
  buttonStyleSubscription?: Subscription;
21
21
  buttonStyleChangeCheck(): void;
22
22
  changeButtonStyle(id: any, style: ButtonStyleModel, backgroundInfo: BackgroundModel): void;
@@ -1,5 +1,5 @@
1
1
  import { ElementRef } from '@angular/core';
2
- import { Button } from '../styles/style.model';
2
+ import { BackgroundModel, Button, ButtonStyleModel } from '../styles/style.model';
3
3
  import { MatDialog } from '@angular/material/dialog';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class ButtonEditorDirective {
@@ -7,6 +7,10 @@ export declare class ButtonEditorDirective {
7
7
  private matDialog;
8
8
  appButtonEditor: boolean;
9
9
  buttonData?: Button;
10
+ buttonStyle?: ButtonStyleModel;
11
+ backgroundInfo?: BackgroundModel;
12
+ sectionId?: string;
13
+ buttonId: string;
10
14
  private mouseEnterSub?;
11
15
  private mouseLeaveSub?;
12
16
  private clickSub?;
@@ -18,5 +22,5 @@ export declare class ButtonEditorDirective {
18
22
  private cleanup;
19
23
  ngOnDestroy(): void;
20
24
  static ɵfac: i0.ɵɵFactoryDeclaration<ButtonEditorDirective, never>;
21
- static ɵdir: i0.ɵɵDirectiveDeclaration<ButtonEditorDirective, "button[appButtonEditor]", never, { "appButtonEditor": { "alias": "appButtonEditor"; "required": false; }; "buttonData": { "alias": "buttonData"; "required": false; }; }, {}, never, never, true, never>;
25
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ButtonEditorDirective, "button[appButtonEditor]", never, { "appButtonEditor": { "alias": "appButtonEditor"; "required": false; }; "buttonData": { "alias": "buttonData"; "required": false; }; "buttonStyle": { "alias": "buttonStyle"; "required": false; }; "backgroundInfo": { "alias": "backgroundInfo"; "required": false; }; "sectionId": { "alias": "sectionId"; "required": false; }; "buttonId": { "alias": "buttonId"; "required": false; }; }, {}, never, never, true, never>;
22
26
  }
@@ -12,7 +12,7 @@ export declare class ColorDirective implements OnChanges {
12
12
  ngOnDestroy(): void;
13
13
  applyColor(): void;
14
14
  bgColorChangeCheck(): void;
15
- getTextColor(): "#ffffff" | "#000000" | "#ffffff;";
15
+ getTextColor(): "#000000" | "#ffffff" | "#ffffff;";
16
16
  static ɵfac: i0.ɵɵFactoryDeclaration<ColorDirective, never>;
17
17
  static ɵdir: i0.ɵɵDirectiveDeclaration<ColorDirective, "[simpoColor]", never, { "bgColor": { "alias": "simpoColor"; "required": false; }; }, {}, never, never, true, never>;
18
18
  }
@@ -2,24 +2,30 @@ import { Button } from '../../styles/style.model';
2
2
  import { RedirectionLinkType } from '../../styles/index';
3
3
  import { MatDialogRef } from '@angular/material/dialog';
4
4
  import { ElementServiceService } from '../editor-service.service';
5
+ import { EventsService } from '../../services/events.service';
5
6
  import * as i0 from "@angular/core";
6
7
  export declare class LinkEditorComponent {
7
8
  private editorService;
8
9
  dialogRef: MatDialogRef<LinkEditorComponent>;
9
10
  data: any;
11
+ private eventService;
10
12
  link: Button;
11
13
  RedirectionLink: typeof RedirectionLinkType;
12
14
  externalLinkType: Array<type>;
13
15
  selectedType: RedirectionLinkType;
14
16
  linkType: any[];
17
+ buttonTypes: any[];
18
+ buttonShapes: any[];
15
19
  templatePage: any[];
16
20
  addLink: boolean;
17
- constructor(editorService: ElementServiceService, dialogRef: MatDialogRef<LinkEditorComponent>, data: any);
21
+ constructor(editorService: ElementServiceService, dialogRef: MatDialogRef<LinkEditorComponent>, data: any, eventService: EventsService);
18
22
  ngOnInit(): void;
19
23
  closeDialog(): void;
20
24
  getTemplatePage(): void;
21
25
  changeType(type: RedirectionLinkType): void;
22
26
  addNewLink(): void;
27
+ buttonStyles: any;
28
+ changeButtonStyle(): void;
23
29
  static ɵfac: i0.ɵɵFactoryDeclaration<LinkEditorComponent, never>;
24
30
  static ɵcmp: i0.ɵɵComponentDeclaration<LinkEditorComponent, "simpo-link-editor", never, {}, {}, never, never, true, never>;
25
31
  }
@@ -70,6 +70,8 @@ export declare class HeaderSectionComponent implements OnInit {
70
70
  getValues(object: any): unknown[];
71
71
  get userGender(): import("../../ecommerce/styles/user.modal").GENDER | null;
72
72
  get getNavbarButton(): any[];
73
+ isScrolled: boolean;
74
+ onWindowScroll(): void;
73
75
  static ɵfac: i0.ɵɵFactoryDeclaration<HeaderSectionComponent, never>;
74
76
  static ɵcmp: i0.ɵɵComponentDeclaration<HeaderSectionComponent, "simpo-header-section", never, { "data": { "alias": "data"; "required": false; }; "nextComponent": { "alias": "nextComponent"; "required": false; }; "index": { "alias": "index"; "required": false; }; "customClass": { "alias": "customClass"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; }, {}, never, never, true, never>;
75
77
  }
@@ -18,7 +18,7 @@ export declare class PricingSectionComponent extends BaseSection {
18
18
  constructor(_eventService: EventsService);
19
19
  ngOnInit(): void;
20
20
  get stylesLayout(): LayOutModel;
21
- getTextColor(): "#ffffff" | "#000000";
21
+ getTextColor(): "#000000" | "#ffffff";
22
22
  get headingSpace(): SPACING;
23
23
  editSection(): void;
24
24
  redirectTo(): void;
@@ -21,6 +21,7 @@ export declare class ProcessSectionComponent extends BaseSection {
21
21
  get stylesLayout(): LayOutModel;
22
22
  get getJustifyContent(): string;
23
23
  editSection(): void;
24
+ getLength(): number;
24
25
  static ɵfac: i0.ɵɵFactoryDeclaration<ProcessSectionComponent, never>;
25
26
  static ɵcmp: i0.ɵɵComponentDeclaration<ProcessSectionComponent, "simpo-process-section", never, { "data": { "alias": "data"; "required": false; }; "index": { "alias": "index"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "delete": { "alias": "delete"; "required": false; }; "customClass": { "alias": "customClass"; "required": false; }; "nextComponentColor": { "alias": "nextComponentColor"; "required": false; }; }, {}, never, never, true, never>;
26
27
  }
@@ -1,4 +1,5 @@
1
1
  import { BannerStylesModel, CardStyles, Image, InputTextModel, ListItemModal } from './../../styles/style.model';
2
+ import { PROCESS_SECTION_DISPLAY_STYLE } from './../../styles/types';
2
3
  export interface ProcessSectionModel {
3
4
  id: string;
4
5
  sectionType: string;
@@ -15,6 +16,7 @@ export interface ProcessSectionContentModel {
15
16
  listItem: ListItemModal<ProcessSectionItemModal>;
16
17
  }
17
18
  export interface ProcessSectionStylesModel extends BannerStylesModel, CardStyles {
19
+ processSectionDisplayStyle: PROCESS_SECTION_DISPLAY_STYLE;
18
20
  }
19
21
  export interface ProcessSectionItemModal {
20
22
  image: Image;
@@ -1,5 +1,5 @@
1
1
  import { AlignContent, Corners, DeviderType, ImageFit, ImageRatio, OverlayValue, RedirectionLinkType, SPACING, TEXT_SIZE, TextPosition } from '.';
2
- import { ALIGN, ANIMATION_DIRECTION, ANIMATION_SPEED, BUTTON_SHAPE, BUTTON_TYPE, CARD_SIZE, FIT, LAYOUTPOSITION, LINK_TYPE, SPACING_TYPE, CONTENTPOSITION, BORDER_DIRECTION, BACKGROUND_TYPE, FILE_TYPE, GRADIENT_DIRECTION, CONTENT_ANIMATION } from './types';
2
+ import { ALIGN, ANIMATION_DIRECTION, ANIMATION_SPEED, BUTTON_SHAPE, BUTTON_TYPE, CARD_SIZE, FIT, LAYOUTPOSITION, LINK_TYPE, SPACING_TYPE, CONTENTPOSITION, BORDER_DIRECTION, BACKGROUND_TYPE, FILE_TYPE, GRADIENT_DIRECTION, CONTENT_ANIMATION, BACKGROUND_ANIMATION } from './types';
3
3
  export interface SpacingModel {
4
4
  top: SPACING_TYPE;
5
5
  bottom: SPACING_TYPE;
@@ -64,6 +64,7 @@ export interface BackgroundModel {
64
64
  accentBackgroundType: BACKGROUND_TYPE;
65
65
  secondaryColor: string;
66
66
  backgroundGradientDirection: GRADIENT_DIRECTION;
67
+ backgroundAnimation?: BACKGROUND_ANIMATION;
67
68
  }
68
69
  export interface AnimationModel {
69
70
  type: ANIMATION_DIRECTION;
@@ -90,6 +91,7 @@ export interface DisplaySection {
90
91
  showIcon: boolean;
91
92
  linkType: LINK_TYPE;
92
93
  showHeadline: boolean;
94
+ showShrinkingHeader: boolean;
93
95
  }
94
96
  export interface Button {
95
97
  linkType: RedirectionLinkType;
@@ -9,8 +9,8 @@ export type ANIMATION_DIRECTION = 'left' | 'top' | 'bottom' | 'right' | 'fadeIn'
9
9
  export type BORDER_DIRECTION = "ALL" | "LEFT" | "RIGHT" | "TOP" | "BOTTOM";
10
10
  export type ANIMATION_SPEED = 'slow' | 'medium' | 'fast';
11
11
  export type LINK_TYPE = 'Button' | 'List Item';
12
- export type BUTTON_TYPE = 'Solid' | 'Outline';
13
- export type BUTTON_SHAPE = 'Round' | 'Square';
12
+ export type BUTTON_TYPE = 'Solid' | 'Outline' | 'Text';
13
+ export type BUTTON_SHAPE = 'Round' | 'Square' | 'Curve';
14
14
  export type FOOTER_IMAGE_SOURCE = 'BRANDING' | 'UPLOAD';
15
15
  export type SOCIAL_ICON_SIZE = 'large' | 'medium' | 'small';
16
16
  export type SOCIAL_ICON_SHAPE = 'circle' | 'square' | 'rounded';
@@ -22,3 +22,5 @@ export type BANNER_TRANSITION = 'Horizontal' | 'Animated';
22
22
  export type FILE_TYPE = 'Image' | 'Video';
23
23
  export type BACKGROUND_TYPE = 'Solid' | 'Gradient';
24
24
  export type GRADIENT_DIRECTION = 'DOWN' | 'RIGHT' | 'DIAGONAL_RIGHT' | 'DIAGONAL_LEFT';
25
+ export type BACKGROUND_ANIMATION = 'NONE' | 'DANCING_DOTS' | 'SCATTERING_DOTS' | '';
26
+ export type PROCESS_SECTION_DISPLAY_STYLE = 'STYLE1' | 'STYLE2';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "simpo-component-library",
3
- "version": "3.6.56",
3
+ "version": "3.6.60",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.2.0",
6
6
  "@angular/core": "^17.2.0",
Binary file