@esri/hub-common 14.58.0 → 14.59.0
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/dist/esm/core/types/ActionLinks.js +1 -0
- package/dist/esm/core/types/ActionLinks.js.map +1 -0
- package/dist/esm/core/types/index.js +1 -0
- package/dist/esm/core/types/index.js.map +1 -1
- package/dist/node/core/types/ActionLinks.js +3 -0
- package/dist/node/core/types/ActionLinks.js.map +1 -0
- package/dist/node/core/types/index.js +1 -0
- package/dist/node/core/types/index.js.map +1 -1
- package/dist/types/core/types/ActionLinks.d.ts +65 -0
- package/dist/types/core/types/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=ActionLinks.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ActionLinks.js","sourceRoot":"","sources":["../../../../src/core/types/ActionLinks.ts"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/core/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,0BAA0B,CAAC;AACzC,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,0BAA0B,CAAC;AACzC,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,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{"version":3,"file":"ActionLinks.js","sourceRoot":"","sources":["../../../../src/core/types/ActionLinks.ts"],"names":[],"mappings":""}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./ActionLinks"), exports);
|
|
4
5
|
tslib_1.__exportStar(require("./DynamicValues"), exports);
|
|
5
6
|
tslib_1.__exportStar(require("./HubEntity"), exports);
|
|
6
7
|
tslib_1.__exportStar(require("./HubEntityEditor"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/core/types/index.ts"],"names":[],"mappings":";;;AAAA,0DAAgC;AAChC,sDAA4B;AAC5B,4DAAkC;AAClC,0DAAgC;AAChC,wDAA8B;AAC9B,mEAAyC;AACzC,2DAAiC;AACjC,gEAAsC;AACtC,2DAAiC;AACjC,sDAA4B;AAC5B,sDAA4B;AAC5B,sDAA4B;AAC5B,2DAAiC;AACjC,mEAAyC;AACzC,2DAAiC;AACjC,uDAA6B;AAC7B,yDAA+B;AAC/B,qDAA2B;AAC3B,wDAA8B;AAC9B,yDAA+B;AAC/B,qDAA2B;AAC3B,0DAAgC;AAChC,yDAA+B;AAC/B,6DAAmC;AACnC,uDAA6B;AAC7B,+DAAqC;AACrC,0DAAgC;AAChC,2DAAiC;AACjC,8DAAoC;AACpC,oDAA0B;AAC1B,kDAAwB"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/core/types/index.ts"],"names":[],"mappings":";;;AAAA,wDAA8B;AAC9B,0DAAgC;AAChC,sDAA4B;AAC5B,4DAAkC;AAClC,0DAAgC;AAChC,wDAA8B;AAC9B,mEAAyC;AACzC,2DAAiC;AACjC,gEAAsC;AACtC,2DAAiC;AACjC,sDAA4B;AAC5B,sDAA4B;AAC5B,sDAA4B;AAC5B,2DAAiC;AACjC,mEAAyC;AACzC,2DAAiC;AACjC,uDAA6B;AAC7B,yDAA+B;AAC/B,qDAA2B;AAC3B,wDAA8B;AAC9B,yDAA+B;AAC/B,qDAA2B;AAC3B,0DAAgC;AAChC,yDAA+B;AAC/B,6DAAmC;AACnC,uDAA6B;AAC7B,+DAAqC;AACrC,0DAAgC;AAChC,2DAAiC;AACjC,8DAAoC;AACpC,oDAA0B;AAC1B,kDAAwB"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Type to represent an action link. This is a discriminated
|
|
3
|
+
* union between actions that link to "external" sources,
|
|
4
|
+
* actions that link to existing "content", "well-known"
|
|
5
|
+
* actions, and action link "sections"
|
|
6
|
+
*/
|
|
7
|
+
export declare type HubActionLink = IHubActionLinkSection | IHubExternalActionLink | IHubContentActionLink | IHubWellKnownActionLink;
|
|
8
|
+
/**
|
|
9
|
+
* base action link properties that all action
|
|
10
|
+
* link interfaces extend
|
|
11
|
+
*/
|
|
12
|
+
interface IHubBaseActionLink {
|
|
13
|
+
/**
|
|
14
|
+
* translated action label - used for the visible label
|
|
15
|
+
* and/or the underlyiing a11y label
|
|
16
|
+
*/
|
|
17
|
+
label: string;
|
|
18
|
+
/**
|
|
19
|
+
* whether the label should be shown in the UI or just be
|
|
20
|
+
* used for the underlying a11y label
|
|
21
|
+
*/
|
|
22
|
+
showLabel?: string;
|
|
23
|
+
/** translated action description */
|
|
24
|
+
description?: string;
|
|
25
|
+
/** action icon */
|
|
26
|
+
icon?: string;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* action link interface for sections
|
|
30
|
+
*/
|
|
31
|
+
export interface IHubActionLinkSection extends IHubBaseActionLink {
|
|
32
|
+
kind: "section";
|
|
33
|
+
/** section links */
|
|
34
|
+
children: HubActionLink[];
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* action link interface for linking to an external source
|
|
38
|
+
*/
|
|
39
|
+
export interface IHubExternalActionLink extends IHubBaseActionLink {
|
|
40
|
+
kind: "external";
|
|
41
|
+
/**
|
|
42
|
+
* specifies the URL of the linked resource, which can be
|
|
43
|
+
* set as an absolute or relative path.
|
|
44
|
+
*/
|
|
45
|
+
href: string;
|
|
46
|
+
/** specifies where to open the link */
|
|
47
|
+
target?: "_blank";
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* action link interface for linking to existing content
|
|
51
|
+
*/
|
|
52
|
+
export interface IHubContentActionLink extends IHubBaseActionLink {
|
|
53
|
+
kind: "content";
|
|
54
|
+
/** content id to link to */
|
|
55
|
+
contentId: string;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* action link interface for well-known hub actions
|
|
59
|
+
*/
|
|
60
|
+
export interface IHubWellKnownActionLink extends IHubBaseActionLink {
|
|
61
|
+
kind: "well-known";
|
|
62
|
+
/** unique action identifier */
|
|
63
|
+
action: string;
|
|
64
|
+
}
|
|
65
|
+
export {};
|