@erplora/outfitkit 0.1.20 → 0.1.21
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 +5 -6
- package/dist/cdn.d.ts +0 -5
- package/dist/index.d.ts +0 -9
- package/dist/index.js +0 -10
- package/dist/ok-data-table.js +1 -1
- package/dist/ok-file-manager.js +1 -1
- package/dist/ok-lightbox.js +1 -1
- package/dist/outfitkit.bundle.js +3634 -5572
- package/dist/outfitkit.js +0 -5
- package/dist/shared/icons.js +3 -3
- package/dist/showcase/auth-login-saas-parity.test.d.ts +1 -0
- package/dist/showcase/component-catalog-completeness.test.d.ts +1 -0
- package/dist/showcase/current-page-contract.test.d.ts +1 -0
- package/dist/showcase/hub-access-dashboard-parity.test.d.ts +1 -0
- package/dist/showcase/hub-apps-billing-pages-parity.test.d.ts +1 -0
- package/dist/showcase/hub-employee-forms-parity.test.d.ts +1 -0
- package/dist/showcase/hub-shell-parity.test.d.ts +1 -0
- package/dist/showcase/hub-system-settings-shell-parity.test.d.ts +1 -0
- package/dist/showcase/hub-table-pages-parity.test.d.ts +1 -0
- package/dist/showcase/ionic-boundary.test.d.ts +1 -0
- package/dist/showcase/ionic-ios-default.test.d.ts +1 -0
- package/dist/showcase/module-appointments-parity.test.d.ts +1 -0
- package/dist/showcase/module-backup-pages-parity.test.d.ts +1 -0
- package/dist/showcase/module-cart-checkout-pages-parity.test.d.ts +1 -0
- package/dist/showcase/module-cash-register-parity.test.d.ts +1 -0
- package/dist/showcase/module-customers-fields-parity.test.d.ts +1 -0
- package/dist/showcase/module-customers-groups-parity.test.d.ts +1 -0
- package/dist/showcase/module-customers-list-parity.test.d.ts +1 -0
- package/dist/showcase/module-customers-tags-parity.test.d.ts +1 -0
- package/dist/showcase/module-inventory-categories-parity.test.d.ts +1 -0
- package/dist/showcase/module-inventory-dashboard-parity.test.d.ts +1 -0
- package/dist/showcase/module-inventory-products-parity.test.d.ts +1 -0
- package/dist/showcase/module-invoice-list-parity.test.d.ts +1 -0
- package/dist/showcase/module-invoice-series-list-parity.test.d.ts +1 -0
- package/dist/showcase/module-invoice-settings-parity.test.d.ts +1 -0
- package/dist/showcase/module-kitchen-pages-parity.test.d.ts +1 -0
- package/dist/showcase/module-online-booking-pages-parity.test.d.ts +1 -0
- package/dist/showcase/module-pages-data.test.d.ts +1 -0
- package/dist/showcase/module-payment-gateways-parity.test.d.ts +1 -0
- package/dist/showcase/module-payments-list-parity.test.d.ts +1 -0
- package/dist/showcase/module-pricing-lists-parity.test.d.ts +1 -0
- package/dist/showcase/module-printing-pages-parity.test.d.ts +1 -0
- package/dist/showcase/module-reservations-availability-parity.test.d.ts +1 -0
- package/dist/showcase/module-reservations-list-parity.test.d.ts +1 -0
- package/dist/showcase/module-reservations-waitlist-parity.test.d.ts +1 -0
- package/dist/showcase/module-sales-list-parity.test.d.ts +1 -0
- package/dist/showcase/module-sales-pos-parity.test.d.ts +1 -0
- package/dist/showcase/module-schedules-hours-parity.test.d.ts +1 -0
- package/dist/showcase/module-services-parity.test.d.ts +1 -0
- package/dist/showcase/module-staff-members-parity.test.d.ts +1 -0
- package/dist/showcase/module-staff-roles-parity.test.d.ts +1 -0
- package/dist/showcase/module-staff-schedules-parity.test.d.ts +1 -0
- package/dist/showcase/module-staff-time-off-parity.test.d.ts +1 -0
- package/dist/showcase/module-tables-pages-parity.test.d.ts +1 -0
- package/dist/showcase/module-tasks-list-parity.test.d.ts +1 -0
- package/dist/showcase/module-tasks-projects-parity.test.d.ts +1 -0
- package/dist/showcase/module-taxes-pages-parity.test.d.ts +1 -0
- package/dist/showcase/module-tickets-list-parity.test.d.ts +1 -0
- package/dist/showcase/module-tickets-sla-parity.test.d.ts +1 -0
- package/dist/showcase/module-verifactu-pages-parity.test.d.ts +1 -0
- package/dist/showcase/module-whatsapp-inbox-pages-parity.test.d.ts +1 -0
- package/dist/showcase/page-catalog.test.d.ts +1 -0
- package/dist/showcase/page-navigation.test.d.ts +1 -0
- package/dist/showcase/saas-account-help-pages-parity.test.d.ts +1 -0
- package/dist/showcase/saas-auth-account-pages-parity.test.d.ts +1 -0
- package/dist/showcase/saas-billing-table-pages-parity.test.d.ts +1 -0
- package/dist/showcase/saas-dashboard-shell-parity.test.d.ts +1 -0
- package/dist/showcase/saas-developer-pages-parity.test.d.ts +1 -0
- package/dist/showcase/saas-developer-table-pages-parity.test.d.ts +1 -0
- package/dist/showcase/saas-hub-detail-pages-parity.test.d.ts +1 -0
- package/dist/showcase/saas-hubs-table-pages-parity.test.d.ts +1 -0
- package/dist/showcase/saas-operations-marketplace-pages-parity.test.d.ts +1 -0
- package/dist/showcase/saas-organizations-page-parity.test.d.ts +1 -0
- package/dist/showcase/saas-organizations-users-detail-pages-parity.test.d.ts +1 -0
- package/dist/showcase/saas-public-error-pages-parity.test.d.ts +1 -0
- package/package.json +2 -6
- package/dist/components/ok-date-picker/ok-date-picker.d.ts +0 -81
- package/dist/components/ok-drawer/ok-drawer.d.ts +0 -56
- package/dist/components/ok-range-dual/ok-range-dual.d.ts +0 -38
- package/dist/components/ok-skeleton/ok-skeleton.d.ts +0 -40
- package/dist/components/ok-time-picker/ok-time-picker.d.ts +0 -50
- package/dist/ok-date-picker.js +0 -737
- package/dist/ok-drawer.js +0 -358
- package/dist/ok-range-dual.js +0 -280
- package/dist/ok-skeleton.js +0 -345
- package/dist/ok-time-picker.js +0 -472
package/dist/outfitkit.js
CHANGED
|
@@ -42,7 +42,6 @@ import "./ok-spotlight-search.js";
|
|
|
42
42
|
import "./ok-color-picker.js";
|
|
43
43
|
import "./ok-avatar.js";
|
|
44
44
|
import "./ok-status-pill.js";
|
|
45
|
-
import "./ok-drawer.js";
|
|
46
45
|
import "./ok-page-header.js";
|
|
47
46
|
import "./ok-bento.js";
|
|
48
47
|
import "./ok-bento-item.js";
|
|
@@ -58,7 +57,6 @@ import "./ok-navbar.js";
|
|
|
58
57
|
import "./ok-footer.js";
|
|
59
58
|
import "./ok-hero.js";
|
|
60
59
|
import "./ok-pagination.js";
|
|
61
|
-
import "./ok-skeleton.js";
|
|
62
60
|
import "./ok-gauge.js";
|
|
63
61
|
import "./ok-chart.js";
|
|
64
62
|
import "./ok-donut.js";
|
|
@@ -76,9 +74,6 @@ import "./ok-coachmark.js";
|
|
|
76
74
|
import "./ok-select-card.js";
|
|
77
75
|
import "./ok-theme-picker.js";
|
|
78
76
|
import "./ok-error-page.js";
|
|
79
|
-
import "./ok-date-picker.js";
|
|
80
|
-
import "./ok-time-picker.js";
|
|
81
|
-
import "./ok-range-dual.js";
|
|
82
77
|
import "./ok-file-item.js";
|
|
83
78
|
import "./ok-rich-text.js";
|
|
84
79
|
import "./ok-code.js";
|
package/dist/shared/icons.js
CHANGED
|
@@ -158,9 +158,9 @@ export {
|
|
|
158
158
|
iconAdd as K,
|
|
159
159
|
iconSearchOutline as L,
|
|
160
160
|
iconNotificationsOffOutline as M,
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
161
|
+
iconPlayOutline as N,
|
|
162
|
+
iconFolderOpenOutline as O,
|
|
163
|
+
iconCalendarOutline as P,
|
|
164
164
|
iconChevronForward as Q,
|
|
165
165
|
iconFileTrayOutline as R,
|
|
166
166
|
iconSwapVerticalOutline as S,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@erplora/outfitkit",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.21",
|
|
4
4
|
"description": "OutfitKit — librería de Web Components (Lit) que CONSTRUYE lo que Ionic no tiene (tree, data-table rica, inline-feedback, kpi/stat, stepper/wizard, calendar, kanban…) sobre primitivos de Ionic. Ionic es la base; OutfitKit cubre los huecos. npm + CDN, imports individuales, CSP-safe. Tema vía tokens --ok-* (fallback a --ion-*).",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -74,7 +74,6 @@
|
|
|
74
74
|
"./ok-color-picker": "./dist/ok-color-picker.js",
|
|
75
75
|
"./ok-avatar": "./dist/ok-avatar.js",
|
|
76
76
|
"./ok-status-pill": "./dist/ok-status-pill.js",
|
|
77
|
-
"./ok-drawer": "./dist/ok-drawer.js",
|
|
78
77
|
"./ok-page-header": "./dist/ok-page-header.js",
|
|
79
78
|
"./ok-bento": "./dist/ok-bento.js",
|
|
80
79
|
"./ok-bento-item": "./dist/ok-bento-item.js",
|
|
@@ -90,7 +89,6 @@
|
|
|
90
89
|
"./ok-footer": "./dist/ok-footer.js",
|
|
91
90
|
"./ok-hero": "./dist/ok-hero.js",
|
|
92
91
|
"./ok-pagination": "./dist/ok-pagination.js",
|
|
93
|
-
"./ok-skeleton": "./dist/ok-skeleton.js",
|
|
94
92
|
"./ok-gauge": "./dist/ok-gauge.js",
|
|
95
93
|
"./ok-chart": "./dist/ok-chart.js",
|
|
96
94
|
"./ok-donut": "./dist/ok-donut.js",
|
|
@@ -108,9 +106,6 @@
|
|
|
108
106
|
"./ok-select-card": "./dist/ok-select-card.js",
|
|
109
107
|
"./ok-theme-picker": "./dist/ok-theme-picker.js",
|
|
110
108
|
"./ok-error-page": "./dist/ok-error-page.js",
|
|
111
|
-
"./ok-date-picker": "./dist/ok-date-picker.js",
|
|
112
|
-
"./ok-time-picker": "./dist/ok-time-picker.js",
|
|
113
|
-
"./ok-range-dual": "./dist/ok-range-dual.js",
|
|
114
109
|
"./ok-file-item": "./dist/ok-file-item.js",
|
|
115
110
|
"./ok-rich-text": "./dist/ok-rich-text.js",
|
|
116
111
|
"./ok-code": "./dist/ok-code.js",
|
|
@@ -145,6 +140,7 @@
|
|
|
145
140
|
"scripts": {
|
|
146
141
|
"build": "vite build && vite build --config vite.config.cdn.ts && tsc -p tsconfig.build.json --emitDeclarationOnly",
|
|
147
142
|
"dev": "vite build --watch",
|
|
143
|
+
"generate:module-pages": "node scripts/generate-module-pages.mjs",
|
|
148
144
|
"typecheck": "tsc --noEmit",
|
|
149
145
|
"test": "vitest run",
|
|
150
146
|
"verify:csp": "node scripts/assert-csp-safe.mjs dist",
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import { LitElement } from 'lit';
|
|
2
|
-
export type OkDatePickerMode = 'single' | 'range';
|
|
3
|
-
export interface OkDateRange {
|
|
4
|
-
start: string | null;
|
|
5
|
-
end: string | null;
|
|
6
|
-
}
|
|
7
|
-
export type OkDatePickerValue = string | OkDateRange | null;
|
|
8
|
-
export interface OkDatePreset {
|
|
9
|
-
/** Clave estable del preset. */
|
|
10
|
-
id: string;
|
|
11
|
-
/** Texto visible en el chip. */
|
|
12
|
-
label: string;
|
|
13
|
-
}
|
|
14
|
-
export interface OkDatePickerLabels {
|
|
15
|
-
/** aria-label del botón anterior. */
|
|
16
|
-
prev: string;
|
|
17
|
-
/** aria-label del botón siguiente. */
|
|
18
|
-
next: string;
|
|
19
|
-
/** aria-label del botón disparador cuando no hay valor. */
|
|
20
|
-
open: string;
|
|
21
|
-
}
|
|
22
|
-
export declare class OkDatePicker extends LitElement {
|
|
23
|
-
static styles: import("lit").CSSResult;
|
|
24
|
-
/** Modo: una fecha ('single') o un rango ('range'). */
|
|
25
|
-
mode: OkDatePickerMode;
|
|
26
|
-
/** Valor actual: ISO `YYYY-MM-DD` (single) o {start,end} (range). */
|
|
27
|
-
value: OkDatePickerValue;
|
|
28
|
-
/** Fecha mínima seleccionable (ISO `YYYY-MM-DD`). */
|
|
29
|
-
min?: string;
|
|
30
|
-
/** Fecha máxima seleccionable (ISO `YYYY-MM-DD`). */
|
|
31
|
-
max?: string;
|
|
32
|
-
/** Chips de preset; pasa `[]` para ocultar la fila. */
|
|
33
|
-
presets: OkDatePreset[];
|
|
34
|
-
/** Locale para el nombre del mes (Intl). Default = es-ES. */
|
|
35
|
-
locale: string;
|
|
36
|
-
/** Texto del campo cuando no hay valor. */
|
|
37
|
-
placeholder: string;
|
|
38
|
-
/** Número de meses visibles en el popover (1 o 2). */
|
|
39
|
-
months: 1 | 2;
|
|
40
|
-
/** Textos traducibles (merge sobre los defaults en español). */
|
|
41
|
-
labels: Partial<OkDatePickerLabels>;
|
|
42
|
-
private open;
|
|
43
|
-
private side;
|
|
44
|
-
private viewDate;
|
|
45
|
-
private hoverDate;
|
|
46
|
-
private get t();
|
|
47
|
-
private readonly onDocPointer;
|
|
48
|
-
private readonly onKeydown;
|
|
49
|
-
disconnectedCallback(): void;
|
|
50
|
-
private get fieldEl();
|
|
51
|
-
willUpdate(changed: Map<string, unknown>): void;
|
|
52
|
-
private bind;
|
|
53
|
-
private unbind;
|
|
54
|
-
private toggle;
|
|
55
|
-
private openPopover;
|
|
56
|
-
private close;
|
|
57
|
-
private get rangeValue();
|
|
58
|
-
private get singleValue();
|
|
59
|
-
private anchorDateFromValue;
|
|
60
|
-
private get minDate();
|
|
61
|
-
private get maxDate();
|
|
62
|
-
private isDisabled;
|
|
63
|
-
private selectDay;
|
|
64
|
-
private emit;
|
|
65
|
-
private prevMonth;
|
|
66
|
-
private nextMonth;
|
|
67
|
-
private applyPreset;
|
|
68
|
-
private isPresetActive;
|
|
69
|
-
private presetValue;
|
|
70
|
-
private fieldLabel;
|
|
71
|
-
render(): unknown;
|
|
72
|
-
private renderMonth;
|
|
73
|
-
private renderDay;
|
|
74
|
-
private onDayHover;
|
|
75
|
-
private dayRangeFlags;
|
|
76
|
-
}
|
|
77
|
-
declare global {
|
|
78
|
-
interface HTMLElementTagNameMap {
|
|
79
|
-
'ok-date-picker': OkDatePicker;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { LitElement, type PropertyValues } from 'lit';
|
|
2
|
-
/** Lado del drawer ('end' = derecha en LTR). */
|
|
3
|
-
export type OkDrawerSide = 'end' | 'start';
|
|
4
|
-
/** Textos humanos de ok-drawer (i18n; default inglés, override vía prop `labels`). */
|
|
5
|
-
export interface OkDrawerLabels {
|
|
6
|
-
/** aria-label / tooltip del botón de cerrar (X). */
|
|
7
|
-
close: string;
|
|
8
|
-
}
|
|
9
|
-
export declare class OkDrawer extends LitElement {
|
|
10
|
-
static styles: import("lit").CSSResult;
|
|
11
|
-
/** Abierto/cerrado (reflejado). El padre puede controlarlo (señal/ref). */
|
|
12
|
-
open: boolean;
|
|
13
|
-
/** Lado del panel: 'end' (def, derecha en LTR) | 'start' (reflejado para CSS). */
|
|
14
|
-
side: OkDrawerSide;
|
|
15
|
-
/** Ancho del panel (def 420px; en móvil siempre 100%). */
|
|
16
|
-
width: string;
|
|
17
|
-
/** Título de la cabecera. */
|
|
18
|
-
heading?: string;
|
|
19
|
-
/** Nombre de un ionicon junto al título. */
|
|
20
|
-
icon?: string;
|
|
21
|
-
/** Fondo oscurecido clicable (def true). Para quitarlo: `.scrim=${false}`. */
|
|
22
|
-
scrim: boolean;
|
|
23
|
-
/** Si true (def), cierra con ESC / click en scrim / botón X. Si false, oculta la X. */
|
|
24
|
-
dismissible: boolean;
|
|
25
|
-
/** Overrides de textos humanos (i18n). Se fusionan sobre los defaults en inglés. */
|
|
26
|
-
labels: Partial<OkDrawerLabels>;
|
|
27
|
-
/** Textos efectivos (defaults inglés + overrides). */
|
|
28
|
-
private get t();
|
|
29
|
-
private panel?;
|
|
30
|
-
private previousFocus;
|
|
31
|
-
private hasFooter;
|
|
32
|
-
private readonly onDocKeydown;
|
|
33
|
-
disconnectedCallback(): void;
|
|
34
|
-
protected updated(changed: PropertyValues): void;
|
|
35
|
-
private afterOpen;
|
|
36
|
-
private afterClose;
|
|
37
|
-
/**
|
|
38
|
-
* Gesto de cierre (scrim/esc/botón): emite `ok-close` CANCELABLE con la razón. Si nadie hace
|
|
39
|
-
* `preventDefault()` se auto-cierra (fallback no-controlado); un padre controlado puede vetar.
|
|
40
|
-
*/
|
|
41
|
-
requestClose(reason: 'scrim' | 'esc' | 'button'): void;
|
|
42
|
-
/** Abre el drawer (azúcar imperativo; equivale a `open = true`). */
|
|
43
|
-
show(): void;
|
|
44
|
-
/** Cierra el drawer sin pasar por el gesto cancelable (azúcar imperativo). */
|
|
45
|
-
hide(): void;
|
|
46
|
-
private focusables;
|
|
47
|
-
private trapFocus;
|
|
48
|
-
private onScrimClick;
|
|
49
|
-
private onFooterSlotChange;
|
|
50
|
-
render(): unknown;
|
|
51
|
-
}
|
|
52
|
-
declare global {
|
|
53
|
-
interface HTMLElementTagNameMap {
|
|
54
|
-
'ok-drawer': OkDrawer;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { LitElement } from 'lit';
|
|
2
|
-
/** Detalle del evento ok-change emitido al mover cualquiera de los dos thumbs. */
|
|
3
|
-
export interface OkRangeDualChangeDetail {
|
|
4
|
-
low: number;
|
|
5
|
-
high: number;
|
|
6
|
-
}
|
|
7
|
-
export declare class OkRangeDual extends LitElement {
|
|
8
|
-
static styles: import("lit").CSSResult;
|
|
9
|
-
/** Etiqueta opcional mostrada a la izquierda del readout. */
|
|
10
|
-
label?: string;
|
|
11
|
-
/** Mínimo del rango. */
|
|
12
|
-
min: number;
|
|
13
|
-
/** Máximo del rango. */
|
|
14
|
-
max: number;
|
|
15
|
-
/** Paso de incremento. */
|
|
16
|
-
step: number;
|
|
17
|
-
/** Valor inferior actual. */
|
|
18
|
-
low: number;
|
|
19
|
-
/** Valor superior actual. */
|
|
20
|
-
high: number;
|
|
21
|
-
/** Prefijo del valor en el readout (p.ej. "€"). */
|
|
22
|
-
prefix: string;
|
|
23
|
-
/** Sufijo del valor en el readout (p.ej. "%", " kg"). */
|
|
24
|
-
suffix: string;
|
|
25
|
-
/** Deshabilita la interacción. */
|
|
26
|
-
disabled: boolean;
|
|
27
|
-
private clamp;
|
|
28
|
-
private onLow;
|
|
29
|
-
private onHigh;
|
|
30
|
-
private emit;
|
|
31
|
-
private fmt;
|
|
32
|
-
render(): unknown;
|
|
33
|
-
}
|
|
34
|
-
declare global {
|
|
35
|
-
interface HTMLElementTagNameMap {
|
|
36
|
-
'ok-range-dual': OkRangeDual;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { LitElement } from 'lit';
|
|
2
|
-
export type OkSkeletonVariant = 'text' | 'title' | 'circle' | 'avatar' | 'button' | 'chip' | 'card' | 'row';
|
|
3
|
-
export type OkSkeletonPreset = 'none' | 'card' | 'table' | 'chart';
|
|
4
|
-
export declare class OkSkeleton extends LitElement {
|
|
5
|
-
static styles: import("lit").CSSResult;
|
|
6
|
-
/** Variante de forma del bloque individual. */
|
|
7
|
-
variant: OkSkeletonVariant;
|
|
8
|
-
/** Nº de líneas apiladas (solo aplica a variant="text"/"title"; >1 activa el stack). */
|
|
9
|
-
lines: number;
|
|
10
|
-
/** Ancho CSS explícito (override de la variante), p.ej. "120px" o "40%". */
|
|
11
|
-
width?: string;
|
|
12
|
-
/** Alto CSS explícito (override de la variante). */
|
|
13
|
-
height?: string;
|
|
14
|
-
/** Radio de borde CSS explícito (override de la variante). */
|
|
15
|
-
radius?: string;
|
|
16
|
-
/** Preset compuesto: scaffold de placeholder. */
|
|
17
|
-
preset: OkSkeletonPreset;
|
|
18
|
-
/** Nº de filas del preset table (incluye la cabecera). */
|
|
19
|
-
rows: number;
|
|
20
|
-
/** Nº de columnas del preset table / nº de barras del preset chart. */
|
|
21
|
-
cols: number;
|
|
22
|
-
/** Estilos inline (width/height/radius) aplicados al bloque. */
|
|
23
|
-
private blockStyle;
|
|
24
|
-
/** Bloque base con la clase de variante. */
|
|
25
|
-
private renderBlock;
|
|
26
|
-
/** Stack de líneas con anchos decrecientes (la 1ª al 100%). */
|
|
27
|
-
private renderStack;
|
|
28
|
-
/** Preset card: avatar + dos líneas de meta + bloque de cuerpo + acciones. */
|
|
29
|
-
private renderPresetCard;
|
|
30
|
-
/** Preset table: replica la rejilla de ok-data-table (cabecera + filas). */
|
|
31
|
-
private renderPresetTable;
|
|
32
|
-
/** Preset chart: barras con alturas pseudo-variadas. */
|
|
33
|
-
private renderPresetChart;
|
|
34
|
-
render(): unknown;
|
|
35
|
-
}
|
|
36
|
-
declare global {
|
|
37
|
-
interface HTMLElementTagNameMap {
|
|
38
|
-
'ok-skeleton': OkSkeleton;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { LitElement } from 'lit';
|
|
2
|
-
export declare class OkTimePicker extends LitElement {
|
|
3
|
-
static styles: import("lit").CSSResult;
|
|
4
|
-
/** Valor canónico "HH:MM" (24h). */
|
|
5
|
-
value: string;
|
|
6
|
-
/** Paso de minutos para la lista de minutos (default 5). */
|
|
7
|
-
step: number;
|
|
8
|
-
/** Presentación 12h con segmento AM/PM (el valor sigue siendo 24h). */
|
|
9
|
-
useAmpm: boolean;
|
|
10
|
-
/** Hora mínima seleccionable "HH:MM" (inclusive). */
|
|
11
|
-
min: string;
|
|
12
|
-
/** Hora máxima seleccionable "HH:MM" (inclusive). */
|
|
13
|
-
max: string;
|
|
14
|
-
/** Desactiva la interacción. */
|
|
15
|
-
disabled: boolean;
|
|
16
|
-
private open;
|
|
17
|
-
private end;
|
|
18
|
-
private above;
|
|
19
|
-
private readonly onDocPointer;
|
|
20
|
-
private readonly onKeydown;
|
|
21
|
-
disconnectedCallback(): void;
|
|
22
|
-
private bind;
|
|
23
|
-
private unbind;
|
|
24
|
-
private get current();
|
|
25
|
-
private get minMin();
|
|
26
|
-
private get maxMin();
|
|
27
|
-
private inRange;
|
|
28
|
-
private toggle;
|
|
29
|
-
private openPanel;
|
|
30
|
-
private close;
|
|
31
|
-
private reanchor;
|
|
32
|
-
private scrollToSelected;
|
|
33
|
-
private commit;
|
|
34
|
-
private pickHour;
|
|
35
|
-
private pickMinute;
|
|
36
|
-
private pickMeridiem;
|
|
37
|
-
private hourOptions;
|
|
38
|
-
private minuteOptions;
|
|
39
|
-
private displayHour;
|
|
40
|
-
private displayMinute;
|
|
41
|
-
private hourLabel;
|
|
42
|
-
private get isPm();
|
|
43
|
-
render(): unknown;
|
|
44
|
-
private panelTemplate;
|
|
45
|
-
}
|
|
46
|
-
declare global {
|
|
47
|
-
interface HTMLElementTagNameMap {
|
|
48
|
-
'ok-time-picker': OkTimePicker;
|
|
49
|
-
}
|
|
50
|
-
}
|