nira-falcon 0.1.21 → 0.1.23

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 (318) hide show
  1. package/README.md +24 -24
  2. package/ng-package.json +7 -0
  3. package/package copy.json +13 -0
  4. package/package.json +13 -26
  5. package/src/assets/images/hub-dashboard-title-bg.png +0 -0
  6. package/src/assets/images/iran.png +0 -0
  7. package/src/environments/environment.ts +7 -0
  8. package/src/lib/core-auto-complete/core-auto-complete.component.html +30 -0
  9. package/src/lib/core-auto-complete/core-auto-complete.component.scss +89 -0
  10. package/src/lib/core-auto-complete/core-auto-complete.component.ts +92 -0
  11. package/src/lib/core-btn/core-btn-bluebird.component.html +21 -0
  12. package/src/lib/core-btn/core-btn-bluebird.component.scss +123 -0
  13. package/src/lib/core-btn/core-btn-falcon.component.html +20 -0
  14. package/src/lib/core-btn/core-btn-falcon.component.scss +115 -0
  15. package/src/lib/core-btn/core-btn.component.ts +54 -0
  16. package/src/lib/core-card/core-card.component.html +3 -0
  17. package/src/lib/core-card/core-card.component.scss +0 -0
  18. package/src/lib/core-card/core-card.component.ts +10 -0
  19. package/src/lib/core-checkbox/core-checkbox.component.html +9 -0
  20. package/src/lib/core-checkbox/core-checkbox.component.scss +60 -0
  21. package/src/lib/core-checkbox/core-checkbox.component.ts +19 -0
  22. package/src/lib/core-confirm-dialog/core-confirm-dialog.component.html +28 -0
  23. package/src/lib/core-confirm-dialog/core-confirm-dialog.component.scss +131 -0
  24. package/src/lib/core-confirm-dialog/core-confirm-dialog.component.ts +29 -0
  25. package/src/lib/core-date-picker/core-date-picker-bluebird.component.html +15 -0
  26. package/src/lib/core-date-picker/core-date-picker-bluebird.component.scss +0 -0
  27. package/src/lib/core-date-picker/core-date-picker-falcon.component.html +14 -0
  28. package/src/lib/core-date-picker/core-date-picker-falcon.component.scss +0 -0
  29. package/src/lib/core-date-picker/core-date-picker.component.ts +44 -0
  30. package/src/lib/core-input/core-input-bluebird.component.html +95 -0
  31. package/src/lib/core-input/core-input-bluebird.component.scss +152 -0
  32. package/src/lib/core-input/core-input-falcon.component.html +90 -0
  33. package/src/lib/core-input/core-input-falcon.component.scss +141 -0
  34. package/src/lib/core-input/core-input.component.ts +112 -0
  35. package/src/lib/core-multi-select/core-multi-select-row/core-multi-select-row.component.html +3 -0
  36. package/src/lib/core-multi-select/core-multi-select-row/core-multi-select-row.component.scss +15 -0
  37. package/src/lib/core-multi-select/core-multi-select-row/core-multi-select-row.component.ts +19 -0
  38. package/src/lib/core-multi-select/core-multi-select.component.html +41 -0
  39. package/src/lib/core-multi-select/core-multi-select.component.scss +119 -0
  40. package/src/lib/core-multi-select/core-multi-select.component.ts +139 -0
  41. package/src/lib/core-number/core-number.component.html +3 -0
  42. package/src/lib/core-number/core-number.component.scss +1 -0
  43. package/src/lib/core-number/core-number.component.ts +45 -0
  44. package/src/lib/core-page-title/core-page-title.component.html +14 -0
  45. package/src/lib/core-page-title/core-page-title.component.scss +16 -0
  46. package/src/lib/core-page-title/core-page-title.component.ts +11 -0
  47. package/src/lib/core-radio-buttons/core-radio-buttons.component.html +17 -0
  48. package/src/lib/core-radio-buttons/core-radio-buttons.component.scss +46 -0
  49. package/src/lib/core-radio-buttons/core-radio-buttons.component.spec.ts +21 -0
  50. package/src/lib/core-radio-buttons/core-radio-buttons.component.ts +64 -0
  51. package/src/lib/core-search-box/core-search-box.component.html +14 -0
  52. package/src/lib/core-search-box/core-search-box.component.scss +37 -0
  53. package/src/lib/core-search-box/core-search-box.component.ts +15 -0
  54. package/src/lib/core-select/core-select-bluebird.component.html +57 -0
  55. package/src/lib/core-select/core-select-bluebird.component.scss +129 -0
  56. package/src/lib/core-select/core-select-falcon.component.html +56 -0
  57. package/src/lib/core-select/core-select-falcon.component.scss +123 -0
  58. package/src/lib/core-select/core-select.component.spec.ts +21 -0
  59. package/src/lib/core-select/core-select.component.ts +93 -0
  60. package/src/lib/core-spinner/core-spinner.component.html +14 -0
  61. package/src/lib/core-spinner/core-spinner.component.scss +162 -0
  62. package/src/lib/core-spinner/core-spinner.component.ts +13 -0
  63. package/src/lib/core-switch/core-switch.component.html +13 -0
  64. package/src/lib/core-switch/core-switch.component.scss +58 -0
  65. package/src/lib/core-switch/core-switch.component.spec.ts +21 -0
  66. package/src/lib/core-switch/core-switch.component.ts +28 -0
  67. package/src/lib/core-table/core-column-date-picker/core-column-date-picker.component.html +21 -0
  68. package/src/lib/core-table/core-column-date-picker/core-column-date-picker.component.scss +3 -0
  69. package/src/lib/core-table/core-column-date-picker/core-column-date-picker.component.ts +55 -0
  70. package/src/lib/core-table/core-column-input/core-column-input.component.html +17 -0
  71. package/src/lib/core-table/core-column-input/core-column-input.component.scss +21 -0
  72. package/src/lib/core-table/core-column-input/core-column-input.component.ts +23 -0
  73. package/src/lib/core-table/core-column-selector/core-column-selector.component.html +47 -0
  74. package/src/lib/core-table/core-column-selector/core-column-selector.component.scss +113 -0
  75. package/src/lib/core-table/core-column-selector/core-column-selector.component.ts +94 -0
  76. package/src/lib/core-table/core-row-pelak/core-row-pelak.component.html +12 -0
  77. package/src/lib/core-table/core-row-pelak/core-row-pelak.component.scss +21 -0
  78. package/src/lib/core-table/core-row-pelak/core-row-pelak.component.ts +12 -0
  79. package/src/lib/core-table/core-table/core-table.component.html +168 -0
  80. package/src/lib/core-table/core-table/core-table.component.scss +65 -0
  81. package/src/lib/core-table/core-table/core-table.component.ts +179 -0
  82. package/src/lib/core-table/core-table-action-buttons-column/core-table-action-buttons-column.component.html +10 -0
  83. package/src/lib/core-table/core-table-action-buttons-column/core-table-action-buttons-column.component.scss +3 -0
  84. package/src/lib/core-table/core-table-action-buttons-column/core-table-action-buttons-column.component.ts +24 -0
  85. package/src/lib/core-table/core-table-action-column/core-table-action-column.component.html +6 -0
  86. package/src/lib/core-table/core-table-action-column/core-table-action-column.component.scss +3 -0
  87. package/src/lib/core-table/core-table-action-column/core-table-action-column.component.ts +19 -0
  88. package/src/lib/core-table/core-table-card-manager/core-table-card-manager.component.html +94 -0
  89. package/src/lib/core-table/core-table-card-manager/core-table-card-manager.component.scss +0 -0
  90. package/src/lib/core-table/core-table-card-manager/core-table-card-manager.component.ts +58 -0
  91. package/src/lib/core-table/core-table-column-manager/core-table-column-manager.component.html +99 -0
  92. package/src/lib/core-table/core-table-column-manager/core-table-column-manager.component.scss +0 -0
  93. package/src/lib/core-table/core-table-column-manager/core-table-column-manager.component.ts +59 -0
  94. package/src/lib/core-table/core-table-detail-viewer-for-report/core-table-detail-viewer-for-report.component.html +5 -0
  95. package/src/lib/core-table/core-table-detail-viewer-for-report/core-table-detail-viewer-for-report.component.scss +8 -0
  96. package/src/lib/core-table/core-table-detail-viewer-for-report/core-table-detail-viewer-for-report.component.ts +28 -0
  97. package/src/lib/core-table/core-table-filter-dialog/core-table-filter-dialog/core-table-filter-dialog.component.html +24 -0
  98. package/src/lib/core-table/core-table-filter-dialog/core-table-filter-dialog/core-table-filter-dialog.component.scss +10 -0
  99. package/src/lib/core-table/core-table-filter-dialog/core-table-filter-dialog/core-table-filter-dialog.component.ts +76 -0
  100. package/src/lib/core-table/core-table-no-content/core-table-no-content.component.html +6 -0
  101. package/src/lib/core-table/core-table-no-content/core-table-no-content.component.scss +7 -0
  102. package/src/lib/core-table/core-table-no-content/core-table-no-content.component.ts +14 -0
  103. package/src/lib/core-table/core-table-no-content/core-table-no-content.label.ts +14 -0
  104. package/src/lib/core-table/core-table-row-selector-column/core-table-row-selector-column.component.html +5 -0
  105. package/src/lib/core-table/core-table-row-selector-column/core-table-row-selector-column.component.scss +0 -0
  106. package/src/lib/core-table/core-table-row-selector-column/core-table-row-selector-column.component.ts +60 -0
  107. package/src/lib/core-table/core-table-shamsi-date/core-table-shamsi-date.component.html +3 -0
  108. package/src/lib/core-table/core-table-shamsi-date/core-table-shamsi-date.component.scss +0 -0
  109. package/src/lib/core-table/core-table-shamsi-date/core-table-shamsi-date.component.ts +24 -0
  110. package/src/lib/core-table/core-table-status-active-column/core-table-status-active-column.component.html +3 -0
  111. package/src/lib/core-table/core-table-status-active-column/core-table-status-active-column.component.scss +14 -0
  112. package/src/lib/core-table/core-table-status-active-column/core-table-status-active-column.component.ts +14 -0
  113. package/src/lib/core-table/core-table-status-column/core-table-status-column.component.html +3 -0
  114. package/src/lib/core-table/core-table-status-column/core-table-status-column.component.scss +14 -0
  115. package/src/lib/core-table/core-table-status-column/core-table-status-column.component.ts +11 -0
  116. package/src/lib/core-textarea/core-textarea.component.html +18 -0
  117. package/src/lib/core-textarea/core-textarea.component.scss +62 -0
  118. package/src/lib/core-textarea/core-textarea.component.ts +31 -0
  119. package/src/lib/core-time-picker/core-time-picker.component.html +51 -0
  120. package/src/lib/core-time-picker/core-time-picker.component.scss +144 -0
  121. package/src/lib/core-time-picker/core-time-picker.component.ts +102 -0
  122. package/src/lib/core-time-picker/time-picker-modal/time-picker-modal.component.html +50 -0
  123. package/src/lib/core-time-picker/time-picker-modal/time-picker-modal.component.scss +424 -0
  124. package/src/lib/core-time-picker/time-picker-modal/time-picker-modal.component.spec.ts +21 -0
  125. package/src/lib/core-time-picker/time-picker-modal/time-picker-modal.component.ts +172 -0
  126. package/src/lib/falcon-lib.module.ts +157 -0
  127. package/src/lib/falconTypes.ts +35 -0
  128. package/src/lib/pipes/digit-group.pipe.ts +10 -0
  129. package/src/lib/pipes/form-control.pipe.ts +11 -0
  130. package/src/lib/pipes/persian-digits.pipe.ts +33 -0
  131. package/src/lib/pipes/price-format.pipe.ts +20 -0
  132. package/src/lib/pipes/shamsi-date.pipe.ts +24 -0
  133. package/src/lib/pipes/time-format.pipe.ts +21 -0
  134. package/src/lib/pipes/weight.pipe.ts +10 -0
  135. package/src/lib/wordify.ts +116 -0
  136. package/{public-api.d.ts → src/public-api.ts} +31 -27
  137. package/src/svg-icon/arrow-down-icon/arrow-down-icon.component.html +8 -0
  138. package/src/svg-icon/arrow-down-icon/arrow-down-icon.component.scss +0 -0
  139. package/src/svg-icon/arrow-down-icon/arrow-down-icon.component.ts +8 -0
  140. package/src/svg-icon/calendar-icon/calendar-icon.component.html +10 -0
  141. package/src/svg-icon/calendar-icon/calendar-icon.component.scss +0 -0
  142. package/src/svg-icon/calendar-icon/calendar-icon.component.ts +8 -0
  143. package/src/svg-icon/caret-up-icon/caret-up-icon.component.html +16 -0
  144. package/src/svg-icon/caret-up-icon/caret-up-icon.component.scss +0 -0
  145. package/src/svg-icon/caret-up-icon/caret-up-icon.component.ts +10 -0
  146. package/src/svg-icon/close-icon/close-icon.component.html +10 -0
  147. package/src/svg-icon/close-icon/close-icon.component.scss +0 -0
  148. package/src/svg-icon/close-icon/close-icon.component.ts +8 -0
  149. package/src/svg-icon/edit-square-icon/edit-square-icon.component.html +10 -0
  150. package/src/svg-icon/edit-square-icon/edit-square-icon.component.scss +0 -0
  151. package/src/svg-icon/edit-square-icon/edit-square-icon.component.ts +8 -0
  152. package/src/svg-icon/pelak-icon/pelak-icon.component.html +32 -0
  153. package/src/svg-icon/pelak-icon/pelak-icon.component.scss +0 -0
  154. package/src/svg-icon/pelak-icon/pelak-icon.component.ts +8 -0
  155. package/src/svg-icon/search-icon/search-icon.component.html +10 -0
  156. package/src/svg-icon/search-icon/search-icon.component.scss +0 -0
  157. package/src/svg-icon/search-icon/search-icon.component.spec.ts +21 -0
  158. package/src/svg-icon/search-icon/search-icon.component.ts +8 -0
  159. package/src/svg-icon/sort-down-icon/sort-down-icon.component.html +5 -0
  160. package/src/svg-icon/sort-down-icon/sort-down-icon.component.scss +0 -0
  161. package/src/svg-icon/sort-down-icon/sort-down-icon.component.ts +10 -0
  162. package/src/svg-icon/sort-solid-icon/sort-solid-icon.component.html +5 -0
  163. package/src/svg-icon/sort-solid-icon/sort-solid-icon.component.scss +0 -0
  164. package/src/svg-icon/sort-solid-icon/sort-solid-icon.component.ts +8 -0
  165. package/src/svg-icon/sort-up-icon/sort-up-icon.component.html +5 -0
  166. package/src/svg-icon/sort-up-icon/sort-up-icon.component.scss +0 -0
  167. package/src/svg-icon/sort-up-icon/sort-up-icon.component.ts +8 -0
  168. package/src/svg-icon/time-icon/time-icon.component.html +10 -0
  169. package/src/svg-icon/time-icon/time-icon.component.scss +0 -0
  170. package/src/svg-icon/time-icon/time-icon.component.ts +8 -0
  171. package/src/svg-icon/warning-icon/warning-icon.component.html +10 -0
  172. package/src/svg-icon/warning-icon/warning-icon.component.scss +0 -0
  173. package/src/svg-icon/warning-icon/warning-icon.component.ts +10 -0
  174. package/src/utils/constants.ts +182 -0
  175. package/src/utils/directives/detail-viewer-manager.directive.ts +78 -0
  176. package/src/utils/directives/filterTableDirective.ts +36 -0
  177. package/src/utils/directives/table-detail-viewer-manager.directive.ts +57 -0
  178. package/src/utils/interfaces.ts +0 -0
  179. package/src/utils/jsonparser.ts +49 -0
  180. package/src/utils/links.ts +67 -0
  181. package/src/utils/toast.ts +35 -0
  182. package/src/utils/types.ts +20 -0
  183. package/src/utils/util.ts +32 -0
  184. package/styles.css +1 -1
  185. package/tsconfig.lib.json +14 -0
  186. package/tsconfig.lib.prod.json +10 -0
  187. package/tsconfig.spec.json +14 -0
  188. package/environments/environment.d.ts +0 -4
  189. package/esm2022/environments/environment.mjs +0 -7
  190. package/esm2022/lib/core-auto-complete/core-auto-complete.component.mjs +0 -82
  191. package/esm2022/lib/core-btn/core-btn.component.mjs +0 -68
  192. package/esm2022/lib/core-card/core-card.component.mjs +0 -16
  193. package/esm2022/lib/core-checkbox/core-checkbox.component.mjs +0 -33
  194. package/esm2022/lib/core-confirm-dialog/core-confirm-dialog.component.mjs +0 -31
  195. package/esm2022/lib/core-date-picker/core-date-picker.component.mjs +0 -46
  196. package/esm2022/lib/core-input/core-input.component.mjs +0 -132
  197. package/esm2022/lib/core-multi-select/core-multi-select-row/core-multi-select-row.component.mjs +0 -28
  198. package/esm2022/lib/core-multi-select/core-multi-select.component.mjs +0 -145
  199. package/esm2022/lib/core-number/core-number.component.mjs +0 -64
  200. package/esm2022/lib/core-page-title/core-page-title.component.mjs +0 -19
  201. package/esm2022/lib/core-radio-buttons/core-radio-buttons.component.mjs +0 -75
  202. package/esm2022/lib/core-search-box/core-search-box.component.mjs +0 -25
  203. package/esm2022/lib/core-select/core-select.component.mjs +0 -92
  204. package/esm2022/lib/core-spinner/core-spinner.component.mjs +0 -23
  205. package/esm2022/lib/core-switch/core-switch.component.mjs +0 -33
  206. package/esm2022/lib/core-table/core-column-date-picker/core-column-date-picker.component.mjs +0 -62
  207. package/esm2022/lib/core-table/core-column-input/core-column-input.component.mjs +0 -43
  208. package/esm2022/lib/core-table/core-column-selector/core-column-selector.component.mjs +0 -100
  209. package/esm2022/lib/core-table/core-row-pelak/core-row-pelak.component.mjs +0 -21
  210. package/esm2022/lib/core-table/core-table/core-table.component.mjs +0 -182
  211. package/esm2022/lib/core-table/core-table-action-buttons-column/core-table-action-buttons-column.component.mjs +0 -34
  212. package/esm2022/lib/core-table/core-table-action-column/core-table-action-column.component.mjs +0 -27
  213. package/esm2022/lib/core-table/core-table-card-manager/core-table-card-manager.component.mjs +0 -83
  214. package/esm2022/lib/core-table/core-table-column-manager/core-table-column-manager.component.mjs +0 -85
  215. package/esm2022/lib/core-table/core-table-detail-viewer-for-report/core-table-detail-viewer-for-report.component.mjs +0 -29
  216. package/esm2022/lib/core-table/core-table-filter-dialog/core-table-filter-dialog/core-table-filter-dialog.component.mjs +0 -82
  217. package/esm2022/lib/core-table/core-table-no-content/core-table-no-content.component.mjs +0 -23
  218. package/esm2022/lib/core-table/core-table-no-content/core-table-no-content.label.mjs +0 -9
  219. package/esm2022/lib/core-table/core-table-row-selector-column/core-table-row-selector-column.component.mjs +0 -68
  220. package/esm2022/lib/core-table/core-table-shamsi-date/core-table-shamsi-date.component.mjs +0 -28
  221. package/esm2022/lib/core-table/core-table-status-active-column/core-table-status-active-column.component.mjs +0 -20
  222. package/esm2022/lib/core-table/core-table-status-column/core-table-status-column.component.mjs +0 -18
  223. package/esm2022/lib/core-textarea/core-textarea.component.mjs +0 -47
  224. package/esm2022/lib/core-time-picker/core-time-picker.component.mjs +0 -118
  225. package/esm2022/lib/core-time-picker/time-picker-modal/time-picker-modal.component.mjs +0 -147
  226. package/esm2022/lib/falcon-lib.module.mjs +0 -252
  227. package/esm2022/lib/falconTypes.mjs +0 -9
  228. package/esm2022/lib/pipes/digit-group.pipe.mjs +0 -16
  229. package/esm2022/lib/pipes/form-control.pipe.mjs +0 -16
  230. package/esm2022/lib/pipes/persian-digits.pipe.mjs +0 -40
  231. package/esm2022/lib/pipes/price-format.pipe.mjs +0 -23
  232. package/esm2022/lib/pipes/shamsi-date.pipe.mjs +0 -24
  233. package/esm2022/lib/pipes/time-format.pipe.mjs +0 -28
  234. package/esm2022/lib/pipes/weight.pipe.mjs +0 -16
  235. package/esm2022/lib/wordify.mjs +0 -109
  236. package/esm2022/nira-falcon.mjs +0 -5
  237. package/esm2022/public-api.mjs +0 -31
  238. package/esm2022/svg-icon/arrow-down-icon/arrow-down-icon.component.mjs +0 -11
  239. package/esm2022/svg-icon/calendar-icon/calendar-icon.component.mjs +0 -11
  240. package/esm2022/svg-icon/caret-up-icon/caret-up-icon.component.mjs +0 -11
  241. package/esm2022/svg-icon/close-icon/close-icon.component.mjs +0 -11
  242. package/esm2022/svg-icon/edit-square-icon/edit-square-icon.component.mjs +0 -11
  243. package/esm2022/svg-icon/pelak-icon/pelak-icon.component.mjs +0 -11
  244. package/esm2022/svg-icon/search-icon/search-icon.component.mjs +0 -11
  245. package/esm2022/svg-icon/sort-down-icon/sort-down-icon.component.mjs +0 -11
  246. package/esm2022/svg-icon/sort-solid-icon/sort-solid-icon.component.mjs +0 -11
  247. package/esm2022/svg-icon/sort-up-icon/sort-up-icon.component.mjs +0 -11
  248. package/esm2022/svg-icon/time-icon/time-icon.component.mjs +0 -11
  249. package/esm2022/svg-icon/warning-icon/warning-icon.component.mjs +0 -11
  250. package/esm2022/utils/constants.mjs +0 -184
  251. package/esm2022/utils/directives/detail-viewer-manager.directive.mjs +0 -71
  252. package/esm2022/utils/directives/table-detail-viewer-manager.directive.mjs +0 -49
  253. package/esm2022/utils/util.mjs +0 -26
  254. package/fesm2022/nira-falcon.mjs +0 -2863
  255. package/fesm2022/nira-falcon.mjs.map +0 -1
  256. package/index.d.ts +0 -5
  257. package/lib/core-auto-complete/core-auto-complete.component.d.ts +0 -30
  258. package/lib/core-btn/core-btn.component.d.ts +0 -22
  259. package/lib/core-card/core-card.component.d.ts +0 -6
  260. package/lib/core-checkbox/core-checkbox.component.d.ts +0 -13
  261. package/lib/core-confirm-dialog/core-confirm-dialog.component.d.ts +0 -14
  262. package/lib/core-date-picker/core-date-picker.component.d.ts +0 -20
  263. package/lib/core-input/core-input.component.d.ts +0 -28
  264. package/lib/core-multi-select/core-multi-select-row/core-multi-select-row.component.d.ts +0 -11
  265. package/lib/core-multi-select/core-multi-select.component.d.ts +0 -43
  266. package/lib/core-number/core-number.component.d.ts +0 -12
  267. package/lib/core-page-title/core-page-title.component.d.ts +0 -7
  268. package/lib/core-radio-buttons/core-radio-buttons.component.d.ts +0 -29
  269. package/lib/core-search-box/core-search-box.component.d.ts +0 -10
  270. package/lib/core-select/core-select.component.d.ts +0 -36
  271. package/lib/core-spinner/core-spinner.component.d.ts +0 -9
  272. package/lib/core-switch/core-switch.component.d.ts +0 -17
  273. package/lib/core-table/core-column-date-picker/core-column-date-picker.component.d.ts +0 -21
  274. package/lib/core-table/core-column-input/core-column-input.component.d.ts +0 -16
  275. package/lib/core-table/core-column-selector/core-column-selector.component.d.ts +0 -35
  276. package/lib/core-table/core-row-pelak/core-row-pelak.component.d.ts +0 -8
  277. package/lib/core-table/core-table/core-table.component.d.ts +0 -42
  278. package/lib/core-table/core-table-action-buttons-column/core-table-action-buttons-column.component.d.ts +0 -11
  279. package/lib/core-table/core-table-action-column/core-table-action-column.component.d.ts +0 -11
  280. package/lib/core-table/core-table-card-manager/core-table-card-manager.component.d.ts +0 -24
  281. package/lib/core-table/core-table-column-manager/core-table-column-manager.component.d.ts +0 -24
  282. package/lib/core-table/core-table-detail-viewer-for-report/core-table-detail-viewer-for-report.component.d.ts +0 -11
  283. package/lib/core-table/core-table-filter-dialog/core-table-filter-dialog/core-table-filter-dialog.component.d.ts +0 -22
  284. package/lib/core-table/core-table-no-content/core-table-no-content.component.d.ts +0 -9
  285. package/lib/core-table/core-table-no-content/core-table-no-content.label.d.ts +0 -5
  286. package/lib/core-table/core-table-row-selector-column/core-table-row-selector-column.component.d.ts +0 -14
  287. package/lib/core-table/core-table-shamsi-date/core-table-shamsi-date.component.d.ts +0 -11
  288. package/lib/core-table/core-table-status-active-column/core-table-status-active-column.component.d.ts +0 -8
  289. package/lib/core-table/core-table-status-column/core-table-status-column.component.d.ts +0 -7
  290. package/lib/core-textarea/core-textarea.component.d.ts +0 -13
  291. package/lib/core-time-picker/core-time-picker.component.d.ts +0 -26
  292. package/lib/core-time-picker/time-picker-modal/time-picker-modal.component.d.ts +0 -35
  293. package/lib/falcon-lib.module.d.ts +0 -66
  294. package/lib/falconTypes.d.ts +0 -23
  295. package/lib/pipes/digit-group.pipe.d.ts +0 -7
  296. package/lib/pipes/form-control.pipe.d.ts +0 -8
  297. package/lib/pipes/persian-digits.pipe.d.ts +0 -7
  298. package/lib/pipes/price-format.pipe.d.ts +0 -7
  299. package/lib/pipes/shamsi-date.pipe.d.ts +0 -9
  300. package/lib/pipes/time-format.pipe.d.ts +0 -7
  301. package/lib/pipes/weight.pipe.d.ts +0 -7
  302. package/lib/wordify.d.ts +0 -2
  303. package/svg-icon/arrow-down-icon/arrow-down-icon.component.d.ts +0 -5
  304. package/svg-icon/calendar-icon/calendar-icon.component.d.ts +0 -5
  305. package/svg-icon/caret-up-icon/caret-up-icon.component.d.ts +0 -5
  306. package/svg-icon/close-icon/close-icon.component.d.ts +0 -5
  307. package/svg-icon/edit-square-icon/edit-square-icon.component.d.ts +0 -5
  308. package/svg-icon/pelak-icon/pelak-icon.component.d.ts +0 -5
  309. package/svg-icon/search-icon/search-icon.component.d.ts +0 -5
  310. package/svg-icon/sort-down-icon/sort-down-icon.component.d.ts +0 -5
  311. package/svg-icon/sort-solid-icon/sort-solid-icon.component.d.ts +0 -5
  312. package/svg-icon/sort-up-icon/sort-up-icon.component.d.ts +0 -5
  313. package/svg-icon/time-icon/time-icon.component.d.ts +0 -5
  314. package/svg-icon/warning-icon/warning-icon.component.d.ts +0 -5
  315. package/utils/constants.d.ts +0 -70
  316. package/utils/directives/detail-viewer-manager.directive.d.ts +0 -18
  317. package/utils/directives/table-detail-viewer-manager.directive.d.ts +0 -16
  318. package/utils/util.d.ts +0 -11
package/README.md CHANGED
@@ -1,24 +1,24 @@
1
- # FalconLib
2
-
3
- This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 16.1.0.
4
-
5
- ## Code scaffolding
6
-
7
- Run `ng generate component component-name --project falconLib` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project falconLib`.
8
- > Note: Don't forget to add `--project falconLib` or else it will be added to the default project in your `angular.json` file.
9
-
10
- ## Build
11
-
12
- Run `ng build falconLib` to build the project. The build artifacts will be stored in the `dist/` directory.
13
-
14
- ## Publishing
15
-
16
- After building your library with `ng build falconLib`, go to the dist folder `cd dist/falcon-lib` and run `npm publish`.
17
-
18
- ## Running unit tests
19
-
20
- Run `ng test falconLib` to execute the unit tests via [Karma](https://karma-runner.github.io).
21
-
22
- ## Further help
23
-
24
- To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
1
+ # FalconLib
2
+
3
+ This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 16.1.0.
4
+
5
+ ## Code scaffolding
6
+
7
+ Run `ng generate component component-name --project falconLib` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project falconLib`.
8
+ > Note: Don't forget to add `--project falconLib` or else it will be added to the default project in your `angular.json` file.
9
+
10
+ ## Build
11
+
12
+ Run `ng build falconLib` to build the project. The build artifacts will be stored in the `dist/` directory.
13
+
14
+ ## Publishing
15
+
16
+ After building your library with `ng build falconLib`, go to the dist folder `cd dist/falcon-lib` and run `npm publish`.
17
+
18
+ ## Running unit tests
19
+
20
+ Run `ng test falconLib` to execute the unit tests via [Karma](https://karma-runner.github.io).
21
+
22
+ ## Further help
23
+
24
+ To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
@@ -0,0 +1,7 @@
1
+ {
2
+ "$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
3
+ "dest": "../../dist/falcon-lib",
4
+ "lib": {
5
+ "entryFile": "src/public-api.ts"
6
+ }
7
+ }
@@ -0,0 +1,13 @@
1
+ {
2
+ "name": "nira-falcon",
3
+ "version": "0.1.16",
4
+ "peerDependencies": {
5
+ "@angular/common": "^16.1.0",
6
+ "@angular/core": "^16.1.0",
7
+ "jalali-moment": "^3.3.11"
8
+ },
9
+ "dependencies": {
10
+ "tslib": "^2.3.0"
11
+ },
12
+ "sideEffects": false
13
+ }
package/package.json CHANGED
@@ -1,26 +1,13 @@
1
- {
2
- "name": "nira-falcon",
3
- "version": "0.1.21",
4
- "peerDependencies": {
5
- "@angular/common": "^16.1.0",
6
- "@angular/core": "^16.1.0",
7
- "jalali-moment": "^3.3.11"
8
- },
9
- "dependencies": {
10
- "tslib": "^2.3.0"
11
- },
12
- "sideEffects": false,
13
- "module": "fesm2022/nira-falcon.mjs",
14
- "typings": "index.d.ts",
15
- "exports": {
16
- "./package.json": {
17
- "default": "./package.json"
18
- },
19
- ".": {
20
- "types": "./index.d.ts",
21
- "esm2022": "./esm2022/nira-falcon.mjs",
22
- "esm": "./esm2022/nira-falcon.mjs",
23
- "default": "./fesm2022/nira-falcon.mjs"
24
- }
25
- }
26
- }
1
+ {
2
+ "name": "nira-falcon",
3
+ "version": "0.1.23",
4
+ "peerDependencies": {
5
+ "@angular/common": "^16.1.0",
6
+ "@angular/core": "^16.1.0",
7
+ "jalali-moment": "^3.3.11"
8
+ },
9
+ "dependencies": {
10
+ "tslib": "^2.3.0"
11
+ },
12
+ "sideEffects": false
13
+ }
Binary file
@@ -0,0 +1,7 @@
1
+ export const environment = {
2
+ tempName: '-bluebird.component.html',
3
+ styleName: '-bluebird.component.scss',
4
+
5
+ // tempName: '-falcon.component.html',
6
+ // styleName: '-falcon.component.scss',
7
+ };
@@ -0,0 +1,30 @@
1
+ <div class="dropdown">
2
+ <div
3
+ class="select"
4
+ [ngClass]="{ 'select-clicked': isOpenMenu }"
5
+ (click)="openMenuClick()"
6
+ >
7
+ <input
8
+ class="selected"
9
+ [placeholder]="label"
10
+ [(ngModel)]="value"
11
+ (ngModelChange)="onChanged($event)"
12
+ (focusout)="focusOut()"
13
+ />
14
+ <span
15
+ class="material-symbols-outlined caret"
16
+ [ngClass]="{ 'caret-rotate': isOpenMenu }"
17
+ >
18
+ expand_more
19
+ </span>
20
+ </div>
21
+ <ul class="menu" [ngClass]="{ 'menu-open': isOpenMenu }">
22
+ <li
23
+ *ngFor="let item of _items"
24
+ [ngClass]="{ active: item == selectedItem }"
25
+ (click)="onItemSelect(item)"
26
+ >
27
+ {{ item.title }}
28
+ </li>
29
+ </ul>
30
+ </div>
@@ -0,0 +1,89 @@
1
+ @mixin userSelect {
2
+ -webkit-user-select: none;
3
+ -moz-user-select: none;
4
+ -ms-user-select: none;
5
+ user-select: none;
6
+ }
7
+ .dropdown {
8
+ min-width: 15em;
9
+ position: relative;
10
+ width: 100%;
11
+ min-width: 120px;
12
+ .select {
13
+ background: #fff;
14
+ color: #304050;
15
+ display: flex;
16
+ flex-direction: row-reverse;
17
+ justify-content: space-between;
18
+ align-items: center;
19
+ border: 2px solid #ced4da;
20
+ border-radius: 4px;
21
+ padding: 8px;
22
+ cursor: pointer;
23
+ transition: background 0.3s;
24
+ font-size: 13px;
25
+ @include userSelect();
26
+ &:hover {
27
+ background: #fbfbfb;
28
+ .selected {
29
+ background: #fbfbfb;
30
+ }
31
+ }
32
+ .selected {
33
+ width: 100%;
34
+ font-size: 13px;
35
+ outline: none;
36
+ border: none;
37
+ @include userSelect();
38
+ }
39
+ .caret {
40
+ color: #595c5f;
41
+ @include userSelect();
42
+ }
43
+ .caret-rotate {
44
+ transform: rotate(180deg);
45
+ }
46
+ }
47
+ .select-clicked {
48
+ border: 2px #4f6883 solid;
49
+ box-shadow: 0 0 0.8em #888;
50
+ }
51
+
52
+ .menu {
53
+ list-style: none;
54
+ padding-inline: 0px;
55
+ background: #fff;
56
+ border: 1px #e3e8f1 solid;
57
+ box-shadow: 0 0.5em 1em rgba(0, 0, 0, 0.2);
58
+ border-radius: 0.5em;
59
+ color: #595c5f;
60
+ position: absolute;
61
+ top: 42px;
62
+ left: 50%;
63
+ width: 100%;
64
+ transform: translateX(-50%);
65
+ opacity: 0;
66
+ display: none;
67
+ transition: 0, 2s;
68
+ z-index: 3;
69
+ li {
70
+ padding: 0.7em 0.5em;
71
+ margin: 0.3em 0;
72
+ margin-inline: 4px;
73
+ border-radius: 0.5em;
74
+ font-size: 14px;
75
+ text-align: start;
76
+ cursor: pointer;
77
+ &:hover {
78
+ background: #f6f6f6;
79
+ }
80
+ }
81
+ .active {
82
+ background: #ced4da;
83
+ }
84
+ }
85
+ .menu-open {
86
+ display: block;
87
+ opacity: 1;
88
+ }
89
+ }
@@ -0,0 +1,92 @@
1
+ import {
2
+ ChangeDetectorRef,
3
+ Component,
4
+ EventEmitter,
5
+ Input,
6
+ OnInit,
7
+ Output,
8
+ } from '@angular/core';
9
+ import { MenuItem } from '../falconTypes';
10
+
11
+ @Component({
12
+ selector: 'core-auto-complete',
13
+ templateUrl: './core-auto-complete.component.html',
14
+ styleUrls: ['./core-auto-complete.component.scss'],
15
+ })
16
+ export class CoreAutoCompleteComponent<T> implements OnInit {
17
+ selectedItem: MenuItem<T> = {} as MenuItem<T>;
18
+ titleKeyObject!: keyof string | number;
19
+ valueKeyObject!: keyof string | number;
20
+ filterItems: MenuItem<T>[] = [];
21
+ newItems: MenuItem<T>[] = [];
22
+ value!: T;
23
+ isOpenMenu = false;
24
+
25
+ get _items() {
26
+ return this.filterItems;
27
+ }
28
+
29
+ @Input() label = 'ddd';
30
+ @Input() titleKey!: string;
31
+ @Input() valueKey!: string;
32
+ @Input() items: any[] = [];
33
+ @Input() set defaultValue(value: T) {
34
+ this.value = value;
35
+ }
36
+ @Output() onChange = new EventEmitter<string>();
37
+
38
+ constructor(private cdr: ChangeDetectorRef) {}
39
+
40
+ ngOnInit(): void {
41
+ type ObjectKey = (typeof this.items)[0];
42
+ this.titleKeyObject = this.titleKey as ObjectKey;
43
+ this.valueKeyObject = this.valueKey as ObjectKey;
44
+ this.newItems = this.changeItemsType(this.items);
45
+
46
+ this.filterItems = this.newItems.filter(
47
+ (item: any) => !item.title.indexOf(this.value)
48
+ );
49
+ }
50
+ ngAfterViewInit(): void {
51
+ this.cdr.detectChanges();
52
+ }
53
+
54
+ changeItemsType(items: any[]): MenuItem<T>[] {
55
+ return items.map((item) => {
56
+ return {
57
+ title: item[this.titleKeyObject],
58
+ value: item[this.valueKeyObject],
59
+ };
60
+ });
61
+ }
62
+
63
+ openMenuClick() {
64
+ this.isOpenMenu = !this.isOpenMenu;
65
+ this.filterItems = this.newItems.filter(
66
+ (item: any) => !item.title.indexOf(this.value)
67
+ );
68
+ }
69
+
70
+ onItemSelect(item: MenuItem<T> | undefined): void {
71
+ this.isOpenMenu = false;
72
+ if (!item) return;
73
+ this.selectedItem = item;
74
+ this.value = item.title;
75
+ }
76
+
77
+ focusOut() {
78
+ if (!this.items || this.items.length == 0 || !this.selectedItem) return;
79
+ setTimeout(() => {
80
+ this.isOpenMenu = false;
81
+ if (!this.newItems.some((item: any) => item.title == this.value)) {
82
+ this.value = this.selectedItem.title;
83
+ }
84
+ }, 100);
85
+ }
86
+
87
+ onChanged(value: any) {
88
+ this.filterItems = this.items.filter(
89
+ (item: any) => !item.title.indexOf(value)
90
+ );
91
+ }
92
+ }
@@ -0,0 +1,21 @@
1
+ <button
2
+ (click)="clicked()"
3
+ [ngClass]="[
4
+ 'button',
5
+ disable ? 'disabled' : '',
6
+ theme,
7
+ colorState,
8
+ color,
9
+ size,
10
+ loading ? 'cursorLoading' : ''
11
+ ]"
12
+ [type]="buttonType"
13
+ >
14
+ <ng-content *ngIf="!loading"></ng-content>
15
+ <core-spinner
16
+ *ngIf="loading"
17
+ class="loading"
18
+ [colorState]="colorState"
19
+ [size]="20"
20
+ ></core-spinner>
21
+ </button>
@@ -0,0 +1,123 @@
1
+ :host {
2
+ width: 100%;
3
+ }
4
+
5
+ .button {
6
+ width: 100%;
7
+ height: 30px;
8
+ outline: none;
9
+ border: none;
10
+ text-align: center;
11
+ color: var(--default);
12
+ background-color: transparent;
13
+ box-shadow: 0 0 0 1px rgba(43, 45, 80, 0.1),
14
+ 0 2px 5px 0 rgba(43, 45, 80, 0.08), 0 1px 1.5px 0 rgba(0, 0, 0, 0.07),
15
+ 0 1px 2px 0 rgba(0, 0, 0, 0.08);
16
+ line-height: 1.5;
17
+ font-size: 14px;
18
+ font-weight: 500;
19
+ display: inline-block;
20
+ margin-inline-start: auto;
21
+ white-space: nowrap;
22
+ vertical-align: middle;
23
+ user-select: none;
24
+ transition: 0.3s;
25
+ cursor: pointer;
26
+ &:hover {
27
+ box-shadow: 0 0 0 1px rgba(43, 45, 80, 0.1),
28
+ 0 2px 5px 0 rgba(43, 45, 80, 0.1), 0 3px 9px 0 rgba(43, 45, 80, 0.08),
29
+ 0 1px 1.5px 0 rgba(0, 0, 0, 0.08), 0 1px 2px 0 rgba(0, 0, 0, 0.08);
30
+ }
31
+ &.small {
32
+ height: 30px;
33
+ border-radius: 8px !important;
34
+ }
35
+ &.medium {
36
+ height: 38px;
37
+ }
38
+ &.round {
39
+ border: 2px solid #7b1fa2;
40
+ height: 44px;
41
+ border-radius: 30px;
42
+ background-color: #7b1fa2;
43
+ &:hover {
44
+ color: #fff;
45
+ background-color: #7b1fa2;
46
+ }
47
+
48
+ &:active {
49
+ color: #fff;
50
+ background-color: #7b1fa2;
51
+ }
52
+
53
+ &.disabled {
54
+ cursor: not-allowed;
55
+ opacity: 0.4;
56
+ }
57
+ }
58
+ &.Orange {
59
+ background-color: #fc6a15;
60
+ color: #fff !important;
61
+ }
62
+ &.White {
63
+ background-color: #fff;
64
+ }
65
+
66
+ &.success {
67
+ color: var(--success-button-color);
68
+ &:active {
69
+ background-color: var(--success-button-background-color);
70
+ box-shadow: none;
71
+ }
72
+ }
73
+
74
+ &.warning {
75
+ color: var(--warning-button-color);
76
+ &:active {
77
+ background-color: var(--warning-button-background-color);
78
+ box-shadow: none;
79
+ }
80
+ }
81
+
82
+ &.default {
83
+ color: var(--default-button-color);
84
+ &:active {
85
+ background-color: var(--default-button-background-color);
86
+ box-shadow: none;
87
+ }
88
+ }
89
+
90
+ &.primary {
91
+ color: var(--primary-button-color);
92
+ &:active {
93
+ background-color: var(--primary-button-background-color);
94
+ box-shadow: none;
95
+ }
96
+ }
97
+
98
+ &.danger {
99
+ color: var(--danger-button-color);
100
+ &:active {
101
+ background-color: var(--danger-button-background-color);
102
+ box-shadow: none;
103
+ }
104
+ }
105
+
106
+ &.square {
107
+ padding-inline: 16px;
108
+ border-radius: 0.25rem;
109
+
110
+ &.disabled {
111
+ cursor: not-allowed;
112
+ opacity: 0.4;
113
+ }
114
+ }
115
+ }
116
+ .loading {
117
+ display: inline-block;
118
+ float: inline-end;
119
+ margin-inline-end: 8px;
120
+ }
121
+ .cursorLoading {
122
+ cursor: wait;
123
+ }
@@ -0,0 +1,20 @@
1
+ <button
2
+ (click)="clicked()"
3
+ [ngClass]="[
4
+ 'button',
5
+ disable ? 'disabled' : '',
6
+ theme,
7
+ colorState,
8
+ size,
9
+ loading ? 'cursorLoading' : ''
10
+ ]"
11
+ [type]="buttonType"
12
+ >
13
+ <ng-content *ngIf="!loading"></ng-content>
14
+ <core-spinner
15
+ *ngIf="loading"
16
+ class="loading"
17
+ [colorState]="colorState"
18
+ [size]="20"
19
+ ></core-spinner>
20
+ </button>
@@ -0,0 +1,115 @@
1
+ :host {
2
+ width: 100%;
3
+ }
4
+
5
+ .button {
6
+ width: 100%;
7
+ height: 30px;
8
+ outline: none;
9
+ border: none;
10
+ text-align: center;
11
+ color: var(--default);
12
+ background-color: transparent;
13
+ box-shadow: 0 0 0 1px rgba(43, 45, 80, 0.1),
14
+ 0 2px 5px 0 rgba(43, 45, 80, 0.08), 0 1px 1.5px 0 rgba(0, 0, 0, 0.07),
15
+ 0 1px 2px 0 rgba(0, 0, 0, 0.08);
16
+ line-height: 1.5;
17
+ font-size: 14px;
18
+ font-weight: 500;
19
+ display: inline-block;
20
+ margin-inline-start: auto;
21
+ white-space: nowrap;
22
+ vertical-align: middle;
23
+ user-select: none;
24
+ transition: 0.3s;
25
+ cursor: pointer;
26
+ &:hover {
27
+ box-shadow: 0 0 0 1px rgba(43, 45, 80, 0.1),
28
+ 0 2px 5px 0 rgba(43, 45, 80, 0.1), 0 3px 9px 0 rgba(43, 45, 80, 0.08),
29
+ 0 1px 1.5px 0 rgba(0, 0, 0, 0.08), 0 1px 2px 0 rgba(0, 0, 0, 0.08);
30
+ }
31
+ &.small {
32
+ height: 30px;
33
+ }
34
+ &.medium {
35
+ height: 38px;
36
+ }
37
+ &.round {
38
+ border: 2px solid #7b1fa2;
39
+ height: 44px;
40
+ border-radius: 30px;
41
+ background-color: #7b1fa2;
42
+ &:hover {
43
+ color: #fff;
44
+ background-color: #7b1fa2;
45
+ }
46
+
47
+ &:active {
48
+ color: #fff;
49
+ background-color: #7b1fa2;
50
+ }
51
+
52
+ &.disabled {
53
+ cursor: not-allowed;
54
+ opacity: 0.4;
55
+ }
56
+ }
57
+
58
+ &.success {
59
+ color: var(--success-button-color);
60
+ &:active {
61
+ background-color: var(--success-button-background-color);
62
+ box-shadow: none;
63
+ }
64
+ }
65
+
66
+ &.warning {
67
+ color: var(--warning-button-color);
68
+ &:active {
69
+ background-color: var(--warning-button-background-color);
70
+ box-shadow: none;
71
+ }
72
+ }
73
+
74
+ &.default {
75
+ color: var(--default-button-color);
76
+ &:active {
77
+ background-color: var(--default-button-background-color);
78
+ box-shadow: none;
79
+ }
80
+ }
81
+
82
+ &.primary {
83
+ color: var(--primary-button-color);
84
+ &:active {
85
+ background-color: var(--primary-button-background-color);
86
+ box-shadow: none;
87
+ }
88
+ }
89
+
90
+ &.danger {
91
+ color: var(--danger-button-color);
92
+ &:active {
93
+ background-color: var(--danger-button-background-color);
94
+ box-shadow: none;
95
+ }
96
+ }
97
+
98
+ &.square {
99
+ padding-inline: 16px;
100
+ border-radius: 0.25rem;
101
+
102
+ &.disabled {
103
+ cursor: not-allowed;
104
+ opacity: 0.4;
105
+ }
106
+ }
107
+ }
108
+ .loading {
109
+ display: inline-block;
110
+ float: inline-end;
111
+ margin-inline-end: 8px;
112
+ }
113
+ .cursorLoading {
114
+ cursor: wait;
115
+ }
@@ -0,0 +1,54 @@
1
+ import { Component, EventEmitter, Input, Output } from '@angular/core';
2
+ import { NiraModalService } from 'nira-modal';
3
+ import {
4
+ ButtonSize,
5
+ ButtonType,
6
+ Color,
7
+ ColorState,
8
+ ConfirmDialog,
9
+ ThemePalette,
10
+ } from '../falconTypes';
11
+ import { CoreConfirmDialogComponent } from '../core-confirm-dialog/core-confirm-dialog.component';
12
+ import { FormGroup } from '@angular/forms';
13
+ import { environment } from '../../environments/environment';
14
+
15
+ @Component({
16
+ selector: 'core-btn',
17
+ templateUrl: './core-btn' + environment.tempName,
18
+ styleUrls: ['./core-btn' + environment.styleName],
19
+ })
20
+ export class CoreBtnComponent {
21
+ disable = false;
22
+ @Input() formGroup: FormGroup | undefined = undefined;
23
+ @Input() loading: boolean = false;
24
+ @Input() theme: ThemePalette = 'square';
25
+ @Input() buttonType: ButtonType = 'button';
26
+ @Input() size: ButtonSize = 'small';
27
+ @Input() color: Color = 'White';
28
+ @Input() set isDisabled(value: boolean) {
29
+ this.disable = value;
30
+ }
31
+ @Input() colorState: ColorState = 'default';
32
+ @Output() btnClicked: EventEmitter<any> = new EventEmitter();
33
+ @Input() confirmDialog: ConfirmDialog | undefined;
34
+ constructor(private niraModalService: NiraModalService) {}
35
+ clicked() {
36
+ if (!this.disable) {
37
+ if (this.confirmDialog != undefined) {
38
+ const modal = this.niraModalService.open(CoreConfirmDialogComponent, {
39
+ data: this.confirmDialog,
40
+ });
41
+ modal.afterClosed.subscribe((result) => {
42
+ if (result === 'true') {
43
+ this.btnClicked.emit();
44
+ }
45
+ });
46
+ } else {
47
+ this.btnClicked.emit();
48
+ }
49
+ }
50
+ if (this.formGroup) {
51
+ this.formGroup.markAllAsTouched();
52
+ }
53
+ }
54
+ }
@@ -0,0 +1,3 @@
1
+ <div class="h-min rounded-lg shadow-md" [class]="cardClass">
2
+ <ng-content></ng-content>
3
+ </div>
File without changes
@@ -0,0 +1,10 @@
1
+ import { Component, Input } from '@angular/core';
2
+
3
+ @Component({
4
+ selector: 'core-card',
5
+ templateUrl: './core-card.component.html',
6
+ styleUrls: ['./core-card.component.scss'],
7
+ })
8
+ export class CoreCardComponent {
9
+ @Input() cardClass = 'bg-white';
10
+ }