@codex-ts/core-lib 1.0.12 → 1.0.14
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.
|
@@ -5,22 +5,22 @@ import { BehaviorSubject, finalize, Observable, forkJoin, throwError, of, isObse
|
|
|
5
5
|
import * as i1 from '@angular/common/http';
|
|
6
6
|
import { HttpParams } from '@angular/common/http';
|
|
7
7
|
import * as i1$1 from '@angular/router';
|
|
8
|
-
import * as
|
|
8
|
+
import * as i4 from 'primeng/api';
|
|
9
9
|
import * as i1$2 from '@angular/forms';
|
|
10
10
|
import { FormGroup, ReactiveFormsModule } from '@angular/forms';
|
|
11
|
-
import * as i2
|
|
11
|
+
import * as i2 from '@ngx-formly/core';
|
|
12
12
|
import { FieldType, FormlyModule, FieldWrapper } from '@ngx-formly/core';
|
|
13
13
|
import * as i1$3 from '@angular/common';
|
|
14
14
|
import { CommonModule, formatDate } from '@angular/common';
|
|
15
15
|
import * as i3 from 'primeng/inputtext';
|
|
16
16
|
import { InputTextModule } from 'primeng/inputtext';
|
|
17
|
-
import * as i4 from 'primeng/select';
|
|
17
|
+
import * as i4$1 from 'primeng/select';
|
|
18
18
|
import { SelectModule } from 'primeng/select';
|
|
19
|
-
import * as i4$
|
|
19
|
+
import * as i4$2 from 'primeng/radiobutton';
|
|
20
20
|
import { RadioButtonModule } from 'primeng/radiobutton';
|
|
21
21
|
import * as i3$1 from 'primeng/inputnumber';
|
|
22
22
|
import { InputNumberModule } from 'primeng/inputnumber';
|
|
23
|
-
import * as i4$
|
|
23
|
+
import * as i4$3 from 'primeng/multiselect';
|
|
24
24
|
import { MultiSelectModule } from 'primeng/multiselect';
|
|
25
25
|
import * as i3$2 from 'primeng/datepicker';
|
|
26
26
|
import { DatePickerModule } from 'primeng/datepicker';
|
|
@@ -28,7 +28,7 @@ import * as i3$3 from 'primeng/checkbox';
|
|
|
28
28
|
import { CheckboxModule } from 'primeng/checkbox';
|
|
29
29
|
import * as i3$4 from 'primeng/inputtextarea';
|
|
30
30
|
import { Textarea } from 'primeng/inputtextarea';
|
|
31
|
-
import * as i2$
|
|
31
|
+
import * as i2$1 from 'primeng/tooltip';
|
|
32
32
|
import { TooltipModule } from 'primeng/tooltip';
|
|
33
33
|
|
|
34
34
|
class AppConstants {
|
|
@@ -570,7 +570,7 @@ class HttpUtilityService {
|
|
|
570
570
|
});
|
|
571
571
|
}
|
|
572
572
|
}
|
|
573
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: HttpUtilityService, deps: [{ token: i1.HttpClient }, { token:
|
|
573
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: HttpUtilityService, deps: [{ token: i1.HttpClient }, { token: i4.MessageService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
574
574
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: HttpUtilityService, providedIn: 'root' });
|
|
575
575
|
}
|
|
576
576
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: HttpUtilityService, decorators: [{
|
|
@@ -578,7 +578,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImpor
|
|
|
578
578
|
args: [{
|
|
579
579
|
providedIn: 'root'
|
|
580
580
|
}]
|
|
581
|
-
}], ctorParameters: () => [{ type: i1.HttpClient }, { type:
|
|
581
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: i4.MessageService }] });
|
|
582
582
|
|
|
583
583
|
/**
|
|
584
584
|
* A utility service that provides common reusable functionality
|
|
@@ -753,12 +753,12 @@ class NotificationService {
|
|
|
753
753
|
clearMessage() {
|
|
754
754
|
this.messageSubject.next(null);
|
|
755
755
|
}
|
|
756
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: NotificationService, deps: [{ token:
|
|
756
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: NotificationService, deps: [{ token: i4.MessageService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
757
757
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: NotificationService });
|
|
758
758
|
}
|
|
759
759
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: NotificationService, decorators: [{
|
|
760
760
|
type: Injectable
|
|
761
|
-
}], ctorParameters: () => [{ type:
|
|
761
|
+
}], ctorParameters: () => [{ type: i4.MessageService }] });
|
|
762
762
|
|
|
763
763
|
class BaseCrudService {
|
|
764
764
|
httpUtility;
|
|
@@ -1144,7 +1144,7 @@ class TextInputType extends FieldType {
|
|
|
1144
1144
|
[placeholder]="props['placeholder'] || ''"
|
|
1145
1145
|
[attr.aria-label]="props['label'] || props['placeholder'] || ''"
|
|
1146
1146
|
class="w-full"/>
|
|
1147
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: FormlyModule }, { kind: "directive", type: i2
|
|
1147
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: FormlyModule }, { kind: "directive", type: i2.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }, { kind: "ngmodule", type: InputTextModule }, { kind: "directive", type: i3.InputText, selector: "[pInputText]", inputs: ["variant", "fluid", "pSize"] }] });
|
|
1148
1148
|
}
|
|
1149
1149
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: TextInputType, decorators: [{
|
|
1150
1150
|
type: Component,
|
|
@@ -1198,7 +1198,7 @@ class SelectType extends FieldType {
|
|
|
1198
1198
|
styleClass="w-full">
|
|
1199
1199
|
</p-select>
|
|
1200
1200
|
</ng-container>
|
|
1201
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i1$3.AsyncPipe, name: "async" }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: FormlyModule }, { kind: "directive", type: i2
|
|
1201
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i1$3.AsyncPipe, name: "async" }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: FormlyModule }, { kind: "directive", type: i2.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }, { kind: "ngmodule", type: SelectModule }, { kind: "component", type: i4$1.Select, selector: "p-select", inputs: ["id", "scrollHeight", "filter", "name", "style", "panelStyle", "styleClass", "panelStyleClass", "readonly", "required", "editable", "appendTo", "tabindex", "placeholder", "loadingIcon", "filterPlaceholder", "filterLocale", "variant", "inputId", "dataKey", "filterBy", "filterFields", "autofocus", "resetFilterOnHide", "checkmark", "dropdownIcon", "loading", "optionLabel", "optionValue", "optionDisabled", "optionGroupLabel", "optionGroupChildren", "autoDisplayFirst", "group", "showClear", "emptyFilterMessage", "emptyMessage", "lazy", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "size", "overlayOptions", "ariaFilterLabel", "ariaLabel", "ariaLabelledBy", "filterMatchMode", "maxlength", "tooltip", "tooltipPosition", "tooltipPositionStyle", "tooltipStyleClass", "focusOnHover", "selectOnFocus", "autoOptionFocus", "autofocusFilter", "fluid", "disabled", "itemSize", "autoZIndex", "baseZIndex", "showTransitionOptions", "hideTransitionOptions", "filterValue", "options"], outputs: ["onChange", "onFilter", "onFocus", "onBlur", "onClick", "onShow", "onHide", "onClear", "onLazyLoad"] }] });
|
|
1202
1202
|
}
|
|
1203
1203
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: SelectType, decorators: [{
|
|
1204
1204
|
type: Component,
|
|
@@ -1251,7 +1251,7 @@ class RadioType extends FieldType {
|
|
|
1251
1251
|
</div>
|
|
1252
1252
|
</ng-container>
|
|
1253
1253
|
</div>
|
|
1254
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i1$3.AsyncPipe, name: "async" }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: FormlyModule }, { kind: "directive", type: i2
|
|
1254
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i1$3.AsyncPipe, name: "async" }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: FormlyModule }, { kind: "directive", type: i2.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }, { kind: "ngmodule", type: RadioButtonModule }, { kind: "component", type: i4$2.RadioButton, selector: "p-radioButton, p-radiobutton, p-radio-button", inputs: ["value", "formControlName", "name", "disabled", "variant", "size", "tabindex", "inputId", "ariaLabelledBy", "ariaLabel", "style", "styleClass", "autofocus", "binary"], outputs: ["onClick", "onFocus", "onBlur"] }] });
|
|
1255
1255
|
}
|
|
1256
1256
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: RadioType, decorators: [{
|
|
1257
1257
|
type: Component,
|
|
@@ -1314,7 +1314,7 @@ class NumericInputType extends FieldType {
|
|
|
1314
1314
|
[showButtons]="true"
|
|
1315
1315
|
class="w-full">
|
|
1316
1316
|
</p-inputNumber>
|
|
1317
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: FormlyModule }, { kind: "directive", type: i2
|
|
1317
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: FormlyModule }, { kind: "directive", type: i2.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }, { kind: "ngmodule", type: InputNumberModule }, { kind: "component", type: i3$1.InputNumber, selector: "p-inputNumber, p-inputnumber, p-input-number", inputs: ["showButtons", "format", "buttonLayout", "inputId", "styleClass", "style", "placeholder", "size", "maxlength", "tabindex", "title", "ariaLabelledBy", "ariaLabel", "ariaRequired", "name", "required", "autocomplete", "min", "max", "incrementButtonClass", "decrementButtonClass", "incrementButtonIcon", "decrementButtonIcon", "readonly", "step", "allowEmpty", "locale", "localeMatcher", "mode", "currency", "currencyDisplay", "useGrouping", "variant", "minFractionDigits", "maxFractionDigits", "prefix", "suffix", "inputStyle", "inputStyleClass", "showClear", "autofocus", "disabled", "fluid"], outputs: ["onInput", "onFocus", "onBlur", "onKeyDown", "onClear"] }] });
|
|
1318
1318
|
}
|
|
1319
1319
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: NumericInputType, decorators: [{
|
|
1320
1320
|
type: Component,
|
|
@@ -1382,7 +1382,7 @@ class MultiselectType extends FieldType {
|
|
|
1382
1382
|
styleClass="w-full">
|
|
1383
1383
|
</p-multiSelect>
|
|
1384
1384
|
</ng-container>
|
|
1385
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i1$3.AsyncPipe, name: "async" }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: FormlyModule }, { kind: "directive", type: i2
|
|
1385
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i1$3.AsyncPipe, name: "async" }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: FormlyModule }, { kind: "directive", type: i2.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }, { kind: "ngmodule", type: MultiSelectModule }, { kind: "component", type: i4$3.MultiSelect, selector: "p-multiSelect, p-multiselect, p-multi-select", inputs: ["id", "ariaLabel", "style", "styleClass", "panelStyle", "panelStyleClass", "inputId", "disabled", "fluid", "readonly", "group", "filter", "filterPlaceHolder", "filterLocale", "overlayVisible", "tabindex", "variant", "appendTo", "dataKey", "name", "ariaLabelledBy", "displaySelectedLabel", "maxSelectedLabels", "selectionLimit", "selectedItemsLabel", "showToggleAll", "emptyFilterMessage", "emptyMessage", "resetFilterOnHide", "dropdownIcon", "chipIcon", "optionLabel", "optionValue", "optionDisabled", "optionGroupLabel", "optionGroupChildren", "showHeader", "filterBy", "scrollHeight", "lazy", "virtualScroll", "loading", "virtualScrollItemSize", "loadingIcon", "virtualScrollOptions", "overlayOptions", "ariaFilterLabel", "filterMatchMode", "tooltip", "tooltipPosition", "tooltipPositionStyle", "tooltipStyleClass", "autofocusFilter", "display", "autocomplete", "size", "showClear", "autofocus", "autoZIndex", "baseZIndex", "showTransitionOptions", "hideTransitionOptions", "defaultLabel", "placeholder", "options", "filterValue", "itemSize", "selectAll", "focusOnHover", "filterFields", "selectOnFocus", "autoOptionFocus"], outputs: ["onChange", "onFilter", "onFocus", "onBlur", "onClick", "onClear", "onPanelShow", "onPanelHide", "onLazyLoad", "onRemove", "onSelectAllChange"] }] });
|
|
1386
1386
|
}
|
|
1387
1387
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: MultiselectType, decorators: [{
|
|
1388
1388
|
type: Component,
|
|
@@ -1483,7 +1483,7 @@ class DateType extends FieldType {
|
|
|
1483
1483
|
(onSelect)="onDateSelect($event)"
|
|
1484
1484
|
(onInput)="onDateInput($event)">
|
|
1485
1485
|
</p-datepicker>
|
|
1486
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: FormlyModule }, { kind: "directive", type: i2
|
|
1486
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: FormlyModule }, { kind: "directive", type: i2.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }, { kind: "ngmodule", type: DatePickerModule }, { kind: "component", type: i3$2.DatePicker, selector: "p-datePicker, p-datepicker, p-date-picker", inputs: ["iconDisplay", "style", "styleClass", "inputStyle", "inputId", "name", "inputStyleClass", "placeholder", "ariaLabelledBy", "ariaLabel", "iconAriaLabel", "disabled", "dateFormat", "multipleSeparator", "rangeSeparator", "inline", "showOtherMonths", "selectOtherMonths", "showIcon", "fluid", "icon", "appendTo", "readonlyInput", "shortYearCutoff", "monthNavigator", "yearNavigator", "hourFormat", "timeOnly", "stepHour", "stepMinute", "stepSecond", "showSeconds", "required", "showOnFocus", "showWeek", "startWeekFromFirstDayOfYear", "showClear", "dataType", "selectionMode", "maxDateCount", "showButtonBar", "todayButtonStyleClass", "clearButtonStyleClass", "autofocus", "autoZIndex", "baseZIndex", "panelStyleClass", "panelStyle", "keepInvalid", "hideOnDateTimeSelect", "touchUI", "timeSeparator", "focusTrap", "showTransitionOptions", "hideTransitionOptions", "tabindex", "variant", "size", "minDate", "maxDate", "disabledDates", "disabledDays", "yearRange", "showTime", "responsiveOptions", "numberOfMonths", "firstDayOfWeek", "locale", "view", "defaultDate"], outputs: ["onFocus", "onBlur", "onClose", "onSelect", "onClear", "onInput", "onTodayClick", "onClearClick", "onMonthChange", "onYearChange", "onClickOutside", "onShow"] }] });
|
|
1487
1487
|
}
|
|
1488
1488
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: DateType, decorators: [{
|
|
1489
1489
|
type: Component,
|
|
@@ -1537,7 +1537,7 @@ class CheckboxType extends FieldType {
|
|
|
1537
1537
|
{{props['checkboxLabel'] || ''}}
|
|
1538
1538
|
</p-checkbox>
|
|
1539
1539
|
</div>
|
|
1540
|
-
`, isInline: true, styles: [".checkbox-container{display:flex;align-items:center;height:40px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: FormlyModule }, { kind: "directive", type: i2
|
|
1540
|
+
`, isInline: true, styles: [".checkbox-container{display:flex;align-items:center;height:40px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: FormlyModule }, { kind: "directive", type: i2.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }, { kind: "ngmodule", type: CheckboxModule }, { kind: "component", type: i3$3.Checkbox, selector: "p-checkbox, p-checkBox, p-check-box", inputs: ["value", "name", "disabled", "binary", "ariaLabelledBy", "ariaLabel", "tabindex", "inputId", "style", "inputStyle", "styleClass", "inputClass", "indeterminate", "size", "formControl", "checkboxIcon", "readonly", "required", "autofocus", "trueValue", "falseValue", "variant"], outputs: ["onChange", "onFocus", "onBlur"] }] });
|
|
1541
1541
|
}
|
|
1542
1542
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: CheckboxType, decorators: [{
|
|
1543
1543
|
type: Component,
|
|
@@ -1580,7 +1580,7 @@ class TextareaType extends FieldType {
|
|
|
1580
1580
|
[placeholder]="props['placeholder'] || ''"
|
|
1581
1581
|
class="w-full">
|
|
1582
1582
|
</textarea>
|
|
1583
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: FormlyModule }, { kind: "directive", type: i2
|
|
1583
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: FormlyModule }, { kind: "directive", type: i2.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }, { kind: "ngmodule", type: Textarea }, { kind: "directive", type: i3$4.InputTextarea, selector: "[pInputTextarea]", inputs: ["autoResize", "variant", "fluid"], outputs: ["onResize"] }] });
|
|
1584
1584
|
}
|
|
1585
1585
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: TextareaType, decorators: [{
|
|
1586
1586
|
type: Component,
|
|
@@ -1647,7 +1647,7 @@ class FormFieldWrapper extends FieldWrapper {
|
|
|
1647
1647
|
{{ errorMessage }}
|
|
1648
1648
|
</small>
|
|
1649
1649
|
</div>
|
|
1650
|
-
`, isInline: true, styles: [":is() .required-star{color:var(--red-500);margin-left:.25rem}:is() .p-input-error :where(input,.p-inputtext){border-color:var(--red-500)}:is() .p-input-error :where(input:enabled:focus,.p-inputtext:enabled:focus){border-color:var(--red-500);box-shadow:0 0 0 1px var(--red-500)}:is() .p-error{color:var(--red-500);margin-top:.5rem}:is() small{color:var(--text-color-secondary)}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: TooltipModule }, { kind: "directive", type: i2$
|
|
1650
|
+
`, isInline: true, styles: [":is() .required-star{color:var(--red-500);margin-left:.25rem}:is() .p-input-error :where(input,.p-inputtext){border-color:var(--red-500)}:is() .p-input-error :where(input:enabled:focus,.p-inputtext:enabled:focus){border-color:var(--red-500);box-shadow:0 0 0 1px var(--red-500)}:is() .p-error{color:var(--red-500);margin-top:.5rem}:is() small{color:var(--text-color-secondary)}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: TooltipModule }, { kind: "directive", type: i2$1.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "pTooltip", "tooltipDisabled", "tooltipOptions"] }] });
|
|
1651
1651
|
}
|
|
1652
1652
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: FormFieldWrapper, decorators: [{
|
|
1653
1653
|
type: Component,
|
|
@@ -1694,7 +1694,7 @@ const FORMLY_WRAPPERS = {
|
|
|
1694
1694
|
|
|
1695
1695
|
class CoreFormlyModule {
|
|
1696
1696
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: CoreFormlyModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1697
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.6", ngImport: i0, type: CoreFormlyModule, imports: [i2
|
|
1697
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.6", ngImport: i0, type: CoreFormlyModule, imports: [i2.FormlyModule], exports: [FormlyModule] });
|
|
1698
1698
|
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: CoreFormlyModule, imports: [FormlyModule.forRoot({
|
|
1699
1699
|
types: [
|
|
1700
1700
|
{ name: FORMLY_TYPES.TEXT, component: TextInputType, wrappers: [FORMLY_WRAPPERS.FORM_FIELD] },
|
|
@@ -2326,12 +2326,12 @@ class BaseListPageComponent extends BaseTableComponent {
|
|
|
2326
2326
|
}
|
|
2327
2327
|
return true;
|
|
2328
2328
|
}
|
|
2329
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: BaseListPageComponent, deps: [{ token: i1$1.Router }, { token: NotificationService }, { token: UtilsService }, { token:
|
|
2329
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: BaseListPageComponent, deps: [{ token: i1$1.Router }, { token: NotificationService }, { token: UtilsService }, { token: i4.ConfirmationService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2330
2330
|
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.6", type: BaseListPageComponent, isStandalone: true, usesInheritance: true, ngImport: i0 });
|
|
2331
2331
|
}
|
|
2332
2332
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: BaseListPageComponent, decorators: [{
|
|
2333
2333
|
type: Directive
|
|
2334
|
-
}], ctorParameters: () => [{ type: i1$1.Router }, { type: NotificationService }, { type: UtilsService }, { type:
|
|
2334
|
+
}], ctorParameters: () => [{ type: i1$1.Router }, { type: NotificationService }, { type: UtilsService }, { type: i4.ConfirmationService }] });
|
|
2335
2335
|
|
|
2336
2336
|
class BaseTabbedFormComponent extends BasePageComponent {
|
|
2337
2337
|
route;
|
|
@@ -2935,6 +2935,133 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImpor
|
|
|
2935
2935
|
type: Directive
|
|
2936
2936
|
}], ctorParameters: () => [{ type: i1$1.ActivatedRoute }, { type: i1$1.Router }, { type: NotificationService }, { type: UtilsService }, { type: FormlyConfigService }] });
|
|
2937
2937
|
|
|
2938
|
+
/**
|
|
2939
|
+
* Base component for all task dashboard components in the application.
|
|
2940
|
+
* Provides common functionality for task management operations while
|
|
2941
|
+
* inheriting table functionality from BaseTableComponent.
|
|
2942
|
+
*/
|
|
2943
|
+
class BaseTaskDashboardComponent extends BaseTableComponent {
|
|
2944
|
+
router;
|
|
2945
|
+
notificationService;
|
|
2946
|
+
utilsService;
|
|
2947
|
+
confirmationService;
|
|
2948
|
+
actionLoading = false;
|
|
2949
|
+
taskStatuses = [];
|
|
2950
|
+
taskPriorities = [];
|
|
2951
|
+
assignedToOptions = [];
|
|
2952
|
+
dateRange = {
|
|
2953
|
+
start: null,
|
|
2954
|
+
end: null
|
|
2955
|
+
};
|
|
2956
|
+
constructor(router, notificationService, utilsService, confirmationService) {
|
|
2957
|
+
super(utilsService, notificationService);
|
|
2958
|
+
this.router = router;
|
|
2959
|
+
this.notificationService = notificationService;
|
|
2960
|
+
this.utilsService = utilsService;
|
|
2961
|
+
this.confirmationService = confirmationService;
|
|
2962
|
+
}
|
|
2963
|
+
/**
|
|
2964
|
+
* Initialize the component and load reference data
|
|
2965
|
+
*/
|
|
2966
|
+
ngOnInit() {
|
|
2967
|
+
super.ngOnInit();
|
|
2968
|
+
this.loadReferenceData();
|
|
2969
|
+
}
|
|
2970
|
+
/**
|
|
2971
|
+
* Load all reference data needed for the task dashboard
|
|
2972
|
+
*/
|
|
2973
|
+
loadReferenceData() {
|
|
2974
|
+
}
|
|
2975
|
+
/**
|
|
2976
|
+
* Create a new task
|
|
2977
|
+
*/
|
|
2978
|
+
onCreate() {
|
|
2979
|
+
this.navigateTo([this.getFormRoute()], { [AppConstants.FORM.MODE]: AppConstants.PAGE_MODE.CREATE });
|
|
2980
|
+
}
|
|
2981
|
+
/**
|
|
2982
|
+
* Navigate to view a task
|
|
2983
|
+
* @param item The task to view
|
|
2984
|
+
*/
|
|
2985
|
+
onView(item) {
|
|
2986
|
+
if (!this.validateItemUuid(item, 'view'))
|
|
2987
|
+
return;
|
|
2988
|
+
this.navigateTo([this.getFormRoute()], {
|
|
2989
|
+
[AppConstants.FORM.MODE]: AppConstants.PAGE_MODE.VIEW,
|
|
2990
|
+
[AppConstants.FORM.UUID]: item.uuid
|
|
2991
|
+
});
|
|
2992
|
+
}
|
|
2993
|
+
/**
|
|
2994
|
+
* Navigate to edit a task
|
|
2995
|
+
* @param item The task to edit
|
|
2996
|
+
*/
|
|
2997
|
+
onEdit(item) {
|
|
2998
|
+
if (!this.validateItemUuid(item, 'edit'))
|
|
2999
|
+
return;
|
|
3000
|
+
this.navigateTo([this.getFormRoute()], {
|
|
3001
|
+
[AppConstants.FORM.MODE]: AppConstants.PAGE_MODE.EDIT,
|
|
3002
|
+
[AppConstants.FORM.UUID]: item.uuid
|
|
3003
|
+
});
|
|
3004
|
+
}
|
|
3005
|
+
/**
|
|
3006
|
+
* Delete a task with confirmation
|
|
3007
|
+
* @param item The task to delete
|
|
3008
|
+
*/
|
|
3009
|
+
onDelete(item) {
|
|
3010
|
+
if (!this.validateItemUuid(item, 'delete'))
|
|
3011
|
+
return;
|
|
3012
|
+
this.confirmationService.confirm({
|
|
3013
|
+
message: `Are you sure you want to delete this ${this.getEntityName()}?`,
|
|
3014
|
+
header: 'Confirm Deletion',
|
|
3015
|
+
icon: 'pi pi-exclamation-triangle',
|
|
3016
|
+
accept: () => {
|
|
3017
|
+
this.actionLoading = true;
|
|
3018
|
+
this.getEntityService().delete(item.uuid)
|
|
3019
|
+
.pipe(finalize$1(() => this.actionLoading = false))
|
|
3020
|
+
.subscribe({
|
|
3021
|
+
next: () => {
|
|
3022
|
+
this.showSuccess(`${this.getEntityName()} ${AppMessages.LIST.SUCCESS.DELETE}`);
|
|
3023
|
+
this.loadData();
|
|
3024
|
+
},
|
|
3025
|
+
error: (error) => {
|
|
3026
|
+
console.error('Delete failed:', error);
|
|
3027
|
+
this.showError(`${AppMessages.LIST.ERROR.DELETE} ${this.getEntityName()}`);
|
|
3028
|
+
}
|
|
3029
|
+
});
|
|
3030
|
+
}
|
|
3031
|
+
});
|
|
3032
|
+
}
|
|
3033
|
+
/**
|
|
3034
|
+
* Navigate to a route with error handling
|
|
3035
|
+
* @param path The route path
|
|
3036
|
+
* @param matrixParams Optional matrix parameters
|
|
3037
|
+
*/
|
|
3038
|
+
navigateTo(path, matrixParams) {
|
|
3039
|
+
this.router.navigate(path, { queryParams: matrixParams })
|
|
3040
|
+
.catch(error => {
|
|
3041
|
+
console.error('Navigation error:', error);
|
|
3042
|
+
this.showError(AppMessages.LIST.ERROR.NAVIGATION);
|
|
3043
|
+
});
|
|
3044
|
+
}
|
|
3045
|
+
/**
|
|
3046
|
+
* Validate that an item has a UUID
|
|
3047
|
+
* @param item The item to validate
|
|
3048
|
+
* @param action The action being performed
|
|
3049
|
+
* @returns true if valid, false otherwise
|
|
3050
|
+
*/
|
|
3051
|
+
validateItemUuid(item, action) {
|
|
3052
|
+
if (!item?.uuid) {
|
|
3053
|
+
this.showError(`${AppMessages.LIST.ERROR.INVALID_ID} ${action}`);
|
|
3054
|
+
return false;
|
|
3055
|
+
}
|
|
3056
|
+
return true;
|
|
3057
|
+
}
|
|
3058
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: BaseTaskDashboardComponent, deps: [{ token: i1$1.Router }, { token: NotificationService }, { token: UtilsService }, { token: i4.ConfirmationService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
3059
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.6", type: BaseTaskDashboardComponent, isStandalone: true, usesInheritance: true, ngImport: i0 });
|
|
3060
|
+
}
|
|
3061
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: BaseTaskDashboardComponent, decorators: [{
|
|
3062
|
+
type: Directive
|
|
3063
|
+
}], ctorParameters: () => [{ type: i1$1.Router }, { type: NotificationService }, { type: UtilsService }, { type: i4.ConfirmationService }] });
|
|
3064
|
+
|
|
2938
3065
|
class IndianDatePipe {
|
|
2939
3066
|
datePipe;
|
|
2940
3067
|
constructor(datePipe) {
|
|
@@ -2989,5 +3116,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImpor
|
|
|
2989
3116
|
* Generated bundle index. Do not edit.
|
|
2990
3117
|
*/
|
|
2991
3118
|
|
|
2992
|
-
export { AppConstants, AppMessages, BaseCrudService, BaseFormComponent, BaseListPageComponent, BaseListTabbedFormComponent, BasePageComponent, BaseTabbedFormComponent, BaseTaskDetailsComponent, BaseTaskService, ComponentContext, CoreFormlyModule, FormService, FormlyConfigService, HttpUtilityService, IndianDatePipe, KEYCLOAK_CONFIG, KeycloakAuthGuard, KeycloakService, NotificationService, TabbedFormType, TaskRole, UtilsService };
|
|
3119
|
+
export { AppConstants, AppMessages, BaseCrudService, BaseFormComponent, BaseListPageComponent, BaseListTabbedFormComponent, BasePageComponent, BaseTabbedFormComponent, BaseTaskDashboardComponent, BaseTaskDetailsComponent, BaseTaskService, ComponentContext, CoreFormlyModule, FormService, FormlyConfigService, HttpUtilityService, IndianDatePipe, KEYCLOAK_CONFIG, KeycloakAuthGuard, KeycloakService, NotificationService, TabbedFormType, TaskRole, UtilsService };
|
|
2993
3120
|
//# sourceMappingURL=codex-ts-core-lib.mjs.map
|