@mlightcad/cad-html-core 1.8.0-preview.2 → 1.8.0-preview.4
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/LICENSE +21 -21
- package/README.md +23 -23
- package/dist/cad-html-core.js +2836 -2146
- package/dist/cad-html-core.umd.cjs +47 -47
- package/lib/AcExHtmlEmptyLayout.d.ts +14 -0
- package/lib/AcExHtmlEmptyLayout.d.ts.map +1 -0
- package/lib/AcExHtmlEmptyLayout.js +59 -0
- package/lib/AcExHtmlEmptyLayout.js.map +1 -0
- package/lib/AcExHtmlI18n.d.ts +18 -4
- package/lib/AcExHtmlI18n.d.ts.map +1 -1
- package/lib/AcExHtmlI18n.js +240 -199
- package/lib/AcExHtmlI18n.js.map +1 -1
- package/lib/AcExHtmlIconSvgs.d.ts +13 -13
- package/lib/AcExHtmlIconSvgs.d.ts.map +1 -1
- package/lib/AcExHtmlIconSvgs.js +33 -31
- package/lib/AcExHtmlIconSvgs.js.map +1 -1
- package/lib/AcExHtmlIcons.d.ts +5 -5
- package/lib/AcExHtmlOsnapPrimitiveBuilder.d.ts.map +1 -1
- package/lib/AcExHtmlOsnapPrimitiveBuilder.js +11 -11
- package/lib/AcExHtmlOsnapPrimitiveBuilder.js.map +1 -1
- package/lib/AcExHtmlSceneBatchCollector.d.ts +22 -3
- package/lib/AcExHtmlSceneBatchCollector.d.ts.map +1 -1
- package/lib/AcExHtmlSceneBatchCollector.js +497 -176
- package/lib/AcExHtmlSceneBatchCollector.js.map +1 -1
- package/lib/AcExHtmlShellFragments.d.ts.map +1 -1
- package/lib/AcExHtmlShellFragments.js +4 -0
- package/lib/AcExHtmlShellFragments.js.map +1 -1
- package/lib/AcExHtmlSnapshotFromSceneData.d.ts +19 -0
- package/lib/AcExHtmlSnapshotFromSceneData.d.ts.map +1 -1
- package/lib/AcExHtmlSnapshotFromSceneData.js +64 -41
- package/lib/AcExHtmlSnapshotFromSceneData.js.map +1 -1
- package/lib/i18n/ja.d.ts +256 -0
- package/lib/i18n/ja.d.ts.map +1 -0
- package/lib/i18n/ja.js +256 -0
- package/lib/i18n/ja.js.map +1 -0
- package/lib/i18n/ko.d.ts +256 -0
- package/lib/i18n/ko.d.ts.map +1 -0
- package/lib/i18n/ko.js +256 -0
- package/lib/i18n/ko.js.map +1 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -0
- package/lib/index.js.map +1 -1
- package/package.json +5 -5
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type AcDbDatabase } from '@mlightcad/data-model';
|
|
2
|
+
/**
|
|
3
|
+
* True when a paper-space block has no content other than AutoCAD's default
|
|
4
|
+
* `*Paper_Space` viewport. Model space is never treated as empty.
|
|
5
|
+
*
|
|
6
|
+
* Used to skip blank paper tabs when {@link AcExHtmlBuildSnapshotOptions.exportEmptyLayouts}
|
|
7
|
+
* is `false`.
|
|
8
|
+
*
|
|
9
|
+
* @param database - Open drawing database.
|
|
10
|
+
* @param blockTableRecordId - Layout block-table-record id.
|
|
11
|
+
* @param modelSpaceBtrId - Model-space block id (always kept).
|
|
12
|
+
*/
|
|
13
|
+
export declare function acexHtmlIsEmptyPaperSpaceLayout(database: AcDbDatabase, blockTableRecordId: string, modelSpaceBtrId: string): boolean;
|
|
14
|
+
//# sourceMappingURL=AcExHtmlEmptyLayout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcExHtmlEmptyLayout.d.ts","sourceRoot":"","sources":["../src/AcExHtmlEmptyLayout.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAgB,MAAM,uBAAuB,CAAA;AAGvE;;;;;;;;;;GAUG;AACH,wBAAgB,+BAA+B,CAC7C,QAAQ,EAAE,YAAY,EACtB,kBAAkB,EAAE,MAAM,EAC1B,eAAe,EAAE,MAAM,GACtB,OAAO,CAsBT"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
var __values = (this && this.__values) || function(o) {
|
|
2
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
3
|
+
if (m) return m.call(o);
|
|
4
|
+
if (o && typeof o.length === "number") return {
|
|
5
|
+
next: function () {
|
|
6
|
+
if (o && i >= o.length) o = void 0;
|
|
7
|
+
return { value: o && o[i++], done: !o };
|
|
8
|
+
}
|
|
9
|
+
};
|
|
10
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
11
|
+
};
|
|
12
|
+
import { AcDbViewport } from '@mlightcad/data-model';
|
|
13
|
+
import { AcTrViewportView } from '@mlightcad/three-renderer';
|
|
14
|
+
/**
|
|
15
|
+
* True when a paper-space block has no content other than AutoCAD's default
|
|
16
|
+
* `*Paper_Space` viewport. Model space is never treated as empty.
|
|
17
|
+
*
|
|
18
|
+
* Used to skip blank paper tabs when {@link AcExHtmlBuildSnapshotOptions.exportEmptyLayouts}
|
|
19
|
+
* is `false`.
|
|
20
|
+
*
|
|
21
|
+
* @param database - Open drawing database.
|
|
22
|
+
* @param blockTableRecordId - Layout block-table-record id.
|
|
23
|
+
* @param modelSpaceBtrId - Model-space block id (always kept).
|
|
24
|
+
*/
|
|
25
|
+
export function acexHtmlIsEmptyPaperSpaceLayout(database, blockTableRecordId, modelSpaceBtrId) {
|
|
26
|
+
var e_1, _a;
|
|
27
|
+
var _b;
|
|
28
|
+
if (blockTableRecordId === modelSpaceBtrId) {
|
|
29
|
+
return false;
|
|
30
|
+
}
|
|
31
|
+
var blockTable = (_b = database.tables) === null || _b === void 0 ? void 0 : _b.blockTable;
|
|
32
|
+
var block = typeof (blockTable === null || blockTable === void 0 ? void 0 : blockTable.getIdAt) === 'function'
|
|
33
|
+
? blockTable.getIdAt(blockTableRecordId)
|
|
34
|
+
: undefined;
|
|
35
|
+
if (!(block === null || block === void 0 ? void 0 : block.newIterator)) {
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
try {
|
|
39
|
+
for (var _c = __values(block.newIterator()), _d = _c.next(); !_d.done; _d = _c.next()) {
|
|
40
|
+
var entity = _d.value;
|
|
41
|
+
if (entity instanceof AcDbViewport) {
|
|
42
|
+
if (AcTrViewportView.isDefaultPaperSpaceViewport(entity)) {
|
|
43
|
+
continue;
|
|
44
|
+
}
|
|
45
|
+
return false;
|
|
46
|
+
}
|
|
47
|
+
return false;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
51
|
+
finally {
|
|
52
|
+
try {
|
|
53
|
+
if (_d && !_d.done && (_a = _c.return)) _a.call(_c);
|
|
54
|
+
}
|
|
55
|
+
finally { if (e_1) throw e_1.error; }
|
|
56
|
+
}
|
|
57
|
+
return true;
|
|
58
|
+
}
|
|
59
|
+
//# sourceMappingURL=AcExHtmlEmptyLayout.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcExHtmlEmptyLayout.js","sourceRoot":"","sources":["../src/AcExHtmlEmptyLayout.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,EAAqB,YAAY,EAAE,MAAM,uBAAuB,CAAA;AACvE,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AAE5D;;;;;;;;;;GAUG;AACH,MAAM,UAAU,+BAA+B,CAC7C,QAAsB,EACtB,kBAA0B,EAC1B,eAAuB;;;IAEvB,IAAI,kBAAkB,KAAK,eAAe,EAAE,CAAC;QAC3C,OAAO,KAAK,CAAA;IACd,CAAC;IACD,IAAM,UAAU,GAAG,MAAA,QAAQ,CAAC,MAAM,0CAAE,UAAU,CAAA;IAC9C,IAAM,KAAK,GACT,OAAO,CAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,OAAO,CAAA,KAAK,UAAU;QACvC,CAAC,CAAC,UAAU,CAAC,OAAO,CAAC,kBAAkB,CAAC;QACxC,CAAC,CAAC,SAAS,CAAA;IACf,IAAI,CAAC,CAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,WAAW,CAAA,EAAE,CAAC;QACxB,OAAO,IAAI,CAAA;IACb,CAAC;;QACD,KAAqB,IAAA,KAAA,SAAA,KAAK,CAAC,WAAW,EAAE,CAAA,gBAAA,4BAAE,CAAC;YAAtC,IAAM,MAAM,WAAA;YACf,IAAI,MAAM,YAAY,YAAY,EAAE,CAAC;gBACnC,IAAI,gBAAgB,CAAC,2BAA2B,CAAC,MAAM,CAAC,EAAE,CAAC;oBACzD,SAAQ;gBACV,CAAC;gBACD,OAAO,KAAK,CAAA;YACd,CAAC;YACD,OAAO,KAAK,CAAA;QACd,CAAC;;;;;;;;;IACD,OAAO,IAAI,CAAA;AACb,CAAC"}
|
package/lib/AcExHtmlI18n.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/** Supported locales in the offline HTML viewer. */
|
|
2
|
-
export type AcExHtmlLocale = 'en' | 'zh' | 'cs' | 'tr' | 'ar';
|
|
2
|
+
export type AcExHtmlLocale = 'en' | 'zh' | 'ja' | 'ko' | 'cs' | 'tr' | 'ar';
|
|
3
3
|
/**
|
|
4
4
|
* All locales accepted by the offline viewer, in display order.
|
|
5
5
|
* The language strip lists these options; add a locale here plus a
|
|
6
|
-
* {@link ACEX_HTML_LOCALE_BADGES} entry and
|
|
6
|
+
* {@link ACEX_HTML_LOCALE_BADGES} entry and an {@link ACEX_HTML_MESSAGES} tree to support it.
|
|
7
7
|
*/
|
|
8
8
|
export declare const ACEX_HTML_LOCALES: AcExHtmlLocale[];
|
|
9
9
|
/** Short button badge per locale (shown on the language parent and strip). */
|
|
@@ -15,9 +15,22 @@ export declare const ACEX_HTML_LOCALE_BADGES: Record<AcExHtmlLocale, string>;
|
|
|
15
15
|
export declare const ACEX_HTML_LOCALE_STORAGE_KEY = "mlcad-html-locale";
|
|
16
16
|
/**
|
|
17
17
|
* Dot-separated message keys resolved by {@link AcExHtmlI18n.t}.
|
|
18
|
-
* Must exist in the
|
|
18
|
+
* Must exist in the {@link ACEX_HTML_MESSAGES} tree for each {@link AcExHtmlLocale}.
|
|
19
19
|
*/
|
|
20
|
-
export type AcExHtmlMessageKey = 'toolbar.viewerTools' | 'toolbar.select' | 'toolbar.pan' | 'toolbar.zoom' | 'toolbar.zoomExtents' | 'toolbar.zoomSmartExtents' | 'toolbar.zoomWindow' | 'toolbar.zoomSaved' | 'toolbar.zoomOriginal' | 'toolbar.measureDistance' | 'toolbar.measureContinuous' | 'toolbar.measureAngle' | 'toolbar.measureArc' | 'toolbar.measureRadius' | 'toolbar.measureArea' | 'toolbar.measureCoordinate' | 'toolbar.clearMeasurements' | 'toolbar.measureHide' | 'toolbar.measureShow' | 'toolbar.measureImport' | 'toolbar.measureExport' | 'toolbar.measurementPanel' | 'toolbar.measure' | 'toolbar.annotation' | 'toolbar.markupCloud' | 'toolbar.markupCallout' | 'toolbar.markupText' | 'toolbar.markupRect' | 'toolbar.markupCircle' | 'toolbar.markupArrow' | 'toolbar.markupStamp' | 'toolbar.markupPanel' | 'toolbar.markupHide' | 'toolbar.markupShow' | 'toolbar.clearMarkups' | 'toolbar.markupImport' | 'toolbar.markupExport' | 'toolbar.snap' | 'toolbar.layers' | 'toolbar.layout' | 'toolbar.settings' | 'toolbar.simulatedMouseOn' | 'toolbar.simulatedMouseOff' | 'toolbar.themeLight' | 'toolbar.themeDark' | 'toolbar.switchBg' | 'toolbar.language' | 'toolbar.localeEn' | 'toolbar.localeZh' | 'toolbar.localeCs' | 'toolbar.localeTr' | 'toolbar.localeAr' | 'toolbar.collapse' | 'toolbar.expand' | 'toolbar.moreOverflow' | 'settings.ortho' | 'settings.polar' | 'settings.polarAngles' | 'drawStyle.color' | 'drawStyle.fontSize' | 'drawStyle.pickerTitle' | 'drawStyle.close' | 'drawStyle.ok' | 'drawStyle.cancel' | 'drawStyle.index' | 'drawStyle.rgb' | 'drawStyle.input' | 'drawStyle.inputPlaceholder' | 'shortCutToolbar.more' | 'shortCutToolbar.undo' | 'shortCutToolbar.redo' | 'shortCutToolbar.erase' | 'shortCutToolbar.collapse' | 'shortCutToolbar.expand' | 'textHeight.title' | 'textHeight.close' | 'textHeight.ok' | 'textHeight.cancel' | 'textHeight.adaptive' | 'textHeight.custom' | 'textHeight.customPlaceholder' | 'textHeight.fromScreen' | 'textHeight.fromScreenHint' | 'textHeight.screenPxPlaceholder' | 'textHeight.screenUnit' | 'textHeight.convert' | 'entityPick.cancel' | 'layers.title' | 'layers.close' | 'layers.showAll' | 'layers.hideAll' | 'layers.zoomTo' | 'review.title' | 'review.close' | 'review.searchPlaceholder' | 'review.empty' | 'review.type' | 'review.status' | 'review.author' | 'review.summary' | 'review.details' | 'review.closeDetails' | 'review.label' | 'review.comment' | 'review.zoomTo' | 'review.delete' | 'review.clear' | 'review.statusValues.open' | 'review.statusValues.question' | 'review.statusValues.answered' | 'review.statusValues.closed' | 'measurePanel.title' | 'measurePanel.close' | 'measurePanel.filterGroup' | 'measurePanel.filterDistance' | 'measurePanel.filterArc' | 'measurePanel.filterRadius' | 'measurePanel.filterAngle' | 'measurePanel.filterArea' | 'measurePanel.empty' | 'measurePanel.type' | 'measurePanel.value' | 'measurePanel.delete' | 'measurePanel.clear' | 'session.length' | 'session.angle' | 'session.dx' | 'session.dy' | 'session.x' | 'session.y' | 'session.confirm' | 'session.cancel' | 'session.help' | 'session.back' | 'session.collapse' | 'session.expand' | 'session.undo' | 'touchPointTutorial.title' | 'touchPointTutorial.description' | 'touchPointTutorial.snoozeToday' | 'touchPointTutorial.hideForever' | 'touchPointTutorial.ok' | 'status.ready' | 'status.zoomWindowHint' | 'status.measureDistanceHint' | 'status.measureContinuousHint' | 'status.measureAngleHint' | 'status.measureArcHint' | 'status.measureRadiusHint' | 'status.measureAreaHint' | 'status.measureCoordinateHint' | 'status.measureExported' | 'status.measureImported' | 'status.measureImportFailed' | 'status.markupCloudHint' | 'status.markupCalloutHint' | 'status.markupTextHint' | 'status.markupRectHint' | 'status.markupCircleHint' | 'status.markupArrowHint' | 'status.markupStampHint' | 'status.markupArrowEndHint' | 'status.markupRectCornerHint' | 'status.markupCloudCornerHint' | 'status.markupCalloutAnchorHint' | 'status.markupCircleRadiusHint' | 'status.markupTextPrompt' | 'status.markupTextEditHint' | 'status.markupShapeCalloutHint' | 'status.markupDefaultLabel' | 'status.markupSelected' | 'status.markupSelectedCount' | 'status.markupCount' | 'status.markupExported' | 'status.markupImported' | 'status.markupImportFailed' | 'status.distance' | 'status.coordinates' | 'status.angle' | 'status.arcLength' | 'status.radius' | 'status.continuousTotal' | 'status.area' | 'status.lengthTotal' | 'status.areaTotal' | 'status.zoomLayer' | 'status.loadFailed' | 'status.noLayout' | 'status.loadingChunks' | 'status.loadingOsnap' | 'status.buildingOsnap' | 'package.title' | 'package.hint' | 'package.hintUrlOnly' | 'package.chooseFolder' | 'package.urlPlaceholder' | 'package.openUrl' | 'package.urlRequired' | 'package.manifestNotFound' | 'package.invalidManifest' | 'package.folderMissingManifest' | 'package.folderUnsupported' | 'package.loadFailed' | 'access.title' | 'access.passwordPrompt' | 'access.passwordPlaceholder' | 'access.unlock' | 'access.passwordRequired' | 'access.wrongPassword' | 'access.expired' | 'access.expiredTitle' | 'access.expiredDetail' | 'access.expiresAt' | 'access.badgeExpires' | 'access.badgeCountdown' | 'access.tooManyAttempts';
|
|
20
|
+
export type AcExHtmlMessageKey = 'toolbar.viewerTools' | 'toolbar.select' | 'toolbar.pan' | 'toolbar.zoom' | 'toolbar.zoomExtents' | 'toolbar.zoomSmartExtents' | 'toolbar.zoomWindow' | 'toolbar.zoomSaved' | 'toolbar.zoomOriginal' | 'toolbar.measureDistance' | 'toolbar.measureContinuous' | 'toolbar.measureAngle' | 'toolbar.measureArc' | 'toolbar.measureRadius' | 'toolbar.measureArea' | 'toolbar.measureCoordinate' | 'toolbar.clearMeasurements' | 'toolbar.measureHide' | 'toolbar.measureShow' | 'toolbar.measureImport' | 'toolbar.measureExport' | 'toolbar.measurementPanel' | 'toolbar.measure' | 'toolbar.annotation' | 'toolbar.markupCloud' | 'toolbar.markupCallout' | 'toolbar.markupText' | 'toolbar.markupRect' | 'toolbar.markupCircle' | 'toolbar.markupArrow' | 'toolbar.markupStamp' | 'toolbar.markupPanel' | 'toolbar.markupHide' | 'toolbar.markupShow' | 'toolbar.clearMarkups' | 'toolbar.markupImport' | 'toolbar.markupExport' | 'toolbar.snap' | 'toolbar.layers' | 'toolbar.layout' | 'toolbar.settings' | 'toolbar.simulatedMouseOn' | 'toolbar.simulatedMouseOff' | 'toolbar.themeLight' | 'toolbar.themeDark' | 'toolbar.switchBg' | 'toolbar.language' | 'toolbar.localeEn' | 'toolbar.localeZh' | 'toolbar.localeJa' | 'toolbar.localeKo' | 'toolbar.localeCs' | 'toolbar.localeTr' | 'toolbar.localeAr' | 'toolbar.collapse' | 'toolbar.expand' | 'toolbar.moreOverflow' | 'settings.ortho' | 'settings.polar' | 'settings.polarAngles' | 'drawStyle.color' | 'drawStyle.fontSize' | 'drawStyle.pickerTitle' | 'drawStyle.close' | 'drawStyle.ok' | 'drawStyle.cancel' | 'drawStyle.index' | 'drawStyle.rgb' | 'drawStyle.input' | 'drawStyle.inputPlaceholder' | 'shortCutToolbar.more' | 'shortCutToolbar.undo' | 'shortCutToolbar.redo' | 'shortCutToolbar.erase' | 'shortCutToolbar.collapse' | 'shortCutToolbar.expand' | 'textHeight.title' | 'textHeight.close' | 'textHeight.ok' | 'textHeight.cancel' | 'textHeight.adaptive' | 'textHeight.custom' | 'textHeight.customPlaceholder' | 'textHeight.fromScreen' | 'textHeight.fromScreenHint' | 'textHeight.screenPxPlaceholder' | 'textHeight.screenUnit' | 'textHeight.convert' | 'entityPick.cancel' | 'layers.title' | 'layers.close' | 'layers.showAll' | 'layers.hideAll' | 'layers.zoomTo' | 'review.title' | 'review.close' | 'review.searchPlaceholder' | 'review.empty' | 'review.type' | 'review.status' | 'review.author' | 'review.summary' | 'review.details' | 'review.closeDetails' | 'review.label' | 'review.comment' | 'review.zoomTo' | 'review.delete' | 'review.clear' | 'review.statusValues.open' | 'review.statusValues.question' | 'review.statusValues.answered' | 'review.statusValues.closed' | 'measurePanel.title' | 'measurePanel.close' | 'measurePanel.filterGroup' | 'measurePanel.filterDistance' | 'measurePanel.filterArc' | 'measurePanel.filterRadius' | 'measurePanel.filterAngle' | 'measurePanel.filterArea' | 'measurePanel.empty' | 'measurePanel.type' | 'measurePanel.value' | 'measurePanel.delete' | 'measurePanel.clear' | 'session.length' | 'session.angle' | 'session.dx' | 'session.dy' | 'session.x' | 'session.y' | 'session.confirm' | 'session.cancel' | 'session.help' | 'session.back' | 'session.collapse' | 'session.expand' | 'session.undo' | 'touchPointTutorial.title' | 'touchPointTutorial.description' | 'touchPointTutorial.snoozeToday' | 'touchPointTutorial.hideForever' | 'touchPointTutorial.ok' | 'status.ready' | 'status.zoomWindowHint' | 'status.measureDistanceHint' | 'status.measureContinuousHint' | 'status.measureAngleHint' | 'status.measureArcHint' | 'status.measureRadiusHint' | 'status.measureAreaHint' | 'status.measureCoordinateHint' | 'status.measureExported' | 'status.measureImported' | 'status.measureImportFailed' | 'status.markupCloudHint' | 'status.markupCalloutHint' | 'status.markupTextHint' | 'status.markupRectHint' | 'status.markupCircleHint' | 'status.markupArrowHint' | 'status.markupStampHint' | 'status.markupArrowEndHint' | 'status.markupRectCornerHint' | 'status.markupCloudCornerHint' | 'status.markupCalloutAnchorHint' | 'status.markupCircleRadiusHint' | 'status.markupTextPrompt' | 'status.markupTextEditHint' | 'status.markupShapeCalloutHint' | 'status.markupDefaultLabel' | 'status.markupSelected' | 'status.markupSelectedCount' | 'status.markupCount' | 'status.markupExported' | 'status.markupImported' | 'status.markupImportFailed' | 'status.distance' | 'status.coordinates' | 'status.angle' | 'status.arcLength' | 'status.radius' | 'status.continuousTotal' | 'status.area' | 'status.lengthTotal' | 'status.areaTotal' | 'status.zoomLayer' | 'status.loadFailed' | 'status.noLayout' | 'status.loadingChunks' | 'status.loadingOsnap' | 'status.buildingOsnap' | 'package.title' | 'package.hint' | 'package.hintUrlOnly' | 'package.chooseFolder' | 'package.urlPlaceholder' | 'package.openUrl' | 'package.urlRequired' | 'package.manifestNotFound' | 'package.invalidManifest' | 'package.folderMissingManifest' | 'package.folderUnsupported' | 'package.loadFailed' | 'access.title' | 'access.passwordPrompt' | 'access.passwordPlaceholder' | 'access.unlock' | 'access.passwordRequired' | 'access.wrongPassword' | 'access.expired' | 'access.expiredTitle' | 'access.expiredDetail' | 'access.expiresAt' | 'access.badgeExpires' | 'access.badgeCountdown' | 'access.tooManyAttempts';
|
|
21
|
+
/**
|
|
22
|
+
* Nested string table used for locale message lookup.
|
|
23
|
+
* @internal
|
|
24
|
+
*/
|
|
25
|
+
interface AcExMessageTree {
|
|
26
|
+
[key: string]: string | AcExMessageTree;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Message trees for every supported locale. Exported for the locale
|
|
30
|
+
* completeness test only.
|
|
31
|
+
* @internal
|
|
32
|
+
*/
|
|
33
|
+
export declare const ACEX_HTML_MESSAGES: Record<AcExHtmlLocale, AcExMessageTree>;
|
|
21
34
|
/**
|
|
22
35
|
* Type guard for {@link AcExHtmlLocale}.
|
|
23
36
|
*
|
|
@@ -104,4 +117,5 @@ export declare class AcExHtmlI18n {
|
|
|
104
117
|
*/
|
|
105
118
|
applyToDocument(root?: ParentNode): void;
|
|
106
119
|
}
|
|
120
|
+
export {};
|
|
107
121
|
//# sourceMappingURL=AcExHtmlI18n.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AcExHtmlI18n.d.ts","sourceRoot":"","sources":["../src/AcExHtmlI18n.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AcExHtmlI18n.d.ts","sourceRoot":"","sources":["../src/AcExHtmlI18n.ts"],"names":[],"mappings":"AAGA,oDAAoD;AACpD,MAAM,MAAM,cAAc,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,I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