@aquera/nile-elements 0.1.50-beta-1.0 → 0.1.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/demo/index.html +33 -150
- package/dist/axe.min-2720cd56.esm.js +1 -0
- package/dist/axe.min-69d47269.cjs.js +2 -0
- package/dist/axe.min-69d47269.cjs.js.map +1 -0
- package/dist/{fixture-372df3b0.esm.js → fixture-e7023246.esm.js} +1 -1
- package/dist/{fixture-161dee0b.cjs.js → fixture-fe6c932e.cjs.js} +2 -2
- package/dist/fixture-fe6c932e.cjs.js.map +1 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.js +10339 -0
- package/dist/internal/form.cjs.js +1 -1
- package/dist/internal/form.cjs.js.map +1 -1
- package/dist/internal/form.esm.js +1 -1
- package/dist/nile-accordion/nile-accordian.test.cjs.js +1 -1
- package/dist/nile-accordion/nile-accordian.test.esm.js +1 -1
- package/dist/nile-auto-complete/index.cjs.js +1 -1
- package/dist/nile-auto-complete/index.esm.js +1 -1
- package/dist/nile-auto-complete/nile-auto-complete.cjs.js +17 -1
- package/dist/nile-auto-complete/nile-auto-complete.cjs.js.map +1 -1
- package/dist/nile-auto-complete/nile-auto-complete.esm.js +29 -8
- package/dist/nile-auto-complete/nile-auto-complete.test.cjs.js +1 -1
- package/dist/nile-auto-complete/nile-auto-complete.test.cjs.js.map +1 -1
- package/dist/nile-auto-complete/nile-auto-complete.test.esm.js +1 -1
- package/dist/nile-avatar/nile-avatar.test.cjs.js +1 -1
- package/dist/nile-avatar/nile-avatar.test.esm.js +1 -1
- package/dist/nile-badge/nile-badge.test.cjs.js +1 -1
- package/dist/nile-badge/nile-badge.test.esm.js +1 -1
- package/dist/nile-button/nile-button.test.cjs.js +1 -1
- package/dist/nile-button/nile-button.test.esm.js +1 -1
- package/dist/nile-button-toggle-group/nile-button-toggle-group.test.cjs.js +1 -1
- package/dist/nile-button-toggle-group/nile-button-toggle-group.test.esm.js +1 -1
- package/dist/nile-calendar/nile-calendar.test.cjs.js +1 -1
- package/dist/nile-calendar/nile-calendar.test.cjs.js.map +1 -1
- package/dist/nile-calendar/nile-calendar.test.esm.js +1 -1
- package/dist/nile-card/nile-card.test.cjs.js +1 -1
- package/dist/nile-card/nile-card.test.esm.js +1 -1
- package/dist/nile-checkbox/nile-checkbox.test.cjs.js +1 -1
- package/dist/nile-checkbox/nile-checkbox.test.esm.js +1 -1
- package/dist/nile-chip/nile-chip.cjs.js +1 -1
- package/dist/nile-chip/nile-chip.cjs.js.map +1 -1
- package/dist/nile-chip/nile-chip.esm.js +1 -0
- package/dist/nile-chip/nile-chip.test.cjs.js +1 -1
- package/dist/nile-chip/nile-chip.test.cjs.js.map +1 -1
- package/dist/nile-chip/nile-chip.test.esm.js +1 -1
- package/dist/nile-dialog/nile-dialog.test.cjs.js +1 -1
- package/dist/nile-dialog/nile-dialog.test.esm.js +1 -1
- package/dist/nile-drawer/nile-drawer.test.cjs.js +1 -1
- package/dist/nile-drawer/nile-drawer.test.esm.js +1 -1
- package/dist/nile-dropdown/nile-dropdown.test.cjs.js +1 -1
- package/dist/nile-dropdown/nile-dropdown.test.esm.js +1 -1
- package/dist/nile-empty-state/nile-empty-state.test.cjs.js +1 -1
- package/dist/nile-empty-state/nile-empty-state.test.esm.js +1 -1
- package/dist/nile-error-message/nile-error-message.test.cjs.js +1 -1
- package/dist/nile-error-message/nile-error-message.test.esm.js +1 -1
- package/dist/nile-filter-chip/nile-filter-chip.test.cjs.js +1 -1
- package/dist/nile-filter-chip/nile-filter-chip.test.esm.js +1 -1
- package/dist/nile-form-group/nile-form-group.test.cjs.js +1 -1
- package/dist/nile-form-group/nile-form-group.test.esm.js +1 -1
- package/dist/nile-form-help-text/nile-form-help-text.test.cjs.js +1 -1
- package/dist/nile-form-help-text/nile-form-help-text.test.esm.js +1 -1
- package/dist/nile-hero/nile-hero.test.cjs.js +1 -1
- package/dist/nile-hero/nile-hero.test.esm.js +1 -1
- package/dist/nile-icon/nile-icon.test.cjs.js +1 -1
- package/dist/nile-icon/nile-icon.test.esm.js +1 -1
- package/dist/nile-input/nile-input.test.cjs.js +1 -1
- package/dist/nile-input/nile-input.test.esm.js +1 -1
- package/dist/nile-link/nile-link.test.cjs.js +1 -1
- package/dist/nile-link/nile-link.test.esm.js +1 -1
- package/dist/nile-loader/nile-loader.test.cjs.js +1 -1
- package/dist/nile-loader/nile-loader.test.esm.js +1 -1
- package/dist/nile-option/nile-option.cjs.js +1 -1
- package/dist/nile-option/nile-option.cjs.js.map +1 -1
- package/dist/nile-option/nile-option.css.cjs.js +1 -1
- package/dist/nile-option/nile-option.css.cjs.js.map +1 -1
- package/dist/nile-option/nile-option.css.esm.js +1 -1
- package/dist/nile-option/nile-option.esm.js +2 -2
- package/dist/nile-pagination/nile-pagination.cjs.js +1 -1
- package/dist/nile-pagination/nile-pagination.cjs.js.map +1 -1
- package/dist/nile-pagination/nile-pagination.css.cjs.js +1 -1
- package/dist/nile-pagination/nile-pagination.css.cjs.js.map +1 -1
- package/dist/nile-pagination/nile-pagination.css.esm.js +152 -39
- package/dist/nile-pagination/nile-pagination.esm.js +118 -29
- package/dist/nile-popover/nile-popover.test.cjs.js +1 -1
- package/dist/nile-popover/nile-popover.test.esm.js +1 -1
- package/dist/nile-popup/nile-popup.test.cjs.js +1 -1
- package/dist/nile-popup/nile-popup.test.esm.js +1 -1
- package/dist/nile-progress-bar/nile-progress-bar.test.cjs.js +1 -1
- package/dist/nile-progress-bar/nile-progress-bar.test.esm.js +1 -1
- package/dist/nile-radio/nile-radio.test.cjs.js +1 -1
- package/dist/nile-radio/nile-radio.test.esm.js +1 -1
- package/dist/nile-radio-group/nile-radio-group.test.cjs.js +1 -1
- package/dist/nile-radio-group/nile-radio-group.test.esm.js +1 -1
- package/dist/nile-select/index.cjs.js +1 -1
- package/dist/nile-select/index.esm.js +1 -1
- package/dist/nile-select/nile-select.cjs.js +1 -1
- package/dist/nile-select/nile-select.cjs.js.map +1 -1
- package/dist/nile-select/nile-select.esm.js +2 -2
- package/dist/nile-select/nile-select.test.cjs.js +1 -1
- package/dist/nile-select/nile-select.test.cjs.js.map +1 -1
- package/dist/nile-select/nile-select.test.esm.js +2 -2
- package/dist/nile-slide-toggle/nile-slide-toggle.test.cjs.js +1 -1
- package/dist/nile-slide-toggle/nile-slide-toggle.test.esm.js +1 -1
- package/dist/nile-tab-group/nile-tab-group.test.cjs.js +1 -1
- package/dist/nile-tab-group/nile-tab-group.test.esm.js +1 -1
- package/dist/nile-textarea/nile-textarea.test.cjs.js +1 -1
- package/dist/nile-textarea/nile-textarea.test.esm.js +1 -1
- package/dist/src/index.d.ts +0 -1
- package/dist/src/index.js +0 -1
- package/dist/src/index.js.map +1 -1
- package/dist/src/internal/form.js +2 -2
- package/dist/src/internal/form.js.map +1 -1
- package/dist/src/nile-chip/nile-chip.js +1 -0
- package/dist/src/nile-chip/nile-chip.js.map +1 -1
- package/dist/src/nile-option/nile-option.css.js +1 -1
- package/dist/src/nile-option/nile-option.css.js.map +1 -1
- package/dist/src/nile-option/nile-option.d.ts +1 -5
- package/dist/src/nile-option/nile-option.js +6 -21
- package/dist/src/nile-option/nile-option.js.map +1 -1
- package/dist/src/nile-pagination/nile-pagination.css.js +151 -38
- package/dist/src/nile-pagination/nile-pagination.css.js.map +1 -1
- package/dist/src/nile-pagination/nile-pagination.d.ts +3 -0
- package/dist/src/nile-pagination/nile-pagination.js +167 -40
- package/dist/src/nile-pagination/nile-pagination.js.map +1 -1
- package/dist/src/nile-select/nile-select.d.ts +2 -11
- package/dist/src/nile-select/nile-select.js +18 -37
- package/dist/src/nile-select/nile-select.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -1
- package/rollup.config.js +27 -39
- package/src/index.ts +1 -3
- package/src/internal/form.ts +2 -2
- package/src/nile-chip/nile-chip.ts +1 -0
- package/src/nile-option/nile-option.css.ts +1 -1
- package/src/nile-option/nile-option.ts +3 -17
- package/src/nile-pagination/nile-pagination.css.ts +151 -38
- package/src/nile-pagination/nile-pagination.ts +188 -46
- package/src/nile-select/nile-select.ts +9 -35
- package/vscode-html-custom-data.json +3 -230
- package/dist/axe.min-2b379f29.cjs.js +0 -12
- package/dist/axe.min-2b379f29.cjs.js.map +0 -1
- package/dist/axe.min-c2cd8733.esm.js +0 -12
- package/dist/fixture-161dee0b.cjs.js.map +0 -1
- package/dist/nile-select/virtual-scroll-helper.cjs.js +0 -2
- package/dist/nile-select/virtual-scroll-helper.cjs.js.map +0 -1
- package/dist/nile-select/virtual-scroll-helper.esm.js +0 -38
- package/dist/nile-virtual-select/index.cjs.js +0 -2
- package/dist/nile-virtual-select/index.cjs.js.map +0 -1
- package/dist/nile-virtual-select/index.esm.js +0 -1
- package/dist/nile-virtual-select/nile-virtual-select.cjs.js +0 -2
- package/dist/nile-virtual-select/nile-virtual-select.cjs.js.map +0 -1
- package/dist/nile-virtual-select/nile-virtual-select.css.cjs.js +0 -2
- package/dist/nile-virtual-select/nile-virtual-select.css.cjs.js.map +0 -1
- package/dist/nile-virtual-select/nile-virtual-select.css.esm.js +0 -467
- package/dist/nile-virtual-select/nile-virtual-select.esm.js +0 -227
- package/dist/nile-virtual-select/nile-virtual-select.test.cjs.js +0 -2
- package/dist/nile-virtual-select/nile-virtual-select.test.cjs.js.map +0 -1
- package/dist/nile-virtual-select/nile-virtual-select.test.esm.js +0 -49
- package/dist/nile-virtual-select/renderer.cjs.js +0 -2
- package/dist/nile-virtual-select/renderer.cjs.js.map +0 -1
- package/dist/nile-virtual-select/renderer.esm.js +0 -18
- package/dist/nile-virtual-select/search-manager.cjs.js +0 -2
- package/dist/nile-virtual-select/search-manager.cjs.js.map +0 -1
- package/dist/nile-virtual-select/search-manager.esm.js +0 -1
- package/dist/nile-virtual-select/selection-manager.cjs.js +0 -2
- package/dist/nile-virtual-select/selection-manager.cjs.js.map +0 -1
- package/dist/nile-virtual-select/selection-manager.esm.js +0 -1
- package/dist/nile-virtual-select/types.cjs.js +0 -2
- package/dist/nile-virtual-select/types.cjs.js.map +0 -1
- package/dist/nile-virtual-select/types.esm.js +0 -1
- package/dist/src/nile-select/virtual-scroll-helper.d.ts +0 -9
- package/dist/src/nile-select/virtual-scroll-helper.js +0 -51
- package/dist/src/nile-select/virtual-scroll-helper.js.map +0 -1
- package/dist/src/nile-virtual-select/index.d.ts +0 -1
- package/dist/src/nile-virtual-select/index.js +0 -2
- package/dist/src/nile-virtual-select/index.js.map +0 -1
- package/dist/src/nile-virtual-select/nile-virtual-select.css.d.ts +0 -12
- package/dist/src/nile-virtual-select/nile-virtual-select.css.js +0 -479
- package/dist/src/nile-virtual-select/nile-virtual-select.css.js.map +0 -1
- package/dist/src/nile-virtual-select/nile-virtual-select.d.ts +0 -263
- package/dist/src/nile-virtual-select/nile-virtual-select.js +0 -1183
- package/dist/src/nile-virtual-select/nile-virtual-select.js.map +0 -1
- package/dist/src/nile-virtual-select/nile-virtual-select.test.d.ts +0 -7
- package/dist/src/nile-virtual-select/nile-virtual-select.test.js +0 -341
- package/dist/src/nile-virtual-select/nile-virtual-select.test.js.map +0 -1
- package/dist/src/nile-virtual-select/renderer.d.ts +0 -11
- package/dist/src/nile-virtual-select/renderer.js +0 -51
- package/dist/src/nile-virtual-select/renderer.js.map +0 -1
- package/dist/src/nile-virtual-select/search-manager.d.ts +0 -12
- package/dist/src/nile-virtual-select/search-manager.js +0 -40
- package/dist/src/nile-virtual-select/search-manager.js.map +0 -1
- package/dist/src/nile-virtual-select/selection-manager.d.ts +0 -12
- package/dist/src/nile-virtual-select/selection-manager.js +0 -64
- package/dist/src/nile-virtual-select/selection-manager.js.map +0 -1
- package/dist/src/nile-virtual-select/types.d.ts +0 -50
- package/dist/src/nile-virtual-select/types.js +0 -8
- package/dist/src/nile-virtual-select/types.js.map +0 -1
- package/dist/virtualize-a4a40d96.esm.js +0 -22
- package/dist/virtualize-b6a2fbe0.cjs.js +0 -18
- package/dist/virtualize-b6a2fbe0.cjs.js.map +0 -1
- package/src/nile-select/virtual-scroll-helper.ts +0 -56
- package/src/nile-virtual-select/index.ts +0 -1
- package/src/nile-virtual-select/nile-virtual-select.css.ts +0 -481
- package/src/nile-virtual-select/nile-virtual-select.test.ts +0 -414
- package/src/nile-virtual-select/nile-virtual-select.ts +0 -1268
- package/src/nile-virtual-select/renderer.ts +0 -73
- package/src/nile-virtual-select/search-manager.ts +0 -50
- package/src/nile-virtual-select/selection-manager.ts +0 -75
- package/src/nile-virtual-select/types.ts +0 -54
package/package.json
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
"description": "Webcomponent nile-elements following open-wc recommendations",
|
4
4
|
"license": "MIT",
|
5
5
|
"author": "nile-elements",
|
6
|
-
"version": "0.1.50
|
6
|
+
"version": "0.1.50",
|
7
7
|
"main": "dist/src/index.js",
|
8
8
|
"type": "module",
|
9
9
|
"module": "dist/src/index.js",
|
@@ -191,3 +191,4 @@
|
|
191
191
|
]
|
192
192
|
}
|
193
193
|
}
|
194
|
+
|
package/rollup.config.js
CHANGED
@@ -18,14 +18,9 @@ export default [
|
|
18
18
|
{
|
19
19
|
input: Object.fromEntries(
|
20
20
|
glob.sync('src/**/*.ts').map(file => [
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
'src',
|
25
|
-
file.slice(0, file.length - path.extname(file).length)
|
26
|
-
),
|
27
|
-
// This expands the relative paths to absolute paths, so e.g.
|
28
|
-
// src/nested/foo becomes /project/src/nested/foo.js
|
21
|
+
path
|
22
|
+
.relative('src', file)
|
23
|
+
.slice(0, -path.extname(file).length),
|
29
24
|
fileURLToPath(new URL(file, import.meta.url)),
|
30
25
|
])
|
31
26
|
),
|
@@ -61,6 +56,7 @@ export default [
|
|
61
56
|
],
|
62
57
|
},
|
63
58
|
],
|
59
|
+
preserveEntrySignatures: false,
|
64
60
|
onwarn(warning) {
|
65
61
|
if (warning.code !== 'THIS_IS_UNDEFINED') {
|
66
62
|
console.error(`(!) ${warning.message}`);
|
@@ -74,6 +70,7 @@ export default [
|
|
74
70
|
'process.env.LIT_DEV_MODE': JSON.stringify('false'),
|
75
71
|
}),
|
76
72
|
resolve(),
|
73
|
+
commonjs(),
|
77
74
|
terser({
|
78
75
|
ecma: 2017,
|
79
76
|
module: true,
|
@@ -87,35 +84,26 @@ export default [
|
|
87
84
|
styles(),
|
88
85
|
summary(),
|
89
86
|
],
|
90
|
-
preserveEntrySignatures: false,
|
91
87
|
},
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
// },
|
115
|
-
// }),
|
116
|
-
// styles(),
|
117
|
-
// summary(),
|
118
|
-
// commonjs()
|
119
|
-
// ],
|
120
|
-
// },
|
121
|
-
];
|
88
|
+
{
|
89
|
+
input: 'src/index.ts',
|
90
|
+
output: {
|
91
|
+
file: 'dist/index.js',
|
92
|
+
format: 'es',
|
93
|
+
sourcemap: false,
|
94
|
+
inlineDynamicImports: true,
|
95
|
+
},
|
96
|
+
|
97
|
+
external: [],
|
98
|
+
plugins: [
|
99
|
+
resolve(),
|
100
|
+
commonjs(),
|
101
|
+
typescript({
|
102
|
+
tsconfig: './tsconfig.json',
|
103
|
+
declaration: true,
|
104
|
+
declarationDir: 'dist/types',
|
105
|
+
}),
|
106
|
+
terser(),
|
107
|
+
],
|
108
|
+
},
|
109
|
+
];
|
package/src/index.ts
CHANGED
@@ -16,7 +16,6 @@ export { NileLoader } from './nile-loader';
|
|
16
16
|
export { NileProgressBar } from './nile-progress-bar';
|
17
17
|
export { NileSpinner } from './nile-spinner';
|
18
18
|
export { NileSelect } from './nile-select';
|
19
|
-
export { NileVirtualSelect } from './nile-virtual-select';
|
20
19
|
export { NileOption } from './nile-option';
|
21
20
|
export { NileTag } from './nile-tag';
|
22
21
|
export { NileIconButton } from './nile-icon-button';
|
@@ -77,6 +76,5 @@ export { NileSectionMessage } from './nile-section-message';
|
|
77
76
|
export { NileToolbar } from './nile-toolbar';
|
78
77
|
export { NileInlineEdit } from './nile-inline-edit';
|
79
78
|
export { NileTable } from './nile-table';
|
80
|
-
|
81
79
|
export { NileFilterChip } from './nile-filter-chip';
|
82
|
-
export {
|
80
|
+
export {NilePagination } from './nile-pagination';
|
package/src/internal/form.ts
CHANGED
@@ -89,7 +89,7 @@ export class FormControlController implements ReactiveController {
|
|
89
89
|
}
|
90
90
|
|
91
91
|
hostConnected() {
|
92
|
-
const form = this.options
|
92
|
+
const form = this.options.form(this.host);
|
93
93
|
|
94
94
|
if (form) {
|
95
95
|
this.attachForm(form);
|
@@ -97,7 +97,7 @@ export class FormControlController implements ReactiveController {
|
|
97
97
|
|
98
98
|
// Listen for interactions
|
99
99
|
interactions.set(this.host, []);
|
100
|
-
this.options
|
100
|
+
this.options.assumeInteractionOn.forEach(event => {
|
101
101
|
this.host.addEventListener(event, this.handleInteraction);
|
102
102
|
});
|
103
103
|
}
|
@@ -49,6 +49,7 @@ export class NileOption extends NileElement {
|
|
49
49
|
@query('.option__label') defaultSlot: HTMLSlotElement;
|
50
50
|
|
51
51
|
@state() current = false; // the user has keyed into the option, but hasn't selected it yet (shows a highlight)
|
52
|
+
@state() selected = false; // the option is selected and has aria-selected="true"
|
52
53
|
@state() hasHover = false; // we need this because Safari doesn't honor :hover styles while dragging
|
53
54
|
@state() hidden = false; // the option is hidden
|
54
55
|
@state() isMultipleSelect = false;
|
@@ -65,19 +66,13 @@ export class NileOption extends NileElement {
|
|
65
66
|
/** Draws the option in a disabled state, preventing selection. */
|
66
67
|
@property({ type: Boolean, reflect: true }) disabled = false;
|
67
68
|
|
68
|
-
/** Forces the option to display in multiple select mode with checkboxes. */
|
69
|
-
@property({ type: Boolean, reflect: true }) multiple = false;
|
70
|
-
|
71
|
-
/** Indicates whether the option is selected. */
|
72
|
-
@property({ type: Boolean, reflect: true }) selected = false;
|
73
|
-
|
74
69
|
connectedCallback() {
|
75
70
|
super.connectedCallback();
|
76
71
|
this.setAttribute('role', 'option');
|
77
72
|
this.setAttribute('aria-selected', 'false');
|
78
73
|
|
79
|
-
// Find the closest parent 'nile-select'
|
80
|
-
const parentSelect = this.closest('nile-select')
|
74
|
+
// Find the closest parent 'nile-select' element
|
75
|
+
const parentSelect = this.closest('nile-select');
|
81
76
|
|
82
77
|
// Check if the parent has the 'multiple' attribute
|
83
78
|
if (parentSelect && parentSelect.hasAttribute('multiple')) {
|
@@ -89,10 +84,6 @@ export class NileOption extends NileElement {
|
|
89
84
|
this.isMultipleSelect = Boolean(multipleValue);
|
90
85
|
}
|
91
86
|
}
|
92
|
-
|
93
|
-
if (this.multiple) {
|
94
|
-
this.isMultipleSelect = true;
|
95
|
-
}
|
96
87
|
}
|
97
88
|
|
98
89
|
protected updated(_changedProperties: PropertyValues): void {
|
@@ -135,11 +126,6 @@ export class NileOption extends NileElement {
|
|
135
126
|
this.setAttribute('aria-selected', this.selected ? 'true' : 'false');
|
136
127
|
}
|
137
128
|
|
138
|
-
@watch('multiple')
|
139
|
-
handleMultipleChange() {
|
140
|
-
this.isMultipleSelect = this.multiple;
|
141
|
-
}
|
142
|
-
|
143
129
|
@watch('value')
|
144
130
|
handleValueChange() {
|
145
131
|
// Ensure the value is a string. This ensures the next line doesn't error and allows framework users to pass numbers
|
@@ -18,14 +18,10 @@ export const styles = css`
|
|
18
18
|
display: flex;
|
19
19
|
align-items: center;
|
20
20
|
justify-content: space-between;
|
21
|
-
padding: var(--nile-spacing-spacing-md) var(--nile-spacing-spacing-lg);
|
22
|
-
}
|
23
|
-
|
24
|
-
.pagination-wrapper.v2 {
|
25
|
-
justify-content: flex-start;
|
26
|
-
gap: var(--nile-spacing-spacing-lg);
|
21
|
+
padding: var(--nile-spacing-spacing-md) var(--nile-spacing-spacing-lg) ;
|
27
22
|
}
|
28
23
|
|
24
|
+
|
29
25
|
.pagination-wrapper.v2 .pager-container {
|
30
26
|
flex-direction: row;
|
31
27
|
align-items: center;
|
@@ -41,12 +37,79 @@ export const styles = css`
|
|
41
37
|
font-weight: var(--nile-font-weight-regular);
|
42
38
|
}
|
43
39
|
|
40
|
+
|
41
|
+
.pagination-wrapper.compact {
|
42
|
+
min-width: 324px;
|
43
|
+
justify-content: space-between;
|
44
|
+
}
|
45
|
+
|
46
|
+
|
47
|
+
|
48
|
+
.pagination-wrapper.compact .range-text {
|
49
|
+
margin-right: var(--nile-spacing-spacing-md);
|
50
|
+
white-space: nowrap;
|
51
|
+
}
|
52
|
+
|
53
|
+
|
54
|
+
.pagination-wrapper.compact .pager-container {
|
55
|
+
gap: var(--nile-spacing-spacing-md);
|
56
|
+
}
|
57
|
+
|
58
|
+
|
59
|
+
.pagination-wrapper.compact .pager-container {
|
60
|
+
display: flex;
|
61
|
+
align-items: center;
|
62
|
+
gap: var(--nile-spacing-spacing-md);
|
63
|
+
}
|
64
|
+
|
65
|
+
.pagination-wrapper.compact .page-size-dropdown ::part(base) {
|
66
|
+
min-width: 32px;
|
67
|
+
height: 32px;
|
68
|
+
padding: 0 6px;
|
69
|
+
}
|
70
|
+
|
71
|
+
.pagination-wrapper.compact .page-size-dropdown .chevron {
|
72
|
+
transition: transform 0.2s;
|
73
|
+
}
|
74
|
+
.pagination-wrapper.compact .page-size-dropdown .open .chevron {
|
75
|
+
transform: rotate(180deg);
|
76
|
+
}
|
77
|
+
|
78
|
+
.pagination-wrapper.compact ul.pagination:not(.compact-pagination) {
|
79
|
+
display: none;
|
80
|
+
}
|
81
|
+
|
82
|
+
.compact-pagination {
|
83
|
+
display: flex;
|
84
|
+
align-items: center;
|
85
|
+
gap: var(--nile-spacing-spacing-xs);
|
86
|
+
list-style: none;
|
87
|
+
margin: 0;
|
88
|
+
padding: 0;
|
89
|
+
}
|
90
|
+
.page-dropdown .current-page-btn {
|
91
|
+
padding: 2px;
|
92
|
+
font-size: var(--nile-font-size-small);
|
93
|
+
}
|
94
|
+
|
95
|
+
nile-button.current-page-btn::part(base){
|
96
|
+
min-width: 51px;
|
97
|
+
}
|
98
|
+
|
99
|
+
nile-button.current-page-btn::part(base):active {
|
100
|
+
min-width: 51px;
|
101
|
+
}
|
102
|
+
|
44
103
|
.pager-container {
|
45
104
|
display: flex;
|
46
105
|
align-items: center;
|
47
106
|
gap: var(--nile-spacing-spacing-3xl);
|
48
107
|
}
|
49
108
|
|
109
|
+
.pagination-wrapper.compact .pager-container {
|
110
|
+
gap: var(--nile-spacing-xxs) !important;
|
111
|
+
}
|
112
|
+
|
50
113
|
.range-text {
|
51
114
|
font-size: var(--nile-font-size-small);
|
52
115
|
color: var(--nile-colors-dark-900);
|
@@ -75,63 +138,113 @@ export const styles = css`
|
|
75
138
|
overflow-y: auto;
|
76
139
|
width: 66px;
|
77
140
|
}
|
141
|
+
.down-scroll-wrapper {
|
142
|
+
max-height: 150px;
|
143
|
+
overflow-y: auto;
|
144
|
+
width: 60px;
|
145
|
+
}
|
78
146
|
|
79
|
-
|
147
|
+
|
148
|
+
.compact-scroll-wrapper {
|
149
|
+
max-height: 160px;
|
150
|
+
overflow-y: auto;
|
151
|
+
width: 60px;
|
152
|
+
}
|
153
|
+
.compact-dropdown nile-menu {
|
154
|
+
overflow-y: auto;
|
155
|
+
padding: var(--nile-spacing-spacing-lg) var(--nile-spacing-spacing-none);
|
156
|
+
box-shadow: 0px 4px 8px 0px rgba(119, 125, 130, 0.15);
|
157
|
+
}
|
158
|
+
|
159
|
+
.page-size-dropdown nile-menu {
|
80
160
|
overflow-y: auto;
|
81
161
|
padding: var(--nile-spacing-spacing-lg) var(--nile-spacing-spacing-none);
|
82
162
|
box-shadow: 0px 4px 8px 0px rgba(119, 125, 130, 0.15);
|
83
163
|
}
|
84
164
|
|
85
|
-
|
165
|
+
.compact-scroll-wrapper1 {
|
166
|
+
max-height: 164px;
|
167
|
+
overflow-y: auto;
|
168
|
+
width: 60px;
|
169
|
+
}
|
86
170
|
|
87
|
-
.
|
88
|
-
max-height: 144px;
|
171
|
+
.compact-dropdown1 nile-menu {
|
89
172
|
overflow-y: auto;
|
173
|
+
padding: var(--nile-spacing-spacing-lg) var(--nile-spacing-spacing-none);
|
174
|
+
box-shadow: 0px 4px 8px 0px rgba(119, 125, 130, 0.15);
|
175
|
+
}
|
176
|
+
|
177
|
+
.compact-dropdown1 nile-menu {
|
178
|
+
overflow-y: auto;
|
179
|
+
padding: var(--nile-spacing-spacing-lg) var(--nile-spacing-spacing-none);
|
180
|
+
box-shadow: 0px 4px 8px 0px rgba(119, 125, 130, 0.15);
|
90
181
|
}
|
91
182
|
|
92
|
-
|
93
|
-
|
183
|
+
|
184
|
+
.ellipsis-dropdown nile-menu {
|
185
|
+
overflow-y: auto;
|
186
|
+
padding: var(--nile-spacing-spacing-lg) var(--nile-spacing-spacing-none);
|
187
|
+
box-shadow: 0px 4px 8px 0px rgba(119, 125, 130, 0.15);
|
94
188
|
}
|
95
|
-
|
96
|
-
|
189
|
+
|
190
|
+
.page-size-menu {
|
191
|
+
max-height: 144px;
|
192
|
+
overflow-y: auto;
|
97
193
|
}
|
98
194
|
|
195
|
+
.pagination-wrapper.fluid ul.pagination li:first-child {
|
196
|
+
margin-right: var(--nile-spacing-spacing-xs);
|
197
|
+
}
|
198
|
+
.pagination-wrapper.fluid ul.pagination li:last-child {
|
199
|
+
margin-left: var(--nile-spacing-spacing-md);
|
200
|
+
}
|
201
|
+
|
202
|
+
|
99
203
|
.page-size-label {
|
100
204
|
font-size: var(--nile-type-scale-3);
|
101
205
|
color: var(--nile-colors-dark-500);
|
102
206
|
margin-left: var(--nile-spacing-spacing-md);
|
103
207
|
font-feature-settings: 'liga' off, 'clig' off;
|
104
|
-
font-weight: var(--nile-font-weight-regular);
|
208
|
+
font-weight: var(--nile-font-weight-regular);
|
105
209
|
}
|
106
210
|
|
107
211
|
nile-button::part(base) {
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
}
|
212
|
+
min-width: 32px;
|
213
|
+
height: 32px;
|
214
|
+
padding: 0px 6px;
|
215
|
+
box-shadow: none;
|
216
|
+
}
|
113
217
|
|
114
218
|
nile-button::part(base):active {
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
}
|
121
|
-
|
122
|
-
nile-button.down::part(base){
|
123
|
-
min-width: 62px;
|
124
|
-
|
125
|
-
}
|
126
|
-
.page-size-dropdown .chevron {
|
127
|
-
transition: transform 0.2s;
|
128
|
-
}
|
129
|
-
.page-size-dropdown .open .chevron {
|
130
|
-
transform: rotate(180deg);
|
131
|
-
}
|
132
|
-
|
219
|
+
min-width: 32px;
|
220
|
+
height: 32px;
|
221
|
+
padding: 0px 6px;
|
222
|
+
box-shadow: none;
|
223
|
+
border: none;
|
224
|
+
}
|
133
225
|
|
226
|
+
nile-button.down::part(base) {
|
227
|
+
min-width: 62px;
|
228
|
+
}
|
134
229
|
|
230
|
+
nile-button.compactbtn:part(base){
|
231
|
+
background-color: red;
|
232
|
+
}
|
233
|
+
.page-size-dropdown .chevron {
|
234
|
+
transition: transform 0.2s;
|
235
|
+
}
|
236
|
+
.page-size-dropdown .open .chevron {
|
237
|
+
transform: rotate(180deg);
|
238
|
+
}
|
239
|
+
|
240
|
+
.pagination-wrapper.compact .compact-dropdown .chevron,
|
241
|
+
.pagination-wrapper.compact .compact-dropdown1 .chevron {
|
242
|
+
transition: transform 0.2s;
|
243
|
+
}
|
244
|
+
.pagination-wrapper.compact .compact-dropdown .down.open .chevron,
|
245
|
+
.pagination-wrapper.compact .compact-dropdown1 .current-page-btn.open .chevron {
|
246
|
+
transform: rotate(180deg);
|
247
|
+
}
|
135
248
|
|
136
249
|
|
137
250
|
`;
|