@furystack/shades-common-components 8.1.1 → 8.2.1
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/CHANGELOG.md
CHANGED
|
@@ -7,198 +7,107 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
7
7
|
|
|
8
8
|
**Note:** Version bump only for package @furystack/shades-common-components
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
10
|
### [2.0.4](https://github.com/furystack/furystack/compare/@furystack/shades-common-components@2.0.3...@furystack/shades-common-components@2.0.4) (2022-02-02)
|
|
16
11
|
|
|
17
12
|
**Note:** Version bump only for package @furystack/shades-common-components
|
|
18
13
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
14
|
### [2.0.3](https://github.com/furystack/furystack/compare/@furystack/shades-common-components@2.0.1...@furystack/shades-common-components@2.0.3) (2022-01-10)
|
|
25
15
|
|
|
26
16
|
**Note:** Version bump only for package @furystack/shades-common-components
|
|
27
17
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
18
|
### [2.0.2](https://github.com/furystack/furystack/compare/@furystack/shades-common-components@2.0.1...@furystack/shades-common-components@2.0.2) (2022-01-10)
|
|
34
19
|
|
|
35
20
|
**Note:** Version bump only for package @furystack/shades-common-components
|
|
36
21
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
22
|
### [2.0.1](https://github.com/furystack/furystack/compare/@furystack/shades-common-components@2.0.0...@furystack/shades-common-components@2.0.1) (2021-12-20)
|
|
43
23
|
|
|
44
24
|
**Note:** Version bump only for package @furystack/shades-common-components
|
|
45
25
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
26
|
## [2.0.0](https://github.com/furystack/furystack/compare/@furystack/shades-common-components@1.8.3...@furystack/shades-common-components@2.0.0) (2021-12-08)
|
|
52
27
|
|
|
53
|
-
|
|
54
28
|
### ⚠ BREAKING CHANGES
|
|
55
29
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
* **@furystack/shades:** Routing based on pathname, add basic unit tests for component factory ([#164](https://github.com/furystack/furystack/issues/164)) ([3221e0c](https://github.com/furystack/furystack/commit/3221e0ce60d3532b6e5f570db64d211e479673ec))
|
|
30
|
+
- **@furystack/shades:** Disposable resources on Shade Components (#165)
|
|
31
|
+
- **@furystack/shades:** Routing based on pathname, add basic unit tests for component factory (#164)
|
|
60
32
|
|
|
33
|
+
- **@furystack/shades:** Routing based on pathname, add basic unit tests for component factory ([#164](https://github.com/furystack/furystack/issues/164)) ([3221e0c](https://github.com/furystack/furystack/commit/3221e0ce60d3532b6e5f570db64d211e479673ec))
|
|
61
34
|
|
|
62
35
|
### 🚀 What's new
|
|
63
36
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
37
|
+
- **@furystack/shades:** Disposable resources on Shade Components ([#165](https://github.com/furystack/furystack/issues/165)) ([8567e7e](https://github.com/furystack/furystack/commit/8567e7e2e01cec232a5f4448dfc0833c1f183229))
|
|
68
38
|
|
|
69
39
|
### [1.8.3](https://github.com/furystack/furystack/compare/@furystack/shades-common-components@1.8.2...@furystack/shades-common-components@1.8.3) (2021-11-30)
|
|
70
40
|
|
|
71
41
|
**Note:** Version bump only for package @furystack/shades-common-components
|
|
72
42
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
43
|
### [1.8.2](https://github.com/furystack/furystack/compare/@furystack/shades-common-components@1.8.1...@furystack/shades-common-components@1.8.2) (2021-11-29)
|
|
79
44
|
|
|
80
45
|
**Note:** Version bump only for package @furystack/shades-common-components
|
|
81
46
|
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
47
|
### [1.8.1](https://github.com/furystack/furystack/compare/@furystack/shades-common-components@1.8.0...@furystack/shades-common-components@1.8.1) (2021-11-19)
|
|
88
48
|
|
|
89
49
|
**Note:** Version bump only for package @furystack/shades-common-components
|
|
90
50
|
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
51
|
## [1.8.0](https://github.com/furystack/furystack/compare/@furystack/shades-common-components@1.7.6...@furystack/shades-common-components@1.8.0) (2021-11-17)
|
|
97
52
|
|
|
98
|
-
|
|
99
53
|
### 🚀 What's new
|
|
100
54
|
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
55
|
+
- **@furystack/shades-common-components:** improved button theme look and feel ([c117e5e](https://github.com/furystack/furystack/commit/c117e5eaf3fe2cd9553357e06ec6bd6a43cf0f50))
|
|
56
|
+
- **@furystack/shades-common-components:** input theme from provider ([4cdc6bc](https://github.com/furystack/furystack/commit/4cdc6bc60525b04a1aefa4e4a3438db730e63b68))
|
|
106
57
|
|
|
107
58
|
### [1.7.6](https://github.com/furystack/furystack/compare/@furystack/shades-common-components@1.7.5...@furystack/shades-common-components@1.7.6) (2021-11-09)
|
|
108
59
|
|
|
109
60
|
**Note:** Version bump only for package @furystack/shades-common-components
|
|
110
61
|
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
62
|
### [1.7.5](https://github.com/furystack/furystack/compare/@furystack/shades-common-components@1.7.4...@furystack/shades-common-components@1.7.5) (2021-10-15)
|
|
117
63
|
|
|
118
64
|
**Note:** Version bump only for package @furystack/shades-common-components
|
|
119
65
|
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
66
|
### [1.7.4](https://github.com/furystack/furystack/compare/@furystack/shades-common-components@1.7.3...@furystack/shades-common-components@1.7.4) (2021-10-05)
|
|
126
67
|
|
|
127
68
|
**Note:** Version bump only for package @furystack/shades-common-components
|
|
128
69
|
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
70
|
### [1.7.3](https://github.com/furystack/furystack/compare/@furystack/shades-common-components@1.7.2...@furystack/shades-common-components@1.7.3) (2021-09-16)
|
|
135
71
|
|
|
136
72
|
**Note:** Version bump only for package @furystack/shades-common-components
|
|
137
73
|
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
74
|
### [1.7.2](https://github.com/furystack/furystack/compare/@furystack/shades-common-components@1.7.1...@furystack/shades-common-components@1.7.2) (2021-08-27)
|
|
144
75
|
|
|
145
76
|
**Note:** Version bump only for package @furystack/shades-common-components
|
|
146
77
|
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
78
|
### [1.7.1](https://github.com/furystack/furystack/compare/@furystack/shades-common-components@1.7.0...@furystack/shades-common-components@1.7.1) (2021-08-19)
|
|
153
79
|
|
|
154
80
|
**Note:** Version bump only for package @furystack/shades-common-components
|
|
155
81
|
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
82
|
## 1.7.0 (2021-08-19)
|
|
162
83
|
|
|
163
|
-
|
|
164
84
|
### 🚀 What's new
|
|
165
85
|
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
86
|
+
- **project:** re-added Shades ([#120](https://github.com/furystack/furystack/issues/120)) ([9f58174](https://github.com/furystack/furystack/commit/9f58174b3762fd4e4106f48215a72ec295cf2553))
|
|
87
|
+
- **shades-common-components:** Optional full screen hit list for Command Palette ([0b48022](https://github.com/furystack/furystack/commit/0b48022c14b2d343722f5274010e2e5bc7a18e12))
|
|
169
88
|
|
|
170
89
|
### 🐛 Bug Fixes
|
|
171
90
|
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
91
|
+
- **common-components:** DataGrid props ([4ce2b0d](https://github.com/furystack/furystack/commit/4ce2b0d15f3e37387ec955aadc51164ca85b7535))
|
|
176
92
|
|
|
177
93
|
## 1.6.0 (2021-07-31)
|
|
178
94
|
|
|
179
|
-
|
|
180
95
|
### 🚀 What's new
|
|
181
96
|
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
97
|
+
- **project:** re-added Shades ([#120](https://github.com/furystack/furystack/issues/120)) ([9f58174](https://github.com/furystack/furystack/commit/9f58174b3762fd4e4106f48215a72ec295cf2553))
|
|
98
|
+
- **shades-common-components:** Optional full screen hit list for Command Palette ([0b48022](https://github.com/furystack/furystack/commit/0b48022c14b2d343722f5274010e2e5bc7a18e12))
|
|
185
99
|
|
|
186
100
|
### 🐛 Bug Fixes
|
|
187
101
|
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
102
|
+
- **common-components:** DataGrid props ([4ce2b0d](https://github.com/furystack/furystack/commit/4ce2b0d15f3e37387ec955aadc51164ca85b7535))
|
|
192
103
|
|
|
193
104
|
## 1.5.0 (2021-07-30)
|
|
194
105
|
|
|
195
|
-
|
|
196
106
|
### 🚀 What's new
|
|
197
107
|
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
108
|
+
- **project:** re-added Shades ([#120](https://github.com/furystack/furystack/issues/120)) ([9f58174](https://github.com/furystack/furystack/commit/9f58174b3762fd4e4106f48215a72ec295cf2553))
|
|
109
|
+
- **shades-common-components:** Optional full screen hit list for Command Palette ([0b48022](https://github.com/furystack/furystack/commit/0b48022c14b2d343722f5274010e2e5bc7a18e12))
|
|
201
110
|
|
|
202
111
|
### 🐛 Bug Fixes
|
|
203
112
|
|
|
204
|
-
|
|
113
|
+
- **common-components:** DataGrid props ([4ce2b0d](https://github.com/furystack/furystack/commit/4ce2b0d15f3e37387ec955aadc51164ca85b7535))
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
+
import { type TokensToRegexpOptions } from 'path-to-regexp';
|
|
1
2
|
export declare const AppBarLink: (props: Omit<Partial<Omit<HTMLAnchorElement, "onclick">>, "style"> & {
|
|
2
3
|
style?: Partial<CSSStyleDeclaration> | undefined;
|
|
4
|
+
} & {
|
|
5
|
+
routingOptions?: TokensToRegexpOptions | undefined;
|
|
3
6
|
} & Omit<Partial<HTMLElement>, "style">, children?: import("@furystack/shades").ChildrenList | undefined) => JSX.Element<any>;
|
|
4
7
|
//# sourceMappingURL=app-bar-link.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-bar-link.d.ts","sourceRoot":"","sources":["../../src/components/app-bar-link.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"app-bar-link.d.ts","sourceRoot":"","sources":["../../src/components/app-bar-link.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAS,KAAK,qBAAqB,EAAE,MAAM,gBAAgB,CAAA;AAGlE,eAAO,MAAM,UAAU;;;;6HA2BrB,CAAA"}
|
|
@@ -6,7 +6,7 @@ export const AppBarLink = Shade({
|
|
|
6
6
|
shadowDomName: 'shade-app-bar-link',
|
|
7
7
|
render: ({ children, props, useObservable, injector, element }) => {
|
|
8
8
|
const getAnchorStyle = (currentUrl) => {
|
|
9
|
-
const isActive = !!match(props.href)(currentUrl);
|
|
9
|
+
const isActive = !!match(props.href, props.routingOptions)(currentUrl);
|
|
10
10
|
const themeProviderService = injector.getInstance(ThemeProviderService);
|
|
11
11
|
const { theme } = themeProviderService;
|
|
12
12
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-bar-link.js","sourceRoot":"","sources":["../../src/components/app-bar-link.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAC/C,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AACtF,OAAO,EAAE,KAAK,
|
|
1
|
+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;gBAC/C,MAAM,EAAE,SAAS;aAClB,CAAA;QACH,CAAC,CAAA;QAED,MAAM,CAAC,UAAU,CAAC,GAAG,aAAa,CAAC,gBAAgB,EAAE,QAAQ,CAAC,WAAW,CAAC,eAAe,CAAC,CAAC,qBAAqB,CAAC,CAAA;QAEjH,WAAW,CAAC,OAAsB,EAAE,EAAE,KAAK,EAAE,cAAc,CAAC,UAAU,CAAC,EAAE,CAAC,CAAA;QAE1E,OAAO,gBAAC,SAAS,OAAK,KAAK,IAAG,QAAQ,CAAa,CAAA;IACrD,CAAC;CACF,CAAC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@furystack/shades-common-components",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.2.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -35,10 +35,10 @@
|
|
|
35
35
|
"vitest": "^1.6.0"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@furystack/core": "^14.0.
|
|
39
|
-
"@furystack/inject": "^11.0.
|
|
40
|
-
"@furystack/shades": "^10.0.
|
|
41
|
-
"@furystack/utils": "^7.0.
|
|
38
|
+
"@furystack/core": "^14.0.4",
|
|
39
|
+
"@furystack/inject": "^11.0.3",
|
|
40
|
+
"@furystack/shades": "^10.0.4",
|
|
41
|
+
"@furystack/utils": "^7.0.2",
|
|
42
42
|
"path-to-regexp": "^6.2.2",
|
|
43
43
|
"semaphore-async-await": "^1.5.1"
|
|
44
44
|
},
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import type { RouteLinkProps } from '@furystack/shades'
|
|
2
2
|
import { attachProps } from '@furystack/shades'
|
|
3
3
|
import { createComponent, LocationService, RouteLink, Shade } from '@furystack/shades'
|
|
4
|
-
import { match } from 'path-to-regexp'
|
|
4
|
+
import { match, type TokensToRegexpOptions } from 'path-to-regexp'
|
|
5
5
|
import { ThemeProviderService } from '../services/theme-provider-service.js'
|
|
6
6
|
|
|
7
|
-
export const AppBarLink = Shade<RouteLinkProps>({
|
|
7
|
+
export const AppBarLink = Shade<RouteLinkProps & { routingOptions?: TokensToRegexpOptions }>({
|
|
8
8
|
shadowDomName: 'shade-app-bar-link',
|
|
9
9
|
render: ({ children, props, useObservable, injector, element }) => {
|
|
10
10
|
const getAnchorStyle = (currentUrl: string) => {
|
|
11
|
-
const isActive = !!match(props.href as string)(currentUrl)
|
|
11
|
+
const isActive = !!match(props.href as string, props.routingOptions)(currentUrl)
|
|
12
12
|
const themeProviderService = injector.getInstance(ThemeProviderService)
|
|
13
13
|
const { theme } = themeProviderService
|
|
14
14
|
return {
|