simpo-component-library 0.1.5 → 0.1.7
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/esm2022/lib/elements/navbar-button-element/navbar-button-element.component.mjs +15 -5
- package/esm2022/lib/sections/banner-section/banner-section.model.mjs +1 -1
- package/esm2022/lib/sections/faq-section/faq-section.modal.mjs +1 -1
- package/esm2022/lib/sections/footer-section/footer-section.modal.mjs +1 -1
- package/esm2022/lib/sections/image-carousel-section/image-carousel.model.mjs +1 -1
- package/esm2022/lib/sections/image-grid-section/image-grid-section.model.mjs +1 -1
- package/esm2022/lib/sections/image-section/image-section.model.mjs +1 -1
- package/esm2022/lib/sections/navbar-section/navbar-section.component.mjs +3 -3
- package/esm2022/lib/sections/navbar-section/navbar-section.model.mjs +1 -1
- package/esm2022/lib/sections/service-section/service-section.model.mjs +1 -1
- package/esm2022/lib/sections/team-member-section/team-member-section.model.mjs +1 -1
- package/esm2022/lib/sections/testimonial-section/testimonial-section.model.mjs +1 -1
- package/esm2022/lib/sections/text-image-section/text-image-section.model.mjs +1 -1
- package/esm2022/lib/sections/text-section/text-section.model.mjs +1 -1
- package/esm2022/lib/sections/video-section/video-section.model.mjs +1 -1
- package/esm2022/lib/styles/index.mjs +9 -1
- package/esm2022/lib/styles/style.model.mjs +1 -1
- package/esm2022/lib/styles/types.mjs +1 -1
- package/fesm2022/simpo-component-library.mjs +21 -5
- package/fesm2022/simpo-component-library.mjs.map +1 -1
- package/lib/elements/navbar-button-element/navbar-button-element.component.d.ts +8 -2
- package/lib/sections/banner-section/banner-section.model.d.ts +1 -1
- package/lib/sections/faq-section/faq-section.modal.d.ts +1 -1
- package/lib/sections/footer-section/footer-section.modal.d.ts +3 -3
- package/lib/sections/image-carousel-section/image-carousel.model.d.ts +3 -3
- package/lib/sections/image-grid-section/image-grid-section.model.d.ts +3 -3
- package/lib/sections/image-section/image-section.model.d.ts +2 -2
- package/lib/sections/navbar-section/navbar-section.model.d.ts +6 -0
- package/lib/sections/service-section/service-section.model.d.ts +1 -1
- package/lib/sections/team-member-section/team-member-section.model.d.ts +1 -1
- package/lib/sections/testimonial-section/testimonial-section.model.d.ts +1 -1
- package/lib/sections/text-image-section/text-image-section.model.d.ts +1 -1
- package/lib/sections/text-section/text-section.model.d.ts +1 -1
- package/lib/sections/video-section/video-section.model.d.ts +1 -1
- package/lib/styles/index.d.ts +7 -0
- package/lib/styles/style.model.d.ts +10 -3
- package/lib/styles/types.d.ts +0 -1
- package/package.json +1 -1
- package/simpo-component-library-0.1.7.tgz +0 -0
- package/simpo-component-library-0.1.5.tgz +0 -0
|
@@ -1,7 +1,13 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
1
2
|
import { HeaderButtonModel } from './../../styles/style.model';
|
|
3
|
+
import { HeaderButtonStyle } from './../../styles/index';
|
|
2
4
|
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class NavbarButtonElementComponent {
|
|
5
|
+
export declare class NavbarButtonElementComponent implements OnInit {
|
|
4
6
|
buttonData?: HeaderButtonModel;
|
|
7
|
+
style?: any;
|
|
8
|
+
buttonStyle: typeof HeaderButtonStyle;
|
|
9
|
+
constructor();
|
|
10
|
+
ngOnInit(): void;
|
|
5
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<NavbarButtonElementComponent, never>;
|
|
6
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NavbarButtonElementComponent, "simpo-navbar-button-element", never, { "buttonData": { "alias": "buttonData"; "required": false; }; }, {}, never, never, true, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NavbarButtonElementComponent, "simpo-navbar-button-element", never, { "buttonData": { "alias": "buttonData"; "required": false; }; "style": { "alias": "style"; "required": false; }; }, {}, never, never, true, never>;
|
|
7
13
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ActionModel, BannerStylesModel, Image, InputTextModel } from '
|
|
1
|
+
import { ActionModel, BannerStylesModel, Image, InputTextModel } from './../../styles/style.model';
|
|
2
2
|
export interface BannerSectionModel {
|
|
3
3
|
id: string;
|
|
4
4
|
sectionType: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ButtonStyleModel, InputTextModel, ListItemModal, StylesModel } from '
|
|
1
|
+
import { ButtonStyleModel, InputTextModel, ListItemModal, StylesModel } from './../../styles/style.model';
|
|
2
2
|
export interface FAQSectionModal {
|
|
3
3
|
id: string;
|
|
4
4
|
sectionType: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ChannelType, FooterTypes } from "
|
|
2
|
-
import { ActionModel, BackgroundModel, InputTextModel, SpacingModel } from "
|
|
3
|
-
import { FOOTER_IMAGE_SOURCE, SOCIAL_ICON_SHAPE, SOCIAL_ICON_SIZE, SOCIAL_ICON_TYPE } from "
|
|
1
|
+
import { ChannelType, FooterTypes } from "./../../styles/index";
|
|
2
|
+
import { ActionModel, BackgroundModel, InputTextModel, SpacingModel } from "./../../styles/style.model";
|
|
3
|
+
import { FOOTER_IMAGE_SOURCE, SOCIAL_ICON_SHAPE, SOCIAL_ICON_SIZE, SOCIAL_ICON_TYPE } from "./../../styles/types";
|
|
4
4
|
export interface FooterSectionModel {
|
|
5
5
|
id: string;
|
|
6
6
|
sectionType: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Corners } from '
|
|
2
|
-
import { Image, ImageStyle, InputTextModel, ListItemModal, StylesModel } from '
|
|
3
|
-
import { CARD_SIZE } from '
|
|
1
|
+
import { Corners } from './../../styles/index';
|
|
2
|
+
import { Image, ImageStyle, InputTextModel, ListItemModal, StylesModel } from './../../styles/style.model';
|
|
3
|
+
import { CARD_SIZE } from './../../styles/types';
|
|
4
4
|
export interface ImageCarouselSection {
|
|
5
5
|
id: string;
|
|
6
6
|
sectionType: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Corners } from "
|
|
2
|
-
import { Image, ImageStyle, InputTextModel, ListItemModal, StylesModel } from "
|
|
3
|
-
import { CARD_SIZE } from "
|
|
1
|
+
import { Corners } from "./../../styles/index";
|
|
2
|
+
import { Image, ImageStyle, InputTextModel, ListItemModal, StylesModel } from "./../../styles/style.model";
|
|
3
|
+
import { CARD_SIZE } from "./../../styles/types";
|
|
4
4
|
export interface ImageGridSectionModel {
|
|
5
5
|
id: string;
|
|
6
6
|
sectionType: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Image, InputTextModel, StylesModel } from "
|
|
2
|
-
import { Corners } from "
|
|
1
|
+
import { Image, InputTextModel, StylesModel } from "./../../styles/style.model";
|
|
2
|
+
import { Corners } from "./../../styles/index";
|
|
3
3
|
export interface imageSectionModel {
|
|
4
4
|
id: string;
|
|
5
5
|
sectionType: string;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { HeaderButtonStyle } from "./../../styles/index";
|
|
1
2
|
import { BackgroundModel, ButtonModel, HeaderButtonModel, InputTextModel } from "../../styles/style.model";
|
|
2
3
|
import { FooterLayoutModel, FooterLogoModel, FooterSocialChannelModel } from "../footer-section/footer-section.modal";
|
|
3
4
|
export interface HeaderSectionModel {
|
|
@@ -19,4 +20,9 @@ export interface HeaderContentModel {
|
|
|
19
20
|
export interface HeaderStyleModel {
|
|
20
21
|
layout: FooterLayoutModel;
|
|
21
22
|
background: BackgroundModel;
|
|
23
|
+
navigationStyle: NavigationStyle;
|
|
24
|
+
}
|
|
25
|
+
export interface NavigationStyle {
|
|
26
|
+
label: string;
|
|
27
|
+
type: HeaderButtonStyle;
|
|
22
28
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ActionModel, Button, CardStyles, DisplaySection, Icon, Image, InputTextModel, ListItemModal, StylesModel } from '
|
|
1
|
+
import { ActionModel, Button, CardStyles, DisplaySection, Icon, Image, InputTextModel, ListItemModal, StylesModel } from './../../styles/style.model';
|
|
2
2
|
export interface ServiceSectionModal {
|
|
3
3
|
id: string;
|
|
4
4
|
sectionType: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ActionModel, Button, CardStyles, DisplaySection, Image, InputTextModel, ListItemModal, StylesModel } from '
|
|
1
|
+
import { ActionModel, Button, CardStyles, DisplaySection, Image, InputTextModel, ListItemModal, StylesModel } from './../../styles/style.model';
|
|
2
2
|
export interface TeamMemberSectionModal {
|
|
3
3
|
id: string;
|
|
4
4
|
sectionType: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Image, InputTextModel, ListItemModal, StylesModel } from "
|
|
1
|
+
import { Image, InputTextModel, ListItemModal, StylesModel } from "./../../styles/style.model";
|
|
2
2
|
export interface testimonialSectionModel {
|
|
3
3
|
id: string;
|
|
4
4
|
sectionType: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ActionModel, BannerStylesModel, Image, InputTextModel } from '
|
|
1
|
+
import { ActionModel, BannerStylesModel, Image, InputTextModel } from './../../styles/style.model';
|
|
2
2
|
export interface TextImageSectionModel {
|
|
3
3
|
id: string;
|
|
4
4
|
sectionType: string;
|
package/lib/styles/index.d.ts
CHANGED
|
@@ -121,3 +121,10 @@ export declare enum FooterTypes {
|
|
|
121
121
|
SIMPLE_DETAILS_RIGHT = "Simple Details Right",
|
|
122
122
|
SIMPLE_DETAILS_CENTER = "Simple Details Center"
|
|
123
123
|
}
|
|
124
|
+
export declare enum HeaderButtonStyle {
|
|
125
|
+
TAB = "Tab",
|
|
126
|
+
ROUND_SUBTLE = "Round subtle",
|
|
127
|
+
ROUND_BOLD = "Round bold",
|
|
128
|
+
SQUARE_SUBTLE = "Square subtle",
|
|
129
|
+
SQUARE_BOLD = "Square bold"
|
|
130
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AlignContent, Corners, ImageFit, ImageRatio, RedirectionLinkType, TextPosition } from '.';
|
|
2
|
-
import { ALIGN, ANIMATION_DIRECTION, ANIMATION_SPEED, BUTTON_SHAPE, BUTTON_TYPE, CARD_SIZE, FIT, LAYOUTPOSITION, LINK_TYPE, SPACING_TYPE, CONTENTPOSITION
|
|
2
|
+
import { ALIGN, ANIMATION_DIRECTION, ANIMATION_SPEED, BUTTON_SHAPE, BUTTON_TYPE, CARD_SIZE, FIT, LAYOUTPOSITION, LINK_TYPE, SPACING_TYPE, CONTENTPOSITION } from './types';
|
|
3
3
|
export interface SpacingModel {
|
|
4
4
|
top: SPACING_TYPE;
|
|
5
5
|
bottom: SPACING_TYPE;
|
|
@@ -72,6 +72,13 @@ export interface Button {
|
|
|
72
72
|
redirectionUrl: string;
|
|
73
73
|
newTab: boolean;
|
|
74
74
|
}
|
|
75
|
+
export interface NavbarButton {
|
|
76
|
+
linkType: RedirectionLinkType;
|
|
77
|
+
label: string;
|
|
78
|
+
redirectionUrl: string;
|
|
79
|
+
newTab: boolean;
|
|
80
|
+
status: boolean;
|
|
81
|
+
}
|
|
75
82
|
export interface ListItemModal<T> {
|
|
76
83
|
label: string;
|
|
77
84
|
data: T[];
|
|
@@ -122,9 +129,9 @@ export interface ButtonStyleModel {
|
|
|
122
129
|
shape: BUTTON_SHAPE;
|
|
123
130
|
}
|
|
124
131
|
export interface HeaderButtonStyleModel {
|
|
125
|
-
type: HEADER_BUTTON_STYE;
|
|
126
132
|
color: string;
|
|
127
133
|
backgroundColor: string;
|
|
134
|
+
subtleColor: string;
|
|
128
135
|
}
|
|
129
136
|
export interface ActionModel {
|
|
130
137
|
display: boolean;
|
|
@@ -137,6 +144,6 @@ export interface ButtonModel {
|
|
|
137
144
|
}
|
|
138
145
|
export interface HeaderButtonModel {
|
|
139
146
|
id: string;
|
|
140
|
-
content:
|
|
147
|
+
content: NavbarButton;
|
|
141
148
|
styles: HeaderButtonStyleModel;
|
|
142
149
|
}
|
package/lib/styles/types.d.ts
CHANGED
|
@@ -14,4 +14,3 @@ export type SOCIAL_ICON_SIZE = 'large' | 'medium' | 'small';
|
|
|
14
14
|
export type SOCIAL_ICON_SHAPE = 'circle' | 'square' | 'rounded';
|
|
15
15
|
export type SOCIAL_ICON_TYPE = 'solid' | 'outline';
|
|
16
16
|
export type SITE_NAME_LOGo = 'custom' | 'same as header';
|
|
17
|
-
export type HEADER_BUTTON_STYE = 'Tab' | 'Round subtle' | 'Round bold' | 'Square subtle' | 'Square bold';
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|