sapenlinea-components 0.0.24 → 0.0.26

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
@@ -134,10 +134,13 @@ declare class PaginationComponent {
134
134
  interface TableColumn {
135
135
  key: string;
136
136
  label: string;
137
- type?: 'text' | 'number' | 'money' | 'date' | 'percentage' | 'status';
137
+ type?: 'text' | 'number' | 'money' | 'date' | 'percentage' | 'status' | 'icon-button';
138
138
  align?: 'left' | 'right' | 'center' | 'auto';
139
139
  sortable?: boolean;
140
140
  showActions?: boolean;
141
+ icon?: string;
142
+ iconKey?: string;
143
+ iconColor?: string;
141
144
  }
142
145
  interface TableRow {
143
146
  [key: string]: any;
@@ -169,6 +172,10 @@ declare class Table {
169
172
  action: string;
170
173
  row: TableRow;
171
174
  }>;
175
+ iconAction: _angular_core.OutputEmitterRef<{
176
+ action: string;
177
+ row: TableRow;
178
+ }>;
172
179
  statusToneMap: _angular_core.InputSignal<StatusToneMap>;
173
180
  toggleMenu(index: number): void;
174
181
  onOptionClick(option: TableAction, row: TableRow): void;
@@ -190,8 +197,9 @@ declare class Table {
190
197
  sortData(): TableRow[];
191
198
  isDate(value: any): boolean;
192
199
  onSort(col: TableColumn): void;
200
+ onIconColumnClick(col: TableColumn, row: TableRow, event: MouseEvent): void;
193
201
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<Table, never>;
194
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<Table, "lib-table", never, { "columns": { "alias": "columns"; "required": false; "isSignal": true; }; "data": { "alias": "data"; "required": false; "isSignal": true; }; "actions": { "alias": "actions"; "required": false; "isSignal": true; }; "showActions": { "alias": "showActions"; "required": false; "isSignal": true; }; "statusToneMap": { "alias": "statusToneMap"; "required": false; "isSignal": true; }; }, { "optionSelected": "optionSelected"; }, never, never, true, never>;
202
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<Table, "lib-table", never, { "columns": { "alias": "columns"; "required": false; "isSignal": true; }; "data": { "alias": "data"; "required": false; "isSignal": true; }; "actions": { "alias": "actions"; "required": false; "isSignal": true; }; "showActions": { "alias": "showActions"; "required": false; "isSignal": true; }; "statusToneMap": { "alias": "statusToneMap"; "required": false; "isSignal": true; }; }, { "optionSelected": "optionSelected"; "iconAction": "iconAction"; }, never, never, true, never>;
195
203
  }
196
204
 
197
205
  declare class DateTimePicker implements ControlValueAccessor, OnDestroy {
@@ -480,11 +488,12 @@ declare class ModalForm {
480
488
  canContinue: _angular_core.WritableSignal<boolean>;
481
489
  onSubmit: _angular_core.OutputEmitterRef<any>;
482
490
  onCancel: _angular_core.OutputEmitterRef<void>;
491
+ constructor();
483
492
  nextStep(): void;
484
493
  prevStep(): void;
485
494
  submitForm(): void;
486
495
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<ModalForm, never>;
487
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<ModalForm, "lib-modal-form", never, { "title": { "alias": "title"; "required": false; "isSignal": true; }; "submitLabel": { "alias": "submitLabel"; "required": false; "isSignal": true; }; "form": { "alias": "form"; "required": false; "isSignal": true; }; "steps": { "alias": "steps"; "required": false; "isSignal": true; }; }, { "onSubmit": "onSubmit"; "onCancel": "onCancel"; }, never, never, true, never>;
496
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<ModalForm, "lib-modal-form", never, { "title": { "alias": "title"; "required": false; "isSignal": true; }; "submitLabel": { "alias": "submitLabel"; "required": false; "isSignal": true; }; "form": { "alias": "form"; "required": false; "isSignal": true; }; "steps": { "alias": "steps"; "required": false; "isSignal": true; }; }, { "onSubmit": "onSubmit"; "onCancel": "onCancel"; }, never, ["*"], true, never>;
488
497
  }
489
498
 
490
499
  declare class WizardForm {
@@ -530,5 +539,26 @@ declare class DialogAlertComponent implements OnInit, OnChanges {
530
539
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<DialogAlertComponent, "lib-dialog-alert-component", never, { "title": { "alias": "title"; "required": false; }; "message": { "alias": "message"; "required": false; }; "type": { "alias": "type"; "required": false; }; "action": { "alias": "action"; "required": false; }; "showReason": { "alias": "showReason"; "required": false; }; "confirm": { "alias": "confirm"; "required": false; }; "confirmLabel": { "alias": "confirmLabel"; "required": false; }; "reasonOptions": { "alias": "reasonOptions"; "required": false; }; }, { "close": "close"; "confirmReason": "confirmReason"; }, never, never, true, never>;
531
540
  }
532
541
 
533
- export { DateTimeFilter, DateTimePicker, DialogAlertComponent, DynamicFormFields, InputNumberFilter, InputSelectFilter, InputTextFilter, ModalForm, PaginationComponent, STATUS_TONE_STYLES, SelectCustomSearch, Table, WizardForm };
534
- export type { DateFilterSelection, DateTimeMode, FieldConfig, FilterItem, FilterOption, FilterType, Hour12, ModalFormStep, Option, SectionConfig, SelectedDatesMap, StatusTone, StatusToneMap, TableAction, TableColumn, TableRow };
542
+ interface DialogItem {
543
+ key: string;
544
+ label: string;
545
+ value: string;
546
+ expandible?: boolean;
547
+ children?: DialogItem[];
548
+ }
549
+ declare class DialogConfirmation {
550
+ title: string;
551
+ confirm: boolean;
552
+ confirmLabel: string;
553
+ items: DialogItem[];
554
+ close: EventEmitter<boolean>;
555
+ expandedIndex: number | null;
556
+ toggle(index: number): void;
557
+ onConfirm(): void;
558
+ onCancel(): void;
559
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<DialogConfirmation, never>;
560
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<DialogConfirmation, "lib-dialog-confirmation", never, { "title": { "alias": "title"; "required": false; }; "confirm": { "alias": "confirm"; "required": false; }; "confirmLabel": { "alias": "confirmLabel"; "required": false; }; "items": { "alias": "items"; "required": false; }; }, { "close": "close"; }, never, never, true, never>;
561
+ }
562
+
563
+ export { DateTimeFilter, DateTimePicker, DialogAlertComponent, DialogConfirmation, DynamicFormFields, InputNumberFilter, InputSelectFilter, InputTextFilter, ModalForm, PaginationComponent, STATUS_TONE_STYLES, SelectCustomSearch, Table, WizardForm };
564
+ export type { DateFilterSelection, DateTimeMode, DialogItem, FieldConfig, FilterItem, FilterOption, FilterType, Hour12, ModalFormStep, Option, SectionConfig, SelectedDatesMap, StatusTone, StatusToneMap, TableAction, TableColumn, TableRow };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sapenlinea-components",
3
- "version": "0.0.24",
3
+ "version": "0.0.26",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^20.3.0",
6
6
  "@angular/core": "^20.3.0"