@koalarx/ui 20.4.4 → 21.0.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 (190) hide show
  1. package/core/base/package.json +2 -1
  2. package/core/components/dialog/package.json +2 -1
  3. package/core/components/kl-root/package.json +2 -1
  4. package/core/components/loader/package.json +2 -1
  5. package/core/components/loader-page/package.json +2 -1
  6. package/core/components/side-window/package.json +2 -1
  7. package/core/components/snackbar/package.json +2 -1
  8. package/core/config/package.json +2 -1
  9. package/core/guards/package.json +2 -1
  10. package/core/middlewares/package.json +2 -1
  11. package/core/models/package.json +2 -1
  12. package/core/translations/package.json +2 -1
  13. package/fesm2022/koalarx-ui-core-base.mjs +5 -5
  14. package/fesm2022/koalarx-ui-core-base.mjs.map +1 -1
  15. package/fesm2022/koalarx-ui-core-components-dialog.mjs +5 -5
  16. package/fesm2022/koalarx-ui-core-components-dialog.mjs.map +1 -1
  17. package/fesm2022/koalarx-ui-core-components-kl-root.mjs +6 -6
  18. package/fesm2022/koalarx-ui-core-components-kl-root.mjs.map +1 -1
  19. package/fesm2022/koalarx-ui-core-components-loader-page.mjs +8 -8
  20. package/fesm2022/koalarx-ui-core-components-loader-page.mjs.map +1 -1
  21. package/fesm2022/koalarx-ui-core-components-loader.mjs +6 -6
  22. package/fesm2022/koalarx-ui-core-components-loader.mjs.map +1 -1
  23. package/fesm2022/koalarx-ui-core-components-side-window.mjs +5 -5
  24. package/fesm2022/koalarx-ui-core-components-side-window.mjs.map +1 -1
  25. package/fesm2022/koalarx-ui-core-components-snackbar.mjs +5 -5
  26. package/fesm2022/koalarx-ui-core-components-snackbar.mjs.map +1 -1
  27. package/fesm2022/koalarx-ui-core-guards.mjs +3 -3
  28. package/fesm2022/koalarx-ui-shared-components-accordion.mjs +6 -6
  29. package/fesm2022/koalarx-ui-shared-components-accordion.mjs.map +1 -1
  30. package/fesm2022/koalarx-ui-shared-components-alert.mjs +6 -6
  31. package/fesm2022/koalarx-ui-shared-components-code-viewer.mjs +8 -8
  32. package/fesm2022/koalarx-ui-shared-components-code-viewer.mjs.map +1 -1
  33. package/fesm2022/koalarx-ui-shared-components-collapse.mjs +5 -5
  34. package/fesm2022/koalarx-ui-shared-components-collapse.mjs.map +1 -1
  35. package/fesm2022/koalarx-ui-shared-components-confirm.mjs +8 -8
  36. package/fesm2022/koalarx-ui-shared-components-confirm.mjs.map +1 -1
  37. package/fesm2022/koalarx-ui-shared-components-datatable.mjs +26 -26
  38. package/fesm2022/koalarx-ui-shared-components-datatable.mjs.map +1 -1
  39. package/fesm2022/koalarx-ui-shared-components-dialog.mjs +10 -10
  40. package/fesm2022/koalarx-ui-shared-components-dialog.mjs.map +1 -1
  41. package/fesm2022/koalarx-ui-shared-components-dropdown.mjs +6 -6
  42. package/fesm2022/koalarx-ui-shared-components-dropdown.mjs.map +1 -1
  43. package/fesm2022/koalarx-ui-shared-components-field-errors.mjs +4 -4
  44. package/fesm2022/koalarx-ui-shared-components-horizontal-menu.mjs +10 -10
  45. package/fesm2022/koalarx-ui-shared-components-horizontal-menu.mjs.map +1 -1
  46. package/fesm2022/koalarx-ui-shared-components-input-field-field-group.mjs +5 -5
  47. package/fesm2022/koalarx-ui-shared-components-input-field-field-group.mjs.map +1 -1
  48. package/fesm2022/koalarx-ui-shared-components-input-field-fieldset.mjs +5 -5
  49. package/fesm2022/koalarx-ui-shared-components-input-field-fieldset.mjs.map +1 -1
  50. package/fesm2022/koalarx-ui-shared-components-input-field-input-checkbox.mjs +6 -6
  51. package/fesm2022/koalarx-ui-shared-components-input-field-input-checkbox.mjs.map +1 -1
  52. package/fesm2022/koalarx-ui-shared-components-input-field-input-cnpj.mjs +5 -5
  53. package/fesm2022/koalarx-ui-shared-components-input-field-input-cnpj.mjs.map +1 -1
  54. package/fesm2022/koalarx-ui-shared-components-input-field-input-cpf.mjs +5 -5
  55. package/fesm2022/koalarx-ui-shared-components-input-field-input-cpf.mjs.map +1 -1
  56. package/fesm2022/koalarx-ui-shared-components-input-field-input-currency.mjs +7 -7
  57. package/fesm2022/koalarx-ui-shared-components-input-field-input-currency.mjs.map +1 -1
  58. package/fesm2022/koalarx-ui-shared-components-input-field-input-date.mjs +6 -6
  59. package/fesm2022/koalarx-ui-shared-components-input-field-input-date.mjs.map +1 -1
  60. package/fesm2022/koalarx-ui-shared-components-input-field-input-datetime.mjs +6 -6
  61. package/fesm2022/koalarx-ui-shared-components-input-field-input-datetime.mjs.map +1 -1
  62. package/fesm2022/koalarx-ui-shared-components-input-field-input-email.mjs +5 -5
  63. package/fesm2022/koalarx-ui-shared-components-input-field-input-email.mjs.map +1 -1
  64. package/fesm2022/koalarx-ui-shared-components-input-field-input-month.mjs +6 -6
  65. package/fesm2022/koalarx-ui-shared-components-input-field-input-month.mjs.map +1 -1
  66. package/fesm2022/koalarx-ui-shared-components-input-field-input-password.mjs +7 -7
  67. package/fesm2022/koalarx-ui-shared-components-input-field-input-password.mjs.map +1 -1
  68. package/fesm2022/koalarx-ui-shared-components-input-field-input-radio.mjs +7 -7
  69. package/fesm2022/koalarx-ui-shared-components-input-field-input-radio.mjs.map +1 -1
  70. package/fesm2022/koalarx-ui-shared-components-input-field-input-text.mjs +6 -6
  71. package/fesm2022/koalarx-ui-shared-components-input-field-input-text.mjs.map +1 -1
  72. package/fesm2022/koalarx-ui-shared-components-input-field-input-time.mjs +6 -6
  73. package/fesm2022/koalarx-ui-shared-components-input-field-input-time.mjs.map +1 -1
  74. package/fesm2022/koalarx-ui-shared-components-input-field-input-url.mjs +5 -5
  75. package/fesm2022/koalarx-ui-shared-components-input-field-input-url.mjs.map +1 -1
  76. package/fesm2022/koalarx-ui-shared-components-input-field-select.mjs +19 -13
  77. package/fesm2022/koalarx-ui-shared-components-input-field-select.mjs.map +1 -1
  78. package/fesm2022/koalarx-ui-shared-components-input-field-switcher.mjs +6 -6
  79. package/fesm2022/koalarx-ui-shared-components-input-field-switcher.mjs.map +1 -1
  80. package/fesm2022/koalarx-ui-shared-components-input-field-textarea.mjs +7 -7
  81. package/fesm2022/koalarx-ui-shared-components-input-field-textarea.mjs.map +1 -1
  82. package/fesm2022/koalarx-ui-shared-components-input-field.mjs +12 -12
  83. package/fesm2022/koalarx-ui-shared-components-input-field.mjs.map +1 -1
  84. package/fesm2022/koalarx-ui-shared-components-on-this-page.mjs +7 -7
  85. package/fesm2022/koalarx-ui-shared-components-on-this-page.mjs.map +1 -1
  86. package/fesm2022/koalarx-ui-shared-components-side-window.mjs +11 -11
  87. package/fesm2022/koalarx-ui-shared-components-side-window.mjs.map +1 -1
  88. package/fesm2022/koalarx-ui-shared-components-snackbar.mjs +12 -12
  89. package/fesm2022/koalarx-ui-shared-components-snackbar.mjs.map +1 -1
  90. package/fesm2022/koalarx-ui-shared-components-stepper.mjs +10 -10
  91. package/fesm2022/koalarx-ui-shared-components-vertical-menu.mjs +10 -10
  92. package/fesm2022/koalarx-ui-shared-components-vertical-menu.mjs.map +1 -1
  93. package/fesm2022/koalarx-ui-shared-directives.mjs +25 -25
  94. package/fesm2022/koalarx-ui-shared-directives.mjs.map +1 -1
  95. package/fesm2022/koalarx-ui-shared-services.mjs +3 -3
  96. package/fesm2022/koalarx-ui-shared-utils.mjs +3 -3
  97. package/fesm2022/koalarx-ui.mjs +6 -6
  98. package/package.json +108 -108
  99. package/shared/components/accordion/package.json +2 -1
  100. package/shared/components/alert/package.json +2 -1
  101. package/shared/components/code-viewer/package.json +2 -1
  102. package/shared/components/collapse/package.json +2 -1
  103. package/shared/components/confirm/package.json +2 -1
  104. package/shared/components/datatable/package.json +2 -1
  105. package/shared/components/dialog/package.json +2 -1
  106. package/shared/components/dropdown/package.json +2 -1
  107. package/shared/components/field-errors/package.json +2 -1
  108. package/shared/components/horizontal-menu/package.json +2 -1
  109. package/shared/components/input-field/field-group/package.json +2 -1
  110. package/shared/components/input-field/fieldset/package.json +2 -1
  111. package/shared/components/input-field/input-checkbox/package.json +2 -1
  112. package/shared/components/input-field/input-cnpj/package.json +2 -1
  113. package/shared/components/input-field/input-cpf/package.json +2 -1
  114. package/shared/components/input-field/input-currency/package.json +2 -1
  115. package/shared/components/input-field/input-date/package.json +2 -1
  116. package/shared/components/input-field/input-datetime/package.json +2 -1
  117. package/shared/components/input-field/input-email/package.json +2 -1
  118. package/shared/components/input-field/input-month/package.json +2 -1
  119. package/shared/components/input-field/input-password/package.json +2 -1
  120. package/shared/components/input-field/input-radio/package.json +2 -1
  121. package/shared/components/input-field/input-text/package.json +2 -1
  122. package/shared/components/input-field/input-time/package.json +2 -1
  123. package/shared/components/input-field/input-url/package.json +2 -1
  124. package/shared/components/input-field/package.json +2 -1
  125. package/shared/components/input-field/select/package.json +2 -1
  126. package/shared/components/input-field/switcher/package.json +2 -1
  127. package/shared/components/input-field/textarea/package.json +2 -1
  128. package/shared/components/on-this-page/package.json +2 -1
  129. package/shared/components/side-window/package.json +2 -1
  130. package/shared/components/snackbar/package.json +2 -1
  131. package/shared/components/stepper/package.json +2 -1
  132. package/shared/components/vertical-menu/package.json +2 -1
  133. package/shared/directives/package.json +2 -1
  134. package/shared/services/package.json +2 -1
  135. package/shared/utils/package.json +2 -1
  136. package/shared/validators/package.json +2 -1
  137. package/theme/form.css +0 -7
  138. package/theme/package.json +2 -1
  139. /package/{core/base/index.d.ts → types/koalarx-ui-core-base.d.ts} +0 -0
  140. /package/{core/components/dialog/index.d.ts → types/koalarx-ui-core-components-dialog.d.ts} +0 -0
  141. /package/{core/components/kl-root/index.d.ts → types/koalarx-ui-core-components-kl-root.d.ts} +0 -0
  142. /package/{core/components/loader-page/index.d.ts → types/koalarx-ui-core-components-loader-page.d.ts} +0 -0
  143. /package/{core/components/loader/index.d.ts → types/koalarx-ui-core-components-loader.d.ts} +0 -0
  144. /package/{core/components/side-window/index.d.ts → types/koalarx-ui-core-components-side-window.d.ts} +0 -0
  145. /package/{core/components/snackbar/index.d.ts → types/koalarx-ui-core-components-snackbar.d.ts} +0 -0
  146. /package/{core/config/index.d.ts → types/koalarx-ui-core-config.d.ts} +0 -0
  147. /package/{core/guards/index.d.ts → types/koalarx-ui-core-guards.d.ts} +0 -0
  148. /package/{core/middlewares/index.d.ts → types/koalarx-ui-core-middlewares.d.ts} +0 -0
  149. /package/{core/models/index.d.ts → types/koalarx-ui-core-models.d.ts} +0 -0
  150. /package/{core/translations/index.d.ts → types/koalarx-ui-core-translations.d.ts} +0 -0
  151. /package/{shared/components/accordion/index.d.ts → types/koalarx-ui-shared-components-accordion.d.ts} +0 -0
  152. /package/{shared/components/alert/index.d.ts → types/koalarx-ui-shared-components-alert.d.ts} +0 -0
  153. /package/{shared/components/code-viewer/index.d.ts → types/koalarx-ui-shared-components-code-viewer.d.ts} +0 -0
  154. /package/{shared/components/collapse/index.d.ts → types/koalarx-ui-shared-components-collapse.d.ts} +0 -0
  155. /package/{shared/components/confirm/index.d.ts → types/koalarx-ui-shared-components-confirm.d.ts} +0 -0
  156. /package/{shared/components/datatable/index.d.ts → types/koalarx-ui-shared-components-datatable.d.ts} +0 -0
  157. /package/{shared/components/dialog/index.d.ts → types/koalarx-ui-shared-components-dialog.d.ts} +0 -0
  158. /package/{shared/components/dropdown/index.d.ts → types/koalarx-ui-shared-components-dropdown.d.ts} +0 -0
  159. /package/{shared/components/field-errors/index.d.ts → types/koalarx-ui-shared-components-field-errors.d.ts} +0 -0
  160. /package/{shared/components/horizontal-menu/index.d.ts → types/koalarx-ui-shared-components-horizontal-menu.d.ts} +0 -0
  161. /package/{shared/components/input-field/field-group/index.d.ts → types/koalarx-ui-shared-components-input-field-field-group.d.ts} +0 -0
  162. /package/{shared/components/input-field/fieldset/index.d.ts → types/koalarx-ui-shared-components-input-field-fieldset.d.ts} +0 -0
  163. /package/{shared/components/input-field/input-checkbox/index.d.ts → types/koalarx-ui-shared-components-input-field-input-checkbox.d.ts} +0 -0
  164. /package/{shared/components/input-field/input-cnpj/index.d.ts → types/koalarx-ui-shared-components-input-field-input-cnpj.d.ts} +0 -0
  165. /package/{shared/components/input-field/input-cpf/index.d.ts → types/koalarx-ui-shared-components-input-field-input-cpf.d.ts} +0 -0
  166. /package/{shared/components/input-field/input-currency/index.d.ts → types/koalarx-ui-shared-components-input-field-input-currency.d.ts} +0 -0
  167. /package/{shared/components/input-field/input-date/index.d.ts → types/koalarx-ui-shared-components-input-field-input-date.d.ts} +0 -0
  168. /package/{shared/components/input-field/input-datetime/index.d.ts → types/koalarx-ui-shared-components-input-field-input-datetime.d.ts} +0 -0
  169. /package/{shared/components/input-field/input-email/index.d.ts → types/koalarx-ui-shared-components-input-field-input-email.d.ts} +0 -0
  170. /package/{shared/components/input-field/input-month/index.d.ts → types/koalarx-ui-shared-components-input-field-input-month.d.ts} +0 -0
  171. /package/{shared/components/input-field/input-password/index.d.ts → types/koalarx-ui-shared-components-input-field-input-password.d.ts} +0 -0
  172. /package/{shared/components/input-field/input-radio/index.d.ts → types/koalarx-ui-shared-components-input-field-input-radio.d.ts} +0 -0
  173. /package/{shared/components/input-field/input-text/index.d.ts → types/koalarx-ui-shared-components-input-field-input-text.d.ts} +0 -0
  174. /package/{shared/components/input-field/input-time/index.d.ts → types/koalarx-ui-shared-components-input-field-input-time.d.ts} +0 -0
  175. /package/{shared/components/input-field/input-url/index.d.ts → types/koalarx-ui-shared-components-input-field-input-url.d.ts} +0 -0
  176. /package/{shared/components/input-field/select/index.d.ts → types/koalarx-ui-shared-components-input-field-select.d.ts} +0 -0
  177. /package/{shared/components/input-field/switcher/index.d.ts → types/koalarx-ui-shared-components-input-field-switcher.d.ts} +0 -0
  178. /package/{shared/components/input-field/textarea/index.d.ts → types/koalarx-ui-shared-components-input-field-textarea.d.ts} +0 -0
  179. /package/{shared/components/input-field/index.d.ts → types/koalarx-ui-shared-components-input-field.d.ts} +0 -0
  180. /package/{shared/components/on-this-page/index.d.ts → types/koalarx-ui-shared-components-on-this-page.d.ts} +0 -0
  181. /package/{shared/components/side-window/index.d.ts → types/koalarx-ui-shared-components-side-window.d.ts} +0 -0
  182. /package/{shared/components/snackbar/index.d.ts → types/koalarx-ui-shared-components-snackbar.d.ts} +0 -0
  183. /package/{shared/components/stepper/index.d.ts → types/koalarx-ui-shared-components-stepper.d.ts} +0 -0
  184. /package/{shared/components/vertical-menu/index.d.ts → types/koalarx-ui-shared-components-vertical-menu.d.ts} +0 -0
  185. /package/{shared/directives/index.d.ts → types/koalarx-ui-shared-directives.d.ts} +0 -0
  186. /package/{shared/services/index.d.ts → types/koalarx-ui-shared-services.d.ts} +0 -0
  187. /package/{shared/utils/index.d.ts → types/koalarx-ui-shared-utils.d.ts} +0 -0
  188. /package/{shared/validators/index.d.ts → types/koalarx-ui-shared-validators.d.ts} +0 -0
  189. /package/{theme/index.d.ts → types/koalarx-ui-theme.d.ts} +0 -0
  190. /package/{index.d.ts → types/koalarx-ui.d.ts} +0 -0
@@ -1,3 +1,4 @@
1
1
  {
2
- "module": "../../fesm2022/koalarx-ui-core-base.mjs"
2
+ "module": "../../fesm2022/koalarx-ui-core-base.mjs",
3
+ "typings": "../../types/koalarx-ui-core-base.d.ts"
3
4
  }
@@ -1,3 +1,4 @@
1
1
  {
2
- "module": "../../../fesm2022/koalarx-ui-core-components-dialog.mjs"
2
+ "module": "../../../fesm2022/koalarx-ui-core-components-dialog.mjs",
3
+ "typings": "../../../types/koalarx-ui-core-components-dialog.d.ts"
3
4
  }
@@ -1,3 +1,4 @@
1
1
  {
2
- "module": "../../../fesm2022/koalarx-ui-core-components-kl-root.mjs"
2
+ "module": "../../../fesm2022/koalarx-ui-core-components-kl-root.mjs",
3
+ "typings": "../../../types/koalarx-ui-core-components-kl-root.d.ts"
3
4
  }
@@ -1,3 +1,4 @@
1
1
  {
2
- "module": "../../../fesm2022/koalarx-ui-core-components-loader.mjs"
2
+ "module": "../../../fesm2022/koalarx-ui-core-components-loader.mjs",
3
+ "typings": "../../../types/koalarx-ui-core-components-loader.d.ts"
3
4
  }
@@ -1,3 +1,4 @@
1
1
  {
2
- "module": "../../../fesm2022/koalarx-ui-core-components-loader-page.mjs"
2
+ "module": "../../../fesm2022/koalarx-ui-core-components-loader-page.mjs",
3
+ "typings": "../../../types/koalarx-ui-core-components-loader-page.d.ts"
3
4
  }
@@ -1,3 +1,4 @@
1
1
  {
2
- "module": "../../../fesm2022/koalarx-ui-core-components-side-window.mjs"
2
+ "module": "../../../fesm2022/koalarx-ui-core-components-side-window.mjs",
3
+ "typings": "../../../types/koalarx-ui-core-components-side-window.d.ts"
3
4
  }
@@ -1,3 +1,4 @@
1
1
  {
2
- "module": "../../../fesm2022/koalarx-ui-core-components-snackbar.mjs"
2
+ "module": "../../../fesm2022/koalarx-ui-core-components-snackbar.mjs",
3
+ "typings": "../../../types/koalarx-ui-core-components-snackbar.d.ts"
3
4
  }
@@ -1,3 +1,4 @@
1
1
  {
2
- "module": "../../fesm2022/koalarx-ui-core-config.mjs"
2
+ "module": "../../fesm2022/koalarx-ui-core-config.mjs",
3
+ "typings": "../../types/koalarx-ui-core-config.d.ts"
3
4
  }
@@ -1,3 +1,4 @@
1
1
  {
2
- "module": "../../fesm2022/koalarx-ui-core-guards.mjs"
2
+ "module": "../../fesm2022/koalarx-ui-core-guards.mjs",
3
+ "typings": "../../types/koalarx-ui-core-guards.d.ts"
3
4
  }
@@ -1,3 +1,4 @@
1
1
  {
2
- "module": "../../fesm2022/koalarx-ui-core-middlewares.mjs"
2
+ "module": "../../fesm2022/koalarx-ui-core-middlewares.mjs",
3
+ "typings": "../../types/koalarx-ui-core-middlewares.d.ts"
3
4
  }
@@ -1,3 +1,4 @@
1
1
  {
2
- "module": "../../fesm2022/koalarx-ui-core-models.mjs"
2
+ "module": "../../fesm2022/koalarx-ui-core-models.mjs",
3
+ "typings": "../../types/koalarx-ui-core-models.d.ts"
3
4
  }
@@ -1,3 +1,4 @@
1
1
  {
2
- "module": "../../fesm2022/koalarx-ui-core-translations.mjs"
2
+ "module": "../../fesm2022/koalarx-ui-core-translations.mjs",
3
+ "typings": "../../types/koalarx-ui-core-translations.d.ts"
3
4
  }
@@ -110,7 +110,7 @@ class ListBase {
110
110
  currentPageSize: this.limitPage(),
111
111
  isLoading: this.resourceRef.isLoading(),
112
112
  hasError: !!this.resourceRef.error(),
113
- }));
113
+ }), ...(ngDevMode ? [{ debugName: "datatableConfig" }] : []));
114
114
  queryParams = computed(() => ({
115
115
  page: this.page(),
116
116
  limit: this.limitPage(),
@@ -181,12 +181,12 @@ class ListBase {
181
181
  loadMore() {
182
182
  this.page.update((current) => current + 1);
183
183
  }
184
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: ListBase, deps: [{ token: i0.Type }, { token: i0.Type }], target: i0.ɵɵFactoryTarget.Directive });
185
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.1.6", type: ListBase, isStandalone: true, inputs: { paginationType: { classPropertyName: "paginationType", publicName: "paginationType", isSignal: true, isRequired: false, transformFunction: null }, reload: { classPropertyName: "reload", publicName: "reload", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { paginationType: "paginationTypeChange" }, ngImport: i0 });
184
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: ListBase, deps: [{ token: i0.Type }, { token: i0.Type }], target: i0.ɵɵFactoryTarget.Directive });
185
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.0.6", type: ListBase, isStandalone: true, inputs: { paginationType: { classPropertyName: "paginationType", publicName: "paginationType", isSignal: true, isRequired: false, transformFunction: null }, reload: { classPropertyName: "reload", publicName: "reload", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { paginationType: "paginationTypeChange" }, ngImport: i0 });
186
186
  }
187
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: ListBase, decorators: [{
187
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: ListBase, decorators: [{
188
188
  type: Directive
189
- }], ctorParameters: () => [{ type: i0.Type }, { type: i0.Type }] });
189
+ }], ctorParameters: () => [{ type: i0.Type }, { type: i0.Type }], propDecorators: { paginationType: [{ type: i0.Input, args: [{ isSignal: true, alias: "paginationType", required: false }] }, { type: i0.Output, args: ["paginationTypeChange"] }], reload: [{ type: i0.Input, args: [{ isSignal: true, alias: "reload", required: false }] }] } });
190
190
 
191
191
  class PageBase {
192
192
  reload = signal(false, ...(ngDevMode ? [{ debugName: "reload" }] : []));
@@ -1 +1 @@
1
- {"version":3,"file":"koalarx-ui-core-base.mjs","sources":["../../projects/koala-ui/core/base/http-base.ts","../../projects/koala-ui/core/base/list-base.ts","../../projects/koala-ui/core/base/page-base.ts","../../projects/koala-ui/core/base/koalarx-ui-core-base.ts"],"sourcesContent":["import { HttpClient, httpResource } from '@angular/common/http';\nimport { inject, Injector, Signal } from '@angular/core';\nimport { rxResource } from '@angular/core/rxjs-interop';\nimport { AppConfig } from '@koalarx/ui/core/config';\nimport { GetManyResult } from '@koalarx/ui/core/models';\nimport { SelectOption } from '@koalarx/ui/shared/components/input-field/select';\nimport { first } from 'rxjs/internal/operators/first';\nimport { map } from 'rxjs/internal/operators/map';\n\nexport interface HttpResourceRequestOptions<EntityType> {\n debounceTime?: number;\n endpoint?: string;\n mapOption?: (\n item: any\n ) => Omit<SelectOption<EntityType> | GetManyResult<EntityType>, 'data'>;\n}\n\nexport abstract class HttpBase<\n EntityType = any,\n PayloadType = any,\n QueryType = any\n> {\n private readonly appConfig = inject(AppConfig);\n protected readonly injector = inject(Injector);\n protected readonly http = inject(HttpClient);\n protected readonly url: string;\n protected readonly hostApi: string;\n\n constructor(protected readonly resource: string, hostApi?: string) {\n this.hostApi = hostApi || this.appConfig.hostApi || '';\n this.url = `${this.hostApi}/${this.resource}`;\n }\n\n post<T>(data: PayloadType, endpoint = '') {\n return this.http.post<T>(`${this.url}${endpoint}`, data).pipe(first());\n }\n\n put<T>(id: string, data: PayloadType) {\n return this.http.put<T>(`${this.url}/${id}`, data).pipe(first());\n }\n\n patch<T>(id: string, data: any) {\n return this.http.patch<T>(`${this.url}/${id}`, data).pipe(first());\n }\n\n delete<T>(id: string) {\n return this.http.delete<T>(`${this.url}/${id}`).pipe(first());\n }\n\n getMany<TResponse = EntityType>(query: QueryType, endpoint = '') {\n return this.http.get<GetManyResult<TResponse>>(`${this.url}${endpoint}`, {\n params: query as any,\n });\n }\n\n getById<TResponse = EntityType>(id: string | null) {\n return this.http.get<TResponse>(`${this.url}/${id}`);\n }\n\n getManyWithResource<TResponse = EntityType>(\n query: Signal<QueryType>,\n {\n endpoint = '',\n mapOption,\n }: Omit<HttpResourceRequestOptions<TResponse>, 'debounceTime'> = {}\n ) {\n return httpResource<GetManyResult<TResponse>>(\n () => {\n return {\n url: `${this.url}${endpoint}`,\n params: query() as any,\n };\n },\n {\n parse: mapOption as (data: any) => any,\n }\n );\n }\n\n getByIdWithResource<TResponse = EntityType>(\n id: Signal<string | null>,\n endpoint = ':id',\n mapResponse?: (response: TResponse) => TResponse\n ) {\n return httpResource<TResponse>(\n () => {\n const resourceId = id();\n\n if (!resourceId) {\n return undefined;\n }\n\n return `${this.url}/${endpoint.replace(':id', resourceId)}`;\n },\n {\n parse: mapResponse as (resume: any) => TResponse,\n }\n );\n }\n\n getByOneWithResource<TResponse = EntityType>(\n endpoint: Signal<string | null>,\n params?: Signal<any>,\n mapResponse?: (response: TResponse) => TResponse\n ) {\n return httpResource<TResponse>(\n () => {\n const resourceUrl = endpoint();\n\n if (!resourceUrl) {\n return undefined;\n }\n\n return {\n url: `${this.url}/${resourceUrl}`,\n params: params ? params() : undefined,\n };\n },\n {\n parse: mapResponse as (resume: any) => TResponse,\n }\n );\n }\n\n getManyForSelector<TResponse = EntityType>(\n query: QueryType | Signal<QueryType>,\n mapOption: (item: TResponse) => Omit<SelectOption<TResponse>, 'data'>\n ) {\n return rxResource({\n defaultValue: [],\n params: () => (query instanceof Function ? query() : query),\n stream: (data) =>\n this.getMany<TResponse>(data.params).pipe(\n map((response) =>\n response.items.map((item) => ({\n ...mapOption(item),\n data: item,\n }))\n )\n ),\n });\n }\n}\n","import { HttpResourceRef } from '@angular/common/http';\nimport {\n computed,\n Directive,\n effect,\n inject,\n input,\n linkedSignal,\n model,\n signal,\n Type,\n} from '@angular/core';\nimport {\n GetManyResult,\n QueryPagination,\n SortFilterType,\n} from '@koalarx/ui/core/models';\nimport { DatatableConfig } from '@koalarx/ui/shared/components/datatable';\nimport { HttpBase } from './http-base';\n\ntype PaginationType = 'paginator' | 'loadMore';\n\n@Directive()\nexport abstract class ListBase<\n QueryType extends QueryPagination,\n TEntity = any\n> {\n private reloading = false;\n private currentPaginationType: PaginationType = 'paginator';\n protected readonly resourceRef: HttpResourceRef<\n GetManyResult<TEntity> | undefined\n >;\n protected readonly limitPage = signal(30);\n protected readonly page = signal(1);\n protected readonly filter = signal<QueryType>({} as any);\n protected readonly resource: HttpBase<TEntity, any, QueryType>;\n protected readonly totalItemsOnPage = signal(0);\n protected readonly totalItems = signal(0);\n protected readonly list = signal<TEntity[]>([]);\n protected readonly sortFilter = signal<SortFilterType | null>(null);\n protected readonly paginationType = model<PaginationType>('paginator');\n protected readonly withPagination = computed<boolean>(() => {\n this.currentPaginationType = this.paginationType();\n return this.currentPaginationType === 'paginator';\n });\n protected readonly datatableConfig = linkedSignal(\n () =>\n ({\n currentPage: this.page(),\n totalItems: this.totalItems(),\n totalItemsOnPage: this.totalItemsOnPage(),\n currentPageSize: this.limitPage(),\n isLoading: this.resourceRef.isLoading(),\n hasError: !!this.resourceRef.error(),\n } as DatatableConfig)\n );\n\n queryParams = computed<QueryType>(\n () =>\n ({\n page: this.page(),\n limit: this.limitPage(),\n ...(this.sortFilter() ?? {}),\n ...this.filter(),\n } as QueryType)\n );\n reload = input<boolean>(false);\n\n constructor(\n // eslint-disable-next-line @angular-eslint/prefer-inject\n resource: Type<HttpBase<TEntity, any, QueryType>>,\n // eslint-disable-next-line @angular-eslint/prefer-inject\n protected readonly componentFilter?: Type<any>\n ) {\n this.resource = inject(resource);\n this.resourceRef = this.resource.getManyWithResource(this.queryParams);\n\n effect(() => {\n this.filter();\n this.page.set(1);\n });\n\n effect(() => {\n const queryParams = this.queryParams();\n\n if (queryParams.page === 1 && !this.reloading) {\n this.reloading = true;\n return;\n }\n });\n\n effect(() => {\n const withPagination = this.currentPaginationType === 'paginator';\n const result = this.resourceRef.value();\n\n if (!withPagination && !this.reloading) {\n if (result) {\n this.list.update((current) => [...current, ...result.items]);\n this.totalItemsOnPage.update(\n (current) => current + result.items.length\n );\n this.totalItems.set(result.count);\n }\n this.reloading = false;\n return;\n }\n\n if (!result) {\n this.list.set([]);\n this.totalItemsOnPage.set(0);\n this.totalItems.set(0);\n this.reloading = false;\n return;\n }\n\n this.list.set(result.items);\n this.totalItemsOnPage.set(result.items.length);\n this.totalItems.set(result.count);\n this.reloading = false;\n });\n\n effect(() => {\n if (this.reload()) {\n this.reloadList();\n }\n });\n }\n\n protected sort(sortFilter: SortFilterType) {\n this.sortFilter.set(sortFilter);\n }\n\n protected reloadList() {\n this.reloading = true;\n this.list.set([]);\n this.totalItemsOnPage.set(0);\n this.totalItems.set(0);\n this.page.set(1);\n this.resourceRef.reload();\n }\n\n protected loadMore() {\n this.page.update((current) => current + 1);\n }\n}\n","import { signal } from '@angular/core';\n\nexport abstract class PageBase {\n protected reload = signal(false);\n\n protected reloadList() {\n this.reload.set(true);\n setTimeout(() => this.reload.set(false));\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;MAiBsB,QAAQ,CAAA;AAWG,IAAA,QAAA;AANd,IAAA,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC;AAC3B,IAAA,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;AAC3B,IAAA,IAAI,GAAG,MAAM,CAAC,UAAU,CAAC;AACzB,IAAA,GAAG;AACH,IAAA,OAAO;IAE1B,WAAA,CAA+B,QAAgB,EAAE,OAAgB,EAAA;QAAlC,IAAA,CAAA,QAAQ,GAAR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,EAAA,UAAA,EAAA,QAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,OAAA,EAAA,EAAA,cAAA,EAAA,sBAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;2FAAR,QAAQ,EAAA,UAAA,EAAA,CAAA;kBAD7B;;;MCpBqB,QAAQ,CAAA;AAClB,IAAA,MAAM,GAAG,MAAM,CAAC,KAAK,kDAAC;IAEtB,UAAU,GAAA;AAClB,QAAA,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC;AACrB,QAAA,UAAU,CAAC,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;;AAE3C;;ACTD;;AAEG;;;;"}
1
+ {"version":3,"file":"koalarx-ui-core-base.mjs","sources":["../../projects/koala-ui/core/base/http-base.ts","../../projects/koala-ui/core/base/list-base.ts","../../projects/koala-ui/core/base/page-base.ts","../../projects/koala-ui/core/base/koalarx-ui-core-base.ts"],"sourcesContent":["import { HttpClient, httpResource } from '@angular/common/http';\nimport { inject, Injector, Signal } from '@angular/core';\nimport { rxResource } from '@angular/core/rxjs-interop';\nimport { AppConfig } from '@koalarx/ui/core/config';\nimport { GetManyResult } from '@koalarx/ui/core/models';\nimport { SelectOption } from '@koalarx/ui/shared/components/input-field/select';\nimport { first } from 'rxjs/internal/operators/first';\nimport { map } from 'rxjs/internal/operators/map';\n\nexport interface HttpResourceRequestOptions<EntityType> {\n debounceTime?: number;\n endpoint?: string;\n mapOption?: (\n item: any\n ) => Omit<SelectOption<EntityType> | GetManyResult<EntityType>, 'data'>;\n}\n\nexport abstract class HttpBase<\n EntityType = any,\n PayloadType = any,\n QueryType = any\n> {\n private readonly appConfig = inject(AppConfig);\n protected readonly injector = inject(Injector);\n protected readonly http = inject(HttpClient);\n protected readonly url: string;\n protected readonly hostApi: string;\n\n constructor(protected readonly resource: string, hostApi?: string) {\n this.hostApi = hostApi || this.appConfig.hostApi || '';\n this.url = `${this.hostApi}/${this.resource}`;\n }\n\n post<T>(data: PayloadType, endpoint = '') {\n return this.http.post<T>(`${this.url}${endpoint}`, data).pipe(first());\n }\n\n put<T>(id: string, data: PayloadType) {\n return this.http.put<T>(`${this.url}/${id}`, data).pipe(first());\n }\n\n patch<T>(id: string, data: any) {\n return this.http.patch<T>(`${this.url}/${id}`, data).pipe(first());\n }\n\n delete<T>(id: string) {\n return this.http.delete<T>(`${this.url}/${id}`).pipe(first());\n }\n\n getMany<TResponse = EntityType>(query: QueryType, endpoint = '') {\n return this.http.get<GetManyResult<TResponse>>(`${this.url}${endpoint}`, {\n params: query as any,\n });\n }\n\n getById<TResponse = EntityType>(id: string | null) {\n return this.http.get<TResponse>(`${this.url}/${id}`);\n }\n\n getManyWithResource<TResponse = EntityType>(\n query: Signal<QueryType>,\n {\n endpoint = '',\n mapOption,\n }: Omit<HttpResourceRequestOptions<TResponse>, 'debounceTime'> = {}\n ) {\n return httpResource<GetManyResult<TResponse>>(\n () => {\n return {\n url: `${this.url}${endpoint}`,\n params: query() as any,\n };\n },\n {\n parse: mapOption as (data: any) => any,\n }\n );\n }\n\n getByIdWithResource<TResponse = EntityType>(\n id: Signal<string | null>,\n endpoint = ':id',\n mapResponse?: (response: TResponse) => TResponse\n ) {\n return httpResource<TResponse>(\n () => {\n const resourceId = id();\n\n if (!resourceId) {\n return undefined;\n }\n\n return `${this.url}/${endpoint.replace(':id', resourceId)}`;\n },\n {\n parse: mapResponse as (resume: any) => TResponse,\n }\n );\n }\n\n getByOneWithResource<TResponse = EntityType>(\n endpoint: Signal<string | null>,\n params?: Signal<any>,\n mapResponse?: (response: TResponse) => TResponse\n ) {\n return httpResource<TResponse>(\n () => {\n const resourceUrl = endpoint();\n\n if (!resourceUrl) {\n return undefined;\n }\n\n return {\n url: `${this.url}/${resourceUrl}`,\n params: params ? params() : undefined,\n };\n },\n {\n parse: mapResponse as (resume: any) => TResponse,\n }\n );\n }\n\n getManyForSelector<TResponse = EntityType>(\n query: QueryType | Signal<QueryType>,\n mapOption: (item: TResponse) => Omit<SelectOption<TResponse>, 'data'>\n ) {\n return rxResource({\n defaultValue: [],\n params: () => (query instanceof Function ? query() : query),\n stream: (data) =>\n this.getMany<TResponse>(data.params).pipe(\n map((response) =>\n response.items.map((item) => ({\n ...mapOption(item),\n data: item,\n }))\n )\n ),\n });\n }\n}\n","import { HttpResourceRef } from '@angular/common/http';\nimport {\n computed,\n Directive,\n effect,\n inject,\n input,\n linkedSignal,\n model,\n signal,\n Type,\n} from '@angular/core';\nimport {\n GetManyResult,\n QueryPagination,\n SortFilterType,\n} from '@koalarx/ui/core/models';\nimport { DatatableConfig } from '@koalarx/ui/shared/components/datatable';\nimport { HttpBase } from './http-base';\n\ntype PaginationType = 'paginator' | 'loadMore';\n\n@Directive()\nexport abstract class ListBase<\n QueryType extends QueryPagination,\n TEntity = any\n> {\n private reloading = false;\n private currentPaginationType: PaginationType = 'paginator';\n protected readonly resourceRef: HttpResourceRef<\n GetManyResult<TEntity> | undefined\n >;\n protected readonly limitPage = signal(30);\n protected readonly page = signal(1);\n protected readonly filter = signal<QueryType>({} as any);\n protected readonly resource: HttpBase<TEntity, any, QueryType>;\n protected readonly totalItemsOnPage = signal(0);\n protected readonly totalItems = signal(0);\n protected readonly list = signal<TEntity[]>([]);\n protected readonly sortFilter = signal<SortFilterType | null>(null);\n protected readonly paginationType = model<PaginationType>('paginator');\n protected readonly withPagination = computed<boolean>(() => {\n this.currentPaginationType = this.paginationType();\n return this.currentPaginationType === 'paginator';\n });\n protected readonly datatableConfig = linkedSignal(\n () =>\n ({\n currentPage: this.page(),\n totalItems: this.totalItems(),\n totalItemsOnPage: this.totalItemsOnPage(),\n currentPageSize: this.limitPage(),\n isLoading: this.resourceRef.isLoading(),\n hasError: !!this.resourceRef.error(),\n } as DatatableConfig)\n );\n\n queryParams = computed<QueryType>(\n () =>\n ({\n page: this.page(),\n limit: this.limitPage(),\n ...(this.sortFilter() ?? {}),\n ...this.filter(),\n } as QueryType)\n );\n reload = input<boolean>(false);\n\n constructor(\n // eslint-disable-next-line @angular-eslint/prefer-inject\n resource: Type<HttpBase<TEntity, any, QueryType>>,\n // eslint-disable-next-line @angular-eslint/prefer-inject\n protected readonly componentFilter?: Type<any>\n ) {\n this.resource = inject(resource);\n this.resourceRef = this.resource.getManyWithResource(this.queryParams);\n\n effect(() => {\n this.filter();\n this.page.set(1);\n });\n\n effect(() => {\n const queryParams = this.queryParams();\n\n if (queryParams.page === 1 && !this.reloading) {\n this.reloading = true;\n return;\n }\n });\n\n effect(() => {\n const withPagination = this.currentPaginationType === 'paginator';\n const result = this.resourceRef.value();\n\n if (!withPagination && !this.reloading) {\n if (result) {\n this.list.update((current) => [...current, ...result.items]);\n this.totalItemsOnPage.update(\n (current) => current + result.items.length\n );\n this.totalItems.set(result.count);\n }\n this.reloading = false;\n return;\n }\n\n if (!result) {\n this.list.set([]);\n this.totalItemsOnPage.set(0);\n this.totalItems.set(0);\n this.reloading = false;\n return;\n }\n\n this.list.set(result.items);\n this.totalItemsOnPage.set(result.items.length);\n this.totalItems.set(result.count);\n this.reloading = false;\n });\n\n effect(() => {\n if (this.reload()) {\n this.reloadList();\n }\n });\n }\n\n protected sort(sortFilter: SortFilterType) {\n this.sortFilter.set(sortFilter);\n }\n\n protected reloadList() {\n this.reloading = true;\n this.list.set([]);\n this.totalItemsOnPage.set(0);\n this.totalItems.set(0);\n this.page.set(1);\n this.resourceRef.reload();\n }\n\n protected loadMore() {\n this.page.update((current) => current + 1);\n }\n}\n","import { signal } from '@angular/core';\n\nexport abstract class PageBase {\n protected reload = signal(false);\n\n protected reloadList() {\n this.reload.set(true);\n setTimeout(() => this.reload.set(false));\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;MAiBsB,QAAQ,CAAA;AAWG,IAAA,QAAA;AANd,IAAA,SAAS,GAAG,MAAM,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EAAA,YAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,cAAA,EAAA,EAAA,iBAAA,EAAA,gBAAA,EAAA,UAAA,EAAA,gBAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,MAAA,EAAA,EAAA,iBAAA,EAAA,QAAA,EAAA,UAAA,EAAA,QAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,OAAA,EAAA,EAAA,cAAA,EAAA,sBAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;2FAAR,QAAQ,EAAA,UAAA,EAAA,CAAA;kBAD7B;;;MCpBqB,QAAQ,CAAA;AAClB,IAAA,MAAM,GAAG,MAAM,CAAC,KAAK,kDAAC;IAEtB,UAAU,GAAA;AAClB,QAAA,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC;AACrB,QAAA,UAAU,CAAC,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;;AAE3C;;ACTD;;AAEG;;;;"}
@@ -1,13 +1,13 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Component } from '@angular/core';
2
+ import { ChangeDetectionStrategy, Component } from '@angular/core';
3
3
 
4
4
  class DialogContainer {
5
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: DialogContainer, deps: [], target: i0.ɵɵFactoryTarget.Component });
6
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.1.6", type: DialogContainer, isStandalone: true, selector: "kl-dialog-container", ngImport: i0, template: "<div class=\"dialog-container\"></div>\n" });
5
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: DialogContainer, deps: [], target: i0.ɵɵFactoryTarget.Component });
6
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.0.6", type: DialogContainer, isStandalone: true, selector: "kl-dialog-container", ngImport: i0, template: "<div class=\"dialog-container\"></div>\n", changeDetection: i0.ChangeDetectionStrategy.OnPush });
7
7
  }
8
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: DialogContainer, decorators: [{
8
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: DialogContainer, decorators: [{
9
9
  type: Component,
10
- args: [{ selector: 'kl-dialog-container', template: "<div class=\"dialog-container\"></div>\n" }]
10
+ args: [{ selector: 'kl-dialog-container', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"dialog-container\"></div>\n" }]
11
11
  }] });
12
12
 
13
13
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"koalarx-ui-core-components-dialog.mjs","sources":["../../projects/koala-ui/core/components/dialog/dialog-container.ts","../../projects/koala-ui/core/components/dialog/dialog-container.html","../../projects/koala-ui/core/components/dialog/koalarx-ui-core-components-dialog.ts"],"sourcesContent":["import { Component } from '@angular/core';\n\n@Component({\n selector: 'kl-dialog-container',\n templateUrl: './dialog-container.html',\n})\nexport class DialogContainer {}\n","<div class=\"dialog-container\"></div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;MAMa,eAAe,CAAA;uGAAf,eAAe,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAf,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,eAAe,+ECN5B,0CACA,EAAA,CAAA;;2FDKa,eAAe,EAAA,UAAA,EAAA,CAAA;kBAJ3B,SAAS;+BACE,qBAAqB,EAAA,QAAA,EAAA,0CAAA,EAAA;;;AEHjC;;AAEG;;;;"}
1
+ {"version":3,"file":"koalarx-ui-core-components-dialog.mjs","sources":["../../projects/koala-ui/core/components/dialog/dialog-container.ts","../../projects/koala-ui/core/components/dialog/dialog-container.html","../../projects/koala-ui/core/components/dialog/koalarx-ui-core-components-dialog.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component } from '@angular/core';\n\n@Component({\n selector: 'kl-dialog-container',\n templateUrl: './dialog-container.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class DialogContainer {}\n","<div class=\"dialog-container\"></div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;MAOa,eAAe,CAAA;uGAAf,eAAe,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAf,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,eAAe,+ECP5B,0CACA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;2FDMa,eAAe,EAAA,UAAA,EAAA,CAAA;kBAL3B,SAAS;+BACE,qBAAqB,EAAA,eAAA,EAEd,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,0CAAA,EAAA;;;AELjD;;AAEG;;;;"}
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { input, Component } from '@angular/core';
2
+ import { input, ChangeDetectionStrategy, Component } from '@angular/core';
3
3
  import { DialogContainer } from '@koalarx/ui/core/components/dialog';
4
4
  import { LoaderPageContent } from '@koalarx/ui/core/components/loader-page';
5
5
  import { SideWindowContainer } from '@koalarx/ui/core/components/side-window';
@@ -27,19 +27,19 @@ class KlRoot {
27
27
  };
28
28
  }
29
29
  }
30
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: KlRoot, deps: [], target: i0.ɵɵFactoryTarget.Component });
31
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.1.6", type: KlRoot, isStandalone: true, selector: "kl-root", inputs: { routerLoaderColor: { classPropertyName: "routerLoaderColor", publicName: "routerLoaderColor", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<ngx-loading-bar\n [color]=\"routerLoaderColor()\"\n height=\"4px\"\n [includeSpinner]=\"false\"\n/>\n\n<main class=\"overflow-x-hidden\">\n <kl-loader-page-content />\n <kl-snackbar-container />\n <kl-dialog-container />\n <kl-side-window-container />\n <div class=\"kl-generic-component-container\"></div>\n\n <ng-content />\n</main>\n", dependencies: [{ kind: "component", type: DialogContainer, selector: "kl-dialog-container" }, { kind: "ngmodule", type: LoadingBarRouterModule }, { kind: "component", type: i1.LoadingBarComponent, selector: "ngx-loading-bar" }, { kind: "component", type: SideWindowContainer, selector: "kl-side-window-container" }, { kind: "component", type: SnackbarContainer, selector: "kl-snackbar-container" }, { kind: "component", type: LoaderPageContent, selector: "kl-loader-page-content" }] });
30
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: KlRoot, deps: [], target: i0.ɵɵFactoryTarget.Component });
31
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.0.6", type: KlRoot, isStandalone: true, selector: "kl-root", inputs: { routerLoaderColor: { classPropertyName: "routerLoaderColor", publicName: "routerLoaderColor", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<ngx-loading-bar\n [color]=\"routerLoaderColor()\"\n height=\"4px\"\n [includeSpinner]=\"false\"\n/>\n\n<main class=\"overflow-x-hidden\">\n <kl-loader-page-content />\n <kl-snackbar-container />\n <kl-dialog-container />\n <kl-side-window-container />\n <div class=\"kl-generic-component-container\"></div>\n\n <ng-content />\n</main>\n", dependencies: [{ kind: "component", type: DialogContainer, selector: "kl-dialog-container" }, { kind: "ngmodule", type: LoadingBarRouterModule }, { kind: "component", type: i1.LoadingBarComponent, selector: "ngx-loading-bar" }, { kind: "component", type: SideWindowContainer, selector: "kl-side-window-container" }, { kind: "component", type: SnackbarContainer, selector: "kl-snackbar-container" }, { kind: "component", type: LoaderPageContent, selector: "kl-loader-page-content" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
32
32
  }
33
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: KlRoot, decorators: [{
33
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: KlRoot, decorators: [{
34
34
  type: Component,
35
- args: [{ selector: 'kl-root', imports: [
35
+ args: [{ selector: 'kl-root', changeDetection: ChangeDetectionStrategy.OnPush, imports: [
36
36
  DialogContainer,
37
37
  LoadingBarRouterModule,
38
38
  SideWindowContainer,
39
39
  SnackbarContainer,
40
40
  LoaderPageContent,
41
41
  ], template: "<ngx-loading-bar\n [color]=\"routerLoaderColor()\"\n height=\"4px\"\n [includeSpinner]=\"false\"\n/>\n\n<main class=\"overflow-x-hidden\">\n <kl-loader-page-content />\n <kl-snackbar-container />\n <kl-dialog-container />\n <kl-side-window-container />\n <div class=\"kl-generic-component-container\"></div>\n\n <ng-content />\n</main>\n" }]
42
- }] });
42
+ }], propDecorators: { routerLoaderColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "routerLoaderColor", required: false }] }] } });
43
43
 
44
44
  /**
45
45
  * Generated bundle index. Do not edit.
@@ -1 +1 @@
1
- {"version":3,"file":"koalarx-ui-core-components-kl-root.mjs","sources":["../../projects/koala-ui/core/components/kl-root/kl-root.ts","../../projects/koala-ui/core/components/kl-root/kl-root.html","../../projects/koala-ui/core/components/kl-root/koalarx-ui-core-components-kl-root.ts"],"sourcesContent":["import { Component, input, OnInit } from '@angular/core';\nimport { DialogContainer } from '@koalarx/ui/core/components/dialog';\nimport { LoaderPageContent } from '@koalarx/ui/core/components/loader-page';\nimport { SideWindowContainer } from '@koalarx/ui/core/components/side-window';\nimport { SnackbarContainer } from '@koalarx/ui/core/components/snackbar';\nimport { CURRENT_THEME } from '@koalarx/ui/core/config';\nimport { ThemeName } from '@koalarx/ui/theme';\nimport { LoadingBarRouterModule } from '@ngx-loading-bar/router';\n\n@Component({\n selector: 'kl-root',\n templateUrl: './kl-root.html',\n imports: [\n DialogContainer,\n LoadingBarRouterModule,\n SideWindowContainer,\n SnackbarContainer,\n LoaderPageContent,\n ],\n})\nexport class KlRoot implements OnInit {\n routerLoaderColor = input<string>('#6A1B9A');\n\n ngOnInit(): void {\n if (document.querySelector('html')?.getAttribute('data-theme') === null) {\n document.querySelector('html')?.setAttribute('data-theme', 'light');\n }\n\n const htmlElement = document.querySelector('html');\n\n if (htmlElement) {\n htmlElement.onchange = () => {\n setTimeout(() => {\n const theme = htmlElement.getAttribute(\n 'data-theme'\n ) as ThemeName | null;\n\n if (theme === CURRENT_THEME()) {\n return;\n }\n\n CURRENT_THEME.set(theme);\n });\n };\n }\n }\n}\n","<ngx-loading-bar\n [color]=\"routerLoaderColor()\"\n height=\"4px\"\n [includeSpinner]=\"false\"\n/>\n\n<main class=\"overflow-x-hidden\">\n <kl-loader-page-content />\n <kl-snackbar-container />\n <kl-dialog-container />\n <kl-side-window-container />\n <div class=\"kl-generic-component-container\"></div>\n\n <ng-content />\n</main>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;MAoBa,MAAM,CAAA;AACjB,IAAA,iBAAiB,GAAG,KAAK,CAAS,SAAS,6DAAC;IAE5C,QAAQ,GAAA;AACN,QAAA,IAAI,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC,EAAE,YAAY,CAAC,YAAY,CAAC,KAAK,IAAI,EAAE;AACvE,YAAA,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC,EAAE,YAAY,CAAC,YAAY,EAAE,O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AAA,EACjB,iBAAiB,EAAA,QAAA,EAAA,wBAAA,EAAA,CAAA,EAAA,CAAA;;2FAGR,MAAM,EAAA,UAAA,EAAA,CAAA;kBAXlB,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,SAAS,EAAA,OAAA,EAEV;wBACP,eAAe;wBACf,sBAAsB;wBACtB,mBAAmB;wBACnB,iBAAiB;wBACjB,iBAAiB;AAClB,qBAAA,EAAA,QAAA,EAAA,4VAAA,EAAA;;;AElBH;;AAEG;;;;"}
1
+ {"version":3,"file":"koalarx-ui-core-components-kl-root.mjs","sources":["../../projects/koala-ui/core/components/kl-root/kl-root.ts","../../projects/koala-ui/core/components/kl-root/kl-root.html","../../projects/koala-ui/core/components/kl-root/koalarx-ui-core-components-kl-root.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n input,\n OnInit,\n} from '@angular/core';\nimport { DialogContainer } from '@koalarx/ui/core/components/dialog';\nimport { LoaderPageContent } from '@koalarx/ui/core/components/loader-page';\nimport { SideWindowContainer } from '@koalarx/ui/core/components/side-window';\nimport { SnackbarContainer } from '@koalarx/ui/core/components/snackbar';\nimport { CURRENT_THEME } from '@koalarx/ui/core/config';\nimport { ThemeName } from '@koalarx/ui/theme';\nimport { LoadingBarRouterModule } from '@ngx-loading-bar/router';\n\n@Component({\n selector: 'kl-root',\n templateUrl: './kl-root.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [\n DialogContainer,\n LoadingBarRouterModule,\n SideWindowContainer,\n SnackbarContainer,\n LoaderPageContent,\n ],\n})\nexport class KlRoot implements OnInit {\n routerLoaderColor = input<string>('#6A1B9A');\n\n ngOnInit(): void {\n if (document.querySelector('html')?.getAttribute('data-theme') === null) {\n document.querySelector('html')?.setAttribute('data-theme', 'light');\n }\n\n const htmlElement = document.querySelector('html');\n\n if (htmlElement) {\n htmlElement.onchange = () => {\n setTimeout(() => {\n const theme = htmlElement.getAttribute(\n 'data-theme'\n ) as ThemeName | null;\n\n if (theme === CURRENT_THEME()) {\n return;\n }\n\n CURRENT_THEME.set(theme);\n });\n };\n }\n }\n}\n","<ngx-loading-bar\n [color]=\"routerLoaderColor()\"\n height=\"4px\"\n [includeSpinner]=\"false\"\n/>\n\n<main class=\"overflow-x-hidden\">\n <kl-loader-page-content />\n <kl-snackbar-container />\n <kl-dialog-container />\n <kl-side-window-container />\n <div class=\"kl-generic-component-container\"></div>\n\n <ng-content />\n</main>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;MA0Ba,MAAM,CAAA;AACjB,IAAA,iBAAiB,GAAG,KAAK,CAAS,SAAS,6DAAC;IAE5C,QAAQ,GAAA;AACN,QAAA,IAAI,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC,EAAE,YAAY,CAAC,YAAY,CAAC,KAAK,IAAI,EAAE;AACvE,YAAA,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC,EAAE,YAAY,CAAC,YAAY,EAAE,OAAO,CAAC;;QAGrE,MAAM,WAAW,GAAG,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC;QAElD,IAAI,WAAW,EAAE;AACf,YAAA,WAAW,CAAC,QAAQ,GAAG,MAAK;gBAC1B,UAAU,CAAC,MAAK;oBACd,MAAM,KAAK,GAAG,WAAW,CAAC,YAAY,CACpC,YAAY,CACO;AAErB,oBAAA,IAAI,KAAK,KAAK,aAAa,EAAE,EAAE;wBAC7B;;AAGF,oBAAA,aAAa,CAAC,GAAG,CAAC,KAAK,CAAC;AAC1B,iBAAC,CAAC;AACJ,aAAC;;;uGAvBM,MAAM,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAAN,MAAM,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,SAAA,EAAA,MAAA,EAAA,EAAA,iBAAA,EAAA,EAAA,iBAAA,EAAA,mBAAA,EAAA,UAAA,EAAA,mBAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EC1BnB,4VAeA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EDII,eAAe,EAAA,QAAA,EAAA,qBAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EACf,sBAAsB,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,mBAAA,EAAA,QAAA,EAAA,iBAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EACtB,mBAAmB,EAAA,QAAA,EAAA,0BAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EACnB,iBAAiB,EAAA,QAAA,EAAA,uBAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EACjB,iBAAiB,EAAA,QAAA,EAAA,wBAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;2FAGR,MAAM,EAAA,UAAA,EAAA,CAAA;kBAZlB,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,SAAS,EAAA,eAAA,EAEF,uBAAuB,CAAC,MAAM,EAAA,OAAA,EACtC;wBACP,eAAe;wBACf,sBAAsB;wBACtB,mBAAmB;wBACnB,iBAAiB;wBACjB,iBAAiB;AAClB,qBAAA,EAAA,QAAA,EAAA,4VAAA,EAAA;;;AExBH;;AAEG;;;;"}
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { signal, Injectable, inject, Component } from '@angular/core';
2
+ import { signal, Injectable, inject, ChangeDetectionStrategy, Component } from '@angular/core';
3
3
  import { Loader } from '@koalarx/ui/core/components/loader';
4
4
 
5
5
  class LoaderPage {
@@ -13,22 +13,22 @@ class LoaderPage {
13
13
  dismiss() {
14
14
  this._loading.set(false);
15
15
  }
16
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: LoaderPage, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
17
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: LoaderPage, providedIn: 'root' });
16
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: LoaderPage, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
17
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: LoaderPage, providedIn: 'root' });
18
18
  }
19
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: LoaderPage, decorators: [{
19
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: LoaderPage, decorators: [{
20
20
  type: Injectable,
21
21
  args: [{ providedIn: 'root' }]
22
22
  }] });
23
23
 
24
24
  class LoaderPageContent {
25
25
  loaderPage = inject(LoaderPage);
26
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: LoaderPageContent, deps: [], target: i0.ɵɵFactoryTarget.Component });
27
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.1.6", type: LoaderPageContent, isStandalone: true, selector: "kl-loader-page-content", ngImport: i0, template: "<div class=\"fixed bg-base-100/40 flex w-full h-full items-center justify-center z-50\"\n [class]=\"{ 'hidden': !loaderPage.isLoading() }\">\n <kl-loader size=\"extraLarge\" />\n</div>\n", dependencies: [{ kind: "component", type: Loader, selector: "kl-loader", inputs: ["size"] }] });
26
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: LoaderPageContent, deps: [], target: i0.ɵɵFactoryTarget.Component });
27
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.0.6", type: LoaderPageContent, isStandalone: true, selector: "kl-loader-page-content", ngImport: i0, template: "<div class=\"fixed bg-base-100/40 flex w-full h-full items-center justify-center z-50\"\n [class]=\"{ 'hidden': !loaderPage.isLoading() }\">\n <kl-loader size=\"extraLarge\" />\n</div>\n", dependencies: [{ kind: "component", type: Loader, selector: "kl-loader", inputs: ["size"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
28
28
  }
29
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: LoaderPageContent, decorators: [{
29
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: LoaderPageContent, decorators: [{
30
30
  type: Component,
31
- args: [{ selector: 'kl-loader-page-content', imports: [Loader], template: "<div class=\"fixed bg-base-100/40 flex w-full h-full items-center justify-center z-50\"\n [class]=\"{ 'hidden': !loaderPage.isLoading() }\">\n <kl-loader size=\"extraLarge\" />\n</div>\n" }]
31
+ args: [{ selector: 'kl-loader-page-content', changeDetection: ChangeDetectionStrategy.OnPush, imports: [Loader], template: "<div class=\"fixed bg-base-100/40 flex w-full h-full items-center justify-center z-50\"\n [class]=\"{ 'hidden': !loaderPage.isLoading() }\">\n <kl-loader size=\"extraLarge\" />\n</div>\n" }]
32
32
  }] });
33
33
 
34
34
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"koalarx-ui-core-components-loader-page.mjs","sources":["../../projects/koala-ui/core/components/loader-page/loader-page.ts","../../projects/koala-ui/core/components/loader-page/loader-page-content.ts","../../projects/koala-ui/core/components/loader-page/loader-page-content.html","../../projects/koala-ui/core/components/loader-page/koalarx-ui-core-components-loader-page.ts"],"sourcesContent":["import { Injectable, signal } from '@angular/core';\n\n@Injectable({ providedIn: 'root' })\nexport class LoaderPage {\n private _loading = signal(false);\n\n get isLoading() {\n return this._loading.asReadonly();\n }\n\n show() {\n this._loading.set(true);\n }\n\n dismiss() {\n this._loading.set(false);\n }\n}\n","import { Component, inject } from '@angular/core';\nimport { Loader } from '@koalarx/ui/core/components/loader';\nimport { LoaderPage } from './loader-page';\n\n@Component({\n selector: 'kl-loader-page-content',\n templateUrl: './loader-page-content.html',\n imports: [Loader],\n})\nexport class LoaderPageContent {\n loaderPage = inject(LoaderPage);\n}\n","<div class=\"fixed bg-base-100/40 flex w-full h-full items-center justify-center z-50\"\n [class]=\"{ 'hidden': !loaderPage.isLoading() }\">\n <kl-loader size=\"extraLarge\" />\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAGa,UAAU,CAAA;AACb,IAAA,QAAQ,GAAG,MAAM,CAAC,KAAK,oDAAC;AAEhC,IAAA,IAAI,SAAS,GAAA;AACX,QAAA,OAAO,IAAI,CAAC,QAAQ,CAAC,UAAU,EAAE;;IAGnC,IAAI,GAAA;AACF,QAAA,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC;;IAGzB,OAAO,GAAA;AACL,QAAA,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC;;uGAZf,UAAU,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA;AAAV,IAAA,OAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAU,cADG,MAAM,EAAA,CAAA;;2FACnB,UAAU,EAAA,UAAA,EAAA,CAAA;kBADtB,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;;MCOrB,iBAAiB,CAAA;AAC5B,IAAA,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC;uGADpB,iBAAiB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAAjB,iBAAiB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,wBAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECT9B,8LAIA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EDGY,MAAM,EAAA,QAAA,EAAA,WAAA,EAAA,MAAA,EAAA,CAAA,MAAA,CAAA,EAAA,CAAA,EAAA,CAAA;;2FAEL,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAL7B,SAAS;+BACE,wBAAwB,EAAA,OAAA,EAEzB,CAAC,MAAM,CAAC,EAAA,QAAA,EAAA,8LAAA,EAAA;;;AEPnB;;AAEG;;;;"}
1
+ {"version":3,"file":"koalarx-ui-core-components-loader-page.mjs","sources":["../../projects/koala-ui/core/components/loader-page/loader-page.ts","../../projects/koala-ui/core/components/loader-page/loader-page-content.ts","../../projects/koala-ui/core/components/loader-page/loader-page-content.html","../../projects/koala-ui/core/components/loader-page/koalarx-ui-core-components-loader-page.ts"],"sourcesContent":["import { Injectable, signal } from '@angular/core';\n\n@Injectable({ providedIn: 'root' })\nexport class LoaderPage {\n private _loading = signal(false);\n\n get isLoading() {\n return this._loading.asReadonly();\n }\n\n show() {\n this._loading.set(true);\n }\n\n dismiss() {\n this._loading.set(false);\n }\n}\n","import { ChangeDetectionStrategy, Component, inject } from '@angular/core';\nimport { Loader } from '@koalarx/ui/core/components/loader';\nimport { LoaderPage } from './loader-page';\n\n@Component({\n selector: 'kl-loader-page-content',\n templateUrl: './loader-page-content.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [Loader],\n})\nexport class LoaderPageContent {\n loaderPage = inject(LoaderPage);\n}\n","<div class=\"fixed bg-base-100/40 flex w-full h-full items-center justify-center z-50\"\n [class]=\"{ 'hidden': !loaderPage.isLoading() }\">\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A,uBAAA,CAAA,MAAA,EAAA,CAAA;;2FAEL,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAN7B,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,wBAAwB,mBAEjB,uBAAuB,CAAC,MAAM,EAAA,OAAA,EACtC,CAAC,MAAM,CAAC,EAAA,QAAA,EAAA,8LAAA,EAAA;;;AERnB;;AAEG;;;;"}
@@ -1,15 +1,15 @@
1
1
  import * as i0 from '@angular/core';
2
- import { input, Component } from '@angular/core';
2
+ import { input, ChangeDetectionStrategy, Component } from '@angular/core';
3
3
 
4
4
  class Loader {
5
5
  size = input('small', ...(ngDevMode ? [{ debugName: "size" }] : []));
6
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: Loader, deps: [], target: i0.ɵɵFactoryTarget.Component });
7
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.1.6", type: Loader, isStandalone: true, selector: "kl-loader", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<span\n class=\"loading loading-spinner\" [class]=\"{\n 'loading-xs': size() === 'extraSmall',\n 'loading-sm': size() === 'small',\n 'loading-md': size() === 'medium',\n 'loading-lg': size() === 'large',\n 'loading-xl': size() === 'extraLarge'\n }\">\n</span>\n" });
6
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: Loader, deps: [], target: i0.ɵɵFactoryTarget.Component });
7
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.0.6", type: Loader, isStandalone: true, selector: "kl-loader", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<span\n class=\"loading loading-spinner\" [class]=\"{\n 'loading-xs': size() === 'extraSmall',\n 'loading-sm': size() === 'small',\n 'loading-md': size() === 'medium',\n 'loading-lg': size() === 'large',\n 'loading-xl': size() === 'extraLarge'\n }\">\n</span>\n", changeDetection: i0.ChangeDetectionStrategy.OnPush });
8
8
  }
9
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: Loader, decorators: [{
9
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: Loader, decorators: [{
10
10
  type: Component,
11
- args: [{ selector: 'kl-loader', template: "<span\n class=\"loading loading-spinner\" [class]=\"{\n 'loading-xs': size() === 'extraSmall',\n 'loading-sm': size() === 'small',\n 'loading-md': size() === 'medium',\n 'loading-lg': size() === 'large',\n 'loading-xl': size() === 'extraLarge'\n }\">\n</span>\n" }]
12
- }] });
11
+ args: [{ selector: 'kl-loader', changeDetection: ChangeDetectionStrategy.OnPush, template: "<span\n class=\"loading loading-spinner\" [class]=\"{\n 'loading-xs': size() === 'extraSmall',\n 'loading-sm': size() === 'small',\n 'loading-md': size() === 'medium',\n 'loading-lg': size() === 'large',\n 'loading-xl': size() === 'extraLarge'\n }\">\n</span>\n" }]
12
+ }], propDecorators: { size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }] } });
13
13
 
14
14
  /**
15
15
  * Generated bundle index. Do not edit.
@@ -1 +1 @@
1
- {"version":3,"file":"koalarx-ui-core-components-loader.mjs","sources":["../../projects/koala-ui/core/components/loader/loader.ts","../../projects/koala-ui/core/components/loader/loader.html","../../projects/koala-ui/core/components/loader/koalarx-ui-core-components-loader.ts"],"sourcesContent":["import { Component, input } from '@angular/core';\n\ntype LoaderSize = 'extraSmall' | 'small' | 'medium' | 'large' | 'extraLarge';\n\n@Component({\n selector: 'kl-loader',\n templateUrl: './loader.html',\n})\nexport class Loader {\n size = input<LoaderSize>('small');\n}\n","<span\n class=\"loading loading-spinner\" [class]=\"{\n 'loading-xs': size() === 'extraSmall',\n 'loading-sm': size() === 'small',\n 'loading-md': size() === 'medium',\n 'loading-lg': size() === 'large',\n 'loading-xl': size() === 'extraLarge'\n }\">\n</span>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;MAQa,MAAM,CAAA;AACjB,IAAA,IAAI,GAAG,KAAK,CAAa,OAAO,gDAAC;uGADtB,MAAM,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAN,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,MAAM,sMCRnB,wRASA,EAAA,CAAA;;2FDDa,MAAM,EAAA,UAAA,EAAA,CAAA;kBAJlB,SAAS;+BACE,WAAW,EAAA,QAAA,EAAA,wRAAA,EAAA;;;AELvB;;AAEG;;;;"}
1
+ {"version":3,"file":"koalarx-ui-core-components-loader.mjs","sources":["../../projects/koala-ui/core/components/loader/loader.ts","../../projects/koala-ui/core/components/loader/loader.html","../../projects/koala-ui/core/components/loader/koalarx-ui-core-components-loader.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, input } from '@angular/core';\n\ntype LoaderSize = 'extraSmall' | 'small' | 'medium' | 'large' | 'extraLarge';\n\n@Component({\n selector: 'kl-loader',\n templateUrl: './loader.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class Loader {\n size = input<LoaderSize>('small');\n}\n","<span\n class=\"loading loading-spinner\" [class]=\"{\n 'loading-xs': size() === 'extraSmall',\n 'loading-sm': size() === 'small',\n 'loading-md': size() === 'medium',\n 'loading-lg': size() === 'large',\n 'loading-xl': size() === 'extraLarge'\n }\">\n</span>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;MASa,MAAM,CAAA;AACjB,IAAA,IAAI,GAAG,KAAK,CAAa,OAAO,gDAAC;uGADtB,MAAM,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAN,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,MAAM,sMCTnB,wRASA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;2FDAa,MAAM,EAAA,UAAA,EAAA,CAAA;kBALlB,SAAS;+BACE,WAAW,EAAA,eAAA,EAEJ,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,wRAAA,EAAA;;;AEPjD;;AAEG;;;;"}
@@ -1,13 +1,13 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Component } from '@angular/core';
2
+ import { ChangeDetectionStrategy, Component } from '@angular/core';
3
3
 
4
4
  class SideWindowContainer {
5
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: SideWindowContainer, deps: [], target: i0.ɵɵFactoryTarget.Component });
6
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.1.6", type: SideWindowContainer, isStandalone: true, selector: "kl-side-window-container", ngImport: i0, template: "<div class=\"side-window-container\"></div>\n" });
5
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: SideWindowContainer, deps: [], target: i0.ɵɵFactoryTarget.Component });
6
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.0.6", type: SideWindowContainer, isStandalone: true, selector: "kl-side-window-container", ngImport: i0, template: "<div class=\"side-window-container\"></div>\n", changeDetection: i0.ChangeDetectionStrategy.OnPush });
7
7
  }
8
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: SideWindowContainer, decorators: [{
8
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: SideWindowContainer, decorators: [{
9
9
  type: Component,
10
- args: [{ selector: 'kl-side-window-container', template: "<div class=\"side-window-container\"></div>\n" }]
10
+ args: [{ selector: 'kl-side-window-container', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"side-window-container\"></div>\n" }]
11
11
  }] });
12
12
 
13
13
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"koalarx-ui-core-components-side-window.mjs","sources":["../../projects/koala-ui/core/components/side-window/side-window-container.ts","../../projects/koala-ui/core/components/side-window/side-window-container.html","../../projects/koala-ui/core/components/side-window/koalarx-ui-core-components-side-window.ts"],"sourcesContent":["import { Component } from '@angular/core';\n\n@Component({\n selector: 'kl-side-window-container',\n templateUrl: './side-window-container.html',\n})\nexport class SideWindowContainer {}\n","<div class=\"side-window-container\"></div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;MAMa,mBAAmB,CAAA;uGAAnB,mBAAmB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAnB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,mBAAmB,oFCNhC,+CACA,EAAA,CAAA;;2FDKa,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAJ/B,SAAS;+BACE,0BAA0B,EAAA,QAAA,EAAA,+CAAA,EAAA;;;AEHtC;;AAEG;;;;"}
1
+ {"version":3,"file":"koalarx-ui-core-components-side-window.mjs","sources":["../../projects/koala-ui/core/components/side-window/side-window-container.ts","../../projects/koala-ui/core/components/side-window/side-window-container.html","../../projects/koala-ui/core/components/side-window/koalarx-ui-core-components-side-window.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component } from '@angular/core';\n\n@Component({\n selector: 'kl-side-window-container',\n templateUrl: './side-window-container.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class SideWindowContainer {}\n","<div class=\"side-window-container\"></div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;MAOa,mBAAmB,CAAA;uGAAnB,mBAAmB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAnB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,mBAAmB,oFCPhC,+CACA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;2FDMa,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAL/B,SAAS;+BACE,0BAA0B,EAAA,eAAA,EAEnB,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,+CAAA,EAAA;;;AELjD;;AAEG;;;;"}
@@ -1,13 +1,13 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Component } from '@angular/core';
2
+ import { ChangeDetectionStrategy, Component } from '@angular/core';
3
3
 
4
4
  class SnackbarContainer {
5
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: SnackbarContainer, deps: [], target: i0.ɵɵFactoryTarget.Component });
6
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.1.6", type: SnackbarContainer, isStandalone: true, selector: "kl-snackbar-container", ngImport: i0, template: "<div class=\"toast toast-top toast-end z-10000 w-full\"></div>\n" });
5
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: SnackbarContainer, deps: [], target: i0.ɵɵFactoryTarget.Component });
6
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.0.6", type: SnackbarContainer, isStandalone: true, selector: "kl-snackbar-container", ngImport: i0, template: "<div class=\"toast toast-top toast-end z-10000 w-full\"></div>\n", changeDetection: i0.ChangeDetectionStrategy.OnPush });
7
7
  }
8
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: SnackbarContainer, decorators: [{
8
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: SnackbarContainer, decorators: [{
9
9
  type: Component,
10
- args: [{ selector: 'kl-snackbar-container', template: "<div class=\"toast toast-top toast-end z-10000 w-full\"></div>\n" }]
10
+ args: [{ selector: 'kl-snackbar-container', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"toast toast-top toast-end z-10000 w-full\"></div>\n" }]
11
11
  }] });
12
12
 
13
13
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"koalarx-ui-core-components-snackbar.mjs","sources":["../../projects/koala-ui/core/components/snackbar/snackbar-container.ts","../../projects/koala-ui/core/components/snackbar/snackbar-container.html","../../projects/koala-ui/core/components/snackbar/koalarx-ui-core-components-snackbar.ts"],"sourcesContent":["import { Component } from '@angular/core';\n\n@Component({\n selector: 'kl-snackbar-container',\n templateUrl: './snackbar-container.html',\n})\nexport class SnackbarContainer {}\n","<div class=\"toast toast-top toast-end z-10000 w-full\"></div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;MAMa,iBAAiB,CAAA;uGAAjB,iBAAiB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAjB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,iBAAiB,iFCN9B,kEACA,EAAA,CAAA;;2FDKa,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAJ7B,SAAS;+BACE,uBAAuB,EAAA,QAAA,EAAA,kEAAA,EAAA;;;AEHnC;;AAEG;;;;"}
1
+ {"version":3,"file":"koalarx-ui-core-components-snackbar.mjs","sources":["../../projects/koala-ui/core/components/snackbar/snackbar-container.ts","../../projects/koala-ui/core/components/snackbar/snackbar-container.html","../../projects/koala-ui/core/components/snackbar/koalarx-ui-core-components-snackbar.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component } from '@angular/core';\n\n@Component({\n selector: 'kl-snackbar-container',\n templateUrl: './snackbar-container.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class SnackbarContainer {}\n","<div class=\"toast toast-top toast-end z-10000 w-full\"></div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;MAOa,iBAAiB,CAAA;uGAAjB,iBAAiB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAjB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,iBAAiB,iFCP9B,kEACA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;2FDMa,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAL7B,SAAS;+BACE,uBAAuB,EAAA,eAAA,EAEhB,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,kEAAA,EAAA;;;AELjD;;AAEG;;;;"}
@@ -7,10 +7,10 @@ class AuthGuard {
7
7
  canActivate() {
8
8
  return this.authService.isAuthenticated();
9
9
  }
10
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AuthGuard, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
11
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AuthGuard });
10
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: AuthGuard, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
11
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: AuthGuard });
12
12
  }
13
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AuthGuard, decorators: [{
13
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: AuthGuard, decorators: [{
14
14
  type: Injectable
15
15
  }] });
16
16
 
@@ -1,15 +1,15 @@
1
1
  import * as i0 from '@angular/core';
2
- import { input, Component } from '@angular/core';
2
+ import { input, ChangeDetectionStrategy, Component } from '@angular/core';
3
3
 
4
4
  class Accordion {
5
5
  name = input.required(...(ngDevMode ? [{ debugName: "name" }] : []));
6
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: Accordion, deps: [], target: i0.ɵɵFactoryTarget.Component });
7
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.1.6", type: Accordion, isStandalone: true, selector: "kl-accordion", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: "<div class=\"collapse bg-base-100 border border-neutral-500 dark:border-neutral-700\">\n <input type=\"radio\" [name]=\"name()\" />\n <div class=\"collapse-title font-semibold\">\n <ng-content select=\"[title]\" />\n </div>\n <div class=\"collapse-content text-sm\">\n <ng-content select=\"[content]\" />\n </div>\n</div>\n" });
6
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: Accordion, deps: [], target: i0.ɵɵFactoryTarget.Component });
7
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.0.6", type: Accordion, isStandalone: true, selector: "kl-accordion", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: "<div class=\"collapse bg-base-100 border border-neutral-500 dark:border-neutral-700\">\n <input type=\"radio\" [name]=\"name()\" />\n <div class=\"collapse-title font-semibold\">\n <ng-content select=\"[title]\" />\n </div>\n <div class=\"collapse-content text-sm\">\n <ng-content select=\"[content]\" />\n </div>\n</div>\n", changeDetection: i0.ChangeDetectionStrategy.OnPush });
8
8
  }
9
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: Accordion, decorators: [{
9
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: Accordion, decorators: [{
10
10
  type: Component,
11
- args: [{ selector: 'kl-accordion', template: "<div class=\"collapse bg-base-100 border border-neutral-500 dark:border-neutral-700\">\n <input type=\"radio\" [name]=\"name()\" />\n <div class=\"collapse-title font-semibold\">\n <ng-content select=\"[title]\" />\n </div>\n <div class=\"collapse-content text-sm\">\n <ng-content select=\"[content]\" />\n </div>\n</div>\n" }]
12
- }] });
11
+ args: [{ selector: 'kl-accordion', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"collapse bg-base-100 border border-neutral-500 dark:border-neutral-700\">\n <input type=\"radio\" [name]=\"name()\" />\n <div class=\"collapse-title font-semibold\">\n <ng-content select=\"[title]\" />\n </div>\n <div class=\"collapse-content text-sm\">\n <ng-content select=\"[content]\" />\n </div>\n</div>\n" }]
12
+ }], propDecorators: { name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: true }] }] } });
13
13
 
14
14
  /**
15
15
  * Generated bundle index. Do not edit.
@@ -1 +1 @@
1
- {"version":3,"file":"koalarx-ui-shared-components-accordion.mjs","sources":["../../projects/koala-ui/shared/components/accordion/accordion.ts","../../projects/koala-ui/shared/components/accordion/accordion.html","../../projects/koala-ui/shared/components/accordion/koalarx-ui-shared-components-accordion.ts"],"sourcesContent":["import { Component, input } from '@angular/core';\n\n@Component({\n selector: 'kl-accordion',\n templateUrl: './accordion.html',\n})\nexport class Accordion {\n name = input.required<string>();\n}\n","<div class=\"collapse bg-base-100 border border-neutral-500 dark:border-neutral-700\">\n <input type=\"radio\" [name]=\"name()\" />\n <div class=\"collapse-title font-semibold\">\n <ng-content select=\"[title]\" />\n </div>\n <div class=\"collapse-content text-sm\">\n <ng-content select=\"[content]\" />\n </div>\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;MAMa,SAAS,CAAA;AACpB,IAAA,IAAI,GAAG,KAAK,CAAC,QAAQ,+CAAU;uGADpB,SAAS,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAT,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,SAAS,wMCNtB,gVASA,EAAA,CAAA;;2FDHa,SAAS,EAAA,UAAA,EAAA,CAAA;kBAJrB,SAAS;+BACE,cAAc,EAAA,QAAA,EAAA,gVAAA,EAAA;;;AEH1B;;AAEG;;;;"}
1
+ {"version":3,"file":"koalarx-ui-shared-components-accordion.mjs","sources":["../../projects/koala-ui/shared/components/accordion/accordion.ts","../../projects/koala-ui/shared/components/accordion/accordion.html","../../projects/koala-ui/shared/components/accordion/koalarx-ui-shared-components-accordion.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, input } from '@angular/core';\n\n@Component({\n selector: 'kl-accordion',\n templateUrl: './accordion.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class Accordion {\n name = input.required<string>();\n}\n","<div class=\"collapse bg-base-100 border border-neutral-500 dark:border-neutral-700\">\n <input type=\"radio\" [name]=\"name()\" />\n <div class=\"collapse-title font-semibold\">\n <ng-content select=\"[title]\" />\n </div>\n <div class=\"collapse-content text-sm\">\n <ng-content select=\"[content]\" />\n </div>\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;MAOa,SAAS,CAAA;AACpB,IAAA,IAAI,GAAG,KAAK,CAAC,QAAQ,+CAAU;uGADpB,SAAS,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAT,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,SAAS,wMCPtB,gVASA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;2FDFa,SAAS,EAAA,UAAA,EAAA,CAAA;kBALrB,SAAS;+BACE,cAAc,EAAA,eAAA,EAEP,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,gVAAA,EAAA;;;AELjD;;AAEG;;;;"}
@@ -9,10 +9,10 @@ class AlertContent {
9
9
  close() {
10
10
  this.dialogRef.dismiss('close');
11
11
  }
12
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AlertContent, deps: [], target: i0.ɵɵFactoryTarget.Component });
13
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.1.6", type: AlertContent, isStandalone: true, selector: "kl-alert-content", ngImport: i0, template: "<kl-dialog-content>\n @if (data.title) {\n <h2>{{ data.title }}</h2>\n }\n\n <div class=\"flex flex-col items-center justify-center gap-4\" content>\n @switch (data.type) {\n @case ('info') {\n <i class=\"fa-solid fa-circle-info text-6xl text-indigo-500\"></i>\n }\n @case ('success') {\n <i class=\"fa-solid fa-circle-check text-6xl text-green-500\"></i>\n }\n @case ('warning') {\n <i class=\"fa-solid fa-triangle-exclamation text-6xl text-yellow-500\"></i>\n\n }\n @case ('error') {\n <i class=\"fa-solid fa-circle-xmark text-6xl text-red-500\"></i>\n }\n }\n\n <p [innerHTML]=\"data.message\"></p>\n </div>\n\n <div class=\"flex items-center justify-center w-full\" actions>\n <button klButton outline [color]=\"data.type\" (click)=\"close()\">\n {{ data.okButtonText ?? 'OK' }}\n </button>\n </div>\n</kl-dialog-content>\n", dependencies: [{ kind: "component", type: DialogContent, selector: "kl-dialog-content" }, { kind: "directive", type: Button, selector: "button[klButton], a[klButton]", inputs: ["color", "type", "circle", "outline", "soft", "showLoader", "disabled", "size"] }] });
12
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: AlertContent, deps: [], target: i0.ɵɵFactoryTarget.Component });
13
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.6", type: AlertContent, isStandalone: true, selector: "kl-alert-content", ngImport: i0, template: "<kl-dialog-content>\n @if (data.title) {\n <h2>{{ data.title }}</h2>\n }\n\n <div class=\"flex flex-col items-center justify-center gap-4\" content>\n @switch (data.type) {\n @case ('info') {\n <i class=\"fa-solid fa-circle-info text-6xl text-indigo-500\"></i>\n }\n @case ('success') {\n <i class=\"fa-solid fa-circle-check text-6xl text-green-500\"></i>\n }\n @case ('warning') {\n <i class=\"fa-solid fa-triangle-exclamation text-6xl text-yellow-500\"></i>\n\n }\n @case ('error') {\n <i class=\"fa-solid fa-circle-xmark text-6xl text-red-500\"></i>\n }\n }\n\n <p [innerHTML]=\"data.message\"></p>\n </div>\n\n <div class=\"flex items-center justify-center w-full\" actions>\n <button klButton outline [color]=\"data.type\" (click)=\"close()\">\n {{ data.okButtonText ?? 'OK' }}\n </button>\n </div>\n</kl-dialog-content>\n", dependencies: [{ kind: "component", type: DialogContent, selector: "kl-dialog-content" }, { kind: "directive", type: Button, selector: "button[klButton], a[klButton]", inputs: ["color", "type", "circle", "outline", "soft", "showLoader", "disabled", "size"] }] });
14
14
  }
15
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AlertContent, decorators: [{
15
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: AlertContent, decorators: [{
16
16
  type: Component,
17
17
  args: [{ selector: 'kl-alert-content', imports: [DialogContent, Button], template: "<kl-dialog-content>\n @if (data.title) {\n <h2>{{ data.title }}</h2>\n }\n\n <div class=\"flex flex-col items-center justify-center gap-4\" content>\n @switch (data.type) {\n @case ('info') {\n <i class=\"fa-solid fa-circle-info text-6xl text-indigo-500\"></i>\n }\n @case ('success') {\n <i class=\"fa-solid fa-circle-check text-6xl text-green-500\"></i>\n }\n @case ('warning') {\n <i class=\"fa-solid fa-triangle-exclamation text-6xl text-yellow-500\"></i>\n\n }\n @case ('error') {\n <i class=\"fa-solid fa-circle-xmark text-6xl text-red-500\"></i>\n }\n }\n\n <p [innerHTML]=\"data.message\"></p>\n </div>\n\n <div class=\"flex items-center justify-center w-full\" actions>\n <button klButton outline [color]=\"data.type\" (click)=\"close()\">\n {{ data.okButtonText ?? 'OK' }}\n </button>\n </div>\n</kl-dialog-content>\n" }]
18
18
  }] });
@@ -74,10 +74,10 @@ class Alert {
74
74
  onClose: options.onClose,
75
75
  });
76
76
  }
77
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: Alert, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
78
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: Alert, providedIn: 'root' });
77
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: Alert, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
78
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: Alert, providedIn: 'root' });
79
79
  }
80
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: Alert, decorators: [{
80
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: Alert, decorators: [{
81
81
  type: Injectable,
82
82
  args: [{ providedIn: 'root' }]
83
83
  }] });