@aerogel/core 0.1.1-next.d86959f8ee7dcf2194447eb424c1095912a5e5f8 → 0.1.1
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/aerogel-core.d.ts +14 -20
- package/dist/aerogel-core.js +0 -1
- package/dist/aerogel-core.js.map +1 -1
- package/package.json +1 -1
- package/src/directives/index.ts +7 -7
package/package.json
CHANGED
package/src/directives/index.ts
CHANGED
|
@@ -5,24 +5,22 @@ import { definePlugin } from '@aerogel/core/plugins';
|
|
|
5
5
|
import measure from './measure';
|
|
6
6
|
import safeHtml from './safe-html';
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
const builtInDirectives: Record<string, Directive> = {
|
|
9
9
|
'measure': measure,
|
|
10
10
|
'safe-html': safeHtml,
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export type AerogelDirectives = typeof aerogelDirectives;
|
|
11
|
+
};
|
|
14
12
|
|
|
15
13
|
export * from './measure';
|
|
16
14
|
|
|
17
15
|
export default definePlugin({
|
|
18
16
|
install(app, options) {
|
|
19
17
|
const directives = {
|
|
20
|
-
...
|
|
18
|
+
...builtInDirectives,
|
|
21
19
|
...options.directives,
|
|
22
20
|
};
|
|
23
21
|
|
|
24
22
|
for (const [name, directive] of Object.entries(directives)) {
|
|
25
|
-
app.directive(name, directive
|
|
23
|
+
app.directive(name, directive);
|
|
26
24
|
}
|
|
27
25
|
},
|
|
28
26
|
});
|
|
@@ -34,5 +32,7 @@ declare module '@aerogel/core/bootstrap/options' {
|
|
|
34
32
|
}
|
|
35
33
|
|
|
36
34
|
declare module 'vue' {
|
|
37
|
-
interface ComponentCustomDirectives
|
|
35
|
+
interface ComponentCustomDirectives {
|
|
36
|
+
measure: Directive<string, string>;
|
|
37
|
+
}
|
|
38
38
|
}
|