@operato/data-grist 10.29.81 → 10.29.84
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/dist/src/filters/filter-select-buttons.js +4 -1
- package/dist/src/filters/pill-choice.d.ts +4 -6
- package/dist/src/filters/pill-choice.js +9 -14
- package/dist/src/gutters/gutter-button.js +2 -4
- package/dist/stories/accumulator-format.stories.d.ts +41 -0
- package/dist/stories/accumulator-format.stories.js +241 -0
- package/dist/stories/append-position.stories.d.ts +8 -0
- package/dist/stories/append-position.stories.js +183 -0
- package/dist/stories/barcode-input-filter.stories.d.ts +33 -0
- package/dist/stories/barcode-input-filter.stories.js +185 -0
- package/dist/stories/bounded-select-filters.stories.d.ts +25 -0
- package/dist/stories/bounded-select-filters.stories.js +283 -0
- package/dist/stories/bounded-select-record.stories.d.ts +25 -0
- package/dist/stories/bounded-select-record.stories.js +286 -0
- package/dist/stories/click-event-custom.stories.d.ts +45 -0
- package/dist/stories/click-event-custom.stories.js +248 -0
- package/dist/stories/click-event.stories.d.ts +45 -0
- package/dist/stories/click-event.stories.js +243 -0
- package/dist/stories/creatable-only-column.stories.d.ts +29 -0
- package/dist/stories/creatable-only-column.stories.js +232 -0
- package/dist/stories/default-filters.stories.d.ts +26 -0
- package/dist/stories/default-filters.stories.js +219 -0
- package/dist/stories/dynamic-editable.stories.d.ts +25 -0
- package/dist/stories/dynamic-editable.stories.js +293 -0
- package/dist/stories/empty-sorters.stories.d.ts +25 -0
- package/dist/stories/empty-sorters.stories.js +162 -0
- package/dist/stories/explicit-fetch.stories.d.ts +25 -0
- package/dist/stories/explicit-fetch.stories.js +166 -0
- package/dist/stories/fixed-column.stories.d.ts +26 -0
- package/dist/stories/fixed-column.stories.js +383 -0
- package/dist/stories/grid-setting.stories.d.ts +47 -0
- package/dist/stories/grid-setting.stories.js +453 -0
- package/dist/stories/grist-modes.stories.d.ts +37 -0
- package/dist/stories/grist-modes.stories.js +416 -0
- package/dist/stories/group-header.stories.d.ts +26 -0
- package/dist/stories/group-header.stories.js +410 -0
- package/dist/stories/record-view.stories.d.ts +24 -0
- package/dist/stories/record-view.stories.js +125 -0
- package/dist/stories/secret.stories.d.ts +37 -0
- package/dist/stories/secret.stories.js +219 -0
- package/dist/stories/textarea.stories.d.ts +37 -0
- package/dist/stories/textarea.stories.js +229 -0
- package/dist/stories/tree-column-with-checkbox.stories.d.ts +26 -0
- package/dist/stories/tree-column-with-checkbox.stories.js +267 -0
- package/dist/stories/tree-column.stories.d.ts +26 -0
- package/dist/stories/tree-column.stories.js +266 -0
- package/package.json +28 -13
- package/CHANGELOG.md +0 -7721
- package/dist/src/accumulator/accumulator.js.map +0 -1
- package/dist/src/configure/column-builder.js.map +0 -1
- package/dist/src/configure/config-builder.js.map +0 -1
- package/dist/src/configure/filters-option-builder.js.map +0 -1
- package/dist/src/configure/imex-option-builder.js.map +0 -1
- package/dist/src/configure/list-option-builder.js.map +0 -1
- package/dist/src/configure/rows-option-builder.js.map +0 -1
- package/dist/src/configure/tree-option-builder.js.map +0 -1
- package/dist/src/configure/zero-config.js.map +0 -1
- package/dist/src/const.js.map +0 -1
- package/dist/src/data-card/data-card-field.js.map +0 -1
- package/dist/src/data-card/data-card-gutter-menu.js.map +0 -1
- package/dist/src/data-card/data-card-gutter.js.map +0 -1
- package/dist/src/data-card/data-card.js.map +0 -1
- package/dist/src/data-card/event-handlers/record-card-click-handler.js.map +0 -1
- package/dist/src/data-card/event-handlers/record-card-dblclick-handler.js.map +0 -1
- package/dist/src/data-card/ox-card-thumb.js.map +0 -1
- package/dist/src/data-card/record-card.js.map +0 -1
- package/dist/src/data-consumer.js.map +0 -1
- package/dist/src/data-grid/data-grid-accum-field.js.map +0 -1
- package/dist/src/data-grid/data-grid-body-style.js.map +0 -1
- package/dist/src/data-grid/data-grid-body.js.map +0 -1
- package/dist/src/data-grid/data-grid-field.js.map +0 -1
- package/dist/src/data-grid/data-grid-footer.js.map +0 -1
- package/dist/src/data-grid/data-grid-header.js.map +0 -1
- package/dist/src/data-grid/data-grid.js.map +0 -1
- package/dist/src/data-grid/event-handlers/data-grid-body-click-handler.js.map +0 -1
- package/dist/src/data-grid/event-handlers/data-grid-body-contextmenu-handler.js.map +0 -1
- package/dist/src/data-grid/event-handlers/data-grid-body-dblclick-handler.js.map +0 -1
- package/dist/src/data-grid/event-handlers/data-grid-body-focus-change-handler.js.map +0 -1
- package/dist/src/data-grid/event-handlers/data-grid-body-keydown-handler.js.map +0 -1
- package/dist/src/data-grist.js.map +0 -1
- package/dist/src/data-list/data-list-field.js.map +0 -1
- package/dist/src/data-list/data-list-gutter.js.map +0 -1
- package/dist/src/data-list/data-list.js.map +0 -1
- package/dist/src/data-list/event-handlers/record-partial-click-handler.js.map +0 -1
- package/dist/src/data-list/event-handlers/record-partial-dblclick-handler.js.map +0 -1
- package/dist/src/data-list/event-handlers/record-partial-long-press-handler.js.map +0 -1
- package/dist/src/data-list/record-partial.js.map +0 -1
- package/dist/src/data-manipulator.js.map +0 -1
- package/dist/src/data-provider.js.map +0 -1
- package/dist/src/data-report/data-report-body-style.js.map +0 -1
- package/dist/src/data-report/data-report-body.js.map +0 -1
- package/dist/src/data-report/data-report-component.js.map +0 -1
- package/dist/src/data-report/data-report-field.js.map +0 -1
- package/dist/src/data-report/data-report-header.js.map +0 -1
- package/dist/src/data-report/event-handlers/data-report-body-click-handler.js.map +0 -1
- package/dist/src/data-report/event-handlers/data-report-body-dblclick-handler.js.map +0 -1
- package/dist/src/data-report/event-handlers/data-report-body-keydown-handler.js.map +0 -1
- package/dist/src/data-report.js.map +0 -1
- package/dist/src/edit-rebase.js.map +0 -1
- package/dist/src/editors/index.js.map +0 -1
- package/dist/src/editors/ox-grist-editor-checkbox.js.map +0 -1
- package/dist/src/editors/ox-grist-editor-color.js.map +0 -1
- package/dist/src/editors/ox-grist-editor-date.js.map +0 -1
- package/dist/src/editors/ox-grist-editor-datetime.js.map +0 -1
- package/dist/src/editors/ox-grist-editor-email.js.map +0 -1
- package/dist/src/editors/ox-grist-editor-file.js.map +0 -1
- package/dist/src/editors/ox-grist-editor-image.js.map +0 -1
- package/dist/src/editors/ox-grist-editor-json5.js.map +0 -1
- package/dist/src/editors/ox-grist-editor-month.js.map +0 -1
- package/dist/src/editors/ox-grist-editor-multiple-select.js.map +0 -1
- package/dist/src/editors/ox-grist-editor-number.js.map +0 -1
- package/dist/src/editors/ox-grist-editor-password.js.map +0 -1
- package/dist/src/editors/ox-grist-editor-secret.js.map +0 -1
- package/dist/src/editors/ox-grist-editor-select.js.map +0 -1
- package/dist/src/editors/ox-grist-editor-tel.js.map +0 -1
- package/dist/src/editors/ox-grist-editor-text-select.js.map +0 -1
- package/dist/src/editors/ox-grist-editor-text.js.map +0 -1
- package/dist/src/editors/ox-grist-editor-textarea.js.map +0 -1
- package/dist/src/editors/ox-grist-editor-time.js.map +0 -1
- package/dist/src/editors/ox-grist-editor-timezone.js.map +0 -1
- package/dist/src/editors/ox-grist-editor-tree.js.map +0 -1
- package/dist/src/editors/ox-grist-editor-varname.js.map +0 -1
- package/dist/src/editors/ox-grist-editor-week.js.map +0 -1
- package/dist/src/editors/ox-grist-editor.js.map +0 -1
- package/dist/src/editors/ox-input-tree.js.map +0 -1
- package/dist/src/editors/ox-popup-code-input.js.map +0 -1
- package/dist/src/editors/registry.js.map +0 -1
- package/dist/src/empty-note-render.js.map +0 -1
- package/dist/src/empty-note.js.map +0 -1
- package/dist/src/filters/filter-checkbox.js.map +0 -1
- package/dist/src/filters/filter-input-barcode.js.map +0 -1
- package/dist/src/filters/filter-input.js.map +0 -1
- package/dist/src/filters/filter-ownership.js.map +0 -1
- package/dist/src/filters/filter-range-date.js.map +0 -1
- package/dist/src/filters/filter-range-number.js.map +0 -1
- package/dist/src/filters/filter-select-buttons.js.map +0 -1
- package/dist/src/filters/filter-select.js.map +0 -1
- package/dist/src/filters/filter-styles.js.map +0 -1
- package/dist/src/filters/filters-form.js.map +0 -1
- package/dist/src/filters/index.js.map +0 -1
- package/dist/src/filters/pill-choice.js.map +0 -1
- package/dist/src/filters/registry.js.map +0 -1
- package/dist/src/formatters/date-formatter.js.map +0 -1
- package/dist/src/formatters/index.js.map +0 -1
- package/dist/src/formatters/number-formatter.js.map +0 -1
- package/dist/src/formatters/registry.js.map +0 -1
- package/dist/src/formatters/text-formatter.js.map +0 -1
- package/dist/src/group-heading.js.map +0 -1
- package/dist/src/gutters/gutter-button.js.map +0 -1
- package/dist/src/gutters/gutter-dirty.js.map +0 -1
- package/dist/src/gutters/gutter-row-selector.js.map +0 -1
- package/dist/src/gutters/gutter-sequence.js.map +0 -1
- package/dist/src/gutters/index.js.map +0 -1
- package/dist/src/gutters/registry.js.map +0 -1
- package/dist/src/handlers/contextmenu-tree-mutation.js.map +0 -1
- package/dist/src/handlers/index.js.map +0 -1
- package/dist/src/handlers/move-down.js.map +0 -1
- package/dist/src/handlers/move-up.js.map +0 -1
- package/dist/src/handlers/record-copy.js.map +0 -1
- package/dist/src/handlers/record-delete.js.map +0 -1
- package/dist/src/handlers/record-view-handler.js.map +0 -1
- package/dist/src/handlers/registry.js.map +0 -1
- package/dist/src/handlers/select-row-toggle.js.map +0 -1
- package/dist/src/handlers/select-row.js.map +0 -1
- package/dist/src/index.js.map +0 -1
- package/dist/src/personalizer/index.js.map +0 -1
- package/dist/src/personalizer/ox-grist-filter-personalizer.js.map +0 -1
- package/dist/src/personalizer/ox-grist-personalizer.js.map +0 -1
- package/dist/src/personalizer/personalizer-chrome.js.map +0 -1
- package/dist/src/record-view/event-handlers/record-view-body-click-handler.js.map +0 -1
- package/dist/src/record-view/event-handlers/record-view-body-keydown-handler.js.map +0 -1
- package/dist/src/record-view/index.js.map +0 -1
- package/dist/src/record-view/ox-record-creator.js.map +0 -1
- package/dist/src/record-view/record-view-body.js.map +0 -1
- package/dist/src/record-view/record-view-handler.js.map +0 -1
- package/dist/src/record-view/record-view.js.map +0 -1
- package/dist/src/renderers/index.js.map +0 -1
- package/dist/src/renderers/ox-grist-renderer-boolean.js.map +0 -1
- package/dist/src/renderers/ox-grist-renderer-color.js.map +0 -1
- package/dist/src/renderers/ox-grist-renderer-date.js.map +0 -1
- package/dist/src/renderers/ox-grist-renderer-file.js.map +0 -1
- package/dist/src/renderers/ox-grist-renderer-image.js.map +0 -1
- package/dist/src/renderers/ox-grist-renderer-json5.js.map +0 -1
- package/dist/src/renderers/ox-grist-renderer-link.js.map +0 -1
- package/dist/src/renderers/ox-grist-renderer-password.js.map +0 -1
- package/dist/src/renderers/ox-grist-renderer-progress.js.map +0 -1
- package/dist/src/renderers/ox-grist-renderer-secret.js.map +0 -1
- package/dist/src/renderers/ox-grist-renderer-select.js.map +0 -1
- package/dist/src/renderers/ox-grist-renderer-sparkline.js.map +0 -1
- package/dist/src/renderers/ox-grist-renderer-text-select.js.map +0 -1
- package/dist/src/renderers/ox-grist-renderer-text.js.map +0 -1
- package/dist/src/renderers/ox-grist-renderer-textarea.js.map +0 -1
- package/dist/src/renderers/ox-grist-renderer-tree.js.map +0 -1
- package/dist/src/renderers/ox-grist-renderer.js.map +0 -1
- package/dist/src/renderers/registry.js.map +0 -1
- package/dist/src/sorters/sorters-control.js.map +0 -1
- package/dist/src/types.js.map +0 -1
- package/dist/src/utils/column-text.js.map +0 -1
- package/dist/src/utils/field-value.js.map +0 -1
- package/dist/src/utils/index.js.map +0 -1
- package/dist/src/utils/list-param.js.map +0 -1
- package/dist/src/utils/select-range.js.map +0 -1
- package/dist/src/utils/supports-passive.js.map +0 -1
- package/dist/test/accessible-name.test.d.ts +0 -2
- package/dist/test/accessible-name.test.js +0 -324
- package/dist/test/accessible-name.test.js.map +0 -1
- package/dist/test/accumulator-labels.test.d.ts +0 -1
- package/dist/test/accumulator-labels.test.js +0 -32
- package/dist/test/accumulator-labels.test.js.map +0 -1
- package/dist/test/address-intents.test.d.ts +0 -1
- package/dist/test/address-intents.test.js +0 -201
- package/dist/test/address-intents.test.js.map +0 -1
- package/dist/test/card-selector.test.d.ts +0 -1
- package/dist/test/card-selector.test.js +0 -71
- package/dist/test/card-selector.test.js.map +0 -1
- package/dist/test/card-thumb.test.d.ts +0 -1
- package/dist/test/card-thumb.test.js +0 -44
- package/dist/test/card-thumb.test.js.map +0 -1
- package/dist/test/card-totals-narrow.test.d.ts +0 -1
- package/dist/test/card-totals-narrow.test.js +0 -103
- package/dist/test/card-totals-narrow.test.js.map +0 -1
- package/dist/test/cell-button-row-height.test.d.ts +0 -1
- package/dist/test/cell-button-row-height.test.js +0 -53
- package/dist/test/cell-button-row-height.test.js.map +0 -1
- package/dist/test/column-resize.test.d.ts +0 -1
- package/dist/test/column-resize.test.js +0 -153
- package/dist/test/column-resize.test.js.map +0 -1
- package/dist/test/control-heights.test.d.ts +0 -1
- package/dist/test/control-heights.test.js +0 -25
- package/dist/test/control-heights.test.js.map +0 -1
- package/dist/test/count-handler.test.d.ts +0 -1
- package/dist/test/count-handler.test.js +0 -56
- package/dist/test/count-handler.test.js.map +0 -1
- package/dist/test/create-paste-policy.test.d.ts +0 -1
- package/dist/test/create-paste-policy.test.js +0 -159
- package/dist/test/create-paste-policy.test.js.map +0 -1
- package/dist/test/data-integrity.test.d.ts +0 -1
- package/dist/test/data-integrity.test.js +0 -145
- package/dist/test/data-integrity.test.js.map +0 -1
- package/dist/test/date-fields.test.d.ts +0 -2
- package/dist/test/date-fields.test.js +0 -138
- package/dist/test/date-fields.test.js.map +0 -1
- package/dist/test/destructive-actions.test.d.ts +0 -11
- package/dist/test/destructive-actions.test.js +0 -147
- package/dist/test/destructive-actions.test.js.map +0 -1
- package/dist/test/edit-lifecycle.test.d.ts +0 -2
- package/dist/test/edit-lifecycle.test.js +0 -270
- package/dist/test/edit-lifecycle.test.js.map +0 -1
- package/dist/test/edit-rebase.test.d.ts +0 -1
- package/dist/test/edit-rebase.test.js +0 -185
- package/dist/test/edit-rebase.test.js.map +0 -1
- package/dist/test/editor-commit.test.d.ts +0 -2
- package/dist/test/editor-commit.test.js +0 -68
- package/dist/test/editor-commit.test.js.map +0 -1
- package/dist/test/fetch-failure-state.test.d.ts +0 -1
- package/dist/test/fetch-failure-state.test.js +0 -129
- package/dist/test/fetch-failure-state.test.js.map +0 -1
- package/dist/test/field-contains-content.test.d.ts +0 -1
- package/dist/test/field-contains-content.test.js +0 -101
- package/dist/test/field-contains-content.test.js.map +0 -1
- package/dist/test/field-hint.test.d.ts +0 -2
- package/dist/test/field-hint.test.js +0 -54
- package/dist/test/field-hint.test.js.map +0 -1
- package/dist/test/filter-labels.test.d.ts +0 -2
- package/dist/test/filter-labels.test.js +0 -140
- package/dist/test/filter-labels.test.js.map +0 -1
- package/dist/test/filter-ownership.test.d.ts +0 -1
- package/dist/test/filter-ownership.test.js +0 -83
- package/dist/test/filter-ownership.test.js.map +0 -1
- package/dist/test/filter-select-buttons-count.test.d.ts +0 -1
- package/dist/test/filter-select-buttons-count.test.js +0 -36
- package/dist/test/filter-select-buttons-count.test.js.map +0 -1
- package/dist/test/filter-typing.test.d.ts +0 -2
- package/dist/test/filter-typing.test.js +0 -66
- package/dist/test/filter-typing.test.js.map +0 -1
- package/dist/test/filters-phone-width.test.d.ts +0 -1
- package/dist/test/filters-phone-width.test.js +0 -33
- package/dist/test/filters-phone-width.test.js.map +0 -1
- package/dist/test/filters-phone-wrap.test.d.ts +0 -1
- package/dist/test/filters-phone-wrap.test.js +0 -17
- package/dist/test/filters-phone-wrap.test.js.map +0 -1
- package/dist/test/filters-pills.test.d.ts +0 -2
- package/dist/test/filters-pills.test.js +0 -149
- package/dist/test/filters-pills.test.js.map +0 -1
- package/dist/test/first-click-stays.test.d.ts +0 -1
- package/dist/test/first-click-stays.test.js +0 -77
- package/dist/test/first-click-stays.test.js.map +0 -1
- package/dist/test/fixed-column-opaque.test.d.ts +0 -1
- package/dist/test/fixed-column-opaque.test.js +0 -134
- package/dist/test/fixed-column-opaque.test.js.map +0 -1
- package/dist/test/flexible-columns.test.d.ts +0 -1
- package/dist/test/flexible-columns.test.js +0 -134
- package/dist/test/flexible-columns.test.js.map +0 -1
- package/dist/test/grid-single-scroller.test.d.ts +0 -1
- package/dist/test/grid-single-scroller.test.js +0 -107
- package/dist/test/grid-single-scroller.test.js.map +0 -1
- package/dist/test/group-heading.test.d.ts +0 -1
- package/dist/test/group-heading.test.js +0 -208
- package/dist/test/group-heading.test.js.map +0 -1
- package/dist/test/latest-fetch-wins.test.d.ts +0 -1
- package/dist/test/latest-fetch-wins.test.js +0 -91
- package/dist/test/latest-fetch-wins.test.js.map +0 -1
- package/dist/test/list-defaults.test.d.ts +0 -2
- package/dist/test/list-defaults.test.js +0 -146
- package/dist/test/list-defaults.test.js.map +0 -1
- package/dist/test/list-records.test.d.ts +0 -1
- package/dist/test/list-records.test.js +0 -46
- package/dist/test/list-records.test.js.map +0 -1
- package/dist/test/office-density.test.d.ts +0 -1
- package/dist/test/office-density.test.js +0 -52
- package/dist/test/office-density.test.js.map +0 -1
- package/dist/test/page-errors.d.ts +0 -1
- package/dist/test/page-errors.js +0 -44
- package/dist/test/page-errors.js.map +0 -1
- package/dist/test/paste-integrity.test.d.ts +0 -1
- package/dist/test/paste-integrity.test.js +0 -163
- package/dist/test/paste-integrity.test.js.map +0 -1
- package/dist/test/record-card-height.test.d.ts +0 -1
- package/dist/test/record-card-height.test.js +0 -15
- package/dist/test/record-card-height.test.js.map +0 -1
- package/dist/test/record-view-popup-editor.test.d.ts +0 -1
- package/dist/test/record-view-popup-editor.test.js +0 -71
- package/dist/test/record-view-popup-editor.test.js.map +0 -1
- package/dist/test/renderer-date-calendar-day.test.d.ts +0 -1
- package/dist/test/renderer-date-calendar-day.test.js +0 -48
- package/dist/test/renderer-date-calendar-day.test.js.map +0 -1
- package/dist/test/request-generation.test.d.ts +0 -1
- package/dist/test/request-generation.test.js +0 -153
- package/dist/test/request-generation.test.js.map +0 -1
- package/dist/test/resubmit.test.d.ts +0 -1
- package/dist/test/resubmit.test.js +0 -83
- package/dist/test/resubmit.test.js.map +0 -1
- package/dist/test/row-hover-visible.test.d.ts +0 -1
- package/dist/test/row-hover-visible.test.js +0 -139
- package/dist/test/row-hover-visible.test.js.map +0 -1
- package/dist/test/search-term.test.d.ts +0 -1
- package/dist/test/search-term.test.js +0 -108
- package/dist/test/search-term.test.js.map +0 -1
- package/dist/test/searchable-select.test.d.ts +0 -1
- package/dist/test/searchable-select.test.js +0 -65
- package/dist/test/searchable-select.test.js.map +0 -1
- package/dist/test/select-empty-value.test.d.ts +0 -1
- package/dist/test/select-empty-value.test.js +0 -61
- package/dist/test/select-empty-value.test.js.map +0 -1
- package/dist/test/shift-range-select.test.d.ts +0 -1
- package/dist/test/shift-range-select.test.js +0 -100
- package/dist/test/shift-range-select.test.js.map +0 -1
- package/dist/test/sparkline-renderer.test.d.ts +0 -1
- package/dist/test/sparkline-renderer.test.js +0 -36
- package/dist/test/sparkline-renderer.test.js.map +0 -1
- package/dist/test/wheel-one-scroller.test.d.ts +0 -2
- package/dist/test/wheel-one-scroller.test.js +0 -275
- package/dist/test/wheel-one-scroller.test.js.map +0 -1
- package/dist/tsconfig.tsbuildinfo +0 -1
- package/docs/USER_GUIDE.md +0 -144
- package/docs/configuration/README.md +0 -68
- package/docs/configuration/columns.md +0 -391
- package/docs/configuration/editors.md +0 -53
- package/docs/configuration/events.md +0 -44
- package/docs/configuration/i18n.md +0 -40
- package/docs/configuration/options.md +0 -100
- package/docs/configuration/theme.md +0 -39
- package/docs/default-value/default-value.md +0 -97
- package/docs/default-value/value-generator/date-generator.md +0 -69
- package/docs/default-value/value-generator/hour-time-generator.md +0 -76
- package/docs/default-value/value-generator/minute-time-generator.md +0 -76
- package/docs/default-value/value-generator/month-date-generator.md +0 -45
- package/docs/default-value/value-generator/now-generator.md +0 -68
- package/docs/default-value/value-generator/time-generator.md +0 -71
- package/docs/default-value/value-generator/today-generator.md +0 -68
- package/docs/default-value/value-generator/week-date-generator.md +0 -74
- package/docs/default-value/value-generator/year-date-generator.md +0 -74
- package/docs/gutter/gutter.md +0 -7
- package/test/accessible-name.test.ts +0 -408
- package/test/accumulator-labels.test.ts +0 -36
- package/test/address-intents.test.ts +0 -202
- package/test/card-selector.test.ts +0 -82
- package/test/card-thumb.test.ts +0 -51
- package/test/card-totals-narrow.test.ts +0 -128
- package/test/cell-button-row-height.test.ts +0 -63
- package/test/column-resize.test.ts +0 -206
- package/test/control-heights.test.ts +0 -31
- package/test/count-handler.test.ts +0 -61
- package/test/create-paste-policy.test.ts +0 -177
- package/test/data-integrity.test.ts +0 -150
- package/test/date-fields.test.ts +0 -163
- package/test/destructive-actions.test.ts +0 -137
- package/test/edit-lifecycle.test.ts +0 -302
- package/test/edit-rebase.test.ts +0 -220
- package/test/editor-commit.test.ts +0 -103
- package/test/fetch-failure-state.test.ts +0 -156
- package/test/field-contains-content.test.ts +0 -125
- package/test/field-hint.test.ts +0 -60
- package/test/filter-labels.test.ts +0 -153
- package/test/filter-ownership.test.ts +0 -104
- package/test/filter-select-buttons-count.test.ts +0 -38
- package/test/filter-typing.test.ts +0 -77
- package/test/filters-phone-width.test.ts +0 -35
- package/test/filters-phone-wrap.test.ts +0 -22
- package/test/filters-pills.test.ts +0 -162
- package/test/first-click-stays.test.ts +0 -101
- package/test/fixed-column-opaque.test.ts +0 -183
- package/test/flexible-columns.test.ts +0 -181
- package/test/grid-single-scroller.test.ts +0 -150
- package/test/group-heading.test.ts +0 -244
- package/test/latest-fetch-wins.test.ts +0 -114
- package/test/list-defaults.test.ts +0 -164
- package/test/list-records.test.ts +0 -58
- package/test/office-density.test.ts +0 -57
- package/test/page-errors.ts +0 -43
- package/test/paste-integrity.test.ts +0 -168
- package/test/record-card-height.test.ts +0 -19
- package/test/record-view-popup-editor.test.ts +0 -84
- package/test/renderer-date-calendar-day.test.ts +0 -55
- package/test/request-generation.test.ts +0 -163
- package/test/resubmit.test.ts +0 -96
- package/test/row-hover-visible.test.ts +0 -180
- package/test/search-term.test.ts +0 -156
- package/test/searchable-select.test.ts +0 -77
- package/test/select-empty-value.test.ts +0 -71
- package/test/shift-range-select.test.ts +0 -112
- package/test/sparkline-renderer.test.ts +0 -40
- package/test/wheel-one-scroller.test.ts +0 -359
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
import '../src/index.js';
|
|
2
|
+
import '../src/filters/filters-form.js';
|
|
3
|
+
import '../src/sorters/sorters-control.js';
|
|
4
|
+
import '@operato/popup/ox-popup-list.js';
|
|
5
|
+
import '@material/web/icon/icon.js';
|
|
6
|
+
import { html } from 'lit';
|
|
7
|
+
import { styles as MDTypeScaleStyles } from '@material/web/typography/md-typescale-styles.js';
|
|
8
|
+
import { CommonHeaderStyles, CommonGristStyles } from '@operato/styles';
|
|
9
|
+
const fetchHandler = async ({ filters, page, limit }) => {
|
|
10
|
+
var total = 120993;
|
|
11
|
+
var start = (page - 1) * limit;
|
|
12
|
+
await new Promise(resolve => setTimeout(resolve, 500));
|
|
13
|
+
return {
|
|
14
|
+
total,
|
|
15
|
+
records: Array(limit * page > total ? total % limit : limit)
|
|
16
|
+
.fill('')
|
|
17
|
+
.map((item, idx) => {
|
|
18
|
+
return {
|
|
19
|
+
id: String(idx),
|
|
20
|
+
name: idx % 2 ? `shnam-${start + idx + 1}` : `heartyoh-${start + idx + 1}`,
|
|
21
|
+
description: idx % 2 ? `hatiolabmanager${start + idx + 1}1234567890` : `hatiosea manager-${start + idx + 1}`,
|
|
22
|
+
createdAt: Date.now(),
|
|
23
|
+
updatedAt: Date.now()
|
|
24
|
+
};
|
|
25
|
+
})
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
const config = {
|
|
29
|
+
list: {
|
|
30
|
+
fields: ['name', 'description'],
|
|
31
|
+
details: ['updatedAt', 'createdAt']
|
|
32
|
+
},
|
|
33
|
+
columns: [
|
|
34
|
+
{
|
|
35
|
+
type: 'gutter',
|
|
36
|
+
gutterName: 'sequence'
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
type: 'string',
|
|
40
|
+
name: 'id',
|
|
41
|
+
hidden: true
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
type: 'string',
|
|
45
|
+
name: 'name',
|
|
46
|
+
label: true,
|
|
47
|
+
header: 'name',
|
|
48
|
+
filter: {
|
|
49
|
+
operator: 'eq',
|
|
50
|
+
value: 'shnam'
|
|
51
|
+
},
|
|
52
|
+
sortable: true,
|
|
53
|
+
width: 120
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
type: 'string',
|
|
57
|
+
name: 'description',
|
|
58
|
+
header: 'description',
|
|
59
|
+
filter: {
|
|
60
|
+
operator: 'like',
|
|
61
|
+
value: 'hahaha'
|
|
62
|
+
},
|
|
63
|
+
record: {
|
|
64
|
+
align: 'left'
|
|
65
|
+
},
|
|
66
|
+
width: 200
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
type: 'datetime',
|
|
70
|
+
name: 'updatedAt',
|
|
71
|
+
header: 'updated at',
|
|
72
|
+
width: 180
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
type: 'datetime',
|
|
76
|
+
name: 'createdAt',
|
|
77
|
+
header: 'created at',
|
|
78
|
+
width: 180
|
|
79
|
+
}
|
|
80
|
+
],
|
|
81
|
+
pagination: {
|
|
82
|
+
pages: [30, 50, 100, 200]
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
export default {
|
|
86
|
+
title: 'Data-grist/empty sorters for ox-grist',
|
|
87
|
+
component: 'ox-grist',
|
|
88
|
+
argTypes: {
|
|
89
|
+
theme: { control: 'select', options: ['light', 'dark'] }
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
const Template = ({}) => html ` <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap" rel="stylesheet" />
|
|
93
|
+
|
|
94
|
+
<link href="/themes/light.css" rel="stylesheet" />
|
|
95
|
+
<link href="/themes/dark.css" rel="stylesheet" />
|
|
96
|
+
<link href="/themes/spacing.css" rel="stylesheet" />
|
|
97
|
+
<link href="/themes/grist-theme.css" rel="stylesheet" />
|
|
98
|
+
|
|
99
|
+
<link
|
|
100
|
+
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1"
|
|
101
|
+
rel="stylesheet"
|
|
102
|
+
/>
|
|
103
|
+
<link
|
|
104
|
+
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL@20..48,100..700,0..1"
|
|
105
|
+
rel="stylesheet"
|
|
106
|
+
/>
|
|
107
|
+
<link
|
|
108
|
+
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL@20..48,100..700,0..1"
|
|
109
|
+
rel="stylesheet"
|
|
110
|
+
/>
|
|
111
|
+
|
|
112
|
+
<style>
|
|
113
|
+
${MDTypeScaleStyles.cssText}
|
|
114
|
+
</style>
|
|
115
|
+
|
|
116
|
+
<style>
|
|
117
|
+
${CommonGristStyles.cssText}
|
|
118
|
+
${CommonHeaderStyles.cssText}
|
|
119
|
+
</style>
|
|
120
|
+
|
|
121
|
+
<style>
|
|
122
|
+
ox-grist {
|
|
123
|
+
height: 600px;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
ox-filters-form {
|
|
127
|
+
flex: 1;
|
|
128
|
+
}
|
|
129
|
+
</style>
|
|
130
|
+
|
|
131
|
+
<ox-grist
|
|
132
|
+
.config=${config}
|
|
133
|
+
mode="GRID"
|
|
134
|
+
.fetchHandler=${fetchHandler}
|
|
135
|
+
@filters-change=${(e) => console.log('filters', e.target.filters)}
|
|
136
|
+
>
|
|
137
|
+
<div slot="headroom" class="header">
|
|
138
|
+
<div class="filters">
|
|
139
|
+
<ox-filters-form></ox-filters-form>
|
|
140
|
+
|
|
141
|
+
<div id="sorters">
|
|
142
|
+
Sort
|
|
143
|
+
<md-icon
|
|
144
|
+
@click=${(e) => {
|
|
145
|
+
const target = e.currentTarget;
|
|
146
|
+
target.closest('#sorters').querySelector('#sorter-control').open({
|
|
147
|
+
right: 0,
|
|
148
|
+
top: target.offsetTop + target.offsetHeight
|
|
149
|
+
});
|
|
150
|
+
}}
|
|
151
|
+
>expand_more</md-icon
|
|
152
|
+
>
|
|
153
|
+
<ox-popup id="sorter-control">
|
|
154
|
+
<ox-sorters-control> </ox-sorters-control>
|
|
155
|
+
</ox-popup>
|
|
156
|
+
</div>
|
|
157
|
+
</div>
|
|
158
|
+
</div>
|
|
159
|
+
</ox-grist>`;
|
|
160
|
+
export const Regular = Template.bind({});
|
|
161
|
+
Regular.args = {};
|
|
162
|
+
//# sourceMappingURL=empty-sorters.stories.js.map
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import '../src/index.js';
|
|
2
|
+
import '../src/filters/filters-form.js';
|
|
3
|
+
import '../src/sorters/sorters-control.js';
|
|
4
|
+
import '@operato/popup/ox-popup-list.js';
|
|
5
|
+
import '@material/web/icon/icon.js';
|
|
6
|
+
import { TemplateResult } from 'lit';
|
|
7
|
+
declare const _default: {
|
|
8
|
+
title: string;
|
|
9
|
+
component: string;
|
|
10
|
+
argTypes: {
|
|
11
|
+
explicitFetch: {
|
|
12
|
+
control: string;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
export default _default;
|
|
17
|
+
interface Story<T> {
|
|
18
|
+
(args: T): TemplateResult;
|
|
19
|
+
args?: Partial<T>;
|
|
20
|
+
argTypes?: Record<string, unknown>;
|
|
21
|
+
}
|
|
22
|
+
interface ArgTypes {
|
|
23
|
+
explicitFetch: boolean;
|
|
24
|
+
}
|
|
25
|
+
export declare const Regular: Story<ArgTypes>;
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
import '../src/index.js';
|
|
2
|
+
import '../src/filters/filters-form.js';
|
|
3
|
+
import '../src/sorters/sorters-control.js';
|
|
4
|
+
import '@operato/popup/ox-popup-list.js';
|
|
5
|
+
import '@material/web/icon/icon.js';
|
|
6
|
+
import { html } from 'lit';
|
|
7
|
+
import { styles as MDTypeScaleStyles } from '@material/web/typography/md-typescale-styles.js';
|
|
8
|
+
import { CommonHeaderStyles, CommonGristStyles } from '@operato/styles';
|
|
9
|
+
const fetchHandler = async ({ page, limit }) => {
|
|
10
|
+
var total = 120993;
|
|
11
|
+
var start = (page - 1) * limit;
|
|
12
|
+
await new Promise(resolve => setTimeout(resolve, 500));
|
|
13
|
+
return {
|
|
14
|
+
total,
|
|
15
|
+
records: Array(limit * page > total ? total % limit : limit)
|
|
16
|
+
.fill('')
|
|
17
|
+
.map((item, idx) => {
|
|
18
|
+
return {
|
|
19
|
+
id: String(idx),
|
|
20
|
+
name: idx % 2 ? `shnam-${start + idx + 1}` : `heartyoh-${start + idx + 1}`,
|
|
21
|
+
description: idx % 2 ? `hatiolabmanager${start + idx + 1}1234567890` : `hatiosea manager-${start + idx + 1}`,
|
|
22
|
+
createdAt: Date.now(),
|
|
23
|
+
updatedAt: Date.now()
|
|
24
|
+
};
|
|
25
|
+
})
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
const config = {
|
|
29
|
+
list: {
|
|
30
|
+
fields: ['name', 'description'],
|
|
31
|
+
details: ['updatedAt', 'createdAt']
|
|
32
|
+
},
|
|
33
|
+
columns: [
|
|
34
|
+
{
|
|
35
|
+
type: 'gutter',
|
|
36
|
+
gutterName: 'sequence'
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
type: 'string',
|
|
40
|
+
name: 'id',
|
|
41
|
+
hidden: true
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
type: 'string',
|
|
45
|
+
name: 'name',
|
|
46
|
+
label: true,
|
|
47
|
+
header: 'name',
|
|
48
|
+
filter: 'search',
|
|
49
|
+
sortable: true,
|
|
50
|
+
width: 120
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
type: 'string',
|
|
54
|
+
name: 'description',
|
|
55
|
+
header: 'description',
|
|
56
|
+
filter: 'search',
|
|
57
|
+
record: {
|
|
58
|
+
align: 'left'
|
|
59
|
+
},
|
|
60
|
+
width: 200
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
type: 'datetime',
|
|
64
|
+
name: 'updatedAt',
|
|
65
|
+
header: 'updated at',
|
|
66
|
+
width: 180
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
type: 'datetime',
|
|
70
|
+
name: 'createdAt',
|
|
71
|
+
header: 'created at',
|
|
72
|
+
width: 180
|
|
73
|
+
}
|
|
74
|
+
],
|
|
75
|
+
rows: {},
|
|
76
|
+
sorters: [
|
|
77
|
+
{
|
|
78
|
+
name: 'name',
|
|
79
|
+
desc: true
|
|
80
|
+
}
|
|
81
|
+
],
|
|
82
|
+
pagination: {
|
|
83
|
+
pages: [30, 50, 100, 200]
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
export default {
|
|
87
|
+
title: 'Data-grist/explicit-fetch attribute for ox-grist',
|
|
88
|
+
component: 'ox-grist',
|
|
89
|
+
argTypes: {
|
|
90
|
+
explicitFetch: { control: 'boolean' }
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
const Template = ({ explicitFetch = false }) => html ` <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap" rel="stylesheet" />
|
|
94
|
+
|
|
95
|
+
<link href="/themes/light.css" rel="stylesheet" />
|
|
96
|
+
<link href="/themes/dark.css" rel="stylesheet" />
|
|
97
|
+
<link href="/themes/spacing.css" rel="stylesheet" />
|
|
98
|
+
<link href="/themes/grist-theme.css" rel="stylesheet" />
|
|
99
|
+
|
|
100
|
+
<link
|
|
101
|
+
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1"
|
|
102
|
+
rel="stylesheet"
|
|
103
|
+
/>
|
|
104
|
+
<link
|
|
105
|
+
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL@20..48,100..700,0..1"
|
|
106
|
+
rel="stylesheet"
|
|
107
|
+
/>
|
|
108
|
+
<link
|
|
109
|
+
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL@20..48,100..700,0..1"
|
|
110
|
+
rel="stylesheet"
|
|
111
|
+
/>
|
|
112
|
+
|
|
113
|
+
<style>
|
|
114
|
+
${MDTypeScaleStyles.cssText}
|
|
115
|
+
</style>
|
|
116
|
+
|
|
117
|
+
<style>
|
|
118
|
+
${CommonGristStyles.cssText}
|
|
119
|
+
${CommonHeaderStyles.cssText}
|
|
120
|
+
</style>
|
|
121
|
+
|
|
122
|
+
<style>
|
|
123
|
+
ox-grist {
|
|
124
|
+
height: 600px;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
ox-filters-form {
|
|
128
|
+
flex: 1;
|
|
129
|
+
}
|
|
130
|
+
</style>
|
|
131
|
+
|
|
132
|
+
<ox-grist
|
|
133
|
+
.config=${config}
|
|
134
|
+
mode="GRID"
|
|
135
|
+
?explicit-fetch=${explicitFetch}
|
|
136
|
+
.fetchHandler=${fetchHandler}
|
|
137
|
+
@filters-change=${(e) => console.log('filters', e.target.filters)}
|
|
138
|
+
>
|
|
139
|
+
<div slot="headroom" class="header">
|
|
140
|
+
<div class="filters">
|
|
141
|
+
<ox-filters-form></ox-filters-form>
|
|
142
|
+
|
|
143
|
+
<div id="sorters">
|
|
144
|
+
Sort
|
|
145
|
+
<md-icon
|
|
146
|
+
@click=${(e) => {
|
|
147
|
+
const target = e.currentTarget;
|
|
148
|
+
target.closest('#sorters').querySelector('#sorter-control').open({
|
|
149
|
+
right: 0,
|
|
150
|
+
top: target.offsetTop + target.offsetHeight
|
|
151
|
+
});
|
|
152
|
+
}}
|
|
153
|
+
>expand_more</md-icon
|
|
154
|
+
>
|
|
155
|
+
<ox-popup id="sorter-control">
|
|
156
|
+
<ox-sorters-control> </ox-sorters-control>
|
|
157
|
+
</ox-popup>
|
|
158
|
+
</div>
|
|
159
|
+
</div>
|
|
160
|
+
</div>
|
|
161
|
+
</ox-grist>`;
|
|
162
|
+
export const Regular = Template.bind({});
|
|
163
|
+
Regular.args = {
|
|
164
|
+
explicitFetch: true
|
|
165
|
+
};
|
|
166
|
+
//# sourceMappingURL=explicit-fetch.stories.js.map
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import '../src/index.js';
|
|
2
|
+
import '../src/filters/filters-form.js';
|
|
3
|
+
import '../src/sorters/sorters-control.js';
|
|
4
|
+
import '../src/record-view/ox-record-creator.js';
|
|
5
|
+
import '@operato/popup/ox-popup-list.js';
|
|
6
|
+
import '@material/web/icon/icon.js';
|
|
7
|
+
import { TemplateResult } from 'lit';
|
|
8
|
+
declare const _default: {
|
|
9
|
+
title: string;
|
|
10
|
+
component: string;
|
|
11
|
+
argTypes: {
|
|
12
|
+
config: {
|
|
13
|
+
control: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export default _default;
|
|
18
|
+
interface Story<T> {
|
|
19
|
+
(args: T): TemplateResult;
|
|
20
|
+
args?: Partial<T>;
|
|
21
|
+
argTypes?: Record<string, unknown>;
|
|
22
|
+
}
|
|
23
|
+
interface ArgTypes {
|
|
24
|
+
config: object;
|
|
25
|
+
}
|
|
26
|
+
export declare const Regular: Story<ArgTypes>;
|