ngx-vector-components 4.112.0 → 4.113.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/CHANGELOG.md +9 -0
- package/assets/styles/_primeng-custom-theme.scss +61 -0
- package/esm2020/lib/components/fields/filters/filters.component.mjs +2 -2
- package/esm2020/lib/components/index.mjs +2 -1
- package/esm2020/lib/components/stepper/index.mjs +3 -0
- package/esm2020/lib/components/stepper/stepper.component.mjs +41 -0
- package/esm2020/lib/components/stepper/stepper.module.mjs +19 -0
- package/esm2020/lib/utils/string.util.mjs +15 -1
- package/fesm2015/ngx-vector-components.mjs +71 -3
- package/fesm2015/ngx-vector-components.mjs.map +1 -1
- package/fesm2020/ngx-vector-components.mjs +70 -2
- package/fesm2020/ngx-vector-components.mjs.map +1 -1
- package/lib/components/index.d.ts +1 -0
- package/lib/components/stepper/index.d.ts +2 -0
- package/lib/components/stepper/stepper.component.d.ts +15 -0
- package/lib/components/stepper/stepper.module.d.ts +9 -0
- package/lib/utils/string.util.d.ts +2 -0
- package/package.json +1 -1
|
@@ -61,6 +61,8 @@ import { AccordionModule } from 'primeng/accordion';
|
|
|
61
61
|
import { trigger, state, style, transition, animate } from '@angular/animations';
|
|
62
62
|
import * as i5$1 from 'primeng/overlaypanel';
|
|
63
63
|
import { OverlayPanelModule } from 'primeng/overlaypanel';
|
|
64
|
+
import * as i1$b from 'primeng/steps';
|
|
65
|
+
import { StepsModule } from 'primeng/steps';
|
|
64
66
|
|
|
65
67
|
var AppName;
|
|
66
68
|
(function (AppName) {
|
|
@@ -757,6 +759,20 @@ class StringUtil {
|
|
|
757
759
|
}
|
|
758
760
|
return str.split('').reverse().join('');
|
|
759
761
|
}
|
|
762
|
+
static convertTimeToMinutes(timeText) {
|
|
763
|
+
const parts = timeText.split(':');
|
|
764
|
+
const minutes = parseInt(parts[0]);
|
|
765
|
+
const seconds = parseInt(parts[1]);
|
|
766
|
+
const minutesTotals = minutes + seconds / 60;
|
|
767
|
+
return minutesTotals;
|
|
768
|
+
}
|
|
769
|
+
static convertMinutesToTime(minutesTotal) {
|
|
770
|
+
const minutes = Math.floor(minutesTotal);
|
|
771
|
+
const seconds = Math.round((minutesTotal - minutes) * 60);
|
|
772
|
+
const minutesText = `${minutes}`.padStart(2, '0');
|
|
773
|
+
const secondsText = `${seconds}`.padStart(2, '0');
|
|
774
|
+
return `${minutesText}:${secondsText}`;
|
|
775
|
+
}
|
|
760
776
|
}
|
|
761
777
|
|
|
762
778
|
class ValidationUtil {
|
|
@@ -2797,7 +2813,7 @@ class FiltersComponent {
|
|
|
2797
2813
|
filterValue[key] = filterValue[key].code;
|
|
2798
2814
|
}
|
|
2799
2815
|
if (!ObjectUtil.isValid(filterValue[key])) {
|
|
2800
|
-
const fieldType = this.fields.find((field) => field.name === key)?.type
|
|
2816
|
+
const fieldType = this.fields.find((field) => field.name === key)?.type ?? FieldType.TEXT;
|
|
2801
2817
|
filterValue[key] = [FieldType.DROPDOWN, FieldType.NUMBER].includes(fieldType) ? -1 : '';
|
|
2802
2818
|
}
|
|
2803
2819
|
});
|
|
@@ -4382,6 +4398,58 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImpor
|
|
|
4382
4398
|
}]
|
|
4383
4399
|
}] });
|
|
4384
4400
|
|
|
4401
|
+
class StepperComponent {
|
|
4402
|
+
constructor(elementRef) {
|
|
4403
|
+
this.elementRef = elementRef;
|
|
4404
|
+
this.steps = [];
|
|
4405
|
+
this.navigable = false;
|
|
4406
|
+
this.activeIndex = 0;
|
|
4407
|
+
this.onActiveIndexChange = new EventEmitter();
|
|
4408
|
+
}
|
|
4409
|
+
ngAfterViewInit() {
|
|
4410
|
+
const stepsNumbers = this.elementRef.nativeElement.getElementsByClassName('p-steps-number');
|
|
4411
|
+
let index = 0;
|
|
4412
|
+
for (let element of stepsNumbers) {
|
|
4413
|
+
const step = this.steps[index];
|
|
4414
|
+
if (step?.styleClass === 'checked') {
|
|
4415
|
+
element.innerHTML = `<span class="fas fa-check"></span>`;
|
|
4416
|
+
}
|
|
4417
|
+
index++;
|
|
4418
|
+
}
|
|
4419
|
+
}
|
|
4420
|
+
activeIndexChange(index) {
|
|
4421
|
+
this.onActiveIndexChange.emit(index);
|
|
4422
|
+
}
|
|
4423
|
+
}
|
|
4424
|
+
StepperComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: StepperComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
4425
|
+
StepperComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: StepperComponent, selector: "vector-stepper", inputs: { steps: "steps", navigable: "navigable", activeIndex: "activeIndex", onActiveIndexChange: "onActiveIndexChange" }, ngImport: i0, template: "<div class=\"wrapper\">\r\n <p-steps\r\n [model]=\"steps\"\r\n [readonly]=\"!navigable\"\r\n [activeIndex]=\"activeIndex\"\r\n (activeIndexChange)=\"activeIndexChange($event)\"\r\n >\r\n ></p-steps\r\n >\r\n</div>\r\n", styles: [""], components: [{ type: i1$b.Steps, selector: "p-steps", inputs: ["activeIndex", "model", "readonly", "style", "styleClass"], outputs: ["activeIndexChange"] }] });
|
|
4426
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: StepperComponent, decorators: [{
|
|
4427
|
+
type: Component,
|
|
4428
|
+
args: [{ selector: 'vector-stepper', template: "<div class=\"wrapper\">\r\n <p-steps\r\n [model]=\"steps\"\r\n [readonly]=\"!navigable\"\r\n [activeIndex]=\"activeIndex\"\r\n (activeIndexChange)=\"activeIndexChange($event)\"\r\n >\r\n ></p-steps\r\n >\r\n</div>\r\n", styles: [""] }]
|
|
4429
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { steps: [{
|
|
4430
|
+
type: Input
|
|
4431
|
+
}], navigable: [{
|
|
4432
|
+
type: Input
|
|
4433
|
+
}], activeIndex: [{
|
|
4434
|
+
type: Input
|
|
4435
|
+
}], onActiveIndexChange: [{
|
|
4436
|
+
type: Input
|
|
4437
|
+
}] } });
|
|
4438
|
+
|
|
4439
|
+
class StepperModule {
|
|
4440
|
+
}
|
|
4441
|
+
StepperModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: StepperModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
4442
|
+
StepperModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: StepperModule, declarations: [StepperComponent], imports: [SharedModule, StepsModule], exports: [StepperComponent] });
|
|
4443
|
+
StepperModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: StepperModule, imports: [[SharedModule, StepsModule]] });
|
|
4444
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: StepperModule, decorators: [{
|
|
4445
|
+
type: NgModule,
|
|
4446
|
+
args: [{
|
|
4447
|
+
declarations: [StepperComponent],
|
|
4448
|
+
exports: [StepperComponent],
|
|
4449
|
+
imports: [SharedModule, StepsModule],
|
|
4450
|
+
}]
|
|
4451
|
+
}] });
|
|
4452
|
+
|
|
4385
4453
|
class TopBarComponent {
|
|
4386
4454
|
constructor(menuService, authService, router, profileService, storageService, notificationsService, errorMessageService) {
|
|
4387
4455
|
this.menuService = menuService;
|
|
@@ -4865,5 +4933,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImpor
|
|
|
4865
4933
|
* Generated bundle index. Do not edit.
|
|
4866
4934
|
*/
|
|
4867
4935
|
|
|
4868
|
-
export { AppName, AuthService, BadgeComponent, BadgeModule, BooleanType, BreadcrumbComponent, BreadcrumbModule, ButtonComponent, CalendarComponent, CheckboxFieldComponent, CpfCnpjValidator, CrudBaseComponent, CrudBaseService, CrudFooterComponent, CrudHeaderComponent, CrudHeaderModule, CrudHistory, CrudHistoryComponent, CrudHistoryModule, CrudListHasItemsGuard, CrudMode, CurrencyBrlPipe, CurrencyFieldComponent, DataTableComponent, DocumentType, DropdownFieldComponent, EnumService, ErrorMessageService, FieldErrorMessageComponent, FieldType, FieldsModule, FileUtil, FiltersComponent, FooterModule, FormatDocumentPipe, GenericErrorModalComponent, GenericErrorModalModule, GenericModalComponent, GenericModalModule, GeolocationService, GetSelectedCrudItemResolver, GetTokenByGuidGuard, HasPermissionGuard, HttpInterceptorProvider, InputNumberFieldComponent, LoadingService, MaskPipe, MaskUtil, MenuComponent, MenuModule, MenuService, MessageStatus, ModalService, MultiselectFieldComponent, NotHiddenPipe, NotificationsService, ObjectUtil, OnlyActivePipe, PanelComponent, PanelModule, PercentageFieldComponent, PipesModule, ProfileModuleActionType, ProfileModuleType, ProfileService, RadioButtonFieldComponent, RangeValueComponent, RemoveLastChildPipe, Role, RoleGuard, ScoreComponent, ScoreModule, SearchFieldComponent, SelectButtonFieldComponent, SelectionType, Status, StorageService, StringUtil, SubMenusListComponent, TableColumnType, TextFieldComponent, TextareaFieldComponent, TokenIsPresentGuard, TopBarComponent, TopBarModule, UnreadNotificationsPipe, ValidationUtil, View, WindowUtil };
|
|
4936
|
+
export { AppName, AuthService, BadgeComponent, BadgeModule, BooleanType, BreadcrumbComponent, BreadcrumbModule, ButtonComponent, CalendarComponent, CheckboxFieldComponent, CpfCnpjValidator, CrudBaseComponent, CrudBaseService, CrudFooterComponent, CrudHeaderComponent, CrudHeaderModule, CrudHistory, CrudHistoryComponent, CrudHistoryModule, CrudListHasItemsGuard, CrudMode, CurrencyBrlPipe, CurrencyFieldComponent, DataTableComponent, DocumentType, DropdownFieldComponent, EnumService, ErrorMessageService, FieldErrorMessageComponent, FieldType, FieldsModule, FileUtil, FiltersComponent, FooterModule, FormatDocumentPipe, GenericErrorModalComponent, GenericErrorModalModule, GenericModalComponent, GenericModalModule, GeolocationService, GetSelectedCrudItemResolver, GetTokenByGuidGuard, HasPermissionGuard, HttpInterceptorProvider, InputNumberFieldComponent, LoadingService, MaskPipe, MaskUtil, MenuComponent, MenuModule, MenuService, MessageStatus, ModalService, MultiselectFieldComponent, NotHiddenPipe, NotificationsService, ObjectUtil, OnlyActivePipe, PanelComponent, PanelModule, PercentageFieldComponent, PipesModule, ProfileModuleActionType, ProfileModuleType, ProfileService, RadioButtonFieldComponent, RangeValueComponent, RemoveLastChildPipe, Role, RoleGuard, ScoreComponent, ScoreModule, SearchFieldComponent, SelectButtonFieldComponent, SelectionType, Status, StepperComponent, StepperModule, StorageService, StringUtil, SubMenusListComponent, TableColumnType, TextFieldComponent, TextareaFieldComponent, TokenIsPresentGuard, TopBarComponent, TopBarModule, UnreadNotificationsPipe, ValidationUtil, View, WindowUtil };
|
|
4869
4937
|
//# sourceMappingURL=ngx-vector-components.mjs.map
|