toku-ui 5.6.0 → 5.7.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/dist/components/TDrawer/TDrawer.stories.d.ts +3 -4
- package/dist/components/TDrawer/TDrawer.stories.d.ts.map +1 -1
- package/dist/components/TDrawer/TDrawer.vue.d.ts +8 -9
- package/dist/components/TDrawer/TDrawer.vue.d.ts.map +1 -1
- package/dist/components/TDrawer/TDrawerHeader/TDrawerHeader.vue.d.ts +1 -0
- package/dist/components/TDrawer/TDrawerHeader/TDrawerHeader.vue.d.ts.map +1 -1
- package/dist/index.es.js +1229 -1212
- package/dist/index.es.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -162,12 +162,11 @@ declare const meta: {
|
|
|
162
162
|
export default meta;
|
|
163
163
|
type Story = StoryObj<typeof meta>;
|
|
164
164
|
/**
|
|
165
|
-
* A debt list that opens its detail.
|
|
166
|
-
*
|
|
167
|
-
* focus is inside, and focus goes back to the row that opened it. With the dropdown in
|
|
165
|
+
* A debt list that opens its detail. A scrim dims the page; clicking it closes the drawer,
|
|
166
|
+
* as do Close and Escape while focus is inside, and focus goes back to the row that opened it. With the dropdown in
|
|
168
167
|
* "Gestión" open, Escape closes the dropdown first.
|
|
169
168
|
*
|
|
170
|
-
* Editar turns it into a modal form
|
|
169
|
+
* Editar turns it into a modal form that keeps focus inside, with Volver back to the record; with
|
|
171
170
|
* unsaved changes, Volver, Close, Escape and Cancelar ask before discarding them. "Ver agendamiento asociado" opens level 2.
|
|
172
171
|
*/
|
|
173
172
|
export declare const playground: Story;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TDrawer.stories.d.ts","sourceRoot":"","sources":["../../../src/components/TDrawer/TDrawer.stories.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,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,KAOnB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,aAAa,EAAE,KA6C3B,CAAC;AAEF,iGAAiG;AACjG,eAAO,MAAM,IAAI,EAAE,KAuBlB,CAAC;AAEF,gHAAgH;AAChH,eAAO,MAAM,MAAM,EAAE,KAqBpB,CAAC"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Side drawer anchored to the right edge of the viewport, for a record's detail.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
4
|
+
* A scrim dims the page while it is open; clicking it closes the drawer, as do the header's
|
|
5
|
+
* Close button and Escape while focus is inside it. Focus moves to the header title on
|
|
6
|
+
* open and returns to whatever was focused before (typically the row that opened it) on
|
|
7
|
+
* close — rows need to be focusable for that to work. In `view` mode it stays a
|
|
8
|
+
* non-modal region, so dialogs the page opens on top of it (a `TModal`) keep working.
|
|
9
9
|
*
|
|
10
|
-
* In `edit` mode it becomes a modal dialog: the page looks the same as in `view`
|
|
11
|
-
*
|
|
10
|
+
* In `edit` mode it becomes a modal dialog: the page looks the same as in `view` and
|
|
11
|
+
* focus stays inside. With `dirty`, the scrim, Close and Escape ask before discarding the changes; route the
|
|
12
12
|
* footer's Cancel through the exposed `confirmDiscard()` for the same question. Edit
|
|
13
13
|
* entered from the record on display shows Back, which returns to `view` (asking first
|
|
14
14
|
* when `dirty`) through `v-model:mode`; a drawer opened straight in `edit` keeps only Close.
|
|
@@ -33,8 +33,7 @@ export interface TDrawerProps {
|
|
|
33
33
|
*/
|
|
34
34
|
contentKey?: string | number;
|
|
35
35
|
/**
|
|
36
|
-
* `edit` turns the drawer into a modal dialog
|
|
37
|
-
* without darkening. The header keeps Close, plus Back when edit was entered from the
|
|
36
|
+
* `edit` turns the drawer into a modal dialog that keeps focus inside. The header keeps Close, plus Back when edit was entered from the
|
|
38
37
|
* record on display, which returns to `view` through `v-model:mode`. Pass the
|
|
39
38
|
* "Editar [entidad]" title and the Cancel / Save footer yourself.
|
|
40
39
|
* @defaultValue 'view'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TDrawer.vue.d.ts","sourceRoot":"","sources":["../../../src/components/TDrawer/TDrawer.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TDrawer.vue.d.ts","sourceRoot":"","sources":["../../../src/components/TDrawer/TDrawer.vue"],"names":[],"mappings":"AAwkBA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,WAAW,YAAY;IAC3B;;;;OAIG;IACH,IAAI,CAAC,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;IACvB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC7B;;;;;OAKG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,sEAAsE;IACtE,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,OAAO,CAAC;IACtC,8CAA8C;IAC9C,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,gFAAgF;IAChF,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,wCAAwC;IACxC,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,sCAAsC;IACtC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,wDAAwD;IACxD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,iCAAiC;IACjC,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,YAAY;IAC3B,wDAAwD;IACxD,KAAK,EAAE,EAAE,CAAC;CACX;AAED,MAAM,WAAW,YAAY;IAC3B,4GAA4G;IAC5G,MAAM,EAAE,MAAM,OAAO,CAAC;IACtB,6HAA6H;IAC7H,OAAO,CAAC,EAAE,MAAM,OAAO,CAAC;IACxB,yGAAyG;IACzG,MAAM,CAAC,EAAE,MAAM,OAAO,CAAC;IACvB,2EAA2E;IAC3E,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,KAAK,EAAE,MAAM,IAAI,CAAA;KAAE,KAAK,OAAO,CAAC;CACnD;AAED,sCAAsC;AACtC,MAAM,WAAW,cAAc;IAC7B,0FAA0F;IAC1F,cAAc,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,CAAC;IACvC,8EAA8E;IAC9E,YAAY,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,CAAC;CACtC;wBACoB,OAAO,YAAY;AAAxC,wBAAyC;AACzC,QAAA,MAAM,YAAY;WAkPT,OAAO;IAChB,qFAAqF;YAC3E,CAAC,GAAG,CAAC;WACN,MAAM,GAAG,MAAM;;;;;;;WAHf,OAAO;IAChB,qFAAqF;YAC3E,CAAC,GAAG,CAAC;WACN,MAAM,GAAG,MAAM;;;;;;iGA0TpB,CAAC;AACL,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -6,6 +6,7 @@ export interface TDrawerAction {
|
|
|
6
6
|
id: string;
|
|
7
7
|
/** Tooltip and accessible name of the icon, or the menu item text. */
|
|
8
8
|
label: string;
|
|
9
|
+
/** Shown as the icon button, or before the label in the menu. */
|
|
9
10
|
icon: HeroIcon;
|
|
10
11
|
/** Marks the Edit action, which stays visible even when the rest go to the menu. */
|
|
11
12
|
edit?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TDrawerHeader.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/TDrawer/TDrawerHeader/TDrawerHeader.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TDrawerHeader.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/TDrawer/TDrawerHeader/TDrawerHeader.vue"],"names":[],"mappings":"AAwYA,OAAO,KAAK,E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