@vality/matez 19.0.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.
Files changed (270) hide show
  1. package/README.md +8 -0
  2. package/_index.scss +9 -0
  3. package/fesm2022/vality-matez.mjs +3809 -0
  4. package/fesm2022/vality-matez.mjs.map +1 -0
  5. package/index.d.ts +1 -0
  6. package/lib/components/actions/actions.component.d.ts +5 -0
  7. package/lib/components/actions/actions.module.d.ts +7 -0
  8. package/lib/components/actions/index.d.ts +2 -0
  9. package/lib/components/confirm-dialog/confirm-dialog.component.d.ts +16 -0
  10. package/lib/components/confirm-dialog/confirm-dialog.module.d.ts +14 -0
  11. package/lib/components/confirm-dialog/index.d.ts +2 -0
  12. package/lib/components/content-loading/content-loading.component.d.ts +8 -0
  13. package/lib/components/content-loading/index.d.ts +1 -0
  14. package/lib/components/date-range-field/date-range-field.component.d.ts +16 -0
  15. package/lib/components/date-range-field/date-range-field.module.d.ts +13 -0
  16. package/lib/components/date-range-field/index.d.ts +5 -0
  17. package/lib/components/date-range-field/types/date-range.d.ts +4 -0
  18. package/lib/components/date-range-field/utils/create-date-range-to-today.d.ts +2 -0
  19. package/lib/components/date-range-field/utils/is-equal-date-range.d.ts +2 -0
  20. package/lib/components/datetime-field/datetime-field.component.d.ts +19 -0
  21. package/lib/components/datetime-field/datetime-field.module.d.ts +11 -0
  22. package/lib/components/datetime-field/index.d.ts +2 -0
  23. package/lib/components/dialog/components/dialog-actions/dialog-actions.component.d.ts +5 -0
  24. package/lib/components/dialog/dialog.component.d.ts +28 -0
  25. package/lib/components/dialog/dialog.module.d.ts +16 -0
  26. package/lib/components/dialog/index.d.ts +8 -0
  27. package/lib/components/dialog/services/dialog.service.d.ts +23 -0
  28. package/lib/components/dialog/tokens.d.ts +8 -0
  29. package/lib/components/dialog/types/dialog-response-status.d.ts +5 -0
  30. package/lib/components/dialog/types/dialog-response.d.ts +6 -0
  31. package/lib/components/dialog/utils/dialog-superclass.d.ts +13 -0
  32. package/lib/components/error-page/error-page-routing.module.d.ts +7 -0
  33. package/lib/components/error-page/error-page.component.d.ts +5 -0
  34. package/lib/components/error-page/error-page.module.d.ts +9 -0
  35. package/lib/components/error-page/index.d.ts +2 -0
  36. package/lib/components/file-upload/file-upload.component.d.ts +14 -0
  37. package/lib/components/file-upload/file-upload.module.d.ts +9 -0
  38. package/lib/components/file-upload/index.d.ts +3 -0
  39. package/lib/components/file-upload/utils/load-file-content.d.ts +3 -0
  40. package/lib/components/filters/components/filters-dialog/filters-dialog.component.d.ts +10 -0
  41. package/lib/components/filters/components/main-filters/main-filters.directive.d.ts +8 -0
  42. package/lib/components/filters/components/more-filters-button/more-filters-button.component.d.ts +7 -0
  43. package/lib/components/filters/components/other-filters/other-filters.directive.d.ts +8 -0
  44. package/lib/components/filters/filters.component.d.ts +29 -0
  45. package/lib/components/filters/filters.module.d.ts +19 -0
  46. package/lib/components/filters/index.d.ts +5 -0
  47. package/lib/components/index.d.ts +18 -0
  48. package/lib/components/input-field/index.d.ts +2 -0
  49. package/lib/components/input-field/input-field.component.d.ts +14 -0
  50. package/lib/components/input-field/input-field.module.d.ts +12 -0
  51. package/lib/components/list-field/index.d.ts +2 -0
  52. package/lib/components/list-field/list-field.component.d.ts +12 -0
  53. package/lib/components/list-field/list-field.module.d.ts +10 -0
  54. package/lib/components/nav/index.d.ts +1 -0
  55. package/lib/components/nav/nav.component.d.ts +16 -0
  56. package/lib/components/number-range-field/index.d.ts +2 -0
  57. package/lib/components/number-range-field/number-range-field.component.d.ts +18 -0
  58. package/lib/components/number-range-field/number-range-field.module.d.ts +9 -0
  59. package/lib/components/progress/index.d.ts +3 -0
  60. package/lib/components/progress/progress.component.d.ts +9 -0
  61. package/lib/components/progress/progress.module.d.ts +9 -0
  62. package/lib/components/progress/utils/get-progress-by-count.d.ts +1 -0
  63. package/lib/components/select-autocomplete/autocomplete-field/autocomplete-field.component.d.ts +23 -0
  64. package/lib/components/select-autocomplete/autocomplete-field/autocomplete-field.module.d.ts +13 -0
  65. package/lib/components/select-autocomplete/autocomplete-field/index.d.ts +2 -0
  66. package/lib/components/select-autocomplete/index.d.ts +3 -0
  67. package/lib/components/select-autocomplete/select-field/index.d.ts +2 -0
  68. package/lib/components/select-autocomplete/select-field/select-field.component.d.ts +26 -0
  69. package/lib/components/select-autocomplete/select-field/select-field.module.d.ts +12 -0
  70. package/lib/components/select-autocomplete/types/index.d.ts +1 -0
  71. package/lib/components/select-autocomplete/types/option.d.ts +6 -0
  72. package/lib/components/select-autocomplete/utils/find-option-by-value.d.ts +2 -0
  73. package/lib/components/select-autocomplete/utils/get-hint-text.d.ts +5 -0
  74. package/lib/components/select-autocomplete/utils/index.d.ts +2 -0
  75. package/lib/components/select-autocomplete/utils/search-options.d.ts +3 -0
  76. package/lib/components/switch-button/index.d.ts +2 -0
  77. package/lib/components/switch-button/switch-button.component.d.ts +24 -0
  78. package/lib/components/switch-button/switch-button.module.d.ts +11 -0
  79. package/lib/components/table/components/base-column.component.d.ts +17 -0
  80. package/lib/components/table/components/customize/customize.component.d.ts +17 -0
  81. package/lib/components/table/components/dnd-column.component.d.ts +7 -0
  82. package/lib/components/table/components/infinity-scroll.directive.d.ts +12 -0
  83. package/lib/components/table/components/no-records.component.d.ts +7 -0
  84. package/lib/components/table/components/select-column.component.d.ts +21 -0
  85. package/lib/components/table/components/table-actions.component.d.ts +5 -0
  86. package/lib/components/table/components/table-info-bar/table-info-bar.component.d.ts +33 -0
  87. package/lib/components/table/components/table-inputs.component.d.ts +5 -0
  88. package/lib/components/table/components/table-progress-bar.component.d.ts +6 -0
  89. package/lib/components/table/consts.d.ts +8 -0
  90. package/lib/components/table/index.d.ts +10 -0
  91. package/lib/components/table/presets/create-menu-column.d.ts +6 -0
  92. package/lib/components/table/presets/index.d.ts +1 -0
  93. package/lib/components/table/table.component.d.ts +81 -0
  94. package/lib/components/table/table.module.d.ts +34 -0
  95. package/lib/components/table/tree-data/index.d.ts +2 -0
  96. package/lib/components/table/tree-data/tree-data-item-to-inline-data-item.d.ts +10 -0
  97. package/lib/components/table/tree-data/tree-data.d.ts +10 -0
  98. package/lib/components/table/types/column.d.ts +34 -0
  99. package/lib/components/table/types/drag-drop.d.ts +10 -0
  100. package/lib/components/table/types/index.d.ts +3 -0
  101. package/lib/components/table/types/update-options.d.ts +3 -0
  102. package/lib/components/table/utils/cached-head-map.d.ts +2 -0
  103. package/lib/components/table/utils/correct-priorities.d.ts +5 -0
  104. package/lib/components/table/utils/create-column.d.ts +6 -0
  105. package/lib/components/table/utils/create-intersection-observer.d.ts +2 -0
  106. package/lib/components/table/utils/create-unique-column-def.d.ts +1 -0
  107. package/lib/components/table/utils/filter-sort.d.ts +14 -0
  108. package/lib/components/table/utils/normalize-string.d.ts +2 -0
  109. package/lib/components/table/utils/table-data-source.d.ts +31 -0
  110. package/lib/components/table/utils/table-to-csv-object.d.ts +3 -0
  111. package/lib/components/table/utils/to-columns-data.d.ts +26 -0
  112. package/lib/components/tag/index.d.ts +2 -0
  113. package/lib/components/tag/tag.component.d.ts +10 -0
  114. package/lib/components/tag/tag.module.d.ts +10 -0
  115. package/lib/components/value/components/menu-value.component.d.ts +15 -0
  116. package/lib/components/value/components/toggle-value.component.d.ts +8 -0
  117. package/lib/components/value/components/value-list.component.d.ts +7 -0
  118. package/lib/components/value/index.d.ts +4 -0
  119. package/lib/components/value/types/base-type.d.ts +21 -0
  120. package/lib/components/value/types/value.d.ts +10 -0
  121. package/lib/components/value/utils/currency-amount-value-to-string.d.ts +8 -0
  122. package/lib/components/value/utils/datetime-value-to-string.d.ts +4 -0
  123. package/lib/components/value/utils/unknown-to-string.d.ts +1 -0
  124. package/lib/components/value/utils/value-to-string.d.ts +2 -0
  125. package/lib/components/value/value.component.d.ts +27 -0
  126. package/lib/directives/highlight.directive.d.ts +15 -0
  127. package/lib/directives/index.d.ts +2 -0
  128. package/lib/directives/tooltip.directive.d.ts +1 -0
  129. package/lib/index.d.ts +6 -0
  130. package/lib/pipes/amount-currency.pipe.d.ts +10 -0
  131. package/lib/pipes/enum-key-values.pipe.d.ts +10 -0
  132. package/lib/pipes/enum-key.pipe.d.ts +8 -0
  133. package/lib/pipes/enum-keys.pipe.d.ts +7 -0
  134. package/lib/pipes/humanized-duration.pipe.d.ts +13 -0
  135. package/lib/pipes/index.d.ts +8 -0
  136. package/lib/pipes/inline-json.pipe.d.ts +7 -0
  137. package/lib/pipes/pipes.module.d.ts +14 -0
  138. package/lib/pipes/select.pipe.d.ts +12 -0
  139. package/lib/services/config/config.service.d.ts +12 -0
  140. package/lib/services/config/index.d.ts +1 -0
  141. package/lib/services/fetch-superclass/fetch-superclass.d.ts +39 -0
  142. package/lib/services/fetch-superclass/index.d.ts +1 -0
  143. package/lib/services/index.d.ts +5 -0
  144. package/lib/services/log/index.d.ts +2 -0
  145. package/lib/services/log/log-error.d.ts +12 -0
  146. package/lib/services/log/log.module.d.ts +7 -0
  147. package/lib/services/log/notify-log.service.d.ts +17 -0
  148. package/lib/services/log/types/operation.d.ts +1 -0
  149. package/lib/services/query-params/index.d.ts +4 -0
  150. package/lib/services/query-params/query-params.module.d.ts +6 -0
  151. package/lib/services/query-params/query-params.service.d.ts +37 -0
  152. package/lib/services/query-params/types/serializer.d.ts +6 -0
  153. package/lib/services/query-params/utils/date-query-params-serializers.d.ts +2 -0
  154. package/lib/services/query-params/utils/deserialize-query-param.d.ts +2 -0
  155. package/lib/services/query-params/utils/index.d.ts +2 -0
  156. package/lib/services/query-params/utils/query-params-serializers.d.ts +3 -0
  157. package/lib/services/query-params/utils/serialize-query-param.d.ts +2 -0
  158. package/lib/services/url.service.d.ts +12 -0
  159. package/lib/styles/index.d.ts +1 -0
  160. package/lib/styles/types/color.d.ts +4 -0
  161. package/lib/types/progressable.d.ts +3 -0
  162. package/lib/utils/async/async-transform.d.ts +20 -0
  163. package/lib/utils/async/get-possibly-async-observable.d.ts +3 -0
  164. package/lib/utils/async/index.d.ts +3 -0
  165. package/lib/utils/async/is-async.d.ts +4 -0
  166. package/lib/utils/clean/clean.d.ts +2 -0
  167. package/lib/utils/clean/index.d.ts +1 -0
  168. package/lib/utils/compare/compare-different-types.d.ts +4 -0
  169. package/lib/utils/compare/index.d.ts +1 -0
  170. package/lib/utils/component/component-changes.d.ts +8 -0
  171. package/lib/utils/component/index.d.ts +1 -0
  172. package/lib/utils/create-storage-value.d.ts +11 -0
  173. package/lib/utils/csv/create-csv.d.ts +1 -0
  174. package/lib/utils/csv/index.d.ts +3 -0
  175. package/lib/utils/csv/parse-csv.d.ts +2 -0
  176. package/lib/utils/csv/utils/remove-line-breaks.d.ts +1 -0
  177. package/lib/utils/csv/utils/unify-csv-items.d.ts +1 -0
  178. package/lib/utils/currency/format-currency.d.ts +1 -0
  179. package/lib/utils/currency/get-currency-exponent.d.ts +1 -0
  180. package/lib/utils/currency/index.d.ts +4 -0
  181. package/lib/utils/currency/to-major.d.ts +2 -0
  182. package/lib/utils/currency/to-minor.d.ts +2 -0
  183. package/lib/utils/date/get-no-time-zone-iso-string.d.ts +2 -0
  184. package/lib/utils/date/index.d.ts +1 -0
  185. package/lib/utils/decorators/debounce-time.d.ts +1 -0
  186. package/lib/utils/decorators/index.d.ts +1 -0
  187. package/lib/utils/empty/index.d.ts +3 -0
  188. package/lib/utils/empty/is-empty-primitive.d.ts +1 -0
  189. package/lib/utils/empty/is-empty.d.ts +1 -0
  190. package/lib/utils/empty/types/nil.d.ts +1 -0
  191. package/lib/utils/enum/get-enum-keys.d.ts +11 -0
  192. package/lib/utils/enum/index.d.ts +2 -0
  193. package/lib/utils/enum/types/enum.d.ts +2 -0
  194. package/lib/utils/enum/types/union-enum.d.ts +2 -0
  195. package/lib/utils/file/download-file.d.ts +8 -0
  196. package/lib/utils/file/index.d.ts +1 -0
  197. package/lib/utils/form/create-controls.d.ts +4 -0
  198. package/lib/utils/form/form-wrappers/abstract-control-superclass.d.ts +17 -0
  199. package/lib/utils/form/form-wrappers/form-component-superclass.directive.d.ts +14 -0
  200. package/lib/utils/form/form-wrappers/form-control-superclass.directive.d.ts +8 -0
  201. package/lib/utils/form/form-wrappers/form-group-superclass.directive.d.ts +11 -0
  202. package/lib/utils/form/form-wrappers/index.d.ts +5 -0
  203. package/lib/utils/form/form-wrappers/utils/create-control-providers.d.ts +2 -0
  204. package/lib/utils/form/form-wrappers/utils/get-errors-tree.d.ts +6 -0
  205. package/lib/utils/form/form-wrappers/utils/provide-validators.d.ts +2 -0
  206. package/lib/utils/form/form-wrappers/utils/provide-value-accessor.d.ts +2 -0
  207. package/lib/utils/form/get-valid-value-changes.d.ts +3 -0
  208. package/lib/utils/form/get-value-changes.d.ts +3 -0
  209. package/lib/utils/form/get-value.d.ts +2 -0
  210. package/lib/utils/form/has-controls.d.ts +2 -0
  211. package/lib/utils/form/index.d.ts +8 -0
  212. package/lib/utils/form/set-disabled.d.ts +2 -0
  213. package/lib/utils/form/types/form-group-by-value.d.ts +4 -0
  214. package/lib/utils/import/get-import-value.d.ts +2 -0
  215. package/lib/utils/import/index.d.ts +1 -0
  216. package/lib/utils/index.d.ts +19 -0
  217. package/lib/utils/json/index.d.ts +1 -0
  218. package/lib/utils/json/inline-json.d.ts +1 -0
  219. package/lib/utils/object/count-changed.d.ts +3 -0
  220. package/lib/utils/object/count-props.d.ts +1 -0
  221. package/lib/utils/object/index.d.ts +3 -0
  222. package/lib/utils/object/select.d.ts +3 -0
  223. package/lib/utils/operators/async-start-with.d.ts +2 -0
  224. package/lib/utils/operators/debounce-time-with-first.d.ts +2 -0
  225. package/lib/utils/operators/fork-join-to-result.d.ts +20 -0
  226. package/lib/utils/operators/get-observable.d.ts +3 -0
  227. package/lib/utils/operators/handle-error.d.ts +3 -0
  228. package/lib/utils/operators/in-progress-from.d.ts +2 -0
  229. package/lib/utils/operators/index.d.ts +8 -0
  230. package/lib/utils/operators/pass-error.d.ts +2 -0
  231. package/lib/utils/operators/progress-to.d.ts +2 -0
  232. package/lib/utils/operators/switch-combine-with.d.ts +6 -0
  233. package/lib/utils/string/index.d.ts +1 -0
  234. package/lib/utils/string/split-by-separators.d.ts +1 -0
  235. package/lib/utils/transform-attribute/array-attribute.d.ts +3 -0
  236. package/lib/utils/transform-attribute/index.d.ts +1 -0
  237. package/package.json +44 -0
  238. package/src/lib/components/actions/actions.component.scss +20 -0
  239. package/src/lib/components/content-loading/content-loading.component.scss +26 -0
  240. package/src/lib/components/date-range-field/date-range-field.component.scss +19 -0
  241. package/src/lib/components/datetime-field/datetime-field.component.scss +11 -0
  242. package/src/lib/components/dialog/_dialog-theme.scss +9 -0
  243. package/src/lib/components/dialog/dialog.component.scss +71 -0
  244. package/src/lib/components/error-page/error-page.component.scss +19 -0
  245. package/src/lib/components/file-upload/file-upload.component.scss +12 -0
  246. package/src/lib/components/filters/components/filters-dialog/filters-dialog.component.scss +19 -0
  247. package/src/lib/components/filters/components/more-filters-button/more-filters-button.component.scss +0 -0
  248. package/src/lib/components/filters/filters.component.scss +23 -0
  249. package/src/lib/components/input-field/_input-field-theme.scss +7 -0
  250. package/src/lib/components/input-field/input-field.component.scss +21 -0
  251. package/src/lib/components/nav/_nav-theme.scss +33 -0
  252. package/src/lib/components/nav/nav.component.scss +32 -0
  253. package/src/lib/components/number-range-field/number-range-field.component.scss +5 -0
  254. package/src/lib/components/select-autocomplete/autocomplete-field/autocomplete-field.component.scss +5 -0
  255. package/src/lib/components/select-autocomplete/select-field/select-field.component.scss +26 -0
  256. package/src/lib/components/table/_table-theme.scss +11 -0
  257. package/src/lib/components/table/components/table-info-bar/table-info-bar.component.scss +45 -0
  258. package/src/lib/components/table/table.component.scss +84 -0
  259. package/src/lib/components/tag/_tag-theme.scss +30 -0
  260. package/src/lib/components/tag/tag.component.scss +40 -0
  261. package/src/lib/components/value/_value-theme.scss +10 -0
  262. package/src/lib/components/value/value.component.scss +42 -0
  263. package/src/lib/styles/_all-component-themes.scss +23 -0
  264. package/src/lib/styles/_app.scss +10 -0
  265. package/src/lib/styles/_core.scss +8 -0
  266. package/src/lib/styles/_mat-component-variants.scss +65 -0
  267. package/src/lib/styles/_select-theme.scss +6 -0
  268. package/src/lib/styles/_typography-hierarchy.scss +37 -0
  269. package/src/lib/styles/_v-tokens.scss +11 -0
  270. package/src/lib/styles/utils/create-palette.scss +84 -0
@@ -0,0 +1,20 @@
1
+ import { OnDestroy } from '@angular/core';
2
+ import { Observable } from 'rxjs';
3
+ import { PossiblyAsync } from './is-async';
4
+ import * as i0 from "@angular/core";
5
+ export type AsyncTransformParameters<TValue = unknown, TParams extends unknown[] = []> = [
6
+ PossiblyAsync<TValue>,
7
+ ...TParams
8
+ ];
9
+ export declare abstract class AsyncTransform<TValue = unknown, TParams extends unknown[] = [], TResult = string | null> implements OnDestroy {
10
+ protected abstract result$: Observable<TResult>;
11
+ protected params$: Observable<[TValue, ...TParams]>;
12
+ private asyncPipe;
13
+ private cdr;
14
+ private args$;
15
+ constructor();
16
+ ngOnDestroy(): void;
17
+ protected asyncTransform(args: AsyncTransformParameters<TValue, TParams>): TResult | null;
18
+ static ɵfac: i0.ɵɵFactoryDeclaration<AsyncTransform<any, any, any>, never>;
19
+ static ɵprov: i0.ɵɵInjectableDeclaration<AsyncTransform<any, any, any>>;
20
+ }
@@ -0,0 +1,3 @@
1
+ import { Observable } from 'rxjs';
2
+ import { PossiblyAsync } from './is-async';
3
+ export declare function getPossiblyAsyncObservable<T>(possiblyAsync: PossiblyAsync<T>): Observable<T>;
@@ -0,0 +1,3 @@
1
+ export * from './async-transform';
2
+ export * from './is-async';
3
+ export * from './get-possibly-async-observable';
@@ -0,0 +1,4 @@
1
+ import { Observable } from 'rxjs';
2
+ export type Async<T> = Observable<T> | Promise<T>;
3
+ export type PossiblyAsync<T> = Async<T> | T;
4
+ export declare function isAsync<T>(value: PossiblyAsync<T>): value is Async<T>;
@@ -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,4 @@
1
+ /**
2
+ * Use with sorting (arr.sort(fn))
3
+ */
4
+ export declare function compareDifferentTypes<T>(a: T, b: T): number;
@@ -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,11 @@
1
+ import { Injector } from '@angular/core';
2
+ export declare function createStorageValue<T>(key: string, { serialize, deserialize, injector, }: {
3
+ serialize?: (v: T) => string | null;
4
+ deserialize: (v: string | null) => T;
5
+ injector?: Injector;
6
+ }): {
7
+ get(): T;
8
+ set(value: T): void;
9
+ value$: import("rxjs").Observable<T>;
10
+ value: import("@angular/core").Signal<T | undefined>;
11
+ };
@@ -0,0 +1 @@
1
+ export declare function createCsv(data: unknown[]): string;
@@ -0,0 +1,3 @@
1
+ export * from './create-csv';
2
+ export * from './parse-csv';
3
+ export * from './utils/unify-csv-items';
@@ -0,0 +1,2 @@
1
+ import papa, { ParseConfig } from 'papaparse';
2
+ export declare function parseCsv(content: string, config?: ParseConfig): papa.ParseResult<any>;
@@ -0,0 +1 @@
1
+ export declare function removeLineBreaks(str: string): string;
@@ -0,0 +1 @@
1
+ export declare function unifyCsvItems<T>(csv: T[] | string[][], defaultProps: readonly (keyof T)[] | (keyof T)[]): T[];
@@ -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,4 @@
1
+ export * from './get-currency-exponent';
2
+ export * from './to-major';
3
+ export * from './to-minor';
4
+ export * from './format-currency';
@@ -0,0 +1,2 @@
1
+ export declare const toMajorByExponent: (amount: number, exponent: number) => number;
2
+ export declare const toMajor: (amount: number, currencyCode: string) => number;
@@ -0,0 +1,2 @@
1
+ export declare const toMinorByExponent: (amount: number, exponent: number) => number;
2
+ export declare const toMinor: (amount: number, currencyCode: string) => number;
@@ -0,0 +1,2 @@
1
+ export declare function getNoTimeZoneIsoString(date?: Date | null): string;
2
+ export declare function createDateFromNoTimeZoneString(dateStr: string): Date;
@@ -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,3 @@
1
+ export * from './is-empty';
2
+ export * from './is-empty-primitive';
3
+ export * from './types/nil';
@@ -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,11 @@
1
+ import { ValuesType } from 'utility-types';
2
+ export type Enum = Record<PropertyKey, unknown>;
3
+ export declare function getEnumEntries<E extends Enum>(srcEnum: E): [key: keyof E, value: ValuesType<E>][];
4
+ export declare function getEnumKeyValues<E extends Enum>(srcEnum: E): {
5
+ key: keyof E;
6
+ value: ValuesType<E>;
7
+ }[];
8
+ export declare function getEnumKeys<E extends Enum>(srcEnum: E): (keyof E)[];
9
+ export declare function getEnumValues<E extends Enum>(srcEnum: E): ValuesType<E>[];
10
+ export declare function getEnumKey<E extends Enum>(srcEnum: E, value: ValuesType<E>): keyof E;
11
+ export declare function enumHasValue<E extends Enum>(srcEnum: E, value: ValuesType<E> | string): value is ValuesType<E>;
@@ -0,0 +1,2 @@
1
+ export * from './get-enum-keys';
2
+ export * from './types/union-enum';
@@ -0,0 +1,2 @@
1
+ export type StringEnum = string;
2
+ export type Enum = StringEnum | number;
@@ -0,0 +1,2 @@
1
+ import { Enum } from './enum';
2
+ export type UnionEnum<T extends Enum> = T | `${T}`;
@@ -0,0 +1,8 @@
1
+ declare const FILE_TYPES: {
2
+ csv: {
3
+ type: string;
4
+ format: string;
5
+ };
6
+ };
7
+ export declare function downloadFile(data: string, type: keyof typeof FILE_TYPES, filename?: string): void;
8
+ export {};
@@ -0,0 +1 @@
1
+ export * from './download-file';
@@ -0,0 +1,4 @@
1
+ import { FormControl } from '@angular/forms';
2
+ export declare function createControls<T extends object>(values: T): {
3
+ [K in keyof T]: FormControl<T[K]>;
4
+ };
@@ -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,5 @@
1
+ export * from './form-group-superclass.directive';
2
+ export * from './utils/create-control-providers';
3
+ export * from './utils/get-errors-tree';
4
+ export * from './form-control-superclass.directive';
5
+ export * from './form-component-superclass.directive';
@@ -0,0 +1,2 @@
1
+ import { Provider, Type } from '@angular/core';
2
+ export declare const createControlProviders: (component: () => Type<unknown>) => Provider[];
@@ -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,2 @@
1
+ import { Provider, Type } from '@angular/core';
2
+ export declare const provideValidators: (component: () => Type<unknown>) => Provider;
@@ -0,0 +1,2 @@
1
+ import { Provider, Type } from '@angular/core';
2
+ export declare const provideValueAccessor: (component: () => Type<unknown>) => Provider;
@@ -0,0 +1,3 @@
1
+ import { AbstractControl } from '@angular/forms';
2
+ import { isEmptyPrimitive } from '../empty/is-empty-primitive';
3
+ export declare function getValidValueChanges(control: AbstractControl, predicate?: typeof isEmptyPrimitive): import("rxjs").Observable<Partial<any>>;
@@ -0,0 +1,3 @@
1
+ import { AbstractControl, FormControlState } from '@angular/forms';
2
+ import { Observable } from 'rxjs';
3
+ export declare function getValueChanges<T>(form: AbstractControl<FormControlState<T> | T>): Observable<T>;
@@ -0,0 +1,2 @@
1
+ import { AbstractControl } from '@angular/forms';
2
+ export declare function getValue<T>(control: AbstractControl<T>): T;
@@ -0,0 +1,2 @@
1
+ import { AbstractControl, FormArray, FormGroup } from '@angular/forms';
2
+ export declare function hasControls(control: AbstractControl): control is FormGroup | FormArray;
@@ -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,2 @@
1
+ import { AbstractControl } from '@angular/forms';
2
+ export declare function setDisabled(control?: AbstractControl, disabled?: boolean, options?: Parameters<AbstractControl['disable']>[0]): void;
@@ -0,0 +1,4 @@
1
+ import { FormControl, FormGroup } from '@angular/forms';
2
+ export type FormGroupByValue<T> = FormGroup<{
3
+ [N in keyof T]: FormControl<T[N]>;
4
+ }>;
@@ -0,0 +1,2 @@
1
+ import { Observable } from 'rxjs';
2
+ export declare function getImportValue<T>(imp: Promise<unknown>, prop?: string): Observable<T>;
@@ -0,0 +1 @@
1
+ export * from './get-import-value';
@@ -0,0 +1,19 @@
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';
19
+ export * from './create-storage-value';
@@ -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,3 @@
1
+ export declare function countChanged<T extends object>(a: T, b: T, predicates?: {
2
+ [K in keyof T]?: (a: T[K], b: T[K]) => number | boolean;
3
+ }): number;
@@ -0,0 +1 @@
1
+ export declare function countProps(...objects: object[]): number;
@@ -0,0 +1,3 @@
1
+ export * from './select';
2
+ export * from './count-props';
3
+ export * from './count-changed';
@@ -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,2 @@
1
+ import { Observable } from 'rxjs';
2
+ export declare function asyncStartWith<V = never>(value?: V, timerMs?: number): <T>(src$: Observable<T>) => Observable<T | V>;
@@ -0,0 +1,2 @@
1
+ import { MonoTypeOperatorFunction } from 'rxjs';
2
+ export declare function debounceTimeWithFirst<T>(duration: number): MonoTypeOperatorFunction<T>;
@@ -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,3 @@
1
+ import { Observable } from 'rxjs';
2
+ export type ObservableOrFn<T = unknown> = (() => Observable<T>) | Observable<T>;
3
+ export declare function getObservable<T>(obsOrFn: ObservableOrFn<T>): Observable<T>;
@@ -0,0 +1,3 @@
1
+ import { MonoTypeOperatorFunction } from 'rxjs';
2
+ import { PossiblyAsync } from '../async';
3
+ export declare function handleError<T>(handler: (err: unknown) => void, result?: PossiblyAsync<T>): MonoTypeOperatorFunction<T>;
@@ -0,0 +1,2 @@
1
+ import { ObservableOrFn } from './get-observable';
2
+ export declare function inProgressFrom(progress: ObservableOrFn<number | boolean> | ObservableOrFn<number | boolean>[], main?: ObservableOrFn, init?: boolean): import("rxjs").Observable<boolean>;
@@ -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,2 @@
1
+ import { MonoTypeOperatorFunction } from 'rxjs';
2
+ export declare function passError<T>(handler: (err: unknown) => void, value?: T): MonoTypeOperatorFunction<T>;
@@ -0,0 +1,2 @@
1
+ import { BehaviorSubject, MonoTypeOperatorFunction } from 'rxjs';
2
+ export declare function progressTo<T>(subject$: BehaviorSubject<number> | (() => BehaviorSubject<number>)): MonoTypeOperatorFunction<T>;
@@ -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,3 @@
1
+ import { Nil } from '../empty';
2
+ export declare function arrayAttribute<T>(value: ArrayAttributeTransform<T>): T[];
3
+ export type ArrayAttributeTransform<T> = T[] | Nil;
@@ -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.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
+ }
@@ -0,0 +1,20 @@
1
+ ::ng-deep .v-actions {
2
+ box-sizing: border-box;
3
+ display: flex;
4
+ flex-wrap: wrap;
5
+ gap: 16px;
6
+
7
+ & > *:first-child:not(:last-child) {
8
+ margin-right: auto;
9
+ }
10
+ & > *:first-child:last-child {
11
+ margin-left: auto;
12
+ }
13
+
14
+ @media screen and (max-width: 600px) {
15
+ & > * {
16
+ margin-left: auto !important;
17
+ margin-right: auto !important;
18
+ }
19
+ }
20
+ }
@@ -0,0 +1,26 @@
1
+ @keyframes content-loading-animation {
2
+ 0% {
3
+ opacity: 1;
4
+ }
5
+
6
+ 50% {
7
+ opacity: 0.4;
8
+ }
9
+
10
+ 100% {
11
+ opacity: 1;
12
+ }
13
+ }
14
+
15
+ .content-loading {
16
+ color: transparent;
17
+ display: inline-block;
18
+ line-height: 100%;
19
+ background-color: rgba(0, 0, 0, 0.08);
20
+ animation: content-loading-animation 1.5s ease-in-out infinite;
21
+
22
+ &__text {
23
+ color: inherit;
24
+ background-color: transparent;
25
+ }
26
+ }
@@ -0,0 +1,19 @@
1
+ :host {
2
+ overflow: hidden;
3
+ }
4
+
5
+ mat-form-field {
6
+ width: 100%;
7
+ }
8
+
9
+ ::ng-deep .mat-mdc-form-field-infix {
10
+ width: auto !important;
11
+ }
12
+
13
+ input {
14
+ text-overflow: ellipsis;
15
+ }
16
+
17
+ .actions {
18
+ width: 100%;
19
+ }
@@ -0,0 +1,11 @@
1
+ .wrapper {
2
+ display: flex;
3
+ gap: 8px;
4
+
5
+ .date {
6
+ flex: 1;
7
+ }
8
+ .time {
9
+ width: 100px;
10
+ }
11
+ }
@@ -0,0 +1,9 @@
1
+ @use '@angular/material' as mat;
2
+
3
+ @mixin theme($theme) {
4
+ .v-dialog {
5
+ .title {
6
+ font: mat.get-theme-typography($theme, headline-medium);
7
+ }
8
+ }
9
+ }