@yomotech/view-toolkit 1.0.39 → 1.0.40

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.39",
3
+ "version": "1.0.40",
4
4
  "peerDependencies": {
5
5
  "@angular/cdk": "^21.0.0",
6
6
  "@angular/common": "^21.0.0",
@@ -651,8 +651,6 @@ declare class CardComponent {
651
651
  declare class FormComponent implements OnInit, OnChanges, AfterViewInit, OnDestroy {
652
652
  /** Marks for the app's test runner (#166): field key and button action. */
653
653
  readonly vlFieldKey: typeof testFieldKey;
654
- readonly vlAction: typeof testAction;
655
- readonly vlWrites: typeof testWrites;
656
654
  private readonly remoteLists;
657
655
  /** Loaded lists by field reference. */
658
656
  remoteData: Record<string, any[]>;
@@ -675,8 +673,6 @@ declare class FormComponent implements OnInit, OnChanges, AfterViewInit, OnDestr
675
673
  readonly picker: DateTimePickerService;
676
674
  private readonly host;
677
675
  ngOnDestroy(): void;
678
- /** Keep existing checkbox data objects usable; new objects use boolean. */
679
- renderFieldType(type: string | undefined, field?: any): string | undefined;
680
676
  customEmailPattern: string;
681
677
  showPassword: boolean;
682
678
  formCopy: any;
@@ -698,25 +694,12 @@ declare class FormComponent implements OnInit, OnChanges, AfterViewInit, OnDestr
698
694
  };
699
695
  getSectionBodyStyle(formSection: any): any;
700
696
  getFieldWrapperStyle(formField: any): any;
701
- getFieldInnerLayoutStyle(formField: any): Record<string, any>;
702
697
  getScope(scope: any): string;
703
698
  togglePasswordVisibility(): void;
704
699
  invokeFormBtnClick(option: any, propertySchema: any): void;
705
700
  setformData(): void;
706
701
  setErroMessage(formField: any, errorMessages: any, field: any): string;
707
702
  setValidations(): void;
708
- matchData: any;
709
- getLabel(formField: any): any;
710
- dateChangeEvent(formField: any, event: any): void;
711
- onDateTyping(event: any): void;
712
- onTimeTyping(event: any): void;
713
- timeChangeEvent(formField: any, event: any): void;
714
- autocompChangeEvent(event: any, formfield: any): void;
715
- autocompFocusOutEvent(event: any, formfield: any): void;
716
- private getMediaProperty;
717
- getMediaSource(field: any): string;
718
- getMediaLabel(field: any): string;
719
- getMediaKind(field: any): 'image' | 'video' | 'audio' | 'pdf' | 'file';
720
703
  /**
721
704
  * A field's message shows once the user typed in it and left it, or after a save attempt - not
722
705
  * when an empty field was only passed through (the message then pushed the row and its label out
@@ -724,13 +707,6 @@ declare class FormComponent implements OnInit, OnChanges, AfterViewInit, OnDestr
724
707
  */
725
708
  saveTried: boolean;
726
709
  showError(control: any): boolean;
727
- /**
728
- * The toolkit keyboard of a field - the same rule as the dialog: the field's keyboardType (or the
729
- * older keyboard; native/none = the device's own), else from its attribute type. #166 step 4.2
730
- */
731
- keyboardTypeFor(field: any, propertySchema: any): CustomKeyboardType | null;
732
- /** The message of a field's first error (layout's own, project text, English) - #166 step 4.6. */
733
- fieldMessage(field: any, control: any): string;
734
710
  static ɵfac: i0.ɵɵFactoryDeclaration<FormComponent, never>;
735
711
  static ɵcmp: i0.ɵɵComponentDeclaration<FormComponent, "vl-form", never, { "errorMessages": { "alias": "errorMessages"; "required": false; }; "creditCardError": { "alias": "creditCardError"; "required": false; }; "form": { "alias": "form"; "required": false; }; "selectedLanguageInfo": { "alias": "selectedLanguageInfo"; "required": false; }; }, { "formButtonClick": "formButtonClick"; "checkBoxChangeEvent": "checkBoxChangeEvent"; }, never, never, true, never>;
736
712
  }
@@ -863,6 +839,15 @@ declare class GridComponent implements AfterViewInit, OnDestroy {
863
839
  cellControl(col: any): string;
864
840
  /** The DTO type of a column ("boolean" or a text flag for the switch). */
865
841
  propertyType(col: any): string;
842
+ /** The DTO type of a column as the data object declares it ("string", "quantity" ...). */
843
+ cellType(col: any): string;
844
+ /**
845
+ * An unlocked text or number cell is typed in; the action column saves the row. A column with a
846
+ * shared control (password, text area, switch, combobox, radio) is shown, not typed in.
847
+ */
848
+ inlineEditable(col: any): boolean;
849
+ /** An unlocked Boolean column without switch or radio ticks the row's value. */
850
+ checkboxEditable(col: any): boolean;
866
851
  static ɵfac: i0.ɵɵFactoryDeclaration<GridComponent, never>;
867
852
  static ɵcmp: i0.ɵɵComponentDeclaration<GridComponent, "vl-grid", never, { "errorMessages": { "alias": "errorMessages"; "required": false; }; "environment": { "alias": "environment"; "required": false; }; "selectedLanguageInfo": { "alias": "selectedLanguageInfo"; "required": false; }; "tableitemInfo": { "alias": "tableitemInfo"; "required": false; }; "form": { "alias": "form"; "required": false; }; "isTableDataLoad": { "alias": "isTableDataLoad"; "required": false; }; "currenTableOptions": { "alias": "currenTableOptions"; "required": false; }; "projectSeleted": { "alias": "projectSeleted"; "required": false; }; "pageSize": { "alias": "pageSize"; "required": false; }; "currentPage": { "alias": "currentPage"; "required": false; }; "pages": { "alias": "pages"; "required": false; }; "userInfo": { "alias": "userInfo"; "required": false; }; }, { "onPageChange": "onPageChange"; "onPageSizeChange": "onPageSizeChange"; "onGridScroll": "onGridScroll"; "showGridLink": "showGridLink"; "gridButtonClick": "gridButtonClick"; "gridIncreamentClick": "gridIncreamentClick"; "gridDecreamentClick": "gridDecreamentClick"; "gridImgClick": "gridImgClick"; }, never, never, true, never>;
868
853
  }
@@ -976,12 +961,7 @@ declare class ModelComponent implements OnChanges, OnDestroy {
976
961
  classes: string;
977
962
  style: Record<string, any>;
978
963
  };
979
- /** The section is a 12 column grid, as in the Designer; the section's own style comes on top. */
980
964
  getSectionBodyStyle(formSection: any): Record<string, any>;
981
- /**
982
- * The field's wrapper in the section grid: the field's whole style from the layout (the Designer's
983
- * wrapper style), placed by gridColumn ("span N", else gridSpan) and never wider than its column.
984
- */
985
965
  getFieldWrapperStyle(formField: any): Record<string, any>;
986
966
  onTimePanelShow(formField: any): void;
987
967
  dateChangeEvent(formField: any, value: any): void;
@@ -2024,6 +2004,24 @@ declare class ControlComponent implements OnChanges {
2024
2004
  saveTried: boolean;
2025
2005
  /** the label rule of the container: 'dialog' (the layout's layoutStyle) or 'form' */
2026
2006
  container: 'dialog' | 'form';
2007
+ /** the button's type: 'submit' lets Enter in a field press it (form) */
2008
+ buttonType: 'button' | 'submit';
2009
+ /** 'edit': the field to type in (dialog, form); 'display': a record's value shown (card, grid) */
2010
+ mode: 'edit' | 'display';
2011
+ /** display mode: the record whose value is shown (record[name]) */
2012
+ record: any;
2013
+ /** no label (a grid cell: the column's heading is the label) */
2014
+ hideLabel: boolean;
2015
+ /** display mode: scope.style styles the value; false when the container styles it (grid cell) */
2016
+ styleValue: boolean;
2017
+ /** display mode: the small form of text area and media (grid cell) */
2018
+ compact: boolean;
2019
+ /** a selection list the container loaded itself; without it the field's own (field.data) */
2020
+ list: any[] | null | undefined;
2021
+ /** the container's list is still loading; without it the field's own (field.loading) */
2022
+ listLoading: boolean | null | undefined;
2023
+ /** the payment element's error (textContent) of the container, for the credit card */
2024
+ creditCardError: any;
2027
2025
  /** an entry of an autocomplete or combobox list was chosen */
2028
2026
  picked: EventEmitter<any>;
2029
2027
  /** a date, time or period was set */
@@ -2032,6 +2030,10 @@ declare class ControlComponent implements OnChanges {
2032
2030
  opened: EventEmitter<void>;
2033
2031
  /** a check box, switch or radio button changed */
2034
2032
  toggled: EventEmitter<any>;
2033
+ /** display mode: the value of a field with option.link was clicked; its option */
2034
+ linkClicked: EventEmitter<any>;
2035
+ /** display mode: a media value was clicked; its option */
2036
+ mediaClicked: EventEmitter<any>;
2035
2037
  /** a button was clicked; its option (innerAction, action ...) */
2036
2038
  buttonClick: EventEmitter<any>;
2037
2039
  kind: ControlKind;
@@ -2043,12 +2045,27 @@ declare class ControlComponent implements OnChanges {
2043
2045
  textboxInfo: any;
2044
2046
  readonly vlAction: typeof testAction;
2045
2047
  readonly vlWrites: typeof testWrites;
2048
+ /** the property's name in a record ("fromDate") */
2049
+ name: string;
2046
2050
  ngOnChanges(): void;
2047
- /** protected in the layout: the value is shown, not typed in */
2051
+ get display(): boolean;
2052
+ /** protected in the layout, or a list: the value is shown, not typed in */
2048
2053
  get readonly(): boolean;
2054
+ /** the value shown: the record's in a list (else the property's default), the property's otherwise */
2055
+ get value(): any;
2056
+ /** the row a number reads its currency field from: the record in a list */
2057
+ get numberRow(): any;
2058
+ /** a date or time of a list as text; the --- of an empty value is shown by the template */
2059
+ get dateText(): string;
2060
+ /** an older layout's own date pattern (Angular date pipe: option.dateFormat / timeFormat) */
2061
+ get legacyDateFormat(): string;
2062
+ get isLink(): boolean;
2063
+ openLink(): void;
2049
2064
  /** the property the control writes into ({} so a control never writes into undefined) */
2050
2065
  get target(): any;
2051
2066
  get translations(): Record<string, string> | null;
2067
+ get selectionList(): any[];
2068
+ get selectionLoading(): boolean;
2052
2069
  get messages(): any;
2053
2070
  /** label.value, the layout's label.caption, then the data object's caption - translated */
2054
2071
  get label(): string;
@@ -2066,13 +2083,18 @@ declare class ControlComponent implements OnChanges {
2066
2083
  classes: string;
2067
2084
  style: Record<string, any>;
2068
2085
  };
2086
+ /** display mode: the value's style (scope.style), unless the container styles it */
2087
+ valueStyle(): {
2088
+ classes: string;
2089
+ style: Record<string, any>;
2090
+ };
2069
2091
  /** a button has no input; the field's style is the button's */
2070
2092
  buttonStyle(): {
2071
2093
  classes: string;
2072
2094
  style: Record<string, any>;
2073
2095
  };
2074
2096
  static ɵfac: i0.ɵɵFactoryDeclaration<ControlComponent, never>;
2075
- static ɵcmp: i0.ɵɵComponentDeclaration<ControlComponent, "vl-control", never, { "field": { "alias": "field"; "required": false; }; "propertySchema": { "alias": "propertySchema"; "required": false; }; "selectedLanguageInfo": { "alias": "selectedLanguageInfo"; "required": false; }; "errorMessages": { "alias": "errorMessages"; "required": false; }; "saveTried": { "alias": "saveTried"; "required": false; }; "container": { "alias": "container"; "required": false; }; }, { "picked": "picked"; "changed": "changed"; "opened": "opened"; "toggled": "toggled"; "buttonClick": "buttonClick"; }, never, never, true, never>;
2097
+ static ɵcmp: i0.ɵɵComponentDeclaration<ControlComponent, "vl-control", never, { "field": { "alias": "field"; "required": false; }; "propertySchema": { "alias": "propertySchema"; "required": false; }; "selectedLanguageInfo": { "alias": "selectedLanguageInfo"; "required": false; }; "errorMessages": { "alias": "errorMessages"; "required": false; }; "saveTried": { "alias": "saveTried"; "required": false; }; "container": { "alias": "container"; "required": false; }; "buttonType": { "alias": "buttonType"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "record": { "alias": "record"; "required": false; }; "hideLabel": { "alias": "hideLabel"; "required": false; }; "styleValue": { "alias": "styleValue"; "required": false; }; "compact": { "alias": "compact"; "required": false; }; "list": { "alias": "list"; "required": false; }; "listLoading": { "alias": "listLoading"; "required": false; }; "creditCardError": { "alias": "creditCardError"; "required": false; }; }, { "picked": "picked"; "changed": "changed"; "opened": "opened"; "toggled": "toggled"; "linkClicked": "linkClicked"; "mediaClicked": "mediaClicked"; "buttonClick": "buttonClick"; }, never, never, true, never>;
2076
2098
  }
2077
2099
 
2078
2100
  export { AppVersionResetService, Autocomplete, BACKEND_PROXY_PREFIX, CardComponent, CheckboxControl, ConfigService, ControlComponent, Couchdb, CustomKeyboardComponent, CustomKeyboardDirective, CustomKeyboardService, DateFormatPipe, DateHintPipe, DateRangeControl, DateTextPipe, DateTimeControl, DropdownControl, FormComponent, GridComponent, HeaderMenuComponent, LogsComponent, MediaControl, MediaSourcePipe, MobileKeycloakService, MobileOidcService, MobileOktaService, ModelComponent, NetworkLogService, NotificationService, NumberControl, PaginationComponent, PasswordControl, PlaceholderPipe, READ_ATTEMPT_TIMEOUT, REQUEST_STAGES, RETRY_PAUSES, RETRY_STATUSES, RadioControl, RemoteListService, RequestService, RequestTimeoutError, RequestTimeoutService, RulesPipe, SIDE_DOCK_CLASS, SideMenuComponent, SwitchControl, TextareaControl, Textbox, UtilityService, ViewToolkitModule, VisiblePipe, backendUrl, controlKind, controlProperty, currencyDigits, currentDateLanguage, dateDigitCount, dateInputPattern, displayDateValue, displayNumber, fieldInnerLayoutStyle, fieldModel, fieldRules, fixedTimeText, inputFormatHint, isNativeMobile, isNativePhone, languageDatePattern, layoutPlaceholder, mediaKind, normalizeCustomKeyboardType, numberShape, numberStep, numberSuffix, primeDatePattern, resolveCustomKeyboardType, resolvePlaceholder, ruleMessage, setDateLanguage, setInputHintLanguage, setToolkitKeyboardOnWeb, shapeDateDigits, shapeTimeText, sideDockWidth, splitReference, stagedRead, stagedRequest, storedToTyped, styleParts, testAction, testFieldKey, testWrites, timeHourFormat, toggleMeridiem, toolkitKeyboardActive, typedToStored, usesTwelveHours, visibleFields, whenOnline };