@nubisco/ui 3.3.0 → 3.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.
- package/dist/components/Board.d.ts +23 -0
- package/dist/components/Board.vue.d.ts +16 -8
- package/dist/components/Board.vue.d.ts.map +1 -1
- package/dist/components/InlineEdit.d.ts +24 -0
- package/dist/components/InlineEdit.vue.d.ts +20 -0
- package/dist/components/InlineEdit.vue.d.ts.map +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/global.d.ts +2 -0
- package/dist/index.cjs +7 -7
- package/dist/index.mjs +12137 -11824
- package/dist/main.d.ts +3 -1
- package/dist/main.d.ts.map +1 -1
- package/dist/ui.css +1 -1
- package/package.json +1 -1
- package/src/styles/_reset.scss +5 -0
- package/src/styles/_theme.scss +1 -1
|
@@ -36,6 +36,22 @@ interface IBoardMoveEvent {
|
|
|
36
36
|
fromLaneId?: string | null
|
|
37
37
|
/** The lane the item was moved to (only when lanes are used). */
|
|
38
38
|
toLaneId?: string | null
|
|
39
|
+
/**
|
|
40
|
+
* Index the item should occupy in the destination cell's item sequence,
|
|
41
|
+
* counted with the moved item itself excluded. 0 is the top of the cell.
|
|
42
|
+
*/
|
|
43
|
+
toIndex: number
|
|
44
|
+
/** ID of the item that ends up directly above the moved item, or null at the top. */
|
|
45
|
+
beforeItemId: string | null
|
|
46
|
+
/** ID of the item that ends up directly below the moved item, or null at the bottom. */
|
|
47
|
+
afterItemId: string | null
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
interface IBoardColumnMoveEvent {
|
|
51
|
+
/** The ID of the column that was moved. */
|
|
52
|
+
columnId: string
|
|
53
|
+
/** Index the column should occupy in the `columns` array after the move. */
|
|
54
|
+
toIndex: number
|
|
39
55
|
}
|
|
40
56
|
|
|
41
57
|
interface IBoardProps {
|
|
@@ -45,6 +61,11 @@ interface IBoardProps {
|
|
|
45
61
|
items: IBoardItem[]
|
|
46
62
|
/** Optional swim lanes. When provided, the board renders horizontal lane rows. */
|
|
47
63
|
lanes?: IBoardLane[]
|
|
64
|
+
/**
|
|
65
|
+
* Allow columns to be reordered by dragging their headers. Off by default;
|
|
66
|
+
* when on, dropping a header on another column emits `column-move`.
|
|
67
|
+
*/
|
|
68
|
+
reorderableColumns?: boolean
|
|
48
69
|
}
|
|
49
70
|
|
|
50
71
|
export type {
|
|
@@ -52,6 +73,7 @@ export type {
|
|
|
52
73
|
IBoardLane,
|
|
53
74
|
IBoardItem,
|
|
54
75
|
IBoardMoveEvent,
|
|
76
|
+
IBoardColumnMoveEvent,
|
|
55
77
|
IBoardProps,
|
|
56
78
|
}
|
|
57
79
|
|
|
@@ -60,5 +82,6 @@ export type {
|
|
|
60
82
|
IBoardLane as NbBoardLane,
|
|
61
83
|
IBoardItem as NbBoardItem,
|
|
62
84
|
IBoardMoveEvent as NbBoardMoveEvent,
|
|
85
|
+
IBoardColumnMoveEvent as NbBoardColumnMoveEvent,
|
|
63
86
|
IBoardProps as NbBoardProps,
|
|
64
87
|
}
|
|
@@ -1,27 +1,35 @@
|
|
|
1
|
-
import type { IBoardProps, IBoardItem, IBoardMoveEvent } from './Board.d';
|
|
1
|
+
import type { IBoardProps, IBoardColumn, IBoardLane, IBoardItem, IBoardMoveEvent, IBoardColumnMoveEvent } from './Board.d';
|
|
2
2
|
declare var __VLS_1: {
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
column: IBoardColumn;
|
|
4
|
+
count: number;
|
|
5
5
|
}, __VLS_3: {
|
|
6
|
-
lane:
|
|
6
|
+
lane: IBoardLane;
|
|
7
7
|
}, __VLS_5: {
|
|
8
8
|
item: IBoardItem;
|
|
9
|
-
column:
|
|
10
|
-
lane:
|
|
9
|
+
column: IBoardColumn;
|
|
10
|
+
lane: IBoardLane | undefined;
|
|
11
|
+
}, __VLS_7: {
|
|
12
|
+
column: IBoardColumn;
|
|
13
|
+
lane: IBoardLane | undefined;
|
|
11
14
|
};
|
|
12
15
|
type __VLS_Slots = {} & {
|
|
13
|
-
|
|
16
|
+
'column-header'?: (props: typeof __VLS_1) => any;
|
|
14
17
|
} & {
|
|
15
18
|
'lane-header'?: (props: typeof __VLS_3) => any;
|
|
16
19
|
} & {
|
|
17
20
|
card?: (props: typeof __VLS_5) => any;
|
|
21
|
+
} & {
|
|
22
|
+
'column-footer'?: (props: typeof __VLS_7) => any;
|
|
18
23
|
};
|
|
19
24
|
declare const __VLS_base: import("vue").DefineComponent<IBoardProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
20
25
|
move: (event: IBoardMoveEvent) => any;
|
|
26
|
+
"column-move": (event: IBoardColumnMoveEvent) => any;
|
|
21
27
|
}, string, import("vue").PublicProps, Readonly<IBoardProps> & Readonly<{
|
|
22
28
|
onMove?: ((event: IBoardMoveEvent) => any) | undefined;
|
|
29
|
+
"onColumn-move"?: ((event: IBoardColumnMoveEvent) => any) | undefined;
|
|
23
30
|
}>, {
|
|
24
|
-
lanes:
|
|
31
|
+
lanes: IBoardLane[];
|
|
32
|
+
reorderableColumns: boolean;
|
|
25
33
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
26
34
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
27
35
|
declare const _default: typeof __VLS_export;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Board.vue.d.ts","sourceRoot":"","sources":["../../src/components/Board.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Board.vue.d.ts","sourceRoot":"","sources":["../../src/components/Board.vue"],"names":[],"mappings":"AAm1BA,OAAO,KAAK,EACV,WAAW,EACX,YAAY,EACZ,UAAU,EACV,UAAU,EACV,eAAe,EACf,qBAAqB,EACtB,MAAM,WAAW,CAAA;AAwvBlB,QAAA,IAAI,OAAO;;;CAAU,EAAE,OAAO;;CAAU,EAAE,OAAO;;;;CAAU,EAAE,OAAO;;;CAAW,CAAE;AACjF,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GACpD;IAAE,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAClD;IAAE,IAAI,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GACzC;IAAE,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAOvD,QAAA,MAAM,UAAU;;;;;;;;;6EAId,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { IDefaultProps } from '../types/Props.d'
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Text scale of both the presentation text and the editor. `md` reads as a
|
|
5
|
+
* body line, `lg` as a section heading, `xl` as a page/dialog title.
|
|
6
|
+
*/
|
|
7
|
+
type TInlineEditSize = 'md' | 'lg' | 'xl'
|
|
8
|
+
|
|
9
|
+
interface IInlineEditProps extends IDefaultProps {
|
|
10
|
+
/** Current value. Updated live while editing; see `commit`/`cancel`. */
|
|
11
|
+
modelValue: string
|
|
12
|
+
/**
|
|
13
|
+
* Accessible name of the field ("Item title"). Also names the edit
|
|
14
|
+
* affordance for assistive tech, so it is required.
|
|
15
|
+
*/
|
|
16
|
+
label: string
|
|
17
|
+
/** Shown, muted, when the value is empty. */
|
|
18
|
+
placeholder?: string
|
|
19
|
+
size?: TInlineEditSize
|
|
20
|
+
/** Blocks entering edit mode without changing the presentation. */
|
|
21
|
+
disabled?: boolean
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export type { IInlineEditProps, TInlineEditSize }
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { IInlineEditProps } from './InlineEdit.d';
|
|
2
|
+
declare function start(): void;
|
|
3
|
+
declare const __VLS_export: import("vue").DefineComponent<IInlineEditProps, {
|
|
4
|
+
start: typeof start;
|
|
5
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
6
|
+
"update:modelValue": (value: string) => any;
|
|
7
|
+
cancel: () => any;
|
|
8
|
+
commit: (value: string) => any;
|
|
9
|
+
}, string, import("vue").PublicProps, Readonly<IInlineEditProps> & Readonly<{
|
|
10
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
11
|
+
onCancel?: (() => any) | undefined;
|
|
12
|
+
onCommit?: ((value: string) => any) | undefined;
|
|
13
|
+
}>, {
|
|
14
|
+
size: import("./InlineEdit.d").TInlineEditSize;
|
|
15
|
+
disabled: boolean;
|
|
16
|
+
placeholder: string;
|
|
17
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
declare const _default: typeof __VLS_export;
|
|
19
|
+
export default _default;
|
|
20
|
+
//# sourceMappingURL=InlineEdit.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InlineEdit.vue.d.ts","sourceRoot":"","sources":["../../src/components/InlineEdit.vue"],"names":[],"mappings":"AAwMA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AAyBtD,iBAAS,KAAK,IAAI,IAAI,CAQrB;AA0HD,QAAA,MAAM,YAAY;;;;;;;;;;;;;;6EAKhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;;iBAkLf,GAAG;;AADlB,wBAMC"}
|
package/dist/global.d.ts
CHANGED
|
@@ -39,6 +39,7 @@ import Grid from './components/Grid.vue'
|
|
|
39
39
|
import Icon from './components/Icon.vue'
|
|
40
40
|
import ImageCropper from './components/ImageCropper.vue'
|
|
41
41
|
import InfoHint from './components/InfoHint.vue'
|
|
42
|
+
import InlineEdit from './components/InlineEdit.vue'
|
|
42
43
|
import InlineLoading from './components/InlineLoading.vue'
|
|
43
44
|
import InterpolationChart from './components/Charts/InterpolationChart.vue'
|
|
44
45
|
import JsonTree from './components/JsonTree.vue'
|
|
@@ -131,6 +132,7 @@ declare module 'vue' {
|
|
|
131
132
|
NbIcon: typeof Icon
|
|
132
133
|
NbImageCropper: typeof ImageCropper
|
|
133
134
|
NbInfoHint: typeof InfoHint
|
|
135
|
+
NbInlineEdit: typeof InlineEdit
|
|
134
136
|
NbInlineLoading: typeof InlineLoading
|
|
135
137
|
NbInterpolationChart: typeof InterpolationChart
|
|
136
138
|
NbJsonTree: typeof JsonTree
|