@genesislcap/pbc-notify-ui 1.0.14 → 1.0.16

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.
@@ -6,11 +6,6 @@ import { Auth } from '@genesislcap/foundation-comms';
6
6
  import { AlertService } from '../../services/alert.service';
7
7
  import { RuleService } from '../../services/rule.service';
8
8
  import { TemplateService } from '../../services/template.service';
9
- /**
10
- * Foundation inbox component for displaying notifies list.
11
- * Allow searching, filtering and deleting notifies
12
- * @beta
13
- */
14
9
  export declare class FoundationInboxBase extends FASTElement {
15
10
  auth: Auth;
16
11
  ready: boolean;
@@ -27,8 +22,6 @@ export declare class FoundationInboxBase extends FASTElement {
27
22
  searchSubscribe: string;
28
23
  ruleTemplateDetails: NotificationRuleTemplateReply;
29
24
  tabs: Tabs;
30
- connectedCallback(): Promise<void>;
31
- disconnectedCallback(): void;
32
25
  open(): Promise<void>;
33
26
  close(): void;
34
27
  checkActiveTab(inboxTab: InboxTab): "" | "display: none;";
@@ -43,6 +36,11 @@ export declare class FoundationInboxBase extends FASTElement {
43
36
  deleteAlert(ruleClicked: Rule): Promise<void>;
44
37
  openTemplateSubscription(ruleTemplate: any): Promise<void>;
45
38
  }
39
+ /**
40
+ * Foundation inbox component for displaying notifies list.
41
+ * Allow searching, filtering and deleting notifies
42
+ * @beta
43
+ */
46
44
  export declare class FoundationInbox extends FoundationInboxBase {
47
45
  }
48
46
  //# sourceMappingURL=inbox.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"inbox.d.ts","sourceRoot":"","sources":["../../../../src/components/foundation-inbox/inbox.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6B,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEjF,OAAO,EAAE,QAAQ,EAAuC,MAAM,kBAAkB,CAAC;AACjF,OAAO,EAAE,YAAY,EAAE,IAAI,EAAE,6BAA6B,EAAE,KAAK,EAAmC,MAAM,eAAe,CAAC;AAC1H,OAAO,EAAE,IAA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,aAWpB;IAED,sBAAsB,aAWrB;IAKD,SAAS;IAGH,cAAc,CAAC,WAAW,EAAE,IAAI;IAgBhC,WAAW,CAAC,WAAW,EAAE,IAAI;IAQ7B,wBAAwB,CAAC,YAAY,EAAE,GAAG;CAYjD;AAED;;;;GAIG;AACH,qBAKa,eAAgB,SAAQ,mBAAmB;CACvD"}
@@ -1 +1 @@
1
- {"version":3,"file":"screen-route-management.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/foundation-notification-dashboard/components/routes/tabs/screen-route-management.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,WAAW,EAAQ,MAAM,yBAAyB,CAAC;AAwD3E,qBAgBa,qBAAsB,SAAQ,WAAW;CAAG"}
1
+ {"version":3,"file":"screen-route-management.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/foundation-notification-dashboard/components/routes/tabs/screen-route-management.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,WAAW,EAAQ,MAAM,yBAAyB,CAAC;AAgD3E,qBAkBa,qBAAsB,SAAQ,WAAW;CAAG"}
@@ -1 +1 @@
1
- {"version":3,"file":"rule-condition-builder.template.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-builder/rule-condition-builder.template.ts"],"names":[],"mappings":"AACA,OAAO,EACL,YAAY,EAGb,MAAM,yBAAyB,CAAC;AAMjC,eAAO,MAAM,wBAAwB,EAAE,YAuEtC,CAAC"}
1
+ {"version":3,"file":"rule-condition-builder.template.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-builder/rule-condition-builder.template.ts"],"names":[],"mappings":"AACA,OAAO,EACL,YAAY,EAGb,MAAM,yBAAyB,CAAC;AAMjC,eAAO,MAAM,wBAAwB,EAAE,YAmEtC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"rule-dialog.styles.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.styles.ts"],"names":[],"mappings":"AA6BA,eAAO,MAAM,gBAAgB,iDA4D5B,CAAC"}
1
+ {"version":3,"file":"rule-dialog.styles.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.styles.ts"],"names":[],"mappings":"AA6BA,eAAO,MAAM,gBAAgB,iDA0D5B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"rule-dialog.template.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.template.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAqB,MAAM,yBAAyB,CAAC;AAO1E,eAAO,MAAM,kBAAkB,EAAE,YA2IhC,CAAC"}
1
+ {"version":3,"file":"rule-dialog.template.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.template.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAqB,MAAM,yBAAyB,CAAC;AAM1E,eAAO,MAAM,kBAAkB,EAAE,YA2IhC,CAAC"}
@@ -8,11 +8,6 @@ import { Auth } from '@genesislcap/foundation-comms';
8
8
  import { AlertService } from '../../services/alert.service';
9
9
  import { RuleService } from '../../services/rule.service';
10
10
  import { TemplateService } from '../../services/template.service';
11
- /**
12
- * Foundation inbox component for displaying notifies list.
13
- * Allow searching, filtering and deleting notifies
14
- * @beta
15
- */
16
11
  export class FoundationInboxBase extends FASTElement {
17
12
  constructor() {
18
13
  super(...arguments);
@@ -51,24 +46,16 @@ export class FoundationInboxBase extends FASTElement {
51
46
  };
52
47
  // #endregion
53
48
  }
54
- connectedCallback() {
55
- const _super = Object.create(null, {
56
- connectedCallback: { get: () => super.connectedCallback }
57
- });
58
- return __awaiter(this, void 0, void 0, function* () {
59
- _super.connectedCallback.call(this);
60
- });
61
- }
62
- disconnectedCallback() {
63
- super.disconnectedCallback();
64
- }
65
49
  open() {
66
50
  return __awaiter(this, void 0, void 0, function* () {
67
51
  this.alertService.getAlerts().subscribe({
68
52
  next: (streamMessage) => {
69
53
  var _a;
70
- const alerts = (_a = streamMessage.ROW) !== null && _a !== void 0 ? _a : null;
71
- this.alerts = updateArray(alerts, this.alerts);
54
+ if (streamMessage.ERROR) {
55
+ logger.error(streamMessage.ERROR);
56
+ return;
57
+ }
58
+ this.alerts = updateArray((_a = streamMessage.ROW) !== null && _a !== void 0 ? _a : null, this.alerts);
72
59
  },
73
60
  error: (error) => {
74
61
  logger.error(error);
@@ -188,6 +175,11 @@ __decorate([
188
175
  __decorate([
189
176
  observable
190
177
  ], FoundationInboxBase.prototype, "ruleTemplateDetails", void 0);
178
+ /**
179
+ * Foundation inbox component for displaying notifies list.
180
+ * Allow searching, filtering and deleting notifies
181
+ * @beta
182
+ */
191
183
  let FoundationInbox = class FoundationInbox extends FoundationInboxBase {
192
184
  };
193
185
  FoundationInbox = __decorate([
@@ -92,10 +92,10 @@ export const FoundationInboxTemplate = html `
92
92
  ${(x, c) => getStatus(x.RULE_STATUS)}
93
93
  </div>
94
94
  <div class="rule-actions">
95
- <!--
96
- <span class="rule-action-edit" @click=${(x, c) => c.parent.editAlert(x)}}>
97
- <zero-icon name="gear"></zero-icon>
98
- </span>
95
+ <!--
96
+ <span class="rule-action-edit" @click=${(x, c) => c.parent.editAlert(x)}}>
97
+ <zero-icon name="gear"></zero-icon>
98
+ </span>
99
99
  -->
100
100
  <span class="rule-action-enable-disable" @click=${(x, c) => c.parent.playPauseAlert(x)}>
101
101
  <zero-icon name=${x => getIcon(x.RULE_STATUS)}></zero-icon>
@@ -27,32 +27,22 @@ const SCREEN_ROUTE_MANAGEMENT_COLUMNS = [
27
27
  headerName: 'Entity Id Type',
28
28
  flex: 1
29
29
  },
30
- {
31
- field: 'RIGHT_CODE',
32
- headerName: 'Right Code',
33
- flex: 1
34
- },
35
- {
36
- field: 'AUTH_CACHE_NAME',
37
- headerName: 'Auth Cache Name',
38
- flex: 1
39
- },
40
- {
41
- field: 'TTL',
42
- headerName: 'TTL',
43
- flex: 1
44
- },
45
- {
46
- field: 'TTL_TIME_UNIT',
47
- headerName: 'TTL Time Unit',
48
- flex: 1
49
- },
50
30
  {
51
31
  field: 'EXCLUDE_SENDER',
52
32
  headerName: 'Exclude Sender',
53
33
  flex: 1
54
34
  },
55
35
  ];
36
+ const SCREEN_ROUTE_MANAGEMENT_UI_SCHEMA = {
37
+ type: 'VerticalLayout',
38
+ elements: [
39
+ { type: 'Control', scope: '#/properties/ENTITY_ID', label: 'ENTITY ID' },
40
+ { type: 'Control', scope: '#/properties/ENTITY_ID_TYPE', label: 'ENTITY ID TYPE' },
41
+ { type: 'Control', scope: '#/properties/EXCLUDE_SENDER', label: 'EXCLUDE SENDER' },
42
+ { type: 'Control', scope: '#/properties/GATEWAY_ID', label: 'GATEWAY ID' },
43
+ { type: 'Control', scope: '#/properties/TOPIC_MATCH', label: 'TOPIC MATCH' },
44
+ ],
45
+ };
56
46
  let ScreenRouteManagement = class ScreenRouteManagement extends FASTElement {
57
47
  };
58
48
  ScreenRouteManagement = __decorate([
@@ -66,6 +56,8 @@ ScreenRouteManagement = __decorate([
66
56
  updateEvent="EVENT_SCREEN_NOTIFY_ROUTE_UPDATE"
67
57
  deleteEvent="EVENT_SCREEN_NOTIFY_ROUTE_DELETE"
68
58
  :columns=${() => [...SCREEN_ROUTE_MANAGEMENT_COLUMNS]}
59
+ :createFormUiSchema=${(x) => SCREEN_ROUTE_MANAGEMENT_UI_SCHEMA}
60
+ :updateFormUiSchema=${(x) => SCREEN_ROUTE_MANAGEMENT_UI_SCHEMA}
69
61
  >
70
62
  </entity-management>
71
63
  </div>
@@ -9,7 +9,6 @@ export const ConditionBuilderTemplate = html `
9
9
  :value=${sync(x => x.leftValue)}
10
10
  :initialValue=${sync(x => x.leftValue)}
11
11
  class="left-value"
12
- position="below"
13
12
  >
14
13
  ${repeat(x => x.resourceFields, html `
15
14
  <zero-option value=${x => JSON.stringify(x)}>${x => x.FIELD_NAME}</zero-option>
@@ -19,7 +18,6 @@ export const ConditionBuilderTemplate = html `
19
18
  <zero-select
20
19
  class="logical-operator"
21
20
  :value=${sync(x => x.logicalOperator)}
22
- position="below"
23
21
  >
24
22
  ${repeat(x => ALL_LOGICAL_OPERATORS, html `
25
23
  <zero-option value=${x => x}>${x => x}</zero-option>
@@ -29,7 +27,6 @@ export const ConditionBuilderTemplate = html `
29
27
  <zero-select
30
28
  class="right-criteria"
31
29
  :value=${sync(x => x.rightCriteria)}
32
- position="below"
33
30
  >
34
31
  ${repeat(x => Object.values(RIGHT_CRITERIA), html `
35
32
  <zero-option value=${x => x}>${x => x}</zero-option>
@@ -47,7 +44,6 @@ export const ConditionBuilderTemplate = html `
47
44
  <zero-select
48
45
  class="right-criteria-user-entry ${x => classNames(['display-none', x.rightCriteria !== RIGHT_CRITERIA.FIELD])}"
49
46
  :value=${sync(x => x.rightValueField)}
50
- position="below"
51
47
  >
52
48
  ${repeat(x => x.resourceFields, html `
53
49
  <zero-option value=${x => x.FIELD_NAME}>${x => x.FIELD_NAME}</zero-option>
@@ -35,11 +35,12 @@ export const RuleDialogStyles = css `
35
35
 
36
36
  .rule-dialog-content {
37
37
  display: flex;
38
- justify-content: center;
39
38
  flex-direction: column;
40
39
  width: ${String(modalWidthPx)}px;
41
40
  gap: calc(var(--design-unit) * 3px);
42
41
  padding: calc(var(--design-unit) * 4px);
42
+ overflow-y: auto;
43
+ height: 424px;
43
44
  }
44
45
 
45
46
  .content-row {
@@ -55,15 +56,12 @@ export const RuleDialogStyles = css `
55
56
  }
56
57
 
57
58
  .conditions {
58
- height: 150px;
59
- max-height: 200px;
60
59
  border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-divider-rest);
61
60
  border-radius: calc(var(--control-corner-radius) * 1px);
62
61
  display: flex;
63
62
  flex-direction: column;
64
63
  padding: calc(var(--design-unit) * 2px);
65
64
  flex-direction: column;
66
- overflow-y: scroll;
67
65
  }
68
66
 
69
67
  .condition {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/pbc-notify-ui",
3
3
  "description": "Genesis PBC Notify UI",
4
- "version": "1.0.14",
4
+ "version": "1.0.16",
5
5
  "license": "SEE LICENSE IN license.txt",
6
6
  "main": "dist/esm/index.js",
7
7
  "types": "dist/dts/index.d.ts",