@enos5/enos-vue-default 1.18.2 → 1.19.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.
Files changed (49) hide show
  1. package/README.md +176 -152
  2. package/dist/{code-BSvRc_GA.js → code-DaS2zQdM.js} +2 -2
  3. package/dist/{code-BSvRc_GA.js.map → code-DaS2zQdM.js.map} +1 -1
  4. package/dist/components/Card.vue.d.ts +1 -1
  5. package/dist/components/Checkbox.vue.d.ts +2 -2
  6. package/dist/components/CheckboxInput.vue.d.ts +2 -2
  7. package/dist/components/CheckboxMultipleInput.vue.d.ts +2 -2
  8. package/dist/components/ColorPicker.vue.d.ts +2 -2
  9. package/dist/components/CustomSelect.vue.d.ts +36 -36
  10. package/dist/components/DateInput.vue.d.ts +1 -1
  11. package/dist/components/DateRangeInput.vue.d.ts +2 -2
  12. package/dist/components/FileInput.vue.d.ts +39 -0
  13. package/dist/components/ImageInput.vue.d.ts +1 -1
  14. package/dist/components/InputGroup.vue.d.ts +165 -129
  15. package/dist/components/NotationInput.vue.d.ts +1 -1
  16. package/dist/components/RadioInput.vue.d.ts +2 -2
  17. package/dist/components/RadioMultipleInput.vue.d.ts +2 -2
  18. package/dist/components/SelectInput.vue.d.ts +36 -36
  19. package/dist/components/TableSearch.vue.d.ts +1 -1
  20. package/dist/components/TextArea.vue.d.ts +1 -1
  21. package/dist/components/TextInput.vue.d.ts +1 -1
  22. package/dist/components/ThSortable.vue.d.ts +3 -3
  23. package/dist/components/TinyEditor.vue.d.ts +4 -4
  24. package/dist/components/ToggleInput.vue.d.ts +2 -2
  25. package/dist/{default-DC-DWgp5.js → default-DVLI_Ctg.js} +2 -2
  26. package/dist/{default-DC-DWgp5.js.map → default-DVLI_Ctg.js.map} +1 -1
  27. package/dist/{dom-BXgufT9n.js → dom-wwr-m6RY.js} +2 -2
  28. package/dist/{dom-BXgufT9n.js.map → dom-wwr-m6RY.js.map} +1 -1
  29. package/dist/exports.d.ts +1 -0
  30. package/dist/{image-CgWpOEpR.js → image-BCfIIpI2.js} +2 -2
  31. package/dist/{image-CgWpOEpR.js.map → image-BCfIIpI2.js.map} +1 -1
  32. package/dist/index.docs.d.ts +1 -0
  33. package/dist/index.js +2 -2
  34. package/dist/index.node.js +2 -2
  35. package/dist/{link-VaFqpgtl.js → link-D3A3Lc0M.js} +2 -2
  36. package/dist/{link-VaFqpgtl.js.map → link-D3A3Lc0M.js.map} +1 -1
  37. package/dist/{lists-MCSypWzo.js → lists-DZV9-c86.js} +2 -2
  38. package/dist/{lists-MCSypWzo.js.map → lists-DZV9-c86.js.map} +1 -1
  39. package/dist/{plugin-uaO1JUc1.js → plugin-D38JDSJ2.js} +71 -14
  40. package/dist/plugin-D38JDSJ2.js.map +1 -0
  41. package/dist/{silver-Bd31plDd.js → silver-CCTw_lGW.js} +2 -2
  42. package/dist/{silver-Bd31plDd.js.map → silver-CCTw_lGW.js.map} +1 -1
  43. package/dist/styles.css +4 -0
  44. package/dist/{table-BOVG2vtx.js → table-GYK8BFKR.js} +2 -2
  45. package/dist/{table-BOVG2vtx.js.map → table-GYK8BFKR.js.map} +1 -1
  46. package/dist/{tinymce-BVOv5nLq.js → tinymce-wZ0hEE6i.js} +2 -2
  47. package/dist/{tinymce-BVOv5nLq.js.map → tinymce-wZ0hEE6i.js.map} +1 -1
  48. package/package.json +36 -36
  49. package/dist/plugin-uaO1JUc1.js.map +0 -1
package/README.md CHANGED
@@ -1,152 +1,176 @@
1
- # `@enos5/enos-vue-default`
2
-
3
- Shared Vue 3 UI components from Enos, packaged as the Default workspace inside the monorepo.
4
-
5
- ## Requirements
6
-
7
- - Node.js 20+
8
- - npm
9
-
10
- ## Install
11
-
12
- From the workspace root:
13
-
14
- ```bash
15
- npm install
16
- ```
17
-
18
- Build this package:
19
-
20
- ```bash
21
- npm run build -w @enos5/enos-vue-default
22
- ```
23
-
24
- ## Use In Another Project
25
-
26
- Install the published package:
27
-
28
- ```bash
29
- npm install @enos5/enos-vue-default
30
- ```
31
-
32
- This package expects these peer dependencies in the consuming app:
33
-
34
- - `vue`
35
- - `@inertiajs/vue3` (`^2.0.0` or `^3.0.0`)
36
- - `@heroicons/vue`
37
- - `vue-i18n`
38
-
39
- Rich text support uses TinyMCE and is bundled as a regular dependency in this library. The component set mirrors the Jetstream package except for `ApplicationLogo`, `AuthenticationCard`, `Banner`, `NavGroup`, `NavLink`, `NavMenu`, and `ResponsiveNavLink`.
40
-
41
- You can register everything globally:
42
-
43
- ```ts
44
- import { createApp } from 'vue'
45
- import App from './App.vue'
46
- import { EnosVueDefault } from '@enos5/enos-vue-default'
47
-
48
- createApp(App).use(EnosVueDefault).mount('#app')
49
- ```
50
-
51
- Or import individual components:
52
-
53
- ```ts
54
- import { Button, ColorPicker, TextInput } from '@enos5/enos-vue-default'
55
- ```
56
-
57
- `ColorPicker` resolves its built-in UI labels through `vue-i18n` using the English copy as keys. If your app wants localized picker chrome, define translations for keys such as `Color`, `Selected color`, `Pick color from screen`, `Hue`, `Opacity`, `Hex value`, `Saturation and brightness for {color}`, and `Rainbow color area for {color}`.
58
-
59
- `DateInput` and `DateRangeInput` default to English locale behavior. Pass `locale` to override that, and for native browser date fields remember the final picker UI is still browser-controlled, with `lang` used as the locale hint.
60
-
61
- Styles are loaded automatically when you import the package entrypoint, so consumers do not have to remember a separate CSS import.
62
-
63
- If a consuming app wants earlier stylesheet loading during `npm run dev`, it can opt into the stable stylesheet entry explicitly:
64
-
65
- ```ts
66
- import '@enos5/enos-vue-default/styles.css'
67
- ```
68
-
69
- That explicit import is optional. It mainly improves dev-mode first paint and avoids importing from `dist` directly.
70
-
71
- ## Table column controls
72
-
73
- `TableList` keeps its existing behavior unless the new controls are enabled:
74
-
75
- ```vue
76
- <script setup>
77
- import { ref } from 'vue'
78
- import { TableList } from '@enos5/enos-vue-default'
79
-
80
- const hiddenColumns = ref(['brand'])
81
- const columns = [
82
- { key: 'name', label: 'Name', hideable: false },
83
- { key: 'brand', label: 'Brand' },
84
- { key: 'status', label: 'Status', sticky: 'right', width: '8rem' },
85
- ]
86
- </script>
87
-
88
- <template>
89
- <TableList
90
- v-model:hidden-columns="hiddenColumns"
91
- :columns="columns"
92
- :data="rows"
93
- column-visibility
94
- sticky-actions
95
- >
96
- <template #actions="{ item }">
97
- <!-- row actions -->
98
- </template>
99
- </TableList>
100
- </template>
101
- ```
102
-
103
- - `sticky-actions` keeps the dedicated `actions` slot column visible at the right edge during horizontal scrolling, keeps multi-button groups on one line, and right-aligns the whole group.
104
- - `column.sticky: 'right'` (or `true`) pins a regular data column. A regular column can render custom buttons through its named slot, but it remains distinct from the dedicated `actions` slot column. Multiple sticky columns calculate their right offsets automatically.
105
- - `column-visibility` displays the built-in settings button and dialog.
106
- - `v-model:hidden-columns` controls the hidden column keys. Without the model, `column.hidden: true` supplies the initial internal state.
107
- - `column.hideable: false` omits a required column from the settings dialog.
108
- - Checkbox and “Show all” changes remain drafts until the user confirms with “OK”. Cancel, Escape, and backdrop dismissal discard the draft.
109
- - The `columnVisibility*` label props localize the button, title, description, “Show all”, apply, and cancel labels.
110
-
111
- `TableListForm` supports the same `sticky-actions` prop and `column.sticky: 'right'` behavior. Column visibility is intentionally limited to `TableList` so an actively edited field cannot disappear from an editable row.
112
-
113
- ## Publish To npm
114
-
115
- Before publishing, build the package and verify the tarball:
116
-
117
- ```bash
118
- npm run build -w @enos5/enos-vue-default
119
- npm pack --dry-run -w packages/default
120
- ```
121
-
122
- Then bump the version in `packages/default/package.json`, commit the change, and publish the workspace:
123
-
124
- ```bash
125
- npm publish -w packages/default --access public
126
- ```
127
-
128
- The first public release of this package needs `--access public`. After the package exists on npm, subsequent publishes can use the same command.
129
-
130
- ## Floating action hints
131
-
132
- `FloatingActionHint` is available in the Default package. It requires a unique `id`, a `label`, and a `description`. Bind the default slot’s `descriptionId` to the action’s `aria-describedby`. The hint opens on hover or focus, closes on Escape or leaving the action, and follows viewport resizing and container scrolling. Its content is teleported to `body` to avoid clipping by ancestor containers.
133
-
134
- ```vue
135
- <script setup lang="ts">
136
- import { FloatingActionHint } from '@enos5/enos-vue-default'
137
- </script>
138
-
139
- <template>
140
- <FloatingActionHint
141
- id="save-action-hint"
142
- label="Save"
143
- description="Save your changes without leaving this page."
144
- >
145
- <template #default="{ descriptionId }">
146
- <button type="button" :aria-describedby="descriptionId">Save</button>
147
- </template>
148
- </FloatingActionHint>
149
- </template>
150
- ```
151
-
152
- A runnable usage example is available in `examples/FloatingActionHint.vue`.
1
+ # `@enos5/enos-vue-default`
2
+
3
+ Shared Vue 3 UI components from Enos, packaged as the Default workspace inside the monorepo.
4
+
5
+ ## Requirements
6
+
7
+ - Node.js 20+
8
+ - npm
9
+
10
+ ## Install
11
+
12
+ From the workspace root:
13
+
14
+ ```bash
15
+ npm install
16
+ ```
17
+
18
+ Build this package:
19
+
20
+ ```bash
21
+ npm run build -w @enos5/enos-vue-default
22
+ ```
23
+
24
+ ## Use In Another Project
25
+
26
+ Install the published package:
27
+
28
+ ```bash
29
+ npm install @enos5/enos-vue-default
30
+ ```
31
+
32
+ This package expects these peer dependencies in the consuming app:
33
+
34
+ - `vue`
35
+ - `@inertiajs/vue3` (`^2.0.0` or `^3.0.0`)
36
+ - `@heroicons/vue`
37
+ - `vue-i18n`
38
+
39
+ Rich text support uses TinyMCE and is bundled as a regular dependency in this library. The component set mirrors the Jetstream package except for `ApplicationLogo`, `AuthenticationCard`, `Banner`, `NavGroup`, `NavLink`, `NavMenu`, and `ResponsiveNavLink`.
40
+
41
+ You can register everything globally:
42
+
43
+ ```ts
44
+ import { createApp } from 'vue'
45
+ import App from './App.vue'
46
+ import { EnosVueDefault } from '@enos5/enos-vue-default'
47
+
48
+ createApp(App).use(EnosVueDefault).mount('#app')
49
+ ```
50
+
51
+ Or import individual components:
52
+
53
+ ```ts
54
+ import { Button, ColorPicker, TextInput } from '@enos5/enos-vue-default'
55
+ ```
56
+
57
+ `ColorPicker` resolves its built-in UI labels through `vue-i18n` using the English copy as keys. If your app wants localized picker chrome, define translations for keys such as `Color`, `Selected color`, `Pick color from screen`, `Hue`, `Opacity`, `Hex value`, `Saturation and brightness for {color}`, and `Rainbow color area for {color}`.
58
+
59
+ `DateInput` and `DateRangeInput` default to English locale behavior. Pass `locale` to override that, and for native browser date fields remember the final picker UI is still browser-controlled, with `lang` used as the locale hint.
60
+
61
+ Styles are loaded automatically when you import the package entrypoint, so consumers do not have to remember a separate CSS import.
62
+
63
+ If a consuming app wants earlier stylesheet loading during `npm run dev`, it can opt into the stable stylesheet entry explicitly:
64
+
65
+ ```ts
66
+ import '@enos5/enos-vue-default/styles.css'
67
+ ```
68
+
69
+ That explicit import is optional. It mainly improves dev-mode first paint and avoids importing from `dist` directly.
70
+
71
+ ## Table column controls
72
+
73
+ `TableList` keeps its existing behavior unless the new controls are enabled:
74
+
75
+ ```vue
76
+ <script setup>
77
+ import { ref } from 'vue'
78
+ import { TableList } from '@enos5/enos-vue-default'
79
+
80
+ const hiddenColumns = ref(['brand'])
81
+ const columns = [
82
+ { key: 'name', label: 'Name', hideable: false },
83
+ { key: 'brand', label: 'Brand' },
84
+ { key: 'status', label: 'Status', sticky: 'right', width: '8rem' },
85
+ ]
86
+ </script>
87
+
88
+ <template>
89
+ <TableList
90
+ v-model:hidden-columns="hiddenColumns"
91
+ :columns="columns"
92
+ :data="rows"
93
+ column-visibility
94
+ sticky-actions
95
+ >
96
+ <template #actions="{ item }">
97
+ <!-- row actions -->
98
+ </template>
99
+ </TableList>
100
+ </template>
101
+ ```
102
+
103
+ - `sticky-actions` keeps the dedicated `actions` slot column visible at the right edge during horizontal scrolling, keeps multi-button groups on one line, and right-aligns the whole group.
104
+ - `column.sticky: 'right'` (or `true`) pins a regular data column. A regular column can render custom buttons through its named slot, but it remains distinct from the dedicated `actions` slot column. Multiple sticky columns calculate their right offsets automatically.
105
+ - `column-visibility` displays the built-in settings button and dialog.
106
+ - `v-model:hidden-columns` controls the hidden column keys. Without the model, `column.hidden: true` supplies the initial internal state.
107
+ - `column.hideable: false` omits a required column from the settings dialog.
108
+ - Checkbox and “Show all” changes remain drafts until the user confirms with “OK”. Cancel, Escape, and backdrop dismissal discard the draft.
109
+ - The `columnVisibility*` label props localize the button, title, description, “Show all”, apply, and cancel labels.
110
+
111
+ `TableListForm` supports the same `sticky-actions` prop and `column.sticky: 'right'` behavior. Column visibility is intentionally limited to `TableList` so an actively edited field cannot disappear from an editable row.
112
+
113
+ ## Publish To npm
114
+
115
+ Before publishing, build the package and verify the tarball:
116
+
117
+ ```bash
118
+ npm run build -w @enos5/enos-vue-default
119
+ npm pack --dry-run -w packages/default
120
+ ```
121
+
122
+ Then bump the version in `packages/default/package.json`, commit the change, and publish the workspace:
123
+
124
+ ```bash
125
+ npm publish -w packages/default --access public
126
+ ```
127
+
128
+ The first public release of this package needs `--access public`. After the package exists on npm, subsequent publishes can use the same command.
129
+
130
+ ## Floating action hints
131
+
132
+ `FloatingActionHint` is available in the Default package. It requires a unique `id`, a `label`, and a `description`. Bind the default slot’s `descriptionId` to the action’s `aria-describedby`. The hint opens on hover or focus, closes on Escape or leaving the action, and follows viewport resizing and container scrolling. Its content is teleported to `body` to avoid clipping by ancestor containers.
133
+
134
+ ```vue
135
+ <script setup lang="ts">
136
+ import { FloatingActionHint } from '@enos5/enos-vue-default'
137
+ </script>
138
+
139
+ <template>
140
+ <FloatingActionHint
141
+ id="save-action-hint"
142
+ label="Save"
143
+ description="Save your changes without leaving this page."
144
+ >
145
+ <template #default="{ descriptionId }">
146
+ <button type="button" :aria-describedby="descriptionId">Save</button>
147
+ </template>
148
+ </FloatingActionHint>
149
+ </template>
150
+ ```
151
+
152
+ A runnable usage example is available in `examples/FloatingActionHint.vue`.
153
+
154
+ ## File uploads
155
+
156
+ Use `InputGroup` with `type="file"` for an upload control without a current-image preview. It accepts any file type by default. Pass `accept` to limit the browser picker using comma-separated extensions or MIME types.
157
+
158
+ ```vue
159
+ <script setup>
160
+ import { ref } from 'vue'
161
+ import { InputGroup } from '@enos5/enos-vue-default'
162
+
163
+ const attachment = ref(null)
164
+ </script>
165
+
166
+ <template>
167
+ <InputGroup
168
+ v-model="attachment"
169
+ type="file"
170
+ label="Attachment"
171
+ accept=".pdf,.docx"
172
+ />
173
+ </template>
174
+ ```
175
+
176
+ The model receives a `File` or `null`. The picker filter does not replace server-side file validation. `FileInput` is also available as a standalone component.
@@ -1,4 +1,4 @@
1
- import { st as __commonJSMin } from "./plugin-uaO1JUc1.js";
1
+ import { ct as __commonJSMin } from "./plugin-D38JDSJ2.js";
2
2
  //#endregion
3
3
  //#region ../../node_modules/tinymce/plugins/code/index.js
4
4
  (/* @__PURE__ */ __commonJSMin((() => {
@@ -84,4 +84,4 @@ import { st as __commonJSMin } from "./plugin-uaO1JUc1.js";
84
84
  })))();
85
85
  //#endregion
86
86
 
87
- //# sourceMappingURL=code-BSvRc_GA.js.map
87
+ //# sourceMappingURL=code-DaS2zQdM.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"code-BSvRc_GA.js","names":[],"sources":["../../../node_modules/tinymce/plugins/code/plugin.js","../../../node_modules/tinymce/plugins/code/index.js"],"sourcesContent":["/**\n * TinyMCE version 8.6.0 (2026-06-03)\n */\n\n(function () {\n 'use strict';\n\n var global = tinymce.util.Tools.resolve('tinymce.PluginManager');\n\n const setContent = (editor, html) => {\n // We get a lovely \"Wrong document\" error in IE 11 if we\n // don't move the focus to the editor before creating an undo\n // transaction since it tries to make a bookmark for the current selection\n editor.focus();\n editor.undoManager.transact(() => {\n editor.setContent(html);\n });\n editor.selection.setCursorLocation();\n editor.nodeChanged();\n };\n const getContent = (editor) => {\n return editor.getContent({ source_view: true });\n };\n\n const open = (editor) => {\n const editorContent = getContent(editor);\n editor.windowManager.open({\n title: 'Source Code',\n size: 'large',\n body: {\n type: 'panel',\n items: [\n {\n type: 'textarea',\n name: 'code',\n spellcheck: false,\n }\n ]\n },\n buttons: [\n {\n type: 'cancel',\n name: 'cancel',\n text: 'Cancel'\n },\n {\n type: 'submit',\n name: 'save',\n text: 'Save',\n primary: true\n }\n ],\n initialData: {\n code: editorContent\n },\n onSubmit: (api) => {\n setContent(editor, api.getData().code);\n api.close();\n }\n });\n };\n\n const register$1 = (editor) => {\n editor.addCommand('mceCodeEditor', () => {\n open(editor);\n });\n };\n\n const register = (editor) => {\n const onAction = () => editor.execCommand('mceCodeEditor');\n editor.ui.registry.addButton('code', {\n icon: 'sourcecode',\n tooltip: 'Source code',\n onAction\n });\n editor.ui.registry.addMenuItem('code', {\n icon: 'sourcecode',\n text: 'Source code',\n onAction\n });\n };\n\n var Plugin = () => {\n global.add('code', (editor) => {\n register$1(editor);\n register(editor);\n return {};\n });\n };\n\n Plugin();\n /** *****\n * DO NOT EXPORT ANYTHING\n *\n * IF YOU DO ROLLUP WILL LEAVE A GLOBAL ON THE PAGE\n *******/\n\n})();\n","// Exports the \"code\" plugin for usage with module loaders\n// Usage:\n// CommonJS:\n// require('tinymce/plugins/code')\n// ES2015:\n// import 'tinymce/plugins/code'\nrequire('./plugin.js');"],"x_google_ignoreList":[0,1],"mappings":";;;;;;;CAIA,CAAC,WAAY;EACT;EAEA,IAAI,SAAS,QAAQ,KAAK,MAAM,QAAQ,uBAAuB;EAE/D,MAAM,cAAc,QAAQ,SAAS;GAIjC,OAAO,MAAM;GACb,OAAO,YAAY,eAAe;IAC9B,OAAO,WAAW,IAAI;GAC1B,CAAC;GACD,OAAO,UAAU,kBAAkB;GACnC,OAAO,YAAY;EACvB;EACA,MAAM,cAAc,WAAW;GAC3B,OAAO,OAAO,WAAW,EAAE,aAAa,KAAK,CAAC;EAClD;EAEA,MAAM,QAAQ,WAAW;GACrB,MAAM,gBAAgB,WAAW,MAAM;GACvC,OAAO,cAAc,KAAK;IACtB,OAAO;IACP,MAAM;IACN,MAAM;KACF,MAAM;KACN,OAAO,CACH;MACI,MAAM;MACN,MAAM;MACN,YAAY;KAChB,CACJ;IACJ;IACA,SAAS,CACL;KACI,MAAM;KACN,MAAM;KACN,MAAM;IACV,GACA;KACI,MAAM;KACN,MAAM;KACN,MAAM;KACN,SAAS;IACb,CACJ;IACA,aAAa,EACT,MAAM,cACV;IACA,WAAW,QAAQ;KACf,WAAW,QAAQ,IAAI,QAAQ,EAAE,IAAI;KACrC,IAAI,MAAM;IACd;GACJ,CAAC;EACL;EAEA,MAAM,cAAc,WAAW;GAC3B,OAAO,WAAW,uBAAuB;IACrC,KAAK,MAAM;GACf,CAAC;EACL;EAEA,MAAM,YAAY,WAAW;GACzB,MAAM,iBAAiB,OAAO,YAAY,eAAe;GACzD,OAAO,GAAG,SAAS,UAAU,QAAQ;IACjC,MAAM;IACN,SAAS;IACT;GACJ,CAAC;GACD,OAAO,GAAG,SAAS,YAAY,QAAQ;IACnC,MAAM;IACN,MAAM;IACN;GACJ,CAAC;EACL;EAEA,IAAI,eAAe;GACf,OAAO,IAAI,SAAS,WAAW;IAC3B,WAAW,MAAM;IACjB,SAAS,MAAM;IACf,OAAO,CAAC;GACZ,CAAC;EACL;EAEA,OAAO;;;;;;CAOX,GAAG"}
1
+ {"version":3,"file":"code-DaS2zQdM.js","names":[],"sources":["../../../node_modules/tinymce/plugins/code/plugin.js","../../../node_modules/tinymce/plugins/code/index.js"],"sourcesContent":["/**\n * TinyMCE version 8.6.0 (2026-06-03)\n */\n\n(function () {\n 'use strict';\n\n var global = tinymce.util.Tools.resolve('tinymce.PluginManager');\n\n const setContent = (editor, html) => {\n // We get a lovely \"Wrong document\" error in IE 11 if we\n // don't move the focus to the editor before creating an undo\n // transaction since it tries to make a bookmark for the current selection\n editor.focus();\n editor.undoManager.transact(() => {\n editor.setContent(html);\n });\n editor.selection.setCursorLocation();\n editor.nodeChanged();\n };\n const getContent = (editor) => {\n return editor.getContent({ source_view: true });\n };\n\n const open = (editor) => {\n const editorContent = getContent(editor);\n editor.windowManager.open({\n title: 'Source Code',\n size: 'large',\n body: {\n type: 'panel',\n items: [\n {\n type: 'textarea',\n name: 'code',\n spellcheck: false,\n }\n ]\n },\n buttons: [\n {\n type: 'cancel',\n name: 'cancel',\n text: 'Cancel'\n },\n {\n type: 'submit',\n name: 'save',\n text: 'Save',\n primary: true\n }\n ],\n initialData: {\n code: editorContent\n },\n onSubmit: (api) => {\n setContent(editor, api.getData().code);\n api.close();\n }\n });\n };\n\n const register$1 = (editor) => {\n editor.addCommand('mceCodeEditor', () => {\n open(editor);\n });\n };\n\n const register = (editor) => {\n const onAction = () => editor.execCommand('mceCodeEditor');\n editor.ui.registry.addButton('code', {\n icon: 'sourcecode',\n tooltip: 'Source code',\n onAction\n });\n editor.ui.registry.addMenuItem('code', {\n icon: 'sourcecode',\n text: 'Source code',\n onAction\n });\n };\n\n var Plugin = () => {\n global.add('code', (editor) => {\n register$1(editor);\n register(editor);\n return {};\n });\n };\n\n Plugin();\n /** *****\n * DO NOT EXPORT ANYTHING\n *\n * IF YOU DO ROLLUP WILL LEAVE A GLOBAL ON THE PAGE\n *******/\n\n})();\n","// Exports the \"code\" plugin for usage with module loaders\n// Usage:\n// CommonJS:\n// require('tinymce/plugins/code')\n// ES2015:\n// import 'tinymce/plugins/code'\nrequire('./plugin.js');"],"x_google_ignoreList":[0,1],"mappings":";;;;;;;CAIA,CAAC,WAAY;EACT;EAEA,IAAI,SAAS,QAAQ,KAAK,MAAM,QAAQ,uBAAuB;EAE/D,MAAM,cAAc,QAAQ,SAAS;GAIjC,OAAO,MAAM;GACb,OAAO,YAAY,eAAe;IAC9B,OAAO,WAAW,IAAI;GAC1B,CAAC;GACD,OAAO,UAAU,kBAAkB;GACnC,OAAO,YAAY;EACvB;EACA,MAAM,cAAc,WAAW;GAC3B,OAAO,OAAO,WAAW,EAAE,aAAa,KAAK,CAAC;EAClD;EAEA,MAAM,QAAQ,WAAW;GACrB,MAAM,gBAAgB,WAAW,MAAM;GACvC,OAAO,cAAc,KAAK;IACtB,OAAO;IACP,MAAM;IACN,MAAM;KACF,MAAM;KACN,OAAO,CACH;MACI,MAAM;MACN,MAAM;MACN,YAAY;KAChB,CACJ;IACJ;IACA,SAAS,CACL;KACI,MAAM;KACN,MAAM;KACN,MAAM;IACV,GACA;KACI,MAAM;KACN,MAAM;KACN,MAAM;KACN,SAAS;IACb,CACJ;IACA,aAAa,EACT,MAAM,cACV;IACA,WAAW,QAAQ;KACf,WAAW,QAAQ,IAAI,QAAQ,EAAE,IAAI;KACrC,IAAI,MAAM;IACd;GACJ,CAAC;EACL;EAEA,MAAM,cAAc,WAAW;GAC3B,OAAO,WAAW,uBAAuB;IACrC,KAAK,MAAM;GACf,CAAC;EACL;EAEA,MAAM,YAAY,WAAW;GACzB,MAAM,iBAAiB,OAAO,YAAY,eAAe;GACzD,OAAO,GAAG,SAAS,UAAU,QAAQ;IACjC,MAAM;IACN,SAAS;IACT;GACJ,CAAC;GACD,OAAO,GAAG,SAAS,YAAY,QAAQ;IACnC,MAAM;IACN,MAAM;IACN;GACJ,CAAC;EACL;EAEA,IAAI,eAAe;GACf,OAAO,IAAI,SAAS,WAAW;IAC3B,WAAW,MAAM;IACjB,SAAS,MAAM;IACf,OAAO,CAAC;GACZ,CAAC;EACL;EAEA,OAAO;;;;;;CAOX,GAAG"}
@@ -79,9 +79,9 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
79
79
  "onUpdate:activeTab"?: ((...args: any[]) => any) | undefined;
80
80
  "onTab-click"?: ((...args: any[]) => any) | undefined;
81
81
  }>, {
82
+ title: string;
82
83
  tabs: unknown[];
83
84
  activeTab: string;
84
- title: string;
85
85
  sticky: boolean;
86
86
  paddingClass: string;
87
87
  cardClass: string;
@@ -2,7 +2,7 @@ declare const _default: typeof __VLS_export;
2
2
  export default _default;
3
3
  declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
4
4
  checked: {
5
- type: (ArrayConstructor | BooleanConstructor)[];
5
+ type: (BooleanConstructor | ArrayConstructor)[];
6
6
  default: boolean;
7
7
  };
8
8
  value: {
@@ -13,7 +13,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
13
13
  "update:checked": (...args: any[]) => void;
14
14
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
15
15
  checked: {
16
- type: (ArrayConstructor | BooleanConstructor)[];
16
+ type: (BooleanConstructor | ArrayConstructor)[];
17
17
  default: boolean;
18
18
  };
19
19
  value: {
@@ -63,11 +63,11 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
63
63
  }>> & Readonly<{
64
64
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
65
65
  }>, {
66
+ modelValue: string | number | boolean | null;
67
+ ui: Record<string, any>;
66
68
  label: string;
67
69
  name: string;
68
70
  disabled: boolean;
69
71
  value: string | number | boolean;
70
- modelValue: string | number | boolean | null;
71
72
  uncheckedValue: string | number | boolean | null;
72
- ui: Record<string, any>;
73
73
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -47,9 +47,9 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
47
47
  }>> & Readonly<{
48
48
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
49
49
  }>, {
50
- name: string;
51
- disabled: boolean;
52
50
  modelValue: unknown[];
53
51
  ui: Record<string, any>;
52
+ name: string;
53
+ disabled: boolean;
54
54
  options: unknown[];
55
55
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -59,10 +59,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
59
59
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
60
60
  onBlur?: ((...args: any[]) => any) | undefined;
61
61
  }>, {
62
- disabled: boolean;
63
- variant: string;
64
62
  modelValue: string | null;
65
63
  ui: Record<string, any>;
64
+ disabled: boolean;
65
+ variant: string;
66
66
  disabledClass: string;
67
67
  allowAlpha: boolean;
68
68
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -2,7 +2,7 @@ declare const _default: typeof __VLS_export;
2
2
  export default _default;
3
3
  declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
4
4
  modelValue: {
5
- type: (ArrayConstructor | StringConstructor | BooleanConstructor | NumberConstructor | null)[];
5
+ type: (StringConstructor | BooleanConstructor | ArrayConstructor | NumberConstructor | null)[];
6
6
  default: string;
7
7
  };
8
8
  modelModifiers: {
@@ -50,43 +50,43 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
50
50
  default: null;
51
51
  };
52
52
  baseClass: {
53
- type: (ArrayConstructor | StringConstructor | ObjectConstructor)[];
53
+ type: (ObjectConstructor | StringConstructor | ArrayConstructor)[];
54
54
  default: string;
55
55
  };
56
56
  normalTextClass: {
57
- type: (ArrayConstructor | StringConstructor | ObjectConstructor)[];
57
+ type: (ObjectConstructor | StringConstructor | ArrayConstructor)[];
58
58
  default: string;
59
59
  };
60
60
  deletedSelectedClass: {
61
- type: (ArrayConstructor | StringConstructor | ObjectConstructor)[];
61
+ type: (ObjectConstructor | StringConstructor | ArrayConstructor)[];
62
62
  default: string;
63
63
  };
64
64
  optionClass: {
65
- type: (ArrayConstructor | StringConstructor | ObjectConstructor)[];
65
+ type: (ObjectConstructor | StringConstructor | ArrayConstructor)[];
66
66
  default: string;
67
67
  };
68
68
  deletedOptionClass: {
69
- type: (ArrayConstructor | StringConstructor | ObjectConstructor)[];
69
+ type: (ObjectConstructor | StringConstructor | ArrayConstructor)[];
70
70
  default: string;
71
71
  };
72
72
  placeholderClass: {
73
- type: (ArrayConstructor | StringConstructor | ObjectConstructor)[];
73
+ type: (ObjectConstructor | StringConstructor | ArrayConstructor)[];
74
74
  default: string;
75
75
  };
76
76
  dropdownClass: {
77
- type: (ArrayConstructor | StringConstructor | ObjectConstructor)[];
77
+ type: (ObjectConstructor | StringConstructor | ArrayConstructor)[];
78
78
  default: string;
79
79
  };
80
80
  dropdownOptionClass: {
81
- type: (ArrayConstructor | StringConstructor | ObjectConstructor)[];
81
+ type: (ObjectConstructor | StringConstructor | ArrayConstructor)[];
82
82
  default: string;
83
83
  };
84
84
  dropdownSelectedClass: {
85
- type: (ArrayConstructor | StringConstructor | ObjectConstructor)[];
85
+ type: (ObjectConstructor | StringConstructor | ArrayConstructor)[];
86
86
  default: string;
87
87
  };
88
88
  dropdownHighlightedClass: {
89
- type: (ArrayConstructor | StringConstructor | ObjectConstructor)[];
89
+ type: (ObjectConstructor | StringConstructor | ArrayConstructor)[];
90
90
  default: string;
91
91
  };
92
92
  searchable: {
@@ -98,7 +98,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
98
98
  default: string;
99
99
  };
100
100
  searchInputClass: {
101
- type: (ArrayConstructor | StringConstructor | ObjectConstructor)[];
101
+ type: (ObjectConstructor | StringConstructor | ArrayConstructor)[];
102
102
  default: string;
103
103
  };
104
104
  noOptionsText: {
@@ -113,7 +113,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
113
113
  "update:modelValue": (...args: any[]) => void;
114
114
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
115
115
  modelValue: {
116
- type: (ArrayConstructor | StringConstructor | BooleanConstructor | NumberConstructor | null)[];
116
+ type: (StringConstructor | BooleanConstructor | ArrayConstructor | NumberConstructor | null)[];
117
117
  default: string;
118
118
  };
119
119
  modelModifiers: {
@@ -161,43 +161,43 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
161
161
  default: null;
162
162
  };
163
163
  baseClass: {
164
- type: (ArrayConstructor | StringConstructor | ObjectConstructor)[];
164
+ type: (ObjectConstructor | StringConstructor | ArrayConstructor)[];
165
165
  default: string;
166
166
  };
167
167
  normalTextClass: {
168
- type: (ArrayConstructor | StringConstructor | ObjectConstructor)[];
168
+ type: (ObjectConstructor | StringConstructor | ArrayConstructor)[];
169
169
  default: string;
170
170
  };
171
171
  deletedSelectedClass: {
172
- type: (ArrayConstructor | StringConstructor | ObjectConstructor)[];
172
+ type: (ObjectConstructor | StringConstructor | ArrayConstructor)[];
173
173
  default: string;
174
174
  };
175
175
  optionClass: {
176
- type: (ArrayConstructor | StringConstructor | ObjectConstructor)[];
176
+ type: (ObjectConstructor | StringConstructor | ArrayConstructor)[];
177
177
  default: string;
178
178
  };
179
179
  deletedOptionClass: {
180
- type: (ArrayConstructor | StringConstructor | ObjectConstructor)[];
180
+ type: (ObjectConstructor | StringConstructor | ArrayConstructor)[];
181
181
  default: string;
182
182
  };
183
183
  placeholderClass: {
184
- type: (ArrayConstructor | StringConstructor | ObjectConstructor)[];
184
+ type: (ObjectConstructor | StringConstructor | ArrayConstructor)[];
185
185
  default: string;
186
186
  };
187
187
  dropdownClass: {
188
- type: (ArrayConstructor | StringConstructor | ObjectConstructor)[];
188
+ type: (ObjectConstructor | StringConstructor | ArrayConstructor)[];
189
189
  default: string;
190
190
  };
191
191
  dropdownOptionClass: {
192
- type: (ArrayConstructor | StringConstructor | ObjectConstructor)[];
192
+ type: (ObjectConstructor | StringConstructor | ArrayConstructor)[];
193
193
  default: string;
194
194
  };
195
195
  dropdownSelectedClass: {
196
- type: (ArrayConstructor | StringConstructor | ObjectConstructor)[];
196
+ type: (ObjectConstructor | StringConstructor | ArrayConstructor)[];
197
197
  default: string;
198
198
  };
199
199
  dropdownHighlightedClass: {
200
- type: (ArrayConstructor | StringConstructor | ObjectConstructor)[];
200
+ type: (ObjectConstructor | StringConstructor | ArrayConstructor)[];
201
201
  default: string;
202
202
  };
203
203
  searchable: {
@@ -209,7 +209,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
209
209
  default: string;
210
210
  };
211
211
  searchInputClass: {
212
- type: (ArrayConstructor | StringConstructor | ObjectConstructor)[];
212
+ type: (ObjectConstructor | StringConstructor | ArrayConstructor)[];
213
213
  default: string;
214
214
  };
215
215
  noOptionsText: {
@@ -223,9 +223,9 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
223
223
  }>> & Readonly<{
224
224
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
225
225
  }>, {
226
- disabled: boolean;
227
226
  modelValue: string | number | boolean | unknown[] | null;
228
227
  ui: Record<string, any>;
228
+ disabled: boolean;
229
229
  modelModifiers: Record<string, any>;
230
230
  options: unknown[];
231
231
  placeholder: string;
@@ -236,18 +236,18 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
236
236
  valueKey: string;
237
237
  deletedKey: string;
238
238
  optionLabel: Function;
239
- baseClass: string | unknown[] | Record<string, any>;
240
- normalTextClass: string | unknown[] | Record<string, any>;
241
- deletedSelectedClass: string | unknown[] | Record<string, any>;
242
- optionClass: string | unknown[] | Record<string, any>;
243
- deletedOptionClass: string | unknown[] | Record<string, any>;
244
- placeholderClass: string | unknown[] | Record<string, any>;
245
- dropdownClass: string | unknown[] | Record<string, any>;
246
- dropdownOptionClass: string | unknown[] | Record<string, any>;
247
- dropdownSelectedClass: string | unknown[] | Record<string, any>;
248
- dropdownHighlightedClass: string | unknown[] | Record<string, any>;
239
+ baseClass: string | Record<string, any> | unknown[];
240
+ normalTextClass: string | Record<string, any> | unknown[];
241
+ deletedSelectedClass: string | Record<string, any> | unknown[];
242
+ optionClass: string | Record<string, any> | unknown[];
243
+ deletedOptionClass: string | Record<string, any> | unknown[];
244
+ placeholderClass: string | Record<string, any> | unknown[];
245
+ dropdownClass: string | Record<string, any> | unknown[];
246
+ dropdownOptionClass: string | Record<string, any> | unknown[];
247
+ dropdownSelectedClass: string | Record<string, any> | unknown[];
248
+ dropdownHighlightedClass: string | Record<string, any> | unknown[];
249
249
  searchable: boolean;
250
250
  searchPlaceholder: string;
251
- searchInputClass: string | unknown[] | Record<string, any>;
251
+ searchInputClass: string | Record<string, any> | unknown[];
252
252
  noOptionsText: string;
253
253
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -57,9 +57,9 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
57
57
  }>> & Readonly<{
58
58
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
59
59
  }>, {
60
- disabled: boolean;
61
60
  modelValue: string | number | null;
62
61
  ui: Record<string, any>;
62
+ disabled: boolean;
63
63
  disabledClass: string;
64
64
  locale: string;
65
65
  withTimestamp: boolean;
@@ -101,10 +101,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
101
101
  }>> & Readonly<{
102
102
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
103
103
  }>, {
104
- label: string;
105
- disabled: boolean;
106
104
  modelValue: Record<string, any>;
107
105
  ui: Record<string, any>;
106
+ label: string;
107
+ disabled: boolean;
108
108
  disabledClass: string;
109
109
  placeholder: string;
110
110
  locale: string;