@es.framework/ng.ui.core 2.0.62 → 2.0.64
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/fesm2022/es.framework-ng.ui.core-checkbox.mjs +72 -58
- package/fesm2022/es.framework-ng.ui.core-checkbox.mjs.map +1 -1
- package/fesm2022/es.framework-ng.ui.core-form-button.mjs +38 -27
- package/fesm2022/es.framework-ng.ui.core-form-button.mjs.map +1 -1
- package/fesm2022/es.framework-ng.ui.core-formly-ui-all.mjs +14 -1
- package/fesm2022/es.framework-ng.ui.core-formly-ui-all.mjs.map +1 -1
- package/fesm2022/es.framework-ng.ui.core-generic-crud-report.mjs +22 -0
- package/fesm2022/es.framework-ng.ui.core-generic-crud-report.mjs.map +1 -0
- package/fesm2022/es.framework-ng.ui.core-generic-crud-table.mjs +1 -1
- package/fesm2022/es.framework-ng.ui.core-generic-crud-table.mjs.map +1 -1
- package/fesm2022/es.framework-ng.ui.core-generic-listbox.mjs +291 -0
- package/fesm2022/es.framework-ng.ui.core-generic-listbox.mjs.map +1 -0
- package/fesm2022/es.framework-ng.ui.core-generic-view.mjs +108 -131
- package/fesm2022/es.framework-ng.ui.core-generic-view.mjs.map +1 -1
- package/fesm2022/es.framework-ng.ui.core-input.mjs +2 -0
- package/fesm2022/es.framework-ng.ui.core-input.mjs.map +1 -1
- package/fesm2022/es.framework-ng.ui.core-repeat.mjs +62 -50
- package/fesm2022/es.framework-ng.ui.core-repeat.mjs.map +1 -1
- package/generic-crud-report/README.md +3 -0
- package/generic-listbox/README.md +3 -0
- package/package.json +9 -1
- package/types/es.framework-ng.ui.core-checkbox.d.ts +1 -0
- package/types/es.framework-ng.ui.core-form-button.d.ts +11 -3
- package/types/es.framework-ng.ui.core-formly-ui-all.d.ts +2 -1
- package/types/es.framework-ng.ui.core-generic-crud-report.d.ts +10 -0
- package/types/es.framework-ng.ui.core-generic-listbox.d.ts +72 -0
- package/types/es.framework-ng.ui.core-generic-view.d.ts +17 -6
|
@@ -2,82 +2,96 @@ import * as i0 from '@angular/core';
|
|
|
2
2
|
import { ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
|
|
3
3
|
import * as i1$1 from '@ngx-formly/core';
|
|
4
4
|
import { FieldType, FormlyAttributes, FormlyModule } from '@ngx-formly/core';
|
|
5
|
-
import
|
|
6
|
-
import * as i1 from '@angular/forms';
|
|
5
|
+
import * as i2 from '@angular/forms';
|
|
7
6
|
import { ReactiveFormsModule } from '@angular/forms';
|
|
8
7
|
import { TranslatePipe } from '@es.framework/ng.core/pipes';
|
|
9
|
-
import
|
|
10
|
-
import * as i2 from 'primeng/checkbox';
|
|
8
|
+
import * as i3 from 'primeng/checkbox';
|
|
11
9
|
import { CheckboxModule } from 'primeng/checkbox';
|
|
10
|
+
import { FormlyFormFieldModule } from '@es.framework/ng.ui.core/form-field';
|
|
11
|
+
import * as i1 from '@angular/common';
|
|
12
12
|
import { CommonModule } from '@angular/common';
|
|
13
13
|
|
|
14
14
|
class FormlyFieldCheckbox extends FieldType {
|
|
15
|
-
defaultOptions = {
|
|
15
|
+
defaultOptions = {
|
|
16
|
+
props: {
|
|
17
|
+
hideLabel: true,
|
|
18
|
+
},
|
|
19
|
+
};
|
|
20
|
+
isRtl() {
|
|
21
|
+
return document.body.dir === 'rtl' || document.documentElement.dir === 'rtl' || document.documentElement.lang === 'ar';
|
|
22
|
+
}
|
|
16
23
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: FormlyFieldCheckbox, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
17
24
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.1.3", type: FormlyFieldCheckbox, isStandalone: true, selector: "formly-field-primeng-checkbox", usesInheritance: true, ngImport: i0, template: `
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
25
|
+
<div
|
|
26
|
+
class="flex items-center gap-3 w-full py-3 px-2 border border-gray-200 rounded-lg bg-white transition-all duration-200 hover:bg-gray-50 focus-within:ring-1 focus-within:ring-blue-400 focus-within:border-blue-400"
|
|
27
|
+
[attr.dir]="isRtl() ? 'rtl' : 'ltr'"
|
|
28
|
+
[ngClass]="isRtl() ? ' justify-start text-left' : 'justify-end text-right'"
|
|
29
|
+
style="background: var(--p-button-secondary-background);"
|
|
30
|
+
>
|
|
31
|
+
<!-- [ngClass]="isRtl() ? 'flex-row' : 'flex-row-reverse'" -->
|
|
32
|
+
<!-- Checkbox FIRST (always start visually) -->
|
|
33
|
+
<p-checkbox
|
|
34
|
+
[binary]="true"
|
|
35
|
+
[formControl]="formControl"
|
|
36
|
+
[formlyAttributes]="field"
|
|
37
|
+
[inputId]="id"
|
|
38
|
+
class="shrink-0"
|
|
39
|
+
></p-checkbox>
|
|
29
40
|
|
|
30
|
-
|
|
31
|
-
|
|
41
|
+
<!-- Label SECOND -->
|
|
42
|
+
<label
|
|
43
|
+
[for]="id"
|
|
44
|
+
class="cursor-pointer select-none font-bold text-sm text-gray-800 truncate"
|
|
45
|
+
[title]="(to.label ?? '') | translate"
|
|
46
|
+
>
|
|
47
|
+
{{ (to.label ?? '') | translate }}
|
|
48
|
+
</label>
|
|
49
|
+
</div>
|
|
32
50
|
|
|
33
|
-
|
|
34
|
-
[binary]="true"
|
|
35
|
-
[formControl]="formControl"
|
|
36
|
-
[formlyAttributes]="field"
|
|
37
|
-
[inputId]="id"
|
|
38
|
-
|
|
39
|
-
/>
|
|
40
|
-
<label [for]="id" class="font-bold text-gray-800 ltr:mr-2 rtl:ml-2 whitespace-nowrap">
|
|
41
|
-
{{ (to.label ?? '') | translate }}
|
|
42
|
-
</label>
|
|
43
|
-
</div>
|
|
44
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: DatePickerModule }, { kind: "ngmodule", type: FormlyFormFieldModule }, { kind: "directive", type: FormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }, { kind: "ngmodule", type: CheckboxModule }, { kind: "component", type: i2.Checkbox, selector: "p-checkbox, p-checkBox, p-check-box", inputs: ["hostName", "value", "binary", "ariaLabelledBy", "ariaLabel", "tabindex", "inputId", "inputStyle", "styleClass", "inputClass", "indeterminate", "formControl", "checkboxIcon", "readonly", "autofocus", "trueValue", "falseValue", "variant", "size"], outputs: ["onChange", "onFocus", "onBlur"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
51
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: FormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }, { kind: "ngmodule", type: CheckboxModule }, { kind: "component", type: i3.Checkbox, selector: "p-checkbox, p-checkBox, p-check-box", inputs: ["hostName", "value", "binary", "ariaLabelledBy", "ariaLabel", "tabindex", "inputId", "inputStyle", "styleClass", "inputClass", "indeterminate", "formControl", "checkboxIcon", "readonly", "autofocus", "trueValue", "falseValue", "variant", "size"], outputs: ["onChange", "onFocus", "onBlur"] }, { kind: "ngmodule", type: FormlyFormFieldModule }, { kind: "pipe", type: TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
45
52
|
}
|
|
46
53
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: FormlyFieldCheckbox, decorators: [{
|
|
47
54
|
type: Component,
|
|
48
55
|
args: [{
|
|
49
56
|
selector: 'formly-field-primeng-checkbox',
|
|
57
|
+
standalone: true,
|
|
58
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
59
|
+
imports: [
|
|
60
|
+
CommonModule,
|
|
61
|
+
ReactiveFormsModule,
|
|
62
|
+
FormlyAttributes,
|
|
63
|
+
TranslatePipe,
|
|
64
|
+
CheckboxModule,
|
|
65
|
+
FormlyFormFieldModule
|
|
66
|
+
],
|
|
50
67
|
template: `
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
68
|
+
<div
|
|
69
|
+
class="flex items-center gap-3 w-full py-3 px-2 border border-gray-200 rounded-lg bg-white transition-all duration-200 hover:bg-gray-50 focus-within:ring-1 focus-within:ring-blue-400 focus-within:border-blue-400"
|
|
70
|
+
[attr.dir]="isRtl() ? 'rtl' : 'ltr'"
|
|
71
|
+
[ngClass]="isRtl() ? ' justify-start text-left' : 'justify-end text-right'"
|
|
72
|
+
style="background: var(--p-button-secondary-background);"
|
|
73
|
+
>
|
|
74
|
+
<!-- [ngClass]="isRtl() ? 'flex-row' : 'flex-row-reverse'" -->
|
|
75
|
+
<!-- Checkbox FIRST (always start visually) -->
|
|
76
|
+
<p-checkbox
|
|
77
|
+
[binary]="true"
|
|
78
|
+
[formControl]="formControl"
|
|
79
|
+
[formlyAttributes]="field"
|
|
80
|
+
[inputId]="id"
|
|
81
|
+
class="shrink-0"
|
|
82
|
+
></p-checkbox>
|
|
58
83
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
84
|
+
<!-- Label SECOND -->
|
|
85
|
+
<label
|
|
86
|
+
[for]="id"
|
|
87
|
+
class="cursor-pointer select-none font-bold text-sm text-gray-800 truncate"
|
|
88
|
+
[title]="(to.label ?? '') | translate"
|
|
89
|
+
>
|
|
90
|
+
{{ (to.label ?? '') | translate }}
|
|
91
|
+
</label>
|
|
92
|
+
</div>
|
|
62
93
|
|
|
63
|
-
|
|
64
|
-
<!-- text-lg -->
|
|
65
|
-
|
|
66
|
-
<p-checkbox
|
|
67
|
-
[binary]="true"
|
|
68
|
-
[formControl]="formControl"
|
|
69
|
-
[formlyAttributes]="field"
|
|
70
|
-
[inputId]="id"
|
|
71
|
-
|
|
72
|
-
/>
|
|
73
|
-
<label [for]="id" class="font-bold text-gray-800 ltr:mr-2 rtl:ml-2 whitespace-nowrap">
|
|
74
|
-
{{ (to.label ?? '') | translate }}
|
|
75
|
-
</label>
|
|
76
|
-
</div>
|
|
77
|
-
`,
|
|
78
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
79
|
-
standalone: true,
|
|
80
|
-
imports: [ReactiveFormsModule, DatePickerModule, FormlyFormFieldModule, FormlyAttributes, TranslatePipe, CheckboxModule]
|
|
94
|
+
`
|
|
81
95
|
}]
|
|
82
96
|
}] });
|
|
83
97
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"es.framework-ng.ui.core-checkbox.mjs","sources":["../../../../libs/ng.ui.core/checkbox/src/lib/checkbox.type.ts","../../../../libs/ng.ui.core/checkbox/src/lib/checkbox.config.ts","../../../../libs/ng.ui.core/checkbox/src/lib/checkbox.module.ts","../../../../libs/ng.ui.core/checkbox/src/es.framework-ng.ui.core-checkbox.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy, Type } from '@angular/core';\nimport { FieldType, FieldTypeConfig, FormlyAttributes, FormlyFieldConfig } from '@ngx-formly/core';\
|
|
1
|
+
{"version":3,"file":"es.framework-ng.ui.core-checkbox.mjs","sources":["../../../../libs/ng.ui.core/checkbox/src/lib/checkbox.type.ts","../../../../libs/ng.ui.core/checkbox/src/lib/checkbox.config.ts","../../../../libs/ng.ui.core/checkbox/src/lib/checkbox.module.ts","../../../../libs/ng.ui.core/checkbox/src/es.framework-ng.ui.core-checkbox.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy, Type } from '@angular/core';\nimport { FieldType, FieldTypeConfig, FormlyAttributes, FormlyFieldConfig } from '@ngx-formly/core';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { TranslatePipe } from '@es.framework/ng.core/pipes';\nimport { CheckboxModule } from 'primeng/checkbox';\nimport { FormlyFormFieldModule, FormlyFieldProps as CheckboxProps } from '@es.framework/ng.ui.core/form-field';\nimport { CommonModule } from '@angular/common';\n\nexport interface FormlyCheckboxFieldConfig extends FormlyFieldConfig<CheckboxProps> {\n type: 'checkbox' | Type<FormlyFieldCheckbox>;\n}\n\n@Component({\n selector: 'formly-field-primeng-checkbox',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [\n CommonModule,\n ReactiveFormsModule,\n FormlyAttributes,\n TranslatePipe,\n CheckboxModule,\n FormlyFormFieldModule\n ],\n template: `\n <div\n class=\"flex items-center gap-3 w-full py-3 px-2 border border-gray-200 rounded-lg bg-white transition-all duration-200 hover:bg-gray-50 focus-within:ring-1 focus-within:ring-blue-400 focus-within:border-blue-400\"\n [attr.dir]=\"isRtl() ? 'rtl' : 'ltr'\"\n [ngClass]=\"isRtl() ? ' justify-start text-left' : 'justify-end text-right'\"\n style=\"background: var(--p-button-secondary-background);\"\n >\n <!-- [ngClass]=\"isRtl() ? 'flex-row' : 'flex-row-reverse'\" -->\n <!-- Checkbox FIRST (always start visually) -->\n <p-checkbox\n [binary]=\"true\"\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [inputId]=\"id\"\n class=\"shrink-0\"\n ></p-checkbox>\n\n <!-- Label SECOND -->\n <label\n [for]=\"id\"\n class=\"cursor-pointer select-none font-bold text-sm text-gray-800 truncate\"\n [title]=\"(to.label ?? '') | translate\"\n >\n {{ (to.label ?? '') | translate }}\n </label>\n </div>\n\n `\n})\nexport class FormlyFieldCheckbox extends FieldType<FieldTypeConfig<CheckboxProps>> {\n override defaultOptions = {\n props: {\n hideLabel: true,\n },\n };\n\n isRtl(): boolean {\n return document.body.dir === 'rtl' || document.documentElement.dir === 'rtl' || document.documentElement.lang === 'ar';\n }\n}","import { ConfigOption } from '@ngx-formly/core';\nimport { FormlyFieldCheckbox } from './checkbox.type';\n\nexport function withFormlyFieldCheckbox(): ConfigOption {\n return {\n types: [\n {\n name: 'checkbox',\n component: FormlyFieldCheckbox,\n wrappers: ['form-field'],\n },\n {\n name: 'boolean',\n extends: 'checkbox',\n },\n ],\n };\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { CheckboxModule } from 'primeng/checkbox';\n\nimport { FormlyFieldCheckbox } from './checkbox.type';\nimport { withFormlyFieldCheckbox } from './checkbox.config';\nimport { FormlyFormFieldModule } from '@es.framework/ng.ui.core/form-field';\n\n@NgModule({\n // declarations: [FormlyFieldCheckbox],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n CheckboxModule,\n FormlyFormFieldModule,\n FormlyModule.forChild(withFormlyFieldCheckbox()),\n ],\n})\nexport class FormlyCheckboxModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;AAqDM,MAAO,mBAAoB,SAAQ,SAAyC,CAAA;AACvE,IAAA,cAAc,GAAG;AACxB,QAAA,KAAK,EAAE;AACL,YAAA,SAAS,EAAE,IAAI;AAChB,SAAA;KACF;IAED,KAAK,GAAA;QACH,OAAO,QAAQ,CAAC,IAAI,CAAC,GAAG,KAAK,KAAK,IAAI,QAAQ,CAAC,eAAe,CAAC,GAAG,KAAK,KAAK,IAAI,QAAQ,CAAC,eAAe,CAAC,IAAI,KAAK,IAAI;IACxH;uGATW,mBAAmB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EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA;AAApB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,oBAAoB,YAP7B,YAAY;YACZ,mBAAmB;YACnB,cAAc;YACd,qBAAqB,EAAAA,IAAA,CAAA,YAAA,CAAA,EAAA,CAAA;AAIZ,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,oBAAoB,YAP7B,YAAY;YACZ,mBAAmB;YACnB,cAAc;YACd,qBAAqB;AACrB,YAAA,YAAY,CAAC,QAAQ,CAAC,uBAAuB,EAAE,CAAC,CAAA,EAAA,CAAA;;2FAGvC,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAVhC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;;AAER,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,cAAc;wBACd,qBAAqB;AACrB,wBAAA,YAAY,CAAC,QAAQ,CAAC,uBAAuB,EAAE,CAAC;AACjD,qBAAA;AACF,iBAAA;;;ACnBD;;AAEG;;;;"}
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { NgModule, Component } from '@angular/core';
|
|
3
|
-
import { CommonModule
|
|
4
|
-
import {
|
|
3
|
+
import { CommonModule } from '@angular/common';
|
|
4
|
+
import { ReactiveFormsModule } from '@angular/forms';
|
|
5
|
+
import { TranslatePipe } from '@es.framework/ng.core/pipes';
|
|
6
|
+
import { FieldType, FormlyAttributes } from '@ngx-formly/core';
|
|
7
|
+
import * as i1 from 'primeng/button';
|
|
8
|
+
import { ButtonModule } from 'primeng/button';
|
|
9
|
+
import * as i2 from 'primeng/tooltip';
|
|
10
|
+
import { TooltipModule } from 'primeng/tooltip';
|
|
5
11
|
|
|
6
12
|
class FormButtonModule {
|
|
7
13
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: FormButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
@@ -16,41 +22,46 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImpor
|
|
|
16
22
|
}] });
|
|
17
23
|
|
|
18
24
|
class FormlyFieldButton extends FieldType {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
25
|
+
handleClick(event) {
|
|
26
|
+
event.preventDefault();
|
|
27
|
+
event.stopPropagation();
|
|
28
|
+
const clickFn = this.props.click;
|
|
29
|
+
clickFn?.(this.field);
|
|
23
30
|
}
|
|
24
31
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: FormlyFieldButton, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
25
32
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.1.3", type: FormlyFieldButton, isStandalone: true, selector: "formly-field-button", usesInheritance: true, ngImport: i0, template: `
|
|
26
|
-
<
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
33
|
+
<p-button
|
|
34
|
+
[label]="(props.buttonLabel || '') | translate"
|
|
35
|
+
[icon]="props.icon"
|
|
36
|
+
[severity]="props.severity || 'primary'"
|
|
37
|
+
[disabled]="!!props.disabled"
|
|
38
|
+
[pTooltip]="(props.tooltip || '') | translate"
|
|
39
|
+
(onClick)="handleClick($event)"
|
|
40
|
+
></p-button>
|
|
41
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "ngmodule", type: ButtonModule }, { kind: "component", type: i1.Button, selector: "p-button", inputs: ["hostName", "type", "badge", "disabled", "raised", "rounded", "text", "plain", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "autofocus", "iconPos", "icon", "label", "loading", "loadingIcon", "severity", "buttonProps", "fluid"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "ngmodule", type: TooltipModule }, { kind: "directive", type: i2.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "pTooltip", "tooltipDisabled", "tooltipOptions", "appendTo", "ptTooltip"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }] });
|
|
36
42
|
}
|
|
37
43
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: FormlyFieldButton, decorators: [{
|
|
38
44
|
type: Component,
|
|
39
45
|
args: [{
|
|
40
46
|
selector: 'formly-field-button',
|
|
47
|
+
standalone: true,
|
|
48
|
+
imports: [
|
|
49
|
+
ReactiveFormsModule,
|
|
50
|
+
FormlyAttributes,
|
|
51
|
+
ButtonModule,
|
|
52
|
+
TooltipModule,
|
|
53
|
+
TranslatePipe
|
|
54
|
+
],
|
|
41
55
|
template: `
|
|
42
|
-
<
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
</div>
|
|
56
|
+
<p-button
|
|
57
|
+
[label]="(props.buttonLabel || '') | translate"
|
|
58
|
+
[icon]="props.icon"
|
|
59
|
+
[severity]="props.severity || 'primary'"
|
|
60
|
+
[disabled]="!!props.disabled"
|
|
61
|
+
[pTooltip]="(props.tooltip || '') | translate"
|
|
62
|
+
(onClick)="handleClick($event)"
|
|
63
|
+
></p-button>
|
|
51
64
|
`,
|
|
52
|
-
standalone: true,
|
|
53
|
-
imports: [NgClass],
|
|
54
65
|
}]
|
|
55
66
|
}] });
|
|
56
67
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"es.framework-ng.ui.core-form-button.mjs","sources":["../../../../libs/ng.ui.core/form-button/src/lib/form-button-module.ts","../../../../libs/ng.ui.core/form-button/src/lib/form-button.type.ts","../../../../libs/ng.ui.core/form-button/src/es.framework-ng.ui.core-form-button.ts"],"sourcesContent":["import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\n@NgModule({\n imports: [CommonModule],\n})\nexport class FormButtonModule {}\n","import { Component } from '@angular/core';\r\nimport { FieldType } from '@ngx-formly/core';\r\nimport {
|
|
1
|
+
{"version":3,"file":"es.framework-ng.ui.core-form-button.mjs","sources":["../../../../libs/ng.ui.core/form-button/src/lib/form-button-module.ts","../../../../libs/ng.ui.core/form-button/src/lib/form-button.type.ts","../../../../libs/ng.ui.core/form-button/src/es.framework-ng.ui.core-form-button.ts"],"sourcesContent":["import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\n@NgModule({\n imports: [CommonModule],\n})\nexport class FormButtonModule {}\n","import { Component } from '@angular/core';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\nimport { TranslatePipe } from '@es.framework/ng.core/pipes';\r\nimport { FieldType, FieldTypeConfig, FormlyFieldConfig, FormlyAttributes } from '@ngx-formly/core';\r\nimport { ButtonModule } from 'primeng/button';\r\nimport { TooltipModule } from 'primeng/tooltip';\r\n\r\ninterface ButtonProps {\r\n buttonLabel?: string;\r\n icon?: string;\r\n severity?: 'secondary' | 'primary' | 'success' | 'info' | 'help' | 'danger' | 'contrast';\r\n disabled?: boolean;\r\n tooltip?: string;\r\n click?: (field: FormlyFieldConfig) => void;\r\n}\r\n\r\n@Component({\r\n selector: 'formly-field-button',\r\n standalone: true,\r\n imports: [\r\n ReactiveFormsModule,\r\n FormlyAttributes,\r\n ButtonModule,\r\n TooltipModule,\r\n TranslatePipe\r\n ],\r\n template: `\r\n <p-button\r\n [label]=\"(props.buttonLabel || '') | translate\"\r\n [icon]=\"props.icon\"\r\n [severity]=\"props.severity || 'primary'\"\r\n [disabled]=\"!!props.disabled\"\r\n [pTooltip]=\"(props.tooltip || '') | translate\"\r\n (onClick)=\"handleClick($event)\"\r\n ></p-button>\r\n `,\r\n})\r\nexport class FormlyFieldButton extends FieldType<FieldTypeConfig<ButtonProps>> {\r\n\r\n handleClick(event: Event) {\r\n event.preventDefault();\r\n event.stopPropagation();\r\n\r\n const clickFn = this.props.click;\r\n clickFn?.(this.field);\r\n }\r\n}","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;MAMa,gBAAgB,CAAA;uGAAhB,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA;AAAhB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,gBAAgB,YAFjB,YAAY,CAAA,EAAA,CAAA;AAEX,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,gBAAgB,YAFjB,YAAY,CAAA,EAAA,CAAA;;2FAEX,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAH5B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,YAAY,CAAC;AACxB,iBAAA;;;ACgCK,MAAO,iBAAkB,SAAQ,SAAuC,CAAA;AAE5E,IAAA,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QAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EACZ,aAAa,8XACb,aAAa,EAAA,IAAA,EAAA,WAAA,EAAA,CAAA,EAAA,CAAA;;2FAaJ,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBArB7B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,qBAAqB;AAC/B,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,OAAO,EAAE;wBACP,mBAAmB;wBACnB,gBAAgB;wBAChB,YAAY;wBACZ,aAAa;wBACb;AACD,qBAAA;AACD,oBAAA,QAAQ,EAAE,CAAA;;;;;;;;;AAST,EAAA,CAAA;AACF,iBAAA;;;ACpCD;;AAEG;;;;"}
|
|
@@ -26,6 +26,7 @@ import { RichTextEditorTypeComponent } from '@es.framework/ng.ui.core/text-edito
|
|
|
26
26
|
import { PanelWrapperComponent, LabelWrapperComponent, TdWrapperComponent, CustomFieldWrapper } from '@es.framework/ng.ui.core/wrappers';
|
|
27
27
|
import { QueryTypeComponent } from '@es.framework/ng.ui.core/query-type';
|
|
28
28
|
import { PrimeIconPickerComponent } from '@es.framework/ng.ui.core/formly-prime-icon-picker';
|
|
29
|
+
import { GenericListboxTypeComponent } from '@es.framework/ng.ui.core/generic-listbox';
|
|
29
30
|
|
|
30
31
|
class FormlyUiAllModule {
|
|
31
32
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: FormlyUiAllModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
@@ -66,6 +67,8 @@ function provideAllFormlyFields() {
|
|
|
66
67
|
withFormlyFieldAvatarImage,
|
|
67
68
|
withFormlyWrappers,
|
|
68
69
|
withFormlyQueryBuilder,
|
|
70
|
+
withFormlyFieldGenericListbox,
|
|
71
|
+
withFormlyPrimeIconPicker
|
|
69
72
|
];
|
|
70
73
|
// Call each provider function to get the Provider object
|
|
71
74
|
return fields.map(fn => fn());
|
|
@@ -413,10 +416,20 @@ function withFormlyWrappers() {
|
|
|
413
416
|
],
|
|
414
417
|
};
|
|
415
418
|
}
|
|
419
|
+
function withFormlyFieldGenericListbox() {
|
|
420
|
+
return {
|
|
421
|
+
types: [
|
|
422
|
+
{
|
|
423
|
+
name: 'generic-listbox',
|
|
424
|
+
component: GenericListboxTypeComponent,
|
|
425
|
+
},
|
|
426
|
+
],
|
|
427
|
+
};
|
|
428
|
+
}
|
|
416
429
|
|
|
417
430
|
/**
|
|
418
431
|
* Generated bundle index. Do not edit.
|
|
419
432
|
*/
|
|
420
433
|
|
|
421
|
-
export { FormlyUiAllModule, globalGenericSelectorExtension, provideAllFormlyFields, withFormlyFieldAttachment, withFormlyFieldAvatarImage, withFormlyFieldAvatarLabelButton, withFormlyFieldButton, withFormlyFieldButtonSelection, withFormlyFieldClickableLabelType, withFormlyFieldColorPicker, withFormlyFieldColorTag, withFormlyFieldCustomSwitch, withFormlyFieldFormlyButton, withFormlyFieldFormlySplit, withFormlyFieldGenericSelector, withFormlyFieldIconPicker, withFormlyFieldInputWithIcon, withFormlyFieldLabelType, withFormlyFieldOptionTag, withFormlyFieldRepeat, withFormlyFieldRichTextEditor, withFormlyFieldSwitch, withFormlyFieldTabs, withFormlyFieldTag, withFormlyFieldTemplate, withFormlyFieldUsernameWithDomain, withFormlyPrimeIconPicker, withFormlyQueryBuilder, withFormlyWrappers };
|
|
434
|
+
export { FormlyUiAllModule, globalGenericSelectorExtension, provideAllFormlyFields, withFormlyFieldAttachment, withFormlyFieldAvatarImage, withFormlyFieldAvatarLabelButton, withFormlyFieldButton, withFormlyFieldButtonSelection, withFormlyFieldClickableLabelType, withFormlyFieldColorPicker, withFormlyFieldColorTag, withFormlyFieldCustomSwitch, withFormlyFieldFormlyButton, withFormlyFieldFormlySplit, withFormlyFieldGenericListbox, withFormlyFieldGenericSelector, withFormlyFieldIconPicker, withFormlyFieldInputWithIcon, withFormlyFieldLabelType, withFormlyFieldOptionTag, withFormlyFieldRepeat, withFormlyFieldRichTextEditor, withFormlyFieldSwitch, withFormlyFieldTabs, withFormlyFieldTag, withFormlyFieldTemplate, withFormlyFieldUsernameWithDomain, withFormlyPrimeIconPicker, withFormlyQueryBuilder, withFormlyWrappers };
|
|
422
435
|
//# sourceMappingURL=es.framework-ng.ui.core-formly-ui-all.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"es.framework-ng.ui.core-formly-ui-all.mjs","sources":["../../../../libs/ng.ui.core/formly-ui-all/src/lib/formly-ui-all-module.ts","../../../../libs/ng.ui.core/formly-ui-all/src/lib/formly-all.config.ts","../../../../libs/ng.ui.core/formly-ui-all/src/es.framework-ng.ui.core-formly-ui-all.ts"],"sourcesContent":["import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\n@NgModule({\n imports: [CommonModule],\n})\nexport class FormlyUiAllModule {}\n","import { AttachmentTypeComponent } from \"@es.framework/ng.ui.core/attachments\";\r\nimport { CollapsibleWrapper } from \"@es.framework/ng.ui.core/collapsible\";\r\nimport { ColorPickerComponent } from \"@es.framework/ng.ui.core/color-picker\";\r\nimport { CustomSwitchFieldComponent } from \"@es.framework/ng.ui.core/custom-switch\";\r\nimport { FormlyFieldButton } from \"@es.framework/ng.ui.core/form-button\";\r\nimport { FormlyTemplateType } from \"@es.framework/ng.ui.core/form-template\";\r\nimport { FormlyAvatarImageComponent } from \"@es.framework/ng.ui.core/formly-avatar-image\";\r\nimport { FormlyAvatarLabelComponent } from \"@es.framework/ng.ui.core/formly-avatar-label\";\r\nimport { FormlyButtonComponent } from \"@es.framework/ng.ui.core/formly-button\";\r\nimport { FormlySelectionButtonComponent } from \"@es.framework/ng.ui.core/formly-button-selector\";\r\nimport { FormlySplitButtonComponent } from \"@es.framework/ng.ui.core/formly-split-button\";\r\nimport { UsernameWithDomainComponent } from \"@es.framework/ng.ui.core/formly-username-with-domain\";\r\nimport { ColumnsBuilderComponent, GroupBuilderComponent, GroupTypeComponent, QueryBuilderComponent, SortBuilderComponent, TabTypeComponent } from \"@es.framework/ng.ui.core/generic-search-advanced\";\r\nimport { GenericSelectorTypeComponent } from \"@es.framework/ng.ui.core/generic-selector\";\r\nimport { IconPickerComponent } from \"@es.framework/ng.ui.core/icon-picker\";\r\nimport { InputSwitchTypeComponent } from \"@es.framework/ng.ui.core/input-switch\";\r\nimport { InputWithIconType } from \"@es.framework/ng.ui.core/input-with-icon\";\r\nimport { LabelTypeComponent, ClickableLabelTypeComponent, CustomTypeComponent } from \"@es.framework/ng.ui.core/label-type\";\r\nimport { RepeatTableViewType, RepeatTypeComponent } from \"@es.framework/ng.ui.core/repeat\";\r\nimport { TabsTypeComponent } from \"@es.framework/ng.ui.core/tabs\";\r\nimport { OptionTagTypeComponent, TagTypeComponent, ColorTagTypeComponent } from \"@es.framework/ng.ui.core/tag-type\";\r\nimport { RichTextEditorTypeComponent } from \"@es.framework/ng.ui.core/text-editor\";\r\nimport { PanelWrapperComponent, LabelWrapperComponent, TdWrapperComponent, CustomFieldWrapper } from \"@es.framework/ng.ui.core/wrappers\";\r\n// eslint-disable-next-line @nx/enforce-module-boundaries\r\nimport { ConfigOption, FormlyFieldConfig } from \"@ngx-formly/core\";\r\nimport { QueryTypeComponent } from \"@es.framework/ng.ui.core/query-type\";\r\nimport { PrimeIconPickerComponent } from \"@es.framework/ng.ui.core/formly-prime-icon-picker\";\r\n\r\n\r\nexport function provideAllFormlyFields(): ConfigOption[] {\r\n const fields = [\r\n\r\n withFormlyFieldInputWithIcon,\r\n withFormlyFieldAttachment,\r\n withFormlyFieldRichTextEditor,\r\n withFormlyFieldGenericSelector,\r\n withFormlyFieldSwitch,\r\n withFormlyFieldUsernameWithDomain,\r\n withFormlyFieldCustomSwitch,\r\n withFormlyFieldFormlySplit,\r\n withFormlyFieldButtonSelection,\r\n withFormlyFieldAvatarLabelButton,\r\n withFormlyFieldFormlyButton,\r\n withFormlyFieldLabelType,\r\n withFormlyFieldClickableLabelType,\r\n withFormlyFieldOptionTag,\r\n withFormlyFieldRepeat,\r\n withFormlyFieldTabs,\r\n withFormlyFieldTag,\r\n withFormlyFieldColorTag,\r\n withFormlyFieldIconPicker,\r\n withFormlyFieldColorPicker,\r\n withFormlyFieldTemplate,\r\n withFormlyFieldButton,\r\n withFormlyFieldAvatarImage,\r\n withFormlyWrappers,\r\n withFormlyQueryBuilder,\r\n ];\r\n\r\n // Call each provider function to get the Provider object\r\n return fields.map(fn => fn());\r\n}\r\n\r\n\r\n// ---- Field Providers ----\r\n\r\n\r\nexport function withFormlyQueryBuilder(): ConfigOption {\r\n return {\r\n types: [\r\n {\r\n name: 'query-builder',\r\n component: QueryBuilderComponent\r\n },\r\n {\r\n name: 'sort-builder',\r\n component: SortBuilderComponent\r\n },\r\n {\r\n name: 'group', component: GroupTypeComponent\r\n },\r\n {\r\n name: 'tab-type',\r\n component: TabTypeComponent\r\n },\r\n {\r\n name: 'group-builder',\r\n component: GroupBuilderComponent\r\n },\r\n {\r\n name: 'columns-builder',\r\n component: ColumnsBuilderComponent\r\n },\r\n { name: 'query-type', component: QueryTypeComponent, },\r\n ],\r\n };\r\n}\r\n\r\n\r\nexport function withFormlyFieldInputWithIcon(): ConfigOption {\r\n return {\r\n types: [\r\n {\r\n name: 'inputWithIcon',\r\n component: InputWithIconType,\r\n wrappers: ['form-field'],\r\n },\r\n ],\r\n };\r\n}\r\n\r\nexport function withFormlyFieldAttachment(): ConfigOption {\r\n return {\r\n types: [\r\n {\r\n name: 'attachment-type',\r\n component: AttachmentTypeComponent,\r\n wrappers: ['form-field'],\r\n },\r\n ],\r\n };\r\n}\r\n\r\nexport function withFormlyFieldRichTextEditor(): ConfigOption {\r\n return {\r\n types: [\r\n {\r\n name: 'rich-text-editor',\r\n component: RichTextEditorTypeComponent,\r\n wrappers: ['form-field'],\r\n },\r\n ],\r\n };\r\n}\r\n\r\nexport function withFormlyFieldGenericSelector(): ConfigOption {\r\n return {\r\n types: [\r\n {\r\n name: 'generic-selector',\r\n component: GenericSelectorTypeComponent,\r\n wrappers: ['form-field'],\r\n // defaultOptions: {\r\n // props: {\r\n // loadDefaultField: 'isDefault', // 👈 default value\r\n // loadDefaultValue: true, // 👈 default value\r\n // loadDefault: true, // 👈 default value\r\n\r\n // fixedFilters:{\r\n // isActive:true\r\n // }\r\n // },\r\n // },\r\n },\r\n ],\r\n };\r\n}\r\nexport function globalGenericSelectorExtension(): ConfigOption {\r\n return {\r\n extensions: [\r\n {\r\n name: 'generic-selector-defaults',\r\n extension: {\r\n prePopulate(field: FormlyFieldConfig) {\r\n if (field.type === 'generic-selector') {\r\n field.props = {\r\n loadDefaultField: 'isDefault',\r\n loadDefaultValue: true,\r\n loadDefault: true,\r\n fixedFilters:{\r\n isActive:true\r\n },\r\n ...field.props, // 👈 keep per-field overrides\r\n };\r\n }\r\n },\r\n },\r\n },\r\n ],\r\n };\r\n}\r\n\r\nexport function withFormlyFieldSwitch(): ConfigOption {\r\n return {\r\n types: [\r\n {\r\n name: 'switch',\r\n component: InputSwitchTypeComponent,\r\n wrappers: ['form-field-no'],\r\n },\r\n ],\r\n };\r\n}\r\n\r\nexport function withFormlyFieldUsernameWithDomain(): ConfigOption {\r\n return {\r\n types: [\r\n {\r\n name: 'username-with-domain',\r\n component: UsernameWithDomainComponent,\r\n wrappers: ['form-field'],\r\n },\r\n ],\r\n };\r\n}\r\n\r\nexport function withFormlyFieldCustomSwitch(): ConfigOption {\r\n return {\r\n types: [\r\n {\r\n name: 'custom-switch',\r\n component: CustomSwitchFieldComponent,\r\n wrappers: ['form-field-no'],\r\n },\r\n ],\r\n };\r\n}\r\n\r\nexport function withFormlyFieldFormlySplit(): ConfigOption {\r\n return {\r\n types: [\r\n {\r\n name: 'Formly-Split',\r\n component: FormlySplitButtonComponent,\r\n wrappers: ['form-field'],\r\n },\r\n ],\r\n };\r\n}\r\n\r\nexport function withFormlyFieldButtonSelection(): ConfigOption {\r\n return {\r\n types: [\r\n {\r\n name: 'Button-Selection',\r\n component: FormlySelectionButtonComponent,\r\n wrappers: ['form-field'],\r\n },\r\n ],\r\n };\r\n}\r\n\r\nexport function withFormlyFieldAvatarLabelButton(): ConfigOption {\r\n return {\r\n types: [\r\n {\r\n name: 'avatar-label-button',\r\n component: FormlyAvatarLabelComponent,\r\n },\r\n ],\r\n };\r\n}\r\n\r\nexport function withFormlyFieldFormlyButton(): ConfigOption {\r\n return {\r\n types: [\r\n {\r\n name: 'formly-button',\r\n component: FormlyButtonComponent,\r\n },\r\n ],\r\n };\r\n}\r\n\r\nexport function withFormlyFieldLabelType(): ConfigOption {\r\n return {\r\n types: [\r\n {\r\n name: 'label-type',\r\n component: LabelTypeComponent,\r\n },\r\n {\r\n name: 'custom-label-type',\r\n component: CustomTypeComponent,\r\n wrappers:['field-wrapper']\r\n },\r\n\r\n ],\r\n };\r\n}\r\n\r\nexport function withFormlyFieldClickableLabelType(): ConfigOption {\r\n return {\r\n types: [\r\n {\r\n name: 'clickable-label-type',\r\n component: ClickableLabelTypeComponent,\r\n },\r\n ],\r\n };\r\n}\r\n\r\nexport function withFormlyFieldOptionTag(): ConfigOption {\r\n return {\r\n types: [\r\n {\r\n name: 'option-tag',\r\n component: OptionTagTypeComponent,\r\n },\r\n ],\r\n };\r\n}\r\n\r\nexport function withFormlyFieldRepeat(): ConfigOption {\r\n return {\r\n types: [\r\n {\r\n name: 'repeat',\r\n component: RepeatTypeComponent,\r\n },\r\n {\r\n name: 'repeat-table-view',\r\n component: RepeatTableViewType,\r\n },\r\n ],\r\n };\r\n}\r\n\r\nexport function withFormlyFieldTabs(): ConfigOption {\r\n return {\r\n types: [\r\n {\r\n name: 'tabs',\r\n component: TabsTypeComponent,\r\n },\r\n ],\r\n };\r\n}\r\n\r\nexport function withFormlyFieldTag(): ConfigOption {\r\n return {\r\n types: [\r\n {\r\n name: 'tag',\r\n component: TagTypeComponent,\r\n },\r\n ],\r\n };\r\n}\r\n\r\nexport function withFormlyFieldColorTag(): ConfigOption {\r\n return {\r\n types: [\r\n {\r\n name: 'color-tag',\r\n component: ColorTagTypeComponent,\r\n },\r\n ],\r\n };\r\n}\r\n\r\n\r\n\r\nexport function withFormlyFieldIconPicker(): ConfigOption {\r\n return {\r\n types: [\r\n {\r\n name: 'icon-picker',\r\n component: IconPickerComponent,\r\n wrappers: ['form-field-no'],\r\n },\r\n ],\r\n };\r\n}\r\n\r\nexport function withFormlyFieldColorPicker(): ConfigOption {\r\n return {\r\n types: [\r\n {\r\n name: 'color-picker',\r\n component: ColorPickerComponent,\r\n wrappers: ['form-field-no'],\r\n },\r\n ],\r\n };\r\n}\r\n\r\nexport function withFormlyFieldTemplate(): ConfigOption {\r\n return {\r\n types: [\r\n {\r\n name: 'template',\r\n component: FormlyTemplateType,\r\n },\r\n ],\r\n };\r\n}\r\n\r\nexport function withFormlyFieldButton(): ConfigOption {\r\n return {\r\n types: [\r\n {\r\n name: 'button',\r\n component: FormlyFieldButton,\r\n wrappers: ['form-field'],\r\n defaultOptions: {\r\n props: {\r\n btnType: 'default',\r\n type: 'button',\r\n },\r\n },\r\n },\r\n ],\r\n };\r\n}\r\n\r\nexport function withFormlyFieldAvatarImage(): ConfigOption {\r\n return {\r\n types: [\r\n {\r\n name: 'avatar-image',\r\n component: FormlyAvatarImageComponent,\r\n },\r\n ],\r\n };\r\n}\r\n\r\nexport function withFormlyPrimeIconPicker(): ConfigOption {\r\n return {\r\n types: [\r\n {\r\n name: 'prime-icon-picker',\r\n component: PrimeIconPickerComponent,\r\n },\r\n ],\r\n };\r\n}\r\n\r\nexport function withFormlyWrappers(): ConfigOption {\r\n return {\r\n wrappers: [\r\n { name: 'panel', component: PanelWrapperComponent },\r\n { name: 'label', component: LabelWrapperComponent },\r\n { name: 'td', component: TdWrapperComponent },\r\n { name: 'collapsible', component: CollapsibleWrapper },\r\n { name: 'field-wrapper', component: CustomFieldWrapper },\r\n ],\r\n };\r\n}\r\n\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;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Aa,EAAE,SAAS,EAAE,kBAAkB,EAAE;AACtD,YAAA,EAAE,IAAI,EAAE,eAAe,EAAE,SAAS,EAAE,kBAAkB,EAAE;AACzD,SAAA;KACF;AACH;;ACtbA;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"es.framework-ng.ui.core-formly-ui-all.mjs","sources":["../../../../libs/ng.ui.core/formly-ui-all/src/lib/formly-ui-all-module.ts","../../../../libs/ng.ui.core/formly-ui-all/src/lib/formly-all.config.ts","../../../../libs/ng.ui.core/formly-ui-all/src/es.framework-ng.ui.core-formly-ui-all.ts"],"sourcesContent":["import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\n@NgModule({\n imports: [CommonModule],\n})\nexport class FormlyUiAllModule {}\n","import { AttachmentTypeComponent } from \"@es.framework/ng.ui.core/attachments\";\r\nimport { CollapsibleWrapper } from \"@es.framework/ng.ui.core/collapsible\";\r\nimport { ColorPickerComponent } from \"@es.framework/ng.ui.core/color-picker\";\r\nimport { CustomSwitchFieldComponent } from \"@es.framework/ng.ui.core/custom-switch\";\r\nimport { FormlyFieldButton } from \"@es.framework/ng.ui.core/form-button\";\r\nimport { FormlyTemplateType } from \"@es.framework/ng.ui.core/form-template\";\r\nimport { FormlyAvatarImageComponent } from \"@es.framework/ng.ui.core/formly-avatar-image\";\r\nimport { FormlyAvatarLabelComponent } from \"@es.framework/ng.ui.core/formly-avatar-label\";\r\nimport { FormlyButtonComponent } from \"@es.framework/ng.ui.core/formly-button\";\r\nimport { FormlySelectionButtonComponent } from \"@es.framework/ng.ui.core/formly-button-selector\";\r\nimport { FormlySplitButtonComponent } from \"@es.framework/ng.ui.core/formly-split-button\";\r\nimport { UsernameWithDomainComponent } from \"@es.framework/ng.ui.core/formly-username-with-domain\";\r\nimport { ColumnsBuilderComponent, GroupBuilderComponent, GroupTypeComponent, QueryBuilderComponent, SortBuilderComponent, TabTypeComponent } from \"@es.framework/ng.ui.core/generic-search-advanced\";\r\nimport { GenericSelectorTypeComponent } from \"@es.framework/ng.ui.core/generic-selector\";\r\nimport { IconPickerComponent } from \"@es.framework/ng.ui.core/icon-picker\";\r\nimport { InputSwitchTypeComponent } from \"@es.framework/ng.ui.core/input-switch\";\r\nimport { InputWithIconType } from \"@es.framework/ng.ui.core/input-with-icon\";\r\nimport { LabelTypeComponent, ClickableLabelTypeComponent, CustomTypeComponent } from \"@es.framework/ng.ui.core/label-type\";\r\nimport { RepeatTableViewType, RepeatTypeComponent } from \"@es.framework/ng.ui.core/repeat\";\r\nimport { TabsTypeComponent } from \"@es.framework/ng.ui.core/tabs\";\r\nimport { OptionTagTypeComponent, TagTypeComponent, ColorTagTypeComponent } from \"@es.framework/ng.ui.core/tag-type\";\r\nimport { RichTextEditorTypeComponent } from \"@es.framework/ng.ui.core/text-editor\";\r\nimport { PanelWrapperComponent, LabelWrapperComponent, TdWrapperComponent, CustomFieldWrapper } from \"@es.framework/ng.ui.core/wrappers\";\r\n// eslint-disable-next-line @nx/enforce-module-boundaries\r\nimport { ConfigOption, FormlyFieldConfig } from \"@ngx-formly/core\";\r\nimport { QueryTypeComponent } from \"@es.framework/ng.ui.core/query-type\";\r\nimport { PrimeIconPickerComponent } from \"@es.framework/ng.ui.core/formly-prime-icon-picker\";\r\nimport { GenericListboxTypeComponent } from \"@es.framework/ng.ui.core/generic-listbox\";\r\n\r\n\r\nexport function provideAllFormlyFields(): ConfigOption[] {\r\n const fields = [\r\n\r\n withFormlyFieldInputWithIcon,\r\n withFormlyFieldAttachment,\r\n withFormlyFieldRichTextEditor,\r\n withFormlyFieldGenericSelector,\r\n withFormlyFieldSwitch,\r\n withFormlyFieldUsernameWithDomain,\r\n withFormlyFieldCustomSwitch,\r\n withFormlyFieldFormlySplit,\r\n withFormlyFieldButtonSelection,\r\n withFormlyFieldAvatarLabelButton,\r\n withFormlyFieldFormlyButton,\r\n withFormlyFieldLabelType,\r\n withFormlyFieldClickableLabelType,\r\n withFormlyFieldOptionTag,\r\n withFormlyFieldRepeat,\r\n withFormlyFieldTabs,\r\n withFormlyFieldTag,\r\n withFormlyFieldColorTag,\r\n withFormlyFieldIconPicker,\r\n withFormlyFieldColorPicker,\r\n withFormlyFieldTemplate,\r\n withFormlyFieldButton,\r\n withFormlyFieldAvatarImage,\r\n withFormlyWrappers,\r\n withFormlyQueryBuilder,\r\n withFormlyFieldGenericListbox,\r\n withFormlyPrimeIconPicker\r\n ];\r\n\r\n // Call each provider function to get the Provider object\r\n return fields.map(fn => fn());\r\n}\r\n\r\n\r\n// ---- Field Providers ----\r\n\r\n\r\nexport function withFormlyQueryBuilder(): ConfigOption {\r\n return {\r\n types: [\r\n {\r\n name: 'query-builder',\r\n component: QueryBuilderComponent\r\n },\r\n {\r\n name: 'sort-builder',\r\n component: SortBuilderComponent\r\n },\r\n {\r\n name: 'group', component: GroupTypeComponent\r\n },\r\n {\r\n name: 'tab-type',\r\n component: TabTypeComponent\r\n },\r\n {\r\n name: 'group-builder',\r\n component: GroupBuilderComponent\r\n },\r\n {\r\n name: 'columns-builder',\r\n component: ColumnsBuilderComponent\r\n },\r\n { name: 'query-type', component: QueryTypeComponent, },\r\n ],\r\n };\r\n}\r\n\r\n\r\nexport function withFormlyFieldInputWithIcon(): ConfigOption {\r\n return {\r\n types: [\r\n {\r\n name: 'inputWithIcon',\r\n component: InputWithIconType,\r\n wrappers: ['form-field'],\r\n },\r\n ],\r\n };\r\n}\r\n\r\nexport function withFormlyFieldAttachment(): ConfigOption {\r\n return {\r\n types: [\r\n {\r\n name: 'attachment-type',\r\n component: AttachmentTypeComponent,\r\n wrappers: ['form-field'],\r\n },\r\n ],\r\n };\r\n}\r\n\r\nexport function withFormlyFieldRichTextEditor(): ConfigOption {\r\n return {\r\n types: [\r\n {\r\n name: 'rich-text-editor',\r\n component: RichTextEditorTypeComponent,\r\n wrappers: ['form-field'],\r\n },\r\n ],\r\n };\r\n}\r\n\r\nexport function withFormlyFieldGenericSelector(): ConfigOption {\r\n return {\r\n types: [\r\n {\r\n name: 'generic-selector',\r\n component: GenericSelectorTypeComponent,\r\n wrappers: ['form-field'],\r\n // defaultOptions: {\r\n // props: {\r\n // loadDefaultField: 'isDefault', // 👈 default value\r\n // loadDefaultValue: true, // 👈 default value\r\n // loadDefault: true, // 👈 default value\r\n\r\n // fixedFilters:{\r\n // isActive:true\r\n // }\r\n // },\r\n // },\r\n },\r\n ],\r\n };\r\n}\r\nexport function globalGenericSelectorExtension(): ConfigOption {\r\n return {\r\n extensions: [\r\n {\r\n name: 'generic-selector-defaults',\r\n extension: {\r\n prePopulate(field: FormlyFieldConfig) {\r\n if (field.type === 'generic-selector') {\r\n field.props = {\r\n loadDefaultField: 'isDefault',\r\n loadDefaultValue: true,\r\n loadDefault: true,\r\n fixedFilters:{\r\n isActive:true\r\n },\r\n ...field.props, // 👈 keep per-field overrides\r\n };\r\n }\r\n },\r\n },\r\n },\r\n ],\r\n };\r\n}\r\n\r\nexport function withFormlyFieldSwitch(): ConfigOption {\r\n return {\r\n types: [\r\n {\r\n name: 'switch',\r\n component: InputSwitchTypeComponent,\r\n wrappers: ['form-field-no'],\r\n },\r\n ],\r\n };\r\n}\r\n\r\nexport function withFormlyFieldUsernameWithDomain(): ConfigOption {\r\n return {\r\n types: [\r\n {\r\n name: 'username-with-domain',\r\n component: UsernameWithDomainComponent,\r\n wrappers: ['form-field'],\r\n },\r\n ],\r\n };\r\n}\r\n\r\nexport function withFormlyFieldCustomSwitch(): ConfigOption {\r\n return {\r\n types: [\r\n {\r\n name: 'custom-switch',\r\n component: CustomSwitchFieldComponent,\r\n wrappers: ['form-field-no'],\r\n },\r\n ],\r\n };\r\n}\r\n\r\nexport function withFormlyFieldFormlySplit(): ConfigOption {\r\n return {\r\n types: [\r\n {\r\n name: 'Formly-Split',\r\n component: FormlySplitButtonComponent,\r\n wrappers: ['form-field'],\r\n },\r\n ],\r\n };\r\n}\r\n\r\nexport function withFormlyFieldButtonSelection(): ConfigOption {\r\n return {\r\n types: [\r\n {\r\n name: 'Button-Selection',\r\n component: FormlySelectionButtonComponent,\r\n wrappers: ['form-field'],\r\n },\r\n ],\r\n };\r\n}\r\n\r\nexport function withFormlyFieldAvatarLabelButton(): ConfigOption {\r\n return {\r\n types: [\r\n {\r\n name: 'avatar-label-button',\r\n component: FormlyAvatarLabelComponent,\r\n },\r\n ],\r\n };\r\n}\r\n\r\nexport function withFormlyFieldFormlyButton(): ConfigOption {\r\n return {\r\n types: [\r\n {\r\n name: 'formly-button',\r\n component: FormlyButtonComponent,\r\n },\r\n ],\r\n };\r\n}\r\n\r\nexport function withFormlyFieldLabelType(): ConfigOption {\r\n return {\r\n types: [\r\n {\r\n name: 'label-type',\r\n component: LabelTypeComponent,\r\n },\r\n {\r\n name: 'custom-label-type',\r\n component: CustomTypeComponent,\r\n wrappers:['field-wrapper']\r\n },\r\n\r\n ],\r\n };\r\n}\r\n\r\nexport function withFormlyFieldClickableLabelType(): ConfigOption {\r\n return {\r\n types: [\r\n {\r\n name: 'clickable-label-type',\r\n component: ClickableLabelTypeComponent,\r\n },\r\n ],\r\n };\r\n}\r\n\r\nexport function withFormlyFieldOptionTag(): ConfigOption {\r\n return {\r\n types: [\r\n {\r\n name: 'option-tag',\r\n component: OptionTagTypeComponent,\r\n },\r\n ],\r\n };\r\n}\r\n\r\nexport function withFormlyFieldRepeat(): ConfigOption {\r\n return {\r\n types: [\r\n {\r\n name: 'repeat',\r\n component: RepeatTypeComponent,\r\n },\r\n {\r\n name: 'repeat-table-view',\r\n component: RepeatTableViewType,\r\n },\r\n ],\r\n };\r\n}\r\n\r\nexport function withFormlyFieldTabs(): ConfigOption {\r\n return {\r\n types: [\r\n {\r\n name: 'tabs',\r\n component: TabsTypeComponent,\r\n },\r\n ],\r\n };\r\n}\r\n\r\nexport function withFormlyFieldTag(): ConfigOption {\r\n return {\r\n types: [\r\n {\r\n name: 'tag',\r\n component: TagTypeComponent,\r\n },\r\n ],\r\n };\r\n}\r\n\r\nexport function withFormlyFieldColorTag(): ConfigOption {\r\n return {\r\n types: [\r\n {\r\n name: 'color-tag',\r\n component: ColorTagTypeComponent,\r\n },\r\n ],\r\n };\r\n}\r\n\r\n\r\n\r\nexport function withFormlyFieldIconPicker(): ConfigOption {\r\n return {\r\n types: [\r\n {\r\n name: 'icon-picker',\r\n component: IconPickerComponent,\r\n wrappers: ['form-field-no'],\r\n },\r\n ],\r\n };\r\n}\r\n\r\nexport function withFormlyFieldColorPicker(): ConfigOption {\r\n return {\r\n types: [\r\n {\r\n name: 'color-picker',\r\n component: ColorPickerComponent,\r\n wrappers: ['form-field-no'],\r\n },\r\n ],\r\n };\r\n}\r\n\r\nexport function withFormlyFieldTemplate(): ConfigOption {\r\n return {\r\n types: [\r\n {\r\n name: 'template',\r\n component: FormlyTemplateType,\r\n },\r\n ],\r\n };\r\n}\r\n\r\nexport function withFormlyFieldButton(): ConfigOption {\r\n return {\r\n types: [\r\n {\r\n name: 'button',\r\n component: FormlyFieldButton,\r\n wrappers: ['form-field'],\r\n defaultOptions: {\r\n props: {\r\n btnType: 'default',\r\n type: 'button',\r\n },\r\n },\r\n },\r\n ],\r\n };\r\n}\r\n\r\nexport function withFormlyFieldAvatarImage(): ConfigOption {\r\n return {\r\n types: [\r\n {\r\n name: 'avatar-image',\r\n component: FormlyAvatarImageComponent,\r\n },\r\n ],\r\n };\r\n}\r\n\r\nexport function withFormlyPrimeIconPicker(): ConfigOption {\r\n return {\r\n types: [\r\n {\r\n name: 'prime-icon-picker',\r\n component: PrimeIconPickerComponent,\r\n },\r\n ],\r\n };\r\n}\r\n\r\nexport function withFormlyWrappers(): ConfigOption {\r\n return {\r\n wrappers: [\r\n { name: 'panel', component: PanelWrapperComponent },\r\n { name: 'label', component: LabelWrapperComponent },\r\n { name: 'td', component: TdWrapperComponent },\r\n { name: 'collapsible', component: CollapsibleWrapper },\r\n { name: 'field-wrapper', component: CustomFieldWrapper },\r\n ],\r\n };\r\n}\r\n\r\n\r\nexport function withFormlyFieldGenericListbox(): ConfigOption {\r\n return {\r\n types: [\r\n {\r\n name: 'generic-listbox',\r\n component: GenericListboxTypeComponent,\r\n },\r\n ],\r\n };\r\n}\r\n\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAMa,iBAAiB,CAAA;uGAAjB,iBAAiB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA;AAAjB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,iBAAiB,YAFlB,YAAY,CAAA,EAAA,CAAA;AAEX,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,iBAAiB,YAFlB,YAAY,CAAA,EAAA,CAAA;;2FAEX,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAH7B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,YAAY,CAAC;AACxB,iBAAA;;;SCyBe,sBAAsB,GAAA;AACpC,IAAA,MAAM,MAAM,GAAG;QAEb,4BAA4B;QAC5B,yBAAyB;QACzB,6BAA6B;QAC7B,8BAA8B;QAC9B,qBAAqB;QACrB,iCAAiC;QACjC,2BAA2B;QAC3B,0BAA0B;QAC1B,8BAA8B;QAC9B,gCAAgC;QAChC,2BAA2B;QAC3B,wBAAwB;QACxB,iCAAiC;QACjC,wBAAwB;QACxB,qBAAqB;QACrB,mBAAmB;QACnB,kBAAkB;QAClB,uBAAuB;QACvB,yBAAyB;QACzB,0BAA0B;QAC1B,uBAAuB;QACvB,qBAAqB;QACrB,0BAA0B;QAC1B,kBAAkB;QAClB,sBAAsB;QACtB,6BAA6B;Q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E,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,qBAAqB,EAAE;AACnD,YAAA,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,kBAAkB,EAAE;AAC7C,YAAA,EAAE,IAAI,EAAE,aAAa,EAAE,SAAS,EAAE,kBAAkB,EAAE;AACtD,YAAA,EAAE,IAAI,EAAE,eAAe,EAAE,SAAS,EAAE,kBAAkB,EAAE;AACzD,SAAA;KACF;AACH;SAGgB,6BAA6B,GAAA;IAC3C,OAAO;AACL,QAAA,KAAK,EAAE;AACL,YAAA;AACE,gBAAA,IAAI,EAAE,iBAAiB;AACvB,gBAAA,SAAS,EAAE,2BAA2B;AACvC,aAAA;AACF,SAAA;KACF;AACH;;ACrcA;;AAEG;;;;"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { NgModule } from '@angular/core';
|
|
3
|
+
import { CommonModule } from '@angular/common';
|
|
4
|
+
|
|
5
|
+
class GenericCrudReportModule {
|
|
6
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: GenericCrudReportModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
7
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.1.3", ngImport: i0, type: GenericCrudReportModule, imports: [CommonModule] });
|
|
8
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: GenericCrudReportModule, imports: [CommonModule] });
|
|
9
|
+
}
|
|
10
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: GenericCrudReportModule, decorators: [{
|
|
11
|
+
type: NgModule,
|
|
12
|
+
args: [{
|
|
13
|
+
imports: [CommonModule],
|
|
14
|
+
}]
|
|
15
|
+
}] });
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Generated bundle index. Do not edit.
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
export { GenericCrudReportModule };
|
|
22
|
+
//# sourceMappingURL=es.framework-ng.ui.core-generic-crud-report.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"es.framework-ng.ui.core-generic-crud-report.mjs","sources":["../../../../libs/ng.ui.core/generic-crud-report/src/lib/generic-crud-report.module.ts","../../../../libs/ng.ui.core/generic-crud-report/src/es.framework-ng.ui.core-generic-crud-report.ts"],"sourcesContent":["import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\n@NgModule({\n imports: [CommonModule],\n})\nexport class GenericCrudReportModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAMa,uBAAuB,CAAA;uGAAvB,uBAAuB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA;AAAvB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,uBAAuB,YAFxB,YAAY,CAAA,EAAA,CAAA;AAEX,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,uBAAuB,YAFxB,YAAY,CAAA,EAAA,CAAA;;2FAEX,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBAHnC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,YAAY,CAAC;AACxB,iBAAA;;;ACLD;;AAEG;;;;"}
|
|
@@ -776,7 +776,7 @@ class GenericCrudTableComponent {
|
|
|
776
776
|
// etc.
|
|
777
777
|
}
|
|
778
778
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: GenericCrudTableComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
779
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.1.3", type: GenericCrudTableComponent, isStandalone: true, selector: "app-generic-crud-table", inputs: { data: "data", formFields: "formFields", columnFormFields: "columnFormFields", columns: "columns", dialogMaxWidth: "dialogMaxWidth", isViewMode: "isViewMode", displayMode: "displayMode", useConfirmOnSave: "useConfirmOnSave", isEditMode: "isEditMode", drawerVisible: "drawerVisible", dialogVisible: "dialogVisible", model: "model", loading: "loading", errorMsg: "errorMsg", errorMessage: "errorMessage", actions: "actions", actionsMode: "actionsMode", beforeSaveTransform: "beforeSaveTransform", filters: "filters", filterModel: "filterModel", showSearch: "showSearch", first: "first", rows: "rows", totalRecords: "totalRecords", rowEditable: "rowEditable", rowSelectable: "rowSelectable", scrollHeight: "scrollHeight", paginator: "paginator", service: "service", apiName: "apiName", moduleName: "moduleName", idField: "idField", showRowSelectionCheckbox: "showRowSelectionCheckbox", showAddButton: "showAddButton", showPrintButton: "showPrintButton", PermissionName: "PermissionName", addButtonConfigs: "addButtonConfigs", createEditActions: "createEditActions", supportSubPage: "supportSubPage", tabs: "tabs", bulkActionButtons: "bulkActionButtons", singleActionButtons: "singleActionButtons", breadcrumb: "breadcrumb", mode: "mode", forceState: "forceState", hideTable: "hideTable", autoShowForm: "autoShowForm", rowStyleFn: "rowStyleFn", rowClassFn: "rowClassFn", disableRowCheckboxFn: "disableRowCheckboxFn", showAdvancedFilter: "showAdvancedFilter", advancedFilterIcon: "advancedFilterIcon", searchTabs: "searchTabs", showViewMode: "showViewMode", viewMode: "viewMode", templateDrawerVisible: "templateDrawerVisible", category: "category", feature: "feature" }, outputs: { action: "action", bulkAction: "bulkAction", singleAction: "singleAction", afterSave: "afterSave", afterDelete: "afterDelete", beforeSave: "beforeSave", beforeDelete: "beforeDelete", formCancel: "formCancel", formInit: "formInit", dataLoaded: "dataLoaded", selectionChange: "selectionChange", error: "error", search: "search", pageChange: "pageChange", onSearch: "onSearch", visibleChange: "visibleChange", rowSelect: "rowSelect", viewModeChange: "viewModeChange", templateSelected: "templateSelected", templateDrawerVisibleChange: "templateDrawerVisibleChange" }, viewQueries: [{ propertyName: "genericTable", first: true, predicate: ["genericTable"], descendants: true }, { propertyName: "dialog", first: true, predicate: ["dialog"], descendants: true }], ngImport: i0, template: "<div\r\n [class]=\"mode !== 'form-only' && mode !== 'detail' ? tableClass : ''\"\r\n>\r\n <app-generic-crud-header\r\n [mode]=\"mode\"\r\n [breadcrumb]=\"breadcrumb_\"\r\n [isSingleItemSelected]=\"isSingleItemSelected\"\r\n [selectedItems]=\"_selectedRows\"\r\n [singleActionButtons]=\"singleActionButtons\"\r\n [bulkActionButtons]=\"bulkActionButtons\"\r\n [addButtonConfigs]=\"addButtonConfigs\"\r\n [mergedButtonConfigs]=\"mergedButtonConfigs\"\r\n [apiName]=\"service.apiName\"\r\n [moduleName]=\"service.moduleName\"\r\n [filters]=\"filters\"\r\n [filterModel]=\"filterModel\"\r\n [showSearch]=\"showSearch\"\r\n (singleItemAction)=\"onSingleItemAction($event)\"\r\n (bulkAction)=\"onInternalBulkAction($event)\"\r\n (action)=\"action.emit($event)\"\r\n (search)=\"resetPage($event);applySearch($event);\"\r\n (resetSearch)=\"resetPage($event);applySearch('');\"\r\n (paginateChange)=\"onHeaderPaginateChange($event)\"\r\n [first]=\"first\"\r\n [rows]=\"rows\"\r\n [totalRecords]=\"totalRecords\"\r\n [searchTabs]=\"searchTabs\"\r\n [showAdvancedFilter]=\"showAdvancedFilter\"\r\n [advancedFilterIcon]=\"advancedFilterIcon\"\r\n [showViewMode]=\"showViewMode\"\r\n [viewMode]=\"viewMode\"\r\n (viewModeChange)=\"onViewModeChange($event)\"\r\n/>\r\n\r\n @if (!hideTable) {\r\n <lib-generic-table\r\n [data]=\"data\"\r\n [columns]=\"columns\"\r\n [columnFormFields]=\"columnFormFields\"\r\n [paginator]=\"paginator\"\r\n [loading]=\"loading\"\r\n [actions]=\"actions\"\r\n [actionsMode]=\"actionsMode\"\r\n [first]=\"first\"\r\n [rows]=\"rows\"\r\n [totalRecords]=\"totalRecords\"\r\n [sortField]=\"sortField\"\r\n [sortOrder]=\"sortOrder\"\r\n [addButtonConfigs]=\"addButtonConfigs\"\r\n [globalFilterFields]=\"globalFilterFields\"\r\n [scrollHeight]=\"scrollHeight\"\r\n [showRowSelectionCheckbox]=\"showRowSelectionCheckbox\"\r\n (action)=\"action.emit($event)\"\r\n (onAddNew)=\"action.emit($event)\"\r\n (pageChange)=\"onLazyLoad($event)\"\r\n [rowSelectable]=\"rowSelectable\"\r\n [rowEditable]=\"rowEditable\"\r\n (rowSelect)=\"onRowClick($event)\"\r\n [(selection)]=\"_selectedRows\"\r\n #genericTable\r\n ></lib-generic-table>\r\n\r\n }\r\n\r\n <app-generic-dialog\r\n #dialog\r\n [service]=\"service\"\r\n [formFields]=\"formFields\"\r\n [model]=\"model\"\r\n [apiName]=\"service.apiName\"\r\n [moduleName]=\"service.moduleName\"\r\n [idField]=\"idField\"\r\n [dialogMaxWidth]=\"dialogMaxWidth\"\r\n [displayMode]=\"displayMode\"\r\n [mode]=\"mode\"\r\n [forceState]=\"forceState\"\r\n [drawerVisible]=\"drawerVisible\"\r\n [dialogVisible]=\"dialogVisible\"\r\n [isViewMode]=\"isViewMode\"\r\n [isEditMode]=\"isEditMode\"\r\n [useConfirmOnSave]=\"useConfirmOnSave\"\r\n [loading]=\"loading\"\r\n [errorMsg]=\"errorMsg\"\r\n [errorMessage]=\"errorMessage\"\r\n [beforeSaveTransform]=\"beforeSaveTransform\"\r\n (action)=\"action.emit($event)\"\r\n (afterSave)=\"afterSave.emit($event);onSubmit();\"\r\n (afterDelete)=\"afterDelete.emit($event)\"\r\n (beforeSave)=\"beforeSave.emit($event)\"\r\n (beforeDelete)=\"beforeDelete.emit($event)\"\r\n (formCancel)=\"formCancel.emit()\"\r\n (formInit)=\"formInit.emit($event)\"\r\n (dataLoaded)=\"dataLoaded.emit($event)\"\r\n (selectionChange)=\"selectionChange.emit($event)\"\r\n (error)=\"error.emit($event)\"\r\n (visibleChange)=\"visibleChange.emit($event)\"\r\n >\r\n </app-generic-dialog>\r\n\r\n <app-detail-view\r\n [displayMode]=\"displayMode\"\r\n [mode]=\"mode\"\r\n [title]=\"breadcrumb_?.[0]?.label || 'Detail'\"\r\n [service]=\"service\"\r\n [apiName]=\"service.apiName\"\r\n [moduleName]=\"service.moduleName\"\r\n [idField]=\"idField\"\r\n [actions]=\"actions\"\r\n [formFields]=\"formFields\"\r\n [model]=\"model\"\r\n [tabs]=\"tabs\"\r\n [loading]=\"loading\"\r\n [breadcrumb]=\"breadcrumb_\"\r\n [createEditActions]=\"createEditActions\"\r\n (action)=\"action.emit($event)\"\r\n >\r\n </app-detail-view>\r\n\r\n <!-- \uD83D\uDFE2 \u0645\u0643\u0648\u0646 \u062F\u0631\u062C \u0627\u0644\u0642\u0648\u0627\u0644\u0628 \u0627\u0644\u0645\u062D\u0641\u0648\u0638\u0629 -->\r\n<!-- <saved-report-templates-drawer\r\n [(visible)]=\"templateDrawerVisible\"\r\n (visibleChange)=\"templateDrawerVisibleChange.emit($event)\"\r\n [filterFields]=\"filters\"\r\n [service]=\"service.moduleName\"\r\n [category]=\"category\"\r\n [feature]=\"feature\"\r\n (templateSelected)=\"templateSelected.emit($event)\">\r\n</saved-report-templates-drawer> -->\r\n\r\n</div>\r\n", dependencies: [{ kind: "ngmodule", type: TableModule }, { kind: "ngmodule", type: ButtonModule }, { kind: "component", type: GenericTable, selector: "lib-generic-table", inputs: ["data", "columns", "columnFormFields", "loading", "actions", "actionsPosition", "actionsMode", "first", "rows", "totalRecords", "sortField", "sortOrder", "globalFilterFields", "addButtonConfigs", "scrollHeight", "rowEditable", "rowSelectable", "selection", "dataKey", "paginator", "showRowSelectionCheckbox"], outputs: ["action", "pageChange", "onAddNew", "rowSelect", "selectionChange"] }, { kind: "ngmodule", type: ToolbarModule }, { kind: "ngmodule", type: DividerModule }, { kind: "ngmodule", type: IconFieldModule }, { kind: "ngmodule", type: DrawerModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: MessageModule }, { kind: "ngmodule", type: DialogModule }, { kind: "component", type: GenericDialogComponent, selector: "app-generic-dialog", inputs: ["form", "service", "formFields", "model", "apiName", "moduleName", "idField", "dialogMaxWidth", "displayMode", "mode", "forceState", "drawerVisible", "dialogVisible", "isViewMode", "isEditMode", "useConfirmOnSave", "loading", "errorMsg", "errorMessage", "beforeSaveTransform", "hideTable", "autoShowForm"], outputs: ["action", "afterSave", "afterDelete", "beforeSave", "beforeDelete", "formCancel", "formInit", "dataLoaded", "selectionChange", "error", "visibleChange"] }, { kind: "component", type: GenericCrudHeaderComponent, selector: "app-generic-crud-header", inputs: ["mode", "breadcrumb", "isSingleItemSelected", "selectedItems", "singleActionButtons", "bulkActionButtons", "addButtonConfigs", "mergedButtonConfigs", "filters", "filterModel", "showSearch", "first", "rows", "totalRecords", "moduleName", "apiName", "actions", "showAdvancedFilter", "advancedFilterIcon", "searchTabs", "showViewMode", "viewMode"], outputs: ["singleItemAction", "bulkAction", "search", "resetSearch", "action", "paginateChange", "viewModeChange"] }, { kind: "component", type: GenericViewComponent, selector: "app-detail-view", inputs: ["title", "actions", "createEditActions", "tabs", "viewMode", "breadcrumb", "service", "formFields", "apiName", "moduleName", "idField", "standaloneMode", "isViewMode", "isCreateMode", "isEditMode", "model", "displayMode", "mode", "loading"], outputs: ["action", "afterDelete"] }] });
|
|
779
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.1.3", type: GenericCrudTableComponent, isStandalone: true, selector: "app-generic-crud-table", inputs: { data: "data", formFields: "formFields", columnFormFields: "columnFormFields", columns: "columns", dialogMaxWidth: "dialogMaxWidth", isViewMode: "isViewMode", displayMode: "displayMode", useConfirmOnSave: "useConfirmOnSave", isEditMode: "isEditMode", drawerVisible: "drawerVisible", dialogVisible: "dialogVisible", model: "model", loading: "loading", errorMsg: "errorMsg", errorMessage: "errorMessage", actions: "actions", actionsMode: "actionsMode", beforeSaveTransform: "beforeSaveTransform", filters: "filters", filterModel: "filterModel", showSearch: "showSearch", first: "first", rows: "rows", totalRecords: "totalRecords", rowEditable: "rowEditable", rowSelectable: "rowSelectable", scrollHeight: "scrollHeight", paginator: "paginator", service: "service", apiName: "apiName", moduleName: "moduleName", idField: "idField", showRowSelectionCheckbox: "showRowSelectionCheckbox", showAddButton: "showAddButton", showPrintButton: "showPrintButton", PermissionName: "PermissionName", addButtonConfigs: "addButtonConfigs", createEditActions: "createEditActions", supportSubPage: "supportSubPage", tabs: "tabs", bulkActionButtons: "bulkActionButtons", singleActionButtons: "singleActionButtons", breadcrumb: "breadcrumb", mode: "mode", forceState: "forceState", hideTable: "hideTable", autoShowForm: "autoShowForm", rowStyleFn: "rowStyleFn", rowClassFn: "rowClassFn", disableRowCheckboxFn: "disableRowCheckboxFn", showAdvancedFilter: "showAdvancedFilter", advancedFilterIcon: "advancedFilterIcon", searchTabs: "searchTabs", showViewMode: "showViewMode", viewMode: "viewMode", templateDrawerVisible: "templateDrawerVisible", category: "category", feature: "feature" }, outputs: { action: "action", bulkAction: "bulkAction", singleAction: "singleAction", afterSave: "afterSave", afterDelete: "afterDelete", beforeSave: "beforeSave", beforeDelete: "beforeDelete", formCancel: "formCancel", formInit: "formInit", dataLoaded: "dataLoaded", selectionChange: "selectionChange", error: "error", search: "search", pageChange: "pageChange", onSearch: "onSearch", visibleChange: "visibleChange", rowSelect: "rowSelect", viewModeChange: "viewModeChange", templateSelected: "templateSelected", templateDrawerVisibleChange: "templateDrawerVisibleChange" }, viewQueries: [{ propertyName: "genericTable", first: true, predicate: ["genericTable"], descendants: true }, { propertyName: "dialog", first: true, predicate: ["dialog"], descendants: true }], ngImport: i0, template: "<div\r\n [class]=\"mode !== 'form-only' && mode !== 'detail' ? tableClass : ''\"\r\n>\r\n <app-generic-crud-header\r\n [mode]=\"mode\"\r\n [breadcrumb]=\"breadcrumb_\"\r\n [isSingleItemSelected]=\"isSingleItemSelected\"\r\n [selectedItems]=\"_selectedRows\"\r\n [singleActionButtons]=\"singleActionButtons\"\r\n [bulkActionButtons]=\"bulkActionButtons\"\r\n [addButtonConfigs]=\"addButtonConfigs\"\r\n [mergedButtonConfigs]=\"mergedButtonConfigs\"\r\n [apiName]=\"service.apiName\"\r\n [moduleName]=\"service.moduleName\"\r\n [filters]=\"filters\"\r\n [filterModel]=\"filterModel\"\r\n [showSearch]=\"showSearch\"\r\n (singleItemAction)=\"onSingleItemAction($event)\"\r\n (bulkAction)=\"onInternalBulkAction($event)\"\r\n (action)=\"action.emit($event)\"\r\n (search)=\"resetPage($event);applySearch($event);\"\r\n (resetSearch)=\"resetPage($event);applySearch('');\"\r\n (paginateChange)=\"onHeaderPaginateChange($event)\"\r\n [first]=\"first\"\r\n [rows]=\"rows\"\r\n [totalRecords]=\"totalRecords\"\r\n [searchTabs]=\"searchTabs\"\r\n [showAdvancedFilter]=\"showAdvancedFilter\"\r\n [advancedFilterIcon]=\"advancedFilterIcon\"\r\n [showViewMode]=\"showViewMode\"\r\n [viewMode]=\"viewMode\"\r\n (viewModeChange)=\"onViewModeChange($event)\"\r\n/>\r\n\r\n @if (!hideTable) {\r\n <lib-generic-table\r\n [data]=\"data\"\r\n [columns]=\"columns\"\r\n [columnFormFields]=\"columnFormFields\"\r\n [paginator]=\"paginator\"\r\n [loading]=\"loading\"\r\n [actions]=\"actions\"\r\n [actionsMode]=\"actionsMode\"\r\n [first]=\"first\"\r\n [rows]=\"rows\"\r\n [totalRecords]=\"totalRecords\"\r\n [sortField]=\"sortField\"\r\n [sortOrder]=\"sortOrder\"\r\n [addButtonConfigs]=\"addButtonConfigs\"\r\n [globalFilterFields]=\"globalFilterFields\"\r\n [scrollHeight]=\"scrollHeight\"\r\n [showRowSelectionCheckbox]=\"showRowSelectionCheckbox\"\r\n (action)=\"action.emit($event)\"\r\n (onAddNew)=\"action.emit($event)\"\r\n (pageChange)=\"onLazyLoad($event)\"\r\n [rowSelectable]=\"rowSelectable\"\r\n [rowEditable]=\"rowEditable\"\r\n (rowSelect)=\"onRowClick($event)\"\r\n [(selection)]=\"_selectedRows\"\r\n #genericTable\r\n ></lib-generic-table>\r\n\r\n }\r\n\r\n <app-generic-dialog\r\n #dialog\r\n [service]=\"service\"\r\n [formFields]=\"formFields\"\r\n [model]=\"model\"\r\n [apiName]=\"service.apiName\"\r\n [moduleName]=\"service.moduleName\"\r\n [idField]=\"idField\"\r\n [dialogMaxWidth]=\"dialogMaxWidth\"\r\n [displayMode]=\"displayMode\"\r\n [mode]=\"mode\"\r\n [forceState]=\"forceState\"\r\n [drawerVisible]=\"drawerVisible\"\r\n [dialogVisible]=\"dialogVisible\"\r\n [isViewMode]=\"isViewMode\"\r\n [isEditMode]=\"isEditMode\"\r\n [useConfirmOnSave]=\"useConfirmOnSave\"\r\n [loading]=\"loading\"\r\n [errorMsg]=\"errorMsg\"\r\n [errorMessage]=\"errorMessage\"\r\n [beforeSaveTransform]=\"beforeSaveTransform\"\r\n (action)=\"action.emit($event)\"\r\n (afterSave)=\"afterSave.emit($event);onSubmit();\"\r\n (afterDelete)=\"afterDelete.emit($event)\"\r\n (beforeSave)=\"beforeSave.emit($event)\"\r\n (beforeDelete)=\"beforeDelete.emit($event)\"\r\n (formCancel)=\"formCancel.emit()\"\r\n (formInit)=\"formInit.emit($event)\"\r\n (dataLoaded)=\"dataLoaded.emit($event)\"\r\n (selectionChange)=\"selectionChange.emit($event)\"\r\n (error)=\"error.emit($event)\"\r\n (visibleChange)=\"visibleChange.emit($event)\"\r\n >\r\n </app-generic-dialog>\r\n\r\n <app-detail-view\r\n [displayMode]=\"displayMode\"\r\n [mode]=\"mode\"\r\n [title]=\"breadcrumb_?.[0]?.label || 'Detail'\"\r\n [service]=\"service\"\r\n [apiName]=\"service.apiName\"\r\n [moduleName]=\"service.moduleName\"\r\n [idField]=\"idField\"\r\n [actions]=\"actions\"\r\n [formFields]=\"formFields\"\r\n [model]=\"model\"\r\n [tabs]=\"tabs\"\r\n [loading]=\"loading\"\r\n [breadcrumb]=\"breadcrumb_\"\r\n [createEditActions]=\"createEditActions\"\r\n (action)=\"action.emit($event)\"\r\n >\r\n </app-detail-view>\r\n\r\n <!-- \uD83D\uDFE2 \u0645\u0643\u0648\u0646 \u062F\u0631\u062C \u0627\u0644\u0642\u0648\u0627\u0644\u0628 \u0627\u0644\u0645\u062D\u0641\u0648\u0638\u0629 -->\r\n<!-- <saved-report-templates-drawer\r\n [(visible)]=\"templateDrawerVisible\"\r\n (visibleChange)=\"templateDrawerVisibleChange.emit($event)\"\r\n [filterFields]=\"filters\"\r\n [service]=\"service.moduleName\"\r\n [category]=\"category\"\r\n [feature]=\"feature\"\r\n (templateSelected)=\"templateSelected.emit($event)\">\r\n</saved-report-templates-drawer> -->\r\n\r\n</div>\r\n", dependencies: [{ kind: "ngmodule", type: TableModule }, { kind: "ngmodule", type: ButtonModule }, { kind: "component", type: GenericTable, selector: "lib-generic-table", inputs: ["data", "columns", "columnFormFields", "loading", "actions", "actionsPosition", "actionsMode", "first", "rows", "totalRecords", "sortField", "sortOrder", "globalFilterFields", "addButtonConfigs", "scrollHeight", "rowEditable", "rowSelectable", "selection", "dataKey", "paginator", "showRowSelectionCheckbox"], outputs: ["action", "pageChange", "onAddNew", "rowSelect", "selectionChange"] }, { kind: "ngmodule", type: ToolbarModule }, { kind: "ngmodule", type: DividerModule }, { kind: "ngmodule", type: IconFieldModule }, { kind: "ngmodule", type: DrawerModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: MessageModule }, { kind: "ngmodule", type: DialogModule }, { kind: "component", type: GenericDialogComponent, selector: "app-generic-dialog", inputs: ["form", "service", "formFields", "model", "apiName", "moduleName", "idField", "dialogMaxWidth", "displayMode", "mode", "forceState", "drawerVisible", "dialogVisible", "isViewMode", "isEditMode", "useConfirmOnSave", "loading", "errorMsg", "errorMessage", "beforeSaveTransform", "hideTable", "autoShowForm"], outputs: ["action", "afterSave", "afterDelete", "beforeSave", "beforeDelete", "formCancel", "formInit", "dataLoaded", "selectionChange", "error", "visibleChange"] }, { kind: "component", type: GenericCrudHeaderComponent, selector: "app-generic-crud-header", inputs: ["mode", "breadcrumb", "isSingleItemSelected", "selectedItems", "singleActionButtons", "bulkActionButtons", "addButtonConfigs", "mergedButtonConfigs", "filters", "filterModel", "showSearch", "first", "rows", "totalRecords", "moduleName", "apiName", "actions", "showAdvancedFilter", "advancedFilterIcon", "searchTabs", "showViewMode", "viewMode"], outputs: ["singleItemAction", "bulkAction", "search", "resetSearch", "action", "paginateChange", "viewModeChange"] }, { kind: "component", type: GenericViewComponent, selector: "app-detail-view", inputs: ["title", "actions", "createEditActions", "tabs", "viewMode", "breadcrumb", "service", "formFields", "apiName", "moduleName", "idField", "standaloneMode", "useRouteParams", "query", "currentId", "useTabs", "isViewMode", "isCreateMode", "isEditMode", "model", "displayMode", "mode", "loading", "showToolbar"], outputs: ["action", "afterDelete"] }] });
|
|
780
780
|
}
|
|
781
781
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: GenericCrudTableComponent, decorators: [{
|
|
782
782
|
type: Component,
|