@decaf-ts/for-angular 0.0.11 → 0.0.13

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.
Files changed (85) hide show
  1. package/package.json +19 -91
  2. package/LICENSE.md +0 -659
  3. package/dist/lib/README.md +0 -92
  4. package/dist/lib/assets/i18n/en.json +0 -140
  5. package/dist/lib/assets/images/angular-logo.svg +0 -45
  6. package/dist/lib/assets/images/decaf-logo-black.svg +0 -22
  7. package/dist/lib/assets/images/decaf-logo-lw.svg +0 -50
  8. package/dist/lib/assets/images/decaf-logo-white.svg +0 -22
  9. package/dist/lib/assets/images/decaf-logo.svg +0 -54
  10. package/dist/lib/components/component-renderer/component-renderer.component.d.ts +0 -276
  11. package/dist/lib/components/crud-field/crud-field.component.d.ts +0 -445
  12. package/dist/lib/components/crud-form/constants.d.ts +0 -5
  13. package/dist/lib/components/crud-form/crud-form.component.d.ts +0 -102
  14. package/dist/lib/components/crud-form/types.d.ts +0 -17
  15. package/dist/lib/components/empty-state/empty-state.component.d.ts +0 -301
  16. package/dist/lib/components/fieldset/fieldset.component.d.ts +0 -199
  17. package/dist/lib/components/filter/filter.component.d.ts +0 -505
  18. package/dist/lib/components/for-angular-components.module.d.ts +0 -20
  19. package/dist/lib/components/index.d.ts +0 -16
  20. package/dist/lib/components/layout/layout.component.d.ts +0 -133
  21. package/dist/lib/components/list/constants.d.ts +0 -29
  22. package/dist/lib/components/list/list.component.d.ts +0 -849
  23. package/dist/lib/components/list-item/list-item.component.d.ts +0 -390
  24. package/dist/lib/components/model-renderer/model-renderer.component.d.ts +0 -96
  25. package/dist/lib/components/pagination/constants.d.ts +0 -7
  26. package/dist/lib/components/pagination/pagination.component.d.ts +0 -264
  27. package/dist/lib/components/searchbar/searchbar.component.d.ts +0 -407
  28. package/dist/lib/directives/collapsable.directive.d.ts +0 -8
  29. package/dist/lib/directives/index.d.ts +0 -1
  30. package/dist/lib/engine/DynamicModule.d.ts +0 -17
  31. package/dist/lib/engine/NgxBaseComponent.d.ts +0 -541
  32. package/dist/lib/engine/NgxCrudFormField.d.ts +0 -118
  33. package/dist/lib/engine/NgxFormService.d.ts +0 -167
  34. package/dist/lib/engine/NgxRenderingEngine.d.ts +0 -127
  35. package/dist/lib/engine/NgxRenderingEngine2.d.ts +0 -250
  36. package/dist/lib/engine/ValidatorFactory.d.ts +0 -15
  37. package/dist/lib/engine/constants.d.ts +0 -151
  38. package/dist/lib/engine/decorators.d.ts +0 -25
  39. package/dist/lib/engine/index.d.ts +0 -16
  40. package/dist/lib/engine/types.d.ts +0 -381
  41. package/dist/lib/esm2022/components/component-renderer/component-renderer.component.mjs +0 -313
  42. package/dist/lib/esm2022/components/crud-field/crud-field.component.mjs +0 -301
  43. package/dist/lib/esm2022/components/crud-form/constants.mjs +0 -14
  44. package/dist/lib/esm2022/components/crud-form/crud-form.component.mjs +0 -139
  45. package/dist/lib/esm2022/components/crud-form/types.mjs +0 -2
  46. package/dist/lib/esm2022/components/empty-state/empty-state.component.mjs +0 -348
  47. package/dist/lib/esm2022/components/fieldset/fieldset.component.mjs +0 -225
  48. package/dist/lib/esm2022/components/filter/filter.component.mjs +0 -689
  49. package/dist/lib/esm2022/components/for-angular-components.module.mjs +0 -71
  50. package/dist/lib/esm2022/components/index.mjs +0 -20
  51. package/dist/lib/esm2022/components/layout/layout.component.mjs +0 -176
  52. package/dist/lib/esm2022/components/list/constants.mjs +0 -6
  53. package/dist/lib/esm2022/components/list/list.component.mjs +0 -1236
  54. package/dist/lib/esm2022/components/list-item/list-item.component.mjs +0 -408
  55. package/dist/lib/esm2022/components/model-renderer/model-renderer.component.mjs +0 -138
  56. package/dist/lib/esm2022/components/pagination/constants.mjs +0 -2
  57. package/dist/lib/esm2022/components/pagination/pagination.component.mjs +0 -323
  58. package/dist/lib/esm2022/components/searchbar/searchbar.component.mjs +0 -493
  59. package/dist/lib/esm2022/decaf-ts-for-angular.mjs +0 -5
  60. package/dist/lib/esm2022/directives/collapsable.directive.mjs +0 -28
  61. package/dist/lib/esm2022/directives/index.mjs +0 -2
  62. package/dist/lib/esm2022/engine/DynamicModule.mjs +0 -18
  63. package/dist/lib/esm2022/engine/NgxBaseComponent.mjs +0 -539
  64. package/dist/lib/esm2022/engine/NgxCrudFormField.mjs +0 -125
  65. package/dist/lib/esm2022/engine/NgxFormService.mjs +0 -315
  66. package/dist/lib/esm2022/engine/NgxRenderingEngine.mjs +0 -192
  67. package/dist/lib/esm2022/engine/NgxRenderingEngine2.mjs +0 -332
  68. package/dist/lib/esm2022/engine/ValidatorFactory.mjs +0 -102
  69. package/dist/lib/esm2022/engine/constants.mjs +0 -160
  70. package/dist/lib/esm2022/engine/decorators.mjs +0 -38
  71. package/dist/lib/esm2022/engine/index.mjs +0 -17
  72. package/dist/lib/esm2022/engine/types.mjs +0 -4
  73. package/dist/lib/esm2022/for-angular.module.mjs +0 -118
  74. package/dist/lib/esm2022/helpers/index.mjs +0 -13
  75. package/dist/lib/esm2022/helpers/utils.mjs +0 -415
  76. package/dist/lib/esm2022/interfaces.mjs +0 -2
  77. package/dist/lib/esm2022/public-apis.mjs +0 -14
  78. package/dist/lib/fesm2022/decaf-ts-for-angular.mjs +0 -7109
  79. package/dist/lib/fesm2022/decaf-ts-for-angular.mjs.map +0 -1
  80. package/dist/lib/for-angular.module.d.ts +0 -45
  81. package/dist/lib/helpers/index.d.ts +0 -12
  82. package/dist/lib/helpers/utils.d.ts +0 -253
  83. package/dist/lib/index.d.ts +0 -5
  84. package/dist/lib/interfaces.d.ts +0 -28
  85. package/dist/lib/public-apis.d.ts +0 -13
@@ -1,390 +0,0 @@
1
- import { EventEmitter, OnInit } from '@angular/core';
2
- import { CrudOperations } from '@decaf-ts/db-decorators';
3
- import { StringOrBoolean } from '../../engine/types';
4
- import { NgxBaseComponent } from '../../engine/NgxBaseComponent';
5
- import { ListItemCustomEvent } from '../../engine';
6
- import * as i0 from "@angular/core";
7
- /**
8
- * @description A component for displaying a list item with various customization options.
9
- * @summary The ListItemComponent is an Angular component that extends NgxBaseComponent. It provides a flexible and customizable list item interface with support for icons, buttons, and various text elements. The component also handles actions and navigation based on user interactions.
10
- *
11
- * @class
12
- * @extends NgxBaseComponent
13
- *
14
- * @param {string} [lines='none'] - Determines the line style of the item. Can be 'inset', 'inseet', or 'none'.
15
- * @param {Record<string, any>} item - The data item to be displayed in the list item.
16
- * @param {string} icon - The name of the icon to be displayed.
17
- * @param {'start' | 'end'} [iconSlot='start'] - The position of the icon within the item.
18
- * @param {StringOrBoolean} [button=true] - Determines if the item should behave as a button.
19
- * @param {string} [title] - The main title of the list item.
20
- * @param {string} [description] - A description for the list item.
21
- * @param {string} [info] - Additional information for the list item.
22
- * @param {string} [subinfo] - Sub-information for the list item.
23
- *
24
- * @example
25
- * <ngx-decaf-list-item
26
- * [item]="dataItem"
27
- * icon="star"
28
- * title="Item Title"
29
- * description="Item Description"
30
- * (clickEvent)="handleItemClick($event)">
31
- * </ngx-decaf-list-item>
32
- *
33
- * @mermaid
34
- * sequenceDiagram
35
- * participant C as Component
36
- * participant V as View
37
- * participant U as User
38
- * C->>V: Initialize component
39
- * V->>U: Display list item
40
- * U->>V: Click on item or action
41
- * V->>C: Trigger handleAction()
42
- * C->>C: Process action
43
- * C->>V: Update view or navigate
44
- */
45
- export declare class ListItemComponent extends NgxBaseComponent implements OnInit {
46
- /**
47
- * @description Reference to the action menu popover component.
48
- * @summary ViewChild reference that provides access to the HTMLIonPopoverElement
49
- * used for displaying action menus. This reference is used to programmatically
50
- * control the popover, such as dismissing it when necessary.
51
- *
52
- * @type {HTMLIonPopoverElement}
53
- * @memberOf ListItemComponent
54
- */
55
- actionMenuComponent: HTMLIonPopoverElement;
56
- /**
57
- * @description Controls the display of lines around the list item.
58
- * @summary Determines how lines are displayed around the list item borders.
59
- * 'inset' shows lines with padding, 'full' shows full-width lines, and 'none'
60
- * removes all lines. This affects the visual separation between list items.
61
- *
62
- * @type {'inset' | 'full' | 'none'}
63
- * @default 'inset'
64
- * @memberOf ListItemComponent
65
- */
66
- lines: 'inset' | 'full' | 'none';
67
- /**
68
- * @description The data object associated with this list item.
69
- * @summary Contains the raw data that this list item represents. This object
70
- * is used to extract display information and for passing to event handlers
71
- * when the item is interacted with. It overrides the base item property.
72
- *
73
- * @type {Record<string, unknown>}
74
- * @memberOf ListItemComponent
75
- */
76
- item: Record<string, unknown>;
77
- /**
78
- * @description The name of the icon to display in the list item.
79
- * @summary Specifies which icon to display using Ionic's icon system.
80
- * The icon name should correspond to an available Ionic icon or a custom
81
- * icon that has been registered with the icon registry.
82
- *
83
- * @type {string}
84
- * @memberOf ListItemComponent
85
- */
86
- icon: string;
87
- /**
88
- * @description Position of the icon within the list item.
89
- * @summary Determines whether the icon appears at the start (left in LTR languages)
90
- * or end (right in LTR languages) of the list item. This affects the overall
91
- * layout and visual hierarchy of the item content.
92
- *
93
- * @type {'start' | 'end'}
94
- * @default 'start'
95
- * @memberOf ListItemComponent
96
- */
97
- iconSlot: 'start' | 'end';
98
- /**
99
- * @description Controls whether the list item behaves as a clickable button.
100
- * @summary When set to true, the list item will have button-like behavior including
101
- * hover effects, click handling, and appropriate accessibility attributes.
102
- * When false, the item is displayed as static content without interactive behavior.
103
- *
104
- * @type {StringOrBoolean}
105
- * @default true
106
- * @memberOf ListItemComponent
107
- */
108
- button: StringOrBoolean;
109
- /**
110
- * @description The main title text displayed in the list item.
111
- * @summary Sets the primary text content that appears prominently in the list item.
112
- * This is typically the most important information about the item and is displayed
113
- * with emphasis in the component's visual hierarchy.
114
- *
115
- * @type {string}
116
- * @memberOf ListItemComponent
117
- */
118
- title?: string;
119
- /**
120
- * @description Secondary descriptive text for the list item.
121
- * @summary Provides additional context or details about the item. This text
122
- * is typically displayed below the title with less visual emphasis.
123
- * Useful for providing context without cluttering the main title.
124
- *
125
- * @type {string}
126
- * @memberOf ListItemComponent
127
- */
128
- description?: string;
129
- /**
130
- * @description Additional information text for the list item.
131
- * @summary Displays supplementary information that provides extra context
132
- * about the item. This could include metadata, status information, or
133
- * other relevant details that don't fit in the title or description.
134
- *
135
- * @type {string}
136
- * @memberOf ListItemComponent
137
- */
138
- info?: string;
139
- /**
140
- * @description Sub-information text displayed in the list item.
141
- * @summary Provides tertiary level information that complements the info field.
142
- * This is typically used for additional metadata or contextual details
143
- * that are useful but not critical for understanding the item.
144
- *
145
- * @type {string}
146
- * @memberOf ListItemComponent
147
- */
148
- subinfo?: string;
149
- /**
150
- * @description Event emitter for list item click interactions.
151
- * @summary Emits custom events when the list item is clicked or when actions
152
- * are performed on it. The emitted event contains information about the action,
153
- * the item data, and other relevant context for parent components to handle.
154
- *
155
- * @type {EventEmitter<ListItemCustomEvent>}
156
- * @memberOf ListItemComponent
157
- */
158
- clickEvent: EventEmitter<ListItemCustomEvent>;
159
- /**
160
- * @description Flag indicating whether slide items are currently enabled.
161
- * @summary Controls the visibility of slide actions based on screen size and
162
- * available operations. When true, users can swipe on the item to reveal
163
- * action buttons for operations like edit and delete.
164
- *
165
- * @type {boolean}
166
- * @default false
167
- * @memberOf ListItemComponent
168
- */
169
- showSlideItems: boolean;
170
- /**
171
- * @description Current window width in pixels.
172
- * @summary Stores the current browser window width which is used to determine
173
- * responsive behavior, such as when to show or hide slide items based on
174
- * screen size. Updated automatically on window resize events.
175
- *
176
- * @type {number}
177
- * @memberOf ListItemComponent
178
- */
179
- windowWidth: number;
180
- /**
181
- * @description Flag indicating whether the action menu popover is currently open.
182
- * @summary Tracks the state of the action menu to prevent multiple instances
183
- * from being opened simultaneously and to ensure proper cleanup when actions
184
- * are performed. Used for managing the popover lifecycle.
185
- *
186
- * @type {boolean}
187
- * @default false
188
- * @memberOf ListItemComponent
189
- */
190
- actionMenuOpen: boolean;
191
- /**
192
- * @description Angular NavController service for handling navigation.
193
- * @summary Injected service that provides methods for programmatic navigation
194
- * within the Ionic application. Used for navigating to different routes when
195
- * list item actions are performed or when the item itself is clicked.
196
- *
197
- * @private
198
- * @type {NavController}
199
- * @memberOf ListItemComponent
200
- */
201
- private navController;
202
- /**
203
- * @description Creates an instance of ListItemComponent.
204
- * @summary Initializes a new ListItemComponent by calling the parent class constructor
205
- * with the component name for logging and identification purposes. Also registers
206
- * all available Ionic icons to ensure they can be displayed in the component.
207
- *
208
- * @memberOf ListItemComponent
209
- */
210
- constructor();
211
- /**
212
- * @description Initializes the component after Angular first displays the data-bound properties.
213
- * @summary Sets up the component by determining slide item visibility, processing boolean inputs,
214
- * building CSS class names based on properties, and capturing the current window width.
215
- * This method prepares the component for user interaction by ensuring all properties are
216
- * properly initialized and responsive behavior is configured.
217
- *
218
- * @mermaid
219
- * sequenceDiagram
220
- * participant A as Angular Lifecycle
221
- * participant L as ListItemComponent
222
- * participant W as Window
223
- *
224
- * A->>L: ngOnInit()
225
- * L->>L: enableSlideItems()
226
- * L->>L: Process button boolean
227
- * L->>L: Build className with flex classes
228
- * alt operations exist
229
- * L->>L: Add 'action' class
230
- * end
231
- * L->>W: getWindowWidth()
232
- * W-->>L: Return current width
233
- * L->>L: Store windowWidth
234
- *
235
- * @return {Promise<void>}
236
- * @memberOf ListItemComponent
237
- */
238
- ngOnInit(): Promise<void>;
239
- /**
240
- * @description Handles user interactions and actions performed on the list item.
241
- * @summary This method is the central action handler for list item interactions. It manages
242
- * event propagation, dismisses open action menus, removes focus traps, and either emits
243
- * events for parent components to handle or performs navigation based on the component's
244
- * route configuration. This method supports both event-driven and navigation-driven architectures.
245
- *
246
- * @param {CrudOperations} action - The type of CRUD operation being performed
247
- * @param {Event} event - The browser event that triggered the action
248
- * @param {HTMLElement} [target] - Optional target element for the event
249
- * @return {Promise<boolean|void>} A promise that resolves to navigation success or void for events
250
- *
251
- * @mermaid
252
- * sequenceDiagram
253
- * participant U as User
254
- * participant L as ListItemComponent
255
- * participant P as Parent Component
256
- * participant N as NavController
257
- * participant E as Event System
258
- *
259
- * U->>L: Perform action (click/swipe)
260
- * L->>L: stopPropagation()
261
- * alt actionMenuOpen
262
- * L->>L: Dismiss action menu
263
- * end
264
- * L->>L: removeFocusTrap()
265
- * alt No route configured
266
- * L->>E: windowEventEmitter()
267
- * L->>P: clickEvent.emit()
268
- * else Route configured
269
- * L->>N: redirect(action, uid)
270
- * N-->>L: Return navigation result
271
- * end
272
- *
273
- * @memberOf ListItemComponent
274
- */
275
- handleAction(action: CrudOperations, event: Event, target?: HTMLElement): Promise<boolean | void>;
276
- /**
277
- * @description Responsive handler that enables or disables slide items based on screen size and operations.
278
- * @summary This method is automatically called when the window is resized and also during component
279
- * initialization. It determines whether slide actions should be available based on the current
280
- * window width and the presence of UPDATE or DELETE operations. Slide items are typically hidden
281
- * on larger screens where there's space for dedicated action buttons.
282
- *
283
- * @return {boolean} True if slide items should be shown, false otherwise
284
- *
285
- * @mermaid
286
- * sequenceDiagram
287
- * participant W as Window
288
- * participant L as ListItemComponent
289
- * participant U as UI
290
- *
291
- * W->>L: resize event
292
- * L->>W: getWindowWidth()
293
- * W-->>L: Return current width
294
- * L->>L: Store windowWidth
295
- * alt No operations OR width > 768px
296
- * L->>U: showSlideItems = false
297
- * else Operations include UPDATE/DELETE
298
- * L->>U: showSlideItems = true
299
- * end
300
- * L-->>U: Return showSlideItems value
301
- *
302
- * @memberOf ListItemComponent
303
- */
304
- enableSlideItems(): boolean;
305
- /**
306
- * @description Animates and removes an element from the DOM.
307
- * @summary This method applies CSS animation classes to create a smooth fade-out effect
308
- * before removing the element from the DOM. The animation enhances user experience by
309
- * providing visual feedback when items are deleted or removed from lists. The timing
310
- * is coordinated with the CSS animation duration to ensure the element is removed
311
- * after the animation completes.
312
- *
313
- * @param {HTMLElement} element - The DOM element to animate and remove
314
- * @return {void}
315
- *
316
- * @mermaid
317
- * sequenceDiagram
318
- * participant L as ListItemComponent
319
- * participant E as HTMLElement
320
- * participant D as DOM
321
- *
322
- * L->>E: Add animation classes
323
- * Note over E: uk-animation-fade, uk-animation-medium, uk-animation-reverse
324
- * E->>E: Start fade animation
325
- * L->>L: setTimeout(600ms)
326
- * Note over L: Wait for animation to complete
327
- * L->>D: element.remove()
328
- * D->>D: Remove element from DOM
329
- *
330
- * @memberOf ListItemComponent
331
- */
332
- removeElement(element: HTMLElement): void;
333
- /**
334
- * @description Navigates to a new route based on the specified action and item ID.
335
- * @summary This method constructs a navigation URL using the component's route configuration,
336
- * the specified action, and an item identifier. It uses Ionic's NavController to perform
337
- * forward navigation with appropriate animations. This method is typically used for
338
- * CRUD operations where each action (create, read, update, delete) has its own route.
339
- *
340
- * @param {string} action - The action to be performed (e.g., 'edit', 'view', 'delete')
341
- * @param {string} [id] - The unique identifier of the item to be acted upon
342
- * @return {Promise<boolean>} A promise that resolves to true if navigation was successful
343
- *
344
- * @mermaid
345
- * sequenceDiagram
346
- * participant L as ListItemComponent
347
- * participant N as NavController
348
- * participant R as Router
349
- *
350
- * L->>L: redirect(action, id)
351
- * L->>L: Construct URL: /{route}/{action}/{id}
352
- * L->>N: navigateForward(url)
353
- * N->>R: Navigate to constructed URL
354
- * R-->>N: Return navigation result
355
- * N-->>L: Return boolean success
356
- *
357
- * @memberOf ListItemComponent
358
- */
359
- redirect(action: string, id?: string): Promise<boolean>;
360
- /**
361
- * @description Presents the actions menu popover for the list item.
362
- * @summary This method handles the display of a contextual action menu when triggered by user
363
- * interaction (typically a long press or right-click). It stops event propagation to prevent
364
- * unwanted side effects, removes any existing focus traps for accessibility, configures the
365
- * popover with the triggering event, and opens the action menu. The menu typically contains
366
- * available CRUD operations for the item.
367
- *
368
- * @param {Event} event - The event that triggered the action menu request
369
- * @return {void}
370
- *
371
- * @mermaid
372
- * sequenceDiagram
373
- * participant U as User
374
- * participant L as ListItemComponent
375
- * participant P as Popover
376
- * participant A as Accessibility
377
- *
378
- * U->>L: Trigger action menu (long press/right-click)
379
- * L->>L: stopPropagation()
380
- * L->>A: removeFocusTrap()
381
- * L->>P: Set event reference
382
- * L->>L: actionMenuOpen = true
383
- * L->>P: Display popover with actions
384
- *
385
- * @memberOf ListItemComponent
386
- */
387
- presentActionsMenu(event: Event): void;
388
- static ɵfac: i0.ɵɵFactoryDeclaration<ListItemComponent, never>;
389
- static ɵcmp: i0.ɵɵComponentDeclaration<ListItemComponent, "ngx-decaf-list-item", never, { "lines": { "alias": "lines"; "required": false; }; "item": { "alias": "item"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "iconSlot": { "alias": "iconSlot"; "required": false; }; "button": { "alias": "button"; "required": false; }; "title": { "alias": "title"; "required": false; }; "description": { "alias": "description"; "required": false; }; "info": { "alias": "info"; "required": false; }; "subinfo": { "alias": "subinfo"; "required": false; }; }, { "clickEvent": "clickEvent"; }, never, ["[slot='end']"], true, never>;
390
- }
@@ -1,96 +0,0 @@
1
- import { EventEmitter, OnChanges, OnDestroy, SimpleChanges, TemplateRef, ViewContainerRef } from '@angular/core';
2
- import { Model } from '@decaf-ts/decorator-validation';
3
- import { AngularDynamicOutput, RenderedModel } from '../../engine';
4
- import { RendererCustomEvent } from '../../engine/types';
5
- import * as i0 from "@angular/core";
6
- /**
7
- * @description Component for rendering dynamic models
8
- * @summary This component is responsible for dynamically rendering models,
9
- * handling model changes, and managing event subscriptions for the rendered components.
10
- * It uses the NgxRenderingEngine2 to render the models and supports both string and Model inputs.
11
- * @class
12
- * @template M - Type extending Model
13
- * @param {Injector} injector - Angular Injector for dependency injection
14
- * @example
15
- * <ngx-decaf-model-renderer
16
- * [model]="myModel"
17
- * [globals]="globalVariables"
18
- * (listenEvent)="handleEvent($event)">
19
- * </ngx-decaf-model-renderer>
20
- * @mermaid
21
- * sequenceDiagram
22
- * participant App
23
- * participant ModelRenderer
24
- * participant RenderingEngine
25
- * participant Model
26
- * App->>ModelRenderer: Input model
27
- * ModelRenderer->>Model: Parse if string
28
- * Model-->>ModelRenderer: Parsed model
29
- * ModelRenderer->>RenderingEngine: Render model
30
- * RenderingEngine-->>ModelRenderer: Rendered output
31
- * ModelRenderer->>ModelRenderer: Subscribe to events
32
- * ModelRenderer-->>App: Emit events
33
- */
34
- export declare class ModelRendererComponent<M extends Model> implements OnChanges, OnDestroy, RenderedModel {
35
- /**
36
- * @description Input model to be rendered
37
- * @summary Can be a Model instance or a JSON string representation of a model
38
- */
39
- model: M | string | undefined;
40
- /**
41
- * @description Global variables to be passed to the rendered component
42
- */
43
- globals: Record<string, unknown>;
44
- /**
45
- * @description Template reference for inner content
46
- */
47
- inner?: TemplateRef<unknown>;
48
- /**
49
- * @description Output of the rendered model
50
- */
51
- output?: AngularDynamicOutput;
52
- /**
53
- * @description Unique identifier for the renderer
54
- */
55
- rendererId?: string;
56
- /**
57
- * @description View container reference for dynamic component rendering
58
- */
59
- vcr: ViewContainerRef;
60
- /**
61
- * @description Event emitter for custom events from the rendered component
62
- */
63
- listenEvent: EventEmitter<RendererCustomEvent>;
64
- /**
65
- * @description Instance of the NgxRenderingEngine2
66
- */
67
- private render;
68
- /**
69
- * @description Instance of the rendered component
70
- */
71
- private instance;
72
- private injector;
73
- /**
74
- * @description Refreshes the rendered model
75
- * @param {string | M} model - The model to be rendered
76
- */
77
- private refresh;
78
- /**
79
- * @description Lifecycle hook that is called when data-bound properties of a directive change
80
- * @param {SimpleChanges} changes - Object containing changes
81
- */
82
- ngOnChanges(changes: SimpleChanges): void;
83
- /**
84
- * @description Lifecycle hook that is called when a directive, pipe, or service is destroyed
85
- * @return {Promise<void>}
86
- */
87
- ngOnDestroy(): Promise<void>;
88
- private subscribeEvents;
89
- /**
90
- * @description Unsubscribes from events emitted by the rendered component
91
- */
92
- private unsubscribeEvents;
93
- protected readonly JSON: JSON;
94
- static ɵfac: i0.ɵɵFactoryDeclaration<ModelRendererComponent<any>, never>;
95
- static ɵcmp: i0.ɵɵComponentDeclaration<ModelRendererComponent<any>, "ngx-decaf-model-renderer", never, { "model": { "alias": "model"; "required": true; }; "globals": { "alias": "globals"; "required": false; }; "rendererId": { "alias": "rendererId"; "required": false; }; }, { "listenEvent": "listenEvent"; }, never, never, true, never>;
96
- }
@@ -1,7 +0,0 @@
1
- import { BaseCustomEvent } from "../../engine";
2
- export type PaginationCustomEvent = BaseCustomEvent & {
3
- data: {
4
- page: number;
5
- direction: 'next' | 'previous';
6
- };
7
- };