@yomotech/view-toolkit 1.0.56 → 1.0.58
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/yomotech-view-toolkit-catalog.mjs +15 -5
- package/fesm2022/yomotech-view-toolkit-catalog.mjs.map +1 -1
- package/fesm2022/yomotech-view-toolkit.mjs +21 -110
- package/fesm2022/yomotech-view-toolkit.mjs.map +1 -1
- package/package.json +1 -1
- package/types/yomotech-view-toolkit-catalog.d.ts +11 -3
- package/types/yomotech-view-toolkit.d.ts +5 -10
package/package.json
CHANGED
|
@@ -110,7 +110,7 @@ declare function temporalPart(property: Bag$1 | any): TemporalPart | null;
|
|
|
110
110
|
* - read: ISO, date and time, a value without timezone is local wall time; Z or an offset is
|
|
111
111
|
* dropped (wall time) - P5W1 sends 2025-11-04T16:30:00
|
|
112
112
|
* - send: ISO with the device's offset, 2026-10-18T08:00:00+02:00 (the daily split of the time
|
|
113
|
-
* recording,
|
|
113
|
+
* recording, its add-on, stays as it is)
|
|
114
114
|
* - shown and typed: the app language, year with four digits (de 18.10.2026, time 08:05);
|
|
115
115
|
* lists: displayFormat short / medium (default) / long / iso (2026-10-30 in every language) / custom
|
|
116
116
|
*/
|
|
@@ -160,9 +160,9 @@ declare const TEST_DEVICES: readonly ["mobile", "tablet", "laptop", "desktop"];
|
|
|
160
160
|
/** Old spellings of a device, still taken: "phone" is "mobile" (2026-10-31, the preview's word). */
|
|
161
161
|
declare const OLD_DEVICE_NAMES: Record<string, string>;
|
|
162
162
|
declare const ORIENTATIONS: readonly ["portrait", "landscape"];
|
|
163
|
-
declare const STEP_KINDS: readonly ["open", "menu", "tap", "type", "pick", "press", "scroll", "openRecord", "close", "cart", "rotate", "device", "wait", "language", "reload", "signIn", "signOut", "expect"];
|
|
163
|
+
declare const STEP_KINDS: readonly ["open", "menu", "tap", "type", "pick", "press", "scroll", "openRecord", "ifRecords", "goToPage", "close", "cart", "rotate", "device", "wait", "language", "reload", "signIn", "signOut", "expect"];
|
|
164
164
|
/** What an expect step can check - one of them per step. */
|
|
165
|
-
declare const EXPECT_KINDS: readonly ["value", "shows", "keyboard", "list", "message", "visible", "hidden", "locked", "blocked", "inFrame", "page", "records", "recordsAtLeast", "samePlace", "cartCount", "toast", "checked", "unchecked", "cardRows", "formatted", "translated", "fieldVisible", "restored", "layout"];
|
|
165
|
+
declare const EXPECT_KINDS: readonly ["value", "shows", "keyboard", "list", "message", "visible", "hidden", "locked", "blocked", "inFrame", "page", "records", "recordsAtLeast", "listLoaded", "pdf", "samePlace", "cartCount", "toast", "checked", "unchecked", "cardRows", "formatted", "translated", "fieldVisible", "restored", "layout"];
|
|
166
166
|
/** How a value is shown in the language's form (expect formatted). */
|
|
167
167
|
declare const FORMATS: readonly ["date", "time", "datetime", "number", "currency"];
|
|
168
168
|
/** Languages written right to left - not tested until right-to-left is supported (decision 2026-10-30). */
|
|
@@ -194,6 +194,10 @@ interface TestExpect {
|
|
|
194
194
|
/** the records the open list shows now (exactly / at least) */
|
|
195
195
|
records?: number;
|
|
196
196
|
recordsAtLeast?: number;
|
|
197
|
+
/** the open list has finished loading without a failure - it may be empty (live data) */
|
|
198
|
+
listLoaded?: true;
|
|
199
|
+
/** true: the PDF viewer shows a page; false: no viewer open */
|
|
200
|
+
pdf?: boolean;
|
|
197
201
|
/** back with the X the list stands where it was left (records and scroll position before openRecord) */
|
|
198
202
|
samePlace?: true;
|
|
199
203
|
/** items in the cart (the header's count); "+1" = one more than at the flow's last cart check */
|
|
@@ -233,10 +237,14 @@ interface TestStep {
|
|
|
233
237
|
press?: string;
|
|
234
238
|
/** pages to go on in the open list (swipe up / its end into view), 1-20 */
|
|
235
239
|
scroll?: number;
|
|
240
|
+
/** a list with page numbers: the number n is pressed; fewer pages than n is noted, not failed */
|
|
241
|
+
goToPage?: number;
|
|
236
242
|
/** a record of the open list by its position (1 = first) or by its shown name - its link opens its page */
|
|
237
243
|
openRecord?: number | string;
|
|
238
244
|
/** the page X - back to the page before */
|
|
239
245
|
close?: true;
|
|
246
|
+
/** with an empty list the rest of the flow is skipped - noted, not failed */
|
|
247
|
+
ifRecords?: true;
|
|
240
248
|
/** the cart in the header */
|
|
241
249
|
cart?: true;
|
|
242
250
|
rotate?: Orientation;
|
|
@@ -581,12 +581,6 @@ declare class UtilityService {
|
|
|
581
581
|
restoreDatesFromStorage(records: any[], propertySchema: any): any[];
|
|
582
582
|
/** A stored date text as the wall time it names (date-format.ts). */
|
|
583
583
|
parseLocalISODate(value: string): Date;
|
|
584
|
-
convertToDailyLogs(cardOrCards: any | any[]): any[];
|
|
585
|
-
private applyTimeToDay;
|
|
586
|
-
private startOfDay;
|
|
587
|
-
private endOfDay;
|
|
588
|
-
private isSameDay;
|
|
589
|
-
private toLocalISO;
|
|
590
584
|
getMediaSrc(file: any): string;
|
|
591
585
|
private updateProjectlanguage;
|
|
592
586
|
currentProjectlanguage$: rxjs.Observable<any>;
|
|
@@ -1042,6 +1036,8 @@ declare class PageData {
|
|
|
1042
1036
|
pageCount: number;
|
|
1043
1037
|
totalItems: number;
|
|
1044
1038
|
loading: boolean;
|
|
1039
|
+
/** the last load of the backend failed (a test tells an empty list from a broken one) */
|
|
1040
|
+
loadFailed: boolean;
|
|
1045
1041
|
filter: Record<string, any>;
|
|
1046
1042
|
/** The last backend answer as it came (its paging fields). */
|
|
1047
1043
|
lastAnswer: any;
|
|
@@ -1627,6 +1623,8 @@ declare class GridComponent implements AfterViewInit, OnDestroy {
|
|
|
1627
1623
|
readonly vlFieldPath: typeof testFieldPath;
|
|
1628
1624
|
readonly vlAction: typeof testAction;
|
|
1629
1625
|
readonly vlWrites: typeof testWrites;
|
|
1626
|
+
/** A row's save icon writes real data unless it keeps the row in a browser list. */
|
|
1627
|
+
rowWrites(option: any): 'true' | 'false';
|
|
1630
1628
|
get designTranslations(): Readonly<Record<string, string>> | undefined;
|
|
1631
1629
|
design: VlDesign | null;
|
|
1632
1630
|
/** What was chosen or changed on the Designer's canvas. */
|
|
@@ -3070,10 +3068,7 @@ declare class BackendCallService {
|
|
|
3070
3068
|
private readonly addons;
|
|
3071
3069
|
/** The signed-in user (claims + token): from the app, else the stored sign-in. */
|
|
3072
3070
|
currentUser(): Promise<any>;
|
|
3073
|
-
/**
|
|
3074
|
-
* The records after the option's conversion: "addon:<name>" runs the project's add-on (addon.json transforms,
|
|
3075
|
-
* OFFENE-PUNKTE 92), another name a conversion of the library; unknown names change nothing.
|
|
3076
|
-
*/
|
|
3071
|
+
/** The records after the option's conversion: "addon:<name>" runs the project's add-on (addon.json transforms). */
|
|
3077
3072
|
transform(option: any, records: any[]): Promise<any[]>;
|
|
3078
3073
|
/** Sends the records to the option's backend; true on success. */
|
|
3079
3074
|
saveData(option: any, records: any[], extra?: CallContext): Promise<any>;
|