wacom 21.2.3 → 21.2.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/README.md +58 -64
- package/fesm2022/wacom.mjs +112 -150
- package/fesm2022/wacom.mjs.map +1 -1
- package/package.json +2 -2
- package/types/wacom.d.ts +16 -15
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wacom",
|
|
3
|
-
"version": "21.2.
|
|
3
|
+
"version": "21.2.4",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": "WebArtWork/wacom",
|
|
6
6
|
"funding": [
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"network",
|
|
57
57
|
"theme",
|
|
58
58
|
"i18n",
|
|
59
|
-
"
|
|
59
|
+
"translate"
|
|
60
60
|
],
|
|
61
61
|
"module": "fesm2022/wacom.mjs",
|
|
62
62
|
"typings": "types/wacom.d.ts",
|
package/types/wacom.d.ts
CHANGED
|
@@ -1358,12 +1358,12 @@ declare class MetaGuard {
|
|
|
1358
1358
|
static ɵprov: i0.ɵɵInjectableDeclaration<MetaGuard>;
|
|
1359
1359
|
}
|
|
1360
1360
|
|
|
1361
|
-
interface
|
|
1361
|
+
interface Translate {
|
|
1362
1362
|
sourceText: string;
|
|
1363
1363
|
text: string;
|
|
1364
1364
|
}
|
|
1365
1365
|
|
|
1366
|
-
declare function
|
|
1366
|
+
declare function provideTranslate(translations?: Translate[]): EnvironmentProviders;
|
|
1367
1367
|
|
|
1368
1368
|
declare class TranslateDirective {
|
|
1369
1369
|
private readonly _platformId;
|
|
@@ -1381,7 +1381,7 @@ declare class TranslateDirective {
|
|
|
1381
1381
|
*/
|
|
1382
1382
|
readonly translate: i0.InputSignal<string>;
|
|
1383
1383
|
private readonly _el;
|
|
1384
|
-
private readonly
|
|
1384
|
+
private readonly _translateService;
|
|
1385
1385
|
/**
|
|
1386
1386
|
* Captures the element's original rendered text (trimmed) after the first render.
|
|
1387
1387
|
*
|
|
@@ -1405,18 +1405,18 @@ declare class TranslatePipe implements PipeTransform {
|
|
|
1405
1405
|
* - The returned value is reactive via signals: when `setMany()` / `setOne()`
|
|
1406
1406
|
* updates the underlying signal, templates re-render automatically.
|
|
1407
1407
|
*
|
|
1408
|
-
* @param text -
|
|
1408
|
+
* @param text - Translate key (typically the source text).
|
|
1409
1409
|
* @returns The translated string for the current in-memory/store state.
|
|
1410
1410
|
*/
|
|
1411
1411
|
transform(text: string): string;
|
|
1412
|
-
private
|
|
1412
|
+
private _translateService;
|
|
1413
1413
|
static ɵfac: i0.ɵɵFactoryDeclaration<TranslatePipe, never>;
|
|
1414
1414
|
static ɵpipe: i0.ɵɵPipeDeclaration<TranslatePipe, "translate", true>;
|
|
1415
1415
|
}
|
|
1416
1416
|
|
|
1417
|
-
type
|
|
1417
|
+
type Translates = Record<string, WritableSignal<string>>;
|
|
1418
1418
|
|
|
1419
|
-
declare class
|
|
1419
|
+
declare class TranslateService {
|
|
1420
1420
|
private _storeService;
|
|
1421
1421
|
/**
|
|
1422
1422
|
* Internal registry of translation signals.
|
|
@@ -1463,7 +1463,7 @@ declare class TranslationService {
|
|
|
1463
1463
|
* @param translations - Array of translation objects
|
|
1464
1464
|
* containing sourceText and translated text.
|
|
1465
1465
|
*/
|
|
1466
|
-
setMany(translations:
|
|
1466
|
+
setMany(translations: Translate[]): void;
|
|
1467
1467
|
/**
|
|
1468
1468
|
* Updates a single translation entry.
|
|
1469
1469
|
*
|
|
@@ -1474,10 +1474,10 @@ declare class TranslationService {
|
|
|
1474
1474
|
* The signal must already exist (created via `translate()`),
|
|
1475
1475
|
* otherwise this will throw an error.
|
|
1476
1476
|
*
|
|
1477
|
-
* @param translation -
|
|
1477
|
+
* @param translation - Translate object containing
|
|
1478
1478
|
* sourceText and translated text.
|
|
1479
1479
|
*/
|
|
1480
|
-
setOne(translation:
|
|
1480
|
+
setOne(translation: Translate): void;
|
|
1481
1481
|
/**
|
|
1482
1482
|
* Returns the internal translation signal registry.
|
|
1483
1483
|
*
|
|
@@ -1485,7 +1485,8 @@ declare class TranslationService {
|
|
|
1485
1485
|
*
|
|
1486
1486
|
* @returns A record mapping sourceText keys to WritableSignal<string>.
|
|
1487
1487
|
*/
|
|
1488
|
-
get():
|
|
1488
|
+
get(): Translates;
|
|
1489
|
+
private _hydrateTranslations;
|
|
1489
1490
|
private _setTranslation;
|
|
1490
1491
|
/**
|
|
1491
1492
|
* Persists the current in-memory translations into the internal store.
|
|
@@ -1500,8 +1501,8 @@ declare class TranslationService {
|
|
|
1500
1501
|
* - Called after `setMany()` and `setOne()` to keep storage in sync.
|
|
1501
1502
|
*/
|
|
1502
1503
|
private _updateStorageTranslations;
|
|
1503
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
1504
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<
|
|
1504
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TranslateService, never>;
|
|
1505
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<TranslateService>;
|
|
1505
1506
|
}
|
|
1506
1507
|
|
|
1507
1508
|
/**
|
|
@@ -2155,5 +2156,5 @@ declare class WacomModule {
|
|
|
2155
2156
|
static ɵinj: i0.ɵɵInjectorDeclaration<WacomModule>;
|
|
2156
2157
|
}
|
|
2157
2158
|
|
|
2158
|
-
export { ArrPipe, CONFIG_TOKEN, ClickOutsideDirective, CoreService, CrudComponent, CrudService, DEFAULT_CONFIG, DEFAULT_HTTP_CONFIG, DEFAULT_NETWORK_CONFIG, DomService, EmitterService, HttpService, ManualDisabledDirective, ManualNameDirective, ManualReadonlyDirective, ManualTypeDirective, MetaGuard, MetaService, MongodatePipe, NETWORK_CONFIG, NetworkService, NumberPipe, PaginationPipe, RtcService, SafePipe, SearchPipe, SocketService, SplicePipe, SplitPipe, StoreService, ThemeService, TimeService, TranslateDirective, TranslatePipe,
|
|
2159
|
-
export type { Config, CrudConfig, CrudDocument, CrudOptions, CrudServiceInterface, DomComponent, GetConfig, HttpConfig, HttpHeaderType, MetaConfig, MetaDefaults, MetaPage, NetworkConfig, NetworkStatus, StoreConfig, StoreOptions, TableConfig, TableConfigButton, ThemeDensity, ThemeMode, ThemeRadius,
|
|
2159
|
+
export { ArrPipe, CONFIG_TOKEN, ClickOutsideDirective, CoreService, CrudComponent, CrudService, DEFAULT_CONFIG, DEFAULT_HTTP_CONFIG, DEFAULT_NETWORK_CONFIG, DomService, EmitterService, HttpService, ManualDisabledDirective, ManualNameDirective, ManualReadonlyDirective, ManualTypeDirective, MetaGuard, MetaService, MongodatePipe, NETWORK_CONFIG, NetworkService, NumberPipe, PaginationPipe, RtcService, SafePipe, SearchPipe, SocketService, SplicePipe, SplitPipe, StoreService, ThemeService, TimeService, TranslateDirective, TranslatePipe, TranslateService, UtilService, WacomModule, provideTranslate, provideWacom };
|
|
2160
|
+
export type { Config, CrudConfig, CrudDocument, CrudOptions, CrudServiceInterface, DomComponent, GetConfig, HttpConfig, HttpHeaderType, MetaConfig, MetaDefaults, MetaPage, NetworkConfig, NetworkStatus, StoreConfig, StoreOptions, TableConfig, TableConfigButton, ThemeDensity, ThemeMode, ThemeRadius, Translate, Translates, Viewport };
|