shark-ng-table 7.0.0 → 8.0.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.
- package/README.md +66 -52
- package/fesm2022/shark-ng-table.mjs +2191 -1833
- package/fesm2022/shark-ng-table.mjs.map +1 -1
- package/package.json +43 -31
- package/shark-ng-table.css +19 -1
- package/shark-ng-table.min.css +2 -4
- package/types/shark-ng-table.d.ts +913 -0
- package/app/table/child.component.d.ts +0 -34
- package/app/table/column-change-event.d.ts +0 -5
- package/app/table/column.d.ts +0 -64
- package/app/table/current.data.event.d.ts +0 -5
- package/app/table/dynamic/dynamic.contents.d.ts +0 -20
- package/app/table/dynamic/dynamic.contents.directive.d.ts +0 -8
- package/app/table/header-button.component.d.ts +0 -16
- package/app/table/index.d.ts +0 -15
- package/app/table/localfilter.pipe.d.ts +0 -11
- package/app/table/notifier/aria-notifier.component.d.ts +0 -14
- package/app/table/notifier/notifier.service.d.ts +0 -7
- package/app/table/page.change.event.d.ts +0 -27
- package/app/table/page.d.ts +0 -20
- package/app/table/sort.type.d.ts +0 -30
- package/app/table/table.body.component.d.ts +0 -67
- package/app/table/table.cell.component.d.ts +0 -20
- package/app/table/table.component.d.ts +0 -202
- package/app/table/table.footer.component.d.ts +0 -49
- package/app/table/table.header.component.d.ts +0 -39
- package/app/table/table.info.header.component.d.ts +0 -28
- package/app/table/table.module.d.ts +0 -21
- package/app/table/table.pagination.component.d.ts +0 -21
- package/app/table/table.utils.d.ts +0 -13
- package/esm2022/app/table/child.component.mjs +0 -76
- package/esm2022/app/table/column-change-event.mjs +0 -5
- package/esm2022/app/table/column.mjs +0 -2
- package/esm2022/app/table/current.data.event.mjs +0 -5
- package/esm2022/app/table/dynamic/dynamic.contents.directive.mjs +0 -17
- package/esm2022/app/table/dynamic/dynamic.contents.mjs +0 -2
- package/esm2022/app/table/header-button.component.mjs +0 -52
- package/esm2022/app/table/index.mjs +0 -11
- package/esm2022/app/table/localfilter.pipe.mjs +0 -24
- package/esm2022/app/table/notifier/aria-notifier.component.mjs +0 -44
- package/esm2022/app/table/notifier/notifier.service.mjs +0 -13
- package/esm2022/app/table/page.change.event.mjs +0 -2
- package/esm2022/app/table/page.mjs +0 -2
- package/esm2022/app/table/sort.type.mjs +0 -32
- package/esm2022/app/table/table.body.component.mjs +0 -181
- package/esm2022/app/table/table.cell.component.mjs +0 -75
- package/esm2022/app/table/table.component.mjs +0 -773
- package/esm2022/app/table/table.footer.component.mjs +0 -176
- package/esm2022/app/table/table.header.component.mjs +0 -204
- package/esm2022/app/table/table.info.header.component.mjs +0 -142
- package/esm2022/app/table/table.module.mjs +0 -73
- package/esm2022/app/table/table.pagination.component.mjs +0 -134
- package/esm2022/app/table/table.utils.mjs +0 -72
- package/esm2022/public_api.mjs +0 -2
- package/esm2022/shark-ng-table.mjs +0 -5
- package/index.d.ts +0 -5
- package/public_api.d.ts +0 -1
package/package.json
CHANGED
|
@@ -1,8 +1,40 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "shark-ng-table",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "8.0.0",
|
|
4
4
|
"description": "A robust table for Angular built with Accessibility in mind.",
|
|
5
|
-
"
|
|
5
|
+
"keywords": [
|
|
6
|
+
"angular",
|
|
7
|
+
"table",
|
|
8
|
+
"datatable",
|
|
9
|
+
"accessibility",
|
|
10
|
+
"a11y",
|
|
11
|
+
"wcag",
|
|
12
|
+
"section508"
|
|
13
|
+
],
|
|
14
|
+
"author": "Andrew Landsverk",
|
|
15
|
+
"license": "MIT",
|
|
16
|
+
"repository": {
|
|
17
|
+
"type": "git",
|
|
18
|
+
"url": "git+https://github.com/sharkops-io/shark-ng-table.git"
|
|
19
|
+
},
|
|
20
|
+
"bugs": {
|
|
21
|
+
"url": "https://github.com/sharkops-io/shark-ng-table/issues"
|
|
22
|
+
},
|
|
23
|
+
"homepage": "https://shark-ng-table.sharkops.io/",
|
|
24
|
+
"publishConfig": {
|
|
25
|
+
"access": "public",
|
|
26
|
+
"provenance": true
|
|
27
|
+
},
|
|
28
|
+
"peerDependencies": {
|
|
29
|
+
"@angular/common": "^21.0.0 || ^22.0.0",
|
|
30
|
+
"@angular/core": "^21.0.0 || ^22.0.0",
|
|
31
|
+
"@angular/forms": "^21.0.0 || ^22.0.0",
|
|
32
|
+
"@angular/router": "^21.0.0 || ^22.0.0",
|
|
33
|
+
"rxjs": "^7.4.0"
|
|
34
|
+
},
|
|
35
|
+
"dependencies": {
|
|
36
|
+
"tslib": "^2.3.0"
|
|
37
|
+
},
|
|
6
38
|
"exports": {
|
|
7
39
|
"./shark-ng-table.css": {
|
|
8
40
|
"default": "./shark-ng-table.css"
|
|
@@ -10,41 +42,21 @@
|
|
|
10
42
|
"./shark-ng-table.min.css": {
|
|
11
43
|
"default": "./shark-ng-table.min.css"
|
|
12
44
|
},
|
|
45
|
+
"./fonts/*": {
|
|
46
|
+
"default": "./fonts/*"
|
|
47
|
+
},
|
|
13
48
|
"./package.json": {
|
|
14
49
|
"default": "./package.json"
|
|
15
50
|
},
|
|
16
51
|
".": {
|
|
17
|
-
"types": "./
|
|
18
|
-
"esm2022": "./esm2022/shark-ng-table.mjs",
|
|
19
|
-
"esm": "./esm2022/shark-ng-table.mjs",
|
|
52
|
+
"types": "./types/shark-ng-table.d.ts",
|
|
20
53
|
"default": "./fesm2022/shark-ng-table.mjs"
|
|
21
54
|
}
|
|
22
55
|
},
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
|
|
26
|
-
},
|
|
27
|
-
"author": "Andrew Landsverk",
|
|
28
|
-
"license": "MIT",
|
|
29
|
-
"bugs": {
|
|
30
|
-
"url": "https://github.com/Quantas/shark-ng-table/issues"
|
|
31
|
-
},
|
|
32
|
-
"homepage": "https://github.com/Quantas/shark-ng-table",
|
|
33
|
-
"publishConfig": {
|
|
34
|
-
"registry": "https://registry.npmjs.org/"
|
|
35
|
-
},
|
|
36
|
-
"peerDependencies": {
|
|
37
|
-
"@angular/common": ">= 16.0.0",
|
|
38
|
-
"@angular/core": ">= 16.0.0",
|
|
39
|
-
"@angular/forms": ">= 16.0.0",
|
|
40
|
-
"@angular/router": ">= 16.0.0",
|
|
41
|
-
"rxjs": ">= 6.2.0",
|
|
42
|
-
"core-js": ">= 3.0.0"
|
|
43
|
-
},
|
|
56
|
+
"sideEffects": [
|
|
57
|
+
"*.css"
|
|
58
|
+
],
|
|
44
59
|
"module": "fesm2022/shark-ng-table.mjs",
|
|
45
|
-
"typings": "
|
|
46
|
-
"
|
|
47
|
-
"dependencies": {
|
|
48
|
-
"tslib": "^2.3.0"
|
|
49
|
-
}
|
|
60
|
+
"typings": "types/shark-ng-table.d.ts",
|
|
61
|
+
"type": "module"
|
|
50
62
|
}
|
package/shark-ng-table.css
CHANGED
|
@@ -15,7 +15,9 @@
|
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
.shark-table .controls {
|
|
18
|
-
|
|
18
|
+
/* visible (not auto) so focus outlines are not clipped and controls wrap on narrow screens */
|
|
19
|
+
overflow: visible;
|
|
20
|
+
gap: 0.5rem 0;
|
|
19
21
|
}
|
|
20
22
|
|
|
21
23
|
.shark-table .controls.header-buttons {
|
|
@@ -310,3 +312,19 @@
|
|
|
310
312
|
.shark-table .fa-sync:before {
|
|
311
313
|
content: "\6b";
|
|
312
314
|
}
|
|
315
|
+
|
|
316
|
+
/* Column filter inputs: at least 24px tall to meet WCAG 2.2 target size (2.5.8) */
|
|
317
|
+
.shark-table .header-row input[type="text"] {
|
|
318
|
+
min-height: 24px;
|
|
319
|
+
box-sizing: border-box;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
/* Respect the user's reduced motion preference */
|
|
323
|
+
@media (prefers-reduced-motion: reduce) {
|
|
324
|
+
.shark-table *,
|
|
325
|
+
.shark-table *::before,
|
|
326
|
+
.shark-table *::after {
|
|
327
|
+
transition: none !important;
|
|
328
|
+
animation: none !important;
|
|
329
|
+
}
|
|
330
|
+
}
|
package/shark-ng-table.min.css
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
@charset "UTF-8";.shark-table .rowLink:hover{background-color:#ddd;cursor:pointer}.shark-table .table-wrapper{overflow:auto;margin-bottom:.5rem}.shark-table .flex-spacer{margin-left:auto}.shark-table .controls{overflow:
|
|
2
|
-
/*
|
|
1
|
+
@charset "UTF-8";.shark-table .rowLink:hover{background-color:#ddd;cursor:pointer}.shark-table .table-wrapper{overflow:auto;margin-bottom:.5rem}.shark-table .flex-spacer{margin-left:auto}.shark-table .controls{overflow:visible;gap:.5rem 0}.shark-table .controls.header-buttons,.shark-table .info-footer{display:flex;flex-wrap:wrap}.shark-table .left-side-template{margin-left:.5rem}.shark-table .right-side-template{margin-right:.5rem}.shark-table .controls .server-refresh{padding-top:.3rem}.shark-table .controls button{margin-left:.25rem}.shark-table .controls button.toggle-dropdown{margin-left:0}.shark-table .table-wrapper table{margin-top:.5rem;margin-bottom:.5rem;border-collapse:collapse;width:100%}.shark-table .table-wrapper table .right{text-align:right}.shark-table .table-wrapper th,.shark-table .table-wrapper td{padding:.25rem 1rem}.shark-table .header-row>th{white-space:nowrap}.shark-table .header-row>th,.shark-table .header-row>td{border-right:1px solid black}.shark-table .header-row>th:last-child,.shark-table .header-row>td:last-child{border-right:none}.shark-table .header-filter-row>td{text-align:center}.shark-table .header-row{border-bottom:1px solid black;border-top:1px solid black}.shark-table .header-buttons button{background:none;border:none;font-size:16px;cursor:pointer;padding-left:0;padding-right:.25rem}.shark-table .data-row.even>td{border-right:1px solid #f2f2f2}.shark-table .data-row.odd>td{border-right:1px solid white}.shark-table .data-row.rowOpen>td{border-right:1px solid #e8e8e8}.shark-table .data-row>td:last-child{border-right:none}.shark-table .child-spacer{width:1rem}.shark-table .local-paging-size{margin-right:1.5rem}.shark-table .even{background-color:#f2f2f2}.shark-table .rowOpen{background-color:#e8e8e8}.shark-table .pointer{cursor:pointer}.shark-table .ordering-button{vertical-align:middle}.shark-table .toggle-dropdown{border:none;background-color:#fff;text-align:left}.shark-table .dropdown{border:1px solid #DDDDDD;background-color:#fff;color:#000;font-weight:400;padding:.5rem}.shark-table .dropdown fieldset{margin:0;padding:0;border:none}.shark-table .dropdown .column-wrapper{display:flex;align-items:left;justify-content:left;flex-flow:row wrap;align-content:flex-start}.shark-table .dropdown label{cursor:pointer;display:block;text-align:left;padding:.25rem;min-width:13rem}.shark-table .dropdown label input{vertical-align:top}.shark-table .pagination-wrapper{float:right}.shark-table .pagination{display:inline-block}.shark-table .pagination button:hover,.shark-table .pagination button.active{background-color:#ddd}.shark-table .pagination button.active{cursor:default}.shark-table .pagination button{border:none;background-color:#fff;cursor:pointer;float:left;padding:4px 16px;transition:background-color .3s}.shark-table .pagination button.fa{padding:6px 16px}.shark-table .screen-reader{position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden}.shark-table .screen-reader-button-label{font-size:0;height:1px;overflow:hidden;display:block}/*!
|
|
3
2
|
* Font Awesome Free 5.0.3 by @fontawesome - http://fontawesome.com
|
|
4
3
|
* License - http://fontawesome.com/license (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
|
|
5
|
-
|
|
6
|
-
@font-face{font-family:"shark-ng-table-icons";src:url("fonts/shark-ng-table-icons.eot");src:url("fonts/shark-ng-table-icons.eot?#iefix") format("embedded-opentype"),url("fonts/shark-ng-table-icons.woff") format("woff"),url("fonts/shark-ng-table-icons.ttf") format("truetype"),url("fonts/shark-ng-table-icons.svg#shark-ng-table-icons") format("svg");font-weight:normal;font-style:normal}.shark-table .fa,.shark-table .fab,.shark-table .fal,.shark-table .far,.shark-table .fas{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:inline-block;font-style:normal;font-variant:normal;text-rendering:auto;line-height:1}.shark-table .fa-fw{text-align:center;width:1.25em}.shark-table .fa,.shark-table .far,.shark-table .fas{font-family:shark-ng-table-icons;font-weight:900}.shark-table .fa-sort:before{content:"\61"}.shark-table .fa-sort-up:before{content:"\62"}.shark-table .fa-sort-down:before{content:"\63"}.shark-table .fa-caret-down:before{content:"\64"}.shark-table .fa-caret-right:before{content:"\65"}.shark-table .fa-angle-down:before{content:"\66"}.shark-table .fa-angle-left:before{content:"\67"}.shark-table .fa-angle-right:before{content:"\68"}.shark-table .fa-angle-double-left:before{content:"\69"}.shark-table .fa-angle-double-right:before{content:"\6a"}.shark-table .fa-sync:before{content:"\6b"}
|
|
4
|
+
*/@font-face{font-family:shark-ng-table-icons;src:url(fonts/shark-ng-table-icons.eot);src:url(fonts/shark-ng-table-icons.eot?#iefix) format("embedded-opentype"),url(fonts/shark-ng-table-icons.woff) format("woff"),url(fonts/shark-ng-table-icons.ttf) format("truetype"),url(fonts/shark-ng-table-icons.svg#shark-ng-table-icons) format("svg");font-weight:400;font-style:normal}.shark-table .fa,.shark-table .fab,.shark-table .fal,.shark-table .far,.shark-table .fas{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:inline-block;font-style:normal;font-variant:normal;text-rendering:auto;line-height:1}.shark-table .fa-fw{text-align:center;width:1.25em}.shark-table .fa,.shark-table .far,.shark-table .fas{font-family:shark-ng-table-icons;font-weight:900}.shark-table .fa-sort:before{content:"a"}.shark-table .fa-sort-up:before{content:"b"}.shark-table .fa-sort-down:before{content:"c"}.shark-table .fa-caret-down:before{content:"d"}.shark-table .fa-caret-right:before{content:"e"}.shark-table .fa-angle-down:before{content:"f"}.shark-table .fa-angle-left:before{content:"g"}.shark-table .fa-angle-right:before{content:"h"}.shark-table .fa-angle-double-left:before{content:"i"}.shark-table .fa-angle-double-right:before{content:"j"}.shark-table .fa-sync:before{content:"k"}.shark-table .header-row input[type=text]{min-height:24px;box-sizing:border-box}@media(prefers-reduced-motion:reduce){.shark-table *,.shark-table *:before,.shark-table *:after{transition:none!important;animation:none!important}}
|