@operato/data-grist 1.0.0-beta.3 → 1.0.0-beta.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (157) hide show
  1. package/.storybook/main.js +3 -0
  2. package/.storybook/server.mjs +8 -0
  3. package/CHANGELOG.md +524 -0
  4. package/demo/data-grist-test.html +1 -1
  5. package/demo/index.html +31 -4
  6. package/demo/report-test.html +1 -1
  7. package/dist/src/configure/zero-config.d.ts +2 -0
  8. package/dist/src/configure/zero-config.js +3 -1
  9. package/dist/src/configure/zero-config.js.map +1 -1
  10. package/dist/src/data-card/data-card-field.d.ts +1 -1
  11. package/dist/src/data-card/data-card-field.js +3 -2
  12. package/dist/src/data-card/data-card-field.js.map +1 -1
  13. package/dist/src/data-card/data-card.js +1 -0
  14. package/dist/src/data-card/data-card.js.map +1 -1
  15. package/dist/src/data-grid/data-grid-body.d.ts +4 -2
  16. package/dist/src/data-grid/data-grid-body.js +74 -40
  17. package/dist/src/data-grid/data-grid-body.js.map +1 -1
  18. package/dist/src/data-grid/data-grid-field.d.ts +1 -1
  19. package/dist/src/data-grid/data-grid-field.js +1 -1
  20. package/dist/src/data-grid/data-grid-field.js.map +1 -1
  21. package/dist/src/data-grid/data-grid-footer.d.ts +2 -2
  22. package/dist/src/data-grid/data-grid-footer.js +9 -10
  23. package/dist/src/data-grid/data-grid-footer.js.map +1 -1
  24. package/dist/src/data-grid/data-grid-header.d.ts +4 -6
  25. package/dist/src/data-grid/data-grid-header.js +18 -41
  26. package/dist/src/data-grid/data-grid-header.js.map +1 -1
  27. package/dist/src/data-grid/data-grid.d.ts +2 -2
  28. package/dist/src/data-grid/data-grid.js +4 -3
  29. package/dist/src/data-grid/data-grid.js.map +1 -1
  30. package/dist/src/data-grid/event-handlers/data-grid-body-click-handler.js +9 -11
  31. package/dist/src/data-grid/event-handlers/data-grid-body-click-handler.js.map +1 -1
  32. package/dist/src/data-grist.d.ts +6 -5
  33. package/dist/src/data-grist.js +148 -119
  34. package/dist/src/data-grist.js.map +1 -1
  35. package/dist/src/data-list/record-partial.js +1 -1
  36. package/dist/src/data-list/record-partial.js.map +1 -1
  37. package/dist/src/data-manipulator.d.ts +4 -1
  38. package/dist/src/data-manipulator.js +12 -0
  39. package/dist/src/data-manipulator.js.map +1 -1
  40. package/dist/src/data-provider.d.ts +4 -6
  41. package/dist/src/data-provider.js +12 -23
  42. package/dist/src/data-provider.js.map +1 -1
  43. package/dist/src/data-report/data-report-header.js +4 -4
  44. package/dist/src/data-report/data-report-header.js.map +1 -1
  45. package/dist/src/editors/ox-grist-editor-file.d.ts +5 -0
  46. package/dist/src/editors/ox-grist-editor-file.js +18 -0
  47. package/dist/src/editors/ox-grist-editor-file.js.map +1 -0
  48. package/dist/src/editors/registry.js +3 -1
  49. package/dist/src/editors/registry.js.map +1 -1
  50. package/dist/src/filters/filter-checkbox.d.ts +1 -1
  51. package/dist/src/filters/filter-checkbox.js.map +1 -1
  52. package/dist/src/filters/filter-input-barcode.d.ts +3 -0
  53. package/dist/src/filters/filter-input-barcode.js +24 -0
  54. package/dist/src/filters/filter-input-barcode.js.map +1 -0
  55. package/dist/src/filters/filter-input.js +4 -4
  56. package/dist/src/filters/filter-input.js.map +1 -1
  57. package/dist/src/filters/filter-styles.js +65 -17
  58. package/dist/src/filters/filter-styles.js.map +1 -1
  59. package/dist/src/filters/filters-form.js +28 -10
  60. package/dist/src/filters/filters-form.js.map +1 -1
  61. package/dist/src/filters/registry.d.ts +1 -1
  62. package/dist/src/filters/registry.js +10 -7
  63. package/dist/src/filters/registry.js.map +1 -1
  64. package/dist/src/gutters/gutter-dirty.d.ts +4 -1
  65. package/dist/src/gutters/gutter-dirty.js +16 -2
  66. package/dist/src/gutters/gutter-dirty.js.map +1 -1
  67. package/dist/src/gutters/gutter-sequence.js +14 -0
  68. package/dist/src/gutters/gutter-sequence.js.map +1 -1
  69. package/dist/src/record-view/event-handlers/record-view-body-click-handler.js +2 -4
  70. package/dist/src/record-view/event-handlers/record-view-body-click-handler.js.map +1 -1
  71. package/dist/src/record-view/event-handlers/record-view-body-keydown-handler.js +2 -2
  72. package/dist/src/record-view/event-handlers/record-view-body-keydown-handler.js.map +1 -1
  73. package/dist/src/record-view/record-creator.js +0 -2
  74. package/dist/src/record-view/record-creator.js.map +1 -1
  75. package/dist/src/record-view/record-view-body.d.ts +0 -1
  76. package/dist/src/record-view/record-view-body.js +0 -5
  77. package/dist/src/record-view/record-view-body.js.map +1 -1
  78. package/dist/src/record-view/record-view.d.ts +0 -1
  79. package/dist/src/record-view/record-view.js +1 -10
  80. package/dist/src/record-view/record-view.js.map +1 -1
  81. package/dist/src/renderers/index.d.ts +1 -0
  82. package/dist/src/renderers/index.js +1 -0
  83. package/dist/src/renderers/index.js.map +1 -1
  84. package/dist/src/renderers/ox-grist-renderer-file.d.ts +2 -0
  85. package/dist/src/renderers/ox-grist-renderer-file.js +15 -0
  86. package/dist/src/renderers/ox-grist-renderer-file.js.map +1 -0
  87. package/dist/src/renderers/ox-grist-renderer-text.js +6 -2
  88. package/dist/src/renderers/ox-grist-renderer-text.js.map +1 -1
  89. package/dist/src/renderers/registry.js +2 -0
  90. package/dist/src/renderers/registry.js.map +1 -1
  91. package/dist/src/sorters/sorters-control.d.ts +1 -1
  92. package/dist/src/sorters/sorters-control.js +4 -6
  93. package/dist/src/sorters/sorters-control.js.map +1 -1
  94. package/dist/src/types.d.ts +5 -2
  95. package/dist/src/types.js.map +1 -1
  96. package/dist/stories/barcode-input-filter.stories.d.ts +20 -0
  97. package/dist/stories/barcode-input-filter.stories.js +188 -0
  98. package/dist/stories/barcode-input-filter.stories.js.map +1 -0
  99. package/dist/stories/default-filters.stories.d.ts +20 -0
  100. package/dist/stories/default-filters.stories.js +187 -0
  101. package/dist/stories/default-filters.stories.js.map +1 -0
  102. package/dist/stories/empty-sorters.stories.d.ts +20 -0
  103. package/dist/stories/empty-sorters.stories.js +180 -0
  104. package/dist/stories/empty-sorters.stories.js.map +1 -0
  105. package/dist/stories/explicit-fetch.stories.d.ts +25 -0
  106. package/dist/stories/explicit-fetch.stories.js +186 -0
  107. package/dist/stories/explicit-fetch.stories.js.map +1 -0
  108. package/dist/stories/{index.stories.d.ts → grist-modes.stories.d.ts} +14 -11
  109. package/dist/stories/grist-modes.stories.js +445 -0
  110. package/dist/stories/grist-modes.stories.js.map +1 -0
  111. package/dist/tsconfig.tsbuildinfo +1 -1
  112. package/package.json +9 -9
  113. package/src/configure/zero-config.ts +4 -1
  114. package/src/data-card/data-card-field.ts +5 -3
  115. package/src/data-card/data-card.ts +1 -0
  116. package/src/data-grid/data-grid-body.ts +96 -49
  117. package/src/data-grid/data-grid-field.ts +3 -2
  118. package/src/data-grid/data-grid-footer.ts +8 -9
  119. package/src/data-grid/data-grid-header.ts +16 -40
  120. package/src/data-grid/data-grid.ts +8 -6
  121. package/src/data-grid/event-handlers/data-grid-body-click-handler.ts +11 -13
  122. package/src/data-grist.ts +180 -147
  123. package/src/data-list/record-partial.ts +1 -1
  124. package/src/data-manipulator.ts +12 -1
  125. package/src/data-provider.ts +13 -29
  126. package/src/data-report/data-report-header.ts +5 -5
  127. package/src/editors/ox-grist-editor-file.ts +16 -0
  128. package/src/editors/registry.ts +4 -3
  129. package/src/filters/filter-checkbox.ts +2 -2
  130. package/src/filters/filter-input-barcode.ts +30 -0
  131. package/src/filters/filter-input.ts +4 -3
  132. package/src/filters/filter-styles.ts +65 -17
  133. package/src/filters/filters-form.ts +33 -10
  134. package/src/filters/registry.ts +11 -8
  135. package/src/gutters/gutter-dirty.ts +20 -3
  136. package/src/gutters/gutter-sequence.ts +17 -2
  137. package/src/record-view/event-handlers/record-view-body-click-handler.ts +2 -4
  138. package/src/record-view/event-handlers/record-view-body-keydown-handler.ts +2 -2
  139. package/src/record-view/record-creator.ts +0 -2
  140. package/src/record-view/record-view-body.ts +0 -2
  141. package/src/record-view/record-view.ts +1 -7
  142. package/src/renderers/index.ts +1 -0
  143. package/src/renderers/ox-grist-renderer-file.ts +17 -0
  144. package/src/renderers/ox-grist-renderer-text.ts +8 -2
  145. package/src/renderers/registry.ts +6 -5
  146. package/src/sorters/sorters-control.ts +5 -8
  147. package/src/types.ts +5 -2
  148. package/stories/barcode-input-filter.stories.ts +205 -0
  149. package/stories/default-filters.stories.ts +204 -0
  150. package/stories/empty-sorters.stories.ts +197 -0
  151. package/stories/explicit-fetch.stories.ts +205 -0
  152. package/stories/grist-modes.stories.ts +485 -0
  153. package/themes/form-theme.css +75 -0
  154. package/themes/grist-theme.css +1 -1
  155. package/dist/stories/index.stories.js +0 -33
  156. package/dist/stories/index.stories.js.map +0 -1
  157. package/stories/index.stories.ts +0 -52
@@ -0,0 +1,3 @@
1
+ module.exports = {
2
+ stories: ['../dist/stories/**/*.stories.{js,md,mdx}'],
3
+ };
@@ -0,0 +1,8 @@
1
+ import { storybookPlugin } from '@web/dev-server-storybook';
2
+ import baseConfig from '../web-dev-server.config.mjs';
3
+
4
+ export default /** @type {import('@web/dev-server').DevServerConfig} */ ({
5
+ ...baseConfig,
6
+ open: '/',
7
+ plugins: [storybookPlugin({ type: 'web-components' }), ...baseConfig.plugins],
8
+ });
package/CHANGELOG.md CHANGED
@@ -3,6 +3,530 @@
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.32](https://github.com/hatiolab/operato/compare/v1.0.0-beta.31...v1.0.0-beta.32) (2022-06-15)
7
+
8
+ **Note:** Version bump only for package @operato/data-grist
9
+
10
+
11
+
12
+
13
+
14
+ ## [1.0.0-beta.31](https://github.com/hatiolab/operato/compare/v1.0.0-beta.30...v1.0.0-beta.31) (2022-06-15)
15
+
16
+ **Note:** Version bump only for package @operato/data-grist
17
+
18
+
19
+
20
+
21
+
22
+ ## [1.0.0-beta.30](https://github.com/hatiolab/operato/compare/v1.0.0-beta.29...v1.0.0-beta.30) (2022-06-13)
23
+
24
+ **Note:** Version bump only for package @operato/data-grist
25
+
26
+
27
+
28
+
29
+
30
+ ## [1.0.0-beta.29](https://github.com/hatiolab/operato/compare/v1.0.0-beta.28...v1.0.0-beta.29) (2022-06-10)
31
+
32
+
33
+ ### :rocket: New Features
34
+
35
+ * support 'barcode' type for filters-form in data-grist ([79f8e84](https://github.com/hatiolab/operato/commit/79f8e84151537ee9b27351a75de2c6bdf8049c91))
36
+
37
+
38
+
39
+ ## [1.0.0-beta.28](https://github.com/hatiolab/operato/compare/v1.0.0-beta.27...v1.0.0-beta.28) (2022-06-10)
40
+
41
+ **Note:** Version bump only for package @operato/data-grist
42
+
43
+
44
+
45
+
46
+
47
+ ## [1.0.0-beta.27](https://github.com/hatiolab/operato/compare/v1.0.0-beta.26...v1.0.0-beta.27) (2022-06-09)
48
+
49
+ **Note:** Version bump only for package @operato/data-grist
50
+
51
+
52
+
53
+
54
+
55
+ ## [1.0.0-beta.26](https://github.com/hatiolab/operato/compare/v1.0.0-beta.25...v1.0.0-beta.26) (2022-06-04)
56
+
57
+
58
+ ### :bug: Bug Fix
59
+
60
+ * filter style ([ca88aeb](https://github.com/hatiolab/operato/commit/ca88aebb5784b65fadb0405e8331927ef9424298))
61
+ * remove empty valued filters from data-grist default filters ([4a23485](https://github.com/hatiolab/operato/commit/4a2348525bdee4e1cd43abad469ad9451e6d7f5d))
62
+
63
+
64
+
65
+ ## [1.0.0-beta.25](https://github.com/hatiolab/operato/compare/v1.0.0-beta.24...v1.0.0-beta.25) (2022-06-02)
66
+
67
+
68
+ ### :bug: Bug Fix
69
+
70
+ * stories title for data-grist ([ebf4f7e](https://github.com/hatiolab/operato/commit/ebf4f7e946b5fee08be050edb632e48ec4f0ac15))
71
+ * support empty sorters for data-grist config ([c4dfd49](https://github.com/hatiolab/operato/commit/c4dfd491a09877dd7fcf008dbec52c018a260318))
72
+
73
+
74
+
75
+ ## [1.0.0-beta.24](https://github.com/hatiolab/operato/compare/v1.0.0-beta.23...v1.0.0-beta.24) (2022-06-02)
76
+
77
+
78
+ ### :bug: Bug Fix
79
+
80
+ * auto-fetch => explicit-fetch for data-grist ([68ee7e8](https://github.com/hatiolab/operato/commit/68ee7e8876e3151fac4c4462ce244e2d08325824))
81
+ * synchronization between filters-form and grid-header ([5a475ea](https://github.com/hatiolab/operato/commit/5a475ea15879984674bdcecea993cc5f38f5de8d))
82
+
83
+
84
+
85
+ ## [1.0.0-beta.23](https://github.com/hatiolab/operato/compare/v1.0.0-beta.22...v1.0.0-beta.23) (2022-06-02)
86
+
87
+
88
+ ### :bug: Bug Fix
89
+
90
+ * filters initial options, auto-fetch attribute ([3819643](https://github.com/hatiolab/operato/commit/381964390a544ec8949bc793fa9fd2309310734c))
91
+ * grid margin style ([2c19634](https://github.com/hatiolab/operato/commit/2c19634d97f4ad06e95c776b22b03a212af40b9a))
92
+
93
+
94
+
95
+ ## [1.0.0-beta.22](https://github.com/hatiolab/operato/compare/v1.0.0-beta.21...v1.0.0-beta.22) (2022-05-31)
96
+
97
+
98
+ ### :bug: Bug Fix
99
+
100
+ * grid click handler, crontab clear button, ox-input-key-values ([16079b9](https://github.com/hatiolab/operato/commit/16079b94fef2860627aded1888960f3e7e1bf418))
101
+
102
+
103
+
104
+ ## [1.0.0-beta.21](https://github.com/hatiolab/operato/compare/v1.0.0-beta.20...v1.0.0-beta.21) (2022-05-31)
105
+
106
+ **Note:** Version bump only for package @operato/data-grist
107
+
108
+
109
+
110
+
111
+
112
+ ## [1.0.0-beta.20](https://github.com/hatiolab/operato/compare/v1.0.0-beta.19...v1.0.0-beta.20) (2022-05-30)
113
+
114
+ **Note:** Version bump only for package @operato/data-grist
115
+
116
+
117
+
118
+
119
+
120
+ ## [1.0.0-beta.19](https://github.com/hatiolab/operato/compare/v1.0.0-beta.18...v1.0.0-beta.19) (2022-05-29)
121
+
122
+ **Note:** Version bump only for package @operato/data-grist
123
+
124
+
125
+
126
+
127
+
128
+ ## [1.0.0-beta.18](https://github.com/hatiolab/operato/compare/v1.0.0-beta.17...v1.0.0-beta.18) (2022-05-27)
129
+
130
+
131
+ ### :bug: Bug Fix
132
+
133
+ * data-grist url-params-sensitive ([d1dfb76](https://github.com/hatiolab/operato/commit/d1dfb7659d33d9e5d038d64c61f4324db4e5c033))
134
+ * data-list checkbox zoom style ([1f4cadd](https://github.com/hatiolab/operato/commit/1f4cadd1e4b7ce910c7854ede93ce13237c063c2))
135
+ * data-provider attach ([5a14892](https://github.com/hatiolab/operato/commit/5a148922f94371faaf5cc80467d097ceedee8035))
136
+ * pagination limit for data-grist ([a1dad87](https://github.com/hatiolab/operato/commit/a1dad87289f26d2f69b6831bcb601e5e9938aef1))
137
+
138
+
139
+
140
+ ## [1.0.0-beta.17](https://github.com/hatiolab/operato/compare/v1.0.0-beta.16...v1.0.0-beta.17) (2022-05-25)
141
+
142
+
143
+ ### :bug: Bug Fix
144
+
145
+ * data-grist copy/paste a row ([35fcaef](https://github.com/hatiolab/operato/commit/35fcaefc82aaa6567efd029dd72622909a4b71cf))
146
+
147
+
148
+
149
+ ## [1.0.0-beta.16](https://github.com/hatiolab/operato/compare/v1.0.0-beta.15...v1.0.0-beta.16) (2022-05-23)
150
+
151
+
152
+ ### :bug: Bug Fix
153
+
154
+ * card layout flex ([dabe5c0](https://github.com/hatiolab/operato/commit/dabe5c01b6525b40587c7318938a73ddc4f8d2a4))
155
+ * data-card layout ([dd87d94](https://github.com/hatiolab/operato/commit/dd87d94aef90b7ee607961a4b76b5b47b6192bed))
156
+
157
+
158
+
159
+ ## [1.0.0-beta.15](https://github.com/hatiolab/operato/compare/v1.0.0-beta.14...v1.0.0-beta.15) (2022-05-20)
160
+
161
+
162
+ ### :bug: Bug Fix
163
+
164
+ * data-grist copy & paste ([bec2cbc](https://github.com/hatiolab/operato/commit/bec2cbcc1bee615abd97e16eb33563c08bfd6b57))
165
+ * data-grist filters and sorters change handling ([5407c5f](https://github.com/hatiolab/operato/commit/5407c5fea02316b1a0525f3ee4721bde7227bbb6))
166
+ * data-grist filters sorters behavior ([6d50455](https://github.com/hatiolab/operato/commit/6d5045586d35e0becbde1f7a13c9a171400447c1))
167
+ * story for data-grist ([623dab4](https://github.com/hatiolab/operato/commit/623dab450683ffafdbdafd8bc4190d4969eef675))
168
+
169
+
170
+
171
+ ## [1.0.0-beta.14](https://github.com/hatiolab/operato/compare/v1.0.0-beta.13...v1.0.0-beta.14) (2022-05-19)
172
+
173
+ **Note:** Version bump only for package @operato/data-grist
174
+
175
+
176
+
177
+
178
+
179
+ ## [1.0.0-beta.13](https://github.com/hatiolab/operato/compare/v1.0.0-beta.12...v1.0.0-beta.13) (2022-05-19)
180
+
181
+
182
+ ### :rocket: New Features
183
+
184
+ * add ox-input-unit ([06f5f56](https://github.com/hatiolab/operato/commit/06f5f56fa0dd56fed973b399ac4dc42a383c8ad4))
185
+
186
+
187
+ ### :bug: Bug Fix
188
+
189
+ * grist copy-paste ([e60b29d](https://github.com/hatiolab/operato/commit/e60b29db5007c10b5df5ea31ffc95ce39d34f49c))
190
+ * record-view ([ffcb397](https://github.com/hatiolab/operato/commit/ffcb397748efb64ce4e515f733b50f088ea1a093))
191
+ * storybook for data-grist ([ae0ad52](https://github.com/hatiolab/operato/commit/ae0ad52d642454c70a4e27f262b8811f7e53f420))
192
+
193
+
194
+
195
+ ## [1.0.0-beta.12](https://github.com/hatiolab/operato/compare/v1.0.0-beta.11...v1.0.0-beta.12) (2022-05-13)
196
+
197
+
198
+ ### :rocket: New Features
199
+
200
+ * storybook started ([90c08c9](https://github.com/hatiolab/operato/commit/90c08c9a15e5fe554baaa1becca07793e8434799))
201
+
202
+
203
+
204
+ ## [1.0.0-beta.11](https://github.com/hatiolab/operato/compare/v1.0.0-beta.10...v1.0.0-beta.11) (2022-05-01)
205
+
206
+
207
+ ### :rocket: New Features
208
+
209
+ * separated filter-form from data-grist ([21e27f7](https://github.com/hatiolab/operato/commit/21e27f74d3e66d782da4aa75801c39a037627f62))
210
+
211
+
212
+ ### :bug: Bug Fix
213
+
214
+ * data card equal width style ([ad5f453](https://github.com/hatiolab/operato/commit/ad5f45349634005501ee21e1ae0e7b0fd3f97126))
215
+ * filters-form style ([e32b875](https://github.com/hatiolab/operato/commit/e32b8759dddad7be2b7f9dae0fd257064eb31043))
216
+
217
+
218
+
219
+ ## [1.0.0-beta.10](https://github.com/hatiolab/operato/compare/v1.0.0-beta.9...v1.0.0-beta.10) (2022-04-28)
220
+
221
+
222
+ ### :rocket: New Features
223
+
224
+ * add format option for text-renderer ([c58375b](https://github.com/hatiolab/operato/commit/c58375b05fb69db03a9081c41ea4ff11437834b1))
225
+
226
+
227
+
228
+ ## [1.0.0-beta.9](https://github.com/hatiolab/operato/compare/v1.0.0-beta.8...v1.0.0-beta.9) (2022-04-28)
229
+
230
+
231
+ ### :bug: Bug Fix
232
+
233
+ * filter form style ([8cd098e](https://github.com/hatiolab/operato/commit/8cd098e0816f2c715ced3a4ff031caa5af3831ef))
234
+ * filter-style ([8d4ccfa](https://github.com/hatiolab/operato/commit/8d4ccfad7e1710b4f0ca9b617872ea5901880238))
235
+ * search value for filters-form ([a3a0ed5](https://github.com/hatiolab/operato/commit/a3a0ed59a924a1b13f304705a27137af98638bd0))
236
+
237
+
238
+
239
+ ## [1.0.0-beta.8](https://github.com/hatiolab/operato/compare/v1.0.0-beta.7...v1.0.0-beta.8) (2022-04-27)
240
+
241
+
242
+ ### :bug: Bug Fix
243
+
244
+ * filters-form style ([b02c530](https://github.com/hatiolab/operato/commit/b02c530fc7e106c42f0f87d1b62f3707063e03ca))
245
+
246
+
247
+
248
+ ## [1.0.0-beta.7](https://github.com/hatiolab/operato/compare/v1.0.0-beta.6...v1.0.0-beta.7) (2022-04-24)
249
+
250
+ **Note:** Version bump only for package @operato/data-grist
251
+
252
+
253
+
254
+
255
+
256
+ ## [1.0.0-beta.6](https://github.com/hatiolab/operato/compare/v0.4.5...v1.0.0-beta.6) (2022-04-22)
257
+
258
+
259
+ ### :rocket: New Features
260
+
261
+ * ox-grist-editor-file ([2b64b2f](https://github.com/hatiolab/operato/commit/2b64b2fe3637d6e4ef2b02c5fd9a9986ae49e57f))
262
+
263
+ ## [1.0.0-beta.5](https://github.com/hatiolab/operato/compare/v1.0.0-beta.4...v1.0.0-beta.5) (2022-04-18)
264
+
265
+ ## [1.0.0-beta.4](https://github.com/hatiolab/operato/compare/v1.0.0-beta.3...v1.0.0-beta.4) (2022-04-14)
266
+
267
+
268
+ ### :rocket: New Features
269
+
270
+ * filter-input for like filters ([2680977](https://github.com/hatiolab/operato/commit/26809779b05f5a203c6b58668674dd68dca529d7))
271
+ * resource-object filter ([c70a727](https://github.com/hatiolab/operato/commit/c70a7270d9b28e51d78d3831bd2f563160d010ef))
272
+ * search for relation fields ([7dc99fd](https://github.com/hatiolab/operato/commit/7dc99fd6df1a96faab4f44ea65c3837934fabc5b))
273
+
274
+ ## [1.0.0-beta.3](https://github.com/hatiolab/operato/compare/v1.0.0-beta.2...v1.0.0-beta.3) (2022-04-12)
275
+
276
+ ## [1.0.0-beta.2](https://github.com/hatiolab/operato/compare/v1.0.0-beta.1...v1.0.0-beta.2) (2022-04-12)
277
+
278
+
279
+ ### :bug: Bug Fix
280
+
281
+ * firters-form input labeling ([896c42c](https://github.com/hatiolab/operato/commit/896c42c776705edc38807ad33aa42650ccd06db2))
282
+
283
+ ## [1.0.0-beta.1](https://github.com/hatiolab/operato/compare/v1.0.0-beta.0...v1.0.0-beta.1) (2022-04-11)
284
+
285
+ ## [1.0.0-beta.0](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.53...v1.0.0-beta.0) (2022-04-10)
286
+
287
+
288
+ ### :bug: Bug Fix
289
+
290
+ * default operator for data-grist filter configuration ([8ff0d35](https://github.com/hatiolab/operato/commit/8ff0d35bc5e9cab748ef3a014e710ab4fe62d8e9))
291
+
292
+
293
+ ### :rocket: New Features
294
+
295
+ * support undo/redo for data-grist ([b7e6c1f](https://github.com/hatiolab/operato/commit/b7e6c1fb47910a3fc3acb0352472ad19cf4e13d2))
296
+
297
+ ## [1.0.0-alpha.53](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.52...v1.0.0-alpha.53) (2022-04-08)
298
+
299
+ ## [1.0.0-alpha.52](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.51...v1.0.0-alpha.52) (2022-04-08)
300
+
301
+
302
+ ### :bug: Bug Fix
303
+
304
+ * change-sorters event handler for data-grist ([5e7c582](https://github.com/hatiolab/operato/commit/5e7c582cc46db791aaa6f16a1203c6731617a4da))
305
+ * made filter configuration type overidable ([d4ebf8f](https://github.com/hatiolab/operato/commit/d4ebf8f90af99372b8dcebc203842163fa850c09))
306
+ * update data-provider ([dadfc1c](https://github.com/hatiolab/operato/commit/dadfc1ca3708b54e5414e28bb721324052830de9))
307
+
308
+ ## [1.0.0-alpha.51](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.50...v1.0.0-alpha.51) (2022-04-05)
309
+
310
+ ## [1.0.0-alpha.50](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.49...v1.0.0-alpha.50) (2022-04-04)
311
+
312
+ ## [1.0.0-alpha.49](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.48...v1.0.0-alpha.49) (2022-04-04)
313
+
314
+
315
+ ### :bug: Bug Fix
316
+
317
+ * lit@2.2.1 ([6707752](https://github.com/hatiolab/operato/commit/6707752907d24f7ecbe248cba18a4b18cfda282f))
318
+
319
+ ## [1.0.0-alpha.48](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.47...v1.0.0-alpha.48) (2022-04-03)
320
+
321
+
322
+ ### :bug: Bug Fix
323
+
324
+ * event handling for clicking magnify icon in filters-form - fetch data forcely ([cc17a05](https://github.com/hatiolab/operato/commit/cc17a056807a6e5018ee89d1f6be91e463671bac))
325
+
326
+
327
+ ### :rocket: New Features
328
+
329
+ * support copy and paste in data-grid ([9dd686f](https://github.com/hatiolab/operato/commit/9dd686f6817500863a1c36140ef01b39fcafef9f))
330
+ * support data-grist block selection ([b9238ae](https://github.com/hatiolab/operato/commit/b9238ae7848b9824466b2ce843d56d3eac789104))
331
+ * support data-grist block selection ([537577a](https://github.com/hatiolab/operato/commit/537577a160abc0aa0d9df4374eca0ddcadf0bd7f))
332
+
333
+ ## [1.0.0-alpha.47](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.46...v1.0.0-alpha.47) (2022-04-02)
334
+
335
+ ## [1.0.0-alpha.46](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.45...v1.0.0-alpha.46) (2022-04-02)
336
+
337
+ ## [1.0.0-alpha.45](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.44...v1.0.0-alpha.45) (2022-03-31)
338
+
339
+ ## [1.0.0-alpha.44](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.43...v1.0.0-alpha.44) (2022-03-31)
340
+
341
+
342
+ ### :rocket: New Features
343
+
344
+ * select member method for ox-grist ([e18bca1](https://github.com/hatiolab/operato/commit/e18bca1756fc78acdff7c820d4b350f05cb7114f))
345
+
346
+ ## [1.0.0-alpha.43](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.42...v1.0.0-alpha.43) (2022-03-30)
347
+
348
+
349
+ ### :rocket: New Features
350
+
351
+ * url-params-sensitive property for data-grist ([25de73e](https://github.com/hatiolab/operato/commit/25de73e0b4498fb301d0d94e420c7acbbd70856f))
352
+
353
+
354
+ ### :bug: Bug Fix
355
+
356
+ * filters-change event handling in data-grist ([8e03e4c](https://github.com/hatiolab/operato/commit/8e03e4cbcb837102d4df8a803b2b20a30b67271e))
357
+ * ox-grist-renderer-color ([2554cfa](https://github.com/hatiolab/operato/commit/2554cfad505e22798448426177c2da4ff9e7dba6))
358
+
359
+ ## [1.0.0-alpha.42](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.41...v1.0.0-alpha.42) (2022-03-29)
360
+
361
+
362
+ ### :bug: Bug Fix
363
+
364
+ * data-grist sorters, filters ([960830a](https://github.com/hatiolab/operato/commit/960830ab877ada67cf8701fce7aa1740ec83bcc2))
365
+ * filter-select in data-grid-header ([61e2aa0](https://github.com/hatiolab/operato/commit/61e2aa060e41f61bef9ebc7d5890f84632ee73bf))
366
+
367
+
368
+ ### :rocket: New Features
369
+
370
+ * add filters and sorters property in grist ([099757f](https://github.com/hatiolab/operato/commit/099757fd211411795120ed4c2fa9e23e8e2d398a))
371
+ * url-params-sensitive property for data-grist ([8bae25f](https://github.com/hatiolab/operato/commit/8bae25f210c0185f0b307dbda4797b568231618a))
372
+ * url-params-sensitive property for data-grist ([32523c0](https://github.com/hatiolab/operato/commit/32523c0ec4e69c603317c6a05eba0c0338663886))
373
+
374
+ ## [1.0.0-alpha.41](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.40...v1.0.0-alpha.41) (2022-03-27)
375
+
376
+
377
+ ### :rocket: New Features
378
+
379
+ * grid-header filter integrated with filters-form ([ebecb71](https://github.com/hatiolab/operato/commit/ebecb71133d38bb8358909660319de6cb5b45d7d))
380
+
381
+ ## [1.0.0-alpha.40](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.39...v1.0.0-alpha.40) (2022-03-26)
382
+
383
+
384
+ ### :bug: Bug Fix
385
+
386
+ * filter-select support object type select options ([ab5a877](https://github.com/hatiolab/operato/commit/ab5a877157979bc96b252b6b527b4666c22e0b09))
387
+
388
+ ## [1.0.0-alpha.39](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.38...v1.0.0-alpha.39) (2022-03-25)
389
+
390
+ ## [1.0.0-alpha.38](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.37...v1.0.0-alpha.38) (2022-03-25)
391
+
392
+ ## [1.0.0-alpha.37](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.36...v1.0.0-alpha.37) (2022-03-25)
393
+
394
+ ## [1.0.0-alpha.36](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.35...v1.0.0-alpha.36) (2022-03-21)
395
+
396
+
397
+ ### :bug: Bug Fix
398
+
399
+ * datetime grist-renderer ([d551750](https://github.com/hatiolab/operato/commit/d55175091f9b928c56b02a087922c2fe8dcad9a9))
400
+
401
+ ## [1.0.0-alpha.35](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.34...v1.0.0-alpha.35) (2022-03-21)
402
+
403
+
404
+ ### :bug: Bug Fix
405
+
406
+ * prevent text overflow of grist-renderers ([73e7538](https://github.com/hatiolab/operato/commit/73e7538f9a0c8941689fefd3d4212529a75c413d))
407
+
408
+ ## [1.0.0-alpha.34](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.33...v1.0.0-alpha.34) (2022-03-20)
409
+
410
+
411
+ ### :bug: Bug Fix
412
+
413
+ * data-grist field styles for tooltip ([5f90650](https://github.com/hatiolab/operato/commit/5f90650ef36023834af3d3bf027cd300cc6bffc1))
414
+
415
+ ## [1.0.0-alpha.33](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.32...v1.0.0-alpha.33) (2022-03-19)
416
+
417
+
418
+ ### :bug: Bug Fix
419
+
420
+ * ox-grist json5 renderer ([1ff95e2](https://github.com/hatiolab/operato/commit/1ff95e21ac1b467620327a2a3f7aacd105b83414))
421
+
422
+ ## [1.0.0-alpha.32](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.31...v1.0.0-alpha.32) (2022-03-19)
423
+
424
+
425
+ ### :bug: Bug Fix
426
+
427
+ * typo ([2f2e3fc](https://github.com/hatiolab/operato/commit/2f2e3fcce771dcbfe2f1d09cbd25638094a6dc99))
428
+
429
+ ## [1.0.0-alpha.31](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.30...v1.0.0-alpha.31) (2022-03-19)
430
+
431
+
432
+ ### :bug: Bug Fix
433
+
434
+ * ox-grist-renderer support class type renderer (refer ox-grist-renderer-progress) ([ad7c8e1](https://github.com/hatiolab/operato/commit/ad7c8e1b453d19af9daa13ae4eb7c2059d85dfbb))
435
+
436
+ ## [1.0.0-alpha.30](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.29...v1.0.0-alpha.30) (2022-03-18)
437
+
438
+ ## [1.0.0-alpha.29](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.28...v1.0.0-alpha.29) (2022-03-17)
439
+
440
+ ## [1.0.0-alpha.28](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.26...v1.0.0-alpha.28) (2022-03-17)
441
+
442
+ ## [1.0.0-alpha.26](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.25...v1.0.0-alpha.26) (2022-03-17)
443
+
444
+ ## [1.0.0-alpha.25](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.24...v1.0.0-alpha.25) (2022-03-17)
445
+
446
+ ## [1.0.0-alpha.24](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.23...v1.0.0-alpha.24) (2022-03-17)
447
+
448
+
449
+ ### :bug: Bug Fix
450
+
451
+ * refactoring grist-editor, property-editor and input ([ea7431a](https://github.com/hatiolab/operato/commit/ea7431a5e2dfd96ef392c1905e9622df7c2ef88c))
452
+
453
+ ## [1.0.0-alpha.23](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.22...v1.0.0-alpha.23) (2022-03-17)
454
+
455
+ ## [1.0.0-alpha.22](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.21...v1.0.0-alpha.22) (2022-03-17)
456
+
457
+ ## [1.0.0-alpha.21](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.20...v1.0.0-alpha.21) (2022-03-16)
458
+
459
+ ## [1.0.0-alpha.20](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.19...v1.0.0-alpha.20) (2022-03-15)
460
+
461
+ ## [1.0.0-alpha.19](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.18...v1.0.0-alpha.19) (2022-03-14)
462
+
463
+ ## [1.0.0-alpha.18](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.17...v1.0.0-alpha.18) (2022-03-14)
464
+
465
+
466
+ ### :bug: Bug Fix
467
+
468
+ * data-grist click eventhandler and thumbnail layout ([c232bbf](https://github.com/hatiolab/operato/commit/c232bbf3d6ca90b48cc4ddb0a5ddb839acb14cdb))
469
+
470
+ ## [1.0.0-alpha.17](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.16...v1.0.0-alpha.17) (2022-03-13)
471
+
472
+ ## [1.0.0-alpha.16](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.15...v1.0.0-alpha.16) (2022-03-13)
473
+
474
+ ## [1.0.0-alpha.15](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.14...v1.0.0-alpha.15) (2022-03-13)
475
+
476
+ ## [1.0.0-alpha.14](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.13...v1.0.0-alpha.14) (2022-03-13)
477
+
478
+ ## [1.0.0-alpha.13](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.12...v1.0.0-alpha.13) (2022-03-13)
479
+
480
+ ## [1.0.0-alpha.12](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.11...v1.0.0-alpha.12) (2022-03-13)
481
+
482
+ ## [1.0.0-alpha.11](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.10...v1.0.0-alpha.11) (2022-03-12)
483
+
484
+ ## [1.0.0-alpha.10](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.9...v1.0.0-alpha.10) (2022-03-12)
485
+
486
+ ## [1.0.0-alpha.9](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.8...v1.0.0-alpha.9) (2022-03-12)
487
+
488
+ ## [1.0.0-alpha.8](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.7...v1.0.0-alpha.8) (2022-03-11)
489
+
490
+ ## [1.0.0-alpha.7](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.6...v1.0.0-alpha.7) (2022-03-11)
491
+
492
+ ## [1.0.0-alpha.6](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.5...v1.0.0-alpha.6) (2022-03-11)
493
+
494
+ ## [1.0.0-alpha.5](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.4...v1.0.0-alpha.5) (2022-03-11)
495
+
496
+ ## [1.0.0-alpha.4](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.3...v1.0.0-alpha.4) (2022-03-11)
497
+
498
+ ## [1.0.0-alpha.3](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.2...v1.0.0-alpha.3) (2022-03-10)
499
+
500
+ ## [1.0.0-alpha.2](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.1...v1.0.0-alpha.2) (2022-03-10)
501
+
502
+ ## [1.0.0-alpha.1](https://github.com/hatiolab/operato/compare/v0.4.3...v1.0.0-alpha.1) (2022-03-09)
503
+
504
+
505
+ ### :rocket: New Features
506
+
507
+ * 1.0-alpha ([42f87cf](https://github.com/hatiolab/operato/commit/42f87cf6a3cef0381db91ecb1179e63c64c01370))
508
+
509
+
510
+
511
+ ## [1.0.0-beta.5](https://github.com/hatiolab/operato/compare/v1.0.0-beta.4...v1.0.0-beta.5) (2022-04-18)
512
+
513
+ **Note:** Version bump only for package @operato/data-grist
514
+
515
+
516
+
517
+
518
+
519
+ ## [1.0.0-beta.4](https://github.com/hatiolab/operato/compare/v1.0.0-beta.3...v1.0.0-beta.4) (2022-04-14)
520
+
521
+
522
+ ### :rocket: New Features
523
+
524
+ * filter-input for like filters ([2680977](https://github.com/hatiolab/operato/commit/26809779b05f5a203c6b58668674dd68dca529d7))
525
+ * resource-object filter ([c70a727](https://github.com/hatiolab/operato/commit/c70a7270d9b28e51d78d3831bd2f563160d010ef))
526
+ * search for relation fields ([7dc99fd](https://github.com/hatiolab/operato/commit/7dc99fd6df1a96faab4f44ea65c3837934fabc5b))
527
+
528
+
529
+
6
530
  ## [1.0.0-beta.3](https://github.com/hatiolab/operato/compare/v1.0.0-beta.2...v1.0.0-beta.3) (2022-04-12)
7
531
 
8
532
  **Note:** Version bump only for package @operato/data-grist
@@ -2,7 +2,7 @@
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
  <style>
7
7
  body {
8
8
  /* box-sizing: border-box; */
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; */
@@ -56,7 +57,8 @@
56
57
  import '@material/mwc-icon'
57
58
  import { CommonGristStyles } from '@operato/styles'
58
59
 
59
- const fetchHandler = async ({ page, limit, sorters = [] }) => {
60
+ const fetchHandler = async ({ page, limit, sorters = [], filters }) => {
61
+ console.log('sorters, filters', sorters, filters)
60
62
  var total = 120993
61
63
  var start = (page - 1) * limit
62
64
 
@@ -95,6 +97,8 @@
95
97
  : idx % 4 === 2
96
98
  ? `http://www.hatiolab.com/assets/img/thingsboard-30.png`
97
99
  : `http://www.hatiolab.com/wrong-url.png` /* wrong source */,
100
+ file: 'abce.txt',
101
+ number: 100200300,
98
102
  role: ['admin', 'worker', 'tester'][idx % 3],
99
103
  color: idx % 2 ? `#87f018` : `#180f87`,
100
104
  rate: Math.round(Math.random() * 100),
@@ -203,6 +207,15 @@
203
207
  }
204
208
  }
205
209
  },
210
+ {
211
+ type: 'number',
212
+ name: 'number',
213
+ header: 'number',
214
+ record: {
215
+ format: '#,##0.0%'
216
+ },
217
+ width: 120
218
+ },
206
219
  {
207
220
  type: 'email',
208
221
  name: 'email',
@@ -311,6 +324,20 @@
311
324
  },
312
325
  width: 200
313
326
  },
327
+ {
328
+ type: 'file',
329
+ name: 'file',
330
+ header: 'file',
331
+ record: {
332
+ editable: true
333
+ },
334
+ handlers: {
335
+ click: () => {
336
+ console.log('thumbnail clicked...')
337
+ }
338
+ },
339
+ width: 200
340
+ },
314
341
  {
315
342
  type: 'datetime',
316
343
  name: 'updatedAt',
@@ -359,7 +386,7 @@
359
386
  }
360
387
  ],
361
388
  pagination: {
362
- pages: [20, 30, 50, 100, 200]
389
+ pages: [30, 50, 100, 200]
363
390
  }
364
391
  }
365
392
 
@@ -412,7 +439,7 @@
412
439
  .fetchHandler=${fetchHandler}
413
440
  @filters-change=${e => console.log('changed', e.detail)}
414
441
  >
415
- <div id="filters" slot="headroom">
442
+ <div slot="headroom">
416
443
  <ox-filters-form></ox-filters-form>
417
444
  </div>
418
445
 
@@ -2,7 +2,7 @@
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
  <style>
7
7
  body {
8
8
  /* box-sizing: border-box; */
@@ -13,8 +13,10 @@ export declare const ZERO_CONFIG: GristConfig;
13
13
  export declare const ZERO_RECORD: GristRecord;
14
14
  export declare const ZERO_RECORDS: GristRecord[];
15
15
  export declare const ZERO_DATA: GristData;
16
+ export declare const ZERO_PAGES: number[];
16
17
  export declare const ZERO_PAGINATION: {
17
18
  page: number;
18
19
  limit: number;
19
20
  total: number;
21
+ pages: number[];
20
22
  };
@@ -44,9 +44,11 @@ export const ZERO_RECORDS = [];
44
44
  export const ZERO_DATA = {
45
45
  records: ZERO_RECORDS
46
46
  };
47
+ export const ZERO_PAGES = [20, 30, 50, 100];
47
48
  export const ZERO_PAGINATION = {
48
49
  page: 1,
49
50
  limit: 20,
50
- total: 0
51
+ total: 0,
52
+ pages: ZERO_PAGES
51
53
  };
52
54
  //# sourceMappingURL=zero-config.js.map