@gravity-ui/querieskit 1.0.1
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/.agents/skills/gravity-ui/SKILL.md +175 -0
- package/.agents/skills/gravity-ui/references/icons.md +60 -0
- package/.agents/skills/gravity-ui/references/layout.md +366 -0
- package/.agents/skills/gravity-ui/references/package-routing.md +424 -0
- package/.agents/skills/gravity-ui/references/theming.md +309 -0
- package/.agents/skills/gravity-ui/rules/hallucination-traps.md +361 -0
- package/.agents/skills/gravity-ui/scripts/icon-image-search.sh +63 -0
- package/.eslintignore +3 -0
- package/.github/workflows/ci.yml +25 -0
- package/.github/workflows/main-preview.yml +31 -0
- package/.github/workflows/pr-preview-build.yml +13 -0
- package/.github/workflows/pr-preview-deploy.yml +22 -0
- package/.github/workflows/pr-title.yml +27 -0
- package/.github/workflows/release.yml +20 -0
- package/.nvmrc +1 -0
- package/.prettierrc.js +1 -0
- package/.storybook/main.ts +31 -0
- package/.storybook/preview.tsx +43 -0
- package/.storybook/redefinition.css +3 -0
- package/.storybook/tsconfig.json +9 -0
- package/.stylelintrc +9 -0
- package/AGENTS.md +117 -0
- package/CHANGELOG.md +31 -0
- package/CODEOWNERS +1 -0
- package/CONTRIBUTING.md +31 -0
- package/LICENSE +21 -0
- package/NOTICES.md +8 -0
- package/README.md +146 -0
- package/app-builder.config.ts +9 -0
- package/build/cjs/components/FieldsSelector/FieldsSelector.css +15 -0
- package/build/cjs/components/FieldsSelector/FieldsSelector.css.map +1 -0
- package/build/cjs/components/FieldsSelector/FieldsSelector.d.ts +13 -0
- package/build/cjs/components/FieldsSelector/FieldsSelector.js +139 -0
- package/build/cjs/components/FieldsSelector/FieldsSelector.js.map +1 -0
- package/build/cjs/components/FieldsSelector/FieldsSelector.stories.d.ts +7 -0
- package/build/cjs/components/FieldsSelector/FieldsSelector.stories.js +66 -0
- package/build/cjs/components/FieldsSelector/FieldsSelector.stories.js.map +1 -0
- package/build/cjs/components/FieldsSelector/i18n/dicts.d.ts +9 -0
- package/build/cjs/components/FieldsSelector/i18n/dicts.js +14 -0
- package/build/cjs/components/FieldsSelector/i18n/dicts.js.map +1 -0
- package/build/cjs/components/FieldsSelector/i18n/en.json +3 -0
- package/build/cjs/components/FieldsSelector/i18n/index.d.ts +6 -0
- package/build/cjs/components/FieldsSelector/i18n/index.js +11 -0
- package/build/cjs/components/FieldsSelector/i18n/index.js.map +1 -0
- package/build/cjs/components/FieldsSelector/i18n/ru.json +3 -0
- package/build/cjs/components/FieldsSelector/index.d.ts +1 -0
- package/build/cjs/components/FieldsSelector/index.js +13 -0
- package/build/cjs/components/FieldsSelector/index.js.map +1 -0
- package/build/cjs/components/HistoryFilter/HistoryFilter.css +4 -0
- package/build/cjs/components/HistoryFilter/HistoryFilter.css.map +1 -0
- package/build/cjs/components/HistoryFilter/HistoryFilter.d.ts +4 -0
- package/build/cjs/components/HistoryFilter/HistoryFilter.js +120 -0
- package/build/cjs/components/HistoryFilter/HistoryFilter.js.map +1 -0
- package/build/cjs/components/HistoryFilter/HistoryFilter.stories.d.ts +13 -0
- package/build/cjs/components/HistoryFilter/HistoryFilter.stories.js +100 -0
- package/build/cjs/components/HistoryFilter/HistoryFilter.stories.js.map +1 -0
- package/build/cjs/components/HistoryFilter/i18n/dicts.d.ts +11 -0
- package/build/cjs/components/HistoryFilter/i18n/dicts.js +14 -0
- package/build/cjs/components/HistoryFilter/i18n/dicts.js.map +1 -0
- package/build/cjs/components/HistoryFilter/i18n/en.json +4 -0
- package/build/cjs/components/HistoryFilter/i18n/index.d.ts +6 -0
- package/build/cjs/components/HistoryFilter/i18n/index.js +11 -0
- package/build/cjs/components/HistoryFilter/i18n/index.js.map +1 -0
- package/build/cjs/components/HistoryFilter/i18n/ru.json +4 -0
- package/build/cjs/components/HistoryFilter/index.d.ts +1 -0
- package/build/cjs/components/HistoryFilter/index.js +13 -0
- package/build/cjs/components/HistoryFilter/index.js.map +1 -0
- package/build/cjs/components/HistoryGroupHeader/HistoryGroupHeader.css +8 -0
- package/build/cjs/components/HistoryGroupHeader/HistoryGroupHeader.css.map +1 -0
- package/build/cjs/components/HistoryGroupHeader/HistoryGroupHeader.d.ts +7 -0
- package/build/cjs/components/HistoryGroupHeader/HistoryGroupHeader.js +23 -0
- package/build/cjs/components/HistoryGroupHeader/HistoryGroupHeader.js.map +1 -0
- package/build/cjs/components/HistoryGroupHeader/index.d.ts +1 -0
- package/build/cjs/components/HistoryGroupHeader/index.js +13 -0
- package/build/cjs/components/HistoryGroupHeader/index.js.map +1 -0
- package/build/cjs/components/HistoryListEmpty/HistoryListEmpty.css +4 -0
- package/build/cjs/components/HistoryListEmpty/HistoryListEmpty.css.map +1 -0
- package/build/cjs/components/HistoryListEmpty/HistoryListEmpty.d.ts +7 -0
- package/build/cjs/components/HistoryListEmpty/HistoryListEmpty.js +42 -0
- package/build/cjs/components/HistoryListEmpty/HistoryListEmpty.js.map +1 -0
- package/build/cjs/components/HistoryListEmpty/i18n/dicts.d.ts +11 -0
- package/build/cjs/components/HistoryListEmpty/i18n/dicts.js +14 -0
- package/build/cjs/components/HistoryListEmpty/i18n/dicts.js.map +1 -0
- package/build/cjs/components/HistoryListEmpty/i18n/en.json +4 -0
- package/build/cjs/components/HistoryListEmpty/i18n/index.d.ts +6 -0
- package/build/cjs/components/HistoryListEmpty/i18n/index.js +11 -0
- package/build/cjs/components/HistoryListEmpty/i18n/index.js.map +1 -0
- package/build/cjs/components/HistoryListEmpty/i18n/ru.json +4 -0
- package/build/cjs/components/HistoryListEmpty/index.d.ts +2 -0
- package/build/cjs/components/HistoryListEmpty/index.js +13 -0
- package/build/cjs/components/HistoryListEmpty/index.js.map +1 -0
- package/build/cjs/components/HistoryPrivateIcon/HistoryPrivateIcon.css +7 -0
- package/build/cjs/components/HistoryPrivateIcon/HistoryPrivateIcon.css.map +1 -0
- package/build/cjs/components/HistoryPrivateIcon/HistoryPrivateIcon.d.ts +7 -0
- package/build/cjs/components/HistoryPrivateIcon/HistoryPrivateIcon.js +59 -0
- package/build/cjs/components/HistoryPrivateIcon/HistoryPrivateIcon.js.map +1 -0
- package/build/cjs/components/HistoryPrivateIcon/index.d.ts +1 -0
- package/build/cjs/components/HistoryPrivateIcon/index.js +13 -0
- package/build/cjs/components/HistoryPrivateIcon/index.js.map +1 -0
- package/build/cjs/components/MonacoEditor/MonacoEditor.d.ts +15 -0
- package/build/cjs/components/MonacoEditor/MonacoEditor.js +108 -0
- package/build/cjs/components/MonacoEditor/MonacoEditor.js.map +1 -0
- package/build/cjs/components/MonacoEditor/MonacoEditorThemes.d.ts +6 -0
- package/build/cjs/components/MonacoEditor/MonacoEditorThemes.js +77 -0
- package/build/cjs/components/MonacoEditor/MonacoEditorThemes.js.map +1 -0
- package/build/cjs/components/MonacoEditor/index.d.ts +5 -0
- package/build/cjs/components/MonacoEditor/index.js +51 -0
- package/build/cjs/components/MonacoEditor/index.js.map +1 -0
- package/build/cjs/components/MonacoEditor/monaco-yql-languages/_.contribution.d.ts +57 -0
- package/build/cjs/components/MonacoEditor/monaco-yql-languages/_.contribution.js +151 -0
- package/build/cjs/components/MonacoEditor/monaco-yql-languages/_.contribution.js.map +1 -0
- package/build/cjs/components/MonacoEditor/monaco-yql-languages/clickhouse/clickhouse.contribution.d.ts +1 -0
- package/build/cjs/components/MonacoEditor/monaco-yql-languages/clickhouse/clickhouse.contribution.js +40 -0
- package/build/cjs/components/MonacoEditor/monaco-yql-languages/clickhouse/clickhouse.contribution.js.map +1 -0
- package/build/cjs/components/MonacoEditor/monaco-yql-languages/clickhouse/clickhouse.d.ts +3 -0
- package/build/cjs/components/MonacoEditor/monaco-yql-languages/clickhouse/clickhouse.js +182 -0
- package/build/cjs/components/MonacoEditor/monaco-yql-languages/clickhouse/clickhouse.js.map +1 -0
- package/build/cjs/components/MonacoEditor/monaco-yql-languages/clickhouse/clickhouse.keywords.d.ts +8 -0
- package/build/cjs/components/MonacoEditor/monaco-yql-languages/clickhouse/clickhouse.keywords.js +15 -0
- package/build/cjs/components/MonacoEditor/monaco-yql-languages/clickhouse/clickhouse.keywords.js.map +1 -0
- package/build/cjs/components/MonacoEditor/monaco-yql-languages/constants.d.ts +6 -0
- package/build/cjs/components/MonacoEditor/monaco-yql-languages/constants.js +14 -0
- package/build/cjs/components/MonacoEditor/monaco-yql-languages/constants.js.map +1 -0
- package/build/cjs/components/MonacoEditor/monaco-yql-languages/fillers/monaco-editor-core.d.ts +1 -0
- package/build/cjs/components/MonacoEditor/monaco-yql-languages/fillers/monaco-editor-core.js +17 -0
- package/build/cjs/components/MonacoEditor/monaco-yql-languages/fillers/monaco-editor-core.js.map +1 -0
- package/build/cjs/components/MonacoEditor/monaco-yql-languages/index.d.ts +1 -0
- package/build/cjs/components/MonacoEditor/monaco-yql-languages/index.js +13 -0
- package/build/cjs/components/MonacoEditor/monaco-yql-languages/index.js.map +1 -0
- package/build/cjs/components/MonacoEditor/monaco-yql-languages/monaco.contribution.d.ts +5 -0
- package/build/cjs/components/MonacoEditor/monaco-yql-languages/monaco.contribution.js +8 -0
- package/build/cjs/components/MonacoEditor/monaco-yql-languages/monaco.contribution.js.map +1 -0
- package/build/cjs/components/MonacoEditor/monaco-yql-languages/s-expressions/s-expressions.contribution.d.ts +1 -0
- package/build/cjs/components/MonacoEditor/monaco-yql-languages/s-expressions/s-expressions.contribution.js +40 -0
- package/build/cjs/components/MonacoEditor/monaco-yql-languages/s-expressions/s-expressions.contribution.js.map +1 -0
- package/build/cjs/components/MonacoEditor/monaco-yql-languages/s-expressions/s-expressions.d.ts +4 -0
- package/build/cjs/components/MonacoEditor/monaco-yql-languages/s-expressions/s-expressions.js +185 -0
- package/build/cjs/components/MonacoEditor/monaco-yql-languages/s-expressions/s-expressions.js.map +1 -0
- package/build/cjs/components/MonacoEditor/monaco-yql-languages/s-expressions/s-expressions.keywords.d.ts +5 -0
- package/build/cjs/components/MonacoEditor/monaco-yql-languages/s-expressions/s-expressions.keywords.js +12 -0
- package/build/cjs/components/MonacoEditor/monaco-yql-languages/s-expressions/s-expressions.keywords.js.map +1 -0
- package/build/cjs/components/MonacoEditor/monaco-yql-languages/themes/themes.contribution.d.ts +1 -0
- package/build/cjs/components/MonacoEditor/monaco-yql-languages/themes/themes.contribution.js +63 -0
- package/build/cjs/components/MonacoEditor/monaco-yql-languages/themes/themes.contribution.js.map +1 -0
- package/build/cjs/components/MonacoEditor/monaco-yql-languages/yql/yql.contribution.d.ts +1 -0
- package/build/cjs/components/MonacoEditor/monaco-yql-languages/yql/yql.contribution.js +40 -0
- package/build/cjs/components/MonacoEditor/monaco-yql-languages/yql/yql.contribution.js.map +1 -0
- package/build/cjs/components/MonacoEditor/monaco-yql-languages/yql/yql.d.ts +3 -0
- package/build/cjs/components/MonacoEditor/monaco-yql-languages/yql/yql.js +177 -0
- package/build/cjs/components/MonacoEditor/monaco-yql-languages/yql/yql.js.map +1 -0
- package/build/cjs/components/MonacoEditor/monaco-yql-languages/yql/yql.keywords.d.ts +3 -0
- package/build/cjs/components/MonacoEditor/monaco-yql-languages/yql/yql.keywords.js +10 -0
- package/build/cjs/components/MonacoEditor/monaco-yql-languages/yql/yql.keywords.js.map +1 -0
- package/build/cjs/components/MonacoEditor/monaco-yql-languages/yql_ansi/yql_ansi.contribution.d.ts +1 -0
- package/build/cjs/components/MonacoEditor/monaco-yql-languages/yql_ansi/yql_ansi.contribution.js +40 -0
- package/build/cjs/components/MonacoEditor/monaco-yql-languages/yql_ansi/yql_ansi.contribution.js.map +1 -0
- package/build/cjs/components/MonacoEditor/monaco-yql-languages/yql_ansi/yql_ansi.d.ts +3 -0
- package/build/cjs/components/MonacoEditor/monaco-yql-languages/yql_ansi/yql_ansi.js +134 -0
- package/build/cjs/components/MonacoEditor/monaco-yql-languages/yql_ansi/yql_ansi.js.map +1 -0
- package/build/cjs/components/MonacoEditor/monaco-yql-languages/yql_ansi/yql_ansi.keywords.d.ts +1 -0
- package/build/cjs/components/MonacoEditor/monaco-yql-languages/yql_ansi/yql_ansi.keywords.js +8 -0
- package/build/cjs/components/MonacoEditor/monaco-yql-languages/yql_ansi/yql_ansi.keywords.js.map +1 -0
- package/build/cjs/components/QueryDuration/QueryDuration.css +5 -0
- package/build/cjs/components/QueryDuration/QueryDuration.css.map +1 -0
- package/build/cjs/components/QueryDuration/QueryDuration.d.ts +11 -0
- package/build/cjs/components/QueryDuration/QueryDuration.js +26 -0
- package/build/cjs/components/QueryDuration/QueryDuration.js.map +1 -0
- package/build/cjs/components/QueryDuration/QueryDuration.stories.d.ts +9 -0
- package/build/cjs/components/QueryDuration/QueryDuration.stories.js +61 -0
- package/build/cjs/components/QueryDuration/QueryDuration.stories.js.map +1 -0
- package/build/cjs/components/QueryDuration/index.d.ts +1 -0
- package/build/cjs/components/QueryDuration/index.js +13 -0
- package/build/cjs/components/QueryDuration/index.js.map +1 -0
- package/build/cjs/components/QueryDuration/useQueryDuration.d.ts +2 -0
- package/build/cjs/components/QueryDuration/useQueryDuration.js +42 -0
- package/build/cjs/components/QueryDuration/useQueryDuration.js.map +1 -0
- package/build/cjs/components/QueryStatusIcon/QueryStatusIcon.css +13 -0
- package/build/cjs/components/QueryStatusIcon/QueryStatusIcon.css.map +1 -0
- package/build/cjs/components/QueryStatusIcon/QueryStatusIcon.d.ts +9 -0
- package/build/cjs/components/QueryStatusIcon/QueryStatusIcon.js +129 -0
- package/build/cjs/components/QueryStatusIcon/QueryStatusIcon.js.map +1 -0
- package/build/cjs/components/QueryStatusIcon/QueryStatusIcon.stories.d.ts +11 -0
- package/build/cjs/components/QueryStatusIcon/QueryStatusIcon.stories.js +71 -0
- package/build/cjs/components/QueryStatusIcon/QueryStatusIcon.stories.js.map +1 -0
- package/build/cjs/components/QueryStatusIcon/index.d.ts +1 -0
- package/build/cjs/components/QueryStatusIcon/index.js +13 -0
- package/build/cjs/components/QueryStatusIcon/index.js.map +1 -0
- package/build/cjs/components/RowLink/RowLink.css +10 -0
- package/build/cjs/components/RowLink/RowLink.css.map +1 -0
- package/build/cjs/components/RowLink/RowLink.d.ts +9 -0
- package/build/cjs/components/RowLink/RowLink.js +26 -0
- package/build/cjs/components/RowLink/RowLink.js.map +1 -0
- package/build/cjs/components/RowLink/index.d.ts +2 -0
- package/build/cjs/components/RowLink/index.js +13 -0
- package/build/cjs/components/RowLink/index.js.map +1 -0
- package/build/cjs/components/SearchRowLayout/SearchRowLayout.css +11 -0
- package/build/cjs/components/SearchRowLayout/SearchRowLayout.css.map +1 -0
- package/build/cjs/components/SearchRowLayout/SearchRowLayout.d.ts +11 -0
- package/build/cjs/components/SearchRowLayout/SearchRowLayout.js +47 -0
- package/build/cjs/components/SearchRowLayout/SearchRowLayout.js.map +1 -0
- package/build/cjs/components/SearchRowLayout/helpers/fitQueryToVisibleLines.d.ts +1 -0
- package/build/cjs/components/SearchRowLayout/helpers/fitQueryToVisibleLines.js +21 -0
- package/build/cjs/components/SearchRowLayout/helpers/fitQueryToVisibleLines.js.map +1 -0
- package/build/cjs/components/SearchRowLayout/helpers/monacoConfig.d.ts +2 -0
- package/build/cjs/components/SearchRowLayout/helpers/monacoConfig.js +29 -0
- package/build/cjs/components/SearchRowLayout/helpers/monacoConfig.js.map +1 -0
- package/build/cjs/components/SearchRowLayout/index.d.ts +2 -0
- package/build/cjs/components/SearchRowLayout/index.js +13 -0
- package/build/cjs/components/SearchRowLayout/index.js.map +1 -0
- package/build/cjs/components/SimpleForm/CheckboxGroupField.d.ts +18 -0
- package/build/cjs/components/SimpleForm/CheckboxGroupField.js +56 -0
- package/build/cjs/components/SimpleForm/CheckboxGroupField.js.map +1 -0
- package/build/cjs/components/SimpleForm/RangeDatePickerField.d.ts +16 -0
- package/build/cjs/components/SimpleForm/RangeDatePickerField.js +51 -0
- package/build/cjs/components/SimpleForm/RangeDatePickerField.js.map +1 -0
- package/build/cjs/components/SimpleForm/SelectField.d.ts +14 -0
- package/build/cjs/components/SimpleForm/SelectField.js +28 -0
- package/build/cjs/components/SimpleForm/SelectField.js.map +1 -0
- package/build/cjs/components/SimpleForm/SimpleForm.d.ts +12 -0
- package/build/cjs/components/SimpleForm/SimpleForm.js +77 -0
- package/build/cjs/components/SimpleForm/SimpleForm.js.map +1 -0
- package/build/cjs/components/SimpleForm/SimpleForm.stories.d.ts +19 -0
- package/build/cjs/components/SimpleForm/SimpleForm.stories.js +150 -0
- package/build/cjs/components/SimpleForm/SimpleForm.stories.js.map +1 -0
- package/build/cjs/components/SimpleForm/SwitchField.d.ts +12 -0
- package/build/cjs/components/SimpleForm/SwitchField.js +26 -0
- package/build/cjs/components/SimpleForm/SwitchField.js.map +1 -0
- package/build/cjs/components/SimpleForm/helpers/controlsRegistry.d.ts +6 -0
- package/build/cjs/components/SimpleForm/helpers/controlsRegistry.js +31 -0
- package/build/cjs/components/SimpleForm/helpers/controlsRegistry.js.map +1 -0
- package/build/cjs/components/SimpleForm/helpers/getInitialValues.d.ts +4 -0
- package/build/cjs/components/SimpleForm/helpers/getInitialValues.js +20 -0
- package/build/cjs/components/SimpleForm/helpers/getInitialValues.js.map +1 -0
- package/build/cjs/components/SimpleForm/helpers/index.d.ts +2 -0
- package/build/cjs/components/SimpleForm/helpers/index.js +26 -0
- package/build/cjs/components/SimpleForm/helpers/index.js.map +1 -0
- package/build/cjs/components/SimpleForm/index.d.ts +7 -0
- package/build/cjs/components/SimpleForm/index.js +34 -0
- package/build/cjs/components/SimpleForm/index.js.map +1 -0
- package/build/cjs/components/index.d.ts +16 -0
- package/build/cjs/components/index.js +112 -0
- package/build/cjs/components/index.js.map +1 -0
- package/build/cjs/constants/query.d.ts +3 -0
- package/build/cjs/constants/query.js +9 -0
- package/build/cjs/constants/query.js.map +1 -0
- package/build/cjs/constants/row.d.ts +1 -0
- package/build/cjs/constants/row.js +8 -0
- package/build/cjs/constants/row.js.map +1 -0
- package/build/cjs/helpers/getListKey.d.ts +2 -0
- package/build/cjs/helpers/getListKey.js +19 -0
- package/build/cjs/helpers/getListKey.js.map +1 -0
- package/build/cjs/helpers/isFieldVisible.d.ts +15 -0
- package/build/cjs/helpers/isFieldVisible.js +23 -0
- package/build/cjs/helpers/isFieldVisible.js.map +1 -0
- package/build/cjs/helpers/time.d.ts +7 -0
- package/build/cjs/helpers/time.js +28 -0
- package/build/cjs/helpers/time.js.map +1 -0
- package/build/cjs/helpers/useToggle.d.ts +1 -0
- package/build/cjs/helpers/useToggle.js +23 -0
- package/build/cjs/helpers/useToggle.js.map +1 -0
- package/build/cjs/i18n/index.d.ts +10 -0
- package/build/cjs/i18n/index.js +35 -0
- package/build/cjs/i18n/index.js.map +1 -0
- package/build/cjs/index.d.ts +5 -0
- package/build/cjs/index.js +61 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/modules/HistoryHeader/HistoryHeader.d.ts +14 -0
- package/build/cjs/modules/HistoryHeader/HistoryHeader.js +36 -0
- package/build/cjs/modules/HistoryHeader/HistoryHeader.js.map +1 -0
- package/build/cjs/modules/HistoryHeader/HistoryHeader.stories.d.ts +9 -0
- package/build/cjs/modules/HistoryHeader/HistoryHeader.stories.js +66 -0
- package/build/cjs/modules/HistoryHeader/HistoryHeader.stories.js.map +1 -0
- package/build/cjs/modules/HistoryHeader/HistorySearch.css +4 -0
- package/build/cjs/modules/HistoryHeader/HistorySearch.css.map +1 -0
- package/build/cjs/modules/HistoryHeader/HistorySearch.d.ts +13 -0
- package/build/cjs/modules/HistoryHeader/HistorySearch.js +94 -0
- package/build/cjs/modules/HistoryHeader/HistorySearch.js.map +1 -0
- package/build/cjs/modules/HistoryHeader/index.d.ts +1 -0
- package/build/cjs/modules/HistoryHeader/index.js +13 -0
- package/build/cjs/modules/HistoryHeader/index.js.map +1 -0
- package/build/cjs/modules/HistoryLayout/HistoryLayout.css +4 -0
- package/build/cjs/modules/HistoryLayout/HistoryLayout.css.map +1 -0
- package/build/cjs/modules/HistoryLayout/HistoryLayout.d.ts +12 -0
- package/build/cjs/modules/HistoryLayout/HistoryLayout.js +36 -0
- package/build/cjs/modules/HistoryLayout/HistoryLayout.js.map +1 -0
- package/build/cjs/modules/HistoryLayout/index.d.ts +2 -0
- package/build/cjs/modules/HistoryLayout/index.js +13 -0
- package/build/cjs/modules/HistoryLayout/index.js.map +1 -0
- package/build/cjs/modules/HistoryList/HistoryList.d.ts +16 -0
- package/build/cjs/modules/HistoryList/HistoryList.js +24 -0
- package/build/cjs/modules/HistoryList/HistoryList.js.map +1 -0
- package/build/cjs/modules/HistoryList/HistoryList.stories.d.ts +14 -0
- package/build/cjs/modules/HistoryList/HistoryList.stories.js +245 -0
- package/build/cjs/modules/HistoryList/HistoryList.stories.js.map +1 -0
- package/build/cjs/modules/HistoryList/HistoryRowContent.d.ts +3 -0
- package/build/cjs/modules/HistoryList/HistoryRowContent.js +31 -0
- package/build/cjs/modules/HistoryList/HistoryRowContent.js.map +1 -0
- package/build/cjs/modules/HistoryList/index.d.ts +2 -0
- package/build/cjs/modules/HistoryList/index.js +13 -0
- package/build/cjs/modules/HistoryList/index.js.map +1 -0
- package/build/cjs/modules/HistoryRow/HistoryRow.css +28 -0
- package/build/cjs/modules/HistoryRow/HistoryRow.css.map +1 -0
- package/build/cjs/modules/HistoryRow/HistoryRow.d.ts +7 -0
- package/build/cjs/modules/HistoryRow/HistoryRow.js +84 -0
- package/build/cjs/modules/HistoryRow/HistoryRow.js.map +1 -0
- package/build/cjs/modules/HistoryRow/HistoryRow.stories.d.ts +13 -0
- package/build/cjs/modules/HistoryRow/HistoryRow.stories.js +111 -0
- package/build/cjs/modules/HistoryRow/HistoryRow.stories.js.map +1 -0
- package/build/cjs/modules/HistoryRow/HistoryRowMenu.d.ts +8 -0
- package/build/cjs/modules/HistoryRow/HistoryRowMenu.js +76 -0
- package/build/cjs/modules/HistoryRow/HistoryRowMenu.js.map +1 -0
- package/build/cjs/modules/HistoryRow/HistoryRowTitle.d.ts +8 -0
- package/build/cjs/modules/HistoryRow/HistoryRowTitle.js +74 -0
- package/build/cjs/modules/HistoryRow/HistoryRowTitle.js.map +1 -0
- package/build/cjs/modules/HistoryRow/index.d.ts +1 -0
- package/build/cjs/modules/HistoryRow/index.js +13 -0
- package/build/cjs/modules/HistoryRow/index.js.map +1 -0
- package/build/cjs/modules/HistorySearchRow/HistorySearchRow.css +10 -0
- package/build/cjs/modules/HistorySearchRow/HistorySearchRow.css.map +1 -0
- package/build/cjs/modules/HistorySearchRow/HistorySearchRow.d.ts +7 -0
- package/build/cjs/modules/HistorySearchRow/HistorySearchRow.js +64 -0
- package/build/cjs/modules/HistorySearchRow/HistorySearchRow.js.map +1 -0
- package/build/cjs/modules/HistorySearchRow/HistorySearchRow.stories.d.ts +9 -0
- package/build/cjs/modules/HistorySearchRow/HistorySearchRow.stories.js +63 -0
- package/build/cjs/modules/HistorySearchRow/HistorySearchRow.stories.js.map +1 -0
- package/build/cjs/modules/HistorySearchRow/helpers/resolveMonacoLanguage.d.ts +2 -0
- package/build/cjs/modules/HistorySearchRow/helpers/resolveMonacoLanguage.js +29 -0
- package/build/cjs/modules/HistorySearchRow/helpers/resolveMonacoLanguage.js.map +1 -0
- package/build/cjs/modules/HistorySearchRow/index.d.ts +1 -0
- package/build/cjs/modules/HistorySearchRow/index.js +13 -0
- package/build/cjs/modules/HistorySearchRow/index.js.map +1 -0
- package/build/cjs/modules/RowsList/RowsList.css +4 -0
- package/build/cjs/modules/RowsList/RowsList.css.map +1 -0
- package/build/cjs/modules/RowsList/RowsList.d.ts +17 -0
- package/build/cjs/modules/RowsList/RowsList.js +79 -0
- package/build/cjs/modules/RowsList/RowsList.js.map +1 -0
- package/build/cjs/modules/RowsList/helpers/prepareRowData.d.ts +13 -0
- package/build/cjs/modules/RowsList/helpers/prepareRowData.js +40 -0
- package/build/cjs/modules/RowsList/helpers/prepareRowData.js.map +1 -0
- package/build/cjs/modules/RowsList/index.d.ts +2 -0
- package/build/cjs/modules/RowsList/index.js +13 -0
- package/build/cjs/modules/RowsList/index.js.map +1 -0
- package/build/cjs/modules/TutorialRow/TutorialRow.css +9 -0
- package/build/cjs/modules/TutorialRow/TutorialRow.css.map +1 -0
- package/build/cjs/modules/TutorialRow/TutorialRow.d.ts +7 -0
- package/build/cjs/modules/TutorialRow/TutorialRow.js +37 -0
- package/build/cjs/modules/TutorialRow/TutorialRow.js.map +1 -0
- package/build/cjs/modules/TutorialRow/TutorialRow.stories.d.ts +9 -0
- package/build/cjs/modules/TutorialRow/TutorialRow.stories.js +50 -0
- package/build/cjs/modules/TutorialRow/TutorialRow.stories.js.map +1 -0
- package/build/cjs/modules/TutorialRow/index.d.ts +2 -0
- package/build/cjs/modules/TutorialRow/index.js +13 -0
- package/build/cjs/modules/TutorialRow/index.js.map +1 -0
- package/build/cjs/modules/TutorialSearchRow/TutorialSearchRow.css +4 -0
- package/build/cjs/modules/TutorialSearchRow/TutorialSearchRow.css.map +1 -0
- package/build/cjs/modules/TutorialSearchRow/TutorialSearchRow.d.ts +7 -0
- package/build/cjs/modules/TutorialSearchRow/TutorialSearchRow.js +40 -0
- package/build/cjs/modules/TutorialSearchRow/TutorialSearchRow.js.map +1 -0
- package/build/cjs/modules/TutorialSearchRow/TutorialSearchRow.stories.d.ts +7 -0
- package/build/cjs/modules/TutorialSearchRow/TutorialSearchRow.stories.js +43 -0
- package/build/cjs/modules/TutorialSearchRow/TutorialSearchRow.stories.js.map +1 -0
- package/build/cjs/modules/TutorialSearchRow/index.d.ts +2 -0
- package/build/cjs/modules/TutorialSearchRow/index.js +13 -0
- package/build/cjs/modules/TutorialSearchRow/index.js.map +1 -0
- package/build/cjs/modules/index.d.ts +13 -0
- package/build/cjs/modules/index.js +62 -0
- package/build/cjs/modules/index.js.map +1 -0
- package/build/cjs/types/declarations.d.ts +15 -0
- package/build/cjs/types/forms.d.ts +30 -0
- package/build/cjs/types/forms.js +6 -0
- package/build/cjs/types/forms.js.map +1 -0
- package/build/cjs/types/history.d.ts +91 -0
- package/build/cjs/types/history.js +6 -0
- package/build/cjs/types/history.js.map +1 -0
- package/build/cjs/types/tutorial.d.ts +2 -0
- package/build/cjs/types/tutorial.js +6 -0
- package/build/cjs/types/tutorial.js.map +1 -0
- package/build/cjs/widgets/QueriesHistory/ComparisonActions.css +5 -0
- package/build/cjs/widgets/QueriesHistory/ComparisonActions.css.map +1 -0
- package/build/cjs/widgets/QueriesHistory/ComparisonActions.d.ts +9 -0
- package/build/cjs/widgets/QueriesHistory/ComparisonActions.js +81 -0
- package/build/cjs/widgets/QueriesHistory/ComparisonActions.js.map +1 -0
- package/build/cjs/widgets/QueriesHistory/QueriesHistory.css +10 -0
- package/build/cjs/widgets/QueriesHistory/QueriesHistory.css.map +1 -0
- package/build/cjs/widgets/QueriesHistory/QueriesHistory.d.ts +19 -0
- package/build/cjs/widgets/QueriesHistory/QueriesHistory.js +73 -0
- package/build/cjs/widgets/QueriesHistory/QueriesHistory.js.map +1 -0
- package/build/cjs/widgets/QueriesHistory/QueriesHistory.stories.d.ts +7 -0
- package/build/cjs/widgets/QueriesHistory/QueriesHistory.stories.js +298 -0
- package/build/cjs/widgets/QueriesHistory/QueriesHistory.stories.js.map +1 -0
- package/build/cjs/widgets/QueriesHistory/i18n/dicts.d.ts +9 -0
- package/build/cjs/widgets/QueriesHistory/i18n/dicts.js +14 -0
- package/build/cjs/widgets/QueriesHistory/i18n/dicts.js.map +1 -0
- package/build/cjs/widgets/QueriesHistory/i18n/en.json +3 -0
- package/build/cjs/widgets/QueriesHistory/i18n/index.d.ts +6 -0
- package/build/cjs/widgets/QueriesHistory/i18n/index.js +11 -0
- package/build/cjs/widgets/QueriesHistory/i18n/index.js.map +1 -0
- package/build/cjs/widgets/QueriesHistory/i18n/ru.json +3 -0
- package/build/cjs/widgets/QueriesHistory/index.d.ts +2 -0
- package/build/cjs/widgets/QueriesHistory/index.js +13 -0
- package/build/cjs/widgets/QueriesHistory/index.js.map +1 -0
- package/build/cjs/widgets/TutorialsHistory/TutorialRowContent.d.ts +4 -0
- package/build/cjs/widgets/TutorialsHistory/TutorialRowContent.js +26 -0
- package/build/cjs/widgets/TutorialsHistory/TutorialRowContent.js.map +1 -0
- package/build/cjs/widgets/TutorialsHistory/TutorialsHistory.d.ts +14 -0
- package/build/cjs/widgets/TutorialsHistory/TutorialsHistory.js +59 -0
- package/build/cjs/widgets/TutorialsHistory/TutorialsHistory.js.map +1 -0
- package/build/cjs/widgets/TutorialsHistory/TutorialsHistory.stories.d.ts +7 -0
- package/build/cjs/widgets/TutorialsHistory/TutorialsHistory.stories.js +157 -0
- package/build/cjs/widgets/TutorialsHistory/TutorialsHistory.stories.js.map +1 -0
- package/build/cjs/widgets/TutorialsHistory/i18n/dicts.d.ts +9 -0
- package/build/cjs/widgets/TutorialsHistory/i18n/dicts.js +14 -0
- package/build/cjs/widgets/TutorialsHistory/i18n/dicts.js.map +1 -0
- package/build/cjs/widgets/TutorialsHistory/i18n/en.json +3 -0
- package/build/cjs/widgets/TutorialsHistory/i18n/index.d.ts +6 -0
- package/build/cjs/widgets/TutorialsHistory/i18n/index.js +11 -0
- package/build/cjs/widgets/TutorialsHistory/i18n/index.js.map +1 -0
- package/build/cjs/widgets/TutorialsHistory/i18n/ru.json +3 -0
- package/build/cjs/widgets/TutorialsHistory/index.d.ts +2 -0
- package/build/cjs/widgets/TutorialsHistory/index.js +13 -0
- package/build/cjs/widgets/TutorialsHistory/index.js.map +1 -0
- package/build/cjs/widgets/index.d.ts +4 -0
- package/build/cjs/widgets/index.js +20 -0
- package/build/cjs/widgets/index.js.map +1 -0
- package/build/esm/components/FieldsSelector/FieldsSelector.css +15 -0
- package/build/esm/components/FieldsSelector/FieldsSelector.css.map +1 -0
- package/build/esm/components/FieldsSelector/FieldsSelector.d.ts +13 -0
- package/build/esm/components/FieldsSelector/FieldsSelector.js +131 -0
- package/build/esm/components/FieldsSelector/FieldsSelector.js.map +1 -0
- package/build/esm/components/FieldsSelector/FieldsSelector.scss +18 -0
- package/build/esm/components/FieldsSelector/FieldsSelector.stories.d.ts +7 -0
- package/build/esm/components/FieldsSelector/FieldsSelector.stories.js +58 -0
- package/build/esm/components/FieldsSelector/FieldsSelector.stories.js.map +1 -0
- package/build/esm/components/FieldsSelector/i18n/dicts.d.ts +9 -0
- package/build/esm/components/FieldsSelector/i18n/dicts.js +7 -0
- package/build/esm/components/FieldsSelector/i18n/dicts.js.map +1 -0
- package/build/esm/components/FieldsSelector/i18n/en.json +3 -0
- package/build/esm/components/FieldsSelector/i18n/index.d.ts +6 -0
- package/build/esm/components/FieldsSelector/i18n/index.js +4 -0
- package/build/esm/components/FieldsSelector/i18n/index.js.map +1 -0
- package/build/esm/components/FieldsSelector/i18n/ru.json +3 -0
- package/build/esm/components/FieldsSelector/index.d.ts +1 -0
- package/build/esm/components/FieldsSelector/index.js +2 -0
- package/build/esm/components/FieldsSelector/index.js.map +1 -0
- package/build/esm/components/HistoryFilter/HistoryFilter.css +4 -0
- package/build/esm/components/HistoryFilter/HistoryFilter.css.map +1 -0
- package/build/esm/components/HistoryFilter/HistoryFilter.d.ts +4 -0
- package/build/esm/components/HistoryFilter/HistoryFilter.js +112 -0
- package/build/esm/components/HistoryFilter/HistoryFilter.js.map +1 -0
- package/build/esm/components/HistoryFilter/HistoryFilter.scss +5 -0
- package/build/esm/components/HistoryFilter/HistoryFilter.stories.d.ts +13 -0
- package/build/esm/components/HistoryFilter/HistoryFilter.stories.js +94 -0
- package/build/esm/components/HistoryFilter/HistoryFilter.stories.js.map +1 -0
- package/build/esm/components/HistoryFilter/i18n/dicts.d.ts +11 -0
- package/build/esm/components/HistoryFilter/i18n/dicts.js +7 -0
- package/build/esm/components/HistoryFilter/i18n/dicts.js.map +1 -0
- package/build/esm/components/HistoryFilter/i18n/en.json +4 -0
- package/build/esm/components/HistoryFilter/i18n/index.d.ts +6 -0
- package/build/esm/components/HistoryFilter/i18n/index.js +4 -0
- package/build/esm/components/HistoryFilter/i18n/index.js.map +1 -0
- package/build/esm/components/HistoryFilter/i18n/ru.json +4 -0
- package/build/esm/components/HistoryFilter/index.d.ts +1 -0
- package/build/esm/components/HistoryFilter/index.js +2 -0
- package/build/esm/components/HistoryFilter/index.js.map +1 -0
- package/build/esm/components/HistoryGroupHeader/HistoryGroupHeader.css +8 -0
- package/build/esm/components/HistoryGroupHeader/HistoryGroupHeader.css.map +1 -0
- package/build/esm/components/HistoryGroupHeader/HistoryGroupHeader.d.ts +7 -0
- package/build/esm/components/HistoryGroupHeader/HistoryGroupHeader.js +16 -0
- package/build/esm/components/HistoryGroupHeader/HistoryGroupHeader.js.map +1 -0
- package/build/esm/components/HistoryGroupHeader/HistoryGroupHeader.scss +7 -0
- package/build/esm/components/HistoryGroupHeader/index.d.ts +1 -0
- package/build/esm/components/HistoryGroupHeader/index.js +2 -0
- package/build/esm/components/HistoryGroupHeader/index.js.map +1 -0
- package/build/esm/components/HistoryListEmpty/HistoryListEmpty.css +4 -0
- package/build/esm/components/HistoryListEmpty/HistoryListEmpty.css.map +1 -0
- package/build/esm/components/HistoryListEmpty/HistoryListEmpty.d.ts +7 -0
- package/build/esm/components/HistoryListEmpty/HistoryListEmpty.js +35 -0
- package/build/esm/components/HistoryListEmpty/HistoryListEmpty.js.map +1 -0
- package/build/esm/components/HistoryListEmpty/HistoryListEmpty.scss +3 -0
- package/build/esm/components/HistoryListEmpty/i18n/dicts.d.ts +11 -0
- package/build/esm/components/HistoryListEmpty/i18n/dicts.js +7 -0
- package/build/esm/components/HistoryListEmpty/i18n/dicts.js.map +1 -0
- package/build/esm/components/HistoryListEmpty/i18n/en.json +4 -0
- package/build/esm/components/HistoryListEmpty/i18n/index.d.ts +6 -0
- package/build/esm/components/HistoryListEmpty/i18n/index.js +4 -0
- package/build/esm/components/HistoryListEmpty/i18n/index.js.map +1 -0
- package/build/esm/components/HistoryListEmpty/i18n/ru.json +4 -0
- package/build/esm/components/HistoryListEmpty/index.d.ts +2 -0
- package/build/esm/components/HistoryListEmpty/index.js +2 -0
- package/build/esm/components/HistoryListEmpty/index.js.map +1 -0
- package/build/esm/components/HistoryPrivateIcon/HistoryPrivateIcon.css +7 -0
- package/build/esm/components/HistoryPrivateIcon/HistoryPrivateIcon.css.map +1 -0
- package/build/esm/components/HistoryPrivateIcon/HistoryPrivateIcon.d.ts +7 -0
- package/build/esm/components/HistoryPrivateIcon/HistoryPrivateIcon.js +52 -0
- package/build/esm/components/HistoryPrivateIcon/HistoryPrivateIcon.js.map +1 -0
- package/build/esm/components/HistoryPrivateIcon/HistoryPrivateIcon.scss +7 -0
- package/build/esm/components/HistoryPrivateIcon/index.d.ts +1 -0
- package/build/esm/components/HistoryPrivateIcon/index.js +2 -0
- package/build/esm/components/HistoryPrivateIcon/index.js.map +1 -0
- package/build/esm/components/MonacoEditor/MonacoEditor.d.ts +15 -0
- package/build/esm/components/MonacoEditor/MonacoEditor.js +99 -0
- package/build/esm/components/MonacoEditor/MonacoEditor.js.map +1 -0
- package/build/esm/components/MonacoEditor/MonacoEditorThemes.d.ts +6 -0
- package/build/esm/components/MonacoEditor/MonacoEditorThemes.js +69 -0
- package/build/esm/components/MonacoEditor/MonacoEditorThemes.js.map +1 -0
- package/build/esm/components/MonacoEditor/index.d.ts +5 -0
- package/build/esm/components/MonacoEditor/index.js +4 -0
- package/build/esm/components/MonacoEditor/index.js.map +1 -0
- package/build/esm/components/MonacoEditor/monaco-yql-languages/_.contribution.d.ts +57 -0
- package/build/esm/components/MonacoEditor/monaco-yql-languages/_.contribution.js +143 -0
- package/build/esm/components/MonacoEditor/monaco-yql-languages/_.contribution.js.map +1 -0
- package/build/esm/components/MonacoEditor/monaco-yql-languages/clickhouse/clickhouse.contribution.d.ts +1 -0
- package/build/esm/components/MonacoEditor/monaco-yql-languages/clickhouse/clickhouse.contribution.js +36 -0
- package/build/esm/components/MonacoEditor/monaco-yql-languages/clickhouse/clickhouse.contribution.js.map +1 -0
- package/build/esm/components/MonacoEditor/monaco-yql-languages/clickhouse/clickhouse.d.ts +3 -0
- package/build/esm/components/MonacoEditor/monaco-yql-languages/clickhouse/clickhouse.js +175 -0
- package/build/esm/components/MonacoEditor/monaco-yql-languages/clickhouse/clickhouse.js.map +1 -0
- package/build/esm/components/MonacoEditor/monaco-yql-languages/clickhouse/clickhouse.keywords.d.ts +8 -0
- package/build/esm/components/MonacoEditor/monaco-yql-languages/clickhouse/clickhouse.keywords.js +9 -0
- package/build/esm/components/MonacoEditor/monaco-yql-languages/clickhouse/clickhouse.keywords.js.map +1 -0
- package/build/esm/components/MonacoEditor/monaco-yql-languages/constants.d.ts +6 -0
- package/build/esm/components/MonacoEditor/monaco-yql-languages/constants.js +8 -0
- package/build/esm/components/MonacoEditor/monaco-yql-languages/constants.js.map +1 -0
- package/build/esm/components/MonacoEditor/monaco-yql-languages/fillers/monaco-editor-core.d.ts +1 -0
- package/build/esm/components/MonacoEditor/monaco-yql-languages/fillers/monaco-editor-core.js +4 -0
- package/build/esm/components/MonacoEditor/monaco-yql-languages/fillers/monaco-editor-core.js.map +1 -0
- package/build/esm/components/MonacoEditor/monaco-yql-languages/index.d.ts +1 -0
- package/build/esm/components/MonacoEditor/monaco-yql-languages/index.js +2 -0
- package/build/esm/components/MonacoEditor/monaco-yql-languages/index.js.map +1 -0
- package/build/esm/components/MonacoEditor/monaco-yql-languages/monaco.contribution.d.ts +5 -0
- package/build/esm/components/MonacoEditor/monaco-yql-languages/monaco.contribution.js +6 -0
- package/build/esm/components/MonacoEditor/monaco-yql-languages/monaco.contribution.js.map +1 -0
- package/build/esm/components/MonacoEditor/monaco-yql-languages/s-expressions/s-expressions.contribution.d.ts +1 -0
- package/build/esm/components/MonacoEditor/monaco-yql-languages/s-expressions/s-expressions.contribution.js +36 -0
- package/build/esm/components/MonacoEditor/monaco-yql-languages/s-expressions/s-expressions.contribution.js.map +1 -0
- package/build/esm/components/MonacoEditor/monaco-yql-languages/s-expressions/s-expressions.d.ts +4 -0
- package/build/esm/components/MonacoEditor/monaco-yql-languages/s-expressions/s-expressions.js +179 -0
- package/build/esm/components/MonacoEditor/monaco-yql-languages/s-expressions/s-expressions.js.map +1 -0
- package/build/esm/components/MonacoEditor/monaco-yql-languages/s-expressions/s-expressions.keywords.d.ts +5 -0
- package/build/esm/components/MonacoEditor/monaco-yql-languages/s-expressions/s-expressions.keywords.js +6 -0
- package/build/esm/components/MonacoEditor/monaco-yql-languages/s-expressions/s-expressions.keywords.js.map +1 -0
- package/build/esm/components/MonacoEditor/monaco-yql-languages/themes/themes.contribution.d.ts +1 -0
- package/build/esm/components/MonacoEditor/monaco-yql-languages/themes/themes.contribution.js +60 -0
- package/build/esm/components/MonacoEditor/monaco-yql-languages/themes/themes.contribution.js.map +1 -0
- package/build/esm/components/MonacoEditor/monaco-yql-languages/yql/yql.contribution.d.ts +1 -0
- package/build/esm/components/MonacoEditor/monaco-yql-languages/yql/yql.contribution.js +36 -0
- package/build/esm/components/MonacoEditor/monaco-yql-languages/yql/yql.contribution.js.map +1 -0
- package/build/esm/components/MonacoEditor/monaco-yql-languages/yql/yql.d.ts +3 -0
- package/build/esm/components/MonacoEditor/monaco-yql-languages/yql/yql.js +171 -0
- package/build/esm/components/MonacoEditor/monaco-yql-languages/yql/yql.js.map +1 -0
- package/build/esm/components/MonacoEditor/monaco-yql-languages/yql/yql.keywords.d.ts +3 -0
- package/build/esm/components/MonacoEditor/monaco-yql-languages/yql/yql.keywords.js +4 -0
- package/build/esm/components/MonacoEditor/monaco-yql-languages/yql/yql.keywords.js.map +1 -0
- package/build/esm/components/MonacoEditor/monaco-yql-languages/yql_ansi/yql_ansi.contribution.d.ts +1 -0
- package/build/esm/components/MonacoEditor/monaco-yql-languages/yql_ansi/yql_ansi.contribution.js +36 -0
- package/build/esm/components/MonacoEditor/monaco-yql-languages/yql_ansi/yql_ansi.contribution.js.map +1 -0
- package/build/esm/components/MonacoEditor/monaco-yql-languages/yql_ansi/yql_ansi.d.ts +3 -0
- package/build/esm/components/MonacoEditor/monaco-yql-languages/yql_ansi/yql_ansi.js +122 -0
- package/build/esm/components/MonacoEditor/monaco-yql-languages/yql_ansi/yql_ansi.js.map +1 -0
- package/build/esm/components/MonacoEditor/monaco-yql-languages/yql_ansi/yql_ansi.keywords.d.ts +1 -0
- package/build/esm/components/MonacoEditor/monaco-yql-languages/yql_ansi/yql_ansi.keywords.js +2 -0
- package/build/esm/components/MonacoEditor/monaco-yql-languages/yql_ansi/yql_ansi.keywords.js.map +1 -0
- package/build/esm/components/QueryDuration/QueryDuration.css +5 -0
- package/build/esm/components/QueryDuration/QueryDuration.css.map +1 -0
- package/build/esm/components/QueryDuration/QueryDuration.d.ts +11 -0
- package/build/esm/components/QueryDuration/QueryDuration.js +19 -0
- package/build/esm/components/QueryDuration/QueryDuration.js.map +1 -0
- package/build/esm/components/QueryDuration/QueryDuration.scss +6 -0
- package/build/esm/components/QueryDuration/QueryDuration.stories.d.ts +9 -0
- package/build/esm/components/QueryDuration/QueryDuration.stories.js +54 -0
- package/build/esm/components/QueryDuration/QueryDuration.stories.js.map +1 -0
- package/build/esm/components/QueryDuration/index.d.ts +1 -0
- package/build/esm/components/QueryDuration/index.js +2 -0
- package/build/esm/components/QueryDuration/index.js.map +1 -0
- package/build/esm/components/QueryDuration/useQueryDuration.d.ts +2 -0
- package/build/esm/components/QueryDuration/useQueryDuration.js +35 -0
- package/build/esm/components/QueryDuration/useQueryDuration.js.map +1 -0
- package/build/esm/components/QueryStatusIcon/QueryStatusIcon.css +13 -0
- package/build/esm/components/QueryStatusIcon/QueryStatusIcon.css.map +1 -0
- package/build/esm/components/QueryStatusIcon/QueryStatusIcon.d.ts +9 -0
- package/build/esm/components/QueryStatusIcon/QueryStatusIcon.js +122 -0
- package/build/esm/components/QueryStatusIcon/QueryStatusIcon.js.map +1 -0
- package/build/esm/components/QueryStatusIcon/QueryStatusIcon.scss +17 -0
- package/build/esm/components/QueryStatusIcon/QueryStatusIcon.stories.d.ts +11 -0
- package/build/esm/components/QueryStatusIcon/QueryStatusIcon.stories.js +64 -0
- package/build/esm/components/QueryStatusIcon/QueryStatusIcon.stories.js.map +1 -0
- package/build/esm/components/QueryStatusIcon/index.d.ts +1 -0
- package/build/esm/components/QueryStatusIcon/index.js +2 -0
- package/build/esm/components/QueryStatusIcon/index.js.map +1 -0
- package/build/esm/components/RowLink/RowLink.css +10 -0
- package/build/esm/components/RowLink/RowLink.css.map +1 -0
- package/build/esm/components/RowLink/RowLink.d.ts +9 -0
- package/build/esm/components/RowLink/RowLink.js +19 -0
- package/build/esm/components/RowLink/RowLink.js.map +1 -0
- package/build/esm/components/RowLink/RowLink.scss +8 -0
- package/build/esm/components/RowLink/index.d.ts +2 -0
- package/build/esm/components/RowLink/index.js +2 -0
- package/build/esm/components/RowLink/index.js.map +1 -0
- package/build/esm/components/SearchRowLayout/SearchRowLayout.css +11 -0
- package/build/esm/components/SearchRowLayout/SearchRowLayout.css.map +1 -0
- package/build/esm/components/SearchRowLayout/SearchRowLayout.d.ts +11 -0
- package/build/esm/components/SearchRowLayout/SearchRowLayout.js +40 -0
- package/build/esm/components/SearchRowLayout/SearchRowLayout.js.map +1 -0
- package/build/esm/components/SearchRowLayout/SearchRowLayout.scss +18 -0
- package/build/esm/components/SearchRowLayout/helpers/fitQueryToVisibleLines.d.ts +1 -0
- package/build/esm/components/SearchRowLayout/helpers/fitQueryToVisibleLines.js +15 -0
- package/build/esm/components/SearchRowLayout/helpers/fitQueryToVisibleLines.js.map +1 -0
- package/build/esm/components/SearchRowLayout/helpers/monacoConfig.d.ts +2 -0
- package/build/esm/components/SearchRowLayout/helpers/monacoConfig.js +23 -0
- package/build/esm/components/SearchRowLayout/helpers/monacoConfig.js.map +1 -0
- package/build/esm/components/SearchRowLayout/index.d.ts +2 -0
- package/build/esm/components/SearchRowLayout/index.js +2 -0
- package/build/esm/components/SearchRowLayout/index.js.map +1 -0
- package/build/esm/components/SimpleForm/CheckboxGroupField.d.ts +18 -0
- package/build/esm/components/SimpleForm/CheckboxGroupField.js +49 -0
- package/build/esm/components/SimpleForm/CheckboxGroupField.js.map +1 -0
- package/build/esm/components/SimpleForm/RangeDatePickerField.d.ts +16 -0
- package/build/esm/components/SimpleForm/RangeDatePickerField.js +44 -0
- package/build/esm/components/SimpleForm/RangeDatePickerField.js.map +1 -0
- package/build/esm/components/SimpleForm/SelectField.d.ts +14 -0
- package/build/esm/components/SimpleForm/SelectField.js +21 -0
- package/build/esm/components/SimpleForm/SelectField.js.map +1 -0
- package/build/esm/components/SimpleForm/SimpleForm.d.ts +12 -0
- package/build/esm/components/SimpleForm/SimpleForm.js +69 -0
- package/build/esm/components/SimpleForm/SimpleForm.js.map +1 -0
- package/build/esm/components/SimpleForm/SimpleForm.stories.d.ts +19 -0
- package/build/esm/components/SimpleForm/SimpleForm.stories.js +144 -0
- package/build/esm/components/SimpleForm/SimpleForm.stories.js.map +1 -0
- package/build/esm/components/SimpleForm/SwitchField.d.ts +12 -0
- package/build/esm/components/SimpleForm/SwitchField.js +19 -0
- package/build/esm/components/SimpleForm/SwitchField.js.map +1 -0
- package/build/esm/components/SimpleForm/helpers/controlsRegistry.d.ts +6 -0
- package/build/esm/components/SimpleForm/helpers/controlsRegistry.js +24 -0
- package/build/esm/components/SimpleForm/helpers/controlsRegistry.js.map +1 -0
- package/build/esm/components/SimpleForm/helpers/getInitialValues.d.ts +4 -0
- package/build/esm/components/SimpleForm/helpers/getInitialValues.js +13 -0
- package/build/esm/components/SimpleForm/helpers/getInitialValues.js.map +1 -0
- package/build/esm/components/SimpleForm/helpers/index.d.ts +2 -0
- package/build/esm/components/SimpleForm/helpers/index.js +3 -0
- package/build/esm/components/SimpleForm/helpers/index.js.map +1 -0
- package/build/esm/components/SimpleForm/index.d.ts +7 -0
- package/build/esm/components/SimpleForm/index.js +5 -0
- package/build/esm/components/SimpleForm/index.js.map +1 -0
- package/build/esm/components/index.d.ts +16 -0
- package/build/esm/components/index.js +12 -0
- package/build/esm/components/index.js.map +1 -0
- package/build/esm/constants/query.d.ts +3 -0
- package/build/esm/constants/query.js +3 -0
- package/build/esm/constants/query.js.map +1 -0
- package/build/esm/constants/row.d.ts +1 -0
- package/build/esm/constants/row.js +2 -0
- package/build/esm/constants/row.js.map +1 -0
- package/build/esm/helpers/getListKey.d.ts +2 -0
- package/build/esm/helpers/getListKey.js +13 -0
- package/build/esm/helpers/getListKey.js.map +1 -0
- package/build/esm/helpers/isFieldVisible.d.ts +15 -0
- package/build/esm/helpers/isFieldVisible.js +17 -0
- package/build/esm/helpers/isFieldVisible.js.map +1 -0
- package/build/esm/helpers/time.d.ts +7 -0
- package/build/esm/helpers/time.js +22 -0
- package/build/esm/helpers/time.js.map +1 -0
- package/build/esm/helpers/useToggle.d.ts +1 -0
- package/build/esm/helpers/useToggle.js +16 -0
- package/build/esm/helpers/useToggle.js.map +1 -0
- package/build/esm/i18n/index.d.ts +10 -0
- package/build/esm/i18n/index.js +26 -0
- package/build/esm/i18n/index.js.map +1 -0
- package/build/esm/index.d.ts +5 -0
- package/build/esm/index.js +6 -0
- package/build/esm/index.js.map +1 -0
- package/build/esm/modules/HistoryHeader/HistoryHeader.d.ts +14 -0
- package/build/esm/modules/HistoryHeader/HistoryHeader.js +29 -0
- package/build/esm/modules/HistoryHeader/HistoryHeader.js.map +1 -0
- package/build/esm/modules/HistoryHeader/HistoryHeader.stories.d.ts +9 -0
- package/build/esm/modules/HistoryHeader/HistoryHeader.stories.js +58 -0
- package/build/esm/modules/HistoryHeader/HistoryHeader.stories.js.map +1 -0
- package/build/esm/modules/HistoryHeader/HistorySearch.css +4 -0
- package/build/esm/modules/HistoryHeader/HistorySearch.css.map +1 -0
- package/build/esm/modules/HistoryHeader/HistorySearch.d.ts +13 -0
- package/build/esm/modules/HistoryHeader/HistorySearch.js +86 -0
- package/build/esm/modules/HistoryHeader/HistorySearch.js.map +1 -0
- package/build/esm/modules/HistoryHeader/HistorySearch.scss +5 -0
- package/build/esm/modules/HistoryHeader/index.d.ts +1 -0
- package/build/esm/modules/HistoryHeader/index.js +2 -0
- package/build/esm/modules/HistoryHeader/index.js.map +1 -0
- package/build/esm/modules/HistoryLayout/HistoryLayout.css +4 -0
- package/build/esm/modules/HistoryLayout/HistoryLayout.css.map +1 -0
- package/build/esm/modules/HistoryLayout/HistoryLayout.d.ts +12 -0
- package/build/esm/modules/HistoryLayout/HistoryLayout.js +29 -0
- package/build/esm/modules/HistoryLayout/HistoryLayout.js.map +1 -0
- package/build/esm/modules/HistoryLayout/HistoryLayout.scss +3 -0
- package/build/esm/modules/HistoryLayout/index.d.ts +2 -0
- package/build/esm/modules/HistoryLayout/index.js +2 -0
- package/build/esm/modules/HistoryLayout/index.js.map +1 -0
- package/build/esm/modules/HistoryList/HistoryList.d.ts +16 -0
- package/build/esm/modules/HistoryList/HistoryList.js +17 -0
- package/build/esm/modules/HistoryList/HistoryList.js.map +1 -0
- package/build/esm/modules/HistoryList/HistoryList.stories.d.ts +14 -0
- package/build/esm/modules/HistoryList/HistoryList.stories.js +237 -0
- package/build/esm/modules/HistoryList/HistoryList.stories.js.map +1 -0
- package/build/esm/modules/HistoryList/HistoryRowContent.d.ts +3 -0
- package/build/esm/modules/HistoryList/HistoryRowContent.js +24 -0
- package/build/esm/modules/HistoryList/HistoryRowContent.js.map +1 -0
- package/build/esm/modules/HistoryList/index.d.ts +2 -0
- package/build/esm/modules/HistoryList/index.js +2 -0
- package/build/esm/modules/HistoryList/index.js.map +1 -0
- package/build/esm/modules/HistoryRow/HistoryRow.css +28 -0
- package/build/esm/modules/HistoryRow/HistoryRow.css.map +1 -0
- package/build/esm/modules/HistoryRow/HistoryRow.d.ts +7 -0
- package/build/esm/modules/HistoryRow/HistoryRow.js +77 -0
- package/build/esm/modules/HistoryRow/HistoryRow.js.map +1 -0
- package/build/esm/modules/HistoryRow/HistoryRow.scss +32 -0
- package/build/esm/modules/HistoryRow/HistoryRow.stories.d.ts +13 -0
- package/build/esm/modules/HistoryRow/HistoryRow.stories.js +104 -0
- package/build/esm/modules/HistoryRow/HistoryRow.stories.js.map +1 -0
- package/build/esm/modules/HistoryRow/HistoryRowMenu.d.ts +8 -0
- package/build/esm/modules/HistoryRow/HistoryRowMenu.js +68 -0
- package/build/esm/modules/HistoryRow/HistoryRowMenu.js.map +1 -0
- package/build/esm/modules/HistoryRow/HistoryRowTitle.d.ts +8 -0
- package/build/esm/modules/HistoryRow/HistoryRowTitle.js +66 -0
- package/build/esm/modules/HistoryRow/HistoryRowTitle.js.map +1 -0
- package/build/esm/modules/HistoryRow/index.d.ts +1 -0
- package/build/esm/modules/HistoryRow/index.js +2 -0
- package/build/esm/modules/HistoryRow/index.js.map +1 -0
- package/build/esm/modules/HistorySearchRow/HistorySearchRow.css +10 -0
- package/build/esm/modules/HistorySearchRow/HistorySearchRow.css.map +1 -0
- package/build/esm/modules/HistorySearchRow/HistorySearchRow.d.ts +7 -0
- package/build/esm/modules/HistorySearchRow/HistorySearchRow.js +57 -0
- package/build/esm/modules/HistorySearchRow/HistorySearchRow.js.map +1 -0
- package/build/esm/modules/HistorySearchRow/HistorySearchRow.scss +13 -0
- package/build/esm/modules/HistorySearchRow/HistorySearchRow.stories.d.ts +9 -0
- package/build/esm/modules/HistorySearchRow/HistorySearchRow.stories.js +56 -0
- package/build/esm/modules/HistorySearchRow/HistorySearchRow.stories.js.map +1 -0
- package/build/esm/modules/HistorySearchRow/helpers/resolveMonacoLanguage.d.ts +2 -0
- package/build/esm/modules/HistorySearchRow/helpers/resolveMonacoLanguage.js +23 -0
- package/build/esm/modules/HistorySearchRow/helpers/resolveMonacoLanguage.js.map +1 -0
- package/build/esm/modules/HistorySearchRow/index.d.ts +1 -0
- package/build/esm/modules/HistorySearchRow/index.js +2 -0
- package/build/esm/modules/HistorySearchRow/index.js.map +1 -0
- package/build/esm/modules/RowsList/RowsList.css +4 -0
- package/build/esm/modules/RowsList/RowsList.css.map +1 -0
- package/build/esm/modules/RowsList/RowsList.d.ts +17 -0
- package/build/esm/modules/RowsList/RowsList.js +72 -0
- package/build/esm/modules/RowsList/RowsList.js.map +1 -0
- package/build/esm/modules/RowsList/RowsList.scss +5 -0
- package/build/esm/modules/RowsList/helpers/prepareRowData.d.ts +13 -0
- package/build/esm/modules/RowsList/helpers/prepareRowData.js +34 -0
- package/build/esm/modules/RowsList/helpers/prepareRowData.js.map +1 -0
- package/build/esm/modules/RowsList/index.d.ts +2 -0
- package/build/esm/modules/RowsList/index.js +2 -0
- package/build/esm/modules/RowsList/index.js.map +1 -0
- package/build/esm/modules/TutorialRow/TutorialRow.css +9 -0
- package/build/esm/modules/TutorialRow/TutorialRow.css.map +1 -0
- package/build/esm/modules/TutorialRow/TutorialRow.d.ts +7 -0
- package/build/esm/modules/TutorialRow/TutorialRow.js +30 -0
- package/build/esm/modules/TutorialRow/TutorialRow.js.map +1 -0
- package/build/esm/modules/TutorialRow/TutorialRow.scss +9 -0
- package/build/esm/modules/TutorialRow/TutorialRow.stories.d.ts +9 -0
- package/build/esm/modules/TutorialRow/TutorialRow.stories.js +43 -0
- package/build/esm/modules/TutorialRow/TutorialRow.stories.js.map +1 -0
- package/build/esm/modules/TutorialRow/index.d.ts +2 -0
- package/build/esm/modules/TutorialRow/index.js +2 -0
- package/build/esm/modules/TutorialRow/index.js.map +1 -0
- package/build/esm/modules/TutorialSearchRow/TutorialSearchRow.css +4 -0
- package/build/esm/modules/TutorialSearchRow/TutorialSearchRow.css.map +1 -0
- package/build/esm/modules/TutorialSearchRow/TutorialSearchRow.d.ts +7 -0
- package/build/esm/modules/TutorialSearchRow/TutorialSearchRow.js +33 -0
- package/build/esm/modules/TutorialSearchRow/TutorialSearchRow.js.map +1 -0
- package/build/esm/modules/TutorialSearchRow/TutorialSearchRow.scss +5 -0
- package/build/esm/modules/TutorialSearchRow/TutorialSearchRow.stories.d.ts +7 -0
- package/build/esm/modules/TutorialSearchRow/TutorialSearchRow.stories.js +36 -0
- package/build/esm/modules/TutorialSearchRow/TutorialSearchRow.stories.js.map +1 -0
- package/build/esm/modules/TutorialSearchRow/index.d.ts +2 -0
- package/build/esm/modules/TutorialSearchRow/index.js +2 -0
- package/build/esm/modules/TutorialSearchRow/index.js.map +1 -0
- package/build/esm/modules/index.d.ts +13 -0
- package/build/esm/modules/index.js +9 -0
- package/build/esm/modules/index.js.map +1 -0
- package/build/esm/types/declarations.d.ts +15 -0
- package/build/esm/types/forms.d.ts +30 -0
- package/build/esm/types/forms.js +2 -0
- package/build/esm/types/forms.js.map +1 -0
- package/build/esm/types/history.d.ts +91 -0
- package/build/esm/types/history.js +2 -0
- package/build/esm/types/history.js.map +1 -0
- package/build/esm/types/tutorial.d.ts +2 -0
- package/build/esm/types/tutorial.js +2 -0
- package/build/esm/types/tutorial.js.map +1 -0
- package/build/esm/widgets/QueriesHistory/ComparisonActions.css +5 -0
- package/build/esm/widgets/QueriesHistory/ComparisonActions.css.map +1 -0
- package/build/esm/widgets/QueriesHistory/ComparisonActions.d.ts +9 -0
- package/build/esm/widgets/QueriesHistory/ComparisonActions.js +74 -0
- package/build/esm/widgets/QueriesHistory/ComparisonActions.js.map +1 -0
- package/build/esm/widgets/QueriesHistory/ComparisonActions.scss +4 -0
- package/build/esm/widgets/QueriesHistory/QueriesHistory.css +10 -0
- package/build/esm/widgets/QueriesHistory/QueriesHistory.css.map +1 -0
- package/build/esm/widgets/QueriesHistory/QueriesHistory.d.ts +19 -0
- package/build/esm/widgets/QueriesHistory/QueriesHistory.js +66 -0
- package/build/esm/widgets/QueriesHistory/QueriesHistory.js.map +1 -0
- package/build/esm/widgets/QueriesHistory/QueriesHistory.scss +10 -0
- package/build/esm/widgets/QueriesHistory/QueriesHistory.stories.d.ts +7 -0
- package/build/esm/widgets/QueriesHistory/QueriesHistory.stories.js +290 -0
- package/build/esm/widgets/QueriesHistory/QueriesHistory.stories.js.map +1 -0
- package/build/esm/widgets/QueriesHistory/i18n/dicts.d.ts +9 -0
- package/build/esm/widgets/QueriesHistory/i18n/dicts.js +7 -0
- package/build/esm/widgets/QueriesHistory/i18n/dicts.js.map +1 -0
- package/build/esm/widgets/QueriesHistory/i18n/en.json +3 -0
- package/build/esm/widgets/QueriesHistory/i18n/index.d.ts +6 -0
- package/build/esm/widgets/QueriesHistory/i18n/index.js +4 -0
- package/build/esm/widgets/QueriesHistory/i18n/index.js.map +1 -0
- package/build/esm/widgets/QueriesHistory/i18n/ru.json +3 -0
- package/build/esm/widgets/QueriesHistory/index.d.ts +2 -0
- package/build/esm/widgets/QueriesHistory/index.js +2 -0
- package/build/esm/widgets/QueriesHistory/index.js.map +1 -0
- package/build/esm/widgets/TutorialsHistory/TutorialRowContent.d.ts +4 -0
- package/build/esm/widgets/TutorialsHistory/TutorialRowContent.js +19 -0
- package/build/esm/widgets/TutorialsHistory/TutorialRowContent.js.map +1 -0
- package/build/esm/widgets/TutorialsHistory/TutorialsHistory.d.ts +14 -0
- package/build/esm/widgets/TutorialsHistory/TutorialsHistory.js +52 -0
- package/build/esm/widgets/TutorialsHistory/TutorialsHistory.js.map +1 -0
- package/build/esm/widgets/TutorialsHistory/TutorialsHistory.stories.d.ts +7 -0
- package/build/esm/widgets/TutorialsHistory/TutorialsHistory.stories.js +149 -0
- package/build/esm/widgets/TutorialsHistory/TutorialsHistory.stories.js.map +1 -0
- package/build/esm/widgets/TutorialsHistory/i18n/dicts.d.ts +9 -0
- package/build/esm/widgets/TutorialsHistory/i18n/dicts.js +7 -0
- package/build/esm/widgets/TutorialsHistory/i18n/dicts.js.map +1 -0
- package/build/esm/widgets/TutorialsHistory/i18n/en.json +3 -0
- package/build/esm/widgets/TutorialsHistory/i18n/index.d.ts +6 -0
- package/build/esm/widgets/TutorialsHistory/i18n/index.js +4 -0
- package/build/esm/widgets/TutorialsHistory/i18n/index.js.map +1 -0
- package/build/esm/widgets/TutorialsHistory/i18n/ru.json +3 -0
- package/build/esm/widgets/TutorialsHistory/index.d.ts +2 -0
- package/build/esm/widgets/TutorialsHistory/index.js +2 -0
- package/build/esm/widgets/TutorialsHistory/index.js.map +1 -0
- package/build/esm/widgets/index.d.ts +4 -0
- package/build/esm/widgets/index.js +3 -0
- package/build/esm/widgets/index.js.map +1 -0
- package/commitlint.config.cjs +6 -0
- package/eslint.config.mjs +53 -0
- package/package.json +64 -0
- package/plans/i18n-rules.md +116 -0
- package/plans/queries-history-structure.md +143 -0
- package/plans/tutorials-history-plan.md +59 -0
- package/skills-lock.json +11 -0
- package/src/components/FieldsSelector/FieldsSelector.scss +18 -0
- package/src/components/FieldsSelector/FieldsSelector.stories.tsx +48 -0
- package/src/components/FieldsSelector/FieldsSelector.tsx +92 -0
- package/src/components/FieldsSelector/i18n/dicts.ts +4 -0
- package/src/components/FieldsSelector/i18n/en.json +3 -0
- package/src/components/FieldsSelector/i18n/index.ts +5 -0
- package/src/components/FieldsSelector/i18n/ru.json +3 -0
- package/src/components/FieldsSelector/index.ts +1 -0
- package/src/components/HistoryFilter/HistoryFilter.scss +5 -0
- package/src/components/HistoryFilter/HistoryFilter.stories.tsx +69 -0
- package/src/components/HistoryFilter/HistoryFilter.tsx +64 -0
- package/src/components/HistoryFilter/i18n/dicts.ts +4 -0
- package/src/components/HistoryFilter/i18n/en.json +4 -0
- package/src/components/HistoryFilter/i18n/index.ts +5 -0
- package/src/components/HistoryFilter/i18n/ru.json +4 -0
- package/src/components/HistoryFilter/index.ts +1 -0
- package/src/components/HistoryGroupHeader/HistoryGroupHeader.scss +7 -0
- package/src/components/HistoryGroupHeader/HistoryGroupHeader.tsx +18 -0
- package/src/components/HistoryGroupHeader/index.ts +1 -0
- package/src/components/HistoryListEmpty/HistoryListEmpty.scss +3 -0
- package/src/components/HistoryListEmpty/HistoryListEmpty.tsx +27 -0
- package/src/components/HistoryListEmpty/i18n/dicts.ts +4 -0
- package/src/components/HistoryListEmpty/i18n/en.json +4 -0
- package/src/components/HistoryListEmpty/i18n/index.ts +5 -0
- package/src/components/HistoryListEmpty/i18n/ru.json +4 -0
- package/src/components/HistoryListEmpty/index.ts +2 -0
- package/src/components/HistoryPrivateIcon/HistoryPrivateIcon.scss +7 -0
- package/src/components/HistoryPrivateIcon/HistoryPrivateIcon.tsx +22 -0
- package/src/components/HistoryPrivateIcon/index.ts +1 -0
- package/src/components/MonacoEditor/MonacoEditor.tsx +112 -0
- package/src/components/MonacoEditor/MonacoEditorThemes.tsx +73 -0
- package/src/components/MonacoEditor/index.ts +11 -0
- package/src/components/MonacoEditor/monaco-yql-languages/_.contribution.ts +193 -0
- package/src/components/MonacoEditor/monaco-yql-languages/clickhouse/clickhouse.contribution.ts +14 -0
- package/src/components/MonacoEditor/monaco-yql-languages/clickhouse/clickhouse.keywords.ts +146 -0
- package/src/components/MonacoEditor/monaco-yql-languages/clickhouse/clickhouse.ts +217 -0
- package/src/components/MonacoEditor/monaco-yql-languages/constants.ts +6 -0
- package/src/components/MonacoEditor/monaco-yql-languages/fillers/monaco-editor-core.ts +3 -0
- package/src/components/MonacoEditor/monaco-yql-languages/index.ts +1 -0
- package/src/components/MonacoEditor/monaco-yql-languages/monaco.contribution.ts +5 -0
- package/src/components/MonacoEditor/monaco-yql-languages/s-expressions/s-expressions.contribution.ts +14 -0
- package/src/components/MonacoEditor/monaco-yql-languages/s-expressions/s-expressions.keywords.ts +97 -0
- package/src/components/MonacoEditor/monaco-yql-languages/s-expressions/s-expressions.ts +170 -0
- package/src/components/MonacoEditor/monaco-yql-languages/themes/themes.contribution.ts +35 -0
- package/src/components/MonacoEditor/monaco-yql-languages/yql/yql.contribution.ts +14 -0
- package/src/components/MonacoEditor/monaco-yql-languages/yql/yql.keywords.ts +13 -0
- package/src/components/MonacoEditor/monaco-yql-languages/yql/yql.ts +178 -0
- package/src/components/MonacoEditor/monaco-yql-languages/yql_ansi/yql_ansi.contribution.ts +14 -0
- package/src/components/MonacoEditor/monaco-yql-languages/yql_ansi/yql_ansi.keywords.ts +45 -0
- package/src/components/MonacoEditor/monaco-yql-languages/yql_ansi/yql_ansi.ts +142 -0
- package/src/components/QueryDuration/QueryDuration.scss +6 -0
- package/src/components/QueryDuration/QueryDuration.stories.tsx +40 -0
- package/src/components/QueryDuration/QueryDuration.tsx +21 -0
- package/src/components/QueryDuration/index.ts +1 -0
- package/src/components/QueryDuration/useQueryDuration.ts +34 -0
- package/src/components/QueryStatusIcon/QueryStatusIcon.scss +17 -0
- package/src/components/QueryStatusIcon/QueryStatusIcon.stories.tsx +50 -0
- package/src/components/QueryStatusIcon/QueryStatusIcon.tsx +37 -0
- package/src/components/QueryStatusIcon/index.ts +1 -0
- package/src/components/RowLink/RowLink.scss +8 -0
- package/src/components/RowLink/RowLink.tsx +23 -0
- package/src/components/RowLink/index.ts +2 -0
- package/src/components/SearchRowLayout/SearchRowLayout.scss +18 -0
- package/src/components/SearchRowLayout/SearchRowLayout.tsx +45 -0
- package/src/components/SearchRowLayout/helpers/fitQueryToVisibleLines.ts +10 -0
- package/src/components/SearchRowLayout/helpers/monacoConfig.ts +25 -0
- package/src/components/SearchRowLayout/index.ts +2 -0
- package/src/components/SimpleForm/CheckboxGroupField.tsx +53 -0
- package/src/components/SimpleForm/RangeDatePickerField.tsx +50 -0
- package/src/components/SimpleForm/SelectField.tsx +24 -0
- package/src/components/SimpleForm/SimpleForm.stories.tsx +115 -0
- package/src/components/SimpleForm/SimpleForm.tsx +65 -0
- package/src/components/SimpleForm/SwitchField.tsx +23 -0
- package/src/components/SimpleForm/helpers/controlsRegistry.ts +24 -0
- package/src/components/SimpleForm/helpers/getInitialValues.ts +10 -0
- package/src/components/SimpleForm/helpers/index.ts +2 -0
- package/src/components/SimpleForm/index.ts +7 -0
- package/src/components/index.ts +23 -0
- package/src/constants/query.ts +10 -0
- package/src/constants/row.ts +1 -0
- package/src/helpers/getListKey.ts +12 -0
- package/src/helpers/isFieldVisible.ts +19 -0
- package/src/helpers/time.ts +25 -0
- package/src/helpers/useToggle.ts +11 -0
- package/src/i18n/index.ts +26 -0
- package/src/index.ts +5 -0
- package/src/modules/HistoryHeader/HistoryHeader.stories.tsx +47 -0
- package/src/modules/HistoryHeader/HistoryHeader.tsx +27 -0
- package/src/modules/HistoryHeader/HistorySearch.scss +5 -0
- package/src/modules/HistoryHeader/HistorySearch.tsx +54 -0
- package/src/modules/HistoryHeader/index.ts +1 -0
- package/src/modules/HistoryLayout/HistoryLayout.scss +3 -0
- package/src/modules/HistoryLayout/HistoryLayout.tsx +41 -0
- package/src/modules/HistoryLayout/index.ts +2 -0
- package/src/modules/HistoryList/HistoryList.stories.tsx +181 -0
- package/src/modules/HistoryList/HistoryList.tsx +41 -0
- package/src/modules/HistoryList/HistoryRowContent.tsx +22 -0
- package/src/modules/HistoryList/index.ts +2 -0
- package/src/modules/HistoryRow/HistoryRow.scss +32 -0
- package/src/modules/HistoryRow/HistoryRow.stories.tsx +90 -0
- package/src/modules/HistoryRow/HistoryRow.tsx +71 -0
- package/src/modules/HistoryRow/HistoryRowMenu.tsx +47 -0
- package/src/modules/HistoryRow/HistoryRowTitle.tsx +69 -0
- package/src/modules/HistoryRow/index.ts +1 -0
- package/src/modules/HistorySearchRow/HistorySearchRow.scss +13 -0
- package/src/modules/HistorySearchRow/HistorySearchRow.stories.tsx +52 -0
- package/src/modules/HistorySearchRow/HistorySearchRow.tsx +61 -0
- package/src/modules/HistorySearchRow/helpers/resolveMonacoLanguage.ts +19 -0
- package/src/modules/HistorySearchRow/index.ts +1 -0
- package/src/modules/RowsList/RowsList.scss +5 -0
- package/src/modules/RowsList/RowsList.tsx +92 -0
- package/src/modules/RowsList/helpers/prepareRowData.ts +61 -0
- package/src/modules/RowsList/index.ts +2 -0
- package/src/modules/TutorialRow/TutorialRow.scss +9 -0
- package/src/modules/TutorialRow/TutorialRow.stories.tsx +43 -0
- package/src/modules/TutorialRow/TutorialRow.tsx +25 -0
- package/src/modules/TutorialRow/index.ts +2 -0
- package/src/modules/TutorialSearchRow/TutorialSearchRow.scss +5 -0
- package/src/modules/TutorialSearchRow/TutorialSearchRow.stories.tsx +44 -0
- package/src/modules/TutorialSearchRow/TutorialSearchRow.tsx +33 -0
- package/src/modules/TutorialSearchRow/index.ts +2 -0
- package/src/modules/index.ts +13 -0
- package/src/types/declarations.d.ts +15 -0
- package/src/types/forms.ts +33 -0
- package/src/types/history.ts +103 -0
- package/src/types/tutorial.ts +3 -0
- package/src/widgets/QueriesHistory/ComparisonActions.scss +4 -0
- package/src/widgets/QueriesHistory/ComparisonActions.tsx +42 -0
- package/src/widgets/QueriesHistory/QueriesHistory.scss +10 -0
- package/src/widgets/QueriesHistory/QueriesHistory.stories.tsx +276 -0
- package/src/widgets/QueriesHistory/QueriesHistory.tsx +96 -0
- package/src/widgets/QueriesHistory/i18n/dicts.ts +4 -0
- package/src/widgets/QueriesHistory/i18n/en.json +3 -0
- package/src/widgets/QueriesHistory/i18n/index.ts +5 -0
- package/src/widgets/QueriesHistory/i18n/ru.json +3 -0
- package/src/widgets/QueriesHistory/index.ts +2 -0
- package/src/widgets/TutorialsHistory/TutorialRowContent.tsx +16 -0
- package/src/widgets/TutorialsHistory/TutorialsHistory.stories.tsx +135 -0
- package/src/widgets/TutorialsHistory/TutorialsHistory.tsx +66 -0
- package/src/widgets/TutorialsHistory/i18n/dicts.ts +4 -0
- package/src/widgets/TutorialsHistory/i18n/en.json +3 -0
- package/src/widgets/TutorialsHistory/i18n/index.ts +5 -0
- package/src/widgets/TutorialsHistory/i18n/ru.json +3 -0
- package/src/widgets/TutorialsHistory/index.ts +2 -0
- package/src/widgets/index.ts +4 -0
- package/tsconfig.json +20 -0
- package/tsconfig.publish.json +11 -0
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React, {FC} from 'react';
|
|
2
|
+
import {Flex} from '@gravity-ui/uikit';
|
|
3
|
+
import {HistorySearch} from './HistorySearch';
|
|
4
|
+
import {HistoryFilter} from '../../components/HistoryFilter';
|
|
5
|
+
import {QueryHistoryFilterConfig} from '../../types/history';
|
|
6
|
+
|
|
7
|
+
type Props = {
|
|
8
|
+
search?: string;
|
|
9
|
+
fullSearch?: boolean;
|
|
10
|
+
hasClear?: boolean;
|
|
11
|
+
filter?: QueryHistoryFilterConfig;
|
|
12
|
+
onUpdate: (data: {value: string; fullSearch: boolean}) => void;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export const HistoryHeader: FC<Props> = ({search, fullSearch, hasClear, filter, onUpdate}) => {
|
|
16
|
+
return (
|
|
17
|
+
<Flex gap={1}>
|
|
18
|
+
<HistorySearch
|
|
19
|
+
value={search}
|
|
20
|
+
fullSearch={fullSearch}
|
|
21
|
+
hasClear={hasClear}
|
|
22
|
+
onUpdate={onUpdate}
|
|
23
|
+
/>
|
|
24
|
+
{filter && <HistoryFilter {...filter} />}
|
|
25
|
+
</Flex>
|
|
26
|
+
);
|
|
27
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import React, {FC, useEffect, useState} from 'react';
|
|
2
|
+
import {Button, Icon, TextInput} from '@gravity-ui/uikit';
|
|
3
|
+
import cn from 'bem-cn-lite';
|
|
4
|
+
import ChevronsExpandHorizontalIcon from '@gravity-ui/icons/svgs/chevrons-expand-horizontal.svg';
|
|
5
|
+
import './HistorySearch.scss';
|
|
6
|
+
|
|
7
|
+
type Props = {
|
|
8
|
+
value?: string;
|
|
9
|
+
fullSearch?: boolean;
|
|
10
|
+
hasClear?: boolean;
|
|
11
|
+
onUpdate: (data: {value: string; fullSearch: boolean}) => void;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
const block = cn('qp-history-search');
|
|
15
|
+
|
|
16
|
+
export const HistorySearch: FC<Props> = ({value, fullSearch, hasClear, onUpdate}) => {
|
|
17
|
+
const [search, setSearch] = useState(value || '');
|
|
18
|
+
const [isFullSearch, setFullSearch] = useState(fullSearch || false);
|
|
19
|
+
|
|
20
|
+
useEffect(() => {
|
|
21
|
+
setSearch(value || '');
|
|
22
|
+
setFullSearch(fullSearch || false);
|
|
23
|
+
}, [value, fullSearch]);
|
|
24
|
+
|
|
25
|
+
const handleOnUpdate = (newValue: string) => {
|
|
26
|
+
setSearch(newValue);
|
|
27
|
+
onUpdate({value: newValue, fullSearch: isFullSearch});
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
const handleModeChange = () => {
|
|
31
|
+
const newValue = !isFullSearch;
|
|
32
|
+
setFullSearch(newValue);
|
|
33
|
+
onUpdate({value: search, fullSearch: newValue});
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
return (
|
|
37
|
+
<TextInput
|
|
38
|
+
className={block()}
|
|
39
|
+
value={search}
|
|
40
|
+
onUpdate={handleOnUpdate}
|
|
41
|
+
hasClear={hasClear}
|
|
42
|
+
endContent={
|
|
43
|
+
<Button
|
|
44
|
+
className={block('full-search')}
|
|
45
|
+
size="xs"
|
|
46
|
+
view={isFullSearch ? 'action' : undefined}
|
|
47
|
+
onClick={handleModeChange}
|
|
48
|
+
>
|
|
49
|
+
<Icon data={ChevronsExpandHorizontalIcon} size={12} />
|
|
50
|
+
</Button>
|
|
51
|
+
}
|
|
52
|
+
/>
|
|
53
|
+
);
|
|
54
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {HistoryHeader} from './HistoryHeader';
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import React, {FC, ReactNode} from 'react';
|
|
2
|
+
import {Flex, Text} from '@gravity-ui/uikit';
|
|
3
|
+
import cn from 'bem-cn-lite';
|
|
4
|
+
import './HistoryLayout.scss';
|
|
5
|
+
|
|
6
|
+
const block = cn('qp-history-layout');
|
|
7
|
+
|
|
8
|
+
export type HistoryLayoutProps = {
|
|
9
|
+
title: ReactNode;
|
|
10
|
+
logo?: ReactNode;
|
|
11
|
+
actions?: ReactNode;
|
|
12
|
+
header?: ReactNode;
|
|
13
|
+
footer?: ReactNode;
|
|
14
|
+
className?: string;
|
|
15
|
+
children: ReactNode;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export const HistoryLayout: FC<HistoryLayoutProps> = ({
|
|
19
|
+
title,
|
|
20
|
+
logo,
|
|
21
|
+
actions,
|
|
22
|
+
header,
|
|
23
|
+
footer,
|
|
24
|
+
className,
|
|
25
|
+
children,
|
|
26
|
+
}) => {
|
|
27
|
+
return (
|
|
28
|
+
<Flex direction="column" gap={1} className={block(null, className)}>
|
|
29
|
+
{(logo || actions) && (
|
|
30
|
+
<Flex alignItems="center" justifyContent={logo ? 'space-between' : 'flex-end'}>
|
|
31
|
+
{logo}
|
|
32
|
+
{actions}
|
|
33
|
+
</Flex>
|
|
34
|
+
)}
|
|
35
|
+
<Text variant="subheader-1">{title}</Text>
|
|
36
|
+
{header}
|
|
37
|
+
{children}
|
|
38
|
+
{footer}
|
|
39
|
+
</Flex>
|
|
40
|
+
);
|
|
41
|
+
};
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
import React, {useState} from 'react';
|
|
2
|
+
import type {Meta, StoryObj} from '@storybook/react';
|
|
3
|
+
import {HistoryList} from './HistoryList';
|
|
4
|
+
import {QueryHistoryItem, QueryHistoryRow} from '../../types/history';
|
|
5
|
+
|
|
6
|
+
const now = Date.now();
|
|
7
|
+
const min = 60 * 1000;
|
|
8
|
+
|
|
9
|
+
const ITEMS: QueryHistoryItem<QueryHistoryRow>[] = [
|
|
10
|
+
{header: 'Today', height: 28},
|
|
11
|
+
{
|
|
12
|
+
id: 1,
|
|
13
|
+
title: 'Query 1',
|
|
14
|
+
status: 'completed',
|
|
15
|
+
engine: 'YQL',
|
|
16
|
+
startTime: now - 2 * min,
|
|
17
|
+
endTime: now - min,
|
|
18
|
+
height: 52,
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
id: 2,
|
|
22
|
+
title: 'Query 2',
|
|
23
|
+
status: 'failed',
|
|
24
|
+
engine: 'YQL',
|
|
25
|
+
startTime: now - 10 * min,
|
|
26
|
+
endTime: now - 9 * min,
|
|
27
|
+
height: 52,
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
id: 3,
|
|
31
|
+
title: 'Query 3',
|
|
32
|
+
status: 'running',
|
|
33
|
+
engine: 'YQL',
|
|
34
|
+
startTime: now - min,
|
|
35
|
+
height: 52,
|
|
36
|
+
},
|
|
37
|
+
{header: 'Yesterday', height: 28},
|
|
38
|
+
{
|
|
39
|
+
id: 4,
|
|
40
|
+
title: 'Query 4',
|
|
41
|
+
status: 'aborted',
|
|
42
|
+
engine: 'YQL',
|
|
43
|
+
startTime: now - 25 * 60 * min,
|
|
44
|
+
endTime: now - 24 * 60 * min,
|
|
45
|
+
height: 52,
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
id: 5,
|
|
49
|
+
title: 'Query 5',
|
|
50
|
+
status: 'draft',
|
|
51
|
+
engine: 'YQL',
|
|
52
|
+
startTime: now - 30 * 60 * min,
|
|
53
|
+
height: 52,
|
|
54
|
+
},
|
|
55
|
+
];
|
|
56
|
+
|
|
57
|
+
const meta: Meta<typeof HistoryList> = {
|
|
58
|
+
title: 'Modules/HistoryList',
|
|
59
|
+
component: HistoryList,
|
|
60
|
+
tags: ['autodocs'],
|
|
61
|
+
parameters: {
|
|
62
|
+
layout: 'padded',
|
|
63
|
+
},
|
|
64
|
+
decorators: [
|
|
65
|
+
(Story) => (
|
|
66
|
+
<div style={{width: 420, height: 480}}>
|
|
67
|
+
<Story />
|
|
68
|
+
</div>
|
|
69
|
+
),
|
|
70
|
+
],
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
export default meta;
|
|
74
|
+
type Story = StoryObj<typeof HistoryList>;
|
|
75
|
+
|
|
76
|
+
/** Basic list with groups and all statuses */
|
|
77
|
+
export const Default: Story = {
|
|
78
|
+
args: {
|
|
79
|
+
items: ITEMS,
|
|
80
|
+
},
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
/** Empty list */
|
|
84
|
+
export const Empty: Story = {
|
|
85
|
+
args: {
|
|
86
|
+
items: [],
|
|
87
|
+
},
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
/** With row actions (visible on hover) */
|
|
91
|
+
export const WithActions: Story = {
|
|
92
|
+
args: {
|
|
93
|
+
items: ITEMS,
|
|
94
|
+
getRowActions: (_item) => [
|
|
95
|
+
{text: 'Run again', onClick: (row) => alert(`Run: ${row.title}`)},
|
|
96
|
+
{text: 'Copy', onClick: (row) => alert(`Copy: ${row.title}`)},
|
|
97
|
+
{text: 'Delete', onClick: (row) => alert(`Delete: ${row.title}`)},
|
|
98
|
+
],
|
|
99
|
+
},
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
/** Interactive row comparison mode */
|
|
103
|
+
const WithComparisonStory = () => {
|
|
104
|
+
const [comparedRowIds, setComparedRowIds] = useState<number[]>([2]);
|
|
105
|
+
|
|
106
|
+
const handleChange = (item: QueryHistoryRow, selected: boolean) => {
|
|
107
|
+
setComparedRowIds((prev) =>
|
|
108
|
+
selected ? [...prev, item.id] : prev.filter((id) => id !== item.id),
|
|
109
|
+
);
|
|
110
|
+
};
|
|
111
|
+
|
|
112
|
+
return (
|
|
113
|
+
<div style={{width: 420, height: 480}}>
|
|
114
|
+
<div style={{marginBottom: 8, fontSize: 12, color: '#888'}}>
|
|
115
|
+
Compared ids: {comparedRowIds.join(', ') || 'none'}
|
|
116
|
+
</div>
|
|
117
|
+
<HistoryList
|
|
118
|
+
items={ITEMS}
|
|
119
|
+
comparison={{
|
|
120
|
+
enabled: true,
|
|
121
|
+
comparedRowIds,
|
|
122
|
+
onChange: handleChange,
|
|
123
|
+
onCancel: () => setComparedRowIds([]),
|
|
124
|
+
onCompare: () => alert(`Compare: ${comparedRowIds.join(', ')}`),
|
|
125
|
+
}}
|
|
126
|
+
/>
|
|
127
|
+
</div>
|
|
128
|
+
);
|
|
129
|
+
};
|
|
130
|
+
|
|
131
|
+
export const WithComparison: Story = {render: () => <WithComparisonStory />};
|
|
132
|
+
|
|
133
|
+
/** Row highlighted via selectedRowId */
|
|
134
|
+
const WithSelectedRowStory = () => {
|
|
135
|
+
const [selectedRowId, setSelectedRowId] = useState<number | undefined>(1);
|
|
136
|
+
|
|
137
|
+
return (
|
|
138
|
+
<div style={{width: 420, height: 480}}>
|
|
139
|
+
<div style={{marginBottom: 8, fontSize: 12, color: '#888'}}>
|
|
140
|
+
Selected row id: {selectedRowId ?? 'none'}
|
|
141
|
+
</div>
|
|
142
|
+
<HistoryList
|
|
143
|
+
items={ITEMS}
|
|
144
|
+
selectedRowId={selectedRowId}
|
|
145
|
+
onItemClick={(item, index) => {
|
|
146
|
+
if (!('header' in item)) {
|
|
147
|
+
setSelectedRowId(index);
|
|
148
|
+
}
|
|
149
|
+
}}
|
|
150
|
+
/>
|
|
151
|
+
</div>
|
|
152
|
+
);
|
|
153
|
+
};
|
|
154
|
+
|
|
155
|
+
export const WithSelectedRow: Story = {render: () => <WithSelectedRowStory />};
|
|
156
|
+
|
|
157
|
+
/** Interactive row title editing mode */
|
|
158
|
+
const WithEditingStory = () => {
|
|
159
|
+
const [editingRowId, setEditingRowId] = useState<number | undefined>(1);
|
|
160
|
+
|
|
161
|
+
return (
|
|
162
|
+
<div style={{width: 420, height: 480}}>
|
|
163
|
+
<div style={{marginBottom: 8, fontSize: 12, color: '#888'}}>
|
|
164
|
+
Editing row id: {editingRowId ?? 'none'} (row #1 is open for editing)
|
|
165
|
+
</div>
|
|
166
|
+
<HistoryList
|
|
167
|
+
items={ITEMS}
|
|
168
|
+
editing={{
|
|
169
|
+
rowId: editingRowId,
|
|
170
|
+
onSubmit: (item, title) => {
|
|
171
|
+
alert(`Saved row ${item.id}: "${title}"`);
|
|
172
|
+
setEditingRowId(undefined);
|
|
173
|
+
},
|
|
174
|
+
onCancel: () => setEditingRowId(undefined),
|
|
175
|
+
}}
|
|
176
|
+
/>
|
|
177
|
+
</div>
|
|
178
|
+
);
|
|
179
|
+
};
|
|
180
|
+
|
|
181
|
+
export const WithEditing: Story = {render: () => <WithEditingStory />};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import {
|
|
3
|
+
QueryHistoryComparisonConfig,
|
|
4
|
+
QueryHistoryEditingConfig,
|
|
5
|
+
QueryHistoryItem,
|
|
6
|
+
QueryHistoryRow,
|
|
7
|
+
QueryHistoryRowAction,
|
|
8
|
+
QueryHistoryRowRenderData,
|
|
9
|
+
QueryHistoryRowVariant,
|
|
10
|
+
QueryHistoryVisibleFieldsConfig,
|
|
11
|
+
} from '../../types/history';
|
|
12
|
+
import {RowsList} from '../RowsList';
|
|
13
|
+
import {HistoryRowContent} from './HistoryRowContent';
|
|
14
|
+
|
|
15
|
+
export type HistoryListProps<T extends QueryHistoryRow> = {
|
|
16
|
+
selectedRowId?: T['id'];
|
|
17
|
+
items: QueryHistoryItem<T>[];
|
|
18
|
+
rowVariant?: QueryHistoryRowVariant;
|
|
19
|
+
visibleFields?: QueryHistoryVisibleFieldsConfig<T>;
|
|
20
|
+
editing?: QueryHistoryEditingConfig<T>;
|
|
21
|
+
comparison?: QueryHistoryComparisonConfig<T>;
|
|
22
|
+
getRowActions?: (item: T) => QueryHistoryRowAction<T>[];
|
|
23
|
+
renderRowItem?: (data: QueryHistoryRowRenderData<T>) => React.ReactNode;
|
|
24
|
+
showFiltersHint?: boolean;
|
|
25
|
+
className?: string;
|
|
26
|
+
onItemClick?: (item: QueryHistoryItem<T>, index: number) => void;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export const HistoryList = <T extends QueryHistoryRow>({
|
|
30
|
+
renderRowItem,
|
|
31
|
+
...props
|
|
32
|
+
}: HistoryListProps<T>) => {
|
|
33
|
+
return (
|
|
34
|
+
<RowsList
|
|
35
|
+
{...props}
|
|
36
|
+
renderRow={(data) =>
|
|
37
|
+
renderRowItem ? renderRowItem(data) : <HistoryRowContent {...data} />
|
|
38
|
+
}
|
|
39
|
+
/>
|
|
40
|
+
);
|
|
41
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import {QueryHistoryRow, QueryHistoryRowRenderData} from '../../types/history';
|
|
3
|
+
import {HistoryGroupHeader} from '../../components';
|
|
4
|
+
import {HistoryRow} from '../HistoryRow';
|
|
5
|
+
import {HistorySearchRow} from '../HistorySearchRow';
|
|
6
|
+
|
|
7
|
+
export const HistoryRowContent = <T extends QueryHistoryRow>({
|
|
8
|
+
variant,
|
|
9
|
+
...data
|
|
10
|
+
}: QueryHistoryRowRenderData<T>) => {
|
|
11
|
+
const {item} = data;
|
|
12
|
+
|
|
13
|
+
if ('header' in item) {
|
|
14
|
+
return <HistoryGroupHeader title={item.header} />;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
return variant === 'search' ? (
|
|
18
|
+
<HistorySearchRow {...data} item={item} />
|
|
19
|
+
) : (
|
|
20
|
+
<HistoryRow {...data} item={item} />
|
|
21
|
+
);
|
|
22
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
.qp-history-row {
|
|
2
|
+
height: 100%;
|
|
3
|
+
display: grid;
|
|
4
|
+
grid-template-columns: 20px 1fr;
|
|
5
|
+
gap: 4px;
|
|
6
|
+
|
|
7
|
+
&_compared {
|
|
8
|
+
background-color: var(--g-color-base-utility-light);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
&__icon {
|
|
12
|
+
flex: 0 0 20px;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
&__header {
|
|
16
|
+
height: 20px;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&__right-column {
|
|
20
|
+
overflow: hidden;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&__data {
|
|
24
|
+
display: grid;
|
|
25
|
+
grid-template-columns: 52px 1fr;
|
|
26
|
+
grid-gap: 8px;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&__duration {
|
|
30
|
+
text-align: center;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type {Meta, StoryObj} from '@storybook/react';
|
|
3
|
+
import {HistoryRow} from './HistoryRow';
|
|
4
|
+
import {QueryHistoryRow, QueryHistoryRowAction} from '../../types/history';
|
|
5
|
+
|
|
6
|
+
const now = Date.now();
|
|
7
|
+
const min = 60 * 1000;
|
|
8
|
+
|
|
9
|
+
const makeRow = (overrides: Partial<QueryHistoryRow>): QueryHistoryRow => ({
|
|
10
|
+
id: 1,
|
|
11
|
+
title: 'Query 1',
|
|
12
|
+
status: 'completed',
|
|
13
|
+
engine: 'YQL',
|
|
14
|
+
mode: 'batch',
|
|
15
|
+
isPrivate: false,
|
|
16
|
+
startTime: now - 5 * min,
|
|
17
|
+
endTime: now - min,
|
|
18
|
+
height: 64,
|
|
19
|
+
...overrides,
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
const defaultActions: Array<QueryHistoryRowAction<QueryHistoryRow>> = [
|
|
23
|
+
{text: 'Run again', onClick: (row) => alert(`Run: ${row.title}`)},
|
|
24
|
+
{text: 'Copy', onClick: (row) => alert(`Copy: ${row.title}`)},
|
|
25
|
+
{text: 'Delete', onClick: (row) => alert(`Delete: ${row.title}`)},
|
|
26
|
+
];
|
|
27
|
+
|
|
28
|
+
const meta: Meta<typeof HistoryRow> = {
|
|
29
|
+
title: 'Modules/HistoryRow',
|
|
30
|
+
component: HistoryRow,
|
|
31
|
+
tags: ['autodocs'],
|
|
32
|
+
parameters: {
|
|
33
|
+
layout: 'padded',
|
|
34
|
+
},
|
|
35
|
+
args: {
|
|
36
|
+
item: makeRow({}),
|
|
37
|
+
isActive: false,
|
|
38
|
+
index: 0,
|
|
39
|
+
actions: defaultActions,
|
|
40
|
+
},
|
|
41
|
+
decorators: [
|
|
42
|
+
(Story) => (
|
|
43
|
+
<div style={{width: 380}}>
|
|
44
|
+
<Story />
|
|
45
|
+
</div>
|
|
46
|
+
),
|
|
47
|
+
],
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
export default meta;
|
|
51
|
+
type Story = StoryObj<typeof HistoryRow>;
|
|
52
|
+
|
|
53
|
+
/** Default row with a ready-to-use actions menu */
|
|
54
|
+
export const Default: Story = {
|
|
55
|
+
args: {
|
|
56
|
+
item: makeRow({isPrivate: true}),
|
|
57
|
+
isActive: true,
|
|
58
|
+
},
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
/** Comparison mode — row highlighted as checked, menu is hidden */
|
|
62
|
+
export const ComparisonMode: Story = {
|
|
63
|
+
args: {
|
|
64
|
+
comparison: {
|
|
65
|
+
enabled: true,
|
|
66
|
+
checked: true,
|
|
67
|
+
},
|
|
68
|
+
},
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
/** Comparison mode is enabled globally, but this row is not checked yet */
|
|
72
|
+
export const ComparisonModeUnchecked: Story = {
|
|
73
|
+
args: {
|
|
74
|
+
comparison: {
|
|
75
|
+
enabled: true,
|
|
76
|
+
checked: false,
|
|
77
|
+
},
|
|
78
|
+
},
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
/** Title editing mode */
|
|
82
|
+
export const EditingMode: Story = {
|
|
83
|
+
args: {
|
|
84
|
+
editing: {
|
|
85
|
+
enabled: true,
|
|
86
|
+
onSubmit: (_item, title) => alert(`Saved: ${title}`),
|
|
87
|
+
onCancel: () => alert('Cancelled'),
|
|
88
|
+
},
|
|
89
|
+
},
|
|
90
|
+
};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import {QueryHistoryRow, QueryHistoryRowRenderData} from '../../types/history';
|
|
3
|
+
import {Flex, Text} from '@gravity-ui/uikit';
|
|
4
|
+
import './HistoryRow.scss';
|
|
5
|
+
import cn from 'bem-cn-lite';
|
|
6
|
+
import {HistoryPrivateIcon, QueryDuration, QueryStatusIcon, RowLink} from '../../components';
|
|
7
|
+
import {formatTime} from '../../helpers/time';
|
|
8
|
+
import {isFieldVisible} from '../../helpers/isFieldVisible';
|
|
9
|
+
import {HistoryRowTitle} from './HistoryRowTitle';
|
|
10
|
+
import {HistoryRowMenu} from './HistoryRowMenu';
|
|
11
|
+
|
|
12
|
+
export type Props<T extends QueryHistoryRow> = {
|
|
13
|
+
item: T;
|
|
14
|
+
} & Omit<QueryHistoryRowRenderData<T>, 'item' | 'variant'>;
|
|
15
|
+
|
|
16
|
+
const block = cn('qp-history-row');
|
|
17
|
+
|
|
18
|
+
export const HistoryRow = <T extends QueryHistoryRow>({
|
|
19
|
+
item,
|
|
20
|
+
actions,
|
|
21
|
+
isActive,
|
|
22
|
+
comparison,
|
|
23
|
+
editing,
|
|
24
|
+
visibleFields,
|
|
25
|
+
}: Props<T>) => {
|
|
26
|
+
const {href, status, mode, startTime, endTime, engine, isPrivate} = item;
|
|
27
|
+
const isEditing = Boolean(editing?.enabled);
|
|
28
|
+
const isComparisonMode = Boolean(comparison?.enabled);
|
|
29
|
+
const isChecked = Boolean(comparison?.checked);
|
|
30
|
+
const showMenu = isActive && Boolean(actions?.length) && !isComparisonMode;
|
|
31
|
+
|
|
32
|
+
return (
|
|
33
|
+
<RowLink
|
|
34
|
+
href={href}
|
|
35
|
+
disabled={isEditing || isComparisonMode}
|
|
36
|
+
className={block({[status]: true, compared: isChecked})}
|
|
37
|
+
>
|
|
38
|
+
<QueryStatusIcon status={status} />
|
|
39
|
+
<Flex direction="column" gap={1} className={block('right-column')}>
|
|
40
|
+
<Flex justifyContent="space-between" className={block('header')}>
|
|
41
|
+
<HistoryRowTitle item={item} editing={editing} />
|
|
42
|
+
{showMenu && <HistoryRowMenu item={item} actions={actions} />}
|
|
43
|
+
</Flex>
|
|
44
|
+
<div className={block('data')}>
|
|
45
|
+
{isFieldVisible(visibleFields, 'duration') && startTime && (
|
|
46
|
+
<QueryDuration
|
|
47
|
+
className={block('duration')}
|
|
48
|
+
status={status}
|
|
49
|
+
startTime={startTime}
|
|
50
|
+
endTime={endTime}
|
|
51
|
+
/>
|
|
52
|
+
)}
|
|
53
|
+
<Flex gap={2}>
|
|
54
|
+
{isFieldVisible(visibleFields, 'mode') && mode && (
|
|
55
|
+
<Text color="complementary">{mode}</Text>
|
|
56
|
+
)}
|
|
57
|
+
{isFieldVisible(visibleFields, 'startTime') && startTime && (
|
|
58
|
+
<Text color="complementary">{formatTime(startTime)}</Text>
|
|
59
|
+
)}
|
|
60
|
+
{isFieldVisible(visibleFields, 'engine') && engine && (
|
|
61
|
+
<Text color="complementary">{engine}</Text>
|
|
62
|
+
)}
|
|
63
|
+
{isFieldVisible(visibleFields, 'isPrivate') && (
|
|
64
|
+
<HistoryPrivateIcon isPrivate={isPrivate} />
|
|
65
|
+
)}
|
|
66
|
+
</Flex>
|
|
67
|
+
</div>
|
|
68
|
+
</Flex>
|
|
69
|
+
</RowLink>
|
|
70
|
+
);
|
|
71
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import React, {MouseEvent, useMemo} from 'react';
|
|
2
|
+
import {Button, DropdownMenu, DropdownMenuItem, Icon} from '@gravity-ui/uikit';
|
|
3
|
+
import EllipsisIcon from '@gravity-ui/icons/svgs/ellipsis.svg';
|
|
4
|
+
import {QueryHistoryRow, QueryHistoryRowAction} from '../../types/history';
|
|
5
|
+
|
|
6
|
+
type Props<T extends QueryHistoryRow> = {
|
|
7
|
+
item: T;
|
|
8
|
+
actions?: QueryHistoryRowAction<T>[];
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export const HistoryRowMenu = <T extends QueryHistoryRow>({item, actions}: Props<T>) => {
|
|
12
|
+
const items = useMemo(() => {
|
|
13
|
+
return actions?.map<DropdownMenuItem>(({icon, text, hidden, disabled, onClick}) => {
|
|
14
|
+
return {
|
|
15
|
+
text,
|
|
16
|
+
hidden,
|
|
17
|
+
disabled,
|
|
18
|
+
iconStart: icon,
|
|
19
|
+
action: () => {
|
|
20
|
+
onClick(item);
|
|
21
|
+
},
|
|
22
|
+
};
|
|
23
|
+
});
|
|
24
|
+
}, [actions, item]);
|
|
25
|
+
|
|
26
|
+
if (!actions || !actions.length) return null;
|
|
27
|
+
|
|
28
|
+
const handleClick = (e: MouseEvent<HTMLDivElement>) => {
|
|
29
|
+
e.preventDefault();
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
return (
|
|
33
|
+
<div onClick={handleClick}>
|
|
34
|
+
<DropdownMenu
|
|
35
|
+
size="s"
|
|
36
|
+
renderSwitcher={(props) => {
|
|
37
|
+
return (
|
|
38
|
+
<Button {...props} size="xs">
|
|
39
|
+
<Icon data={EllipsisIcon} size={12} />
|
|
40
|
+
</Button>
|
|
41
|
+
);
|
|
42
|
+
}}
|
|
43
|
+
items={items}
|
|
44
|
+
/>
|
|
45
|
+
</div>
|
|
46
|
+
);
|
|
47
|
+
};
|