New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@vaadin/dialog

Package Overview
Dependencies
Maintainers
0
Versions
423
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vaadin/dialog - npm Package Compare versions

Comparing version 24.6.0-alpha3 to 24.6.0-alpha4

22

package.json
{
"name": "@vaadin/dialog",
"version": "24.6.0-alpha3",
"version": "24.6.0-alpha4",
"publishConfig": {

@@ -42,15 +42,15 @@ "access": "public"

"@polymer/polymer": "^3.0.0",
"@vaadin/component-base": "24.6.0-alpha3",
"@vaadin/lit-renderer": "24.6.0-alpha3",
"@vaadin/overlay": "24.6.0-alpha3",
"@vaadin/vaadin-lumo-styles": "24.6.0-alpha3",
"@vaadin/vaadin-material-styles": "24.6.0-alpha3",
"@vaadin/vaadin-themable-mixin": "24.6.0-alpha3",
"@vaadin/component-base": "24.6.0-alpha4",
"@vaadin/lit-renderer": "24.6.0-alpha4",
"@vaadin/overlay": "24.6.0-alpha4",
"@vaadin/vaadin-lumo-styles": "24.6.0-alpha4",
"@vaadin/vaadin-material-styles": "24.6.0-alpha4",
"@vaadin/vaadin-themable-mixin": "24.6.0-alpha4",
"lit": "^3.0.0"
},
"devDependencies": {
"@vaadin/a11y-base": "24.6.0-alpha3",
"@vaadin/chai-plugins": "24.6.0-alpha3",
"@vaadin/a11y-base": "24.6.0-alpha4",
"@vaadin/chai-plugins": "24.6.0-alpha4",
"@vaadin/testing-helpers": "^1.0.0",
"@vaadin/text-area": "24.6.0-alpha3",
"@vaadin/text-area": "24.6.0-alpha4",
"sinon": "^18.0.0"

@@ -62,3 +62,3 @@ },

],
"gitHead": "f917e587caaf86b3d55598233811409b0f34ff69"
"gitHead": "78967d4f3bb46f58f43c2cc621802554acb2efaf"
}

@@ -41,2 +41,22 @@ /**

overlayRole: string;
/**
* Set the distance of the overlay from the top of its container.
* If a unitless number is provided, pixels are assumed.
*
* Note that the overlay top edge may not be the same as the viewport
* top edge (e.g. the Lumo theme defines some spacing to prevent the
* overlay from stretching all the way to the top of the viewport).
*/
top: string;
/**
* Set the distance of the overlay from the left of its container.
* If a unitless number is provided, pixels are assumed.
*
* Note that the overlay left edge may not be the same as the viewport
* left edge (e.g. the Lumo theme defines some spacing to prevent the
* overlay from stretching all the way to the left of the viewport).
*/
left: string;
}

@@ -54,2 +54,26 @@ /**

/**
* Set the distance of the overlay from the top of its container.
* If a unitless number is provided, pixels are assumed.
*
* Note that the overlay top edge may not be the same as the viewport
* top edge (e.g. the Lumo theme defines some spacing to prevent the
* overlay from stretching all the way to the top of the viewport).
*/
top: {
type: String,
},
/**
* Set the distance of the overlay from the left of its container.
* If a unitless number is provided, pixels are assumed.
*
* Note that the overlay left edge may not be the same as the viewport
* left edge (e.g. the Lumo theme defines some spacing to prevent the
* overlay from stretching all the way to the left of the viewport).
*/
left: {
type: String,
},
/**
* The `role` attribute value to be set on the overlay. Defaults to "dialog".

@@ -66,2 +90,6 @@ *

static get observers() {
return ['__positionChanged(top, left)'];
}
/** @protected */

@@ -142,2 +170,7 @@ ready() {

/** @private */
__positionChanged(top, left) {
this.$.overlay.setBounds({ top, left });
}
/**

@@ -144,0 +177,0 @@ * Fired when the dialog is closed.

@@ -112,3 +112,4 @@ /**

const left = this._originalBounds.left + (event.pageX - this._originalMouseCoords.left);
this.$.overlay.setBounds({ top, left });
this.top = top;
this.left = left;
}

@@ -115,0 +116,0 @@ }

@@ -210,3 +210,3 @@ /**

Object.keys(parsedBounds).forEach((arg) => {
if (typeof parsedBounds[arg] === 'number') {
if (!isNaN(parsedBounds[arg])) {
parsedBounds[arg] = `${parsedBounds[arg]}px`;

@@ -213,0 +213,0 @@ }

{
"$schema": "https://json.schemastore.org/web-types",
"name": "@vaadin/dialog",
"version": "24.6.0-alpha3",
"version": "24.6.0-alpha4",
"description-markup": "markdown",

@@ -11,3 +11,3 @@ "contributions": {

"name": "vaadin-dialog",
"description": "`<vaadin-dialog>` is a Web Component for creating customized modal dialogs.\n\n### Rendering\n\nThe content of the dialog can be populated by using the renderer callback function.\n\nThe renderer function provides `root`, `dialog` arguments.\nGenerate DOM content, append it to the `root` element and control the state\nof the host element by accessing `dialog`. Before generating new content,\nusers are able to check if there is already content in `root` for reusing it.\n\n```html\n<vaadin-dialog id=\"dialog\"></vaadin-dialog>\n```\n```js\nconst dialog = document.querySelector('#dialog');\ndialog.renderer = function(root, dialog) {\n root.textContent = \"Sample dialog\";\n};\n```\n\nRenderer is called on the opening of the dialog.\nDOM generated during the renderer call can be reused\nin the next renderer call and will be provided with the `root` argument.\nOn first call it will be empty.\n\n### Styling\n\n`<vaadin-dialog>` uses `<vaadin-dialog-overlay>` internal\nthemable component as the actual visible dialog overlay.\n\nSee [`<vaadin-overlay>`](https://cdn.vaadin.com/vaadin-web-components/24.6.0-alpha3/#/elements/vaadin-overlay) documentation.\nfor `<vaadin-dialog-overlay>` parts.\n\nIn addition to `<vaadin-overlay>` parts, the following parts are available for styling:\n\nPart name | Description\n-----------------|-------------------------------------------\n`header` | Element wrapping title and header content\n`header-content` | Element wrapping the header content slot\n`title` | Element wrapping the title slot\n`footer` | Element wrapping the footer slot\n\nThe following state attributes are available for styling:\n\nAttribute | Description\n-----------------|--------------------------------------------\n`has-title` | Set when the element has a title\n`has-header` | Set when the element has header renderer\n`has-footer` | Set when the element has footer renderer\n`overflow` | Set to `top`, `bottom`, none or both\n\nNote: the `theme` attribute value set on `<vaadin-dialog>` is\npropagated to the internal `<vaadin-dialog-overlay>` component.\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.",
"description": "`<vaadin-dialog>` is a Web Component for creating customized modal dialogs.\n\n### Rendering\n\nThe content of the dialog can be populated by using the renderer callback function.\n\nThe renderer function provides `root`, `dialog` arguments.\nGenerate DOM content, append it to the `root` element and control the state\nof the host element by accessing `dialog`. Before generating new content,\nusers are able to check if there is already content in `root` for reusing it.\n\n```html\n<vaadin-dialog id=\"dialog\"></vaadin-dialog>\n```\n```js\nconst dialog = document.querySelector('#dialog');\ndialog.renderer = function(root, dialog) {\n root.textContent = \"Sample dialog\";\n};\n```\n\nRenderer is called on the opening of the dialog.\nDOM generated during the renderer call can be reused\nin the next renderer call and will be provided with the `root` argument.\nOn first call it will be empty.\n\n### Styling\n\n`<vaadin-dialog>` uses `<vaadin-dialog-overlay>` internal\nthemable component as the actual visible dialog overlay.\n\nSee [`<vaadin-overlay>`](https://cdn.vaadin.com/vaadin-web-components/24.6.0-alpha4/#/elements/vaadin-overlay) documentation.\nfor `<vaadin-dialog-overlay>` parts.\n\nIn addition to `<vaadin-overlay>` parts, the following parts are available for styling:\n\nPart name | Description\n-----------------|-------------------------------------------\n`header` | Element wrapping title and header content\n`header-content` | Element wrapping the header content slot\n`title` | Element wrapping the title slot\n`footer` | Element wrapping the footer slot\n\nThe following state attributes are available for styling:\n\nAttribute | Description\n-----------------|--------------------------------------------\n`has-title` | Set when the element has a title\n`has-header` | Set when the element has header renderer\n`has-footer` | Set when the element has footer renderer\n`overflow` | Set to `top`, `bottom`, none or both\n\nNote: the `theme` attribute value set on `<vaadin-dialog>` is\npropagated to the internal `<vaadin-dialog-overlay>` component.\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.",
"attributes": [

@@ -51,2 +51,24 @@ {

{
"name": "top",
"description": "Set the distance of the overlay from the top of its container.\nIf a unitless number is provided, pixels are assumed.\n\nNote that the overlay top edge may not be the same as the viewport\ntop edge (e.g. the Lumo theme defines some spacing to prevent the\noverlay from stretching all the way to the top of the viewport).",
"value": {
"type": [
"string",
"null",
"undefined"
]
}
},
{
"name": "left",
"description": "Set the distance of the overlay from the left of its container.\nIf a unitless number is provided, pixels are assumed.\n\nNote that the overlay left edge may not be the same as the viewport\nleft edge (e.g. the Lumo theme defines some spacing to prevent the\noverlay from stretching all the way to the left of the viewport).",
"value": {
"type": [
"string",
"null",
"undefined"
]
}
},
{
"name": "overlay-role",

@@ -164,2 +186,24 @@ "description": "The `role` attribute value to be set on the overlay. Defaults to \"dialog\".",

{
"name": "top",
"description": "Set the distance of the overlay from the top of its container.\nIf a unitless number is provided, pixels are assumed.\n\nNote that the overlay top edge may not be the same as the viewport\ntop edge (e.g. the Lumo theme defines some spacing to prevent the\noverlay from stretching all the way to the top of the viewport).",
"value": {
"type": [
"string",
"null",
"undefined"
]
}
},
{
"name": "left",
"description": "Set the distance of the overlay from the left of its container.\nIf a unitless number is provided, pixels are assumed.\n\nNote that the overlay left edge may not be the same as the viewport\nleft edge (e.g. the Lumo theme defines some spacing to prevent the\noverlay from stretching all the way to the left of the viewport).",
"value": {
"type": [
"string",
"null",
"undefined"
]
}
},
{
"name": "overlayRole",

@@ -166,0 +210,0 @@ "description": "The `role` attribute value to be set on the overlay. Defaults to \"dialog\".",

{
"$schema": "https://json.schemastore.org/web-types",
"name": "@vaadin/dialog",
"version": "24.6.0-alpha3",
"version": "24.6.0-alpha4",
"description-markup": "markdown",

@@ -19,3 +19,3 @@ "framework": "lit",

"name": "vaadin-dialog",
"description": "`<vaadin-dialog>` is a Web Component for creating customized modal dialogs.\n\n### Rendering\n\nThe content of the dialog can be populated by using the renderer callback function.\n\nThe renderer function provides `root`, `dialog` arguments.\nGenerate DOM content, append it to the `root` element and control the state\nof the host element by accessing `dialog`. Before generating new content,\nusers are able to check if there is already content in `root` for reusing it.\n\n```html\n<vaadin-dialog id=\"dialog\"></vaadin-dialog>\n```\n```js\nconst dialog = document.querySelector('#dialog');\ndialog.renderer = function(root, dialog) {\n root.textContent = \"Sample dialog\";\n};\n```\n\nRenderer is called on the opening of the dialog.\nDOM generated during the renderer call can be reused\nin the next renderer call and will be provided with the `root` argument.\nOn first call it will be empty.\n\n### Styling\n\n`<vaadin-dialog>` uses `<vaadin-dialog-overlay>` internal\nthemable component as the actual visible dialog overlay.\n\nSee [`<vaadin-overlay>`](https://cdn.vaadin.com/vaadin-web-components/24.6.0-alpha3/#/elements/vaadin-overlay) documentation.\nfor `<vaadin-dialog-overlay>` parts.\n\nIn addition to `<vaadin-overlay>` parts, the following parts are available for styling:\n\nPart name | Description\n-----------------|-------------------------------------------\n`header` | Element wrapping title and header content\n`header-content` | Element wrapping the header content slot\n`title` | Element wrapping the title slot\n`footer` | Element wrapping the footer slot\n\nThe following state attributes are available for styling:\n\nAttribute | Description\n-----------------|--------------------------------------------\n`has-title` | Set when the element has a title\n`has-header` | Set when the element has header renderer\n`has-footer` | Set when the element has footer renderer\n`overflow` | Set to `top`, `bottom`, none or both\n\nNote: the `theme` attribute value set on `<vaadin-dialog>` is\npropagated to the internal `<vaadin-dialog-overlay>` component.\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.",
"description": "`<vaadin-dialog>` is a Web Component for creating customized modal dialogs.\n\n### Rendering\n\nThe content of the dialog can be populated by using the renderer callback function.\n\nThe renderer function provides `root`, `dialog` arguments.\nGenerate DOM content, append it to the `root` element and control the state\nof the host element by accessing `dialog`. Before generating new content,\nusers are able to check if there is already content in `root` for reusing it.\n\n```html\n<vaadin-dialog id=\"dialog\"></vaadin-dialog>\n```\n```js\nconst dialog = document.querySelector('#dialog');\ndialog.renderer = function(root, dialog) {\n root.textContent = \"Sample dialog\";\n};\n```\n\nRenderer is called on the opening of the dialog.\nDOM generated during the renderer call can be reused\nin the next renderer call and will be provided with the `root` argument.\nOn first call it will be empty.\n\n### Styling\n\n`<vaadin-dialog>` uses `<vaadin-dialog-overlay>` internal\nthemable component as the actual visible dialog overlay.\n\nSee [`<vaadin-overlay>`](https://cdn.vaadin.com/vaadin-web-components/24.6.0-alpha4/#/elements/vaadin-overlay) documentation.\nfor `<vaadin-dialog-overlay>` parts.\n\nIn addition to `<vaadin-overlay>` parts, the following parts are available for styling:\n\nPart name | Description\n-----------------|-------------------------------------------\n`header` | Element wrapping title and header content\n`header-content` | Element wrapping the header content slot\n`title` | Element wrapping the title slot\n`footer` | Element wrapping the footer slot\n\nThe following state attributes are available for styling:\n\nAttribute | Description\n-----------------|--------------------------------------------\n`has-title` | Set when the element has a title\n`has-header` | Set when the element has header renderer\n`has-footer` | Set when the element has footer renderer\n`overflow` | Set to `top`, `bottom`, none or both\n\nNote: the `theme` attribute value set on `<vaadin-dialog>` is\npropagated to the internal `<vaadin-dialog-overlay>` component.\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.",
"extension": true,

@@ -66,2 +66,16 @@ "attributes": [

{
"name": ".top",
"description": "Set the distance of the overlay from the top of its container.\nIf a unitless number is provided, pixels are assumed.\n\nNote that the overlay top edge may not be the same as the viewport\ntop edge (e.g. the Lumo theme defines some spacing to prevent the\noverlay from stretching all the way to the top of the viewport).",
"value": {
"kind": "expression"
}
},
{
"name": ".left",
"description": "Set the distance of the overlay from the left of its container.\nIf a unitless number is provided, pixels are assumed.\n\nNote that the overlay left edge may not be the same as the viewport\nleft edge (e.g. the Lumo theme defines some spacing to prevent the\noverlay from stretching all the way to the left of the viewport).",
"value": {
"kind": "expression"
}
},
{
"name": ".overlayRole",

@@ -68,0 +82,0 @@ "description": "The `role` attribute value to be set on the overlay. Defaults to \"dialog\".",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc