@decaf-ts/for-angular 0.0.12 → 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 (126) hide show
  1. package/package.json +19 -92
  2. package/LICENSE.md +0 -659
  3. package/dist/for-angular/cli/cli-module.d.ts +0 -22
  4. package/dist/for-angular/cli/cli-module.d.ts.map +0 -1
  5. package/dist/for-angular/cli/cli-module.js +0 -131
  6. package/dist/for-angular/cli/cli-module.js.map +0 -1
  7. package/dist/lib/README.md +0 -92
  8. package/dist/lib/assets/i18n/en.json +0 -140
  9. package/dist/lib/assets/images/angular-logo.svg +0 -45
  10. package/dist/lib/assets/images/decaf-logo-black.svg +0 -22
  11. package/dist/lib/assets/images/decaf-logo-lw.svg +0 -50
  12. package/dist/lib/assets/images/decaf-logo-white.svg +0 -22
  13. package/dist/lib/assets/images/decaf-logo.svg +0 -54
  14. package/dist/lib/components/component-renderer/component-renderer.component.d.ts +0 -277
  15. package/dist/lib/components/component-renderer/component-renderer.component.d.ts.map +0 -1
  16. package/dist/lib/components/crud-field/crud-field.component.d.ts +0 -446
  17. package/dist/lib/components/crud-field/crud-field.component.d.ts.map +0 -1
  18. package/dist/lib/components/crud-form/constants.d.ts +0 -6
  19. package/dist/lib/components/crud-form/constants.d.ts.map +0 -1
  20. package/dist/lib/components/crud-form/crud-form.component.d.ts +0 -103
  21. package/dist/lib/components/crud-form/crud-form.component.d.ts.map +0 -1
  22. package/dist/lib/components/crud-form/types.d.ts +0 -18
  23. package/dist/lib/components/crud-form/types.d.ts.map +0 -1
  24. package/dist/lib/components/empty-state/empty-state.component.d.ts +0 -302
  25. package/dist/lib/components/empty-state/empty-state.component.d.ts.map +0 -1
  26. package/dist/lib/components/fieldset/fieldset.component.d.ts +0 -200
  27. package/dist/lib/components/fieldset/fieldset.component.d.ts.map +0 -1
  28. package/dist/lib/components/filter/filter.component.d.ts +0 -506
  29. package/dist/lib/components/filter/filter.component.d.ts.map +0 -1
  30. package/dist/lib/components/for-angular-components.module.d.ts +0 -21
  31. package/dist/lib/components/for-angular-components.module.d.ts.map +0 -1
  32. package/dist/lib/components/index.d.ts +0 -17
  33. package/dist/lib/components/index.d.ts.map +0 -1
  34. package/dist/lib/components/layout/layout.component.d.ts +0 -134
  35. package/dist/lib/components/layout/layout.component.d.ts.map +0 -1
  36. package/dist/lib/components/list/constants.d.ts +0 -30
  37. package/dist/lib/components/list/constants.d.ts.map +0 -1
  38. package/dist/lib/components/list/list.component.d.ts +0 -850
  39. package/dist/lib/components/list/list.component.d.ts.map +0 -1
  40. package/dist/lib/components/list-item/list-item.component.d.ts +0 -391
  41. package/dist/lib/components/list-item/list-item.component.d.ts.map +0 -1
  42. package/dist/lib/components/model-renderer/model-renderer.component.d.ts +0 -97
  43. package/dist/lib/components/model-renderer/model-renderer.component.d.ts.map +0 -1
  44. package/dist/lib/components/pagination/constants.d.ts +0 -8
  45. package/dist/lib/components/pagination/constants.d.ts.map +0 -1
  46. package/dist/lib/components/pagination/pagination.component.d.ts +0 -265
  47. package/dist/lib/components/pagination/pagination.component.d.ts.map +0 -1
  48. package/dist/lib/components/searchbar/searchbar.component.d.ts +0 -408
  49. package/dist/lib/components/searchbar/searchbar.component.d.ts.map +0 -1
  50. package/dist/lib/decaf-ts-for-angular.d.ts.map +0 -1
  51. package/dist/lib/directives/collapsable.directive.d.ts +0 -9
  52. package/dist/lib/directives/collapsable.directive.d.ts.map +0 -1
  53. package/dist/lib/directives/index.d.ts +0 -2
  54. package/dist/lib/directives/index.d.ts.map +0 -1
  55. package/dist/lib/engine/DynamicModule.d.ts +0 -18
  56. package/dist/lib/engine/DynamicModule.d.ts.map +0 -1
  57. package/dist/lib/engine/NgxBaseComponent.d.ts +0 -542
  58. package/dist/lib/engine/NgxBaseComponent.d.ts.map +0 -1
  59. package/dist/lib/engine/NgxCrudFormField.d.ts +0 -119
  60. package/dist/lib/engine/NgxCrudFormField.d.ts.map +0 -1
  61. package/dist/lib/engine/NgxFormService.d.ts +0 -168
  62. package/dist/lib/engine/NgxFormService.d.ts.map +0 -1
  63. package/dist/lib/engine/NgxRenderingEngine.d.ts +0 -128
  64. package/dist/lib/engine/NgxRenderingEngine.d.ts.map +0 -1
  65. package/dist/lib/engine/NgxRenderingEngine2.d.ts +0 -251
  66. package/dist/lib/engine/NgxRenderingEngine2.d.ts.map +0 -1
  67. package/dist/lib/engine/ValidatorFactory.d.ts +0 -16
  68. package/dist/lib/engine/ValidatorFactory.d.ts.map +0 -1
  69. package/dist/lib/engine/constants.d.ts +0 -152
  70. package/dist/lib/engine/constants.d.ts.map +0 -1
  71. package/dist/lib/engine/decorators.d.ts +0 -26
  72. package/dist/lib/engine/decorators.d.ts.map +0 -1
  73. package/dist/lib/engine/index.d.ts +0 -17
  74. package/dist/lib/engine/index.d.ts.map +0 -1
  75. package/dist/lib/engine/types.d.ts +0 -382
  76. package/dist/lib/engine/types.d.ts.map +0 -1
  77. package/dist/lib/esm2022/components/component-renderer/component-renderer.component.mjs +0 -359
  78. package/dist/lib/esm2022/components/crud-field/crud-field.component.mjs +0 -456
  79. package/dist/lib/esm2022/components/crud-form/constants.mjs +0 -14
  80. package/dist/lib/esm2022/components/crud-form/crud-form.component.mjs +0 -272
  81. package/dist/lib/esm2022/components/crud-form/types.mjs +0 -2
  82. package/dist/lib/esm2022/components/empty-state/empty-state.component.mjs +0 -410
  83. package/dist/lib/esm2022/components/fieldset/fieldset.component.mjs +0 -250
  84. package/dist/lib/esm2022/components/filter/filter.component.mjs +0 -906
  85. package/dist/lib/esm2022/components/for-angular-components.module.mjs +0 -72
  86. package/dist/lib/esm2022/components/index.mjs +0 -20
  87. package/dist/lib/esm2022/components/layout/layout.component.mjs +0 -245
  88. package/dist/lib/esm2022/components/list/constants.mjs +0 -6
  89. package/dist/lib/esm2022/components/list/list.component.mjs +0 -1405
  90. package/dist/lib/esm2022/components/list-item/list-item.component.mjs +0 -612
  91. package/dist/lib/esm2022/components/model-renderer/model-renderer.component.mjs +0 -182
  92. package/dist/lib/esm2022/components/pagination/constants.mjs +0 -2
  93. package/dist/lib/esm2022/components/pagination/pagination.component.mjs +0 -364
  94. package/dist/lib/esm2022/components/searchbar/searchbar.component.mjs +0 -503
  95. package/dist/lib/esm2022/decaf-ts-for-angular.mjs +0 -5
  96. package/dist/lib/esm2022/directives/collapsable.directive.mjs +0 -28
  97. package/dist/lib/esm2022/directives/index.mjs +0 -2
  98. package/dist/lib/esm2022/engine/DynamicModule.mjs +0 -18
  99. package/dist/lib/esm2022/engine/NgxBaseComponent.mjs +0 -546
  100. package/dist/lib/esm2022/engine/NgxCrudFormField.mjs +0 -125
  101. package/dist/lib/esm2022/engine/NgxFormService.mjs +0 -315
  102. package/dist/lib/esm2022/engine/NgxRenderingEngine.mjs +0 -192
  103. package/dist/lib/esm2022/engine/NgxRenderingEngine2.mjs +0 -332
  104. package/dist/lib/esm2022/engine/ValidatorFactory.mjs +0 -102
  105. package/dist/lib/esm2022/engine/constants.mjs +0 -160
  106. package/dist/lib/esm2022/engine/decorators.mjs +0 -38
  107. package/dist/lib/esm2022/engine/index.mjs +0 -17
  108. package/dist/lib/esm2022/engine/types.mjs +0 -4
  109. package/dist/lib/esm2022/for-angular.module.mjs +0 -119
  110. package/dist/lib/esm2022/helpers/index.mjs +0 -13
  111. package/dist/lib/esm2022/helpers/utils.mjs +0 -415
  112. package/dist/lib/esm2022/interfaces.mjs +0 -2
  113. package/dist/lib/esm2022/public-apis.mjs +0 -14
  114. package/dist/lib/fesm2022/decaf-ts-for-angular.mjs +0 -8293
  115. package/dist/lib/fesm2022/decaf-ts-for-angular.mjs.map +0 -1
  116. package/dist/lib/for-angular.module.d.ts +0 -46
  117. package/dist/lib/for-angular.module.d.ts.map +0 -1
  118. package/dist/lib/helpers/index.d.ts +0 -13
  119. package/dist/lib/helpers/index.d.ts.map +0 -1
  120. package/dist/lib/helpers/utils.d.ts +0 -254
  121. package/dist/lib/helpers/utils.d.ts.map +0 -1
  122. package/dist/lib/index.d.ts +0 -6
  123. package/dist/lib/interfaces.d.ts +0 -29
  124. package/dist/lib/interfaces.d.ts.map +0 -1
  125. package/dist/lib/public-apis.d.ts +0 -14
  126. package/dist/lib/public-apis.d.ts.map +0 -1
@@ -1,134 +0,0 @@
1
- import { OnInit } from '@angular/core';
2
- import { NgxBaseComponent } from '../../engine/NgxBaseComponent';
3
- import { KeyValue } from '../../engine';
4
- import { UIMediaBreakPoints } from '@decaf-ts/ui-decorators';
5
- import * as i0 from "@angular/core";
6
- /**
7
- * @description Layout component for creating responsive grid layouts in Angular applications.
8
- * @summary This component provides a flexible grid system that can be configured with dynamic
9
- * rows and columns. It supports responsive breakpoints and can render child components within
10
- * the grid structure. The component extends NgxBaseComponent to inherit common functionality
11
- * and integrates with the model and component renderer systems.
12
- *
13
- * @class LayoutComponent
14
- * @extends {NgxBaseComponent}
15
- * @implements {OnInit}
16
- * @memberOf LayoutComponent
17
- */
18
- export declare class LayoutComponent extends NgxBaseComponent implements OnInit {
19
- /**
20
- * @description Number of columns or array of column definitions for the grid layout.
21
- * @summary Defines the column structure of the grid. When a number is provided, it creates
22
- * that many equal-width columns. When an array is provided, each element can define specific
23
- * column properties or sizing. This allows for flexible grid layouts that can adapt to
24
- * different content requirements.
25
- *
26
- * @type {(number | string[])}
27
- * @default 1
28
- * @memberOf LayoutComponent
29
- */
30
- cols: number | string[];
31
- /**
32
- * @description Number of rows or array of row definitions for the grid layout.
33
- * @summary Defines the row structure of the grid. When a number is provided, it creates
34
- * that many equal-height rows. When an array is provided, each element can define specific
35
- * row properties or sizing. This provides control over vertical spacing and content organization.
36
- *
37
- * @type {(number | string[])}
38
- * @default 1
39
- * @memberOf LayoutComponent
40
- */
41
- rows: number | KeyValue[] | string[];
42
- /**
43
- * @description Media breakpoint for responsive behavior.
44
- * @summary Determines the responsive breakpoint at which the layout should adapt.
45
- * This affects how the grid behaves on different screen sizes, allowing for
46
- * mobile-first or desktop-first responsive design patterns. The breakpoint
47
- * is automatically processed to ensure compatibility with the UI framework.
48
- *
49
- * @type {UIMediaBreakPoints}
50
- * @default 'medium'
51
- * @memberOf LayoutComponent
52
- */
53
- breakpoint: UIMediaBreakPoints;
54
- /**
55
- * @description Array of child components or data to render within the grid.
56
- * @summary Contains the child elements that will be distributed across the grid layout.
57
- * Each item in the array represents content that will be rendered using the appropriate
58
- * renderer component (ModelRenderer or ComponentRenderer). This allows for mixed content
59
- * types within a single layout structure.
60
- *
61
- * @type {KeyValue[]}
62
- * @default []
63
- * @memberOf LayoutComponent
64
- */
65
- children: KeyValue[];
66
- /**
67
- * @description Creates an instance of LayoutComponent.
68
- * @summary Initializes a new LayoutComponent with the component name "LayoutComponent".
69
- * This constructor calls the parent NgxBaseComponent constructor to set up base
70
- * functionality and component identification.
71
- *
72
- * @memberOf LayoutComponent
73
- */
74
- constructor();
75
- /**
76
- * @description Getter that converts columns input to an array format.
77
- * @summary Transforms the cols input property into a standardized string array format.
78
- * When cols is a number, it creates an array with that many empty string elements.
79
- * When cols is already an array, it returns the array as-is. This normalization
80
- * ensures consistent handling of column definitions in the template.
81
- *
82
- * @type {string[]}
83
- * @readonly
84
- * @memberOf LayoutComponent
85
- */
86
- get _cols(): string[];
87
- /**
88
- * @description Getter that converts rows input to an array format.
89
- * @summary Transforms the rows input property into a standardized string array format.
90
- * When rows is a number, it creates an array with that many empty string elements.
91
- * When rows is already an array, it returns the array as-is. This normalization
92
- * ensures consistent handling of row definitions in the template.
93
- *
94
- * @type {KeyValue[]}
95
- * @readonly
96
- * @memberOf LayoutComponent
97
- */
98
- get _rows(): KeyValue[];
99
- /**
100
- * @description Angular lifecycle hook that runs after component initialization.
101
- * @summary Called once, after the first ngOnChanges(). This method triggers the
102
- * component's initialization process, which includes property parsing and grid
103
- * setup. It ensures the component is properly configured before rendering.
104
- *
105
- * @memberOf LayoutComponent
106
- */
107
- ngOnInit(): void;
108
- /**
109
- * @description Initializes the layout component with processed properties.
110
- * @summary Overrides the base component's initialize method to set up the grid layout.
111
- * This method processes input properties, normalizes the breakpoint value, converts
112
- * rows and columns to their array representations, and marks the component as initialized.
113
- * The initialization ensures all properties are in the correct format for rendering.
114
- *
115
- * @mermaid
116
- * sequenceDiagram
117
- * participant L as LayoutComponent
118
- * participant B as NgxBaseComponent
119
- *
120
- * L->>B: parseProps(this)
121
- * Note over L: Process component properties
122
- * L->>L: Normalize breakpoint to lowercase
123
- * L->>L: Convert rows to array format
124
- * L->>L: Convert cols to array format
125
- * L->>L: Set initialized = true
126
- *
127
- * @override
128
- * @memberOf LayoutComponent
129
- */
130
- initialize(): void;
131
- static ɵfac: i0.ɵɵFactoryDeclaration<LayoutComponent, never>;
132
- static ɵcmp: i0.ɵɵComponentDeclaration<LayoutComponent, "ngx-decaf-layout", never, { "cols": { "alias": "cols"; "required": false; }; "rows": { "alias": "rows"; "required": false; }; "breakpoint": { "alias": "breakpoint"; "required": false; }; "children": { "alias": "children"; "required": false; }; }, {}, never, never, true, never>;
133
- }
134
- //# sourceMappingURL=layout.component.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"layout.component.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/layout/layout.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,MAAM,EAAC,MAAM,eAAe,CAAC;AAExD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAGxC,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;;AAE7D;;;;;;;;;;;GAWG;AACH,qBAQa,eAAgB,SAAQ,gBAAiB,YAAW,MAAM;IAErE;;;;;;;;;;OAUG;IAEH,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAAK;IAE5B;;;;;;;;;OASG;IAEH,IAAI,EAAE,MAAM,GAAG,QAAQ,EAAE,GAAG,MAAM,EAAE,CAAK;IAEzC;;;;;;;;;;OAUG;IAEH,UAAU,EAAE,kBAAkB,CAAY;IAE1C;;;;;;;;;;OAUG;IAEH,QAAQ,EAAE,QAAQ,EAAE,CAAM;IAE1B;;;;;;;OAOG;;IAKH;;;;;;;;;;OAUG;IACH,IAAI,KAAK,IAAI,MAAM,EAAE,CAKpB;IAED;;;;;;;;;;OAUG;IACH,IAAI,KAAK,IAAI,QAAQ,EAAE,CAatB;IAED;;;;;;;OAOG;IACH,QAAQ,IAAI,IAAI;IAIhB;;;;;;;;;;;;;;;;;;;;;OAqBG;IACM,UAAU;yCAnJR,eAAe;2CAAf,eAAe;CA0J3B"}
@@ -1,30 +0,0 @@
1
- import { Adapter, Repository } from "@decaf-ts/core";
2
- import { Context, RepositoryFlags } from "@decaf-ts/db-decorators";
3
- import { Constructor, Model } from "@decaf-ts/decorator-validation";
4
- export declare enum ListComponentsTypes {
5
- INFINITE = "infinite",
6
- PAGINATED = "paginated"
7
- }
8
- export interface IListEmptyResult {
9
- title: string;
10
- subtitle: string;
11
- showButton: boolean;
12
- buttonText: string;
13
- link: string;
14
- icon: string;
15
- }
16
- export interface RawQuery<M extends Model> {
17
- select: undefined | (keyof M)[];
18
- from: Constructor<M>;
19
- where: (el: M) => boolean;
20
- sort?: (el: M, el2: M) => number;
21
- limit?: number;
22
- skip?: number;
23
- }
24
- export type DecafRepositoryAdapter = Adapter<Map<string, Map<string | number, any>>, RawQuery<any>, RepositoryFlags & {
25
- UUIID?: string;
26
- }, Context<RepositoryFlags & {
27
- UUIID?: string;
28
- }>>;
29
- export type DecafRepository<M extends Model> = Repository<M, RawQuery<any>, DecafRepositoryAdapter, RepositoryFlags, Context<RepositoryFlags>>;
30
- //# sourceMappingURL=constants.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/list/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AACnE,OAAO,EAAE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