invensys-ng 21.3.10 → 21.3.12

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.10",
3
+ "version": "21.3.12",
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
  */
@@ -5952,5 +6014,5 @@ declare class IRuleEditor {
5952
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>;
5953
6015
  }
5954
6016
 
5955
- 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 };
5956
- 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 };