@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,69 @@
|
|
|
1
|
+
import React, {KeyboardEvent, useState} from 'react';
|
|
2
|
+
import {QueryHistoryEditingRenderData, QueryHistoryRow} from '../../types/history';
|
|
3
|
+
import {Text, TextInput} from '@gravity-ui/uikit';
|
|
4
|
+
import './HistoryRow.scss';
|
|
5
|
+
|
|
6
|
+
export type Props<T extends QueryHistoryRow> = {
|
|
7
|
+
item: T;
|
|
8
|
+
editing?: QueryHistoryEditingRenderData<T>;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export const HistoryRowTitle = <T extends QueryHistoryRow>({item, editing}: Props<T>) => {
|
|
12
|
+
const [title, setTitle] = useState(item.title);
|
|
13
|
+
const isEditing = Boolean(editing?.enabled);
|
|
14
|
+
const isTitleEmpty = !title.trim();
|
|
15
|
+
|
|
16
|
+
React.useEffect(() => {
|
|
17
|
+
setTitle(item.title);
|
|
18
|
+
}, [item.id, item.title]);
|
|
19
|
+
|
|
20
|
+
const handleKeyDown = (event: KeyboardEvent<HTMLInputElement>) => {
|
|
21
|
+
event.stopPropagation();
|
|
22
|
+
|
|
23
|
+
if (event.key === 'Enter') {
|
|
24
|
+
event.preventDefault();
|
|
25
|
+
const nextTitle = title.trim();
|
|
26
|
+
|
|
27
|
+
if (!nextTitle) {
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
if (nextTitle === item.title) {
|
|
32
|
+
editing?.onCancel?.(item);
|
|
33
|
+
setTitle(item.title);
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
editing?.onSubmit?.(item, nextTitle);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
if (event.key === 'Escape') {
|
|
41
|
+
editing?.onCancel?.(item);
|
|
42
|
+
setTitle(item.title);
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
if (isEditing) {
|
|
47
|
+
return (
|
|
48
|
+
<div
|
|
49
|
+
onClick={(event) => event.stopPropagation()}
|
|
50
|
+
onMouseDown={(event) => event.stopPropagation()}
|
|
51
|
+
>
|
|
52
|
+
<TextInput
|
|
53
|
+
autoFocus
|
|
54
|
+
value={title}
|
|
55
|
+
size="s"
|
|
56
|
+
validationState={isTitleEmpty ? 'invalid' : undefined}
|
|
57
|
+
onKeyDown={handleKeyDown}
|
|
58
|
+
onUpdate={setTitle}
|
|
59
|
+
/>
|
|
60
|
+
</div>
|
|
61
|
+
);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
return (
|
|
65
|
+
<Text variant="subheader-1" ellipsis>
|
|
66
|
+
{item.title}
|
|
67
|
+
</Text>
|
|
68
|
+
);
|
|
69
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {HistoryRow} from './HistoryRow';
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type {Meta, StoryObj} from '@storybook/react';
|
|
3
|
+
import {HistorySearchRow} from './HistorySearchRow';
|
|
4
|
+
import {QueryHistoryRow} 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
|
+
query: 'SELECT *\nFROM `//home/some/table`\nWHERE status = "completed"\nLIMIT 100',
|
|
13
|
+
status: 'completed',
|
|
14
|
+
engine: 'YQL',
|
|
15
|
+
startTime: now - 5 * min,
|
|
16
|
+
endTime: now - min,
|
|
17
|
+
height: 64,
|
|
18
|
+
...overrides,
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
const meta: Meta<typeof HistorySearchRow> = {
|
|
22
|
+
title: 'Modules/HistorySearchRow',
|
|
23
|
+
component: HistorySearchRow,
|
|
24
|
+
tags: ['autodocs'],
|
|
25
|
+
parameters: {
|
|
26
|
+
layout: 'padded',
|
|
27
|
+
},
|
|
28
|
+
decorators: [
|
|
29
|
+
(Story) => (
|
|
30
|
+
<div style={{width: 480}}>
|
|
31
|
+
<Story />
|
|
32
|
+
</div>
|
|
33
|
+
),
|
|
34
|
+
],
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
export default meta;
|
|
38
|
+
type Story = StoryObj<typeof HistorySearchRow>;
|
|
39
|
+
|
|
40
|
+
/** Completed query, basic view */
|
|
41
|
+
export const Completed: Story = {
|
|
42
|
+
args: {
|
|
43
|
+
item: makeRow({status: 'completed'}),
|
|
44
|
+
},
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
/** Row with mode and a private (locked) query */
|
|
48
|
+
export const WithModeAndPrivate: Story = {
|
|
49
|
+
args: {
|
|
50
|
+
item: makeRow({status: 'completed', mode: 'batch', isPrivate: true}),
|
|
51
|
+
},
|
|
52
|
+
};
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import {Flex, Text} from '@gravity-ui/uikit';
|
|
3
|
+
import {QueryHistoryRow, QueryHistoryRowRenderData} from '../../types/history';
|
|
4
|
+
import {
|
|
5
|
+
HistoryPrivateIcon,
|
|
6
|
+
QueryDuration,
|
|
7
|
+
QueryStatusIcon,
|
|
8
|
+
SearchRowLayout,
|
|
9
|
+
} from '../../components';
|
|
10
|
+
import {formatTimeCanonical} from '../../helpers/time';
|
|
11
|
+
import {isFieldVisible} from '../../helpers/isFieldVisible';
|
|
12
|
+
import {resolveMonacoLanguage} from './helpers/resolveMonacoLanguage';
|
|
13
|
+
import './HistorySearchRow.scss';
|
|
14
|
+
import cn from 'bem-cn-lite';
|
|
15
|
+
|
|
16
|
+
const block = cn('qp-history-search-row');
|
|
17
|
+
|
|
18
|
+
export type Props<T extends QueryHistoryRow> = {
|
|
19
|
+
item: T;
|
|
20
|
+
} & Omit<QueryHistoryRowRenderData<T>, 'item' | 'variant'>;
|
|
21
|
+
|
|
22
|
+
export const HistorySearchRow = <T extends QueryHistoryRow>({
|
|
23
|
+
item,
|
|
24
|
+
visibleFields,
|
|
25
|
+
editing,
|
|
26
|
+
comparison,
|
|
27
|
+
}: Props<T>) => {
|
|
28
|
+
const {href, status, startTime, endTime, engine, mode, isPrivate, query} = item;
|
|
29
|
+
|
|
30
|
+
return (
|
|
31
|
+
<SearchRowLayout
|
|
32
|
+
query={query}
|
|
33
|
+
language={resolveMonacoLanguage(engine)}
|
|
34
|
+
href={href}
|
|
35
|
+
disabled={Boolean(editing?.enabled) || Boolean(comparison?.enabled)}
|
|
36
|
+
className={block()}
|
|
37
|
+
header={
|
|
38
|
+
<Flex gap={2} alignItems="center" className={block('header')}>
|
|
39
|
+
<QueryStatusIcon status={status} className={block('icon')} />
|
|
40
|
+
{isFieldVisible(visibleFields, 'duration') && startTime && (
|
|
41
|
+
<QueryDuration status={status} startTime={startTime} endTime={endTime} />
|
|
42
|
+
)}
|
|
43
|
+
{isFieldVisible(visibleFields, 'mode') && mode && (
|
|
44
|
+
<Text color="complementary">{mode}</Text>
|
|
45
|
+
)}
|
|
46
|
+
{isFieldVisible(visibleFields, 'startTime') && startTime && (
|
|
47
|
+
<Text color="complementary" className={block('start-time')}>
|
|
48
|
+
{formatTimeCanonical(startTime)}
|
|
49
|
+
</Text>
|
|
50
|
+
)}
|
|
51
|
+
{isFieldVisible(visibleFields, 'engine') && engine && (
|
|
52
|
+
<Text color="complementary">{engine}</Text>
|
|
53
|
+
)}
|
|
54
|
+
{isFieldVisible(visibleFields, 'isPrivate') && (
|
|
55
|
+
<HistoryPrivateIcon isPrivate={isPrivate} />
|
|
56
|
+
)}
|
|
57
|
+
</Flex>
|
|
58
|
+
}
|
|
59
|
+
/>
|
|
60
|
+
);
|
|
61
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import {MonacoLanguage} from '../../../components';
|
|
2
|
+
|
|
3
|
+
export const resolveMonacoLanguage = (engine?: string) => {
|
|
4
|
+
const normalized = engine?.toLowerCase();
|
|
5
|
+
switch (normalized) {
|
|
6
|
+
case 'chyt': {
|
|
7
|
+
return MonacoLanguage.CHYT;
|
|
8
|
+
}
|
|
9
|
+
case 'spyt': {
|
|
10
|
+
return MonacoLanguage.SPYT;
|
|
11
|
+
}
|
|
12
|
+
case 'ytql': {
|
|
13
|
+
return MonacoLanguage.YTQL;
|
|
14
|
+
}
|
|
15
|
+
default: {
|
|
16
|
+
return MonacoLanguage.YQL;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {HistorySearchRow} from './HistorySearchRow';
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import {List} from '@gravity-ui/uikit';
|
|
3
|
+
import cn from 'bem-cn-lite';
|
|
4
|
+
import {
|
|
5
|
+
BaseHistoryRow,
|
|
6
|
+
QueryHistoryComparisonConfig,
|
|
7
|
+
QueryHistoryEditingConfig,
|
|
8
|
+
QueryHistoryItem,
|
|
9
|
+
QueryHistoryRowAction,
|
|
10
|
+
QueryHistoryRowRenderData,
|
|
11
|
+
QueryHistoryRowVariant,
|
|
12
|
+
QueryHistoryVisibleFieldsConfig,
|
|
13
|
+
} from '../../types/history';
|
|
14
|
+
import {HistoryListEmpty} from '../../components';
|
|
15
|
+
import {prepareRowData} from './helpers/prepareRowData';
|
|
16
|
+
import {SEARCH_ROW_HEIGHT} from '../../constants/row';
|
|
17
|
+
import './RowsList.scss';
|
|
18
|
+
|
|
19
|
+
const block = cn('qp-rows-list');
|
|
20
|
+
|
|
21
|
+
export type RowsListProps<T extends BaseHistoryRow> = {
|
|
22
|
+
items: QueryHistoryItem<T>[];
|
|
23
|
+
selectedRowId?: T['id'];
|
|
24
|
+
rowVariant?: QueryHistoryRowVariant;
|
|
25
|
+
visibleFields?: QueryHistoryVisibleFieldsConfig<T>;
|
|
26
|
+
editing?: QueryHistoryEditingConfig<T>;
|
|
27
|
+
comparison?: QueryHistoryComparisonConfig<T>;
|
|
28
|
+
getRowActions?: (item: T) => QueryHistoryRowAction<T>[];
|
|
29
|
+
renderRow: (data: QueryHistoryRowRenderData<T>) => React.ReactNode;
|
|
30
|
+
showFiltersHint?: boolean;
|
|
31
|
+
className?: string;
|
|
32
|
+
onItemClick?: (item: QueryHistoryItem<T>, index: number) => void;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
export const RowsList = <T extends BaseHistoryRow>({
|
|
36
|
+
items,
|
|
37
|
+
selectedRowId,
|
|
38
|
+
rowVariant = 'default',
|
|
39
|
+
visibleFields,
|
|
40
|
+
editing,
|
|
41
|
+
comparison,
|
|
42
|
+
getRowActions,
|
|
43
|
+
renderRow,
|
|
44
|
+
showFiltersHint,
|
|
45
|
+
className,
|
|
46
|
+
onItemClick,
|
|
47
|
+
}: RowsListProps<T>) => {
|
|
48
|
+
const getItemHeight = (item: QueryHistoryItem<T>) =>
|
|
49
|
+
rowVariant === 'search' && !('header' in item) ? SEARCH_ROW_HEIGHT : item.height;
|
|
50
|
+
|
|
51
|
+
const handleItemClick = (item: QueryHistoryItem<T>, index: number) => {
|
|
52
|
+
if ('header' in item || !comparison?.enabled) {
|
|
53
|
+
onItemClick?.(item, index);
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
const selected = comparison.comparedRowIds.includes(item.id);
|
|
58
|
+
comparison.onChange(item, !selected);
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
if (!items.length) {
|
|
62
|
+
return <HistoryListEmpty showFiltersHint={showFiltersHint} className={className} />;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
return (
|
|
66
|
+
<List
|
|
67
|
+
className={block(null, className)}
|
|
68
|
+
filterable={false}
|
|
69
|
+
items={items}
|
|
70
|
+
itemHeight={getItemHeight}
|
|
71
|
+
itemsHeight={(listItems) =>
|
|
72
|
+
listItems.reduce((totalHeight, item) => totalHeight + getItemHeight(item), 0)
|
|
73
|
+
}
|
|
74
|
+
renderItem={(item, isActive, index) =>
|
|
75
|
+
renderRow(
|
|
76
|
+
prepareRowData({
|
|
77
|
+
item,
|
|
78
|
+
isActive,
|
|
79
|
+
index,
|
|
80
|
+
variant: rowVariant,
|
|
81
|
+
visibleFields,
|
|
82
|
+
editing,
|
|
83
|
+
comparison,
|
|
84
|
+
getRowActions,
|
|
85
|
+
}),
|
|
86
|
+
)
|
|
87
|
+
}
|
|
88
|
+
selectedItemIndex={selectedRowId}
|
|
89
|
+
onItemClick={handleItemClick}
|
|
90
|
+
/>
|
|
91
|
+
);
|
|
92
|
+
};
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import {
|
|
2
|
+
BaseHistoryRow,
|
|
3
|
+
QueryHistoryComparisonConfig,
|
|
4
|
+
QueryHistoryEditingConfig,
|
|
5
|
+
QueryHistoryItem,
|
|
6
|
+
QueryHistoryRowAction,
|
|
7
|
+
QueryHistoryRowRenderData,
|
|
8
|
+
QueryHistoryRowVariant,
|
|
9
|
+
QueryHistoryVisibleFieldsConfig,
|
|
10
|
+
} from '../../../types/history';
|
|
11
|
+
|
|
12
|
+
type Props<T extends BaseHistoryRow> = {
|
|
13
|
+
item: QueryHistoryItem<T>;
|
|
14
|
+
isActive: boolean;
|
|
15
|
+
index: number;
|
|
16
|
+
variant: QueryHistoryRowVariant;
|
|
17
|
+
visibleFields?: QueryHistoryVisibleFieldsConfig<T>;
|
|
18
|
+
editing?: QueryHistoryEditingConfig<T>;
|
|
19
|
+
comparison?: QueryHistoryComparisonConfig<T>;
|
|
20
|
+
getRowActions?: (item: T) => QueryHistoryRowAction<T>[];
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export const prepareRowData = <T extends BaseHistoryRow>({
|
|
24
|
+
item,
|
|
25
|
+
isActive,
|
|
26
|
+
index,
|
|
27
|
+
variant,
|
|
28
|
+
visibleFields,
|
|
29
|
+
editing,
|
|
30
|
+
comparison,
|
|
31
|
+
getRowActions,
|
|
32
|
+
}: Props<T>): QueryHistoryRowRenderData<T> => {
|
|
33
|
+
const isRow = !('header' in item);
|
|
34
|
+
const actions = isRow && getRowActions ? getRowActions(item) : undefined;
|
|
35
|
+
const editingData =
|
|
36
|
+
isRow && editing
|
|
37
|
+
? {
|
|
38
|
+
enabled: editing.rowId === item.id,
|
|
39
|
+
onSubmit: editing.onSubmit,
|
|
40
|
+
onCancel: editing.onCancel,
|
|
41
|
+
}
|
|
42
|
+
: undefined;
|
|
43
|
+
const comparisonData =
|
|
44
|
+
isRow && comparison && comparison.enabled
|
|
45
|
+
? {
|
|
46
|
+
enabled: true,
|
|
47
|
+
checked: comparison.comparedRowIds.includes(item.id),
|
|
48
|
+
}
|
|
49
|
+
: undefined;
|
|
50
|
+
|
|
51
|
+
return {
|
|
52
|
+
item,
|
|
53
|
+
index,
|
|
54
|
+
isActive,
|
|
55
|
+
variant,
|
|
56
|
+
visibleFields,
|
|
57
|
+
actions,
|
|
58
|
+
editing: editingData,
|
|
59
|
+
comparison: comparisonData,
|
|
60
|
+
};
|
|
61
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type {Meta, StoryObj} from '@storybook/react';
|
|
3
|
+
import {TutorialRow} from './TutorialRow';
|
|
4
|
+
import {TutorialHistoryRow} from '../../types/tutorial';
|
|
5
|
+
|
|
6
|
+
const makeRow = (overrides: Partial<TutorialHistoryRow>): TutorialHistoryRow => ({
|
|
7
|
+
id: 1,
|
|
8
|
+
title: 'Getting started with YQL',
|
|
9
|
+
height: 28,
|
|
10
|
+
...overrides,
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
const meta: Meta<typeof TutorialRow> = {
|
|
14
|
+
title: 'Modules/TutorialRow',
|
|
15
|
+
component: TutorialRow,
|
|
16
|
+
tags: ['autodocs'],
|
|
17
|
+
parameters: {
|
|
18
|
+
layout: 'padded',
|
|
19
|
+
},
|
|
20
|
+
args: {
|
|
21
|
+
item: makeRow({}),
|
|
22
|
+
},
|
|
23
|
+
decorators: [
|
|
24
|
+
(Story) => (
|
|
25
|
+
<div style={{width: 380}}>
|
|
26
|
+
<Story />
|
|
27
|
+
</div>
|
|
28
|
+
),
|
|
29
|
+
],
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
export default meta;
|
|
33
|
+
type Story = StoryObj<typeof TutorialRow>;
|
|
34
|
+
|
|
35
|
+
/** Default tutorial row */
|
|
36
|
+
export const Default: Story = {};
|
|
37
|
+
|
|
38
|
+
/** Row with a link */
|
|
39
|
+
export const WithHref: Story = {
|
|
40
|
+
args: {
|
|
41
|
+
item: makeRow({href: '#'}),
|
|
42
|
+
},
|
|
43
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import {Flex, Text} from '@gravity-ui/uikit';
|
|
3
|
+
import {TutorialHistoryRow} from '../../types/tutorial';
|
|
4
|
+
import {RowLink} from '../../components';
|
|
5
|
+
import cn from 'bem-cn-lite';
|
|
6
|
+
import './TutorialRow.scss';
|
|
7
|
+
|
|
8
|
+
const block = cn('qp-tutorial-row');
|
|
9
|
+
|
|
10
|
+
export type TutorialRowProps<T extends TutorialHistoryRow = TutorialHistoryRow> = {
|
|
11
|
+
item: T;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export const TutorialRow = <T extends TutorialHistoryRow>({item}: TutorialRowProps<T>) => {
|
|
15
|
+
const {href, id, title} = item;
|
|
16
|
+
|
|
17
|
+
return (
|
|
18
|
+
<RowLink href={href} className={block()}>
|
|
19
|
+
<Flex gap={1} alignItems="center" className={block('content')}>
|
|
20
|
+
<Text color="secondary">{id}.</Text>
|
|
21
|
+
<Text ellipsis>{title}</Text>
|
|
22
|
+
</Flex>
|
|
23
|
+
</RowLink>
|
|
24
|
+
);
|
|
25
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type {Meta, StoryObj} from '@storybook/react';
|
|
3
|
+
import {TutorialSearchRow} from './TutorialSearchRow';
|
|
4
|
+
import {TutorialHistoryRow} from '../../types/tutorial';
|
|
5
|
+
|
|
6
|
+
const QUERY = `use test;
|
|
7
|
+
|
|
8
|
+
SELECT
|
|
9
|
+
"test_session" AS session_id,
|
|
10
|
+
"test_task" AS task_id,
|
|
11
|
+
SUBSTRING("test", 1, 1) AS truncated_char`;
|
|
12
|
+
|
|
13
|
+
const makeRow = (overrides: Partial<TutorialHistoryRow>): TutorialHistoryRow => ({
|
|
14
|
+
id: 1,
|
|
15
|
+
title: 'Getting started with YQL',
|
|
16
|
+
query: QUERY,
|
|
17
|
+
height: 110,
|
|
18
|
+
...overrides,
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
const meta: Meta<typeof TutorialSearchRow> = {
|
|
22
|
+
title: 'Modules/TutorialSearchRow',
|
|
23
|
+
component: TutorialSearchRow,
|
|
24
|
+
tags: ['autodocs'],
|
|
25
|
+
parameters: {
|
|
26
|
+
layout: 'padded',
|
|
27
|
+
},
|
|
28
|
+
args: {
|
|
29
|
+
item: makeRow({}),
|
|
30
|
+
},
|
|
31
|
+
decorators: [
|
|
32
|
+
(Story) => (
|
|
33
|
+
<div style={{width: 420}}>
|
|
34
|
+
<Story />
|
|
35
|
+
</div>
|
|
36
|
+
),
|
|
37
|
+
],
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
export default meta;
|
|
41
|
+
type Story = StoryObj<typeof TutorialSearchRow>;
|
|
42
|
+
|
|
43
|
+
/** Default tutorial search row */
|
|
44
|
+
export const Default: Story = {};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import {Flex, Text} from '@gravity-ui/uikit';
|
|
3
|
+
import {TutorialHistoryRow} from '../../types/tutorial';
|
|
4
|
+
import {MonacoLanguage, SearchRowLayout} from '../../components';
|
|
5
|
+
import './TutorialSearchRow.scss';
|
|
6
|
+
import cn from 'bem-cn-lite';
|
|
7
|
+
|
|
8
|
+
const block = cn('qp-tutorial-search-row');
|
|
9
|
+
|
|
10
|
+
export type TutorialSearchRowProps<T extends TutorialHistoryRow = TutorialHistoryRow> = {
|
|
11
|
+
item: T;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export const TutorialSearchRow = <T extends TutorialHistoryRow>({
|
|
15
|
+
item,
|
|
16
|
+
}: TutorialSearchRowProps<T>) => {
|
|
17
|
+
const {href, id, title, query} = item;
|
|
18
|
+
|
|
19
|
+
return (
|
|
20
|
+
<SearchRowLayout
|
|
21
|
+
query={query}
|
|
22
|
+
language={MonacoLanguage.YQL}
|
|
23
|
+
href={href}
|
|
24
|
+
className={block()}
|
|
25
|
+
header={
|
|
26
|
+
<Flex gap={2} alignItems="center" className={block('header')}>
|
|
27
|
+
<Text color="secondary">{id}.</Text>
|
|
28
|
+
<Text ellipsis>{title}</Text>
|
|
29
|
+
</Flex>
|
|
30
|
+
}
|
|
31
|
+
/>
|
|
32
|
+
);
|
|
33
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export {HistoryHeader} from './HistoryHeader';
|
|
2
|
+
export {HistoryLayout} from './HistoryLayout';
|
|
3
|
+
export type {HistoryLayoutProps} from './HistoryLayout';
|
|
4
|
+
export {RowsList} from './RowsList';
|
|
5
|
+
export type {RowsListProps} from './RowsList';
|
|
6
|
+
export {HistoryRow} from './HistoryRow';
|
|
7
|
+
export {HistoryList} from './HistoryList';
|
|
8
|
+
export type {HistoryListProps} from './HistoryList';
|
|
9
|
+
export {HistorySearchRow} from './HistorySearchRow';
|
|
10
|
+
export {TutorialRow} from './TutorialRow';
|
|
11
|
+
export type {TutorialRowProps} from './TutorialRow';
|
|
12
|
+
export {TutorialSearchRow} from './TutorialSearchRow';
|
|
13
|
+
export type {TutorialSearchRowProps} from './TutorialSearchRow';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
declare module '*.css' {
|
|
2
|
+
const classes: {readonly [key: string]: string};
|
|
3
|
+
export default classes;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
declare module '*.scss' {
|
|
7
|
+
const classes: {readonly [key: string]: string};
|
|
8
|
+
export default classes;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
declare module '*.svg' {
|
|
12
|
+
import type {FC} from 'react';
|
|
13
|
+
const ReactComponent: FC<React.SVGProps<SVGSVGElement>>;
|
|
14
|
+
export default ReactComponent;
|
|
15
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export type BaseFormField<T extends string = string, Value = any, Extra extends object = {}> = {
|
|
2
|
+
id: string;
|
|
3
|
+
type: T;
|
|
4
|
+
title?: string;
|
|
5
|
+
initialValue?: Value;
|
|
6
|
+
} & Extra;
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Registry of props for registered form field types.
|
|
10
|
+
*
|
|
11
|
+
* Each field component should augment this interface via
|
|
12
|
+
* module augmentation in its own file, for example:
|
|
13
|
+
*
|
|
14
|
+
* ```ts
|
|
15
|
+
* declare module '../../types/forms' {
|
|
16
|
+
* interface FormFieldPropsRegistry {
|
|
17
|
+
* switch: ComponentProps<typeof SwitchField>;
|
|
18
|
+
* }
|
|
19
|
+
* }
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
* This allows the `RegisteredFormFields` union to be extended
|
|
23
|
+
* automatically without modifying SimpleForm when new field types are added.
|
|
24
|
+
*/
|
|
25
|
+
export interface FormFieldPropsRegistry {}
|
|
26
|
+
|
|
27
|
+
export type RegisteredFormFields = {
|
|
28
|
+
[K in keyof FormFieldPropsRegistry]: BaseFormField<
|
|
29
|
+
K & string,
|
|
30
|
+
FormFieldPropsRegistry[K] extends {value?: infer V} ? V : any,
|
|
31
|
+
Omit<FormFieldPropsRegistry[K], 'value' | 'onChange' | 'title'>
|
|
32
|
+
>;
|
|
33
|
+
}[keyof FormFieldPropsRegistry];
|