@salla.sa/twilight-components 2.9.42 → 2.9.44

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 (61) hide show
  1. package/README.md +6 -6
  2. package/dist/cjs/index-1d2b3370.js +2 -2
  3. package/dist/cjs/{index-53c1e9f1.js → index-69084b4e.js} +39 -2232
  4. package/dist/cjs/loader.cjs.js +2 -2
  5. package/dist/cjs/{salla-button_34.cjs.entry.js → salla-button_35.cjs.entry.js} +1317 -99
  6. package/dist/cjs/twilight.cjs.js +2 -2
  7. package/dist/collection/collection-manifest.json +2 -1
  8. package/dist/collection/components/salla-color-picker/interfaces.js +4 -0
  9. package/dist/collection/components/salla-color-picker/salla-color-picker.css +0 -0
  10. package/dist/collection/components/salla-color-picker/salla-color-picker.js +481 -0
  11. package/dist/collection/components/salla-loyalty/salla-loyalty.js +3 -3
  12. package/dist/collection/components/salla-map/salla-map.js +9 -9
  13. package/dist/collection/components/salla-quick-order/salla-quick-order.css +45 -0
  14. package/dist/collection/components/salla-quick-order/salla-quick-order.js +364 -0
  15. package/dist/collection/components/salla-scopes/salla-scopes.js +14 -10
  16. package/dist/components/index.d.ts +2 -1
  17. package/dist/components/index.js +41 -2233
  18. package/dist/components/keyboard_arrow_down.js +11 -0
  19. package/dist/components/salla-color-picker.d.ts +11 -0
  20. package/dist/components/salla-color-picker.js +1170 -0
  21. package/dist/components/salla-loyalty.js +3 -3
  22. package/dist/components/salla-map.js +7 -7
  23. package/dist/components/{salla-sheet.d.ts → salla-quick-order.d.ts} +4 -4
  24. package/dist/components/salla-quick-order.js +224 -0
  25. package/dist/components/salla-scopes.js +14 -10
  26. package/dist/components/salla-user-menu.js +1 -7
  27. package/dist/esm/{index-dc279949.js → index-841c6a09.js} +39 -2232
  28. package/dist/esm/index-f1d446ac.js +2 -2
  29. package/dist/esm/loader.js +2 -2
  30. package/dist/esm/{salla-button_34.entry.js → salla-button_35.entry.js} +1335 -118
  31. package/dist/esm/twilight.js +2 -2
  32. package/dist/esm-es5/index-841c6a09.js +24 -0
  33. package/dist/esm-es5/index-f1d446ac.js +1 -1
  34. package/dist/esm-es5/loader.js +1 -1
  35. package/dist/esm-es5/salla-button_35.entry.js +41 -0
  36. package/dist/esm-es5/twilight.js +1 -1
  37. package/dist/twilight/p-9d16088e.entry.js +30 -0
  38. package/dist/twilight/p-abaef410.system.js +4 -0
  39. package/dist/twilight/p-add0b2aa.system.js +24 -0
  40. package/dist/twilight/p-ce00178b.system.entry.js +41 -0
  41. package/dist/twilight/p-ed8fa851.js +24 -0
  42. package/dist/twilight/twilight.esm.js +1 -1
  43. package/dist/twilight/twilight.js +1 -1
  44. package/dist/types/components/salla-color-picker/interfaces.d.ts +25 -0
  45. package/dist/types/components/salla-color-picker/salla-color-picker.d.ts +99 -0
  46. package/dist/types/components/salla-map/salla-map.d.ts +2 -2
  47. package/dist/types/components/salla-quick-order/salla-quick-order.d.ts +66 -0
  48. package/dist/types/components/salla-scopes/salla-scopes.d.ts +1 -0
  49. package/dist/types/components.d.ts +208 -35
  50. package/package.json +6 -5
  51. package/dist/collection/components/salla-sheet/salla-sheet.css +0 -24
  52. package/dist/collection/components/salla-sheet/salla-sheet.js +0 -210
  53. package/dist/components/salla-sheet.js +0 -111
  54. package/dist/esm-es5/index-dc279949.js +0 -30
  55. package/dist/esm-es5/salla-button_34.entry.js +0 -34
  56. package/dist/twilight/p-19ce7aa8.js +0 -24
  57. package/dist/twilight/p-382b121a.entry.js +0 -22
  58. package/dist/twilight/p-4733b689.system.js +0 -4
  59. package/dist/twilight/p-6b59d89a.system.js +0 -30
  60. package/dist/twilight/p-b45e1ab3.system.entry.js +0 -34
  61. package/dist/types/components/salla-sheet/salla-sheet.d.ts +0 -35
@@ -1,210 +0,0 @@
1
- /*!
2
- * Crafted with ❤ by Salla
3
- */
4
- import { Component, Host, h, State, Prop, Method } from '@stencil/core';
5
- export class SallaSheet {
6
- constructor() {
7
- /**
8
- *
9
- */
10
- this.position = 'bottom';
11
- /**
12
- *
13
- */
14
- this.width = 600;
15
- /**
16
- *
17
- */
18
- this.height = 300;
19
- /**
20
- *
21
- */
22
- this.sheetColor = "#ffffff";
23
- /**
24
- *
25
- */
26
- this.persistent = false;
27
- this.flag = false;
28
- }
29
- // private showHideSheet() {
30
- // this.flag = !this.flag;
31
- // }
32
- getMainClass() {
33
- return {
34
- "s-sheet-overlay": true,
35
- "active": this.flag,
36
- };
37
- }
38
- // private getOverlayStyle() {
39
- // return {
40
- // "align-items": this.position == "top" ? "flex-start" : "flex-end",
41
- // "justify-content": this.position == "left" ? "flex-start" : "flex-end"
42
- // }
43
- // }
44
- //
45
- // private getContainerStyle() {
46
- // return {
47
- // "width": `${this.width}px`,
48
- // "min-height": `${this.height}px`,
49
- // "background-color": this.sheetColor,
50
- // // "transform": 'translateY(100%)',
51
- // // "transition": "transform 0.4s ease-in-out"
52
- // }
53
- // }
54
- /**
55
- *
56
- * @returns
57
- */
58
- open() {
59
- this.flag = true;
60
- }
61
- /**
62
- *
63
- * @returns
64
- */
65
- close() {
66
- this.flag = false;
67
- }
68
- render() {
69
- return (h(Host, null,
70
- h("slot", { name: 'widget' },
71
- h("salla-button", { fill: 'outline', width: "wide", onClick: () => this.open() }, "Show/Hide")),
72
- h("div", { class: this.getMainClass(), onClick: () => this.persistent ? null : this.close() },
73
- h("div", { class: "s-sheet-container" },
74
- h("slot", null)))));
75
- }
76
- static get is() { return "salla-sheet"; }
77
- static get originalStyleUrls() { return {
78
- "$": ["salla-sheet.scss"]
79
- }; }
80
- static get styleUrls() { return {
81
- "$": ["salla-sheet.css"]
82
- }; }
83
- static get properties() { return {
84
- "position": {
85
- "type": "string",
86
- "mutable": false,
87
- "complexType": {
88
- "original": "'top' | 'bottom' | 'left' | 'right'",
89
- "resolved": "\"bottom\" | \"left\" | \"right\" | \"top\"",
90
- "references": {}
91
- },
92
- "required": false,
93
- "optional": false,
94
- "docs": {
95
- "tags": [],
96
- "text": ""
97
- },
98
- "attribute": "position",
99
- "reflect": false,
100
- "defaultValue": "'bottom'"
101
- },
102
- "width": {
103
- "type": "number",
104
- "mutable": false,
105
- "complexType": {
106
- "original": "number",
107
- "resolved": "number",
108
- "references": {}
109
- },
110
- "required": false,
111
- "optional": false,
112
- "docs": {
113
- "tags": [],
114
- "text": ""
115
- },
116
- "attribute": "width",
117
- "reflect": false,
118
- "defaultValue": "600"
119
- },
120
- "height": {
121
- "type": "number",
122
- "mutable": false,
123
- "complexType": {
124
- "original": "number",
125
- "resolved": "number",
126
- "references": {}
127
- },
128
- "required": false,
129
- "optional": false,
130
- "docs": {
131
- "tags": [],
132
- "text": ""
133
- },
134
- "attribute": "height",
135
- "reflect": false,
136
- "defaultValue": "300"
137
- },
138
- "sheetColor": {
139
- "type": "string",
140
- "mutable": false,
141
- "complexType": {
142
- "original": "string",
143
- "resolved": "string",
144
- "references": {}
145
- },
146
- "required": false,
147
- "optional": false,
148
- "docs": {
149
- "tags": [],
150
- "text": ""
151
- },
152
- "attribute": "sheet-color",
153
- "reflect": false,
154
- "defaultValue": "\"#ffffff\""
155
- },
156
- "persistent": {
157
- "type": "boolean",
158
- "mutable": false,
159
- "complexType": {
160
- "original": "boolean",
161
- "resolved": "boolean",
162
- "references": {}
163
- },
164
- "required": false,
165
- "optional": false,
166
- "docs": {
167
- "tags": [],
168
- "text": ""
169
- },
170
- "attribute": "persistent",
171
- "reflect": false,
172
- "defaultValue": "false"
173
- }
174
- }; }
175
- static get states() { return {
176
- "flag": {}
177
- }; }
178
- static get methods() { return {
179
- "open": {
180
- "complexType": {
181
- "signature": "() => Promise<void>",
182
- "parameters": [],
183
- "references": {},
184
- "return": "Promise<void>"
185
- },
186
- "docs": {
187
- "text": "",
188
- "tags": [{
189
- "name": "returns",
190
- "text": undefined
191
- }]
192
- }
193
- },
194
- "close": {
195
- "complexType": {
196
- "signature": "() => Promise<void>",
197
- "parameters": [],
198
- "references": {},
199
- "return": "Promise<void>"
200
- },
201
- "docs": {
202
- "text": "",
203
- "tags": [{
204
- "name": "returns",
205
- "text": undefined
206
- }]
207
- }
208
- }
209
- }; }
210
- }
@@ -1,111 +0,0 @@
1
- /*!
2
- * Crafted with ❤ by Salla
3
- */
4
- import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
5
- import { d as defineCustomElement$2 } from './salla-button2.js';
6
-
7
- const sallaSheetCss = ".s-sheet-overlay{position:fixed;top:0px;left:0px;width:100%;height:100%;background-color:#00000080;display:-ms-flexbox;display:flex;-ms-flex-align:end;align-items:flex-end;-ms-flex-pack:center;justify-content:center;display:none}.s-sheet-overlay.active{display:-ms-flexbox;display:flex}.s-sheet-container{width:100%;height:40%;background-color:#ffffff;-webkit-transform:translateY(100%);transform:translateY(100%);-webkit-transition:-webkit-transform 0.4s ease-in-out;transition:-webkit-transform 0.4s ease-in-out;transition:transform 0.4s ease-in-out;transition:transform 0.4s ease-in-out, -webkit-transform 0.4s ease-in-out}";
8
-
9
- const SallaSheet$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
10
- constructor() {
11
- super();
12
- this.__registerHost();
13
- /**
14
- *
15
- */
16
- this.position = 'bottom';
17
- /**
18
- *
19
- */
20
- this.width = 600;
21
- /**
22
- *
23
- */
24
- this.height = 300;
25
- /**
26
- *
27
- */
28
- this.sheetColor = "#ffffff";
29
- /**
30
- *
31
- */
32
- this.persistent = false;
33
- this.flag = false;
34
- }
35
- // private showHideSheet() {
36
- // this.flag = !this.flag;
37
- // }
38
- getMainClass() {
39
- return {
40
- "s-sheet-overlay": true,
41
- "active": this.flag,
42
- };
43
- }
44
- // private getOverlayStyle() {
45
- // return {
46
- // "align-items": this.position == "top" ? "flex-start" : "flex-end",
47
- // "justify-content": this.position == "left" ? "flex-start" : "flex-end"
48
- // }
49
- // }
50
- //
51
- // private getContainerStyle() {
52
- // return {
53
- // "width": `${this.width}px`,
54
- // "min-height": `${this.height}px`,
55
- // "background-color": this.sheetColor,
56
- // // "transform": 'translateY(100%)',
57
- // // "transition": "transform 0.4s ease-in-out"
58
- // }
59
- // }
60
- /**
61
- *
62
- * @returns
63
- */
64
- open() {
65
- this.flag = true;
66
- }
67
- /**
68
- *
69
- * @returns
70
- */
71
- close() {
72
- this.flag = false;
73
- }
74
- render() {
75
- return (h(Host, null, h("slot", { name: 'widget' }, h("salla-button", { fill: 'outline', width: "wide", onClick: () => this.open() }, "Show/Hide")), h("div", { class: this.getMainClass(), onClick: () => this.persistent ? null : this.close() }, h("div", { class: "s-sheet-container" }, h("slot", null)))));
76
- }
77
- static get style() { return sallaSheetCss; }
78
- }, [4, "salla-sheet", {
79
- "position": [1],
80
- "width": [2],
81
- "height": [2],
82
- "sheetColor": [1, "sheet-color"],
83
- "persistent": [4],
84
- "flag": [32],
85
- "open": [64],
86
- "close": [64]
87
- }]);
88
- function defineCustomElement$1() {
89
- if (typeof customElements === "undefined") {
90
- return;
91
- }
92
- const components = ["salla-sheet", "salla-button"];
93
- components.forEach(tagName => { switch (tagName) {
94
- case "salla-sheet":
95
- if (!customElements.get(tagName)) {
96
- customElements.define(tagName, SallaSheet$1);
97
- }
98
- break;
99
- case "salla-button":
100
- if (!customElements.get(tagName)) {
101
- defineCustomElement$2();
102
- }
103
- break;
104
- } });
105
- }
106
- defineCustomElement$1();
107
-
108
- const SallaSheet = SallaSheet$1;
109
- const defineCustomElement = defineCustomElement$1;
110
-
111
- export { SallaSheet, defineCustomElement };