ngwr 5.0.3 → 6.0.0

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 (122) hide show
  1. package/alert/public-api.d.ts +0 -1
  2. package/avatar/public-api.d.ts +0 -1
  3. package/button/public-api.d.ts +0 -1
  4. package/cdk/base.directive.d.ts +6 -1
  5. package/checkbox/public-api.d.ts +0 -1
  6. package/dialog/dialog.module.d.ts +1 -6
  7. package/divider/public-api.d.ts +0 -1
  8. package/dropdown/dropdown-menu-item.component.d.ts +12 -0
  9. package/dropdown/dropdown-menu.component.d.ts +14 -0
  10. package/dropdown/dropdown.directive.d.ts +29 -0
  11. package/dropdown/dropdown.types.d.ts +9 -0
  12. package/dropdown/index.d.ts +5 -0
  13. package/dropdown/public-api.d.ts +10 -0
  14. package/dropdown/styles/_index.scss +91 -0
  15. package/dropdown/styles/vars.scss +18 -0
  16. package/fesm2022/ngwr-alert.mjs +7 -27
  17. package/fesm2022/ngwr-alert.mjs.map +1 -1
  18. package/fesm2022/ngwr-avatar.mjs +7 -27
  19. package/fesm2022/ngwr-avatar.mjs.map +1 -1
  20. package/fesm2022/ngwr-button.mjs +10 -31
  21. package/fesm2022/ngwr-button.mjs.map +1 -1
  22. package/fesm2022/ngwr-cdk.mjs +9 -4
  23. package/fesm2022/ngwr-cdk.mjs.map +1 -1
  24. package/fesm2022/ngwr-checkbox.mjs +5 -24
  25. package/fesm2022/ngwr-checkbox.mjs.map +1 -1
  26. package/fesm2022/ngwr-dialog.mjs +130 -148
  27. package/fesm2022/ngwr-dialog.mjs.map +1 -1
  28. package/fesm2022/ngwr-divider.mjs +5 -19
  29. package/fesm2022/ngwr-divider.mjs.map +1 -1
  30. package/fesm2022/ngwr-dropdown.mjs +315 -0
  31. package/fesm2022/ngwr-dropdown.mjs.map +1 -0
  32. package/fesm2022/ngwr-form.mjs +8 -29
  33. package/fesm2022/ngwr-form.mjs.map +1 -1
  34. package/fesm2022/ngwr-icon.mjs +11 -31
  35. package/fesm2022/ngwr-icon.mjs.map +1 -1
  36. package/fesm2022/ngwr-input.mjs +8 -28
  37. package/fesm2022/ngwr-input.mjs.map +1 -1
  38. package/fesm2022/ngwr-pagination.mjs +125 -0
  39. package/fesm2022/ngwr-pagination.mjs.map +1 -0
  40. package/fesm2022/ngwr-pipes.mjs +5 -25
  41. package/fesm2022/ngwr-pipes.mjs.map +1 -1
  42. package/fesm2022/ngwr-progress.mjs +6 -25
  43. package/fesm2022/ngwr-progress.mjs.map +1 -1
  44. package/fesm2022/ngwr-qr.mjs +6 -25
  45. package/fesm2022/ngwr-qr.mjs.map +1 -1
  46. package/fesm2022/ngwr-select.mjs +405 -0
  47. package/fesm2022/ngwr-select.mjs.map +1 -0
  48. package/fesm2022/ngwr-skeleton.mjs +5 -19
  49. package/fesm2022/ngwr-skeleton.mjs.map +1 -1
  50. package/fesm2022/ngwr-spinner.mjs +16 -28
  51. package/fesm2022/ngwr-spinner.mjs.map +1 -1
  52. package/fesm2022/ngwr-table.mjs +258 -0
  53. package/fesm2022/ngwr-table.mjs.map +1 -0
  54. package/fesm2022/ngwr-tag.mjs +7 -21
  55. package/fesm2022/ngwr-tag.mjs.map +1 -1
  56. package/fesm2022/ngwr-textarea.mjs +6 -25
  57. package/fesm2022/ngwr-textarea.mjs.map +1 -1
  58. package/form/public-api.d.ts +0 -1
  59. package/icon/public-api.d.ts +0 -1
  60. package/input/public-api.d.ts +0 -1
  61. package/package.json +33 -5
  62. package/pagination/index.d.ts +5 -0
  63. package/pagination/pagination.component.d.ts +23 -0
  64. package/pagination/pagination.types.d.ts +7 -0
  65. package/pagination/public-api.d.ts +8 -0
  66. package/pagination/styles/_index.scss +60 -0
  67. package/pagination/styles/vars.scss +14 -0
  68. package/pipes/public-api.d.ts +0 -1
  69. package/progress/public-api.d.ts +0 -1
  70. package/qr/public-api.d.ts +0 -1
  71. package/select/index.d.ts +5 -0
  72. package/select/public-api.d.ts +10 -0
  73. package/select/select-option-group.component.d.ts +19 -0
  74. package/select/select-option.component.d.ts +22 -0
  75. package/select/select.component.d.ts +63 -0
  76. package/select/select.types.d.ts +17 -0
  77. package/select/styles/_index.scss +237 -0
  78. package/select/styles/vars.scss +32 -0
  79. package/skeleton/index.d.ts +0 -1
  80. package/spinner/index.d.ts +0 -1
  81. package/spinner/spinner.component.d.ts +4 -2
  82. package/spinner/spinner.types.d.ts +7 -0
  83. package/spinner/styles/_index.scss +10 -3
  84. package/styles.scss +4 -0
  85. package/table/index.d.ts +5 -0
  86. package/table/public-api.d.ts +11 -0
  87. package/table/styles/_index.scss +4 -0
  88. package/table/styles/table-filter.scss +202 -0
  89. package/table/styles/table-sort.scss +47 -0
  90. package/table/styles/table.scss +232 -0
  91. package/table/styles/vars.scss +21 -0
  92. package/table/table-cell/index.d.ts +7 -0
  93. package/table/table-cell/table-cell.directive.d.ts +8 -0
  94. package/table/table-filter/index.d.ts +7 -0
  95. package/table/table-filter/table-filter.component.d.ts +18 -0
  96. package/table/table-sort/index.d.ts +7 -0
  97. package/table/table-sort/table-sort.component.d.ts +8 -0
  98. package/table/table.component.d.ts +33 -0
  99. package/table/types/index.d.ts +6 -0
  100. package/table/types/table-cell-context.d.ts +6 -0
  101. package/table/types/table-columns.d.ts +7 -0
  102. package/table/types/table-filter-emit.d.ts +5 -0
  103. package/table/types/table-filter-item.d.ts +6 -0
  104. package/table/types/table-order-item.d.ts +5 -0
  105. package/table/types/table-order.enum.d.ts +5 -0
  106. package/tag/public-api.d.ts +0 -1
  107. package/textarea/public-api.d.ts +0 -1
  108. package/alert/alert.module.d.ts +0 -7
  109. package/avatar/avatar.module.d.ts +0 -7
  110. package/button/button.module.d.ts +0 -8
  111. package/checkbox/checkbox.module.d.ts +0 -7
  112. package/divider/divider.module.d.ts +0 -7
  113. package/form/form.module.d.ts +0 -8
  114. package/icon/icon.module.d.ts +0 -7
  115. package/input/input.module.d.ts +0 -7
  116. package/pipes/pipes.module.d.ts +0 -7
  117. package/progress/progress.module.d.ts +0 -7
  118. package/qr/qr.module.d.ts +0 -7
  119. package/skeleton/skeleton.module.d.ts +0 -7
  120. package/spinner/spinner.module.d.ts +0 -7
  121. package/tag/tag.module.d.ts +0 -7
  122. package/textarea/textarea.module.d.ts +0 -7
@@ -0,0 +1,7 @@
1
+ import { WrTableFilterItem } from './table-filter-item';
2
+ export interface WrTableColumn {
3
+ title: string;
4
+ sortable?: boolean;
5
+ filterItems?: WrTableFilterItem[];
6
+ }
7
+ export type WrTableColumns = Record<string, WrTableColumn>;
@@ -0,0 +1,5 @@
1
+ import { WrTableFilterItem } from './table-filter-item';
2
+ export interface WrTableFilterEmit {
3
+ key: string;
4
+ items: WrTableFilterItem[];
5
+ }
@@ -0,0 +1,6 @@
1
+ import { SafeAny } from 'ngwr/cdk/types';
2
+ export interface WrTableFilterItem<T = SafeAny> {
3
+ title: string;
4
+ value: T;
5
+ isSelected?: boolean;
6
+ }
@@ -0,0 +1,5 @@
1
+ import { WrTableOrder } from './table-order.enum';
2
+ export interface WrTableOrderItem {
3
+ key: string;
4
+ order: WrTableOrder;
5
+ }
@@ -0,0 +1,5 @@
1
+ export declare enum WrTableOrder {
2
+ REMOVE = 0,
3
+ ASC = 1,
4
+ DESC = 2
5
+ }
@@ -5,4 +5,3 @@
5
5
  * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
6
6
  */
7
7
  export * from './tag.component';
8
- export * from './tag.module';
@@ -5,4 +5,3 @@
5
5
  * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
6
6
  */
7
7
  export * from './textarea.component';
8
- export * from './textarea.module';
@@ -1,7 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./alert.component";
3
- export declare class WrAlertModule {
4
- static ɵfac: i0.ɵɵFactoryDeclaration<WrAlertModule, never>;
5
- static ɵmod: i0.ɵɵNgModuleDeclaration<WrAlertModule, never, [typeof i1.WrAlertComponent], [typeof i1.WrAlertComponent]>;
6
- static ɵinj: i0.ɵɵInjectorDeclaration<WrAlertModule>;
7
- }
@@ -1,7 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./avatar.component";
3
- export declare class WrAvatarModule {
4
- static ɵfac: i0.ɵɵFactoryDeclaration<WrAvatarModule, never>;
5
- static ɵmod: i0.ɵɵNgModuleDeclaration<WrAvatarModule, never, [typeof i1.WrAvatarComponent], [typeof i1.WrAvatarComponent]>;
6
- static ɵinj: i0.ɵɵInjectorDeclaration<WrAvatarModule>;
7
- }
@@ -1,8 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./button.component";
3
- import * as i2 from "./button-group.component";
4
- export declare class WrButtonModule {
5
- static ɵfac: i0.ɵɵFactoryDeclaration<WrButtonModule, never>;
6
- static ɵmod: i0.ɵɵNgModuleDeclaration<WrButtonModule, never, [typeof i1.WrButtonComponent, typeof i2.WrButtonGroupComponent], [typeof i1.WrButtonComponent, typeof i2.WrButtonGroupComponent]>;
7
- static ɵinj: i0.ɵɵInjectorDeclaration<WrButtonModule>;
8
- }
@@ -1,7 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./checkbox.component";
3
- export declare class WrCheckboxModule {
4
- static ɵfac: i0.ɵɵFactoryDeclaration<WrCheckboxModule, never>;
5
- static ɵmod: i0.ɵɵNgModuleDeclaration<WrCheckboxModule, never, [typeof i1.WrCheckboxComponent], [typeof i1.WrCheckboxComponent]>;
6
- static ɵinj: i0.ɵɵInjectorDeclaration<WrCheckboxModule>;
7
- }
@@ -1,7 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./divider.component";
3
- export declare class WrDividerModule {
4
- static ɵfac: i0.ɵɵFactoryDeclaration<WrDividerModule, never>;
5
- static ɵmod: i0.ɵɵNgModuleDeclaration<WrDividerModule, never, [typeof i1.WrDividerComponent], [typeof i1.WrDividerComponent]>;
6
- static ɵinj: i0.ɵɵInjectorDeclaration<WrDividerModule>;
7
- }
@@ -1,8 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./form-item.component";
3
- import * as i2 from "./form-error.component";
4
- export declare class WrFormModule {
5
- static ɵfac: i0.ɵɵFactoryDeclaration<WrFormModule, never>;
6
- static ɵmod: i0.ɵɵNgModuleDeclaration<WrFormModule, never, [typeof i1.WrFormItemComponent, typeof i2.WrFormErrorComponent], [typeof i1.WrFormItemComponent, typeof i2.WrFormErrorComponent]>;
7
- static ɵinj: i0.ɵɵInjectorDeclaration<WrFormModule>;
8
- }
@@ -1,7 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./icon.component";
3
- export declare class WrIconModule {
4
- static ɵfac: i0.ɵɵFactoryDeclaration<WrIconModule, never>;
5
- static ɵmod: i0.ɵɵNgModuleDeclaration<WrIconModule, never, [typeof i1.WrIconComponent], [typeof i1.WrIconComponent]>;
6
- static ɵinj: i0.ɵɵInjectorDeclaration<WrIconModule>;
7
- }
@@ -1,7 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./input.component";
3
- export declare class WrInputModule {
4
- static ɵfac: i0.ɵɵFactoryDeclaration<WrInputModule, never>;
5
- static ɵmod: i0.ɵɵNgModuleDeclaration<WrInputModule, never, [typeof i1.WrInputComponent], [typeof i1.WrInputComponent]>;
6
- static ɵinj: i0.ɵɵInjectorDeclaration<WrInputModule>;
7
- }
@@ -1,7 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./new-array.pipe";
3
- export declare class WrPipesModule {
4
- static ɵfac: i0.ɵɵFactoryDeclaration<WrPipesModule, never>;
5
- static ɵmod: i0.ɵɵNgModuleDeclaration<WrPipesModule, never, [typeof i1.NewArrayPipe], [typeof i1.NewArrayPipe]>;
6
- static ɵinj: i0.ɵɵInjectorDeclaration<WrPipesModule>;
7
- }
@@ -1,7 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./progress.component";
3
- export declare class WrProgressModule {
4
- static ɵfac: i0.ɵɵFactoryDeclaration<WrProgressModule, never>;
5
- static ɵmod: i0.ɵɵNgModuleDeclaration<WrProgressModule, never, [typeof i1.WrProgressComponent], [typeof i1.WrProgressComponent]>;
6
- static ɵinj: i0.ɵɵInjectorDeclaration<WrProgressModule>;
7
- }
package/qr/qr.module.d.ts DELETED
@@ -1,7 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./qr.component";
3
- export declare class WrQrModule {
4
- static ɵfac: i0.ɵɵFactoryDeclaration<WrQrModule, never>;
5
- static ɵmod: i0.ɵɵNgModuleDeclaration<WrQrModule, never, [typeof i1.WrQrComponent], [typeof i1.WrQrComponent]>;
6
- static ɵinj: i0.ɵɵInjectorDeclaration<WrQrModule>;
7
- }
@@ -1,7 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./skeleton.component";
3
- export declare class WrSkeletonModule {
4
- static ɵfac: i0.ɵɵFactoryDeclaration<WrSkeletonModule, never>;
5
- static ɵmod: i0.ɵɵNgModuleDeclaration<WrSkeletonModule, never, [typeof i1.WrSkeletonComponent], [typeof i1.WrSkeletonComponent]>;
6
- static ɵinj: i0.ɵɵInjectorDeclaration<WrSkeletonModule>;
7
- }
@@ -1,7 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./spinner.component";
3
- export declare class WrSpinnerModule {
4
- static ɵfac: i0.ɵɵFactoryDeclaration<WrSpinnerModule, never>;
5
- static ɵmod: i0.ɵɵNgModuleDeclaration<WrSpinnerModule, never, [typeof i1.WrSpinnerComponent], [typeof i1.WrSpinnerComponent]>;
6
- static ɵinj: i0.ɵɵInjectorDeclaration<WrSpinnerModule>;
7
- }
@@ -1,7 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./tag.component";
3
- export declare class WrTagModule {
4
- static ɵfac: i0.ɵɵFactoryDeclaration<WrTagModule, never>;
5
- static ɵmod: i0.ɵɵNgModuleDeclaration<WrTagModule, never, [typeof i1.WrTagComponent], [typeof i1.WrTagComponent]>;
6
- static ɵinj: i0.ɵɵInjectorDeclaration<WrTagModule>;
7
- }
@@ -1,7 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./textarea.component";
3
- export declare class WrTextareaModule {
4
- static ɵfac: i0.ɵɵFactoryDeclaration<WrTextareaModule, never>;
5
- static ɵmod: i0.ɵɵNgModuleDeclaration<WrTextareaModule, never, [typeof i1.WrTextareaComponent], [typeof i1.WrTextareaComponent]>;
6
- static ɵinj: i0.ɵɵInjectorDeclaration<WrTextareaModule>;
7
- }