@nocobase/plugin-gantt 2.1.0-beta.38 → 2.1.0-beta.40

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 (118) hide show
  1. package/dist/client/index.js +1 -1
  2. package/dist/client-v2/793.629d4cd39664b681.js +10 -0
  3. package/dist/client-v2/index.js +1 -1
  4. package/dist/client-v2/locale.d.ts +6 -0
  5. package/dist/client-v2/models/GanttBlockModel.d.ts +1 -1
  6. package/dist/client-v2/models/components/GanttBlock.helpers.d.ts +8 -0
  7. package/dist/client-v2/models/components/GanttBlock.styles.d.ts +2 -1
  8. package/dist/client-v2/models/components/GanttBlock.tree.d.ts +9 -6
  9. package/dist/{shared → client-v2/shared}/components/grid/style.d.ts +4 -3
  10. package/dist/{shared → client-v2/shared}/components/other/horizontal-scroll.d.ts +1 -1
  11. package/dist/externalVersion.js +6 -6
  12. package/dist/locale/en-US.json +4 -1
  13. package/dist/locale/zh-CN.json +4 -1
  14. package/package.json +2 -2
  15. package/dist/client-v2/143.1a8cf1cd5ce17b64.js +0 -10
  16. package/dist/node_modules/@ctrl/tinycolor/LICENSE +0 -7
  17. package/dist/node_modules/@ctrl/tinycolor/dist/bundles/tinycolor.umd.min.js +0 -2
  18. package/dist/node_modules/@ctrl/tinycolor/dist/conversion.d.ts +0 -61
  19. package/dist/node_modules/@ctrl/tinycolor/dist/conversion.js +0 -250
  20. package/dist/node_modules/@ctrl/tinycolor/dist/css-color-names.d.ts +0 -4
  21. package/dist/node_modules/@ctrl/tinycolor/dist/css-color-names.js +0 -157
  22. package/dist/node_modules/@ctrl/tinycolor/dist/format-input.d.ts +0 -37
  23. package/dist/node_modules/@ctrl/tinycolor/dist/format-input.js +0 -189
  24. package/dist/node_modules/@ctrl/tinycolor/dist/from-ratio.d.ts +0 -14
  25. package/dist/node_modules/@ctrl/tinycolor/dist/from-ratio.js +0 -30
  26. package/dist/node_modules/@ctrl/tinycolor/dist/index.d.ts +0 -207
  27. package/dist/node_modules/@ctrl/tinycolor/dist/index.js +0 -512
  28. package/dist/node_modules/@ctrl/tinycolor/dist/interfaces.d.ts +0 -46
  29. package/dist/node_modules/@ctrl/tinycolor/dist/interfaces.js +0 -2
  30. package/dist/node_modules/@ctrl/tinycolor/dist/module/conversion.js +0 -235
  31. package/dist/node_modules/@ctrl/tinycolor/dist/module/css-color-names.js +0 -154
  32. package/dist/node_modules/@ctrl/tinycolor/dist/module/format-input.js +0 -183
  33. package/dist/node_modules/@ctrl/tinycolor/dist/module/from-ratio.js +0 -25
  34. package/dist/node_modules/@ctrl/tinycolor/dist/module/index.js +0 -508
  35. package/dist/node_modules/@ctrl/tinycolor/dist/module/interfaces.js +0 -1
  36. package/dist/node_modules/@ctrl/tinycolor/dist/module/public_api.js +0 -12
  37. package/dist/node_modules/@ctrl/tinycolor/dist/module/random.js +0 -278
  38. package/dist/node_modules/@ctrl/tinycolor/dist/module/readability.js +0 -80
  39. package/dist/node_modules/@ctrl/tinycolor/dist/module/to-ms-filter.js +0 -16
  40. package/dist/node_modules/@ctrl/tinycolor/dist/module/umd_api.js +0 -20
  41. package/dist/node_modules/@ctrl/tinycolor/dist/module/util.js +0 -82
  42. package/dist/node_modules/@ctrl/tinycolor/dist/public_api.d.ts +0 -11
  43. package/dist/node_modules/@ctrl/tinycolor/dist/public_api.js +0 -1
  44. package/dist/node_modules/@ctrl/tinycolor/dist/random.d.ts +0 -24
  45. package/dist/node_modules/@ctrl/tinycolor/dist/random.js +0 -282
  46. package/dist/node_modules/@ctrl/tinycolor/dist/readability.d.ts +0 -46
  47. package/dist/node_modules/@ctrl/tinycolor/dist/readability.js +0 -86
  48. package/dist/node_modules/@ctrl/tinycolor/dist/to-ms-filter.d.ts +0 -5
  49. package/dist/node_modules/@ctrl/tinycolor/dist/to-ms-filter.js +0 -20
  50. package/dist/node_modules/@ctrl/tinycolor/dist/umd_api.d.ts +0 -23
  51. package/dist/node_modules/@ctrl/tinycolor/dist/umd_api.js +0 -22
  52. package/dist/node_modules/@ctrl/tinycolor/dist/util.d.ts +0 -36
  53. package/dist/node_modules/@ctrl/tinycolor/dist/util.js +0 -92
  54. package/dist/node_modules/@ctrl/tinycolor/package.json +0 -1
  55. package/dist/shared/components/calendar/calendar.js +0 -417
  56. package/dist/shared/components/calendar/style.js +0 -79
  57. package/dist/shared/components/calendar/top-part-of-calendar.js +0 -57
  58. package/dist/shared/components/gantt/style.js +0 -74
  59. package/dist/shared/components/gantt/task-gantt-content.js +0 -337
  60. package/dist/shared/components/gantt/task-gantt.js +0 -128
  61. package/dist/shared/components/grid/grid-body.js +0 -114
  62. package/dist/shared/components/grid/grid.js +0 -50
  63. package/dist/shared/components/grid/style.js +0 -54
  64. package/dist/shared/components/other/arrow.js +0 -90
  65. package/dist/shared/components/other/horizontal-scroll.js +0 -64
  66. package/dist/shared/components/other/style.js +0 -125
  67. package/dist/shared/components/other/tooltip.js +0 -137
  68. package/dist/shared/components/other/vertical-scroll.js +0 -74
  69. package/dist/shared/components/task-item/bar/bar-date-handle.js +0 -62
  70. package/dist/shared/components/task-item/bar/bar-display.js +0 -98
  71. package/dist/shared/components/task-item/bar/bar-progress-handle.js +0 -49
  72. package/dist/shared/components/task-item/bar/bar-small.js +0 -85
  73. package/dist/shared/components/task-item/bar/bar.js +0 -113
  74. package/dist/shared/components/task-item/bar/style.js +0 -58
  75. package/dist/shared/components/task-item/milestone/milestone.js +0 -72
  76. package/dist/shared/components/task-item/milestone/style.js +0 -45
  77. package/dist/shared/components/task-item/project/project.js +0 -77
  78. package/dist/shared/components/task-item/project/style.js +0 -51
  79. package/dist/shared/components/task-item/style.js +0 -74
  80. package/dist/shared/components/task-item/task-item.js +0 -132
  81. package/dist/shared/helpers/bar-helper.js +0 -415
  82. package/dist/shared/helpers/date-helper.js +0 -231
  83. package/dist/shared/helpers/other-helper.js +0 -97
  84. package/dist/shared/types/bar-task.js +0 -24
  85. package/dist/shared/types/date-setup.js +0 -24
  86. package/dist/shared/types/gantt-task-actions.js +0 -24
  87. package/dist/shared/types/public-types.js +0 -46
  88. /package/dist/{shared → client-v2/shared}/components/calendar/calendar.d.ts +0 -0
  89. /package/dist/{shared → client-v2/shared}/components/calendar/style.d.ts +0 -0
  90. /package/dist/{shared → client-v2/shared}/components/calendar/top-part-of-calendar.d.ts +0 -0
  91. /package/dist/{shared → client-v2/shared}/components/gantt/style.d.ts +0 -0
  92. /package/dist/{shared → client-v2/shared}/components/gantt/task-gantt-content.d.ts +0 -0
  93. /package/dist/{shared → client-v2/shared}/components/gantt/task-gantt.d.ts +0 -0
  94. /package/dist/{shared → client-v2/shared}/components/grid/grid-body.d.ts +0 -0
  95. /package/dist/{shared → client-v2/shared}/components/grid/grid.d.ts +0 -0
  96. /package/dist/{shared → client-v2/shared}/components/other/arrow.d.ts +0 -0
  97. /package/dist/{shared → client-v2/shared}/components/other/style.d.ts +0 -0
  98. /package/dist/{shared → client-v2/shared}/components/other/tooltip.d.ts +0 -0
  99. /package/dist/{shared → client-v2/shared}/components/other/vertical-scroll.d.ts +0 -0
  100. /package/dist/{shared → client-v2/shared}/components/task-item/bar/bar-date-handle.d.ts +0 -0
  101. /package/dist/{shared → client-v2/shared}/components/task-item/bar/bar-display.d.ts +0 -0
  102. /package/dist/{shared → client-v2/shared}/components/task-item/bar/bar-progress-handle.d.ts +0 -0
  103. /package/dist/{shared → client-v2/shared}/components/task-item/bar/bar-small.d.ts +0 -0
  104. /package/dist/{shared → client-v2/shared}/components/task-item/bar/bar.d.ts +0 -0
  105. /package/dist/{shared → client-v2/shared}/components/task-item/bar/style.d.ts +0 -0
  106. /package/dist/{shared → client-v2/shared}/components/task-item/milestone/milestone.d.ts +0 -0
  107. /package/dist/{shared → client-v2/shared}/components/task-item/milestone/style.d.ts +0 -0
  108. /package/dist/{shared → client-v2/shared}/components/task-item/project/project.d.ts +0 -0
  109. /package/dist/{shared → client-v2/shared}/components/task-item/project/style.d.ts +0 -0
  110. /package/dist/{shared → client-v2/shared}/components/task-item/style.d.ts +0 -0
  111. /package/dist/{shared → client-v2/shared}/components/task-item/task-item.d.ts +0 -0
  112. /package/dist/{shared → client-v2/shared}/helpers/bar-helper.d.ts +0 -0
  113. /package/dist/{shared → client-v2/shared}/helpers/date-helper.d.ts +0 -0
  114. /package/dist/{shared → client-v2/shared}/helpers/other-helper.d.ts +0 -0
  115. /package/dist/{shared → client-v2/shared}/types/bar-task.d.ts +0 -0
  116. /package/dist/{shared → client-v2/shared}/types/date-setup.d.ts +0 -0
  117. /package/dist/{shared → client-v2/shared}/types/gantt-task-actions.d.ts +0 -0
  118. /package/dist/{shared → client-v2/shared}/types/public-types.d.ts +0 -0
@@ -1,207 +0,0 @@
1
- import { HSL, HSLA, HSV, HSVA, Numberify, RGB, RGBA } from './interfaces.js';
2
- export interface TinyColorOptions {
3
- format: string;
4
- gradientType: string;
5
- }
6
- export type ColorInput = string | number | RGB | RGBA | HSL | HSLA | HSV | HSVA | TinyColor;
7
- export type ColorFormats = 'rgb' | 'prgb' | 'hex' | 'hex3' | 'hex4' | 'hex6' | 'hex8' | 'name' | 'hsl' | 'hsv';
8
- export declare class TinyColor {
9
- /** red */
10
- r: number;
11
- /** green */
12
- g: number;
13
- /** blue */
14
- b: number;
15
- /** alpha */
16
- a: number;
17
- /** the format used to create the tinycolor instance */
18
- format: ColorFormats;
19
- /** input passed into the constructer used to create the tinycolor instance */
20
- originalInput: ColorInput;
21
- /** the color was successfully parsed */
22
- isValid: boolean;
23
- gradientType?: string;
24
- /** rounded alpha */
25
- roundA: number;
26
- constructor(color?: ColorInput, opts?: Partial<TinyColorOptions>);
27
- isDark(): boolean;
28
- isLight(): boolean;
29
- /**
30
- * Returns the perceived brightness of the color, from 0-255.
31
- */
32
- getBrightness(): number;
33
- /**
34
- * Returns the perceived luminance of a color, from 0-1.
35
- */
36
- getLuminance(): number;
37
- /**
38
- * Returns the alpha value of a color, from 0-1.
39
- */
40
- getAlpha(): number;
41
- /**
42
- * Sets the alpha value on the current color.
43
- *
44
- * @param alpha - The new alpha value. The accepted range is 0-1.
45
- */
46
- setAlpha(alpha?: string | number): this;
47
- /**
48
- * Returns whether the color is monochrome.
49
- */
50
- isMonochrome(): boolean;
51
- /**
52
- * Returns the object as a HSVA object.
53
- */
54
- toHsv(): Numberify<HSVA>;
55
- /**
56
- * Returns the hsva values interpolated into a string with the following format:
57
- * "hsva(xxx, xxx, xxx, xx)".
58
- */
59
- toHsvString(): string;
60
- /**
61
- * Returns the object as a HSLA object.
62
- */
63
- toHsl(): Numberify<HSLA>;
64
- /**
65
- * Returns the hsla values interpolated into a string with the following format:
66
- * "hsla(xxx, xxx, xxx, xx)".
67
- */
68
- toHslString(): string;
69
- /**
70
- * Returns the hex value of the color.
71
- * @param allow3Char will shorten hex value to 3 char if possible
72
- */
73
- toHex(allow3Char?: boolean): string;
74
- /**
75
- * Returns the hex value of the color -with a # prefixed.
76
- * @param allow3Char will shorten hex value to 3 char if possible
77
- */
78
- toHexString(allow3Char?: boolean): string;
79
- /**
80
- * Returns the hex 8 value of the color.
81
- * @param allow4Char will shorten hex value to 4 char if possible
82
- */
83
- toHex8(allow4Char?: boolean): string;
84
- /**
85
- * Returns the hex 8 value of the color -with a # prefixed.
86
- * @param allow4Char will shorten hex value to 4 char if possible
87
- */
88
- toHex8String(allow4Char?: boolean): string;
89
- /**
90
- * Returns the shorter hex value of the color depends on its alpha -with a # prefixed.
91
- * @param allowShortChar will shorten hex value to 3 or 4 char if possible
92
- */
93
- toHexShortString(allowShortChar?: boolean): string;
94
- /**
95
- * Returns the object as a RGBA object.
96
- */
97
- toRgb(): Numberify<RGBA>;
98
- /**
99
- * Returns the RGBA values interpolated into a string with the following format:
100
- * "RGBA(xxx, xxx, xxx, xx)".
101
- */
102
- toRgbString(): string;
103
- /**
104
- * Returns the object as a RGBA object.
105
- */
106
- toPercentageRgb(): RGBA;
107
- /**
108
- * Returns the RGBA relative values interpolated into a string
109
- */
110
- toPercentageRgbString(): string;
111
- /**
112
- * The 'real' name of the color -if there is one.
113
- */
114
- toName(): string | false;
115
- /**
116
- * String representation of the color.
117
- *
118
- * @param format - The format to be used when displaying the string representation.
119
- */
120
- toString<T extends 'name'>(format: T): boolean | string;
121
- toString<T extends ColorFormats>(format?: T): string;
122
- toNumber(): number;
123
- clone(): TinyColor;
124
- /**
125
- * Lighten the color a given amount. Providing 100 will always return white.
126
- * @param amount - valid between 1-100
127
- */
128
- lighten(amount?: number): TinyColor;
129
- /**
130
- * Brighten the color a given amount, from 0 to 100.
131
- * @param amount - valid between 1-100
132
- */
133
- brighten(amount?: number): TinyColor;
134
- /**
135
- * Darken the color a given amount, from 0 to 100.
136
- * Providing 100 will always return black.
137
- * @param amount - valid between 1-100
138
- */
139
- darken(amount?: number): TinyColor;
140
- /**
141
- * Mix the color with pure white, from 0 to 100.
142
- * Providing 0 will do nothing, providing 100 will always return white.
143
- * @param amount - valid between 1-100
144
- */
145
- tint(amount?: number): TinyColor;
146
- /**
147
- * Mix the color with pure black, from 0 to 100.
148
- * Providing 0 will do nothing, providing 100 will always return black.
149
- * @param amount - valid between 1-100
150
- */
151
- shade(amount?: number): TinyColor;
152
- /**
153
- * Desaturate the color a given amount, from 0 to 100.
154
- * Providing 100 will is the same as calling greyscale
155
- * @param amount - valid between 1-100
156
- */
157
- desaturate(amount?: number): TinyColor;
158
- /**
159
- * Saturate the color a given amount, from 0 to 100.
160
- * @param amount - valid between 1-100
161
- */
162
- saturate(amount?: number): TinyColor;
163
- /**
164
- * Completely desaturates a color into greyscale.
165
- * Same as calling `desaturate(100)`
166
- */
167
- greyscale(): TinyColor;
168
- /**
169
- * Spin takes a positive or negative amount within [-360, 360] indicating the change of hue.
170
- * Values outside of this range will be wrapped into this range.
171
- */
172
- spin(amount: number): TinyColor;
173
- /**
174
- * Mix the current color a given amount with another color, from 0 to 100.
175
- * 0 means no mixing (return current color).
176
- */
177
- mix(color: ColorInput, amount?: number): TinyColor;
178
- analogous(results?: number, slices?: number): TinyColor[];
179
- /**
180
- * taken from https://github.com/infusion/jQuery-xcolor/blob/master/jquery.xcolor.js
181
- */
182
- complement(): TinyColor;
183
- monochromatic(results?: number): TinyColor[];
184
- splitcomplement(): TinyColor[];
185
- /**
186
- * Compute how the color would appear on a background
187
- */
188
- onBackground(background: ColorInput): TinyColor;
189
- /**
190
- * Alias for `polyad(3)`
191
- */
192
- triad(): TinyColor[];
193
- /**
194
- * Alias for `polyad(4)`
195
- */
196
- tetrad(): TinyColor[];
197
- /**
198
- * Get polyad colors, like (for 1, 2, 3, 4, 5, 6, 7, 8, etc...)
199
- * monad, dyad, triad, tetrad, pentad, hexad, heptad, octad, etc...
200
- */
201
- polyad(n: number): TinyColor[];
202
- /**
203
- * compare color vs current color
204
- */
205
- equals(color?: ColorInput): boolean;
206
- }
207
- export declare function tinycolor(color?: ColorInput, opts?: Partial<TinyColorOptions>): TinyColor;