@smartbit4all/ng-client 2.2.1 → 3.0.0

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 +4 -5
  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.0.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.1.tgz +0 -0
@@ -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,24 @@
1
+ # SmartGrid
2
+
3
+ This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 13.2.0.
4
+
5
+ ## Code scaffolding
6
+
7
+ Run `ng generate component component-name --project smart-grid` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project smart-grid`.
8
+ > Note: Don't forget to add `--project smart-grid` or else it will be added to the default project in your `angular.json` file.
9
+
10
+ ## Build
11
+
12
+ Run `ng build smart-grid` to build the project. The build artifacts will be stored in the `dist/` directory.
13
+
14
+ ## Publishing
15
+
16
+ After building your library with `ng build smart-grid`, go to the dist folder `cd dist/smart-grid` and run `npm publish`.
17
+
18
+ ## Running unit tests
19
+
20
+ Run `ng test smart-grid` to execute the unit tests via [Karma](https://karma-runner.github.io).
21
+
22
+ ## Further help
23
+
24
+ To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
@@ -0,0 +1,203 @@
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
+ ```
@@ -0,0 +1,116 @@
1
+ # Smart Icon
2
+
3
+ ## How to use
4
+
5
+ ### Installation
6
+
7
+ This package use **MatIcon** from Angular Material. To use this package please **install Angular Material** first.
8
+
9
+ Go to your project, open the terminal and use the following command:
10
+
11
+ npm i @smartbit4all/icon
12
+
13
+ Then import it in the AppModule:
14
+
15
+ `app.module.ts:`
16
+
17
+ import { SmartIconModule, SmartIconService } from '@smartbit4all/icon';
18
+ ...
19
+ @NgModule({
20
+ declarations: [...]
21
+ imports: [
22
+ ...
23
+ SmartIconModule,
24
+ ],
25
+ providers: [
26
+ ...
27
+ SmartIconService,
28
+ ]
29
+ ...
30
+ })
31
+
32
+ ### Prerequisites
33
+
34
+ In order to use custom icons with this package you have to do the following steps:
35
+
36
+ Place the svg icons into a subfolder of the /assets
37
+
38
+ `assets/customIcons/`
39
+
40
+ - customAddIcon.svg
41
+ - customUserIcon.svg
42
+
43
+ Change the default colours in the svg to 'color'.
44
+
45
+ `assets/customIcons/customAddIcon.svg`
46
+
47
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
48
+ <path ... fill="color" stroke="color" />
49
+ </svg>
50
+
51
+ Create an enum which contains all the icons and their paths.
52
+
53
+ `src/app/icons/customIcon.ts`
54
+
55
+ export type CustomIcon = 'Add' | 'User';
56
+
57
+ export const CustomIcon = {
58
+ Add: 'customAddIcon' as CustomIcon,
59
+ User: 'customUserIcon' as CustomIcon
60
+ }
61
+
62
+ Set up the icon sets in the environment.ts. The **property name of the object** (in this scenario _customIcons_) has to **match** with the name of the **folder that contains the svg files**. The value has to be the enum which contains the name of the svg files.
63
+
64
+ `src/environments.ts`
65
+
66
+ import { CustomIcon } from 'src/app/icons/';
67
+
68
+ export const environment = {
69
+ ...
70
+ customIconSets: [{ customIcons: CustomIcon }],
71
+ };
72
+
73
+ Provide the icon sets for the SmartIconService.
74
+
75
+ `src/app/app.component.ts`
76
+
77
+ export class AppComponent {
78
+
79
+ constructor(private smartIconService: SmartIconService) {
80
+ this.smartIconService.iconSets(environment.customIconSets);
81
+ }
82
+
83
+ }
84
+
85
+ ### Usage
86
+
87
+ `example.component.html`
88
+
89
+ <smart-icon
90
+ [icon]="'Add'"
91
+ [color]="'primary'"
92
+ ></smart-icon>
93
+
94
+ Set the material styles for these:
95
+
96
+ `custom-theme.scss`
97
+
98
+ .mat-icon.mat-primary {
99
+ stroke: blue;
100
+ color: blue;
101
+ }
102
+ .mat-icon.mat-accent {
103
+ stroke: red;
104
+ color: red;
105
+ }
106
+ ...
107
+
108
+ ---
109
+
110
+ ## Version logs
111
+
112
+ ## @smartbit4all/icon v1.0.0
113
+
114
+ **Type: Feature**
115
+
116
+ The `@smartbit4all/icon` has been published.
@@ -0,0 +1,119 @@
1
+ # Smart Navbar
2
+
3
+ ## References
4
+
5
+ These packages must be updated in case of a new version:
6
+
7
+ - There are no references yet
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/navbar
18
+
19
+ Then import it in the AppModule:
20
+
21
+ `app.module.ts:`
22
+
23
+ import { SmartNavbarModule } from '@smartbit4all/navbar';
24
+ ...
25
+ @NgModule({
26
+ declarations: [...]
27
+ imports: [
28
+ ...
29
+ SmartNavbarModule,
30
+ ],
31
+ ...
32
+ })
33
+
34
+ ### Usage
35
+
36
+ `example.component.html:`
37
+
38
+ <smart-navbar [smartNavbar]="exampleNavbar"></smart-navbar>
39
+
40
+ `example.component.css:`
41
+
42
+ .navbar {
43
+ height: 250px;
44
+ }
45
+
46
+ ::ng-deep .navbarHeight {
47
+ background-color: transparent !important;
48
+ }
49
+
50
+ `example.component.ts:`
51
+
52
+ export class ExampleComponent {
53
+ exampleNavbar: SmartNavbar;
54
+ user: ExampleUser;
55
+
56
+ constructor() {
57
+ this.exampleNavbar = {
58
+ icon: 'assets/icon.png',
59
+ searchBar: {
60
+ placeholder: 'Search',
61
+ quickFilterLabel: 'Quick filters',
62
+ quickFilters: ['Quick filter 1'],
63
+ searchCallback: this.onSearch.bind(this)
64
+ },
65
+ iconCallback: this.onHome.bind(this),
66
+ filterButtonLabel: 'Filters',
67
+ filterButtonCallback: this.onFilter.bind(this),
68
+ userSettings: {
69
+ label: user.name,
70
+ settings: [
71
+ {
72
+ label: 'Logout',
73
+ icon: 'logout',
74
+ position: SmartUserSettinsIconPosition.POST,
75
+ callback: logout.bind(this)
76
+ }
77
+ ]
78
+ }
79
+ };
80
+ }
81
+
82
+ logout(): void {
83
+ ...
84
+ }
85
+ }
86
+
87
+ You can put your custom component before input field. In this way the iconCallback wont be called.:
88
+
89
+ <smart-navbar [smartNavbar]="exampleNavbar">
90
+ <div titleComponent> Custom title </div>
91
+ </smart-navbar>
92
+
93
+ You can put your custom component into the filter button:
94
+
95
+ <smart-navbar [smartNavbar]="exampleNavbar">
96
+ <div filterComponent> Custom title </div>
97
+ </smart-navbar>
98
+
99
+ ---
100
+
101
+ ## Version logs
102
+
103
+ ## @smartbit4all/form v1.0.5
104
+
105
+ **Type: Feature**
106
+
107
+ From now on the user drop-down menu can be used. The menu items can be parameterized with an icon, its position (FRONT or POST), label and a callback.
108
+
109
+ ## @smartbit4all/form v1.0.1
110
+
111
+ **Type: Update**
112
+
113
+ The package has been published.
114
+
115
+ ## @smartbit4all/navbar v0.0.3
116
+
117
+ **Type: Feature**
118
+
119
+ The basic smart navbar with its features.