@ddd-qc/agent-directory 6.11.0 → 6.12.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/README.md +1 -1
- package/dist/agent_directory.zvm.d.ts +1 -3
- package/dist/agent_directory.zvm.js +2 -7
- package/dist/agent_directory.zvm.js.map +1 -1
- package/dist/bindings/agent_directory.fn.d.ts +0 -0
- package/dist/bindings/agent_directory.fn.js +0 -0
- package/dist/bindings/agent_directory.fn.js.map +0 -0
- package/dist/bindings/agent_directory.integrity.d.ts +1 -1
- package/dist/bindings/agent_directory.integrity.js +1 -1
- package/dist/bindings/agent_directory.integrity.js.map +1 -1
- package/dist/bindings/agent_directory.proxy.d.ts +0 -0
- package/dist/bindings/agent_directory.proxy.js +0 -0
- package/dist/bindings/agent_directory.proxy.js.map +1 -1
- package/dist/bindings/agent_directory.types.d.ts +1 -1
- package/dist/bindings/agent_directory.types.js +1 -1
- package/dist/bindings/agent_directory.types.js.map +1 -1
- package/dist/elements/agent-directory-list.d.ts +0 -2
- package/dist/elements/agent-directory-list.js +3 -14
- package/dist/elements/agent-directory-list.js.map +1 -1
- package/dist/index.d.ts +0 -0
- package/dist/index.js +0 -0
- package/dist/index.js.map +0 -0
- package/package.json +1 -1
package/README.md
CHANGED
@@ -4,9 +4,7 @@ import { AgentDirectoryProxy } from "./bindings/agent_directory.proxy";
|
|
4
4
|
export interface AgentDirectoryPerspective {
|
5
5
|
agents: AgentId[];
|
6
6
|
}
|
7
|
-
/**
|
8
|
-
*
|
9
|
-
*/
|
7
|
+
/** */
|
10
8
|
export declare class AgentDirectoryZvm extends ZomeViewModel {
|
11
9
|
static readonly ZOME_PROXY: typeof AgentDirectoryProxy;
|
12
10
|
get zomeProxy(): AgentDirectoryProxy;
|
@@ -1,8 +1,6 @@
|
|
1
1
|
import { ZomeViewModel, AgentId } from "@ddd-qc/lit-happ";
|
2
2
|
import { AgentDirectoryProxy } from "./bindings/agent_directory.proxy";
|
3
|
-
/**
|
4
|
-
*
|
5
|
-
*/
|
3
|
+
/** */
|
6
4
|
export class AgentDirectoryZvm extends ZomeViewModel {
|
7
5
|
constructor() {
|
8
6
|
super(...arguments);
|
@@ -21,8 +19,7 @@ export class AgentDirectoryZvm extends ZomeViewModel {
|
|
21
19
|
hasChanged() {
|
22
20
|
if (!this._previousPerspective)
|
23
21
|
return true;
|
24
|
-
|
25
|
-
return hasChanged;
|
22
|
+
return JSON.stringify(this.perspective.agents) !== JSON.stringify(this._previousPerspective.agents);
|
26
23
|
}
|
27
24
|
/** */
|
28
25
|
async probeAllInner() {
|
@@ -32,8 +29,6 @@ export class AgentDirectoryZvm extends ZomeViewModel {
|
|
32
29
|
async probeRegisteredAgents() {
|
33
30
|
let agents = await this.zomeProxy.getRegisteredAgents();
|
34
31
|
this._agents = agents.map((agentKey) => new AgentId(agentKey));
|
35
|
-
// Debug add a random string to the perspective
|
36
|
-
// this._agents.push(String.fromCharCode("A".charCodeAt(0) + Math.floor(Math.random() * 26)))
|
37
32
|
this.notifySubscribers();
|
38
33
|
}
|
39
34
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"agent_directory.zvm.js","sourceRoot":"","sources":["../src/agent_directory.zvm.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAE,OAAO,EAAC,MAAM,kBAAkB,CAAC;AACxD,OAAO,EAAC,mBAAmB,EAAC,MAAM,kCAAkC,CAAC;
|
1
|
+
{"version":3,"file":"agent_directory.zvm.js","sourceRoot":"","sources":["../src/agent_directory.zvm.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAE,OAAO,EAAC,MAAM,kBAAkB,CAAC;AACxD,OAAO,EAAC,mBAAmB,EAAC,MAAM,kCAAkC,CAAC;AAOrE,MAAM;AACN,MAAM,OAAO,iBAAkB,SAAQ,aAAa;IAApD;;QAQE,mBAAmB;QAEX,YAAO,GAAc,EAAE,CAAC;IA0BlC,CAAC;IAhCC,IAAI,SAAS;QACX,OAAO,IAAI,CAAC,UAAiC,CAAC;IAChD,CAAC;IAMD,oBAAoB;IAEpB,KAAK;IACL,IAAI,WAAW;QACb,OAAO,EAAC,MAAM,EAAE,IAAI,CAAC,OAAO,EAAC,CAAA;IAC/B,CAAC;IAED,MAAM;IACI,UAAU;QAClB,IAAI,CAAC,IAAI,CAAC,oBAAoB;YAAE,OAAO,IAAI,CAAC;QAC5C,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,KAAK,IAAI,CAAC,SAAS,CAAE,IAAI,CAAC,oBAAkD,CAAC,MAAM,CAAC,CAAA;IACpI,CAAC;IAED,MAAM;IACN,KAAK,CAAC,aAAa;QACjB,MAAM,IAAI,CAAC,qBAAqB,EAAE,CAAA;IACpC,CAAC;IAED,MAAM;IACN,KAAK,CAAC,qBAAqB;QACzB,IAAI,MAAM,GAAG,MAAM,IAAI,CAAC,SAAS,CAAC,mBAAmB,EAAE,CAAC;QACxD,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,IAAI,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC;QAC/D,IAAI,CAAC,iBAAiB,EAAE,CAAA;IAC1B,CAAC;;AAjCe,4BAAU,GAAG,mBAAmB,AAAtB,CAAuB","sourcesContent":["import {ZomeViewModel, AgentId} from \"@ddd-qc/lit-happ\";\nimport {AgentDirectoryProxy} from \"./bindings/agent_directory.proxy\";\n\n/** */\nexport interface AgentDirectoryPerspective {\n agents: AgentId[],\n}\n\n/** */\nexport class AgentDirectoryZvm extends ZomeViewModel {\n\n static readonly ZOME_PROXY = AgentDirectoryProxy;\n\n get zomeProxy(): AgentDirectoryProxy {\n return this._zomeProxy as AgentDirectoryProxy;\n }\n\n /** -- Fields -- */\n\n private _agents: AgentId[] = [];\n\n /** -- Methods -- */\n\n /* */\n get perspective(): AgentDirectoryPerspective {\n return {agents: this._agents}\n }\n\n /** */\n protected hasChanged(): boolean {\n if (!this._previousPerspective) return true;\n return JSON.stringify(this.perspective.agents) !== JSON.stringify((this._previousPerspective as AgentDirectoryPerspective).agents)\n }\n\n /** */\n async probeAllInner(): Promise<void> {\n await this.probeRegisteredAgents()\n }\n\n /** */\n async probeRegisteredAgents() {\n let agents = await this.zomeProxy.getRegisteredAgents();\n this._agents = agents.map((agentKey) => new AgentId(agentKey));\n this.notifySubscribers()\n }\n}\n"]}
|
File without changes
|
File without changes
|
File without changes
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/* This file is generated by zits. Do not edit manually */
|
2
|
-
/**
|
2
|
+
/** All link types specific to this Zome */
|
3
3
|
export var AgentDirectoryLinkType;
|
4
4
|
(function (AgentDirectoryLinkType) {
|
5
5
|
AgentDirectoryLinkType["Agent"] = "Agent";
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"agent_directory.integrity.js","sourceRoot":"","sources":["../../src/bindings/agent_directory.integrity.ts"],"names":[],"mappings":"AAAA,0DAA0D;AAG1D,
|
1
|
+
{"version":3,"file":"agent_directory.integrity.js","sourceRoot":"","sources":["../../src/bindings/agent_directory.integrity.ts"],"names":[],"mappings":"AAAA,0DAA0D;AAG1D,2CAA2C;AAC3C,MAAM,CAAN,IAAY,sBAEX;AAFD,WAAY,sBAAsB;IACjC,yCAAe,CAAA;AAChB,CAAC,EAFW,sBAAsB,KAAtB,sBAAsB,QAEjC;AACD,MAAM,CAAN,IAAY,sBAEX;AAFD,WAAY,sBAAsB;IACjC,uCAAa,CAAA;AACd,CAAC,EAFW,sBAAsB,KAAtB,sBAAsB,QAEjC","sourcesContent":["/* This file is generated by zits. Do not edit manually */\n\n\n/** All link types specific to this Zome */\nexport enum AgentDirectoryLinkType {\n\tAgent = 'Agent',\n}\nexport enum AgentDirectoryUnitEnum {\n\tStub = 'Stub',\n}\n"]}
|
File without changes
|
File without changes
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"agent_directory.proxy.js","sourceRoot":"","sources":["../../src/bindings/agent_directory.proxy.ts"],"names":[],"mappings":"AAAA,0DAA0D;
|
1
|
+
{"version":3,"file":"agent_directory.proxy.js","sourceRoot":"","sources":["../../src/bindings/agent_directory.proxy.ts"],"names":[],"mappings":"AAAA,0DAA0D;AAiF1D,OAAO,EAAC,SAAS,EAAC,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAC,2BAA2B,EAAC,MAAM,sBAAsB,CAAC;AACjE,OAAO,EAAC,sBAAsB,EAAE,sBAAsB,EAAC,MAAM,6BAA6B,CAAC;AAE3F;;GAEG;AACH,MAAM,OAAO,mBAAoB,SAAQ,SAAS;IAMhD,KAAK,CAAC,mBAAmB;QACvB,OAAO,IAAI,CAAC,IAAI,CAAC,uBAAuB,EAAE,IAAI,CAAC,CAAC;IAClD,CAAC;;AAPwB,qCAAiB,GAAG,iBAAiB,CAAC;AACtC,4BAAQ,GAAG,2BAA2B,CAAC;AACvC,+BAAW,GAAG,MAAM,CAAC,MAAM,CAAC,sBAAsB,CAAC,CAAC;AACpD,8BAAU,GAAG,MAAM,CAAC,MAAM,CAAC,sBAAsB,CAAC,CAAC","sourcesContent":["/* This file is generated by zits. Do not edit manually */\n\n// @ts-ignore\nimport {AGENT_DIRECTORY_PATH, AgentDirectoryEntry, Stub, } from './agent_directory.types';\n// @ts-ignore\nimport {\n/** api/common.ts */\n// @ts-ignore\nWebsocketConnectionOptions, WsClientOptions, HolochainError, CloneIdHelper,\n/** types.ts */\n// @ts-ignore\nKitsuneAgent, KitsuneSpace, HoloHashB64, AgentPubKeyB64, DnaHashB64, WasmHashB64, EntryHashB64, ActionHashB64, AnyDhtHashB64, InstalledAppId, Signature, CellId, DnaProperties, RoleName, InstalledCell, Timestamp, Duration, HoloHashed, FetchPoolInfo,\n/** hdk/action.ts */\n// @ts-ignore\nSignedAction, SignedActionHashed, RegisterAgentActivity, ActionHashed, ActionType, Action, NewEntryAction, Dna, AgentValidationPkg, InitZomesComplete, CreateLink, DeleteLink, OpenChain, CloseChain, Update, Delete, Create,\n/** hdk/capabilities.ts */\n// @ts-ignore\nCapSecret, CapClaim, GrantedFunctionsType, GrantedFunctions, ZomeCallCapGrant, CapAccess, CapGrant,\n///** hdk/countersigning.ts */\n//CounterSigningSessionData,\n//PreflightRequest,\n//CounterSigningSessionTimes,\n//ActionBase,\n//CounterSigningAgents,\n//PreflightBytes,\n//Role,\n//CountersigningAgentState,\n/** hdk/dht-ops.ts */\n// @ts-ignore\nChainOpType, DhtOp, WarrantOp, ChainOp, Warrant, ChainIntegrityWarrant, ValidationType, ActionHashAndSig,\n/** hdk/entry.ts */\n// @ts-ignore\nEntryVisibility, AppEntryDef, EntryType, EntryContent, Entry,\n/** hdk/record.ts */\n// @ts-ignore\nRecord as HcRecord, RecordEntry as HcRecordEntry,\n/** hdk/link.ts */\n//AnyLinkableHash,\n// @ts-ignore\nZomeIndex, LinkType, LinkTag, RateWeight, RateBucketId, RateUnits, Link,\n/** api/admin/types.ts */\n// @ts-ignore\n// YamlProperties\nZomes, WasmCode, DisabledAppReason, AppInfoStatus, StemCell, ProvisionedCell, ClonedCell, CellType, CellInfo, AppInfo, MembraneProof, MemproofMap, RoleSettingsMap, RoleSettings, DnaModifiersOpt, DnaModifiers, FunctionName, ZomeName, ZomeDefinition, IntegrityZome, CoordinatorZome, DnaDefinition, ResourceBytes, ResourceMap, CellProvisioningStrategy, CellProvisioning, DnaVersionSpec, DnaVersionFlexible, AppRoleDnaManifest, AppRoleManifest, AppManifest, AppBundle, AppBundleSource, NetworkSeed, AppStatusFilter, AppInterfaceInfo, AgentInfoSigned, ZomeLocation, DnaManifest,\n} from '@holochain/client';\n\n\n/// Simple Hashes\n// @ts-ignore\ntype AgentArray = Uint8Array;\n// @ts-ignore\ntype DnaArray = Uint8Array;\n// @ts-ignore\ntype WasmArray = Uint8Array;\n// @ts-ignore\ntype EntryArray = Uint8Array;\n// @ts-ignore\ntype ActionArray = Uint8Array;\n// @ts-ignore\ntype AnyDhtArray = Uint8Array;\n// @ts-ignore\ntype AnyLinkableArray = Uint8Array;\n// @ts-ignore\ntype ExternalArray = Uint8Array;\n\n// @ts-ignore\nimport {\n/** Common */\n// @ts-ignore\nDhtOpHashB64, DhtOpHash,\n/** DnaFile */\n// @ts-ignore\nDnaFile, DnaDef,\n/** entry-details */\n// @ts-ignore\nEntryDetails, RecordDetails, Details, DetailsType, EntryDhtStatus,\n/** Validation */\n// @ts-ignore\nValidationStatus, ValidationReceipt,\n} from '@holochain-open-dev/core-types';\n\nimport {ZomeProxy} from '@ddd-qc/lit-happ';\nimport {agentDirectoryFunctionNames} from './agent_directory.fn';\nimport {AgentDirectoryUnitEnum, AgentDirectoryLinkType} from './agent_directory.integrity';\n\n/**\n *\n */\nexport class AgentDirectoryProxy extends ZomeProxy {\n static override readonly DEFAULT_ZOME_NAME = \"agent_directory\";\n static override readonly FN_NAMES = agentDirectoryFunctionNames;\n static override readonly ENTRY_TYPES = Object.values(AgentDirectoryUnitEnum);\n static override readonly LINK_TYPES = Object.values(AgentDirectoryLinkType);\n \n async getRegisteredAgents(): Promise<AgentArray[]> {\n return this.call('get_registered_agents', null);\n }\n}\n"]}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
export declare const AGENT_DIRECTORY_PATH = "registered_agents";
|
2
|
-
/** Entry types not
|
2
|
+
/** Entry types are not necessary, but it is defined because otherwise holochain will fail. */
|
3
3
|
export declare enum AgentDirectoryEntryType {
|
4
4
|
Stub = "Stub"
|
5
5
|
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/* This file is generated by zits. Do not edit manually */
|
2
2
|
export const AGENT_DIRECTORY_PATH = "registered_agents";
|
3
|
-
/** Entry types not
|
3
|
+
/** Entry types are not necessary, but it is defined because otherwise holochain will fail. */
|
4
4
|
export var AgentDirectoryEntryType;
|
5
5
|
(function (AgentDirectoryEntryType) {
|
6
6
|
AgentDirectoryEntryType["Stub"] = "Stub";
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"agent_directory.types.js","sourceRoot":"","sources":["../../src/bindings/agent_directory.types.ts"],"names":[],"mappings":"AAAA,0DAA0D;
|
1
|
+
{"version":3,"file":"agent_directory.types.js","sourceRoot":"","sources":["../../src/bindings/agent_directory.types.ts"],"names":[],"mappings":"AAAA,0DAA0D;AA+E1D,MAAM,CAAC,MAAM,oBAAoB,GAAG,mBAAmB,CAAC;AAExD,8FAA8F;AAC9F,MAAM,CAAN,IAAY,uBAEX;AAFD,WAAY,uBAAuB;IAClC,wCAAa,CAAA;AACd,CAAC,EAFW,uBAAuB,KAAvB,uBAAuB,QAElC","sourcesContent":["/* This file is generated by zits. Do not edit manually */\n\n// @ts-ignore\nimport {\n/** api/common.ts */\n// @ts-ignore\nWebsocketConnectionOptions, WsClientOptions, HolochainError, CloneIdHelper,\n/** types.ts */\n// @ts-ignore\nKitsuneAgent, KitsuneSpace, HoloHashB64, AgentPubKeyB64, DnaHashB64, WasmHashB64, EntryHashB64, ActionHashB64, AnyDhtHashB64, InstalledAppId, Signature, CellId, DnaProperties, RoleName, InstalledCell, Timestamp, Duration, HoloHashed, FetchPoolInfo,\n/** hdk/action.ts */\n// @ts-ignore\nSignedAction, SignedActionHashed, RegisterAgentActivity, ActionHashed, ActionType, Action, NewEntryAction, Dna, AgentValidationPkg, InitZomesComplete, CreateLink, DeleteLink, OpenChain, CloseChain, Update, Delete, Create,\n/** hdk/capabilities.ts */\n// @ts-ignore\nCapSecret, CapClaim, GrantedFunctionsType, GrantedFunctions, ZomeCallCapGrant, CapAccess, CapGrant,\n///** hdk/countersigning.ts */\n//CounterSigningSessionData,\n//PreflightRequest,\n//CounterSigningSessionTimes,\n//ActionBase,\n//CounterSigningAgents,\n//PreflightBytes,\n//Role,\n//CountersigningAgentState,\n/** hdk/dht-ops.ts */\n// @ts-ignore\nChainOpType, DhtOp, WarrantOp, ChainOp, Warrant, ChainIntegrityWarrant, ValidationType, ActionHashAndSig,\n/** hdk/entry.ts */\n// @ts-ignore\nEntryVisibility, AppEntryDef, EntryType, EntryContent, Entry,\n/** hdk/record.ts */\n// @ts-ignore\nRecord as HcRecord, RecordEntry as HcRecordEntry,\n/** hdk/link.ts */\n//AnyLinkableHash,\n// @ts-ignore\nZomeIndex, LinkType, LinkTag, RateWeight, RateBucketId, RateUnits, Link,\n/** api/admin/types.ts */\n// @ts-ignore\n// YamlProperties\nZomes, WasmCode, DisabledAppReason, AppInfoStatus, StemCell, ProvisionedCell, ClonedCell, CellType, CellInfo, AppInfo, MembraneProof, MemproofMap, RoleSettingsMap, RoleSettings, DnaModifiersOpt, DnaModifiers, FunctionName, ZomeName, ZomeDefinition, IntegrityZome, CoordinatorZome, DnaDefinition, ResourceBytes, ResourceMap, CellProvisioningStrategy, CellProvisioning, DnaVersionSpec, DnaVersionFlexible, AppRoleDnaManifest, AppRoleManifest, AppManifest, AppBundle, AppBundleSource, NetworkSeed, AppStatusFilter, AppInterfaceInfo, AgentInfoSigned, ZomeLocation, DnaManifest,\n} from '@holochain/client';\n\n\n/// Simple Hashes\n// @ts-ignore\ntype AgentArray = Uint8Array;\n// @ts-ignore\ntype DnaArray = Uint8Array;\n// @ts-ignore\ntype WasmArray = Uint8Array;\n// @ts-ignore\ntype EntryArray = Uint8Array;\n// @ts-ignore\ntype ActionArray = Uint8Array;\n// @ts-ignore\ntype AnyDhtArray = Uint8Array;\n// @ts-ignore\ntype AnyLinkableArray = Uint8Array;\n// @ts-ignore\ntype ExternalArray = Uint8Array;\n\n// @ts-ignore\nimport {\n/** Common */\n// @ts-ignore\nDhtOpHashB64, DhtOpHash,\n/** DnaFile */\n// @ts-ignore\nDnaFile, DnaDef,\n/** entry-details */\n// @ts-ignore\nEntryDetails, RecordDetails, Details, DetailsType, EntryDhtStatus,\n/** Validation */\n// @ts-ignore\nValidationStatus, ValidationReceipt,\n} from '@holochain-open-dev/core-types';\n\nexport const AGENT_DIRECTORY_PATH = \"registered_agents\";\n\n/** Entry types are not necessary, but it is defined because otherwise holochain will fail. */\nexport enum AgentDirectoryEntryType {\n\tStub = 'Stub',\n}\nexport type AgentDirectoryEntryVariantStub = {Stub: Stub}\nexport type AgentDirectoryEntry = \n | AgentDirectoryEntryVariantStub;\n\n/** Bogus Entry */\nexport interface Stub {\n}\n"]}
|
@@ -11,8 +11,6 @@ export declare class AgentDirectoryList extends ZomeElement<AgentDirectoryPerspe
|
|
11
11
|
/** -- Methods -- */
|
12
12
|
/** After first call to render() */
|
13
13
|
firstUpdated(): Promise<void>;
|
14
|
-
/** After each call to render() */
|
15
|
-
updated(changedProperties: any): Promise<void>;
|
16
14
|
/** */
|
17
15
|
refresh(_e?: any): Promise<void>;
|
18
16
|
/** */
|
@@ -16,36 +16,25 @@ let AgentDirectoryList = class AgentDirectoryList extends ZomeElement {
|
|
16
16
|
/** -- Methods -- */
|
17
17
|
/** After first call to render() */
|
18
18
|
async firstUpdated() {
|
19
|
-
//this._viewModel.subscribe(this, 'perspective');
|
20
19
|
await this.refresh();
|
21
20
|
this._initialized = true;
|
22
21
|
}
|
23
|
-
/** After each call to render() */
|
24
|
-
async updated(changedProperties) {
|
25
|
-
// n/a
|
26
|
-
}
|
27
22
|
/** */
|
28
23
|
async refresh(_e) {
|
29
|
-
|
30
|
-
await this._zvm.probeAll();
|
24
|
+
this._zvm.probeAll();
|
31
25
|
}
|
32
26
|
/** */
|
33
27
|
render() {
|
34
|
-
console.
|
28
|
+
console.debug("agent-directory-list render()");
|
35
29
|
if (!this._initialized) {
|
36
30
|
return html `<span>Loading...</span>`;
|
37
31
|
}
|
38
32
|
/* Agents */
|
39
33
|
const agentLi = Object.entries(this.perspective.agents).map(([_index, agentId]) => {
|
40
|
-
//console.log("" + index + ". " + agentIdB64)
|
41
34
|
return html `<li value="${agentId.b64}">${agentId.short}</li>`;
|
42
35
|
});
|
43
36
|
/** render all */
|
44
|
-
return html
|
45
|
-
<ul>
|
46
|
-
${agentLi}
|
47
|
-
</ul>
|
48
|
-
`;
|
37
|
+
return html `<ul>${agentLi}</ul>`;
|
49
38
|
}
|
50
39
|
};
|
51
40
|
__decorate([
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"agent-directory-list.js","sourceRoot":"","sources":["../../src/elements/agent-directory-list.ts"],"names":[],"mappings":";AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,KAAK,CAAC;AACzB,OAAO,
|
1
|
+
{"version":3,"file":"agent-directory-list.js","sourceRoot":"","sources":["../../src/elements/agent-directory-list.ts"],"names":[],"mappings":";AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAC,KAAK,EAAE,aAAa,EAAC,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAAC,WAAW,EAAC,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAA4B,iBAAiB,EAAC,MAAM,wBAAwB,CAAC;AAEpF;;GAEG;AAEI,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,WAAyD;IAC/F,WAAW;IACX;QACE,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;QAG7C,mBAAmB;QAEF,iBAAY,GAAG,KAAK,CAAC;IAJtC,CAAC;IAOD,oBAAoB;IAEpB,mCAAmC;IACnC,KAAK,CAAC,YAAY;QAChB,MAAM,IAAI,CAAC,OAAO,EAAE,CAAC;QACrB,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC;IAC3B,CAAC;IAGD,MAAM;IACN,KAAK,CAAC,OAAO,CAAC,EAAQ;QACpB,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC;IACvB,CAAC;IAGD,MAAM;IACN,MAAM;QACJ,OAAO,CAAC,KAAK,CAAC,+BAA+B,CAAC,CAAC;QAE/C,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE;YACtB,OAAO,IAAI,CAAA,yBAAyB,CAAC;SACtC;QAED,YAAY;QACZ,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,GAAG,CACvD,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,EAAE;YACpB,OAAO,IAAI,CAAC,cAAc,OAAO,CAAC,GAAG,KAAK,OAAO,CAAC,KAAK,OAAO,CAAA;QAChE,CAAC,CACJ,CAAA;QAED,iBAAiB;QACjB,OAAO,IAAI,CAAA,OAAO,OAAO,OAAO,CAAC;IACnC,CAAC;CACF,CAAA;AApCkB;IAAhB,KAAK,EAAE;wDAA8B;AAR3B,kBAAkB;IAD9B,aAAa,CAAC,sBAAsB,CAAC;GACzB,kBAAkB,CA4C9B","sourcesContent":["import {html} from \"lit\";\nimport {state, customElement} from \"lit/decorators.js\";\nimport {ZomeElement} from \"@ddd-qc/lit-happ\";\nimport {AgentDirectoryPerspective, AgentDirectoryZvm} from \"../agent_directory.zvm\";\n\n/**\n * @element agent-directory-list\n */\n@customElement(\"agent-directory-list\")\nexport class AgentDirectoryList extends ZomeElement<AgentDirectoryPerspective, AgentDirectoryZvm> {\n /** Ctor */\n constructor() {\n super(AgentDirectoryZvm.DEFAULT_ZOME_NAME);\n }\n\n /** -- Fields -- */\n\n @state() private _initialized = false;\n\n\n /** -- Methods -- */\n\n /** After first call to render() */\n async firstUpdated() {\n await this.refresh();\n this._initialized = true;\n }\n\n\n /** */\n async refresh(_e?: any) {\n this._zvm.probeAll();\n }\n\n\n /** */\n render() {\n console.debug(\"agent-directory-list render()\");\n\n if (!this._initialized) {\n return html`<span>Loading...</span>`;\n }\n\n /* Agents */\n const agentLi = Object.entries(this.perspective.agents).map(\n ([_index, agentId]) => {\n return html `<li value=\"${agentId.b64}\">${agentId.short}</li>`\n }\n )\n\n /** render all */\n return html`<ul>${agentLi}</ul>`;\n }\n}\n"]}
|
package/dist/index.d.ts
CHANGED
File without changes
|
package/dist/index.js
CHANGED
File without changes
|
package/dist/index.js.map
CHANGED
File without changes
|