@openmfp/ngx 0.10.3 → 0.10.5

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": "@openmfp/ngx",
3
- "version": "0.10.3",
3
+ "version": "0.10.5",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/openmfp/webcomponents.git"
@@ -25,14 +25,21 @@ interface PropertyField {
25
25
  /** Ordered list of transforms applied to the resolved string. */
26
26
  transform?: TransformType[];
27
27
  }
28
+ /** Appearance settings for tag chip rendering. */
29
+ interface TagSettings {
30
+ design?: 'Neutral' | 'Positive' | 'Critical' | 'Negative' | 'Information' | 'Set1' | 'Set2';
31
+ colorScheme?: '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | '10';
32
+ /** Delimiter used to split a plain-string value into individual tags. Default: `','`. */
33
+ separator?: string;
34
+ }
28
35
  /** Display and interaction settings for a table cell. */
29
36
  interface UiSettings {
30
- /** When `true`, renders the cell value as a styled badge (blue pill). */
31
- labelDisplay?: boolean;
32
37
  /** How the cell value is rendered. Defaults to plain text when omitted. */
33
- displayAs?: 'secret' | 'boolIcon' | 'link' | 'tooltip' | 'alert' | 'img' | 'button';
38
+ displayAs?: 'secret' | 'boolIcon' | 'link' | 'tooltip' | 'alert' | 'img' | 'button' | 'tag';
34
39
  /** Button appearance and action — only used when `displayAs` is `'button'`. */
35
40
  buttonSettings?: ButtonSettings;
41
+ /** Tag chip configuration — only used when `displayAs` is `'tag'`. */
42
+ tagSettings?: TagSettings;
36
43
  /** SAP UI5 icon name shown as the tooltip trigger icon. */
37
44
  tooltipIcon?: string;
38
45
  /** When `true`, a copy-to-clipboard button is rendered next to the value. */
@@ -436,8 +443,10 @@ declare class Dashboard implements OnInit, OnDestroy {
436
443
  private sectionsSnapshot;
437
444
  private cardsSnapshot;
438
445
  private gridStackItems;
446
+ private addCardBtn;
439
447
  private resizeObserver?;
440
448
  private readonly hostEl;
449
+ private readonly injector;
441
450
  protected gridOptions: _angular_core.Signal<GridStackOptions>;
442
451
  cardDialogOpen: _angular_core.WritableSignal<boolean>;
443
452
  customActions: _angular_core.Signal<ButtonSettings[]>;
@@ -529,9 +538,8 @@ declare class ValueCell<T extends GenericResource, F extends FieldDefinition> {
529
538
  readonly buttonClick: _angular_core.OutputEmitterRef<ValueCellButtonClickEvent<T>>;
530
539
  value: _angular_core.Signal<any>;
531
540
  uiSettings: _angular_core.Signal<_openmfp_ngx.UiSettings | undefined>;
532
- displayAs: _angular_core.Signal<"secret" | "boolIcon" | "link" | "tooltip" | "alert" | "img" | "button" | undefined>;
541
+ displayAs: _angular_core.Signal<"secret" | "boolIcon" | "link" | "tooltip" | "alert" | "img" | "button" | "tag" | undefined>;
533
542
  withCopyButton: _angular_core.Signal<boolean | undefined>;
534
- labelDisplay: _angular_core.Signal<boolean | undefined>;
535
543
  cssCustomization: _angular_core.Signal<Partial<CSSStyleDeclaration> | undefined>;
536
544
  tooltipIcon: _angular_core.Signal<string | undefined>;
537
545
  cssRules: _angular_core.Signal<Partial<CSSStyleDeclaration>>;
@@ -1058,10 +1066,13 @@ declare class ValueCell<T extends GenericResource, F extends FieldDefinition> {
1058
1066
  testId: _angular_core.Signal<string>;
1059
1067
  boolValue: _angular_core.Signal<boolean | undefined>;
1060
1068
  stringValue: _angular_core.Signal<string | undefined>;
1069
+ tags: _angular_core.Signal<string[]>;
1061
1070
  isVisible: _angular_core.WritableSignal<boolean>;
1071
+ copySuccess: _angular_core.WritableSignal<boolean>;
1062
1072
  toggleVisibility(e: Event): void;
1063
1073
  private normalizeBoolean;
1064
1074
  private normalizeString;
1075
+ private normalizeTagsArray;
1065
1076
  private checkValidUrl;
1066
1077
  copyValue(event: Event): void;
1067
1078
  protected buttonClicked(event: MouseEvent): void;
@@ -1099,6 +1110,14 @@ declare class SecretValue {
1099
1110
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<SecretValue, "mfp-secret-value", never, { "value": { "alias": "value"; "required": true; "isSignal": true; }; "isVisible": { "alias": "isVisible"; "required": false; "isSignal": true; }; "testId": { "alias": "testId"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
1100
1111
  }
1101
1112
 
1113
+ declare class TagListValue {
1114
+ tags: _angular_core.InputSignal<string[]>;
1115
+ tagSettings: _angular_core.InputSignal<TagSettings | undefined>;
1116
+ testId: _angular_core.InputSignal<string>;
1117
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<TagListValue, never>;
1118
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<TagListValue, "mfp-tag-list-value", never, { "tags": { "alias": "tags"; "required": true; "isSignal": true; }; "tagSettings": { "alias": "tagSettings"; "required": false; "isSignal": true; }; "testId": { "alias": "testId"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
1119
+ }
1120
+
1102
1121
  declare class VisitedServiceCard {
1103
1122
  serviceType: _angular_core.InputSignal<string>;
1104
1123
  serviceName: _angular_core.InputSignal<string>;
@@ -1152,5 +1171,5 @@ declare class WhatsNew {
1152
1171
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<WhatsNew, "mfp-whats-new", never, {}, {}, never, never, true, never>;
1153
1172
  }
1154
1173
 
1155
- export { AddCardDialog, BooleanValue, CARD_TYPES, Dashboard, DashboardCard, DashboardSection, DeclarativeForm, DeclarativeTable, DeclarativeTableCard, Favorites, LinkValue, SecretValue, ServiceStatusCard, ValueCell, VisitedServiceCard, WhatsNew };
1174
+ export { AddCardDialog, BooleanValue, CARD_TYPES, Dashboard, DashboardCard, DashboardSection, DeclarativeForm, DeclarativeTable, DeclarativeTableCard, Favorites, LinkValue, SecretValue, ServiceStatusCard, TagListValue, ValueCell, VisitedServiceCard, WhatsNew };
1156
1175
  export type { ButtonSettings, CardConfig, CardsType, CssRule, CssRuleCondition, DashboardButtonsSettings, DashboardConfig, DeleteResourceConfirmationConfig, FieldDefinition, FormFieldChangeEvent, FormFieldDefinition, FormFieldErrors, GenericResource, IconDesignType, ModalSettings, PropertyField, ResourceFormConfig, SectionConfig, ServiceStatusItem, ServiceStatusValue, TableCardButtonSettings, TableCardConfig, TableCardFormState, TableConfig, TableFieldDefinition, TransformType, UiSettings, ValueCellButtonClickEvent };