@kubex/zinc 1.0.3 → 1.0.5
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/.github/workflows/js_build_and_deploy.yaml +1 -1
- package/dist/custom-elements.json +25150 -0
- package/dist/vscode.html-custom-data.json +2874 -0
- package/dist/web-types.json +6611 -0
- package/dist/zn.d.ts +6664 -0
- package/dist/zn.min.css +1 -0
- package/dist/zn.min.js +4740 -0
- package/docs/_includes/default.njk +1 -0
- package/docs/assets/scripts/docs.js +4 -5
- package/docs/assets/scripts/search.js +0 -9
- package/docs/assets/styles/docs.css +3 -3
- package/docs/data/data-table.json +79 -0
- package/docs/data/products-table.json +36 -0
- package/docs/eleventy.config.cjs +3 -0
- package/docs/pages/components/data-select.md +10 -0
- package/docs/pages/components/data-table.md +84 -45
- package/docs/pages/components/dialog.md +1 -1
- package/docs/pages/components/editor.md +1 -3
- package/docs/pages/components/filter-wrapper.md +20 -0
- package/docs/pages/components/icon.md +2 -0
- package/docs/pages/components/item.md +2 -2
- package/docs/pages/components/menu-item.md +12 -3
- package/docs/pages/components/panel.md +17 -0
- package/docs/pages/components/progress-tile.md +17 -1
- package/docs/pages/components/settings-container.md +137 -0
- package/docs/pages/components/textarea.md +1 -1
- package/package.json +3 -1
- package/scss/_root.scss +26 -0
- package/scss/boot.scss +27 -1
- package/scss/mixins/index.scss +30 -1
- package/scss/shared/_base.scss +1 -1
- package/scss/shared/_button.scss +1 -1
- package/scss/shared/layout.scss +7 -0
- package/scss/themes/_dark.scss +5 -5
- package/scss/themes/_light.scss +6 -5
- package/scss/variables/index.scss +9 -0
- package/src/components/alert/alert.component.ts +1 -1
- package/src/components/alert/alert.scss +18 -4
- package/src/components/button/button.component.ts +6 -2
- package/src/components/button/button.scss +16 -1
- package/src/components/button-menu/button-menu.component.ts +23 -15
- package/src/components/button-menu/button-menu.scss +4 -4
- package/src/components/checkbox/checkbox.component.ts +5 -1
- package/src/components/checkbox/checkbox.scss +1 -1
- package/src/components/chip/chip.component.ts +7 -3
- package/src/components/chip/chip.scss +9 -1
- package/src/components/collapsible/collapsible.component.ts +48 -2
- package/src/components/confirm/confirm.component.ts +1 -2
- package/src/components/content-block/content-block.component.ts +25 -1
- package/src/components/content-block/content-block.scss +8 -0
- package/src/components/data-select/data-select.component.ts +1 -1
- package/src/components/data-table/data-table.component.ts +361 -422
- package/src/components/data-table/data-table.scss +6 -1
- package/src/components/datepicker/datepicker.scss +1 -1
- package/src/components/dialog/dialog.component.ts +52 -33
- package/src/components/dialog/dialog.scss +15 -1
- package/src/components/dropdown/dropdown.component.ts +1 -1
- package/src/components/editor/editor.component.ts +196 -158
- package/src/components/editor/editor.scss +25 -5
- package/src/components/editor/modules/ai/index.ts +281 -0
- package/src/components/editor/modules/ai/panel/ai-panel.component.ts +102 -0
- package/src/components/editor/modules/ai/panel/ai-panel.scss +83 -0
- package/src/components/editor/modules/ai/tooltip/ai-tooltip.component.ts +30 -0
- package/src/components/editor/modules/ai/tooltip/ai-tooltip.scss +28 -0
- package/src/components/editor/modules/{attachment-module.ts → attachment/attachment.ts} +7 -7
- package/src/components/editor/modules/context-menu/context-menu-component.ts +115 -0
- package/src/components/editor/modules/context-menu/context-menu.scss +49 -0
- package/src/components/editor/modules/context-menu/context-menu.ts +296 -0
- package/src/components/editor/modules/context-menu/quick-action/index.ts +12 -0
- package/src/components/editor/modules/context-menu/quick-action/quick-action.component.ts +18 -0
- package/src/components/editor/modules/date-picker/date-picker.ts +77 -0
- package/src/components/editor/modules/dialog/dialog.component.ts +115 -0
- package/src/components/editor/modules/dialog/dialog.scss +43 -0
- package/src/components/editor/modules/dialog/dialog.ts +46 -0
- package/src/components/editor/modules/{drag-drop-module.ts → drag-drop/drag-drop.ts} +6 -6
- package/src/components/editor/modules/emoji/emoji.ts +106 -0
- package/src/components/editor/modules/emoji/headless/headless-emoji.component.ts +122 -0
- package/src/components/editor/modules/emoji/headless/headless-emoji.scss +52 -0
- package/src/components/editor/modules/emoji/headless/headless-emoji.ts +223 -0
- package/src/components/editor/modules/{image-resize-module/image-resize-module.ts → image-resize/image-resize.ts} +5 -5
- package/src/components/editor/modules/{time-tracking-module.ts → time-tracking/time-tracking.ts} +5 -5
- package/src/components/editor/modules/toolbar/tool/index.ts +12 -0
- package/src/components/editor/modules/toolbar/tool/tool.component.ts +30 -0
- package/src/components/editor/modules/toolbar/tool/tool.scss +5 -0
- package/src/components/editor/modules/toolbar/toolbar.component.ts +738 -0
- package/src/components/editor/modules/toolbar/toolbar.scss +98 -0
- package/src/components/editor/modules/toolbar/toolbar.ts +328 -0
- package/src/components/expanding-action/expanding-action.component.ts +2 -2
- package/src/components/expanding-action/expanding-action.scss +2 -2
- package/src/components/filter-wrapper/filter-wrapper.component.ts +91 -0
- package/src/components/filter-wrapper/filter-wrapper.scss +11 -0
- package/src/components/filter-wrapper/filter-wrapper.test.ts +10 -0
- package/src/components/filter-wrapper/index.ts +12 -0
- package/src/components/header/header.component.ts +1 -1
- package/src/components/header/header.scss +8 -1
- package/src/components/hover-container/hover-container.scss +39 -36
- package/src/components/icon/icon.component.ts +11 -5
- package/src/components/icon/icon.scss +15 -2
- package/src/components/inline-edit/inline-edit.component.ts +28 -3
- package/src/components/inline-edit/inline-edit.scss +4 -1
- package/src/components/input/input.scss +1 -1
- package/src/components/item/item.component.ts +30 -19
- package/src/components/item/item.scss +56 -14
- package/src/components/linked-select/linked-select.component.ts +5 -1
- package/src/components/menu/menu.component.ts +1 -0
- package/src/components/menu/menu.scss +1 -1
- package/src/components/menu-item/menu-item.component.ts +22 -4
- package/src/components/menu-item/menu-item.scss +54 -7
- package/src/components/navbar/navbar.component.ts +7 -1
- package/src/components/navbar/navbar.scss +26 -16
- package/src/components/option/option.component.ts +4 -1
- package/src/components/option/option.scss +9 -0
- package/src/components/page-nav/page-nav.component.ts +2 -2
- package/src/components/page-nav/page-nav.scss +4 -4
- package/src/components/panel/panel.component.ts +20 -9
- package/src/components/panel/panel.scss +5 -1
- package/src/components/popup/popup.component.ts +16 -2
- package/src/components/progress-tile/progress-tile.component.ts +10 -4
- package/src/components/progress-tile/progress-tile.scss +7 -4
- package/src/components/query-builder/query-builder.component.ts +1 -1
- package/src/components/radio/radio.scss +1 -1
- package/src/components/scroll-container/scroll-container.component.ts +56 -9
- package/src/components/scroll-container/scroll-container.scss +37 -2
- package/src/components/select/select.component.ts +3 -0
- package/src/components/select/select.scss +1 -1
- package/src/components/settings-container/index.ts +12 -0
- package/src/components/settings-container/settings-container.component.ts +226 -0
- package/src/components/settings-container/settings-container.scss +92 -0
- package/src/components/settings-container/settings-container.test.ts +10 -0
- package/src/components/skeleton/skeleton.scss +5 -4
- package/src/components/sp/sp.component.ts +2 -0
- package/src/components/sp/sp.scss +2 -0
- package/src/components/split-button/split-button.component.ts +24 -18
- package/src/components/split-pane/split-pane.component.ts +5 -5
- package/src/components/stat/stat.component.ts +5 -1
- package/src/components/stat/stat.scss +24 -1
- package/src/components/style/style.component.ts +18 -0
- package/src/components/tabs/tabs.component.ts +12 -1
- package/src/components/textarea/textarea.component.ts +3 -1
- package/src/components/textarea/textarea.scss +21 -2
- package/src/components/vertical-stepper/vertical-stepper.scss +1 -1
- package/src/internal/form.ts +3 -1
- package/src/internal/slot.ts +29 -3
- package/src/utilities/on.ts +7 -8
- package/src/utilities/query.ts +5 -1
- package/src/wc.scss +7 -0
- package/src/zinc.ts +5 -0
- package/src/components/editor/modules/dialog-module/dialog-module.component.ts +0 -289
- package/src/components/editor/modules/dialog-module/dialog-module.scss +0 -115
- package/src/components/editor/modules/dialog-module/dialog-module.ts +0 -99
- package/src/components/editor/modules/events/zn-show-canned-response-dialog.ts +0 -15
- package/src/components/editor/modules/menu-module/menu-module.component.ts +0 -149
- package/src/components/editor/modules/menu-module/menu-module.scss +0 -17
- package/src/components/editor/modules/menu-module/menu-module.ts +0 -203
|
@@ -8,7 +8,7 @@ layout: component
|
|
|
8
8
|
```html:preview
|
|
9
9
|
|
|
10
10
|
<zn-sp divide no-gap>
|
|
11
|
-
<zn-item caption="Full name" edit-on-hover>
|
|
11
|
+
<zn-item caption="Full name" description="this is description" edit-on-hover>
|
|
12
12
|
<zn-inline-edit name="name"
|
|
13
13
|
value="EN"
|
|
14
14
|
options="{"":"-","EN":"English","IT":"Italian","FR":"French","DE":"German","ES":"Spanish","PT":"Portuguese","AB":"Abkhazian","OM":"Afan\/Oromoor\/Oriya","AA":"Afar","AF":"Afrikaans","SQ":"Albanian","AM":"Amharic","AR":"Arabic","HY":"Armenian","AS":"Assamese","AY":"Aymara","AZ":"Azerbaijani","BA":"Bashkir","EU":"Basque","BN":"Bengali\/Bangla","DZ":"Bhutani","BH":"Bihari","BI":"Bislama","BR":"Breton","BG":"Bulgarian","MY":"Burmese","BE":"Byelorussian","KM":"Cambodian","CA":"Catalan","ZH":"Chinese","CO":"Corsican","HR":"Croatian","CS":"Czech","DA":"Danish","NL":"Dutch","EO":"Esperanto","ET":"Estonian","FO":"Faeroese","FJ":"Fiji","FI":"Finnish","FY":"Frisian","GL":"Galician","KA":"Georgian","EL":"Greek","KL":"Greenlandic","GN":"Guarani","GU":"Gujarati","HA":"Hausa","HE":"Hebrew","HI":"Hindi","HU":"Hungarian","IS":"Icelandic","ID":"Indonesian","IA":"Interlingua","IE":"Interlingue","IK":"Inupiak","GA":"Irish","JA":"Japanese","JV":"Javanese","KN":"Kannada","KS":"Kashmiri","KK":"Kazakh","RW":"Kinyarwanda","KY":"Kirghiz","RN":"Kirundi","KO":"Korean","KU":"Kurdish","LO":"Laothian","LA":"Latin","LV":"Latvian\/Lettish","LN":"Lingala","LT":"Lithuanian","MK":"Macedonian","MG":"Malagasy","MS":"Malay","ML":"Malayalam","MT":"Maltese","MI":"Maori","MR":"Marathi","MO":"Moldavian","MN":"Mongolian","NA":"Nauru","NB":"Norwegian Bokm\u00e5l","NE":"Nepali","NO":"Norwegian","OC":"Occitan","PS":"Pashto\/Pushto","FA":"Persian","PL":"Polish","PA":"Punjabi","QU":"Quechua","RM":"Rhaeto-Romance","RO":"Romanian","RU":"Russian","SM":"Samoan","SG":"Sangro","SA":"Sanskrit","GD":"Scots\/Gaelic","SR":"Serbian","SH":"Serbo-Croatian","ST":"Sesotho","TN":"Setswana","SN":"Shona","SD":"Sindhi","SE":"Northern Sami","SI":"Singhalese","SS":"Siswati","SK":"Slovak","SL":"Slovenian","SO":"Somali","SU":"Sundanese","SW":"Swahili","SV":"Swedish","TL":"Tagalog","TG":"Tajik","TA":"Tamil","TT":"Tatar","TE":"Tegulu","TH":"Thai","BO":"Tibetan","TI":"Tigrinya","TO":"Tonga","TS":"Tsonga","TR":"Turkish","TK":"Turkmen","TW":"Twi","UK":"Ukrainian","UR":"Urdu","UZ":"Uzbek","VI":"Vietnamese","VO":"Volapuk","CY":"Welsh","WO":"Wolof","XH":"Xhosa","JI":"Yiddish","YO":"Yoruba","ZU":"Zulu"}"></zn-inline-edit>
|
|
@@ -41,7 +41,7 @@ layout: component
|
|
|
41
41
|
|
|
42
42
|
```html:preview
|
|
43
43
|
|
|
44
|
-
<zn-item caption="Full name" icon="person">
|
|
44
|
+
<zn-item caption="Full name" icon="person" description="this is description">
|
|
45
45
|
This is the content
|
|
46
46
|
</zn-item>
|
|
47
47
|
|
|
@@ -6,14 +6,23 @@ layout: component
|
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
```html:preview
|
|
9
|
-
<zn-menu-item
|
|
9
|
+
<zn-menu-item>Menu item</zn-menu-item>
|
|
10
10
|
```
|
|
11
11
|
|
|
12
12
|
## Examples
|
|
13
13
|
|
|
14
|
-
###
|
|
14
|
+
### Colors Example
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
```html:preview
|
|
17
|
+
<zn-menu-item>Menu item</zn-menu-item>
|
|
18
|
+
<zn-menu-item color="primary">Menu item</zn-menu-item>
|
|
19
|
+
<zn-menu-item color="secondary">Menu item</zn-menu-item>
|
|
20
|
+
<zn-menu-item color="transparent">Menu item</zn-menu-item>
|
|
21
|
+
<zn-menu-item color="error">Menu item</zn-menu-item>
|
|
22
|
+
<zn-menu-item color="info">Menu item</zn-menu-item>
|
|
23
|
+
<zn-menu-item color="success">Menu item</zn-menu-item>
|
|
24
|
+
<zn-menu-item color="warning">Menu item</zn-menu-item>
|
|
25
|
+
```
|
|
17
26
|
|
|
18
27
|
### Second Example
|
|
19
28
|
|
|
@@ -121,4 +121,21 @@ panel. This can be useful when using other components such as `zn-tabs`.
|
|
|
121
121
|
</zn-panel>
|
|
122
122
|
```
|
|
123
123
|
|
|
124
|
+
### Cosmic Panel
|
|
124
125
|
|
|
126
|
+
```html:preview
|
|
127
|
+
|
|
128
|
+
<zn-panel flush cosmic>
|
|
129
|
+
|
|
130
|
+
<!-- Example panel content -->
|
|
131
|
+
<zn-sp flush no-gap divide>
|
|
132
|
+
<zn-inline-edit padded inline caption="Label 1" value="This is Awesome"></zn-inline-edit>
|
|
133
|
+
<zn-inline-edit padded inline caption="Label 2" value="This is Awesome"></zn-inline-edit>
|
|
134
|
+
</zn-sp>
|
|
135
|
+
|
|
136
|
+
<!-- Panel Footer -->
|
|
137
|
+
<span slot="footer">
|
|
138
|
+
Some awesome footer information
|
|
139
|
+
</span>
|
|
140
|
+
</zn-panel>
|
|
141
|
+
```
|
|
@@ -6,7 +6,23 @@ layout: component
|
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
```html:preview
|
|
9
|
-
|
|
9
|
+
|
|
10
|
+
<zn-progress-tile
|
|
11
|
+
id="progress-tile"
|
|
12
|
+
caption="John Doe"
|
|
13
|
+
status="Active"
|
|
14
|
+
avatar="JohnDoe@avatar"
|
|
15
|
+
wait-time="60">
|
|
16
|
+
</zn-progress-tile>
|
|
17
|
+
|
|
18
|
+
<script>
|
|
19
|
+
// set start time to current time for demo purposes - 10 seconds ago
|
|
20
|
+
const startTime = Math.floor(Date.now() / 1000) - 40;
|
|
21
|
+
const progressTile = document.getElementById('progress-tile');
|
|
22
|
+
|
|
23
|
+
progressTile.setAttribute('start-time', startTime);
|
|
24
|
+
|
|
25
|
+
</script>
|
|
10
26
|
```
|
|
11
27
|
|
|
12
28
|
## Examples
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
---
|
|
2
|
+
meta:
|
|
3
|
+
title: Settings Container
|
|
4
|
+
description:
|
|
5
|
+
layout: component
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
By default, all elements inside a `<zn-settings-container>` are shown.
|
|
9
|
+
You can add filters to toggle visibility of specific elements based on their attributes.
|
|
10
|
+
|
|
11
|
+
```html:preview
|
|
12
|
+
|
|
13
|
+
<div style="width: 100%; height: 300px; border: 1px solid #ccc;">
|
|
14
|
+
<zn-settings-container store-key="example-filters">
|
|
15
|
+
|
|
16
|
+
<zn-tile private caption="Leslie Alexander" description="Leslie.alexander@example.com" href="https://google.com">
|
|
17
|
+
<zn-icon slot="image" size="40" src="https://i.pravatar.cc/60?img=70" round></zn-icon>
|
|
18
|
+
<div slot="actions">
|
|
19
|
+
<zn-button href="#">Action</zn-button>
|
|
20
|
+
</div>
|
|
21
|
+
</zn-tile>
|
|
22
|
+
|
|
23
|
+
<zn-tile private caption="Leslie Alexander" description="Leslie.alexander@example.com" href="https://google.com">
|
|
24
|
+
<zn-icon slot="image" size="40" src="https://i.pravatar.cc/60?img=70" round></zn-icon>
|
|
25
|
+
<div slot="actions">
|
|
26
|
+
<zn-button href="#">Action</zn-button>
|
|
27
|
+
</div>
|
|
28
|
+
</zn-tile>
|
|
29
|
+
|
|
30
|
+
<zn-tile private caption="Leslie Alexander" description="Leslie.alexander@example.com" href="https://google.com">
|
|
31
|
+
<zn-icon slot="image" size="40" src="https://i.pravatar.cc/60?img=70" round></zn-icon>
|
|
32
|
+
<div slot="actions">
|
|
33
|
+
<zn-button href="#">Action</zn-button>
|
|
34
|
+
</div>
|
|
35
|
+
</zn-tile>
|
|
36
|
+
|
|
37
|
+
<zn-tile original caption="Leslie Alexander" description="Leslie.alexander@example.com" href="https://google.com">
|
|
38
|
+
<zn-icon slot="image" size="40" src="https://i.pravatar.cc/60?img=70" round></zn-icon>
|
|
39
|
+
<div slot="actions">
|
|
40
|
+
<zn-button href="#">Action</zn-button>
|
|
41
|
+
</div>
|
|
42
|
+
</zn-tile>
|
|
43
|
+
|
|
44
|
+
<zn-tile original caption="Leslie Alexander" description="Leslie.alexander@example.com" href="https://google.com">
|
|
45
|
+
<zn-icon slot="image" size="40" src="https://i.pravatar.cc/60?img=70" round></zn-icon>
|
|
46
|
+
<div slot="actions">
|
|
47
|
+
<zn-button href="#">Action</zn-button>
|
|
48
|
+
</div>
|
|
49
|
+
</zn-tile>
|
|
50
|
+
|
|
51
|
+
<div slot="filter" attribute="private" default="true">Toggle Private Messages</div>
|
|
52
|
+
<div slot="filter" attribute="original" default="true">Toggle Original Messages</div>
|
|
53
|
+
|
|
54
|
+
</zn-settings-container>
|
|
55
|
+
</div>
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
## Examples
|
|
59
|
+
|
|
60
|
+
### Specific Elements Only
|
|
61
|
+
|
|
62
|
+
You can pass to the settings container only specific elements you want to be affected by the filters.
|
|
63
|
+
for example by adding item-selector="zn-inline-edit" only the inline edit elements will be affected by the filters.
|
|
64
|
+
|
|
65
|
+
```html:preview
|
|
66
|
+
|
|
67
|
+
<style>
|
|
68
|
+
zn-tile, zn-inline-edit {
|
|
69
|
+
position: relative;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
[private]:after, [original]:after {
|
|
73
|
+
position: absolute;
|
|
74
|
+
top: 0;
|
|
75
|
+
right: 0;
|
|
76
|
+
font-size: 10px;
|
|
77
|
+
padding: 2px 4px;
|
|
78
|
+
border-radius: 0 0 0 4px;
|
|
79
|
+
color: #000;
|
|
80
|
+
font-weight: bold;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
[private]:after {
|
|
84
|
+
content: " (private)";
|
|
85
|
+
border: 1px solid #f00;
|
|
86
|
+
background: #fee;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
[original]:after {
|
|
90
|
+
content: " (original)";
|
|
91
|
+
border: 1px solid #00f;
|
|
92
|
+
background: #eef;
|
|
93
|
+
}
|
|
94
|
+
</style>
|
|
95
|
+
|
|
96
|
+
<div style="width: 100%; height: 300px; border: 1px solid #ccc;">
|
|
97
|
+
<zn-settings-container item-selector="zn-inline-edit">
|
|
98
|
+
|
|
99
|
+
<zn-inline-edit private caption="Something" value="1" action="#" method="GET"
|
|
100
|
+
options="{"1": "Option 1","2": "Option 2"}">
|
|
101
|
+
</zn-inline-edit>
|
|
102
|
+
|
|
103
|
+
<zn-tile private caption="Leslie Alexander" description="Leslie.alexander@example.com" href="https://google.com">
|
|
104
|
+
<zn-icon slot="image" size="40" src="https://i.pravatar.cc/60?img=70" round></zn-icon>
|
|
105
|
+
<div slot="actions">
|
|
106
|
+
<zn-button href="#">Action</zn-button>
|
|
107
|
+
</div>
|
|
108
|
+
</zn-tile>
|
|
109
|
+
|
|
110
|
+
<zn-tile private caption="Leslie Alexander" description="Leslie.alexander@example.com" href="https://google.com">
|
|
111
|
+
<zn-icon slot="image" size="40" src="https://i.pravatar.cc/60?img=70" round></zn-icon>
|
|
112
|
+
<div slot="actions">
|
|
113
|
+
<zn-button href="#">Action</zn-button>
|
|
114
|
+
</div>
|
|
115
|
+
</zn-tile>
|
|
116
|
+
|
|
117
|
+
<zn-inline-edit original caption="Something" value="1" action="#" method="GET"
|
|
118
|
+
options="{"1": "Option 1","2": "Option 2"}">
|
|
119
|
+
</zn-inline-edit>
|
|
120
|
+
|
|
121
|
+
<zn-tile original caption="Leslie Alexander" description="Leslie.alexander@example.com" href="https://google.com">
|
|
122
|
+
<zn-icon slot="image" size="40" src="https://i.pravatar.cc/60?img=70" round></zn-icon>
|
|
123
|
+
<div slot="actions">
|
|
124
|
+
<zn-button href="#">Action</zn-button>
|
|
125
|
+
</div>
|
|
126
|
+
</zn-tile>
|
|
127
|
+
|
|
128
|
+
<div slot="filter" attribute="private" default="true" item-selector="zn-inline-edit">Toggle Inline Edit Private Messages</div>
|
|
129
|
+
<div slot="filter" attribute="original" default="true" item-selector="zn-tile">Toggle Tile Original Messages</div>
|
|
130
|
+
|
|
131
|
+
</zn-settings-container>
|
|
132
|
+
</div>
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
### Second Example
|
|
136
|
+
|
|
137
|
+
TODO
|
|
@@ -28,7 +28,7 @@ Add descriptive help text to a textarea with the `help-text` attribute. For help
|
|
|
28
28
|
`help-text` slot instead.
|
|
29
29
|
|
|
30
30
|
```html:preview
|
|
31
|
-
<zn-textarea label="Month in review" help-text="Tell us the highlights. Be sure to include details about any financial performance anomalies."> </zn-textarea>
|
|
31
|
+
<zn-textarea transparent label="Month in review" help-text="Tell us the highlights. Be sure to include details about any financial performance anomalies."> </zn-textarea>
|
|
32
32
|
<br />
|
|
33
33
|
<zn-textarea label="Month in review">
|
|
34
34
|
<div slot="help-text">Tell us the highlights. Be sure to include details about any financial performance <strong>anomalies</strong>.</div>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kubex/zinc",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"description": "A collection of web components for building web applications based off of @shoelace-style/Shoelace",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"web components",
|
|
@@ -41,6 +41,7 @@
|
|
|
41
41
|
"watch": "node scripts/build.js --serve"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
+
"@emoji-mart/data": "^1.2.1",
|
|
44
45
|
"@floating-ui/dom": "^1.6.13",
|
|
45
46
|
"@lit-labs/observers": "^2.0.4",
|
|
46
47
|
"@lit/task": "^1.0.1",
|
|
@@ -49,6 +50,7 @@
|
|
|
49
50
|
"apexcharts": "^4.5.0",
|
|
50
51
|
"chart.js": "^4.4.8",
|
|
51
52
|
"composed-offset-position": "^0.0.6",
|
|
53
|
+
"emoji-mart": "^5.6.0",
|
|
52
54
|
"lit": "^2.7.6",
|
|
53
55
|
"quill": "^2.0.3"
|
|
54
56
|
},
|
package/scss/_root.scss
CHANGED
|
@@ -200,3 +200,29 @@
|
|
|
200
200
|
.zn-success {
|
|
201
201
|
color: rgb(var(--zn-color-success));
|
|
202
202
|
}
|
|
203
|
+
|
|
204
|
+
ul.gap{
|
|
205
|
+
li{
|
|
206
|
+
margin: 5px 0;
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
ul.circle, ul.decimal, ul.disc, ul.square {
|
|
211
|
+
padding: 5px 0 5px 15px;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
ul.circle {
|
|
215
|
+
list-style-type: circle;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
ul.decimal {
|
|
219
|
+
list-style-type: decimal;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
ul.disc {
|
|
223
|
+
list-style-type: disc;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
ul.square {
|
|
227
|
+
list-style-type: square;
|
|
228
|
+
}
|
package/scss/boot.scss
CHANGED
|
@@ -13,17 +13,43 @@
|
|
|
13
13
|
@use "../node_modules/air-datepicker/air-datepicker.css";
|
|
14
14
|
|
|
15
15
|
.air-datepicker {
|
|
16
|
+
--adp-color: rgba(var(--zn-text), var(--zn-text-opacity));
|
|
17
|
+
--adp-nav-color-secondary: rgb(var(--zn-purple-text));
|
|
18
|
+
|
|
16
19
|
--adp-day-name-color: var(--zn-color-primary-600);
|
|
17
20
|
--adp-day-name-color-hover: var(--zn-color-primary-700);
|
|
18
21
|
--adp-cell-background-color-selected: var(--zn-color-primary-600);
|
|
19
22
|
--adp-cell-background-color-selected-hover: var(--zn-color-primary-700);
|
|
20
23
|
--adp-color-current-date: var(--zn-color-primary-600);
|
|
21
24
|
|
|
25
|
+
--adp-background-color: var(--zn-input-background-color);
|
|
26
|
+
--adp-background-color-hover: var(--zn-input-background-color-hover);
|
|
27
|
+
--adp-background-color-active: var(--zn-input-background-color-hover);
|
|
22
28
|
--adp-background-color-selected-other-month: var(--zn-color-primary-300);
|
|
23
29
|
--adp-background-color-in-range: var(--zn-color-primary-100);
|
|
24
30
|
|
|
31
|
+
--adp-border-color: rgb(var(--zn-border-color));
|
|
32
|
+
--adp-border-color-inline: rgb(var(--zn-border-color));
|
|
33
|
+
--adp-border-color-inner: rgb(var(--zn-border-color));
|
|
34
|
+
|
|
25
35
|
--adp-cell-background-color-in-range: var(--zn-color-primary-100);
|
|
26
36
|
--adp-cell-background-color-in-range-hover: var(--zn-color-primary-200);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.air-datepicker--pointer:after {
|
|
40
|
+
background-color: var(--zn-input-background-color);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
// Utility to minimize flashing of undefined web components
|
|
44
|
+
.zn-cloak:has(:not(:defined)) {
|
|
45
|
+
animation: 2s step-end zn-cloak;
|
|
46
|
+
}
|
|
27
47
|
|
|
28
|
-
|
|
48
|
+
@keyframes zn-cloak {
|
|
49
|
+
from {
|
|
50
|
+
opacity: 0;
|
|
51
|
+
}
|
|
52
|
+
to {
|
|
53
|
+
opacity: 1;
|
|
54
|
+
}
|
|
29
55
|
}
|
package/scss/mixins/index.scss
CHANGED
|
@@ -1,2 +1,31 @@
|
|
|
1
1
|
@forward "spacing-mixins";
|
|
2
|
-
@forward "helper-mixins";
|
|
2
|
+
@forward "helper-mixins";
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
@mixin cosmic-border() {
|
|
6
|
+
border: 1px solid transparent;
|
|
7
|
+
|
|
8
|
+
&:before {
|
|
9
|
+
content: '';
|
|
10
|
+
z-index: -1;
|
|
11
|
+
position: absolute;
|
|
12
|
+
top: -2px;
|
|
13
|
+
left: -2px;
|
|
14
|
+
height: calc(100% + 4px);
|
|
15
|
+
width: calc(100% + 4px);
|
|
16
|
+
filter: blur(var(--zn-blur, 1px));
|
|
17
|
+
opacity: 0.9;
|
|
18
|
+
border-radius: var(--zn-border-radius-large);
|
|
19
|
+
|
|
20
|
+
background-image: conic-gradient(
|
|
21
|
+
from var(--rotate) at 50% 50%,
|
|
22
|
+
#71d9ff 0%,
|
|
23
|
+
#a100ffff 22%,
|
|
24
|
+
#71d9ff 44%,
|
|
25
|
+
#ff00ceff 74%,
|
|
26
|
+
#71d9ff 94%
|
|
27
|
+
);
|
|
28
|
+
|
|
29
|
+
animation: rotate-gradient 6s linear infinite;
|
|
30
|
+
}
|
|
31
|
+
}
|
package/scss/shared/_base.scss
CHANGED
package/scss/shared/_button.scss
CHANGED
package/scss/shared/layout.scss
CHANGED
|
@@ -275,9 +275,16 @@
|
|
|
275
275
|
border-bottom: 1px solid rgb(var(--zn-border-color));
|
|
276
276
|
background-color: rgba(var(--zn-panel), 0.9);
|
|
277
277
|
padding: 3px;
|
|
278
|
+
gap: 3px;
|
|
278
279
|
display: flex;
|
|
279
280
|
flex-wrap: wrap;
|
|
280
281
|
align-items: center;
|
|
282
|
+
z-index: 1;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
.zn-panel-bar--large {
|
|
286
|
+
padding: 6px;
|
|
287
|
+
gap: 6px;
|
|
281
288
|
}
|
|
282
289
|
|
|
283
290
|
.scroll-container {
|
package/scss/themes/_dark.scss
CHANGED
|
@@ -246,11 +246,11 @@
|
|
|
246
246
|
--zn-color-neutral-1000: hsl(0, 0%, 100%);
|
|
247
247
|
|
|
248
248
|
/* Elevations */
|
|
249
|
-
--zn-shadow-x-small: 0 1px
|
|
250
|
-
--zn-shadow-small: 0
|
|
251
|
-
--zn-shadow-medium: 0
|
|
252
|
-
--zn-shadow-large: 0
|
|
253
|
-
--zn-shadow-x-large: 0
|
|
249
|
+
--zn-shadow-x-small: 0 1px 4px rgba(0, 0, 0, 0.18);
|
|
250
|
+
--zn-shadow-small: 0 3px 9px rgba(0, 0, 0, 0.24);
|
|
251
|
+
--zn-shadow-medium: 0 6px 18px rgba(0, 0, 0, 0.24);
|
|
252
|
+
--zn-shadow-large: 0 6px 20px rgba(0, 0, 0, 0.24);
|
|
253
|
+
--zn-shadow-x-large: 0 6px 20px rgba(0, 0, 0, 0.34);
|
|
254
254
|
|
|
255
255
|
/* Inputs */
|
|
256
256
|
--zn-input-background-color: hsl(223, 14%, 10%);
|
package/scss/themes/_light.scss
CHANGED
|
@@ -323,11 +323,11 @@
|
|
|
323
323
|
--zn-border-radius-pill: 9999px;
|
|
324
324
|
|
|
325
325
|
/* Elevations */
|
|
326
|
-
--zn-shadow-x-small: 0 1px
|
|
327
|
-
--zn-shadow-small: 0
|
|
328
|
-
--zn-shadow-medium: 0
|
|
329
|
-
--zn-shadow-large: 0
|
|
330
|
-
--zn-shadow-x-large: 0
|
|
326
|
+
--zn-shadow-x-small: 0 1px 4px rgba(0, 0, 0, 0.10);
|
|
327
|
+
--zn-shadow-small: 0 3px 9px rgba(0, 0, 0, 0.15);
|
|
328
|
+
--zn-shadow-medium: 0 6px 18px rgba(0, 0, 0, 0.15);
|
|
329
|
+
--zn-shadow-large: 0 6px 20px rgba(0, 0, 0, 0.15);
|
|
330
|
+
--zn-shadow-x-large: 0 6px 20px rgba(0, 0, 0, 0.25);
|
|
331
331
|
|
|
332
332
|
/* Spacings */
|
|
333
333
|
--zn-spacing-3x-small: 0.125rem; // 2px
|
|
@@ -537,4 +537,5 @@
|
|
|
537
537
|
--zn-z-index-dropdown: 900;
|
|
538
538
|
--zn-z-index-toast: 950;
|
|
539
539
|
--zn-z-index-tooltip: 1000;
|
|
540
|
+
--zn-z-index-editor-action: 100000;
|
|
540
541
|
}
|
|
@@ -28,7 +28,7 @@ export default class ZnAlert extends ZincElement {
|
|
|
28
28
|
@property({type: String}) icon: string = '';
|
|
29
29
|
@property({type: String}) caption: string = '';
|
|
30
30
|
@property({type: Boolean}) collapse: boolean = false;
|
|
31
|
-
@property({type: String}) level: 'primary' | 'error' | 'info' | 'success' | 'warning' | 'note' = 'info';
|
|
31
|
+
@property({type: String}) level: 'primary' | 'error' | 'info' | 'success' | 'warning' | 'note' | 'cosmic' = 'info';
|
|
32
32
|
@property({type: String}) size: 'small' | 'medium' | 'large' = 'medium';
|
|
33
33
|
|
|
34
34
|
render() {
|
|
@@ -138,17 +138,16 @@ p {
|
|
|
138
138
|
}
|
|
139
139
|
|
|
140
140
|
|
|
141
|
-
|
|
142
141
|
:host([level="note"]) .wrapper {
|
|
143
142
|
h6 {
|
|
144
143
|
color: var(--zn-color-gray-800);
|
|
145
144
|
}
|
|
146
145
|
|
|
147
|
-
border-color:
|
|
148
|
-
background:
|
|
146
|
+
border-color: var(--zn-color-gray-500) !important;
|
|
147
|
+
background: var(--zn-color-gray-100);
|
|
149
148
|
|
|
150
149
|
zn-icon {
|
|
151
|
-
--icon-color: var(--zn-color-gray-800)
|
|
150
|
+
--icon-color: var(--zn-color-gray-800);
|
|
152
151
|
}
|
|
153
152
|
}
|
|
154
153
|
|
|
@@ -168,3 +167,18 @@ p {
|
|
|
168
167
|
font-size: 110%;
|
|
169
168
|
}
|
|
170
169
|
}
|
|
170
|
+
|
|
171
|
+
:host([level="cosmic"]) {
|
|
172
|
+
@include wc.cosmic-border();
|
|
173
|
+
position: relative;
|
|
174
|
+
z-index: 0;
|
|
175
|
+
|
|
176
|
+
&:before {
|
|
177
|
+
border-radius: 11px;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.wrapper {
|
|
181
|
+
border: none !important;
|
|
182
|
+
background: rgba(var(--zn-panel), 0.99);
|
|
183
|
+
}
|
|
184
|
+
}
|
|
@@ -59,9 +59,11 @@ export default class ZnButton extends ZincElement implements ZincFormControl {
|
|
|
59
59
|
@property({type: Boolean}) grow = false;
|
|
60
60
|
@property({type: Boolean}) square = false;
|
|
61
61
|
|
|
62
|
+
|
|
62
63
|
@property({attribute: 'dropdown-closer', type: Boolean}) dropdownCloser = false;
|
|
63
64
|
|
|
64
65
|
@property({type: Number}) notification: number;
|
|
66
|
+
@property({attribute: "muted-notifications", type: Boolean}) mutedNotifications = false;
|
|
65
67
|
|
|
66
68
|
@property() verticalAlign: 'start' | 'center' | 'end';
|
|
67
69
|
|
|
@@ -182,7 +184,7 @@ export default class ZnButton extends ZincElement implements ZincFormControl {
|
|
|
182
184
|
const isLink = this._isLink();
|
|
183
185
|
|
|
184
186
|
const icon = this.icon ? html`
|
|
185
|
-
<zn-icon src="${this.icon}" id="xy2" size="${this.iconSize ? this.iconSize : 16}"
|
|
187
|
+
<zn-icon part="icon" src="${this.icon}" id="xy2" size="${this.iconSize ? this.iconSize : 16}"
|
|
186
188
|
color="${this.iconColor ? this.iconColor : null}"></zn-icon>` : '';
|
|
187
189
|
|
|
188
190
|
const tag = isLink ? literal`a` : literal`button`;
|
|
@@ -215,7 +217,9 @@ export default class ZnButton extends ZincElement implements ZincFormControl {
|
|
|
215
217
|
'button--icon-right': this.iconPosition === 'right',
|
|
216
218
|
'button--with-content': this.hasSlotController.test('[default]') || this.content,
|
|
217
219
|
'button--square': this.square,
|
|
218
|
-
'button--has-notification': this.notification !== undefined && this.notification
|
|
220
|
+
'button--has-notification': this.notification !== undefined && this.notification !== 0,
|
|
221
|
+
'button--muted-notification': this.mutedNotifications || (this.notification !== undefined && this.notification === -2),
|
|
222
|
+
'button--notification-dot': this.notification !== undefined && this.notification < 0,
|
|
219
223
|
})}"
|
|
220
224
|
type="${ifDefined(this.type)}"
|
|
221
225
|
href="${ifDefined(this.href)}"
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
@include shared.button;
|
|
18
18
|
|
|
19
19
|
--btn-color: var(--zn-primary);
|
|
20
|
+
--notification-color: rgb(var(--zn-color-error));
|
|
20
21
|
|
|
21
22
|
border-width: 1px;
|
|
22
23
|
border-color: transparent;
|
|
@@ -40,6 +41,10 @@
|
|
|
40
41
|
}
|
|
41
42
|
}
|
|
42
43
|
|
|
44
|
+
.button.button--muted-notification {
|
|
45
|
+
--notification-color: rgb(var(--zn-color-info));
|
|
46
|
+
}
|
|
47
|
+
|
|
43
48
|
.button--has-notification {
|
|
44
49
|
position: relative;
|
|
45
50
|
|
|
@@ -56,7 +61,17 @@
|
|
|
56
61
|
border-radius: 50%;
|
|
57
62
|
font-size: 10px;
|
|
58
63
|
color: white;
|
|
59
|
-
background-color:
|
|
64
|
+
background-color: var(--notification-color);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.button--has-notification.button--notification-dot {
|
|
69
|
+
&:after {
|
|
70
|
+
content: '';
|
|
71
|
+
width: 5px;
|
|
72
|
+
height: 5px;
|
|
73
|
+
top: 5px;
|
|
74
|
+
right: 3px;
|
|
60
75
|
}
|
|
61
76
|
}
|
|
62
77
|
|