@duskmoon-dev/el-chip 1.7.1 → 1.7.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +109 -35
- package/dist/cjs/index.js +159 -25
- package/dist/cjs/index.js.map +3 -3
- package/dist/cjs/register.js +159 -25
- package/dist/cjs/register.js.map +3 -3
- package/dist/esm/index.js +159 -25
- package/dist/esm/index.js.map +3 -3
- package/dist/esm/register.js +157 -23
- package/dist/esm/register.js.map +3 -3
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/el-dm-chip.d.ts +48 -5
- package/dist/types/el-dm-chip.d.ts.map +1 -1
- package/package.json +3 -3
package/dist/esm/index.js.map
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/el-dm-chip.ts", "../../src/index.ts"],
|
|
4
4
|
"sourcesContent": [
|
|
5
|
-
"/**\n * DuskMoon Chip Element\n *\n * A chip component for displaying tags, filters, or selections.\n * Uses styles from @duskmoon-dev/core for consistent theming.\n *\n * @element el-dm-chip\n *\n * @attr {string} variant - Chip variant: filled, outlined, soft\n * @attr {string} color - Chip color: primary, secondary, tertiary, success, warning, error, info\n * @attr {string} size - Chip size: sm, md, lg\n * @attr {boolean} deletable - Whether the chip shows a delete button\n * @attr {boolean} selected - Whether the chip is in selected state\n * @attr {boolean} disabled - Whether the chip is disabled\n *\n * @slot - Default slot for chip content\n * @slot icon - Slot for leading icon\n *\n * @csspart chip - The chip container\n * @csspart icon - The icon container\n * @csspart delete - The delete button\n *\n * @fires delete - Fired when delete button is clicked\n * @fires click - Fired when chip is clicked\n */\n\nimport { BaseElement, css } from '@duskmoon-dev/el-base';\nimport { css as chipCSS } from '@duskmoon-dev/core/components/chip';\n\nconst VARIANT_CLASSES: Record<string, string> = {\n filled: '',\n outlined: 'chip-outlined',\n soft: 'chip-soft',\n};\n\nconst COLOR_CLASSES: Record<string, string> = {\n primary: 'chip-primary',\n secondary: 'chip-secondary',\n tertiary: 'chip-tertiary',\n success: 'chip-success',\n warning: 'chip-warning',\n error: 'chip-error',\n info: 'chip-info',\n};\n\nconst SIZE_CLASSES: Record<string, string> = {\n sm: 'chip-sm',\n md: '',\n lg: 'chip-lg',\n};\n\nexport type ChipVariant = 'filled' | 'outlined' | 'soft';\nexport type ChipColor =\n 'primary' | 'secondary' | 'tertiary' | 'success' | 'warning' | 'error' | 'info';\nexport type ChipSize = 'sm' | 'md' | 'lg';\n\n// Strip @layer wrapper for Shadow DOM compatibility\nconst coreStyles = chipCSS.replace(/@layer\\s+components\\s*\\{/, '').replace(/\\}\\s*$/, '');\n\nconst styles = css`\n :host {\n display: inline-flex;\n vertical-align: middle;\n }\n\n :host([hidden]) {\n display: none !important;\n }\n\n ${coreStyles}\n\n .chip {\n font-family: inherit;\n display: inline-flex;\n align-items: center;\n gap: 0.375rem;\n padding: 0.25rem 0.75rem;\n border-radius: 9999px;\n font-size: 0.875rem;\n line-height: 1.25rem;\n cursor: pointer;\n transition: all 150ms ease;\n background-color: var(--color-surface-variant);\n color: var(--color-on-surface);\n border: 1px solid transparent;\n }\n\n .chip:hover {\n background-color: var(--color-surface-container);\n }\n\n .chip-sm {\n padding: 0.125rem 0.5rem;\n font-size: 0.75rem;\n }\n\n .chip-lg {\n padding: 0.375rem 1rem;\n font-size: 1rem;\n }\n\n .chip-outlined {\n background-color: transparent;\n border-color: var(--color-outline);\n }\n\n .chip-outlined:hover {\n background-color: var(--color-surface-variant);\n }\n\n .chip-primary {\n background-color: var(--color-primary);\n color: var(--color-on-primary);\n }\n\n .chip-secondary {\n background-color: var(--color-secondary);\n color: var(--color-on-secondary);\n }\n\n .chip-tertiary {\n background-color: var(--color-tertiary);\n color: var(--color-on-tertiary);\n }\n\n .chip-success {\n background-color: var(--color-success);\n color: var(--color-on-success);\n }\n\n .chip-warning {\n background-color: var(--color-warning);\n color: var(--color-on-warning);\n }\n\n .chip-error {\n background-color: var(--color-error);\n color: var(--color-on-error);\n }\n\n .chip-info {\n background-color: var(--color-info);\n color: var(--color-on-info);\n }\n\n .chip-selected {\n background-color: var(--color-primary);\n color: var(--color-on-primary);\n }\n\n :host([disabled]) .chip {\n opacity: 0.5;\n cursor: not-allowed;\n pointer-events: none;\n }\n\n .chip-icon {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 1rem;\n height: 1rem;\n }\n\n .chip-delete {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 1rem;\n height: 1rem;\n margin-left: 0.25rem;\n margin-right: -0.25rem;\n border-radius: 50%;\n cursor: pointer;\n opacity: 0.7;\n transition: opacity 150ms ease;\n }\n\n .chip-delete:hover {\n opacity: 1;\n }\n\n .chip-delete svg {\n width: 0.75rem;\n height: 0.75rem;\n }\n`;\n\nexport class ElDmChip extends BaseElement {\n static properties = {\n variant: { type: String, reflect: true, default: 'filled' },\n color: { type: String, reflect: true },\n size: { type: String, reflect: true },\n deletable: { type: Boolean, reflect: true },\n selected: { type: Boolean, reflect: true },\n disabled: { type: Boolean, reflect: true },\n };\n\n declare variant: ChipVariant;\n declare color: ChipColor;\n declare size: ChipSize;\n declare deletable: boolean;\n declare selected: boolean;\n declare disabled: boolean;\n\n constructor() {\n super();\n this.attachStyles(styles);\n }\n\n private _handleDelete(event: Event): void {\n event.stopPropagation();\n if (!this.disabled) {\n this.emit('delete');\n }\n }\n\n private _handleClick(): void {\n if (!this.disabled) {\n this.emit('click');\n }\n }\n\n private _getChipClasses(): string {\n const classes = ['chip'];\n\n if (this.variant && VARIANT_CLASSES[this.variant]) {\n classes.push(VARIANT_CLASSES[this.variant]);\n }\n\n if (this.color && COLOR_CLASSES[this.color]) {\n classes.push(COLOR_CLASSES[this.color]);\n }\n\n if (this.size && SIZE_CLASSES[this.size]) {\n classes.push(SIZE_CLASSES[this.size]);\n }\n\n if (this.selected) {\n classes.push('chip-selected');\n }\n\n return classes.join(' ');\n }\n\n render(): string {\n const chipClasses = this._getChipClasses();\n const deleteIcon = `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 20 20\" fill=\"currentColor\"><path fill-rule=\"evenodd\" d=\"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z\" clip-rule=\"evenodd\" /></svg>`;\n\n return `\n <span class=\"${chipClasses}\" part=\"chip\" role=\"${this.getAttribute('role') || 'button'}\" tabindex=\"0\"${this.selected ? ' aria-selected=\"true\"' : ''}>\n <span class=\"chip-icon\" part=\"icon\">\n <slot name=\"icon\"></slot>\n </span>\n <slot></slot>\n ${this.deletable ? `<span class=\"chip-delete\" part=\"delete\">${deleteIcon}</span>` : ''}\n </span>\n `;\n }\n\n update(): void {\n super.update();\n\n const chip = this.shadowRoot?.querySelector('.chip');\n chip?.addEventListener('click', this._handleClick.bind(this));\n\n const deleteBtn = this.shadowRoot?.querySelector('.chip-delete');\n deleteBtn?.addEventListener('click', this._handleDelete.bind(this));\n }\n}\n",
|
|
5
|
+
"/**\n * DuskMoon Chip Element\n *\n * A chip component for displaying tags, filters, or selections.\n * Uses styles from @duskmoon-dev/core for consistent theming.\n *\n * @element el-dm-chip\n *\n * @attr {string} variant - Chip variant: filled, outlined, soft\n * @attr {string} color - Chip color: primary, secondary, tertiary, success, warning, error, info\n * @attr {string} size - Chip size: sm, md, lg\n * @attr {string} href - Renders the chip as a semantic link\n * @attr {string} target - Link browsing context\n * @attr {string} rel - Link relationship\n * @attr {boolean} clickable - Renders the chip as an action button\n * @attr {boolean} selectable - Renders the chip as a toggle button\n * @attr {boolean} deletable - Whether the chip shows a delete button\n * @attr {string} delete-label - Accessible name for the delete button\n * @attr {boolean} selected - Whether the chip is in selected state\n * @attr {boolean} disabled - Whether the chip is disabled\n *\n * @slot - Default slot for chip content\n * @slot icon - Slot for leading icon\n *\n * @csspart chip - The chip container\n * @csspart icon - The icon container\n * @csspart delete - The delete button\n *\n * @fires dm-click - Fired when a clickable or linked chip is activated\n * @fires dm-change - Fired when a selectable chip changes state\n * @fires dm-delete - Fired when the delete button is activated\n * @fires delete - Deprecated alias for dm-delete\n * @fires click - Native click event from link and button modes\n */\n\nimport { BaseElement, css } from '@duskmoon-dev/el-base';\nimport { css as chipCSS } from '@duskmoon-dev/core/components/chip';\n\nconst VARIANT_CLASSES: Record<string, string> = {\n filled: '',\n outlined: 'chip-outlined',\n soft: 'chip-soft',\n};\n\nconst COLOR_CLASSES: Record<string, string> = {\n primary: 'chip-primary',\n secondary: 'chip-secondary',\n tertiary: 'chip-tertiary',\n success: 'chip-success',\n warning: 'chip-warning',\n error: 'chip-error',\n info: 'chip-info',\n};\n\nconst SIZE_CLASSES: Record<string, string> = {\n sm: 'chip-sm',\n md: '',\n lg: 'chip-lg',\n};\n\nconst DELETE_ICON = `<svg aria-hidden=\"true\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 20 20\" fill=\"currentColor\"><path fill-rule=\"evenodd\" d=\"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z\" clip-rule=\"evenodd\" /></svg>`;\n\nfunction escapeHtml(value: string): string {\n return value\n .replace(/&/g, '&')\n .replace(/</g, '<')\n .replace(/>/g, '>')\n .replace(/\"/g, '"')\n .replace(/'/g, ''');\n}\n\nfunction matchesSelector(target: EventTarget, selector: string): target is Element {\n return (\n typeof (target as Partial<Element>).matches === 'function' &&\n (target as Element).matches(selector)\n );\n}\n\nexport type ChipVariant = 'filled' | 'outlined' | 'soft';\nexport type ChipColor =\n 'primary' | 'secondary' | 'tertiary' | 'success' | 'warning' | 'error' | 'info';\nexport type ChipSize = 'sm' | 'md' | 'lg';\n\n// Strip @layer wrapper for Shadow DOM compatibility\nconst coreStyles = chipCSS.replace(/@layer\\s+components\\s*\\{/, '').replace(/\\}\\s*$/, '');\n\nconst styles = css`\n :host {\n display: inline-flex;\n vertical-align: middle;\n }\n\n :host([hidden]) {\n display: none !important;\n }\n\n ${coreStyles}\n\n .chip {\n font-family: inherit;\n display: inline-flex;\n align-items: center;\n gap: 0.375rem;\n padding: 0.25rem 0.75rem;\n border-radius: 9999px;\n font-size: 0.875rem;\n line-height: 1.25rem;\n cursor: default;\n transition: all 150ms ease;\n background-color: var(--color-surface-variant);\n color: var(--color-on-surface);\n border: 1px solid transparent;\n }\n\n a.chip,\n button.chip {\n appearance: none;\n text-decoration: none;\n }\n\n .chip-clickable {\n cursor: pointer;\n }\n\n a.chip:focus-visible,\n button.chip:focus-visible {\n outline: 2px solid var(--color-primary);\n outline-offset: 2px;\n box-shadow: none;\n }\n\n .chip:hover {\n background-color: var(--color-surface-container);\n }\n\n .chip-sm {\n padding: 0.125rem 0.5rem;\n font-size: 0.75rem;\n }\n\n .chip-lg {\n padding: 0.375rem 1rem;\n font-size: 1rem;\n }\n\n .chip-outlined {\n background-color: transparent;\n border-color: var(--color-outline);\n }\n\n .chip-outlined:hover {\n background-color: var(--color-surface-variant);\n }\n\n .chip-primary {\n background-color: var(--color-primary);\n color: var(--color-on-primary);\n }\n\n .chip-secondary {\n background-color: var(--color-secondary);\n color: var(--color-on-secondary);\n }\n\n .chip-tertiary {\n background-color: var(--color-tertiary);\n color: var(--color-on-tertiary);\n }\n\n .chip-success {\n background-color: var(--color-success);\n color: var(--color-on-success);\n }\n\n .chip-warning {\n background-color: var(--color-warning);\n color: var(--color-on-warning);\n }\n\n .chip-error {\n background-color: var(--color-error);\n color: var(--color-on-error);\n }\n\n .chip-info {\n background-color: var(--color-info);\n color: var(--color-on-info);\n }\n\n .chip-selected {\n background-color: var(--color-primary);\n color: var(--color-on-primary);\n }\n\n :host([disabled]) .chip {\n opacity: 0.5;\n cursor: not-allowed;\n pointer-events: none;\n }\n\n .chip-icon {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 1rem;\n height: 1rem;\n }\n\n .chip-delete {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 1.5rem;\n height: 1.5rem;\n padding: 0;\n margin-left: 0.25rem;\n margin-right: -0.25rem;\n border: 0;\n border-radius: 50%;\n background: transparent;\n color: inherit;\n font: inherit;\n cursor: pointer;\n opacity: 0.7;\n transition: opacity 150ms ease;\n }\n\n .chip-delete:hover {\n opacity: 1;\n }\n\n .chip-delete:focus-visible {\n outline: 2px solid currentColor;\n outline-offset: 2px;\n opacity: 1;\n }\n\n .chip-delete svg {\n width: 0.75rem;\n height: 0.75rem;\n }\n`;\n\nexport class ElDmChip extends BaseElement {\n static properties = {\n variant: { type: String, reflect: true, default: 'filled' },\n color: { type: String, reflect: true },\n size: { type: String, reflect: true },\n href: { type: String, reflect: true },\n target: { type: String, reflect: true },\n rel: { type: String, reflect: true },\n clickable: { type: Boolean, reflect: true },\n selectable: { type: Boolean, reflect: true },\n deletable: { type: Boolean, reflect: true },\n deleteLabel: {\n type: String,\n reflect: true,\n attribute: 'delete-label',\n default: 'Remove chip',\n },\n selected: { type: Boolean, reflect: true },\n disabled: { type: Boolean, reflect: true },\n };\n\n declare variant: ChipVariant;\n declare color: ChipColor;\n declare size: ChipSize;\n declare href: string | undefined;\n declare target: string | undefined;\n declare rel: string | undefined;\n declare clickable: boolean;\n declare selectable: boolean;\n declare deletable: boolean;\n declare deleteLabel: string;\n declare selected: boolean;\n declare disabled: boolean;\n\n constructor() {\n super();\n this.attachStyles(styles);\n }\n\n connectedCallback(): void {\n super.connectedCallback();\n this.shadowRoot.addEventListener('click', this._handleShadowClick);\n }\n\n disconnectedCallback(): void {\n this.shadowRoot.removeEventListener('click', this._handleShadowClick);\n super.disconnectedCallback();\n }\n\n private _handleShadowClick = (event: Event): void => {\n const eventPath = event.composedPath();\n const deleteButton = eventPath.find((target) => matchesSelector(target, '.chip-delete')) as\n HTMLButtonElement | undefined;\n\n if (deleteButton) {\n event.stopPropagation();\n if (this.disabled || deleteButton.disabled) return;\n\n this.emit('dm-delete');\n this.emit('delete');\n return;\n }\n\n const chip = eventPath.find((target) => matchesSelector(target, '.chip')) as\n HTMLElement | undefined;\n if (!chip) return;\n\n if (this.disabled) {\n event.preventDefault();\n event.stopPropagation();\n return;\n }\n\n if (this.deletable) return;\n\n if (this.hasAttribute('href')) {\n if (!this.emit('dm-click')) event.preventDefault();\n return;\n }\n\n if (this.selectable) {\n this.selected = !this.selected;\n this.emit('dm-change', { selected: this.selected });\n return;\n }\n\n if (this.clickable && !this.emit('dm-click')) event.preventDefault();\n };\n\n private _getChipClasses(): string {\n const classes = ['chip'];\n\n if (this.variant && VARIANT_CLASSES[this.variant]) {\n classes.push(VARIANT_CLASSES[this.variant]);\n }\n\n if (this.color && COLOR_CLASSES[this.color]) {\n classes.push(COLOR_CLASSES[this.color]);\n }\n\n if (this.size && SIZE_CLASSES[this.size]) {\n classes.push(SIZE_CLASSES[this.size]);\n }\n\n if (this.selected) {\n classes.push('chip-selected');\n }\n\n if (\n !this.disabled &&\n !this.deletable &&\n (this.hasAttribute('href') || this.selectable || this.clickable)\n ) {\n classes.push('chip-clickable');\n }\n\n return classes.join(' ');\n }\n\n private _renderContent(): string {\n return `\n <span class=\"chip-icon\" part=\"icon\">\n <slot name=\"icon\"></slot>\n </span>\n <slot></slot>\n `;\n }\n\n render(): string {\n const chipClasses = this._getChipClasses();\n const content = this._renderContent();\n\n if (this.deletable) {\n const deleteLabel = escapeHtml(this.deleteLabel || 'Remove chip');\n return `\n <span class=\"${chipClasses}\" part=\"chip\"${this.disabled ? ' aria-disabled=\"true\"' : ''}>\n ${content}\n <button\n class=\"chip-delete\"\n part=\"delete\"\n type=\"button\"\n aria-label=\"${deleteLabel}\"\n ${this.disabled ? 'disabled' : ''}\n >${DELETE_ICON}</button>\n </span>\n `;\n }\n\n if (this.hasAttribute('href')) {\n if (this.disabled) {\n return `\n <span class=\"${chipClasses}\" part=\"chip\" aria-disabled=\"true\">${content}</span>\n `;\n }\n\n const href = escapeHtml(this.href ?? '');\n const target = this.target ? ` target=\"${escapeHtml(this.target)}\"` : '';\n const rel = this.rel ? ` rel=\"${escapeHtml(this.rel)}\"` : '';\n return `\n <a class=\"${chipClasses}\" part=\"chip\" href=\"${href}\"${target}${rel}>${content}</a>\n `;\n }\n\n if (this.selectable) {\n return `\n <button\n class=\"${chipClasses}\"\n part=\"chip\"\n type=\"button\"\n aria-pressed=\"${this.selected ? 'true' : 'false'}\"\n ${this.disabled ? 'disabled' : ''}\n >${content}</button>\n `;\n }\n\n if (this.clickable) {\n return `\n <button\n class=\"${chipClasses}\"\n part=\"chip\"\n type=\"button\"\n ${this.disabled ? 'disabled' : ''}\n >${content}</button>\n `;\n }\n\n return `\n <span class=\"${chipClasses}\" part=\"chip\">\n ${content}\n </span>\n `;\n }\n\n protected override update(): void {\n const activeElement = this.shadowRoot.activeElement;\n const activeSelector = activeElement?.classList.contains('chip-delete')\n ? '.chip-delete'\n : activeElement?.matches('a.chip, button.chip')\n ? '.chip'\n : undefined;\n\n super.update();\n\n if (activeSelector) {\n this.shadowRoot.querySelector<HTMLElement>(activeSelector)?.focus();\n }\n }\n}\n",
|
|
6
6
|
"/**\n * @duskmoon-dev/el-chip\n *\n * DuskMoon Chip custom element\n */\n\nimport { ElDmChip } from './el-dm-chip.js';\n\nexport { ElDmChip };\nexport type { ChipVariant, ChipColor, ChipSize } from './el-dm-chip.js';\n\n/**\n * Register the el-dm-chip custom element\n *\n * @example\n * ```ts\n * import { register } from '@duskmoon-dev/el-chip';\n * register();\n * ```\n */\nexport function register(): void {\n if (!customElements.get('el-dm-chip')) {\n customElements.define('el-dm-chip', ElDmChip);\n }\n}\n"
|
|
7
7
|
],
|
|
8
|
-
"mappings": ";
|
|
9
|
-
"debugId": "
|
|
8
|
+
"mappings": ";AAmCA;AACA,gBAAS;AAET,IAAM,kBAA0C;AAAA,EAC9C,QAAQ;AAAA,EACR,UAAU;AA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WAAW,KAAK,GAAG,OAAO;AAAA,MAC1D,OAAO;AAAA,oBACO,kCAAkC,QAAQ,SAAS,OAAO;AAAA;AAAA,IAE1E;AAAA,IAEA,IAAI,KAAK,YAAY;AAAA,MACnB,OAAO;AAAA;AAAA,mBAEM;AAAA;AAAA;AAAA,0BAGO,KAAK,WAAW,SAAS;AAAA,YACvC,KAAK,WAAW,aAAa;AAAA,WAC9B;AAAA;AAAA,IAEP;AAAA,IAEA,IAAI,KAAK,WAAW;AAAA,MAClB,OAAO;AAAA;AAAA,mBAEM;AAAA;AAAA;AAAA,YAGP,KAAK,WAAW,aAAa;AAAA,WAC9B;AAAA;AAAA,IAEP;AAAA,IAEA,OAAO;AAAA,qBACU;AAAA,UACX;AAAA;AAAA;AAAA;AAAA,EAKW,MAAM,GAAS;AAAA,IAChC,MAAM,gBAAgB,KAAK,WAAW;AAAA,IACtC,MAAM,iBAAiB,eAAe,UAAU,SAAS,aAAa,IAClE,iBACA,eAAe,QAAQ,qBAAqB,IAC1C,UACA;AAAA,IAEN,MAAM,OAAO;AAAA,IAEb,IAAI,gBAAgB;AAAA,MAClB,KAAK,WAAW,cAA2B,cAAc,GAAG,MAAM;AAAA,IACpE;AAAA;AAEJ;;;AC9aO,SAAS,QAAQ,GAAS;AAAA,EAC/B,IAAI,CAAC,eAAe,IAAI,YAAY,GAAG;AAAA,IACrC,eAAe,OAAO,cAAc,QAAQ;AAAA,EAC9C;AAAA;",
|
|
9
|
+
"debugId": "86B68DAB1D4EA1DD64756E2164756E21",
|
|
10
10
|
"names": []
|
|
11
11
|
}
|
package/dist/esm/register.js
CHANGED
|
@@ -20,6 +20,13 @@ var SIZE_CLASSES = {
|
|
|
20
20
|
md: "",
|
|
21
21
|
lg: "chip-lg"
|
|
22
22
|
};
|
|
23
|
+
var DELETE_ICON = `<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor"><path fill-rule="evenodd" d="M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z" clip-rule="evenodd" /></svg>`;
|
|
24
|
+
function escapeHtml(value) {
|
|
25
|
+
return value.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
26
|
+
}
|
|
27
|
+
function matchesSelector(target, selector) {
|
|
28
|
+
return typeof target.matches === "function" && target.matches(selector);
|
|
29
|
+
}
|
|
23
30
|
var coreStyles = chipCSS.replace(/@layer\s+components\s*\{/, "").replace(/\}\s*$/, "");
|
|
24
31
|
var styles = css`
|
|
25
32
|
:host {
|
|
@@ -42,13 +49,30 @@ var styles = css`
|
|
|
42
49
|
border-radius: 9999px;
|
|
43
50
|
font-size: 0.875rem;
|
|
44
51
|
line-height: 1.25rem;
|
|
45
|
-
cursor:
|
|
52
|
+
cursor: default;
|
|
46
53
|
transition: all 150ms ease;
|
|
47
54
|
background-color: var(--color-surface-variant);
|
|
48
55
|
color: var(--color-on-surface);
|
|
49
56
|
border: 1px solid transparent;
|
|
50
57
|
}
|
|
51
58
|
|
|
59
|
+
a.chip,
|
|
60
|
+
button.chip {
|
|
61
|
+
appearance: none;
|
|
62
|
+
text-decoration: none;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.chip-clickable {
|
|
66
|
+
cursor: pointer;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
a.chip:focus-visible,
|
|
70
|
+
button.chip:focus-visible {
|
|
71
|
+
outline: 2px solid var(--color-primary);
|
|
72
|
+
outline-offset: 2px;
|
|
73
|
+
box-shadow: none;
|
|
74
|
+
}
|
|
75
|
+
|
|
52
76
|
.chip:hover {
|
|
53
77
|
background-color: var(--color-surface-container);
|
|
54
78
|
}
|
|
@@ -130,11 +154,16 @@ var styles = css`
|
|
|
130
154
|
display: flex;
|
|
131
155
|
align-items: center;
|
|
132
156
|
justify-content: center;
|
|
133
|
-
width:
|
|
134
|
-
height:
|
|
157
|
+
width: 1.5rem;
|
|
158
|
+
height: 1.5rem;
|
|
159
|
+
padding: 0;
|
|
135
160
|
margin-left: 0.25rem;
|
|
136
161
|
margin-right: -0.25rem;
|
|
162
|
+
border: 0;
|
|
137
163
|
border-radius: 50%;
|
|
164
|
+
background: transparent;
|
|
165
|
+
color: inherit;
|
|
166
|
+
font: inherit;
|
|
138
167
|
cursor: pointer;
|
|
139
168
|
opacity: 0.7;
|
|
140
169
|
transition: opacity 150ms ease;
|
|
@@ -144,6 +173,12 @@ var styles = css`
|
|
|
144
173
|
opacity: 1;
|
|
145
174
|
}
|
|
146
175
|
|
|
176
|
+
.chip-delete:focus-visible {
|
|
177
|
+
outline: 2px solid currentColor;
|
|
178
|
+
outline-offset: 2px;
|
|
179
|
+
opacity: 1;
|
|
180
|
+
}
|
|
181
|
+
|
|
147
182
|
.chip-delete svg {
|
|
148
183
|
width: 0.75rem;
|
|
149
184
|
height: 0.75rem;
|
|
@@ -155,7 +190,18 @@ class ElDmChip extends BaseElement {
|
|
|
155
190
|
variant: { type: String, reflect: true, default: "filled" },
|
|
156
191
|
color: { type: String, reflect: true },
|
|
157
192
|
size: { type: String, reflect: true },
|
|
193
|
+
href: { type: String, reflect: true },
|
|
194
|
+
target: { type: String, reflect: true },
|
|
195
|
+
rel: { type: String, reflect: true },
|
|
196
|
+
clickable: { type: Boolean, reflect: true },
|
|
197
|
+
selectable: { type: Boolean, reflect: true },
|
|
158
198
|
deletable: { type: Boolean, reflect: true },
|
|
199
|
+
deleteLabel: {
|
|
200
|
+
type: String,
|
|
201
|
+
reflect: true,
|
|
202
|
+
attribute: "delete-label",
|
|
203
|
+
default: "Remove chip"
|
|
204
|
+
},
|
|
159
205
|
selected: { type: Boolean, reflect: true },
|
|
160
206
|
disabled: { type: Boolean, reflect: true }
|
|
161
207
|
};
|
|
@@ -163,17 +209,48 @@ class ElDmChip extends BaseElement {
|
|
|
163
209
|
super();
|
|
164
210
|
this.attachStyles(styles);
|
|
165
211
|
}
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
212
|
+
connectedCallback() {
|
|
213
|
+
super.connectedCallback();
|
|
214
|
+
this.shadowRoot.addEventListener("click", this._handleShadowClick);
|
|
215
|
+
}
|
|
216
|
+
disconnectedCallback() {
|
|
217
|
+
this.shadowRoot.removeEventListener("click", this._handleShadowClick);
|
|
218
|
+
super.disconnectedCallback();
|
|
219
|
+
}
|
|
220
|
+
_handleShadowClick = (event) => {
|
|
221
|
+
const eventPath = event.composedPath();
|
|
222
|
+
const deleteButton = eventPath.find((target) => matchesSelector(target, ".chip-delete"));
|
|
223
|
+
if (deleteButton) {
|
|
224
|
+
event.stopPropagation();
|
|
225
|
+
if (this.disabled || deleteButton.disabled)
|
|
226
|
+
return;
|
|
227
|
+
this.emit("dm-delete");
|
|
169
228
|
this.emit("delete");
|
|
229
|
+
return;
|
|
170
230
|
}
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
231
|
+
const chip = eventPath.find((target) => matchesSelector(target, ".chip"));
|
|
232
|
+
if (!chip)
|
|
233
|
+
return;
|
|
234
|
+
if (this.disabled) {
|
|
235
|
+
event.preventDefault();
|
|
236
|
+
event.stopPropagation();
|
|
237
|
+
return;
|
|
175
238
|
}
|
|
176
|
-
|
|
239
|
+
if (this.deletable)
|
|
240
|
+
return;
|
|
241
|
+
if (this.hasAttribute("href")) {
|
|
242
|
+
if (!this.emit("dm-click"))
|
|
243
|
+
event.preventDefault();
|
|
244
|
+
return;
|
|
245
|
+
}
|
|
246
|
+
if (this.selectable) {
|
|
247
|
+
this.selected = !this.selected;
|
|
248
|
+
this.emit("dm-change", { selected: this.selected });
|
|
249
|
+
return;
|
|
250
|
+
}
|
|
251
|
+
if (this.clickable && !this.emit("dm-click"))
|
|
252
|
+
event.preventDefault();
|
|
253
|
+
};
|
|
177
254
|
_getChipClasses() {
|
|
178
255
|
const classes = ["chip"];
|
|
179
256
|
if (this.variant && VARIANT_CLASSES[this.variant]) {
|
|
@@ -188,27 +265,84 @@ class ElDmChip extends BaseElement {
|
|
|
188
265
|
if (this.selected) {
|
|
189
266
|
classes.push("chip-selected");
|
|
190
267
|
}
|
|
268
|
+
if (!this.disabled && !this.deletable && (this.hasAttribute("href") || this.selectable || this.clickable)) {
|
|
269
|
+
classes.push("chip-clickable");
|
|
270
|
+
}
|
|
191
271
|
return classes.join(" ");
|
|
192
272
|
}
|
|
273
|
+
_renderContent() {
|
|
274
|
+
return `
|
|
275
|
+
<span class="chip-icon" part="icon">
|
|
276
|
+
<slot name="icon"></slot>
|
|
277
|
+
</span>
|
|
278
|
+
<slot></slot>
|
|
279
|
+
`;
|
|
280
|
+
}
|
|
193
281
|
render() {
|
|
194
282
|
const chipClasses = this._getChipClasses();
|
|
195
|
-
const
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
283
|
+
const content = this._renderContent();
|
|
284
|
+
if (this.deletable) {
|
|
285
|
+
const deleteLabel = escapeHtml(this.deleteLabel || "Remove chip");
|
|
286
|
+
return `
|
|
287
|
+
<span class="${chipClasses}" part="chip"${this.disabled ? ' aria-disabled="true"' : ""}>
|
|
288
|
+
${content}
|
|
289
|
+
<button
|
|
290
|
+
class="chip-delete"
|
|
291
|
+
part="delete"
|
|
292
|
+
type="button"
|
|
293
|
+
aria-label="${deleteLabel}"
|
|
294
|
+
${this.disabled ? "disabled" : ""}
|
|
295
|
+
>${DELETE_ICON}</button>
|
|
200
296
|
</span>
|
|
201
|
-
|
|
202
|
-
|
|
297
|
+
`;
|
|
298
|
+
}
|
|
299
|
+
if (this.hasAttribute("href")) {
|
|
300
|
+
if (this.disabled) {
|
|
301
|
+
return `
|
|
302
|
+
<span class="${chipClasses}" part="chip" aria-disabled="true">${content}</span>
|
|
303
|
+
`;
|
|
304
|
+
}
|
|
305
|
+
const href = escapeHtml(this.href ?? "");
|
|
306
|
+
const target = this.target ? ` target="${escapeHtml(this.target)}"` : "";
|
|
307
|
+
const rel = this.rel ? ` rel="${escapeHtml(this.rel)}"` : "";
|
|
308
|
+
return `
|
|
309
|
+
<a class="${chipClasses}" part="chip" href="${href}"${target}${rel}>${content}</a>
|
|
310
|
+
`;
|
|
311
|
+
}
|
|
312
|
+
if (this.selectable) {
|
|
313
|
+
return `
|
|
314
|
+
<button
|
|
315
|
+
class="${chipClasses}"
|
|
316
|
+
part="chip"
|
|
317
|
+
type="button"
|
|
318
|
+
aria-pressed="${this.selected ? "true" : "false"}"
|
|
319
|
+
${this.disabled ? "disabled" : ""}
|
|
320
|
+
>${content}</button>
|
|
321
|
+
`;
|
|
322
|
+
}
|
|
323
|
+
if (this.clickable) {
|
|
324
|
+
return `
|
|
325
|
+
<button
|
|
326
|
+
class="${chipClasses}"
|
|
327
|
+
part="chip"
|
|
328
|
+
type="button"
|
|
329
|
+
${this.disabled ? "disabled" : ""}
|
|
330
|
+
>${content}</button>
|
|
331
|
+
`;
|
|
332
|
+
}
|
|
333
|
+
return `
|
|
334
|
+
<span class="${chipClasses}" part="chip">
|
|
335
|
+
${content}
|
|
203
336
|
</span>
|
|
204
337
|
`;
|
|
205
338
|
}
|
|
206
339
|
update() {
|
|
340
|
+
const activeElement = this.shadowRoot.activeElement;
|
|
341
|
+
const activeSelector = activeElement?.classList.contains("chip-delete") ? ".chip-delete" : activeElement?.matches("a.chip, button.chip") ? ".chip" : undefined;
|
|
207
342
|
super.update();
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
deleteBtn?.addEventListener("click", this._handleDelete.bind(this));
|
|
343
|
+
if (activeSelector) {
|
|
344
|
+
this.shadowRoot.querySelector(activeSelector)?.focus();
|
|
345
|
+
}
|
|
212
346
|
}
|
|
213
347
|
}
|
|
214
348
|
|
|
@@ -222,5 +356,5 @@ function register() {
|
|
|
222
356
|
// src/register.ts
|
|
223
357
|
register();
|
|
224
358
|
|
|
225
|
-
//# debugId=
|
|
359
|
+
//# debugId=669B63F79F1ED62064756E2164756E21
|
|
226
360
|
//# sourceMappingURL=register.js.map
|
package/dist/esm/register.js.map
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/el-dm-chip.ts", "../../src/index.ts", "../../src/register.ts"],
|
|
4
4
|
"sourcesContent": [
|
|
5
|
-
"/**\n * DuskMoon Chip Element\n *\n * A chip component for displaying tags, filters, or selections.\n * Uses styles from @duskmoon-dev/core for consistent theming.\n *\n * @element el-dm-chip\n *\n * @attr {string} variant - Chip variant: filled, outlined, soft\n * @attr {string} color - Chip color: primary, secondary, tertiary, success, warning, error, info\n * @attr {string} size - Chip size: sm, md, lg\n * @attr {boolean} deletable - Whether the chip shows a delete button\n * @attr {boolean} selected - Whether the chip is in selected state\n * @attr {boolean} disabled - Whether the chip is disabled\n *\n * @slot - Default slot for chip content\n * @slot icon - Slot for leading icon\n *\n * @csspart chip - The chip container\n * @csspart icon - The icon container\n * @csspart delete - The delete button\n *\n * @fires delete - Fired when delete button is clicked\n * @fires click - Fired when chip is clicked\n */\n\nimport { BaseElement, css } from '@duskmoon-dev/el-base';\nimport { css as chipCSS } from '@duskmoon-dev/core/components/chip';\n\nconst VARIANT_CLASSES: Record<string, string> = {\n filled: '',\n outlined: 'chip-outlined',\n soft: 'chip-soft',\n};\n\nconst COLOR_CLASSES: Record<string, string> = {\n primary: 'chip-primary',\n secondary: 'chip-secondary',\n tertiary: 'chip-tertiary',\n success: 'chip-success',\n warning: 'chip-warning',\n error: 'chip-error',\n info: 'chip-info',\n};\n\nconst SIZE_CLASSES: Record<string, string> = {\n sm: 'chip-sm',\n md: '',\n lg: 'chip-lg',\n};\n\nexport type ChipVariant = 'filled' | 'outlined' | 'soft';\nexport type ChipColor =\n 'primary' | 'secondary' | 'tertiary' | 'success' | 'warning' | 'error' | 'info';\nexport type ChipSize = 'sm' | 'md' | 'lg';\n\n// Strip @layer wrapper for Shadow DOM compatibility\nconst coreStyles = chipCSS.replace(/@layer\\s+components\\s*\\{/, '').replace(/\\}\\s*$/, '');\n\nconst styles = css`\n :host {\n display: inline-flex;\n vertical-align: middle;\n }\n\n :host([hidden]) {\n display: none !important;\n }\n\n ${coreStyles}\n\n .chip {\n font-family: inherit;\n display: inline-flex;\n align-items: center;\n gap: 0.375rem;\n padding: 0.25rem 0.75rem;\n border-radius: 9999px;\n font-size: 0.875rem;\n line-height: 1.25rem;\n cursor: pointer;\n transition: all 150ms ease;\n background-color: var(--color-surface-variant);\n color: var(--color-on-surface);\n border: 1px solid transparent;\n }\n\n .chip:hover {\n background-color: var(--color-surface-container);\n }\n\n .chip-sm {\n padding: 0.125rem 0.5rem;\n font-size: 0.75rem;\n }\n\n .chip-lg {\n padding: 0.375rem 1rem;\n font-size: 1rem;\n }\n\n .chip-outlined {\n background-color: transparent;\n border-color: var(--color-outline);\n }\n\n .chip-outlined:hover {\n background-color: var(--color-surface-variant);\n }\n\n .chip-primary {\n background-color: var(--color-primary);\n color: var(--color-on-primary);\n }\n\n .chip-secondary {\n background-color: var(--color-secondary);\n color: var(--color-on-secondary);\n }\n\n .chip-tertiary {\n background-color: var(--color-tertiary);\n color: var(--color-on-tertiary);\n }\n\n .chip-success {\n background-color: var(--color-success);\n color: var(--color-on-success);\n }\n\n .chip-warning {\n background-color: var(--color-warning);\n color: var(--color-on-warning);\n }\n\n .chip-error {\n background-color: var(--color-error);\n color: var(--color-on-error);\n }\n\n .chip-info {\n background-color: var(--color-info);\n color: var(--color-on-info);\n }\n\n .chip-selected {\n background-color: var(--color-primary);\n color: var(--color-on-primary);\n }\n\n :host([disabled]) .chip {\n opacity: 0.5;\n cursor: not-allowed;\n pointer-events: none;\n }\n\n .chip-icon {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 1rem;\n height: 1rem;\n }\n\n .chip-delete {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 1rem;\n height: 1rem;\n margin-left: 0.25rem;\n margin-right: -0.25rem;\n border-radius: 50%;\n cursor: pointer;\n opacity: 0.7;\n transition: opacity 150ms ease;\n }\n\n .chip-delete:hover {\n opacity: 1;\n }\n\n .chip-delete svg {\n width: 0.75rem;\n height: 0.75rem;\n }\n`;\n\nexport class ElDmChip extends BaseElement {\n static properties = {\n variant: { type: String, reflect: true, default: 'filled' },\n color: { type: String, reflect: true },\n size: { type: String, reflect: true },\n deletable: { type: Boolean, reflect: true },\n selected: { type: Boolean, reflect: true },\n disabled: { type: Boolean, reflect: true },\n };\n\n declare variant: ChipVariant;\n declare color: ChipColor;\n declare size: ChipSize;\n declare deletable: boolean;\n declare selected: boolean;\n declare disabled: boolean;\n\n constructor() {\n super();\n this.attachStyles(styles);\n }\n\n private _handleDelete(event: Event): void {\n event.stopPropagation();\n if (!this.disabled) {\n this.emit('delete');\n }\n }\n\n private _handleClick(): void {\n if (!this.disabled) {\n this.emit('click');\n }\n }\n\n private _getChipClasses(): string {\n const classes = ['chip'];\n\n if (this.variant && VARIANT_CLASSES[this.variant]) {\n classes.push(VARIANT_CLASSES[this.variant]);\n }\n\n if (this.color && COLOR_CLASSES[this.color]) {\n classes.push(COLOR_CLASSES[this.color]);\n }\n\n if (this.size && SIZE_CLASSES[this.size]) {\n classes.push(SIZE_CLASSES[this.size]);\n }\n\n if (this.selected) {\n classes.push('chip-selected');\n }\n\n return classes.join(' ');\n }\n\n render(): string {\n const chipClasses = this._getChipClasses();\n const deleteIcon = `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 20 20\" fill=\"currentColor\"><path fill-rule=\"evenodd\" d=\"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z\" clip-rule=\"evenodd\" /></svg>`;\n\n return `\n <span class=\"${chipClasses}\" part=\"chip\" role=\"${this.getAttribute('role') || 'button'}\" tabindex=\"0\"${this.selected ? ' aria-selected=\"true\"' : ''}>\n <span class=\"chip-icon\" part=\"icon\">\n <slot name=\"icon\"></slot>\n </span>\n <slot></slot>\n ${this.deletable ? `<span class=\"chip-delete\" part=\"delete\">${deleteIcon}</span>` : ''}\n </span>\n `;\n }\n\n update(): void {\n super.update();\n\n const chip = this.shadowRoot?.querySelector('.chip');\n chip?.addEventListener('click', this._handleClick.bind(this));\n\n const deleteBtn = this.shadowRoot?.querySelector('.chip-delete');\n deleteBtn?.addEventListener('click', this._handleDelete.bind(this));\n }\n}\n",
|
|
5
|
+
"/**\n * DuskMoon Chip Element\n *\n * A chip component for displaying tags, filters, or selections.\n * Uses styles from @duskmoon-dev/core for consistent theming.\n *\n * @element el-dm-chip\n *\n * @attr {string} variant - Chip variant: filled, outlined, soft\n * @attr {string} color - Chip color: primary, secondary, tertiary, success, warning, error, info\n * @attr {string} size - Chip size: sm, md, lg\n * @attr {string} href - Renders the chip as a semantic link\n * @attr {string} target - Link browsing context\n * @attr {string} rel - Link relationship\n * @attr {boolean} clickable - Renders the chip as an action button\n * @attr {boolean} selectable - Renders the chip as a toggle button\n * @attr {boolean} deletable - Whether the chip shows a delete button\n * @attr {string} delete-label - Accessible name for the delete button\n * @attr {boolean} selected - Whether the chip is in selected state\n * @attr {boolean} disabled - Whether the chip is disabled\n *\n * @slot - Default slot for chip content\n * @slot icon - Slot for leading icon\n *\n * @csspart chip - The chip container\n * @csspart icon - The icon container\n * @csspart delete - The delete button\n *\n * @fires dm-click - Fired when a clickable or linked chip is activated\n * @fires dm-change - Fired when a selectable chip changes state\n * @fires dm-delete - Fired when the delete button is activated\n * @fires delete - Deprecated alias for dm-delete\n * @fires click - Native click event from link and button modes\n */\n\nimport { BaseElement, css } from '@duskmoon-dev/el-base';\nimport { css as chipCSS } from '@duskmoon-dev/core/components/chip';\n\nconst VARIANT_CLASSES: Record<string, string> = {\n filled: '',\n outlined: 'chip-outlined',\n soft: 'chip-soft',\n};\n\nconst COLOR_CLASSES: Record<string, string> = {\n primary: 'chip-primary',\n secondary: 'chip-secondary',\n tertiary: 'chip-tertiary',\n success: 'chip-success',\n warning: 'chip-warning',\n error: 'chip-error',\n info: 'chip-info',\n};\n\nconst SIZE_CLASSES: Record<string, string> = {\n sm: 'chip-sm',\n md: '',\n lg: 'chip-lg',\n};\n\nconst DELETE_ICON = `<svg aria-hidden=\"true\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 20 20\" fill=\"currentColor\"><path fill-rule=\"evenodd\" d=\"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z\" clip-rule=\"evenodd\" /></svg>`;\n\nfunction escapeHtml(value: string): string {\n return value\n .replace(/&/g, '&')\n .replace(/</g, '<')\n .replace(/>/g, '>')\n .replace(/\"/g, '"')\n .replace(/'/g, ''');\n}\n\nfunction matchesSelector(target: EventTarget, selector: string): target is Element {\n return (\n typeof (target as Partial<Element>).matches === 'function' &&\n (target as Element).matches(selector)\n );\n}\n\nexport type ChipVariant = 'filled' | 'outlined' | 'soft';\nexport type ChipColor =\n 'primary' | 'secondary' | 'tertiary' | 'success' | 'warning' | 'error' | 'info';\nexport type ChipSize = 'sm' | 'md' | 'lg';\n\n// Strip @layer wrapper for Shadow DOM compatibility\nconst coreStyles = chipCSS.replace(/@layer\\s+components\\s*\\{/, '').replace(/\\}\\s*$/, '');\n\nconst styles = css`\n :host {\n display: inline-flex;\n vertical-align: middle;\n }\n\n :host([hidden]) {\n display: none !important;\n }\n\n ${coreStyles}\n\n .chip {\n font-family: inherit;\n display: inline-flex;\n align-items: center;\n gap: 0.375rem;\n padding: 0.25rem 0.75rem;\n border-radius: 9999px;\n font-size: 0.875rem;\n line-height: 1.25rem;\n cursor: default;\n transition: all 150ms ease;\n background-color: var(--color-surface-variant);\n color: var(--color-on-surface);\n border: 1px solid transparent;\n }\n\n a.chip,\n button.chip {\n appearance: none;\n text-decoration: none;\n }\n\n .chip-clickable {\n cursor: pointer;\n }\n\n a.chip:focus-visible,\n button.chip:focus-visible {\n outline: 2px solid var(--color-primary);\n outline-offset: 2px;\n box-shadow: none;\n }\n\n .chip:hover {\n background-color: var(--color-surface-container);\n }\n\n .chip-sm {\n padding: 0.125rem 0.5rem;\n font-size: 0.75rem;\n }\n\n .chip-lg {\n padding: 0.375rem 1rem;\n font-size: 1rem;\n }\n\n .chip-outlined {\n background-color: transparent;\n border-color: var(--color-outline);\n }\n\n .chip-outlined:hover {\n background-color: var(--color-surface-variant);\n }\n\n .chip-primary {\n background-color: var(--color-primary);\n color: var(--color-on-primary);\n }\n\n .chip-secondary {\n background-color: var(--color-secondary);\n color: var(--color-on-secondary);\n }\n\n .chip-tertiary {\n background-color: var(--color-tertiary);\n color: var(--color-on-tertiary);\n }\n\n .chip-success {\n background-color: var(--color-success);\n color: var(--color-on-success);\n }\n\n .chip-warning {\n background-color: var(--color-warning);\n color: var(--color-on-warning);\n }\n\n .chip-error {\n background-color: var(--color-error);\n color: var(--color-on-error);\n }\n\n .chip-info {\n background-color: var(--color-info);\n color: var(--color-on-info);\n }\n\n .chip-selected {\n background-color: var(--color-primary);\n color: var(--color-on-primary);\n }\n\n :host([disabled]) .chip {\n opacity: 0.5;\n cursor: not-allowed;\n pointer-events: none;\n }\n\n .chip-icon {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 1rem;\n height: 1rem;\n }\n\n .chip-delete {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 1.5rem;\n height: 1.5rem;\n padding: 0;\n margin-left: 0.25rem;\n margin-right: -0.25rem;\n border: 0;\n border-radius: 50%;\n background: transparent;\n color: inherit;\n font: inherit;\n cursor: pointer;\n opacity: 0.7;\n transition: opacity 150ms ease;\n }\n\n .chip-delete:hover {\n opacity: 1;\n }\n\n .chip-delete:focus-visible {\n outline: 2px solid currentColor;\n outline-offset: 2px;\n opacity: 1;\n }\n\n .chip-delete svg {\n width: 0.75rem;\n height: 0.75rem;\n }\n`;\n\nexport class ElDmChip extends BaseElement {\n static properties = {\n variant: { type: String, reflect: true, default: 'filled' },\n color: { type: String, reflect: true },\n size: { type: String, reflect: true },\n href: { type: String, reflect: true },\n target: { type: String, reflect: true },\n rel: { type: String, reflect: true },\n clickable: { type: Boolean, reflect: true },\n selectable: { type: Boolean, reflect: true },\n deletable: { type: Boolean, reflect: true },\n deleteLabel: {\n type: String,\n reflect: true,\n attribute: 'delete-label',\n default: 'Remove chip',\n },\n selected: { type: Boolean, reflect: true },\n disabled: { type: Boolean, reflect: true },\n };\n\n declare variant: ChipVariant;\n declare color: ChipColor;\n declare size: ChipSize;\n declare href: string | undefined;\n declare target: string | undefined;\n declare rel: string | undefined;\n declare clickable: boolean;\n declare selectable: boolean;\n declare deletable: boolean;\n declare deleteLabel: string;\n declare selected: boolean;\n declare disabled: boolean;\n\n constructor() {\n super();\n this.attachStyles(styles);\n }\n\n connectedCallback(): void {\n super.connectedCallback();\n this.shadowRoot.addEventListener('click', this._handleShadowClick);\n }\n\n disconnectedCallback(): void {\n this.shadowRoot.removeEventListener('click', this._handleShadowClick);\n super.disconnectedCallback();\n }\n\n private _handleShadowClick = (event: Event): void => {\n const eventPath = event.composedPath();\n const deleteButton = eventPath.find((target) => matchesSelector(target, '.chip-delete')) as\n HTMLButtonElement | undefined;\n\n if (deleteButton) {\n event.stopPropagation();\n if (this.disabled || deleteButton.disabled) return;\n\n this.emit('dm-delete');\n this.emit('delete');\n return;\n }\n\n const chip = eventPath.find((target) => matchesSelector(target, '.chip')) as\n HTMLElement | undefined;\n if (!chip) return;\n\n if (this.disabled) {\n event.preventDefault();\n event.stopPropagation();\n return;\n }\n\n if (this.deletable) return;\n\n if (this.hasAttribute('href')) {\n if (!this.emit('dm-click')) event.preventDefault();\n return;\n }\n\n if (this.selectable) {\n this.selected = !this.selected;\n this.emit('dm-change', { selected: this.selected });\n return;\n }\n\n if (this.clickable && !this.emit('dm-click')) event.preventDefault();\n };\n\n private _getChipClasses(): string {\n const classes = ['chip'];\n\n if (this.variant && VARIANT_CLASSES[this.variant]) {\n classes.push(VARIANT_CLASSES[this.variant]);\n }\n\n if (this.color && COLOR_CLASSES[this.color]) {\n classes.push(COLOR_CLASSES[this.color]);\n }\n\n if (this.size && SIZE_CLASSES[this.size]) {\n classes.push(SIZE_CLASSES[this.size]);\n }\n\n if (this.selected) {\n classes.push('chip-selected');\n }\n\n if (\n !this.disabled &&\n !this.deletable &&\n (this.hasAttribute('href') || this.selectable || this.clickable)\n ) {\n classes.push('chip-clickable');\n }\n\n return classes.join(' ');\n }\n\n private _renderContent(): string {\n return `\n <span class=\"chip-icon\" part=\"icon\">\n <slot name=\"icon\"></slot>\n </span>\n <slot></slot>\n `;\n }\n\n render(): string {\n const chipClasses = this._getChipClasses();\n const content = this._renderContent();\n\n if (this.deletable) {\n const deleteLabel = escapeHtml(this.deleteLabel || 'Remove chip');\n return `\n <span class=\"${chipClasses}\" part=\"chip\"${this.disabled ? ' aria-disabled=\"true\"' : ''}>\n ${content}\n <button\n class=\"chip-delete\"\n part=\"delete\"\n type=\"button\"\n aria-label=\"${deleteLabel}\"\n ${this.disabled ? 'disabled' : ''}\n >${DELETE_ICON}</button>\n </span>\n `;\n }\n\n if (this.hasAttribute('href')) {\n if (this.disabled) {\n return `\n <span class=\"${chipClasses}\" part=\"chip\" aria-disabled=\"true\">${content}</span>\n `;\n }\n\n const href = escapeHtml(this.href ?? '');\n const target = this.target ? ` target=\"${escapeHtml(this.target)}\"` : '';\n const rel = this.rel ? ` rel=\"${escapeHtml(this.rel)}\"` : '';\n return `\n <a class=\"${chipClasses}\" part=\"chip\" href=\"${href}\"${target}${rel}>${content}</a>\n `;\n }\n\n if (this.selectable) {\n return `\n <button\n class=\"${chipClasses}\"\n part=\"chip\"\n type=\"button\"\n aria-pressed=\"${this.selected ? 'true' : 'false'}\"\n ${this.disabled ? 'disabled' : ''}\n >${content}</button>\n `;\n }\n\n if (this.clickable) {\n return `\n <button\n class=\"${chipClasses}\"\n part=\"chip\"\n type=\"button\"\n ${this.disabled ? 'disabled' : ''}\n >${content}</button>\n `;\n }\n\n return `\n <span class=\"${chipClasses}\" part=\"chip\">\n ${content}\n </span>\n `;\n }\n\n protected override update(): void {\n const activeElement = this.shadowRoot.activeElement;\n const activeSelector = activeElement?.classList.contains('chip-delete')\n ? '.chip-delete'\n : activeElement?.matches('a.chip, button.chip')\n ? '.chip'\n : undefined;\n\n super.update();\n\n if (activeSelector) {\n this.shadowRoot.querySelector<HTMLElement>(activeSelector)?.focus();\n }\n }\n}\n",
|
|
6
6
|
"/**\n * @duskmoon-dev/el-chip\n *\n * DuskMoon Chip custom element\n */\n\nimport { ElDmChip } from './el-dm-chip.js';\n\nexport { ElDmChip };\nexport type { ChipVariant, ChipColor, ChipSize } from './el-dm-chip.js';\n\n/**\n * Register the el-dm-chip custom element\n *\n * @example\n * ```ts\n * import { register } from '@duskmoon-dev/el-chip';\n * register();\n * ```\n */\nexport function register(): void {\n if (!customElements.get('el-dm-chip')) {\n customElements.define('el-dm-chip', ElDmChip);\n }\n}\n",
|
|
7
7
|
"import { register } from './index.js';\nregister();\n"
|
|
8
8
|
],
|
|
9
|
-
"mappings": ";
|
|
10
|
-
"debugId": "
|
|
9
|
+
"mappings": ";AAmCA;AACA,gBAAS;AAET,IAAM,kBAA0C;AAAA,EAC9C,QAAQ;AAAA,EACR,UAAU;AAAA,EACV,MAAM;AACR;AAEA,IAAM,gBAAwC;AAAA,EAC5C,SAAS;AAAA,EACT,WAAW;AAAA,EACX,UAAU;AAAA,EACV,SAAS;AAAA,EACT,SAAS;AAAA,EACT,OAAO;AAAA,EACP,MAAM;AACR;AAEA,IAAM,eAAuC;AAAA,EAC3C,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AACN;AAEA,IAAM,cAAc;AAEpB,SAAS,UAAU,CAAC,OAAuB;AAAA,E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W;AAAA,MAClB,OAAO;AAAA;AAAA,mBAEM;AAAA;AAAA;AAAA,YAGP,KAAK,WAAW,aAAa;AAAA,WAC9B;AAAA;AAAA,IAEP;AAAA,IAEA,OAAO;AAAA,qBACU;AAAA,UACX;AAAA;AAAA;AAAA;AAAA,EAKW,MAAM,GAAS;AAAA,IAChC,MAAM,gBAAgB,KAAK,WAAW;AAAA,IACtC,MAAM,iBAAiB,eAAe,UAAU,SAAS,aAAa,IAClE,iBACA,eAAe,QAAQ,qBAAqB,IAC1C,UACA;AAAA,IAEN,MAAM,OAAO;AAAA,IAEb,IAAI,gBAAgB;AAAA,MAClB,KAAK,WAAW,cAA2B,cAAc,GAAG,MAAM;AAAA,IACpE;AAAA;AAEJ;;;AC9aO,SAAS,QAAQ,GAAS;AAAA,EAC/B,IAAI,CAAC,eAAe,IAAI,YAAY,GAAG;AAAA,IACrC,eAAe,OAAO,cAAc,QAAQ;AAAA,EAC9C;AAAA;;;ACtBF,SAAS;",
|
|
10
|
+
"debugId": "669B63F79F1ED62064756E2164756E21",
|
|
11
11
|
"names": []
|
|
12
12
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"fileNames":["../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2021.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2022.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.dom.iterable.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2017.date.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2020.date.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2020.number.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2021.string.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2022.array.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2022.error.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2022.object.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2022.string.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.decorators.legacy.d.ts","../src/duskmoon-core.d.ts","../../../packages/base/dist/types/base-element.d.ts","../../../packages/base/dist/types/styles.d.ts","../../../packages/base/dist/types/animations.d.ts","../../../packages/base/dist/types/themes.d.ts","../../../packages/base/dist/types/mixins.d.ts","../../../packages/base/dist/types/types.d.ts","../../../packages/base/dist/types/validation.d.ts","../../../packages/base/dist/types/performance.d.ts","../../../packages/base/dist/types/index.d.ts","../src/el-dm-chip.ts","../src/index.ts","../src/register.ts"],"fileIdsList":[[60,69],[70],[71],[61,62,63,64,65,66,67,68],[61],[66]],"fileInfos":[{"version":"bcd24271a113971ba9eb71ff8cb01bc6b0f872a85c23fdbe5d93065b375933cd","affectsGlobalScope":true,"impliedFormat":1},{"version":"3f88bedbeb09c6f5a6645cb24c7c55f1aa22d19ae96c8e6959cbd8b85a707bc6","impliedFormat":1},{"version":"7fe93b39b810eadd916be8db880dd7f0f7012a5cc6ffb62de8f62a2117fa6f1f","impliedFormat":1},{"version":"bb0074cc08b84a2374af33d8bf044b80851ccc9e719a5e202eacf40db2c31600","impliedFormat":1},{"version":"1a7daebe4f45fb03d9ec53d60008fbf9ac45a697fdc89e4ce218bc94b94f94d6","impliedFormat":1},{"version":"f94b133a3cb14a288803be545ac2683e0d0ff6661bcd37e31aaaec54fc382aed","impliedFormat":1},{"version":"f59d0650799f8782fd74cf73c19223730c6d1b9198671b1c5b3a38e1188b5953","impliedFormat":1},{"version":"8a15b4607d9a499e2dbeed9ec0d3c0d7372c850b2d5f1fb259e8f6d41d468a84","impliedFormat":1},{"version":"26e0fe14baee4e127f4365d1ae0b276f400562e45e19e35fd2d4c296684715e6","impliedFormat":1},{"version":"d6b1eba8496bdd0eed6fc8a685768fe01b2da4a0388b5fe7df558290bffcf32f","affectsGlobalScope":true,"impliedFormat":1},{"version":"7f57fc4404ff020bc45b9c620aff2b40f700b95fe31164024c453a5e3c163c54","impliedFormat":1},{"version":"eadcffda2aa84802c73938e589b9e58248d74c59cb7fcbca6474e3435ac15504","affectsGlobalScope":true,"impliedFormat":1},{"version":"105ba8ff7ba746404fe1a2e189d1d3d2e0eb29a08c18dded791af02f29fb4711","affectsGlobalScope":true,"impliedFormat":1},{"version":"00343ca5b2e3d48fa5df1db6e32ea2a59afab09590274a6cccb1dbae82e60c7c","affectsGlobalScope":true,"impliedFormat":1},{"version":"ebd9f816d4002697cb2864bea1f0b70a103124e18a8cd9645eeccc09bdf80ab4","affectsGlobalScope":true,"impliedFormat":1},{"version":"2c1afac30a01772cd2a9a298a7ce7706b5892e447bb46bdbeef720f7b5da77ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"7b0225f483e4fa685625ebe43dd584bb7973bbd84e66a6ba7bbe175ee1048b4f","affectsGlobalScope":true,"impliedFormat":1},{"version":"c0a4b8ac6ce74679c1da2b3795296f5896e31c38e888469a8e0f99dc3305de60","affectsGlobalScope":true,"impliedFormat":1},{"version":"3084a7b5f569088e0146533a00830e206565de65cae2239509168b11434cd84f","affectsGlobalScope":true,"impliedFormat":1},{"version":"c5079c53f0f141a0698faa903e76cb41cd664e3efb01cc17a5c46ec2eb0bef42","affectsGlobalScope":true,"impliedFormat":1},{"version":"32cafbc484dea6b0ab62cf8473182bbcb23020d70845b406f80b7526f38ae862","affectsGlobalScope":true,"impliedFormat":1},{"version":"fca4cdcb6d6c5ef18a869003d02c9f0fd95df8cfaf6eb431cd3376bc034cad36","affectsGlobalScope":true,"impliedFormat":1},{"version":"b93ec88115de9a9dc1b602291b85baf825c85666bf25985cc5f698073892b467","affectsGlobalScope":true,"impliedFormat":1},{"version":"f5c06dcc3fe849fcb297c247865a161f995cc29de7aa823afdd75aaaddc1419b","affectsGlobalScope":true,"impliedFormat":1},{"version":"b77e16112127a4b169ef0b8c3a4d730edf459c5f25fe52d5e436a6919206c4d7","affectsGlobalScope":true,"impliedFormat":1},{"version":"fbffd9337146eff822c7c00acbb78b01ea7ea23987f6c961eba689349e744f8c","affectsGlobalScope":true,"impliedFormat":1},{"version":"a995c0e49b721312f74fdfb89e4ba29bd9824c770bbb4021d74d2bf560e4c6bd","affectsGlobalScope":true,"impliedFormat":1},{"version":"c7b3542146734342e440a84b213384bfa188835537ddbda50d30766f0593aff9","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce6180fa19b1cccd07ee7f7dbb9a367ac19c0ed160573e4686425060b6df7f57","affectsGlobalScope":true,"impliedFormat":1},{"version":"3f02e2476bccb9dbe21280d6090f0df17d2f66b74711489415a8aa4df73c9675","affectsGlobalScope":true,"impliedFormat":1},{"version":"45e3ab34c1c013c8ab2dc1ba4c80c780744b13b5676800ae2e3be27ae862c40c","affectsGlobalScope":true,"impliedFormat":1},{"version":"805c86f6cca8d7702a62a844856dbaa2a3fd2abef0536e65d48732441dde5b5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"e42e397f1a5a77994f0185fd1466520691456c772d06bf843e5084ceb879a0ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"f4c2b41f90c95b1c532ecc874bd3c111865793b23aebcc1c3cbbabcd5d76ffb0","affectsGlobalScope":true,"impliedFormat":1},{"version":"ab26191cfad5b66afa11b8bf935ef1cd88fabfcb28d30b2dfa6fad877d050332","affectsGlobalScope":true,"impliedFormat":1},{"version":"2088bc26531e38fb05eedac2951480db5309f6be3fa4a08d2221abb0f5b4200d","affectsGlobalScope":true,"impliedFormat":1},{"version":"cb9d366c425fea79716a8fb3af0d78e6b22ebbab3bd64d25063b42dc9f531c1e","affectsGlobalScope":true,"impliedFormat":1},{"version":"500934a8089c26d57ebdb688fc9757389bb6207a3c8f0674d68efa900d2abb34","affectsGlobalScope":true,"impliedFormat":1},{"version":"689da16f46e647cef0d64b0def88910e818a5877ca5379ede156ca3afb780ac3","affectsGlobalScope":true,"impliedFormat":1},{"version":"bc21cc8b6fee4f4c2440d08035b7ea3c06b3511314c8bab6bef7a92de58a2593","affectsGlobalScope":true,"impliedFormat":1},{"version":"7ca53d13d2957003abb47922a71866ba7cb2068f8d154877c596d63c359fed25","affectsGlobalScope":true,"impliedFormat":1},{"version":"54725f8c4df3d900cb4dac84b64689ce29548da0b4e9b7c2de61d41c79293611","affectsGlobalScope":true,"impliedFormat":1},{"version":"e5594bc3076ac29e6c1ebda77939bc4c8833de72f654b6e376862c0473199323","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f3eb332c2d73e729f3364fcc0c2b375e72a121e8157d25a82d67a138c83a95c","affectsGlobalScope":true,"impliedFormat":1},{"version":"6f4427f9642ce8d500970e4e69d1397f64072ab73b97e476b4002a646ac743b1","affectsGlobalScope":true,"impliedFormat":1},{"version":"48915f327cd1dea4d7bd358d9dc7732f58f9e1626a29cc0c05c8c692419d9bb7","affectsGlobalScope":true,"impliedFormat":1},{"version":"b7bf9377723203b5a6a4b920164df22d56a43f593269ba6ae1fdc97774b68855","affectsGlobalScope":true,"impliedFormat":1},{"version":"db9709688f82c9e5f65a119c64d835f906efe5f559d08b11642d56eb85b79357","affectsGlobalScope":true,"impliedFormat":1},{"version":"4b25b8c874acd1a4cf8444c3617e037d444d19080ac9f634b405583fd10ce1f7","affectsGlobalScope":true,"impliedFormat":1},{"version":"37be57d7c90cf1f8112ee2636a068d8fd181289f82b744160ec56a7dc158a9f5","affectsGlobalScope":true,"impliedFormat":1},{"version":"a917a49ac94cd26b754ab84e113369a75d1a47a710661d7cd25e961cc797065f","affectsGlobalScope":true,"impliedFormat":1},{"version":"6d3261badeb7843d157ef3e6f5d1427d0eeb0af0cf9df84a62cfd29fd47ac86e","affectsGlobalScope":true,"impliedFormat":1},{"version":"195daca651dde22f2167ac0d0a05e215308119a3100f5e6268e8317d05a92526","affectsGlobalScope":true,"impliedFormat":1},{"version":"8b11e4285cd2bb164a4dc09248bdec69e9842517db4ca47c1ba913011e44ff2f","affectsGlobalScope":true,"impliedFormat":1},{"version":"0508571a52475e245b02bc50fa1394065a0a3d05277fbf5120c3784b85651799","affectsGlobalScope":true,"impliedFormat":1},{"version":"8f9af488f510c3015af3cc8c267a9e9d96c4dd38a1fdff0e11dc5a544711415b","affectsGlobalScope":true,"impliedFormat":1},{"version":"fc611fea8d30ea72c6bbfb599c9b4d393ce22e2f5bfef2172534781e7d138104","affectsGlobalScope":true,"impliedFormat":1},{"version":"1ce14b81c5cc821994aa8ec1d42b220dd41b27fcc06373bce3958af7421b77d4","affectsGlobalScope":true,"impliedFormat":1},{"version":"b3a048b3e9302ef9a34ef4ebb9aecfb28b66abb3bce577206a79fee559c230da","affectsGlobalScope":true,"impliedFormat":1},"71da7e461911aa567758f53e15ecb954b1d2bcfd1f96b9fe3757858dcdfc3bd7","42526b6de804c10fd86f1cf55a6c660a74ee448e381f0f78356f223b75982280","28914adcfb92fa94199e1c887da7d67a7d9d736d9571627d6b02e55ff82f577b","b0a69607a92876948c2a42e3aa6703b0d724699468ed7e3c6e2a237d119a9db9","cdacb8e4ac607a46494d1187e073382c43e7269e8bf698502a285a8ccb470925","f5091ebbd718ea236a7f503df569deb07aff0621aa8f73ed90e419de88f006aa","d3a328c0eccf652bc8b6c14515a8b848a558b9d684e15a7c0c2e15de5016df57","1b5193795ee478857bf1115fed004151284dd4da883a5a4f22e62631c3b414ad","3be01044afc63501423c361deb531d3e95f5c2677f1f7a628802bd346988d62c","78d8d1ca7d54a437702c8a8c08764b6a49f2cf2ca357d0e459bfe89a06abf50a",{"version":"0b1e3e2ecb8e4498694c2bbac710c0132d5c42da699f9c011ace513af24caff5","signature":"aaeafe9caa61776eb1e4c30b10c586a81d4f7cc87be04cc2b4838d06ef19a4c5"},{"version":"f93d922485ce4c8e4423ed50f668a03f386dcc750c87d83a71e92f407f486867","signature":"fac71ba9670e161371b74c0183a0a47352b3388a92d2154083532e4179b121f1"},{"version":"523786b383c76f3df2cd370f5c61009bc1565e3e65a37ff3865efb0923e06052","signature":"8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881"}],"root":[60,[70,72]],"options":{"composite":true,"declaration":true,"declarationMap":true,"emitDeclarationOnly":true,"esModuleInterop":true,"module":99,"outDir":"./types","rootDir":"../src","skipLibCheck":true,"sourceMap":true,"strict":true,"target":9},"referencedMap":[[70,1],[71,2],[72,3],[69,4],[65,5],[67,6]],"latestChangedDtsFile":"./types/register.d.ts","version":"6.0.3"}
|
|
1
|
+
{"fileNames":["../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2021.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2022.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.dom.iterable.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2017.date.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2020.date.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2020.number.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2021.string.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2022.array.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2022.error.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2022.object.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2022.string.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.decorators.legacy.d.ts","../src/duskmoon-core.d.ts","../../../packages/base/dist/types/base-element.d.ts","../../../packages/base/dist/types/styles.d.ts","../../../packages/base/dist/types/animations.d.ts","../../../packages/base/dist/types/themes.d.ts","../../../packages/base/dist/types/mixins.d.ts","../../../packages/base/dist/types/types.d.ts","../../../packages/base/dist/types/validation.d.ts","../../../packages/base/dist/types/performance.d.ts","../../../packages/base/dist/types/index.d.ts","../src/el-dm-chip.ts","../src/index.ts","../src/register.ts"],"fileIdsList":[[60,69],[70],[71],[61,62,63,64,65,66,67,68],[61],[66]],"fileInfos":[{"version":"bcd24271a113971ba9eb71ff8cb01bc6b0f872a85c23fdbe5d93065b375933cd","affectsGlobalScope":true,"impliedFormat":1},{"version":"3f88bedbeb09c6f5a6645cb24c7c55f1aa22d19ae96c8e6959cbd8b85a707bc6","impliedFormat":1},{"version":"7fe93b39b810eadd916be8db880dd7f0f7012a5cc6ffb62de8f62a2117fa6f1f","impliedFormat":1},{"version":"bb0074cc08b84a2374af33d8bf044b80851ccc9e719a5e202eacf40db2c31600","impliedFormat":1},{"version":"1a7daebe4f45fb03d9ec53d60008fbf9ac45a697fdc89e4ce218bc94b94f94d6","impliedFormat":1},{"version":"f94b133a3cb14a288803be545ac2683e0d0ff6661bcd37e31aaaec54fc382aed","impliedFormat":1},{"version":"f59d0650799f8782fd74cf73c19223730c6d1b9198671b1c5b3a38e1188b5953","impliedFormat":1},{"version":"8a15b4607d9a499e2dbeed9ec0d3c0d7372c850b2d5f1fb259e8f6d41d468a84","impliedFormat":1},{"version":"26e0fe14baee4e127f4365d1ae0b276f400562e45e19e35fd2d4c296684715e6","impliedFormat":1},{"version":"d6b1eba8496bdd0eed6fc8a685768fe01b2da4a0388b5fe7df558290bffcf32f","affectsGlobalScope":true,"impliedFormat":1},{"version":"7f57fc4404ff020bc45b9c620aff2b40f700b95fe31164024c453a5e3c163c54","impliedFormat":1},{"version":"eadcffda2aa84802c73938e589b9e58248d74c59cb7fcbca6474e3435ac15504","affectsGlobalScope":true,"impliedFormat":1},{"version":"105ba8ff7ba746404fe1a2e189d1d3d2e0eb29a08c18dded791af02f29fb4711","affectsGlobalScope":true,"impliedFormat":1},{"version":"00343ca5b2e3d48fa5df1db6e32ea2a59afab09590274a6cccb1dbae82e60c7c","affectsGlobalScope":true,"impliedFormat":1},{"version":"ebd9f816d4002697cb2864bea1f0b70a103124e18a8cd9645eeccc09bdf80ab4","affectsGlobalScope":true,"impliedFormat":1},{"version":"2c1afac30a01772cd2a9a298a7ce7706b5892e447bb46bdbeef720f7b5da77ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"7b0225f483e4fa685625ebe43dd584bb7973bbd84e66a6ba7bbe175ee1048b4f","affectsGlobalScope":true,"impliedFormat":1},{"version":"c0a4b8ac6ce74679c1da2b3795296f5896e31c38e888469a8e0f99dc3305de60","affectsGlobalScope":true,"impliedFormat":1},{"version":"3084a7b5f569088e0146533a00830e206565de65cae2239509168b11434cd84f","affectsGlobalScope":true,"impliedFormat":1},{"version":"c5079c53f0f141a0698faa903e76cb41cd664e3efb01cc17a5c46ec2eb0bef42","affectsGlobalScope":true,"impliedFormat":1},{"version":"32cafbc484dea6b0ab62cf8473182bbcb23020d70845b406f80b7526f38ae862","affectsGlobalScope":true,"impliedFormat":1},{"version":"fca4cdcb6d6c5ef18a869003d02c9f0fd95df8cfaf6eb431cd3376bc034cad36","affectsGlobalScope":true,"impliedFormat":1},{"version":"b93ec88115de9a9dc1b602291b85baf825c85666bf25985cc5f698073892b467","affectsGlobalScope":true,"impliedFormat":1},{"version":"f5c06dcc3fe849fcb297c247865a161f995cc29de7aa823afdd75aaaddc1419b","affectsGlobalScope":true,"impliedFormat":1},{"version":"b77e16112127a4b169ef0b8c3a4d730edf459c5f25fe52d5e436a6919206c4d7","affectsGlobalScope":true,"impliedFormat":1},{"version":"fbffd9337146eff822c7c00acbb78b01ea7ea23987f6c961eba689349e744f8c","affectsGlobalScope":true,"impliedFormat":1},{"version":"a995c0e49b721312f74fdfb89e4ba29bd9824c770bbb4021d74d2bf560e4c6bd","affectsGlobalScope":true,"impliedFormat":1},{"version":"c7b3542146734342e440a84b213384bfa188835537ddbda50d30766f0593aff9","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce6180fa19b1cccd07ee7f7dbb9a367ac19c0ed160573e4686425060b6df7f57","affectsGlobalScope":true,"impliedFormat":1},{"version":"3f02e2476bccb9dbe21280d6090f0df17d2f66b74711489415a8aa4df73c9675","affectsGlobalScope":true,"impliedFormat":1},{"version":"45e3ab34c1c013c8ab2dc1ba4c80c780744b13b5676800ae2e3be27ae862c40c","affectsGlobalScope":true,"impliedFormat":1},{"version":"805c86f6cca8d7702a62a844856dbaa2a3fd2abef0536e65d48732441dde5b5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"e42e397f1a5a77994f0185fd1466520691456c772d06bf843e5084ceb879a0ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"f4c2b41f90c95b1c532ecc874bd3c111865793b23aebcc1c3cbbabcd5d76ffb0","affectsGlobalScope":true,"impliedFormat":1},{"version":"ab26191cfad5b66afa11b8bf935ef1cd88fabfcb28d30b2dfa6fad877d050332","affectsGlobalScope":true,"impliedFormat":1},{"version":"2088bc26531e38fb05eedac2951480db5309f6be3fa4a08d2221abb0f5b4200d","affectsGlobalScope":true,"impliedFormat":1},{"version":"cb9d366c425fea79716a8fb3af0d78e6b22ebbab3bd64d25063b42dc9f531c1e","affectsGlobalScope":true,"impliedFormat":1},{"version":"500934a8089c26d57ebdb688fc9757389bb6207a3c8f0674d68efa900d2abb34","affectsGlobalScope":true,"impliedFormat":1},{"version":"689da16f46e647cef0d64b0def88910e818a5877ca5379ede156ca3afb780ac3","affectsGlobalScope":true,"impliedFormat":1},{"version":"bc21cc8b6fee4f4c2440d08035b7ea3c06b3511314c8bab6bef7a92de58a2593","affectsGlobalScope":true,"impliedFormat":1},{"version":"7ca53d13d2957003abb47922a71866ba7cb2068f8d154877c596d63c359fed25","affectsGlobalScope":true,"impliedFormat":1},{"version":"54725f8c4df3d900cb4dac84b64689ce29548da0b4e9b7c2de61d41c79293611","affectsGlobalScope":true,"impliedFormat":1},{"version":"e5594bc3076ac29e6c1ebda77939bc4c8833de72f654b6e376862c0473199323","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f3eb332c2d73e729f3364fcc0c2b375e72a121e8157d25a82d67a138c83a95c","affectsGlobalScope":true,"impliedFormat":1},{"version":"6f4427f9642ce8d500970e4e69d1397f64072ab73b97e476b4002a646ac743b1","affectsGlobalScope":true,"impliedFormat":1},{"version":"48915f327cd1dea4d7bd358d9dc7732f58f9e1626a29cc0c05c8c692419d9bb7","affectsGlobalScope":true,"impliedFormat":1},{"version":"b7bf9377723203b5a6a4b920164df22d56a43f593269ba6ae1fdc97774b68855","affectsGlobalScope":true,"impliedFormat":1},{"version":"db9709688f82c9e5f65a119c64d835f906efe5f559d08b11642d56eb85b79357","affectsGlobalScope":true,"impliedFormat":1},{"version":"4b25b8c874acd1a4cf8444c3617e037d444d19080ac9f634b405583fd10ce1f7","affectsGlobalScope":true,"impliedFormat":1},{"version":"37be57d7c90cf1f8112ee2636a068d8fd181289f82b744160ec56a7dc158a9f5","affectsGlobalScope":true,"impliedFormat":1},{"version":"a917a49ac94cd26b754ab84e113369a75d1a47a710661d7cd25e961cc797065f","affectsGlobalScope":true,"impliedFormat":1},{"version":"6d3261badeb7843d157ef3e6f5d1427d0eeb0af0cf9df84a62cfd29fd47ac86e","affectsGlobalScope":true,"impliedFormat":1},{"version":"195daca651dde22f2167ac0d0a05e215308119a3100f5e6268e8317d05a92526","affectsGlobalScope":true,"impliedFormat":1},{"version":"8b11e4285cd2bb164a4dc09248bdec69e9842517db4ca47c1ba913011e44ff2f","affectsGlobalScope":true,"impliedFormat":1},{"version":"0508571a52475e245b02bc50fa1394065a0a3d05277fbf5120c3784b85651799","affectsGlobalScope":true,"impliedFormat":1},{"version":"8f9af488f510c3015af3cc8c267a9e9d96c4dd38a1fdff0e11dc5a544711415b","affectsGlobalScope":true,"impliedFormat":1},{"version":"fc611fea8d30ea72c6bbfb599c9b4d393ce22e2f5bfef2172534781e7d138104","affectsGlobalScope":true,"impliedFormat":1},{"version":"1ce14b81c5cc821994aa8ec1d42b220dd41b27fcc06373bce3958af7421b77d4","affectsGlobalScope":true,"impliedFormat":1},{"version":"b3a048b3e9302ef9a34ef4ebb9aecfb28b66abb3bce577206a79fee559c230da","affectsGlobalScope":true,"impliedFormat":1},"71da7e461911aa567758f53e15ecb954b1d2bcfd1f96b9fe3757858dcdfc3bd7","42526b6de804c10fd86f1cf55a6c660a74ee448e381f0f78356f223b75982280","28914adcfb92fa94199e1c887da7d67a7d9d736d9571627d6b02e55ff82f577b","b0a69607a92876948c2a42e3aa6703b0d724699468ed7e3c6e2a237d119a9db9","cdacb8e4ac607a46494d1187e073382c43e7269e8bf698502a285a8ccb470925","f5091ebbd718ea236a7f503df569deb07aff0621aa8f73ed90e419de88f006aa","d3a328c0eccf652bc8b6c14515a8b848a558b9d684e15a7c0c2e15de5016df57","1b5193795ee478857bf1115fed004151284dd4da883a5a4f22e62631c3b414ad","3be01044afc63501423c361deb531d3e95f5c2677f1f7a628802bd346988d62c","78d8d1ca7d54a437702c8a8c08764b6a49f2cf2ca357d0e459bfe89a06abf50a",{"version":"4ac737edadc397ee02de9b3a5a49a6ca45742fb20ccab7bd808aa2cd7e7e3bd4","signature":"220b91fe100cc300197f5268feec11925cbe026a15ff8fe01d63e5ec6c9314c2"},{"version":"f93d922485ce4c8e4423ed50f668a03f386dcc750c87d83a71e92f407f486867","signature":"fac71ba9670e161371b74c0183a0a47352b3388a92d2154083532e4179b121f1"},{"version":"523786b383c76f3df2cd370f5c61009bc1565e3e65a37ff3865efb0923e06052","signature":"8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881"}],"root":[60,[70,72]],"options":{"composite":true,"declaration":true,"declarationMap":true,"emitDeclarationOnly":true,"esModuleInterop":true,"module":99,"outDir":"./types","rootDir":"../src","skipLibCheck":true,"sourceMap":true,"strict":true,"target":9},"referencedMap":[[70,1],[71,2],[72,3],[69,4],[65,5],[67,6]],"latestChangedDtsFile":"./types/register.d.ts","version":"6.0.3"}
|
|
@@ -9,7 +9,13 @@
|
|
|
9
9
|
* @attr {string} variant - Chip variant: filled, outlined, soft
|
|
10
10
|
* @attr {string} color - Chip color: primary, secondary, tertiary, success, warning, error, info
|
|
11
11
|
* @attr {string} size - Chip size: sm, md, lg
|
|
12
|
+
* @attr {string} href - Renders the chip as a semantic link
|
|
13
|
+
* @attr {string} target - Link browsing context
|
|
14
|
+
* @attr {string} rel - Link relationship
|
|
15
|
+
* @attr {boolean} clickable - Renders the chip as an action button
|
|
16
|
+
* @attr {boolean} selectable - Renders the chip as a toggle button
|
|
12
17
|
* @attr {boolean} deletable - Whether the chip shows a delete button
|
|
18
|
+
* @attr {string} delete-label - Accessible name for the delete button
|
|
13
19
|
* @attr {boolean} selected - Whether the chip is in selected state
|
|
14
20
|
* @attr {boolean} disabled - Whether the chip is disabled
|
|
15
21
|
*
|
|
@@ -20,8 +26,11 @@
|
|
|
20
26
|
* @csspart icon - The icon container
|
|
21
27
|
* @csspart delete - The delete button
|
|
22
28
|
*
|
|
23
|
-
* @fires
|
|
24
|
-
* @fires
|
|
29
|
+
* @fires dm-click - Fired when a clickable or linked chip is activated
|
|
30
|
+
* @fires dm-change - Fired when a selectable chip changes state
|
|
31
|
+
* @fires dm-delete - Fired when the delete button is activated
|
|
32
|
+
* @fires delete - Deprecated alias for dm-delete
|
|
33
|
+
* @fires click - Native click event from link and button modes
|
|
25
34
|
*/
|
|
26
35
|
import { BaseElement } from '@duskmoon-dev/el-base';
|
|
27
36
|
export type ChipVariant = 'filled' | 'outlined' | 'soft';
|
|
@@ -42,10 +51,36 @@ export declare class ElDmChip extends BaseElement {
|
|
|
42
51
|
type: StringConstructor;
|
|
43
52
|
reflect: boolean;
|
|
44
53
|
};
|
|
54
|
+
href: {
|
|
55
|
+
type: StringConstructor;
|
|
56
|
+
reflect: boolean;
|
|
57
|
+
};
|
|
58
|
+
target: {
|
|
59
|
+
type: StringConstructor;
|
|
60
|
+
reflect: boolean;
|
|
61
|
+
};
|
|
62
|
+
rel: {
|
|
63
|
+
type: StringConstructor;
|
|
64
|
+
reflect: boolean;
|
|
65
|
+
};
|
|
66
|
+
clickable: {
|
|
67
|
+
type: BooleanConstructor;
|
|
68
|
+
reflect: boolean;
|
|
69
|
+
};
|
|
70
|
+
selectable: {
|
|
71
|
+
type: BooleanConstructor;
|
|
72
|
+
reflect: boolean;
|
|
73
|
+
};
|
|
45
74
|
deletable: {
|
|
46
75
|
type: BooleanConstructor;
|
|
47
76
|
reflect: boolean;
|
|
48
77
|
};
|
|
78
|
+
deleteLabel: {
|
|
79
|
+
type: StringConstructor;
|
|
80
|
+
reflect: boolean;
|
|
81
|
+
attribute: string;
|
|
82
|
+
default: string;
|
|
83
|
+
};
|
|
49
84
|
selected: {
|
|
50
85
|
type: BooleanConstructor;
|
|
51
86
|
reflect: boolean;
|
|
@@ -58,14 +93,22 @@ export declare class ElDmChip extends BaseElement {
|
|
|
58
93
|
variant: ChipVariant;
|
|
59
94
|
color: ChipColor;
|
|
60
95
|
size: ChipSize;
|
|
96
|
+
href: string | undefined;
|
|
97
|
+
target: string | undefined;
|
|
98
|
+
rel: string | undefined;
|
|
99
|
+
clickable: boolean;
|
|
100
|
+
selectable: boolean;
|
|
61
101
|
deletable: boolean;
|
|
102
|
+
deleteLabel: string;
|
|
62
103
|
selected: boolean;
|
|
63
104
|
disabled: boolean;
|
|
64
105
|
constructor();
|
|
65
|
-
|
|
66
|
-
|
|
106
|
+
connectedCallback(): void;
|
|
107
|
+
disconnectedCallback(): void;
|
|
108
|
+
private _handleShadowClick;
|
|
67
109
|
private _getChipClasses;
|
|
110
|
+
private _renderContent;
|
|
68
111
|
render(): string;
|
|
69
|
-
update(): void;
|
|
112
|
+
protected update(): void;
|
|
70
113
|
}
|
|
71
114
|
//# sourceMappingURL=el-dm-chip.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"el-dm-chip.d.ts","sourceRoot":"","sources":["../../src/el-dm-chip.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"el-dm-chip.d.ts","sourceRoot":"","sources":["../../src/el-dm-chip.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AAEH,OAAO,EAAE,WAAW,EAAO,MAAM,uBAAuB,CAAC;AA2CzD,MAAM,MAAM,WAAW,GAAG,QAAQ,GAAG,UAAU,GAAG,MAAM,CAAC;AACzD,MAAM,MAAM,SAAS,GACnB,SAAS,GAAG,WAAW,GAAG,UAAU,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,CAAC;AAClF,MAAM,MAAM,QAAQ,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAkK1C,qBAAa,QAAS,SAAQ,WAAW;IACvC,MAAM,CAAC,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAkBf;IAEM,OAAO,EAAE,WAAW,CAAC;IACrB,KAAK,EAAE,SAAS,CAAC;IACjB,IAAI,EAAE,QAAQ,CAAC;IACf,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;IACzB,MAAM,EA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