sudovanilla-website/public/@shoelace-style/shoelace/cdn/chunks/chunk.ZI4L5EHY.js
2024-05-13 23:34:06 -04:00

39 lines
877 B
JavaScript

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
};