kempo-ui 0.4.19 → 0.4.21
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 +20 -0
- package/dist/components/Chat.js +10 -10
- package/dist/components/CodeEditor.js +23 -24
- package/dist/components/ControlGroup.js +17 -0
- package/dist/components/HtmlEditor.js +105 -106
- package/dist/components/MarkdownEditor.js +49 -49
- package/dist/components/Pagination.js +11 -11
- package/dist/components/Table.js +1 -1
- package/dist/components/controls/AlignCenter.js +1 -0
- package/dist/components/controls/AlignJustify.js +1 -0
- package/dist/components/controls/AlignLeft.js +1 -0
- package/dist/components/controls/AlignRight.js +1 -0
- package/dist/components/controls/Bold.js +1 -0
- package/dist/components/controls/BulletList.js +1 -0
- package/dist/components/controls/ButtonControl.js +33 -0
- package/dist/components/controls/CharacterCount.js +4 -0
- package/dist/components/controls/ClearFormatting.js +1 -0
- package/dist/components/controls/CodeBlock.js +1 -0
- package/dist/components/controls/Control.js +12 -0
- package/dist/components/controls/CopyCode.js +1 -0
- package/dist/components/controls/CreateLink.js +1 -0
- package/dist/components/controls/EditorTheme.js +30 -0
- package/dist/components/controls/FindReplace.js +1 -0
- package/dist/components/controls/FoldAll.js +1 -0
- package/dist/components/controls/FontSize.js +8 -0
- package/dist/components/controls/FontSizeDecrease.js +1 -0
- package/dist/components/controls/FontSizeIncrease.js +1 -0
- package/dist/components/controls/FormatBlock.js +8 -0
- package/dist/components/controls/FormatCode.js +1 -0
- package/dist/components/controls/Fullscreen.js +1 -0
- package/dist/components/controls/InlineCode.js +1 -0
- package/dist/components/controls/InsertTable.js +1 -0
- package/dist/components/controls/Italic.js +1 -0
- package/dist/components/controls/Language.js +21 -0
- package/dist/components/controls/MdImage.js +23 -0
- package/dist/components/controls/MdLink.js +1 -0
- package/dist/components/controls/MdSpeechToText.js +10 -0
- package/dist/components/controls/MdTable.js +19 -0
- package/dist/components/controls/Menu.js +51 -0
- package/dist/components/controls/Minimap.js +1 -0
- package/dist/components/controls/Mode.js +1 -0
- package/dist/components/controls/NumberList.js +1 -0
- package/dist/components/controls/PgCount.js +1 -0
- package/dist/components/controls/PgFirst.js +1 -0
- package/dist/components/controls/PgGotoPage.js +15 -0
- package/dist/components/controls/PgItemsPerPage.js +12 -0
- package/dist/components/controls/PgLast.js +1 -0
- package/dist/components/controls/PgNext.js +1 -0
- package/dist/components/controls/PgPageInfo.js +3 -0
- package/dist/components/controls/PgPrev.js +1 -0
- package/dist/components/controls/Quote.js +1 -0
- package/dist/components/controls/Redo.js +1 -0
- package/dist/components/{htmlEditorControls/ControlSpacer.js → controls/Spacer.js} +5 -5
- package/dist/components/controls/Strikethrough.js +1 -0
- package/dist/components/controls/TcDeleteRecord.js +1 -0
- package/dist/components/controls/TcDeleteSelected.js +1 -0
- package/dist/components/controls/TcEdit.js +12 -0
- package/dist/components/controls/TcExportCsv.js +3 -0
- package/dist/components/controls/TcExportJson.js +3 -0
- package/dist/components/controls/TcFieldSortHide.js +21 -0
- package/dist/components/controls/TcFilters.js +34 -0
- package/dist/components/controls/TcFirstPage.js +1 -0
- package/dist/components/controls/TcHiddenCount.js +1 -0
- package/dist/components/controls/TcHide.js +1 -0
- package/dist/components/controls/TcLastPage.js +1 -0
- package/dist/components/controls/TcNextPage.js +1 -0
- package/dist/components/controls/TcPageSelect.js +9 -0
- package/dist/components/controls/TcPageSize.js +5 -0
- package/dist/components/controls/TcPrevPage.js +1 -0
- package/dist/components/controls/TcSearch.js +1 -0
- package/dist/components/controls/TcShowAll.js +1 -0
- package/dist/components/controls/TextBackgroundColor.js +26 -0
- package/dist/components/controls/TextColor.js +26 -0
- package/dist/components/controls/Underline.js +1 -0
- package/dist/components/controls/Undo.js +1 -0
- package/dist/components/controls/WordCount.js +4 -0
- package/dist/components/controls/WordWrap.js +1 -0
- package/docs/components/code-editor.html +69 -48
- package/docs/components/html-editor.html +70 -69
- package/docs/components/markdown-editor.html +59 -78
- package/docs/components/pagination.html +51 -51
- package/docs/components/tableControls.html +5 -5
- package/docs/components/tableCustomFields.html +3 -3
- package/docs/components/tableFetchRecords.html +13 -13
- package/docs/components/tableFieldSortHide.html +4 -4
- package/docs/components/tablePagination.html +13 -13
- package/docs/components/tablePlaceholder.html +3 -3
- package/docs/components/tableRecordEditing.html +4 -4
- package/docs/components/tableRecordFiltering.html +5 -5
- package/docs/components/tableRecordHiding.html +7 -7
- package/docs/components/tableRecordSearching.html +3 -3
- package/docs/components/tableRowControls.html +6 -6
- package/docs/components/tableServerSync.html +7 -7
- package/docs/src/components/Chat.js +10 -10
- package/docs/src/components/CodeEditor.js +23 -24
- package/docs/src/components/ControlGroup.js +17 -0
- package/docs/src/components/HtmlEditor.js +105 -106
- package/docs/src/components/MarkdownEditor.js +49 -49
- package/docs/src/components/Pagination.js +11 -11
- package/docs/src/components/Table.js +1 -1
- package/docs/src/components/controls/AlignCenter.js +1 -0
- package/docs/src/components/controls/AlignJustify.js +1 -0
- package/docs/src/components/controls/AlignLeft.js +1 -0
- package/docs/src/components/controls/AlignRight.js +1 -0
- package/docs/src/components/controls/Bold.js +1 -0
- package/docs/src/components/controls/BulletList.js +1 -0
- package/docs/src/components/controls/ButtonControl.js +33 -0
- package/docs/src/components/controls/CharacterCount.js +4 -0
- package/docs/src/components/controls/ClearFormatting.js +1 -0
- package/docs/src/components/controls/CodeBlock.js +1 -0
- package/docs/src/components/controls/Control.js +12 -0
- package/docs/src/components/controls/CopyCode.js +1 -0
- package/docs/src/components/controls/CreateLink.js +1 -0
- package/docs/src/components/controls/EditorTheme.js +30 -0
- package/docs/src/components/controls/FindReplace.js +1 -0
- package/docs/src/components/controls/FoldAll.js +1 -0
- package/docs/src/components/controls/FontSize.js +8 -0
- package/docs/src/components/controls/FontSizeDecrease.js +1 -0
- package/docs/src/components/controls/FontSizeIncrease.js +1 -0
- package/docs/src/components/controls/FormatBlock.js +8 -0
- package/docs/src/components/controls/FormatCode.js +1 -0
- package/docs/src/components/controls/Fullscreen.js +1 -0
- package/docs/src/components/controls/InlineCode.js +1 -0
- package/docs/src/components/controls/InsertTable.js +1 -0
- package/docs/src/components/controls/Italic.js +1 -0
- package/docs/src/components/controls/Language.js +21 -0
- package/docs/src/components/controls/MdImage.js +23 -0
- package/docs/src/components/controls/MdLink.js +1 -0
- package/docs/src/components/controls/MdSpeechToText.js +10 -0
- package/docs/src/components/controls/MdTable.js +19 -0
- package/docs/src/components/controls/Menu.js +51 -0
- package/docs/src/components/controls/Minimap.js +1 -0
- package/docs/src/components/controls/Mode.js +1 -0
- package/docs/src/components/controls/NumberList.js +1 -0
- package/docs/src/components/controls/PgCount.js +1 -0
- package/docs/src/components/controls/PgFirst.js +1 -0
- package/docs/src/components/controls/PgGotoPage.js +15 -0
- package/docs/src/components/controls/PgItemsPerPage.js +12 -0
- package/docs/src/components/controls/PgLast.js +1 -0
- package/docs/src/components/controls/PgNext.js +1 -0
- package/docs/src/components/controls/PgPageInfo.js +3 -0
- package/docs/src/components/controls/PgPrev.js +1 -0
- package/docs/src/components/controls/Quote.js +1 -0
- package/docs/src/components/controls/Redo.js +1 -0
- package/docs/src/components/{codeEditorControls/ControlSpacer.js → controls/Spacer.js} +5 -5
- package/docs/src/components/controls/Strikethrough.js +1 -0
- package/docs/src/components/controls/TcDeleteRecord.js +1 -0
- package/docs/src/components/controls/TcDeleteSelected.js +1 -0
- package/docs/src/components/controls/TcEdit.js +12 -0
- package/docs/src/components/controls/TcExportCsv.js +3 -0
- package/docs/src/components/controls/TcExportJson.js +3 -0
- package/docs/src/components/controls/TcFieldSortHide.js +21 -0
- package/docs/src/components/controls/TcFilters.js +34 -0
- package/docs/src/components/controls/TcFirstPage.js +1 -0
- package/docs/src/components/controls/TcHiddenCount.js +1 -0
- package/docs/src/components/controls/TcHide.js +1 -0
- package/docs/src/components/controls/TcLastPage.js +1 -0
- package/docs/src/components/controls/TcNextPage.js +1 -0
- package/docs/src/components/controls/TcPageSelect.js +9 -0
- package/docs/src/components/controls/TcPageSize.js +5 -0
- package/docs/src/components/controls/TcPrevPage.js +1 -0
- package/docs/src/components/controls/TcSearch.js +1 -0
- package/docs/src/components/controls/TcShowAll.js +1 -0
- package/docs/src/components/controls/TextBackgroundColor.js +26 -0
- package/docs/src/components/controls/TextColor.js +26 -0
- package/docs/src/components/controls/Underline.js +1 -0
- package/docs/src/components/controls/Undo.js +1 -0
- package/docs/src/components/controls/WordCount.js +4 -0
- package/docs/src/components/controls/WordWrap.js +1 -0
- package/docs-src/components/code-editor.page.html +69 -48
- package/docs-src/components/html-editor.page.html +70 -69
- package/docs-src/components/markdown-editor.page.html +59 -78
- package/docs-src/components/pagination.page.html +51 -51
- package/docs-src/components/tableControls.page.html +5 -5
- package/docs-src/components/tableCustomFields.page.html +3 -3
- package/docs-src/components/tableFetchRecords.page.html +13 -13
- package/docs-src/components/tableFieldSortHide.page.html +4 -4
- package/docs-src/components/tablePagination.page.html +13 -13
- package/docs-src/components/tablePlaceholder.page.html +3 -3
- package/docs-src/components/tableRecordEditing.page.html +4 -4
- package/docs-src/components/tableRecordFiltering.page.html +5 -5
- package/docs-src/components/tableRecordHiding.page.html +7 -7
- package/docs-src/components/tableRecordSearching.page.html +3 -3
- package/docs-src/components/tableRowControls.page.html +6 -6
- package/docs-src/components/tableServerSync.page.html +7 -7
- package/llms.txt +37 -3
- package/package.json +1 -1
- package/src/components/Chat.js +14 -14
- package/src/components/CodeEditor.js +26 -32
- package/src/components/{codeEditorControls/ControlGroup.js → ControlGroup.js} +10 -6
- package/src/components/HtmlEditor.js +107 -125
- package/src/components/MarkdownEditor.js +117 -59
- package/src/components/Pagination.js +18 -23
- package/src/components/Table.js +5 -0
- package/src/components/controls/AlignCenter.js +19 -0
- package/src/components/controls/AlignJustify.js +19 -0
- package/src/components/controls/AlignLeft.js +19 -0
- package/src/components/controls/AlignRight.js +19 -0
- package/src/components/controls/Bold.js +19 -0
- package/src/components/controls/BulletList.js +19 -0
- package/src/components/controls/ButtonControl.js +114 -0
- package/src/components/controls/CharacterCount.js +48 -0
- package/src/components/controls/ClearFormatting.js +19 -0
- package/src/components/controls/CodeBlock.js +27 -0
- package/src/components/controls/Control.js +176 -0
- package/src/components/controls/CopyCode.js +19 -0
- package/src/components/controls/CreateLink.js +63 -0
- package/src/components/controls/EditorTheme.js +71 -0
- package/src/components/controls/FindReplace.js +19 -0
- package/src/components/controls/FoldAll.js +35 -0
- package/src/components/controls/FontSize.js +31 -0
- package/src/components/controls/FontSizeDecrease.js +19 -0
- package/src/components/controls/FontSizeIncrease.js +19 -0
- package/src/components/controls/FormatBlock.js +64 -0
- package/src/components/controls/FormatCode.js +19 -0
- package/src/components/controls/Fullscreen.js +42 -0
- package/src/components/controls/InlineCode.js +19 -0
- package/src/components/controls/InsertTable.js +67 -0
- package/src/components/controls/Italic.js +19 -0
- package/src/components/controls/Language.js +69 -0
- package/src/components/controls/MdImage.js +72 -0
- package/src/components/controls/MdLink.js +60 -0
- package/src/components/controls/MdSpeechToText.js +46 -0
- package/src/components/controls/MdTable.js +79 -0
- package/src/components/controls/Menu.js +98 -0
- package/src/components/controls/Minimap.js +36 -0
- package/src/components/controls/Mode.js +30 -0
- package/src/components/controls/NumberList.js +19 -0
- package/src/components/controls/PgCount.js +12 -0
- package/src/components/controls/PgFirst.js +28 -0
- package/src/components/controls/PgGotoPage.js +48 -0
- package/src/components/controls/PgItemsPerPage.js +36 -0
- package/src/components/controls/PgLast.js +28 -0
- package/src/components/controls/PgNext.js +25 -0
- package/src/components/controls/PgPageInfo.js +22 -0
- package/src/components/controls/PgPrev.js +25 -0
- package/src/components/controls/Quote.js +19 -0
- package/src/components/controls/Redo.js +18 -0
- package/src/components/controls/Spacer.js +15 -0
- package/src/components/controls/Strikethrough.js +19 -0
- package/src/components/controls/TcDeleteRecord.js +30 -0
- package/src/components/controls/TcDeleteSelected.js +16 -0
- package/src/components/controls/TcEdit.js +73 -0
- package/src/components/controls/TcExportCsv.js +60 -0
- package/src/components/controls/TcExportJson.js +46 -0
- package/src/components/controls/TcFieldSortHide.js +56 -0
- package/src/components/controls/TcFilters.js +86 -0
- package/src/components/controls/TcFirstPage.js +24 -0
- package/src/components/controls/TcHiddenCount.js +39 -0
- package/src/components/controls/TcHide.js +30 -0
- package/src/components/controls/TcLastPage.js +24 -0
- package/src/components/controls/TcNextPage.js +24 -0
- package/src/components/controls/TcPageSelect.js +36 -0
- package/src/components/controls/TcPageSize.js +23 -0
- package/src/components/controls/TcPrevPage.js +24 -0
- package/src/components/controls/TcSearch.js +34 -0
- package/src/components/controls/TcShowAll.js +18 -0
- package/src/components/controls/TextBackgroundColor.js +84 -0
- package/src/components/controls/TextColor.js +84 -0
- package/src/components/controls/Underline.js +19 -0
- package/src/components/controls/Undo.js +18 -0
- package/src/components/controls/WordCount.js +48 -0
- package/src/components/controls/WordWrap.js +36 -0
- package/tasks/released/0006-create-pagination-component.md +1 -1
- package/tasks/released/0007-code-editor-updates/branch-custom-controls.png +0 -0
- package/tasks/released/0007-code-editor-updates/branch-toolbar.png +0 -0
- package/tasks/released/0007-code-editor-updates/docs-overview.png +0 -0
- package/tasks/released/0007-code-editor-updates/form-integration.png +0 -0
- package/tasks/released/0007-code-editor-updates/live-builtin-controls.png +0 -0
- package/tasks/released/0007-code-editor-updates/live-custom-controls.png +0 -0
- package/tasks/released/0007-code-editor-updates/live-toolbar.png +0 -0
- package/tasks/released/0007-code-editor-updates/local-builtin-controls.png +0 -0
- package/tasks/released/0007-code-editor-updates/local-fixed-builtin.png +0 -0
- package/tasks/released/0007-code-editor-updates/theme-selector.png +0 -0
- package/tasks/released/0007-code-editor-updates.md +96 -0
- package/tests/components/CodeEditor.browser-test.js +0 -42
- package/tests/components/HtmlEditor.browser-test.js +0 -88
- package/tests/components/MarkdownEditor.browser-test.js +0 -72
- package/tests/components/Pagination.browser-test.js +12 -90
- package/tests/components/{htmlEditorControls → controls}/Align.browser-test.js +16 -16
- package/tests/components/{htmlEditorControls → controls}/Bold.browser-test.js +7 -7
- package/tests/components/{htmlEditorControls → controls}/BulletList.browser-test.js +7 -7
- package/tests/components/{htmlEditorControls → controls}/CharacterCount.browser-test.js +5 -5
- package/tests/components/{htmlEditorControls → controls}/ClearFormatting.browser-test.js +7 -7
- package/tests/components/{htmlEditorControls → controls}/CodeBlock.browser-test.js +8 -8
- package/tests/components/controls/Control.browser-test.js +147 -0
- package/tests/components/{htmlEditorControls → controls}/ControlGroup.browser-test.js +9 -9
- package/tests/components/{htmlEditorControls → controls}/ControlSpacer.browser-test.js +4 -4
- package/tests/components/{codeEditorControls → controls}/CopyCode.browser-test.js +8 -8
- package/tests/components/{htmlEditorControls → controls}/CreateLink.browser-test.js +7 -7
- package/tests/components/{htmlEditorControls → controls}/DropdownControl.browser-test.js +8 -8
- package/tests/components/{codeEditorControls → controls}/EditorTheme.browser-test.js +4 -4
- package/tests/components/{tableControls → controls}/ExportControls.browser-test.js +22 -46
- package/tests/components/{tableControls → controls}/FieldSortHide.browser-test.js +14 -26
- package/tests/components/{tableControls → controls}/Filters.browser-test.js +15 -27
- package/tests/components/{codeEditorControls → controls}/FindReplace.browser-test.js +8 -8
- package/tests/components/{codeEditorControls → controls}/FoldAll.browser-test.js +10 -10
- package/tests/components/{codeEditorControls → controls}/FontSize.browser-test.js +19 -14
- package/tests/components/{htmlEditorControls → controls}/FormatBlock.browser-test.js +9 -9
- package/tests/components/{htmlEditorControls → controls}/FormatCode.browser-test.js +17 -18
- package/tests/components/{codeEditorControls → controls}/Fullscreen.browser-test.js +11 -32
- package/tests/components/{tableControls → controls}/HiddenCount.browser-test.js +4 -4
- package/tests/components/{htmlEditorControls → controls}/InlineCode.browser-test.js +7 -7
- package/tests/components/{htmlEditorControls → controls}/InsertTable.browser-test.js +7 -7
- package/tests/components/{htmlEditorControls → controls}/Italic.browser-test.js +7 -7
- package/tests/components/{codeEditorControls → controls}/LanguageSelect.browser-test.js +4 -4
- package/tests/components/{codeEditorControls → controls}/Minimap.browser-test.js +8 -8
- package/tests/components/{htmlEditorControls → controls}/Mode.browser-test.js +7 -7
- package/tests/components/{codeEditorControls → controls}/ModeVisibility.browser-test.js +7 -7
- package/tests/components/{htmlEditorControls → controls}/NumberList.browser-test.js +7 -7
- package/tests/components/{tableControls → controls}/PaginationControls.browser-test.js +45 -45
- package/tests/components/{tableControls → controls}/RecordControls.browser-test.js +24 -60
- package/tests/components/{tableControls → controls}/Search.browser-test.js +4 -16
- package/tests/components/{htmlEditorControls → controls}/Strikethrough.browser-test.js +7 -7
- package/tests/components/{htmlEditorControls → controls}/TextBackgroundColor.browser-test.js +5 -5
- package/tests/components/{htmlEditorControls → controls}/TextColor.browser-test.js +5 -5
- package/tests/components/{htmlEditorControls → controls}/Underline.browser-test.js +7 -7
- package/tests/components/{codeEditorControls → controls}/UndoRedo.browser-test.js +15 -15
- package/tests/components/{htmlEditorControls → controls}/WordCount.browser-test.js +5 -5
- package/tests/components/{codeEditorControls → controls}/WordWrap.browser-test.js +8 -8
- package/dist/components/codeEditorControls/CodeEditorControl.js +0 -17
- package/dist/components/codeEditorControls/ControlGroup.js +0 -12
- package/dist/components/codeEditorControls/ControlSpacer.js +0 -6
- package/dist/components/codeEditorControls/CopyCode.js +0 -9
- package/dist/components/codeEditorControls/EditorTheme.js +0 -26
- package/dist/components/codeEditorControls/FindReplace.js +0 -7
- package/dist/components/codeEditorControls/FoldAll.js +0 -7
- package/dist/components/codeEditorControls/FontSize.js +0 -13
- package/dist/components/codeEditorControls/FormatCode.js +0 -9
- package/dist/components/codeEditorControls/Fullscreen.js +0 -12
- package/dist/components/codeEditorControls/LanguageSelect.js +0 -15
- package/dist/components/codeEditorControls/Minimap.js +0 -8
- package/dist/components/codeEditorControls/Redo.js +0 -7
- package/dist/components/codeEditorControls/Undo.js +0 -7
- package/dist/components/codeEditorControls/WordWrap.js +0 -8
- package/dist/components/htmlEditorControls/AlignCenter.js +0 -12
- package/dist/components/htmlEditorControls/AlignJustify.js +0 -12
- package/dist/components/htmlEditorControls/AlignLeft.js +0 -12
- package/dist/components/htmlEditorControls/AlignRight.js +0 -12
- package/dist/components/htmlEditorControls/Bold.js +0 -12
- package/dist/components/htmlEditorControls/BulletList.js +0 -12
- package/dist/components/htmlEditorControls/CharacterCount.js +0 -18
- package/dist/components/htmlEditorControls/ClearFormatting.js +0 -12
- package/dist/components/htmlEditorControls/CodeBlock.js +0 -12
- package/dist/components/htmlEditorControls/ControlGroup.js +0 -12
- package/dist/components/htmlEditorControls/CreateLink.js +0 -15
- package/dist/components/htmlEditorControls/DropdownControl.js +0 -57
- package/dist/components/htmlEditorControls/FormatBlock.js +0 -12
- package/dist/components/htmlEditorControls/FormatCode.js +0 -1
- package/dist/components/htmlEditorControls/HtmlEditorControl.js +0 -44
- package/dist/components/htmlEditorControls/InlineCode.js +0 -12
- package/dist/components/htmlEditorControls/InsertTable.js +0 -15
- package/dist/components/htmlEditorControls/Italic.js +0 -12
- package/dist/components/htmlEditorControls/Mode.js +0 -9
- package/dist/components/htmlEditorControls/NumberList.js +0 -12
- package/dist/components/htmlEditorControls/Strikethrough.js +0 -12
- package/dist/components/htmlEditorControls/TextBackgroundColor.js +0 -97
- package/dist/components/htmlEditorControls/TextColor.js +0 -97
- package/dist/components/htmlEditorControls/Underline.js +0 -12
- package/dist/components/htmlEditorControls/WordCount.js +0 -18
- package/dist/components/markdownEditorControls/Bold.js +0 -11
- package/dist/components/markdownEditorControls/BulletList.js +0 -11
- package/dist/components/markdownEditorControls/Code.js +0 -11
- package/dist/components/markdownEditorControls/FormatBlock.js +0 -30
- package/dist/components/markdownEditorControls/Heading.js +0 -11
- package/dist/components/markdownEditorControls/Image.js +0 -93
- package/dist/components/markdownEditorControls/Italic.js +0 -11
- package/dist/components/markdownEditorControls/Link.js +0 -11
- package/dist/components/markdownEditorControls/MarkdownEditorControl.js +0 -39
- package/dist/components/markdownEditorControls/Menu.js +0 -30
- package/dist/components/markdownEditorControls/NumberedList.js +0 -11
- package/dist/components/markdownEditorControls/Quote.js +0 -11
- package/dist/components/markdownEditorControls/SpeechToText.js +0 -16
- package/dist/components/markdownEditorControls/Strikethrough.js +0 -11
- package/dist/components/markdownEditorControls/Table.js +0 -80
- package/dist/components/paginationControls/FirstPage.js +0 -1
- package/dist/components/paginationControls/GotoPage.js +0 -17
- package/dist/components/paginationControls/ItemsPerPage.js +0 -15
- package/dist/components/paginationControls/LastPage.js +0 -1
- package/dist/components/paginationControls/NextPage.js +0 -1
- package/dist/components/paginationControls/PageCount.js +0 -1
- package/dist/components/paginationControls/PageInfo.js +0 -6
- package/dist/components/paginationControls/PaginationButtonControl.js +0 -20
- package/dist/components/paginationControls/PaginationControl.js +0 -5
- package/dist/components/paginationControls/PrevPage.js +0 -1
- package/dist/components/tableControls/DeleteRecord.js +0 -7
- package/dist/components/tableControls/DeleteSelected.js +0 -7
- package/dist/components/tableControls/Edit.js +0 -18
- package/dist/components/tableControls/ExportCSV.js +0 -8
- package/dist/components/tableControls/ExportJson.js +0 -8
- package/dist/components/tableControls/FieldSortHide.js +0 -25
- package/dist/components/tableControls/Filters.js +0 -46
- package/dist/components/tableControls/FirstPage.js +0 -9
- package/dist/components/tableControls/HiddenCount.js +0 -3
- package/dist/components/tableControls/Hide.js +0 -5
- package/dist/components/tableControls/LastPage.js +0 -9
- package/dist/components/tableControls/NextPage.js +0 -9
- package/dist/components/tableControls/PageSelect.js +0 -22
- package/dist/components/tableControls/PageSize.js +0 -5
- package/dist/components/tableControls/PrevPage.js +0 -9
- package/dist/components/tableControls/Search.js +0 -9
- package/dist/components/tableControls/ShowAll.js +0 -5
- package/dist/components/tableControls/TableControl.js +0 -16
- package/docs/src/components/codeEditorControls/CodeEditorControl.js +0 -17
- package/docs/src/components/codeEditorControls/ControlGroup.js +0 -12
- package/docs/src/components/codeEditorControls/CopyCode.js +0 -9
- package/docs/src/components/codeEditorControls/EditorTheme.js +0 -26
- package/docs/src/components/codeEditorControls/FindReplace.js +0 -7
- package/docs/src/components/codeEditorControls/FoldAll.js +0 -7
- package/docs/src/components/codeEditorControls/FontSize.js +0 -13
- package/docs/src/components/codeEditorControls/FormatCode.js +0 -9
- package/docs/src/components/codeEditorControls/Fullscreen.js +0 -12
- package/docs/src/components/codeEditorControls/LanguageSelect.js +0 -15
- package/docs/src/components/codeEditorControls/Minimap.js +0 -8
- package/docs/src/components/codeEditorControls/Redo.js +0 -7
- package/docs/src/components/codeEditorControls/Undo.js +0 -7
- package/docs/src/components/codeEditorControls/WordWrap.js +0 -8
- package/docs/src/components/htmlEditorControls/AlignCenter.js +0 -12
- package/docs/src/components/htmlEditorControls/AlignJustify.js +0 -12
- package/docs/src/components/htmlEditorControls/AlignLeft.js +0 -12
- package/docs/src/components/htmlEditorControls/AlignRight.js +0 -12
- package/docs/src/components/htmlEditorControls/Bold.js +0 -12
- package/docs/src/components/htmlEditorControls/BulletList.js +0 -12
- package/docs/src/components/htmlEditorControls/CharacterCount.js +0 -18
- package/docs/src/components/htmlEditorControls/ClearFormatting.js +0 -12
- package/docs/src/components/htmlEditorControls/CodeBlock.js +0 -12
- package/docs/src/components/htmlEditorControls/ControlGroup.js +0 -12
- package/docs/src/components/htmlEditorControls/ControlSpacer.js +0 -6
- package/docs/src/components/htmlEditorControls/CreateLink.js +0 -15
- package/docs/src/components/htmlEditorControls/DropdownControl.js +0 -57
- package/docs/src/components/htmlEditorControls/FormatBlock.js +0 -12
- package/docs/src/components/htmlEditorControls/FormatCode.js +0 -1
- package/docs/src/components/htmlEditorControls/HtmlEditorControl.js +0 -44
- package/docs/src/components/htmlEditorControls/InlineCode.js +0 -12
- package/docs/src/components/htmlEditorControls/InsertTable.js +0 -15
- package/docs/src/components/htmlEditorControls/Italic.js +0 -12
- package/docs/src/components/htmlEditorControls/Mode.js +0 -9
- package/docs/src/components/htmlEditorControls/NumberList.js +0 -12
- package/docs/src/components/htmlEditorControls/Strikethrough.js +0 -12
- package/docs/src/components/htmlEditorControls/TextBackgroundColor.js +0 -97
- package/docs/src/components/htmlEditorControls/TextColor.js +0 -97
- package/docs/src/components/htmlEditorControls/Underline.js +0 -12
- package/docs/src/components/htmlEditorControls/WordCount.js +0 -18
- package/docs/src/components/markdownEditorControls/Bold.js +0 -11
- package/docs/src/components/markdownEditorControls/BulletList.js +0 -11
- package/docs/src/components/markdownEditorControls/Code.js +0 -11
- package/docs/src/components/markdownEditorControls/FormatBlock.js +0 -30
- package/docs/src/components/markdownEditorControls/Heading.js +0 -11
- package/docs/src/components/markdownEditorControls/Image.js +0 -93
- package/docs/src/components/markdownEditorControls/Italic.js +0 -11
- package/docs/src/components/markdownEditorControls/Link.js +0 -11
- package/docs/src/components/markdownEditorControls/MarkdownEditorControl.js +0 -39
- package/docs/src/components/markdownEditorControls/Menu.js +0 -30
- package/docs/src/components/markdownEditorControls/NumberedList.js +0 -11
- package/docs/src/components/markdownEditorControls/Quote.js +0 -11
- package/docs/src/components/markdownEditorControls/SpeechToText.js +0 -16
- package/docs/src/components/markdownEditorControls/Strikethrough.js +0 -11
- package/docs/src/components/markdownEditorControls/Table.js +0 -80
- package/docs/src/components/paginationControls/FirstPage.js +0 -1
- package/docs/src/components/paginationControls/GotoPage.js +0 -17
- package/docs/src/components/paginationControls/ItemsPerPage.js +0 -15
- package/docs/src/components/paginationControls/LastPage.js +0 -1
- package/docs/src/components/paginationControls/NextPage.js +0 -1
- package/docs/src/components/paginationControls/PageCount.js +0 -1
- package/docs/src/components/paginationControls/PageInfo.js +0 -6
- package/docs/src/components/paginationControls/PaginationButtonControl.js +0 -20
- package/docs/src/components/paginationControls/PaginationControl.js +0 -5
- package/docs/src/components/paginationControls/PrevPage.js +0 -1
- package/docs/src/components/tableControls/DeleteRecord.js +0 -7
- package/docs/src/components/tableControls/DeleteSelected.js +0 -7
- package/docs/src/components/tableControls/Edit.js +0 -18
- package/docs/src/components/tableControls/ExportCSV.js +0 -8
- package/docs/src/components/tableControls/ExportJson.js +0 -8
- package/docs/src/components/tableControls/FieldSortHide.js +0 -25
- package/docs/src/components/tableControls/Filters.js +0 -46
- package/docs/src/components/tableControls/FirstPage.js +0 -9
- package/docs/src/components/tableControls/HiddenCount.js +0 -3
- package/docs/src/components/tableControls/Hide.js +0 -5
- package/docs/src/components/tableControls/LastPage.js +0 -9
- package/docs/src/components/tableControls/NextPage.js +0 -9
- package/docs/src/components/tableControls/PageSelect.js +0 -22
- package/docs/src/components/tableControls/PageSize.js +0 -5
- package/docs/src/components/tableControls/PrevPage.js +0 -9
- package/docs/src/components/tableControls/Search.js +0 -9
- package/docs/src/components/tableControls/ShowAll.js +0 -5
- package/docs/src/components/tableControls/TableControl.js +0 -16
- package/src/components/codeEditorControls/CodeEditorControl.js +0 -134
- package/src/components/codeEditorControls/ControlSpacer.js +0 -23
- package/src/components/codeEditorControls/CopyCode.js +0 -37
- package/src/components/codeEditorControls/EditorTheme.js +0 -81
- package/src/components/codeEditorControls/FindReplace.js +0 -35
- package/src/components/codeEditorControls/FoldAll.js +0 -49
- package/src/components/codeEditorControls/FontSize.js +0 -45
- package/src/components/codeEditorControls/FormatCode.js +0 -37
- package/src/components/codeEditorControls/Fullscreen.js +0 -72
- package/src/components/codeEditorControls/LanguageSelect.js +0 -74
- package/src/components/codeEditorControls/Minimap.js +0 -60
- package/src/components/codeEditorControls/Redo.js +0 -35
- package/src/components/codeEditorControls/Undo.js +0 -35
- package/src/components/codeEditorControls/WordWrap.js +0 -60
- package/src/components/htmlEditorControls/AlignCenter.js +0 -63
- package/src/components/htmlEditorControls/AlignJustify.js +0 -63
- package/src/components/htmlEditorControls/AlignLeft.js +0 -63
- package/src/components/htmlEditorControls/AlignRight.js +0 -63
- package/src/components/htmlEditorControls/Bold.js +0 -63
- package/src/components/htmlEditorControls/BulletList.js +0 -63
- package/src/components/htmlEditorControls/CharacterCount.js +0 -75
- package/src/components/htmlEditorControls/ClearFormatting.js +0 -63
- package/src/components/htmlEditorControls/CodeBlock.js +0 -64
- package/src/components/htmlEditorControls/ControlGroup.js +0 -70
- package/src/components/htmlEditorControls/ControlSpacer.js +0 -23
- package/src/components/htmlEditorControls/CreateLink.js +0 -115
- package/src/components/htmlEditorControls/DropdownControl.js +0 -149
- package/src/components/htmlEditorControls/FormatBlock.js +0 -106
- package/src/components/htmlEditorControls/FormatCode.js +0 -7
- package/src/components/htmlEditorControls/HtmlEditorControl.js +0 -164
- package/src/components/htmlEditorControls/InlineCode.js +0 -63
- package/src/components/htmlEditorControls/InsertTable.js +0 -126
- package/src/components/htmlEditorControls/Italic.js +0 -63
- package/src/components/htmlEditorControls/Mode.js +0 -68
- package/src/components/htmlEditorControls/NumberList.js +0 -63
- package/src/components/htmlEditorControls/Strikethrough.js +0 -63
- package/src/components/htmlEditorControls/TextBackgroundColor.js +0 -189
- package/src/components/htmlEditorControls/TextColor.js +0 -189
- package/src/components/htmlEditorControls/Underline.js +0 -63
- package/src/components/htmlEditorControls/WordCount.js +0 -76
- package/src/components/markdownEditorControls/Bold.js +0 -30
- package/src/components/markdownEditorControls/BulletList.js +0 -30
- package/src/components/markdownEditorControls/Code.js +0 -39
- package/src/components/markdownEditorControls/FormatBlock.js +0 -102
- package/src/components/markdownEditorControls/Heading.js +0 -46
- package/src/components/markdownEditorControls/Image.js +0 -250
- package/src/components/markdownEditorControls/Italic.js +0 -30
- package/src/components/markdownEditorControls/Link.js +0 -74
- package/src/components/markdownEditorControls/MarkdownEditorControl.js +0 -158
- package/src/components/markdownEditorControls/Menu.js +0 -86
- package/src/components/markdownEditorControls/NumberedList.js +0 -69
- package/src/components/markdownEditorControls/Quote.js +0 -30
- package/src/components/markdownEditorControls/SpeechToText.js +0 -65
- package/src/components/markdownEditorControls/Strikethrough.js +0 -35
- package/src/components/markdownEditorControls/Table.js +0 -165
- package/src/components/paginationControls/FirstPage.js +0 -26
- package/src/components/paginationControls/GotoPage.js +0 -56
- package/src/components/paginationControls/ItemsPerPage.js +0 -44
- package/src/components/paginationControls/LastPage.js +0 -26
- package/src/components/paginationControls/NextPage.js +0 -26
- package/src/components/paginationControls/PageCount.js +0 -10
- package/src/components/paginationControls/PageInfo.js +0 -23
- package/src/components/paginationControls/PaginationButtonControl.js +0 -76
- package/src/components/paginationControls/PaginationControl.js +0 -43
- package/src/components/paginationControls/PrevPage.js +0 -26
- package/src/components/tableControls/DeleteRecord.js +0 -29
- package/src/components/tableControls/DeleteSelected.js +0 -27
- package/src/components/tableControls/Edit.js +0 -86
- package/src/components/tableControls/ExportCSV.js +0 -71
- package/src/components/tableControls/ExportJson.js +0 -55
- package/src/components/tableControls/FieldSortHide.js +0 -76
- package/src/components/tableControls/Filters.js +0 -113
- package/src/components/tableControls/FirstPage.js +0 -65
- package/src/components/tableControls/HiddenCount.js +0 -43
- package/src/components/tableControls/Hide.js +0 -34
- package/src/components/tableControls/LastPage.js +0 -65
- package/src/components/tableControls/NextPage.js +0 -65
- package/src/components/tableControls/PageSelect.js +0 -101
- package/src/components/tableControls/PageSize.js +0 -68
- package/src/components/tableControls/PrevPage.js +0 -65
- package/src/components/tableControls/Search.js +0 -56
- package/src/components/tableControls/ShowAll.js +0 -34
- package/src/components/tableControls/TableControl.js +0 -103
- package/tasks/0006-create-pagination-component/screenshot-01-top.png +0 -0
- package/tasks/0006-create-pagination-component/screenshot-02-controls.png +0 -0
- package/tasks/0006-create-pagination-component/screenshot-03-preconfigured.png +0 -0
- package/tasks/0006-create-pagination-component/screenshot-04-live-demo-page1.png +0 -0
- package/tasks/0006-create-pagination-component/screenshot-05-live-demo-page2.png +0 -0
- package/tasks/0006-create-pagination-component/screenshot-06-live-demo-last-page.png +0 -0
- package/tasks/0006-create-pagination-component/screenshot-07-js-reference.png +0 -0
- package/tasks/0006-create-pagination-component.md +0 -136
- package/tests/components/tableControls/TableControl.browser-test.js +0 -300
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import '../../../src/components/HtmlEditor.js';
|
|
2
|
-
import Mode from '../../../src/components/
|
|
2
|
+
import Mode from '../../../src/components/controls/Mode.js';
|
|
3
3
|
|
|
4
4
|
const createEditorWithControl = async () => {
|
|
5
5
|
const container = document.createElement('div');
|
|
6
6
|
container.innerHTML = `
|
|
7
7
|
<k-html-editor>
|
|
8
|
-
<
|
|
8
|
+
<kc-mode slot="toolbar-top-right"></kc-mode>
|
|
9
9
|
</k-html-editor>
|
|
10
10
|
`;
|
|
11
11
|
document.body.appendChild(container);
|
|
12
12
|
const editor = container.querySelector('k-html-editor');
|
|
13
13
|
await new Promise(r => editor.addEventListener('ready', r, { once: true }));
|
|
14
|
-
const control = container.querySelector('
|
|
14
|
+
const control = container.querySelector('kc-mode');
|
|
15
15
|
return { container, editor, control };
|
|
16
16
|
};
|
|
17
17
|
|
|
@@ -23,7 +23,7 @@ export default {
|
|
|
23
23
|
/*
|
|
24
24
|
Element Creation
|
|
25
25
|
*/
|
|
26
|
-
'should create
|
|
26
|
+
'should create kc-mode element': async ({pass, fail}) => {
|
|
27
27
|
const { container, control } = await createEditorWithControl();
|
|
28
28
|
if(!(control instanceof Mode)){
|
|
29
29
|
cleanup(container);
|
|
@@ -46,7 +46,7 @@ export default {
|
|
|
46
46
|
'should render a button': async ({pass, fail}) => {
|
|
47
47
|
const { container, control } = await createEditorWithControl();
|
|
48
48
|
await control.updateComplete;
|
|
49
|
-
const button = control
|
|
49
|
+
const button = control;
|
|
50
50
|
if(!button){
|
|
51
51
|
cleanup(container);
|
|
52
52
|
return fail('Mode should render a button');
|
|
@@ -76,7 +76,7 @@ export default {
|
|
|
76
76
|
*/
|
|
77
77
|
'should find parent editor': async ({pass, fail}) => {
|
|
78
78
|
const { container, editor, control } = await createEditorWithControl();
|
|
79
|
-
if(control.
|
|
79
|
+
if(control.host !== editor){
|
|
80
80
|
cleanup(container);
|
|
81
81
|
return fail('Mode should find its parent k-html-editor');
|
|
82
82
|
}
|
|
@@ -89,7 +89,7 @@ export default {
|
|
|
89
89
|
await control.updateComplete;
|
|
90
90
|
let called = false;
|
|
91
91
|
editor.toggleMode = () => { called = true; };
|
|
92
|
-
control.
|
|
92
|
+
control.click();
|
|
93
93
|
if(!called){
|
|
94
94
|
cleanup(container);
|
|
95
95
|
return fail('Click should call editor.toggleMode()');
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import '../../../src/components/HtmlEditor.js';
|
|
2
|
-
import '../../../src/components/
|
|
3
|
-
import '../../../src/components/
|
|
2
|
+
import '../../../src/components/controls/CopyCode.js';
|
|
3
|
+
import '../../../src/components/controls/WordWrap.js';
|
|
4
4
|
|
|
5
5
|
const createHtmlEditorWithControls = async () => {
|
|
6
6
|
const container = document.createElement('div');
|
|
7
7
|
container.innerHTML = `
|
|
8
8
|
<k-html-editor>
|
|
9
|
-
<
|
|
10
|
-
<
|
|
9
|
+
<kc-copy-code slot="toolbar-top-left"></kc-copy-code>
|
|
10
|
+
<kc-word-wrap slot="toolbar-top-left"></kc-word-wrap>
|
|
11
11
|
</k-html-editor>
|
|
12
12
|
`;
|
|
13
13
|
document.body.appendChild(container);
|
|
14
14
|
const editor = container.querySelector('k-html-editor');
|
|
15
15
|
await new Promise(r => editor.addEventListener('ready', r, { once: true }));
|
|
16
|
-
const copyCode = container.querySelector('
|
|
17
|
-
const wordWrap = container.querySelector('
|
|
16
|
+
const copyCode = container.querySelector('kc-copy-code');
|
|
17
|
+
const wordWrap = container.querySelector('kc-word-wrap');
|
|
18
18
|
return { container, editor, copyCode, wordWrap };
|
|
19
19
|
};
|
|
20
20
|
|
|
@@ -72,7 +72,7 @@ export default {
|
|
|
72
72
|
|
|
73
73
|
'controls should find HtmlEditor as parent': async ({pass, fail}) => {
|
|
74
74
|
const { container, editor, copyCode } = await createHtmlEditorWithControls();
|
|
75
|
-
if(copyCode.
|
|
75
|
+
if(copyCode.host !== editor){
|
|
76
76
|
cleanup(container);
|
|
77
77
|
return fail('Should find k-html-editor as parent');
|
|
78
78
|
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import '../../../src/components/HtmlEditor.js';
|
|
2
|
-
import NumberList from '../../../src/components/
|
|
2
|
+
import NumberList from '../../../src/components/controls/NumberList.js';
|
|
3
3
|
|
|
4
4
|
const createEditorWithControl = async () => {
|
|
5
5
|
const container = document.createElement('div');
|
|
6
6
|
container.innerHTML = `
|
|
7
7
|
<k-html-editor>
|
|
8
|
-
<
|
|
8
|
+
<kc-number-list slot="toolbar-top-left"></kc-number-list>
|
|
9
9
|
</k-html-editor>
|
|
10
10
|
`;
|
|
11
11
|
document.body.appendChild(container);
|
|
12
12
|
const editor = container.querySelector('k-html-editor');
|
|
13
13
|
await new Promise(r => editor.addEventListener('ready', r, { once: true }));
|
|
14
|
-
const control = container.querySelector('
|
|
14
|
+
const control = container.querySelector('kc-number-list');
|
|
15
15
|
return { container, editor, control };
|
|
16
16
|
};
|
|
17
17
|
|
|
@@ -23,7 +23,7 @@ export default {
|
|
|
23
23
|
/*
|
|
24
24
|
Element Creation
|
|
25
25
|
*/
|
|
26
|
-
'should create
|
|
26
|
+
'should create kc-number-list element': async ({pass, fail}) => {
|
|
27
27
|
const { container, control } = await createEditorWithControl();
|
|
28
28
|
if(!(control instanceof NumberList)){
|
|
29
29
|
cleanup(container);
|
|
@@ -46,7 +46,7 @@ export default {
|
|
|
46
46
|
'should render a button': async ({pass, fail}) => {
|
|
47
47
|
const { container, control } = await createEditorWithControl();
|
|
48
48
|
await control.updateComplete;
|
|
49
|
-
const button = control
|
|
49
|
+
const button = control;
|
|
50
50
|
if(!button){
|
|
51
51
|
cleanup(container);
|
|
52
52
|
return fail('NumberList should render a button');
|
|
@@ -76,7 +76,7 @@ export default {
|
|
|
76
76
|
*/
|
|
77
77
|
'should find parent editor': async ({pass, fail}) => {
|
|
78
78
|
const { container, editor, control } = await createEditorWithControl();
|
|
79
|
-
if(control.
|
|
79
|
+
if(control.host !== editor){
|
|
80
80
|
cleanup(container);
|
|
81
81
|
return fail('NumberList should find its parent k-html-editor');
|
|
82
82
|
}
|
|
@@ -89,7 +89,7 @@ export default {
|
|
|
89
89
|
await control.updateComplete;
|
|
90
90
|
let called = false;
|
|
91
91
|
editor.orderedList = () => { called = true; };
|
|
92
|
-
control.
|
|
92
|
+
control.click();
|
|
93
93
|
if(!called){
|
|
94
94
|
cleanup(container);
|
|
95
95
|
return fail('Click should call editor.orderedList()');
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import '../../../src/components/
|
|
2
|
-
import '../../../src/components/
|
|
3
|
-
import '../../../src/components/
|
|
4
|
-
import '../../../src/components/
|
|
5
|
-
import '../../../src/components/
|
|
6
|
-
import '../../../src/components/
|
|
1
|
+
import '../../../src/components/controls/TcFirstPage.js';
|
|
2
|
+
import '../../../src/components/controls/TcLastPage.js';
|
|
3
|
+
import '../../../src/components/controls/TcNextPage.js';
|
|
4
|
+
import '../../../src/components/controls/TcPrevPage.js';
|
|
5
|
+
import '../../../src/components/controls/TcPageSelect.js';
|
|
6
|
+
import '../../../src/components/controls/TcPageSize.js';
|
|
7
7
|
import '../../../src/components/Table.js';
|
|
8
8
|
|
|
9
9
|
const sampleRecords = [];
|
|
@@ -44,9 +44,9 @@ export default {
|
|
|
44
44
|
FirstPage Tests
|
|
45
45
|
*/
|
|
46
46
|
'FirstPage: should render first page button': async ({pass, fail}) => {
|
|
47
|
-
const { container, control } = await createTableWithControl('
|
|
47
|
+
const { container, control } = await createTableWithControl('kc-tc-first-page');
|
|
48
48
|
|
|
49
|
-
const btn = control
|
|
49
|
+
const btn = control;
|
|
50
50
|
if(!btn){
|
|
51
51
|
cleanup(container);
|
|
52
52
|
fail('FirstPage should render button');
|
|
@@ -65,13 +65,13 @@ export default {
|
|
|
65
65
|
},
|
|
66
66
|
|
|
67
67
|
'FirstPage: should be disabled on first page': async ({pass, fail}) => {
|
|
68
|
-
const { container, table, control } = await createTableWithControl('
|
|
68
|
+
const { container, table, control } = await createTableWithControl('kc-tc-first-page');
|
|
69
69
|
|
|
70
70
|
table.currentPage = 1;
|
|
71
71
|
await table.updateComplete;
|
|
72
72
|
await control.updateComplete;
|
|
73
73
|
|
|
74
|
-
const btn = control
|
|
74
|
+
const btn = control;
|
|
75
75
|
if(!btn.disabled){
|
|
76
76
|
cleanup(container);
|
|
77
77
|
fail('FirstPage button should be disabled on page 1');
|
|
@@ -83,13 +83,13 @@ export default {
|
|
|
83
83
|
},
|
|
84
84
|
|
|
85
85
|
'FirstPage: should be enabled on other pages': async ({pass, fail}) => {
|
|
86
|
-
const { container, table, control } = await createTableWithControl('
|
|
86
|
+
const { container, table, control } = await createTableWithControl('kc-tc-first-page');
|
|
87
87
|
|
|
88
88
|
table.setPage(3);
|
|
89
89
|
await table.updateComplete;
|
|
90
90
|
await control.updateComplete;
|
|
91
91
|
|
|
92
|
-
const btn = control
|
|
92
|
+
const btn = control;
|
|
93
93
|
if(btn.disabled){
|
|
94
94
|
cleanup(container);
|
|
95
95
|
fail('FirstPage button should be enabled on page 3');
|
|
@@ -101,12 +101,12 @@ export default {
|
|
|
101
101
|
},
|
|
102
102
|
|
|
103
103
|
'FirstPage: should navigate to first page on click': async ({pass, fail}) => {
|
|
104
|
-
const { container, table, control } = await createTableWithControl('
|
|
104
|
+
const { container, table, control } = await createTableWithControl('kc-tc-first-page');
|
|
105
105
|
|
|
106
106
|
table.setPage(3);
|
|
107
107
|
await table.updateComplete;
|
|
108
108
|
|
|
109
|
-
const btn = control
|
|
109
|
+
const btn = control;
|
|
110
110
|
btn.click();
|
|
111
111
|
await table.updateComplete;
|
|
112
112
|
|
|
@@ -124,9 +124,9 @@ export default {
|
|
|
124
124
|
LastPage Tests
|
|
125
125
|
*/
|
|
126
126
|
'LastPage: should render last page button': async ({pass, fail}) => {
|
|
127
|
-
const { container, control } = await createTableWithControl('
|
|
127
|
+
const { container, control } = await createTableWithControl('kc-tc-last-page');
|
|
128
128
|
|
|
129
|
-
const btn = control
|
|
129
|
+
const btn = control;
|
|
130
130
|
if(!btn){
|
|
131
131
|
cleanup(container);
|
|
132
132
|
fail('LastPage should render button');
|
|
@@ -145,14 +145,14 @@ export default {
|
|
|
145
145
|
},
|
|
146
146
|
|
|
147
147
|
'LastPage: should be disabled on last page': async ({pass, fail}) => {
|
|
148
|
-
const { container, table, control } = await createTableWithControl('
|
|
148
|
+
const { container, table, control } = await createTableWithControl('kc-tc-last-page');
|
|
149
149
|
|
|
150
150
|
const totalPages = table.getTotalPages();
|
|
151
151
|
table.setPage(totalPages);
|
|
152
152
|
await table.updateComplete;
|
|
153
153
|
await control.updateComplete;
|
|
154
154
|
|
|
155
|
-
const btn = control
|
|
155
|
+
const btn = control;
|
|
156
156
|
if(!btn.disabled){
|
|
157
157
|
cleanup(container);
|
|
158
158
|
fail('LastPage button should be disabled on last page');
|
|
@@ -164,13 +164,13 @@ export default {
|
|
|
164
164
|
},
|
|
165
165
|
|
|
166
166
|
'LastPage: should be enabled on other pages': async ({pass, fail}) => {
|
|
167
|
-
const { container, table, control } = await createTableWithControl('
|
|
167
|
+
const { container, table, control } = await createTableWithControl('kc-tc-last-page');
|
|
168
168
|
|
|
169
169
|
table.setPage(1);
|
|
170
170
|
await table.updateComplete;
|
|
171
171
|
await control.updateComplete;
|
|
172
172
|
|
|
173
|
-
const btn = control
|
|
173
|
+
const btn = control;
|
|
174
174
|
if(btn.disabled){
|
|
175
175
|
cleanup(container);
|
|
176
176
|
fail('LastPage button should be enabled on page 1');
|
|
@@ -182,13 +182,13 @@ export default {
|
|
|
182
182
|
},
|
|
183
183
|
|
|
184
184
|
'LastPage: should navigate to last page on click': async ({pass, fail}) => {
|
|
185
|
-
const { container, table, control } = await createTableWithControl('
|
|
185
|
+
const { container, table, control } = await createTableWithControl('kc-tc-last-page');
|
|
186
186
|
|
|
187
187
|
table.setPage(1);
|
|
188
188
|
await table.updateComplete;
|
|
189
189
|
|
|
190
190
|
const totalPages = table.getTotalPages();
|
|
191
|
-
const btn = control
|
|
191
|
+
const btn = control;
|
|
192
192
|
btn.click();
|
|
193
193
|
await table.updateComplete;
|
|
194
194
|
|
|
@@ -206,9 +206,9 @@ export default {
|
|
|
206
206
|
NextPage Tests
|
|
207
207
|
*/
|
|
208
208
|
'NextPage: should render next page button': async ({pass, fail}) => {
|
|
209
|
-
const { container, control } = await createTableWithControl('
|
|
209
|
+
const { container, control } = await createTableWithControl('kc-tc-next-page');
|
|
210
210
|
|
|
211
|
-
const btn = control
|
|
211
|
+
const btn = control;
|
|
212
212
|
if(!btn){
|
|
213
213
|
cleanup(container);
|
|
214
214
|
fail('NextPage should render button');
|
|
@@ -227,14 +227,14 @@ export default {
|
|
|
227
227
|
},
|
|
228
228
|
|
|
229
229
|
'NextPage: should be disabled on last page': async ({pass, fail}) => {
|
|
230
|
-
const { container, table, control } = await createTableWithControl('
|
|
230
|
+
const { container, table, control } = await createTableWithControl('kc-tc-next-page');
|
|
231
231
|
|
|
232
232
|
const totalPages = table.getTotalPages();
|
|
233
233
|
table.setPage(totalPages);
|
|
234
234
|
await table.updateComplete;
|
|
235
235
|
await control.updateComplete;
|
|
236
236
|
|
|
237
|
-
const btn = control
|
|
237
|
+
const btn = control;
|
|
238
238
|
if(!btn.disabled){
|
|
239
239
|
cleanup(container);
|
|
240
240
|
fail('NextPage button should be disabled on last page');
|
|
@@ -246,12 +246,12 @@ export default {
|
|
|
246
246
|
},
|
|
247
247
|
|
|
248
248
|
'NextPage: should advance page on click': async ({pass, fail}) => {
|
|
249
|
-
const { container, table, control } = await createTableWithControl('
|
|
249
|
+
const { container, table, control } = await createTableWithControl('kc-tc-next-page');
|
|
250
250
|
|
|
251
251
|
table.setPage(1);
|
|
252
252
|
await table.updateComplete;
|
|
253
253
|
|
|
254
|
-
const btn = control
|
|
254
|
+
const btn = control;
|
|
255
255
|
btn.click();
|
|
256
256
|
await table.updateComplete;
|
|
257
257
|
|
|
@@ -269,9 +269,9 @@ export default {
|
|
|
269
269
|
PrevPage Tests
|
|
270
270
|
*/
|
|
271
271
|
'PrevPage: should render prev page button': async ({pass, fail}) => {
|
|
272
|
-
const { container, control } = await createTableWithControl('
|
|
272
|
+
const { container, control } = await createTableWithControl('kc-tc-prev-page');
|
|
273
273
|
|
|
274
|
-
const btn = control
|
|
274
|
+
const btn = control;
|
|
275
275
|
if(!btn){
|
|
276
276
|
cleanup(container);
|
|
277
277
|
fail('PrevPage should render button');
|
|
@@ -290,13 +290,13 @@ export default {
|
|
|
290
290
|
},
|
|
291
291
|
|
|
292
292
|
'PrevPage: should be disabled on first page': async ({pass, fail}) => {
|
|
293
|
-
const { container, table, control } = await createTableWithControl('
|
|
293
|
+
const { container, table, control } = await createTableWithControl('kc-tc-prev-page');
|
|
294
294
|
|
|
295
295
|
table.setPage(1);
|
|
296
296
|
await table.updateComplete;
|
|
297
297
|
await control.updateComplete;
|
|
298
298
|
|
|
299
|
-
const btn = control
|
|
299
|
+
const btn = control;
|
|
300
300
|
if(!btn.disabled){
|
|
301
301
|
cleanup(container);
|
|
302
302
|
fail('PrevPage button should be disabled on page 1');
|
|
@@ -308,12 +308,12 @@ export default {
|
|
|
308
308
|
},
|
|
309
309
|
|
|
310
310
|
'PrevPage: should go back page on click': async ({pass, fail}) => {
|
|
311
|
-
const { container, table, control } = await createTableWithControl('
|
|
311
|
+
const { container, table, control } = await createTableWithControl('kc-tc-prev-page');
|
|
312
312
|
|
|
313
313
|
table.setPage(3);
|
|
314
314
|
await table.updateComplete;
|
|
315
315
|
|
|
316
|
-
const btn = control
|
|
316
|
+
const btn = control;
|
|
317
317
|
btn.click();
|
|
318
318
|
await table.updateComplete;
|
|
319
319
|
|
|
@@ -331,7 +331,7 @@ export default {
|
|
|
331
331
|
PageSelect Tests
|
|
332
332
|
*/
|
|
333
333
|
'PageSelect: should render page select dropdown': async ({pass, fail}) => {
|
|
334
|
-
const { container, control } = await createTableWithControl('
|
|
334
|
+
const { container, control } = await createTableWithControl('kc-tc-page-select');
|
|
335
335
|
|
|
336
336
|
const select = control.shadowRoot.querySelector('select');
|
|
337
337
|
if(!select){
|
|
@@ -345,7 +345,7 @@ export default {
|
|
|
345
345
|
},
|
|
346
346
|
|
|
347
347
|
'PageSelect: should have options for all pages': async ({pass, fail}) => {
|
|
348
|
-
const { container, table, control } = await createTableWithControl('
|
|
348
|
+
const { container, table, control } = await createTableWithControl('kc-tc-page-select');
|
|
349
349
|
|
|
350
350
|
// Wait for control to update after table records are set
|
|
351
351
|
await new Promise(resolve => setTimeout(resolve, 100));
|
|
@@ -365,7 +365,7 @@ export default {
|
|
|
365
365
|
},
|
|
366
366
|
|
|
367
367
|
'PageSelect: should change page on selection': async ({pass, fail}) => {
|
|
368
|
-
const { container, table, control } = await createTableWithControl('
|
|
368
|
+
const { container, table, control } = await createTableWithControl('kc-tc-page-select');
|
|
369
369
|
|
|
370
370
|
await new Promise(resolve => setTimeout(resolve, 50));
|
|
371
371
|
|
|
@@ -385,7 +385,7 @@ export default {
|
|
|
385
385
|
},
|
|
386
386
|
|
|
387
387
|
'PageSelect: should show total pages label': async ({pass, fail}) => {
|
|
388
|
-
const { container, table, control } = await createTableWithControl('
|
|
388
|
+
const { container, table, control } = await createTableWithControl('kc-tc-page-select');
|
|
389
389
|
|
|
390
390
|
await new Promise(resolve => setTimeout(resolve, 50));
|
|
391
391
|
await control.updateComplete;
|
|
@@ -412,7 +412,7 @@ export default {
|
|
|
412
412
|
PageSize Tests
|
|
413
413
|
*/
|
|
414
414
|
'PageSize: should render page size dropdown': async ({pass, fail}) => {
|
|
415
|
-
const { container, control } = await createTableWithControl('
|
|
415
|
+
const { container, control } = await createTableWithControl('kc-tc-page-size');
|
|
416
416
|
|
|
417
417
|
const select = control.shadowRoot.querySelector('select');
|
|
418
418
|
if(!select){
|
|
@@ -426,7 +426,7 @@ export default {
|
|
|
426
426
|
},
|
|
427
427
|
|
|
428
428
|
'PageSize: should have page size options': async ({pass, fail}) => {
|
|
429
|
-
const { container, table, control } = await createTableWithControl('
|
|
429
|
+
const { container, table, control } = await createTableWithControl('kc-tc-page-size');
|
|
430
430
|
|
|
431
431
|
await new Promise(resolve => setTimeout(resolve, 50));
|
|
432
432
|
|
|
@@ -442,7 +442,7 @@ export default {
|
|
|
442
442
|
},
|
|
443
443
|
|
|
444
444
|
'PageSize: should change page size on selection': async ({pass, fail}) => {
|
|
445
|
-
const { container, table, control } = await createTableWithControl('
|
|
445
|
+
const { container, table, control } = await createTableWithControl('kc-tc-page-size');
|
|
446
446
|
|
|
447
447
|
await new Promise(resolve => setTimeout(resolve, 50));
|
|
448
448
|
|
|
@@ -462,7 +462,7 @@ export default {
|
|
|
462
462
|
},
|
|
463
463
|
|
|
464
464
|
'PageSize: should show current page size as selected': async ({pass, fail}) => {
|
|
465
|
-
const { container, table, control } = await createTableWithControl('
|
|
465
|
+
const { container, table, control } = await createTableWithControl('kc-tc-page-size');
|
|
466
466
|
|
|
467
467
|
table.setPageSize(25);
|
|
468
468
|
await table.updateComplete;
|
|
@@ -483,13 +483,13 @@ export default {
|
|
|
483
483
|
Update on Events Tests
|
|
484
484
|
*/
|
|
485
485
|
'controls should update on pageChange event': async ({pass, fail}) => {
|
|
486
|
-
const { container, table, control } = await createTableWithControl('
|
|
486
|
+
const { container, table, control } = await createTableWithControl('kc-tc-first-page');
|
|
487
487
|
|
|
488
488
|
table.setPage(3);
|
|
489
489
|
await table.updateComplete;
|
|
490
490
|
await control.updateComplete;
|
|
491
491
|
|
|
492
|
-
let btnBefore = control
|
|
492
|
+
let btnBefore = control;
|
|
493
493
|
if(btnBefore.disabled){
|
|
494
494
|
cleanup(container);
|
|
495
495
|
fail('Button should not be disabled before navigation');
|
|
@@ -501,7 +501,7 @@ export default {
|
|
|
501
501
|
await new Promise(resolve => setTimeout(resolve, 10));
|
|
502
502
|
await control.updateComplete;
|
|
503
503
|
|
|
504
|
-
let btnAfter = control
|
|
504
|
+
let btnAfter = control;
|
|
505
505
|
if(!btnAfter.disabled){
|
|
506
506
|
cleanup(container);
|
|
507
507
|
fail('Button should be disabled after navigating to first page');
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import '../../../src/components/
|
|
2
|
-
import '../../../src/components/
|
|
3
|
-
import '../../../src/components/
|
|
4
|
-
import '../../../src/components/
|
|
1
|
+
import '../../../src/components/controls/TcDeleteRecord.js';
|
|
2
|
+
import '../../../src/components/controls/TcEdit.js';
|
|
3
|
+
import '../../../src/components/controls/TcHide.js';
|
|
4
|
+
import '../../../src/components/controls/TcShowAll.js';
|
|
5
5
|
import '../../../src/components/Table.js';
|
|
6
6
|
|
|
7
7
|
const sampleRecords = [
|
|
@@ -51,9 +51,9 @@ export default {
|
|
|
51
51
|
DeleteRecord Tests
|
|
52
52
|
*/
|
|
53
53
|
'DeleteRecord: should render delete button': async ({pass, fail}) => {
|
|
54
|
-
const { container, control } = await createTableWithControl('
|
|
54
|
+
const { container, control } = await createTableWithControl('kc-tc-delete-record');
|
|
55
55
|
|
|
56
|
-
const btn = control
|
|
56
|
+
const btn = control;
|
|
57
57
|
if(!btn){
|
|
58
58
|
cleanup(container);
|
|
59
59
|
fail('DeleteRecord should render button');
|
|
@@ -72,7 +72,7 @@ export default {
|
|
|
72
72
|
},
|
|
73
73
|
|
|
74
74
|
'DeleteRecord: should have delete method': async ({pass, fail}) => {
|
|
75
|
-
const { container, control } = await createTableWithControl('
|
|
75
|
+
const { container, control } = await createTableWithControl('kc-tc-delete-record');
|
|
76
76
|
|
|
77
77
|
if(typeof control.delete !== 'function'){
|
|
78
78
|
cleanup(container);
|
|
@@ -89,7 +89,7 @@ export default {
|
|
|
89
89
|
container.innerHTML = `
|
|
90
90
|
<k-table>
|
|
91
91
|
<div slot="controls">
|
|
92
|
-
<
|
|
92
|
+
<kc-tc-delete-record><span class="custom">Remove</span></kc-tc-delete-record>
|
|
93
93
|
</div>
|
|
94
94
|
</k-table>
|
|
95
95
|
`;
|
|
@@ -99,7 +99,7 @@ export default {
|
|
|
99
99
|
table.setRecords(sampleRecords.map(r => ({...r})));
|
|
100
100
|
await table.updateComplete;
|
|
101
101
|
|
|
102
|
-
const control = container.querySelector('
|
|
102
|
+
const control = container.querySelector('kc-tc-delete-record');
|
|
103
103
|
await control.updateComplete;
|
|
104
104
|
|
|
105
105
|
const slot = control.shadowRoot.querySelector('slot');
|
|
@@ -117,9 +117,9 @@ export default {
|
|
|
117
117
|
Edit Tests
|
|
118
118
|
*/
|
|
119
119
|
'Edit: should render edit button': async ({pass, fail}) => {
|
|
120
|
-
const { container, control } = await createTableWithControl('
|
|
120
|
+
const { container, control } = await createTableWithControl('kc-tc-edit');
|
|
121
121
|
|
|
122
|
-
const btn = control
|
|
122
|
+
const btn = control;
|
|
123
123
|
if(!btn){
|
|
124
124
|
cleanup(container);
|
|
125
125
|
fail('Edit should render button');
|
|
@@ -137,21 +137,9 @@ export default {
|
|
|
137
137
|
pass('Edit renders correctly');
|
|
138
138
|
},
|
|
139
139
|
|
|
140
|
-
'Edit: should have default maxWidth of 80': async ({pass, fail}) => {
|
|
141
|
-
const { container, control } = await createTableWithControl('k-tc-edit');
|
|
142
|
-
|
|
143
|
-
if(control.maxWidth !== 80){
|
|
144
|
-
cleanup(container);
|
|
145
|
-
fail(`Expected maxWidth 80, got ${control.maxWidth}`);
|
|
146
|
-
return;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
cleanup(container);
|
|
150
|
-
pass('Edit has default maxWidth of 80');
|
|
151
|
-
},
|
|
152
140
|
|
|
153
141
|
'Edit: should have isEditing property': async ({pass, fail}) => {
|
|
154
|
-
const { container, control } = await createTableWithControl('
|
|
142
|
+
const { container, control } = await createTableWithControl('kc-tc-edit');
|
|
155
143
|
|
|
156
144
|
if(control.isEditing !== undefined && typeof control.isEditing !== 'boolean'){
|
|
157
145
|
cleanup(container);
|
|
@@ -164,7 +152,7 @@ export default {
|
|
|
164
152
|
},
|
|
165
153
|
|
|
166
154
|
'Edit: should have handleEdit method': async ({pass, fail}) => {
|
|
167
|
-
const { container, control } = await createTableWithControl('
|
|
155
|
+
const { container, control } = await createTableWithControl('kc-tc-edit');
|
|
168
156
|
|
|
169
157
|
if(typeof control.handleEdit !== 'function'){
|
|
170
158
|
cleanup(container);
|
|
@@ -177,7 +165,7 @@ export default {
|
|
|
177
165
|
},
|
|
178
166
|
|
|
179
167
|
'Edit: should have handleSave method': async ({pass, fail}) => {
|
|
180
|
-
const { container, control } = await createTableWithControl('
|
|
168
|
+
const { container, control } = await createTableWithControl('kc-tc-edit');
|
|
181
169
|
|
|
182
170
|
if(typeof control.handleSave !== 'function'){
|
|
183
171
|
cleanup(container);
|
|
@@ -190,7 +178,7 @@ export default {
|
|
|
190
178
|
},
|
|
191
179
|
|
|
192
180
|
'Edit: should have handleCancel method': async ({pass, fail}) => {
|
|
193
|
-
const { container, control } = await createTableWithControl('
|
|
181
|
+
const { container, control } = await createTableWithControl('kc-tc-edit');
|
|
194
182
|
|
|
195
183
|
if(typeof control.handleCancel !== 'function'){
|
|
196
184
|
cleanup(container);
|
|
@@ -203,7 +191,7 @@ export default {
|
|
|
203
191
|
},
|
|
204
192
|
|
|
205
193
|
'Edit: should show save/cancel buttons when editing': async ({pass, fail}) => {
|
|
206
|
-
const { container, control } = await createTableWithControl('
|
|
194
|
+
const { container, control } = await createTableWithControl('kc-tc-edit');
|
|
207
195
|
|
|
208
196
|
control.isEditing = true;
|
|
209
197
|
await control.updateComplete;
|
|
@@ -232,9 +220,9 @@ export default {
|
|
|
232
220
|
Hide Tests
|
|
233
221
|
*/
|
|
234
222
|
'Hide: should render hide button': async ({pass, fail}) => {
|
|
235
|
-
const { container, control } = await createTableWithControl('
|
|
223
|
+
const { container, control } = await createTableWithControl('kc-tc-hide');
|
|
236
224
|
|
|
237
|
-
const btn = control
|
|
225
|
+
const btn = control;
|
|
238
226
|
if(!btn){
|
|
239
227
|
cleanup(container);
|
|
240
228
|
fail('Hide should render button');
|
|
@@ -252,21 +240,9 @@ export default {
|
|
|
252
240
|
pass('Hide renders correctly');
|
|
253
241
|
},
|
|
254
242
|
|
|
255
|
-
'Hide: should have default maxWidth of 40': async ({pass, fail}) => {
|
|
256
|
-
const { container, control } = await createTableWithControl('k-tc-hide');
|
|
257
|
-
|
|
258
|
-
if(control.maxWidth !== 40){
|
|
259
|
-
cleanup(container);
|
|
260
|
-
fail(`Expected maxWidth 40, got ${control.maxWidth}`);
|
|
261
|
-
return;
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
cleanup(container);
|
|
265
|
-
pass('Hide has default maxWidth of 40');
|
|
266
|
-
},
|
|
267
243
|
|
|
268
244
|
'Hide: should have handleHide method': async ({pass, fail}) => {
|
|
269
|
-
const { container, control } = await createTableWithControl('
|
|
245
|
+
const { container, control } = await createTableWithControl('kc-tc-hide');
|
|
270
246
|
|
|
271
247
|
if(typeof control.handleHide !== 'function'){
|
|
272
248
|
cleanup(container);
|
|
@@ -282,9 +258,9 @@ export default {
|
|
|
282
258
|
ShowAll Tests
|
|
283
259
|
*/
|
|
284
260
|
'ShowAll: should render show all button': async ({pass, fail}) => {
|
|
285
|
-
const { container, control } = await createTableWithControl('
|
|
261
|
+
const { container, control } = await createTableWithControl('kc-tc-show-all');
|
|
286
262
|
|
|
287
|
-
const btn = control
|
|
263
|
+
const btn = control;
|
|
288
264
|
if(!btn){
|
|
289
265
|
cleanup(container);
|
|
290
266
|
fail('ShowAll should render button');
|
|
@@ -302,21 +278,9 @@ export default {
|
|
|
302
278
|
pass('ShowAll renders correctly');
|
|
303
279
|
},
|
|
304
280
|
|
|
305
|
-
'ShowAll: should have default maxWidth of 40': async ({pass, fail}) => {
|
|
306
|
-
const { container, control } = await createTableWithControl('k-tc-show-all');
|
|
307
|
-
|
|
308
|
-
if(control.maxWidth !== 40){
|
|
309
|
-
cleanup(container);
|
|
310
|
-
fail(`Expected maxWidth 40, got ${control.maxWidth}`);
|
|
311
|
-
return;
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
cleanup(container);
|
|
315
|
-
pass('ShowAll has default maxWidth of 40');
|
|
316
|
-
},
|
|
317
281
|
|
|
318
282
|
'ShowAll: should have handleShowAll method': async ({pass, fail}) => {
|
|
319
|
-
const { container, control } = await createTableWithControl('
|
|
283
|
+
const { container, control } = await createTableWithControl('kc-tc-show-all');
|
|
320
284
|
|
|
321
285
|
if(typeof control.handleShowAll !== 'function'){
|
|
322
286
|
cleanup(container);
|
|
@@ -329,7 +293,7 @@ export default {
|
|
|
329
293
|
},
|
|
330
294
|
|
|
331
295
|
'ShowAll: should call table showAllRecords on click': async ({pass, fail}) => {
|
|
332
|
-
const { container, table, control } = await createTableWithControl('
|
|
296
|
+
const { container, table, control } = await createTableWithControl('kc-tc-show-all');
|
|
333
297
|
|
|
334
298
|
// Hide some records first
|
|
335
299
|
table.hideRecord(table.records[0]);
|
|
@@ -343,7 +307,7 @@ export default {
|
|
|
343
307
|
return;
|
|
344
308
|
}
|
|
345
309
|
|
|
346
|
-
const btn = control
|
|
310
|
+
const btn = control;
|
|
347
311
|
btn.click();
|
|
348
312
|
await table.updateComplete;
|
|
349
313
|
|