@nettyapps/ntybase 0.0.4 → 0.0.6

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
@@ -183,6 +183,20 @@ declare class CommonService {
183
183
  * @returns
184
184
  */
185
185
  dateFormatter(dateValue: Date): string;
186
+ /**
187
+ * Format date into 'dd-MM-yyyy HH:mm:ss' format for grids
188
+ * @param dateValue
189
+ * @param seconds if true, format includes seconds
190
+ * @returns
191
+ */
192
+ dateTimeFormatter(dateValue: Date, seconds?: boolean): string;
193
+ /**
194
+ * Format time into 'HH:mm' or 'HH:mm:ss' format for grids
195
+ * @param dateValue
196
+ * @param seconds if true, format includes seconds
197
+ * @returns
198
+ */
199
+ timeFormatter(dateValue: Date, seconds?: boolean): string;
186
200
  /** Reactive Signal state for tracking grid updates */
187
201
  private _updates;
188
202
  /** Read-only Signal for external components to observe updates */
@@ -208,6 +222,7 @@ declare class AlertService {
208
222
  private translate;
209
223
  constructor(snackBar: MatSnackBar, dialog: MatDialog, translate: TranslateService);
210
224
  showAlert(message: string, action?: string, duration?: number): void;
225
+ showWarning(message: string, action?: string, duration?: number): void;
211
226
  showConfirm(message: string): Promise<boolean>;
212
227
  showSuccess(message: string, duration?: number): void;
213
228
  showError(error: any, duration?: number): void;
@@ -246,7 +261,7 @@ declare abstract class AgGridBase<T extends {
246
261
  popupValid: _angular_core.InputSignal<boolean>;
247
262
  params: _angular_core.InputSignal<any>;
248
263
  parameters: _angular_core.InputSignal<string>;
249
- isEmbedded: _angular_core.WritableSignal<boolean>;
264
+ isEmbedded: _angular_core.InputSignal<boolean>;
250
265
  protected authenticationList: Array<NettySecurity>;
251
266
  protected accessRightsProcessed: _angular_core.WritableSignal<boolean>;
252
267
  allowAdd: _angular_core.WritableSignal<boolean>;
@@ -332,7 +347,7 @@ declare abstract class AgGridBase<T extends {
332
347
  protected getEntityType?(): string;
333
348
  protected selectedData?(): void;
334
349
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<AgGridBase<any>, never>;
335
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<AgGridBase<any>, "ntybase-ag-grid-base", never, { "readOnly": { "alias": "readOnly"; "required": false; "isSignal": true; }; "popupFilterValid": { "alias": "popupFilterValid"; "required": false; "isSignal": true; }; "popupValid": { "alias": "popupValid"; "required": false; "isSignal": true; }; "params": { "alias": "params"; "required": false; "isSignal": true; }; "parameters": { "alias": "parameters"; "required": false; "isSignal": true; }; }, { "selectedElement": "selectedElement"; }, never, never, true, never>;
350
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<AgGridBase<any>, "ntybase-ag-grid-base", never, { "readOnly": { "alias": "readOnly"; "required": false; "isSignal": true; }; "popupFilterValid": { "alias": "popupFilterValid"; "required": false; "isSignal": true; }; "popupValid": { "alias": "popupValid"; "required": false; "isSignal": true; }; "params": { "alias": "params"; "required": false; "isSignal": true; }; "parameters": { "alias": "parameters"; "required": false; "isSignal": true; }; "isEmbedded": { "alias": "isEmbedded"; "required": false; "isSignal": true; }; }, { "selectedElement": "selectedElement"; }, never, never, true, never>;
336
351
  }
337
352
 
338
353
  type UserViewMode = 'fullscreen' | 'sidenav' | 'dialog';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nettyapps/ntybase",
3
- "version": "0.0.4",
3
+ "version": "0.0.6",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^20.1.7",
6
6
  "@angular/core": "^20.1.7"