@brightspace-ui-labs/facet-filter-sort 6.7.1 → 6.7.2

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/README.md CHANGED
@@ -171,7 +171,7 @@ npm start
171
171
  ### Linting
172
172
 
173
173
  ```shell
174
- # eslint, lit-analyzer, polymer lint and style linting
174
+ # eslint, polymer lint and style linting
175
175
  npm run lint
176
176
 
177
177
  # eslint only
@@ -67,27 +67,6 @@
67
67
  "description": "The number of selected filter options for that filter category. When options are selected and de-selected, the consumer is responsible for updating this number after updating its own data store.",
68
68
  "type": "number",
69
69
  "default": "0"
70
- },
71
- {
72
- "name": "labelled-by",
73
- "description": "REQUIRED: Id of the tab that labels this panel",
74
- "type": "string"
75
- },
76
- {
77
- "name": "selected",
78
- "description": "DEPRECATED: Use to select the tab. Do NOT set if using the d2l-tab/d2l-tab-panel implementation.\nRemove with GAUD-8299-core-tabs-use-new-structure flag clean up.",
79
- "type": "boolean"
80
- },
81
- {
82
- "name": "text",
83
- "description": "DEPRECATED: The text used for the tab, as well as labelling the panel. Required if not using d2l-tab/d2l-tab-panel implementation.\nRemove with GAUD-8299-core-tabs-use-new-structure flag clean up.",
84
- "type": "string"
85
- },
86
- {
87
- "name": "no-padding",
88
- "description": "Opt out of default padding/whitespace around the panel",
89
- "type": "boolean",
90
- "default": "false"
91
70
  }
92
71
  ],
93
72
  "properties": [
@@ -126,27 +105,17 @@
126
105
  "default": "0"
127
106
  },
128
107
  {
129
- "name": "labelledBy",
130
- "attribute": "labelled-by",
131
- "description": "REQUIRED: Id of the tab that labels this panel",
132
- "type": "string"
133
- },
134
- {
135
- "name": "selected",
136
- "attribute": "selected",
137
- "description": "DEPRECATED: Use to select the tab. Do NOT set if using the d2l-tab/d2l-tab-panel implementation.\nRemove with GAUD-8299-core-tabs-use-new-structure flag clean up.",
138
- "type": "boolean"
108
+ "name": "properties",
109
+ "type": "{ labelledBy: string; noPadding: boolean; role: { type: StringConstructor; reflect: boolean; }; selected: boolean; text: string; _selected: { type: BooleanConstructor; attribute: string; reflect: boolean; }; }",
110
+ "default": "{\"labelledBy\":{\"type\":\"String\",\"attribute\":\"labelled-by\",\"reflect\":true},\"noPadding\":{\"type\":\"Boolean\",\"attribute\":\"no-padding\",\"reflect\":true},\"role\":{\"type\":\"String\",\"reflect\":true},\"selected\":{\"type\":\"Boolean\",\"reflect\":true},\"text\":{\"type\":\"String\"},\"_selected\":{\"type\":\"Boolean\",\"attribute\":\"_selected\",\"reflect\":true}}"
139
111
  },
140
112
  {
141
- "name": "text",
142
- "attribute": "text",
143
- "description": "DEPRECATED: The text used for the tab, as well as labelling the panel. Required if not using d2l-tab/d2l-tab-panel implementation.\nRemove with GAUD-8299-core-tabs-use-new-structure flag clean up.",
144
- "type": "string"
113
+ "name": "styles",
114
+ "type": "CSSResult",
115
+ "default": "\"css`\\n\\t\\t:host {\\n\\t\\t\\tbox-sizing: border-box;\\n\\t\\t\\tdisplay: none;\\n\\t\\t\\tmargin: 1.2rem 0 0 0;\\n\\t\\t}\\n\\t\\t:host([no-padding]) {\\n\\t\\t\\tmargin: 0;\\n\\t\\t}\\n\\t\\t/* clean up with GAUD-8299-core-tabs-use-new-structure flag clean up */\\n\\t\\t:host([selected]) {\\n\\t\\t\\tdisplay: block;\\n\\t\\t}\\n\\t\\t:host([_selected]) {\\n\\t\\t\\tdisplay: block;\\n\\t\\t}\\n\\t`\""
145
116
  },
146
117
  {
147
118
  "name": "noPadding",
148
- "attribute": "no-padding",
149
- "description": "Opt out of default padding/whitespace around the panel",
150
119
  "type": "boolean",
151
120
  "default": "false"
152
121
  }
@@ -188,83 +157,29 @@
188
157
  "name": "d2l-labs-filter-dropdown-option",
189
158
  "path": "./components/filter-dropdown/filter-dropdown-option.js",
190
159
  "description": "A filter menu item component.",
191
- "attributes": [
192
- {
193
- "name": "value",
194
- "description": "REQUIRED: The selectable item's value",
195
- "type": "string"
196
- },
197
- {
198
- "name": "selected",
199
- "description": "This will set the item to be selected by default",
200
- "type": "boolean",
201
- "default": "false"
202
- },
203
- {
204
- "name": "text",
205
- "description": "REQUIRED: Text displayed by the menu item",
206
- "type": "string"
207
- },
208
- {
209
- "name": "description",
210
- "description": "ACCESSIBILITY: A description of the menu item that will be used by screen readers for additional context",
211
- "type": "string"
212
- },
213
- {
214
- "name": "disabled",
215
- "description": "Disables the menu item",
216
- "type": "boolean",
217
- "default": "false"
218
- },
219
- {
220
- "name": "lines",
221
- "description": "The number of lines to display before truncating text with an ellipsis. Defaults to 2.",
222
- "type": "number",
223
- "default": "2"
224
- }
225
- ],
226
160
  "properties": [
227
161
  {
228
162
  "name": "role",
229
163
  "type": "string",
230
164
  "default": "\"menuitemcheckbox\""
231
165
  },
232
- {
233
- "name": "value",
234
- "attribute": "value",
235
- "description": "REQUIRED: The selectable item's value",
236
- "type": "string"
237
- },
238
166
  {
239
167
  "name": "selected",
240
- "attribute": "selected",
241
- "description": "This will set the item to be selected by default",
242
168
  "type": "boolean",
243
169
  "default": "false"
244
170
  },
245
171
  {
246
- "name": "text",
247
- "attribute": "text",
248
- "description": "REQUIRED: Text displayed by the menu item",
249
- "type": "string"
250
- },
251
- {
252
- "name": "description",
253
- "attribute": "description",
254
- "description": "ACCESSIBILITY: A description of the menu item that will be used by screen readers for additional context",
255
- "type": "string"
172
+ "name": "properties",
173
+ "type": "{ selected: boolean; value: string; }",
174
+ "default": "{\"selected\":{\"type\":\"Boolean\",\"reflect\":true},\"value\":{\"type\":\"String\"}}"
256
175
  },
257
176
  {
258
177
  "name": "disabled",
259
- "attribute": "disabled",
260
- "description": "Disables the menu item",
261
178
  "type": "boolean",
262
179
  "default": "false"
263
180
  },
264
181
  {
265
182
  "name": "lines",
266
- "attribute": "lines",
267
- "description": "The number of lines to display before truncating text with an ellipsis. Defaults to 2.",
268
183
  "type": "number",
269
184
  "default": "2"
270
185
  }
@@ -467,78 +382,24 @@
467
382
  "name": "d2l-labs-sort-by-dropdown-option",
468
383
  "path": "./components/sort-by-dropdown/sort-by-dropdown-option.js",
469
384
  "description": "A dropdown option menu item component.",
470
- "attributes": [
471
- {
472
- "name": "value",
473
- "description": "REQUIRED: The selectable item's value",
474
- "type": "string"
475
- },
476
- {
477
- "name": "selected",
478
- "description": "This will set the item to be selected by default",
479
- "type": "boolean",
480
- "default": "false"
481
- },
482
- {
483
- "name": "text",
484
- "description": "REQUIRED: Text displayed by the menu item",
485
- "type": "string"
486
- },
487
- {
488
- "name": "description",
489
- "description": "ACCESSIBILITY: A description of the menu item that will be used by screen readers for additional context",
490
- "type": "string"
491
- },
492
- {
493
- "name": "disabled",
494
- "description": "Disables the menu item",
495
- "type": "boolean",
496
- "default": "false"
497
- },
498
- {
499
- "name": "lines",
500
- "description": "The number of lines to display before truncating text with an ellipsis. Defaults to 2.",
501
- "type": "number",
502
- "default": "2"
503
- }
504
- ],
505
385
  "properties": [
506
- {
507
- "name": "value",
508
- "attribute": "value",
509
- "description": "REQUIRED: The selectable item's value",
510
- "type": "string"
511
- },
512
386
  {
513
387
  "name": "selected",
514
- "attribute": "selected",
515
- "description": "This will set the item to be selected by default",
516
388
  "type": "boolean",
517
389
  "default": "false"
518
390
  },
519
391
  {
520
- "name": "text",
521
- "attribute": "text",
522
- "description": "REQUIRED: Text displayed by the menu item",
523
- "type": "string"
524
- },
525
- {
526
- "name": "description",
527
- "attribute": "description",
528
- "description": "ACCESSIBILITY: A description of the menu item that will be used by screen readers for additional context",
529
- "type": "string"
392
+ "name": "properties",
393
+ "type": "{ selected: boolean; value: string; }",
394
+ "default": "{\"selected\":{\"type\":\"Boolean\",\"reflect\":true},\"value\":{\"type\":\"String\"}}"
530
395
  },
531
396
  {
532
397
  "name": "disabled",
533
- "attribute": "disabled",
534
- "description": "Disables the menu item",
535
398
  "type": "boolean",
536
399
  "default": "false"
537
400
  },
538
401
  {
539
402
  "name": "lines",
540
- "attribute": "lines",
541
- "description": "The number of lines to display before truncating text with an ellipsis. Defaults to 2.",
542
403
  "type": "number",
543
404
  "default": "2"
544
405
  }
package/lang/pl.js ADDED
@@ -0,0 +1,16 @@
1
+ /* eslint quotes: 0 */
2
+
3
+ export default {
4
+ "appliedFilters": "Zastosowane filtry:",
5
+ "noActiveFilters": "Brak aktywnych filtrów",
6
+ "clearFilters": "Wyczyść filtry",
7
+ "categoryTitleMultiple": "{title} ({numSelected})",
8
+ "searchBy": "Wyszukiwanie według {category}",
9
+ "clear": "Wyczyść",
10
+ "filter": "Filtr",
11
+ "filterBy": "Filtruj według",
12
+ "filterMultiple": "Filtr: Filtry {numOptions}",
13
+ "filterSingle": "Filtr: 1 filtr",
14
+ "sort": "Sortowanie",
15
+ "sortWithOption": "Sortowanie: {option}"
16
+ };
package/lang/ru.js ADDED
@@ -0,0 +1,16 @@
1
+ /* eslint quotes: 0 */
2
+
3
+ export default {
4
+ "appliedFilters": "Применяемые фильтры:",
5
+ "noActiveFilters": "Нет активных фильтров",
6
+ "clearFilters": "Очистить фильтры",
7
+ "categoryTitleMultiple": "{title} ({numSelected})",
8
+ "searchBy": "Поиск по {category}",
9
+ "clear": "Очистить",
10
+ "filter": "Фильтр",
11
+ "filterBy": "Фильтровать по",
12
+ "filterMultiple": "Фильтр: {numOptions} фильтра(-ов)",
13
+ "filterSingle": "Фильтр: 1 фильтр",
14
+ "sort": "Сортировать",
15
+ "sortWithOption": "Сортировать: {option}"
16
+ };
package/package.json CHANGED
@@ -7,7 +7,8 @@
7
7
  },
8
8
  "name": "@brightspace-ui-labs/facet-filter-sort",
9
9
  "publishConfig": {
10
- "access": "public"
10
+ "access": "public",
11
+ "registry": "https://registry.npmjs.org/"
11
12
  },
12
13
  "files": [
13
14
  "facet-filter-sort.serge.json",
@@ -16,9 +17,8 @@
16
17
  "/lang"
17
18
  ],
18
19
  "scripts": {
19
- "lint": "npm run lint:eslint && npm run lint:lit && npm run lint:style",
20
+ "lint": "npm run lint:eslint && npm run lint:style",
20
21
  "lint:eslint": "eslint . --ext .js,.html",
21
- "lint:lit": "lit-analyzer \"{components, test, demo}/**/*.js\" --strict --rules.no-unknown-tag-name off",
22
22
  "lint:style": "stylelint \"**/*.{js,html}\"",
23
23
  "start": "web-dev-server --node-resolve --watch --open --app-index demo/index.html",
24
24
  "test": "npm run lint && npm run test:headless",
@@ -34,10 +34,9 @@
34
34
  "@web/dev-server": "^0.3",
35
35
  "eslint": "^8",
36
36
  "eslint-config-brightspace": "^0.25",
37
- "lit-analyzer": "^1",
38
37
  "stylelint": "^15"
39
38
  },
40
- "version": "6.7.1",
39
+ "version": "6.7.2",
41
40
  "dependencies": {
42
41
  "@brightspace-ui/core": "^3",
43
42
  "@brightspace-ui/localize-behavior": "^2",