@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';
|
|
@@ -5285,6 +5286,7 @@ var FieldType;
|
|
|
5285
5286
|
FieldType["Date"] = "Date";
|
|
5286
5287
|
FieldType["DateTime"] = "DateTime";
|
|
5287
5288
|
FieldType["Double"] = "Double";
|
|
5289
|
+
FieldType["Editor"] = "Editor";
|
|
5288
5290
|
FieldType["Enum"] = "Enum";
|
|
5289
5291
|
FieldType["Integer"] = "Integer";
|
|
5290
5292
|
FieldType["LocalDateTime"] = "LocalDateTime";
|
|
@@ -5933,6 +5935,19 @@ var ProfilePictureField = /** @class */ (function (_super) {
|
|
|
5933
5935
|
return ProfilePictureField;
|
|
5934
5936
|
}(Field));
|
|
5935
5937
|
|
|
5938
|
+
var EditorField = /** @class */ (function (_super) {
|
|
5939
|
+
__extends(EditorField, _super);
|
|
5940
|
+
function EditorField(config) {
|
|
5941
|
+
var _this = _super.call(this, config) || this;
|
|
5942
|
+
_this.formats = config.formats;
|
|
5943
|
+
_this.readonly = config.readonly;
|
|
5944
|
+
_this.modules = config.modules;
|
|
5945
|
+
_this.style = config.style;
|
|
5946
|
+
return _this;
|
|
5947
|
+
}
|
|
5948
|
+
return EditorField;
|
|
5949
|
+
}(Field));
|
|
5950
|
+
|
|
5936
5951
|
var FormField = /** @class */ (function () {
|
|
5937
5952
|
function FormField(config) {
|
|
5938
5953
|
switch (config.type) {
|
|
@@ -5978,6 +5993,8 @@ var FormField = /** @class */ (function () {
|
|
|
5978
5993
|
return new SliderField(config);
|
|
5979
5994
|
case FieldType.ProfilePicture:
|
|
5980
5995
|
return new ProfilePictureField(config);
|
|
5996
|
+
case FieldType.Editor:
|
|
5997
|
+
return new EditorField(config);
|
|
5981
5998
|
case FieldType.Custom:
|
|
5982
5999
|
var CustomFieldClass = config.CustomFieldClass, otherConfigs = __rest(config, ["CustomFieldClass"]);
|
|
5983
6000
|
return new CustomFieldClass(otherConfigs);
|
|
@@ -11125,6 +11142,25 @@ var ProfilePictureFieldComponent = /** @class */ (function () {
|
|
|
11125
11142
|
return ProfilePictureFieldComponent;
|
|
11126
11143
|
}());
|
|
11127
11144
|
|
|
11145
|
+
var EditorFieldComponent = /** @class */ (function (_super) {
|
|
11146
|
+
__extends(EditorFieldComponent, _super);
|
|
11147
|
+
function EditorFieldComponent() {
|
|
11148
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
11149
|
+
}
|
|
11150
|
+
__decorate([
|
|
11151
|
+
Input()
|
|
11152
|
+
], EditorFieldComponent.prototype, "field", void 0);
|
|
11153
|
+
__decorate([
|
|
11154
|
+
Input()
|
|
11155
|
+
], EditorFieldComponent.prototype, "formControl", void 0);
|
|
11156
|
+
EditorFieldComponent = __decorate([
|
|
11157
|
+
Component({
|
|
11158
|
+
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>"
|
|
11159
|
+
})
|
|
11160
|
+
], EditorFieldComponent);
|
|
11161
|
+
return EditorFieldComponent;
|
|
11162
|
+
}(BaseFieldComponent));
|
|
11163
|
+
|
|
11128
11164
|
var DynamicForm = /** @class */ (function () {
|
|
11129
11165
|
function DynamicForm(_a) {
|
|
11130
11166
|
var group = _a.group, errorMessages = _a.errorMessages;
|
|
@@ -11228,6 +11264,8 @@ var DynamicField = /** @class */ (function (_super) {
|
|
|
11228
11264
|
return SliderFieldComponent;
|
|
11229
11265
|
case FieldType.ProfilePicture:
|
|
11230
11266
|
return ProfilePictureFieldComponent;
|
|
11267
|
+
case FieldType.Editor:
|
|
11268
|
+
return EditorFieldComponent;
|
|
11231
11269
|
case FieldType.Custom:
|
|
11232
11270
|
return this.field.CustomFieldComponentClass;
|
|
11233
11271
|
default:
|
|
@@ -12410,6 +12448,19 @@ var ProfilePictureModule = /** @class */ (function () {
|
|
|
12410
12448
|
return ProfilePictureModule;
|
|
12411
12449
|
}());
|
|
12412
12450
|
|
|
12451
|
+
var EditorFieldModule = /** @class */ (function () {
|
|
12452
|
+
function EditorFieldModule() {
|
|
12453
|
+
}
|
|
12454
|
+
EditorFieldModule = __decorate([
|
|
12455
|
+
NgModule({
|
|
12456
|
+
imports: [CommonModule, FormsModule, ReactiveFormsModule, EditorModule],
|
|
12457
|
+
declarations: [EditorFieldComponent],
|
|
12458
|
+
exports: [EditorFieldComponent],
|
|
12459
|
+
})
|
|
12460
|
+
], EditorFieldModule);
|
|
12461
|
+
return EditorFieldModule;
|
|
12462
|
+
}());
|
|
12463
|
+
|
|
12413
12464
|
var DynamicFormModule = /** @class */ (function () {
|
|
12414
12465
|
function DynamicFormModule() {
|
|
12415
12466
|
}
|
|
@@ -12465,6 +12516,7 @@ var DynamicFormModule = /** @class */ (function () {
|
|
|
12465
12516
|
CurrencyFieldModule,
|
|
12466
12517
|
BignumberFieldModule,
|
|
12467
12518
|
ProfilePictureModule,
|
|
12519
|
+
EditorFieldModule,
|
|
12468
12520
|
FieldLabelModule
|
|
12469
12521
|
],
|
|
12470
12522
|
declarations: [
|
|
@@ -19473,5 +19525,5 @@ var fallback = {
|
|
|
19473
19525
|
* Generated bundle index. Do not edit.
|
|
19474
19526
|
*/
|
|
19475
19527
|
|
|
19476
|
-
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,
|
|
19528
|
+
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 };
|
|
19477
19529
|
//# sourceMappingURL=seniorsistemas-angular-components.js.map
|