@unifylib/ui-lib 1.1.58 → 1.1.59

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.
@@ -5,7 +5,7 @@ export declare class FieldInfo {
5
5
  targetProperty?: string;
6
6
  row: number;
7
7
  required: boolean;
8
- type: 'text' | 'amount' | 'color-picker' | 'currency' | 'date' | 'number' | 'sequence' | 'list' | 'lookup' | 'multi-select' | 'password' | 'rich-text' | 'radio-button' | 'phone-number' | 'iban-text' | 'checkbox' | 'textarea' | 'button' | 'spacer' | 'attachment' | 'section-title' | 'chip-list' | 'time' | 'divider' | 'hyper-text' | 'stateType' | 'status' | 'year' | 'equation-builder' | 'toggle' | 'bigdecimal';
8
+ type: 'text' | 'amount' | 'color-picker' | 'currency' | 'date' | 'number' | 'sequence' | 'list' | 'lookup' | 'multi-select' | 'password' | 'rich-text' | 'radio-button' | 'phone-number' | 'iban-text' | 'checkbox' | 'textarea' | 'button' | 'spacer' | 'attachment' | 'section-title' | 'chip-list' | 'time' | 'divider' | 'hyper-text' | 'stateType' | 'status' | 'year' | 'equation-builder' | 'toggle' | 'bigdecimal' | 'multi-state-checkbox';
9
9
  textFormat?: 'json';
10
10
  readonly?: boolean;
11
11
  viewonly?: boolean;
@@ -52,5 +52,8 @@ export declare class FieldInfo {
52
52
  showSearchIcon?: boolean;
53
53
  multiLevelSearchEnable?: boolean;
54
54
  maxDecimals?: number;
55
+ emptyReadonlyPlaceholderKey?: string;
56
+ maxLength?: number;
57
+ readonlyDateDisplay?: 'date' | 'datetime';
55
58
  constructor(fieldInfo: FieldInfo);
56
59
  }
@@ -0,0 +1,7 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class MaxDigitsDirective {
3
+ maxDigits: number;
4
+ onInput(event: Event): void;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<MaxDigitsDirective, never>;
6
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MaxDigitsDirective, "[maxDigits]", never, { "maxDigits": { "alias": "maxDigits"; "required": false; }; }, {}, never, never, true, never>;
7
+ }
@@ -12,7 +12,7 @@ import { MatDatepicker } from "@angular/material/datepicker";
12
12
  import { MatAutocompleteSelectedEvent } from "@angular/material/autocomplete";
13
13
  import { BehaviorSubject } from "rxjs";
14
14
  import { LiveAnnouncer } from "@angular/cdk/a11y";
15
- import { Moment } from "moment/moment";
15
+ import moment, { Moment } from "moment/moment";
16
16
  import * as i0 from "@angular/core";
17
17
  export declare const DD_MM_YYYY_Format: {
18
18
  parse: {
@@ -55,6 +55,7 @@ export declare class BaseFormCanvasComponent implements OnInit, OnChanges, OnDes
55
55
  selectable: boolean;
56
56
  addOnBlur: boolean;
57
57
  readonly separatorKeysCodes: number[];
58
+ readonly minDate: moment.Moment;
58
59
  isPending: boolean;
59
60
  isNew: boolean;
60
61
  itemId: number | undefined;
@@ -105,6 +106,14 @@ export declare class BaseFormCanvasComponent implements OnInit, OnChanges, OnDes
105
106
  listShowValue(defaults: any, field: FieldInfo): string;
106
107
  removeChipsItem(form: FormGroup, fieldName: string, idx: number): void;
107
108
  extractFieldName(element: any, property: string): any;
109
+ isReadonlyTextValueEmpty(defaults: any, field: FieldInfo): boolean;
110
+ getReadonlyDateFormat(field: FieldInfo): string;
111
+ toggleMultiStateFilter(property: string, code: string, checked: boolean): void;
112
+ isMultiStateSelected(property: string, code: string): boolean;
113
+ /** Trigger label: empty => caller shows placeholder; else short summary. */
114
+ getMultiStateFilterTriggerLabel(field: FieldInfo): string;
115
+ statusOptionLabelKey(field: FieldInfo, code: string): string;
116
+ getMultiStateReadonlySummary(field: FieldInfo, defaults: any): string;
108
117
  getMultiValue(field: FieldInfo): any;
109
118
  private validateEmail;
110
119
  addEmailToChips(event: MatChipInputEvent, form: FormGroup, fieldName: string): void;
@@ -7,7 +7,7 @@ import { FieldInfo, FilterRequest, LookupItem, PageInfo, TableColumn } from "../
7
7
  import { DoActionRequest } from "../../base-model/do-action-request";
8
8
  import { MatDialog } from "@angular/material/dialog";
9
9
  import { MatDatepicker } from "@angular/material/datepicker";
10
- import { Moment } from 'moment';
10
+ import moment, { Moment } from 'moment';
11
11
  import { MatChipListbox } from "@angular/material/chips";
12
12
  import { Directionality } from "@angular/cdk/bidi";
13
13
  import { AttachmentUploaderComponent } from "../shared/attachment-uploader/attachment-uploader.component";
@@ -18,6 +18,7 @@ export declare class EditableBaseTableComponent extends BaseUtils implements OnI
18
18
  private fb;
19
19
  dialog: MatDialog;
20
20
  private directionality;
21
+ readonly minDate: moment.Moment;
21
22
  collection: {
22
23
  count: number;
23
24
  data: any[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unifylib/ui-lib",
3
- "version": "1.1.58",
3
+ "version": "1.1.59",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.3.12",
6
6
  "@angular/core": "^17.3.12"
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- export * from './public-api';
5
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaXEtdWktbGliLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vcHJvamVjdHMvaW52b2ljZXEvdWktbGliL3NyYy9pcS11aS1saWIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWMtYXBpJztcbiJdfQ==