@yomotech/view-toolkit 1.0.80 → 1.0.82
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 +29 -1
- package/fesm2022/yomotech-view-toolkit-catalog.mjs.map +1 -1
- package/fesm2022/yomotech-view-toolkit.mjs +9 -4
- package/fesm2022/yomotech-view-toolkit.mjs.map +1 -1
- package/package.json +1 -1
- package/types/yomotech-view-toolkit-catalog.d.ts +13 -1
- package/types/yomotech-view-toolkit.d.ts +2 -2
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-18
|
|
2
|
+
// - new: buttonsColumnOf - the card's buttons in a column on the right only when center.option.buttonsColumn says so (238)
|
|
1
3
|
// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-17
|
|
2
4
|
// - new: data type "duration" (hours and minutes, HH:mm in every language) - a basic type, typed with the time picker
|
|
3
5
|
// and the time keyboard, travels as text
|
|
@@ -706,6 +708,13 @@ function maxLinesOf(option) {
|
|
|
706
708
|
function alignRowsOf(center) {
|
|
707
709
|
return center?.option?.alignRows === true;
|
|
708
710
|
}
|
|
711
|
+
/**
|
|
712
|
+
* The card's buttons as one narrow column on the right (center.option.buttonsColumn, set in the Designer) - only when the
|
|
713
|
+
* page says so: the library never moves buttons by itself (OFFENE-PUNKTE 238, user 2026-11-18).
|
|
714
|
+
*/
|
|
715
|
+
function buttonsColumnOf(center) {
|
|
716
|
+
return center?.option?.buttonsColumn === true;
|
|
717
|
+
}
|
|
709
718
|
|
|
710
719
|
// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-18
|
|
711
720
|
// - change: close means the X in front - PDF viewer, an open dialog, else the page X
|
|
@@ -3024,6 +3033,8 @@ function visitStyles(node, path, visit) {
|
|
|
3024
3033
|
// - new: sizes per device, roundings per part, logo and pictures, font roles named like the Designer (point 173 step 2.1,
|
|
3025
3034
|
// sketch dev/skizzen/theme-groessen.html) - "standard" is today's look (shown, never put on the page), "devices" lets a
|
|
3026
3035
|
// value differ on tablet / web (key@tablet, key@web), "options" are the allowed values of a choice
|
|
3036
|
+
// - new: DESIGN_DEVICE_MEDIA (tablet: 600 wide and high - a phone turned stays mobile; web: from 1280) and themeDeviceCss -
|
|
3037
|
+
// the device values of a theme and the app as @media rules (point 173 step 2.2)
|
|
3027
3038
|
// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-09
|
|
3028
3039
|
// - fix: an app's own menu colours bring the derived ones (muted text, hover, divider) - the theme's stayed on a light menu
|
|
3029
3040
|
// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-08
|
|
@@ -3040,6 +3051,11 @@ function visitStyles(node, path, visit) {
|
|
|
3040
3051
|
// - new: STANDARD_THEMES, themeVariables - the platform's themes; an app names one in center.theme of Main
|
|
3041
3052
|
/** The devices a value may differ on: mobile is the key itself, the others key@tablet / key@web. */
|
|
3042
3053
|
const DESIGN_DEVICES = ['tablet', 'web'];
|
|
3054
|
+
/** Where a device starts (CSS media query) - the same for the runtime's theme and the library's styles. */
|
|
3055
|
+
const DESIGN_DEVICE_MEDIA = {
|
|
3056
|
+
tablet: '(min-width: 600px) and (min-height: 600px)',
|
|
3057
|
+
web: '(min-width: 1280px)',
|
|
3058
|
+
};
|
|
3043
3059
|
const value = (key, group, kind, from) => ({
|
|
3044
3060
|
key,
|
|
3045
3061
|
cssVar: `--vl-${key.replace(/\./g, '-')}`,
|
|
@@ -3329,6 +3345,18 @@ function themeVariables(id, own) {
|
|
|
3329
3345
|
}
|
|
3330
3346
|
return designVariables({ ...(theme?.values ?? {}), ...derived, ...mine });
|
|
3331
3347
|
}
|
|
3348
|
+
/**
|
|
3349
|
+
* The device values of a theme and the app's own values over it (key@tablet, key@web) as CSS: one @media rule per device
|
|
3350
|
+
* that has any, tablet before web; '' when none. Values pass isSafeDesignValue first (safeDesignValues).
|
|
3351
|
+
*/
|
|
3352
|
+
function themeDeviceCss(id, own) {
|
|
3353
|
+
const theme = appTheme(id);
|
|
3354
|
+
const devices = designDeviceVariables({ ...(theme?.values ?? {}), ...safeDesignValues(own) });
|
|
3355
|
+
return ['tablet', 'web']
|
|
3356
|
+
.filter((device) => Object.keys(devices[device]).length)
|
|
3357
|
+
.map((device) => `@media ${DESIGN_DEVICE_MEDIA[device]} { :root { ${Object.entries(devices[device]).map(([name, v]) => `${name}: ${v};`).join(' ')} } }`)
|
|
3358
|
+
.join('\n');
|
|
3359
|
+
}
|
|
3332
3360
|
|
|
3333
3361
|
// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-09
|
|
3334
3362
|
// - new: opening hours as data (point 213 worklist 29, user decision A): a week of times per day (day, from, to; a day
|
|
@@ -3505,5 +3533,5 @@ function formatPrice(amount, currency, lang, fromWord = '') {
|
|
|
3505
3533
|
* Generated bundle index. Do not edit.
|
|
3506
3534
|
*/
|
|
3507
3535
|
|
|
3508
|
-
export { APP_DATA_KEEP, APP_KEYBOARD_DEVICES, APP_SETTINGS, APP_SETTINGS_PATH, APP_SETTING_BLOCKS, BACKEND_ACTIONS, BASIC_TYPES, BROWSER_STORAGES, CALCULATE_OPERATORS, CALL_KEYS, CALL_KINDS, CARD_LAYOUTS, CONTACT_ICONS, CONTACT_KINDS, CONTROLS, CONTROL_TYPES, DATA_FORMATS, DATA_OBJECT_KEYS, DATA_OBJECT_NAME_PLACES, DATA_OBJECT_PLACES, DEFAULT_DEVICES, DEFAULT_TEMPO_SECONDS, DESIGN_DEVICES, DESIGN_VALUES, DISPLAY_FORMATS, DOCUMENT_KINDS, ENTER_KEYS, EXPECT_KINDS, FORMATS, FRAME_PARTS, FRAME_SELECTORS, HEADER_SCROLLS, INNER_ACTIONS, KEYBOARD_CONTROLS, KEYBOARD_TYPES, LIST_STATES, LOGIN_FLAGS, LOGIN_METHODS, LOGIN_STORAGES, LOGIN_WHEN, MENU_DECIDED_BY, MENU_ENTRY_KINDS, MENU_STYLES, MENU_SWITCHABLE, NO_CALL_ACTIONS, NUMBER_STYLES, OLD_CALL_KEYS, OLD_DEVICE_NAMES, OLD_STORAGES, ORIENTATIONS, PAGINATION_ALIGNS, PAGINATION_PLACEMENTS, PAGINATION_TYPES, PLACEHOLDER_CONTROLS, PLACEHOLDER_SOURCE, PRICE_CURRENCIES, RESULTS_DIR, RESULTS_KEEP, RTL_LANGUAGES, SETTING_MENU_TEXTS, SHOWN_TEXT_KEYS, STANDARD_THEMES, START_PAGE_KEYS, START_PAGE_PATH, STEP_KINDS, STORAGES, STRIPE_TEST_CARDS, SYSTEM_KEYBOARDS, TEMPORAL_TRANSFER, TERMS_DOCUMENTS, TESTS_DIR, TEST_DATA_FILE, TEST_DEVICES, TEST_TEMPOS, THEME_FONTS, THEME_PATH, TYPE_ALIASES, WEEK_DAYS, actionName, actionParams, alignRowsOf, appSettingsFooter, appSettingsMenu, appTheme, assertFieldSettings, base32Bytes, baseType, basicType, callAttributes, callKindOf, camelStyleKey, canonicalControl, cardLayoutOf, checkAppSettings, checkCall, checkElementAction, checkPagePagination, checkTestFlow, clone, contactLink, controlChoicesFor, controlsFor, convertOlderForms, cssStyle, cssStyleKey, dataSettings, dateOrder, defaultKeyboard, designDeviceVariables, designStandard, designValue, designVariables, deviceChoices, displaySettings, effectiveControl, effectiveFormat, elementAction, enterKeyFor, flowDevices, flowLanguages, formatPrice, hasAppKeyboard, headerScrollOf, isKeyboardCheck, isSafeDesignValue, isStyleHolder, keyboardFor, languageName, layoutNotes, layoutProblems, localeKeys, localeRenderings, loginMethod, mapEmbedUrl, matchesTemplate, maxLinesOf, menuCaption, menuEntries, menuEntryByCaption, menuEntryForPage, menuPage, methodOf, normalizeFormat, normalizeStyleSpelling, openingProblems, openingStatus, pageOf, paginationFor, parseDevice, probeClearAppData, probeField, probeFieldVisible, probeInFrame, probeLayoutSnapshot, probePagePlace, probeRestoreStorage, probeStorageSnapshot, probeUntranslated, readAppSettings, readTestUser, renameDataObject, resolveProperty, resultsToDelete, rolesOf, rulesFor, safeDesignValues, startPage, startPageFor, stepKind, storageOf, stripeTestPaymentMethod, styleSpellingFindings, styleValue, successMessageOf, tempoPause, temporalPart, testDataRefs, testUserEntry, themeFontKnown, themeVariables, totp, translateCaptions, uses12Hours, validAmount, validCurrency, validPlace, validTimeZone, validateSettings, validationSettings, vaultJwtLogin, vaultPlace, waitsForFilter, withElementAction, withPageSource, withTestData, zonedNow };
|
|
3536
|
+
export { APP_DATA_KEEP, APP_KEYBOARD_DEVICES, APP_SETTINGS, APP_SETTINGS_PATH, APP_SETTING_BLOCKS, BACKEND_ACTIONS, BASIC_TYPES, BROWSER_STORAGES, CALCULATE_OPERATORS, CALL_KEYS, CALL_KINDS, CARD_LAYOUTS, CONTACT_ICONS, CONTACT_KINDS, CONTROLS, CONTROL_TYPES, DATA_FORMATS, DATA_OBJECT_KEYS, DATA_OBJECT_NAME_PLACES, DATA_OBJECT_PLACES, DEFAULT_DEVICES, DEFAULT_TEMPO_SECONDS, DESIGN_DEVICES, DESIGN_DEVICE_MEDIA, DESIGN_VALUES, DISPLAY_FORMATS, DOCUMENT_KINDS, ENTER_KEYS, EXPECT_KINDS, FORMATS, FRAME_PARTS, FRAME_SELECTORS, HEADER_SCROLLS, INNER_ACTIONS, KEYBOARD_CONTROLS, KEYBOARD_TYPES, LIST_STATES, LOGIN_FLAGS, LOGIN_METHODS, LOGIN_STORAGES, LOGIN_WHEN, MENU_DECIDED_BY, MENU_ENTRY_KINDS, MENU_STYLES, MENU_SWITCHABLE, NO_CALL_ACTIONS, NUMBER_STYLES, OLD_CALL_KEYS, OLD_DEVICE_NAMES, OLD_STORAGES, ORIENTATIONS, PAGINATION_ALIGNS, PAGINATION_PLACEMENTS, PAGINATION_TYPES, PLACEHOLDER_CONTROLS, PLACEHOLDER_SOURCE, PRICE_CURRENCIES, RESULTS_DIR, RESULTS_KEEP, RTL_LANGUAGES, SETTING_MENU_TEXTS, SHOWN_TEXT_KEYS, STANDARD_THEMES, START_PAGE_KEYS, START_PAGE_PATH, STEP_KINDS, STORAGES, STRIPE_TEST_CARDS, SYSTEM_KEYBOARDS, TEMPORAL_TRANSFER, TERMS_DOCUMENTS, TESTS_DIR, TEST_DATA_FILE, TEST_DEVICES, TEST_TEMPOS, THEME_FONTS, THEME_PATH, TYPE_ALIASES, WEEK_DAYS, actionName, actionParams, alignRowsOf, appSettingsFooter, appSettingsMenu, appTheme, assertFieldSettings, base32Bytes, baseType, basicType, buttonsColumnOf, callAttributes, callKindOf, camelStyleKey, canonicalControl, cardLayoutOf, checkAppSettings, checkCall, checkElementAction, checkPagePagination, checkTestFlow, clone, contactLink, controlChoicesFor, controlsFor, convertOlderForms, cssStyle, cssStyleKey, dataSettings, dateOrder, defaultKeyboard, designDeviceVariables, designStandard, designValue, designVariables, deviceChoices, displaySettings, effectiveControl, effectiveFormat, elementAction, enterKeyFor, flowDevices, flowLanguages, formatPrice, hasAppKeyboard, headerScrollOf, isKeyboardCheck, isSafeDesignValue, isStyleHolder, keyboardFor, languageName, layoutNotes, layoutProblems, localeKeys, localeRenderings, loginMethod, mapEmbedUrl, matchesTemplate, maxLinesOf, menuCaption, menuEntries, menuEntryByCaption, menuEntryForPage, menuPage, methodOf, normalizeFormat, normalizeStyleSpelling, openingProblems, openingStatus, pageOf, paginationFor, parseDevice, probeClearAppData, probeField, probeFieldVisible, probeInFrame, probeLayoutSnapshot, probePagePlace, probeRestoreStorage, probeStorageSnapshot, probeUntranslated, readAppSettings, readTestUser, renameDataObject, resolveProperty, resultsToDelete, rolesOf, rulesFor, safeDesignValues, startPage, startPageFor, stepKind, storageOf, stripeTestPaymentMethod, styleSpellingFindings, styleValue, successMessageOf, tempoPause, temporalPart, testDataRefs, testUserEntry, themeDeviceCss, themeFontKnown, themeVariables, totp, translateCaptions, uses12Hours, validAmount, validCurrency, validPlace, validTimeZone, validateSettings, validationSettings, vaultJwtLogin, vaultPlace, waitsForFilter, withElementAction, withPageSource, withTestData, zonedNow };
|
|
3509
3537
|
//# sourceMappingURL=yomotech-view-toolkit-catalog.mjs.map
|