@sedoo/unidoo 0.1.75 → 0.2.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/unidoo/404.html +25 -0
- package/dist/unidoo/README.html +28 -0
- package/dist/unidoo/api-examples.html +115 -0
- package/dist/unidoo/assets/README.md.BZ5Xhpv0.js +1 -0
- package/dist/unidoo/assets/README.md.BZ5Xhpv0.lean.js +1 -0
- package/dist/unidoo/assets/api-examples.md.DBhC6zLa.js +16 -0
- package/dist/unidoo/assets/api-examples.md.DBhC6zLa.lean.js +1 -0
- package/dist/unidoo/assets/app._GYTos2W.js +1 -0
- package/dist/unidoo/assets/captcha_README.md.DD-ycQoE.js +14 -0
- package/dist/unidoo/assets/captcha_README.md.DD-ycQoE.lean.js +1 -0
- package/dist/unidoo/assets/chunks/framework.BNUUHgeN.js +20 -0
- package/dist/unidoo/assets/chunks/theme.dgUwZt0m.js +17 -0
- package/dist/unidoo/assets/confirm-dialog_README.md.TA2YAyOM.js +40 -0
- package/dist/unidoo/assets/confirm-dialog_README.md.TA2YAyOM.lean.js +1 -0
- package/dist/unidoo/assets/crud-table_README.md.DssifgeL.js +24 -0
- package/dist/unidoo/assets/crud-table_README.md.DssifgeL.lean.js +1 -0
- package/dist/unidoo/assets/index.md.D-nQzHqq.js +1 -0
- package/dist/unidoo/assets/index.md.D-nQzHqq.lean.js +1 -0
- package/dist/unidoo/assets/inter-italic-cyrillic-ext.r48I6akx.woff2 +0 -0
- package/dist/unidoo/assets/inter-italic-cyrillic.By2_1cv3.woff2 +0 -0
- package/dist/unidoo/assets/inter-italic-greek-ext.1u6EdAuj.woff2 +0 -0
- package/dist/unidoo/assets/inter-italic-greek.DJ8dCoTZ.woff2 +0 -0
- package/dist/unidoo/assets/inter-italic-latin-ext.CN1xVJS-.woff2 +0 -0
- package/dist/unidoo/assets/inter-italic-latin.C2AdPX0b.woff2 +0 -0
- package/dist/unidoo/assets/inter-italic-vietnamese.BSbpV94h.woff2 +0 -0
- package/dist/unidoo/assets/inter-roman-cyrillic-ext.BBPuwvHQ.woff2 +0 -0
- package/dist/unidoo/assets/inter-roman-cyrillic.C5lxZ8CY.woff2 +0 -0
- package/dist/unidoo/assets/inter-roman-greek-ext.CqjqNYQ-.woff2 +0 -0
- package/dist/unidoo/assets/inter-roman-greek.BBVDIX6e.woff2 +0 -0
- package/dist/unidoo/assets/inter-roman-latin-ext.4ZJIpNVo.woff2 +0 -0
- package/dist/unidoo/assets/inter-roman-latin.Di8DUHzh.woff2 +0 -0
- package/dist/unidoo/assets/inter-roman-vietnamese.BjW4sHH5.woff2 +0 -0
- package/dist/unidoo/assets/markdown-examples.md.qFdbvAEC.js +33 -0
- package/dist/unidoo/assets/markdown-examples.md.qFdbvAEC.lean.js +1 -0
- package/dist/unidoo/assets/style.DcdIs2mU.css +5 -0
- package/dist/unidoo/assets/unidoo-alert_README.md.CDBoKUvE.js +21 -0
- package/dist/unidoo/assets/unidoo-alert_README.md.CDBoKUvE.lean.js +1 -0
- package/dist/unidoo/assets/unidoo-formatError_README.md.D88kRSAN.js +20 -0
- package/dist/unidoo/assets/unidoo-formatError_README.md.D88kRSAN.lean.js +1 -0
- package/dist/unidoo/assets/unidoo-heatmap_README.md.CWPHTlQQ.js +9 -0
- package/dist/unidoo/assets/unidoo-heatmap_README.md.CWPHTlQQ.lean.js +1 -0
- package/dist/unidoo/assets/unidoo-integration_README.md.BfYvxL4t.js +3 -0
- package/dist/unidoo/assets/unidoo-integration_README.md.BfYvxL4t.lean.js +1 -0
- package/dist/unidoo/assets/unidoo-keycloak_README.md.BFwhUR1e.js +94 -0
- package/dist/unidoo/assets/unidoo-keycloak_README.md.BFwhUR1e.lean.js +1 -0
- package/dist/unidoo/assets/unidoo-mapgeofeatures_README.md.DRFYhHxL.js +17 -0
- package/dist/unidoo/assets/unidoo-mapgeofeatures_README.md.DRFYhHxL.lean.js +1 -0
- package/dist/unidoo/assets/unidoo-markdown_README.md.CJiUs_1Z.js +3 -0
- package/dist/unidoo/assets/unidoo-markdown_README.md.CJiUs_1Z.lean.js +1 -0
- package/dist/unidoo/assets/unidoo-player_README.md.C-ZkMmPM.js +41 -0
- package/dist/unidoo/assets/unidoo-player_README.md.C-ZkMmPM.lean.js +1 -0
- package/dist/unidoo/assets/unidoo-sso-users_README.md.CW5npEfC.js +1 -0
- package/dist/unidoo/assets/unidoo-sso-users_README.md.CW5npEfC.lean.js +1 -0
- package/dist/unidoo/assets/unidoo-trajectorymap_README.md.SsigyJ2k.js +4 -0
- package/dist/unidoo/assets/unidoo-trajectorymap_README.md.SsigyJ2k.lean.js +1 -0
- package/dist/unidoo/assets/unidoo-uuid_README.md.ciL1hMaH.js +7 -0
- package/dist/unidoo/assets/unidoo-uuid_README.md.ciL1hMaH.lean.js +1 -0
- package/dist/unidoo/assets/unidoo-viewer_README.md.ClgkM8DW.js +4 -0
- package/dist/unidoo/assets/unidoo-viewer_README.md.ClgkM8DW.lean.js +1 -0
- package/dist/unidoo/captcha/README.html +41 -0
- package/dist/unidoo/confirm-dialog/README.html +67 -0
- package/dist/unidoo/crud-table/README.html +51 -0
- package/dist/unidoo/hashmap.json +1 -0
- package/dist/unidoo/index.html +28 -0
- package/dist/unidoo/markdown-examples.html +60 -0
- package/dist/unidoo/unidoo-alert/README.html +48 -0
- package/dist/unidoo/unidoo-formatError/README.html +47 -0
- package/dist/unidoo/unidoo-heatmap/README.html +36 -0
- package/dist/unidoo/unidoo-integration/README.html +30 -0
- package/dist/unidoo/unidoo-keycloak/README.html +121 -0
- package/dist/unidoo/unidoo-mapgeofeatures/README.html +44 -0
- package/dist/unidoo/unidoo-markdown/README.html +30 -0
- package/dist/unidoo/unidoo-player/README.html +68 -0
- package/dist/unidoo/unidoo-sso-users/README.html +28 -0
- package/dist/unidoo/unidoo-trajectorymap/README.html +31 -0
- package/dist/unidoo/unidoo-uuid/README.html +34 -0
- package/dist/unidoo/unidoo-viewer/README.html +31 -0
- package/dist/unidoo/unidoo.css +1 -0
- package/dist/unidoo/unidoo.es.js +290 -0
- package/dist/unidoo/unidoo.umd.js +1 -1888
- package/dist/unidoo/vp-icons.css +1 -0
- package/package.json +29 -34
- package/src/components/UnidooAlert.vue +166 -117
- package/src/components/UnidooCaptcha.vue +70 -84
- package/src/globals.js +22 -0
- package/src/index.js +7 -0
- package/src/plugin.js +23 -278
- package/src/plugin.js.old +281 -0
- package/src/services/alertService.js +102 -0
- package/src/services/uuidService.js +25 -0
- package/dist/auth/auth.common.js +0 -11
- package/dist/auth/auth.umd.js +0 -11
- package/dist/auth/auth.umd.min.js +0 -11
- package/dist/auth/demo.html +0 -8
- package/dist/unidoo/demo.html +0 -8
- package/dist/unidoo/unidoo.common.js +0 -1888
- package/dist/unidoo/unidoo.umd.min.js +0 -1888
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import{ac as a,a4 as n,a8 as t,a6 as l,ax as h,z as e}from"./chunks/framework.BNUUHgeN.js";const y=JSON.parse(`{"title":"Modal de confirmation d'action","description":"","frontmatter":{},"headers":[],"relativePath":"confirm-dialog/README.md","filePath":"confirm-dialog/README.md"}`),p={name:"confirm-dialog/README.md"};function k(d,s,E,r,o,g){const i=n("ConfirmDialog");return t(),l("div",null,[s[0]||(s[0]=h(`<h1 id="modal-de-confirmation-d-action" tabindex="-1">Modal de confirmation d'action <a class="header-anchor" href="#modal-de-confirmation-d-action" aria-label="Permalink to "Modal de confirmation d'action""></a></h1><h2 id="utilisation" tabindex="-1">Utilisation <a class="header-anchor" href="#utilisation" aria-label="Permalink to "Utilisation""></a></h2><p>Valider l'action d'un utilisateur.</p><p>Type de composant : <code>Modal</code></p><h2 id="params" tabindex="-1">Params <a class="header-anchor" href="#params" aria-label="Permalink to "Params""></a></h2><table tabindex="0"><thead><tr><th>Name</th><th>Type</th><th>Default</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td><strong>callback</strong></td><td>function</td><td>{}</td><td>yes</td><td>Fonction a appler à la confirmation. Doit une méthode VueJS sans paranthèses. Si la méthode retourne un object Promise l'appelle sera asynchrone, une animation de loading sera visible sur le bouton de confirmation.</td></tr><tr><td><strong>message</strong></td><td>String</td><td>Do you confirm this action ?</td><td>no</td><td>Message principal dans la fenêtre de confirmation</td></tr><tr><td><strong>title</strong></td><td>String</td><td>Confirmation</td><td>no</td><td>Tite de la fenêtre</td></tr><tr><td><strong>titleClasses</strong></td><td>String</td><td>headline</td><td>no</td><td>Classes CSSde la zone titre</td></tr><tr><td><strong>width</strong></td><td>String</td><td>500px</td><td>no</td><td>Largeur de la fenêtre</td></tr><tr><td><strong>cancelButtonLabel</strong></td><td>String</td><td>Cancel</td><td>no</td><td>Label du bouton d'annulation</td></tr><tr><td><strong>confirmButtonLabel</strong></td><td>String</td><td>Confirm</td><td>no</td><td>Label du bouton de confirmation</td></tr></tbody></table><h2 id="synthax" tabindex="-1">Synthax <a class="header-anchor" href="#synthax" aria-label="Permalink to "Synthax""></a></h2><div class="language-html vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">html</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"></span>
|
|
2
|
+
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"><</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">template</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span>
|
|
3
|
+
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> <</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">v-app</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span>
|
|
4
|
+
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> ...</span></span>
|
|
5
|
+
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> <</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">unidoo-confirm-dialog</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> /></span></span>
|
|
6
|
+
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> ...</span></span>
|
|
7
|
+
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> </</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">v-app</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span>
|
|
8
|
+
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"></</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">template</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span>
|
|
9
|
+
<span class="line"></span>
|
|
10
|
+
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"><</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">script</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span>
|
|
11
|
+
<span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">export</span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;"> default</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> {</span></span>
|
|
12
|
+
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> methods: {</span></span>
|
|
13
|
+
<span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> showConfirmDialog</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">: </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">function</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> () {</span></span>
|
|
14
|
+
<span class="line"><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> this</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">.$unidooConfirmDialog.</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">show</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">(</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">this</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">.callback);</span></span>
|
|
15
|
+
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> },</span></span>
|
|
16
|
+
<span class="line"></span>
|
|
17
|
+
<span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> callback</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">: </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">function</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">() {</span></span>
|
|
18
|
+
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> console.</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">log</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">(</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">'Callback has been called'</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">)</span></span>
|
|
19
|
+
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> }</span></span>
|
|
20
|
+
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> },</span></span>
|
|
21
|
+
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">};</span></span>
|
|
22
|
+
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"></</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">script</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span></code></pre></div><h2 id="exemple-synthax-multilangue-customisation" tabindex="-1">Exemple synthax multilangue + customisation <a class="header-anchor" href="#exemple-synthax-multilangue-customisation" aria-label="Permalink to "Exemple synthax multilangue + customisation""></a></h2><div class="language-js vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">js</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> this</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">.$unidooConfirmDialog.</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">show</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">(</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">this</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">.callback, </span></span>
|
|
23
|
+
<span class="line"><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> this</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">.</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">$t</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">(</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">'report.screen.return.confirmation.message'</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">), </span></span>
|
|
24
|
+
<span class="line"><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> this</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">.</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">$t</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">(</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">'report.screen.return.confirmation.title'</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">),</span></span>
|
|
25
|
+
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> 'headline grey lighten-2'</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">,</span></span>
|
|
26
|
+
<span class="line"><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> this</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">.$store.getters.getDialogWidth,</span></span>
|
|
27
|
+
<span class="line"><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> this</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">.</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">$t</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">(</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">'button.cancel'</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">),</span></span>
|
|
28
|
+
<span class="line"><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> this</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">.</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">$t</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">(</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">'button.confirm'</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">));</span></span></code></pre></div><h2 id="exemple-de-methode-callback-pour-animation-loading" tabindex="-1">Exemple de méthode callback pour animation loading <a class="header-anchor" href="#exemple-de-methode-callback-pour-animation-loading" aria-label="Permalink to "Exemple de méthode callback pour animation loading""></a></h2><div class="language-js vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">js</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;"> export</span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;"> default</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> {</span></span>
|
|
29
|
+
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> methods: {</span></span>
|
|
30
|
+
<span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> showConfirmDialog</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">: </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">function</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> () {</span></span>
|
|
31
|
+
<span class="line"><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> this</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">.$unidooConfirmDialog.</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">show</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">(</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">this</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">.callback);</span></span>
|
|
32
|
+
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> },</span></span>
|
|
33
|
+
<span class="line"></span>
|
|
34
|
+
<span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> callback</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">: </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">function</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">() {</span></span>
|
|
35
|
+
<span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;"> return</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> this</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">.axios.</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">delete</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">(</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">this</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">.service</span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">+</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">'/delete/'</span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">+</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">this</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">.Id)</span></span>
|
|
36
|
+
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> .</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">then</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">( () </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">=></span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> console.</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">log</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">(</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">'The item has been deleted'</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">))</span></span>
|
|
37
|
+
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> .</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">catch</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">((</span><span style="--shiki-light:#E36209;--shiki-dark:#FFAB70;">error</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">) </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">=></span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> console.</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">log</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">(error))</span></span>
|
|
38
|
+
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> }</span></span>
|
|
39
|
+
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> },</span></span>
|
|
40
|
+
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> };</span></span></code></pre></div><h2 id="exemple" tabindex="-1">Exemple <a class="header-anchor" href="#exemple" aria-label="Permalink to "Exemple""></a></h2>`,13)),e(i)])}const F=a(p,[["render",k]]);export{y as __pageData,F as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{ac as a,a4 as n,a8 as t,a6 as l,ax as h,z as e}from"./chunks/framework.BNUUHgeN.js";const y=JSON.parse(`{"title":"Modal de confirmation d'action","description":"","frontmatter":{},"headers":[],"relativePath":"confirm-dialog/README.md","filePath":"confirm-dialog/README.md"}`),p={name:"confirm-dialog/README.md"};function k(d,s,E,r,o,g){const i=n("ConfirmDialog");return t(),l("div",null,[s[0]||(s[0]=h("",13)),e(i)])}const F=a(p,[["render",k]]);export{y as __pageData,F as default};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import{ac as a,a4 as s,a8 as e,a6 as o,ax as p,z as l}from"./chunks/framework.BNUUHgeN.js";const b=JSON.parse('{"title":"CRUD Table","description":"","frontmatter":{},"headers":[],"relativePath":"crud-table/README.md","filePath":"crud-table/README.md"}'),u={name:"crud-table/README.md"};function i(r,t,d,c,q,m){const n=s("crud-table");return e(),o("div",null,[t[0]||(t[0]=p(`<h1 id="crud-table" tabindex="-1">CRUD Table <a class="header-anchor" href="#crud-table" aria-label="Permalink to "CRUD Table""></a></h1><h2 id="description" tabindex="-1">Description <a class="header-anchor" href="#description" aria-label="Permalink to "Description""></a></h2><p>Un composant permettant d'afficher et/ou editer un tableau de données simples à partir d'un lien REST.</p><p>Type de données attendues est un tableau JSON.</p><p>Le composant se sert du lien REST comme racine pour les opérations CRUD, pour les réquêtes on utilise axios.</p><ul><li>Méthode POST pour créer un element : lienREST/create</li><li>Méthode PUT pour mettre à jour un element : lienREST/update</li><li id="">Méthode DELETE pour supprimer un element : lienREST/delete/</li></ul><p>Pour une utilisation optimale de ce composant il faut choisir des données non imbriquées. Pout utiliser ce composant insérer le tag <strong>unidoo-crud-table</strong> dans un composant <strong>v-app</strong></p><h2 id="props" tabindex="-1">Props <a class="header-anchor" href="#props" aria-label="Permalink to "Props""></a></h2><table tabindex="0"><thead><tr><th>Nom</th><th>Type</th><th>Defaut</th><th>Requis</th><th>Description</th></tr></thead><tbody><tr><td><strong>columns</strong></td><td>Array</td><td>[ ]</td><td>oui</td><td>Tableau d'objets pour définir les colonnes</td></tr><tr><td><strong>title</strong></td><td>String</td><td>" "</td><td>non</td><td>Titre du tableau</td></tr><tr><td><strong>url</strong></td><td>String</td><td>" "</td><td>oui</td><td>URL du service REST</td></tr><tr><td><strong>onlyUpdate</strong></td><td>Boolean</td><td>false</td><td>non</td><td>Enlève l'option suppression dans actions</td></tr></tbody></table><p>Le parametre <strong>columns</strong> doit contenir obligatoirement les champs 'text' et 'value'. Pour ajouter l'edition rajouter au tableau l'objet { "text": "Actions","value": "actions"}.</p><ul><li>Exemple</li></ul><div class="language- vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang"></span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span> url: "https://services.iagos-data.fr/test/v2.0/constants/countries",</span></span>
|
|
2
|
+
<span class="line"><span> title: "Countries table",</span></span>
|
|
3
|
+
<span class="line"><span> columns:[</span></span>
|
|
4
|
+
<span class="line"><span> {</span></span>
|
|
5
|
+
<span class="line"><span> "text": "Name",</span></span>
|
|
6
|
+
<span class="line"><span> "value": "name",</span></span>
|
|
7
|
+
<span class="line"><span> },</span></span>
|
|
8
|
+
<span class="line"><span> {</span></span>
|
|
9
|
+
<span class="line"><span> "text": "Name 2",</span></span>
|
|
10
|
+
<span class="line"><span> "value": "name2",</span></span>
|
|
11
|
+
<span class="line"><span> },</span></span>
|
|
12
|
+
<span class="line"><span> {</span></span>
|
|
13
|
+
<span class="line"><span> "text": "Region",</span></span>
|
|
14
|
+
<span class="line"><span> "value": "region",</span></span>
|
|
15
|
+
<span class="line"><span> },</span></span>
|
|
16
|
+
<span class="line"><span> {</span></span>
|
|
17
|
+
<span class="line"><span> "text": "Sub Region",</span></span>
|
|
18
|
+
<span class="line"><span> "value": "subRegion",</span></span>
|
|
19
|
+
<span class="line"><span> },</span></span>
|
|
20
|
+
<span class="line"><span> {</span></span>
|
|
21
|
+
<span class="line"><span> "text": "Actions",</span></span>
|
|
22
|
+
<span class="line"><span> "value": "actions",</span></span>
|
|
23
|
+
<span class="line"><span> },</span></span>
|
|
24
|
+
<span class="line"><span> ]</span></span></code></pre></div>`,12)),l(n)])}const g=a(u,[["render",i]]);export{b as __pageData,g as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{ac as a,a4 as s,a8 as e,a6 as o,ax as p,z as l}from"./chunks/framework.BNUUHgeN.js";const b=JSON.parse('{"title":"CRUD Table","description":"","frontmatter":{},"headers":[],"relativePath":"crud-table/README.md","filePath":"crud-table/README.md"}'),u={name:"crud-table/README.md"};function i(r,t,d,c,q,m){const n=s("crud-table");return e(),o("div",null,[t[0]||(t[0]=p("",12)),l(n)])}const g=a(u,[["render",i]]);export{b as __pageData,g as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{ac as e,a8 as t,a6 as a}from"./chunks/framework.BNUUHgeN.js";const p=JSON.parse('{"title":"","description":"","frontmatter":{"layout":"home","hero":{"name":"Unidoo Documentation","text":"Documentation of Unidoo components","tagline":"My great project tagline","actions":[{"theme":"brand","text":"Markdown Examples","link":"/markdown-examples"},{"theme":"alt","text":"API Examples","link":"/api-examples"}]},"features":[{"title":"Feature A","details":"Lorem ipsum dolor sit amet, consectetur adipiscing elit"},{"title":"Feature B","details":"Lorem ipsum dolor sit amet, consectetur adipiscing elit"},{"title":"Feature C","details":"Lorem ipsum dolor sit amet, consectetur adipiscing elit"}]},"headers":[],"relativePath":"index.md","filePath":"index.md"}'),i={name:"index.md"};function o(n,s,r,m,c,l){return t(),a("div")}const u=e(i,[["render",o]]);export{p as __pageData,u as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{ac as e,a8 as t,a6 as a}from"./chunks/framework.BNUUHgeN.js";const p=JSON.parse('{"title":"","description":"","frontmatter":{"layout":"home","hero":{"name":"Unidoo Documentation","text":"Documentation of Unidoo components","tagline":"My great project tagline","actions":[{"theme":"brand","text":"Markdown Examples","link":"/markdown-examples"},{"theme":"alt","text":"API Examples","link":"/api-examples"}]},"features":[{"title":"Feature A","details":"Lorem ipsum dolor sit amet, consectetur adipiscing elit"},{"title":"Feature B","details":"Lorem ipsum dolor sit amet, consectetur adipiscing elit"},{"title":"Feature C","details":"Lorem ipsum dolor sit amet, consectetur adipiscing elit"}]},"headers":[],"relativePath":"index.md","filePath":"index.md"}'),i={name:"index.md"};function o(n,s,r,m,c,l){return t(),a("div")}const u=e(i,[["render",o]]);export{p as __pageData,u as default};
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import{ac as a,a8 as i,a6 as n,ax as t}from"./chunks/framework.BNUUHgeN.js";const E=JSON.parse('{"title":"Markdown Extension Examples","description":"","frontmatter":{},"headers":[],"relativePath":"markdown-examples.md","filePath":"markdown-examples.md"}'),e={name:"markdown-examples.md"};function l(p,s,h,k,r,d){return i(),n("div",null,[...s[0]||(s[0]=[t(`<h1 id="markdown-extension-examples" tabindex="-1">Markdown Extension Examples <a class="header-anchor" href="#markdown-extension-examples" aria-label="Permalink to "Markdown Extension Examples""></a></h1><p>This page demonstrates some of the built-in markdown extensions provided by VitePress.</p><h2 id="syntax-highlighting" tabindex="-1">Syntax Highlighting <a class="header-anchor" href="#syntax-highlighting" aria-label="Permalink to "Syntax Highlighting""></a></h2><p>VitePress provides Syntax Highlighting powered by <a href="https://github.com/shikijs/shiki" target="_blank" rel="noreferrer">Shiki</a>, with additional features like line-highlighting:</p><p><strong>Input</strong></p><div class="language-md vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">md</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">\`\`\`js{4}</span></span>
|
|
2
|
+
<span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">export</span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;"> default</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> {</span></span>
|
|
3
|
+
<span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> data</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> () {</span></span>
|
|
4
|
+
<span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;"> return</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> {</span></span>
|
|
5
|
+
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> msg: </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">'Highlighted!'</span></span>
|
|
6
|
+
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> }</span></span>
|
|
7
|
+
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> }</span></span>
|
|
8
|
+
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">}</span></span>
|
|
9
|
+
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">\`\`\`</span></span></code></pre></div><p><strong>Output</strong></p><div class="language-js vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">js</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">export</span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;"> default</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> {</span></span>
|
|
10
|
+
<span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> data</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> () {</span></span>
|
|
11
|
+
<span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;"> return</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> {</span></span>
|
|
12
|
+
<span class="line highlighted"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> msg: </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">'Highlighted!'</span></span>
|
|
13
|
+
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> }</span></span>
|
|
14
|
+
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> }</span></span>
|
|
15
|
+
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">}</span></span></code></pre></div><h2 id="custom-containers" tabindex="-1">Custom Containers <a class="header-anchor" href="#custom-containers" aria-label="Permalink to "Custom Containers""></a></h2><p><strong>Input</strong></p><div class="language-md vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">md</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">::: info</span></span>
|
|
16
|
+
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">This is an info box.</span></span>
|
|
17
|
+
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">:::</span></span>
|
|
18
|
+
<span class="line"></span>
|
|
19
|
+
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">::: tip</span></span>
|
|
20
|
+
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">This is a tip.</span></span>
|
|
21
|
+
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">:::</span></span>
|
|
22
|
+
<span class="line"></span>
|
|
23
|
+
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">::: warning</span></span>
|
|
24
|
+
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">This is a warning.</span></span>
|
|
25
|
+
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">:::</span></span>
|
|
26
|
+
<span class="line"></span>
|
|
27
|
+
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">::: danger</span></span>
|
|
28
|
+
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">This is a dangerous warning.</span></span>
|
|
29
|
+
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">:::</span></span>
|
|
30
|
+
<span class="line"></span>
|
|
31
|
+
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">::: details</span></span>
|
|
32
|
+
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">This is a details block.</span></span>
|
|
33
|
+
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">:::</span></span></code></pre></div><p><strong>Output</strong></p><div class="info custom-block"><p class="custom-block-title">INFO</p><p>This is an info box.</p></div><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>This is a tip.</p></div><div class="warning custom-block"><p class="custom-block-title">WARNING</p><p>This is a warning.</p></div><div class="danger custom-block"><p class="custom-block-title">DANGER</p><p>This is a dangerous warning.</p></div><details class="details custom-block"><summary>Details</summary><p>This is a details block.</p></details><h2 id="more" tabindex="-1">More <a class="header-anchor" href="#more" aria-label="Permalink to "More""></a></h2><p>Check out the documentation for the <a href="https://vitepress.dev/guide/markdown" target="_blank" rel="noreferrer">full list of markdown extensions</a>.</p>`,19)])])}const c=a(e,[["render",l]]);export{E as __pageData,c as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{ac as a,a8 as i,a6 as n,ax as t}from"./chunks/framework.BNUUHgeN.js";const E=JSON.parse('{"title":"Markdown Extension Examples","description":"","frontmatter":{},"headers":[],"relativePath":"markdown-examples.md","filePath":"markdown-examples.md"}'),e={name:"markdown-examples.md"};function l(p,s,h,k,r,d){return i(),n("div",null,[...s[0]||(s[0]=[t("",19)])])}const c=a(e,[["render",l]]);export{E as __pageData,c as default};
|