@nubisco/ui 1.61.0 → 2.0.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.vue.d.ts.map +1 -1
- package/dist/components/Calendar.vue.d.ts.map +1 -1
- package/dist/components/DataTable.vue.d.ts.map +1 -1
- package/dist/components/DatePicker.vue.d.ts.map +1 -1
- package/dist/components/FileUploader.vue.d.ts.map +1 -1
- package/dist/components/Layer.d.ts +12 -0
- package/dist/components/Layer.vue.d.ts +21 -0
- package/dist/components/Layer.vue.d.ts.map +1 -0
- package/dist/components/Modal.vue.d.ts.map +1 -1
- package/dist/components/Panel.d.ts +9 -0
- package/dist/components/Panel.vue.d.ts +4 -1
- package/dist/components/Panel.vue.d.ts.map +1 -1
- package/dist/components/ProgressBar.vue.d.ts +1 -1
- package/dist/components/Shell.vue.d.ts.map +1 -1
- package/dist/components/ShellPanel.vue.d.ts.map +1 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/composables/useSurfaceLayer.composable.d.ts +122 -0
- package/dist/composables/useSurfaceLayer.composable.d.ts.map +1 -0
- package/dist/global.d.ts +2 -0
- package/dist/index.cjs +9 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +6685 -6585
- package/dist/index.mjs.map +1 -1
- package/dist/main.d.ts +5 -0
- package/dist/main.d.ts.map +1 -1
- package/dist/types.d.ts +3 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/ui.css +1 -1
- package/package.json +1 -1
- package/src/styles/_theme.scss +52 -41
- package/src/styles/variables/_layers.scss +142 -0
|
@@ -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":"AA6UA,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,WAAW,CAAA;AA2TzE,QAAA,IAAI,OAAO;;;CAAU,EAAE,OAAO;;CAAU,EAAE,OAAO;;;;CAAW,CAAE;AAC9D,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,IAAI,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GACzC;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,CAAC;AAK5C,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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Calendar.vue.d.ts","sourceRoot":"","sources":["../../src/components/Calendar.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Calendar.vue.d.ts","sourceRoot":"","sources":["../../src/components/Calendar.vue"],"names":[],"mappings":"AAkYA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AA2UlE,QAAA,IAAI,OAAO;;CAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAK7C,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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataTable.vue.d.ts","sourceRoot":"","sources":["../../src/components/DataTable.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DataTable.vue.d.ts","sourceRoot":"","sources":["../../src/components/DataTable.vue"],"names":[],"mappings":"AA88BA,OAAO,KAAK,EACV,gBAAgB,EAChB,eAAe,EACf,mBAAmB,EAEpB,MAAM,eAAe,CAAA;AAOtB,QAAA,MAAM,YAAY,GAAK,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACjF,aAAa,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,EAC9D,YAAY,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,EAC3G,gBAAgB,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,EAClE;WAw1BO,OAAO,KAAK,EAAE,WAAW,GAAG,mBAAmB,CAAC;;;;KAAmC,CAAC,GAAG,CAAC,OAAO,UAAU,SAAS;QAAE,oBAAoB,EAAE,MAAM,CAAC,CAAA;KAAE,GAAG,CAAC,GAAG,EAAE,CAAC;YAC5J,CAAC,OAAO,EAAE,EAAE,KAAK,IAAI;WACtB,GAAG;;;;cAlB2D,GAAG;;;;cACH,GAAG;;;;;;;cACH,GAAG;;kBAC3D,CAAC,KAAK;;SAAgB,KAAK,GAAG;;iBAC/B,CAAC,KAAK,IAAgB,KAAK,GAAG;;4BACnB,CAAC,KAAK,IAAgB,KAAK,GAAG;;0BAChC,CAAC,KAAK;;;SAAgB,KAAK,GAAG;;gBACxC,CAAC,KAAK;;SAAiB,KAAK,GAAG;;gBAC/B,CAAC,KAAK,IAAiB,KAAK,GAAG;;wBACvB,CAAC,KAAK;;;SAAiB,KAAK,GAAG;;iBACtC,CAAC,KAAK,IAAiB,KAAK,GAAG;;;EAYxC,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAI,CAAC;wBACvD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,mBAAmB,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,GAAG,GAAG;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG;KAAG,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,CAAC,GAAG,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DatePicker.vue.d.ts","sourceRoot":"","sources":["../../src/components/DatePicker.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DatePicker.vue.d.ts","sourceRoot":"","sources":["../../src/components/DatePicker.vue"],"names":[],"mappings":"AA61CA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AA8QtD,iBAAS,YAAY,SAiBpB;AAED,iBAAS,aAAa,SAYrB;AAilCD,QAAA,IAAI,OAAO,IAAU,EAAE,QAAQ,IAAY,CAAE;AAC7C,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC1C;IAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAQ9C,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6EAKd,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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileUploader.vue.d.ts","sourceRoot":"","sources":["../../src/components/FileUploader.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FileUploader.vue.d.ts","sourceRoot":"","sources":["../../src/components/FileUploader.vue"],"names":[],"mappings":"AA4YA,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAA;AAC7C,OAAO,EACL,mBAAmB,EACnB,SAAS,EACT,kBAAkB,EACnB,MAAM,kBAAkB,CAAA;AA0GzB,oEAAoE;AACpE,iBAAS,aAAa,CACpB,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,SAAS,CAAC,QAAQ,CAAC,EAC3B,KAAK,CAAC,EAAE,MAAM,QAMf;AA2ND,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6EAKhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { TLayerLevel } from '../composables/useSurfaceLayer.composable'
|
|
2
|
+
|
|
3
|
+
export interface ILayerProps {
|
|
4
|
+
/**
|
|
5
|
+
* Absolute layer for the subtree. Surfaces directly inside paint this level,
|
|
6
|
+
* exactly like writing `class="nb-layer-{level}"`. Omit it to push the
|
|
7
|
+
* subtree one level deeper than the current context.
|
|
8
|
+
*/
|
|
9
|
+
level?: TLayerLevel
|
|
10
|
+
/** Element or component to render as. Defaults to `div`. */
|
|
11
|
+
as?: string
|
|
12
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type TLayerLevel } from '../composables/useSurfaceLayer.composable';
|
|
2
|
+
import type { ILayerProps } from './Layer.d';
|
|
3
|
+
declare var __VLS_8: {
|
|
4
|
+
level: TLayerLevel;
|
|
5
|
+
};
|
|
6
|
+
type __VLS_Slots = {} & {
|
|
7
|
+
default?: (props: typeof __VLS_8) => any;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_base: import("vue").DefineComponent<ILayerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ILayerProps> & Readonly<{}>, {
|
|
10
|
+
level: TLayerLevel;
|
|
11
|
+
as: string;
|
|
12
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
14
|
+
declare const _default: typeof __VLS_export;
|
|
15
|
+
export default _default;
|
|
16
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
17
|
+
new (): {
|
|
18
|
+
$slots: S;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=Layer.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Layer.vue.d.ts","sourceRoot":"","sources":["../../src/components/Layer.vue"],"names":[],"mappings":"AA+CA,OAAO,EAIL,KAAK,WAAW,EACjB,MAAM,0CAA0C,CAAA;AACjD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAqE5C,QAAA,IAAI,OAAO;;CAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAK/C,QAAA,MAAM,UAAU;;;6EAGd,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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Modal.vue.d.ts","sourceRoot":"","sources":["../../src/components/Modal.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Modal.vue.d.ts","sourceRoot":"","sources":["../../src/components/Modal.vue"],"names":[],"mappings":"AA2NA,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAE3C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAsM5C,QAAA,IAAI,QAAQ,IAAW,EAAE,QAAQ,IAAW,EAAE,QAAQ,IAAY,CAAE;AACpE,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC5C;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC7C;IAAE,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAK/C,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,9 @@
|
|
|
1
|
+
import type { TLayerLevel } from '../composables/useSurfaceLayer.composable'
|
|
2
|
+
|
|
3
|
+
export interface IPanelProps {
|
|
4
|
+
/**
|
|
5
|
+
* Force an absolute layer instead of deriving one from nesting depth.
|
|
6
|
+
* Equivalent to writing `class="nb-layer-{level}"` on the panel.
|
|
7
|
+
*/
|
|
8
|
+
layer?: TLayerLevel
|
|
9
|
+
}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
+
import type { IPanelProps } from './Panel.d';
|
|
1
2
|
declare var __VLS_1: {};
|
|
2
3
|
type __VLS_Slots = {} & {
|
|
3
4
|
default?: (props: typeof __VLS_1) => any;
|
|
4
5
|
};
|
|
5
|
-
declare const __VLS_base: import("vue").DefineComponent<
|
|
6
|
+
declare const __VLS_base: import("vue").DefineComponent<IPanelProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<IPanelProps> & Readonly<{}>, {
|
|
7
|
+
layer: import("../composables/useSurfaceLayer.composable").TLayerLevel;
|
|
8
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
6
9
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
7
10
|
declare const _default: typeof __VLS_export;
|
|
8
11
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Panel.vue.d.ts","sourceRoot":"","sources":["../../src/components/Panel.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Panel.vue.d.ts","sourceRoot":"","sources":["../../src/components/Panel.vue"],"names":[],"mappings":"AA8BA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAyC5C,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAK/C,QAAA,MAAM,UAAU;;6EAGd,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"}
|
|
@@ -4,8 +4,8 @@ declare const __VLS_export: import("vue").DefineComponent<IProgressBarProps, {},
|
|
|
4
4
|
id: string;
|
|
5
5
|
max: number;
|
|
6
6
|
status: `${EProgressBarStatus}`;
|
|
7
|
-
helper: string;
|
|
8
7
|
value: number;
|
|
8
|
+
helper: string;
|
|
9
9
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
10
|
declare const _default: typeof __VLS_export;
|
|
11
11
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Shell.vue.d.ts","sourceRoot":"","sources":["../../src/components/Shell.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Shell.vue.d.ts","sourceRoot":"","sources":["../../src/components/Shell.vue"],"names":[],"mappings":"AA0jBA,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AA2UvC,QAAA,IAAI,OAAO,IAAU,EAAE,OAAO,IAAU,EAAE,OAAO,IAAU,EAAE,OAAO,IAAU,EAAE,OAAO,IAAU,EAAE,QAAQ,IAAW,EAAE,QAAQ,IAAW,EAAE,QAAQ,IAAW,EAAE,QAAQ,IAAW,EAAE,QAAQ,IAAW,EAAE,QAAQ,IAAW,EAAE,QAAQ,IAAW,EAAE,QAAQ,IAAY,CAAE;AAC5Q,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GACjD;IAAE,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,OA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AE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ShellPanel.vue.d.ts","sourceRoot":"","sources":["../../src/components/ShellPanel.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ShellPanel.vue.d.ts","sourceRoot":"","sources":["../../src/components/ShellPanel.vue"],"names":[],"mappings":"AAkSA,OAAO,KAAK,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AAwBvE,iBAAS,OAAO,CAAC,IAAI,EAAE,eAAe,QAErC;AAwLD,QAAA,IAAI,OAAO,IAAU,EAAE,OAAO,IAAU,EAAE,OAAO,IAAU,EAAE,OAAO,IAAW,CAAE;AACjF,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC1C;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC5C;IAAE,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC7C;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAK/C,QAAA,MAAM,UAAU;;;;;;;;;;6EAKd,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"}
|
|
@@ -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;;iBAoIf,GAAG;;AADlB,wBAMC"}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import { type ComputedRef, type InjectionKey, type MaybeRefOrGetter, type Ref } from 'vue';
|
|
2
|
+
/**
|
|
3
|
+
* The four visual depth levels of the layer system.
|
|
4
|
+
*
|
|
5
|
+
* 0 = page ground, 1 = panels and cards, 2 = nested sections,
|
|
6
|
+
* 3 = overlays, popovers and modals (also the clamp ceiling).
|
|
7
|
+
*/
|
|
8
|
+
export type TLayerLevel = 0 | 1 | 2 | 3;
|
|
9
|
+
/** Lowest layer level. */
|
|
10
|
+
export declare const NB_MIN_LAYER = 0;
|
|
11
|
+
/** Highest layer level. Nesting past this repeats it rather than running out. */
|
|
12
|
+
export declare const NB_MAX_LAYER = 3;
|
|
13
|
+
/**
|
|
14
|
+
* Attribute stamped on every element that PAINTS a surface through this
|
|
15
|
+
* mechanism. It is what tells the DOM probe apart a painted surface (children
|
|
16
|
+
* go one level deeper) from a bare `.nb-layer-N` context class (children paint
|
|
17
|
+
* exactly N, which is the pre-existing behaviour).
|
|
18
|
+
*/
|
|
19
|
+
export declare const NB_LAYER_ATTRIBUTE = "data-nb-layer";
|
|
20
|
+
/**
|
|
21
|
+
* Provided value is the level the NEXT surface below this point should paint,
|
|
22
|
+
* mirroring the way Carbon's `LayerContext` carries the level of the next
|
|
23
|
+
* `<Layer>` rather than the level of the current one. Absent means "nothing has
|
|
24
|
+
* claimed a layer yet", which resolves to 1 and reproduces the `:root` default
|
|
25
|
+
* of `--nb-c-surface`.
|
|
26
|
+
*/
|
|
27
|
+
export declare const NB_LAYER_INJECTION_KEY: InjectionKey<Readonly<Ref<TLayerLevel>>>;
|
|
28
|
+
/** Clamps any number into the layer range. Non-finite input resolves to the floor. */
|
|
29
|
+
export declare function clampLayer(value: number): TLayerLevel;
|
|
30
|
+
/** The CSS class that pins an element and its subtree to an absolute layer. */
|
|
31
|
+
export declare function layerClassFor(level: TLayerLevel): string;
|
|
32
|
+
/**
|
|
33
|
+
* What the DOM probe found, and where.
|
|
34
|
+
*
|
|
35
|
+
* `class` means the nearest authority is a plain `.nb-layer-N` element written
|
|
36
|
+
* by the application. Nothing in the component tree can see that, so it is
|
|
37
|
+
* authoritative. `surface` means the nearest authority is another surface
|
|
38
|
+
* painted by this mechanism, which already publishes its level through the
|
|
39
|
+
* component tree, so the reactive context is preferred over the snapshot.
|
|
40
|
+
*/
|
|
41
|
+
export interface ILayerProbeResult {
|
|
42
|
+
level: TLayerLevel;
|
|
43
|
+
source: 'class' | 'surface';
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Walks up the real DOM looking for the nearest layer authority.
|
|
47
|
+
*
|
|
48
|
+
* Stops at whichever comes first:
|
|
49
|
+
* - an element stamped with `data-nb-layer` (a painted surface): one level
|
|
50
|
+
* deeper, clamped;
|
|
51
|
+
* - an element carrying `.nb-layer-N` (a context class): exactly N, which is
|
|
52
|
+
* what that class has always meant.
|
|
53
|
+
*
|
|
54
|
+
* Returns null when neither is found. The probe is what makes an application's
|
|
55
|
+
* hand-written `.nb-layer-N` wrapper keep working even though the component
|
|
56
|
+
* tree cannot see it.
|
|
57
|
+
*/
|
|
58
|
+
export declare function probeLayerFromDom(start: Element | null): ILayerProbeResult | null;
|
|
59
|
+
export interface IUseSurfaceLayerOptions {
|
|
60
|
+
/**
|
|
61
|
+
* Force an absolute level, ignoring context. Equivalent to the consumer
|
|
62
|
+
* writing `.nb-layer-N` by hand.
|
|
63
|
+
*/
|
|
64
|
+
level?: MaybeRefOrGetter<TLayerLevel | undefined>;
|
|
65
|
+
/**
|
|
66
|
+
* The surface is an overlay that leaves the document flow (a teleported
|
|
67
|
+
* modal, menu or popover). It pins to the top layer instead of inheriting
|
|
68
|
+
* the depth of whatever the teleport target happens to sit in, and it skips
|
|
69
|
+
* the DOM probe for the same reason.
|
|
70
|
+
*/
|
|
71
|
+
overlay?: boolean;
|
|
72
|
+
/**
|
|
73
|
+
* Run the mount-time DOM probe. Defaults to true for in-flow surfaces and
|
|
74
|
+
* false for overlays. Turn it off for surfaces rendered outside the document.
|
|
75
|
+
*/
|
|
76
|
+
probe?: boolean;
|
|
77
|
+
/**
|
|
78
|
+
* Element that actually paints the surface. Defaults to the component root.
|
|
79
|
+
* Only used by the probe.
|
|
80
|
+
*/
|
|
81
|
+
el?: Ref<Element | {
|
|
82
|
+
$el?: Element;
|
|
83
|
+
} | null | undefined>;
|
|
84
|
+
/** Publish the resulting context to descendants. Defaults to true. */
|
|
85
|
+
provideContext?: boolean;
|
|
86
|
+
}
|
|
87
|
+
export interface IUseSurfaceLayerResult {
|
|
88
|
+
/** The level this surface paints. */
|
|
89
|
+
level: ComputedRef<TLayerLevel>;
|
|
90
|
+
/** `nb-layer-N` for the resolved level. */
|
|
91
|
+
layerClass: ComputedRef<string>;
|
|
92
|
+
/** Bind on the painting element: the class plus the surface marker. */
|
|
93
|
+
layerProps: ComputedRef<Record<string, string>>;
|
|
94
|
+
/** Optional template ref for the painting element when it is not the root. */
|
|
95
|
+
surfaceRef: Ref<Element | {
|
|
96
|
+
$el?: Element;
|
|
97
|
+
} | null | undefined>;
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Read-only view of the current layer context, mirroring Carbon's `useLayer()`.
|
|
101
|
+
* Returns the level the next surface below this point would paint.
|
|
102
|
+
*/
|
|
103
|
+
export declare function useLayer(): {
|
|
104
|
+
level: ComputedRef<TLayerLevel>;
|
|
105
|
+
};
|
|
106
|
+
/**
|
|
107
|
+
* Derives the layer a surface-painting component should use from how deeply it
|
|
108
|
+
* is nested, so applications never have to name a depth.
|
|
109
|
+
*
|
|
110
|
+
* Resolution order, strongest first:
|
|
111
|
+
* 1. an explicit `level` option (a prop);
|
|
112
|
+
* 2. an explicit `nb-layer-N` class on the component itself;
|
|
113
|
+
* 3. the nearest layer authority found in the DOM at mount time;
|
|
114
|
+
* 4. the injected context from the nearest enclosing surface;
|
|
115
|
+
* 5. level 1, matching the `:root` default of `--nb-c-surface`.
|
|
116
|
+
*
|
|
117
|
+
* Steps 3 and 4 agree in every tree built purely out of these components; the
|
|
118
|
+
* probe only changes the answer where an application has written a
|
|
119
|
+
* `.nb-layer-N` container that provide/inject cannot see.
|
|
120
|
+
*/
|
|
121
|
+
export declare function useSurfaceLayer(options?: IUseSurfaceLayerOptions): IUseSurfaceLayerResult;
|
|
122
|
+
//# sourceMappingURL=useSurfaceLayer.composable.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSurfaceLayer.composable.d.ts","sourceRoot":"","sources":["../../src/composables/useSurfaceLayer.composable.ts"],"names":[],"mappings":"AAAA,OAAO,EAQL,KAAK,WAAW,EAChB,KAAK,YAAY,EACjB,KAAK,gBAAgB,EACrB,KAAK,GAAG,EACT,MAAM,KAAK,CAAA;AAEZ;;;;;GAKG;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;AAEvC,0BAA0B;AAC1B,eAAO,MAAM,YAAY,IAAI,CAAA;AAE7B,iFAAiF;AACjF,eAAO,MAAM,YAAY,IAAI,CAAA;AAE7B;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,kBAAkB,CAAA;AAEjD;;;;;;GAMG;AACH,eAAO,MAAM,sBAAsB,EAAE,YAAY,CAAC,QAAQ,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC,CACxD,CAAA;AAEpB,sFAAsF;AACtF,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,WAAW,CAMrD;AAED,+EAA+E;AAC/E,wBAAgB,aAAa,CAAC,KAAK,EAAE,WAAW,GAAG,MAAM,CAExD;AAuCD;;;;;;;;GAQG;AAC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HANGED
|
@@ -32,6 +32,7 @@ import ImageCropper from './components/ImageCropper.vue'
|
|
|
32
32
|
import InterpolationChart from './components/Charts/InterpolationChart.vue'
|
|
33
33
|
import JsonTree from './components/JsonTree.vue'
|
|
34
34
|
import Label from './components/Label.vue'
|
|
35
|
+
import Layer from './components/Layer.vue'
|
|
35
36
|
import LineChart from './components/Charts/LineChart.vue'
|
|
36
37
|
import Menu from './components/Menu.vue'
|
|
37
38
|
import MenuBar from './components/MenuBar.vue'
|
|
@@ -100,6 +101,7 @@ declare module 'vue' {
|
|
|
100
101
|
NbInterpolationChart: typeof InterpolationChart
|
|
101
102
|
NbJsonTree: typeof JsonTree
|
|
102
103
|
NbLabel: typeof Label
|
|
104
|
+
NbLayer: typeof Layer
|
|
103
105
|
NbLineChart: typeof LineChart
|
|
104
106
|
NbMenu: typeof Menu
|
|
105
107
|
NbMenuBar: typeof MenuBar
|