@parallelogram-js/dashboard 0.0.0-stage → 0.1.2
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 +124 -0
- package/LICENSE +21 -0
- package/README.md +1391 -2
- package/dist/parallelogram-dashboard.css +9478 -0
- package/dist/parallelogram-dashboard.css.map +1 -0
- package/dist/parallelogram-dashboard.min.css +1 -0
- package/package.json +72 -4
- package/scss/_base.scss +403 -0
- package/scss/_datetime.scss +50 -0
- package/scss/_icon.scss +40 -0
- package/scss/_index.scss +61 -0
- package/scss/_mixins.scss +396 -0
- package/scss/_tokens.scss +340 -0
- package/scss/_utilities.scss +464 -0
- package/scss/_variables.scss +219 -0
- package/scss/components/_accordion.scss +297 -0
- package/scss/components/_actionbar.scss +333 -0
- package/scss/components/_alert.scss +183 -0
- package/scss/components/_auth.scss +98 -0
- package/scss/components/_avatar.scss +203 -0
- package/scss/components/_badge.scss +176 -0
- package/scss/components/_banner.scss +344 -0
- package/scss/components/_breadcrumb.scss +220 -0
- package/scss/components/_button.scss +264 -0
- package/scss/components/_card.scss +256 -0
- package/scss/components/_chart.scss +246 -0
- package/scss/components/_command.scss +267 -0
- package/scss/components/_dashboard.scss +681 -0
- package/scss/components/_data-list.scss +280 -0
- package/scss/components/_dropdown.scss +318 -0
- package/scss/components/_empty.scss +226 -0
- package/scss/components/_filebrowser.scss +906 -0
- package/scss/components/_form-layout.scss +332 -0
- package/scss/components/_input.scss +310 -0
- package/scss/components/_list.scss +130 -0
- package/scss/components/_media.scss +239 -0
- package/scss/components/_modal.scss +298 -0
- package/scss/components/_navbar.scss +312 -0
- package/scss/components/_notification.scss +59 -0
- package/scss/components/_pageheader.scss +99 -0
- package/scss/components/_pagination.scss +165 -0
- package/scss/components/_progress.scss +333 -0
- package/scss/components/_separator.scss +129 -0
- package/scss/components/_sheet.scss +286 -0
- package/scss/components/_sidebar.scss +324 -0
- package/scss/components/_skeleton.scss +246 -0
- package/scss/components/_stat.scss +218 -0
- package/scss/components/_table.scss +589 -0
- package/scss/components/_tabs.scss +266 -0
- package/scss/components/_timeline.scss +339 -0
- package/scss/components/_toast.scss +259 -0
- package/scss/components/_toolbar.scss +301 -0
- package/scss/components/_tooltip.scss +250 -0
- package/scss/main.scss +6 -0
- package/src/js/behaviours/accordion.js +58 -0
- package/src/js/behaviours/action-bar-list.js +406 -0
- package/src/js/behaviours/action-bar.js +29 -0
- package/src/js/behaviours/chart.js +339 -0
- package/src/js/behaviours/collapsible.js +34 -0
- package/src/js/behaviours/editable-table.js +91 -0
- package/src/js/behaviours/expandable.js +80 -0
- package/src/js/behaviours/overflow-actions.js +137 -0
- package/src/js/behaviours/publish-schedule.js +91 -0
- package/src/js/behaviours/search-clear.js +19 -0
- package/src/js/behaviours/segmented-control.js +43 -0
- package/src/js/behaviours/submenu.js +73 -0
- package/src/js/behaviours/table-columns.js +77 -0
- package/src/js/behaviours/table-paste.js +305 -0
- package/src/js/behaviours/table-reorder.js +252 -0
- package/src/js/behaviours/table-sort.js +101 -0
- package/src/js/behaviours/tabs.js +148 -0
- package/src/js/behaviours/toast-manager.js +106 -0
- package/src/js/behaviours/toggle.js +186 -0
- package/src/js/behaviours/unsaved-guard.js +88 -0
- package/src/js/core-loader.js +26 -0
- package/src/js/index.js +85 -0
- package/src/js/polyfills/dialog-commands.js +20 -0
- package/src/js/util/dom.js +39 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to `@parallelogram-js/dashboard` are recorded here. The format follows
|
|
4
|
+
[Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and versions follow the rules in the
|
|
5
|
+
README's [Versioning](README.md#versioning) section.
|
|
6
|
+
|
|
7
|
+
Each release can have a **Markup changes** section. It lists every change a site has to make in
|
|
8
|
+
its own templates to upgrade: a class renamed or removed, a required element added or moved, or a
|
|
9
|
+
token renamed or removed. Each entry shows the markup before and after. A release with no such
|
|
10
|
+
section can be taken with a version bump and a rebuild.
|
|
11
|
+
|
|
12
|
+
## [Unreleased]
|
|
13
|
+
|
|
14
|
+
## [0.1.2] - 2026-10-16
|
|
15
|
+
|
|
16
|
+
### Added
|
|
17
|
+
|
|
18
|
+
- Auth, a component for signing in and the other screens shown before the dashboard shell: `.auth`
|
|
19
|
+
centres an `.auth__container` (`--wide` for a longer form) holding a header (`auth__logo`,
|
|
20
|
+
`auth__title`, `auth__description`), the form and an `auth__footer` with `auth__back`, and
|
|
21
|
+
`auth__icon` (`--success`, `--error`) heads a screen that reports an outcome. It was in the demo
|
|
22
|
+
stylesheet, so a site had to copy it; it now ships in the library, with a component page.
|
|
23
|
+
|
|
24
|
+
## [0.1.1] - 2026-10-16
|
|
25
|
+
|
|
26
|
+
Ready to publish on npm as a public package.
|
|
27
|
+
|
|
28
|
+
### Added
|
|
29
|
+
|
|
30
|
+
- An MIT `LICENSE` file, and `author`, `repository` and `publishConfig` (public access) in
|
|
31
|
+
`package.json`.
|
|
32
|
+
- `CHANGELOG.md` is included in the package, so the markup notes ship with each version.
|
|
33
|
+
|
|
34
|
+
### Changed
|
|
35
|
+
|
|
36
|
+
- The popovers that keep the page's colours inside the rail, section menu and header are picked
|
|
37
|
+
out by role (`[popover]`, `menu`, `dialog`, `tooltip`) instead of by class.
|
|
38
|
+
|
|
39
|
+
### Removed
|
|
40
|
+
|
|
41
|
+
- The demo-only stylesheets `scss/_demo.scss` and `scss/demo-pages.scss` from the package.
|
|
42
|
+
|
|
43
|
+
## [0.1.0] - 2026-10-16
|
|
44
|
+
|
|
45
|
+
The first tagged release, covering everything on `main` to date.
|
|
46
|
+
|
|
47
|
+
### Added
|
|
48
|
+
|
|
49
|
+
- Components, each with a page and a live playground: accordion, action bar, alert, avatar,
|
|
50
|
+
badge, banner, breadcrumb, button, card, chart, command palette, dashboard shell (icon rail,
|
|
51
|
+
section menu, header), data list, dropdown, empty state, file browser, form layout, input,
|
|
52
|
+
list, media field, modal, navbar, notification, page header, pagination, progress, separator,
|
|
53
|
+
sheet, sidebar, skeleton, stat, table, tabs, timeline, toast, toolbar and tooltip.
|
|
54
|
+
- Behaviours, exported from `@parallelogram-js/dashboard`: Accordion, ActionBar, ActionBarList,
|
|
55
|
+
Chart, Collapsible, EditableTable, Expandable, OverflowActions, PublishSchedule,
|
|
56
|
+
SegmentedControl, SearchClear, Submenu, TableColumns, TablePaste, TableReorder, TableSort,
|
|
57
|
+
Tabs, ToastManager, Toggle and UnsavedGuard, with `init()` to enhance a page.
|
|
58
|
+
- Theme tokens: colour tokens as light and dark pairs; chrome tokens so the rail
|
|
59
|
+
(`--navmenu-*`), section menu (`--subnav-*`) and page header (`--header-*`) can be coloured
|
|
60
|
+
apart from the page, with head tokens for the logo cell and title bar; shape tokens for corner
|
|
61
|
+
radius (`--radius-*`), control border width (`--control-border-width`) and icon stroke width
|
|
62
|
+
(`--icon-stroke-width`); and `--avatar-bg` / `--avatar-fg`. A theme is a file of token values.
|
|
63
|
+
- `.pageheader--sticky`: the title and actions pin under the dashboard header from tablet width
|
|
64
|
+
up and gain a shadow once the page scrolls.
|
|
65
|
+
- Package name `@parallelogram-js/dashboard`, with an `exports` map for the JavaScript entry,
|
|
66
|
+
each behaviour (`@parallelogram-js/dashboard/behaviours/<name>`), the compiled CSS (expanded
|
|
67
|
+
and minified) and the SCSS.
|
|
68
|
+
- `scss/_index.scss`, which forwards the foundation and every component so a project can
|
|
69
|
+
`@use "@parallelogram-js/dashboard/scss" with (...)`, and `!default` on every variable in
|
|
70
|
+
`_variables.scss` and on the token maps, so they can be configured.
|
|
71
|
+
- The behaviours as ES modules in `src/js`, with `init(root)`.
|
|
72
|
+
- Release tooling: `npm run release` cuts a version and tag, and `npm run compare` with
|
|
73
|
+
`demo/compare.html` lists the computed-style changes between the current build and a tag.
|
|
74
|
+
|
|
75
|
+
### Changed
|
|
76
|
+
|
|
77
|
+
- Version reset to `0.1.0`; it stays on 0.x until Contenir has used it in production.
|
|
78
|
+
- `@parallelogram-js/core` is an optional peer dependency. Only pages that use `<p-modal>`,
|
|
79
|
+
`<p-datetime>` or `[data-modal]` need it, and its components load through literal dynamic
|
|
80
|
+
imports, so the consuming bundler resolves and code-splits them.
|
|
81
|
+
- The demo pages import the package through an import map, the same way an app does.
|
|
82
|
+
|
|
83
|
+
### Removed
|
|
84
|
+
|
|
85
|
+
- The unused `@tabler/icons-webfont` dependency.
|
|
86
|
+
|
|
87
|
+
### Markup changes
|
|
88
|
+
|
|
89
|
+
- **Sticky page header.** To pin a page's title row, add `pageheader--sticky` and move the
|
|
90
|
+
description out of the header to directly after it, so it scrolls away. The plain
|
|
91
|
+
`.pageheader` markup is unchanged.
|
|
92
|
+
|
|
93
|
+
Before:
|
|
94
|
+
|
|
95
|
+
```html
|
|
96
|
+
<div class="pageheader pageheader--row">
|
|
97
|
+
<div class="pageheader__content">
|
|
98
|
+
<h1 class="pageheader__title">Records</h1>
|
|
99
|
+
<p class="pageheader__description">Manage and browse your records.</p>
|
|
100
|
+
</div>
|
|
101
|
+
<div class="pageheader__actions">…</div>
|
|
102
|
+
</div>
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
After:
|
|
106
|
+
|
|
107
|
+
```html
|
|
108
|
+
<div class="pageheader pageheader--row pageheader--sticky">
|
|
109
|
+
<div class="pageheader__content">
|
|
110
|
+
<h1 class="pageheader__title">Records</h1>
|
|
111
|
+
</div>
|
|
112
|
+
<div class="pageheader__actions">…</div>
|
|
113
|
+
</div>
|
|
114
|
+
<p class="pageheader__description">Manage and browse your records.</p>
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
- **Page content is no longer a scroll container.** `.dashboard__content` no longer sets
|
|
118
|
+
`overflow-y: auto`; the page itself scrolls. Templates that relied on the content area
|
|
119
|
+
scrolling inside a fixed-height shell need their own scrolling wrapper.
|
|
120
|
+
|
|
121
|
+
[Unreleased]: https://github.com/parallelogram-dev/parallelogram-dashboard/compare/v0.1.2...HEAD
|
|
122
|
+
[0.1.2]: https://github.com/parallelogram-dev/parallelogram-dashboard/compare/v0.1.1...v0.1.2
|
|
123
|
+
[0.1.1]: https://github.com/parallelogram-dev/parallelogram-dashboard/compare/v0.1.0...v0.1.1
|
|
124
|
+
[0.1.0]: https://github.com/parallelogram-dev/parallelogram-dashboard/releases/tag/v0.1.0
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 PeptoLab
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|