@elite.framework/ng.ui.core 0.0.1
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/README.md +3 -0
- package/attachments/README.md +3 -0
- package/attachments/index.d.ts +38 -0
- package/base-crud/README.md +3 -0
- package/base-crud/index.d.ts +68 -0
- package/breadcrumb/README.md +3 -0
- package/breadcrumb/index.d.ts +17 -0
- package/checkbox/README.md +3 -0
- package/checkbox/index.d.ts +33 -0
- package/color-picker/README.md +3 -0
- package/color-picker/index.d.ts +16 -0
- package/column-settings-popover/README.md +3 -0
- package/column-settings-popover/index.d.ts +46 -0
- package/condition-editor/README.md +3 -0
- package/condition-editor/index.d.ts +80 -0
- package/custom-switch/README.md +3 -0
- package/custom-switch/index.d.ts +19 -0
- package/datepicker/README.md +3 -0
- package/datepicker/index.d.ts +23 -0
- package/deactivation-reason/README.md +3 -0
- package/deactivation-reason/index.d.ts +31 -0
- package/fesm2022/elite.framework-ng.ui.core-attachments.mjs +217 -0
- package/fesm2022/elite.framework-ng.ui.core-attachments.mjs.map +1 -0
- package/fesm2022/elite.framework-ng.ui.core-base-crud.mjs +312 -0
- package/fesm2022/elite.framework-ng.ui.core-base-crud.mjs.map +1 -0
- package/fesm2022/elite.framework-ng.ui.core-breadcrumb.mjs +144 -0
- package/fesm2022/elite.framework-ng.ui.core-breadcrumb.mjs.map +1 -0
- package/fesm2022/elite.framework-ng.ui.core-checkbox.mjs +130 -0
- package/fesm2022/elite.framework-ng.ui.core-checkbox.mjs.map +1 -0
- package/fesm2022/elite.framework-ng.ui.core-color-picker.mjs +88 -0
- package/fesm2022/elite.framework-ng.ui.core-color-picker.mjs.map +1 -0
- package/fesm2022/elite.framework-ng.ui.core-column-settings-popover.mjs +184 -0
- package/fesm2022/elite.framework-ng.ui.core-column-settings-popover.mjs.map +1 -0
- package/fesm2022/elite.framework-ng.ui.core-condition-editor.mjs +782 -0
- package/fesm2022/elite.framework-ng.ui.core-condition-editor.mjs.map +1 -0
- package/fesm2022/elite.framework-ng.ui.core-custom-switch.mjs +122 -0
- package/fesm2022/elite.framework-ng.ui.core-custom-switch.mjs.map +1 -0
- package/fesm2022/elite.framework-ng.ui.core-datepicker.mjs +206 -0
- package/fesm2022/elite.framework-ng.ui.core-datepicker.mjs.map +1 -0
- package/fesm2022/elite.framework-ng.ui.core-deactivation-reason.mjs +142 -0
- package/fesm2022/elite.framework-ng.ui.core-deactivation-reason.mjs.map +1 -0
- package/fesm2022/elite.framework-ng.ui.core-form-button.mjs +62 -0
- package/fesm2022/elite.framework-ng.ui.core-form-button.mjs.map +1 -0
- package/fesm2022/elite.framework-ng.ui.core-form-field.mjs +155 -0
- package/fesm2022/elite.framework-ng.ui.core-form-field.mjs.map +1 -0
- package/fesm2022/elite.framework-ng.ui.core-form-template.mjs +37 -0
- package/fesm2022/elite.framework-ng.ui.core-form-template.mjs.map +1 -0
- package/fesm2022/elite.framework-ng.ui.core-formly-avatar-image.mjs +112 -0
- package/fesm2022/elite.framework-ng.ui.core-formly-avatar-image.mjs.map +1 -0
- package/fesm2022/elite.framework-ng.ui.core-formly-avatar-label.mjs +90 -0
- package/fesm2022/elite.framework-ng.ui.core-formly-avatar-label.mjs.map +1 -0
- package/fesm2022/elite.framework-ng.ui.core-formly-button-selector.mjs +179 -0
- package/fesm2022/elite.framework-ng.ui.core-formly-button-selector.mjs.map +1 -0
- package/fesm2022/elite.framework-ng.ui.core-formly-button.mjs +74 -0
- package/fesm2022/elite.framework-ng.ui.core-formly-button.mjs.map +1 -0
- package/fesm2022/elite.framework-ng.ui.core-formly-presets.mjs +201 -0
- package/fesm2022/elite.framework-ng.ui.core-formly-presets.mjs.map +1 -0
- package/fesm2022/elite.framework-ng.ui.core-formly-split-button.mjs +62 -0
- package/fesm2022/elite.framework-ng.ui.core-formly-split-button.mjs.map +1 -0
- package/fesm2022/elite.framework-ng.ui.core-formly-ui.mjs +416 -0
- package/fesm2022/elite.framework-ng.ui.core-formly-ui.mjs.map +1 -0
- package/fesm2022/elite.framework-ng.ui.core-formly-username-with-domain.mjs +88 -0
- package/fesm2022/elite.framework-ng.ui.core-formly-username-with-domain.mjs.map +1 -0
- package/fesm2022/elite.framework-ng.ui.core-generic-autocomplete.mjs +175 -0
- package/fesm2022/elite.framework-ng.ui.core-generic-autocomplete.mjs.map +1 -0
- package/fesm2022/elite.framework-ng.ui.core-generic-button.mjs +145 -0
- package/fesm2022/elite.framework-ng.ui.core-generic-button.mjs.map +1 -0
- package/fesm2022/elite.framework-ng.ui.core-generic-card.mjs +219 -0
- package/fesm2022/elite.framework-ng.ui.core-generic-card.mjs.map +1 -0
- package/fesm2022/elite.framework-ng.ui.core-generic-crud-table.mjs +398 -0
- package/fesm2022/elite.framework-ng.ui.core-generic-crud-table.mjs.map +1 -0
- package/fesm2022/elite.framework-ng.ui.core-generic-errormessage.mjs +35 -0
- package/fesm2022/elite.framework-ng.ui.core-generic-errormessage.mjs.map +1 -0
- package/fesm2022/elite.framework-ng.ui.core-generic-formly-fields.mjs +65 -0
- package/fesm2022/elite.framework-ng.ui.core-generic-formly-fields.mjs.map +1 -0
- package/fesm2022/elite.framework-ng.ui.core-generic-loadingspinner.mjs +35 -0
- package/fesm2022/elite.framework-ng.ui.core-generic-loadingspinner.mjs.map +1 -0
- package/fesm2022/elite.framework-ng.ui.core-generic-search.mjs +98 -0
- package/fesm2022/elite.framework-ng.ui.core-generic-search.mjs.map +1 -0
- package/fesm2022/elite.framework-ng.ui.core-generic-selector.mjs +441 -0
- package/fesm2022/elite.framework-ng.ui.core-generic-selector.mjs.map +1 -0
- package/fesm2022/elite.framework-ng.ui.core-generic-table.mjs +226 -0
- package/fesm2022/elite.framework-ng.ui.core-generic-table.mjs.map +1 -0
- package/fesm2022/elite.framework-ng.ui.core-header-wrapper.mjs +31 -0
- package/fesm2022/elite.framework-ng.ui.core-header-wrapper.mjs.map +1 -0
- package/fesm2022/elite.framework-ng.ui.core-icon-picker.mjs +207 -0
- package/fesm2022/elite.framework-ng.ui.core-icon-picker.mjs.map +1 -0
- package/fesm2022/elite.framework-ng.ui.core-input-switch.mjs +106 -0
- package/fesm2022/elite.framework-ng.ui.core-input-switch.mjs.map +1 -0
- package/fesm2022/elite.framework-ng.ui.core-input-with-icon.mjs +67 -0
- package/fesm2022/elite.framework-ng.ui.core-input-with-icon.mjs.map +1 -0
- package/fesm2022/elite.framework-ng.ui.core-input.mjs +201 -0
- package/fesm2022/elite.framework-ng.ui.core-input.mjs.map +1 -0
- package/fesm2022/elite.framework-ng.ui.core-label-type.mjs +125 -0
- package/fesm2022/elite.framework-ng.ui.core-label-type.mjs.map +1 -0
- package/fesm2022/elite.framework-ng.ui.core-odata-query-builder.mjs +308 -0
- package/fesm2022/elite.framework-ng.ui.core-odata-query-builder.mjs.map +1 -0
- package/fesm2022/elite.framework-ng.ui.core-radio.mjs +118 -0
- package/fesm2022/elite.framework-ng.ui.core-radio.mjs.map +1 -0
- package/fesm2022/elite.framework-ng.ui.core-repeat.mjs +147 -0
- package/fesm2022/elite.framework-ng.ui.core-repeat.mjs.map +1 -0
- package/fesm2022/elite.framework-ng.ui.core-select.mjs +180 -0
- package/fesm2022/elite.framework-ng.ui.core-select.mjs.map +1 -0
- package/fesm2022/elite.framework-ng.ui.core-sidebar-cards.mjs +52 -0
- package/fesm2022/elite.framework-ng.ui.core-sidebar-cards.mjs.map +1 -0
- package/fesm2022/elite.framework-ng.ui.core-sidebar-toggles.mjs +53 -0
- package/fesm2022/elite.framework-ng.ui.core-sidebar-toggles.mjs.map +1 -0
- package/fesm2022/elite.framework-ng.ui.core-tabs.mjs +57 -0
- package/fesm2022/elite.framework-ng.ui.core-tabs.mjs.map +1 -0
- package/fesm2022/elite.framework-ng.ui.core-tag-type.mjs +204 -0
- package/fesm2022/elite.framework-ng.ui.core-tag-type.mjs.map +1 -0
- package/fesm2022/elite.framework-ng.ui.core-text-editor.mjs +56 -0
- package/fesm2022/elite.framework-ng.ui.core-text-editor.mjs.map +1 -0
- package/fesm2022/elite.framework-ng.ui.core-textarea.mjs +95 -0
- package/fesm2022/elite.framework-ng.ui.core-textarea.mjs.map +1 -0
- package/fesm2022/elite.framework-ng.ui.core-ui-button.mjs +101 -0
- package/fesm2022/elite.framework-ng.ui.core-ui-button.mjs.map +1 -0
- package/fesm2022/elite.framework-ng.ui.core-wrappers.mjs +186 -0
- package/fesm2022/elite.framework-ng.ui.core-wrappers.mjs.map +1 -0
- package/fesm2022/elite.framework-ng.ui.core.mjs +18 -0
- package/fesm2022/elite.framework-ng.ui.core.mjs.map +1 -0
- package/form-button/README.md +3 -0
- package/form-button/index.d.ts +17 -0
- package/form-field/README.md +3 -0
- package/form-field/index.d.ts +30 -0
- package/form-template/README.md +3 -0
- package/form-template/index.d.ts +16 -0
- package/formly-avatar-image/README.md +3 -0
- package/formly-avatar-image/index.d.ts +18 -0
- package/formly-avatar-label/README.md +3 -0
- package/formly-avatar-label/index.d.ts +36 -0
- package/formly-button/README.md +3 -0
- package/formly-button/index.d.ts +20 -0
- package/formly-button-selector/README.md +3 -0
- package/formly-button-selector/index.d.ts +35 -0
- package/formly-presets/README.md +3 -0
- package/formly-presets/index.d.ts +37 -0
- package/formly-split-button/README.md +3 -0
- package/formly-split-button/index.d.ts +23 -0
- package/formly-ui/README.md +3 -0
- package/formly-ui/index.d.ts +42 -0
- package/formly-username-with-domain/README.md +3 -0
- package/formly-username-with-domain/index.d.ts +19 -0
- package/generic-autocomplete/README.md +3 -0
- package/generic-autocomplete/index.d.ts +41 -0
- package/generic-button/README.md +3 -0
- package/generic-button/index.d.ts +42 -0
- package/generic-card/README.md +3 -0
- package/generic-card/index.d.ts +93 -0
- package/generic-crud-table/README.md +3 -0
- package/generic-crud-table/index.d.ts +129 -0
- package/generic-errormessage/README.md +3 -0
- package/generic-errormessage/index.d.ts +17 -0
- package/generic-formly-fields/README.md +3 -0
- package/generic-formly-fields/index.d.ts +26 -0
- package/generic-loadingspinner/README.md +3 -0
- package/generic-loadingspinner/index.d.ts +16 -0
- package/generic-search/README.md +3 -0
- package/generic-search/index.d.ts +36 -0
- package/generic-selector/README.md +3 -0
- package/generic-selector/index.d.ts +73 -0
- package/generic-table/README.md +3 -0
- package/generic-table/index.d.ts +66 -0
- package/header-wrapper/README.md +3 -0
- package/header-wrapper/index.d.ts +15 -0
- package/icon-picker/README.md +3 -0
- package/icon-picker/index.d.ts +30 -0
- package/index.d.ts +8 -0
- package/input/README.md +3 -0
- package/input/index.d.ts +42 -0
- package/input-switch/README.md +3 -0
- package/input-switch/index.d.ts +16 -0
- package/input-with-icon/README.md +3 -0
- package/input-with-icon/index.d.ts +17 -0
- package/label-type/README.md +3 -0
- package/label-type/index.d.ts +26 -0
- package/odata-query-builder/README.md +3 -0
- package/odata-query-builder/index.d.ts +87 -0
- package/package.json +219 -0
- package/radio/README.md +3 -0
- package/radio/index.d.ts +38 -0
- package/repeat/README.md +3 -0
- package/repeat/index.d.ts +24 -0
- package/select/README.md +3 -0
- package/select/index.d.ts +42 -0
- package/sidebar-cards/README.md +3 -0
- package/sidebar-cards/index.d.ts +25 -0
- package/sidebar-toggles/README.md +3 -0
- package/sidebar-toggles/index.d.ts +25 -0
- package/tabs/README.md +3 -0
- package/tabs/index.d.ts +17 -0
- package/tag-type/README.md +3 -0
- package/tag-type/index.d.ts +34 -0
- package/text-editor/README.md +3 -0
- package/text-editor/index.d.ts +16 -0
- package/textarea/README.md +3 -0
- package/textarea/index.d.ts +36 -0
- package/ui-button/README.md +3 -0
- package/ui-button/index.d.ts +33 -0
- package/wrappers/README.md +3 -0
- package/wrappers/index.d.ts +31 -0
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import * as i1 from '@angular/common';
|
|
3
|
+
import { FieldType } from '@ngx-formly/core';
|
|
4
|
+
|
|
5
|
+
declare class FormlyAvatarLabelModule {
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyAvatarLabelModule, never>;
|
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyAvatarLabelModule, never, [typeof i1.CommonModule], never>;
|
|
8
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<FormlyAvatarLabelModule>;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
interface AvatarLabelProps {
|
|
12
|
+
/**
|
|
13
|
+
* The username or display name, shown as text and used for avatar initial
|
|
14
|
+
*/
|
|
15
|
+
username?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Prefix label shown before username (e.g. "FROM"), expected to be a translatable key
|
|
18
|
+
*/
|
|
19
|
+
prefixLabel?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Additional CSS classes to customize wrapper div if needed
|
|
22
|
+
*/
|
|
23
|
+
styleClass?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Whether the button should be disabled (optional)
|
|
26
|
+
*/
|
|
27
|
+
disabled?: boolean;
|
|
28
|
+
showUsername?: boolean;
|
|
29
|
+
}
|
|
30
|
+
declare class FormlyAvatarLabelComponent extends FieldType {
|
|
31
|
+
get to(): AvatarLabelProps;
|
|
32
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyAvatarLabelComponent, never>;
|
|
33
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormlyAvatarLabelComponent, "formly-avatar-label", never, {}, {}, never, never, true, never>;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export { FormlyAvatarLabelComponent, FormlyAvatarLabelModule };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import * as i1 from '@angular/common';
|
|
3
|
+
import { FieldType } from '@ngx-formly/core';
|
|
4
|
+
|
|
5
|
+
declare class FormlyButtonModule {
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyButtonModule, never>;
|
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyButtonModule, never, [typeof i1.CommonModule], never>;
|
|
8
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<FormlyButtonModule>;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
interface TemplateOptions {
|
|
12
|
+
onExpand?: (field: any, model: any) => void;
|
|
13
|
+
}
|
|
14
|
+
declare class FormlyButtonComponent extends FieldType {
|
|
15
|
+
get to(): TemplateOptions;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyButtonComponent, never>;
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormlyButtonComponent, "formly-button", never, {}, {}, never, never, true, never>;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export { FormlyButtonComponent, FormlyButtonModule };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { OnInit } from '@angular/core';
|
|
3
|
+
import * as i1 from '@angular/common';
|
|
4
|
+
import { FieldType, FieldTypeConfig } from '@ngx-formly/core';
|
|
5
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
6
|
+
import { Popover } from 'primeng/popover';
|
|
7
|
+
|
|
8
|
+
declare class FormlyButtonSelectorModule {
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyButtonSelectorModule, never>;
|
|
10
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyButtonSelectorModule, never, [typeof i1.CommonModule], never>;
|
|
11
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<FormlyButtonSelectorModule>;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
interface SelectionButtonProps {
|
|
15
|
+
options?: any[];
|
|
16
|
+
optionLabel: string;
|
|
17
|
+
optionValue: string;
|
|
18
|
+
popoverHeader?: string;
|
|
19
|
+
buttonLabel?: string;
|
|
20
|
+
buttonIcon?: string;
|
|
21
|
+
onSelect?: (value: any) => void;
|
|
22
|
+
}
|
|
23
|
+
declare class FormlySelectionButtonComponent extends FieldType<FieldTypeConfig<SelectionButtonProps>> implements OnInit {
|
|
24
|
+
private translate;
|
|
25
|
+
popover: Popover;
|
|
26
|
+
constructor(translate: TranslateService);
|
|
27
|
+
getButtonLabel(): string;
|
|
28
|
+
getButtonIcon(): string | undefined;
|
|
29
|
+
onSelect(value: any): void;
|
|
30
|
+
ngOnInit(): void;
|
|
31
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormlySelectionButtonComponent, never>;
|
|
32
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormlySelectionButtonComponent, "formly-selection-button", never, {}, {}, never, never, true, never>;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export { FormlyButtonSelectorModule, FormlySelectionButtonComponent };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import * as i1 from '@angular/common';
|
|
3
|
+
import { FormlyFieldConfig } from '@ngx-formly/core';
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
5
|
+
|
|
6
|
+
declare class FormlyPresetsModule {
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyPresetsModule, never>;
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyPresetsModule, never, [typeof i1.CommonModule], never>;
|
|
9
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<FormlyPresetsModule>;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
declare const DEFAULT_CONTROL_CLASS: string;
|
|
13
|
+
interface SelectOption {
|
|
14
|
+
label: string;
|
|
15
|
+
value: any;
|
|
16
|
+
icon?: string;
|
|
17
|
+
}
|
|
18
|
+
declare function numberField(key: string, label: string, required?: boolean, className?: string): FormlyFieldConfig;
|
|
19
|
+
declare function textField(key: string, label: string, required?: boolean, className?: string, extraTemplateOptions?: {
|
|
20
|
+
[key: string]: any;
|
|
21
|
+
}): FormlyFieldConfig;
|
|
22
|
+
declare function textField2(key: string, label: string, required?: boolean, className?: string, expressions?: FormlyFieldConfig['expressions']): FormlyFieldConfig;
|
|
23
|
+
declare function textareaField(key: string, label: string, rows?: number, className?: string): FormlyFieldConfig;
|
|
24
|
+
interface SelectFieldOptions {
|
|
25
|
+
key: string;
|
|
26
|
+
label: string;
|
|
27
|
+
options?: SelectOption[] | Observable<SelectOption[]>;
|
|
28
|
+
className?: string;
|
|
29
|
+
defaultValue?: any;
|
|
30
|
+
required?: boolean;
|
|
31
|
+
fullWidth?: boolean;
|
|
32
|
+
}
|
|
33
|
+
declare function selectField({ key, label, options, className, defaultValue, fullWidth, required, }: SelectFieldOptions): FormlyFieldConfig;
|
|
34
|
+
declare function checkboxField(key: string, label: string, required?: boolean, className?: string): FormlyFieldConfig;
|
|
35
|
+
|
|
36
|
+
export { DEFAULT_CONTROL_CLASS, FormlyPresetsModule, checkboxField, numberField, selectField, textField, textField2, textareaField };
|
|
37
|
+
export type { SelectFieldOptions, SelectOption };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import * as i1 from '@angular/common';
|
|
3
|
+
import { FieldType, FieldTypeConfig } from '@ngx-formly/core';
|
|
4
|
+
import { MenuItem } from 'primeng/api';
|
|
5
|
+
|
|
6
|
+
declare class FormlySplitButtonModule {
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormlySplitButtonModule, never>;
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FormlySplitButtonModule, never, [typeof i1.CommonModule], never>;
|
|
9
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<FormlySplitButtonModule>;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
interface SplitButtonProps {
|
|
13
|
+
label: string;
|
|
14
|
+
icon?: string;
|
|
15
|
+
items: MenuItem[];
|
|
16
|
+
onClick?: () => void;
|
|
17
|
+
}
|
|
18
|
+
declare class FormlySplitButtonComponent extends FieldType<FieldTypeConfig<SplitButtonProps>> {
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormlySplitButtonComponent, never>;
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormlySplitButtonComponent, "formly-split-button-type", never, {}, {}, never, never, true, never>;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export { FormlySplitButtonComponent, FormlySplitButtonModule };
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import * as i1 from '@angular/common';
|
|
3
|
+
import { ConfigOption } from '@ngx-formly/core';
|
|
4
|
+
|
|
5
|
+
declare class FormlyUiModule {
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyUiModule, never>;
|
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyUiModule, never, [typeof i1.CommonModule], never>;
|
|
8
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<FormlyUiModule>;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
declare const provideFormly: i0.Provider;
|
|
12
|
+
declare function withFormlyFieldAdvancedInput(): ConfigOption;
|
|
13
|
+
declare function withFormlyFieldString(): ConfigOption;
|
|
14
|
+
declare function withFormlyFieldNumber(): ConfigOption;
|
|
15
|
+
declare function withFormlyFieldInteger(): ConfigOption;
|
|
16
|
+
declare function withFormlyFieldInputWithIcon(): ConfigOption;
|
|
17
|
+
declare function withFormlyFieldAttachment(): ConfigOption;
|
|
18
|
+
declare function withFormlyFieldRichTextEditor(): ConfigOption;
|
|
19
|
+
declare function withFormlyFieldGenericSelector(): ConfigOption;
|
|
20
|
+
declare function withFormlyFieldSwitch(): ConfigOption;
|
|
21
|
+
declare function withFormlyFieldUsernameWithDomain(): ConfigOption;
|
|
22
|
+
declare function withFormlyFieldCustomSwitch(): ConfigOption;
|
|
23
|
+
declare function withFormlyFieldFormlySplit(): ConfigOption;
|
|
24
|
+
declare function withFormlyFieldButtonSelection(): ConfigOption;
|
|
25
|
+
declare function withFormlyFieldAvatarLabelButton(): ConfigOption;
|
|
26
|
+
declare function withFormlyFieldFormlyButton(): ConfigOption;
|
|
27
|
+
declare function withFormlyFieldLabelType(): ConfigOption;
|
|
28
|
+
declare function withFormlyFieldClickableLabelType(): ConfigOption;
|
|
29
|
+
declare function withFormlyFieldOptionTag(): ConfigOption;
|
|
30
|
+
declare function withFormlyFieldRepeat(): ConfigOption;
|
|
31
|
+
declare function withFormlyFieldTabs(): ConfigOption;
|
|
32
|
+
declare function withFormlyFieldTag(): ConfigOption;
|
|
33
|
+
declare function withFormlyFieldColorTag(): ConfigOption;
|
|
34
|
+
declare function withFormlyFieldConditionBuilder(): ConfigOption;
|
|
35
|
+
declare function withFormlyFieldIconPicker(): ConfigOption;
|
|
36
|
+
declare function withFormlyFieldColorPicker(): ConfigOption;
|
|
37
|
+
declare function withFormlyFieldTemplate(): ConfigOption;
|
|
38
|
+
declare function withFormlyFieldButton(): ConfigOption;
|
|
39
|
+
declare function withFormlyFieldAvatarImage(): ConfigOption;
|
|
40
|
+
declare function withFormlyWrappers(): ConfigOption;
|
|
41
|
+
|
|
42
|
+
export { FormlyUiModule, provideFormly, withFormlyFieldAdvancedInput, withFormlyFieldAttachment, withFormlyFieldAvatarImage, withFormlyFieldAvatarLabelButton, withFormlyFieldButton, withFormlyFieldButtonSelection, withFormlyFieldClickableLabelType, withFormlyFieldColorPicker, withFormlyFieldColorTag, withFormlyFieldConditionBuilder, withFormlyFieldCustomSwitch, withFormlyFieldFormlyButton, withFormlyFieldFormlySplit, withFormlyFieldGenericSelector, withFormlyFieldIconPicker, withFormlyFieldInputWithIcon, withFormlyFieldInteger, withFormlyFieldLabelType, withFormlyFieldNumber, withFormlyFieldOptionTag, withFormlyFieldRepeat, withFormlyFieldRichTextEditor, withFormlyFieldString, withFormlyFieldSwitch, withFormlyFieldTabs, withFormlyFieldTag, withFormlyFieldTemplate, withFormlyFieldUsernameWithDomain, withFormlyWrappers };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import * as i1 from '@angular/common';
|
|
3
|
+
import { FieldType, FieldTypeConfig } from '@ngx-formly/core';
|
|
4
|
+
|
|
5
|
+
declare class FormlyUsernameWithDomainModule {
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyUsernameWithDomainModule, never>;
|
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyUsernameWithDomainModule, never, [typeof i1.CommonModule], never>;
|
|
8
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<FormlyUsernameWithDomainModule>;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
declare class UsernameWithDomainComponent extends FieldType<FieldTypeConfig> {
|
|
12
|
+
readonly domain = "@ELITESOFTSYS.COM";
|
|
13
|
+
ngOnInit(): void;
|
|
14
|
+
onBlur(): void;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UsernameWithDomainComponent, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UsernameWithDomainComponent, "lib-formly-username-with-domain", never, {}, {}, never, never, true, never>;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export { FormlyUsernameWithDomainModule, UsernameWithDomainComponent };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { OnInit, EventEmitter } from '@angular/core';
|
|
3
|
+
import * as i1 from '@angular/common';
|
|
4
|
+
import { AutoComplete } from 'primeng/autocomplete';
|
|
5
|
+
import { BaseService } from '@elite.framework/ng.core/services';
|
|
6
|
+
|
|
7
|
+
declare class GenericAutocompleteModule {
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GenericAutocompleteModule, never>;
|
|
9
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<GenericAutocompleteModule, never, [typeof i1.CommonModule], never>;
|
|
10
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<GenericAutocompleteModule>;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
declare class GenericAutocompleteComponent implements OnInit {
|
|
14
|
+
private svc;
|
|
15
|
+
autoComp: AutoComplete;
|
|
16
|
+
serviceName: string;
|
|
17
|
+
listEndpoint?: string;
|
|
18
|
+
labelField?: string;
|
|
19
|
+
valueField?: string;
|
|
20
|
+
multiple: boolean;
|
|
21
|
+
placeholder?: string;
|
|
22
|
+
fixedFilters?: Record<string, any>;
|
|
23
|
+
value: any;
|
|
24
|
+
loadOnInit: boolean;
|
|
25
|
+
selectionChange: EventEmitter<any>;
|
|
26
|
+
options_: any[];
|
|
27
|
+
selectedItem: any;
|
|
28
|
+
loading: boolean;
|
|
29
|
+
api: BaseService;
|
|
30
|
+
constructor(svc: BaseService);
|
|
31
|
+
ngOnInit(): void;
|
|
32
|
+
onSelectionChange(val: any): void;
|
|
33
|
+
search(event: {
|
|
34
|
+
query: string;
|
|
35
|
+
}): void;
|
|
36
|
+
getEmptyMessage(): string;
|
|
37
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GenericAutocompleteComponent, never>;
|
|
38
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GenericAutocompleteComponent, "app-generic-autocomplete", never, { "serviceName": { "alias": "serviceName"; "required": false; }; "listEndpoint": { "alias": "listEndpoint"; "required": false; }; "labelField": { "alias": "labelField"; "required": false; }; "valueField": { "alias": "valueField"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "fixedFilters": { "alias": "fixedFilters"; "required": false; }; "value": { "alias": "value"; "required": false; }; "loadOnInit": { "alias": "loadOnInit"; "required": false; }; }, { "selectionChange": "selectionChange"; }, never, never, true, never>;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export { GenericAutocompleteComponent, GenericAutocompleteModule };
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { EventEmitter } from '@angular/core';
|
|
3
|
+
import * as i1 from '@angular/common';
|
|
4
|
+
import { MenuItem } from 'primeng/api';
|
|
5
|
+
|
|
6
|
+
declare class GenericButtonModule {
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GenericButtonModule, never>;
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<GenericButtonModule, never, [typeof i1.CommonModule], never>;
|
|
9
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<GenericButtonModule>;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
type ButtonVariant = 'text' | 'outlined' | 'raised' | 'rounded';
|
|
13
|
+
type ButtonSeverity = 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'danger';
|
|
14
|
+
type ButtonSize = 'small' | 'normal' | 'large';
|
|
15
|
+
type IconPosition = 'left' | 'right';
|
|
16
|
+
declare class GenericButton {
|
|
17
|
+
model?: MenuItem[];
|
|
18
|
+
type: 'button' | 'submit' | 'reset';
|
|
19
|
+
icon: string;
|
|
20
|
+
label: string;
|
|
21
|
+
variant: ButtonVariant;
|
|
22
|
+
severity: ButtonSeverity;
|
|
23
|
+
size: ButtonSize;
|
|
24
|
+
iconPosition: IconPosition;
|
|
25
|
+
disabled: boolean;
|
|
26
|
+
loading: boolean;
|
|
27
|
+
ariaLabel?: string;
|
|
28
|
+
extraClasses: string;
|
|
29
|
+
permission?: string;
|
|
30
|
+
clicked: EventEmitter<void>;
|
|
31
|
+
itemClick: EventEmitter<any>;
|
|
32
|
+
private sizeMap;
|
|
33
|
+
private colorMap;
|
|
34
|
+
private outlinedMap;
|
|
35
|
+
get twClasses(): string;
|
|
36
|
+
onClick(): void;
|
|
37
|
+
onItemClick(evt: any): void;
|
|
38
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GenericButton, never>;
|
|
39
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GenericButton, "lib-generic-button", never, { "model": { "alias": "model"; "required": false; }; "type": { "alias": "type"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "label": { "alias": "label"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "severity": { "alias": "severity"; "required": false; }; "size": { "alias": "size"; "required": false; }; "iconPosition": { "alias": "iconPosition"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "extraClasses": { "alias": "extraClasses"; "required": false; }; "permission": { "alias": "permission"; "required": false; }; }, { "clicked": "clicked"; "itemClick": "itemClick"; }, never, ["*"], true, never>;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export { GenericButton, GenericButtonModule };
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { EventEmitter } from '@angular/core';
|
|
3
|
+
import * as i1 from '@angular/common';
|
|
4
|
+
import { ColumnDef, ActionDef } from '@elite.framework/ng.core/models';
|
|
5
|
+
import { MenuItem } from 'primeng/api';
|
|
6
|
+
|
|
7
|
+
declare class GenericCardModule {
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GenericCardModule, never>;
|
|
9
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<GenericCardModule, never, [typeof i1.CommonModule], never>;
|
|
10
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<GenericCardModule>;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
declare class GenericCard<T extends {
|
|
14
|
+
[key: string]: any;
|
|
15
|
+
}> {
|
|
16
|
+
data: T[];
|
|
17
|
+
columns: ColumnDef<T>[];
|
|
18
|
+
loading: boolean;
|
|
19
|
+
actions: ActionDef<T>[];
|
|
20
|
+
actionsMode: 'buttons' | 'menu';
|
|
21
|
+
showOperations: boolean;
|
|
22
|
+
rowSelectable: boolean;
|
|
23
|
+
showRowSelectionCheckbox: boolean;
|
|
24
|
+
paginator: boolean;
|
|
25
|
+
rowClassFn: (rowData: any) => string;
|
|
26
|
+
action: EventEmitter<{
|
|
27
|
+
name: string;
|
|
28
|
+
row: T;
|
|
29
|
+
}>;
|
|
30
|
+
_selection: T | T[] | null;
|
|
31
|
+
get selection(): T | T[] | null;
|
|
32
|
+
set selection(val: T | T[] | null);
|
|
33
|
+
selectionChange: EventEmitter<T | T[] | null>;
|
|
34
|
+
rowSelect: EventEmitter<T>;
|
|
35
|
+
/**
|
|
36
|
+
* Generates menu items for the action menu.
|
|
37
|
+
* @param row The data row for which to generate actions.
|
|
38
|
+
* @returns An array of PrimeNG MenuItem objects.
|
|
39
|
+
*/
|
|
40
|
+
getMenuItems(row: T): MenuItem[];
|
|
41
|
+
/**
|
|
42
|
+
* Handles click events on a clickable cell.
|
|
43
|
+
* @param col The ColumnDef of the clicked column.
|
|
44
|
+
* @param rowData The data row of the clicked cell.
|
|
45
|
+
* @param event The mouse event.
|
|
46
|
+
*/
|
|
47
|
+
handleCellClick(col: ColumnDef<any>, rowData: any, event: MouseEvent): void;
|
|
48
|
+
/**
|
|
49
|
+
* Handles mouse enter events on a hoverable cell.
|
|
50
|
+
* @param col The ColumnDef of the hovered column.
|
|
51
|
+
* @param rowData The data row of the hovered cell.
|
|
52
|
+
* @param event The mouse event.
|
|
53
|
+
*/
|
|
54
|
+
onCellHover(col: ColumnDef<T>, row: T, event: MouseEvent): void;
|
|
55
|
+
/**
|
|
56
|
+
* Handles mouse leave events on a hoverable cell.
|
|
57
|
+
* @param col The ColumnDef of the hovered column.
|
|
58
|
+
* @param rowData The data row of the hovered cell.
|
|
59
|
+
* @param event The mouse event.
|
|
60
|
+
*/
|
|
61
|
+
onCellLeave(col: ColumnDef<T>, row: T, event: MouseEvent): void;
|
|
62
|
+
/**
|
|
63
|
+
* Handles click on the entire card for row selection (if not using checkboxes).
|
|
64
|
+
* @param item The data item associated with the clicked card.
|
|
65
|
+
*/
|
|
66
|
+
handleCardClick(item: T): void;
|
|
67
|
+
/**
|
|
68
|
+
* Checks if an item is currently selected.
|
|
69
|
+
* Used for checkbox binding.
|
|
70
|
+
* @param item The item to check.
|
|
71
|
+
* @returns True if the item is selected, false otherwise.
|
|
72
|
+
*/
|
|
73
|
+
isItemSelected(item: T): boolean;
|
|
74
|
+
/**
|
|
75
|
+
* Toggles the selection state of an item.
|
|
76
|
+
* Used when a checkbox is clicked.
|
|
77
|
+
* @param item The item to toggle.
|
|
78
|
+
* @param event The change event from the checkbox.
|
|
79
|
+
*/
|
|
80
|
+
toggleItemSelection(item: T, event: Event): void;
|
|
81
|
+
/**
|
|
82
|
+
* Used by *ngFor to optimize rendering.
|
|
83
|
+
* Assumes each item has a unique 'id' property.
|
|
84
|
+
* @param index The index of the item.
|
|
85
|
+
* @param item The data item.
|
|
86
|
+
* @returns The unique identifier of the item.
|
|
87
|
+
*/
|
|
88
|
+
trackById(index: number, item: T): any;
|
|
89
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GenericCard<any>, never>;
|
|
90
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GenericCard<any>, "lib-generic-card", never, { "data": { "alias": "data"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "actions": { "alias": "actions"; "required": false; }; "actionsMode": { "alias": "actionsMode"; "required": false; }; "showOperations": { "alias": "showOperations"; "required": false; }; "rowSelectable": { "alias": "rowSelectable"; "required": false; }; "showRowSelectionCheckbox": { "alias": "showRowSelectionCheckbox"; "required": false; }; "paginator": { "alias": "paginator"; "required": false; }; "rowClassFn": { "alias": "rowClassFn"; "required": false; }; "selection": { "alias": "selection"; "required": false; }; }, { "action": "action"; "selectionChange": "selectionChange"; "rowSelect": "rowSelect"; }, never, never, true, never>;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export { GenericCard, GenericCardModule };
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { EventEmitter } from '@angular/core';
|
|
3
|
+
import * as i1 from '@angular/common';
|
|
4
|
+
import * as i2 from '@elite.framework/ng.ui.core/generic-button';
|
|
5
|
+
import { PaginatorState } from 'primeng/paginator';
|
|
6
|
+
import { TableLazyLoadEvent } from 'primeng/table';
|
|
7
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
8
|
+
import { FormlyFieldConfig, FormlyFormOptions } from '@ngx-formly/core';
|
|
9
|
+
import { MenuItem } from 'primeng/api';
|
|
10
|
+
import { UntypedFormGroup } from '@angular/forms';
|
|
11
|
+
import { BaseService } from '@elite.framework/ng.core/services';
|
|
12
|
+
import { ActionDef, ButtonConfig } from '@elite.framework/ng.core/models';
|
|
13
|
+
import { GenericTable } from '@elite.framework/ng.ui.core/generic-table';
|
|
14
|
+
|
|
15
|
+
declare class GenericCrudTableModule {
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GenericCrudTableModule, never>;
|
|
17
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<GenericCrudTableModule, never, [typeof i1.CommonModule, typeof i2.GenericButtonModule], never>;
|
|
18
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<GenericCrudTableModule>;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
interface PageChangePayload extends PaginatorState {
|
|
22
|
+
sort?: string;
|
|
23
|
+
filters?: Record<string, any>;
|
|
24
|
+
}
|
|
25
|
+
type ActionsMode = 'buttons' | 'menu';
|
|
26
|
+
declare class GenericCrudTableComponent<T> {
|
|
27
|
+
genericTable: GenericTable<T>;
|
|
28
|
+
translate: TranslateService;
|
|
29
|
+
private swalService;
|
|
30
|
+
home: MenuItem | undefined;
|
|
31
|
+
data: T[];
|
|
32
|
+
formFields_: FormlyFieldConfig[];
|
|
33
|
+
formFields: FormlyFieldConfig[];
|
|
34
|
+
columns: FormlyFieldConfig[];
|
|
35
|
+
isViewMode: boolean;
|
|
36
|
+
displayMode: 'drawer' | 'dialog' | 'route' | Partial<Record<'add' | 'edit' | 'view', 'drawer' | 'dialog' | 'route'>>;
|
|
37
|
+
isEditMode: boolean;
|
|
38
|
+
drawerVisible: boolean;
|
|
39
|
+
dialogVisible: boolean;
|
|
40
|
+
form: UntypedFormGroup;
|
|
41
|
+
model: any;
|
|
42
|
+
model_: any;
|
|
43
|
+
loading: boolean;
|
|
44
|
+
errorMsg: string;
|
|
45
|
+
errorMessage: string | any;
|
|
46
|
+
options: FormlyFormOptions;
|
|
47
|
+
actions: ActionDef<T>[];
|
|
48
|
+
/** تحدد طريقة العرض: 'buttons' أو 'menu' */
|
|
49
|
+
actionsMode: ActionsMode;
|
|
50
|
+
action: EventEmitter<{
|
|
51
|
+
name: string;
|
|
52
|
+
row: T;
|
|
53
|
+
}>;
|
|
54
|
+
bulkAction: EventEmitter<{
|
|
55
|
+
name: string;
|
|
56
|
+
items: T[];
|
|
57
|
+
}>;
|
|
58
|
+
singleAction: EventEmitter<{
|
|
59
|
+
name: string;
|
|
60
|
+
item: T;
|
|
61
|
+
}>;
|
|
62
|
+
filters: any;
|
|
63
|
+
filterModel: any;
|
|
64
|
+
search: EventEmitter<{
|
|
65
|
+
field: string;
|
|
66
|
+
global: string;
|
|
67
|
+
}>;
|
|
68
|
+
/** للتحكم بإظهار/إخفاء قسم البحث */
|
|
69
|
+
showSearch: boolean;
|
|
70
|
+
/** Pagination Inputs */
|
|
71
|
+
first: number;
|
|
72
|
+
rows: number;
|
|
73
|
+
totalRecords: number;
|
|
74
|
+
pageChange: EventEmitter<PageChangePayload>;
|
|
75
|
+
onSearch: EventEmitter<any>;
|
|
76
|
+
visibleChange: EventEmitter<boolean>;
|
|
77
|
+
viewHeaderTitle: string;
|
|
78
|
+
/** لجعل الجدول قابل لاختيار الصفوف (افتراضي false) */
|
|
79
|
+
rowSelectable: boolean;
|
|
80
|
+
/** حدث يخرج الصف المحدّد */
|
|
81
|
+
rowSelect: EventEmitter<T>;
|
|
82
|
+
selection: T | null;
|
|
83
|
+
sortField?: string;
|
|
84
|
+
sortOrder: 1 | -1;
|
|
85
|
+
scrollHeight: string;
|
|
86
|
+
paginator: boolean;
|
|
87
|
+
service: BaseService | any;
|
|
88
|
+
idField: string;
|
|
89
|
+
showRowSelectionCheckbox: boolean;
|
|
90
|
+
bulkActionButtons: ButtonConfig[];
|
|
91
|
+
singleActionButtons: ButtonConfig[];
|
|
92
|
+
_selectedRows: T[];
|
|
93
|
+
get isSingleItemSelected(): boolean;
|
|
94
|
+
get isMultipleItemSelected(): boolean;
|
|
95
|
+
get selectedItems(): T[];
|
|
96
|
+
/** للتحكم بإظهار زر الإضافة */
|
|
97
|
+
showAddButton: boolean;
|
|
98
|
+
splitActions: MenuItem[];
|
|
99
|
+
/** الأيقونة الافتراضية لزر الإضافة */
|
|
100
|
+
addButtonIcon: string;
|
|
101
|
+
/** النص الافتراضي لزر الإضافة */
|
|
102
|
+
addButtonLabel: string;
|
|
103
|
+
/** تتحكّم بموقع زر الإضافة: 'top' أو 'bottom' */
|
|
104
|
+
addButtonPosition: 'top' | 'bottom';
|
|
105
|
+
addButtonConfigs: ButtonConfig[];
|
|
106
|
+
breadcrumb: MenuItem[] | undefined;
|
|
107
|
+
get breadcrumb_(): MenuItem[] | undefined;
|
|
108
|
+
get rtl(): boolean;
|
|
109
|
+
/** الآن يتلقّى pagination + sort في حدث واحد */
|
|
110
|
+
onLazyLoad(event: TableLazyLoadEvent): void;
|
|
111
|
+
/** تصيير البيانات حسب الصفحة */
|
|
112
|
+
get pagedData(): T[];
|
|
113
|
+
get globalFilterFields(): string[];
|
|
114
|
+
/** أرسل إلى الأب لأتمتة شكل البحث إذا يحتاج */
|
|
115
|
+
/** بدّل applySearch لتبث pageChange مباشرةً */
|
|
116
|
+
applySearch(filters: any): void;
|
|
117
|
+
/** دالة تنفّذ عند النقر على صف */
|
|
118
|
+
onRowClick(row: T): void;
|
|
119
|
+
beforeSave: (record: T) => T;
|
|
120
|
+
onSubmit(): void;
|
|
121
|
+
trackByIdx(index: number, item: any): number;
|
|
122
|
+
onSingleItemAction(btn: ButtonConfig): void;
|
|
123
|
+
onInternalBulkAction(btn: ButtonConfig): void;
|
|
124
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GenericCrudTableComponent<any>, never>;
|
|
125
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GenericCrudTableComponent<any>, "app-generic-crud-table", never, { "data": { "alias": "data"; "required": false; }; "formFields": { "alias": "formFields"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "isViewMode": { "alias": "isViewMode"; "required": false; }; "displayMode": { "alias": "displayMode"; "required": false; }; "isEditMode": { "alias": "isEditMode"; "required": false; }; "drawerVisible": { "alias": "drawerVisible"; "required": false; }; "dialogVisible": { "alias": "dialogVisible"; "required": false; }; "model": { "alias": "model"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "errorMsg": { "alias": "errorMsg"; "required": false; }; "errorMessage": { "alias": "errorMessage"; "required": false; }; "actions": { "alias": "actions"; "required": false; }; "actionsMode": { "alias": "actionsMode"; "required": false; }; "filters": { "alias": "filters"; "required": false; }; "filterModel": { "alias": "filterModel"; "required": false; }; "showSearch": { "alias": "showSearch"; "required": false; }; "first": { "alias": "first"; "required": false; }; "rows": { "alias": "rows"; "required": false; }; "totalRecords": { "alias": "totalRecords"; "required": false; }; "rowSelectable": { "alias": "rowSelectable"; "required": false; }; "scrollHeight": { "alias": "scrollHeight"; "required": false; }; "paginator": { "alias": "paginator"; "required": false; }; "service": { "alias": "service"; "required": false; }; "idField": { "alias": "idField"; "required": false; }; "showRowSelectionCheckbox": { "alias": "showRowSelectionCheckbox"; "required": false; }; "bulkActionButtons": { "alias": "bulkActionButtons"; "required": false; }; "singleActionButtons": { "alias": "singleActionButtons"; "required": false; }; "showAddButton": { "alias": "showAddButton"; "required": false; }; "splitActions": { "alias": "splitActions"; "required": false; }; "addButtonIcon": { "alias": "addButtonIcon"; "required": false; }; "addButtonLabel": { "alias": "addButtonLabel"; "required": false; }; "addButtonPosition": { "alias": "addButtonPosition"; "required": false; }; "addButtonConfigs": { "alias": "addButtonConfigs"; "required": false; }; "breadcrumb": { "alias": "breadcrumb"; "required": false; }; "beforeSave": { "alias": "beforeSave"; "required": false; }; }, { "action": "action"; "bulkAction": "bulkAction"; "singleAction": "singleAction"; "search": "search"; "pageChange": "pageChange"; "onSearch": "onSearch"; "visibleChange": "visibleChange"; "rowSelect": "rowSelect"; }, never, never, true, never>;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export { GenericCrudTableComponent, GenericCrudTableModule };
|
|
129
|
+
export type { ActionsMode, PageChangePayload };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import * as i1 from '@angular/common';
|
|
3
|
+
|
|
4
|
+
declare class GenericErrormessageModule {
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GenericErrormessageModule, never>;
|
|
6
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<GenericErrormessageModule, never, [typeof i1.CommonModule], never>;
|
|
7
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<GenericErrormessageModule>;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
declare class GenericErrormessage {
|
|
11
|
+
/** نص رسالة الخطأ */
|
|
12
|
+
text: string;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GenericErrormessage, never>;
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GenericErrormessage, "lib-generic-errormessage", never, { "text": { "alias": "text"; "required": false; }; }, {}, never, never, true, never>;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export { GenericErrormessage, GenericErrormessageModule };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import * as i1 from '@angular/common';
|
|
3
|
+
import { FormGroup } from '@angular/forms';
|
|
4
|
+
import { FormlyFieldConfig, FormlyFormOptions } from '@ngx-formly/core';
|
|
5
|
+
|
|
6
|
+
declare class GenericFormlyFieldsModule {
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GenericFormlyFieldsModule, never>;
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<GenericFormlyFieldsModule, never, [typeof i1.CommonModule], never>;
|
|
9
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<GenericFormlyFieldsModule>;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
declare class GenericFormlyFields {
|
|
13
|
+
/** الـ FormGroup الذي يُدار خارجيًا */
|
|
14
|
+
form: FormGroup;
|
|
15
|
+
/** حقول Formly */
|
|
16
|
+
fields: FormlyFieldConfig[];
|
|
17
|
+
/** النموذج (object) الذي سيُربط بالحقول */
|
|
18
|
+
model: any;
|
|
19
|
+
/** خيارات Formly (validation, hideExpression, ...) */
|
|
20
|
+
options: FormlyFormOptions;
|
|
21
|
+
getFieldIcon(field: FormlyFieldConfig): string | null;
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GenericFormlyFields, never>;
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GenericFormlyFields, "lib-generic-formly-fields", never, { "form": { "alias": "form"; "required": false; }; "fields": { "alias": "fields"; "required": false; }; "model": { "alias": "model"; "required": false; }; "options": { "alias": "options"; "required": false; }; }, {}, never, never, true, never>;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export { GenericFormlyFields, GenericFormlyFieldsModule };
|