sudovanilla-website/public/@shoelace-style/shoelace/cdn/chunks/chunk.ZI4L5EHY.js

40 lines
877 B
JavaScript
Raw Normal View History

2024-05-13 22:34:06 -05:00
import {
divider_styles_default
} from "./chunk.PQ5D5T53.js";
import {
watch
} from "./chunk.FA5RT4K4.js";
import {
ShoelaceElement,
n
} from "./chunk.SEXBCYCU.js";
import {
__decorateClass
} from "./chunk.KIILAQWQ.js";
// src/components/divider/divider.component.ts
var SlDivider = class extends ShoelaceElement {
constructor() {
super(...arguments);
this.vertical = false;
}
connectedCallback() {
super.connectedCallback();
this.setAttribute("role", "separator");
}
handleVerticalChange() {
this.setAttribute("aria-orientation", this.vertical ? "vertical" : "horizontal");
}
};
SlDivider.styles = divider_styles_default;
__decorateClass([
n({ type: Boolean, reflect: true })
], SlDivider.prototype, "vertical", 2);
__decorateClass([
watch("vertical")
], SlDivider.prototype, "handleVerticalChange", 1);
export {
SlDivider
};