@eventstore-ui/components
Advanced tools
Comparing version 1.5.0 to 1.6.0
@@ -6,3 +6,3 @@ 'use strict'; | ||
const index = require('./index-6e7cb5d8.js'); | ||
require('./createLogger-6c796380.js'); | ||
require('./HTTPError-0b7234aa.js'); | ||
const namespace = require('./namespace-12ca145c.js'); | ||
@@ -9,0 +9,0 @@ |
@@ -21,3 +21,3 @@ 'use strict'; | ||
case 'exiting': { | ||
this.closingPromise?.(); | ||
this.resolveClose?.(true); | ||
break; | ||
@@ -38,8 +38,16 @@ } | ||
} | ||
close() { | ||
return new Promise((resolve) => { | ||
this.closingPromise = resolve; | ||
async close() { | ||
const closed = await new Promise((resolve) => { | ||
this.resolveClose = resolve; | ||
this.state = 'exiting'; | ||
}); | ||
delete this.resolveClose; | ||
return closed; | ||
} | ||
async cancelClose() { | ||
if (this.state !== 'exiting') | ||
return; | ||
this.resolveClose?.(false); | ||
this.state = 'entering'; | ||
} | ||
componentDidLoad() { | ||
@@ -46,0 +54,0 @@ requestAnimationFrame(() => { |
@@ -6,8 +6,8 @@ 'use strict'; | ||
const index = require('./index-6e7cb5d8.js'); | ||
const theme = require('./theme-1b90b747.js'); | ||
const Link = require('./Link-1aa1c7b0.js'); | ||
require('./logger-e225b519.js'); | ||
require('./createLogger-6c796380.js'); | ||
const theme = require('./theme-fb79877e.js'); | ||
const Link = require('./Link-91479cfa.js'); | ||
require('./logger-827e9fea.js'); | ||
require('./HTTPError-0b7234aa.js'); | ||
const buttonCss = "*{box-sizing:border-box}:host{--height:40px;--border-style:solid;--border-radius:30px;--border-width:2px;--text-decoration:none;--transition-duration:500ms;--spacing:14px;--align-inner:center;--focus:var(--focus-color, var(--color-focus));font-size:16px;display:inline-block;height:40px;height:var(--height);border-radius:30px;border-radius:var(--border-radius)}:host(:not([disabled]):focus),:host(:not([disabled]):focus-within){outline-offset:2px;outline-color:var(--focus);outline-style:solid}:host([variant='default']){---primary:var(--primary-color, var(--color-background));---secondary:var(--secondary-color, var(--color-secondary));---tertiary:var(--tertiary-color, var(--color-shade-30));--background-color:var(---primary);--foreground-color:var(---secondary);--border-color:var(---tertiary)}:host([variant='default']:not([disabled]):hover){--background-color:var(---secondary);--foreground-color:var(---primary);--border-color:var(---primary)}:host([variant='default'][disabled]){--background-color:var(--color-shade-40);--foreground-color:var(--color-background);--border-color:var(--color-shade-40)}:host([variant='filled']){---primary:var(--primary-color, var(--color-secondary));---secondary:var(--secondary-color, var(--color-background));---tertiary:var(--tertiary-color, var(--color-secondary));--background-color:var(---primary);--foreground-color:var(---secondary);--border-color:var(---tertiary)}:host([variant='filled']:not([disabled]):hover){--background-color:var(---secondary);--foreground-color:var(---primary);--border-color:var(---tertiary)}:host([variant='filled'][disabled]){--background-color:var(--color-shade-40);--foreground-color:var(--color-background);--border-color:var(--color-shade-40)}:host([variant='outline']){---primary:var(--primary-color, var(--color-background));---secondary:var(--secondary-color, var(--color-secondary));---tertiary:var(--tertiary-color, var(--color-secondary));--background-color:var(---primary);--foreground-color:var(---secondary);--border-color:var(---tertiary)}:host([variant='outline']:not([disabled]):hover){--background-color:var(---secondary);--foreground-color:var(---primary);--border-color:var(---tertiary)}:host([variant='outline'][disabled]){--background-color:var(--color-shade-40);--foreground-color:var(--color-background);--border-color:var(--color-shade-40)}:host([variant='delete']){--background-color:var(--color-background);--foreground-color:var(--color-error);--border-color:var(--color-error)}:host([variant='delete'][dark]){---secondary:var(--color-text)}:host([variant='delete']:not([disabled]):hover){--background-color:var(--color-error);--foreground-color:var(--color-error-contrast);--border-color:var(--color-error)}:host([variant='delete'][disabled]){--background-color:var(--color-shade-40);--foreground-color:var(--color-background);--border-color:var(--color-shade-40)}:host([variant='cancel']){--background-color:var(--color-shade-40);--foreground-color:var(--color-text);--border-color:var(--color-shade-40)}:host([variant='cancel'][high-contrast]){--background-color:var(--color-background)}:host([variant='cancel']:not([disabled]):hover){--background-color:var(--color-background);--foreground-color:var(--color-text);--border-color:var(--color-shade-40)}:host([variant='cancel'][high-contrast]:not([disabled]):hover){--background-color:var(--color-text);--foreground-color:var(--color-background)}:host([variant='cancel']:not([disabled]):focus),:host([variant='cancel']:not([disabled]):focus-within){--border-color:var(--color-focus)}:host([variant='cancel'][disabled]){--background-color:var(--color-shade-40);--foreground-color:var(--color-background);--border-color:var(--color-shade-40)}:host([variant='minimal']){---primary:var(--primary-color, var(--color-text));---secondary:var(--secondary-color, var(--color-secondary));--background-color:transparent;--foreground-color:var(---primary);--border-color:transparent;--border-width:0px;--border-radius:0px}:host([variant='minimal']:not([disabled]):hover){--foreground-color:var(---secondary)}:host([variant='minimal']:not([disabled]):focus),:host([variant='minimal']:not([disabled]):focus-within){--foreground-color:var(--color-focus)}:host([variant='minimal'][disabled]){--foreground-color:var(--color-shade-40)}:host([variant='link']){--background-color:transparent;--foreground-color:var(--color-secondary);--border-color:transparent;--border-width:0px;--border-radius:0px;--height:auto;font-size:inherit}:host([variant='link']) button,:host([variant='link']) a{padding:0}:host([variant='link']:not([disabled]):hover){--text-decoration:underline}:host([variant='link']:not([disabled]):focus),:host([variant='link']:not([disabled]):focus-within){--text-decoration:underline;--foreground-color:var(--color-focus)}:host([variant='link'][disabled]){--foreground-color:var(--color-shade-40)}:host([variant][high-contrast][disabled]){--background-color:var(--color-background);--foreground-color:var(--color-text);--border-style:dashed}button,a{display:flex;height:100%;width:100%;font-family:inherit;font-size:inherit;cursor:pointer;font-weight:400;outline:none;border-style:solid;align-items:center;justify-content:space-between;font:inherit;overflow:hidden;padding-top:0;padding-bottom:0;padding-left:var(--spacing);padding-right:var(--spacing);border-radius:var(--border-radius);border-width:var(--border-width);border-style:var(--border-style);-webkit-text-decoration:var(--text-decoration);text-decoration:var(--text-decoration);color:var(--foreground-color);background-color:var(--background-color);border-color:var(--border-color)}button:disabled,a:disabled,button[disabled],a[disabled]{cursor:not-allowed}:host(.hydrated) button,:host(.hydrated) a{transition-property:color, border-color, background-color;transition-duration:var(--transition-duration);transition-timing-function:ease}::slotted([slot='before']){margin-left:0;margin-right:var(--spacing)}::slotted([slot='after']){margin-left:var(--spacing);margin-right:0}span{display:flex;justify-content:var(--align-inner);flex:1 1 100%}::slotted(es-icon:not([slot]):only-child){margin-left:calc(0px - var(--spacing));margin-right:calc(0px - var(--spacing));width:calc(var(--height) - var(--border-width))}"; | ||
const buttonCss = "*{box-sizing:border-box}:host{--height:40px;--border-style:solid;--border-radius:30px;--border-width:2px;--text-decoration:none;--transition-duration:500ms;--spacing:14px;--align-inner:center;--focus:var(--focus-color, var(--color-focus));font-size:16px;display:inline-block;height:40px;height:var(--height);border-radius:30px;border-radius:var(--border-radius)}:host(:not([disabled]):focus),:host(:not([disabled]):focus-within){outline-offset:2px;outline-color:var(--focus);outline-style:solid}:host([variant='default']){---primary:var(--primary-color, var(--color-background));---secondary:var(--secondary-color, var(--color-secondary));---tertiary:var(--tertiary-color, var(--color-shade-30));--background-color:var(---primary);--foreground-color:var(---secondary);--border-color:var(---tertiary)}:host([variant='default']:not([disabled]):hover){--background-color:var(---secondary);--foreground-color:var(---primary);--border-color:var(---primary)}:host([variant='default'][disabled]){--background-color:var(--color-shade-40);--foreground-color:var(--color-background);--border-color:var(--color-shade-40)}:host([variant='filled']){---primary:var(--primary-color, var(--color-secondary));---secondary:var(--secondary-color, var(--color-background));---tertiary:var(--tertiary-color, var(--color-secondary));--background-color:var(---primary);--foreground-color:var(---secondary);--border-color:var(---tertiary)}:host([variant='filled']:not([disabled]):hover){--background-color:var(---secondary);--foreground-color:var(---primary);--border-color:var(---tertiary)}:host([variant='filled'][disabled]){--background-color:var(--color-shade-40);--foreground-color:var(--color-background);--border-color:var(--color-shade-40)}:host([variant='outline']){---primary:var(--primary-color, var(--color-background));---secondary:var(--secondary-color, var(--color-secondary));---tertiary:var(--tertiary-color, var(--color-secondary));--background-color:var(---primary);--foreground-color:var(---secondary);--border-color:var(---tertiary)}:host([variant='outline']:not([disabled]):hover){--background-color:var(---secondary);--foreground-color:var(---primary);--border-color:var(---tertiary)}:host([variant='outline'][disabled]){--background-color:var(--color-shade-40);--foreground-color:var(--color-background);--border-color:var(--color-shade-40)}:host([variant='delete']){--background-color:var(--color-background);--foreground-color:var(--color-error);--border-color:var(--color-error)}:host([variant='delete'][dark]){---secondary:var(--color-text)}:host([variant='delete']:not([disabled]):hover){--background-color:var(--color-error);--foreground-color:var(--color-error-contrast);--border-color:var(--color-error)}:host([variant='delete'][disabled]){--background-color:var(--color-shade-40);--foreground-color:var(--color-background);--border-color:var(--color-shade-40)}:host([variant='cancel']){--background-color:var(--color-shade-40);--foreground-color:var(--color-text);--border-color:var(--color-shade-40)}:host([variant='cancel'][high-contrast]){--background-color:var(--color-background)}:host([variant='cancel']:not([disabled]):hover){--background-color:var(--color-background);--foreground-color:var(--color-text);--border-color:var(--color-shade-40)}:host([variant='cancel'][high-contrast]:not([disabled]):hover){--background-color:var(--color-text);--foreground-color:var(--color-background)}:host([variant='cancel']:not([disabled]):focus),:host([variant='cancel']:not([disabled]):focus-within){--border-color:var(--color-focus)}:host([variant='cancel'][disabled]){--background-color:var(--color-shade-40);--foreground-color:var(--color-background);--border-color:var(--color-shade-40)}:host([variant='minimal']){---primary:var(--primary-color, var(--color-text));---secondary:var(--secondary-color, var(--color-secondary));--background-color:transparent;--foreground-color:var(---primary);--border-color:transparent;--border-width:0px;--border-radius:0px}:host([variant='minimal']:not([disabled]):hover){--foreground-color:var(---secondary)}:host([variant='minimal']:not([disabled]):focus),:host([variant='minimal']:not([disabled]):focus-within){--foreground-color:var(--color-focus)}:host([variant='minimal'][disabled]){--foreground-color:var(--color-shade-40)}:host([variant='link']){--background-color:transparent;--foreground-color:var(--color-secondary);--border-color:transparent;--border-width:0px;--border-radius:0px;--height:auto;font-size:inherit}:host([variant='link']) button,:host([variant='link']) a{padding:0}:host([variant='link']:not([disabled]):hover){--text-decoration:underline}:host([variant='link']:not([disabled]):focus),:host([variant='link']:not([disabled]):focus-within){--text-decoration:underline;--foreground-color:var(--color-focus)}:host([variant='link'][disabled]){--foreground-color:var(--color-shade-40)}:host([variant][high-contrast][disabled]){--background-color:var(--color-background);--foreground-color:var(--color-text);--border-style:dashed}button,a{display:flex;height:100%;width:100%;font-family:inherit;font-size:inherit;cursor:pointer;font-weight:400;outline:none;border-style:solid;align-items:center;justify-content:space-between;font:inherit;overflow:hidden;padding-top:0;padding-bottom:0;padding-left:var(--spacing);padding-right:var(--spacing);border-radius:var(--border-radius);border-width:var(--border-width);border-style:var(--border-style);-webkit-text-decoration:var(--text-decoration);text-decoration:var(--text-decoration);color:var(--foreground-color);background-color:var(--background-color);border-color:var(--border-color)}button:disabled,a:disabled,button[disabled],a[disabled]{cursor:not-allowed}:host(.hydrated) button,:host(.hydrated) a{transition-property:color, border-color, background-color;transition-duration:var(--transition-duration);transition-timing-function:ease}::slotted([slot='before']){margin-left:0;margin-right:var(--spacing)}::slotted([slot='after']){margin-left:var(--spacing);margin-right:0}span{display:flex;justify-content:var(--align-inner);flex:1 1 100%}::slotted(:where(es-icon,es-badge):not([slot]):only-child){margin-left:calc(0px - var(--spacing));margin-right:calc(0px - var(--spacing));width:calc(var(--height) - var(--border-width))}"; | ||
@@ -14,0 +14,0 @@ const ButtonLink = class { |
@@ -6,4 +6,4 @@ 'use strict'; | ||
const index = require('./index-6e7cb5d8.js'); | ||
const theme = require('./theme-1b90b747.js'); | ||
require('./createLogger-6c796380.js'); | ||
const theme = require('./theme-fb79877e.js'); | ||
require('./HTTPError-0b7234aa.js'); | ||
@@ -24,3 +24,3 @@ function closest(el, selector) { | ||
const buttonCss = "*{box-sizing:border-box}:host{--height:40px;--border-style:solid;--border-radius:30px;--border-width:2px;--text-decoration:none;--transition-duration:500ms;--spacing:14px;--align-inner:center;--focus:var(--focus-color, var(--color-focus));font-size:16px;display:inline-block;height:40px;height:var(--height);border-radius:30px;border-radius:var(--border-radius)}:host(:not([disabled]):focus),:host(:not([disabled]):focus-within){outline-offset:2px;outline-color:var(--focus);outline-style:solid}:host([variant='default']){---primary:var(--primary-color, var(--color-background));---secondary:var(--secondary-color, var(--color-secondary));---tertiary:var(--tertiary-color, var(--color-shade-30));--background-color:var(---primary);--foreground-color:var(---secondary);--border-color:var(---tertiary)}:host([variant='default']:not([disabled]):hover){--background-color:var(---secondary);--foreground-color:var(---primary);--border-color:var(---primary)}:host([variant='default'][disabled]){--background-color:var(--color-shade-40);--foreground-color:var(--color-background);--border-color:var(--color-shade-40)}:host([variant='filled']){---primary:var(--primary-color, var(--color-secondary));---secondary:var(--secondary-color, var(--color-background));---tertiary:var(--tertiary-color, var(--color-secondary));--background-color:var(---primary);--foreground-color:var(---secondary);--border-color:var(---tertiary)}:host([variant='filled']:not([disabled]):hover){--background-color:var(---secondary);--foreground-color:var(---primary);--border-color:var(---tertiary)}:host([variant='filled'][disabled]){--background-color:var(--color-shade-40);--foreground-color:var(--color-background);--border-color:var(--color-shade-40)}:host([variant='outline']){---primary:var(--primary-color, var(--color-background));---secondary:var(--secondary-color, var(--color-secondary));---tertiary:var(--tertiary-color, var(--color-secondary));--background-color:var(---primary);--foreground-color:var(---secondary);--border-color:var(---tertiary)}:host([variant='outline']:not([disabled]):hover){--background-color:var(---secondary);--foreground-color:var(---primary);--border-color:var(---tertiary)}:host([variant='outline'][disabled]){--background-color:var(--color-shade-40);--foreground-color:var(--color-background);--border-color:var(--color-shade-40)}:host([variant='delete']){--background-color:var(--color-background);--foreground-color:var(--color-error);--border-color:var(--color-error)}:host([variant='delete'][dark]){---secondary:var(--color-text)}:host([variant='delete']:not([disabled]):hover){--background-color:var(--color-error);--foreground-color:var(--color-error-contrast);--border-color:var(--color-error)}:host([variant='delete'][disabled]){--background-color:var(--color-shade-40);--foreground-color:var(--color-background);--border-color:var(--color-shade-40)}:host([variant='cancel']){--background-color:var(--color-shade-40);--foreground-color:var(--color-text);--border-color:var(--color-shade-40)}:host([variant='cancel'][high-contrast]){--background-color:var(--color-background)}:host([variant='cancel']:not([disabled]):hover){--background-color:var(--color-background);--foreground-color:var(--color-text);--border-color:var(--color-shade-40)}:host([variant='cancel'][high-contrast]:not([disabled]):hover){--background-color:var(--color-text);--foreground-color:var(--color-background)}:host([variant='cancel']:not([disabled]):focus),:host([variant='cancel']:not([disabled]):focus-within){--border-color:var(--color-focus)}:host([variant='cancel'][disabled]){--background-color:var(--color-shade-40);--foreground-color:var(--color-background);--border-color:var(--color-shade-40)}:host([variant='minimal']){---primary:var(--primary-color, var(--color-text));---secondary:var(--secondary-color, var(--color-secondary));--background-color:transparent;--foreground-color:var(---primary);--border-color:transparent;--border-width:0px;--border-radius:0px}:host([variant='minimal']:not([disabled]):hover){--foreground-color:var(---secondary)}:host([variant='minimal']:not([disabled]):focus),:host([variant='minimal']:not([disabled]):focus-within){--foreground-color:var(--color-focus)}:host([variant='minimal'][disabled]){--foreground-color:var(--color-shade-40)}:host([variant='link']){--background-color:transparent;--foreground-color:var(--color-secondary);--border-color:transparent;--border-width:0px;--border-radius:0px;--height:auto;font-size:inherit}:host([variant='link']) button,:host([variant='link']) a{padding:0}:host([variant='link']:not([disabled]):hover){--text-decoration:underline}:host([variant='link']:not([disabled]):focus),:host([variant='link']:not([disabled]):focus-within){--text-decoration:underline;--foreground-color:var(--color-focus)}:host([variant='link'][disabled]){--foreground-color:var(--color-shade-40)}:host([variant][high-contrast][disabled]){--background-color:var(--color-background);--foreground-color:var(--color-text);--border-style:dashed}button,a{display:flex;height:100%;width:100%;font-family:inherit;font-size:inherit;cursor:pointer;font-weight:400;outline:none;border-style:solid;align-items:center;justify-content:space-between;font:inherit;overflow:hidden;padding-top:0;padding-bottom:0;padding-left:var(--spacing);padding-right:var(--spacing);border-radius:var(--border-radius);border-width:var(--border-width);border-style:var(--border-style);-webkit-text-decoration:var(--text-decoration);text-decoration:var(--text-decoration);color:var(--foreground-color);background-color:var(--background-color);border-color:var(--border-color)}button:disabled,a:disabled,button[disabled],a[disabled]{cursor:not-allowed}:host(.hydrated) button,:host(.hydrated) a{transition-property:color, border-color, background-color;transition-duration:var(--transition-duration);transition-timing-function:ease}::slotted([slot='before']){margin-left:0;margin-right:var(--spacing)}::slotted([slot='after']){margin-left:var(--spacing);margin-right:0}span{display:flex;justify-content:var(--align-inner);flex:1 1 100%}::slotted(es-icon:not([slot]):only-child){margin-left:calc(0px - var(--spacing));margin-right:calc(0px - var(--spacing));width:calc(var(--height) - var(--border-width))}"; | ||
const buttonCss = "*{box-sizing:border-box}:host{--height:40px;--border-style:solid;--border-radius:30px;--border-width:2px;--text-decoration:none;--transition-duration:500ms;--spacing:14px;--align-inner:center;--focus:var(--focus-color, var(--color-focus));font-size:16px;display:inline-block;height:40px;height:var(--height);border-radius:30px;border-radius:var(--border-radius)}:host(:not([disabled]):focus),:host(:not([disabled]):focus-within){outline-offset:2px;outline-color:var(--focus);outline-style:solid}:host([variant='default']){---primary:var(--primary-color, var(--color-background));---secondary:var(--secondary-color, var(--color-secondary));---tertiary:var(--tertiary-color, var(--color-shade-30));--background-color:var(---primary);--foreground-color:var(---secondary);--border-color:var(---tertiary)}:host([variant='default']:not([disabled]):hover){--background-color:var(---secondary);--foreground-color:var(---primary);--border-color:var(---primary)}:host([variant='default'][disabled]){--background-color:var(--color-shade-40);--foreground-color:var(--color-background);--border-color:var(--color-shade-40)}:host([variant='filled']){---primary:var(--primary-color, var(--color-secondary));---secondary:var(--secondary-color, var(--color-background));---tertiary:var(--tertiary-color, var(--color-secondary));--background-color:var(---primary);--foreground-color:var(---secondary);--border-color:var(---tertiary)}:host([variant='filled']:not([disabled]):hover){--background-color:var(---secondary);--foreground-color:var(---primary);--border-color:var(---tertiary)}:host([variant='filled'][disabled]){--background-color:var(--color-shade-40);--foreground-color:var(--color-background);--border-color:var(--color-shade-40)}:host([variant='outline']){---primary:var(--primary-color, var(--color-background));---secondary:var(--secondary-color, var(--color-secondary));---tertiary:var(--tertiary-color, var(--color-secondary));--background-color:var(---primary);--foreground-color:var(---secondary);--border-color:var(---tertiary)}:host([variant='outline']:not([disabled]):hover){--background-color:var(---secondary);--foreground-color:var(---primary);--border-color:var(---tertiary)}:host([variant='outline'][disabled]){--background-color:var(--color-shade-40);--foreground-color:var(--color-background);--border-color:var(--color-shade-40)}:host([variant='delete']){--background-color:var(--color-background);--foreground-color:var(--color-error);--border-color:var(--color-error)}:host([variant='delete'][dark]){---secondary:var(--color-text)}:host([variant='delete']:not([disabled]):hover){--background-color:var(--color-error);--foreground-color:var(--color-error-contrast);--border-color:var(--color-error)}:host([variant='delete'][disabled]){--background-color:var(--color-shade-40);--foreground-color:var(--color-background);--border-color:var(--color-shade-40)}:host([variant='cancel']){--background-color:var(--color-shade-40);--foreground-color:var(--color-text);--border-color:var(--color-shade-40)}:host([variant='cancel'][high-contrast]){--background-color:var(--color-background)}:host([variant='cancel']:not([disabled]):hover){--background-color:var(--color-background);--foreground-color:var(--color-text);--border-color:var(--color-shade-40)}:host([variant='cancel'][high-contrast]:not([disabled]):hover){--background-color:var(--color-text);--foreground-color:var(--color-background)}:host([variant='cancel']:not([disabled]):focus),:host([variant='cancel']:not([disabled]):focus-within){--border-color:var(--color-focus)}:host([variant='cancel'][disabled]){--background-color:var(--color-shade-40);--foreground-color:var(--color-background);--border-color:var(--color-shade-40)}:host([variant='minimal']){---primary:var(--primary-color, var(--color-text));---secondary:var(--secondary-color, var(--color-secondary));--background-color:transparent;--foreground-color:var(---primary);--border-color:transparent;--border-width:0px;--border-radius:0px}:host([variant='minimal']:not([disabled]):hover){--foreground-color:var(---secondary)}:host([variant='minimal']:not([disabled]):focus),:host([variant='minimal']:not([disabled]):focus-within){--foreground-color:var(--color-focus)}:host([variant='minimal'][disabled]){--foreground-color:var(--color-shade-40)}:host([variant='link']){--background-color:transparent;--foreground-color:var(--color-secondary);--border-color:transparent;--border-width:0px;--border-radius:0px;--height:auto;font-size:inherit}:host([variant='link']) button,:host([variant='link']) a{padding:0}:host([variant='link']:not([disabled]):hover){--text-decoration:underline}:host([variant='link']:not([disabled]):focus),:host([variant='link']:not([disabled]):focus-within){--text-decoration:underline;--foreground-color:var(--color-focus)}:host([variant='link'][disabled]){--foreground-color:var(--color-shade-40)}:host([variant][high-contrast][disabled]){--background-color:var(--color-background);--foreground-color:var(--color-text);--border-style:dashed}button,a{display:flex;height:100%;width:100%;font-family:inherit;font-size:inherit;cursor:pointer;font-weight:400;outline:none;border-style:solid;align-items:center;justify-content:space-between;font:inherit;overflow:hidden;padding-top:0;padding-bottom:0;padding-left:var(--spacing);padding-right:var(--spacing);border-radius:var(--border-radius);border-width:var(--border-width);border-style:var(--border-style);-webkit-text-decoration:var(--text-decoration);text-decoration:var(--text-decoration);color:var(--foreground-color);background-color:var(--background-color);border-color:var(--border-color)}button:disabled,a:disabled,button[disabled],a[disabled]{cursor:not-allowed}:host(.hydrated) button,:host(.hydrated) a{transition-property:color, border-color, background-color;transition-duration:var(--transition-duration);transition-timing-function:ease}::slotted([slot='before']){margin-left:0;margin-right:var(--spacing)}::slotted([slot='after']){margin-left:var(--spacing);margin-right:0}span{display:flex;justify-content:var(--align-inner);flex:1 1 100%}::slotted(:where(es-icon,es-badge):not([slot]):only-child){margin-left:calc(0px - var(--spacing));margin-right:calc(0px - var(--spacing));width:calc(var(--height) - var(--border-width))}"; | ||
@@ -27,0 +27,0 @@ const Button = class { |
@@ -6,5 +6,5 @@ 'use strict'; | ||
const index = require('./index-6e7cb5d8.js'); | ||
const theme = require('./theme-1b90b747.js'); | ||
const theme = require('./theme-fb79877e.js'); | ||
const namespace = require('./namespace-12ca145c.js'); | ||
require('./createLogger-6c796380.js'); | ||
require('./HTTPError-0b7234aa.js'); | ||
@@ -11,0 +11,0 @@ const esCalloutCss = ":host,*{box-sizing:border-box}:host{display:block;border-width:1px 1px 1px 8px;border-style:solid;border-color:var(--weak-color);border-left-color:var(--strong-color);background-color:var(--weak-color);position:relative;padding:18px 30px;color:var(--text-color);margin:0 16px 20px 16px;--primary-color:var(--weak-color);--secondary-color:var(--strong-color);--tertiary-color:var(--strong-color)}:host([variant='tip']){--strong-color:var(--color-success);--weak-color:var(--color-success-alt);--text-color:var(--color-success-alt-contrast)}:host([variant='info']){--strong-color:var(--color-info);--weak-color:var(--color-info-alt);--text-color:var(--color-info-alt-contrast)}:host([variant='warning']){--strong-color:var(--color-warning);--weak-color:var(--color-warning-alt);--text-color:var(--color-warning-alt-contrast)}:host([variant='error']){--strong-color:var(--color-error);--weak-color:var(--color-error-alt);--text-color:var(--color-error-alt-contrast)}:host([high-contrast]){--weak-color:var(--color-background);--text-color:var(--color-text);border-color:var(--strong-color)}es-icon{position:absolute;top:12px;left:-24px;width:40px;height:40px;display:flex;align-items:center;justify-content:center;border-radius:50%;border:2px solid var(--strong-color);background-color:var(--weak-color);color:var(--strong-color)}h1{font-size:18px;font-weight:700;color:var(--strong-color);margin:0;line-height:1.5;margin-bottom:12px}"; |
@@ -6,6 +6,6 @@ 'use strict'; | ||
const index = require('./index-6e7cb5d8.js'); | ||
require('./theme-1b90b747.js'); | ||
require('./index-0711258b.js'); | ||
require('./createLogger-6c796380.js'); | ||
require('./iconStore-f0d92913.js'); | ||
require('./theme-fb79877e.js'); | ||
require('./index-8029712e.js'); | ||
require('./HTTPError-0b7234aa.js'); | ||
require('./iconStore-77a854f1.js'); | ||
require('./namespace-12ca145c.js'); | ||
@@ -26,3 +26,3 @@ | ||
patchBrowser().then(options => { | ||
return index.bootstrapLazy([["es-popover.cjs",[[1,"es-popover",{"popperClass":[1,"popper-class"],"target":[1],"open":[516],"backdrop":[4],"zIndex":[2,"z-index"],"arrow":[4],"trapFocus":[4,"trap-focus"],"closeOnBlur":[4,"close-on-blur"],"closeOnClickOutside":[4,"close-on-click-outside"],"closeOnEsc":[4,"close-on-esc"],"closeOnScrollEscape":[4,"close-on-scroll-escape"],"hideOnScrollEscape":[4,"hide-on-scroll-escape"],"attachTo":[16],"autoSize":[1,"auto-size"],"constrain":[1],"maxHeight":[2,"max-height"],"maxWidth":[2,"max-width"],"placement":[1],"flip":[4],"offset":[2]},[[4,"click","onClickOutside"],[6,"keydown","onEscPress"]]]]],["es-icon.cjs",[[1,"es-icon",{"icon":[1],"size":[2],"angle":[2],"spin":[4],"spinDirection":[1,"spin-direction"],"autoSpin":[32],"Component":[32],"spinEnd":[64]}]]],["es-table-nested.cjs",[[0,"es-table-nested",{"headless":[4],"stickyHeader":[4,"sticky-header"],"outerIdentifier":[1,"outer-identifier"],"getCellData":[16],"getRowKey":[16],"getNestedRowKey":[16],"cells":[16],"columns":[16],"rows":[16],"linkRowTo":[16],"rowTakesFocus":[4,"row-takes-focus"],"rowClass":[16],"toggleRowOnClick":[4,"toggle-row-on-click"],"extraCellProps":[16],"nestedIdentifier":[1,"nested-identifier"],"nestedColumns":[16],"getNestedRows":[16],"getNestedCellData":[16],"loadNested":[16],"nestedRowTakesFocus":[4,"nested-row-takes-focus"],"canExpand":[16],"canExpandMore":[16],"expandBy":[2,"expand-by"],"defaultExpanded":[16],"activePath":[16],"expanded":[32],"loading":[32]}]]],["es-tabs.cjs",[[1,"es-tabs",{"tabs":[16],"activeParam":[8,"active-param"],"active":[1025],"interTabIcon":[1,"inter-tab-icon"],"interTabIconSize":[2,"inter-tab-icon-size"],"activeDragOver":[32]}]]],["es-toaster.cjs",[[1,"es-toaster",{"slices":[32],"loaf":[32],"popToast":[64]}]]],["es-accordian.cjs",[[1,"es-accordian",{"sections":[16],"steps":[4],"collapsed":[32]},[[0,"focusin","handleFocusIn"]]]]],["es-pagination.cjs",[[1,"es-pagination",{"pageCount":[2,"page-count"],"current":[2]}]]],["es-table-virtualized.cjs",[[0,"es-table-virtualized",{"identifier":[1],"headless":[4],"stickyHeader":[4,"sticky-header"],"getCellData":[16],"getKeyFromIndex":[16],"cells":[16],"columns":[16],"rowCount":[2,"row-count"],"renderBefore":[16],"renderAfter":[16],"windowSize":[2,"window-size"],"blockSize":[2,"block-size"],"reflowSize":[2,"reflow-size"],"linkRowTo":[16],"rowHeight":[2,"row-height"],"headerHeight":[2,"header-height"],"beforeHeight":[2,"before-height"],"afterHeight":[2,"after-height"],"rowTakesFocus":[4,"row-takes-focus"],"rowClass":[16],"sort":[16],"scrollLock":[4,"scroll-lock"],"extraCellProps":[16],"trailingEdge":[32],"reflowRow":[32],"warp":[32],"jumpHighlight":[32],"invertBanding":[32],"jumpToRow":[64]}]]],["es-thinking-button.cjs",[[1,"es-thinking-button",{"action":[16],"text":[1],"variant":[1],"disabled":[4],"defaultIcon":[1,"default-icon"],"thinkingIcon":[1,"thinking-icon"],"completeIcon":[1,"complete-icon"],"failedIcon":[1,"failed-icon"],"status":[32]}]]],["es-callout.cjs",[[1,"es-callout",{"heading":[1],"variant":[513],"icon":[1]}]]],["es-copy.cjs",[[1,"es-copy",{"status":[32],"copy":[64]},[[0,"click","onClick"]]]]],["es-loading-dots.cjs",[[1,"es-loading-dots"]]],["es-modal.cjs",[[1,"es-modal",{"header":[4],"footer":[4]},[[0,"keyup","onEscape"]]]]],["es-portal.cjs",[[1,"es-portal",{"target":[1],"renderElement":[16],"open":[516],"backdrop":[4],"preventOverscroll":[4,"prevent-overscroll"],"attachElement":[64],"detatchElement":[64]}]]],["es-progression.cjs",[[1,"es-progression",{"checkpoints":[16],"location":[1],"readonly":[4],"colors":[16],"icons":[16]}]]],["es-status.cjs",[[1,"es-status",{"status":[1]}]]],["es-button-link.cjs",[[1,"es-button-link",{"variant":[513],"disabled":[516],"url":[1],"forceRefresh":[4,"force-refresh"],"external":[4],"anchorClass":[1,"anchor-class"],"anchorRole":[1,"anchor-role"],"anchorTitle":[1,"anchor-title"],"anchorTabIndex":[1,"anchor-tab-index"],"anchorId":[1,"anchor-id"],"target":[1]}]]],["es-corner-banner.cjs",[[1,"es-corner-banner",{"variant":[513],"y":[1],"x":[1]}]]],["es-loading-text.cjs",[[1,"es-loading-text",{"expectedLength":[2,"expected-length"],"variance":[2]}]]],["es-resize-observer.cjs",[[0,"es-resize-observer"]]],["es-table-detail.cjs",[[0,"es-table-detail",{"identifier":[1],"data":[8],"cells":[16],"columns":[16]}]]],["es-table-detail-header.cjs",[[0,"es-table-detail-header",{"identifier":[1],"data":[8],"titleCell":[1,"title-cell"],"actionsCell":[1,"actions-cell"],"cells":[16]}]]],["es-wizard.cjs",[[1,"es-wizard",{"pages":[16],"location":[1],"scrollOffset":[2,"scroll-offset"]}]]],["es-table.cjs",[[0,"es-table",{"identifier":[1],"headless":[4],"stickyHeader":[4,"sticky-header"],"getCellData":[16],"getRowKey":[16],"cells":[16],"columns":[16],"rows":[16],"linkRowTo":[16],"rowTakesFocus":[4,"row-takes-focus"],"rowClass":[16],"renderExpansion":[16],"sort":[16],"extraCellProps":[16]}]]],["es-toast.cjs",[[1,"es-toast",{"level":[1],"count":[2],"icon":[1],"transitionState":[32],"close":[64]}]]],["es-badge.cjs",[[1,"es-badge",{"variant":[1],"color":[1],"count":[2],"showZero":[4,"show-zero"],"size":[2]}]]],["es-backdrop.cjs",[[1,"es-backdrop",{"showBackdrop":[4,"show-backdrop"],"preventOverscroll":[516,"prevent-overscroll"],"child":[32],"state":[32],"renderNode":[64],"close":[64]}]]],["es-popper_4.cjs",[[1,"es-popper",{"backdrop":[4],"trapFocus":[4,"trap-focus"],"loaded":[64]},[[0,"keyup","onEscape"]]],[1,"es-popper-inner"],[0,"es-popper-x"],[0,"es-popper-y"]]],["es-button.cjs",[[1,"es-button",{"variant":[513],"disabled":[516],"type":[1]},[[0,"keyup","handleKeyUp"],[2,"click","handleClick"]]]]],["es-counter.cjs",[[1,"es-counter",{"count":[2],"size":[2],"variant":[513],"color":[1],"pulsing":[32]}]]]], options); | ||
return index.bootstrapLazy([["es-action-with-confirmation.cjs",[[1,"es-action-with-confirmation",{"dropdownItem":[516,"dropdown-item"],"action":[16],"disabled":[4],"icon":[1],"dot":[1],"typeToConfirm":[1,"type-to-confirm"],"modal":[16],"open":[32]}]]],["es-action-dropdown.cjs",[[1,"es-action-dropdown",{"icon":[1],"dropdownOpen":[32]}]]],["es-action.cjs",[[1,"es-action",{"dropdownItem":[516,"dropdown-item"],"action":[16],"disabled":[4],"icon":[1],"dot":[1]}]]],["es-action-link.cjs",[[1,"es-action-link",{"dropdownItem":[516,"dropdown-item"],"url":[1],"disabled":[4],"icon":[1],"dot":[1]}]]],["es-table-nested.cjs",[[0,"es-table-nested",{"headless":[4],"stickyHeader":[4,"sticky-header"],"outerIdentifier":[1,"outer-identifier"],"getCellData":[16],"getRowKey":[16],"getNestedRowKey":[16],"cells":[16],"columns":[16],"rows":[16],"linkRowTo":[16],"rowTakesFocus":[4,"row-takes-focus"],"rowClass":[16],"toggleRowOnClick":[4,"toggle-row-on-click"],"extraCellProps":[16],"nestedIdentifier":[1,"nested-identifier"],"nestedColumns":[16],"getNestedRows":[16],"getNestedCellData":[16],"loadNested":[16],"nestedRowTakesFocus":[4,"nested-row-takes-focus"],"canExpand":[16],"canExpandMore":[16],"expandBy":[2,"expand-by"],"defaultExpanded":[16],"activePath":[16],"expanded":[32],"loading":[32]}]]],["es-tabs.cjs",[[1,"es-tabs",{"tabs":[16],"activeParam":[8,"active-param"],"active":[1025],"interTabIcon":[1,"inter-tab-icon"],"interTabIconSize":[2,"inter-tab-icon-size"],"activeDragOver":[32]}]]],["es-toaster.cjs",[[1,"es-toaster",{"slices":[32],"loaf":[32],"popToast":[64]}]]],["es-accordian.cjs",[[1,"es-accordian",{"sections":[16],"steps":[4],"collapsed":[32]},[[0,"focusin","handleFocusIn"]]]]],["es-pagination.cjs",[[1,"es-pagination",{"pageCount":[2,"page-count"],"current":[2]}]]],["es-table-virtualized.cjs",[[0,"es-table-virtualized",{"identifier":[1],"headless":[4],"stickyHeader":[4,"sticky-header"],"getCellData":[16],"getKeyFromIndex":[16],"cells":[16],"columns":[16],"rowCount":[2,"row-count"],"renderBefore":[16],"renderAfter":[16],"windowSize":[2,"window-size"],"blockSize":[2,"block-size"],"reflowSize":[2,"reflow-size"],"linkRowTo":[16],"rowHeight":[2,"row-height"],"headerHeight":[2,"header-height"],"beforeHeight":[2,"before-height"],"afterHeight":[2,"after-height"],"rowTakesFocus":[4,"row-takes-focus"],"rowClass":[16],"sort":[16],"scrollLock":[4,"scroll-lock"],"extraCellProps":[16],"trailingEdge":[32],"reflowRow":[32],"warp":[32],"jumpHighlight":[32],"invertBanding":[32],"jumpToRow":[64]}]]],["es-thinking-button.cjs",[[1,"es-thinking-button",{"action":[16],"text":[1],"variant":[1],"disabled":[4],"defaultIcon":[1,"default-icon"],"thinkingIcon":[1,"thinking-icon"],"completeIcon":[1,"complete-icon"],"failedIcon":[1,"failed-icon"],"status":[32]}]]],["es-callout.cjs",[[1,"es-callout",{"heading":[1],"variant":[513],"icon":[1]}]]],["es-copy.cjs",[[1,"es-copy",{"status":[32],"copy":[64]},[[0,"click","onClick"]]]]],["es-loading-dots.cjs",[[1,"es-loading-dots"]]],["es-progression.cjs",[[1,"es-progression",{"checkpoints":[16],"location":[1],"readonly":[4],"colors":[16],"icons":[16]}]]],["es-status.cjs",[[1,"es-status",{"status":[1]}]]],["es-actions.cjs",[[1,"es-actions"]]],["es-corner-banner.cjs",[[1,"es-corner-banner",{"variant":[513],"y":[1],"x":[1]}]]],["es-loading-text.cjs",[[1,"es-loading-text",{"expectedLength":[2,"expected-length"],"variance":[2]}]]],["es-resize-observer.cjs",[[0,"es-resize-observer"]]],["es-table-detail.cjs",[[0,"es-table-detail",{"identifier":[1],"data":[8],"cells":[16],"columns":[16]}]]],["es-table-detail-header.cjs",[[0,"es-table-detail-header",{"identifier":[1],"data":[8],"titleCell":[1,"title-cell"],"actionsCell":[1,"actions-cell"],"cells":[16]}]]],["es-wizard.cjs",[[1,"es-wizard",{"pages":[16],"location":[1],"scrollOffset":[2,"scroll-offset"]}]]],["es-table.cjs",[[0,"es-table",{"identifier":[1],"headless":[4],"stickyHeader":[4,"sticky-header"],"getCellData":[16],"getRowKey":[16],"cells":[16],"columns":[16],"rows":[16],"linkRowTo":[16],"rowTakesFocus":[4,"row-takes-focus"],"rowClass":[16],"renderExpansion":[16],"sort":[16],"extraCellProps":[16]}]]],["es-toast.cjs",[[1,"es-toast",{"level":[1],"count":[2],"icon":[1],"transitionState":[32],"close":[64]}]]],["es-button-link.cjs",[[1,"es-button-link",{"variant":[513],"disabled":[516],"url":[1],"forceRefresh":[4,"force-refresh"],"external":[4],"anchorClass":[1,"anchor-class"],"anchorRole":[1,"anchor-role"],"anchorTitle":[1,"anchor-title"],"anchorTabIndex":[1,"anchor-tab-index"],"anchorId":[1,"anchor-id"],"target":[1]}]]],["es-backdrop.cjs",[[1,"es-backdrop",{"showBackdrop":[4,"show-backdrop"],"preventOverscroll":[516,"prevent-overscroll"],"child":[32],"state":[32],"renderNode":[64],"close":[64],"cancelClose":[64]}]]],["es-counter.cjs",[[1,"es-counter",{"count":[2],"size":[2],"variant":[513],"color":[1],"pulsing":[32]}]]],["es-button.cjs",[[1,"es-button",{"variant":[513],"disabled":[516],"type":[1]},[[0,"keyup","handleKeyUp"],[2,"click","handleClick"]]]]],["es-popper_4.cjs",[[1,"es-popper",{"backdrop":[4],"trapFocus":[4,"trap-focus"],"loaded":[64]},[[0,"keyup","onEscape"]]],[1,"es-popper-inner"],[0,"es-popper-x"],[0,"es-popper-y"]]],["es-icon.cjs",[[1,"es-icon",{"icon":[1],"size":[2],"angle":[2],"spin":[4],"spinDirection":[1,"spin-direction"],"autoSpin":[32],"Component":[32],"spinEnd":[64]}]]],["es-modal_2.cjs",[[1,"es-modal",{"header":[4],"footer":[4]},[[0,"keyup","onEscape"]]],[1,"es-popover",{"popperClass":[1,"popper-class"],"target":[1],"open":[516],"backdrop":[4],"zIndex":[2,"z-index"],"arrow":[4],"trapFocus":[4,"trap-focus"],"closeOnBlur":[4,"close-on-blur"],"closeOnClickOutside":[4,"close-on-click-outside"],"closeOnEsc":[4,"close-on-esc"],"closeOnScrollEscape":[4,"close-on-scroll-escape"],"hideOnScrollEscape":[4,"hide-on-scroll-escape"],"attachTo":[16],"autoSize":[1,"auto-size"],"constrain":[1],"maxHeight":[2,"max-height"],"maxWidth":[2,"max-width"],"placement":[1],"flip":[4],"offset":[2]},[[4,"click","onClickOutside"],[6,"keydown","onEscPress"]]]]],["es-confirm-modal_2.cjs",[[1,"es-confirm-modal",{"preHeading":[1,"pre-heading"],"heading":[1],"body":[1],"warning":[1],"confirm":[1],"confirmVariant":[1,"confirm-variant"],"typeToConfirm":[1,"type-to-confirm"],"typed":[32],"copied":[32]}],[1,"es-portal",{"target":[1],"renderElement":[16],"open":[516],"backdrop":[4],"preventOverscroll":[4,"prevent-overscroll"],"attachElement":[64],"detatchElement":[64]}]]],["es-badge.cjs",[[1,"es-badge",{"variant":[1],"color":[1],"count":[2],"showZero":[4,"show-zero"],"size":[2]}]]]], options); | ||
}); | ||
@@ -29,0 +29,0 @@ |
@@ -6,8 +6,8 @@ 'use strict'; | ||
const index = require('./index-6e7cb5d8.js'); | ||
const createLogger = require('./createLogger-6c796380.js'); | ||
const iconStore = require('./iconStore-f0d92913.js'); | ||
const HTTPError = require('./HTTPError-0b7234aa.js'); | ||
const iconStore = require('./iconStore-77a854f1.js'); | ||
const esIconCss = ":host{display:inline-flex;align-items:center;justify-content:center}svg{display:block;stroke-width:1.5px;stroke-linecap:round;stroke-linejoin:round;animation-name:spinClockwise;animation-iteration-count:0;animation-timing-function:linear;animation-duration:500ms}svg:not([stroke]):not([fill]){fill:currentColor}svg.antiClockwise{animation-name:spinAntiClockwise}svg.spin{animation-iteration-count:infinite}@keyframes spinClockwise{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}@keyframes spinAntiClockwise{from{transform:rotate(0deg)}to{transform:rotate(-360deg)}}"; | ||
const logger = createLogger.createLogger('es-icon', 'orange'); | ||
const logger = HTTPError.createLogger('es-icon', 'orange'); | ||
const Icon = class { | ||
@@ -14,0 +14,0 @@ constructor(hostRef) { |
@@ -6,3 +6,3 @@ 'use strict'; | ||
const index = require('./index-6e7cb5d8.js'); | ||
require('./createLogger-6c796380.js'); | ||
require('./HTTPError-0b7234aa.js'); | ||
const focus = require('./focus-56c14101.js'); | ||
@@ -56,3 +56,3 @@ | ||
const esPopperInnerCss = ":host{position:absolute;top:0;left:0;z-index:10;pointer-events:none;margin:0}:host(.hidden){display:none}:where(.inner){background-color:var(--color-background);box-shadow:0 0 5px 5px rgba(0, 0, 0, 0.11);overflow:auto;pointer-events:all}:where(.arrow){position:absolute;display:block;height:24px;width:24px;overflow:hidden;pointer-events:none}:where(.arrow)::after{content:'';display:block;height:24px;width:24px;position:absolute;background-color:var(--color-layout-highlight);border-radius:50%;transition:opacity 400ms ease, transform 400ms ease;opacity:0;transform:translateY(0px)}[data-placement^='top']:where(.arrow){top:100%}[data-placement^='top']:where(.arrow)::after{bottom:100%}.entered[data-placement^='top']:where(.arrow)::after{opacity:1;transform:translateY(9px)}[data-placement^='bottom']:where(.arrow){bottom:100%}[data-placement^='bottom']:where(.arrow)::after{top:100%}.entered[data-placement^='bottom']:where(.arrow)::after{opacity:1;transform:translateY(-9px)}[data-placement^='left']:where(.arrow){left:100%}[data-placement^='left']:where(.arrow)::after{right:100%}.entered[data-placement^='left']:where(.arrow)::after{opacity:1;transform:translateX(9px)}[data-placement^='right']:where(.arrow){right:100%}[data-placement^='right']:where(.arrow)::after{left:100%}.entered[data-placement^='right']:where(.arrow)::after{opacity:1;transform:translateX(-9px)}:where(es-popper-x),:where(es-popper-y){display:block;pointer-events:none}"; | ||
const esPopperInnerCss = ":host{position:absolute;top:0;left:0;z-index:10;pointer-events:none;margin:0}:host(.hidden){display:none}:where(.inner){background-color:var(--color-background);box-shadow:0 0 5px 5px rgba(0, 0, 0, 0.11);overflow:auto;pointer-events:all}:where(.arrow){position:absolute;display:block;height:24px;width:24px;overflow:hidden;pointer-events:none}:where(.arrow)::after{content:'';display:block;height:24px;width:24px;position:absolute;background-color:var(--color-secondary);border-radius:50%;transition:opacity 400ms ease, transform 400ms ease;opacity:0;transform:translateY(0px)}[data-placement^='top']:where(.arrow){top:100%}[data-placement^='top']:where(.arrow)::after{bottom:100%}.entered[data-placement^='top']:where(.arrow)::after{opacity:1;transform:translateY(9px)}[data-placement^='bottom']:where(.arrow){bottom:100%}[data-placement^='bottom']:where(.arrow)::after{top:100%}.entered[data-placement^='bottom']:where(.arrow)::after{opacity:1;transform:translateY(-9px)}[data-placement^='left']:where(.arrow){left:100%}[data-placement^='left']:where(.arrow)::after{right:100%}.entered[data-placement^='left']:where(.arrow)::after{opacity:1;transform:translateX(9px)}[data-placement^='right']:where(.arrow){right:100%}[data-placement^='right']:where(.arrow)::after{left:100%}.entered[data-placement^='right']:where(.arrow)::after{opacity:1;transform:translateX(-9px)}:where(es-popper-x),:where(es-popper-y){display:block;pointer-events:none}"; | ||
@@ -59,0 +59,0 @@ const Popper$2 = class { |
@@ -6,7 +6,7 @@ 'use strict'; | ||
const index = require('./index-6e7cb5d8.js'); | ||
const Link = require('./Link-1aa1c7b0.js'); | ||
require('./logger-e225b519.js'); | ||
const TableHeader = require('./TableHeader-0bd74813.js'); | ||
const theme = require('./theme-1b90b747.js'); | ||
require('./createLogger-6c796380.js'); | ||
const Link = require('./Link-91479cfa.js'); | ||
require('./logger-827e9fea.js'); | ||
const TableHeader = require('./TableHeader-f79cccf0.js'); | ||
const theme = require('./theme-fb79877e.js'); | ||
require('./HTTPError-0b7234aa.js'); | ||
const autoExtract = require('./autoExtract-ef9c7970.js'); | ||
@@ -13,0 +13,0 @@ require('./namespace-12ca145c.js'); |
@@ -6,11 +6,11 @@ 'use strict'; | ||
const index = require('./index-6e7cb5d8.js'); | ||
const Link = require('./Link-1aa1c7b0.js'); | ||
require('./logger-e225b519.js'); | ||
const TableHeader = require('./TableHeader-0bd74813.js'); | ||
const theme = require('./theme-1b90b747.js'); | ||
const createLogger = require('./createLogger-6c796380.js'); | ||
const Link = require('./Link-91479cfa.js'); | ||
require('./logger-827e9fea.js'); | ||
const TableHeader = require('./TableHeader-f79cccf0.js'); | ||
const theme = require('./theme-fb79877e.js'); | ||
const HTTPError = require('./HTTPError-0b7234aa.js'); | ||
const autoExtract = require('./autoExtract-ef9c7970.js'); | ||
require('./namespace-12ca145c.js'); | ||
const logger = createLogger.createLogger('@eventstore-ui/components', 'radial-gradient( circle farthest-corner at 10% 20%, rgba(0,95,104,1) 0%, rgba(15,156,168,1) 90% )'); | ||
const logger = HTTPError.createLogger('@eventstore-ui/components', 'radial-gradient( circle farthest-corner at 10% 20%, rgba(0,95,104,1) 0%, rgba(15,156,168,1) 90% )'); | ||
@@ -17,0 +17,0 @@ const esTableCss = "es-table{display:grid;width:100%}es-table *,es-table *::before,es-table *::after{box-sizing:border-box}:where([role='row']){background-color:transparent;display:contents}:where(a[role='row']){color:inherit;text-decoration:inherit;transition:color 500ms ease}:where(a[role='row']):hover{color:var(--color-secondary)}:where([role='columnheader']:not(es-button),[role='cell']){padding:16px 12px;min-height:50px}:where([role='columnheader']:not(es-button),[role='cell']):first-child{padding-left:24px}:where([role='columnheader']:not(es-button),[role='cell']):last-child{padding-right:24px}.no_pad:where([role='columnheader']:not(es-button),[role='cell']){padding:0}.center:where([role='columnheader']:not(es-button),[role='cell']){justify-content:center}.end:where([role='columnheader']:not(es-button),[role='cell']){justify-content:flex-end}.group_first:where([role='columnheader']:not(es-button),[role='cell']){padding-left:20px}.group_last:where([role='columnheader']:not(es-button),[role='cell']){padding-right:20px}:where([role='columnheader']){display:flex;align-items:center;text-align:left;font-weight:700;font-size:16px;height:auto;min-height:52px;color:var(--color-title-2);line-height:1;border-color:var(--color-shade-30);border-style:solid;border-width:0;border-bottom-width:2px}.expander-header:where([role='columnheader']){padding-left:0}.expander-header:where([role='columnheader'])+*[role='columnheader']{padding-left:0}.group_first:where([role='columnheader']){border-left-width:2px}:where(es-button[role='columnheader']){--primary-color:var(--color-title-2);--spacing:2px;--align-inner:flex-start;line-height:1;outline-offset:-6px}:where(es-button[role='columnheader'])::part(button){padding:14px 12px}:where(es-button[role='columnheader']):first-child::part(button){padding-left:24px}:where(es-button[role='columnheader']):last-child::part(button){padding-right:24px}.no_pad:where(es-button[role='columnheader'])::part(button){padding:0}.center:where(es-button[role='columnheader']){--align-inner:center}.end:where(es-button[role='columnheader']){--align-inner:flex-end}.group_first:where(es-button[role='columnheader'])::part(button){border-left-width:2px;padding-left:20px}.group_last:where(es-button[role='columnheader'])::part(button){padding-right:20px}:where(.subheader [role='columnheader']){font-weight:400}.sticky [role='columnheader']{position:sticky;top:0;top:var(--sticky-top, 0);z-index:1;background-color:var(--color-background);transform:translate3d(0, 0, 0)}.subheader.sticky [role='columnheader']{top:calc(0px + 52px);top:calc(var(--sticky-top, 0px) + 52px)}:where([role='rowgroup']){display:contents;--row-color:var(--color-background);--border-top-color:var(--border-top-color, transparent);--border-bottom-color:var(--border-bottom-color, transparent);--border-group-color:var(--color-shade-30)}.highlight:where([role='rowgroup']) [role='cell']{z-index:0}.highlight:where([role='rowgroup']) [role='cell']::after{position:absolute;content:'';left:0;right:0;top:0;bottom:0;display:block;animation-iteration-count:2;animation-duration:1s;animation-name:es-table-jump-highlight;z-index:-1;opacity:0.2}:where(es-table,es-table-virtualized)[high-contrast] :where([role='rowgroup']){--border-bottom-color:var(--color-shade-30)}:where(es-table,es-table-virtualized):not([high-contrast]) .odd{--row-color:var(--color-shade-10)}:where(.selectable){cursor:pointer;transition:color 500ms ease}:where(.selectable) [role='cell']:first-child::before{content:'';display:block;position:absolute;background-color:currentColor;width:20px;height:20px;border-radius:50%;right:100%;top:0;bottom:0;margin:auto;transition:transform 500ms ease, opacity 500ms ease;opacity:0}:where(.selectable) [role='cell']:focus-visible::before{transform:translateX(5px);opacity:0.5}:where(.selectable):hover,:where(.selectable):focus{color:var(--color-secondary)}:where(.selectable):hover [role='cell']:first-child::before,:where(.selectable):focus [role='cell']:first-child::before{transform:translateX(5px);opacity:0.5}:where(.selected){color:var(--color-secondary)}:where(.selected):hover [role='cell']:focus-visible::before,:where(.selected):focus [role='cell']:focus-visible::before,:where(.selected) [role='cell']:focus-visible::before,:where(.selected):hover [role='cell']:first-child::before,:where(.selected):focus [role='cell']:first-child::before,:where(.selected) [role='cell']:first-child::before{transform:translateX(10px);opacity:1}:where([role='cell']){position:relative;overflow:hidden;display:flex;align-items:center;background-color:var(--row-color);border-top:1px solid var(--border-top-color);border-bottom:1px solid var(--border-bottom-color)}:where([role='cell']):where(:focus,:focus~[role='cell']){color:var(--color-secondary)}.focusCell:where([role='cell']){outline:none}.borderless:where([role='cell']){border-top:1px solid transparent;border-bottom:1px solid transparent}.full_width:where([role='cell']){grid-column:1 / -1}.group_first:where([role='cell']){border-left:2px solid var(--border-group-color);padding-left:20px}.group_last:where([role='cell']){padding-right:20px}:where([role='details']){display:flex;align-items:center;grid-column:1/-1;padding:14px 24px 14px 50px;min-height:50px;border-bottom:1px solid var(--color-shade-30)}@keyframes es-table-jump-highlight{from{background-color:transparent}50%{background-color:var(--color-warning)}to{background-color:transparent}}"; |
@@ -6,5 +6,5 @@ 'use strict'; | ||
const index = require('./index-6e7cb5d8.js'); | ||
const logger = require('./logger-e225b519.js'); | ||
const theme = require('./theme-1b90b747.js'); | ||
require('./createLogger-6c796380.js'); | ||
const logger = require('./logger-827e9fea.js'); | ||
const theme = require('./theme-fb79877e.js'); | ||
require('./HTTPError-0b7234aa.js'); | ||
@@ -11,0 +11,0 @@ const esTabsCss = ":host{display:flex;position:relative;flex-direction:column;--tab-color:var(--color-title-2);--active-color:var(--color-secondary);--focus-color:var(--color-primary-alt);--focus-indicator-color:var(--color-shade-40);--border-color:var(--color-shade-30)}:host([high-contrast]) .indicator{display:none}:host([high-contrast]) .tab:hover::after{height:2px;background-color:var(--active-color)}:host([high-contrast]) .tab.active::after{height:6px;background-color:var(--active-color)}:host([high-contrast]) .tab:focus{outline:solid var(--color-focus);outline-offset:-10px}header{display:flex;overflow:hidden}.tab{flex:0 1 auto;position:relative;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;color:var(--tab-color);font-weight:700;font-size:16px;border:0;padding:20px;cursor:pointer;outline:none;transition-property:color;transition-duration:500ms;transition-timing-function:ease;z-index:1;overflow:hidden}.tab::after{content:'';position:absolute;left:20px;right:20px;bottom:-1px;transform:translateY(50%);height:0px;background-color:transparent;transition-property:background-color, height;transition-duration:500ms;transition-timing-function:ease}.tab.drag_over,.tab:focus-visible{color:var(--focus-color)}.tab.drag_over::after,.tab:focus-visible::after{background-color:var(--focus-indicator-color);height:4px}.tab.active{color:var(--color-secondary)}.panel{border:1px solid var(--border-color);border-radius:20px;padding:10px 30px;flex:1 1 100%;position:relative;min-height:80px}.panel.no_pad{padding:0;min-height:0;min-height:initial}.panel.no_pad ::slotted(*){overflow:hidden;border-radius:20px}.indicator{display:block;height:4px;background-color:var(--active-color);transition-property:none;transition-duration:500ms;transition-timing-function:ease;position:absolute;top:-2px;left:0;z-index:20000}es-badge{align-items:flex-start}.elipsis{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"; |
@@ -6,4 +6,4 @@ 'use strict'; | ||
const index = require('./index-6e7cb5d8.js'); | ||
const theme = require('./theme-1b90b747.js'); | ||
require('./createLogger-6c796380.js'); | ||
const theme = require('./theme-fb79877e.js'); | ||
require('./HTTPError-0b7234aa.js'); | ||
@@ -10,0 +10,0 @@ const esToastCss = "*,*::before,*::after{box-sizing:border-box}:host{position:relative;max-width:400px;opacity:0;transform:translateX(100%);--background-color:var(--color-background);--text-color:var(--color-text)}:host([dark]:not([high-contrast])){--background-color:var(--color-contrast);--text-color:var(--color-background)}:host(.error){--weak-color:var(--color-error-alt);--strong-color:var(--color-error)}:host(.warning){--weak-color:var(--color-warning-alt);--strong-color:var(--color-warning)}:host(.info){--weak-color:var(--color-info-alt);--strong-color:var(--color-info)}:host(.success){--weak-color:var(--color-success-alt);--strong-color:var(--color-success)}:host([high-contrast]){--weak-color:var(--background-color)}:host([high-contrast]) .inner{border:2px solid var(--strong-color);border-right:0}:host(.clickable){cursor:pointer}:host(.mounting){opacity:0;transform:translateX(100%)}:host(.mounted){transition:all 500ms ease;opacity:1;transform:translateX(0%);max-height:90px}:host(.unmounting){transition:all 500ms ease;opacity:0;transform:translateX(100%);max-height:0}.inner{display:flex;flex-direction:row;background-color:var(--background-color);color:var(--text-color);box-shadow:rgba(0, 0, 0, 0.05) 1px 1px 5px 5px;margin-bottom:12px;padding-left:10px;border-top-left-radius:30px;border-bottom-left-radius:30px;overflow:hidden;position:relative;z-index:0}.inner:before{content:'';position:absolute;top:0;bottom:0;left:10px;margin:auto;height:40px;width:40px;background-color:var(--weak-color);border:2px solid var(--strong-color);border-radius:20px;z-index:-1}.content{display:flex;flex-direction:column;padding:12px}.icon_holder{border-radius:50%;display:flex;width:40px;flex:0 0 40px;align-items:center;justify-content:center;color:var(--strong-color)}::slotted(strong){color:var(--strong-color)}es-counter{--text-color:var(--strong-color)}"; |
@@ -6,3 +6,3 @@ 'use strict'; | ||
const index = require('./index-6e7cb5d8.js'); | ||
require('./createLogger-6c796380.js'); | ||
require('./HTTPError-0b7234aa.js'); | ||
const focus = require('./focus-56c14101.js'); | ||
@@ -9,0 +9,0 @@ |
@@ -5,6 +5,6 @@ 'use strict'; | ||
const iconStore = require('./iconStore-f0d92913.js'); | ||
const iconStore = require('./iconStore-77a854f1.js'); | ||
const namespace = require('./namespace-12ca145c.js'); | ||
const index = require('./index-6e7cb5d8.js'); | ||
require('./createLogger-6c796380.js'); | ||
const HTTPError = require('./HTTPError-0b7234aa.js'); | ||
@@ -62,4 +62,59 @@ const popToast = (level) => (options, targetDocument = document) => { | ||
/** | ||
* An action to delete, with confirmation. | ||
* @usage ./ActionDelete.usage.md | ||
*/ | ||
const ActionDelete = ({ dropdownItem = false, description, deleteItem, disabled = false, icon = [namespace.ICON_NAMESPACE, 'trash'], typeToConfirm = false, modal, toast, }) => (index.h("es-action-with-confirmation", { dropdownItem: dropdownItem, action: handleDeletion({ deleteItem, description, toast }), disabled: disabled, icon: icon, typeToConfirm: typeToConfirm ? description : undefined, modal: modal }, `Delete ${description}`)); | ||
const handleDeletion = ({ deleteItem, description, toast: toastOptions, }) => async () => { | ||
try { | ||
await deleteItem(); | ||
toast.success({ | ||
icon: [namespace.ICON_NAMESPACE, 'trash'], | ||
...toastOptions, | ||
}); | ||
} | ||
catch (error) { | ||
if (HTTPError.HTTPError.isHTTPError(error)) { | ||
const details = await error.details(); | ||
toast.error({ | ||
title: `Failed to delete ${description}`, | ||
message: details.detail, | ||
}); | ||
} | ||
else { | ||
toast.error({ | ||
title: `Failed to delete ${description}`, | ||
message: error instanceof Error ? error.message : String(error), | ||
}); | ||
} | ||
} | ||
}; | ||
/** | ||
* An action to delete, with confirmation. | ||
* @usage ./ActionCopy.usage.md | ||
*/ | ||
const ActionCopy = ({ dropdownItem = false, value, disabled = false, icon = [namespace.ICON_NAMESPACE, 'copy'], toast, }, children) => (index.h("es-action", { dropdownItem: dropdownItem, action: copyText({ value, toast }), disabled: disabled, icon: icon }, children)); | ||
const copyText = ({ value, toast: toastOptions, }) => async (e) => { | ||
e.preventDefault(); | ||
e.stopPropagation(); | ||
try { | ||
await navigator.clipboard.writeText(value); | ||
toast.success({ | ||
icon: [namespace.ICON_NAMESPACE, 'copy'], | ||
...toastOptions, | ||
}); | ||
} | ||
catch (error) { | ||
toast.error({ | ||
title: 'Failed to copy', | ||
message: error instanceof Error ? error.message : String(error), | ||
}); | ||
} | ||
}; | ||
exports.iconStore = iconStore.iconStore; | ||
exports.ES_COMPONENTS_ICON_NAMESPACE = namespace.ICON_NAMESPACE; | ||
exports.ActionCopy = ActionCopy; | ||
exports.ActionDelete = ActionDelete; | ||
exports.LoadingText = LoadingText; | ||
@@ -66,0 +121,0 @@ exports.requestClose = requestClose; |
@@ -6,6 +6,6 @@ 'use strict'; | ||
const index = require('./index-6e7cb5d8.js'); | ||
require('./theme-1b90b747.js'); | ||
require('./index-0711258b.js'); | ||
require('./createLogger-6c796380.js'); | ||
require('./iconStore-f0d92913.js'); | ||
require('./theme-fb79877e.js'); | ||
require('./index-8029712e.js'); | ||
require('./HTTPError-0b7234aa.js'); | ||
require('./iconStore-77a854f1.js'); | ||
require('./namespace-12ca145c.js'); | ||
@@ -15,3 +15,3 @@ | ||
if (typeof window === 'undefined') return undefined; | ||
return index.bootstrapLazy([["es-popover.cjs",[[1,"es-popover",{"popperClass":[1,"popper-class"],"target":[1],"open":[516],"backdrop":[4],"zIndex":[2,"z-index"],"arrow":[4],"trapFocus":[4,"trap-focus"],"closeOnBlur":[4,"close-on-blur"],"closeOnClickOutside":[4,"close-on-click-outside"],"closeOnEsc":[4,"close-on-esc"],"closeOnScrollEscape":[4,"close-on-scroll-escape"],"hideOnScrollEscape":[4,"hide-on-scroll-escape"],"attachTo":[16],"autoSize":[1,"auto-size"],"constrain":[1],"maxHeight":[2,"max-height"],"maxWidth":[2,"max-width"],"placement":[1],"flip":[4],"offset":[2]},[[4,"click","onClickOutside"],[6,"keydown","onEscPress"]]]]],["es-icon.cjs",[[1,"es-icon",{"icon":[1],"size":[2],"angle":[2],"spin":[4],"spinDirection":[1,"spin-direction"],"autoSpin":[32],"Component":[32],"spinEnd":[64]}]]],["es-table-nested.cjs",[[0,"es-table-nested",{"headless":[4],"stickyHeader":[4,"sticky-header"],"outerIdentifier":[1,"outer-identifier"],"getCellData":[16],"getRowKey":[16],"getNestedRowKey":[16],"cells":[16],"columns":[16],"rows":[16],"linkRowTo":[16],"rowTakesFocus":[4,"row-takes-focus"],"rowClass":[16],"toggleRowOnClick":[4,"toggle-row-on-click"],"extraCellProps":[16],"nestedIdentifier":[1,"nested-identifier"],"nestedColumns":[16],"getNestedRows":[16],"getNestedCellData":[16],"loadNested":[16],"nestedRowTakesFocus":[4,"nested-row-takes-focus"],"canExpand":[16],"canExpandMore":[16],"expandBy":[2,"expand-by"],"defaultExpanded":[16],"activePath":[16],"expanded":[32],"loading":[32]}]]],["es-tabs.cjs",[[1,"es-tabs",{"tabs":[16],"activeParam":[8,"active-param"],"active":[1025],"interTabIcon":[1,"inter-tab-icon"],"interTabIconSize":[2,"inter-tab-icon-size"],"activeDragOver":[32]}]]],["es-toaster.cjs",[[1,"es-toaster",{"slices":[32],"loaf":[32],"popToast":[64]}]]],["es-accordian.cjs",[[1,"es-accordian",{"sections":[16],"steps":[4],"collapsed":[32]},[[0,"focusin","handleFocusIn"]]]]],["es-pagination.cjs",[[1,"es-pagination",{"pageCount":[2,"page-count"],"current":[2]}]]],["es-table-virtualized.cjs",[[0,"es-table-virtualized",{"identifier":[1],"headless":[4],"stickyHeader":[4,"sticky-header"],"getCellData":[16],"getKeyFromIndex":[16],"cells":[16],"columns":[16],"rowCount":[2,"row-count"],"renderBefore":[16],"renderAfter":[16],"windowSize":[2,"window-size"],"blockSize":[2,"block-size"],"reflowSize":[2,"reflow-size"],"linkRowTo":[16],"rowHeight":[2,"row-height"],"headerHeight":[2,"header-height"],"beforeHeight":[2,"before-height"],"afterHeight":[2,"after-height"],"rowTakesFocus":[4,"row-takes-focus"],"rowClass":[16],"sort":[16],"scrollLock":[4,"scroll-lock"],"extraCellProps":[16],"trailingEdge":[32],"reflowRow":[32],"warp":[32],"jumpHighlight":[32],"invertBanding":[32],"jumpToRow":[64]}]]],["es-thinking-button.cjs",[[1,"es-thinking-button",{"action":[16],"text":[1],"variant":[1],"disabled":[4],"defaultIcon":[1,"default-icon"],"thinkingIcon":[1,"thinking-icon"],"completeIcon":[1,"complete-icon"],"failedIcon":[1,"failed-icon"],"status":[32]}]]],["es-callout.cjs",[[1,"es-callout",{"heading":[1],"variant":[513],"icon":[1]}]]],["es-copy.cjs",[[1,"es-copy",{"status":[32],"copy":[64]},[[0,"click","onClick"]]]]],["es-loading-dots.cjs",[[1,"es-loading-dots"]]],["es-modal.cjs",[[1,"es-modal",{"header":[4],"footer":[4]},[[0,"keyup","onEscape"]]]]],["es-portal.cjs",[[1,"es-portal",{"target":[1],"renderElement":[16],"open":[516],"backdrop":[4],"preventOverscroll":[4,"prevent-overscroll"],"attachElement":[64],"detatchElement":[64]}]]],["es-progression.cjs",[[1,"es-progression",{"checkpoints":[16],"location":[1],"readonly":[4],"colors":[16],"icons":[16]}]]],["es-status.cjs",[[1,"es-status",{"status":[1]}]]],["es-button-link.cjs",[[1,"es-button-link",{"variant":[513],"disabled":[516],"url":[1],"forceRefresh":[4,"force-refresh"],"external":[4],"anchorClass":[1,"anchor-class"],"anchorRole":[1,"anchor-role"],"anchorTitle":[1,"anchor-title"],"anchorTabIndex":[1,"anchor-tab-index"],"anchorId":[1,"anchor-id"],"target":[1]}]]],["es-corner-banner.cjs",[[1,"es-corner-banner",{"variant":[513],"y":[1],"x":[1]}]]],["es-loading-text.cjs",[[1,"es-loading-text",{"expectedLength":[2,"expected-length"],"variance":[2]}]]],["es-resize-observer.cjs",[[0,"es-resize-observer"]]],["es-table-detail.cjs",[[0,"es-table-detail",{"identifier":[1],"data":[8],"cells":[16],"columns":[16]}]]],["es-table-detail-header.cjs",[[0,"es-table-detail-header",{"identifier":[1],"data":[8],"titleCell":[1,"title-cell"],"actionsCell":[1,"actions-cell"],"cells":[16]}]]],["es-wizard.cjs",[[1,"es-wizard",{"pages":[16],"location":[1],"scrollOffset":[2,"scroll-offset"]}]]],["es-table.cjs",[[0,"es-table",{"identifier":[1],"headless":[4],"stickyHeader":[4,"sticky-header"],"getCellData":[16],"getRowKey":[16],"cells":[16],"columns":[16],"rows":[16],"linkRowTo":[16],"rowTakesFocus":[4,"row-takes-focus"],"rowClass":[16],"renderExpansion":[16],"sort":[16],"extraCellProps":[16]}]]],["es-toast.cjs",[[1,"es-toast",{"level":[1],"count":[2],"icon":[1],"transitionState":[32],"close":[64]}]]],["es-badge.cjs",[[1,"es-badge",{"variant":[1],"color":[1],"count":[2],"showZero":[4,"show-zero"],"size":[2]}]]],["es-backdrop.cjs",[[1,"es-backdrop",{"showBackdrop":[4,"show-backdrop"],"preventOverscroll":[516,"prevent-overscroll"],"child":[32],"state":[32],"renderNode":[64],"close":[64]}]]],["es-popper_4.cjs",[[1,"es-popper",{"backdrop":[4],"trapFocus":[4,"trap-focus"],"loaded":[64]},[[0,"keyup","onEscape"]]],[1,"es-popper-inner"],[0,"es-popper-x"],[0,"es-popper-y"]]],["es-button.cjs",[[1,"es-button",{"variant":[513],"disabled":[516],"type":[1]},[[0,"keyup","handleKeyUp"],[2,"click","handleClick"]]]]],["es-counter.cjs",[[1,"es-counter",{"count":[2],"size":[2],"variant":[513],"color":[1],"pulsing":[32]}]]]], options); | ||
return index.bootstrapLazy([["es-action-with-confirmation.cjs",[[1,"es-action-with-confirmation",{"dropdownItem":[516,"dropdown-item"],"action":[16],"disabled":[4],"icon":[1],"dot":[1],"typeToConfirm":[1,"type-to-confirm"],"modal":[16],"open":[32]}]]],["es-action-dropdown.cjs",[[1,"es-action-dropdown",{"icon":[1],"dropdownOpen":[32]}]]],["es-action.cjs",[[1,"es-action",{"dropdownItem":[516,"dropdown-item"],"action":[16],"disabled":[4],"icon":[1],"dot":[1]}]]],["es-action-link.cjs",[[1,"es-action-link",{"dropdownItem":[516,"dropdown-item"],"url":[1],"disabled":[4],"icon":[1],"dot":[1]}]]],["es-table-nested.cjs",[[0,"es-table-nested",{"headless":[4],"stickyHeader":[4,"sticky-header"],"outerIdentifier":[1,"outer-identifier"],"getCellData":[16],"getRowKey":[16],"getNestedRowKey":[16],"cells":[16],"columns":[16],"rows":[16],"linkRowTo":[16],"rowTakesFocus":[4,"row-takes-focus"],"rowClass":[16],"toggleRowOnClick":[4,"toggle-row-on-click"],"extraCellProps":[16],"nestedIdentifier":[1,"nested-identifier"],"nestedColumns":[16],"getNestedRows":[16],"getNestedCellData":[16],"loadNested":[16],"nestedRowTakesFocus":[4,"nested-row-takes-focus"],"canExpand":[16],"canExpandMore":[16],"expandBy":[2,"expand-by"],"defaultExpanded":[16],"activePath":[16],"expanded":[32],"loading":[32]}]]],["es-tabs.cjs",[[1,"es-tabs",{"tabs":[16],"activeParam":[8,"active-param"],"active":[1025],"interTabIcon":[1,"inter-tab-icon"],"interTabIconSize":[2,"inter-tab-icon-size"],"activeDragOver":[32]}]]],["es-toaster.cjs",[[1,"es-toaster",{"slices":[32],"loaf":[32],"popToast":[64]}]]],["es-accordian.cjs",[[1,"es-accordian",{"sections":[16],"steps":[4],"collapsed":[32]},[[0,"focusin","handleFocusIn"]]]]],["es-pagination.cjs",[[1,"es-pagination",{"pageCount":[2,"page-count"],"current":[2]}]]],["es-table-virtualized.cjs",[[0,"es-table-virtualized",{"identifier":[1],"headless":[4],"stickyHeader":[4,"sticky-header"],"getCellData":[16],"getKeyFromIndex":[16],"cells":[16],"columns":[16],"rowCount":[2,"row-count"],"renderBefore":[16],"renderAfter":[16],"windowSize":[2,"window-size"],"blockSize":[2,"block-size"],"reflowSize":[2,"reflow-size"],"linkRowTo":[16],"rowHeight":[2,"row-height"],"headerHeight":[2,"header-height"],"beforeHeight":[2,"before-height"],"afterHeight":[2,"after-height"],"rowTakesFocus":[4,"row-takes-focus"],"rowClass":[16],"sort":[16],"scrollLock":[4,"scroll-lock"],"extraCellProps":[16],"trailingEdge":[32],"reflowRow":[32],"warp":[32],"jumpHighlight":[32],"invertBanding":[32],"jumpToRow":[64]}]]],["es-thinking-button.cjs",[[1,"es-thinking-button",{"action":[16],"text":[1],"variant":[1],"disabled":[4],"defaultIcon":[1,"default-icon"],"thinkingIcon":[1,"thinking-icon"],"completeIcon":[1,"complete-icon"],"failedIcon":[1,"failed-icon"],"status":[32]}]]],["es-callout.cjs",[[1,"es-callout",{"heading":[1],"variant":[513],"icon":[1]}]]],["es-copy.cjs",[[1,"es-copy",{"status":[32],"copy":[64]},[[0,"click","onClick"]]]]],["es-loading-dots.cjs",[[1,"es-loading-dots"]]],["es-progression.cjs",[[1,"es-progression",{"checkpoints":[16],"location":[1],"readonly":[4],"colors":[16],"icons":[16]}]]],["es-status.cjs",[[1,"es-status",{"status":[1]}]]],["es-actions.cjs",[[1,"es-actions"]]],["es-corner-banner.cjs",[[1,"es-corner-banner",{"variant":[513],"y":[1],"x":[1]}]]],["es-loading-text.cjs",[[1,"es-loading-text",{"expectedLength":[2,"expected-length"],"variance":[2]}]]],["es-resize-observer.cjs",[[0,"es-resize-observer"]]],["es-table-detail.cjs",[[0,"es-table-detail",{"identifier":[1],"data":[8],"cells":[16],"columns":[16]}]]],["es-table-detail-header.cjs",[[0,"es-table-detail-header",{"identifier":[1],"data":[8],"titleCell":[1,"title-cell"],"actionsCell":[1,"actions-cell"],"cells":[16]}]]],["es-wizard.cjs",[[1,"es-wizard",{"pages":[16],"location":[1],"scrollOffset":[2,"scroll-offset"]}]]],["es-table.cjs",[[0,"es-table",{"identifier":[1],"headless":[4],"stickyHeader":[4,"sticky-header"],"getCellData":[16],"getRowKey":[16],"cells":[16],"columns":[16],"rows":[16],"linkRowTo":[16],"rowTakesFocus":[4,"row-takes-focus"],"rowClass":[16],"renderExpansion":[16],"sort":[16],"extraCellProps":[16]}]]],["es-toast.cjs",[[1,"es-toast",{"level":[1],"count":[2],"icon":[1],"transitionState":[32],"close":[64]}]]],["es-button-link.cjs",[[1,"es-button-link",{"variant":[513],"disabled":[516],"url":[1],"forceRefresh":[4,"force-refresh"],"external":[4],"anchorClass":[1,"anchor-class"],"anchorRole":[1,"anchor-role"],"anchorTitle":[1,"anchor-title"],"anchorTabIndex":[1,"anchor-tab-index"],"anchorId":[1,"anchor-id"],"target":[1]}]]],["es-backdrop.cjs",[[1,"es-backdrop",{"showBackdrop":[4,"show-backdrop"],"preventOverscroll":[516,"prevent-overscroll"],"child":[32],"state":[32],"renderNode":[64],"close":[64],"cancelClose":[64]}]]],["es-counter.cjs",[[1,"es-counter",{"count":[2],"size":[2],"variant":[513],"color":[1],"pulsing":[32]}]]],["es-button.cjs",[[1,"es-button",{"variant":[513],"disabled":[516],"type":[1]},[[0,"keyup","handleKeyUp"],[2,"click","handleClick"]]]]],["es-popper_4.cjs",[[1,"es-popper",{"backdrop":[4],"trapFocus":[4,"trap-focus"],"loaded":[64]},[[0,"keyup","onEscape"]]],[1,"es-popper-inner"],[0,"es-popper-x"],[0,"es-popper-y"]]],["es-icon.cjs",[[1,"es-icon",{"icon":[1],"size":[2],"angle":[2],"spin":[4],"spinDirection":[1,"spin-direction"],"autoSpin":[32],"Component":[32],"spinEnd":[64]}]]],["es-modal_2.cjs",[[1,"es-modal",{"header":[4],"footer":[4]},[[0,"keyup","onEscape"]]],[1,"es-popover",{"popperClass":[1,"popper-class"],"target":[1],"open":[516],"backdrop":[4],"zIndex":[2,"z-index"],"arrow":[4],"trapFocus":[4,"trap-focus"],"closeOnBlur":[4,"close-on-blur"],"closeOnClickOutside":[4,"close-on-click-outside"],"closeOnEsc":[4,"close-on-esc"],"closeOnScrollEscape":[4,"close-on-scroll-escape"],"hideOnScrollEscape":[4,"hide-on-scroll-escape"],"attachTo":[16],"autoSize":[1,"auto-size"],"constrain":[1],"maxHeight":[2,"max-height"],"maxWidth":[2,"max-width"],"placement":[1],"flip":[4],"offset":[2]},[[4,"click","onClickOutside"],[6,"keydown","onEscPress"]]]]],["es-confirm-modal_2.cjs",[[1,"es-confirm-modal",{"preHeading":[1,"pre-heading"],"heading":[1],"body":[1],"warning":[1],"confirm":[1],"confirmVariant":[1,"confirm-variant"],"typeToConfirm":[1,"type-to-confirm"],"typed":[32],"copied":[32]}],[1,"es-portal",{"target":[1],"renderElement":[16],"open":[516],"backdrop":[4],"preventOverscroll":[4,"prevent-overscroll"],"attachElement":[64],"detatchElement":[64]}]]],["es-badge.cjs",[[1,"es-badge",{"variant":[1],"color":[1],"count":[2],"showZero":[4,"show-zero"],"size":[2]}]]]], options); | ||
}; | ||
@@ -18,0 +18,0 @@ |
@@ -7,2 +7,8 @@ { | ||
"components/es-status/es-status.js", | ||
"components/actions/es-action/es-action.js", | ||
"components/actions/es-action-dropdown/es-action-dropdown.js", | ||
"components/actions/es-action-link/es-action-link.js", | ||
"components/actions/es-action-with-confirmation/es-action-with-confirmation.js", | ||
"components/actions/es-action-with-confirmation/components/es-confirm-modal/es-confirm-modal.js", | ||
"components/actions/es-actions/es-actions.js", | ||
"components/buttons/es-button/es-button.js", | ||
@@ -9,0 +15,0 @@ "components/buttons/es-button-link/es-button-link.js", |
@@ -12,3 +12,3 @@ import { h, Host, } from "@stencil/core"; | ||
case 'exiting': { | ||
this.closingPromise?.(); | ||
this.resolveClose?.(true); | ||
break; | ||
@@ -29,8 +29,16 @@ } | ||
} | ||
close() { | ||
return new Promise((resolve) => { | ||
this.closingPromise = resolve; | ||
async close() { | ||
const closed = await new Promise((resolve) => { | ||
this.resolveClose = resolve; | ||
this.state = 'exiting'; | ||
}); | ||
delete this.resolveClose; | ||
return closed; | ||
} | ||
async cancelClose() { | ||
if (this.state !== 'exiting') | ||
return; | ||
this.resolveClose?.(false); | ||
this.state = 'entering'; | ||
} | ||
componentDidLoad() { | ||
@@ -168,2 +176,19 @@ requestAnimationFrame(() => { | ||
"complexType": { | ||
"signature": "() => Promise<boolean>", | ||
"parameters": [], | ||
"references": { | ||
"Promise": { | ||
"location": "global", | ||
"id": "global::Promise" | ||
} | ||
}, | ||
"return": "Promise<boolean>" | ||
}, | ||
"docs": { | ||
"text": "", | ||
"tags": [] | ||
} | ||
}, | ||
"cancelClose": { | ||
"complexType": { | ||
"signature": "() => Promise<void>", | ||
@@ -170,0 +195,0 @@ "parameters": [], |
@@ -16,10 +16,11 @@ /** | ||
connectedCallback() { | ||
if (this.open) { | ||
this.attachElement(); | ||
} | ||
if (!this.open) | ||
return; | ||
this.portalledBackdrop?.cancelClose(); | ||
this.attachElement(); | ||
} | ||
disconnectedCallback() { | ||
if (this.open) { | ||
this.detatchElement(); | ||
} | ||
if (!this.open) | ||
return; | ||
this.detatchElement(); | ||
} | ||
@@ -49,5 +50,6 @@ /** @internal */ | ||
const backdrop = this.portalledBackdrop; | ||
this.portalledBackdrop = undefined; | ||
await backdrop.close(); | ||
backdrop.parentNode?.removeChild(backdrop); | ||
if (await backdrop.close()) { | ||
backdrop.parentNode?.removeChild(backdrop); | ||
this.portalledBackdrop = undefined; | ||
} | ||
} | ||
@@ -54,0 +56,0 @@ render() { |
@@ -40,2 +40,5 @@ import { iconStore } from "../utils/iconStore"; | ||
}, | ||
get more() { | ||
return import('./components/More').then(({ More }) => More); | ||
}, | ||
get okay() { | ||
@@ -53,2 +56,5 @@ return import('./components/Okay').then(({ Okay }) => Okay); | ||
}, | ||
get trash() { | ||
return import('./components/Trash').then(({ Trash }) => Trash); | ||
}, | ||
get warning() { | ||
@@ -55,0 +61,0 @@ return import('./components/Warning').then(({ Warning }) => Warning); |
@@ -6,2 +6,4 @@ export { toast } from './utils/toast'; | ||
export { LoadingText, } from './components/es-loading-text/LoadingText'; | ||
export { ActionDelete, } from './components/actions/ActionDelete'; | ||
export { ActionCopy, } from './components/actions/ActionCopy'; | ||
//# sourceMappingURL=index.js.map |
@@ -1,2 +0,2 @@ | ||
import{p as e,b as o}from"./p-8e345b89.js";export{s as setNonce}from"./p-8e345b89.js";import"./p-5c47850c.js";import"./p-f595a322.js";import"./p-a462e077.js";import"./p-f7825cc0.js";import"./p-2db84239.js";const t=()=>{const o=import.meta.url;const t={};if(o!==""){t.resourcesUrl=new URL(".",o).href}return e(t)};t().then((e=>o([["p-7ca0ec84",[[1,"es-popover",{popperClass:[1,"popper-class"],target:[1],open:[516],backdrop:[4],zIndex:[2,"z-index"],arrow:[4],trapFocus:[4,"trap-focus"],closeOnBlur:[4,"close-on-blur"],closeOnClickOutside:[4,"close-on-click-outside"],closeOnEsc:[4,"close-on-esc"],closeOnScrollEscape:[4,"close-on-scroll-escape"],hideOnScrollEscape:[4,"hide-on-scroll-escape"],attachTo:[16],autoSize:[1,"auto-size"],constrain:[1],maxHeight:[2,"max-height"],maxWidth:[2,"max-width"],placement:[1],flip:[4],offset:[2]},[[4,"click","onClickOutside"],[6,"keydown","onEscPress"]]]]],["p-c0d68a7d",[[1,"es-icon",{icon:[1],size:[2],angle:[2],spin:[4],spinDirection:[1,"spin-direction"],autoSpin:[32],Component:[32],spinEnd:[64]}]]],["p-fe524428",[[0,"es-table-nested",{headless:[4],stickyHeader:[4,"sticky-header"],outerIdentifier:[1,"outer-identifier"],getCellData:[16],getRowKey:[16],getNestedRowKey:[16],cells:[16],columns:[16],rows:[16],linkRowTo:[16],rowTakesFocus:[4,"row-takes-focus"],rowClass:[16],toggleRowOnClick:[4,"toggle-row-on-click"],extraCellProps:[16],nestedIdentifier:[1,"nested-identifier"],nestedColumns:[16],getNestedRows:[16],getNestedCellData:[16],loadNested:[16],nestedRowTakesFocus:[4,"nested-row-takes-focus"],canExpand:[16],canExpandMore:[16],expandBy:[2,"expand-by"],defaultExpanded:[16],activePath:[16],expanded:[32],loading:[32]}]]],["p-97c15c3c",[[1,"es-tabs",{tabs:[16],activeParam:[8,"active-param"],active:[1025],interTabIcon:[1,"inter-tab-icon"],interTabIconSize:[2,"inter-tab-icon-size"],activeDragOver:[32]}]]],["p-de0a2af0",[[1,"es-toaster",{slices:[32],loaf:[32],popToast:[64]}]]],["p-f8edbf11",[[1,"es-accordian",{sections:[16],steps:[4],collapsed:[32]},[[0,"focusin","handleFocusIn"]]]]],["p-10301b57",[[1,"es-pagination",{pageCount:[2,"page-count"],current:[2]}]]],["p-a2ee24d5",[[0,"es-table-virtualized",{identifier:[1],headless:[4],stickyHeader:[4,"sticky-header"],getCellData:[16],getKeyFromIndex:[16],cells:[16],columns:[16],rowCount:[2,"row-count"],renderBefore:[16],renderAfter:[16],windowSize:[2,"window-size"],blockSize:[2,"block-size"],reflowSize:[2,"reflow-size"],linkRowTo:[16],rowHeight:[2,"row-height"],headerHeight:[2,"header-height"],beforeHeight:[2,"before-height"],afterHeight:[2,"after-height"],rowTakesFocus:[4,"row-takes-focus"],rowClass:[16],sort:[16],scrollLock:[4,"scroll-lock"],extraCellProps:[16],trailingEdge:[32],reflowRow:[32],warp:[32],jumpHighlight:[32],invertBanding:[32],jumpToRow:[64]}]]],["p-da0009e0",[[1,"es-thinking-button",{action:[16],text:[1],variant:[1],disabled:[4],defaultIcon:[1,"default-icon"],thinkingIcon:[1,"thinking-icon"],completeIcon:[1,"complete-icon"],failedIcon:[1,"failed-icon"],status:[32]}]]],["p-015e3db7",[[1,"es-callout",{heading:[1],variant:[513],icon:[1]}]]],["p-e9dc2512",[[1,"es-copy",{status:[32],copy:[64]},[[0,"click","onClick"]]]]],["p-601d2151",[[1,"es-loading-dots"]]],["p-f9a70c8f",[[1,"es-modal",{header:[4],footer:[4]},[[0,"keyup","onEscape"]]]]],["p-3e7e934e",[[1,"es-portal",{target:[1],renderElement:[16],open:[516],backdrop:[4],preventOverscroll:[4,"prevent-overscroll"],attachElement:[64],detatchElement:[64]}]]],["p-18a29965",[[1,"es-progression",{checkpoints:[16],location:[1],readonly:[4],colors:[16],icons:[16]}]]],["p-d5516744",[[1,"es-status",{status:[1]}]]],["p-0fe10db6",[[1,"es-button-link",{variant:[513],disabled:[516],url:[1],forceRefresh:[4,"force-refresh"],external:[4],anchorClass:[1,"anchor-class"],anchorRole:[1,"anchor-role"],anchorTitle:[1,"anchor-title"],anchorTabIndex:[1,"anchor-tab-index"],anchorId:[1,"anchor-id"],target:[1]}]]],["p-5ceced96",[[1,"es-corner-banner",{variant:[513],y:[1],x:[1]}]]],["p-7961b4f8",[[1,"es-loading-text",{expectedLength:[2,"expected-length"],variance:[2]}]]],["p-56fa8fec",[[0,"es-resize-observer"]]],["p-80c65b48",[[0,"es-table-detail",{identifier:[1],data:[8],cells:[16],columns:[16]}]]],["p-2b45f08e",[[0,"es-table-detail-header",{identifier:[1],data:[8],titleCell:[1,"title-cell"],actionsCell:[1,"actions-cell"],cells:[16]}]]],["p-56d11b97",[[1,"es-wizard",{pages:[16],location:[1],scrollOffset:[2,"scroll-offset"]}]]],["p-63825ff7",[[0,"es-table",{identifier:[1],headless:[4],stickyHeader:[4,"sticky-header"],getCellData:[16],getRowKey:[16],cells:[16],columns:[16],rows:[16],linkRowTo:[16],rowTakesFocus:[4,"row-takes-focus"],rowClass:[16],renderExpansion:[16],sort:[16],extraCellProps:[16]}]]],["p-21ce0c24",[[1,"es-toast",{level:[1],count:[2],icon:[1],transitionState:[32],close:[64]}]]],["p-72654dbb",[[1,"es-badge",{variant:[1],color:[1],count:[2],showZero:[4,"show-zero"],size:[2]}]]],["p-5d124f12",[[1,"es-backdrop",{showBackdrop:[4,"show-backdrop"],preventOverscroll:[516,"prevent-overscroll"],child:[32],state:[32],renderNode:[64],close:[64]}]]],["p-b2ad33d7",[[1,"es-popper",{backdrop:[4],trapFocus:[4,"trap-focus"],loaded:[64]},[[0,"keyup","onEscape"]]],[1,"es-popper-inner"],[0,"es-popper-x"],[0,"es-popper-y"]]],["p-a062e449",[[1,"es-button",{variant:[513],disabled:[516],type:[1]},[[0,"keyup","handleKeyUp"],[2,"click","handleClick"]]]]],["p-e86d9080",[[1,"es-counter",{count:[2],size:[2],variant:[513],color:[1],pulsing:[32]}]]]],e))); | ||
import{p as e,b as o}from"./p-8e345b89.js";export{s as setNonce}from"./p-8e345b89.js";import"./p-aaa99fbf.js";import"./p-0589ea3d.js";import"./p-613041a4.js";import"./p-1e3a25ed.js";import"./p-2db84239.js";const t=()=>{const o=import.meta.url;const t={};if(o!==""){t.resourcesUrl=new URL(".",o).href}return e(t)};t().then((e=>o([["p-588c4998",[[1,"es-action-with-confirmation",{dropdownItem:[516,"dropdown-item"],action:[16],disabled:[4],icon:[1],dot:[1],typeToConfirm:[1,"type-to-confirm"],modal:[16],open:[32]}]]],["p-06324846",[[1,"es-action-dropdown",{icon:[1],dropdownOpen:[32]}]]],["p-adc81a0d",[[1,"es-action",{dropdownItem:[516,"dropdown-item"],action:[16],disabled:[4],icon:[1],dot:[1]}]]],["p-3a960088",[[1,"es-action-link",{dropdownItem:[516,"dropdown-item"],url:[1],disabled:[4],icon:[1],dot:[1]}]]],["p-fe524428",[[0,"es-table-nested",{headless:[4],stickyHeader:[4,"sticky-header"],outerIdentifier:[1,"outer-identifier"],getCellData:[16],getRowKey:[16],getNestedRowKey:[16],cells:[16],columns:[16],rows:[16],linkRowTo:[16],rowTakesFocus:[4,"row-takes-focus"],rowClass:[16],toggleRowOnClick:[4,"toggle-row-on-click"],extraCellProps:[16],nestedIdentifier:[1,"nested-identifier"],nestedColumns:[16],getNestedRows:[16],getNestedCellData:[16],loadNested:[16],nestedRowTakesFocus:[4,"nested-row-takes-focus"],canExpand:[16],canExpandMore:[16],expandBy:[2,"expand-by"],defaultExpanded:[16],activePath:[16],expanded:[32],loading:[32]}]]],["p-81118719",[[1,"es-tabs",{tabs:[16],activeParam:[8,"active-param"],active:[1025],interTabIcon:[1,"inter-tab-icon"],interTabIconSize:[2,"inter-tab-icon-size"],activeDragOver:[32]}]]],["p-de0a2af0",[[1,"es-toaster",{slices:[32],loaf:[32],popToast:[64]}]]],["p-9700f304",[[1,"es-accordian",{sections:[16],steps:[4],collapsed:[32]},[[0,"focusin","handleFocusIn"]]]]],["p-10301b57",[[1,"es-pagination",{pageCount:[2,"page-count"],current:[2]}]]],["p-73e660b2",[[0,"es-table-virtualized",{identifier:[1],headless:[4],stickyHeader:[4,"sticky-header"],getCellData:[16],getKeyFromIndex:[16],cells:[16],columns:[16],rowCount:[2,"row-count"],renderBefore:[16],renderAfter:[16],windowSize:[2,"window-size"],blockSize:[2,"block-size"],reflowSize:[2,"reflow-size"],linkRowTo:[16],rowHeight:[2,"row-height"],headerHeight:[2,"header-height"],beforeHeight:[2,"before-height"],afterHeight:[2,"after-height"],rowTakesFocus:[4,"row-takes-focus"],rowClass:[16],sort:[16],scrollLock:[4,"scroll-lock"],extraCellProps:[16],trailingEdge:[32],reflowRow:[32],warp:[32],jumpHighlight:[32],invertBanding:[32],jumpToRow:[64]}]]],["p-da0009e0",[[1,"es-thinking-button",{action:[16],text:[1],variant:[1],disabled:[4],defaultIcon:[1,"default-icon"],thinkingIcon:[1,"thinking-icon"],completeIcon:[1,"complete-icon"],failedIcon:[1,"failed-icon"],status:[32]}]]],["p-254ab53d",[[1,"es-callout",{heading:[1],variant:[513],icon:[1]}]]],["p-e9dc2512",[[1,"es-copy",{status:[32],copy:[64]},[[0,"click","onClick"]]]]],["p-601d2151",[[1,"es-loading-dots"]]],["p-18a29965",[[1,"es-progression",{checkpoints:[16],location:[1],readonly:[4],colors:[16],icons:[16]}]]],["p-d5516744",[[1,"es-status",{status:[1]}]]],["p-b341fb94",[[1,"es-actions"]]],["p-5ceced96",[[1,"es-corner-banner",{variant:[513],y:[1],x:[1]}]]],["p-7961b4f8",[[1,"es-loading-text",{expectedLength:[2,"expected-length"],variance:[2]}]]],["p-56fa8fec",[[0,"es-resize-observer"]]],["p-80c65b48",[[0,"es-table-detail",{identifier:[1],data:[8],cells:[16],columns:[16]}]]],["p-2b45f08e",[[0,"es-table-detail-header",{identifier:[1],data:[8],titleCell:[1,"title-cell"],actionsCell:[1,"actions-cell"],cells:[16]}]]],["p-a9393cbb",[[1,"es-wizard",{pages:[16],location:[1],scrollOffset:[2,"scroll-offset"]}]]],["p-17a8e832",[[0,"es-table",{identifier:[1],headless:[4],stickyHeader:[4,"sticky-header"],getCellData:[16],getRowKey:[16],cells:[16],columns:[16],rows:[16],linkRowTo:[16],rowTakesFocus:[4,"row-takes-focus"],rowClass:[16],renderExpansion:[16],sort:[16],extraCellProps:[16]}]]],["p-b8cdd491",[[1,"es-toast",{level:[1],count:[2],icon:[1],transitionState:[32],close:[64]}]]],["p-89a2ec9a",[[1,"es-button-link",{variant:[513],disabled:[516],url:[1],forceRefresh:[4,"force-refresh"],external:[4],anchorClass:[1,"anchor-class"],anchorRole:[1,"anchor-role"],anchorTitle:[1,"anchor-title"],anchorTabIndex:[1,"anchor-tab-index"],anchorId:[1,"anchor-id"],target:[1]}]]],["p-bedea8dc",[[1,"es-backdrop",{showBackdrop:[4,"show-backdrop"],preventOverscroll:[516,"prevent-overscroll"],child:[32],state:[32],renderNode:[64],close:[64],cancelClose:[64]}]]],["p-e86d9080",[[1,"es-counter",{count:[2],size:[2],variant:[513],color:[1],pulsing:[32]}]]],["p-2508012b",[[1,"es-button",{variant:[513],disabled:[516],type:[1]},[[0,"keyup","handleKeyUp"],[2,"click","handleClick"]]]]],["p-e6e1281f",[[1,"es-popper",{backdrop:[4],trapFocus:[4,"trap-focus"],loaded:[64]},[[0,"keyup","onEscape"]]],[1,"es-popper-inner"],[0,"es-popper-x"],[0,"es-popper-y"]]],["p-b6c527c7",[[1,"es-icon",{icon:[1],size:[2],angle:[2],spin:[4],spinDirection:[1,"spin-direction"],autoSpin:[32],Component:[32],spinEnd:[64]}]]],["p-d05078c7",[[1,"es-modal",{header:[4],footer:[4]},[[0,"keyup","onEscape"]]],[1,"es-popover",{popperClass:[1,"popper-class"],target:[1],open:[516],backdrop:[4],zIndex:[2,"z-index"],arrow:[4],trapFocus:[4,"trap-focus"],closeOnBlur:[4,"close-on-blur"],closeOnClickOutside:[4,"close-on-click-outside"],closeOnEsc:[4,"close-on-esc"],closeOnScrollEscape:[4,"close-on-scroll-escape"],hideOnScrollEscape:[4,"hide-on-scroll-escape"],attachTo:[16],autoSize:[1,"auto-size"],constrain:[1],maxHeight:[2,"max-height"],maxWidth:[2,"max-width"],placement:[1],flip:[4],offset:[2]},[[4,"click","onClickOutside"],[6,"keydown","onEscPress"]]]]],["p-32c53ab3",[[1,"es-confirm-modal",{preHeading:[1,"pre-heading"],heading:[1],body:[1],warning:[1],confirm:[1],confirmVariant:[1,"confirm-variant"],typeToConfirm:[1,"type-to-confirm"],typed:[32],copied:[32]}],[1,"es-portal",{target:[1],renderElement:[16],open:[516],backdrop:[4],preventOverscroll:[4,"prevent-overscroll"],attachElement:[64],detatchElement:[64]}]]],["p-72654dbb",[[1,"es-badge",{variant:[1],color:[1],count:[2],showZero:[4,"show-zero"],size:[2]}]]]],e))); | ||
//# sourceMappingURL=es-components.esm.js.map |
@@ -1,2 +0,2 @@ | ||
export{i as iconStore}from"./p-f7825cc0.js";export{I as ES_COMPONENTS_ICON_NAMESPACE}from"./p-2db84239.js";import{h as e}from"./p-8e345b89.js";import"./p-a462e077.js";const o=e=>(o,s=document)=>{let r=s.querySelector("es-toaster");if(!r){r=s.createElement("es-toaster");s.body.appendChild(r)}return r.popToast(e,o)};const s={success:o("success"),info:o("info"),warning:o("warning"),error:o("error")};const r=(e,o)=>{if(!e)return;e.dispatchEvent(new CustomEvent("requestClose",{detail:o,bubbles:true,cancelable:true,composed:true}))};const t=({copy:o=false,...s},r)=>r.every((e=>e==null))?e("es-loading-text",{...s}):o?e("es-copy",null,r):r;export{t as LoadingText,r as requestClose,s as toast}; | ||
export{i as iconStore}from"./p-1e3a25ed.js";import{I as e}from"./p-2db84239.js";export{I as ES_COMPONENTS_ICON_NAMESPACE}from"./p-2db84239.js";import{h as t}from"./p-8e345b89.js";import{H as o}from"./p-613041a4.js";const s=e=>(t,o=document)=>{let s=o.querySelector("es-toaster");if(!s){s=o.createElement("es-toaster");o.body.appendChild(s)}return s.popToast(e,t)};const a={success:s("success"),info:s("info"),warning:s("warning"),error:s("error")};const n=(e,t)=>{if(!e)return;e.dispatchEvent(new CustomEvent("requestClose",{detail:t,bubbles:true,cancelable:true,composed:true}))};const r=({copy:e=false,...o},s)=>s.every((e=>e==null))?t("es-loading-text",{...o}):e?t("es-copy",null,s):s;const c=({dropdownItem:o=false,description:s,deleteItem:a,disabled:n=false,icon:i=[e,"trash"],typeToConfirm:r=false,modal:c,toast:d})=>t("es-action-with-confirmation",{dropdownItem:o,action:l({deleteItem:a,description:s,toast:d}),disabled:n,icon:i,typeToConfirm:r?s:undefined,modal:c},`Delete ${s}`);const l=({deleteItem:t,description:s,toast:n})=>async()=>{try{await t();a.success({icon:[e,"trash"],...n})}catch(e){if(o.isHTTPError(e)){const t=await e.details();a.error({title:`Failed to delete ${s}`,message:t.detail})}else{a.error({title:`Failed to delete ${s}`,message:e instanceof Error?e.message:String(e)})}}};const d=({dropdownItem:o=false,value:s,disabled:a=false,icon:n=[e,"copy"],toast:i},r)=>t("es-action",{dropdownItem:o,action:m({value:s,toast:i}),disabled:a,icon:n},r);const m=({value:t,toast:o})=>async s=>{s.preventDefault();s.stopPropagation();try{await navigator.clipboard.writeText(t);a.success({icon:[e,"copy"],...o})}catch(e){a.error({title:"Failed to copy",message:e instanceof Error?e.message:String(e)})}};export{d as ActionCopy,c as ActionDelete,r as LoadingText,n as requestClose,a as toast}; | ||
//# sourceMappingURL=index.esm.js.map |
import { r as registerInstance, h, H as Host } from './index-35d256f7.js'; | ||
import './createLogger-0b8c38a0.js'; | ||
import './HTTPError-b09e93c4.js'; | ||
import { I as ICON_NAMESPACE } from './namespace-5cdf073b.js'; | ||
@@ -4,0 +4,0 @@ |
@@ -17,3 +17,3 @@ import { r as registerInstance, c as createEvent, h, H as Host } from './index-35d256f7.js'; | ||
case 'exiting': { | ||
this.closingPromise?.(); | ||
this.resolveClose?.(true); | ||
break; | ||
@@ -34,8 +34,16 @@ } | ||
} | ||
close() { | ||
return new Promise((resolve) => { | ||
this.closingPromise = resolve; | ||
async close() { | ||
const closed = await new Promise((resolve) => { | ||
this.resolveClose = resolve; | ||
this.state = 'exiting'; | ||
}); | ||
delete this.resolveClose; | ||
return closed; | ||
} | ||
async cancelClose() { | ||
if (this.state !== 'exiting') | ||
return; | ||
this.resolveClose?.(false); | ||
this.state = 'entering'; | ||
} | ||
componentDidLoad() { | ||
@@ -42,0 +50,0 @@ requestAnimationFrame(() => { |
import { r as registerInstance, h, H as Host } from './index-35d256f7.js'; | ||
import { t as theme } from './theme-c060faf6.js'; | ||
import { L as Link } from './Link-c7c1febf.js'; | ||
import './logger-e380b577.js'; | ||
import './createLogger-0b8c38a0.js'; | ||
import { t as theme } from './theme-41cec505.js'; | ||
import { L as Link } from './Link-0992586d.js'; | ||
import './logger-be16d6d2.js'; | ||
import './HTTPError-b09e93c4.js'; | ||
const buttonCss = "*{box-sizing:border-box}:host{--height:40px;--border-style:solid;--border-radius:30px;--border-width:2px;--text-decoration:none;--transition-duration:500ms;--spacing:14px;--align-inner:center;--focus:var(--focus-color, var(--color-focus));font-size:16px;display:inline-block;height:40px;height:var(--height);border-radius:30px;border-radius:var(--border-radius)}:host(:not([disabled]):focus),:host(:not([disabled]):focus-within){outline-offset:2px;outline-color:var(--focus);outline-style:solid}:host([variant='default']){---primary:var(--primary-color, var(--color-background));---secondary:var(--secondary-color, var(--color-secondary));---tertiary:var(--tertiary-color, var(--color-shade-30));--background-color:var(---primary);--foreground-color:var(---secondary);--border-color:var(---tertiary)}:host([variant='default']:not([disabled]):hover){--background-color:var(---secondary);--foreground-color:var(---primary);--border-color:var(---primary)}:host([variant='default'][disabled]){--background-color:var(--color-shade-40);--foreground-color:var(--color-background);--border-color:var(--color-shade-40)}:host([variant='filled']){---primary:var(--primary-color, var(--color-secondary));---secondary:var(--secondary-color, var(--color-background));---tertiary:var(--tertiary-color, var(--color-secondary));--background-color:var(---primary);--foreground-color:var(---secondary);--border-color:var(---tertiary)}:host([variant='filled']:not([disabled]):hover){--background-color:var(---secondary);--foreground-color:var(---primary);--border-color:var(---tertiary)}:host([variant='filled'][disabled]){--background-color:var(--color-shade-40);--foreground-color:var(--color-background);--border-color:var(--color-shade-40)}:host([variant='outline']){---primary:var(--primary-color, var(--color-background));---secondary:var(--secondary-color, var(--color-secondary));---tertiary:var(--tertiary-color, var(--color-secondary));--background-color:var(---primary);--foreground-color:var(---secondary);--border-color:var(---tertiary)}:host([variant='outline']:not([disabled]):hover){--background-color:var(---secondary);--foreground-color:var(---primary);--border-color:var(---tertiary)}:host([variant='outline'][disabled]){--background-color:var(--color-shade-40);--foreground-color:var(--color-background);--border-color:var(--color-shade-40)}:host([variant='delete']){--background-color:var(--color-background);--foreground-color:var(--color-error);--border-color:var(--color-error)}:host([variant='delete'][dark]){---secondary:var(--color-text)}:host([variant='delete']:not([disabled]):hover){--background-color:var(--color-error);--foreground-color:var(--color-error-contrast);--border-color:var(--color-error)}:host([variant='delete'][disabled]){--background-color:var(--color-shade-40);--foreground-color:var(--color-background);--border-color:var(--color-shade-40)}:host([variant='cancel']){--background-color:var(--color-shade-40);--foreground-color:var(--color-text);--border-color:var(--color-shade-40)}:host([variant='cancel'][high-contrast]){--background-color:var(--color-background)}:host([variant='cancel']:not([disabled]):hover){--background-color:var(--color-background);--foreground-color:var(--color-text);--border-color:var(--color-shade-40)}:host([variant='cancel'][high-contrast]:not([disabled]):hover){--background-color:var(--color-text);--foreground-color:var(--color-background)}:host([variant='cancel']:not([disabled]):focus),:host([variant='cancel']:not([disabled]):focus-within){--border-color:var(--color-focus)}:host([variant='cancel'][disabled]){--background-color:var(--color-shade-40);--foreground-color:var(--color-background);--border-color:var(--color-shade-40)}:host([variant='minimal']){---primary:var(--primary-color, var(--color-text));---secondary:var(--secondary-color, var(--color-secondary));--background-color:transparent;--foreground-color:var(---primary);--border-color:transparent;--border-width:0px;--border-radius:0px}:host([variant='minimal']:not([disabled]):hover){--foreground-color:var(---secondary)}:host([variant='minimal']:not([disabled]):focus),:host([variant='minimal']:not([disabled]):focus-within){--foreground-color:var(--color-focus)}:host([variant='minimal'][disabled]){--foreground-color:var(--color-shade-40)}:host([variant='link']){--background-color:transparent;--foreground-color:var(--color-secondary);--border-color:transparent;--border-width:0px;--border-radius:0px;--height:auto;font-size:inherit}:host([variant='link']) button,:host([variant='link']) a{padding:0}:host([variant='link']:not([disabled]):hover){--text-decoration:underline}:host([variant='link']:not([disabled]):focus),:host([variant='link']:not([disabled]):focus-within){--text-decoration:underline;--foreground-color:var(--color-focus)}:host([variant='link'][disabled]){--foreground-color:var(--color-shade-40)}:host([variant][high-contrast][disabled]){--background-color:var(--color-background);--foreground-color:var(--color-text);--border-style:dashed}button,a{display:flex;height:100%;width:100%;font-family:inherit;font-size:inherit;cursor:pointer;font-weight:400;outline:none;border-style:solid;align-items:center;justify-content:space-between;font:inherit;overflow:hidden;padding-top:0;padding-bottom:0;padding-left:var(--spacing);padding-right:var(--spacing);border-radius:var(--border-radius);border-width:var(--border-width);border-style:var(--border-style);-webkit-text-decoration:var(--text-decoration);text-decoration:var(--text-decoration);color:var(--foreground-color);background-color:var(--background-color);border-color:var(--border-color)}button:disabled,a:disabled,button[disabled],a[disabled]{cursor:not-allowed}:host(.hydrated) button,:host(.hydrated) a{transition-property:color, border-color, background-color;transition-duration:var(--transition-duration);transition-timing-function:ease}::slotted([slot='before']){margin-left:0;margin-right:var(--spacing)}::slotted([slot='after']){margin-left:var(--spacing);margin-right:0}span{display:flex;justify-content:var(--align-inner);flex:1 1 100%}::slotted(es-icon:not([slot]):only-child){margin-left:calc(0px - var(--spacing));margin-right:calc(0px - var(--spacing));width:calc(var(--height) - var(--border-width))}"; | ||
const buttonCss = "*{box-sizing:border-box}:host{--height:40px;--border-style:solid;--border-radius:30px;--border-width:2px;--text-decoration:none;--transition-duration:500ms;--spacing:14px;--align-inner:center;--focus:var(--focus-color, var(--color-focus));font-size:16px;display:inline-block;height:40px;height:var(--height);border-radius:30px;border-radius:var(--border-radius)}:host(:not([disabled]):focus),:host(:not([disabled]):focus-within){outline-offset:2px;outline-color:var(--focus);outline-style:solid}:host([variant='default']){---primary:var(--primary-color, var(--color-background));---secondary:var(--secondary-color, var(--color-secondary));---tertiary:var(--tertiary-color, var(--color-shade-30));--background-color:var(---primary);--foreground-color:var(---secondary);--border-color:var(---tertiary)}:host([variant='default']:not([disabled]):hover){--background-color:var(---secondary);--foreground-color:var(---primary);--border-color:var(---primary)}:host([variant='default'][disabled]){--background-color:var(--color-shade-40);--foreground-color:var(--color-background);--border-color:var(--color-shade-40)}:host([variant='filled']){---primary:var(--primary-color, var(--color-secondary));---secondary:var(--secondary-color, var(--color-background));---tertiary:var(--tertiary-color, var(--color-secondary));--background-color:var(---primary);--foreground-color:var(---secondary);--border-color:var(---tertiary)}:host([variant='filled']:not([disabled]):hover){--background-color:var(---secondary);--foreground-color:var(---primary);--border-color:var(---tertiary)}:host([variant='filled'][disabled]){--background-color:var(--color-shade-40);--foreground-color:var(--color-background);--border-color:var(--color-shade-40)}:host([variant='outline']){---primary:var(--primary-color, var(--color-background));---secondary:var(--secondary-color, var(--color-secondary));---tertiary:var(--tertiary-color, var(--color-secondary));--background-color:var(---primary);--foreground-color:var(---secondary);--border-color:var(---tertiary)}:host([variant='outline']:not([disabled]):hover){--background-color:var(---secondary);--foreground-color:var(---primary);--border-color:var(---tertiary)}:host([variant='outline'][disabled]){--background-color:var(--color-shade-40);--foreground-color:var(--color-background);--border-color:var(--color-shade-40)}:host([variant='delete']){--background-color:var(--color-background);--foreground-color:var(--color-error);--border-color:var(--color-error)}:host([variant='delete'][dark]){---secondary:var(--color-text)}:host([variant='delete']:not([disabled]):hover){--background-color:var(--color-error);--foreground-color:var(--color-error-contrast);--border-color:var(--color-error)}:host([variant='delete'][disabled]){--background-color:var(--color-shade-40);--foreground-color:var(--color-background);--border-color:var(--color-shade-40)}:host([variant='cancel']){--background-color:var(--color-shade-40);--foreground-color:var(--color-text);--border-color:var(--color-shade-40)}:host([variant='cancel'][high-contrast]){--background-color:var(--color-background)}:host([variant='cancel']:not([disabled]):hover){--background-color:var(--color-background);--foreground-color:var(--color-text);--border-color:var(--color-shade-40)}:host([variant='cancel'][high-contrast]:not([disabled]):hover){--background-color:var(--color-text);--foreground-color:var(--color-background)}:host([variant='cancel']:not([disabled]):focus),:host([variant='cancel']:not([disabled]):focus-within){--border-color:var(--color-focus)}:host([variant='cancel'][disabled]){--background-color:var(--color-shade-40);--foreground-color:var(--color-background);--border-color:var(--color-shade-40)}:host([variant='minimal']){---primary:var(--primary-color, var(--color-text));---secondary:var(--secondary-color, var(--color-secondary));--background-color:transparent;--foreground-color:var(---primary);--border-color:transparent;--border-width:0px;--border-radius:0px}:host([variant='minimal']:not([disabled]):hover){--foreground-color:var(---secondary)}:host([variant='minimal']:not([disabled]):focus),:host([variant='minimal']:not([disabled]):focus-within){--foreground-color:var(--color-focus)}:host([variant='minimal'][disabled]){--foreground-color:var(--color-shade-40)}:host([variant='link']){--background-color:transparent;--foreground-color:var(--color-secondary);--border-color:transparent;--border-width:0px;--border-radius:0px;--height:auto;font-size:inherit}:host([variant='link']) button,:host([variant='link']) a{padding:0}:host([variant='link']:not([disabled]):hover){--text-decoration:underline}:host([variant='link']:not([disabled]):focus),:host([variant='link']:not([disabled]):focus-within){--text-decoration:underline;--foreground-color:var(--color-focus)}:host([variant='link'][disabled]){--foreground-color:var(--color-shade-40)}:host([variant][high-contrast][disabled]){--background-color:var(--color-background);--foreground-color:var(--color-text);--border-style:dashed}button,a{display:flex;height:100%;width:100%;font-family:inherit;font-size:inherit;cursor:pointer;font-weight:400;outline:none;border-style:solid;align-items:center;justify-content:space-between;font:inherit;overflow:hidden;padding-top:0;padding-bottom:0;padding-left:var(--spacing);padding-right:var(--spacing);border-radius:var(--border-radius);border-width:var(--border-width);border-style:var(--border-style);-webkit-text-decoration:var(--text-decoration);text-decoration:var(--text-decoration);color:var(--foreground-color);background-color:var(--background-color);border-color:var(--border-color)}button:disabled,a:disabled,button[disabled],a[disabled]{cursor:not-allowed}:host(.hydrated) button,:host(.hydrated) a{transition-property:color, border-color, background-color;transition-duration:var(--transition-duration);transition-timing-function:ease}::slotted([slot='before']){margin-left:0;margin-right:var(--spacing)}::slotted([slot='after']){margin-left:var(--spacing);margin-right:0}span{display:flex;justify-content:var(--align-inner);flex:1 1 100%}::slotted(:where(es-icon,es-badge):not([slot]):only-child){margin-left:calc(0px - var(--spacing));margin-right:calc(0px - var(--spacing));width:calc(var(--height) - var(--border-width))}"; | ||
@@ -9,0 +9,0 @@ const ButtonLink = class { |
import { r as registerInstance, h, H as Host, g as getElement } from './index-35d256f7.js'; | ||
import { t as theme } from './theme-c060faf6.js'; | ||
import './createLogger-0b8c38a0.js'; | ||
import { t as theme } from './theme-41cec505.js'; | ||
import './HTTPError-b09e93c4.js'; | ||
@@ -19,3 +19,3 @@ function closest(el, selector) { | ||
const buttonCss = "*{box-sizing:border-box}:host{--height:40px;--border-style:solid;--border-radius:30px;--border-width:2px;--text-decoration:none;--transition-duration:500ms;--spacing:14px;--align-inner:center;--focus:var(--focus-color, var(--color-focus));font-size:16px;display:inline-block;height:40px;height:var(--height);border-radius:30px;border-radius:var(--border-radius)}:host(:not([disabled]):focus),:host(:not([disabled]):focus-within){outline-offset:2px;outline-color:var(--focus);outline-style:solid}:host([variant='default']){---primary:var(--primary-color, var(--color-background));---secondary:var(--secondary-color, var(--color-secondary));---tertiary:var(--tertiary-color, var(--color-shade-30));--background-color:var(---primary);--foreground-color:var(---secondary);--border-color:var(---tertiary)}:host([variant='default']:not([disabled]):hover){--background-color:var(---secondary);--foreground-color:var(---primary);--border-color:var(---primary)}:host([variant='default'][disabled]){--background-color:var(--color-shade-40);--foreground-color:var(--color-background);--border-color:var(--color-shade-40)}:host([variant='filled']){---primary:var(--primary-color, var(--color-secondary));---secondary:var(--secondary-color, var(--color-background));---tertiary:var(--tertiary-color, var(--color-secondary));--background-color:var(---primary);--foreground-color:var(---secondary);--border-color:var(---tertiary)}:host([variant='filled']:not([disabled]):hover){--background-color:var(---secondary);--foreground-color:var(---primary);--border-color:var(---tertiary)}:host([variant='filled'][disabled]){--background-color:var(--color-shade-40);--foreground-color:var(--color-background);--border-color:var(--color-shade-40)}:host([variant='outline']){---primary:var(--primary-color, var(--color-background));---secondary:var(--secondary-color, var(--color-secondary));---tertiary:var(--tertiary-color, var(--color-secondary));--background-color:var(---primary);--foreground-color:var(---secondary);--border-color:var(---tertiary)}:host([variant='outline']:not([disabled]):hover){--background-color:var(---secondary);--foreground-color:var(---primary);--border-color:var(---tertiary)}:host([variant='outline'][disabled]){--background-color:var(--color-shade-40);--foreground-color:var(--color-background);--border-color:var(--color-shade-40)}:host([variant='delete']){--background-color:var(--color-background);--foreground-color:var(--color-error);--border-color:var(--color-error)}:host([variant='delete'][dark]){---secondary:var(--color-text)}:host([variant='delete']:not([disabled]):hover){--background-color:var(--color-error);--foreground-color:var(--color-error-contrast);--border-color:var(--color-error)}:host([variant='delete'][disabled]){--background-color:var(--color-shade-40);--foreground-color:var(--color-background);--border-color:var(--color-shade-40)}:host([variant='cancel']){--background-color:var(--color-shade-40);--foreground-color:var(--color-text);--border-color:var(--color-shade-40)}:host([variant='cancel'][high-contrast]){--background-color:var(--color-background)}:host([variant='cancel']:not([disabled]):hover){--background-color:var(--color-background);--foreground-color:var(--color-text);--border-color:var(--color-shade-40)}:host([variant='cancel'][high-contrast]:not([disabled]):hover){--background-color:var(--color-text);--foreground-color:var(--color-background)}:host([variant='cancel']:not([disabled]):focus),:host([variant='cancel']:not([disabled]):focus-within){--border-color:var(--color-focus)}:host([variant='cancel'][disabled]){--background-color:var(--color-shade-40);--foreground-color:var(--color-background);--border-color:var(--color-shade-40)}:host([variant='minimal']){---primary:var(--primary-color, var(--color-text));---secondary:var(--secondary-color, var(--color-secondary));--background-color:transparent;--foreground-color:var(---primary);--border-color:transparent;--border-width:0px;--border-radius:0px}:host([variant='minimal']:not([disabled]):hover){--foreground-color:var(---secondary)}:host([variant='minimal']:not([disabled]):focus),:host([variant='minimal']:not([disabled]):focus-within){--foreground-color:var(--color-focus)}:host([variant='minimal'][disabled]){--foreground-color:var(--color-shade-40)}:host([variant='link']){--background-color:transparent;--foreground-color:var(--color-secondary);--border-color:transparent;--border-width:0px;--border-radius:0px;--height:auto;font-size:inherit}:host([variant='link']) button,:host([variant='link']) a{padding:0}:host([variant='link']:not([disabled]):hover){--text-decoration:underline}:host([variant='link']:not([disabled]):focus),:host([variant='link']:not([disabled]):focus-within){--text-decoration:underline;--foreground-color:var(--color-focus)}:host([variant='link'][disabled]){--foreground-color:var(--color-shade-40)}:host([variant][high-contrast][disabled]){--background-color:var(--color-background);--foreground-color:var(--color-text);--border-style:dashed}button,a{display:flex;height:100%;width:100%;font-family:inherit;font-size:inherit;cursor:pointer;font-weight:400;outline:none;border-style:solid;align-items:center;justify-content:space-between;font:inherit;overflow:hidden;padding-top:0;padding-bottom:0;padding-left:var(--spacing);padding-right:var(--spacing);border-radius:var(--border-radius);border-width:var(--border-width);border-style:var(--border-style);-webkit-text-decoration:var(--text-decoration);text-decoration:var(--text-decoration);color:var(--foreground-color);background-color:var(--background-color);border-color:var(--border-color)}button:disabled,a:disabled,button[disabled],a[disabled]{cursor:not-allowed}:host(.hydrated) button,:host(.hydrated) a{transition-property:color, border-color, background-color;transition-duration:var(--transition-duration);transition-timing-function:ease}::slotted([slot='before']){margin-left:0;margin-right:var(--spacing)}::slotted([slot='after']){margin-left:var(--spacing);margin-right:0}span{display:flex;justify-content:var(--align-inner);flex:1 1 100%}::slotted(es-icon:not([slot]):only-child){margin-left:calc(0px - var(--spacing));margin-right:calc(0px - var(--spacing));width:calc(var(--height) - var(--border-width))}"; | ||
const buttonCss = "*{box-sizing:border-box}:host{--height:40px;--border-style:solid;--border-radius:30px;--border-width:2px;--text-decoration:none;--transition-duration:500ms;--spacing:14px;--align-inner:center;--focus:var(--focus-color, var(--color-focus));font-size:16px;display:inline-block;height:40px;height:var(--height);border-radius:30px;border-radius:var(--border-radius)}:host(:not([disabled]):focus),:host(:not([disabled]):focus-within){outline-offset:2px;outline-color:var(--focus);outline-style:solid}:host([variant='default']){---primary:var(--primary-color, var(--color-background));---secondary:var(--secondary-color, var(--color-secondary));---tertiary:var(--tertiary-color, var(--color-shade-30));--background-color:var(---primary);--foreground-color:var(---secondary);--border-color:var(---tertiary)}:host([variant='default']:not([disabled]):hover){--background-color:var(---secondary);--foreground-color:var(---primary);--border-color:var(---primary)}:host([variant='default'][disabled]){--background-color:var(--color-shade-40);--foreground-color:var(--color-background);--border-color:var(--color-shade-40)}:host([variant='filled']){---primary:var(--primary-color, var(--color-secondary));---secondary:var(--secondary-color, var(--color-background));---tertiary:var(--tertiary-color, var(--color-secondary));--background-color:var(---primary);--foreground-color:var(---secondary);--border-color:var(---tertiary)}:host([variant='filled']:not([disabled]):hover){--background-color:var(---secondary);--foreground-color:var(---primary);--border-color:var(---tertiary)}:host([variant='filled'][disabled]){--background-color:var(--color-shade-40);--foreground-color:var(--color-background);--border-color:var(--color-shade-40)}:host([variant='outline']){---primary:var(--primary-color, var(--color-background));---secondary:var(--secondary-color, var(--color-secondary));---tertiary:var(--tertiary-color, var(--color-secondary));--background-color:var(---primary);--foreground-color:var(---secondary);--border-color:var(---tertiary)}:host([variant='outline']:not([disabled]):hover){--background-color:var(---secondary);--foreground-color:var(---primary);--border-color:var(---tertiary)}:host([variant='outline'][disabled]){--background-color:var(--color-shade-40);--foreground-color:var(--color-background);--border-color:var(--color-shade-40)}:host([variant='delete']){--background-color:var(--color-background);--foreground-color:var(--color-error);--border-color:var(--color-error)}:host([variant='delete'][dark]){---secondary:var(--color-text)}:host([variant='delete']:not([disabled]):hover){--background-color:var(--color-error);--foreground-color:var(--color-error-contrast);--border-color:var(--color-error)}:host([variant='delete'][disabled]){--background-color:var(--color-shade-40);--foreground-color:var(--color-background);--border-color:var(--color-shade-40)}:host([variant='cancel']){--background-color:var(--color-shade-40);--foreground-color:var(--color-text);--border-color:var(--color-shade-40)}:host([variant='cancel'][high-contrast]){--background-color:var(--color-background)}:host([variant='cancel']:not([disabled]):hover){--background-color:var(--color-background);--foreground-color:var(--color-text);--border-color:var(--color-shade-40)}:host([variant='cancel'][high-contrast]:not([disabled]):hover){--background-color:var(--color-text);--foreground-color:var(--color-background)}:host([variant='cancel']:not([disabled]):focus),:host([variant='cancel']:not([disabled]):focus-within){--border-color:var(--color-focus)}:host([variant='cancel'][disabled]){--background-color:var(--color-shade-40);--foreground-color:var(--color-background);--border-color:var(--color-shade-40)}:host([variant='minimal']){---primary:var(--primary-color, var(--color-text));---secondary:var(--secondary-color, var(--color-secondary));--background-color:transparent;--foreground-color:var(---primary);--border-color:transparent;--border-width:0px;--border-radius:0px}:host([variant='minimal']:not([disabled]):hover){--foreground-color:var(---secondary)}:host([variant='minimal']:not([disabled]):focus),:host([variant='minimal']:not([disabled]):focus-within){--foreground-color:var(--color-focus)}:host([variant='minimal'][disabled]){--foreground-color:var(--color-shade-40)}:host([variant='link']){--background-color:transparent;--foreground-color:var(--color-secondary);--border-color:transparent;--border-width:0px;--border-radius:0px;--height:auto;font-size:inherit}:host([variant='link']) button,:host([variant='link']) a{padding:0}:host([variant='link']:not([disabled]):hover){--text-decoration:underline}:host([variant='link']:not([disabled]):focus),:host([variant='link']:not([disabled]):focus-within){--text-decoration:underline;--foreground-color:var(--color-focus)}:host([variant='link'][disabled]){--foreground-color:var(--color-shade-40)}:host([variant][high-contrast][disabled]){--background-color:var(--color-background);--foreground-color:var(--color-text);--border-style:dashed}button,a{display:flex;height:100%;width:100%;font-family:inherit;font-size:inherit;cursor:pointer;font-weight:400;outline:none;border-style:solid;align-items:center;justify-content:space-between;font:inherit;overflow:hidden;padding-top:0;padding-bottom:0;padding-left:var(--spacing);padding-right:var(--spacing);border-radius:var(--border-radius);border-width:var(--border-width);border-style:var(--border-style);-webkit-text-decoration:var(--text-decoration);text-decoration:var(--text-decoration);color:var(--foreground-color);background-color:var(--background-color);border-color:var(--border-color)}button:disabled,a:disabled,button[disabled],a[disabled]{cursor:not-allowed}:host(.hydrated) button,:host(.hydrated) a{transition-property:color, border-color, background-color;transition-duration:var(--transition-duration);transition-timing-function:ease}::slotted([slot='before']){margin-left:0;margin-right:var(--spacing)}::slotted([slot='after']){margin-left:var(--spacing);margin-right:0}span{display:flex;justify-content:var(--align-inner);flex:1 1 100%}::slotted(:where(es-icon,es-badge):not([slot]):only-child){margin-left:calc(0px - var(--spacing));margin-right:calc(0px - var(--spacing));width:calc(var(--height) - var(--border-width))}"; | ||
@@ -22,0 +22,0 @@ const Button = class { |
import { r as registerInstance, h, H as Host } from './index-35d256f7.js'; | ||
import { t as theme } from './theme-c060faf6.js'; | ||
import { t as theme } from './theme-41cec505.js'; | ||
import { I as ICON_NAMESPACE } from './namespace-5cdf073b.js'; | ||
import './createLogger-0b8c38a0.js'; | ||
import './HTTPError-b09e93c4.js'; | ||
@@ -6,0 +6,0 @@ const esCalloutCss = ":host,*{box-sizing:border-box}:host{display:block;border-width:1px 1px 1px 8px;border-style:solid;border-color:var(--weak-color);border-left-color:var(--strong-color);background-color:var(--weak-color);position:relative;padding:18px 30px;color:var(--text-color);margin:0 16px 20px 16px;--primary-color:var(--weak-color);--secondary-color:var(--strong-color);--tertiary-color:var(--strong-color)}:host([variant='tip']){--strong-color:var(--color-success);--weak-color:var(--color-success-alt);--text-color:var(--color-success-alt-contrast)}:host([variant='info']){--strong-color:var(--color-info);--weak-color:var(--color-info-alt);--text-color:var(--color-info-alt-contrast)}:host([variant='warning']){--strong-color:var(--color-warning);--weak-color:var(--color-warning-alt);--text-color:var(--color-warning-alt-contrast)}:host([variant='error']){--strong-color:var(--color-error);--weak-color:var(--color-error-alt);--text-color:var(--color-error-alt-contrast)}:host([high-contrast]){--weak-color:var(--color-background);--text-color:var(--color-text);border-color:var(--strong-color)}es-icon{position:absolute;top:12px;left:-24px;width:40px;height:40px;display:flex;align-items:center;justify-content:center;border-radius:50%;border:2px solid var(--strong-color);background-color:var(--weak-color);color:var(--strong-color)}h1{font-size:18px;font-weight:700;color:var(--strong-color);margin:0;line-height:1.5;margin-bottom:12px}"; |
import { p as promiseResolve, b as bootstrapLazy } from './index-35d256f7.js'; | ||
export { s as setNonce } from './index-35d256f7.js'; | ||
import './theme-c060faf6.js'; | ||
import './index-c10b6cb1.js'; | ||
import './createLogger-0b8c38a0.js'; | ||
import './iconStore-f5fd19e3.js'; | ||
import './theme-41cec505.js'; | ||
import './index-a28d8100.js'; | ||
import './HTTPError-b09e93c4.js'; | ||
import './iconStore-17b7c4fe.js'; | ||
import './namespace-5cdf073b.js'; | ||
@@ -22,5 +22,5 @@ | ||
patchBrowser().then(options => { | ||
return bootstrapLazy([["es-popover",[[1,"es-popover",{"popperClass":[1,"popper-class"],"target":[1],"open":[516],"backdrop":[4],"zIndex":[2,"z-index"],"arrow":[4],"trapFocus":[4,"trap-focus"],"closeOnBlur":[4,"close-on-blur"],"closeOnClickOutside":[4,"close-on-click-outside"],"closeOnEsc":[4,"close-on-esc"],"closeOnScrollEscape":[4,"close-on-scroll-escape"],"hideOnScrollEscape":[4,"hide-on-scroll-escape"],"attachTo":[16],"autoSize":[1,"auto-size"],"constrain":[1],"maxHeight":[2,"max-height"],"maxWidth":[2,"max-width"],"placement":[1],"flip":[4],"offset":[2]},[[4,"click","onClickOutside"],[6,"keydown","onEscPress"]]]]],["es-icon",[[1,"es-icon",{"icon":[1],"size":[2],"angle":[2],"spin":[4],"spinDirection":[1,"spin-direction"],"autoSpin":[32],"Component":[32],"spinEnd":[64]}]]],["es-table-nested",[[0,"es-table-nested",{"headless":[4],"stickyHeader":[4,"sticky-header"],"outerIdentifier":[1,"outer-identifier"],"getCellData":[16],"getRowKey":[16],"getNestedRowKey":[16],"cells":[16],"columns":[16],"rows":[16],"linkRowTo":[16],"rowTakesFocus":[4,"row-takes-focus"],"rowClass":[16],"toggleRowOnClick":[4,"toggle-row-on-click"],"extraCellProps":[16],"nestedIdentifier":[1,"nested-identifier"],"nestedColumns":[16],"getNestedRows":[16],"getNestedCellData":[16],"loadNested":[16],"nestedRowTakesFocus":[4,"nested-row-takes-focus"],"canExpand":[16],"canExpandMore":[16],"expandBy":[2,"expand-by"],"defaultExpanded":[16],"activePath":[16],"expanded":[32],"loading":[32]}]]],["es-tabs",[[1,"es-tabs",{"tabs":[16],"activeParam":[8,"active-param"],"active":[1025],"interTabIcon":[1,"inter-tab-icon"],"interTabIconSize":[2,"inter-tab-icon-size"],"activeDragOver":[32]}]]],["es-toaster",[[1,"es-toaster",{"slices":[32],"loaf":[32],"popToast":[64]}]]],["es-accordian",[[1,"es-accordian",{"sections":[16],"steps":[4],"collapsed":[32]},[[0,"focusin","handleFocusIn"]]]]],["es-pagination",[[1,"es-pagination",{"pageCount":[2,"page-count"],"current":[2]}]]],["es-table-virtualized",[[0,"es-table-virtualized",{"identifier":[1],"headless":[4],"stickyHeader":[4,"sticky-header"],"getCellData":[16],"getKeyFromIndex":[16],"cells":[16],"columns":[16],"rowCount":[2,"row-count"],"renderBefore":[16],"renderAfter":[16],"windowSize":[2,"window-size"],"blockSize":[2,"block-size"],"reflowSize":[2,"reflow-size"],"linkRowTo":[16],"rowHeight":[2,"row-height"],"headerHeight":[2,"header-height"],"beforeHeight":[2,"before-height"],"afterHeight":[2,"after-height"],"rowTakesFocus":[4,"row-takes-focus"],"rowClass":[16],"sort":[16],"scrollLock":[4,"scroll-lock"],"extraCellProps":[16],"trailingEdge":[32],"reflowRow":[32],"warp":[32],"jumpHighlight":[32],"invertBanding":[32],"jumpToRow":[64]}]]],["es-thinking-button",[[1,"es-thinking-button",{"action":[16],"text":[1],"variant":[1],"disabled":[4],"defaultIcon":[1,"default-icon"],"thinkingIcon":[1,"thinking-icon"],"completeIcon":[1,"complete-icon"],"failedIcon":[1,"failed-icon"],"status":[32]}]]],["es-callout",[[1,"es-callout",{"heading":[1],"variant":[513],"icon":[1]}]]],["es-copy",[[1,"es-copy",{"status":[32],"copy":[64]},[[0,"click","onClick"]]]]],["es-loading-dots",[[1,"es-loading-dots"]]],["es-modal",[[1,"es-modal",{"header":[4],"footer":[4]},[[0,"keyup","onEscape"]]]]],["es-portal",[[1,"es-portal",{"target":[1],"renderElement":[16],"open":[516],"backdrop":[4],"preventOverscroll":[4,"prevent-overscroll"],"attachElement":[64],"detatchElement":[64]}]]],["es-progression",[[1,"es-progression",{"checkpoints":[16],"location":[1],"readonly":[4],"colors":[16],"icons":[16]}]]],["es-status",[[1,"es-status",{"status":[1]}]]],["es-button-link",[[1,"es-button-link",{"variant":[513],"disabled":[516],"url":[1],"forceRefresh":[4,"force-refresh"],"external":[4],"anchorClass":[1,"anchor-class"],"anchorRole":[1,"anchor-role"],"anchorTitle":[1,"anchor-title"],"anchorTabIndex":[1,"anchor-tab-index"],"anchorId":[1,"anchor-id"],"target":[1]}]]],["es-corner-banner",[[1,"es-corner-banner",{"variant":[513],"y":[1],"x":[1]}]]],["es-loading-text",[[1,"es-loading-text",{"expectedLength":[2,"expected-length"],"variance":[2]}]]],["es-resize-observer",[[0,"es-resize-observer"]]],["es-table-detail",[[0,"es-table-detail",{"identifier":[1],"data":[8],"cells":[16],"columns":[16]}]]],["es-table-detail-header",[[0,"es-table-detail-header",{"identifier":[1],"data":[8],"titleCell":[1,"title-cell"],"actionsCell":[1,"actions-cell"],"cells":[16]}]]],["es-wizard",[[1,"es-wizard",{"pages":[16],"location":[1],"scrollOffset":[2,"scroll-offset"]}]]],["es-table",[[0,"es-table",{"identifier":[1],"headless":[4],"stickyHeader":[4,"sticky-header"],"getCellData":[16],"getRowKey":[16],"cells":[16],"columns":[16],"rows":[16],"linkRowTo":[16],"rowTakesFocus":[4,"row-takes-focus"],"rowClass":[16],"renderExpansion":[16],"sort":[16],"extraCellProps":[16]}]]],["es-toast",[[1,"es-toast",{"level":[1],"count":[2],"icon":[1],"transitionState":[32],"close":[64]}]]],["es-badge",[[1,"es-badge",{"variant":[1],"color":[1],"count":[2],"showZero":[4,"show-zero"],"size":[2]}]]],["es-backdrop",[[1,"es-backdrop",{"showBackdrop":[4,"show-backdrop"],"preventOverscroll":[516,"prevent-overscroll"],"child":[32],"state":[32],"renderNode":[64],"close":[64]}]]],["es-popper_4",[[1,"es-popper",{"backdrop":[4],"trapFocus":[4,"trap-focus"],"loaded":[64]},[[0,"keyup","onEscape"]]],[1,"es-popper-inner"],[0,"es-popper-x"],[0,"es-popper-y"]]],["es-button",[[1,"es-button",{"variant":[513],"disabled":[516],"type":[1]},[[0,"keyup","handleKeyUp"],[2,"click","handleClick"]]]]],["es-counter",[[1,"es-counter",{"count":[2],"size":[2],"variant":[513],"color":[1],"pulsing":[32]}]]]], options); | ||
return bootstrapLazy([["es-action-with-confirmation",[[1,"es-action-with-confirmation",{"dropdownItem":[516,"dropdown-item"],"action":[16],"disabled":[4],"icon":[1],"dot":[1],"typeToConfirm":[1,"type-to-confirm"],"modal":[16],"open":[32]}]]],["es-action-dropdown",[[1,"es-action-dropdown",{"icon":[1],"dropdownOpen":[32]}]]],["es-action",[[1,"es-action",{"dropdownItem":[516,"dropdown-item"],"action":[16],"disabled":[4],"icon":[1],"dot":[1]}]]],["es-action-link",[[1,"es-action-link",{"dropdownItem":[516,"dropdown-item"],"url":[1],"disabled":[4],"icon":[1],"dot":[1]}]]],["es-table-nested",[[0,"es-table-nested",{"headless":[4],"stickyHeader":[4,"sticky-header"],"outerIdentifier":[1,"outer-identifier"],"getCellData":[16],"getRowKey":[16],"getNestedRowKey":[16],"cells":[16],"columns":[16],"rows":[16],"linkRowTo":[16],"rowTakesFocus":[4,"row-takes-focus"],"rowClass":[16],"toggleRowOnClick":[4,"toggle-row-on-click"],"extraCellProps":[16],"nestedIdentifier":[1,"nested-identifier"],"nestedColumns":[16],"getNestedRows":[16],"getNestedCellData":[16],"loadNested":[16],"nestedRowTakesFocus":[4,"nested-row-takes-focus"],"canExpand":[16],"canExpandMore":[16],"expandBy":[2,"expand-by"],"defaultExpanded":[16],"activePath":[16],"expanded":[32],"loading":[32]}]]],["es-tabs",[[1,"es-tabs",{"tabs":[16],"activeParam":[8,"active-param"],"active":[1025],"interTabIcon":[1,"inter-tab-icon"],"interTabIconSize":[2,"inter-tab-icon-size"],"activeDragOver":[32]}]]],["es-toaster",[[1,"es-toaster",{"slices":[32],"loaf":[32],"popToast":[64]}]]],["es-accordian",[[1,"es-accordian",{"sections":[16],"steps":[4],"collapsed":[32]},[[0,"focusin","handleFocusIn"]]]]],["es-pagination",[[1,"es-pagination",{"pageCount":[2,"page-count"],"current":[2]}]]],["es-table-virtualized",[[0,"es-table-virtualized",{"identifier":[1],"headless":[4],"stickyHeader":[4,"sticky-header"],"getCellData":[16],"getKeyFromIndex":[16],"cells":[16],"columns":[16],"rowCount":[2,"row-count"],"renderBefore":[16],"renderAfter":[16],"windowSize":[2,"window-size"],"blockSize":[2,"block-size"],"reflowSize":[2,"reflow-size"],"linkRowTo":[16],"rowHeight":[2,"row-height"],"headerHeight":[2,"header-height"],"beforeHeight":[2,"before-height"],"afterHeight":[2,"after-height"],"rowTakesFocus":[4,"row-takes-focus"],"rowClass":[16],"sort":[16],"scrollLock":[4,"scroll-lock"],"extraCellProps":[16],"trailingEdge":[32],"reflowRow":[32],"warp":[32],"jumpHighlight":[32],"invertBanding":[32],"jumpToRow":[64]}]]],["es-thinking-button",[[1,"es-thinking-button",{"action":[16],"text":[1],"variant":[1],"disabled":[4],"defaultIcon":[1,"default-icon"],"thinkingIcon":[1,"thinking-icon"],"completeIcon":[1,"complete-icon"],"failedIcon":[1,"failed-icon"],"status":[32]}]]],["es-callout",[[1,"es-callout",{"heading":[1],"variant":[513],"icon":[1]}]]],["es-copy",[[1,"es-copy",{"status":[32],"copy":[64]},[[0,"click","onClick"]]]]],["es-loading-dots",[[1,"es-loading-dots"]]],["es-progression",[[1,"es-progression",{"checkpoints":[16],"location":[1],"readonly":[4],"colors":[16],"icons":[16]}]]],["es-status",[[1,"es-status",{"status":[1]}]]],["es-actions",[[1,"es-actions"]]],["es-corner-banner",[[1,"es-corner-banner",{"variant":[513],"y":[1],"x":[1]}]]],["es-loading-text",[[1,"es-loading-text",{"expectedLength":[2,"expected-length"],"variance":[2]}]]],["es-resize-observer",[[0,"es-resize-observer"]]],["es-table-detail",[[0,"es-table-detail",{"identifier":[1],"data":[8],"cells":[16],"columns":[16]}]]],["es-table-detail-header",[[0,"es-table-detail-header",{"identifier":[1],"data":[8],"titleCell":[1,"title-cell"],"actionsCell":[1,"actions-cell"],"cells":[16]}]]],["es-wizard",[[1,"es-wizard",{"pages":[16],"location":[1],"scrollOffset":[2,"scroll-offset"]}]]],["es-table",[[0,"es-table",{"identifier":[1],"headless":[4],"stickyHeader":[4,"sticky-header"],"getCellData":[16],"getRowKey":[16],"cells":[16],"columns":[16],"rows":[16],"linkRowTo":[16],"rowTakesFocus":[4,"row-takes-focus"],"rowClass":[16],"renderExpansion":[16],"sort":[16],"extraCellProps":[16]}]]],["es-toast",[[1,"es-toast",{"level":[1],"count":[2],"icon":[1],"transitionState":[32],"close":[64]}]]],["es-button-link",[[1,"es-button-link",{"variant":[513],"disabled":[516],"url":[1],"forceRefresh":[4,"force-refresh"],"external":[4],"anchorClass":[1,"anchor-class"],"anchorRole":[1,"anchor-role"],"anchorTitle":[1,"anchor-title"],"anchorTabIndex":[1,"anchor-tab-index"],"anchorId":[1,"anchor-id"],"target":[1]}]]],["es-backdrop",[[1,"es-backdrop",{"showBackdrop":[4,"show-backdrop"],"preventOverscroll":[516,"prevent-overscroll"],"child":[32],"state":[32],"renderNode":[64],"close":[64],"cancelClose":[64]}]]],["es-counter",[[1,"es-counter",{"count":[2],"size":[2],"variant":[513],"color":[1],"pulsing":[32]}]]],["es-button",[[1,"es-button",{"variant":[513],"disabled":[516],"type":[1]},[[0,"keyup","handleKeyUp"],[2,"click","handleClick"]]]]],["es-popper_4",[[1,"es-popper",{"backdrop":[4],"trapFocus":[4,"trap-focus"],"loaded":[64]},[[0,"keyup","onEscape"]]],[1,"es-popper-inner"],[0,"es-popper-x"],[0,"es-popper-y"]]],["es-icon",[[1,"es-icon",{"icon":[1],"size":[2],"angle":[2],"spin":[4],"spinDirection":[1,"spin-direction"],"autoSpin":[32],"Component":[32],"spinEnd":[64]}]]],["es-modal_2",[[1,"es-modal",{"header":[4],"footer":[4]},[[0,"keyup","onEscape"]]],[1,"es-popover",{"popperClass":[1,"popper-class"],"target":[1],"open":[516],"backdrop":[4],"zIndex":[2,"z-index"],"arrow":[4],"trapFocus":[4,"trap-focus"],"closeOnBlur":[4,"close-on-blur"],"closeOnClickOutside":[4,"close-on-click-outside"],"closeOnEsc":[4,"close-on-esc"],"closeOnScrollEscape":[4,"close-on-scroll-escape"],"hideOnScrollEscape":[4,"hide-on-scroll-escape"],"attachTo":[16],"autoSize":[1,"auto-size"],"constrain":[1],"maxHeight":[2,"max-height"],"maxWidth":[2,"max-width"],"placement":[1],"flip":[4],"offset":[2]},[[4,"click","onClickOutside"],[6,"keydown","onEscPress"]]]]],["es-confirm-modal_2",[[1,"es-confirm-modal",{"preHeading":[1,"pre-heading"],"heading":[1],"body":[1],"warning":[1],"confirm":[1],"confirmVariant":[1,"confirm-variant"],"typeToConfirm":[1,"type-to-confirm"],"typed":[32],"copied":[32]}],[1,"es-portal",{"target":[1],"renderElement":[16],"open":[516],"backdrop":[4],"preventOverscroll":[4,"prevent-overscroll"],"attachElement":[64],"detatchElement":[64]}]]],["es-badge",[[1,"es-badge",{"variant":[1],"color":[1],"count":[2],"showZero":[4,"show-zero"],"size":[2]}]]]], options); | ||
}); | ||
//# sourceMappingURL=es-components.js.map |
import { r as registerInstance, h, g as getElement } from './index-35d256f7.js'; | ||
import { c as createLogger } from './createLogger-0b8c38a0.js'; | ||
import { i as iconStore } from './iconStore-f5fd19e3.js'; | ||
import { c as createLogger } from './HTTPError-b09e93c4.js'; | ||
import { i as iconStore } from './iconStore-17b7c4fe.js'; | ||
@@ -5,0 +5,0 @@ const esIconCss = ":host{display:inline-flex;align-items:center;justify-content:center}svg{display:block;stroke-width:1.5px;stroke-linecap:round;stroke-linejoin:round;animation-name:spinClockwise;animation-iteration-count:0;animation-timing-function:linear;animation-duration:500ms}svg:not([stroke]):not([fill]){fill:currentColor}svg.antiClockwise{animation-name:spinAntiClockwise}svg.spin{animation-iteration-count:infinite}@keyframes spinClockwise{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}@keyframes spinAntiClockwise{from{transform:rotate(0deg)}to{transform:rotate(-360deg)}}"; |
import { r as registerInstance, c as createEvent, g as getElement, h, H as Host } from './index-35d256f7.js'; | ||
import './createLogger-0b8c38a0.js'; | ||
import './HTTPError-b09e93c4.js'; | ||
import { d as delegateFocus, t as trapFocus } from './focus-1fbf1964.js'; | ||
@@ -51,3 +51,3 @@ | ||
const esPopperInnerCss = ":host{position:absolute;top:0;left:0;z-index:10;pointer-events:none;margin:0}:host(.hidden){display:none}:where(.inner){background-color:var(--color-background);box-shadow:0 0 5px 5px rgba(0, 0, 0, 0.11);overflow:auto;pointer-events:all}:where(.arrow){position:absolute;display:block;height:24px;width:24px;overflow:hidden;pointer-events:none}:where(.arrow)::after{content:'';display:block;height:24px;width:24px;position:absolute;background-color:var(--color-layout-highlight);border-radius:50%;transition:opacity 400ms ease, transform 400ms ease;opacity:0;transform:translateY(0px)}[data-placement^='top']:where(.arrow){top:100%}[data-placement^='top']:where(.arrow)::after{bottom:100%}.entered[data-placement^='top']:where(.arrow)::after{opacity:1;transform:translateY(9px)}[data-placement^='bottom']:where(.arrow){bottom:100%}[data-placement^='bottom']:where(.arrow)::after{top:100%}.entered[data-placement^='bottom']:where(.arrow)::after{opacity:1;transform:translateY(-9px)}[data-placement^='left']:where(.arrow){left:100%}[data-placement^='left']:where(.arrow)::after{right:100%}.entered[data-placement^='left']:where(.arrow)::after{opacity:1;transform:translateX(9px)}[data-placement^='right']:where(.arrow){right:100%}[data-placement^='right']:where(.arrow)::after{left:100%}.entered[data-placement^='right']:where(.arrow)::after{opacity:1;transform:translateX(-9px)}:where(es-popper-x),:where(es-popper-y){display:block;pointer-events:none}"; | ||
const esPopperInnerCss = ":host{position:absolute;top:0;left:0;z-index:10;pointer-events:none;margin:0}:host(.hidden){display:none}:where(.inner){background-color:var(--color-background);box-shadow:0 0 5px 5px rgba(0, 0, 0, 0.11);overflow:auto;pointer-events:all}:where(.arrow){position:absolute;display:block;height:24px;width:24px;overflow:hidden;pointer-events:none}:where(.arrow)::after{content:'';display:block;height:24px;width:24px;position:absolute;background-color:var(--color-secondary);border-radius:50%;transition:opacity 400ms ease, transform 400ms ease;opacity:0;transform:translateY(0px)}[data-placement^='top']:where(.arrow){top:100%}[data-placement^='top']:where(.arrow)::after{bottom:100%}.entered[data-placement^='top']:where(.arrow)::after{opacity:1;transform:translateY(9px)}[data-placement^='bottom']:where(.arrow){bottom:100%}[data-placement^='bottom']:where(.arrow)::after{top:100%}.entered[data-placement^='bottom']:where(.arrow)::after{opacity:1;transform:translateY(-9px)}[data-placement^='left']:where(.arrow){left:100%}[data-placement^='left']:where(.arrow)::after{right:100%}.entered[data-placement^='left']:where(.arrow)::after{opacity:1;transform:translateX(9px)}[data-placement^='right']:where(.arrow){right:100%}[data-placement^='right']:where(.arrow)::after{left:100%}.entered[data-placement^='right']:where(.arrow)::after{opacity:1;transform:translateX(-9px)}:where(es-popper-x),:where(es-popper-y){display:block;pointer-events:none}"; | ||
@@ -54,0 +54,0 @@ const Popper$2 = class { |
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-35d256f7.js'; | ||
import { L as Link } from './Link-c7c1febf.js'; | ||
import './logger-e380b577.js'; | ||
import { c as cellClasses, r as router, T as TableHeader } from './TableHeader-89ddd2bf.js'; | ||
import { d as debounce, t as theme } from './theme-c060faf6.js'; | ||
import './createLogger-0b8c38a0.js'; | ||
import { L as Link } from './Link-0992586d.js'; | ||
import './logger-be16d6d2.js'; | ||
import { c as cellClasses, r as router, T as TableHeader } from './TableHeader-9b20d060.js'; | ||
import { d as debounce, t as theme } from './theme-41cec505.js'; | ||
import './HTTPError-b09e93c4.js'; | ||
import { a as autoExtract } from './autoExtract-98ee209e.js'; | ||
@@ -8,0 +8,0 @@ import './namespace-5cdf073b.js'; |
import { r as registerInstance, c as createEvent, h, H as Host } from './index-35d256f7.js'; | ||
import { L as Link } from './Link-c7c1febf.js'; | ||
import './logger-e380b577.js'; | ||
import { c as cellClasses, r as router, v as variantMatches, T as TableHeader } from './TableHeader-89ddd2bf.js'; | ||
import { t as theme } from './theme-c060faf6.js'; | ||
import { c as createLogger } from './createLogger-0b8c38a0.js'; | ||
import { L as Link } from './Link-0992586d.js'; | ||
import './logger-be16d6d2.js'; | ||
import { c as cellClasses, r as router, v as variantMatches, T as TableHeader } from './TableHeader-9b20d060.js'; | ||
import { t as theme } from './theme-41cec505.js'; | ||
import { c as createLogger } from './HTTPError-b09e93c4.js'; | ||
import { a as autoExtract } from './autoExtract-98ee209e.js'; | ||
@@ -8,0 +8,0 @@ import './namespace-5cdf073b.js'; |
import { r as registerInstance, c as createEvent, h, F as Fragment, H as Host, g as getElement } from './index-35d256f7.js'; | ||
import { s as searchParam } from './logger-e380b577.js'; | ||
import { t as theme } from './theme-c060faf6.js'; | ||
import './createLogger-0b8c38a0.js'; | ||
import { s as searchParam } from './logger-be16d6d2.js'; | ||
import { t as theme } from './theme-41cec505.js'; | ||
import './HTTPError-b09e93c4.js'; | ||
@@ -6,0 +6,0 @@ const esTabsCss = ":host{display:flex;position:relative;flex-direction:column;--tab-color:var(--color-title-2);--active-color:var(--color-secondary);--focus-color:var(--color-primary-alt);--focus-indicator-color:var(--color-shade-40);--border-color:var(--color-shade-30)}:host([high-contrast]) .indicator{display:none}:host([high-contrast]) .tab:hover::after{height:2px;background-color:var(--active-color)}:host([high-contrast]) .tab.active::after{height:6px;background-color:var(--active-color)}:host([high-contrast]) .tab:focus{outline:solid var(--color-focus);outline-offset:-10px}header{display:flex;overflow:hidden}.tab{flex:0 1 auto;position:relative;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;color:var(--tab-color);font-weight:700;font-size:16px;border:0;padding:20px;cursor:pointer;outline:none;transition-property:color;transition-duration:500ms;transition-timing-function:ease;z-index:1;overflow:hidden}.tab::after{content:'';position:absolute;left:20px;right:20px;bottom:-1px;transform:translateY(50%);height:0px;background-color:transparent;transition-property:background-color, height;transition-duration:500ms;transition-timing-function:ease}.tab.drag_over,.tab:focus-visible{color:var(--focus-color)}.tab.drag_over::after,.tab:focus-visible::after{background-color:var(--focus-indicator-color);height:4px}.tab.active{color:var(--color-secondary)}.panel{border:1px solid var(--border-color);border-radius:20px;padding:10px 30px;flex:1 1 100%;position:relative;min-height:80px}.panel.no_pad{padding:0;min-height:0;min-height:initial}.panel.no_pad ::slotted(*){overflow:hidden;border-radius:20px}.indicator{display:block;height:4px;background-color:var(--active-color);transition-property:none;transition-duration:500ms;transition-timing-function:ease;position:absolute;top:-2px;left:0;z-index:20000}es-badge{align-items:flex-start}.elipsis{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"; |
import { r as registerInstance, h, H as Host, g as getElement } from './index-35d256f7.js'; | ||
import { t as theme } from './theme-c060faf6.js'; | ||
import './createLogger-0b8c38a0.js'; | ||
import { t as theme } from './theme-41cec505.js'; | ||
import './HTTPError-b09e93c4.js'; | ||
@@ -5,0 +5,0 @@ const esToastCss = "*,*::before,*::after{box-sizing:border-box}:host{position:relative;max-width:400px;opacity:0;transform:translateX(100%);--background-color:var(--color-background);--text-color:var(--color-text)}:host([dark]:not([high-contrast])){--background-color:var(--color-contrast);--text-color:var(--color-background)}:host(.error){--weak-color:var(--color-error-alt);--strong-color:var(--color-error)}:host(.warning){--weak-color:var(--color-warning-alt);--strong-color:var(--color-warning)}:host(.info){--weak-color:var(--color-info-alt);--strong-color:var(--color-info)}:host(.success){--weak-color:var(--color-success-alt);--strong-color:var(--color-success)}:host([high-contrast]){--weak-color:var(--background-color)}:host([high-contrast]) .inner{border:2px solid var(--strong-color);border-right:0}:host(.clickable){cursor:pointer}:host(.mounting){opacity:0;transform:translateX(100%)}:host(.mounted){transition:all 500ms ease;opacity:1;transform:translateX(0%);max-height:90px}:host(.unmounting){transition:all 500ms ease;opacity:0;transform:translateX(100%);max-height:0}.inner{display:flex;flex-direction:row;background-color:var(--background-color);color:var(--text-color);box-shadow:rgba(0, 0, 0, 0.05) 1px 1px 5px 5px;margin-bottom:12px;padding-left:10px;border-top-left-radius:30px;border-bottom-left-radius:30px;overflow:hidden;position:relative;z-index:0}.inner:before{content:'';position:absolute;top:0;bottom:0;left:10px;margin:auto;height:40px;width:40px;background-color:var(--weak-color);border:2px solid var(--strong-color);border-radius:20px;z-index:-1}.content{display:flex;flex-direction:column;padding:12px}.icon_holder{border-radius:50%;display:flex;width:40px;flex:0 0 40px;align-items:center;justify-content:center;color:var(--strong-color)}::slotted(strong){color:var(--strong-color)}es-counter{--text-color:var(--strong-color)}"; |
import { r as registerInstance, h, g as getElement } from './index-35d256f7.js'; | ||
import './createLogger-0b8c38a0.js'; | ||
import './HTTPError-b09e93c4.js'; | ||
import { d as delegateFocus } from './focus-1fbf1964.js'; | ||
@@ -4,0 +4,0 @@ |
@@ -1,5 +0,6 @@ | ||
export { i as iconStore } from './iconStore-f5fd19e3.js'; | ||
export { i as iconStore } from './iconStore-17b7c4fe.js'; | ||
import { I as ICON_NAMESPACE } from './namespace-5cdf073b.js'; | ||
export { I as ES_COMPONENTS_ICON_NAMESPACE } from './namespace-5cdf073b.js'; | ||
import { h } from './index-35d256f7.js'; | ||
import './createLogger-0b8c38a0.js'; | ||
import { H as HTTPError } from './HTTPError-b09e93c4.js'; | ||
@@ -57,4 +58,57 @@ const popToast = (level) => (options, targetDocument = document) => { | ||
export { LoadingText, requestClose, toast }; | ||
/** | ||
* An action to delete, with confirmation. | ||
* @usage ./ActionDelete.usage.md | ||
*/ | ||
const ActionDelete = ({ dropdownItem = false, description, deleteItem, disabled = false, icon = [ICON_NAMESPACE, 'trash'], typeToConfirm = false, modal, toast, }) => (h("es-action-with-confirmation", { dropdownItem: dropdownItem, action: handleDeletion({ deleteItem, description, toast }), disabled: disabled, icon: icon, typeToConfirm: typeToConfirm ? description : undefined, modal: modal }, `Delete ${description}`)); | ||
const handleDeletion = ({ deleteItem, description, toast: toastOptions, }) => async () => { | ||
try { | ||
await deleteItem(); | ||
toast.success({ | ||
icon: [ICON_NAMESPACE, 'trash'], | ||
...toastOptions, | ||
}); | ||
} | ||
catch (error) { | ||
if (HTTPError.isHTTPError(error)) { | ||
const details = await error.details(); | ||
toast.error({ | ||
title: `Failed to delete ${description}`, | ||
message: details.detail, | ||
}); | ||
} | ||
else { | ||
toast.error({ | ||
title: `Failed to delete ${description}`, | ||
message: error instanceof Error ? error.message : String(error), | ||
}); | ||
} | ||
} | ||
}; | ||
/** | ||
* An action to delete, with confirmation. | ||
* @usage ./ActionCopy.usage.md | ||
*/ | ||
const ActionCopy = ({ dropdownItem = false, value, disabled = false, icon = [ICON_NAMESPACE, 'copy'], toast, }, children) => (h("es-action", { dropdownItem: dropdownItem, action: copyText({ value, toast }), disabled: disabled, icon: icon }, children)); | ||
const copyText = ({ value, toast: toastOptions, }) => async (e) => { | ||
e.preventDefault(); | ||
e.stopPropagation(); | ||
try { | ||
await navigator.clipboard.writeText(value); | ||
toast.success({ | ||
icon: [ICON_NAMESPACE, 'copy'], | ||
...toastOptions, | ||
}); | ||
} | ||
catch (error) { | ||
toast.error({ | ||
title: 'Failed to copy', | ||
message: error instanceof Error ? error.message : String(error), | ||
}); | ||
} | ||
}; | ||
export { ActionCopy, ActionDelete, LoadingText, requestClose, toast }; | ||
//# sourceMappingURL=index.js.map |
import { b as bootstrapLazy } from './index-35d256f7.js'; | ||
export { s as setNonce } from './index-35d256f7.js'; | ||
import './theme-c060faf6.js'; | ||
import './index-c10b6cb1.js'; | ||
import './createLogger-0b8c38a0.js'; | ||
import './iconStore-f5fd19e3.js'; | ||
import './theme-41cec505.js'; | ||
import './index-a28d8100.js'; | ||
import './HTTPError-b09e93c4.js'; | ||
import './iconStore-17b7c4fe.js'; | ||
import './namespace-5cdf073b.js'; | ||
@@ -11,3 +11,3 @@ | ||
if (typeof window === 'undefined') return undefined; | ||
return bootstrapLazy([["es-popover",[[1,"es-popover",{"popperClass":[1,"popper-class"],"target":[1],"open":[516],"backdrop":[4],"zIndex":[2,"z-index"],"arrow":[4],"trapFocus":[4,"trap-focus"],"closeOnBlur":[4,"close-on-blur"],"closeOnClickOutside":[4,"close-on-click-outside"],"closeOnEsc":[4,"close-on-esc"],"closeOnScrollEscape":[4,"close-on-scroll-escape"],"hideOnScrollEscape":[4,"hide-on-scroll-escape"],"attachTo":[16],"autoSize":[1,"auto-size"],"constrain":[1],"maxHeight":[2,"max-height"],"maxWidth":[2,"max-width"],"placement":[1],"flip":[4],"offset":[2]},[[4,"click","onClickOutside"],[6,"keydown","onEscPress"]]]]],["es-icon",[[1,"es-icon",{"icon":[1],"size":[2],"angle":[2],"spin":[4],"spinDirection":[1,"spin-direction"],"autoSpin":[32],"Component":[32],"spinEnd":[64]}]]],["es-table-nested",[[0,"es-table-nested",{"headless":[4],"stickyHeader":[4,"sticky-header"],"outerIdentifier":[1,"outer-identifier"],"getCellData":[16],"getRowKey":[16],"getNestedRowKey":[16],"cells":[16],"columns":[16],"rows":[16],"linkRowTo":[16],"rowTakesFocus":[4,"row-takes-focus"],"rowClass":[16],"toggleRowOnClick":[4,"toggle-row-on-click"],"extraCellProps":[16],"nestedIdentifier":[1,"nested-identifier"],"nestedColumns":[16],"getNestedRows":[16],"getNestedCellData":[16],"loadNested":[16],"nestedRowTakesFocus":[4,"nested-row-takes-focus"],"canExpand":[16],"canExpandMore":[16],"expandBy":[2,"expand-by"],"defaultExpanded":[16],"activePath":[16],"expanded":[32],"loading":[32]}]]],["es-tabs",[[1,"es-tabs",{"tabs":[16],"activeParam":[8,"active-param"],"active":[1025],"interTabIcon":[1,"inter-tab-icon"],"interTabIconSize":[2,"inter-tab-icon-size"],"activeDragOver":[32]}]]],["es-toaster",[[1,"es-toaster",{"slices":[32],"loaf":[32],"popToast":[64]}]]],["es-accordian",[[1,"es-accordian",{"sections":[16],"steps":[4],"collapsed":[32]},[[0,"focusin","handleFocusIn"]]]]],["es-pagination",[[1,"es-pagination",{"pageCount":[2,"page-count"],"current":[2]}]]],["es-table-virtualized",[[0,"es-table-virtualized",{"identifier":[1],"headless":[4],"stickyHeader":[4,"sticky-header"],"getCellData":[16],"getKeyFromIndex":[16],"cells":[16],"columns":[16],"rowCount":[2,"row-count"],"renderBefore":[16],"renderAfter":[16],"windowSize":[2,"window-size"],"blockSize":[2,"block-size"],"reflowSize":[2,"reflow-size"],"linkRowTo":[16],"rowHeight":[2,"row-height"],"headerHeight":[2,"header-height"],"beforeHeight":[2,"before-height"],"afterHeight":[2,"after-height"],"rowTakesFocus":[4,"row-takes-focus"],"rowClass":[16],"sort":[16],"scrollLock":[4,"scroll-lock"],"extraCellProps":[16],"trailingEdge":[32],"reflowRow":[32],"warp":[32],"jumpHighlight":[32],"invertBanding":[32],"jumpToRow":[64]}]]],["es-thinking-button",[[1,"es-thinking-button",{"action":[16],"text":[1],"variant":[1],"disabled":[4],"defaultIcon":[1,"default-icon"],"thinkingIcon":[1,"thinking-icon"],"completeIcon":[1,"complete-icon"],"failedIcon":[1,"failed-icon"],"status":[32]}]]],["es-callout",[[1,"es-callout",{"heading":[1],"variant":[513],"icon":[1]}]]],["es-copy",[[1,"es-copy",{"status":[32],"copy":[64]},[[0,"click","onClick"]]]]],["es-loading-dots",[[1,"es-loading-dots"]]],["es-modal",[[1,"es-modal",{"header":[4],"footer":[4]},[[0,"keyup","onEscape"]]]]],["es-portal",[[1,"es-portal",{"target":[1],"renderElement":[16],"open":[516],"backdrop":[4],"preventOverscroll":[4,"prevent-overscroll"],"attachElement":[64],"detatchElement":[64]}]]],["es-progression",[[1,"es-progression",{"checkpoints":[16],"location":[1],"readonly":[4],"colors":[16],"icons":[16]}]]],["es-status",[[1,"es-status",{"status":[1]}]]],["es-button-link",[[1,"es-button-link",{"variant":[513],"disabled":[516],"url":[1],"forceRefresh":[4,"force-refresh"],"external":[4],"anchorClass":[1,"anchor-class"],"anchorRole":[1,"anchor-role"],"anchorTitle":[1,"anchor-title"],"anchorTabIndex":[1,"anchor-tab-index"],"anchorId":[1,"anchor-id"],"target":[1]}]]],["es-corner-banner",[[1,"es-corner-banner",{"variant":[513],"y":[1],"x":[1]}]]],["es-loading-text",[[1,"es-loading-text",{"expectedLength":[2,"expected-length"],"variance":[2]}]]],["es-resize-observer",[[0,"es-resize-observer"]]],["es-table-detail",[[0,"es-table-detail",{"identifier":[1],"data":[8],"cells":[16],"columns":[16]}]]],["es-table-detail-header",[[0,"es-table-detail-header",{"identifier":[1],"data":[8],"titleCell":[1,"title-cell"],"actionsCell":[1,"actions-cell"],"cells":[16]}]]],["es-wizard",[[1,"es-wizard",{"pages":[16],"location":[1],"scrollOffset":[2,"scroll-offset"]}]]],["es-table",[[0,"es-table",{"identifier":[1],"headless":[4],"stickyHeader":[4,"sticky-header"],"getCellData":[16],"getRowKey":[16],"cells":[16],"columns":[16],"rows":[16],"linkRowTo":[16],"rowTakesFocus":[4,"row-takes-focus"],"rowClass":[16],"renderExpansion":[16],"sort":[16],"extraCellProps":[16]}]]],["es-toast",[[1,"es-toast",{"level":[1],"count":[2],"icon":[1],"transitionState":[32],"close":[64]}]]],["es-badge",[[1,"es-badge",{"variant":[1],"color":[1],"count":[2],"showZero":[4,"show-zero"],"size":[2]}]]],["es-backdrop",[[1,"es-backdrop",{"showBackdrop":[4,"show-backdrop"],"preventOverscroll":[516,"prevent-overscroll"],"child":[32],"state":[32],"renderNode":[64],"close":[64]}]]],["es-popper_4",[[1,"es-popper",{"backdrop":[4],"trapFocus":[4,"trap-focus"],"loaded":[64]},[[0,"keyup","onEscape"]]],[1,"es-popper-inner"],[0,"es-popper-x"],[0,"es-popper-y"]]],["es-button",[[1,"es-button",{"variant":[513],"disabled":[516],"type":[1]},[[0,"keyup","handleKeyUp"],[2,"click","handleClick"]]]]],["es-counter",[[1,"es-counter",{"count":[2],"size":[2],"variant":[513],"color":[1],"pulsing":[32]}]]]], options); | ||
return bootstrapLazy([["es-action-with-confirmation",[[1,"es-action-with-confirmation",{"dropdownItem":[516,"dropdown-item"],"action":[16],"disabled":[4],"icon":[1],"dot":[1],"typeToConfirm":[1,"type-to-confirm"],"modal":[16],"open":[32]}]]],["es-action-dropdown",[[1,"es-action-dropdown",{"icon":[1],"dropdownOpen":[32]}]]],["es-action",[[1,"es-action",{"dropdownItem":[516,"dropdown-item"],"action":[16],"disabled":[4],"icon":[1],"dot":[1]}]]],["es-action-link",[[1,"es-action-link",{"dropdownItem":[516,"dropdown-item"],"url":[1],"disabled":[4],"icon":[1],"dot":[1]}]]],["es-table-nested",[[0,"es-table-nested",{"headless":[4],"stickyHeader":[4,"sticky-header"],"outerIdentifier":[1,"outer-identifier"],"getCellData":[16],"getRowKey":[16],"getNestedRowKey":[16],"cells":[16],"columns":[16],"rows":[16],"linkRowTo":[16],"rowTakesFocus":[4,"row-takes-focus"],"rowClass":[16],"toggleRowOnClick":[4,"toggle-row-on-click"],"extraCellProps":[16],"nestedIdentifier":[1,"nested-identifier"],"nestedColumns":[16],"getNestedRows":[16],"getNestedCellData":[16],"loadNested":[16],"nestedRowTakesFocus":[4,"nested-row-takes-focus"],"canExpand":[16],"canExpandMore":[16],"expandBy":[2,"expand-by"],"defaultExpanded":[16],"activePath":[16],"expanded":[32],"loading":[32]}]]],["es-tabs",[[1,"es-tabs",{"tabs":[16],"activeParam":[8,"active-param"],"active":[1025],"interTabIcon":[1,"inter-tab-icon"],"interTabIconSize":[2,"inter-tab-icon-size"],"activeDragOver":[32]}]]],["es-toaster",[[1,"es-toaster",{"slices":[32],"loaf":[32],"popToast":[64]}]]],["es-accordian",[[1,"es-accordian",{"sections":[16],"steps":[4],"collapsed":[32]},[[0,"focusin","handleFocusIn"]]]]],["es-pagination",[[1,"es-pagination",{"pageCount":[2,"page-count"],"current":[2]}]]],["es-table-virtualized",[[0,"es-table-virtualized",{"identifier":[1],"headless":[4],"stickyHeader":[4,"sticky-header"],"getCellData":[16],"getKeyFromIndex":[16],"cells":[16],"columns":[16],"rowCount":[2,"row-count"],"renderBefore":[16],"renderAfter":[16],"windowSize":[2,"window-size"],"blockSize":[2,"block-size"],"reflowSize":[2,"reflow-size"],"linkRowTo":[16],"rowHeight":[2,"row-height"],"headerHeight":[2,"header-height"],"beforeHeight":[2,"before-height"],"afterHeight":[2,"after-height"],"rowTakesFocus":[4,"row-takes-focus"],"rowClass":[16],"sort":[16],"scrollLock":[4,"scroll-lock"],"extraCellProps":[16],"trailingEdge":[32],"reflowRow":[32],"warp":[32],"jumpHighlight":[32],"invertBanding":[32],"jumpToRow":[64]}]]],["es-thinking-button",[[1,"es-thinking-button",{"action":[16],"text":[1],"variant":[1],"disabled":[4],"defaultIcon":[1,"default-icon"],"thinkingIcon":[1,"thinking-icon"],"completeIcon":[1,"complete-icon"],"failedIcon":[1,"failed-icon"],"status":[32]}]]],["es-callout",[[1,"es-callout",{"heading":[1],"variant":[513],"icon":[1]}]]],["es-copy",[[1,"es-copy",{"status":[32],"copy":[64]},[[0,"click","onClick"]]]]],["es-loading-dots",[[1,"es-loading-dots"]]],["es-progression",[[1,"es-progression",{"checkpoints":[16],"location":[1],"readonly":[4],"colors":[16],"icons":[16]}]]],["es-status",[[1,"es-status",{"status":[1]}]]],["es-actions",[[1,"es-actions"]]],["es-corner-banner",[[1,"es-corner-banner",{"variant":[513],"y":[1],"x":[1]}]]],["es-loading-text",[[1,"es-loading-text",{"expectedLength":[2,"expected-length"],"variance":[2]}]]],["es-resize-observer",[[0,"es-resize-observer"]]],["es-table-detail",[[0,"es-table-detail",{"identifier":[1],"data":[8],"cells":[16],"columns":[16]}]]],["es-table-detail-header",[[0,"es-table-detail-header",{"identifier":[1],"data":[8],"titleCell":[1,"title-cell"],"actionsCell":[1,"actions-cell"],"cells":[16]}]]],["es-wizard",[[1,"es-wizard",{"pages":[16],"location":[1],"scrollOffset":[2,"scroll-offset"]}]]],["es-table",[[0,"es-table",{"identifier":[1],"headless":[4],"stickyHeader":[4,"sticky-header"],"getCellData":[16],"getRowKey":[16],"cells":[16],"columns":[16],"rows":[16],"linkRowTo":[16],"rowTakesFocus":[4,"row-takes-focus"],"rowClass":[16],"renderExpansion":[16],"sort":[16],"extraCellProps":[16]}]]],["es-toast",[[1,"es-toast",{"level":[1],"count":[2],"icon":[1],"transitionState":[32],"close":[64]}]]],["es-button-link",[[1,"es-button-link",{"variant":[513],"disabled":[516],"url":[1],"forceRefresh":[4,"force-refresh"],"external":[4],"anchorClass":[1,"anchor-class"],"anchorRole":[1,"anchor-role"],"anchorTitle":[1,"anchor-title"],"anchorTabIndex":[1,"anchor-tab-index"],"anchorId":[1,"anchor-id"],"target":[1]}]]],["es-backdrop",[[1,"es-backdrop",{"showBackdrop":[4,"show-backdrop"],"preventOverscroll":[516,"prevent-overscroll"],"child":[32],"state":[32],"renderNode":[64],"close":[64],"cancelClose":[64]}]]],["es-counter",[[1,"es-counter",{"count":[2],"size":[2],"variant":[513],"color":[1],"pulsing":[32]}]]],["es-button",[[1,"es-button",{"variant":[513],"disabled":[516],"type":[1]},[[0,"keyup","handleKeyUp"],[2,"click","handleClick"]]]]],["es-popper_4",[[1,"es-popper",{"backdrop":[4],"trapFocus":[4,"trap-focus"],"loaded":[64]},[[0,"keyup","onEscape"]]],[1,"es-popper-inner"],[0,"es-popper-x"],[0,"es-popper-y"]]],["es-icon",[[1,"es-icon",{"icon":[1],"size":[2],"angle":[2],"spin":[4],"spinDirection":[1,"spin-direction"],"autoSpin":[32],"Component":[32],"spinEnd":[64]}]]],["es-modal_2",[[1,"es-modal",{"header":[4],"footer":[4]},[[0,"keyup","onEscape"]]],[1,"es-popover",{"popperClass":[1,"popper-class"],"target":[1],"open":[516],"backdrop":[4],"zIndex":[2,"z-index"],"arrow":[4],"trapFocus":[4,"trap-focus"],"closeOnBlur":[4,"close-on-blur"],"closeOnClickOutside":[4,"close-on-click-outside"],"closeOnEsc":[4,"close-on-esc"],"closeOnScrollEscape":[4,"close-on-scroll-escape"],"hideOnScrollEscape":[4,"hide-on-scroll-escape"],"attachTo":[16],"autoSize":[1,"auto-size"],"constrain":[1],"maxHeight":[2,"max-height"],"maxWidth":[2,"max-width"],"placement":[1],"flip":[4],"offset":[2]},[[4,"click","onClickOutside"],[6,"keydown","onEscPress"]]]]],["es-confirm-modal_2",[[1,"es-confirm-modal",{"preHeading":[1,"pre-heading"],"heading":[1],"body":[1],"warning":[1],"confirm":[1],"confirmVariant":[1,"confirm-variant"],"typeToConfirm":[1,"type-to-confirm"],"typed":[32],"copied":[32]}],[1,"es-portal",{"target":[1],"renderElement":[16],"open":[516],"backdrop":[4],"preventOverscroll":[4,"prevent-overscroll"],"attachElement":[64],"detatchElement":[64]}]]],["es-badge",[[1,"es-badge",{"variant":[1],"color":[1],"count":[2],"showZero":[4,"show-zero"],"size":[2]}]]]], options); | ||
}; | ||
@@ -14,0 +14,0 @@ |
@@ -13,4 +13,5 @@ import { type EventEmitter } from '../../../../stencil-public-runtime'; | ||
renderNode(node: RenderFunction): Promise<void>; | ||
private closingPromise?; | ||
close(): Promise<void>; | ||
private resolveClose?; | ||
close(): Promise<boolean>; | ||
cancelClose(): Promise<void>; | ||
componentDidLoad(): void; | ||
@@ -17,0 +18,0 @@ render(): any; |
@@ -12,2 +12,3 @@ export type { Components, JSX } from './components'; | ||
export type { ButtonVariant } from './components/buttons/types'; | ||
export type { ConfirmModalOptions } from './components/actions/es-action-with-confirmation/types'; | ||
export type { Constrain, Placement } from './components/es-popover/types'; | ||
@@ -19,1 +20,3 @@ export { toast } from './utils/toast'; | ||
export { LoadingText, type LoadingTextProps, } from './components/es-loading-text/LoadingText'; | ||
export { ActionDelete, type ActionDeleteProps, } from './components/actions/ActionDelete'; | ||
export { ActionCopy, type ActionCopyProps, } from './components/actions/ActionCopy'; |
{ | ||
"name": "@eventstore-ui/components", | ||
"version": "1.5.0", | ||
"version": "1.6.0", | ||
"description": "Core components for Event Store Design System", | ||
@@ -5,0 +5,0 @@ "license": "Apache-2.0", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
4294317
711
34581
46