@oscarpalmer/oui 0.42.0 → 0.43.0
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/css/grid.css +38 -0
- package/dist/js/color-picker/color-picker.constants.d.mts +1 -1
- package/dist/js/color-picker/color-picker.constants.mjs +1 -2
- package/dist/js/color-picker/color-picker.dom.d.mts +2 -4
- package/dist/js/color-picker/color-picker.dom.mjs +1 -2
- package/dist/js/color-picker/color-picker.event.d.mts +2 -4
- package/dist/js/color-picker/color-picker.event.mjs +6 -7
- package/dist/js/color-picker/color-picker.form.d.mts +2 -4
- package/dist/js/color-picker/color-picker.form.mjs +2 -3
- package/dist/js/color-picker/color-picker.misc.d.mts +1 -1
- package/dist/js/color-picker/color-picker.misc.mjs +1 -2
- package/dist/js/color-picker/color-picker.model.d.mts +1 -1
- package/dist/js/color-picker/color-picker.model.mjs +1 -2
- package/dist/js/color-picker/color-picker.output.d.mts +2 -4
- package/dist/js/color-picker/color-picker.output.mjs +4 -5
- package/dist/js/color-picker/color-picker.state.d.mts +2 -4
- package/dist/js/color-picker/color-picker.state.mjs +4 -5
- package/dist/js/color-picker/index.d.mts +5 -7
- package/dist/js/color-picker/index.mjs +3 -4
- package/dist/js/{color-picker.constants-BZgXQr5o.d.mts → color-picker.constants-DdttC4ab.d.mts} +3 -8
- package/dist/js/{color-picker.misc-BIS3R6jk.d.mts → color-picker.misc-BH_tFyWR.d.mts} +1 -3
- package/dist/js/combobox/combobox.constants.d.mts +2 -2
- package/dist/js/combobox/combobox.constants.mjs +3 -3
- package/dist/js/combobox/combobox.dom.d.mts +2 -4
- package/dist/js/combobox/combobox.dom.mjs +3 -3
- package/dist/js/combobox/combobox.event.d.mts +3 -5
- package/dist/js/combobox/combobox.event.mjs +1 -1
- package/dist/js/combobox/combobox.misc.d.mts +1 -1
- package/dist/js/combobox/combobox.misc.mjs +1 -1
- package/dist/js/combobox/combobox.model.d.mts +1 -1
- package/dist/js/combobox/combobox.state.d.mts +3 -5
- package/dist/js/combobox/combobox.state.mjs +1 -1
- package/dist/js/combobox/index.d.mts +7 -9
- package/dist/js/combobox/index.mjs +3 -4
- package/dist/js/{combobox.constants-Hb3bqqQJ.d.mts → combobox.constants-CDnBNJC0.d.mts} +3 -4
- package/dist/js/{combobox.misc-DRDFk6X8.d.mts → combobox.misc-Csh9lm9_.d.mts} +1 -3
- package/dist/js/{combobox.model-gjEI2VqZ.d.mts → combobox.model-BRGQDuRl.d.mts} +2 -4
- package/dist/js/{combobox.state-AstCICiH.mjs → combobox.state-Bjt0dwe3.mjs} +29 -29
- package/dist/js/dialog/dialog.model.d.mts +1 -1
- package/dist/js/dialog/dialog.model.mjs +1 -2
- package/dist/js/dialog/index.d.mts +1 -3
- package/dist/js/dialog/index.mjs +2 -3
- package/dist/js/{dialog.model-Dv_h9Kns.d.mts → dialog.model-cYq7rTKL.d.mts} +2 -4
- package/dist/js/floatable/floatable.embedded.d.mts +1 -1
- package/dist/js/floatable/floatable.embedded.mjs +1 -2
- package/dist/js/floatable/floatable.model.d.mts +1 -1
- package/dist/js/floatable/floatable.model.mjs +1 -2
- package/dist/js/floatable/floatable.standalone.d.mts +2 -2
- package/dist/js/{floatable.embedded-ncshL3Sa.d.mts → floatable.embedded-Cr1KX6GZ.d.mts} +1 -3
- package/dist/js/{floatable.model-DXsQgoU7.d.mts → floatable.model-jS5Ui5Av.d.mts} +0 -2
- package/dist/js/focus-trap/focus-trap.embedded.d.mts +1 -1
- package/dist/js/focus-trap/focus-trap.embedded.mjs +4 -5
- package/dist/js/focus-trap/focus-trap.model.d.mts +2 -2
- package/dist/js/focus-trap/focus-trap.model.mjs +3 -3
- package/dist/js/focus-trap/focus-trap.standalone.d.mts +2 -2
- package/dist/js/{focus-trap.embedded-DpcPkP7c.d.mts → focus-trap.embedded-BVXcd4OO.d.mts} +1 -3
- package/dist/js/{focus-trap.model-CpltX5B5.d.mts → focus-trap.model-wg0iAZ7x.d.mts} +2 -3
- package/dist/js/grid/grid.dom.d.mts +7 -0
- package/dist/js/grid/grid.dom.mjs +171 -0
- package/dist/js/grid/grid.event.d.mts +7 -0
- package/dist/js/grid/grid.event.mjs +1 -0
- package/dist/js/grid/grid.misc.d.mts +6 -0
- package/dist/js/grid/grid.misc.mjs +1 -0
- package/dist/js/grid/grid.model.d.mts +2 -0
- package/dist/js/grid/grid.model.mjs +39 -0
- package/dist/js/grid/index.d.mts +22 -0
- package/dist/js/grid/index.mjs +48 -0
- package/dist/js/grid.event-K_pG2vmS.mjs +192 -0
- package/dist/js/grid.model-SiNst5db.d.mts +90 -0
- package/dist/js/index.d.mts +22 -21
- package/dist/js/index.mjs +5 -3
- package/dist/js/internal/attributable.d.mts +1 -3
- package/dist/js/internal/attributable.mjs +3 -3
- package/dist/js/internal/draggable/draggable.model.d.mts +2 -2
- package/dist/js/internal/draggable/draggable.model.mjs +3 -3
- package/dist/js/internal/draggable/index.d.mts +2 -4
- package/dist/js/internal/draggable/index.mjs +18 -14
- package/dist/js/internal/l10n/index.d.mts +2 -4
- package/dist/js/internal/l10n/index.mjs +30 -22
- package/dist/js/internal/l10n/l10n.model.d.mts +1 -1
- package/dist/js/internal/l10n/l10n.model.mjs +1 -2
- package/dist/js/internal/misc.d.mts +2 -3
- package/dist/js/internal/misc.mjs +5 -3
- package/dist/js/internal/navigable/index.d.mts +2 -4
- package/dist/js/internal/navigable/index.mjs +1 -2
- package/dist/js/internal/navigable/navigable.model.d.mts +1 -1
- package/dist/js/internal/navigable/navigable.model.mjs +1 -2
- package/dist/js/internal/option-list/option-list.constants.d.mts +3 -5
- package/dist/js/internal/option-list/option-list.constants.mjs +3 -4
- package/dist/js/internal/option-list/option-list.data.d.mts +2 -4
- package/dist/js/internal/option-list/option-list.data.mjs +1 -1
- package/dist/js/internal/option-list/option-list.dom.d.mts +3 -5
- package/dist/js/internal/option-list/option-list.dom.mjs +1 -1
- package/dist/js/internal/option-list/option-list.event.d.mts +3 -5
- package/dist/js/internal/option-list/option-list.event.mjs +4 -5
- package/dist/js/internal/option-list/option-list.form.d.mts +3 -5
- package/dist/js/internal/option-list/option-list.form.mjs +2 -3
- package/dist/js/internal/option-list/option-list.misc.d.mts +3 -5
- package/dist/js/internal/option-list/option-list.misc.mjs +1 -1
- package/dist/js/internal/option-list/option-list.model.d.mts +2 -2
- package/dist/js/internal/option-list/option-list.model.mjs +7 -1
- package/dist/js/internal/option-list/option-list.state.d.mts +3 -5
- package/dist/js/internal/option-list/option-list.state.mjs +2 -3
- package/dist/js/l10n/index.d.mts +1 -1
- package/dist/js/{l10n.model-D1E1u35L.d.mts → l10n.model-DxwLXnFl.d.mts} +0 -2
- package/dist/js/listbox/index.d.mts +6 -8
- package/dist/js/listbox/index.mjs +3 -4
- package/dist/js/listbox/listbox.constants.d.mts +1 -1
- package/dist/js/listbox/listbox.constants.mjs +1 -2
- package/dist/js/listbox/listbox.dom.d.mts +2 -4
- package/dist/js/listbox/listbox.dom.mjs +1 -1
- package/dist/js/listbox/listbox.event.d.mts +3 -5
- package/dist/js/listbox/listbox.event.mjs +1 -1
- package/dist/js/listbox/listbox.misc.d.mts +1 -1
- package/dist/js/listbox/listbox.misc.mjs +1 -1
- package/dist/js/listbox/listbox.model.d.mts +1 -1
- package/dist/js/listbox/listbox.state.d.mts +3 -5
- package/dist/js/listbox/listbox.state.mjs +1 -1
- package/dist/js/{listbox.constants-DOBMwKup.d.mts → listbox.constants-1yMPRl2C.d.mts} +1 -3
- package/dist/js/{listbox.misc-DwfB4Mu_.d.mts → listbox.misc-CkW28nUS.d.mts} +1 -3
- package/dist/js/{listbox.model-C0MYWXZe.d.mts → listbox.model-CUA_DaR9.d.mts} +1 -3
- package/dist/js/{listbox.state-BrN296BM.mjs → listbox.state-DO58GDqc.mjs} +8 -12
- package/dist/js/menu/index.mjs +2 -3
- package/dist/js/menu/menu.model.d.mts +3 -5
- package/dist/js/menu/menu.model.mjs +1 -2
- package/dist/js/movable/movable.embedded.d.mts +1 -1
- package/dist/js/movable/movable.embedded.mjs +3 -4
- package/dist/js/movable/movable.model.d.mts +2 -2
- package/dist/js/movable/movable.model.mjs +3 -3
- package/dist/js/movable/movable.standalone.d.mts +2 -2
- package/dist/js/{movable.embedded-C1bDTLGs.d.mts → movable.embedded-HjPPob-Z.d.mts} +1 -3
- package/dist/js/{movable.model-D9nnPWKk.d.mts → movable.model-CQ3AbTrq.d.mts} +13 -7
- package/dist/js/{navigable.model-BqoR6iBv.d.mts → navigable.model-CrzJqKE7.d.mts} +0 -2
- package/dist/js/{option-list.data-CgMyUwPc.mjs → option-list.data-Be6wopy9.mjs} +7 -10
- package/dist/js/{option-list.model-CCPUlPeX.d.mts → option-list.model-DNZq-X0d.d.mts} +7 -4
- package/dist/js/popover/index.d.mts +1 -3
- package/dist/js/popover/index.mjs +3 -4
- package/dist/js/popover/popover.model.d.mts +1 -1
- package/dist/js/popover/popover.model.mjs +1 -2
- package/dist/js/{popover.model-DiLdz0Hc.d.mts → popover.model-CrrIdSmS.d.mts} +2 -4
- package/dist/js/resizable/resizable.embedded.d.mts +2 -2
- package/dist/js/resizable/resizable.embedded.mjs +113 -38
- package/dist/js/resizable/resizable.model.d.mts +2 -2
- package/dist/js/resizable/resizable.model.mjs +8 -3
- package/dist/js/resizable/resizable.standalone.d.mts +3 -3
- package/dist/js/resizable/resizable.standalone.mjs +3 -1
- package/dist/js/{resizable.embedded-D9mb-Wm_.d.mts → resizable.embedded-DQclAEP-.d.mts} +3 -4
- package/dist/js/{resizable.model-vCxaFdOA.d.mts → resizable.model-BOufXDXx.d.mts} +18 -3
- package/dist/js/sortable/sortable.embedded.d.mts +1 -1
- package/dist/js/sortable/sortable.embedded.mjs +5 -6
- package/dist/js/sortable/sortable.model.d.mts +2 -2
- package/dist/js/sortable/sortable.model.mjs +4 -3
- package/dist/js/sortable/sortable.standalone.d.mts +2 -2
- package/dist/js/{sortable.embedded-CrEGff9k.d.mts → sortable.embedded-B5LPz-c_.d.mts} +1 -3
- package/dist/js/splitter/index.d.mts +2 -4
- package/dist/js/splitter/index.mjs +4 -4
- package/dist/js/splitter/splitter.model.d.mts +1 -1
- package/dist/js/splitter/splitter.model.mjs +1 -2
- package/dist/js/{splitter.model-C24W6eZ7.d.mts → splitter.model-DQDbIe4P.d.mts} +0 -2
- package/dist/js/tabs/index.d.mts +2 -4
- package/dist/js/tabs/index.mjs +10 -11
- package/dist/js/tabs/tabs.model.d.mts +1 -1
- package/dist/js/tabs/tabs.model.mjs +1 -2
- package/dist/js/{tabs.model-BHPy7fPo.d.mts → tabs.model-CvylbR2o.d.mts} +1 -3
- package/dist/js/toolbar/index.mjs +1 -2
- package/dist/js/toolbar/toolbar.model.d.mts +2 -4
- package/dist/js/toolbar/toolbar.model.mjs +1 -2
- package/dist/js/tooltip/index.d.mts +1 -3
- package/dist/js/tooltip/index.mjs +1 -2
- package/dist/js/tooltip/tooltip.model.d.mts +1 -1
- package/dist/js/tooltip/tooltip.model.mjs +1 -2
- package/dist/js/{tooltip.model-BpNStw5z.d.mts → tooltip.model-BI3UK-VU.d.mts} +1 -3
- package/package.json +11 -8
package/dist/js/tabs/index.mjs
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import { NAVIGABLE_SYMBOL } from "../internal/navigable/navigable.model.mjs";
|
|
2
1
|
import { getNavigable, getNavigableOrientation } from "../internal/navigable/index.mjs";
|
|
2
|
+
import { NAVIGABLE_SYMBOL } from "../internal/navigable/navigable.model.mjs";
|
|
3
3
|
import { OuiTabsEvent, TABS_SYMBOL } from "./tabs.model.mjs";
|
|
4
4
|
import { getAria, setAria } from "@oscarpalmer/toretto/aria";
|
|
5
5
|
import { getAttribute, setAttribute } from "@oscarpalmer/toretto/attribute";
|
|
6
|
+
import { getNumber } from "@oscarpalmer/atoms/number";
|
|
7
|
+
import { min } from "@oscarpalmer/atoms/math";
|
|
6
8
|
import { createElement } from "@oscarpalmer/toretto/create";
|
|
7
|
-
|
|
9
|
+
// src/js/tabs/index.ts
|
|
8
10
|
var OuiTabsElement = class extends HTMLElement {
|
|
9
11
|
static observedAttributes = ["active"];
|
|
10
12
|
get active() {
|
|
@@ -24,9 +26,7 @@ var OuiTabsElement = class extends HTMLElement {
|
|
|
24
26
|
this[TABS_SYMBOL] = { component: void 0 };
|
|
25
27
|
}
|
|
26
28
|
attributeChangedCallback(name, _, value) {
|
|
27
|
-
|
|
28
|
-
case "active": setActive(this[TABS_SYMBOL], value);
|
|
29
|
-
}
|
|
29
|
+
if (name === "active") setActive(this[TABS_SYMBOL], value);
|
|
30
30
|
}
|
|
31
31
|
connectedCallback() {
|
|
32
32
|
const state = this[TABS_SYMBOL];
|
|
@@ -133,8 +133,8 @@ function getActive(element, max) {
|
|
|
133
133
|
const attribute = getAttribute(element, "active");
|
|
134
134
|
let index = 0;
|
|
135
135
|
if (attribute != null) {
|
|
136
|
-
const value =
|
|
137
|
-
if (!Number.isNaN(value) && value >= 0) index = value
|
|
136
|
+
const value = getNumber(attribute);
|
|
137
|
+
if (!Number.isNaN(value) && value >= 0) index = min([value, max]);
|
|
138
138
|
}
|
|
139
139
|
return index;
|
|
140
140
|
}
|
|
@@ -214,10 +214,10 @@ function setActive(state, value) {
|
|
|
214
214
|
const { active, host, navigable, panels } = component;
|
|
215
215
|
const max = panels.elements.length - 1;
|
|
216
216
|
let index;
|
|
217
|
-
if (typeof value === "number" && !Number.isNaN(value) && value >= 0) index = value
|
|
217
|
+
if (typeof value === "number" && !Number.isNaN(value) && value >= 0) index = min([value, max]);
|
|
218
218
|
else if (typeof value === "string") {
|
|
219
|
-
const parsed =
|
|
220
|
-
if (!Number.isNaN(parsed) && parsed >= 0) index = parsed
|
|
219
|
+
const parsed = getNumber(value);
|
|
220
|
+
if (!Number.isNaN(parsed) && parsed >= 0) index = min([parsed, max]);
|
|
221
221
|
}
|
|
222
222
|
if (index == null) setAttribute(host, "active", active);
|
|
223
223
|
else if (index !== active) {
|
|
@@ -233,5 +233,4 @@ const SELECTOR_PANEL = `:scope > [${ATTRIBUTE_PANEL}]`;
|
|
|
233
233
|
const SELECTOR_TAB = `[${TAGNAME}-tab]`;
|
|
234
234
|
let index = 0;
|
|
235
235
|
customElements.define(TAGNAME, OuiTabsElement);
|
|
236
|
-
//#endregion
|
|
237
236
|
export { OuiTabsElement, OuiTabsEvent };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as OuiTabsState, c as TABS_SYMBOL, i as OuiTabsPanels, l as TABS_TAGNAME, n as OuiTabsContent, o as OuiTabsStateComponent, r as OuiTabsEvent, s as OuiTabsTabList, t as GenericOuiTabsElement } from "../tabs.model-
|
|
1
|
+
import { a as OuiTabsState, c as TABS_SYMBOL, i as OuiTabsPanels, l as TABS_TAGNAME, n as OuiTabsContent, o as OuiTabsStateComponent, r as OuiTabsEvent, s as OuiTabsTabList, t as GenericOuiTabsElement } from "../tabs.model-CvylbR2o.mjs";
|
|
2
2
|
export { GenericOuiTabsElement, OuiTabsContent, OuiTabsEvent, OuiTabsPanels, OuiTabsState, OuiTabsStateComponent, OuiTabsTabList, TABS_SYMBOL, TABS_TAGNAME };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/js/tabs/tabs.model.ts
|
|
2
2
|
var OuiTabsEvent = class extends Event {
|
|
3
3
|
oldIndex;
|
|
4
4
|
newIndex;
|
|
@@ -14,5 +14,4 @@ var OuiTabsEvent = class extends Event {
|
|
|
14
14
|
};
|
|
15
15
|
const TABS_TAGNAME = "oui-tabs";
|
|
16
16
|
const TABS_SYMBOL = Symbol(TABS_TAGNAME);
|
|
17
|
-
//#endregion
|
|
18
17
|
export { OuiTabsEvent, TABS_SYMBOL, TABS_TAGNAME };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { d as OuiNavigable, h as OuiNavigableOrientation } from "./navigable.model-
|
|
2
|
-
//#region src/js/tabs/tabs.model.d.ts
|
|
1
|
+
import { d as OuiNavigable, h as OuiNavigableOrientation } from "./navigable.model-CrzJqKE7.mjs";
|
|
3
2
|
type GenericOuiTabsElement = {
|
|
4
3
|
[TABS_SYMBOL]: OuiTabsState;
|
|
5
4
|
} & HTMLElement;
|
|
@@ -36,5 +35,4 @@ type OuiTabsTabList = {
|
|
|
36
35
|
};
|
|
37
36
|
declare const TABS_TAGNAME = "oui-tabs";
|
|
38
37
|
declare const TABS_SYMBOL: unique symbol;
|
|
39
|
-
//#endregion
|
|
40
38
|
export { OuiTabsState as a, TABS_SYMBOL as c, OuiTabsPanels as i, TABS_TAGNAME as l, OuiTabsContent as n, OuiTabsStateComponent as o, OuiTabsEvent as r, OuiTabsTabList as s, GenericOuiTabsElement as t };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { attributable } from "../internal/attributable.mjs";
|
|
2
2
|
import { getNavigable, updateNavigableFocus } from "../internal/navigable/index.mjs";
|
|
3
3
|
import { TOOLBAR_ATTRIBUTE, TOOLBAR_SELECTOR, TOOLBAR_SYMBOL, toolbars } from "./toolbar.model.mjs";
|
|
4
|
-
|
|
4
|
+
// src/js/toolbar/index.ts
|
|
5
5
|
function OuiToolbar(navigable) {
|
|
6
6
|
this[TOOLBAR_SYMBOL] = navigable;
|
|
7
7
|
updateNavigableFocus(navigable, false);
|
|
@@ -23,5 +23,4 @@ function removeToolbar(element) {
|
|
|
23
23
|
toolbars.delete(element);
|
|
24
24
|
}
|
|
25
25
|
attributable(TOOLBAR_ATTRIBUTE, addToolbar, removeToolbar);
|
|
26
|
-
//#endregion
|
|
27
26
|
export {};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { d as OuiNavigable } from "../navigable.model-
|
|
2
|
-
//#region src/js/toolbar/toolbar.model.d.ts
|
|
1
|
+
import { d as OuiNavigable } from "../navigable.model-CrzJqKE7.mjs";
|
|
3
2
|
export type OuiToolbar = {
|
|
4
3
|
[TOOLBAR_SYMBOL]: OuiNavigable;
|
|
5
4
|
destroy(): void;
|
|
@@ -7,5 +6,4 @@ export type OuiToolbar = {
|
|
|
7
6
|
export declare const TOOLBAR_ATTRIBUTE = "oui-toolbar";
|
|
8
7
|
export declare const TOOLBAR_SYMBOL: unique symbol;
|
|
9
8
|
export declare const TOOLBAR_SELECTOR: string;
|
|
10
|
-
export declare const toolbars: WeakMap<Element, OuiToolbar>;
|
|
11
|
-
//#endregion
|
|
9
|
+
export declare const toolbars: WeakMap<Element, OuiToolbar>;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
// src/js/toolbar/toolbar.model.ts
|
|
2
2
|
const TOOLBAR_ATTRIBUTE = "oui-toolbar";
|
|
3
3
|
const TOOLBAR_SYMBOL = Symbol(TOOLBAR_ATTRIBUTE);
|
|
4
4
|
const TOOLBAR_SELECTOR = `[${TOOLBAR_ATTRIBUTE}-item]`;
|
|
5
5
|
const toolbars = /* @__PURE__ */ new WeakMap();
|
|
6
|
-
//#endregion
|
|
7
6
|
export { TOOLBAR_ATTRIBUTE, TOOLBAR_SELECTOR, TOOLBAR_SYMBOL, toolbars };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { n as OuiTooltipState, t as OuiTooltip } from "../tooltip.model-
|
|
2
|
-
//#region src/js/tooltip/index.d.ts
|
|
1
|
+
import { n as OuiTooltipState, t as OuiTooltip } from "../tooltip.model-BI3UK-VU.mjs";
|
|
3
2
|
declare function OuiTooltip(this: OuiTooltip, state: OuiTooltipState): void;
|
|
4
3
|
/**
|
|
5
4
|
* Get the _OuiTooltip_ for an element
|
|
@@ -15,5 +14,4 @@ export declare function getTooltip(element: Element): OuiTooltip | undefined;
|
|
|
15
14
|
* @param value Delay in milliseconds
|
|
16
15
|
*/
|
|
17
16
|
export declare function setTooltipDelay(value: number): void;
|
|
18
|
-
//#endregion
|
|
19
17
|
export type { OuiTooltip };
|
|
@@ -8,7 +8,7 @@ import { on } from "@oscarpalmer/toretto/event";
|
|
|
8
8
|
import { findAncestor } from "@oscarpalmer/toretto/find";
|
|
9
9
|
import { isNullableOrWhitespace } from "@oscarpalmer/atoms/is";
|
|
10
10
|
import { createElement } from "@oscarpalmer/toretto/create";
|
|
11
|
-
|
|
11
|
+
// src/js/tooltip/index.ts
|
|
12
12
|
function OuiTooltip(state) {
|
|
13
13
|
this[TOOLTIP_SYMBOL] = state;
|
|
14
14
|
state.floatable.update();
|
|
@@ -175,5 +175,4 @@ on(document, "focusin", onFocusin);
|
|
|
175
175
|
on(document, "focusout", onFocusout);
|
|
176
176
|
on(document, "pointermove", onPointermove);
|
|
177
177
|
attributable(TOOLTIP_ATTRIBUTE, addTooltip, removeTooltip);
|
|
178
|
-
//#endregion
|
|
179
178
|
export { getTooltip, setTooltipDelay };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as TOOLTIP_ATTRIBUTE_CONTENT_OPEN, c as TOOLTIP_SYMBOL, i as TOOLTIP_ATTRIBUTE_CONTENT, l as tooltipFloatableOptions, n as OuiTooltipState, o as TOOLTIP_SELECTOR, r as TOOLTIP_ATTRIBUTE, s as TOOLTIP_SELECTOR_CONTENT, t as OuiTooltip, u as tooltips } from "../tooltip.model-
|
|
1
|
+
import { a as TOOLTIP_ATTRIBUTE_CONTENT_OPEN, c as TOOLTIP_SYMBOL, i as TOOLTIP_ATTRIBUTE_CONTENT, l as tooltipFloatableOptions, n as OuiTooltipState, o as TOOLTIP_SELECTOR, r as TOOLTIP_ATTRIBUTE, s as TOOLTIP_SELECTOR_CONTENT, t as OuiTooltip, u as tooltips } from "../tooltip.model-BI3UK-VU.mjs";
|
|
2
2
|
export { OuiTooltip, OuiTooltipState, TOOLTIP_ATTRIBUTE, TOOLTIP_ATTRIBUTE_CONTENT, TOOLTIP_ATTRIBUTE_CONTENT_OPEN, TOOLTIP_SELECTOR, TOOLTIP_SELECTOR_CONTENT, TOOLTIP_SYMBOL, tooltipFloatableOptions, tooltips };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/js/tooltip/tooltip.model.ts
|
|
2
2
|
const TOOLTIP_ATTRIBUTE = "oui-tooltip";
|
|
3
3
|
const TOOLTIP_ATTRIBUTE_CONTENT = `${TOOLTIP_ATTRIBUTE}-content`;
|
|
4
4
|
const TOOLTIP_ATTRIBUTE_CONTENT_OPEN = `${TOOLTIP_ATTRIBUTE_CONTENT}-open`;
|
|
@@ -11,5 +11,4 @@ const tooltipFloatableOptions = {
|
|
|
11
11
|
reusable: true
|
|
12
12
|
};
|
|
13
13
|
const tooltips = /* @__PURE__ */ new WeakMap();
|
|
14
|
-
//#endregion
|
|
15
14
|
export { TOOLTIP_ATTRIBUTE, TOOLTIP_ATTRIBUTE_CONTENT, TOOLTIP_ATTRIBUTE_CONTENT_OPEN, TOOLTIP_SELECTOR, TOOLTIP_SELECTOR_CONTENT, TOOLTIP_SYMBOL, tooltipFloatableOptions, tooltips };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { c as OuiFloatable, l as OuiFloatableOptions } from "./floatable.model-
|
|
2
|
-
//#region src/js/tooltip/tooltip.model.d.ts
|
|
1
|
+
import { c as OuiFloatable, l as OuiFloatableOptions } from "./floatable.model-jS5Ui5Av.mjs";
|
|
3
2
|
type OuiTooltip = {
|
|
4
3
|
[TOOLTIP_SYMBOL]: OuiTooltipState;
|
|
5
4
|
/**
|
|
@@ -33,5 +32,4 @@ declare const TOOLTIP_SELECTOR_CONTENT: string;
|
|
|
33
32
|
declare const TOOLTIP_SYMBOL: unique symbol;
|
|
34
33
|
declare const tooltipFloatableOptions: OuiFloatableOptions;
|
|
35
34
|
declare const tooltips: WeakMap<Element, OuiTooltip>;
|
|
36
|
-
//#endregion
|
|
37
35
|
export { TOOLTIP_ATTRIBUTE_CONTENT_OPEN as a, TOOLTIP_SYMBOL as c, TOOLTIP_ATTRIBUTE_CONTENT as i, tooltipFloatableOptions as l, OuiTooltipState as n, TOOLTIP_SELECTOR as o, TOOLTIP_ATTRIBUTE as r, TOOLTIP_SELECTOR_CONTENT as s, OuiTooltip as t, tooltips as u };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oscarpalmer/oui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.43.0",
|
|
4
4
|
"description": "Styles, components, and utilities for building websites and applications.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"css",
|
|
@@ -52,6 +52,10 @@
|
|
|
52
52
|
"types": "./dist/js/focus-trap/focus-trap.standalone.d.mts",
|
|
53
53
|
"default": "./dist/js/focus-trap/focus-trap.standalone.mjs"
|
|
54
54
|
},
|
|
55
|
+
"./grid": {
|
|
56
|
+
"types": "./dist/js/grid/index.d.mts",
|
|
57
|
+
"default": "./dist/js/grid/index.mjs"
|
|
58
|
+
},
|
|
55
59
|
"./l10n": {
|
|
56
60
|
"types": "./dist/js/l10n/index.d.mts",
|
|
57
61
|
"default": "./dist/js/l10n/index.mjs"
|
|
@@ -109,23 +113,22 @@
|
|
|
109
113
|
"watch": "concurrently \"cd ./demo/public && php -qS localhost:4567 \" \"vp run postcss:watch\" \"vp run css:watch\" \"vp run tsdown\""
|
|
110
114
|
},
|
|
111
115
|
"dependencies": {
|
|
112
|
-
"@oscarpalmer/atoms": "^0.
|
|
113
|
-
"@oscarpalmer/toretto": "^0.
|
|
116
|
+
"@oscarpalmer/atoms": "^0.223",
|
|
117
|
+
"@oscarpalmer/toretto": "^0.58"
|
|
114
118
|
},
|
|
115
119
|
"devDependencies": {
|
|
116
120
|
"@vitest/coverage-istanbul": "^5",
|
|
117
121
|
"autoprefixer": "^10.6",
|
|
118
122
|
"concurrently": "^10",
|
|
119
|
-
"jsdom": "^
|
|
123
|
+
"jsdom": "^31",
|
|
120
124
|
"postcss-cli": "^12",
|
|
121
125
|
"postcss-input-range": "^6",
|
|
122
126
|
"postcss-scss": "^4",
|
|
123
|
-
"sass": "^1.
|
|
127
|
+
"sass": "^1.108",
|
|
124
128
|
"stylelint": "^17.16",
|
|
125
129
|
"stylelint-config-standard-scss": "^17",
|
|
126
130
|
"tsdown": "^0.23",
|
|
127
131
|
"typescript": "^7",
|
|
128
|
-
"vite-plus": "^1.
|
|
129
|
-
}
|
|
130
|
-
"packageManager": "npm@11.12.1"
|
|
132
|
+
"vite-plus": "^1.5"
|
|
133
|
+
}
|
|
131
134
|
}
|