special-forms 1.0.0
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/.editorconfig +16 -0
- package/.storybook/db-theme.js +8 -0
- package/.storybook/main.js +15 -0
- package/.storybook/manager.js +7 -0
- package/.storybook/preview-head.html +16 -0
- package/.storybook/preview.js +20 -0
- package/.storybook/tsconfig.json +21 -0
- package/.storybook/typings.d.ts +4 -0
- package/.vscode/extensions.json +4 -0
- package/.vscode/launch.json +20 -0
- package/.vscode/tasks.json +42 -0
- package/README.md +27 -0
- package/angular.json +38 -0
- package/documentation.json +10829 -0
- package/package.json +65 -0
- package/projects/special-forms/README.md +24 -0
- package/projects/special-forms/karma.conf.js +44 -0
- package/projects/special-forms/ng-package.json +7 -0
- package/projects/special-forms/package.json +11 -0
- package/projects/special-forms/src/lib/assets/styles.scss +213 -0
- package/projects/special-forms/src/lib/assets/themes/dark.scss +80 -0
- package/projects/special-forms/src/lib/assets/themes/light.scss +78 -0
- package/projects/special-forms/src/lib/aux-storybook-components/form-control-selector/form-control-selector.component.html +5 -0
- package/projects/special-forms/src/lib/aux-storybook-components/form-control-selector/form-control-selector.component.scss +6 -0
- package/projects/special-forms/src/lib/aux-storybook-components/form-control-selector/form-control-selector.component.spec.ts +21 -0
- package/projects/special-forms/src/lib/aux-storybook-components/form-control-selector/form-control-selector.component.ts +21 -0
- package/projects/special-forms/src/lib/aux-storybook-components/form-control-selector/form-control-selector.module.ts +36 -0
- package/projects/special-forms/src/lib/aux-storybook-components/form-control-viewer/form-control-viewer.component.html +5 -0
- package/projects/special-forms/src/lib/aux-storybook-components/form-control-viewer/form-control-viewer.component.scss +18 -0
- package/projects/special-forms/src/lib/aux-storybook-components/form-control-viewer/form-control-viewer.component.spec.ts +23 -0
- package/projects/special-forms/src/lib/aux-storybook-components/form-control-viewer/form-control-viewer.component.ts +66 -0
- package/projects/special-forms/src/lib/aux-storybook-components/form-control-viewer/form-control-viewer.module.ts +16 -0
- package/projects/special-forms/src/lib/aux-storybook-components/form-group-viewer/components/control-dialog.component.html +31 -0
- package/projects/special-forms/src/lib/aux-storybook-components/form-group-viewer/components/control-dialog.component.scss +0 -0
- package/projects/special-forms/src/lib/aux-storybook-components/form-group-viewer/components/control-dialog.component.spec.ts +22 -0
- package/projects/special-forms/src/lib/aux-storybook-components/form-group-viewer/components/control-dialog.component.ts +102 -0
- package/projects/special-forms/src/lib/aux-storybook-components/form-group-viewer/components/settings-strategy/autocomplete.form.ts +87 -0
- package/projects/special-forms/src/lib/aux-storybook-components/form-group-viewer/components/settings-strategy/checkbox.form.ts +51 -0
- package/projects/special-forms/src/lib/aux-storybook-components/form-group-viewer/components/settings-strategy/common.form.interface.ts +24 -0
- package/projects/special-forms/src/lib/aux-storybook-components/form-group-viewer/components/settings-strategy/common.form.ts +31 -0
- package/projects/special-forms/src/lib/aux-storybook-components/form-group-viewer/components/settings-strategy/datepicker.form.ts +56 -0
- package/projects/special-forms/src/lib/aux-storybook-components/form-group-viewer/components/settings-strategy/dropdown.form.ts +80 -0
- package/projects/special-forms/src/lib/aux-storybook-components/form-group-viewer/components/settings-strategy/field.form.ts +189 -0
- package/projects/special-forms/src/lib/aux-storybook-components/form-group-viewer/components/settings-strategy/input.form.ts +71 -0
- package/projects/special-forms/src/lib/aux-storybook-components/form-group-viewer/components/settings-strategy/label.form.ts +33 -0
- package/projects/special-forms/src/lib/aux-storybook-components/form-group-viewer/components/settings-strategy/text-area.form.ts +17 -0
- package/projects/special-forms/src/lib/aux-storybook-components/form-group-viewer/components/settings-strategy/upload.form.ts +35 -0
- package/projects/special-forms/src/lib/aux-storybook-components/form-group-viewer/form-group-viewer.component.html +37 -0
- package/projects/special-forms/src/lib/aux-storybook-components/form-group-viewer/form-group-viewer.component.scss +41 -0
- package/projects/special-forms/src/lib/aux-storybook-components/form-group-viewer/form-group-viewer.component.spec.ts +22 -0
- package/projects/special-forms/src/lib/aux-storybook-components/form-group-viewer/form-group-viewer.component.ts +95 -0
- package/projects/special-forms/src/lib/aux-storybook-components/form-group-viewer/form-group-viewer.module.ts +32 -0
- package/projects/special-forms/src/lib/components/index.ts +61 -0
- package/projects/special-forms/src/lib/components/special-autocomplete/special-autocomplete.component.html +62 -0
- package/projects/special-forms/src/lib/components/special-autocomplete/special-autocomplete.component.scss +3 -0
- package/projects/special-forms/src/lib/components/special-autocomplete/special-autocomplete.component.spec.ts +24 -0
- package/projects/special-forms/src/lib/components/special-autocomplete/special-autocomplete.component.ts +58 -0
- package/projects/special-forms/src/lib/components/special-autocomplete/special-autocomplete.interface.ts +20 -0
- package/projects/special-forms/src/lib/components/special-autocomplete/special-autocomplete.module.ts +25 -0
- package/projects/special-forms/src/lib/components/special-autocomplete/special-autocomplete.stories.ts +81 -0
- package/projects/special-forms/src/lib/components/special-checkbox/special-checkbox.component.html +17 -0
- package/projects/special-forms/src/lib/components/special-checkbox/special-checkbox.component.scss +3 -0
- package/projects/special-forms/src/lib/components/special-checkbox/special-checkbox.component.spec.ts +23 -0
- package/projects/special-forms/src/lib/components/special-checkbox/special-checkbox.component.ts +19 -0
- package/projects/special-forms/src/lib/components/special-checkbox/special-checkbox.interface.ts +12 -0
- package/projects/special-forms/src/lib/components/special-checkbox/special-checkbox.module.ts +25 -0
- package/projects/special-forms/src/lib/components/special-checkbox/special-checkbox.stories.ts +76 -0
- package/projects/special-forms/src/lib/components/special-datepicker/special-datepicker.component.html +26 -0
- package/projects/special-forms/src/lib/components/special-datepicker/special-datepicker.component.scss +3 -0
- package/projects/special-forms/src/lib/components/special-datepicker/special-datepicker.component.spec.ts +23 -0
- package/projects/special-forms/src/lib/components/special-datepicker/special-datepicker.component.ts +21 -0
- package/projects/special-forms/src/lib/components/special-datepicker/special-datepicker.interface.ts +13 -0
- package/projects/special-forms/src/lib/components/special-datepicker/special-datepicker.module.ts +26 -0
- package/projects/special-forms/src/lib/components/special-datepicker/special-datepicker.stories.ts +69 -0
- package/projects/special-forms/src/lib/components/special-dropdown/special-dropdown.component.html +41 -0
- package/projects/special-forms/src/lib/components/special-dropdown/special-dropdown.component.scss +15 -0
- package/projects/special-forms/src/lib/components/special-dropdown/special-dropdown.component.spec.ts +24 -0
- package/projects/special-forms/src/lib/components/special-dropdown/special-dropdown.component.ts +34 -0
- package/projects/special-forms/src/lib/components/special-dropdown/special-dropdown.interface.ts +18 -0
- package/projects/special-forms/src/lib/components/special-dropdown/special-dropdown.module.ts +22 -0
- package/projects/special-forms/src/lib/components/special-dropdown/special-dropdown.stories.ts +83 -0
- package/projects/special-forms/src/lib/components/special-form/special-form-array.component.html +208 -0
- package/projects/special-forms/src/lib/components/special-form/special-form-array.component.scss +70 -0
- package/projects/special-forms/src/lib/components/special-form/special-form-array.component.spec.ts +23 -0
- package/projects/special-forms/src/lib/components/special-form/special-form-array.module.ts +18 -0
- package/projects/special-forms/src/lib/components/special-form/special-form.component.html +20 -0
- package/projects/special-forms/src/lib/components/special-form/special-form.component.scss +3 -0
- package/projects/special-forms/src/lib/components/special-form/special-form.component.spec.ts +22 -0
- package/projects/special-forms/src/lib/components/special-form/special-form.component.ts +85 -0
- package/projects/special-forms/src/lib/components/special-form/special-form.module.ts +40 -0
- package/projects/special-forms/src/lib/components/special-form/special-form.stories.ts +45 -0
- package/projects/special-forms/src/lib/components/special-input/special-input.component.html +37 -0
- package/projects/special-forms/src/lib/components/special-input/special-input.component.scss +3 -0
- package/projects/special-forms/src/lib/components/special-input/special-input.component.spec.ts +23 -0
- package/projects/special-forms/src/lib/components/special-input/special-input.component.ts +39 -0
- package/projects/special-forms/src/lib/components/special-input/special-input.interface.ts +17 -0
- package/projects/special-forms/src/lib/components/special-input/special-input.module.ts +24 -0
- package/projects/special-forms/src/lib/components/special-input/special-input.stories.ts +91 -0
- package/projects/special-forms/src/lib/components/special-label/special-label.component.html +6 -0
- package/projects/special-forms/src/lib/components/special-label/special-label.component.scss +3 -0
- package/projects/special-forms/src/lib/components/special-label/special-label.component.spec.ts +23 -0
- package/projects/special-forms/src/lib/components/special-label/special-label.component.ts +27 -0
- package/projects/special-forms/src/lib/components/special-label/special-label.interface.ts +14 -0
- package/projects/special-forms/src/lib/components/special-label/special-label.module.ts +25 -0
- package/projects/special-forms/src/lib/components/special-label/special-label.stories.ts +99 -0
- package/projects/special-forms/src/lib/components/special-multiple-autocomplete/special-multiple-autocomplete.component.html +82 -0
- package/projects/special-forms/src/lib/components/special-multiple-autocomplete/special-multiple-autocomplete.component.scss +3 -0
- package/projects/special-forms/src/lib/components/special-multiple-autocomplete/special-multiple-autocomplete.component.spec.ts +23 -0
- package/projects/special-forms/src/lib/components/special-multiple-autocomplete/special-multiple-autocomplete.component.ts +86 -0
- package/projects/special-forms/src/lib/components/special-multiple-autocomplete/special-multiple-autocomplete.interface.ts +20 -0
- package/projects/special-forms/src/lib/components/special-multiple-autocomplete/special-multiple-autocomplete.module.ts +28 -0
- package/projects/special-forms/src/lib/components/special-multiple-autocomplete/special-multiple-autocomplete.stories.ts +81 -0
- package/projects/special-forms/src/lib/components/special-text-area/special-text-area.component.html +29 -0
- package/projects/special-forms/src/lib/components/special-text-area/special-text-area.component.scss +3 -0
- package/projects/special-forms/src/lib/components/special-text-area/special-text-area.component.spec.ts +23 -0
- package/projects/special-forms/src/lib/components/special-text-area/special-text-area.component.ts +20 -0
- package/projects/special-forms/src/lib/components/special-text-area/special-text-area.interface.ts +9 -0
- package/projects/special-forms/src/lib/components/special-text-area/special-text-area.module.ts +24 -0
- package/projects/special-forms/src/lib/components/special-text-area/special-text-area.stories.ts +69 -0
- package/projects/special-forms/src/lib/components/special-upload/special-upload.component.html +50 -0
- package/projects/special-forms/src/lib/components/special-upload/special-upload.component.scss +29 -0
- package/projects/special-forms/src/lib/components/special-upload/special-upload.component.spec.ts +23 -0
- package/projects/special-forms/src/lib/components/special-upload/special-upload.component.ts +79 -0
- package/projects/special-forms/src/lib/components/special-upload/special-upload.interface.ts +12 -0
- package/projects/special-forms/src/lib/components/special-upload/special-upload.module.ts +23 -0
- package/projects/special-forms/src/lib/components/special-upload/special-upload.stories.ts +81 -0
- package/projects/special-forms/src/lib/core/aux-data/all-icons.ts +99 -0
- package/projects/special-forms/src/lib/core/aux-data/control-types.enum.ts +16 -0
- package/projects/special-forms/src/lib/core/aux-data/countries.ts +247 -0
- package/projects/special-forms/src/lib/core/aux-data/field-basic-data.ts +14 -0
- package/projects/special-forms/src/lib/core/aux-data/input-types.ts +23 -0
- package/projects/special-forms/src/lib/core/controls/icons.control.ts +8 -0
- package/projects/special-forms/src/lib/core/controls/index.ts +2 -0
- package/projects/special-forms/src/lib/core/controls/theme.control.ts +1 -0
- package/projects/special-forms/src/lib/core/controls/types.control.ts +9 -0
- package/projects/special-forms/src/lib/core/directives/control-render.directive.ts +19 -0
- package/projects/special-forms/src/lib/core/directives/control-render.module.ts +10 -0
- package/projects/special-forms/src/lib/core/forms/special-forms.ts +395 -0
- package/projects/special-forms/src/lib/core/interfaces/field-basics.interfaces.ts +22 -0
- package/projects/special-forms/src/lib/core/interfaces/form.interfaces.ts +83 -0
- package/projects/special-forms/src/lib/core/interfaces/special-control.interface.ts +9 -0
- package/projects/special-forms/src/lib/core/masks/currency.mask.ts +11 -0
- package/projects/special-forms/src/lib/core/masks/maks.enum.ts +12 -0
- package/projects/special-forms/src/lib/core/masks/number.mask.ts +4 -0
- package/projects/special-forms/src/lib/core/services/index.ts +3 -0
- package/projects/special-forms/src/lib/core/services/special-form-builder/special-form-builder.service.spec.ts +16 -0
- package/projects/special-forms/src/lib/core/services/special-form-builder/special-form-builder.service.ts +220 -0
- package/projects/special-forms/src/lib/core/utils/enum-to-array.util.ts +6 -0
- package/projects/special-forms/src/lib/pipes/controls-list-pipe/controls-list.pipe.module.ts +10 -0
- package/projects/special-forms/src/lib/pipes/controls-list-pipe/controls-list.pipe.ts +17 -0
- package/projects/special-forms/src/lib/pipes/error-message-pipe/error.pipe.module.ts +13 -0
- package/projects/special-forms/src/lib/pipes/error-message-pipe/error.pipe.ts +21 -0
- package/projects/special-forms/src/lib/pipes/index.ts +3 -0
- package/projects/special-forms/src/lib/pipes/text-by-function/text-by-function.pipe.module.ts +13 -0
- package/projects/special-forms/src/lib/pipes/text-by-function/text-by-function.pipe.ts +14 -0
- package/projects/special-forms/src/public-api.ts +8 -0
- package/projects/special-forms/src/test.ts +27 -0
- package/projects/special-forms/tsconfig.lib.json +15 -0
- package/projects/special-forms/tsconfig.lib.prod.json +10 -0
- package/projects/special-forms/tsconfig.spec.json +17 -0
- package/scss-bundle.config.json +6 -0
- package/stories/Button.stories.ts +42 -0
- package/stories/Header.stories.ts +35 -0
- package/stories/Introduction.stories.mdx +211 -0
- package/stories/Page.stories.ts +36 -0
- package/stories/User.ts +2 -0
- package/stories/assets/code-brackets.svg +1 -0
- package/stories/assets/colors.svg +1 -0
- package/stories/assets/comments.svg +1 -0
- package/stories/assets/direction.svg +1 -0
- package/stories/assets/flow.svg +1 -0
- package/stories/assets/plugin.svg +1 -0
- package/stories/assets/repo.svg +1 -0
- package/stories/assets/stackalt.svg +1 -0
- package/stories/button.component.ts +53 -0
- package/stories/button.css +30 -0
- package/stories/header.component.ts +75 -0
- package/stories/header.css +32 -0
- package/stories/page.component.ts +77 -0
- package/stories/page.css +69 -0
- package/tailwind.config.js +30 -0
- package/tsconfig.json +39 -0
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
|
|
2
|
+
import { SpecialFormControl } from '../../core/forms/special-forms';
|
|
3
|
+
import { IUploadSettings } from './special-upload.interface';
|
|
4
|
+
import { DomSanitizer } from '@angular/platform-browser';
|
|
5
|
+
import { ChangeDetectionStrategy } from '@angular/core';
|
|
6
|
+
|
|
7
|
+
@Component({
|
|
8
|
+
selector: 'sp-upload',
|
|
9
|
+
templateUrl: './special-upload.component.html',
|
|
10
|
+
styleUrls: ['./special-upload.component.scss'],
|
|
11
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
12
|
+
})
|
|
13
|
+
export class SpecialUploadComponent implements OnInit {
|
|
14
|
+
control: SpecialFormControl<IUploadSettings>;
|
|
15
|
+
|
|
16
|
+
@Input('control') set controlSetter(control) {
|
|
17
|
+
this.control = control;
|
|
18
|
+
this.previewImages = control.value;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@Output() onSelect: EventEmitter<any> = new EventEmitter();
|
|
22
|
+
|
|
23
|
+
previewImages = [];
|
|
24
|
+
|
|
25
|
+
constructor( private sanitizer: DomSanitizer) {}
|
|
26
|
+
|
|
27
|
+
ngOnInit(): void {}
|
|
28
|
+
|
|
29
|
+
onSelectMultiple(event) {
|
|
30
|
+
this.previewImages = [
|
|
31
|
+
...this.previewImages,
|
|
32
|
+
...event.addedFiles.map(file =>
|
|
33
|
+
({
|
|
34
|
+
lastModified: file.lastModified,
|
|
35
|
+
url: this.sanitizer.bypassSecurityTrustUrl(URL.createObjectURL(file))
|
|
36
|
+
}
|
|
37
|
+
))
|
|
38
|
+
];
|
|
39
|
+
|
|
40
|
+
this.control.setValue(
|
|
41
|
+
[
|
|
42
|
+
...this.control.value,
|
|
43
|
+
...event.addedFiles.map(this.fixFileName)
|
|
44
|
+
]
|
|
45
|
+
);
|
|
46
|
+
this.onSelect.emit(this.control.value)
|
|
47
|
+
this.control.markAsDirty();
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
onSelectOne(event) {
|
|
51
|
+
this.previewImages = event.addedFiles.map(file =>
|
|
52
|
+
({
|
|
53
|
+
lastModified: file.lastModified,
|
|
54
|
+
url: this.sanitizer.bypassSecurityTrustUrl(URL.createObjectURL(file))
|
|
55
|
+
}))
|
|
56
|
+
|
|
57
|
+
this.control.setValue(
|
|
58
|
+
event.addedFiles.map(this.fixFileName)
|
|
59
|
+
);
|
|
60
|
+
this.onSelect.emit(this.control.value)
|
|
61
|
+
this.control.markAsDirty();
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
fixFileName(file: File) {
|
|
65
|
+
return Object.defineProperty(file, 'name', {
|
|
66
|
+
writable: true,
|
|
67
|
+
value: file.name.normalize("NFD").replace(/[\u0300-\u036f]/g, "")
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
clean() {
|
|
72
|
+
this.previewImages = [];
|
|
73
|
+
}
|
|
74
|
+
onRemove(file) {
|
|
75
|
+
this.control.setValue(this.control.value.filter(fl => fl.lastModified !== file.lastModified));
|
|
76
|
+
this.previewImages = this.previewImages.filter(fl => fl.lastModified !== file.lastModified)
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { EControlTypes } from '../../core/aux-data/control-types.enum';
|
|
2
|
+
import { IFieldData } from '../../core/interfaces/field-basics.interfaces';
|
|
3
|
+
|
|
4
|
+
export type IUploadSettings = {
|
|
5
|
+
accept?: string,
|
|
6
|
+
multiple?: boolean
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
export interface IUploadField extends IFieldData {
|
|
10
|
+
settings: IUploadSettings;
|
|
11
|
+
type: EControlTypes.upload;
|
|
12
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { SpecialUploadComponent } from './special-upload.component';
|
|
4
|
+
import { MatButtonModule } from '@angular/material/button';
|
|
5
|
+
import { MatIconModule } from '@angular/material/icon';
|
|
6
|
+
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
7
|
+
import { ErrorMessagePipeModule } from '../../pipes';
|
|
8
|
+
import { NgxDropzoneModule } from 'ngx-dropzone';
|
|
9
|
+
|
|
10
|
+
@NgModule({
|
|
11
|
+
declarations: [SpecialUploadComponent],
|
|
12
|
+
imports: [
|
|
13
|
+
FormsModule,
|
|
14
|
+
NgxDropzoneModule,
|
|
15
|
+
CommonModule,
|
|
16
|
+
MatIconModule,
|
|
17
|
+
ReactiveFormsModule,
|
|
18
|
+
MatButtonModule,
|
|
19
|
+
ErrorMessagePipeModule
|
|
20
|
+
],
|
|
21
|
+
exports: [SpecialUploadComponent],
|
|
22
|
+
})
|
|
23
|
+
export class SpecialUploadModule {}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { Story, Meta } from '@storybook/angular';
|
|
2
|
+
import { moduleMetadata } from '@storybook/angular';
|
|
3
|
+
import { FormControlViewerModule } from '../../aux-storybook-components/form-control-viewer/form-control-viewer.module';
|
|
4
|
+
import { FormControlViewerComponent } from '../../aux-storybook-components/form-control-viewer/form-control-viewer.component';
|
|
5
|
+
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
|
6
|
+
import { EControlTypes } from '../../core/aux-data/control-types.enum';
|
|
7
|
+
import { ICONS_CONTROL } from '../../core/controls';
|
|
8
|
+
import { FieldBasicData } from '../../core/aux-data/field-basic-data';
|
|
9
|
+
import { THEMES_CONTROL } from '../../core/controls/theme.control';
|
|
10
|
+
|
|
11
|
+
export default {
|
|
12
|
+
title: 'Special upload control',
|
|
13
|
+
component: FormControlViewerComponent,
|
|
14
|
+
decorators: [
|
|
15
|
+
moduleMetadata({
|
|
16
|
+
imports: [FormControlViewerModule, BrowserAnimationsModule],
|
|
17
|
+
}),
|
|
18
|
+
],
|
|
19
|
+
argTypes: {
|
|
20
|
+
icon: ICONS_CONTROL,
|
|
21
|
+
theme: THEMES_CONTROL,
|
|
22
|
+
},
|
|
23
|
+
} as Meta;
|
|
24
|
+
|
|
25
|
+
const Template: Story<FormControlViewerComponent> = (
|
|
26
|
+
args: FormControlViewerComponent
|
|
27
|
+
) => ({
|
|
28
|
+
title: 'Special upload control',
|
|
29
|
+
template: `
|
|
30
|
+
<spf-form-control-viewer
|
|
31
|
+
[theme]="theme"
|
|
32
|
+
[field]="{
|
|
33
|
+
placeholder: placeholder,
|
|
34
|
+
label: label,
|
|
35
|
+
tooltip: tooltip,
|
|
36
|
+
icon: icon,
|
|
37
|
+
elementId: elementId,
|
|
38
|
+
styleClasses: styleClasses,
|
|
39
|
+
length: length,
|
|
40
|
+
defaultValue:defaultValue,
|
|
41
|
+
required: required,
|
|
42
|
+
hidden: false,
|
|
43
|
+
readOnly: readOnly,
|
|
44
|
+
type: type,
|
|
45
|
+
settings: {
|
|
46
|
+
accept: accept,
|
|
47
|
+
multiple: multiple
|
|
48
|
+
},
|
|
49
|
+
errorMessages: errorMessages
|
|
50
|
+
}"
|
|
51
|
+
>
|
|
52
|
+
</spf-form-control-viewer>`,
|
|
53
|
+
props: {
|
|
54
|
+
...args,
|
|
55
|
+
type: EControlTypes.upload,
|
|
56
|
+
},
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
export const light = Template.bind({});
|
|
60
|
+
light.args = {
|
|
61
|
+
...FieldBasicData,
|
|
62
|
+
label: 'Añade foto o video',
|
|
63
|
+
placeholder: 'O arrastra y suelta la foto/video',
|
|
64
|
+
icon: 'upload_file',
|
|
65
|
+
theme: 'light-theme',
|
|
66
|
+
accept: '',
|
|
67
|
+
multiple: false,
|
|
68
|
+
defaultValue: [],
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
export const dark = Template.bind({});
|
|
72
|
+
dark.args = {
|
|
73
|
+
...FieldBasicData,
|
|
74
|
+
label: 'Añade foto o video',
|
|
75
|
+
placeholder: 'O arrastra y suelta la foto/video',
|
|
76
|
+
icon: 'upload_file',
|
|
77
|
+
theme: 'dark-theme',
|
|
78
|
+
accept: '',
|
|
79
|
+
multiple: false,
|
|
80
|
+
defaultValue: [],
|
|
81
|
+
};
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
export const ICON_NAMES =
|
|
2
|
+
["","360", "svg_anchor","svg_push_pin","3d_rotation", "4k", "ac_unit", "access_alarm", "access_alarms", "access_time", "accessibility",
|
|
3
|
+
"accessibility_new", "accessible", "accessible_forward", "account_balance", "account_balance_wallet", "account_box",
|
|
4
|
+
"account_circle", "account_tree", "adb", "add", "add_a_photo", "add_alarm", "add_alert", "add_box", "add_circle", "add_circle_outline",
|
|
5
|
+
"add_comment", "add_ic_call", "add_location", "add_photo_alternate", "add_shopping_cart", "add_to_home_screen", "add_to_photos",
|
|
6
|
+
"add_to_queue", "adjust", "airline_seat_flat", "airline_seat_flat_angled", "airline_seat_individual_suite", "airline_seat_legroom_extra",
|
|
7
|
+
"airline_seat_legroom_normal", "airline_seat_legroom_reduced", "airline_seat_recline_extra", "airline_seat_recline_normal",
|
|
8
|
+
"airplanemode_active", "airplanemode_inactive", "airplay", "airport_shuttle", "alarm", "alarm_add", "alarm_off", "alarm_on",
|
|
9
|
+
"album", "all_inbox", "all_inclusive", "all_out", "alternate_email", "amp_stories", "android", "announcement", "apartment", "apps",
|
|
10
|
+
"archive", "arrow_back", "arrow_back_ios", "arrow_downward", "arrow_drop_down", "arrow_drop_down_circle", "arrow_drop_up", "arrow_forward",
|
|
11
|
+
"arrow_forward_ios", "arrow_left", "arrow_right", "arrow_right_alt", "arrow_upward", "art_track", "aspect_ratio", "assessment", "assignment",
|
|
12
|
+
"assignment_ind", "assignment_late", "assignment_return", "assignment_returned", "assignment_turned_in", "assistant", "assistant_photo", "atm", "attach_file",
|
|
13
|
+
"attach_money", "attachment", "audiotrack", "autorenew", "av_timer", "backspace", "backup", "ballot", "bar_chart", "bathtub",
|
|
14
|
+
"battery_alert", "battery_charging_full", "svg_miscellaneous_services","svg_construction","battery_full", "battery_std", "battery_unknown", "beach_access", "beenhere", "block",
|
|
15
|
+
"bluetooth", "bluetooth_audio", "bluetooth_connected", "bluetooth_disabled", "bluetooth_searching", "blur_circular", "blur_linear",
|
|
16
|
+
"blur_off", "blur_on", "book", "bookmark", "bookmark_border", "bookmarks", "border_all", "border_bottom", "border_clear", "border_horizontal",
|
|
17
|
+
"border_inner", "border_left", "border_outer", "border_right", "border_style", "border_top", "border_vertical", "branding_watermark",
|
|
18
|
+
"brightness_1", "brightness_2", "brightness_3", "brightness_4", "brightness_5", "brightness_6", "brightness_7", "brightness_auto",
|
|
19
|
+
"brightness_high", "brightness_low", "brightness_medium", "broken_image", "brush", "bubble_chart", "bug_report", "build", "burst_mode",
|
|
20
|
+
"business", "business_center", "cached", "cake", "calendar_today", "calendar_view_day", "call", "call_end", "call_made", "call_merge",
|
|
21
|
+
"call_missed", "call_missed_outgoing", "call_received", "call_split", "call_to_action", "camera", "camera_alt", "camera_enhance",
|
|
22
|
+
"camera_front", "camera_rear", "camera_roll", "cancel", "cancel_presentation", "cancel_schedule_send", "card_giftcard", "card_membership",
|
|
23
|
+
"card_travel", "casino", "cast", "cast_connected", "category", "center_focus_strong", "center_focus_weak", "change_history", "chat", "chat_bubble",
|
|
24
|
+
"chat_bubble_outline", "check", "check_box", "check_box_outline_blank", "check_circle", "check_circle_outline", "chevron_left", "chevron_right",
|
|
25
|
+
"child_care", "child_friendly", "chrome_reader_mode", "class", "clear", "clear_all", "close", "closed_caption", "cloud", "cloud_circle", "cloud_done",
|
|
26
|
+
"cloud_download", "cloud_off", "cloud_queue", "cloud_upload", "code", "collections", "collections_bookmark", "color_lens", "colorize", "comment", "commute",
|
|
27
|
+
"compare", "compare_arrows", "compass_calibration", "computer", "confirmation_number", "contact_mail", "contact_phone", "contact_support", "contactless",
|
|
28
|
+
"contacts", "control_camera", "control_point", "control_point_duplicate", "copyright", "create", "create_new_folder", "credit_card", "crop", "crop_16_9",
|
|
29
|
+
"crop_3_2", "crop_5_4", "crop_7_5", "crop_din", "crop_free", "crop_landscape", "crop_original", "crop_portrait", "crop_rotate", "crop_square", "dashboard", "data_usage",
|
|
30
|
+
"date_range", "deck", "dehaze", "delete", "delete_forever", "delete_outline", "delete_sweep", "departure_board", "description", "desktop_access_disabled",
|
|
31
|
+
"desktop_mac", "desktop_windows", "details", "developer_board", "developer_mode", "device_hub", "device_unknown", "devices", "devices_other", "dialer_sip",
|
|
32
|
+
"dialpad", "directions", "directions_bike", "directions_boat", "directions_bus", "directions_car", "directions_railway", "directions_run", "directions_subway",
|
|
33
|
+
"directions_transit", "directions_walk", "disc_full", "dns", "dock", "domain", "domain_disabled", "done", "done_all", "done_outline", "donut_large", "donut_small", "double_arrow", "drafts", "drag_handle", "drag_indicator", "drive_eta", "duo", "dvr", "dynamic_feed", "eco", "edit", "edit_attributes", "edit_location", "eject", "email", "emoji_emotions", "emoji_events", "emoji_flags", "emoji_food_beverage", "emoji_nature", "emoji_objects", "emoji_people", "emoji_symbols", "emoji_transportation", "enhanced_encryption", "equalizer", "error", "error_outline", "euro", "euro_symbol", "ev_station", "event", "event_available", "event_busy", "event_note", "event_seat", "exit_to_app", "expand_less", "expand_more", "explicit", "explore", "explore_off", "exposure", "exposure_neg_1", "exposure_neg_2", "exposure_plus_1", "exposure_plus_2", "exposure_zero", "extension", "face", "fast_forward", "fast_rewind", "fastfood",
|
|
34
|
+
"favorite", "favorite_border", "featured_play_list", "featured_video", "feedback", "fiber_dvr", "fiber_manual_record", "fiber_new", "fiber_pin", "fiber_smart_record", "file_copy", "filter", "filter_1", "filter_2", "filter_3", "filter_4", "filter_5", "filter_6", "filter_7", "filter_8", "filter_9", "filter_9_plus", "filter_b_and_w", "filter_center_focus", "filter_drama", "filter_frames", "filter_hdr", "filter_list", "filter_none", "filter_tilt_shift", "filter_vintage", "find_in_page", "find_replace", "fingerprint", "fireplace", "first_page", "fitness_center", "flag", "flare", "flash_auto", "flash_off", "flash_on", "flight", "flight_land", "flight_takeoff", "flip", "flip_camera_android", "flip_camera_ios", "flip_to_back", "flip_to_front", "folder", "folder_open", "folder_shared", "folder_special", "font_download", "format_align_center", "format_align_justify", "format_align_left", "format_align_right", "format_bold", "format_clear", "format_color_reset", "format_indent_decrease",
|
|
35
|
+
"format_indent_increase", "format_italic", "format_line_spacing", "format_list_bulleted", "format_list_numbered", "format_list_numbered_rtl", "format_paint",
|
|
36
|
+
"format_quote", "format_shapes", "format_size", "format_strikethrough", "format_textdirection_l_to_r", "format_textdirection_r_to_l", "format_underlined",
|
|
37
|
+
"forum", "forward", "forward_10", "forward_30", "forward_5", "free_breakfast", "fullscreen", "fullscreen_exit", "functions", "g_translate", "gamepad", "games",
|
|
38
|
+
"gavel", "gesture", "get_app", "gif", "golf_course", "gps_fixed", "gps_not_fixed", "gps_off", "grade", "gradient", "grain", "graphic_eq", "grid_off", "grid_on",
|
|
39
|
+
"group", "group_add", "group_work", "hd", "hdr_off", "hdr_on", "hdr_strong", "hdr_weak", "headset", "headset_mic", "healing", "hearing", "height", "help", "help_outline",
|
|
40
|
+
"high_quality", "highlight", "highlight_off", "history", "home", "home_work", "horizontal_split", "hot_tub", "hotel", "hourglass_empty", "hourglass_full", "house",
|
|
41
|
+
"how_to_reg", "how_to_vote", "http", "https", "image", "image_aspect_ratio", "image_search", "import_contacts", "import_export", "important_devices", "inbox",
|
|
42
|
+
"indeterminate_check_box", "info", "input", "insert_chart", "insert_chart_outlined", "insert_comment", "insert_drive_file", "insert_emoticon", "insert_invitation",
|
|
43
|
+
"insert_link", "insert_photo", "invert_colors", "invert_colors_off", "iso", "keyboard", "keyboard_arrow_down", "keyboard_arrow_left", "keyboard_arrow_right",
|
|
44
|
+
"keyboard_arrow_up", "keyboard_backspace", "keyboard_capslock", "keyboard_hide", "keyboard_return", "keyboard_tab", "keyboard_voice", "king_bed", "kitchen",
|
|
45
|
+
"label", "label_important", "label_off", "landscape", "language", "laptop", "laptop_chromebook", "laptop_mac", "laptop_windows", "last_page", "launch", "layers",
|
|
46
|
+
"layers_clear", "leak_add", "leak_remove", "lens", "library_add", "library_add_check", "library_books", "library_music", "line_style", "line_weight", "linear_scale",
|
|
47
|
+
"link", "link_off", "linked_camera", "list", "list_alt", "live_help", "live_tv", "local_activity", "local_airport", "local_atm", "local_bar", "local_cafe",
|
|
48
|
+
"local_car_wash", "local_convenience_store", "local_dining", "local_drink", "local_florist", "local_gas_station", "local_grocery_store", "local_hospital",
|
|
49
|
+
"local_hotel", "local_laundry_service", "local_library", "local_mall", "local_movies", "local_offer", "local_parking", "local_pharmacy", "local_phone", "local_pizza",
|
|
50
|
+
"local_play", "local_post_office", "local_printshop", "local_see", "local_shipping", "local_taxi", "location_city", "location_disabled", "location_off", "location_on",
|
|
51
|
+
"location_searching", "lock", "lock_open", "looks", "looks_3", "looks_4", "looks_5", "looks_6", "looks_one", "looks_two", "loop", "loupe", "low_priority", "loyalty",
|
|
52
|
+
"mail", "mail_outline", "map", "markunread", "markunread_mailbox", "maximize", "meeting_room", "memory", "menu", "menu_book", "menu_open", "merge_type", "message",
|
|
53
|
+
"mic", "mic_none", "mic_off", "minimize", "missed_video_call", "mms", "mobile_friendly", "mobile_off", "mobile_screen_share", "mode_comment", "monetization_on", "money",
|
|
54
|
+
"money_off", "monochrome_photos", "mood", "mood_bad", "more", "more_horiz", "more_vert", "mouse", "move_to_inbox", "movie", "movie_creation", "movie_filter",
|
|
55
|
+
"multiline_chart", "museum", "music_note", "music_off", "music_video", "my_location", "nature", "nature_people", "navigate_before", "navigate_next", "navigation",
|
|
56
|
+
"near_me", "network_check", "network_locked", "new_releases", "next_week", "nfc", "nights_stay", "no_encryption", "no_meeting_room", "no_sim", "not_interested",
|
|
57
|
+
"not_listed_location", "note", "note_add", "notes", "notification_important", "notifications", "notifications_active",
|
|
58
|
+
"notifications_none", "notifications_off", "notifications_paused", "offline_bolt", "offline_pin", "ondemand_video", "opacity", "open_in_browser", "open_in_new",
|
|
59
|
+
"open_with", "outdoor_grill", "outlined_flag", "pages", "pageview", "palette", "pan_tool", "panorama", "panorama_fish_eye", "panorama_horizontal", "panorama_vertical",
|
|
60
|
+
"panorama_wide_angle", "party_mode", "pause", "pause_circle_filled", "pause_circle_outline", "pause_presentation", "payment", "people", "people_alt", "people_outline",
|
|
61
|
+
"perm_camera_mic", "perm_contact_calendar", "perm_data_setting", "perm_device_information", "perm_identity", "perm_media", "perm_phone_msg", "perm_scan_wifi", "person",
|
|
62
|
+
"person_add", "person_add_disabled", "person_outline", "person_pin", "person_pin_circle", "personal_video", "pets", "phone", "phone_android", "phone_bluetooth_speaker",
|
|
63
|
+
"phone_callback", "phone_disabled", "phone_enabled", "phone_forwarded", "phone_in_talk", "phone_iphone", "phone_locked", "phone_missed", "phone_paused", "phonelink",
|
|
64
|
+
"phonelink_erase", "phonelink_lock", "phonelink_off", "phonelink_ring", "phonelink_setup", "photo", "photo_album", "photo_camera", "photo_filter", "photo_library",
|
|
65
|
+
"photo_size_select_actual", "photo_size_select_large", "photo_size_select_small", "picture_as_pdf", "picture_in_picture", "picture_in_picture_alt", "pie_chart",
|
|
66
|
+
"pin_drop", "place", "play_arrow", "play_circle_filled", "play_circle_outline", "play_for_work", "playlist_add", "playlist_add_check", "playlist_play", "plus_one",
|
|
67
|
+
"policy", "poll", "polymer", "pool", "portable_wifi_off", "portrait", "post_add", "power", "power_input", "power_off", "power_settings_new", "pregnant_woman",
|
|
68
|
+
"present_to_all", "print", "print_disabled", "priority_high", "public", "publish", "query_builder", "question_answer", "queue", "queue_music", "queue_play_next",
|
|
69
|
+
"radio", "radio_button_checked", "radio_button_unchecked", "rate_review", "receipt", "recent_actors", "record_voice_over", "redeem", "redo", "refresh", "remove",
|
|
70
|
+
"remove_circle", "remove_circle_outline", "remove_from_queue", "remove_red_eye", "remove_shopping_cart", "reorder", "repeat", "repeat_one", "replay", "replay_10",
|
|
71
|
+
"replay_30", "replay_5", "reply", "reply_all", "report", "report_off", "report_problem", "restaurant", "restaurant_menu", "restore", "restore_from_trash", "restore_page",
|
|
72
|
+
"ring_volume", "room", "room_service", "rotate_90_degrees_ccw", "rotate_left", "rotate_right", "rounded_corner", "router", "rowing", "rss_feed", "rv_hookup", "satellite",
|
|
73
|
+
"save", "save_alt", "scanner", "scatter_plot", "schedule", "school", "score", "screen_lock_landscape", "screen_lock_portrait", "screen_lock_rotation", "screen_rotation",
|
|
74
|
+
"screen_share", "sd_card", "sd_storage", "search", "security", "select_all", "send", "sentiment_dissatisfied", "sentiment_satisfied", "sentiment_satisfied_alt",
|
|
75
|
+
"sentiment_very_dissatisfied", "sentiment_very_satisfied", "settings", "settings_applications", "settings_backup_restore", "settings_bluetooth", "settings_brightness",
|
|
76
|
+
"settings_cell", "settings_ethernet", "settings_input_antenna", "settings_input_component", "settings_input_composite", "settings_input_hdmi", "settings_input_svideo",
|
|
77
|
+
"settings_overscan", "settings_phone", "settings_power", "settings_remote", "settings_system_daydream", "settings_voice", "share", "shop", "shop_two", "shopping_basket",
|
|
78
|
+
"shopping_cart", "short_text", "show_chart", "shuffle", "shutter_speed", "signal_cellular_4_bar", "signal_cellular_alt", "signal_cellular_connected_no_internet_4_bar",
|
|
79
|
+
"signal_cellular_no_sim", "signal_cellular_null", "signal_cellular_off", "signal_wifi_4_bar", "signal_wifi_4_bar_lock", "signal_wifi_off", "sim_card", "single_bed",
|
|
80
|
+
"skip_next", "skip_previous", "slideshow", "slow_motion_video", "smartphone", "smoke_free", "smoking_rooms", "sms", "sms_failed", "snooze", "sort", "sort_by_alpha",
|
|
81
|
+
"spa", "space_bar", "speaker", "speaker_group",
|
|
82
|
+
"speaker_notes", "speaker_notes_off", "speaker_phone", "speed", "spellcheck", "sports", "sports_baseball", "sports_basketball", "sports_cricket", "sports_esports",
|
|
83
|
+
"sports_football", "sports_golf", "sports_handball", "sports_hockey", "sports_kabaddi", "sports_mma", "sports_motorsports", "sports_rugby", "sports_soccer", "sports_tennis",
|
|
84
|
+
"sports_volleyball", "square_foot", "star", "star_border", "star_half", "star_outline", "stars", "stay_current_landscape", "stay_current_portrait", "stay_primary_landscape",
|
|
85
|
+
"stay_primary_portrait", "stop", "stop_screen_share", "storage", "store", "store_mall_directory", "storefront", "straighten", "streetview", "strikethrough_s", "style",
|
|
86
|
+
"subdirectory_arrow_left", "subdirectory_arrow_right", "subject", "subscriptions", "subtitles", "subway", "supervised_user_circle", "supervisor_account", "surround_sound",
|
|
87
|
+
"swap_calls", "swap_horiz", "swap_horizontal_circle", "swap_vert", "swap_vertical_circle", "switch_camera", "switch_video", "sync", "sync_alt", "sync_disabled", "sync_problem",
|
|
88
|
+
"system_update", "system_update_alt", "tab", "tab_unselected",
|
|
89
|
+
"table_chart", "tablet", "tablet_android", "tablet_mac", "tag_faces", "tap_and_play", "terrain", "text_fields", "text_format", "text_rotate_up", "text_rotate_vertical",
|
|
90
|
+
"text_rotation_angledown", "text_rotation_angleup", "text_rotation_down", "text_rotation_none", "textsms", "texture", "theaters", "thumb_down", "thumb_down_alt", "thumb_up",
|
|
91
|
+
"thumb_up_alt", "thumbs_up_down", "time_to_leave", "timelapse", "timeline", "timer", "timer_10", "timer_3", "timer_off", "title", "toc", "today", "toggle_off", "toggle_on",
|
|
92
|
+
"toll", "tonality", "touch_app", "toys", "track_changes", "traffic", "train", "tram", "transfer_within_a_station", "transform", "transit_enterexit", "translate", "trending_down",
|
|
93
|
+
"trending_flat", "trending_up", "trip_origin", "tune", "turned_in", "turned_in_not", "tv", "tv_off", "two_wheeler", "unarchive", "undo", "unfold_less", "unfold_more", "unsubscribe",
|
|
94
|
+
"update", "usb", "verified_user", "vertical_align_bottom", "vertical_align_center", "vertical_align_top", "vertical_split", "vibration", "video_call", "video_label", "video_library",
|
|
95
|
+
"videocam", "videocam_off", "videogame_asset", "view_agenda", "view_array", "view_carousel", "view_column", "view_comfy", "view_compact", "view_day", "view_headline", "view_list",
|
|
96
|
+
"view_module", "view_quilt", "view_stream", "view_week", "vignette", "visibility", "visibility_off", "voice_chat", "voice_over_off", "voicemail", "volume_down", "volume_mute",
|
|
97
|
+
"volume_off", "volume_up", "vpn_key", "vpn_lock", "wallpaper", "warning", "watch", "watch_later", "waves", "wb_auto", "wb_cloudy", "wb_incandescent", "wb_iridescent", "wb_sunny",
|
|
98
|
+
"wc", "web", "web_asset", "weekend", "whatshot", "where_to_vote", "widgets", "wifi", "wifi_lock", "wifi_off", "wifi_tethering", "work", "work_off", "work_outline", "wrap_text",
|
|
99
|
+
"youtube_searched_for", "zoom_in", "zoom_out", "zoom_out_map"]
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export enum EControlTypes {
|
|
2
|
+
pkey = 'PRIMARY-KEY',
|
|
3
|
+
input = 'INPUT',
|
|
4
|
+
textArea = 'TEXT-AREA',
|
|
5
|
+
dropdown = 'DROPDOWN',
|
|
6
|
+
date = 'DATE',
|
|
7
|
+
time = 'TIME',
|
|
8
|
+
checkbox = 'CHECKBOX',
|
|
9
|
+
upload = 'UPLOAD',
|
|
10
|
+
autocomplete = 'AUTOCOMPLETE',
|
|
11
|
+
multiple = 'MULTIPLE-AUTOCOMPLETE',
|
|
12
|
+
array = 'ARRAY',
|
|
13
|
+
form = 'FORM',
|
|
14
|
+
label = 'LABEL',
|
|
15
|
+
default = 'DEFAULT',
|
|
16
|
+
}
|
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
import { of } from "rxjs";
|
|
2
|
+
|
|
3
|
+
export const countries = () => of([
|
|
4
|
+
{ name: 'Afghanistan', code: 'AF' },
|
|
5
|
+
{ name: 'Åland Islands', code: 'AX' },
|
|
6
|
+
{ name: 'Albania', code: 'AL' },
|
|
7
|
+
{ name: 'Algeria', code: 'DZ' },
|
|
8
|
+
{ name: 'American Samoa', code: 'AS' },
|
|
9
|
+
{ name: 'AndorrA', code: 'AD' },
|
|
10
|
+
{ name: 'Angola', code: 'AO' },
|
|
11
|
+
{ name: 'Anguilla', code: 'AI' },
|
|
12
|
+
{ name: 'Antarctica', code: 'AQ' },
|
|
13
|
+
{ name: 'Antigua and Barbuda', code: 'AG' },
|
|
14
|
+
{ name: 'Argentina', code: 'AR' },
|
|
15
|
+
{ name: 'Armenia', code: 'AM' },
|
|
16
|
+
{ name: 'Aruba', code: 'AW' },
|
|
17
|
+
{ name: 'Australia', code: 'AU' },
|
|
18
|
+
{ name: 'Austria', code: 'AT' },
|
|
19
|
+
{ name: 'Azerbaijan', code: 'AZ' },
|
|
20
|
+
{ name: 'Bahamas', code: 'BS' },
|
|
21
|
+
{ name: 'Bahrain', code: 'BH' },
|
|
22
|
+
{ name: 'Bangladesh', code: 'BD' },
|
|
23
|
+
{ name: 'Barbados', code: 'BB' },
|
|
24
|
+
{ name: 'Belarus', code: 'BY' },
|
|
25
|
+
{ name: 'Belgium', code: 'BE' },
|
|
26
|
+
{ name: 'Belize', code: 'BZ' },
|
|
27
|
+
{ name: 'Benin', code: 'BJ' },
|
|
28
|
+
{ name: 'Bermuda', code: 'BM' },
|
|
29
|
+
{ name: 'Bhutan', code: 'BT' },
|
|
30
|
+
{ name: 'Bolivia', code: 'BO' },
|
|
31
|
+
{ name: 'Bosnia and Herzegovina', code: 'BA' },
|
|
32
|
+
{ name: 'Botswana', code: 'BW' },
|
|
33
|
+
{ name: 'Bouvet Island', code: 'BV' },
|
|
34
|
+
{ name: 'Brazil', code: 'BR' },
|
|
35
|
+
{ name: 'British Indian Ocean Territory', code: 'IO' },
|
|
36
|
+
{ name: 'Brunei Darussalam', code: 'BN' },
|
|
37
|
+
{ name: 'Bulgaria', code: 'BG' },
|
|
38
|
+
{ name: 'Burkina Faso', code: 'BF' },
|
|
39
|
+
{ name: 'Burundi', code: 'BI' },
|
|
40
|
+
{ name: 'Cambodia', code: 'KH' },
|
|
41
|
+
{ name: 'Cameroon', code: 'CM' },
|
|
42
|
+
{ name: 'Canada', code: 'CA' },
|
|
43
|
+
{ name: 'Cape Verde', code: 'CV' },
|
|
44
|
+
{ name: 'Cayman Islands', code: 'KY' },
|
|
45
|
+
{ name: 'Central African Republic', code: 'CF' },
|
|
46
|
+
{ name: 'Chad', code: 'TD' },
|
|
47
|
+
{ name: 'Chile', code: 'CL' },
|
|
48
|
+
{ name: 'China', code: 'CN' },
|
|
49
|
+
{ name: 'Christmas Island', code: 'CX' },
|
|
50
|
+
{ name: 'Cocos (Keeling) Islands', code: 'CC' },
|
|
51
|
+
{ name: 'Colombia', code: 'CO' },
|
|
52
|
+
{ name: 'Comoros', code: 'KM' },
|
|
53
|
+
{ name: 'Congo', code: 'CG' },
|
|
54
|
+
{ name: 'Congo, The Democratic Republic of the', code: 'CD' },
|
|
55
|
+
{ name: 'Cook Islands', code: 'CK' },
|
|
56
|
+
{ name: 'Costa Rica', code: 'CR' },
|
|
57
|
+
{ name: "Cote D'Ivoire", code: 'CI' },
|
|
58
|
+
{ name: 'Croatia', code: 'HR' },
|
|
59
|
+
{ name: 'Cuba', code: 'CU' },
|
|
60
|
+
{ name: 'Cyprus', code: 'CY' },
|
|
61
|
+
{ name: 'Czech Republic', code: 'CZ' },
|
|
62
|
+
{ name: 'Denmark', code: 'DK' },
|
|
63
|
+
{ name: 'Djibouti', code: 'DJ' },
|
|
64
|
+
{ name: 'Dominica', code: 'DM' },
|
|
65
|
+
{ name: 'Dominican Republic', code: 'DO' },
|
|
66
|
+
{ name: 'Ecuador', code: 'EC' },
|
|
67
|
+
{ name: 'Egypt', code: 'EG' },
|
|
68
|
+
{ name: 'El Salvador', code: 'SV' },
|
|
69
|
+
{ name: 'Equatorial Guinea', code: 'GQ' },
|
|
70
|
+
{ name: 'Eritrea', code: 'ER' },
|
|
71
|
+
{ name: 'Estonia', code: 'EE' },
|
|
72
|
+
{ name: 'Ethiopia', code: 'ET' },
|
|
73
|
+
{ name: 'Falkland Islands (Malvinas)', code: 'FK' },
|
|
74
|
+
{ name: 'Faroe Islands', code: 'FO' },
|
|
75
|
+
{ name: 'Fiji', code: 'FJ' },
|
|
76
|
+
{ name: 'Finland', code: 'FI' },
|
|
77
|
+
{ name: 'France', code: 'FR' },
|
|
78
|
+
{ name: 'French Guiana', code: 'GF' },
|
|
79
|
+
{ name: 'French Polynesia', code: 'PF' },
|
|
80
|
+
{ name: 'French Southern Territories', code: 'TF' },
|
|
81
|
+
{ name: 'Gabon', code: 'GA' },
|
|
82
|
+
{ name: 'Gambia', code: 'GM' },
|
|
83
|
+
{ name: 'Georgia', code: 'GE' },
|
|
84
|
+
{ name: 'Germany', code: 'DE' },
|
|
85
|
+
{ name: 'Ghana', code: 'GH' },
|
|
86
|
+
{ name: 'Gibraltar', code: 'GI' },
|
|
87
|
+
{ name: 'Greece', code: 'GR' },
|
|
88
|
+
{ name: 'Greenland', code: 'GL' },
|
|
89
|
+
{ name: 'Grenada', code: 'GD' },
|
|
90
|
+
{ name: 'Guadeloupe', code: 'GP' },
|
|
91
|
+
{ name: 'Guam', code: 'GU' },
|
|
92
|
+
{ name: 'Guatemala', code: 'GT' },
|
|
93
|
+
{ name: 'Guernsey', code: 'GG' },
|
|
94
|
+
{ name: 'Guinea', code: 'GN' },
|
|
95
|
+
{ name: 'Guinea-Bissau', code: 'GW' },
|
|
96
|
+
{ name: 'Guyana', code: 'GY' },
|
|
97
|
+
{ name: 'Haiti', code: 'HT' },
|
|
98
|
+
{ name: 'Heard Island and Mcdonald Islands', code: 'HM' },
|
|
99
|
+
{ name: 'Holy See (Vatican City State)', code: 'VA' },
|
|
100
|
+
{ name: 'Honduras', code: 'HN' },
|
|
101
|
+
{ name: 'Hong Kong', code: 'HK' },
|
|
102
|
+
{ name: 'Hungary', code: 'HU' },
|
|
103
|
+
{ name: 'Iceland', code: 'IS' },
|
|
104
|
+
{ name: 'India', code: 'IN' },
|
|
105
|
+
{ name: 'Indonesia', code: 'ID' },
|
|
106
|
+
{ name: 'Iran, Islamic Republic Of', code: 'IR' },
|
|
107
|
+
{ name: 'Iraq', code: 'IQ' },
|
|
108
|
+
{ name: 'Ireland', code: 'IE' },
|
|
109
|
+
{ name: 'Isle of Man', code: 'IM' },
|
|
110
|
+
{ name: 'Israel', code: 'IL' },
|
|
111
|
+
{ name: 'Italy', code: 'IT' },
|
|
112
|
+
{ name: 'Jamaica', code: 'JM' },
|
|
113
|
+
{ name: 'Japan', code: 'JP' },
|
|
114
|
+
{ name: 'Jersey', code: 'JE' },
|
|
115
|
+
{ name: 'Jordan', code: 'JO' },
|
|
116
|
+
{ name: 'Kazakhstan', code: 'KZ' },
|
|
117
|
+
{ name: 'Kenya', code: 'KE' },
|
|
118
|
+
{ name: 'Kiribati', code: 'KI' },
|
|
119
|
+
{ name: "Korea, Democratic People'S Republic of", code: 'KP' },
|
|
120
|
+
{ name: 'Korea, Republic of', code: 'KR' },
|
|
121
|
+
{ name: 'Kuwait', code: 'KW' },
|
|
122
|
+
{ name: 'Kyrgyzstan', code: 'KG' },
|
|
123
|
+
{ name: "Lao People'S Democratic Republic", code: 'LA' },
|
|
124
|
+
{ name: 'Latvia', code: 'LV' },
|
|
125
|
+
{ name: 'Lebanon', code: 'LB' },
|
|
126
|
+
{ name: 'Lesotho', code: 'LS' },
|
|
127
|
+
{ name: 'Liberia', code: 'LR' },
|
|
128
|
+
{ name: 'Libyan Arab Jamahiriya', code: 'LY' },
|
|
129
|
+
{ name: 'Liechtenstein', code: 'LI' },
|
|
130
|
+
{ name: 'Lithuania', code: 'LT' },
|
|
131
|
+
{ name: 'Luxembourg', code: 'LU' },
|
|
132
|
+
{ name: 'Macao', code: 'MO' },
|
|
133
|
+
{ name: 'Macedonia, The Former Yugoslav Republic of', code: 'MK' },
|
|
134
|
+
{ name: 'Madagascar', code: 'MG' },
|
|
135
|
+
{ name: 'Malawi', code: 'MW' },
|
|
136
|
+
{ name: 'Malaysia', code: 'MY' },
|
|
137
|
+
{ name: 'Maldives', code: 'MV' },
|
|
138
|
+
{ name: 'Mali', code: 'ML' },
|
|
139
|
+
{ name: 'Malta', code: 'MT' },
|
|
140
|
+
{ name: 'Marshall Islands', code: 'MH' },
|
|
141
|
+
{ name: 'Martinique', code: 'MQ' },
|
|
142
|
+
{ name: 'Mauritania', code: 'MR' },
|
|
143
|
+
{ name: 'Mauritius', code: 'MU' },
|
|
144
|
+
{ name: 'Mayotte', code: 'YT' },
|
|
145
|
+
{ name: 'Mexico', code: 'MX' },
|
|
146
|
+
{ name: 'Micronesia, Federated States of', code: 'FM' },
|
|
147
|
+
{ name: 'Moldova, Republic of', code: 'MD' },
|
|
148
|
+
{ name: 'Monaco', code: 'MC' },
|
|
149
|
+
{ name: 'Mongolia', code: 'MN' },
|
|
150
|
+
{ name: 'Montserrat', code: 'MS' },
|
|
151
|
+
{ name: 'Morocco', code: 'MA' },
|
|
152
|
+
{ name: 'Mozambique', code: 'MZ' },
|
|
153
|
+
{ name: 'Myanmar', code: 'MM' },
|
|
154
|
+
{ name: 'Namibia', code: 'NA' },
|
|
155
|
+
{ name: 'Nauru', code: 'NR' },
|
|
156
|
+
{ name: 'Nepal', code: 'NP' },
|
|
157
|
+
{ name: 'Netherlands', code: 'NL' },
|
|
158
|
+
{ name: 'Netherlands Antilles', code: 'AN' },
|
|
159
|
+
{ name: 'New Caledonia', code: 'NC' },
|
|
160
|
+
{ name: 'New Zealand', code: 'NZ' },
|
|
161
|
+
{ name: 'Nicaragua', code: 'NI' },
|
|
162
|
+
{ name: 'Niger', code: 'NE' },
|
|
163
|
+
{ name: 'Nigeria', code: 'NG' },
|
|
164
|
+
{ name: 'Niue', code: 'NU' },
|
|
165
|
+
{ name: 'Norfolk Island', code: 'NF' },
|
|
166
|
+
{ name: 'Northern Mariana Islands', code: 'MP' },
|
|
167
|
+
{ name: 'Norway', code: 'NO' },
|
|
168
|
+
{ name: 'Oman', code: 'OM' },
|
|
169
|
+
{ name: 'Pakistan', code: 'PK' },
|
|
170
|
+
{ name: 'Palau', code: 'PW' },
|
|
171
|
+
{ name: 'Palestinian Territory, Occupied', code: 'PS' },
|
|
172
|
+
{ name: 'Panama', code: 'PA' },
|
|
173
|
+
{ name: 'Papua New Guinea', code: 'PG' },
|
|
174
|
+
{ name: 'Paraguay', code: 'PY' },
|
|
175
|
+
{ name: 'Peru', code: 'PE' },
|
|
176
|
+
{ name: 'Philippines', code: 'PH' },
|
|
177
|
+
{ name: 'Pitcairn', code: 'PN' },
|
|
178
|
+
{ name: 'Poland', code: 'PL' },
|
|
179
|
+
{ name: 'Portugal', code: 'PT' },
|
|
180
|
+
{ name: 'Puerto Rico', code: 'PR' },
|
|
181
|
+
{ name: 'Qatar', code: 'QA' },
|
|
182
|
+
{ name: 'Reunion', code: 'RE' },
|
|
183
|
+
{ name: 'Romania', code: 'RO' },
|
|
184
|
+
{ name: 'Russian Federation', code: 'RU' },
|
|
185
|
+
{ name: 'RWANDA', code: 'RW' },
|
|
186
|
+
{ name: 'Saint Helena', code: 'SH' },
|
|
187
|
+
{ name: 'Saint Kitts and Nevis', code: 'KN' },
|
|
188
|
+
{ name: 'Saint Lucia', code: 'LC' },
|
|
189
|
+
{ name: 'Saint Pierre and Miquelon', code: 'PM' },
|
|
190
|
+
{ name: 'Saint Vincent and the Grenadines', code: 'VC' },
|
|
191
|
+
{ name: 'Samoa', code: 'WS' },
|
|
192
|
+
{ name: 'San Marino', code: 'SM' },
|
|
193
|
+
{ name: 'Sao Tome and Principe', code: 'ST' },
|
|
194
|
+
{ name: 'Saudi Arabia', code: 'SA' },
|
|
195
|
+
{ name: 'Senegal', code: 'SN' },
|
|
196
|
+
{ name: 'Serbia and Montenegro', code: 'CS' },
|
|
197
|
+
{ name: 'Seychelles', code: 'SC' },
|
|
198
|
+
{ name: 'Sierra Leone', code: 'SL' },
|
|
199
|
+
{ name: 'Singapore', code: 'SG' },
|
|
200
|
+
{ name: 'Slovakia', code: 'SK' },
|
|
201
|
+
{ name: 'Slovenia', code: 'SI' },
|
|
202
|
+
{ name: 'Solomon Islands', code: 'SB' },
|
|
203
|
+
{ name: 'Somalia', code: 'SO' },
|
|
204
|
+
{ name: 'South Africa', code: 'ZA' },
|
|
205
|
+
{ name: 'South Georgia and the South Sandwich Islands', code: 'GS' },
|
|
206
|
+
{ name: 'Spain', code: 'ES' },
|
|
207
|
+
{ name: 'Sri Lanka', code: 'LK' },
|
|
208
|
+
{ name: 'Sudan', code: 'SD' },
|
|
209
|
+
{ name: 'Suriname', code: 'SR' },
|
|
210
|
+
{ name: 'Svalbard and Jan Mayen', code: 'SJ' },
|
|
211
|
+
{ name: 'Swaziland', code: 'SZ' },
|
|
212
|
+
{ name: 'Sweden', code: 'SE' },
|
|
213
|
+
{ name: 'Switzerland', code: 'CH' },
|
|
214
|
+
{ name: 'Syrian Arab Republic', code: 'SY' },
|
|
215
|
+
{ name: 'Taiwan, Province of China', code: 'TW' },
|
|
216
|
+
{ name: 'Tajikistan', code: 'TJ' },
|
|
217
|
+
{ name: 'Tanzania, United Republic of', code: 'TZ' },
|
|
218
|
+
{ name: 'Thailand', code: 'TH' },
|
|
219
|
+
{ name: 'Timor-Leste', code: 'TL' },
|
|
220
|
+
{ name: 'Togo', code: 'TG' },
|
|
221
|
+
{ name: 'Tokelau', code: 'TK' },
|
|
222
|
+
{ name: 'Tonga', code: 'TO' },
|
|
223
|
+
{ name: 'Trinidad and Tobago', code: 'TT' },
|
|
224
|
+
{ name: 'Tunisia', code: 'TN' },
|
|
225
|
+
{ name: 'Turkey', code: 'TR' },
|
|
226
|
+
{ name: 'Turkmenistan', code: 'TM' },
|
|
227
|
+
{ name: 'Turks and Caicos Islands', code: 'TC' },
|
|
228
|
+
{ name: 'Tuvalu', code: 'TV' },
|
|
229
|
+
{ name: 'Uganda', code: 'UG' },
|
|
230
|
+
{ name: 'Ukraine', code: 'UA' },
|
|
231
|
+
{ name: 'United Arab Emirates', code: 'AE' },
|
|
232
|
+
{ name: 'United Kingdom', code: 'GB' },
|
|
233
|
+
{ name: 'United States', code: 'US' },
|
|
234
|
+
{ name: 'United States Minor Outlying Islands', code: 'UM' },
|
|
235
|
+
{ name: 'Uruguay', code: 'UY' },
|
|
236
|
+
{ name: 'Uzbekistan', code: 'UZ' },
|
|
237
|
+
{ name: 'Vanuatu', code: 'VU' },
|
|
238
|
+
{ name: 'Venezuela', code: 'VE' },
|
|
239
|
+
{ name: 'Viet Nam', code: 'VN' },
|
|
240
|
+
{ name: 'Virgin Islands, British', code: 'VG' },
|
|
241
|
+
{ name: 'Virgin Islands, U.S.', code: 'VI' },
|
|
242
|
+
{ name: 'Wallis and Futuna', code: 'WF' },
|
|
243
|
+
{ name: 'Western Sahara', code: 'EH' },
|
|
244
|
+
{ name: 'Yemen', code: 'YE' },
|
|
245
|
+
{ name: 'Zambia', code: 'ZM' },
|
|
246
|
+
{ name: 'Zimbabwe', code: 'ZW' },
|
|
247
|
+
]);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export const FieldBasicData = {
|
|
2
|
+
placeholder: 'Placeholder',
|
|
3
|
+
label: 'Label',
|
|
4
|
+
tooltip: 'Tooltip',
|
|
5
|
+
icon: 'accessible',
|
|
6
|
+
elementId: 'Element-id',
|
|
7
|
+
styleClasses: '',
|
|
8
|
+
length: 0,
|
|
9
|
+
required: true,
|
|
10
|
+
readOnly: false,
|
|
11
|
+
errorMessages: {},
|
|
12
|
+
asyncValidators: null,
|
|
13
|
+
validators: null,
|
|
14
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export const InputTypes = [
|
|
2
|
+
'checkbox',
|
|
3
|
+
'color',
|
|
4
|
+
'date',
|
|
5
|
+
'datetime-local',
|
|
6
|
+
'email',
|
|
7
|
+
'file',
|
|
8
|
+
'hidden',
|
|
9
|
+
'image',
|
|
10
|
+
'month',
|
|
11
|
+
'number',
|
|
12
|
+
'password',
|
|
13
|
+
'radio',
|
|
14
|
+
'range',
|
|
15
|
+
'reset',
|
|
16
|
+
'search',
|
|
17
|
+
'submit',
|
|
18
|
+
'tel',
|
|
19
|
+
'text',
|
|
20
|
+
'time',
|
|
21
|
+
'url',
|
|
22
|
+
'week',
|
|
23
|
+
];
|