invensys-ng 21.3.9 → 21.3.11

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": "invensys-ng",
3
- "version": "21.3.9",
3
+ "version": "21.3.11",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/ulbrichFrauendorf/invensys-ng"
@@ -1553,6 +1553,68 @@ declare class EmptyStateComponent {
1553
1553
  static ɵcmp: i0.ɵɵComponentDeclaration<EmptyStateComponent, "i-empty-state", never, { "fixed": { "alias": "fixed"; "required": false; }; "colorScheme": { "alias": "colorScheme"; "required": false; }; }, {}, never, never, true, never>;
1554
1554
  }
1555
1555
 
1556
+ /** Native accept tokens: extensions, MIME types, or MIME groups such as image/*. */
1557
+ type FileUploadType = `.${string}` | `${string}/${string}`;
1558
+ interface FileUploadOptions {
1559
+ /** Empty or omitted accepts all file types. Tokens are matched case-insensitively. */
1560
+ fileTypes?: readonly FileUploadType[];
1561
+ /** Allow selecting more than one file. Defaults to true. */
1562
+ multiple?: boolean;
1563
+ /** Maximum selected files. Defaults to 20. */
1564
+ maxFiles?: number;
1565
+ /** Maximum bytes per file. Defaults to 25 MiB. */
1566
+ maxFileSize?: number;
1567
+ /** Maximum combined bytes. Defaults to 100 MiB. */
1568
+ maxTotalSize?: number;
1569
+ /** Accept zero-byte files. Defaults to false. */
1570
+ allowEmptyFiles?: boolean;
1571
+ }
1572
+ type FileUploadErrorCode = 'fileType' | 'emptyFile' | 'fileSize' | 'fileCount' | 'totalSize';
1573
+ interface FileUploadValidationError {
1574
+ code: FileUploadErrorCode;
1575
+ message: string;
1576
+ file?: File;
1577
+ }
1578
+
1579
+ /**
1580
+ * Selects and validates local files. The consuming app owns the selection and upload transport.
1581
+ * @example
1582
+ * <i-file-upload [(files)]="files" [options]="uploadOptions" />
1583
+ */
1584
+ declare class IFileUpload {
1585
+ /** Controlled selection; supports [(files)]. */
1586
+ files: File[];
1587
+ options: FileUploadOptions;
1588
+ disabled: boolean;
1589
+ dropLabel: string;
1590
+ description: string;
1591
+ chooseLabel: string;
1592
+ ariaLabel: string;
1593
+ uploadIcon: string;
1594
+ fileIcon: string;
1595
+ /** Emits only when a valid selection changes. Invalid batches are rejected as a whole. */
1596
+ filesChange: EventEmitter<File[]>;
1597
+ validationError: EventEmitter<FileUploadValidationError>;
1598
+ readonly componentId: string;
1599
+ dragging: boolean;
1600
+ error: FileUploadValidationError | null;
1601
+ get limits(): Required<FileUploadOptions>;
1602
+ get accept(): string;
1603
+ get limitsLabel(): string;
1604
+ onSelect(event: Event): void;
1605
+ onDragOver(event: DragEvent): void;
1606
+ onDragLeave(event: DragEvent): void;
1607
+ onDrop(event: DragEvent): void;
1608
+ addFiles(incoming: readonly File[]): void;
1609
+ remove(index: number): void;
1610
+ formatSize(bytes: number): string;
1611
+ private accepts;
1612
+ private sameFile;
1613
+ private reject;
1614
+ static ɵfac: i0.ɵɵFactoryDeclaration<IFileUpload, never>;
1615
+ static ɵcmp: i0.ɵɵComponentDeclaration<IFileUpload, "i-file-upload", never, { "files": { "alias": "files"; "required": false; }; "options": { "alias": "options"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "dropLabel": { "alias": "dropLabel"; "required": false; }; "description": { "alias": "description"; "required": false; }; "chooseLabel": { "alias": "chooseLabel"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "uploadIcon": { "alias": "uploadIcon"; "required": false; }; "fileIcon": { "alias": "fileIcon"; "required": false; }; }, { "filesChange": "filesChange"; "validationError": "validationError"; }, never, never, true, never>;
1616
+ }
1617
+
1556
1618
  /**
1557
1619
  * Supported background style options for the input
1558
1620
  */
@@ -4539,6 +4601,8 @@ interface GridAction<T = any> {
4539
4601
  label?: string;
4540
4602
  /** Button severity/style */
4541
4603
  severity?: ISeverity$1;
4604
+ /** Shows the shared progress spinner while this action is pending. */
4605
+ loading?: boolean | ((row: T) => boolean);
4542
4606
  /** Whether the action is disabled */
4543
4607
  disabled?: boolean | ((row: T) => boolean);
4544
4608
  /** Tooltip text to display on hover */
@@ -4561,6 +4625,8 @@ interface GridDetails<TRow = any, TDetail = any> {
4561
4625
  rows: (parentRow: TRow) => TDetail[];
4562
4626
  /** Optional actions on the detail rows */
4563
4627
  actions?: GridAction<TDetail>[];
4628
+ /** Optional action column heading; an empty string hides the visible heading. */
4629
+ actionsHeader?: string;
4564
4630
  }
4565
4631
  /**
4566
4632
  * Single data object passed to `<i-table>`.
@@ -4605,6 +4671,8 @@ interface GridData<TRow = any, TDetail = any> {
4605
4671
  rows: TRow[];
4606
4672
  /** Per-row actions — each action carries its own click handler */
4607
4673
  actions?: GridAction<TRow>[];
4674
+ /** Optional action column heading; defaults to Actions. */
4675
+ actionsHeader?: string;
4608
4676
  /** Optional expandable detail sub-table rendered below each expanded row */
4609
4677
  details?: GridDetails<TRow, TDetail>;
4610
4678
  }
@@ -5026,6 +5094,7 @@ declare class ITable {
5026
5094
  * Checks if an action is disabled for a row.
5027
5095
  * @internal
5028
5096
  */
5097
+ isActionLoading(action: GridAction, row: any): boolean;
5029
5098
  isActionDisabled(action: GridAction, row: any): boolean;
5030
5099
  /**
5031
5100
  * Checks if an action is visible for a row.
@@ -5945,5 +6014,5 @@ declare class IRuleEditor {
5945
6014
  static ɵcmp: i0.ɵɵComponentDeclaration<IRuleEditor, "i-rule-editor", never, { "fields": { "alias": "fields"; "required": false; }; "operators": { "alias": "operators"; "required": false; }; "rules": { "alias": "rules"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "operatorLabel": { "alias": "operatorLabel"; "required": false; }; "addLabel": { "alias": "addLabel"; "required": false; }; "emptyMessage": { "alias": "emptyMessage"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "rulesChange": "rulesChange"; }, never, never, true, never>;
5946
6015
  }
5947
6016
 
5948
- export { AbstractDialog, CLAIMS_CHECKER, ConfirmationDialogComponent, ConfirmationDialogService, DataUpdateEventService, DialogService, EmptyStateComponent, IAccordion, IAccordionList, IButton, ICalendar, ICard, IChart, ICheckbox, IChip, IChipsComponent, IDialog, IDialogActions, IDialogBase, IDivider, IFieldPicker, IInputText, IListbox, IMessage, IMultiSelect, IOrderedList, IOverlayPanel, IPanel, IPlaceholder, IProgressSpinner, IRadioButton, IRuleEditor, ISelect, IStep, IStepper, ITabPanel, ITable, ITabs, ITag, ITextarea, IToggle, ITreeView, IWhisper, LayoutComponent, LayoutService, LocalStorageColorSchemeKey, MenuComponent, NoContentComponent, SeoService, SidebarComponent, StructuredDataService, TooltipComponent, TooltipDirective, TopbarComponent, UniqueComponentId, WhisperService, ZIndexUtils, lastId, provideMenuClaimsChecker };
5949
- export type { AppConfig, ArticleSchema, BreadcrumbItem, CalendarView, ChipItem, ChipRemoveEvent, ClaimsChecker, ConfirmationDialogConfig, DialogBreakpoints, DialogContentStyle, EditorRule, FieldPickerOption, FilterEvent, GridAction, GridData, GridDetails, IButtonSize, IChartData, IChartDataSet, IChartDisplay, IChartType, IChartTypeExtended, ICheckboxSize, IDividerAlign, IDividerLayout, IDynamicDialogConfig, IDynamicDialogRef, IInputBackgroundStyle, ITagSize, ITextareaBackgroundStyle, IToggleSize, ITreeNode, IWhisperMessage, IWhisperOptions, IWhisperPosition, LayoutConfig, ListboxOption, MenuItem, MenuModel, MessageSize, MultiSelectOption, OrderedListItemContext, OrderedListMoveEvent, OrganizationSchema, PlaceholderArrowDirection, RuleEditorField, RuleEditorOperator, RuleFieldType, SelectOption, SeoConfig, SortEvent, StepperChangeEvent, StepperOrientation, TableColumn, TableDownloadEvent, TooltipPosition, TreeSelectionMode, WebSiteSchema };
6017
+ export { AbstractDialog, CLAIMS_CHECKER, ConfirmationDialogComponent, ConfirmationDialogService, DataUpdateEventService, DialogService, EmptyStateComponent, IAccordion, IAccordionList, IButton, ICalendar, ICard, IChart, ICheckbox, IChip, IChipsComponent, IDialog, IDialogActions, IDialogBase, IDivider, IFieldPicker, IFileUpload, IInputText, IListbox, IMessage, IMultiSelect, IOrderedList, IOverlayPanel, IPanel, IPlaceholder, IProgressSpinner, IRadioButton, IRuleEditor, ISelect, IStep, IStepper, ITabPanel, ITable, ITabs, ITag, ITextarea, IToggle, ITreeView, IWhisper, LayoutComponent, LayoutService, LocalStorageColorSchemeKey, MenuComponent, NoContentComponent, SeoService, SidebarComponent, StructuredDataService, TooltipComponent, TooltipDirective, TopbarComponent, UniqueComponentId, WhisperService, ZIndexUtils, lastId, provideMenuClaimsChecker };
6018
+ export type { AppConfig, ArticleSchema, BreadcrumbItem, CalendarView, ChipItem, ChipRemoveEvent, ClaimsChecker, ConfirmationDialogConfig, DialogBreakpoints, DialogContentStyle, EditorRule, FieldPickerOption, FileUploadErrorCode, FileUploadOptions, FileUploadType, FileUploadValidationError, FilterEvent, GridAction, GridData, GridDetails, IButtonSize, IChartData, IChartDataSet, IChartDisplay, IChartType, IChartTypeExtended, ICheckboxSize, IDividerAlign, IDividerLayout, IDynamicDialogConfig, IDynamicDialogRef, IInputBackgroundStyle, ITagSize, ITextareaBackgroundStyle, IToggleSize, ITreeNode, IWhisperMessage, IWhisperOptions, IWhisperPosition, LayoutConfig, ListboxOption, MenuItem, MenuModel, MessageSize, MultiSelectOption, OrderedListItemContext, OrderedListMoveEvent, OrganizationSchema, PlaceholderArrowDirection, RuleEditorField, RuleEditorOperator, RuleFieldType, SelectOption, SeoConfig, SortEvent, StepperChangeEvent, StepperOrientation, TableColumn, TableDownloadEvent, TooltipPosition, TreeSelectionMode, WebSiteSchema };