@histoire/app 0.17.16 → 1.0.0-alpha.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/dist/app/style/main.pcss +1 -1
- package/dist/app/style/sandbox.css +1 -1
- package/dist/bundle-main-dev.js +1 -1
- package/dist/bundle-main.js +2 -2
- package/dist/bundled/App.vue2.js +11 -11
- package/dist/bundled/app.css +101 -0
- package/dist/bundled/components/HomeView.vue2.js +1 -1
- package/dist/bundled/components/app/AppHeader.vue2.js +3 -3
- package/dist/bundled/components/app/AppLogo.vue2.js +4 -4
- package/dist/bundled/components/app/Breadcrumb.vue.js +2 -2
- package/dist/bundled/components/app/Breadcrumb.vue2.js +8 -10
- package/dist/bundled/components/app/HomeCounter.vue2.js +2 -7
- package/dist/bundled/components/app/InitialLoading.vue2.js +1 -1
- package/dist/bundled/components/base/BaseCheckbox.vue2.js +1 -2
- package/dist/bundled/components/base/BaseEmpty.vue.js +2 -3
- package/dist/bundled/components/base/BaseIcon.vue.js +2 -2
- package/dist/bundled/components/base/BaseIcon.vue2.js +1 -2
- package/dist/bundled/components/base/BaseListItemLink.vue.js +1 -1
- package/dist/bundled/components/base/BaseOverflowMenu.vue2.js +5 -5
- package/dist/bundled/components/base/BaseOverflowTab.vue.js +1 -1
- package/dist/bundled/components/base/BaseSelect.vue2.js +2 -2
- package/dist/bundled/components/base/BaseSplitPane.vue.js +2 -2
- package/dist/bundled/components/base/BaseSplitPane.vue2.js +3 -6
- package/dist/bundled/components/base/BaseTab.vue.js +1 -1
- package/dist/bundled/components/base/BaseTag.vue.js +1 -1
- package/dist/bundled/components/command/CommandPrompts.vue2.js +3 -7
- package/dist/bundled/components/command/CommandPromptsModal.vue2.js +1 -1
- package/dist/bundled/components/command/PromptSelect.vue2.js +3 -3
- package/dist/bundled/components/command/PromptText.vue2.js +1 -1
- package/dist/bundled/components/misc/CheckerboardPattern.vue.js +31 -34
- package/dist/bundled/components/misc/HatchedPattern.vue.js +2 -3
- package/dist/bundled/components/panel/ControlsComponentPropItem.vue2.js +1 -1
- package/dist/bundled/components/panel/ControlsComponentProps.vue2.js +2 -4
- package/dist/bundled/components/panel/ControlsComponentState.vue2.js +1 -2
- package/dist/bundled/components/panel/PaneTabs.vue2.js +12 -12
- package/dist/bundled/components/panel/StatePresets.vue2.js +3 -4
- package/dist/bundled/components/panel/StoryControls.vue2.js +5 -6
- package/dist/bundled/components/panel/StoryDocs.vue2.js +6 -6
- package/dist/bundled/components/panel/StoryEvents.vue2.js +2 -2
- package/dist/bundled/components/panel/StorySidePanel.vue2.js +10 -12
- package/dist/bundled/components/panel/StorySourceCode.vue.js +2 -2
- package/dist/bundled/components/panel/StorySourceCode.vue2.js +15 -20
- package/dist/bundled/components/search/SearchItem.vue.js +2 -2
- package/dist/bundled/components/search/SearchItem.vue2.js +4 -6
- package/dist/bundled/components/search/SearchLoading.vue2.js +2 -2
- package/dist/bundled/components/search/SearchModal.vue2.js +1 -1
- package/dist/bundled/components/search/SearchPane.vue2.js +42 -60
- package/dist/bundled/components/search/search-docs-data.js +1 -1
- package/dist/bundled/components/search/search-title-data.js +1 -1
- package/dist/bundled/components/story/GenericMountStory.vue2.js +1 -1
- package/dist/bundled/components/story/StoryResponsivePreview.vue.js +2 -2
- package/dist/bundled/components/story/StoryResponsivePreview.vue2.js +9 -12
- package/dist/bundled/components/story/StoryVariantGrid.vue2.js +8 -11
- package/dist/bundled/components/story/StoryVariantGridItem.vue.js +2 -2
- package/dist/bundled/components/story/StoryVariantGridItem.vue2.js +16 -19
- package/dist/bundled/components/story/StoryVariantListItem.vue.js +2 -2
- package/dist/bundled/components/story/StoryVariantListItem.vue2.js +4 -5
- package/dist/bundled/components/story/StoryVariantSingle.vue.js +2 -2
- package/dist/bundled/components/story/StoryVariantSingle.vue2.js +5 -6
- package/dist/bundled/components/story/StoryVariantSinglePreviewNative.vue2.js +3 -3
- package/dist/bundled/components/story/StoryVariantSinglePreviewRemote.vue2.js +4 -4
- package/dist/bundled/components/story/StoryVariantSingleView.vue2.js +4 -4
- package/dist/bundled/components/story/StoryView.vue2.js +5 -5
- package/dist/bundled/components/story/StoryViewer.vue.js +2 -2
- package/dist/bundled/components/story/StoryViewer.vue2.js +3 -4
- package/dist/bundled/components/toolbar/ToolbarBackground.vue.js +1 -1
- package/dist/bundled/components/toolbar/ToolbarBackground.vue2.js +3 -4
- package/dist/bundled/components/toolbar/ToolbarResponsiveSize.vue2.js +16 -17
- package/dist/bundled/components/tree/StoryGroup.vue2.js +9 -11
- package/dist/bundled/components/tree/StoryList.vue2.js +3 -3
- package/dist/bundled/components/tree/StoryListFolder.vue.js +2 -2
- package/dist/bundled/components/tree/StoryListFolder.vue2.js +13 -15
- package/dist/bundled/components/tree/StoryListItem.vue.js +2 -2
- package/dist/bundled/components/tree/StoryListItem.vue2.js +5 -6
- package/dist/bundled/index.js +4 -4
- package/dist/bundled/plugin.js +1 -2
- package/dist/bundled/sandbox.js +15 -20
- package/dist/bundled/stores/folder.js +1 -1
- package/dist/bundled/stores/preview-settings.js +1 -1
- package/dist/bundled/util/commands.js +1 -1
- package/dist/bundled/util/dark.js +1 -1
- package/dist/bundled/util/events.js +2 -4
- package/dist/bundled/util/scroll.js +1 -1
- package/dist/bundled/util/state.js +2 -2
- package/dist/style.css +281 -293
- package/package.json +24 -25
- package/scripts/copy.mjs +1 -1
- package/scripts/watchAndCopy.mjs +4 -4
- package/src/app/App.vue +15 -15
- package/src/app/api.ts +3 -3
- package/src/app/components/HomeView.vue +4 -3
- package/src/app/components/app/AppHeader.vue +2 -2
- package/src/app/components/app/AppLogo.vue +4 -4
- package/src/app/components/app/Breadcrumb.vue +5 -5
- package/src/app/components/app/HomeCounter.vue +1 -10
- package/src/app/components/app/MobileOverlay.vue +1 -1
- package/src/app/components/base/BaseCheckbox.vue +2 -3
- package/src/app/components/base/BaseIcon.vue +2 -2
- package/src/app/components/base/BaseKeyboardShortcut.vue +1 -1
- package/src/app/components/base/BaseListItem.vue +2 -2
- package/src/app/components/base/BaseListItemLink.vue +3 -3
- package/src/app/components/base/BaseOverflowMenu.vue +5 -5
- package/src/app/components/base/BaseSelect.vue +6 -5
- package/src/app/components/base/BaseSplitPane.vue +19 -15
- package/src/app/components/command/CommandPrompts.vue +8 -10
- package/src/app/components/command/CommandPromptsModal.vue +2 -1
- package/src/app/components/command/PromptSelect.vue +7 -5
- package/src/app/components/command/PromptText.vue +4 -3
- package/src/app/components/panel/ControlsComponentPropItem.vue +4 -4
- package/src/app/components/panel/ControlsComponentState.vue +3 -3
- package/src/app/components/panel/ControlsComponentStateItem.vue +2 -2
- package/src/app/components/panel/PaneTabs.vue +3 -3
- package/src/app/components/panel/StatePresets.vue +16 -13
- package/src/app/components/panel/StoryControls.vue +5 -5
- package/src/app/components/panel/StoryDocs.vue +28 -24
- package/src/app/components/panel/StoryEvent.vue +2 -2
- package/src/app/components/panel/StoryEvents.vue +3 -3
- package/src/app/components/panel/StorySidePanel.vue +2 -2
- package/src/app/components/panel/StorySourceCode.vue +12 -8
- package/src/app/components/search/SearchItem.vue +5 -4
- package/src/app/components/search/SearchItemContent.vue +4 -4
- package/src/app/components/search/SearchModal.vue +2 -1
- package/src/app/components/search/SearchPane.vue +64 -76
- package/src/app/components/search/search-docs-data.ts +3 -3
- package/src/app/components/search/search-title-data.ts +3 -3
- package/src/app/components/search/types.ts +1 -1
- package/src/app/components/story/GenericMountStory.vue +2 -2
- package/src/app/components/story/GenericRenderStory.vue +4 -3
- package/src/app/components/story/StoryResponsivePreview.vue +17 -16
- package/src/app/components/story/StoryVariantGrid.vue +10 -9
- package/src/app/components/story/StoryVariantGridItem.vue +14 -14
- package/src/app/components/story/StoryVariantListItem.vue +4 -3
- package/src/app/components/story/StoryVariantSingle.vue +3 -3
- package/src/app/components/story/StoryVariantSinglePreviewNative.vue +5 -5
- package/src/app/components/story/StoryVariantSinglePreviewRemote.vue +14 -14
- package/src/app/components/story/StoryVariantSingleView.vue +4 -4
- package/src/app/components/story/StoryView.vue +8 -8
- package/src/app/components/story/StoryViewer.vue +2 -3
- package/src/app/components/toolbar/ToolbarNewTab.vue +1 -1
- package/src/app/components/toolbar/ToolbarTitle.vue +1 -1
- package/src/app/components/tree/StoryGroup.vue +3 -3
- package/src/app/components/tree/StoryList.vue +3 -3
- package/src/app/components/tree/StoryListFolder.vue +3 -3
- package/src/app/components/tree/StoryListItem.vue +2 -2
- package/src/app/index.ts +6 -7
- package/src/app/plugin.ts +4 -3
- package/src/app/router.ts +2 -2
- package/src/app/sandbox.ts +24 -27
- package/src/app/stores/command.ts +4 -3
- package/src/app/stores/events.ts +4 -4
- package/src/app/stores/folder.ts +10 -8
- package/src/app/stores/preview-settings.ts +2 -2
- package/src/app/stores/story.ts +4 -4
- package/src/app/style/main.pcss +1 -1
- package/src/app/style/sandbox.css +1 -1
- package/src/app/types.ts +3 -3
- package/src/app/util/commands.ts +5 -4
- package/src/app/util/dark.ts +3 -3
- package/src/app/util/docs.ts +6 -4
- package/src/app/util/events.ts +4 -3
- package/src/app/util/keyboard.ts +9 -8
- package/src/app/util/mapping.ts +9 -6
- package/src/app/util/open-in-editor.ts +1 -1
- package/src/app/util/preview-settings.ts +3 -3
- package/src/app/util/sandbox.ts +2 -3
- package/src/app/util/scroll.ts +5 -4
- package/src/app/util/select.ts +5 -4
- package/src/app/util/state.ts +6 -5
- package/src/app/util/tooltip.ts +2 -2
- package/src/app/util/variant.ts +4 -3
- package/src/bundle-main-dev.js +1 -1
- package/src/bundle-main.js +2 -2
- package/src/shim.d.ts +0 -6
- package/src/virtual.d.ts +1 -0
- package/tailwind.config.cjs +20 -21
- package/tsconfig.json +26 -26
- package/vite.config.ts +8 -7
- package/dist/bundled/components/app/Breadcrumb.vue3.js +0 -1
- package/dist/bundled/components/base/BaseEmpty.vue2.js +0 -1
- package/dist/bundled/components/base/BaseIcon.vue3.js +0 -1
- package/dist/bundled/components/base/BaseSplitPane.vue3.js +0 -1
- package/dist/bundled/components/misc/HatchedPattern.vue2.js +0 -1
- package/dist/bundled/components/panel/StorySourceCode.vue3.js +0 -1
- package/dist/bundled/components/search/SearchItem.vue3.js +0 -1
- package/dist/bundled/components/story/StoryResponsivePreview.vue3.js +0 -1
- package/dist/bundled/components/story/StoryVariantGridItem.vue3.js +0 -1
- package/dist/bundled/components/story/StoryVariantListItem.vue3.js +0 -1
- package/dist/bundled/components/story/StoryVariantSingle.vue3.js +0 -1
- package/dist/bundled/components/story/StoryViewer.vue3.js +0 -1
- package/dist/bundled/components/toolbar/ToolbarBackground.vue3.js +0 -1
- package/dist/bundled/components/tree/StoryListFolder.vue3.js +0 -1
- package/dist/bundled/components/tree/StoryListItem.vue3.js +0 -1
- package/dist/bundled/node_modules/.pnpm/flexsearch@0.7.21/node_modules/flexsearch/dist/module/common.js +0 -52
- package/dist/bundled/node_modules/.pnpm/flexsearch@0.7.21/node_modules/flexsearch/dist/module/lang/en.js +0 -10
- package/dist/bundled/node_modules/.pnpm/flexsearch@0.7.21/node_modules/flexsearch/dist/module/lang/latin/advanced.js +0 -16
- package/dist/bundled/node_modules/.pnpm/flexsearch@0.7.21/node_modules/flexsearch/dist/module/lang/latin/balance.js +0 -31
- package/dist/bundled/node_modules/.pnpm/flexsearch@0.7.21/node_modules/flexsearch/dist/module/lang/latin/simple.js +0 -15
- package/dist/bundled/node_modules/.pnpm/flexsearch@0.7.21/node_modules/flexsearch/dist/module/lang.js +0 -60
- package/dist/bundled/node_modules/.pnpm/flexsearch@0.7.21/node_modules/flexsearch/dist/module/type.js +0 -11
- package/dist/bundled/style.css +0 -101
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
function parse_option(a, b) {
|
|
2
|
-
return "undefined" == typeof a ? b : a;
|
|
3
|
-
}
|
|
4
|
-
function create_object_array(a) {
|
|
5
|
-
const b = Array(a);
|
|
6
|
-
for (let c = 0; c < a; c++)
|
|
7
|
-
b[c] = create_object();
|
|
8
|
-
return b;
|
|
9
|
-
}
|
|
10
|
-
function create_arrays(a) {
|
|
11
|
-
const b = Array(a);
|
|
12
|
-
for (let c = 0; c < a; c++)
|
|
13
|
-
b[c] = [];
|
|
14
|
-
return b;
|
|
15
|
-
}
|
|
16
|
-
function get_keys(a) {
|
|
17
|
-
return Object.keys(a);
|
|
18
|
-
}
|
|
19
|
-
function create_object() {
|
|
20
|
-
return /* @__PURE__ */ Object.create(null);
|
|
21
|
-
}
|
|
22
|
-
function concat(a) {
|
|
23
|
-
return [].concat.apply([], a);
|
|
24
|
-
}
|
|
25
|
-
function sort_by_length_down(c, a) {
|
|
26
|
-
return a.length - c.length;
|
|
27
|
-
}
|
|
28
|
-
function is_array(a) {
|
|
29
|
-
return a.constructor === Array;
|
|
30
|
-
}
|
|
31
|
-
function is_string(a) {
|
|
32
|
-
return "string" == typeof a;
|
|
33
|
-
}
|
|
34
|
-
function is_object(a) {
|
|
35
|
-
return "object" == typeof a;
|
|
36
|
-
}
|
|
37
|
-
function is_function(a) {
|
|
38
|
-
return "function" == typeof a;
|
|
39
|
-
}
|
|
40
|
-
export {
|
|
41
|
-
concat,
|
|
42
|
-
create_arrays,
|
|
43
|
-
create_object,
|
|
44
|
-
create_object_array,
|
|
45
|
-
get_keys,
|
|
46
|
-
is_array,
|
|
47
|
-
is_function,
|
|
48
|
-
is_object,
|
|
49
|
-
is_string,
|
|
50
|
-
parse_option,
|
|
51
|
-
sort_by_length_down
|
|
52
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
const filter = ["a", "about", "above", "after", "again", "against", "all", "also", "am", "an", "and", "any", "are", "aren't", "as", "at", "be", "because", "been", "before", "being", "below", "both", "but", "by", "can", "cannot", "can't", "come", "could", "couldn't", "did", "didn't", "do", "does", "doesn't", "doing", "dont", "down", "during", "each", "even", "few", "first", "for", "from", "further", "get", "go", "had", "hadn't", "has", "hasn't", "have", "haven't", "having", "he", "hed", "her", "here", "here's", "hers", "herself", "hes", "him", "himself", "his", "how", "how's", "i", "id", "if", "ill", "im", "in", "into", "is", "isn't", "it", "it's", "itself", "i've", "just", "know", "let's", "like", "make", "me", "more", "most", "mustn't", "my", "myself", "new", "no", "nor", "not", "now", "of", "off", "on", "once", "only", "or", "other", "ought", "our", "our's", "ourselves", "out", "over", "own", "same", "say", "see", "shan't", "she", "she'd", "shell", "shes", "should", "shouldn't", "so", "some", "such", "than", "that", "that's", "the", "their", "theirs", "them", "themselves", "then", "there", "there's", "these", "they", "they'd", "they'll", "they're", "they've", "this", "those", "through", "time", "to", "too", "until", "up", "us", "very", "want", "was", "wasn't", "way", "we", "wed", "well", "were", "weren't", "we've", "what", "what's", "when", "when's", "where", "where's", "which", "while", "who", "whom", "who's", "why", "why's", "will", "with", "won't", "would", "wouldn't", "you", "you'd", "you'll", "your", "you're", "your's", "yourself", "yourselves", "you've"];
|
|
2
|
-
const stemmer = { ational: "ate", iveness: "ive", fulness: "ful", ousness: "ous", ization: "ize", tional: "tion", biliti: "ble", icate: "ic", ative: "", alize: "al", iciti: "ic", entli: "ent", ousli: "ous", alism: "al", ation: "ate", aliti: "al", iviti: "ive", ement: "", enci: "ence", anci: "ance", izer: "ize", alli: "al", ator: "ate", logi: "log", ical: "ic", ance: "", ence: "", ness: "", able: "", ible: "", ment: "", eli: "e", bli: "ble", ful: "", ant: "", ent: "", ism: "", ate: "", iti: "", ous: "", ive: "", ize: "", al: "", ou: "", er: "", ic: "" };
|
|
3
|
-
const matcher = {};
|
|
4
|
-
const language = { filter, stemmer, matcher };
|
|
5
|
-
export {
|
|
6
|
-
language as default,
|
|
7
|
-
filter,
|
|
8
|
-
matcher,
|
|
9
|
-
stemmer
|
|
10
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import "../../type.js";
|
|
2
|
-
import { regex, replace, collapse } from "../../lang.js";
|
|
3
|
-
import { encode as encode$1 } from "./balance.js";
|
|
4
|
-
const rtl = false;
|
|
5
|
-
const tokenize = "";
|
|
6
|
-
const charset = { encode, rtl: false, tokenize: "" };
|
|
7
|
-
const regex_ae = regex("ae"), regex_oe = regex("oe"), regex_sh = regex("sh"), regex_th = regex("th"), regex_ph = regex("ph"), regex_pf = regex("pf"), pairs = [regex_ae, "a", regex_oe, "o", regex_sh, "s", regex_th, "t", regex_ph, "f", regex_pf, "f", regex("(?![aeo])h(?![aeo])"), "", regex("(?!^[aeo])h(?!^[aeo])"), ""];
|
|
8
|
-
function encode(a, b) {
|
|
9
|
-
return a && (a = encode$1.call(this, a).join(" "), 2 < a.length && (a = replace(a, pairs)), !b && (1 < a.length && (a = collapse(a)), a && (a = a.split(" ")))), a;
|
|
10
|
-
}
|
|
11
|
-
export {
|
|
12
|
-
charset as default,
|
|
13
|
-
encode,
|
|
14
|
-
rtl,
|
|
15
|
-
tokenize
|
|
16
|
-
};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import "../../type.js";
|
|
2
|
-
import { encode as encode$1 } from "./simple.js";
|
|
3
|
-
const rtl = false;
|
|
4
|
-
const tokenize = "strict";
|
|
5
|
-
const balance = { encode, rtl: false, tokenize: "strict" };
|
|
6
|
-
const regex_strip = /[^a-z0-9]+/, soundex = { b: "p", v: "f", w: "f", z: "s", x: "s", ß: "s", d: "t", n: "m", c: "k", g: "k", j: "k", q: "k", i: "e", y: "e", u: "o" };
|
|
7
|
-
function encode(a) {
|
|
8
|
-
a = encode$1.call(this, a).join(" ");
|
|
9
|
-
const b = [];
|
|
10
|
-
if (a) {
|
|
11
|
-
const c = a.split(regex_strip), d = c.length;
|
|
12
|
-
for (let e, f = 0, g = 0; f < d; f++)
|
|
13
|
-
if ((a = c[f]) && (!this.filter || !this.filter[a])) {
|
|
14
|
-
e = a[0];
|
|
15
|
-
let c2 = soundex[e] || e, d2 = c2;
|
|
16
|
-
for (let b2 = 1; b2 < a.length; b2++) {
|
|
17
|
-
e = a[b2];
|
|
18
|
-
const f2 = soundex[e] || e;
|
|
19
|
-
f2 && f2 !== d2 && (c2 += f2, d2 = f2);
|
|
20
|
-
}
|
|
21
|
-
b[g++] = c2;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
return b;
|
|
25
|
-
}
|
|
26
|
-
export {
|
|
27
|
-
balance as default,
|
|
28
|
-
encode,
|
|
29
|
-
rtl,
|
|
30
|
-
tokenize
|
|
31
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import "../../type.js";
|
|
2
|
-
import { regex, normalize, regex_whitespace, pipeline } from "../../lang.js";
|
|
3
|
-
const rtl = false;
|
|
4
|
-
const tokenize = "";
|
|
5
|
-
const simple = { encode, rtl: false, tokenize: "" };
|
|
6
|
-
const regex_a = regex("[àáâãäå]"), regex_e = regex("[èéêë]"), regex_i = regex("[ìíîï]"), regex_o = regex("[òóôõöő]"), regex_u = regex("[ùúûüű]"), regex_y = regex("[ýŷÿ]"), regex_n = regex("ñ"), regex_c = regex("[çc]"), regex_s = regex("ß"), regex_and = regex(" & "), pairs = [regex_a, "a", regex_e, "e", regex_i, "i", regex_o, "o", regex_u, "u", regex_y, "y", regex_n, "n", regex_c, "k", regex_s, "s", regex_and, " and "];
|
|
7
|
-
function encode(a) {
|
|
8
|
-
return a = "" + a, pipeline.call(this, normalize(a).toLowerCase(), !a.normalize && pairs, regex_whitespace, false);
|
|
9
|
-
}
|
|
10
|
-
export {
|
|
11
|
-
simple as default,
|
|
12
|
-
encode,
|
|
13
|
-
rtl,
|
|
14
|
-
tokenize
|
|
15
|
-
};
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import "./type.js";
|
|
2
|
-
import { create_object, get_keys } from "./common.js";
|
|
3
|
-
function pipeline(a, b, c, d) {
|
|
4
|
-
if (a && (b && (a = replace(a, b)), this.matcher && (a = replace(a, this.matcher)), this.stemmer && 1 < a.length && (a = replace(a, this.stemmer)), d && 1 < a.length && (a = collapse(a)), c || "" === c)) {
|
|
5
|
-
const b2 = a.split(c);
|
|
6
|
-
return this.filter ? filter(b2, this.filter) : b2;
|
|
7
|
-
}
|
|
8
|
-
return a;
|
|
9
|
-
}
|
|
10
|
-
const regex_whitespace = /[\p{Z}\p{S}\p{P}\p{C}]+/u;
|
|
11
|
-
const regex_normalize = /[\u0300-\u036f]/g;
|
|
12
|
-
function normalize(a) {
|
|
13
|
-
return a.normalize && (a = a.normalize("NFD").replace(regex_normalize, "")), a;
|
|
14
|
-
}
|
|
15
|
-
function init_filter(a) {
|
|
16
|
-
const b = create_object();
|
|
17
|
-
for (let c = 0, d = a.length; c < d; c++)
|
|
18
|
-
b[a[c]] = 1;
|
|
19
|
-
return b;
|
|
20
|
-
}
|
|
21
|
-
function init_stemmer_or_matcher(a, b) {
|
|
22
|
-
const c = get_keys(a), d = c.length, e = [];
|
|
23
|
-
let f = "", g = 0;
|
|
24
|
-
for (let h, j, k = 0; k < d; k++)
|
|
25
|
-
h = c[k], j = a[h], j ? (e[g++] = regex(b ? "(?!\\b)" + h + "(\\b|_)" : h), e[g++] = j) : f += (f ? "|" : "") + h;
|
|
26
|
-
return f && (e[g++] = regex(b ? "(?!\\b)(" + f + ")(\\b|_)" : "(" + f + ")"), e[g] = ""), e;
|
|
27
|
-
}
|
|
28
|
-
function replace(a, b) {
|
|
29
|
-
for (let c = 0, d = b.length; c < d && (a = a.replace(b[c], b[c + 1]), !!a); c += 2)
|
|
30
|
-
;
|
|
31
|
-
return a;
|
|
32
|
-
}
|
|
33
|
-
function regex(a) {
|
|
34
|
-
return new RegExp(a, "g");
|
|
35
|
-
}
|
|
36
|
-
function collapse(a) {
|
|
37
|
-
let b = "", c = "";
|
|
38
|
-
for (let d, e = 0, f = a.length; e < f; e++)
|
|
39
|
-
(d = a[e]) !== c && (b += c = d);
|
|
40
|
-
return b;
|
|
41
|
-
}
|
|
42
|
-
function filter(a, b) {
|
|
43
|
-
const c = a.length, d = [];
|
|
44
|
-
for (let e = 0, f = 0; e < c; e++) {
|
|
45
|
-
const c2 = a[e];
|
|
46
|
-
c2 && !b[c2] && (d[f++] = c2);
|
|
47
|
-
}
|
|
48
|
-
return d;
|
|
49
|
-
}
|
|
50
|
-
export {
|
|
51
|
-
collapse,
|
|
52
|
-
filter,
|
|
53
|
-
init_filter,
|
|
54
|
-
init_stemmer_or_matcher,
|
|
55
|
-
normalize,
|
|
56
|
-
pipeline,
|
|
57
|
-
regex,
|
|
58
|
-
regex_whitespace,
|
|
59
|
-
replace
|
|
60
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
function IndexInterface() {
|
|
2
|
-
this.cache = null, this.matcher = null, this.stemmer = null, this.filter = null;
|
|
3
|
-
}
|
|
4
|
-
IndexInterface.prototype.add, IndexInterface.prototype.append, IndexInterface.prototype.search, IndexInterface.prototype.update, IndexInterface.prototype.remove;
|
|
5
|
-
function DocumentInterface() {
|
|
6
|
-
this.field = null, this.index = null;
|
|
7
|
-
}
|
|
8
|
-
export {
|
|
9
|
-
DocumentInterface,
|
|
10
|
-
IndexInterface
|
|
11
|
-
};
|
package/dist/bundled/style.css
DELETED
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
.htw-base-empty[data-v-c5ecfead]:not(.no-animation) {
|
|
3
|
-
animation: htw-base-empty-c5ecfead .15s .2s both;
|
|
4
|
-
}
|
|
5
|
-
@keyframes htw-base-empty-c5ecfead {
|
|
6
|
-
0% {
|
|
7
|
-
opacity: 0;
|
|
8
|
-
}
|
|
9
|
-
100% {
|
|
10
|
-
opacity: 1;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.bind-icon-color[data-v-36846ccf] {
|
|
15
|
-
color: var(--5792748b);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.landscape > div > .dragger[data-v-ed925107] {
|
|
19
|
-
width: .625rem;
|
|
20
|
-
}
|
|
21
|
-
.portrait > div > .dragger[data-v-ed925107] {
|
|
22
|
-
height: .625rem;
|
|
23
|
-
}
|
|
24
|
-
.landscape > div > .dragger.dragger-offset-before[data-v-ed925107] {
|
|
25
|
-
right: 0;
|
|
26
|
-
}
|
|
27
|
-
.portrait > div > .dragger.dragger-offset-before[data-v-ed925107] {
|
|
28
|
-
bottom: 0;
|
|
29
|
-
}
|
|
30
|
-
.landscape > div > .dragger.dragger-offset-center[data-v-ed925107] {
|
|
31
|
-
right: -.3125rem;
|
|
32
|
-
}
|
|
33
|
-
.portrait > div > .dragger.dragger-offset-center[data-v-ed925107] {
|
|
34
|
-
bottom: -.3125rem;
|
|
35
|
-
}
|
|
36
|
-
.landscape > div > .dragger.dragger-offset-after[data-v-ed925107] {
|
|
37
|
-
right: -.625rem;
|
|
38
|
-
}
|
|
39
|
-
.portrait > div > .dragger.dragger-offset-after[data-v-ed925107] {
|
|
40
|
-
bottom: -.625rem;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.bind-icon-color[data-v-6046525f] {
|
|
44
|
-
color: var(--663732b6);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.bind-tree-padding[data-v-2d2e4786] {
|
|
48
|
-
padding-left: var(--6851b0a7);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.bind-icon-color[data-v-ddfc5b4f] {
|
|
52
|
-
color: var(--4d25d048);
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.bind-tree-margin[data-v-19810958] {
|
|
56
|
-
margin-left: var(--444efc12);
|
|
57
|
-
}
|
|
58
|
-
.bind-icon-color[data-v-19810958] {
|
|
59
|
-
color: var(--ae892164);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
.bind-icon-color[data-v-ab890d9c] {
|
|
63
|
-
color: var(--89126aaa);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
.__histoire-code-placeholder[data-v-1bdf9905] {
|
|
67
|
-
color: inherit;
|
|
68
|
-
font-size: inherit;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.bind-icon-color[data-v-cf76cd68] {
|
|
72
|
-
color: var(--29d8c174);
|
|
73
|
-
}
|
|
74
|
-
.bind-preview-bg[data-v-cf76cd68] {
|
|
75
|
-
background-color: var(--0eff7465);
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
.bind-preview-bg[data-v-c48fb2b2] {
|
|
79
|
-
background-color: var(--627bec82);
|
|
80
|
-
color: var(--35068428);
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
.bind-icon-color[data-v-6c8e9661] {
|
|
84
|
-
color: var(--a8c1277e);
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.bind-preview-bg[data-v-a09bd522] {
|
|
88
|
-
background-color: var(--09fda46e);
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
.__histoire-hatched-pattern[data-v-91561117] {
|
|
92
|
-
background: repeating-linear-gradient(135deg,
|
|
93
|
-
transparent 0px,
|
|
94
|
-
transparent 32px,
|
|
95
|
-
currentColor 32px,
|
|
96
|
-
currentColor 64px);
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
img.colorize-black[data-v-74182813] {
|
|
100
|
-
filter: grayscale(100) brightness(0);
|
|
101
|
-
}
|