simpo-component-library 0.4.7 → 0.4.9
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/components/delete-hover-element/delete-hover-element.component.mjs +3 -3
- package/esm2022/lib/components/index.mjs +6 -5
- package/esm2022/lib/components/input-fields/input-fields.component.mjs +67 -0
- package/esm2022/lib/directive/button-directive.directive.mjs +1 -1
- package/esm2022/lib/directive/color.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 +1 -1
- 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 +3 -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 +3 -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/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/BaseSection.mjs +1 -1
- package/esm2022/lib/sections/add-new-section/add-new-section.component.mjs +3 -3
- package/esm2022/lib/sections/contact-us/contact-us.component.mjs +94 -0
- package/esm2022/lib/sections/contact-us/contact-us.modal.mjs +2 -0
- 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 +3 -3
- package/esm2022/lib/sections/image-grid-section/image-grid-section.model.mjs +1 -1
- package/esm2022/lib/sections/image-section/image-section.component.mjs +3 -3
- package/esm2022/lib/sections/image-section/image-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-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/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 +166 -39
- package/fesm2022/simpo-component-library.mjs.map +1 -1
- package/lib/components/index.d.ts +2 -1
- package/lib/components/input-fields/input-fields.component.d.ts +20 -0
- package/lib/directive/background-directive.d.ts +1 -1
- package/lib/directive/button-directive.directive.d.ts +1 -1
- package/lib/directive/color.directive.d.ts +1 -1
- package/lib/sections/contact-us/contact-us.component.d.ts +22 -0
- package/lib/sections/contact-us/contact-us.modal.d.ts +36 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
- package/simpo-component-library-0.4.9.tgz +0 -0
- package/simpo-component-library-0.4.7.tgz +0 -0
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./hover-elements/hover-elements.component";
|
|
3
3
|
import * as i2 from "./delete-hover-element/delete-hover-element.component";
|
|
4
|
+
import * as i3 from "./input-fields/input-fields.component";
|
|
4
5
|
export declare class SimpoComponentModule {
|
|
5
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<SimpoComponentModule, never>;
|
|
6
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SimpoComponentModule, never, [typeof i1.HoverElementsComponent, typeof i2.DeleteHoverElementComponent], [typeof i1.HoverElementsComponent, typeof i2.DeleteHoverElementComponent]>;
|
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SimpoComponentModule, never, [typeof i1.HoverElementsComponent, typeof i2.DeleteHoverElementComponent, typeof i3.InputFieldsComponent], [typeof i1.HoverElementsComponent, typeof i2.DeleteHoverElementComponent, typeof i3.InputFieldsComponent]>;
|
|
7
8
|
static ɵinj: i0.ɵɵInjectorDeclaration<SimpoComponentModule>;
|
|
8
9
|
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class InputFieldsComponent implements OnChanges {
|
|
4
|
+
feild: any;
|
|
5
|
+
opacity: number | undefined;
|
|
6
|
+
ratingHoverIndex: number | null;
|
|
7
|
+
colorCode: string;
|
|
8
|
+
selectedDropdown: string | null;
|
|
9
|
+
enteredValue: string | null;
|
|
10
|
+
constructor();
|
|
11
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
12
|
+
handleMoneyInput(event: any): void;
|
|
13
|
+
get getTextColor(): "#FFF" | "#000";
|
|
14
|
+
interpolateColor(color1: string, color2: string, factor: number): string;
|
|
15
|
+
padZero(str: string, length: number): string;
|
|
16
|
+
generateColorBasedOnNumber(number: number): string;
|
|
17
|
+
selectDropdown(value: string): void;
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InputFieldsComponent, never>;
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<InputFieldsComponent, "simpo-input-fields", never, { "feild": { "alias": "feild"; "required": false; }; "opacity": { "alias": "opacity"; "required": false; }; }, {}, never, never, true, never>;
|
|
20
|
+
}
|
|
@@ -10,7 +10,7 @@ export declare class BackgroundDirective implements OnChanges {
|
|
|
10
10
|
constructor(el: ElementRef, eventService: EventsService);
|
|
11
11
|
ngOnDestroy(): void;
|
|
12
12
|
ngOnChanges(change: SimpleChanges): void;
|
|
13
|
-
getTextColor(bgColor: string): "#
|
|
13
|
+
getTextColor(bgColor: string): "#000000" | "#ffffff" | "#ffffff;";
|
|
14
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<BackgroundDirective, never>;
|
|
15
15
|
static ɵdir: i0.ɵɵDirectiveDeclaration<BackgroundDirective, "[simpoBackground]", never, { "simpoBackground": { "alias": "simpoBackground"; "required": false; }; }, {}, never, never, true, never>;
|
|
16
16
|
}
|
|
@@ -14,7 +14,7 @@ export declare class ButtonDirectiveDirective implements OnChanges {
|
|
|
14
14
|
applyButtonStyleChanges(): void;
|
|
15
15
|
applyButtonType(style: ButtonStyleModel, color: string): void;
|
|
16
16
|
applyButtonShape(style: ButtonStyleModel): void;
|
|
17
|
-
getTextColor(bgColor: string): "#
|
|
17
|
+
getTextColor(bgColor: string): "#000000" | "#ffffff" | "#ffffff;";
|
|
18
18
|
buttonStyleSubscription?: Subscription;
|
|
19
19
|
buttonStyleChangeCheck(): void;
|
|
20
20
|
changeButtonStyle(id: any, style: ButtonStyleModel, bgColor: string): void;
|
|
@@ -12,7 +12,7 @@ export declare class ColorDirective implements OnChanges {
|
|
|
12
12
|
ngOnDestroy(): void;
|
|
13
13
|
applyColor(): void;
|
|
14
14
|
bgColorChangeCheck(): void;
|
|
15
|
-
getTextColor(): "#
|
|
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
|
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { ButtonModel } from '../../styles/style.model';
|
|
3
|
+
import { EventsService } from './../../services/events.service';
|
|
4
|
+
import { ContactUsContentModel, ContactUsModel, ContactUsStylesModel } from './contact-us.modal';
|
|
5
|
+
import BaseSection from '../BaseSection';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class ContactUsComponent extends BaseSection implements OnInit {
|
|
8
|
+
private _eventService;
|
|
9
|
+
data?: ContactUsModel;
|
|
10
|
+
index?: number;
|
|
11
|
+
content?: ContactUsContentModel;
|
|
12
|
+
edit?: boolean;
|
|
13
|
+
delete?: boolean;
|
|
14
|
+
styles?: ContactUsStylesModel;
|
|
15
|
+
button?: ButtonModel;
|
|
16
|
+
buttonId: string;
|
|
17
|
+
constructor(_eventService: EventsService);
|
|
18
|
+
ngOnInit(): void;
|
|
19
|
+
getWidthByField(field: any): "96" | "48";
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ContactUsComponent, never>;
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ContactUsComponent, "simpo-contact-us", never, { "data": { "alias": "data"; "required": false; }; "index": { "alias": "index"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "delete": { "alias": "delete"; "required": false; }; }, {}, never, never, true, never>;
|
|
22
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { InputTextModel, PositionLayoutModal, StylesModel } from "@simpo-ui/styles/style.model";
|
|
2
|
+
import { INPUT_FIELDS_TYPE } from "projects/simpo-ui/src/public-api";
|
|
3
|
+
import { ActionModel } from "../../styles/style.model";
|
|
4
|
+
export interface ContactUsModel {
|
|
5
|
+
id: string;
|
|
6
|
+
sectionType: string;
|
|
7
|
+
sectionName: string;
|
|
8
|
+
content: ContactUsContentModel;
|
|
9
|
+
styles: ContactUsStylesModel;
|
|
10
|
+
action: ActionModel;
|
|
11
|
+
}
|
|
12
|
+
export interface ContactUsStylesModel extends StylesModel {
|
|
13
|
+
positionLayout: PositionLayoutModal;
|
|
14
|
+
inputOpacity: number;
|
|
15
|
+
}
|
|
16
|
+
export interface ContactUsContentModel {
|
|
17
|
+
inputText: InputTextModel[];
|
|
18
|
+
contactField: ContactUsField;
|
|
19
|
+
}
|
|
20
|
+
interface ContactUsField {
|
|
21
|
+
customLabel: boolean;
|
|
22
|
+
successMessage: string;
|
|
23
|
+
fields: Field[];
|
|
24
|
+
button: string;
|
|
25
|
+
}
|
|
26
|
+
interface Field {
|
|
27
|
+
label: string;
|
|
28
|
+
value: string;
|
|
29
|
+
type: INPUT_FIELDS_TYPE;
|
|
30
|
+
required: boolean;
|
|
31
|
+
options: {
|
|
32
|
+
label: string;
|
|
33
|
+
value: string;
|
|
34
|
+
}[];
|
|
35
|
+
}
|
|
36
|
+
export {};
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export * from './lib/sections/text-image-section/text-image-section.component';
|
|
|
12
12
|
export * from './lib/sections/video-section/video-section.component';
|
|
13
13
|
export * from './lib/sections/navbar-section/navbar-section.component';
|
|
14
14
|
export * from './lib/sections/add-new-section/add-new-section.component';
|
|
15
|
+
export * from './lib/sections/contact-us/contact-us.component';
|
|
15
16
|
export * from './lib/services/events.service';
|
|
16
17
|
export * from './lib/directive/animation-directive';
|
|
17
18
|
export * from './lib/directive/background-directive';
|
|
Binary file
|
|
Binary file
|