@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.
Files changed (54) hide show
  1. package/esm2020/lib/session/api/api/session.service.mjs +4 -4
  2. package/esm2020/lib/session/cookie-service/smart-cookie.service.mjs +4 -4
  3. package/esm2020/lib/session/dev-tool/smart-dev-tool-dialog/smart-dev-tool-dialog.component.mjs +4 -4
  4. package/esm2020/lib/session/dev-tool/smart-dev-tool-dialog/smart-dev-tool-dialog.service.mjs +4 -4
  5. package/esm2020/lib/session/dev-tool/smart-dev-tool-floating-button/smart-dev-tool-floating-button.component.mjs +4 -4
  6. package/esm2020/lib/session/dev-tool/smart-dev-tool.interceptor.mjs +7 -7
  7. package/esm2020/lib/session/dev-tool/smart-dev-tool.service.mjs +7 -7
  8. package/esm2020/lib/session/smart-error-catching.interceptor.mjs +4 -4
  9. package/esm2020/lib/session/smart-header-maintainer.interceptor.mjs +4 -4
  10. package/esm2020/lib/session/smart-session.module.mjs +5 -5
  11. package/esm2020/lib/session/smart-session.service.mjs +4 -4
  12. package/esm2020/lib/session/smart-timer/smart-session-timer.component.mjs +4 -4
  13. package/esm2020/lib/session/smart-timer/smart-session-timer.service.mjs +4 -4
  14. package/esm2020/lib/smart-client/smart-authentication.service.mjs +4 -4
  15. package/esm2020/lib/smart-client/smart-file-uploader/smart-file-uploader.component.mjs +4 -4
  16. package/esm2020/lib/smart-client/smart.component.mjs +4 -4
  17. package/esm2020/lib/smart-client/smart.service.mjs +4 -4
  18. package/esm2020/lib/smart-ng-client.module.mjs +5 -5
  19. package/esm2020/lib/smart-ng-client.service.mjs +4 -4
  20. package/esm2020/lib/view-context/api/api/view.service.mjs +4 -4
  21. package/esm2020/lib/view-context/api/api.module.mjs +5 -5
  22. package/esm2020/lib/view-context/message-dialog/message-dialog.component.mjs +4 -4
  23. package/esm2020/lib/view-context/smart-ui-action/components/success-snack-bar/success-snack-bar.component.mjs +4 -4
  24. package/esm2020/lib/view-context/smart-ui-action/dialogs/ui-action-confirm-dialog/ui-action-confirm-dialog.component.mjs +4 -4
  25. package/esm2020/lib/view-context/smart-ui-action/dialogs/ui-action-confirm-dialog/ui-action-confirm-dialog.service.mjs +4 -4
  26. package/esm2020/lib/view-context/smart-ui-action/dialogs/ui-action-file-upload-dialog/ui-action-file-upload-dialog.component.mjs +4 -4
  27. package/esm2020/lib/view-context/smart-ui-action/dialogs/ui-action-file-upload-dialog/ui-action-file-upload-dialog.service.mjs +4 -4
  28. package/esm2020/lib/view-context/smart-ui-action/dialogs/ui-action-input-dialog/ui-action-input-dialog.component.mjs +4 -4
  29. package/esm2020/lib/view-context/smart-ui-action/dialogs/ui-action-input-dialog/ui-action-input-dialog.service.mjs +4 -4
  30. package/esm2020/lib/view-context/smart-ui-action/ui-action-toolbar.component.mjs +4 -4
  31. package/esm2020/lib/view-context/smart-ui-action/ui-action.descriptor.service.mjs +4 -4
  32. package/esm2020/lib/view-context/smart-ui-action/ui-action.service.mjs +4 -4
  33. package/esm2020/lib/view-context/smart-view-context-error-dialog/smart-view-context-error-dialog.component.mjs +4 -4
  34. package/esm2020/lib/view-context/smart-view-context-error-dialog/smart-view-context-error-dialog.service.mjs +4 -4
  35. package/esm2020/lib/view-context/smart-view-context.interceptor.mjs +4 -4
  36. package/esm2020/lib/view-context/smart-view-context.module.mjs +5 -5
  37. package/esm2020/lib/view-context/smart-view-context.service.mjs +7 -7
  38. package/esm2020/lib/view-context/smart-view-redirect/smart-view-redirect.mjs +4 -4
  39. package/esm2020/lib/view-context/value-api/api/value.service.mjs +4 -4
  40. package/esm2020/lib/view-context/value-api/api.module.mjs +5 -5
  41. package/fesm2015/smartbit4all-ng-client.mjs +127 -127
  42. package/fesm2015/smartbit4all-ng-client.mjs.map +1 -1
  43. package/fesm2020/smartbit4all-ng-client.mjs +127 -127
  44. package/fesm2020/smartbit4all-ng-client.mjs.map +1 -1
  45. package/package.json +1 -2
  46. package/smartbit4all-ng-client-1.2.1.tgz +0 -0
  47. package/schematics/collection.json +0 -11
  48. package/schematics/smart-component/index.ts +0 -26
  49. package/schematics/smart-component/schema.json +0 -20
  50. package/schematics/smart-component/smart-component.schema.ts +0 -4
  51. package/schematics/smart-component/templates/__name@dasherize__.component.css.template +0 -0
  52. package/schematics/smart-component/templates/__name@dasherize__.component.html.template +0 -3
  53. package/schematics/smart-component/templates/__name@dasherize__.component.ts.template +0 -26
  54. package/smartbit4all-ng-client-1.2.0.tgz +0 -0
package/package.json CHANGED
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "name": "@smartbit4all/ng-client",
3
- "version": "1.2.0",
4
- "schematics": "./schematics/collection.json",
3
+ "version": "1.2.1",
5
4
  "peerDependencies": {
6
5
  "@angular/common": "^13.2.0",
7
6
  "@angular/core": "^13.2.0",
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
- }
@@ -1,4 +0,0 @@
1
- export interface SmartComponentSchema {
2
- name: string;
3
- path: string;
4
- }
@@ -1,3 +0,0 @@
1
- <p>
2
- <%= dasherize(name) %> works!
3
- </p>
@@ -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