commons-shared-web-ui 0.0.41 → 0.0.42

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/index.d.ts CHANGED
@@ -89,6 +89,12 @@ interface FormLabels {
89
89
  previousLabel?: string;
90
90
  addLabel?: string;
91
91
  removeLabel?: string;
92
+ /** File upload error messages. Supports placeholders: {fileName}, {maxSizeMB}, {maxFiles} */
93
+ fileTypeError?: string;
94
+ fileSizeError?: string;
95
+ maxFilesError?: string;
96
+ fileUploadFailed?: string;
97
+ fileDeleteFailed?: string;
92
98
  }
93
99
  interface SubmitConfig {
94
100
  apiUrl: string;
@@ -310,6 +316,10 @@ interface DateConfig {
310
316
  allowFuture?: boolean;
311
317
  minDate?: string;
312
318
  maxDate?: string;
319
+ /** When true, the text input is readonly (picker-only, no keyboard entry). */
320
+ inputReadonly?: boolean;
321
+ /** Name of a sibling field whose value is used as the dynamic minimum date. */
322
+ minDateField?: string;
313
323
  }
314
324
  interface OptionConfig$1 {
315
325
  optionClass?: string;
@@ -1418,6 +1428,7 @@ declare class FormFieldComponent implements OnInit, OnDestroy {
1418
1428
  value: any;
1419
1429
  isVisible: boolean;
1420
1430
  showPassword: boolean;
1431
+ dynamicMinDate: string | null;
1421
1432
  isMultiDropdownOpen: boolean;
1422
1433
  isDragOver: boolean;
1423
1434
  fileUploadError: string;
@@ -1543,6 +1554,7 @@ declare class FormFieldComponent implements OnInit, OnDestroy {
1543
1554
  */
1544
1555
  setupMatchValidation(): void;
1545
1556
  setupVisibility(): void;
1557
+ setupMinDateField(): void;
1546
1558
  setupGeneratedField(): void;
1547
1559
  evaluateFormula(context: {
1548
1560
  [key: string]: any;
@@ -1556,6 +1568,7 @@ declare class FormFieldComponent implements OnInit, OnDestroy {
1556
1568
  /** Builds HttpHeaders using the token stored in the SmartFormController (sourced from configJSON)
1557
1569
  * merged with any custom headers declared in optionConfig.headers.
1558
1570
  */
1571
+ private _fileLabel;
1559
1572
  private getHeaders;
1560
1573
  updateValue(newValue: any): void;
1561
1574
  onCheckboxListChange(code: string, checked: boolean): void;
@@ -1984,6 +1997,7 @@ declare class DropdownComponent implements ControlValueAccessor, OnInit, OnChang
1984
1997
  config?: DropdownConfig;
1985
1998
  labels?: DropdownLabels;
1986
1999
  options: DropdownOption[];
2000
+ selectedValue?: any;
1987
2001
  placeholder: string;
1988
2002
  label: string;
1989
2003
  multiple: boolean;
@@ -2069,7 +2083,7 @@ declare class DropdownComponent implements ControlValueAccessor, OnInit, OnChang
2069
2083
  [key: string]: string | undefined;
2070
2084
  };
2071
2085
  static ɵfac: i0.ɵɵFactoryDeclaration<DropdownComponent, never>;
2072
- static ɵcmp: i0.ɵɵComponentDeclaration<DropdownComponent, "lib-dropdown", never, { "config": { "alias": "config"; "required": false; }; "labels": { "alias": "labels"; "required": false; }; "options": { "alias": "options"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "label": { "alias": "label"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "searchable": { "alias": "searchable"; "required": false; }; "clearable": { "alias": "clearable"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "required": { "alias": "required"; "required": false; }; "errorMessage": { "alias": "errorMessage"; "required": false; }; "width": { "alias": "width"; "required": false; }; "height": { "alias": "height"; "required": false; }; "borderRadius": { "alias": "borderRadius"; "required": false; }; "fontSize": { "alias": "fontSize"; "required": false; }; "gap": { "alias": "gap"; "required": false; }; "fontFamily": { "alias": "fontFamily"; "required": false; }; "labelColor": { "alias": "labelColor"; "required": false; }; "labelFontSize": { "alias": "labelFontSize"; "required": false; }; "labelFontWeight": { "alias": "labelFontWeight"; "required": false; }; "backgroundColor": { "alias": "backgroundColor"; "required": false; }; "borderColor": { "alias": "borderColor"; "required": false; }; "borderWidth": { "alias": "borderWidth"; "required": false; }; "padding": { "alias": "padding"; "required": false; }; "fontWeight": { "alias": "fontWeight"; "required": false; }; "color": { "alias": "color"; "required": false; }; "placeholderColor": { "alias": "placeholderColor"; "required": false; }; "focusBorderColor": { "alias": "focusBorderColor"; "required": false; }; "errorColor": { "alias": "errorColor"; "required": false; }; "disabledBackgroundColor": { "alias": "disabledBackgroundColor"; "required": false; }; "disabledColor": { "alias": "disabledColor"; "required": false; }; "boxShadow": { "alias": "boxShadow"; "required": false; }; }, { "selectionChange": "selectionChange"; }, never, never, false, never>;
2086
+ static ɵcmp: i0.ɵɵComponentDeclaration<DropdownComponent, "lib-dropdown", never, { "config": { "alias": "config"; "required": false; }; "labels": { "alias": "labels"; "required": false; }; "options": { "alias": "options"; "required": false; }; "selectedValue": { "alias": "selectedValue"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "label": { "alias": "label"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "searchable": { "alias": "searchable"; "required": false; }; "clearable": { "alias": "clearable"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "required": { "alias": "required"; "required": false; }; "errorMessage": { "alias": "errorMessage"; "required": false; }; "width": { "alias": "width"; "required": false; }; "height": { "alias": "height"; "required": false; }; "borderRadius": { "alias": "borderRadius"; "required": false; }; "fontSize": { "alias": "fontSize"; "required": false; }; "gap": { "alias": "gap"; "required": false; }; "fontFamily": { "alias": "fontFamily"; "required": false; }; "labelColor": { "alias": "labelColor"; "required": false; }; "labelFontSize": { "alias": "labelFontSize"; "required": false; }; "labelFontWeight": { "alias": "labelFontWeight"; "required": false; }; "backgroundColor": { "alias": "backgroundColor"; "required": false; }; "borderColor": { "alias": "borderColor"; "required": false; }; "borderWidth": { "alias": "borderWidth"; "required": false; }; "padding": { "alias": "padding"; "required": false; }; "fontWeight": { "alias": "fontWeight"; "required": false; }; "color": { "alias": "color"; "required": false; }; "placeholderColor": { "alias": "placeholderColor"; "required": false; }; "focusBorderColor": { "alias": "focusBorderColor"; "required": false; }; "errorColor": { "alias": "errorColor"; "required": false; }; "disabledBackgroundColor": { "alias": "disabledBackgroundColor"; "required": false; }; "disabledColor": { "alias": "disabledColor"; "required": false; }; "boxShadow": { "alias": "boxShadow"; "required": false; }; }, { "selectionChange": "selectionChange"; }, never, never, false, never>;
2073
2087
  }
2074
2088
 
2075
2089
  interface CheckboxOption {
@@ -3257,6 +3271,7 @@ interface TableColumn {
3257
3271
  headerClass?: string;
3258
3272
  sticky?: boolean;
3259
3273
  labelPath?: string;
3274
+ emptyValue?: string;
3260
3275
  dateFormat?: string;
3261
3276
  clickAction?: 'route' | 'callback';
3262
3277
  clickRoute?: string;
@@ -3373,6 +3388,9 @@ interface TableConfig {
3373
3388
  token?: string;
3374
3389
  tokenHeader?: string;
3375
3390
  editingRowClass?: string;
3391
+ /** Fallback text for any cell whose value is null, undefined, or empty string.
3392
+ * Overridden per-column via TableColumn.emptyValue. Library default: '-' */
3393
+ emptyValue?: string;
3376
3394
  }
3377
3395
  interface SearchConfig {
3378
3396
  enabled: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "commons-shared-web-ui",
3
- "version": "0.0.41",
3
+ "version": "0.0.42",
4
4
  "peerDependencies": {
5
5
  "@angular/animations": "20.3.15",
6
6
  "@angular/cdk": "20.2.14",