@den4ik92/ng2-smart-table 19.3.1 → 19.4.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.
- package/README.md +16 -17
- package/fesm2022/den4ik92-ng2-smart-table.mjs +1277 -1499
- package/fesm2022/den4ik92-ng2-smart-table.mjs.map +1 -1
- package/lib/components/cell/cell-edit-mode/edit-cell.component.d.ts +1 -2
- package/lib/components/cell/cell-editors/base-editor.component.d.ts +2 -3
- package/lib/components/cell/cell-view-mode/custom-view.component.d.ts +1 -1
- package/lib/components/cell/cell-view-mode/view-cell.component.d.ts +1 -1
- package/lib/components/cell/cell.component.d.ts +2 -3
- package/lib/components/filter/filter-types/checkbox-filter.component.d.ts +5 -6
- package/lib/components/filter/filter.component.d.ts +2 -5
- package/lib/components/table-columns-editor/column-editor.directive.d.ts +2 -2
- package/lib/components/tbody/create-cancel/create-cancel.component.d.ts +13 -0
- package/lib/components/tbody/row-actions/row-actions.component.d.ts +23 -0
- package/lib/components/tbody/tbody.component.d.ts +16 -18
- package/lib/components/tbody/trow/trow.component.d.ts +23 -0
- package/lib/components/thead/cells/actions-title.component.d.ts +1 -1
- package/lib/components/thead/cells/add-button.component.d.ts +3 -5
- package/lib/components/thead/cells/checkbox-select-all.component.d.ts +1 -1
- package/lib/components/thead/cells/title/title.component.d.ts +5 -7
- package/lib/components/thead/rows/thead-filters-row.component.d.ts +3 -2
- package/lib/components/thead/thead.component.d.ts +13 -5
- package/lib/lib/data-set/cell.d.ts +7 -11
- package/lib/lib/data-set/column.d.ts +2 -1
- package/lib/lib/data-set/data-set.d.ts +8 -8
- package/lib/lib/data-set/row.d.ts +6 -9
- package/lib/lib/data-source/data-source.d.ts +6 -6
- package/lib/lib/data-source/local/local.data-source.d.ts +1 -3
- package/lib/lib/data-source/local/local.filter.d.ts +2 -2
- package/lib/lib/data-source/local/local.sorter.d.ts +1 -1
- package/lib/lib/data-source/server/server.data-source.d.ts +0 -2
- package/lib/lib/grid.d.ts +3 -5
- package/lib/lib/helpers.d.ts +2 -1
- package/lib/lib/interfaces/smart-table.models.d.ts +52 -30
- package/lib/ng2-smart-table.component.d.ts +36 -18
- package/package.json +1 -1
- package/public-api.d.ts +1 -1
- package/lib/components/tbody/cells/create-cancel.component.d.ts +0 -16
- package/lib/components/tbody/cells/custom.component.d.ts +0 -15
- package/lib/components/tbody/cells/edit-delete.component.d.ts +0 -25
- package/lib/components/thead/cells/actions.component.d.ts +0 -10
- package/lib/components/thead/cells/column-title.component.d.ts +0 -9
- package/lib/components/thead/rows/thead-form-row.component.d.ts +0 -14
package/README.md
CHANGED
|
@@ -39,9 +39,9 @@ Then register it by adding to the list of directives of your module:
|
|
|
39
39
|
@NgModule({
|
|
40
40
|
imports: [
|
|
41
41
|
// ...
|
|
42
|
-
|
|
42
|
+
|
|
43
43
|
Ng2SmartTableModule,
|
|
44
|
-
|
|
44
|
+
|
|
45
45
|
// ...
|
|
46
46
|
],
|
|
47
47
|
declarations: [ ... ]
|
|
@@ -51,7 +51,7 @@ Then register it by adding to the list of directives of your module:
|
|
|
51
51
|
|
|
52
52
|
Now, we need to configure the table and add it into the template. The only <strong>required</strong> setting for the component to start working is a columns configuration.
|
|
53
53
|
Let's register <i>settings</i> property inside of the component where we want to have the table and configure some columns [Settings documentation](https://akveo.github.io/ng2-smart-table/#/documentation):
|
|
54
|
-
|
|
54
|
+
|
|
55
55
|
```
|
|
56
56
|
settings = {
|
|
57
57
|
columns: {
|
|
@@ -84,7 +84,7 @@ Finally let's put the ng2-smart-table component inside of the template:
|
|
|
84
84
|
// ...
|
|
85
85
|
```
|
|
86
86
|
At this step you will have a minimal configured table. All functions are available by default and you don't need to configure them anyhow, so now you can add/edit/delete rows, sort or filter the table, etc.
|
|
87
|
-
|
|
87
|
+
|
|
88
88
|
Still it seems like something is missing... Right, there is no data in the table by default. To add some, let's create an array property with a list of objects in the component. Please note that object keys are the same as in the columns configuration.
|
|
89
89
|
|
|
90
90
|
```
|
|
@@ -101,9 +101,9 @@ data = [
|
|
|
101
101
|
username: "Antonette",
|
|
102
102
|
email: "Shanna@melissa.tv"
|
|
103
103
|
},
|
|
104
|
-
|
|
104
|
+
|
|
105
105
|
// ... list of items
|
|
106
|
-
|
|
106
|
+
|
|
107
107
|
{
|
|
108
108
|
id: 11,
|
|
109
109
|
name: "Nicholas DuBuque",
|
|
@@ -127,7 +127,7 @@ And pass the data to the table:
|
|
|
127
127
|
```
|
|
128
128
|
|
|
129
129
|
Now you have some data in the table.
|
|
130
|
-
|
|
130
|
+
|
|
131
131
|
## Further Documentation
|
|
132
132
|
Installation, customization and other useful articles: https://akveo.github.io/ng2-smart-table/
|
|
133
133
|
|
|
@@ -155,13 +155,12 @@ Yes! Visit [our homepage](http://akveo.com/) or simply leave us a note to [cont
|
|
|
155
155
|
## License
|
|
156
156
|
[MIT](LICENSE.txt) license.
|
|
157
157
|
|
|
158
|
-
##
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
We're always happy to hear your feedback!
|
|
158
|
+
## Custom css var for styling with default value
|
|
159
|
+
--table-header-dropdown-background: #ffffff
|
|
160
|
+
--table-card-shadow:0 0 8px 5px #d7d7d791
|
|
161
|
+
--table-card-background-color: #ffffff
|
|
162
|
+
--table-header-dropdown-max-height: 60dvh
|
|
163
|
+
--table-header-dropdown-width: 80dvw
|
|
164
|
+
--table-border-primary: #d5d5d5
|
|
165
|
+
--table-header-dropdown-close-button-color: #000
|
|
166
|
+
--table-header-dropdown-overlay-background: #cbcbcb53
|