simpo-component-library 0.3.4 → 0.3.6
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/README.md +24 -24
- package/esm2022/lib/directive/background-directive.mjs +2 -1
- package/esm2022/lib/directive/button-directive.directive.mjs +1 -1
- package/esm2022/lib/directive/column-directive.directive.mjs +1 -1
- package/esm2022/lib/directive/container-fir.directive.mjs +1 -1
- package/esm2022/lib/directive/corner-directive.mjs +1 -1
- package/esm2022/lib/directive/image-directive.directive.mjs +1 -1
- package/esm2022/lib/directive/image-position.directive.mjs +43 -0
- package/esm2022/lib/directive/position-layout-directive.directive.mjs +1 -1
- package/esm2022/lib/directive/text-background-directive.directive.mjs +1 -1
- package/esm2022/lib/elements/below-image-card/below-image-card.component.mjs +4 -3
- package/esm2022/lib/elements/button/button.component.mjs +3 -3
- package/esm2022/lib/elements/button/button.model.mjs +1 -1
- package/esm2022/lib/elements/covering-image-card/covering-image-card.component.mjs +4 -3
- package/esm2022/lib/elements/heading-element/heading-element.component.mjs +3 -3
- package/esm2022/lib/elements/index.mjs +1 -1
- package/esm2022/lib/elements/navbar-button-element/navbar-button-element.component.mjs +30 -10
- package/esm2022/lib/elements/simpo-button/simpo-button.component.mjs +3 -3
- package/esm2022/lib/elements/text/text.component.mjs +3 -3
- package/esm2022/lib/elements/top-of-image-card/top-of-image-card.component.mjs +3 -3
- package/esm2022/lib/sections/add-new-section/add-new-section.component.mjs +3 -3
- package/esm2022/lib/sections/banner-section/banner-section.component.mjs +7 -5
- package/esm2022/lib/sections/faq-section/faq-section.component.mjs +3 -3
- package/esm2022/lib/sections/faq-section/faq-section.modal.mjs +1 -1
- package/esm2022/lib/sections/image-carousel-section/image-carousel-section.component.mjs +3 -3
- package/esm2022/lib/sections/image-carousel-section/image-carousel.model.mjs +1 -1
- package/esm2022/lib/sections/image-grid-section/image-grid-section.component.mjs +7 -5
- package/esm2022/lib/sections/image-grid-section/image-grid-section.model.mjs +1 -1
- package/esm2022/lib/sections/image-section/image-section.component.mjs +7 -5
- package/esm2022/lib/sections/image-section/image-section.model.mjs +1 -1
- package/esm2022/lib/sections/navbar-section/navbar-section.component.mjs +5 -3
- package/esm2022/lib/sections/navbar-section/navbar-section.model.mjs +1 -1
- package/esm2022/lib/sections/service-section/service-section.component.mjs +3 -3
- package/esm2022/lib/sections/service-section/service-section.model.mjs +1 -1
- package/esm2022/lib/sections/team-member-section/team-member-section.component.mjs +3 -3
- package/esm2022/lib/sections/team-member-section/team-member-section.model.mjs +1 -1
- package/esm2022/lib/sections/testimonial-section/testimonial-section.component.mjs +3 -3
- package/esm2022/lib/sections/testimonial-section/testimonial-section.model.mjs +1 -1
- package/esm2022/lib/sections/text-image-section/text-image-section.component.mjs +6 -4
- package/esm2022/lib/sections/text-section/text-section.model.mjs +1 -1
- package/esm2022/lib/sections/video-section/video-section.component.mjs +3 -3
- package/esm2022/lib/sections/video-section/video-section.model.mjs +1 -1
- package/esm2022/lib/services/events.service.mjs +3 -1
- package/esm2022/lib/styles/index.mjs +1 -1
- package/esm2022/lib/styles/style.model.mjs +1 -1
- package/esm2022/lib/styles/types.mjs +1 -1
- package/esm2022/public-api.mjs +2 -1
- package/fesm2022/simpo-component-library.mjs +127 -59
- package/fesm2022/simpo-component-library.mjs.map +1 -1
- package/lib/directive/image-position.directive.d.ts +18 -0
- package/lib/elements/navbar-button-element/navbar-button-element.component.d.ts +12 -6
- package/lib/sections/navbar-section/navbar-section.component.d.ts +2 -0
- package/lib/sections/navbar-section/navbar-section.model.d.ts +8 -12
- package/lib/services/events.service.d.ts +2 -0
- package/lib/styles/style.model.d.ts +1 -2
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
- package/simpo-component-library-0.3.6.tgz +0 -0
- package/simpo-component-library-0.3.4.tgz +0 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ElementRef, OnChanges } from '@angular/core';
|
|
2
|
+
import { PositionModel } from '../styles/style.model';
|
|
3
|
+
import { EventsService } from '../services/events.service';
|
|
4
|
+
import { Subscription } from 'rxjs';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class ObjectPositionDirective implements OnChanges {
|
|
7
|
+
private el;
|
|
8
|
+
private eventService;
|
|
9
|
+
position?: PositionModel;
|
|
10
|
+
constructor(el: ElementRef, eventService: EventsService);
|
|
11
|
+
ngOnChanges(): void;
|
|
12
|
+
ngOnDestroy(): void;
|
|
13
|
+
applyObjectPosition(): void;
|
|
14
|
+
objectPositionSubscription?: Subscription;
|
|
15
|
+
objectPositonChangeCheck(): void;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ObjectPositionDirective, never>;
|
|
17
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ObjectPositionDirective, "[simpoObjectPosition]", never, { "position": { "alias": "simpoObjectPosition"; "required": false; }; }, {}, never, never, true, never>;
|
|
18
|
+
}
|
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { HeaderButtonStyleModel, NavbarButton } from './../../styles/style.model';
|
|
3
3
|
import { HeaderButtonStyle } from './../../styles/index';
|
|
4
|
+
import { EventsService } from '../../services/events.service';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class NavbarButtonElementComponent implements OnInit {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
buttonStyle
|
|
9
|
-
|
|
7
|
+
private _eventService;
|
|
8
|
+
buttonData?: NavbarButton;
|
|
9
|
+
buttonStyle?: HeaderButtonStyleModel;
|
|
10
|
+
selectedStyle?: HeaderButtonStyle;
|
|
11
|
+
bgColor?: string;
|
|
12
|
+
HeaderButtonStyle: typeof HeaderButtonStyle;
|
|
13
|
+
constructor(_eventService: EventsService);
|
|
10
14
|
ngOnInit(): void;
|
|
15
|
+
getTextColor(): "#ffffff" | "#000000" | "#ffffff;";
|
|
16
|
+
changePage(): void;
|
|
11
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<NavbarButtonElementComponent, never>;
|
|
12
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NavbarButtonElementComponent, "simpo-navbar-button-element", never, { "buttonData": { "alias": "buttonData"; "required": false; }; "
|
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NavbarButtonElementComponent, "simpo-navbar-button-element", never, { "buttonData": { "alias": "buttonData"; "required": false; }; "buttonStyle": { "alias": "buttonStyle"; "required": false; }; "selectedStyle": { "alias": "selectedStyle"; "required": false; }; "bgColor": { "alias": "bgColor"; "required": false; }; }, {}, never, never, true, never>;
|
|
13
19
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
2
|
import { HeaderContentModel, HeaderSectionModel, HeaderStyleModel } from './navbar-section.model';
|
|
3
3
|
import { EventsService } from './../../services/events.service';
|
|
4
|
+
import { ActionModel } from '../../styles/style.model';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class NavbarSectionComponent implements OnInit {
|
|
6
7
|
private _eventService;
|
|
@@ -9,6 +10,7 @@ export declare class NavbarSectionComponent implements OnInit {
|
|
|
9
10
|
edit?: boolean;
|
|
10
11
|
content?: HeaderContentModel;
|
|
11
12
|
style?: HeaderStyleModel;
|
|
13
|
+
action?: ActionModel;
|
|
12
14
|
color: string;
|
|
13
15
|
constructor(_eventService: EventsService);
|
|
14
16
|
ngOnInit(): void;
|
|
@@ -1,28 +1,24 @@
|
|
|
1
1
|
import { HeaderButtonStyle } from "./../../styles/index";
|
|
2
|
-
import { BackgroundModel,
|
|
3
|
-
import { FooterLayoutModel, FooterLogoModel,
|
|
2
|
+
import { BackgroundModel, HeaderButtonStyleModel, InputTextModel, NavbarButton } from "../../styles/style.model";
|
|
3
|
+
import { FooterLayoutModel, FooterLogoModel, FooterSocialLinkModel } from "../footer-section/footer-section.modal";
|
|
4
|
+
import { ActionModel } from "../../styles/style.model";
|
|
4
5
|
export interface HeaderSectionModel {
|
|
5
6
|
id: string;
|
|
6
7
|
sectionType: string;
|
|
7
8
|
sectionName: string;
|
|
8
9
|
content: HeaderContentModel;
|
|
9
10
|
styles: HeaderStyleModel;
|
|
11
|
+
action: ActionModel;
|
|
10
12
|
}
|
|
11
13
|
export interface HeaderContentModel {
|
|
12
14
|
siteName: InputTextModel;
|
|
13
15
|
logo: FooterLogoModel;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
isSocialLink: boolean;
|
|
17
|
-
socialLinks: FooterSocialChannelModel[];
|
|
18
|
-
navbarButtons: HeaderButtonModel[];
|
|
16
|
+
socialLinks: FooterSocialLinkModel;
|
|
17
|
+
navbarButtons: NavbarButton[];
|
|
19
18
|
}
|
|
20
19
|
export interface HeaderStyleModel {
|
|
21
20
|
layout: FooterLayoutModel;
|
|
22
21
|
background: BackgroundModel;
|
|
23
|
-
navigationStyle:
|
|
24
|
-
|
|
25
|
-
export interface NavigationStyle {
|
|
26
|
-
label: string;
|
|
27
|
-
type: HeaderButtonStyle;
|
|
22
|
+
navigationStyle: HeaderButtonStyle;
|
|
23
|
+
navbarButtonStyle: HeaderButtonStyleModel;
|
|
28
24
|
}
|
|
@@ -9,6 +9,7 @@ export declare class EventsService {
|
|
|
9
9
|
addNewSectionClick: EventEmitter<unknown>;
|
|
10
10
|
changeContent: EventEmitter<unknown>;
|
|
11
11
|
restyleSection: EventEmitter<unknown>;
|
|
12
|
+
pageRedirectionButton: EventEmitter<unknown>;
|
|
12
13
|
backgroundImageChangeCheck: EventEmitter<unknown>;
|
|
13
14
|
colorOverlayChangeChecks: EventEmitter<unknown>;
|
|
14
15
|
alignmentChangeChecks: EventEmitter<unknown>;
|
|
@@ -22,6 +23,7 @@ export declare class EventsService {
|
|
|
22
23
|
buttonStyleChangeChecks: EventEmitter<unknown>;
|
|
23
24
|
postionLayoutChangeChecks: EventEmitter<unknown>;
|
|
24
25
|
contentAlignmentChangeCheck: EventEmitter<unknown>;
|
|
26
|
+
objectPositionChangeCheck: EventEmitter<unknown>;
|
|
25
27
|
static ɵfac: i0.ɵɵFactoryDeclaration<EventsService, never>;
|
|
26
28
|
static ɵprov: i0.ɵɵInjectableDeclaration<EventsService>;
|
|
27
29
|
}
|
|
@@ -73,11 +73,10 @@ export interface Button {
|
|
|
73
73
|
newTab: boolean;
|
|
74
74
|
}
|
|
75
75
|
export interface NavbarButton {
|
|
76
|
-
linkType: RedirectionLinkType;
|
|
77
76
|
label: string;
|
|
78
77
|
redirectionUrl: string;
|
|
79
|
-
newTab: boolean;
|
|
80
78
|
status: boolean;
|
|
79
|
+
pageId: string;
|
|
81
80
|
}
|
|
82
81
|
export interface ListItemModal<T> {
|
|
83
82
|
label: string;
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -29,6 +29,7 @@ export * from './lib/directive/overlay-directive';
|
|
|
29
29
|
export * from './lib/directive/image-directive.directive';
|
|
30
30
|
export * from './lib/directive/hover-element-directive';
|
|
31
31
|
export * from './lib/directive/footer-layout-directive';
|
|
32
|
+
export * from './lib/directive/image-position.directive';
|
|
32
33
|
export * from './lib/styles/index';
|
|
33
34
|
export * from './lib/styles/style.model';
|
|
34
35
|
export * from './lib/styles/types';
|
|
Binary file
|
|
Binary file
|