@sondor-technology/sondor-components 1.0.7 → 1.0.9
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/dist/components/calendar/calendar.d.ts +36 -0
- package/dist/components/calendar/calendar.d.ts.map +1 -0
- package/dist/components/calendar/calendar.js +449 -0
- package/dist/components/calendar/calendar.js.map +1 -0
- package/dist/components/cron-builder/cron-builder.d.ts +37 -0
- package/dist/components/cron-builder/cron-builder.d.ts.map +1 -0
- package/dist/components/cron-builder/cron-builder.js +522 -0
- package/dist/components/cron-builder/cron-builder.js.map +1 -0
- package/dist/components/input/input.d.ts +1 -0
- package/dist/components/input/input.d.ts.map +1 -1
- package/dist/components/input/input.js +35 -12
- package/dist/components/input/input.js.map +1 -1
- package/dist/components/pin-input/pin-input.d.ts +33 -0
- package/dist/components/pin-input/pin-input.d.ts.map +1 -0
- package/dist/components/pin-input/pin-input.js +253 -0
- package/dist/components/pin-input/pin-input.js.map +1 -0
- package/dist/components/popover/popover.d.ts +26 -0
- package/dist/components/popover/popover.d.ts.map +1 -0
- package/dist/components/popover/popover.js +196 -0
- package/dist/components/popover/popover.js.map +1 -0
- package/dist/components/select/select.d.ts +4 -1
- package/dist/components/select/select.d.ts.map +1 -1
- package/dist/components/select/select.js +26 -4
- package/dist/components/select/select.js.map +1 -1
- package/dist/components/time-picker/time-picker.d.ts +38 -0
- package/dist/components/time-picker/time-picker.d.ts.map +1 -0
- package/dist/components/time-picker/time-picker.js +290 -0
- package/dist/components/time-picker/time-picker.js.map +1 -0
- package/dist/components/toggle-group/toggle-button.d.ts +23 -0
- package/dist/components/toggle-group/toggle-button.d.ts.map +1 -0
- package/dist/components/toggle-group/toggle-button.js +114 -0
- package/dist/components/toggle-group/toggle-button.js.map +1 -0
- package/dist/components/toggle-group/toggle-group.d.ts +38 -0
- package/dist/components/toggle-group/toggle-group.d.ts.map +1 -0
- package/dist/components/toggle-group/toggle-group.js +270 -0
- package/dist/components/toggle-group/toggle-group.js.map +1 -0
- package/dist/components/tooltip/tooltip.d.ts +33 -0
- package/dist/components/tooltip/tooltip.d.ts.map +1 -0
- package/dist/components/tooltip/tooltip.js +293 -0
- package/dist/components/tooltip/tooltip.js.map +1 -0
- package/dist/styles/index.css +2 -0
- package/package.json +33 -1
- package/src/components/calendar/calendar.ts +458 -0
- package/src/components/cron-builder/cron-builder.ts +529 -0
- package/src/components/input/input.ts +38 -14
- package/src/components/pin-input/pin-input.ts +249 -0
- package/src/components/popover/popover.ts +192 -0
- package/src/components/select/select.ts +25 -63
- package/src/components/time-picker/time-picker.ts +286 -0
- package/src/components/toggle-group/toggle-button.ts +103 -0
- package/src/components/toggle-group/toggle-group.ts +264 -0
- package/src/components/tooltip/tooltip.ts +286 -0
- package/src/styles/theme.css +3 -0
|
@@ -0,0 +1,270 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { LitElement, html, css } from "lit";
|
|
8
|
+
import { customElement, property, queryAssignedElements, state, query } from "lit/decorators.js";
|
|
9
|
+
import { ifDefined } from "lit/directives/if-defined.js";
|
|
10
|
+
import { classMap } from "lit/directives/class-map.js";
|
|
11
|
+
import { resetStyles } from "../../styles/reset.js";
|
|
12
|
+
import "./toggle-button.js";
|
|
13
|
+
let StToggleGroup = class StToggleGroup extends LitElement {
|
|
14
|
+
constructor() {
|
|
15
|
+
super();
|
|
16
|
+
this.name = "";
|
|
17
|
+
this.value = "";
|
|
18
|
+
this.multiple = false;
|
|
19
|
+
this.disabled = false;
|
|
20
|
+
this.required = false;
|
|
21
|
+
this.ariaLabel = "";
|
|
22
|
+
// 🚀 NEW: State properties for dynamic shadows
|
|
23
|
+
this._canScrollLeft = false;
|
|
24
|
+
this._canScrollRight = false;
|
|
25
|
+
this._defaultValue = "";
|
|
26
|
+
// 🚀 NEW: Mathematically determine if we are at the edges of the scroll box
|
|
27
|
+
this._checkScroll = () => {
|
|
28
|
+
if (!this._container)
|
|
29
|
+
return;
|
|
30
|
+
const { scrollLeft, scrollWidth, clientWidth } = this._container;
|
|
31
|
+
// Use a 1px buffer to prevent fractional pixel rounding errors on high-DPI screens
|
|
32
|
+
this._canScrollLeft = scrollLeft > 1;
|
|
33
|
+
this._canScrollRight = Math.ceil(scrollLeft + clientWidth) < scrollWidth - 1;
|
|
34
|
+
};
|
|
35
|
+
this._internals = this.attachInternals();
|
|
36
|
+
this.addEventListener("st-toggle-action", this._handleToggle);
|
|
37
|
+
}
|
|
38
|
+
firstUpdated(changedProperties) {
|
|
39
|
+
super.firstUpdated(changedProperties);
|
|
40
|
+
this._defaultValue = this.value;
|
|
41
|
+
// 🚀 NEW: Observe the container. If the user rotates their phone,
|
|
42
|
+
// we need to recalculate if shadows are still needed.
|
|
43
|
+
this._resizeObserver = new ResizeObserver(() => this._checkScroll());
|
|
44
|
+
if (this._container) {
|
|
45
|
+
this._resizeObserver.observe(this._container);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
disconnectedCallback() {
|
|
49
|
+
super.disconnectedCallback();
|
|
50
|
+
if (this._resizeObserver) {
|
|
51
|
+
this._resizeObserver.disconnect();
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
updated(changedProperties) {
|
|
55
|
+
super.updated(changedProperties);
|
|
56
|
+
if (changedProperties.has("value")) {
|
|
57
|
+
this._internals.setFormValue(this.value || null);
|
|
58
|
+
this._syncButtons();
|
|
59
|
+
this._syncValidity();
|
|
60
|
+
}
|
|
61
|
+
if (changedProperties.has("disabled")) {
|
|
62
|
+
this._buttons.forEach((btn) => (btn.disabled = this.disabled));
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
_syncButtons() {
|
|
66
|
+
const values = this.multiple && this.value ? this.value.split(",") : [this.value];
|
|
67
|
+
this._buttons.forEach((btn) => {
|
|
68
|
+
btn.selected = values.includes(btn.value);
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
_handleSlotChange() {
|
|
72
|
+
this._syncButtons();
|
|
73
|
+
if (this.disabled) {
|
|
74
|
+
this._buttons.forEach((btn) => (btn.disabled = true));
|
|
75
|
+
}
|
|
76
|
+
// Calculate shadows after slots render
|
|
77
|
+
setTimeout(() => this._checkScroll(), 50);
|
|
78
|
+
}
|
|
79
|
+
_handleToggle(e) {
|
|
80
|
+
e.stopPropagation();
|
|
81
|
+
const toggledValue = e.detail.value;
|
|
82
|
+
if (this.multiple) {
|
|
83
|
+
let values = this.value ? this.value.split(",") : [];
|
|
84
|
+
if (values.includes(toggledValue)) {
|
|
85
|
+
values = values.filter((v) => v !== toggledValue);
|
|
86
|
+
}
|
|
87
|
+
else {
|
|
88
|
+
values.push(toggledValue);
|
|
89
|
+
}
|
|
90
|
+
this.value = values.join(",");
|
|
91
|
+
}
|
|
92
|
+
else {
|
|
93
|
+
if (this.value !== toggledValue) {
|
|
94
|
+
this.value = toggledValue;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
this.dispatchEvent(new Event("change", { bubbles: true, composed: true }));
|
|
98
|
+
}
|
|
99
|
+
formResetCallback() {
|
|
100
|
+
this.value = this._defaultValue;
|
|
101
|
+
}
|
|
102
|
+
_syncValidity() {
|
|
103
|
+
if (this.required && !this.value) {
|
|
104
|
+
this._internals.setValidity({ valueMissing: true }, "Please select an option.");
|
|
105
|
+
}
|
|
106
|
+
else {
|
|
107
|
+
this._internals.setValidity({});
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
checkValidity() {
|
|
111
|
+
return this._internals.checkValidity();
|
|
112
|
+
}
|
|
113
|
+
reportValidity() {
|
|
114
|
+
return this._internals.reportValidity();
|
|
115
|
+
}
|
|
116
|
+
render() {
|
|
117
|
+
const wrapperClasses = classMap({
|
|
118
|
+
"scroll-wrapper": true,
|
|
119
|
+
"can-scroll-left": this._canScrollLeft,
|
|
120
|
+
"can-scroll-right": this._canScrollRight,
|
|
121
|
+
});
|
|
122
|
+
return html `
|
|
123
|
+
<div class=${wrapperClasses}>
|
|
124
|
+
<div
|
|
125
|
+
class="group-container"
|
|
126
|
+
role="group"
|
|
127
|
+
aria-label=${ifDefined(this.ariaLabel || undefined)}
|
|
128
|
+
aria-required=${this.required ? "true" : "false"}
|
|
129
|
+
@scroll=${this._checkScroll}
|
|
130
|
+
>
|
|
131
|
+
<slot @slotchange=${this._handleSlotChange}></slot>
|
|
132
|
+
</div>
|
|
133
|
+
</div>
|
|
134
|
+
`;
|
|
135
|
+
}
|
|
136
|
+
};
|
|
137
|
+
StToggleGroup.formAssociated = true;
|
|
138
|
+
StToggleGroup.styles = [
|
|
139
|
+
resetStyles,
|
|
140
|
+
css `
|
|
141
|
+
:host {
|
|
142
|
+
display: inline-flex;
|
|
143
|
+
max-width: 100%;
|
|
144
|
+
min-width: 0;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.scroll-wrapper {
|
|
148
|
+
position: relative;
|
|
149
|
+
display: inline-flex;
|
|
150
|
+
max-width: 100%;
|
|
151
|
+
min-width: 0;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
/* 🚀 FIX: Widened to 40px, boosted z-index to 10, and darkened the opacity */
|
|
155
|
+
.scroll-wrapper::before,
|
|
156
|
+
.scroll-wrapper::after {
|
|
157
|
+
content: "";
|
|
158
|
+
position: absolute;
|
|
159
|
+
top: 0;
|
|
160
|
+
bottom: 0;
|
|
161
|
+
width: 40px;
|
|
162
|
+
pointer-events: none;
|
|
163
|
+
z-index: 10;
|
|
164
|
+
opacity: 0;
|
|
165
|
+
transition: opacity 0.3s ease;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.scroll-wrapper::before {
|
|
169
|
+
left: 0;
|
|
170
|
+
background: linear-gradient(
|
|
171
|
+
to right,
|
|
172
|
+
var(--st-color-scroll-shadow, rgba(0, 0, 0, 0.15)) 0%,
|
|
173
|
+
transparent 100%
|
|
174
|
+
);
|
|
175
|
+
border-top-left-radius: var(--st-radius-md);
|
|
176
|
+
border-bottom-left-radius: var(--st-radius-md);
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.scroll-wrapper::after {
|
|
180
|
+
right: 0;
|
|
181
|
+
background: linear-gradient(
|
|
182
|
+
to left,
|
|
183
|
+
var(--st-color-scroll-shadow, rgba(0, 0, 0, 0.15)) 0%,
|
|
184
|
+
transparent 100%
|
|
185
|
+
);
|
|
186
|
+
border-top-right-radius: var(--st-radius-md);
|
|
187
|
+
border-bottom-right-radius: var(--st-radius-md);
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.scroll-wrapper.can-scroll-left::before {
|
|
191
|
+
opacity: 1;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.scroll-wrapper.can-scroll-right::after {
|
|
195
|
+
opacity: 1;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
/* 🚀 FIX: Dialed up to 0.5 for dark mode */
|
|
199
|
+
:host([data-theme="dark"]) .scroll-wrapper::before {
|
|
200
|
+
background: linear-gradient(to right, rgba(0, 0, 0, 0.5) 0%, transparent 100%);
|
|
201
|
+
}
|
|
202
|
+
:host([data-theme="dark"]) .scroll-wrapper::after {
|
|
203
|
+
background: linear-gradient(to left, rgba(0, 0, 0, 0.5) 0%, transparent 100%);
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.group-container {
|
|
207
|
+
display: inline-flex;
|
|
208
|
+
max-width: 100%;
|
|
209
|
+
min-width: 0;
|
|
210
|
+
background-color: var(--st-color-border);
|
|
211
|
+
gap: 1px;
|
|
212
|
+
border: 1px solid var(--st-color-border);
|
|
213
|
+
border-radius: var(--st-radius-md);
|
|
214
|
+
|
|
215
|
+
overflow-x: auto;
|
|
216
|
+
overflow-y: hidden;
|
|
217
|
+
-webkit-overflow-scrolling: touch;
|
|
218
|
+
scrollbar-width: none;
|
|
219
|
+
-ms-overflow-style: none;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
.group-container::-webkit-scrollbar {
|
|
223
|
+
display: none;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
::slotted(*) {
|
|
227
|
+
flex-shrink: 0;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
:host([disabled]) .group-container {
|
|
231
|
+
opacity: 0.5;
|
|
232
|
+
pointer-events: none;
|
|
233
|
+
}
|
|
234
|
+
`,
|
|
235
|
+
];
|
|
236
|
+
__decorate([
|
|
237
|
+
query(".group-container")
|
|
238
|
+
], StToggleGroup.prototype, "_container", void 0);
|
|
239
|
+
__decorate([
|
|
240
|
+
queryAssignedElements({ selector: "st-toggle-button" })
|
|
241
|
+
], StToggleGroup.prototype, "_buttons", void 0);
|
|
242
|
+
__decorate([
|
|
243
|
+
property({ type: String, reflect: true })
|
|
244
|
+
], StToggleGroup.prototype, "name", void 0);
|
|
245
|
+
__decorate([
|
|
246
|
+
property({ type: String })
|
|
247
|
+
], StToggleGroup.prototype, "value", void 0);
|
|
248
|
+
__decorate([
|
|
249
|
+
property({ type: Boolean })
|
|
250
|
+
], StToggleGroup.prototype, "multiple", void 0);
|
|
251
|
+
__decorate([
|
|
252
|
+
property({ type: Boolean, reflect: true })
|
|
253
|
+
], StToggleGroup.prototype, "disabled", void 0);
|
|
254
|
+
__decorate([
|
|
255
|
+
property({ type: Boolean, reflect: true })
|
|
256
|
+
], StToggleGroup.prototype, "required", void 0);
|
|
257
|
+
__decorate([
|
|
258
|
+
property({ attribute: "aria-label" })
|
|
259
|
+
], StToggleGroup.prototype, "ariaLabel", void 0);
|
|
260
|
+
__decorate([
|
|
261
|
+
state()
|
|
262
|
+
], StToggleGroup.prototype, "_canScrollLeft", void 0);
|
|
263
|
+
__decorate([
|
|
264
|
+
state()
|
|
265
|
+
], StToggleGroup.prototype, "_canScrollRight", void 0);
|
|
266
|
+
StToggleGroup = __decorate([
|
|
267
|
+
customElement("st-toggle-group")
|
|
268
|
+
], StToggleGroup);
|
|
269
|
+
export { StToggleGroup };
|
|
270
|
+
//# sourceMappingURL=toggle-group.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toggle-group.js","sourceRoot":"","sources":["../../../src/components/toggle-group/toggle-group.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAC,UAAU,EAAE,IAAI,EAAE,GAAG,EAAiB,MAAM,KAAK,CAAC;AAC1D,OAAO,EAAC,aAAa,EAAE,QAAQ,EAAE,qBAAqB,EAAE,KAAK,EAAE,KAAK,EAAC,MAAM,mBAAmB,CAAC;AAC/F,OAAO,EAAC,SAAS,EAAC,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAC,QAAQ,EAAC,MAAM,6BAA6B,CAAC;AACrD,OAAO,EAAC,WAAW,EAAC,MAAM,uBAAuB,CAAC;AAElD,OAAO,oBAAoB,CAAC;AAGrB,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,UAAU;IAuB3C;QACE,KAAK,EAAE,CAAC;QAd+B,SAAI,GAAG,EAAE,CAAC;QACzB,UAAK,GAAG,EAAE,CAAC;QACV,aAAQ,GAAG,KAAK,CAAC;QACF,aAAQ,GAAG,KAAK,CAAC;QACjB,aAAQ,GAAG,KAAK,CAAC;QACtB,cAAS,GAAG,EAAE,CAAC;QAEpD,+CAA+C;QAC9B,mBAAc,GAAG,KAAK,CAAC;QACvB,oBAAe,GAAG,KAAK,CAAC;QAEjC,kBAAa,GAAG,EAAE,CAAC;QA4I3B,4EAA4E;QACpE,iBAAY,GAAG,GAAG,EAAE;YAC1B,IAAI,CAAC,IAAI,CAAC,UAAU;gBAAE,OAAO;Y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;AACtB;IAApC,QAAQ,CAAC,EAAC,SAAS,EAAE,YAAY,EAAC,CAAC;gDAAgB;AAGnC;IAAhB,KAAK,EAAE;qDAAgC;AACvB;IAAhB,KAAK,EAAE;sDAAiC;AAnB9B,aAAa;IADzB,aAAa,CAAC,iBAAiB,CAAC;GACpB,aAAa,CAwPzB"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { LitElement, PropertyValues } from "lit";
|
|
2
|
+
export type TooltipPosition = "top" | "bottom" | "left" | "right";
|
|
3
|
+
export type TooltipVariant = "default" | "info" | "success" | "warning" | "danger";
|
|
4
|
+
export declare class StTooltip extends LitElement {
|
|
5
|
+
content: string;
|
|
6
|
+
position: TooltipPosition;
|
|
7
|
+
variant: TooltipVariant;
|
|
8
|
+
delay: number;
|
|
9
|
+
disabled: boolean;
|
|
10
|
+
private _isVisible;
|
|
11
|
+
private _showTimeout?;
|
|
12
|
+
private _hideTimeout?;
|
|
13
|
+
private _tooltipId;
|
|
14
|
+
private _a11yNode?;
|
|
15
|
+
private _slottedElements;
|
|
16
|
+
static styles: import("lit").CSSResult[];
|
|
17
|
+
connectedCallback(): void;
|
|
18
|
+
disconnectedCallback(): void;
|
|
19
|
+
updated(changedProperties: PropertyValues): void;
|
|
20
|
+
private _handleSlotChange;
|
|
21
|
+
private _handleMouseEnter;
|
|
22
|
+
private _handleMouseLeave;
|
|
23
|
+
private _handleFocusIn;
|
|
24
|
+
private _handleFocusOut;
|
|
25
|
+
private _handleKeyDown;
|
|
26
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
27
|
+
}
|
|
28
|
+
declare global {
|
|
29
|
+
interface HTMLElementTagNameMap {
|
|
30
|
+
"st-tooltip": StTooltip;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=tooltip.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../../src/components/tooltip/tooltip.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAa,cAAc,EAAC,MAAM,KAAK,CAAC;AAK1D,MAAM,MAAM,eAAe,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAC;AAClE,MAAM,MAAM,cAAc,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,CAAC;AAEnF,qBACa,SAAU,SAAQ,UAAU;IACb,OAAO,SAAM;IACb,QAAQ,EAAE,eAAe,CAAS;IAClC,OAAO,EAAE,cAAc,CAAa;IACpC,KAAK,SAAO;IACI,QAAQ,UAAS;IAElD,OAAO,CAAC,UAAU,CAAS;IAEpC,OAAO,CAAC,YAAY,CAAC,CAAS;IAC9B,OAAO,CAAC,YAAY,CAAC,CAAS;IAC9B,OAAO,CAAC,UAAU,CAA8D;IAEhF,OAAO,CAAC,SAAS,CAAC,CAAkB;IAEX,OAAO,CAAC,gBAAgB,CAAiB;IAElE,MAAM,CAAC,MAAM,4BAkKX;IAEO,iBAAiB,SAQzB;IAEQ,oBAAoB,SAK5B;IAEQ,OAAO,CAAC,iBAAiB,EAAE,cAAc,QAKjD;IAED,OAAO,CAAC,iBAAiB;IAQzB,OAAO,CAAC,iBAAiB;IAQzB,OAAO,CAAC,iBAAiB;IAOzB,OAAO,CAAC,cAAc;IAKtB,OAAO,CAAC,eAAe;IAIvB,OAAO,CAAC,cAAc;IAOtB,MAAM,yCAyBL;CACF;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,YAAY,EAAE,SAAS,CAAC;KACzB;CACF"}
|
|
@@ -0,0 +1,293 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { LitElement, html, css } from "lit";
|
|
8
|
+
import { customElement, property, state, queryAssignedElements } from "lit/decorators.js";
|
|
9
|
+
import { classMap } from "lit/directives/class-map.js";
|
|
10
|
+
import { resetStyles } from "../../styles/reset.js";
|
|
11
|
+
let StTooltip = class StTooltip extends LitElement {
|
|
12
|
+
constructor() {
|
|
13
|
+
super(...arguments);
|
|
14
|
+
this.content = "";
|
|
15
|
+
this.position = "top";
|
|
16
|
+
this.variant = "default";
|
|
17
|
+
this.delay = 200;
|
|
18
|
+
this.disabled = false;
|
|
19
|
+
this._isVisible = false;
|
|
20
|
+
this._tooltipId = `st-tooltip-${Math.random().toString(36).substring(2, 9)}`;
|
|
21
|
+
}
|
|
22
|
+
connectedCallback() {
|
|
23
|
+
super.connectedCallback();
|
|
24
|
+
this._a11yNode = document.createElement("span");
|
|
25
|
+
this._a11yNode.id = this._tooltipId;
|
|
26
|
+
this._a11yNode.role = "tooltip";
|
|
27
|
+
this._a11yNode.style.display = "none";
|
|
28
|
+
this._a11yNode.textContent = this.content;
|
|
29
|
+
this.appendChild(this._a11yNode);
|
|
30
|
+
}
|
|
31
|
+
disconnectedCallback() {
|
|
32
|
+
super.disconnectedCallback();
|
|
33
|
+
if (this._a11yNode && this.contains(this._a11yNode)) {
|
|
34
|
+
this.removeChild(this._a11yNode);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
updated(changedProperties) {
|
|
38
|
+
super.updated(changedProperties);
|
|
39
|
+
if (changedProperties.has("content") && this._a11yNode) {
|
|
40
|
+
this._a11yNode.textContent = this.content;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
_handleSlotChange() {
|
|
44
|
+
if (this._slottedElements.length > 0) {
|
|
45
|
+
this._slottedElements.forEach((el) => {
|
|
46
|
+
el.setAttribute("aria-describedby", this._tooltipId);
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
_handleMouseEnter() {
|
|
51
|
+
if (this.disabled || !this.content)
|
|
52
|
+
return;
|
|
53
|
+
clearTimeout(this._hideTimeout);
|
|
54
|
+
this._showTimeout = window.setTimeout(() => {
|
|
55
|
+
this._isVisible = true;
|
|
56
|
+
}, this.delay);
|
|
57
|
+
}
|
|
58
|
+
_handleMouseLeave() {
|
|
59
|
+
clearTimeout(this._showTimeout);
|
|
60
|
+
this._hideTimeout = window.setTimeout(() => {
|
|
61
|
+
this._isVisible = false;
|
|
62
|
+
}, 100);
|
|
63
|
+
}
|
|
64
|
+
_handleFocusIn() {
|
|
65
|
+
if (this.disabled || !this.content)
|
|
66
|
+
return;
|
|
67
|
+
this._isVisible = true;
|
|
68
|
+
}
|
|
69
|
+
_handleFocusOut() {
|
|
70
|
+
this._isVisible = false;
|
|
71
|
+
}
|
|
72
|
+
_handleKeyDown(e) {
|
|
73
|
+
if (e.key === "Escape" && this._isVisible) {
|
|
74
|
+
e.stopPropagation();
|
|
75
|
+
this._isVisible = false;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
render() {
|
|
79
|
+
return html `
|
|
80
|
+
<div
|
|
81
|
+
class="tooltip-target"
|
|
82
|
+
@mouseenter=${this._handleMouseEnter}
|
|
83
|
+
@mouseleave=${this._handleMouseLeave}
|
|
84
|
+
@focusin=${this._handleFocusIn}
|
|
85
|
+
@focusout=${this._handleFocusOut}
|
|
86
|
+
@keydown=${this._handleKeyDown}
|
|
87
|
+
>
|
|
88
|
+
<slot @slotchange=${this._handleSlotChange}></slot>
|
|
89
|
+
</div>
|
|
90
|
+
|
|
91
|
+
<div
|
|
92
|
+
class=${classMap({
|
|
93
|
+
"tooltip-popup": true,
|
|
94
|
+
[`position-${this.position}`]: true,
|
|
95
|
+
[`variant-${this.variant}`]: true,
|
|
96
|
+
"is-visible": this._isVisible,
|
|
97
|
+
})}
|
|
98
|
+
aria-hidden="true"
|
|
99
|
+
>
|
|
100
|
+
${this.content}
|
|
101
|
+
</div>
|
|
102
|
+
`;
|
|
103
|
+
}
|
|
104
|
+
};
|
|
105
|
+
StTooltip.styles = [
|
|
106
|
+
resetStyles,
|
|
107
|
+
css `
|
|
108
|
+
:host {
|
|
109
|
+
display: inline-block;
|
|
110
|
+
position: relative;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.tooltip-target {
|
|
114
|
+
display: inline-block;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.tooltip-popup {
|
|
118
|
+
position: absolute;
|
|
119
|
+
z-index: 1000;
|
|
120
|
+
background: var(--st-color-surface);
|
|
121
|
+
color: var(--st-color-text);
|
|
122
|
+
border: 1px solid var(--st-color-border);
|
|
123
|
+
padding: var(--st-spacing-xs) var(--st-spacing-sm);
|
|
124
|
+
border-radius: var(--st-radius-sm);
|
|
125
|
+
font-size: var(--st-font-size-xs);
|
|
126
|
+
font-weight: 500;
|
|
127
|
+
white-space: nowrap;
|
|
128
|
+
pointer-events: none;
|
|
129
|
+
opacity: 0;
|
|
130
|
+
visibility: hidden;
|
|
131
|
+
transition:
|
|
132
|
+
opacity 0.2s ease,
|
|
133
|
+
transform 0.2s ease,
|
|
134
|
+
visibility 0.2s;
|
|
135
|
+
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.tooltip-popup::before {
|
|
139
|
+
content: "";
|
|
140
|
+
position: absolute;
|
|
141
|
+
width: 8px;
|
|
142
|
+
height: 8px;
|
|
143
|
+
background: var(--st-color-surface);
|
|
144
|
+
border: 1px solid var(--st-color-border);
|
|
145
|
+
transform: rotate(45deg);
|
|
146
|
+
box-sizing: border-box;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.is-visible {
|
|
150
|
+
opacity: 1;
|
|
151
|
+
visibility: visible;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
/* ==========================================
|
|
155
|
+
VARIANTS
|
|
156
|
+
========================================== */
|
|
157
|
+
|
|
158
|
+
.variant-info {
|
|
159
|
+
background: var(--st-color-info, #3b82f6);
|
|
160
|
+
border-color: var(--st-color-info, #3b82f6);
|
|
161
|
+
color: var(--st-color-on-info, #ffffff);
|
|
162
|
+
}
|
|
163
|
+
.variant-info::before {
|
|
164
|
+
background: var(--st-color-info, #3b82f6);
|
|
165
|
+
border-color: var(--st-color-info, #3b82f6);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.variant-success {
|
|
169
|
+
background: var(--st-color-success, #16a34a);
|
|
170
|
+
border-color: var(--st-color-success, #16a34a);
|
|
171
|
+
color: var(--st-color-on-success, #ffffff);
|
|
172
|
+
}
|
|
173
|
+
.variant-success::before {
|
|
174
|
+
background: var(--st-color-success, #16a34a);
|
|
175
|
+
border-color: var(--st-color-success, #16a34a);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.variant-warning {
|
|
179
|
+
background: var(--st-color-warning, #f59e0b);
|
|
180
|
+
border-color: var(--st-color-warning, #f59e0b);
|
|
181
|
+
/* Warning usually needs dark text for contrast */
|
|
182
|
+
color: var(--st-color-on-warning, #1e293b);
|
|
183
|
+
}
|
|
184
|
+
.variant-warning::before {
|
|
185
|
+
background: var(--st-color-warning, #f59e0b);
|
|
186
|
+
border-color: var(--st-color-warning, #f59e0b);
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.variant-danger {
|
|
190
|
+
background: var(--st-color-danger, #dc2626);
|
|
191
|
+
border-color: var(--st-color-danger, #dc2626);
|
|
192
|
+
color: var(--st-color-on-danger, #ffffff);
|
|
193
|
+
}
|
|
194
|
+
.variant-danger::before {
|
|
195
|
+
background: var(--st-color-danger, #dc2626);
|
|
196
|
+
border-color: var(--st-color-danger, #dc2626);
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
/* ==========================================
|
|
200
|
+
POSITIONS
|
|
201
|
+
========================================== */
|
|
202
|
+
|
|
203
|
+
.position-top {
|
|
204
|
+
bottom: 100%;
|
|
205
|
+
left: 50%;
|
|
206
|
+
transform: translateX(-50%) translateY(-10px);
|
|
207
|
+
}
|
|
208
|
+
.position-top.is-visible {
|
|
209
|
+
transform: translateX(-50%) translateY(-6px);
|
|
210
|
+
}
|
|
211
|
+
.position-top::before {
|
|
212
|
+
bottom: -5px;
|
|
213
|
+
left: 50%;
|
|
214
|
+
margin-left: -4px;
|
|
215
|
+
border-top: none;
|
|
216
|
+
border-left: none;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.position-bottom {
|
|
220
|
+
top: 100%;
|
|
221
|
+
left: 50%;
|
|
222
|
+
transform: translateX(-50%) translateY(10px);
|
|
223
|
+
}
|
|
224
|
+
.position-bottom.is-visible {
|
|
225
|
+
transform: translateX(-50%) translateY(6px);
|
|
226
|
+
}
|
|
227
|
+
.position-bottom::before {
|
|
228
|
+
top: -5px;
|
|
229
|
+
left: 50%;
|
|
230
|
+
margin-left: -4px;
|
|
231
|
+
border-bottom: none;
|
|
232
|
+
border-right: none;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
.position-left {
|
|
236
|
+
right: 100%;
|
|
237
|
+
top: 50%;
|
|
238
|
+
transform: translateY(-50%) translateX(-10px);
|
|
239
|
+
}
|
|
240
|
+
.position-left.is-visible {
|
|
241
|
+
transform: translateY(-50%) translateX(-6px);
|
|
242
|
+
}
|
|
243
|
+
.position-left::before {
|
|
244
|
+
right: -5px;
|
|
245
|
+
top: 50%;
|
|
246
|
+
margin-top: -4px;
|
|
247
|
+
border-bottom: none;
|
|
248
|
+
border-left: none;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
.position-right {
|
|
252
|
+
left: 100%;
|
|
253
|
+
top: 50%;
|
|
254
|
+
transform: translateY(-50%) translateX(10px);
|
|
255
|
+
}
|
|
256
|
+
.position-right.is-visible {
|
|
257
|
+
transform: translateY(-50%) translateX(6px);
|
|
258
|
+
}
|
|
259
|
+
.position-right::before {
|
|
260
|
+
left: -5px;
|
|
261
|
+
top: 50%;
|
|
262
|
+
margin-top: -4px;
|
|
263
|
+
border-top: none;
|
|
264
|
+
border-right: none;
|
|
265
|
+
}
|
|
266
|
+
`,
|
|
267
|
+
];
|
|
268
|
+
__decorate([
|
|
269
|
+
property({ type: String })
|
|
270
|
+
], StTooltip.prototype, "content", void 0);
|
|
271
|
+
__decorate([
|
|
272
|
+
property({ type: String })
|
|
273
|
+
], StTooltip.prototype, "position", void 0);
|
|
274
|
+
__decorate([
|
|
275
|
+
property({ type: String })
|
|
276
|
+
], StTooltip.prototype, "variant", void 0);
|
|
277
|
+
__decorate([
|
|
278
|
+
property({ type: Number })
|
|
279
|
+
], StTooltip.prototype, "delay", void 0);
|
|
280
|
+
__decorate([
|
|
281
|
+
property({ type: Boolean, reflect: true })
|
|
282
|
+
], StTooltip.prototype, "disabled", void 0);
|
|
283
|
+
__decorate([
|
|
284
|
+
state()
|
|
285
|
+
], StTooltip.prototype, "_isVisible", void 0);
|
|
286
|
+
__decorate([
|
|
287
|
+
queryAssignedElements()
|
|
288
|
+
], StTooltip.prototype, "_slottedElements", void 0);
|
|
289
|
+
StTooltip = __decorate([
|
|
290
|
+
customElement("st-tooltip")
|
|
291
|
+
], StTooltip);
|
|
292
|
+
export { StTooltip };
|
|
293
|
+
//# sourceMappingURL=tooltip.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tooltip.js","sourceRoot":"","sources":["../../../src/components/tooltip/tooltip.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAC,UAAU,EAAE,IAAI,EAAE,GAAG,EAAiB,MAAM,KAAK,CAAC;AAC1D,OAAO,EAAC,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,qBAAqB,EAAC,MAAM,mBAAmB,CAAC;AACxF,OAAO,EAAC,QAAQ,EAAC,MAAM,6BAA6B,CAAC;AACrD,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AI,EAAC,CAAC;2CAAkB;AAE1C;IAAhB,KAAK,EAAE;6CAA4B;AAQH;IAAhC,qBAAqB,EAAE;mDAA0C;AAfvD,SAAS;IADrB,aAAa,CAAC,YAAY,CAAC;GACf,SAAS,CA8QrB"}
|
package/dist/styles/index.css
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sondor-technology/sondor-components",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.9",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -173,6 +173,38 @@
|
|
|
173
173
|
"./modal": {
|
|
174
174
|
"types": "./dist/components/modal/modal.d.ts",
|
|
175
175
|
"default": "./dist/components/modal/modal.js"
|
|
176
|
+
},
|
|
177
|
+
"./toggle-group": {
|
|
178
|
+
"types": "./dist/components/toggle-group/toggle-group.d.ts",
|
|
179
|
+
"default": "./dist/components/toggle-group/toggle-group.js"
|
|
180
|
+
},
|
|
181
|
+
"./toggle-button": {
|
|
182
|
+
"types": "./dist/components/toggle-group/toggle-button.d.ts",
|
|
183
|
+
"default": "./dist/components/toggle-group/toggle-button.js"
|
|
184
|
+
},
|
|
185
|
+
"./calendar": {
|
|
186
|
+
"types": "./dist/components/calendar/calendar.d.ts",
|
|
187
|
+
"default": "./dist/components/calendar/calendar.js"
|
|
188
|
+
},
|
|
189
|
+
"./time-picker": {
|
|
190
|
+
"types": "./dist/components/time-picker/time-picker.d.ts",
|
|
191
|
+
"default": "./dist/components/time-picker/time-picker.js"
|
|
192
|
+
},
|
|
193
|
+
"./cron-builder": {
|
|
194
|
+
"types": "./dist/components/cron-builder/cron-builder.d.ts",
|
|
195
|
+
"default": "./dist/components/cron-builder/cron-builder.js"
|
|
196
|
+
},
|
|
197
|
+
"./pin-input": {
|
|
198
|
+
"types": "./dist/components/pin-input/pin-input.d.ts",
|
|
199
|
+
"default": "./dist/components/pin-input/pin-input.js"
|
|
200
|
+
},
|
|
201
|
+
"./tooltip": {
|
|
202
|
+
"types": "./dist/components/tooltip/tooltip.d.ts",
|
|
203
|
+
"default": "./dist/components/tooltip/tooltip.js"
|
|
204
|
+
},
|
|
205
|
+
"./popover": {
|
|
206
|
+
"types": "./dist/components/popover/popover.d.ts",
|
|
207
|
+
"default": "./dist/components/popover/popover.js"
|
|
176
208
|
}
|
|
177
209
|
},
|
|
178
210
|
"sideEffects": [
|