@kubex/zinc 1.0.117 → 1.0.119
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/dist/custom-elements.json +109 -109
- package/dist/vscode.html-custom-data.json +17 -17
- package/dist/web-types.json +31 -31
- package/dist/zn.min.js +72 -72
- package/package.json +1 -1
- package/src/components/chip/chip.scss +1 -0
- package/src/components/page/page.component.ts +3 -6
package/package.json
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import {classMap} from 'lit/directives/class-map.js';
|
|
2
|
-
import {ifDefined} from 'lit/directives/if-defined.js';
|
|
3
2
|
import {type CSSResultGroup, html, type PropertyValues, unsafeCSS} from 'lit';
|
|
4
3
|
import {HasSlotController} from '../../internal/slot';
|
|
5
4
|
import {property, state} from 'lit/decorators.js';
|
|
@@ -22,7 +21,6 @@ interface TabDefinition {
|
|
|
22
21
|
uri: string | null;
|
|
23
22
|
slotName: string | null;
|
|
24
23
|
selected: boolean;
|
|
25
|
-
classes: string | undefined;
|
|
26
24
|
}
|
|
27
25
|
|
|
28
26
|
/**
|
|
@@ -160,7 +158,6 @@ export default class ZnPage extends ZnTabs {
|
|
|
160
158
|
const uri = tab.getAttribute('uri');
|
|
161
159
|
const slotName = uri ? null : `page-tab-${index}`;
|
|
162
160
|
const selected = tab.hasAttribute('selected');
|
|
163
|
-
const classes = tab.getAttribute('class')?.trim() || undefined;
|
|
164
161
|
|
|
165
162
|
tab.id = id;
|
|
166
163
|
|
|
@@ -168,7 +165,7 @@ export default class ZnPage extends ZnTabs {
|
|
|
168
165
|
tab.slot = slotName!;
|
|
169
166
|
}
|
|
170
167
|
|
|
171
|
-
tabs.push({id, caption, priority, sourceIndex: index, uri, slotName, selected
|
|
168
|
+
tabs.push({id, caption, priority, sourceIndex: index, uri, slotName, selected});
|
|
172
169
|
});
|
|
173
170
|
|
|
174
171
|
this.tabDefinitions = tabs.sort((a, b) => this.compareTabs(a, b));
|
|
@@ -411,9 +408,9 @@ export default class ZnPage extends ZnTabs {
|
|
|
411
408
|
${hasNavigation ? html`
|
|
412
409
|
<zn-navbar hide-one @zn-select="${this.handleNavigationSelect}">
|
|
413
410
|
${this.tabDefinitions.map(tab => tab.uri ? html`
|
|
414
|
-
<li tab-uri="${tab.uri}"
|
|
411
|
+
<li tab-uri="${tab.uri}">${tab.caption}</li>
|
|
415
412
|
` : html`
|
|
416
|
-
<li tab="${tab.id}"
|
|
413
|
+
<li tab="${tab.id}">${tab.caption}</li>
|
|
417
414
|
`)}
|
|
418
415
|
<slot name="bottom" slot="bottom"></slot>
|
|
419
416
|
</zn-navbar>
|