@operato/data-grist 2.0.0-alpha.9 → 2.0.0-alpha.90
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 +349 -0
- package/demo/data-grist-test.html +25 -14
- package/demo/index.html +25 -14
- package/demo/report-test.html +13 -2
- package/dist/src/configure/rows-option-builder.js +2 -1
- package/dist/src/configure/rows-option-builder.js.map +1 -1
- package/dist/src/configure/zero-config.js +1 -0
- package/dist/src/configure/zero-config.js.map +1 -1
- package/dist/src/data-card/data-card-gutter-menu.d.ts +1 -1
- package/dist/src/data-card/data-card-gutter-menu.js +5 -5
- package/dist/src/data-card/data-card-gutter-menu.js.map +1 -1
- package/dist/src/data-card/data-card.d.ts +2 -2
- package/dist/src/data-card/data-card.js +3 -3
- package/dist/src/data-card/data-card.js.map +1 -1
- package/dist/src/data-card/event-handlers/record-card-click-handler.js +1 -1
- package/dist/src/data-card/event-handlers/record-card-click-handler.js.map +1 -1
- package/dist/src/data-card/record-card.d.ts +2 -2
- package/dist/src/data-card/record-card.js +26 -26
- package/dist/src/data-card/record-card.js.map +1 -1
- package/dist/src/data-grid/data-grid-accum-field.js +8 -3
- package/dist/src/data-grid/data-grid-accum-field.js.map +1 -1
- package/dist/src/data-grid/data-grid-body.d.ts +3 -3
- package/dist/src/data-grid/data-grid-body.js +9 -4
- package/dist/src/data-grid/data-grid-body.js.map +1 -1
- package/dist/src/data-grid/data-grid-field.d.ts +1 -1
- package/dist/src/data-grid/data-grid-field.js +2 -2
- package/dist/src/data-grid/data-grid-field.js.map +1 -1
- package/dist/src/data-grid/data-grid-footer.d.ts +2 -2
- package/dist/src/data-grid/data-grid-footer.js +17 -9
- package/dist/src/data-grid/data-grid-footer.js.map +1 -1
- package/dist/src/data-grid/data-grid-header.d.ts +1 -1
- package/dist/src/data-grid/data-grid-header.js +38 -35
- package/dist/src/data-grid/data-grid-header.js.map +1 -1
- package/dist/src/data-grid/data-grid.d.ts +1 -1
- package/dist/src/data-grid/data-grid.js +12 -2
- package/dist/src/data-grid/data-grid.js.map +1 -1
- package/dist/src/data-grist.d.ts +226 -4
- package/dist/src/data-grist.js +218 -25
- package/dist/src/data-grist.js.map +1 -1
- package/dist/src/data-list/data-list-gutter.js +12 -0
- package/dist/src/data-list/data-list-gutter.js.map +1 -1
- package/dist/src/data-list/data-list.d.ts +2 -2
- package/dist/src/data-list/data-list.js +3 -3
- package/dist/src/data-list/data-list.js.map +1 -1
- package/dist/src/data-list/event-handlers/record-partial-click-handler.js +1 -1
- package/dist/src/data-list/event-handlers/record-partial-click-handler.js.map +1 -1
- package/dist/src/data-list/record-partial.d.ts +2 -2
- package/dist/src/data-list/record-partial.js +20 -18
- package/dist/src/data-list/record-partial.js.map +1 -1
- package/dist/src/data-manipulator.d.ts +6 -6
- package/dist/src/data-manipulator.js +44 -29
- package/dist/src/data-manipulator.js.map +1 -1
- package/dist/src/data-report/data-report-body.d.ts +1 -1
- package/dist/src/data-report/data-report-component.d.ts +1 -1
- package/dist/src/data-report.d.ts +1 -1
- package/dist/src/editors/ox-grist-editor-checkbox.d.ts +3 -2
- package/dist/src/editors/ox-grist-editor-checkbox.js +9 -2
- package/dist/src/editors/ox-grist-editor-checkbox.js.map +1 -1
- package/dist/src/editors/ox-grist-editor-color.d.ts +1 -1
- package/dist/src/editors/ox-grist-editor-date.d.ts +1 -1
- package/dist/src/editors/ox-grist-editor-datetime.d.ts +2 -2
- package/dist/src/editors/ox-grist-editor-datetime.js +1 -2
- package/dist/src/editors/ox-grist-editor-datetime.js.map +1 -1
- package/dist/src/editors/ox-grist-editor-email.d.ts +1 -1
- package/dist/src/editors/ox-grist-editor-file.d.ts +3 -2
- package/dist/src/editors/ox-grist-editor-file.js +8 -2
- package/dist/src/editors/ox-grist-editor-file.js.map +1 -1
- package/dist/src/editors/ox-grist-editor-image.d.ts +2 -2
- package/dist/src/editors/ox-grist-editor-image.js +8 -8
- package/dist/src/editors/ox-grist-editor-image.js.map +1 -1
- package/dist/src/editors/ox-grist-editor-month.d.ts +1 -1
- package/dist/src/editors/ox-grist-editor-multiple-select.d.ts +1 -1
- package/dist/src/editors/ox-grist-editor-number.d.ts +3 -2
- package/dist/src/editors/ox-grist-editor-number.js +10 -9
- package/dist/src/editors/ox-grist-editor-number.js.map +1 -1
- package/dist/src/editors/ox-grist-editor-password.d.ts +1 -1
- package/dist/src/editors/ox-grist-editor-select.d.ts +1 -1
- package/dist/src/editors/ox-grist-editor-tel.d.ts +1 -1
- package/dist/src/editors/ox-grist-editor-text.d.ts +2 -1
- package/dist/src/editors/ox-grist-editor-text.js +3 -0
- package/dist/src/editors/ox-grist-editor-text.js.map +1 -1
- package/dist/src/editors/ox-grist-editor-textarea.d.ts +2 -1
- package/dist/src/editors/ox-grist-editor-textarea.js +3 -0
- package/dist/src/editors/ox-grist-editor-textarea.js.map +1 -1
- package/dist/src/editors/ox-grist-editor-time.d.ts +1 -1
- package/dist/src/editors/ox-grist-editor-tree.d.ts +1 -1
- package/dist/src/editors/ox-grist-editor-week.d.ts +1 -1
- package/dist/src/editors/ox-grist-editor.d.ts +4 -4
- package/dist/src/editors/ox-grist-editor.js +14 -12
- package/dist/src/editors/ox-grist-editor.js.map +1 -1
- package/dist/src/editors/ox-input-tree.d.ts +1 -1
- package/dist/src/empty-note.d.ts +2 -2
- package/dist/src/empty-note.js +3 -3
- package/dist/src/empty-note.js.map +1 -1
- package/dist/src/filters/filter-checkbox.js +12 -5
- package/dist/src/filters/filter-checkbox.js.map +1 -1
- package/dist/src/filters/filter-range-date.js +12 -1
- package/dist/src/filters/filter-range-date.js.map +1 -1
- package/dist/src/filters/filter-styles.js +38 -28
- package/dist/src/filters/filter-styles.js.map +1 -1
- package/dist/src/filters/filters-form.d.ts +1 -0
- package/dist/src/filters/filters-form.js +71 -50
- package/dist/src/filters/filters-form.js.map +1 -1
- package/dist/src/gutters/gutter-button.d.ts +1 -1
- package/dist/src/gutters/gutter-button.js +3 -3
- package/dist/src/gutters/gutter-button.js.map +1 -1
- package/dist/src/gutters/gutter-dirty.d.ts +1 -1
- package/dist/src/gutters/gutter-dirty.js +5 -5
- package/dist/src/gutters/gutter-dirty.js.map +1 -1
- package/dist/src/handlers/contextmenu-tree-mutation.js +5 -23
- package/dist/src/handlers/contextmenu-tree-mutation.js.map +1 -1
- package/dist/src/index.d.ts +0 -1
- package/dist/src/index.js +0 -1
- package/dist/src/index.js.map +1 -1
- package/dist/src/record-view/record-creator.d.ts +2 -2
- package/dist/src/record-view/record-creator.js +1 -1
- package/dist/src/record-view/record-creator.js.map +1 -1
- package/dist/src/record-view/record-view-body.d.ts +3 -3
- package/dist/src/record-view/record-view-body.js +4 -4
- package/dist/src/record-view/record-view-body.js.map +1 -1
- package/dist/src/record-view/record-view.d.ts +2 -2
- package/dist/src/record-view/record-view.js +5 -5
- package/dist/src/record-view/record-view.js.map +1 -1
- package/dist/src/renderers/ox-grist-renderer-progress.d.ts +1 -1
- package/dist/src/renderers/ox-grist-renderer-tree.d.ts +1 -1
- package/dist/src/renderers/ox-grist-renderer.d.ts +2 -2
- package/dist/src/sorters/sorters-control.js +3 -3
- package/dist/src/sorters/sorters-control.js.map +1 -1
- package/dist/src/types.d.ts +1 -8
- package/dist/src/types.js.map +1 -1
- package/dist/stories/accumulator.stories.d.ts +1 -1
- package/dist/stories/accumulator.stories.js +149 -111
- package/dist/stories/accumulator.stories.js.map +1 -1
- package/dist/stories/barcode-input-filter.stories.d.ts +1 -1
- package/dist/stories/barcode-input-filter.stories.js +98 -70
- package/dist/stories/barcode-input-filter.stories.js.map +1 -1
- package/dist/stories/default-filters.stories.d.ts +1 -1
- package/dist/stories/default-filters.stories.js +98 -70
- package/dist/stories/default-filters.stories.js.map +1 -1
- package/dist/stories/dynamic-editable.stories.d.ts +1 -1
- package/dist/stories/dynamic-editable.stories.js +147 -78
- package/dist/stories/dynamic-editable.stories.js.map +1 -1
- package/dist/stories/empty-sorters.stories.d.ts +1 -1
- package/dist/stories/empty-sorters.stories.js +99 -70
- package/dist/stories/empty-sorters.stories.js.map +1 -1
- package/dist/stories/explicit-fetch.stories.d.ts +1 -1
- package/dist/stories/explicit-fetch.stories.js +100 -71
- package/dist/stories/explicit-fetch.stories.js.map +1 -1
- package/dist/stories/fixed-column.stories.d.ts +1 -1
- package/dist/stories/fixed-column.stories.js +144 -112
- package/dist/stories/fixed-column.stories.js.map +1 -1
- package/dist/stories/grid-setting.stories.d.ts +36 -0
- package/dist/stories/grid-setting.stories.js +535 -0
- package/dist/stories/grid-setting.stories.js.map +1 -0
- package/dist/stories/grist-modes.stories.d.ts +1 -1
- package/dist/stories/grist-modes.stories.js +177 -124
- package/dist/stories/grist-modes.stories.js.map +1 -1
- package/dist/stories/group-header.stories.d.ts +1 -1
- package/dist/stories/group-header.stories.js +144 -112
- package/dist/stories/group-header.stories.js.map +1 -1
- package/dist/stories/textarea.stories.d.ts +1 -1
- package/dist/stories/textarea.stories.js +136 -103
- package/dist/stories/textarea.stories.js.map +1 -1
- package/dist/stories/tree-column-with-checkbox.stories.d.ts +1 -1
- package/dist/stories/tree-column-with-checkbox.stories.js +148 -116
- package/dist/stories/tree-column-with-checkbox.stories.js.map +1 -1
- package/dist/stories/tree-column.stories.d.ts +1 -1
- package/dist/stories/tree-column.stories.js +148 -116
- package/dist/stories/tree-column.stories.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/docs/default-value/default-value.md +1 -1
- package/docs/default-value/value-generator/date-generator.md +2 -2
- package/docs/default-value/value-generator/month-date-generator.md +2 -2
- package/docs/default-value/value-generator/week-date-generator.md +2 -2
- package/docs/default-value/value-generator/year-date-generator.md +2 -2
- package/package.json +21 -20
- package/src/configure/rows-option-builder.ts +11 -1
- package/src/configure/zero-config.ts +1 -0
- package/src/data-card/data-card-gutter-menu.ts +5 -5
- package/src/data-card/data-card.ts +3 -3
- package/src/data-card/event-handlers/record-card-click-handler.ts +1 -1
- package/src/data-card/record-card.ts +30 -32
- package/src/data-grid/data-grid-accum-field.ts +8 -3
- package/src/data-grid/data-grid-body.ts +10 -5
- package/src/data-grid/data-grid-field.ts +1 -1
- package/src/data-grid/data-grid-footer.ts +18 -11
- package/src/data-grid/data-grid-header.ts +68 -65
- package/src/data-grid/data-grid.ts +14 -4
- package/src/data-grist.ts +275 -27
- package/src/data-list/data-list-gutter.ts +12 -0
- package/src/data-list/data-list.ts +3 -3
- package/src/data-list/event-handlers/record-partial-click-handler.ts +1 -1
- package/src/data-list/record-partial.ts +22 -22
- package/src/data-manipulator.ts +52 -31
- package/src/editors/ox-grist-editor-checkbox.ts +12 -2
- package/src/editors/ox-grist-editor-datetime.ts +1 -2
- package/src/editors/ox-grist-editor-file.ts +12 -2
- package/src/editors/ox-grist-editor-image.ts +10 -7
- package/src/editors/ox-grist-editor-number.ts +11 -9
- package/src/editors/ox-grist-editor-text.ts +4 -0
- package/src/editors/ox-grist-editor-textarea.ts +4 -0
- package/src/editors/ox-grist-editor.ts +14 -10
- package/src/empty-note.ts +3 -3
- package/src/filters/filter-checkbox.ts +15 -5
- package/src/filters/filter-range-date.ts +16 -1
- package/src/filters/filter-styles.ts +38 -28
- package/src/filters/filters-form.ts +76 -50
- package/src/gutters/gutter-button.ts +3 -3
- package/src/gutters/gutter-dirty.ts +5 -5
- package/src/handlers/contextmenu-tree-mutation.ts +5 -23
- package/src/index.ts +0 -1
- package/src/record-view/record-creator.ts +1 -1
- package/src/record-view/record-view-body.ts +4 -4
- package/src/record-view/record-view.ts +5 -5
- package/src/sorters/sorters-control.ts +3 -3
- package/src/types.ts +1 -9
- package/stories/accumulator.stories.ts +153 -119
- package/stories/barcode-input-filter.stories.ts +109 -80
- package/stories/default-filters.stories.ts +111 -82
- package/stories/dynamic-editable.stories.ts +155 -85
- package/stories/empty-sorters.stories.ts +112 -82
- package/stories/explicit-fetch.stories.ts +113 -83
- package/stories/fixed-column.stories.ts +159 -126
- package/stories/grid-setting.stories.ts +572 -0
- package/stories/grist-modes.stories.ts +191 -142
- package/stories/group-header.stories.ts +159 -126
- package/stories/textarea.stories.ts +141 -112
- package/stories/tree-column-with-checkbox.stories.ts +158 -125
- package/stories/tree-column.stories.ts +158 -125
- package/themes/grist-theme.css +1 -1
- package/dist/src/value-generator/date-generator.d.ts +0 -6
- package/dist/src/value-generator/date-generator.js +0 -30
- package/dist/src/value-generator/date-generator.js.map +0 -1
- package/dist/src/value-generator/hour-time-generator.d.ts +0 -7
- package/dist/src/value-generator/hour-time-generator.js +0 -29
- package/dist/src/value-generator/hour-time-generator.js.map +0 -1
- package/dist/src/value-generator/index.d.ts +0 -1
- package/dist/src/value-generator/index.js +0 -2
- package/dist/src/value-generator/index.js.map +0 -1
- package/dist/src/value-generator/minute-time-generator.d.ts +0 -7
- package/dist/src/value-generator/minute-time-generator.js +0 -29
- package/dist/src/value-generator/minute-time-generator.js.map +0 -1
- package/dist/src/value-generator/month-date-generator.d.ts +0 -7
- package/dist/src/value-generator/month-date-generator.js +0 -31
- package/dist/src/value-generator/month-date-generator.js.map +0 -1
- package/dist/src/value-generator/now-generator.d.ts +0 -4
- package/dist/src/value-generator/now-generator.js +0 -8
- package/dist/src/value-generator/now-generator.js.map +0 -1
- package/dist/src/value-generator/registry.d.ts +0 -11
- package/dist/src/value-generator/registry.js +0 -50
- package/dist/src/value-generator/registry.js.map +0 -1
- package/dist/src/value-generator/time-generator.d.ts +0 -6
- package/dist/src/value-generator/time-generator.js +0 -28
- package/dist/src/value-generator/time-generator.js.map +0 -1
- package/dist/src/value-generator/today-generator.d.ts +0 -4
- package/dist/src/value-generator/today-generator.js +0 -8
- package/dist/src/value-generator/today-generator.js.map +0 -1
- package/dist/src/value-generator/week-date-generator.d.ts +0 -7
- package/dist/src/value-generator/week-date-generator.js +0 -29
- package/dist/src/value-generator/week-date-generator.js.map +0 -1
- package/dist/src/value-generator/year-date-generator.d.ts +0 -7
- package/dist/src/value-generator/year-date-generator.js +0 -29
- package/dist/src/value-generator/year-date-generator.js.map +0 -1
- package/src/value-generator/date-generator.ts +0 -35
- package/src/value-generator/hour-time-generator.ts +0 -43
- package/src/value-generator/index.ts +0 -1
- package/src/value-generator/minute-time-generator.ts +0 -43
- package/src/value-generator/month-date-generator.ts +0 -38
- package/src/value-generator/now-generator.ts +0 -10
- package/src/value-generator/registry.ts +0 -58
- package/src/value-generator/time-generator.ts +0 -33
- package/src/value-generator/today-generator.ts +0 -10
- package/src/value-generator/week-date-generator.ts +0 -40
- package/src/value-generator/year-date-generator.ts +0 -36
package/CHANGELOG.md
CHANGED
@@ -3,6 +3,355 @@
|
|
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
|
+
## [2.0.0-alpha.90](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.89...v2.0.0-alpha.90) (2024-04-18)
|
7
|
+
|
8
|
+
|
9
|
+
### :bug: Bug Fix
|
10
|
+
|
11
|
+
* style for data-grid setting slot ([862b9b9](https://github.com/hatiolab/operato/commit/862b9b908b2fb09ce263897b4e9d704724b6e6d4))
|
12
|
+
|
13
|
+
|
14
|
+
|
15
|
+
## [2.0.0-alpha.89](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.88...v2.0.0-alpha.89) (2024-04-18)
|
16
|
+
|
17
|
+
**Note:** Version bump only for package @operato/data-grist
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
|
22
|
+
|
23
|
+
## [2.0.0-alpha.88](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.87...v2.0.0-alpha.88) (2024-04-18)
|
24
|
+
|
25
|
+
|
26
|
+
### :bug: Bug Fix
|
27
|
+
|
28
|
+
* put together data-grid setting slot ([b4b6c7d](https://github.com/hatiolab/operato/commit/b4b6c7d5cacfcd0191876e91a96d7c06c26fedee))
|
29
|
+
|
30
|
+
|
31
|
+
|
32
|
+
## [2.0.0-alpha.87](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.86...v2.0.0-alpha.87) (2024-04-17)
|
33
|
+
|
34
|
+
|
35
|
+
### :bug: Bug Fix
|
36
|
+
|
37
|
+
* data-grist filters-form stories ([5b46629](https://github.com/hatiolab/operato/commit/5b466290d70885b468fb17b7e294b361de058a2f))
|
38
|
+
* data-grist headroom stories ([fc4a193](https://github.com/hatiolab/operato/commit/fc4a193a1e50b5d63a4d7de2dec606d726cc4852))
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
## [2.0.0-alpha.86](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.85...v2.0.0-alpha.86) (2024-04-16)
|
43
|
+
|
44
|
+
|
45
|
+
### :bug: Bug Fix
|
46
|
+
|
47
|
+
* tweak filters-form style ([79e1f68](https://github.com/hatiolab/operato/commit/79e1f68f224770c8ad97d87e3f79327743a3d84d))
|
48
|
+
|
49
|
+
|
50
|
+
|
51
|
+
## [2.0.0-alpha.85](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.84...v2.0.0-alpha.85) (2024-04-16)
|
52
|
+
|
53
|
+
|
54
|
+
### :bug: Bug Fix
|
55
|
+
|
56
|
+
* tweak filters-form style ([6fb293d](https://github.com/hatiolab/operato/commit/6fb293d7d34ea7b01b3011264f554158beb62621))
|
57
|
+
|
58
|
+
|
59
|
+
|
60
|
+
## [2.0.0-alpha.82](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.81...v2.0.0-alpha.82) (2024-04-15)
|
61
|
+
|
62
|
+
**Note:** Version bump only for package @operato/data-grist
|
63
|
+
|
64
|
+
|
65
|
+
|
66
|
+
|
67
|
+
|
68
|
+
## [2.0.0-alpha.81](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.80...v2.0.0-alpha.81) (2024-04-15)
|
69
|
+
|
70
|
+
**Note:** Version bump only for package @operato/data-grist
|
71
|
+
|
72
|
+
|
73
|
+
|
74
|
+
|
75
|
+
|
76
|
+
## [2.0.0-alpha.80](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.79...v2.0.0-alpha.80) (2024-04-15)
|
77
|
+
|
78
|
+
**Note:** Version bump only for package @operato/data-grist
|
79
|
+
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
|
84
|
+
## [2.0.0-alpha.68](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.67...v2.0.0-alpha.68) (2024-04-13)
|
85
|
+
|
86
|
+
|
87
|
+
### :bug: Bug Fix
|
88
|
+
|
89
|
+
* mwc=>md for context ([2bc13f2](https://github.com/hatiolab/operato/commit/2bc13f285f257782f73e5d7b5d1ddd197df85393))
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
## [2.0.0-alpha.64](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.63...v2.0.0-alpha.64) (2024-04-13)
|
94
|
+
|
95
|
+
**Note:** Version bump only for package @operato/data-grist
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
|
100
|
+
|
101
|
+
## [2.0.0-alpha.62](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.61...v2.0.0-alpha.62) (2024-04-12)
|
102
|
+
|
103
|
+
|
104
|
+
### :bug: Bug Fix
|
105
|
+
|
106
|
+
* sorting option desc order를 명확하게 함 ([deae3e0](https://github.com/hatiolab/operato/commit/deae3e06e982fb645d1fd06e9ab5d60bb6e91970))
|
107
|
+
|
108
|
+
|
109
|
+
|
110
|
+
## [2.0.0-alpha.61](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.60...v2.0.0-alpha.61) (2024-04-11)
|
111
|
+
|
112
|
+
|
113
|
+
### :bug: Bug Fix
|
114
|
+
|
115
|
+
* sorters option 의 변경시 새로운 sorter 오브젝트로 리플레이스함 ([644336f](https://github.com/hatiolab/operato/commit/644336f2b643bc67c541c250ef5d5a548a88b030))
|
116
|
+
|
117
|
+
|
118
|
+
|
119
|
+
## [2.0.0-alpha.60](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.59...v2.0.0-alpha.60) (2024-04-11)
|
120
|
+
|
121
|
+
|
122
|
+
### :bug: Bug Fix
|
123
|
+
|
124
|
+
* escape null from filters-form ([f5e1507](https://github.com/hatiolab/operato/commit/f5e1507c759910bf670918a4c251f2d939cf188a))
|
125
|
+
|
126
|
+
|
127
|
+
|
128
|
+
## [2.0.0-alpha.59](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.58...v2.0.0-alpha.59) (2024-04-11)
|
129
|
+
|
130
|
+
**Note:** Version bump only for package @operato/data-grist
|
131
|
+
|
132
|
+
|
133
|
+
|
134
|
+
|
135
|
+
|
136
|
+
## [2.0.0-alpha.57](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.56...v2.0.0-alpha.57) (2024-04-07)
|
137
|
+
|
138
|
+
**Note:** Version bump only for package @operato/data-grist
|
139
|
+
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
|
144
|
+
|
145
|
+
|
146
|
+
**Note:** Version bump only for package @operato/data-grist
|
147
|
+
|
148
|
+
|
149
|
+
|
150
|
+
|
151
|
+
|
152
|
+
## [2.0.0-alpha.54](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.53...v2.0.0-alpha.54) (2024-04-01)
|
153
|
+
|
154
|
+
|
155
|
+
### :bug: Bug Fix
|
156
|
+
|
157
|
+
* 0값 null처리 되는 현상 수정 ([5e560c3](https://github.com/hatiolab/operato/commit/5e560c369dde7f446155aa7c408d13f346583c71))
|
158
|
+
|
159
|
+
|
160
|
+
|
161
|
+
## [2.0.0-alpha.52](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.51...v2.0.0-alpha.52) (2024-03-29)
|
162
|
+
|
163
|
+
**Note:** Version bump only for package @operato/data-grist
|
164
|
+
|
165
|
+
|
166
|
+
|
167
|
+
|
168
|
+
|
169
|
+
## [2.0.0-alpha.51](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.50...v2.0.0-alpha.51) (2024-03-29)
|
170
|
+
|
171
|
+
|
172
|
+
### :bug: Bug Fix
|
173
|
+
|
174
|
+
* upgrade lit ([e661c33](https://github.com/hatiolab/operato/commit/e661c333d2bb97f784b5ac2c0e365714ee5e80ff))
|
175
|
+
|
176
|
+
|
177
|
+
|
178
|
+
## [2.0.0-alpha.49](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.48...v2.0.0-alpha.49) (2024-03-28)
|
179
|
+
|
180
|
+
**Note:** Version bump only for package @operato/data-grist
|
181
|
+
|
182
|
+
|
183
|
+
|
184
|
+
|
185
|
+
|
186
|
+
## [2.0.0-alpha.48](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.47...v2.0.0-alpha.48) (2024-03-28)
|
187
|
+
|
188
|
+
|
189
|
+
### :bug: Bug Fix
|
190
|
+
|
191
|
+
* 모바일 디테일 버튼 클릭 쉽도록 스타일 수정 ([f7b9a34](https://github.com/hatiolab/operato/commit/f7b9a34a0c0d05f1806e6bc862249f2dafefbe7e))
|
192
|
+
* 헤더 z-index 수정 (fixed컬럼이랑 동일해야함) ([9ece220](https://github.com/hatiolab/operato/commit/9ece2201c765850ee9869ede2718d2986e0936ce))
|
193
|
+
|
194
|
+
|
195
|
+
|
196
|
+
## [2.0.0-alpha.47](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.46...v2.0.0-alpha.47) (2024-03-27)
|
197
|
+
|
198
|
+
**Note:** Version bump only for package @operato/data-grist
|
199
|
+
|
200
|
+
|
201
|
+
|
202
|
+
|
203
|
+
|
204
|
+
## [2.0.0-alpha.44](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.43...v2.0.0-alpha.44) (2024-03-24)
|
205
|
+
|
206
|
+
**Note:** Version bump only for package @operato/data-grist
|
207
|
+
|
208
|
+
|
209
|
+
|
210
|
+
|
211
|
+
|
212
|
+
## [2.0.0-alpha.35](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.34...v2.0.0-alpha.35) (2024-03-13)
|
213
|
+
|
214
|
+
|
215
|
+
### :bug: Bug Fix
|
216
|
+
|
217
|
+
* 리팩토링 grist editor 인라인에디터 ([a8922c4](https://github.com/hatiolab/operato/commit/a8922c40f960596ac58aea885fd7501267fd2d8b))
|
218
|
+
|
219
|
+
|
220
|
+
|
221
|
+
## [2.0.0-alpha.34](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.33...v2.0.0-alpha.34) (2024-03-12)
|
222
|
+
|
223
|
+
**Note:** Version bump only for package @operato/data-grist
|
224
|
+
|
225
|
+
|
226
|
+
|
227
|
+
|
228
|
+
|
229
|
+
## [2.0.0-alpha.32](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.31...v2.0.0-alpha.32) (2024-03-12)
|
230
|
+
|
231
|
+
**Note:** Version bump only for package @operato/data-grist
|
232
|
+
|
233
|
+
|
234
|
+
|
235
|
+
|
236
|
+
|
237
|
+
## [2.0.0-alpha.31](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.30...v2.0.0-alpha.31) (2024-03-03)
|
238
|
+
|
239
|
+
**Note:** Version bump only for package @operato/data-grist
|
240
|
+
|
241
|
+
|
242
|
+
|
243
|
+
|
244
|
+
|
245
|
+
## [2.0.0-alpha.30](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.29...v2.0.0-alpha.30) (2024-03-03)
|
246
|
+
|
247
|
+
**Note:** Version bump only for package @operato/data-grist
|
248
|
+
|
249
|
+
|
250
|
+
|
251
|
+
|
252
|
+
|
253
|
+
## [2.0.0-alpha.28](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.27...v2.0.0-alpha.28) (2024-02-20)
|
254
|
+
|
255
|
+
|
256
|
+
### :bug: Bug Fix
|
257
|
+
|
258
|
+
* upgrade devDependencies for webcomponents ([1489b8b](https://github.com/hatiolab/operato/commit/1489b8b790d9bcee779a070a630697f25c01728f))
|
259
|
+
|
260
|
+
|
261
|
+
|
262
|
+
## [2.0.0-alpha.27](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.26...v2.0.0-alpha.27) (2024-02-17)
|
263
|
+
|
264
|
+
|
265
|
+
### :bug: Bug Fix
|
266
|
+
|
267
|
+
* boolean값 붙여넣기시 true/false로 들어가게 수정 ([b2b371a](https://github.com/hatiolab/operato/commit/b2b371a52a472ffdd29f2e34d7550f6569f0a5eb))
|
268
|
+
* parameters 타입도 오브젝트 형식으로 체크 ([81369a0](https://github.com/hatiolab/operato/commit/81369a011fdd4f28befab1bcfddf9168934e830f))
|
269
|
+
|
270
|
+
|
271
|
+
|
272
|
+
## [2.0.0-alpha.23](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.22...v2.0.0-alpha.23) (2024-02-10)
|
273
|
+
|
274
|
+
|
275
|
+
### :bug: Bug Fix
|
276
|
+
|
277
|
+
* time-calculator relativeDate(s) => relativeDays ([1ad965e](https://github.com/hatiolab/operato/commit/1ad965e59232bdfe5d90938b95e1085a5e28a527))
|
278
|
+
|
279
|
+
|
280
|
+
|
281
|
+
## [2.0.0-alpha.22](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.21...v2.0.0-alpha.22) (2024-02-10)
|
282
|
+
|
283
|
+
|
284
|
+
### :bug: Bug Fix
|
285
|
+
|
286
|
+
* add time-calculator module for data-grist and form ([4d26d22](https://github.com/hatiolab/operato/commit/4d26d22b89e2c34cffe15eb0cc8520962644e8a1))
|
287
|
+
|
288
|
+
|
289
|
+
|
290
|
+
## [2.0.0-alpha.20](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.19...v2.0.0-alpha.20) (2024-02-05)
|
291
|
+
|
292
|
+
**Note:** Version bump only for package @operato/data-grist
|
293
|
+
|
294
|
+
|
295
|
+
|
296
|
+
|
297
|
+
|
298
|
+
## [2.0.0-alpha.19](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.18...v2.0.0-alpha.19) (2024-02-05)
|
299
|
+
|
300
|
+
**Note:** Version bump only for package @operato/data-grist
|
301
|
+
|
302
|
+
|
303
|
+
|
304
|
+
|
305
|
+
|
306
|
+
## [2.0.0-alpha.16](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.15...v2.0.0-alpha.16) (2024-02-03)
|
307
|
+
|
308
|
+
|
309
|
+
### :bug: Bug Fix
|
310
|
+
|
311
|
+
* rows.editable option for card and list (클릭시 레코드팝업을 보이지 않도록 하기위함) ([f353960](https://github.com/hatiolab/operato/commit/f35396037a7a6747348fc20089c139d5210e37c2))
|
312
|
+
|
313
|
+
|
314
|
+
|
315
|
+
## [2.0.0-alpha.13](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.12...v2.0.0-alpha.13) (2024-01-28)
|
316
|
+
|
317
|
+
|
318
|
+
### :bug: Bug Fix
|
319
|
+
|
320
|
+
* accumulator tag, 별도의 텍스트로 변경 ([a82ad24](https://github.com/hatiolab/operato/commit/a82ad24e09485b274d26a5767f4caf2edfc386e4))
|
321
|
+
* css-variable --grid-record-padding ([b057312](https://github.com/hatiolab/operato/commit/b0573120fcb46c71b6b283065f08ae926e9f826f))
|
322
|
+
* 그리드 필드타입 integer, float도 숫자 처리, 빈값일시 0 처리 추가 ([e964027](https://github.com/hatiolab/operato/commit/e9640270786cefe391f6b785e22a07176fc744f0))
|
323
|
+
* 스토리 테스트파일 수정 ([eab4645](https://github.com/hatiolab/operato/commit/eab4645a25c8949634d74e59975bcb4ecf503b16))
|
324
|
+
* 한글 입력 보정 ([3572600](https://github.com/hatiolab/operato/commit/3572600370b03c69eb2738640f8702d4fec424d8))
|
325
|
+
|
326
|
+
|
327
|
+
|
328
|
+
## [2.0.0-alpha.12](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.11...v2.0.0-alpha.12) (2024-01-24)
|
329
|
+
|
330
|
+
|
331
|
+
### :bug: Bug Fix
|
332
|
+
|
333
|
+
* contextmenu-tree-mutation ([a2fec38](https://github.com/hatiolab/operato/commit/a2fec3894267f2b572d336297a5a50e84637fb9a))
|
334
|
+
|
335
|
+
|
336
|
+
|
337
|
+
## [2.0.0-alpha.11](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.10...v2.0.0-alpha.11) (2024-01-24)
|
338
|
+
|
339
|
+
**Note:** Version bump only for package @operato/data-grist
|
340
|
+
|
341
|
+
|
342
|
+
|
343
|
+
|
344
|
+
|
345
|
+
## [2.0.0-alpha.10](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.9...v2.0.0-alpha.10) (2024-01-22)
|
346
|
+
|
347
|
+
|
348
|
+
### :bug: Bug Fix
|
349
|
+
|
350
|
+
* add jsdoc into ox-grist ([b6f1428](https://github.com/hatiolab/operato/commit/b6f14287456e259194617fb8ce4fed397d40f02e))
|
351
|
+
* add tree mutation API into ox-grist ([0bb0320](https://github.com/hatiolab/operato/commit/0bb0320b2262ccd7802774ccbd9941e2c69877f1))
|
352
|
+
|
353
|
+
|
354
|
+
|
6
355
|
## [2.0.0-alpha.9](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.8...v2.0.0-alpha.9) (2024-01-20)
|
7
356
|
|
8
357
|
**Note:** Version bump only for package @operato/data-grist
|
@@ -1,4 +1,4 @@
|
|
1
|
-
<!
|
1
|
+
<!doctype html>
|
2
2
|
<html lang="en-GB">
|
3
3
|
<head>
|
4
4
|
<meta charset="utf-8" />
|
@@ -38,7 +38,18 @@
|
|
38
38
|
}
|
39
39
|
</style>
|
40
40
|
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500" rel="stylesheet" />
|
41
|
-
<link
|
41
|
+
<link
|
42
|
+
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1"
|
43
|
+
rel="stylesheet"
|
44
|
+
/>
|
45
|
+
<link
|
46
|
+
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL@20..48,100..700,0..1"
|
47
|
+
rel="stylesheet"
|
48
|
+
/>
|
49
|
+
<link
|
50
|
+
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL@20..48,100..700,0..1"
|
51
|
+
rel="stylesheet"
|
52
|
+
/>
|
42
53
|
|
43
54
|
<link href="/themes/app-theme.css" rel="stylesheet" />
|
44
55
|
<link href="/themes/oops-theme.css" rel="stylesheet" />
|
@@ -53,7 +64,7 @@
|
|
53
64
|
import '../dist/src/sorters/sorters-control.js'
|
54
65
|
import '../dist/src/record-view/record-creator.js'
|
55
66
|
import '@operato/popup/ox-popup-list.js'
|
56
|
-
import '@material/
|
67
|
+
import '@material/web/icon/icon.js'
|
57
68
|
import { CommonGristStyles } from '@operato/styles'
|
58
69
|
|
59
70
|
const fetchHandler = async ({ page, limit, sorters = [] }) => {
|
@@ -91,10 +102,10 @@
|
|
91
102
|
idx % 4 === 0
|
92
103
|
? '' /* no source */
|
93
104
|
: idx % 4 === 1
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
105
|
+
? `http://www.hatiolab.com/assets/img/operato-biz3.png`
|
106
|
+
: idx % 4 === 2
|
107
|
+
? `http://www.hatiolab.com/assets/img/thingsboard-30.png`
|
108
|
+
: `http://www.hatiolab.com/wrong-url.png` /* wrong source */,
|
98
109
|
role: ['admin', 'worker', 'tester'][idx % 3],
|
99
110
|
color: idx % 2 ? `#87f018` : `#180f87`,
|
100
111
|
rate: Math.round(Math.random() * 100),
|
@@ -411,7 +422,7 @@
|
|
411
422
|
|
412
423
|
<div id="sorters">
|
413
424
|
Sort
|
414
|
-
<
|
425
|
+
<md-icon
|
415
426
|
@click=${e => {
|
416
427
|
const target = e.currentTarget
|
417
428
|
this.renderRoot.querySelector('#sorter-control').open({
|
@@ -419,7 +430,7 @@
|
|
419
430
|
top: target.offsetTop + target.offsetHeight
|
420
431
|
})
|
421
432
|
}}
|
422
|
-
>expand_more</
|
433
|
+
>expand_more</md-icon
|
423
434
|
>
|
424
435
|
<ox-popup id="sorter-control">
|
425
436
|
<ox-sorters-control> </ox-sorters-control>
|
@@ -427,16 +438,16 @@
|
|
427
438
|
</div>
|
428
439
|
|
429
440
|
<div id="modes">
|
430
|
-
<
|
431
|
-
<
|
432
|
-
<
|
441
|
+
<md-icon @click=${() => (this.mode = 'GRID')} ?active=${mode == 'GRID'}>view_list</md-icon>
|
442
|
+
<md-icon @click=${() => (this.mode = 'LIST')} ?active=${mode == 'LIST'}>menu</md-icon>
|
443
|
+
<md-icon @click=${() => (this.mode = 'CARD')} ?active=${mode == 'CARD'}>apps</md-icon>
|
433
444
|
</div>
|
434
445
|
|
435
446
|
<ox-record-creator id="add" light-popup>
|
436
|
-
<button><
|
447
|
+
<button><md-icon>add</md-icon></button>
|
437
448
|
</ox-record-creator>
|
438
449
|
|
439
|
-
<button @click=${e => this.grist.cloneSelectedRecords()}><
|
450
|
+
<button @click=${e => this.grist.cloneSelectedRecords()}><md-icon>add</md-icon></button>
|
440
451
|
</div>
|
441
452
|
</ox-grist>
|
442
453
|
`
|
package/demo/index.html
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
<!
|
1
|
+
<!doctype html>
|
2
2
|
<html lang="en-GB">
|
3
3
|
<head>
|
4
4
|
<meta charset="utf-8" />
|
@@ -39,7 +39,18 @@
|
|
39
39
|
}
|
40
40
|
</style>
|
41
41
|
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500" rel="stylesheet" />
|
42
|
-
<link
|
42
|
+
<link
|
43
|
+
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1"
|
44
|
+
rel="stylesheet"
|
45
|
+
/>
|
46
|
+
<link
|
47
|
+
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL@20..48,100..700,0..1"
|
48
|
+
rel="stylesheet"
|
49
|
+
/>
|
50
|
+
<link
|
51
|
+
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL@20..48,100..700,0..1"
|
52
|
+
rel="stylesheet"
|
53
|
+
/>
|
43
54
|
|
44
55
|
<link href="/themes/app-theme.css" rel="stylesheet" />
|
45
56
|
<link href="/themes/oops-theme.css" rel="stylesheet" />
|
@@ -54,7 +65,7 @@
|
|
54
65
|
import '../dist/src/sorters/sorters-control.js'
|
55
66
|
import '../dist/src/record-view/record-creator.js'
|
56
67
|
import '@operato/popup/ox-popup-list.js'
|
57
|
-
import '@material/
|
68
|
+
import '@material/web/icon/icon.js'
|
58
69
|
import { CommonGristStyles } from '@operato/styles'
|
59
70
|
|
60
71
|
const fetchHandler = async ({ page, limit, sorters = [], filters }) => {
|
@@ -93,10 +104,10 @@
|
|
93
104
|
idx % 4 === 0
|
94
105
|
? '' /* no source */
|
95
106
|
: idx % 4 === 1
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
107
|
+
? `http://www.hatiolab.com/assets/img/operato-biz3.png`
|
108
|
+
: idx % 4 === 2
|
109
|
+
? `http://www.hatiolab.com/assets/img/thingsboard-30.png`
|
110
|
+
: `http://www.hatiolab.com/wrong-url.png` /* wrong source */,
|
100
111
|
file: 'abce.txt',
|
101
112
|
number: 100200300,
|
102
113
|
role: ['admin', 'worker', 'tester'][idx % 3],
|
@@ -484,7 +495,7 @@
|
|
484
495
|
|
485
496
|
<div id="sorters">
|
486
497
|
Sort
|
487
|
-
<
|
498
|
+
<md-icon
|
488
499
|
@click=${e => {
|
489
500
|
const target = e.currentTarget
|
490
501
|
this.renderRoot.querySelector('#sorter-control').open({
|
@@ -492,7 +503,7 @@
|
|
492
503
|
top: target.offsetTop + target.offsetHeight
|
493
504
|
})
|
494
505
|
}}
|
495
|
-
>expand_more</
|
506
|
+
>expand_more</md-icon
|
496
507
|
>
|
497
508
|
<ox-popup id="sorter-control">
|
498
509
|
<ox-sorters-control> </ox-sorters-control>
|
@@ -500,16 +511,16 @@
|
|
500
511
|
</div>
|
501
512
|
|
502
513
|
<div id="modes">
|
503
|
-
<
|
504
|
-
<
|
505
|
-
<
|
514
|
+
<md-icon @click=${() => (this.mode = 'GRID')} ?active=${mode == 'GRID'}>view_list</md-icon>
|
515
|
+
<md-icon @click=${() => (this.mode = 'LIST')} ?active=${mode == 'LIST'}>menu</md-icon>
|
516
|
+
<md-icon @click=${() => (this.mode = 'CARD')} ?active=${mode == 'CARD'}>apps</md-icon>
|
506
517
|
</div>
|
507
518
|
|
508
519
|
<ox-record-creator id="add" light-popup>
|
509
|
-
<button><
|
520
|
+
<button><md-icon>add</md-icon></button>
|
510
521
|
</ox-record-creator>
|
511
522
|
|
512
|
-
<button @click=${e => this.grist.cloneSelectedRecords()}><
|
523
|
+
<button @click=${e => this.grist.cloneSelectedRecords()}><md-icon>add</md-icon></button>
|
513
524
|
</div>
|
514
525
|
</ox-grist>
|
515
526
|
`
|
package/demo/report-test.html
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
<!
|
1
|
+
<!doctype html>
|
2
2
|
<html lang="en-GB">
|
3
3
|
<head>
|
4
4
|
<meta charset="utf-8" />
|
@@ -35,7 +35,18 @@
|
|
35
35
|
}
|
36
36
|
</style>
|
37
37
|
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500" rel="stylesheet" />
|
38
|
-
<link
|
38
|
+
<link
|
39
|
+
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1"
|
40
|
+
rel="stylesheet"
|
41
|
+
/>
|
42
|
+
<link
|
43
|
+
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL@20..48,100..700,0..1"
|
44
|
+
rel="stylesheet"
|
45
|
+
/>
|
46
|
+
<link
|
47
|
+
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL@20..48,100..700,0..1"
|
48
|
+
rel="stylesheet"
|
49
|
+
/>
|
39
50
|
|
40
51
|
<link href="/themes/app-theme.css" rel="stylesheet" />
|
41
52
|
<link href="/themes/oops-theme.css" rel="stylesheet" />
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { NOOP } from '../const';
|
2
2
|
import { getGristEventHandler } from '../handlers';
|
3
3
|
export const buildRowsOptions = (rows) => {
|
4
|
-
var { appendable = true, insertable = false, selectable, groups = [], totals = [], classifier, accumulator } = rows;
|
4
|
+
var { appendable = true, editable = true, insertable = false, selectable, groups = [], totals = [], classifier, accumulator } = rows;
|
5
5
|
/* handler */
|
6
6
|
var { click, dblclick, focus } = rows.handlers || {};
|
7
7
|
if (typeof classifier !== 'function') {
|
@@ -10,6 +10,7 @@ export const buildRowsOptions = (rows) => {
|
|
10
10
|
return {
|
11
11
|
accumulator,
|
12
12
|
appendable,
|
13
|
+
editable,
|
13
14
|
insertable,
|
14
15
|
selectable,
|
15
16
|
groups,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"rows-option-builder.js","sourceRoot":"","sources":["../../../src/configure/rows-option-builder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAA;AAE/B,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAElD,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,IAAS,EAAc,EAAE;IACxD,IAAI,
|
1
|
+
{"version":3,"file":"rows-option-builder.js","sourceRoot":"","sources":["../../../src/configure/rows-option-builder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAA;AAE/B,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAElD,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,IAAS,EAAc,EAAE;IACxD,IAAI,EACF,UAAU,GAAG,IAAI,EACjB,QAAQ,GAAG,IAAI,EACf,UAAU,GAAG,KAAK,EAClB,UAAU,EACV,MAAM,GAAG,EAAE,EACX,MAAM,GAAG,EAAE,EACX,UAAU,EACV,WAAW,EACZ,GAAG,IAAI,CAAA;IAER,aAAa;IACb,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC,QAAQ,IAAI,EAAE,CAAA;IACpD,IAAI,OAAO,UAAU,KAAK,UAAU,EAAE,CAAC;QACrC,UAAU,GAAG,IAAI,CAAA;IACnB,CAAC;IAED,OAAO;QACL,WAAW;QACX,UAAU;QACV,QAAQ;QACR,UAAU;QACV,UAAU;QACV,MAAM;QACN,MAAM;QACN,QAAQ,EAAE;YACR,KAAK,EAAE,oBAAoB,CAAC,KAAK,CAAC;YAClC,QAAQ,EAAE,oBAAoB,CAAC,QAAQ,CAAC;YACxC,KAAK,EAAE,oBAAoB,CAAC,KAAK,CAAC;SACnC;QACD,UAAU;KACX,CAAA;AACH,CAAC,CAAA","sourcesContent":["import { NOOP } from '../const'\nimport { RowsConfig } from '../types'\nimport { getGristEventHandler } from '../handlers'\n\nexport const buildRowsOptions = (rows: any): RowsConfig => {\n var {\n appendable = true,\n editable = true,\n insertable = false,\n selectable,\n groups = [],\n totals = [],\n classifier,\n accumulator\n } = rows\n\n /* handler */\n var { click, dblclick, focus } = rows.handlers || {}\n if (typeof classifier !== 'function') {\n classifier = NOOP\n }\n\n return {\n accumulator,\n appendable,\n editable,\n insertable,\n selectable,\n groups,\n totals,\n handlers: {\n click: getGristEventHandler(click),\n dblclick: getGristEventHandler(dblclick),\n focus: getGristEventHandler(focus)\n },\n classifier\n }\n}\n"]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"zero-config.js","sourceRoot":"","sources":["../../../src/configure/zero-config.ts"],"names":[],"mappings":"AAeA,MAAM,CAAC,MAAM,eAAe,GAAoB,CAAC,MAAM,EAAE,QAAQ,EAAE,EAAE,GAAE,CAAC,CAAA;AACxE,MAAM,CAAC,MAAM,mBAAmB,GAAkB,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,GAAE,CAAC,CAAA;AAEhG,MAAM,CAAC,MAAM,oBAAoB,GAAyB;IACxD,KAAK,EAAE,SAAS;IAChB,QAAQ,EAAE,SAAS;IACnB,KAAK,EAAE,SAAS;IAChB,WAAW,EAAE,SAAS;CACvB,CAAA;AACD,MAAM,CAAC,MAAM,YAAY,GAAmB,EAAE,CAAA;AAC9C,MAAM,CAAC,MAAM,WAAW,GAAkB,EAAE,CAAA;AAC5C,MAAM,CAAC,MAAM,WAAW,GAAO,EAAE,CAAA;AACjC,MAAM,CAAC,MAAM,UAAU,GAAgB,KAAK,CAAA;AAE5C,MAAM,CAAC,MAAM,WAAW,GAAiB;IACvC,IAAI,EAAE,EAAE;IACR,IAAI,EAAE,EAAE;IACR,MAAM,EAAE;QACN,QAAQ,EAAE,MAAM,CAAC,EAAE,GAAE,CAAC;KACvB;IACD,MAAM,EAAE;QACN,QAAQ,EAAE,mBAAmB;QAC7B,UAAU,EAAE,eAAe;QAC3B,OAAO,EAAE,EAAE;KACZ;IACD,QAAQ,EAAE,oBAAoB;IAC9B,KAAK,EAAE,UAAU;CAClB,CAAA;AAED,MAAM,CAAC,MAAM,SAAS,GAAe;IACnC,UAAU,EAAE,KAAK;IACjB,UAAU,EAAE,KAAK;IACjB,MAAM,EAAE,WAAW;IACnB,MAAM,EAAE,WAAW;IACnB,UAAU,EAAE,eAAe;IAC3B,QAAQ,EAAE,oBAAoB;CAC/B,CAAA;AAED,MAAM,CAAC,MAAM,SAAS,GAAe;IACnC,MAAM,EAAE,CAAC,MAAM,EAAE,aAAa,EAAE,WAAW,CAAC;IAC5C,OAAO,EAAE,EAAE;CACZ,CAAA;AAED,MAAM,CAAC,MAAM,SAAS,GAAe,EAAE,CAAA;AAEvC,MAAM,CAAC,MAAM,WAAW,GAAgB;IACtC,OAAO,EAAE,YAAY;IACrB,IAAI,EAAE,SAAS;IACf,IAAI,EAAE,SAAS;IACf,IAAI,EAAE,SAAS;CAChB,CAAA;AAED,MAAM,CAAC,MAAM,WAAW,GAAgB,EAAE,CAAA;AAC1C,MAAM,CAAC,MAAM,YAAY,GAAkB,EAAE,CAAA;AAE7C,MAAM,CAAC,MAAM,SAAS,GAAc;IAClC,OAAO,EAAE,YAAY;CACtB,CAAA;AAED,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,GAAG,CAAC,CAAA;AAE3C,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,IAAI,EAAE,CAAC;IACP,KAAK,EAAE,EAAE;IACT,KAAK,EAAE,CAAC;IACR,KAAK,EAAE,UAAU;CAClB,CAAA","sourcesContent":["import {\n ColumnConfig,\n FieldRenderer,\n GristClassifier,\n GristConfig,\n GristData,\n GristEventHandlerSet,\n GristRecord,\n GroupConfig,\n LabelConfig,\n ListConfig,\n TreeConfig,\n RowsConfig\n} from '../types'\n\nexport const ZERO_CLASSIFIER: GristClassifier = (record, rowIndex) => {}\nexport const ZERO_FIELD_RENDERER: FieldRenderer = (value, column, record, rowIndex, owner) => {}\n\nexport const ZERO_EVENTHANDLERSET: GristEventHandlerSet = {\n click: undefined,\n dblclick: undefined,\n focus: undefined,\n contextmenu: undefined\n}\nexport const ZERO_COLUMNS: ColumnConfig[] = []\nexport const ZERO_GROUPS: GroupConfig[] = []\nexport const ZERO_TOTALS: [] = []\nexport const ZERO_LABEL: LabelConfig = false\n\nexport const ZERO_COLUMN: ColumnConfig = {\n type: '',\n name: '',\n header: {\n renderer: column => {}\n },\n record: {\n renderer: ZERO_FIELD_RENDERER,\n classifier: ZERO_CLASSIFIER,\n options: {}\n },\n handlers: ZERO_EVENTHANDLERSET,\n label: ZERO_LABEL\n}\n\nexport const ZERO_ROWS: RowsConfig = {\n appendable: false,\n insertable: false,\n groups: ZERO_GROUPS,\n totals: ZERO_TOTALS,\n classifier: ZERO_CLASSIFIER,\n handlers: ZERO_EVENTHANDLERSET\n}\n\nexport const ZERO_LIST: ListConfig = {\n fields: ['name', 'description', 'updatedAt'],\n details: []\n}\n\nexport const ZERO_TREE: TreeConfig = {}\n\nexport const ZERO_CONFIG: GristConfig = {\n columns: ZERO_COLUMNS,\n rows: ZERO_ROWS,\n list: ZERO_LIST,\n tree: ZERO_TREE\n}\n\nexport const ZERO_RECORD: GristRecord = {}\nexport const ZERO_RECORDS: GristRecord[] = []\n\nexport const ZERO_DATA: GristData = {\n records: ZERO_RECORDS\n}\n\nexport const ZERO_PAGES = [20, 30, 50, 100]\n\nexport const ZERO_PAGINATION = {\n page: 1,\n limit: 20,\n total: 0,\n pages: ZERO_PAGES\n}\n"]}
|
1
|
+
{"version":3,"file":"zero-config.js","sourceRoot":"","sources":["../../../src/configure/zero-config.ts"],"names":[],"mappings":"AAeA,MAAM,CAAC,MAAM,eAAe,GAAoB,CAAC,MAAM,EAAE,QAAQ,EAAE,EAAE,GAAE,CAAC,CAAA;AACxE,MAAM,CAAC,MAAM,mBAAmB,GAAkB,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,GAAE,CAAC,CAAA;AAEhG,MAAM,CAAC,MAAM,oBAAoB,GAAyB;IACxD,KAAK,EAAE,SAAS;IAChB,QAAQ,EAAE,SAAS;IACnB,KAAK,EAAE,SAAS;IAChB,WAAW,EAAE,SAAS;CACvB,CAAA;AACD,MAAM,CAAC,MAAM,YAAY,GAAmB,EAAE,CAAA;AAC9C,MAAM,CAAC,MAAM,WAAW,GAAkB,EAAE,CAAA;AAC5C,MAAM,CAAC,MAAM,WAAW,GAAO,EAAE,CAAA;AACjC,MAAM,CAAC,MAAM,UAAU,GAAgB,KAAK,CAAA;AAE5C,MAAM,CAAC,MAAM,WAAW,GAAiB;IACvC,IAAI,EAAE,EAAE;IACR,IAAI,EAAE,EAAE;IACR,MAAM,EAAE;QACN,QAAQ,EAAE,MAAM,CAAC,EAAE,GAAE,CAAC;KACvB;IACD,MAAM,EAAE;QACN,QAAQ,EAAE,mBAAmB;QAC7B,UAAU,EAAE,eAAe;QAC3B,OAAO,EAAE,EAAE;KACZ;IACD,QAAQ,EAAE,oBAAoB;IAC9B,KAAK,EAAE,UAAU;CAClB,CAAA;AAED,MAAM,CAAC,MAAM,SAAS,GAAe;IACnC,UAAU,EAAE,KAAK;IACjB,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,KAAK;IACf,MAAM,EAAE,WAAW;IACnB,MAAM,EAAE,WAAW;IACnB,UAAU,EAAE,eAAe;IAC3B,QAAQ,EAAE,oBAAoB;CAC/B,CAAA;AAED,MAAM,CAAC,MAAM,SAAS,GAAe;IACnC,MAAM,EAAE,CAAC,MAAM,EAAE,aAAa,EAAE,WAAW,CAAC;IAC5C,OAAO,EAAE,EAAE;CACZ,CAAA;AAED,MAAM,CAAC,MAAM,SAAS,GAAe,EAAE,CAAA;AAEvC,MAAM,CAAC,MAAM,WAAW,GAAgB;IACtC,OAAO,EAAE,YAAY;IACrB,IAAI,EAAE,SAAS;IACf,IAAI,EAAE,SAAS;IACf,IAAI,EAAE,SAAS;CAChB,CAAA;AAED,MAAM,CAAC,MAAM,WAAW,GAAgB,EAAE,CAAA;AAC1C,MAAM,CAAC,MAAM,YAAY,GAAkB,EAAE,CAAA;AAE7C,MAAM,CAAC,MAAM,SAAS,GAAc;IAClC,OAAO,EAAE,YAAY;CACtB,CAAA;AAED,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,GAAG,CAAC,CAAA;AAE3C,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,IAAI,EAAE,CAAC;IACP,KAAK,EAAE,EAAE;IACT,KAAK,EAAE,CAAC;IACR,KAAK,EAAE,UAAU;CAClB,CAAA","sourcesContent":["import {\n ColumnConfig,\n FieldRenderer,\n GristClassifier,\n GristConfig,\n GristData,\n GristEventHandlerSet,\n GristRecord,\n GroupConfig,\n LabelConfig,\n ListConfig,\n TreeConfig,\n RowsConfig\n} from '../types'\n\nexport const ZERO_CLASSIFIER: GristClassifier = (record, rowIndex) => {}\nexport const ZERO_FIELD_RENDERER: FieldRenderer = (value, column, record, rowIndex, owner) => {}\n\nexport const ZERO_EVENTHANDLERSET: GristEventHandlerSet = {\n click: undefined,\n dblclick: undefined,\n focus: undefined,\n contextmenu: undefined\n}\nexport const ZERO_COLUMNS: ColumnConfig[] = []\nexport const ZERO_GROUPS: GroupConfig[] = []\nexport const ZERO_TOTALS: [] = []\nexport const ZERO_LABEL: LabelConfig = false\n\nexport const ZERO_COLUMN: ColumnConfig = {\n type: '',\n name: '',\n header: {\n renderer: column => {}\n },\n record: {\n renderer: ZERO_FIELD_RENDERER,\n classifier: ZERO_CLASSIFIER,\n options: {}\n },\n handlers: ZERO_EVENTHANDLERSET,\n label: ZERO_LABEL\n}\n\nexport const ZERO_ROWS: RowsConfig = {\n appendable: false,\n insertable: false,\n editable: false,\n groups: ZERO_GROUPS,\n totals: ZERO_TOTALS,\n classifier: ZERO_CLASSIFIER,\n handlers: ZERO_EVENTHANDLERSET\n}\n\nexport const ZERO_LIST: ListConfig = {\n fields: ['name', 'description', 'updatedAt'],\n details: []\n}\n\nexport const ZERO_TREE: TreeConfig = {}\n\nexport const ZERO_CONFIG: GristConfig = {\n columns: ZERO_COLUMNS,\n rows: ZERO_ROWS,\n list: ZERO_LIST,\n tree: ZERO_TREE\n}\n\nexport const ZERO_RECORD: GristRecord = {}\nexport const ZERO_RECORDS: GristRecord[] = []\n\nexport const ZERO_DATA: GristData = {\n records: ZERO_RECORDS\n}\n\nexport const ZERO_PAGES = [20, 30, 50, 100]\n\nexport const ZERO_PAGINATION = {\n page: 1,\n limit: 20,\n total: 0,\n pages: ZERO_PAGES\n}\n"]}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import '@material/
|
1
|
+
import '@material/web/icon/icon.js';
|
2
2
|
import './data-card-gutter.js';
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { __decorate } from "tslib";
|
2
|
-
import '@material/
|
2
|
+
import '@material/web/icon/icon.js';
|
3
3
|
import './data-card-gutter.js';
|
4
4
|
import { css, html, LitElement } from 'lit';
|
5
5
|
import { customElement, property, query } from 'lit/decorators.js';
|
@@ -7,7 +7,7 @@ import { OxPopup } from '@operato/popup';
|
|
7
7
|
let DataCardGutterMenu = class DataCardGutterMenu extends LitElement {
|
8
8
|
render() {
|
9
9
|
return html `
|
10
|
-
<
|
10
|
+
<md-icon @click=${(e) => this.open(e)}>more_horiz</md-icon>
|
11
11
|
<slot></slot>
|
12
12
|
`;
|
13
13
|
}
|
@@ -55,7 +55,7 @@ DataCardGutterMenu.styles = css `
|
|
55
55
|
padding: 4px;
|
56
56
|
}
|
57
57
|
|
58
|
-
|
58
|
+
md-icon {
|
59
59
|
flex: 1;
|
60
60
|
margin: 0;
|
61
61
|
margin-bottom: 1px;
|
@@ -65,7 +65,7 @@ DataCardGutterMenu.styles = css `
|
|
65
65
|
font-size: var(--grid-record-fontsize);
|
66
66
|
}
|
67
67
|
|
68
|
-
|
68
|
+
md-icon:hover {
|
69
69
|
cursor: pointer;
|
70
70
|
color: var(--grid-record-color-hover);
|
71
71
|
}
|
@@ -86,7 +86,7 @@ __decorate([
|
|
86
86
|
property()
|
87
87
|
], DataCardGutterMenu.prototype, "dblclickHandler", void 0);
|
88
88
|
__decorate([
|
89
|
-
query('
|
89
|
+
query('md-icon')
|
90
90
|
], DataCardGutterMenu.prototype, "icon", void 0);
|
91
91
|
DataCardGutterMenu = __decorate([
|
92
92
|
customElement('ox-card-gutter-menu')
|