@vality/matez 19.0.1-pr-423-667df70.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -0
- package/fesm2022/vality-matez.mjs +3741 -0
- package/fesm2022/vality-matez.mjs.map +1 -0
- package/index.d.ts +1 -0
- package/lib/components/actions/actions.component.d.ts +5 -0
- package/lib/components/actions/actions.module.d.ts +7 -0
- package/lib/components/actions/index.d.ts +2 -0
- package/lib/components/confirm-dialog/confirm-dialog.component.d.ts +16 -0
- package/lib/components/confirm-dialog/confirm-dialog.module.d.ts +14 -0
- package/lib/components/confirm-dialog/index.d.ts +2 -0
- package/lib/components/content-loading/content-loading.component.d.ts +8 -0
- package/lib/components/content-loading/index.d.ts +1 -0
- package/lib/components/date-range-field/date-range-field.component.d.ts +16 -0
- package/lib/components/date-range-field/date-range-field.module.d.ts +13 -0
- package/lib/components/date-range-field/index.d.ts +5 -0
- package/lib/components/date-range-field/types/date-range.d.ts +4 -0
- package/lib/components/date-range-field/utils/create-date-range-to-today.d.ts +2 -0
- package/lib/components/date-range-field/utils/is-equal-date-range.d.ts +2 -0
- package/lib/components/datetime-field/datetime-field.component.d.ts +19 -0
- package/lib/components/datetime-field/datetime-field.module.d.ts +11 -0
- package/lib/components/datetime-field/index.d.ts +2 -0
- package/lib/components/dialog/components/dialog-actions/dialog-actions.component.d.ts +5 -0
- package/lib/components/dialog/dialog.component.d.ts +28 -0
- package/lib/components/dialog/dialog.module.d.ts +16 -0
- package/lib/components/dialog/index.d.ts +8 -0
- package/lib/components/dialog/services/dialog.service.d.ts +23 -0
- package/lib/components/dialog/tokens.d.ts +8 -0
- package/lib/components/dialog/types/dialog-response-status.d.ts +5 -0
- package/lib/components/dialog/types/dialog-response.d.ts +6 -0
- package/lib/components/dialog/utils/dialog-superclass.d.ts +13 -0
- package/lib/components/error-page/error-page-routing.module.d.ts +7 -0
- package/lib/components/error-page/error-page.component.d.ts +5 -0
- package/lib/components/error-page/error-page.module.d.ts +9 -0
- package/lib/components/error-page/index.d.ts +2 -0
- package/lib/components/file-upload/file-upload.component.d.ts +14 -0
- package/lib/components/file-upload/file-upload.module.d.ts +9 -0
- package/lib/components/file-upload/index.d.ts +3 -0
- package/lib/components/file-upload/utils/load-file-content.d.ts +3 -0
- package/lib/components/filters/components/filters-dialog/filters-dialog.component.d.ts +10 -0
- package/lib/components/filters/components/main-filters/main-filters.directive.d.ts +8 -0
- package/lib/components/filters/components/more-filters-button/more-filters-button.component.d.ts +7 -0
- package/lib/components/filters/components/other-filters/other-filters.directive.d.ts +8 -0
- package/lib/components/filters/filters.component.d.ts +29 -0
- package/lib/components/filters/filters.module.d.ts +19 -0
- package/lib/components/filters/index.d.ts +5 -0
- package/lib/components/index.d.ts +18 -0
- package/lib/components/input-field/index.d.ts +2 -0
- package/lib/components/input-field/input-field.component.d.ts +14 -0
- package/lib/components/input-field/input-field.module.d.ts +12 -0
- package/lib/components/list-field/index.d.ts +2 -0
- package/lib/components/list-field/list-field.component.d.ts +12 -0
- package/lib/components/list-field/list-field.module.d.ts +10 -0
- package/lib/components/nav/index.d.ts +1 -0
- package/lib/components/nav/nav.component.d.ts +16 -0
- package/lib/components/number-range-field/index.d.ts +2 -0
- package/lib/components/number-range-field/number-range-field.component.d.ts +18 -0
- package/lib/components/number-range-field/number-range-field.module.d.ts +9 -0
- package/lib/components/progress/index.d.ts +3 -0
- package/lib/components/progress/progress.component.d.ts +9 -0
- package/lib/components/progress/progress.module.d.ts +9 -0
- package/lib/components/progress/utils/get-progress-by-count.d.ts +1 -0
- package/lib/components/select-autocomplete/autocomplete-field/autocomplete-field.component.d.ts +23 -0
- package/lib/components/select-autocomplete/autocomplete-field/autocomplete-field.module.d.ts +13 -0
- package/lib/components/select-autocomplete/autocomplete-field/index.d.ts +2 -0
- package/lib/components/select-autocomplete/index.d.ts +3 -0
- package/lib/components/select-autocomplete/select-field/index.d.ts +2 -0
- package/lib/components/select-autocomplete/select-field/select-field.component.d.ts +26 -0
- package/lib/components/select-autocomplete/select-field/select-field.module.d.ts +12 -0
- package/lib/components/select-autocomplete/types/index.d.ts +1 -0
- package/lib/components/select-autocomplete/types/option.d.ts +6 -0
- package/lib/components/select-autocomplete/utils/find-option-by-value.d.ts +2 -0
- package/lib/components/select-autocomplete/utils/get-hint-text.d.ts +5 -0
- package/lib/components/select-autocomplete/utils/index.d.ts +2 -0
- package/lib/components/select-autocomplete/utils/search-options.d.ts +3 -0
- package/lib/components/switch-button/index.d.ts +2 -0
- package/lib/components/switch-button/switch-button.component.d.ts +24 -0
- package/lib/components/switch-button/switch-button.module.d.ts +11 -0
- package/lib/components/table/components/base-column.component.d.ts +17 -0
- package/lib/components/table/components/customize/customize.component.d.ts +17 -0
- package/lib/components/table/components/dnd-column.component.d.ts +7 -0
- package/lib/components/table/components/infinity-scroll.directive.d.ts +12 -0
- package/lib/components/table/components/no-records.component.d.ts +7 -0
- package/lib/components/table/components/select-column.component.d.ts +21 -0
- package/lib/components/table/components/table-actions.component.d.ts +5 -0
- package/lib/components/table/components/table-info-bar/table-info-bar.component.d.ts +33 -0
- package/lib/components/table/components/table-inputs.component.d.ts +5 -0
- package/lib/components/table/components/table-progress-bar.component.d.ts +6 -0
- package/lib/components/table/consts.d.ts +8 -0
- package/lib/components/table/index.d.ts +10 -0
- package/lib/components/table/presets/create-menu-column.d.ts +6 -0
- package/lib/components/table/presets/index.d.ts +1 -0
- package/lib/components/table/table.component.d.ts +81 -0
- package/lib/components/table/table.module.d.ts +34 -0
- package/lib/components/table/tree-data/index.d.ts +2 -0
- package/lib/components/table/tree-data/tree-data-item-to-inline-data-item.d.ts +10 -0
- package/lib/components/table/tree-data/tree-data.d.ts +10 -0
- package/lib/components/table/types/column2.d.ts +34 -0
- package/lib/components/table/types/drag-drop.d.ts +10 -0
- package/lib/components/table/types/index.d.ts +3 -0
- package/lib/components/table/types/update-options.d.ts +3 -0
- package/lib/components/table/utils/cached-head-map.d.ts +2 -0
- package/lib/components/table/utils/correct-priorities.d.ts +5 -0
- package/lib/components/table/utils/create-column.d.ts +6 -0
- package/lib/components/table/utils/create-intersection-observer.d.ts +2 -0
- package/lib/components/table/utils/create-unique-column-def.d.ts +1 -0
- package/lib/components/table/utils/filter-sort.d.ts +14 -0
- package/lib/components/table/utils/normalize-string.d.ts +2 -0
- package/lib/components/table/utils/table-data-source.d.ts +31 -0
- package/lib/components/table/utils/table-to-csv-object.d.ts +3 -0
- package/lib/components/table/utils/to-columns-data.d.ts +26 -0
- package/lib/components/tag/index.d.ts +2 -0
- package/lib/components/tag/tag.component.d.ts +10 -0
- package/lib/components/tag/tag.module.d.ts +10 -0
- package/lib/components/value/components/menu-value.component.d.ts +15 -0
- package/lib/components/value/components/value-list.component.d.ts +7 -0
- package/lib/components/value/index.d.ts +3 -0
- package/lib/components/value/types/base-type.d.ts +19 -0
- package/lib/components/value/types/value.d.ts +9 -0
- package/lib/components/value/utils/currency-amount-value-to-string.d.ts +8 -0
- package/lib/components/value/utils/datetime-value-to-string.d.ts +4 -0
- package/lib/components/value/utils/unknown-to-string.d.ts +1 -0
- package/lib/components/value/utils/value-to-string.d.ts +2 -0
- package/lib/components/value/value.component.d.ts +27 -0
- package/lib/directives/highlight.directive.d.ts +15 -0
- package/lib/directives/index.d.ts +2 -0
- package/lib/directives/tooltip.directive.d.ts +1 -0
- package/lib/index.d.ts +6 -0
- package/lib/pipes/amount-currency.pipe.d.ts +10 -0
- package/lib/pipes/enum-key-values.pipe.d.ts +10 -0
- package/lib/pipes/enum-key.pipe.d.ts +8 -0
- package/lib/pipes/enum-keys.pipe.d.ts +7 -0
- package/lib/pipes/humanized-duration.pipe.d.ts +13 -0
- package/lib/pipes/index.d.ts +8 -0
- package/lib/pipes/inline-json.pipe.d.ts +7 -0
- package/lib/pipes/pipes.module.d.ts +14 -0
- package/lib/pipes/select.pipe.d.ts +12 -0
- package/lib/services/config/config.service.d.ts +12 -0
- package/lib/services/config/index.d.ts +1 -0
- package/lib/services/fetch-superclass/fetch-superclass.d.ts +39 -0
- package/lib/services/fetch-superclass/index.d.ts +1 -0
- package/lib/services/index.d.ts +5 -0
- package/lib/services/log/index.d.ts +2 -0
- package/lib/services/log/log-error.d.ts +12 -0
- package/lib/services/log/log.module.d.ts +7 -0
- package/lib/services/log/notify-log.service.d.ts +17 -0
- package/lib/services/log/types/operation.d.ts +1 -0
- package/lib/services/query-params/index.d.ts +4 -0
- package/lib/services/query-params/query-params.module.d.ts +6 -0
- package/lib/services/query-params/query-params.service.d.ts +37 -0
- package/lib/services/query-params/types/serializer.d.ts +6 -0
- package/lib/services/query-params/utils/date-query-params-serializers.d.ts +2 -0
- package/lib/services/query-params/utils/deserialize-query-param.d.ts +2 -0
- package/lib/services/query-params/utils/index.d.ts +2 -0
- package/lib/services/query-params/utils/query-params-serializers.d.ts +3 -0
- package/lib/services/query-params/utils/serialize-query-param.d.ts +2 -0
- package/lib/services/url.service.d.ts +12 -0
- package/lib/styles/index.d.ts +1 -0
- package/lib/styles/types/color.d.ts +4 -0
- package/lib/types/progressable.d.ts +3 -0
- package/lib/utils/async/async-transform.d.ts +20 -0
- package/lib/utils/async/get-possibly-async-observable.d.ts +3 -0
- package/lib/utils/async/index.d.ts +3 -0
- package/lib/utils/async/is-async.d.ts +4 -0
- package/lib/utils/clean/clean.d.ts +2 -0
- package/lib/utils/clean/index.d.ts +1 -0
- package/lib/utils/compare/compare-different-types.d.ts +4 -0
- package/lib/utils/compare/index.d.ts +1 -0
- package/lib/utils/component/component-changes.d.ts +8 -0
- package/lib/utils/component/index.d.ts +1 -0
- package/lib/utils/csv/create-csv.d.ts +1 -0
- package/lib/utils/csv/index.d.ts +1 -0
- package/lib/utils/currency/format-currency.d.ts +1 -0
- package/lib/utils/currency/get-currency-exponent.d.ts +1 -0
- package/lib/utils/currency/index.d.ts +4 -0
- package/lib/utils/currency/to-major.d.ts +2 -0
- package/lib/utils/currency/to-minor.d.ts +2 -0
- package/lib/utils/date/get-no-time-zone-iso-string.d.ts +2 -0
- package/lib/utils/date/index.d.ts +1 -0
- package/lib/utils/decorators/debounce-time.d.ts +1 -0
- package/lib/utils/decorators/index.d.ts +1 -0
- package/lib/utils/empty/index.d.ts +3 -0
- package/lib/utils/empty/is-empty-primitive.d.ts +1 -0
- package/lib/utils/empty/is-empty.d.ts +1 -0
- package/lib/utils/empty/types/nil.d.ts +1 -0
- package/lib/utils/enum/get-enum-keys.d.ts +10 -0
- package/lib/utils/enum/index.d.ts +2 -0
- package/lib/utils/enum/types/enum.d.ts +2 -0
- package/lib/utils/enum/types/union-enum.d.ts +2 -0
- package/lib/utils/file/download-file.d.ts +8 -0
- package/lib/utils/file/index.d.ts +1 -0
- package/lib/utils/form/create-controls.d.ts +4 -0
- package/lib/utils/form/form-wrappers/abstract-control-superclass.d.ts +17 -0
- package/lib/utils/form/form-wrappers/form-component-superclass.directive.d.ts +14 -0
- package/lib/utils/form/form-wrappers/form-control-superclass.directive.d.ts +8 -0
- package/lib/utils/form/form-wrappers/form-group-superclass.directive.d.ts +11 -0
- package/lib/utils/form/form-wrappers/index.d.ts +5 -0
- package/lib/utils/form/form-wrappers/utils/create-control-providers.d.ts +2 -0
- package/lib/utils/form/form-wrappers/utils/get-errors-tree.d.ts +6 -0
- package/lib/utils/form/form-wrappers/utils/provide-validators.d.ts +2 -0
- package/lib/utils/form/form-wrappers/utils/provide-value-accessor.d.ts +2 -0
- package/lib/utils/form/get-valid-value-changes.d.ts +3 -0
- package/lib/utils/form/get-value-changes.d.ts +3 -0
- package/lib/utils/form/get-value.d.ts +2 -0
- package/lib/utils/form/has-controls.d.ts +2 -0
- package/lib/utils/form/index.d.ts +8 -0
- package/lib/utils/form/set-disabled.d.ts +2 -0
- package/lib/utils/form/types/form-group-by-value.d.ts +4 -0
- package/lib/utils/import/get-import-value.d.ts +2 -0
- package/lib/utils/import/index.d.ts +1 -0
- package/lib/utils/index.d.ts +18 -0
- package/lib/utils/json/index.d.ts +1 -0
- package/lib/utils/json/inline-json.d.ts +1 -0
- package/lib/utils/object/count-changed.d.ts +3 -0
- package/lib/utils/object/count-props.d.ts +1 -0
- package/lib/utils/object/index.d.ts +3 -0
- package/lib/utils/object/select.d.ts +3 -0
- package/lib/utils/operators/async-start-with.d.ts +2 -0
- package/lib/utils/operators/debounce-time-with-first.d.ts +2 -0
- package/lib/utils/operators/fork-join-to-result.d.ts +20 -0
- package/lib/utils/operators/get-observable.d.ts +3 -0
- package/lib/utils/operators/handle-error.d.ts +3 -0
- package/lib/utils/operators/in-progress-from.d.ts +2 -0
- package/lib/utils/operators/index.d.ts +8 -0
- package/lib/utils/operators/pass-error.d.ts +2 -0
- package/lib/utils/operators/progress-to.d.ts +2 -0
- package/lib/utils/operators/switch-combine-with.d.ts +6 -0
- package/lib/utils/string/index.d.ts +1 -0
- package/lib/utils/string/split-by-separators.d.ts +1 -0
- package/lib/utils/transform-attribute/array-attribute.d.ts +3 -0
- package/lib/utils/transform-attribute/index.d.ts +1 -0
- package/package.json +44 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export declare function clean<T extends ReadonlyArray<any> | ArrayLike<any> | Record<any, any>, TAllowRootRemoval extends boolean = false>(obj: T, allowRootRemoval?: TAllowRootRemoval, isNotDeep?: boolean, filterPredicate?: (v: unknown, k?: PropertyKey) => boolean): TAllowRootRemoval extends true ? T | null : T;
|
|
2
|
+
export declare function cleanPrimitiveProps<T extends object>(obj: T, allowRootRemoval?: boolean, isNotDeep?: boolean): T | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './clean';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './compare-different-types';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { SimpleChange } from '@angular/core';
|
|
2
|
+
export interface ComponentChange<T, P extends keyof T> extends Omit<SimpleChange, 'previousValue' | 'currentValue'> {
|
|
3
|
+
previousValue: T[P];
|
|
4
|
+
currentValue: T[P];
|
|
5
|
+
}
|
|
6
|
+
export type ComponentChanges<T> = {
|
|
7
|
+
[P in keyof T]?: ComponentChange<T, P>;
|
|
8
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './component-changes';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function createCsv(data: unknown[]): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './create-csv';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function formatCurrency(amount: number, currencyCode?: string, format?: 'short' | 'long', locale?: string, exponent?: number, isMajor?: boolean): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getCurrencyExponent: (currencyCode: string) => number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './get-no-time-zone-iso-string';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function DebounceTime(ms?: number): (target: object, propertyKey: PropertyKey, descriptor: PropertyDescriptor) => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './debounce-time';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function isEmptyPrimitive(value: unknown): boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function isEmpty(value: unknown): boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type Nil = null | undefined;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ValuesType } from 'utility-types';
|
|
2
|
+
export declare function getEnumEntries<E extends Record<PropertyKey, unknown>>(srcEnum: E): [key: keyof E, value: ValuesType<E>][];
|
|
3
|
+
export declare function getEnumKeyValues<E extends Record<PropertyKey, unknown>>(srcEnum: E): {
|
|
4
|
+
key: keyof E;
|
|
5
|
+
value: ValuesType<E>;
|
|
6
|
+
}[];
|
|
7
|
+
export declare function getEnumKeys<E extends Record<PropertyKey, unknown>>(srcEnum: E): (keyof E)[];
|
|
8
|
+
export declare function getEnumValues<E extends Record<PropertyKey, unknown>>(srcEnum: E): ValuesType<E>[];
|
|
9
|
+
export declare function getEnumKey<E extends Record<PropertyKey, unknown>>(srcEnum: E, value: ValuesType<E>): keyof E;
|
|
10
|
+
export declare function enumHasValue<E extends Record<PropertyKey, unknown>>(srcEnum: E, value: ValuesType<E> | string): value is ValuesType<E>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './download-file';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { AbstractControl, ValidationErrors, Validator } from '@angular/forms';
|
|
3
|
+
import { WrappedControlSuperclass } from '@s-libs/ng-core';
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare abstract class AbstractControlSuperclass<OuterType, InnerType = OuterType> extends WrappedControlSuperclass<OuterType, InnerType> implements Validator, OnInit {
|
|
7
|
+
private _cdr;
|
|
8
|
+
private _destroyRef;
|
|
9
|
+
ngOnInit(): void;
|
|
10
|
+
validate(_control: AbstractControl): ValidationErrors | null;
|
|
11
|
+
registerOnValidatorChange(fn: () => void): void;
|
|
12
|
+
protected setUpInnerToOuterErrors$(): Observable<ValidationErrors>;
|
|
13
|
+
protected setUpOuterToInnerErrors$(): Observable<ValidationErrors>;
|
|
14
|
+
private onValidatorChange;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AbstractControlSuperclass<any, any>, never>;
|
|
16
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractControlSuperclass<any, any>, never, never, {}, {}, never, never, true, never>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { AbstractControl, ValidationErrors, Validator } from '@angular/forms';
|
|
3
|
+
import { FormComponentSuperclass as BaseFormComponentSuperclass } from '@s-libs/ng-core';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare abstract class FormComponentSuperclass<OuterType> extends BaseFormComponentSuperclass<OuterType> implements Validator, OnInit {
|
|
6
|
+
private _cdr;
|
|
7
|
+
private _destroyRef;
|
|
8
|
+
validate(_control: AbstractControl): ValidationErrors | null;
|
|
9
|
+
ngOnInit(): void;
|
|
10
|
+
registerOnValidatorChange(fn: () => void): void;
|
|
11
|
+
private onValidatorChange;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormComponentSuperclass<any>, never>;
|
|
13
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FormComponentSuperclass<any>, never, never, {}, {}, never, never, true, never>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { FormControl } from '@angular/forms';
|
|
2
|
+
import { AbstractControlSuperclass } from './abstract-control-superclass';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class FormControlSuperclass<OuterType, InnerType = OuterType> extends AbstractControlSuperclass<OuterType, InnerType> {
|
|
5
|
+
control: FormControl<InnerType>;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormControlSuperclass<any, any>, never>;
|
|
7
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FormControlSuperclass<any, any>, never, never, {}, {}, never, never, true, never>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { AbstractControlSuperclass } from './abstract-control-superclass';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare abstract class FormGroupSuperclass<OuterType, InnerType = OuterType> extends AbstractControlSuperclass<OuterType, InnerType> implements OnInit {
|
|
5
|
+
protected emptyValue: InnerType;
|
|
6
|
+
setDisabledState(_isDisabled: boolean): void;
|
|
7
|
+
ngOnInit(): void;
|
|
8
|
+
protected outerToInnerValue(outer: OuterType): InnerType;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormGroupSuperclass<any, any>, never>;
|
|
10
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FormGroupSuperclass<any, any>, never, never, {}, {}, never, never, true, never>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { AbstractControl, ValidationErrors } from '@angular/forms';
|
|
2
|
+
/**
|
|
3
|
+
* FormGroup/FormArray don't return internal control errors,
|
|
4
|
+
* so you need to get internal errors manually
|
|
5
|
+
*/
|
|
6
|
+
export declare function getErrorsTree(control: AbstractControl): ValidationErrors | null;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from './get-value-changes';
|
|
2
|
+
export * from './form-wrappers';
|
|
3
|
+
export * from './get-valid-value-changes';
|
|
4
|
+
export * from './set-disabled';
|
|
5
|
+
export * from './has-controls';
|
|
6
|
+
export * from './get-value';
|
|
7
|
+
export * from './types/form-group-by-value';
|
|
8
|
+
export * from './create-controls';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './get-import-value';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export * from './json';
|
|
2
|
+
export * from './string';
|
|
3
|
+
export * from './operators';
|
|
4
|
+
export * from './component';
|
|
5
|
+
export * from './form';
|
|
6
|
+
export * from './date';
|
|
7
|
+
export * from './currency';
|
|
8
|
+
export * from './object';
|
|
9
|
+
export * from './enum';
|
|
10
|
+
export * from './async';
|
|
11
|
+
export * from './clean';
|
|
12
|
+
export * from './empty';
|
|
13
|
+
export * from './compare';
|
|
14
|
+
export * from './import';
|
|
15
|
+
export * from './file';
|
|
16
|
+
export * from './csv';
|
|
17
|
+
export * from './transform-attribute';
|
|
18
|
+
export * from './decorators';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './inline-json';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function inlineJson(value: unknown, maxReadableLever?: number, readableKeys?: boolean, level?: number): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function countProps(...objects: object[]): number;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
export type SelectFn<TObject extends object = object, TResult = unknown, TParams extends Array<unknown> = []> = string | ((obj: TObject, ...params: TParams) => Observable<TResult> | TResult);
|
|
3
|
+
export declare function select<TObject extends object, TResult, TParams extends Array<unknown> = []>(obj: TObject, selectFn: SelectFn<TObject, TResult, TParams>, defaultValue?: TResult, restParams?: TParams[]): TResult | Observable<TResult>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Observable, Subject } from 'rxjs';
|
|
2
|
+
import { Overwrite } from 'utility-types';
|
|
3
|
+
export interface ForkJoinResult<T, D = never> {
|
|
4
|
+
index: number;
|
|
5
|
+
data: D;
|
|
6
|
+
hasError: boolean;
|
|
7
|
+
result?: T;
|
|
8
|
+
error?: unknown;
|
|
9
|
+
}
|
|
10
|
+
export type ForkJoinSucceededResult<T, D = never> = Omit<Overwrite<ForkJoinResult<T, D>, {
|
|
11
|
+
hasError: false;
|
|
12
|
+
result: T;
|
|
13
|
+
}>, 'error'>;
|
|
14
|
+
export type ForkJoinErrorResult<D = never> = Omit<Overwrite<ForkJoinResult<never, D>, {
|
|
15
|
+
hasError: true;
|
|
16
|
+
error: unknown;
|
|
17
|
+
}>, 'result'>;
|
|
18
|
+
export declare function forkJoinToResult<T, D = never>(sources: Observable<T>[], progress$?: Subject<number>, dataItems?: D[], concurrency?: number): Observable<ForkJoinResult<T, D>[]>;
|
|
19
|
+
export declare function isResultsHasError<T, D>(res: ForkJoinResult<T, D>[]): boolean;
|
|
20
|
+
export declare function splitResultsErrors<T, D>(res: ForkJoinResult<T, D>[]): [succeeded: ForkJoinSucceededResult<T, D>[], errors: ForkJoinErrorResult<D>[]];
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from './progress-to';
|
|
2
|
+
export * from './in-progress-from';
|
|
3
|
+
export * from './pass-error';
|
|
4
|
+
export * from './fork-join-to-result';
|
|
5
|
+
export * from './switch-combine-with';
|
|
6
|
+
export * from './debounce-time-with-first';
|
|
7
|
+
export * from './handle-error';
|
|
8
|
+
export * from './async-start-with';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { PossiblyAsync } from '../async';
|
|
3
|
+
export type ProjectInputs<R extends readonly unknown[]> = {
|
|
4
|
+
[K in keyof R]: PossiblyAsync<R[K]>;
|
|
5
|
+
};
|
|
6
|
+
export declare function switchCombineWith<T, R extends readonly unknown[]>(project: (value: T, index: number) => readonly [...ProjectInputs<R>]): (src$: Observable<T>) => Observable<[T, ...R]>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './split-by-separators';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function splitBySeparators(ids: string, separators?: string): string[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './array-attribute';
|
package/package.json
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@vality/matez",
|
|
3
|
+
"version": "19.0.1-pr-423-667df70.0",
|
|
4
|
+
"exports": {
|
|
5
|
+
".": {
|
|
6
|
+
"sass": "./_index.scss",
|
|
7
|
+
"types": "./index.d.ts",
|
|
8
|
+
"default": "./fesm2022/vality-matez.mjs"
|
|
9
|
+
},
|
|
10
|
+
"./package.json": {
|
|
11
|
+
"default": "./package.json"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"peerDependencies": {
|
|
15
|
+
"@angular/cdk": "^19.0.0",
|
|
16
|
+
"@angular/common": "^19.0.0",
|
|
17
|
+
"@angular/core": "^19.0.0",
|
|
18
|
+
"@angular/forms": "^19.0.0",
|
|
19
|
+
"@angular/material": "^19.0.0",
|
|
20
|
+
"@angular/material-date-fns-adapter": "^19.0.0",
|
|
21
|
+
"@angular/router": "^19.0.0",
|
|
22
|
+
"@types/lodash-es": "^4.0.0",
|
|
23
|
+
"date-fns": "^3.0.0",
|
|
24
|
+
"lodash-es": "^4.0.0",
|
|
25
|
+
"rxjs": "^7.0.0",
|
|
26
|
+
"utility-types": "^3.0.0"
|
|
27
|
+
},
|
|
28
|
+
"dependencies": {
|
|
29
|
+
"@dinero.js/currencies": "^2.0.0-alpha.14",
|
|
30
|
+
"@ng-matero/extensions": "^19.0.0",
|
|
31
|
+
"@s-libs/js-core": "^18.0.0",
|
|
32
|
+
"@s-libs/micro-dash": "^18.0.0",
|
|
33
|
+
"@s-libs/ng-core": "^18.0.0",
|
|
34
|
+
"@s-libs/rxjs-core": "^18.0.0",
|
|
35
|
+
"papaparse": "^5.4.1",
|
|
36
|
+
"tslib": "^2.3.0"
|
|
37
|
+
},
|
|
38
|
+
"sideEffects": false,
|
|
39
|
+
"publishConfig": {
|
|
40
|
+
"access": "public"
|
|
41
|
+
},
|
|
42
|
+
"module": "fesm2022/vality-matez.mjs",
|
|
43
|
+
"typings": "index.d.ts"
|
|
44
|
+
}
|