@operato/data-grist 1.0.0-beta.1 → 1.0.0-beta.12
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/CHANGELOG.md +352 -0
- package/demo/data-grist-test.html +1 -1
- package/demo/index.html +28 -2
- package/demo/report-test.html +1 -1
- package/dist/src/configure/column-builder.js +0 -7
- package/dist/src/configure/column-builder.js.map +1 -1
- package/dist/src/data-card/data-card-field.d.ts +1 -1
- package/dist/src/data-card/data-card-field.js +3 -2
- package/dist/src/data-card/data-card-field.js.map +1 -1
- package/dist/src/data-grist.d.ts +1 -1
- package/dist/src/data-grist.js +8 -8
- package/dist/src/data-grist.js.map +1 -1
- package/dist/src/editors/ox-grist-editor-file.d.ts +5 -0
- package/dist/src/editors/ox-grist-editor-file.js +18 -0
- package/dist/src/editors/ox-grist-editor-file.js.map +1 -0
- package/dist/src/editors/registry.js +3 -1
- package/dist/src/editors/registry.js.map +1 -1
- package/dist/src/filters/filter-input copy.d.ts +2 -0
- package/dist/src/filters/filter-input copy.js +25 -0
- package/dist/src/filters/filter-input copy.js.map +1 -0
- package/dist/src/filters/filter-input.js +4 -4
- package/dist/src/filters/filter-input.js.map +1 -1
- package/dist/src/filters/filter-mwc-checkbox.d.ts +4 -0
- package/dist/src/filters/filter-mwc-checkbox.js +30 -0
- package/dist/src/filters/filter-mwc-checkbox.js.map +1 -0
- package/dist/src/filters/filter-mwc-textfield.d.ts +3 -0
- package/dist/src/filters/filter-mwc-textfield.js +27 -0
- package/dist/src/filters/filter-mwc-textfield.js.map +1 -0
- package/dist/src/filters/filter-styles.js +62 -15
- package/dist/src/filters/filter-styles.js.map +1 -1
- package/dist/src/filters/filters-form.js +28 -16
- package/dist/src/filters/filters-form.js.map +1 -1
- package/dist/src/filters/grist-filter-registry.d.ts +12 -0
- package/dist/src/filters/grist-filter-registry.js +47 -0
- package/dist/src/filters/grist-filter-registry.js.map +1 -0
- package/dist/src/filters/ox-grist-filter-editor-checkbox.d.ts +5 -0
- package/dist/src/filters/ox-grist-filter-editor-checkbox.js +27 -0
- package/dist/src/filters/ox-grist-filter-editor-checkbox.js.map +1 -0
- package/dist/src/filters/ox-grist-filter-editor-input.d.ts +4 -0
- package/dist/src/filters/ox-grist-filter-editor-input.js +54 -0
- package/dist/src/filters/ox-grist-filter-editor-input.js.map +1 -0
- package/dist/src/filters/ox-grist-filter-editor-select.d.ts +4 -0
- package/dist/src/filters/ox-grist-filter-editor-select.js +46 -0
- package/dist/src/filters/ox-grist-filter-editor-select.js.map +1 -0
- package/dist/src/filters/ox-grist-filter-editor.d.ts +16 -0
- package/dist/src/filters/ox-grist-filter-editor.js +122 -0
- package/dist/src/filters/ox-grist-filter-editor.js.map +1 -0
- package/dist/src/renderers/index.d.ts +1 -0
- package/dist/src/renderers/index.js +1 -0
- package/dist/src/renderers/index.js.map +1 -1
- package/dist/src/renderers/ox-grist-renderer-file.d.ts +2 -0
- package/dist/src/renderers/ox-grist-renderer-file.js +15 -0
- package/dist/src/renderers/ox-grist-renderer-file.js.map +1 -0
- package/dist/src/renderers/ox-grist-renderer-text.js +6 -2
- package/dist/src/renderers/ox-grist-renderer-text.js.map +1 -1
- package/dist/src/renderers/registry.js +2 -0
- package/dist/src/renderers/registry.js.map +1 -1
- package/dist/src/types.d.ts +4 -4
- package/dist/src/types.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +9 -9
- package/src/configure/column-builder.ts +0 -7
- package/src/data-card/data-card-field.ts +5 -3
- package/src/data-grist.ts +18 -18
- package/src/editors/ox-grist-editor-file.ts +16 -0
- package/src/editors/registry.ts +4 -3
- package/src/filters/filter-input.ts +4 -3
- package/src/filters/filter-styles.ts +62 -15
- package/src/filters/filters-form.ts +33 -16
- package/src/renderers/index.ts +1 -0
- package/src/renderers/ox-grist-renderer-file.ts +17 -0
- package/src/renderers/ox-grist-renderer-text.ts +8 -2
- package/src/renderers/registry.ts +6 -5
- package/src/types.ts +4 -5
- package/themes/form-theme.css +75 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,358 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [1.0.0-beta.12](https://github.com/hatiolab/operato/compare/v1.0.0-beta.11...v1.0.0-beta.12) (2022-05-13)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### :rocket: New Features
|
|
10
|
+
|
|
11
|
+
* storybook started ([90c08c9](https://github.com/hatiolab/operato/commit/90c08c9a15e5fe554baaa1becca07793e8434799))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
## [1.0.0-beta.11](https://github.com/hatiolab/operato/compare/v1.0.0-beta.10...v1.0.0-beta.11) (2022-05-01)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### :rocket: New Features
|
|
19
|
+
|
|
20
|
+
* separated filter-form from data-grist ([21e27f7](https://github.com/hatiolab/operato/commit/21e27f74d3e66d782da4aa75801c39a037627f62))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
### :bug: Bug Fix
|
|
24
|
+
|
|
25
|
+
* data card equal width style ([ad5f453](https://github.com/hatiolab/operato/commit/ad5f45349634005501ee21e1ae0e7b0fd3f97126))
|
|
26
|
+
* filters-form style ([e32b875](https://github.com/hatiolab/operato/commit/e32b8759dddad7be2b7f9dae0fd257064eb31043))
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
## [1.0.0-beta.10](https://github.com/hatiolab/operato/compare/v1.0.0-beta.9...v1.0.0-beta.10) (2022-04-28)
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
### :rocket: New Features
|
|
34
|
+
|
|
35
|
+
* add format option for text-renderer ([c58375b](https://github.com/hatiolab/operato/commit/c58375b05fb69db03a9081c41ea4ff11437834b1))
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
## [1.0.0-beta.9](https://github.com/hatiolab/operato/compare/v1.0.0-beta.8...v1.0.0-beta.9) (2022-04-28)
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
### :bug: Bug Fix
|
|
43
|
+
|
|
44
|
+
* filter form style ([8cd098e](https://github.com/hatiolab/operato/commit/8cd098e0816f2c715ced3a4ff031caa5af3831ef))
|
|
45
|
+
* filter-style ([8d4ccfa](https://github.com/hatiolab/operato/commit/8d4ccfad7e1710b4f0ca9b617872ea5901880238))
|
|
46
|
+
* search value for filters-form ([a3a0ed5](https://github.com/hatiolab/operato/commit/a3a0ed59a924a1b13f304705a27137af98638bd0))
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
## [1.0.0-beta.8](https://github.com/hatiolab/operato/compare/v1.0.0-beta.7...v1.0.0-beta.8) (2022-04-27)
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
### :bug: Bug Fix
|
|
54
|
+
|
|
55
|
+
* filters-form style ([b02c530](https://github.com/hatiolab/operato/commit/b02c530fc7e106c42f0f87d1b62f3707063e03ca))
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
## [1.0.0-beta.7](https://github.com/hatiolab/operato/compare/v1.0.0-beta.6...v1.0.0-beta.7) (2022-04-24)
|
|
60
|
+
|
|
61
|
+
**Note:** Version bump only for package @operato/data-grist
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
## [1.0.0-beta.6](https://github.com/hatiolab/operato/compare/v0.4.5...v1.0.0-beta.6) (2022-04-22)
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
### :rocket: New Features
|
|
71
|
+
|
|
72
|
+
* ox-grist-editor-file ([2b64b2f](https://github.com/hatiolab/operato/commit/2b64b2fe3637d6e4ef2b02c5fd9a9986ae49e57f))
|
|
73
|
+
|
|
74
|
+
## [1.0.0-beta.5](https://github.com/hatiolab/operato/compare/v1.0.0-beta.4...v1.0.0-beta.5) (2022-04-18)
|
|
75
|
+
|
|
76
|
+
## [1.0.0-beta.4](https://github.com/hatiolab/operato/compare/v1.0.0-beta.3...v1.0.0-beta.4) (2022-04-14)
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
### :rocket: New Features
|
|
80
|
+
|
|
81
|
+
* filter-input for like filters ([2680977](https://github.com/hatiolab/operato/commit/26809779b05f5a203c6b58668674dd68dca529d7))
|
|
82
|
+
* resource-object filter ([c70a727](https://github.com/hatiolab/operato/commit/c70a7270d9b28e51d78d3831bd2f563160d010ef))
|
|
83
|
+
* search for relation fields ([7dc99fd](https://github.com/hatiolab/operato/commit/7dc99fd6df1a96faab4f44ea65c3837934fabc5b))
|
|
84
|
+
|
|
85
|
+
## [1.0.0-beta.3](https://github.com/hatiolab/operato/compare/v1.0.0-beta.2...v1.0.0-beta.3) (2022-04-12)
|
|
86
|
+
|
|
87
|
+
## [1.0.0-beta.2](https://github.com/hatiolab/operato/compare/v1.0.0-beta.1...v1.0.0-beta.2) (2022-04-12)
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
### :bug: Bug Fix
|
|
91
|
+
|
|
92
|
+
* firters-form input labeling ([896c42c](https://github.com/hatiolab/operato/commit/896c42c776705edc38807ad33aa42650ccd06db2))
|
|
93
|
+
|
|
94
|
+
## [1.0.0-beta.1](https://github.com/hatiolab/operato/compare/v1.0.0-beta.0...v1.0.0-beta.1) (2022-04-11)
|
|
95
|
+
|
|
96
|
+
## [1.0.0-beta.0](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.53...v1.0.0-beta.0) (2022-04-10)
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
### :bug: Bug Fix
|
|
100
|
+
|
|
101
|
+
* default operator for data-grist filter configuration ([8ff0d35](https://github.com/hatiolab/operato/commit/8ff0d35bc5e9cab748ef3a014e710ab4fe62d8e9))
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
### :rocket: New Features
|
|
105
|
+
|
|
106
|
+
* support undo/redo for data-grist ([b7e6c1f](https://github.com/hatiolab/operato/commit/b7e6c1fb47910a3fc3acb0352472ad19cf4e13d2))
|
|
107
|
+
|
|
108
|
+
## [1.0.0-alpha.53](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.52...v1.0.0-alpha.53) (2022-04-08)
|
|
109
|
+
|
|
110
|
+
## [1.0.0-alpha.52](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.51...v1.0.0-alpha.52) (2022-04-08)
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
### :bug: Bug Fix
|
|
114
|
+
|
|
115
|
+
* change-sorters event handler for data-grist ([5e7c582](https://github.com/hatiolab/operato/commit/5e7c582cc46db791aaa6f16a1203c6731617a4da))
|
|
116
|
+
* made filter configuration type overidable ([d4ebf8f](https://github.com/hatiolab/operato/commit/d4ebf8f90af99372b8dcebc203842163fa850c09))
|
|
117
|
+
* update data-provider ([dadfc1c](https://github.com/hatiolab/operato/commit/dadfc1ca3708b54e5414e28bb721324052830de9))
|
|
118
|
+
|
|
119
|
+
## [1.0.0-alpha.51](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.50...v1.0.0-alpha.51) (2022-04-05)
|
|
120
|
+
|
|
121
|
+
## [1.0.0-alpha.50](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.49...v1.0.0-alpha.50) (2022-04-04)
|
|
122
|
+
|
|
123
|
+
## [1.0.0-alpha.49](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.48...v1.0.0-alpha.49) (2022-04-04)
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
### :bug: Bug Fix
|
|
127
|
+
|
|
128
|
+
* lit@2.2.1 ([6707752](https://github.com/hatiolab/operato/commit/6707752907d24f7ecbe248cba18a4b18cfda282f))
|
|
129
|
+
|
|
130
|
+
## [1.0.0-alpha.48](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.47...v1.0.0-alpha.48) (2022-04-03)
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
### :bug: Bug Fix
|
|
134
|
+
|
|
135
|
+
* event handling for clicking magnify icon in filters-form - fetch data forcely ([cc17a05](https://github.com/hatiolab/operato/commit/cc17a056807a6e5018ee89d1f6be91e463671bac))
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
### :rocket: New Features
|
|
139
|
+
|
|
140
|
+
* support copy and paste in data-grid ([9dd686f](https://github.com/hatiolab/operato/commit/9dd686f6817500863a1c36140ef01b39fcafef9f))
|
|
141
|
+
* support data-grist block selection ([b9238ae](https://github.com/hatiolab/operato/commit/b9238ae7848b9824466b2ce843d56d3eac789104))
|
|
142
|
+
* support data-grist block selection ([537577a](https://github.com/hatiolab/operato/commit/537577a160abc0aa0d9df4374eca0ddcadf0bd7f))
|
|
143
|
+
|
|
144
|
+
## [1.0.0-alpha.47](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.46...v1.0.0-alpha.47) (2022-04-02)
|
|
145
|
+
|
|
146
|
+
## [1.0.0-alpha.46](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.45...v1.0.0-alpha.46) (2022-04-02)
|
|
147
|
+
|
|
148
|
+
## [1.0.0-alpha.45](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.44...v1.0.0-alpha.45) (2022-03-31)
|
|
149
|
+
|
|
150
|
+
## [1.0.0-alpha.44](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.43...v1.0.0-alpha.44) (2022-03-31)
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
### :rocket: New Features
|
|
154
|
+
|
|
155
|
+
* select member method for ox-grist ([e18bca1](https://github.com/hatiolab/operato/commit/e18bca1756fc78acdff7c820d4b350f05cb7114f))
|
|
156
|
+
|
|
157
|
+
## [1.0.0-alpha.43](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.42...v1.0.0-alpha.43) (2022-03-30)
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
### :rocket: New Features
|
|
161
|
+
|
|
162
|
+
* url-params-sensitive property for data-grist ([25de73e](https://github.com/hatiolab/operato/commit/25de73e0b4498fb301d0d94e420c7acbbd70856f))
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
### :bug: Bug Fix
|
|
166
|
+
|
|
167
|
+
* filters-change event handling in data-grist ([8e03e4c](https://github.com/hatiolab/operato/commit/8e03e4cbcb837102d4df8a803b2b20a30b67271e))
|
|
168
|
+
* ox-grist-renderer-color ([2554cfa](https://github.com/hatiolab/operato/commit/2554cfad505e22798448426177c2da4ff9e7dba6))
|
|
169
|
+
|
|
170
|
+
## [1.0.0-alpha.42](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.41...v1.0.0-alpha.42) (2022-03-29)
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
### :bug: Bug Fix
|
|
174
|
+
|
|
175
|
+
* data-grist sorters, filters ([960830a](https://github.com/hatiolab/operato/commit/960830ab877ada67cf8701fce7aa1740ec83bcc2))
|
|
176
|
+
* filter-select in data-grid-header ([61e2aa0](https://github.com/hatiolab/operato/commit/61e2aa060e41f61bef9ebc7d5890f84632ee73bf))
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
### :rocket: New Features
|
|
180
|
+
|
|
181
|
+
* add filters and sorters property in grist ([099757f](https://github.com/hatiolab/operato/commit/099757fd211411795120ed4c2fa9e23e8e2d398a))
|
|
182
|
+
* url-params-sensitive property for data-grist ([8bae25f](https://github.com/hatiolab/operato/commit/8bae25f210c0185f0b307dbda4797b568231618a))
|
|
183
|
+
* url-params-sensitive property for data-grist ([32523c0](https://github.com/hatiolab/operato/commit/32523c0ec4e69c603317c6a05eba0c0338663886))
|
|
184
|
+
|
|
185
|
+
## [1.0.0-alpha.41](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.40...v1.0.0-alpha.41) (2022-03-27)
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
### :rocket: New Features
|
|
189
|
+
|
|
190
|
+
* grid-header filter integrated with filters-form ([ebecb71](https://github.com/hatiolab/operato/commit/ebecb71133d38bb8358909660319de6cb5b45d7d))
|
|
191
|
+
|
|
192
|
+
## [1.0.0-alpha.40](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.39...v1.0.0-alpha.40) (2022-03-26)
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
### :bug: Bug Fix
|
|
196
|
+
|
|
197
|
+
* filter-select support object type select options ([ab5a877](https://github.com/hatiolab/operato/commit/ab5a877157979bc96b252b6b527b4666c22e0b09))
|
|
198
|
+
|
|
199
|
+
## [1.0.0-alpha.39](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.38...v1.0.0-alpha.39) (2022-03-25)
|
|
200
|
+
|
|
201
|
+
## [1.0.0-alpha.38](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.37...v1.0.0-alpha.38) (2022-03-25)
|
|
202
|
+
|
|
203
|
+
## [1.0.0-alpha.37](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.36...v1.0.0-alpha.37) (2022-03-25)
|
|
204
|
+
|
|
205
|
+
## [1.0.0-alpha.36](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.35...v1.0.0-alpha.36) (2022-03-21)
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
### :bug: Bug Fix
|
|
209
|
+
|
|
210
|
+
* datetime grist-renderer ([d551750](https://github.com/hatiolab/operato/commit/d55175091f9b928c56b02a087922c2fe8dcad9a9))
|
|
211
|
+
|
|
212
|
+
## [1.0.0-alpha.35](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.34...v1.0.0-alpha.35) (2022-03-21)
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
### :bug: Bug Fix
|
|
216
|
+
|
|
217
|
+
* prevent text overflow of grist-renderers ([73e7538](https://github.com/hatiolab/operato/commit/73e7538f9a0c8941689fefd3d4212529a75c413d))
|
|
218
|
+
|
|
219
|
+
## [1.0.0-alpha.34](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.33...v1.0.0-alpha.34) (2022-03-20)
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
### :bug: Bug Fix
|
|
223
|
+
|
|
224
|
+
* data-grist field styles for tooltip ([5f90650](https://github.com/hatiolab/operato/commit/5f90650ef36023834af3d3bf027cd300cc6bffc1))
|
|
225
|
+
|
|
226
|
+
## [1.0.0-alpha.33](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.32...v1.0.0-alpha.33) (2022-03-19)
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
### :bug: Bug Fix
|
|
230
|
+
|
|
231
|
+
* ox-grist json5 renderer ([1ff95e2](https://github.com/hatiolab/operato/commit/1ff95e21ac1b467620327a2a3f7aacd105b83414))
|
|
232
|
+
|
|
233
|
+
## [1.0.0-alpha.32](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.31...v1.0.0-alpha.32) (2022-03-19)
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
### :bug: Bug Fix
|
|
237
|
+
|
|
238
|
+
* typo ([2f2e3fc](https://github.com/hatiolab/operato/commit/2f2e3fcce771dcbfe2f1d09cbd25638094a6dc99))
|
|
239
|
+
|
|
240
|
+
## [1.0.0-alpha.31](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.30...v1.0.0-alpha.31) (2022-03-19)
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
### :bug: Bug Fix
|
|
244
|
+
|
|
245
|
+
* ox-grist-renderer support class type renderer (refer ox-grist-renderer-progress) ([ad7c8e1](https://github.com/hatiolab/operato/commit/ad7c8e1b453d19af9daa13ae4eb7c2059d85dfbb))
|
|
246
|
+
|
|
247
|
+
## [1.0.0-alpha.30](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.29...v1.0.0-alpha.30) (2022-03-18)
|
|
248
|
+
|
|
249
|
+
## [1.0.0-alpha.29](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.28...v1.0.0-alpha.29) (2022-03-17)
|
|
250
|
+
|
|
251
|
+
## [1.0.0-alpha.28](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.26...v1.0.0-alpha.28) (2022-03-17)
|
|
252
|
+
|
|
253
|
+
## [1.0.0-alpha.26](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.25...v1.0.0-alpha.26) (2022-03-17)
|
|
254
|
+
|
|
255
|
+
## [1.0.0-alpha.25](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.24...v1.0.0-alpha.25) (2022-03-17)
|
|
256
|
+
|
|
257
|
+
## [1.0.0-alpha.24](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.23...v1.0.0-alpha.24) (2022-03-17)
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
### :bug: Bug Fix
|
|
261
|
+
|
|
262
|
+
* refactoring grist-editor, property-editor and input ([ea7431a](https://github.com/hatiolab/operato/commit/ea7431a5e2dfd96ef392c1905e9622df7c2ef88c))
|
|
263
|
+
|
|
264
|
+
## [1.0.0-alpha.23](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.22...v1.0.0-alpha.23) (2022-03-17)
|
|
265
|
+
|
|
266
|
+
## [1.0.0-alpha.22](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.21...v1.0.0-alpha.22) (2022-03-17)
|
|
267
|
+
|
|
268
|
+
## [1.0.0-alpha.21](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.20...v1.0.0-alpha.21) (2022-03-16)
|
|
269
|
+
|
|
270
|
+
## [1.0.0-alpha.20](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.19...v1.0.0-alpha.20) (2022-03-15)
|
|
271
|
+
|
|
272
|
+
## [1.0.0-alpha.19](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.18...v1.0.0-alpha.19) (2022-03-14)
|
|
273
|
+
|
|
274
|
+
## [1.0.0-alpha.18](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.17...v1.0.0-alpha.18) (2022-03-14)
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
### :bug: Bug Fix
|
|
278
|
+
|
|
279
|
+
* data-grist click eventhandler and thumbnail layout ([c232bbf](https://github.com/hatiolab/operato/commit/c232bbf3d6ca90b48cc4ddb0a5ddb839acb14cdb))
|
|
280
|
+
|
|
281
|
+
## [1.0.0-alpha.17](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.16...v1.0.0-alpha.17) (2022-03-13)
|
|
282
|
+
|
|
283
|
+
## [1.0.0-alpha.16](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.15...v1.0.0-alpha.16) (2022-03-13)
|
|
284
|
+
|
|
285
|
+
## [1.0.0-alpha.15](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.14...v1.0.0-alpha.15) (2022-03-13)
|
|
286
|
+
|
|
287
|
+
## [1.0.0-alpha.14](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.13...v1.0.0-alpha.14) (2022-03-13)
|
|
288
|
+
|
|
289
|
+
## [1.0.0-alpha.13](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.12...v1.0.0-alpha.13) (2022-03-13)
|
|
290
|
+
|
|
291
|
+
## [1.0.0-alpha.12](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.11...v1.0.0-alpha.12) (2022-03-13)
|
|
292
|
+
|
|
293
|
+
## [1.0.0-alpha.11](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.10...v1.0.0-alpha.11) (2022-03-12)
|
|
294
|
+
|
|
295
|
+
## [1.0.0-alpha.10](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.9...v1.0.0-alpha.10) (2022-03-12)
|
|
296
|
+
|
|
297
|
+
## [1.0.0-alpha.9](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.8...v1.0.0-alpha.9) (2022-03-12)
|
|
298
|
+
|
|
299
|
+
## [1.0.0-alpha.8](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.7...v1.0.0-alpha.8) (2022-03-11)
|
|
300
|
+
|
|
301
|
+
## [1.0.0-alpha.7](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.6...v1.0.0-alpha.7) (2022-03-11)
|
|
302
|
+
|
|
303
|
+
## [1.0.0-alpha.6](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.5...v1.0.0-alpha.6) (2022-03-11)
|
|
304
|
+
|
|
305
|
+
## [1.0.0-alpha.5](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.4...v1.0.0-alpha.5) (2022-03-11)
|
|
306
|
+
|
|
307
|
+
## [1.0.0-alpha.4](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.3...v1.0.0-alpha.4) (2022-03-11)
|
|
308
|
+
|
|
309
|
+
## [1.0.0-alpha.3](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.2...v1.0.0-alpha.3) (2022-03-10)
|
|
310
|
+
|
|
311
|
+
## [1.0.0-alpha.2](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.1...v1.0.0-alpha.2) (2022-03-10)
|
|
312
|
+
|
|
313
|
+
## [1.0.0-alpha.1](https://github.com/hatiolab/operato/compare/v0.4.3...v1.0.0-alpha.1) (2022-03-09)
|
|
314
|
+
|
|
315
|
+
|
|
316
|
+
### :rocket: New Features
|
|
317
|
+
|
|
318
|
+
* 1.0-alpha ([42f87cf](https://github.com/hatiolab/operato/commit/42f87cf6a3cef0381db91ecb1179e63c64c01370))
|
|
319
|
+
|
|
320
|
+
|
|
321
|
+
|
|
322
|
+
## [1.0.0-beta.5](https://github.com/hatiolab/operato/compare/v1.0.0-beta.4...v1.0.0-beta.5) (2022-04-18)
|
|
323
|
+
|
|
324
|
+
**Note:** Version bump only for package @operato/data-grist
|
|
325
|
+
|
|
326
|
+
|
|
327
|
+
|
|
328
|
+
|
|
329
|
+
|
|
330
|
+
## [1.0.0-beta.4](https://github.com/hatiolab/operato/compare/v1.0.0-beta.3...v1.0.0-beta.4) (2022-04-14)
|
|
331
|
+
|
|
332
|
+
|
|
333
|
+
### :rocket: New Features
|
|
334
|
+
|
|
335
|
+
* filter-input for like filters ([2680977](https://github.com/hatiolab/operato/commit/26809779b05f5a203c6b58668674dd68dca529d7))
|
|
336
|
+
* resource-object filter ([c70a727](https://github.com/hatiolab/operato/commit/c70a7270d9b28e51d78d3831bd2f563160d010ef))
|
|
337
|
+
* search for relation fields ([7dc99fd](https://github.com/hatiolab/operato/commit/7dc99fd6df1a96faab4f44ea65c3837934fabc5b))
|
|
338
|
+
|
|
339
|
+
|
|
340
|
+
|
|
341
|
+
## [1.0.0-beta.3](https://github.com/hatiolab/operato/compare/v1.0.0-beta.2...v1.0.0-beta.3) (2022-04-12)
|
|
342
|
+
|
|
343
|
+
**Note:** Version bump only for package @operato/data-grist
|
|
344
|
+
|
|
345
|
+
|
|
346
|
+
|
|
347
|
+
|
|
348
|
+
|
|
349
|
+
## [1.0.0-beta.2](https://github.com/hatiolab/operato/compare/v1.0.0-beta.1...v1.0.0-beta.2) (2022-04-12)
|
|
350
|
+
|
|
351
|
+
|
|
352
|
+
### :bug: Bug Fix
|
|
353
|
+
|
|
354
|
+
* firters-form input labeling ([896c42c](https://github.com/hatiolab/operato/commit/896c42c776705edc38807ad33aa42650ccd06db2))
|
|
355
|
+
|
|
356
|
+
|
|
357
|
+
|
|
6
358
|
## [1.0.0-beta.1](https://github.com/hatiolab/operato/compare/v1.0.0-beta.0...v1.0.0-beta.1) (2022-04-11)
|
|
7
359
|
|
|
8
360
|
**Note:** Version bump only for package @operato/data-grist
|
package/demo/index.html
CHANGED
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
<html lang="en-GB">
|
|
3
3
|
<head>
|
|
4
4
|
<meta charset="utf-8" />
|
|
5
|
-
<meta name="viewport" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
6
|
+
|
|
6
7
|
<style>
|
|
7
8
|
body {
|
|
8
9
|
/* box-sizing: border-box; */
|
|
@@ -95,6 +96,8 @@
|
|
|
95
96
|
: idx % 4 === 2
|
|
96
97
|
? `http://www.hatiolab.com/assets/img/thingsboard-30.png`
|
|
97
98
|
: `http://www.hatiolab.com/wrong-url.png` /* wrong source */,
|
|
99
|
+
file: 'abce.txt',
|
|
100
|
+
number: 100200300,
|
|
98
101
|
role: ['admin', 'worker', 'tester'][idx % 3],
|
|
99
102
|
color: idx % 2 ? `#87f018` : `#180f87`,
|
|
100
103
|
rate: Math.round(Math.random() * 100),
|
|
@@ -203,6 +206,15 @@
|
|
|
203
206
|
}
|
|
204
207
|
}
|
|
205
208
|
},
|
|
209
|
+
{
|
|
210
|
+
type: 'number',
|
|
211
|
+
name: 'number',
|
|
212
|
+
header: 'number',
|
|
213
|
+
record: {
|
|
214
|
+
format: '#,##0.0%'
|
|
215
|
+
},
|
|
216
|
+
width: 120
|
|
217
|
+
},
|
|
206
218
|
{
|
|
207
219
|
type: 'email',
|
|
208
220
|
name: 'email',
|
|
@@ -311,6 +323,20 @@
|
|
|
311
323
|
},
|
|
312
324
|
width: 200
|
|
313
325
|
},
|
|
326
|
+
{
|
|
327
|
+
type: 'file',
|
|
328
|
+
name: 'file',
|
|
329
|
+
header: 'file',
|
|
330
|
+
record: {
|
|
331
|
+
editable: true
|
|
332
|
+
},
|
|
333
|
+
handlers: {
|
|
334
|
+
click: () => {
|
|
335
|
+
console.log('thumbnail clicked...')
|
|
336
|
+
}
|
|
337
|
+
},
|
|
338
|
+
width: 200
|
|
339
|
+
},
|
|
314
340
|
{
|
|
315
341
|
type: 'datetime',
|
|
316
342
|
name: 'updatedAt',
|
|
@@ -412,7 +438,7 @@
|
|
|
412
438
|
.fetchHandler=${fetchHandler}
|
|
413
439
|
@filters-change=${e => console.log('changed', e.detail)}
|
|
414
440
|
>
|
|
415
|
-
<div
|
|
441
|
+
<div slot="headroom">
|
|
416
442
|
<ox-filters-form></ox-filters-form>
|
|
417
443
|
</div>
|
|
418
444
|
|
package/demo/report-test.html
CHANGED
|
@@ -15,13 +15,6 @@ export const buildColumn = (column) => {
|
|
|
15
15
|
renderer: () => header
|
|
16
16
|
};
|
|
17
17
|
}
|
|
18
|
-
else {
|
|
19
|
-
var { renderer: headerRenderer } = header || {};
|
|
20
|
-
compiled.header = {
|
|
21
|
-
...header
|
|
22
|
-
// renderer: getRenderer(headerRenderer)
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
18
|
/* label */
|
|
26
19
|
if (label) {
|
|
27
20
|
let type = typeof label;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"column-builder.js","sourceRoot":"","sources":["../../../src/configure/column-builder.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAA;AAC/B,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;AACtC,OAAO,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAA;AACjD,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAG1C,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,MAAW,EAAgB,EAAE;IACvD,IAAI,QAAQ,GAAiB,EAAE,GAAG,MAAM,EAAE,CAAA;IAE1C,IAAI,MAAM,CAAC,IAAI,IAAI,QAAQ,EAAE;QAC3B,QAAQ,GAAG,oBAAoB,CAAC,MAAM,CAAC,CAAA;KACxC;IAED,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,QAAQ,CAAA;IAEhE,YAAY;IAEZ,IAAI,OAAO,MAAM,IAAI,QAAQ,EAAE;QAC7B,QAAQ,CAAC,MAAM,GAAG;YAChB,QAAQ,EAAE,GAAG,EAAE,CAAC,MAAM;SACvB,CAAA;KACF;
|
|
1
|
+
{"version":3,"file":"column-builder.js","sourceRoot":"","sources":["../../../src/configure/column-builder.ts"],"names":[],"mappings":"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","sourcesContent":["import { FilterConfigObject, FilterOperator } from '..'\nimport { NOOP } from '../const'\nimport { getEditor } from '../editors'\nimport { generateGutterColumn } from '../gutters'\nimport { getGristEventHandler } from '../handlers'\nimport { getRenderer } from '../renderers'\nimport { ColumnConfig } from '../types'\n\nexport const buildColumn = (column: any): ColumnConfig => {\n var compiled: ColumnConfig = { ...column }\n\n if (column.type == 'gutter') {\n compiled = generateGutterColumn(column)\n }\n\n var { name, header, record, handlers, label, filter } = compiled\n\n /* header */\n\n if (typeof header == 'string') {\n compiled.header = {\n renderer: () => header\n }\n }\n\n /* label */\n if (label) {\n let type = typeof label\n switch (type) {\n case 'boolean':\n let title = typeof header == 'string' ? header : name\n compiled.label = {\n renderer: () => title\n }\n break\n case 'string':\n compiled.label = {\n renderer: () => label\n }\n break\n default:\n compiled.label = label\n }\n } else {\n compiled.label = false\n }\n\n /*\n * record\n */\n var { renderer: recordRenderer, editor, editable, classifier } = record || {}\n\n recordRenderer = getRenderer(recordRenderer || column.type)\n\n if (editable && typeof editor !== 'function') {\n editor = getEditor(column.type)\n }\n\n if (typeof classifier !== 'function') {\n classifier = NOOP\n }\n\n compiled.record = {\n ...record,\n classifier,\n renderer: recordRenderer,\n editor\n }\n\n /* filter */\n if (filter) {\n let type = typeof filter\n switch (type) {\n case 'boolean':\n compiled.filter = {\n type: column.type,\n operator: 'eq'\n }\n break\n case 'string':\n compiled.filter = {\n type: column.type,\n operator: filter as FilterOperator\n }\n break\n default:\n compiled.filter = {\n //@ts-ignore\n type: column.type,\n operator: 'eq',\n ...(filter as FilterConfigObject)\n }\n }\n }\n\n /* handler */\n var { click, dblclick } = handlers || {}\n\n compiled.handlers = {\n click: click && getGristEventHandler(click),\n dblclick: dblclick && getGristEventHandler(dblclick)\n }\n\n return compiled\n}\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ColumnConfig, GristRecord } from '../types';
|
|
2
1
|
import { LitElement, TemplateResult } from 'lit';
|
|
2
|
+
import { ColumnConfig, GristRecord } from '../types';
|
|
3
3
|
export declare class DataCardField extends LitElement {
|
|
4
4
|
static styles: import("lit").CSSResult[];
|
|
5
5
|
align?: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
|
-
import {
|
|
3
|
-
import { ZERO_COLUMN, ZERO_RECORD } from '../configure/zero-config';
|
|
2
|
+
import { css, html, LitElement } from 'lit';
|
|
4
3
|
import { customElement, property } from 'lit/decorators.js';
|
|
5
4
|
import { TooltipStyles } from '@operato/styles';
|
|
5
|
+
import { ZERO_COLUMN, ZERO_RECORD } from '../configure/zero-config';
|
|
6
6
|
let DataCardField = class DataCardField extends LitElement {
|
|
7
7
|
constructor() {
|
|
8
8
|
super(...arguments);
|
|
@@ -76,6 +76,7 @@ DataCardField.styles = [
|
|
|
76
76
|
text-transform: capitalize;
|
|
77
77
|
}
|
|
78
78
|
|
|
79
|
+
:host([name]) > span,
|
|
79
80
|
label + a {
|
|
80
81
|
display: block;
|
|
81
82
|
min-width: 100%;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-card-field.js","sourceRoot":"","sources":["../../../src/data-card/data-card-field.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"data-card-field.js","sourceRoot":"","sources":["../../../src/data-card/data-card-field.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,UAAU,EAAkB,MAAM,KAAK,CAAA;AAC3D,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAE3D,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAE/C,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAA;AAInE,IAAa,aAAa,GAA1B,MAAa,aAAc,SAAQ,UAAU;IAA7C;;QA2E8B,WAAM,GAAgB,WAAW,CAAA;QACjC,WAAM,GAAiB,WAAW,CAAA;QAClC,aAAQ,GAAW,CAAC,CAAC,CAAA;IAkBnD,CAAC;IAfC,MAAM;QACJ,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAI,CAAA;QAE9C,IAAI,EACF,KAAK,EACL,MAAM,EAAE,EAAE,QAAQ,EAAE,cAAc,EAAE,EACrC,GAAG,MAAM,CAAA;QAEV,IAAI,OAAO,KAAK,IAAI,QAAQ,EAAE;YAC5B,IAAI,EAAE,QAAQ,EAAE,aAAa,EAAE,GAAG,KAAK,CAAA;YACvC,OAAO,IAAI,CAAA,UAAU,aAAa,EAAE,WAAW,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,CAAC,EAAE,CAAA;SACvG;aAAM;YACL,OAAO,IAAI,CAAA,GAAG,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,CAAC,EAAE,CAAA;SACtE;IACH,CAAC;CACF,CAAA;AA9FQ,oBAAM,GAAG;IACd,aAAa;IACb,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAoEF;CACF,CAAA;AAE8B;IAA9B,QAAQ,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;4CAAe;AACjB;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;6CAAkC;AACjC;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;6CAAmC;AAClC;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;+CAAsB;AACrB;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;4CAAe;AA9E/B,aAAa;IADzB,aAAa,CAAC,eAAe,CAAC;GAClB,aAAa,CA+FzB;SA/FY,aAAa","sourcesContent":["import { css, html, LitElement, TemplateResult } from 'lit'\nimport { customElement, property } from 'lit/decorators.js'\n\nimport { TooltipStyles } from '@operato/styles'\n\nimport { ZERO_COLUMN, ZERO_RECORD } from '../configure/zero-config'\nimport { ColumnConfig, GristRecord } from '../types'\n\n@customElement('ox-card-field')\nexport class DataCardField extends LitElement {\n static styles = [\n TooltipStyles,\n css`\n :host {\n display: flex;\n align-items: center;\n justify-content: flex-start;\n position: relative;\n\n white-space: nowrap;\n\n font: inherit;\n }\n\n :host([thumbnail]) > * {\n object-fit: contain;\n max-width: 100%;\n max-height: 100%;\n }\n\n * {\n flex: 1;\n margin: 0;\n\n width: 100px;\n overflow: hidden;\n\n text-overflow: ellipsis;\n text-align: left;\n }\n\n *[center] {\n flex: none;\n margin: 0 auto;\n }\n\n :host([name]) {\n display: block;\n }\n\n :host([name]) label {\n display: block;\n font: var(--data-card-item-name-label-font);\n color: var(--data-card-item-name-label-color);\n }\n\n label {\n flex: none;\n width: 33%;\n padding-bottom: 2px;\n font: var(--data-card-item-etc-label-font);\n text-transform: capitalize;\n }\n\n :host([name]) > span,\n label + a {\n display: block;\n min-width: 100%;\n }\n\n input[type='checkbox'],\n input[type='radio'] {\n zoom: var(--grist-input-zoom);\n }\n\n @media only screen and (max-width: 460px) {\n *[center] {\n margin: initial;\n }\n }\n `\n ]\n\n @property({ attribute: true }) align?: string\n @property({ type: Object }) record: GristRecord = ZERO_RECORD\n @property({ type: Object }) column: ColumnConfig = ZERO_COLUMN\n @property({ type: Number }) rowIndex: number = -1\n @property({ type: Object }) value?: object\n\n render(): TemplateResult {\n var { value, column, record, rowIndex } = this\n\n var {\n label,\n record: { renderer: recordRenderer }\n } = column\n\n if (typeof label == 'object') {\n let { renderer: labelRenderer } = label\n return html`<label>${labelRenderer()}</label>${recordRenderer(value, column, record, rowIndex, this)}`\n } else {\n return html`${recordRenderer(value, column, record, rowIndex, this)}`\n }\n }\n}\n"]}
|
package/dist/src/data-grist.d.ts
CHANGED
|
@@ -2,12 +2,12 @@ import './data-grid/data-grid';
|
|
|
2
2
|
import './data-list/data-list';
|
|
3
3
|
import './data-card/data-card';
|
|
4
4
|
import './empty-note';
|
|
5
|
-
import { FetchHandler, FilterValue, GristConfig, GristData, GristRecord, GristSelectFunction, SortersConfig } from './types';
|
|
6
5
|
import { LitElement, PropertyValues } from 'lit';
|
|
7
6
|
import { DataCard } from './data-card/data-card';
|
|
8
7
|
import { DataConsumer } from './data-consumer';
|
|
9
8
|
import { DataGrid } from './data-grid/data-grid';
|
|
10
9
|
import { DataList } from './data-list/data-list';
|
|
10
|
+
import { FetchHandler, FilterValue, GristConfig, GristData, GristRecord, GristSelectFunction, SortersConfig } from './types';
|
|
11
11
|
export declare class DataGrist extends LitElement implements DataConsumer {
|
|
12
12
|
static styles: import("lit").CSSResult[];
|
|
13
13
|
mode: 'GRID' | 'LIST' | 'CARD';
|
package/dist/src/data-grist.js
CHANGED
|
@@ -3,18 +3,18 @@ import './data-grid/data-grid';
|
|
|
3
3
|
import './data-list/data-list';
|
|
4
4
|
import './data-card/data-card';
|
|
5
5
|
import './empty-note';
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import { SnapshotTaker, TimeCapsule } from '@operato/utils';
|
|
9
|
-
import { ZERO_CONFIG, ZERO_DATA, ZERO_PAGINATION } from './configure/zero-config';
|
|
6
|
+
import json5 from 'json5';
|
|
7
|
+
import { css, html, LitElement } from 'lit';
|
|
10
8
|
import { customElement, property, query, queryAsync, state } from 'lit/decorators.js';
|
|
11
|
-
import { DataProvider } from './data-provider';
|
|
12
|
-
import Headroom from '@operato/headroom';
|
|
13
|
-
import { buildConfig } from './configure/config-builder';
|
|
14
9
|
import isEmpty from 'lodash-es/isEmpty';
|
|
15
10
|
import isEqual from 'lodash-es/isEqual';
|
|
16
|
-
import
|
|
11
|
+
import Headroom from '@operato/headroom';
|
|
17
12
|
import { pulltorefresh } from '@operato/pull-to-refresh';
|
|
13
|
+
import { HeadroomStyles, ScrollbarStyles, SpinnerStyles } from '@operato/styles';
|
|
14
|
+
import { SnapshotTaker, TimeCapsule } from '@operato/utils';
|
|
15
|
+
import { buildConfig } from './configure/config-builder';
|
|
16
|
+
import { ZERO_CONFIG, ZERO_DATA, ZERO_PAGINATION } from './configure/zero-config';
|
|
17
|
+
import { DataProvider } from './data-provider';
|
|
18
18
|
let DataGrist = class DataGrist extends LitElement {
|
|
19
19
|
constructor() {
|
|
20
20
|
super(...arguments);
|