@seniorsistemas/angular-components 17.10.13 → 17.11.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/bundles/seniorsistemas-angular-components.umd.js +112 -59
- package/bundles/seniorsistemas-angular-components.umd.js.map +1 -1
- package/bundles/seniorsistemas-angular-components.umd.min.js +2 -2
- package/bundles/seniorsistemas-angular-components.umd.min.js.map +1 -1
- package/components/dynamic-form/components/fields/base-field-component.d.ts +2 -1
- package/components/dynamic-form/components/fields/editor/editor-field.component.d.ts +7 -0
- package/components/dynamic-form/components/fields/editor/editor-field.module.d.ts +2 -0
- package/components/dynamic-form/configurations/field-type.d.ts +1 -0
- package/components/dynamic-form/configurations/fields/editor-field.d.ts +18 -0
- package/esm2015/components/dynamic-form/components/fields/base-field-component.js +1 -1
- package/esm2015/components/dynamic-form/components/fields/editor/editor-field.component.js +18 -0
- package/esm2015/components/dynamic-form/components/fields/editor/editor-field.module.js +17 -0
- package/esm2015/components/dynamic-form/configurations/field-type.js +2 -1
- package/esm2015/components/dynamic-form/configurations/fields/editor-field.js +11 -0
- package/esm2015/components/dynamic-form/configurations/form-field.js +4 -1
- package/esm2015/components/dynamic-form/dynamic-form.js +4 -1
- package/esm2015/components/dynamic-form/dynamic-form.module.js +3 -1
- package/esm2015/seniorsistemas-angular-components.js +58 -56
- package/esm5/components/dynamic-form/components/fields/base-field-component.js +1 -1
- package/esm5/components/dynamic-form/components/fields/editor/editor-field.component.js +23 -0
- package/esm5/components/dynamic-form/components/fields/editor/editor-field.module.js +20 -0
- package/esm5/components/dynamic-form/configurations/field-type.js +2 -1
- package/esm5/components/dynamic-form/configurations/fields/editor-field.js +16 -0
- package/esm5/components/dynamic-form/configurations/form-field.js +4 -1
- package/esm5/components/dynamic-form/dynamic-form.js +4 -1
- package/esm5/components/dynamic-form/dynamic-form.module.js +3 -1
- package/esm5/seniorsistemas-angular-components.js +58 -56
- package/fesm2015/seniorsistemas-angular-components.js +42 -1
- package/fesm2015/seniorsistemas-angular-components.js.map +1 -1
- package/fesm5/seniorsistemas-angular-components.js +53 -1
- package/fesm5/seniorsistemas-angular-components.js.map +1 -1
- package/package.json +1 -1
- package/seniorsistemas-angular-components.d.ts +57 -55
- package/seniorsistemas-angular-components.metadata.json +1 -1
|
@@ -52,6 +52,7 @@ import { DomSanitizer } from '@angular/platform-browser';
|
|
|
52
52
|
import { Clipboard } from '@angular/cdk/clipboard';
|
|
53
53
|
import { ConfirmDialogModule } from 'primeng/confirmdialog';
|
|
54
54
|
import Cropper from 'cropperjs';
|
|
55
|
+
import { EditorModule } from 'primeng/editor';
|
|
55
56
|
import marked from 'marked';
|
|
56
57
|
import { moveItemInArray, transferArrayItem, DragDropModule } from '@angular/cdk/drag-drop';
|
|
57
58
|
import * as elementResizeDetectorMaker_ from 'element-resize-detector';
|
|
@@ -4993,6 +4994,7 @@ var FieldType;
|
|
|
4993
4994
|
FieldType["Date"] = "Date";
|
|
4994
4995
|
FieldType["DateTime"] = "DateTime";
|
|
4995
4996
|
FieldType["Double"] = "Double";
|
|
4997
|
+
FieldType["Editor"] = "Editor";
|
|
4996
4998
|
FieldType["Enum"] = "Enum";
|
|
4997
4999
|
FieldType["Integer"] = "Integer";
|
|
4998
5000
|
FieldType["LocalDateTime"] = "LocalDateTime";
|
|
@@ -5553,6 +5555,16 @@ class ProfilePictureField extends Field {
|
|
|
5553
5555
|
}
|
|
5554
5556
|
}
|
|
5555
5557
|
|
|
5558
|
+
class EditorField extends Field {
|
|
5559
|
+
constructor(config) {
|
|
5560
|
+
super(config);
|
|
5561
|
+
this.formats = config.formats;
|
|
5562
|
+
this.readonly = config.readonly;
|
|
5563
|
+
this.modules = config.modules;
|
|
5564
|
+
this.style = config.style;
|
|
5565
|
+
}
|
|
5566
|
+
}
|
|
5567
|
+
|
|
5556
5568
|
class FormField {
|
|
5557
5569
|
constructor(config) {
|
|
5558
5570
|
switch (config.type) {
|
|
@@ -5598,6 +5610,8 @@ class FormField {
|
|
|
5598
5610
|
return new SliderField(config);
|
|
5599
5611
|
case FieldType.ProfilePicture:
|
|
5600
5612
|
return new ProfilePictureField(config);
|
|
5613
|
+
case FieldType.Editor:
|
|
5614
|
+
return new EditorField(config);
|
|
5601
5615
|
case FieldType.Custom:
|
|
5602
5616
|
const { CustomFieldClass } = config, otherConfigs = __rest(config, ["CustomFieldClass"]);
|
|
5603
5617
|
return new CustomFieldClass(otherConfigs);
|
|
@@ -10465,6 +10479,20 @@ ProfilePictureFieldComponent = __decorate([
|
|
|
10465
10479
|
})
|
|
10466
10480
|
], ProfilePictureFieldComponent);
|
|
10467
10481
|
|
|
10482
|
+
let EditorFieldComponent = class EditorFieldComponent extends BaseFieldComponent {
|
|
10483
|
+
};
|
|
10484
|
+
__decorate([
|
|
10485
|
+
Input()
|
|
10486
|
+
], EditorFieldComponent.prototype, "field", void 0);
|
|
10487
|
+
__decorate([
|
|
10488
|
+
Input()
|
|
10489
|
+
], EditorFieldComponent.prototype, "formControl", void 0);
|
|
10490
|
+
EditorFieldComponent = __decorate([
|
|
10491
|
+
Component({
|
|
10492
|
+
template: "<p-editor\n [formControl]=\"formControl\"\n [formats]=\"field.formats\"\n [readonly]=\"field.readonly\"\n [modules]=\"field.modules\"\n [style]=\"field.style\">\n</p-editor>"
|
|
10493
|
+
})
|
|
10494
|
+
], EditorFieldComponent);
|
|
10495
|
+
|
|
10468
10496
|
class DynamicForm {
|
|
10469
10497
|
constructor({ group, errorMessages }) {
|
|
10470
10498
|
this.group = group;
|
|
@@ -10563,6 +10591,8 @@ class DynamicField extends DynamicForm {
|
|
|
10563
10591
|
return SliderFieldComponent;
|
|
10564
10592
|
case FieldType.ProfilePicture:
|
|
10565
10593
|
return ProfilePictureFieldComponent;
|
|
10594
|
+
case FieldType.Editor:
|
|
10595
|
+
return EditorFieldComponent;
|
|
10566
10596
|
case FieldType.Custom:
|
|
10567
10597
|
return this.field.CustomFieldComponentClass;
|
|
10568
10598
|
default:
|
|
@@ -11653,6 +11683,16 @@ ProfilePictureModule = __decorate([
|
|
|
11653
11683
|
})
|
|
11654
11684
|
], ProfilePictureModule);
|
|
11655
11685
|
|
|
11686
|
+
let EditorFieldModule = class EditorFieldModule {
|
|
11687
|
+
};
|
|
11688
|
+
EditorFieldModule = __decorate([
|
|
11689
|
+
NgModule({
|
|
11690
|
+
imports: [CommonModule, FormsModule, ReactiveFormsModule, EditorModule],
|
|
11691
|
+
declarations: [EditorFieldComponent],
|
|
11692
|
+
exports: [EditorFieldComponent],
|
|
11693
|
+
})
|
|
11694
|
+
], EditorFieldModule);
|
|
11695
|
+
|
|
11656
11696
|
let DynamicFormModule = class DynamicFormModule {
|
|
11657
11697
|
};
|
|
11658
11698
|
DynamicFormModule = __decorate([
|
|
@@ -11707,6 +11747,7 @@ DynamicFormModule = __decorate([
|
|
|
11707
11747
|
CurrencyFieldModule,
|
|
11708
11748
|
BignumberFieldModule,
|
|
11709
11749
|
ProfilePictureModule,
|
|
11750
|
+
EditorFieldModule,
|
|
11710
11751
|
FieldLabelModule
|
|
11711
11752
|
],
|
|
11712
11753
|
declarations: [
|
|
@@ -18209,5 +18250,5 @@ const fallback = {
|
|
|
18209
18250
|
* Generated bundle index. Do not edit.
|
|
18210
18251
|
*/
|
|
18211
18252
|
|
|
18212
|
-
export { AccordionComponent, AccordionModule, AccordionPanelComponent, AlertComponent, AlertModule, AngularComponentsModule, AutocompleteField, BadgeColors, BadgeComponent, BadgeModule, BaseFieldComponent, BignumberField, BignumberInputDirective, BignumberInputModule, BooleanField, BooleanOptionsLabel, BreadcrumbComponent, BreadcrumbModule, Breakpoints, ButtonComponent, ButtonModule, ButtonPriority, ButtonSize, CalendarField, CalendarLocaleOptions, CalendarMaskDirective, CalendarMaskModule, CardComponent, CardModule, CardTemplateTypes, ChipsField, CodeEditorModule, CollapseLinkComponent, CollapseLinkModule, ControlErrorsComponent, ControlErrorsModule, CountryPhonePickerComponent, CountryPhonePickerModule, CurrencyField, CurrencyService, CustomFieldsComponent, CustomFieldsModule, CustomFieldsService, DEFAULT_CALENDAR_LOCALE_OPTIONS, DEFAULT_LOCALE_OPTIONS, DEFAULT_NUMBER_LOCALE_OPTIONS, DebounceUtils, DoubleClickDirective, DynamicConfig, DynamicFormComponent, DynamicFormModule, DynamicType, EditableOverlayDirective, EditableOverlayModule, EmptyStateComponent, EmptyStateModule, EnumBadgeColors, EnumColumnFieldType, EnumSeverity, ExportUtils, Field, FieldType, Fieldset, FileUploadComponent, FileUploadModule, FileUploadPermissions, FileValidation, FormField, GanttComponent, GanttModule, GlobalSearchComponent, GlobalSearchDropdownItemComponent, GlobalSearchModule, GlobalSearchSizeEnum, HostProjectConfigsInjectionToken, IAInsightComponent, IAInsightModule, IAInsightTemplateTypes, ImageCropperComponent, ImageCropperModule, ImageCropperService, InfoSignDirective, InfoSignModule, InlineEditCalendarField, InlineEditComponent, InlineEditField, InlineEditLookupField, InlineEditModule, InlineEditNumberField, InlineEditTextAreaField, InlineEditTextAreaIAField, InlineEditTextField, KanbanComponent, KanbanModule, KanbanTemplateTypes, Languages, LoadingStateComponent, LoadingStateDirective, LoadingStateModule, LocaleModule, LocaleOptions, LocaleService, LocalizedCurrencyPipe, LocalizedCurrencyPipeOptions, LocalizedDateImpurePipe, LocalizedDatePipe, LocalizedNumberInputDirective, LocalizedNumberInputModule, LocalizedNumberPipe, LocalizedTimeImpurePipe, LocalizedTimePipe, LongPressDirective, LookupComponent, LookupField, MaskFormatterModule, MaskFormatterPipe, MouseEventsModule, NavigationButtonComponent, NavigationButtonModule, NavigationDirective, NumberAlignmentOption, NumberField, NumberInputDirective, NumberInputModule, NumberLocaleOptions, NumericService, ObjectCardComponent, ObjectCardFieldComponent, ObjectCardMainComponent, ObjectCardModule, Option, Ordination, PanelComponent, PanelModule, PasswordField, PasswordStrengthComponent, PasswordStrengthDirective, PasswordStrengthModule, PasswordStrengthPositions, PasswordStrengths, ProductHeaderComponent, ProductHeaderModule, ProfilePicturePickerComponent, ProfilePicturePickerModule, ProgressBarColors, ProgressBarComponent, ProgressBarModule, RadioButtonField, RatingScaleComponent, RatingScaleModule, RationButtonOption, RowTogllerDirective, SVGFactoryDirective, SVGFactoryModule, Section, SelectButtonComponent, SelectButtonModule, SelectField, SelectOption, SidebarComponent, SidebarModule, SlidePanelComponent, SlidePanelModule, SplitButtonComponent, SplitButtonModule, SplitButtonType, StatsCardComponent, StatsCardModule, StepState, StepsComponent, StepsModule, Structure, SwitchComponent, SwitchModule, TableFrozenPositionDirective, TableHeaderCheckboxComponent, TableHeaderCheckboxModule, TableModule, TaxCalculationLanguageConfigs, TemplateDirective, TemplateModule, TextAreaField, TextAreaIAComponent, TextAreaIAModule, TextField, Themes, ThumbnailComponent, ThumbnailModule, ThumbnailSize, TieredMenuDirective, TieredMenuModule, TileComponent, TileModule, TimelineComponent, TimelineItem, TimelineItemSeverity, TimelineItemSize, TimelineModule, TokenListComponent, TokenListModule, TooltipModule, TooltipPosition, ValidateErrors, ViewMode, WorkspaceSwitchComponent, WorkspaceSwitchModule, convertToMomentDateFormat, countries, fallback, TooltipComponent as ɵa, TooltipDirective as ɵb, TablePagingComponent as ɵba, PasswordFieldModule as ɵbb, FieldLabelModule as ɵbc, InfoSignModule as ɵbd, FieldLabelComponent as ɵbe, PasswordFieldComponent as ɵbf, TextFieldModule as ɵbg, TextFieldComponent as ɵbh, NumberFieldModule as ɵbi, LocalizedNumberInputModule as ɵbj, NumberInputModule as ɵbk, NumberFieldComponent as ɵbl, CurrencyFieldModule as ɵbm, CurrencyFieldComponent as ɵbn, BignumberFieldModule as ɵbo, BignumberInputModule as ɵbp, BignumberFieldComponent as ɵbq, ProfilePictureModule as ɵbr, ThumbnailService as ɵbs, StructureModule as ɵbt, HeaderComponent as ɵbu, FooterComponent as ɵbv, ProfilePictureFieldComponent as ɵbw,
|
|
18253
|
+
export { AccordionComponent, AccordionModule, AccordionPanelComponent, AlertComponent, AlertModule, AngularComponentsModule, AutocompleteField, BadgeColors, BadgeComponent, BadgeModule, BaseFieldComponent, BignumberField, BignumberInputDirective, BignumberInputModule, BooleanField, BooleanOptionsLabel, BreadcrumbComponent, BreadcrumbModule, Breakpoints, ButtonComponent, ButtonModule, ButtonPriority, ButtonSize, CalendarField, CalendarLocaleOptions, CalendarMaskDirective, CalendarMaskModule, CardComponent, CardModule, CardTemplateTypes, ChipsField, CodeEditorModule, CollapseLinkComponent, CollapseLinkModule, ControlErrorsComponent, ControlErrorsModule, CountryPhonePickerComponent, CountryPhonePickerModule, CurrencyField, CurrencyService, CustomFieldsComponent, CustomFieldsModule, CustomFieldsService, DEFAULT_CALENDAR_LOCALE_OPTIONS, DEFAULT_LOCALE_OPTIONS, DEFAULT_NUMBER_LOCALE_OPTIONS, DebounceUtils, DoubleClickDirective, DynamicConfig, DynamicFormComponent, DynamicFormModule, DynamicType, EditableOverlayDirective, EditableOverlayModule, EmptyStateComponent, EmptyStateModule, EnumBadgeColors, EnumColumnFieldType, EnumSeverity, ExportUtils, Field, FieldType, Fieldset, FileUploadComponent, FileUploadModule, FileUploadPermissions, FileValidation, FormField, GanttComponent, GanttModule, GlobalSearchComponent, GlobalSearchDropdownItemComponent, GlobalSearchModule, GlobalSearchSizeEnum, HostProjectConfigsInjectionToken, IAInsightComponent, IAInsightModule, IAInsightTemplateTypes, ImageCropperComponent, ImageCropperModule, ImageCropperService, InfoSignDirective, InfoSignModule, InlineEditCalendarField, InlineEditComponent, InlineEditField, InlineEditLookupField, InlineEditModule, InlineEditNumberField, InlineEditTextAreaField, InlineEditTextAreaIAField, InlineEditTextField, KanbanComponent, KanbanModule, KanbanTemplateTypes, Languages, LoadingStateComponent, LoadingStateDirective, LoadingStateModule, LocaleModule, LocaleOptions, LocaleService, LocalizedCurrencyPipe, LocalizedCurrencyPipeOptions, LocalizedDateImpurePipe, LocalizedDatePipe, LocalizedNumberInputDirective, LocalizedNumberInputModule, LocalizedNumberPipe, LocalizedTimeImpurePipe, LocalizedTimePipe, LongPressDirective, LookupComponent, LookupField, MaskFormatterModule, MaskFormatterPipe, MouseEventsModule, NavigationButtonComponent, NavigationButtonModule, NavigationDirective, NumberAlignmentOption, NumberField, NumberInputDirective, NumberInputModule, NumberLocaleOptions, NumericService, ObjectCardComponent, ObjectCardFieldComponent, ObjectCardMainComponent, ObjectCardModule, Option, Ordination, PanelComponent, PanelModule, PasswordField, PasswordStrengthComponent, PasswordStrengthDirective, PasswordStrengthModule, PasswordStrengthPositions, PasswordStrengths, ProductHeaderComponent, ProductHeaderModule, ProfilePicturePickerComponent, ProfilePicturePickerModule, ProgressBarColors, ProgressBarComponent, ProgressBarModule, RadioButtonField, RatingScaleComponent, RatingScaleModule, RationButtonOption, RowTogllerDirective, SVGFactoryDirective, SVGFactoryModule, Section, SelectButtonComponent, SelectButtonModule, SelectField, SelectOption, SidebarComponent, SidebarModule, SlidePanelComponent, SlidePanelModule, SplitButtonComponent, SplitButtonModule, SplitButtonType, StatsCardComponent, StatsCardModule, StepState, StepsComponent, StepsModule, Structure, SwitchComponent, SwitchModule, TableFrozenPositionDirective, TableHeaderCheckboxComponent, TableHeaderCheckboxModule, TableModule, TaxCalculationLanguageConfigs, TemplateDirective, TemplateModule, TextAreaField, TextAreaIAComponent, TextAreaIAModule, TextField, Themes, ThumbnailComponent, ThumbnailModule, ThumbnailSize, TieredMenuDirective, TieredMenuModule, TileComponent, TileModule, TimelineComponent, TimelineItem, TimelineItemSeverity, TimelineItemSize, TimelineModule, TokenListComponent, TokenListModule, TooltipModule, TooltipPosition, ValidateErrors, ViewMode, WorkspaceSwitchComponent, WorkspaceSwitchModule, convertToMomentDateFormat, countries, fallback, TooltipComponent as ɵa, TooltipDirective as ɵb, TablePagingComponent as ɵba, PasswordFieldModule as ɵbb, FieldLabelModule as ɵbc, InfoSignModule as ɵbd, FieldLabelComponent as ɵbe, PasswordFieldComponent as ɵbf, TextFieldModule as ɵbg, TextFieldComponent as ɵbh, NumberFieldModule as ɵbi, LocalizedNumberInputModule as ɵbj, NumberInputModule as ɵbk, NumberFieldComponent as ɵbl, CurrencyFieldModule as ɵbm, CurrencyFieldComponent as ɵbn, BignumberFieldModule as ɵbo, BignumberInputModule as ɵbp, BignumberFieldComponent as ɵbq, ProfilePictureModule as ɵbr, ThumbnailService as ɵbs, StructureModule as ɵbt, HeaderComponent as ɵbu, FooterComponent as ɵbv, ProfilePictureFieldComponent as ɵbw, EditorFieldModule as ɵbx, EditorFieldComponent as ɵby, AutocompleteFieldComponent as ɵbz, TieredMenuEventService as ɵc, BooleanFieldComponent as ɵca, BooleanSwitchFieldComponent as ɵcb, CalendarFieldComponent as ɵcc, ChipsFieldComponent as ɵcd, CountryPhonePickerFieldComponent as ɵce, DynamicFieldComponent as ɵcf, DynamicFormDirective as ɵcg, FieldsetComponent as ɵch, FileUploadComponent$1 as ɵci, LookupFieldComponent as ɵcj, RadioButtonComponent as ɵck, RowComponent as ɵcl, SectionComponent as ɵcm, SelectFieldComponent as ɵcn, SliderFieldComponent as ɵco, TextAreaFieldComponent as ɵcp, TextAreaIAFieldComponent as ɵcq, IAssistService as ɵcr, DecimalField as ɵct, SideTableComponent as ɵcu, InfiniteScrollModule as ɵcv, InfiniteScrollDirective as ɵcw, IAInsightSidebarComponent as ɵcx, IAInsightCardComponent as ɵcy, IAInsightCardLoaderComponent as ɵcz, TieredMenuService as ɵd, InlineEditItemComponent as ɵda, LocaleService as ɵdb, InlineEditCalendarComponent as ɵdc, InlineEditLookupComponent as ɵdd, InlineEditNumberComponent as ɵde, InlineEditTextComponent as ɵdf, InlineEditTextAreaComponent as ɵdg, InlineEditTextAreaIAComponent as ɵdh, KanbanEventService as ɵdi, KanbanItemComponent as ɵdj, KanbanColumnComponent as ɵdk, KanbanItemDraggingComponent as ɵdl, NumberLocaleOptions as ɵdm, BorderButtonModule as ɵdn, BorderButtonComponent as ɵdo, ProgressBarDeterminateComponent as ɵdp, ProgressBarIndeterminateComponent as ɵdq, SelectButtonItemComponent as ɵdr, SlidePanelService as ɵds, TimelineItemModule as ɵdt, TimelineIconItemComponent as ɵdu, HorizontalTimelineModule as ɵdv, HorizontalTimelineComponent as ɵdw, VerticalTimelineModule as ɵdx, VerticalTimelineComponent as ɵdy, RangeLineComponent as ɵdz, TieredMenuGlobalService as ɵe, CollapseOptionComponent as ɵea, CollapsedItemsComponent as ɵeb, VerticalItemsComponent as ɵec, TieredMenuComponent as ɵf, TieredMenuNestedComponent as ɵg, TieredMenuItemComponent as ɵh, TieredMenuDividerComponent as ɵi, CustomTranslationsModule as ɵj, CodeEditorComponent as ɵk, CoreFacade as ɵl, CodeMirror6Core as ɵm, CountryPhonePickerService as ɵn, LocalizedCurrencyImpurePipe as ɵo, LocalizedBignumberPipe as ɵp, LocalizedBignumberImpurePipe as ɵq, NumericPipe as ɵr, EmptyStateGoBackComponent as ɵs, IAssistIconComponent as ɵt, SeniorIconComponent as ɵu, DotsIndicatorComponent as ɵv, LoadingIndicatorComponent as ɵw, FileUploadService as ɵx, InfoSignComponent as ɵy, TableColumnsComponent as ɵz };
|
|
18213
18254
|
//# sourceMappingURL=seniorsistemas-angular-components.js.map
|