@94ai/nf-notification 3.1.31

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/.eslintrc.cjs ADDED
@@ -0,0 +1,49 @@
1
+ module.exports = {
2
+ "root": true,
3
+ "env": {
4
+ "node": true
5
+ },
6
+ "extends": [
7
+ "plugin:vue/essential"
8
+ ],
9
+ "parser": "vue-eslint-parser",
10
+ "parserOptions": {
11
+ "parser": "@typescript-eslint/parser",
12
+ "ecmaVersion": 2020,
13
+ "sourceType": "module"
14
+ },
15
+ "rules": {
16
+ "@typescript-eslint/ban-ts-ignore": "off",
17
+ "@typescript-eslint/explicit-function-return-type": "off",
18
+ "@typescript-eslint/no-explicit-any": "off",
19
+ "@typescript-eslint/no-var-requires": "off",
20
+ "@typescript-eslint/no-empty-function": "off",
21
+ "vue/custom-event-name-casing": "off",
22
+ "no-use-before-define": "off",
23
+ "@typescript-eslint/no-use-before-define": "off",
24
+ "@typescript-eslint/ban-ts-comment": "off",
25
+ "@typescript-eslint/ban-types": "off",
26
+ "@typescript-eslint/no-non-null-assertion": "off",
27
+ "@typescript-eslint/explicit-module-boundary-types": "off",
28
+ "@typescript-eslint/no-unused-vars": "off",
29
+ "vue/multi-word-component-names": [
30
+ "error",
31
+ {
32
+ "ignores": [
33
+ "index"
34
+ ]
35
+ }
36
+ ],
37
+ "no-console": "warn",
38
+ "no-debugger": "warn",
39
+ "prettier/prettier": [
40
+ "error",
41
+ {
42
+ "tabWidth": 2,
43
+ "singleQuote": true,
44
+ "semi": false,
45
+ "endOfLine": "auto"
46
+ }
47
+ ]
48
+ }
49
+ }
package/README.md ADDED
@@ -0,0 +1,11 @@
1
+ # `@94ai/nf-notification`
2
+
3
+ > TODO: description
4
+
5
+ ## Usage
6
+
7
+ ```
8
+ const nfNotification = require('@94ai/nf-notification');
9
+
10
+ // TODO: DEMONSTRATE API
11
+ ```
@@ -0,0 +1,8 @@
1
+ export {}
2
+
3
+ declare module 'vue' {
4
+ export interface GlobalComponents {
5
+ NfNotification: typeof import('@94ai/nf-notification/lib/nf-notification.vue')['default']
6
+
7
+ }
8
+ }
package/lib/index.d.ts ADDED
@@ -0,0 +1,79 @@
1
+ import { PluginObject } from 'vue-demi';
2
+ declare const _default: import("vue/types/v3-component-public-instance").ComponentPublicInstanceConstructor<import("vue/types/v3-component-public-instance").Vue3Instance<{
3
+ visible: boolean;
4
+ title: string;
5
+ message: string;
6
+ duration: number;
7
+ type: string;
8
+ showClose: boolean;
9
+ customClass: string;
10
+ iconClass: string;
11
+ onClose: null;
12
+ onClick: null;
13
+ onCancel: null;
14
+ onConfirm: null;
15
+ closed: boolean;
16
+ verticalOffset: number;
17
+ timer: null;
18
+ dangerouslyUseHTMLString: boolean;
19
+ position: string;
20
+ cancelButtonText: string;
21
+ confirmButtonText: string;
22
+ }, Readonly<import("vue-demi").ExtractPropTypes<{}>>, Readonly<import("vue-demi").ExtractPropTypes<{}>>, {}, {}, true, import("vue/types/v3-component-options").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, any>> & Readonly<Readonly<import("vue-demi").ExtractPropTypes<{}>>> & import("vue-demi").ShallowUnwrapRef<any> & {
23
+ visible: boolean;
24
+ title: string;
25
+ message: string;
26
+ duration: number;
27
+ type: string;
28
+ showClose: boolean;
29
+ customClass: string;
30
+ iconClass: string;
31
+ onClose: null;
32
+ onClick: null;
33
+ onCancel: null;
34
+ onConfirm: null;
35
+ closed: boolean;
36
+ verticalOffset: number;
37
+ timer: null;
38
+ dangerouslyUseHTMLString: boolean;
39
+ position: string;
40
+ cancelButtonText: string;
41
+ confirmButtonText: string;
42
+ } & import("vue/types/v3-component-options").ExtractComputedReturns<{
43
+ typeClass(): string;
44
+ horizontalClass(): "right" | "left";
45
+ verticalProperty(): "top" | "bottom";
46
+ positionStyle(): {
47
+ [x: string]: string;
48
+ };
49
+ }> & import("vue-demi").ComponentCustomProperties & Readonly<import("vue-demi").ExtractPropTypes<{}>>, any, any, any, import("vue-demi").ComponentComputedOptions, import("vue-demi").ComponentMethodOptions> & import("vue/types/v3-component-options").ComponentOptionsBase<Readonly<import("vue-demi").ExtractPropTypes<{}>>, any, {
50
+ visible: boolean;
51
+ title: string;
52
+ message: string;
53
+ duration: number;
54
+ type: string;
55
+ showClose: boolean;
56
+ customClass: string;
57
+ iconClass: string;
58
+ onClose: null;
59
+ onClick: null;
60
+ onCancel: null;
61
+ onConfirm: null;
62
+ closed: boolean;
63
+ verticalOffset: number;
64
+ timer: null;
65
+ dangerouslyUseHTMLString: boolean;
66
+ position: string;
67
+ cancelButtonText: string;
68
+ confirmButtonText: string;
69
+ }, {
70
+ typeClass(): string;
71
+ horizontalClass(): "right" | "left";
72
+ verticalProperty(): "top" | "bottom";
73
+ positionStyle(): {
74
+ [x: string]: string;
75
+ };
76
+ }, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, {}> & {
77
+ props: {};
78
+ } & PluginObject<undefined>;
79
+ export default _default;
package/lib/main.d.ts ADDED
@@ -0,0 +1,6 @@
1
+ declare const Notification: {
2
+ (options: any): any;
3
+ close(id: any, userOnClose: any): void;
4
+ closeAll(): void;
5
+ };
6
+ export default Notification;