fx-form-builder-wrapper 0.0.11 → 0.0.13

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 (59) hide show
  1. package/esm2022/fx-form-builder-wrapper.mjs +5 -0
  2. package/esm2022/lib/components/dynamic-table/dynamic-table.component.mjs +184 -0
  3. package/esm2022/lib/components/fx-form-component/fx-form-component.component.mjs +85 -0
  4. package/esm2022/lib/components/toggle/toggle.component.mjs +33 -0
  5. package/esm2022/lib/components/toggle-button/toggle-button.component.mjs +38 -0
  6. package/esm2022/lib/components/uploader/uploader.component.mjs +58 -0
  7. package/esm2022/lib/custom-controls/dispatch-to-clinic/dispatch-to-clinic.component.mjs +42 -0
  8. package/esm2022/lib/fx-builder-wrapper.component.mjs +76 -0
  9. package/esm2022/lib/fx-builder-wrapper.service.mjs +40 -0
  10. package/esm2022/lib/panel/configuration-panel/configuration-panel.component.mjs +89 -0
  11. package/esm2022/lib/panel/settings-panel/settings-panel.component.mjs +24 -0
  12. package/esm2022/public-api.mjs +7 -0
  13. package/fesm2022/fx-form-builder-wrapper.mjs +615 -0
  14. package/fesm2022/fx-form-builder-wrapper.mjs.map +1 -0
  15. package/index.d.ts +5 -0
  16. package/lib/components/dynamic-table/dynamic-table.component.d.ts +51 -0
  17. package/lib/components/fx-form-component/fx-form-component.component.d.ts +18 -0
  18. package/lib/components/toggle/toggle.component.d.ts +13 -0
  19. package/lib/components/toggle-button/toggle-button.component.d.ts +15 -0
  20. package/lib/components/uploader/uploader.component.d.ts +16 -0
  21. package/lib/custom-controls/dispatch-to-clinic/dispatch-to-clinic.component.d.ts +17 -0
  22. package/lib/fx-builder-wrapper.component.d.ts +18 -0
  23. package/lib/fx-builder-wrapper.service.d.ts +13 -0
  24. package/lib/panel/configuration-panel/configuration-panel.component.d.ts +25 -0
  25. package/lib/panel/settings-panel/settings-panel.component.d.ts +10 -0
  26. package/package.json +18 -5
  27. package/public-api.d.ts +3 -0
  28. package/ng-package.json +0 -7
  29. package/src/lib/components/button/button.component.css +0 -0
  30. package/src/lib/components/button/button.component.html +0 -1
  31. package/src/lib/components/button/button.component.ts +0 -24
  32. package/src/lib/components/dynamic-table/dynamic-table.component.css +0 -0
  33. package/src/lib/components/dynamic-table/dynamic-table.component.html +0 -69
  34. package/src/lib/components/dynamic-table/dynamic-table.component.ts +0 -201
  35. package/src/lib/components/fx-form-component/fx-form-component.component.ts +0 -64
  36. package/src/lib/components/toggle/toggle.component.css +0 -51
  37. package/src/lib/components/toggle/toggle.component.html +0 -12
  38. package/src/lib/components/toggle/toggle.component.ts +0 -33
  39. package/src/lib/components/toggle-button/toggle-button.component.css +0 -22
  40. package/src/lib/components/toggle-button/toggle-button.component.html +0 -10
  41. package/src/lib/components/toggle-button/toggle-button.component.ts +0 -40
  42. package/src/lib/components/uploader/uploader.component.css +0 -49
  43. package/src/lib/components/uploader/uploader.component.html +0 -23
  44. package/src/lib/components/uploader/uploader.component.ts +0 -59
  45. package/src/lib/custom-controls/dispatch-to-clinic/dispatch-to-clinic.component.html +0 -78
  46. package/src/lib/custom-controls/dispatch-to-clinic/dispatch-to-clinic.component.ts +0 -44
  47. package/src/lib/fx-builder-wrapper.component.ts +0 -64
  48. package/src/lib/fx-builder-wrapper.service.ts +0 -34
  49. package/src/lib/panel/configuration-panel/configuration-panel.component.css +0 -65
  50. package/src/lib/panel/configuration-panel/configuration-panel.component.html +0 -96
  51. package/src/lib/panel/configuration-panel/configuration-panel.component.ts +0 -90
  52. package/src/lib/panel/settings-panel/settings-panel.component.css +0 -30
  53. package/src/lib/panel/settings-panel/settings-panel.component.html +0 -28
  54. package/src/lib/panel/settings-panel/settings-panel.component.ts +0 -23
  55. package/src/public-api.ts +0 -7
  56. package/src/styles/styles.css +0 -22
  57. package/tsconfig.lib.json +0 -15
  58. package/tsconfig.lib.prod.json +0 -11
  59. package/tsconfig.spec.json +0 -15
@@ -1,44 +0,0 @@
1
- import { CommonModule } from '@angular/common';
2
- import { ChangeDetectorRef, Component, inject } from '@angular/core';
3
- import { FormGroup, ReactiveFormsModule, Validators, FormBuilder, FormsModule } from '@angular/forms';
4
- import { FxBaseComponent, FxComponent, FxSetting, FxStringSetting, FxValidation, FxValidatorService } from '@instantsys-labs/fx';
5
- import { BehaviorSubject, take } from 'rxjs';
6
-
7
- @Component({
8
- selector: 'lib-dispatch-to-clinic',
9
- standalone: true,
10
- imports: [CommonModule, ReactiveFormsModule, FormsModule, FxComponent],
11
- templateUrl: './dispatch-to-clinic.component.html'
12
- })
13
- export class DispatchToClinicComponent extends FxBaseComponent {
14
- private fb = inject(FormBuilder);
15
-
16
- public clinicAddress$: BehaviorSubject<any> = new BehaviorSubject<any>({});
17
-
18
- public dispatchForm: FormGroup = this.fb.group({
19
- courierName: ['', Validators.required],
20
- trackingNumber: ['', Validators.required],
21
- trackingUrl: ['', [Validators.required, Validators.pattern('https?://.+')]],
22
- notes: ['', Validators.required]
23
- })
24
-
25
- constructor(private cdr: ChangeDetectorRef) {
26
- super(cdr);
27
-
28
- this.onInit.subscribe(() => {
29
- this._register(this.dispatchForm);
30
- });
31
- }
32
-
33
- protected settings(): FxSetting[] {
34
- return [new FxStringSetting({ key: 'heading-text', $title: 'Heading Text', value: 'My Default Value' })];
35
- }
36
-
37
- protected validations(): FxValidation[] {
38
- return [FxValidatorService.required];
39
- }
40
-
41
- public copyToClipboard(address: any): void {
42
- navigator.clipboard.writeText(address);
43
- }
44
- }
@@ -1,64 +0,0 @@
1
- import { CommonModule } from '@angular/common';
2
- import { Component, Input, OnInit, ViewChild } from '@angular/core';
3
- import { FxBuilderConfiguration, FxComponentBuilder, FxForm, FxMode, FxScope, FxUtils } from '@instantsys-labs/fx';
4
- import { DispatchToClinicComponent } from './custom-controls/dispatch-to-clinic/dispatch-to-clinic.component';
5
- import { FxBuilderWrapperService } from './fx-builder-wrapper.service';
6
- import { DynamicTableComponent } from './components/dynamic-table/dynamic-table.component';
7
- import { ToggleButtonComponent } from './components/toggle-button/toggle-button.component';
8
- import { UploaderComponent } from './components/uploader/uploader.component';
9
- import { ToggleComponent } from './components/toggle/toggle.component';
10
-
11
- @Component({
12
- selector: 'fx-builder-wrapper',
13
- standalone: true,
14
- imports: [CommonModule, FxComponentBuilder],
15
- template: `
16
- <fx-component-builder
17
- #componentBuilder
18
- [fx-form]="fxForm"
19
- [configuration]="fxConfiguration"
20
- [scope]="FxScope.BUILDER"
21
- >
22
- </fx-component-builder>
23
- `,
24
- styles: ``
25
- })
26
- export class FxBuilderWrapperComponent implements OnInit {
27
- @ViewChild('componentBuilder') componentBuilder!: FxComponentBuilder;
28
- @Input({ alias: 'fx-form', required: true }) fxForm: FxForm = FxUtils.createNewForm();
29
- public fxMode: FxMode = FxMode.EDIT;
30
- public fxConfiguration: FxBuilderConfiguration = {
31
- settings: true,
32
- logics: true,
33
- customControls: true,
34
- }
35
-
36
- protected readonly FxScope = FxScope;
37
- protected readonly FxMode = FxMode;
38
-
39
- constructor(private fxWrapperService: FxBuilderWrapperService) { }
40
-
41
- public ngOnInit(): void {
42
- if (!Boolean(this.fxWrapperService.getComponent('dispatch-to-clinic'))) {
43
- this.fxWrapperService.registerCustomComponent('Dispatch To Clinic', 'dispatch-to-clinic', DispatchToClinicComponent);
44
- }
45
- if (!Boolean(this.fxWrapperService.getComponent('dynamic-table'))) {
46
- this.fxWrapperService.registerCustomComponent('Dynamic Table', 'dynamic-table', DynamicTableComponent);
47
- }
48
- if (!Boolean(this.fxWrapperService.getComponent('toggle-button'))) {
49
- this.fxWrapperService.registerCustomComponent('Toggle Button', 'toggle-button', ToggleButtonComponent);
50
- }
51
- if (!Boolean(this.fxWrapperService.getComponent('uploader'))) {
52
- this.fxWrapperService.registerCustomComponent('Uploader', 'uploader', UploaderComponent);
53
- }
54
- if (!Boolean(this.fxWrapperService.getComponent('toggle'))) {
55
- this.fxWrapperService.registerCustomComponent('Toggle', 'toggle', ToggleComponent);
56
- }
57
- };
58
-
59
- public getParsedForm(): FxForm {
60
- return this.componentBuilder.getParsedForm();
61
- }
62
- }
63
-
64
-
@@ -1,34 +0,0 @@
1
- import { Injectable, Type } from '@angular/core';
2
- import { FxBaseComponent, FxComponentRegistryService } from '@instantsys-labs/fx';
3
- import { BehaviorSubject, Subject } from 'rxjs';
4
-
5
- @Injectable({
6
- providedIn: 'root'
7
- })
8
- export class FxBuilderWrapperService {
9
- public variables$ = new BehaviorSubject<any | null>(null);
10
- constructor(private fxComponentRegistry: FxComponentRegistryService) { }
11
-
12
- public registerCustomComponent(title: string, selector: string, component: Type<FxBaseComponent>
13
- ): void {
14
- this.fxComponentRegistry.registerComponent(selector, component, {
15
- registeringAs: "CUSTOM",
16
- libraryItem: {
17
- title,
18
- icon: 'fa-eye',
19
- fxData: {
20
- id: null,
21
- name: selector,
22
- value: "",
23
- selector: selector,
24
- elements: [],
25
- events: []
26
- }
27
- },
28
- })
29
- }
30
-
31
- public getComponent(selector: string): Type<FxBaseComponent> | undefined {
32
- return this.fxComponentRegistry.getComponent(selector);
33
- }
34
- }
@@ -1,65 +0,0 @@
1
- /* .form__input {
2
- width: clamp(120px, 50vw, 420px);
3
- width: 100%;
4
- height: 2.5rem;
5
- padding: 0 1.25rem;
6
- border: 1px solid black;
7
- border-radius: 2px;
8
- margin: 0.625rem auto;
9
- transition: all 250ms;
10
- } */
11
-
12
- :host ::ng-deep .p-dialog {
13
- .p-dialog-content {
14
- padding: 1.5rem;
15
- }
16
-
17
- .p-dialog-header {
18
- background: white;
19
- padding: 1rem;
20
- font-size: 1.25rem;
21
- font-weight: bold;
22
- }
23
- }
24
-
25
- .form__input {
26
- width: 100%;
27
- padding: 8px;
28
- border: 1px solid #ccc;
29
- border-radius: 5px;
30
- }
31
-
32
- label {
33
- font-size: 14px;
34
- font-weight: 600;
35
- margin-bottom: 5px;
36
- }
37
-
38
-
39
- .button-group {
40
- display: flex;
41
- justify-content: flex-end;
42
- gap: 10px;
43
- padding-top: 1rem;
44
- }
45
-
46
- button {
47
- padding: 8px 12px;
48
- border: none;
49
- border-radius: 5px;
50
- cursor: pointer;
51
- }
52
-
53
- .cancel {
54
- background: #ccc;
55
- color: black;
56
- }
57
-
58
- .save {
59
- background: #007bff;
60
- color: white;
61
- }
62
-
63
- button:hover {
64
- opacity: 0.8;
65
- }
@@ -1,96 +0,0 @@
1
- <p-dialog [modal]="true" [draggable]="false" [(visible)]="visible" [style]="{ width: '35rem' }">
2
- <ng-content #header>
3
- <div class="flex p-2 bg-white border-2">
4
- <p class="text-base">Edit Configuration</p>
5
- </div>
6
- </ng-content>
7
-
8
- <ng-template #content>
9
- <div class="flex flex-col gap-4 bg-white p-2 border-2 border-gray-200">
10
- <div class="flex items-center gap-4 mb-8">
11
- <label for="rows" class="font-semibold w-24">Rows</label>
12
- <input type="text" [readonly]="enableAPI" [(ngModel)]="rows" placeholder="rows" class="form__input" id="name" autocomplete="rows" />
13
- </div>
14
- <div class="flex items-center gap-4 mb-8">
15
- <label for="enableAPI" class="font-semibold w-24">Enable API</label>
16
- <input type="checkbox" [(ngModel)]="enableAPI" placeholder="API Url" id="enableAPI" autocomplete="enableAPI" />
17
- </div>
18
- @if (enableAPI) {
19
- <div class="flex items-center gap-4 mb-8">
20
- <label for="api" class="font-semibold w-24">API</label>
21
- <input type="text" [(ngModel)]="api" placeholder="Enter API Url" id="api" autocomplete="api" />
22
- </div>
23
- }
24
- <div class="flex items-center gap-4 mb-8">
25
- <div class="grid grid-nogutter">
26
- <div class="col-2 mb-3 flex items-center gap-3">
27
- <p class="text-sm font-semibold">Columns:</p>
28
- <button type="button" (click)="addColumn()">Add Column</button>
29
- </div>
30
- <div class="col-10">
31
- <form [formGroup]="dynamicForm" (ngSubmit)="onSubmit()">
32
- <div formArrayName="columns">
33
- <div *ngFor="let column of columns.controls; let i = index" [formGroupName]="i">
34
- <div class="flex gap-4 mb-2">
35
- <label class="white-space-nowrap">Column Name:</label>
36
- <input formControlName="header" placeholder="Enter Column Name" class="form__input" />
37
- </div>
38
- <div class="flex gap-4">
39
- <label>Column Type:</label>
40
- <select formControlName="cellType">
41
- <option *ngFor="let type of columnTypes" [value]="type">{{type}}</option>
42
- </select>
43
- </div>
44
- @if (enableAPI) {
45
- <div class="flex gap-4 mt-2">
46
- <label>API Value Key:</label>
47
- <input formControlName="apiKey" placeholder="Enter Value Key" class="form__input" />
48
- </div>
49
- }
50
-
51
- <!-- Show options if columnType is 'radio-group' or 'dropdown' -->
52
- <div *ngIf="['radio-group', 'dropdown'].includes(column.value.cellType)">
53
- <div formArrayName="options">
54
- <div *ngFor="let option of getOptions(i).controls; let j = index" [formGroupName]="j">
55
- <label>Option {{ j + 1 }}:</label>
56
- <input formControlName="optionName" placeholder="Enter option name" class="form__input" />
57
- <input formControlName="optionValue" placeholder="Enter option value" class="form__input" />
58
- <button type="button" (click)="getOptions(i).removeAt(j)">Remove Option</button>
59
- </div>
60
- </div>
61
- <button type="button" (click)="addOption(i)">Add Option</button>
62
- </div>
63
-
64
- <!-- Show apiUrl if columnType is 'smart-dropdown' -->
65
- <div *ngIf="['smart-dropdown'].includes(column.value.cellType)" class="flex gap-2">
66
- <div>
67
- <label>API Url</label>
68
- <input formControlName="apiUrl" placeholder="Enter api url" class="form__input" />
69
- </div>
70
- <div>
71
- <label>Value Key</label>
72
- <input formControlName="valueKey" placeholder="Enter Value Key" class="form__input" />
73
- </div>
74
- <div>
75
- <label>Label Key</label>
76
- <input formControlName="labelKey" placeholder="Enter Label Key" class="form__input" />
77
- </div>
78
- </div>
79
-
80
- <button type="button" (click)="columns.removeAt(i)">Remove Column</button>
81
- </div>
82
- </div>
83
- </form>
84
- </div>
85
- </div>
86
- </div>
87
- </div>
88
- </ng-template>
89
-
90
- <ng-template #footer>
91
- <div class="flex justify-end bg-blue-500 gap-4 w-full">
92
- <p-button label="Cancel" severity="secondary" (click)="closeDialog()" />
93
- <p-button styleClass="border border-indigo-600" label="Save" (click)="saveConfiguration()" />
94
- </div>
95
- </ng-template>
96
- </p-dialog>
@@ -1,90 +0,0 @@
1
- import { CommonModule } from '@angular/common';
2
- import { Component, EventEmitter, Input, Output } from '@angular/core';
3
- import { ButtonModule } from 'primeng/button';
4
- import { Dialog } from 'primeng/dialog';
5
- import { InputTextModule } from 'primeng/inputtext';
6
- import { Card } from 'primeng/card';
7
- import { FormArray, FormBuilder, FormGroup, FormsModule, ReactiveFormsModule, Validators } from '@angular/forms';
8
-
9
- @Component({
10
- selector: 'fx-configuration-panel',
11
- standalone: true,
12
- imports: [CommonModule, ReactiveFormsModule, ButtonModule, Dialog, InputTextModule, FormsModule],
13
- templateUrl: './configuration-panel.component.html',
14
- styleUrl: './configuration-panel.component.css'
15
- })
16
- export class ConfigurationPanelComponent {
17
- @Input() visible: boolean = false;
18
- @Output() isVisible = new EventEmitter<boolean>();
19
- @Output() configuration = new EventEmitter<any>();
20
-
21
- public rows: number = 1;
22
- public enableAPI: boolean = false;
23
- public api: string = '';
24
-
25
- public dynamicForm: FormGroup;
26
-
27
- public columnTypes: string[] = ['text', 'input-text', 'input-number', 'dropdown', 'smart-dropdown', 'checkbox', 'radio', 'radio-group', 'file-upload', 'textarea'];
28
-
29
- constructor(private fb: FormBuilder) {
30
- this.dynamicForm = this.fb.group({
31
- columns: this.fb.array([])
32
- });
33
- }
34
-
35
- get columns(): FormArray {
36
- return this.dynamicForm.get('columns') as FormArray;
37
- }
38
-
39
- // Add Column Dynamically
40
- public addColumn(): void {
41
- const columnFormGroup = this.fb.group({
42
- header: ['', Validators.required],
43
- cellType: ['', Validators.required],
44
- placeholder: '',
45
- options: this.fb.array([]),
46
- apiUrl: '',
47
- valueKey: '',
48
- labelKey: '',
49
- className: '',
50
- apiKey: ''
51
- })
52
- this.columns.push(columnFormGroup);
53
- }
54
-
55
- // Remove Column
56
- public removeColumn(index: number): void {
57
- this.columns.removeAt(index);
58
- }
59
-
60
- // Add Options Dynamically
61
- public addOption(columnIndex: number) {
62
- const optionGroup = this.fb.group({
63
- optionName: ['', Validators.required],
64
- optionValue: ['', Validators.required]
65
- });
66
-
67
- const column = this.columns.at(columnIndex) as FormGroup;
68
- const options = column.get('options') as FormArray;
69
- options.push(optionGroup);
70
- }
71
-
72
- // Get options FormArray for a specific column
73
- public getOptions(columnIndex: number) {
74
- const column = this.columns.at(columnIndex) as FormGroup;
75
- return column.get('options') as FormArray;
76
- }
77
-
78
- public closeDialog(): void {
79
- this.isVisible.emit(false);
80
- }
81
-
82
- public saveConfiguration(): void {
83
- this.configuration.emit({ rows: this.rows, columns: this.dynamicForm.value?.columns, enableAPI: this.enableAPI, api: this.api });
84
- this.isVisible.emit(false);
85
- }
86
-
87
- public onSubmit(): void {
88
- console.log("Value columns formArray", this.dynamicForm.value);
89
- }
90
- }
@@ -1,30 +0,0 @@
1
- .fx-element {
2
- position: relative;
3
- }
4
-
5
- .fx-element .fx-overlay {
6
- position: absolute;
7
- top: 0;
8
- left: 0;
9
- width: 100%;
10
- height: 100%;
11
- background: rgba(0, 0, 0, 0.1); /* Light gray with 0.5 transparency */
12
- z-index: -1; /* Place it below the content by default */
13
- pointer-events: none; /* Allow interaction with the underlying content */
14
- opacity: 0; /* Initially hidden */
15
- }
16
-
17
- .fx-element:hover .fx-overlay {
18
- z-index: 1; /* Bring the overlay above content */
19
- opacity: 1; /* Make the overlay visible */
20
- pointer-events: auto; /* Allow interaction with the overlay */
21
- }
22
-
23
- .fx-element:hover .fx-overlay .fx-actions{
24
- position: absolute;
25
- margin-top: -26px;
26
- height: 25px;
27
- border-top-right-radius: 10px;
28
- width: 100%;
29
- border-top-left-radius: 10px;
30
- }
@@ -1,28 +0,0 @@
1
- <fx-configuration-panel [visible]="visible" (isVisible)="visible = $event" (configuration)="configuration.emit($event)"></fx-configuration-panel>
2
-
3
- <div class="fx-element">
4
- <ng-content></ng-content>
5
- <ng-container *ngIf="fxData.$fxForm?.$mode !== FxMode.VIEW">
6
- <div class="fx-overlay border-gray-400 border rounded cursor-pointer" (click)="onElementSelect(fxData)"
7
- (dblclick)="openSettingDialog()">
8
- <div class="fx-actions flex justify-between">
9
-
10
- <div class="bg-gray-700 text-gray-300 px-2 rounded-t ml-2 text-xs flex justify-center items-center">
11
- <div>#{{ fxData.name }}-<span class="text-xs italic">{{ fxData.id }}</span></div>
12
- </div>
13
-
14
- <div class="flex justify-around items-end mr-2">
15
- <div class="cursor-pointer bg-secondary text-white w-8 mr-1 text-center rounded-t" title="Settings"
16
- (click)="fxSettingService.openSetting(fxData)">
17
- <i class="fa fa-cog text-xs"></i>
18
- </div>
19
- <div (click)="deleteElement(fxData)"
20
- class="cursor-pointer bg-red-600 text-white w-8 mr-1 text-center rounded-t" title="Delete">
21
- <i class="fa fa-times text-xs"></i>
22
- </div>
23
- </div>
24
- </div>
25
- </div>
26
- <ng-container #dynamicComponentContainer></ng-container>
27
- </ng-container>
28
- </div>
@@ -1,23 +0,0 @@
1
- import { CommonModule } from '@angular/common';
2
- import { ChangeDetectorRef, Component, EventEmitter, inject, Input, OnInit, Output, ViewChild, ViewContainerRef } from '@angular/core';
3
- import { FxComponent, FxData, FxMode, FxSettingComponent, FxSettingsService, FxUtils } from '@instantsys-labs/fx';
4
- import { Dialog } from 'primeng/dialog';
5
- import { ButtonModule } from 'primeng/button';
6
- import { InputTextModule } from 'primeng/inputtext';
7
- import { ConfigurationPanelComponent } from '../configuration-panel/configuration-panel.component';
8
-
9
- @Component({
10
- selector: 'fx-settings-panel',
11
- standalone: true,
12
- imports: [CommonModule, ButtonModule, InputTextModule, ConfigurationPanelComponent],
13
- templateUrl: './settings-panel.component.html',
14
- styleUrl: './settings-panel.component.css'
15
- })
16
- export class SettingsPanelComponent extends FxComponent implements OnInit {
17
- @Output() configuration = new EventEmitter<any>();
18
- public visible: boolean = false;
19
-
20
- public openSettingDialog(): void {
21
- this.visible = true;
22
- }
23
- }
package/src/public-api.ts DELETED
@@ -1,7 +0,0 @@
1
- /*
2
- * Public API Surface of fx-builder-wrapper
3
- */
4
-
5
- export * from './lib/fx-builder-wrapper.service';
6
- export * from './lib/fx-builder-wrapper.component'; // builder // admin
7
- export * from './lib/components/fx-form-component/fx-form-component.component'; // form preview
@@ -1,22 +0,0 @@
1
- @import "../node_modules/ckeditor5/dist/ckeditor5.css";
2
-
3
- @tailwind base;
4
- @tailwind components;
5
- @tailwind utilities;
6
-
7
- @layer base{
8
- :root {
9
- --color-primary: 21 83 165;
10
- --color-secondary: 245 150 14;
11
- }
12
-
13
- .card {
14
- @apply p-6 bg-white border border-gray-200 rounded-lg shadow dark:bg-gray-800 dark:border-gray-700 dark:text-gray-100;
15
- }
16
-
17
- .ck-powered-by-balloon{
18
- display: none !important;
19
- }
20
-
21
- }
22
-
package/tsconfig.lib.json DELETED
@@ -1,15 +0,0 @@
1
- /* To learn more about Typescript configuration file: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html. */
2
- /* To learn more about Angular compiler options: https://angular.dev/reference/configs/angular-compiler-options. */
3
- {
4
- "extends": "../../tsconfig.json",
5
- "compilerOptions": {
6
- "outDir": "../../out-tsc/lib",
7
- "declaration": true,
8
- "declarationMap": true,
9
- "inlineSources": true,
10
- "types": []
11
- },
12
- "exclude": [
13
- "**/*.spec.ts"
14
- ]
15
- }
@@ -1,11 +0,0 @@
1
- /* To learn more about Typescript configuration file: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html. */
2
- /* To learn more about Angular compiler options: https://angular.dev/reference/configs/angular-compiler-options. */
3
- {
4
- "extends": "./tsconfig.lib.json",
5
- "compilerOptions": {
6
- "declarationMap": false
7
- },
8
- "angularCompilerOptions": {
9
- "compilationMode": "partial"
10
- }
11
- }
@@ -1,15 +0,0 @@
1
- /* To learn more about Typescript configuration file: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html. */
2
- /* To learn more about Angular compiler options: https://angular.dev/reference/configs/angular-compiler-options. */
3
- {
4
- "extends": "../../tsconfig.json",
5
- "compilerOptions": {
6
- "outDir": "../../out-tsc/spec",
7
- "types": [
8
- "jasmine"
9
- ]
10
- },
11
- "include": [
12
- "**/*.spec.ts",
13
- "**/*.d.ts"
14
- ]
15
- }