@kizmann/nano-ui 1.0.5 → 1.0.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kizmann/nano-ui",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "private": false,
package/src/index.js CHANGED
@@ -113,7 +113,7 @@ export const Settings = {
113
113
  notifyPosition: 'bottom-start'
114
114
  };
115
115
 
116
- export function Install(App, Icons = {})
116
+ export function Install(App, Icons = {}, Settings = {})
117
117
  {
118
118
  /**
119
119
  * @const window.pi
@@ -134,8 +134,8 @@ export function Install(App, Icons = {})
134
134
  App.config.globalProperties.trans = Locale.trans;
135
135
  App.config.globalProperties.choice = Locale.choice;
136
136
 
137
- window.nano.Icons = Obj.assign(Icons, window.nano.Icons);
138
- window.nano.Settings = Obj.assign(Settings, window.nano.Settings);
137
+ window.nano.Icons = Obj.assign(window.nano.Icons, Icons);
138
+ window.nano.Settings = Obj.assign(window.nano.Settings, Settings);
139
139
 
140
140
  Arr.each(NanoImports, (NanoModule) => {
141
141
  NanoModule(App);
package/types/index.d.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  // types/index.d.ts
2
- // import Cookie from "./library/cookie";
3
2
 
4
3
  declare interface IconsInterface {
5
4
  handle: string;
@@ -23,9 +22,16 @@ declare interface IconsInterface {
23
22
  [key: string]: string;
24
23
  }
25
24
 
25
+ declare interface SettingsInterface {
26
+ iconPosition: string;
27
+ notifySize: string;
28
+ notifyPosition: string;
29
+ [key: string]: string;
30
+ }
31
+
26
32
  export declare module "@kizmann/nano-ui" {
27
33
 
28
- function Install(App: any, Icons?: Partial<IconsInterface>): void;
34
+ function Install(App: any, Icons?: Partial<IconsInterface>, Settings?: Partial<SettingsInterface>): void;
29
35
 
30
36
  const Icons: typeof IconsInterface;
31
37
  const Settings: typeof SettingsInterface;
@@ -41,4 +47,15 @@ export declare module "@kizmann/nano-ui" {
41
47
  Settings,
42
48
  Install
43
49
  };
44
- }
50
+ }
51
+
52
+ export declare module '@vue/runtime-core' {
53
+ interface ComponentCustomProperties {
54
+ ctor: (key: string, fallback?: any) => () => any
55
+ cmer: (classList: any) => () => any
56
+ cslo: (slot: string, props?: object) => () => any
57
+
58
+ trans: (key: string, values?: object) => string;
59
+ choice: (key: string, count?: number, values?: object) => () => any
60
+ }
61
+ }