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
@@ -0,0 +1,14 @@
1
+ .active {
2
+ background: var(--default-table-status-column-active-background-color);
3
+ color: var(--default-table-status-column-active-text-color);
4
+ border-radius: 16px;
5
+ padding: 2px 12px 2px 12px;
6
+ font-size: smaller;
7
+ }
8
+ .deActive {
9
+ color: var(--default-table-status-column-deActive-text-color);
10
+ background: var(--default-table-status-column-deActive-background-color);
11
+ border-radius: 16px;
12
+ padding: 2px 12px 2px 12px;
13
+ font-size: smaller;
14
+ }
@@ -0,0 +1,11 @@
1
+ import { Component, Input } from '@angular/core';
2
+
3
+ @Component({
4
+ selector: 'app-core-table-status-column',
5
+ templateUrl: './core-table-status-column.component.html',
6
+ styleUrls: ['./core-table-status-column.component.scss'],
7
+ })
8
+ export class CoreTableStatusColumnComponent {
9
+ @Input({ required: true }) data!: any;
10
+ @Input({ required: true }) column!: any;
11
+ }
@@ -0,0 +1,18 @@
1
+ <div class="text-area-sec">
2
+ <textarea
3
+ rows="4"
4
+ (change)="change()"
5
+ [formControl]="textareaFormControl"
6
+ [ngClass]="{ 'have-value': textareaFormControl.value }"
7
+ ></textarea>
8
+ <label>{{ placeholder }} </label>
9
+ <div class="label-error overflow-hidden">
10
+ <span
11
+ *ngIf="
12
+ (textareaFormControl.touched || textareaFormControl.dirty) &&
13
+ textareaFormControl.errors?.['required']
14
+ "
15
+ >این فیلد خالی است</span
16
+ >
17
+ </div>
18
+ </div>
@@ -0,0 +1,62 @@
1
+ .text-area-sec {
2
+ background: var(--default-textarea-container-background-color);
3
+ position: relative;
4
+
5
+ label {
6
+ position: absolute;
7
+ right: 20px;
8
+ top: 8px;
9
+ color: var(--default-textarea-label-text-color);
10
+ font-size: 14px;
11
+ padding: 0px 8px;
12
+ border-radius: 15px;
13
+ pointer-events: none;
14
+ transition: 0.2s;
15
+ }
16
+
17
+ textarea {
18
+ direction: rtl;
19
+ width: 100%;
20
+ padding: 16px;
21
+ outline: none;
22
+ caret-color: var(--default-textarea-caret-color);
23
+ background-color: var(--default-textarea-background-color);
24
+ color: var(--default-textarea-text-color);
25
+ box-sizing: border-box;
26
+ border: 1px solid var(--default-textarea-border-color);
27
+ border-radius: 0.25rem;
28
+ }
29
+
30
+ textarea {
31
+ &:focus + label,
32
+ &.have-value + label {
33
+ top: -10px;
34
+ font-size: 0.7rem;
35
+ z-index: 1;
36
+ }
37
+
38
+ &:focus + label::after,
39
+ &.have-value + label::after {
40
+ content: "";
41
+ display: block;
42
+ background: white;
43
+ position: absolute;
44
+ width: 100%;
45
+ height: 3px;
46
+ top: 9px;
47
+ right: 0;
48
+ transition: 0.3s;
49
+ z-index: -1;
50
+ }
51
+ }
52
+ }
53
+ .label-error {
54
+ color: var(--default-textarea-validation-text-color);
55
+ font-size: 13px;
56
+ margin-block-start: 4px;
57
+ min-height: 21px;
58
+ text-align: start;
59
+ }
60
+ .error textarea {
61
+ border: 1px solid var(--default-textarea-validation-border-color);
62
+ }
@@ -0,0 +1,31 @@
1
+ import { Component, EventEmitter, Input, Output } from '@angular/core';
2
+ import { FormControl } from '@angular/forms';
3
+
4
+ @Component({
5
+ selector: 'core-textarea',
6
+ templateUrl: './core-textarea.component.html',
7
+ styleUrls: ['./core-textarea.component.scss'],
8
+ })
9
+ export class CoreTextareaComponent {
10
+ @Input() textareaFormControl: FormControl = new FormControl('', []);
11
+ @Input() set model(value: string | null) {
12
+ if (value) {
13
+ this.textareaFormControl.setValue(value);
14
+ }
15
+ }
16
+ @Input() set disable(value: boolean) {
17
+ if (value) {
18
+ this.textareaFormControl.disable();
19
+ } else {
20
+ this.textareaFormControl.enable();
21
+ }
22
+ }
23
+ @Input() placeholder = '';
24
+ @Output() onChange: EventEmitter<string> = new EventEmitter();
25
+
26
+ change() {
27
+ if (!this.textareaFormControl.errors) {
28
+ this.onChange.emit(this.textareaFormControl.value);
29
+ }
30
+ }
31
+ }
@@ -0,0 +1,51 @@
1
+ <div>
2
+ <div
3
+ class="container-input"
4
+ [ngClass]="{
5
+ error:
6
+ (inputFormControl.touched || inputFormControl.dirty) &&
7
+ inputFormControl.errors
8
+ }"
9
+ >
10
+ <time-icon
11
+ (click)="showSelectTimeModal()"
12
+ class="absolute left-3 top-3 fill-secondary-text-color h-5 cursor-pointer"
13
+ ></time-icon>
14
+ <input
15
+ [type]="'text'"
16
+ class="a-input-style have-value"
17
+ (keyup)="change($event)"
18
+ [formControl]="inputFormControl"
19
+ (blur)="onBlur()"
20
+ (paste)="onPaste($event)"
21
+ (keypress)="onKeyPress()"
22
+ [ngClass]="{
23
+ 'have-value': inputFormControl.value.toString().length > 0,
24
+ 'highlight-background':
25
+ canHighlightBackground &&
26
+ inputFormControl.value.toString().length === 0 &&
27
+ !(
28
+ (inputFormControl.touched || inputFormControl.dirty) &&
29
+ inputFormControl.errors
30
+ ),
31
+ }"
32
+ />
33
+
34
+ <label *ngIf="placeholder.length > 0">{{ placeholder }} </label>
35
+ <div class="label-error overflow-hidden">
36
+ <span
37
+ *ngIf="
38
+ (inputFormControl.touched || inputFormControl.dirty) &&
39
+ inputFormControl.errors?.['required']
40
+ "
41
+ >این فیلد خالی است</span
42
+ ><span
43
+ *ngIf="
44
+ (inputFormControl.touched || inputFormControl.dirty) &&
45
+ inputFormControl.errors?.['minlength']
46
+ "
47
+ >فرمت ساعت نامعتبر است</span
48
+ >
49
+ </div>
50
+ </div>
51
+ </div>
@@ -0,0 +1,144 @@
1
+ .container {
2
+ position: relative;
3
+ }
4
+
5
+ input:focus {
6
+ border: 2px solid blue;
7
+ }
8
+
9
+ input {
10
+ border: 1px solid #ced4da;
11
+ border-radius: 0.25rem;
12
+ }
13
+
14
+ .highlight-background {
15
+ background-color: #dcf6ff !important;
16
+ }
17
+
18
+ .icon-style {
19
+ position: absolute;
20
+ right: 16px;
21
+ top: 16px;
22
+ cursor: pointer;
23
+ font-size: 16px;
24
+ }
25
+
26
+ .icon-style-email {
27
+ position: absolute;
28
+ right: 16px;
29
+ top: 16px;
30
+ }
31
+
32
+ .a-input-style {
33
+ height: 42px;
34
+ width: 100%;
35
+ padding: 16px;
36
+ outline: none;
37
+ caret-color: rgba(2, 2, 2, 0.7);
38
+ background-color: rgba(242, 244, 247, 0.15);
39
+ color: rgba(0, 0, 0, 0.7);
40
+ box-sizing: border-box;
41
+ }
42
+
43
+ .a-input-style:focus {
44
+ background-color: rgba(242, 244, 247, 0.05);
45
+ border-radius: 3px;
46
+ border: 1px solid rgba(19, 92, 175, 0.397);
47
+ }
48
+
49
+ .a-input-style::placeholder {
50
+ height: 15px;
51
+ font-style: normal;
52
+ font-weight: normal;
53
+ font-size: 12px;
54
+ line-height: 15px;
55
+ letter-spacing: -0.03em;
56
+ color: rgba(194, 194, 194, 0.7);
57
+ }
58
+
59
+ input:-webkit-autofill,
60
+ input:-webkit-autofill:hover,
61
+ input:-webkit-autofill:focus {
62
+ -webkit-text-fill-color: #ffffff00;
63
+ &.have-value {
64
+ -webkit-text-fill-color: #181818 !important;
65
+ }
66
+ }
67
+ input[type="time"]::-webkit-calendar-picker-indicator {
68
+ display: none;
69
+ background: none;
70
+ }
71
+ /* Chrome, Safari, Edge, Opera */
72
+ input::-webkit-outer-spin-button,
73
+ input::-webkit-inner-spin-button {
74
+ -webkit-appearance: none;
75
+ margin: 0;
76
+ }
77
+
78
+ /* Firefox */
79
+ input[type="number"] {
80
+ -moz-appearance: textfield;
81
+ }
82
+
83
+ .label-error {
84
+ color: red;
85
+ font-size: 13px;
86
+ margin-block-start: 4px;
87
+ min-height: 21px;
88
+ width: 100%;
89
+ display: inline-block !important;
90
+ text-align: start;
91
+ }
92
+
93
+ .label-number {
94
+ color: #6a6a6a;
95
+ }
96
+
97
+ .error input {
98
+ border: 1px solid #fe5f5f;
99
+ }
100
+
101
+ .container-input {
102
+ background: white;
103
+ position: relative;
104
+
105
+ .disable-input {
106
+ background-color: #f7f7f7;
107
+ border: 1px dashed #ced4da;
108
+ pointer-events: none;
109
+ }
110
+ label {
111
+ position: absolute;
112
+ right: 20px;
113
+ top: 12px;
114
+ color: gray;
115
+ font-size: 12px;
116
+ padding: 0px 8px;
117
+ border-radius: 15px;
118
+ pointer-events: none;
119
+ transition: 0.2s;
120
+ }
121
+
122
+ input {
123
+ &:focus + label,
124
+ &.have-value + label {
125
+ top: -10px;
126
+ font-size: 10px;
127
+ z-index: 3;
128
+ }
129
+
130
+ &:focus + label::after,
131
+ &.have-value + label::after {
132
+ content: "";
133
+ display: block;
134
+ background: rgb(255, 255, 255);
135
+ position: absolute;
136
+ width: 100%;
137
+ height: 1px;
138
+ top: 10px;
139
+ right: 0;
140
+ transition: 0.3s;
141
+ z-index: -1;
142
+ }
143
+ }
144
+ }
@@ -0,0 +1,102 @@
1
+ import { Component, EventEmitter, Input, Output } from '@angular/core';
2
+ import { FormControl, Validators } from '@angular/forms';
3
+ import { NiraModalService } from 'nira-modal';
4
+ import { TimePickerModalComponent } from './time-picker-modal/time-picker-modal.component';
5
+
6
+ @Component({
7
+ selector: 'core-time-picker',
8
+ templateUrl: './core-time-picker.component.html',
9
+ styleUrls: ['./core-time-picker.component.scss'],
10
+ })
11
+ export class CoreTimePickerComponent {
12
+ @Output() onSelect: EventEmitter<string> = new EventEmitter<string>();
13
+ @Output() onBlurEmit: EventEmitter<string> = new EventEmitter();
14
+ @Input() placeholder: string = '';
15
+ @Input() canHighlightBackground = false;
16
+ @Input() setCurrentTime = false;
17
+ @Input() inputFormControl: FormControl = new FormControl('', []);
18
+ selectedTime: string = '';
19
+ @Input() set defaultValue(data: string) {
20
+ this.selectedTime = data;
21
+ }
22
+ @Input() maxLength = 2000;
23
+ constructor(private niraModalService: NiraModalService) {}
24
+
25
+ ngOnInit(): void {
26
+ this.inputFormControl.addValidators(Validators.minLength(5));
27
+ if (this.setCurrentTime) {
28
+ var currentTime = new Date();
29
+ this.selectedTime =
30
+ String(
31
+ currentTime.getHours().toString().length > 1
32
+ ? currentTime.getHours().toString()
33
+ : '0' + currentTime.getHours().toString()
34
+ ) +
35
+ ':' +
36
+ String(
37
+ currentTime.getMinutes().toString().length > 1
38
+ ? currentTime.getMinutes().toString()
39
+ : '0' + currentTime.getMinutes().toString()
40
+ );
41
+
42
+ this.inputFormControl.setValue(this.selectedTime);
43
+ this.onSelect.emit(this.selectedTime);
44
+ }
45
+ }
46
+
47
+ showSelectTimeModal() {
48
+ const modal = this.niraModalService.open(TimePickerModalComponent, {
49
+ outsideClose: true,
50
+ data: this.selectedTime,
51
+ });
52
+ modal.afterClosed.subscribe((time: any) => {
53
+ if (time) {
54
+ this.selectedTime = time;
55
+ this.inputFormControl.setValue(this.selectedTime);
56
+ this.onSelect.emit(time);
57
+ }
58
+ });
59
+ }
60
+
61
+ focusOut() {
62
+ setTimeout(() => {
63
+ this.inputFormControl.markAsTouched();
64
+ }, 100);
65
+ }
66
+
67
+ change(event: any) {
68
+ setTimeout(() => {
69
+ let value = event.srcElement.value;
70
+ value = value.replaceAll(':', '');
71
+ if (isNaN(value)) {
72
+ this.inputFormControl.setValue('');
73
+ } else {
74
+ const formatValue = value
75
+ .toString()
76
+ .replace(/\B(?=(\d{2})+(?!\d))/g, ':');
77
+ this.inputFormControl.setValue(formatValue);
78
+ }
79
+ if (!this.inputFormControl.errors) {
80
+ this.onSelect.emit(this.inputFormControl.value);
81
+ }
82
+ }, 10);
83
+ }
84
+ onPaste(event: any) {
85
+ setTimeout(() => {
86
+ const value = event.srcElement.value;
87
+ this.inputFormControl.markAsTouched();
88
+ this.inputFormControl.setValue(value);
89
+ this.onSelect.emit(value);
90
+ }, 10);
91
+ }
92
+ onBlur() {
93
+ this.onBlurEmit.emit(this.inputFormControl.value);
94
+ }
95
+ onKeyPress() {
96
+ if (this.inputFormControl.value.toString().length > 4) {
97
+ return false;
98
+ } else {
99
+ return true;
100
+ }
101
+ }
102
+ }
@@ -0,0 +1,50 @@
1
+ <div class="timepicker">
2
+ <div class="top">
3
+ <span class="h" (click)="onHourClick()" [class.active]="showHour">10</span
4
+ >:<span class="m" (click)="onMinutesClick()" [class.active]="showMin"
5
+ >15</span
6
+ >
7
+ </div>
8
+ <div class="circle">
9
+ <div *ngIf="showHour">
10
+ <div
11
+ class="hour"
12
+ *ngFor="let hour of hoursSubject | async"
13
+ [style]="{ left: hour.left, top: hour.top }"
14
+ (click)="onHourSelect(hour)"
15
+ >
16
+ {{ hour.text }}
17
+ </div>
18
+ <div
19
+ class="hour2"
20
+ *ngFor="let hour of hours2Subject | async"
21
+ [style]="{ left: hour.left, top: hour.top }"
22
+ (click)="onHourSelect(hour)"
23
+ >
24
+ {{ hour.text }}
25
+ </div>
26
+ <div class="mid"></div>
27
+ </div>
28
+ <div *ngIf="showMin">
29
+ <div
30
+ class="min"
31
+ *ngFor="let hour of minutesSubject | async"
32
+ [style]="{ left: hour.left, top: hour.top }"
33
+ (click)="onMinutesSelect(hour)"
34
+ >
35
+ {{ hour.text }}
36
+ </div>
37
+ <div class="mid"></div>
38
+ </div>
39
+ </div>
40
+ <div class="actions">
41
+ <core-btn
42
+ class="action ok"
43
+ (btnClicked)="submit()"
44
+ [colorState]="'success'"
45
+ >
46
+ انتخاب
47
+ </core-btn>
48
+ <core-btn class="action close" (btnClicked)="close()"> بستن </core-btn>
49
+ </div>
50
+ </div>