@api-client/ui 0.0.5 → 0.0.7
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/demo/elements/http/http-assertions.html +3 -0
- package/demo/elements/http/http-assertions.ts +1 -1
- package/demo/elements/http/http-flows.html +23 -0
- package/demo/elements/http/http-flows.ts +92 -0
- package/demo/elements/http/index.html +3 -0
- package/demo/pages/http-project/main.ts +5 -6
- package/dist/define/dialog/delete-cookie-action-dialog.d.ts +10 -0
- package/dist/define/dialog/delete-cookie-action-dialog.d.ts.map +1 -0
- package/dist/define/dialog/delete-cookie-action-dialog.js +14 -0
- package/dist/define/dialog/delete-cookie-action-dialog.js.map +1 -0
- package/dist/define/dialog/set-cookie-action-dialog.d.ts +10 -0
- package/dist/define/dialog/set-cookie-action-dialog.d.ts.map +1 -0
- package/dist/define/dialog/set-cookie-action-dialog.js +14 -0
- package/dist/define/dialog/set-cookie-action-dialog.js.map +1 -0
- package/dist/define/http/http-assertions.d.ts +1 -1
- package/dist/define/http/http-assertions.d.ts.map +1 -1
- package/dist/define/http/http-assertions.js +3 -3
- package/dist/define/http/http-assertions.js.map +1 -1
- package/dist/define/http/http-flows.d.ts +10 -0
- package/dist/define/http/http-flows.d.ts.map +1 -0
- package/dist/define/http/http-flows.js +13 -0
- package/dist/define/http/http-flows.js.map +1 -0
- package/dist/define/ui/ui-divider.d.ts +4 -1
- package/dist/define/ui/ui-divider.d.ts.map +1 -1
- package/dist/define/ui/ui-divider.js +11 -2
- package/dist/define/ui/ui-divider.js.map +1 -1
- package/dist/elements/ApiElement.d.ts +4 -0
- package/dist/elements/ApiElement.d.ts.map +1 -1
- package/dist/elements/ApiElement.js +6 -0
- package/dist/elements/ApiElement.js.map +1 -1
- package/dist/elements/amf/ApiAuthorizationEditor.element.js +1 -1
- package/dist/elements/amf/ApiAuthorizationEditor.element.js.map +1 -1
- package/dist/elements/amf/ApiOperationDocument.element.d.ts.map +1 -1
- package/dist/elements/amf/ApiOperationDocument.element.js +2 -1
- package/dist/elements/amf/ApiOperationDocument.element.js.map +1 -1
- package/dist/elements/amf/ApiRequest.element.js +1 -1
- package/dist/elements/amf/ApiRequest.element.js.map +1 -1
- package/dist/elements/amf/ApiRequestEditor.element.d.ts +0 -1
- package/dist/elements/amf/ApiRequestEditor.element.d.ts.map +1 -1
- package/dist/elements/amf/ApiRequestEditor.element.js +0 -3
- package/dist/elements/amf/ApiRequestEditor.element.js.map +1 -1
- package/dist/elements/authorization/ui/Authorization.d.ts +2 -1
- package/dist/elements/authorization/ui/Authorization.d.ts.map +1 -1
- package/dist/elements/authorization/ui/Authorization.js +0 -3
- package/dist/elements/authorization/ui/Authorization.js.map +1 -1
- package/dist/elements/dialog/DeleteCookieAction.element.d.ts +20 -0
- package/dist/elements/dialog/DeleteCookieAction.element.d.ts.map +1 -0
- package/dist/elements/dialog/DeleteCookieAction.element.js +93 -0
- package/dist/elements/dialog/DeleteCookieAction.element.js.map +1 -0
- package/dist/elements/dialog/DeleteCookieAction.styles.d.ts +3 -0
- package/dist/elements/dialog/DeleteCookieAction.styles.d.ts.map +1 -0
- package/dist/elements/dialog/DeleteCookieAction.styles.js +13 -0
- package/dist/elements/dialog/DeleteCookieAction.styles.js.map +1 -0
- package/dist/elements/dialog/Rename.d.ts +7 -6
- package/dist/elements/dialog/Rename.d.ts.map +1 -1
- package/dist/elements/dialog/Rename.js +7 -6
- package/dist/elements/dialog/Rename.js.map +1 -1
- package/dist/elements/dialog/SetCookieAction.element.d.ts +22 -0
- package/dist/elements/dialog/SetCookieAction.element.d.ts.map +1 -0
- package/dist/elements/dialog/SetCookieAction.element.js +173 -0
- package/dist/elements/dialog/SetCookieAction.element.js.map +1 -0
- package/dist/elements/environment/EnvironmentEditor.d.ts +24 -3
- package/dist/elements/environment/EnvironmentEditor.d.ts.map +1 -1
- package/dist/elements/environment/EnvironmentEditor.js +69 -23
- package/dist/elements/environment/EnvironmentEditor.js.map +1 -1
- package/dist/elements/environment/EnvironmentEditor.styles.d.ts.map +1 -1
- package/dist/elements/environment/EnvironmentEditor.styles.js +5 -0
- package/dist/elements/environment/EnvironmentEditor.styles.js.map +1 -1
- package/dist/elements/environment/ServerEditor.d.ts +3 -3
- package/dist/elements/environment/ServerEditor.d.ts.map +1 -1
- package/dist/elements/environment/ServerEditor.js +3 -6
- package/dist/elements/environment/ServerEditor.js.map +1 -1
- package/dist/elements/environment/VariablesEditor.d.ts +0 -1
- package/dist/elements/environment/VariablesEditor.d.ts.map +1 -1
- package/dist/elements/environment/VariablesEditor.js +3 -6
- package/dist/elements/environment/VariablesEditor.js.map +1 -1
- package/dist/elements/highlight/Prism.styles.d.ts.map +1 -1
- package/dist/elements/highlight/Prism.styles.js +12 -5
- package/dist/elements/highlight/Prism.styles.js.map +1 -1
- package/dist/elements/http/BodyEditor.d.ts +0 -4
- package/dist/elements/http/BodyEditor.d.ts.map +1 -1
- package/dist/elements/http/BodyEditor.js +10 -16
- package/dist/elements/http/BodyEditor.js.map +1 -1
- package/dist/elements/http/BodyMultipartEditor.d.ts +3 -16
- package/dist/elements/http/BodyMultipartEditor.d.ts.map +1 -1
- package/dist/elements/http/BodyMultipartEditor.js +3 -19
- package/dist/elements/http/BodyMultipartEditor.js.map +1 -1
- package/dist/elements/http/BodyTextEditor.d.ts +0 -1
- package/dist/elements/http/BodyTextEditor.d.ts.map +1 -1
- package/dist/elements/http/BodyTextEditor.js +0 -3
- package/dist/elements/http/BodyTextEditor.js.map +1 -1
- package/dist/elements/http/BodyUrlEncodedEditor.d.ts +3 -3
- package/dist/elements/http/BodyUrlEncodedEditor.d.ts.map +1 -1
- package/dist/elements/http/BodyUrlEncodedEditor.js +3 -5
- package/dist/elements/http/BodyUrlEncodedEditor.js.map +1 -1
- package/dist/elements/http/HeadersForm.d.ts +0 -4
- package/dist/elements/http/HeadersForm.d.ts.map +1 -1
- package/dist/elements/http/HeadersForm.js +0 -6
- package/dist/elements/http/HeadersForm.js.map +1 -1
- package/dist/elements/http/HttpAssertions.element.d.ts +55 -0
- package/dist/elements/http/HttpAssertions.element.d.ts.map +1 -0
- package/dist/elements/http/HttpAssertions.element.js +264 -0
- package/dist/elements/http/HttpAssertions.element.js.map +1 -0
- package/dist/elements/http/HttpAssertions.styles.d.ts.map +1 -1
- package/dist/elements/http/HttpAssertions.styles.js +7 -156
- package/dist/elements/http/HttpAssertions.styles.js.map +1 -1
- package/dist/elements/http/HttpFlows.common.d.ts +3 -0
- package/dist/elements/http/HttpFlows.common.d.ts.map +1 -0
- package/dist/elements/http/HttpFlows.common.js +181 -0
- package/dist/elements/http/HttpFlows.common.js.map +1 -0
- package/dist/elements/http/HttpFlows.element.d.ts +97 -0
- package/dist/elements/http/HttpFlows.element.d.ts.map +1 -0
- package/dist/elements/http/HttpFlows.element.js +684 -0
- package/dist/elements/http/HttpFlows.element.js.map +1 -0
- package/dist/elements/http/HttpFlows.styles.d.ts +3 -0
- package/dist/elements/http/HttpFlows.styles.d.ts.map +1 -0
- package/dist/elements/http/HttpFlows.styles.js +28 -0
- package/dist/elements/http/HttpFlows.styles.js.map +1 -0
- package/dist/elements/http/HttpFlowsUi.d.ts +172 -0
- package/dist/elements/http/HttpFlowsUi.d.ts.map +1 -0
- package/dist/elements/http/HttpFlowsUi.js +1256 -0
- package/dist/elements/http/HttpFlowsUi.js.map +1 -0
- package/dist/elements/http/RequestConfigElement.d.ts +0 -1
- package/dist/elements/http/RequestConfigElement.d.ts.map +1 -1
- package/dist/elements/http/RequestConfigElement.js +8 -11
- package/dist/elements/http/RequestConfigElement.js.map +1 -1
- package/dist/elements/http/RequestEditor.d.ts +10 -10
- package/dist/elements/http/RequestEditor.d.ts.map +1 -1
- package/dist/elements/http/RequestEditor.js +62 -23
- package/dist/elements/http/RequestEditor.js.map +1 -1
- package/dist/elements/http/UrlInput.d.ts +3 -3
- package/dist/elements/http/UrlInput.d.ts.map +1 -1
- package/dist/elements/http/UrlInput.js +2 -2
- package/dist/elements/http/UrlInput.js.map +1 -1
- package/dist/elements/http/UrlParamsForm.d.ts +0 -1
- package/dist/elements/http/UrlParamsForm.d.ts.map +1 -1
- package/dist/elements/http/UrlParamsForm.js +0 -3
- package/dist/elements/http/UrlParamsForm.js.map +1 -1
- package/dist/elements/layout/SplitView.styles.d.ts.map +1 -1
- package/dist/elements/layout/SplitView.styles.js +1 -0
- package/dist/elements/layout/SplitView.styles.js.map +1 -1
- package/dist/elements/navigation/AppNavigationItem.styles.d.ts.map +1 -1
- package/dist/elements/navigation/AppNavigationItem.styles.js +2 -0
- package/dist/elements/navigation/AppNavigationItem.styles.js.map +1 -1
- package/dist/elements/project/HttpProjectRequest.d.ts +2 -1
- package/dist/elements/project/HttpProjectRequest.d.ts.map +1 -1
- package/dist/elements/project/HttpProjectRequest.js +14 -5
- package/dist/elements/project/HttpProjectRequest.js.map +1 -1
- package/dist/elements/project/ProjectRunner.d.ts +0 -1
- package/dist/elements/project/ProjectRunner.d.ts.map +1 -1
- package/dist/elements/project/ProjectRunner.js +1 -4
- package/dist/elements/project/ProjectRunner.js.map +1 -1
- package/dist/elements/schema-design/AssociationFormElement.d.ts +0 -1
- package/dist/elements/schema-design/AssociationFormElement.d.ts.map +1 -1
- package/dist/elements/schema-design/AssociationFormElement.js +2 -5
- package/dist/elements/schema-design/AssociationFormElement.js.map +1 -1
- package/dist/elements/schema-design/DataEntityEditorElement.d.ts +2 -2
- package/dist/elements/schema-design/DataEntityEditorElement.d.ts.map +1 -1
- package/dist/elements/schema-design/DataEntityEditorElement.js +5 -5
- package/dist/elements/schema-design/DataEntityEditorElement.js.map +1 -1
- package/dist/elements/schema-design/DataSchemaDocument.d.ts +0 -1
- package/dist/elements/schema-design/DataSchemaDocument.d.ts.map +1 -1
- package/dist/elements/schema-design/DataSchemaDocument.js +4 -7
- package/dist/elements/schema-design/DataSchemaDocument.js.map +1 -1
- package/dist/elements/schema-design/EntityFormElement.d.ts +0 -1
- package/dist/elements/schema-design/EntityFormElement.d.ts.map +1 -1
- package/dist/elements/schema-design/EntityFormElement.js +4 -7
- package/dist/elements/schema-design/EntityFormElement.js.map +1 -1
- package/dist/elements/schema-design/PropertyFormElement.d.ts +1 -2
- package/dist/elements/schema-design/PropertyFormElement.d.ts.map +1 -1
- package/dist/elements/schema-design/PropertyFormElement.js +8 -11
- package/dist/elements/schema-design/PropertyFormElement.js.map +1 -1
- package/dist/pages/ApplicationScreen.d.ts +1 -1
- package/dist/pages/ApplicationScreen.d.ts.map +1 -1
- package/dist/pages/ApplicationScreen.js +1 -1
- package/dist/pages/ApplicationScreen.js.map +1 -1
- package/dist/pages/api-client/ApiClient.styles.d.ts.map +1 -1
- package/dist/pages/api-client/ApiClient.styles.js +22 -3
- package/dist/pages/api-client/ApiClient.styles.js.map +1 -1
- package/dist/pages/api-client/Authenticate.screen.d.ts +2 -0
- package/dist/pages/api-client/Authenticate.screen.d.ts.map +1 -1
- package/dist/pages/api-client/Authenticate.screen.js +19 -3
- package/dist/pages/api-client/Authenticate.screen.js.map +1 -1
- package/dist/pages/api-client/StoreConfig.screen.d.ts.map +1 -1
- package/dist/pages/api-client/StoreConfig.screen.js +4 -2
- package/dist/pages/api-client/StoreConfig.screen.js.map +1 -1
- package/dist/pages/api-client/StoreConfig.styles.d.ts.map +1 -1
- package/dist/pages/api-client/StoreConfig.styles.js +5 -0
- package/dist/pages/api-client/StoreConfig.styles.js.map +1 -1
- package/dist/pages/api-client/pages/Files.page.d.ts +1 -0
- package/dist/pages/api-client/pages/Files.page.d.ts.map +1 -1
- package/dist/pages/api-client/pages/Files.page.js +2 -1
- package/dist/pages/api-client/pages/Files.page.js.map +1 -1
- package/dist/pages/http-project/HttpProject.screen.d.ts +0 -8
- package/dist/pages/http-project/HttpProject.screen.d.ts.map +1 -1
- package/dist/pages/http-project/HttpProject.screen.js +14 -15
- package/dist/pages/http-project/HttpProject.screen.js.map +1 -1
- package/dist/pages/http-project/types.d.ts +8 -6
- package/dist/pages/http-project/types.d.ts.map +1 -1
- package/dist/pages/http-project/types.js.map +1 -1
- package/dist/styles/m3/surface.module.d.ts.map +1 -1
- package/dist/styles/m3/surface.module.js +11 -27
- package/dist/styles/m3/surface.module.js.map +1 -1
- package/dist/ui/UiElement.d.ts +4 -0
- package/dist/ui/UiElement.d.ts.map +1 -1
- package/dist/ui/UiElement.js +6 -0
- package/dist/ui/UiElement.js.map +1 -1
- package/dist/ui/button/SegmentedButton.styles.d.ts.map +1 -1
- package/dist/ui/button/SegmentedButton.styles.js +3 -1
- package/dist/ui/button/SegmentedButton.styles.js.map +1 -1
- package/dist/ui/dialog/UiDialog.d.ts +3 -0
- package/dist/ui/dialog/UiDialog.d.ts.map +1 -1
- package/dist/ui/dialog/UiDialog.js +3 -0
- package/dist/ui/dialog/UiDialog.js.map +1 -1
- package/dist/ui/effects/ripple.d.ts.map +1 -1
- package/dist/ui/effects/ripple.js +5 -1
- package/dist/ui/effects/ripple.js.map +1 -1
- package/dist/ui/icons/Icons.d.ts +3 -2
- package/dist/ui/icons/Icons.d.ts.map +1 -1
- package/dist/ui/icons/Icons.js +2 -1
- package/dist/ui/icons/Icons.js.map +1 -1
- package/dist/ui/input/CheckedElement.d.ts +1 -1
- package/dist/ui/input/CheckedElement.d.ts.map +1 -1
- package/dist/ui/input/CheckedElement.js +3 -3
- package/dist/ui/input/CheckedElement.js.map +1 -1
- package/dist/ui/input/Input.js +1 -1
- package/dist/ui/input/Input.js.map +1 -1
- package/dist/ui/list/{DividerElement.d.ts → UiDivider.element.d.ts} +6 -6
- package/dist/ui/list/UiDivider.element.d.ts.map +1 -0
- package/dist/ui/list/UiDivider.element.js +39 -0
- package/dist/ui/list/UiDivider.element.js.map +1 -0
- package/dist/ui/list/UiDivider.styles.d.ts +3 -0
- package/dist/ui/list/UiDivider.styles.d.ts.map +1 -0
- package/dist/ui/list/UiDivider.styles.js +49 -0
- package/dist/ui/list/UiDivider.styles.js.map +1 -0
- package/dist/ui/tabs/UiTabs.d.ts +13 -1
- package/dist/ui/tabs/UiTabs.d.ts.map +1 -1
- package/dist/ui/tabs/UiTabs.js +42 -13
- package/dist/ui/tabs/UiTabs.js.map +1 -1
- package/package.json +1 -1
- package/src/define/dialog/delete-cookie-action-dialog.ts +16 -0
- package/src/define/dialog/set-cookie-action-dialog.ts +16 -0
- package/src/define/http/http-assertions.ts +3 -3
- package/src/define/http/http-flows.ts +15 -0
- package/src/define/ui/ui-divider.ts +7 -2
- package/src/elements/ApiElement.ts +7 -0
- package/src/elements/amf/ApiAuthorizationEditor.element.ts +1 -1
- package/src/elements/amf/ApiOperationDocument.element.ts +2 -1
- package/src/elements/amf/ApiRequest.element.ts +1 -1
- package/src/elements/amf/ApiRequestEditor.element.ts +0 -4
- package/src/elements/authorization/ui/Authorization.ts +3 -5
- package/src/elements/dialog/DeleteCookieAction.element.ts +100 -0
- package/src/elements/dialog/DeleteCookieAction.styles.ts +14 -0
- package/src/elements/dialog/Rename.ts +8 -7
- package/src/elements/dialog/SetCookieAction.element.ts +183 -0
- package/src/elements/environment/EnvironmentEditor.styles.ts +5 -0
- package/src/elements/environment/EnvironmentEditor.ts +81 -22
- package/src/elements/environment/ServerEditor.ts +4 -8
- package/src/elements/environment/VariablesEditor.ts +3 -7
- package/src/elements/highlight/Prism.styles.ts +12 -5
- package/src/elements/http/BodyEditor.ts +10 -17
- package/src/elements/http/BodyMultipartEditor.ts +3 -20
- package/src/elements/http/BodyTextEditor.ts +0 -4
- package/src/elements/http/BodyUrlEncodedEditor.ts +5 -8
- package/src/elements/http/HeadersForm.ts +2 -9
- package/src/elements/http/HttpAssertions.element.ts +286 -0
- package/src/elements/http/HttpAssertions.styles.ts +7 -156
- package/src/elements/http/HttpFlows.common.ts +181 -0
- package/src/elements/http/HttpFlows.element.ts +722 -0
- package/src/elements/http/HttpFlows.styles.ts +29 -0
- package/src/elements/http/HttpFlowsUi.ts +1327 -0
- package/src/elements/http/RequestConfigElement.ts +10 -14
- package/src/elements/http/RequestEditor.ts +77 -35
- package/src/elements/http/UrlInput.ts +6 -6
- package/src/elements/http/UrlParamsForm.ts +2 -6
- package/src/elements/layout/SplitView.styles.ts +1 -0
- package/src/elements/navigation/AppNavigationItem.styles.ts +2 -0
- package/src/elements/project/HttpProjectRequest.ts +16 -5
- package/src/elements/project/ProjectRunner.ts +3 -7
- package/src/elements/schema-design/AssociationFormElement.ts +4 -8
- package/src/elements/schema-design/DataEntityEditorElement.ts +8 -8
- package/src/elements/schema-design/DataSchemaDocument.ts +5 -9
- package/src/elements/schema-design/EntityFormElement.ts +6 -10
- package/src/elements/schema-design/PropertyFormElement.ts +11 -15
- package/src/pages/ApplicationScreen.ts +1 -1
- package/src/pages/api-client/ApiClient.styles.ts +22 -3
- package/src/pages/api-client/Authenticate.screen.ts +19 -3
- package/src/pages/api-client/StoreConfig.screen.ts +4 -2
- package/src/pages/api-client/StoreConfig.styles.ts +5 -0
- package/src/pages/api-client/pages/Files.page.ts +2 -1
- package/src/pages/http-project/HttpProject.screen.ts +14 -26
- package/src/pages/http-project/types.ts +8 -6
- package/src/styles/m3/surface.module.ts +11 -27
- package/src/styles/m3/theme.css +36 -0
- package/src/styles/m3/tokens.css +11 -0
- package/src/ui/UiElement.ts +7 -0
- package/src/ui/button/SegmentedButton.styles.ts +3 -1
- package/src/ui/dialog/UiDialog.ts +3 -0
- package/src/ui/effects/ripple.ts +6 -1
- package/src/ui/icons/Icons.ts +3 -2
- package/src/ui/input/CheckedElement.ts +3 -3
- package/src/ui/input/Input.ts +1 -1
- package/src/ui/list/UiDivider.element.ts +41 -0
- package/src/ui/list/UiDivider.styles.ts +49 -0
- package/src/ui/tabs/UiTabs.ts +55 -13
- package/test/amf/authorization/OAuth2Method.test.ts +1 -1
- package/test/elements/http/HttpAssertions.test.ts +5 -6
- package/test/elements/http/HttpFlows.test.ts +485 -0
- package/dist/elements/http/HttpAssertions.d.ts +0 -114
- package/dist/elements/http/HttpAssertions.d.ts.map +0 -1
- package/dist/elements/http/HttpAssertions.js +0 -1146
- package/dist/elements/http/HttpAssertions.js.map +0 -1
- package/dist/elements/http/internals.d.ts +0 -150
- package/dist/elements/http/internals.d.ts.map +0 -1
- package/dist/elements/http/internals.js +0 -150
- package/dist/elements/http/internals.js.map +0 -1
- package/dist/ui/list/DividerElement.d.ts.map +0 -1
- package/dist/ui/list/DividerElement.js +0 -82
- package/dist/ui/list/DividerElement.js.map +0 -1
- package/src/elements/http/HttpAssertions.ts +0 -1187
- package/src/elements/http/internals.ts +0 -151
- package/src/http-client/docs/Files.md +0 -28
- package/src/ui/list/DividerElement.ts +0 -84
|
@@ -8,11 +8,11 @@ import schemaCommon from './schemaCommon.js';
|
|
|
8
8
|
import EditorCommon from './CommonStyles.js';
|
|
9
9
|
import MarkdownStyles from '../highlight/MarkdownStyles.js';
|
|
10
10
|
import typography from "../../styles/m3/typography.module.js";
|
|
11
|
+
import type RadioElement from "../../ui/input/RadioElement.js";
|
|
11
12
|
import '../../define/ui/ui-button.js';
|
|
12
13
|
import '../../define/ui/ui-icon-button.js';
|
|
13
14
|
import '../../define/ui/ui-icon.js';
|
|
14
15
|
import '../../define/ui/ui-radio.js';
|
|
15
|
-
import RadioElement from "../../ui/input/RadioElement.js";
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* We keep the list of expanded attributes in a weak map
|
|
@@ -176,7 +176,7 @@ export default class DataSchemaDocument extends ApiElement {
|
|
|
176
176
|
}
|
|
177
177
|
}));
|
|
178
178
|
}
|
|
179
|
-
this.
|
|
179
|
+
this.notifyChange();
|
|
180
180
|
}
|
|
181
181
|
|
|
182
182
|
/**
|
|
@@ -191,7 +191,7 @@ export default class DataSchemaDocument extends ApiElement {
|
|
|
191
191
|
return;
|
|
192
192
|
}
|
|
193
193
|
_entity.removeAssociation(key);
|
|
194
|
-
this.
|
|
194
|
+
this.notifyChange();
|
|
195
195
|
this.requestUpdate();
|
|
196
196
|
}
|
|
197
197
|
|
|
@@ -202,7 +202,7 @@ export default class DataSchemaDocument extends ApiElement {
|
|
|
202
202
|
}
|
|
203
203
|
const created = _entity.addNamedProperty(name || 'New property');
|
|
204
204
|
this.selectedProperty = created.key;
|
|
205
|
-
this.
|
|
205
|
+
this.notifyChange();
|
|
206
206
|
this.requestUpdate();
|
|
207
207
|
this.dispatchEvent(new CustomEvent('edit', {
|
|
208
208
|
detail: {
|
|
@@ -221,14 +221,10 @@ export default class DataSchemaDocument extends ApiElement {
|
|
|
221
221
|
if (this.selectedProperty === key) {
|
|
222
222
|
this.selectedProperty = undefined;
|
|
223
223
|
}
|
|
224
|
-
this.
|
|
224
|
+
this.notifyChange();
|
|
225
225
|
this.requestUpdate();
|
|
226
226
|
}
|
|
227
227
|
|
|
228
|
-
protected _notifyChanged(): void {
|
|
229
|
-
this.dispatchEvent(new Event('change'));
|
|
230
|
-
}
|
|
231
|
-
|
|
232
228
|
protected _addPropertyHandler(): void {
|
|
233
229
|
this.addProperty();
|
|
234
230
|
}
|
|
@@ -6,8 +6,8 @@ import ApiElement from "../ApiElement.js";
|
|
|
6
6
|
import EditorCommon from './CommonStyles.js';
|
|
7
7
|
import theme from '../theme.js';
|
|
8
8
|
import typography from "../../styles/m3/typography.module.js";
|
|
9
|
-
import Input from "../../ui/input/Input.js";
|
|
10
|
-
import CheckboxElement from "../../ui/input/CheckboxElement.js";
|
|
9
|
+
import type Input from "../../ui/input/Input.js";
|
|
10
|
+
import type CheckboxElement from "../../ui/input/CheckboxElement.js";
|
|
11
11
|
import '../../define/ui/ui-text-field.js';
|
|
12
12
|
import '../../define/ui/ui-checkbox.js';
|
|
13
13
|
import '../../define/ui/ui-divider.js';
|
|
@@ -99,11 +99,7 @@ export default class EntityFormElement extends ApiElement {
|
|
|
99
99
|
if (!_entity.parents.includes(parentKey)) {
|
|
100
100
|
_entity.parents.push(parentKey);
|
|
101
101
|
}
|
|
102
|
-
this.
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
protected _notifyChanged(): void {
|
|
106
|
-
this.dispatchEvent(new Event('change'));
|
|
102
|
+
this.notifyChange();
|
|
107
103
|
}
|
|
108
104
|
|
|
109
105
|
/**
|
|
@@ -133,7 +129,7 @@ export default class EntityFormElement extends ApiElement {
|
|
|
133
129
|
return;
|
|
134
130
|
}
|
|
135
131
|
_entity.info[name as 'name' | 'description' | 'displayName'] = value;
|
|
136
|
-
this.
|
|
132
|
+
this.notifyChange();
|
|
137
133
|
if (name === 'name' || name === 'displayName') {
|
|
138
134
|
this.dispatchEvent(new Event('namechange'));
|
|
139
135
|
}
|
|
@@ -151,7 +147,7 @@ export default class EntityFormElement extends ApiElement {
|
|
|
151
147
|
return;
|
|
152
148
|
}
|
|
153
149
|
_entity[name] = checked;
|
|
154
|
-
this.
|
|
150
|
+
this.notifyChange();
|
|
155
151
|
this.requestUpdate();
|
|
156
152
|
}
|
|
157
153
|
|
|
@@ -202,7 +198,7 @@ export default class EntityFormElement extends ApiElement {
|
|
|
202
198
|
return;
|
|
203
199
|
}
|
|
204
200
|
_entity.parents.splice(index, 1);
|
|
205
|
-
this.
|
|
201
|
+
this.notifyChange();
|
|
206
202
|
this.requestUpdate();
|
|
207
203
|
}
|
|
208
204
|
|
|
@@ -8,9 +8,9 @@ import ApiElement from "../ApiElement.js";
|
|
|
8
8
|
import EditorCommon from './CommonStyles.js';
|
|
9
9
|
import theme from '../theme.js';
|
|
10
10
|
import typography from "../../styles/m3/typography.module.js";
|
|
11
|
-
import CheckboxElement from "../../ui/input/CheckboxElement.js";
|
|
12
|
-
import { SupportedInputTypes } from "../../types/input.js";
|
|
13
|
-
import Input from "../../ui/input/Input.js";
|
|
11
|
+
import type CheckboxElement from "../../ui/input/CheckboxElement.js";
|
|
12
|
+
import type { SupportedInputTypes } from "../../types/input.js";
|
|
13
|
+
import type Input from "../../ui/input/Input.js";
|
|
14
14
|
import '../../define/ui/ui-text-field.js';
|
|
15
15
|
import '../../define/ui/ui-checkbox.js';
|
|
16
16
|
import '../../define/ui/ui-divider.js';
|
|
@@ -84,10 +84,6 @@ export default class PropertyFormElement extends ApiElement {
|
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
86
|
|
|
87
|
-
protected _notifyChanged(): void {
|
|
88
|
-
this.dispatchEvent(new Event('change'));
|
|
89
|
-
}
|
|
90
|
-
|
|
91
87
|
/**
|
|
92
88
|
* Computes the view value for the property.
|
|
93
89
|
* This should be called before the update is complete so this won't trigger another update.
|
|
@@ -115,7 +111,7 @@ export default class PropertyFormElement extends ApiElement {
|
|
|
115
111
|
return;
|
|
116
112
|
}
|
|
117
113
|
_property.info[name as 'name' | 'description' | 'displayName'] = value;
|
|
118
|
-
this.
|
|
114
|
+
this.notifyChange();
|
|
119
115
|
this.requestUpdate();
|
|
120
116
|
}
|
|
121
117
|
|
|
@@ -128,7 +124,7 @@ export default class PropertyFormElement extends ApiElement {
|
|
|
128
124
|
return;
|
|
129
125
|
}
|
|
130
126
|
_property.type = value;
|
|
131
|
-
this.
|
|
127
|
+
this.notifyChange();
|
|
132
128
|
this.requestUpdate();
|
|
133
129
|
}
|
|
134
130
|
|
|
@@ -155,7 +151,7 @@ export default class PropertyFormElement extends ApiElement {
|
|
|
155
151
|
return;
|
|
156
152
|
}
|
|
157
153
|
_property[name] = checked;
|
|
158
|
-
this.
|
|
154
|
+
this.notifyChange();
|
|
159
155
|
this.requestUpdate();
|
|
160
156
|
}
|
|
161
157
|
|
|
@@ -192,7 +188,7 @@ export default class PropertyFormElement extends ApiElement {
|
|
|
192
188
|
} else {
|
|
193
189
|
delete schema.defaultValue;
|
|
194
190
|
}
|
|
195
|
-
this.
|
|
191
|
+
this.notifyChange();
|
|
196
192
|
}
|
|
197
193
|
|
|
198
194
|
/**
|
|
@@ -211,7 +207,7 @@ export default class PropertyFormElement extends ApiElement {
|
|
|
211
207
|
}
|
|
212
208
|
const list = schema.examples as string[];
|
|
213
209
|
list.push(value as string);
|
|
214
|
-
this.
|
|
210
|
+
this.notifyChange();
|
|
215
211
|
this.requestUpdate();
|
|
216
212
|
}
|
|
217
213
|
|
|
@@ -230,7 +226,7 @@ export default class PropertyFormElement extends ApiElement {
|
|
|
230
226
|
return;
|
|
231
227
|
}
|
|
232
228
|
schema.examples.splice(index, 1);
|
|
233
|
-
this.
|
|
229
|
+
this.notifyChange();
|
|
234
230
|
this.requestUpdate();
|
|
235
231
|
}
|
|
236
232
|
|
|
@@ -270,7 +266,7 @@ export default class PropertyFormElement extends ApiElement {
|
|
|
270
266
|
}
|
|
271
267
|
const list = schema.enum as string[];
|
|
272
268
|
list.push(value as string);
|
|
273
|
-
this.
|
|
269
|
+
this.notifyChange();
|
|
274
270
|
this.requestUpdate();
|
|
275
271
|
}
|
|
276
272
|
|
|
@@ -289,7 +285,7 @@ export default class PropertyFormElement extends ApiElement {
|
|
|
289
285
|
return;
|
|
290
286
|
}
|
|
291
287
|
schema.enum.splice(index, 1);
|
|
292
|
-
this.
|
|
288
|
+
this.notifyChange();
|
|
293
289
|
this.requestUpdate();
|
|
294
290
|
}
|
|
295
291
|
|
|
@@ -10,11 +10,11 @@ import { EventTypes } from '../events/EventTypes.js';
|
|
|
10
10
|
import { ConfigBroadcast, ConfigBroadcastChannel, IConfigEnvironment, ThemeType } from '../lib/config/Config.js';
|
|
11
11
|
import supportedPlatform from '../lib/SupportedPlatform.js';
|
|
12
12
|
import { ButtonType } from '../ui/button/UiButton.js';
|
|
13
|
-
import '../define/ui/ui-button.js';
|
|
14
13
|
import { StoreBindings } from '../bindings/base/StoreBindings.js';
|
|
15
14
|
import type { AddConfigEnvironmentInit, ConfigurationBindings } from '../bindings/base/ConfigurationBindings.js';
|
|
16
15
|
import { PlatformBindings } from '../bindings/base/PlatformBindings.js';
|
|
17
16
|
import { SnackNotifications } from '../ui/notification/SnackNotifications.js';
|
|
17
|
+
import '../define/ui/ui-button.js';
|
|
18
18
|
|
|
19
19
|
export interface ApplicationInit {
|
|
20
20
|
/**
|
|
@@ -47,6 +47,7 @@ main {
|
|
|
47
47
|
padding: 8px 8px 8px 16px;
|
|
48
48
|
margin: 0px;
|
|
49
49
|
box-sizing: border-box;
|
|
50
|
+
color: var(--md-sys-color-on-surface);
|
|
50
51
|
}
|
|
51
52
|
|
|
52
53
|
/* Header */
|
|
@@ -56,12 +57,27 @@ main {
|
|
|
56
57
|
background-color: var(--md-ref-palette-neutral95);
|
|
57
58
|
display: flex;
|
|
58
59
|
align-items: center;
|
|
59
|
-
|
|
60
|
-
|
|
60
|
+
|
|
61
61
|
padding: 8px 24px;
|
|
62
62
|
box-sizing: border-box;
|
|
63
|
-
|
|
63
|
+
|
|
64
64
|
width: calc(33.3333%); /* 4 columns */
|
|
65
|
+
|
|
66
|
+
color: var(--md-sys-color-on-surface-variant);
|
|
67
|
+
background-color: var(--md-sys-color-surface-variant);
|
|
68
|
+
|
|
69
|
+
position: relative;
|
|
70
|
+
z-index: 0;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.search-box::before {
|
|
74
|
+
content: "";
|
|
75
|
+
position: absolute;
|
|
76
|
+
inset: 0px;
|
|
77
|
+
opacity: 0;
|
|
78
|
+
background-color: var(--md-sys-color-on-surface-variant);
|
|
79
|
+
transition: opacity 150ms cubic-bezier(0.4, 0, 0.2, 1) 0s;
|
|
80
|
+
z-index: -1;
|
|
65
81
|
}
|
|
66
82
|
|
|
67
83
|
.search-icon {
|
|
@@ -79,6 +95,8 @@ main {
|
|
|
79
95
|
border: none;
|
|
80
96
|
flex: 1;
|
|
81
97
|
outline: none;
|
|
98
|
+
caret-color: var(--md-sys-color-primary);
|
|
99
|
+
color: var(--md-sys-color-on-surface);
|
|
82
100
|
}
|
|
83
101
|
|
|
84
102
|
.search-box > input::placeholder {
|
|
@@ -95,6 +113,7 @@ main {
|
|
|
95
113
|
|
|
96
114
|
.workspace-dropdown {
|
|
97
115
|
margin-right: 12px;
|
|
116
|
+
color: var(--md-sys-color-on-surface);
|
|
98
117
|
}
|
|
99
118
|
|
|
100
119
|
.workspace-selector {
|
|
@@ -34,6 +34,8 @@ export default class AuthenticateScreen extends ApplicationScreen {
|
|
|
34
34
|
*/
|
|
35
35
|
@reactive() authenticating = false;
|
|
36
36
|
|
|
37
|
+
isSessionStore = false;
|
|
38
|
+
|
|
37
39
|
constructor(init: ApplicationInit) {
|
|
38
40
|
super(init);
|
|
39
41
|
}
|
|
@@ -43,7 +45,7 @@ export default class AuthenticateScreen extends ApplicationScreen {
|
|
|
43
45
|
await this.bindings.store.initialize();
|
|
44
46
|
await this.bindings.store.initializeStore();
|
|
45
47
|
await this.bindings.config.initialize();
|
|
46
|
-
const env = await this.
|
|
48
|
+
const env = await this.readEnvironment();
|
|
47
49
|
if (env) {
|
|
48
50
|
this.environment = env;
|
|
49
51
|
} else {
|
|
@@ -54,6 +56,16 @@ export default class AuthenticateScreen extends ApplicationScreen {
|
|
|
54
56
|
}
|
|
55
57
|
}
|
|
56
58
|
|
|
59
|
+
async readEnvironment(): Promise<IConfigEnvironment | undefined> {
|
|
60
|
+
let env = await this.bindings.config.session.get(`${EnvironmentsKey}.creating`) as IConfigEnvironment | undefined;
|
|
61
|
+
if (!env) {
|
|
62
|
+
env = await this.bindings.config.environment.read();
|
|
63
|
+
} else {
|
|
64
|
+
this.isSessionStore = true;
|
|
65
|
+
}
|
|
66
|
+
return env;
|
|
67
|
+
}
|
|
68
|
+
|
|
57
69
|
protected handleAuthenticate(): void {
|
|
58
70
|
const { environment } = this;
|
|
59
71
|
if (!environment) {
|
|
@@ -77,8 +89,12 @@ export default class AuthenticateScreen extends ApplicationScreen {
|
|
|
77
89
|
this.authenticating = false;
|
|
78
90
|
}
|
|
79
91
|
if (info) {
|
|
80
|
-
|
|
81
|
-
|
|
92
|
+
if (this.isSessionStore) {
|
|
93
|
+
await this.bindings.config.environment.add(env, { asDefault: true });
|
|
94
|
+
await this.bindings.config.session.delete(`${EnvironmentsKey}.creating`);
|
|
95
|
+
} else {
|
|
96
|
+
await this.bindings.config.environment.update(env);
|
|
97
|
+
}
|
|
82
98
|
}
|
|
83
99
|
}
|
|
84
100
|
|
|
@@ -740,12 +740,13 @@ export default class StoreConfigScreen extends ApplicationScreen {
|
|
|
740
740
|
}
|
|
741
741
|
|
|
742
742
|
renderActions(): TemplateResult {
|
|
743
|
+
const canCancel = this.initReason !== 'first-run';
|
|
743
744
|
return html`
|
|
744
745
|
<div class="actions">
|
|
745
|
-
|
|
746
|
+
${canCancel ? html`<ui-button
|
|
746
747
|
type="text"
|
|
747
748
|
@click="${this.handleCancel}"
|
|
748
|
-
>Cancel</ui-button
|
|
749
|
+
>Cancel</ui-button>` : nothing}
|
|
749
750
|
<ui-button
|
|
750
751
|
type="filled"
|
|
751
752
|
?disabled="${!this.storeType}"
|
|
@@ -761,6 +762,7 @@ export default class StoreConfigScreen extends ApplicationScreen {
|
|
|
761
762
|
?open="${this.infoDialogOpened}"
|
|
762
763
|
@close="${this.handleDialogClose}"
|
|
763
764
|
class="help-dialog"
|
|
765
|
+
modal
|
|
764
766
|
>
|
|
765
767
|
<ui-icon slot="icon" icon="help"></ui-icon>
|
|
766
768
|
|
|
@@ -33,6 +33,7 @@ import '../../../define/ui/ui-icon.js';
|
|
|
33
33
|
import '../../../define/ui/ui-icon-button.js';
|
|
34
34
|
import '../../../define/ui/ui-button.js';
|
|
35
35
|
import '../../../define/ui/ui-divider.js';
|
|
36
|
+
import '../../../define/ui/ui-text-field.js';
|
|
36
37
|
import '../../../define/dialog/rename-dialog.js';
|
|
37
38
|
import '../../../define/files/share-file.js';
|
|
38
39
|
|
|
@@ -632,7 +633,7 @@ export class FilesPage {
|
|
|
632
633
|
return html`
|
|
633
634
|
${this.renderSelectionShareButton(file)}
|
|
634
635
|
${this.renderSelectionDeleteButton(file)}
|
|
635
|
-
<ui-divider
|
|
636
|
+
<ui-divider vertical type="middle"></ui-divider>
|
|
636
637
|
`;
|
|
637
638
|
}
|
|
638
639
|
|
|
@@ -16,7 +16,6 @@ import globalStyles from '../../styles/global-styles.js';
|
|
|
16
16
|
import typography from '../../styles/m3/typography.module.js';
|
|
17
17
|
import dialogStyles from '../../styles/m3/dialog.module.js';
|
|
18
18
|
import surfaceStyles from '../../styles/m3/surface.module.js';
|
|
19
|
-
import { HttpClientStoreBindings } from "../../bindings/base/HttpClientStoreBindings.js";
|
|
20
19
|
import { StoreBroadcast } from "../../http-client/store/StoreBroadcast.js";
|
|
21
20
|
import { Events } from "../../events/Events.js";
|
|
22
21
|
import { navigate } from "../../lib/route.js";
|
|
@@ -30,13 +29,10 @@ import HttpProjectRequest from "../../elements/project/HttpProjectRequest.js";
|
|
|
30
29
|
import { ISplitLayout, SplitLayout } from "../../elements/layout/SplitLayout.js";
|
|
31
30
|
import { SplitItem } from "../../elements/layout/SplitItem.js";
|
|
32
31
|
import { LayoutType } from "../../elements/layout/type.js";
|
|
33
|
-
// eslint-disable-next-line import/no-cycle
|
|
34
32
|
import { HttpClientProjectBindings, RunnerKind } from "./types.js";
|
|
35
33
|
import { ProxyBindings } from "../../bindings/base/ProxyBindings.js";
|
|
36
34
|
import { IconType } from "../../ui/icons/Icons.js";
|
|
37
35
|
import ProjectRunner from "../../elements/project/ProjectRunner.js";
|
|
38
|
-
import { StoreBindings } from "../../bindings/base/StoreBindings.js";
|
|
39
|
-
import { ConfigurationBindings } from "../../bindings/base/ConfigurationBindings.js";
|
|
40
36
|
import '../../define/ui/ui-button.js';
|
|
41
37
|
import '../../define/ui/ui-icon.js';
|
|
42
38
|
import '../../define/http-project/project-navigation.js';
|
|
@@ -118,21 +114,12 @@ export default class HttpProjectScreen extends ApplicationScreen {
|
|
|
118
114
|
|
|
119
115
|
protected uiMap = new Map<string, IRequestUiMeta>();
|
|
120
116
|
|
|
121
|
-
idb: HttpClientStoreBindings;
|
|
122
|
-
|
|
123
|
-
store: StoreBindings;
|
|
124
|
-
|
|
125
|
-
proxy: ProxyBindings;
|
|
126
|
-
|
|
127
|
-
config: ConfigurationBindings;
|
|
128
|
-
|
|
129
117
|
constructor(bindings: HttpClientProjectBindings) {
|
|
130
118
|
super(bindings);
|
|
131
119
|
|
|
132
|
-
this.idb = bindings.idb;
|
|
133
|
-
this.
|
|
134
|
-
this.
|
|
135
|
-
this.config = bindings.config;
|
|
120
|
+
this.bindings.idb = bindings.idb;
|
|
121
|
+
this.bindings.proxy = bindings.proxy;
|
|
122
|
+
this.bindings.navigation = bindings.navigation;
|
|
136
123
|
|
|
137
124
|
this.menu = new HttpClientContextMenu();
|
|
138
125
|
this.menu.connect();
|
|
@@ -152,19 +139,20 @@ export default class HttpProjectScreen extends ApplicationScreen {
|
|
|
152
139
|
this.reportCriticalError((e as Error).message);
|
|
153
140
|
return;
|
|
154
141
|
}
|
|
155
|
-
await this.
|
|
156
|
-
await this.
|
|
157
|
-
await this.
|
|
158
|
-
await this.
|
|
142
|
+
await this.bindings.navigation.initialize();
|
|
143
|
+
await this.bindings.idb.initialize();
|
|
144
|
+
await this.bindings.store.initialize();
|
|
145
|
+
await this.bindings.proxy.initialize();
|
|
146
|
+
await this.bindings.config.initialize();
|
|
159
147
|
await this.initializeConfig();
|
|
160
148
|
await this.initializeStore();
|
|
161
|
-
this.store.space = this.workspace;
|
|
162
|
-
this.proxy.space = this.workspace;
|
|
149
|
+
this.bindings.store.space = this.workspace;
|
|
150
|
+
(this.bindings.proxy as ProxyBindings).space = this.workspace;
|
|
163
151
|
|
|
164
152
|
await this.setupProject(this.key);
|
|
165
153
|
|
|
166
|
-
await this.store.observeFile(this.key, 'media');
|
|
167
|
-
await this.store.observeHistory();
|
|
154
|
+
await this.bindings.store.observeFile(this.key, 'media');
|
|
155
|
+
await this.bindings.store.observeHistory();
|
|
168
156
|
|
|
169
157
|
this.layoutStoreKey = `http-client.http-project.state.layout.${this.key}`;
|
|
170
158
|
const state = await this.restoreLayout();
|
|
@@ -217,7 +205,7 @@ export default class HttpProjectScreen extends ApplicationScreen {
|
|
|
217
205
|
}
|
|
218
206
|
|
|
219
207
|
async readProjectFile(key: string): Promise<IHttpProject> {
|
|
220
|
-
const media = await this.store.media.read(key) as IHttpProject;
|
|
208
|
+
const media = await this.bindings.store.media.read(key) as IHttpProject;
|
|
221
209
|
return media;
|
|
222
210
|
}
|
|
223
211
|
|
|
@@ -228,7 +216,7 @@ export default class HttpProjectScreen extends ApplicationScreen {
|
|
|
228
216
|
patch: value,
|
|
229
217
|
id,
|
|
230
218
|
};
|
|
231
|
-
await this.store.media.patch(key, info);
|
|
219
|
+
await this.bindings.store.media.patch(key, info);
|
|
232
220
|
}
|
|
233
221
|
|
|
234
222
|
/**
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { HttpProject } from "@api-client/core/build/browser.js";
|
|
2
|
-
import { ProxyBindings } from "../../bindings/base/ProxyBindings.js";
|
|
3
|
-
import { HttpClientStoreBindings } from "../../bindings/base/HttpClientStoreBindings.js";
|
|
4
|
-
import { SplitLayout } from "../../elements/layout/SplitLayout.js";
|
|
1
|
+
import type { HttpProject } from "@api-client/core/build/browser.js";
|
|
2
|
+
import type { ProxyBindings } from "../../bindings/base/ProxyBindings.js";
|
|
3
|
+
import type { HttpClientStoreBindings } from "../../bindings/base/HttpClientStoreBindings.js";
|
|
4
|
+
import type { SplitLayout } from "../../elements/layout/SplitLayout.js";
|
|
5
5
|
import type HttpProjectScreen from "./HttpProject.screen.js";
|
|
6
|
-
import { ApplicationInit } from "../ApplicationScreen.js";
|
|
6
|
+
import type { ApplicationInit } from "../ApplicationScreen.js";
|
|
7
|
+
import type { NavigationBindings } from "../../bindings/base/NavigationBindings.js";
|
|
7
8
|
|
|
8
9
|
export interface CallbackReason {
|
|
9
10
|
action: 'delete' | 'duplicate' | 'add';
|
|
@@ -22,7 +23,8 @@ export interface HttpProjectContextualStore extends Map<string, unknown> {
|
|
|
22
23
|
|
|
23
24
|
export interface HttpClientProjectBindings extends ApplicationInit {
|
|
24
25
|
idb: HttpClientStoreBindings;
|
|
25
|
-
|
|
26
|
+
proxy: ProxyBindings;
|
|
27
|
+
navigation: NavigationBindings;
|
|
26
28
|
}
|
|
27
29
|
|
|
28
30
|
export const RunnerKind = 'HttpClient#ProjectRunner';
|
|
@@ -6,44 +6,28 @@ export default css`
|
|
|
6
6
|
.surface3,
|
|
7
7
|
.surface4,
|
|
8
8
|
.surface5 {
|
|
9
|
-
/* background-color: var(--md-sys-color-surface); */
|
|
10
9
|
color: var(--md-sys-color-on-surface);
|
|
11
|
-
position: relative;
|
|
12
|
-
z-index: 0;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.surface1::before,
|
|
16
|
-
.surface2::before,
|
|
17
|
-
.surface3::before,
|
|
18
|
-
.surface4::before,
|
|
19
|
-
.surface5::before {
|
|
20
|
-
content: '';
|
|
21
|
-
background-color: var(--md-sys-color-primary);
|
|
22
|
-
position: absolute;
|
|
23
|
-
inset: 0;
|
|
24
|
-
border-radius: inherit;
|
|
25
|
-
z-index: -1;
|
|
26
10
|
}
|
|
27
11
|
|
|
28
|
-
.surface1
|
|
29
|
-
|
|
12
|
+
.surface1 {
|
|
13
|
+
background-color: var(--md-sys-color-primary-05a);
|
|
30
14
|
}
|
|
31
15
|
|
|
32
|
-
.surface2
|
|
33
|
-
/*
|
|
34
|
-
|
|
16
|
+
.surface2 {
|
|
17
|
+
/* background-color: var(--md-sys-color-primary-08a); */
|
|
18
|
+
background-color: var(--md-sys-color-primary-05a);
|
|
35
19
|
}
|
|
36
20
|
|
|
37
|
-
.surface3
|
|
38
|
-
|
|
21
|
+
.surface3 {
|
|
22
|
+
background-color: var(--md-sys-color-primary-11a);
|
|
39
23
|
}
|
|
40
24
|
|
|
41
|
-
.surface4
|
|
42
|
-
|
|
25
|
+
.surface4 {
|
|
26
|
+
background-color: var(--md-sys-color-primary-12a);
|
|
43
27
|
}
|
|
44
28
|
|
|
45
|
-
.surface5
|
|
46
|
-
|
|
29
|
+
.surface5 {
|
|
30
|
+
background-color: var(--md-sys-color-primary-13a);
|
|
47
31
|
}
|
|
48
32
|
|
|
49
33
|
/* .surface1 > *,
|
package/src/styles/m3/theme.css
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
html.theme-light {
|
|
2
2
|
--md-sys-color-primary: var(--md-sys-color-primary-light);
|
|
3
|
+
--md-sys-color-primary-05a: var(--md-sys-color-primary-light-05a);
|
|
4
|
+
--md-sys-color-primary-08a: var(--md-sys-color-primary-light-08a);
|
|
5
|
+
--md-sys-color-primary-11a: var(--md-sys-color-primary-light-11a);
|
|
6
|
+
--md-sys-color-primary-12a: var(--md-sys-color-primary-light-12a);
|
|
7
|
+
--md-sys-color-primary-13a: var(--md-sys-color-primary-light-13a);
|
|
3
8
|
--md-sys-color-on-primary: var(--md-sys-color-on-primary-light);
|
|
4
9
|
--md-sys-color-primary-container: var(--md-sys-color-primary-container-light);
|
|
5
10
|
--md-sys-color-on-primary-container: var(--md-sys-color-on-primary-container-light);
|
|
@@ -37,10 +42,28 @@ html.theme-light {
|
|
|
37
42
|
--md-sys-elevation-3: var(--md-sys-elevation-3-light);
|
|
38
43
|
--md-sys-elevation-4: var(--md-sys-elevation-4-light);
|
|
39
44
|
--md-sys-elevation-5: var(--md-sys-elevation-5-light);
|
|
45
|
+
|
|
46
|
+
/* Prism */
|
|
47
|
+
--code-operator-value-color: #a67f59;
|
|
48
|
+
--code-operator-value-background-color: hsla(0, 0%, 100%, 0.5);
|
|
49
|
+
--code-keyword-value-color: #07a;
|
|
50
|
+
--code-function-value-color: #dd4a68;
|
|
51
|
+
--code-variable-value-color: #e90;
|
|
52
|
+
--code-type-text-value-color: #690;
|
|
53
|
+
--code-type-boolean-value-color: #905;
|
|
54
|
+
--code-type-number-value-color: #905;
|
|
55
|
+
--code-property-value-color: #905;
|
|
56
|
+
--code-punctuation-value-color: #999;
|
|
57
|
+
--code-token-comment-value-color: slategray;
|
|
40
58
|
}
|
|
41
59
|
|
|
42
60
|
html.theme-dark {
|
|
43
61
|
--md-sys-color-primary: var(--md-sys-color-primary-dark);
|
|
62
|
+
--md-sys-color-primary-05a: var(--md-sys-color-primary-dark-05a);
|
|
63
|
+
--md-sys-color-primary-08a: var(--md-sys-color-primary-dark-08a);
|
|
64
|
+
--md-sys-color-primary-11a: var(--md-sys-color-primary-dark-11a);
|
|
65
|
+
--md-sys-color-primary-12a: var(--md-sys-color-primary-dark-12a);
|
|
66
|
+
--md-sys-color-primary-13a: var(--md-sys-color-primary-dark-13a);
|
|
44
67
|
--md-sys-color-on-primary: var(--md-sys-color-on-primary-dark);
|
|
45
68
|
--md-sys-color-primary-container: var(--md-sys-color-primary-container-dark);
|
|
46
69
|
--md-sys-color-on-primary-container: var(--md-sys-color-on-primary-container-dark);
|
|
@@ -78,4 +101,17 @@ html.theme-dark {
|
|
|
78
101
|
--md-sys-elevation-3: var(--md-sys-elevation-3-dark);
|
|
79
102
|
--md-sys-elevation-4: var(--md-sys-elevation-4-dark);
|
|
80
103
|
--md-sys-elevation-5: var(--md-sys-elevation-5-dark);
|
|
104
|
+
|
|
105
|
+
/* Prism */
|
|
106
|
+
--code-operator-value-color: #ffc185;
|
|
107
|
+
--code-operator-value-background-color: transparent;
|
|
108
|
+
--code-keyword-value-color: #00b2ff;
|
|
109
|
+
--code-function-value-color: #ff7d97;
|
|
110
|
+
--code-variable-value-color: #e90;
|
|
111
|
+
--code-type-text-value-color: #aaff00;
|
|
112
|
+
--code-type-boolean-value-color: #f882c4;
|
|
113
|
+
--code-type-number-value-color: #f882c4;
|
|
114
|
+
--code-property-value-color: #ff9bd3;
|
|
115
|
+
--code-punctuation-value-color: #aaa;
|
|
116
|
+
--code-token-comment-value-color: #93a9bf;
|
|
81
117
|
}
|
package/src/styles/m3/tokens.css
CHANGED
|
@@ -86,6 +86,11 @@ html {
|
|
|
86
86
|
--md-ref-palette-neutral-variant100: #FFFFFF;
|
|
87
87
|
/* light */
|
|
88
88
|
--md-sys-color-primary-light: #6750A4;
|
|
89
|
+
--md-sys-color-primary-light-05a: #6750a40d;
|
|
90
|
+
--md-sys-color-primary-light-08a: #6750a414;
|
|
91
|
+
--md-sys-color-primary-light-11a: #6750a41c;
|
|
92
|
+
--md-sys-color-primary-light-12a: #6750a41f;
|
|
93
|
+
--md-sys-color-primary-light-13a: #6750a421;
|
|
89
94
|
--md-sys-color-on-primary-light: #FFFFFF;
|
|
90
95
|
--md-sys-color-primary-container-light: #EADDFF;
|
|
91
96
|
--md-sys-color-on-primary-container-light: #21005D;
|
|
@@ -117,6 +122,11 @@ html {
|
|
|
117
122
|
--md-sys-color-scrim-light: #000000;
|
|
118
123
|
/* dark */
|
|
119
124
|
--md-sys-color-primary-dark: #D0BCFF;
|
|
125
|
+
--md-sys-color-primary-dark-05a: #D0BCFF0d;
|
|
126
|
+
--md-sys-color-primary-dark-08a: #D0BCFF14;
|
|
127
|
+
--md-sys-color-primary-dark-11a: #D0BCFF1c;
|
|
128
|
+
--md-sys-color-primary-dark-12a: #D0BCFF1f;
|
|
129
|
+
--md-sys-color-primary-dark-13a: #D0BCFF21;
|
|
120
130
|
--md-sys-color-on-primary-dark: #381E72;
|
|
121
131
|
--md-sys-color-primary-container-dark: #4F378B;
|
|
122
132
|
--md-sys-color-on-primary-container-dark: #EADDFF;
|
|
@@ -277,6 +287,7 @@ html {
|
|
|
277
287
|
--md-sys-shape-corner-extra-small-top: 4px 4px 0px 0px;
|
|
278
288
|
--md-sys-shape-corner-small: 8px;
|
|
279
289
|
--md-sys-shape-corner-small-top: 8px 8px 0 0;
|
|
290
|
+
--md-sys-shape-corner-small-bottom: 0 0 8px 8px;
|
|
280
291
|
--md-sys-shape-corner-medium: 12px;
|
|
281
292
|
--md-sys-shape-corner-medium-top: 12px 12px 0 0;
|
|
282
293
|
--md-sys-shape-corner-large: 16px;
|
package/src/ui/UiElement.ts
CHANGED
|
@@ -132,4 +132,11 @@ export abstract class UiElement extends LitElement implements ActionControllerHo
|
|
|
132
132
|
handleKeyUp(e: KeyboardEvent): void {
|
|
133
133
|
this.actionController.keyUp(e);
|
|
134
134
|
}
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* A common way for an element to notify a change.
|
|
138
|
+
*/
|
|
139
|
+
notifyChange(): void {
|
|
140
|
+
this.dispatchEvent(new Event('change'));
|
|
141
|
+
}
|
|
135
142
|
}
|
|
@@ -24,7 +24,7 @@ export default css`
|
|
|
24
24
|
text-decoration: var(--md-sys-typescale-label-large-text-decoration);
|
|
25
25
|
|
|
26
26
|
border: 1px var(--md-sys-color-outline) solid;
|
|
27
|
-
color:
|
|
27
|
+
color: var(--md-sys-color-on-surface);
|
|
28
28
|
box-sizing: border-box;
|
|
29
29
|
}
|
|
30
30
|
|
|
@@ -79,6 +79,8 @@ export default css`
|
|
|
79
79
|
display: block;
|
|
80
80
|
width: 0px;
|
|
81
81
|
height: inherit;
|
|
82
|
+
|
|
83
|
+
fill: var(--md-sys-color-on-surface);
|
|
82
84
|
}
|
|
83
85
|
|
|
84
86
|
.check-mark {
|