wacom 21.1.11 → 21.1.12
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/fesm2022/wacom.mjs +35 -2
- package/fesm2022/wacom.mjs.map +1 -1
- package/package.json +1 -1
- package/types/wacom.d.ts +15 -1
package/fesm2022/wacom.mjs
CHANGED
|
@@ -10,7 +10,7 @@ import { toObservable } from '@angular/core/rxjs-interop';
|
|
|
10
10
|
import * as i1$1 from '@angular/common/http';
|
|
11
11
|
import { HttpHeaders, HttpErrorResponse, provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
|
|
12
12
|
import * as i1$2 from '@angular/common';
|
|
13
|
-
import { CommonModule } from '@angular/common';
|
|
13
|
+
import { DOCUMENT, CommonModule } from '@angular/common';
|
|
14
14
|
import { FormsModule } from '@angular/forms';
|
|
15
15
|
|
|
16
16
|
const CONFIG_TOKEN = new InjectionToken('config');
|
|
@@ -4195,6 +4195,39 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.2", ngImpor
|
|
|
4195
4195
|
args: [{ providedIn: 'root' }]
|
|
4196
4196
|
}], ctorParameters: () => [] });
|
|
4197
4197
|
|
|
4198
|
+
class ThemeService {
|
|
4199
|
+
constructor() {
|
|
4200
|
+
this.doc = inject(DOCUMENT);
|
|
4201
|
+
}
|
|
4202
|
+
setRadius(radius) {
|
|
4203
|
+
this.doc.documentElement.dataset['radius'] = radius;
|
|
4204
|
+
localStorage.setItem('theme.radius', radius);
|
|
4205
|
+
}
|
|
4206
|
+
setMode(mode) {
|
|
4207
|
+
this.doc.documentElement.dataset['mode'] = mode;
|
|
4208
|
+
localStorage.setItem('theme.mode', mode);
|
|
4209
|
+
}
|
|
4210
|
+
setDensity(density) {
|
|
4211
|
+
this.doc.documentElement.dataset['density'] = density;
|
|
4212
|
+
localStorage.setItem('theme.density', density);
|
|
4213
|
+
}
|
|
4214
|
+
init() {
|
|
4215
|
+
this.doc.documentElement.dataset['mode'] =
|
|
4216
|
+
localStorage.getItem('theme.mode') || 'light';
|
|
4217
|
+
this.doc.documentElement.dataset['density'] =
|
|
4218
|
+
localStorage.getItem('theme.density') ||
|
|
4219
|
+
'comfortable';
|
|
4220
|
+
this.doc.documentElement.dataset['radius'] =
|
|
4221
|
+
localStorage.getItem('theme.radius') || 'rounded';
|
|
4222
|
+
}
|
|
4223
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.2", ngImport: i0, type: ThemeService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4224
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.2", ngImport: i0, type: ThemeService, providedIn: 'root' }); }
|
|
4225
|
+
}
|
|
4226
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.2", ngImport: i0, type: ThemeService, decorators: [{
|
|
4227
|
+
type: Injectable,
|
|
4228
|
+
args: [{ providedIn: 'root' }]
|
|
4229
|
+
}] });
|
|
4230
|
+
|
|
4198
4231
|
function provideWacom(config = DEFAULT_CONFIG) {
|
|
4199
4232
|
return makeEnvironmentProviders([
|
|
4200
4233
|
{ provide: CONFIG_TOKEN, useValue: config },
|
|
@@ -4267,5 +4300,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.2", ngImpor
|
|
|
4267
4300
|
* Generated bundle index. Do not edit.
|
|
4268
4301
|
*/
|
|
4269
4302
|
|
|
4270
|
-
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, TimeService, UtilService, WacomModule, provideWacom };
|
|
4303
|
+
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, UtilService, WacomModule, provideWacom };
|
|
4271
4304
|
//# sourceMappingURL=wacom.mjs.map
|