@quidgest/ui 0.22.0 → 0.23.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/CHANGELOG.md +25 -0
- package/dist/json/api.json +197 -85
- package/dist/ui.css +2054 -1250
- package/dist/ui.esm.js +770 -751
- package/dist/ui.js +701 -682
- package/dist/ui.min.css +1 -1
- package/dist/ui.min.js +701 -682
- package/dist/ui.scss +1048 -880
- package/esm/components/QBadge/QBadge.d.ts +1 -1
- package/esm/components/QBadge/QBadge.d.ts.map +1 -1
- package/esm/components/QBadge/QBadge.vue.js +14 -7
- package/esm/components/QBadge/index.d.ts +3 -3
- package/esm/components/QBadge/types.d.ts +11 -4
- package/esm/components/QBadge/types.d.ts.map +1 -1
- package/esm/components/QButton/QButton.d.ts +0 -1
- package/esm/components/QButton/QButton.d.ts.map +1 -1
- package/esm/components/QButton/QButton.vue.js +10 -4
- package/esm/components/QButton/index.d.ts +0 -3
- package/esm/components/QButton/index.d.ts.map +1 -1
- package/esm/components/QButton/types.d.ts +11 -4
- package/esm/components/QButton/types.d.ts.map +1 -1
- package/esm/components/QButtonGroup/QButtonGroup.d.ts.map +1 -1
- package/esm/components/QButtonGroup/QButtonGroup.vue.js +2 -0
- package/esm/components/QButtonGroup/types.d.ts +9 -1
- package/esm/components/QButtonGroup/types.d.ts.map +1 -1
- package/esm/components/QCheckbox/QCheckbox.d.ts +0 -1
- package/esm/components/QCheckbox/QCheckbox.d.ts.map +1 -1
- package/esm/components/QCheckbox/QCheckbox.vue.js +2 -2
- package/esm/components/QCheckbox/index.d.ts +3 -6
- package/esm/components/QCheckbox/index.d.ts.map +1 -1
- package/esm/components/QCheckbox/types.d.ts +4 -3
- package/esm/components/QCheckbox/types.d.ts.map +1 -1
- package/esm/components/QCollapsible/types.d.ts +1 -1
- package/esm/components/QCollapsible/types.d.ts.map +1 -1
- package/esm/components/QCombobox/QCombobox.d.ts +6 -8
- package/esm/components/QCombobox/QCombobox.d.ts.map +1 -1
- package/esm/components/QCombobox/QCombobox.vue.js +1 -1
- package/esm/components/QCombobox/index.d.ts +3 -4
- package/esm/components/QCombobox/index.d.ts.map +1 -1
- package/esm/components/QDateTimePicker/QDateTimePicker.d.ts +18 -24
- package/esm/components/QDateTimePicker/QDateTimePicker.d.ts.map +1 -1
- package/esm/components/QDateTimePicker/index.d.ts +9 -12
- package/esm/components/QDateTimePicker/index.d.ts.map +1 -1
- package/esm/components/QDialog/QDialog.d.ts.map +1 -1
- package/esm/components/QDialog/QDialog.vue.js +6 -1
- package/esm/components/QDialog/QDialogProvider.d.ts.map +1 -1
- package/esm/components/QDialog/QDialogProvider.vue.js +1 -0
- package/esm/components/QDialog/index.d.ts +3 -0
- package/esm/components/QDialog/index.d.ts.map +1 -1
- package/esm/components/QDialog/types.d.ts +14 -0
- package/esm/components/QDialog/types.d.ts.map +1 -1
- package/esm/components/QDropdownMenu/types.d.ts +1 -1
- package/esm/components/QDropdownMenu/types.d.ts.map +1 -1
- package/esm/components/QIcon/QIcon.d.ts.map +1 -1
- package/esm/components/QIcon/QIcon.vue.js +9 -4
- package/esm/components/QList/QListItem.d.ts.map +1 -1
- package/esm/components/QList/QListItem.vue.js +1 -0
- package/esm/components/QObfuscation/QObfuscation.d.ts.map +1 -1
- package/esm/components/QObfuscation/QObfuscation.vue.js +0 -1
- package/esm/components/QOverflow/QOverflow.d.ts +21 -1
- package/esm/components/QOverflow/QOverflow.d.ts.map +1 -1
- package/esm/components/QOverflow/QOverflow.vue.js +109 -96
- package/esm/components/QOverflow/index.d.ts +12 -3
- package/esm/components/QOverflow/index.d.ts.map +1 -1
- package/esm/components/QOverflow/types.d.ts +11 -2
- package/esm/components/QOverflow/types.d.ts.map +1 -1
- package/esm/components/QOverlay/QOverlay.d.ts +0 -1
- package/esm/components/QOverlay/QOverlay.d.ts.map +1 -1
- package/esm/components/QOverlay/QOverlay.vue.js +90 -90
- package/esm/components/QOverlay/index.d.ts +0 -3
- package/esm/components/QOverlay/index.d.ts.map +1 -1
- package/esm/components/QOverlay/types.d.ts +5 -3
- package/esm/components/QOverlay/types.d.ts.map +1 -1
- package/esm/components/QPhoneField/QPhoneField.d.ts +20 -16
- package/esm/components/QPhoneField/QPhoneField.d.ts.map +1 -1
- package/esm/components/QPhoneField/index.d.ts +10 -8
- package/esm/components/QPhoneField/index.d.ts.map +1 -1
- package/esm/components/QPopover/types.d.ts +1 -1
- package/esm/components/QPopover/types.d.ts.map +1 -1
- package/esm/components/QProgress/QProgress.vue.js +29 -33
- package/esm/components/QRadioGroup/QRadioButton.d.ts +0 -1
- package/esm/components/QRadioGroup/QRadioButton.d.ts.map +1 -1
- package/esm/components/QRadioGroup/QRadioButton.vue.js +2 -2
- package/esm/components/QRadioGroup/QRadioGroup.d.ts +1 -1
- package/esm/components/QRadioGroup/QRadioGroup.d.ts.map +1 -1
- package/esm/components/QRadioGroup/QRadioGroup.vue.js +55 -46
- package/esm/components/QRadioGroup/index.d.ts +9 -36
- package/esm/components/QRadioGroup/index.d.ts.map +1 -1
- package/esm/components/QRadioGroup/types.d.ts +15 -24
- package/esm/components/QRadioGroup/types.d.ts.map +1 -1
- package/esm/components/QRemoveScrollBar/constants.d.ts +1 -1
- package/esm/components/QRemoveScrollBar/constants.d.ts.map +1 -1
- package/esm/components/QRemoveScrollBar/constants.js +1 -1
- package/esm/components/QSelect/QSelect.d.ts +20 -16
- package/esm/components/QSelect/QSelect.d.ts.map +1 -1
- package/esm/components/QSelect/QSelect.vue.js +9 -1
- package/esm/components/QSelect/index.d.ts +10 -8
- package/esm/components/QSelect/index.d.ts.map +1 -1
- package/esm/components/QSidebar/QSidebar.d.ts +0 -1
- package/esm/components/QSidebar/QSidebar.d.ts.map +1 -1
- package/esm/components/QSidebar/QSidebar.vue.js +2 -2
- package/esm/components/QSidebar/QSidebarAnchor.d.ts +2 -1
- package/esm/components/QSidebar/QSidebarAnchor.d.ts.map +1 -1
- package/esm/components/QSidebar/QSidebarAnchor.vue.js +1 -1
- package/esm/components/QSidebar/QSidebarItem.d.ts +12 -6
- package/esm/components/QSidebar/QSidebarItem.d.ts.map +1 -1
- package/esm/components/QSidebar/QSidebarItem.vue.js +1 -1
- package/esm/components/QSidebar/index.d.ts +6 -6
- package/esm/components/QSidebar/index.d.ts.map +1 -1
- package/esm/components/QSidebar/types.d.ts +3 -1
- package/esm/components/QSidebar/types.d.ts.map +1 -1
- package/esm/components/QSwitch/QSwitch.d.ts +3 -2
- package/esm/components/QSwitch/QSwitch.d.ts.map +1 -1
- package/esm/components/QSwitch/QSwitch.vue.js +34 -26
- package/esm/components/QSwitch/index.d.ts +5 -4
- package/esm/components/QSwitch/index.d.ts.map +1 -1
- package/esm/components/QSwitch/types.d.ts +4 -2
- package/esm/components/QSwitch/types.d.ts.map +1 -1
- package/esm/components/QTabs/QTab.d.ts +6 -8
- package/esm/components/QTabs/QTab.d.ts.map +1 -1
- package/esm/components/QTabs/QTabs.d.ts +177 -2
- package/esm/components/QTabs/QTabs.d.ts.map +1 -1
- package/esm/components/QTabs/QTabs.vue.js +127 -106
- package/esm/components/QTabs/context.d.ts +2 -1
- package/esm/components/QTabs/context.d.ts.map +1 -1
- package/esm/components/QTabs/index.d.ts +91 -5
- package/esm/components/QTabs/index.d.ts.map +1 -1
- package/esm/components/QToggle/QToggle.vue.js +2 -1
- package/esm/components/QToggle/index.d.ts +6 -3
- package/esm/components/QToggle/index.d.ts.map +1 -1
- package/esm/components/QToggleGroup/QToggleGroup.vue.js +1 -0
- package/esm/components/QToggleGroup/QToggleGroupItem.vue.js +1 -0
- package/esm/components/QToggleGroup/index.d.ts +3 -0
- package/esm/components/QToggleGroup/index.d.ts.map +1 -1
- package/esm/components/QTooltip/types.d.ts +1 -1
- package/esm/components/QTooltip/types.d.ts.map +1 -1
- package/esm/components/__internal__/QClearButton/QClearButton.vue.js +1 -1
- package/esm/composables/useSafeTriangle/index.d.ts +1 -1
- package/esm/composables/useSafeTriangle/index.d.ts.map +1 -1
- package/esm/templates/theme.js +11 -11
- package/esm/types/component.d.ts +7 -0
- package/esm/types/component.d.ts.map +1 -1
- package/esm/utils/color/theme-colors.d.ts +5 -5
- package/esm/utils/density.d.ts +12 -0
- package/esm/utils/density.d.ts.map +1 -0
- package/esm/utils/density.js +23 -0
- package/esm/utils/index.d.ts +1 -0
- package/esm/utils/index.d.ts.map +1 -1
- package/esm/utils/index.js +6 -2
- package/esm/{composables → utils}/overlay.d.ts +12 -0
- package/esm/utils/overlay.d.ts.map +1 -0
- package/esm/{composables → utils}/overlay.js +10 -2
- package/esm/utils/safeTriangle.d.ts +1 -1
- package/esm/utils/safeTriangle.d.ts.map +1 -1
- package/package.json +1 -1
- package/esm/composables/overlay.d.ts.map +0 -1
package/esm/templates/theme.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
//#region src/templates/theme.ts
|
|
2
2
|
var e = {
|
|
3
|
-
primary: "#
|
|
4
|
-
primaryLight: "#
|
|
5
|
-
primaryDark: "#
|
|
6
|
-
secondary: "#
|
|
7
|
-
secondaryLight: "#
|
|
8
|
-
secondaryDark: "#
|
|
3
|
+
primary: "#185fa5",
|
|
4
|
+
primaryLight: "#b9d7f5",
|
|
5
|
+
primaryDark: "#12477c",
|
|
6
|
+
secondary: "#001850",
|
|
7
|
+
secondaryLight: "#94b4ff",
|
|
8
|
+
secondaryDark: "#00123d",
|
|
9
9
|
highlight: "#ff8241",
|
|
10
10
|
highlightLight: "#ffe0d0",
|
|
11
11
|
highlightDark: "#f15400",
|
|
@@ -26,7 +26,7 @@ var e = {
|
|
|
26
26
|
neutral: "#6d767f",
|
|
27
27
|
neutralLight: "#dadddf",
|
|
28
28
|
neutralDark: "#51585f",
|
|
29
|
-
onPrimary: "#
|
|
29
|
+
onPrimary: "#fff",
|
|
30
30
|
onPrimaryLight: "#000",
|
|
31
31
|
onPrimaryDark: "#fff",
|
|
32
32
|
onSecondary: "#fff",
|
|
@@ -53,12 +53,12 @@ var e = {
|
|
|
53
53
|
onNeutralLight: "#000",
|
|
54
54
|
onNeutralDark: "#fff"
|
|
55
55
|
}, t = {
|
|
56
|
-
primary: "#
|
|
56
|
+
primary: "#2c87e1",
|
|
57
57
|
primaryLight: "#1a2832",
|
|
58
|
-
primaryDark: "#
|
|
59
|
-
secondary: "#
|
|
58
|
+
primaryDark: "#66a8e9",
|
|
59
|
+
secondary: "#bacfff",
|
|
60
60
|
secondaryLight: "#1a2832",
|
|
61
|
-
secondaryDark: "#
|
|
61
|
+
secondaryDark: "#dbe6ff",
|
|
62
62
|
highlight: "#ff9966",
|
|
63
63
|
highlightLight: "#2d1a0f",
|
|
64
64
|
highlightDark: "#ffb899",
|
package/esm/types/component.d.ts
CHANGED
|
@@ -19,4 +19,11 @@ export type QBaseComponentProps = {
|
|
|
19
19
|
*/
|
|
20
20
|
class?: string | unknown[];
|
|
21
21
|
};
|
|
22
|
+
/**
|
|
23
|
+
* Local control chrome size. Multiplies the inherited global `--q-density-scale`
|
|
24
|
+
* (`small` ×0.8, `medium` ×1, `large` ×1.2). Distinct from Field/Dialog/Sidebar
|
|
25
|
+
* layout `size`. Only `small` and `large` emit BEM modifiers; `medium` (and omit)
|
|
26
|
+
* inherit the global scale with no extra class.
|
|
27
|
+
*/
|
|
28
|
+
export type QComponentSize = 'small' | 'medium' | 'large';
|
|
22
29
|
//# sourceMappingURL=component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../src/types/component.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,MAAM,mBAAmB,GAAG;IACjC;;;;OAIG;IACH,EAAE,CAAC,EAAE,MAAM,CAAA;IAEX;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,EAAE,CAAA;CAC1B,CAAA"}
|
|
1
|
+
{"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../src/types/component.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,MAAM,mBAAmB,GAAG;IACjC;;;;OAIG;IACH,EAAE,CAAC,EAAE,MAAM,CAAA;IAEX;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,EAAE,CAAA;CAC1B,CAAA;AAED;;;;;GAKG;AACH,MAAM,MAAM,cAAc,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAA"}
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
* Theme utility color keys used for BEM classification via `isThemeColor` /
|
|
3
3
|
* `isUtilityColor`.
|
|
4
4
|
*
|
|
5
|
-
* Brand/semantic keys match the historical
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
5
|
+
* Brand/semantic keys match the historical theme color set. Color CSS vars for
|
|
6
|
+
* QButton / QBadge / QToast come from bound `useColor` styles rather than Sass
|
|
7
|
+
* map loops. `background` remains a utility key so QButton can apply its
|
|
8
|
+
* hand-written `--background` modifier (and skip inline vars for that color).
|
|
9
|
+
* `container` is omitted (scheme resolve only).
|
|
10
10
|
*/
|
|
11
11
|
export declare const THEME_COLOR_KEYS: readonly ["primary", "secondary", "highlight", "info", "success", "warning", "danger", "neutral", "background"];
|
|
12
12
|
/**
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const DENSITIES: readonly ["compact", "regular", "loose"];
|
|
2
|
+
export type QDensity = (typeof DENSITIES)[number];
|
|
3
|
+
/**
|
|
4
|
+
* Returns the current global density. Falls back to `regular`.
|
|
5
|
+
*/
|
|
6
|
+
export declare function getGlobalDensity(): QDensity;
|
|
7
|
+
/**
|
|
8
|
+
* Applies a global density (`compact` | `regular` | `loose`) to the root element.
|
|
9
|
+
* CSS mode selectors own `--q-density-scale`; this only sets the attribute and class.
|
|
10
|
+
*/
|
|
11
|
+
export declare function setGlobalDensity(density: QDensity): QDensity;
|
|
12
|
+
//# sourceMappingURL=density.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"density.d.ts","sourceRoot":"","sources":["../../src/utils/density.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,0CAA2C,CAAA;AAEjE,MAAM,MAAM,QAAQ,GAAG,CAAC,OAAO,SAAS,CAAC,CAAC,MAAM,CAAC,CAAA;AAajD;;GAEG;AACH,wBAAgB,gBAAgB,IAAI,QAAQ,CAI3C;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,QAAQ,GAAG,QAAQ,CAW5D"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
//#region src/utils/density.ts
|
|
2
|
+
var e = [
|
|
3
|
+
"compact",
|
|
4
|
+
"regular",
|
|
5
|
+
"loose"
|
|
6
|
+
], t = "q-density--", n = "data-q-density";
|
|
7
|
+
function r(t) {
|
|
8
|
+
return e.includes(t);
|
|
9
|
+
}
|
|
10
|
+
function i() {
|
|
11
|
+
return document.documentElement;
|
|
12
|
+
}
|
|
13
|
+
function a() {
|
|
14
|
+
let e = i().getAttribute(n);
|
|
15
|
+
return e && r(e) ? e : "regular";
|
|
16
|
+
}
|
|
17
|
+
function o(e) {
|
|
18
|
+
let r = i();
|
|
19
|
+
for (let e of Array.from(r.classList)) e.startsWith(t) && r.classList.remove(e);
|
|
20
|
+
return r.classList.add(`${t}${e}`), r.setAttribute(n, e), e;
|
|
21
|
+
}
|
|
22
|
+
//#endregion
|
|
23
|
+
export { e as DENSITIES, a as getGlobalDensity, o as setGlobalDensity };
|
package/esm/utils/index.d.ts
CHANGED
package/esm/utils/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,cAAc,SAAS,CAAA;AACvB,cAAc,QAAQ,CAAA;AACtB,cAAc,QAAQ,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,cAAc,SAAS,CAAA;AACvB,cAAc,QAAQ,CAAA;AACtB,cAAc,WAAW,CAAA;AACzB,cAAc,QAAQ,CAAA"}
|
package/esm/utils/index.js
CHANGED
|
@@ -7,10 +7,12 @@ import { mergeColorSchemes as h } from "./color/merge.js";
|
|
|
7
7
|
import { THEME_COLOR_KEYS as g, isThemeColor as _, isUnsupportedColor as v } from "./color/theme-colors.js";
|
|
8
8
|
import { addDays as y, addMonths as b, advancePastFormatLiteral as x, clampDayByMonthYear as S, clampNumericSegments as C, completePartialDateInput as w, convertDatePatternToMask as T, formatDate as E, formatUsesSeconds as D, formatUsesTime as O, getDaysInMonth as k, getEndOfDay as A, getFirstDayOfMonth as j, getFirstDayOfWeek as M, getLastDayOfMonth as N, getStartOfDay as P, inputIncludesTimePortion as F, isBetween as I, isLeapYear as L, isSameDay as R, isTimeOnlyFormat as z, normalizeNumericToken as B, padNumber as V, parseDate as H, parseDateWithCompletion as U, parseIsoDate as W, uses12HourFormat as G } from "./date.js";
|
|
9
9
|
import { applyMask as K } from "./mask.js";
|
|
10
|
+
import { DENSITIES as q, getGlobalDensity as J, setGlobalDensity as Y } from "./density.js";
|
|
10
11
|
//#region src/utils/index.ts
|
|
11
|
-
var
|
|
12
|
+
var X = /* @__PURE__ */ e({
|
|
12
13
|
COLOR_SCHEME_DARKEN_AMOUNT: () => 25,
|
|
13
14
|
COLOR_SCHEME_LIGHTEN_AMOUNT: () => 75,
|
|
15
|
+
DENSITIES: () => q,
|
|
14
16
|
THEME_COLOR_KEYS: () => g,
|
|
15
17
|
addDays: () => y,
|
|
16
18
|
addMonths: () => b,
|
|
@@ -30,6 +32,7 @@ var q = /* @__PURE__ */ e({
|
|
|
30
32
|
getEndOfDay: () => A,
|
|
31
33
|
getFirstDayOfMonth: () => j,
|
|
32
34
|
getFirstDayOfWeek: () => M,
|
|
35
|
+
getGlobalDensity: () => J,
|
|
33
36
|
getLastDayOfMonth: () => N,
|
|
34
37
|
getRelativeLuminance: () => f,
|
|
35
38
|
getStartOfDay: () => P,
|
|
@@ -54,9 +57,10 @@ var q = /* @__PURE__ */ e({
|
|
|
54
57
|
rgbToHex: () => r,
|
|
55
58
|
rgbToHsl: () => i,
|
|
56
59
|
rgbToVariableString: () => a,
|
|
60
|
+
setGlobalDensity: () => Y,
|
|
57
61
|
tryParseColor: () => c,
|
|
58
62
|
tryParseRgb: () => l,
|
|
59
63
|
uses12HourFormat: () => G
|
|
60
64
|
});
|
|
61
65
|
//#endregion
|
|
62
|
-
export { g as THEME_COLOR_KEYS, y as addDays, b as addMonths, x as advancePastFormatLiteral, K as applyMask, S as clampDayByMonthYear, C as clampNumericSegments, w as completePartialDateInput, T as convertDatePatternToMask, p as darken, E as formatDate, D as formatUsesSeconds, O as formatUsesTime, u as getComplementaryColor, d as getContrastingColor, k as getDaysInMonth, A as getEndOfDay, j as getFirstDayOfMonth, M as getFirstDayOfWeek, N as getLastDayOfMonth, f as getRelativeLuminance, P as getStartOfDay, t as hslToRgb, n as hueToRgb, F as inputIncludesTimePortion, I as isBetween, L as isLeapYear, R as isSameDay, _ as isThemeColor, z as isTimeOnlyFormat, v as isUnsupportedColor, o as isValidHex, m as lighten, h as mergeColorSchemes, B as normalizeNumericToken, V as padNumber, s as parseColor, H as parseDate, U as parseDateWithCompletion, W as parseIsoDate, r as rgbToHex, i as rgbToHsl, a as rgbToVariableString, c as tryParseColor, l as tryParseRgb, G as uses12HourFormat,
|
|
66
|
+
export { q as DENSITIES, g as THEME_COLOR_KEYS, y as addDays, b as addMonths, x as advancePastFormatLiteral, K as applyMask, S as clampDayByMonthYear, C as clampNumericSegments, w as completePartialDateInput, T as convertDatePatternToMask, p as darken, E as formatDate, D as formatUsesSeconds, O as formatUsesTime, u as getComplementaryColor, d as getContrastingColor, k as getDaysInMonth, A as getEndOfDay, j as getFirstDayOfMonth, M as getFirstDayOfWeek, J as getGlobalDensity, N as getLastDayOfMonth, f as getRelativeLuminance, P as getStartOfDay, t as hslToRgb, n as hueToRgb, F as inputIncludesTimePortion, I as isBetween, L as isLeapYear, R as isSameDay, _ as isThemeColor, z as isTimeOnlyFormat, v as isUnsupportedColor, o as isValidHex, m as lighten, h as mergeColorSchemes, B as normalizeNumericToken, V as padNumber, s as parseColor, H as parseDate, U as parseDateWithCompletion, W as parseIsoDate, r as rgbToHex, i as rgbToHsl, a as rgbToVariableString, Y as setGlobalDensity, c as tryParseColor, l as tryParseRgb, G as uses12HourFormat, X as utils_exports };
|
|
@@ -117,4 +117,16 @@ export declare function getAlignmentFromPlacement(placement: Placement): Alignme
|
|
|
117
117
|
* @returns A boolean indicating whether the overflow result is out of bounds (true) or not (false).
|
|
118
118
|
*/
|
|
119
119
|
export declare function isOutOfBounds(overflowResult: number): boolean;
|
|
120
|
+
/** Fallback when `--q-overlay-arrow-gap` is unavailable (regular density gap). */
|
|
121
|
+
export declare const OVERLAY_OFFSET_FALLBACK = 8;
|
|
122
|
+
/**
|
|
123
|
+
* Resolves the main-axis overlay offset. Explicit `offset` wins; otherwise reads
|
|
124
|
+
* the density-scaled `--q-overlay-arrow-gap` from `el` so JS stays paired with
|
|
125
|
+
* the CSS arrow tip (gap ≈ size / √2).
|
|
126
|
+
*
|
|
127
|
+
* @param offset - Explicit offset from props, when set.
|
|
128
|
+
* @param el - Overlay root that defines `--q-overlay-arrow-gap`.
|
|
129
|
+
* @returns Resolved offset in pixels.
|
|
130
|
+
*/
|
|
131
|
+
export declare function resolveOverlayOffset(offset: number | undefined, el: Element | null | undefined): number;
|
|
120
132
|
//# sourceMappingURL=overlay.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"overlay.d.ts","sourceRoot":"","sources":["../../src/utils/overlay.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,UAAU,CAAA;AAE/C;;GAEG;AACH,MAAM,MAAM,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,QAAQ,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AACH,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,SAAS,GAAG,IAAI,CAE3D;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,SAAS,EAAE,SAAS,GAAG,IAAI,CAG/D;AAED;;;;GAIG;AACH,wBAAgB,yBAAyB,CAAC,SAAS,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,CAGrF;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAE7D;AAED,kFAAkF;AAClF,eAAO,MAAM,uBAAuB,IAAI,CAAA;AAExC;;;;;;;;GAQG;AACH,wBAAgB,oBAAoB,CACnC,MAAM,EAAE,MAAM,GAAG,SAAS,EAC1B,EAAE,EAAE,OAAO,GAAG,IAAI,GAAG,SAAS,GAC5B,MAAM,CAcR"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region src/
|
|
1
|
+
//#region src/utils/overlay.ts
|
|
2
2
|
var e = 8;
|
|
3
3
|
function t(e, t, c, l) {
|
|
4
4
|
let u = l?.offset ?? 0, d = l?.crossOffset ?? 0, f = l?.placement ?? "bottom", p = e.getBoundingClientRect(), m = t.getBoundingClientRect(), h = c?.getBoundingClientRect(), g = n(p, m, f, u), _ = r(a(i(s(p, m, g), g, u), g, d), m, g), v;
|
|
@@ -135,5 +135,13 @@ function p(e) {
|
|
|
135
135
|
function m(e) {
|
|
136
136
|
return e < 0;
|
|
137
137
|
}
|
|
138
|
+
function h(e, t) {
|
|
139
|
+
if (e !== void 0) return e;
|
|
140
|
+
if (t) {
|
|
141
|
+
let e = getComputedStyle(t).getPropertyValue("--q-overlay-arrow-gap").trim(), n = Number.parseFloat(e);
|
|
142
|
+
if (Number.isFinite(n)) return n;
|
|
143
|
+
}
|
|
144
|
+
return 8;
|
|
145
|
+
}
|
|
138
146
|
//#endregion
|
|
139
|
-
export { t as computePosition, d as getAlignmentAxis, p as getAlignmentFromPlacement, u as getMainAxis, l as getOppositeAxis, f as getSideFromPlacement, m as isOutOfBounds };
|
|
147
|
+
export { t as computePosition, d as getAlignmentAxis, p as getAlignmentFromPlacement, u as getMainAxis, l as getOppositeAxis, f as getSideFromPlacement, m as isOutOfBounds, h as resolveOverlayOffset };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"safeTriangle.d.ts","sourceRoot":"","sources":["../../src/utils/safeTriangle.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"safeTriangle.d.ts","sourceRoot":"","sources":["../../src/utils/safeTriangle.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAA;AAE1C,MAAM,MAAM,oBAAoB,GAAG;IAClC,IAAI,EAAE,MAAM,CAAA;IACZ,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,MAAM,CAAA;CACZ,CAAA;AAED,MAAM,MAAM,oBAAoB,GAAG;IAClC,CAAC,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAA;IAC3B,CAAC,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAA;IAC3B,CAAC,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAA;CAC3B,CAAA;AAED,MAAM,MAAM,KAAK,GAAG;IACnB,CAAC,EAAE,MAAM,CAAA;IACT,CAAC,EAAE,MAAM,CAAA;CACT,CAAA;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,GAAG,OAAO,CAE1E;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAChC,CAAC,EAAE,MAAM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