@brightspace-ui/core 3.162.1 → 3.162.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.
@@ -40,14 +40,14 @@
40
40
  </template>
41
41
  </d2l-demo-snippet>
42
42
 
43
- <h2>Hidden Timezone</h2>
43
+ <h2>Hidden Time Zone</h2>
44
44
  <d2l-demo-snippet>
45
45
  <template>
46
- <d2l-input-time label="Start Time" timezone-hidden></d2l-input-time>
46
+ <d2l-input-time label="Start Time" time-zone-hidden></d2l-input-time>
47
47
  </template>
48
48
  </d2l-demo-snippet>
49
49
 
50
- <h2>Custom Timezone</h2>
50
+ <h2>Custom Time Zone</h2>
51
51
  <d2l-demo-snippet>
52
52
  <template>
53
53
  <d2l-input-time label="Start Time" time-zone-id="America/Vancouver"></d2l-input-time>
@@ -292,7 +292,7 @@ A few notable accessibility-related features of these components are:
292
292
  * When the date input is opened with the keyboard, focus goes to either selected date, today, or earliest valid date if today is prior to `min-date`
293
293
  * Extensive intuitive keyboard interaction support
294
294
 
295
- ## Timezone
295
+ ## Time Zone
296
296
 
297
297
  The `input-date-time` and `input-date-time-range` components expect input in UTC (`YYYY-MM-DDTHH:mm:ss.sssZ`). These components will convert values automatically to the user's time zone to display the date/time to them, and then will provide the value back in UTC. No time zone conversions are needed.
298
298
 
@@ -151,6 +151,16 @@ class InputDateTimeRange extends InteractiveMixin(FocusMixin(SkeletonMixin(FormE
151
151
  * @type {string}
152
152
  */
153
153
  startValue: { attribute: 'start-value', reflect: true, type: String },
154
+ /**
155
+ * Time zone identifier for the time inputs to use.
156
+ * @type {string}
157
+ */
158
+ timeZoneId: { type: String },
159
+ /**
160
+ * Hides the time zone inside the time selection dropdowns. Should only be used when the time input values are not related to any one time zone
161
+ * @type {Boolean}
162
+ */
163
+ timeZoneHidden: { type: Boolean, attribute: 'time-zone-hidden' },
154
164
  _slotOccupied: { type: Boolean }
155
165
  };
156
166
  }
@@ -251,6 +261,8 @@ class InputDateTimeRange extends InteractiveMixin(FocusMixin(SkeletonMixin(FormE
251
261
  ?required="${this.required}"
252
262
  ?skeleton="${this.skeleton}"
253
263
  time-default-value="startOfDay"
264
+ time-zone-id="${ifDefined(this.timeZoneId)}"
265
+ ?time-zone-hidden="${this.timeZoneHidden}"
254
266
  value="${ifDefined(this.startValue)}">
255
267
  </d2l-input-date-time>
256
268
  <slot name="start" @slotchange="${this._onSlotChange}"></slot>
@@ -273,6 +285,8 @@ class InputDateTimeRange extends InteractiveMixin(FocusMixin(SkeletonMixin(FormE
273
285
  ?required="${this.required}"
274
286
  ?skeleton="${this.skeleton}"
275
287
  time-default-value="endOfDay"
288
+ time-zone-id="${ifDefined(this.timeZoneId)}"
289
+ ?time-zone-hidden="${this.timeZoneHidden}"
276
290
  value="${ifDefined(this.endValue)}">
277
291
  </d2l-input-date-time>
278
292
  <slot name="end" @slotchange="${this._onSlotChange}"></slot>
@@ -86,7 +86,7 @@ class InputDateTime extends FocusMixin(LabelledMixin(SkeletonMixin(FormElementMi
86
86
  */
87
87
  timeDefaultValue: { attribute: 'time-default-value', reflect: true, type: String },
88
88
  /**
89
- * Timezone identifier for the time input to use.
89
+ * Time zone identifier for the time input to use.
90
90
  * @type {string}
91
91
  */
92
92
  timeZoneId: { type: String },
@@ -254,6 +254,8 @@ class InputDateTime extends FocusMixin(LabelledMixin(SkeletonMixin(FormElementMi
254
254
  max-height="430"
255
255
  ?required="${this.required}"
256
256
  ?skeleton="${this.skeleton}"
257
+ time-zone-id="${ifDefined(this.timeZoneId)}"
258
+ ?time-zone-hidden="${this.timeZoneHidden}"
257
259
  .value="${parsedValue}">
258
260
  </d2l-input-time>` : null;
259
261
 
@@ -121,7 +121,7 @@ class InputTimeRange extends FocusMixin(SkeletonMixin(FormElementMixin(LocalizeC
121
121
  */
122
122
  timeInterval: { attribute: 'time-interval', reflect: true, type: String },
123
123
  /**
124
- * Timezone identifier for the inputs to use.
124
+ * Time zone identifier for the inputs to use.
125
125
  * @type {string}
126
126
  */
127
127
  timeZoneId: { type: String },
@@ -281,6 +281,8 @@ class InputTimeRange extends FocusMixin(SkeletonMixin(FormElementMixin(LocalizeC
281
281
  ?skeleton="${this.skeleton}"
282
282
  slot="right"
283
283
  time-interval="${ifDefined(timeInterval)}"
284
+ time-zone-id="${ifDefined(this.timeZoneId)}"
285
+ ?time-zone-hidden="${this.timeZoneHidden}"
284
286
  value="${ifDefined(this.endValue)}">
285
287
  </d2l-input-time>
286
288
  </d2l-input-date-time-range-to>
@@ -175,7 +175,7 @@ class InputTime extends InputInlineHelpMixin(FocusMixin(LabelledMixin(SkeletonMi
175
175
  */
176
176
  timeZoneId: { type: String, attribute: 'time-zone-id' },
177
177
  /**
178
- * Hides the time zone inside the selection dropdown. Should only be used when the input value is not related to any one timezone
178
+ * Hides the time zone inside the selection dropdown. Should only be used when the input value is not related to any one time zone
179
179
  * @type {Boolean}
180
180
  */
181
181
  timeZoneHidden: { type: Boolean, attribute: 'time-zone-hidden' },
@@ -5881,6 +5881,16 @@
5881
5881
  "description": "Value of the start date-time input",
5882
5882
  "type": "string"
5883
5883
  },
5884
+ {
5885
+ "name": "timeZoneId",
5886
+ "description": "Time zone identifier for the time inputs to use.",
5887
+ "type": "string"
5888
+ },
5889
+ {
5890
+ "name": "time-zone-hidden",
5891
+ "description": "Hides the time zone inside the time selection dropdowns. Should only be used when the time input values are not related to any one time zone",
5892
+ "type": "Boolean"
5893
+ },
5884
5894
  {
5885
5895
  "name": "auto-shift-dates",
5886
5896
  "description": "ADVANCED: Automatically shifts end date when start date changes to keep same range. If start and end date are equal, automatically shifts end time when start time changes.",
@@ -5991,6 +6001,18 @@
5991
6001
  "description": "Value of the start date-time input",
5992
6002
  "type": "string"
5993
6003
  },
6004
+ {
6005
+ "name": "timeZoneId",
6006
+ "attribute": "timeZoneId",
6007
+ "description": "Time zone identifier for the time inputs to use.",
6008
+ "type": "string"
6009
+ },
6010
+ {
6011
+ "name": "timeZoneHidden",
6012
+ "attribute": "time-zone-hidden",
6013
+ "description": "Hides the time zone inside the time selection dropdowns. Should only be used when the time input values are not related to any one time zone",
6014
+ "type": "Boolean"
6015
+ },
5994
6016
  {
5995
6017
  "name": "autoShiftDates",
5996
6018
  "attribute": "auto-shift-dates",
@@ -6095,7 +6117,7 @@
6095
6117
  "attributes": [
6096
6118
  {
6097
6119
  "name": "timeZoneId",
6098
- "description": "Timezone identifier for the time input to use.",
6120
+ "description": "Time zone identifier for the time input to use.",
6099
6121
  "type": "string"
6100
6122
  },
6101
6123
  {
@@ -6179,7 +6201,7 @@
6179
6201
  {
6180
6202
  "name": "timeZoneId",
6181
6203
  "attribute": "timeZoneId",
6182
- "description": "Timezone identifier for the time input to use.",
6204
+ "description": "Time zone identifier for the time input to use.",
6183
6205
  "type": "string"
6184
6206
  },
6185
6207
  {
@@ -7937,7 +7959,7 @@
7937
7959
  },
7938
7960
  {
7939
7961
  "name": "timeZoneId",
7940
- "description": "Timezone identifier for the inputs to use.",
7962
+ "description": "Time zone identifier for the inputs to use.",
7941
7963
  "type": "string"
7942
7964
  },
7943
7965
  {
@@ -8050,7 +8072,7 @@
8050
8072
  {
8051
8073
  "name": "timeZoneId",
8052
8074
  "attribute": "timeZoneId",
8053
- "description": "Timezone identifier for the inputs to use.",
8075
+ "description": "Time zone identifier for the inputs to use.",
8054
8076
  "type": "string"
8055
8077
  },
8056
8078
  {
@@ -8225,7 +8247,7 @@
8225
8247
  },
8226
8248
  {
8227
8249
  "name": "time-zone-hidden",
8228
- "description": "Hides the time zone inside the selection dropdown. Should only be used when the input value is not related to any one timezone",
8250
+ "description": "Hides the time zone inside the selection dropdown. Should only be used when the input value is not related to any one time zone",
8229
8251
  "type": "Boolean",
8230
8252
  "default": "false"
8231
8253
  },
@@ -8320,7 +8342,7 @@
8320
8342
  {
8321
8343
  "name": "timeZoneHidden",
8322
8344
  "attribute": "time-zone-hidden",
8323
- "description": "Hides the time zone inside the selection dropdown. Should only be used when the input value is not related to any one timezone",
8345
+ "description": "Hides the time zone inside the selection dropdown. Should only be used when the input value is not related to any one time zone",
8324
8346
  "type": "Boolean",
8325
8347
  "default": "false"
8326
8348
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightspace-ui/core",
3
- "version": "3.162.1",
3
+ "version": "3.162.3",
4
4
  "description": "A collection of accessible, free, open-source web components for building Brightspace applications",
5
5
  "type": "module",
6
6
  "repository": "https://github.com/BrightspaceUI/core.git",