@ezeep/ezeep-js 1.0.266 → 1.0.268

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 (168) hide show
  1. package/dist/cjs/app-globals-D7ISNeUi.js +16 -0
  2. package/dist/cjs/ezeep.cjs.js +43 -12
  3. package/dist/cjs/ezp-auth_15.cjs.entry.js +27964 -26035
  4. package/dist/cjs/index-dv_gozsq.js +4694 -0
  5. package/dist/cjs/loader.cjs.js +7 -17
  6. package/dist/collection/collection-manifest.json +19 -18
  7. package/dist/collection/components/ezp-auth/ezp-auth.js +266 -245
  8. package/dist/collection/components/ezp-backdrop/ezp-backdrop.js +93 -81
  9. package/dist/collection/components/ezp-dialog/ezp-dialog.js +226 -210
  10. package/dist/collection/components/ezp-icon/ezp-icon.js +117 -102
  11. package/dist/collection/components/ezp-icon-button/ezp-icon-button.js +181 -159
  12. package/dist/collection/components/ezp-input/ezp-input.css +5 -5
  13. package/dist/collection/components/ezp-input/ezp-input.js +227 -205
  14. package/dist/collection/components/ezp-label/ezp-label.css +5 -5
  15. package/dist/collection/components/ezp-label/ezp-label.js +151 -132
  16. package/dist/collection/components/ezp-printer-selection/ezp-printer-selection.css +5 -5
  17. package/dist/collection/components/ezp-printer-selection/ezp-printer-selection.js +1118 -1107
  18. package/dist/collection/components/ezp-printing/ezp-printing.css +183 -125
  19. package/dist/collection/components/ezp-printing/ezp-printing.js +872 -807
  20. package/dist/collection/components/ezp-select/ezp-select.css +4 -4
  21. package/dist/collection/components/ezp-select/ezp-select.js +376 -351
  22. package/dist/collection/components/ezp-status/ezp-status.css +5 -5
  23. package/dist/collection/components/ezp-status/ezp-status.js +238 -223
  24. package/dist/collection/components/ezp-stepper/ezp-stepper.css +5 -5
  25. package/dist/collection/components/ezp-stepper/ezp-stepper.js +256 -243
  26. package/dist/collection/components/ezp-text-button/ezp-text-button.js +196 -174
  27. package/dist/collection/components/ezp-upload/ezp-upload.css +3 -25
  28. package/dist/collection/components/ezp-upload/ezp-upload.js +134 -141
  29. package/dist/collection/components/ezp-user-menu/ezp-user-menu.css +5 -5
  30. package/dist/collection/components/ezp-user-menu/ezp-user-menu.js +180 -185
  31. package/dist/collection/services/auth.js +133 -133
  32. package/dist/collection/services/print.js +167 -167
  33. package/dist/collection/services/user.js +16 -16
  34. package/dist/collection/shared/global.js +7 -7
  35. package/dist/collection/utils/utils.js +89 -89
  36. package/dist/components/auth.js +1 -0
  37. package/dist/components/ezp-auth.d.ts +11 -0
  38. package/dist/components/ezp-auth.js +1 -0
  39. package/dist/components/ezp-auth2.js +1 -0
  40. package/dist/components/ezp-backdrop.d.ts +11 -0
  41. package/dist/components/ezp-backdrop.js +1 -0
  42. package/dist/components/ezp-backdrop2.js +1 -0
  43. package/dist/components/ezp-dialog.d.ts +11 -0
  44. package/dist/components/ezp-dialog.js +1 -0
  45. package/dist/components/ezp-dialog2.js +1 -0
  46. package/dist/components/ezp-icon-button.d.ts +11 -0
  47. package/dist/components/ezp-icon-button.js +1 -0
  48. package/dist/components/ezp-icon-button2.js +1 -0
  49. package/dist/components/ezp-icon.d.ts +11 -0
  50. package/dist/components/ezp-icon.js +1 -0
  51. package/dist/components/ezp-icon2.js +1 -0
  52. package/dist/components/ezp-input.d.ts +11 -0
  53. package/dist/components/ezp-input.js +1 -0
  54. package/dist/components/ezp-input2.js +1 -0
  55. package/dist/components/ezp-label.d.ts +11 -0
  56. package/dist/components/ezp-label.js +1 -0
  57. package/dist/components/ezp-label2.js +1 -0
  58. package/dist/components/ezp-printer-selection.d.ts +11 -0
  59. package/dist/components/ezp-printer-selection.js +1 -0
  60. package/dist/components/ezp-printer-selection2.js +1 -0
  61. package/dist/components/ezp-printing.d.ts +11 -0
  62. package/dist/components/ezp-printing.js +1 -0
  63. package/dist/components/ezp-select.d.ts +11 -0
  64. package/dist/components/ezp-select.js +1 -0
  65. package/dist/components/ezp-select2.js +1 -0
  66. package/dist/components/ezp-status.d.ts +11 -0
  67. package/dist/components/ezp-status.js +1 -0
  68. package/dist/components/ezp-status2.js +1 -0
  69. package/dist/components/ezp-stepper.d.ts +11 -0
  70. package/dist/components/ezp-stepper.js +1 -0
  71. package/dist/components/ezp-stepper2.js +1 -0
  72. package/dist/components/ezp-text-button.d.ts +11 -0
  73. package/dist/components/ezp-text-button.js +1 -0
  74. package/dist/components/ezp-text-button2.js +1 -0
  75. package/dist/components/ezp-upload.d.ts +11 -0
  76. package/dist/components/ezp-upload.js +1 -0
  77. package/dist/components/ezp-upload2.js +1 -0
  78. package/dist/components/ezp-user-menu.d.ts +11 -0
  79. package/dist/components/ezp-user-menu.js +1 -0
  80. package/dist/components/ezp-user-menu2.js +1 -0
  81. package/dist/components/i18next.js +1 -0
  82. package/dist/components/index.d.ts +35 -0
  83. package/dist/components/index.js +1 -0
  84. package/dist/directives/angular-component-lib/utils.ts +33 -14
  85. package/dist/directives/proxies.ts +231 -111
  86. package/dist/esm/app-globals-CpP67t2l.js +14 -0
  87. package/dist/esm/ezeep.js +41 -12
  88. package/dist/esm/ezp-auth_15.entry.js +27967 -26036
  89. package/dist/esm/index-BTfWEHH9.js +4677 -0
  90. package/dist/esm/loader.js +7 -15
  91. package/dist/esm-es5/app-globals-CpP67t2l.js +1 -0
  92. package/dist/esm-es5/ezeep.js +1 -1
  93. package/dist/esm-es5/ezp-auth_15.entry.js +2 -2
  94. package/dist/esm-es5/index-BTfWEHH9.js +13 -0
  95. package/dist/esm-es5/loader.js +1 -1
  96. package/dist/ezeep/ezeep.esm.js +1 -1
  97. package/dist/ezeep/ezeep.js +16 -19
  98. package/dist/ezeep/p-5ok9OZMg.system.js +1 -0
  99. package/dist/ezeep/p-BTfWEHH9.js +2 -0
  100. package/dist/ezeep/p-CfQRcOh8.system.js +1 -0
  101. package/dist/ezeep/p-CpP67t2l.js +1 -0
  102. package/dist/ezeep/p-DhXN1yGM.system.js +13 -0
  103. package/dist/ezeep/p-ba70b358.entry.js +1 -0
  104. package/dist/ezeep/p-f3ad7583.system.entry.js +7 -0
  105. package/dist/types/components/ezp-auth/ezp-auth.d.ts +20 -20
  106. package/dist/types/components/ezp-backdrop/ezp-backdrop.d.ts +7 -7
  107. package/dist/types/components/ezp-dialog/ezp-dialog.d.ts +38 -38
  108. package/dist/types/components/ezp-icon/ezp-icon.d.ts +24 -24
  109. package/dist/types/components/ezp-icon-button/ezp-icon-button.d.ts +23 -23
  110. package/dist/types/components/ezp-input/ezp-input.d.ts +38 -38
  111. package/dist/types/components/ezp-label/ezp-label.d.ts +21 -21
  112. package/dist/types/components/ezp-printer-selection/ezp-printer-selection.d.ts +116 -116
  113. package/dist/types/components/ezp-printing/ezp-printing.d.ts +83 -83
  114. package/dist/types/components/ezp-select/ezp-select.d.ts +80 -80
  115. package/dist/types/components/ezp-status/ezp-status.d.ts +40 -40
  116. package/dist/types/components/ezp-stepper/ezp-stepper.d.ts +65 -65
  117. package/dist/types/components/ezp-text-button/ezp-text-button.d.ts +25 -25
  118. package/dist/types/components/ezp-upload/ezp-upload.d.ts +38 -38
  119. package/dist/types/components/ezp-user-menu/ezp-user-menu.d.ts +43 -43
  120. package/dist/types/components.d.ts +493 -50
  121. package/dist/types/services/auth.d.ts +27 -27
  122. package/dist/types/services/print.d.ts +32 -32
  123. package/dist/types/services/user.d.ts +4 -4
  124. package/dist/types/stencil-public-runtime.d.ts +335 -40
  125. package/dist/types/utils/utils.d.ts +6 -6
  126. package/loader/cdn.js +1 -2
  127. package/loader/index.cjs.js +1 -2
  128. package/loader/index.d.ts +13 -1
  129. package/loader/index.es2017.js +1 -2
  130. package/loader/index.js +1 -2
  131. package/package.json +10 -10
  132. package/www/build/ezeep.esm.js +1 -1
  133. package/www/build/ezeep.js +16 -19
  134. package/www/build/p-5ok9OZMg.system.js +1 -0
  135. package/www/build/p-8f4a7bc3.js +1 -0
  136. package/www/build/p-BTfWEHH9.js +2 -0
  137. package/www/build/p-CfQRcOh8.system.js +1 -0
  138. package/www/build/p-CpP67t2l.js +1 -0
  139. package/www/build/p-DhXN1yGM.system.js +13 -0
  140. package/www/build/p-ba70b358.entry.js +1 -0
  141. package/www/build/p-f3ad7583.system.entry.js +7 -0
  142. package/www/index.html +1 -1
  143. package/dist/cjs/app-globals-53afb196.js +0 -15
  144. package/dist/cjs/index-1f953145.js +0 -1482
  145. package/dist/custom-elements/index.d.ts +0 -129
  146. package/dist/custom-elements/index.js +0 -34555
  147. package/dist/esm/app-globals-28960cbc.js +0 -13
  148. package/dist/esm/index-3ac1b749.js +0 -1450
  149. package/dist/esm/polyfills/css-shim.js +0 -1
  150. package/dist/esm-es5/app-globals-28960cbc.js +0 -1
  151. package/dist/esm-es5/index-3ac1b749.js +0 -1
  152. package/dist/ezeep/p-0cc2026d.system.js +0 -1
  153. package/dist/ezeep/p-312f40d7.js +0 -1
  154. package/dist/ezeep/p-84bd195a.system.js +0 -1
  155. package/dist/ezeep/p-a4d37138.js +0 -1
  156. package/dist/ezeep/p-d3570133.system.entry.js +0 -7
  157. package/dist/ezeep/p-dcf9f118.entry.js +0 -1
  158. package/dist/ezeep/p-ded04529.system.js +0 -1
  159. package/loader/package.json +0 -10
  160. package/www/build/p-0cc2026d.system.js +0 -1
  161. package/www/build/p-312f40d7.js +0 -1
  162. package/www/build/p-84bd195a.system.js +0 -1
  163. package/www/build/p-a4d37138.js +0 -1
  164. package/www/build/p-d3570133.system.entry.js +0 -7
  165. package/www/build/p-dcf9f118.entry.js +0 -1
  166. package/www/build/p-ded04529.system.js +0 -1
  167. /package/dist/ezeep/{p-50ea2036.system.js → p-YWpyar7R.system.js} +0 -0
  168. /package/www/build/{p-50ea2036.system.js → p-YWpyar7R.system.js} +0 -0
@@ -1,151 +1,144 @@
1
- import { Component, Host, Listen, Event, State, h, Fragment } from '@stencil/core';
2
- import i18next from 'i18next';
1
+ import { Host, h, Fragment } from "@stencil/core";
2
+ import i18next from "i18next";
3
3
  export class EzpUpload {
4
- constructor() {
4
+ constructor() {
5
+ /**
6
+ *
7
+ * States
8
+ *
9
+ */
10
+ this.selectedFiles = [];
11
+ this.dragging = false;
12
+ /**
13
+ *
14
+ * Private methods
15
+ *
16
+ */
17
+ this.handleInput = () => {
18
+ const files = Array.from(this.input.files);
19
+ // Add new files to existing selection instead of replacing
20
+ this.selectedFiles = [...this.selectedFiles, ...files];
21
+ this.uploadFile.emit(this.selectedFiles);
22
+ // Reset the input so the same file can be selected again
23
+ if (this.input) {
24
+ this.input.value = '';
25
+ }
26
+ };
27
+ this.removeFile = (event, index) => {
28
+ event.preventDefault();
29
+ event.stopPropagation();
30
+ this.selectedFiles = this.selectedFiles.filter((_, i) => i !== index);
31
+ this.uploadFile.emit(this.selectedFiles);
32
+ // Reset the input so it's ready for new selections
33
+ if (this.input) {
34
+ this.input.value = '';
35
+ }
36
+ };
37
+ }
5
38
  /**
6
39
  *
7
- * States
40
+ * Listeners
8
41
  *
9
42
  */
10
- this.selectedFiles = [];
11
- this.dragging = false;
43
+ handleDragEnter() {
44
+ this.dragging = true;
45
+ }
46
+ handleDragOver(event) {
47
+ event.stopPropagation();
48
+ event.preventDefault();
49
+ event.dataTransfer.dropEffect = 'copy';
50
+ }
51
+ handleDragLeave() {
52
+ this.dragging = false;
53
+ }
54
+ handleDrop(event) {
55
+ event.stopPropagation();
56
+ event.preventDefault();
57
+ this.dragging = false;
58
+ const files = Array.from(event.dataTransfer.files);
59
+ // Add new files to existing selection instead of replacing
60
+ this.selectedFiles = [...this.selectedFiles, ...files];
61
+ this.uploadFile.emit(this.selectedFiles);
62
+ }
63
+ listenPrintCancel() {
64
+ this.form.reset();
65
+ this.selectedFiles = [];
66
+ }
12
67
  /**
13
68
  *
14
- * Private methods
69
+ * Render method
15
70
  *
16
71
  */
17
- this.handleInput = () => {
18
- const files = Array.from(this.input.files);
19
- // Add new files to existing selection instead of replacing
20
- this.selectedFiles = [...this.selectedFiles, ...files];
21
- this.uploadFile.emit(this.selectedFiles);
22
- // Reset the input so the same file can be selected again
23
- if (this.input) {
24
- this.input.value = '';
25
- }
26
- };
27
- this.removeFile = (event, index) => {
28
- event.preventDefault();
29
- event.stopPropagation();
30
- this.selectedFiles = this.selectedFiles.filter((_, i) => i !== index);
31
- this.uploadFile.emit(this.selectedFiles);
32
- // Reset the input so it's ready for new selections
33
- if (this.input) {
34
- this.input.value = '';
35
- }
36
- };
37
- }
38
- /**
39
- *
40
- * Listeners
41
- *
42
- */
43
- handleDragEnter() {
44
- this.dragging = true;
45
- }
46
- handleDragOver(event) {
47
- event.stopPropagation();
48
- event.preventDefault();
49
- event.dataTransfer.dropEffect = 'copy';
50
- }
51
- handleDragLeave() {
52
- this.dragging = false;
53
- }
54
- handleDrop(event) {
55
- event.stopPropagation();
56
- event.preventDefault();
57
- this.dragging = false;
58
- const files = Array.from(event.dataTransfer.files);
59
- // Add new files to existing selection instead of replacing
60
- this.selectedFiles = [...this.selectedFiles, ...files];
61
- this.uploadFile.emit(this.selectedFiles);
62
- }
63
- listenPrintCancel() {
64
- this.form.reset();
65
- this.selectedFiles = [];
66
- }
67
- /**
68
- *
69
- * Render method
70
- *
71
- */
72
- render() {
73
- return (h(Host, { class: { dragging: this.dragging } },
74
- h("form", { id: "form", ref: (form) => (this.form = form) },
75
- h("div", { id: "header" },
76
- h("ezp-icon", { name: "drag-drop", size: "huge", framed: true }),
77
- h("ezp-label", { weight: "strong", text: i18next.t('upload.description') }),
78
- h("div", { id: "meta" },
79
- h("ezp-label", { level: "tertiary", text: i18next.t('upload.meta_leading') }),
80
- h("label", { htmlFor: "input", id: "select" },
81
- h("ezp-label", { level: "tertiary", weight: "strong", text: i18next.t('upload.meta_select') })),
82
- h("input", { type: "file", name: "input", id: "input", multiple: true, ref: (input) => (this.input = input), onInput: this.handleInput }),
83
- h("ezp-label", { level: "tertiary", text: i18next.t('upload.meta_trailing') })),
84
- this.selectedFiles.length > 0 && (h(Fragment, null,
85
- h("ezp-label", { level: "secondary", text: i18next.t('upload.selected_files') }),
86
- h("div", { id: "file-list" }, this.selectedFiles.map((file, index) => (h("div", { key: index, class: "file-item" },
87
- h("div", { class: "file-name" },
88
- h("ezp-label", { level: "tertiary", text: file.name })),
89
- h("div", { class: "file-remove" },
90
- h("ezp-icon-button", { icon: "close", type: "button", level: "tertiary", onClick: (event) => this.removeFile(event, index) }))))))))))));
91
- }
92
- static get is() { return "ezp-upload"; }
93
- static get encapsulation() { return "shadow"; }
94
- static get originalStyleUrls() { return {
95
- "$": ["ezp-upload.scss"]
96
- }; }
97
- static get styleUrls() { return {
98
- "$": ["ezp-upload.css"]
99
- }; }
100
- static get states() { return {
101
- "selectedFiles": {},
102
- "dragging": {}
103
- }; }
104
- static get events() { return [{
105
- "method": "uploadFile",
106
- "name": "uploadFile",
107
- "bubbles": true,
108
- "cancelable": true,
109
- "composed": true,
110
- "docs": {
111
- "tags": [],
112
- "text": "\nEvents"
113
- },
114
- "complexType": {
115
- "original": "any",
116
- "resolved": "any",
117
- "references": {}
118
- }
119
- }]; }
120
- static get listeners() { return [{
121
- "name": "dragenter",
122
- "method": "handleDragEnter",
123
- "target": undefined,
124
- "capture": false,
125
- "passive": true
126
- }, {
127
- "name": "dragover",
128
- "method": "handleDragOver",
129
- "target": undefined,
130
- "capture": false,
131
- "passive": false
132
- }, {
133
- "name": "dragleave",
134
- "method": "handleDragLeave",
135
- "target": undefined,
136
- "capture": false,
137
- "passive": true
138
- }, {
139
- "name": "drop",
140
- "method": "handleDrop",
141
- "target": undefined,
142
- "capture": false,
143
- "passive": false
144
- }, {
145
- "name": "printCancel",
146
- "method": "listenPrintCancel",
147
- "target": "document",
148
- "capture": false,
149
- "passive": false
150
- }]; }
72
+ render() {
73
+ return (h(Host, { key: '4711c053e354bac32778220913800e9ddbeea4ae', class: { dragging: this.dragging } }, h("form", { key: 'bc38c6da6d342dbec11724ada061a136ce5e8ec9', id: "form", ref: (form) => (this.form = form) }, h("div", { key: '7823a9d8b9687a3dd4614a6de2d8ce9ed9e105a9', id: "header" }, h("ezp-icon", { key: '0cfe322cd35d84ca5dd55d03c2e9f485d61c36fc', name: "drag-drop", size: "huge", framed: true }), h("ezp-label", { key: '54408d9e0b2bc3837dbda634c8f0d1980cd9ca13', weight: "strong", text: i18next.t('upload.description') }), h("div", { key: '2c205310172c020fff181af64aa2b2d01b8c14a3', id: "meta" }, h("ezp-label", { key: '5d66adb460bcaa82a0f2bdff02e4bef61c926471', level: "tertiary", text: i18next.t('upload.meta_leading') }), h("label", { key: 'eb84ebab2edf72fabab9c818d609a93a0dd531d5', htmlFor: "input", id: "select" }, h("ezp-label", { key: '8daed6c65c7ba63b741d958e824e2c5e5cdc402f', level: "tertiary", weight: "strong", text: i18next.t('upload.meta_select') })), h("input", { key: 'bdc526e6393100006423e1e7fe2eacc4c7ba1984', type: "file", name: "input", id: "input", multiple: true, ref: (input) => (this.input = input), onInput: this.handleInput }), h("ezp-label", { key: '7126b66e7fa542bb4566e1b2af1a03357da08cf3', level: "tertiary", text: i18next.t('upload.meta_trailing') })), this.selectedFiles.length > 0 && (h(Fragment, null, h("ezp-label", { key: 'e0334c3a4378db13dbcf755b79564b7ecbe3630e', level: "secondary", text: i18next.t('upload.selected_files') }), h("div", { key: 'aaa7963218870cd372b67b48d7e73945f39b062a', id: "file-list" }, this.selectedFiles.map((file, index) => (h("div", { key: index, class: "file-item" }, h("div", { class: "file-name" }, h("ezp-label", { level: "tertiary", text: file.name })), h("div", { class: "file-remove" }, h("ezp-icon-button", { icon: "close", type: "button", level: "tertiary", onClick: (event) => this.removeFile(event, index) }))))))))))));
74
+ }
75
+ static get is() { return "ezp-upload"; }
76
+ static get encapsulation() { return "shadow"; }
77
+ static get originalStyleUrls() {
78
+ return {
79
+ "$": ["ezp-upload.scss"]
80
+ };
81
+ }
82
+ static get styleUrls() {
83
+ return {
84
+ "$": ["ezp-upload.css"]
85
+ };
86
+ }
87
+ static get states() {
88
+ return {
89
+ "selectedFiles": {},
90
+ "dragging": {}
91
+ };
92
+ }
93
+ static get events() {
94
+ return [{
95
+ "method": "uploadFile",
96
+ "name": "uploadFile",
97
+ "bubbles": true,
98
+ "cancelable": true,
99
+ "composed": true,
100
+ "docs": {
101
+ "tags": [],
102
+ "text": "\nEvents"
103
+ },
104
+ "complexType": {
105
+ "original": "any",
106
+ "resolved": "any",
107
+ "references": {}
108
+ }
109
+ }];
110
+ }
111
+ static get listeners() {
112
+ return [{
113
+ "name": "dragenter",
114
+ "method": "handleDragEnter",
115
+ "target": undefined,
116
+ "capture": false,
117
+ "passive": true
118
+ }, {
119
+ "name": "dragover",
120
+ "method": "handleDragOver",
121
+ "target": undefined,
122
+ "capture": false,
123
+ "passive": false
124
+ }, {
125
+ "name": "dragleave",
126
+ "method": "handleDragLeave",
127
+ "target": undefined,
128
+ "capture": false,
129
+ "passive": true
130
+ }, {
131
+ "name": "drop",
132
+ "method": "handleDrop",
133
+ "target": undefined,
134
+ "capture": false,
135
+ "passive": false
136
+ }, {
137
+ "name": "printCancel",
138
+ "method": "listenPrintCancel",
139
+ "target": "document",
140
+ "capture": false,
141
+ "passive": false
142
+ }];
143
+ }
151
144
  }
@@ -3,6 +3,11 @@
3
3
  * Modules
4
4
  *
5
5
  */
6
+ /**
7
+ *
8
+ * Modules
9
+ *
10
+ */
6
11
  /**
7
12
  *
8
13
  * Variables
@@ -18,11 +23,6 @@
18
23
  * Mixins
19
24
  *
20
25
  */
21
- /**
22
- *
23
- * Modules
24
- *
25
- */
26
26
  /**
27
27
  *
28
28
  * Rules