chrv-components 1.0.0 → 1.0.2

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 (93) hide show
  1. package/chr-theme.scss +97 -0
  2. package/ng-package.json +7 -0
  3. package/package.json +7 -23
  4. package/src/lib/chr-breadcrumb/chr-breadcrumb.component.html +9 -0
  5. package/src/lib/chr-breadcrumb/chr-breadcrumb.component.scss +0 -0
  6. package/src/lib/chr-breadcrumb/chr-breadcrumb.component.spec.ts +22 -0
  7. package/src/lib/chr-breadcrumb/chr-breadcrumb.component.ts +23 -0
  8. package/src/lib/chr-button/chr-button.component.html +20 -0
  9. package/src/lib/chr-button/chr-button.component.scss +0 -0
  10. package/src/lib/chr-button/chr-button.component.spec.ts +23 -0
  11. package/src/lib/chr-button/chr-button.component.ts +36 -0
  12. package/src/lib/chr-checkbox/chr-checkbox.component.html +4 -0
  13. package/src/lib/chr-checkbox/chr-checkbox.component.scss +15 -0
  14. package/src/lib/chr-checkbox/chr-checkbox.component.spec.ts +23 -0
  15. package/src/lib/chr-checkbox/chr-checkbox.component.ts +30 -0
  16. package/src/lib/chr-components.module.ts +69 -0
  17. package/src/lib/chr-delete-modal/chr-delete-modal.component.html +26 -0
  18. package/src/lib/chr-delete-modal/chr-delete-modal.component.scss +0 -0
  19. package/src/lib/chr-delete-modal/chr-delete-modal.component.spec.ts +23 -0
  20. package/src/lib/chr-delete-modal/chr-delete-modal.component.ts +19 -0
  21. package/src/lib/chr-form/chr-form.component.html +98 -0
  22. package/src/lib/chr-form/chr-form.component.scss +37 -0
  23. package/src/lib/chr-form/chr-form.component.spec.ts +23 -0
  24. package/src/lib/chr-form/chr-form.component.ts +173 -0
  25. package/src/lib/chr-form/chr-validators/decimal-validator.ts +54 -0
  26. package/src/lib/chr-form/chr-validators/max-date-validator.ts +48 -0
  27. package/src/lib/chr-form/chr-validators/type-validator.ts +47 -0
  28. package/src/lib/chr-search-select/chr-search-select.component.html +19 -0
  29. package/src/lib/chr-search-select/chr-search-select.component.scss +3 -0
  30. package/src/lib/chr-search-select/chr-search-select.component.spec.ts +23 -0
  31. package/src/lib/chr-search-select/chr-search-select.component.ts +164 -0
  32. package/src/lib/chr-searchbar/chr-searchbar.component.html +10 -0
  33. package/src/lib/chr-searchbar/chr-searchbar.component.scss +0 -0
  34. package/src/lib/chr-searchbar/chr-searchbar.component.spec.ts +23 -0
  35. package/src/lib/chr-searchbar/chr-searchbar.component.ts +23 -0
  36. package/src/lib/chr-separator/chr-separator.component.html +3 -0
  37. package/src/lib/chr-separator/chr-separator.component.scss +24 -0
  38. package/src/lib/chr-separator/chr-separator.component.spec.ts +23 -0
  39. package/src/lib/chr-separator/chr-separator.component.ts +10 -0
  40. package/src/lib/chr-table/chr-table.component.html +88 -0
  41. package/src/lib/chr-table/chr-table.component.scss +53 -0
  42. package/src/lib/chr-table/chr-table.component.spec.ts +23 -0
  43. package/src/lib/chr-table/chr-table.component.ts +72 -0
  44. package/src/lib/chr-table-header-cell/chr-table-header-cell.component.html +9 -0
  45. package/src/lib/chr-table-header-cell/chr-table-header-cell.component.scss +31 -0
  46. package/src/lib/chr-table-header-cell/chr-table-header-cell.component.spec.ts +23 -0
  47. package/src/lib/chr-table-header-cell/chr-table-header-cell.component.ts +39 -0
  48. package/src/lib/services/dialog.service.ts +23 -0
  49. package/{public-api.d.ts → src/public-api.ts} +21 -15
  50. package/styles.scss +93 -0
  51. package/tailwind.config.js +30 -0
  52. package/theme.scss +59 -0
  53. package/tsconfig.lib.json +14 -0
  54. package/tsconfig.lib.prod.json +10 -0
  55. package/tsconfig.spec.json +14 -0
  56. package/chrv-components-1.0.0.tgz +0 -0
  57. package/esm2020/chrv-components.mjs +0 -5
  58. package/esm2020/lib/chr-breadcrumb/chr-breadcrumb.component.mjs +0 -22
  59. package/esm2020/lib/chr-button/chr-button.component.mjs +0 -46
  60. package/esm2020/lib/chr-checkbox/chr-checkbox.component.mjs +0 -37
  61. package/esm2020/lib/chr-components.module.mjs +0 -117
  62. package/esm2020/lib/chr-delete-modal/chr-delete-modal.component.mjs +0 -22
  63. package/esm2020/lib/chr-form/chr-form.component.mjs +0 -132
  64. package/esm2020/lib/chr-form/chr-validators/decimal-validator.mjs +0 -58
  65. package/esm2020/lib/chr-form/chr-validators/max-date-validator.mjs +0 -54
  66. package/esm2020/lib/chr-form/chr-validators/type-validator.mjs +0 -52
  67. package/esm2020/lib/chr-search-select/chr-search-select.component.mjs +0 -136
  68. package/esm2020/lib/chr-searchbar/chr-searchbar.component.mjs +0 -29
  69. package/esm2020/lib/chr-separator/chr-separator.component.mjs +0 -11
  70. package/esm2020/lib/chr-table/chr-table.component.mjs +0 -58
  71. package/esm2020/lib/chr-table-header-cell/chr-table-header-cell.component.mjs +0 -49
  72. package/esm2020/lib/services/dialog.service.mjs +0 -29
  73. package/esm2020/public-api.mjs +0 -19
  74. package/fesm2015/chrv-components.mjs +0 -799
  75. package/fesm2015/chrv-components.mjs.map +0 -1
  76. package/fesm2020/chrv-components.mjs +0 -793
  77. package/fesm2020/chrv-components.mjs.map +0 -1
  78. package/index.d.ts +0 -5
  79. package/lib/chr-breadcrumb/chr-breadcrumb.component.d.ts +0 -15
  80. package/lib/chr-button/chr-button.component.d.ts +0 -17
  81. package/lib/chr-checkbox/chr-checkbox.component.d.ts +0 -13
  82. package/lib/chr-components.module.d.ts +0 -28
  83. package/lib/chr-delete-modal/chr-delete-modal.component.d.ts +0 -11
  84. package/lib/chr-form/chr-form.component.d.ts +0 -57
  85. package/lib/chr-form/chr-validators/decimal-validator.d.ts +0 -10
  86. package/lib/chr-form/chr-validators/max-date-validator.d.ts +0 -10
  87. package/lib/chr-form/chr-validators/type-validator.d.ts +0 -10
  88. package/lib/chr-search-select/chr-search-select.component.d.ts +0 -44
  89. package/lib/chr-searchbar/chr-searchbar.component.d.ts +0 -14
  90. package/lib/chr-separator/chr-separator.component.d.ts +0 -5
  91. package/lib/chr-table/chr-table.component.d.ts +0 -38
  92. package/lib/chr-table-header-cell/chr-table-header-cell.component.d.ts +0 -16
  93. package/lib/services/dialog.service.d.ts +0 -10
@@ -1,29 +0,0 @@
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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hyLXNlYXJjaGJhci5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jaHJ2LWNvbXBvbmVudHMvc3JjL2xpYi9jaHItc2VhcmNoYmFyL2Noci1zZWFyY2hiYXIuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY2hydi1jb21wb25lbnRzL3NyYy9saWIvY2hyLXNlYXJjaGJhci9jaHItc2VhcmNoYmFyLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsS0FBSyxFQUFFLE1BQU0sRUFBRSxZQUFZLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDdkUsT0FBTyxFQUFFLFdBQVcsRUFBRSxNQUFNLGdCQUFnQixDQUFDOzs7QUFPN0MsTUFBTSxPQUFPLHFCQUFxQjtJQU9o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