@smartsoft001/trans-shell-dtos-services 2.112.0 → 2.113.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.
Files changed (2) hide show
  1. package/index.js +8 -72
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -133,78 +133,6 @@ var ObjectService = class {
133
133
  // packages/shared/utils/src/lib/services/password/password.service.ts
134
134
  import md5 from "md5";
135
135
 
136
- // packages/shared/utils/src/lib/services/remove-html/remove-html.service.ts
137
- var RemoveHtmlService = class {
138
- /**
139
- * Remove HTML tags and decode HTML entities from text
140
- * - Removes HTML tags
141
- * - Decodes common named entities ( , ", etc.)
142
- * - Decodes numeric entities ({ or «)
143
- * - Removes any remaining unrecognized entities
144
- */
145
- static create(val) {
146
- if (!val) {
147
- return "";
148
- }
149
- let result = val;
150
- result = result.replace(/<[^>]*(>|$)/g, "");
151
- result = result.replace(/&nbsp;/g, " ").replace(/&quot;/g, '"').replace(/&apos;/g, "'").replace(/&lt;/g, "<").replace(/&gt;/g, ">").replace(/&amp;/g, "&").replace(/&bdquo;/g, "\u201E").replace(/&rdquo;/g, '"').replace(/&ldquo;/g, '"').replace(/&laquo;/g, "\xAB").replace(/&raquo;/g, "\xBB").replace(/&zwnj;/g, "");
152
- result = result.replace(/&#(\d+);/g, (match, dec) => String.fromCharCode(dec)).replace(
153
- /&#x([0-9a-f]+);/gi,
154
- (match, hex) => String.fromCharCode(parseInt(hex, 16))
155
- );
156
- result = result.replace(/&[a-z]+;/gi, "");
157
- return result;
158
- }
159
- };
160
-
161
- // packages/shared/utils/src/lib/services/slug/slug.service.ts
162
- var SlugService = class _SlugService {
163
- static {
164
- this.polishToEnglishMap = {
165
- \u0105: "a",
166
- \u0107: "c",
167
- \u0119: "e",
168
- \u0142: "l",
169
- \u0144: "n",
170
- \u00F3: "o",
171
- \u015B: "s",
172
- \u017A: "z",
173
- \u017C: "z",
174
- \u0104: "A",
175
- \u0106: "C",
176
- \u0118: "E",
177
- \u0141: "L",
178
- \u0143: "N",
179
- \u00D3: "O",
180
- \u015A: "S",
181
- \u0179: "Z",
182
- \u017B: "Z"
183
- };
184
- }
185
- /**
186
- * Convert text to URL-friendly slug
187
- * - Removes HTML tags and entities
188
- * - Replaces Polish characters with English equivalents
189
- * - Converts to lowercase
190
- * - Replaces spaces and special characters with hyphens
191
- * - Removes multiple consecutive hyphens
192
- * - Trims hyphens from start and end
193
- */
194
- static create(text) {
195
- if (!text) {
196
- return "";
197
- }
198
- let slug = RemoveHtmlService.create(text);
199
- slug = slug.split("").map((char) => _SlugService.polishToEnglishMap[char] || char).join("");
200
- slug = slug.toLowerCase();
201
- slug = slug.replace(/[^a-z0-9]+/g, "-");
202
- slug = slug.replace(/-+/g, "-");
203
- slug = slug.replace(/^-+|-+$/g, "");
204
- return slug;
205
- }
206
- };
207
-
208
136
  // packages/shared/models/src/lib/decorators/field/field.decorator.ts
209
137
  var Field = FieldDecorator;
210
138
  function FieldDecorator(options) {
@@ -248,6 +176,14 @@ function FieldDecorator(options) {
248
176
 
249
177
  // packages/trans/shell/dtos/src/lib/trans-create.dto.ts
250
178
  var TransCreateDto = class {
179
+ amount;
180
+ system;
181
+ data;
182
+ name;
183
+ firstName;
184
+ lastName;
185
+ email;
186
+ contactPhone;
251
187
  };
252
188
  __decorateClass([
253
189
  Field({ required: true, type: FieldType.currency })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartsoft001/trans-shell-dtos-services",
3
- "version": "2.112.0",
3
+ "version": "2.113.0",
4
4
  "description": "This library was generated with [Nx](https://nx.dev).",
5
5
  "repository": {
6
6
  "type": "git",