@orchidui/dashboard 1.87.0 → 1.89.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/index.js CHANGED
@@ -2,7 +2,7 @@ var pt = Object.defineProperty;
2
2
  var gt = (n, V, r) => V in n ? pt(n, V, { enumerable: !0, configurable: !0, writable: !0, value: r }) : n[V] = r;
3
3
  var We = (n, V, r) => gt(n, typeof V != "symbol" ? V + "" : V, r);
4
4
  import { ref as v, computed as $e, createBlock as N, openBlock as m, unref as w, normalizeClass as Q, withCtx as W, createVNode as L, createElementBlock as E, createSlots as vt, renderSlot as je, normalizeStyle as te, createCommentVNode as D, onMounted as Je, watch as fe, createElementVNode as h, Teleport as mt, Fragment as ge, createTextVNode as ve, toDisplayString as Pe, renderList as Ke, withKeys as ot, inject as Re, reactive as _e, provide as Be, nextTick as ft, withDirectives as ht, vShow as yt, defineAsyncComponent as it } from "vue";
5
- import { Q as Y, a as bt } from "./QuillEditor-caFVpQGG.js";
5
+ import { Q as Y, a as bt } from "./QuillEditor-BOsliE6V.js";
6
6
  import { BaseInput as st, Dropdown as rt, Input as we, Icon as A, Modal as xt, Select as Ze, Slider as Ae } from "@orchidui/core";
7
7
  import { rgbToHsl as et, rgb2Hex as tt, rgbaToHex8 as kt, hsl2Hex as lt, hexToRgb as ze, rgbToHue as Qe, hslToRgb as at, hex8ToRgba as $t, parseRgba as wt, parseRgb as St } from "./Dashboard/ColorPicker/components/converters.js";
8
8
  import { PieChart as Ct } from "./Dashboard/Charts/PieChart/OcPieChart.js";
@@ -15,25 +15,34 @@ import { OverviewMonthlyBarChart as Wl } from "./Dashboard/Charts/OverviewMonthl
15
15
  const It = { key: 1 }, Vt = {
16
16
  __name: "OcColorPicker",
17
17
  props: {
18
+ /** Current color value (v-model). Hex string — 6-digit `#RRGGBB` or 8-digit `#RRGGBBAA` when opacity is enabled. For gradient variant, a CSS gradient string. */
18
19
  modelValue: {
19
20
  type: String,
20
21
  default: ""
21
22
  },
23
+ /** Color mode. `'solid'` outputs a flat hex color; `'gradient'` outputs a CSS gradient string. */
22
24
  variant: {
23
25
  type: String,
24
26
  default: "solid"
25
27
  },
28
+ /** Hide the opacity/alpha slider. When true, output is always a 6-digit hex (`#RRGGBB`). */
26
29
  hideOpacity: Boolean,
30
+ /** Hide the hex text input and show only the color swatch icon as the trigger. */
27
31
  hideInputColor: Boolean,
32
+ /** Preset color swatches shown in the picker popup. Array of hex color strings. */
28
33
  presetColors: {
29
34
  type: Array
30
35
  },
36
+ /** Dropdown placement passed to the Popper positioning engine. */
31
37
  placement: {
32
38
  type: String,
33
39
  default: "auto"
34
40
  }
35
41
  },
36
- emits: ["update:model-value"],
42
+ emits: {
43
+ /** New color value selected. Payload: hex or gradient string. */
44
+ "update:model-value": []
45
+ },
37
46
  setup(n, { emit: V }) {
38
47
  const r = n, y = V, d = v(!1), f = v(r.modelValue), C = (O) => {
39
48
  O && (f.value = O, y("update:model-value", O));
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@orchidui/dashboard",
3
3
  "description": "Orchid Dashboard UI , Dashboard Ui Library Vue 3 tailwind css",
4
- "version": "1.87.0",
4
+ "version": "1.89.0",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "build": "vite build"
@@ -33,7 +33,7 @@
33
33
  "rollup": "npm:@rollup/wasm-node"
34
34
  },
35
35
  "dependencies": {
36
- "@orchidui/core": "1.87.0",
36
+ "@orchidui/core": "1.89.0",
37
37
  "dayjs": "^1.11.10",
38
38
  "echarts": "^5.4.3",
39
39
  "lottie-web": "^5.12.2",