@3mo/date-time-fields 0.17.2 โ 0.17.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/CHANGELOG.md +3 -0
- package/dist/controller.d.ts +8 -0
- package/dist/controller.d.ts.map +1 -0
- package/dist/controller.js +7 -0
- package/dist/date-time/FieldDateTimeController.d.ts +3 -3
- package/dist/date-time/FieldDateTimeController.d.ts.map +1 -1
- package/dist/date-time-range/FieldDateTimeRangeController.d.ts +3 -3
- package/dist/date-time-range/FieldDateTimeRangeController.d.ts.map +1 -1
- package/package.json +6 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
## 0.17.3 (2026-09-29)
|
|
2
|
+
- **๐ ๏ธ Refactoring**: Isolate the controller ([c9e1df0](https://github.com/3mo-esolutions/web-components/commit/c9e1df0fa638220cc2242b124985cbd0ebb793e0))
|
|
3
|
+
|
|
1
4
|
## 0.17.2 (2026-09-28)
|
|
2
5
|
- **๐งน Chore**: Ship the German translation as the opt-in `translations/de` entry ([e5bfb84](https://github.com/3mo-esolutions/web-components/commit/e5bfb84836cf2c9c50c69f99385d8d15e45706fe))
|
|
3
6
|
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** The segmenting and value controllers alone, without the Material field elements the package root registers. */
|
|
2
|
+
export * from './FieldDateTimePrecision.js';
|
|
3
|
+
export * from './segments/index.js';
|
|
4
|
+
export * from './date-time/FieldDateTimeControllerBase.js';
|
|
5
|
+
export * from './date-time/FieldDateTimeController.js';
|
|
6
|
+
export * from './date-time-range/FieldDateTimeRangeController.js';
|
|
7
|
+
export * from './time/FieldTimeController.js';
|
|
8
|
+
//# sourceMappingURL=controller.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"controller.d.ts","sourceRoot":"","sources":["../controller.ts"],"names":[],"mappings":"AAAA,kHAAkH;AAClH,cAAc,6BAA6B,CAAA;AAC3C,cAAc,qBAAqB,CAAA;AACnC,cAAc,4CAA4C,CAAA;AAC1D,cAAc,wCAAwC,CAAA;AACtD,cAAc,mDAAmD,CAAA;AACjE,cAAc,+BAA+B,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** The segmenting and value controllers alone, without the Material field elements the package root registers. */
|
|
2
|
+
export * from './FieldDateTimePrecision.js';
|
|
3
|
+
export * from './segments/index.js';
|
|
4
|
+
export * from './date-time/FieldDateTimeControllerBase.js';
|
|
5
|
+
export * from './date-time/FieldDateTimeController.js';
|
|
6
|
+
export * from './date-time-range/FieldDateTimeRangeController.js';
|
|
7
|
+
export * from './time/FieldTimeController.js';
|
|
@@ -17,10 +17,10 @@ import { FieldDateTimeControllerBase, type FieldDateTimePreset } from './FieldDa
|
|
|
17
17
|
* @ssr false
|
|
18
18
|
*/
|
|
19
19
|
export declare class FieldDateTimeController<THost extends ReactiveControllerHost = ReactiveControllerHost> extends FieldDateTimeControllerBase<Date, THost> {
|
|
20
|
-
readonly segments: import("../
|
|
20
|
+
readonly segments: import("../controller.js").DateTimeSegmentsController<THost>;
|
|
21
21
|
get group(): import("@a11d/lit").ElementRef<HTMLElement, void>;
|
|
22
|
-
get segment(): import("@a11d/lit").ElementRefs<HTMLElement, import("../
|
|
23
|
-
protected get segmentsControllers(): import("../
|
|
22
|
+
get segment(): import("@a11d/lit").ElementRefs<HTMLElement, import("../controller.js").DateTimeSegment>;
|
|
23
|
+
protected get segmentsControllers(): import("../controller.js").DateTimeSegmentsController<THost>[];
|
|
24
24
|
get selectedDate(): import("@3mo/date-time").DateTime | undefined;
|
|
25
25
|
get calendarValue(): import("@3mo/date-time").DateTimeRange;
|
|
26
26
|
/** A picked day keeps the time the picker stands at; the value starts at the precision's unit. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FieldDateTimeController.d.ts","sourceRoot":"","sources":["../../date-time/FieldDateTimeController.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,WAAW,CAAA;AACvD,OAAO,mBAAmB,CAAA;AAC1B,OAAO,EAAE,2BAA2B,EAAE,KAAK,mBAAmB,EAAE,MAAM,kCAAkC,CAAA;AAGxG;;;;;;;;;;;;;;GAcG;AACH,qBAAa,uBAAuB,CAAC,KAAK,SAAS,sBAAsB,GAAG,sBAAsB,CAAE,SAAQ,2BAA2B,CAAC,IAAI,EAAE,KAAK,CAAC;IACnJ,QAAQ,CAAC,QAAQ
|
|
1
|
+
{"version":3,"file":"FieldDateTimeController.d.ts","sourceRoot":"","sources":["../../date-time/FieldDateTimeController.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,WAAW,CAAA;AACvD,OAAO,mBAAmB,CAAA;AAC1B,OAAO,EAAE,2BAA2B,EAAE,KAAK,mBAAmB,EAAE,MAAM,kCAAkC,CAAA;AAGxG;;;;;;;;;;;;;;GAcG;AACH,qBAAa,uBAAuB,CAAC,KAAK,SAAS,sBAAsB,GAAG,sBAAsB,CAAE,SAAQ,2BAA2B,CAAC,IAAI,EAAE,KAAK,CAAC;IACnJ,QAAQ,CAAC,QAAQ,+DAId;IAEH,IAAI,KAAK,sDAER;IAED,IAAI,OAAO,6FAEV;IAED,SAAS,KAAK,mBAAmB,mEAEhC;IAED,IAAI,YAAY,kDAEf;IAED,IAAI,aAAa,2CAEhB;IAED,kGAAkG;IAClG,IAAI,CAAC,IAAI,EAAE,QAAQ;IAKnB,SAAS,CAAC,OAAO,CAAC,KAAK,EAAE,IAAI;IAI7B,SAAS,KAAK,cAAc,IAAI,aAAa,CAAC,aAAa,CAAC,mBAAmB,CAAC,IAAI,CAAC,CAAC,CAAC,CAwBtF;CACD"}
|
|
@@ -24,12 +24,12 @@ export type FieldDateTimeRangeSelection = 'start' | 'end';
|
|
|
24
24
|
*/
|
|
25
25
|
export declare class FieldDateTimeRangeController<THost extends ReactiveControllerHost = ReactiveControllerHost> extends FieldDateTimeControllerBase<DateTimeRange, THost> {
|
|
26
26
|
private _selection;
|
|
27
|
-
readonly startSegments: import("../
|
|
28
|
-
readonly endSegments: import("../
|
|
27
|
+
readonly startSegments: import("../controller.js").DateTimeSegmentsController<THost>;
|
|
28
|
+
readonly endSegments: import("../controller.js").DateTimeSegmentsController<THost>;
|
|
29
29
|
/** The end a picker edits. Entering an end's segments selects it. */
|
|
30
30
|
get selection(): FieldDateTimeRangeSelection;
|
|
31
31
|
set selection(value: FieldDateTimeRangeSelection);
|
|
32
|
-
protected get segmentsControllers(): import("../
|
|
32
|
+
protected get segmentsControllers(): import("../controller.js").DateTimeSegmentsController<THost>[];
|
|
33
33
|
get selectedDate(): import("@3mo/date-time").DateTime | undefined;
|
|
34
34
|
get calendarValue(): import("@3mo/date-time").DateTimeRange | undefined;
|
|
35
35
|
/** An end without a date leaves the picker where it stands. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FieldDateTimeRangeController.d.ts","sourceRoot":"","sources":["../../date-time-range/FieldDateTimeRangeController.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,WAAW,CAAA;AACvD,OAAO,mBAAmB,CAAA;AAC1B,OAAO,EAAE,2BAA2B,EAAE,KAAK,mBAAmB,EAAE,MAAM,6CAA6C,CAAA;AACnH,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAA;AAGrE,2CAA2C;AAC3C,MAAM,MAAM,2BAA2B,GAAG,OAAO,GAAG,KAAK,CAAA;AAEzD;;;;;;;;;;;;;;;;;GAiBG;AACH,qBAAa,4BAA4B,CAAC,KAAK,SAAS,sBAAsB,GAAG,sBAAsB,CAAE,SAAQ,2BAA2B,CAAC,aAAa,EAAE,KAAK,CAAC;IACjK,OAAO,CAAC,UAAU,CAAuC;IAEzD,QAAQ,CAAC,aAAa
|
|
1
|
+
{"version":3,"file":"FieldDateTimeRangeController.d.ts","sourceRoot":"","sources":["../../date-time-range/FieldDateTimeRangeController.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,WAAW,CAAA;AACvD,OAAO,mBAAmB,CAAA;AAC1B,OAAO,EAAE,2BAA2B,EAAE,KAAK,mBAAmB,EAAE,MAAM,6CAA6C,CAAA;AACnH,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAA;AAGrE,2CAA2C;AAC3C,MAAM,MAAM,2BAA2B,GAAG,OAAO,GAAG,KAAK,CAAA;AAEzD;;;;;;;;;;;;;;;;;GAiBG;AACH,qBAAa,4BAA4B,CAAC,KAAK,SAAS,sBAAsB,GAAG,sBAAsB,CAAE,SAAQ,2BAA2B,CAAC,aAAa,EAAE,KAAK,CAAC;IACjK,OAAO,CAAC,UAAU,CAAuC;IAEzD,QAAQ,CAAC,aAAa,+DAOnB;IAEH,QAAQ,CAAC,WAAW,+DAOjB;IAEH,qEAAqE;IACrE,IAAI,SAAS,gCAEZ;IAED,IAAI,SAAS,CAAC,KAAK,6BAAA,EAMlB;IAED,SAAS,KAAK,mBAAmB,mEAEhC;IAED,IAAI,YAAY,kDAEf;IAED,IAAI,aAAa,uDAEhB;IAED,+DAA+D;cAC5C,mBAAmB;IAItC,mHAAmH;IACnH,IAAI,CAAC,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,sBAAsB;IAYtD,OAAO,CAAC,OAAO;IAMf,mGAAmG;IACnG,OAAO,CAAC,aAAa;IASrB,SAAS,CAAC,OAAO,CAAC,KAAK,EAAE,aAAa;IAItC,SAAS,KAAK,cAAc,IAAI,aAAa,CAAC,aAAa,CAAC,mBAAmB,CAAC,aAAa,CAAC,CAAC,CAAC,CAuB/F;CACD"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@3mo/date-time-fields",
|
|
3
|
-
"version": "0.17.
|
|
3
|
+
"version": "0.17.3",
|
|
4
4
|
"description": "Web components for date, date-time, time and range fields with locale-aware segmented entry and a calendar picker.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -30,6 +30,11 @@
|
|
|
30
30
|
"types": "./dist/index.d.ts",
|
|
31
31
|
"default": "./dist/index.js"
|
|
32
32
|
},
|
|
33
|
+
"./controller": {
|
|
34
|
+
"source": "./controller.ts",
|
|
35
|
+
"types": "./dist/controller.d.ts",
|
|
36
|
+
"default": "./dist/controller.js"
|
|
37
|
+
},
|
|
33
38
|
"./translations/*": {
|
|
34
39
|
"source": "./translations/*.ts",
|
|
35
40
|
"types": "./dist/translations/*.d.ts",
|