@uxland-admin/ip-context-info
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -5,1 +5,2 @@ import { createSelector } from "reselect"; | ||
export const contextInfoView = createSelector(contextInfoSelector, (res) => res && res.state && res.state.description); | ||
export const diagnosticView = createSelector(contextInfoSelector, (res) => res && res.state && res.state.diagnostic); |
import { html } from '@polymer/lit-element/lit-element'; | ||
import { moduleName } from "../../constants"; | ||
const innerTemplate = (props) => html `${props.contextInfo | ||
? html `<div>${props.contextInfo}</div>` | ||
? html `<div>${props.contextInfo} - ${props.localize(`${moduleName}.diagnostic`)}: ${props.diagnosticInfo}</div>` | ||
: html `-`}`; | ||
export const template = innerTemplate; |
@@ -8,3 +8,3 @@ import * as tslib_1 from "tslib"; | ||
import { template as TEMPLATE } from './ip-ci-template.js'; | ||
import { contextInfoView } from "../../app/context-info/context-info-view"; | ||
import { contextInfoView, diagnosticView } from "../../app/context-info/context-info-view"; | ||
import { fetchContextInfo } from "../../app/context-info/fetch-context-info"; | ||
@@ -21,4 +21,8 @@ let IpCi = class IpCi extends RegionView(Locale(LitElement)) { | ||
property({ statePath: contextInfoView }), | ||
tslib_1.__metadata("design:type", Object) | ||
tslib_1.__metadata("design:type", String) | ||
], IpCi.prototype, "contextInfo", void 0); | ||
tslib_1.__decorate([ | ||
property({ statePath: diagnosticView }), | ||
tslib_1.__metadata("design:type", String) | ||
], IpCi.prototype, "diagnosticInfo", void 0); | ||
IpCi = tslib_1.__decorate([ | ||
@@ -25,0 +29,0 @@ customElement('ip-ci') |
@@ -10,3 +10,5 @@ declare module '@uxland-admin/ip-context-info/constants' { | ||
ca: { | ||
[moduleName]: {}; | ||
[moduleName]: { | ||
diagnostic: string; | ||
}; | ||
}; | ||
@@ -26,2 +28,3 @@ en: { | ||
description: string; | ||
diagnostic: string; | ||
} | ||
@@ -62,2 +65,3 @@ export const FETCH_CONTEXT_INFO: any; | ||
export const contextInfoView: import("reselect").OutputSelector<import("../../reducer").AppContextInfoState, string, (res: AsyncState<ContextInfo>) => string>; | ||
export const diagnosticView: import("reselect").OutputSelector<import("../../reducer").AppContextInfoState, string, (res: AsyncState<ContextInfo>) => string>; | ||
@@ -82,7 +86,8 @@ } | ||
declare module '@uxland-admin/ip-context-info/components/ip-ci/ip-ci' { | ||
import { ContextInfo } from '@uxland-admin/ip-context-info/state/context-info/reducer'; const IpCi_base: any; | ||
const IpCi_base: any; | ||
export class IpCi extends IpCi_base { | ||
activeChanged(current: boolean): void; | ||
render(): any; | ||
contextInfo: ContextInfo; | ||
contextInfo: string; | ||
diagnosticInfo: string; | ||
} | ||
@@ -89,0 +94,0 @@ export {}; |
import { moduleName } from "./constants"; | ||
export const locales = { | ||
ca: { | ||
[moduleName]: {} | ||
[moduleName]: { | ||
diagnostic: 'Diagnòstic' | ||
} | ||
}, | ||
@@ -6,0 +8,0 @@ en: { |
{ | ||
"name": "@uxland-admin/ip-context-info", | ||
"description": "ICS Process - Context info", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"main": "index.js", | ||
@@ -6,0 +6,0 @@ "repository": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12093
200