unicode-input-toolconverter 0.2.0 → 0.2.3
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/.nyc_output/out.json +8980 -1849
- package/CHANGES.md +15 -1
- package/README.md +6 -11
- package/_locales/en-US/messages.json +153 -6
- package/_locales/hu-HU/messages.json +153 -6
- package/_locales/pt-BR/messages.json +153 -6
- package/_locales/sv-SE/messages.json +153 -6
- package/babel.config.json +0 -1
- package/browser_action/characterSelection.js +18 -11
- package/browser_action/charrefConverters.js +286 -79
- package/browser_action/chartBuild.js +97 -27
- package/browser_action/encodingBehaviors.js +10 -7
- package/browser_action/entityBehaviors.js +42 -16
- package/browser_action/index-es.html +13 -1
- package/browser_action/index-instrumented.html +13 -1
- package/browser_action/index-pages.html +13 -1
- package/browser_action/index.html +13 -1
- package/browser_action/index.iife.min.js +9 -1
- package/browser_action/index.iife.min.js.map +1 -1
- package/browser_action/index.instrumented.iife.min.js +1 -1
- package/browser_action/index.instrumented.iife.min.js.map +1 -1
- package/browser_action/index.js +5 -5
- package/browser_action/preferences/prefDefaults.js +12 -3
- package/browser_action/service-worker/sw-activateCallback.js +1 -2
- package/browser_action/service-worker/sw-resources.json +6 -4
- package/browser_action/templateUtils/elements.js +12 -1
- package/browser_action/templateUtils/fill.js +6 -0
- package/browser_action/templateUtils/validation.js +4 -1
- package/browser_action/templates/chartBuild.js +167 -102
- package/browser_action/templates/index.js +227 -53
- package/browser_action/templatesElementCustomization/widgets.js +40 -15
- package/browser_action/unicode/UnicodeConverter.js +99 -73
- package/browser_action/unicode/charrefunicodeDb.js +100 -50
- package/browser_action/unicode/getScriptInfoForCodePoint.js +13 -4
- package/browser_action/unicode/hangul.js +27 -20
- package/browser_action/unicode/lastScriptNames.json +1 -1
- package/browser_action/unicode/parseUnihanFromTextFileStrings.js +44 -25
- package/browser_action/unicode/unicodeFieldInfo.js +112 -90
- package/browser_action/unicode/unicodeScripts.js +409 -35
- package/browser_action/unicode/unihan.js +4 -3
- package/browser_action/unicode/unihanDbPopulate.js +7 -2
- package/browser_action/unicode/unihanFields.js +34 -0
- package/browser_action/unicodecharref.js +353 -190
- package/browser_action/utils/DOMUtils.js +95 -34
- package/browser_action/utils/FetchUtils.js +7 -6
- package/browser_action/utils/TextUtils.js +4 -4
- package/browser_action/utils/TypedArrayUtils.js +9 -5
- package/browser_action/utils/semicolonSeparatedToArray.js +3 -3
- package/browser_action/utils/setupServiceWorker.js +2 -2
- package/eslint.config.js +11 -0
- package/icons/openWindow16.png +0 -0
- package/icons/openWindow24.png +0 -0
- package/lib/background.html +7 -0
- package/lib/background.js +2 -2
- package/package.json +80 -70
- package/pnpm-workspace.yaml +8 -0
- package/server.js +66 -51
- package/sw.js +97 -56
- package/tools/entities-import.js +4 -1
- package/tools/findEsResources.js +33 -10
- package/tools/fix-sw-resources-vendor-paths.js +60 -0
- package/tools/list-locales.js +2 -2
- package/tools/parseUnicodeCharts.js +126 -60
- package/tools/ucd-import.js +1 -10
- package/tools/unicode-charts.html +49 -20
- package/tools/unihan-import.js +45 -15
- package/tools/write-sw-version.js +16 -0
- package/tsconfig.json +23 -0
- package/typings/__coverage__.d.ts +5 -0
- package/typings/apple-system-profiler.d.ts +17 -0
- package/typings/commands.d.ts +19 -0
- package/typings/json-6.d.ts +4 -0
- package/typings/rollup-plugin-istanbul.d.ts +3 -0
- package/vendor/camelcase/index.d.ts +154 -0
- package/vendor/camelcase/index.js +137 -23
- package/vendor/fflate/esm/browser.d.ts +1539 -0
- package/vendor/fflate/esm/browser.js +82 -55
- package/vendor/intl-dom/dist/Formatter.d.ts +120 -0
- package/vendor/intl-dom/dist/Formatter.d.ts.map +1 -0
- package/vendor/intl-dom/dist/collation.d.ts +42 -0
- package/vendor/intl-dom/dist/collation.d.ts.map +1 -0
- package/vendor/intl-dom/dist/defaultAllSubstitutions.d.ts +52 -0
- package/vendor/intl-dom/dist/defaultAllSubstitutions.d.ts.map +1 -0
- package/vendor/intl-dom/dist/defaultInsertNodes.d.ts +96 -0
- package/vendor/intl-dom/dist/defaultInsertNodes.d.ts.map +1 -0
- package/vendor/intl-dom/dist/defaultKeyCheckerConverter.d.ts +17 -0
- package/vendor/intl-dom/dist/defaultKeyCheckerConverter.d.ts.map +1 -0
- package/vendor/intl-dom/dist/defaultLocaleResolver.d.ts +285 -0
- package/vendor/intl-dom/dist/defaultLocaleResolver.d.ts.map +1 -0
- package/vendor/intl-dom/dist/findLocaleStrings.d.ts +88 -0
- package/vendor/intl-dom/dist/findLocaleStrings.d.ts.map +1 -0
- package/vendor/intl-dom/dist/getDOMForLocaleString.d.ts +67 -0
- package/vendor/intl-dom/dist/getDOMForLocaleString.d.ts.map +1 -0
- package/vendor/intl-dom/dist/getMessageForKeyByStyle.d.ts +73 -0
- package/vendor/intl-dom/dist/getMessageForKeyByStyle.d.ts.map +1 -0
- package/vendor/intl-dom/dist/getStringFromMessageAndDefaults.d.ts +26 -0
- package/vendor/intl-dom/dist/getStringFromMessageAndDefaults.d.ts.map +1 -0
- package/vendor/intl-dom/dist/i18n.d.ts +113 -0
- package/vendor/intl-dom/dist/i18n.d.ts.map +1 -0
- package/vendor/intl-dom/dist/index.d.ts +92 -0
- package/vendor/intl-dom/dist/index.d.ts.map +1 -0
- package/vendor/intl-dom/dist/index.esm.d.ts +34 -0
- package/vendor/intl-dom/dist/index.esm.js +854 -896
- package/vendor/intl-dom/dist/index.esm.min.js +4 -0
- package/vendor/intl-dom/dist/index.esm.min.js.map +1 -0
- package/vendor/intl-dom/dist/index.umd.js +2953 -0
- package/vendor/intl-dom/dist/index.umd.min.js +4 -0
- package/vendor/intl-dom/dist/index.umd.min.js.map +1 -0
- package/vendor/intl-dom/dist/promiseChainForValues.d.ts +34 -0
- package/vendor/intl-dom/dist/promiseChainForValues.d.ts.map +1 -0
- package/vendor/intl-dom/dist/shared.d.ts +20 -0
- package/vendor/intl-dom/dist/shared.d.ts.map +1 -0
- package/vendor/intl-dom/dist/utils.d.ts +53 -0
- package/vendor/intl-dom/dist/utils.d.ts.map +1 -0
- package/vendor/jamilih/dist/jml.d.mts +468 -0
- package/vendor/jamilih/dist/{jml-es.js → jml.mjs} +1489 -343
- package/vendor/jquery/dist/jquery.js +1677 -2713
- package/vendor/json-6/dist/index.mjs +2 -0
- package/vendor/miller-columns/CHANGES.md +185 -0
- package/vendor/miller-columns/LICENSE-MIT.txt +21 -0
- package/vendor/miller-columns/README.md +249 -0
- package/vendor/miller-columns/demos/index.html +69 -0
- package/vendor/miller-columns/demos/index.js +72 -0
- package/vendor/miller-columns/dist/index-es.js +748 -0
- package/vendor/miller-columns/dist/index-es.min.d.ts +25 -0
- package/vendor/miller-columns/dist/index-es.min.js +7 -1
- package/vendor/miller-columns/dist/index-umd.js +757 -0
- package/vendor/miller-columns/dist/index-umd.min.js +7 -0
- package/vendor/miller-columns/dist/index.d.ts +25 -0
- package/vendor/miller-columns/dist/millerColumns.d.ts +10 -0
- package/vendor/miller-columns/eslint.config.js +46 -0
- package/vendor/miller-columns/fix-declarations.js +18 -0
- package/vendor/miller-columns/miller-columns.css +24 -1
- package/vendor/miller-columns/package.json +73 -0
- package/vendor/miller-columns/pnpm-workspace.yaml +2 -0
- package/vendor/miller-columns/src/index.js +642 -0
- package/vendor/miller-columns/src/millerColumns.ts +12 -0
- package/vendor/miller-columns/tsconfig-prod.json +23 -0
- package/vendor/miller-columns/tsconfig.json +21 -0
- package/vendor/simple-prefs/dist/index.esm.d.ts +1 -0
- package/vendor/simple-prefs/dist/index.esm.js +164 -216
- package/vendor/simple-prefs/dist/simple-prefs.d.ts +117 -0
- package/lgtm.yml +0 -5
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).addMillerColumnPlugin=t()}(this,(function(){"use strict";var e="undefined"!=typeof document?document.currentScript:null;function t(e,{before:t,after:n,favicon:r,canvas:o,image:a=!0,acceptErrors:c}={}){return e=Array.isArray(e)?e:[e],Promise.all(e.map((e=>function(e){let l,s={};Array.isArray(e)?[l,s={}]=e:l=e;let{favicon:i=r}=s;const{before:d=t,after:u=n,canvas:f=o,image:p=a}=s;function h(){d?d.before(m):u?u.after(m):document.head.append(m)}const m=document.createElement("link");return new Promise(((e,t)=>{let n=t;if(c&&(n="function"==typeof c?n=>{c({error:n,stylesheetURL:l,options:s,resolve:e,reject:t})}:e),l.endsWith(".css")?i=!1:l.endsWith(".ico")&&(i=!0),i){if(m.rel="shortcut icon",m.type="image/x-icon",!1===p)return m.href=l,h(),void e(m);const n=document.createElement("canvas");n.width=16,n.height=16;const r=n.getContext("2d"),o=document.createElement("img");return o.addEventListener("error",(e=>{t(e)})),o.addEventListener("load",(()=>{if(!r)throw new Error("Canvas context could not be found");r.drawImage(o,0,0),m.href=f?n.toDataURL("image/x-icon"):l,h(),e(m)})),void(o.src=l)}m.rel="stylesheet",m.type="text/css",m.href=l,h(),m.addEventListener("error",(e=>{n(e)})),m.addEventListener("load",(()=>{e(m)}))}))}(e))))}
|
|
2
|
+
/**
|
|
3
|
+
* MIT License.
|
|
4
|
+
*
|
|
5
|
+
* @copyright 2014 White Magic Software, Inc.
|
|
6
|
+
* @copyright 2018 Brett Zamir
|
|
7
|
+
*/const n=new URL("../miller-columns.css","undefined"==typeof document&&"undefined"==typeof location?require("url").pathToFileURL(__filename).href:"undefined"==typeof document?location.href:e&&"SCRIPT"===e.tagName.toUpperCase()&&e.src||new URL("index-umd.min.js",document.baseURI).href).href;return async function(e,{namespace:r="miller",stylesheets:o=["@default"]}={}){let a;const c=`ul:not(.${r}-no-columns),ol:not(.${r}-no-columns)`,l="li";function s(){return e(`.${r}-column > .${r}-selected`)}function i(t){const n=e(`.${r}-breadcrumbs`).empty();a.breadcrumbRoot&&e(`<span class="${r}-breadcrumb ${r}-breadcrumb-root">`).text(a.breadcrumbRoot).on("click",(function(){t&&h(t)})).appendTo(n),s().each((function(){const t=e(this);e(`<span class="${r}-breadcrumb">`).text(t.text().trim()).on("click",(function(){t.trigger("click")})).appendTo(n)}))}function d(t,n){let o=0;(t?s().not(t):s()).each((function(){o+=e(this).outerWidth(!0)})),n.stop().animate({scrollLeft:o},a.delay,(function(){n.find(`.${r}-column:not(.${r}-collapse)`).last()[0].scrollLeft=o,a.scroll&&a.scroll.call(this,t,n)}))}function u(t,n){const o=[];let a;for(o.push(n||t.children());o.length;)a=o.shift(),a.children(l).each((function(){const n=e(this),a=n.children(c),s=n.parent().parent();s.length&&s.is(l)&&null==n.data(`${r}-ancestor`)&&e(this).siblings().addBack().data(`${r}-ancestor`,s),a.length&&(o.push(a),e(this).data(`${r}-child`,a).addClass(`${r}-parent`)),e(this).parent(c).appendTo(t).addClass(`${r}-column`)}))}function f(){e(`.${r}-column:gt(0)`).addClass(`${r}-collapse`)}function p(){return s().last()}function h(e){m(e,!0),function(e){d(null,e)}(e)}function m(t,n){f(),s().removeClass(`${r}-selected`),i(t),a.reset(t,n),a.preview&&e(`.${r}-preview`).remove()}function $(){const e=p().next();e[0]?.scrollIntoView({block:"nearest",inline:"start"}),e.trigger("click")}function g(t){let n,o="";return function(a){const c=a.key;let s=!1;switch(c){case"Escape":h(t);break;case"ArrowUp":!function(){const e=p().prev();e[0]?.scrollIntoView({block:"nearest"}),e.trigger("click")}(),s=!0;break;case"ArrowDown":$(),s=!0;break;case"ArrowLeft":!function(){const e=p(),t=e.data(`${r}-ancestor`),n=e.data(`${r}-child`);(!n||n.hasClass(`${r}-collapse`)||t)&&t&&(t[0]?.scrollIntoView({block:"nearest"}),t.trigger("click"))}(),s=!0;break;case"ArrowRight":!function(){const e=p().data(`${r}-child`);if(e){const t=e.children(l).first();t[0]?.scrollIntoView({block:"nearest"}),t.trigger("click")}else $()}(),s=!0;break;default:if(!a.metaKey&&!a.altKey){if(1===c.length){!function(e){const t=Date.now();!n||t-n<500?o+=e:o=e,n=t}(c);const a=t.find(`${l}.${r}-selected`).last().siblings().filter((function(){return new RegExp("^"+(t=o,t.replaceAll(/[\-\[\]\{\}\(\)*+?.,\\^$\|#\s]/gv,String.raw`\$&`)),"iv").test(e(this).text().trim());var t})).first();a[0]?.scrollIntoView({block:"nearest"}),a.trigger("click")}s=!0}}s&&0===p().length&&e(`.${r}-column`).first().children().first().trigger("click"),s&&a.preventDefault()}}return o&&await t(o.map((e=>"@default"===e?n:e))),e.fn.millerColumns=function(t){const n={current(e){},reset(e){},preview:null,onPreview:null,breadcrumbRoot:"Root",breadcrumb:i,animation:d,delay:500,outsideClickBehavior:"select-parent"};a=e.extend(n,t);const o=this.each((function(){const t=e(this),n=t.html();t.data(`${r}-original-html`,n),u(t),f(),i(t);const o=g(t);t.on("click",l,(function(n){const o=e(this);m(t,!1);const c=o.data(`${r}-child`);let l=o;for(c&&(c[0]?.scrollIntoView({block:"nearest"}),c.removeClass(`${r}-collapse`).children().removeClass(`${r}-selected`));l;)l.addClass(`${r}-selected`).parent().removeClass(`${r}-collapse`),l=l.data(`${r}-ancestor`);if(a.animation.call(this,o,t),a.breadcrumb.call(this,t),a.current.call(this,o,t),a.preview){if(o.hasClass(`${r}-selected`)&&!o.hasClass(`${r}-parent`)){const n=a.preview.call(this,o,t),c=e(`<ul class="${r}-column ${r}-preview">\n <li>${n}</li>\n </ul>`);o.parent().parent().append(c),c[0].scrollIntoView({block:"nearest",inline:"start"}),c.on("click",(e=>{e.stopPropagation(),a.onPreview?.call(this,e,c,t)}))}}n.stopPropagation()})),t[0].addEventListener("keydown",o),t.on("click",(n=>{switch(a.outsideClickBehavior){case"reset":h(t);break;case"select-parent":{const t=document.caretPositionFromPoint(n.clientX,n.clientY),o=t?.offsetNode;let a=1===o?.nodeType?o:o?.parentElement;for(;a;){if(a.matches(`ul.${r}-column:not(.${r}-collapse)`)){e(a).prevAll(`ul.${r}-column:not(.${r}-collapse)`).first().find(`li.${r}-selected`).trigger("click");break}a=a.parentElement}break}}})),t.data(`${r}-keypress-handler`,o)}));return o.addItem=function(t,n){const a="string"==typeof t?e(t):t,l=o;if(n){let t=n.data(`${r}-child`);t?(t.append(a),a.data(`${r}-ancestor`,n)):(t=e("<ul>").append(a),n.append(t),n.data(`${r}-child`,t).addClass(`${r}-parent`),a.data(`${r}-ancestor`,n),u(l,t),t=n.data(`${r}-child`));const o=a.children(c);o.length&&(a.data(`${r}-child`,o).addClass(`${r}-parent`),u(l,o))}else{const t=l.find(`.${r}-column`).first();if(t.length){t.append(a);const e=a.children(c);e.length&&(a.data(`${r}-child`,e).addClass(`${r}-parent`),u(l,e))}else{const t=e("<ul>").append(a);l.append(t),u(l,t)}}return a},o.refreshChildren=function(t,n){if(!t||!t.length)return t;const a=t.data(`${r}-child`);a&&a.length&&(a.remove(),t.removeData(`${r}-child`).removeClass(`${r}-parent`));const c=n.map((t=>"string"==typeof t?e(t):t)),l=e("<ul>").append(c);return t.append(l),u(o,l),t.trigger("click"),t},o.destroy=function(){return o.each((function(){const t=e(this),n=t.data(`${r}-keypress-handler`);n&&this.removeEventListener("keydown",n),t.off("click"),t.find(`.${r}-column`).removeClass(`${r}-column ${r}-collapse`),t.find(`.${r}-parent`).removeClass(`${r}-parent`),t.find(`.${r}-selected`).removeClass(`${r}-selected`),t.find("li").each((function(){const t=e(this);t.removeData(`${r}-ancestor`),t.removeData(`${r}-child`)})),t.find(`.${r}-preview`).remove();const o=t.data(`${r}-original-html`);o&&(t.html(o),t.removeData(`${r}-original-html`)),t.removeData(`${r}-keypress-handler`)})),delete o.addItem,delete o.destroy,delete o.refreshChildren,o},o},e}}));
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export default addMillerColumnPlugin;
|
|
2
|
+
export type Settings = {
|
|
3
|
+
delay: JQuery.Duration | string;
|
|
4
|
+
outsideClickBehavior: "reset" | "select-parent" | "none";
|
|
5
|
+
breadcrumbRoot: string;
|
|
6
|
+
breadcrumb: (this: HTMLElement, $columns?: JQuery<HTMLElement>) => void;
|
|
7
|
+
current: (li: JQuery<HTMLLIElement>, $columns: JQuery<HTMLElement>) => void;
|
|
8
|
+
preview: null | ((li: JQuery<HTMLLIElement>, $columns: JQuery<HTMLElement>) => void);
|
|
9
|
+
onPreview: null | ((ev: JQuery.ClickEvent<HTMLUListElement, undefined, HTMLUListElement, HTMLUListElement>, li: JQuery<HTMLUListElement>, $columns: JQuery<HTMLElement>) => void);
|
|
10
|
+
animation: (li: JQuery<HTMLLIElement>, $columns: JQuery<HTMLElement>) => void;
|
|
11
|
+
reset: ($columns: JQuery<HTMLElement>, resetByUser: boolean) => void;
|
|
12
|
+
scroll?: ($column: JQuery<HTMLElement> | null, $columns: JQuery<HTMLElement>) => void;
|
|
13
|
+
};
|
|
14
|
+
export type millerColumns = import("./millerColumns.ts").millerColumns;
|
|
15
|
+
/**
|
|
16
|
+
* @param {jQuery} $
|
|
17
|
+
* @param {object} cfg
|
|
18
|
+
* @param {string} [cfg.namespace]
|
|
19
|
+
* @param {Exclude<import('load-stylesheets').Stylesheets, string>} [cfg.stylesheets]
|
|
20
|
+
* @returns {Promise<jQuery>}
|
|
21
|
+
*/
|
|
22
|
+
declare function addMillerColumnPlugin($: JQueryStatic, { namespace, stylesheets }?: {
|
|
23
|
+
namespace?: string | undefined;
|
|
24
|
+
stylesheets?: (string | [stylesheetURL: string, options: import("load-stylesheets").Options])[] | undefined;
|
|
25
|
+
}): Promise<JQueryStatic>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
declare global {
|
|
2
|
+
interface JQuery {
|
|
3
|
+
millerColumns(options: Partial<import('./index.js').Settings>): JQuery;
|
|
4
|
+
addItem?(item: string | JQuery<HTMLLIElement>, $parent?: JQuery<HTMLLIElement>): JQuery<HTMLLIElement>;
|
|
5
|
+
refreshChildren?($parent: JQuery<HTMLLIElement>, newItems: Array<string | JQuery<HTMLLIElement>>): JQuery<HTMLLIElement>;
|
|
6
|
+
destroy?(): JQuery<HTMLElement>;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
export type millerColumns = JQuery['millerColumns'];
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import ashNazg from 'eslint-config-ash-nazg';
|
|
2
|
+
|
|
3
|
+
export default [
|
|
4
|
+
{
|
|
5
|
+
ignores: ['dist']
|
|
6
|
+
},
|
|
7
|
+
...ashNazg(['sauron', 'browser']),
|
|
8
|
+
{
|
|
9
|
+
files: ['tests/**'],
|
|
10
|
+
languageOptions: {
|
|
11
|
+
globals: {
|
|
12
|
+
fixture: true
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
rules: {
|
|
16
|
+
// Get rid of these when may switch to cypress
|
|
17
|
+
'mocha/no-global-tests': 'off',
|
|
18
|
+
'mocha/handle-done-callback': 'off',
|
|
19
|
+
'chai-friendly/no-unused-expressions': 'off',
|
|
20
|
+
'sonarjs/no-unused-expressions': 'off',
|
|
21
|
+
'new-cap': 'off'
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
files: ['*.md/*.js'],
|
|
26
|
+
languageOptions: {
|
|
27
|
+
globals: {
|
|
28
|
+
$: 'readonly'
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
rules: {
|
|
32
|
+
'no-unused-vars': 'off',
|
|
33
|
+
'no-console': 'off',
|
|
34
|
+
'no-shadow': 'off',
|
|
35
|
+
'sonarjs/no-internal-api-use': 'off',
|
|
36
|
+
'import/no-unresolved': 'off',
|
|
37
|
+
'import/unambiguous': 'off'
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
rules: {
|
|
42
|
+
// Disable for now
|
|
43
|
+
'@stylistic/max-len': 0
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
];
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {readFileSync, writeFileSync} from 'fs';
|
|
3
|
+
import {fileURLToPath} from 'url';
|
|
4
|
+
import {dirname, join} from 'path';
|
|
5
|
+
|
|
6
|
+
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
7
|
+
|
|
8
|
+
// Fix the millerColumns.d.ts file to reference the correct path
|
|
9
|
+
const filePath = join(__dirname, 'dist', 'millerColumns.d.ts');
|
|
10
|
+
let content = readFileSync(filePath, 'utf8');
|
|
11
|
+
|
|
12
|
+
// Replace '../src/index.js' with './index.js'
|
|
13
|
+
content = content.replaceAll(/import\(['"]\.\.\/src\/index\.js['"]\)/gv, "import('./index.js')");
|
|
14
|
+
|
|
15
|
+
writeFileSync(filePath, content, 'utf8');
|
|
16
|
+
|
|
17
|
+
// eslint-disable-next-line no-console -- Info
|
|
18
|
+
console.log('Fixed declaration file paths');
|
|
@@ -63,11 +63,34 @@ ul.miller-column > li:hover {
|
|
|
63
63
|
*
|
|
64
64
|
*/
|
|
65
65
|
.miller-breadcrumbs {
|
|
66
|
-
|
|
66
|
+
padding: 0.75em 1em;
|
|
67
|
+
min-height: 2em;
|
|
68
|
+
background-color: #f8f8f8;
|
|
69
|
+
border-bottom: 1px solid #ddd;
|
|
70
|
+
font-size: 0.9em;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.miller-breadcrumb {
|
|
74
|
+
cursor: pointer;
|
|
75
|
+
padding: 0.25em 0.5em;
|
|
76
|
+
border-radius: 3px;
|
|
77
|
+
display: inline-block;
|
|
78
|
+
transition: background-color 0.2s;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.miller-breadcrumb:hover {
|
|
82
|
+
background-color: #e0e0e0;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.miller-breadcrumb-root {
|
|
86
|
+
font-weight: bold;
|
|
87
|
+
color: #666;
|
|
67
88
|
}
|
|
68
89
|
|
|
69
90
|
.miller-breadcrumb:after {
|
|
70
91
|
content: " › ";
|
|
92
|
+
padding: 0 0.25em;
|
|
93
|
+
color: #999;
|
|
71
94
|
}
|
|
72
95
|
|
|
73
96
|
.miller-breadcrumb:last-child:after {
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "miller-columns",
|
|
3
|
+
"version": "0.17.0",
|
|
4
|
+
"description": "Miller Columns in ES6 Modules JavaScript",
|
|
5
|
+
"main": "src/index.js",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"browserslist": [
|
|
9
|
+
"last 2 chrome versions"
|
|
10
|
+
],
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "git+https://github.com/brettz9/miller-columns.git"
|
|
14
|
+
},
|
|
15
|
+
"keywords": [
|
|
16
|
+
"miller-columns",
|
|
17
|
+
"columns",
|
|
18
|
+
"column",
|
|
19
|
+
"browser"
|
|
20
|
+
],
|
|
21
|
+
"author": "Brett Zamir",
|
|
22
|
+
"contributors": [
|
|
23
|
+
{
|
|
24
|
+
"name": "White Magic Software",
|
|
25
|
+
"url": "http://jsfiddle.net/yckart/cbtnemc7/"
|
|
26
|
+
}
|
|
27
|
+
],
|
|
28
|
+
"engines": {},
|
|
29
|
+
"license": "MIT",
|
|
30
|
+
"bugs": {
|
|
31
|
+
"url": "https://github.com/brettz9/miller-columns/issues"
|
|
32
|
+
},
|
|
33
|
+
"homepage": "https://github.com/brettz9/miller-columns#readme",
|
|
34
|
+
"devDependencies": {
|
|
35
|
+
"@babel/core": "^7.28.5",
|
|
36
|
+
"@node-static/node-static": "^0.8.1",
|
|
37
|
+
"@rollup/plugin-babel": "^6.1.0",
|
|
38
|
+
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
39
|
+
"@rollup/plugin-terser": "^0.4.4",
|
|
40
|
+
"@testcafe-community/axe": "^3.5.0",
|
|
41
|
+
"@types/jquery": "^3.5.33",
|
|
42
|
+
"@types/node": "^25.0.2",
|
|
43
|
+
"axe-core": "^4.11.0",
|
|
44
|
+
"babel-core": "6.26.3",
|
|
45
|
+
"babel-plugin-external-helpers": "^6.22.0",
|
|
46
|
+
"babel-polyfill": "^6.26.0",
|
|
47
|
+
"babel-preset-env": "^1.7.0",
|
|
48
|
+
"chokidar-cli": "^3.0.0",
|
|
49
|
+
"eslint": "^9.39.2",
|
|
50
|
+
"eslint-config-ash-nazg": "^39.8.0",
|
|
51
|
+
"eslint-plugin-testcafe": "^0.2.1",
|
|
52
|
+
"jquery": "^3.7.1",
|
|
53
|
+
"load-stylesheets": "^0.13.0",
|
|
54
|
+
"open-cli": "^8.0.0",
|
|
55
|
+
"reload": "^3.4.2",
|
|
56
|
+
"rollup": "4.53.3",
|
|
57
|
+
"testcafe": "^3.7.2",
|
|
58
|
+
"typescript": "^5.9.3"
|
|
59
|
+
},
|
|
60
|
+
"scripts": {
|
|
61
|
+
"tsc": "tsc",
|
|
62
|
+
"rollup": "rollup -c && tsc -p tsconfig-prod.json && node fix-declarations.js",
|
|
63
|
+
"eslint": "eslint .",
|
|
64
|
+
"lint": "npm run eslint",
|
|
65
|
+
"demo-no-open": "pkill -f \".bin/static -p\" ; npm run eslint && npm run rollup && npm run start",
|
|
66
|
+
"demo": "npm run eslint && npm run rollup && open-cli http://localhost:8092/demos/ && npm run start",
|
|
67
|
+
"start": "static -p 8092",
|
|
68
|
+
"testcafe": "testcafe chrome tests/**/*.js",
|
|
69
|
+
"test": "npm run eslint && npm run rollup && npm run testcafe",
|
|
70
|
+
"watch": "chokidar '**/*.js' -c 'npm run demo-no-open' -i 'dist' -i 'node_modules' & npm run demo-no-open",
|
|
71
|
+
"dontuse-unfinished-watch": "chokidar '**/*.js' -c 'pkill -f \".bin/static -p\" ; npm run eslint && npm run rollup && reload -b -d \"demos\"' -i 'dist'"
|
|
72
|
+
}
|
|
73
|
+
}
|