@dflat-core/web 1.0.0-beta

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 (555) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +94 -0
  3. package/assets/bootswatch.scss +100 -0
  4. package/assets/buttons.scss +70 -0
  5. package/assets/components/datagrid.scss +138 -0
  6. package/assets/components/fonts.scss +24 -0
  7. package/assets/components/login.scss +59 -0
  8. package/assets/components/menu.scss +0 -0
  9. package/assets/components/modals.scss +62 -0
  10. package/assets/components/select.scss +387 -0
  11. package/assets/fonts/ErasITC-Bold/ErasITC-Bold.eot +0 -0
  12. package/assets/fonts/ErasITC-Bold/ErasITC-Bold.svg +748 -0
  13. package/assets/fonts/ErasITC-Bold/ErasITC-Bold.ttf +0 -0
  14. package/assets/fonts/ErasITC-Bold/ErasITC-Bold.woff +0 -0
  15. package/assets/fonts/SegoeUI/SegoeUI.eot +0 -0
  16. package/assets/fonts/SegoeUI/SegoeUI.svg +15203 -0
  17. package/assets/fonts/SegoeUI/SegoeUI.ttf +0 -0
  18. package/assets/fonts/SegoeUI/SegoeUI.woff +0 -0
  19. package/assets/fonts/SegoeUI/preview.html +132 -0
  20. package/assets/fonts/SegoeUI/styles.css +7 -0
  21. package/assets/fonts/SegoeUI-Light/SegoeUI-Light.eot +0 -0
  22. package/assets/fonts/SegoeUI-Light/SegoeUI-Light.svg +27429 -0
  23. package/assets/fonts/SegoeUI-Light/SegoeUI-Light.ttf +0 -0
  24. package/assets/fonts/SegoeUI-Light/SegoeUI-Light.woff +0 -0
  25. package/assets/fonts/SegoeUI-Light/preview.html +132 -0
  26. package/assets/fonts/SegoeUI-Light/styles.css +7 -0
  27. package/assets/forms.scss +342 -0
  28. package/assets/images/Algerie.png +0 -0
  29. package/assets/images/Burkina Faso.png +0 -0
  30. package/assets/images/Cameroun.png +0 -0
  31. package/assets/images/Cara/303/257bes.png +0 -0
  32. package/assets/images/Congo.png +0 -0
  33. package/assets/images/C/303/264te d'Ivoire.png +0 -0
  34. package/assets/images/France.png +0 -0
  35. package/assets/images/Gabon.png +0 -0
  36. package/assets/images/Ile Maurice.png +0 -0
  37. package/assets/images/LogoMarsow.svg +1 -0
  38. package/assets/images/Maroc.png +0 -0
  39. package/assets/images/Menu.svg +3 -0
  40. package/assets/images/R/303/251union.png +0 -0
  41. package/assets/images/S/303/251n/303/251gal.png +0 -0
  42. package/assets/images/Tunisie.png +0 -0
  43. package/assets/images/Unchecked.svg +25 -0
  44. package/assets/images/account.svg +3 -0
  45. package/assets/images/adresslabel1.svg +3 -0
  46. package/assets/images/adresslabel2.svg +3 -0
  47. package/assets/images/allergen.svg +3 -0
  48. package/assets/images/arrow-up-1-9.svg +1 -0
  49. package/assets/images/attention.svg +3 -0
  50. package/assets/images/backward.svg +1 -0
  51. package/assets/images/ban.svg +1 -0
  52. package/assets/images/book-open.svg +1 -0
  53. package/assets/images/book-solid.svg +2 -0
  54. package/assets/images/border-all.svg +1 -0
  55. package/assets/images/boxes-packing-solid.svg +2 -0
  56. package/assets/images/calculator-solid.svg +1 -0
  57. package/assets/images/calendar.svg +3 -0
  58. package/assets/images/chatting.svg +3 -0
  59. package/assets/images/check.svg +3 -0
  60. package/assets/images/checkmark.png +0 -0
  61. package/assets/images/circle-check-solid.svg +2 -0
  62. package/assets/images/circle-info.svg +1 -0
  63. package/assets/images/circle-radiation-solid.svg +2 -0
  64. package/assets/images/circle-solid.svg +1 -0
  65. package/assets/images/circlecheck.svg +3 -0
  66. package/assets/images/circlecross.svg +3 -0
  67. package/assets/images/circleminus.svg +3 -0
  68. package/assets/images/circleplus.svg +3 -0
  69. package/assets/images/circularoption.svg +1 -0
  70. package/assets/images/circularoptionselected.svg +1 -0
  71. package/assets/images/classification-tool.svg +3 -0
  72. package/assets/images/click-collect.svg +1 -0
  73. package/assets/images/clientlocation.svg +9 -0
  74. package/assets/images/cloud-arrow-down-solid.svg +1 -0
  75. package/assets/images/cloud-arrow-up-solid.svg +1 -0
  76. package/assets/images/contact.svg +3 -0
  77. package/assets/images/cross.svg +3 -0
  78. package/assets/images/delivery-square.svg +32 -0
  79. package/assets/images/delivery.svg +3 -0
  80. package/assets/images/deliverymanlocation.svg +28 -0
  81. package/assets/images/dolly-solid.svg +1 -0
  82. package/assets/images/down.svg +3 -0
  83. package/assets/images/download.svg +1 -0
  84. package/assets/images/edition.svg +3 -0
  85. package/assets/images/email.svg +3 -0
  86. package/assets/images/emptyheart.svg +3 -0
  87. package/assets/images/emptystar.svg +3 -0
  88. package/assets/images/erase.svg +1 -0
  89. package/assets/images/error.png +0 -0
  90. package/assets/images/error.svg +1 -0
  91. package/assets/images/favicon.ico +0 -0
  92. package/assets/images/file-arrow-down-solid.svg +2 -0
  93. package/assets/images/file-arrow-up-solid.svg +1 -0
  94. package/assets/images/file-csv-solid.svg +2 -0
  95. package/assets/images/file-excel-solid.svg +2 -0
  96. package/assets/images/file-export-solid.svg +1 -0
  97. package/assets/images/file-image-solid.svg +2 -0
  98. package/assets/images/file-invoice-solid.svg +2 -0
  99. package/assets/images/file-lines-solid.svg +2 -0
  100. package/assets/images/file-pdf-solid.svg +2 -0
  101. package/assets/images/file-solid.svg +2 -0
  102. package/assets/images/file-word-solid.svg +2 -0
  103. package/assets/images/file-zipper-solid.svg +2 -0
  104. package/assets/images/files-o.svg +1 -0
  105. package/assets/images/filter-circle-xmark-solid.svg +1 -0
  106. package/assets/images/filter-solid.svg +2 -0
  107. package/assets/images/filter.svg +3 -0
  108. package/assets/images/filter1.svg +3 -0
  109. package/assets/images/filter2.svg +3 -0
  110. package/assets/images/filterdelete.svg +3 -0
  111. package/assets/images/folder.svg +3 -0
  112. package/assets/images/forward.svg +1 -0
  113. package/assets/images/fullheart.svg +3 -0
  114. package/assets/images/fullstar.svg +3 -0
  115. package/assets/images/halfstar.svg +3 -0
  116. package/assets/images/hand-point-down.svg +1 -0
  117. package/assets/images/hand-point-left.svg +1 -0
  118. package/assets/images/hand-point-right.svg +1 -0
  119. package/assets/images/hand-point-up.svg +1 -0
  120. package/assets/images/history.svg +4 -0
  121. package/assets/images/home.svg +3 -0
  122. package/assets/images/info-circle.svg +1 -0
  123. package/assets/images/information.png +0 -0
  124. package/assets/images/ingredient.svg +3 -0
  125. package/assets/images/left.svg +3 -0
  126. package/assets/images/location.svg +3 -0
  127. package/assets/images/map-marker.svg +6 -0
  128. package/assets/images/map.svg +3 -0
  129. package/assets/images/minus.svg +3 -0
  130. package/assets/images/neworder.svg +3 -0
  131. package/assets/images/notification.svg +3 -0
  132. package/assets/images/ordercollected.svg +3 -0
  133. package/assets/images/orderconfirmed.svg +8 -0
  134. package/assets/images/orderdelivered.svg +3 -0
  135. package/assets/images/orderindelivering.svg +3 -0
  136. package/assets/images/orderinpreparation.svg +3 -0
  137. package/assets/images/orderprepared.svg +3 -0
  138. package/assets/images/orderrefused.svg +8 -0
  139. package/assets/images/pencil.svg +1 -0
  140. package/assets/images/picture-editor-V3.svg +11 -0
  141. package/assets/images/picture-export-v3.svg +5 -0
  142. package/assets/images/picture-import-v3.svg +5 -0
  143. package/assets/images/plus-square.svg +1 -0
  144. package/assets/images/plus.svg +3 -0
  145. package/assets/images/power-off.svg +1 -0
  146. package/assets/images/print.svg +3 -0
  147. package/assets/images/refresh.svg +1 -0
  148. package/assets/images/return.svg +40 -0
  149. package/assets/images/right.svg +3 -0
  150. package/assets/images/sale.svg +3 -0
  151. package/assets/images/save.svg +2 -0
  152. package/assets/images/schedule.svg +3 -0
  153. package/assets/images/search-sprite.png +0 -0
  154. package/assets/images/search.svg +3 -0
  155. package/assets/images/selection.svg +3 -0
  156. package/assets/images/separator_back.png +0 -0
  157. package/assets/images/setting.svg +3 -0
  158. package/assets/images/ship-solid.svg +1 -0
  159. package/assets/images/shoppingbag.svg +3 -0
  160. package/assets/images/squareoption.svg +1 -0
  161. package/assets/images/squareoptionselected.svg +1 -0
  162. package/assets/images/star-of-life-solid.svg +2 -0
  163. package/assets/images/step-backward.svg +7 -0
  164. package/assets/images/step-forward.svg +7 -0
  165. package/assets/images/store-square.svg +19 -0
  166. package/assets/images/store.png +0 -0
  167. package/assets/images/store.svg +3 -0
  168. package/assets/images/storelocation.svg +6 -0
  169. package/assets/images/table-columns.svg +1 -0
  170. package/assets/images/tag.svg +22 -0
  171. package/assets/images/times-circle-solid.svg +1 -0
  172. package/assets/images/trash-o.svg +3 -0
  173. package/assets/images/triangle-down.svg +3 -0
  174. package/assets/images/triangle-up.svg +3 -0
  175. package/assets/images/truck-solid.svg +1 -0
  176. package/assets/images/up.svg +3 -0
  177. package/assets/images/upload.svg +1 -0
  178. package/assets/images/user-square.svg +10 -0
  179. package/assets/images/user.svg +13 -0
  180. package/assets/images/warning.png +0 -0
  181. package/assets/images/warning.svg +5 -0
  182. package/assets/images/watch.svg +3 -0
  183. package/assets/modals.scss +104 -0
  184. package/assets/property.scss +113 -0
  185. package/assets/shared.scss +157 -0
  186. package/assets/site.scss +374 -0
  187. package/assets/text.scss +162 -0
  188. package/assets/variables.scss +91 -0
  189. package/core/index.d.ts +6 -0
  190. package/core/lib/array.function.d.ts +8 -0
  191. package/core/lib/core.module.d.ts +9 -0
  192. package/core/lib/global/EnvironmentBase.d.ts +7 -0
  193. package/core/lib/nameof.function.d.ts +4 -0
  194. package/core/lib/services/ensuremoduleloadedonceguard.d.ts +3 -0
  195. package/core/lib/services/utilities.service.d.ts +87 -0
  196. package/core-data/index.d.ts +3 -0
  197. package/core-data/lib/core-data.module.d.ts +7 -0
  198. package/core-data/lib/services/data-service.d.ts +68 -0
  199. package/core-data/lib/services/entity-data-service.d.ts +37 -0
  200. package/core-model/index.d.ts +4 -0
  201. package/core-model/lib/core-model.module.d.ts +7 -0
  202. package/core-model/lib/interface.d.ts +140 -0
  203. package/core-model/lib/model/interface.generated.d.ts +286 -0
  204. package/core-model/lib/model/model.d.ts +38 -0
  205. package/core-services/index.d.ts +23 -0
  206. package/core-services/lib/core-services.module.d.ts +10 -0
  207. package/core-services/lib/model/model.d.ts +25 -0
  208. package/core-services/lib/services/app-keys.d.ts +15 -0
  209. package/core-services/lib/services/appConfig.service.d.ts +8 -0
  210. package/core-services/lib/services/auth-guard.service.d.ts +18 -0
  211. package/core-services/lib/services/auth.interceptor.d.ts +15 -0
  212. package/core-services/lib/services/auth.service.d.ts +67 -0
  213. package/core-services/lib/services/breadcrumb.service.d.ts +14 -0
  214. package/core-services/lib/services/busmessage.service.d.ts +19 -0
  215. package/core-services/lib/services/can-activate-guard.service.d.ts +12 -0
  216. package/core-services/lib/services/filter.service.d.ts +15 -0
  217. package/core-services/lib/services/geolocation.service.d.ts +29 -0
  218. package/core-services/lib/services/headers.service.d.ts +15 -0
  219. package/core-services/lib/services/hub.service.d.ts +33 -0
  220. package/core-services/lib/services/local-store-manager.service.d.ts +50 -0
  221. package/core-services/lib/services/menu.service.d.ts +27 -0
  222. package/core-services/lib/services/message.service.d.ts +14 -0
  223. package/core-services/lib/services/notifications.service.d.ts +14 -0
  224. package/core-services/lib/services/permission.service.d.ts +12 -0
  225. package/core-services/lib/services/screen.service.d.ts +14 -0
  226. package/core-services/lib/services/server-url.d.ts +12 -0
  227. package/core-services/lib/services/string.function.d.ts +1 -0
  228. package/core-services/lib/services/user.service.d.ts +22 -0
  229. package/core-ux/index.d.ts +144 -0
  230. package/core-ux/lib/components/actions/actions-content.component.d.ts +10 -0
  231. package/core-ux/lib/components/actions/actions.component.d.ts +57 -0
  232. package/core-ux/lib/components/actions/extended-action/extended-action.component.d.ts +34 -0
  233. package/core-ux/lib/components/base-editor/base-editor.component.d.ts +93 -0
  234. package/core-ux/lib/components/base-item-list/base-item-list.component.d.ts +21 -0
  235. package/core-ux/lib/components/basefilter/basefilter.component.d.ts +275 -0
  236. package/core-ux/lib/components/breadcrumb/breadcrumb.component.d.ts +12 -0
  237. package/core-ux/lib/components/datagrid-custom/datagrid-cell/datagrid-cell.component.d.ts +32 -0
  238. package/core-ux/lib/components/datagrid-custom/datagrid-custom.component.d.ts +159 -0
  239. package/core-ux/lib/components/datagrid-custom/datagrid-sorter.component.d.ts +15 -0
  240. package/core-ux/lib/components/datapage/layout-page/page-layout.component.d.ts +13 -0
  241. package/core-ux/lib/components/datapage/old/old.datapage.component.d.ts +10 -0
  242. package/core-ux/lib/components/datapage/old-layout-handler.directive.d.ts +31 -0
  243. package/core-ux/lib/components/dynamic-components/dynamic-field/dynamic-field.component.d.ts +41 -0
  244. package/core-ux/lib/components/dynamic-components/dynamic-filter/dynamic-filter-extra.component.d.ts +27 -0
  245. package/core-ux/lib/components/dynamic-components/dynamic-filter/dynamic-filter-panel.component.d.ts +8 -0
  246. package/core-ux/lib/components/dynamic-components/dynamic-filter/dynamic-filter.component.d.ts +54 -0
  247. package/core-ux/lib/components/dynamic-components/dynamic-form/dynamic-form.component.d.ts +122 -0
  248. package/core-ux/lib/components/filtersummary/filtersummary.component.d.ts +27 -0
  249. package/core-ux/lib/components/form-password/form-password.component.d.ts +9 -0
  250. package/core-ux/lib/components/grid-row/grid-row.component.d.ts +12 -0
  251. package/core-ux/lib/components/image-display/image.component.d.ts +20 -0
  252. package/core-ux/lib/components/input-selector/input-selector.component.d.ts +50 -0
  253. package/core-ux/lib/components/input-tree-selector/input-tree-selector.component.d.ts +25 -0
  254. package/core-ux/lib/components/logs/logs.component.d.ts +32 -0
  255. package/core-ux/lib/components/menu/menu.component.d.ts +39 -0
  256. package/core-ux/lib/components/menu-dashboard/menu-dashboard.component.d.ts +15 -0
  257. package/core-ux/lib/components/paginator/paginator.component.d.ts +17 -0
  258. package/core-ux/lib/components/parameter-field/parameter-field.component.d.ts +13 -0
  259. package/core-ux/lib/components/parameter-field/parameter-types/base-array-parameter-type.component.d.ts +16 -0
  260. package/core-ux/lib/components/parameter-field/parameter-types/base-parameter-type.component.d.ts +21 -0
  261. package/core-ux/lib/components/parameter-field/parameter-types/parameter-type-bool/parameter-type-bool.component.d.ts +9 -0
  262. package/core-ux/lib/components/parameter-field/parameter-types/parameter-type-bool-array/parameter-type-bool-array.component.d.ts +12 -0
  263. package/core-ux/lib/components/parameter-field/parameter-types/parameter-type-date/parameter-type-date.component.d.ts +16 -0
  264. package/core-ux/lib/components/parameter-field/parameter-types/parameter-type-date-array/parameter-type-date-array.component.d.ts +17 -0
  265. package/core-ux/lib/components/parameter-field/parameter-types/parameter-type-number/parameter-type-number.component.d.ts +6 -0
  266. package/core-ux/lib/components/parameter-field/parameter-types/parameter-type-number-array/parameter-type-number-array.component.d.ts +6 -0
  267. package/core-ux/lib/components/parameter-field/parameter-types/parameter-type-password/parameter-type-password.component.d.ts +9 -0
  268. package/core-ux/lib/components/parameter-field/parameter-types/parameter-type-text/parameter-type-text.component.d.ts +7 -0
  269. package/core-ux/lib/components/parameter-field/parameter-types/parameter-type-text-array/parameter-type-text-array.component.d.ts +6 -0
  270. package/core-ux/lib/components/property-grid/property-grid.component.d.ts +125 -0
  271. package/core-ux/lib/components/search-results/search-results.component.d.ts +7 -0
  272. package/core-ux/lib/components/tab/tab.component.d.ts +14 -0
  273. package/core-ux/lib/components/tabset/tabset.component.d.ts +15 -0
  274. package/core-ux/lib/components/text-viewer/text-viewer.component.d.ts +21 -0
  275. package/core-ux/lib/components/time-picker/time-picker.component.d.ts +27 -0
  276. package/core-ux/lib/components/tree/tree.component.d.ts +39 -0
  277. package/core-ux/lib/components/validation-error/validation-error.component.d.ts +8 -0
  278. package/core-ux/lib/components/wizard/wizard-step/wizard-step.component.d.ts +26 -0
  279. package/core-ux/lib/components/wizard/wizard.component.d.ts +29 -0
  280. package/core-ux/lib/core-ux.module.d.ts +102 -0
  281. package/core-ux/lib/directives/addclass.directive.d.ts +11 -0
  282. package/core-ux/lib/directives/collapse.directive.d.ts +34 -0
  283. package/core-ux/lib/directives/draggable.directive.d.ts +39 -0
  284. package/core-ux/lib/directives/droppable.directive.d.ts +55 -0
  285. package/core-ux/lib/directives/editMode.directive.d.ts +8 -0
  286. package/core-ux/lib/directives/focusable.directive.d.ts +16 -0
  287. package/core-ux/lib/directives/insertion.directive.d.ts +8 -0
  288. package/core-ux/lib/directives/onEnter.directive.d.ts +11 -0
  289. package/core-ux/lib/directives/tab-heading.d.ts +8 -0
  290. package/core-ux/lib/directives/tab-transclude.d.ts +11 -0
  291. package/core-ux/lib/directives/tooltip.directive.d.ts +16 -0
  292. package/core-ux/lib/directives/validate-on-enter.directive.d.ts +10 -0
  293. package/core-ux/lib/directives/viewMode.directive.d.ts +8 -0
  294. package/core-ux/lib/layout/default/default-layout.d.ts +36 -0
  295. package/core-ux/lib/layout/login/login-layout.d.ts +9 -0
  296. package/core-ux/lib/log.service.d.ts +8 -0
  297. package/core-ux/lib/modals/confirm-modal/confirm-modal.component.d.ts +17 -0
  298. package/core-ux/lib/modals/dialog/dialog.component.d.ts +57 -0
  299. package/core-ux/lib/modals/dialog-component.tokens.d.ts +3 -0
  300. package/core-ux/lib/modals/export-data-modal/export-data-modal.component.d.ts +11 -0
  301. package/core-ux/lib/modals/track-record-modal/track-record-modal.component.d.ts +21 -0
  302. package/core-ux/lib/modals/validation-modal/validation-modal.component.d.ts +24 -0
  303. package/core-ux/lib/model/datagrid.d.ts +194 -0
  304. package/core-ux/lib/model/model.d.ts +222 -0
  305. package/core-ux/lib/model/tree.d.ts +12 -0
  306. package/core-ux/lib/pipes/euro.pipe.d.ts +9 -0
  307. package/core-ux/lib/pipes/todefine.pipe.d.ts +8 -0
  308. package/core-ux/lib/pipes/tofixedsizeinteger.pipe.d.ts +8 -0
  309. package/core-ux/lib/services/action.service.d.ts +42 -0
  310. package/core-ux/lib/services/alert.service.d.ts +51 -0
  311. package/core-ux/lib/services/application.service.d.ts +73 -0
  312. package/core-ux/lib/services/can-deactivate-guard.d.ts +12 -0
  313. package/core-ux/lib/services/drag.service.d.ts +54 -0
  314. package/core-ux/lib/services/fire-authentication.service.d.ts +13 -0
  315. package/core-ux/lib/services/image.service.d.ts +15 -0
  316. package/core-ux/lib/services/modal-state.service.d.ts +26 -0
  317. package/core-ux/lib/services/modal.service.d.ts +30 -0
  318. package/core-ux/lib/services/presentation-profile.token.d.ts +40 -0
  319. package/core-ux/lib/services/selectorMapperBase.service.d.ts +36 -0
  320. package/core-ux/lib/v2/components/actions-panel/action-panel.component.d.ts +48 -0
  321. package/core-ux/lib/v2/components/base-component/base-component.d.ts +80 -0
  322. package/core-ux/lib/v2/components/cell-renderer/cell-renderer.component.d.ts +11 -0
  323. package/core-ux/lib/v2/components/data-grid/data-grid.component.d.ts +104 -0
  324. package/core-ux/lib/v2/components/data-grid/grid-field-descriptor/grid-field.component.d.ts +55 -0
  325. package/core-ux/lib/v2/components/data-list/data-list.component.d.ts +29 -0
  326. package/core-ux/lib/v2/components/editor-tab/editor-tab.component.d.ts +15 -0
  327. package/core-ux/lib/v2/components/editor-tabset/editor-tabset.component.d.ts +18 -0
  328. package/core-ux/lib/v2/components/field-descriptor/field.component.d.ts +61 -0
  329. package/core-ux/lib/v2/components/filter-form/filter-form.component.d.ts +12 -0
  330. package/core-ux/lib/v2/components/filter-summary/filter-summary.component.d.ts +34 -0
  331. package/core-ux/lib/v2/components/new-editor/new-editor.component.d.ts +66 -0
  332. package/core-ux/lib/v2/components/new-paginator/new-paginator.component.d.ts +31 -0
  333. package/core-ux/lib/v2/components/orderable/orderable-modal.component.d.ts +36 -0
  334. package/core-ux/lib/v2/components/orderable/orderable-modal.service.d.ts +11 -0
  335. package/core-ux/lib/v2/components/orderable/orderable.interface.d.ts +52 -0
  336. package/core-ux/lib/v2/components/property-editor/property-editor-component.d.ts +89 -0
  337. package/core-ux/lib/v2/components/selector/selector-registry.service.d.ts +9 -0
  338. package/core-ux/lib/v2/components/selector/selector.component.d.ts +33 -0
  339. package/core-ux/lib/v2/components/selector/selector.model.d.ts +19 -0
  340. package/core-ux/lib/v2/components/standard-page-layout/standard-page-layout.component.d.ts +29 -0
  341. package/core-ux/lib/v2/directives/base-shortcut.directive.d.ts +15 -0
  342. package/core-ux/lib/v2/directives/hide-on-threshold.directive.d.ts +20 -0
  343. package/core-ux/lib/v2/directives/layout-handler.directive.d.ts +54 -0
  344. package/core-ux/lib/v2/directives/row-ref.directive.d.ts +21 -0
  345. package/core-ux/lib/v2/models/aggregation-model.d.ts +8 -0
  346. package/core-ux/lib/v2/models/contexts/action-context.d.ts +66 -0
  347. package/core-ux/lib/v2/models/contexts/action-handler-context.d.ts +49 -0
  348. package/core-ux/lib/v2/models/contexts/base-form-context.d.ts +42 -0
  349. package/core-ux/lib/v2/models/contexts/change-detection-context.d.ts +41 -0
  350. package/core-ux/lib/v2/models/contexts/data-context.d.ts +25 -0
  351. package/core-ux/lib/v2/models/contexts/data-grid-style-context.d.ts +36 -0
  352. package/core-ux/lib/v2/models/contexts/editor-context.d.ts +30 -0
  353. package/core-ux/lib/v2/models/contexts/entity-config-context.d.ts +49 -0
  354. package/core-ux/lib/v2/models/contexts/filter-context.d.ts +49 -0
  355. package/core-ux/lib/v2/models/contexts/layout-context.d.ts +57 -0
  356. package/core-ux/lib/v2/models/contexts/logger-context.d.ts +5 -0
  357. package/core-ux/lib/v2/models/contexts/section-context.d.ts +73 -0
  358. package/core-ux/lib/v2/models/contexts/selection-context.d.ts +45 -0
  359. package/core-ux/lib/v2/models/entity-facade.d.ts +35 -0
  360. package/core-ux/lib/v2/models/guards/facade-load-guard.d.ts +35 -0
  361. package/core-ux/lib/v2/models/guards/filter-lifecycle-guard.d.ts +29 -0
  362. package/core-ux/lib/v2/models/states/sorting-state.d.ts +14 -0
  363. package/core-ux/lib/v2/models/utilities/action-definition.d.ts +38 -0
  364. package/core-ux/lib/v2/models/utilities/change-utilities.d.ts +11 -0
  365. package/core-ux/lib/v2/models/utilities/entity-updater.d.ts +11 -0
  366. package/core-ux/lib/v2/models/utilities/form-wrapper.d.ts +30 -0
  367. package/core-ux/lib/v2/models/utilities/row-registry.d.ts +15 -0
  368. package/core-ux/lib/v2/models/utilities/selection-styler.d.ts +15 -0
  369. package/core-ux/lib/v2/pipes/gridstyle.pipe.d.ts +15 -0
  370. package/core-ux/lib/v2/services/app-config.service.d.ts +22 -0
  371. package/core-ux/lib/v2/services/entity-facade-registry.service.d.ts +28 -0
  372. package/core-ux/lib/v2/services/facade-modal.service.d.ts +21 -0
  373. package/core-ux/lib/v2/services/layout.service.d.ts +93 -0
  374. package/core-ux/lib/v2/services/property-change-bus.service.d.ts +9 -0
  375. package/core-ux/lib/v2/services/selection.service.d.ts +23 -0
  376. package/core-ux/lib/v2/services/test.service.d.ts +7 -0
  377. package/core-ux/lib/v2/services/validation.service.d.ts +10 -0
  378. package/core-ux/lib/v2/services/view-model-loader.service.d.ts +13 -0
  379. package/fesm2022/dflat-core-web-core-data.mjs +431 -0
  380. package/fesm2022/dflat-core-web-core-data.mjs.map +1 -0
  381. package/fesm2022/dflat-core-web-core-model.mjs +245 -0
  382. package/fesm2022/dflat-core-web-core-model.mjs.map +1 -0
  383. package/fesm2022/dflat-core-web-core-services.mjs +1568 -0
  384. package/fesm2022/dflat-core-web-core-services.mjs.map +1 -0
  385. package/fesm2022/dflat-core-web-core-ux.mjs +16294 -0
  386. package/fesm2022/dflat-core-web-core-ux.mjs.map +1 -0
  387. package/fesm2022/dflat-core-web-core.mjs +743 -0
  388. package/fesm2022/dflat-core-web-core.mjs.map +1 -0
  389. package/fesm2022/dflat-core-web-system-data.mjs +1031 -0
  390. package/fesm2022/dflat-core-web-system-data.mjs.map +1 -0
  391. package/fesm2022/dflat-core-web-system-model.mjs +283 -0
  392. package/fesm2022/dflat-core-web-system-model.mjs.map +1 -0
  393. package/fesm2022/dflat-core-web-system-root.mjs +289 -0
  394. package/fesm2022/dflat-core-web-system-root.mjs.map +1 -0
  395. package/fesm2022/dflat-core-web-system-ux.mjs +5677 -0
  396. package/fesm2022/dflat-core-web-system-ux.mjs.map +1 -0
  397. package/fesm2022/dflat-core-web.mjs +18 -0
  398. package/fesm2022/dflat-core-web.mjs.map +1 -0
  399. package/index.d.ts +1 -0
  400. package/package.json +82 -0
  401. package/scss/core-ux.scss +5 -0
  402. package/scss/images/circle-info.svg +1 -0
  403. package/scss/images/circlecross.svg +3 -0
  404. package/scss/images/circularoptionselected.svg +1 -0
  405. package/scss/images/error.png +0 -0
  406. package/scss/images/filter.svg +2 -0
  407. package/scss/images/information.png +0 -0
  408. package/scss/images/pen-solid.svg +1 -0
  409. package/scss/images/search-sprite.png +0 -0
  410. package/scss/images/search.svg +3 -0
  411. package/scss/images/warning.png +0 -0
  412. package/scss/layout/default/default-layout.scss +270 -0
  413. package/scss/layout/login/login-layout.scss +204 -0
  414. package/scss/styles/drag-and-drop.scss +36 -0
  415. package/scss/styles/forms.scss +94 -0
  416. package/scss/styles/shared.scss +222 -0
  417. package/system-data/index.d.ts +50 -0
  418. package/system-data/lib/data-services/account-service.generated.d.ts +20 -0
  419. package/system-data/lib/data-services/action-service.generated.d.ts +15 -0
  420. package/system-data/lib/data-services/address-service.generated.d.ts +10 -0
  421. package/system-data/lib/data-services/checkout-service.generated.d.ts +13 -0
  422. package/system-data/lib/data-services/company-service.generated.d.ts +10 -0
  423. package/system-data/lib/data-services/config-service.generated.d.ts +18 -0
  424. package/system-data/lib/data-services/country-service.generated.d.ts +10 -0
  425. package/system-data/lib/data-services/currency-service.generated.d.ts +10 -0
  426. package/system-data/lib/data-services/custom-field-group-entity-service.generated.d.ts +10 -0
  427. package/system-data/lib/data-services/custom-field-group-item-service.generated.d.ts +13 -0
  428. package/system-data/lib/data-services/custom-field-group-service.generated.d.ts +10 -0
  429. package/system-data/lib/data-services/custom-field-options-service.generated.d.ts +10 -0
  430. package/system-data/lib/data-services/custom-field-service.generated.d.ts +10 -0
  431. package/system-data/lib/data-services/error-category-service.generated.d.ts +12 -0
  432. package/system-data/lib/data-services/exchange-rate-detail-service.generated.d.ts +35 -0
  433. package/system-data/lib/data-services/exchange-rate-service.generated.d.ts +10 -0
  434. package/system-data/lib/data-services/file-service.generated.d.ts +26 -0
  435. package/system-data/lib/data-services/keyword-service.generated.d.ts +12 -0
  436. package/system-data/lib/data-services/meta-entity-field-service.generated.d.ts +10 -0
  437. package/system-data/lib/data-services/meta-entity-keyword-service.generated.d.ts +10 -0
  438. package/system-data/lib/data-services/meta-entity-service.generated.d.ts +10 -0
  439. package/system-data/lib/data-services/news-service.generated.d.ts +13 -0
  440. package/system-data/lib/data-services/parameter-service.generated.d.ts +10 -0
  441. package/system-data/lib/data-services/parameter-value-service.generated.d.ts +10 -0
  442. package/system-data/lib/data-services/permission-service.generated.d.ts +12 -0
  443. package/system-data/lib/data-services/permission-view-service.generated.d.ts +10 -0
  444. package/system-data/lib/data-services/plugin-parameter-value-service.generated.d.ts +10 -0
  445. package/system-data/lib/data-services/presentation-profile-item-service.generated.d.ts +14 -0
  446. package/system-data/lib/data-services/presentation-profile-service.generated.d.ts +13 -0
  447. package/system-data/lib/data-services/rating-service.generated.d.ts +14 -0
  448. package/system-data/lib/data-services/rating-summary-service.generated.d.ts +10 -0
  449. package/system-data/lib/data-services/rating-view-service.generated.d.ts +10 -0
  450. package/system-data/lib/data-services/request-result-service.generated.d.ts +12 -0
  451. package/system-data/lib/data-services/request-service.generated.d.ts +10 -0
  452. package/system-data/lib/data-services/resource-key-service.generated.d.ts +10 -0
  453. package/system-data/lib/data-services/resource-language-service.generated.d.ts +10 -0
  454. package/system-data/lib/data-services/resource-translation-view-service.generated.d.ts +10 -0
  455. package/system-data/lib/data-services/role-service.generated.d.ts +10 -0
  456. package/system-data/lib/data-services/subcompany-service.generated.d.ts +10 -0
  457. package/system-data/lib/data-services/supplier-service.generated.d.ts +10 -0
  458. package/system-data/lib/data-services/synchronized-company-service.generated.d.ts +10 -0
  459. package/system-data/lib/data-services/tva-rate-service.generated.d.ts +10 -0
  460. package/system-data/lib/data-services/user-account-company-service.generated.d.ts +10 -0
  461. package/system-data/lib/data-services/user-account-service.generated.d.ts +10 -0
  462. package/system-data/lib/data-services/user-favorite-service.generated.d.ts +10 -0
  463. package/system-data/lib/data-services/user-group-definition-service.generated.d.ts +10 -0
  464. package/system-data/lib/data-services/user-group-service.generated.d.ts +10 -0
  465. package/system-data/lib/data-services/user-role-service.generated.d.ts +10 -0
  466. package/system-data/lib/system-data.module.d.ts +9 -0
  467. package/system-model/index.d.ts +3 -0
  468. package/system-model/lib/model/interface.generated.d.ts +1162 -0
  469. package/system-model/lib/model/model.d.ts +11 -0
  470. package/system-model/lib/system-model.module.d.ts +7 -0
  471. package/system-root/index.d.ts +5 -0
  472. package/system-root/lib/system-entity-keys.d.ts +36 -0
  473. package/system-root/lib/system-menu-item-provider.d.ts +28 -0
  474. package/system-root/lib/system-menu-service.d.ts +13 -0
  475. package/system-root/lib/system-permissions.generated.d.ts +128 -0
  476. package/system-root/lib/system-root.module.d.ts +7 -0
  477. package/system-ux/index.d.ts +76 -0
  478. package/system-ux/lib/activate/activate.component.d.ts +36 -0
  479. package/system-ux/lib/address/address-editor.component.d.ts +12 -0
  480. package/system-ux/lib/address/address.component.d.ts +15 -0
  481. package/system-ux/lib/company/company-editor.component.d.ts +12 -0
  482. package/system-ux/lib/company/company.component.d.ts +19 -0
  483. package/system-ux/lib/components/image-upload/image-upload.component.d.ts +99 -0
  484. package/system-ux/lib/config/config-component.d.ts +22 -0
  485. package/system-ux/lib/config/datawarehouse-supply/dw-supply.component.d.ts +14 -0
  486. package/system-ux/lib/country/country-editor.component.d.ts +12 -0
  487. package/system-ux/lib/country/country.component.d.ts +14 -0
  488. package/system-ux/lib/currency/currency-editor.component.d.ts +12 -0
  489. package/system-ux/lib/currency/currency.component.d.ts +14 -0
  490. package/system-ux/lib/custom-field/custom-field-editor.component.d.ts +13 -0
  491. package/system-ux/lib/custom-field/custom-field.component.d.ts +19 -0
  492. package/system-ux/lib/custom-field-group/custom-field-group-editor.component.d.ts +14 -0
  493. package/system-ux/lib/custom-field-group/custom-field-group-entity/custom-field-group-entity-editor.component.d.ts +13 -0
  494. package/system-ux/lib/custom-field-group/custom-field-group-entity/custom-field-group-entity.component.d.ts +19 -0
  495. package/system-ux/lib/custom-field-group/custom-field-group-item/custom-field-group-item-editor.component.d.ts +12 -0
  496. package/system-ux/lib/custom-field-group/custom-field-group-item/custom-field-group-item.component.d.ts +27 -0
  497. package/system-ux/lib/custom-field-group/custom-field-group.component.d.ts +23 -0
  498. package/system-ux/lib/custom-field-options/custom-field-options-editor.component.d.ts +17 -0
  499. package/system-ux/lib/custom-field-options/custom-field-options.component.d.ts +22 -0
  500. package/system-ux/lib/entity-files/entity-files.component.d.ts +37 -0
  501. package/system-ux/lib/exchange-rate/exchange-rate-detail.component.d.ts +17 -0
  502. package/system-ux/lib/exchange-rate/exchange-rate-editor.component.d.ts +25 -0
  503. package/system-ux/lib/exchange-rate/exchange-rate.component.d.ts +18 -0
  504. package/system-ux/lib/global-parameter/global-parameter.component.d.ts +15 -0
  505. package/system-ux/lib/login/login.component.d.ts +37 -0
  506. package/system-ux/lib/meta-entity/meta-entity.component.d.ts +22 -0
  507. package/system-ux/lib/meta-entity-field/meta-entity-field-editor.component.d.ts +12 -0
  508. package/system-ux/lib/meta-entity-field/meta-entity-field.component.d.ts +20 -0
  509. package/system-ux/lib/news/news-component.d.ts +16 -0
  510. package/system-ux/lib/news/news-editor.component.d.ts +28 -0
  511. package/system-ux/lib/permission/permission-component.d.ts +16 -0
  512. package/system-ux/lib/permission/permission-editor.component.d.ts +12 -0
  513. package/system-ux/lib/presentation-profile/pp-facade.service.d.ts +39 -0
  514. package/system-ux/lib/presentation-profile/presentation-profile-action-service.d.ts +16 -0
  515. package/system-ux/lib/presentation-profile/presentation-profile-column-grid/presentation-profile-column.component.d.ts +73 -0
  516. package/system-ux/lib/presentation-profile/presentation-profile-column-grid/presentation-profile-items.component.d.ts +50 -0
  517. package/system-ux/lib/presentation-profile/presentation-profile-resolver.service.d.ts +34 -0
  518. package/system-ux/lib/presentation-profile/presentation-profile-transformer.d.ts +48 -0
  519. package/system-ux/lib/presentation-profile/presentation-profile.component.d.ts +16 -0
  520. package/system-ux/lib/presentation-profile/presentation-profile.service.d.ts +58 -0
  521. package/system-ux/lib/request/request-editor.component.d.ts +12 -0
  522. package/system-ux/lib/request/request.component.d.ts +20 -0
  523. package/system-ux/lib/request-results/request-results.component.d.ts +15 -0
  524. package/system-ux/lib/reset-password/reset-password.component.d.ts +32 -0
  525. package/system-ux/lib/resource-key/resource-key.component.d.ts +18 -0
  526. package/system-ux/lib/resource-language/resource-language.component.d.ts +16 -0
  527. package/system-ux/lib/resource-language/resourcelanguage-editor.component.d.ts +12 -0
  528. package/system-ux/lib/resource-translation/resource-translation-editor.component.d.ts +12 -0
  529. package/system-ux/lib/resource-translation/resource-translation.component.d.ts +16 -0
  530. package/system-ux/lib/role/role-component.d.ts +14 -0
  531. package/system-ux/lib/role/role-editor.component.d.ts +27 -0
  532. package/system-ux/lib/services/custom-field-action-service.d.ts +25 -0
  533. package/system-ux/lib/services/custom-field-service.d.ts +21 -0
  534. package/system-ux/lib/services/rates-action-service.d.ts +28 -0
  535. package/system-ux/lib/services/select-user-company-action-service.d.ts +23 -0
  536. package/system-ux/lib/services/system-section.service.d.ts +12 -0
  537. package/system-ux/lib/services/system-selector-mapper.service.d.ts +24 -0
  538. package/system-ux/lib/services/user-action-service.d.ts +20 -0
  539. package/system-ux/lib/sub-company/sub-company.component.d.ts +15 -0
  540. package/system-ux/lib/supplier/supplier-editor.component.d.ts +12 -0
  541. package/system-ux/lib/supplier/supplier.component.d.ts +16 -0
  542. package/system-ux/lib/synchronised-company/synchronised-company.component.d.ts +16 -0
  543. package/system-ux/lib/system-ux.module.d.ts +88 -0
  544. package/system-ux/lib/tva-rate/tva-rate-detail.component.d.ts +17 -0
  545. package/system-ux/lib/tva-rate/tva-rate-editor.component.d.ts +25 -0
  546. package/system-ux/lib/tva-rate/tva-rate.component.d.ts +17 -0
  547. package/system-ux/lib/user-account/user-account-component.d.ts +18 -0
  548. package/system-ux/lib/user-account/user-account-editor.component.d.ts +12 -0
  549. package/system-ux/lib/user-account-profile/user-account-profile.component.d.ts +31 -0
  550. package/system-ux/lib/user-company/user-company-component.d.ts +21 -0
  551. package/system-ux/lib/user-group/user-group-definition.component.d.ts +18 -0
  552. package/system-ux/lib/user-group/user-group-editor.component.d.ts +12 -0
  553. package/system-ux/lib/user-group/user-group.component.d.ts +16 -0
  554. package/system-ux/lib/user-permission/user-permission-component.d.ts +14 -0
  555. package/system-ux/lib/user-role/user-role-component.d.ts +20 -0
@@ -0,0 +1,743 @@
1
+ import { CommonModule } from '@angular/common';
2
+ import { provideHttpClient, withInterceptorsFromDi, HttpResponseBase, HttpResponse, HttpErrorResponse } from '@angular/common/http';
3
+ import * as i0 from '@angular/core';
4
+ import { Optional, SkipSelf, NgModule, Injectable } from '@angular/core';
5
+ import moment from 'moment';
6
+
7
+ class EnsureModuleLoadedOnceGuard {
8
+ constructor(targetModule) {
9
+ if (targetModule) {
10
+ throw new Error(`${targetModule.constructor.name} has already been loaded. Import this module in the AppModule only.`);
11
+ }
12
+ }
13
+ }
14
+
15
+ // IMPORTANT : DANS LE BUT DE FACILITER LES MERGE ET LA LECTURE DU CODE.
16
+ // 1. TOUJOURS CONSERVER LE TRI SUR LES IMPORTS
17
+ // UTILISER L'EXTENSION "TypeScript Import Sorter" DANS VSCODE.
18
+ // CONFIGURER L'EXTENSION POUR ACTIVER LA MISE EN FORME AUTOMATIQUE A LA SAUVEGARDE
19
+ // 2. UTILISER CTRL-SHIFT O POUR SUPPRIMER AUTOMATIQUEMENT LES IMPORTS INUTILES
20
+ // 3. TRIER LES COMPOSANTS OU DEPENDANCES DANS LES DECLARATIONS (IMPORTS, EXPORTS)
21
+ // SELECTION DU TEXTE PUIS CTRL-SHIFT P, "Sort Lines Ascending"
22
+ // ON PEUT PARAMETRER DES RACCOURCIS CLAVIER DANS VSCODE
23
+ // PAR EXEMPLE : CTRL-T UP (TRI CROISSANT) ou CTRL-T DOWN (TRI DECDROISSANT)
24
+ // Ensure that CoreModule is only loaded into AppModule
25
+ class CoreModule extends EnsureModuleLoadedOnceGuard {
26
+ // Looks for the module in the parent injector to see if it's already been loaded (only want it loaded once)
27
+ constructor(parentModule) {
28
+ super(parentModule);
29
+ }
30
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: CoreModule, deps: [{ token: CoreModule, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.NgModule }); }
31
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.4", ngImport: i0, type: CoreModule, imports: [CommonModule] }); }
32
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: CoreModule, providers: [provideHttpClient(withInterceptorsFromDi())], imports: [CommonModule] }); }
33
+ }
34
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: CoreModule, decorators: [{
35
+ type: NgModule,
36
+ args: [{ exports: [],
37
+ declarations: [], imports: [CommonModule], providers: [provideHttpClient(withInterceptorsFromDi())] }]
38
+ }], ctorParameters: () => [{ type: CoreModule, decorators: [{
39
+ type: Optional
40
+ }, {
41
+ type: SkipSelf
42
+ }] }] });
43
+
44
+ const isArray = Array.isArray || ((x) => x && typeof x.length === 'number');
45
+ function isNumeric(val) {
46
+ // parseFloat NaNs numeric-cast false positives (null|true|false|"")
47
+ // ...but misinterprets leading-number strings, particularly hex literals ("0x...")
48
+ // subtraction forces infinities to NaN
49
+ // adding 1 corrects loss of precision from parseFloat (#15100)
50
+ return !isArray(val) && (val - parseFloat(val) + 1) >= 0;
51
+ }
52
+ function sleep(ms) {
53
+ return new Promise(resolve => setTimeout(resolve, ms));
54
+ }
55
+ class Utilities {
56
+ static delay(arg0) {
57
+ throw new Error("Method not implemented.");
58
+ }
59
+ static { this.captionAndMessageSeparator = ":"; }
60
+ static { this.noNetworkMessageCaption = "No Network"; }
61
+ static { this.noNetworkMessageDetail = "The server cannot be reached"; }
62
+ static { this.accessDeniedMessageCaption = "Access Denied!"; }
63
+ static { this.accessDeniedMessageDetail = ""; }
64
+ static getHttpResponseMessage(data) {
65
+ let responses = [];
66
+ if (data instanceof HttpResponseBase) {
67
+ if (this.checkNoNetwork(data)) {
68
+ responses.push(`${this.noNetworkMessageCaption}${this.captionAndMessageSeparator} ${this.noNetworkMessageDetail}`);
69
+ }
70
+ else {
71
+ let responseObject = this.getResponseBody(data);
72
+ if (responseObject && (typeof responseObject === 'object' || responseObject instanceof Object)) {
73
+ for (let key in responseObject) {
74
+ if (key)
75
+ responses.push(`${key}${this.captionAndMessageSeparator} ${responseObject[key]}`);
76
+ else if (responseObject[key])
77
+ responses.push(responseObject[key].toString());
78
+ }
79
+ }
80
+ }
81
+ if (!responses.length && this.getResponseBody(data))
82
+ responses.push(`${data.statusText}: ${this.getResponseBody(data).toString()}`);
83
+ }
84
+ if (!responses.length)
85
+ responses.push(data.toString());
86
+ if (this.checkAccessDenied(data))
87
+ responses.splice(0, 0, `${this.accessDeniedMessageCaption}${this.captionAndMessageSeparator} ${this.accessDeniedMessageDetail}`);
88
+ return responses;
89
+ }
90
+ static findHttpResponseMessage(messageToFind, data, seachInCaptionOnly = true, includeCaptionInResult = false) {
91
+ let searchString = messageToFind.toLowerCase();
92
+ let httpMessages = this.getHttpResponseMessage(data);
93
+ for (let message of httpMessages) {
94
+ let fullMessage = Utilities.splitInTwo(message, this.captionAndMessageSeparator);
95
+ if (fullMessage.firstPart && fullMessage.firstPart.toLowerCase().indexOf(searchString) != -1) {
96
+ return includeCaptionInResult ? message : fullMessage.secondPart || fullMessage.firstPart;
97
+ }
98
+ }
99
+ if (!seachInCaptionOnly) {
100
+ for (let message of httpMessages) {
101
+ if (message.toLowerCase().indexOf(searchString) != -1) {
102
+ if (includeCaptionInResult) {
103
+ return message;
104
+ }
105
+ else {
106
+ let fullMessage = Utilities.splitInTwo(message, this.captionAndMessageSeparator);
107
+ return fullMessage.secondPart || fullMessage.firstPart;
108
+ }
109
+ }
110
+ }
111
+ }
112
+ return null;
113
+ }
114
+ static getResponseBody(response) {
115
+ if (response instanceof HttpResponse)
116
+ return response.body;
117
+ if (response instanceof HttpErrorResponse)
118
+ return response.error || response.message || response.statusText;
119
+ }
120
+ static checkNoNetwork(response) {
121
+ if (response instanceof HttpResponseBase) {
122
+ return response.status == 0;
123
+ }
124
+ return false;
125
+ }
126
+ static checkAccessDenied(response) {
127
+ if (response instanceof HttpResponseBase) {
128
+ return response.status == 403;
129
+ }
130
+ return false;
131
+ }
132
+ static checkNotFound(response) {
133
+ if (response instanceof HttpResponseBase) {
134
+ return response.status == 404;
135
+ }
136
+ return false;
137
+ }
138
+ static checkIsLocalHost(url, base) {
139
+ if (url) {
140
+ let location = new URL(url, base);
141
+ return location.hostname === "localhost" || location.hostname === "127.0.0.1";
142
+ }
143
+ return false;
144
+ }
145
+ static getQueryParamsFromString(paramString) {
146
+ if (!paramString)
147
+ return null;
148
+ let params = {};
149
+ for (let param of paramString.split("&")) {
150
+ let keyValue = Utilities.splitInTwo(param, "=");
151
+ params[keyValue.firstPart] = keyValue.secondPart;
152
+ }
153
+ return params;
154
+ }
155
+ static splitInTwo(text, separator) {
156
+ let separatorIndex = text.indexOf(separator);
157
+ if (separatorIndex == -1)
158
+ return { firstPart: text, secondPart: null };
159
+ let part1 = text.substr(0, separatorIndex).trim();
160
+ let part2 = text.substr(separatorIndex + 1).trim();
161
+ return { firstPart: part1, secondPart: part2 };
162
+ }
163
+ static safeStringify(object) {
164
+ let result;
165
+ try {
166
+ result = JSON.stringify(object);
167
+ return result;
168
+ }
169
+ catch (error) {
170
+ }
171
+ let simpleObject = {};
172
+ for (let prop in object) {
173
+ if (!object.hasOwnProperty(prop)) {
174
+ continue;
175
+ }
176
+ if (typeof (object[prop]) == 'object') {
177
+ continue;
178
+ }
179
+ if (typeof (object[prop]) == 'function') {
180
+ continue;
181
+ }
182
+ simpleObject[prop] = object[prop];
183
+ }
184
+ result = "[***Sanitized Object***]: " + JSON.stringify(simpleObject);
185
+ return result;
186
+ }
187
+ static JSonTryParse(value) {
188
+ try {
189
+ return JSON.parse(value);
190
+ }
191
+ catch (e) {
192
+ if (value === "undefined")
193
+ return void 0;
194
+ return value;
195
+ }
196
+ }
197
+ static isNonEmptyString(str) {
198
+ return str && str.length > 0;
199
+ }
200
+ static isEmptyString(str) {
201
+ return Utilities.IsNil(str) || str.length === 0;
202
+ }
203
+ static areValuesEqual(a, b) {
204
+ if (a === b)
205
+ return true;
206
+ if (a instanceof Date && b instanceof Date) {
207
+ return a.getTime() === b.getTime();
208
+ }
209
+ if (a?.valueOf && b?.valueOf) {
210
+ return a.valueOf() === b.valueOf();
211
+ }
212
+ if (typeof a !== 'object' && typeof b !== 'object') {
213
+ return a === b;
214
+ }
215
+ return JSON.stringify(a) === JSON.stringify(b);
216
+ }
217
+ static TestIsObjectEmpty(obj) {
218
+ for (let prop in obj) {
219
+ if (obj.hasOwnProperty(prop)) {
220
+ return false;
221
+ }
222
+ }
223
+ return true;
224
+ }
225
+ static IsUndefined(value) {
226
+ return typeof value === 'undefined';
227
+ }
228
+ static IsNil(value) {
229
+ return (value == null) || value === undefined || typeof value === 'undefined';
230
+ }
231
+ static TestIsString(value) {
232
+ return typeof value === 'string' || value instanceof String;
233
+ }
234
+ static capitalizeFirstLetter(text) {
235
+ if (text)
236
+ return text.charAt(0).toUpperCase() + text.slice(1);
237
+ else
238
+ return text;
239
+ }
240
+ static toTitleCase(text) {
241
+ return text.replace(/\w\S*/g, (subString) => {
242
+ return subString.charAt(0).toUpperCase() + subString.substr(1).toLowerCase();
243
+ });
244
+ }
245
+ static toLowerCase(items) {
246
+ if (items instanceof Array) {
247
+ let loweredRoles = [];
248
+ for (let i = 0; i < items.length; i++) {
249
+ loweredRoles[i] = items[i].toLowerCase();
250
+ }
251
+ return loweredRoles;
252
+ }
253
+ else if (typeof items === 'string' || items instanceof String) {
254
+ return items.toLowerCase();
255
+ }
256
+ }
257
+ static uniqueId() {
258
+ return this.randomNumber(1000000, 9000000).toString();
259
+ }
260
+ static randomNumber(min, max) {
261
+ return Math.floor(Math.random() * (max - min + 1) + min);
262
+ }
263
+ static baseUrl() {
264
+ let base = '';
265
+ if (window.location.origin)
266
+ base = window.location.origin;
267
+ else
268
+ base = window.location.protocol + "//" + window.location.hostname + (window.location.port ? ':' + window.location.port : '');
269
+ return base.replace(/\/$/, '');
270
+ }
271
+ static printDateOnly(date) {
272
+ date = new Date(date);
273
+ let dayNames = new Array("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday");
274
+ let monthNames = new Array("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December");
275
+ let dayOfWeek = date.getDay();
276
+ let dayOfMonth = date.getDate();
277
+ let sup = "";
278
+ let month = date.getMonth();
279
+ let year = date.getFullYear();
280
+ if (dayOfMonth == 1 || dayOfMonth == 21 || dayOfMonth == 31) {
281
+ sup = "st";
282
+ }
283
+ else if (dayOfMonth == 2 || dayOfMonth == 22) {
284
+ sup = "nd";
285
+ }
286
+ else if (dayOfMonth == 3 || dayOfMonth == 23) {
287
+ sup = "rd";
288
+ }
289
+ else {
290
+ sup = "th";
291
+ }
292
+ let dateString = dayNames[dayOfWeek] + ", " + dayOfMonth + sup + " " + monthNames[month] + " " + year;
293
+ return dateString;
294
+ }
295
+ static printTimeOnly(date) {
296
+ date = new Date(date);
297
+ let period = "";
298
+ let minute = date.getMinutes().toString();
299
+ let hour = date.getHours();
300
+ period = hour < 12 ? "AM" : "PM";
301
+ if (hour == 0) {
302
+ hour = 12;
303
+ }
304
+ if (hour > 12) {
305
+ hour = hour - 12;
306
+ }
307
+ if (minute.length == 1) {
308
+ minute = "0" + minute;
309
+ }
310
+ let timeString = hour + ":" + minute + " " + period;
311
+ return timeString;
312
+ }
313
+ static printDate(date, separator = "at") {
314
+ return `${Utilities.printDateOnly(date)} ${separator} ${Utilities.printTimeOnly(date)}`;
315
+ }
316
+ static printFriendlyDate(date, separator = "-") {
317
+ let today = new Date();
318
+ today.setHours(0, 0, 0, 0);
319
+ let yesterday = new Date(today);
320
+ yesterday.setDate(yesterday.getDate() - 1);
321
+ let test = new Date(date.getFullYear(), date.getMonth(), date.getDate());
322
+ if (test.toDateString() == today.toDateString())
323
+ return `Today ${separator} ${Utilities.printTimeOnly(date)}`;
324
+ if (test.toDateString() == yesterday.toDateString())
325
+ return `Yesterday ${separator} ${Utilities.printTimeOnly(date)}`;
326
+ else
327
+ return Utilities.printDate(date, separator);
328
+ }
329
+ static printShortDate(date, separator = "/", dateTimeSeparator = "-") {
330
+ var day = date.getDate().toString();
331
+ var month = (date.getMonth() + 1).toString();
332
+ var year = date.getFullYear();
333
+ if (day.length == 1)
334
+ day = "0" + day;
335
+ if (month.length == 1)
336
+ month = "0" + month;
337
+ return `${month}${separator}${day}${separator}${year} ${dateTimeSeparator} ${Utilities.printTimeOnly(date)}`;
338
+ }
339
+ static parseDate(date) {
340
+ if (date) {
341
+ if (date instanceof Date) {
342
+ return date;
343
+ }
344
+ if (typeof date === 'string' || date instanceof String) {
345
+ if (date.search(/[a-su-z+]/i) == -1)
346
+ date = date + "Z";
347
+ return new Date(date);
348
+ }
349
+ if (typeof date === 'number' || date instanceof Number) {
350
+ return new Date(date);
351
+ }
352
+ }
353
+ }
354
+ static Format2Digits(n) {
355
+ return n > 9 ? "" + n : "0" + n;
356
+ }
357
+ static printDuration(start, end) {
358
+ start = new Date(start);
359
+ end = new Date(end);
360
+ // get total seconds between the times
361
+ let delta = Math.abs(start.valueOf() - end.valueOf()) / 1000;
362
+ // calculate (and subtract) whole days
363
+ let days = Math.floor(delta / 86400);
364
+ delta -= days * 86400;
365
+ // calculate (and subtract) whole hours
366
+ let hours = Math.floor(delta / 3600) % 24;
367
+ delta -= hours * 3600;
368
+ // calculate (and subtract) whole minutes
369
+ let minutes = Math.floor(delta / 60) % 60;
370
+ delta -= minutes * 60;
371
+ // what's left is seconds
372
+ let seconds = delta % 60; // in theory the modulus is not required
373
+ let printedDays = "";
374
+ if (days)
375
+ printedDays = `${days} days`;
376
+ if (hours)
377
+ printedDays += printedDays ? `, ${hours} hours` : `${hours} hours`;
378
+ if (minutes)
379
+ printedDays += printedDays ? `, ${minutes} minutes` : `${minutes} minutes`;
380
+ if (seconds)
381
+ printedDays += printedDays ? ` and ${seconds} seconds` : `${seconds} seconds`;
382
+ if (!printedDays)
383
+ printedDays = "0";
384
+ return printedDays;
385
+ }
386
+ static getAge(birthDate, otherDate) {
387
+ birthDate = new Date(birthDate);
388
+ otherDate = new Date(otherDate);
389
+ let years = (otherDate.getFullYear() - birthDate.getFullYear());
390
+ if (otherDate.getMonth() < birthDate.getMonth() ||
391
+ otherDate.getMonth() == birthDate.getMonth() && otherDate.getDate() < birthDate.getDate()) {
392
+ years--;
393
+ }
394
+ return years;
395
+ }
396
+ static isDateAEarlierThanDateB(dateA, dateB) {
397
+ return dateA.getFullYear() < dateB.getFullYear()
398
+ || (dateA.getFullYear() == dateB.getFullYear() && dateA.getMonth() < dateB.getMonth())
399
+ || (dateA.getMonth() == dateB.getMonth() && dateA.getDate() < dateB.getDate());
400
+ }
401
+ static searchArray(searchTerm, caseSensitive, ...values) {
402
+ if (!searchTerm)
403
+ return true;
404
+ if (!caseSensitive)
405
+ searchTerm = searchTerm.toLowerCase();
406
+ for (let value of values) {
407
+ if (value != null) {
408
+ let strValue = value.toString();
409
+ if (!caseSensitive)
410
+ strValue = strValue.toLowerCase();
411
+ if (strValue.indexOf(searchTerm) !== -1)
412
+ return true;
413
+ }
414
+ }
415
+ return false;
416
+ }
417
+ static moveArrayItem(array, oldIndex, newIndex) {
418
+ while (oldIndex < 0) {
419
+ oldIndex += this.length;
420
+ }
421
+ while (newIndex < 0) {
422
+ newIndex += this.length;
423
+ }
424
+ if (newIndex >= this.length) {
425
+ var k = newIndex - this.length;
426
+ while ((k--) + 1) {
427
+ array.push(undefined);
428
+ }
429
+ }
430
+ array.splice(newIndex, 0, array.splice(oldIndex, 1)[0]);
431
+ }
432
+ static expandCamelCase(text) {
433
+ if (!text)
434
+ return text;
435
+ return text.replace(/([A-Z][a-z]+)/g, " $1")
436
+ .replace(/([A-Z][A-Z]+)/g, " $1")
437
+ .replace(/([^A-Za-z ]+)/g, " $1");
438
+ }
439
+ static testIsAbsoluteUrl(url) {
440
+ let r = new RegExp('^(?:[a-z]+:)?//', 'i');
441
+ return r.test(url);
442
+ }
443
+ static convertToAbsoluteUrl(url) {
444
+ return Utilities.testIsAbsoluteUrl(url) ? url : '//' + url;
445
+ }
446
+ static removeNulls(obj) {
447
+ let isArray = obj instanceof Array;
448
+ for (let k in obj) {
449
+ if (obj[k] === null) {
450
+ isArray ? obj.splice(k, 1) : delete obj[k];
451
+ }
452
+ else if (typeof obj[k] == "object") {
453
+ Utilities.removeNulls(obj[k]);
454
+ }
455
+ if (isArray && obj.length == k) {
456
+ Utilities.removeNulls(obj);
457
+ }
458
+ }
459
+ return obj;
460
+ }
461
+ static debounce(func, wait, immediate) {
462
+ var timeout;
463
+ return function () {
464
+ var context = this;
465
+ var args_ = arguments;
466
+ var later = function () {
467
+ timeout = null;
468
+ if (!immediate)
469
+ func.apply(context, args_);
470
+ };
471
+ var callNow = immediate && !timeout;
472
+ clearTimeout(timeout);
473
+ timeout = setTimeout(later, wait);
474
+ if (callNow)
475
+ func.apply(context, args_);
476
+ };
477
+ }
478
+ static { this.cookies = {
479
+ getItem: (sKey) => {
480
+ return decodeURIComponent(document.cookie.replace(new RegExp("(?:(?:^|.*;)\\s*" + encodeURIComponent(sKey).replace(/[\-\.\+\*]/g, "\\$&") + "\\s*\\=\\s*([^;]*).*$)|^.*$"), "$1")) || null;
481
+ },
482
+ setItem: (sKey, sValue, vEnd, sPath, sDomain, bSecure) => {
483
+ if (!sKey || /^(?:expires|max\-age|path|domain|secure)$/i.test(sKey)) {
484
+ return false;
485
+ }
486
+ var sExpires = "";
487
+ if (vEnd) {
488
+ switch (vEnd.constructor) {
489
+ case Number:
490
+ sExpires = vEnd === Infinity ? "; expires=Fri, 31 Dec 9999 23:59:59 GMT" : "; max-age=" + vEnd;
491
+ break;
492
+ case String:
493
+ sExpires = "; expires=" + vEnd;
494
+ break;
495
+ case Date:
496
+ sExpires = "; expires=" + vEnd.toUTCString();
497
+ break;
498
+ }
499
+ }
500
+ document.cookie = encodeURIComponent(sKey) + "=" + encodeURIComponent(sValue) + sExpires + (sDomain ? "; domain=" + sDomain : "") + (sPath ? "; path=" + sPath : "") + (bSecure ? "; secure" : "");
501
+ return true;
502
+ },
503
+ removeItem: (sKey, sPath, sDomain) => {
504
+ if (!sKey) {
505
+ return false;
506
+ }
507
+ document.cookie = encodeURIComponent(sKey) + "=; expires=Thu, 01 Jan 1970 00:00:00 GMT" + (sDomain ? "; domain=" + sDomain : "") + (sPath ? "; path=" + sPath : "");
508
+ return true;
509
+ },
510
+ hasItem: (sKey) => {
511
+ return (new RegExp("(?:^|;\\s*)" + encodeURIComponent(sKey).replace(/[\-\.\+\*]/g, "\\$&") + "\\s*\\=")).test(document.cookie);
512
+ },
513
+ keys: () => {
514
+ var aKeys = document.cookie.replace(/((?:^|\s*;)[^\=]+)(?=;|$)|^\s*|\s*(?:\=[^;]*)?(?:\1|$)/g, "").split(/\s*(?:\=[^;]*)?;\s*/);
515
+ for (var nIdx = 0; nIdx < aKeys.length; nIdx++) {
516
+ aKeys[nIdx] = decodeURIComponent(aKeys[nIdx]);
517
+ }
518
+ return aKeys;
519
+ }
520
+ }; }
521
+ static isNumber(field) {
522
+ return (typeof field === 'number' || field instanceof Number);
523
+ }
524
+ static changeName(item) {
525
+ if (item)
526
+ return item.replace(/[&\/\\#,+()$~%.'":*?<>{}]/g, '');
527
+ return item;
528
+ }
529
+ static transform(value, args = null) {
530
+ return Object.keys(value).map(k => {
531
+ return { key: k, value: value[k] };
532
+ });
533
+ }
534
+ static GetChannel(entityTypeKey) {
535
+ if (this.IsNil(entityTypeKey))
536
+ return entityTypeKey;
537
+ let k = entityTypeKey.toLowerCase();
538
+ switch (k) {
539
+ case "shipment":
540
+ return "SHP";
541
+ case "dataimport":
542
+ return "INP";
543
+ case "request":
544
+ return "RQT";
545
+ case "synchronizedcompany":
546
+ return "CPY";
547
+ case "sellingorder":
548
+ return "ORD";
549
+ case "purchaseorder":
550
+ return "ORD";
551
+ default:
552
+ return entityTypeKey;
553
+ }
554
+ }
555
+ static getProp(object, property) {
556
+ return object[property];
557
+ }
558
+ /**
559
+ * static getCustomDvalue: stringate
560
+ */
561
+ static getCustomDate(value) {
562
+ let m;
563
+ if (value.split("/").length > 1)
564
+ m = moment.utc(value, "DD/MM/YYYY");
565
+ else
566
+ m = moment.utc(value);
567
+ let date = new Date(m.year(), m.month(), m.date());
568
+ return isNaN(date.valueOf()) ? null : date;
569
+ }
570
+ static isLowerThan(value1, value2) {
571
+ let d1, d2;
572
+ if (typeof value1 === 'string')
573
+ d1 = this.getCustomDate(value1);
574
+ else
575
+ d1 = value1;
576
+ if (typeof value2 === 'string')
577
+ d2 = this.getCustomDate(value2);
578
+ else
579
+ d2 = value2;
580
+ return d1 < d2;
581
+ }
582
+ static getLogClass(log) {
583
+ let regexInfo = /INFO/g;
584
+ let regexData = /DATA/g;
585
+ let regexError = /ERROR/g;
586
+ let regexWarn = /WARNING/g;
587
+ if (regexInfo.test(log)) {
588
+ return "log-info";
589
+ }
590
+ if (regexData.test(log)) {
591
+ return "log-data";
592
+ }
593
+ if (regexError.test(log)) {
594
+ return "log-error";
595
+ }
596
+ if (regexWarn.test(log)) {
597
+ return "log-warning";
598
+ }
599
+ return "";
600
+ }
601
+ static deepCopy(obj) {
602
+ var copy;
603
+ // Handle the 3 simple types, and null or undefined
604
+ if (null == obj || "object" != typeof obj)
605
+ return obj;
606
+ // Handle Date
607
+ if (obj instanceof Date) {
608
+ copy = new Date();
609
+ copy.setTime(obj.getTime());
610
+ return copy;
611
+ }
612
+ // Handle Array
613
+ if (obj instanceof Array) {
614
+ copy = [];
615
+ for (var i = 0, len = obj.length; i < len; i++) {
616
+ copy[i] = Utilities.deepCopy(obj[i]);
617
+ }
618
+ return copy;
619
+ }
620
+ // Handle Object
621
+ if (obj instanceof Object) {
622
+ copy = {};
623
+ for (var attr in obj) {
624
+ if (obj.hasOwnProperty(attr))
625
+ copy[attr] = Utilities.deepCopy(obj[attr]);
626
+ }
627
+ return copy;
628
+ }
629
+ throw new Error("Unable to copy obj! Its type isn't supported.");
630
+ }
631
+ static getCleanNumber(initial) {
632
+ // Si la chaine est vide, on renvoie 0
633
+ let value = initial.replace(',', '.');
634
+ if (!isNumeric(value)) {
635
+ // On supprime tous les caractères qui ne sont pas des chiffres.
636
+ value = '';
637
+ let hasSeparator = false;
638
+ for (var i = 0; i < initial.length; i++) {
639
+ let ch = initial[i];
640
+ if (isNumeric(ch)) {
641
+ value = value + ch;
642
+ }
643
+ else if (!hasSeparator && (ch == '.' || ch == ',')) {
644
+ value = value + ch;
645
+ hasSeparator = true;
646
+ }
647
+ }
648
+ value = value.replace(',', '.');
649
+ if (!isNumeric(value))
650
+ return 0;
651
+ }
652
+ let n = Number.parseFloat(value);
653
+ return n;
654
+ }
655
+ static addDays(date, days) {
656
+ var date = new Date(date.valueOf());
657
+ date.setDate(date.getDate() + days);
658
+ return date;
659
+ }
660
+ static getFormattedParams(params) {
661
+ // Dans le cas d'un tableau, parcours tous les éléments du tableau pour formatter les
662
+ let result;
663
+ if (Array.isArray(params)) {
664
+ if (params.length > 0 && typeof (params[0]) === 'number')
665
+ return JSON.stringify(params);
666
+ result = [];
667
+ params.forEach(entity => {
668
+ result.push(this.getFormattedParams(entity));
669
+ });
670
+ return JSON.stringify(result);
671
+ }
672
+ result = {};
673
+ for (let key in params) {
674
+ if (params.hasOwnProperty(key)) {
675
+ let val = params[key];
676
+ if (val !== undefined && val !== null) {
677
+ //Handle the Date javascript object
678
+ if (val instanceof Date) {
679
+ val = `${Utilities.Format2Digits(val.getFullYear())}-${Utilities.Format2Digits(val.getMonth() + 1)}-${Utilities.Format2Digits(val.getDate())}T00:00:00.000Z`;
680
+ }
681
+ result[key] = val;
682
+ }
683
+ }
684
+ }
685
+ return result;
686
+ }
687
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: Utilities, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
688
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: Utilities }); }
689
+ }
690
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: Utilities, decorators: [{
691
+ type: Injectable
692
+ }] });
693
+
694
+ function nameof(f) {
695
+ var p = new Proxy({}, {
696
+ get: (target, key) => key
697
+ });
698
+ return f(p);
699
+ }
700
+
701
+ // export function groupBy<TItem>(xs: TItem[], key: string) : {[key: string]: TItem[]}{
702
+ // return xs.reduce(function(rv, x) {
703
+ // (rv[x[key]] = rv[x[key]] || []).push(x);
704
+ // return rv;
705
+ // }, {});
706
+ // };
707
+ function groupBy(xs, key) {
708
+ return xs.reduce(function (rv, x) {
709
+ (rv[x[key]] = rv[x[key]] || []).push(x);
710
+ return rv;
711
+ }, {});
712
+ }
713
+ ;
714
+ function groupByFunc(xs, func) {
715
+ return xs.reduce(function (rv, x) {
716
+ let k = func(x);
717
+ (rv[k] = rv[k] || []).push(x);
718
+ return rv;
719
+ }, {});
720
+ }
721
+ ;
722
+ function sumOf(xs, func) {
723
+ return xs.map(func).reduce((a, b) => a + b);
724
+ }
725
+ // https://codereview.stackexchange.com/a/100843
726
+ function distinct(array) {
727
+ return array.reduce(function (carry, item) {
728
+ if (item && !~carry.indexOf(item))
729
+ carry.push(item);
730
+ return carry;
731
+ }, []);
732
+ }
733
+
734
+ class EnvironmentBase {
735
+ }
736
+ ;
737
+
738
+ /**
739
+ * Generated bundle index. Do not edit.
740
+ */
741
+
742
+ export { CoreModule, EnsureModuleLoadedOnceGuard, EnvironmentBase, Utilities, distinct, groupBy, groupByFunc, isArray, isNumeric, nameof, sleep, sumOf };
743
+ //# sourceMappingURL=dflat-core-web-core.mjs.map