@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,103 @@
|
|
|
1
|
+
import {ReactNode} from 'react';
|
|
2
|
+
import {RegisteredFormFields} from './forms';
|
|
3
|
+
|
|
4
|
+
export type QueryStatus = 'completed' | 'failed' | 'aborted' | 'draft' | 'running';
|
|
5
|
+
|
|
6
|
+
/** ISO 8601 date string or Unix timestamp in milliseconds. */
|
|
7
|
+
export type QueryHistoryTimestamp = string | number;
|
|
8
|
+
|
|
9
|
+
export type HistoryRowRenderProps = {height: number};
|
|
10
|
+
|
|
11
|
+
export type QueryHistoryHeader = {header: string} & HistoryRowRenderProps;
|
|
12
|
+
|
|
13
|
+
export type BaseHistoryRow = {
|
|
14
|
+
id: number;
|
|
15
|
+
title: string;
|
|
16
|
+
query?: string;
|
|
17
|
+
href?: string;
|
|
18
|
+
} & HistoryRowRenderProps;
|
|
19
|
+
|
|
20
|
+
export type QueryHistoryRow = BaseHistoryRow & {
|
|
21
|
+
startTime?: QueryHistoryTimestamp;
|
|
22
|
+
endTime?: QueryHistoryTimestamp;
|
|
23
|
+
engine?: string;
|
|
24
|
+
mode?: string;
|
|
25
|
+
isPrivate?: boolean;
|
|
26
|
+
status: QueryStatus;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export type QueryHistoryItem<T extends BaseHistoryRow = BaseHistoryRow> = QueryHistoryHeader | T;
|
|
30
|
+
|
|
31
|
+
export type QueryHistoryRowVariant = 'default' | 'search';
|
|
32
|
+
|
|
33
|
+
export type QueryHistoryRowAction<T extends BaseHistoryRow = BaseHistoryRow> = {
|
|
34
|
+
text: ReactNode;
|
|
35
|
+
icon?: ReactNode;
|
|
36
|
+
hidden?: boolean;
|
|
37
|
+
disabled?: boolean;
|
|
38
|
+
onClick: (item: T) => void;
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
export type QueryHistorySearchConfig = {
|
|
42
|
+
value?: string;
|
|
43
|
+
fullSearch?: boolean;
|
|
44
|
+
hasClear?: boolean;
|
|
45
|
+
onUpdate: (data: {value: string; fullSearch: boolean}) => void;
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
export type QueryHistoryFilterConfig = {
|
|
49
|
+
fields?: RegisteredFormFields[];
|
|
50
|
+
values?: Record<string, any>;
|
|
51
|
+
initialValues?: Record<string, any>;
|
|
52
|
+
isChanged?: boolean;
|
|
53
|
+
onApply?: (values: Record<string, any>) => void;
|
|
54
|
+
onReset?: () => void;
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
export type QueryHistoryEditingConfig<T extends BaseHistoryRow = BaseHistoryRow> = {
|
|
58
|
+
rowId?: T['id'];
|
|
59
|
+
onSubmit?: (item: T, title: string) => void;
|
|
60
|
+
onCancel?: (item: T) => void;
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
export type QueryHistoryComparisonConfig<T extends BaseHistoryRow = BaseHistoryRow> = {
|
|
64
|
+
enabled: boolean;
|
|
65
|
+
comparedRowIds: T['id'][];
|
|
66
|
+
onChange: (item: T, selected: boolean) => void;
|
|
67
|
+
onCancel: () => void;
|
|
68
|
+
onCompare: () => void;
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
type RowFieldKey<T extends BaseHistoryRow> = Exclude<keyof T & string, keyof HistoryRowRenderProps>;
|
|
72
|
+
|
|
73
|
+
export type QueryHistoryFieldKey<T extends BaseHistoryRow = BaseHistoryRow> =
|
|
74
|
+
RowFieldKey<T> | 'duration';
|
|
75
|
+
|
|
76
|
+
export type QueryHistoryFieldOption<K extends string = string> = {
|
|
77
|
+
id: K;
|
|
78
|
+
title: ReactNode;
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
export type QueryHistoryVisibleFieldsConfig<T extends BaseHistoryRow = BaseHistoryRow> = {
|
|
82
|
+
value: QueryHistoryFieldKey<T>[];
|
|
83
|
+
fields: QueryHistoryFieldOption<QueryHistoryFieldKey<T>>[];
|
|
84
|
+
onChange: (value: QueryHistoryFieldKey<T>[]) => void;
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
export type QueryHistoryEditingRenderData<T extends BaseHistoryRow = BaseHistoryRow> = {
|
|
88
|
+
enabled: boolean;
|
|
89
|
+
} & Pick<QueryHistoryEditingConfig<T>, 'onSubmit' | 'onCancel'>;
|
|
90
|
+
|
|
91
|
+
export type QueryHistoryRowRenderData<T extends BaseHistoryRow = BaseHistoryRow> = {
|
|
92
|
+
item: QueryHistoryItem<T>;
|
|
93
|
+
index: number;
|
|
94
|
+
isActive: boolean;
|
|
95
|
+
variant: QueryHistoryRowVariant;
|
|
96
|
+
comparison?: {
|
|
97
|
+
enabled: boolean;
|
|
98
|
+
checked: boolean;
|
|
99
|
+
};
|
|
100
|
+
visibleFields?: QueryHistoryVisibleFieldsConfig<T>;
|
|
101
|
+
actions?: QueryHistoryRowAction<T>[];
|
|
102
|
+
editing?: QueryHistoryEditingRenderData<T>;
|
|
103
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import {Button, Flex, Icon} from '@gravity-ui/uikit';
|
|
3
|
+
import {QueryHistoryComparisonConfig, QueryHistoryRow} from '../../types/history';
|
|
4
|
+
import ArrowRotateRightIcon from '@gravity-ui/icons/svgs/arrow-rotate-right.svg';
|
|
5
|
+
import ArrowRightArrowLeftIcon from '@gravity-ui/icons/svgs/arrow-right-arrow-left.svg';
|
|
6
|
+
import './ComparisonActions.scss';
|
|
7
|
+
import cn from 'bem-cn-lite';
|
|
8
|
+
|
|
9
|
+
type Props<T extends QueryHistoryRow> = {
|
|
10
|
+
comparison: QueryHistoryComparisonConfig<T>;
|
|
11
|
+
className?: string;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
const block = cn('qp-query-history-comparison-action');
|
|
15
|
+
|
|
16
|
+
export const ComparisonActions = <T extends QueryHistoryRow>({
|
|
17
|
+
comparison: {enabled, comparedRowIds, onCompare, onCancel},
|
|
18
|
+
className,
|
|
19
|
+
}: Props<T>) => {
|
|
20
|
+
if (!enabled) return null;
|
|
21
|
+
|
|
22
|
+
return (
|
|
23
|
+
<Flex
|
|
24
|
+
gap={3}
|
|
25
|
+
alignItems="center"
|
|
26
|
+
justifyContent="center"
|
|
27
|
+
className={block(null, className)}
|
|
28
|
+
>
|
|
29
|
+
<Button onClick={onCancel} width="max">
|
|
30
|
+
<Icon data={ArrowRotateRightIcon} size={16} />
|
|
31
|
+
</Button>
|
|
32
|
+
<Button
|
|
33
|
+
view="action"
|
|
34
|
+
onClick={onCompare}
|
|
35
|
+
disabled={comparedRowIds.length < 2}
|
|
36
|
+
width="max"
|
|
37
|
+
>
|
|
38
|
+
<Icon data={ArrowRightArrowLeftIcon} size={16} />
|
|
39
|
+
</Button>
|
|
40
|
+
</Flex>
|
|
41
|
+
);
|
|
42
|
+
};
|
|
@@ -0,0 +1,276 @@
|
|
|
1
|
+
import React, {useState} from 'react';
|
|
2
|
+
import type {Meta, StoryObj} from '@storybook/react';
|
|
3
|
+
import {QueriesHistory} from './QueriesHistory';
|
|
4
|
+
import {
|
|
5
|
+
QueryHistoryFieldKey,
|
|
6
|
+
QueryHistoryFilterConfig,
|
|
7
|
+
QueryHistoryItem,
|
|
8
|
+
QueryHistoryRow,
|
|
9
|
+
QueryHistoryVisibleFieldsConfig,
|
|
10
|
+
} from '../../types/history';
|
|
11
|
+
import {action} from 'storybook/actions';
|
|
12
|
+
|
|
13
|
+
const now = Date.now();
|
|
14
|
+
const min = 60 * 1000;
|
|
15
|
+
|
|
16
|
+
const QUERY = `use test;
|
|
17
|
+
|
|
18
|
+
SELECT
|
|
19
|
+
"test_session" AS session_id,
|
|
20
|
+
"test_task" AS task_id,
|
|
21
|
+
SUBSTRING("test", 1, 1) AS truncated_char`;
|
|
22
|
+
|
|
23
|
+
const BASE_ITEMS: QueryHistoryItem<QueryHistoryRow>[] = [
|
|
24
|
+
{header: 'Today', height: 28},
|
|
25
|
+
{
|
|
26
|
+
id: 1,
|
|
27
|
+
title: 'Query 1',
|
|
28
|
+
status: 'completed',
|
|
29
|
+
engine: 'YQL',
|
|
30
|
+
mode: 'Validation',
|
|
31
|
+
startTime: now - 2 * min,
|
|
32
|
+
endTime: now - min,
|
|
33
|
+
query: QUERY,
|
|
34
|
+
height: 52,
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
id: 2,
|
|
38
|
+
title: 'Query 2',
|
|
39
|
+
status: 'failed',
|
|
40
|
+
engine: 'YQL',
|
|
41
|
+
mode: 'Test',
|
|
42
|
+
startTime: now - 10 * min,
|
|
43
|
+
endTime: now - 9 * min,
|
|
44
|
+
query: QUERY,
|
|
45
|
+
height: 52,
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
id: 3,
|
|
49
|
+
title: 'Query 3',
|
|
50
|
+
status: 'running',
|
|
51
|
+
engine: 'YQL',
|
|
52
|
+
mode: 'Test',
|
|
53
|
+
startTime: now - min,
|
|
54
|
+
query: QUERY,
|
|
55
|
+
height: 52,
|
|
56
|
+
},
|
|
57
|
+
{header: 'Yesterday', height: 28},
|
|
58
|
+
{
|
|
59
|
+
id: 4,
|
|
60
|
+
title: 'Query 4',
|
|
61
|
+
status: 'aborted',
|
|
62
|
+
engine: 'YQL',
|
|
63
|
+
mode: 'Validation',
|
|
64
|
+
startTime: now - 25 * 60 * min,
|
|
65
|
+
endTime: now - 24 * 60 * min,
|
|
66
|
+
query: 'SELECT 1',
|
|
67
|
+
height: 52,
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
id: 5,
|
|
71
|
+
title: 'Query 5',
|
|
72
|
+
status: 'draft',
|
|
73
|
+
engine: 'YQL',
|
|
74
|
+
mode: 'Test',
|
|
75
|
+
startTime: now - 30 * 60 * min,
|
|
76
|
+
query: QUERY,
|
|
77
|
+
height: 52,
|
|
78
|
+
},
|
|
79
|
+
];
|
|
80
|
+
|
|
81
|
+
type VisibleFields = QueryHistoryVisibleFieldsConfig<QueryHistoryRow>['fields'];
|
|
82
|
+
const activeFields: QueryHistoryFieldKey<QueryHistoryRow>[] = [
|
|
83
|
+
'duration',
|
|
84
|
+
'mode',
|
|
85
|
+
'startTime',
|
|
86
|
+
'engine',
|
|
87
|
+
'isPrivate',
|
|
88
|
+
];
|
|
89
|
+
const fields: VisibleFields = [
|
|
90
|
+
{
|
|
91
|
+
id: 'duration',
|
|
92
|
+
title: 'Duration',
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
id: 'mode',
|
|
96
|
+
title: 'Mode',
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
id: 'startTime',
|
|
100
|
+
title: 'Start time',
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
id: 'engine',
|
|
104
|
+
title: 'Engine',
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
id: 'isPrivate',
|
|
108
|
+
title: 'ACO',
|
|
109
|
+
},
|
|
110
|
+
];
|
|
111
|
+
|
|
112
|
+
const filterFields: QueryHistoryFilterConfig['fields'] = [
|
|
113
|
+
{id: 'onlyMine', type: 'switch', title: 'My queries only', initialValue: true},
|
|
114
|
+
{id: 'range', type: 'rangeDatePicker', title: 'Period'},
|
|
115
|
+
{
|
|
116
|
+
id: 'dialect',
|
|
117
|
+
type: 'checkboxGroup',
|
|
118
|
+
title: 'Dialect',
|
|
119
|
+
initialValue: [],
|
|
120
|
+
items: [
|
|
121
|
+
{id: 'yql', title: 'YQL'},
|
|
122
|
+
{id: 'sql', title: 'SQL'},
|
|
123
|
+
],
|
|
124
|
+
},
|
|
125
|
+
];
|
|
126
|
+
|
|
127
|
+
const logFilterApply = action('onFilterApply');
|
|
128
|
+
const logFilterReset = action('onFilterReset');
|
|
129
|
+
|
|
130
|
+
const meta: Meta<typeof QueriesHistory> = {
|
|
131
|
+
title: 'Widgets/QueriesHistory',
|
|
132
|
+
component: QueriesHistory,
|
|
133
|
+
tags: ['autodocs'],
|
|
134
|
+
parameters: {
|
|
135
|
+
layout: 'padded',
|
|
136
|
+
},
|
|
137
|
+
};
|
|
138
|
+
|
|
139
|
+
export default meta;
|
|
140
|
+
type Story = StoryObj<typeof QueriesHistory>;
|
|
141
|
+
|
|
142
|
+
const DefaultStory = () => {
|
|
143
|
+
const [items, setItems] = useState([...BASE_ITEMS]);
|
|
144
|
+
const [search, setSearch] = useState({value: '', fullSearch: false});
|
|
145
|
+
const [visibleFields, setVisibleFields] =
|
|
146
|
+
useState<QueryHistoryFieldKey<QueryHistoryRow>[]>(activeFields);
|
|
147
|
+
const [compareMode, setCompareMode] = useState(false);
|
|
148
|
+
const [comparedRows, setComparedRows] = useState<number[]>([]);
|
|
149
|
+
const [editingId, setEditingId] = useState<number | undefined>(undefined);
|
|
150
|
+
|
|
151
|
+
const handleCompareChange = (item: QueryHistoryRow, selected: boolean) => {
|
|
152
|
+
const result = selected
|
|
153
|
+
? [...comparedRows.slice(0, 1), item.id]
|
|
154
|
+
: comparedRows.filter((id) => id !== item.id);
|
|
155
|
+
setComparedRows(result);
|
|
156
|
+
|
|
157
|
+
if (!result.length) setCompareMode(false);
|
|
158
|
+
};
|
|
159
|
+
|
|
160
|
+
const handleCompareCancel = () => {
|
|
161
|
+
setComparedRows([]);
|
|
162
|
+
setCompareMode(false);
|
|
163
|
+
};
|
|
164
|
+
|
|
165
|
+
const handleEditSubmit = (item: QueryHistoryRow, title: string) => {
|
|
166
|
+
const index = items.findIndex((i) => 'id' in i && i.id === item.id);
|
|
167
|
+
if (index < 0) return;
|
|
168
|
+
|
|
169
|
+
const result = [...items];
|
|
170
|
+
result[index] = {...result[index], title};
|
|
171
|
+
setItems(result);
|
|
172
|
+
setEditingId(undefined);
|
|
173
|
+
};
|
|
174
|
+
|
|
175
|
+
const handleEditCancel = () => {
|
|
176
|
+
setEditingId(undefined);
|
|
177
|
+
};
|
|
178
|
+
|
|
179
|
+
const handleCompare = () => {
|
|
180
|
+
action('onCompare')(comparedRows);
|
|
181
|
+
};
|
|
182
|
+
|
|
183
|
+
const handleOnSearch = (data: {value: string; fullSearch: boolean}) => {
|
|
184
|
+
setSearch(data);
|
|
185
|
+
|
|
186
|
+
if (!data.value) {
|
|
187
|
+
setItems(BASE_ITEMS);
|
|
188
|
+
return;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
const newItems = BASE_ITEMS.filter((item) => {
|
|
192
|
+
if (!('id' in item)) return false;
|
|
193
|
+
|
|
194
|
+
const title = item.title.toLowerCase();
|
|
195
|
+
const query = item.query?.toLowerCase();
|
|
196
|
+
const searchValue = data.value.toLowerCase();
|
|
197
|
+
|
|
198
|
+
if (data.fullSearch) {
|
|
199
|
+
return title.includes(searchValue) || query?.includes(searchValue);
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
return title.includes(searchValue);
|
|
203
|
+
});
|
|
204
|
+
setItems(newItems);
|
|
205
|
+
};
|
|
206
|
+
|
|
207
|
+
return (
|
|
208
|
+
<div style={{width: 300, height: 500}}>
|
|
209
|
+
<QueriesHistory
|
|
210
|
+
title="History"
|
|
211
|
+
items={items}
|
|
212
|
+
visibleFields={{value: visibleFields, fields, onChange: setVisibleFields}}
|
|
213
|
+
search={{
|
|
214
|
+
value: search.value,
|
|
215
|
+
fullSearch: search.fullSearch,
|
|
216
|
+
hasClear: true,
|
|
217
|
+
onUpdate: handleOnSearch,
|
|
218
|
+
}}
|
|
219
|
+
filter={{
|
|
220
|
+
fields: filterFields,
|
|
221
|
+
onApply: logFilterApply,
|
|
222
|
+
onReset: logFilterReset('reset'),
|
|
223
|
+
}}
|
|
224
|
+
getRowActions={() => [
|
|
225
|
+
{
|
|
226
|
+
text: 'Compare',
|
|
227
|
+
onClick: (item) => {
|
|
228
|
+
setCompareMode(true);
|
|
229
|
+
setComparedRows([item.id]);
|
|
230
|
+
},
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
text: 'Edit',
|
|
234
|
+
onClick: (item) => {
|
|
235
|
+
setEditingId(item.id);
|
|
236
|
+
},
|
|
237
|
+
},
|
|
238
|
+
]}
|
|
239
|
+
comparison={{
|
|
240
|
+
enabled: compareMode,
|
|
241
|
+
comparedRowIds: comparedRows,
|
|
242
|
+
onChange: handleCompareChange,
|
|
243
|
+
onCancel: handleCompareCancel,
|
|
244
|
+
onCompare: handleCompare,
|
|
245
|
+
}}
|
|
246
|
+
editing={{
|
|
247
|
+
rowId: editingId,
|
|
248
|
+
onSubmit: handleEditSubmit,
|
|
249
|
+
onCancel: handleEditCancel,
|
|
250
|
+
}}
|
|
251
|
+
/>
|
|
252
|
+
</div>
|
|
253
|
+
);
|
|
254
|
+
};
|
|
255
|
+
|
|
256
|
+
const EmptyStory = () => {
|
|
257
|
+
const [search, setSearch] = useState({value: '', fullSearch: false});
|
|
258
|
+
|
|
259
|
+
return (
|
|
260
|
+
<div style={{width: 300, height: 500}}>
|
|
261
|
+
<QueriesHistory
|
|
262
|
+
title="History"
|
|
263
|
+
items={[]}
|
|
264
|
+
search={{
|
|
265
|
+
value: search.value,
|
|
266
|
+
fullSearch: search.fullSearch,
|
|
267
|
+
hasClear: true,
|
|
268
|
+
onUpdate: setSearch,
|
|
269
|
+
}}
|
|
270
|
+
/>
|
|
271
|
+
</div>
|
|
272
|
+
);
|
|
273
|
+
};
|
|
274
|
+
|
|
275
|
+
export const Default: Story = {render: () => <DefaultStory />};
|
|
276
|
+
export const Empty: Story = {render: () => <EmptyStory />};
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import {HistoryHeader, HistoryLayout, HistoryList} from '../../modules';
|
|
3
|
+
import i18n from './i18n';
|
|
4
|
+
import {
|
|
5
|
+
QueryHistoryComparisonConfig,
|
|
6
|
+
QueryHistoryEditingConfig,
|
|
7
|
+
QueryHistoryFilterConfig,
|
|
8
|
+
QueryHistoryItem,
|
|
9
|
+
QueryHistoryRow,
|
|
10
|
+
QueryHistoryRowAction,
|
|
11
|
+
QueryHistoryRowRenderData,
|
|
12
|
+
QueryHistorySearchConfig,
|
|
13
|
+
QueryHistoryVisibleFieldsConfig,
|
|
14
|
+
} from '../../types/history';
|
|
15
|
+
import {FieldsSelector} from '../../components';
|
|
16
|
+
import {getListKey} from '../../helpers/getListKey';
|
|
17
|
+
import {ComparisonActions} from './ComparisonActions';
|
|
18
|
+
import cn from 'bem-cn-lite';
|
|
19
|
+
import './QueriesHistory.scss';
|
|
20
|
+
|
|
21
|
+
export type QueriesHistoryProps<T extends QueryHistoryRow = QueryHistoryRow> = {
|
|
22
|
+
className?: string;
|
|
23
|
+
title?: string;
|
|
24
|
+
logo?: React.ReactNode;
|
|
25
|
+
search: QueryHistorySearchConfig;
|
|
26
|
+
filter?: QueryHistoryFilterConfig;
|
|
27
|
+
items: QueryHistoryItem<T>[];
|
|
28
|
+
selectedRowId?: T['id'];
|
|
29
|
+
editing?: QueryHistoryEditingConfig<T>;
|
|
30
|
+
comparison?: QueryHistoryComparisonConfig<T>;
|
|
31
|
+
visibleFields?: QueryHistoryVisibleFieldsConfig<T>;
|
|
32
|
+
renderRowItem?: (data: QueryHistoryRowRenderData<T>) => React.ReactNode;
|
|
33
|
+
getRowActions?: (item: T) => QueryHistoryRowAction<T>[];
|
|
34
|
+
onListItemClick?: (item: QueryHistoryItem<T>) => void;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
const block = cn('qp-query-history');
|
|
38
|
+
|
|
39
|
+
export const QueriesHistory = <T extends QueryHistoryRow>({
|
|
40
|
+
title,
|
|
41
|
+
logo,
|
|
42
|
+
search,
|
|
43
|
+
filter,
|
|
44
|
+
items,
|
|
45
|
+
selectedRowId,
|
|
46
|
+
editing,
|
|
47
|
+
comparison,
|
|
48
|
+
visibleFields,
|
|
49
|
+
renderRowItem,
|
|
50
|
+
getRowActions,
|
|
51
|
+
onListItemClick,
|
|
52
|
+
className,
|
|
53
|
+
}: QueriesHistoryProps<T>) => {
|
|
54
|
+
const showSearchResults = Boolean(search.fullSearch && search.value?.trim());
|
|
55
|
+
const rowVariant = showSearchResults ? 'search' : 'default';
|
|
56
|
+
|
|
57
|
+
return (
|
|
58
|
+
<HistoryLayout
|
|
59
|
+
className={block(null, className)}
|
|
60
|
+
title={title || i18n('title_history')}
|
|
61
|
+
logo={logo}
|
|
62
|
+
actions={visibleFields && <FieldsSelector {...visibleFields} />}
|
|
63
|
+
header={
|
|
64
|
+
<HistoryHeader
|
|
65
|
+
search={search.value}
|
|
66
|
+
fullSearch={search.fullSearch}
|
|
67
|
+
hasClear={search.hasClear}
|
|
68
|
+
filter={filter}
|
|
69
|
+
onUpdate={search.onUpdate}
|
|
70
|
+
/>
|
|
71
|
+
}
|
|
72
|
+
footer={
|
|
73
|
+
comparison && (
|
|
74
|
+
<ComparisonActions
|
|
75
|
+
comparison={comparison}
|
|
76
|
+
className={block('comparison-actions')}
|
|
77
|
+
/>
|
|
78
|
+
)
|
|
79
|
+
}
|
|
80
|
+
>
|
|
81
|
+
<HistoryList
|
|
82
|
+
key={getListKey(items, rowVariant)}
|
|
83
|
+
items={items}
|
|
84
|
+
rowVariant={rowVariant}
|
|
85
|
+
selectedRowId={selectedRowId}
|
|
86
|
+
visibleFields={visibleFields}
|
|
87
|
+
editing={editing}
|
|
88
|
+
comparison={comparison}
|
|
89
|
+
renderRowItem={renderRowItem}
|
|
90
|
+
getRowActions={getRowActions}
|
|
91
|
+
showFiltersHint={Boolean(filter)}
|
|
92
|
+
onItemClick={onListItemClick}
|
|
93
|
+
/>
|
|
94
|
+
</HistoryLayout>
|
|
95
|
+
);
|
|
96
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import {QueryHistoryRowRenderData} from '../../types/history';
|
|
3
|
+
import {TutorialHistoryRow} from '../../types/tutorial';
|
|
4
|
+
import {HistoryGroupHeader} from '../../components';
|
|
5
|
+
import {TutorialRow, TutorialSearchRow} from '../../modules';
|
|
6
|
+
|
|
7
|
+
export const TutorialRowContent = <T extends TutorialHistoryRow>({
|
|
8
|
+
item,
|
|
9
|
+
variant,
|
|
10
|
+
}: QueryHistoryRowRenderData<T>) => {
|
|
11
|
+
if ('header' in item) {
|
|
12
|
+
return <HistoryGroupHeader title={item.header} />;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
return variant === 'search' ? <TutorialSearchRow item={item} /> : <TutorialRow item={item} />;
|
|
16
|
+
};
|