@rws-framework/client 2.10.11 → 2.10.13
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/cfg/build_steps/webpack/_webpack_config.js +1 -6
- package/package.json +9 -12
- package/rws.webpack.config.js +5 -0
- package/src/components/_component.ts +4 -2
- package/src/components/_container.ts +6 -2
- package/src/components/_decorator.ts +1 -1
- package/src/components/_definitions.ts +2 -0
- package/src/index.ts +75 -56
- package/src/services/_service.ts +2 -2
- package/src/styles/_grid.scss +8 -16
- package/src/styles/includes.scss +1 -0
- package/webpack/loaders/rws_fast_ts_loader.js +0 -7
|
@@ -47,12 +47,7 @@ function createWebpackConfig(
|
|
|
47
47
|
externals: rwsExternals(executionDir, modules_setup, automatedChunks, {
|
|
48
48
|
_vars: devExternalsVars
|
|
49
49
|
}),
|
|
50
|
-
cache:
|
|
51
|
-
type: 'filesystem',
|
|
52
|
-
buildDependencies: {
|
|
53
|
-
config: [__filename],
|
|
54
|
-
},
|
|
55
|
-
}
|
|
50
|
+
cache: false,
|
|
56
51
|
}
|
|
57
52
|
}
|
|
58
53
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rws-framework/client",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "2.10.
|
|
4
|
+
"version": "2.10.13",
|
|
5
5
|
"main": "src/index.ts",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"docs": "typedoc --tsconfig ./tsconfig.json"
|
|
@@ -35,19 +35,12 @@
|
|
|
35
35
|
"he": "^1.2.0",
|
|
36
36
|
"json5": "^2.2.3",
|
|
37
37
|
"lodash": "^4.17.21",
|
|
38
|
-
"moment": "^2.29.4",
|
|
39
|
-
"node-sass": "^7.0.3",
|
|
38
|
+
"moment": "^2.29.4",
|
|
40
39
|
"partial-json-parser": "^1.0.0",
|
|
41
40
|
"reflect-metadata": "^0.1.13",
|
|
42
41
|
"resolve-url-loader": "^5.0.0",
|
|
43
|
-
"sanitize-html": "^2.12.1",
|
|
44
|
-
"sass": "1.69.7",
|
|
45
|
-
"sass-loader": "^13.3.2",
|
|
46
|
-
"scss-loading-animations": "^1.0.1",
|
|
42
|
+
"sanitize-html": "^2.12.1",
|
|
47
43
|
"socket.io-client": "^4.7.2",
|
|
48
|
-
"source-map": "^0.7.4",
|
|
49
|
-
"source-map-support": "^0.5.21",
|
|
50
|
-
"stacktrace-gps": "^3.1.2",
|
|
51
44
|
"upload": "^1.3.2",
|
|
52
45
|
"url-router": "^13.0.0",
|
|
53
46
|
"uuid": "^9.0.1",
|
|
@@ -73,9 +66,13 @@
|
|
|
73
66
|
"mini-css-extract-plugin": "^2.7.6",
|
|
74
67
|
"minimatch": "^9.0.4",
|
|
75
68
|
"node-sass": "^9.0.0",
|
|
76
|
-
"raw-loader": "^4.0.2",
|
|
69
|
+
"raw-loader": "^4.0.2",
|
|
70
|
+
"source-map": "^0.7.4",
|
|
71
|
+
"source-map-support": "^0.5.21",
|
|
72
|
+
"stacktrace-gps": "^3.1.2",
|
|
73
|
+
"sass": "1.69.7",
|
|
77
74
|
"sass-loader": "^13.3.2",
|
|
78
|
-
"
|
|
75
|
+
"scss-loading-animations": "^1.0.1",
|
|
79
76
|
"speed-measure-webpack-plugin": "^1.5.0",
|
|
80
77
|
"style-loader": "^3.3.3",
|
|
81
78
|
"terser-webpack-plugin": "^5.3.9",
|
package/rws.webpack.config.js
CHANGED
|
@@ -68,6 +68,11 @@ const RWSWebpackWrapper = async (rwsFrontendConfig) => {
|
|
|
68
68
|
let optimConfig = null;
|
|
69
69
|
let aliases = rwsFrontendConfig.aliases || {};
|
|
70
70
|
|
|
71
|
+
console.log({
|
|
72
|
+
__filename,
|
|
73
|
+
_packageDir
|
|
74
|
+
});
|
|
75
|
+
|
|
71
76
|
aliases = { ...aliases, ...loadAliases(__dirname, path.resolve(_MAIN_PACKAGE, 'node_modules'), executionDir) }
|
|
72
77
|
|
|
73
78
|
// #SECTION PLUGIN STARTING HOOKS
|
|
@@ -6,7 +6,6 @@ import DOMService, { DOMServiceInstance, DOMOutputType } from '../services/DOMSe
|
|
|
6
6
|
import ApiService, { ApiServiceInstance } from '../services/ApiService';
|
|
7
7
|
import NotifyService, { NotifyServiceInstance } from '../services/NotifyService';
|
|
8
8
|
import { IRWSViewComponent, IAssetShowOptions } from '../types/IRWSViewComponent';
|
|
9
|
-
import RWSWindow, { RWSWindowComponentInterface, loadRWSRichWindow } from '../types/RWSWindow';
|
|
10
9
|
import { applyConstructor, RWSInject } from './_decorator';
|
|
11
10
|
import TheRWSService from '../services/_service';
|
|
12
11
|
import { handleExternalChange } from './_attrs/_external_handler';
|
|
@@ -72,6 +71,7 @@ abstract class RWSViewComponent extends FoundationElement implements IRWSViewCom
|
|
|
72
71
|
constructor() {
|
|
73
72
|
super();
|
|
74
73
|
applyConstructor(this);
|
|
74
|
+
console.log((this as any).constructor.definition)
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
connectedCallback() {
|
|
@@ -240,4 +240,6 @@ abstract class RWSViewComponent extends FoundationElement implements IRWSViewCom
|
|
|
240
240
|
|
|
241
241
|
export default RWSViewComponent;
|
|
242
242
|
|
|
243
|
-
export {
|
|
243
|
+
export type {
|
|
244
|
+
IAssetShowOptions, IRWSViewComponent
|
|
245
|
+
} from '../types/IRWSViewComponent';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {DI, Container
|
|
1
|
+
import { DI, Container } from '../../foundation/rws-foundation';
|
|
2
2
|
import {loadRWSRichWindow} from '../types/RWSWindow';
|
|
3
3
|
|
|
4
4
|
export default () => {
|
|
@@ -13,4 +13,8 @@ export default () => {
|
|
|
13
13
|
return richWindow.RWS.container;
|
|
14
14
|
};
|
|
15
15
|
|
|
16
|
-
export { DI, Container
|
|
16
|
+
export { DI, Container }
|
|
17
|
+
|
|
18
|
+
export type {
|
|
19
|
+
Key, Registration, InterfaceSymbol
|
|
20
|
+
} from '../../foundation/rws-foundation';
|
|
@@ -39,6 +39,8 @@ export function defineComponent<T extends RWSViewComponent>(element: IWithCompos
|
|
|
39
39
|
styles: element.definition.styles
|
|
40
40
|
}) as RWSWindowComponentInterface;
|
|
41
41
|
|
|
42
|
+
console.log({eld: element.definition})
|
|
43
|
+
|
|
42
44
|
if (!richWindow.RWS) {
|
|
43
45
|
throw new Error('RWS client not initialized');
|
|
44
46
|
}
|
package/src/index.ts
CHANGED
|
@@ -1,85 +1,104 @@
|
|
|
1
|
-
|
|
1
|
+
// Regular imports for classes and functions
|
|
2
2
|
import { observable, attr } from '@microsoft/fast-element';
|
|
3
|
-
import
|
|
4
|
-
import RWSNotify, { NotifyUiType, NotifyLogType } from './types/RWSNotify';
|
|
3
|
+
import { Transformer as HTMLTagTransformerType, Tag as HTMLTag, Attributes as HTMLAttributes } from 'sanitize-html';
|
|
5
4
|
import RWSService from './services/_service';
|
|
6
5
|
import ConfigService, { ConfigServiceInstance } from './services/ConfigService';
|
|
7
|
-
import NotifyService, {NotifyServiceInstance} from './services/NotifyService';
|
|
8
|
-
import DOMService, { DOMServiceInstance
|
|
9
|
-
import ApiService,
|
|
10
|
-
import UtilsService, {UtilsServiceInstance} from './services/UtilsService';
|
|
6
|
+
import NotifyService, { NotifyServiceInstance } from './services/NotifyService';
|
|
7
|
+
import DOMService, { DOMServiceInstance } from './services/DOMService';
|
|
8
|
+
import ApiService, { ApiServiceInstance } from './services/ApiService';
|
|
9
|
+
import UtilsService, { UtilsServiceInstance } from './services/UtilsService';
|
|
11
10
|
import ServiceWorkerService, { ServiceWorkerServiceInstance } from './services/ServiceWorkerService';
|
|
12
11
|
import { sanitizedAttr } from './components/_attrs/sanitize-html';
|
|
13
12
|
import { ngAttr } from './components/_attrs/angular-attr';
|
|
14
13
|
import { externalObservable } from './components/_attrs/external-observable';
|
|
15
14
|
import { externalAttr } from './components/_attrs/external-attr';
|
|
16
|
-
import { RWSPlugin
|
|
17
|
-
import { IRWSPlugin, IStaticRWSPlugin } from './types/IRWSPlugin';
|
|
15
|
+
import { RWSPlugin } from './plugins/_plugin';
|
|
18
16
|
import RWSClient, { RWSClientInstance } from './client';
|
|
19
|
-
import
|
|
20
|
-
import IRWSUser from './types/IRWSUser';
|
|
21
|
-
import RWSViewComponent, { IAssetShowOptions } from './components/_component';
|
|
22
|
-
|
|
17
|
+
import RWSViewComponent from './components/_component';
|
|
23
18
|
import RWSContainer from './components/_container';
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
import { RWSDecoratorOptions, RWSIgnore, RWSInject, RWSView } from './components/_decorator';
|
|
27
|
-
|
|
19
|
+
import { RWSIgnore, RWSInject, RWSView } from './components/_decorator';
|
|
28
20
|
import { declareRWSComponents } from './components';
|
|
29
21
|
|
|
22
|
+
// Type imports
|
|
23
|
+
import type { DOMOutputType, TagsProcessorType } from './services/DOMService';
|
|
24
|
+
import type { IBackendRoute, IHTTProute, IPrefixedHTTProutes } from './services/ApiService';
|
|
25
|
+
import type { DefaultRWSPluginOptionsType } from './plugins/_plugin';
|
|
26
|
+
import type { IRWSPlugin, IStaticRWSPlugin } from './types/IRWSPlugin';
|
|
27
|
+
import type { RWSPluginEntry } from './types/IRWSConfig';
|
|
28
|
+
import type { NotifyUiType, NotifyLogType } from './types/RWSNotify';
|
|
29
|
+
import type { RWSDecoratorOptions } from './components/_decorator';
|
|
30
|
+
import type { IAssetShowOptions } from './components/_component';
|
|
31
|
+
import type IRWSConfig from './types/IRWSConfig';
|
|
32
|
+
import type IRWSUser from './types/IRWSUser';
|
|
33
|
+
import type RWSNotify from './types/RWSNotify';
|
|
34
|
+
|
|
35
|
+
// Default export
|
|
30
36
|
export default RWSClient;
|
|
31
|
-
|
|
37
|
+
|
|
38
|
+
// Class and function exports
|
|
39
|
+
export {
|
|
32
40
|
RWSClient,
|
|
33
41
|
RWSClientInstance,
|
|
34
|
-
|
|
35
42
|
RWSPlugin,
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
DefaultRWSPluginOptionsType,
|
|
39
|
-
|
|
40
|
-
NotifyUiType,
|
|
41
|
-
NotifyLogType,
|
|
42
|
-
|
|
43
|
-
ApiServiceInstance,
|
|
44
|
-
ApiService,
|
|
45
|
-
UtilsServiceInstance,
|
|
46
|
-
UtilsService,
|
|
47
|
-
DOMServiceInstance,
|
|
43
|
+
ApiService,
|
|
44
|
+
UtilsService,
|
|
48
45
|
DOMService,
|
|
49
|
-
DOMOutputType,
|
|
50
|
-
NotifyServiceInstance,
|
|
51
46
|
NotifyService,
|
|
52
|
-
ConfigServiceInstance,
|
|
53
47
|
ConfigService,
|
|
54
|
-
ServiceWorkerServiceInstance,
|
|
55
48
|
ServiceWorkerService,
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
RWSDecoratorOptions as IRWSDecoratorOptions,
|
|
60
|
-
IHTTProute as IRWSHttpRoute,
|
|
61
|
-
IPrefixedHTTProutes as IRWSPrefixedHTTProutes,
|
|
62
|
-
IAssetShowOptions as IRWSAssetShowOptions,
|
|
63
|
-
IRWSConfig,
|
|
64
|
-
IRWSUser,
|
|
65
|
-
TagsProcessorType,
|
|
66
|
-
HTMLTagTransformerType,
|
|
67
|
-
HTMLTag,
|
|
68
|
-
HTMLAttributes,
|
|
69
|
-
|
|
49
|
+
RWSService,
|
|
50
|
+
RWSViewComponent,
|
|
51
|
+
RWSContainer,
|
|
70
52
|
RWSView,
|
|
71
|
-
sanitizedAttr,
|
|
72
53
|
RWSIgnore,
|
|
73
|
-
RWSInject,
|
|
74
|
-
|
|
54
|
+
RWSInject,
|
|
55
|
+
sanitizedAttr,
|
|
75
56
|
externalObservable,
|
|
76
57
|
externalAttr,
|
|
58
|
+
observable,
|
|
77
59
|
attr,
|
|
78
60
|
ngAttr,
|
|
79
|
-
|
|
80
|
-
RWSService,
|
|
81
|
-
RWSViewComponent,
|
|
82
61
|
declareRWSComponents,
|
|
62
|
+
|
|
63
|
+
// Service instances
|
|
64
|
+
ApiServiceInstance,
|
|
65
|
+
UtilsServiceInstance,
|
|
66
|
+
DOMServiceInstance,
|
|
67
|
+
NotifyServiceInstance,
|
|
68
|
+
ConfigServiceInstance,
|
|
69
|
+
ServiceWorkerServiceInstance,
|
|
70
|
+
|
|
71
|
+
// External types
|
|
72
|
+
HTMLTagTransformerType,
|
|
73
|
+
HTMLTag,
|
|
74
|
+
HTMLAttributes
|
|
75
|
+
};
|
|
83
76
|
|
|
84
|
-
|
|
77
|
+
// Type exports
|
|
78
|
+
export type {
|
|
79
|
+
// Plugin types
|
|
80
|
+
RWSPluginEntry,
|
|
81
|
+
IRWSPlugin,
|
|
82
|
+
IStaticRWSPlugin,
|
|
83
|
+
DefaultRWSPluginOptionsType,
|
|
84
|
+
|
|
85
|
+
// Notification types
|
|
86
|
+
NotifyUiType,
|
|
87
|
+
NotifyLogType,
|
|
88
|
+
RWSNotify,
|
|
89
|
+
|
|
90
|
+
// Service and API types
|
|
91
|
+
DOMOutputType,
|
|
92
|
+
TagsProcessorType,
|
|
93
|
+
IBackendRoute as IRWSBackendRoute,
|
|
94
|
+
IHTTProute as IRWSHttpRoute,
|
|
95
|
+
IPrefixedHTTProutes as IRWSPrefixedHTTProutes,
|
|
96
|
+
|
|
97
|
+
// Component and decorator types
|
|
98
|
+
RWSDecoratorOptions as IRWSDecoratorOptions,
|
|
99
|
+
IAssetShowOptions as IRWSAssetShowOptions,
|
|
100
|
+
|
|
101
|
+
// Config and user types
|
|
102
|
+
IRWSConfig,
|
|
103
|
+
IRWSUser
|
|
85
104
|
};
|
package/src/services/_service.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import RWSContainer
|
|
1
|
+
import RWSContainer from '../components/_container';
|
|
2
2
|
import { loadRWSRichWindow } from '../types/RWSWindow';
|
|
3
|
-
|
|
3
|
+
import { DI, InterfaceSymbol, Key,Registration } from '../../foundation/rws-foundation';
|
|
4
4
|
export interface IWithDI<T> {
|
|
5
5
|
new (...args: any[]): T;
|
|
6
6
|
getSingleton: <T extends Key>(this: IWithDI<T>) => InterfaceSymbol<T>;
|
package/src/styles/_grid.scss
CHANGED
|
@@ -12,12 +12,11 @@ $mediaQuerySteps: (
|
|
|
12
12
|
|
|
13
13
|
@mixin grid-container-gap($gap) {
|
|
14
14
|
gap: $gap;
|
|
15
|
-
margin-right: -#{$gap};
|
|
16
|
-
margin-left: -#{$gap};
|
|
15
|
+
margin-right: -#{$gap};
|
|
16
|
+
margin-left: -#{$gap};
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
// Mixin for grid columns
|
|
20
|
-
|
|
21
20
|
@mixin internal-grid-column($columns: 12) {
|
|
22
21
|
flex: 0 0 calc(100% / 12 * $columns);
|
|
23
22
|
max-width: calc(100% / 12 * $columns);
|
|
@@ -29,42 +28,35 @@ $mediaQuerySteps: (
|
|
|
29
28
|
|
|
30
29
|
@mixin grid-column($columns: 12, $mdColumns: 12) {
|
|
31
30
|
@include internal-grid-column($columns);
|
|
32
|
-
|
|
33
|
-
@media screen and (max-width: map-get($mediaQuerySteps, 'md')) {
|
|
31
|
+
@media screen and (max-width: map.get($mediaQuerySteps, 'md')) {
|
|
34
32
|
@include internal-grid-column($mdColumns);
|
|
35
33
|
}
|
|
36
34
|
}
|
|
37
35
|
|
|
38
36
|
@mixin grid-column($columns: 12, $mdColumns: 12, $smColumns: 12) {
|
|
39
37
|
@include internal-grid-column($columns);
|
|
40
|
-
|
|
41
|
-
@media screen and (max-width: map-get($mediaQuerySteps, 'md')) {
|
|
38
|
+
@media screen and (max-width: map.get($mediaQuerySteps, 'md')) {
|
|
42
39
|
@include internal-grid-column($mdColumns);
|
|
43
40
|
}
|
|
44
|
-
|
|
45
|
-
@media screen and (max-width: map-get($mediaQuerySteps, 'sm')) {
|
|
41
|
+
@media screen and (max-width: map.get($mediaQuerySteps, 'sm')) {
|
|
46
42
|
@include internal-grid-column($smColumns);
|
|
47
43
|
}
|
|
48
44
|
}
|
|
49
45
|
|
|
50
46
|
@mixin grid-column($columns: 12, $mdColumns: 12, $smColumns: 12, $xsColumns: 12) {
|
|
51
47
|
@include internal-grid-column($columns);
|
|
52
|
-
|
|
53
|
-
@media screen and (max-width: map-get($mediaQuerySteps, 'md')) {
|
|
48
|
+
@media screen and (max-width: map.get($mediaQuerySteps, 'md')) {
|
|
54
49
|
@include internal-grid-column($mdColumns);
|
|
55
50
|
}
|
|
56
|
-
|
|
57
|
-
@media screen and (max-width: map-get($mediaQuerySteps, 'sm')) {
|
|
51
|
+
@media screen and (max-width: map.get($mediaQuerySteps, 'sm')) {
|
|
58
52
|
@include internal-grid-column($smColumns);
|
|
59
53
|
}
|
|
60
|
-
|
|
61
|
-
@media screen and (max-width: map-get($mediaQuerySteps, 'xs')) {
|
|
54
|
+
@media screen and (max-width: map.get($mediaQuerySteps, 'xs')) {
|
|
62
55
|
@include internal-grid-column($xsColumns);
|
|
63
56
|
}
|
|
64
57
|
}
|
|
65
58
|
|
|
66
59
|
// Mixins for grid alignment
|
|
67
|
-
|
|
68
60
|
@mixin grid-flex-align-items($horizontal, $vertical: top) {
|
|
69
61
|
justify-content: $horizontal;
|
|
70
62
|
align-items: $vertical;
|
package/src/styles/includes.scss
CHANGED
|
@@ -1,15 +1,8 @@
|
|
|
1
1
|
// custom-html-loader.js
|
|
2
|
-
const path = require('path');
|
|
3
2
|
const fs = require('fs');
|
|
4
|
-
const ts = require('typescript');
|
|
5
|
-
const tools = require('../../_tools');
|
|
6
3
|
const chalk = require('chalk');
|
|
7
|
-
const {html_error_proof} = require('./ts/html_error');
|
|
8
|
-
const { rwsRuntimeHelper } = require('@rws-framework/console');
|
|
9
|
-
const { timingStart, timingStop } = require('../../cfg/build_steps/webpack/_timing');
|
|
10
4
|
const _scss_cache = require('../../cfg/build_steps/webpack/_cache');
|
|
11
5
|
const LoadersHelper = require('../../cfg/build_steps/webpack/_loaders');
|
|
12
|
-
const { sleep } = require('langchain/util/time');
|
|
13
6
|
const md5 = require('md5');
|
|
14
7
|
|
|
15
8
|
|