@yomotech/view-toolkit 1.0.81 → 1.0.83

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.
@@ -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: borders, shadows per part, focus outline, gap between fields, page margin; per font role line height, letter
3037
+ // spacing and text shadow; kind "number" (a plain number such as a line height) - sketch areas 6 (point 173)
3027
3038
  // - new: DESIGN_DEVICE_MEDIA (tablet: 600 wide and high - a phone turned stays mobile; web: from 1280) and themeDeviceCss -
3028
3039
  // the device values of a theme and the app as @media rules (point 173 step 2.2)
3029
3040
  // Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-09
@@ -3059,25 +3070,28 @@ const value = (key, group, kind, from) => ({
3059
3070
  const extra = (key, group, kind, standard, more = {}) => ({
3060
3071
  key, cssVar: `--vl-${key.replace(/\./g, '-')}`, group, kind, level: 'advanced', standard, ...more,
3061
3072
  });
3062
- /** The font roles, named like the Designer: [key part, family from, size, weight, capitals]. */
3073
+ /** The font roles, named like the Designer: [key part, family from, size, weight, capitals, letter spacing]. */
3063
3074
  const FONT_ROLES = [
3064
- ['header', 'font.heading-family', '1.05rem', '700', 'uppercase'],
3065
- ['page-title', 'font.heading-family', '1.6rem', '700', 'none'],
3066
- ['section-title', 'font.heading-family', '1.15rem', '700', 'none'],
3067
- ['label', 'font.family', '0.7rem', '500', 'uppercase'],
3068
- ['value', 'font.family', '1rem', '400', 'none'],
3069
- ['value-strong', 'font.heading-family', '1.15rem', '700', 'none'],
3070
- ['field', 'font.family', '1rem', '400', 'none'],
3071
- ['button', 'font.family', '0.95rem', '500', 'none'],
3072
- ['message', 'font.family', '0.85rem', '400', 'none'],
3075
+ ['header', 'font.heading-family', '1.05rem', '700', 'uppercase', '0.06em'],
3076
+ ['page-title', 'font.heading-family', '1.6rem', '700', 'none', '0'],
3077
+ ['section-title', 'font.heading-family', '1.15rem', '700', 'none', '0'],
3078
+ ['label', 'font.family', '0.7rem', '500', 'uppercase', '0.08em'],
3079
+ ['value', 'font.family', '1rem', '400', 'none', '0'],
3080
+ ['value-strong', 'font.heading-family', '1.15rem', '700', 'none', '0.03em'],
3081
+ ['field', 'font.family', '1rem', '400', 'none', '0'],
3082
+ ['button', 'font.family', '0.95rem', '500', 'none', '0'],
3083
+ ['message', 'font.family', '0.85rem', '400', 'none', '0'],
3073
3084
  ];
3074
- const fontRole = ([role, family, size, weight, capitals]) => [
3085
+ const fontRole = ([role, family, size, weight, capitals, spacing]) => [
3075
3086
  extra(`text.${role}.family`, 'text', 'font', '', { from: family }),
3076
3087
  extra(`text.${role}.size`, 'text', 'size', size),
3077
3088
  extra(`text.${role}.weight`, 'text', 'weight', weight),
3078
3089
  extra(`text.${role}.case`, 'text', 'choice', capitals, { options: ['none', 'uppercase'] }),
3079
3090
  extra(`text.${role}.style`, 'text', 'choice', 'normal', { options: ['normal', 'italic'] }),
3080
3091
  extra(`text.${role}.decoration`, 'text', 'choice', 'none', { options: ['none', 'underline'] }),
3092
+ extra(`text.${role}.line-height`, 'text', 'number', '1.3'),
3093
+ extra(`text.${role}.letter-spacing`, 'text', 'size', spacing),
3094
+ extra(`text.${role}.shadow`, 'text', 'shadow', 'none'),
3081
3095
  ];
3082
3096
  const DESIGN_VALUES = [
3083
3097
  value('color.primary', 'colors', 'color'),
@@ -3120,10 +3134,22 @@ const DESIGN_VALUES = [
3120
3134
  extra('size.touch-min', 'sizes', 'size', { mobile: '44px', web: '0' }, { devices: true }),
3121
3135
  extra('space.card', 'sizes', 'size', '16px', { devices: true }),
3122
3136
  extra('space.card-gap', 'sizes', 'size', '16px', { devices: true }),
3137
+ extra('space.field-gap', 'sizes', 'size', '12px', { devices: true }),
3138
+ extra('space.page', 'sizes', 'size', { mobile: '16px', tablet: '20px', web: '24px' }, { devices: true }),
3123
3139
  // roundings per part - all follow shape.radius unless set
3124
3140
  extra('shape.card-radius', 'shape', 'size', '8px', { from: 'shape.radius' }),
3125
3141
  extra('shape.field-radius', 'shape', 'size', '8px', { from: 'shape.radius' }),
3126
3142
  extra('shape.icon-radius', 'shape', 'size', '8px', { from: 'shape.button-radius' }),
3143
+ // borders and shadows per part, the outline of a field while it is used (focus)
3144
+ extra('border.card-width', 'border', 'size', '1px'),
3145
+ extra('border.field-width', 'border', 'size', '1px'),
3146
+ extra('border.button-width', 'border', 'size', '1px'),
3147
+ extra('shadow.card', 'depth', 'shadow', 'none'),
3148
+ extra('shadow.dialog', 'depth', 'shadow', '0 6px 20px rgba(0,0,0,.12)'),
3149
+ extra('shadow.button', 'depth', 'shadow', 'none'),
3150
+ extra('shadow.image', 'depth', 'shadow', 'none'),
3151
+ extra('focus.color', 'focus', 'color', '', { from: 'color.primary' }),
3152
+ extra('focus.width', 'focus', 'size', '2px'),
3127
3153
  // logo and pictures: how they stand - which logo and which pictures stay in Media
3128
3154
  extra('logo.height', 'logo', 'size', { mobile: '30px', tablet: '36px', web: '40px' }, { devices: true }),
3129
3155
  extra('logo.position', 'logo', 'choice', 'start', { options: ['start', 'center'] }),
@@ -3302,6 +3328,8 @@ function isSafeDesignValue(key, raw) {
3302
3328
  return /^[\w\s,'"-]+$/.test(v);
3303
3329
  if (item.kind === 'weight')
3304
3330
  return /^[1-9]00$/.test(v);
3331
+ if (item.kind === 'number')
3332
+ return /^[0-9]+(\.[0-9]+)?$/.test(v) && Number(v) <= 10;
3305
3333
  if (item.kind === 'choice')
3306
3334
  return (item.options ?? []).includes(v);
3307
3335
  return /^[\w\s#.,%()/-]+$/.test(v);
@@ -3524,5 +3552,5 @@ function formatPrice(amount, currency, lang, fromWord = '') {
3524
3552
  * Generated bundle index. Do not edit.
3525
3553
  */
3526
3554
 
3527
- 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, 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 };
3555
+ 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 };
3528
3556
  //# sourceMappingURL=yomotech-view-toolkit-catalog.mjs.map