@cortezaproject/corteza-vue 2021.9.0-dev.2 → 2021.9.0-rc.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/components/Tour/index.d.ts +2 -0
- package/dist/components/index.d.ts +3 -1
- package/dist/components/loader/index.d.ts +1 -0
- package/dist/components/permissions/def.d.ts +13 -0
- package/dist/components/reminders/index.d.ts +1 -0
- package/dist/components/sidebar/index.d.ts +0 -1
- package/dist/filters/date.d.ts +2 -10
- package/dist/i18n.d.ts +40 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.es.js +19847 -18655
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +19846 -18653
- package/dist/index.js.map +1 -1
- package/dist/plugins/index.d.ts +1 -0
- package/dist/plugins/settings.d.ts +1 -0
- package/package.json +11 -4
|
@@ -4,7 +4,9 @@ export { CInputConfirm, CInputDateTime, CInputInterval, CRichTextInput, } from '
|
|
|
4
4
|
export { CLightbox, } from './lightbox';
|
|
5
5
|
export { CPermissionsButton, CPermissionsForm, CPermissionsModal, } from './permissions';
|
|
6
6
|
export * from './prompts';
|
|
7
|
+
export { CLoaderLogo, } from './loader';
|
|
7
8
|
export { CTopbar, CSidebar, CSidebarNavItems, } from './navigation';
|
|
9
|
+
export { Tour, TourStart, } from './Tour';
|
|
8
10
|
export { CToaster, CToasterLink, } from './toaster';
|
|
9
|
-
export {
|
|
11
|
+
export { CReminderSidebar, } from './reminders';
|
|
10
12
|
export { default as C3 } from './c3';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as CLoaderLogo } from './CLoaderLogo.vue';
|
|
@@ -1 +1,14 @@
|
|
|
1
1
|
export declare const modalOpenEventName = "c-permissions-modal-open";
|
|
2
|
+
interface ResourceParts {
|
|
3
|
+
component: string;
|
|
4
|
+
resourceType?: string;
|
|
5
|
+
references: Array<string>;
|
|
6
|
+
i18nPrefix: string;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Splitting strings:
|
|
10
|
+
* - corteza::compose:moduleField/42/21/12
|
|
11
|
+
* - corteza::compose/42/21/12
|
|
12
|
+
*/
|
|
13
|
+
export declare function split(input: string): ResourceParts;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as CReminderSidebar } from './CReminderSidebar.vue';
|
package/dist/filters/date.d.ts
CHANGED
|
@@ -1,10 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function
|
|
3
|
-
export declare function isoDateOnly(d: Moment | Date | string | number): string;
|
|
4
|
-
export declare function locDate(d: Moment | Date | string | number): string;
|
|
5
|
-
export declare function locLongDate(d: Moment | Date | string | number): string;
|
|
6
|
-
export declare function locDateOnly(d: Moment | Date | string | number): string;
|
|
7
|
-
export declare function locLongDateOnly(d: Moment | Date | string | number): string;
|
|
8
|
-
export declare function locTimeOnly(d: Moment | Date | string | number): string;
|
|
9
|
-
export declare function locLongTimeOnly(d: Moment | Date | string | number): string;
|
|
10
|
-
export declare function relTime(d: Moment | Date | string | number, s?: boolean): string;
|
|
1
|
+
export declare function locFullDateTime(d: unknown): string;
|
|
2
|
+
export declare function locDate(d: unknown): string;
|
package/dist/i18n.d.ts
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { VueConstructor } from 'vue';
|
|
2
|
+
import VueI18Next from '@panter/vue-i18next';
|
|
3
|
+
interface Options {
|
|
4
|
+
app: string;
|
|
5
|
+
resources: object;
|
|
6
|
+
lng: string;
|
|
7
|
+
fallbackLng: string | false;
|
|
8
|
+
/**
|
|
9
|
+
* Namespace(s) to preload
|
|
10
|
+
*/
|
|
11
|
+
ns: string | Array<string>;
|
|
12
|
+
/**
|
|
13
|
+
* Where too look for keys that are not found in the default namespace,
|
|
14
|
+
*/
|
|
15
|
+
fallbackNS: string | false;
|
|
16
|
+
/**
|
|
17
|
+
* What namespace to use when not explicitly defined
|
|
18
|
+
* When empty, default is set to the value of (the first item in) ns
|
|
19
|
+
*/
|
|
20
|
+
defaultNS: string;
|
|
21
|
+
baseURL: string;
|
|
22
|
+
pseudo: boolean;
|
|
23
|
+
}
|
|
24
|
+
declare const _default: (Vue: VueConstructor<import("vue").default>, app: string | Partial<Options>, ...namespaces: string[]) => VueI18Next;
|
|
25
|
+
/**
|
|
26
|
+
* Initializes i18n options, registers plugin on a given Vue instance and returns the options
|
|
27
|
+
*
|
|
28
|
+
* To be used as:
|
|
29
|
+
* import { i18n } from '@cortezaproject/corteza-vue'
|
|
30
|
+
* new Vue({
|
|
31
|
+
* i18n: i18n(Vue, {
|
|
32
|
+
* app: 'corteza-webapp-....'
|
|
33
|
+
* namespaces: [ .... ]
|
|
34
|
+
* }),
|
|
35
|
+
* })
|
|
36
|
+
*
|
|
37
|
+
* The most convenient way to use it:
|
|
38
|
+
* i18n(Vue, 'app name', 'namespace...', 'additional namespace...')
|
|
39
|
+
*/
|
|
40
|
+
export default _default;
|
package/dist/index.d.ts
CHANGED
|
@@ -6,4 +6,5 @@ import * as filters from './filters';
|
|
|
6
6
|
import * as store from './store';
|
|
7
7
|
import * as url from './libs/url';
|
|
8
8
|
import * as websocket from './libs/websocket';
|
|
9
|
-
|
|
9
|
+
import i18n from './i18n';
|
|
10
|
+
export { plugins, mixins, components, corredor, filters, store, url, websocket, i18n, };
|