@yomotech/view-toolkit 1.0.46 → 1.0.50

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.
@@ -10,8 +10,10 @@ import { NzModalService } from 'ng-zorro-antd/modal';
10
10
  import { ToastrService } from 'ngx-toastr';
11
11
  import { NgForm } from '@angular/forms';
12
12
  import { OktaAuthStateService } from '@okta/okta-angular';
13
+ import * as _yomotech_view_toolkit from '@yomotech/view-toolkit';
13
14
  import { DynamicDialogRef, DynamicDialogConfig, DialogService } from 'primeng/dynamicdialog';
14
15
  import { NzI18nService } from 'ng-zorro-antd/i18n';
16
+ import { CardLayout } from '@yomotech/view-toolkit/catalog';
15
17
  import * as catalog from '@yomotech/view-toolkit/catalog';
16
18
  export { catalog as FieldCatalog };
17
19
  import { SafeResourceUrl } from '@angular/platform-browser';
@@ -70,9 +72,9 @@ declare function fieldRules(field: any): FieldRules;
70
72
  */
71
73
  declare function ruleMessage(field: any, errors: Record<string, any> | null | undefined, projectTexts?: Record<string, string> | null, translations?: Record<string, string> | null, caption?: string): string;
72
74
  /**
73
- * The grid of label and field: layout "horizontal" puts the label beside the field (dialog: an 80px
74
- * column, form: 30% with at least 110px), otherwise above it. The layout's layoutStyle wins in the
75
- * dialog.
75
+ * The grid of label and field: layout "horizontal" puts the label beside the field (dialog: a 5rem
76
+ * column, form: 30% with at least 7rem - rem grows with the font), otherwise above it. The layout's
77
+ * layoutStyle wins in dialog and form. A narrow form section or dialog puts the label above (their CSS).
76
78
  */
77
79
  declare function fieldInnerLayoutStyle(formField: any, container?: 'dialog' | 'form'): Record<string, any>;
78
80
  /**
@@ -99,6 +101,12 @@ type DesignDevice = 'desktop' | 'tablet' | 'mobile';
99
101
  interface VlDesign {
100
102
  /** the element whose settings are open in the Designer - shown marked */
101
103
  selected?: DesignTarget | null;
104
+ /** The application's selected-language texts, NOT the editor/handle language. Display only. */
105
+ translations?: Readonly<Record<string, string>>;
106
+ /** Project language codes used to preview the automatically generated setting entries, without fetching. */
107
+ languages?: string[];
108
+ /** Editor-resolved Media sources; design mode never fetches project images or auth data. */
109
+ media?: Readonly<Record<string, string>>;
102
110
  /** the device the page is shown on; the containers that choose by the window (card columns) follow it */
103
111
  device?: DesignDevice;
104
112
  /** texts of the design handles in the Designer's language; English for every text not given */
@@ -117,7 +125,11 @@ interface DesignTarget {
117
125
  * element: a card element, parentIndex the horizontal layout holding it; header / headerElement: the card's
118
126
  * header and one of its buttons; column: a grid column
119
127
  */
120
- kind: 'container' | 'section' | 'field' | 'element' | 'header' | 'headerElement' | 'column';
128
+ kind: 'container' | 'section' | 'field' | 'element' | 'header' | 'headerElement' | 'column' | 'menuEntry';
129
+ /** Index path of a nested header/group or side-menu entry. */
130
+ path?: number[];
131
+ /** Generated setting entries are visible/selectable but are edited through Main appSettings, not the menu array. */
132
+ generated?: boolean;
121
133
  sectionIndex?: number;
122
134
  fieldIndex?: number;
123
135
  index?: number;
@@ -126,9 +138,17 @@ interface DesignTarget {
126
138
  part?: 'input';
127
139
  }
128
140
  /** What a container in design mode tells the Designer. */
129
- type DesignEvent =
141
+ /** Emitted before mutation. The editor calls askAndDelete and passes remove as its confirmed action.
142
+ * Cancelling (or not handling the event) changes nothing. remove returns false for a stale/already-used request. */
143
+ interface DesignDeleteRequest {
144
+ type: 'deleteRequested';
145
+ target: DesignTarget;
146
+ name: string;
147
+ remove: () => boolean;
148
+ }
149
+ type DesignEvent = DesignDeleteRequest
130
150
  /** an element was chosen: the Designer opens its settings */
131
- {
151
+ | {
132
152
  type: 'select';
133
153
  target: DesignTarget;
134
154
  }
@@ -213,6 +233,8 @@ declare function dropObjectName(drop: DesignPropertyDrop): string;
213
233
  declare function cloneLayout<T>(value: T): T;
214
234
  /** The ids of every drop list of the containers in design mode on the page (the Designer's data objects drop on them). */
215
235
  declare function designDropIds(): string[];
236
+ /** Only a host-confirmed call can remove a saved item. Double confirmation and stale targets are ignored. */
237
+ declare function requestDesignDelete(emit: (event: DesignEvent) => void, target: DesignTarget, name: string, remove: () => void, current?: () => boolean): void;
216
238
 
217
239
  type CardDropType = 'before' | 'after' | 'left' | 'right' | 'empty';
218
240
  /** Where a dragged element lands: at a card element (index), or inside the horizontal layout parentIndex at innerIndex. */
@@ -229,6 +251,8 @@ interface CardPlace {
229
251
  index: number;
230
252
  parentIndex: number | null;
231
253
  }
254
+ /** How many columns a grid-template-columns names: "repeat(3, 34px)" three, "minmax(0, 1fr) repeat(3, 34px)" four. */
255
+ declare function gridColumnCount(template: unknown): number;
232
256
  /**
233
257
  * The card layout as the Designer keeps it, changed in place: no empty classes on the card styles, the card's
234
258
  * columns are drawn by the container (no gridTemplateColumns in its style), no classes on the elements (the right
@@ -260,6 +284,7 @@ interface CardDesignerHost {
260
284
  deselect(): void;
261
285
  /** the view is drawn again (the apps run without zone.js: a change after a timer is not seen otherwise) */
262
286
  refresh(): void;
287
+ requestDelete(target: DesignTarget, name: string, remove: () => void, current: () => boolean): void;
263
288
  }
264
289
  /** The data an element carries while it is dragged inside the card. */
265
290
  interface CardDragData {
@@ -421,8 +446,20 @@ declare class UtilityService {
421
446
  private getSecureItem;
422
447
  getLocalStorage<T = unknown>(key: string): Promise<any>;
423
448
  showAllProjects(): Promise<void>;
449
+ /**
450
+ * The form's values as the body of a POST - a copy, nothing evaluated. It ran every {{…}} in the values as
451
+ * JavaScript (new Function): whatever a person typed into a field or a page held was executed in the app
452
+ * (OFFENE-PUNKTE 95). The content a backend wants comes from option.body with the safe placeholders
453
+ * ({{form.x}}, {{record.x}}, {{userInfo.x}}, {{cart.x}}, {{env.x}} - resolveTemplate).
454
+ */
424
455
  parseBodyObject(obj: any): any;
425
- getTotalPrice(tableitemInfo: any): number;
456
+ /**
457
+ * The cart's sum: each item's price field × its quantity. The price field is the cart's option.priceField, set in
458
+ * the Designer (header → Cart) - the library knows no field name (it was unitPrice, OFFENE-PUNKTE 116 A).
459
+ */
460
+ getTotalPrice(tableitemInfo: any, priceField?: string): number;
461
+ /** A field's start value from the cart: {{cart.quantity}} / {{cart.totalPrice}} - older {{quantity}} / {{totalPrice}} too. */
462
+ cartValue(text: any, cartInfo: any): any;
426
463
  getTotalQuantity(tableitemInfo: any): number;
427
464
  /**
428
465
  * A page's address with its placeholders: {{pageNumber}}, {{pageSize}} and - with a context - any field of the
@@ -529,6 +566,11 @@ declare class Couchdb {
529
566
  * classifying it as text would change the shape they receive.
530
567
  */
531
568
  private isTextFile;
569
+ /**
570
+ * A text file of the project as text, also when it is stored as an attachment - an add-on's source
571
+ * (addon/<name>.js, OFFENE-PUNKTE 92). Null when it is not there.
572
+ */
573
+ getTextFile(dbName: string, docId: string): Promise<string | null>;
532
574
  /** Ids of the files under a folder of the project, e.g. listFiles(db, 'ssl/mobile/'). Empty on any error. */
533
575
  listFiles(dbName: string, prefix: string): Promise<string[]>;
534
576
  private getDocumentUrl;
@@ -804,7 +846,9 @@ declare class DateTimePickerService {
804
846
  * so paging through months with five and six weeks does not change its height either.
805
847
  */
806
848
  private fitToKeyboardHeight;
807
- /** Day cells as large as the panel's height allows for its header, the weekdays and six weeks. */
849
+ /** The time part of a date-and-time calendar with its gap above, 0 without one. */
850
+ private timePartHeight;
851
+ /** Day cells as large as the panel's height allows for its header, the weekdays, six weeks and a time part. */
808
852
  private fitDays;
809
853
  /**
810
854
  * The time picker hangs below its field - upright there is room. Where there is not (a phone in
@@ -880,11 +924,24 @@ interface PageDataDeps {
880
924
  confirmDelete(button: any): Promise<boolean>;
881
925
  /** A message to the user, by text key (saveFailed, deleteFailed, loadFailed). */
882
926
  failed(key: string, error: unknown): void;
927
+ /** After sending: how many records the backend took and how many it refused (optional). */
928
+ sent?(result: SendResult): void;
883
929
  /** Dates of browser records back to Date objects (optional). */
884
930
  restoreDates?(records: any[]): any[];
885
931
  /** The app's own work on records just loaded from the backend, e.g. pictures from Media (optional). */
886
932
  prepare?(records: any[]): Promise<any[]>;
887
933
  }
934
+ /** What a send did: records the backend took, records it refused (they stay, marked). */
935
+ interface SendResult {
936
+ sent: number;
937
+ failed: number;
938
+ }
939
+ /** The mark of a waiting record the backend refused: { message, at } - stored with it, shown on its card. */
940
+ declare const SEND_ERROR_KEY = "_vlSendError";
941
+ /** A record as it goes to the backend: without the library's own marks (_vl...). */
942
+ declare function withoutMarks(record: any): any;
943
+ /** The reason of a refused call as a short text. */
944
+ declare function sendErrorText(error: unknown): string;
888
945
  declare class PageData {
889
946
  records: any[];
890
947
  visible: any[];
@@ -927,13 +984,20 @@ declare class PageData {
927
984
  saveRecord(record: any, index?: number | null): Promise<boolean>;
928
985
  /** Deletes record index after the question; browser list, or the button's backend (then reloads). */
929
986
  remove(index: number, button?: any): Promise<boolean>;
930
- /** Sends one record (index) or all ('all') to the backend the button describes; afterSuccess removeLocal. */
987
+ /**
988
+ * Sends one record (index) or all ('all') to the backend the button describes; afterSuccess removeLocal.
989
+ * All are sent one by one (option.sendMode "single", the default): what the backend takes goes, what it refuses
990
+ * stays, marked with the reason (SEND_ERROR_KEY) - nothing is booked twice, nothing is lost. sendMode "bulk"
991
+ * sends all in one call (all taken or all refused). OFFENE-PUNKTE 131: a refused entry looked like one never sent.
992
+ */
931
993
  send(button: any, index: number | 'all'): Promise<boolean>;
932
994
  /** Filter fields are the keys set by setFilter; a filter page loads only when none is empty. */
933
995
  private filterComplete;
934
996
  private loadBackendRecords;
935
997
  /** A filter date goes on as a Date - the call writes it by the page's dateFormat. */
936
998
  private filterValue;
999
+ /** The records as they are now into the browser list (a mark set or cleared). */
1000
+ private persist;
937
1001
  private removeLocal;
938
1002
  /** The old delete address "orders/{{id}}" took record[button.key] for any placeholder. */
939
1003
  private legacyUrl;
@@ -994,6 +1058,7 @@ declare class CardComponent {
994
1058
  paginationMode: 'client' | 'server';
995
1059
  paginationLoading: boolean;
996
1060
  /** The Designer's canvas: sample records, every element with drag, edit and delete, nothing loaded (design/design.ts). */
1061
+ get designTranslations(): Readonly<Record<string, string>> | undefined;
997
1062
  design: VlDesign | null;
998
1063
  /** What was chosen or changed on the Designer's canvas. */
999
1064
  designChange: EventEmitter<DesignEvent>;
@@ -1075,7 +1140,9 @@ declare class CardComponent {
1075
1140
  invokeOnCardFooter(element: any): void;
1076
1141
  /** Delete (asks first) and save to a backend go to the page's data; anything else to the app. */
1077
1142
  invokeButtonClick(layout: any, record: any, recordIndex: any): Promise<void>;
1078
- /** "Save all": every record of the page in one call. */
1143
+ /** The line above a refused record: "Not saved: <reason>" in the project's language (notSentReason, {reason}). */
1144
+ sendErrorText(record: any): string;
1145
+ /** "Save all": every record of the page - one after another, or in one call with sendMode "bulk" (PageData.send). */
1079
1146
  saveAllData(option: any): Promise<void>;
1080
1147
  showLinkDetails(option: any, record: any): void;
1081
1148
  showImageDetails(option: any, record: any): void;
@@ -1171,6 +1238,7 @@ interface SectionDesignerHost {
1171
1238
  deselect(): void;
1172
1239
  /** the view is drawn again (the apps run without zone.js: a change after a timer is not seen otherwise) */
1173
1240
  refresh(): void;
1241
+ requestDelete(target: DesignTarget, name: string, remove: () => void, current: () => boolean): void;
1174
1242
  }
1175
1243
  /** The data a field carries while it is dragged inside its container. */
1176
1244
  interface SectionDragData {
@@ -1231,25 +1299,27 @@ declare class SectionDesigner {
1231
1299
  declare function isSignedIn(userInfo: any, now?: number): boolean;
1232
1300
  type LockReason = 'login' | 'valid' | null;
1233
1301
  /** Why a button is locked: needsLogin without a signed-in user first, then needsValid with a broken rule. */
1234
- declare function lockReason(option: any, state: {
1235
- signedIn: boolean;
1236
- valid: boolean;
1237
- }): LockReason;
1302
+ declare function lockReason(option: any, state: LockState): LockReason;
1238
1303
  /** Every reason a button is locked, the sign-in first: both show their hint under the button. */
1239
- declare function lockReasons(option: any, state: {
1304
+ declare function lockReasons(option: any, state: LockState): Array<'login' | 'valid'>;
1305
+ /**
1306
+ * What a container knows when it decides about a button: signed in, every rule kept (needsValid), and every
1307
+ * required field filled (requiredFilled - left out, nothing is checked).
1308
+ */
1309
+ interface LockState {
1240
1310
  signedIn: boolean;
1241
1311
  valid: boolean;
1242
- }): Array<'login' | 'valid'>;
1312
+ requiredFilled?: boolean;
1313
+ }
1314
+ /** A button that sends its form's fields - submit or save; it never sends an empty required field. */
1315
+ declare function sendsForm(option: any): boolean;
1243
1316
  /** A hint under a locked button: the layout's text; for 'login' a link to the sign-in. */
1244
1317
  interface LockHint {
1245
1318
  reason: 'login' | 'valid';
1246
1319
  text: string;
1247
1320
  }
1248
1321
  /** Whether a button is locked: needsLogin without a signed-in user, needsValid with a broken rule. */
1249
- declare function buttonLocked(option: any, state: {
1250
- signedIn: boolean;
1251
- valid: boolean;
1252
- }): boolean;
1322
+ declare function buttonLocked(option: any, state: LockState): boolean;
1253
1323
  /**
1254
1324
  * The hint under a locked button: the layout's caption for the reason (option.needsLoginHint.caption /
1255
1325
  * needsValidHint.caption), in the app's language when the language file has it (the caption is its key).
@@ -1298,6 +1368,7 @@ declare class FormComponent implements OnInit, OnChanges, AfterViewInit, OnDestr
1298
1368
  /** the hint of a button locked for a missing sign-in was clicked: the app starts its sign-in */
1299
1369
  signIn: EventEmitter<void>;
1300
1370
  /** The Designer's canvas: every section and field with drag, edit and delete, nothing loaded (design/design.ts). */
1371
+ get designTranslations(): Readonly<Record<string, string>> | undefined;
1301
1372
  design: VlDesign | null;
1302
1373
  /** What was chosen or changed on the Designer's canvas. */
1303
1374
  designChange: EventEmitter<DesignEvent>;
@@ -1362,6 +1433,8 @@ declare class FormComponent implements OnInit, OnChanges, AfterViewInit, OnDestr
1362
1433
  key: string;
1363
1434
  label: string;
1364
1435
  }>;
1436
+ /** Every required field of the shown sections filled, the required card whole - a sending button waits for it (121). */
1437
+ requiredFilled(form: NgForm | null): boolean;
1365
1438
  /**
1366
1439
  * A click on a locked button: nothing is sent; every field shows its message. The page stays where it is.
1367
1440
  */
@@ -1444,6 +1517,7 @@ declare class GridComponent implements AfterViewInit, OnDestroy {
1444
1517
  }>;
1445
1518
  gridForm?: NgForm;
1446
1519
  /** The Designer's canvas: sample rows, every column with drag, edit, delete and resize, nothing loaded (design/design.ts). */
1520
+ get designTranslations(): Readonly<Record<string, string>> | undefined;
1447
1521
  design: VlDesign | null;
1448
1522
  /** What was chosen or changed on the Designer's canvas. */
1449
1523
  designChange: EventEmitter<DesignEvent>;
@@ -1633,12 +1707,32 @@ declare class HeaderMenuComponent implements AfterViewInit {
1633
1707
  projectSeleted: any;
1634
1708
  /** The signed-in user - its name for the user element. */
1635
1709
  userInfo: any;
1710
+ /** The title of the page shown, in the app's language - the app hands it (element kind title). */
1711
+ pageTitle: string;
1636
1712
  cartInfo: any;
1637
1713
  buttonClick: EventEmitter<any>;
1638
1714
  showTableContent: EventEmitter<any>;
1639
1715
  searchItems: EventEmitter<any>;
1716
+ design: VlDesign | null;
1717
+ designChange: EventEmitter<DesignEvent>;
1718
+ private readonly designId;
1719
+ get dt(): _yomotech_view_toolkit.DesignTexts;
1720
+ get designItems(): any[];
1721
+ get shownItems(): any[];
1722
+ path(parent: number[], index: number): number[];
1723
+ listId(path: number[]): string;
1724
+ listIds(): string[];
1725
+ chosen(path: number[]): boolean;
1726
+ choose(path: number[], event?: Event): void;
1727
+ elementClicked(element: any, path: number[], event: Event): void;
1728
+ selectHeader(): void;
1729
+ private applyHeader;
1730
+ elementAction(action: DesignAction, path: number[]): void;
1731
+ elementDropped(event: CdkDragDrop<any>, parent: number[]): void;
1732
+ text(value: any): string;
1733
+ pictureOf(element: any): string;
1640
1734
  private readonly cdr;
1641
- constructor(oktaAuthService: OktaAuthStateService, requestService: RequestService, utilityService: UtilityService, couchdbService: Couchdb, platform: Platform);
1735
+ constructor(oktaAuthService: OktaAuthStateService | null, requestService: RequestService, utilityService: UtilityService, couchdbService: Couchdb, platform: Platform);
1642
1736
  ngOnChanges(changes: SimpleChanges): void;
1643
1737
  ngAfterViewInit(): void;
1644
1738
  getStyle(styleObject: any): Record<string, any>;
@@ -1646,7 +1740,7 @@ declare class HeaderMenuComponent implements AfterViewInit {
1646
1740
  classNames(styleObject: any): string;
1647
1741
  isVisible(header: any): boolean;
1648
1742
  /** The kinds of header elements; a group holds elements of its own. */
1649
- static readonly KINDS: readonly ["image", "text", "button", "search", "cart", "user", "group"];
1743
+ static readonly KINDS: readonly ["image", "text", "title", "button", "search", "cart", "user", "group"];
1650
1744
  /** An element's kind: its control, else (older headers) its field name or its cart action; else a button. */
1651
1745
  kindOf(header: any): string;
1652
1746
  /** Shown: visible, and - with islogin - only signed in (true) or only signed out (false). */
@@ -1660,8 +1754,8 @@ declare class HeaderMenuComponent implements AfterViewInit {
1660
1754
  invokeHeaderButtonClick(option: any): void;
1661
1755
  invokeShowtableContent(option: any): void;
1662
1756
  setHeaderItems(items: any[]): Promise<any[]>;
1663
- static ɵfac: i0.ɵɵFactoryDeclaration<HeaderMenuComponent, never>;
1664
- static ɵcmp: i0.ɵɵComponentDeclaration<HeaderMenuComponent, "vl-header-menu", never, { "headerItems": { "alias": "headerItems"; "required": false; }; "headerLayout": { "alias": "headerLayout"; "required": false; }; "environment": { "alias": "environment"; "required": false; }; "tenantName": { "alias": "tenantName"; "required": false; }; "projectSeleted": { "alias": "projectSeleted"; "required": false; }; "userInfo": { "alias": "userInfo"; "required": false; }; "cartInfo": { "alias": "cartInfo"; "required": false; }; }, { "buttonClick": "buttonClick"; "showTableContent": "showTableContent"; "searchItems": "searchItems"; }, never, never, true, never>;
1757
+ static ɵfac: i0.ɵɵFactoryDeclaration<HeaderMenuComponent, [{ optional: true; }, null, null, null, null]>;
1758
+ static ɵcmp: i0.ɵɵComponentDeclaration<HeaderMenuComponent, "vl-header-menu", never, { "headerItems": { "alias": "headerItems"; "required": false; }; "headerLayout": { "alias": "headerLayout"; "required": false; }; "environment": { "alias": "environment"; "required": false; }; "tenantName": { "alias": "tenantName"; "required": false; }; "projectSeleted": { "alias": "projectSeleted"; "required": false; }; "userInfo": { "alias": "userInfo"; "required": false; }; "pageTitle": { "alias": "pageTitle"; "required": false; }; "cartInfo": { "alias": "cartInfo"; "required": false; }; "design": { "alias": "design"; "required": false; }; }, { "buttonClick": "buttonClick"; "showTableContent": "showTableContent"; "searchItems": "searchItems"; "designChange": "designChange"; }, never, never, true, never>;
1665
1759
  }
1666
1760
 
1667
1761
  declare class NetworkLogService {
@@ -1705,6 +1799,7 @@ declare class ModelComponent implements OnChanges, OnDestroy {
1705
1799
  userInfo: any;
1706
1800
  setFormDataHandler?: () => void | Promise<void>;
1707
1801
  /** The Designer's canvas: every field with drag, edit and delete, nothing loaded or sent (design/design.ts). */
1802
+ get designTranslations(): Readonly<Record<string, string>> | undefined;
1708
1803
  design: VlDesign | null;
1709
1804
  /** What was chosen or changed on the Designer's canvas. */
1710
1805
  designChange: EventEmitter<DesignEvent>;
@@ -1756,7 +1851,14 @@ declare class ModelComponent implements OnChanges, OnDestroy {
1756
1851
  timeChangeEvent(formField: any, value: any): void;
1757
1852
  handleRules(formField: any, value: any): void;
1758
1853
  resetRule(rule: any, formField: any): void;
1854
+ /** The field names of a duration rule - none fixed: this field and rule.with, the first in the dialog is "from". */
1855
+ private durationFields;
1759
1856
  isRuleTriggered(rule: any, formField: any): boolean;
1857
+ /**
1858
+ * The duration of a time range: from / to are this field and rule.with (or params.fromTime / toTime), on the
1859
+ * day of params.fromDate; params.durationField gets "h:mm", params.toDate the end's day (overnight: the next day).
1860
+ * No field name is fixed - the Designer's rule names them (OFFENE-PUNKTE 116 G).
1861
+ */
1760
1862
  applyDurationRule(rule: any, formField: any): void;
1761
1863
  invokeSetformData(): void;
1762
1864
  invokeFormBtnClick(option: any, propertySchema: any, form: NgForm): void;
@@ -1963,6 +2065,27 @@ declare class SideMenuComponent implements AfterViewInit, OnChanges, OnDestroy {
1963
2065
  private mobileLoginSubscription?;
1964
2066
  private mobileLoginRequestInProgress;
1965
2067
  private currentMobileLoginToken?;
2068
+ design: VlDesign | null;
2069
+ /** The existing Main left-area layout, for its project style/classes; not a new persisted key. */
2070
+ menuLayout: any;
2071
+ designChange: EventEmitter<DesignEvent>;
2072
+ private readonly designId;
2073
+ designMenu: any[];
2074
+ get dt(): _yomotech_view_toolkit.DesignTexts;
2075
+ designPath(parent: number[], index: number): number[];
2076
+ designListId(path: number[]): string;
2077
+ designListIds(): string[];
2078
+ designEditable(path: number[]): boolean;
2079
+ designSelected(path: number[]): boolean;
2080
+ selectDesignEntry(path: number[], event?: Event): void;
2081
+ selectDesignMenu(): void;
2082
+ menuText(item: any): string;
2083
+ menuClasses(style: any): string;
2084
+ menuStyle(style: any): Record<string, any>;
2085
+ private refreshDesignMenu;
2086
+ private applyDesignMenu;
2087
+ designEntryAction(action: DesignAction, path: number[]): void;
2088
+ designEntryDropped(event: CdkDragDrop<any>, parent: number[]): void;
1966
2089
  menuItems: any[];
1967
2090
  userInfo: any;
1968
2091
  settings: any;
@@ -2034,6 +2157,8 @@ declare class SideMenuComponent implements AfterViewInit, OnChanges, OnDestroy {
2034
2157
  * Mobile menu (overlay when open, no width when closed, styles under :host(.sidemenu-mobile)):
2035
2158
  * the app on iOS and Android - phones and tablets - and small browser windows.
2036
2159
  */
2160
+ get mobileClass(): boolean;
2161
+ get menuDesignClass(): boolean;
2037
2162
  mobileMode: boolean;
2038
2163
  onResizeMobileMode(): void;
2039
2164
  private computeMobileMode;
@@ -2047,6 +2172,8 @@ declare class SideMenuComponent implements AfterViewInit, OnChanges, OnDestroy {
2047
2172
  private destroyOktaSubscription;
2048
2173
  private destroyMobileLoginSubscription;
2049
2174
  private clearLoginUser;
2175
+ /** Login in the setting menu follows the provider's sign-in - rebuilt when it comes or goes. */
2176
+ private refreshSettingEntries;
2050
2177
  getUserInfoFromToken(token: string): any | null;
2051
2178
  /**
2052
2179
  * Whether a menu entry is hidden: sign-in (option.login) like before, and an entry with option.role only for a
@@ -2082,7 +2209,7 @@ declare class SideMenuComponent implements AfterViewInit, OnChanges, OnDestroy {
2082
2209
  private applyMenuTranslations;
2083
2210
  private applySettingTranslations;
2084
2211
  static ɵfac: i0.ɵɵFactoryDeclaration<SideMenuComponent, never>;
2085
- static ɵcmp: i0.ɵɵComponentDeclaration<SideMenuComponent, "vl-side-menu", never, { "menuItems": { "alias": "menuItems"; "required": false; }; "userInfo": { "alias": "userInfo"; "required": false; }; "settings": { "alias": "settings"; "required": false; }; "projects": { "alias": "projects"; "required": false; }; "tenantName": { "alias": "tenantName"; "required": false; }; "environment": { "alias": "environment"; "required": false; }; "projectSeleted": { "alias": "projectSeleted"; "required": false; }; "appVersionInfo": { "alias": "appVersionInfo"; "required": false; }; "startLanguages": { "alias": "startLanguages"; "required": false; }; "mainCenter": { "alias": "mainCenter"; "required": false; }; }, { "languageChange": "languageChange"; "invokeMenu": "invokeMenu"; "menuToggle": "menuToggle"; "invokeProject": "invokeProject"; "errorMessage": "errorMessage"; "deleteProject": "deleteProject"; "paginationType": "paginationType"; }, never, never, true, never>;
2212
+ static ɵcmp: i0.ɵɵComponentDeclaration<SideMenuComponent, "vl-side-menu", never, { "design": { "alias": "design"; "required": false; }; "menuLayout": { "alias": "menuLayout"; "required": false; }; "menuItems": { "alias": "menuItems"; "required": false; }; "userInfo": { "alias": "userInfo"; "required": false; }; "settings": { "alias": "settings"; "required": false; }; "projects": { "alias": "projects"; "required": false; }; "tenantName": { "alias": "tenantName"; "required": false; }; "environment": { "alias": "environment"; "required": false; }; "projectSeleted": { "alias": "projectSeleted"; "required": false; }; "appVersionInfo": { "alias": "appVersionInfo"; "required": false; }; "startLanguages": { "alias": "startLanguages"; "required": false; }; "mainCenter": { "alias": "mainCenter"; "required": false; }; }, { "designChange": "designChange"; "languageChange": "languageChange"; "invokeMenu": "invokeMenu"; "menuToggle": "menuToggle"; "invokeProject": "invokeProject"; "errorMessage": "errorMessage"; "deleteProject": "deleteProject"; "paginationType": "paginationType"; }, never, never, true, never>;
2086
2213
  }
2087
2214
 
2088
2215
  declare class Autocomplete implements OnChanges {
@@ -2135,6 +2262,11 @@ declare class Autocomplete implements OnChanges {
2135
2262
  * (phone in landscape, keyboard beside the dialog - test F15).
2136
2263
  */
2137
2264
  fitList(): void;
2265
+ /**
2266
+ * The field keeps the chosen entry's value - autocomplete.response.value ("workOrderNo" -> "00100000"), not the
2267
+ * whole entry: the entry showed as "[object Object]" on the card and went to the backend as an object. The entry
2268
+ * itself goes on (picked) so the container fills other fields (onSelect.mapFields). Typed text stays as typed.
2269
+ */
2138
2270
  changed(value: any): void;
2139
2271
  placeholder(): string;
2140
2272
  showError(): boolean;
@@ -2381,6 +2513,16 @@ declare function timeHourFormat(languageCode?: string): '12' | '24';
2381
2513
  * complete time without one gets AM (12 PM), and an hour from 13 becomes PM ("2030" -> "08:30 PM").
2382
2514
  */
2383
2515
  declare function shapeTimeText(text: string, twelveHours: boolean): string;
2516
+ /**
2517
+ * AM or PM as typed after the digits: the last "a" or "p" counts - "0430p", "4:30pm", and "04:30 AMP" (P typed after
2518
+ * the AM the field had added) are PM; "" when none. On a laptop PM could not be typed at all (2026-10-28).
2519
+ */
2520
+ declare function typedMeridiem(text: string): '' | 'AM' | 'PM';
2521
+ /** A whole 12- or 24-hour time text ("04:30 PM", "16:30") as hours and minutes of the day, or null. */
2522
+ declare function parseTimeText(text: string): {
2523
+ hours: number;
2524
+ minutes: number;
2525
+ } | null;
2384
2526
  /** AM <-> PM of a typed 12-hour time ("08:30 AM" -> "08:30 PM"); a time without one gets PM. */
2385
2527
  declare function toggleMeridiem(text: string): string;
2386
2528
 
@@ -2569,14 +2711,148 @@ declare class RecordStore {
2569
2711
  static ɵprov: i0.ɵɵInjectableDeclaration<RecordStore>;
2570
2712
  }
2571
2713
 
2714
+ declare const ADDON_API_VERSION = 1;
2715
+ /** addon/addon.json as the app reads it. */
2716
+ interface AddonManifest {
2717
+ addonApi?: number;
2718
+ entry?: string;
2719
+ routes?: Record<string, {
2720
+ handler: string;
2721
+ methods?: string[];
2722
+ }>;
2723
+ transforms?: Record<string, {
2724
+ handler: string;
2725
+ }>;
2726
+ hosts?: string[];
2727
+ limits?: {
2728
+ timeoutMs?: number;
2729
+ upstreamCalls?: number;
2730
+ };
2731
+ }
2732
+ /** The limits of a call: time, calls to other servers, records and size of the answer. */
2733
+ interface AddonLimits {
2734
+ timeoutMs: number;
2735
+ upstreamCalls: number;
2736
+ maxRecords: number;
2737
+ maxAnswerBytes: number;
2738
+ }
2739
+ declare function addonLimits(manifest: AddonManifest | null | undefined): AddonLimits;
2740
+ /** Why the manifest cannot run, or null. */
2741
+ declare function addonManifestProblem(manifest: AddonManifest | null | undefined): string | null;
2742
+ /** The function a transform name stands for (addon.json transforms), or null. */
2743
+ declare function transformHandler(manifest: AddonManifest | null | undefined, name: string): string | null;
2744
+ /** What a transform gave back, checked: a list of records within the limits; else the reason. */
2745
+ declare function checkTransformResult(name: string, result: unknown, limits: AddonLimits): {
2746
+ records?: any[];
2747
+ problem?: string;
2748
+ };
2749
+ /** What a route gave back, checked: { items, total } or a list; else the reason. */
2750
+ declare function checkRouteResult(path: string, result: any, limits: AddonLimits): {
2751
+ answer?: {
2752
+ items: any[];
2753
+ total: number;
2754
+ };
2755
+ problem?: string;
2756
+ };
2757
+ /**
2758
+ * Whether the add-on's http may call this address: an https or http address whose host is in addon.json hosts.
2759
+ * A host "{{name}}" is the value the app knows under that name (the sign-in, the Configuration).
2760
+ */
2761
+ declare function addonHostAllowed(url: string, hosts: string[] | undefined, values?: Record<string, any>): boolean;
2762
+ /** Whether a file of addon/ is code the app loads: .js / .mjs, not a test (*.spec.mjs) and not under tests/. */
2763
+ declare function isAddonCode(path: string): boolean;
2764
+
2765
+ declare class AddonHostService {
2766
+ private readonly couchdb;
2767
+ private dbName;
2768
+ private values;
2769
+ private prepared;
2770
+ private worker;
2771
+ private workerReady;
2772
+ private onLoaded;
2773
+ private readonly urls;
2774
+ private readonly calls;
2775
+ private seq;
2776
+ private upstreamLeft;
2777
+ /**
2778
+ * The project whose add-on runs (its database, "<tenant>_<project>"), and the values a host "{{name}}" of
2779
+ * addon.json stands for. Another project: the old add-on is stopped.
2780
+ */
2781
+ useProject(dbName: string, values?: Record<string, any>): void;
2782
+ /** The values for hosts "{{name}}" anew (after the sign-in). */
2783
+ setValues(values: Record<string, any>): void;
2784
+ /** Records through the add-on's transform (addon.json transforms.<name>): records in, records out. */
2785
+ transform(name: string, records: any[], params?: Record<string, any>): Promise<any[]>;
2786
+ /** Data of the add-on's route (addon.json routes, GET): { items, total }. */
2787
+ route(path: string, query: Record<string, any>, page?: number, size?: number): Promise<{
2788
+ items: any[];
2789
+ total: number;
2790
+ }>;
2791
+ private prepare;
2792
+ /** addon.json and the add-on's code files from the project, linked from the entry file on. */
2793
+ private load;
2794
+ private blobUrl;
2795
+ private startWorker;
2796
+ private call;
2797
+ private onMessage;
2798
+ /** The add-on's http.get: only the hosts of addon.json, at most limits.upstreamCalls per call. */
2799
+ private answerHttp;
2800
+ private stopWorker;
2801
+ private reset;
2802
+ static ɵfac: i0.ɵɵFactoryDeclaration<AddonHostService, never>;
2803
+ static ɵprov: i0.ɵɵInjectableDeclaration<AddonHostService>;
2804
+ }
2805
+
2806
+ /** The add-on's own files, path below addon/ -> source ("main.js", "zeiterfassung/tagesbuchungen.js"). */
2807
+ type AddonFiles = Record<string, string>;
2808
+ /**
2809
+ * The source with its comments blanked (same length, line breaks kept): an "import ... from" in a comment is no
2810
+ * import - test-kit.js shows one as an example and was read as importing itself (2026-10-28).
2811
+ */
2812
+ declare function blankComments(source: string): string;
2813
+ /** The names a file imports, in order. */
2814
+ declare function addonImports(source: string): string[];
2815
+ /**
2816
+ * The file an import names, below addon/ - null when it is no file of the add-on: a package ("lodash"), an
2817
+ * address ("https://…"), a path leaving addon/ ("../x.js").
2818
+ */
2819
+ declare function resolveAddonPath(from: string, specifier: string): string | null;
2820
+ /**
2821
+ * Links the add-on's files from the entry on: every import is replaced by the address makeUrl gives the imported
2822
+ * file (a blob: address in the app). Gives the entry's address. Throws with the file and the import when an import
2823
+ * is not allowed or not found, or files import each other in a circle.
2824
+ */
2825
+ declare function linkAddonModules(files: AddonFiles, entry: string, makeUrl: (source: string, path: string) => string): string;
2826
+
2827
+ /** The source of addon/test-kit.js - plain JavaScript, no import. */
2828
+ declare const ADDON_TEST_KIT = "/**\n * Test kit of this add-on - written by the Designer, do not change. A test file (*.spec.mjs) imports it:\n * import { test, expect } from './test-kit.js'; (from a folder: '../test-kit.js')\n * test('one entry over two days gives two bookings', () => {\n * expect(dailyLogs({ records: [...] })).toHaveLength(2);\n * });\n * In the Designer: button \"Tests\". In VS Code: node addon/<folder>/<name>.spec.mjs\n */\nconst tests = [];\nlet scheduled = false;\nconst inNode = typeof process !== 'undefined' && !!(process.versions && process.versions.node);\n\nexport function test(name, fn) {\n tests.push({ name: String(name), fn });\n if (inNode && !scheduled) {\n scheduled = true;\n setTimeout(async () => {\n const results = await runTests();\n for (const r of results) console.log((r.ok ? '\u2714 ' : '\u2716 ') + r.name + (r.ok ? '' : '\\n ' + r.error));\n const failed = results.filter((r) => !r.ok).length;\n console.log(failed ? failed + ' of ' + results.length + ' failed' : results.length + ' passed');\n if (failed) process.exitCode = 1;\n }, 0);\n }\n}\n\nfunction show(value) {\n try { return JSON.stringify(value); } catch (e) { return String(value); }\n}\n\nfunction same(a, b) {\n if (Object.is(a, b)) return true;\n if (a instanceof Date && b instanceof Date) return a.getTime() === b.getTime();\n if (!a || !b || typeof a !== 'object' || typeof b !== 'object') return false;\n if (Array.isArray(a) !== Array.isArray(b)) return false;\n const ka = Object.keys(a), kb = Object.keys(b);\n return ka.length === kb.length && ka.every((k) => same(a[k], b[k]));\n}\n\nexport function expect(actual) {\n const fail = (text) => { throw new Error(text); };\n return {\n toBe: (expected) => Object.is(actual, expected) || fail('expected ' + show(expected) + ', got ' + show(actual)),\n toEqual: (expected) => same(actual, expected) || fail('expected ' + show(expected) + ', got ' + show(actual)),\n toBeTruthy: () => !!actual || fail('expected a true value, got ' + show(actual)),\n toBeFalsy: () => !actual || fail('expected a false value, got ' + show(actual)),\n toHaveLength: (n) => (actual && actual.length === n) || fail('expected length ' + n + ', got ' + (actual ? actual.length : show(actual))),\n toContain: (item) => (actual && actual.includes && actual.includes(item)) || fail(show(actual) + ' does not contain ' + show(item)),\n toThrow: () => {\n try { actual(); } catch (e) { return true; }\n return fail('expected an error');\n },\n };\n}\n\n/** Runs the collected tests one after another: [{ name, ok, error }]. */\nexport async function runTests() {\n const results = [];\n for (const t of tests.splice(0)) {\n try {\n await t.fn();\n results.push({ name: t.name, ok: true });\n } catch (e) {\n results.push({ name: t.name, ok: false, error: String((e && e.message) || e) });\n }\n }\n return results;\n}\n";
2829
+ /** One test of a run: its file, its name, passed or the reason. */
2830
+ interface AddonTestResult {
2831
+ file: string;
2832
+ name: string;
2833
+ ok: boolean;
2834
+ error?: string;
2835
+ }
2836
+ /** A test file of the add-on: *.spec.mjs / *.spec.js below addon/. */
2837
+ declare function isAddonTestFile(path: string): boolean;
2838
+ /**
2839
+ * Runs every test file of the add-on (path -> source, addon/test-kit.js among them) in a Web Worker without network,
2840
+ * one file after the other, each under timeoutMs. A file that does not load, or runs too long, is one failed result.
2841
+ */
2842
+ declare function runAddonTests(files: AddonFiles, timeoutMs?: number): Promise<AddonTestResult[]>;
2843
+
2572
2844
  declare class BackendCallService {
2573
2845
  private readonly remoteLists;
2574
2846
  private readonly utilityService;
2575
2847
  private readonly oauthService;
2848
+ private readonly addons;
2576
2849
  /** The signed-in user (claims + token): from the app, else the stored sign-in. */
2577
2850
  currentUser(): Promise<any>;
2578
- /** The records after the option's named conversion; unknown names change nothing. */
2579
- transform(option: any, records: any[]): any[];
2851
+ /**
2852
+ * The records after the option's conversion: "addon:<name>" runs the project's add-on (addon.json transforms,
2853
+ * OFFENE-PUNKTE 92), another name a conversion of the library; unknown names change nothing.
2854
+ */
2855
+ transform(option: any, records: any[]): Promise<any[]>;
2580
2856
  /** Sends the records to the option's backend; true on success. */
2581
2857
  saveData(option: any, records: any[], extra?: CallContext): Promise<any>;
2582
2858
  /** Loads from the option's backend with the given context (e.g. filter values). */
@@ -2844,6 +3120,13 @@ declare class DateTimeControl {
2844
3120
  placeholder(): string;
2845
3121
  /** typed digits shaped into the pattern, like the toolkit keyboard does */
2846
3122
  typing(event: any): void;
3123
+ /**
3124
+ * A whole typed time becomes the field's value - the picker read "16:30" in a 12-hour field as nothing and the
3125
+ * field was empty after leaving it. The day of the value stays (a time field keeps its date part).
3126
+ */
3127
+ private takeTypedTime;
3128
+ /** In a 12-hour time field the arrow keys up / down switch AM <-> PM (as in usual time fields). */
3129
+ timeKey(event: KeyboardEvent): void;
2847
3130
  shown(value: any): string;
2848
3131
  showError(): boolean;
2849
3132
  message(): string;
@@ -2951,6 +3234,13 @@ declare class ControlComponent implements OnChanges {
2951
3234
  lockHints: LockHint[];
2952
3235
  /** 'edit': the field to type in (dialog, form); 'display': a record's value shown (card, grid) */
2953
3236
  mode: 'edit' | 'display';
3237
+ /**
3238
+ * A field shown in a list (card, grid row) names itself like a form field does (data-vl-field / data-vl-path), so
3239
+ * the app's test runner finds it there too - before, a card's fields had no name and a check of the card hit the
3240
+ * closed dialog's field instead (2026-10-29). In edit mode the form's wrapper carries the name.
3241
+ */
3242
+ get hostFieldKey(): string | null;
3243
+ get hostFieldPath(): string | null;
2954
3244
  /** display mode: the record whose value is shown (record[name]) */
2955
3245
  record: any;
2956
3246
  /** no label (a grid cell: the column's heading is the label) */
@@ -2998,7 +3288,7 @@ declare class ControlComponent implements OnChanges {
2998
3288
  name: string;
2999
3289
  ngOnChanges(): void;
3000
3290
  get display(): boolean;
3001
- /** protected in the layout, or a list: the value is shown, not typed in */
3291
+ /** a list: the value is shown, not typed in (protected in a form is a locked input, see ruleField) */
3002
3292
  get readonly(): boolean;
3003
3293
  /**
3004
3294
  * the value shown: in a list what the record stores (never the property's default - that belongs
@@ -3024,6 +3314,10 @@ declare class ControlComponent implements OnChanges {
3024
3314
  /** label.value, the layout's label.caption, then the data object's caption - translated */
3025
3315
  get label(): string;
3026
3316
  /** a required field (option.required true) shows a red * after its label */
3317
+ /**
3318
+ * The red * of a required field - not on a locked field (option.disabled, read-only): the person cannot fill it,
3319
+ * a rule or the app does (tm-test "To Date" is set from "From Date") - user 2026-10-29: no locked field carries a *.
3320
+ */
3027
3321
  get required(): boolean;
3028
3322
  /** a button click: a locked one sends nothing (no submit either) and asks the container to show what is missing */
3029
3323
  onButton(event: Event): void;
@@ -3036,6 +3330,8 @@ declare class ControlComponent implements OnChanges {
3036
3330
  classes: string;
3037
3331
  style: Record<string, any>;
3038
3332
  };
3333
+ /** the card field's parts: one Stripe line, or number / expiry / CVC in two or three rows (OFFENE-PUNKTE 103) */
3334
+ get cardLayout(): CardLayout;
3039
3335
  /** scope.style: the input's own style in the layout (the Designer's "input" style) */
3040
3336
  inputStyle(): {
3041
3337
  classes: string;
@@ -3061,6 +3357,13 @@ declare class ControlComponent implements OnChanges {
3061
3357
  * used for a new record only (dialog). A placeholder always becomes the value.
3062
3358
  */
3063
3359
  declare function applyLayoutDefaults(schemas: Record<string, any>, layout: any, asValue: boolean): void;
3360
+ /**
3361
+ * The start values from the signed-in user ({{userInfo.email}}, or {{email}} with option.fromUser) into the fields -
3362
+ * when the form opens and again when the sign-in comes or goes. A locked field (protected / disabled) always shows the
3363
+ * user's value; an open field only while it is empty or still holds what the sign-in put there, so a typed value
3364
+ * stays. Without a sign-in the field is empty, never the placeholder text (user 2026-10-29, luv2shop checkout).
3365
+ */
3366
+ declare function fillFromUser(schemas: Record<string, any>, userInfo: any): void;
3064
3367
 
3065
3368
  /** How many of the form's 12 columns a section takes: gridSpan 1..12, else the whole width. */
3066
3369
  declare function sectionSpan(section: any): number;
@@ -3148,5 +3451,29 @@ declare function sampleValue(type: string | undefined, name: string, index: numb
3148
3451
  */
3149
3452
  declare function sampleRecords(nodes: any[], propertySchema: any, count: number, image?: string): any[];
3150
3453
 
3151
- export { AppVersionResetService, Autocomplete, BACKEND_PROXY_PREFIX, BackendCallService, CardComponent, CardDesigner, CheckboxControl, ConfigService, ControlComponent, Couchdb, CustomKeyboardComponent, CustomKeyboardDirective, CustomKeyboardService, DATA_KEY_ANSWER, DATA_KEY_NONE, DEFAULT_DATE_FORMAT, DESIGN_TEXTS, DateFormatPipe, DateHintPipe, DateRangeControl, DateTextPipe, DateTimeControl, DesignBarComponent, DropMarkerComponent, DropdownControl, FormComponent, GRID_COLUMNS, GridComponent, HeaderMenuComponent, LogsComponent, MAX_FIELDS_PER_ROW, MediaControl, MediaSourcePipe, MobileKeycloakService, MobileOidcService, MobileOktaService, ModelComponent, NetworkLogService, NotificationService, NumberControl, PLACEHOLDER_SOURCES, PageData, PaginationComponent, PasswordControl, PlaceholderPipe, READ_ATTEMPT_TIMEOUT, REQUEST_STAGES, RETRY_PAUSES, RETRY_STATUSES, RadioControl, RecordStore, RemoteListService, RequestService, RequestTimeoutError, RequestTimeoutService, RulesPipe, SIDE_DOCK_CLASS, STORAGE_DATE_FORMAT, SectionDesigner, SideMenuComponent, SwitchControl, TermsDialog, TextareaControl, Textbox, UtilityService, ViewToolkitModule, VisiblePipe, acceptedLocally, addButton, addCardButton, addSection, applyLayoutDefaults, backendTermsState, backendUrl, buildBackendCall, buttonLocked, cardButton, clearHeader, cloneLayout, columnFromProperty, controlKind, controlProperty, currencyDigits, currentDateLanguage, dateDigitCount, dateInputPattern, designDropIds, designTexts, displayDateValue, displayNumber, dropCardProperty, dropGridProperty, dropObjectName, dropProperty, dropTypeAt, elementFromProperty, fieldFromProperty, fieldInnerLayoutStyle, fieldModel, fieldRules, fieldSpan, fillPlaceholders, fixedTimeText, formatDate, formatDates, fromStorageValue, hasBackendCall, headerButton, inputFormatHint, insertField, isBrowserSource, isNativeMobile, isNativePhone, isPropertyDrop, isSignedIn, isTarget, languageDatePattern, layoutPlaceholder, lockHint, lockReason, lockReasons, mediaKind, moveCardElement, moveColumn, moveField, moveSection, newButton, newSection, normalizeCard, normalizeCustomKeyboardType, normalizeSections, numberShape, numberStep, numberSuffix, parseRecords, parseStorageDate, primeDatePattern, proxyFor, rebalanceRow, recordOf, recordsFrom, removeCardElement, removeColumn, removeField, removeHeaderElement, removeSection, replaceCardElement, replaceColumn, replaceField, replaceSection, resizeColumn, resolveCustomKeyboardType, resolvePlaceholder, resolveTemplate, ruleMessage, sampleRecords, sampleValue, sectionSpan, sectionSticky, sectionTabletSpan, sectionVisible, setDateLanguage, setInputHintLanguage, setProxyEnvironment, setToolkitKeyboardOnWeb, shapeDateDigits, shapeTimeText, sideDockWidth, splitReference, stagedRead, stagedRequest, storageKind, storageValue, storedToTyped, styleParts, termsStamp, termsStorageKey, termsToConfirm, termsUrl, termsUser, testAction, testFieldKey, testFieldPath, testWrites, timeHourFormat, toggleMeridiem, toolkitKeyboardActive, typedToStored, usesTwelveHours, visibleFields, whenOnline, withAppPagination };
3152
- export type { BackendCall, CallContext, CardDesignerHost, CardDragData, CardDropSpot, CardDropType, CardPlace, ControlKind, CustomKeyboardTarget, CustomKeyboardType, DataSource, DesignAction, DesignDevice, DesignEvent, DesignPropertyDrop, DesignTarget, DesignTexts, DropSpot, DropType, FieldKind, FieldModel, FieldRules, LockHint, LockReason, MediaKind, MobileAuthTokens, MobileOktaRefresh, MobileOktaTokens, NumberShape, OidcProvider, OidcRefresh, OidcTokens, PageDataDeps, RequestTimeoutMessages, SectionDesignerHost, SectionDragData, SectionKind, StagedReadOptions, StorageKind, TermsAcceptance, TermsDialogDocument, TermsSettings, VlDesign };
3454
+ type TreeKey = 'elements' | 'submenu';
3455
+ declare function validTreePath(path: number[]): boolean;
3456
+ declare function treeNode(items: any[], path: number[], key: TreeKey): any;
3457
+ declare function treePaths(items: any[], key: TreeKey, parent?: number[]): number[][];
3458
+ declare function replaceTreeNode(items: any[], path: number[], value: any, key: TreeKey): any[];
3459
+ declare function removeTreeNode(items: any[], path: number[], key: TreeKey): any[];
3460
+ /** destinationIndex is the insertion index after removal, like CDK's currentIndex. */
3461
+ declare function moveTreeNode(items: any[], from: number[], parent: number[], destinationIndex: number, key: TreeKey): any[];
3462
+
3463
+ type DesignTranslations = Readonly<Record<string, string>>;
3464
+ declare function designText(text: any, translations?: DesignTranslations | null): string;
3465
+ declare function designField<T>(field: T, translations?: DesignTranslations | null): T;
3466
+
3467
+ declare class DesignFieldPipe implements PipeTransform {
3468
+ transform<T>(value: T, translations?: DesignTranslations | null): T;
3469
+ static ɵfac: i0.ɵɵFactoryDeclaration<DesignFieldPipe, never>;
3470
+ static ɵpipe: i0.ɵɵPipeDeclaration<DesignFieldPipe, "vlDesignField", true>;
3471
+ }
3472
+ declare class DesignTextPipe implements PipeTransform {
3473
+ transform(value: any, translations?: DesignTranslations | null): string;
3474
+ static ɵfac: i0.ɵɵFactoryDeclaration<DesignTextPipe, never>;
3475
+ static ɵpipe: i0.ɵɵPipeDeclaration<DesignTextPipe, "vlDesignText", true>;
3476
+ }
3477
+
3478
+ export { ADDON_API_VERSION, ADDON_TEST_KIT, AddonHostService, AppVersionResetService, Autocomplete, BACKEND_PROXY_PREFIX, BackendCallService, CardComponent, CardDesigner, CheckboxControl, ConfigService, ControlComponent, Couchdb, CustomKeyboardComponent, CustomKeyboardDirective, CustomKeyboardService, DATA_KEY_ANSWER, DATA_KEY_NONE, DEFAULT_DATE_FORMAT, DESIGN_TEXTS, DateFormatPipe, DateHintPipe, DateRangeControl, DateTextPipe, DateTimeControl, DesignBarComponent, DesignFieldPipe, DesignTextPipe, DropMarkerComponent, DropdownControl, FormComponent, GRID_COLUMNS, GridComponent, HeaderMenuComponent, LogsComponent, MAX_FIELDS_PER_ROW, MediaControl, MediaSourcePipe, MobileKeycloakService, MobileOidcService, MobileOktaService, ModelComponent, NetworkLogService, NotificationService, NumberControl, PLACEHOLDER_SOURCES, PageData, PaginationComponent, PasswordControl, PlaceholderPipe, READ_ATTEMPT_TIMEOUT, REQUEST_STAGES, RETRY_PAUSES, RETRY_STATUSES, RadioControl, RecordStore, RemoteListService, RequestService, RequestTimeoutError, RequestTimeoutService, RulesPipe, SEND_ERROR_KEY, SIDE_DOCK_CLASS, STORAGE_DATE_FORMAT, SectionDesigner, SideMenuComponent, SwitchControl, TermsDialog, TextareaControl, Textbox, UtilityService, ViewToolkitModule, VisiblePipe, acceptedLocally, addButton, addCardButton, addSection, addonHostAllowed, addonImports, addonLimits, addonManifestProblem, applyLayoutDefaults, backendTermsState, backendUrl, blankComments, buildBackendCall, buttonLocked, cardButton, checkRouteResult, checkTransformResult, clearHeader, cloneLayout, columnFromProperty, controlKind, controlProperty, currencyDigits, currentDateLanguage, dateDigitCount, dateInputPattern, designDropIds, designField, designText, designTexts, displayDateValue, displayNumber, dropCardProperty, dropGridProperty, dropObjectName, dropProperty, dropTypeAt, elementFromProperty, fieldFromProperty, fieldInnerLayoutStyle, fieldModel, fieldRules, fieldSpan, fillFromUser, fillPlaceholders, fixedTimeText, formatDate, formatDates, fromStorageValue, gridColumnCount, hasBackendCall, headerButton, inputFormatHint, insertField, isAddonCode, isAddonTestFile, isBrowserSource, isNativeMobile, isNativePhone, isPropertyDrop, isSignedIn, isTarget, languageDatePattern, layoutPlaceholder, linkAddonModules, lockHint, lockReason, lockReasons, mediaKind, moveCardElement, moveColumn, moveField, moveSection, moveTreeNode, newButton, newSection, normalizeCard, normalizeCustomKeyboardType, normalizeSections, numberShape, numberStep, numberSuffix, parseRecords, parseStorageDate, parseTimeText, primeDatePattern, proxyFor, rebalanceRow, recordOf, recordsFrom, removeCardElement, removeColumn, removeField, removeHeaderElement, removeSection, removeTreeNode, replaceCardElement, replaceColumn, replaceField, replaceSection, replaceTreeNode, requestDesignDelete, resizeColumn, resolveAddonPath, resolveCustomKeyboardType, resolvePlaceholder, resolveTemplate, ruleMessage, runAddonTests, sampleRecords, sampleValue, sectionSpan, sectionSticky, sectionTabletSpan, sectionVisible, sendErrorText, sendsForm, setDateLanguage, setInputHintLanguage, setProxyEnvironment, setToolkitKeyboardOnWeb, shapeDateDigits, shapeTimeText, sideDockWidth, splitReference, stagedRead, stagedRequest, storageKind, storageValue, storedToTyped, styleParts, termsStamp, termsStorageKey, termsToConfirm, termsUrl, termsUser, testAction, testFieldKey, testFieldPath, testWrites, timeHourFormat, toggleMeridiem, toolkitKeyboardActive, transformHandler, treeNode, treePaths, typedMeridiem, typedToStored, usesTwelveHours, validTreePath, visibleFields, whenOnline, withAppPagination, withoutMarks };
3479
+ export type { AddonFiles, AddonLimits, AddonManifest, AddonTestResult, BackendCall, CallContext, CardDesignerHost, CardDragData, CardDropSpot, CardDropType, CardPlace, ControlKind, CustomKeyboardTarget, CustomKeyboardType, DataSource, DesignAction, DesignDeleteRequest, DesignDevice, DesignEvent, DesignPropertyDrop, DesignTarget, DesignTexts, DesignTranslations, DropSpot, DropType, FieldKind, FieldModel, FieldRules, LockHint, LockReason, LockState, MediaKind, MobileAuthTokens, MobileOktaRefresh, MobileOktaTokens, NumberShape, OidcProvider, OidcRefresh, OidcTokens, PageDataDeps, RequestTimeoutMessages, SectionDesignerHost, SectionDragData, SectionKind, SendResult, StagedReadOptions, StorageKind, TermsAcceptance, TermsDialogDocument, TermsSettings, TreeKey, VlDesign };