@citruslime/ui 1.2.1-beta.0 → 1.2.1
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 -4
- package/dist/citrus-lime-ui.es.js +4602 -0
- package/dist/citrus-lime-ui.umd.js +2 -0
- package/dist/components/accordion/cl-ui-accordion.vue.d.ts +26 -0
- package/dist/components/accordion/index.d.ts +4 -0
- package/dist/components/accordion/item/cl-ui-accordion-item.vue.d.ts +35 -0
- package/dist/{@types/components/accordion/item.d.ts → components/accordion/types.d.ts} +0 -0
- package/dist/components/app/cl-ui-app.vue.d.ts +51 -0
- package/dist/components/app/index.d.ts +1 -0
- package/dist/components/button/cl-ui-button.vue.d.ts +51 -0
- package/dist/components/button/index.d.ts +2 -0
- package/dist/components/button/types.d.ts +4 -0
- package/dist/components/calendar/cl-ui-calendar.vue.d.ts +2 -0
- package/dist/components/calendar/index.d.ts +2 -0
- package/dist/components/calendar/types.d.ts +2 -0
- package/dist/components/calendar/utils.d.ts +38 -0
- package/dist/components/card/cl-ui-card.vue.d.ts +27 -0
- package/dist/components/card/index.d.ts +2 -0
- package/dist/components/card/types.d.ts +2 -0
- package/dist/components/combo-box/cl-ui-combo-box.vue.d.ts +583 -0
- package/dist/components/combo-box/index.d.ts +2 -0
- package/dist/components/combo-box/search-container/cl-ui-combo-box-search.vue.d.ts +276 -0
- package/dist/components/combo-box/search-container/header/cl-ui-combo-box-header.vue.d.ts +42 -0
- package/dist/components/combo-box/search-container/selectable/cl-ui-combo-box-selectable.vue.d.ts +81 -0
- package/dist/{@types/components/combo-box/item.d.ts → components/combo-box/types.d.ts} +0 -0
- package/dist/components/footer/index.d.ts +1 -0
- package/dist/components/grid/cell/cl-ui-grid-cell.vue.d.ts +72 -0
- package/dist/components/grid/cl-ui-grid.vue.d.ts +550 -0
- package/dist/components/grid/filter/cl-ui-grid-filter.vue.d.ts +72 -0
- package/dist/components/grid/filter/filter-methods.d.ts +5 -0
- package/dist/components/grid/footer/cl-ui-grid-footer.vue.d.ts +63 -0
- package/dist/components/grid/header/cl-ui-grid-header.vue.d.ts +207 -0
- package/dist/components/grid/index.d.ts +2 -0
- package/dist/components/grid/types.d.ts +92 -0
- package/dist/components/grid/view-manager/cl-ui-grid-view-manager.vue.d.ts +88 -0
- package/dist/components/header/index.d.ts +2 -0
- package/dist/components/header/menu/cl-ui-header-menu.vue.d.ts +40 -0
- package/dist/components/header/menu/index.d.ts +1 -0
- package/dist/components/index.d.ts +16 -14
- package/dist/components/input/cl-ui-input.vue.d.ts +2 -0
- package/dist/components/input/index.d.ts +2 -0
- package/dist/components/input/types.d.ts +6 -0
- package/dist/components/input/utils.d.ts +44 -0
- package/dist/components/language-switcher/cl-ui-language-switcher.vue.d.ts +37 -0
- package/dist/components/language-switcher/index.d.ts +2 -0
- package/dist/{@types/language.d.ts → components/language-switcher/types.d.ts} +0 -1
- package/dist/components/loading-spinner/index.d.ts +1 -0
- package/dist/components/login/cl-ui-login.vue.d.ts +106 -0
- package/dist/components/login/index.d.ts +2 -0
- package/dist/{@types/components/login/authentication.d.ts → components/login/types.d.ts} +0 -0
- package/dist/components/modal/cl-ui-modal.vue.d.ts +49 -0
- package/dist/components/modal/index.d.ts +2 -0
- package/dist/components/modal/types.d.ts +4 -0
- package/dist/components/navigation/cl-ui-navigation.vue.d.ts +11 -0
- package/dist/components/navigation/group/cl-ui-navigation-group.vue.d.ts +12 -0
- package/dist/components/navigation/icon/cl-ui-navigation-icon.vue.d.ts +20 -0
- package/dist/components/navigation/index.d.ts +5 -0
- package/dist/components/notification/cl-ui-notification.vue.d.ts +36 -0
- package/dist/components/notification/index.d.ts +1 -0
- package/dist/components/notification/types.d.ts +9 -0
- package/dist/components/slider/cl-ui-slider.vue.d.ts +114 -0
- package/dist/components/slider/index.d.ts +1 -0
- package/dist/components/tab/cl-ui-tab.vue.d.ts +52 -0
- package/dist/components/tab/header/cl-ui-tab-header.vue.d.ts +60 -0
- package/dist/components/tab/index.d.ts +4 -0
- package/dist/components/tab/types.d.ts +4 -0
- package/dist/composables/notification.d.ts +1 -1
- package/dist/main.d.ts +3 -5
- package/dist/style.css +1 -1
- package/dist/utils/i18n/config.d.ts +33 -0
- package/dist/utils/i18n/defaults.d.ts +4 -0
- package/dist/utils/i18n/index.d.ts +3 -0
- package/dist/utils/i18n/types.d.ts +97 -0
- package/dist/utils/index.d.ts +2 -6
- package/dist/utils/validation.d.ts +37 -0
- package/package.json +29 -13
- package/dist/.eslintrc.js +0 -448
- package/dist/.stylelintrc.js +0 -119
- package/dist/@types/appUser.d.ts +0 -10
- package/dist/@types/components/accordion/index.d.ts +0 -1
- package/dist/@types/components/combo-box/index.d.ts +0 -2
- package/dist/@types/components/combo-box/localisations.d.ts +0 -19
- package/dist/@types/components/grid/column.d.ts +0 -45
- package/dist/@types/components/grid/index.d.ts +0 -4
- package/dist/@types/components/grid/localisations.d.ts +0 -47
- package/dist/@types/components/grid/request.d.ts +0 -49
- package/dist/@types/components/grid/update.d.ts +0 -4
- package/dist/@types/components/header/index.d.ts +0 -2
- package/dist/@types/components/header/localisations.d.ts +0 -8
- package/dist/@types/components/header/navigation.d.ts +0 -15
- package/dist/@types/components/login/index.d.ts +0 -2
- package/dist/@types/components/login/localisations.d.ts +0 -7
- package/dist/@types/components/notification/index.d.ts +0 -1
- package/dist/@types/components/notification/item.d.ts +0 -7
- package/dist/@types/components/slider/index.d.ts +0 -1
- package/dist/@types/components/slider/localisations.d.ts +0 -3
- package/dist/@types/date-format.d.ts +0 -8
- package/dist/@types/debouncer.d.ts +0 -6
- package/dist/@types/index.d.ts +0 -15
- package/dist/@types/locale.d.ts +0 -10
- package/dist/@types/number-format.d.ts +0 -7
- package/dist/@types/string-format.d.ts +0 -3
- package/dist/@types/string.d.ts +0 -47
- package/dist/theme.js +0 -122
- package/dist/ui.es.js +0 -1
- package/dist/ui.umd.js +0 -1
- package/dist/utils/copy.d.ts +0 -8
- package/dist/utils/debouncer.d.ts +0 -8
- package/dist/utils/extensions/string-utilities.d.ts +0 -83
- package/dist/utils/extensions/string.d.ts +0 -1
- package/dist/utils/i18n/datetime-formats.d.ts +0 -3
- package/dist/utils/i18n/number-formats.d.ts +0 -3
- package/dist/utils/id.d.ts +0 -6
- package/dist/utils/name-of.d.ts +0 -7
- package/dist/utils/sort.d.ts +0 -9
- package/dist/utils/url-params.d.ts +0 -8
- package/src/components/accordion/accordion.vue +0 -30
- package/src/components/button/button.vue +0 -28
- package/src/components/calendar/calendar.vue +0 -35
- package/src/components/card/card.vue +0 -54
- package/src/components/combo-box/combo-box.vue +0 -79
- package/src/components/combo-box/search-container/header-option/header-option.vue +0 -21
- package/src/components/combo-box/search-container/search-container.vue +0 -57
- package/src/components/combo-box/search-container/selectable-option/selectable-option.vue +0 -27
- package/src/components/footer/footer.vue +0 -23
- package/src/components/grid/cell/cell.vue +0 -64
- package/src/components/grid/filter/filter.vue +0 -93
- package/src/components/grid/footer/footer.vue +0 -91
- package/src/components/grid/grid.vue +0 -194
- package/src/components/grid/header/header.vue +0 -39
- package/src/components/grid/view-manager/view-manager.vue +0 -73
- package/src/components/header/header-helper/header-helper.vue +0 -95
- package/src/components/header/header.vue +0 -33
- package/src/components/header/navigation/navigation.vue +0 -84
- package/src/components/language-switcher/language-switcher.vue +0 -36
- package/src/components/loading-spinner/loading-spinner.vue +0 -8
- package/src/components/login/login.vue +0 -101
- package/src/components/modal/modal.vue +0 -48
- package/src/components/notification/notification.vue +0 -36
- package/src/components/slider/slider.vue +0 -41
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
<script lang="ts" src="./login"></script>
|
|
2
|
-
|
|
3
|
-
<style scoped src="./login.css"></style>
|
|
4
|
-
|
|
5
|
-
<template>
|
|
6
|
-
<div class="bg-cover bg-left-bottom h-screen"
|
|
7
|
-
:style="{ 'background-image': `url('${backgroundImage}')` }">
|
|
8
|
-
<form class="bg-secondary-default flex flex-wrap opacity-95 p-10 pb-12 w-full">
|
|
9
|
-
<div class="md:flex-1 md:pb-0 pb-8 w-full">
|
|
10
|
-
<img :src="logo">
|
|
11
|
-
</div>
|
|
12
|
-
|
|
13
|
-
<div class="content-center flex items-center md:pb-0 md:pr-2 md:w-auto pb-2 w-auto">
|
|
14
|
-
<cl-ui-language-switcher v-model:current-locale="selectedLocale"
|
|
15
|
-
:supported-locales="supportedLocales" />
|
|
16
|
-
</div>
|
|
17
|
-
|
|
18
|
-
<div class="md:pb-0 md:pr-2 md:w-1/4 pb-2 w-full">
|
|
19
|
-
<div class="inline relative text-grey-4 w-full">
|
|
20
|
-
<ph-user class="absolute left-3 top-0.5"
|
|
21
|
-
:size="18" />
|
|
22
|
-
|
|
23
|
-
<input v-model.trim="username"
|
|
24
|
-
class="!pb-1 !pl-9 w-full"
|
|
25
|
-
type="email"
|
|
26
|
-
:data-valid="usernameValid"
|
|
27
|
-
:placeholder="localisations.email"
|
|
28
|
-
autocomplete="username"
|
|
29
|
-
@input="clearErrors">
|
|
30
|
-
</div>
|
|
31
|
-
|
|
32
|
-
<div v-show="username !== ''"
|
|
33
|
-
class="text-grey-3 text-sm">
|
|
34
|
-
<div v-show="usernameValid"
|
|
35
|
-
class="flex mt-2">
|
|
36
|
-
<ph-check class="text-primary-default"
|
|
37
|
-
:size="16" />
|
|
38
|
-
|
|
39
|
-
<em class="align-middle inline-block ml-4">
|
|
40
|
-
{{ localisations.validEmail }}
|
|
41
|
-
</em>
|
|
42
|
-
</div>
|
|
43
|
-
|
|
44
|
-
<div v-show="!usernameValid"
|
|
45
|
-
class="flex mt-2">
|
|
46
|
-
<ph-x class="text-danger-default"
|
|
47
|
-
:size="16" />
|
|
48
|
-
|
|
49
|
-
<em class="align-middle inline-block ml-4">
|
|
50
|
-
{{ localisations.invalidEmail }}
|
|
51
|
-
</em>
|
|
52
|
-
</div>
|
|
53
|
-
</div>
|
|
54
|
-
</div>
|
|
55
|
-
|
|
56
|
-
<div class="md:pb-0 md:pr-2 md:w-1/4 pb-2 w-full">
|
|
57
|
-
<div class="inline relative text-grey-4 w-full">
|
|
58
|
-
<ph-lock class="absolute left-3 top-0.5"
|
|
59
|
-
:size="18" />
|
|
60
|
-
|
|
61
|
-
<ph-eye v-show="passwordFieldType === 'password'"
|
|
62
|
-
class="absolute cursor-pointer right-3 top-0.5"
|
|
63
|
-
:size="18"
|
|
64
|
-
@click="passwordFieldType = 'text'" />
|
|
65
|
-
|
|
66
|
-
<ph-eye-slash v-show="passwordFieldType === 'text'"
|
|
67
|
-
class="absolute cursor-pointer right-3 top-0.5"
|
|
68
|
-
:size="18"
|
|
69
|
-
@click="passwordFieldType = 'password'" />
|
|
70
|
-
|
|
71
|
-
<input v-model="password"
|
|
72
|
-
class="!pb-1 !pl-9 !pr-9 w-full"
|
|
73
|
-
:type="passwordFieldType"
|
|
74
|
-
:data-valid="password !== ''"
|
|
75
|
-
:placeholder="localisations.password"
|
|
76
|
-
autocomplete="current-password"
|
|
77
|
-
@input="clearErrors">
|
|
78
|
-
</div>
|
|
79
|
-
</div>
|
|
80
|
-
|
|
81
|
-
<div class="md:w-1/4 w-full">
|
|
82
|
-
<cl-ui-button class="w-full"
|
|
83
|
-
colour="blue"
|
|
84
|
-
:loading="loading"
|
|
85
|
-
:disabled="!usernameValid || password === ''"
|
|
86
|
-
@click.prevent="login">
|
|
87
|
-
{{ localisations.login }}
|
|
88
|
-
</cl-ui-button>
|
|
89
|
-
</div>
|
|
90
|
-
|
|
91
|
-
<span v-show="errors.length"
|
|
92
|
-
class="emphasis-danger mt-4 p-4 text-sm w-full">
|
|
93
|
-
<div v-for="(error, index) in errors"
|
|
94
|
-
:key="index"
|
|
95
|
-
class="font-semibold">
|
|
96
|
-
{{ error }}
|
|
97
|
-
</div>
|
|
98
|
-
</span>
|
|
99
|
-
</form>
|
|
100
|
-
</div>
|
|
101
|
-
</template>
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
<script lang="ts" src="./modal"></script>
|
|
2
|
-
|
|
3
|
-
<template>
|
|
4
|
-
<slot name="trigger"
|
|
5
|
-
v-bind="{ toggleModal }"></slot>
|
|
6
|
-
|
|
7
|
-
<teleport to="body">
|
|
8
|
-
<div v-show="visible"
|
|
9
|
-
class="align-items-center bg-black bg-opacity-40 bottom-0 fixed flex h-full justify-center left-0 right-0 top-0 w-full z-40">
|
|
10
|
-
<div v-bind="$attrs"
|
|
11
|
-
class="bg-white flex flex-wrap mx-0 my-auto overflow-y-auto relative rounded shadow-lg"
|
|
12
|
-
:class="{ 'lg:w-2/12 w-10/12': size === 'x-small', 'w-6/12': size === 'small', 'w-8/12': size === 'medium', 'w-10/12': size === 'large' }">
|
|
13
|
-
<div class="absolute cursor-pointer h-2 leading-5 right-3 text-black text-center top-3 w-5"
|
|
14
|
-
@click="modalAction(false)">
|
|
15
|
-
<ph-x :size="20" />
|
|
16
|
-
</div>
|
|
17
|
-
|
|
18
|
-
<div class="border-b border-grey-2 font-semibold h-11 leading-10 overflow-ellipsis overflow-hidden pl-2 pr-8 text-2xl w-full whitespace-nowrap">
|
|
19
|
-
{{ title }}
|
|
20
|
-
</div>
|
|
21
|
-
|
|
22
|
-
<div class="overflow-y-auto p-2 w-full"
|
|
23
|
-
v-bind="{ toggleModal }">
|
|
24
|
-
<slot></slot>
|
|
25
|
-
</div>
|
|
26
|
-
|
|
27
|
-
<div v-show="showCancelButton || showConfirmButton"
|
|
28
|
-
class="p-2 text-right text-sm w-full">
|
|
29
|
-
<cl-ui-button v-if="showConfirmButton"
|
|
30
|
-
class="mr-2"
|
|
31
|
-
colour="primary"
|
|
32
|
-
size="small"
|
|
33
|
-
:disabled="confirmEnabled === false"
|
|
34
|
-
@click.prevent="modalAction(true)">
|
|
35
|
-
{{ confirmButtonText }}
|
|
36
|
-
</cl-ui-button>
|
|
37
|
-
|
|
38
|
-
<cl-ui-button v-if="showCancelButton"
|
|
39
|
-
colour="danger"
|
|
40
|
-
size="small"
|
|
41
|
-
@click.prevent="modalAction(false)">
|
|
42
|
-
{{ cancelButtonText }}
|
|
43
|
-
</cl-ui-button>
|
|
44
|
-
</div>
|
|
45
|
-
</div>
|
|
46
|
-
</div>
|
|
47
|
-
</teleport>
|
|
48
|
-
</template>
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
<script lang="ts" src="./notification"></script>
|
|
2
|
-
|
|
3
|
-
<template>
|
|
4
|
-
<teleport :to="container">
|
|
5
|
-
<div class="fixed w-80 z-40"
|
|
6
|
-
:class="{
|
|
7
|
-
'top-5 left-5': position === 'top-left',
|
|
8
|
-
'top-5 left-1/2': position === 'top-centre',
|
|
9
|
-
'top-5 right-5': position === 'top-right',
|
|
10
|
-
'bottom-5 left-5': position === 'bottom-left',
|
|
11
|
-
'bottom-5 left-1/2': position === 'bottom-centre',
|
|
12
|
-
'bottom-5 right-5': position === 'bottom-right'
|
|
13
|
-
}">
|
|
14
|
-
<div v-for="(notification, index) in notifications"
|
|
15
|
-
v-bind="$attrs"
|
|
16
|
-
:key="index"
|
|
17
|
-
class="break-words cursor-pointer flex font-semibold group mb-2 overflow-hidden p-4 rounded shadow-lg text-sm"
|
|
18
|
-
:class="{
|
|
19
|
-
'bg-white': notification.colour === 'default',
|
|
20
|
-
'bg-primary-default': notification.colour === 'primary',
|
|
21
|
-
'bg-secondary-default': notification.colour === 'secondary',
|
|
22
|
-
'bg-danger-default': notification.colour === 'danger',
|
|
23
|
-
'bg-warning-default': notification.colour === 'warning'
|
|
24
|
-
}"
|
|
25
|
-
@click="removeNotification(notification)">
|
|
26
|
-
<span class="flex-1 overflow-ellipsis select-none w-64">
|
|
27
|
-
{{ notification.message }}
|
|
28
|
-
</span>
|
|
29
|
-
|
|
30
|
-
<ph-x class="group-hover:opacity-100 inline-block opacity-0"
|
|
31
|
-
:size="16"
|
|
32
|
-
weight="bold" />
|
|
33
|
-
</div>
|
|
34
|
-
</div>
|
|
35
|
-
</teleport>
|
|
36
|
-
</template>
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
<script lang="ts" src="./slider"/>
|
|
2
|
-
|
|
3
|
-
<style scoped src="./slider.css"></style>
|
|
4
|
-
|
|
5
|
-
<template>
|
|
6
|
-
<div v-if="validProps"
|
|
7
|
-
v-bind="$attrs"
|
|
8
|
-
class="flex flex-wrap items-center">
|
|
9
|
-
<input class="!text-sm md:!h-8 md:!w-auto"
|
|
10
|
-
type="number"
|
|
11
|
-
:value="currentValue"
|
|
12
|
-
:min="min"
|
|
13
|
-
:max="max"
|
|
14
|
-
:step="step"
|
|
15
|
-
:disabled="disabled"
|
|
16
|
-
@input="debounce(updateCurrentValue, [ $event.target, $forceUpdate ])">
|
|
17
|
-
|
|
18
|
-
<div class="flex flex-1 flex-wrap items-center md:mt-0 mt-3">
|
|
19
|
-
<span class="bg-grey-0 leading-6 md:ml-2 ml-0 px-3 rounded-full text-center text-xs">
|
|
20
|
-
{{ n(min, Number.isInteger(min) ? NumberFormat.INTEGER : NumberFormat.DECIMAL, currentLocale ) }}
|
|
21
|
-
</span>
|
|
22
|
-
|
|
23
|
-
<input v-model.number="currentValue"
|
|
24
|
-
class="align-middle appearance-none bg-gradient-to-r border border-grey-2 delay-500 ease-in flex-1 h-5 ml-2 outline-none rounded-full transition-colors"
|
|
25
|
-
:style="{ background: `linear-gradient(to right, ${colour} 0%, ${colour} ${percentage}%, white ${percentage}%, white 100%)` }"
|
|
26
|
-
type="range"
|
|
27
|
-
:min="min"
|
|
28
|
-
:max="max"
|
|
29
|
-
:step="step"
|
|
30
|
-
:disabled="disabled">
|
|
31
|
-
|
|
32
|
-
<span class="bg-grey-0 leading-6 ml-2 px-3 rounded-full text-center text-xs">
|
|
33
|
-
{{ n(max, Number.isInteger(max) ? NumberFormat.INTEGER : NumberFormat.DECIMAL, currentLocale ) }}
|
|
34
|
-
</span>
|
|
35
|
-
</div>
|
|
36
|
-
</div>
|
|
37
|
-
<div v-else
|
|
38
|
-
class="emphasis-danger text-sm w-full">
|
|
39
|
-
{{ localisations.invalidProps }}
|
|
40
|
-
</div>
|
|
41
|
-
</template>
|