solid-panes 3.7.3-f251a0e3 → 3.7.3-f63041a8
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/dashboard/basicPreferences.js +121 -129
- package/dist/dashboard/basicPreferences.js.map +1 -1
- package/dist/dashboard/dashboardPane.js +60 -54
- package/dist/dashboard/dashboardPane.js.map +1 -1
- package/dist/dashboard/homepage.js +45 -54
- package/dist/dashboard/homepage.js.map +1 -1
- package/dist/home/homePane.d.ts.map +1 -1
- package/dist/home/homePane.js +60 -55
- package/dist/home/homePane.js.map +1 -1
- package/dist/index.js +86 -25
- package/dist/index.js.map +1 -1
- package/dist/internal/internalPane.js +168 -179
- package/dist/internal/internalPane.js.map +1 -1
- package/dist/mainPage/footer.js +13 -7
- package/dist/mainPage/footer.js.map +1 -1
- package/dist/mainPage/header.js +59 -58
- package/dist/mainPage/header.js.map +1 -1
- package/dist/mainPage/index.js +19 -24
- package/dist/mainPage/index.js.map +1 -1
- package/dist/outline/context.js +17 -11
- package/dist/outline/context.js.map +1 -1
- package/dist/outline/propertyViews.js +39 -28
- package/dist/outline/propertyViews.js.map +1 -1
- package/dist/outline/viewAsImage.js +13 -5
- package/dist/outline/viewAsImage.js.map +1 -1
- package/dist/outline/viewAsMbox.js +20 -11
- package/dist/outline/viewAsMbox.js.map +1 -1
- package/dist/pad/padPane.js +395 -404
- package/dist/pad/padPane.js.map +1 -1
- package/dist/schedule/schedulePane.js +3 -4
- package/dist/schedule/schedulePane.js.map +1 -1
- package/dist/sharing/sharingPane.js +36 -32
- package/dist/sharing/sharingPane.js.map +1 -1
- package/dist/tabbed/tabbedPane.js +54 -51
- package/dist/tabbed/tabbedPane.js.map +1 -1
- package/dist/trustedApplications/trustedApplications.dom.js +134 -146
- package/dist/trustedApplications/trustedApplications.dom.js.map +1 -1
- package/dist/trustedApplications/trustedApplications.utils.js +20 -20
- package/dist/trustedApplications/trustedApplications.utils.js.map +1 -1
- package/dist/trustedApplications/trustedApplications.view.js +51 -57
- package/dist/trustedApplications/trustedApplications.view.js.map +1 -1
- package/dist/versionInfo.js +35 -29
- package/dist/versionInfo.js.map +1 -1
- package/package.json +28 -34
- package/dist/schedule/formsForSchedule.js +0 -124
- package/dist/schedule/formsForSchedule.js.map +0 -1
- package/dist/types.d.ts +0 -30
- package/dist/types.d.ts.map +0 -1
- package/dist/types.js +0 -2
- package/dist/types.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"header.js","
|
|
1
|
+
{"version":3,"file":"header.js","names":["_solidLogic","require","_solidUi","HELP_MENU_ICON","icons","iconBase","SOLID_ICON_URL","USER_GUIDE_MENU_ITEM","REPORT_A_PROBLEM_MENU_ITEM","SHOW_YOUR_PROFILE_MENU_ITEM","LOG_OUT_MENU_ITEM","USER_GUIDE_MENU_URL","REPORT_A_PROBLEM_MENU_URL","createHeader","store","outliner","initHeader","setUserMenu","setHeaderOptions","helpMenuList","label","url","target","headerOptions","logo","helpIcon","showProfile","onclick","openUserProfile","logOut","authSession","logout","userMenuList","concat","getMenuItems","push","GotoSubject","authn","currentUser","undefined","location","reload","items","getDashboardItems","map","element","openDashboardPane","tabName","paneName","pane","showDashboard"],"sources":["../../src/mainPage/header.ts"],"sourcesContent":["import { authSession, authn } from 'solid-logic'\nimport { icons, initHeader } from 'solid-ui'\n/**\n * menu icons\n*/\nconst HELP_MENU_ICON = icons.iconBase + 'noun_help.svg'\nconst SOLID_ICON_URL = 'https://solidproject.org/assets/img/solid-emblem.svg'\n\n/**\n * menu elements\n*/\nconst USER_GUIDE_MENU_ITEM = 'User guide'\nconst REPORT_A_PROBLEM_MENU_ITEM = 'Report a problem'\nconst SHOW_YOUR_PROFILE_MENU_ITEM = 'Show your profile'\nconst LOG_OUT_MENU_ITEM = 'Log out'\n\ntype UserMenuItem = { label: string; onclick: () => void }\n/**\n * URLS\n */\nconst USER_GUIDE_MENU_URL = 'https://solidos.github.io/userguide/'\nconst REPORT_A_PROBLEM_MENU_URL = 'https://github.com/solidos/solidos/issues'\n\nexport async function createHeader (store, outliner) {\n initHeader(store, await setUserMenu(outliner), setHeaderOptions())\n}\n\nfunction setHeaderOptions () {\n const helpMenuList = [\n { label: USER_GUIDE_MENU_ITEM, url: USER_GUIDE_MENU_URL, target: '_blank' },\n { label: REPORT_A_PROBLEM_MENU_ITEM, url: REPORT_A_PROBLEM_MENU_URL, target: '_blank' }\n ]\n const headerOptions = { logo: SOLID_ICON_URL, helpIcon: HELP_MENU_ICON, helpMenuList }\n\n return headerOptions\n}\n\nasync function setUserMenu (outliner: any) {\n const showProfile = {\n label: SHOW_YOUR_PROFILE_MENU_ITEM,\n onclick: () => openUserProfile(outliner)\n }\n\n const logOut: UserMenuItem = {\n label: LOG_OUT_MENU_ITEM,\n onclick: () => {\n authSession.logout()\n }\n }\n\n // the order of the menu is important here, show profile first and logout last\n let userMenuList:UserMenuItem[] = [] // was [showProfile]\n userMenuList = userMenuList.concat(await getMenuItems(outliner))\n userMenuList.push(logOut)\n\n return userMenuList\n}\n\n// Does not work to jump to user profile,\nfunction openUserProfile (outliner: any) {\n outliner.GotoSubject(authn.currentUser(), true, undefined, true, undefined)\n location.reload()\n}\n\nasync function getMenuItems (outliner: any) {\n const items = await outliner.getDashboardItems()\n return items.map((element) => {\n return {\n label: element.label,\n onclick: () => openDashboardPane(outliner, element.tabName || element.paneName)\n }\n })\n}\n\nasync function openDashboardPane (outliner: any, pane: string): Promise<void> {\n outliner.showDashboard({\n pane\n })\n}\n"],"mappings":";;;;;;AAAA,IAAAA,WAAA,GAAAC,OAAA;AACA,IAAAC,QAAA,GAAAD,OAAA;AACA;AACA;AACA;AACA,MAAME,cAAc,GAAGC,cAAK,CAACC,QAAQ,GAAG,eAAe;AACvD,MAAMC,cAAc,GAAG,sDAAsD;;AAE7E;AACA;AACA;AACA,MAAMC,oBAAoB,GAAG,YAAY;AACzC,MAAMC,0BAA0B,GAAG,kBAAkB;AACrD,MAAMC,2BAA2B,GAA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ACvCA,QAAQ,CAACqB,WAAW,CAACC,iBAAK,CAACC,WAAW,CAAC,CAAC,EAAE,IAAI,EAAEC,SAAS,EAAE,IAAI,EAAEA,SAAS,CAAC;EAC3EC,QAAQ,CAACC,MAAM,CAAC,CAAC;AACnB;AAEA,eAAeP,YAAYA,CAAEnB,QAAa,EAAE;EAC1C,MAAM2B,KAAK,GAAG,MAAM3B,QAAQ,CAAC4B,iBAAiB,CAAC,CAAC;EAChD,OAAOD,KAAK,CAACE,GAAG,CAAEC,OAAO,IAAK;IAC5B,OAAO;MACLzB,KAAK,EAAEyB,OAAO,CAACzB,KAAK;MACpBO,OAAO,EAAEA,CAAA,KAAMmB,iBAAiB,CAAC/B,QAAQ,EAAE8B,OAAO,CAACE,OAAO,IAAIF,OAAO,CAACG,QAAQ;IAChF,CAAC;EACH,CAAC,CAAC;AACJ;AAEA,eAAeF,iBAAiBA,CAAE/B,QAAa,EAAEkC,IAAY,EAAiB;EAC5ElC,QAAQ,CAACmC,aAAa,CAAC;IACrBD;EACF,CAAC,CAAC;AACJ","ignoreList":[]}
|
package/dist/mainPage/index.js
CHANGED
|
@@ -1,30 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = initMainPage;
|
|
7
|
+
var _index = require("../index");
|
|
8
|
+
var _header = require("./header");
|
|
9
|
+
var _footer = require("./footer");
|
|
1
10
|
/* Main Page
|
|
2
11
|
**
|
|
3
12
|
** This code is called in mashlib and renders the header and footer of the Databrowser.
|
|
4
13
|
*/
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
import { createHeader } from './header';
|
|
16
|
-
import { createFooter } from './footer';
|
|
17
|
-
export default function initMainPage(store, uri) {
|
|
18
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
19
|
-
const outliner = getOutliner(document);
|
|
20
|
-
uri = uri || window.location.href;
|
|
21
|
-
let subject = uri;
|
|
22
|
-
if (typeof uri === 'string')
|
|
23
|
-
subject = store.sym(uri);
|
|
24
|
-
outliner.GotoSubject(subject, true, undefined, true, undefined);
|
|
25
|
-
const header = yield createHeader(store, outliner);
|
|
26
|
-
const footer = createFooter(store);
|
|
27
|
-
return Promise.all([header, footer]);
|
|
28
|
-
});
|
|
14
|
+
|
|
15
|
+
async function initMainPage(store, uri) {
|
|
16
|
+
const outliner = (0, _index.getOutliner)(document);
|
|
17
|
+
uri = uri || window.location.href;
|
|
18
|
+
let subject = uri;
|
|
19
|
+
if (typeof uri === 'string') subject = store.sym(uri);
|
|
20
|
+
outliner.GotoSubject(subject, true, undefined, true, undefined);
|
|
21
|
+
const header = await (0, _header.createHeader)(store, outliner);
|
|
22
|
+
const footer = (0, _footer.createFooter)(store);
|
|
23
|
+
return Promise.all([header, footer]);
|
|
29
24
|
}
|
|
30
25
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","
|
|
1
|
+
{"version":3,"file":"index.js","names":["_index","require","_header","_footer","initMainPage","store","uri","outliner","getOutliner","document","window","location","href","subject","sym","GotoSubject","undefined","header","createHeader","footer","createFooter","Promise","all"],"sources":["../../src/mainPage/index.ts"],"sourcesContent":["/* Main Page\n **\n ** This code is called in mashlib and renders the header and footer of the Databrowser.\n */\n\nimport { LiveStore, NamedNode } from 'rdflib'\nimport { getOutliner } from '../index'\nimport { createHeader } from './header'\nimport { createFooter } from './footer'\n\nexport default async function initMainPage (store: LiveStore, uri?: string | NamedNode | null) {\n const outliner = getOutliner(document)\n uri = uri || window.location.href\n let subject = uri\n if (typeof uri === 'string') subject = store.sym(uri)\n outliner.GotoSubject(subject, true, undefined, true, undefined)\n const header = await createHeader(store, outliner)\n const footer = createFooter(store)\n return Promise.all([header, footer])\n}\n"],"mappings":";;;;;;AAMA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AARA;AACA;AACA;AACA;;AAOe,eAAeG,YAAYA,CAAEC,KAAgB,EAAEC,GAA+B,EAAE;EAC7F,MAAMC,QAAQ,GAAG,IAAAC,kBAAW,EAACC,QAAQ,CAAC;EACtCH,GAAG,GAAGA,GAAG,IAAII,MAAM,CAACC,QAAQ,CAACC,IAAI;EACjC,IAAIC,OAAO,GAAGP,GAAG;EACjB,IAAI,OAAOA,GAAG,KAAK,QAAQ,EAAEO,OAAO,GAAGR,KAAK,CAACS,GAAG,CAACR,GAAG,CAAC;EACrDC,QAAQ,CAACQ,WAAW,CAACF,OAAO,EAAE,IAAI,EAAEG,SAAS,EAAE,IAAI,EAAEA,SAAS,CAAC;EAC/D,MAAMC,MAAM,GAAG,MAAM,IAAAC,oBAAY,EAACb,KAAK,EAAEE,QAAQ,CAAC;EAClD,MAAMY,MAAM,GAAG,IAAAC,oBAAY,EAACf,KAAK,CAAC;EAClC,OAAOgB,OAAO,CAACC,GAAG,CAAC,CAACL,MAAM,EAAEE,MAAM,CAAC,CAAC;AACtC","ignoreList":[]}
|
package/dist/outline/context.js
CHANGED
|
@@ -1,13 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.createContext = createContext;
|
|
7
|
+
var _index = require("../index");
|
|
8
|
+
function createContext(dom, paneRegistry, store, logic) {
|
|
9
|
+
return {
|
|
10
|
+
dom,
|
|
11
|
+
getOutliner: _index.getOutliner,
|
|
12
|
+
session: {
|
|
13
|
+
paneRegistry,
|
|
14
|
+
store,
|
|
15
|
+
logic
|
|
16
|
+
}
|
|
17
|
+
};
|
|
12
18
|
}
|
|
13
19
|
//# sourceMappingURL=context.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.js","
|
|
1
|
+
{"version":3,"file":"context.js","names":["_index","require","createContext","dom","paneRegistry","store","logic","getOutliner","session"],"sources":["../../src/outline/context.ts"],"sourcesContent":["import { DataBrowserContext, PaneRegistry } from 'pane-registry'\nimport { getOutliner } from '../index'\nimport { SolidLogic } from 'solid-logic'\nimport { LiveStore } from 'rdflib'\n\nexport function createContext (\n dom: HTMLDocument,\n paneRegistry: PaneRegistry,\n store: LiveStore,\n logic: SolidLogic\n): DataBrowserContext {\n return {\n dom,\n getOutliner,\n session: {\n paneRegistry,\n store,\n logic\n }\n }\n}\n"],"mappings":";;;;;;AACA,IAAAA,MAAA,GAAAC,OAAA;AAIO,SAASC,aAAaA,CAC3BC,GAAiB,EACjBC,YAA0B,EAC1BC,KAAgB,EAChBC,KAAiB,EACG;EACpB,OAAO;IACLH,GAAG;IACHI,WAAW,EAAXA,kBAAW;IACXC,OAAO,EAAE;MACPJ,YAAY;MACZC,KAAK;MACLC;IACF;EACF,CAAC;AACH","ignoreList":[]}
|
|
@@ -1,33 +1,44 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.propertyViews = propertyViews;
|
|
7
|
+
exports.viewsAddPropertyView = viewsAddPropertyView;
|
|
8
|
+
var _solidUi = require("solid-ui");
|
|
9
|
+
var _viewAsImage = _interopRequireDefault(require("./viewAsImage"));
|
|
10
|
+
var _viewAsMbox = _interopRequireDefault(require("./viewAsMbox"));
|
|
11
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
4
12
|
/** some builtin simple views **/
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
13
|
+
|
|
14
|
+
function propertyViews(dom) {
|
|
15
|
+
// view that applies to items that are objects of certain properties.
|
|
16
|
+
const views = {
|
|
17
|
+
properties: [],
|
|
18
|
+
defaults: [],
|
|
19
|
+
classes: []
|
|
20
|
+
}; // views
|
|
21
|
+
|
|
22
|
+
const asImage = (0, _viewAsImage.default)(dom);
|
|
23
|
+
const asMbox = (0, _viewAsMbox.default)(dom);
|
|
24
|
+
viewsAddPropertyView(views, _solidUi.ns.foaf('depiction').uri, asImage, true);
|
|
25
|
+
viewsAddPropertyView(views, _solidUi.ns.foaf('img').uri, asImage, true);
|
|
26
|
+
viewsAddPropertyView(views, _solidUi.ns.foaf('thumbnail').uri, asImage, true);
|
|
27
|
+
viewsAddPropertyView(views, _solidUi.ns.foaf('logo').uri, asImage, true);
|
|
28
|
+
viewsAddPropertyView(views, _solidUi.ns.schema('image').uri, asImage, true);
|
|
29
|
+
viewsAddPropertyView(views, _solidUi.ns.foaf('mbox').uri, asMbox, true);
|
|
30
|
+
return views;
|
|
21
31
|
}
|
|
32
|
+
|
|
22
33
|
/** add a property view function **/
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
34
|
+
function viewsAddPropertyView(views, property, pviewfunc, isDefault) {
|
|
35
|
+
if (!views.properties[property]) {
|
|
36
|
+
views.properties[property] = [];
|
|
37
|
+
}
|
|
38
|
+
views.properties[property].push(pviewfunc);
|
|
39
|
+
if (isDefault) {
|
|
40
|
+
// will override an existing default!
|
|
41
|
+
views.defaults[property] = pviewfunc;
|
|
42
|
+
}
|
|
32
43
|
} // viewsAddPropertyView
|
|
33
44
|
//# sourceMappingURL=propertyViews.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"propertyViews.js","
|
|
1
|
+
{"version":3,"file":"propertyViews.js","names":["_solidUi","require","_viewAsImage","_interopRequireDefault","_viewAsMbox","e","__esModule","default","propertyViews","dom","views","properties","defaults","classes","asImage","viewAsImage","asMbox","viewAsMbox","viewsAddPropertyView","ns","foaf","uri","schema","property","pviewfunc","isDefault","push"],"sources":["../../src/outline/propertyViews.ts"],"sourcesContent":["import { ns } from 'solid-ui'\nimport viewAsImage from './viewAsImage'\nimport viewAsMbox from './viewAsMbox'\n\n/** some builtin simple views **/\n\nexport function propertyViews (dom) {\n // view that applies to items that are objects of certain properties.\n const views = {\n properties: [],\n defaults: [],\n classes: []\n } // views\n\n const asImage = viewAsImage(dom)\n const asMbox = viewAsMbox(dom)\n\n viewsAddPropertyView(views, ns.foaf('depiction').uri, asImage, true)\n viewsAddPropertyView(views, ns.foaf('img').uri, asImage, true)\n viewsAddPropertyView(views, ns.foaf('thumbnail').uri, asImage, true)\n viewsAddPropertyView(views, ns.foaf('logo').uri, asImage, true)\n viewsAddPropertyView(views, ns.schema('image').uri, asImage, true)\n viewsAddPropertyView(views, ns.foaf('mbox').uri, asMbox, true)\n return views\n}\n\n/** add a property view function **/\nexport function viewsAddPropertyView (views, property, pviewfunc, isDefault) {\n if (!views.properties[property]) {\n views.properties[property] = []\n }\n views.properties[property].push(pviewfunc)\n if (isDefault) {\n // will override an existing default!\n views.defaults[property] = pviewfunc\n }\n} // viewsAddPropertyView\n"],"mappings":";;;;;;;AAAA,IAAAA,QAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,WAAA,GAAAD,sBAAA,CAAAF,OAAA;AAAqC,SAAAE,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,E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U,CAACY,QAAQ,CAAC,CAACG,IAAI,CAACF,SAAS,CAAC;EAC1C,IAAIC,SAAS,EAAE;IACb;IACAf,KAAK,CAACE,QAAQ,CAACW,QAAQ,CAAC,GAAGC,SAAS;EACtC;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,7 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var UI = _interopRequireWildcard(require("solid-ui"));
|
|
8
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
9
|
+
var _default = dom => function viewAsImage(obj) {
|
|
10
|
+
const img = UI.utils.AJARImage(obj.uri, UI.utils.label(obj), UI.utils.label(obj), dom);
|
|
11
|
+
img.setAttribute('class', 'outlineImage');
|
|
12
|
+
return img;
|
|
6
13
|
};
|
|
14
|
+
exports.default = _default;
|
|
7
15
|
//# sourceMappingURL=viewAsImage.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"viewAsImage.js","
|
|
1
|
+
{"version":3,"file":"viewAsImage.js","names":["UI","_interopRequireWildcard","require","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","_default","dom","viewAsImage","obj","img","utils","AJARImage","uri","label","setAttribute","exports"],"sources":["../../src/outline/viewAsImage.ts"],"sourcesContent":["import * as UI from 'solid-ui'\n\nexport default (dom) => function viewAsImage (obj) {\n const img = UI.utils.AJARImage(\n obj.uri,\n UI.utils.label(obj),\n UI.utils.label(obj),\n dom\n )\n img.setAttribute('class', 'outlineImage')\n return img\n}\n"],"mappings":";;;;;;AAAA,IAAAA,EAAA,GAAAC,uBAAA,CAAAC,OAAA;AAA8B,SAAAD,wBAAAE,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAJ,uBAAA,YAAAA,CAAAE,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,EAAAQ,CAAA,gBAAAP,CAAA,IAAAD,CAAA,gBAAAC,CAAA,OAAAa,cAAA,CAAAC,IAAA,CAAAf,CAAA,EAAAC,CAAA,OAAAM,CAAA,IAAAD,CAAA,GAAAU,MAAA,CAAAC,cAAA,KAAAD,MAAA,CAAAE,wBAAA,CAAAlB,CAAA,EAAAC,CAAA,OAAAM,CAAA,CAAAK,GAAA,IAAAL,CAAA,CAAAM,GAAA,IAAAP,CAAA,CAAAE,CAAA,EAAAP,CAAA,EAAAM,CAAA,IAAAC,CAAA,CAAAP,CAAA,IAAAD,CAAA,CAAAC,CAAA,WAAAO,CAAA,KAAAR,CAAA,EAAAC,CAAA;AAAA,IAAAkB,QAAA,GAEdC,GAAG,IAAK,SAASC,WAAWA,CAAEC,GAAG,EAAE;EACjD,MAAMC,GAAG,GAAG1B,EAAE,CAAC2B,KAAK,CAACC,SAAS,CAC5BH,GAAG,CAACI,GAAG,EACP7B,EAAE,CAAC2B,KAAK,CAACG,KAAK,CAACL,GAAG,CAAC,EACnBzB,EAAE,CAAC2B,KAAK,CAACG,KAAK,CAACL,GAAG,CAAC,EACnBF,GACF,CAAC;EACDG,GAAG,CAACK,YAAY,CAAC,OAAO,EAAE,cAAc,CAAC;EACzC,OAAOL,GAAG;AACZ,CAAC;AAAAM,OAAA,CAAAnB,OAAA,GAAAS,QAAA","ignoreList":[]}
|
|
@@ -1,13 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _default = dom => function viewAsMbox(obj) {
|
|
8
|
+
const anchor = dom.createElement('a');
|
|
9
|
+
// previous implementation assumed email address was Literal. fixed.
|
|
10
|
+
|
|
11
|
+
// FOAF mboxs must NOT be literals -- must be mailto: URIs.
|
|
12
|
+
|
|
13
|
+
let address = obj.termType === 'NamedNode' ? obj.uri : obj.value; // this way for now
|
|
14
|
+
// if (!address) return viewAsBoringDefault(obj)
|
|
15
|
+
const index = address.indexOf('mailto:');
|
|
16
|
+
address = index >= 0 ? address.slice(index + 7) : address;
|
|
17
|
+
anchor.setAttribute('href', 'mailto:' + address);
|
|
18
|
+
anchor.appendChild(dom.createTextNode(address));
|
|
19
|
+
return anchor;
|
|
12
20
|
};
|
|
21
|
+
exports.default = _default;
|
|
13
22
|
//# sourceMappingURL=viewAsMbox.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"viewAsMbox.js","
|
|
1
|
+
{"version":3,"file":"viewAsMbox.js","names":["dom","viewAsMbox","obj","anchor","createElement","address","termType","uri","value","index","indexOf","slice","setAttribute","appendChild","createTextNode","exports","default","_default"],"sources":["../../src/outline/viewAsMbox.ts"],"sourcesContent":["export default (dom) => function viewAsMbox (obj) {\n const anchor = dom.createElement('a')\n // previous implementation assumed email address was Literal. fixed.\n\n // FOAF mboxs must NOT be literals -- must be mailto: URIs.\n\n let address = obj.termType === 'NamedNode' ? obj.uri : obj.value // this way for now\n // if (!address) return viewAsBoringDefault(obj)\n const index = address.indexOf('mailto:')\n address = index >= 0 ? address.slice(index + 7) : address\n anchor.setAttribute('href', 'mailto:' + address)\n anchor.appendChild(dom.createTextNode(address))\n return anchor\n}\n"],"mappings":";;;;;;eAAgBA,GAAG,IAAK,SAASC,UAAUA,CAAEC,GAAG,EAAE;EAChD,MAAMC,MAAM,GAAGH,GAAG,CAACI,aAAa,CAAC,GAAG,CAAC;EACrC;;EAEA;;EAEA,IAAIC,OAAO,GAAGH,GAAG,CAACI,QAAQ,KAAK,WAAW,GAAGJ,GAAG,CAACK,GAAG,GAAGL,GAAG,CAACM,KAAK,EAAC;EACjE;EACA,MAAMC,KAAK,GAAGJ,OAAO,CAACK,OAAO,CAAC,SAAS,CAAC;EACxCL,OAAO,GAAGI,KAAK,IAAI,CAAC,GAAGJ,OAAO,CAACM,KAAK,CAACF,KAAK,GAAG,CAAC,CAAC,GAAGJ,OAAO;EACzDF,MAAM,CAACS,YAAY,CAAC,MAAM,EAAE,SAAS,GAAGP,OAAO,CAAC;EAChDF,MAAM,CAACU,WAAW,CAACb,GAAG,CAACc,cAAc,CAACT,OAAO,CAAC,CAAC;EAC/C,OAAOF,MAAM;AACf,CAAC;AAAAY,OAAA,CAAAC,OAAA,GAAAC,QAAA","ignoreList":[]}
|