@yomotech/view-toolkit 1.0.69 → 1.0.71

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yomotech/view-toolkit",
3
- "version": "1.0.69",
3
+ "version": "1.0.71",
4
4
  "peerDependencies": {
5
5
  "@angular/cdk": "^21.0.0",
6
6
  "@angular/common": "^21.0.0",
@@ -48,7 +48,7 @@ declare const DATA_OBJECT_NAME_PLACES: Bag$1;
48
48
  * layout (changed in place). Returns how many values were changed.
49
49
  */
50
50
  declare function renameDataObject(layout: any, oldName: string, newName: string): number;
51
- declare const BASIC_TYPES: readonly ["string", "number", "integer", "bigdecimal", "boolean", "date", "time", "datetime", "dateRange", "media", "array"];
51
+ declare const BASIC_TYPES: readonly ["string", "number", "integer", "bigdecimal", "boolean", "date", "time", "duration", "datetime", "dateRange", "media", "array"];
52
52
  /** Older or other names of a data type and the type they mean. */
53
53
  declare const TYPE_ALIASES: Bag$1;
54
54
  /** The data type of a property, aliases resolved ("image" -> "media"). */
@@ -990,6 +990,8 @@ interface DataSource {
990
990
  name: string;
991
991
  type?: string;
992
992
  }[];
993
+ /** a filter page opened again shows the filter values typed last and loads its list; default: empty like the first time */
994
+ keepFilter?: boolean;
993
995
  /**
994
996
  * records in the browser kept apart per signed-in user (shared devices): the key gets ".<value of a sign-in field>".
995
997
  * true = preferred_username (Keycloak); a text names the field (Okta "uid", an own JWT "username" ...). Optional,
@@ -1311,6 +1313,8 @@ declare class CardComponent {
1311
1313
  private filterCaption;
1312
1314
  /** The filters the page names (dataSource.filters), name -> type; empty for a page without them. */
1313
1315
  private declaredFilters;
1316
+ /** dataSource.keepFilter: the page opened again shows the filter values typed last and loads its list (default: empty). */
1317
+ private keepsFilter;
1314
1318
  private filterSchemaMemo;
1315
1319
  /** The page's schema with its own filters as the group vlFilter - the input knows its type without a data field. */
1316
1320
  filterSchema(): any;
@@ -2562,9 +2566,13 @@ declare class Autocomplete implements OnChanges {
2562
2566
  /** the name of the field in the entries (the property's name, "workOrderNo") */
2563
2567
  get key(): string;
2564
2568
  get optionLabel(): string;
2569
+ /** option.openOnFocus: a tap into the field opens the whole list (default: only the arrow) */
2570
+ get openOnFocus(): boolean;
2571
+ /** option.search: "contains" keeps entries holding the text anywhere; default "startsWith" */
2572
+ get searchMode(): 'startsWith' | 'contains';
2565
2573
  get forceSelection(): boolean;
2566
2574
  get emptyText(): string;
2567
- /** (completeMethod): the entries that start with what was typed */
2575
+ /** (completeMethod): the entries that start with (or, option.search "contains", hold) what was typed */
2568
2576
  complete(event: {
2569
2577
  query?: string;
2570
2578
  }): void;
@@ -2849,6 +2857,13 @@ declare function parseTimeText(text: string): {
2849
2857
  } | null;
2850
2858
  /** AM <-> PM of a typed 12-hour time ("08:30 AM" -> "08:30 PM"); a time without one gets PM. */
2851
2859
  declare function toggleMeridiem(text: string): string;
2860
+ /**
2861
+ * A duration (data type "duration") as text: hours and minutes, the same in every language, never AM/PM. Reads
2862
+ * "8:45" / "08:45:00" (computed), a date-time of a server ("1970-01-01T04:55:00…" - its wall time), a Date and a number
2863
+ * of minutes. Pattern HH:mm (04:55) unless option.displayFormat "custom" names H:mm or h:mm (4:55). Hours above 23 stay
2864
+ * (24:00). Anything else comes back unchanged.
2865
+ */
2866
+ declare function durationText(value: any, option?: any): string;
2852
2867
 
2853
2868
  /**
2854
2869
  * The placeholder of a field: only its layout (option.placeholder, set in the Designer), translated
@@ -3121,6 +3136,11 @@ interface AddonLimits {
3121
3136
  maxRecords: number;
3122
3137
  maxAnswerBytes: number;
3123
3138
  }
3139
+ /**
3140
+ * The records as the add-on gets them: a copy in the form they are stored and shown - a date or time as local time
3141
+ * without zone (2026-11-17T20:00:00), never the UTC of a Date in JSON.
3142
+ */
3143
+ declare function addonRecords(records: any[] | null | undefined): any[];
3124
3144
  declare function addonLimits(manifest: AddonManifest | null | undefined): AddonLimits;
3125
3145
  /** Why the manifest cannot run, or null. */
3126
3146
  declare function addonManifestProblem(manifest: AddonManifest | null | undefined): string | null;
@@ -3560,6 +3580,8 @@ declare class DateTimeControl {
3560
3580
  pattern(): string;
3561
3581
  /** Display style iso: the date as 2026-10-30 in every language (a test types year, month, day - data-vl-date-iso) */
3562
3582
  isIso(): boolean;
3583
+ /** data type "duration" (hours and minutes) */
3584
+ isDuration(): boolean;
3563
3585
  /** "12" (en, AM/PM) or "24" - by the app language */
3564
3586
  hourFormat(): '12' | '24';
3565
3587
  placeholder(): string;
@@ -3995,5 +4017,5 @@ declare class DesignTextPipe implements PipeTransform {
3995
4017
  static ɵpipe: i0.ɵɵPipeDeclaration<DesignTextPipe, "vlDesignText", true>;
3996
4018
  }
3997
4019
 
3998
- export { ADDON_API_VERSION, ADDON_TEST_KIT, AddonCheckRefused, 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, MAX_ROW_COLUMNS, MediaControl, MediaSourcePipe, MobileKeycloakService, MobileOidcService, MobileOktaService, ModelComponent, NetworkLogService, NotificationService, NumberControl, PLACEHOLDER_SOURCES, PageData, PaginationComponent, PasswordControl, PdfViewerComponent, PdfViewerService, 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, SlideshowComponent, SwitchControl, TermsDialog, TextareaControl, Textbox, UtilityService, VL_MEDIA_RESOLVER, ViewToolkitModule, VisiblePipe, acceptedLocally, addButton, addCardButton, addSection, addonHostAllowed, addonImports, addonLimits, addonManifestProblem, applyLayoutDefaults, applyMapping, backendTermsState, backendUrl, blankComments, buildBackendCall, buttonLocked, bytesOfBase64, cardButton, checkCheckResult, checkHandler, checkRouteResult, checkTransformResult, clearHeader, cloneLayout, columnFromProperty, controlKind, controlProperty, currencyDigits, currentDateLanguage, dateDigitCount, dateInputPattern, dependsOnForm, designDropIds, designField, designText, designTexts, designerLinksOn, designerPlace, displayDateValue, displayNumber, dropCardProperty, dropGridProperty, dropObjectName, dropProperty, dropTypeAt, elementFromProperty, fieldFromProperty, fieldInnerLayoutStyle, fieldModel, fieldRules, fieldSpan, fillFromUser, fillPlaceholders, fixedTimeText, formValuesGiven, formatDate, formatDates, fromStorageValue, gridColumnCount, hasBackendCall, hasHeaderTarget, headerButton, inputFormatHint, insertField, isAddonCode, isAddonTestFile, isBrowserSource, isIsoDate, isNativeMobile, isNativePhone, isPropertyDrop, isSignedIn, isTarget, languageDatePattern, layoutPlaceholder, linkAddonModules, linkOfRecord, loadErrorOf, lockHint, lockReason, lockReasons, mappedValues, mediaKind, moveCardElement, moveColumn, moveField, moveSection, moveTreeNode, newButton, newSection, nextZoom, normalizeCard, normalizeCustomKeyboardType, normalizeSections, numberShape, numberStep, numberSuffix, parseAnswer, parseRecords, parseStorageDate, parseTimeText, perUserField, primeDatePattern, proxyFor, rebalanceRow, recordOf, recordsFrom, removeCardElement, removeColumn, removeField, removeHeaderElement, removeSection, removeTreeNode, renewSignIn, replaceCardElement, replaceColumn, replaceField, replaceSection, replaceTreeNode, requestDesignDelete, resizeColumn, resolveAddonPath, resolveCustomKeyboardType, resolvePlaceholder, resolveTemplate, routeOf, ruleMessage, runAddonTests, sampleRecords, sampleValue, sectionPlain, sectionSpan, sectionSticky, sectionTabletSpan, sectionVisible, sendErrorText, sendsForm, setDateLanguage, setInputHintLanguage, setProxyEnvironment, setSignInRenewal, setToolkitKeyboardOnWeb, shapeDateDigits, shapeTimeText, sideDockWidth, splitReference, stagedRead, stagedRequest, storageKeyOf, storageKind, storageValue, storedToTyped, styleParts, termsStamp, termsStorageKey, termsToConfirm, termsUrl, termsUser, testAction, testFieldKey, testFieldPath, testWrites, timeHourFormat, toggleMeridiem, toggleRecord, toolkitKeyboardActive, transformHandler, treeNode, treePaths, typedMeridiem, typedToStored, useDesignerLinks, useDraftSource, userRecord, usesTwelveHours, validTreePath, valueAt, visibleFields, whenOnline, withAppPagination, withUserRecord, withoutMarks, wrapperStyleOf };
4020
+ export { ADDON_API_VERSION, ADDON_TEST_KIT, AddonCheckRefused, 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, MAX_ROW_COLUMNS, MediaControl, MediaSourcePipe, MobileKeycloakService, MobileOidcService, MobileOktaService, ModelComponent, NetworkLogService, NotificationService, NumberControl, PLACEHOLDER_SOURCES, PageData, PaginationComponent, PasswordControl, PdfViewerComponent, PdfViewerService, 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, SlideshowComponent, SwitchControl, TermsDialog, TextareaControl, Textbox, UtilityService, VL_MEDIA_RESOLVER, ViewToolkitModule, VisiblePipe, acceptedLocally, addButton, addCardButton, addSection, addonHostAllowed, addonImports, addonLimits, addonManifestProblem, addonRecords, applyLayoutDefaults, applyMapping, backendTermsState, backendUrl, blankComments, buildBackendCall, buttonLocked, bytesOfBase64, cardButton, checkCheckResult, checkHandler, checkRouteResult, checkTransformResult, clearHeader, cloneLayout, columnFromProperty, controlKind, controlProperty, currencyDigits, currentDateLanguage, dateDigitCount, dateInputPattern, dependsOnForm, designDropIds, designField, designText, designTexts, designerLinksOn, designerPlace, displayDateValue, displayNumber, dropCardProperty, dropGridProperty, dropObjectName, dropProperty, dropTypeAt, durationText, elementFromProperty, fieldFromProperty, fieldInnerLayoutStyle, fieldModel, fieldRules, fieldSpan, fillFromUser, fillPlaceholders, fixedTimeText, formValuesGiven, formatDate, formatDates, fromStorageValue, gridColumnCount, hasBackendCall, hasHeaderTarget, headerButton, inputFormatHint, insertField, isAddonCode, isAddonTestFile, isBrowserSource, isIsoDate, isNativeMobile, isNativePhone, isPropertyDrop, isSignedIn, isTarget, languageDatePattern, layoutPlaceholder, linkAddonModules, linkOfRecord, loadErrorOf, lockHint, lockReason, lockReasons, mappedValues, mediaKind, moveCardElement, moveColumn, moveField, moveSection, moveTreeNode, newButton, newSection, nextZoom, normalizeCard, normalizeCustomKeyboardType, normalizeSections, numberShape, numberStep, numberSuffix, parseAnswer, parseRecords, parseStorageDate, parseTimeText, perUserField, primeDatePattern, proxyFor, rebalanceRow, recordOf, recordsFrom, removeCardElement, removeColumn, removeField, removeHeaderElement, removeSection, removeTreeNode, renewSignIn, replaceCardElement, replaceColumn, replaceField, replaceSection, replaceTreeNode, requestDesignDelete, resizeColumn, resolveAddonPath, resolveCustomKeyboardType, resolvePlaceholder, resolveTemplate, routeOf, ruleMessage, runAddonTests, sampleRecords, sampleValue, sectionPlain, sectionSpan, sectionSticky, sectionTabletSpan, sectionVisible, sendErrorText, sendsForm, setDateLanguage, setInputHintLanguage, setProxyEnvironment, setSignInRenewal, setToolkitKeyboardOnWeb, shapeDateDigits, shapeTimeText, sideDockWidth, splitReference, stagedRead, stagedRequest, storageKeyOf, storageKind, storageValue, storedToTyped, styleParts, termsStamp, termsStorageKey, termsToConfirm, termsUrl, termsUser, testAction, testFieldKey, testFieldPath, testWrites, timeHourFormat, toggleMeridiem, toggleRecord, toolkitKeyboardActive, transformHandler, treeNode, treePaths, typedMeridiem, typedToStored, useDesignerLinks, useDraftSource, userRecord, usesTwelveHours, validTreePath, valueAt, visibleFields, whenOnline, withAppPagination, withUserRecord, withoutMarks, wrapperStyleOf };
3999
4021
  export type { AddonCheckFinding, AddonFiles, AddonLimits, AddonManifest, AddonTestResult, BackendCall, CallContext, CardDesignerHost, CardDragData, CardDropSpot, CardDropType, CardPlace, ControlKind, CustomKeyboardTarget, CustomKeyboardType, DataSource, DesignAction, DesignDeleteRequest, DesignDevice, DesignEvent, DesignPropertyDrop, DesignTarget, DesignTexts, DesignTranslations, DraftSource, DropSpot, DropType, FieldKind, FieldModel, FieldRules, LockHint, LockReason, LockState, MediaKind, MobileAuthTokens, MobileOktaRefresh, MobileOktaTokens, NumberShape, OidcProvider, OidcRefresh, OidcTokens, PageDataDeps, PdfSource, RenewSignIn, RequestTimeoutMessages, SectionDesignerHost, SectionDragData, SectionKind, SendResult, StagedReadOptions, StorageKind, TermsAcceptance, TermsDialogDocument, TermsSettings, TreeKey, VlDesign };