@oneflowui/ui 0.3.0 → 0.4.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.
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as s, computed as f, openBlock as p, createElementBlock as r, withModifiers as d, createElementVNode as m, toDisplayString as _ } from "vue";
2
- import { _ as u } from "./index-CLFMyBqX.js";
2
+ import { _ as u } from "./index-Hqg3-HB7.js";
3
3
  const k = { class: "of-field-checkbox__icon" }, x = /* @__PURE__ */ s({
4
4
  __name: "FieldCheckbox",
5
5
  props: {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as f, ref as u, onMounted as m, nextTick as s, withDirectives as d, openBlock as v, createElementBlock as y, vModelText as _ } from "vue";
2
- import { _ as k } from "./index-CLFMyBqX.js";
2
+ import { _ as k } from "./index-Hqg3-HB7.js";
3
3
  const x = /* @__PURE__ */ f({
4
4
  __name: "FieldDate",
5
5
  props: {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as f, ref as i, onMounted as p, nextTick as s, withDirectives as d, openBlock as v, createElementBlock as y, vModelText as _ } from "vue";
2
- import { _ as k } from "./index-CLFMyBqX.js";
2
+ import { _ as k } from "./index-Hqg3-HB7.js";
3
3
  const x = /* @__PURE__ */ f({
4
4
  __name: "FieldDatetime",
5
5
  props: {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as f, ref as a, onMounted as p, nextTick as s, withDirectives as d, openBlock as v, createElementBlock as y, vModelText as _ } from "vue";
2
- import { _ as k } from "./index-CLFMyBqX.js";
2
+ import { _ as k } from "./index-Hqg3-HB7.js";
3
3
  const x = /* @__PURE__ */ f({
4
4
  __name: "FieldEmail",
5
5
  props: {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as $, ref as a, computed as M, onMounted as z, nextTick as F, onBeforeUnmount as O, watch as T, openBlock as l, createElementBlock as i, Fragment as A, renderList as L, normalizeStyle as w, toDisplayString as k, createBlock as I, Teleport as P, withModifiers as m, normalizeClass as U, createElementVNode as p, createCommentVNode as V } from "vue";
2
- import { _ as K } from "./index-CLFMyBqX.js";
2
+ import { _ as K } from "./index-Hqg3-HB7.js";
3
3
  const W = {
4
4
  key: 0,
5
5
  class: "of-field-multiselect__chips"
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as p, ref as m, onMounted as v, nextTick as d, withDirectives as N, openBlock as b, createElementBlock as y, vModelText as k } from "vue";
2
- import { _ } from "./index-CLFMyBqX.js";
2
+ import { _ } from "./index-Hqg3-HB7.js";
3
3
  const x = /* @__PURE__ */ p({
4
4
  __name: "FieldNumber",
5
5
  props: {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as v, ref as _, openBlock as o, createElementBlock as r, withKeys as x, Fragment as g, renderList as k, unref as c, withModifiers as y, normalizeClass as b } from "vue";
2
- import { _ as C } from "./index-CLFMyBqX.js";
2
+ import { _ as C } from "./index-Hqg3-HB7.js";
3
3
  const M = ["onMouseenter", "onClick"], $ = /* @__PURE__ */ v({
4
4
  __name: "FieldRating",
5
5
  props: {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as N, ref as f, computed as x, onMounted as R, nextTick as V, onBeforeUnmount as z, watch as A, openBlock as l, createElementBlock as a, normalizeStyle as b, toDisplayString as w, createBlock as I, Teleport as F, createElementVNode as T, withModifiers as C, normalizeClass as L, Fragment as O, renderList as P, createCommentVNode as U } from "vue";
2
- import { _ as K } from "./index-CLFMyBqX.js";
2
+ import { _ as K } from "./index-Hqg3-HB7.js";
3
3
  const W = {
4
4
  key: 1,
5
5
  class: "of-field-select__display"
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as f, ref as a, onMounted as m, nextTick as s, withDirectives as v, openBlock as d, createElementBlock as x, vModelText as y } from "vue";
2
- import { _ } from "./index-CLFMyBqX.js";
2
+ import { _ } from "./index-Hqg3-HB7.js";
3
3
  const k = /* @__PURE__ */ f({
4
4
  __name: "FieldText",
5
5
  props: {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as f, ref as a, onMounted as m, nextTick as s, withDirectives as v, openBlock as d, createElementBlock as y, vModelText as _ } from "vue";
2
- import { _ as k } from "./index-CLFMyBqX.js";
2
+ import { _ as k } from "./index-Hqg3-HB7.js";
3
3
  const x = /* @__PURE__ */ f({
4
4
  __name: "FieldUrl",
5
5
  props: {
@@ -26,5 +26,5 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
26
26
  "update:modelValue": (value: string | number) => any;
27
27
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
28
28
  "onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
29
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
29
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
30
30
  export default _default;
@@ -1,6 +1,8 @@
1
+ import { Component } from 'vue';
1
2
  export interface SectionBlockProps {
2
3
  title: string;
3
- icon?: string;
4
+ /** 图标:lucide icon name(kebab-case,如 "file-text")或 Vue 组件对象。传入无法解析的字符串时不渲染。 */
5
+ icon?: string | Component;
4
6
  status?: "pending" | "updating" | "done" | "editing";
5
7
  collapsed?: boolean;
6
8
  editable?: boolean;
@@ -31,7 +33,7 @@ declare const __VLS_component: import('vue').DefineComponent<SectionBlockProps,
31
33
  onSave?: (() => any) | undefined;
32
34
  }>, {
33
35
  status: "pending" | "updating" | "done" | "editing";
34
- icon: string;
36
+ icon: string | Component;
35
37
  collapsed: boolean;
36
38
  editable: boolean;
37
39
  statusLabels: Record<string, string>;
@@ -1,8 +1,14 @@
1
+ import { Density } from '../../types';
2
+ type __VLS_Props = {
3
+ /** 布局密度:comfortable(默认)| compact(紧凑) */
4
+ density?: Density;
5
+ };
1
6
  declare function __VLS_template(): {
2
7
  attrs: Partial<{}>;
3
8
  slots: {
4
9
  navbar?(_: {}): any;
5
10
  sidebar?(_: {}): any;
11
+ sidebar?(_: {}): any;
6
12
  default?(_: {}): any;
7
13
  statusbar?(_: {}): any;
8
14
  };
@@ -10,7 +16,9 @@ declare function __VLS_template(): {
10
16
  rootEl: HTMLDivElement;
11
17
  };
12
18
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
13
- declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
19
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
20
+ density: Density;
21
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
14
22
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
15
23
  export default _default;
16
24
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -35,7 +35,9 @@ declare function __VLS_template(): {
35
35
  default?(_: {}): any;
36
36
  footer?(_: {}): any;
37
37
  };
38
- refs: {};
38
+ refs: {
39
+ modalRef: HTMLDivElement;
40
+ };
39
41
  rootEl: any;
40
42
  };
41
43
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
@@ -49,7 +51,9 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
49
51
  maskClosable: boolean;
50
52
  centered: boolean;
51
53
  zIndex: number;
52
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
54
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
55
+ modalRef: HTMLDivElement;
56
+ }, any>;
53
57
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
54
58
  export default _default;
55
59
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -35,9 +35,19 @@ declare const _default: <T extends {
35
35
  * 手动控制虚拟滚动开关。
36
36
  * - `true`:强制启用虚拟滚动
37
37
  * - `false`:强制关闭虚拟滚动
38
- * - `undefined`(默认):自动判断,行数 > VIRTUAL_SCROLL_THRESHOLD 时启用
38
+ * - `undefined`(默认):自动判断,行数 >= virtualThreshold 时启用
39
39
  */
40
40
  virtual?: boolean;
41
+ /**
42
+ * 自动启用虚拟滚动的行数阈值(默认 100)。
43
+ * 仅在 `virtual` prop 未传时生效。
44
+ */
45
+ virtualThreshold?: number;
46
+ /**
47
+ * 只读模式。为 true 时,selectable 和 addable 自动降为 false,
48
+ * 即使调用方显式传了 true 也会被覆盖。
49
+ */
50
+ readonly?: boolean;
41
51
  } & Partial<{}>> & import('vue').PublicProps;
42
52
  expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
43
53
  attrs: any;
@@ -9,5 +9,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
9
9
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
10
10
  onClose?: (() => any) | undefined;
11
11
  "onUpdate:columns"?: ((columns: TableColumn[]) => any) | undefined;
12
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
12
+ }>, {
13
+ visible: boolean;
14
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
13
15
  export default _default;
@@ -20,5 +20,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
20
20
  "onRemove-condition"?: ((id: string) => any) | undefined;
21
21
  "onUpdate-condition"?: ((id: string, update: Partial<FilterCondition>) => any) | undefined;
22
22
  "onUpdate:logic"?: ((logic: FilterLogic) => any) | undefined;
23
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
23
+ }>, {
24
+ visible: boolean;
25
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
24
26
  export default _default;