monobill-mintui 0.6.650 → 0.6.652
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/bin/component-dependencies.json +13 -1
- package/dist/components/chunks/ScrollFade-D1FPF6ZS.js +82 -0
- package/dist/components/chunks/ScrollFade-DT2Br2g7.js +1 -0
- package/dist/components/chunks/date-picker-BQsCoKaK.js +1282 -0
- package/dist/components/chunks/date-picker-tm5Oc92c.js +1 -0
- package/dist/components/chunks/{input-CYv5hraJ.js → input-DcglGwsR.js} +13 -6
- package/dist/components/chunks/input-awdYlp-G.js +1 -0
- package/dist/components/chunks/{popover-DB1OaYVe.js → popover-FdMS4yAD.js} +54 -14
- package/dist/components/chunks/popover-wGdggZ-a.js +1 -0
- package/dist/components/chunks/{table-DRdsVUJL.js → table-B9e-cnAC.js} +7 -6
- package/dist/components/chunks/table-vjF3q3J5.js +1 -0
- package/dist/components/chunks/time-picker-Cq3qzkDb.js +1 -0
- package/dist/components/chunks/time-picker-S0bc0BPU.js +360 -0
- package/dist/components/date-picker/DatePicker.d.ts +5 -0
- package/dist/components/date-picker/DatePicker.d.ts.map +1 -1
- package/dist/components/date-picker/browser.js +2 -1270
- package/dist/components/date-picker/index.cjs +1 -1
- package/dist/components/date-picker/index.js +2 -1270
- package/dist/components/datetime-picker/DateTimePicker.d.ts +44 -0
- package/dist/components/datetime-picker/DateTimePicker.d.ts.map +1 -0
- package/dist/components/datetime-picker/browser.js +255 -0
- package/dist/components/datetime-picker/index.cjs +1 -0
- package/dist/components/datetime-picker/index.d.ts +4 -0
- package/dist/components/datetime-picker/index.d.ts.map +1 -0
- package/dist/components/datetime-picker/index.js +243 -0
- package/dist/components/form/Form.d.ts.map +1 -1
- package/dist/components/form/browser.js +9 -8
- package/dist/components/form/index.cjs +1 -1
- package/dist/components/form/index.js +9 -8
- package/dist/components/input/browser.js +1 -1
- package/dist/components/input/index.cjs +1 -1
- package/dist/components/input/index.js +1 -1
- package/dist/components/link/browser.js +1 -1
- package/dist/components/link/index.cjs +1 -1
- package/dist/components/link/index.js +1 -1
- package/dist/components/navigation/browser.js +2 -2
- package/dist/components/navigation/index.cjs +1 -1
- package/dist/components/navigation/index.js +2 -2
- package/dist/components/popover/Popover.d.ts.map +1 -1
- package/dist/components/popover/browser.js +1 -1
- package/dist/components/popover/index.cjs +1 -1
- package/dist/components/popover/index.js +1 -1
- package/dist/components/resource-table/ResourceTable.d.ts +1 -0
- package/dist/components/resource-table/ResourceTable.d.ts.map +1 -1
- package/dist/components/resource-table/browser.js +22 -22
- package/dist/components/resource-table/index.cjs +2 -2
- package/dist/components/resource-table/index.js +22 -22
- package/dist/components/scroll-fade/ScrollFade.d.ts +15 -0
- package/dist/components/scroll-fade/ScrollFade.d.ts.map +1 -0
- package/dist/components/scroll-fade/browser.js +16 -0
- package/dist/components/scroll-fade/index.cjs +1 -0
- package/dist/components/scroll-fade/index.d.ts +6 -0
- package/dist/components/scroll-fade/index.d.ts.map +1 -0
- package/dist/components/scroll-fade/index.js +4 -0
- package/dist/components/search/Search.d.ts.map +1 -1
- package/dist/components/search/browser.js +3 -3
- package/dist/components/search/index.cjs +1 -1
- package/dist/components/search/index.js +3 -3
- package/dist/components/select/NativeSelect.d.ts +38 -0
- package/dist/components/select/NativeSelect.d.ts.map +1 -0
- package/dist/components/select/Select.d.ts +36 -29
- package/dist/components/select/Select.d.ts.map +1 -1
- package/dist/components/select/browser.js +313 -19
- package/dist/components/select/index.cjs +1 -1
- package/dist/components/select/index.d.ts +3 -2
- package/dist/components/select/index.d.ts.map +1 -1
- package/dist/components/select/index.js +313 -19
- package/dist/components/side-navigation/SideNavigation.d.ts +1 -0
- package/dist/components/side-navigation/SideNavigation.d.ts.map +1 -1
- package/dist/components/side-navigation/browser.js +24 -23
- package/dist/components/side-navigation/index.cjs +1 -1
- package/dist/components/side-navigation/index.js +24 -23
- package/dist/components/sortable/browser.js +1 -1
- package/dist/components/sortable/index.cjs +1 -1
- package/dist/components/sortable/index.js +1 -1
- package/dist/components/table/Table.d.ts +1 -0
- package/dist/components/table/Table.d.ts.map +1 -1
- package/dist/components/table/browser.js +1 -1
- package/dist/components/table/index.cjs +1 -1
- package/dist/components/table/index.js +1 -1
- package/dist/components/tags/browser.js +1 -1
- package/dist/components/tags/index.cjs +1 -1
- package/dist/components/tags/index.js +1 -1
- package/dist/components/time-picker/TimePicker.d.ts +1 -0
- package/dist/components/time-picker/TimePicker.d.ts.map +1 -1
- package/dist/components/time-picker/browser.js +2 -347
- package/dist/components/time-picker/index.cjs +1 -1
- package/dist/components/time-picker/index.js +2 -347
- package/dist/components/tree/Tree.d.ts +2 -0
- package/dist/components/tree/Tree.d.ts.map +1 -1
- package/dist/components/tree/browser.js +15 -7
- package/dist/components/tree/index.cjs +1 -1
- package/dist/components/tree/index.js +15 -7
- package/dist/datetime-picker.css +3 -0
- package/dist/index.cjs +4 -4
- package/dist/index.css +22 -9
- package/dist/index.d.ts +3 -1
- package/dist/index.js +1413 -739
- package/dist/modal.css +1 -1
- package/dist/navigation-search.json +15 -1
- package/dist/navigation.css +1 -1
- package/dist/off-canvas.css +1 -1
- package/dist/popover.css +1 -1
- package/dist/scroll-fade.css +3 -0
- package/dist/select.css +1 -1
- package/dist/side-navigation.css +1 -1
- package/dist/theme.css +7 -2
- package/dist/time-picker.css +1 -1
- package/package.json +19 -1
- package/dist/components/chunks/caret-up-DzrY-bTy.js +0 -1
- package/dist/components/chunks/caret-up-ZK3v_oWQ.js +0 -9
- package/dist/components/chunks/input-Du8C2LW8.js +0 -1
- package/dist/components/chunks/popover-CNZ5u-MA.js +0 -1
- package/dist/components/chunks/table-2-0iNQJy.js +0 -1
- /package/dist/components/chunks/{caret-right-BzeJ0Fw3.js → caret-right-BcZ9bOhS.js} +0 -0
- /package/dist/components/chunks/{caret-right-Bh7uMg-Y.js → caret-right-CgIVfus7.js} +0 -0
- /package/dist/components/chunks/{link-BsC3zT_I.js → link-BjbBJpI6.js} +0 -0
- /package/dist/components/chunks/{link-dTjSvr4E.js → link-CU-gTgir.js} +0 -0
- /package/dist/components/chunks/{search-v06eZL4m.js → search--bcFMYMP.js} +0 -0
- /package/dist/components/chunks/{search-CTAGy5ab.js → search-Cixhf7hA.js} +0 -0
- /package/dist/components/chunks/{sortable-B1nMJBah.js → sortable-CNlF0_gv.js} +0 -0
- /package/dist/components/chunks/{sortable-CXM-7eyL.js → sortable-CVK48xj1.js} +0 -0
|
@@ -14,8 +14,8 @@ import { t as e } from "../chunks/register-element-BFYmIynH.js";
|
|
|
14
14
|
import "../chunks/spinner-BjC3nA-C.js";
|
|
15
15
|
import "../chunks/button-CP7K25iD.js";
|
|
16
16
|
import "../chunks/confirm-action-Bf6A7A2j.js";
|
|
17
|
-
import "../chunks/popover-
|
|
18
|
-
import "../chunks/sortable-
|
|
17
|
+
import "../chunks/popover-FdMS4yAD.js";
|
|
18
|
+
import "../chunks/sortable-CNlF0_gv.js";
|
|
19
19
|
//#region src/components/tree/tree-utils.js
|
|
20
20
|
function t(e = []) {
|
|
21
21
|
s(e);
|
|
@@ -117,7 +117,7 @@ function f(e) {
|
|
|
117
117
|
}
|
|
118
118
|
var p = class extends HTMLElement {
|
|
119
119
|
constructor(...e) {
|
|
120
|
-
super(...e), this._items = [], this._undoStack = [], this._redoStack = [], this._selectedId = null, this._expandedIds = /* @__PURE__ */ new Set(), this._root = null, this._confirm = null, this._treeId = `mint-tree-${++l}`, this._liveRegion = null, this._dragExpansion = null, this._autoExpandedIds = /* @__PURE__ */ new Set(), this._dragHoverExpandedId = null, this._keyboardFocusRestore = null, this._onClick = (e) => {
|
|
120
|
+
super(...e), this._items = [], this._undoStack = [], this._redoStack = [], this._selectedId = null, this._expandedIds = /* @__PURE__ */ new Set(), this._root = null, this._confirm = null, this._treeId = `mint-tree-${++l}`, this._liveRegion = null, this._dragExpansion = null, this._autoExpandedIds = /* @__PURE__ */ new Set(), this._dragHoverExpandedId = null, this._keyboardFocusRestore = null, this._suppressSelectionClick = !1, this._selectionClickSuppressionTimer = null, this._onClick = (e) => {
|
|
121
121
|
let t = e.target instanceof Element ? e.target.closest("[data-tree-command]") : null;
|
|
122
122
|
if (!t || !this.contains(t)) return;
|
|
123
123
|
let r = t.getAttribute("data-tree-command"), i = t.getAttribute("data-tree-id");
|
|
@@ -138,8 +138,13 @@ var p = class extends HTMLElement {
|
|
|
138
138
|
else if (r === "toggle" && i) {
|
|
139
139
|
let e = !this._expandedIds.has(i);
|
|
140
140
|
this._setExpanded(i, e, !0);
|
|
141
|
-
} else if (r === "select" && i)
|
|
142
|
-
|
|
141
|
+
} else if (r === "select" && i) {
|
|
142
|
+
if (this.classList.contains("mint-tree-drag-active") || this._suppressSelectionClick) {
|
|
143
|
+
e.preventDefault(), this._suppressSelectionClick = !1, this._selectionClickSuppressionTimer !== null && window.clearTimeout(this._selectionClickSuppressionTimer), this._selectionClickSuppressionTimer = null;
|
|
144
|
+
return;
|
|
145
|
+
}
|
|
146
|
+
this._select(i);
|
|
147
|
+
} else if (r === "create-child" && i) this._closeItemPopover(t), u(this, "mint-tree-create", {
|
|
143
148
|
parentId: i,
|
|
144
149
|
items: this.items
|
|
145
150
|
});
|
|
@@ -228,7 +233,9 @@ var p = class extends HTMLElement {
|
|
|
228
233
|
this._dragExpansion?.childList === n && (n.classList.add("mint-tree-drag-collapse"), n.style.height = "0px", i && r && (i.style.minHeight = `${r.getBoundingClientRect().height}px`));
|
|
229
234
|
});
|
|
230
235
|
}, this._onSortableEnd = (e) => {
|
|
231
|
-
this.classList.remove("mint-tree-drag-active")
|
|
236
|
+
this.classList.remove("mint-tree-drag-active"), this._suppressSelectionClick = !0, this._selectionClickSuppressionTimer !== null && window.clearTimeout(this._selectionClickSuppressionTimer), this._selectionClickSuppressionTimer = window.setTimeout(() => {
|
|
237
|
+
this._suppressSelectionClick = !1, this._selectionClickSuppressionTimer = null;
|
|
238
|
+
}, 300);
|
|
232
239
|
let t = e.detail, r = t && !t.cancelled ? f(t.newParentId) : null;
|
|
233
240
|
for (let e of this._autoExpandedIds) {
|
|
234
241
|
if (e === r) continue;
|
|
@@ -353,7 +360,7 @@ var p = class extends HTMLElement {
|
|
|
353
360
|
this._root || (this._selectedId = f(this.getAttribute("selected-id")), this._expandedIds = this.hasAttribute("expanded-ids") ? this._readExpandedIds(this.getAttribute("expanded-ids")) : this._defaultExpandedIds(this._items), this.addEventListener("click", this._onClick), this.addEventListener("keydown", this._onKeydown, !0), this.addEventListener("mint-sortable-start", this._onSortableStart), this.addEventListener("mint-sortable-end", this._onSortableEnd), this.addEventListener("mint-sortable-drag", this._onSortableDrag), this.addEventListener("mint-sortable-drag-over", this._onSortableDragOver), this.addEventListener("mint-sortable-before-drop", this._onSortableBeforeDrop), this.addEventListener("mint-sortable-change", this._onSortableChange), this._render());
|
|
354
361
|
}
|
|
355
362
|
disconnectedCallback() {
|
|
356
|
-
this._dragExpansion?.timer !== null && this._dragExpansion?.timer !== void 0 && window.clearTimeout(this._dragExpansion.timer), this._keyboardFocusRestore && window.clearTimeout(this._keyboardFocusRestore.timer), this._keyboardFocusRestore = null, this._dragExpansion = null, this._autoExpandedIds.clear(), this._dragHoverExpandedId = null, this.classList.remove("mint-tree-drag-active"), this.removeEventListener("click", this._onClick), this.removeEventListener("keydown", this._onKeydown, !0), this.removeEventListener("mint-sortable-start", this._onSortableStart), this.removeEventListener("mint-sortable-end", this._onSortableEnd), this.removeEventListener("mint-sortable-drag", this._onSortableDrag), this.removeEventListener("mint-sortable-drag-over", this._onSortableDragOver), this.removeEventListener("mint-sortable-before-drop", this._onSortableBeforeDrop), this.removeEventListener("mint-sortable-change", this._onSortableChange), this._root = null;
|
|
363
|
+
this._dragExpansion?.timer !== null && this._dragExpansion?.timer !== void 0 && window.clearTimeout(this._dragExpansion.timer), this._keyboardFocusRestore && window.clearTimeout(this._keyboardFocusRestore.timer), this._selectionClickSuppressionTimer !== null && window.clearTimeout(this._selectionClickSuppressionTimer), this._selectionClickSuppressionTimer = null, this._suppressSelectionClick = !1, this._keyboardFocusRestore = null, this._dragExpansion = null, this._autoExpandedIds.clear(), this._dragHoverExpandedId = null, this.classList.remove("mint-tree-drag-active"), this.removeEventListener("click", this._onClick), this.removeEventListener("keydown", this._onKeydown, !0), this.removeEventListener("mint-sortable-start", this._onSortableStart), this.removeEventListener("mint-sortable-end", this._onSortableEnd), this.removeEventListener("mint-sortable-drag", this._onSortableDrag), this.removeEventListener("mint-sortable-drag-over", this._onSortableDragOver), this.removeEventListener("mint-sortable-before-drop", this._onSortableBeforeDrop), this.removeEventListener("mint-sortable-change", this._onSortableChange), this._root = null;
|
|
357
364
|
}
|
|
358
365
|
attributeChangedCallback(e, t, n) {
|
|
359
366
|
if (!(t === n || !this.isConnected)) {
|
|
@@ -595,6 +602,7 @@ var p = class extends HTMLElement {
|
|
|
595
602
|
}), u(this, t.oldParentId === t.newParentId ? "mint-tree-reorder" : "mint-tree-reparent", t), this._announce(`${t.item.label} moved${t.newParentId ? ` into ${n(this._items, t.newParentId)?.label || "a group"}` : " to the top level"}.`);
|
|
596
603
|
}
|
|
597
604
|
_select(e) {
|
|
605
|
+
if (this.classList.contains("mint-tree-drag-active")) return;
|
|
598
606
|
let t = n(this._items, e);
|
|
599
607
|
!t || t.disabled || this._disabled() || (this._selectedId = e, this.setAttribute("selected-id", e), this._syncSelectionDOM(), u(this, "mint-tree-select", {
|
|
600
608
|
item: { ...t },
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/* mint-ui component style: datetime-picker */
|
|
2
|
+
/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */
|
|
3
|
+
@layer utilities{.visible{visibility:visible}.static{position:static}.hidden{display:none}.inline{display:inline}}mint-datetime-picker{width:100%;min-width:calc(var(--spacing,.25rem) * 0);color:var(--mint-color-text,#28372d);font-family:var(--mint-font-sans,inherit);display:block}mint-datetime-picker .mint-datetime-picker-content{min-width:calc(var(--spacing,.25rem) * 0);gap:calc(var(--spacing,.25rem) * 4);display:grid}mint-datetime-picker .mint-date-picker-inputs{display:none!important}mint-datetime-picker .mint-datetime-picker-panel{box-sizing:border-box;border:1px solid var(--mint-color-border,#dfe6e0);background:var(--mint-color-surface-raised,#fff);min-width:min(18rem,100vw - 2rem);color:var(--mint-color-text,#28372d);border-radius:.8rem;padding:.75rem;box-shadow:0 12px 32px #19281e24}mint-datetime-picker .mint-datetime-picker-time-heading{border:0;border-bottom:1px solid var(--mint-color-border,#dfe6e0);width:100%;color:var(--mint-color-text-secondary,#66736a);font:inherit;text-align:left;text-decoration-line:underline;text-decoration-style:dotted;-webkit-text-decoration-color:var(--mint-color-primary,#315943);-webkit-text-decoration-color:var(--mint-color-primary,#315943);-webkit-text-decoration-color:var(--mint-color-primary,#315943);text-decoration-color:var(--mint-color-primary,#315943);text-underline-offset:.2em;cursor:pointer;background:0 0;margin:0 0 .5rem;padding:.4rem .45rem .65rem;font-weight:600;display:block}mint-datetime-picker .mint-datetime-picker-time-heading:hover{color:var(--mint-color-text,#28372d)}mint-datetime-picker .mint-time-picker-popover{width:100%;min-width:0;max-width:none;box-shadow:none;background:0 0;border:0;border-radius:0;padding:0}mint-datetime-picker .mint-datetime-picker-info{color:var(--mint-color-text-secondary,#66736a)}
|