@smartbit4all/ng-client 2.2.2 → 3.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (422) hide show
  1. package/esm2020/lib/component-factory-service/component-factory-service.module.mjs +17 -0
  2. package/esm2020/lib/component-factory-service/component-factory-service.service.mjs +35 -0
  3. package/esm2020/lib/component-factory-service/projects.mjs +6 -0
  4. package/esm2020/lib/session/dev-tool/smart-dev-tool-dialog/smart-dev-tool-dialog.component.mjs +1 -1
  5. package/esm2020/lib/session/dev-tool/smart-dev-tool-dialog/smart-dev-tool-dialog.service.mjs +5 -5
  6. package/esm2020/lib/session/dev-tool/smart-dev-tool-floating-button/smart-dev-tool-floating-button.component.mjs +1 -1
  7. package/esm2020/lib/session/dev-tool/smart-dev-tool.service.mjs +2 -2
  8. package/esm2020/lib/session/smart-session.module.mjs +18 -18
  9. package/esm2020/lib/session/smart-session.service.mjs +2 -2
  10. package/esm2020/lib/session/smart-timer/smart-session-timer.service.mjs +2 -2
  11. package/esm2020/lib/smart-client/smart-authentication.service.mjs +2 -2
  12. package/esm2020/lib/smart-client/smart-component-api-client.mjs +2 -3
  13. package/esm2020/lib/smart-client/smart-file-uploader/smart-file-uploader.component.mjs +2 -2
  14. package/esm2020/lib/smart-component-layout/api/api/api.mjs +4 -0
  15. package/esm2020/lib/smart-component-layout/api/api/default.service.mjs +133 -0
  16. package/esm2020/lib/smart-component-layout/api/api.module.mjs +40 -0
  17. package/esm2020/lib/smart-component-layout/api/configuration.mjs +91 -0
  18. package/esm2020/lib/smart-component-layout/api/encoder.mjs +19 -0
  19. package/esm2020/lib/smart-component-layout/api/index.mjs +7 -0
  20. package/esm2020/lib/smart-component-layout/api/model/componentType.mjs +17 -0
  21. package/esm2020/lib/smart-component-layout/api/model/componentWidgetType.mjs +17 -0
  22. package/esm2020/lib/smart-component-layout/api/model/layoutDirection.mjs +16 -0
  23. package/esm2020/lib/smart-component-layout/api/model/models.mjs +6 -0
  24. package/esm2020/lib/smart-component-layout/api/model/smartComponentLayoutDefinition.mjs +2 -0
  25. package/esm2020/lib/smart-component-layout/api/model/smartComponentWidgetDefinition.mjs +2 -0
  26. package/esm2020/lib/smart-component-layout/api/param.mjs +2 -0
  27. package/esm2020/lib/smart-component-layout/api/variables.mjs +9 -0
  28. package/esm2020/lib/smart-component-layout/projects.mjs +8 -0
  29. package/esm2020/lib/smart-component-layout/smart-component-layout-utility.mjs +7 -0
  30. package/esm2020/lib/smart-component-layout/smart-component-layout.component.mjs +123 -0
  31. package/esm2020/lib/smart-component-layout/smart-component-layout.module.mjs +43 -0
  32. package/esm2020/lib/smart-dialog/projects.mjs +8 -0
  33. package/esm2020/lib/smart-dialog/smartdialog.component.mjs +54 -0
  34. package/esm2020/lib/smart-dialog/smartdialog.model.mjs +16 -0
  35. package/esm2020/lib/smart-dialog/smartdialog.module.mjs +49 -0
  36. package/esm2020/lib/smart-dialog/smartdialog.service.mjs +60 -0
  37. package/esm2020/lib/smart-expandable-section/expandable-section.component.mjs +82 -0
  38. package/esm2020/lib/smart-expandable-section/expandable-section.model.mjs +12 -0
  39. package/esm2020/lib/smart-expandable-section/projects.mjs +8 -0
  40. package/esm2020/lib/smart-expandable-section/smart-expandable-section.module.mjs +51 -0
  41. package/esm2020/lib/smart-expandable-section/smart-expandable-section.service.mjs +14 -0
  42. package/esm2020/lib/smart-filter/api/filter/model/filterExpressionBoolOperator.mjs +16 -0
  43. package/esm2020/lib/smart-filter/api/filter/model/filterExpressionBuilderField.mjs +2 -0
  44. package/esm2020/lib/smart-filter/api/filter/model/filterExpressionBuilderGroup.mjs +9 -0
  45. package/esm2020/lib/smart-filter/api/filter/model/filterExpressionBuilderModel.mjs +2 -0
  46. package/esm2020/lib/smart-filter/api/filter/model/filterExpressionData.mjs +2 -0
  47. package/esm2020/lib/smart-filter/api/filter/model/filterExpressionDataType.mjs +19 -0
  48. package/esm2020/lib/smart-filter/api/filter/model/filterExpressionField.mjs +2 -0
  49. package/esm2020/lib/smart-filter/api/filter/model/filterExpressionFieldList.mjs +2 -0
  50. package/esm2020/lib/smart-filter/api/filter/model/filterExpressionFieldWidgetType.mjs +25 -0
  51. package/esm2020/lib/smart-filter/api/filter/model/filterExpressionList.mjs +2 -0
  52. package/esm2020/lib/smart-filter/api/filter/model/filterExpressionOperandData.mjs +2 -0
  53. package/esm2020/lib/smart-filter/api/filter/model/filterExpressionOperation.mjs +31 -0
  54. package/esm2020/lib/smart-filter/api/filter/model/filterExpressionOrderBy.mjs +19 -0
  55. package/esm2020/lib/smart-filter/api/filter/model/model.mjs +16 -0
  56. package/esm2020/lib/smart-filter/api/filter/model/searchIndexObjectDefinitionData.mjs +2 -0
  57. package/esm2020/lib/smart-filter/api/filter/model/searchIndexPropertyDefinitionData.mjs +13 -0
  58. package/esm2020/lib/smart-filter/api/value/model/value.mjs +13 -0
  59. package/esm2020/lib/smart-filter/projects.mjs +9 -0
  60. package/esm2020/lib/smart-filter/smart-filter/components/smart-filter-expression-field/smart-filter-expression-field.component.mjs +14 -0
  61. package/esm2020/lib/smart-filter/smart-filter/components/smart-filter-simple/components/smart-filter-simple-field/smart-filter-simple-field.component.mjs +159 -0
  62. package/esm2020/lib/smart-filter/smart-filter/components/smart-filter-simple/smart-filter-simple.component.mjs +45 -0
  63. package/esm2020/lib/smart-filter/smart-filter/smart-filter.component.mjs +36 -0
  64. package/esm2020/lib/smart-filter/smart-filter/smart-filter.service.mjs +31 -0
  65. package/esm2020/lib/smart-filter/smart-filter.model.mjs +13 -0
  66. package/esm2020/lib/smart-filter/smart-filter.module.mjs +33 -0
  67. package/esm2020/lib/smart-form/api/api/api.mjs +4 -0
  68. package/esm2020/lib/smart-form/api/api/default.service.mjs +133 -0
  69. package/esm2020/lib/smart-form/api/api.module.mjs +40 -0
  70. package/esm2020/lib/smart-form/api/configuration.mjs +91 -0
  71. package/esm2020/lib/smart-form/api/encoder.mjs +19 -0
  72. package/esm2020/lib/smart-form/api/index.mjs +7 -0
  73. package/esm2020/lib/smart-form/api/model/models.mjs +8 -0
  74. package/esm2020/lib/smart-form/api/model/propertyMapping.mjs +13 -0
  75. package/esm2020/lib/smart-form/api/model/selectionDefinition.mjs +8 -0
  76. package/esm2020/lib/smart-form/api/model/smartFormWidgetDirection.mjs +16 -0
  77. package/esm2020/lib/smart-form/api/model/smartFormWidgetType.mjs +44 -0
  78. package/esm2020/lib/smart-form/api/model/smartLayoutDefinition.mjs +2 -0
  79. package/esm2020/lib/smart-form/api/model/smartMatrixModel.mjs +2 -0
  80. package/esm2020/lib/smart-form/api/model/smartWidgetDefinition.mjs +2 -0
  81. package/esm2020/lib/smart-form/api/param.mjs +2 -0
  82. package/esm2020/lib/smart-form/api/variables.mjs +9 -0
  83. package/esm2020/lib/smart-form/projects.mjs +13 -0
  84. package/esm2020/lib/smart-form/services/smartform.layout-definition.service.mjs +397 -0
  85. package/esm2020/lib/smart-form/services/smartform.service.mjs +483 -0
  86. package/esm2020/lib/smart-form/smartfileuploader/large-file-snack-bar/large-file-snack-bar.component.mjs +14 -0
  87. package/esm2020/lib/smart-form/smartfileuploader/smartfileuploader.component.mjs +78 -0
  88. package/esm2020/lib/smart-form/smartfileuploader/smartfileuploader.model.mjs +2 -0
  89. package/esm2020/lib/smart-form/smartform.component.mjs +117 -0
  90. package/esm2020/lib/smart-form/smartform.form-model.mjs +2 -0
  91. package/esm2020/lib/smart-form/smartform.model.mjs +38 -0
  92. package/esm2020/lib/smart-form/smartform.module.mjs +146 -0
  93. package/esm2020/lib/smart-form/widgets/components/smart-month-picker/smart-month-picker.component.mjs +76 -0
  94. package/esm2020/lib/smart-form/widgets/smartformwidget/smartformwidget.component.mjs +589 -0
  95. package/esm2020/lib/smart-form/widgets/smartformwidget/sortable-widget/sortable-widget.component.mjs +59 -0
  96. package/esm2020/lib/smart-form/widgets/smartformwidget/trackCaps.directive.mjs +31 -0
  97. package/esm2020/lib/smart-grid/api/grid-api/api/api.mjs +4 -0
  98. package/esm2020/lib/smart-grid/api/grid-api/api/grid.service.mjs +372 -0
  99. package/esm2020/lib/smart-grid/api/grid-api/api.module.mjs +40 -0
  100. package/esm2020/lib/smart-grid/api/grid-api/configuration.mjs +72 -0
  101. package/esm2020/lib/smart-grid/api/grid-api/encoder.mjs +19 -0
  102. package/esm2020/lib/smart-grid/api/grid-api/index.mjs +6 -0
  103. package/esm2020/lib/smart-grid/api/grid-api/model/gridColumnMeta.mjs +13 -0
  104. package/esm2020/lib/smart-grid/api/grid-api/model/gridDataAccessConfig.mjs +21 -0
  105. package/esm2020/lib/smart-grid/api/grid-api/model/gridModel.mjs +2 -0
  106. package/esm2020/lib/smart-grid/api/grid-api/model/gridPage.mjs +2 -0
  107. package/esm2020/lib/smart-grid/api/grid-api/model/gridRow.mjs +2 -0
  108. package/esm2020/lib/smart-grid/api/grid-api/model/gridSelectionMode.mjs +17 -0
  109. package/esm2020/lib/smart-grid/api/grid-api/model/gridSelectionType.mjs +16 -0
  110. package/esm2020/lib/smart-grid/api/grid-api/model/gridServerModel.mjs +2 -0
  111. package/esm2020/lib/smart-grid/api/grid-api/model/gridUpdateData.mjs +2 -0
  112. package/esm2020/lib/smart-grid/api/grid-api/model/gridView.mjs +2 -0
  113. package/esm2020/lib/smart-grid/api/grid-api/model/gridViewDescriptor.mjs +8 -0
  114. package/esm2020/lib/smart-grid/api/grid-api/model/models.mjs +12 -0
  115. package/esm2020/lib/smart-grid/api/grid-api/variables.mjs +9 -0
  116. package/esm2020/lib/smart-grid/components/expandable-grid/expandable-grid.component.mjs +20 -0
  117. package/esm2020/lib/smart-grid/components/smart-grid-card/smart-grid-card.component.mjs +56 -0
  118. package/esm2020/lib/smart-grid/components/table-layout-definer/table-layout-definer.component.mjs +166 -0
  119. package/esm2020/lib/smart-grid/models/model.mjs +28 -0
  120. package/esm2020/lib/smart-grid/projects.mjs +9 -0
  121. package/esm2020/lib/smart-grid/smart-grid.component.mjs +452 -0
  122. package/esm2020/lib/smart-grid/smart-grid.module.mjs +69 -0
  123. package/esm2020/lib/smart-grid/smart-grid.service.mjs +71 -0
  124. package/esm2020/lib/smart-icon/projects.mjs +7 -0
  125. package/esm2020/lib/smart-icon/smart-icon/smart-icon.component.mjs +48 -0
  126. package/esm2020/lib/smart-icon/smart-icon.module.mjs +22 -0
  127. package/esm2020/lib/smart-icon/smart-icon.service.mjs +45 -0
  128. package/esm2020/lib/smart-navbar/projects.mjs +8 -0
  129. package/esm2020/lib/smart-navbar/smart-navbar.component.mjs +61 -0
  130. package/esm2020/lib/smart-navbar/smart-navbar.model.mjs +6 -0
  131. package/esm2020/lib/smart-navbar/smart-navbar.module.mjs +65 -0
  132. package/esm2020/lib/smart-navbar/smart-navbar.service.mjs +14 -0
  133. package/esm2020/lib/smart-navigation/projects.mjs +6 -0
  134. package/esm2020/lib/smart-navigation/smart-navigation.interface.mjs +2 -0
  135. package/esm2020/lib/smart-navigation/smart-navigation.module.mjs +18 -0
  136. package/esm2020/lib/smart-navigation/smart-navigation.service.mjs +56 -0
  137. package/esm2020/lib/smart-ng-client.module.mjs +16 -4
  138. package/esm2020/lib/smart-subject/projects.mjs +5 -0
  139. package/esm2020/lib/smart-subject/smart-subject.mjs +21 -0
  140. package/esm2020/lib/smart-tab-group/projects.mjs +8 -0
  141. package/esm2020/lib/smart-tab-group/smart-tab-group.component.mjs +43 -0
  142. package/esm2020/lib/smart-tab-group/smart-tab-group.module.mjs +25 -0
  143. package/esm2020/lib/smart-tab-group/smart-tab-group.service.mjs +14 -0
  144. package/esm2020/lib/smart-tab-group/tab-content/tab-content.component.mjs +31 -0
  145. package/esm2020/lib/smart-tab-group/tab-group-simplified/tab-group.component.mjs +66 -0
  146. package/esm2020/lib/smart-tab-group/tabTile.model.mjs +2 -0
  147. package/esm2020/lib/smart-table/components/loading/loading.component.mjs +15 -0
  148. package/esm2020/lib/smart-table/projects.mjs +9 -0
  149. package/esm2020/lib/smart-table/smarttable.component.mjs +98 -0
  150. package/esm2020/lib/smart-table/smarttable.date-pipe.mjs +43 -0
  151. package/esm2020/lib/smart-table/smarttable.model.mjs +167 -0
  152. package/esm2020/lib/smart-table/smarttable.module.mjs +89 -0
  153. package/esm2020/lib/smart-table/smarttable.service.mjs +14 -0
  154. package/esm2020/lib/smart-table/tables/material-table/material-table.component.mjs +36 -0
  155. package/esm2020/lib/smart-table/tables/mobile-table/mobile-table.component.mjs +22 -0
  156. package/esm2020/lib/smart-table/tables/table.mjs +411 -0
  157. package/esm2020/lib/smart-tree/smarttree.component.mjs +2 -2
  158. package/esm2020/lib/smart-tree/smarttree.model.mjs +1 -1
  159. package/esm2020/lib/smart-tree/smarttree.module.mjs +2 -2
  160. package/esm2020/lib/smart-tree/smarttree.service.interface.mjs +1 -1
  161. package/esm2020/lib/smart-tree/smarttree.service.mjs +1 -1
  162. package/esm2020/lib/view-context/api/api/api.mjs +1 -1
  163. package/esm2020/lib/view-context/api/api/view.service.mjs +1 -1
  164. package/esm2020/lib/view-context/api/api.module.mjs +1 -1
  165. package/esm2020/lib/view-context/api/configuration.mjs +1 -1
  166. package/esm2020/lib/view-context/api/encoder.mjs +1 -1
  167. package/esm2020/lib/view-context/api/index.mjs +1 -1
  168. package/esm2020/lib/view-context/api/model/closeResult.mjs +1 -1
  169. package/esm2020/lib/view-context/api/model/componentConstraint.mjs +1 -1
  170. package/esm2020/lib/view-context/api/model/componentModel.mjs +1 -1
  171. package/esm2020/lib/view-context/api/model/componentModelChange.mjs +1 -1
  172. package/esm2020/lib/view-context/api/model/dataChange.mjs +1 -1
  173. package/esm2020/lib/view-context/api/model/dataChangeEvent.mjs +1 -1
  174. package/esm2020/lib/view-context/api/model/dataChangeKind.mjs +1 -1
  175. package/esm2020/lib/view-context/api/model/messageData.mjs +1 -1
  176. package/esm2020/lib/view-context/api/model/messageOption.mjs +1 -1
  177. package/esm2020/lib/view-context/api/model/messageOptionType.mjs +1 -1
  178. package/esm2020/lib/view-context/api/model/messageResult.mjs +1 -1
  179. package/esm2020/lib/view-context/api/model/messageType.mjs +1 -1
  180. package/esm2020/lib/view-context/api/model/models.mjs +1 -1
  181. package/esm2020/lib/view-context/api/model/openPendingData.mjs +1 -1
  182. package/esm2020/lib/view-context/api/model/smartLinkData.mjs +1 -1
  183. package/esm2020/lib/view-context/api/model/uiAction.mjs +1 -1
  184. package/esm2020/lib/view-context/api/model/uiActionButtonDescriptor.mjs +1 -1
  185. package/esm2020/lib/view-context/api/model/uiActionButtonIconPos.mjs +1 -1
  186. package/esm2020/lib/view-context/api/model/uiActionButtonType.mjs +1 -1
  187. package/esm2020/lib/view-context/api/model/uiActionConstraint.mjs +1 -1
  188. package/esm2020/lib/view-context/api/model/uiActionDescriptor.mjs +1 -1
  189. package/esm2020/lib/view-context/api/model/uiActionDialogDescriptor.mjs +1 -1
  190. package/esm2020/lib/view-context/api/model/uiActionFeedbackType.mjs +1 -1
  191. package/esm2020/lib/view-context/api/model/uiActionInputType.mjs +1 -1
  192. package/esm2020/lib/view-context/api/model/uiActionRequest.mjs +1 -1
  193. package/esm2020/lib/view-context/api/model/uiActionUploadDescriptor.mjs +1 -1
  194. package/esm2020/lib/view-context/api/model/valueSet.mjs +1 -1
  195. package/esm2020/lib/view-context/api/model/view.mjs +1 -1
  196. package/esm2020/lib/view-context/api/model/viewApiError.mjs +1 -1
  197. package/esm2020/lib/view-context/api/model/viewConstraint.mjs +1 -1
  198. package/esm2020/lib/view-context/api/model/viewContext.mjs +1 -1
  199. package/esm2020/lib/view-context/api/model/viewContextChange.mjs +1 -1
  200. package/esm2020/lib/view-context/api/model/viewContextData.mjs +1 -1
  201. package/esm2020/lib/view-context/api/model/viewContextUpdate.mjs +1 -1
  202. package/esm2020/lib/view-context/api/model/viewData.mjs +1 -1
  203. package/esm2020/lib/view-context/api/model/viewState.mjs +1 -1
  204. package/esm2020/lib/view-context/api/model/viewStateUpdate.mjs +1 -1
  205. package/esm2020/lib/view-context/api/model/viewType.mjs +1 -1
  206. package/esm2020/lib/view-context/api/param.mjs +1 -1
  207. package/esm2020/lib/view-context/api/variables.mjs +1 -1
  208. package/esm2020/lib/view-context/smart-ui-action/dialogs/ui-action-confirm-dialog/ui-action-confirm-dialog.component.mjs +1 -1
  209. package/esm2020/lib/view-context/smart-ui-action/dialogs/ui-action-confirm-dialog/ui-action-confirm-dialog.service.mjs +3 -3
  210. package/esm2020/lib/view-context/smart-ui-action/dialogs/ui-action-file-upload-dialog/ui-action-file-upload-dialog.component.mjs +3 -3
  211. package/esm2020/lib/view-context/smart-ui-action/dialogs/ui-action-file-upload-dialog/ui-action-file-upload-dialog.service.mjs +3 -3
  212. package/esm2020/lib/view-context/smart-ui-action/dialogs/ui-action-input-dialog/ui-action-input-dialog.component.mjs +8 -7
  213. package/esm2020/lib/view-context/smart-ui-action/dialogs/ui-action-input-dialog/ui-action-input-dialog.service.mjs +3 -3
  214. package/esm2020/lib/view-context/smart-ui-action/ui-action-toolbar.component.mjs +4 -3
  215. package/esm2020/lib/view-context/smart-ui-action/ui-action.descriptor.service.mjs +2 -2
  216. package/esm2020/lib/view-context/smart-ui-action/ui-action.model.mjs +1 -1
  217. package/esm2020/lib/view-context/smart-ui-action/ui-action.service.mjs +2 -2
  218. package/esm2020/lib/view-context/smart-view-context-error-dialog/smart-view-context-error-dialog.service.mjs +2 -2
  219. package/esm2020/lib/view-context/smart-view-context.module.mjs +3 -3
  220. package/esm2020/lib/view-context/smart-view-context.service.mjs +4 -4
  221. package/esm2020/lib/view-context/smart-view-redirect/smart-view-redirect.mjs +9 -9
  222. package/esm2020/lib/view-context/value-api/model/valueSetData.mjs +1 -1
  223. package/esm2020/projects.mjs +15 -3
  224. package/fesm2015/smartbit4all-ng-client.mjs +9465 -3578
  225. package/fesm2015/smartbit4all-ng-client.mjs.map +1 -1
  226. package/fesm2020/smartbit4all-ng-client.mjs +9275 -3460
  227. package/fesm2020/smartbit4all-ng-client.mjs.map +1 -1
  228. package/lib/component-factory-service/component-factory-service.module.d.ts +6 -0
  229. package/lib/component-factory-service/component-factory-service.service.d.ts +13 -0
  230. package/lib/component-factory-service/projects.d.ts +2 -0
  231. package/lib/session/dev-tool/smart-dev-tool-dialog/smart-dev-tool-dialog.service.d.ts +1 -1
  232. package/lib/session/smart-session.module.d.ts +1 -1
  233. package/lib/smart-client/smart-component-api-client.d.ts +3 -4
  234. package/lib/smart-client/smart-file-uploader/smart-file-uploader.component.d.ts +3 -3
  235. package/lib/smart-component-layout/api/api/api.d.ts +3 -0
  236. package/lib/smart-component-layout/api/api/default.service.d.ts +33 -0
  237. package/lib/smart-component-layout/api/api.module.d.ts +11 -0
  238. package/lib/smart-component-layout/api/configuration.d.ts +104 -0
  239. package/lib/smart-component-layout/api/encoder.d.ts +11 -0
  240. package/lib/smart-component-layout/api/index.d.ts +6 -0
  241. package/lib/smart-component-layout/api/model/componentType.d.ts +17 -0
  242. package/lib/smart-component-layout/api/model/componentWidgetType.d.ts +17 -0
  243. package/lib/smart-component-layout/api/model/layoutDirection.d.ts +16 -0
  244. package/lib/smart-component-layout/api/model/models.d.ts +5 -0
  245. package/lib/smart-component-layout/api/model/smartComponentLayoutDefinition.d.ts +29 -0
  246. package/lib/smart-component-layout/api/model/smartComponentWidgetDefinition.d.ts +21 -0
  247. package/lib/smart-component-layout/api/param.d.ts +37 -0
  248. package/lib/smart-component-layout/api/variables.d.ts +8 -0
  249. package/lib/smart-component-layout/projects.d.ts +4 -0
  250. package/lib/smart-component-layout/smart-component-layout-utility.d.ts +4 -0
  251. package/lib/smart-component-layout/smart-component-layout.component.d.ts +35 -0
  252. package/lib/smart-component-layout/smart-component-layout.module.d.ts +13 -0
  253. package/lib/smart-dialog/projects.d.ts +4 -0
  254. package/lib/smart-dialog/smartdialog.component.d.ts +19 -0
  255. package/lib/smart-dialog/smartdialog.model.d.ts +67 -0
  256. package/lib/smart-dialog/smartdialog.module.d.ts +14 -0
  257. package/lib/smart-dialog/smartdialog.service.d.ts +20 -0
  258. package/lib/smart-expandable-section/expandable-section.component.d.ts +25 -0
  259. package/lib/smart-expandable-section/expandable-section.model.d.ts +40 -0
  260. package/lib/smart-expandable-section/projects.d.ts +4 -0
  261. package/lib/smart-expandable-section/smart-expandable-section.module.d.ts +15 -0
  262. package/lib/smart-expandable-section/smart-expandable-section.service.d.ts +6 -0
  263. package/lib/smart-filter/api/filter/model/filterExpressionBoolOperator.d.ts +16 -0
  264. package/lib/smart-filter/api/filter/model/filterExpressionBuilderField.d.ts +27 -0
  265. package/lib/smart-filter/api/filter/model/filterExpressionBuilderGroup.d.ts +39 -0
  266. package/lib/smart-filter/api/filter/model/filterExpressionBuilderModel.d.ts +21 -0
  267. package/lib/smart-filter/api/filter/model/filterExpressionData.d.ts +27 -0
  268. package/lib/smart-filter/api/filter/model/filterExpressionDataType.d.ts +19 -0
  269. package/lib/smart-filter/api/filter/model/filterExpressionField.d.ts +37 -0
  270. package/lib/smart-filter/api/filter/model/filterExpressionFieldList.d.ts +21 -0
  271. package/lib/smart-filter/api/filter/model/filterExpressionFieldWidgetType.d.ts +25 -0
  272. package/lib/smart-filter/api/filter/model/filterExpressionList.d.ts +18 -0
  273. package/lib/smart-filter/api/filter/model/filterExpressionOperandData.d.ts +24 -0
  274. package/lib/smart-filter/api/filter/model/filterExpressionOperation.d.ts +31 -0
  275. package/lib/smart-filter/api/filter/model/filterExpressionOrderBy.d.ts +28 -0
  276. package/lib/smart-filter/api/filter/model/model.d.ts +15 -0
  277. package/lib/smart-filter/api/filter/model/searchIndexObjectDefinitionData.d.ts +19 -0
  278. package/lib/smart-filter/api/filter/model/searchIndexPropertyDefinitionData.d.ts +18 -0
  279. package/lib/smart-filter/api/value/model/value.d.ts +29 -0
  280. package/lib/smart-filter/projects.d.ts +5 -0
  281. package/lib/smart-filter/smart-filter/components/smart-filter-expression-field/smart-filter-expression-field.component.d.ts +8 -0
  282. package/lib/smart-filter/smart-filter/components/smart-filter-simple/components/smart-filter-simple-field/smart-filter-simple-field.component.d.ts +31 -0
  283. package/lib/smart-filter/smart-filter/components/smart-filter-simple/smart-filter-simple.component.d.ts +18 -0
  284. package/lib/smart-filter/smart-filter/smart-filter.component.d.ts +15 -0
  285. package/lib/smart-filter/smart-filter/smart-filter.service.d.ts +16 -0
  286. package/lib/smart-filter/smart-filter.model.d.ts +25 -0
  287. package/lib/smart-filter/smart-filter.module.d.ts +15 -0
  288. package/lib/smart-form/api/api/api.d.ts +3 -0
  289. package/lib/smart-form/api/api/default.service.d.ts +33 -0
  290. package/lib/smart-form/api/api.module.d.ts +11 -0
  291. package/lib/smart-form/api/configuration.d.ts +104 -0
  292. package/lib/smart-form/api/encoder.d.ts +11 -0
  293. package/lib/smart-form/api/index.d.ts +6 -0
  294. package/lib/smart-form/api/model/models.d.ts +7 -0
  295. package/lib/smart-form/api/model/propertyMapping.d.ts +24 -0
  296. package/lib/smart-form/api/model/selectionDefinition.d.ts +40 -0
  297. package/lib/smart-form/api/model/smartFormWidgetDirection.d.ts +16 -0
  298. package/lib/smart-form/api/model/smartFormWidgetType.d.ts +42 -0
  299. package/lib/smart-form/api/model/smartLayoutDefinition.d.ts +15 -0
  300. package/lib/smart-form/api/model/smartMatrixModel.d.ts +28 -0
  301. package/lib/smart-form/api/model/smartWidgetDefinition.d.ts +77 -0
  302. package/lib/smart-form/api/param.d.ts +37 -0
  303. package/lib/smart-form/api/variables.d.ts +8 -0
  304. package/lib/smart-form/projects.d.ts +9 -0
  305. package/lib/smart-form/services/smartform.layout-definition.service.d.ts +40 -0
  306. package/lib/smart-form/services/smartform.service.d.ts +29 -0
  307. package/lib/smart-form/smartfileuploader/large-file-snack-bar/large-file-snack-bar.component.d.ts +8 -0
  308. package/lib/smart-form/smartfileuploader/smartfileuploader.component.d.ts +22 -0
  309. package/lib/smart-form/smartfileuploader/smartfileuploader.model.d.ts +7 -0
  310. package/lib/smart-form/smartform.component.d.ts +33 -0
  311. package/lib/smart-form/smartform.form-model.d.ts +521 -0
  312. package/lib/smart-form/smartform.model.d.ts +120 -0
  313. package/lib/smart-form/smartform.module.d.ts +34 -0
  314. package/lib/smart-form/widgets/components/smart-month-picker/smart-month-picker.component.d.ts +29 -0
  315. package/lib/smart-form/widgets/smartformwidget/smartformwidget.component.d.ts +84 -0
  316. package/lib/smart-form/widgets/smartformwidget/sortable-widget/sortable-widget.component.d.ts +20 -0
  317. package/lib/smart-form/widgets/smartformwidget/trackCaps.directive.d.ts +9 -0
  318. package/lib/smart-grid/api/grid-api/api/api.d.ts +3 -0
  319. package/lib/smart-grid/api/grid-api/api/grid.service.d.ts +140 -0
  320. package/lib/smart-grid/api/grid-api/api.module.d.ts +11 -0
  321. package/lib/smart-grid/api/grid-api/configuration.d.ts +80 -0
  322. package/lib/smart-grid/api/grid-api/encoder.d.ts +11 -0
  323. package/lib/smart-grid/api/grid-api/index.d.ts +5 -0
  324. package/lib/smart-grid/api/grid-api/model/gridColumnMeta.d.ts +18 -0
  325. package/lib/smart-grid/api/grid-api/model/gridDataAccessConfig.d.ts +35 -0
  326. package/lib/smart-grid/api/grid-api/model/gridModel.d.ts +30 -0
  327. package/lib/smart-grid/api/grid-api/model/gridPage.d.ts +26 -0
  328. package/lib/smart-grid/api/grid-api/model/gridRow.d.ts +22 -0
  329. package/lib/smart-grid/api/grid-api/model/gridSelectionMode.d.ts +17 -0
  330. package/lib/smart-grid/api/grid-api/model/gridSelectionType.d.ts +16 -0
  331. package/lib/smart-grid/api/grid-api/model/gridServerModel.d.ts +20 -0
  332. package/lib/smart-grid/api/grid-api/model/gridUpdateData.d.ts +19 -0
  333. package/lib/smart-grid/api/grid-api/model/gridView.d.ts +21 -0
  334. package/lib/smart-grid/api/grid-api/model/gridViewDescriptor.d.ts +33 -0
  335. package/lib/smart-grid/api/grid-api/model/models.d.ts +11 -0
  336. package/lib/smart-grid/api/grid-api/variables.d.ts +8 -0
  337. package/lib/smart-grid/components/expandable-grid/expandable-grid.component.d.ts +10 -0
  338. package/lib/smart-grid/components/smart-grid-card/smart-grid-card.component.d.ts +21 -0
  339. package/lib/smart-grid/components/table-layout-definer/table-layout-definer.component.d.ts +40 -0
  340. package/lib/smart-grid/models/model.d.ts +70 -0
  341. package/lib/smart-grid/projects.d.ts +5 -0
  342. package/lib/smart-grid/smart-grid.component.d.ts +67 -0
  343. package/lib/smart-grid/smart-grid.module.d.ts +20 -0
  344. package/lib/smart-grid/smart-grid.service.d.ts +26 -0
  345. package/lib/smart-icon/projects.d.ts +3 -0
  346. package/lib/smart-icon/smart-icon/smart-icon.component.d.ts +17 -0
  347. package/lib/smart-icon/smart-icon.module.d.ts +10 -0
  348. package/lib/smart-icon/smart-icon.service.d.ts +21 -0
  349. package/lib/smart-navbar/projects.d.ts +4 -0
  350. package/lib/smart-navbar/smart-navbar.component.d.ts +20 -0
  351. package/lib/smart-navbar/smart-navbar.model.d.ts +48 -0
  352. package/lib/smart-navbar/smart-navbar.module.d.ts +18 -0
  353. package/lib/smart-navbar/smart-navbar.service.d.ts +6 -0
  354. package/lib/smart-navigation/projects.d.ts +2 -0
  355. package/lib/smart-navigation/smart-navigation.interface.d.ts +11 -0
  356. package/lib/smart-navigation/smart-navigation.module.d.ts +6 -0
  357. package/lib/smart-navigation/smart-navigation.service.d.ts +18 -0
  358. package/lib/smart-ng-client.module.d.ts +9 -6
  359. package/lib/smart-subject/projects.d.ts +1 -0
  360. package/lib/smart-subject/smart-subject.d.ts +6 -0
  361. package/lib/smart-tab-group/projects.d.ts +4 -0
  362. package/lib/smart-tab-group/smart-tab-group.component.d.ts +21 -0
  363. package/lib/smart-tab-group/smart-tab-group.module.d.ts +13 -0
  364. package/lib/smart-tab-group/smart-tab-group.service.d.ts +6 -0
  365. package/lib/smart-tab-group/tab-content/tab-content.component.d.ts +14 -0
  366. package/lib/smart-tab-group/tab-group-simplified/tab-group.component.d.ts +29 -0
  367. package/lib/smart-tab-group/tabTile.model.d.ts +8 -0
  368. package/lib/smart-table/components/loading/loading.component.d.ts +8 -0
  369. package/lib/smart-table/projects.d.ts +5 -0
  370. package/lib/smart-table/smarttable.component.d.ts +34 -0
  371. package/lib/smart-table/smarttable.date-pipe.d.ts +18 -0
  372. package/lib/smart-table/smarttable.model.d.ts +183 -0
  373. package/lib/smart-table/smarttable.module.d.ts +23 -0
  374. package/lib/smart-table/smarttable.service.d.ts +6 -0
  375. package/lib/smart-table/tables/material-table/material-table.component.d.ts +8 -0
  376. package/lib/smart-table/tables/mobile-table/mobile-table.component.d.ts +8 -0
  377. package/lib/smart-table/tables/table.d.ts +59 -0
  378. package/lib/smart-tree/smarttree.component.d.ts +1 -1
  379. package/lib/smart-tree/smarttree.model.d.ts +1 -1
  380. package/lib/smart-tree/smarttree.module.d.ts +1 -1
  381. package/lib/smart-tree/smarttree.service.d.ts +1 -1
  382. package/lib/smart-tree/smarttree.service.interface.d.ts +1 -1
  383. package/lib/view-context/api/model/componentModel.d.ts +3 -2
  384. package/lib/view-context/api/model/view.d.ts +1 -1
  385. package/lib/view-context/smart-ui-action/dialogs/ui-action-confirm-dialog/ui-action-confirm-dialog.service.d.ts +1 -1
  386. package/lib/view-context/smart-ui-action/dialogs/ui-action-file-upload-dialog/ui-action-file-upload-dialog.component.d.ts +1 -1
  387. package/lib/view-context/smart-ui-action/dialogs/ui-action-file-upload-dialog/ui-action-file-upload-dialog.service.d.ts +1 -1
  388. package/lib/view-context/smart-ui-action/dialogs/ui-action-input-dialog/ui-action-input-dialog.component.d.ts +1 -1
  389. package/lib/view-context/smart-ui-action/dialogs/ui-action-input-dialog/ui-action-input-dialog.service.d.ts +1 -1
  390. package/lib/view-context/smart-ui-action/ui-action-toolbar.component.d.ts +1 -1
  391. package/lib/view-context/smart-ui-action/ui-action.model.d.ts +3 -1
  392. package/lib/view-context/smart-view-context-error-dialog/smart-view-context-error-dialog.service.d.ts +1 -1
  393. package/lib/view-context/smart-view-context.module.d.ts +2 -2
  394. package/lib/view-context/smart-view-context.service.d.ts +3 -3
  395. package/lib/view-context/smart-view-redirect/smart-view-redirect.d.ts +3 -3
  396. package/lib/view-context/value-api/model/valueSetData.d.ts +1 -1
  397. package/package.json +1 -4
  398. package/projects.d.ts +14 -2
  399. package/smartbit4all-ng-client-3.0.1.tgz +0 -0
  400. package/src/lib/component-factory-service/README.md +99 -0
  401. package/src/lib/smart-component-layout/README.md +31 -0
  402. package/src/lib/smart-component-layout/api/README.md +226 -0
  403. package/src/lib/smart-dialog/README.md +197 -0
  404. package/src/lib/smart-expandable-section/README.md +249 -0
  405. package/src/lib/smart-filter/README.md +101 -0
  406. package/src/lib/smart-form/README.md +1178 -0
  407. package/src/lib/smart-form/api/README.md +226 -0
  408. package/src/lib/smart-grid/README.md +24 -0
  409. package/src/lib/smart-grid/api/grid-api/README.md +203 -0
  410. package/src/lib/smart-icon/README.md +116 -0
  411. package/src/lib/smart-navbar/README.md +119 -0
  412. package/src/lib/smart-navigation/README.md +141 -0
  413. package/src/lib/smart-tab-group/README.md +155 -0
  414. package/src/lib/smart-table/README.md +667 -0
  415. package/src/lib/view-context/api/README.md +226 -226
  416. package/esm2020/lib/smart-client/projects.mjs +0 -5
  417. package/esm2020/lib/smart-client/smart.component.mjs +0 -30
  418. package/esm2020/lib/smart-client/smart.service.mjs +0 -30
  419. package/lib/smart-client/projects.d.ts +0 -4
  420. package/lib/smart-client/smart.component.d.ts +0 -11
  421. package/lib/smart-client/smart.service.d.ts +0 -11
  422. package/smartbit4all-ng-client-2.2.2.tgz +0 -0
package/projects.d.ts CHANGED
@@ -1,7 +1,19 @@
1
1
  export * from './lib/smart-ng-client.service';
2
2
  export * from './lib/smart-ng-client.module';
3
3
  export * from './lib/smart-client/smart-file-uploader/smart-file-uploader.component';
4
- export * from './lib/view-context/projects';
4
+ export * from './lib/component-factory-service/projects';
5
5
  export * from './lib/session/projects';
6
- export * from './lib/smart-client/projects';
6
+ export * from './lib/smart-component-layout/projects';
7
+ export * from './lib/smart-dialog/projects';
8
+ export * from './lib/smart-expandable-section/projects';
9
+ export * from './lib/smart-filter/projects';
10
+ export * from './lib/smart-form/projects';
11
+ export * from './lib/smart-grid/projects';
12
+ export * from './lib/smart-icon/projects';
13
+ export * from './lib/smart-navbar/projects';
14
+ export * from './lib/smart-navigation/projects';
15
+ export * from './lib/smart-subject/projects';
16
+ export * from './lib/smart-tab-group/projects';
17
+ export * from './lib/smart-table/projects';
7
18
  export * from './lib/smart-tree/projects';
19
+ export * from './lib/view-context/projects';
Binary file
@@ -0,0 +1,99 @@
1
+ # Smart Component Factory Service
2
+
3
+ ## References
4
+
5
+ These packages must be updated in case of a new version:
6
+
7
+ - [_@smartbit4all/expandable-section_](https://www.npmjs.com/package/@smartbit4all/expandable-section)
8
+
9
+ ---
10
+
11
+ ## How to use
12
+
13
+ ### Installation
14
+
15
+ Go to your project, open the terminal and use the following command:
16
+
17
+ npm i @smartbit4all/component-factory-service
18
+
19
+ ### Usage
20
+
21
+ In this example there are two components, which are called `Example1Component` and `Example2Component`, these will be presented with the `ComponentFactoryService` in the `ParentComponent`.
22
+
23
+ `parent.component.html:`
24
+
25
+ <button (click)="show(1)">Show 1</button>
26
+ <button (click)="show(2)">Show 2</button>
27
+
28
+ <ng-template #exampleRef></ng-template>
29
+
30
+ `parent.component.ts:`
31
+
32
+ export class ParentComponent implements AfterViewInit {
33
+
34
+ @ViewChild('exampleRef', { read: ViewContainerRef }) vcRefExample?: ViewContainerRef;
35
+
36
+ componentRef?: ComponentRef<any>;
37
+
38
+ constructor(private cfService: ComponentFactoryService) { ... }
39
+
40
+ ngAfterViewInit(): void {
41
+ this.createExampleOne();
42
+ }
43
+
44
+ show(componentNumber: number): void {
45
+ if (componentNumber === 1)
46
+ this.createExampleOne();
47
+ else if (componentNumber === 2)
48
+ this.createExampleTwo();
49
+ }
50
+
51
+ createExampleOne(): void {
52
+ this.vcRefExample?.clear();
53
+
54
+ this.cfService.createComponent(
55
+ this.vcRefExample!,
56
+ Example1Component
57
+ );
58
+ }
59
+
60
+ createExampleTwo(): void {
61
+ if (this.componentRef) {
62
+ this.cfService.destroyComponent(this.componentRef);
63
+ }
64
+
65
+ let exampleInput: any = { ... }
66
+
67
+ this.componentRef = this.cfService.createComponent(
68
+ this.vcRefExample!,
69
+ Example2Component,
70
+ new Map<string, any>([['exampleInput', exampleInput]])
71
+ );
72
+ }
73
+ }
74
+
75
+ `example2.component.ts:`
76
+
77
+ export class Example2Component {
78
+ @Input() exampleInput: any;
79
+
80
+ ...
81
+ }
82
+
83
+ ---
84
+
85
+ ## Version logs
86
+
87
+ ## @smartbit4all/form v1.0.1
88
+
89
+ **Type: Update**
90
+
91
+ The package has been published.
92
+
93
+ ## @smartbit4all/component-factory-service v0.0.1
94
+
95
+ **Type: Feature**
96
+
97
+ The npm package has been created.
98
+
99
+ The `ComponentFactoryService` helps to use **ng-template** in your code.
@@ -0,0 +1,31 @@
1
+ # Smart Component Layout
2
+
3
+ ---
4
+
5
+ ## How to use
6
+
7
+ ### Installation
8
+
9
+ Go to your project, open the terminal and use the following command:
10
+
11
+ npm i @smartbit4all/component-layout
12
+
13
+ Import the `SmartComponentLayoutComponent` in the app.module:
14
+
15
+ `app.module.ts:`
16
+
17
+ @NgModule({
18
+ declarations: [...],
19
+ imports: [
20
+ SmartComponentLayoutComponent,
21
+ ...
22
+ ],
23
+ providers: [
24
+ SmartSessionService,
25
+ SmartViewContextService,
26
+ ...
27
+ ],
28
+ ...
29
+ })
30
+
31
+ ### Usage
@@ -0,0 +1,226 @@
1
+ ## @
2
+
3
+ ### Building
4
+
5
+ To install the required dependencies and to build the typescript sources run:
6
+ ```
7
+ npm install
8
+ npm run build
9
+ ```
10
+
11
+ ### publishing
12
+
13
+ First build the package then run ```npm publish dist``` (don't forget to specify the `dist` folder!)
14
+
15
+ ### consuming
16
+
17
+ Navigate to the folder of your consuming project and run one of next commands.
18
+
19
+ _published:_
20
+
21
+ ```
22
+ npm install @ --save
23
+ ```
24
+
25
+ _without publishing (not recommended):_
26
+
27
+ ```
28
+ npm install PATH_TO_GENERATED_PACKAGE/dist.tgz --save
29
+ ```
30
+
31
+ _It's important to take the tgz file, otherwise you'll get trouble with links on windows_
32
+
33
+ _using `npm link`:_
34
+
35
+ In PATH_TO_GENERATED_PACKAGE/dist:
36
+ ```
37
+ npm link
38
+ ```
39
+
40
+ In your project:
41
+ ```
42
+ npm link
43
+ ```
44
+
45
+ __Note for Windows users:__ The Angular CLI has troubles to use linked npm packages.
46
+ Please refer to this issue https://github.com/angular/angular-cli/issues/8284 for a solution / workaround.
47
+ Published packages are not effected by this issue.
48
+
49
+
50
+ #### General usage
51
+
52
+ In your Angular project:
53
+
54
+
55
+ ```
56
+ // without configuring providers
57
+ import { ApiModule } from '';
58
+ import { HttpClientModule } from '@angular/common/http';
59
+
60
+ @NgModule({
61
+ imports: [
62
+ ApiModule,
63
+ // make sure to import the HttpClientModule in the AppModule only,
64
+ // see https://github.com/angular/angular/issues/20575
65
+ HttpClientModule
66
+ ],
67
+ declarations: [ AppComponent ],
68
+ providers: [],
69
+ bootstrap: [ AppComponent ]
70
+ })
71
+ export class AppModule {}
72
+ ```
73
+
74
+ ```
75
+ // configuring providers
76
+ import { ApiModule, Configuration, ConfigurationParameters } from '';
77
+
78
+ export function apiConfigFactory (): Configuration {
79
+ const params: ConfigurationParameters = {
80
+ // set configuration parameters here.
81
+ }
82
+ return new Configuration(params);
83
+ }
84
+
85
+ @NgModule({
86
+ imports: [ ApiModule.forRoot(apiConfigFactory) ],
87
+ declarations: [ AppComponent ],
88
+ providers: [],
89
+ bootstrap: [ AppComponent ]
90
+ })
91
+ export class AppModule {}
92
+ ```
93
+
94
+ ```
95
+ // configuring providers with an authentication service that manages your access tokens
96
+ import { ApiModule, Configuration } from '';
97
+
98
+ @NgModule({
99
+ imports: [ ApiModule ],
100
+ declarations: [ AppComponent ],
101
+ providers: [
102
+ {
103
+ provide: Configuration,
104
+ useFactory: (authService: AuthService) => new Configuration(
105
+ {
106
+ basePath: environment.apiUrl,
107
+ accessToken: authService.getAccessToken.bind(authService)
108
+ }
109
+ ),
110
+ deps: [AuthService],
111
+ multi: false
112
+ }
113
+ ],
114
+ bootstrap: [ AppComponent ]
115
+ })
116
+ export class AppModule {}
117
+ ```
118
+
119
+ ```
120
+ import { DefaultApi } from '';
121
+
122
+ export class AppComponent {
123
+ constructor(private apiGateway: DefaultApi) { }
124
+ }
125
+ ```
126
+
127
+ Note: The ApiModule is restricted to being instantiated once app wide.
128
+ This is to ensure that all services are treated as singletons.
129
+
130
+ #### Using multiple OpenAPI files / APIs / ApiModules
131
+ In order to use multiple `ApiModules` generated from different OpenAPI files,
132
+ you can create an alias name when importing the modules
133
+ in order to avoid naming conflicts:
134
+ ```
135
+ import { ApiModule } from 'my-api-path';
136
+ import { ApiModule as OtherApiModule } from 'my-other-api-path';
137
+ import { HttpClientModule } from '@angular/common/http';
138
+
139
+ @NgModule({
140
+ imports: [
141
+ ApiModule,
142
+ OtherApiModule,
143
+ // make sure to import the HttpClientModule in the AppModule only,
144
+ // see https://github.com/angular/angular/issues/20575
145
+ HttpClientModule
146
+ ]
147
+ })
148
+ export class AppModule {
149
+
150
+ }
151
+ ```
152
+
153
+
154
+ ### Set service base path
155
+ If different than the generated base path, during app bootstrap, you can provide the base path to your service.
156
+
157
+ ```
158
+ import { BASE_PATH } from '';
159
+
160
+ bootstrap(AppComponent, [
161
+ { provide: BASE_PATH, useValue: 'https://your-web-service.com' },
162
+ ]);
163
+ ```
164
+ or
165
+
166
+ ```
167
+ import { BASE_PATH } from '';
168
+
169
+ @NgModule({
170
+ imports: [],
171
+ declarations: [ AppComponent ],
172
+ providers: [ provide: BASE_PATH, useValue: 'https://your-web-service.com' ],
173
+ bootstrap: [ AppComponent ]
174
+ })
175
+ export class AppModule {}
176
+ ```
177
+
178
+
179
+ #### Using @angular/cli
180
+ First extend your `src/environments/*.ts` files by adding the corresponding base path:
181
+
182
+ ```
183
+ export const environment = {
184
+ production: false,
185
+ API_BASE_PATH: 'http://127.0.0.1:8080'
186
+ };
187
+ ```
188
+
189
+ In the src/app/app.module.ts:
190
+ ```
191
+ import { BASE_PATH } from '';
192
+ import { environment } from '../environments/environment';
193
+
194
+ @NgModule({
195
+ declarations: [
196
+ AppComponent
197
+ ],
198
+ imports: [ ],
199
+ providers: [{ provide: BASE_PATH, useValue: environment.API_BASE_PATH }],
200
+ bootstrap: [ AppComponent ]
201
+ })
202
+ export class AppModule { }
203
+ ```
204
+
205
+ ### Customizing path parameter encoding
206
+
207
+ Without further customization, only [path-parameters][parameter-locations-url] of [style][style-values-url] 'simple'
208
+ and Dates for format 'date-time' are encoded correctly.
209
+
210
+ Other styles (e.g. "matrix") are not that easy to encode
211
+ and thus are best delegated to other libraries (e.g.: [@honoluluhenk/http-param-expander]).
212
+
213
+ To implement your own parameter encoding (or call another library),
214
+ pass an arrow-function or method-reference to the `encodeParam` property of the Configuration-object
215
+ (see [General Usage](#general-usage) above).
216
+
217
+ Example value for use in your Configuration-Provider:
218
+ ```typescript
219
+ new Configuration({
220
+ encodeParam: (param: Param) => myFancyParamEncoder(param),
221
+ })
222
+ ```
223
+
224
+ [parameter-locations-url]: https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#parameter-locations
225
+ [style-values-url]: https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#style-values
226
+ [@honoluluhenk/http-param-expander]: https://www.npmjs.com/package/@honoluluhenk/http-param-expander
@@ -0,0 +1,197 @@
1
+ # Smart Dialog
2
+
3
+ ## References
4
+
5
+ These packages must be updated in case of a new version:
6
+
7
+ - [_@smartbit4all/view-context_](https://www.npmjs.com/package/@smartbit4all/view-context)
8
+
9
+ ---
10
+
11
+ ## How to use
12
+
13
+ ### Installation
14
+
15
+ Go to your project, open the terminal and use the following command:
16
+
17
+ npm i @smartbit4all/dialog
18
+
19
+ Then import it in the AppModule:
20
+
21
+ `app.module.ts:`
22
+
23
+ import { SmartdialogModule, SmartdialogService } from '@smartbit4all/dialog';
24
+ ...
25
+ @NgModule({
26
+ declarations: [...]
27
+ imports: [
28
+ ...
29
+ SmartdialogModule,
30
+ ],
31
+ providers: [
32
+ ...
33
+ SmartdialogService,
34
+ ]
35
+ ...
36
+ })
37
+
38
+ ### Usage #1
39
+
40
+ If you **do not** use the **`SmartViewContext`** package in your project **or the dialog is not opened by the BFF**, you **have to create a service** for you component.
41
+
42
+ Create a component for the content of the dialog. In the folder of the component create an Angular Service.
43
+
44
+ - src/app/.../example-dialog/
45
+ - example-dialog.component.css
46
+ - example-dialog.component.html
47
+ - example-dialog.component.ts
48
+ - example-dialog.service.ts
49
+
50
+ Extend your service with the `SmartdialogService`. You can see an example for a specific service belove.
51
+
52
+ `example-dialog.service.ts:`
53
+
54
+ @Injectable({
55
+ providedIn: 'root'
56
+ })
57
+ export class ExampleDialogService extends SmartdialogService {
58
+ constructor(
59
+ dialog: MatDialog,
60
+ router: Router
61
+ ) {
62
+ super(dialog, router);
63
+ }
64
+
65
+ override handleAfterClosed(result: any): void {
66
+ ...
67
+ }
68
+
69
+ openDialog(): void {
70
+ const dialogData: SmartDialogData = { ... };
71
+ this.createDialog(dialogData, SmartDialog);
72
+ }
73
+
74
+ onAction(params: any): void {
75
+ this.closeDialog().then(() => {
76
+ ...
77
+ });
78
+ }
79
+ }
80
+
81
+ In case if you use **RouterOutlet** in your dialog, it should be used like this:
82
+
83
+ `example-dialog.component.html:`
84
+
85
+ <router-outlet name="exampleNamedOutlet"></router-outlet>
86
+
87
+ `app-routing.module.ts:`
88
+
89
+ ...
90
+ {
91
+ path: 'example-url',
92
+ component: ExampleComponent,
93
+ outlet: 'exampleNamedOutlet'
94
+ }
95
+
96
+ `example-dialog.service.ts:`
97
+
98
+ const dialogData: SmartDialogData = {
99
+ ...
100
+ outlets: {
101
+ exampleNamedOutlet: null
102
+ }
103
+ };
104
+
105
+ ### Usage #2
106
+
107
+ If you **use** the **`SmartViewContext`** package in your project **and the dialog is opened by the BFF**, you **do not** have to **create a service** for you component.
108
+
109
+ `view-context.pages.ts:`
110
+
111
+ export enum Pages {
112
+ VIEW_CONTEXT = 'viewContextUuid',
113
+ EXAMPLE_DIALOG = 'exampleDialog'
114
+ }
115
+
116
+ `view-context.handlers.ts:`
117
+
118
+ export const viewContextHandlers: SmartViewHandlerModel[] = [
119
+ {
120
+ name: Pages.EXAMPLE_DIALOG,
121
+ component: ExmapleDialogComponent
122
+ }
123
+ ];
124
+
125
+ ---
126
+
127
+ ## Version logs
128
+
129
+ ## @smartbit4all/form v1.0.5
130
+
131
+ **Type: Update**
132
+
133
+ The **openComponentAsDialog** function returns the reference of the created dialog.
134
+
135
+ openComponentAsDialog(component: ComponentType<any>, viewName: string): MatDialogRef<any, any> { ... }
136
+
137
+ ## @smartbit4all/form v1.0.4
138
+
139
+ **Type: Update**
140
+
141
+ `@smartbit4all/icon` support.
142
+
143
+ ## @smartbit4all/form v1.0.1
144
+
145
+ **Type: Update**
146
+
147
+ The package has been published.
148
+
149
+ ## @smartbit4all/dialog v0.1.0
150
+
151
+ **Type: Feature**
152
+
153
+ From this version the usage of `SmartViewContext` is supported.
154
+
155
+ The **SmartDialogService got a new function** which **creates** a unified **SmartDialogData object** and **opens the dialog**.
156
+
157
+ export class SmartdialogService {
158
+
159
+ ...
160
+
161
+ openComponentAsDialog(component: ComponentType<any>, viewName: string): void {
162
+ let smartDialog: SmartDialogData = {
163
+ size: {},
164
+ content: {
165
+ title: viewName,
166
+ },
167
+ customComponent: component,
168
+ };
169
+
170
+ this.createDialog(smartDialog, component);
171
+ }
172
+ }
173
+
174
+ ## @smartbit4all/dialog v0.0.7
175
+
176
+ **Type: Feature**
177
+
178
+ In this update a new way to handle dialogs and its data has been introduced.
179
+
180
+ With the `SmartdialogService` **creating** and **closing** a dialog has become easier and more unified. **This service should be used as a parent class of a workflow specific service.**
181
+
182
+ ## @smartbit4all/dialog v0.0.2
183
+
184
+ **Type: Version updates**
185
+
186
+ The versions of the SmartForm and the SmartTable have been updated.
187
+
188
+ **New versions:**
189
+
190
+ - @smartbit4all/form: v0.1.1
191
+ - @smartbit4all/table: v0.1.3
192
+
193
+ ## @smartbit4all/dialog v0.0.1
194
+
195
+ **Type: Feature**
196
+
197
+ The basic smart dialog with its features.