@brightspace-ui/core 1.180.2 → 1.182.0

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.
Files changed (122) hide show
  1. package/components/alert/demo/alert-toast.html +0 -2
  2. package/components/alert/demo/alert.html +0 -2
  3. package/components/backdrop/demo/backdrop.html +0 -2
  4. package/components/breadcrumbs/demo/breadcrumbs.html +0 -2
  5. package/components/button/demo/button-icon.html +0 -2
  6. package/components/button/demo/button-subtle.html +0 -2
  7. package/components/button/demo/button.html +0 -2
  8. package/components/button/demo/floating-buttons-in-frame.html +0 -2
  9. package/components/button/demo/floating-buttons-in-tabs.html +0 -2
  10. package/components/button/demo/floating-buttons-page.html +0 -2
  11. package/components/button/demo/floating-buttons.html +0 -2
  12. package/components/calendar/demo/calendar.html +0 -2
  13. package/components/card/demo/card.html +0 -2
  14. package/components/colors/demo/colors.html +0 -2
  15. package/components/count-badge/count-badge.js +4 -2
  16. package/components/count-badge/demo/count-badge.html +0 -2
  17. package/components/demo/demo/demo-snippet.html +0 -2
  18. package/components/dialog/demo/dialog-confirm.html +0 -2
  19. package/components/dialog/demo/dialog-fullscreen.html +0 -2
  20. package/components/dialog/demo/dialog-nested.html +0 -2
  21. package/components/dialog/demo/dialog.html +0 -2
  22. package/components/dropdown/demo/dropdown-button.html +0 -2
  23. package/components/dropdown/demo/dropdown-context-menu.html +0 -2
  24. package/components/dropdown/demo/dropdown-menu.html +0 -2
  25. package/components/dropdown/demo/dropdown-more.html +0 -2
  26. package/components/dropdown/demo/dropdown-tabs.html +0 -2
  27. package/components/dropdown/demo/dropdown.html +0 -2
  28. package/components/expand-collapse/demo/expand-collapse-content.html +0 -2
  29. package/components/filter/README.md +6 -3
  30. package/components/filter/demo/filter-search-demo.js +13 -10
  31. package/components/filter/demo/filter.html +17 -13
  32. package/components/filter/filter.js +57 -9
  33. package/components/focus-trap/demo/focus-trap.html +0 -2
  34. package/components/form/demo/form-native.html +0 -2
  35. package/components/form/demo/form.html +0 -2
  36. package/components/hierarchical-view/demo/hierarchical-view.html +0 -2
  37. package/components/html-block/README.md +116 -21
  38. package/components/html-block/demo/html-block.html +0 -2
  39. package/components/html-block/html-block.js +1 -0
  40. package/components/icons/demo/icon-custom.html +0 -2
  41. package/components/icons/demo/icon.html +0 -2
  42. package/components/inputs/demo/input-checkbox.html +0 -2
  43. package/components/inputs/demo/input-date-range.html +0 -2
  44. package/components/inputs/demo/input-date-time-range.html +0 -2
  45. package/components/inputs/demo/input-date-time.html +0 -2
  46. package/components/inputs/demo/input-date.html +0 -2
  47. package/components/inputs/demo/input-number.html +0 -2
  48. package/components/inputs/demo/input-percent.html +0 -2
  49. package/components/inputs/demo/input-radio.html +0 -2
  50. package/components/inputs/demo/input-search.html +0 -2
  51. package/components/inputs/demo/input-select.html +0 -2
  52. package/components/inputs/demo/input-text.html +0 -2
  53. package/components/inputs/demo/input-textarea.html +0 -2
  54. package/components/inputs/demo/input-time-range.html +0 -2
  55. package/components/inputs/demo/input-time.html +0 -2
  56. package/components/link/demo/link.html +0 -2
  57. package/components/list/README.md +359 -177
  58. package/components/list/demo/list-drag-and-drop.html +0 -2
  59. package/components/list/demo/list-item-actions.html +0 -2
  60. package/components/list/demo/list-item-layouts.html +0 -2
  61. package/components/list/demo/list.html +0 -2
  62. package/components/list/list-header.js +2 -1
  63. package/components/list/list-item-button.js +2 -1
  64. package/components/list/list-item-checkbox-mixin.js +12 -4
  65. package/components/list/list-item-drag-drop-mixin.js +17 -1
  66. package/components/list/list-item-drag-handle.js +18 -1
  67. package/components/list/list-item-generic-layout.js +1 -0
  68. package/components/list/list-item-link-mixin.js +1 -0
  69. package/components/list/list-item-mixin.js +2 -0
  70. package/components/list/list-item.js +3 -0
  71. package/components/list/list.js +2 -2
  72. package/components/loading-spinner/demo/loading-spinner.html +0 -2
  73. package/components/menu/demo/checkbox-menu.html +0 -2
  74. package/components/menu/demo/menu.html +0 -2
  75. package/components/menu/demo/radio-menu.html +0 -2
  76. package/components/meter/demo/meter.html +0 -2
  77. package/components/more-less/demo/more-less.html +0 -2
  78. package/components/offscreen/demo/offscreen.html +0 -2
  79. package/components/overflow-group/demo/overflow-group.html +0 -2
  80. package/components/scroll-wrapper/README.md +27 -9
  81. package/components/scroll-wrapper/demo/scroll-wrapper.html +0 -2
  82. package/components/scroll-wrapper/scroll-wrapper.js +2 -1
  83. package/components/selection/demo/selection.html +0 -2
  84. package/components/skeleton/demo/skeleton-mixin.html +0 -2
  85. package/components/status-indicator/demo/status-indicator.html +0 -2
  86. package/components/switch/demo/switch.html +0 -2
  87. package/components/table/demo/table.html +0 -2
  88. package/components/tabs/demo/tabs.html +0 -2
  89. package/components/tooltip/demo/tooltip.html +0 -2
  90. package/components/typography/demo/typography.html +0 -2
  91. package/custom-elements.json +70 -60
  92. package/directives/animate/demo/index.html +0 -2
  93. package/helpers/demo/announce.html +0 -2
  94. package/helpers/demo/dismissible.html +0 -2
  95. package/helpers/demo/gestures.html +0 -2
  96. package/helpers/framed.js +41 -0
  97. package/lang/ar.js +6 -0
  98. package/lang/cy.js +6 -0
  99. package/lang/da.js +6 -0
  100. package/lang/de.js +6 -0
  101. package/lang/en.js +6 -0
  102. package/lang/es-es.js +6 -0
  103. package/lang/es.js +6 -0
  104. package/lang/fr-fr.js +6 -0
  105. package/lang/fr.js +6 -0
  106. package/lang/ja.js +6 -0
  107. package/lang/ko.js +6 -0
  108. package/lang/nl.js +6 -0
  109. package/lang/pt.js +6 -0
  110. package/lang/sv.js +6 -0
  111. package/lang/tr.js +6 -0
  112. package/lang/zh-tw.js +6 -0
  113. package/lang/zh.js +6 -0
  114. package/mixins/async-container/demo/async-container.html +0 -2
  115. package/mixins/demo/arrow-keys-mixin.html +0 -2
  116. package/mixins/demo/labelled-mixin.html +0 -2
  117. package/mixins/demo/localize-mixin.html +0 -2
  118. package/mixins/labelled-mixin.js +8 -0
  119. package/package.json +1 -2
  120. package/templates/primary-secondary/demo/index.html +0 -2
  121. package/templates/primary-secondary/demo/overflow-hidden.html +0 -2
  122. package/templates/primary-secondary/demo/width-type-normal.html +0 -2
@@ -3085,7 +3085,13 @@
3085
3085
  {
3086
3086
  "name": "d2l-html-block",
3087
3087
  "path": "./components/html-block/html-block.js",
3088
- "description": "A component for displaying user-authored HTML."
3088
+ "description": "A component for displaying user-authored HTML.",
3089
+ "slots": [
3090
+ {
3091
+ "name": "",
3092
+ "description": "Provide an html template that contains your user-authored HTML"
3093
+ }
3094
+ ]
3089
3095
  },
3090
3096
  {
3091
3097
  "name": "d2l-icon-demo-color-override",
@@ -5834,7 +5840,7 @@
5834
5840
  "attributes": [
5835
5841
  {
5836
5842
  "name": "slim",
5837
- "description": "Whether to render a header with reduced whitespace.",
5843
+ "description": "Whether to render a header with reduced whitespace",
5838
5844
  "type": "boolean",
5839
5845
  "default": "false"
5840
5846
  }
@@ -5843,7 +5849,7 @@
5843
5849
  {
5844
5850
  "name": "slim",
5845
5851
  "attribute": "slim",
5846
- "description": "Whether to render a header with reduced whitespace.",
5852
+ "description": "Whether to render a header with reduced whitespace",
5847
5853
  "type": "boolean",
5848
5854
  "default": "false"
5849
5855
  }
@@ -5868,25 +5874,22 @@
5868
5874
  },
5869
5875
  {
5870
5876
  "name": "draggable",
5871
- "description": "Whether the item is draggable",
5877
+ "description": "**Drag & drop:** Whether the item is draggable",
5872
5878
  "type": "boolean"
5873
5879
  },
5874
5880
  {
5875
5881
  "name": "drag-handle-text",
5882
+ "description": "**Drag & drop:** The drag-handle label for assistive technology. If implementing drag & drop, you should change this to dynamically announce what the drag-handle is moving for assistive technology in keyboard mode.",
5876
5883
  "type": "string"
5877
5884
  },
5878
5885
  {
5879
5886
  "name": "drop-text",
5887
+ "description": "**Drag & drop:** Text to drag and drop",
5880
5888
  "type": "string"
5881
5889
  },
5882
- {
5883
- "name": "dragging",
5884
- "type": "boolean",
5885
- "default": "false"
5886
- },
5887
5890
  {
5888
5891
  "name": "disabled",
5889
- "description": "Disables the input",
5892
+ "description": "**Selection:** Disables the input",
5890
5893
  "type": "boolean"
5891
5894
  },
5892
5895
  {
@@ -5896,12 +5899,12 @@
5896
5899
  },
5897
5900
  {
5898
5901
  "name": "selectable",
5899
- "description": "Indicates a input should be rendered for selecting the item",
5902
+ "description": "**Selection:** Indicates a input should be rendered for selecting the item",
5900
5903
  "type": "boolean"
5901
5904
  },
5902
5905
  {
5903
5906
  "name": "selected",
5904
- "description": "Whether the item is selected",
5907
+ "description": "**Selection:** Whether the item is selected",
5905
5908
  "type": "boolean"
5906
5909
  },
5907
5910
  {
@@ -5912,10 +5915,12 @@
5912
5915
  },
5913
5916
  {
5914
5917
  "name": "labelled-by",
5918
+ "description": "The id of element that provides the label for this element",
5915
5919
  "type": "string"
5916
5920
  },
5917
5921
  {
5918
5922
  "name": "label",
5923
+ "description": "Explicitly defined label used to provide context for accessibility",
5919
5924
  "type": "string"
5920
5925
  }
5921
5926
  ],
@@ -5937,29 +5942,25 @@
5937
5942
  {
5938
5943
  "name": "draggable",
5939
5944
  "attribute": "draggable",
5940
- "description": "Whether the item is draggable",
5945
+ "description": "**Drag & drop:** Whether the item is draggable",
5941
5946
  "type": "boolean"
5942
5947
  },
5943
5948
  {
5944
5949
  "name": "dragHandleText",
5945
5950
  "attribute": "drag-handle-text",
5951
+ "description": "**Drag & drop:** The drag-handle label for assistive technology. If implementing drag & drop, you should change this to dynamically announce what the drag-handle is moving for assistive technology in keyboard mode.",
5946
5952
  "type": "string"
5947
5953
  },
5948
5954
  {
5949
5955
  "name": "dropText",
5950
5956
  "attribute": "drop-text",
5957
+ "description": "**Drag & drop:** Text to drag and drop",
5951
5958
  "type": "string"
5952
5959
  },
5953
- {
5954
- "name": "dragging",
5955
- "attribute": "dragging",
5956
- "type": "boolean",
5957
- "default": "false"
5958
- },
5959
5960
  {
5960
5961
  "name": "disabled",
5961
5962
  "attribute": "disabled",
5962
- "description": "Disables the input",
5963
+ "description": "**Selection:** Disables the input",
5963
5964
  "type": "boolean"
5964
5965
  },
5965
5966
  {
@@ -5971,19 +5972,17 @@
5971
5972
  {
5972
5973
  "name": "selectable",
5973
5974
  "attribute": "selectable",
5974
- "description": "Indicates a input should be rendered for selecting the item",
5975
+ "description": "**Selection:** Indicates a input should be rendered for selecting the item",
5975
5976
  "type": "boolean"
5976
5977
  },
5977
5978
  {
5978
5979
  "name": "selected",
5979
5980
  "attribute": "selected",
5980
- "description": "Whether the item is selected",
5981
+ "description": "**Selection:** Whether the item is selected",
5981
5982
  "type": "boolean"
5982
5983
  },
5983
5984
  {
5984
- "name": "selectionInfo",
5985
- "description": "Private. The selection info (set by the selection component).",
5986
- "type": "object"
5985
+ "name": "selectionInfo"
5987
5986
  },
5988
5987
  {
5989
5988
  "name": "skeleton",
@@ -5995,25 +5994,28 @@
5995
5994
  {
5996
5995
  "name": "labelledBy",
5997
5996
  "attribute": "labelled-by",
5997
+ "description": "The id of element that provides the label for this element",
5998
5998
  "type": "string"
5999
5999
  },
6000
6000
  {
6001
6001
  "name": "label",
6002
6002
  "attribute": "label",
6003
+ "description": "Explicitly defined label used to provide context for accessibility",
6003
6004
  "type": "string"
6004
6005
  }
6005
6006
  ],
6006
6007
  "events": [
6007
6008
  {
6008
6009
  "name": "d2l-list-item-button-click",
6009
- "description": "Dispatched when the component item is clicked"
6010
+ "description": "Dispatched when the item's primary button action is clicked"
6010
6011
  },
6011
6012
  {
6012
- "name": "d2l-list-item-selected",
6013
- "description": "Dispatched when the component item is selected"
6013
+ "name": "d2l-list-item-position-change",
6014
+ "description": "Dispatched when a draggable list item's position changes in the list. See [Event Details: d2l-list-item-position-change](#event-details%3A-d2l-list-item-position-change)."
6014
6015
  },
6015
6016
  {
6016
- "name": "d2l-list-item-position-change"
6017
+ "name": "d2l-list-item-selected",
6018
+ "description": "Dispatched when the component item is selected"
6017
6019
  }
6018
6020
  ],
6019
6021
  "slots": [
@@ -6056,14 +6058,17 @@
6056
6058
  "attributes": [
6057
6059
  {
6058
6060
  "name": "keyboard-text-info",
6061
+ "description": "Additional context information for accessibility",
6059
6062
  "type": "object"
6060
6063
  },
6061
6064
  {
6062
6065
  "name": "text",
6066
+ "description": "The drag-handle label for assistive technology",
6063
6067
  "type": "string"
6064
6068
  },
6065
6069
  {
6066
6070
  "name": "disabled",
6071
+ "description": "Disables the handle",
6067
6072
  "type": "boolean",
6068
6073
  "default": "false"
6069
6074
  }
@@ -6072,23 +6077,27 @@
6072
6077
  {
6073
6078
  "name": "keyboardTextInfo",
6074
6079
  "attribute": "keyboard-text-info",
6080
+ "description": "Additional context information for accessibility",
6075
6081
  "type": "object"
6076
6082
  },
6077
6083
  {
6078
6084
  "name": "text",
6079
6085
  "attribute": "text",
6086
+ "description": "The drag-handle label for assistive technology",
6080
6087
  "type": "string"
6081
6088
  },
6082
6089
  {
6083
6090
  "name": "disabled",
6084
6091
  "attribute": "disabled",
6092
+ "description": "Disables the handle",
6085
6093
  "type": "boolean",
6086
6094
  "default": "false"
6087
6095
  }
6088
6096
  ],
6089
6097
  "events": [
6090
6098
  {
6091
- "name": "d2l-list-item-drag-handle-action"
6099
+ "name": "d2l-list-item-drag-handle-action",
6100
+ "description": "Dispatched when an action performed on the drag handle"
6092
6101
  }
6093
6102
  ]
6094
6103
  },
@@ -6175,25 +6184,22 @@
6175
6184
  },
6176
6185
  {
6177
6186
  "name": "draggable",
6178
- "description": "Whether the item is draggable",
6187
+ "description": "**Drag & drop:** Whether the item is draggable",
6179
6188
  "type": "boolean"
6180
6189
  },
6181
6190
  {
6182
6191
  "name": "drag-handle-text",
6192
+ "description": "**Drag & drop:** The drag-handle label for assistive technology. If implementing drag & drop, you should change this to dynamically announce what the drag-handle is moving for assistive technology in keyboard mode.",
6183
6193
  "type": "string"
6184
6194
  },
6185
6195
  {
6186
6196
  "name": "drop-text",
6197
+ "description": "**Drag & drop:** Text to drag and drop",
6187
6198
  "type": "string"
6188
6199
  },
6189
- {
6190
- "name": "dragging",
6191
- "type": "boolean",
6192
- "default": "false"
6193
- },
6194
6200
  {
6195
6201
  "name": "disabled",
6196
- "description": "Disables the input",
6202
+ "description": "**Selection:** Disables the input",
6197
6203
  "type": "boolean"
6198
6204
  },
6199
6205
  {
@@ -6203,12 +6209,12 @@
6203
6209
  },
6204
6210
  {
6205
6211
  "name": "selectable",
6206
- "description": "Indicates a input should be rendered for selecting the item",
6212
+ "description": "**Selection:** Indicates a input should be rendered for selecting the item",
6207
6213
  "type": "boolean"
6208
6214
  },
6209
6215
  {
6210
6216
  "name": "selected",
6211
- "description": "Whether the item is selected",
6217
+ "description": "**Selection:** Whether the item is selected",
6212
6218
  "type": "boolean"
6213
6219
  },
6214
6220
  {
@@ -6219,10 +6225,12 @@
6219
6225
  },
6220
6226
  {
6221
6227
  "name": "labelled-by",
6228
+ "description": "The id of element that provides the label for this element",
6222
6229
  "type": "string"
6223
6230
  },
6224
6231
  {
6225
6232
  "name": "label",
6233
+ "description": "Explicitly defined label used to provide context for accessibility",
6226
6234
  "type": "string"
6227
6235
  }
6228
6236
  ],
@@ -6256,29 +6264,25 @@
6256
6264
  {
6257
6265
  "name": "draggable",
6258
6266
  "attribute": "draggable",
6259
- "description": "Whether the item is draggable",
6267
+ "description": "**Drag & drop:** Whether the item is draggable",
6260
6268
  "type": "boolean"
6261
6269
  },
6262
6270
  {
6263
6271
  "name": "dragHandleText",
6264
6272
  "attribute": "drag-handle-text",
6273
+ "description": "**Drag & drop:** The drag-handle label for assistive technology. If implementing drag & drop, you should change this to dynamically announce what the drag-handle is moving for assistive technology in keyboard mode.",
6265
6274
  "type": "string"
6266
6275
  },
6267
6276
  {
6268
6277
  "name": "dropText",
6269
6278
  "attribute": "drop-text",
6279
+ "description": "**Drag & drop:** Text to drag and drop",
6270
6280
  "type": "string"
6271
6281
  },
6272
- {
6273
- "name": "dragging",
6274
- "attribute": "dragging",
6275
- "type": "boolean",
6276
- "default": "false"
6277
- },
6278
6282
  {
6279
6283
  "name": "disabled",
6280
6284
  "attribute": "disabled",
6281
- "description": "Disables the input",
6285
+ "description": "**Selection:** Disables the input",
6282
6286
  "type": "boolean"
6283
6287
  },
6284
6288
  {
@@ -6290,19 +6294,17 @@
6290
6294
  {
6291
6295
  "name": "selectable",
6292
6296
  "attribute": "selectable",
6293
- "description": "Indicates a input should be rendered for selecting the item",
6297
+ "description": "**Selection:** Indicates a input should be rendered for selecting the item",
6294
6298
  "type": "boolean"
6295
6299
  },
6296
6300
  {
6297
6301
  "name": "selected",
6298
6302
  "attribute": "selected",
6299
- "description": "Whether the item is selected",
6303
+ "description": "**Selection:** Whether the item is selected",
6300
6304
  "type": "boolean"
6301
6305
  },
6302
6306
  {
6303
- "name": "selectionInfo",
6304
- "description": "Private. The selection info (set by the selection component).",
6305
- "type": "object"
6307
+ "name": "selectionInfo"
6306
6308
  },
6307
6309
  {
6308
6310
  "name": "skeleton",
@@ -6314,24 +6316,28 @@
6314
6316
  {
6315
6317
  "name": "labelledBy",
6316
6318
  "attribute": "labelled-by",
6319
+ "description": "The id of element that provides the label for this element",
6317
6320
  "type": "string"
6318
6321
  },
6319
6322
  {
6320
6323
  "name": "label",
6321
6324
  "attribute": "label",
6325
+ "description": "Explicitly defined label used to provide context for accessibility",
6322
6326
  "type": "string"
6323
6327
  }
6324
6328
  ],
6325
6329
  "events": [
6326
6330
  {
6327
- "name": "d2l-list-item-selected",
6328
- "description": "Dispatched when the component item is selected"
6331
+ "name": "d2l-list-item-link-click",
6332
+ "description": "Dispatched when the item's primary link action is clicked"
6329
6333
  },
6330
6334
  {
6331
- "name": "d2l-list-item-link-click"
6335
+ "name": "d2l-list-item-position-change",
6336
+ "description": "Dispatched when a draggable list item's position changes in the list. See [Event Details: d2l-list-item-position-change](#event-details%3A-d2l-list-item-position-change)."
6332
6337
  },
6333
6338
  {
6334
- "name": "d2l-list-item-position-change"
6339
+ "name": "d2l-list-item-selected",
6340
+ "description": "Dispatched when the component item is selected"
6335
6341
  }
6336
6342
  ],
6337
6343
  "slots": [
@@ -6368,7 +6374,7 @@
6368
6374
  },
6369
6375
  {
6370
6376
  "name": "grid",
6371
- "description": "Use grid to manage focus with arrow keys",
6377
+ "description": "Use grid to manage focus with arrow keys. See [Accessibility](#accessibility).",
6372
6378
  "type": "boolean",
6373
6379
  "default": "false"
6374
6380
  },
@@ -6397,7 +6403,7 @@
6397
6403
  {
6398
6404
  "name": "grid",
6399
6405
  "attribute": "grid",
6400
- "description": "Use grid to manage focus with arrow keys",
6406
+ "description": "Use grid to manage focus with arrow keys. See [Accessibility](#accessibility).",
6401
6407
  "type": "boolean",
6402
6408
  "default": "false"
6403
6409
  },
@@ -6418,7 +6424,7 @@
6418
6424
  "slots": [
6419
6425
  {
6420
6426
  "name": "",
6421
- "description": "List content (e.g., \"listitem\"s)"
6427
+ "description": "List content (e.g., `listitem`s)"
6422
6428
  }
6423
6429
  ]
6424
6430
  },
@@ -7378,7 +7384,7 @@
7378
7384
  "slots": [
7379
7385
  {
7380
7386
  "name": "",
7381
- "description": "Content to wrap"
7387
+ "description": "User provided content to wrap"
7382
7388
  }
7383
7389
  ]
7384
7390
  },
@@ -7511,10 +7517,12 @@
7511
7517
  },
7512
7518
  {
7513
7519
  "name": "labelled-by",
7520
+ "description": "The id of element that provides the label for this element",
7514
7521
  "type": "string"
7515
7522
  },
7516
7523
  {
7517
7524
  "name": "label",
7525
+ "description": "Explicitly defined label used to provide context for accessibility",
7518
7526
  "type": "string"
7519
7527
  }
7520
7528
  ],
@@ -7554,11 +7562,13 @@
7554
7562
  {
7555
7563
  "name": "labelledBy",
7556
7564
  "attribute": "labelled-by",
7565
+ "description": "The id of element that provides the label for this element",
7557
7566
  "type": "string"
7558
7567
  },
7559
7568
  {
7560
7569
  "name": "label",
7561
7570
  "attribute": "label",
7571
+ "description": "Explicitly defined label used to provide context for accessibility",
7562
7572
  "type": "string"
7563
7573
  }
7564
7574
  ],
@@ -2,10 +2,8 @@
2
2
  <html lang="en">
3
3
  <head>
4
4
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
5
- <meta http-equiv="X-UA-Compatible" content="ie=edge">
6
5
  <meta charset="UTF-8">
7
6
  <link rel="stylesheet" href="../../../components/demo/styles.css" type="text/css">
8
- <script src="/node_modules/@webcomponents/webcomponentsjs/webcomponents-loader.js"></script>
9
7
  <script type="module">
10
8
  import '../../../components/demo/demo-page.js';
11
9
  import './animate-test.js';
@@ -2,10 +2,8 @@
2
2
  <html lang="en">
3
3
  <head>
4
4
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
5
- <meta http-equiv="X-UA-Compatible" content="ie=edge">
6
5
  <meta charset="UTF-8">
7
6
  <link rel="stylesheet" href="../../components/demo/styles.css" type="text/css">
8
- <script src="/node_modules/@webcomponents/webcomponentsjs/webcomponents-loader.js"></script>
9
7
  <script type="module">
10
8
  import '../../components/demo/demo-page.js';
11
9
  import './announce-test.js';
@@ -2,10 +2,8 @@
2
2
  <html lang="en">
3
3
  <head>
4
4
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
5
- <meta http-equiv="X-UA-Compatible" content="ie=edge">
6
5
  <meta charset="UTF-8">
7
6
  <link rel="stylesheet" href="../../components/demo/styles.css" type="text/css">
8
- <script src="/node_modules/@webcomponents/webcomponentsjs/webcomponents-loader.js"></script>
9
7
  <script type="module">
10
8
  import '../../components/demo/demo-page.js';
11
9
  import './dismissible-test.js';
@@ -2,10 +2,8 @@
2
2
  <html lang="en">
3
3
  <head>
4
4
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
5
- <meta http-equiv="X-UA-Compatible" content="ie=edge">
6
5
  <meta charset="UTF-8">
7
6
  <link rel="stylesheet" href="../../components/demo/styles.css" type="text/css">
8
- <script src="/node_modules/@webcomponents/webcomponentsjs/webcomponents-loader.js"></script>
9
7
  <script type="module">
10
8
  import '../../components/demo/demo-page.js';
11
9
  </script>
@@ -0,0 +1,41 @@
1
+ let framed;
2
+
3
+ export async function isFramed() {
4
+ if (framed !== undefined) return framed;
5
+
6
+ if (window.D2L && window.D2L.IsNotAnIframedApp) {
7
+ framed = false;
8
+ return framed;
9
+ }
10
+
11
+ try {
12
+ if (window === window.parent) {
13
+ framed = false;
14
+ return framed;
15
+ }
16
+ } catch (e) {
17
+ framed = false;
18
+ return framed;
19
+ }
20
+
21
+ framed = await Promise.race([
22
+ new Promise(resolve => {
23
+ const handleIsFramedResponse = evt => {
24
+ if (!evt || !evt.data || !evt.data.isFramed === undefined) return;
25
+ window.removeEventListener('message', handleIsFramedResponse, false);
26
+ framed = evt.data.isFramed;
27
+ resolve(framed);
28
+ };
29
+
30
+ window.addEventListener('message', handleIsFramedResponse, false);
31
+ window.parent.postMessage('isFramedRequest', '*');
32
+ }),
33
+ new Promise(resolve => {
34
+ setTimeout(() => {
35
+ resolve(false);
36
+ }, 75);
37
+ })
38
+ ]);
39
+
40
+ return framed;
41
+ }
package/lang/ar.js CHANGED
@@ -6,8 +6,14 @@ export default {
6
6
  "components.calendar.notSelected": "لم يتم التحديد.",
7
7
  "components.calendar.selected": "تم التحديد.",
8
8
  "components.calendar.show": "إظهار {month}",
9
+ "components.count-badge.plus" : "{number}+",
9
10
  "components.dialog.close": "إغلاق مربع الحوار هذا",
10
11
  "components.dropdown.close": "إغلاق",
12
+ "components.filter.clear": "مسح",
13
+ "components.filter.clearAnnounce": "Clearing filters for: {filterName}",
14
+ "components.filter.clearAnnounceSingle": "Clearing filters",
15
+ "components.filter.clearDescription": "Clear filters for: {filterName}",
16
+ "components.filter.clearDescriptionSingle": "Clear filters",
11
17
  "components.filter.loading": "يتم تحميل عوامل التصفية",
12
18
  "components.filter.filterCountDescription": "{number, plural, zero {لم يتم تطبيق عوامل تصفية.} one {تم تطبيق عامل تصفية واحد.} other {{number} من عوامل التصفية التي تم تطبيقها.}}",
13
19
  "components.filter.filters": "عوامل التصفية",
package/lang/cy.js CHANGED
@@ -6,8 +6,14 @@ export default {
6
6
  "components.calendar.notSelected": "Heb ei Ddewis.",
7
7
  "components.calendar.selected": "Wedi'i Ddewis.",
8
8
  "components.calendar.show": "Dangos {month}",
9
+ "components.count-badge.plus" : "{number}+",
9
10
  "components.dialog.close": "Cau'r dialog hwn",
10
11
  "components.dropdown.close": "Cau",
12
+ "components.filter.clear": "Clirio",
13
+ "components.filter.clearAnnounce": "Clearing filters for: {filterName}",
14
+ "components.filter.clearAnnounceSingle": "Clearing filters",
15
+ "components.filter.clearDescription": "Clear filters for: {filterName}",
16
+ "components.filter.clearDescriptionSingle": "Clear filters",
11
17
  "components.filter.loading": "Wrthi’n llwytho hidlyddion",
12
18
  "components.filter.filterCountDescription": "{number, plural, zero {Ni chymhwyswyd hidlwyr.} one {1 hidlydd wedi'i gymhwyso.} other {{number} hidlydd wedi'u cymhwyso.}}",
13
19
  "components.filter.filters": "Hidlyddion",
package/lang/da.js CHANGED
@@ -6,8 +6,14 @@ export default {
6
6
  "components.calendar.notSelected": "Ikke valgt.",
7
7
  "components.calendar.selected": "Valgt.",
8
8
  "components.calendar.show": "Vis {month}",
9
+ "components.count-badge.plus" : "{number}+",
9
10
  "components.dialog.close": "Luk denne dialogboks",
10
11
  "components.dropdown.close": "Luk",
12
+ "components.filter.clear": "Ryd",
13
+ "components.filter.clearAnnounce": "Clearing filters for: {filterName}",
14
+ "components.filter.clearAnnounceSingle": "Clearing filters",
15
+ "components.filter.clearDescription": "Clear filters for: {filterName}",
16
+ "components.filter.clearDescriptionSingle": "Clear filters",
11
17
  "components.filter.loading": "Indlæser filtre",
12
18
  "components.filter.filterCountDescription": "{number, plural, zero {Ingen filtre anvendt.} one {1 filter anvendt.} other {{number} filtre anvendt.}}",
13
19
  "components.filter.filters": "Filtre",
package/lang/de.js CHANGED
@@ -6,8 +6,14 @@ export default {
6
6
  "components.calendar.notSelected": "Nicht ausgewählt.",
7
7
  "components.calendar.selected": "Ausgewählt.",
8
8
  "components.calendar.show": "{month} anzeigen",
9
+ "components.count-badge.plus" : "{number}+",
9
10
  "components.dialog.close": "Dieses Dialogfeld schließen",
10
11
  "components.dropdown.close": "Schließen",
12
+ "components.filter.clear": "Löschen",
13
+ "components.filter.clearAnnounce": "Clearing filters for: {filterName}",
14
+ "components.filter.clearAnnounceSingle": "Clearing filters",
15
+ "components.filter.clearDescription": "Clear filters for: {filterName}",
16
+ "components.filter.clearDescriptionSingle": "Clear filters",
11
17
  "components.filter.loading": "Filter werden geladen",
12
18
  "components.filter.filterCountDescription": "{number, plural, zero {Keine Filter angewendet.} one {1 Filter angewendet.} other {{number} Filter angewendet.}}",
13
19
  "components.filter.filters": "Filter",
package/lang/en.js CHANGED
@@ -6,8 +6,14 @@ export default {
6
6
  "components.calendar.notSelected": "Not Selected.",
7
7
  "components.calendar.selected": "Selected.",
8
8
  "components.calendar.show": "Show {month}",
9
+ "components.count-badge.plus" : "{number}+",
9
10
  "components.dialog.close": "Close this dialog",
10
11
  "components.dropdown.close": "Close",
12
+ "components.filter.clear": "Clear",
13
+ "components.filter.clearAnnounce": "Clearing filters for: {filterName}",
14
+ "components.filter.clearAnnounceSingle": "Clearing filters",
15
+ "components.filter.clearDescription": "Clear filters for: {filterName}",
16
+ "components.filter.clearDescriptionSingle": "Clear filters",
11
17
  "components.filter.loading": "Loading filters",
12
18
  "components.filter.filterCountDescription": "{number, plural, zero {No filters applied.} one {1 filter applied.} other {{number} filters applied.}}",
13
19
  "components.filter.filters": "Filters",
package/lang/es-es.js CHANGED
@@ -6,8 +6,14 @@ export default {
6
6
  "components.calendar.notSelected": "No seleccionado.",
7
7
  "components.calendar.selected": "Seleccionado.",
8
8
  "components.calendar.show": "Mostrar {month}",
9
+ "components.count-badge.plus" : "{number}+",
9
10
  "components.dialog.close": "Cerrar este cuadro de diálogo",
10
11
  "components.dropdown.close": "Cerrar",
12
+ "components.filter.clear": "Borrar",
13
+ "components.filter.clearAnnounce": "Clearing filters for: {filterName}",
14
+ "components.filter.clearAnnounceSingle": "Clearing filters",
15
+ "components.filter.clearDescription": "Clear filters for: {filterName}",
16
+ "components.filter.clearDescriptionSingle": "Clear filters",
11
17
  "components.filter.loading": "Cargando filtros",
12
18
  "components.filter.filterCountDescription": "{number, plural, zero {Sin filtros aplicados.} one {1 filtro aplicado.} other {{number} filtros aplicados.}}",
13
19
  "components.filter.filters": "Filtros",
package/lang/es.js CHANGED
@@ -6,8 +6,14 @@ export default {
6
6
  "components.calendar.notSelected": "No seleccionado.",
7
7
  "components.calendar.selected": "Seleccionado.",
8
8
  "components.calendar.show": "Mostrar {month}",
9
+ "components.count-badge.plus" : "{number}+",
9
10
  "components.dialog.close": "Cerrar este cuadro de diálogo",
10
11
  "components.dropdown.close": "Cerrar",
12
+ "components.filter.clear": "Borrar",
13
+ "components.filter.clearAnnounce": "Clearing filters for: {filterName}",
14
+ "components.filter.clearAnnounceSingle": "Clearing filters",
15
+ "components.filter.clearDescription": "Clear filters for: {filterName}",
16
+ "components.filter.clearDescriptionSingle": "Clear filters",
11
17
  "components.filter.loading": "Cargando filtros",
12
18
  "components.filter.filterCountDescription": "{number, plural, zero {Sin filtros aplicados.} one {1 filtro aplicado.} other {{number} filtros aplicados.}}",
13
19
  "components.filter.filters": "Filtros",
package/lang/fr-fr.js CHANGED
@@ -6,8 +6,14 @@ export default {
6
6
  "components.calendar.notSelected": "Non sélectionné.",
7
7
  "components.calendar.selected": "Sélectionné.",
8
8
  "components.calendar.show": "Afficher {month}",
9
+ "components.count-badge.plus" : "{number}+",
9
10
  "components.dialog.close": "Fermer cette boîte de dialogue",
10
11
  "components.dropdown.close": "Fermer",
12
+ "components.filter.clear": "Effacer",
13
+ "components.filter.clearAnnounce": "Clearing filters for: {filterName}",
14
+ "components.filter.clearAnnounceSingle": "Clearing filters",
15
+ "components.filter.clearDescription": "Clear filters for: {filterName}",
16
+ "components.filter.clearDescriptionSingle": "Clear filters",
11
17
  "components.filter.loading": "Chargement des filtres",
12
18
  "components.filter.filterCountDescription": "{number, plural, zero {Aucun filtre appliqué.} one {1 filtre appliqué.} other {{number} filtres appliqués.}}",
13
19
  "components.filter.filters": "Filtres",