@valtimo/components 13.37.0 → 13.39.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/fesm2022/valtimo-components.mjs +487 -84
- package/fesm2022/valtimo-components.mjs.map +1 -1
- package/lib/components/carbon-list/carbon-list.component.d.ts +57 -3
- package/lib/components/carbon-list/carbon-list.component.d.ts.map +1 -1
- package/lib/directives/tooltip/tooltip.directive.d.ts +3 -2
- package/lib/directives/tooltip/tooltip.directive.d.ts.map +1 -1
- package/lib/directives/valtimo-cds-modal/valtimo-cds-modal.directive.d.ts +9 -0
- package/lib/directives/valtimo-cds-modal/valtimo-cds-modal.directive.d.ts.map +1 -1
- package/lib/modules/custom-formio-component/create-custom-component.d.ts +1 -0
- package/lib/modules/custom-formio-component/create-custom-component.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { AfterViewInit, ElementRef, EventEmitter, OnDestroy, OnInit, TemplateRef } from '@angular/core';
|
|
1
|
+
import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy, OnInit, TemplateRef } from '@angular/core';
|
|
2
2
|
import { FormControl } from '@angular/forms';
|
|
3
3
|
import { TranslateService } from '@ngx-translate/core';
|
|
4
4
|
import { SortState } from '@valtimo/document';
|
|
5
|
+
import { SearchField } from '@valtimo/shared';
|
|
5
6
|
import { IconService, PaginationModel, PaginationTranslations, TableHeaderItem, TableModel } from 'carbon-components-angular';
|
|
6
7
|
import { NGXLogger } from 'ngx-logger';
|
|
7
8
|
import { BehaviorSubject, Observable } from 'rxjs';
|
|
@@ -22,6 +23,7 @@ export declare class CarbonListComponent implements OnInit, AfterViewInit, OnDes
|
|
|
22
23
|
private readonly keyStateService;
|
|
23
24
|
private readonly dragAndDropService;
|
|
24
25
|
private readonly elementRef;
|
|
26
|
+
private readonly cdr;
|
|
25
27
|
actionsMenuTemplate: TemplateRef<any>;
|
|
26
28
|
actionTemplate: TemplateRef<any>;
|
|
27
29
|
booleanTemplate: TemplateRef<any>;
|
|
@@ -34,6 +36,7 @@ export declare class CarbonListComponent implements OnInit, AfterViewInit, OnDes
|
|
|
34
36
|
private _completeDataSource;
|
|
35
37
|
private readonly _items$;
|
|
36
38
|
private readonly _skeletonRowCount$;
|
|
39
|
+
private _skeletonRowCountSet;
|
|
37
40
|
private get _items();
|
|
38
41
|
get items(): CarbonListItem[];
|
|
39
42
|
set items(value: CarbonListItem[]);
|
|
@@ -61,6 +64,12 @@ export declare class CarbonListComponent implements OnInit, AfterViewInit, OnDes
|
|
|
61
64
|
set initialSortState(value: SortState);
|
|
62
65
|
set sortState(value: SortState);
|
|
63
66
|
isSearchable: boolean;
|
|
67
|
+
set initialSearchValue(value: string | null);
|
|
68
|
+
private _initialSearchValue;
|
|
69
|
+
searchActive: boolean;
|
|
70
|
+
searchDebounceMs: number;
|
|
71
|
+
invalidSearchFields: string[];
|
|
72
|
+
searchFields: SearchField[];
|
|
64
73
|
enableSingleSelection: boolean;
|
|
65
74
|
/**
|
|
66
75
|
* @deprecated The lastColumnTemplate field is deprecated. Any template column can be added through the **@Input field**.
|
|
@@ -74,6 +83,16 @@ export declare class CarbonListComponent implements OnInit, AfterViewInit, OnDes
|
|
|
74
83
|
movingRowsEnabled: boolean;
|
|
75
84
|
dragAndDrop: boolean;
|
|
76
85
|
dragAndDropDisabled: boolean;
|
|
86
|
+
expandedRowTemplate: TemplateRef<any>;
|
|
87
|
+
expandedRowKey: string;
|
|
88
|
+
/**
|
|
89
|
+
* Dot-notation path to a stable per-item identity (e.g. `'id'`). When set, a row whose key is
|
|
90
|
+
* unchanged across `items` emissions keeps its DOM: the existing table row and cells are updated
|
|
91
|
+
* in place instead of being torn down and re-created. This prevents visual churn (tooltips,
|
|
92
|
+
* focus, hover state) on polling pages. Defaults to [expandedRowKey] when that is set; without
|
|
93
|
+
* either input, rows are rebuilt on every emission exactly as before.
|
|
94
|
+
*/
|
|
95
|
+
trackByKey: string;
|
|
77
96
|
rowClicked: EventEmitter<any>;
|
|
78
97
|
paginationClicked: EventEmitter<number>;
|
|
79
98
|
paginationSet: EventEmitter<any>;
|
|
@@ -91,13 +110,20 @@ export declare class CarbonListComponent implements OnInit, AfterViewInit, OnDes
|
|
|
91
110
|
skeletonModel: TableModel;
|
|
92
111
|
paginationModel: PaginationModel;
|
|
93
112
|
searchFormControl: FormControl<string>;
|
|
113
|
+
showAutocomplete: boolean;
|
|
114
|
+
filteredSuggestions: SearchField[];
|
|
115
|
+
selectedSuggestionIndex: number;
|
|
116
|
+
autocompleteLeft: number;
|
|
117
|
+
private _lastExecutedSearch;
|
|
118
|
+
private _searchInputElement;
|
|
94
119
|
private static readonly PAGINATION_SIZE;
|
|
95
120
|
private readonly _subscriptions;
|
|
121
|
+
private readonly _expandedRowKeys;
|
|
96
122
|
get selectedItems(): CarbonListItem[];
|
|
97
123
|
private readonly _viewInitialized$;
|
|
98
124
|
get viewInitialized$(): Observable<boolean>;
|
|
99
125
|
get model(): TableModel;
|
|
100
|
-
constructor(ellipsisPipe: EllipsisPipe, filterPipe: CarbonListFilterPipe, iconService: IconService, logger: NGXLogger, translateService: TranslateService, viewContentService: ViewContentService, keyStateService: KeyStateService, dragAndDropService: CarbonListDragAndDropService, elementRef: ElementRef);
|
|
126
|
+
constructor(ellipsisPipe: EllipsisPipe, filterPipe: CarbonListFilterPipe, iconService: IconService, logger: NGXLogger, translateService: TranslateService, viewContentService: ViewContentService, keyStateService: KeyStateService, dragAndDropService: CarbonListDragAndDropService, elementRef: ElementRef, cdr: ChangeDetectorRef);
|
|
101
127
|
ngOnInit(): void;
|
|
102
128
|
ngAfterViewInit(): void;
|
|
103
129
|
ngOnDestroy(): void;
|
|
@@ -116,6 +142,14 @@ export declare class CarbonListComponent implements OnInit, AfterViewInit, OnDes
|
|
|
116
142
|
private _translatedFields$;
|
|
117
143
|
private _headerItems$;
|
|
118
144
|
private readonly _tableItems$;
|
|
145
|
+
/**
|
|
146
|
+
* Cached rows from the previous `items` emission, keyed by the item's [trackByKey] (or
|
|
147
|
+
* [expandedRowKey]) value. Used by [buildRowsPreservingIdentity] to keep row/cell instances —
|
|
148
|
+
* and therefore their DOM — stable across emissions.
|
|
149
|
+
*/
|
|
150
|
+
private _reusableRowsByKey;
|
|
151
|
+
private buildRowsPreservingIdentity;
|
|
152
|
+
private buildRow;
|
|
119
153
|
private readonly _filteredItems$;
|
|
120
154
|
readonly model$: Observable<TableModel>;
|
|
121
155
|
private get dragAndDropHeaderColumns();
|
|
@@ -140,7 +174,27 @@ export declare class CarbonListComponent implements OnInit, AfterViewInit, OnDes
|
|
|
140
174
|
private resolveObject;
|
|
141
175
|
private swapItems;
|
|
142
176
|
private resolveTagObject;
|
|
177
|
+
getSearchSegments(): Array<{
|
|
178
|
+
text: string;
|
|
179
|
+
isInvalid: boolean;
|
|
180
|
+
}>;
|
|
181
|
+
private getSearchInputElement;
|
|
182
|
+
private getCurrentFieldToken;
|
|
183
|
+
onSearchFocus(): void;
|
|
184
|
+
updateAutocomplete(): void;
|
|
185
|
+
private calculateTokenLeft;
|
|
186
|
+
selectSuggestion(field: SearchField): void;
|
|
187
|
+
onSearchKeydown(event: KeyboardEvent): void;
|
|
188
|
+
onSearchBlur(): void;
|
|
189
|
+
onSearchClear(): void;
|
|
190
|
+
private executeSearch;
|
|
191
|
+
onSearchEnter(): void;
|
|
192
|
+
private _searchOpen;
|
|
193
|
+
onSearchOpenChange(isOpen: boolean): void;
|
|
194
|
+
onSearchFocusOut(event: FocusEvent): void;
|
|
195
|
+
private _captureExpandedRows;
|
|
196
|
+
private _restoreExpandedRows;
|
|
143
197
|
static ɵfac: i0.ɵɵFactoryDeclaration<CarbonListComponent, never>;
|
|
144
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CarbonListComponent, "valtimo-carbon-list", never, { "items": { "alias": "items"; "required": false; }; "fields": { "alias": "fields"; "required": false; }; "tableTranslations": { "alias": "tableTranslations"; "required": false; }; "paginatorConfig": { "alias": "paginatorConfig"; "required": false; }; "pagination": { "alias": "pagination"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "skeletonRowCount": { "alias": "skeletonRowCount"; "required": false; }; "actions": { "alias": "actions"; "required": false; }; "actionItems": { "alias": "actionItems"; "required": false; }; "showActionItems": { "alias": "showActionItems"; "required": false; }; "header": { "alias": "header"; "required": false; }; "hideColumnHeader": { "alias": "hideColumnHeader"; "required": false; }; "initialSortState": { "alias": "initialSortState"; "required": false; }; "sortState": { "alias": "sortState"; "required": false; }; "isSearchable": { "alias": "isSearchable"; "required": false; }; "enableSingleSelection": { "alias": "enableSingleSelection"; "required": false; }; "lastColumnTemplate": { "alias": "lastColumnTemplate"; "required": false; }; "paginationIdentifier": { "alias": "paginationIdentifier"; "required": false; }; "showSelectionColumn": { "alias": "showSelectionColumn"; "required": false; }; "striped": { "alias": "striped"; "required": false; }; "hideToolbar": { "alias": "hideToolbar"; "required": false; }; "lockedTooltipTranslationKey": { "alias": "lockedTooltipTranslationKey"; "required": false; }; "movingRowsEnabled": { "alias": "movingRowsEnabled"; "required": false; }; "dragAndDrop": { "alias": "dragAndDrop"; "required": false; }; "dragAndDropDisabled": { "alias": "dragAndDropDisabled"; "required": false; }; }, { "rowClicked": "rowClicked"; "paginationClicked": "paginationClicked"; "paginationSet": "paginationSet"; "search": "search"; "sortChanged": "sortChanged"; "moveRow": "moveRow"; "itemsReordered": "itemsReordered"; }, never, ["[header]", "[tabs]", "[carbonToolbarActions]", "[carbonToolbarContent]", "*"], false, never>;
|
|
198
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CarbonListComponent, "valtimo-carbon-list", never, { "items": { "alias": "items"; "required": false; }; "fields": { "alias": "fields"; "required": false; }; "tableTranslations": { "alias": "tableTranslations"; "required": false; }; "paginatorConfig": { "alias": "paginatorConfig"; "required": false; }; "pagination": { "alias": "pagination"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "skeletonRowCount": { "alias": "skeletonRowCount"; "required": false; }; "actions": { "alias": "actions"; "required": false; }; "actionItems": { "alias": "actionItems"; "required": false; }; "showActionItems": { "alias": "showActionItems"; "required": false; }; "header": { "alias": "header"; "required": false; }; "hideColumnHeader": { "alias": "hideColumnHeader"; "required": false; }; "initialSortState": { "alias": "initialSortState"; "required": false; }; "sortState": { "alias": "sortState"; "required": false; }; "isSearchable": { "alias": "isSearchable"; "required": false; }; "initialSearchValue": { "alias": "initialSearchValue"; "required": false; }; "searchDebounceMs": { "alias": "searchDebounceMs"; "required": false; }; "invalidSearchFields": { "alias": "invalidSearchFields"; "required": false; }; "searchFields": { "alias": "searchFields"; "required": false; }; "enableSingleSelection": { "alias": "enableSingleSelection"; "required": false; }; "lastColumnTemplate": { "alias": "lastColumnTemplate"; "required": false; }; "paginationIdentifier": { "alias": "paginationIdentifier"; "required": false; }; "showSelectionColumn": { "alias": "showSelectionColumn"; "required": false; }; "striped": { "alias": "striped"; "required": false; }; "hideToolbar": { "alias": "hideToolbar"; "required": false; }; "lockedTooltipTranslationKey": { "alias": "lockedTooltipTranslationKey"; "required": false; }; "movingRowsEnabled": { "alias": "movingRowsEnabled"; "required": false; }; "dragAndDrop": { "alias": "dragAndDrop"; "required": false; }; "dragAndDropDisabled": { "alias": "dragAndDropDisabled"; "required": false; }; "expandedRowTemplate": { "alias": "expandedRowTemplate"; "required": false; }; "expandedRowKey": { "alias": "expandedRowKey"; "required": false; }; "trackByKey": { "alias": "trackByKey"; "required": false; }; }, { "rowClicked": "rowClicked"; "paginationClicked": "paginationClicked"; "paginationSet": "paginationSet"; "search": "search"; "sortChanged": "sortChanged"; "moveRow": "moveRow"; "itemsReordered": "itemsReordered"; }, never, ["[header]", "[tabs]", "[carbonToolbarActions]", "[carbonToolbarContent]", "*"], false, never>;
|
|
145
199
|
}
|
|
146
200
|
//# sourceMappingURL=carbon-list.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"carbon-list.component.d.ts","sourceRoot":"","sources":["../../../../../../projects/valtimo/components/src/lib/components/carbon-list/carbon-list.component.ts"],"names":[],"mappings":"AAeA,OAAO,EACL,aAAa,
|
|
1
|
+
{"version":3,"file":"carbon-list.component.d.ts","sourceRoot":"","sources":["../../../../../../projects/valtimo/components/src/lib/components/carbon-list/carbon-list.component.ts"],"names":[],"mappings":"AAeA,OAAO,EACL,aAAa,EAEb,iBAAiB,EAEjB,UAAU,EACV,YAAY,EAEZ,SAAS,EACT,MAAM,EAEN,WAAW,EAEZ,MAAM,eAAe,CAAC;AACvB,OAAO,EAAC,WAAW,EAAC,MAAM,gBAAgB,CAAC;AAE3C,OAAO,EAAC,gBAAgB,EAAC,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAC,WAAW,EAAC,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EACL,WAAW,EACX,eAAe,EACf,sBAAsB,EAEtB,eAAe,EAEf,UAAU,EACX,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EAAC,SAAS,EAAC,MAAM,YAAY,CAAC;AACrC,OAAO,EACL,eAAe,EAIf,UAAU,EAKX,MAAM,MAAM,CAAC;AAGd,OAAO,EACL,UAAU,EACV,mBAAmB,EACnB,cAAc,EACd,sBAAsB,EACtB,qBAAqB,EACrB,SAAS,EACT,YAAY,EAKZ,YAAY,EACZ,UAAU,EACV,QAAQ,EACT,MAAM,cAAc,CAAC;AACtB,OAAO,EAAC,eAAe,EAAC,MAAM,kCAAkC,CAAC;AACjE,OAAO,EAAC,kBAAkB,EAAC,MAAM,sCAAsC,CAAC;AACxE,OAAO,EAAC,oBAAoB,EAAC,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAC,4BAA4B,EAAC,MAAM,YAAY,CAAC;AACxD,OAAO,EAAC,YAAY,EAAC,MAAM,aAAa,CAAC;;AAEzC,qBAQa,mBAAoB,YAAW,MAAM,EAAE,aAAa,EAAE,SAAS;IA4NxE,OAAO,CAAC,QAAQ,CAAC,YAAY;IA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from '@angular/core';
|
|
2
2
|
import { Overlay, OverlayPositionBuilder } from '@angular/cdk/overlay';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class TooltipDirective implements OnInit {
|
|
4
|
+
export declare class TooltipDirective implements OnInit, OnDestroy {
|
|
5
5
|
private overlay;
|
|
6
6
|
private overlayPositionBuilder;
|
|
7
7
|
private elementRef;
|
|
@@ -13,6 +13,7 @@ export declare class TooltipDirective implements OnInit {
|
|
|
13
13
|
ngOnInit(): void;
|
|
14
14
|
show(): void;
|
|
15
15
|
hide(): void;
|
|
16
|
+
ngOnDestroy(): void;
|
|
16
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<TooltipDirective, never>;
|
|
17
18
|
static ɵdir: i0.ɵɵDirectiveDeclaration<TooltipDirective, "[vTooltip]", never, { "text": { "alias": "vTooltip"; "required": false; }; "onBottom": { "alias": "onBottom"; "required": false; }; "tooltipDisabled": { "alias": "tooltipDisabled"; "required": false; }; }, {}, never, never, false, never>;
|
|
18
19
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip.directive.d.ts","sourceRoot":"","sources":["../../../../../../projects/valtimo/components/src/lib/directives/tooltip/tooltip.directive.ts"],"names":[],"mappings":"AAgBA,OAAO,
|
|
1
|
+
{"version":3,"file":"tooltip.directive.d.ts","sourceRoot":"","sources":["../../../../../../projects/valtimo/components/src/lib/directives/tooltip/tooltip.directive.ts"],"names":[],"mappings":"AAgBA,OAAO,EAGL,UAAU,EAGV,SAAS,EACT,MAAM,EACP,MAAM,eAAe,CAAC;AACvB,OAAO,EAAC,OAAO,EAAE,sBAAsB,EAAa,MAAM,sBAAsB,CAAC;;AAIjF,qBACa,gBAAiB,YAAW,MAAM,EAAE,SAAS;IAQtD,OAAO,CAAC,OAAO;IACf,OAAO,CAAC,sBAAsB;IAC9B,OAAO,CAAC,UAAU;IATD,IAAI,SAAM;IACpB,QAAQ,UAAS;IACjB,eAAe,UAAS;IAEjC,OAAO,CAAC,UAAU,CAAc;gBAGtB,OAAO,EAAE,OAAO,EAChB,sBAAsB,EAAE,sBAAsB,EAC9C,UAAU,EAAE,UAAU;IAGhC,QAAQ,IAAI,IAAI;IAkBhB,IAAI;IAUJ,IAAI;IAMG,WAAW,IAAI,IAAI;yCA/Cf,gBAAgB;2CAAhB,gBAAgB;CAqD5B"}
|
|
@@ -9,6 +9,15 @@ export declare class ValtimoCdsModalDirective implements AfterViewInit, OnDestro
|
|
|
9
9
|
constructor(document: Document, elementRef: ElementRef, renderer: Renderer2);
|
|
10
10
|
ngAfterViewInit(): void;
|
|
11
11
|
ngOnDestroy(): void;
|
|
12
|
+
/**
|
|
13
|
+
* Closes the modal on ESC via the same path as the close (X) button.
|
|
14
|
+
*
|
|
15
|
+
* Carbon's built-in ESC handler mutates the modal's `open` field directly (bypassing the `[open]`
|
|
16
|
+
* binding) and calls `modalService.destroy()`, which can desync state or destroy an unrelated
|
|
17
|
+
* imperatively-created modal. Instead we preempt it and simulate a click on the close button,
|
|
18
|
+
* which fires the modal's own `(closeSelect)` handler.
|
|
19
|
+
*/
|
|
20
|
+
private readonly _onDocumentKeydown;
|
|
12
21
|
private handleMutations;
|
|
13
22
|
private applyDocumentOverflowHidden;
|
|
14
23
|
private removeDocumentOverflowHidden;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"valtimo-cds-modal.directive.d.ts","sourceRoot":"","sources":["../../../../../../projects/valtimo/components/src/lib/directives/valtimo-cds-modal/valtimo-cds-modal.directive.ts"],"names":[],"mappings":"AAiBA,OAAO,EACL,aAAa,EAEb,UAAU,EAGV,SAAS,EACT,SAAS,EAEV,MAAM,eAAe,CAAC;;AAEvB,qBAIa,wBAAyB,YAAW,aAAa,EAAE,SAAS;IAMnD,OAAO,CAAC,QAAQ;IAClC,OAAO,CAAC,QAAQ,CAAC,UAAU;IAC3B,OAAO,CAAC,QAAQ,CAAC,QAAQ;IAP3B,SAAyB,gBAAgB,KAAK;IAE9C,OAAO,CAAC,iBAAiB,CAAmB;gBAGhB,QAAQ,EAAE,QAAQ,EAC3B,UAAU,EAAE,UAAU,EACtB,QAAQ,EAAE,SAAS;IAG/B,eAAe,IAAI,IAAI;
|
|
1
|
+
{"version":3,"file":"valtimo-cds-modal.directive.d.ts","sourceRoot":"","sources":["../../../../../../projects/valtimo/components/src/lib/directives/valtimo-cds-modal/valtimo-cds-modal.directive.ts"],"names":[],"mappings":"AAiBA,OAAO,EACL,aAAa,EAEb,UAAU,EAGV,SAAS,EACT,SAAS,EAEV,MAAM,eAAe,CAAC;;AAEvB,qBAIa,wBAAyB,YAAW,aAAa,EAAE,SAAS;IAMnD,OAAO,CAAC,QAAQ;IAClC,OAAO,CAAC,QAAQ,CAAC,UAAU;IAC3B,OAAO,CAAC,QAAQ,CAAC,QAAQ;IAP3B,SAAyB,gBAAgB,KAAK;IAE9C,OAAO,CAAC,iBAAiB,CAAmB;gBAGhB,QAAQ,EAAE,QAAQ,EAC3B,UAAU,EAAE,UAAU,EACtB,QAAQ,EAAE,SAAS;IAG/B,eAAe,IAAI,IAAI;IA0BvB,WAAW,IAAI,IAAI;IAM1B;;;;;;;OAOG;IACH,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAgDjC;IAEF,OAAO,CAAC,eAAe;IAiBvB,OAAO,CAAC,2BAA2B;IAWnC,OAAO,CAAC,4BAA4B;IAKpC,OAAO,CAAC,yBAAyB;IAejC,OAAO,CAAC,8BAA8B;yCArJ3B,wBAAwB;2CAAxB,wBAAwB;CA2KpC"}
|
|
@@ -22,6 +22,7 @@ export declare function createCustomFormioComponent(customComponentOptions: Form
|
|
|
22
22
|
attach(element: HTMLElement): any;
|
|
23
23
|
useWrapper(): boolean;
|
|
24
24
|
setValue(value: any): boolean;
|
|
25
|
+
bindCustomOptions(): void;
|
|
25
26
|
readonly maskOptions: {
|
|
26
27
|
label: any;
|
|
27
28
|
value: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-custom-component.d.ts","sourceRoot":"","sources":["../../../../../../projects/valtimo/components/src/lib/modules/custom-formio-component/create-custom-component.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAC,yBAAyB,EAAE,mBAAmB,EAAc,MAAM,mBAAmB,CAAC;AAE9F,OAAO,EAAC,WAAW,EAAE,uBAAuB,EAAC,MAAM,cAAc,CAAC;AAKlE,wBAAgB,2BAA2B,CAAC,sBAAsB,EAAE,yBAAyB;oBA0ErE,uBAAuB,WAChC,GAAG,QACN,GAAG;;;+BArEa,mBAAmB;;;;;;;;;;;;;mBAmEvB,uBAAuB;6BAoBf,GAAG,SAAS,MAAM;wBASvB,WAAW;;
|
|
1
|
+
{"version":3,"file":"create-custom-component.d.ts","sourceRoot":"","sources":["../../../../../../projects/valtimo/components/src/lib/modules/custom-formio-component/create-custom-component.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAC,yBAAyB,EAAE,mBAAmB,EAAc,MAAM,mBAAmB,CAAC;AAE9F,OAAO,EAAC,WAAW,EAAE,uBAAuB,EAAC,MAAM,cAAc,CAAC;AAKlE,wBAAgB,2BAA2B,CAAC,sBAAsB,EAAE,yBAAyB;oBA0ErE,uBAAuB,WAChC,GAAG,QACN,GAAG;;;+BArEa,mBAAmB;;;;;;;;;;;;;mBAmEvB,uBAAuB;6BAoBf,GAAG,SAAS,MAAM;wBASvB,WAAW;;8BA8FV,OAAO;6BAmBH,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0BA9LC,WAAW;;EAiN/C"}
|