@rws-framework/client 2.20.1 → 2.20.3
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/.bin/emerge.sh +15 -15
- package/builder/vite/index.ts +4 -4
- package/builder/vite/rws.vite.config.ts +132 -132
- package/builder/vite/rws_scss_plugin.ts +61 -61
- package/builder/webpack/index.js +10 -10
- package/builder/webpack/rws.webpack.config.js +161 -161
- package/builder/webpack/rws_scss_plugin.js +90 -90
- package/builder/webpack/rws_webpack_plugin.js +137 -137
- package/cfg/_default.cfg.js +26 -26
- package/cfg/_storage.d.ts +22 -22
- package/cfg/_storage.js +42 -42
- package/cfg/tsconfigSetup.js +146 -146
- package/docs/assets/26e93147f10415a0ed4a.svg +6 -6
- package/docs/assets/75c9471662e97ee24f29.svg +7 -7
- package/docs/assets/db90e4df2373980c497d.svg +9 -9
- package/docs/assets/highlight.css +127 -127
- package/docs/assets/main.js +59 -59
- package/docs/assets/style.css +1414 -1414
- package/docs/classes/ApiServiceInstance.html +25 -25
- package/docs/classes/ConfigServiceInstance.html +21 -21
- package/docs/classes/DOMServiceInstance.html +17 -17
- package/docs/classes/NotifyServiceInstance.html +15 -15
- package/docs/classes/RWSClientInstance.html +45 -45
- package/docs/classes/RWSPlugin.html +13 -13
- package/docs/classes/RWSService.html +10 -10
- package/docs/classes/RWSViewComponent.html +1022 -1022
- package/docs/classes/ServiceWorkerServiceInstance.html +13 -13
- package/docs/classes/UtilsServiceInstance.html +13 -13
- package/docs/functions/attr.html +5 -5
- package/docs/functions/observable.html +3 -3
- package/docs/index.html +179 -179
- package/docs/interfaces/HTMLTag.html +3 -3
- package/docs/interfaces/IRWSConfig.html +20 -20
- package/docs/interfaces/IRWSDecoratorOptions.html +5 -5
- package/docs/interfaces/IRWSHttpRoute.html +2 -2
- package/docs/interfaces/IRWSPrefixedHTTProutes.html +2 -2
- package/docs/interfaces/IRWSUser.html +5 -5
- package/docs/modules.html +45 -45
- package/foundation/index.js +1 -1
- package/foundation/rws-foundation.d.ts +7 -7
- package/foundation/rws-foundation.js +7 -7
- package/package.json +1 -1
- package/service_worker/src/_service_worker.ts +83 -83
- package/service_worker/tsconfig.json +20 -20
- package/service_worker/webpack.config.js +66 -66
- package/src/client/components.ts +67 -67
- package/src/client/config.ts +175 -175
- package/src/client/hotReload.ts +22 -22
- package/src/client/services.ts +27 -27
- package/src/client.ts +208 -208
- package/src/components/_component.ts +247 -247
- package/src/components/_container.ts +15 -15
- package/src/components/_decorator.ts +122 -122
- package/src/components/_definitions.ts +64 -64
- package/src/components/_event_handling.ts +40 -40
- package/src/components/index.ts +25 -25
- package/src/index.ts +86 -86
- package/src/plugins/_builder.js +31 -31
- package/src/plugins/_plugin.ts +60 -60
- package/src/services/ApiService.ts +105 -105
- package/src/services/ConfigService.ts +125 -125
- package/src/services/DOMService.ts +93 -93
- package/src/services/NotifyService.ts +47 -47
- package/src/services/ServiceWorkerService.ts +60 -60
- package/src/services/UtilsService.ts +60 -60
- package/src/services/_service.ts +64 -64
- package/src/styles/README.md +157 -157
- package/src/styles/_darkreader.scss +30 -30
- package/src/styles/_grid.scss +75 -75
- package/src/styles/_grid_legacy.scss +49 -49
- package/src/styles/_misc.scss +8 -8
- package/src/styles/_scrollbars.scss +40 -40
- package/src/styles/includes.scss +6 -6
- package/src/types/IBackendCore.ts +11 -11
- package/src/types/IRWSConfig.ts +29 -29
- package/src/types/IRWSPlugin.ts +23 -23
- package/src/types/IRWSResource.ts +4 -4
- package/src/types/IRWSUser.ts +6 -6
- package/src/types/IRWSViewComponent.ts +36 -36
- package/src/types/IReFormerField.ts +4 -4
- package/src/types/RWSNotify.ts +6 -6
- package/src/types/RWSWindow.ts +41 -41
- package/types/declarations.d.ts +8 -8
- package/types/docs-typings.d.ts +15 -15
package/src/types/RWSWindow.ts
CHANGED
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
import { RWSClientInstance } from '../client';
|
|
2
|
-
import { Container, InterfaceSymbol } from '../components/_container';
|
|
3
|
-
|
|
4
|
-
import { RWSPlugin, DefaultRWSPluginOptionsType } from '../plugins/_plugin';
|
|
5
|
-
import { v1 as uuid} from 'uuid';
|
|
6
|
-
export type RWSWindowComponentInterface = (params?: any) => void;
|
|
7
|
-
export type RWSWindowComponentEntry = { interface: RWSWindowComponentInterface, component: any };
|
|
8
|
-
export type RWSWindowComponentRegister = { [key: string]: RWSWindowComponentEntry};
|
|
9
|
-
|
|
10
|
-
export function loadRWSRichWindow(): RWSWindow
|
|
11
|
-
{
|
|
12
|
-
const richWindow: RWSWindow = window;
|
|
13
|
-
|
|
14
|
-
if(!richWindow.RWS){
|
|
15
|
-
const newNode = document.createElement('main');
|
|
16
|
-
newNode.id = 'rws-cntr-id-' + uuid();
|
|
17
|
-
|
|
18
|
-
console.log('\x1b[1m[RWS]\x1b[0m Created new container node: ', newNode.id);
|
|
19
|
-
|
|
20
|
-
richWindow.RWS = {
|
|
21
|
-
client: null,
|
|
22
|
-
components: {},
|
|
23
|
-
plugins: {},
|
|
24
|
-
container: null,
|
|
25
|
-
container_node: newNode,
|
|
26
|
-
_registered: {}
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
return richWindow;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export default interface RWSWindow extends Window {
|
|
34
|
-
RWS?: {
|
|
35
|
-
client?: RWSClientInstance
|
|
36
|
-
components: RWSWindowComponentRegister
|
|
37
|
-
plugins: {[key: string]: RWSPlugin<DefaultRWSPluginOptionsType>}
|
|
38
|
-
container: Container | null
|
|
39
|
-
container_node: Element | null
|
|
40
|
-
_registered: {[key: string]: InterfaceSymbol<any>};
|
|
41
|
-
}
|
|
1
|
+
import { RWSClientInstance } from '../client';
|
|
2
|
+
import { Container, InterfaceSymbol } from '../components/_container';
|
|
3
|
+
|
|
4
|
+
import { RWSPlugin, DefaultRWSPluginOptionsType } from '../plugins/_plugin';
|
|
5
|
+
import { v1 as uuid} from 'uuid';
|
|
6
|
+
export type RWSWindowComponentInterface = (params?: any) => void;
|
|
7
|
+
export type RWSWindowComponentEntry = { interface: RWSWindowComponentInterface, component: any };
|
|
8
|
+
export type RWSWindowComponentRegister = { [key: string]: RWSWindowComponentEntry};
|
|
9
|
+
|
|
10
|
+
export function loadRWSRichWindow(): RWSWindow
|
|
11
|
+
{
|
|
12
|
+
const richWindow: RWSWindow = window;
|
|
13
|
+
|
|
14
|
+
if(!richWindow.RWS){
|
|
15
|
+
const newNode = document.createElement('main');
|
|
16
|
+
newNode.id = 'rws-cntr-id-' + uuid();
|
|
17
|
+
|
|
18
|
+
console.log('\x1b[1m[RWS]\x1b[0m Created new container node: ', newNode.id);
|
|
19
|
+
|
|
20
|
+
richWindow.RWS = {
|
|
21
|
+
client: null,
|
|
22
|
+
components: {},
|
|
23
|
+
plugins: {},
|
|
24
|
+
container: null,
|
|
25
|
+
container_node: newNode,
|
|
26
|
+
_registered: {}
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
return richWindow;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export default interface RWSWindow extends Window {
|
|
34
|
+
RWS?: {
|
|
35
|
+
client?: RWSClientInstance
|
|
36
|
+
components: RWSWindowComponentRegister
|
|
37
|
+
plugins: {[key: string]: RWSPlugin<DefaultRWSPluginOptionsType>}
|
|
38
|
+
container: Container | null
|
|
39
|
+
container_node: Element | null
|
|
40
|
+
_registered: {[key: string]: InterfaceSymbol<any>};
|
|
41
|
+
}
|
|
42
42
|
}
|
package/types/declarations.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
declare module '*.scss' {
|
|
2
|
-
const content: string;
|
|
3
|
-
export default content;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
declare module '*.html' {
|
|
7
|
-
const content: string;
|
|
8
|
-
export default content;
|
|
1
|
+
declare module '*.scss' {
|
|
2
|
+
const content: string;
|
|
3
|
+
export default content;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
declare module '*.html' {
|
|
7
|
+
const content: string;
|
|
8
|
+
export default content;
|
|
9
9
|
}
|
package/types/docs-typings.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
// custom-typings.d.ts
|
|
2
|
-
declare module 'glob' {
|
|
3
|
-
import { Minimatch } from 'minimatch';
|
|
4
|
-
|
|
5
|
-
namespace glob {
|
|
6
|
-
interface IOptions {
|
|
7
|
-
// Add only the options you need or leave it empty to bypass the error
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
interface IGlobBase {
|
|
11
|
-
minimatch: Minimatch;
|
|
12
|
-
options: IOptions;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
}
|
|
1
|
+
// custom-typings.d.ts
|
|
2
|
+
declare module 'glob' {
|
|
3
|
+
import { Minimatch } from 'minimatch';
|
|
4
|
+
|
|
5
|
+
namespace glob {
|
|
6
|
+
interface IOptions {
|
|
7
|
+
// Add only the options you need or leave it empty to bypass the error
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
interface IGlobBase {
|
|
11
|
+
minimatch: Minimatch;
|
|
12
|
+
options: IOptions;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|