@ganpatiinfo/gids-web-dom-reference 7.0.0 → 7.1.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/CHANGELOG.md +13 -0
- package/dist/components/GidsBreadcrumbItem/GidsBreadcrumbItem.d.ts +2 -1
- package/dist/components/GidsBreadcrumbItem/GidsBreadcrumbItem.d.ts.map +1 -1
- package/dist/components/GidsBreadcrumbItem/GidsBreadcrumbItem.js +3 -1
- package/dist/components/GidsBreadcrumbItem/GidsBreadcrumbItem.js.map +1 -1
- package/package.json +2 -2
- package/src/components/GidsBreadcrumbItem/GidsBreadcrumbItem.ts +10 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @ganpatiinfo/gids-web-dom-reference
|
|
2
2
|
|
|
3
|
+
## 7.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 6952964: - Updated `GidsBreadcrumbItem` with leading icon type and children type for all web platforms and DOM
|
|
8
|
+
|
|
9
|
+
## 7.0.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies [59ca9c3]
|
|
14
|
+
- @ganpatiinfo/gids-web-theme-interface@4.0.1
|
|
15
|
+
|
|
3
16
|
## 7.0.0
|
|
4
17
|
|
|
5
18
|
### Major Changes
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { type GidsBreadcrumbItemCommonProps } from '@ganpatiinfo/gids-core-shared';
|
|
2
2
|
import { type ClassValue } from '@ganpatiinfo/gids-web-shared';
|
|
3
3
|
import { type DomNodeOrString } from '../../utils/domUtils.js';
|
|
4
|
-
|
|
4
|
+
import { IconName } from '@ganpatiinfo/gids-web-theme-interface';
|
|
5
|
+
export interface GidsBreadcrumbItemDomProps extends GidsBreadcrumbItemCommonProps<DomNodeOrString, IconName, DomNodeOrString> {
|
|
5
6
|
className?: ClassValue;
|
|
6
7
|
href?: DomNodeOrString;
|
|
7
8
|
onClick?: (this: HTMLAnchorElement, event: Event) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GidsBreadcrumbItem.d.ts","sourceRoot":"","sources":["../../../src/components/GidsBreadcrumbItem/GidsBreadcrumbItem.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,6BAA6B,EAAE,MAAM,+BAA+B,CAAC;AACnF,OAAO,EACN,KAAK,UAAU,EAEf,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAEN,KAAK,eAAe,EACpB,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"GidsBreadcrumbItem.d.ts","sourceRoot":"","sources":["../../../src/components/GidsBreadcrumbItem/GidsBreadcrumbItem.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,6BAA6B,EAAE,MAAM,+BAA+B,CAAC;AACnF,OAAO,EACN,KAAK,UAAU,EAEf,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAEN,KAAK,eAAe,EACpB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAAE,QAAQ,EAAE,MAAM,uCAAuC,CAAC;AAIjE,MAAM,WAAW,0BAA2B,SAAQ,6BAA6B,CAChF,eAAe,EACf,QAAQ,EACR,eAAe,CACf;IACA,SAAS,CAAC,EAAE,UAAU,CAAC;IACvB,IAAI,CAAC,EAAE,eAAe,CAAC;IACvB,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,iBAAiB,EAAE,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;CAC1D;AAED,eAAO,MAAM,qBAAqB,GAAI,2IAYnC,0BAA0B,KAAG,aA4D/B,CAAC"}
|
|
@@ -10,7 +10,9 @@ export const GidsBreadcrumbItemDom = ({ children, selected, leadingIcon, href, o
|
|
|
10
10
|
if (href) {
|
|
11
11
|
breadcrumbAnchorItem.setAttribute('href', href);
|
|
12
12
|
}
|
|
13
|
-
if (leadingIcon &&
|
|
13
|
+
if (leadingIcon &&
|
|
14
|
+
leadingIcon.toString() !== '' &&
|
|
15
|
+
leadingIcon.toString() !== '(none)') {
|
|
14
16
|
breadcrumbAnchorItem.appendChild(GidsIconDom({
|
|
15
17
|
name: leadingIcon,
|
|
16
18
|
appearance: 'regular',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GidsBreadcrumbItem.js","sourceRoot":"","sources":["../../../src/components/GidsBreadcrumbItem/GidsBreadcrumbItem.ts"],"names":[],"mappings":"AACA,OAAO,EAEN,0BAA0B,GAC1B,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACN,gBAAgB,GAEhB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAGtD,MAAM,EAAE,+BAA+B,EAAE,GAAG,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"GidsBreadcrumbItem.js","sourceRoot":"","sources":["../../../src/components/GidsBreadcrumbItem/GidsBreadcrumbItem.ts"],"names":[],"mappings":"AACA,OAAO,EAEN,0BAA0B,GAC1B,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACN,gBAAgB,GAEhB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAGtD,MAAM,EAAE,+BAA+B,EAAE,GAAG,0BAA0B,CAAC;AAYvE,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,EACrC,QAAQ,EACR,QAAQ,EACR,WAAW,EACX,IAAI,EACJ,OAAO,EACP,SAAS,EACT,SAAS,EACT,kBAAkB,GAAG,IAAI,EACzB,eAAe,GAAG,WAAW,EAC7B,YAAY,GAAG,CAAC,EAChB,WAAW,GAAG,CAAC,GACa,EAAiB,EAAE;IAC/C,MAAM,cAAc,GAAG,QAAQ,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;IACpD,cAAc,CAAC,SAAS,GAAG,+BAA+B,CACzD,EAAE,QAAQ,EAAE,EACZ,SAAS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,CAAC,CAAC;IACnD,CAAC;IAED,OAAO,cAAc,CAAC;AACvB,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ganpatiinfo/gids-web-dom-reference",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.1.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "DOM for components reference implementations",
|
|
6
6
|
"homepage": "https://ganpatiinfosystem.vercel.app/",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"@ganpatiinfo/gids-web-shared": "7.0.0"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
|
-
"@ganpatiinfo/gids-web-theme-interface": "4.0.
|
|
31
|
+
"@ganpatiinfo/gids-web-theme-interface": "4.0.1",
|
|
32
32
|
"@jest/globals": "^30.2.0",
|
|
33
33
|
"@types/jasmine": "^5.1.15",
|
|
34
34
|
"expect": "^30.2.0"
|
|
@@ -12,12 +12,11 @@ import { IconName } from '@ganpatiinfo/gids-web-theme-interface';
|
|
|
12
12
|
|
|
13
13
|
const { getGidsBreadcrumbItemClassNames } = GidsBreadcrumbItemWebUtils;
|
|
14
14
|
|
|
15
|
-
export interface GidsBreadcrumbItemDomProps
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
> {
|
|
15
|
+
export interface GidsBreadcrumbItemDomProps extends GidsBreadcrumbItemCommonProps<
|
|
16
|
+
DomNodeOrString,
|
|
17
|
+
IconName,
|
|
18
|
+
DomNodeOrString
|
|
19
|
+
> {
|
|
21
20
|
className?: ClassValue;
|
|
22
21
|
href?: DomNodeOrString;
|
|
23
22
|
onClick?: (this: HTMLAnchorElement, event: Event) => void;
|
|
@@ -48,7 +47,11 @@ export const GidsBreadcrumbItemDom = ({
|
|
|
48
47
|
breadcrumbAnchorItem.setAttribute('href', href as string);
|
|
49
48
|
}
|
|
50
49
|
|
|
51
|
-
if (
|
|
50
|
+
if (
|
|
51
|
+
leadingIcon &&
|
|
52
|
+
leadingIcon.toString() !== '' &&
|
|
53
|
+
leadingIcon.toString() !== '(none)'
|
|
54
|
+
) {
|
|
52
55
|
breadcrumbAnchorItem.appendChild(
|
|
53
56
|
GidsIconDom({
|
|
54
57
|
name: leadingIcon as IconName,
|