@aquera/nile-elements 0.0.5-7 → 0.0.5-8
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/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-checkbox/nile-checkbox.css.js +3 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-checkbox/nile-checkbox.css.js.map +1 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-checkbox/nile-checkbox.d.ts +3 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-checkbox/nile-checkbox.js +18 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-checkbox/nile-checkbox.js.map +1 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-error-message/nile-error-message.css.js +1 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-error-message/nile-error-message.css.js.map +1 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-link/nile-link.css.js +0 -7
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-link/nile-link.css.js.map +1 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-link/nile-link.d.ts +1 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-link/nile-link.js +7 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-link/nile-link.js.map +1 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/index.iife.js +7 -10
- package/dist/nile-checkbox/nile-checkbox.cjs.js +1 -1
- package/dist/nile-checkbox/nile-checkbox.cjs.js.map +1 -1
- package/dist/nile-checkbox/nile-checkbox.css.cjs.js +1 -1
- package/dist/nile-checkbox/nile-checkbox.css.cjs.js.map +1 -1
- package/dist/nile-checkbox/nile-checkbox.css.esm.js +3 -0
- package/dist/nile-checkbox/nile-checkbox.esm.js +3 -3
- package/dist/nile-error-message/nile-error-message.css.cjs.js +1 -1
- package/dist/nile-error-message/nile-error-message.css.cjs.js.map +1 -1
- package/dist/nile-error-message/nile-error-message.css.esm.js +1 -1
- package/dist/nile-link/nile-link.cjs.js +1 -1
- package/dist/nile-link/nile-link.cjs.js.map +1 -1
- package/dist/nile-link/nile-link.css.cjs.js +1 -1
- package/dist/nile-link/nile-link.css.cjs.js.map +1 -1
- package/dist/nile-link/nile-link.css.esm.js +0 -7
- package/dist/nile-link/nile-link.esm.js +3 -2
- package/dist/src/nile-checkbox/nile-checkbox.css.js +3 -0
- package/dist/src/nile-checkbox/nile-checkbox.css.js.map +1 -1
- package/dist/src/nile-checkbox/nile-checkbox.d.ts +3 -0
- package/dist/src/nile-checkbox/nile-checkbox.js +18 -0
- package/dist/src/nile-checkbox/nile-checkbox.js.map +1 -1
- package/dist/src/nile-error-message/nile-error-message.css.js +1 -1
- package/dist/src/nile-error-message/nile-error-message.css.js.map +1 -1
- package/dist/src/nile-link/nile-link.css.js +0 -7
- package/dist/src/nile-link/nile-link.css.js.map +1 -1
- package/dist/src/nile-link/nile-link.d.ts +1 -0
- package/dist/src/nile-link/nile-link.js +7 -0
- package/dist/src/nile-link/nile-link.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/nile-checkbox/nile-checkbox.css.ts +3 -0
- package/src/nile-checkbox/nile-checkbox.ts +19 -0
- package/src/nile-error-message/nile-error-message.css.ts +1 -1
- package/src/nile-link/nile-link.css.ts +0 -7
- package/src/nile-link/nile-link.ts +8 -0
package/package.json
CHANGED
@@ -162,6 +162,25 @@ export class NileCheckbox extends NileElement {
|
|
162
162
|
this.input.blur();
|
163
163
|
}
|
164
164
|
|
165
|
+
connectedCallback() {
|
166
|
+
super.connectedCallback();
|
167
|
+
this.updateHostClass();
|
168
|
+
}
|
169
|
+
|
170
|
+
updated(changedProperties: Map<string | number | symbol, unknown>) {
|
171
|
+
super.updated(changedProperties);
|
172
|
+
if (changedProperties.has('helpText')) {
|
173
|
+
this.updateHostClass();
|
174
|
+
}
|
175
|
+
}
|
176
|
+
|
177
|
+
private updateHostClass() {
|
178
|
+
if (this.helpText) {
|
179
|
+
this.classList.add('full-width');
|
180
|
+
} else {
|
181
|
+
this.classList.remove('full-width');
|
182
|
+
}
|
183
|
+
}
|
165
184
|
|
166
185
|
render() {
|
167
186
|
const hasHelpText = this.helpText ? true : false;
|
@@ -43,12 +43,8 @@ export const styles = css`
|
|
43
43
|
color: rgba(0, 94, 166, 0.5);
|
44
44
|
cursor: not-allowed;
|
45
45
|
opacity: 0.6;
|
46
|
-
pointer-events: none;
|
47
46
|
}
|
48
47
|
|
49
|
-
:host(.link--disabled) {
|
50
|
-
pointer-events: none;
|
51
|
-
}
|
52
48
|
|
53
49
|
.link:not(.link--disabled):not(.link__button):hover {
|
54
50
|
color: #005291;
|
@@ -72,9 +68,6 @@ export const styles = css`
|
|
72
68
|
background: rgba(0, 94, 166, 0.1);
|
73
69
|
}
|
74
70
|
|
75
|
-
:host([disabled]) {
|
76
|
-
pointer-events: none;
|
77
|
-
}
|
78
71
|
`;
|
79
72
|
|
80
73
|
export default [styles];
|
@@ -74,6 +74,13 @@ export class NileLink extends NileElement {
|
|
74
74
|
this.emit('nile-focus');
|
75
75
|
}
|
76
76
|
|
77
|
+
handleClick(e: MouseEvent) {
|
78
|
+
if (this.disabled) {
|
79
|
+
e.stopPropagation();
|
80
|
+
return;
|
81
|
+
}
|
82
|
+
}
|
83
|
+
|
77
84
|
/**
|
78
85
|
* Render method
|
79
86
|
* @slot This is a slot test
|
@@ -96,6 +103,7 @@ export class NileLink extends NileElement {
|
|
96
103
|
tabindex=${this.disabled ? '-1' : '0'}
|
97
104
|
@blur=${this.handleBlur}
|
98
105
|
@focus=${this.handleFocus}
|
106
|
+
@click=${this.handleClick}
|
99
107
|
>
|
100
108
|
<slot name="prefix" part="prefix" class="link__prefix"></slot>
|
101
109
|
<slot part="label" class="link__label"></slot>
|