@smartbit4all/ng-client 1.2.0 → 1.2.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/esm2020/lib/session/api/api/session.service.mjs +4 -4
- package/esm2020/lib/session/cookie-service/smart-cookie.service.mjs +4 -4
- package/esm2020/lib/session/dev-tool/smart-dev-tool-dialog/smart-dev-tool-dialog.component.mjs +4 -4
- package/esm2020/lib/session/dev-tool/smart-dev-tool-dialog/smart-dev-tool-dialog.service.mjs +4 -4
- package/esm2020/lib/session/dev-tool/smart-dev-tool-floating-button/smart-dev-tool-floating-button.component.mjs +4 -4
- package/esm2020/lib/session/dev-tool/smart-dev-tool.interceptor.mjs +7 -7
- package/esm2020/lib/session/dev-tool/smart-dev-tool.service.mjs +7 -7
- package/esm2020/lib/session/smart-error-catching.interceptor.mjs +4 -4
- package/esm2020/lib/session/smart-header-maintainer.interceptor.mjs +4 -4
- package/esm2020/lib/session/smart-session.module.mjs +5 -5
- package/esm2020/lib/session/smart-session.service.mjs +4 -4
- package/esm2020/lib/session/smart-timer/smart-session-timer.component.mjs +4 -4
- package/esm2020/lib/session/smart-timer/smart-session-timer.service.mjs +4 -4
- package/esm2020/lib/smart-client/smart-authentication.service.mjs +4 -4
- package/esm2020/lib/smart-client/smart-file-uploader/smart-file-uploader.component.mjs +4 -4
- package/esm2020/lib/smart-client/smart.component.mjs +4 -4
- package/esm2020/lib/smart-client/smart.service.mjs +4 -4
- package/esm2020/lib/smart-ng-client.module.mjs +5 -5
- package/esm2020/lib/smart-ng-client.service.mjs +4 -4
- package/esm2020/lib/view-context/api/api/view.service.mjs +4 -4
- package/esm2020/lib/view-context/api/api.module.mjs +5 -5
- package/esm2020/lib/view-context/message-dialog/message-dialog.component.mjs +4 -4
- package/esm2020/lib/view-context/smart-ui-action/components/success-snack-bar/success-snack-bar.component.mjs +4 -4
- package/esm2020/lib/view-context/smart-ui-action/dialogs/ui-action-confirm-dialog/ui-action-confirm-dialog.component.mjs +4 -4
- package/esm2020/lib/view-context/smart-ui-action/dialogs/ui-action-confirm-dialog/ui-action-confirm-dialog.service.mjs +4 -4
- package/esm2020/lib/view-context/smart-ui-action/dialogs/ui-action-file-upload-dialog/ui-action-file-upload-dialog.component.mjs +4 -4
- package/esm2020/lib/view-context/smart-ui-action/dialogs/ui-action-file-upload-dialog/ui-action-file-upload-dialog.service.mjs +4 -4
- package/esm2020/lib/view-context/smart-ui-action/dialogs/ui-action-input-dialog/ui-action-input-dialog.component.mjs +4 -4
- package/esm2020/lib/view-context/smart-ui-action/dialogs/ui-action-input-dialog/ui-action-input-dialog.service.mjs +4 -4
- package/esm2020/lib/view-context/smart-ui-action/ui-action-toolbar.component.mjs +4 -4
- package/esm2020/lib/view-context/smart-ui-action/ui-action.descriptor.service.mjs +4 -4
- package/esm2020/lib/view-context/smart-ui-action/ui-action.service.mjs +4 -4
- package/esm2020/lib/view-context/smart-view-context-error-dialog/smart-view-context-error-dialog.component.mjs +4 -4
- package/esm2020/lib/view-context/smart-view-context-error-dialog/smart-view-context-error-dialog.service.mjs +4 -4
- package/esm2020/lib/view-context/smart-view-context.interceptor.mjs +4 -4
- package/esm2020/lib/view-context/smart-view-context.module.mjs +5 -5
- package/esm2020/lib/view-context/smart-view-context.service.mjs +7 -7
- package/esm2020/lib/view-context/smart-view-redirect/smart-view-redirect.mjs +4 -4
- package/esm2020/lib/view-context/value-api/api/value.service.mjs +4 -4
- package/esm2020/lib/view-context/value-api/api.module.mjs +5 -5
- package/fesm2015/smartbit4all-ng-client.mjs +127 -127
- package/fesm2015/smartbit4all-ng-client.mjs.map +1 -1
- package/fesm2020/smartbit4all-ng-client.mjs +127 -127
- package/fesm2020/smartbit4all-ng-client.mjs.map +1 -1
- package/package.json +1 -2
- package/smartbit4all-ng-client-1.2.1.tgz +0 -0
- package/schematics/collection.json +0 -11
- package/schematics/smart-component/index.ts +0 -26
- package/schematics/smart-component/schema.json +0 -20
- package/schematics/smart-component/smart-component.schema.ts +0 -4
- package/schematics/smart-component/templates/__name@dasherize__.component.css.template +0 -0
- package/schematics/smart-component/templates/__name@dasherize__.component.html.template +0 -3
- package/schematics/smart-component/templates/__name@dasherize__.component.ts.template +0 -26
- package/smartbit4all-ng-client-1.2.0.tgz +0 -0
package/package.json
CHANGED
|
Binary file
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "../../../node_modules/@angular-devkit/schematics/collection-schema.json",
|
|
3
|
-
"schematics": {
|
|
4
|
-
"smart-component": {
|
|
5
|
-
"description": "This schematic generates a component that extends SmartComponent.",
|
|
6
|
-
"factory": "./smart-component/index#smartComponentGenerator",
|
|
7
|
-
"schema": "./smart-component/schema.json",
|
|
8
|
-
"aliases": ["sc"]
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Rule,
|
|
3
|
-
apply,
|
|
4
|
-
applyTemplates,
|
|
5
|
-
chain,
|
|
6
|
-
mergeWith,
|
|
7
|
-
move,
|
|
8
|
-
url,
|
|
9
|
-
} from "@angular-devkit/schematics";
|
|
10
|
-
import { SmartComponentSchema } from "./smart-component.schema";
|
|
11
|
-
import { normalize, strings } from "@angular-devkit/core";
|
|
12
|
-
|
|
13
|
-
export function smartComponentGenerator(options: SmartComponentSchema): Rule {
|
|
14
|
-
return () => {
|
|
15
|
-
const templateSource = apply(url("./templates"), [
|
|
16
|
-
applyTemplates({
|
|
17
|
-
classify: strings.classify,
|
|
18
|
-
dasherize: strings.dasherize,
|
|
19
|
-
name: options.name,
|
|
20
|
-
}),
|
|
21
|
-
move(normalize(`/${options.path}/${strings.dasherize(options.name)}`)),
|
|
22
|
-
]);
|
|
23
|
-
|
|
24
|
-
return chain([mergeWith(templateSource)]);
|
|
25
|
-
};
|
|
26
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/schema",
|
|
3
|
-
"$id": "smart-component",
|
|
4
|
-
"title": "Smart Ng Client Schema",
|
|
5
|
-
"type": "object",
|
|
6
|
-
"properties": {
|
|
7
|
-
"name": {
|
|
8
|
-
"description": "The name of the component",
|
|
9
|
-
"type": "string"
|
|
10
|
-
},
|
|
11
|
-
"path": {
|
|
12
|
-
"description": "Where should be created the file",
|
|
13
|
-
"type": "string",
|
|
14
|
-
"format": "path",
|
|
15
|
-
"x-prompt": "Where should be created the file?",
|
|
16
|
-
"default": "src/app"
|
|
17
|
-
}
|
|
18
|
-
},
|
|
19
|
-
"required": []
|
|
20
|
-
}
|
|
File without changes
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { Component } from '@angular/core';
|
|
2
|
-
import { SmartComponent, SmartViewContextService, UiActionModel } from '@smartbit4all/ng-client';
|
|
3
|
-
import { AuthenticationService } from 'src/app/services/authentication.service';
|
|
4
|
-
import { Pages } from 'src/app/viewcontext/view-context.pages';
|
|
5
|
-
|
|
6
|
-
@Component({
|
|
7
|
-
selector: 'app-<%= dasherize(name) %>',
|
|
8
|
-
templateUrl: './<%= dasherize(name) %>.component.html',
|
|
9
|
-
styleUrls: ['./<%= dasherize(name) %>.component.css']
|
|
10
|
-
})
|
|
11
|
-
export class <%= classify(name) %>Component extends SmartComponent<any> {
|
|
12
|
-
// TODO: set the proper type for SmartComponent<any>
|
|
13
|
-
|
|
14
|
-
uiActionModels: UiActionModel[] = [];
|
|
15
|
-
|
|
16
|
-
constructor(auth: AuthenticationService, viewContext: SmartViewContextService) {
|
|
17
|
-
super(auth, viewContext, Pages.<%= classify(name) %>);
|
|
18
|
-
this.modelChanged.subscribe(() => {
|
|
19
|
-
this.loaded();
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
loaded(): void {
|
|
24
|
-
throw new Error('loaded method not implemented');
|
|
25
|
-
}
|
|
26
|
-
}
|
|
Binary file
|