@api-client/ui 0.2.3 → 0.2.5
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/.aiexclude +3 -0
- package/.vscode/settings.json +6 -3
- package/build/src/elements/authorization/ui/ApiKeyAuthorization.d.ts +1 -1
- package/build/src/elements/authorization/ui/ApiKeyAuthorization.d.ts.map +1 -1
- package/build/src/elements/authorization/ui/ApiKeyAuthorization.js +7 -7
- package/build/src/elements/authorization/ui/ApiKeyAuthorization.js.map +1 -1
- package/build/src/elements/authorization/ui/Authorization.styles.js +4 -4
- package/build/src/elements/authorization/ui/Authorization.styles.js.map +1 -1
- package/build/src/elements/authorization/ui/BasicAuthorization.d.ts +1 -1
- package/build/src/elements/authorization/ui/BasicAuthorization.d.ts.map +1 -1
- package/build/src/elements/authorization/ui/BasicAuthorization.js +5 -5
- package/build/src/elements/authorization/ui/BasicAuthorization.js.map +1 -1
- package/build/src/elements/authorization/ui/BearerAuthorization.d.ts +1 -1
- package/build/src/elements/authorization/ui/BearerAuthorization.d.ts.map +1 -1
- package/build/src/elements/authorization/ui/BearerAuthorization.js +3 -3
- package/build/src/elements/authorization/ui/BearerAuthorization.js.map +1 -1
- package/build/src/elements/authorization/ui/NtlmAuthorization.d.ts +1 -1
- package/build/src/elements/authorization/ui/NtlmAuthorization.d.ts.map +1 -1
- package/build/src/elements/authorization/ui/NtlmAuthorization.js +7 -7
- package/build/src/elements/authorization/ui/NtlmAuthorization.js.map +1 -1
- package/build/src/elements/authorization/ui/OAuth2Authorization.d.ts +1 -1
- package/build/src/elements/authorization/ui/OAuth2Authorization.d.ts.map +1 -1
- package/build/src/elements/authorization/ui/OAuth2Authorization.js +32 -27
- package/build/src/elements/authorization/ui/OAuth2Authorization.js.map +1 -1
- package/build/src/elements/authorization/ui/OidcAuthorization.js +4 -4
- package/build/src/elements/authorization/ui/OidcAuthorization.js.map +1 -1
- package/build/src/elements/autocomplete/autocomplete-input.d.ts +10 -0
- package/build/src/elements/autocomplete/autocomplete-input.d.ts.map +1 -0
- package/build/src/{md/text-field/ui-text-field.js → elements/autocomplete/autocomplete-input.js} +9 -9
- package/build/src/elements/autocomplete/autocomplete-input.js.map +1 -0
- package/build/src/elements/autocomplete/internals/autocomplete.d.ts +257 -0
- package/build/src/elements/autocomplete/internals/autocomplete.d.ts.map +1 -0
- package/build/src/elements/autocomplete/internals/autocomplete.js +619 -0
- package/build/src/elements/autocomplete/internals/autocomplete.js.map +1 -0
- package/build/src/elements/autocomplete/internals/autocomplete.styles.d.ts +3 -0
- package/build/src/elements/autocomplete/internals/autocomplete.styles.d.ts.map +1 -0
- package/build/src/elements/autocomplete/internals/autocomplete.styles.js +25 -0
- package/build/src/elements/autocomplete/internals/autocomplete.styles.js.map +1 -0
- package/build/src/elements/dialog/internals/DeleteCookieAction.element.d.ts +1 -1
- package/build/src/elements/dialog/internals/DeleteCookieAction.element.d.ts.map +1 -1
- package/build/src/elements/dialog/internals/DeleteCookieAction.element.js +5 -5
- package/build/src/elements/dialog/internals/DeleteCookieAction.element.js.map +1 -1
- package/build/src/elements/dialog/internals/Rename.d.ts +1 -1
- package/build/src/elements/dialog/internals/Rename.d.ts.map +1 -1
- package/build/src/elements/dialog/internals/Rename.js +3 -3
- package/build/src/elements/dialog/internals/Rename.js.map +1 -1
- package/build/src/elements/dialog/internals/SetCookieAction.element.d.ts +1 -1
- package/build/src/elements/dialog/internals/SetCookieAction.element.d.ts.map +1 -1
- package/build/src/elements/dialog/internals/SetCookieAction.element.js +9 -9
- package/build/src/elements/dialog/internals/SetCookieAction.element.js.map +1 -1
- package/build/src/elements/environment/EnvironmentEditor.d.ts +1 -1
- package/build/src/elements/environment/EnvironmentEditor.d.ts.map +1 -1
- package/build/src/elements/environment/EnvironmentEditor.js +3 -3
- package/build/src/elements/environment/EnvironmentEditor.js.map +1 -1
- package/build/src/elements/environment/EnvironmentEditor.styles.js +1 -1
- package/build/src/elements/environment/EnvironmentEditor.styles.js.map +1 -1
- package/build/src/elements/environment/ServerEditor.d.ts +1 -1
- package/build/src/elements/environment/ServerEditor.d.ts.map +1 -1
- package/build/src/elements/environment/ServerEditor.js +7 -7
- package/build/src/elements/environment/ServerEditor.js.map +1 -1
- package/build/src/elements/environment/ServerEditor.styles.js +1 -1
- package/build/src/elements/environment/ServerEditor.styles.js.map +1 -1
- package/build/src/elements/http/BodyMultipartEditor.d.ts.map +1 -1
- package/build/src/elements/http/BodyMultipartEditor.js +4 -0
- package/build/src/elements/http/BodyMultipartEditor.js.map +1 -1
- package/build/src/elements/http/CertificateAdd.element.d.ts +1 -1
- package/build/src/elements/http/CertificateAdd.element.d.ts.map +1 -1
- package/build/src/elements/http/CertificateAdd.element.js +8 -8
- package/build/src/elements/http/CertificateAdd.element.js.map +1 -1
- package/build/src/elements/http/CertificateAdd.styles.js +1 -1
- package/build/src/elements/http/CertificateAdd.styles.js.map +1 -1
- package/build/src/elements/http/HttpAssertions.element.js +3 -3
- package/build/src/elements/http/HttpAssertions.element.js.map +1 -1
- package/build/src/elements/http/HttpFlows.element.js +3 -3
- package/build/src/elements/http/HttpFlows.element.js.map +1 -1
- package/build/src/elements/http/HttpFlowsUi.d.ts +1 -1
- package/build/src/elements/http/HttpFlowsUi.d.ts.map +1 -1
- package/build/src/elements/http/HttpFlowsUi.js +31 -31
- package/build/src/elements/http/HttpFlowsUi.js.map +1 -1
- package/build/src/elements/http/RequestConfigElement.d.ts +1 -1
- package/build/src/elements/http/RequestConfigElement.d.ts.map +1 -1
- package/build/src/elements/http/RequestConfigElement.js +7 -7
- package/build/src/elements/http/RequestConfigElement.js.map +1 -1
- package/build/src/elements/http/UrlParamsForm.d.ts +1 -1
- package/build/src/elements/http/UrlParamsForm.d.ts.map +1 -1
- package/build/src/elements/http/UrlParamsForm.js +1 -1
- package/build/src/elements/http/UrlParamsForm.js.map +1 -1
- package/build/src/elements/project/ProjectRunner.d.ts +1 -1
- package/build/src/elements/project/ProjectRunner.d.ts.map +1 -1
- package/build/src/elements/project/ProjectRunner.js +5 -5
- package/build/src/elements/project/ProjectRunner.js.map +1 -1
- package/build/src/md/input/Input.d.ts +0 -15
- package/build/src/md/input/Input.d.ts.map +1 -1
- package/build/src/md/input/Input.js +7 -42
- package/build/src/md/input/Input.js.map +1 -1
- package/build/src/md/list/internals/List.d.ts +7 -2
- package/build/src/md/list/internals/List.d.ts.map +1 -1
- package/build/src/md/list/internals/List.js +6 -0
- package/build/src/md/list/internals/List.js.map +1 -1
- package/build/src/md/list/internals/ListItem.styles.d.ts.map +1 -1
- package/build/src/md/list/internals/ListItem.styles.js +8 -0
- package/build/src/md/list/internals/ListItem.styles.js.map +1 -1
- package/build/src/md/listbox/internals/Listbox.d.ts +2 -2
- package/build/src/md/listbox/internals/Listbox.d.ts.map +1 -1
- package/build/src/md/listbox/internals/Listbox.js.map +1 -1
- package/build/src/md/text-area/internals/TextAreaElement.d.ts.map +1 -1
- package/build/src/md/text-area/internals/TextAreaElement.js +0 -5
- package/build/src/md/text-area/internals/TextAreaElement.js.map +1 -1
- package/build/src/md/text-area/ui-text-area.d.ts.map +1 -1
- package/build/src/md/text-area/ui-text-area.js +3 -2
- package/build/src/md/text-area/ui-text-area.js.map +1 -1
- package/build/src/md/text-field/internals/{TextFieldElement.d.ts → TextField.d.ts} +2 -2
- package/build/src/md/text-field/internals/TextField.d.ts.map +1 -0
- package/build/src/md/text-field/internals/{TextFieldElement.js → TextField.js} +2 -5
- package/build/src/md/text-field/internals/TextField.js.map +1 -0
- package/build/src/md/text-field/internals/{TextField.styles.d.ts → common.styles.d.ts} +1 -1
- package/build/src/md/text-field/internals/common.styles.d.ts.map +1 -0
- package/build/src/md/text-field/internals/{TextField.styles.js → common.styles.js} +8 -94
- package/build/src/md/text-field/internals/common.styles.js.map +1 -0
- package/build/src/md/text-field/internals/filled.styles.d.ts +3 -0
- package/build/src/md/text-field/internals/filled.styles.d.ts.map +1 -0
- package/build/src/md/text-field/internals/filled.styles.js +107 -0
- package/build/src/md/text-field/internals/filled.styles.js.map +1 -0
- package/build/src/md/text-field/internals/outlined.styles.d.ts +3 -0
- package/build/src/md/text-field/internals/outlined.styles.d.ts.map +1 -0
- package/build/src/md/text-field/internals/outlined.styles.js +43 -0
- package/build/src/md/text-field/internals/outlined.styles.js.map +1 -0
- package/build/src/md/text-field/ui-filled-text-field.d.ts +11 -0
- package/build/src/md/text-field/ui-filled-text-field.d.ts.map +1 -0
- package/build/src/md/text-field/ui-filled-text-field.js +28 -0
- package/build/src/md/text-field/ui-filled-text-field.js.map +1 -0
- package/build/src/md/text-field/ui-outlined-text-field.d.ts +11 -0
- package/build/src/md/text-field/ui-outlined-text-field.d.ts.map +1 -0
- package/build/src/md/text-field/ui-outlined-text-field.js +28 -0
- package/build/src/md/text-field/ui-outlined-text-field.js.map +1 -0
- package/build/src/types/input.d.ts +1 -1
- package/build/src/types/input.d.ts.map +1 -1
- package/build/src/types/input.js.map +1 -1
- package/demo/elements/authorization/oauth-authorize.html +4 -4
- package/demo/elements/authorization/oauth-authorize.ts +1 -1
- package/demo/elements/autocomplete/index.html +64 -0
- package/demo/elements/autocomplete/index.ts +171 -0
- package/demo/elements/http/body-editor.ts +3 -3
- package/demo/elements/index.html +15 -11
- package/demo/md/index.html +1 -1
- package/demo/md/inputs/input.html +10 -15
- package/demo/md/inputs/input.ts +389 -101
- package/demo/page.css +4 -0
- package/package.json +1 -1
- package/src/elements/authorization/ui/ApiKeyAuthorization.ts +7 -7
- package/src/elements/authorization/ui/Authorization.styles.ts +4 -4
- package/src/elements/authorization/ui/BasicAuthorization.ts +5 -5
- package/src/elements/authorization/ui/BearerAuthorization.ts +3 -3
- package/src/elements/authorization/ui/NtlmAuthorization.ts +7 -7
- package/src/elements/authorization/ui/OAuth2Authorization.ts +32 -27
- package/src/elements/authorization/ui/OidcAuthorization.ts +4 -4
- package/src/elements/autocomplete/autocomplete-input.ts +14 -0
- package/src/elements/autocomplete/internals/autocomplete.styles.ts +25 -0
- package/src/elements/autocomplete/internals/autocomplete.ts +599 -0
- package/src/elements/dialog/internals/DeleteCookieAction.element.ts +5 -5
- package/src/elements/dialog/internals/Rename.ts +3 -3
- package/src/elements/dialog/internals/SetCookieAction.element.ts +9 -9
- package/src/elements/environment/EnvironmentEditor.styles.ts +1 -1
- package/src/elements/environment/EnvironmentEditor.ts +3 -3
- package/src/elements/environment/ServerEditor.styles.ts +1 -1
- package/src/elements/environment/ServerEditor.ts +7 -7
- package/src/elements/http/BodyMultipartEditor.ts +4 -0
- package/src/elements/http/CertificateAdd.element.ts +8 -8
- package/src/elements/http/CertificateAdd.styles.ts +1 -1
- package/src/elements/http/HttpAssertions.element.ts +3 -3
- package/src/elements/http/HttpFlows.element.ts +3 -3
- package/src/elements/http/HttpFlowsUi.ts +31 -31
- package/src/elements/http/RequestConfigElement.ts +7 -7
- package/src/elements/http/UrlParamsForm.ts +1 -1
- package/src/elements/project/ProjectRunner.ts +5 -5
- package/src/md/input/Input.ts +6 -21
- package/src/md/list/internals/List.ts +14 -2
- package/src/md/list/internals/ListItem.styles.ts +8 -0
- package/src/md/listbox/internals/Listbox.ts +2 -2
- package/src/md/text-area/internals/TextAreaElement.ts +0 -5
- package/src/md/text-area/ui-text-area.ts +3 -2
- package/src/md/text-field/internals/{TextFieldElement.ts → TextField.ts} +1 -4
- package/src/md/text-field/internals/{TextField.styles.ts → common.styles.ts} +7 -93
- package/src/md/text-field/internals/filled.styles.ts +107 -0
- package/src/md/text-field/internals/outlined.styles.ts +43 -0
- package/src/md/text-field/ui-filled-text-field.ts +16 -0
- package/src/md/text-field/ui-outlined-text-field.ts +16 -0
- package/src/types/input.ts +0 -1
- package/test/elements/authorization/basic-method.test.ts +3 -3
- package/test/elements/authorization/bearer-method.test.ts +2 -2
- package/test/elements/authorization/ntlm-method.test.ts +4 -4
- package/test/elements/autocomplete/autocomplete-input.spec.ts +643 -0
- package/test/elements/http/BodyMultipartEditorElement.test.ts +15 -16
- package/test/elements/http/CertificateAdd.test.ts +11 -11
- package/test/elements/http/HttpAssertions.test.ts +9 -9
- package/test/elements/http/HttpFlows.test.ts +4 -4
- package/build/src/md/text-field/internals/TextField.styles.d.ts.map +0 -1
- package/build/src/md/text-field/internals/TextField.styles.js.map +0 -1
- package/build/src/md/text-field/internals/TextFieldElement.d.ts.map +0 -1
- package/build/src/md/text-field/internals/TextFieldElement.js.map +0 -1
- package/build/src/md/text-field/ui-text-field.d.ts +0 -11
- package/build/src/md/text-field/ui-text-field.d.ts.map +0 -1
- package/build/src/md/text-field/ui-text-field.js.map +0 -1
- package/src/md/text-field/ui-text-field.ts +0 -15
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"autocomplete.js","sourceRoot":"","sources":["../../../../../src/elements/autocomplete/internals/autocomplete.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,UAAU,EAAkC,MAAM,KAAK,CAAA;AACtE,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AAGnD,OAAO,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAA;;sBAkHV,UAAU;;;;;;;;;;;;;;iBAA/B,YAAa,SAAQ,WAAU;;;mCAcjD,KAAK,EAAE;wCAcP,QAAQ,EAAE;4CA+KV,KAAK;uCAmBL,KAAK;yCAcL,KAAK;2CAkDL,KAAK;kDAmBL,KAAK;uDAkBL,KAAK;YArTG,0KAAmB,OAAO,6BAAP,OAAO,yFAAK;YAc5B,yLAAS,YAAY,6BAAZ,YAAY,mGAA6B;YAgL9D,mMAAU,gBAAgB,6DAWzB;YAQD,oLAAU,WAAW,6DAIpB;YAUD,0LAAU,aAAa,6DA0BtB;YAwBD,gMAAU,eAAe,6DAWxB;YAQD,qNAAU,sBAAsB,6DAW/B;YAOD,oOAAU,2BAA2B,6DAOpC;;;QA1UkB,gBAAgB;YACjC,OAAO,IAAI,CAAA;QACb,CAAC;QAED;;WAEG;QACO,QAAQ,GARC,mDAAY,CAQM;QAM5B,2EAA6B,EAAE;QAExC;;;;;;;;;;;W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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+GG;AACH,4BAgeC","sourcesContent":["import { html, LitElement, PropertyValues, TemplateResult } from 'lit'\nimport { property, state } from 'lit/decorators.js'\nimport type UiListbox from '../../../md/listbox/internals/Listbox.js'\nimport type UiListItem from '../../../md/list/internals/ListItem.js'\nimport { bound } from '../../../decorators/bound.js'\n\n/**\n * An accessible and performant autocomplete component that enhances a text input with a list of suggestions.\n *\n * The `autocomplete-input` component provides a flexible way to add autocomplete functionality\n * to any text input. It works by coordinating a slotted input element with a slotted `ui-listbox`\n * containing suggestions.\n *\n * Key Features:\n *\n * - **Popover Management**: Automatically shows and hides the suggestions popover based on input focus\n * and user interaction.\n * - **Keyboard Navigation**: Allows users to navigate suggestions using ArrowUp, ArrowDown keys directly\n * from the input. Enter selects a suggestion, and Escape closes the popover.\n * The suggestion list itself never gains focus.\n * - **Dynamic Filtering**: Filters the list of suggestions as the user types into the input. Items not matching\n * the query are hidden (not removed).\n * - By default, filtering checks `item.dataset.value` and then `item.textContent`.\n * - If a `ui-list-item` has a `data-index` attribute (e.g., `data-index=\"name email\"`), filtering will search\n * within the specified `data-*` attributes (e.g., `data-name`, `data-email`).\n * - **Mutation Awareness**: Reacts to changes in slotted suggestions, re-filtering them if necessary.\n * - **Event-Driven**: Notifies the application via an `autocomplete` event when a suggestion is selected.\n * The component itself does not modify the input's value, giving the application author full control.\n *\n * ### Accessibility\n *\n * The `autocomplete-input` component is designed with accessibility at its core:\n * - **Keyboard Navigation**: Full keyboard support for navigating suggestions (ArrowUp, ArrowDown),\n * selecting (Enter), and closing (Escape), all while focus remains on the input field.\n * - **ARIA Attributes**: While the `autocomplete-input` manages ARIA attributes related to the popover's\n * state, the slotted `ui-listbox` is responsible for its internal ARIA roles and states\n * (e.g., `role=\"listbox\"`, `aria-activedescendant`).\n * - **Labeling Suggestions**: It is **crucial** for accessibility that the slotted `ui-listbox`\n * has an `aria-label` attribute. This provides a descriptive name for the list of suggestions,\n * which is announced by screen readers.\n *\n * The component uses CSS anchor positioning to place the suggestions popover relative to the input.\n * Ensure your `ui-listbox` is styled appropriately for popover display (e.g., `popover=\"manual\"`, `position-anchor`).\n * The component will manage `showPopover()` and `hidePopover()` calls.\n *\n * @slot input - The input element that will be used for autocomplete. This element should be an `HTMLInputElement`\n * or behave like one (have a `value` property and dispatch `input`, `focus`, `blur`, and `keydown`\n * events).\n * @slot suggestions - The `ui-listbox` element containing `ui-list-item` elements as suggestions.\n * @slot anchor - An optional element that points to element that will be used as the anchor for the popover.\n * This is useful if you want to position the suggestions relative to a different element than the input.\n * If not provided, the input element will be used as the anchor.\n * @slot Any additional content that should be rendered inside the component.\n *\n * @fires autocomplete - Dispatched when a suggestion is selected by the user (e.g., via click or Enter key).\n * The `event.detail` object contains:\n * - `item`: The selected `UiListItem` instance.\n *\n * @example\n * ```html\n * <autocomplete-input @autocomplete=\"${this.handleAutocompleteSelection}\">\n * <input slot=\"input\" type=\"text\" placeholder=\"Search fruits...\" />\n * <ui-listbox slot=\"suggestions\">\n * <ui-list-item data-value=\"apple\">Apple</ui-list-item>\n * <ui-list-item data-value=\"banana\">Banana</ui-list-item>\n * <ui-list-item data-value=\"cherry\">Cherry</ui-list-item>\n * </ui-listbox>\n * <!-- With aria-label for accessibility -->\n * <ui-listbox slot=\"suggestions\" aria-label=\"Fruit suggestions\">\n * <ui-list-item data-value=\"apple\">Apple</ui-list-item>\n * <ui-list-item data-value=\"banana\">Banana</ui-list-item>\n * <ui-list-item data-value=\"cherry\">Cherry</ui-list-item>\n * </ui-listbox>\n * </autocomplete-input>\n *\n * <script>\n * // In your component/script\n * handleAutocompleteSelection(event) {\n * const selectedItem = event.detail.item;\n * const inputElement = this.shadowRoot.querySelector('input[slot=\"input\"]');\n * if (inputElement) {\n * inputElement.value = selectedItem.dataset.value || selectedItem.textContent;\n * }\n * console.log('Selected:', selectedItem.dataset.value);\n * }\n * </script>\n * ```\n *\n * @example Dynamic filtering with `data-index`\n * ```html\n * <autocomplete-input @autocomplete=\"${this.handleUserSelection}\">\n * <input slot=\"input\" type=\"text\" placeholder=\"Search users...\" />\n * <ui-listbox slot=\"suggestions\" aria-label=\"User suggestions\">\n * <ui-list-item data-id=\"1\" data-name=\"Alice Wonderland\" data-email=\"alice@example.com\" data-index=\"name email\">\n * Alice Wonderland\n * <span slot=\"supporting-text\">alice@example.com</span>\n * </ui-list-item>\n * <ui-list-item data-id=\"2\" data-name=\"Bob The Builder\" data-email=\"bob@example.com\" data-index=\"name email\">\n * Bob The Builder\n * <span slot=\"supporting-text\">bob@example.com</span>\n * </ui-list-item>\n * </ui-listbox>\n * </autocomplete-input>\n *\n * <script>\n * // In your component/script\n * handleUserSelection(event) {\n * const selectedItem = event.detail.item;\n * const inputElement = this.shadowRoot.querySelector('input[slot=\"input\"]');\n * if (inputElement) {\n * // You might want to display the name, but store the ID\n * inputElement.value = selectedItem.dataset.name;\n * }\n * console.log('Selected user ID:', selectedItem.dataset.id);\n * }\n * </script>\n * ```\n */\nexport default class Autocomplete extends LitElement {\n protected override createRenderRoot(): HTMLElement | DocumentFragment {\n return this\n }\n\n /**\n * The MutationObserver instance used to watch for changes in slotted children.\n */\n protected observer?: MutationObserver\n\n /**\n * The ID of the input element, generated if not provided.\n * This is used for CSS anchoring and to ensure unique IDs for accessibility.\n */\n @state() protected accessor inputId = ''\n\n /**\n * The position area for the suggestions popover.\n * This can be 'bottom' or 'top', depending on available space.\n * Default is 'bottom'.\n *\n * Note, this is set dynamically based on available space\n * and the position of the input element. This only sets the initial value.\n *\n * @attribute\n * @type {'bottom' | 'top'}\n * @default 'bottom'\n */\n @property() accessor positionArea: 'bottom' | 'top' = 'bottom'\n\n /**\n * The reference to the slotted input element.\n * This should be an `HTMLInputElement` or behave like one.\n */\n protected inputRef?: HTMLInputElement | HTMLElement | null\n /**\n * The reference to the slotted suggestions element, which should be a `ui-listbox`.\n * This is used to manage the suggestions popover and filtering.\n */\n protected suggestionsRef?: UiListbox | null\n\n /**\n * Checks if the suggestions popover is currently open.\n */\n get opened(): boolean {\n return this.suggestionsRef?.matches(':popover-open') || false\n }\n\n override connectedCallback(): void {\n super.connectedCallback()\n this.observer = new MutationObserver(this.handleMutations.bind(this))\n this.observer.observe(this, { childList: true })\n if (!this.id) {\n this.id = `autocomplete-${Math.random().toString(36).substring(2, 15)}`\n }\n }\n\n override disconnectedCallback(): void {\n super.disconnectedCallback()\n this.observer?.disconnect()\n this.observer = undefined\n this.clearInputListeners()\n this.clearSuggestionsListeners()\n }\n\n protected override firstUpdated(cp: PropertyValues): void {\n super.firstUpdated(cp)\n this.firstSetup()\n }\n\n /**\n * Performs initial setup after the first update, ensuring that slotted input\n * and suggestions elements are configured.\n */\n async firstSetup(): Promise<void> {\n await this.updateComplete\n const input = this.querySelector('[slot=\"input\"]') as HTMLElement | null\n const suggestions = this.querySelector('[slot=\"suggestions\"]') as HTMLElement | null\n if (input) {\n this.setupInput(input)\n }\n if (suggestions) {\n this.setupSuggestions(suggestions as UiListbox)\n }\n }\n\n /**\n * Handles mutations observed on the component's slotted children.\n * This is used to set up or tear down input and suggestions elements when they are added or removed.\n * @param mutations An array of MutationRecord objects.\n */\n protected handleMutations(mutations: MutationRecord[]): void {\n for (const mutation of mutations) {\n if (mutation.type === 'childList') {\n for (const node of mutation.removedNodes) {\n if (node instanceof HTMLElement) {\n if (node.slot === 'input' && this.inputRef === node) {\n this.clearInputListeners()\n } else if (node.slot === 'suggestions' && this.suggestionsRef === node) {\n this.clearSuggestionsListeners()\n }\n }\n }\n for (const node of mutation.addedNodes) {\n if (node instanceof HTMLElement) {\n if (node.slot === 'input') {\n this.setupInput(node)\n } else if (node.slot === 'suggestions') {\n this.setupSuggestions(node as UiListbox)\n }\n }\n }\n }\n }\n }\n\n /**\n * Clears event listeners from the current input reference and resets it.\n */\n protected clearInputListeners(): void {\n if (this.inputRef) {\n this.inputRef.removeEventListener('focus', this.handleInputFocus)\n this.inputRef.removeEventListener('input', this.handleInput)\n this.inputRef.removeEventListener('keydown', this.handleKeydown as EventListener)\n this.inputRef.removeEventListener('blur', this.handleInputBlur)\n }\n this.inputRef = null\n }\n\n /**\n * Clears event listeners from the current suggestions reference and resets it.\n */\n protected clearSuggestionsListeners(): void {\n if (this.suggestionsRef) {\n this.suggestionsRef.removeEventListener('select', this.handleSuggestionSelect as EventListener)\n // If ui-listbox uses a slot for its items, listen to its slotchange\n this.suggestionsRef.removeEventListener('itemschange', this.handleSuggestionsSlotChange)\n if (this.suggestionsRef.matches(':popover-open')) {\n this.suggestionsRef.hidePopover()\n }\n }\n this.suggestionsRef = null\n }\n\n /**\n * Sets up the slotted input element.\n * Assigns an ID if necessary, sets up CSS anchoring, and attaches event listeners.\n * @param input The HTMLElement to be used as the input.\n */\n protected setupInput(input: HTMLElement): void {\n this.clearInputListeners() // Clear any old listeners\n if (!input.id) {\n this.inputId = `autocomplete-input-${Math.random().toString(36).substring(2, 15)}`\n input.id = this.inputId\n } else {\n this.inputId = input.id\n }\n const anchorElement = this.querySelector('[slot=\"anchor\"]') as HTMLElement | null\n // Ensure CSS anchor positioning can work\n const anchor = anchorElement || input\n anchor.style.setProperty('anchor-name', `--${this.inputId}`)\n\n this.inputRef = input as HTMLInputElement // Assuming it behaves like an input\n this.inputRef.addEventListener('focus', this.handleInputFocus)\n this.inputRef.addEventListener('input', this.handleInput)\n this.inputRef.addEventListener('keydown', this.handleKeydown as EventListener)\n this.inputRef.addEventListener('blur', this.handleInputBlur)\n\n // Apply initial filtering if suggestions are already present\n if (this.suggestionsRef) {\n this.suggestionsRef.style.setProperty('position-anchor', `--${this.inputId}`)\n this.filterSuggestions((this.inputRef as HTMLInputElement).value || '')\n }\n }\n\n /**\n * Sets up the slotted suggestions element (assumed to be a `UiListbox`).\n * Configures popover behavior, CSS anchoring, and attaches event listeners.\n * @param suggestionsElement The `UiListbox` element to be used for suggestions.\n */\n protected setupSuggestions(suggestionsElement: UiListbox): void {\n this.clearSuggestionsListeners() // Clear any old listeners\n\n this.suggestionsRef = suggestionsElement\n this.suggestionsRef.popover = 'manual'\n this.suggestionsRef.tabIndex = -1 // Prevent direct focus\n\n if (this.inputId) {\n this.suggestionsRef.style.setProperty('position-anchor', `--${this.inputId}`)\n }\n\n this.suggestionsRef.addEventListener('select', this.handleSuggestionSelect as EventListener)\n // The `List` dispatches `itemschange` when the slot changes, so we can listen to it.\n this.suggestionsRef.addEventListener('itemschange', this.handleSuggestionsSlotChange)\n\n // Initial filter\n this.filterSuggestions(this.inputRef ? (this.inputRef as HTMLInputElement).value : '')\n }\n\n /**\n * Handles the focus event on the input element.\n * Opens the suggestions popover if there are items to display.\n */\n @bound\n protected handleInputFocus(): void {\n const items = this.suggestionsRef?.items\n if (!items || items.length === 0) {\n // If no suggestions, do not open\n return\n }\n const active = items.find((item) => !item.hidden)\n if (active) {\n this.openSuggestions()\n this.filterSuggestions(this.inputRef ? (this.inputRef as HTMLInputElement).value : '')\n }\n }\n\n /**\n * Handles the input event on the input element.\n * Filters suggestions based on the input query and opens/closes the popover accordingly.\n * @param event The input event.\n */\n @bound\n protected handleInput(event: Event): void {\n this.openSuggestions()\n const query = (event.target as HTMLInputElement).value\n this.filterSuggestions(query)\n }\n\n /**\n * Handles keydown events on the input element for navigating and selecting suggestions.\n * - ArrowDown/ArrowUp: Navigates the suggestion list.\n * - Enter: Selects the highlighted suggestion.\n * - Escape: Closes the suggestions popover.\n * @param event The keyboard event.\n */\n @bound\n protected handleKeydown(event: KeyboardEvent): void {\n if (!this.suggestionsRef) return\n\n const { key } = event\n const isSuggestionsOpen = this.suggestionsRef.matches(':popover-open')\n\n if (['ArrowDown', 'ArrowUp'].includes(key)) {\n event.preventDefault()\n if (!isSuggestionsOpen) {\n this.openSuggestions()\n // Give popover a moment to open before trying to highlight\n requestAnimationFrame(() => this.navigateList(key))\n } else {\n this.navigateList(key)\n }\n } else if (key === 'Enter') {\n if (isSuggestionsOpen && this.suggestionsRef.highlightListItem) {\n event.preventDefault()\n this.suggestionsRef.notifySelect(this.suggestionsRef.highlightListItem)\n }\n } else if (key === 'Escape') {\n if (isSuggestionsOpen) {\n event.preventDefault()\n this.closeSuggestions()\n }\n }\n }\n\n /**\n * Navigates the suggestion list based on the pressed key.\n * @param key The key that was pressed (ArrowDown or ArrowUp).\n */\n protected navigateList(key: string): void {\n if (!this.suggestionsRef) return\n switch (key) {\n case 'ArrowDown':\n this.suggestionsRef.highlightNext()\n break\n case 'ArrowUp':\n this.suggestionsRef.highlightPrevious()\n break\n // Don't handle Home or End keys here, as they break the usability of the input.\n }\n }\n\n /**\n * Handles the blur event on the input element.\n * Closes the suggestions popover if focus moves outside the autocomplete component.\n */\n @bound\n protected handleInputBlur(): void {\n // We use the manual popover mode, so we need to close suggestions\n // when the input loses focus, but only the current active element is not part of the suggestions.\n requestAnimationFrame(() => {\n if (\n !this.inputRef?.contains(document.activeElement) &&\n (!this.suggestionsRef || !this.suggestionsRef.contains(document.activeElement))\n ) {\n this.closeSuggestions()\n }\n })\n }\n\n /**\n * Handles the `select` event dispatched by the `ui-listbox` when a suggestion is chosen.\n * Dispatches an `autocomplete` event and closes the popover.\n * @param event The custom event from `ui-listbox`.\n */\n @bound\n protected handleSuggestionSelect(event: CustomEvent): void {\n event.stopPropagation()\n const selectedItem = event.detail.item as UiListItem\n this.dispatchEvent(\n new CustomEvent('autocomplete', {\n detail: { item: selectedItem },\n bubbles: false,\n composed: false,\n })\n )\n this.closeSuggestions()\n }\n\n /**\n * Handles the `itemschange` event dispatched by the `ui-listbox` when its slotted items change.\n * Re-filters the suggestions.\n */\n @bound\n protected handleSuggestionsSlotChange(): void {\n const value = this.inputRef ? (this.inputRef as HTMLInputElement).value : ''\n if (!value) {\n return\n }\n this.openSuggestions()\n this.filterSuggestions(value)\n }\n\n /**\n * Opens the suggestions popover if it's not already open and there are visible items.\n */\n protected openSuggestions(): void {\n const popover = this.suggestionsRef\n if (!popover || popover.matches(':popover-open')) {\n return\n }\n // we need to open the popover first to make any measurements\n popover.showPopover()\n const anchor = (this.querySelector('[slot=\"anchor\"]') as HTMLElement | null) || this.inputRef\n if (!anchor) {\n return\n }\n this.positionArea = this.decidePositionArea(popover, anchor)\n }\n\n /**\n * Decides the position area for the popover based on available space.\n * It checks if there is enough space below or above the anchor element and decides accordingly.\n *\n * We need to do this because we set the popover height to `100%`, `-webkit-fill-available`, or `-moz-available`\n * and it makes the popover to always open at the bottom, even if there is no space. The `position-try-fallbacks`\n * will not work in this case, because from its perspective there is always enough space, even if that will cause\n * the popover to have a height of just a few pixels.\n *\n * @param popover The popover element to position.\n * @param anchor The anchor element relative to which the popover will be positioned.\n * @returns 'top' or 'bottom' based on available space.\n */\n protected decidePositionArea(popover: HTMLElement, anchor: HTMLElement): 'top' | 'bottom' {\n let newArea: 'top' | 'bottom' = 'bottom'\n // Get bounding rectangles\n const anchorRect = anchor.getBoundingClientRect()\n const viewportHeight = window.innerHeight\n\n const spaceBelow = viewportHeight - anchorRect.bottom\n const spaceAbove = anchorRect.top\n\n // Estimate a typical/minimum height the popover might need to be useful\n const popoverThresholdHeight = popover.scrollHeight || 150\n if (spaceBelow < popoverThresholdHeight && spaceAbove > spaceBelow && spaceAbove > popoverThresholdHeight) {\n // Not enough space below, but more (and sufficient) space above\n newArea = 'top'\n } else if (spaceBelow < popoverThresholdHeight && spaceAbove > spaceBelow) {\n // Not enough space below, and space above is more than space below (even if not \"sufficient\")\n newArea = 'top'\n } else {\n newArea = 'bottom' // Default to bottom if enough space or if top is worse\n }\n return newArea\n }\n\n /**\n * Closes the suggestions popover if it's open and clears any highlighted item.\n */\n protected closeSuggestions(): void {\n if (this.suggestionsRef && this.suggestionsRef.matches(':popover-open')) {\n this.suggestionsRef.hidePopover()\n }\n }\n\n /**\n * Filters the suggestions based on the provided query.\n * Hides items that do not match and manages the highlighted item state.\n * @param query The search query string.\n */\n protected filterSuggestions(query: string): void {\n if (!this.suggestionsRef) {\n return\n }\n\n const lowerCaseQuery = query.toLowerCase().trim()\n let firstVisibleItem: UiListItem | null = null\n\n // The `items` getter in `List.ts` (parent of UiListbox) correctly gets assigned elements.\n const items = this.suggestionsRef.items as UiListItem[]\n\n for (const item of items) {\n let matches = false\n if (lowerCaseQuery === '') {\n matches = true\n } else if (item.dataset.index) {\n const indexFields = item.dataset.index.split(' ').filter(Boolean)\n for (const field of indexFields) {\n const valueToSearch = item.dataset[field] || ''\n if (valueToSearch.toLowerCase().includes(lowerCaseQuery)) {\n matches = true\n break\n }\n }\n } else {\n const valueToSearch = item.dataset.value || item.textContent || ''\n matches = valueToSearch.toLowerCase().includes(lowerCaseQuery)\n }\n item.hidden = !matches\n if (matches && !firstVisibleItem) {\n firstVisibleItem = item\n }\n }\n\n // If the currently highlighted item is now hidden, try to highlight the first visible one or clear.\n if (this.suggestionsRef.highlightListItem?.hidden) {\n // the highlightListItem clears the highlighted item if it is not passed an argument.\n this.suggestionsRef?.highlightItem(firstVisibleItem)\n }\n if (!firstVisibleItem) {\n // Close if no items are visible\n this.closeSuggestions()\n }\n }\n\n protected override render(): TemplateResult {\n const { id, positionArea } = this\n return html`\n <style>\n #${id} {\n display: inline-block;\n\n [popover] {\n border: none;\n margin: 0;\n position-area: ${positionArea};\n position-try-fallbacks:\n flip-block,\n flip-inline,\n flip-block flip-inline;\n width: anchor-size(width);\n\n box-shadow: var(--md-sys-elevation-1);\n border-radius: var(--md-sys-shape-corner-medium);\n\n overflow: auto;\n /* We try 100% and then vendor options which are more accurate */\n height: 100%;\n height: -webkit-fill-available;\n height: -moz-available;\n max-height: max-content;\n }\n\n [popover]:not(:popover-open) {\n display: none;\n }\n }\n </style>\n `\n }\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"autocomplete.styles.d.ts","sourceRoot":"","sources":["../../../../../src/elements/autocomplete/internals/autocomplete.styles.ts"],"names":[],"mappings":";AAEA,wBAsBC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { css } from 'lit';
|
|
2
|
+
export default css `
|
|
3
|
+
:host {
|
|
4
|
+
display: block;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
::slotted([popover]) {
|
|
8
|
+
border: none;
|
|
9
|
+
margin: 0;
|
|
10
|
+
position-area: bottom;
|
|
11
|
+
position-try-fallbacks:
|
|
12
|
+
flip-block,
|
|
13
|
+
flip-inline,
|
|
14
|
+
flip-block flip-inline;
|
|
15
|
+
width: anchor-size(width);
|
|
16
|
+
|
|
17
|
+
box-shadow: var(--md-sys-elevation-1);
|
|
18
|
+
border-radius: var(--md-sys-shape-corner-medium);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
::slotted([popover]:not(:popover-open)) {
|
|
22
|
+
display: none;
|
|
23
|
+
}
|
|
24
|
+
`;
|
|
25
|
+
//# sourceMappingURL=autocomplete.styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"autocomplete.styles.js","sourceRoot":"","sources":["../../../../../src/elements/autocomplete/internals/autocomplete.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAEzB,eAAe,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;CAsBjB,CAAA","sourcesContent":["import { css } from 'lit'\n\nexport default css`\n :host {\n display: block;\n }\n\n ::slotted([popover]) {\n border: none;\n margin: 0;\n position-area: bottom;\n position-try-fallbacks:\n flip-block,\n flip-inline,\n flip-block flip-inline;\n width: anchor-size(width);\n\n box-shadow: var(--md-sys-elevation-1);\n border-radius: var(--md-sys-shape-corner-medium);\n }\n\n ::slotted([popover]:not(:popover-open)) {\n display: none;\n }\n`\n"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TemplateResult, PropertyValues } from 'lit';
|
|
2
2
|
import UiDialog from '../../../md/dialog/internals/Dialog.js';
|
|
3
|
-
import '../../../md/text-field/ui-text-field.js';
|
|
3
|
+
import '../../../md/text-field/ui-filled-text-field.js';
|
|
4
4
|
import { type IDeleteCookieStep } from '@api-client/core/models/http-flows/steps/data/DeleteCookieStep.js';
|
|
5
5
|
/**
|
|
6
6
|
* A dialog used by the Flow builder to configure the Delete Cookie action.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeleteCookieAction.element.d.ts","sourceRoot":"","sources":["../../../../../src/elements/dialog/internals/DeleteCookieAction.element.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAQ,cAAc,EAAE,MAAM,KAAK,CAAA;AAI1D,OAAO,QAAQ,MAAM,wCAAwC,CAAA;AAE7D,OAAO,
|
|
1
|
+
{"version":3,"file":"DeleteCookieAction.element.d.ts","sourceRoot":"","sources":["../../../../../src/elements/dialog/internals/DeleteCookieAction.element.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAQ,cAAc,EAAE,MAAM,KAAK,CAAA;AAI1D,OAAO,QAAQ,MAAM,wCAAwC,CAAA;AAE7D,OAAO,gDAAgD,CAAA;AACvD,OAAO,EAEL,KAAK,iBAAiB,EACvB,MAAM,mEAAmE,CAAA;AAE1E;;GAEG;AACH,MAAM,CAAC,OAAO,OAAO,kBAAmB,SAAQ,QAAQ;IAC1B,QAAQ,CAAC,IAAI,EAAE,iBAAiB,GAAG,SAAS,CAAA;IAE/D,WAAW,EAAE,iBAAiB,CAAkC;;IAQhE,UAAU,CAAC,EAAE,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;IAOnD,SAAS,CAAC,gBAAgB,IAAI,IAAI;IASlC,SAAS,CAAC,eAAe,CAAC,CAAC,EAAE,KAAK,GAAG,IAAI;IAKzC,SAAS,CAAC,gBAAgB,CAAC,CAAC,EAAE,KAAK,GAAG,IAAI;IAKjC,UAAU,IAAI,cAAc;IAU5B,WAAW,IAAI,cAAc;IAQ7B,UAAU,IAAI,cAAc;CA8BtC"}
|
|
@@ -4,7 +4,7 @@ import { property } from 'lit/decorators.js';
|
|
|
4
4
|
import { live } from 'lit/directives/live.js';
|
|
5
5
|
import { classMap } from 'lit/directives/class-map.js';
|
|
6
6
|
import UiDialog from '../../../md/dialog/internals/Dialog.js';
|
|
7
|
-
import '../../../md/text-field/ui-text-field.js';
|
|
7
|
+
import '../../../md/text-field/ui-filled-text-field.js';
|
|
8
8
|
import { DeleteCookieStep, } from '@api-client/core/models/http-flows/steps/data/DeleteCookieStep.js';
|
|
9
9
|
let DeleteCookieAction = (() => {
|
|
10
10
|
let _classSuper = UiDialog;
|
|
@@ -71,7 +71,7 @@ let DeleteCookieAction = (() => {
|
|
|
71
71
|
return html `
|
|
72
72
|
<div class="content">
|
|
73
73
|
<div class="param-row">
|
|
74
|
-
<ui-text-field
|
|
74
|
+
<ui-filled-text-field
|
|
75
75
|
name="name"
|
|
76
76
|
label="Cookie name"
|
|
77
77
|
type="text"
|
|
@@ -79,10 +79,10 @@ let DeleteCookieAction = (() => {
|
|
|
79
79
|
@change="${this.handleNameChange}"
|
|
80
80
|
class="input"
|
|
81
81
|
supportingText="Leave empty to delete all cookies for the URL."
|
|
82
|
-
></ui-text-field>
|
|
82
|
+
></ui-filled-text-field>
|
|
83
83
|
</div>
|
|
84
84
|
<div class="param-row">
|
|
85
|
-
<ui-text-field
|
|
85
|
+
<ui-filled-text-field
|
|
86
86
|
name="url"
|
|
87
87
|
label="Cookie URL"
|
|
88
88
|
type="url"
|
|
@@ -90,7 +90,7 @@ let DeleteCookieAction = (() => {
|
|
|
90
90
|
@change="${this.handleUrlChange}"
|
|
91
91
|
class="input"
|
|
92
92
|
supportingText="When the URL is not set then the request URL is used."
|
|
93
|
-
></ui-text-field>
|
|
93
|
+
></ui-filled-text-field>
|
|
94
94
|
</div>
|
|
95
95
|
</div>
|
|
96
96
|
`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeleteCookieAction.element.js","sourceRoot":"","sources":["../../../../../src/elements/dialog/internals/DeleteCookieAction.element.ts"],"names":[],"mappings":";AAAA,OAAO,EAAkB,IAAI,EAAkB,MAAM,KAAK,CAAA;AAC1D,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAA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AMtC,CAAA;QACH,CAAC;;;AAvFH;;GAEG;AACH,kCAqFC","sourcesContent":["import { TemplateResult, html, PropertyValues } from 'lit'\nimport { property } from 'lit/decorators.js'\nimport { live } from 'lit/directives/live.js'\nimport { ClassInfo, classMap } from 'lit/directives/class-map.js'\nimport UiDialog from '../../../md/dialog/internals/Dialog.js'\nimport type Input from '../../../md/input/Input.js'\nimport '../../../md/text-field/ui-filled-text-field.js'\nimport {\n DeleteCookieStep,\n type IDeleteCookieStep,\n} from '@api-client/core/models/http-flows/steps/data/DeleteCookieStep.js'\n\n/**\n * A dialog used by the Flow builder to configure the Delete Cookie action.\n */\nexport default class DeleteCookieAction extends UiDialog {\n @property({ type: Object }) accessor step: IDeleteCookieStep | undefined\n\n override dialogValue: IDeleteCookieStep = new DeleteCookieStep().toJSON()\n\n constructor() {\n super()\n this.dismissLabel = 'Cancel'\n this.confirmLabel = 'Save'\n }\n\n override willUpdate(cp: PropertyValues<this>): void {\n if (cp.has('step')) {\n this.setupDialogValue()\n }\n super.willUpdate(cp)\n }\n\n protected setupDialogValue(): void {\n const { step } = this\n if (!step) {\n this.dialogValue = new DeleteCookieStep().toJSON()\n } else {\n this.dialogValue = new DeleteCookieStep(step).toJSON()\n }\n }\n\n protected handleUrlChange(e: Event): void {\n const input = e.target as Input\n this.dialogValue.url = input.value\n }\n\n protected handleNameChange(e: Event): void {\n const input = e.target as Input\n this.dialogValue.name = input.value\n }\n\n override renderIcon(): TemplateResult {\n const classes: ClassInfo = {\n 'icon': true,\n 'with-icon': true,\n }\n return html`\n <div class=\"${classMap(classes)}\" part=\"icon\"><ui-icon icon=\"tune\" role=\"presentation\"></ui-icon></div>\n `\n }\n\n override renderTitle(): TemplateResult {\n const classes: ClassInfo = {\n 'title': true,\n 'with-title': true,\n }\n return html` <div class=\"${classMap(classes)}\" part=\"title\"><span>Configure Delete Cookie Action</span></div> `\n }\n\n override renderBody(): TemplateResult {\n const { name = '', url = '' } = this.dialogValue\n\n return html`\n <div class=\"content\">\n <div class=\"param-row\">\n <ui-filled-text-field\n name=\"name\"\n label=\"Cookie name\"\n type=\"text\"\n .value=\"${live(name)}\"\n @change=\"${this.handleNameChange}\"\n class=\"input\"\n supportingText=\"Leave empty to delete all cookies for the URL.\"\n ></ui-filled-text-field>\n </div>\n <div class=\"param-row\">\n <ui-filled-text-field\n name=\"url\"\n label=\"Cookie URL\"\n type=\"url\"\n .value=\"${live(url)}\"\n @change=\"${this.handleUrlChange}\"\n class=\"input\"\n supportingText=\"When the URL is not set then the request URL is used.\"\n ></ui-filled-text-field>\n </div>\n </div>\n `\n }\n}\n"]}
|
|
@@ -2,7 +2,7 @@ import { TemplateResult } from 'lit';
|
|
|
2
2
|
import UiDialog from '../../../md/dialog/internals/Dialog.js';
|
|
3
3
|
import '../../../md/button/ui-text-button.js';
|
|
4
4
|
import '../../../md/icons/ui-icon.js';
|
|
5
|
-
import '../../../md/text-field/ui-text-field.js';
|
|
5
|
+
import '../../../md/text-field/ui-filled-text-field.js';
|
|
6
6
|
/**
|
|
7
7
|
* A dialog that requests the user for the new name.
|
|
8
8
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Rename.d.ts","sourceRoot":"","sources":["../../../../../src/elements/dialog/internals/Rename.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAQ,MAAM,KAAK,CAAA;AAI1C,OAAO,QAAQ,MAAM,wCAAwC,CAAA;AAG7D,OAAO,sCAAsC,CAAA;AAC7C,OAAO,8BAA8B,CAAA;AACrC,OAAO,
|
|
1
|
+
{"version":3,"file":"Rename.d.ts","sourceRoot":"","sources":["../../../../../src/elements/dialog/internals/Rename.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAQ,MAAM,KAAK,CAAA;AAI1C,OAAO,QAAQ,MAAM,wCAAwC,CAAA;AAG7D,OAAO,sCAAsC,CAAA;AAC7C,OAAO,8BAA8B,CAAA;AACrC,OAAO,gDAAgD,CAAA;AAEvD;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,MAAM,CAAC,OAAO,OAAO,mBAAoB,SAAQ,QAAQ;IACvD;;;OAGG;IACyB,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,CAAA;IAEpD,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAA;IAE9C,OAAO,KAAK,QAAQ,GAMnB;IAED,SAAS,CAAC,WAAW,CAAC,CAAC,EAAE,KAAK,GAAG,IAAI;IAKrC,SAAS,CAAC,kBAAkB,CAAC,CAAC,EAAE,aAAa,GAAG,IAAI;cAQjC,iBAAiB,CAAC,KAAK,EAAE,SAAS,GAAG,SAAS,GAAG,IAAI;IAS/D,UAAU,IAAI,cAAc;IAQ5B,WAAW,IAAI,cAAc;IAQ7B,UAAU,IAAI,cAAc;IAmB5B,aAAa,IAAI,cAAc;CAqBzC"}
|
|
@@ -6,7 +6,7 @@ import { live } from 'lit/directives/live.js';
|
|
|
6
6
|
import UiDialog from '../../../md/dialog/internals/Dialog.js';
|
|
7
7
|
import '../../../md/button/ui-text-button.js';
|
|
8
8
|
import '../../../md/icons/ui-icon.js';
|
|
9
|
-
import '../../../md/text-field/ui-text-field.js';
|
|
9
|
+
import '../../../md/text-field/ui-filled-text-field.js';
|
|
10
10
|
let RenameDialogElement = (() => {
|
|
11
11
|
let _classSuper = UiDialog;
|
|
12
12
|
let _name_decorators;
|
|
@@ -79,7 +79,7 @@ let RenameDialogElement = (() => {
|
|
|
79
79
|
const value = this.newValue || this.name || '';
|
|
80
80
|
return html `
|
|
81
81
|
<div class="content">
|
|
82
|
-
<ui-text-field
|
|
82
|
+
<ui-filled-text-field
|
|
83
83
|
class="file-name"
|
|
84
84
|
type="text"
|
|
85
85
|
name="name"
|
|
@@ -89,7 +89,7 @@ let RenameDialogElement = (() => {
|
|
|
89
89
|
@keydown="${this.handleInputKeyDown}"
|
|
90
90
|
.value="${live(value)}"
|
|
91
91
|
label="Enter new name"
|
|
92
|
-
></ui-text-field>
|
|
92
|
+
></ui-filled-text-field>
|
|
93
93
|
</div>
|
|
94
94
|
`;
|
|
95
95
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Rename.js","sourceRoot":"","sources":["../../../../../src/elements/dialog/internals/Rename.ts"],"names":[],"mappings":";AAAA,OAAO,EAAkB,IAAI,EAAE,MAAM,KAAK,CAAA;AAC1C,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,EAAa,QAAQ,EAAE,MAAM,6BAA6B,CAAA;AACjE,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAA;AAC7C,OAAO,QAAQ,MAAM,wCAAwC,CAAA;AAG7D,OAAO,sCAAsC,CAAA;AAC7C,OAAO,8BAA8B,CAAA;AACrC,OAAO,
|
|
1
|
+
{"version":3,"file":"Rename.js","sourceRoot":"","sources":["../../../../../src/elements/dialog/internals/Rename.ts"],"names":[],"mappings":";AAAA,OAAO,EAAkB,IAAI,EAAE,MAAM,KAAK,CAAA;AAC1C,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,EAAa,QAAQ,EAAE,MAAM,6BAA6B,CAAA;AACjE,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAA;AAC7C,OAAO,QAAQ,MAAM,wCAAwC,CAAA;AAG7D,OAAO,sCAAsC,CAAA;AAC7C,OAAO,8BAA8B,CAAA;AACrC,OAAO,gDAAgD,CAAA;;sBA4BN,QAAQ;;;;;;;iBAApC,mBAAoB,SAAQ,WAAQ;;;gCAKtD,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;oCAE1B,KAAK,EAAE;YAFoB,iKAAS,IAAI,6BAAJ,IAAI,mFAAoB;YAEpD,6KAAS,QAAQ,6BAAR,QAAQ,2FAAoB;;;QAFlB,6EAAiC;QAJ7D;;;WAGG;QACyB,IAAS,IAAI,0CAAoB;Q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AClB,MAAM,OAAO,GAAc;gBACzB,OAAO,EAAE,IAAI;gBACb,YAAY,EAAE,IAAI;aACnB,CAAA;YACD,OAAO,IAAI,CAAA,gBAAgB,QAAQ,CAAC,OAAO,CAAC,2CAA2C,CAAA;QACzF,CAAC;QAEQ,UAAU;YACjB,MAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,IAAI,IAAI,EAAE,CAAA;YAC9C,OAAO,IAAI,CAAA;;;;;;;;oBAQK,IAAI,CAAC,WAAW;sBACd,IAAI,CAAC,kBAAkB;oBACzB,IAAI,CAAC,KAAK,CAAC;;;;KAI1B,CAAA;QACH,CAAC;QAEQ,aAAa;YACpB,MAAM,EAAE,YAAY,GAAG,QAAQ,EAAE,YAAY,GAAG,QAAQ,EAAE,GAAG,IAAI,CAAA;YACjE,MAAM,OAAO,GAAc;gBACzB,SAAS,EAAE,IAAI;gBACf,cAAc,EAAE,IAAI;aACrB,CAAA;YACD,OAAO,IAAI,CAAA;oBACK,QAAQ,CAAC,OAAO,CAAC;0EACqC,IAAI,CAAC,aAAa;aAC/E,YAAY;;;;;uBAKF,CAAC,IAAI,CAAC,QAAQ;oBACjB,IAAI,CAAC,aAAa;aACzB,YAAY;;;KAGpB,CAAA;QACH,CAAC;;;;;;;AAxHH;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,mCA+FC","sourcesContent":["import { TemplateResult, html } from 'lit'\nimport { property, state } from 'lit/decorators.js'\nimport { ClassInfo, classMap } from 'lit/directives/class-map.js'\nimport { live } from 'lit/directives/live.js'\nimport UiDialog from '../../../md/dialog/internals/Dialog.js'\nimport type Input from '../../../md/input/Input.js'\n\nimport '../../../md/button/ui-text-button.js'\nimport '../../../md/icons/ui-icon.js'\nimport '../../../md/text-field/ui-filled-text-field.js'\n\n/**\n * A dialog that requests the user for the new name.\n *\n * Listen to the `closed` on the dialog. The CustomEvent has the `detail`\n * object with the `closingReason` retails:\n * - canceled: whether the dialog was cancelled (ESC, outside click, dismiss button)\n * - confirmed: whether the dialog was confirmed by the user\n * - value: The entered name value\n *\n * The application should handle the event and trigger name change flow.\n *\n * ```javascript\n * const dialog = document.createElement('rename-dialog');\n * dialog.name = 'old name';\n * document.body.appendChild(dialog);\n * dialog.open = true;\n * dialog.addEventListener('closed', (ev: Event) => {\n * document.body.removeChild(dialog);\n * const event = ev as CustomEvent<UiDialogClosingReason>;\n * const { cancelled, value } = event.detail;\n * if (!cancelled && value) {\n * // trigger the flow, value is the new value\n * }\n * });\n * ```\n */\nexport default class RenameDialogElement extends UiDialog {\n /**\n * The previous name\n * @attribute\n */\n @property({ type: String }) accessor name: string | undefined\n\n @state() accessor newValue: string | undefined\n\n private get hasValue(): boolean {\n const { newValue } = this\n if (!newValue) {\n return false\n }\n return newValue.trim().length > 0\n }\n\n protected handleInput(e: Event): void {\n const input = e.target as Input\n this.newValue = input.value\n }\n\n protected handleInputKeyDown(e: KeyboardEvent): void {\n const confirm = (e.ctrlKey || e.metaKey) && e.key === 'Enter'\n if (!confirm || !this.hasValue) {\n return\n }\n this.handleInteraction('confirm')\n }\n\n protected override handleInteraction(value: 'dismiss' | 'confirm'): void {\n if (value === 'confirm') {\n this.dialogValue = this.newValue\n } else {\n this.dialogValue = undefined\n }\n super.handleInteraction(value)\n }\n\n override renderIcon(): TemplateResult {\n const classes: ClassInfo = {\n 'icon': true,\n 'with-icon': true,\n }\n return html` <div class=\"${classMap(classes)}\" part=\"icon\"><ui-icon icon=\"rename\"></ui-icon></div> `\n }\n\n override renderTitle(): TemplateResult {\n const classes: ClassInfo = {\n 'title': true,\n 'with-title': true,\n }\n return html` <div class=\"${classMap(classes)}\" part=\"title\"><span>Rename</span></div> `\n }\n\n override renderBody(): TemplateResult {\n const value = this.newValue || this.name || ''\n return html`\n <div class=\"content\">\n <ui-filled-text-field\n class=\"file-name\"\n type=\"text\"\n name=\"name\"\n required\n invalidText=\"The name is required. Please, enter the name.\"\n @input=\"${this.handleInput}\"\n @keydown=\"${this.handleInputKeyDown}\"\n .value=\"${live(value)}\"\n label=\"Enter new name\"\n ></ui-filled-text-field>\n </div>\n `\n }\n\n override renderButtons(): TemplateResult {\n const { confirmLabel = 'Rename', dismissLabel = 'Cancel' } = this\n const classes: ClassInfo = {\n 'buttons': true,\n 'with-buttons': true,\n }\n return html`\n <div class=\"${classMap(classes)}\" part=\"button\">\n <ui-text-button value=\"dismiss\" class=\"internal-button\" @click=\"${this.handleDismiss}\"\n >${dismissLabel}</ui-text-button\n >\n <ui-text-button\n value=\"confirm\"\n class=\"internal-button\"\n ?disabled=\"${!this.hasValue}\"\n @click=\"${this.handleConfirm}\"\n >${confirmLabel}</ui-text-button\n >\n </div>\n `\n }\n}\n"]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type TemplateResult, type PropertyValues } from 'lit';
|
|
2
2
|
import UiDialog from '../../../md/dialog/internals/Dialog.js';
|
|
3
3
|
import { type ISetCookieStep } from '@api-client/core/models/http-flows/steps/data/SetCookieStep.js';
|
|
4
|
-
import '../../../md/text-field/ui-text-field.js';
|
|
4
|
+
import '../../../md/text-field/ui-filled-text-field.js';
|
|
5
5
|
import '../../../md/checkbox/ui-checkbox.js';
|
|
6
6
|
/**
|
|
7
7
|
* A dialog used by the Flow builder to configure the Set Cookie action.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SetCookieAction.element.d.ts","sourceRoot":"","sources":["../../../../../src/elements/dialog/internals/SetCookieAction.element.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAQ,KAAK,cAAc,EAAE,MAAM,KAAK,CAAA;AAIpE,OAAO,QAAQ,MAAM,wCAAwC,CAAA;AAG7D,OAAO,EAAE,KAAK,cAAc,EAAiB,MAAM,gEAAgE,CAAA;AAGnH,OAAO,
|
|
1
|
+
{"version":3,"file":"SetCookieAction.element.d.ts","sourceRoot":"","sources":["../../../../../src/elements/dialog/internals/SetCookieAction.element.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAQ,KAAK,cAAc,EAAE,MAAM,KAAK,CAAA;AAIpE,OAAO,QAAQ,MAAM,wCAAwC,CAAA;AAG7D,OAAO,EAAE,KAAK,cAAc,EAAiB,MAAM,gEAAgE,CAAA;AAGnH,OAAO,gDAAgD,CAAA;AACvD,OAAO,qCAAqC,CAAA;AAE5C;;GAEG;AACH,MAAM,CAAC,OAAO,OAAO,eAAgB,SAAQ,QAAQ;IACvB,QAAQ,CAAC,IAAI,EAAE,cAAc,GAAG,SAAS,CAAA;IAE5D,WAAW,EAAE,cAAc,CAA+B;;IAQ1D,UAAU,CAAC,EAAE,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;IAOnD,SAAS,CAAC,gBAAgB,IAAI,IAAI;IASlC,SAAS,CAAC,iBAAiB,CAAC,CAAC,EAAE,KAAK,GAAG,IAAI;IAM3C,SAAS,CAAC,mBAAmB,CAAC,CAAC,EAAE,KAAK,GAAG,IAAI;IAM7C,SAAS,CAAC,oBAAoB,CAAC,CAAC,EAAE,KAAK,GAAG,IAAI;IAKrC,UAAU,IAAI,cAAc;IAU5B,WAAW,IAAI,cAAc;IAQ7B,UAAU,IAAI,cAAc;CA+GtC"}
|
|
@@ -5,7 +5,7 @@ import { live } from 'lit/directives/live.js';
|
|
|
5
5
|
import { classMap } from 'lit/directives/class-map.js';
|
|
6
6
|
import UiDialog from '../../../md/dialog/internals/Dialog.js';
|
|
7
7
|
import { SetCookieStep } from '@api-client/core/models/http-flows/steps/data/SetCookieStep.js';
|
|
8
|
-
import '../../../md/text-field/ui-text-field.js';
|
|
8
|
+
import '../../../md/text-field/ui-filled-text-field.js';
|
|
9
9
|
import '../../../md/checkbox/ui-checkbox.js';
|
|
10
10
|
let SetCookieAction = (() => {
|
|
11
11
|
let _classSuper = UiDialog;
|
|
@@ -78,7 +78,7 @@ let SetCookieAction = (() => {
|
|
|
78
78
|
return html `
|
|
79
79
|
<div class="content">
|
|
80
80
|
<div class="param-row">
|
|
81
|
-
<ui-text-field
|
|
81
|
+
<ui-filled-text-field
|
|
82
82
|
name="name"
|
|
83
83
|
label="Cookie name"
|
|
84
84
|
type="text"
|
|
@@ -87,11 +87,11 @@ let SetCookieAction = (() => {
|
|
|
87
87
|
@change="${this.handleValueChange}"
|
|
88
88
|
class="input"
|
|
89
89
|
supportingText="The name of the cookie to set."
|
|
90
|
-
></ui-text-field>
|
|
90
|
+
></ui-filled-text-field>
|
|
91
91
|
</div>
|
|
92
92
|
|
|
93
93
|
<div class="param-row">
|
|
94
|
-
<ui-text-field
|
|
94
|
+
<ui-filled-text-field
|
|
95
95
|
name="url"
|
|
96
96
|
label="Cookie URL"
|
|
97
97
|
type="url"
|
|
@@ -99,29 +99,29 @@ let SetCookieAction = (() => {
|
|
|
99
99
|
@change="${this.handleValueChange}"
|
|
100
100
|
class="input"
|
|
101
101
|
supportingText="When the URL is not set then the request URL is used."
|
|
102
|
-
></ui-text-field>
|
|
102
|
+
></ui-filled-text-field>
|
|
103
103
|
</div>
|
|
104
104
|
|
|
105
105
|
<div class="param-row">
|
|
106
|
-
<ui-text-field
|
|
106
|
+
<ui-filled-text-field
|
|
107
107
|
name="expires"
|
|
108
108
|
label="Expires"
|
|
109
109
|
.value="${live(expires)}"
|
|
110
110
|
@change="${this.handleValueChange}"
|
|
111
111
|
class="input"
|
|
112
112
|
supportingText="A valid cookie date or relative time like 4d, 600s, etc."
|
|
113
|
-
></ui-text-field>
|
|
113
|
+
></ui-filled-text-field>
|
|
114
114
|
</div>
|
|
115
115
|
|
|
116
116
|
<div class="param-row">
|
|
117
|
-
<ui-text-field
|
|
117
|
+
<ui-filled-text-field
|
|
118
118
|
name="sameSite"
|
|
119
119
|
label="Same site"
|
|
120
120
|
.value="${live(sameSite)}"
|
|
121
121
|
@change="${this.handleSameSiteChange}"
|
|
122
122
|
class="input"
|
|
123
123
|
.list="${['Lax', 'Strict', 'None']}"
|
|
124
|
-
></ui-text-field>
|
|
124
|
+
></ui-filled-text-field>
|
|
125
125
|
</div>
|
|
126
126
|
|
|
127
127
|
<div class="checkbox-row">
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SetCookieAction.element.js","sourceRoot":"","sources":["../../../../../src/elements/dialog/internals/SetCookieAction.element.ts"],"names":[],"mappings":";AAAA,OAAO,EAAuB,IAAI,EAAuB,MAAM,KAAK,CAAA;AACpE,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAC5C,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAA;AAC7C,OAAO,EAAkB,QAAQ,EAAE,MAAM,6BAA6B,CAAA;AACtE,OAAO,QAAQ,MAAM,wCAAwC,CAAA;AAG7D,OAAO,EAAuB,aAAa,EAAE,MAAM,gEAAgE,CAAA;AAGnH,OAAO,
|
|
1
|
+
{"version":3,"file":"SetCookieAction.element.js","sourceRoot":"","sources":["../../../../../src/elements/dialog/internals/SetCookieAction.element.ts"],"names":[],"mappings":";AAAA,OAAO,EAAuB,IAAI,EAAuB,MAAM,KAAK,CAAA;AACpE,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAC5C,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAA;AAC7C,OAAO,EAAkB,QAAQ,EAAE,MAAM,6BAA6B,CAAA;AACtE,OAAO,QAAQ,MAAM,wCAAwC,CAAA;AAG7D,OAAO,EAAuB,aAAa,EAAE,MAAM,gEAAgE,CAAA;AAGnH,OAAO,gDAAgD,CAAA;AACvD,OAAO,qCAAqC,CAAA;;sBAKC,QAAQ;;;;iBAAhC,eAAgB,SAAQ,WAAQ;;;gCAClD,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;YAAC,iKAAS,IAAI,6BAAJ,IAAI,mFAA4B;;;QAAzC,6EAAyC;QAAzC,IAAS,IAAI,0CAA4B;QAAzC,IAAS,IAAI,gDAA4B;QAE5D,WAAW,sDAAmB,IAAI,aAAa,EAAE,CAAC,MAAM,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cesContent":["import { type TemplateResult, html, type PropertyValues } from 'lit'\nimport { property } from 'lit/decorators.js'\nimport { live } from 'lit/directives/live.js'\nimport { type ClassInfo, classMap } from 'lit/directives/class-map.js'\nimport UiDialog from '../../../md/dialog/internals/Dialog.js'\nimport type Input from '../../../md/input/Input.js'\nimport type CheckboxElement from '../../../md/checkbox/internals/CheckboxElement.js'\nimport { type ISetCookieStep, SetCookieStep } from '@api-client/core/models/http-flows/steps/data/SetCookieStep.js'\nimport type { SameSiteValue } from '@api-client/core/cookies/CookieParser.js'\n\nimport '../../../md/text-field/ui-filled-text-field.js'\nimport '../../../md/checkbox/ui-checkbox.js'\n\n/**\n * A dialog used by the Flow builder to configure the Set Cookie action.\n */\nexport default class SetCookieAction extends UiDialog {\n @property({ type: Object }) accessor step: ISetCookieStep | undefined\n\n override dialogValue: ISetCookieStep = new SetCookieStep().toJSON()\n\n constructor() {\n super()\n this.dismissLabel = 'Cancel'\n this.confirmLabel = 'Save'\n }\n\n override willUpdate(cp: PropertyValues<this>): void {\n if (cp.has('step')) {\n this.setupDialogValue()\n }\n super.willUpdate(cp)\n }\n\n protected setupDialogValue(): void {\n const { step } = this\n if (!step) {\n this.dialogValue = new SetCookieStep().toJSON()\n } else {\n this.dialogValue = new SetCookieStep(step).toJSON()\n }\n }\n\n protected handleValueChange(e: Event): void {\n const input = e.target as Input\n const name = input.name as 'name' | 'url' | 'expires'\n this.dialogValue[name] = input.value\n }\n\n protected handleBooleanChange(e: Event): void {\n const input = e.target as CheckboxElement\n const name = input.name as 'hostOnly' | 'httpOnly' | 'secure' | 'session'\n this.dialogValue[name] = input.checked as boolean\n }\n\n protected handleSameSiteChange(e: Event): void {\n const input = e.target as Input\n this.dialogValue.sameSite = input.value as SameSiteValue\n }\n\n override renderIcon(): TemplateResult {\n const classes: ClassInfo = {\n 'icon': true,\n 'with-icon': true,\n }\n return html`\n <div class=\"${classMap(classes)}\" part=\"icon\"><ui-icon icon=\"tune\" role=\"presentation\"></ui-icon></div>\n `\n }\n\n override renderTitle(): TemplateResult {\n const classes: ClassInfo = {\n 'title': true,\n 'with-title': true,\n }\n return html` <div class=\"${classMap(classes)}\" part=\"title\"><span>Configure Set Cookie Action</span></div> `\n }\n\n override renderBody(): TemplateResult {\n const {\n name = '',\n url = '',\n expires = '',\n hostOnly = false,\n httpOnly = false,\n sameSite = 'None',\n secure = false,\n session = false,\n } = this.dialogValue\n\n return html`\n <div class=\"content\">\n <div class=\"param-row\">\n <ui-filled-text-field\n name=\"name\"\n label=\"Cookie name\"\n type=\"text\"\n required\n .value=\"${live(name)}\"\n @change=\"${this.handleValueChange}\"\n class=\"input\"\n supportingText=\"The name of the cookie to set.\"\n ></ui-filled-text-field>\n </div>\n\n <div class=\"param-row\">\n <ui-filled-text-field\n name=\"url\"\n label=\"Cookie URL\"\n type=\"url\"\n .value=\"${live(url)}\"\n @change=\"${this.handleValueChange}\"\n class=\"input\"\n supportingText=\"When the URL is not set then the request URL is used.\"\n ></ui-filled-text-field>\n </div>\n\n <div class=\"param-row\">\n <ui-filled-text-field\n name=\"expires\"\n label=\"Expires\"\n .value=\"${live(expires)}\"\n @change=\"${this.handleValueChange}\"\n class=\"input\"\n supportingText=\"A valid cookie date or relative time like 4d, 600s, etc.\"\n ></ui-filled-text-field>\n </div>\n\n <div class=\"param-row\">\n <ui-filled-text-field\n name=\"sameSite\"\n label=\"Same site\"\n .value=\"${live(sameSite)}\"\n @change=\"${this.handleSameSiteChange}\"\n class=\"input\"\n .list=\"${['Lax', 'Strict', 'None']}\"\n ></ui-filled-text-field>\n </div>\n\n <div class=\"checkbox-row\">\n <label>\n <ui-checkbox\n name=\"hostOnly\"\n .checked=\"${hostOnly}\"\n @change=\"${this.handleBooleanChange}\"\n aria-label=\"Host only cookie\"\n ></ui-checkbox>\n Host only\n </label>\n </div>\n\n <div class=\"checkbox-row\">\n <label>\n <ui-checkbox\n name=\"httpOnly\"\n .checked=\"${httpOnly}\"\n @change=\"${this.handleBooleanChange}\"\n aria-label=\"HTTP only cookie\"\n ></ui-checkbox>\n HTTP only\n </label>\n </div>\n\n <div class=\"checkbox-row\">\n <label>\n <ui-checkbox\n name=\"secure\"\n .checked=\"${secure}\"\n @change=\"${this.handleBooleanChange}\"\n aria-label=\"Secure cookie\"\n ></ui-checkbox>\n Secure\n </label>\n </div>\n\n <div class=\"checkbox-row\">\n <label>\n <ui-checkbox\n name=\"session\"\n .checked=\"${session}\"\n @change=\"${this.handleBooleanChange}\"\n aria-label=\"Session cookie\"\n ></ui-checkbox>\n Session\n </label>\n </div>\n </div>\n `\n }\n}\n"]}
|
|
@@ -9,7 +9,7 @@ import { TabSelectionDetail } from '../../md/tabs/internals/Tabs.js';
|
|
|
9
9
|
import '../../define/environment/server-editor.js';
|
|
10
10
|
import '../../define/environment/variables-editor.js';
|
|
11
11
|
import '../../md/icons/ui-icon.js';
|
|
12
|
-
import '../../md/text-field/ui-text-field.js';
|
|
12
|
+
import '../../md/text-field/ui-filled-text-field.js';
|
|
13
13
|
import '../../md/switch/ui-switch.js';
|
|
14
14
|
import '../../md/icon-button/ui-icon-button.js';
|
|
15
15
|
import '../../md/button/ui-filled-tonal-button.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EnvironmentEditor.d.ts","sourceRoot":"","sources":["../../../../src/elements/environment/EnvironmentEditor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,cAAc,EAAE,SAAS,EAAE,MAAM,KAAK,CAAA;AAErD,OAAO,EAAe,KAAK,YAAY,EAAE,MAAM,wCAAwC,CAAA;AACvF,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,qCAAqC,CAAA;AACpE,OAAO,EAAE,KAAK,OAAO,EAAU,MAAM,mCAAmC,CAAA;AACxE,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,0CAA0C,CAAA;AACjF,OAAO,EAAE,KAAK,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,iDAAiD,CAAA;AAElH,OAAO,UAAU,MAAM,kBAAk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,qBAAqB,GAAG,cAAc;IAc/E,SAAS,CAAC,uBAAuB,CAAC,IAAI,EAAE,qBAAqB,GAAG,cAAc;IAc9E,SAAS,CAAC,qBAAqB,CAAC,IAAI,EAAE,qBAAqB,GAAG,cAAc;IAa5E,SAAS,CAAC,yBAAyB,CAAC,IAAI,EAAE,qBAAqB,GAAG,cAAc;IAahF,SAAS,CAAC,UAAU,IAAI,cAAc;CASvC"}
|
|
@@ -12,7 +12,7 @@ import { authTypeToLabel } from '../authorization/AuthLabels.js';
|
|
|
12
12
|
import '../../define/environment/server-editor.js';
|
|
13
13
|
import '../../define/environment/variables-editor.js';
|
|
14
14
|
import '../../md/icons/ui-icon.js';
|
|
15
|
-
import '../../md/text-field/ui-text-field.js';
|
|
15
|
+
import '../../md/text-field/ui-filled-text-field.js';
|
|
16
16
|
import '../../md/switch/ui-switch.js';
|
|
17
17
|
import '../../md/icon-button/ui-icon-button.js';
|
|
18
18
|
import '../../md/button/ui-filled-tonal-button.js';
|
|
@@ -256,13 +256,13 @@ let EnvironmentEditor = (() => {
|
|
|
256
256
|
renderNameInput() {
|
|
257
257
|
const { environment } = this;
|
|
258
258
|
return html ` <div class="form-item">
|
|
259
|
-
<ui-text-field
|
|
259
|
+
<ui-filled-text-field
|
|
260
260
|
name="name"
|
|
261
261
|
label="Environment name"
|
|
262
262
|
required
|
|
263
263
|
.value="${live(environment.info.name || '')}"
|
|
264
264
|
@change="${this.handleNameChange}"
|
|
265
|
-
></ui-text-field>
|
|
265
|
+
></ui-filled-text-field>
|
|
266
266
|
</div>`;
|
|
267
267
|
}
|
|
268
268
|
renderEncapsulate() {
|