@momentum-design/components 0.139.4 → 0.139.6
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/dist/browser/index.js +180 -161
- package/dist/browser/index.js.map +3 -3
- package/dist/components/calendar/calendar.component.d.ts +15 -2
- package/dist/components/calendar/calendar.component.js +81 -14
- package/dist/components/calendar/calendar.styles.js +10 -0
- package/dist/components/calendar/index.d.ts +1 -0
- package/dist/components/calendar/index.js +1 -0
- package/dist/components/checkbox/checkbox.styles.js +1 -0
- package/dist/components/datepicker/datepicker.component.d.ts +7 -0
- package/dist/components/datepicker/datepicker.component.js +35 -10
- package/dist/custom-elements.json +126 -19
- package/dist/react/calendar/index.d.ts +3 -0
- package/dist/react/calendar/index.js +3 -0
- package/package.json +1 -1
|
@@ -173,8 +173,8 @@
|
|
|
173
173
|
"attribute": "disabled",
|
|
174
174
|
"reflects": true,
|
|
175
175
|
"inheritedFrom": {
|
|
176
|
-
"name": "
|
|
177
|
-
"module": "
|
|
176
|
+
"name": "DisabledMixin",
|
|
177
|
+
"module": "utils/mixins/DisabledMixin.js"
|
|
178
178
|
}
|
|
179
179
|
},
|
|
180
180
|
{
|
|
@@ -493,8 +493,8 @@
|
|
|
493
493
|
"default": "undefined",
|
|
494
494
|
"fieldName": "disabled",
|
|
495
495
|
"inheritedFrom": {
|
|
496
|
-
"name": "
|
|
497
|
-
"module": "src/
|
|
496
|
+
"name": "DisabledMixin",
|
|
497
|
+
"module": "src/utils/mixins/DisabledMixin.ts"
|
|
498
498
|
}
|
|
499
499
|
},
|
|
500
500
|
{
|
|
@@ -7217,6 +7217,14 @@
|
|
|
7217
7217
|
"description": "Background color for days within a range.",
|
|
7218
7218
|
"name": "--mdc-calendar-range-bg"
|
|
7219
7219
|
},
|
|
7220
|
+
{
|
|
7221
|
+
"description": "Background color for a provisional range.",
|
|
7222
|
+
"name": "--mdc-calendar-range-preview-bg"
|
|
7223
|
+
},
|
|
7224
|
+
{
|
|
7225
|
+
"description": "Text color for days within a provisional range.",
|
|
7226
|
+
"name": "--mdc-calendar-range-preview-text-color"
|
|
7227
|
+
},
|
|
7220
7228
|
{
|
|
7221
7229
|
"description": "Text color for days outside the current month.",
|
|
7222
7230
|
"name": "--mdc-calendar-day-outside-month-text-color"
|
|
@@ -7312,31 +7320,21 @@
|
|
|
7312
7320
|
},
|
|
7313
7321
|
{
|
|
7314
7322
|
"kind": "method",
|
|
7315
|
-
"name": "
|
|
7323
|
+
"name": "getDisplayedRange",
|
|
7316
7324
|
"privacy": "private",
|
|
7317
7325
|
"return": {
|
|
7318
7326
|
"type": {
|
|
7319
|
-
"text": "string"
|
|
7327
|
+
"text": "{ start?: string; end?: string }"
|
|
7320
7328
|
}
|
|
7321
7329
|
}
|
|
7322
7330
|
},
|
|
7323
7331
|
{
|
|
7324
7332
|
"kind": "method",
|
|
7325
|
-
"name": "
|
|
7326
|
-
"privacy": "private",
|
|
7327
|
-
"return": {
|
|
7328
|
-
"type": {
|
|
7329
|
-
"text": "string | undefined"
|
|
7330
|
-
}
|
|
7331
|
-
}
|
|
7332
|
-
},
|
|
7333
|
-
{
|
|
7334
|
-
"kind": "method",
|
|
7335
|
-
"name": "getRangeStart",
|
|
7333
|
+
"name": "getGridAriaLabel",
|
|
7336
7334
|
"privacy": "private",
|
|
7337
7335
|
"return": {
|
|
7338
7336
|
"type": {
|
|
7339
|
-
"text": "string
|
|
7337
|
+
"text": "string"
|
|
7340
7338
|
}
|
|
7341
7339
|
}
|
|
7342
7340
|
},
|
|
@@ -7377,6 +7375,24 @@
|
|
|
7377
7375
|
}
|
|
7378
7376
|
]
|
|
7379
7377
|
},
|
|
7378
|
+
{
|
|
7379
|
+
"kind": "method",
|
|
7380
|
+
"name": "handleDayPointerEnter",
|
|
7381
|
+
"privacy": "private",
|
|
7382
|
+
"return": {
|
|
7383
|
+
"type": {
|
|
7384
|
+
"text": "void"
|
|
7385
|
+
}
|
|
7386
|
+
},
|
|
7387
|
+
"parameters": [
|
|
7388
|
+
{
|
|
7389
|
+
"name": "dayInfo",
|
|
7390
|
+
"type": {
|
|
7391
|
+
"text": "CalendarDayInfo"
|
|
7392
|
+
}
|
|
7393
|
+
}
|
|
7394
|
+
]
|
|
7395
|
+
},
|
|
7380
7396
|
{
|
|
7381
7397
|
"kind": "method",
|
|
7382
7398
|
"name": "handleGridFocusIn",
|
|
@@ -7415,6 +7431,16 @@
|
|
|
7415
7431
|
}
|
|
7416
7432
|
]
|
|
7417
7433
|
},
|
|
7434
|
+
{
|
|
7435
|
+
"kind": "method",
|
|
7436
|
+
"name": "handleGridPointerLeave",
|
|
7437
|
+
"privacy": "private",
|
|
7438
|
+
"return": {
|
|
7439
|
+
"type": {
|
|
7440
|
+
"text": "void"
|
|
7441
|
+
}
|
|
7442
|
+
}
|
|
7443
|
+
},
|
|
7418
7444
|
{
|
|
7419
7445
|
"kind": "method",
|
|
7420
7446
|
"name": "handleTodayClick",
|
|
@@ -7425,6 +7451,15 @@
|
|
|
7425
7451
|
}
|
|
7426
7452
|
}
|
|
7427
7453
|
},
|
|
7454
|
+
{
|
|
7455
|
+
"kind": "field",
|
|
7456
|
+
"name": "hoveredDate",
|
|
7457
|
+
"type": {
|
|
7458
|
+
"text": "string"
|
|
7459
|
+
},
|
|
7460
|
+
"privacy": "private",
|
|
7461
|
+
"default": "''"
|
|
7462
|
+
},
|
|
7428
7463
|
{
|
|
7429
7464
|
"kind": "method",
|
|
7430
7465
|
"name": "initializeDisplay",
|
|
@@ -7453,6 +7488,15 @@
|
|
|
7453
7488
|
}
|
|
7454
7489
|
]
|
|
7455
7490
|
},
|
|
7491
|
+
{
|
|
7492
|
+
"kind": "field",
|
|
7493
|
+
"name": "isPreviewingRange",
|
|
7494
|
+
"type": {
|
|
7495
|
+
"text": "boolean"
|
|
7496
|
+
},
|
|
7497
|
+
"privacy": "private",
|
|
7498
|
+
"readonly": true
|
|
7499
|
+
},
|
|
7456
7500
|
{
|
|
7457
7501
|
"kind": "method",
|
|
7458
7502
|
"name": "isTodayDisabled",
|
|
@@ -7494,6 +7538,16 @@
|
|
|
7494
7538
|
"description": "Localized aria-label for the previous month navigation button.",
|
|
7495
7539
|
"attribute": "locale-prev-month-label"
|
|
7496
7540
|
},
|
|
7541
|
+
{
|
|
7542
|
+
"kind": "field",
|
|
7543
|
+
"name": "localeRangeStartSelectedLabel",
|
|
7544
|
+
"type": {
|
|
7545
|
+
"text": "string"
|
|
7546
|
+
},
|
|
7547
|
+
"default": "''",
|
|
7548
|
+
"description": "Localized announcement made after the range start date is selected.",
|
|
7549
|
+
"attribute": "locale-range-start-selected-label"
|
|
7550
|
+
},
|
|
7497
7551
|
{
|
|
7498
7552
|
"kind": "field",
|
|
7499
7553
|
"name": "localeTodayLabel",
|
|
@@ -7542,6 +7596,15 @@
|
|
|
7542
7596
|
}
|
|
7543
7597
|
]
|
|
7544
7598
|
},
|
|
7599
|
+
{
|
|
7600
|
+
"kind": "field",
|
|
7601
|
+
"name": "previewEndDate",
|
|
7602
|
+
"type": {
|
|
7603
|
+
"text": "string"
|
|
7604
|
+
},
|
|
7605
|
+
"privacy": "private",
|
|
7606
|
+
"readonly": true
|
|
7607
|
+
},
|
|
7545
7608
|
{
|
|
7546
7609
|
"kind": "field",
|
|
7547
7610
|
"name": "rangeSelectionPhase",
|
|
@@ -7737,6 +7800,15 @@
|
|
|
7737
7800
|
"default": "''",
|
|
7738
7801
|
"description": "Localized aria-label for the next month navigation button.",
|
|
7739
7802
|
"fieldName": "localeNextMonthLabel"
|
|
7803
|
+
},
|
|
7804
|
+
{
|
|
7805
|
+
"name": "locale-range-start-selected-label",
|
|
7806
|
+
"type": {
|
|
7807
|
+
"text": "string"
|
|
7808
|
+
},
|
|
7809
|
+
"default": "''",
|
|
7810
|
+
"description": "Localized announcement made after the range start date is selected.",
|
|
7811
|
+
"fieldName": "localeRangeStartSelectedLabel"
|
|
7740
7812
|
}
|
|
7741
7813
|
],
|
|
7742
7814
|
"mixins": [
|
|
@@ -7754,7 +7826,7 @@
|
|
|
7754
7826
|
"module": "/src/models"
|
|
7755
7827
|
},
|
|
7756
7828
|
"tagName": "mdc-calendar",
|
|
7757
|
-
"jsDoc": "/**\n * @tagname mdc-calendar\n *\n * @dependency mdc-button\n *\n * @event date-selected - Fires when a date or date range is selected.\n * @event month-changed - Fires when the displayed month changes.\n *\n * @cssproperty --mdc-calendar-background-color - Background color of the calendar.\n * @cssproperty --mdc-calendar-text-color - Text color of the calendar.\n * @cssproperty --mdc-calendar-day-selected-bg - Background color of selected days.\n * @cssproperty --mdc-calendar-day-selected-text-color - Text color of selected days.\n * @cssproperty --mdc-calendar-day-today-border-color - Border color for today's date.\n * @cssproperty --mdc-calendar-day-hover-bg - Background color on hover.\n * @cssproperty --mdc-calendar-range-bg - Background color for days within a range.\n * @cssproperty --mdc-calendar-day-outside-month-text-color - Text color for days outside the current month.\n * @cssproperty --mdc-calendar-day-disabled-text-color - Text color for disabled days.\n */",
|
|
7829
|
+
"jsDoc": "/**\n * @tagname mdc-calendar\n *\n * @dependency mdc-button\n * @dependency mdc-screenreaderannouncer\n *\n * @event date-selected - Fires when a date or date range is selected.\n * @event month-changed - Fires when the displayed month changes.\n *\n * @cssproperty --mdc-calendar-background-color - Background color of the calendar.\n * @cssproperty --mdc-calendar-text-color - Text color of the calendar.\n * @cssproperty --mdc-calendar-day-selected-bg - Background color of selected days.\n * @cssproperty --mdc-calendar-day-selected-text-color - Text color of selected days.\n * @cssproperty --mdc-calendar-day-today-border-color - Border color for today's date.\n * @cssproperty --mdc-calendar-day-hover-bg - Background color on hover.\n * @cssproperty --mdc-calendar-range-bg - Background color for days within a range.\n * @cssproperty --mdc-calendar-range-preview-bg - Background color for a provisional range.\n * @cssproperty --mdc-calendar-range-preview-text-color - Text color for days within a provisional range.\n * @cssproperty --mdc-calendar-day-outside-month-text-color - Text color for days outside the current month.\n * @cssproperty --mdc-calendar-day-disabled-text-color - Text color for disabled days.\n */",
|
|
7758
7830
|
"customElement": true
|
|
7759
7831
|
}
|
|
7760
7832
|
],
|
|
@@ -15949,6 +16021,22 @@
|
|
|
15949
16021
|
}
|
|
15950
16022
|
]
|
|
15951
16023
|
},
|
|
16024
|
+
{
|
|
16025
|
+
"kind": "method",
|
|
16026
|
+
"name": "closePopover",
|
|
16027
|
+
"privacy": "private",
|
|
16028
|
+
"return": {
|
|
16029
|
+
"type": {
|
|
16030
|
+
"text": "void"
|
|
16031
|
+
}
|
|
16032
|
+
},
|
|
16033
|
+
"parameters": [
|
|
16034
|
+
{
|
|
16035
|
+
"name": "focusTrigger",
|
|
16036
|
+
"default": "false"
|
|
16037
|
+
}
|
|
16038
|
+
]
|
|
16039
|
+
},
|
|
15952
16040
|
{
|
|
15953
16041
|
"kind": "method",
|
|
15954
16042
|
"name": "commitValue",
|
|
@@ -16474,6 +16562,16 @@
|
|
|
16474
16562
|
"description": "Localized aria-label for the previous month button.",
|
|
16475
16563
|
"attribute": "locale-prev-month-label"
|
|
16476
16564
|
},
|
|
16565
|
+
{
|
|
16566
|
+
"kind": "field",
|
|
16567
|
+
"name": "localeRangeStartSelectedLabel",
|
|
16568
|
+
"type": {
|
|
16569
|
+
"text": "string"
|
|
16570
|
+
},
|
|
16571
|
+
"default": "''",
|
|
16572
|
+
"description": "Localized announcement made after the range start date is selected.",
|
|
16573
|
+
"attribute": "locale-range-start-selected-label"
|
|
16574
|
+
},
|
|
16477
16575
|
{
|
|
16478
16576
|
"kind": "field",
|
|
16479
16577
|
"name": "localeSpinbuttonDescription",
|
|
@@ -17108,6 +17206,15 @@
|
|
|
17108
17206
|
"description": "Localized aria-label for the next month button.",
|
|
17109
17207
|
"fieldName": "localeNextMonthLabel"
|
|
17110
17208
|
},
|
|
17209
|
+
{
|
|
17210
|
+
"name": "locale-range-start-selected-label",
|
|
17211
|
+
"type": {
|
|
17212
|
+
"text": "string"
|
|
17213
|
+
},
|
|
17214
|
+
"default": "''",
|
|
17215
|
+
"description": "Localized announcement made after the range start date is selected.",
|
|
17216
|
+
"fieldName": "localeRangeStartSelectedLabel"
|
|
17217
|
+
},
|
|
17111
17218
|
{
|
|
17112
17219
|
"name": "end-value",
|
|
17113
17220
|
"type": {
|
|
@@ -19,6 +19,7 @@ import type { Events } from '../../components/calendar/calendar.types';
|
|
|
19
19
|
* @tagname mdc-calendar
|
|
20
20
|
*
|
|
21
21
|
* @dependency mdc-button
|
|
22
|
+
* @dependency mdc-screenreaderannouncer
|
|
22
23
|
*
|
|
23
24
|
* @event date-selected - Fires when a date or date range is selected.
|
|
24
25
|
* @event month-changed - Fires when the displayed month changes.
|
|
@@ -30,6 +31,8 @@ import type { Events } from '../../components/calendar/calendar.types';
|
|
|
30
31
|
* @cssproperty --mdc-calendar-day-today-border-color - Border color for today's date.
|
|
31
32
|
* @cssproperty --mdc-calendar-day-hover-bg - Background color on hover.
|
|
32
33
|
* @cssproperty --mdc-calendar-range-bg - Background color for days within a range.
|
|
34
|
+
* @cssproperty --mdc-calendar-range-preview-bg - Background color for a provisional range.
|
|
35
|
+
* @cssproperty --mdc-calendar-range-preview-text-color - Text color for days within a provisional range.
|
|
33
36
|
* @cssproperty --mdc-calendar-day-outside-month-text-color - Text color for days outside the current month.
|
|
34
37
|
* @cssproperty --mdc-calendar-day-disabled-text-color - Text color for disabled days.
|
|
35
38
|
*/
|
|
@@ -6,6 +6,7 @@ import { TAG_NAME } from '../../components/calendar/calendar.constants';
|
|
|
6
6
|
* @tagname mdc-calendar
|
|
7
7
|
*
|
|
8
8
|
* @dependency mdc-button
|
|
9
|
+
* @dependency mdc-screenreaderannouncer
|
|
9
10
|
*
|
|
10
11
|
* @event date-selected - Fires when a date or date range is selected.
|
|
11
12
|
* @event month-changed - Fires when the displayed month changes.
|
|
@@ -17,6 +18,8 @@ import { TAG_NAME } from '../../components/calendar/calendar.constants';
|
|
|
17
18
|
* @cssproperty --mdc-calendar-day-today-border-color - Border color for today's date.
|
|
18
19
|
* @cssproperty --mdc-calendar-day-hover-bg - Background color on hover.
|
|
19
20
|
* @cssproperty --mdc-calendar-range-bg - Background color for days within a range.
|
|
21
|
+
* @cssproperty --mdc-calendar-range-preview-bg - Background color for a provisional range.
|
|
22
|
+
* @cssproperty --mdc-calendar-range-preview-text-color - Text color for days within a provisional range.
|
|
20
23
|
* @cssproperty --mdc-calendar-day-outside-month-text-color - Text color for days outside the current month.
|
|
21
24
|
* @cssproperty --mdc-calendar-day-disabled-text-color - Text color for disabled days.
|
|
22
25
|
*/
|