@smartbit4all/ng-client 2.2.2 → 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/component-factory-service/component-factory-service.module.mjs +17 -0
- package/esm2020/lib/component-factory-service/component-factory-service.service.mjs +35 -0
- package/esm2020/lib/component-factory-service/projects.mjs +6 -0
- package/esm2020/lib/session/dev-tool/smart-dev-tool-dialog/smart-dev-tool-dialog.component.mjs +1 -1
- package/esm2020/lib/session/dev-tool/smart-dev-tool-dialog/smart-dev-tool-dialog.service.mjs +5 -5
- package/esm2020/lib/session/dev-tool/smart-dev-tool-floating-button/smart-dev-tool-floating-button.component.mjs +1 -1
- package/esm2020/lib/session/dev-tool/smart-dev-tool.service.mjs +2 -2
- package/esm2020/lib/session/smart-session.module.mjs +18 -18
- package/esm2020/lib/session/smart-session.service.mjs +2 -2
- package/esm2020/lib/session/smart-timer/smart-session-timer.service.mjs +2 -2
- package/esm2020/lib/smart-client/smart-authentication.service.mjs +2 -2
- package/esm2020/lib/smart-client/smart-component-api-client.mjs +2 -3
- package/esm2020/lib/smart-client/smart-file-uploader/smart-file-uploader.component.mjs +2 -2
- package/esm2020/lib/smart-component-layout/api/api/api.mjs +4 -0
- package/esm2020/lib/smart-component-layout/api/api/default.service.mjs +133 -0
- package/esm2020/lib/smart-component-layout/api/api.module.mjs +40 -0
- package/esm2020/lib/smart-component-layout/api/configuration.mjs +91 -0
- package/esm2020/lib/smart-component-layout/api/encoder.mjs +19 -0
- package/esm2020/lib/smart-component-layout/api/index.mjs +7 -0
- package/esm2020/lib/smart-component-layout/api/model/componentType.mjs +17 -0
- package/esm2020/lib/smart-component-layout/api/model/componentWidgetType.mjs +17 -0
- package/esm2020/lib/smart-component-layout/api/model/layoutDirection.mjs +16 -0
- package/esm2020/lib/smart-component-layout/api/model/models.mjs +6 -0
- package/esm2020/lib/smart-component-layout/api/model/smartComponentLayoutDefinition.mjs +2 -0
- package/esm2020/lib/smart-component-layout/api/model/smartComponentWidgetDefinition.mjs +2 -0
- package/esm2020/lib/smart-component-layout/api/param.mjs +2 -0
- package/esm2020/lib/smart-component-layout/api/variables.mjs +9 -0
- package/esm2020/lib/smart-component-layout/projects.mjs +8 -0
- package/esm2020/lib/smart-component-layout/smart-component-layout-utility.mjs +7 -0
- package/esm2020/lib/smart-component-layout/smart-component-layout.component.mjs +123 -0
- package/esm2020/lib/smart-component-layout/smart-component-layout.module.mjs +43 -0
- package/esm2020/lib/smart-dialog/projects.mjs +8 -0
- package/esm2020/lib/smart-dialog/smartdialog.component.mjs +54 -0
- package/esm2020/lib/smart-dialog/smartdialog.model.mjs +16 -0
- package/esm2020/lib/smart-dialog/smartdialog.module.mjs +49 -0
- package/esm2020/lib/smart-dialog/smartdialog.service.mjs +60 -0
- package/esm2020/lib/smart-expandable-section/expandable-section.component.mjs +82 -0
- package/esm2020/lib/smart-expandable-section/expandable-section.model.mjs +12 -0
- package/esm2020/lib/smart-expandable-section/projects.mjs +8 -0
- package/esm2020/lib/smart-expandable-section/smart-expandable-section.module.mjs +51 -0
- package/esm2020/lib/smart-expandable-section/smart-expandable-section.service.mjs +14 -0
- package/esm2020/lib/smart-filter/api/filter/model/filterExpressionBoolOperator.mjs +16 -0
- package/esm2020/lib/smart-filter/api/filter/model/filterExpressionBuilderField.mjs +2 -0
- package/esm2020/lib/smart-filter/api/filter/model/filterExpressionBuilderGroup.mjs +9 -0
- package/esm2020/lib/smart-filter/api/filter/model/filterExpressionBuilderModel.mjs +2 -0
- package/esm2020/lib/smart-filter/api/filter/model/filterExpressionData.mjs +2 -0
- package/esm2020/lib/smart-filter/api/filter/model/filterExpressionDataType.mjs +19 -0
- package/esm2020/lib/smart-filter/api/filter/model/filterExpressionField.mjs +2 -0
- package/esm2020/lib/smart-filter/api/filter/model/filterExpressionFieldList.mjs +2 -0
- package/esm2020/lib/smart-filter/api/filter/model/filterExpressionFieldWidgetType.mjs +25 -0
- package/esm2020/lib/smart-filter/api/filter/model/filterExpressionList.mjs +2 -0
- package/esm2020/lib/smart-filter/api/filter/model/filterExpressionOperandData.mjs +2 -0
- package/esm2020/lib/smart-filter/api/filter/model/filterExpressionOperation.mjs +31 -0
- package/esm2020/lib/smart-filter/api/filter/model/filterExpressionOrderBy.mjs +19 -0
- package/esm2020/lib/smart-filter/api/filter/model/model.mjs +16 -0
- package/esm2020/lib/smart-filter/api/filter/model/searchIndexObjectDefinitionData.mjs +2 -0
- package/esm2020/lib/smart-filter/api/filter/model/searchIndexPropertyDefinitionData.mjs +13 -0
- package/esm2020/lib/smart-filter/api/value/model/value.mjs +13 -0
- package/esm2020/lib/smart-filter/projects.mjs +9 -0
- package/esm2020/lib/smart-filter/smart-filter/components/smart-filter-expression-field/smart-filter-expression-field.component.mjs +14 -0
- package/esm2020/lib/smart-filter/smart-filter/components/smart-filter-simple/components/smart-filter-simple-field/smart-filter-simple-field.component.mjs +159 -0
- package/esm2020/lib/smart-filter/smart-filter/components/smart-filter-simple/smart-filter-simple.component.mjs +45 -0
- package/esm2020/lib/smart-filter/smart-filter/smart-filter.component.mjs +36 -0
- package/esm2020/lib/smart-filter/smart-filter/smart-filter.service.mjs +31 -0
- package/esm2020/lib/smart-filter/smart-filter.model.mjs +13 -0
- package/esm2020/lib/smart-filter/smart-filter.module.mjs +33 -0
- package/esm2020/lib/smart-form/api/api/api.mjs +4 -0
- package/esm2020/lib/smart-form/api/api/default.service.mjs +133 -0
- package/esm2020/lib/smart-form/api/api.module.mjs +40 -0
- package/esm2020/lib/smart-form/api/configuration.mjs +91 -0
- package/esm2020/lib/smart-form/api/encoder.mjs +19 -0
- package/esm2020/lib/smart-form/api/index.mjs +7 -0
- package/esm2020/lib/smart-form/api/model/models.mjs +8 -0
- package/esm2020/lib/smart-form/api/model/propertyMapping.mjs +13 -0
- package/esm2020/lib/smart-form/api/model/selectionDefinition.mjs +8 -0
- package/esm2020/lib/smart-form/api/model/smartFormWidgetDirection.mjs +16 -0
- package/esm2020/lib/smart-form/api/model/smartFormWidgetType.mjs +44 -0
- package/esm2020/lib/smart-form/api/model/smartLayoutDefinition.mjs +2 -0
- package/esm2020/lib/smart-form/api/model/smartMatrixModel.mjs +2 -0
- package/esm2020/lib/smart-form/api/model/smartWidgetDefinition.mjs +2 -0
- package/esm2020/lib/smart-form/api/param.mjs +2 -0
- package/esm2020/lib/smart-form/api/variables.mjs +9 -0
- package/esm2020/lib/smart-form/projects.mjs +13 -0
- package/esm2020/lib/smart-form/services/smartform.layout-definition.service.mjs +397 -0
- package/esm2020/lib/smart-form/services/smartform.service.mjs +483 -0
- package/esm2020/lib/smart-form/smartfileuploader/large-file-snack-bar/large-file-snack-bar.component.mjs +14 -0
- package/esm2020/lib/smart-form/smartfileuploader/smartfileuploader.component.mjs +78 -0
- package/esm2020/lib/smart-form/smartfileuploader/smartfileuploader.model.mjs +2 -0
- package/esm2020/lib/smart-form/smartform.component.mjs +117 -0
- package/esm2020/lib/smart-form/smartform.form-model.mjs +2 -0
- package/esm2020/lib/smart-form/smartform.model.mjs +38 -0
- package/esm2020/lib/smart-form/smartform.module.mjs +146 -0
- package/esm2020/lib/smart-form/widgets/components/smart-month-picker/smart-month-picker.component.mjs +76 -0
- package/esm2020/lib/smart-form/widgets/smartformwidget/smartformwidget.component.mjs +589 -0
- package/esm2020/lib/smart-form/widgets/smartformwidget/sortable-widget/sortable-widget.component.mjs +59 -0
- package/esm2020/lib/smart-form/widgets/smartformwidget/trackCaps.directive.mjs +31 -0
- package/esm2020/lib/smart-grid/api/grid-api/api/api.mjs +4 -0
- package/esm2020/lib/smart-grid/api/grid-api/api/grid.service.mjs +372 -0
- package/esm2020/lib/smart-grid/api/grid-api/api.module.mjs +40 -0
- package/esm2020/lib/smart-grid/api/grid-api/configuration.mjs +72 -0
- package/esm2020/lib/smart-grid/api/grid-api/encoder.mjs +19 -0
- package/esm2020/lib/smart-grid/api/grid-api/index.mjs +6 -0
- package/esm2020/lib/smart-grid/api/grid-api/model/gridColumnMeta.mjs +13 -0
- package/esm2020/lib/smart-grid/api/grid-api/model/gridDataAccessConfig.mjs +21 -0
- package/esm2020/lib/smart-grid/api/grid-api/model/gridModel.mjs +2 -0
- package/esm2020/lib/smart-grid/api/grid-api/model/gridPage.mjs +2 -0
- package/esm2020/lib/smart-grid/api/grid-api/model/gridRow.mjs +2 -0
- package/esm2020/lib/smart-grid/api/grid-api/model/gridSelectionMode.mjs +17 -0
- package/esm2020/lib/smart-grid/api/grid-api/model/gridSelectionType.mjs +16 -0
- package/esm2020/lib/smart-grid/api/grid-api/model/gridServerModel.mjs +2 -0
- package/esm2020/lib/smart-grid/api/grid-api/model/gridUpdateData.mjs +2 -0
- package/esm2020/lib/smart-grid/api/grid-api/model/gridView.mjs +2 -0
- package/esm2020/lib/smart-grid/api/grid-api/model/gridViewDescriptor.mjs +8 -0
- package/esm2020/lib/smart-grid/api/grid-api/model/models.mjs +12 -0
- package/esm2020/lib/smart-grid/api/grid-api/variables.mjs +9 -0
- package/esm2020/lib/smart-grid/components/expandable-grid/expandable-grid.component.mjs +20 -0
- package/esm2020/lib/smart-grid/components/smart-grid-card/smart-grid-card.component.mjs +56 -0
- package/esm2020/lib/smart-grid/components/table-layout-definer/table-layout-definer.component.mjs +166 -0
- package/esm2020/lib/smart-grid/models/model.mjs +28 -0
- package/esm2020/lib/smart-grid/projects.mjs +9 -0
- package/esm2020/lib/smart-grid/smart-grid.component.mjs +452 -0
- package/esm2020/lib/smart-grid/smart-grid.module.mjs +69 -0
- package/esm2020/lib/smart-grid/smart-grid.service.mjs +71 -0
- package/esm2020/lib/smart-icon/projects.mjs +7 -0
- package/esm2020/lib/smart-icon/smart-icon/smart-icon.component.mjs +48 -0
- package/esm2020/lib/smart-icon/smart-icon.module.mjs +22 -0
- package/esm2020/lib/smart-icon/smart-icon.service.mjs +45 -0
- package/esm2020/lib/smart-navbar/projects.mjs +8 -0
- package/esm2020/lib/smart-navbar/smart-navbar.component.mjs +61 -0
- package/esm2020/lib/smart-navbar/smart-navbar.model.mjs +6 -0
- package/esm2020/lib/smart-navbar/smart-navbar.module.mjs +65 -0
- package/esm2020/lib/smart-navbar/smart-navbar.service.mjs +14 -0
- package/esm2020/lib/smart-navigation/projects.mjs +6 -0
- package/esm2020/lib/smart-navigation/smart-navigation.interface.mjs +2 -0
- package/esm2020/lib/smart-navigation/smart-navigation.module.mjs +18 -0
- package/esm2020/lib/smart-navigation/smart-navigation.service.mjs +56 -0
- package/esm2020/lib/smart-ng-client.module.mjs +16 -4
- package/esm2020/lib/smart-subject/projects.mjs +5 -0
- package/esm2020/lib/smart-subject/smart-subject.mjs +21 -0
- package/esm2020/lib/smart-tab-group/projects.mjs +8 -0
- package/esm2020/lib/smart-tab-group/smart-tab-group.component.mjs +43 -0
- package/esm2020/lib/smart-tab-group/smart-tab-group.module.mjs +25 -0
- package/esm2020/lib/smart-tab-group/smart-tab-group.service.mjs +14 -0
- package/esm2020/lib/smart-tab-group/tab-content/tab-content.component.mjs +31 -0
- package/esm2020/lib/smart-tab-group/tab-group-simplified/tab-group.component.mjs +66 -0
- package/esm2020/lib/smart-tab-group/tabTile.model.mjs +2 -0
- package/esm2020/lib/smart-table/components/loading/loading.component.mjs +15 -0
- package/esm2020/lib/smart-table/projects.mjs +9 -0
- package/esm2020/lib/smart-table/smarttable.component.mjs +98 -0
- package/esm2020/lib/smart-table/smarttable.date-pipe.mjs +43 -0
- package/esm2020/lib/smart-table/smarttable.model.mjs +167 -0
- package/esm2020/lib/smart-table/smarttable.module.mjs +89 -0
- package/esm2020/lib/smart-table/smarttable.service.mjs +14 -0
- package/esm2020/lib/smart-table/tables/material-table/material-table.component.mjs +36 -0
- package/esm2020/lib/smart-table/tables/mobile-table/mobile-table.component.mjs +22 -0
- package/esm2020/lib/smart-table/tables/table.mjs +411 -0
- package/esm2020/lib/smart-tree/smarttree.component.mjs +2 -2
- package/esm2020/lib/smart-tree/smarttree.model.mjs +1 -1
- package/esm2020/lib/smart-tree/smarttree.module.mjs +2 -2
- package/esm2020/lib/smart-tree/smarttree.service.interface.mjs +1 -1
- package/esm2020/lib/smart-tree/smarttree.service.mjs +1 -1
- package/esm2020/lib/view-context/api/api/api.mjs +1 -1
- package/esm2020/lib/view-context/api/api/view.service.mjs +1 -1
- package/esm2020/lib/view-context/api/api.module.mjs +1 -1
- package/esm2020/lib/view-context/api/configuration.mjs +1 -1
- package/esm2020/lib/view-context/api/encoder.mjs +1 -1
- package/esm2020/lib/view-context/api/index.mjs +1 -1
- package/esm2020/lib/view-context/api/model/closeResult.mjs +1 -1
- package/esm2020/lib/view-context/api/model/componentConstraint.mjs +1 -1
- package/esm2020/lib/view-context/api/model/componentModel.mjs +1 -1
- package/esm2020/lib/view-context/api/model/componentModelChange.mjs +1 -1
- package/esm2020/lib/view-context/api/model/dataChange.mjs +1 -1
- package/esm2020/lib/view-context/api/model/dataChangeEvent.mjs +1 -1
- package/esm2020/lib/view-context/api/model/dataChangeKind.mjs +1 -1
- package/esm2020/lib/view-context/api/model/messageData.mjs +1 -1
- package/esm2020/lib/view-context/api/model/messageOption.mjs +1 -1
- package/esm2020/lib/view-context/api/model/messageOptionType.mjs +1 -1
- package/esm2020/lib/view-context/api/model/messageResult.mjs +1 -1
- package/esm2020/lib/view-context/api/model/messageType.mjs +1 -1
- package/esm2020/lib/view-context/api/model/models.mjs +1 -1
- package/esm2020/lib/view-context/api/model/openPendingData.mjs +1 -1
- package/esm2020/lib/view-context/api/model/smartLinkData.mjs +1 -1
- package/esm2020/lib/view-context/api/model/uiAction.mjs +1 -1
- package/esm2020/lib/view-context/api/model/uiActionButtonDescriptor.mjs +1 -1
- package/esm2020/lib/view-context/api/model/uiActionButtonIconPos.mjs +1 -1
- package/esm2020/lib/view-context/api/model/uiActionButtonType.mjs +1 -1
- package/esm2020/lib/view-context/api/model/uiActionConstraint.mjs +1 -1
- package/esm2020/lib/view-context/api/model/uiActionDescriptor.mjs +1 -1
- package/esm2020/lib/view-context/api/model/uiActionDialogDescriptor.mjs +1 -1
- package/esm2020/lib/view-context/api/model/uiActionFeedbackType.mjs +1 -1
- package/esm2020/lib/view-context/api/model/uiActionInputType.mjs +1 -1
- package/esm2020/lib/view-context/api/model/uiActionRequest.mjs +1 -1
- package/esm2020/lib/view-context/api/model/uiActionUploadDescriptor.mjs +1 -1
- package/esm2020/lib/view-context/api/model/valueSet.mjs +1 -1
- package/esm2020/lib/view-context/api/model/view.mjs +1 -1
- package/esm2020/lib/view-context/api/model/viewApiError.mjs +1 -1
- package/esm2020/lib/view-context/api/model/viewConstraint.mjs +1 -1
- package/esm2020/lib/view-context/api/model/viewContext.mjs +1 -1
- package/esm2020/lib/view-context/api/model/viewContextChange.mjs +1 -1
- package/esm2020/lib/view-context/api/model/viewContextData.mjs +1 -1
- package/esm2020/lib/view-context/api/model/viewContextUpdate.mjs +1 -1
- package/esm2020/lib/view-context/api/model/viewData.mjs +1 -1
- package/esm2020/lib/view-context/api/model/viewState.mjs +1 -1
- package/esm2020/lib/view-context/api/model/viewStateUpdate.mjs +1 -1
- package/esm2020/lib/view-context/api/model/viewType.mjs +1 -1
- package/esm2020/lib/view-context/api/param.mjs +1 -1
- package/esm2020/lib/view-context/api/variables.mjs +1 -1
- package/esm2020/lib/view-context/smart-ui-action/dialogs/ui-action-confirm-dialog/ui-action-confirm-dialog.component.mjs +1 -1
- package/esm2020/lib/view-context/smart-ui-action/dialogs/ui-action-confirm-dialog/ui-action-confirm-dialog.service.mjs +3 -3
- package/esm2020/lib/view-context/smart-ui-action/dialogs/ui-action-file-upload-dialog/ui-action-file-upload-dialog.component.mjs +3 -3
- package/esm2020/lib/view-context/smart-ui-action/dialogs/ui-action-file-upload-dialog/ui-action-file-upload-dialog.service.mjs +3 -3
- package/esm2020/lib/view-context/smart-ui-action/dialogs/ui-action-input-dialog/ui-action-input-dialog.component.mjs +8 -7
- package/esm2020/lib/view-context/smart-ui-action/dialogs/ui-action-input-dialog/ui-action-input-dialog.service.mjs +3 -3
- package/esm2020/lib/view-context/smart-ui-action/ui-action-toolbar.component.mjs +4 -3
- package/esm2020/lib/view-context/smart-ui-action/ui-action.descriptor.service.mjs +2 -2
- package/esm2020/lib/view-context/smart-ui-action/ui-action.model.mjs +1 -1
- package/esm2020/lib/view-context/smart-ui-action/ui-action.service.mjs +2 -2
- package/esm2020/lib/view-context/smart-view-context-error-dialog/smart-view-context-error-dialog.service.mjs +2 -2
- package/esm2020/lib/view-context/smart-view-context.module.mjs +3 -3
- package/esm2020/lib/view-context/smart-view-context.service.mjs +4 -4
- package/esm2020/lib/view-context/smart-view-redirect/smart-view-redirect.mjs +9 -9
- package/esm2020/lib/view-context/value-api/model/valueSetData.mjs +1 -1
- package/esm2020/projects.mjs +15 -3
- package/fesm2015/smartbit4all-ng-client.mjs +9465 -3578
- package/fesm2015/smartbit4all-ng-client.mjs.map +1 -1
- package/fesm2020/smartbit4all-ng-client.mjs +9275 -3460
- package/fesm2020/smartbit4all-ng-client.mjs.map +1 -1
- package/lib/component-factory-service/component-factory-service.module.d.ts +6 -0
- package/lib/component-factory-service/component-factory-service.service.d.ts +13 -0
- package/lib/component-factory-service/projects.d.ts +2 -0
- package/lib/session/dev-tool/smart-dev-tool-dialog/smart-dev-tool-dialog.service.d.ts +1 -1
- package/lib/session/smart-session.module.d.ts +1 -1
- package/lib/smart-client/smart-component-api-client.d.ts +3 -4
- package/lib/smart-client/smart-file-uploader/smart-file-uploader.component.d.ts +3 -3
- package/lib/smart-component-layout/api/api/api.d.ts +3 -0
- package/lib/smart-component-layout/api/api/default.service.d.ts +33 -0
- package/lib/smart-component-layout/api/api.module.d.ts +11 -0
- package/lib/smart-component-layout/api/configuration.d.ts +104 -0
- package/lib/smart-component-layout/api/encoder.d.ts +11 -0
- package/lib/smart-component-layout/api/index.d.ts +6 -0
- package/lib/smart-component-layout/api/model/componentType.d.ts +17 -0
- package/lib/smart-component-layout/api/model/componentWidgetType.d.ts +17 -0
- package/lib/smart-component-layout/api/model/layoutDirection.d.ts +16 -0
- package/lib/smart-component-layout/api/model/models.d.ts +5 -0
- package/lib/smart-component-layout/api/model/smartComponentLayoutDefinition.d.ts +29 -0
- package/lib/smart-component-layout/api/model/smartComponentWidgetDefinition.d.ts +21 -0
- package/lib/smart-component-layout/api/param.d.ts +37 -0
- package/lib/smart-component-layout/api/variables.d.ts +8 -0
- package/lib/smart-component-layout/projects.d.ts +4 -0
- package/lib/smart-component-layout/smart-component-layout-utility.d.ts +4 -0
- package/lib/smart-component-layout/smart-component-layout.component.d.ts +35 -0
- package/lib/smart-component-layout/smart-component-layout.module.d.ts +13 -0
- package/lib/smart-dialog/projects.d.ts +4 -0
- package/lib/smart-dialog/smartdialog.component.d.ts +19 -0
- package/lib/smart-dialog/smartdialog.model.d.ts +67 -0
- package/lib/smart-dialog/smartdialog.module.d.ts +14 -0
- package/lib/smart-dialog/smartdialog.service.d.ts +20 -0
- package/lib/smart-expandable-section/expandable-section.component.d.ts +25 -0
- package/lib/smart-expandable-section/expandable-section.model.d.ts +40 -0
- package/lib/smart-expandable-section/projects.d.ts +4 -0
- package/lib/smart-expandable-section/smart-expandable-section.module.d.ts +15 -0
- package/lib/smart-expandable-section/smart-expandable-section.service.d.ts +6 -0
- package/lib/smart-filter/api/filter/model/filterExpressionBoolOperator.d.ts +16 -0
- package/lib/smart-filter/api/filter/model/filterExpressionBuilderField.d.ts +27 -0
- package/lib/smart-filter/api/filter/model/filterExpressionBuilderGroup.d.ts +39 -0
- package/lib/smart-filter/api/filter/model/filterExpressionBuilderModel.d.ts +21 -0
- package/lib/smart-filter/api/filter/model/filterExpressionData.d.ts +27 -0
- package/lib/smart-filter/api/filter/model/filterExpressionDataType.d.ts +19 -0
- package/lib/smart-filter/api/filter/model/filterExpressionField.d.ts +37 -0
- package/lib/smart-filter/api/filter/model/filterExpressionFieldList.d.ts +21 -0
- package/lib/smart-filter/api/filter/model/filterExpressionFieldWidgetType.d.ts +25 -0
- package/lib/smart-filter/api/filter/model/filterExpressionList.d.ts +18 -0
- package/lib/smart-filter/api/filter/model/filterExpressionOperandData.d.ts +24 -0
- package/lib/smart-filter/api/filter/model/filterExpressionOperation.d.ts +31 -0
- package/lib/smart-filter/api/filter/model/filterExpressionOrderBy.d.ts +28 -0
- package/lib/smart-filter/api/filter/model/model.d.ts +15 -0
- package/lib/smart-filter/api/filter/model/searchIndexObjectDefinitionData.d.ts +19 -0
- package/lib/smart-filter/api/filter/model/searchIndexPropertyDefinitionData.d.ts +18 -0
- package/lib/smart-filter/api/value/model/value.d.ts +29 -0
- package/lib/smart-filter/projects.d.ts +5 -0
- package/lib/smart-filter/smart-filter/components/smart-filter-expression-field/smart-filter-expression-field.component.d.ts +8 -0
- package/lib/smart-filter/smart-filter/components/smart-filter-simple/components/smart-filter-simple-field/smart-filter-simple-field.component.d.ts +31 -0
- package/lib/smart-filter/smart-filter/components/smart-filter-simple/smart-filter-simple.component.d.ts +18 -0
- package/lib/smart-filter/smart-filter/smart-filter.component.d.ts +15 -0
- package/lib/smart-filter/smart-filter/smart-filter.service.d.ts +16 -0
- package/lib/smart-filter/smart-filter.model.d.ts +25 -0
- package/lib/smart-filter/smart-filter.module.d.ts +15 -0
- package/lib/smart-form/api/api/api.d.ts +3 -0
- package/lib/smart-form/api/api/default.service.d.ts +33 -0
- package/lib/smart-form/api/api.module.d.ts +11 -0
- package/lib/smart-form/api/configuration.d.ts +104 -0
- package/lib/smart-form/api/encoder.d.ts +11 -0
- package/lib/smart-form/api/index.d.ts +6 -0
- package/lib/smart-form/api/model/models.d.ts +7 -0
- package/lib/smart-form/api/model/propertyMapping.d.ts +24 -0
- package/lib/smart-form/api/model/selectionDefinition.d.ts +40 -0
- package/lib/smart-form/api/model/smartFormWidgetDirection.d.ts +16 -0
- package/lib/smart-form/api/model/smartFormWidgetType.d.ts +42 -0
- package/lib/smart-form/api/model/smartLayoutDefinition.d.ts +15 -0
- package/lib/smart-form/api/model/smartMatrixModel.d.ts +28 -0
- package/lib/smart-form/api/model/smartWidgetDefinition.d.ts +77 -0
- package/lib/smart-form/api/param.d.ts +37 -0
- package/lib/smart-form/api/variables.d.ts +8 -0
- package/lib/smart-form/projects.d.ts +9 -0
- package/lib/smart-form/services/smartform.layout-definition.service.d.ts +40 -0
- package/lib/smart-form/services/smartform.service.d.ts +29 -0
- package/lib/smart-form/smartfileuploader/large-file-snack-bar/large-file-snack-bar.component.d.ts +8 -0
- package/lib/smart-form/smartfileuploader/smartfileuploader.component.d.ts +22 -0
- package/lib/smart-form/smartfileuploader/smartfileuploader.model.d.ts +7 -0
- package/lib/smart-form/smartform.component.d.ts +33 -0
- package/lib/smart-form/smartform.form-model.d.ts +521 -0
- package/lib/smart-form/smartform.model.d.ts +120 -0
- package/lib/smart-form/smartform.module.d.ts +34 -0
- package/lib/smart-form/widgets/components/smart-month-picker/smart-month-picker.component.d.ts +29 -0
- package/lib/smart-form/widgets/smartformwidget/smartformwidget.component.d.ts +84 -0
- package/lib/smart-form/widgets/smartformwidget/sortable-widget/sortable-widget.component.d.ts +20 -0
- package/lib/smart-form/widgets/smartformwidget/trackCaps.directive.d.ts +9 -0
- package/lib/smart-grid/api/grid-api/api/api.d.ts +3 -0
- package/lib/smart-grid/api/grid-api/api/grid.service.d.ts +140 -0
- package/lib/smart-grid/api/grid-api/api.module.d.ts +11 -0
- package/lib/smart-grid/api/grid-api/configuration.d.ts +80 -0
- package/lib/smart-grid/api/grid-api/encoder.d.ts +11 -0
- package/lib/smart-grid/api/grid-api/index.d.ts +5 -0
- package/lib/smart-grid/api/grid-api/model/gridColumnMeta.d.ts +18 -0
- package/lib/smart-grid/api/grid-api/model/gridDataAccessConfig.d.ts +35 -0
- package/lib/smart-grid/api/grid-api/model/gridModel.d.ts +30 -0
- package/lib/smart-grid/api/grid-api/model/gridPage.d.ts +26 -0
- package/lib/smart-grid/api/grid-api/model/gridRow.d.ts +22 -0
- package/lib/smart-grid/api/grid-api/model/gridSelectionMode.d.ts +17 -0
- package/lib/smart-grid/api/grid-api/model/gridSelectionType.d.ts +16 -0
- package/lib/smart-grid/api/grid-api/model/gridServerModel.d.ts +20 -0
- package/lib/smart-grid/api/grid-api/model/gridUpdateData.d.ts +19 -0
- package/lib/smart-grid/api/grid-api/model/gridView.d.ts +21 -0
- package/lib/smart-grid/api/grid-api/model/gridViewDescriptor.d.ts +33 -0
- package/lib/smart-grid/api/grid-api/model/models.d.ts +11 -0
- package/lib/smart-grid/api/grid-api/variables.d.ts +8 -0
- package/lib/smart-grid/components/expandable-grid/expandable-grid.component.d.ts +10 -0
- package/lib/smart-grid/components/smart-grid-card/smart-grid-card.component.d.ts +21 -0
- package/lib/smart-grid/components/table-layout-definer/table-layout-definer.component.d.ts +40 -0
- package/lib/smart-grid/models/model.d.ts +70 -0
- package/lib/smart-grid/projects.d.ts +5 -0
- package/lib/smart-grid/smart-grid.component.d.ts +67 -0
- package/lib/smart-grid/smart-grid.module.d.ts +20 -0
- package/lib/smart-grid/smart-grid.service.d.ts +26 -0
- package/lib/smart-icon/projects.d.ts +3 -0
- package/lib/smart-icon/smart-icon/smart-icon.component.d.ts +17 -0
- package/lib/smart-icon/smart-icon.module.d.ts +10 -0
- package/lib/smart-icon/smart-icon.service.d.ts +21 -0
- package/lib/smart-navbar/projects.d.ts +4 -0
- package/lib/smart-navbar/smart-navbar.component.d.ts +20 -0
- package/lib/smart-navbar/smart-navbar.model.d.ts +48 -0
- package/lib/smart-navbar/smart-navbar.module.d.ts +18 -0
- package/lib/smart-navbar/smart-navbar.service.d.ts +6 -0
- package/lib/smart-navigation/projects.d.ts +2 -0
- package/lib/smart-navigation/smart-navigation.interface.d.ts +11 -0
- package/lib/smart-navigation/smart-navigation.module.d.ts +6 -0
- package/lib/smart-navigation/smart-navigation.service.d.ts +18 -0
- package/lib/smart-ng-client.module.d.ts +9 -6
- package/lib/smart-subject/projects.d.ts +1 -0
- package/lib/smart-subject/smart-subject.d.ts +6 -0
- package/lib/smart-tab-group/projects.d.ts +4 -0
- package/lib/smart-tab-group/smart-tab-group.component.d.ts +21 -0
- package/lib/smart-tab-group/smart-tab-group.module.d.ts +13 -0
- package/lib/smart-tab-group/smart-tab-group.service.d.ts +6 -0
- package/lib/smart-tab-group/tab-content/tab-content.component.d.ts +14 -0
- package/lib/smart-tab-group/tab-group-simplified/tab-group.component.d.ts +29 -0
- package/lib/smart-tab-group/tabTile.model.d.ts +8 -0
- package/lib/smart-table/components/loading/loading.component.d.ts +8 -0
- package/lib/smart-table/projects.d.ts +5 -0
- package/lib/smart-table/smarttable.component.d.ts +34 -0
- package/lib/smart-table/smarttable.date-pipe.d.ts +18 -0
- package/lib/smart-table/smarttable.model.d.ts +183 -0
- package/lib/smart-table/smarttable.module.d.ts +23 -0
- package/lib/smart-table/smarttable.service.d.ts +6 -0
- package/lib/smart-table/tables/material-table/material-table.component.d.ts +8 -0
- package/lib/smart-table/tables/mobile-table/mobile-table.component.d.ts +8 -0
- package/lib/smart-table/tables/table.d.ts +59 -0
- package/lib/smart-tree/smarttree.component.d.ts +1 -1
- package/lib/smart-tree/smarttree.model.d.ts +1 -1
- package/lib/smart-tree/smarttree.module.d.ts +1 -1
- package/lib/smart-tree/smarttree.service.d.ts +1 -1
- package/lib/smart-tree/smarttree.service.interface.d.ts +1 -1
- package/lib/view-context/api/model/componentModel.d.ts +3 -2
- package/lib/view-context/api/model/view.d.ts +1 -1
- package/lib/view-context/smart-ui-action/dialogs/ui-action-confirm-dialog/ui-action-confirm-dialog.service.d.ts +1 -1
- package/lib/view-context/smart-ui-action/dialogs/ui-action-file-upload-dialog/ui-action-file-upload-dialog.component.d.ts +1 -1
- package/lib/view-context/smart-ui-action/dialogs/ui-action-file-upload-dialog/ui-action-file-upload-dialog.service.d.ts +1 -1
- package/lib/view-context/smart-ui-action/dialogs/ui-action-input-dialog/ui-action-input-dialog.component.d.ts +1 -1
- package/lib/view-context/smart-ui-action/dialogs/ui-action-input-dialog/ui-action-input-dialog.service.d.ts +1 -1
- package/lib/view-context/smart-ui-action/ui-action-toolbar.component.d.ts +1 -1
- package/lib/view-context/smart-ui-action/ui-action.model.d.ts +3 -1
- package/lib/view-context/smart-view-context-error-dialog/smart-view-context-error-dialog.service.d.ts +1 -1
- package/lib/view-context/smart-view-context.module.d.ts +2 -2
- package/lib/view-context/smart-view-context.service.d.ts +3 -3
- package/lib/view-context/smart-view-redirect/smart-view-redirect.d.ts +3 -3
- package/lib/view-context/value-api/model/valueSetData.d.ts +1 -1
- package/package.json +1 -4
- package/projects.d.ts +14 -2
- package/smartbit4all-ng-client-3.0.1.tgz +0 -0
- package/src/lib/component-factory-service/README.md +99 -0
- package/src/lib/smart-component-layout/README.md +31 -0
- package/src/lib/smart-component-layout/api/README.md +226 -0
- package/src/lib/smart-dialog/README.md +197 -0
- package/src/lib/smart-expandable-section/README.md +249 -0
- package/src/lib/smart-filter/README.md +101 -0
- package/src/lib/smart-form/README.md +1178 -0
- package/src/lib/smart-form/api/README.md +226 -0
- package/src/lib/smart-grid/README.md +24 -0
- package/src/lib/smart-grid/api/grid-api/README.md +203 -0
- package/src/lib/smart-icon/README.md +116 -0
- package/src/lib/smart-navbar/README.md +119 -0
- package/src/lib/smart-navigation/README.md +141 -0
- package/src/lib/smart-tab-group/README.md +155 -0
- package/src/lib/smart-table/README.md +667 -0
- package/src/lib/view-context/api/README.md +226 -226
- package/esm2020/lib/smart-client/projects.mjs +0 -5
- package/esm2020/lib/smart-client/smart.component.mjs +0 -30
- package/esm2020/lib/smart-client/smart.service.mjs +0 -30
- package/lib/smart-client/projects.d.ts +0 -4
- package/lib/smart-client/smart.component.d.ts +0 -11
- package/lib/smart-client/smart.service.d.ts +0 -11
- package/smartbit4all-ng-client-2.2.2.tgz +0 -0
|
@@ -0,0 +1,667 @@
|
|
|
1
|
+
# Smart Table
|
|
2
|
+
|
|
3
|
+
## References
|
|
4
|
+
|
|
5
|
+
These packages must be updated in case of a new version:
|
|
6
|
+
|
|
7
|
+
- [_@smartbit4all/dialog_](https://www.npmjs.com/package/@smartbit4all/dialog)
|
|
8
|
+
- [_@smartbit4all/view-context_](https://www.npmjs.com/package/@smartbit4all/view-context)
|
|
9
|
+
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
## How to use
|
|
13
|
+
|
|
14
|
+
### Installation
|
|
15
|
+
|
|
16
|
+
Go to your project, open the terminal and use the following command:
|
|
17
|
+
|
|
18
|
+
npm i @smartbit4all/table
|
|
19
|
+
|
|
20
|
+
Then import it in the AppModule:
|
|
21
|
+
|
|
22
|
+
`app.module.ts:`
|
|
23
|
+
|
|
24
|
+
import { SmartformModule } from '@smartbit4all/form';
|
|
25
|
+
...
|
|
26
|
+
@NgModule({
|
|
27
|
+
declarations: [...]
|
|
28
|
+
imports: [
|
|
29
|
+
...
|
|
30
|
+
SmartformModule,
|
|
31
|
+
]
|
|
32
|
+
...
|
|
33
|
+
})
|
|
34
|
+
|
|
35
|
+
### Usage
|
|
36
|
+
|
|
37
|
+
`example.component.html:`
|
|
38
|
+
|
|
39
|
+
<smarttable [smartTable]="exampletable"></smarttable>
|
|
40
|
+
|
|
41
|
+
`example.component.ts:`
|
|
42
|
+
|
|
43
|
+
export class SelectFolderContentComponent {
|
|
44
|
+
exampleTable: SmartTable<T>;
|
|
45
|
+
|
|
46
|
+
constructor() {
|
|
47
|
+
this.setUpTable();
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
setUpTable(): void {
|
|
51
|
+
let tableData: T[] =
|
|
52
|
+
[
|
|
53
|
+
{
|
|
54
|
+
tableData1: 'Table Data 1',
|
|
55
|
+
tableData2: 'Table Data 2',
|
|
56
|
+
tableData3: 'Table Data 3',
|
|
57
|
+
optionsToBind: [ 'Button1', 'Button2' ]
|
|
58
|
+
},
|
|
59
|
+
...
|
|
60
|
+
];
|
|
61
|
+
|
|
62
|
+
// Simple table without tableData3
|
|
63
|
+
this.table = new SmartTable<T>(
|
|
64
|
+
tableData
|
|
65
|
+
SmartTableType.INHERITED,
|
|
66
|
+
[
|
|
67
|
+
{
|
|
68
|
+
label: 'Table Header 1',
|
|
69
|
+
propertyName: 'tableData1'
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
label: 'Table Header 2',
|
|
73
|
+
propertyName: 'tableData2'
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
label: '',
|
|
77
|
+
propertyName: 'tableData3',
|
|
78
|
+
isHidden: true
|
|
79
|
+
},
|
|
80
|
+
],
|
|
81
|
+
);
|
|
82
|
+
|
|
83
|
+
// Checkbox table without tableData3
|
|
84
|
+
this.table = new SmartTable<T>(
|
|
85
|
+
tableData
|
|
86
|
+
SmartTableType.CHECK_BOX,
|
|
87
|
+
[
|
|
88
|
+
{
|
|
89
|
+
label: 'Table Header 1',
|
|
90
|
+
propertyName: 'tableData1'
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
label: 'Table Header 2',
|
|
94
|
+
propertyName: 'tableData2'
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
label: '',
|
|
98
|
+
propertyName: 'tableData3',
|
|
99
|
+
isHidden: true
|
|
100
|
+
},
|
|
101
|
+
],
|
|
102
|
+
);
|
|
103
|
+
|
|
104
|
+
// Custom order
|
|
105
|
+
this.table = new SmartTable<T>(
|
|
106
|
+
tableData
|
|
107
|
+
SmartTableType.CHECK_BOX,
|
|
108
|
+
[
|
|
109
|
+
{
|
|
110
|
+
label: 'Table Header 3',
|
|
111
|
+
propertyName: 'tableData3',
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
label: 'Table Header 1',
|
|
115
|
+
propertyName: 'tableData1'
|
|
116
|
+
}
|
|
117
|
+
{
|
|
118
|
+
label: 'Table Header 2',
|
|
119
|
+
propertyName: 'tableData2'
|
|
120
|
+
},
|
|
121
|
+
],
|
|
122
|
+
);
|
|
123
|
+
|
|
124
|
+
// Table with options
|
|
125
|
+
this.table = new SmartTable<T>(
|
|
126
|
+
tableData
|
|
127
|
+
SmartTableType.INHERITED,
|
|
128
|
+
[
|
|
129
|
+
{
|
|
130
|
+
label: 'Table Header 1',
|
|
131
|
+
propertyName: 'tableData1'
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
label: 'Table Header 2',
|
|
135
|
+
propertyName: 'tableData2'
|
|
136
|
+
}
|
|
137
|
+
],
|
|
138
|
+
undefined,
|
|
139
|
+
undefined,
|
|
140
|
+
[
|
|
141
|
+
{
|
|
142
|
+
label: 'Example option',
|
|
143
|
+
callback: () => {},
|
|
144
|
+
icon: 'remove'
|
|
145
|
+
}
|
|
146
|
+
]
|
|
147
|
+
);
|
|
148
|
+
|
|
149
|
+
// Table with menu button
|
|
150
|
+
this.table = new SmartTable<T>(
|
|
151
|
+
tableData
|
|
152
|
+
SmartTableType.INHERITED,
|
|
153
|
+
[
|
|
154
|
+
{
|
|
155
|
+
label: 'Table Header 1',
|
|
156
|
+
propertyName: 'tableData1'
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
label: 'Table Header 2',
|
|
160
|
+
propertyName: 'tableData2'
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
label: '',
|
|
164
|
+
propertyName: 'my_menu',
|
|
165
|
+
buttons: [
|
|
166
|
+
{
|
|
167
|
+
type: SmartTableButtonType.MENU,
|
|
168
|
+
callback: this.doSomething.bind(this),
|
|
169
|
+
icon: 'more_vert',
|
|
170
|
+
menuItemButtonsPropertyName: 'optionsToBind',
|
|
171
|
+
translator: this.buttonTranslator.bind(this),
|
|
172
|
+
args: ['exampleArg']
|
|
173
|
+
}
|
|
174
|
+
]
|
|
175
|
+
}
|
|
176
|
+
],
|
|
177
|
+
);
|
|
178
|
+
}
|
|
179
|
+
buttonTranslator(value: string): string {
|
|
180
|
+
// return the readable version of value
|
|
181
|
+
}
|
|
182
|
+
doSomething(args: any, element: any, value: any): void { ... }
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
**Example output for Simple table without tableData3:**
|
|
186
|
+
| Table Header 1 | Table Header 2 |
|
|
187
|
+
| -------------- | -------------- |
|
|
188
|
+
| Table Data 1 | Table Data 2 |
|
|
189
|
+
|
|
|
190
|
+
|
|
191
|
+
**Example output for Checkbox table without tableData3:**
|
|
192
|
+
|
|
193
|
+
| [ ] | Table Header 1 | Table Header 2 |
|
|
194
|
+
| --- | -------------- | -------------- |
|
|
195
|
+
| [x] | Table Data 1 | Table Data 2 |
|
|
196
|
+
|
|
197
|
+
|
|
|
198
|
+
|
|
199
|
+
**Example output for Custom order:**
|
|
200
|
+
| Table Header 3 | Table Header 1 | Table Header 2 |
|
|
201
|
+
| -------------- | -------------- | -------------- |
|
|
202
|
+
| Table Data 3 | Table Data 1 | Table Data 1 |
|
|
203
|
+
|
|
|
204
|
+
|
|
205
|
+
**Example output for table with Options:**
|
|
206
|
+
| Table Header 1 | Table Header 2 | Options |
|
|
207
|
+
| -------------- | -------------- | --------|
|
|
208
|
+
| Table Data 1 | Table Data 2 | ... -> Example option
|
|
209
|
+
|
|
|
210
|
+
|
|
211
|
+
In order to **get the selected values** of a Checkbox Smart Table, you can simply use the SmartTable<T> property:
|
|
212
|
+
|
|
213
|
+
`example.component.ts:`
|
|
214
|
+
|
|
215
|
+
getSelectedRows(): void {
|
|
216
|
+
let selectedRows: SelectionModel<T> = this.table.selection;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
---
|
|
220
|
+
|
|
221
|
+
## Version logs
|
|
222
|
+
|
|
223
|
+
## @smartbit4all/table v1.5.20
|
|
224
|
+
|
|
225
|
+
**Type: Update**
|
|
226
|
+
|
|
227
|
+
Table menu fix.
|
|
228
|
+
|
|
229
|
+
## @smartbit4all/table v1.5.19
|
|
230
|
+
|
|
231
|
+
**Type: Update**
|
|
232
|
+
|
|
233
|
+
The `SmartTableInterface` got a **isRowDisabledPropertyName** property which helps to disable rows with that property. The type of the property should be boolean.
|
|
234
|
+
|
|
235
|
+
export interface SmartTableInterface<T> {
|
|
236
|
+
...
|
|
237
|
+
isRowDisabledPropertyName?: string;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
## @smartbit4all/table v1.5.18
|
|
241
|
+
|
|
242
|
+
**Type: Update**
|
|
243
|
+
|
|
244
|
+
Row and row double click is supported in tables with checkboxes.
|
|
245
|
+
|
|
246
|
+
## @smartbit4all/table v1.5.16
|
|
247
|
+
|
|
248
|
+
**Type: Update**
|
|
249
|
+
|
|
250
|
+
The constructor of the `SmartTable` contains a config property which is a type of `SmartTableInterface<T>`.
|
|
251
|
+
|
|
252
|
+
export class SmartTable<T> implements SmartTableInterface<T> {
|
|
253
|
+
constructor(config: SmartTableInterface<T>) {
|
|
254
|
+
...
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
## @smartbit4all/table v1.5.2
|
|
259
|
+
|
|
260
|
+
**Type: Bugfix**
|
|
261
|
+
|
|
262
|
+
The **Cannot convert undefined or null to object** bug throwed by the `getPropertyNamesDeeply` function has been solved.
|
|
263
|
+
|
|
264
|
+
## @smartbit4all/table v1.5.1
|
|
265
|
+
|
|
266
|
+
**Type: Update**
|
|
267
|
+
|
|
268
|
+
Double click events are supported.
|
|
269
|
+
|
|
270
|
+
export interface SmartTableInterface<T> {
|
|
271
|
+
...
|
|
272
|
+
onRowDoubleClick?: (row: T) => void;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
## @smartbit4all/table v1.5.0
|
|
276
|
+
|
|
277
|
+
**Type: Update**
|
|
278
|
+
|
|
279
|
+
From now on the `SmartTable` can work with multi level objects.
|
|
280
|
+
|
|
281
|
+
**Example:**
|
|
282
|
+
|
|
283
|
+
export interface MyInnerObject {
|
|
284
|
+
myInnerProperty: string;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
export interface MyObject {
|
|
288
|
+
myProperty: MyInnerObject;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
let exampleVariable: MyObject = {
|
|
292
|
+
myProperty: {
|
|
293
|
+
myInnerProperty: 'example :)'
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
...
|
|
298
|
+
|
|
299
|
+
new SmartTable(
|
|
300
|
+
[exampleVariable],
|
|
301
|
+
SmartTableType.INHERITED,
|
|
302
|
+
[{
|
|
303
|
+
label: 'My inner property',
|
|
304
|
+
propertyName: 'myProperty.myInnerProperty'
|
|
305
|
+
}]
|
|
306
|
+
);
|
|
307
|
+
|
|
308
|
+
## @smartbit4all/table v1.4.2
|
|
309
|
+
|
|
310
|
+
**Type: Update**
|
|
311
|
+
|
|
312
|
+
`@smartbit4all/icon` support.
|
|
313
|
+
|
|
314
|
+
## @smartbit4all/table v1.4.1
|
|
315
|
+
|
|
316
|
+
**Type: Feature**
|
|
317
|
+
|
|
318
|
+
The `SmartTableButton` in `SmartTableButtonType.MENU` mode used to be identical in each rows since its descriptor was defined statically. This update makes available to use unique menus in each row depending on the row itself.
|
|
319
|
+
|
|
320
|
+
export interface SmartTableButton {
|
|
321
|
+
...
|
|
322
|
+
menuItemButtonsPropertyName?: string;
|
|
323
|
+
translator?: (label: string) => string;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
## @smartbit4all/table v1.3.1
|
|
327
|
+
|
|
328
|
+
**Type: Feature**
|
|
329
|
+
|
|
330
|
+
From now on the max number of selectable rows can be determined.
|
|
331
|
+
|
|
332
|
+
## @smartbit4all/table v1.3.0
|
|
333
|
+
|
|
334
|
+
**Type: Update**
|
|
335
|
+
|
|
336
|
+
The **SmartTable with checkbox** can use all the abilities of the normal table.
|
|
337
|
+
|
|
338
|
+
## @smartbit4all/table v1.2.0
|
|
339
|
+
|
|
340
|
+
**Type: Feature**
|
|
341
|
+
|
|
342
|
+
From now on **expandable table row with custom component** is supported by the `Smarttable`. In order to use this new feature set the _expandable_ and _expandedComponent_ properties when creating the table.
|
|
343
|
+
|
|
344
|
+
export interface SmartTableInterface<T> {
|
|
345
|
+
...
|
|
346
|
+
expandable?: boolean,
|
|
347
|
+
expandedComponent?: any
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
The provided component has to have an `@Input()` called **rowData**, which gets the object of the selected row.
|
|
351
|
+
|
|
352
|
+
`example.component.ts:`
|
|
353
|
+
|
|
354
|
+
export class ExampleComponent implements OnInit {
|
|
355
|
+
@Input('rowData') rowData: any;
|
|
356
|
+
...
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
## @smartbit4all/table v1.1.13
|
|
360
|
+
|
|
361
|
+
**Type: Feature**
|
|
362
|
+
|
|
363
|
+
The `SmartTableHeader` got a new property which helps i18n or just simply convert a string to another.
|
|
364
|
+
|
|
365
|
+
export interface SmartTableHeader {
|
|
366
|
+
...
|
|
367
|
+
translator?: (value: string) => string;
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
## @smartbit4all/table v1.1.9
|
|
371
|
+
|
|
372
|
+
**Type: Feature**
|
|
373
|
+
|
|
374
|
+
The `SmartTableHeader` got a new property which helps to insert an icon into a row.
|
|
375
|
+
|
|
376
|
+
export interface SmartTableHeader {
|
|
377
|
+
...
|
|
378
|
+
icon?: SmartTableIcon
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
export interface SmartTableIcon {
|
|
382
|
+
icon: string;
|
|
383
|
+
color?: ThemePalette;
|
|
384
|
+
cssClass?: string;
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
## @smartbit4all/table v1.1.8
|
|
388
|
+
|
|
389
|
+
**Type: Feature**
|
|
390
|
+
|
|
391
|
+
From now on hover effect can be applied to `Smarttable` rows by setting the **hover** property to **true**. The css class can be overriden in the styles.css of the client.
|
|
392
|
+
|
|
393
|
+
`styles.css:`
|
|
394
|
+
|
|
395
|
+
.smartTableRowHover:hover { ... }
|
|
396
|
+
|
|
397
|
+
## @smartbit4all/table v1.1.6
|
|
398
|
+
|
|
399
|
+
**Type: Update**
|
|
400
|
+
|
|
401
|
+
Smart-toolbar option has been removed.
|
|
402
|
+
New inline button option added.
|
|
403
|
+
|
|
404
|
+
Changes:
|
|
405
|
+
|
|
406
|
+
export interface SmartTableHeader {
|
|
407
|
+
propertyName: string;
|
|
408
|
+
label: string;
|
|
409
|
+
isHidden?: boolean;
|
|
410
|
+
properties?: SmartTableHeaderProperties;
|
|
411
|
+
buttons?: SmartTableButton[]; <======== new button option
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
export interface SmartTableButton {
|
|
415
|
+
icon?: string;
|
|
416
|
+
label?: string;
|
|
417
|
+
color?: ThemePalette;
|
|
418
|
+
type: SmartTableButtonType;
|
|
419
|
+
menuItemButtons?: SmartTableButton[];
|
|
420
|
+
callback?: (...args: any[]) => any;
|
|
421
|
+
args?: any[];
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
export enum SmartTableButtonType {
|
|
425
|
+
MENU = "MENU",
|
|
426
|
+
ICON = "ICON",
|
|
427
|
+
NORMAL = "NORMAL",
|
|
428
|
+
RAISED = "RAISED"
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
How to use this version: add buttons property to the customHeaders array
|
|
432
|
+
|
|
433
|
+
Menu button:
|
|
434
|
+
|
|
435
|
+
{
|
|
436
|
+
label: 'Operations',
|
|
437
|
+
propertyName: '',
|
|
438
|
+
buttons: [
|
|
439
|
+
{
|
|
440
|
+
label: Operation 1',
|
|
441
|
+
icon: '',
|
|
442
|
+
type: SmartTableButtonType.MENU,
|
|
443
|
+
menuItemButtons: [
|
|
444
|
+
{
|
|
445
|
+
label: 'Option 1',
|
|
446
|
+
icon: '',
|
|
447
|
+
callback: this.yourFunction.bind(this),
|
|
448
|
+
type: SmartTableButtonType.NORMAL,
|
|
449
|
+
args: ["Menu item"]
|
|
450
|
+
}
|
|
451
|
+
],
|
|
452
|
+
color: 'primary',
|
|
453
|
+
}
|
|
454
|
+
]
|
|
455
|
+
},
|
|
456
|
+
|
|
457
|
+
Normal or Icon button:
|
|
458
|
+
|
|
459
|
+
{
|
|
460
|
+
label: 'Operations',
|
|
461
|
+
propertyName: '',
|
|
462
|
+
buttons: [
|
|
463
|
+
{
|
|
464
|
+
label: Operation 1',
|
|
465
|
+
callback: this.yourFucntion.bind(this),
|
|
466
|
+
icon: '',
|
|
467
|
+
type: SmartTableButtonType.RAISED OR type: SmartTableButtonType.ICON
|
|
468
|
+
color: 'warn',
|
|
469
|
+
args: ["arg"]
|
|
470
|
+
}
|
|
471
|
+
]
|
|
472
|
+
},
|
|
473
|
+
|
|
474
|
+
## @smartbit4all/table v1.1.1
|
|
475
|
+
|
|
476
|
+
**Type: Feature**
|
|
477
|
+
|
|
478
|
+
This update contains a major change which makes the `SmartTable` to support custom datetimes and icons with conditions.
|
|
479
|
+
|
|
480
|
+
The `SmartTableHeader` got a new property called **properties**:
|
|
481
|
+
|
|
482
|
+
export interface SmartTableHeader {
|
|
483
|
+
propertyName: string;
|
|
484
|
+
label: string;
|
|
485
|
+
isHidden?: boolean;
|
|
486
|
+
properties?: SmartTableHeaderProperties;
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
With the `SmartTableHeaderProperties` you can set up the behaviour of any column.
|
|
490
|
+
|
|
491
|
+
In case of a **DATE, TIME or DATETIME** you can use the **default formats** provided by the package, however, it **can be overrided by the dateFormat property**.
|
|
492
|
+
|
|
493
|
+
With the icons property you can set any Material icon, moreover the icon can be set for a specific condition.
|
|
494
|
+
|
|
495
|
+
export interface SmartTableHeaderProperties {
|
|
496
|
+
type: SmartTableHeaderPropertyType;
|
|
497
|
+
dateFormat?: string;
|
|
498
|
+
icons?: SmartTableHeaderIcons[];
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
The `SmartTableHeaderPropertyType` helps to set the desired output type.
|
|
502
|
+
|
|
503
|
+
export enum SmartTableHeaderPropertyType {
|
|
504
|
+
DATE, // yyyy-MM-dd
|
|
505
|
+
TIME, // hh:mm
|
|
506
|
+
DATETIME, // yyyy-MM-dd hh:mm
|
|
507
|
+
ICON,
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
The `SmartTableHeaderIcons` helps to give conditions to a specific icon. **Note that** you can use only **one** of the **conditions per SmartTableHeaderIcons object**.
|
|
511
|
+
|
|
512
|
+
export interface SmartTableHeaderIcons {
|
|
513
|
+
icon: string;
|
|
514
|
+
showIconIfValueEqualsWithString?: string;
|
|
515
|
+
showIconIfValueEqualsWithNumber?: number;
|
|
516
|
+
showIconIfValueSmallerThanNumber?: number;
|
|
517
|
+
showIconIfValueBiggerThanNumber?: number;
|
|
518
|
+
showIconIfValueBoolean?: boolean;
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
## @smartbit4all/table v1.0.5
|
|
522
|
+
|
|
523
|
+
**Type: Feature**
|
|
524
|
+
|
|
525
|
+
From now on rows can be highlighted by clicking on them. To use this feature simply set these two properties:
|
|
526
|
+
|
|
527
|
+
- highlightOnRowClick: boolean
|
|
528
|
+
- highlightClass: string
|
|
529
|
+
|
|
530
|
+
## @smartbit4all/table v1.0.4
|
|
531
|
+
|
|
532
|
+
**Type: Feature**
|
|
533
|
+
|
|
534
|
+
This version contains two updates which both makes the SmartTable more easy to use.
|
|
535
|
+
|
|
536
|
+
- with the `tableOptionButtonDirection` you can set the direction of the dots in the more button
|
|
537
|
+
- with the `onRowClick?: (row: T) => void;` you can set the onRowClick event with a custom function of yours
|
|
538
|
+
|
|
539
|
+
## @smartbit4all/table v1.0.1
|
|
540
|
+
|
|
541
|
+
**Type: Update**
|
|
542
|
+
|
|
543
|
+
The package has been published.
|
|
544
|
+
|
|
545
|
+
## @smartbit4all/table v0.1.7
|
|
546
|
+
|
|
547
|
+
**Type: Feature**
|
|
548
|
+
|
|
549
|
+
In this version the SmartTableComponent is able to use SmartToolbarComponent inside the table cells.
|
|
550
|
+
|
|
551
|
+
**Modifications:**
|
|
552
|
+
|
|
553
|
+
1. SmartTableComponent html
|
|
554
|
+
|
|
555
|
+
<div *ngIf="header === 'button'">
|
|
556
|
+
<smart-toolbar [toolbar]="element[header]"></smart-toolbar>
|
|
557
|
+
</div>
|
|
558
|
+
|
|
559
|
+
**Usage update:**
|
|
560
|
+
|
|
561
|
+
To use this toolbar feature, the objects given in the tableRow array must have a SmartToolbar object inside a property named button.
|
|
562
|
+
|
|
563
|
+
Checkout the usage of the SmartToolbar: [@smartbit4all/toolbar](https://www.npmjs.com/package/@smartbit4all/toolbar)
|
|
564
|
+
|
|
565
|
+
## @smartbit4all/table v0.1.4 - v0.1.6
|
|
566
|
+
|
|
567
|
+
**Type: Feature**
|
|
568
|
+
|
|
569
|
+
The update contains a new feature to SmartTable.
|
|
570
|
+
In this version the package is able to generate buttons into the table cell.
|
|
571
|
+
|
|
572
|
+
Modifications:
|
|
573
|
+
|
|
574
|
+
1. SmartTableComponent html
|
|
575
|
+
2. New type represent a button:
|
|
576
|
+
|
|
577
|
+
export interface SmartTableButton {
|
|
578
|
+
lable: string;
|
|
579
|
+
icon?: string;
|
|
580
|
+
onClick?: (args?: any[]) => void;
|
|
581
|
+
}
|
|
582
|
+
|
|
583
|
+
**Usage:**
|
|
584
|
+
The elements of the tableRow array have to contain a button property which is a SmartTableButton.
|
|
585
|
+
|
|
586
|
+
## @smartbit4all/table v0.1.2 - v0.1.3
|
|
587
|
+
|
|
588
|
+
**Type: Bugfix**
|
|
589
|
+
|
|
590
|
+
The `SmartTableHeader` had a bug which may have caused serious issues in case of a model property change.
|
|
591
|
+
|
|
592
|
+
A function described by the `SmartTableInterface<T>` **has been removed** due to its lack of usage in the new version.
|
|
593
|
+
|
|
594
|
+
equalsIgnoreOrder: (a: string[], b: string[]) => boolean;
|
|
595
|
+
|
|
596
|
+
Instead of comparing all the properties to each other, property by property comparison has been introduced.
|
|
597
|
+
|
|
598
|
+
**Old code snippet:**
|
|
599
|
+
|
|
600
|
+
if (
|
|
601
|
+
this.customSmartTableHeaders &&
|
|
602
|
+
this.equalsIgnoreOrder(
|
|
603
|
+
this.tableHeaders,
|
|
604
|
+
this.customSmartTableHeaders.map((tableHeader) => tableHeader.propertyName)
|
|
605
|
+
)
|
|
606
|
+
) {
|
|
607
|
+
this.customSmartTableHeaders.forEach((tableHeader) => { ... }
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
**New code snippet:**
|
|
611
|
+
|
|
612
|
+
if (this.customSmartTableHeaders && this.customSmartTableHeaders.length) {
|
|
613
|
+
...
|
|
614
|
+
this.customSmartTableHeaders.forEach((tableHeader) => {
|
|
615
|
+
if (originalHeaders.includes(tableHeader.propertyName) && !tableHeader.isHidden) { ... }
|
|
616
|
+
}
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
## @smartbit4all/table v0.1.1
|
|
620
|
+
|
|
621
|
+
**Type: Feature**
|
|
622
|
+
|
|
623
|
+
With this update you can easily change the order of your smartTable with custom headers.
|
|
624
|
+
|
|
625
|
+
A new **SmartTableHeader** type has been introduced, with which the order and visibility can be set.
|
|
626
|
+
|
|
627
|
+
**The SmartTableHeader**
|
|
628
|
+
|
|
629
|
+
export interface SmartTableHeader {
|
|
630
|
+
propertyName: string;
|
|
631
|
+
label: string;
|
|
632
|
+
isHidden?: boolean;
|
|
633
|
+
}
|
|
634
|
+
|
|
635
|
+
Example for creating a new SmartTable:
|
|
636
|
+
|
|
637
|
+
new SmartTable(
|
|
638
|
+
rows,
|
|
639
|
+
SmartTableType.INHERITED,
|
|
640
|
+
[
|
|
641
|
+
{
|
|
642
|
+
propertyName: 'uuid',
|
|
643
|
+
label: '',
|
|
644
|
+
isHidden: true
|
|
645
|
+
},
|
|
646
|
+
{
|
|
647
|
+
propertyName: 'name',
|
|
648
|
+
label: 'Full name',
|
|
649
|
+
}
|
|
650
|
+
]
|
|
651
|
+
);
|
|
652
|
+
|
|
653
|
+
## @smartbit4all/table v0.0.3
|
|
654
|
+
|
|
655
|
+
**Type: Feature**
|
|
656
|
+
|
|
657
|
+
Now images can be added to the SmartTable.
|
|
658
|
+
|
|
659
|
+
In order to use this new ability, **the model**, _which is used in the SmartTable_, **must contain** an `img: string` property which is the **path of the image**.
|
|
660
|
+
|
|
661
|
+
**Do not forget to add** the 'img' to the `customTableHeaders` at the **proper** position.
|
|
662
|
+
|
|
663
|
+
## @smartbit4all/table v0.0.2
|
|
664
|
+
|
|
665
|
+
**Type: Feature**
|
|
666
|
+
|
|
667
|
+
Default version. The smarttable works.
|