@digital-realty/ix-time 1.1.6 → 1.1.8
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/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Webcomponent ix-time following open-wc recommendations",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Digital Realty",
|
|
6
|
-
"version": "1.1.
|
|
6
|
+
"version": "1.1.8",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"main": "dist/index.js",
|
|
9
9
|
"module": "dist/index.js",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@adobe/lit-mobx": "^2.2.2",
|
|
30
|
-
"@digital-realty/ix-field": "^1.1.
|
|
30
|
+
"@digital-realty/ix-field": "^1.1.7",
|
|
31
31
|
"@material/web": "1.2.0",
|
|
32
32
|
"@vaadin/time-picker": "^24.6.1",
|
|
33
33
|
"@web/test-runner-commands": "^0.9.0",
|
|
@@ -42,9 +42,9 @@
|
|
|
42
42
|
"@open-wc/testing": "^3.1.6",
|
|
43
43
|
"@typescript-eslint/eslint-plugin": "^5.48.0",
|
|
44
44
|
"@typescript-eslint/parser": "^5.48.0",
|
|
45
|
-
"@web/dev-server": "^0.
|
|
45
|
+
"@web/dev-server": "^0.4.6",
|
|
46
46
|
"@web/dev-server-import-maps": "^0.2.1",
|
|
47
|
-
"@web/test-runner": "^0.
|
|
47
|
+
"@web/test-runner": "^0.20.2",
|
|
48
48
|
"concurrently": "^9.1.0",
|
|
49
49
|
"eslint": "^8.31.0",
|
|
50
50
|
"eslint-config-prettier": "^8.3.0",
|
|
@@ -105,5 +105,5 @@
|
|
|
105
105
|
"README.md",
|
|
106
106
|
"LICENSE"
|
|
107
107
|
],
|
|
108
|
-
"gitHead": "
|
|
108
|
+
"gitHead": "efb86e89e9bfdb5a9a797dd223331ad6455b692c"
|
|
109
109
|
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
declare class DateFormatState {
|
|
2
|
-
constructor();
|
|
3
|
-
preferredDateFormat: string;
|
|
4
|
-
preferredTimeFormat: string;
|
|
5
|
-
get isHydrated(): boolean;
|
|
6
|
-
hydrateStore(): Promise<void>;
|
|
7
|
-
clearStoredDate(): Promise<void>;
|
|
8
|
-
getStoredData(): Promise<this | null>;
|
|
9
|
-
}
|
|
10
|
-
export declare const dateFormatState: DateFormatState;
|
|
11
|
-
export {};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { makeAutoObservable } from 'mobx';
|
|
2
|
-
import { makePersistable, isHydrated, hydrateStore, clearPersistedStore, getPersistedStore, } from 'mobx-persist-store';
|
|
3
|
-
class DateFormatState {
|
|
4
|
-
constructor() {
|
|
5
|
-
this.preferredDateFormat = 'dd/MM/yyyy';
|
|
6
|
-
this.preferredTimeFormat = 'hh:mm';
|
|
7
|
-
makeAutoObservable(this);
|
|
8
|
-
makePersistable(this, {
|
|
9
|
-
name: 'date-format',
|
|
10
|
-
properties: ['preferredDateFormat', 'preferredTimeFormat'],
|
|
11
|
-
storage: window.localStorage,
|
|
12
|
-
});
|
|
13
|
-
}
|
|
14
|
-
get isHydrated() {
|
|
15
|
-
return isHydrated(this);
|
|
16
|
-
}
|
|
17
|
-
async hydrateStore() {
|
|
18
|
-
await hydrateStore(this);
|
|
19
|
-
}
|
|
20
|
-
async clearStoredDate() {
|
|
21
|
-
await clearPersistedStore(this);
|
|
22
|
-
}
|
|
23
|
-
async getStoredData() {
|
|
24
|
-
return getPersistedStore(this);
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
export const dateFormatState = new DateFormatState();
|
|
28
|
-
//# sourceMappingURL=date-format-state.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"date-format-state.js","sourceRoot":"","sources":["../../src/state/date-format-state.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,MAAM,CAAC;AAC1C,OAAO,EACL,eAAe,EACf,UAAU,EACV,YAAY,EACZ,mBAAmB,EACnB,iBAAiB,GAClB,MAAM,oBAAoB,CAAC;AAE5B,MAAM,eAAe;IACnB;QASO,wBAAmB,GAAW,YAAY,CAAC;QAE3C,wBAAmB,GAAW,OAAO,CAAC;QAV3C,kBAAkB,CAAC,IAAI,CAAC,CAAC;QACzB,eAAe,CAAC,IAAI,EAAE;YACpB,IAAI,EAAE,aAAa;YACnB,UAAU,EAAE,CAAC,qBAAqB,EAAE,qBAAqB,CAAC;YAC1D,OAAO,EAAE,MAAM,CAAC,YAAY;SAC7B,CAAC,CAAC;IACL,CAAC;IAMD,IAAI,UAAU;QACZ,OAAO,UAAU,CAAC,IAAI,CAAC,CAAC;IAC1B,CAAC;IAED,KAAK,CAAC,YAAY;QAChB,MAAM,YAAY,CAAC,IAAI,CAAC,CAAC;IAC3B,CAAC;IAED,KAAK,CAAC,eAAe;QACnB,MAAM,mBAAmB,CAAC,IAAI,CAAC,CAAC;IAClC,CAAC;IAED,KAAK,CAAC,aAAa;QACjB,OAAO,iBAAiB,CAAC,IAAI,CAAC,CAAC;IACjC,CAAC;CACF;AAED,MAAM,CAAC,MAAM,eAAe,GAAG,IAAI,eAAe,EAAE,CAAC","sourcesContent":["import { makeAutoObservable } from 'mobx';\nimport {\n makePersistable,\n isHydrated,\n hydrateStore,\n clearPersistedStore,\n getPersistedStore,\n} from 'mobx-persist-store';\n\nclass DateFormatState {\n constructor() {\n makeAutoObservable(this);\n makePersistable(this, {\n name: 'date-format',\n properties: ['preferredDateFormat', 'preferredTimeFormat'],\n storage: window.localStorage,\n });\n }\n\n public preferredDateFormat: string = 'dd/MM/yyyy';\n\n public preferredTimeFormat: string = 'hh:mm';\n\n get isHydrated() {\n return isHydrated(this);\n }\n\n async hydrateStore() {\n await hydrateStore(this);\n }\n\n async clearStoredDate() {\n await clearPersistedStore(this);\n }\n\n async getStoredData() {\n return getPersistedStore(this);\n }\n}\n\nexport const dateFormatState = new DateFormatState();\n"]}
|