wacom 21.0.2 → 21.0.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/fesm2022/wacom.mjs +5 -40
- package/fesm2022/wacom.mjs.map +1 -1
- package/package.json +1 -1
- package/types/wacom.d.ts +2 -25
package/fesm2022/wacom.mjs
CHANGED
|
@@ -240,24 +240,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0", ngImpor
|
|
|
240
240
|
type: Optional
|
|
241
241
|
}] }] });
|
|
242
242
|
|
|
243
|
-
/**
|
|
244
|
-
* BaseComponent is an abstract class that provides basic functionality for managing the current timestamp.
|
|
245
|
-
*/
|
|
246
|
-
class BaseComponent {
|
|
247
|
-
constructor() {
|
|
248
|
-
/**
|
|
249
|
-
* The current timestamp in milliseconds since the Unix epoch.
|
|
250
|
-
*/
|
|
251
|
-
this.now = new Date().getTime();
|
|
252
|
-
}
|
|
253
|
-
/**
|
|
254
|
-
* Refreshes the `now` property with the current timestamp.
|
|
255
|
-
*/
|
|
256
|
-
refreshNow() {
|
|
257
|
-
this.now = new Date().getTime();
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
|
-
|
|
261
243
|
// Core utilities and helpers for the Wacom app
|
|
262
244
|
// Add capitalize method to String prototype if it doesn't already exist
|
|
263
245
|
if (!String.prototype.capitalize) {
|
|
@@ -856,8 +838,9 @@ class CrudComponent {
|
|
|
856
838
|
}
|
|
857
839
|
/** Requests confirmation before deleting the provided document. */
|
|
858
840
|
async delete(doc) {
|
|
859
|
-
|
|
860
|
-
|
|
841
|
+
this.crudService.delete(doc).subscribe(() => {
|
|
842
|
+
this.setDocuments();
|
|
843
|
+
});
|
|
861
844
|
}
|
|
862
845
|
/** Opens a modal to edit the document's unique URL. */
|
|
863
846
|
mutateUrl(doc) {
|
|
@@ -1250,23 +1233,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0", ngImpor
|
|
|
1250
1233
|
}]
|
|
1251
1234
|
}] });
|
|
1252
1235
|
|
|
1253
|
-
class BaseService {
|
|
1254
|
-
constructor() {
|
|
1255
|
-
this.now = new Date().getTime();
|
|
1256
|
-
}
|
|
1257
|
-
refreshNow() {
|
|
1258
|
-
this.now = new Date().getTime();
|
|
1259
|
-
}
|
|
1260
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0", ngImport: i0, type: BaseService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1261
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0", ngImport: i0, type: BaseService, providedIn: 'root' }); }
|
|
1262
|
-
}
|
|
1263
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0", ngImport: i0, type: BaseService, decorators: [{
|
|
1264
|
-
type: Injectable,
|
|
1265
|
-
args: [{
|
|
1266
|
-
providedIn: 'root',
|
|
1267
|
-
}]
|
|
1268
|
-
}] });
|
|
1269
|
-
|
|
1270
1236
|
class EmitterService {
|
|
1271
1237
|
constructor() {
|
|
1272
1238
|
this._signals = new Map();
|
|
@@ -2083,9 +2049,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0", ngImpor
|
|
|
2083
2049
|
*
|
|
2084
2050
|
* @template Document - The type of the document the service handles.
|
|
2085
2051
|
*/
|
|
2086
|
-
class CrudService
|
|
2052
|
+
class CrudService {
|
|
2087
2053
|
constructor(_config) {
|
|
2088
|
-
super();
|
|
2089
2054
|
this._config = _config;
|
|
2090
2055
|
/**
|
|
2091
2056
|
* URL for the API.
|
|
@@ -3890,5 +3855,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0", ngImpor
|
|
|
3890
3855
|
* Generated bundle index. Do not edit.
|
|
3891
3856
|
*/
|
|
3892
3857
|
|
|
3893
|
-
export { ArrPipe,
|
|
3858
|
+
export { ArrPipe, CONFIG_TOKEN, ClickOutsideDirective, CoreService, CrudComponent, CrudService, DEFAULT_CONFIG, DomService, EmitterService, HttpService, MetaGuard, MetaService, MongodatePipe, NetworkService, NumberPipe, PaginationPipe, RtcService, SafePipe, SearchPipe, SocketService, SplicePipe, SplitPipe, StoreService, TimeService, UtilService, WacomModule, provideWacom };
|
|
3894
3859
|
//# sourceMappingURL=wacom.mjs.map
|