@yomotech/view-toolkit 1.0.47 → 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.
- package/fesm2022/yomotech-view-toolkit-catalog.mjs +28 -4
- package/fesm2022/yomotech-view-toolkit-catalog.mjs.map +1 -1
- package/fesm2022/yomotech-view-toolkit.mjs +1651 -670
- package/fesm2022/yomotech-view-toolkit.mjs.map +1 -1
- package/package.json +1 -1
- package/types/yomotech-view-toolkit-catalog.d.ts +20 -3
- package/types/yomotech-view-toolkit.d.ts +357 -30
package/package.json
CHANGED
|
@@ -66,6 +66,15 @@ declare const CONTROL_TYPES: Bag;
|
|
|
66
66
|
declare function effectiveControl(option: Bag | any, schema?: Bag | any, fallback?: string): string;
|
|
67
67
|
/** Controls a value is typed or chosen in - they take a placeholder. */
|
|
68
68
|
declare const PLACEHOLDER_CONTROLS: string[];
|
|
69
|
+
/**
|
|
70
|
+
* How the card field (creditCard) lays out its parts (option.cardLayout): oneRow - Stripe's single line (card number,
|
|
71
|
+
* MM / YY, CVC; the default), twoRows - the number alone, below it expiry and CVC side by side, threeRows - all three
|
|
72
|
+
* below each other. A phone cut the single line off (OFFENE-PUNKTE 103).
|
|
73
|
+
*/
|
|
74
|
+
declare const CARD_LAYOUTS: readonly ["oneRow", "twoRows", "threeRows"];
|
|
75
|
+
type CardLayout = typeof CARD_LAYOUTS[number];
|
|
76
|
+
/** The card field's layout, oneRow when the layout names none or an unknown one. */
|
|
77
|
+
declare function cardLayoutOf(option: Bag | any): CardLayout;
|
|
69
78
|
/** The toolkit keyboards a field can ask for (option.keyboardType). */
|
|
70
79
|
declare const KEYBOARD_TYPES: readonly ["string", "alpha", "numeric", "email", "date", "time"];
|
|
71
80
|
/** keyboardType values that keep the device's system keyboard. */
|
|
@@ -132,7 +141,7 @@ declare const TEST_DEVICES: readonly ["phone", "tablet", "laptop", "desktop"];
|
|
|
132
141
|
declare const ORIENTATIONS: readonly ["portrait", "landscape"];
|
|
133
142
|
declare const STEP_KINDS: readonly ["open", "menu", "tap", "type", "pick", "press", "scroll", "openRecord", "close", "cart", "rotate", "device", "wait", "expect"];
|
|
134
143
|
/** What an expect step can check - one of them per step. */
|
|
135
|
-
declare const EXPECT_KINDS: readonly ["value", "shows", "keyboard", "list", "message", "visible", "hidden", "locked", "blocked", "inFrame", "page", "records", "recordsAtLeast", "samePlace", "cartCount", "toast"];
|
|
144
|
+
declare const EXPECT_KINDS: readonly ["value", "shows", "keyboard", "list", "message", "visible", "hidden", "locked", "blocked", "inFrame", "page", "records", "recordsAtLeast", "samePlace", "cartCount", "toast", "checked", "unchecked", "cardRows"];
|
|
136
145
|
/** What has to stay inside the page frame (safe areas, top gap). */
|
|
137
146
|
declare const FRAME_PARTS: readonly ["keyboard", "dialog", "calendar", "list", "menu"];
|
|
138
147
|
declare const LIST_STATES: readonly ["open", "closed"];
|
|
@@ -166,6 +175,12 @@ interface TestExpect {
|
|
|
166
175
|
cartCount?: number | string;
|
|
167
176
|
/** a message shown to the user (its text or its translation key) */
|
|
168
177
|
toast?: string;
|
|
178
|
+
/** the card field (creditCard) stands in so many rows (1-3) and none of its parts is wider than the field */
|
|
179
|
+
cardRows?: number;
|
|
180
|
+
/** a check box / switch (its key) is on - also read-only on a card or in a grid row */
|
|
181
|
+
checked?: string;
|
|
182
|
+
/** a check box / switch (its key) is off */
|
|
183
|
+
unchecked?: string;
|
|
169
184
|
}
|
|
170
185
|
interface TestStep {
|
|
171
186
|
open?: string;
|
|
@@ -174,6 +189,8 @@ interface TestStep {
|
|
|
174
189
|
tap?: string;
|
|
175
190
|
type?: string;
|
|
176
191
|
into?: string;
|
|
192
|
+
/** with type: the field's n-th input (1-based) - the end of a period (daterange) is 2 */
|
|
193
|
+
at?: number;
|
|
177
194
|
pick?: string;
|
|
178
195
|
in?: string;
|
|
179
196
|
press?: string;
|
|
@@ -455,5 +472,5 @@ declare function appSettingsMenu(menu: any[], center: Bag | any, context?: {
|
|
|
455
472
|
signedIn?: boolean;
|
|
456
473
|
}): any[];
|
|
457
474
|
|
|
458
|
-
export { APP_SETTINGS, APP_SETTINGS_PATH, APP_SETTING_BLOCKS, BASIC_TYPES, CONTROLS, CONTROL_TYPES, DATA_FORMATS, DATA_OBJECT_KEYS, DATA_OBJECT_NAME_PLACES, DATA_OBJECT_PLACES, DEFAULT_DEVICES, DISPLAY_FORMATS, DOCUMENT_KINDS, EXPECT_KINDS, FRAME_PARTS, KEYBOARD_CONTROLS, KEYBOARD_TYPES, LIST_STATES, LOGIN_FLAGS, LOGIN_METHODS, LOGIN_STORAGES, LOGIN_WHEN, MENU_DECIDED_BY, MENU_ENTRY_KINDS, MENU_SWITCHABLE, NUMBER_STYLES, ORIENTATIONS, PAGINATION_ALIGNS, PAGINATION_PLACEMENTS, PAGINATION_TYPES, PLACEHOLDER_CONTROLS, RESULTS_DIR, RESULTS_KEEP, SETTING_MENU_TEXTS, START_PAGE_KEYS, START_PAGE_PATH, STEP_KINDS, SYSTEM_KEYBOARDS, TEMPORAL_TRANSFER, TERMS_DOCUMENTS, TESTS_DIR, TEST_DATA_FILE, TEST_DEVICES, TYPE_ALIASES, appSettingsMenu, assertFieldSettings, baseType, basicType, canonicalControl, checkAppSettings, checkPagePagination, checkTestFlow, clone, controlChoicesFor, controlsFor, dataSettings, defaultKeyboard, displaySettings, effectiveControl, effectiveFormat, flowDevices, keyboardFor, languageName, loginMethod, normalizeFormat, pageOf, paginationFor, parseDevice, readAppSettings, renameDataObject, resolveProperty, resultsToDelete, rolesOf, rulesFor, startPage, startPageFor, stepKind, temporalPart, testDataRefs, validateSettings, validationSettings, withTestData };
|
|
459
|
-
export type { AppSettingBlock, AppSettingDef, AppSettings, AppSettingsProblem, Bag, DocumentKind, FlowResult, LoginStorage, LoginWhen, MenuEntryKind, Orientation, Pagination, PaginationAlign, PaginationPlacement, PaginationType, Setting, StepResult, TemporalPart, TermsDocument, TestDevice, TestExpect, TestFlow, TestProblem, TestRun, TestStep };
|
|
475
|
+
export { APP_SETTINGS, APP_SETTINGS_PATH, APP_SETTING_BLOCKS, BASIC_TYPES, CARD_LAYOUTS, CONTROLS, CONTROL_TYPES, DATA_FORMATS, DATA_OBJECT_KEYS, DATA_OBJECT_NAME_PLACES, DATA_OBJECT_PLACES, DEFAULT_DEVICES, DISPLAY_FORMATS, DOCUMENT_KINDS, EXPECT_KINDS, FRAME_PARTS, KEYBOARD_CONTROLS, KEYBOARD_TYPES, LIST_STATES, LOGIN_FLAGS, LOGIN_METHODS, LOGIN_STORAGES, LOGIN_WHEN, MENU_DECIDED_BY, MENU_ENTRY_KINDS, MENU_SWITCHABLE, NUMBER_STYLES, ORIENTATIONS, PAGINATION_ALIGNS, PAGINATION_PLACEMENTS, PAGINATION_TYPES, PLACEHOLDER_CONTROLS, RESULTS_DIR, RESULTS_KEEP, SETTING_MENU_TEXTS, START_PAGE_KEYS, START_PAGE_PATH, STEP_KINDS, SYSTEM_KEYBOARDS, TEMPORAL_TRANSFER, TERMS_DOCUMENTS, TESTS_DIR, TEST_DATA_FILE, TEST_DEVICES, TYPE_ALIASES, appSettingsMenu, assertFieldSettings, baseType, basicType, canonicalControl, cardLayoutOf, checkAppSettings, checkPagePagination, checkTestFlow, clone, controlChoicesFor, controlsFor, dataSettings, defaultKeyboard, displaySettings, effectiveControl, effectiveFormat, flowDevices, keyboardFor, languageName, loginMethod, normalizeFormat, pageOf, paginationFor, parseDevice, readAppSettings, renameDataObject, resolveProperty, resultsToDelete, rolesOf, rulesFor, startPage, startPageFor, stepKind, temporalPart, testDataRefs, validateSettings, validationSettings, withTestData };
|
|
476
|
+
export type { AppSettingBlock, AppSettingDef, AppSettings, AppSettingsProblem, Bag, CardLayout, DocumentKind, FlowResult, LoginStorage, LoginWhen, MenuEntryKind, Orientation, Pagination, PaginationAlign, PaginationPlacement, PaginationType, Setting, StepResult, TemporalPart, TermsDocument, TestDevice, TestExpect, TestFlow, TestProblem, TestRun, TestStep };
|