@kato-lee/components 1.0.8 → 1.1.1

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 (196) hide show
  1. package/assets/_grids.scss +5 -5
  2. package/assets/fonts/fonts.scss +11 -0
  3. package/assets/themes/_default.scss +0 -1
  4. package/box-form/{box-form.component.d.ts → component.d.ts} +2 -2
  5. package/box-form/index.d.ts +2 -2
  6. package/box-form/module.d.ts +8 -0
  7. package/capsule/{capsule.component.d.ts → component.d.ts} +1 -1
  8. package/capsule/index.d.ts +2 -2
  9. package/capsule/{capsule.module.d.ts → module.d.ts} +3 -2
  10. package/cards/{simple-card.component.d.ts → component.d.ts} +1 -1
  11. package/cards/index.d.ts +2 -2
  12. package/cards/{cards.module.d.ts → module.d.ts} +3 -2
  13. package/dialogs/dismiss-dialog-button.component.d.ts +1 -1
  14. package/dialogs/index.d.ts +1 -1
  15. package/dialogs/module.d.ts +9 -0
  16. package/esm2022/box-form/component.mjs +112 -0
  17. package/esm2022/box-form/index.mjs +3 -3
  18. package/esm2022/box-form/module.mjs +17 -0
  19. package/esm2022/capsule/component.mjs +78 -0
  20. package/esm2022/capsule/index.mjs +3 -3
  21. package/esm2022/capsule/module.mjs +17 -0
  22. package/esm2022/cards/component.mjs +48 -0
  23. package/esm2022/cards/index.mjs +3 -3
  24. package/esm2022/cards/module.mjs +18 -0
  25. package/esm2022/dialogs/dismiss-dialog-button.component.mjs +14 -12
  26. package/esm2022/dialogs/index.mjs +2 -2
  27. package/esm2022/dialogs/module.mjs +19 -0
  28. package/esm2022/fields/autocomplete/component.mjs +259 -0
  29. package/esm2022/fields/autocomplete/index.mjs +2 -0
  30. package/esm2022/fields/common.mjs +11 -0
  31. package/esm2022/fields/date/component.mjs +163 -0
  32. package/esm2022/fields/date/index.mjs +2 -0
  33. package/esm2022/fields/date-range/component.mjs +85 -0
  34. package/esm2022/fields/date-range/index.mjs +2 -0
  35. package/esm2022/fields/error/component.mjs +57 -0
  36. package/esm2022/fields/error/error-equals.pipe.mjs +3 -3
  37. package/esm2022/fields/error/error.msg.pipe.mjs +3 -3
  38. package/esm2022/fields/general/component.mjs +202 -0
  39. package/esm2022/fields/general/index.mjs +2 -0
  40. package/esm2022/fields/index.mjs +14 -14
  41. package/esm2022/fields/module.mjs +82 -0
  42. package/esm2022/fields/money/component.mjs +202 -0
  43. package/esm2022/fields/money/index.mjs +2 -0
  44. package/esm2022/fields/number/component.mjs +179 -0
  45. package/esm2022/fields/number/index.mjs +2 -0
  46. package/esm2022/fields/remote-autocomplete/component.mjs +188 -0
  47. package/esm2022/fields/remote-autocomplete/index.mjs +2 -0
  48. package/esm2022/fields/select/component.mjs +158 -0
  49. package/esm2022/fields/select/index.mjs +2 -0
  50. package/esm2022/fields/text-area/component.mjs +186 -0
  51. package/esm2022/fields/validators.mjs +11 -0
  52. package/esm2022/modal/component.mjs +66 -0
  53. package/esm2022/modal/index.mjs +4 -4
  54. package/esm2022/modal/module.mjs +17 -0
  55. package/esm2022/modal/service.mjs +33 -0
  56. package/esm2022/pretty-box/component.mjs +94 -0
  57. package/esm2022/pretty-box/index.mjs +2 -2
  58. package/esm2022/tables/index.mjs +2 -2
  59. package/esm2022/tables/module.mjs +22 -0
  60. package/esm2022/toast/index.mjs +2 -2
  61. package/esm2022/toast/service.mjs +42 -0
  62. package/fesm2022/kato-lee-components-box-form.mjs +19 -29
  63. package/fesm2022/kato-lee-components-box-form.mjs.map +1 -1
  64. package/fesm2022/kato-lee-components-capsule.mjs +5 -4
  65. package/fesm2022/kato-lee-components-capsule.mjs.map +1 -1
  66. package/fesm2022/kato-lee-components-cards.mjs +7 -5
  67. package/fesm2022/kato-lee-components-cards.mjs.map +1 -1
  68. package/fesm2022/kato-lee-components-dialogs.mjs +16 -18
  69. package/fesm2022/kato-lee-components-dialogs.mjs.map +1 -1
  70. package/fesm2022/kato-lee-components-fields.mjs +135 -106
  71. package/fesm2022/kato-lee-components-fields.mjs.map +1 -1
  72. package/fesm2022/kato-lee-components-modal.mjs +9 -10
  73. package/fesm2022/kato-lee-components-modal.mjs.map +1 -1
  74. package/fesm2022/kato-lee-components-pretty-box.mjs +6 -6
  75. package/fesm2022/kato-lee-components-pretty-box.mjs.map +1 -1
  76. package/fesm2022/kato-lee-components-tables.mjs.map +1 -1
  77. package/fesm2022/kato-lee-components-toast.mjs.map +1 -1
  78. package/fields/{autocomplete-field/autocomplete-field.component.d.ts → autocomplete/component.d.ts} +2 -2
  79. package/fields/autocomplete/index.d.ts +1 -0
  80. package/fields/{date-field/date-field.component.d.ts → date/component.d.ts} +2 -2
  81. package/fields/date/index.d.ts +1 -0
  82. package/fields/{date-range-field/date-range-field.component.d.ts → date-range/component.d.ts} +2 -2
  83. package/fields/date-range/index.d.ts +1 -0
  84. package/fields/error/{error.component.d.ts → component.d.ts} +1 -1
  85. package/fields/error/error-equals.pipe.d.ts +1 -1
  86. package/fields/error/error.msg.pipe.d.ts +1 -1
  87. package/fields/{general-field/general-field.component.d.ts → general/component.d.ts} +2 -2
  88. package/fields/general/index.d.ts +1 -0
  89. package/fields/index.d.ts +13 -13
  90. package/fields/module.d.ts +19 -0
  91. package/fields/{money-field/money-field.component.d.ts → money/component.d.ts} +1 -1
  92. package/fields/money/index.d.ts +1 -0
  93. package/fields/{number-field/number-field.component.d.ts → number/component.d.ts} +1 -1
  94. package/fields/number/index.d.ts +1 -0
  95. package/fields/remote-autocomplete/index.d.ts +1 -0
  96. package/fields/{select-field/select-field.component.d.ts → select/component.d.ts} +2 -2
  97. package/fields/select/index.d.ts +1 -0
  98. package/fields/text-area/{textarea.component.d.ts → component.d.ts} +1 -1
  99. package/modal/{modal.component.d.ts → component.d.ts} +1 -1
  100. package/modal/index.d.ts +3 -3
  101. package/modal/module.d.ts +8 -0
  102. package/package.json +7 -13
  103. package/pretty-box/component.d.ts +24 -0
  104. package/pretty-box/index.d.ts +1 -1
  105. package/tables/index.d.ts +1 -1
  106. package/toast/index.d.ts +1 -1
  107. package/assets/fonts/body/Transpass-Bold.ttf +0 -0
  108. package/assets/fonts/body/Transpass-Light.ttf +0 -0
  109. package/assets/fonts/body/Transpass-Medium.ttf +0 -0
  110. package/assets/fonts/body/Transpass-Regular.ttf +0 -0
  111. package/assets/fonts/body/style-font.scss +0 -40
  112. package/assets/fonts/main.scss +0 -18
  113. package/assets/fonts/title/Poppins-Bold.ttf +0 -0
  114. package/assets/fonts/title/Poppins-Light.ttf +0 -0
  115. package/assets/fonts/title/Poppins-Medium.ttf +0 -0
  116. package/assets/fonts/title/Poppins-Regular.ttf +0 -0
  117. package/assets/fonts/title/Poppins-SemiBold.ttf +0 -0
  118. package/assets/fonts/title/style-font.scss +0 -39
  119. package/assets/layouts/_loader.scss +0 -71
  120. package/assets/layouts/origin.scss +0 -776
  121. package/box-form/box-form.module.d.ts +0 -13
  122. package/dialogs/dialogs.module.d.ts +0 -11
  123. package/esm2022/box-form/box-form.component.mjs +0 -99
  124. package/esm2022/box-form/box-form.module.mjs +0 -40
  125. package/esm2022/capsule/capsule.component.mjs +0 -78
  126. package/esm2022/capsule/capsule.module.mjs +0 -16
  127. package/esm2022/cards/cards.module.mjs +0 -17
  128. package/esm2022/cards/simple-card.component.mjs +0 -47
  129. package/esm2022/dialogs/dialogs.module.mjs +0 -22
  130. package/esm2022/fields/autocomplete-field/autocomplete-field.component.mjs +0 -240
  131. package/esm2022/fields/date-field/date-field.component.mjs +0 -148
  132. package/esm2022/fields/date-range-field/date-range-field.component.mjs +0 -70
  133. package/esm2022/fields/error/error.component.mjs +0 -55
  134. package/esm2022/fields/error/error.module.mjs +0 -21
  135. package/esm2022/fields/fields.common.mjs +0 -11
  136. package/esm2022/fields/fields.module.mjs +0 -128
  137. package/esm2022/fields/fields.validators.mjs +0 -11
  138. package/esm2022/fields/general-field/general-field.component.mjs +0 -188
  139. package/esm2022/fields/money-field/money-field.component.mjs +0 -188
  140. package/esm2022/fields/number-field/number-field.component.mjs +0 -165
  141. package/esm2022/fields/remote-autocomplete-field/remote-autocomplete-field.component.mjs +0 -188
  142. package/esm2022/fields/select-field/select-field.component.mjs +0 -135
  143. package/esm2022/fields/text-area/textarea.component.mjs +0 -171
  144. package/esm2022/layouts/origin/breadcrumb/breadcrumb.component.mjs +0 -65
  145. package/esm2022/layouts/origin/footer/footer.component.mjs +0 -11
  146. package/esm2022/layouts/origin/header/header.component.mjs +0 -46
  147. package/esm2022/layouts/origin/index.mjs +0 -12
  148. package/esm2022/layouts/origin/kato-lee-components-layouts-origin.mjs +0 -5
  149. package/esm2022/layouts/origin/layout.component.mjs +0 -210
  150. package/esm2022/layouts/origin/layout.module.mjs +0 -52
  151. package/esm2022/layouts/origin/layout.navigation.mjs +0 -19
  152. package/esm2022/layouts/origin/navigation-interfaces.mjs +0 -2
  153. package/esm2022/layouts/origin/services/index.mjs +0 -4
  154. package/esm2022/layouts/origin/services/route-parts.service.mjs +0 -28
  155. package/esm2022/layouts/origin/services/toggle-sidebar.mjs +0 -48
  156. package/esm2022/layouts/origin/services/validate-access.pipe.mjs +0 -53
  157. package/esm2022/layouts/origin/sidebar/sidebar.component.mjs +0 -69
  158. package/esm2022/layouts/origin/sidebar/sidenav/expansion/accordion.component.mjs +0 -74
  159. package/esm2022/layouts/origin/sidebar/sidenav/expansion/expansion-panel-header.component.mjs +0 -51
  160. package/esm2022/layouts/origin/sidebar/sidenav/expansion/expansion-panel.component.mjs +0 -63
  161. package/esm2022/layouts/origin/sidebar/sidenav/sidenav.component.mjs +0 -130
  162. package/esm2022/modal/modal.component.mjs +0 -63
  163. package/esm2022/modal/modal.module.mjs +0 -21
  164. package/esm2022/modal/modal.service.mjs +0 -33
  165. package/esm2022/pretty-box/pretty-box.component.mjs +0 -94
  166. package/esm2022/tables/tables.module.mjs +0 -22
  167. package/esm2022/toast/toast.service.mjs +0 -42
  168. package/fesm2022/kato-lee-components-layouts-origin.mjs +0 -872
  169. package/fesm2022/kato-lee-components-layouts-origin.mjs.map +0 -1
  170. package/fields/error/error.module.d.ts +0 -11
  171. package/fields/fields.module.d.ts +0 -29
  172. package/layouts/origin/breadcrumb/breadcrumb.component.d.ts +0 -24
  173. package/layouts/origin/footer/footer.component.d.ts +0 -5
  174. package/layouts/origin/header/header.component.d.ts +0 -15
  175. package/layouts/origin/index.d.ts +0 -8
  176. package/layouts/origin/layout.component.d.ts +0 -58
  177. package/layouts/origin/layout.module.d.ts +0 -18
  178. package/layouts/origin/layout.navigation.d.ts +0 -10
  179. package/layouts/origin/navigation-interfaces.d.ts +0 -24
  180. package/layouts/origin/services/index.d.ts +0 -3
  181. package/layouts/origin/services/route-parts.service.d.ts +0 -15
  182. package/layouts/origin/services/toggle-sidebar.d.ts +0 -10
  183. package/layouts/origin/services/validate-access.pipe.d.ts +0 -7
  184. package/layouts/origin/sidebar/sidebar.component.d.ts +0 -27
  185. package/layouts/origin/sidebar/sidenav/expansion/accordion.component.d.ts +0 -10
  186. package/layouts/origin/sidebar/sidenav/expansion/expansion-panel-header.component.d.ts +0 -11
  187. package/layouts/origin/sidebar/sidenav/expansion/expansion-panel.component.d.ts +0 -12
  188. package/layouts/origin/sidebar/sidenav/sidenav.component.d.ts +0 -23
  189. package/modal/modal.module.d.ts +0 -11
  190. package/pretty-box/pretty-box.component.d.ts +0 -24
  191. /package/fields/{fields.common.d.ts → common.d.ts} +0 -0
  192. /package/fields/{remote-autocomplete-field/remote-autocomplete-field.component.d.ts → remote-autocomplete/component.d.ts} +0 -0
  193. /package/fields/{fields.validators.d.ts → validators.d.ts} +0 -0
  194. /package/modal/{modal.service.d.ts → service.d.ts} +0 -0
  195. /package/tables/{tables.module.d.ts → module.d.ts} +0 -0
  196. /package/toast/{toast.service.d.ts → service.d.ts} +0 -0
@@ -1,14 +1,13 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { Component, ViewEncapsulation, Inject, NgModule, Injectable } from '@angular/core';
3
3
  import * as i1 from '@kato-lee/material/dialog';
4
- import { MAT_DIALOG_DATA } from '@kato-lee/material/dialog';
4
+ import { MAT_DIALOG_DATA, MatDialogModule } from '@kato-lee/material/dialog';
5
5
  import * as i2 from '@kato-lee/material/button';
6
6
  import { MatButtonModule } from '@kato-lee/material/button';
7
- import * as i3 from '@kato-lee/material/divider';
8
- import { MatDividerModule } from '@kato-lee/material/divider';
9
7
  import * as i4 from '@kato-lee/material/icon';
10
8
  import { MatIconModule } from '@kato-lee/material/icon';
11
- import { TakDialogModule } from '@kato-lee/components/dialogs';
9
+ import * as i3 from '@kato-lee/material/divider';
10
+ import { MatDividerModule } from '@kato-lee/material/divider';
12
11
 
13
12
  class TakModalComponent {
14
13
  constructor(href, _dialogRef, data) {
@@ -56,26 +55,26 @@ class TakModalComponent {
56
55
  return this._hasTopCloseButton;
57
56
  }
58
57
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: TakModalComponent, deps: [{ token: i0.ElementRef }, { token: i1.MatDialogRef }, { token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component }); }
59
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.3", type: TakModalComponent, selector: "tak-modal", ngImport: i0, template: "@if (hasTopCloseButton) {\r\n <div mat-dialog-title>\r\n @if (data.title !== '') {\r\n <span class=\"tak-modal__title\">{{ data.title }}</span>\r\n }\r\n <div>\r\n <button mat-icon-button (click)=\"onCloseFromButton()\"><mat-icon>close</mat-icon></button>\r\n </div>\r\n </div>\r\n}\r\n@if (hasTopCloseButton) {\r\n <mat-divider></mat-divider>\r\n}\r\n<div mat-dialog-content>\r\n <div class=\"tak-modal__content\">\r\n <p>{{ data.content }}</p>\r\n </div>\r\n</div>\r\n<mat-divider></mat-divider>\r\n<mat-dialog-actions align=\"end\">\r\n @if (!isAlert) {\r\n <button mat-button color=\"accent\" (click)=\"onConfirm()\">\r\n {{ confirmButton }}\r\n </button>\r\n }\r\n @if (!isAlert) {\r\n <button mat-button color=\"warn\" (click)=\"onClose()\" cdkFocusInitial>\r\n {{ deniedButton }}\r\n </button>\r\n }\r\n @if (isAlert) {\r\n <button mat-button color=\"accent\" (click)=\"onClose()\" style=\"float: right\" cdkFocusInitial>\r\n {{ okButton }}\r\n </button>\r\n }\r\n</mat-dialog-actions>\r\n", styles: [".tak-modal .mat-dialog-title,.tak-modal .mat-dialog__content{padding:0}.tak-modal [mat-button]{font-weight:bolder}.tak-modal [mat-dialog-title]{display:flex;align-items:center;justify-content:space-between}.tak-modal__title{padding:10px;font-size:20px;font-weight:bolder}.tak-modal__content{padding:0 24px;font-size:14px;color:var(--mdc-dialog-subhead-color)}.tak-modal__buttons{display:flex}.tak-modal__buttons button{font-weight:bolder;text-transform:uppercase}.tak-modal__buttons.tak-modal-one{justify-content:end}.tak-modal__buttons.tak-modal-two{justify-content:space-between}.tak-modal .tak-dialog-content{padding:0}\n"], dependencies: [{ kind: "component", type: i2.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "directive", type: i1.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { kind: "directive", type: i1.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "directive", type: i1.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "component", type: i3.MatDivider, selector: "mat-divider", inputs: ["vertical", "inset"] }, { kind: "component", type: i4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], encapsulation: i0.ViewEncapsulation.None }); }
58
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.3", type: TakModalComponent, isStandalone: true, selector: "tak-modal", ngImport: i0, template: "@if (hasTopCloseButton) {\r\n <div mat-dialog-title>\r\n @if (data.title !== '') {\r\n <span class=\"tak-modal__title\">{{ data.title }}</span>\r\n }\r\n <div>\r\n <button mat-icon-button (click)=\"onCloseFromButton()\"><mat-icon>close</mat-icon></button>\r\n </div>\r\n </div>\r\n}\r\n@if (hasTopCloseButton) {\r\n <mat-divider />\r\n}\r\n<div mat-dialog-content>\r\n <div class=\"tak-modal__content\">\r\n <p>{{ data.content }}</p>\r\n </div>\r\n</div>\r\n<mat-divider />\r\n<mat-dialog-actions align=\"end\">\r\n @if (!isAlert) {\r\n <button mat-button color=\"accent\" (click)=\"onConfirm()\">\r\n {{ confirmButton }}\r\n </button>\r\n }\r\n @if (!isAlert) {\r\n <button mat-button color=\"warn\" (click)=\"onClose()\" cdkFocusInitial>\r\n {{ deniedButton }}\r\n </button>\r\n }\r\n @if (isAlert) {\r\n <button mat-button color=\"accent\" (click)=\"onClose()\" style=\"float: right\" cdkFocusInitial>\r\n {{ okButton }}\r\n </button>\r\n }\r\n</mat-dialog-actions>\r\n", styles: [".tak-modal .mat-dialog-title,.tak-modal .mat-dialog__content{padding:0}.tak-modal [mat-button]{font-weight:bolder}.tak-modal [mat-dialog-title]{display:flex;align-items:center;justify-content:space-between}.tak-modal__title{padding:10px;font-size:20px;font-weight:bolder}.tak-modal__content{padding:0 24px;font-size:14px;color:var(--mdc-dialog-subhead-color)}.tak-modal__buttons{display:flex}.tak-modal__buttons button{font-weight:bolder;text-transform:uppercase}.tak-modal__buttons.tak-modal-one{justify-content:end}.tak-modal__buttons.tak-modal-two{justify-content:space-between}.tak-modal .tak-dialog-content{padding:0}\n"], dependencies: [{ kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i2.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "ngmodule", type: MatDialogModule }, { kind: "directive", type: i1.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { kind: "directive", type: i1.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "directive", type: i1.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "ngmodule", type: MatDividerModule }, { kind: "component", type: i3.MatDivider, selector: "mat-divider", inputs: ["vertical", "inset"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], encapsulation: i0.ViewEncapsulation.None }); }
60
59
  }
61
60
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: TakModalComponent, decorators: [{
62
61
  type: Component,
63
- args: [{ selector: 'tak-modal', encapsulation: ViewEncapsulation.None, template: "@if (hasTopCloseButton) {\r\n <div mat-dialog-title>\r\n @if (data.title !== '') {\r\n <span class=\"tak-modal__title\">{{ data.title }}</span>\r\n }\r\n <div>\r\n <button mat-icon-button (click)=\"onCloseFromButton()\"><mat-icon>close</mat-icon></button>\r\n </div>\r\n </div>\r\n}\r\n@if (hasTopCloseButton) {\r\n <mat-divider></mat-divider>\r\n}\r\n<div mat-dialog-content>\r\n <div class=\"tak-modal__content\">\r\n <p>{{ data.content }}</p>\r\n </div>\r\n</div>\r\n<mat-divider></mat-divider>\r\n<mat-dialog-actions align=\"end\">\r\n @if (!isAlert) {\r\n <button mat-button color=\"accent\" (click)=\"onConfirm()\">\r\n {{ confirmButton }}\r\n </button>\r\n }\r\n @if (!isAlert) {\r\n <button mat-button color=\"warn\" (click)=\"onClose()\" cdkFocusInitial>\r\n {{ deniedButton }}\r\n </button>\r\n }\r\n @if (isAlert) {\r\n <button mat-button color=\"accent\" (click)=\"onClose()\" style=\"float: right\" cdkFocusInitial>\r\n {{ okButton }}\r\n </button>\r\n }\r\n</mat-dialog-actions>\r\n", styles: [".tak-modal .mat-dialog-title,.tak-modal .mat-dialog__content{padding:0}.tak-modal [mat-button]{font-weight:bolder}.tak-modal [mat-dialog-title]{display:flex;align-items:center;justify-content:space-between}.tak-modal__title{padding:10px;font-size:20px;font-weight:bolder}.tak-modal__content{padding:0 24px;font-size:14px;color:var(--mdc-dialog-subhead-color)}.tak-modal__buttons{display:flex}.tak-modal__buttons button{font-weight:bolder;text-transform:uppercase}.tak-modal__buttons.tak-modal-one{justify-content:end}.tak-modal__buttons.tak-modal-two{justify-content:space-between}.tak-modal .tak-dialog-content{padding:0}\n"] }]
62
+ args: [{ standalone: true, imports: [MatButtonModule, MatDialogModule, MatDividerModule, MatIconModule], selector: 'tak-modal', encapsulation: ViewEncapsulation.None, template: "@if (hasTopCloseButton) {\r\n <div mat-dialog-title>\r\n @if (data.title !== '') {\r\n <span class=\"tak-modal__title\">{{ data.title }}</span>\r\n }\r\n <div>\r\n <button mat-icon-button (click)=\"onCloseFromButton()\"><mat-icon>close</mat-icon></button>\r\n </div>\r\n </div>\r\n}\r\n@if (hasTopCloseButton) {\r\n <mat-divider />\r\n}\r\n<div mat-dialog-content>\r\n <div class=\"tak-modal__content\">\r\n <p>{{ data.content }}</p>\r\n </div>\r\n</div>\r\n<mat-divider />\r\n<mat-dialog-actions align=\"end\">\r\n @if (!isAlert) {\r\n <button mat-button color=\"accent\" (click)=\"onConfirm()\">\r\n {{ confirmButton }}\r\n </button>\r\n }\r\n @if (!isAlert) {\r\n <button mat-button color=\"warn\" (click)=\"onClose()\" cdkFocusInitial>\r\n {{ deniedButton }}\r\n </button>\r\n }\r\n @if (isAlert) {\r\n <button mat-button color=\"accent\" (click)=\"onClose()\" style=\"float: right\" cdkFocusInitial>\r\n {{ okButton }}\r\n </button>\r\n }\r\n</mat-dialog-actions>\r\n", styles: [".tak-modal .mat-dialog-title,.tak-modal .mat-dialog__content{padding:0}.tak-modal [mat-button]{font-weight:bolder}.tak-modal [mat-dialog-title]{display:flex;align-items:center;justify-content:space-between}.tak-modal__title{padding:10px;font-size:20px;font-weight:bolder}.tak-modal__content{padding:0 24px;font-size:14px;color:var(--mdc-dialog-subhead-color)}.tak-modal__buttons{display:flex}.tak-modal__buttons button{font-weight:bolder;text-transform:uppercase}.tak-modal__buttons.tak-modal-one{justify-content:end}.tak-modal__buttons.tak-modal-two{justify-content:space-between}.tak-modal .tak-dialog-content{padding:0}\n"] }]
64
63
  }], ctorParameters: () => [{ type: i0.ElementRef }, { type: i1.MatDialogRef }, { type: undefined, decorators: [{
65
64
  type: Inject,
66
65
  args: [MAT_DIALOG_DATA]
67
66
  }] }] });
68
67
 
68
+ /** @deprecated Use standalone */
69
69
  class TakModalModule {
70
70
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: TakModalModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
71
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.3", ngImport: i0, type: TakModalModule, declarations: [TakModalComponent], imports: [MatButtonModule, TakDialogModule, MatDividerModule, MatIconModule], exports: [TakModalComponent] }); }
72
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: TakModalModule, imports: [MatButtonModule, TakDialogModule, MatDividerModule, MatIconModule] }); }
71
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.3", ngImport: i0, type: TakModalModule, imports: [TakModalComponent], exports: [TakModalComponent] }); }
72
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: TakModalModule, imports: [TakModalComponent] }); }
73
73
  }
74
74
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: TakModalModule, decorators: [{
75
75
  type: NgModule,
76
76
  args: [{
77
- declarations: [TakModalComponent],
78
- imports: [MatButtonModule, TakDialogModule, MatDividerModule, MatIconModule],
77
+ imports: [TakModalComponent],
79
78
  exports: [TakModalComponent],
80
79
  }]
81
80
  }] });
@@ -1 +1 @@
1
- {"version":3,"file":"kato-lee-components-modal.mjs","sources":["../../../libraries/components/modal/modal.component.ts","../../../libraries/components/modal/modal.component.html","../../../libraries/components/modal/modal.module.ts","../../../libraries/components/modal/modal.service.ts","../../../libraries/components/modal/index.ts","../../../libraries/components/modal/kato-lee-components-modal.ts"],"sourcesContent":["import { Component, ElementRef, Inject, OnInit, ViewEncapsulation } from '@angular/core';\r\nimport { MatDialogRef, MAT_DIALOG_DATA } from '@kato-lee/material/dialog';\r\nimport { TakModalConfig, TakModalType } from './config';\r\n\r\n@Component({\r\n selector: 'tak-modal',\r\n templateUrl: './modal.component.html',\r\n styleUrls: ['./modal.component.scss'],\r\n encapsulation: ViewEncapsulation.None,\r\n})\r\nexport class TakModalComponent implements OnInit {\r\n private _isAlert = false;\r\n\r\n private _confirmButton = '';\r\n private _deniedButton = '';\r\n private _okButton = '';\r\n private _hasTopCloseButton = true;\r\n\r\n constructor(\r\n href: ElementRef<HTMLElement>,\r\n private _dialogRef: MatDialogRef<TakModalComponent>,\r\n @Inject(MAT_DIALOG_DATA)\r\n public data: { content: string; title: string; options?: TakModalConfig; type: TakModalType }\r\n ) {\r\n href.nativeElement.classList.add('tak-modal');\r\n }\r\n\r\n public ngOnInit(): void {\r\n if (this.data.type === 'alert') this._isAlert = true;\r\n else this._isAlert = false;\r\n\r\n this._confirmButton = this.data.options?.confirmButton || 'SI';\r\n this._deniedButton = this.data.options?.deniedButton || 'NO';\r\n this._okButton = this.data.options?.okButton || 'OK';\r\n this._hasTopCloseButton = this.data.options?.hasTopCloseButton || true;\r\n }\r\n\r\n public onConfirm(): void {\r\n this._dialogRef.close(true);\r\n }\r\n\r\n public onClose(): void {\r\n this._dialogRef.close(false);\r\n }\r\n\r\n public onCloseFromButton(): void {\r\n this._dialogRef.close(undefined);\r\n }\r\n\r\n get isAlert(): boolean {\r\n return this._isAlert;\r\n }\r\n\r\n get confirmButton(): string {\r\n return this._confirmButton;\r\n }\r\n\r\n get deniedButton(): string {\r\n return this._deniedButton;\r\n }\r\n\r\n get okButton(): string {\r\n return this._okButton;\r\n }\r\n\r\n get hasTopCloseButton(): boolean {\r\n return this._hasTopCloseButton;\r\n }\r\n}\r\n","@if (hasTopCloseButton) {\r\n <div mat-dialog-title>\r\n @if (data.title !== '') {\r\n <span class=\"tak-modal__title\">{{ data.title }}</span>\r\n }\r\n <div>\r\n <button mat-icon-button (click)=\"onCloseFromButton()\"><mat-icon>close</mat-icon></button>\r\n </div>\r\n </div>\r\n}\r\n@if (hasTopCloseButton) {\r\n <mat-divider></mat-divider>\r\n}\r\n<div mat-dialog-content>\r\n <div class=\"tak-modal__content\">\r\n <p>{{ data.content }}</p>\r\n </div>\r\n</div>\r\n<mat-divider></mat-divider>\r\n<mat-dialog-actions align=\"end\">\r\n @if (!isAlert) {\r\n <button mat-button color=\"accent\" (click)=\"onConfirm()\">\r\n {{ confirmButton }}\r\n </button>\r\n }\r\n @if (!isAlert) {\r\n <button mat-button color=\"warn\" (click)=\"onClose()\" cdkFocusInitial>\r\n {{ deniedButton }}\r\n </button>\r\n }\r\n @if (isAlert) {\r\n <button mat-button color=\"accent\" (click)=\"onClose()\" style=\"float: right\" cdkFocusInitial>\r\n {{ okButton }}\r\n </button>\r\n }\r\n</mat-dialog-actions>\r\n","import { NgModule } from '@angular/core';\r\nimport { MatButtonModule } from '@kato-lee/material/button';\r\nimport { MatIconModule } from '@kato-lee/material/icon';\r\nimport { TakModalComponent } from './modal.component';\r\nimport { MatDividerModule } from '@kato-lee/material/divider';\r\nimport { TakDialogModule } from '@kato-lee/components/dialogs';\r\n\r\n@NgModule({\r\n declarations: [TakModalComponent],\r\n imports: [MatButtonModule, TakDialogModule, MatDividerModule, MatIconModule],\r\n exports: [TakModalComponent],\r\n})\r\nexport class TakModalModule {}\r\n","import { Injectable } from '@angular/core';\r\nimport { MatDialog } from '@kato-lee/material/dialog';\r\nimport { TakModalComponent } from './modal.component';\r\nimport { TakModalConfig, TakModalType } from './config';\r\nimport { Observable } from 'rxjs';\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class TakModal {\r\n constructor(private dialog: MatDialog) {}\r\n\r\n public alert(content: string, title: string = '', options?: TakModalConfig): Observable<boolean> {\r\n return this._generateDialog(content, title, 'alert', options);\r\n }\r\n\r\n public confirm(\r\n content: string,\r\n title: string = '',\r\n options?: TakModalConfig\r\n ): Observable<boolean> {\r\n return this._generateDialog(content, title, 'confirm', options);\r\n }\r\n\r\n private _generateDialog(\r\n content: string,\r\n title: string,\r\n type: TakModalType,\r\n options?: TakModalConfig\r\n ) {\r\n const dialog = this.dialog.open(TakModalComponent, {\r\n data: {\r\n content,\r\n title,\r\n options,\r\n type,\r\n },\r\n });\r\n return dialog.afterClosed();\r\n }\r\n}\r\n","/*\r\n * Public API Surface of @kato-lee/components/modal\r\n */\r\n\r\nexport * from './config';\r\nexport * from './modal.component';\r\nexport * from './modal.module';\r\nexport * from './modal.service';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;MAUa,iBAAiB,CAAA;AAQ5B,IAAA,WAAA,CACE,IAA6B,EACrB,UAA2C,EAE5C,IAAsF,EAAA;QAFrF,IAAU,CAAA,UAAA,GAAV,UAAU,CAAiC;QAE5C,IAAI,CAAA,IAAA,GAAJ,IAAI,CAAkF;QAXvF,IAAQ,CAAA,QAAA,GAAG,KAAK,CAAC;QAEjB,IAAc,CAAA,cAAA,GAAG,EAAE,CAAC;QACpB,IAAa,CAAA,aAAA,GAAG,EAAE,CAAC;QACnB,IAAS,CAAA,SAAA,GAAG,EAAE,CAAC;QACf,IAAkB,CAAA,kBAAA,GAAG,IAAI,CAAC;QAQhC,IAAI,CAAC,aAAa,CAAC,SAAS,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;KAC/C;IAEM,QAAQ,GAAA;AACb,QAA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;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE,CAAA;;;ACNlC;;AAEG;;ACFH;;AAEG;;;;"}
1
+ {"version":3,"file":"kato-lee-components-modal.mjs","sources":["../../../libraries/components/modal/component.ts","../../../libraries/components/modal/component.html","../../../libraries/components/modal/module.ts","../../../libraries/components/modal/service.ts","../../../libraries/components/modal/index.ts","../../../libraries/components/modal/kato-lee-components-modal.ts"],"sourcesContent":["import { Component, ElementRef, Inject, OnInit, ViewEncapsulation } from '@angular/core';\r\nimport { MatDialogRef, MAT_DIALOG_DATA, MatDialogModule } from '@kato-lee/material/dialog';\r\nimport { TakModalConfig, TakModalType } from './config';\r\nimport { MatButtonModule } from '@kato-lee/material/button';\r\nimport { MatIconModule } from '@kato-lee/material/icon';\r\nimport { MatDividerModule } from '@kato-lee/material/divider';\r\n\r\n@Component({\r\n standalone: true,\r\n imports: [MatButtonModule, MatDialogModule, MatDividerModule, MatIconModule],\r\n selector: 'tak-modal',\r\n templateUrl: './component.html',\r\n styleUrls: ['./component.scss'],\r\n encapsulation: ViewEncapsulation.None,\r\n})\r\nexport class TakModalComponent implements OnInit {\r\n private _isAlert = false;\r\n\r\n private _confirmButton = '';\r\n private _deniedButton = '';\r\n private _okButton = '';\r\n private _hasTopCloseButton = true;\r\n\r\n constructor(\r\n href: ElementRef<HTMLElement>,\r\n private _dialogRef: MatDialogRef<TakModalComponent>,\r\n @Inject(MAT_DIALOG_DATA)\r\n public data: { content: string; title: string; options?: TakModalConfig; type: TakModalType }\r\n ) {\r\n href.nativeElement.classList.add('tak-modal');\r\n }\r\n\r\n public ngOnInit(): void {\r\n if (this.data.type === 'alert') this._isAlert = true;\r\n else this._isAlert = false;\r\n\r\n this._confirmButton = this.data.options?.confirmButton || 'SI';\r\n this._deniedButton = this.data.options?.deniedButton || 'NO';\r\n this._okButton = this.data.options?.okButton || 'OK';\r\n this._hasTopCloseButton = this.data.options?.hasTopCloseButton || true;\r\n }\r\n\r\n public onConfirm(): void {\r\n this._dialogRef.close(true);\r\n }\r\n\r\n public onClose(): void {\r\n this._dialogRef.close(false);\r\n }\r\n\r\n public onCloseFromButton(): void {\r\n this._dialogRef.close(undefined);\r\n }\r\n\r\n get isAlert(): boolean {\r\n return this._isAlert;\r\n }\r\n\r\n get confirmButton(): string {\r\n return this._confirmButton;\r\n }\r\n\r\n get deniedButton(): string {\r\n return this._deniedButton;\r\n }\r\n\r\n get okButton(): string {\r\n return this._okButton;\r\n }\r\n\r\n get hasTopCloseButton(): boolean {\r\n return this._hasTopCloseButton;\r\n }\r\n}\r\n","@if (hasTopCloseButton) {\r\n <div mat-dialog-title>\r\n @if (data.title !== '') {\r\n <span class=\"tak-modal__title\">{{ data.title }}</span>\r\n }\r\n <div>\r\n <button mat-icon-button (click)=\"onCloseFromButton()\"><mat-icon>close</mat-icon></button>\r\n </div>\r\n </div>\r\n}\r\n@if (hasTopCloseButton) {\r\n <mat-divider />\r\n}\r\n<div mat-dialog-content>\r\n <div class=\"tak-modal__content\">\r\n <p>{{ data.content }}</p>\r\n </div>\r\n</div>\r\n<mat-divider />\r\n<mat-dialog-actions align=\"end\">\r\n @if (!isAlert) {\r\n <button mat-button color=\"accent\" (click)=\"onConfirm()\">\r\n {{ confirmButton }}\r\n </button>\r\n }\r\n @if (!isAlert) {\r\n <button mat-button color=\"warn\" (click)=\"onClose()\" cdkFocusInitial>\r\n {{ deniedButton }}\r\n </button>\r\n }\r\n @if (isAlert) {\r\n <button mat-button color=\"accent\" (click)=\"onClose()\" style=\"float: right\" cdkFocusInitial>\r\n {{ okButton }}\r\n </button>\r\n }\r\n</mat-dialog-actions>\r\n","import { NgModule } from '@angular/core';\r\nimport { TakModalComponent } from './component';\r\n\r\n/** @deprecated Use standalone */\r\n@NgModule({\r\n imports: [TakModalComponent],\r\n exports: [TakModalComponent],\r\n})\r\nexport class TakModalModule {}\r\n","import { Injectable } from '@angular/core';\r\nimport { MatDialog } from '@kato-lee/material/dialog';\r\nimport { TakModalComponent } from './component';\r\nimport { TakModalConfig, TakModalType } from './config';\r\nimport { Observable } from 'rxjs';\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class TakModal {\r\n constructor(private dialog: MatDialog) {}\r\n\r\n public alert(content: string, title: string = '', options?: TakModalConfig): Observable<boolean> {\r\n return this._generateDialog(content, title, 'alert', options);\r\n }\r\n\r\n public confirm(\r\n content: string,\r\n title: string = '',\r\n options?: TakModalConfig\r\n ): Observable<boolean> {\r\n return this._generateDialog(content, title, 'confirm', options);\r\n }\r\n\r\n private _generateDialog(\r\n content: string,\r\n title: string,\r\n type: TakModalType,\r\n options?: TakModalConfig\r\n ) {\r\n const dialog = this.dialog.open(TakModalComponent, {\r\n data: {\r\n content,\r\n title,\r\n options,\r\n type,\r\n },\r\n });\r\n return dialog.afterClosed();\r\n }\r\n}\r\n","/*\r\n * Public API Surface of @kato-lee/components/modal\r\n */\r\n\r\nexport * from './config';\r\nexport * from './component';\r\nexport * from './module';\r\nexport * from './service';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;MAea,iBAAiB,CAAA;AAQ5B,IAAA,WAAA,CACE,IAA6B,EACrB,UAA2C,EAE5C,IAAsF,EAAA;QAFrF,IAAU,CAAA,UAAA,GAAV,UAAU,CAAiC;QAE5C,IAAI,CAAA,IAAA,GAAJ,IAAI,CAAkF;QAXvF,IAAQ,CAAA,QAAA,GAAG,KAAK,CAAC;QAEjB,IAAc,CAAA,cAAA,GAAG,EAAE,CAAC;QACpB,IAAa,CAAA,aAAA,GAAG,EAAE,CAAC;QACnB,IAAS,CAAA,SAAA,GAAG,EAAE,CAAC;QACf,IAAkB,CAAA,kBAAA,GAAG,IAAI,CAAC;QAQhC,IAAI,CAAC,aAAa,CAAC,SAAS,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;KAC/C;IAEM,QAAQ,GAAA;AACb,QAAA,IAAI,IAAI,CAAC,IAAI,CAAC,IAAI,KAAK,OAAO;AAAE,YAAA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ViewEncapsulation, ChangeDetectionStrategy, ViewChild, Input } from '@angular/core';
3
3
 
4
- class TakPrettyBoxModule {
4
+ class TakPrettyBoxComponent {
5
5
  constructor(_cd) {
6
6
  this._cd = _cd;
7
7
  this.calcHeight = 94;
@@ -68,12 +68,12 @@ class TakPrettyBoxModule {
68
68
  get hasFooter() {
69
69
  return this._hasFooter;
70
70
  }
71
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: TakPrettyBoxModule, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
72
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.3", type: TakPrettyBoxModule, isStandalone: true, selector: "tak-pretty-box", inputs: { calcHeight: "calcHeight", headerHeightPx: "headerHeightPx", footerHeightPx: "footerHeightPx", encapsulated: "encapsulated" }, viewQueries: [{ propertyName: "header", first: true, predicate: ["header"], descendants: true }, { propertyName: "footer", first: true, predicate: ["footer"], descendants: true }, { propertyName: "scroll", first: true, predicate: ["scroll"], descendants: true }], ngImport: i0, template: "<div class=\"{{ encapsulated ? 'container' : '' }}\">\r\n <div [class]=\"encapsulated ? 'row' : ''\">\r\n <div\r\n [class]=\"encapsulated ? 'col-t-12 col-t-md-8 col-t-lg-6 col-t-xxl-4' : ''\"\r\n [style]=\"encapsulated ? 'margin: auto' : ''\"\r\n >\r\n <div class=\"tak-pretty-box--container\">\r\n <div\r\n #header\r\n [hidden]=\"!hasHeader\"\r\n class=\"tak-pretty-box--header\"\r\n [style]=\"headerHeightPx ? 'height:' + headerHeightPx + 'px' : ''\"\r\n >\r\n <ng-content select=\"[tak-pretty-box-header]\"></ng-content>\r\n </div>\r\n\r\n <div class=\"tak-pretty-box--scroll\" #scroll [style]=\"'height: ' + minHeightFt\">\r\n <ng-content select=\"[tak-pretty-box-content]\"></ng-content>\r\n </div>\r\n\r\n <div\r\n #footer\r\n [hidden]=\"!hasFooter\"\r\n class=\"tak-pretty-box--footer\"\r\n [style]=\"footerHeightPx ? 'height:' + footerHeightPx + 'px' : ''\"\r\n >\r\n <ng-content select=\"[tak-pretty-box-footer]\"></ng-content>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n", changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
71
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: TakPrettyBoxComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
72
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.3", type: TakPrettyBoxComponent, isStandalone: true, selector: "tak-pretty-box", inputs: { calcHeight: "calcHeight", headerHeightPx: "headerHeightPx", footerHeightPx: "footerHeightPx", encapsulated: "encapsulated" }, viewQueries: [{ propertyName: "header", first: true, predicate: ["header"], descendants: true }, { propertyName: "footer", first: true, predicate: ["footer"], descendants: true }, { propertyName: "scroll", first: true, predicate: ["scroll"], descendants: true }], ngImport: i0, template: "<div class=\"{{ encapsulated ? 'container' : '' }}\">\r\n <div [class]=\"encapsulated ? 'row' : ''\">\r\n <div\r\n [class]=\"encapsulated ? 'col-t-12 col-t-md-8 col-t-lg-6 col-t-xxl-4' : ''\"\r\n [style]=\"encapsulated ? 'margin: auto' : ''\"\r\n >\r\n <div class=\"tak-pretty-box--container\">\r\n <div\r\n #header\r\n [hidden]=\"!hasHeader\"\r\n class=\"tak-pretty-box--header\"\r\n [style]=\"headerHeightPx ? 'height:' + headerHeightPx + 'px' : ''\"\r\n >\r\n <ng-content select=\"[tak-pretty-box-header]\"></ng-content>\r\n </div>\r\n\r\n <div class=\"tak-pretty-box--scroll\" #scroll [style]=\"'height: ' + minHeightFt\">\r\n <ng-content select=\"[tak-pretty-box-content]\"></ng-content>\r\n </div>\r\n\r\n <div\r\n #footer\r\n [hidden]=\"!hasFooter\"\r\n class=\"tak-pretty-box--footer\"\r\n [style]=\"footerHeightPx ? 'height:' + footerHeightPx + 'px' : ''\"\r\n >\r\n <ng-content select=\"[tak-pretty-box-footer]\"></ng-content>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n", changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
73
73
  }
74
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: TakPrettyBoxModule, decorators: [{
74
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: TakPrettyBoxComponent, decorators: [{
75
75
  type: Component,
76
- args: [{ selector: 'tak-pretty-box', standalone: true, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"{{ encapsulated ? 'container' : '' }}\">\r\n <div [class]=\"encapsulated ? 'row' : ''\">\r\n <div\r\n [class]=\"encapsulated ? 'col-t-12 col-t-md-8 col-t-lg-6 col-t-xxl-4' : ''\"\r\n [style]=\"encapsulated ? 'margin: auto' : ''\"\r\n >\r\n <div class=\"tak-pretty-box--container\">\r\n <div\r\n #header\r\n [hidden]=\"!hasHeader\"\r\n class=\"tak-pretty-box--header\"\r\n [style]=\"headerHeightPx ? 'height:' + headerHeightPx + 'px' : ''\"\r\n >\r\n <ng-content select=\"[tak-pretty-box-header]\"></ng-content>\r\n </div>\r\n\r\n <div class=\"tak-pretty-box--scroll\" #scroll [style]=\"'height: ' + minHeightFt\">\r\n <ng-content select=\"[tak-pretty-box-content]\"></ng-content>\r\n </div>\r\n\r\n <div\r\n #footer\r\n [hidden]=\"!hasFooter\"\r\n class=\"tak-pretty-box--footer\"\r\n [style]=\"footerHeightPx ? 'height:' + footerHeightPx + 'px' : ''\"\r\n >\r\n <ng-content select=\"[tak-pretty-box-footer]\"></ng-content>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n" }]
76
+ args: [{ standalone: true, selector: 'tak-pretty-box', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"{{ encapsulated ? 'container' : '' }}\">\r\n <div [class]=\"encapsulated ? 'row' : ''\">\r\n <div\r\n [class]=\"encapsulated ? 'col-t-12 col-t-md-8 col-t-lg-6 col-t-xxl-4' : ''\"\r\n [style]=\"encapsulated ? 'margin: auto' : ''\"\r\n >\r\n <div class=\"tak-pretty-box--container\">\r\n <div\r\n #header\r\n [hidden]=\"!hasHeader\"\r\n class=\"tak-pretty-box--header\"\r\n [style]=\"headerHeightPx ? 'height:' + headerHeightPx + 'px' : ''\"\r\n >\r\n <ng-content select=\"[tak-pretty-box-header]\"></ng-content>\r\n </div>\r\n\r\n <div class=\"tak-pretty-box--scroll\" #scroll [style]=\"'height: ' + minHeightFt\">\r\n <ng-content select=\"[tak-pretty-box-content]\"></ng-content>\r\n </div>\r\n\r\n <div\r\n #footer\r\n [hidden]=\"!hasFooter\"\r\n class=\"tak-pretty-box--footer\"\r\n [style]=\"footerHeightPx ? 'height:' + footerHeightPx + 'px' : ''\"\r\n >\r\n <ng-content select=\"[tak-pretty-box-footer]\"></ng-content>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n" }]
77
77
  }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }], propDecorators: { header: [{
78
78
  type: ViewChild,
79
79
  args: ['header']
@@ -101,5 +101,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImpor
101
101
  * Generated bundle index. Do not edit.
102
102
  */
103
103
 
104
- export { TakPrettyBoxModule };
104
+ export { TakPrettyBoxComponent };
105
105
  //# sourceMappingURL=kato-lee-components-pretty-box.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"kato-lee-components-pretty-box.mjs","sources":["../../../libraries/components/pretty-box/pretty-box.component.ts","../../../libraries/components/pretty-box/pretty-box.component.html","../../../libraries/components/pretty-box/index.ts","../../../libraries/components/pretty-box/kato-lee-components-pretty-box.ts"],"sourcesContent":["import {\r\n AfterViewInit,\r\n ChangeDetectionStrategy,\r\n ChangeDetectorRef,\r\n Component,\r\n ElementRef,\r\n Input,\r\n ViewChild,\r\n ViewEncapsulation,\r\n} from '@angular/core';\r\n\r\n@Component({\r\n selector: 'tak-pretty-box',\r\n templateUrl: './pretty-box.component.html',\r\n standalone: true,\r\n encapsulation: ViewEncapsulation.None,\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n})\r\nexport class TakPrettyBoxModule implements AfterViewInit {\r\n @ViewChild('header') header!: ElementRef;\r\n @ViewChild('footer') footer!: ElementRef;\r\n @ViewChild('scroll') scroll!: ElementRef;\r\n\r\n @Input() calcHeight: string | number = 94;\r\n @Input() headerHeightPx: number = 0;\r\n @Input() footerHeightPx: number = 0;\r\n @Input() encapsulated = true;\r\n\r\n private _hasHeader = false;\r\n private _hasFooter = false;\r\n private _substractFromHeight = 0;\r\n\r\n constructor(private _cd: ChangeDetectorRef) {}\r\n\r\n public ngAfterViewInit(): void {\r\n setTimeout(() => {\r\n this._config();\r\n }, 100);\r\n setTimeout(() => {\r\n this._config();\r\n }, 2000);\r\n }\r\n\r\n public scrollTop(): void {\r\n if (this.scroll) this.scroll.nativeElement.scrollTo({ top: 0 });\r\n }\r\n\r\n private _config(): void {\r\n const header = this.header.nativeElement.querySelector('[tak-pretty-box-header]');\r\n const footer = this.footer.nativeElement.querySelector('[tak-pretty-box-footer]');\r\n\r\n this._hasHeader = header ? true : false;\r\n this._hasFooter = footer ? true : false;\r\n\r\n if (typeof this.calcHeight === 'number') {\r\n const refreshInterval = setInterval(() => {\r\n if (this._substractFromHeight === 0) {\r\n const headerHeight = this._hasHeader\r\n ? !this.headerHeightPx\r\n ? this.header.nativeElement.offsetHeight\r\n : this.headerHeightPx\r\n : 0;\r\n\r\n const footerHeight = this._hasFooter\r\n ? !this.footerHeightPx\r\n ? this.footer.nativeElement.offsetHeight\r\n : this.footerHeightPx\r\n : 0;\r\n\r\n this._substractFromHeight = +this.calcHeight + headerHeight + footerHeight;\r\n } else {\r\n clearInterval(refreshInterval);\r\n this._cd.markForCheck();\r\n }\r\n }, 10);\r\n }\r\n\r\n if (!this._hasHeader) this.scroll.nativeElement.classList.add('tak-pretty-box-border-top');\r\n if (!this._hasFooter) this.scroll.nativeElement.classList.add('tak-pretty-box-border-bottom');\r\n\r\n this._cd.markForCheck();\r\n }\r\n\r\n get minHeightFt(): string {\r\n if (typeof this.calcHeight === 'number') return `calc(100vh - ${this._substractFromHeight}px)`;\r\n else return this.calcHeight;\r\n }\r\n\r\n get hasHeader(): boolean {\r\n return this._hasHeader;\r\n }\r\n\r\n get hasFooter(): boolean {\r\n return this._hasFooter;\r\n }\r\n}\r\n","<div class=\"{{ encapsulated ? 'container' : '' }}\">\r\n <div [class]=\"encapsulated ? 'row' : ''\">\r\n <div\r\n [class]=\"encapsulated ? 'col-t-12 col-t-md-8 col-t-lg-6 col-t-xxl-4' : ''\"\r\n [style]=\"encapsulated ? 'margin: auto' : ''\"\r\n >\r\n <div class=\"tak-pretty-box--container\">\r\n <div\r\n #header\r\n [hidden]=\"!hasHeader\"\r\n class=\"tak-pretty-box--header\"\r\n [style]=\"headerHeightPx ? 'height:' + headerHeightPx + 'px' : ''\"\r\n >\r\n <ng-content select=\"[tak-pretty-box-header]\"></ng-content>\r\n </div>\r\n\r\n <div class=\"tak-pretty-box--scroll\" #scroll [style]=\"'height: ' + minHeightFt\">\r\n <ng-content select=\"[tak-pretty-box-content]\"></ng-content>\r\n </div>\r\n\r\n <div\r\n #footer\r\n [hidden]=\"!hasFooter\"\r\n class=\"tak-pretty-box--footer\"\r\n [style]=\"footerHeightPx ? 'height:' + footerHeightPx + 'px' : ''\"\r\n >\r\n <ng-content select=\"[tak-pretty-box-footer]\"></ng-content>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n","/*\r\n * Public API Surface of @kato-lee/components/pretty-box\r\n */\r\nexport * from './pretty-box.component';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;MAkBa,kBAAkB,CAAA;AAc7B,IAAA,WAAA,CAAoB,GAAsB,EAAA;QAAtB,IAAG,CAAA,GAAA,GAAH,GAAG,CAAmB;QATjC,IAAU,CAAA,UAAA,GAAoB,EAAE,CAAC;QACjC,IAAc,CAAA,cAAA,GAAW,CAAC,CAAC;QAC3B,IAAc,CAAA,cAAA,GAAW,CAAC,CAAC;QAC3B,IAAY,CAAA,YAAA,GAAG,IAAI,CAAC;QAErB,IAAU,CAAA,UAAA,GAAG,KAAK,CAAC;QACnB,IAAU,CAAA,UAAA,GAAG,KAAK,CAAC;QACnB,IAAoB,CAAA,oBAAA,GAAG,CAAC,CAAC;KAEa;IAEvC,eAAe,GAAA;QACpB,UAAU,CAAC,MAAK;YACd,IAAI,CAAC,OAAO,EAAE,CAAC;SAChB,EAAE,GAAG,CAAC,CAAC;QACR,UAAU,CAAC,MAAK;YACd,IAAI,CAAC,OAAO,EAAE,CAAC;SAChB,EAAE,IAAI,CAAC,CAAC;KACV;IAEM,SAAS,GAAA;QACd,IAAI,IAAI,CAAC,MAAM;AAAE,YAAA,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,QAAQ,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC,CAAC;KACjE;IAEO,OAAO,GAAA;AACb,QAAA,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC;AAClF,QAAA,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC;AAElF,QAAA,IAAI,CAAC,UAAU,GAAG,MAAM,GAAG,IAAI,GAAG,KAAK,CAAC;AACxC,QAAA,IAAI,CAAC,UAAU,GAAG,MAAM,GAAG,IAAI,GAAG,KAAK,CAAC;AAExC,QAAA,IAAI,OA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file":"kato-lee-components-pretty-box.mjs","sources":["../../../libraries/components/pretty-box/component.ts","../../../libraries/components/pretty-box/component.html","../../../libraries/components/pretty-box/index.ts","../../../libraries/components/pretty-box/kato-lee-components-pretty-box.ts"],"sourcesContent":["import {\r\n AfterViewInit,\r\n ChangeDetectionStrategy,\r\n ChangeDetectorRef,\r\n Component,\r\n ElementRef,\r\n Input,\r\n ViewChild,\r\n ViewEncapsulation,\r\n} from '@angular/core';\r\n\r\n@Component({\r\n standalone: true,\r\n selector: 'tak-pretty-box',\r\n templateUrl: './component.html',\r\n encapsulation: ViewEncapsulation.None,\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n})\r\nexport class TakPrettyBoxComponent implements AfterViewInit {\r\n @ViewChild('header') header!: ElementRef;\r\n @ViewChild('footer') footer!: ElementRef;\r\n @ViewChild('scroll') scroll!: ElementRef;\r\n\r\n @Input() calcHeight: string | number = 94;\r\n @Input() headerHeightPx: number = 0;\r\n @Input() footerHeightPx: number = 0;\r\n @Input() encapsulated = true;\r\n\r\n private _hasHeader = false;\r\n private _hasFooter = false;\r\n private _substractFromHeight = 0;\r\n\r\n constructor(private _cd: ChangeDetectorRef) {}\r\n\r\n public ngAfterViewInit(): void {\r\n setTimeout(() => {\r\n this._config();\r\n }, 100);\r\n setTimeout(() => {\r\n this._config();\r\n }, 2000);\r\n }\r\n\r\n public scrollTop(): void {\r\n if (this.scroll) this.scroll.nativeElement.scrollTo({ top: 0 });\r\n }\r\n\r\n private _config(): void {\r\n const header = this.header.nativeElement.querySelector('[tak-pretty-box-header]');\r\n const footer = this.footer.nativeElement.querySelector('[tak-pretty-box-footer]');\r\n\r\n this._hasHeader = header ? true : false;\r\n this._hasFooter = footer ? true : false;\r\n\r\n if (typeof this.calcHeight === 'number') {\r\n const refreshInterval = setInterval(() => {\r\n if (this._substractFromHeight === 0) {\r\n const headerHeight = this._hasHeader\r\n ? !this.headerHeightPx\r\n ? this.header.nativeElement.offsetHeight\r\n : this.headerHeightPx\r\n : 0;\r\n\r\n const footerHeight = this._hasFooter\r\n ? !this.footerHeightPx\r\n ? this.footer.nativeElement.offsetHeight\r\n : this.footerHeightPx\r\n : 0;\r\n\r\n this._substractFromHeight = +this.calcHeight + headerHeight + footerHeight;\r\n } else {\r\n clearInterval(refreshInterval);\r\n this._cd.markForCheck();\r\n }\r\n }, 10);\r\n }\r\n\r\n if (!this._hasHeader) this.scroll.nativeElement.classList.add('tak-pretty-box-border-top');\r\n if (!this._hasFooter) this.scroll.nativeElement.classList.add('tak-pretty-box-border-bottom');\r\n\r\n this._cd.markForCheck();\r\n }\r\n\r\n get minHeightFt(): string {\r\n if (typeof this.calcHeight === 'number') return `calc(100vh - ${this._substractFromHeight}px)`;\r\n else return this.calcHeight;\r\n }\r\n\r\n get hasHeader(): boolean {\r\n return this._hasHeader;\r\n }\r\n\r\n get hasFooter(): boolean {\r\n return this._hasFooter;\r\n }\r\n}\r\n","<div class=\"{{ encapsulated ? 'container' : '' }}\">\r\n <div [class]=\"encapsulated ? 'row' : ''\">\r\n <div\r\n [class]=\"encapsulated ? 'col-t-12 col-t-md-8 col-t-lg-6 col-t-xxl-4' : ''\"\r\n [style]=\"encapsulated ? 'margin: auto' : ''\"\r\n >\r\n <div class=\"tak-pretty-box--container\">\r\n <div\r\n #header\r\n [hidden]=\"!hasHeader\"\r\n class=\"tak-pretty-box--header\"\r\n [style]=\"headerHeightPx ? 'height:' + headerHeightPx + 'px' : ''\"\r\n >\r\n <ng-content select=\"[tak-pretty-box-header]\"></ng-content>\r\n </div>\r\n\r\n <div class=\"tak-pretty-box--scroll\" #scroll [style]=\"'height: ' + minHeightFt\">\r\n <ng-content select=\"[tak-pretty-box-content]\"></ng-content>\r\n </div>\r\n\r\n <div\r\n #footer\r\n [hidden]=\"!hasFooter\"\r\n class=\"tak-pretty-box--footer\"\r\n [style]=\"footerHeightPx ? 'height:' + footerHeightPx + 'px' : ''\"\r\n >\r\n <ng-content select=\"[tak-pretty-box-footer]\"></ng-content>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n","/*\r\n * Public API Surface of @kato-lee/components/pretty-box\r\n */\r\nexport * from './component';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;MAkBa,qBAAqB,CAAA;AAchC,IAAA,WAAA,CAAoB,GAAsB,EAAA;QAAtB,IAAG,CAAA,GAAA,GAAH,GAAG,CAAmB;QATjC,IAAU,CAAA,UAAA,GAAoB,EAAE,CAAC;QACjC,IAAc,CAAA,cAAA,GAAW,CAAC,CAAC;QAC3B,IAAc,CAAA,cAAA,GAAW,CAAC,CAAC;QAC3B,IAAY,CAAA,YAAA,GAAG,IAAI,CAAC;QAErB,IAAU,CAAA,UAAA,GAAG,KAAK,CAAC;QACnB,IAAU,CAAA,UAAA,GAAG,KAAK,CAAC;QACnB,IAAoB,CAAA,oBAAA,GAAG,CAAC,CAAC;KAEa;IAEvC,eAAe,GAAA;QACpB,UAAU,CAAC,MAAK;YACd,IAAI,CAAC,OAAO,EAAE,CAAC;SAChB,EAAE,GAAG,CAAC,CAAC;QACR,UAAU,CAAC,MAAK;YACd,IAAI,CAAC,OAAO,EAAE,CAAC;SAChB,EAAE,IAAI,CAAC,CAAC;KACV;IAEM,SAAS,GAAA;QACd,IAAI,IAAI,CAAC,MAAM;AAAE,YAAA,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,QAAQ,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC,CAAC;KACjE;IAEO,OAAO,GAAA;AACb,QAAA,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC;AAClF,QAAA,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC;AAElF,QAAA,IAAI,CAAC,UAAU,GAAG,MAAM,GAAG,IAAI,GAAG,KAAK,CAAC;AACxC,QAAA,IA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EAAA,CAAA;sBAApB,KAAK;;;AE1BR;;AAEG;;ACFH;;AAEG;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"kato-lee-components-tables.mjs","sources":["../../../libraries/components/tables/mat-paginator.translation.ts","../../../libraries/components/tables/no-records.component.ts","../../../libraries/components/tables/tables.module.ts","../../../libraries/components/tables/index.ts","../../../libraries/components/tables/kato-lee-components-tables.ts"],"sourcesContent":["import { MatPaginatorIntl } from '@kato-lee/material/paginator';\r\n\r\nconst typeEntity = 'item(s)';\r\n\r\nconst SpanishRangeLabel = (page: number, pageSize: number, length: number) => {\r\n if (length == 0 || pageSize == 0) {\r\n return `0 de ${length} ${typeEntity}`;\r\n }\r\n length = Math.max(length, 0);\r\n const startIndex = page * pageSize;\r\n const endIndex =\r\n startIndex < length ? Math.min(startIndex + pageSize, length) : startIndex + pageSize;\r\n return `${startIndex + 1} - ${endIndex} de ${length} ${typeEntity}`;\r\n};\r\n\r\nexport function getSpanishMatPaginatorIntl() {\r\n const paginatorIntl = new MatPaginatorIntl();\r\n\r\n paginatorIntl.itemsPerPageLabel = 'Items por página:';\r\n paginatorIntl.firstPageLabel = 'Primer página';\r\n paginatorIntl.nextPageLabel = 'Siguiente';\r\n paginatorIntl.previousPageLabel = 'Anterior';\r\n paginatorIntl.lastPageLabel = 'Ultima página';\r\n paginatorIntl.getRangeLabel = SpanishRangeLabel;\r\n\r\n return paginatorIntl;\r\n}\r\n","import { ChangeDetectionStrategy, Component, Input, OnInit } from '@angular/core';\r\nimport { MatProgressSpinnerModule } from '@kato-lee/material/progress-spinner';\r\nimport { MatTableDataSource } from '@kato-lee/material/table';\r\n\r\n@Component({\r\n standalone: true,\r\n imports: [MatProgressSpinnerModule],\r\n selector: 'tak-table-no-records',\r\n template: `\r\n @if (isLoading) {\r\n <div class=\"tak-progress-circle__container\">\r\n <mat-progress-spinner mode=\"indeterminate\" />\r\n </div>\r\n } @else {\r\n <div class=\"tak-progress-circle__container\">\r\n @if (secondImage) {\r\n No hay resultados que contengan esta palabra clave\r\n } @else {\r\n No se encontraron resultados\r\n }\r\n </div>\r\n }\r\n `,\r\n styles: `\r\n .tak-progress-circle__container {\r\n min-height: calc(100vh - 315px);\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n }\r\n @media only screen and (min-width: 640px) {\r\n .tak-progress-circle__container {\r\n min-height: calc(100vh - 230px);\r\n }\r\n }\r\n .tak-progress-circle__container {\r\n min-height: calc(100vh - 230px);\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n }\r\n .tak-progress-circle__container-image {\r\n min-height: calc(100vh - 230px);\r\n }\r\n `,\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n})\r\nexport class TakTableNoRecordsComponent implements OnInit {\r\n @Input() dataSource!: MatTableDataSource<any>;\r\n\r\n @Input() isLoading = false;\r\n\r\n private _secondImage = true;\r\n\r\n public ngOnInit(): void {\r\n if (this.dataSource) {\r\n if (this.dataSource.data.length && !this.dataSource.filteredData.length)\r\n this._secondImage = false;\r\n }\r\n }\r\n\r\n get secondImage(): boolean {\r\n return this._secondImage;\r\n }\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { MatPaginatorIntl, MatPaginatorModule } from '@kato-lee/material/paginator';\r\nimport { MatSortModule } from '@kato-lee/material/sort';\r\nimport { MatTableModule } from '@kato-lee/material/table';\r\nimport { getSpanishMatPaginatorIntl } from './mat-paginator.translation';\r\nimport { TakTableNoRecordsComponent } from './no-records.component';\r\n\r\nconst modules = [MatTableModule, MatSortModule, MatPaginatorModule, TakTableNoRecordsComponent];\r\n\r\n@NgModule({\r\n imports: modules,\r\n exports: modules,\r\n providers: [{ provide: MatPaginatorIntl, useValue: getSpanishMatPaginatorIntl() }],\r\n})\r\nexport class TakTablesModule {}\r\n","/*\r\n * Public API Surface of @kato-lee/components/tables\r\n */\r\nexport * from './mat-paginator.translation';\r\nexport * from './no-records.component';\r\nexport * from './tables.module';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from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AC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE,OAAO;AAChB,oBAAA,OAAO,EAAE,OAAO;AAChB,oBAAA,SAAS,EAAE,CAAC,EAAE,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,0BAA0B,EAAE,EAAE,CAAC;AACnF,iBAAA,CAAA;;;ACbD;;AAEG;;ACFH;;AAEG;;;;"}
1
+ {"version":3,"file":"kato-lee-components-tables.mjs","sources":["../../../libraries/components/tables/mat-paginator.translation.ts","../../../libraries/components/tables/no-records.component.ts","../../../libraries/components/tables/module.ts","../../../libraries/components/tables/index.ts","../../../libraries/components/tables/kato-lee-components-tables.ts"],"sourcesContent":["import { MatPaginatorIntl } from '@kato-lee/material/paginator';\r\n\r\nconst typeEntity = 'item(s)';\r\n\r\nconst SpanishRangeLabel = (page: number, pageSize: number, length: number) => {\r\n if (length == 0 || pageSize == 0) {\r\n return `0 de ${length} ${typeEntity}`;\r\n }\r\n length = Math.max(length, 0);\r\n const startIndex = page * pageSize;\r\n const endIndex =\r\n startIndex < length ? Math.min(startIndex + pageSize, length) : startIndex + pageSize;\r\n return `${startIndex + 1} - ${endIndex} de ${length} ${typeEntity}`;\r\n};\r\n\r\nexport function getSpanishMatPaginatorIntl() {\r\n const paginatorIntl = new MatPaginatorIntl();\r\n\r\n paginatorIntl.itemsPerPageLabel = 'Items por página:';\r\n paginatorIntl.firstPageLabel = 'Primer página';\r\n paginatorIntl.nextPageLabel = 'Siguiente';\r\n paginatorIntl.previousPageLabel = 'Anterior';\r\n paginatorIntl.lastPageLabel = 'Ultima página';\r\n paginatorIntl.getRangeLabel = SpanishRangeLabel;\r\n\r\n return paginatorIntl;\r\n}\r\n","import { ChangeDetectionStrategy, Component, Input, OnInit } from '@angular/core';\r\nimport { MatProgressSpinnerModule } from '@kato-lee/material/progress-spinner';\r\nimport { MatTableDataSource } from '@kato-lee/material/table';\r\n\r\n@Component({\r\n standalone: true,\r\n imports: [MatProgressSpinnerModule],\r\n selector: 'tak-table-no-records',\r\n template: `\r\n @if (isLoading) {\r\n <div class=\"tak-progress-circle__container\">\r\n <mat-progress-spinner mode=\"indeterminate\" />\r\n </div>\r\n } @else {\r\n <div class=\"tak-progress-circle__container\">\r\n @if (secondImage) {\r\n No hay resultados que contengan esta palabra clave\r\n } @else {\r\n No se encontraron resultados\r\n }\r\n </div>\r\n }\r\n `,\r\n styles: `\r\n .tak-progress-circle__container {\r\n min-height: calc(100vh - 315px);\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n }\r\n @media only screen and (min-width: 640px) {\r\n .tak-progress-circle__container {\r\n min-height: calc(100vh - 230px);\r\n }\r\n }\r\n .tak-progress-circle__container {\r\n min-height: calc(100vh - 230px);\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n }\r\n .tak-progress-circle__container-image {\r\n min-height: calc(100vh - 230px);\r\n }\r\n `,\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n})\r\nexport class TakTableNoRecordsComponent implements OnInit {\r\n @Input() dataSource!: MatTableDataSource<any>;\r\n\r\n @Input() isLoading = false;\r\n\r\n private _secondImage = true;\r\n\r\n public ngOnInit(): void {\r\n if (this.dataSource) {\r\n if (this.dataSource.data.length && !this.dataSource.filteredData.length)\r\n this._secondImage = false;\r\n }\r\n }\r\n\r\n get secondImage(): boolean {\r\n return this._secondImage;\r\n }\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { MatPaginatorIntl, MatPaginatorModule } from '@kato-lee/material/paginator';\r\nimport { MatSortModule } from '@kato-lee/material/sort';\r\nimport { MatTableModule } from '@kato-lee/material/table';\r\nimport { getSpanishMatPaginatorIntl } from './mat-paginator.translation';\r\nimport { TakTableNoRecordsComponent } from './no-records.component';\r\n\r\nconst modules = [MatTableModule, MatSortModule, MatPaginatorModule, TakTableNoRecordsComponent];\r\n\r\n@NgModule({\r\n imports: modules,\r\n exports: modules,\r\n providers: [{ provide: MatPaginatorIntl, useValue: getSpanishMatPaginatorIntl() }],\r\n})\r\nexport class TakTablesModule {}\r\n","/*\r\n * Public API Surface of @kato-lee/components/tables\r\n */\r\nexport * from './mat-paginator.translation';\r\nexport * from './no-records.component';\r\nexport * from './module';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAEA,MAAM,UAAU,GAAG,SAAS,CAAC;AAE7B,MAAM,iBAAiB,GAAG,CAAC,IAAY,EAAE,QAAgB,EAAE,MAAc,KAAI;AAC3E,IAAA,IAAI,MAAM,IAAI,CAAC,IAAI,QAAQ,IAAI,CAAC,EAAE;AAChC,QAAA,OAAO,CAAQ,KAAA,EAAA,MAAM,CAAI,CAAA,EAAA,UAAU,EAAE,CAAC;AACvC,KAAA;IACD,MAAM,GAAG,IAAI,CAAC,GAAG,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;AAC7B,IAAA,MAAM,UAAU,GAAG,IAAI,GAAG,QAAQ,CAAC;IACnC,MAAM,QAAQ,GACZ,UAAU,GAAG,MAAM,GAAG,IAAI,CAAC,GAAG,CAAC,UAAU,GAAG,QAAQ,EAAE,MAAM,CAAC,GAAG,UAAU,GAAG,QAAQ,CAAC;IACxF,OAAO,CAAA,EAAG,UAAU,GAAG,CAAC,CAAA,GAAA,EAAM,QAAQ,CAAA,IAAA,EAAO,MAAM,CAAA,CAAA,EAAI,UAAU,CAAA,CAAE,CAAC;AACtE,CAAC,CAAC;SAEc,0BAA0B,GAAA;AACxC,IAAA,MAAM,aAAa,GAAG,IAAI,gBAAgB,EAAE,CAAC;AAE7C,IAAA,aAAa,CAAC,iBAAiB,GAAG,mBAAmB,CAAC;AACtD,IAAA,aAAa,CAAC,cAAc,GAAG,eAAe,CAAC;AAC/C,IAAA,aAAa,CAAC,aAAa,GAAG,WAAW,CAAC;AAC1C,IAAA,aAAa,CAAC,iBAAiB,GAAG,UAAU,CAAC;AAC7C,IAAA,aAAa,CAAC,aAAa,GAAG,eAAe,CAAC;AAC9C,IAAA,aAAa,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BAA0B,EAAE,EAAE,CAAC,YAFzE,OAAO,EAHD,cAAc,EAAE,aAAa,EAAE,kBAAkB,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAOrD,eAAe,EAAA,UAAA,EAAA,CAAA;kBAL3B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE,OAAO;AAChB,oBAAA,OAAO,EAAE,OAAO;AAChB,oBAAA,SAAS,EAAE,CAAC,EAAE,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,0BAA0B,EAAE,EAAE,CAAC;AACnF,iBAAA,CAAA;;;ACbD;;AAEG;;ACFH;;AAEG;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"kato-lee-components-toast.mjs","sources":["../../../libraries/components/toast/toast.service.ts","../../../libraries/components/toast/index.ts","../../../libraries/components/toast/kato-lee-components-toast.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\r\nimport {\r\n MatSnackBar,\r\n MatSnackBarHorizontalPosition,\r\n MatSnackBarVerticalPosition,\r\n} from '@kato-lee/material/snack-bar';\r\n\r\nexport type TakToastType = 'notification' | 'danger' | 'success';\r\n\r\nexport interface TakToastConfig {\r\n hasDissmissButton?: boolean;\r\n dissmissButtonMessage?: string;\r\n horizontalPosition?: MatSnackBarHorizontalPosition;\r\n verticalPosition?: MatSnackBarVerticalPosition;\r\n duration?: number;\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class TakToast {\r\n constructor(private _snackBar: MatSnackBar) {}\r\n\r\n public notification(message: string, payload: TakToastConfig = {}): void {\r\n this._generateTakToast(message, 'notification', this._managePayload(payload));\r\n }\r\n\r\n public success(message: string, payload: TakToastConfig = {}): void {\r\n this._generateTakToast(message, 'success', this._managePayload(payload));\r\n }\r\n public danger(message: string, payload: TakToastConfig = {}): void {\r\n this._generateTakToast(message, 'danger', this._managePayload(payload));\r\n }\r\n\r\n private _generateTakToast(message: string, type: TakToastType, payload: TakToastConfig) {\r\n const {\r\n duration,\r\n verticalPosition,\r\n horizontalPosition,\r\n hasDissmissButton,\r\n dissmissButtonMessage,\r\n } = payload;\r\n\r\n this._snackBar.open(message, `${hasDissmissButton ? dissmissButtonMessage : ''}`, {\r\n duration,\r\n verticalPosition,\r\n horizontalPosition,\r\n panelClass: `tak-snackbar-${type}`,\r\n });\r\n }\r\n\r\n private _managePayload(payload: TakToastConfig): TakToastConfig {\r\n return {\r\n hasDissmissButton: payload.hasDissmissButton || true,\r\n duration: payload.duration || 5000,\r\n dissmissButtonMessage: payload.dissmissButtonMessage || 'Cerrar',\r\n horizontalPosition: payload.horizontalPosition || 'center',\r\n verticalPosition: payload.verticalPosition || 'bottom',\r\n };\r\n }\r\n}\r\n","/*\r\n * Public API Surface of @kato-lee/components/toast\r\n */\r\nexport * from './toast.service';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAkBa,QAAQ,CAAA;AACnB,IAAA,WAAA,CAAoB,SAAsB,EAAA;QAAtB,IAAS,CAAA,SAAA,GAAT,SAAS,CAAa;KAAI;AAEvC,IAAA,YAAY,CAAC,OAAe,EAAE,OAAA,GAA0B,EAAE,EAAA;AAC/D,QAAA,IAAI,CAAC,iBAAiB,CAAC,OAAO,EAAE,cAAc,EAAE,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;KAC/E;AAEM,IAAA,OAAO,CAAC,OAAe,EAAE,OAAA,GAA0B,EAAE,EAAA;AAC1D,QAAA,IAAI,CAAC,iBAAiB,CAAC,OAAO,EAAE,SAAS,EAAE,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;KAC1E;AACM,IAAA,MAAM,CAAC,OAAe,EAAE,OAAA,GAA0B,EAAE,EAAA;AACzD,QAAA,IAAI,CAAC,iBAAiB,CAAC,OAAO,EAAE,QAAQ,EAAE,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;KACzE;AAEO,IAAA,iBAAiB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C;;AAEG;;ACFH;;AAEG;;;;"}
1
+ {"version":3,"file":"kato-lee-components-toast.mjs","sources":["../../../libraries/components/toast/service.ts","../../../libraries/components/toast/index.ts","../../../libraries/components/toast/kato-lee-components-toast.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\r\nimport {\r\n MatSnackBar,\r\n MatSnackBarHorizontalPosition,\r\n MatSnackBarVerticalPosition,\r\n} from '@kato-lee/material/snack-bar';\r\n\r\nexport type TakToastType = 'notification' | 'danger' | 'success';\r\n\r\nexport interface TakToastConfig {\r\n hasDissmissButton?: boolean;\r\n dissmissButtonMessage?: string;\r\n horizontalPosition?: MatSnackBarHorizontalPosition;\r\n verticalPosition?: MatSnackBarVerticalPosition;\r\n duration?: number;\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class TakToast {\r\n constructor(private _snackBar: MatSnackBar) {}\r\n\r\n public notification(message: string, payload: TakToastConfig = {}): void {\r\n this._generateTakToast(message, 'notification', this._managePayload(payload));\r\n }\r\n\r\n public success(message: string, payload: TakToastConfig = {}): void {\r\n this._generateTakToast(message, 'success', this._managePayload(payload));\r\n }\r\n public danger(message: string, payload: TakToastConfig = {}): void {\r\n this._generateTakToast(message, 'danger', this._managePayload(payload));\r\n }\r\n\r\n private _generateTakToast(message: string, type: TakToastType, payload: TakToastConfig) {\r\n const {\r\n duration,\r\n verticalPosition,\r\n horizontalPosition,\r\n hasDissmissButton,\r\n dissmissButtonMessage,\r\n } = payload;\r\n\r\n this._snackBar.open(message, `${hasDissmissButton ? dissmissButtonMessage : ''}`, {\r\n duration,\r\n verticalPosition,\r\n horizontalPosition,\r\n panelClass: `tak-snackbar-${type}`,\r\n });\r\n }\r\n\r\n private _managePayload(payload: TakToastConfig): TakToastConfig {\r\n return {\r\n hasDissmissButton: payload.hasDissmissButton || true,\r\n duration: payload.duration || 5000,\r\n dissmissButtonMessage: payload.dissmissButtonMessage || 'Cerrar',\r\n horizontalPosition: payload.horizontalPosition || 'center',\r\n verticalPosition: payload.verticalPosition || 'bottom',\r\n };\r\n }\r\n}\r\n","/*\r\n * Public API Surface of @kato-lee/components/toast\r\n */\r\nexport * from './service';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAkBa,QAAQ,CAAA;AACnB,IAAA,WAAA,CAAoB,SAAsB,EAAA;QAAtB,IAAS,CAAA,SAAA,GAAT,SAAS,CAAa;KAAI;AAEvC,IAAA,YAAY,CAAC,OAAe,EAAE,OAAA,GAA0B,EAAE,EAAA;AAC/D,QAAA,IAAI,CAAC,iBAAiB,CAAC,OAAO,EAAE,cAAc,EAAE,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;KAC/E;AAEM,IAAA,OAAO,CAAC,OAAe,EAAE,OAAA,GAA0B,EAAE,EAAA;AAC1D,QAAA,IAAI,CAAC,iBAAiB,CAAC,OAAO,EAAE,SAAS,EAAE,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;KAC1E;AACM,IAAA,MAAM,CAAC,OAAe,EAAE,OAAA,GAA0B,EAAE,EAAA;AACzD,QAAA,IAAI,CAAC,iBAAiB,CAAC,OAAO,EAAE,QAAQ,EAAE,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;KACzE;AAEO,IAAA,iBAAiB,CAAC,OAAe,EAAE,IAAkB,EAAE,OAAuB,EAAA;AACpF,QAAA,MAAM,EACJ,QAAQ,EACR,gBAAgB,EAChB,kBAAkB,EAClB,iBAAiB,EACjB,qBAAqB,GACtB,GAAG,OAAO,CAAC;AAEZ,QAAA,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,EAAE,CAAG,EAAA,iBAAiB,GAAG,qBAAqB,GAAG,EAAE,EAAE,EAAE;YAChF,QAAQ;YACR,gBAAgB;YAChB,kBAAkB;YAClB,UAAU,EAAE,CAAgB,aAAA,EAAA,IAAI,CAAE,CAAA;AACnC,SAAA,CAAC,CAAC;KACJ;AAEO,IAAA,cAAc,CAAC,OAAuB,EAAA;QAC5C,OAAO;AACL,YAAA,iBAAiB,EAAE,OAAO,CAAC,iBAAiB,IAAI,IAAI;AACpD,YAAA,QAAQ,EAAE,OAAO,CAAC,QAAQ,IAAI,IAAI;AAClC,YAAA,qBAAqB,EAAE,OAAO,CAAC,qBAAqB,IAAI,QAAQ;AAChE,YAAA,kBAAkB,EAAE,OAAO,CAAC,kBAAkB,IAAI,QAAQ;AAC1D,YAAA,gBAAgB,EAAE,OAAO,CAAC,gBAAgB,IAAI,QAAQ;SACvD,CAAC;KACH;8GAvCU,QAAQ,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,WAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA,EAAA;AAAR,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,QAAQ,cADK,MAAM,EAAA,CAAA,CAAA,EAAA;;2FACnB,QAAQ,EAAA,UAAA,EAAA,CAAA;kBADpB,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE,CAAA;;;ACjBlC;;AAEG;;ACFH;;AAEG;;;;"}
@@ -3,7 +3,7 @@ import { ControlValueAccessor, FormGroupDirective, FormControl, NgControl } from
3
3
  import { Observable } from 'rxjs';
4
4
  import { MatFormFieldAppearance } from '@kato-lee/material/form-field';
5
5
  import { MatOptionSelectionChange, ThemePalette } from '@kato-lee/material/core';
6
- import { TakAutocompleteFieldType } from '../fields.common';
6
+ import { TakAutocompleteFieldType } from '../common';
7
7
  import * as i0 from "@angular/core";
8
8
  export declare class TakAutocompleteFieldComponent implements OnInit, OnDestroy, ControlValueAccessor {
9
9
  private _ngControl;
@@ -61,5 +61,5 @@ export declare class TakAutocompleteFieldComponent implements OnInit, OnDestroy,
61
61
  get notSuggestions(): boolean;
62
62
  get lastValue(): string;
63
63
  static ɵfac: i0.ɵɵFactoryDeclaration<TakAutocompleteFieldComponent, [{ optional: true; self: true; }, { optional: true; }, null]>;
64
- static ɵcmp: i0.ɵɵComponentDeclaration<TakAutocompleteFieldComponent, "tak-autocomplete-field", never, { "option": { "alias": "option"; "required": false; }; "extraInfo": { "alias": "extraInfo"; "required": false; }; "autocomplete": { "alias": "autocomplete"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "color": { "alias": "color"; "required": false; }; "hasClearButton": { "alias": "hasClearButton"; "required": false; }; "suggestions": { "alias": "suggestions"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "hasTitle": { "alias": "hasTitle"; "required": false; }; "isLoading": { "alias": "isLoading"; "required": false; }; "isRemoteSearch": { "alias": "isRemoteSearch"; "required": false; }; "debounceTimeForRemoteSearch": { "alias": "debounceTimeForRemoteSearch"; "required": false; }; }, { "onSelect": "onSelect"; "onSearch": "onSearch"; }, never, ["*"], false, never>;
64
+ static ɵcmp: i0.ɵɵComponentDeclaration<TakAutocompleteFieldComponent, "tak-autocomplete-field", never, { "option": { "alias": "option"; "required": false; }; "extraInfo": { "alias": "extraInfo"; "required": false; }; "autocomplete": { "alias": "autocomplete"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "color": { "alias": "color"; "required": false; }; "hasClearButton": { "alias": "hasClearButton"; "required": false; }; "suggestions": { "alias": "suggestions"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "hasTitle": { "alias": "hasTitle"; "required": false; }; "isLoading": { "alias": "isLoading"; "required": false; }; "isRemoteSearch": { "alias": "isRemoteSearch"; "required": false; }; "debounceTimeForRemoteSearch": { "alias": "debounceTimeForRemoteSearch"; "required": false; }; }, { "onSelect": "onSelect"; "onSearch": "onSearch"; }, never, ["*"], true, never>;
65
65
  }
@@ -0,0 +1 @@
1
+ export * from './component';
@@ -2,7 +2,7 @@ import { ChangeDetectorRef, AfterViewInit, OnDestroy, OnInit } from '@angular/co
2
2
  import { ThemePalette } from '@kato-lee/material/core';
3
3
  import { MatFormFieldAppearance } from '@kato-lee/material/form-field';
4
4
  import { ControlValueAccessor, FormControl, FormGroupDirective, NgControl } from '@angular/forms';
5
- import { TakAutocompleteFieldType } from '../fields.common';
5
+ import { TakAutocompleteFieldType } from '../common';
6
6
  import * as i0 from "@angular/core";
7
7
  export declare class TakDateFieldComponent implements OnInit, AfterViewInit, OnDestroy, ControlValueAccessor {
8
8
  private _ngControl;
@@ -42,5 +42,5 @@ export declare class TakDateFieldComponent implements OnInit, AfterViewInit, OnD
42
42
  get required(): boolean;
43
43
  get value(): string;
44
44
  static ɵfac: i0.ɵɵFactoryDeclaration<TakDateFieldComponent, [{ optional: true; self: true; }, { optional: true; }, null]>;
45
- static ɵcmp: i0.ɵɵComponentDeclaration<TakDateFieldComponent, "tak-date-field", never, { "appearance": { "alias": "appearance"; "required": false; }; "autocomplete": { "alias": "autocomplete"; "required": false; }; "color": { "alias": "color"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "notInput": { "alias": "notInput"; "required": false; }; "minDate": { "alias": "minDate"; "required": false; }; "maxDate": { "alias": "maxDate"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, ["*"], false, never>;
45
+ static ɵcmp: i0.ɵɵComponentDeclaration<TakDateFieldComponent, "tak-date-field", never, { "appearance": { "alias": "appearance"; "required": false; }; "autocomplete": { "alias": "autocomplete"; "required": false; }; "color": { "alias": "color"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "notInput": { "alias": "notInput"; "required": false; }; "minDate": { "alias": "minDate"; "required": false; }; "maxDate": { "alias": "maxDate"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, ["*"], true, never>;
46
46
  }
@@ -0,0 +1 @@
1
+ export * from './component';
@@ -2,7 +2,7 @@ import { OnInit } from '@angular/core';
2
2
  import { FormControl } from '@angular/forms';
3
3
  import { MatFormFieldAppearance } from '@kato-lee/material/form-field';
4
4
  import { ThemePalette } from '@kato-lee/material/core';
5
- import { TakAutocompleteFieldType } from '../fields.common';
5
+ import { TakAutocompleteFieldType } from '../common';
6
6
  import * as i0 from "@angular/core";
7
7
  export declare class TakDateRangeFieldComponent implements OnInit {
8
8
  autocomplete: TakAutocompleteFieldType;
@@ -19,5 +19,5 @@ export declare class TakDateRangeFieldComponent implements OnInit {
19
19
  get required(): boolean;
20
20
  get isDisabled(): boolean;
21
21
  static ɵfac: i0.ɵɵFactoryDeclaration<TakDateRangeFieldComponent, never>;
22
- static ɵcmp: i0.ɵɵComponentDeclaration<TakDateRangeFieldComponent, "tak-date-range-field", never, { "autocomplete": { "alias": "autocomplete"; "required": false; }; "startPlaceholder": { "alias": "startPlaceholder"; "required": false; }; "endPlaceholder": { "alias": "endPlaceholder"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "color": { "alias": "color"; "required": false; }; "start": { "alias": "start"; "required": false; }; "end": { "alias": "end"; "required": false; }; "notInput": { "alias": "notInput"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, ["*"], false, never>;
22
+ static ɵcmp: i0.ɵɵComponentDeclaration<TakDateRangeFieldComponent, "tak-date-range-field", never, { "autocomplete": { "alias": "autocomplete"; "required": false; }; "startPlaceholder": { "alias": "startPlaceholder"; "required": false; }; "endPlaceholder": { "alias": "endPlaceholder"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "color": { "alias": "color"; "required": false; }; "start": { "alias": "start"; "required": false; }; "end": { "alias": "end"; "required": false; }; "notInput": { "alias": "notInput"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, ["*"], true, never>;
23
23
  }
@@ -0,0 +1 @@
1
+ export * from './component';
@@ -18,5 +18,5 @@ export declare class TakErrorComponent {
18
18
  get minlength(): any;
19
19
  get email(): ValidationErrors;
20
20
  static ɵfac: i0.ɵɵFactoryDeclaration<TakErrorComponent, never>;
21
- static ɵcmp: i0.ɵɵComponentDeclaration<TakErrorComponent, "tak-error", never, { "control": { "alias": "control"; "required": false; }; "start": { "alias": "start"; "required": false; }; "end": { "alias": "end"; "required": false; }; "isDateField": { "alias": "isDateField"; "required": false; }; "isNumberField": { "alias": "isNumberField"; "required": false; }; "marginTop": { "alias": "marginTop"; "required": false; }; }, {}, never, never, false, never>;
21
+ static ɵcmp: i0.ɵɵComponentDeclaration<TakErrorComponent, "tak-error", never, { "control": { "alias": "control"; "required": false; }; "start": { "alias": "start"; "required": false; }; "end": { "alias": "end"; "required": false; }; "isDateField": { "alias": "isDateField"; "required": false; }; "isNumberField": { "alias": "isNumberField"; "required": false; }; "marginTop": { "alias": "marginTop"; "required": false; }; }, {}, never, never, true, never>;
22
22
  }
@@ -3,5 +3,5 @@ import * as i0 from "@angular/core";
3
3
  export declare class TakErrorEqualsPipe implements PipeTransform {
4
4
  transform(errors: any, error: any, args?: any): any;
5
5
  static ɵfac: i0.ɵɵFactoryDeclaration<TakErrorEqualsPipe, never>;
6
- static ɵpipe: i0.ɵɵPipeDeclaration<TakErrorEqualsPipe, "errorEquals", false>;
6
+ static ɵpipe: i0.ɵɵPipeDeclaration<TakErrorEqualsPipe, "errorEquals", true>;
7
7
  }
@@ -3,5 +3,5 @@ import * as i0 from "@angular/core";
3
3
  export declare class TakErrorMsgPipe implements PipeTransform {
4
4
  transform(parameter: string, aditionalValue?: any): string;
5
5
  static ɵfac: i0.ɵɵFactoryDeclaration<TakErrorMsgPipe, never>;
6
- static ɵpipe: i0.ɵɵPipeDeclaration<TakErrorMsgPipe, "errorMsg", false>;
6
+ static ɵpipe: i0.ɵɵPipeDeclaration<TakErrorMsgPipe, "errorMsg", true>;
7
7
  }
@@ -1,6 +1,6 @@
1
1
  import { ChangeDetectorRef, OnDestroy, OnInit, EventEmitter } from '@angular/core';
2
2
  import { ControlValueAccessor, FormGroupDirective, FormControl, NgControl } from '@angular/forms';
3
- import { TakGeneralFieldType } from '../fields.common';
3
+ import { TakGeneralFieldType } from '../common';
4
4
  import { FloatLabelType, MatFormFieldAppearance } from '@kato-lee/material/form-field';
5
5
  import { ThemePalette } from '@kato-lee/material/core';
6
6
  import * as i0 from "@angular/core";
@@ -52,5 +52,5 @@ export declare class TakGeneralFieldComponent implements OnInit, OnDestroy, Cont
52
52
  get required(): boolean;
53
53
  get value(): string;
54
54
  static ɵfac: i0.ɵɵFactoryDeclaration<TakGeneralFieldComponent, [{ optional: true; self: true; }, { optional: true; }, null]>;
55
- static ɵcmp: i0.ɵɵComponentDeclaration<TakGeneralFieldComponent, "tak-general-field", never, { "autocomplete": { "alias": "autocomplete"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "type": { "alias": "type"; "required": false; }; "floatLabel": { "alias": "floatLabel"; "required": false; }; "color": { "alias": "color"; "required": false; }; "actionIcon": { "alias": "actionIcon"; "required": false; }; "defaultFilterStyle": { "alias": "defaultFilterStyle"; "required": false; }; "hasActionButton": { "alias": "hasActionButton"; "required": false; }; "hasClearButton": { "alias": "hasClearButton"; "required": false; }; "countCaracters": { "alias": "countCaracters"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "maxLength": { "alias": "maxLength"; "required": false; }; "minLength": { "alias": "minLength"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "onExecuteAction": "onExecuteAction"; "onKeyUp": "onKeyUp"; }, never, ["*"], false, never>;
55
+ static ɵcmp: i0.ɵɵComponentDeclaration<TakGeneralFieldComponent, "tak-general-field", never, { "autocomplete": { "alias": "autocomplete"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "type": { "alias": "type"; "required": false; }; "floatLabel": { "alias": "floatLabel"; "required": false; }; "color": { "alias": "color"; "required": false; }; "actionIcon": { "alias": "actionIcon"; "required": false; }; "defaultFilterStyle": { "alias": "defaultFilterStyle"; "required": false; }; "hasActionButton": { "alias": "hasActionButton"; "required": false; }; "hasClearButton": { "alias": "hasClearButton"; "required": false; }; "countCaracters": { "alias": "countCaracters"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "maxLength": { "alias": "maxLength"; "required": false; }; "minLength": { "alias": "minLength"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "onExecuteAction": "onExecuteAction"; "onKeyUp": "onKeyUp"; }, never, ["*"], true, never>;
56
56
  }
@@ -0,0 +1 @@
1
+ export * from './component';
package/fields/index.d.ts CHANGED
@@ -1,15 +1,15 @@
1
1
  export * from './error/error-equals.pipe';
2
- export * from './error/error.component';
2
+ export * from './error/component';
3
3
  export * from './error/error.msg.pipe';
4
- export * from './fields.common';
5
- export * from './fields.module';
6
- export * from './fields.validators';
7
- export * from './select-field/select-field.component';
8
- export * from './date-field/date-field.component';
9
- export * from './autocomplete-field/autocomplete-field.component';
10
- export * from './general-field/general-field.component';
11
- export * from './money-field/money-field.component';
12
- export * from './text-area/textarea.component';
13
- export * from './date-range-field/date-range-field.component';
14
- export * from './number-field/number-field.component';
15
- export * from './remote-autocomplete-field/remote-autocomplete-field.component';
4
+ export * from './common';
5
+ export * from './module';
6
+ export * from './validators';
7
+ export * from './select';
8
+ export * from './date';
9
+ export * from './autocomplete';
10
+ export * from './general';
11
+ export * from './money';
12
+ export * from './text-area/component';
13
+ export * from './date-range';
14
+ export * from './number';
15
+ export * from './remote-autocomplete';
@@ -0,0 +1,19 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./select/component";
3
+ import * as i2 from "./date/component";
4
+ import * as i3 from "./autocomplete/component";
5
+ import * as i4 from "./date-range/component";
6
+ import * as i5 from "./general/component";
7
+ import * as i6 from "./money/component";
8
+ import * as i7 from "./text-area/component";
9
+ import * as i8 from "./number/component";
10
+ import * as i9 from "@angular/forms";
11
+ import * as i10 from "@kato-lee/material/autocomplete";
12
+ import * as i11 from "@kato-lee/material/core";
13
+ import * as i12 from "./remote-autocomplete/component";
14
+ /** @deprecated Use standalone */
15
+ export declare class TakFieldsModule {
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<TakFieldsModule, never>;
17
+ static ɵmod: i0.ɵɵNgModuleDeclaration<TakFieldsModule, never, [typeof i1.TakSelectFieldComponent, typeof i2.TakDateFieldComponent, typeof i3.TakAutocompleteFieldComponent, typeof i4.TakDateRangeFieldComponent, typeof i5.TakGeneralFieldComponent, typeof i6.TakMoneyFieldComponent, typeof i7.TakTextareaComponent, typeof i8.TakNumberFieldComponent, typeof i9.ReactiveFormsModule, typeof i10.MatAutocompleteModule, typeof i9.FormsModule, typeof i11.MatNativeDateModule, typeof i12.TakRemoteAutocompleteFieldComponent], [typeof i9.ReactiveFormsModule, typeof i10.MatAutocompleteModule, typeof i9.FormsModule, typeof i11.MatNativeDateModule, typeof i12.TakRemoteAutocompleteFieldComponent, typeof i1.TakSelectFieldComponent, typeof i2.TakDateFieldComponent, typeof i3.TakAutocompleteFieldComponent, typeof i4.TakDateRangeFieldComponent, typeof i5.TakGeneralFieldComponent, typeof i6.TakMoneyFieldComponent, typeof i7.TakTextareaComponent, typeof i8.TakNumberFieldComponent]>;
18
+ static ɵinj: i0.ɵɵInjectorDeclaration<TakFieldsModule>;
19
+ }
@@ -49,5 +49,5 @@ export declare class TakMoneyFieldComponent implements OnInit, OnDestroy, Contro
49
49
  get required(): boolean;
50
50
  get value(): string;
51
51
  static ɵfac: i0.ɵɵFactoryDeclaration<TakMoneyFieldComponent, [{ optional: true; self: true; }, { optional: true; }, null]>;
52
- static ɵcmp: i0.ɵɵComponentDeclaration<TakMoneyFieldComponent, "tak-money-field", never, { "autocomplete": { "alias": "autocomplete"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "floatLabel": { "alias": "floatLabel"; "required": false; }; "color": { "alias": "color"; "required": false; }; "actionIcon": { "alias": "actionIcon"; "required": false; }; "defaultFilterStyle": { "alias": "defaultFilterStyle"; "required": false; }; "hasActionButton": { "alias": "hasActionButton"; "required": false; }; "hasClearButton": { "alias": "hasClearButton"; "required": false; }; "countCaracters": { "alias": "countCaracters"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "maxLength": { "alias": "maxLength"; "required": false; }; "minLength": { "alias": "minLength"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "onExecuteAction": "onExecuteAction"; "onKeyUp": "onKeyUp"; }, never, ["*"], false, never>;
52
+ static ɵcmp: i0.ɵɵComponentDeclaration<TakMoneyFieldComponent, "tak-money-field", never, { "autocomplete": { "alias": "autocomplete"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "floatLabel": { "alias": "floatLabel"; "required": false; }; "color": { "alias": "color"; "required": false; }; "actionIcon": { "alias": "actionIcon"; "required": false; }; "defaultFilterStyle": { "alias": "defaultFilterStyle"; "required": false; }; "hasActionButton": { "alias": "hasActionButton"; "required": false; }; "hasClearButton": { "alias": "hasClearButton"; "required": false; }; "countCaracters": { "alias": "countCaracters"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "maxLength": { "alias": "maxLength"; "required": false; }; "minLength": { "alias": "minLength"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "onExecuteAction": "onExecuteAction"; "onKeyUp": "onKeyUp"; }, never, ["*"], true, never>;
53
53
  }
@@ -0,0 +1 @@
1
+ export * from './component';
@@ -48,5 +48,5 @@ export declare class TakNumberFieldComponent implements OnInit, OnDestroy, Contr
48
48
  get required(): boolean;
49
49
  get value(): string;
50
50
  static ɵfac: i0.ɵɵFactoryDeclaration<TakNumberFieldComponent, [{ optional: true; self: true; }, { optional: true; }, null]>;
51
- static ɵcmp: i0.ɵɵComponentDeclaration<TakNumberFieldComponent, "tak-number-field", never, { "autocomplete": { "alias": "autocomplete"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "floatLabel": { "alias": "floatLabel"; "required": false; }; "color": { "alias": "color"; "required": false; }; "actionIcon": { "alias": "actionIcon"; "required": false; }; "hasActionButton": { "alias": "hasActionButton"; "required": false; }; "hasClearButton": { "alias": "hasClearButton"; "required": false; }; "countCaracters": { "alias": "countCaracters"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "minLength": { "alias": "minLength"; "required": false; }; "maxLength": { "alias": "maxLength"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "onExecuteAction": "onExecuteAction"; "onKeyUp": "onKeyUp"; }, never, ["*"], false, never>;
51
+ static ɵcmp: i0.ɵɵComponentDeclaration<TakNumberFieldComponent, "tak-number-field", never, { "autocomplete": { "alias": "autocomplete"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "floatLabel": { "alias": "floatLabel"; "required": false; }; "color": { "alias": "color"; "required": false; }; "actionIcon": { "alias": "actionIcon"; "required": false; }; "hasActionButton": { "alias": "hasActionButton"; "required": false; }; "hasClearButton": { "alias": "hasClearButton"; "required": false; }; "countCaracters": { "alias": "countCaracters"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "minLength": { "alias": "minLength"; "required": false; }; "maxLength": { "alias": "maxLength"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "onExecuteAction": "onExecuteAction"; "onKeyUp": "onKeyUp"; }, never, ["*"], true, never>;
52
52
  }
@@ -0,0 +1 @@
1
+ export * from './component';
@@ -0,0 +1 @@
1
+ export * from './component';
@@ -2,7 +2,7 @@ import { ChangeDetectorRef, OnDestroy, OnInit, EventEmitter } from '@angular/cor
2
2
  import { ControlValueAccessor, FormControl, FormGroupDirective, NgControl } from '@angular/forms';
3
3
  import { MatFormFieldAppearance } from '@kato-lee/material/form-field';
4
4
  import { MatOptionSelectionChange, ThemePalette } from '@kato-lee/material/core';
5
- import { TakAutocompleteFieldType } from '../fields.common';
5
+ import { TakAutocompleteFieldType } from '../common';
6
6
  import * as i0 from "@angular/core";
7
7
  export declare class TakSelectFieldComponent implements OnInit, OnDestroy, ControlValueAccessor {
8
8
  private _ngControl;
@@ -40,5 +40,5 @@ export declare class TakSelectFieldComponent implements OnInit, OnDestroy, Contr
40
40
  get directive(): FormGroupDirective;
41
41
  get isDisabled(): boolean | null;
42
42
  static ɵfac: i0.ɵɵFactoryDeclaration<TakSelectFieldComponent, [{ optional: true; self: true; }, { optional: true; }, null]>;
43
- static ɵcmp: i0.ɵɵComponentDeclaration<TakSelectFieldComponent, "tak-select-field", never, { "autocomplete": { "alias": "autocomplete"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "color": { "alias": "color"; "required": false; }; "suggestions": { "alias": "suggestions"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "type": { "alias": "type"; "required": false; }; "tooltip": { "alias": "tooltip"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "option": { "alias": "option"; "required": false; }; "extraInfo": { "alias": "extraInfo"; "required": false; }; "hasDefaultValue": { "alias": "hasDefaultValue"; "required": false; }; }, { "onSelect": "onSelect"; }, never, ["*"], false, never>;
43
+ static ɵcmp: i0.ɵɵComponentDeclaration<TakSelectFieldComponent, "tak-select-field", never, { "autocomplete": { "alias": "autocomplete"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "color": { "alias": "color"; "required": false; }; "suggestions": { "alias": "suggestions"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "type": { "alias": "type"; "required": false; }; "tooltip": { "alias": "tooltip"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "option": { "alias": "option"; "required": false; }; "extraInfo": { "alias": "extraInfo"; "required": false; }; "hasDefaultValue": { "alias": "hasDefaultValue"; "required": false; }; }, { "onSelect": "onSelect"; }, never, ["*"], true, never>;
44
44
  }
@@ -0,0 +1 @@
1
+ export * from './component';
@@ -51,5 +51,5 @@ export declare class TakTextareaComponent implements OnInit, OnDestroy, ControlV
51
51
  get required(): boolean;
52
52
  get value(): string;
53
53
  static ɵfac: i0.ɵɵFactoryDeclaration<TakTextareaComponent, [{ optional: true; self: true; }, { optional: true; }, null]>;
54
- static ɵcmp: i0.ɵɵComponentDeclaration<TakTextareaComponent, "tak-textarea", never, { "autocomplete": { "alias": "autocomplete"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "floatLabel": { "alias": "floatLabel"; "required": false; }; "color": { "alias": "color"; "required": false; }; "actionIcon": { "alias": "actionIcon"; "required": false; }; "defaultFilterStyle": { "alias": "defaultFilterStyle"; "required": false; }; "hasActionButton": { "alias": "hasActionButton"; "required": false; }; "hasClearButton": { "alias": "hasClearButton"; "required": false; }; "countCaracters": { "alias": "countCaracters"; "required": false; }; "isTextArea": { "alias": "isTextArea"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "heightInPx": { "alias": "heightInPx"; "required": false; }; "minLength": { "alias": "minLength"; "required": false; }; "maxLength": { "alias": "maxLength"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "onExecuteAction": "onExecuteAction"; "onKeyUp": "onKeyUp"; }, never, ["*"], false, never>;
54
+ static ɵcmp: i0.ɵɵComponentDeclaration<TakTextareaComponent, "tak-textarea", never, { "autocomplete": { "alias": "autocomplete"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "floatLabel": { "alias": "floatLabel"; "required": false; }; "color": { "alias": "color"; "required": false; }; "actionIcon": { "alias": "actionIcon"; "required": false; }; "defaultFilterStyle": { "alias": "defaultFilterStyle"; "required": false; }; "hasActionButton": { "alias": "hasActionButton"; "required": false; }; "hasClearButton": { "alias": "hasClearButton"; "required": false; }; "countCaracters": { "alias": "countCaracters"; "required": false; }; "isTextArea": { "alias": "isTextArea"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "heightInPx": { "alias": "heightInPx"; "required": false; }; "minLength": { "alias": "minLength"; "required": false; }; "maxLength": { "alias": "maxLength"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "onExecuteAction": "onExecuteAction"; "onKeyUp": "onKeyUp"; }, never, ["*"], true, never>;
55
55
  }
@@ -31,5 +31,5 @@ export declare class TakModalComponent implements OnInit {
31
31
  get okButton(): string;
32
32
  get hasTopCloseButton(): boolean;
33
33
  static ɵfac: i0.ɵɵFactoryDeclaration<TakModalComponent, never>;
34
- static ɵcmp: i0.ɵɵComponentDeclaration<TakModalComponent, "tak-modal", never, {}, {}, never, never, false, never>;
34
+ static ɵcmp: i0.ɵɵComponentDeclaration<TakModalComponent, "tak-modal", never, {}, {}, never, never, true, never>;
35
35
  }
package/modal/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  export * from './config';
2
- export * from './modal.component';
3
- export * from './modal.module';
4
- export * from './modal.service';
2
+ export * from './component';
3
+ export * from './module';
4
+ export * from './service';
@@ -0,0 +1,8 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./component";
3
+ /** @deprecated Use standalone */
4
+ export declare class TakModalModule {
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<TakModalModule, never>;
6
+ static ɵmod: i0.ɵɵNgModuleDeclaration<TakModalModule, never, [typeof i1.TakModalComponent], [typeof i1.TakModalComponent]>;
7
+ static ɵinj: i0.ɵɵInjectorDeclaration<TakModalModule>;
8
+ }