athena-ui-js 1.2.0 → 2.0.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 +312 -60
- package/docs/migration-2.0.md +83 -0
- package/docs/styling.md +86 -0
- package/package.json +109 -24
- package/src/athena-ui.js +61 -81
- package/src/chart.js +6 -0
- package/src/classic.js +11 -0
- package/src/components.js +6 -0
- package/src/controls.js +8 -0
- package/src/csv.js +6 -0
- package/src/dialog.js +7 -0
- package/src/dom.js +6 -0
- package/src/feedback.js +6 -0
- package/src/format.js +6 -0
- package/src/forms.js +7 -0
- package/src/i18n.js +6 -0
- package/src/inputs.js +9 -0
- package/src/libs/config/config.js +1 -2
- package/src/libs/core/controls.js +145 -0
- package/src/libs/core/cookies.js +55 -0
- package/src/libs/core/dateRange.js +121 -0
- package/src/libs/core/dom.js +58 -8
- package/src/libs/{hephaestus/HTMLElementGenerator/src/HTMLElementGenerator.js → core/elementGenerator.js} +23 -21
- package/src/libs/{hephaestus/HTMLElementGenerator/src → core}/errors.js +7 -5
- package/src/libs/core/format.js +51 -0
- package/src/libs/core/hungarianControls.js +41 -0
- package/src/libs/core/i18n.js +104 -6
- package/src/libs/core/theme.js +131 -0
- package/src/libs/core/validation.js +2 -2
- package/src/libs/hephaestus/LayoutGenerator/basicLayoutGenerator.js +13 -7
- package/src/libs/hephaestus/LayoutGenerator/footerContentGenerator.js +2 -4
- package/src/libs/hephaestus/LayoutGenerator/headerContentGenerator.js +12 -5
- package/src/libs/hephaestus/MenuGenerator/basicMenuGenerator.js +3 -3
- package/src/libs/hephaestus/MenuGenerator/menuGenerator.js +265 -0
- package/src/libs/hephaestus/auth/authState.js +58 -0
- package/src/libs/hephaestus/auth/session.js +1 -1
- package/src/libs/hephaestus/chartGenerator/chartGenerator.js +519 -87
- package/src/libs/hephaestus/componentGenerator/componentGenerator.js +121 -4
- package/src/libs/hephaestus/componentGenerator/themePicker.js +73 -0
- package/src/libs/hephaestus/dialogGenerator/dialogGenerator.js +113 -25
- package/src/libs/hephaestus/feedbackGenerator/feedbackGenerator.js +21 -0
- package/src/libs/hephaestus/formGenerator/authForms.js +130 -0
- package/src/libs/hephaestus/formGenerator/changePasswordFormGenerator.js +4 -4
- package/src/libs/hephaestus/formGenerator/formUtils.js +10 -13
- package/src/libs/hephaestus/formGenerator/loginFormGenerator.js +10 -11
- package/src/libs/hephaestus/formGenerator/registrationFormGenerator.js +3 -3
- package/src/libs/hephaestus/hephaestus.js +0 -5
- package/src/libs/hephaestus/inputGenerator/dropZoneGenerator.js +1 -1
- package/src/libs/hephaestus/inputGenerator/inputGenerator.js +30 -1
- package/src/libs/hephaestus/modalGenerator/modalGenerator.js +25 -12
- package/src/libs/hephaestus/navigationGenerator/navigationGenerator.js +20 -24
- package/src/libs/hephaestus/router/router.js +54 -5
- package/src/libs/hephaestus/tableGenerator/tableGenerator.js +290 -16
- package/src/menu.js +6 -0
- package/src/navigation.js +6 -0
- package/src/res/themes/appearance.css +154 -0
- package/src/res/themes/default/style.css +688 -82
- package/src/res/themes/tokens.css +96 -0
- package/src/router.js +6 -0
- package/src/sanitize.js +6 -0
- package/src/session.js +8 -0
- package/src/table.js +6 -0
- package/src/testing.js +11 -1
- package/src/theme-boot.js +25 -0
- package/src/theme.js +7 -0
- package/src/validation.js +6 -0
- package/types/athena-ui.d.ts +96 -0
- package/types/chart.d.ts +1 -0
- package/types/classic.d.ts +1 -0
- package/types/components.d.ts +1 -0
- package/types/controls.d.ts +3 -0
- package/types/csv.d.ts +1 -0
- package/types/dialog.d.ts +2 -0
- package/types/dom.d.ts +1 -0
- package/types/feedback.d.ts +1 -0
- package/types/format.d.ts +1 -0
- package/types/forms.d.ts +2 -0
- package/types/i18n.d.ts +1 -0
- package/types/inputs.d.ts +4 -0
- package/types/libs/config/config.d.ts +96 -0
- package/types/libs/config/hooks.d.ts +8 -0
- package/types/libs/core/combobox.d.ts +10 -0
- package/types/libs/core/controls.d.ts +28 -0
- package/types/libs/core/cookies.d.ts +27 -0
- package/types/libs/core/csv.d.ts +12 -0
- package/types/libs/core/dateRange.d.ts +72 -0
- package/types/libs/core/dom.d.ts +65 -0
- package/types/libs/core/elementGenerator.d.ts +30 -0
- package/types/libs/core/errors.d.ts +29 -0
- package/types/libs/core/focus.d.ts +6 -0
- package/types/libs/core/format.d.ts +21 -0
- package/types/libs/core/hungarianControls.d.ts +2 -0
- package/types/libs/core/i18n.d.ts +17 -0
- package/types/libs/core/pagination.d.ts +5 -0
- package/types/libs/core/sanitize.d.ts +6 -0
- package/types/libs/core/tableMath.d.ts +26 -0
- package/types/libs/core/theme.d.ts +39 -0
- package/types/libs/core/validation.d.ts +56 -0
- package/types/libs/hephaestus/LayoutGenerator/basicLayoutGenerator.d.ts +10 -0
- package/types/libs/hephaestus/LayoutGenerator/footerContentGenerator.d.ts +4 -0
- package/types/libs/hephaestus/LayoutGenerator/headerContentGenerator.d.ts +20 -0
- package/types/libs/hephaestus/LayoutGenerator/wrapperContentGenerator.d.ts +1 -0
- package/types/libs/hephaestus/MenuGenerator/basicMenuGenerator.d.ts +14 -0
- package/types/libs/hephaestus/MenuGenerator/menuGenerator.d.ts +65 -0
- package/types/libs/hephaestus/auth/authState.d.ts +26 -0
- package/types/libs/hephaestus/auth/session.d.ts +26 -0
- package/types/libs/hephaestus/chartGenerator/chartGenerator.d.ts +91 -0
- package/types/libs/hephaestus/componentGenerator/componentGenerator.d.ts +222 -0
- package/types/libs/hephaestus/componentGenerator/themePicker.d.ts +24 -0
- package/types/libs/hephaestus/dialogGenerator/dialogGenerator.d.ts +120 -0
- package/types/libs/hephaestus/feedbackGenerator/feedbackGenerator.d.ts +86 -0
- package/types/libs/hephaestus/formGenerator/authForms.d.ts +122 -0
- package/types/libs/hephaestus/formGenerator/changePasswordFormGenerator.d.ts +6 -0
- package/types/libs/hephaestus/formGenerator/formBuilder.d.ts +113 -0
- package/types/libs/hephaestus/formGenerator/formUtils.d.ts +8 -0
- package/types/libs/hephaestus/formGenerator/loginFormGenerator.d.ts +11 -0
- package/types/libs/hephaestus/formGenerator/lostPasswordFormGenerator.d.ts +4 -0
- package/types/libs/hephaestus/formGenerator/registrationFormGenerator.d.ts +7 -0
- package/types/libs/hephaestus/hephaestus.d.ts +3 -0
- package/types/libs/hephaestus/inputGenerator/dropZoneGenerator.d.ts +48 -0
- package/types/libs/hephaestus/inputGenerator/inputGenerator.d.ts +185 -0
- package/types/libs/hephaestus/inputGenerator/richTextGenerator.d.ts +49 -0
- package/types/libs/hephaestus/modalGenerator/modalGenerator.d.ts +2 -0
- package/types/libs/hephaestus/navigationGenerator/navigationGenerator.d.ts +150 -0
- package/types/libs/hephaestus/router/matchRoute.d.ts +12 -0
- package/types/libs/hephaestus/router/router.d.ts +67 -0
- package/types/libs/hephaestus/tableGenerator/tableGenerator.d.ts +120 -0
- package/types/menu.d.ts +1 -0
- package/types/navigation.d.ts +1 -0
- package/types/res/themes/themes.d.ts +7 -0
- package/types/router.d.ts +1 -0
- package/types/sanitize.d.ts +1 -0
- package/types/session.d.ts +3 -0
- package/types/table.d.ts +1 -0
- package/types/testing.d.ts +27 -0
- package/types/theme-boot.d.ts +0 -0
- package/types/theme.d.ts +2 -0
- package/types/validation.d.ts +1 -0
- package/src/libs/crypto-js/LICENSE +0 -24
- package/src/libs/crypto-js/crypto-js.js +0 -6657
- package/src/libs/hephaestus/HTMLControlGenerator/LICENSE +0 -21
- package/src/libs/hephaestus/HTMLControlGenerator/src/HTMLControlGenerator.min.js +0 -5
- package/src/libs/hephaestus/HTMLElementGenerator/LICENSE +0 -21
- package/src/libs/js-cookie/LICENSE +0 -21
- package/src/libs/js-cookie/src/api.mjs +0 -103
- package/src/libs/js-cookie/src/assign.mjs +0 -10
- package/src/libs/js-cookie/src/converter.mjs +0 -14
- package/src/libs/libs.js +0 -13
package/docs/styling.md
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
# Styling reference
|
|
2
|
+
|
|
3
|
+
Generated by `npm run docs` from `src/res/themes/default/style.css` and `tokens.css`. Do not edit by hand.
|
|
4
|
+
|
|
5
|
+
All Athena UI rules are in the cascade layer `athena`: a plain rule of your application (not in a layer) always wins, whatever its specificity.
|
|
6
|
+
Start with the tokens, they cover most of what people want to change.
|
|
7
|
+
|
|
8
|
+
## Tokens
|
|
9
|
+
|
|
10
|
+
| Variable | Default (light) |
|
|
11
|
+
| --- | --- |
|
|
12
|
+
| `--athena-accent` | `#8e44ad` |
|
|
13
|
+
| `--athena-radius` | `2px` |
|
|
14
|
+
| `--athena-bg` | `#fff` |
|
|
15
|
+
| `--athena-fg` | `#1a1a1a` |
|
|
16
|
+
| `--athena-muted` | `#666` |
|
|
17
|
+
| `--athena-border` | `#000` |
|
|
18
|
+
| `--athena-line` | `#ccc` |
|
|
19
|
+
| `--athena-surface` | `#f2f2f2` |
|
|
20
|
+
| `--athena-surface-alt` | `#fafafa` |
|
|
21
|
+
| `--athena-hover` | `#e8f0fe` |
|
|
22
|
+
| `--athena-overlay` | `rgb(0 0 0 / 40%)` |
|
|
23
|
+
| `--athena-accent` | `#2f6db5` |
|
|
24
|
+
| `--athena-accent-fg` | `#fff` |
|
|
25
|
+
| `--athena-focus` | `#1b4f8f` |
|
|
26
|
+
| `--athena-danger` | `#c0392b` |
|
|
27
|
+
| `--athena-success` | `#1e8449` |
|
|
28
|
+
| `--athena-warning` | `#9a6700` |
|
|
29
|
+
| `--athena-info` | `#2471a3` |
|
|
30
|
+
| `--athena-shadow` | `0 4px 14px rgb(0 0 0 / 18%)` |
|
|
31
|
+
| `--athena-radius` | `6px` |
|
|
32
|
+
| `--athena-border-width` | `1px` |
|
|
33
|
+
| `--athena-space-1` | `4px` |
|
|
34
|
+
| `--athena-space-2` | `8px` |
|
|
35
|
+
| `--athena-space-3` | `12px` |
|
|
36
|
+
| `--athena-space-4` | `16px` |
|
|
37
|
+
| `--grid-gap` | `16px` |
|
|
38
|
+
| `--athena-focus-width` | `2px` |
|
|
39
|
+
| `--athena-dialog-small` | `360px` |
|
|
40
|
+
| `--athena-dialog-medium` | `480px` |
|
|
41
|
+
| `--athena-dialog-large` | `720px` |
|
|
42
|
+
| `--athena-row-height` | `36px` |
|
|
43
|
+
|
|
44
|
+
Dark colours: set `data-mode="dark"` on `<html>` (or let `createThemeManager` do it); without the attribute the system decides. Themes: see `appearance.css`.
|
|
45
|
+
|
|
46
|
+
## Components
|
|
47
|
+
|
|
48
|
+
| Group of rules | Classes | Variables it reads |
|
|
49
|
+
| --- | --- | --- |
|
|
50
|
+
| General | - | `--athena-accent` `--athena-bg` `--athena-border-width` `--athena-fg` `--athena-line` |
|
|
51
|
+
| Header, Wrapper, Footer | `.footer-container` `.header-container` `.wrapper-container` | - |
|
|
52
|
+
| Elements | `.container` `.default-cointainer-bordered` `.menu` | `--athena-border` |
|
|
53
|
+
| Modal (background) | `.modal` `.modal-content` | `--athena-bg` `--athena-border-width` `--athena-fg` `--athena-line` `--athena-overlay` |
|
|
54
|
+
| Modal close button | `.close` | `--athena-fg` `--athena-muted` |
|
|
55
|
+
| Buttons | `.athena-button` `.button-danger` `.button-large` `.button-link` `.button-secondary` `.button-small` | `--athena-accent` `--athena-accent-fg` `--athena-danger` `--athena-fg` `--athena-line` `--athena-radius` `--athena-surface` |
|
|
56
|
+
| Forms | `.athena-form` `.choice` `.choices` `.field` `.field-error` `.field-group` `.field-help` `.field-invalid` `.field-label` `.field-required` `.form-actions` `.form-message` `.form-message-error` `.form-message-success` | `--athena-border-width` `--athena-danger` `--athena-line` `--athena-muted` `--athena-radius` `--athena-space-1` `--athena-space-2` `--athena-space-3` `--athena-success` |
|
|
57
|
+
| Switch: a checkbox drawn as a toggle | `.switch` `.switch-track` | `--athena-accent` `--athena-line` |
|
|
58
|
+
| Spinner, alerts, toasts, progress | `.alert` `.alert-body` `.alert-close` `.alert-error` `.alert-info` `.alert-success` `.alert-warning` `.button-loading` `.progress-bar` `.progress-error` `.progress-fill` `.progress-indeterminate` `.progress-label` `.progress-success` `.progress-warning` `.spinner` `.spinner-large` `.spinner-small` `.toast` `.toast-container` | `--alert-color` `--athena-accent` `--athena-border-width` `--athena-danger` `--athena-fg` `--athena-info` `--athena-line` `--athena-muted` `--athena-radius` `--athena-shadow` `--athena-space-2` `--athena-space-3` `--athena-success` `--athena-surface` `--athena-surface-alt` `--athena-warning` `--progress-color` |
|
|
59
|
+
| Dialog: the native <dialog> element, opened with showModal() | `.dialog` | `--athena-bg` `--athena-border-width` `--athena-dialog-medium` `--athena-fg` `--athena-line` `--athena-overlay` `--athena-radius` `--athena-shadow` `--dialog-width` |
|
|
60
|
+
| The content fills the dialog up to its edge, so a click on the backdrop is a click on the dialog element itself | `.dialog-body` `.dialog-close` `.dialog-footer` `.dialog-full` `.dialog-inner` `.dialog-large` `.dialog-medium` `.dialog-small` `.dialog-title` | `--athena-dialog-large` `--athena-dialog-medium` `--athena-dialog-small` `--athena-muted` `--athena-space-2` |
|
|
61
|
+
| Tabs | `.tab` `.tab-active` `.tab-list` `.tab-panel` | `--athena-accent` `--athena-border-width` `--athena-fg` `--athena-line` |
|
|
62
|
+
| Breadcrumbs, pagination | `.breadcrumb-item` `.breadcrumb-list` `.page-button` `.page-current` `.pagination` | `--athena-accent` `--athena-accent-fg` `--athena-bg` `--athena-border-width` `--athena-fg` `--athena-line` `--athena-muted` `--athena-space-1` |
|
|
63
|
+
| Accordion: <details> and <summary> | `.accordion-header` `.accordion-icon` `.accordion-item` `.accordion-panel` `.sidebar-parent` | `--athena-accent` `--athena-border-width` `--athena-fg` `--athena-focus` `--athena-focus-width` `--athena-line` `--athena-surface` |
|
|
64
|
+
| Dropdown | `.dropdown` `.dropdown-divider` `.dropdown-item` `.dropdown-menu` `.dropdown-right` | `--athena-bg` `--athena-border-width` `--athena-fg` `--athena-hover` `--athena-line` `--athena-radius` `--athena-shadow` |
|
|
65
|
+
| Sidebar | `.accordion-icon` `.sidebar` `.sidebar-link` `.sidebar-list` `.sidebar-parent` `.sidebar-sublist` `.sidebar-toggle` | `--athena-accent` `--athena-accent-fg` `--athena-fg` `--athena-hover` `--athena-space-2` |
|
|
66
|
+
| Cards, sections, grid | `.athena-grid` `.card` `.card-body` `.card-footer` `.card-image` `.card-title` | `--athena-bg` `--athena-border-width` `--athena-line` `--athena-radius` `--athena-surface-alt` `--grid-columns` `--grid-gap` |
|
|
67
|
+
| Badge, avatar, stat | `.avatar` `.avatar-large` `.avatar-small` `.badge` `.badge-error` `.badge-info` `.badge-pill` `.badge-success` `.badge-warning` `.stat` `.stat-bad` `.stat-good` `.stat-label` `.stat-neutral` `.stat-value` | `--athena-accent` `--athena-accent-fg` `--athena-bg` `--athena-border-width` `--athena-danger` `--athena-fg` `--athena-info` `--athena-line` `--athena-muted` `--athena-radius` `--athena-success` `--athena-surface` `--athena-warning` |
|
|
68
|
+
| Tooltip | `.has-tooltip` `.tooltip-text` `.tooltip-wrap` | - |
|
|
69
|
+
| Combobox (autocomplete, multi select) and chips | `.chip` `.chip-remove` `.combobox` `.combobox-active` `.combobox-chips` `.combobox-empty` `.combobox-input` `.combobox-list` `.combobox-multiple` `.combobox-option` `.combobox-selected` | `--athena-accent` `--athena-accent-fg` `--athena-bg` `--athena-border-width` `--athena-hover` `--athena-line` `--athena-muted` `--athena-radius` `--athena-shadow` `--athena-space-1` |
|
|
70
|
+
| File upload | `.dropzone` `.dropzone-disabled` `.dropzone-input` `.dropzone-over` `.file-item` `.file-list` `.file-status` | `--athena-accent` `--athena-hover` `--athena-line` `--athena-muted` `--athena-radius` |
|
|
71
|
+
| Stepper | `.form-actions` `.stepper` `.stepper-current` `.stepper-done` `.stepper-number` `.stepper-step` `.stepper-steps` | `--athena-accent` `--athena-accent-fg` `--athena-fg` `--athena-line` `--athena-muted` `--athena-space-2` `--athena-success` |
|
|
72
|
+
| Tables | `.athena-table` `.athena-table-edit` `.athena-table-filter` `.athena-table-pager` `.athena-table-select` `.athena-table-wrapper` `.clickable` `.editable` `.selected` `.sortable` | `--athena-accent` `--athena-border-width` `--athena-hover` `--athena-line` `--athena-surface` `--athena-surface-alt` |
|
|
73
|
+
| Table options: density, wrapping, alignment | `.athena-align-center` `.athena-align-right` `.athena-table` `.athena-table-compact` `.athena-table-nowrap` `.athena-table-wrap` | `--athena-focus` `--athena-focus-width` |
|
|
74
|
+
| Charts | `.athena-chart` `.chart-axis` `.chart-bar` `.chart-grid` `.chart-legend` `.chart-slice` `.chart-tick` `.chart-title` | `--athena-bg` `--athena-fg` `--athena-line` `--athena-muted` |
|
|
75
|
+
| Responsive | `.athena-form` `.athena-grid` `.file-item` `.file-progress` `.modal` `.modal-content` `.progress-fill` `.progress-indeterminate` `.sidebar` `.sidebar-list` `.sidebar-open` `.sidebar-toggle` `.spinner` `.stepper-title` | - |
|
|
76
|
+
| Menu submenus | `.has-submenu` `.menu-parent` `.submenu` `.submenu-item` | `--athena-bg` `--athena-border-width` `--athena-hover` `--athena-line` `--athena-radius` `--athena-shadow` |
|
|
77
|
+
| Table: resizable columns, virtual scrolling | `.athena-col-resizer` `.athena-table` `.athena-table-resizable` `.athena-table-scroll` `.athena-table-spacer` `.athena-table-virtual` `.resizing` | `--athena-accent` `--athena-border-width` `--athena-line` `--athena-row-height` `--row-height` |
|
|
78
|
+
| Date range | `.daterange` `.daterange-part` | - |
|
|
79
|
+
| Rich text editor | `.richtext` `.rt-bold` `.rt-button` `.rt-disabled` `.rt-editor` `.rt-empty` `.rt-italic` `.rt-separator` `.rt-source-view` `.rt-strike` `.rt-toolbar` `.rt-underline` `.submenu` | `--athena-accent` `--athena-accent-fg` `--athena-bg` `--athena-border-width` `--athena-fg` `--athena-hover` `--athena-line` `--athena-muted` `--athena-radius` `--athena-surface` |
|
|
80
|
+
| Theme picker (generateThemePicker). The preview is drawn with the colours of the theme it shows. | `.theme-picker` `.theme-picker-description` `.theme-picker-group` `.theme-picker-option` `.theme-picker-options` `.theme-preview` `.theme-preview-bar` `.theme-preview-body` `.theme-preview-button` `.theme-preview-line` | `--athena-accent` `--athena-bg` `--athena-border-width` `--athena-fg` `--athena-focus` `--athena-focus-width` `--athena-line` `--athena-muted` `--athena-radius` `--athena-space-1` `--athena-space-3` `--athena-space-4` |
|
|
81
|
+
| Tables with a data source and row actions | `.athena-button` `.athena-chart` `.athena-chart-sparkline` `.athena-table` `.athena-table-actions` `.athena-table-error` `.athena-table-is-loading` `.athena-table-loading` `.athena-visually-hidden` `.chart-area` `.chart-bar` `.chart-data` `.chart-hidden` `.chart-legend-item` `.chart-line` `.chart-point` `.chart-ring` `.chart-slice` `.chart-swatch` `.chart-tooltip` `.chart-tooltip-box` `.chart-tooltip-text` `.is-off` `.is-visible` `.s1` `.s2` `.s3` `.s4` `.s5` `.s6` `.s7` `.s8` | `--athena-bg` `--athena-danger` `--athena-fg` `--athena-focus` `--athena-focus-width` `--athena-muted` `--series-1` `--series-2` `--series-3` `--series-4` `--series-5` `--series-6` `--series-7` `--series-8` |
|
|
82
|
+
| Menu (generateMenu): a bar, or tabs at the bottom of the screen with sheets for the groups | `.athena-menu` `.athena-menu-list` `.has-active` `.is-active` `.menu-avatar` `.menu-control` `.menu-icon` `.menu-item` `.menu-item-end` `.menu-sheet` | `--athena-accent` `--athena-accent-fg` `--athena-bg` `--athena-border-width` `--athena-fg` `--athena-focus` `--athena-focus-width` `--athena-hover` `--athena-line` `--athena-radius` `--athena-shadow` |
|
|
83
|
+
| Tabs at the bottom (layout "responsive" switches to it under 700px) | `.athena-menu-bottom-tabs` `.athena-menu-list` `.athena-menu-responsive` `.menu-control` `.menu-item` `.menu-item-end` `.menu-sheet` | `--athena-bg` `--athena-border-width` `--athena-line` `--athena-radius` |
|
|
84
|
+
| Menu: groups inside groups, and badges | `.athena-menu` `.athena-menu-bottom-tabs` `.athena-menu-responsive` `.athena-table-placeholder` `.athena-table-status` `.menu-badge` `.menu-badge-bad` `.menu-badge-info` `.menu-badge-ok` `.menu-badge-warn` `.menu-caret` `.menu-sheet` `.menu-sheet-nested` | `--athena-accent` `--athena-accent-fg` `--athena-danger` `--athena-info` `--athena-muted` `--athena-success` `--athena-warning` |
|
|
85
|
+
| Charts: pointer layer, zoom | `.athena-chart` `.chart-hit` `.chart-marker` `.chart-reset` `.chart-selection` | `--athena-accent` `--athena-focus` `--athena-focus-width` `--athena-muted` |
|
|
86
|
+
| Page header, facts, empty state, loading, stat tone and note | `.empty-icon` `.empty-message` `.empty-state` `.empty-title` `.fact` `.facts` `.facts-inline` `.is-bad` `.is-ok` `.is-warn` `.loading-state` `.page-actions` `.page-description` `.page-header` `.page-header-row` `.page-title` `.stat` `.stat-note` `.stat-value` | `--athena-danger` `--athena-fg` `--athena-muted` `--athena-space-2` `--athena-space-3` `--athena-success` `--athena-warning` |
|
package/package.json
CHANGED
|
@@ -1,23 +1,109 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "athena-ui-js",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "A small
|
|
3
|
+
"version": "2.0.0",
|
|
4
|
+
"description": "A small, dependency-free UI framework: forms, tables, charts, menus, dialogs, themes and a router, written as ES modules.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/athena-ui.js",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"test": "node --test tests/*.test.js",
|
|
9
|
-
"test:browser": "node tests/browser/run.mjs"
|
|
9
|
+
"test:browser": "node tests/browser/run.mjs",
|
|
10
|
+
"docs": "node scripts/styling-docs.mjs",
|
|
11
|
+
"types": "tsc -p tsconfig.types.json"
|
|
10
12
|
},
|
|
11
13
|
"exports": {
|
|
12
|
-
".":
|
|
13
|
-
|
|
14
|
+
".": {
|
|
15
|
+
"types": "./types/athena-ui.d.ts",
|
|
16
|
+
"default": "./src/athena-ui.js"
|
|
17
|
+
},
|
|
18
|
+
"./classic": {
|
|
19
|
+
"types": "./types/classic.d.ts",
|
|
20
|
+
"default": "./src/classic.js"
|
|
21
|
+
},
|
|
22
|
+
"./testing": {
|
|
23
|
+
"types": "./types/testing.d.ts",
|
|
24
|
+
"default": "./src/testing.js"
|
|
25
|
+
},
|
|
26
|
+
"./theme-boot.js": "./src/theme-boot.js",
|
|
27
|
+
"./table": {
|
|
28
|
+
"types": "./types/table.d.ts",
|
|
29
|
+
"default": "./src/table.js"
|
|
30
|
+
},
|
|
31
|
+
"./chart": {
|
|
32
|
+
"types": "./types/chart.d.ts",
|
|
33
|
+
"default": "./src/chart.js"
|
|
34
|
+
},
|
|
35
|
+
"./dialog": {
|
|
36
|
+
"types": "./types/dialog.d.ts",
|
|
37
|
+
"default": "./src/dialog.js"
|
|
38
|
+
},
|
|
39
|
+
"./menu": {
|
|
40
|
+
"types": "./types/menu.d.ts",
|
|
41
|
+
"default": "./src/menu.js"
|
|
42
|
+
},
|
|
43
|
+
"./navigation": {
|
|
44
|
+
"types": "./types/navigation.d.ts",
|
|
45
|
+
"default": "./src/navigation.js"
|
|
46
|
+
},
|
|
47
|
+
"./forms": {
|
|
48
|
+
"types": "./types/forms.d.ts",
|
|
49
|
+
"default": "./src/forms.js"
|
|
50
|
+
},
|
|
51
|
+
"./feedback": {
|
|
52
|
+
"types": "./types/feedback.d.ts",
|
|
53
|
+
"default": "./src/feedback.js"
|
|
54
|
+
},
|
|
55
|
+
"./components": {
|
|
56
|
+
"types": "./types/components.d.ts",
|
|
57
|
+
"default": "./src/components.js"
|
|
58
|
+
},
|
|
59
|
+
"./inputs": {
|
|
60
|
+
"types": "./types/inputs.d.ts",
|
|
61
|
+
"default": "./src/inputs.js"
|
|
62
|
+
},
|
|
63
|
+
"./router": {
|
|
64
|
+
"types": "./types/router.d.ts",
|
|
65
|
+
"default": "./src/router.js"
|
|
66
|
+
},
|
|
67
|
+
"./session": {
|
|
68
|
+
"types": "./types/session.d.ts",
|
|
69
|
+
"default": "./src/session.js"
|
|
70
|
+
},
|
|
71
|
+
"./theme": {
|
|
72
|
+
"types": "./types/theme.d.ts",
|
|
73
|
+
"default": "./src/theme.js"
|
|
74
|
+
},
|
|
75
|
+
"./i18n": {
|
|
76
|
+
"types": "./types/i18n.d.ts",
|
|
77
|
+
"default": "./src/i18n.js"
|
|
78
|
+
},
|
|
79
|
+
"./format": {
|
|
80
|
+
"types": "./types/format.d.ts",
|
|
81
|
+
"default": "./src/format.js"
|
|
82
|
+
},
|
|
83
|
+
"./validation": {
|
|
84
|
+
"types": "./types/validation.d.ts",
|
|
85
|
+
"default": "./src/validation.js"
|
|
86
|
+
},
|
|
87
|
+
"./sanitize": {
|
|
88
|
+
"types": "./types/sanitize.d.ts",
|
|
89
|
+
"default": "./src/sanitize.js"
|
|
90
|
+
},
|
|
91
|
+
"./csv": {
|
|
92
|
+
"types": "./types/csv.d.ts",
|
|
93
|
+
"default": "./src/csv.js"
|
|
94
|
+
},
|
|
95
|
+
"./dom": {
|
|
96
|
+
"types": "./types/dom.d.ts",
|
|
97
|
+
"default": "./src/dom.js"
|
|
98
|
+
},
|
|
99
|
+
"./controls": {
|
|
100
|
+
"types": "./types/controls.d.ts",
|
|
101
|
+
"default": "./src/controls.js"
|
|
102
|
+
},
|
|
14
103
|
"./themes/*": "./src/res/themes/*",
|
|
15
104
|
"./package.json": "./package.json"
|
|
16
105
|
},
|
|
17
106
|
"files": [
|
|
18
|
-
"src/athena-ui.js",
|
|
19
|
-
"src/testing.js",
|
|
20
|
-
"src/libs/libs.js",
|
|
21
107
|
"src/libs/config",
|
|
22
108
|
"src/libs/hephaestus/hephaestus.js",
|
|
23
109
|
"src/libs/hephaestus/LayoutGenerator",
|
|
@@ -34,22 +120,20 @@
|
|
|
34
120
|
"src/libs/hephaestus/chartGenerator",
|
|
35
121
|
"src/libs/hephaestus/tableGenerator",
|
|
36
122
|
"src/libs/hephaestus/modalGenerator",
|
|
37
|
-
"src/
|
|
38
|
-
"src
|
|
39
|
-
"src/
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
"src/
|
|
45
|
-
"src/
|
|
46
|
-
"
|
|
123
|
+
"src/res",
|
|
124
|
+
"src/*.js",
|
|
125
|
+
"!src/example.js",
|
|
126
|
+
"types",
|
|
127
|
+
"docs"
|
|
128
|
+
],
|
|
129
|
+
"sideEffects": [
|
|
130
|
+
"./src/classic.js",
|
|
131
|
+
"./src/theme-boot.js",
|
|
132
|
+
"*.css"
|
|
47
133
|
],
|
|
48
|
-
"sideEffects": true,
|
|
49
134
|
"keywords": [
|
|
50
135
|
"ui",
|
|
51
136
|
"framework",
|
|
52
|
-
"jquery",
|
|
53
137
|
"layout",
|
|
54
138
|
"menu",
|
|
55
139
|
"login-form",
|
|
@@ -67,9 +151,6 @@
|
|
|
67
151
|
"themes",
|
|
68
152
|
"es-modules"
|
|
69
153
|
],
|
|
70
|
-
"peerDependencies": {
|
|
71
|
-
"jquery": "^4.0.0"
|
|
72
|
-
},
|
|
73
154
|
"publishConfig": {
|
|
74
155
|
"access": "public"
|
|
75
156
|
},
|
|
@@ -82,5 +163,9 @@
|
|
|
82
163
|
"url": "https://github.com/csabatibortoth/athena-ui/issues"
|
|
83
164
|
},
|
|
84
165
|
"author": "Csaba Tóth (https://github.com/csabatibortoth)",
|
|
85
|
-
"license": "MIT"
|
|
166
|
+
"license": "MIT",
|
|
167
|
+
"devDependencies": {
|
|
168
|
+
"typescript": "^5.9.3"
|
|
169
|
+
},
|
|
170
|
+
"types": "./types/athena-ui.d.ts"
|
|
86
171
|
}
|
package/src/athena-ui.js
CHANGED
|
@@ -2,48 +2,21 @@
|
|
|
2
2
|
//Author: Csaba Tóth https://github.com/csabatibortoth/
|
|
3
3
|
//LICENCE: MIT
|
|
4
4
|
//Repository: https://github.com/csabatibortoth/athena-ui
|
|
5
|
-
//Version:
|
|
5
|
+
//Version: 2.0.0
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
// The whole API as ES module exports. There are no side effects: importing this file does not touch the page, does not load a script and does not
|
|
8
|
+
// put anything on globalThis. For pages that need globals use `athena-ui-js/classic`, and to download only what you use import from the entry points
|
|
9
|
+
// (`athena-ui-js/table`, `athena-ui-js/dialog`, ...).
|
|
8
10
|
|
|
9
11
|
import config, { applyConfig } from "./libs/config/config.js";
|
|
10
12
|
import { getAppConfig, setHooks } from "./libs/config/hooks.js";
|
|
11
|
-
import {
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import * as footer from "./libs/hephaestus/LayoutGenerator/footerContentGenerator.js";
|
|
16
|
-
import * as menu from "./libs/hephaestus/MenuGenerator/basicMenuGenerator.js";
|
|
17
|
-
import * as loginForm from "./libs/hephaestus/formGenerator/loginFormGenerator.js";
|
|
18
|
-
import * as registrationForm from "./libs/hephaestus/formGenerator/registrationFormGenerator.js";
|
|
19
|
-
import * as lostPasswordForm from "./libs/hephaestus/formGenerator/lostPasswordFormGenerator.js";
|
|
20
|
-
import * as chart from "./libs/hephaestus/chartGenerator/chartGenerator.js";
|
|
21
|
-
import * as table from "./libs/hephaestus/tableGenerator/tableGenerator.js";
|
|
22
|
-
import * as changePasswordForm from "./libs/hephaestus/formGenerator/changePasswordFormGenerator.js";
|
|
23
|
-
import * as formBuilder from "./libs/hephaestus/formGenerator/formBuilder.js";
|
|
24
|
-
import * as feedback from "./libs/hephaestus/feedbackGenerator/feedbackGenerator.js";
|
|
25
|
-
import * as dialog from "./libs/hephaestus/dialogGenerator/dialogGenerator.js";
|
|
26
|
-
import * as navigation from "./libs/hephaestus/navigationGenerator/navigationGenerator.js";
|
|
27
|
-
import * as components from "./libs/hephaestus/componentGenerator/componentGenerator.js";
|
|
28
|
-
import * as inputs from "./libs/hephaestus/inputGenerator/inputGenerator.js";
|
|
29
|
-
import * as dropZone from "./libs/hephaestus/inputGenerator/dropZoneGenerator.js";
|
|
30
|
-
import * as richText from "./libs/hephaestus/inputGenerator/richTextGenerator.js";
|
|
31
|
-
import * as sanitize from "./libs/core/sanitize.js";
|
|
32
|
-
import * as router from "./libs/hephaestus/router/router.js";
|
|
33
|
-
import * as session from "./libs/hephaestus/auth/session.js";
|
|
34
|
-
import * as i18n from "./libs/core/i18n.js";
|
|
35
|
-
import * as validation from "./libs/core/validation.js";
|
|
36
|
-
import * as csv from "./libs/core/csv.js";
|
|
37
|
-
import * as modal from "./libs/hephaestus/modalGenerator/modalGenerator.js";
|
|
38
|
-
import Cookies from "./libs/js-cookie/src/api.mjs";
|
|
39
|
-
import { HTMLElementGenerator } from "./libs/hephaestus/HTMLElementGenerator/src/HTMLElementGenerator.js";
|
|
40
|
-
|
|
41
|
-
if (typeof $ !== "function") {
|
|
42
|
-
throw new Error("Athena UI: jQuery has to be loaded before athena-ui.js");
|
|
43
|
-
}
|
|
13
|
+
import { loadScript, loadTheme } from "./libs/hephaestus/hephaestus.js";
|
|
14
|
+
import { generateBasicLayout, setLayoutRoot } from "./libs/hephaestus/LayoutGenerator/basicLayoutGenerator.js";
|
|
15
|
+
import { asHandle, resolveElement, uid } from "./libs/core/dom.js";
|
|
16
|
+
import { setLocale } from "./libs/core/i18n.js";
|
|
44
17
|
|
|
45
18
|
/**
|
|
46
|
-
* Loads the
|
|
19
|
+
* Loads the theme, waits for the page and generates the layout.
|
|
47
20
|
*
|
|
48
21
|
* @param {object} [options]
|
|
49
22
|
* @param {{id?: number, href?: string}} [options.theme] registered theme id or custom stylesheet
|
|
@@ -58,19 +31,54 @@ if (typeof $ !== "function") {
|
|
|
58
31
|
*/
|
|
59
32
|
export async function init(options = {}) {
|
|
60
33
|
applyConfig(getAppConfig(), options.config);
|
|
61
|
-
|
|
34
|
+
setLocale(config.locale);
|
|
62
35
|
setHooks(options);
|
|
63
36
|
|
|
64
37
|
await Promise.all([
|
|
65
|
-
|
|
38
|
+
config.customLoader ? loadScript(config.customLoader) : undefined,
|
|
66
39
|
loadTheme(options.theme ?? options.themes),
|
|
67
|
-
new Promise(resolve =>
|
|
40
|
+
new Promise(resolve => (document.readyState === "loading" ? document.addEventListener("DOMContentLoaded", resolve, { once: true }) : resolve()))
|
|
68
41
|
]);
|
|
69
42
|
|
|
70
|
-
|
|
43
|
+
generateBasicLayout();
|
|
71
44
|
return config;
|
|
72
45
|
}
|
|
73
46
|
|
|
47
|
+
/**
|
|
48
|
+
* Starts Athena UI inside an element of your page instead of the body, so it can be one part of a larger page (or of several apps).
|
|
49
|
+
* It does what init() does (settings, language, theme, hooks), and the layout (container, header, wrapper, footer) is generated into
|
|
50
|
+
* `root`. The parts follow the settings: `config: { generateHeader: false, generateFooter: false }` leaves only the wrapper, which is where
|
|
51
|
+
* the components go by default (the element with the id "wrapper"). One app per page: the parts have fixed ids.
|
|
52
|
+
*
|
|
53
|
+
* @param {object} options the options of init(), and
|
|
54
|
+
* @param {string|Element} options.root the element to build into (an element, an id or a selector)
|
|
55
|
+
* @returns {Promise<{element: HTMLElement, container: HTMLElement, header: HTMLElement|null, wrapper: HTMLElement|null, footer: HTMLElement|null,
|
|
56
|
+
* config: object, update: Function, destroy: Function}>}
|
|
57
|
+
*/
|
|
58
|
+
export async function createApp(options = {}) {
|
|
59
|
+
const root = resolveElement(options.root);
|
|
60
|
+
if (!root) throw new Error("Athena UI: createApp needs a root element (an element, an id or a selector)");
|
|
61
|
+
if (!root.id) root.id = uid("athena-app");
|
|
62
|
+
setLayoutRoot(root.id);
|
|
63
|
+
let effective;
|
|
64
|
+
try {
|
|
65
|
+
effective = await init(options);
|
|
66
|
+
} finally {
|
|
67
|
+
setLayoutRoot("");
|
|
68
|
+
}
|
|
69
|
+
return asHandle({
|
|
70
|
+
element: root,
|
|
71
|
+
container: document.getElementById("container"),
|
|
72
|
+
header: document.getElementById("header"),
|
|
73
|
+
wrapper: document.getElementById("wrapper"),
|
|
74
|
+
footer: document.getElementById("footer"),
|
|
75
|
+
config: effective,
|
|
76
|
+
destroy() {
|
|
77
|
+
document.getElementById("container")?.remove();
|
|
78
|
+
}
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
|
|
74
82
|
/**
|
|
75
83
|
* Switches the theme at runtime: { id } of a registered theme or { href } of a stylesheet.
|
|
76
84
|
* @returns {Promise<object>} the applied theme
|
|
@@ -79,51 +87,17 @@ export function setTheme(selected) {
|
|
|
79
87
|
return loadTheme(selected);
|
|
80
88
|
}
|
|
81
89
|
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
HTMLElementGenerator,
|
|
88
|
-
...layout,
|
|
89
|
-
...header,
|
|
90
|
-
...wrapper,
|
|
91
|
-
...footer,
|
|
92
|
-
...menu,
|
|
93
|
-
...loginForm,
|
|
94
|
-
...registrationForm,
|
|
95
|
-
...lostPasswordForm,
|
|
96
|
-
...changePasswordForm,
|
|
97
|
-
...formBuilder,
|
|
98
|
-
...feedback,
|
|
99
|
-
...dialog,
|
|
100
|
-
...navigation,
|
|
101
|
-
...components,
|
|
102
|
-
...inputs,
|
|
103
|
-
...dropZone,
|
|
104
|
-
...richText,
|
|
105
|
-
...sanitize,
|
|
106
|
-
...router,
|
|
107
|
-
...session,
|
|
108
|
-
...i18n,
|
|
109
|
-
...validation,
|
|
110
|
-
...csv,
|
|
111
|
-
setTheme,
|
|
112
|
-
...chart,
|
|
113
|
-
...table,
|
|
114
|
-
...modal
|
|
115
|
-
};
|
|
116
|
-
|
|
117
|
-
// Classic scripts (the customLoader, inline handlers) keep working: the whole API
|
|
118
|
-
// stays reachable as globals, like in the pre-module versions.
|
|
119
|
-
Object.assign(globalThis, AthenaUI, { AthenaUI });
|
|
120
|
-
|
|
121
|
-
export { config, loadScript, Cookies, HTMLElementGenerator };
|
|
90
|
+
export { config, loadScript };
|
|
91
|
+
export { default as Cookies } from "./libs/core/cookies.js";
|
|
92
|
+
export * from "./libs/core/elementGenerator.js";
|
|
93
|
+
export * from "./libs/core/controls.js";
|
|
94
|
+
export * from "./libs/core/hungarianControls.js";
|
|
122
95
|
export * from "./libs/hephaestus/LayoutGenerator/basicLayoutGenerator.js";
|
|
123
96
|
export * from "./libs/hephaestus/LayoutGenerator/headerContentGenerator.js";
|
|
124
97
|
export * from "./libs/hephaestus/LayoutGenerator/wrapperContentGenerator.js";
|
|
125
98
|
export * from "./libs/hephaestus/LayoutGenerator/footerContentGenerator.js";
|
|
126
99
|
export * from "./libs/hephaestus/MenuGenerator/basicMenuGenerator.js";
|
|
100
|
+
export * from "./libs/hephaestus/MenuGenerator/menuGenerator.js";
|
|
127
101
|
export * from "./libs/hephaestus/formGenerator/loginFormGenerator.js";
|
|
128
102
|
export * from "./libs/hephaestus/formGenerator/registrationFormGenerator.js";
|
|
129
103
|
export * from "./libs/hephaestus/formGenerator/lostPasswordFormGenerator.js";
|
|
@@ -131,6 +105,7 @@ export * from "./libs/hephaestus/chartGenerator/chartGenerator.js";
|
|
|
131
105
|
export * from "./libs/hephaestus/tableGenerator/tableGenerator.js";
|
|
132
106
|
export * from "./libs/hephaestus/formGenerator/changePasswordFormGenerator.js";
|
|
133
107
|
export * from "./libs/hephaestus/formGenerator/formBuilder.js";
|
|
108
|
+
export * from "./libs/hephaestus/formGenerator/authForms.js";
|
|
134
109
|
export * from "./libs/hephaestus/feedbackGenerator/feedbackGenerator.js";
|
|
135
110
|
export * from "./libs/hephaestus/dialogGenerator/dialogGenerator.js";
|
|
136
111
|
export * from "./libs/hephaestus/navigationGenerator/navigationGenerator.js";
|
|
@@ -138,11 +113,16 @@ export * from "./libs/hephaestus/componentGenerator/componentGenerator.js";
|
|
|
138
113
|
export * from "./libs/hephaestus/inputGenerator/inputGenerator.js";
|
|
139
114
|
export * from "./libs/hephaestus/inputGenerator/dropZoneGenerator.js";
|
|
140
115
|
export * from "./libs/hephaestus/inputGenerator/richTextGenerator.js";
|
|
116
|
+
export { el, setContent, resolveElement, asHandle, createSafeBuilder } from "./libs/core/dom.js";
|
|
141
117
|
export * from "./libs/core/sanitize.js";
|
|
142
118
|
export * from "./libs/hephaestus/router/router.js";
|
|
143
119
|
export * from "./libs/hephaestus/auth/session.js";
|
|
120
|
+
export * from "./libs/hephaestus/auth/authState.js";
|
|
144
121
|
export * from "./libs/core/i18n.js";
|
|
145
122
|
export * from "./libs/core/validation.js";
|
|
146
123
|
export * from "./libs/core/csv.js";
|
|
124
|
+
export * from "./libs/core/dateRange.js";
|
|
125
|
+
export * from "./libs/core/format.js";
|
|
147
126
|
export * from "./libs/hephaestus/modalGenerator/modalGenerator.js";
|
|
148
|
-
export
|
|
127
|
+
export * from "./libs/core/theme.js";
|
|
128
|
+
export * from "./libs/hephaestus/componentGenerator/themePicker.js";
|
package/src/chart.js
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
//chart entry of Athena UI: generateChart
|
|
2
|
+
//Import only what you use: `import { generateTable } from "athena-ui-js/chart"`.
|
|
3
|
+
//LICENCE: MIT
|
|
4
|
+
//Repository: https://github.com/csabatibortoth/athena-ui
|
|
5
|
+
|
|
6
|
+
export * from "./libs/hephaestus/chartGenerator/chartGenerator.js";
|
package/src/classic.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
//classic build of Athena UI: puts the whole API on globalThis (as window.generateTable, window.AthenaUI, ...)
|
|
2
|
+
//LICENCE: MIT
|
|
3
|
+
//Repository: https://github.com/csabatibortoth/athena-ui
|
|
4
|
+
//
|
|
5
|
+
// The ES module entry points have no side effects. This file is the opt-in for pages that use inline handlers or classic scripts:
|
|
6
|
+
//
|
|
7
|
+
// <script type="module" src="athena-ui/src/classic.js"></script>
|
|
8
|
+
|
|
9
|
+
import * as AthenaUI from "./athena-ui.js";
|
|
10
|
+
|
|
11
|
+
Object.assign(globalThis, AthenaUI, { AthenaUI });
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
//components entry of Athena UI: card, section, grid, badge, avatar, stat, link, tooltip, page header, facts, empty state, loading
|
|
2
|
+
//Import only what you use: `import { generateTable } from "athena-ui-js/components"`.
|
|
3
|
+
//LICENCE: MIT
|
|
4
|
+
//Repository: https://github.com/csabatibortoth/athena-ui
|
|
5
|
+
|
|
6
|
+
export * from "./libs/hephaestus/componentGenerator/componentGenerator.js";
|
package/src/controls.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
//controls entry of Athena UI: HTMLElementGenerator, HTMLControlGenerator, generateControl, registerHungarianInputControls
|
|
2
|
+
//Import only what you use: `import { generateTable } from "athena-ui-js/controls"`.
|
|
3
|
+
//LICENCE: MIT
|
|
4
|
+
//Repository: https://github.com/csabatibortoth/athena-ui
|
|
5
|
+
|
|
6
|
+
export * from "./libs/core/elementGenerator.js";
|
|
7
|
+
export * from "./libs/core/controls.js";
|
|
8
|
+
export * from "./libs/core/hungarianControls.js";
|
package/src/csv.js
ADDED
package/src/dialog.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
//dialog entry of Athena UI: showDialog, showConfirm, showFormDialog, alert / confirm / prompt, openModal, closeModal
|
|
2
|
+
//Import only what you use: `import { generateTable } from "athena-ui-js/dialog"`.
|
|
3
|
+
//LICENCE: MIT
|
|
4
|
+
//Repository: https://github.com/csabatibortoth/athena-ui
|
|
5
|
+
|
|
6
|
+
export * from "./libs/hephaestus/dialogGenerator/dialogGenerator.js";
|
|
7
|
+
export * from "./libs/hephaestus/modalGenerator/modalGenerator.js";
|
package/src/dom.js
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
//dom entry of Athena UI: el, setContent, resolveElement, asHandle, createSafeBuilder
|
|
2
|
+
//Import only what you use: `import { generateTable } from "athena-ui-js/dom"`.
|
|
3
|
+
//LICENCE: MIT
|
|
4
|
+
//Repository: https://github.com/csabatibortoth/athena-ui
|
|
5
|
+
|
|
6
|
+
export { el, setContent, resolveElement, asHandle, createSafeBuilder } from "./libs/core/dom.js";
|
package/src/feedback.js
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
//feedback entry of Athena UI: toasts, alerts, spinner, progress, copyToClipboard
|
|
2
|
+
//Import only what you use: `import { generateTable } from "athena-ui-js/feedback"`.
|
|
3
|
+
//LICENCE: MIT
|
|
4
|
+
//Repository: https://github.com/csabatibortoth/athena-ui
|
|
5
|
+
|
|
6
|
+
export * from "./libs/hephaestus/feedbackGenerator/feedbackGenerator.js";
|
package/src/format.js
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
//format entry of Athena UI: formatBytes, formatNumber, formatDuration, formatRelativeTime, formatDate
|
|
2
|
+
//Import only what you use: `import { generateTable } from "athena-ui-js/format"`.
|
|
3
|
+
//LICENCE: MIT
|
|
4
|
+
//Repository: https://github.com/csabatibortoth/athena-ui
|
|
5
|
+
|
|
6
|
+
export * from "./libs/core/format.js";
|
package/src/forms.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
//forms entry of Athena UI: generateForm, generateField, generateButton, the sign in / sign up / password forms
|
|
2
|
+
//Import only what you use: `import { generateTable } from "athena-ui-js/forms"`.
|
|
3
|
+
//LICENCE: MIT
|
|
4
|
+
//Repository: https://github.com/csabatibortoth/athena-ui
|
|
5
|
+
|
|
6
|
+
export * from "./libs/hephaestus/formGenerator/formBuilder.js";
|
|
7
|
+
export * from "./libs/hephaestus/formGenerator/authForms.js";
|
package/src/i18n.js
ADDED
package/src/inputs.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
//inputs entry of Athena UI: autocomplete, multi select, file upload, drop zone, stepper, date and time ranges, rich text, WYSIWYG
|
|
2
|
+
//Import only what you use: `import { generateTable } from "athena-ui-js/inputs"`.
|
|
3
|
+
//LICENCE: MIT
|
|
4
|
+
//Repository: https://github.com/csabatibortoth/athena-ui
|
|
5
|
+
|
|
6
|
+
export * from "./libs/hephaestus/inputGenerator/inputGenerator.js";
|
|
7
|
+
export * from "./libs/hephaestus/inputGenerator/dropZoneGenerator.js";
|
|
8
|
+
export * from "./libs/hephaestus/inputGenerator/richTextGenerator.js";
|
|
9
|
+
export * from "./libs/core/dateRange.js";
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
export const BORDERED_CLASS = "default-cointainer-bordered";
|
|
7
7
|
|
|
8
8
|
export const defaults = Object.freeze({
|
|
9
|
-
version: "
|
|
9
|
+
version: "2.0.0",
|
|
10
10
|
container_class: "container",
|
|
11
11
|
header_class: "header-container",
|
|
12
12
|
header_menu_class: "header-menu menu",
|
|
@@ -29,7 +29,6 @@ export const defaults = Object.freeze({
|
|
|
29
29
|
lost_password_enabled: false,
|
|
30
30
|
change_password_enabled: false,
|
|
31
31
|
login_remember_me: false,
|
|
32
|
-
enable_encrypt_password: false,
|
|
33
32
|
|
|
34
33
|
header_title_text: "Athena UI",
|
|
35
34
|
header_img_url: undefined,
|