chrv-components 1.0.2 → 1.0.3

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 (92) hide show
  1. package/esm2020/chrv-components.mjs +5 -0
  2. package/esm2020/lib/chr-breadcrumb/chr-breadcrumb.component.mjs +22 -0
  3. package/esm2020/lib/chr-button/chr-button.component.mjs +51 -0
  4. package/esm2020/lib/chr-checkbox/chr-checkbox.component.mjs +37 -0
  5. package/esm2020/lib/chr-components.module.mjs +117 -0
  6. package/esm2020/lib/chr-delete-modal/chr-delete-modal.component.mjs +22 -0
  7. package/esm2020/lib/chr-form/chr-form.component.mjs +132 -0
  8. package/esm2020/lib/chr-form/chr-validators/decimal-validator.mjs +58 -0
  9. package/esm2020/lib/chr-form/chr-validators/max-date-validator.mjs +54 -0
  10. package/esm2020/lib/chr-form/chr-validators/type-validator.mjs +52 -0
  11. package/esm2020/lib/chr-search-select/chr-search-select.component.mjs +136 -0
  12. package/esm2020/lib/chr-searchbar/chr-searchbar.component.mjs +29 -0
  13. package/esm2020/lib/chr-separator/chr-separator.component.mjs +11 -0
  14. package/esm2020/lib/chr-table/chr-table.component.mjs +58 -0
  15. package/esm2020/lib/chr-table-header-cell/chr-table-header-cell.component.mjs +49 -0
  16. package/esm2020/lib/services/dialog.service.mjs +29 -0
  17. package/esm2020/public-api.mjs +19 -0
  18. package/fesm2015/chrv-components.mjs +803 -0
  19. package/fesm2015/chrv-components.mjs.map +1 -0
  20. package/fesm2020/chrv-components.mjs +797 -0
  21. package/fesm2020/chrv-components.mjs.map +1 -0
  22. package/index.d.ts +5 -0
  23. package/lib/chr-breadcrumb/chr-breadcrumb.component.d.ts +15 -0
  24. package/lib/chr-button/chr-button.component.d.ts +19 -0
  25. package/lib/chr-checkbox/chr-checkbox.component.d.ts +13 -0
  26. package/lib/chr-components.module.d.ts +28 -0
  27. package/lib/chr-delete-modal/chr-delete-modal.component.d.ts +11 -0
  28. package/lib/chr-form/chr-form.component.d.ts +57 -0
  29. package/lib/chr-form/chr-validators/decimal-validator.d.ts +10 -0
  30. package/lib/chr-form/chr-validators/max-date-validator.d.ts +10 -0
  31. package/lib/chr-form/chr-validators/type-validator.d.ts +10 -0
  32. package/lib/chr-search-select/chr-search-select.component.d.ts +44 -0
  33. package/lib/chr-searchbar/chr-searchbar.component.d.ts +14 -0
  34. package/lib/chr-separator/chr-separator.component.d.ts +5 -0
  35. package/lib/chr-table/chr-table.component.d.ts +38 -0
  36. package/lib/chr-table-header-cell/chr-table-header-cell.component.d.ts +16 -0
  37. package/lib/services/dialog.service.d.ts +10 -0
  38. package/package.json +22 -3
  39. package/{src/public-api.ts → public-api.d.ts} +15 -21
  40. package/chr-theme.scss +0 -97
  41. package/ng-package.json +0 -7
  42. package/src/lib/chr-breadcrumb/chr-breadcrumb.component.html +0 -9
  43. package/src/lib/chr-breadcrumb/chr-breadcrumb.component.scss +0 -0
  44. package/src/lib/chr-breadcrumb/chr-breadcrumb.component.spec.ts +0 -22
  45. package/src/lib/chr-breadcrumb/chr-breadcrumb.component.ts +0 -23
  46. package/src/lib/chr-button/chr-button.component.html +0 -20
  47. package/src/lib/chr-button/chr-button.component.scss +0 -0
  48. package/src/lib/chr-button/chr-button.component.spec.ts +0 -23
  49. package/src/lib/chr-button/chr-button.component.ts +0 -36
  50. package/src/lib/chr-checkbox/chr-checkbox.component.html +0 -4
  51. package/src/lib/chr-checkbox/chr-checkbox.component.scss +0 -15
  52. package/src/lib/chr-checkbox/chr-checkbox.component.spec.ts +0 -23
  53. package/src/lib/chr-checkbox/chr-checkbox.component.ts +0 -30
  54. package/src/lib/chr-components.module.ts +0 -69
  55. package/src/lib/chr-delete-modal/chr-delete-modal.component.html +0 -26
  56. package/src/lib/chr-delete-modal/chr-delete-modal.component.scss +0 -0
  57. package/src/lib/chr-delete-modal/chr-delete-modal.component.spec.ts +0 -23
  58. package/src/lib/chr-delete-modal/chr-delete-modal.component.ts +0 -19
  59. package/src/lib/chr-form/chr-form.component.html +0 -98
  60. package/src/lib/chr-form/chr-form.component.scss +0 -37
  61. package/src/lib/chr-form/chr-form.component.spec.ts +0 -23
  62. package/src/lib/chr-form/chr-form.component.ts +0 -173
  63. package/src/lib/chr-form/chr-validators/decimal-validator.ts +0 -54
  64. package/src/lib/chr-form/chr-validators/max-date-validator.ts +0 -48
  65. package/src/lib/chr-form/chr-validators/type-validator.ts +0 -47
  66. package/src/lib/chr-search-select/chr-search-select.component.html +0 -19
  67. package/src/lib/chr-search-select/chr-search-select.component.scss +0 -3
  68. package/src/lib/chr-search-select/chr-search-select.component.spec.ts +0 -23
  69. package/src/lib/chr-search-select/chr-search-select.component.ts +0 -164
  70. package/src/lib/chr-searchbar/chr-searchbar.component.html +0 -10
  71. package/src/lib/chr-searchbar/chr-searchbar.component.scss +0 -0
  72. package/src/lib/chr-searchbar/chr-searchbar.component.spec.ts +0 -23
  73. package/src/lib/chr-searchbar/chr-searchbar.component.ts +0 -23
  74. package/src/lib/chr-separator/chr-separator.component.html +0 -3
  75. package/src/lib/chr-separator/chr-separator.component.scss +0 -24
  76. package/src/lib/chr-separator/chr-separator.component.spec.ts +0 -23
  77. package/src/lib/chr-separator/chr-separator.component.ts +0 -10
  78. package/src/lib/chr-table/chr-table.component.html +0 -88
  79. package/src/lib/chr-table/chr-table.component.scss +0 -53
  80. package/src/lib/chr-table/chr-table.component.spec.ts +0 -23
  81. package/src/lib/chr-table/chr-table.component.ts +0 -72
  82. package/src/lib/chr-table-header-cell/chr-table-header-cell.component.html +0 -9
  83. package/src/lib/chr-table-header-cell/chr-table-header-cell.component.scss +0 -31
  84. package/src/lib/chr-table-header-cell/chr-table-header-cell.component.spec.ts +0 -23
  85. package/src/lib/chr-table-header-cell/chr-table-header-cell.component.ts +0 -39
  86. package/src/lib/services/dialog.service.ts +0 -23
  87. package/styles.scss +0 -93
  88. package/tailwind.config.js +0 -30
  89. package/theme.scss +0 -59
  90. package/tsconfig.lib.json +0 -14
  91. package/tsconfig.lib.prod.json +0 -10
  92. package/tsconfig.spec.json +0 -14
@@ -0,0 +1,29 @@
1
+ import { Component, Input, Output, EventEmitter } from '@angular/core';
2
+ import { FormControl } from '@angular/forms';
3
+ import * as i0 from "@angular/core";
4
+ import * as i1 from "@angular/forms";
5
+ export class ChrSearchbarComponent {
6
+ constructor() {
7
+ this.modelChange = new EventEmitter();
8
+ this.searchBy = new FormControl('');
9
+ this.searchBy.valueChanges.subscribe((value) => this.emit(value));
10
+ }
11
+ emit(event) {
12
+ this.modelChange.emit(event);
13
+ }
14
+ }
15
+ ChrSearchbarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ChrSearchbarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
16
+ ChrSearchbarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ChrSearchbarComponent, selector: "app-chr-searchbar", inputs: { model: "model", placeholder: "placeholder", label: "label" }, outputs: { modelChange: "modelChange" }, ngImport: i0, template: "<div class=\"w-full\">\n <label>{{ label }}</label>\n <input\n matInput\n [formControl]=\"searchBy\"\n placeholder=\"{{ placeholder }}\"\n type=\"text\"\n class=\"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500\"\n />\n</div>\n", styles: [""], dependencies: [{ kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }] });
17
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ChrSearchbarComponent, decorators: [{
18
+ type: Component,
19
+ args: [{ selector: 'app-chr-searchbar', template: "<div class=\"w-full\">\n <label>{{ label }}</label>\n <input\n matInput\n [formControl]=\"searchBy\"\n placeholder=\"{{ placeholder }}\"\n type=\"text\"\n class=\"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500\"\n />\n</div>\n" }]
20
+ }], ctorParameters: function () { return []; }, propDecorators: { model: [{
21
+ type: Input
22
+ }], modelChange: [{
23
+ type: Output
24
+ }], placeholder: [{
25
+ type: Input
26
+ }], label: [{
27
+ type: Input
28
+ }] } });
29
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hyLXNlYXJjaGJhci5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jaHJ2LWNvbXBvbmVudHMvc3JjL2xpYi9jaHItc2VhcmNoYmFyL2Noci1zZWFyY2hiYXIuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY2hydi1jb21wb25lbnRzL3NyYy9saWIvY2hyLXNlYXJjaGJhci9jaHItc2VhcmNoYmFyLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsS0FBSyxFQUFFLE1BQU0sRUFBRSxZQUFZLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDdkUsT0FBTyxFQUFFLFdBQVcsRUFBRSxNQUFNLGdCQUFnQixDQUFDOzs7QUFPN0MsTUFBTSxPQUFPLHFCQUFxQjtJQ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