@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,33 @@
1
+ import { OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
2
+ import { FormGroup } from '@angular/forms';
3
+ import { Subject } from 'rxjs';
4
+ import { SmartFormWidgetDirection } from './api';
5
+ import { SmartFormService } from './services/smartform.service';
6
+ import { SmartForm, SmartFormInvalidFields, SophisticatedValueChange } from './smartform.model';
7
+ import * as i0 from "@angular/core";
8
+ export declare class SmartformComponent implements OnInit, OnDestroy, OnChanges {
9
+ private service;
10
+ private _destroy$;
11
+ smartForm?: SmartForm;
12
+ onBlurSubject?: Subject<any>;
13
+ onValueChangeSubject?: Subject<any>;
14
+ sophisticatedValueChange: Subject<SophisticatedValueChange>;
15
+ form: FormGroup;
16
+ direction: {
17
+ COL: SmartFormWidgetDirection;
18
+ ROW: SmartFormWidgetDirection;
19
+ };
20
+ constructor(service: SmartFormService);
21
+ ngOnChanges(changes: SimpleChanges): void;
22
+ ngOnInit(): void;
23
+ refresh(): void;
24
+ constructForm(): void;
25
+ ngOnDestroy(): void;
26
+ getForm(): FormGroup;
27
+ getInvalidFields(): SmartFormInvalidFields;
28
+ submitForm(validate?: boolean): SmartForm;
29
+ keyDownFunction(event: any): void;
30
+ getModel(): any;
31
+ static ɵfac: i0.ɵɵFactoryDeclaration<SmartformComponent, never>;
32
+ static ɵcmp: i0.ɵɵComponentDeclaration<SmartformComponent, "smartform", never, { "smartForm": "smartForm"; }, {}, never, never>;
33
+ }
@@ -0,0 +1,521 @@
1
+ import { QuillModules } from "ngx-quill";
2
+ import { SelectionDefinition, SmartFormWidgetDirection, SmartFormWidgetType } from "./api";
3
+ import { SmartFormTextFieldButton, SmartFormWidgetWidth, SmartIndicator, SmartValidator, SmartWidgetHintConfig, ToggleLabelPosition } from "./smartform.model";
4
+ export declare type SmartFormWidget<T> = SmartTextField<T> | SmartTextFieldNumber<T> | SmartTextFieldChips<T> | SmartTextBox<T> | SmartSelect<T> | SmartSelectMultiple<T> | SmartCheckBox<T> | SmartCheckBox2<T> | SmartRadioButton<T> | SmartDatePicker<T> | SmartDateTimePicker<T> | SmartContainer<T> | SmartLabel | SmartTime<T> | SmartToggle<T> | SmartIndicatorItem | SmartFileUploader | SmartImage | SmartDivider | SmartButton | SmartComponent | SmartRichText | SmartSortable<T> | SmartMatrix | SmartYoutubePlayer | SmartMonthPicker;
5
+ export interface SmartTextField<T> {
6
+ type: SmartFormWidgetType.TEXT_FIELD;
7
+ key: string;
8
+ label: string;
9
+ originalLabel?: string;
10
+ showLabel?: boolean;
11
+ value?: T;
12
+ placeholder?: string;
13
+ originalPlaceholder?: string;
14
+ minWidth?: SmartFormWidgetWidth | number | number;
15
+ isDisabled?: boolean;
16
+ isReadonly?: boolean;
17
+ prefix?: string;
18
+ suffix?: string;
19
+ validators?: SmartValidator[];
20
+ cssClass?: string;
21
+ cssLabelClass?: string;
22
+ isPassword?: boolean;
23
+ textFieldButton?: SmartFormTextFieldButton;
24
+ capsLockWarning?: string;
25
+ capsLockWarningIcon?: string;
26
+ isVisible?: boolean;
27
+ mask?: string;
28
+ error?: string;
29
+ icon?: string;
30
+ iconColor?: string;
31
+ iconPosition?: "PRE" | "POST";
32
+ errorIcon?: string;
33
+ errorIconColor?: string;
34
+ valueList?: SmartItem<T>[];
35
+ selection?: SelectionDefinition;
36
+ hint?: string;
37
+ hintConfig?: SmartWidgetHintConfig;
38
+ maxLength?: number;
39
+ showCharacterLimitSuffix?: boolean;
40
+ }
41
+ export interface SmartTextFieldNumber<T> {
42
+ type: SmartFormWidgetType.TEXT_FIELD_NUMBER;
43
+ key: string;
44
+ label: string;
45
+ originalLabel?: string;
46
+ showLabel?: boolean;
47
+ value?: T;
48
+ placeholder?: string;
49
+ originalPlaceholder?: string;
50
+ minWidth?: SmartFormWidgetWidth | number | number;
51
+ isDisabled?: boolean;
52
+ isReadonly?: boolean;
53
+ prefix?: string;
54
+ suffix?: string;
55
+ validators?: SmartValidator[];
56
+ cssClass?: string;
57
+ cssLabelClass?: string;
58
+ textFieldButton?: SmartFormTextFieldButton;
59
+ isVisible?: boolean;
60
+ minValues?: number;
61
+ maxValues?: number;
62
+ error?: string;
63
+ icon?: string;
64
+ iconColor?: string;
65
+ errorIcon?: string;
66
+ errorIconColor?: string;
67
+ hint?: string;
68
+ hintConfig?: SmartWidgetHintConfig;
69
+ }
70
+ export interface SmartTextFieldChips<T> {
71
+ type: SmartFormWidgetType.TEXT_FIELD_CHIPS;
72
+ key: string;
73
+ label: string;
74
+ originalLabel?: string;
75
+ showLabel?: boolean;
76
+ value?: T;
77
+ placeholder?: string;
78
+ originalPlaceholder?: string;
79
+ minWidth?: SmartFormWidgetWidth | number | number;
80
+ isDisabled?: boolean;
81
+ isReadonly?: boolean;
82
+ validators?: SmartValidator[];
83
+ cssClass?: string;
84
+ cssLabelClass?: string;
85
+ isVisible?: boolean;
86
+ error?: string;
87
+ errorIcon?: string;
88
+ errorIconColor?: string;
89
+ valueList: SmartItem<T>[];
90
+ minValues?: number;
91
+ maxValues?: number;
92
+ hint?: string;
93
+ hintConfig?: SmartWidgetHintConfig;
94
+ }
95
+ export interface SmartTextBox<T> {
96
+ type: SmartFormWidgetType.TEXT_BOX;
97
+ key: string;
98
+ label: string;
99
+ originalLabel?: string;
100
+ showLabel?: boolean;
101
+ value?: T;
102
+ placeholder?: string;
103
+ originalPlaceholder?: string;
104
+ minWidth?: SmartFormWidgetWidth | number;
105
+ isDisabled?: boolean;
106
+ isReadonly?: boolean;
107
+ validators?: SmartValidator[];
108
+ cssClass?: string;
109
+ cssLabelClass?: string;
110
+ isVisible?: boolean;
111
+ error?: string;
112
+ errorIcon?: string;
113
+ errorIconColor?: string;
114
+ hint?: string;
115
+ hintConfig?: SmartWidgetHintConfig;
116
+ maxLength?: number;
117
+ showCharacterLimitSuffix?: boolean;
118
+ }
119
+ export interface SmartSelect<T> {
120
+ type: SmartFormWidgetType.SELECT;
121
+ key: string;
122
+ label: string;
123
+ originalLabel?: string;
124
+ showLabel?: boolean;
125
+ value?: T;
126
+ minWidth?: SmartFormWidgetWidth | number;
127
+ isDisabled?: boolean;
128
+ isReadonly?: boolean;
129
+ validators?: SmartValidator[];
130
+ cssClass?: string;
131
+ cssLabelClass?: string;
132
+ isVisible?: boolean;
133
+ error?: string;
134
+ errorIcon?: string;
135
+ errorIconColor?: string;
136
+ valueList: SmartItems<T>[];
137
+ selection?: SelectionDefinition;
138
+ hint?: string;
139
+ hintConfig?: SmartWidgetHintConfig;
140
+ }
141
+ export interface SmartSelectMultiple<T> {
142
+ type: SmartFormWidgetType.SELECT_MULTIPLE;
143
+ key: string;
144
+ label: string;
145
+ originalLabel?: string;
146
+ showLabel?: boolean;
147
+ value?: T;
148
+ minWidth?: SmartFormWidgetWidth | number;
149
+ isDisabled?: boolean;
150
+ isReadonly?: boolean;
151
+ validators?: SmartValidator[];
152
+ cssClass?: string;
153
+ cssLabelClass?: string;
154
+ isVisible?: boolean;
155
+ error?: string;
156
+ errorIcon?: string;
157
+ errorIconColor?: string;
158
+ valueList: SmartItems<T>[];
159
+ hint?: string;
160
+ hintConfig?: SmartWidgetHintConfig;
161
+ }
162
+ export interface SmartCheckBox<T> {
163
+ type: SmartFormWidgetType.CHECK_BOX;
164
+ key: string;
165
+ label: string;
166
+ originalLabel?: string;
167
+ showLabel?: boolean;
168
+ value?: T;
169
+ minWidth?: SmartFormWidgetWidth | number;
170
+ isDisabled?: boolean;
171
+ isReadonly?: boolean;
172
+ validators?: SmartValidator[];
173
+ cssClass?: string;
174
+ cssLabelClass?: string;
175
+ isVisible?: boolean;
176
+ error?: string;
177
+ errorIcon?: string;
178
+ errorIconColor?: string;
179
+ valueList: SmartItem<T>[];
180
+ direction?: SmartFormWidgetDirection;
181
+ hint?: string;
182
+ hintConfig?: SmartWidgetHintConfig;
183
+ }
184
+ export interface SmartCheckBox2<T> {
185
+ type: SmartFormWidgetType.CHECK_BOX_2;
186
+ key: string;
187
+ label: string;
188
+ originalLabel?: string;
189
+ showLabel?: boolean;
190
+ value?: T;
191
+ minWidth?: SmartFormWidgetWidth | number;
192
+ isDisabled?: boolean;
193
+ isReadonly?: boolean;
194
+ validators?: SmartValidator[];
195
+ cssClass?: string;
196
+ cssLabelClass?: string;
197
+ isVisible?: boolean;
198
+ error?: string;
199
+ errorIcon?: string;
200
+ errorIconColor?: string;
201
+ valueList: SmartItem<T>[];
202
+ direction?: SmartFormWidgetDirection;
203
+ hint?: string;
204
+ hintConfig?: SmartWidgetHintConfig;
205
+ }
206
+ export interface SmartRadioButton<T> {
207
+ type: SmartFormWidgetType.RADIO_BUTTON;
208
+ key: string;
209
+ label: string;
210
+ originalLabel?: string;
211
+ showLabel?: boolean;
212
+ value?: T;
213
+ minWidth?: SmartFormWidgetWidth | number;
214
+ isDisabled?: boolean;
215
+ isReadonly?: boolean;
216
+ validators?: SmartValidator[];
217
+ cssClass?: string;
218
+ cssLabelClass?: string;
219
+ isVisible?: boolean;
220
+ error?: string;
221
+ errorIcon?: string;
222
+ errorIconColor?: string;
223
+ valueList: SmartItem<T>[];
224
+ direction?: SmartFormWidgetDirection;
225
+ hint?: string;
226
+ hintConfig?: SmartWidgetHintConfig;
227
+ }
228
+ export interface SmartDatePicker<T> {
229
+ type: SmartFormWidgetType.DATE_PICKER;
230
+ key: string;
231
+ label: string;
232
+ originalLabel?: string;
233
+ showLabel?: boolean;
234
+ value?: T;
235
+ placeholder?: string;
236
+ minWidth?: SmartFormWidgetWidth | number;
237
+ isDisabled?: boolean;
238
+ isReadonly?: boolean;
239
+ validators?: SmartValidator[];
240
+ cssClass?: string;
241
+ cssLabelClass?: string;
242
+ isVisible?: boolean;
243
+ error?: string;
244
+ errorIcon?: string;
245
+ errorIconColor?: string;
246
+ dateFormatHint?: string;
247
+ minDate?: Date;
248
+ maxDate?: Date;
249
+ filter?: (d: Date | null) => boolean;
250
+ hint?: string;
251
+ hintConfig?: SmartWidgetHintConfig;
252
+ }
253
+ export interface SmartDateTimePicker<T> {
254
+ type: SmartFormWidgetType.DATE_TIME_PICKER;
255
+ key: string;
256
+ label: string;
257
+ originalLabel?: string;
258
+ showLabel?: boolean;
259
+ value?: T;
260
+ placeholder?: string;
261
+ minWidth?: SmartFormWidgetWidth | number;
262
+ isDisabled?: boolean;
263
+ isReadonly?: boolean;
264
+ validators?: SmartValidator[];
265
+ cssClass?: string;
266
+ cssLabelClass?: string;
267
+ isVisible?: boolean;
268
+ error?: string;
269
+ errorIcon?: string;
270
+ errorIconColor?: string;
271
+ dateFormatHint?: string;
272
+ filter?: (d: Date | null) => boolean;
273
+ hint?: string;
274
+ hintConfig?: SmartWidgetHintConfig;
275
+ }
276
+ export interface SmartContainer<T> {
277
+ key?: string;
278
+ type: SmartFormWidgetType.CONTAINER;
279
+ isVisible?: boolean;
280
+ valueList: SmartFormWidget<T>[];
281
+ direction?: SmartFormWidgetDirection;
282
+ cssClass?: string;
283
+ }
284
+ export interface SmartLabel {
285
+ key?: string;
286
+ type: SmartFormWidgetType.LABEL;
287
+ isVisible?: boolean;
288
+ cssClass?: string;
289
+ label: string;
290
+ originalLabel?: string;
291
+ widgetDescription?: string;
292
+ minWidth?: SmartFormWidgetWidth | number;
293
+ markAsRequired?: boolean;
294
+ }
295
+ export interface SmartTime<T> {
296
+ type: SmartFormWidgetType.TIME;
297
+ key: string;
298
+ value?: T;
299
+ placeholder?: string;
300
+ label: string;
301
+ originalLabel?: string;
302
+ showLabel?: boolean;
303
+ minWidth?: SmartFormWidgetWidth | number;
304
+ isVisible?: boolean;
305
+ cssClass?: string;
306
+ cssLabelClass?: string;
307
+ isDisabled?: boolean;
308
+ isReadonly?: boolean;
309
+ validators?: SmartValidator[];
310
+ error?: string;
311
+ errorIcon?: string;
312
+ errorIconColor?: string;
313
+ hint?: string;
314
+ hintConfig?: SmartWidgetHintConfig;
315
+ }
316
+ export interface SmartToggle<T> {
317
+ type: SmartFormWidgetType.TOGGLE;
318
+ key: string;
319
+ value?: T;
320
+ placeholder?: string;
321
+ label: string;
322
+ originalLabel?: string;
323
+ showLabel?: boolean;
324
+ isVisible?: boolean;
325
+ cssClass?: string;
326
+ cssLabelClass?: string;
327
+ isDisabled?: boolean;
328
+ isReadonly?: boolean;
329
+ toggleLabelPosition?: ToggleLabelPosition;
330
+ validators?: SmartValidator[];
331
+ error?: string;
332
+ errorIcon?: string;
333
+ errorIconColor?: string;
334
+ hint?: string;
335
+ hintConfig?: SmartWidgetHintConfig;
336
+ }
337
+ export interface SmartIndicatorItem {
338
+ type: SmartFormWidgetType.INDICATOR;
339
+ key: string;
340
+ label: string;
341
+ originalLabel?: string;
342
+ showLabel?: boolean;
343
+ indicator: SmartIndicator;
344
+ isVisible?: boolean;
345
+ cssClass?: string;
346
+ }
347
+ export declare type SmartItems<T> = SmartItem<T> | SmartItemGroup<T>;
348
+ export interface SmartItem<T> {
349
+ type: SmartFormWidgetType.ITEM;
350
+ key: string;
351
+ label: string;
352
+ originalLabel?: string;
353
+ value?: T;
354
+ isDisabled?: boolean;
355
+ icon?: string;
356
+ iconColor?: string;
357
+ imageUrl?: string;
358
+ }
359
+ export interface SmartItemGroup<T> {
360
+ type: SmartFormWidgetType.ITEM_GROUP;
361
+ key: string;
362
+ label: string;
363
+ originalLabel?: string;
364
+ isDisabled?: boolean;
365
+ valueList: SmartItem<T>[];
366
+ }
367
+ export interface SmartFileUploader {
368
+ type: SmartFormWidgetType.FILE_UPLOADER;
369
+ key: string;
370
+ label: string;
371
+ originalLabel?: string;
372
+ showLabel?: boolean;
373
+ isVisible?: boolean;
374
+ cssClass?: string;
375
+ uploadCallback: (key: string, files: any[]) => void;
376
+ fileFormats?: string[];
377
+ maxSizeMb?: number;
378
+ i18n?: any;
379
+ }
380
+ export interface SmartImage {
381
+ type: SmartFormWidgetType.IMAGE;
382
+ key: string;
383
+ label: string;
384
+ originalLabel?: string;
385
+ showLabel?: boolean;
386
+ isVisible?: boolean;
387
+ cssClass?: string;
388
+ value?: string;
389
+ imageCss?: string;
390
+ }
391
+ export interface SmartDivider {
392
+ type: SmartFormWidgetType.DIVIDER;
393
+ key: string;
394
+ label: string;
395
+ originalLabel?: string;
396
+ showLabel?: boolean;
397
+ isVisible?: boolean;
398
+ cssClass?: string;
399
+ value?: string;
400
+ }
401
+ export interface SmartButton {
402
+ type: SmartFormWidgetType.BUTTON;
403
+ key: string;
404
+ label: string;
405
+ originalLabel?: string;
406
+ showLabel?: boolean;
407
+ isVisible?: boolean;
408
+ cssClass?: string;
409
+ value?: string;
410
+ uiAction?: any;
411
+ uiActionDescriptor: any;
412
+ callback: ((uiAction: any) => void) | ((key: string) => void);
413
+ }
414
+ export interface SmartComponent {
415
+ type: SmartFormWidgetType.COMPONENT;
416
+ key: string;
417
+ label: string;
418
+ originalLabel?: string;
419
+ showLabel?: boolean;
420
+ isVisible?: boolean;
421
+ cssClass?: string;
422
+ component: any;
423
+ input: Map<string, any>;
424
+ }
425
+ export interface SmartRichText {
426
+ type: SmartFormWidgetType.RICH_TEXT;
427
+ key: string;
428
+ label: string;
429
+ value?: string;
430
+ originalLabel?: string;
431
+ placeholder?: string;
432
+ originalPlaceholder?: string;
433
+ quillModules: QuillModules;
434
+ showLabel?: boolean;
435
+ isVisible?: boolean;
436
+ cssClass?: string;
437
+ isDisabled?: boolean;
438
+ isReadonly?: boolean;
439
+ validators?: SmartValidator[];
440
+ cssLabelClass?: string;
441
+ error?: string;
442
+ errorIcon?: string;
443
+ errorIconColor?: string;
444
+ hint?: string;
445
+ hintConfig?: SmartWidgetHintConfig;
446
+ }
447
+ export interface SmartSortable<T> {
448
+ type: SmartFormWidgetType.SORTABLE;
449
+ key: string;
450
+ label: string;
451
+ value?: string;
452
+ originalLabel?: string;
453
+ showLabel?: boolean;
454
+ isVisible?: boolean;
455
+ cssClass?: string;
456
+ isDisabled?: boolean;
457
+ isReadonly?: boolean;
458
+ cssLabelClass?: string;
459
+ error?: string;
460
+ errorIcon?: string;
461
+ errorIconColor?: string;
462
+ validators?: SmartValidator[];
463
+ valueList?: SmartItem<T>[];
464
+ isMultiple?: boolean;
465
+ hint?: string;
466
+ hintConfig?: SmartWidgetHintConfig;
467
+ }
468
+ export interface SmartMatrix {
469
+ type: SmartFormWidgetType.MATRIX;
470
+ key: string;
471
+ label: string;
472
+ value?: any;
473
+ originalLabel?: string;
474
+ showLabel?: boolean;
475
+ isVisible?: boolean;
476
+ cssClass?: string;
477
+ isDisabled?: boolean;
478
+ isReadonly?: boolean;
479
+ cssLabelClass?: string;
480
+ error?: string;
481
+ errorIcon?: string;
482
+ errorIconColor?: string;
483
+ validators?: SmartValidator[];
484
+ isMultiple?: boolean;
485
+ hint?: string;
486
+ hintConfig?: SmartWidgetHintConfig;
487
+ }
488
+ export interface SmartYoutubePlayer {
489
+ key?: string;
490
+ type: SmartFormWidgetType.YOUTUBE_PLAYER;
491
+ link?: string;
492
+ videoId?: string;
493
+ height?: number;
494
+ width?: number;
495
+ startSeconds?: number | 0;
496
+ endSeconds?: number;
497
+ cssClass?: string;
498
+ isVisible?: boolean;
499
+ label?: string;
500
+ validators?: SmartValidator[];
501
+ hint?: string;
502
+ hintConfig?: SmartWidgetHintConfig;
503
+ showLabel?: boolean;
504
+ }
505
+ export interface SmartMonthPicker {
506
+ key: string;
507
+ type: SmartFormWidgetType.MONTH_PICKER;
508
+ value?: string;
509
+ validators?: SmartValidator[];
510
+ label: string;
511
+ showLabel?: boolean;
512
+ error?: string;
513
+ errorIcon?: string;
514
+ errorIconColor?: string;
515
+ cssClass?: string;
516
+ isVisible?: boolean;
517
+ isDisabled?: boolean;
518
+ originalLabel?: string;
519
+ hint?: string;
520
+ hintConfig?: SmartWidgetHintConfig;
521
+ }
@@ -0,0 +1,120 @@
1
+ import { ValidatorFn } from '@angular/forms';
2
+ import { SmartFormWidget } from './smartform.form-model';
3
+ import { SmartFormWidgetDirection } from './api';
4
+ import { SmartTranslateService } from '../view-context/smart-view-context.model';
5
+ export interface SophisticatedValueChange {
6
+ key: string;
7
+ value: any;
8
+ kind: 'basic' | 'selection';
9
+ }
10
+ export interface SmartFormComponentConstraint {
11
+ /**
12
+ * The data name to identify the related component or componenets. If it is a path the format is the following - dataSheet.field.
13
+ */
14
+ dataName?: string;
15
+ visible?: boolean;
16
+ mandatory?: boolean;
17
+ enabled?: boolean;
18
+ }
19
+ export declare enum SmartFormWidgetWidth {
20
+ SMALL = 150,
21
+ MEDIUM = 250,
22
+ LARGE = 350,
23
+ EXTRA_LARGE = 450
24
+ }
25
+ export declare enum SmartFormTextFieldButtonIconPosition {
26
+ PRE = 0,
27
+ POST = 1
28
+ }
29
+ export interface SmartFormTextFieldButton {
30
+ icon?: string;
31
+ iconPosition?: SmartFormTextFieldButtonIconPosition;
32
+ label?: string;
33
+ callback: (widget: SmartFormWidget<any>) => any;
34
+ color?: string;
35
+ iconColor?: string;
36
+ }
37
+ export declare enum ToggleLabelPosition {
38
+ BEFORE = "before",
39
+ AFTER = "after"
40
+ }
41
+ export interface SmartFormInvalidFields {
42
+ invalidFieldNames: string[];
43
+ invalidFieldKeys: string[];
44
+ }
45
+ export interface SmartIndicator {
46
+ indicateProperty: string;
47
+ indicatorLength: number;
48
+ indicatorStatusLabels: string[];
49
+ originalIndicatorStatusLabels?: string[];
50
+ indicatorValue: number;
51
+ changeIndicatorStatus: (valueToCheck: string) => number;
52
+ }
53
+ export interface SmartValidator {
54
+ validator: ValidatorFn;
55
+ isCustom?: boolean;
56
+ errorMessage?: string;
57
+ originalErrorMessage?: string;
58
+ name: SmartValidatorName | string;
59
+ icon?: string;
60
+ iconColor?: string;
61
+ }
62
+ export declare enum SmartValidatorName {
63
+ required = "required",
64
+ requiredTrue = "required",
65
+ email = "email",
66
+ max = "max",
67
+ maxLength = "maxlength",
68
+ min = "min",
69
+ minLength = "minlength",
70
+ pattern = "pattern",
71
+ passwordValidator = "passwordValidator",
72
+ fieldMatchingValidator = "fieldsMatch"
73
+ }
74
+ /**
75
+ * Dynamic forms can be easily defined with this interface.
76
+ *
77
+ * @param name The name of the form
78
+ * @param widgets The widgets presented in the form
79
+ *
80
+ * @author Roland Fényes
81
+ */
82
+ export interface SmartForm {
83
+ name?: string;
84
+ direction: SmartFormWidgetDirection;
85
+ widgets: SmartFormWidget<any>[];
86
+ componentModel?: any;
87
+ useOnBlurEvent?: boolean;
88
+ useOnValueChangeEvent?: boolean;
89
+ showLabel?: boolean;
90
+ submitOnEnter?: () => void;
91
+ labelTheme?: string;
92
+ validators?: SmartValidator[];
93
+ translateService?: SmartTranslateService;
94
+ invalidFields?: SmartFormInvalidFields;
95
+ }
96
+ export interface Value {
97
+ /**
98
+ * The uri the object of the value can be accessed.
99
+ */
100
+ objectUri: string;
101
+ /**
102
+ * The logical code of the selectable value.
103
+ */
104
+ code?: string;
105
+ /**
106
+ * The string value that can be shown on ui. It might be a label code or the exact label.
107
+ */
108
+ displayValue: string;
109
+ /**
110
+ * The code of icon that can be associatied with the value. It may be a uri.
111
+ */
112
+ iconCode?: string;
113
+ }
114
+ export declare enum SmartWidgetHintPosition {
115
+ UNDER_LABEL = 0,
116
+ UNDER_INPUT = 1
117
+ }
118
+ export interface SmartWidgetHintConfig {
119
+ position: SmartWidgetHintPosition;
120
+ }
@@ -0,0 +1,34 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./smartform.component";
3
+ import * as i2 from "./widgets/smartformwidget/smartformwidget.component";
4
+ import * as i3 from "./smartfileuploader/smartfileuploader.component";
5
+ import * as i4 from "./widgets/smartformwidget/trackCaps.directive";
6
+ import * as i5 from "./smartfileuploader/large-file-snack-bar/large-file-snack-bar.component";
7
+ import * as i6 from "./widgets/smartformwidget/sortable-widget/sortable-widget.component";
8
+ import * as i7 from "./widgets/components/smart-month-picker/smart-month-picker.component";
9
+ import * as i8 from "@angular/platform-browser";
10
+ import * as i9 from "@angular/material/core";
11
+ import * as i10 from "@angular/material/chips";
12
+ import * as i11 from "@angular/forms";
13
+ import * as i12 from "@angular/material/form-field";
14
+ import * as i13 from "@angular/material/checkbox";
15
+ import * as i14 from "@angular/material/select";
16
+ import * as i15 from "@angular/material/button";
17
+ import * as i16 from "@angular/material/input";
18
+ import * as i17 from "@angular/material/icon";
19
+ import * as i18 from "@angular/material/datepicker";
20
+ import * as i19 from "@angular/material-moment-adapter";
21
+ import * as i20 from "@angular/material/radio";
22
+ import * as i21 from "@angular/material/slide-toggle";
23
+ import * as i22 from "../smart-icon/smart-icon.module";
24
+ import * as i23 from "@angular/material/snack-bar";
25
+ import * as i24 from "@angular/material/autocomplete";
26
+ import * as i25 from "ngx-mask";
27
+ import * as i26 from "ngx-quill";
28
+ import * as i27 from "@angular/cdk/drag-drop";
29
+ import * as i28 from "@angular/youtube-player";
30
+ export declare class SmartformModule {
31
+ static ɵfac: i0.ɵɵFactoryDeclaration<SmartformModule, never>;
32
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SmartformModule, [typeof i1.SmartformComponent, typeof i2.SmartformwidgetComponent, typeof i3.SmartfileuploaderComponent, typeof i4.TrackCapsDirective, typeof i5.LargeFileSnackBarComponent, typeof i6.SortableWidgetComponent, typeof i7.SmartMonthPickerComponent], [typeof i8.BrowserModule, typeof i9.MatCommonModule, typeof i10.MatChipsModule, typeof i11.FormsModule, typeof i11.ReactiveFormsModule, typeof i12.MatFormFieldModule, typeof i13.MatCheckboxModule, typeof i14.MatSelectModule, typeof i15.MatButtonModule, typeof i16.MatInputModule, typeof i17.MatIconModule, typeof i18.MatDatepickerModule, typeof i19.MatMomentDateModule, typeof i20.MatRadioModule, typeof i21.MatSlideToggleModule, typeof i22.SmartIconModule, typeof i23.MatSnackBarModule, typeof i24.MatAutocompleteModule, typeof i25.NgxMaskModule, typeof i26.QuillModule, typeof i27.DragDropModule, typeof i28.YouTubePlayerModule], [typeof i1.SmartformComponent, typeof i2.SmartformwidgetComponent, typeof i3.SmartfileuploaderComponent]>;
33
+ static ɵinj: i0.ɵɵInjectorDeclaration<SmartformModule>;
34
+ }