piral-ext 1.6.0-beta.7240 → 1.6.0-beta.7243
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/lib/create.js +13 -17
- package/lib/create.js.map +1 -1
- package/lib/index.js +3 -6
- package/lib/index.js.map +1 -1
- package/lib/libs.js +6 -9
- package/lib/libs.js.map +1 -1
- package/lib/types.js +1 -2
- package/package.json +14 -28
- package/esm/create.d.ts +0 -6
- package/esm/create.js +0 -22
- package/esm/create.js.map +0 -1
- package/esm/index.d.ts +0 -3
- package/esm/index.js +0 -4
- package/esm/index.js.map +0 -1
- package/esm/libs.d.ts +0 -6
- package/esm/libs.js +0 -7
- package/esm/libs.js.map +0 -1
- package/esm/types.d.ts +0 -32
- package/esm/types.js +0 -2
- package/esm/types.js.map +0 -1
package/lib/create.js
CHANGED
@@ -1,26 +1,22 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
const piral_notifications_1 = require("piral-notifications");
|
8
|
-
const piral_modals_1 = require("piral-modals");
|
9
|
-
const piral_feeds_1 = require("piral-feeds");
|
1
|
+
import { createLocaleApi } from 'piral-translate';
|
2
|
+
import { createDashboardApi } from 'piral-dashboard';
|
3
|
+
import { createMenuApi } from 'piral-menu';
|
4
|
+
import { createNotificationsApi } from 'piral-notifications';
|
5
|
+
import { createModalsApi } from 'piral-modals';
|
6
|
+
import { createFeedsApi } from 'piral-feeds';
|
10
7
|
/**
|
11
8
|
* Creates an array including all standard APIs from piral-ext.
|
12
9
|
* @param settings Customizes the standard plugin settings.
|
13
10
|
*/
|
14
|
-
function createStandardApi(settings = {}) {
|
11
|
+
export function createStandardApi(settings = {}) {
|
15
12
|
const { locale = undefined, dashboard = undefined, menu = undefined, notifications = undefined, modals = undefined, feeds = undefined, } = settings;
|
16
13
|
return [
|
17
|
-
locale !== false &&
|
18
|
-
dashboard !== false &&
|
19
|
-
menu !== false &&
|
20
|
-
notifications !== false &&
|
21
|
-
modals !== false &&
|
22
|
-
feeds !== false &&
|
14
|
+
locale !== false && createLocaleApi(locale),
|
15
|
+
dashboard !== false && createDashboardApi(dashboard),
|
16
|
+
menu !== false && createMenuApi(menu),
|
17
|
+
notifications !== false && createNotificationsApi(notifications),
|
18
|
+
modals !== false && createModalsApi(modals),
|
19
|
+
feeds !== false && createFeedsApi(feeds),
|
23
20
|
].filter(Boolean);
|
24
21
|
}
|
25
|
-
exports.createStandardApi = createStandardApi;
|
26
22
|
//# sourceMappingURL=create.js.map
|
package/lib/create.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"create.js","sourceRoot":"","sources":["../src/create.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"create.js","sourceRoot":"","sources":["../src/create.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAG7C;;;GAGG;AACH,MAAM,UAAU,iBAAiB,CAAC,WAA6B,EAAE;IAC/D,MAAM,EACJ,MAAM,GAAG,SAAS,EAClB,SAAS,GAAG,SAAS,EACrB,IAAI,GAAG,SAAS,EAChB,aAAa,GAAG,SAAS,EACzB,MAAM,GAAG,SAAS,EAClB,KAAK,GAAG,SAAS,GAClB,GAAG,QAAQ,CAAC;IAEb,OAAO;QACL,MAAM,KAAK,KAAK,IAAI,eAAe,CAAC,MAAM,CAAC;QAC3C,SAAS,KAAK,KAAK,IAAI,kBAAkB,CAAC,SAAS,CAAC;QACpD,IAAI,KAAK,KAAK,IAAI,aAAa,CAAC,IAAI,CAAC;QACrC,aAAa,KAAK,KAAK,IAAI,sBAAsB,CAAC,aAAa,CAAC;QAChE,MAAM,KAAK,KAAK,IAAI,eAAe,CAAC,MAAM,CAAC;QAC3C,KAAK,KAAK,KAAK,IAAI,cAAc,CAAC,KAAK,CAAC;KACzC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;AACpB,CAAC"}
|
package/lib/index.js
CHANGED
@@ -1,7 +1,4 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
tslib_1.__exportStar(require("./create"), exports);
|
5
|
-
tslib_1.__exportStar(require("./libs"), exports);
|
6
|
-
tslib_1.__exportStar(require("./types"), exports);
|
1
|
+
export * from './create';
|
2
|
+
export * from './libs';
|
3
|
+
export * from './types';
|
7
4
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC"}
|
package/lib/libs.js
CHANGED
@@ -1,10 +1,7 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
tslib_1.__exportStar(require("piral-menu"), exports);
|
8
|
-
tslib_1.__exportStar(require("piral-modals"), exports);
|
9
|
-
tslib_1.__exportStar(require("piral-notifications"), exports);
|
1
|
+
export * from 'piral-translate';
|
2
|
+
export * from 'piral-dashboard';
|
3
|
+
export * from 'piral-feeds';
|
4
|
+
export * from 'piral-menu';
|
5
|
+
export * from 'piral-modals';
|
6
|
+
export * from 'piral-notifications';
|
10
7
|
//# sourceMappingURL=libs.js.map
|
package/lib/libs.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"libs.js","sourceRoot":"","sources":["../src/libs.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"libs.js","sourceRoot":"","sources":["../src/libs.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC"}
|
package/lib/types.js
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "piral-ext",
|
3
|
-
"version": "1.6.0-beta.
|
3
|
+
"version": "1.6.0-beta.7243",
|
4
4
|
"description": "Set of standard plugins with component definitions for extending piral-core.",
|
5
5
|
"keywords": [
|
6
6
|
"piral",
|
@@ -16,29 +16,16 @@
|
|
16
16
|
"author": "smapiot",
|
17
17
|
"homepage": "https://piral.io",
|
18
18
|
"license": "MIT",
|
19
|
-
"module": "
|
19
|
+
"module": "lib/index.js",
|
20
20
|
"main": "lib/index.js",
|
21
21
|
"typings": "lib/index.d.ts",
|
22
22
|
"exports": {
|
23
|
-
".":
|
24
|
-
|
25
|
-
"require": "./lib/index.js"
|
26
|
-
},
|
27
|
-
"./esm/*": {
|
28
|
-
"import": "./esm/*"
|
29
|
-
},
|
30
|
-
"./lib/*": {
|
31
|
-
"require": "./lib/*"
|
32
|
-
},
|
33
|
-
"./_/*": {
|
34
|
-
"import": "./esm/*.js",
|
35
|
-
"require": "./lib/*.js"
|
36
|
-
},
|
23
|
+
".": "./lib/index.js",
|
24
|
+
"./lib/*": "./lib/*",
|
37
25
|
"./package.json": "./package.json"
|
38
26
|
},
|
39
27
|
"sideEffects": false,
|
40
28
|
"files": [
|
41
|
-
"esm",
|
42
29
|
"lib",
|
43
30
|
"src"
|
44
31
|
],
|
@@ -51,22 +38,21 @@
|
|
51
38
|
},
|
52
39
|
"scripts": {
|
53
40
|
"cleanup": "rimraf esm lib",
|
54
|
-
"build": "yarn build:
|
55
|
-
"build:
|
56
|
-
"build:esnext": "tsc --project tsconfig.json --outDir esm --module esnext",
|
41
|
+
"build": "yarn build:esnext",
|
42
|
+
"build:esnext": "tsc --project tsconfig.json --outDir lib --module esnext",
|
57
43
|
"typedoc": "typedoc --json ../../../docs/types/piral-ext.json src --exclude \"src/**/*.test.*\"",
|
58
44
|
"test": "echo \"Error: run tests from root\" && exit 1"
|
59
45
|
},
|
60
46
|
"dependencies": {
|
61
|
-
"piral-dashboard": "1.6.0-beta.
|
62
|
-
"piral-feeds": "1.6.0-beta.
|
63
|
-
"piral-menu": "1.6.0-beta.
|
64
|
-
"piral-modals": "1.6.0-beta.
|
65
|
-
"piral-notifications": "1.6.0-beta.
|
66
|
-
"piral-translate": "1.6.0-beta.
|
47
|
+
"piral-dashboard": "1.6.0-beta.7243",
|
48
|
+
"piral-feeds": "1.6.0-beta.7243",
|
49
|
+
"piral-menu": "1.6.0-beta.7243",
|
50
|
+
"piral-modals": "1.6.0-beta.7243",
|
51
|
+
"piral-notifications": "1.6.0-beta.7243",
|
52
|
+
"piral-translate": "1.6.0-beta.7243"
|
67
53
|
},
|
68
54
|
"devDependencies": {
|
69
|
-
"piral-core": "1.6.0-beta.
|
55
|
+
"piral-core": "1.6.0-beta.7243"
|
70
56
|
},
|
71
|
-
"gitHead": "
|
57
|
+
"gitHead": "bbb6e4f78c61b6ef753099a5b378ad2708565ce3"
|
72
58
|
}
|
package/esm/create.d.ts
DELETED
@@ -1,6 +0,0 @@
|
|
1
|
-
import { PiralExtSettings } from './types';
|
2
|
-
/**
|
3
|
-
* Creates an array including all standard APIs from piral-ext.
|
4
|
-
* @param settings Customizes the standard plugin settings.
|
5
|
-
*/
|
6
|
-
export declare function createStandardApi(settings?: PiralExtSettings): (import("piral-core").PiralPlugin<import("piral-translate").PiletLocaleApi> | import("piral-core").PiralPlugin<import("piral-dashboard").PiletDashboardApi> | import("piral-core").PiralPlugin<import("piral-menu").PiletMenuApi> | import("piral-core").PiralPlugin<import("piral-notifications").PiletNotificationsApi> | import("piral-core").PiralPlugin<import("piral-modals").PiletModalsApi> | import("piral-core").PiralPlugin<import("piral-feeds").PiletFeedsApi>)[];
|
package/esm/create.js
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
import { createLocaleApi } from 'piral-translate';
|
2
|
-
import { createDashboardApi } from 'piral-dashboard';
|
3
|
-
import { createMenuApi } from 'piral-menu';
|
4
|
-
import { createNotificationsApi } from 'piral-notifications';
|
5
|
-
import { createModalsApi } from 'piral-modals';
|
6
|
-
import { createFeedsApi } from 'piral-feeds';
|
7
|
-
/**
|
8
|
-
* Creates an array including all standard APIs from piral-ext.
|
9
|
-
* @param settings Customizes the standard plugin settings.
|
10
|
-
*/
|
11
|
-
export function createStandardApi(settings = {}) {
|
12
|
-
const { locale = undefined, dashboard = undefined, menu = undefined, notifications = undefined, modals = undefined, feeds = undefined, } = settings;
|
13
|
-
return [
|
14
|
-
locale !== false && createLocaleApi(locale),
|
15
|
-
dashboard !== false && createDashboardApi(dashboard),
|
16
|
-
menu !== false && createMenuApi(menu),
|
17
|
-
notifications !== false && createNotificationsApi(notifications),
|
18
|
-
modals !== false && createModalsApi(modals),
|
19
|
-
feeds !== false && createFeedsApi(feeds),
|
20
|
-
].filter(Boolean);
|
21
|
-
}
|
22
|
-
//# sourceMappingURL=create.js.map
|
package/esm/create.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"create.js","sourceRoot":"","sources":["../src/create.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAG7C;;;GAGG;AACH,MAAM,UAAU,iBAAiB,CAAC,WAA6B,EAAE;IAC/D,MAAM,EACJ,MAAM,GAAG,SAAS,EAClB,SAAS,GAAG,SAAS,EACrB,IAAI,GAAG,SAAS,EAChB,aAAa,GAAG,SAAS,EACzB,MAAM,GAAG,SAAS,EAClB,KAAK,GAAG,SAAS,GAClB,GAAG,QAAQ,CAAC;IAEb,OAAO;QACL,MAAM,KAAK,KAAK,IAAI,eAAe,CAAC,MAAM,CAAC;QAC3C,SAAS,KAAK,KAAK,IAAI,kBAAkB,CAAC,SAAS,CAAC;QACpD,IAAI,KAAK,KAAK,IAAI,aAAa,CAAC,IAAI,CAAC;QACrC,aAAa,KAAK,KAAK,IAAI,sBAAsB,CAAC,aAAa,CAAC;QAChE,MAAM,KAAK,KAAK,IAAI,eAAe,CAAC,MAAM,CAAC;QAC3C,KAAK,KAAK,KAAK,IAAI,cAAc,CAAC,KAAK,CAAC;KACzC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;AACpB,CAAC"}
|
package/esm/index.d.ts
DELETED
package/esm/index.js
DELETED
package/esm/index.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC"}
|
package/esm/libs.d.ts
DELETED
package/esm/libs.js
DELETED
package/esm/libs.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"libs.js","sourceRoot":"","sources":["../src/libs.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC"}
|
package/esm/types.d.ts
DELETED
@@ -1,32 +0,0 @@
|
|
1
|
-
import type { Localizable } from 'piral-translate';
|
2
|
-
import type { DashboardConfig } from 'piral-dashboard';
|
3
|
-
import type { MenuConfig } from 'piral-menu';
|
4
|
-
import type { NotificationsConfig } from 'piral-notifications';
|
5
|
-
import type { ModalsConfig } from 'piral-modals';
|
6
|
-
import type { FeedsConfig } from 'piral-feeds';
|
7
|
-
export interface PiralExtSettings {
|
8
|
-
/**
|
9
|
-
* Customizes the locale config.
|
10
|
-
*/
|
11
|
-
locale?: Localizable | false;
|
12
|
-
/**
|
13
|
-
* Customizes the dashboard config.
|
14
|
-
*/
|
15
|
-
dashboard?: DashboardConfig | false;
|
16
|
-
/**
|
17
|
-
* Customizes the menu config.
|
18
|
-
*/
|
19
|
-
menu?: MenuConfig | false;
|
20
|
-
/**
|
21
|
-
* Customizes the notifications config.
|
22
|
-
*/
|
23
|
-
notifications?: NotificationsConfig | false;
|
24
|
-
/**
|
25
|
-
* Customizes the modals config.
|
26
|
-
*/
|
27
|
-
modals?: ModalsConfig | false;
|
28
|
-
/**
|
29
|
-
* Customizes the feeds config.
|
30
|
-
*/
|
31
|
-
feeds?: FeedsConfig | false;
|
32
|
-
}
|
package/esm/types.js
DELETED
package/esm/types.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":""}
|