minerva-design 1.11.0 → 1.12.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 +21 -0
- package/README.md +1 -1
- package/custom-elements.json +438 -7
- package/dist/angular/fesm2022/minerva-angular.mjs +1124 -64
- package/dist/angular/fesm2022/minerva-angular.mjs.map +1 -1
- package/dist/angular/types/minerva-angular.d.ts +255 -26
- package/dist/core/calendar-date.d.cts +6 -0
- package/dist/core/calendar-date.d.ts +6 -0
- package/dist/core/contracts.cjs +1 -1
- package/dist/core/contracts.cjs.map +1 -1
- package/dist/core/contracts.js +1 -1
- package/dist/core/contracts.js.map +1 -1
- package/dist/core/index.cjs +6 -6
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.js +788 -570
- package/dist/core/index.js.map +1 -1
- package/dist/core/styling-hooks/components/progress.d.cts +6 -3
- package/dist/core/styling-hooks/components/progress.d.ts +6 -3
- package/dist/core/styling-hooks/components/week-strip.d.cts +35 -0
- package/dist/core/styling-hooks/components/week-strip.d.ts +35 -0
- package/dist/core/styling-hooks/manifest.d.cts +40 -3
- package/dist/core/styling-hooks/manifest.d.ts +40 -3
- package/dist/core/styling-hooks.cjs +1 -1
- package/dist/core/styling-hooks.cjs.map +1 -1
- package/dist/core/styling-hooks.js +35 -2
- package/dist/core/styling-hooks.js.map +1 -1
- package/dist/core/theme/index.d.cts +1 -0
- package/dist/core/theme/index.d.ts +1 -0
- package/dist/core/theme/palette-accents.d.cts +8 -0
- package/dist/core/theme/palette-accents.d.ts +8 -0
- package/dist/core/tokens/brand.d.cts +86 -0
- package/dist/core/tokens/brand.d.ts +86 -0
- package/dist/core/tokens/index.d.cts +1 -0
- package/dist/core/tokens/index.d.ts +1 -0
- package/dist/core/tokens/resolve.d.cts +9 -1
- package/dist/core/tokens/resolve.d.ts +9 -1
- package/dist/dom/core-web.cjs +1 -1
- package/dist/dom/core-web.js +2 -2
- package/dist/dom/index.cjs +1 -1
- package/dist/dom/index.cjs.map +1 -1
- package/dist/dom/index.d.cts +1 -0
- package/dist/dom/index.d.ts +1 -0
- package/dist/dom/index.js +273 -264
- package/dist/dom/index.js.map +1 -1
- package/dist/dom/theme/primary-color.d.cts +29 -0
- package/dist/dom/theme/primary-color.d.ts +29 -0
- package/dist/icons/core.cjs +1 -1
- package/dist/icons/core.d.cts +1 -1
- package/dist/icons/core.d.ts +1 -1
- package/dist/icons/core.js +32 -32
- package/dist/icons/engine/icons/actions.cjs +1 -1
- package/dist/icons/engine/icons/actions.cjs.map +1 -1
- package/dist/icons/engine/icons/actions.d.cts +4 -0
- package/dist/icons/engine/icons/actions.d.ts +4 -0
- package/dist/icons/engine/icons/actions.js +84 -58
- package/dist/icons/engine/icons/actions.js.map +1 -1
- package/dist/icons/engine/icons/arrows.cjs +1 -1
- package/dist/icons/engine/icons/arrows.cjs.map +1 -1
- package/dist/icons/engine/icons/arrows.d.cts +2 -0
- package/dist/icons/engine/icons/arrows.d.ts +2 -0
- package/dist/icons/engine/icons/arrows.js +39 -24
- package/dist/icons/engine/icons/arrows.js.map +1 -1
- package/dist/icons/engine/icons/education.cjs +1 -1
- package/dist/icons/engine/icons/education.cjs.map +1 -1
- package/dist/icons/engine/icons/education.d.cts +2 -0
- package/dist/icons/engine/icons/education.d.ts +2 -0
- package/dist/icons/engine/icons/education.js +61 -42
- package/dist/icons/engine/icons/education.js.map +1 -1
- package/dist/icons/engine/icons/files.cjs +1 -1
- package/dist/icons/engine/icons/files.cjs.map +1 -1
- package/dist/icons/engine/icons/files.d.cts +8 -0
- package/dist/icons/engine/icons/files.d.ts +8 -0
- package/dist/icons/engine/icons/files.js +88 -26
- package/dist/icons/engine/icons/files.js.map +1 -1
- package/dist/icons/engine/icons/index.cjs +1 -1
- package/dist/icons/engine/icons/index.js +24 -24
- package/dist/icons/engine/icons/interface.cjs +1 -1
- package/dist/icons/engine/icons/interface.cjs.map +1 -1
- package/dist/icons/engine/icons/interface.d.cts +12 -0
- package/dist/icons/engine/icons/interface.d.ts +12 -0
- package/dist/icons/engine/icons/interface.js +168 -60
- package/dist/icons/engine/icons/interface.js.map +1 -1
- package/dist/icons/engine/icons/text.cjs +1 -1
- package/dist/icons/engine/icons/text.cjs.map +1 -1
- package/dist/icons/engine/icons/text.d.cts +2 -0
- package/dist/icons/engine/icons/text.d.ts +2 -0
- package/dist/icons/engine/icons/text.js +38 -10
- package/dist/icons/engine/icons/text.js.map +1 -1
- package/dist/icons/engine/icons/tools.cjs +1 -1
- package/dist/icons/engine/icons/tools.cjs.map +1 -1
- package/dist/icons/engine/icons/tools.d.cts +2 -0
- package/dist/icons/engine/icons/tools.d.ts +2 -0
- package/dist/icons/engine/icons/tools.js +25 -1
- package/dist/icons/engine/icons/tools.js.map +1 -1
- package/dist/icons/engine/svg.cjs +1 -1
- package/dist/icons/engine/svg.cjs.map +1 -1
- package/dist/icons/engine/svg.d.cts +10 -0
- package/dist/icons/engine/svg.d.ts +10 -0
- package/dist/icons/engine/svg.js +22 -1
- package/dist/icons/engine/svg.js.map +1 -1
- package/dist/icons/index.cjs +1 -1
- package/dist/icons/index.js +36 -36
- package/dist/icons/react/icons.cjs +1 -1
- package/dist/icons/react/icons.cjs.map +1 -1
- package/dist/icons/react/icons.d.cts +64 -0
- package/dist/icons/react/icons.d.ts +64 -0
- package/dist/icons/react/icons.js +25 -25
- package/dist/icons/react/icons.js.map +1 -1
- package/dist/native/_virtual/_rolldown/runtime.cjs +1 -0
- package/dist/native/components/WeekStrip/WeekStrip.cjs +2 -0
- package/dist/native/components/WeekStrip/WeekStrip.cjs.map +1 -0
- package/dist/native/components/WeekStrip/WeekStrip.d.cts +75 -0
- package/dist/native/components/WeekStrip/WeekStrip.d.ts +75 -0
- package/dist/native/components/WeekStrip/WeekStrip.js +205 -0
- package/dist/native/components/WeekStrip/WeekStrip.js.map +1 -0
- package/dist/native/components/WeekStrip/index.cjs +1 -0
- package/dist/native/components/WeekStrip/index.d.cts +1 -0
- package/dist/native/components/WeekStrip/index.d.ts +1 -0
- package/dist/native/components/WeekStrip/index.js +2 -0
- package/dist/native/icon/DynamicIcon.cjs +2 -0
- package/dist/native/icon/DynamicIcon.cjs.map +1 -0
- package/dist/native/icon/DynamicIcon.d.cts +7 -0
- package/dist/native/icon/DynamicIcon.d.ts +7 -0
- package/dist/native/icon/DynamicIcon.js +15 -0
- package/dist/native/icon/DynamicIcon.js.map +1 -0
- package/dist/native/icon/Icon.cjs +2 -0
- package/dist/native/icon/Icon.cjs.map +1 -0
- package/dist/native/icon/Icon.d.cts +7 -0
- package/dist/native/icon/Icon.d.ts +7 -0
- package/dist/native/icon/Icon.js +40 -0
- package/dist/native/icon/Icon.js.map +1 -0
- package/dist/native/icon/createIcon.cjs +2 -0
- package/dist/native/icon/createIcon.cjs.map +1 -0
- package/dist/native/icon/createIcon.d.cts +10 -0
- package/dist/native/icon/createIcon.d.ts +10 -0
- package/dist/native/icon/createIcon.js +17 -0
- package/dist/native/icon/createIcon.js.map +1 -0
- package/dist/native/icon/icons.cjs +2 -0
- package/dist/native/icon/icons.cjs.map +1 -0
- package/dist/native/icon/icons.d.cts +2060 -0
- package/dist/native/icon/icons.d.ts +2060 -0
- package/dist/native/icon/icons.js +8 -0
- package/dist/native/icon/icons.js.map +1 -0
- package/dist/native/icon/types.d.cts +23 -0
- package/dist/native/icon/types.d.ts +23 -0
- package/dist/native/icons.cjs +1 -0
- package/dist/native/icons.d.cts +6 -0
- package/dist/native/icons.d.ts +6 -0
- package/dist/native/icons.js +6 -0
- package/dist/native/index.cjs +1 -1
- package/dist/native/index.d.cts +1 -0
- package/dist/native/index.d.ts +1 -0
- package/dist/native/index.js +61 -59
- package/dist/native/source/components/WeekStrip/WeekStrip.tsx +404 -0
- package/dist/native/source/components/WeekStrip/index.ts +6 -0
- package/dist/native/source/icon/DynamicIcon.tsx +13 -0
- package/dist/native/source/icon/Icon.tsx +75 -0
- package/dist/native/source/icon/createIcon.tsx +18 -0
- package/dist/native/source/icon/icons.ts +694 -0
- package/dist/native/source/icon/types.ts +40 -0
- package/dist/native/source/icons.ts +12 -0
- package/dist/native/source/index.ts +1 -0
- package/dist/native/source/manifest.ts +1 -0
- package/dist/native/source/theme/MinervaProvider.tsx +40 -3
- package/dist/native/source/theme/types.ts +13 -0
- package/dist/native/theme/MinervaProvider.cjs +1 -1
- package/dist/native/theme/MinervaProvider.cjs.map +1 -1
- package/dist/native/theme/MinervaProvider.d.cts +4 -1
- package/dist/native/theme/MinervaProvider.d.ts +4 -1
- package/dist/native/theme/MinervaProvider.js +117 -100
- package/dist/native/theme/MinervaProvider.js.map +1 -1
- package/dist/native/theme/types.d.cts +13 -1
- package/dist/native/theme/types.d.ts +13 -1
- package/dist/react/components/ProgressIndicator/ProgressIndicator.cjs +1 -1
- package/dist/react/components/ProgressIndicator/ProgressIndicator.cjs.map +1 -1
- package/dist/react/components/ProgressIndicator/ProgressIndicator.d.cts +1 -1
- package/dist/react/components/ProgressIndicator/ProgressIndicator.d.ts +1 -1
- package/dist/react/components/ProgressIndicator/ProgressIndicator.js +69 -32
- package/dist/react/components/ProgressIndicator/ProgressIndicator.js.map +1 -1
- package/dist/react/components/ProgressIndicator/index.d.cts +2 -2
- package/dist/react/components/ProgressIndicator/index.d.ts +2 -2
- package/dist/react/components/ProgressIndicator/progressIndicator.module.scss.cjs +1 -1
- package/dist/react/components/ProgressIndicator/progressIndicator.module.scss.cjs.map +1 -1
- package/dist/react/components/ProgressIndicator/progressIndicator.module.scss.js +29 -20
- package/dist/react/components/ProgressIndicator/progressIndicator.module.scss.js.map +1 -1
- package/dist/react/components/ProgressIndicator/types.d.cts +33 -5
- package/dist/react/components/ProgressIndicator/types.d.ts +33 -5
- package/dist/react/components/WeekStrip/WeekStrip.cjs +2 -0
- package/dist/react/components/WeekStrip/WeekStrip.cjs.map +1 -0
- package/dist/react/components/WeekStrip/WeekStrip.d.cts +14 -0
- package/dist/react/components/WeekStrip/WeekStrip.d.ts +14 -0
- package/dist/react/components/WeekStrip/WeekStrip.js +225 -0
- package/dist/react/components/WeekStrip/WeekStrip.js.map +1 -0
- package/dist/react/components/WeekStrip/index.cjs +1 -0
- package/dist/react/components/WeekStrip/index.d.cts +5 -0
- package/dist/react/components/WeekStrip/index.d.ts +5 -0
- package/dist/react/components/WeekStrip/index.js +3 -0
- package/dist/react/components/WeekStrip/types.d.cts +98 -0
- package/dist/react/components/WeekStrip/types.d.ts +98 -0
- package/dist/react/components/WeekStrip/weekStrip.module.scss.cjs +2 -0
- package/dist/react/components/WeekStrip/weekStrip.module.scss.cjs.map +1 -0
- package/dist/react/components/WeekStrip/weekStrip.module.scss.js +21 -0
- package/dist/react/components/WeekStrip/weekStrip.module.scss.js.map +1 -0
- package/dist/react/components/index.cjs +1 -1
- package/dist/react/components/index.d.cts +1 -0
- package/dist/react/components/index.d.ts +1 -0
- package/dist/react/components/index.js +4 -2
- package/dist/react/contexts/ConfigProvider.cjs +1 -1
- package/dist/react/contexts/ConfigProvider.cjs.map +1 -1
- package/dist/react/contexts/ConfigProvider.d.cts +4 -0
- package/dist/react/contexts/ConfigProvider.d.ts +4 -0
- package/dist/react/contexts/ConfigProvider.js +168 -142
- package/dist/react/contexts/ConfigProvider.js.map +1 -1
- package/dist/react/contexts/ThemeProvider.cjs +1 -1
- package/dist/react/contexts/ThemeProvider.cjs.map +1 -1
- package/dist/react/contexts/ThemeProvider.d.cts +1 -1
- package/dist/react/contexts/ThemeProvider.d.ts +1 -1
- package/dist/react/contexts/ThemeProvider.js +10 -9
- package/dist/react/contexts/ThemeProvider.js.map +1 -1
- package/dist/react/contexts/index.d.cts +1 -1
- package/dist/react/contexts/index.d.ts +1 -1
- package/dist/react/contexts/types.d.cts +29 -2
- package/dist/react/contexts/types.d.ts +29 -2
- package/dist/react/index.cjs +1 -1
- package/dist/react/index.js +8 -7
- package/dist/react/style.css +2 -1
- package/dist/react/styles/app-shell.css +1 -1
- package/dist/react/styles/auto-complete.css +1 -1
- package/dist/react/styles/code-block.css +1 -1
- package/dist/react/styles/date-picker.css +1 -1
- package/dist/react/styles/icon-button.css +1 -1
- package/dist/react/styles/json-field.css +1 -1
- package/dist/react/styles/key-value-editor.css +1 -1
- package/dist/react/styles/loading-state.css +1 -1
- package/dist/react/styles/monaco-code-editor.css +1 -1
- package/dist/react/styles/page-tabs.css +1 -1
- package/dist/react/styles/progress-indicator.css +1 -1
- package/dist/react/styles/tag-input.css +1 -1
- package/dist/react/styles/time-picker.css +1 -1
- package/dist/react/styles/toast.css +1 -1
- package/dist/react/styles/upload.css +1 -1
- package/dist/react/styles/virtual-list.css +1 -1
- package/dist/react/styles/week-strip.css +3 -0
- package/dist/taro/{components-LmhBVvPj.js → components-DoBebZ28.js} +454 -434
- package/dist/taro/data.d.ts +39 -0
- package/dist/taro/display.d.ts +22 -1
- package/dist/taro/icon/DynamicIcon.d.ts +7 -0
- package/dist/taro/icon/Icon.d.ts +9 -0
- package/dist/taro/icon/createIcon.d.ts +10 -0
- package/dist/taro/icon/icons.d.ts +2060 -0
- package/dist/taro/icon/types.d.ts +25 -0
- package/dist/taro/icons.d.ts +6 -0
- package/dist/taro/icons.js +63 -0
- package/dist/taro/index.js +1954 -1816
- package/dist/taro/monaco.js +1 -1
- package/dist/taro/style.css +136 -0
- package/dist/taro/theme.d.ts +27 -3
- package/dist/uni/ConfigProvider.vue +72 -21
- package/dist/uni/ConfigProvider.vue.d.ts +9 -2
- package/dist/uni/ThemeProvider.vue +10 -1
- package/dist/uni/ThemeProvider.vue.d.ts +4 -1
- package/dist/uni/WeekStrip.vue +245 -0
- package/dist/uni/WeekStrip.vue.d.ts +37 -0
- package/dist/uni/index.d.ts +1 -0
- package/dist/uni/index.js +1 -0
- package/dist/uni/manifest.d.ts +7 -0
- package/dist/uni/manifest.js +13 -0
- package/dist/uni/style.css +110 -0
- package/dist/vue/components/ProgressIndicator/ProgressIndicator.vue.d.ts +10 -1
- package/dist/vue/components/ProgressIndicator/ProgressIndicator.vue.js.map +1 -1
- package/dist/vue/components/ProgressIndicator/ProgressIndicator.vue_vue_type_script_setup_true_lang.js +91 -44
- package/dist/vue/components/ProgressIndicator/ProgressIndicator.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/vue/components/ProgressIndicator/index.d.ts +1 -1
- package/dist/vue/components/ProgressIndicator/types.d.ts +32 -4
- package/dist/vue/components/WeekStrip/WeekStrip.vue.d.ts +31 -0
- package/dist/vue/components/WeekStrip/WeekStrip.vue.js +7 -0
- package/dist/vue/components/WeekStrip/WeekStrip.vue.js.map +1 -0
- package/dist/vue/components/WeekStrip/WeekStrip.vue_vue_type_script_setup_true_lang.js +250 -0
- package/dist/vue/components/WeekStrip/WeekStrip.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/vue/components/WeekStrip/index.d.ts +3 -0
- package/dist/vue/components/WeekStrip/index.js +2 -0
- package/dist/vue/components/WeekStrip/types.d.ts +88 -0
- package/dist/vue/config/ConfigProvider.vue.d.ts +11 -1
- package/dist/vue/config/ConfigProvider.vue.js.map +1 -1
- package/dist/vue/config/ConfigProvider.vue_vue_type_script_setup_true_lang.js +117 -91
- package/dist/vue/config/ConfigProvider.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/vue/config/ThemeProvider.vue.d.ts +7 -1
- package/dist/vue/config/ThemeProvider.vue.js.map +1 -1
- package/dist/vue/config/ThemeProvider.vue_vue_type_script_setup_true_lang.js +3 -0
- package/dist/vue/config/ThemeProvider.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/vue/config/context.d.ts +8 -1
- package/dist/vue/config/context.js +13 -7
- package/dist/vue/config/context.js.map +1 -1
- package/dist/vue/global.d.ts +1 -0
- package/dist/vue/groups/navigation.d.ts +1 -0
- package/dist/vue/groups/navigation.js +33 -30
- package/dist/vue/groups/navigation.js.map +1 -1
- package/dist/vue/icon/icons.d.ts +16 -0
- package/dist/vue/icon/icons.js +2 -2
- package/dist/vue/icon/icons.js.map +1 -1
- package/dist/vue/icon/index.js +2 -2
- package/dist/vue/icons.js +2 -2
- package/dist/vue/icons.js.map +1 -1
- package/dist/vue/index.js +99 -98
- package/dist/weapp/controls.js +660 -199
- package/dist/weapp/controls.wxss +110 -0
- package/dist/weapp/types.d.ts +10 -0
- package/dist/weapp/week-strip/index.js +1 -0
- package/dist/weapp/week-strip/index.json +1 -0
- package/dist/weapp/week-strip/index.wxml +1 -0
- package/dist/weapp/week-strip/index.wxss +1 -0
- package/dist/web-components/cdn/minerva.js +456 -361
- package/dist/web-components/cdn/minerva.js.map +1 -1
- package/dist/web-components/components/config/config.d.ts +12 -1
- package/dist/web-components/components/config/config.js +35 -27
- package/dist/web-components/components/config/config.js.map +1 -1
- package/dist/web-components/components/progress/progress.d.ts +28 -9
- package/dist/web-components/components/progress/progress.js +60 -19
- package/dist/web-components/components/progress/progress.js.map +1 -1
- package/dist/web-components/components/week-strip/week-strip.d.ts +92 -0
- package/dist/web-components/components/week-strip/week-strip.js +249 -0
- package/dist/web-components/components/week-strip/week-strip.js.map +1 -0
- package/dist/web-components/elements/week-strip.d.ts +1 -0
- package/dist/web-components/elements/week-strip.js +8 -0
- package/dist/web-components/elements/week-strip.js.map +1 -0
- package/dist/web-components/html-custom-data.json +95 -1
- package/dist/web-components/index.d.ts +1 -0
- package/dist/web-components/index.js +3 -1
- package/dist/web-components/styles/ProgressIndicator/progressIndicator.css.js +1 -1
- package/dist/web-components/styles/ProgressIndicator/progressIndicator.css.js.map +1 -1
- package/dist/web-components/styles/WeekStrip/weekStrip.css.js +6 -0
- package/dist/web-components/styles/WeekStrip/weekStrip.css.js.map +1 -0
- package/dist/web-components/types/react.d.ts +11 -2
- package/dist/web-components/types/solid.d.ts +10 -4
- package/dist/web-components/types/svelte.d.ts +10 -4
- package/dist/web-components/types/vue.d.ts +9 -2
- package/package.json +31 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# minerva-design
|
|
2
2
|
|
|
3
|
+
## 1.12.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 7884716: Taro: `Page` re-applies the theme of the closest `ConfigProvider` / `ThemeProvider` (mode, palette and design classes, `primaryColor` and custom theme variables). In mini-programs every page renders under its own root, outside the provider's element, so pages used to get only the default light tokens: the brand color, dark mode and palettes now reach page content. Outside the default light theme, `Page` also paints the page background and text color. React Native icons accept any `ColorValue` for `color` (e.g. the color a navigation `tabBarIcon` receives).
|
|
8
|
+
|
|
9
|
+
## 1.12.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- eec52cc: Icons: 16 new icons, 515 in all: `calendar-check`, `calendar-plus`, `calendar-days`, `bookmark-plus`, `book-plus`, `book-a`, `clipboard-check`, `check-check`, `history`, `bell-ring`, `party-popper`, `notebook-pen`, `list-todo`, `folder-kanban`, `file-json` and `palette`. They are available on every icon entry (React, Vue, Angular, Web Components, React Native, Taro) and in `toSvg`.
|
|
14
|
+
- eec52cc: React Native and Taro icons: the new entries `minerva-design/native/icons` and `minerva-design/taro/icons` export `Icon`, `DynamicIcon`, `createIcon` and one component per icon (`SearchIcon`…), colored by the theme text color by default. React Native draws with `react-native-svg` (an optional peer dependency, only needed by this entry; `minerva-design/native` does not import it); on the web (react-native-web, Expo web) the icons get ARIA attributes instead of the React Native accessibility props. Taro renders an `Image` with an SVG data URI and works in mini-programs and H5. The icon core adds `toSvgBase64DataUri`.
|
|
15
|
+
- eec52cc: Brand color: the theme providers get a `primaryColor` option (React `ConfigProvider` / `ThemeProvider`, Vue, Angular, React Native `MinervaProvider`, Taro, uni-app, WeChat, and `<minerva-config primary-color>`). Give one CSS color, whose dark-mode value is derived for contrast on dark surfaces (`#4f46e5` → `#7b85f2`), or a `{ light, dark }` pair. Every token derived from the primary color (hover, active, subtle, border, text, focus ring, selection) follows it; it wins over the palette's primary, nested providers can set their own and `null` restores the theme's. The core adds `resolvePrimaryColor`, `derivePrimaryDark`, `primaryColorTokens` and `paletteAccents`.
|
|
16
|
+
- eec52cc: ProgressIndicator: a determinate mode. `value` (with `max`, default 100) fills the bar or ring to that amount instead of spinning, `showValue` prints the percentage and `format` customizes it. `color` adds `success`, `warning`, `danger` and `info`. Available in React, Vue, Angular, Web Components (`<minerva-progress value max show-value>`) and Taro; the uni-app and WeChat components already had a value mode. A label next to a bar now stays on one line when there is room (the track takes the remaining width) and wraps between words.
|
|
17
|
+
- eec52cc: New `WeekStrip` component: a one-week row of days to pick a date, with previous / next week buttons, today highlighted and per-day markers (a dot, or a count). Props: `value` / `onChange`, `week` / `onWeekChange`, `firstDayOfWeek` (Monday by default), `today`, `markers`, `showNavigation` and `size`. On every renderer: React, React Native, Taro, Vue, Angular (`MnWeekStrip`), Web Components (`<minerva-week-strip>`), uni-app and WeChat. The core adds `weekStart()`.
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- eec52cc: Angular: `mn-progress` / `mn-progress-indicator` now draws its indicator. The spinner, circle, wave, bar and dotted-bar variants rendered an empty element before, so `mn-loading-state` had no spinner either. Bars get the 200px default width of the other renderers.
|
|
22
|
+
- eec52cc: Docs: a Changelog page lists every release and the upcoming one, the home page shows the current version, and there are new pages and demos for WeekStrip, the determinate ProgressIndicator and the brand color. The Icon page gets a React Native tab with a live demo and API tables for `minerva-design/native/icons`, and the arrow of the home page's "Get started" button is white again.
|
|
23
|
+
|
|
3
24
|
## 1.11.0
|
|
4
25
|
|
|
5
26
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -300,7 +300,7 @@ helpers are published as `minerva-design/styling-hooks`.
|
|
|
300
300
|
| `minerva-design/monaco` | `MonacoCodeEditor` (optional peers `@monaco-editor/react` and `monaco-editor`) |
|
|
301
301
|
| `minerva-design/charts` | GPU charts (WebGPU → WebGL2 → WebGL → Canvas2D): 2D, statistics, hierarchies and flows, relationship graphs (networks, DAGs, trees, chords), trading with 21 indicators, order books and 3D (`"use client"`) |
|
|
302
302
|
| `minerva-design/charts/core` | The framework-free chart engines: `createChart`, `createShapeChart`, `createTradingChart`, `createDepthChart` / `createOrderBook` / `createOrderBookHeatmap` / `createTimeAndSales`, `createChart3D`, `createGraphChart`, plus `setDefaultChartRenderer` and `formatCompact` (server-safe import, no dependencies) |
|
|
303
|
-
| `minerva-design/icons` |
|
|
303
|
+
| `minerva-design/icons` | 515 original icons (some with colors): one component per icon (`SearchIcon`…), `Icon` (inline SVG, or a canvas with `renderer`), `IconCanvas` (thousands of icons in a few GPU draws), `createIcon`, `DynamicIcon` (`"use client"`) |
|
|
304
304
|
| `minerva-design/icons/core` | The framework-free icon set: icon data (`searchIcon`…), `toSvg`, `drawIcon`, `createIconCanvas`, `defineIcon`, `setDefaultIconRenderer` (server-safe import, no dependencies) |
|
|
305
305
|
| `minerva-design/vue/icons` | The icons for Vue 3: `Icon`, `IconCanvas`, `DynamicIcon`, `createIcon`, one component per icon and the opt-in `MinervaVueIcons` plugin (typings: `minerva-design/vue/icons-global`); Angular has `MnIcon`, `MnIconCanvas` and `MnDynamicIcon` in `minerva-design/angular` |
|
|
306
306
|
| `minerva-design/web-components/icon` | Optional: `<minerva-icon>` and `<minerva-icon-canvas>` (they load the icon set); not in the all-in-one / CDN |
|
package/custom-elements.json
CHANGED
|
@@ -14587,6 +14587,15 @@
|
|
|
14587
14587
|
"attribute": "font-scale",
|
|
14588
14588
|
"reflects": true
|
|
14589
14589
|
},
|
|
14590
|
+
{
|
|
14591
|
+
"kind": "field",
|
|
14592
|
+
"name": "primaryColor",
|
|
14593
|
+
"type": {
|
|
14594
|
+
"text": "PrimaryColor | undefined"
|
|
14595
|
+
},
|
|
14596
|
+
"description": "Brand color: a CSS color (`primary-color=\"#4f46e5\"`) whose dark-mode\nvalue is derived for contrast on dark surfaces, or (as a property) a\n`{ light, dark }` pair. Recomputes every token derived from\n`primary-color` and wins over the palette's. The value of the applied\nmode is written inline: without `theme`, the mode of the closest\nancestor with `data-theme` when applied (light when the element scopes\na palette, design or scale, whose tokens render light). A brand color\nalone does not scope the subtree.",
|
|
14597
|
+
"attribute": "primary-color"
|
|
14598
|
+
},
|
|
14590
14599
|
{
|
|
14591
14600
|
"kind": "field",
|
|
14592
14601
|
"name": "locale",
|
|
@@ -14681,6 +14690,14 @@
|
|
|
14681
14690
|
"description": "Type scale (overrides the preset)",
|
|
14682
14691
|
"fieldName": "fontScale"
|
|
14683
14692
|
},
|
|
14693
|
+
{
|
|
14694
|
+
"name": "primary-color",
|
|
14695
|
+
"type": {
|
|
14696
|
+
"text": "PrimaryColor | undefined"
|
|
14697
|
+
},
|
|
14698
|
+
"description": "Brand color: a CSS color (`primary-color=\"#4f46e5\"`) whose dark-mode\nvalue is derived for contrast on dark surfaces, or (as a property) a\n`{ light, dark }` pair. Recomputes every token derived from\n`primary-color` and wins over the palette's. The value of the applied\nmode is written inline: without `theme`, the mode of the closest\nancestor with `data-theme` when applied (light when the element scopes\na palette, design or scale, whose tokens render light). A brand color\nalone does not scope the subtree.",
|
|
14699
|
+
"fieldName": "primaryColor"
|
|
14700
|
+
},
|
|
14684
14701
|
{
|
|
14685
14702
|
"name": "locale",
|
|
14686
14703
|
"type": {
|
|
@@ -28600,7 +28617,7 @@
|
|
|
28600
28617
|
"declarations": [
|
|
28601
28618
|
{
|
|
28602
28619
|
"kind": "class",
|
|
28603
|
-
"description": "
|
|
28620
|
+
"description": "Loading indicator: spinner, circle, wave, bar or dotted bar\n(`<ProgressIndicator>` of React). Without `value` it is a `progressbar`\nwithout a value, named by `aria-label`, its visible `label`, or the\nlocalized \"Loading\". With `value`, the bar and circle variants become\ndeterminate (filled bar / arc, aria-valuenow, optional `show-value`); the\nother variants ignore it. Never focusable, so it can sit inside buttons.\nSet `decorative` when a surrounding element already announces the loading\nstate.",
|
|
28604
28621
|
"name": "MinervaProgress",
|
|
28605
28622
|
"cssParts": [
|
|
28606
28623
|
{
|
|
@@ -28612,9 +28629,13 @@
|
|
|
28612
28629
|
"name": "icon"
|
|
28613
28630
|
},
|
|
28614
28631
|
{
|
|
28615
|
-
"description": "The
|
|
28632
|
+
"description": "The indicator (ring, wave or bar; a filled bar or arc when determinate)",
|
|
28616
28633
|
"name": "indicator"
|
|
28617
28634
|
},
|
|
28635
|
+
{
|
|
28636
|
+
"description": "The formatted value of a determinate indicator",
|
|
28637
|
+
"name": "value"
|
|
28638
|
+
},
|
|
28618
28639
|
{
|
|
28619
28640
|
"description": "The visible label",
|
|
28620
28641
|
"name": "label"
|
|
@@ -28657,13 +28678,50 @@
|
|
|
28657
28678
|
"kind": "field",
|
|
28658
28679
|
"name": "color",
|
|
28659
28680
|
"type": {
|
|
28660
|
-
"text": "\"primary\" | \"neutral\" | \"current\""
|
|
28681
|
+
"text": "\"primary\" | \"neutral\" | \"success\" | \"warning\" | \"danger\" | \"info\" | \"current\""
|
|
28661
28682
|
},
|
|
28662
28683
|
"default": "\"primary\"",
|
|
28663
28684
|
"description": "Indicator color (\"current\" follows the text color)",
|
|
28664
28685
|
"attribute": "color",
|
|
28665
28686
|
"reflects": true
|
|
28666
28687
|
},
|
|
28688
|
+
{
|
|
28689
|
+
"kind": "field",
|
|
28690
|
+
"name": "value",
|
|
28691
|
+
"type": {
|
|
28692
|
+
"text": "number | undefined"
|
|
28693
|
+
},
|
|
28694
|
+
"description": "Current progress: switches the bar and circle variants to determinate\nmode (clamped between 0 and max); other variants ignore it",
|
|
28695
|
+
"attribute": "value"
|
|
28696
|
+
},
|
|
28697
|
+
{
|
|
28698
|
+
"kind": "field",
|
|
28699
|
+
"name": "max",
|
|
28700
|
+
"type": {
|
|
28701
|
+
"text": "number"
|
|
28702
|
+
},
|
|
28703
|
+
"default": "100",
|
|
28704
|
+
"description": "Value that represents completion (non-positive values fall back to 100)",
|
|
28705
|
+
"attribute": "max"
|
|
28706
|
+
},
|
|
28707
|
+
{
|
|
28708
|
+
"kind": "field",
|
|
28709
|
+
"name": "showValue",
|
|
28710
|
+
"type": {
|
|
28711
|
+
"text": "boolean"
|
|
28712
|
+
},
|
|
28713
|
+
"default": "false",
|
|
28714
|
+
"description": "Shows the formatted value (a percentage by default)",
|
|
28715
|
+
"attribute": "show-value"
|
|
28716
|
+
},
|
|
28717
|
+
{
|
|
28718
|
+
"kind": "field",
|
|
28719
|
+
"name": "format",
|
|
28720
|
+
"type": {
|
|
28721
|
+
"text": "(value: number, max: number) => string | undefined"
|
|
28722
|
+
},
|
|
28723
|
+
"description": "Formats the shown value (JS property); the result is also used as\naria-valuetext"
|
|
28724
|
+
},
|
|
28667
28725
|
{
|
|
28668
28726
|
"kind": "field",
|
|
28669
28727
|
"name": "label",
|
|
@@ -28728,12 +28786,38 @@
|
|
|
28728
28786
|
{
|
|
28729
28787
|
"name": "color",
|
|
28730
28788
|
"type": {
|
|
28731
|
-
"text": "\"primary\" | \"neutral\" | \"current\""
|
|
28789
|
+
"text": "\"primary\" | \"neutral\" | \"success\" | \"warning\" | \"danger\" | \"info\" | \"current\""
|
|
28732
28790
|
},
|
|
28733
28791
|
"default": "\"primary\"",
|
|
28734
28792
|
"description": "Indicator color (\"current\" follows the text color)",
|
|
28735
28793
|
"fieldName": "color"
|
|
28736
28794
|
},
|
|
28795
|
+
{
|
|
28796
|
+
"name": "value",
|
|
28797
|
+
"type": {
|
|
28798
|
+
"text": "number | undefined"
|
|
28799
|
+
},
|
|
28800
|
+
"description": "Current progress: switches the bar and circle variants to determinate\nmode (clamped between 0 and max); other variants ignore it",
|
|
28801
|
+
"fieldName": "value"
|
|
28802
|
+
},
|
|
28803
|
+
{
|
|
28804
|
+
"name": "max",
|
|
28805
|
+
"type": {
|
|
28806
|
+
"text": "number"
|
|
28807
|
+
},
|
|
28808
|
+
"default": "100",
|
|
28809
|
+
"description": "Value that represents completion (non-positive values fall back to 100)",
|
|
28810
|
+
"fieldName": "max"
|
|
28811
|
+
},
|
|
28812
|
+
{
|
|
28813
|
+
"name": "show-value",
|
|
28814
|
+
"type": {
|
|
28815
|
+
"text": "boolean"
|
|
28816
|
+
},
|
|
28817
|
+
"default": "false",
|
|
28818
|
+
"description": "Shows the formatted value (a percentage by default)",
|
|
28819
|
+
"fieldName": "showValue"
|
|
28820
|
+
},
|
|
28737
28821
|
{
|
|
28738
28822
|
"name": "label",
|
|
28739
28823
|
"type": {
|
|
@@ -28772,7 +28856,7 @@
|
|
|
28772
28856
|
],
|
|
28773
28857
|
"tagName": "minerva-progress",
|
|
28774
28858
|
"customElement": true,
|
|
28775
|
-
"summary": "
|
|
28859
|
+
"summary": "Loading indicator (spinner, circle, wave, bars), determinate or not.",
|
|
28776
28860
|
"cssProperties": [
|
|
28777
28861
|
{
|
|
28778
28862
|
"name": "--progress-width",
|
|
@@ -28784,7 +28868,7 @@
|
|
|
28784
28868
|
},
|
|
28785
28869
|
{
|
|
28786
28870
|
"name": "--progress-track-color",
|
|
28787
|
-
"description": "Color of the bar track"
|
|
28871
|
+
"description": "Color of the bar track (and of the determinate circle track)"
|
|
28788
28872
|
},
|
|
28789
28873
|
{
|
|
28790
28874
|
"name": "--progress-radius",
|
|
@@ -39644,7 +39728,7 @@
|
|
|
39644
39728
|
},
|
|
39645
39729
|
{
|
|
39646
39730
|
"name": "--progress-track-color",
|
|
39647
|
-
"description": "Color of the bar track"
|
|
39731
|
+
"description": "Color of the bar track (and of the determinate circle track)"
|
|
39648
39732
|
},
|
|
39649
39733
|
{
|
|
39650
39734
|
"name": "--progress-radius",
|
|
@@ -39667,6 +39751,353 @@
|
|
|
39667
39751
|
}
|
|
39668
39752
|
}
|
|
39669
39753
|
]
|
|
39754
|
+
},
|
|
39755
|
+
{
|
|
39756
|
+
"kind": "javascript-module",
|
|
39757
|
+
"path": "src/components/week-strip/week-strip.ts",
|
|
39758
|
+
"declarations": [
|
|
39759
|
+
{
|
|
39760
|
+
"kind": "class",
|
|
39761
|
+
"description": "The seven days of a week in a row (`<WeekStrip>` of React): a horizontal\n`listbox` of day `option`s. Select a day by click, Enter or Space; today\ncarries `aria-current=\"date\"`; days can show a count badge or a dot\n(`markers`). Keyboard: one tab stop (roving `tabindex`), ArrowLeft /\nArrowRight move by a day (into the previous / next week; RTL swaps them),\nHome / End jump to the ends of the week, PageUp / PageDown move by a week.\n`show-navigation` adds previous / next week buttons around the month of\nthe week.\n\nUser navigation updates `week` / `value` and fires `minerva-week-change`\n/ `minerva-change`. Setting `value` also displays its week.",
|
|
39762
|
+
"name": "MinervaWeekStrip",
|
|
39763
|
+
"cssParts": [
|
|
39764
|
+
{
|
|
39765
|
+
"description": "The outermost element",
|
|
39766
|
+
"name": "root"
|
|
39767
|
+
},
|
|
39768
|
+
{
|
|
39769
|
+
"description": "The month of the week (with `show-navigation`)",
|
|
39770
|
+
"name": "heading"
|
|
39771
|
+
},
|
|
39772
|
+
{
|
|
39773
|
+
"description": "The previous / next week buttons (with `show-navigation`)",
|
|
39774
|
+
"name": "nav-button"
|
|
39775
|
+
},
|
|
39776
|
+
{
|
|
39777
|
+
"description": "The `role=listbox` element holding the days",
|
|
39778
|
+
"name": "list"
|
|
39779
|
+
},
|
|
39780
|
+
{
|
|
39781
|
+
"description": "A day (`role=option`)",
|
|
39782
|
+
"name": "day"
|
|
39783
|
+
},
|
|
39784
|
+
{
|
|
39785
|
+
"description": "Item state of `day`: selected",
|
|
39786
|
+
"name": "day--selected"
|
|
39787
|
+
},
|
|
39788
|
+
{
|
|
39789
|
+
"description": "Item state of `day`: today",
|
|
39790
|
+
"name": "day--today"
|
|
39791
|
+
},
|
|
39792
|
+
{
|
|
39793
|
+
"description": "Item state of `day`: disabled",
|
|
39794
|
+
"name": "day--disabled"
|
|
39795
|
+
},
|
|
39796
|
+
{
|
|
39797
|
+
"description": "The marker of a day: empty, a count badge or a dot",
|
|
39798
|
+
"name": "indicator"
|
|
39799
|
+
}
|
|
39800
|
+
],
|
|
39801
|
+
"members": [
|
|
39802
|
+
{
|
|
39803
|
+
"kind": "field",
|
|
39804
|
+
"name": "value",
|
|
39805
|
+
"type": {
|
|
39806
|
+
"text": "string | undefined"
|
|
39807
|
+
},
|
|
39808
|
+
"description": "Selected day, \"YYYY-MM-DD\"",
|
|
39809
|
+
"attribute": "value",
|
|
39810
|
+
"reflects": true
|
|
39811
|
+
},
|
|
39812
|
+
{
|
|
39813
|
+
"kind": "field",
|
|
39814
|
+
"name": "week",
|
|
39815
|
+
"type": {
|
|
39816
|
+
"text": "Date | undefined"
|
|
39817
|
+
},
|
|
39818
|
+
"description": "Displayed week (any day of it; attribute \"YYYY-MM-DD\"); defaults to the week of the selected day, else of today",
|
|
39819
|
+
"attribute": "week",
|
|
39820
|
+
"reflects": true
|
|
39821
|
+
},
|
|
39822
|
+
{
|
|
39823
|
+
"kind": "field",
|
|
39824
|
+
"name": "firstDayOfWeek",
|
|
39825
|
+
"type": {
|
|
39826
|
+
"text": "number"
|
|
39827
|
+
},
|
|
39828
|
+
"default": "1",
|
|
39829
|
+
"description": "First day of the week: 0 = Sunday, 1 = Monday ... 6 = Saturday",
|
|
39830
|
+
"attribute": "first-day-of-week"
|
|
39831
|
+
},
|
|
39832
|
+
{
|
|
39833
|
+
"kind": "field",
|
|
39834
|
+
"name": "today",
|
|
39835
|
+
"type": {
|
|
39836
|
+
"text": "string | undefined"
|
|
39837
|
+
},
|
|
39838
|
+
"description": "The day marked as today, \"YYYY-MM-DD\"; defaults to the current local day",
|
|
39839
|
+
"attribute": "today"
|
|
39840
|
+
},
|
|
39841
|
+
{
|
|
39842
|
+
"kind": "field",
|
|
39843
|
+
"name": "markers",
|
|
39844
|
+
"type": {
|
|
39845
|
+
"text": "Readonly<Record<string, WeekStripMarker>> | undefined"
|
|
39846
|
+
},
|
|
39847
|
+
"description": "Per-day markers keyed by \"YYYY-MM-DD\": a number shows a count badge (99+ above 99), true shows a dot"
|
|
39848
|
+
},
|
|
39849
|
+
{
|
|
39850
|
+
"kind": "field",
|
|
39851
|
+
"name": "showNavigation",
|
|
39852
|
+
"type": {
|
|
39853
|
+
"text": "boolean"
|
|
39854
|
+
},
|
|
39855
|
+
"default": "false",
|
|
39856
|
+
"description": "Shows previous / next week buttons around the month of the week",
|
|
39857
|
+
"attribute": "show-navigation",
|
|
39858
|
+
"reflects": true
|
|
39859
|
+
},
|
|
39860
|
+
{
|
|
39861
|
+
"kind": "field",
|
|
39862
|
+
"name": "previousWeekLabel",
|
|
39863
|
+
"type": {
|
|
39864
|
+
"text": "string | undefined"
|
|
39865
|
+
},
|
|
39866
|
+
"description": "Label of the previous-week button (default: localized)",
|
|
39867
|
+
"attribute": "previous-week-label"
|
|
39868
|
+
},
|
|
39869
|
+
{
|
|
39870
|
+
"kind": "field",
|
|
39871
|
+
"name": "nextWeekLabel",
|
|
39872
|
+
"type": {
|
|
39873
|
+
"text": "string | undefined"
|
|
39874
|
+
},
|
|
39875
|
+
"description": "Label of the next-week button (default: localized)",
|
|
39876
|
+
"attribute": "next-week-label"
|
|
39877
|
+
},
|
|
39878
|
+
{
|
|
39879
|
+
"kind": "field",
|
|
39880
|
+
"name": "locale",
|
|
39881
|
+
"type": {
|
|
39882
|
+
"text": "string | undefined"
|
|
39883
|
+
},
|
|
39884
|
+
"description": "Locale of the dates (Intl.DateTimeFormat); default: the library language",
|
|
39885
|
+
"attribute": "locale"
|
|
39886
|
+
},
|
|
39887
|
+
{
|
|
39888
|
+
"kind": "field",
|
|
39889
|
+
"name": "disabled",
|
|
39890
|
+
"type": {
|
|
39891
|
+
"text": "boolean"
|
|
39892
|
+
},
|
|
39893
|
+
"default": "false",
|
|
39894
|
+
"description": "Blocks selection and navigation",
|
|
39895
|
+
"attribute": "disabled",
|
|
39896
|
+
"reflects": true
|
|
39897
|
+
},
|
|
39898
|
+
{
|
|
39899
|
+
"kind": "field",
|
|
39900
|
+
"name": "size",
|
|
39901
|
+
"type": {
|
|
39902
|
+
"text": "\"small\" | \"medium\" | \"large\""
|
|
39903
|
+
},
|
|
39904
|
+
"default": "\"medium\"",
|
|
39905
|
+
"description": "Cell density: compact (\"small\"), default (\"medium\") or comfortable (\"large\")",
|
|
39906
|
+
"attribute": "size",
|
|
39907
|
+
"reflects": true
|
|
39908
|
+
},
|
|
39909
|
+
{
|
|
39910
|
+
"kind": "field",
|
|
39911
|
+
"name": "weekdayLabels",
|
|
39912
|
+
"type": {
|
|
39913
|
+
"text": "readonly string[] | undefined"
|
|
39914
|
+
},
|
|
39915
|
+
"description": "Weekday names, Monday first (7 labels), whatever `first-day-of-week` is"
|
|
39916
|
+
},
|
|
39917
|
+
{
|
|
39918
|
+
"kind": "field",
|
|
39919
|
+
"name": "getDayLabel",
|
|
39920
|
+
"type": {
|
|
39921
|
+
"text": "(day: string, marker: WeekStripMarker | undefined) => string | undefined"
|
|
39922
|
+
},
|
|
39923
|
+
"description": "Accessible label of a day, from the day (\"YYYY-MM-DD\") and its marker"
|
|
39924
|
+
},
|
|
39925
|
+
{
|
|
39926
|
+
"kind": "method",
|
|
39927
|
+
"name": "focus",
|
|
39928
|
+
"return": {
|
|
39929
|
+
"type": {
|
|
39930
|
+
"text": "void"
|
|
39931
|
+
}
|
|
39932
|
+
},
|
|
39933
|
+
"parameters": [
|
|
39934
|
+
{
|
|
39935
|
+
"name": "options",
|
|
39936
|
+
"optional": true,
|
|
39937
|
+
"type": {
|
|
39938
|
+
"text": "FocusOptions"
|
|
39939
|
+
}
|
|
39940
|
+
}
|
|
39941
|
+
]
|
|
39942
|
+
}
|
|
39943
|
+
],
|
|
39944
|
+
"events": [
|
|
39945
|
+
{
|
|
39946
|
+
"description": "The user selected a day (`detail: { value }`, \"YYYY-MM-DD\")",
|
|
39947
|
+
"name": "minerva-change"
|
|
39948
|
+
},
|
|
39949
|
+
{
|
|
39950
|
+
"description": "The user displayed another week (`detail: { week }`, its first day at local midnight)",
|
|
39951
|
+
"name": "minerva-week-change"
|
|
39952
|
+
}
|
|
39953
|
+
],
|
|
39954
|
+
"attributes": [
|
|
39955
|
+
{
|
|
39956
|
+
"name": "value",
|
|
39957
|
+
"type": {
|
|
39958
|
+
"text": "string | undefined"
|
|
39959
|
+
},
|
|
39960
|
+
"description": "Selected day, \"YYYY-MM-DD\"",
|
|
39961
|
+
"fieldName": "value"
|
|
39962
|
+
},
|
|
39963
|
+
{
|
|
39964
|
+
"name": "week",
|
|
39965
|
+
"type": {
|
|
39966
|
+
"text": "Date | undefined"
|
|
39967
|
+
},
|
|
39968
|
+
"description": "Displayed week (any day of it; attribute \"YYYY-MM-DD\"); defaults to the week of the selected day, else of today",
|
|
39969
|
+
"fieldName": "week"
|
|
39970
|
+
},
|
|
39971
|
+
{
|
|
39972
|
+
"name": "first-day-of-week",
|
|
39973
|
+
"type": {
|
|
39974
|
+
"text": "number"
|
|
39975
|
+
},
|
|
39976
|
+
"default": "1",
|
|
39977
|
+
"description": "First day of the week: 0 = Sunday, 1 = Monday ... 6 = Saturday",
|
|
39978
|
+
"fieldName": "firstDayOfWeek"
|
|
39979
|
+
},
|
|
39980
|
+
{
|
|
39981
|
+
"name": "today",
|
|
39982
|
+
"type": {
|
|
39983
|
+
"text": "string | undefined"
|
|
39984
|
+
},
|
|
39985
|
+
"description": "The day marked as today, \"YYYY-MM-DD\"; defaults to the current local day",
|
|
39986
|
+
"fieldName": "today"
|
|
39987
|
+
},
|
|
39988
|
+
{
|
|
39989
|
+
"name": "show-navigation",
|
|
39990
|
+
"type": {
|
|
39991
|
+
"text": "boolean"
|
|
39992
|
+
},
|
|
39993
|
+
"default": "false",
|
|
39994
|
+
"description": "Shows previous / next week buttons around the month of the week",
|
|
39995
|
+
"fieldName": "showNavigation"
|
|
39996
|
+
},
|
|
39997
|
+
{
|
|
39998
|
+
"name": "previous-week-label",
|
|
39999
|
+
"type": {
|
|
40000
|
+
"text": "string | undefined"
|
|
40001
|
+
},
|
|
40002
|
+
"description": "Label of the previous-week button (default: localized)",
|
|
40003
|
+
"fieldName": "previousWeekLabel"
|
|
40004
|
+
},
|
|
40005
|
+
{
|
|
40006
|
+
"name": "next-week-label",
|
|
40007
|
+
"type": {
|
|
40008
|
+
"text": "string | undefined"
|
|
40009
|
+
},
|
|
40010
|
+
"description": "Label of the next-week button (default: localized)",
|
|
40011
|
+
"fieldName": "nextWeekLabel"
|
|
40012
|
+
},
|
|
40013
|
+
{
|
|
40014
|
+
"name": "locale",
|
|
40015
|
+
"type": {
|
|
40016
|
+
"text": "string | undefined"
|
|
40017
|
+
},
|
|
40018
|
+
"description": "Locale of the dates (Intl.DateTimeFormat); default: the library language",
|
|
40019
|
+
"fieldName": "locale"
|
|
40020
|
+
},
|
|
40021
|
+
{
|
|
40022
|
+
"name": "disabled",
|
|
40023
|
+
"type": {
|
|
40024
|
+
"text": "boolean"
|
|
40025
|
+
},
|
|
40026
|
+
"default": "false",
|
|
40027
|
+
"description": "Blocks selection and navigation",
|
|
40028
|
+
"fieldName": "disabled"
|
|
40029
|
+
},
|
|
40030
|
+
{
|
|
40031
|
+
"name": "size",
|
|
40032
|
+
"type": {
|
|
40033
|
+
"text": "\"small\" | \"medium\" | \"large\""
|
|
40034
|
+
},
|
|
40035
|
+
"default": "\"medium\"",
|
|
40036
|
+
"description": "Cell density: compact (\"small\"), default (\"medium\") or comfortable (\"large\")",
|
|
40037
|
+
"fieldName": "size"
|
|
40038
|
+
}
|
|
40039
|
+
],
|
|
40040
|
+
"tagName": "minerva-week-strip",
|
|
40041
|
+
"customElement": true,
|
|
40042
|
+
"summary": "A week of selectable days with today, markers and week navigation.",
|
|
40043
|
+
"cssProperties": [
|
|
40044
|
+
{
|
|
40045
|
+
"name": "--week-strip-gap",
|
|
40046
|
+
"description": "Space between the day cells"
|
|
40047
|
+
},
|
|
40048
|
+
{
|
|
40049
|
+
"name": "--week-strip-day-height",
|
|
40050
|
+
"description": "Minimum height of a day cell (defaults to 3.5rem; 2.75rem with size=\"small\", 4.5rem with size=\"large\"); cells grow to fit a count badge"
|
|
40051
|
+
},
|
|
40052
|
+
{
|
|
40053
|
+
"name": "--week-strip-radius",
|
|
40054
|
+
"description": "Corner radius of the day cells and buttons (defaults to --radius-md)"
|
|
40055
|
+
},
|
|
40056
|
+
{
|
|
40057
|
+
"name": "--week-strip-hover-background",
|
|
40058
|
+
"description": "Background of a hovered day"
|
|
40059
|
+
},
|
|
40060
|
+
{
|
|
40061
|
+
"name": "--week-strip-selected-background",
|
|
40062
|
+
"description": "Background of the selected day (defaults to --primary-color)"
|
|
40063
|
+
},
|
|
40064
|
+
{
|
|
40065
|
+
"name": "--week-strip-selected-color",
|
|
40066
|
+
"description": "Text color of the selected day"
|
|
40067
|
+
},
|
|
40068
|
+
{
|
|
40069
|
+
"name": "--week-strip-today-color",
|
|
40070
|
+
"description": "Ring and number color marking today"
|
|
40071
|
+
},
|
|
40072
|
+
{
|
|
40073
|
+
"name": "--week-strip-weekday-color",
|
|
40074
|
+
"description": "Text color of the weekday names"
|
|
40075
|
+
},
|
|
40076
|
+
{
|
|
40077
|
+
"name": "--week-strip-marker-background",
|
|
40078
|
+
"description": "Background of the count badge"
|
|
40079
|
+
},
|
|
40080
|
+
{
|
|
40081
|
+
"name": "--week-strip-marker-color",
|
|
40082
|
+
"description": "Text color of the count badge (and color of the dot)"
|
|
40083
|
+
},
|
|
40084
|
+
{
|
|
40085
|
+
"name": "--week-strip-nav-height",
|
|
40086
|
+
"description": "Size of the previous / next week buttons (defaults to the density's small control height)"
|
|
40087
|
+
}
|
|
40088
|
+
]
|
|
40089
|
+
}
|
|
40090
|
+
],
|
|
40091
|
+
"exports": [
|
|
40092
|
+
{
|
|
40093
|
+
"kind": "js",
|
|
40094
|
+
"name": "MinervaWeekStrip",
|
|
40095
|
+
"declaration": {
|
|
40096
|
+
"name": "MinervaWeekStrip",
|
|
40097
|
+
"module": "src/components/week-strip/week-strip.ts"
|
|
40098
|
+
}
|
|
40099
|
+
}
|
|
40100
|
+
]
|
|
39670
40101
|
}
|
|
39671
40102
|
]
|
|
39672
40103
|
}
|