@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,45 @@
|
|
|
1
|
+
import React, {FC, ReactNode} from 'react';
|
|
2
|
+
import {Flex} from '@gravity-ui/uikit';
|
|
3
|
+
import cn from 'bem-cn-lite';
|
|
4
|
+
import {MonacoEditor} from '../MonacoEditor';
|
|
5
|
+
import {RowLink} from '../RowLink';
|
|
6
|
+
import {fitQueryToVisibleLines} from './helpers/fitQueryToVisibleLines';
|
|
7
|
+
import {MONACO_CONFIG} from './helpers/monacoConfig';
|
|
8
|
+
import './SearchRowLayout.scss';
|
|
9
|
+
|
|
10
|
+
const block = cn('qp-search-row-layout');
|
|
11
|
+
|
|
12
|
+
export type SearchRowLayoutProps = {
|
|
13
|
+
header: ReactNode;
|
|
14
|
+
query?: string;
|
|
15
|
+
language: string;
|
|
16
|
+
href?: string;
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
className?: string;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export const SearchRowLayout: FC<SearchRowLayoutProps> = ({
|
|
22
|
+
header,
|
|
23
|
+
query,
|
|
24
|
+
language,
|
|
25
|
+
href,
|
|
26
|
+
disabled,
|
|
27
|
+
className,
|
|
28
|
+
}) => {
|
|
29
|
+
return (
|
|
30
|
+
<RowLink href={href} disabled={disabled} className={block(null, className)}>
|
|
31
|
+
<Flex direction="column" gap={2} className={block('content')}>
|
|
32
|
+
<Flex gap={2} alignItems="center">
|
|
33
|
+
{header}
|
|
34
|
+
</Flex>
|
|
35
|
+
<MonacoEditor
|
|
36
|
+
value={fitQueryToVisibleLines(query)}
|
|
37
|
+
language={language}
|
|
38
|
+
readOnly
|
|
39
|
+
monacoConfig={MONACO_CONFIG}
|
|
40
|
+
className={block('monaco')}
|
|
41
|
+
/>
|
|
42
|
+
</Flex>
|
|
43
|
+
</RowLink>
|
|
44
|
+
);
|
|
45
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
const MONACO_VISIBLE_LINES = 4;
|
|
2
|
+
|
|
3
|
+
export const fitQueryToVisibleLines = (query = '') => {
|
|
4
|
+
const lines = query.split(/\r\n|\r|\n/).slice(0, MONACO_VISIBLE_LINES);
|
|
5
|
+
while (lines.length < MONACO_VISIBLE_LINES) {
|
|
6
|
+
lines.push('');
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
return lines.join('\n');
|
|
10
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type {MonacoEditorConfig} from '../../MonacoEditor';
|
|
2
|
+
|
|
3
|
+
const MONACO_LINE_HEIGHT = 18;
|
|
4
|
+
|
|
5
|
+
export const MONACO_CONFIG: MonacoEditorConfig = {
|
|
6
|
+
contextmenu: false,
|
|
7
|
+
fontSize: 12,
|
|
8
|
+
lineHeight: MONACO_LINE_HEIGHT,
|
|
9
|
+
renderWhitespace: 'boundary',
|
|
10
|
+
minimap: {
|
|
11
|
+
enabled: false,
|
|
12
|
+
},
|
|
13
|
+
wordWrap: 'off',
|
|
14
|
+
scrollBeyondLastLine: false,
|
|
15
|
+
overviewRulerLanes: 0,
|
|
16
|
+
lineNumbersMinChars: 2,
|
|
17
|
+
glyphMargin: false,
|
|
18
|
+
scrollbar: {
|
|
19
|
+
vertical: 'hidden',
|
|
20
|
+
verticalHasArrows: false,
|
|
21
|
+
horizontal: 'auto',
|
|
22
|
+
useShadows: false,
|
|
23
|
+
alwaysConsumeMouseWheel: false,
|
|
24
|
+
},
|
|
25
|
+
};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import React, {FC} from 'react';
|
|
2
|
+
import {Checkbox, Flex, Text} from '@gravity-ui/uikit';
|
|
3
|
+
|
|
4
|
+
type CheckboxGroupItem = {id: string; title?: string};
|
|
5
|
+
|
|
6
|
+
type CheckboxGroupFieldProps = {
|
|
7
|
+
value: string[];
|
|
8
|
+
items: CheckboxGroupItem[];
|
|
9
|
+
title?: string;
|
|
10
|
+
onChange: (value: string[]) => void;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const CheckboxGroupField: FC<CheckboxGroupFieldProps> = ({
|
|
14
|
+
value = [],
|
|
15
|
+
items,
|
|
16
|
+
title,
|
|
17
|
+
onChange,
|
|
18
|
+
}) => {
|
|
19
|
+
const handleChange = (id: string, isChacked: boolean) => {
|
|
20
|
+
const result = isChacked ? [...value, id] : value.filter((i) => i !== id);
|
|
21
|
+
onChange(result);
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
return (
|
|
25
|
+
<Flex direction="column" gap={4}>
|
|
26
|
+
<Text variant="body-1">{title}</Text>
|
|
27
|
+
<Flex gap={4}>
|
|
28
|
+
{items.map((item) => {
|
|
29
|
+
const {id, title} = item;
|
|
30
|
+
const checked = value.includes(id);
|
|
31
|
+
|
|
32
|
+
return (
|
|
33
|
+
<Checkbox
|
|
34
|
+
key={id}
|
|
35
|
+
checked={checked}
|
|
36
|
+
onUpdate={(isChacked) => {
|
|
37
|
+
handleChange(id, isChacked);
|
|
38
|
+
}}
|
|
39
|
+
>
|
|
40
|
+
{title}
|
|
41
|
+
</Checkbox>
|
|
42
|
+
);
|
|
43
|
+
})}
|
|
44
|
+
</Flex>
|
|
45
|
+
</Flex>
|
|
46
|
+
);
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
declare module '../../types/forms' {
|
|
50
|
+
interface FormFieldPropsRegistry {
|
|
51
|
+
checkboxGroup: CheckboxGroupFieldProps;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import React, {FC} from 'react';
|
|
2
|
+
import {Flex, Text} from '@gravity-ui/uikit';
|
|
3
|
+
import {DatePicker, RangeValue} from '@gravity-ui/date-components';
|
|
4
|
+
import {DateTime} from '@gravity-ui/date-utils';
|
|
5
|
+
|
|
6
|
+
type DateValue = DateTime | null;
|
|
7
|
+
|
|
8
|
+
export type RangeDatePickerFieldProps = {
|
|
9
|
+
value: RangeValue<DateValue>;
|
|
10
|
+
title?: string;
|
|
11
|
+
onChange: (value: RangeValue<DateValue>) => void;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
const DATE_FORMAT = 'YYYY-MM-DD';
|
|
15
|
+
|
|
16
|
+
export const RangeDatePickerField: FC<RangeDatePickerFieldProps> = ({value, title, onChange}) => {
|
|
17
|
+
const handleStartChange = (newValue: DateValue) => {
|
|
18
|
+
onChange({...value, start: newValue});
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
const handleEndChange = (newValue: DateValue) => {
|
|
22
|
+
onChange({...value, end: newValue});
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
return (
|
|
26
|
+
<Flex direction="column" gap={2}>
|
|
27
|
+
{title && <Text variant="body-1">{title}</Text>}
|
|
28
|
+
<Flex gap={2}>
|
|
29
|
+
<DatePicker
|
|
30
|
+
value={value?.start ?? null}
|
|
31
|
+
onUpdate={handleStartChange}
|
|
32
|
+
format={DATE_FORMAT}
|
|
33
|
+
maxValue={value?.end ?? undefined}
|
|
34
|
+
/>
|
|
35
|
+
<DatePicker
|
|
36
|
+
value={value?.end ?? null}
|
|
37
|
+
onUpdate={handleEndChange}
|
|
38
|
+
format={DATE_FORMAT}
|
|
39
|
+
minValue={value?.start ?? undefined}
|
|
40
|
+
/>
|
|
41
|
+
</Flex>
|
|
42
|
+
</Flex>
|
|
43
|
+
);
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
declare module '../../types/forms' {
|
|
47
|
+
interface FormFieldPropsRegistry {
|
|
48
|
+
rangeDatePicker: RangeDatePickerFieldProps;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React, {FC} from 'react';
|
|
2
|
+
import {Flex, Select, SelectProps, Text} from '@gravity-ui/uikit';
|
|
3
|
+
|
|
4
|
+
export type SelectFieldProps = {
|
|
5
|
+
value: SelectProps['value'];
|
|
6
|
+
options: SelectProps['options'];
|
|
7
|
+
title?: string;
|
|
8
|
+
onChange: (value: string[]) => void;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export const SelectField: FC<SelectFieldProps> = ({value, options, title, onChange}) => {
|
|
12
|
+
return (
|
|
13
|
+
<Flex direction="column" gap={2}>
|
|
14
|
+
<Text>{title}</Text>
|
|
15
|
+
<Select value={value} options={options} onUpdate={onChange} />
|
|
16
|
+
</Flex>
|
|
17
|
+
);
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
declare module '../../types/forms' {
|
|
21
|
+
interface FormFieldPropsRegistry {
|
|
22
|
+
select: SelectFieldProps;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import type {Meta, StoryObj} from '@storybook/react';
|
|
2
|
+
import {FormField, SimpleForm} from './SimpleForm';
|
|
3
|
+
|
|
4
|
+
const meta: Meta<typeof SimpleForm> = {
|
|
5
|
+
title: 'Components/SimpleForm',
|
|
6
|
+
component: SimpleForm,
|
|
7
|
+
tags: ['autodocs'],
|
|
8
|
+
parameters: {
|
|
9
|
+
layout: 'padded',
|
|
10
|
+
},
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export default meta;
|
|
14
|
+
type Story = StoryObj<typeof SimpleForm>;
|
|
15
|
+
|
|
16
|
+
const fields: FormField[] = [
|
|
17
|
+
{id: 'onlyMine', type: 'switch', title: 'My queries only', initialValue: true},
|
|
18
|
+
{id: 'range', type: 'rangeDatePicker', title: 'Period'},
|
|
19
|
+
{
|
|
20
|
+
id: 'dialect',
|
|
21
|
+
type: 'checkboxGroup',
|
|
22
|
+
title: 'Dialect',
|
|
23
|
+
initialValue: [],
|
|
24
|
+
items: [
|
|
25
|
+
{id: 'yql', title: 'YQL'},
|
|
26
|
+
{id: 'sql', title: 'SQL'},
|
|
27
|
+
],
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
id: 'author',
|
|
31
|
+
type: 'select',
|
|
32
|
+
title: 'Author',
|
|
33
|
+
initialValue: [],
|
|
34
|
+
options: [
|
|
35
|
+
{value: 'alice', content: 'Alice'},
|
|
36
|
+
{value: 'bob', content: 'Bob'},
|
|
37
|
+
],
|
|
38
|
+
},
|
|
39
|
+
];
|
|
40
|
+
|
|
41
|
+
/** Basic set of form fields (uncontrolled mode with default values from each field's initialValue) */
|
|
42
|
+
export const Default: Story = {
|
|
43
|
+
args: {
|
|
44
|
+
fields,
|
|
45
|
+
onValuesChange: (values) => console.info('onValuesChange', values),
|
|
46
|
+
},
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
/** Form with explicit initial values (initialValues), overriding fields' initialValue */
|
|
50
|
+
export const WithInitialValues: Story = {
|
|
51
|
+
args: {
|
|
52
|
+
fields,
|
|
53
|
+
initialValues: {onlyMine: false, dialect: ['sql']},
|
|
54
|
+
onValuesChange: (values) => console.info('onValuesChange', values),
|
|
55
|
+
},
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
/** Controlled mode: values are fully managed from outside via values */
|
|
59
|
+
export const Controlled: Story = {
|
|
60
|
+
args: {
|
|
61
|
+
fields,
|
|
62
|
+
values: {onlyMine: true, dialect: ['yql', 'sql']},
|
|
63
|
+
onValuesChange: (values) => console.info('onValuesChange', values),
|
|
64
|
+
},
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
/** Only a single switch field */
|
|
68
|
+
export const SwitchOnly: Story = {
|
|
69
|
+
args: {
|
|
70
|
+
fields: [{id: 'onlyMine', type: 'switch', title: 'My queries only', initialValue: true}],
|
|
71
|
+
},
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
/** Only a date range picker */
|
|
75
|
+
export const RangeDatePickerOnly: Story = {
|
|
76
|
+
args: {
|
|
77
|
+
fields: [{id: 'range', type: 'rangeDatePicker', title: 'Period'}],
|
|
78
|
+
},
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
/** Only a checkbox group */
|
|
82
|
+
export const CheckboxGroupOnly: Story = {
|
|
83
|
+
args: {
|
|
84
|
+
fields: [
|
|
85
|
+
{
|
|
86
|
+
id: 'dialect',
|
|
87
|
+
type: 'checkboxGroup',
|
|
88
|
+
title: 'Dialect',
|
|
89
|
+
initialValue: ['yql'],
|
|
90
|
+
items: [
|
|
91
|
+
{id: 'yql', title: 'YQL'},
|
|
92
|
+
{id: 'sql', title: 'SQL'},
|
|
93
|
+
],
|
|
94
|
+
},
|
|
95
|
+
],
|
|
96
|
+
},
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
/** Only a select field */
|
|
100
|
+
export const SelectOnly: Story = {
|
|
101
|
+
args: {
|
|
102
|
+
fields: [
|
|
103
|
+
{
|
|
104
|
+
id: 'author',
|
|
105
|
+
type: 'select',
|
|
106
|
+
title: 'Author',
|
|
107
|
+
initialValue: ['alice'],
|
|
108
|
+
options: [
|
|
109
|
+
{value: 'alice', content: 'Alice'},
|
|
110
|
+
{value: 'bob', content: 'Bob'},
|
|
111
|
+
],
|
|
112
|
+
},
|
|
113
|
+
],
|
|
114
|
+
},
|
|
115
|
+
};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import React, {useMemo, useState} from 'react';
|
|
2
|
+
import {RegisteredFormFields} from '../../types/forms';
|
|
3
|
+
import {getControl, getInitialValues, registerFormControl} from './helpers';
|
|
4
|
+
import {SwitchField} from './SwitchField';
|
|
5
|
+
import {RangeDatePickerField} from './RangeDatePickerField';
|
|
6
|
+
import {Flex} from '@gravity-ui/uikit';
|
|
7
|
+
import {CheckboxGroupField} from './CheckboxGroupField';
|
|
8
|
+
import {SelectField} from './SelectField';
|
|
9
|
+
|
|
10
|
+
export type FormField = RegisteredFormFields;
|
|
11
|
+
|
|
12
|
+
type FormValues = Record<string, any>;
|
|
13
|
+
|
|
14
|
+
type Props = {
|
|
15
|
+
fields: FormField[];
|
|
16
|
+
values?: FormValues;
|
|
17
|
+
initialValues?: FormValues;
|
|
18
|
+
onValuesChange?: (values: FormValues) => void;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export const SimpleForm: React.FC<Props> = ({fields, values, initialValues, onValuesChange}) => {
|
|
22
|
+
const isControlled = values !== undefined;
|
|
23
|
+
|
|
24
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
25
|
+
const initial = useMemo(() => getInitialValues(fields, initialValues), []);
|
|
26
|
+
const [internalValues, setInternalValues] = useState<FormValues>(initial);
|
|
27
|
+
|
|
28
|
+
const currentValues = isControlled ? values : internalValues;
|
|
29
|
+
|
|
30
|
+
const handleFieldChange = (name: string, value: unknown) => {
|
|
31
|
+
const nextValues = {...currentValues, [name]: value};
|
|
32
|
+
|
|
33
|
+
if (!isControlled) {
|
|
34
|
+
setInternalValues(nextValues);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
onValuesChange?.(nextValues);
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
return (
|
|
41
|
+
<Flex direction="column" gap={4}>
|
|
42
|
+
{fields.map((field) => {
|
|
43
|
+
const FieldComponent = getControl(field.type);
|
|
44
|
+
|
|
45
|
+
const {id, type: _type, title, initialValue: _initialValue, ...extraProps} = field;
|
|
46
|
+
|
|
47
|
+
return (
|
|
48
|
+
<FieldComponent
|
|
49
|
+
key={id}
|
|
50
|
+
title={title}
|
|
51
|
+
value={currentValues[id]}
|
|
52
|
+
onChange={(value: unknown) => handleFieldChange(id, value)}
|
|
53
|
+
{...extraProps}
|
|
54
|
+
/>
|
|
55
|
+
);
|
|
56
|
+
})}
|
|
57
|
+
</Flex>
|
|
58
|
+
);
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
// base fields
|
|
62
|
+
registerFormControl('switch', SwitchField);
|
|
63
|
+
registerFormControl('rangeDatePicker', RangeDatePickerField);
|
|
64
|
+
registerFormControl('checkboxGroup', CheckboxGroupField);
|
|
65
|
+
registerFormControl('select', SelectField);
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React, {FC} from 'react';
|
|
2
|
+
import {Flex, Switch, Text} from '@gravity-ui/uikit';
|
|
3
|
+
|
|
4
|
+
export type SwitchFieldProps = {
|
|
5
|
+
value: boolean;
|
|
6
|
+
title?: string;
|
|
7
|
+
onChange: (value: boolean) => void;
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export const SwitchField: FC<SwitchFieldProps> = ({title, value, onChange}) => {
|
|
11
|
+
return (
|
|
12
|
+
<Flex gap={2}>
|
|
13
|
+
<Switch checked={value} onUpdate={onChange} />
|
|
14
|
+
{title && <Text variant="body-1">{title}</Text>}
|
|
15
|
+
</Flex>
|
|
16
|
+
);
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
declare module '../../types/forms' {
|
|
20
|
+
interface FormFieldPropsRegistry {
|
|
21
|
+
switch: SwitchFieldProps;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import {ComponentType} from 'react';
|
|
2
|
+
|
|
3
|
+
const controls = new Map<string, ComponentType<any>>();
|
|
4
|
+
|
|
5
|
+
export function registerFormControl<K extends string, P extends {value?: any; onChange?: any}>(
|
|
6
|
+
controlId: K,
|
|
7
|
+
controlComponent: ComponentType<P>,
|
|
8
|
+
) {
|
|
9
|
+
if (controls.has(controlId)) {
|
|
10
|
+
console.warn(`Control '${controlId}' is already registered in SimpleForm!`);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
controls.set(controlId, controlComponent);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export function getControl(type: string) {
|
|
17
|
+
const Control = controls.get(type);
|
|
18
|
+
|
|
19
|
+
if (!Control) {
|
|
20
|
+
throw new Error(`Control '${type}' is not registered in SimpleForm!`);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
return Control;
|
|
24
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import {FormField} from '../SimpleForm';
|
|
2
|
+
|
|
3
|
+
type FormValues = Record<string, any>;
|
|
4
|
+
|
|
5
|
+
export function getInitialValues(fields: FormField[], initialValues?: FormValues): FormValues {
|
|
6
|
+
return {
|
|
7
|
+
...Object.fromEntries(fields.map((field) => [field.id, field.initialValue])),
|
|
8
|
+
...initialValues,
|
|
9
|
+
};
|
|
10
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export {SimpleForm} from './SimpleForm';
|
|
2
|
+
export type {FormField} from './SimpleForm';
|
|
3
|
+
export {SwitchField} from './SwitchField';
|
|
4
|
+
export type {SwitchFieldProps} from './SwitchField';
|
|
5
|
+
export {RangeDatePickerField} from './RangeDatePickerField';
|
|
6
|
+
export type {RangeDatePickerFieldProps} from './RangeDatePickerField';
|
|
7
|
+
export {registerFormControl} from './helpers';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export {QueryStatusIcon} from './QueryStatusIcon';
|
|
2
|
+
export {QueryDuration} from './QueryDuration';
|
|
3
|
+
export {HistoryFilter} from './HistoryFilter';
|
|
4
|
+
export {HistoryPrivateIcon} from './HistoryPrivateIcon';
|
|
5
|
+
export {FieldsSelector} from './FieldsSelector';
|
|
6
|
+
export {HistoryGroupHeader} from './HistoryGroupHeader';
|
|
7
|
+
export {HistoryListEmpty} from './HistoryListEmpty';
|
|
8
|
+
export type {HistoryListEmptyProps} from './HistoryListEmpty';
|
|
9
|
+
export {RowLink} from './RowLink';
|
|
10
|
+
export type {RowLinkProps} from './RowLink';
|
|
11
|
+
export {SearchRowLayout} from './SearchRowLayout';
|
|
12
|
+
export type {SearchRowLayoutProps} from './SearchRowLayout';
|
|
13
|
+
export {MonacoEditor} from './MonacoEditor';
|
|
14
|
+
export type {MonacoEditorConfig} from './MonacoEditor';
|
|
15
|
+
export {
|
|
16
|
+
MonacoLanguage,
|
|
17
|
+
YT_DARK_HC_MONACO_THEME,
|
|
18
|
+
YT_DARK_MONACO_THEME,
|
|
19
|
+
YT_LIGHT_HC_MONACO_THEME,
|
|
20
|
+
YT_LIGHT_MONACO_THEME,
|
|
21
|
+
MONACO_THEME_BY_UI,
|
|
22
|
+
} from './MonacoEditor';
|
|
23
|
+
export type {MonacoThemeName} from './MonacoEditor';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const SEARCH_ROW_HEIGHT = 110;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import {BaseHistoryRow, QueryHistoryItem, QueryHistoryRowVariant} from '../types/history';
|
|
2
|
+
|
|
3
|
+
export const getListKey = <T extends BaseHistoryRow>(
|
|
4
|
+
items: QueryHistoryItem<T>[],
|
|
5
|
+
variant: QueryHistoryRowVariant,
|
|
6
|
+
): string => {
|
|
7
|
+
const itemsKey = items
|
|
8
|
+
.map((item) => ('header' in item ? `h:${item.header}` : `r:${item.id}`))
|
|
9
|
+
.join(',');
|
|
10
|
+
|
|
11
|
+
return `${variant}:${itemsKey}`;
|
|
12
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import {QueryHistoryFieldKey, QueryHistoryRow} from '../types/history';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* A field is visible either when no `visibleFields` config is provided
|
|
5
|
+
* (the consumer doesn't opt into the feature — everything is shown), or when
|
|
6
|
+
* the field key is explicitly included in `visibleFields.value`.
|
|
7
|
+
*
|
|
8
|
+
* `visibleFields` is accepted loosely as `{value: string[]}` (rather than the
|
|
9
|
+
* generic `QueryHistoryVisibleFieldsConfig<T>`) so this helper works for any
|
|
10
|
+
* `T extends QueryHistoryRow` without fighting TS variance on generic key
|
|
11
|
+
* unions; `field` still uses `QueryHistoryFieldKey<QueryHistoryRow>` to keep
|
|
12
|
+
* typo-protection for the built-in fields checked by the row renderers.
|
|
13
|
+
*/
|
|
14
|
+
export const isFieldVisible = (
|
|
15
|
+
visibleFields: {value: string[]} | undefined,
|
|
16
|
+
field: QueryHistoryFieldKey<QueryHistoryRow>,
|
|
17
|
+
): boolean => {
|
|
18
|
+
return visibleFields === undefined || visibleFields.value.includes(field);
|
|
19
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import {DateTime, dateTime, dateTimeParse} from '@gravity-ui/date-utils';
|
|
2
|
+
|
|
3
|
+
type Date = DateTime | string | number | undefined;
|
|
4
|
+
|
|
5
|
+
export const formatTime = (date: Date) => {
|
|
6
|
+
return dateTimeParse(date)?.format('HH:mm');
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
export const durationDates = (date1: Date, date2: Date) => {
|
|
10
|
+
if (!date1 && !date2) return '--:--';
|
|
11
|
+
|
|
12
|
+
const start = dateTimeParse(date1) || dateTime();
|
|
13
|
+
const end = dateTimeParse(date2) || dateTime();
|
|
14
|
+
const diff = end?.diff(start);
|
|
15
|
+
|
|
16
|
+
return dateTimeParse(diff)?.format('HH:mm');
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export const formatTimeCanonical = (ts: Date) => {
|
|
20
|
+
return dateTimeParse(ts)?.format('DD.MM.YYYY, HH:mm');
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export const getTimestampFromDate = (date: Date) => {
|
|
24
|
+
return dateTimeParse(date)?.valueOf();
|
|
25
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import {useCallback, useState} from 'react';
|
|
2
|
+
|
|
3
|
+
export const useToggle = (initialValue = false): [boolean, () => void] => {
|
|
4
|
+
const [value, setValue] = useState(initialValue);
|
|
5
|
+
|
|
6
|
+
const toggle = useCallback(() => {
|
|
7
|
+
setValue((current) => !current);
|
|
8
|
+
}, []);
|
|
9
|
+
|
|
10
|
+
return [value, toggle];
|
|
11
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import {I18N, KeyData, KeysData} from '@gravity-ui/i18n';
|
|
2
|
+
|
|
3
|
+
export type AppLang = 'en' | 'ru';
|
|
4
|
+
|
|
5
|
+
export const i18n = new I18N({lang: 'en', fallbackLang: 'en'});
|
|
6
|
+
|
|
7
|
+
export function setLang(lang: string) {
|
|
8
|
+
i18n.setLang(lang);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export function addI18Keysets<const T extends KeysData, const Name extends `qp:${string}`>(
|
|
12
|
+
componentName: Name,
|
|
13
|
+
data: Partial<Record<AppLang, T>>,
|
|
14
|
+
) {
|
|
15
|
+
Object.entries(data).forEach(([lang, keys]) => i18n.registerKeyset(lang, componentName, keys));
|
|
16
|
+
|
|
17
|
+
type TKey = Extract<keyof T, string>;
|
|
18
|
+
const t = i18n.keyset<TKey>(componentName);
|
|
19
|
+
|
|
20
|
+
return t as typeof t & {
|
|
21
|
+
/**
|
|
22
|
+
* Keyset data is used only for type inference, the value is always undefined.
|
|
23
|
+
*/
|
|
24
|
+
keysetData: {[Key in Name]: Record<TKey, KeyData>};
|
|
25
|
+
};
|
|
26
|
+
}
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import React, {useState} from 'react';
|
|
2
|
+
import type {Meta, StoryObj} from '@storybook/react';
|
|
3
|
+
import {HistoryHeader} from './HistoryHeader';
|
|
4
|
+
|
|
5
|
+
const meta: Meta<typeof HistoryHeader> = {
|
|
6
|
+
title: 'Modules/HistoryHeader',
|
|
7
|
+
component: HistoryHeader,
|
|
8
|
+
tags: ['autodocs'],
|
|
9
|
+
parameters: {
|
|
10
|
+
layout: 'padded',
|
|
11
|
+
},
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export default meta;
|
|
15
|
+
type Story = StoryObj<typeof HistoryHeader>;
|
|
16
|
+
|
|
17
|
+
const DefaultStory = () => {
|
|
18
|
+
const [search, setSearch] = useState({value: '', fullSearch: false});
|
|
19
|
+
|
|
20
|
+
return (
|
|
21
|
+
<HistoryHeader
|
|
22
|
+
search={search.value}
|
|
23
|
+
fullSearch={search.fullSearch}
|
|
24
|
+
hasClear={true}
|
|
25
|
+
onUpdate={setSearch}
|
|
26
|
+
/>
|
|
27
|
+
);
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
const FullSearchStory = () => {
|
|
31
|
+
const [search, setSearch] = useState({value: 'users', fullSearch: true});
|
|
32
|
+
|
|
33
|
+
return (
|
|
34
|
+
<HistoryHeader
|
|
35
|
+
search={search.value}
|
|
36
|
+
fullSearch={search.fullSearch}
|
|
37
|
+
hasClear={true}
|
|
38
|
+
onUpdate={setSearch}
|
|
39
|
+
/>
|
|
40
|
+
);
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
/** Empty header with a search field */
|
|
44
|
+
export const Default: Story = {render: () => <DefaultStory />};
|
|
45
|
+
|
|
46
|
+
/** Full-text search is active (button is highlighted) */
|
|
47
|
+
export const FullSearchActive: Story = {render: () => <FullSearchStory />};
|