@universal-material/web 3.0.150 → 3.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/README.md +4 -0
- package/badge/badge.d.ts +12 -0
- package/badge/badge.d.ts.map +1 -0
- package/badge/badge.js +22 -0
- package/badge/badge.js.map +1 -0
- package/badge/badge.styles.d.ts +2 -0
- package/badge/badge.styles.d.ts.map +1 -0
- package/badge/badge.styles.js +35 -0
- package/badge/badge.styles.js.map +1 -0
- package/button/button.d.ts +1 -0
- package/button/button.d.ts.map +1 -1
- package/button/button.js +15 -3
- package/button/button.js.map +1 -1
- package/button/button.styles.d.ts.map +1 -1
- package/button/button.styles.js +2 -0
- package/button/button.styles.js.map +1 -1
- package/css/universal-material.css +1 -1
- package/css/universal-material.min.css +4593 -2
- package/custom-elements.json +2674 -2360
- package/index.d.ts +3 -0
- package/index.d.ts.map +1 -1
- package/index.js +3 -0
- package/index.js.map +1 -1
- package/overflow-menu/overflow-menu-item.d.ts +8 -0
- package/overflow-menu/overflow-menu-item.d.ts.map +1 -0
- package/overflow-menu/overflow-menu-item.js +31 -0
- package/overflow-menu/overflow-menu-item.js.map +1 -0
- package/overflow-menu/overflow-menu.d.ts +12 -0
- package/overflow-menu/overflow-menu.d.ts.map +1 -0
- package/overflow-menu/overflow-menu.js +99 -0
- package/overflow-menu/overflow-menu.js.map +1 -0
- package/overflow-menu/overflow-menu.styles.d.ts +2 -0
- package/overflow-menu/overflow-menu.styles.d.ts.map +1 -0
- package/overflow-menu/overflow-menu.styles.js +25 -0
- package/overflow-menu/overflow-menu.styles.js.map +1 -0
- package/package.json +27 -31
- package/scss/_api.scss +2 -2
- package/scss/_colors.scss +2 -2
- package/scss/_functions.scss +1 -1
- package/scss/_global.scss +2 -2
- package/scss/_layout.scss +3 -3
- package/scss/_mixins.scss +3 -3
- package/scss/_reboot.scss +3 -1
- package/scss/_utilities.scss +4 -4
- package/scss/_variables.scss +33 -32
- package/scss/colors/_text-bg.scss +21 -21
- package/scss/colors/_text.scss +2 -2
- package/scss/mixins/_text-bg.scss +5 -5
- package/scss/universal-material.scss +13 -13
- package/scss/utilities/_text.scss +2 -1
- package/shared/compare-text.d.ts.map +1 -1
- package/shared/events/redispatch-event.d.ts.map +1 -1
- package/shared/extract-template-html.d.ts.map +1 -1
- package/shared/mixin-attribute-properties.d.ts.map +1 -1
- package/shared/normalize-text.d.ts.map +1 -1
- package/shared/selection-control/selection-control-list-item.d.ts.map +1 -1
- package/shared/selection-control/selection-control.d.ts.map +1 -1
- package/shared/selection-control/checkbox-base.d.ts +0 -1
- package/shared/selection-control/checkbox-base.d.ts.map +0 -1
- package/shared/selection-control/checkbox-base.js +0 -7
- package/shared/selection-control/checkbox-base.js.map +0 -1
package/index.d.ts
CHANGED
|
@@ -36,6 +36,7 @@ import './tab-bar/tab.js';
|
|
|
36
36
|
import './typeahead/highlight.js';
|
|
37
37
|
import './typeahead/typeahead.js';
|
|
38
38
|
export * from './app-bar/top-app-bar.js';
|
|
39
|
+
export * from './badge/badge.js';
|
|
39
40
|
export * from './button/button.js';
|
|
40
41
|
export * from './button/button-base.js';
|
|
41
42
|
export * from './button/button-set.js';
|
|
@@ -69,6 +70,8 @@ export * from './navigation/drawer.js';
|
|
|
69
70
|
export * from './navigation/drawer-item.js';
|
|
70
71
|
export * from './navigation/drawer-headline.js';
|
|
71
72
|
export * from './navigation/side-navigation.js';
|
|
73
|
+
export * from './overflow-menu/overflow-menu.js';
|
|
74
|
+
export * from './overflow-menu/overflow-menu-item.js';
|
|
72
75
|
export * from './progress/circular-progress.js';
|
|
73
76
|
export * from './progress/progress-bar.js';
|
|
74
77
|
export * from './ripple/ripple.js';
|
package/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,wCAAwC,CAAC;AAEhD,OAAO,0BAA0B,CAAC;AAClC,OAAO,oBA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8BAA8B,CAAC;AAC7C,cAAc,0BAA0B,CAAC;AACzC,cAAc,kBAAkB,CAAC;AACjC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,iCAAiC,CAAC;AAChD,cAAc,iCAAiC,CAAC;AAChD,cAAc,kCAAkC,CAAC;AACjD,cAAc,uCAAuC,CAAC;AACtD,cAAc,iCAAiC,CAAC;AAChD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC"}
|
package/index.js
CHANGED
|
@@ -36,6 +36,7 @@ import './tab-bar/tab.js';
|
|
|
36
36
|
import './typeahead/highlight.js';
|
|
37
37
|
import './typeahead/typeahead.js';
|
|
38
38
|
export * from './app-bar/top-app-bar.js';
|
|
39
|
+
export * from './badge/badge.js';
|
|
39
40
|
export * from './button/button.js';
|
|
40
41
|
export * from './button/button-base.js';
|
|
41
42
|
export * from './button/button-set.js';
|
|
@@ -69,6 +70,8 @@ export * from './navigation/drawer.js';
|
|
|
69
70
|
export * from './navigation/drawer-item.js';
|
|
70
71
|
export * from './navigation/drawer-headline.js';
|
|
71
72
|
export * from './navigation/side-navigation.js';
|
|
73
|
+
export * from './overflow-menu/overflow-menu.js';
|
|
74
|
+
export * from './overflow-menu/overflow-menu-item.js';
|
|
72
75
|
export * from './progress/circular-progress.js';
|
|
73
76
|
export * from './progress/progress-bar.js';
|
|
74
77
|
export * from './ripple/ripple.js';
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,wCAAwC,CAAC;AAEhD,OAAO,0BAA0B,CAAC;AAClC,OAAO,oBAAoB,CAAC;AAC5B,OAAO,wBAAwB,CAAC;AAChC,OAAO,iBAAiB,CAAC;AACzB,OAAO,yBAAyB,CAAC;AACjC,OAAO,gBAAgB,CAAC;AACxB,OAAO,gBAAgB,CAAC;AACxB,OAAO,oBAAoB,CAAC;AAC5B,OAAO,4BAA4B,CAAC;AACpC,OAAO,oBAAoB,CAAC;AAC5B,OAAO,wBAAwB,CAAC;AAChC,OAAO,kCAAkC,CAAC;AAC1C,OAAO,kBAAkB,CAAC;AAC1B,OAAO,4BAA4B,CAAC;AACpC,OAAO,oBAAoB,CAAC;AAC5B,OAAO,8BAA8B,CAAC;AACtC,OAAO,0BAA0B,CAAC;AAClC,OAAO,kBAAkB,CAAC;AAC1B,OAAO,4BAA4B,CAAC;AACpC,OAAO,0BAA0B,CAAC;AAClC,OAAO,oBAAoB,CAAC;AAC5B,OAAO,gBAAgB,CAAC;AACxB,OAAO,qBAAqB,CAAC;AAC7B,OAAO,gBAAgB,CAAC;AACxB,OAAO,qBAAqB,CAAC;AAC7B,OAAO,wBAAwB,CAAC;AAChC,OAAO,6BAA6B,CAAC;AACrC,OAAO,iCAAiC,CAAC;AACzC,OAAO,iCAAiC,CAAC;AACzC,OAAO,4BAA4B,CAAC;AACpC,OAAO,oBAAoB,CAAC;AAC5B,OAAO,wBAAwB,CAAC;AAChC,OAAO,sBAAsB,CAAC;AAC9B,OAAO,kBAAkB,CAAC;AAC1B,OAAO,0BAA0B,CAAC;AAClC,OAAO,0BAA0B,CAAC;AAElC,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AACvC,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC;AACxC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,wBAAwB,CAAC;AACvC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,4BAA4B,CAAC;AAC3C,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,0BAA0B,CAAC;AACzC,cAAc,kBAAkB,CAAC;AACjC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,iCAAiC,CAAC;AAChD,cAAc,iCAAiC,CAAC;AAChD,cAAc,iCAAiC,CAAC;AAChD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC","sourcesContent":["import '@bart-krakowski/get-week-info-polyfill';\n\nimport './app-bar/top-app-bar.js';\nimport './button/button.js';\nimport './button/button-set.js';\nimport './button/fab.js';\nimport './button/icon-button.js';\nimport './card/card.js';\nimport './chip/chip.js';\nimport './chip/chip-set.js';\nimport './chip-field/chip-field.js';\nimport './dialog/dialog.js';\nimport './checkbox/checkbox.js';\nimport './checkbox/checkbox-list-item.js';\nimport './radio/radio.js';\nimport './radio/radio-list-item.js';\nimport './switch/switch.js';\nimport './switch/switch-list-item.js';\nimport './elevation/elevation.js';\nimport './field/field.js';\nimport './text-field/text-field.js';\nimport './text-area/text-area.js';\nimport './select/select.js';\nimport './list/list.js';\nimport './list/list-item.js';\nimport './menu/menu.js';\nimport './menu/menu-item.js';\nimport './navigation/drawer.js';\nimport './navigation/drawer-item.js';\nimport './navigation/side-navigation.js';\nimport './progress/circular-progress.js';\nimport './progress/progress-bar.js';\nimport './ripple/ripple.js';\nimport './snackbar/snackbar.js';\nimport './tab-bar/tab-bar.js';\nimport './tab-bar/tab.js';\nimport './typeahead/highlight.js';\nimport './typeahead/typeahead.js';\n\nexport * from './app-bar/top-app-bar.js';\nexport * from './button/button.js';\nexport * from './button/button-base.js';\nexport * from './button/button-set.js';\nexport * from './button/fab.js';\nexport * from './button/icon-button.js';\nexport * from './button-field/button-field.js';\nexport * from './calendar/calendar.js';\nexport * from './calendar/range-calendar.js';\nexport * from './card/card.js';\nexport * from './card/card-content.js';\nexport * from './card/card-media.js';\nexport * from './chip/chip.js';\nexport * from './chip-field/chip-field.js';\nexport * from './chip/chip-set.js';\nexport * from './dialog/dialog.js';\nexport * from './checkbox/checkbox.js';\nexport * from './radio/radio.js';\nexport * from './switch/switch.js';\nexport * from './switch/switch-list-item.js';\nexport * from './elevation/elevation.js';\nexport * from './field/field.js';\nexport * from './text-field/text-field.js';\nexport * from './text-area/text-area.js';\nexport * from './select/select.js';\nexport * from './select/option.js';\nexport * from './list/list.js';\nexport * from './list/list-item.js';\nexport * from './menu/menu.js';\nexport * from './menu/menu-item.js';\nexport * from './navigation/drawer.js';\nexport * from './navigation/drawer-item.js';\nexport * from './navigation/drawer-headline.js';\nexport * from './navigation/side-navigation.js';\nexport * from './progress/circular-progress.js';\nexport * from './progress/progress-bar.js';\nexport * from './ripple/ripple.js';\nexport * from './snackbar/snackbar.js';\nexport * from './tab-bar/tab-bar.js';\nexport * from './tab-bar/tab.js';\nexport * from './theme/theme-builder.js';\nexport * from './typeahead/highlight.js';\nexport * from './typeahead/typeahead.js';\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,wCAAwC,CAAC;AAEhD,OAAO,0BAA0B,CAAC;AAClC,OAAO,oBAAoB,CAAC;AAC5B,OAAO,wBAAwB,CAAC;AAChC,OAAO,iBAAiB,CAAC;AACzB,OAAO,yBAAyB,CAAC;AACjC,OAAO,gBAAgB,CAAC;AACxB,OAAO,gBAAgB,CAAC;AACxB,OAAO,oBAAoB,CAAC;AAC5B,OAAO,4BAA4B,CAAC;AACpC,OAAO,oBAAoB,CAAC;AAC5B,OAAO,wBAAwB,CAAC;AAChC,OAAO,kCAAkC,CAAC;AAC1C,OAAO,kBAAkB,CAAC;AAC1B,OAAO,4BAA4B,CAAC;AACpC,OAAO,oBAAoB,CAAC;AAC5B,OAAO,8BAA8B,CAAC;AACtC,OAAO,0BAA0B,CAAC;AAClC,OAAO,kBAAkB,CAAC;AAC1B,OAAO,4BAA4B,CAAC;AACpC,OAAO,0BAA0B,CAAC;AAClC,OAAO,oBAAoB,CAAC;AAC5B,OAAO,gBAAgB,CAAC;AACxB,OAAO,qBAAqB,CAAC;AAC7B,OAAO,gBAAgB,CAAC;AACxB,OAAO,qBAAqB,CAAC;AAC7B,OAAO,wBAAwB,CAAC;AAChC,OAAO,6BAA6B,CAAC;AACrC,OAAO,iCAAiC,CAAC;AACzC,OAAO,iCAAiC,CAAC;AACzC,OAAO,4BAA4B,CAAC;AACpC,OAAO,oBAAoB,CAAC;AAC5B,OAAO,wBAAwB,CAAC;AAChC,OAAO,sBAAsB,CAAC;AAC9B,OAAO,kBAAkB,CAAC;AAC1B,OAAO,0BAA0B,CAAC;AAClC,OAAO,0BAA0B,CAAC;AAElC,cAAc,0BAA0B,CAA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week-info-polyfill';\n\nimport './app-bar/top-app-bar.js';\nimport './button/button.js';\nimport './button/button-set.js';\nimport './button/fab.js';\nimport './button/icon-button.js';\nimport './card/card.js';\nimport './chip/chip.js';\nimport './chip/chip-set.js';\nimport './chip-field/chip-field.js';\nimport './dialog/dialog.js';\nimport './checkbox/checkbox.js';\nimport './checkbox/checkbox-list-item.js';\nimport './radio/radio.js';\nimport './radio/radio-list-item.js';\nimport './switch/switch.js';\nimport './switch/switch-list-item.js';\nimport './elevation/elevation.js';\nimport './field/field.js';\nimport './text-field/text-field.js';\nimport './text-area/text-area.js';\nimport './select/select.js';\nimport './list/list.js';\nimport './list/list-item.js';\nimport './menu/menu.js';\nimport './menu/menu-item.js';\nimport './navigation/drawer.js';\nimport './navigation/drawer-item.js';\nimport './navigation/side-navigation.js';\nimport './progress/circular-progress.js';\nimport './progress/progress-bar.js';\nimport './ripple/ripple.js';\nimport './snackbar/snackbar.js';\nimport './tab-bar/tab-bar.js';\nimport './tab-bar/tab.js';\nimport './typeahead/highlight.js';\nimport './typeahead/typeahead.js';\n\nexport * from './app-bar/top-app-bar.js';\nexport * from './badge/badge.js';\nexport * from './button/button.js';\nexport * from './button/button-base.js';\nexport * from './button/button-set.js';\nexport * from './button/fab.js';\nexport * from './button/icon-button.js';\nexport * from './button-field/button-field.js';\nexport * from './calendar/calendar.js';\nexport * from './calendar/range-calendar.js';\nexport * from './card/card.js';\nexport * from './card/card-content.js';\nexport * from './card/card-media.js';\nexport * from './chip/chip.js';\nexport * from './chip-field/chip-field.js';\nexport * from './chip/chip-set.js';\nexport * from './dialog/dialog.js';\nexport * from './checkbox/checkbox.js';\nexport * from './radio/radio.js';\nexport * from './switch/switch.js';\nexport * from './switch/switch-list-item.js';\nexport * from './elevation/elevation.js';\nexport * from './field/field.js';\nexport * from './text-field/text-field.js';\nexport * from './text-area/text-area.js';\nexport * from './select/select.js';\nexport * from './select/option.js';\nexport * from './list/list.js';\nexport * from './list/list-item.js';\nexport * from './menu/menu.js';\nexport * from './menu/menu-item.js';\nexport * from './navigation/drawer.js';\nexport * from './navigation/drawer-item.js';\nexport * from './navigation/drawer-headline.js';\nexport * from './navigation/side-navigation.js';\nexport * from './overflow-menu/overflow-menu.js';\nexport * from './overflow-menu/overflow-menu-item.js';\nexport * from './progress/circular-progress.js';\nexport * from './progress/progress-bar.js';\nexport * from './ripple/ripple.js';\nexport * from './snackbar/snackbar.js';\nexport * from './tab-bar/tab-bar.js';\nexport * from './tab-bar/tab.js';\nexport * from './theme/theme-builder.js';\nexport * from './typeahead/highlight.js';\nexport * from './typeahead/typeahead.js';\n"]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { HTMLTemplateResult, LitElement } from 'lit';
|
|
2
|
+
export declare class OverflowMenuItem extends LitElement {
|
|
3
|
+
label: string;
|
|
4
|
+
priority: boolean;
|
|
5
|
+
icons: HTMLElement[];
|
|
6
|
+
protected render(): HTMLTemplateResult;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=overflow-menu-item.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"overflow-menu-item.d.ts","sourceRoot":"","sources":["../../src/overflow-menu/overflow-menu-item.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,kBAAkB,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAG3D,qBACa,gBAAiB,SAAQ,UAAU;IAClC,KAAK,SAAM;IACM,QAAQ,UAAS;IAErB,KAAK,EAAG,WAAW,EAAE,CAAC;cAE5B,MAAM,IAAI,kBAAkB;CAOhD"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { html, LitElement } from 'lit';
|
|
3
|
+
import { customElement, property, queryAssignedElements } from 'lit/decorators.js';
|
|
4
|
+
let OverflowMenuItem = class OverflowMenuItem extends LitElement {
|
|
5
|
+
constructor() {
|
|
6
|
+
super(...arguments);
|
|
7
|
+
this.label = '';
|
|
8
|
+
this.priority = false;
|
|
9
|
+
}
|
|
10
|
+
render() {
|
|
11
|
+
return html `
|
|
12
|
+
<u-icon-button .title="${this.label}">
|
|
13
|
+
<slot></slot>
|
|
14
|
+
</u-icon-button>
|
|
15
|
+
`;
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
__decorate([
|
|
19
|
+
property()
|
|
20
|
+
], OverflowMenuItem.prototype, "label", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
property({ type: Boolean })
|
|
23
|
+
], OverflowMenuItem.prototype, "priority", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
queryAssignedElements()
|
|
26
|
+
], OverflowMenuItem.prototype, "icons", void 0);
|
|
27
|
+
OverflowMenuItem = __decorate([
|
|
28
|
+
customElement('u-overflow-menu-item')
|
|
29
|
+
], OverflowMenuItem);
|
|
30
|
+
export { OverflowMenuItem };
|
|
31
|
+
//# sourceMappingURL=overflow-menu-item.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"overflow-menu-item.js","sourceRoot":"","sources":["../../src/overflow-menu/overflow-menu-item.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAsB,UAAU,EAAE,MAAM,KAAK,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAG5E,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,UAAU;IAAzC;;QACO,UAAK,GAAG,EAAE,CAAC;QACM,aAAQ,GAAG,KAAK,CAAC;IAWhD,CAAC;IAPoB,MAAM;QACvB,OAAO,IAAI,CAAA;+BACgB,IAAI,CAAC,KAAK;;;KAGpC,CAAC;IACJ,CAAC;CACF,CAAA;AAZa;IAAX,QAAQ,EAAE;+CAAY;AACM;IAA5B,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;kDAAkB;AAErB;IAAxB,qBAAqB,EAAE;+CAAuB;AAJpC,gBAAgB;IAD5B,aAAa,CAAC,sBAAsB,CAAC;GACzB,gBAAgB,CAa5B","sourcesContent":["import { html, HTMLTemplateResult, LitElement } from 'lit';\nimport { customElement, property, queryAssignedElements } from 'lit/decorators.js';\n\n@customElement('u-overflow-menu-item')\nexport class OverflowMenuItem extends LitElement {\n @property() label = '';\n @property({ type: Boolean }) priority = false;\n\n @queryAssignedElements() icons!: HTMLElement[];\n\n protected override render(): HTMLTemplateResult {\n return html`\n <u-icon-button .title=\"${this.label}\">\n <slot></slot>\n </u-icon-button>\n `;\n }\n}\n"]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { HTMLTemplateResult, LitElement } from 'lit';
|
|
2
|
+
import { UmMenu } from '../menu/menu.js';
|
|
3
|
+
export declare class OverflowMenu extends LitElement {
|
|
4
|
+
#private;
|
|
5
|
+
static styles: import("lit").CSSResult;
|
|
6
|
+
_showMenu: boolean;
|
|
7
|
+
menu?: UmMenu;
|
|
8
|
+
connectedCallback(): void;
|
|
9
|
+
disconnectedCallback(): void;
|
|
10
|
+
protected render(): HTMLTemplateResult;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=overflow-menu.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"overflow-menu.d.ts","sourceRoot":"","sources":["../../src/overflow-menu/overflow-menu.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,kBAAkB,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAK3D,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAIzC,qBACa,YAAa,SAAQ,UAAU;;IAC1C,OAAgB,MAAM,0BAAU;IAMvB,SAAS,UAAS;IAEV,IAAI,CAAC,EAAE,MAAM,CAAC;IAItB,iBAAiB;IAQjB,oBAAoB;cA6CV,MAAM,IAAI,kBAAkB;CA6BhD"}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { html, LitElement } from 'lit';
|
|
3
|
+
import { customElement, query, state } from 'lit/decorators.js';
|
|
4
|
+
import { map } from 'lit/directives/map.js';
|
|
5
|
+
import { when } from 'lit/directives/when.js';
|
|
6
|
+
import { styles } from './overflow-menu.styles.js';
|
|
7
|
+
let OverflowMenu = class OverflowMenu extends LitElement {
|
|
8
|
+
constructor() {
|
|
9
|
+
super(...arguments);
|
|
10
|
+
this.#resizeObserver = null;
|
|
11
|
+
this.#items = [];
|
|
12
|
+
this.#collapsedItems = [];
|
|
13
|
+
this._showMenu = false;
|
|
14
|
+
this.#updateMenusTimeout = 0;
|
|
15
|
+
}
|
|
16
|
+
static { this.styles = styles; }
|
|
17
|
+
#resizeObserver;
|
|
18
|
+
#items;
|
|
19
|
+
#collapsedItems;
|
|
20
|
+
#updateMenusTimeout;
|
|
21
|
+
connectedCallback() {
|
|
22
|
+
super.connectedCallback();
|
|
23
|
+
this.#resizeObserver = new ResizeObserver(() => this.#updateMenus());
|
|
24
|
+
this.#resizeObserver.observe(this);
|
|
25
|
+
this.#updateMenus();
|
|
26
|
+
}
|
|
27
|
+
disconnectedCallback() {
|
|
28
|
+
super.disconnectedCallback();
|
|
29
|
+
this.#resizeObserver.disconnect();
|
|
30
|
+
this.#resizeObserver = null;
|
|
31
|
+
}
|
|
32
|
+
#updateMenus() {
|
|
33
|
+
clearTimeout(this.#updateMenusTimeout);
|
|
34
|
+
this.#updateMenusTimeout = setTimeout(() => {
|
|
35
|
+
let firstWrapperMenu = true;
|
|
36
|
+
const previousCollapsedLength = this.#collapsedItems.length;
|
|
37
|
+
this.#collapsedItems.length = 0;
|
|
38
|
+
for (const item of this.#items) {
|
|
39
|
+
if (item.offsetTop === this.offsetTop) {
|
|
40
|
+
continue;
|
|
41
|
+
}
|
|
42
|
+
if (firstWrapperMenu && !this._showMenu) {
|
|
43
|
+
this.#collapsedItems.push(item.previousSibling);
|
|
44
|
+
}
|
|
45
|
+
this.#collapsedItems.push(item);
|
|
46
|
+
firstWrapperMenu = false;
|
|
47
|
+
}
|
|
48
|
+
this._showMenu = this.#collapsedItems.length > 1;
|
|
49
|
+
if (previousCollapsedLength !== this.#collapsedItems.length) {
|
|
50
|
+
this.requestUpdate();
|
|
51
|
+
}
|
|
52
|
+
}, 100);
|
|
53
|
+
}
|
|
54
|
+
#handleSlotChange(e) {
|
|
55
|
+
const slot = e.target;
|
|
56
|
+
this.#items = slot.assignedElements();
|
|
57
|
+
this.#updateMenus();
|
|
58
|
+
}
|
|
59
|
+
render() {
|
|
60
|
+
return html `
|
|
61
|
+
|
|
62
|
+
<u-button-set>
|
|
63
|
+
<u-button-set class="items-set">
|
|
64
|
+
<slot @slotchange="${this.#handleSlotChange}"></slot>
|
|
65
|
+
</u-button-set>
|
|
66
|
+
${when(this._showMenu, () => html `
|
|
67
|
+
<div class="inner-menu">
|
|
68
|
+
<u-icon-button @click=${{ handleEvent: () => this.menu?.toggle() }}>
|
|
69
|
+
<slot name="icon">
|
|
70
|
+
<svg xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 -960 960 960" width="1em" fill="currentColor">
|
|
71
|
+
<path
|
|
72
|
+
d="M480-160q-33 0-56.5-23.5T400-240q0-33 23.5-56.5T480-320q33 0 56.5 23.5T560-240q0
|
|
73
|
+
33-23.5 56.5T480-160Zm0-240q-33 0-56.5-23.5T400-480q0-33 23.5-56.5T480-560q33 0 56.5 23.5T560-480q0
|
|
74
|
+
33-23.5 56.5T480-400Zm0-240q-33 0-56.5-23.5T400-720q0-33 23.5-56.5T480-800q33 0 56.5 23.5T560-720q0 33-23.5 56.5T480-640Z"/>
|
|
75
|
+
</svg>
|
|
76
|
+
</slot>
|
|
77
|
+
</u-icon-button>
|
|
78
|
+
<u-menu anchor-corner="end-end">
|
|
79
|
+
${map(this.#collapsedItems, item => html `
|
|
80
|
+
<u-menu-item @click=${{ handleEvent: () => item.click() }}>${item.label}</u-menu-item>
|
|
81
|
+
`)}
|
|
82
|
+
</u-menu>
|
|
83
|
+
</div>
|
|
84
|
+
`)}
|
|
85
|
+
</u-button-set>
|
|
86
|
+
`;
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
__decorate([
|
|
90
|
+
state()
|
|
91
|
+
], OverflowMenu.prototype, "_showMenu", void 0);
|
|
92
|
+
__decorate([
|
|
93
|
+
query('u-menu')
|
|
94
|
+
], OverflowMenu.prototype, "menu", void 0);
|
|
95
|
+
OverflowMenu = __decorate([
|
|
96
|
+
customElement('u-overflow-menu')
|
|
97
|
+
], OverflowMenu);
|
|
98
|
+
export { OverflowMenu };
|
|
99
|
+
//# sourceMappingURL=overflow-menu.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"overflow-menu.js","sourceRoot":"","sources":["../../src/overflow-menu/overflow-menu.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAsB,UAAU,EAAE,MAAM,KAAK,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAChE,OAAO,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAI9C,OAAO,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAC;AAG5C,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,UAAU;IAArC;;QAEL,oBAAe,GAA0B,IAAI,CAAC;QAC9C,WAAM,GAAuB,EAAE,CAAC;QAEvB,oBAAe,GAAuB,EAAE,CAAC;QAEzC,cAAS,GAAG,KAAK,CAAC;QAI3B,wBAAmB,GAAG,CAAC,CAAC;IAoF1B,CAAC;aA9FiB,WAAM,GAAG,MAAM,AAAT,CAAU;IAChC,eAAe,CAA+B;IAC9C,MAAM,CAA0B;IAEvB,eAAe,CAA0B;IAMlD,mBAAmB,CAAK;IAEf,iBAAiB;QACxB,KAAK,CAAC,iBAAiB,EAAE,CAAC;QAE1B,IAAI,CAAC,eAAe,GAAG,IAAI,cAAc,CAAC,GAAG,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,CAAC;IACV,CAAC;IAED,iBAAiB,CAAC,CAAQ;QACxB,MAAM,IAAI,GAAG,CAAC,CAAC,MAAyB,CAAC;QACzC,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,gBAAgB,EAAwB,CAAC;QAC5D,IAAI,CAAC,YAAY,EAAE,CAAC;IACtB,CAAC;IAEkB,MAAM;QACvB,OAAO,IAAI,CAAA;;;;+BAIgB,IAAI,CAAC,iBAAiB;;YAEzC,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,GAAG,EAAE,CAAC,IAAI,CAAA;;sCAEL,EAAE,WAAW,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE;;;;;;;;;;;kBAW9D,GAAG,CAAC,IAAI,CAAC,eAAe,EAAE,IAAI,CAAC,EAAE,CAAC,IAAI,CAAA;wCAChB,EAAE,WAAW,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,KAAK,EAAE,EAAE,IAAI,IAAI,CAAC,KAAK;iBACxE,CAAC;;;WAGP,CAAC;;KAEP,CAAC;IACJ,CAAC;;AAvFQ;IAAR,KAAK,EAAE;+CAAmB;AAEV;IAAhB,KAAK,CAAC,QAAQ,CAAC;0CAAe;AATpB,YAAY;IADxB,aAAa,CAAC,iBAAiB,CAAC;GACpB,YAAY,CA+FxB","sourcesContent":["import { html, HTMLTemplateResult, LitElement } from 'lit';\nimport { customElement, query, state } from 'lit/decorators.js';\nimport { map } from 'lit/directives/map.js';\nimport { when } from 'lit/directives/when.js';\n\nimport { UmMenu } from '../menu/menu.js';\nimport { OverflowMenuItem } from './overflow-menu-item.js';\nimport { styles } from './overflow-menu.styles.js';\n\n@customElement('u-overflow-menu')\nexport class OverflowMenu extends LitElement {\n static override styles = styles;\n #resizeObserver: ResizeObserver | null = null;\n #items: OverflowMenuItem[] = [];\n\n readonly #collapsedItems: OverflowMenuItem[] = [];\n\n @state() _showMenu = false;\n\n @query('u-menu') menu?: UmMenu;\n\n #updateMenusTimeout = 0;\n\n override connectedCallback() {\n super.connectedCallback();\n\n this.#resizeObserver = new ResizeObserver(() => this.#updateMenus());\n this.#resizeObserver.observe(this);\n this.#updateMenus();\n }\n\n override disconnectedCallback() {\n super.disconnectedCallback();\n\n this.#resizeObserver!.disconnect();\n this.#resizeObserver = null;\n }\n\n #updateMenus(): void {\n\n clearTimeout(this.#updateMenusTimeout);\n\n this.#updateMenusTimeout = setTimeout(() => {\n let firstWrapperMenu = true;\n\n const previousCollapsedLength = this.#collapsedItems.length;\n this.#collapsedItems.length = 0;\n\n for (const item of this.#items) {\n\n if (item.offsetTop === this.offsetTop) {\n continue;\n }\n\n if (firstWrapperMenu && !this._showMenu) {\n this.#collapsedItems.push(item.previousSibling as OverflowMenuItem);\n }\n\n this.#collapsedItems.push(item);\n firstWrapperMenu = false;\n }\n\n this._showMenu = this.#collapsedItems.length > 1;\n\n if (previousCollapsedLength !== this.#collapsedItems.length) {\n this.requestUpdate();\n }\n }, 100);\n }\n\n #handleSlotChange(e: Event) {\n const slot = e.target as HTMLSlotElement;\n this.#items = slot.assignedElements() as OverflowMenuItem[];\n this.#updateMenus();\n }\n\n protected override render(): HTMLTemplateResult {\n return html`\n \n <u-button-set>\n <u-button-set class=\"items-set\">\n <slot @slotchange=\"${this.#handleSlotChange}\"></slot>\n </u-button-set>\n ${when(this._showMenu, () => html`\n <div class=\"inner-menu\">\n <u-icon-button @click=${{ handleEvent: () => this.menu?.toggle() }}>\n <slot name=\"icon\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" height=\"1em\" viewBox=\"0 -960 960 960\" width=\"1em\" fill=\"currentColor\">\n <path\n d=\"M480-160q-33 0-56.5-23.5T400-240q0-33 23.5-56.5T480-320q33 0 56.5 23.5T560-240q0 \n 33-23.5 56.5T480-160Zm0-240q-33 0-56.5-23.5T400-480q0-33 23.5-56.5T480-560q33 0 56.5 23.5T560-480q0 \n 33-23.5 56.5T480-400Zm0-240q-33 0-56.5-23.5T400-720q0-33 23.5-56.5T480-800q33 0 56.5 23.5T560-720q0 33-23.5 56.5T480-640Z\"/>\n </svg>\n </slot>\n </u-icon-button>\n <u-menu anchor-corner=\"end-end\">\n ${map(this.#collapsedItems, item => html`\n <u-menu-item @click=${{ handleEvent: () => item.click() }}>${item.label}</u-menu-item>\n `)}\n </u-menu>\n </div>\n `)}\n </u-button-set>\n `;\n }\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"overflow-menu.styles.d.ts","sourceRoot":"","sources":["../../src/overflow-menu/overflow-menu.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,MAAM,yBAsBlB,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { css } from 'lit';
|
|
2
|
+
export const styles = css `
|
|
3
|
+
.grid {
|
|
4
|
+
--_cell-size: var(--u-icon-button-small-height, 40px);
|
|
5
|
+
display: grid;
|
|
6
|
+
column-gap: 8px;
|
|
7
|
+
grid-template-columns: repeat(auto-fit, var(--_cell-size));
|
|
8
|
+
justify-content: end;
|
|
9
|
+
height: var(--_cell-size);
|
|
10
|
+
overflow: hidden;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.items-set {
|
|
14
|
+
flex-wrap: wrap;
|
|
15
|
+
max-height: var(--u-icon-button-small-height, 40px);
|
|
16
|
+
overflow: hidden;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.inner-menu {
|
|
20
|
+
position: relative;
|
|
21
|
+
grid-row: 1;
|
|
22
|
+
grid-column: -2;
|
|
23
|
+
}
|
|
24
|
+
`;
|
|
25
|
+
//# sourceMappingURL=overflow-menu.styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"overflow-menu.styles.js","sourceRoot":"","sources":["../../src/overflow-menu/overflow-menu.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAC;;;;;;;;;;;;;;;;;;;;;;CAsBzB,CAAC","sourcesContent":["import { css } from 'lit';\n\nexport const styles = css `\n .grid {\n --_cell-size: var(--u-icon-button-small-height, 40px);\n display: grid;\n column-gap: 8px;\n grid-template-columns: repeat(auto-fit, var(--_cell-size));\n justify-content: end;\n height: var(--_cell-size);\n overflow: hidden;\n }\n\n .items-set {\n flex-wrap: wrap;\n max-height: var(--u-icon-button-small-height, 40px);\n overflow: hidden;\n }\n\n .inner-menu {\n position: relative;\n grid-row: 1;\n grid-column: -2;\n }\n`;\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@universal-material/web",
|
|
3
|
-
"version": "3.0
|
|
3
|
+
"version": "3.1.0",
|
|
4
4
|
"description": "Material web components",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
@@ -25,20 +25,22 @@
|
|
|
25
25
|
"sass:watch": "gulp -f gulpfile.js sass:watch",
|
|
26
26
|
"clean": "rimraf ./dist/ rimraf ./src/**/*.d.ts rimraf ./src/**/*.styles.ts",
|
|
27
27
|
"copy": "copyfiles package.json README.md custom-elements.json dist/ && copyfiles -u 1 src/scss/**/*.scss dist/",
|
|
28
|
-
"lint": "npm run lint:lit-analyzer && npm run lint:eslint",
|
|
28
|
+
"lint": "npm run lint:lit-analyzer && npm run lint:eslint && npm run lint:prettier",
|
|
29
29
|
"lint:eslint": "eslint src/**/*.ts",
|
|
30
30
|
"lint:eslint:fix": "eslint src/**/*.ts --fix",
|
|
31
31
|
"lint:lit-analyzer": "lit-analyzer",
|
|
32
|
+
"lint:prettier": "prettier . --check",
|
|
32
33
|
"predocs": "run-p analyze docs:apis script:sass-to-ts",
|
|
33
34
|
"docs": "run-p build:watch docs:serve",
|
|
34
35
|
"docs:apis": "gulp -f gulpfile.js docs:apis",
|
|
35
36
|
"docs:apis:watch": "gulp -f gulpfile.js docs:apis:watch",
|
|
36
|
-
"docs:serve": "cd docs && ng serve
|
|
37
|
+
"docs:serve": "cd docs && ng serve",
|
|
37
38
|
"docs:build": "npm run predocs && cd docs && ng build",
|
|
38
39
|
"docs:watch": "npm run predocs && cd docs && ng build --watch --configuration development",
|
|
39
40
|
"analyze": "cem analyze --litelement --globs \"src/**/*.ts\"",
|
|
40
41
|
"analyze:watch": "cem analyze --litelement --globs \"src/**/*.ts\" --watch",
|
|
41
|
-
"checksize": "rollup -c ; cat my-element.bundled.js | gzip -9 | wc -c ; rm my-element.bundled.js"
|
|
42
|
+
"checksize": "rollup -c ; cat my-element.bundled.js | gzip -9 | wc -c ; rm my-element.bundled.js",
|
|
43
|
+
"prettier": "prettier . --write"
|
|
42
44
|
},
|
|
43
45
|
"author": "https://github.com/universal-material/universal-material/graphs/contributors",
|
|
44
46
|
"repository": {
|
|
@@ -49,38 +51,34 @@
|
|
|
49
51
|
"homepage": "https://universal-material.github.io",
|
|
50
52
|
"dependencies": {
|
|
51
53
|
"@bart-krakowski/get-week-info-polyfill": "^1.0.8",
|
|
52
|
-
"@lit/context": "^1.1.
|
|
54
|
+
"@lit/context": "^1.1.5",
|
|
53
55
|
"@material/material-color-utilities": "^0.3.0",
|
|
54
56
|
"lit": "^3.2.1",
|
|
55
57
|
"swiper": "^11.2.4"
|
|
56
58
|
},
|
|
57
59
|
"devDependencies": {
|
|
58
|
-
"@
|
|
59
|
-
"@
|
|
60
|
-
"@angular
|
|
61
|
-
"@angular/
|
|
62
|
-
"@angular/
|
|
63
|
-
"@angular/
|
|
64
|
-
"@angular/
|
|
65
|
-
"@angular/
|
|
66
|
-
"@angular/
|
|
67
|
-
"@angular/platform-browser": "^19.2.0",
|
|
68
|
-
"@angular/platform-browser-dynamic": "^19.2.0",
|
|
69
|
-
"@angular/router": "^19.2.0",
|
|
60
|
+
"@angular/build": "^20.0.4",
|
|
61
|
+
"@angular/cli": "^20.0.4",
|
|
62
|
+
"@angular/compiler-cli": "^20.0.0",
|
|
63
|
+
"@angular/common": "^20.0.0",
|
|
64
|
+
"@angular/compiler": "^20.0.0",
|
|
65
|
+
"@angular/core": "^20.0.0",
|
|
66
|
+
"@angular/forms": "^20.0.0",
|
|
67
|
+
"@angular/platform-browser": "^20.0.0",
|
|
68
|
+
"@angular/router": "^20.0.0",
|
|
70
69
|
"@custom-elements-manifest/analyzer": "^0.6.3",
|
|
71
70
|
"@eslint/compat": "^1.2.7",
|
|
72
71
|
"@eslint/eslintrc": "^3.3.0",
|
|
73
72
|
"@eslint/js": "^9.21.0",
|
|
74
|
-
"@ianvs/prettier-plugin-sort-imports": "^4.2.1",
|
|
75
73
|
"@open-wc/testing": "^3.1.5",
|
|
76
74
|
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
77
75
|
"@rollup/plugin-replace": "^5.0.5",
|
|
78
76
|
"@stylistic/eslint-plugin": "^3.1.0",
|
|
79
77
|
"@types/mocha": "^10.0.6",
|
|
80
|
-
"@typescript-eslint/eslint-plugin": "8.
|
|
81
|
-
"@typescript-eslint/parser": "8.
|
|
78
|
+
"@typescript-eslint/eslint-plugin": "8.35.0",
|
|
79
|
+
"@typescript-eslint/parser": "8.35.0",
|
|
82
80
|
"@webcomponents/webcomponentsjs": "^2.8.0",
|
|
83
|
-
"angular-eslint": "^
|
|
81
|
+
"angular-eslint": "^20.0.0",
|
|
84
82
|
"copyfiles": "^2.4.1",
|
|
85
83
|
"eslint": "^9.21.0",
|
|
86
84
|
"eslint-plugin-import": "^2.31.0",
|
|
@@ -92,20 +90,18 @@
|
|
|
92
90
|
"gulp-changed": "^5.0.2",
|
|
93
91
|
"gulp-newer": "^1.4.0",
|
|
94
92
|
"gulp-notify": "^4.0.0",
|
|
95
|
-
"gulp-
|
|
96
|
-
"gulp-
|
|
97
|
-
"gulp-sass": "^5.1.0",
|
|
93
|
+
"gulp-rename": "^2.1.0",
|
|
94
|
+
"gulp-sass": "^6.0.1",
|
|
98
95
|
"gulp-sourcemaps": "^3.0.0",
|
|
99
96
|
"gulp-typescript": "^5.0.1",
|
|
100
97
|
"highlight.js": "^11.11.1",
|
|
101
98
|
"html-entities": "^2.5.2",
|
|
102
99
|
"lit-analyzer": "^1.2.1",
|
|
103
100
|
"ngx-highlightjs": "^14.0.0",
|
|
104
|
-
"ngx-markdown": "^
|
|
105
|
-
"ngx-pug-builders": "file:vendor/ngx-pug-builders-19.0.0.tgz",
|
|
101
|
+
"ngx-markdown": "^20.0.0",
|
|
106
102
|
"npm-run-all": "^4.1.5",
|
|
107
|
-
"prettier": "
|
|
108
|
-
"
|
|
103
|
+
"prettier": "^3.6.2",
|
|
104
|
+
"prettier-plugin-organize-attributes": "^1.0.0",
|
|
109
105
|
"raw-loader": "^4.0.2",
|
|
110
106
|
"rimraf": "^3.0.2",
|
|
111
107
|
"rollup": "^2.73.0",
|
|
@@ -113,12 +109,12 @@
|
|
|
113
109
|
"rollup-plugin-terser": "^7.0.2",
|
|
114
110
|
"rollup-plugin-typescript2": "^0.36.0",
|
|
115
111
|
"rxjs": "~7.8.0",
|
|
116
|
-
"sass": "^1.
|
|
112
|
+
"sass": "^1.89.2",
|
|
117
113
|
"through2": "^4.0.2",
|
|
118
114
|
"ts-morph": "^22.0.0",
|
|
119
115
|
"tslib": "^2.6.2",
|
|
120
|
-
"typescript": "~5.
|
|
121
|
-
"typescript-eslint": "8.
|
|
116
|
+
"typescript": "~5.8.2",
|
|
117
|
+
"typescript-eslint": "8.35.0",
|
|
122
118
|
"zone.js": "~0.15.0"
|
|
123
119
|
},
|
|
124
120
|
"customElements": "custom-elements.json"
|
package/scss/_api.scss
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
@
|
|
2
|
-
@
|
|
1
|
+
@forward "mixins";
|
|
2
|
+
@forward "functions";
|
package/scss/_colors.scss
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
@
|
|
2
|
-
@
|
|
1
|
+
@use "colors/text-bg";
|
|
2
|
+
@use "colors/text";
|
package/scss/_functions.scss
CHANGED
package/scss/_global.scss
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
@use "functions";
|
|
2
|
-
@
|
|
2
|
+
@use "mixins/text-bg";
|
|
3
3
|
|
|
4
4
|
@mixin global-styles() {
|
|
5
5
|
:root {
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
body {
|
|
10
|
-
@include
|
|
10
|
+
@include text-bg.current-color-vars(--u-color-on-body);
|
|
11
11
|
|
|
12
12
|
background-color: var(--u-color-body);
|
|
13
13
|
color: var(--u-color-high-emphasis);
|
package/scss/_layout.scss
CHANGED
package/scss/_mixins.scss
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
@
|
|
2
|
-
@
|
|
3
|
-
@
|
|
1
|
+
@forward "mixins/breakpoints";
|
|
2
|
+
@forward "mixins/colors";
|
|
3
|
+
@forward "mixins/typo";
|
package/scss/_reboot.scss
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use "variables";
|
|
2
|
+
|
|
1
3
|
@use "functions";
|
|
2
4
|
@use "mixins";
|
|
3
5
|
|
|
@@ -30,7 +32,7 @@
|
|
|
30
32
|
// null by default, thus nothing is generated.
|
|
31
33
|
|
|
32
34
|
:root {
|
|
33
|
-
@if
|
|
35
|
+
@if variables.$enable-smooth-scroll {
|
|
34
36
|
@media (prefers-reduced-motion: no-preference) {
|
|
35
37
|
scroll-behavior: smooth;
|
|
36
38
|
}
|
package/scss/_utilities.scss
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@
|
|
2
|
-
@
|
|
3
|
-
@
|
|
4
|
-
@
|
|
1
|
+
@use "utilities/divider";
|
|
2
|
+
@use "utilities/scheme";
|
|
3
|
+
@use "utilities/spacing";
|
|
4
|
+
@use "utilities/text";
|
package/scss/_variables.scss
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@use "sass:string";
|
|
1
2
|
@use "sass:map";
|
|
2
3
|
|
|
3
4
|
$awesome-cubic-bezier: cubic-bezier(.19, 1, .22, 1) !default;
|
|
@@ -54,43 +55,43 @@ $color-roles: (
|
|
|
54
55
|
);
|
|
55
56
|
|
|
56
57
|
$rgb-colors: (
|
|
57
|
-
primary: unquote("103, 80, 164"),
|
|
58
|
-
on-primary: unquote("255, 255, 255"),
|
|
59
|
-
primary-container: unquote("234, 221, 255"),
|
|
60
|
-
on-primary-container: unquote("33, 0, 93"),
|
|
61
|
-
secondary: unquote("98, 91, 113"),
|
|
62
|
-
secondary-container: unquote("232, 222, 248"),
|
|
63
|
-
on-secondary-container: unquote("29, 25, 43"),
|
|
64
|
-
on-secondary: unquote("255, 255, 255"),
|
|
65
|
-
tertiary: unquote("125, 82, 96"),
|
|
66
|
-
on-tertiary: unquote("255, 255, 255"),
|
|
67
|
-
tertiary-container: unquote("255, 216, 228"),
|
|
68
|
-
on-tertiary-container: unquote("49, 17, 29"),
|
|
69
|
-
error: unquote("179, 38, 30"),
|
|
70
|
-
on-error: unquote("255, 255, 255"),
|
|
71
|
-
error-container: unquote("249, 222, 220"),
|
|
72
|
-
on-error-container: unquote("65, 14, 11"),
|
|
73
|
-
surface: unquote("254, 247, 255"),
|
|
74
|
-
on-surface: unquote("29, 27, 32"),
|
|
75
|
-
surface-variant: unquote("231, 224, 236"),
|
|
76
|
-
on-surface-variant: unquote("73, 69, 79"),
|
|
77
|
-
surface-container-highest: unquote("230, 224, 233"),
|
|
78
|
-
surface-container-high: unquote("236, 230, 240"),
|
|
79
|
-
surface-container: unquote("243, 237, 247"),
|
|
80
|
-
surface-container-low: unquote("247, 242, 250"),
|
|
81
|
-
surface-container-lowest: unquote("255, 255, 255"),
|
|
82
|
-
inverse-surface: unquote("50, 47, 53"),
|
|
83
|
-
on-inverse-surface: unquote("245, 239, 247"),
|
|
84
|
-
outline: unquote("121, 116, 126"),
|
|
85
|
-
outline-variant: unquote("202, 196, 208"),
|
|
86
|
-
scrim: unquote("0, 0, 0"),
|
|
87
|
-
shadow: unquote("0, 0, 0")
|
|
58
|
+
primary: string.unquote("103, 80, 164"),
|
|
59
|
+
on-primary: string.unquote("255, 255, 255"),
|
|
60
|
+
primary-container: string.unquote("234, 221, 255"),
|
|
61
|
+
on-primary-container: string.unquote("33, 0, 93"),
|
|
62
|
+
secondary: string.unquote("98, 91, 113"),
|
|
63
|
+
secondary-container: string.unquote("232, 222, 248"),
|
|
64
|
+
on-secondary-container: string.unquote("29, 25, 43"),
|
|
65
|
+
on-secondary: string.unquote("255, 255, 255"),
|
|
66
|
+
tertiary: string.unquote("125, 82, 96"),
|
|
67
|
+
on-tertiary: string.unquote("255, 255, 255"),
|
|
68
|
+
tertiary-container: string.unquote("255, 216, 228"),
|
|
69
|
+
on-tertiary-container: string.unquote("49, 17, 29"),
|
|
70
|
+
error: string.unquote("179, 38, 30"),
|
|
71
|
+
on-error: string.unquote("255, 255, 255"),
|
|
72
|
+
error-container: string.unquote("249, 222, 220"),
|
|
73
|
+
on-error-container: string.unquote("65, 14, 11"),
|
|
74
|
+
surface: string.unquote("254, 247, 255"),
|
|
75
|
+
on-surface: string.unquote("29, 27, 32"),
|
|
76
|
+
surface-variant: string.unquote("231, 224, 236"),
|
|
77
|
+
on-surface-variant: string.unquote("73, 69, 79"),
|
|
78
|
+
surface-container-highest: string.unquote("230, 224, 233"),
|
|
79
|
+
surface-container-high: string.unquote("236, 230, 240"),
|
|
80
|
+
surface-container: string.unquote("243, 237, 247"),
|
|
81
|
+
surface-container-low: string.unquote("247, 242, 250"),
|
|
82
|
+
surface-container-lowest: string.unquote("255, 255, 255"),
|
|
83
|
+
inverse-surface: string.unquote("50, 47, 53"),
|
|
84
|
+
on-inverse-surface: string.unquote("245, 239, 247"),
|
|
85
|
+
outline: string.unquote("121, 116, 126"),
|
|
86
|
+
outline-variant: string.unquote("202, 196, 208"),
|
|
87
|
+
scrim: string.unquote("0, 0, 0"),
|
|
88
|
+
shadow: string.unquote("0, 0, 0")
|
|
88
89
|
);
|
|
89
90
|
|
|
90
91
|
$colors: ();
|
|
91
92
|
|
|
92
93
|
@each $name, $value in $rgb-colors {
|
|
93
|
-
$colors: map.set($colors, $name, unquote("rgb(#{$value})"));
|
|
94
|
+
$colors: map.set($colors, $name, string.unquote("rgb(#{$value})"));
|
|
94
95
|
}
|
|
95
96
|
|
|
96
97
|
$fixed-colors: (
|