typedoc-theme-oxide 0.1.19 → 0.1.20
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/assets/index.js +52 -77
- package/dist/assets/index.js.map +1 -1
- package/dist/assets/rustdoc/main.js +1 -1
- package/dist/plugin/context/base.js +2 -10
- package/dist/plugin/context/base.js.map +1 -1
- package/dist/plugin/context/mixins/comment.js +20 -23
- package/dist/plugin/context/mixins/comment.js.map +1 -1
- package/dist/plugin/context/mixins/container.js +44 -32
- package/dist/plugin/context/mixins/container.js.map +1 -1
- package/dist/plugin/context/mixins/layout.js +32 -25
- package/dist/plugin/context/mixins/layout.js.map +1 -1
- package/dist/plugin/context/mixins/members.js +89 -76
- package/dist/plugin/context/mixins/members.js.map +1 -1
- package/dist/plugin/context/mixins/navigation.js +27 -32
- package/dist/plugin/context/mixins/navigation.js.map +1 -1
- package/dist/plugin/context/mixins/project.js +17 -20
- package/dist/plugin/context/mixins/project.js.map +1 -1
- package/dist/plugin/index.js +3 -4
- package/dist/plugin/index.js.map +1 -1
- package/dist/plugin/utils.js +2 -3
- package/dist/plugin/utils.js.map +1 -1
- package/package.json +1 -1
package/dist/assets/index.js
CHANGED
|
@@ -53,23 +53,6 @@
|
|
|
53
53
|
}
|
|
54
54
|
return useValue ? value : void 0;
|
|
55
55
|
}
|
|
56
|
-
function __setFunctionName(f, name, prefix) {
|
|
57
|
-
if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";
|
|
58
|
-
return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
|
|
59
|
-
}
|
|
60
|
-
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
61
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
62
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
63
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
67
|
-
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
68
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
69
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
70
|
-
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
56
|
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
74
57
|
var e = new Error(message);
|
|
75
58
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
@@ -2655,7 +2638,7 @@
|
|
|
2655
2638
|
async function loadSearchIndex() {
|
|
2656
2639
|
const index = createSearchDocument();
|
|
2657
2640
|
const base = `${document.documentElement.dataset.base}assets/oxide`;
|
|
2658
|
-
const parts = await loadDeflateData(`${base}/search-index.
|
|
2641
|
+
const parts = await loadDeflateData(`${base}/search-index.deflate`);
|
|
2659
2642
|
for (const [key, data] of Object.entries(parts)) {
|
|
2660
2643
|
index.import(key, data);
|
|
2661
2644
|
}
|
|
@@ -2679,15 +2662,14 @@
|
|
|
2679
2662
|
let index;
|
|
2680
2663
|
let controller;
|
|
2681
2664
|
input.addEventListener('input', throttle(async (event) => {
|
|
2682
|
-
var _a;
|
|
2683
2665
|
if (!index) {
|
|
2684
2666
|
index = loadSearchIndex();
|
|
2685
2667
|
}
|
|
2686
|
-
const query =
|
|
2668
|
+
const query = event.target.value?.trim();
|
|
2687
2669
|
const [hide, show] = query ? [main, alt] : [alt, main];
|
|
2688
2670
|
hide.classList.add('hidden');
|
|
2689
2671
|
show.classList.remove('hidden');
|
|
2690
|
-
controller
|
|
2672
|
+
controller?.abort();
|
|
2691
2673
|
controller = new AbortController();
|
|
2692
2674
|
const signal = controller.signal;
|
|
2693
2675
|
await performSearch(query, signal, await index);
|
|
@@ -2709,7 +2691,6 @@
|
|
|
2709
2691
|
results.items = items.map((x) => x.doc).filter((x) => x !== null && x !== undefined);
|
|
2710
2692
|
}
|
|
2711
2693
|
(() => {
|
|
2712
|
-
var _OxideSearchResults_loading_accessor_storage, _OxideSearchResults_project_accessor_storage, _OxideSearchResults_query_accessor_storage, _OxideSearchResults_items_accessor_storage;
|
|
2713
2694
|
let _classDecorators = [t('oxide-search-results')];
|
|
2714
2695
|
let _classDescriptor;
|
|
2715
2696
|
let _classExtraInitializers = [];
|
|
@@ -2727,15 +2708,50 @@
|
|
|
2727
2708
|
let _items_decorators;
|
|
2728
2709
|
let _items_initializers = [];
|
|
2729
2710
|
let _items_extraInitializers = [];
|
|
2730
|
-
var OxideSearchResults =
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
|
|
2711
|
+
var OxideSearchResults = class extends _classSuper {
|
|
2712
|
+
static { _classThis = this; }
|
|
2713
|
+
static {
|
|
2714
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
2715
|
+
_loading_decorators = [n({ attribute: false })];
|
|
2716
|
+
_project_decorators = [n({ attribute: false })];
|
|
2717
|
+
_query_decorators = [n({ attribute: false })];
|
|
2718
|
+
_items_decorators = [n({ attribute: false })];
|
|
2719
|
+
__esDecorate$3(this, null, _loading_decorators, { kind: "accessor", name: "loading", static: false, private: false, access: { has: obj => "loading" in obj, get: obj => obj.loading, set: (obj, value) => { obj.loading = value; } }, metadata: _metadata }, _loading_initializers, _loading_extraInitializers);
|
|
2720
|
+
__esDecorate$3(this, null, _project_decorators, { kind: "accessor", name: "project", static: false, private: false, access: { has: obj => "project" in obj, get: obj => obj.project, set: (obj, value) => { obj.project = value; } }, metadata: _metadata }, _project_initializers, _project_extraInitializers);
|
|
2721
|
+
__esDecorate$3(this, null, _query_decorators, { kind: "accessor", name: "query", static: false, private: false, access: { has: obj => "query" in obj, get: obj => obj.query, set: (obj, value) => { obj.query = value; } }, metadata: _metadata }, _query_initializers, _query_extraInitializers);
|
|
2722
|
+
__esDecorate$3(this, null, _items_decorators, { kind: "accessor", name: "items", static: false, private: false, access: { has: obj => "items" in obj, get: obj => obj.items, set: (obj, value) => { obj.items = value; } }, metadata: _metadata }, _items_initializers, _items_extraInitializers);
|
|
2723
|
+
__esDecorate$3(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
2724
|
+
OxideSearchResults = _classThis = _classDescriptor.value;
|
|
2725
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
2726
|
+
}
|
|
2727
|
+
static base = document.documentElement.dataset.base;
|
|
2728
|
+
static classes = {
|
|
2729
|
+
[ReflectionKind.ClassMember]: 'fn',
|
|
2730
|
+
[ReflectionKind.Function]: 'fn',
|
|
2731
|
+
[ReflectionKind.Property]: 'fn',
|
|
2732
|
+
[ReflectionKind.Method]: 'fn',
|
|
2733
|
+
[ReflectionKind.CallSignature]: 'fn',
|
|
2734
|
+
[ReflectionKind.IndexSignature]: 'fn',
|
|
2735
|
+
[ReflectionKind.GetSignature]: 'fn',
|
|
2736
|
+
[ReflectionKind.SetSignature]: 'fn',
|
|
2737
|
+
[ReflectionKind.Accessor]: 'fn',
|
|
2738
|
+
[ReflectionKind.ConstructorSignature]: 'primitive',
|
|
2739
|
+
[ReflectionKind.Constructor]: 'primitive',
|
|
2740
|
+
[ReflectionKind.EnumMember]: 'macro',
|
|
2741
|
+
[ReflectionKind.Variable]: 'macro',
|
|
2742
|
+
};
|
|
2743
|
+
#loading_accessor_storage = __runInitializers$3(this, _loading_initializers, true);
|
|
2744
|
+
get loading() { return this.#loading_accessor_storage; }
|
|
2745
|
+
set loading(value) { this.#loading_accessor_storage = value; }
|
|
2746
|
+
#project_accessor_storage = (__runInitializers$3(this, _loading_extraInitializers), __runInitializers$3(this, _project_initializers, ''));
|
|
2747
|
+
get project() { return this.#project_accessor_storage; }
|
|
2748
|
+
set project(value) { this.#project_accessor_storage = value; }
|
|
2749
|
+
#query_accessor_storage = (__runInitializers$3(this, _project_extraInitializers), __runInitializers$3(this, _query_initializers, ''));
|
|
2750
|
+
get query() { return this.#query_accessor_storage; }
|
|
2751
|
+
set query(value) { this.#query_accessor_storage = value; }
|
|
2752
|
+
#items_accessor_storage = (__runInitializers$3(this, _query_extraInitializers), __runInitializers$3(this, _items_initializers, []));
|
|
2753
|
+
get items() { return this.#items_accessor_storage; }
|
|
2754
|
+
set items(value) { this.#items_accessor_storage = value; }
|
|
2739
2755
|
createRenderRoot() {
|
|
2740
2756
|
// Disable Shadow DOM.
|
|
2741
2757
|
return this;
|
|
@@ -2755,9 +2771,8 @@
|
|
|
2755
2771
|
`;
|
|
2756
2772
|
}
|
|
2757
2773
|
const items = this.items.map((item) => {
|
|
2758
|
-
|
|
2759
|
-
const
|
|
2760
|
-
const trace = o((_c = (_b = item.parent) === null || _b === void 0 ? void 0 : _b.split('.').filter((x) => x)) !== null && _c !== void 0 ? _c : [], (name) => x `<span class="parent">${name}.</span>`);
|
|
2774
|
+
const classname = OxideSearchResults.classes[item.kind] ?? 'mod';
|
|
2775
|
+
const trace = o(item.parent?.split('.').filter((x) => x) ?? [], (name) => x `<span class="parent">${name}.</span>`);
|
|
2761
2776
|
return x `
|
|
2762
2777
|
<a class="result-item" href="${OxideSearchResults.base}${item.url}">
|
|
2763
2778
|
<span class="result-name">
|
|
@@ -2793,52 +2808,12 @@
|
|
|
2793
2808
|
}
|
|
2794
2809
|
constructor() {
|
|
2795
2810
|
super(...arguments);
|
|
2796
|
-
_OxideSearchResults_loading_accessor_storage.set(this, __runInitializers$3(this, _loading_initializers, true));
|
|
2797
|
-
_OxideSearchResults_project_accessor_storage.set(this, (__runInitializers$3(this, _loading_extraInitializers), __runInitializers$3(this, _project_initializers, '')));
|
|
2798
|
-
_OxideSearchResults_query_accessor_storage.set(this, (__runInitializers$3(this, _project_extraInitializers), __runInitializers$3(this, _query_initializers, '')));
|
|
2799
|
-
_OxideSearchResults_items_accessor_storage.set(this, (__runInitializers$3(this, _query_extraInitializers), __runInitializers$3(this, _items_initializers, [])));
|
|
2800
2811
|
__runInitializers$3(this, _items_extraInitializers);
|
|
2801
2812
|
}
|
|
2813
|
+
static {
|
|
2814
|
+
__runInitializers$3(_classThis, _classExtraInitializers);
|
|
2815
|
+
}
|
|
2802
2816
|
};
|
|
2803
|
-
_OxideSearchResults_loading_accessor_storage = new WeakMap();
|
|
2804
|
-
_OxideSearchResults_project_accessor_storage = new WeakMap();
|
|
2805
|
-
_OxideSearchResults_query_accessor_storage = new WeakMap();
|
|
2806
|
-
_OxideSearchResults_items_accessor_storage = new WeakMap();
|
|
2807
|
-
__setFunctionName(_classThis, "OxideSearchResults");
|
|
2808
|
-
(() => {
|
|
2809
|
-
var _a;
|
|
2810
|
-
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create((_a = _classSuper[Symbol.metadata]) !== null && _a !== void 0 ? _a : null) : void 0;
|
|
2811
|
-
_loading_decorators = [n({ attribute: false })];
|
|
2812
|
-
_project_decorators = [n({ attribute: false })];
|
|
2813
|
-
_query_decorators = [n({ attribute: false })];
|
|
2814
|
-
_items_decorators = [n({ attribute: false })];
|
|
2815
|
-
__esDecorate$3(_classThis, null, _loading_decorators, { kind: "accessor", name: "loading", static: false, private: false, access: { has: obj => "loading" in obj, get: obj => obj.loading, set: (obj, value) => { obj.loading = value; } }, metadata: _metadata }, _loading_initializers, _loading_extraInitializers);
|
|
2816
|
-
__esDecorate$3(_classThis, null, _project_decorators, { kind: "accessor", name: "project", static: false, private: false, access: { has: obj => "project" in obj, get: obj => obj.project, set: (obj, value) => { obj.project = value; } }, metadata: _metadata }, _project_initializers, _project_extraInitializers);
|
|
2817
|
-
__esDecorate$3(_classThis, null, _query_decorators, { kind: "accessor", name: "query", static: false, private: false, access: { has: obj => "query" in obj, get: obj => obj.query, set: (obj, value) => { obj.query = value; } }, metadata: _metadata }, _query_initializers, _query_extraInitializers);
|
|
2818
|
-
__esDecorate$3(_classThis, null, _items_decorators, { kind: "accessor", name: "items", static: false, private: false, access: { has: obj => "items" in obj, get: obj => obj.items, set: (obj, value) => { obj.items = value; } }, metadata: _metadata }, _items_initializers, _items_extraInitializers);
|
|
2819
|
-
__esDecorate$3(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
2820
|
-
OxideSearchResults = _classThis = _classDescriptor.value;
|
|
2821
|
-
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
2822
|
-
})();
|
|
2823
|
-
_classThis.base = document.documentElement.dataset.base;
|
|
2824
|
-
_classThis.classes = {
|
|
2825
|
-
[ReflectionKind.ClassMember]: 'fn',
|
|
2826
|
-
[ReflectionKind.Function]: 'fn',
|
|
2827
|
-
[ReflectionKind.Property]: 'fn',
|
|
2828
|
-
[ReflectionKind.Method]: 'fn',
|
|
2829
|
-
[ReflectionKind.CallSignature]: 'fn',
|
|
2830
|
-
[ReflectionKind.IndexSignature]: 'fn',
|
|
2831
|
-
[ReflectionKind.GetSignature]: 'fn',
|
|
2832
|
-
[ReflectionKind.SetSignature]: 'fn',
|
|
2833
|
-
[ReflectionKind.Accessor]: 'fn',
|
|
2834
|
-
[ReflectionKind.ConstructorSignature]: 'primitive',
|
|
2835
|
-
[ReflectionKind.Constructor]: 'primitive',
|
|
2836
|
-
[ReflectionKind.EnumMember]: 'macro',
|
|
2837
|
-
[ReflectionKind.Variable]: 'macro',
|
|
2838
|
-
};
|
|
2839
|
-
(() => {
|
|
2840
|
-
__runInitializers$3(_classThis, _classExtraInitializers);
|
|
2841
|
-
})();
|
|
2842
2817
|
return OxideSearchResults = _classThis;
|
|
2843
2818
|
})();
|
|
2844
2819
|
|