qms-angular 1.0.30 → 1.0.31
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/bundles/qms-angular.umd.js +902 -496
- package/bundles/qms-angular.umd.js.map +1 -1
- package/esm2015/lib/components/breadcrumb/breadcrumb.js +39 -41
- package/esm2015/lib/components/breadcrumb/enum/dropdown-node-width.enum.js +6 -0
- package/esm2015/lib/components/button/button-toggle.js +1 -1
- package/esm2015/lib/components/dialog/constant.js +4 -2
- package/esm2015/lib/components/dialog/dialog.js +4 -4
- package/esm2015/lib/components/related/common/data-type.enum.js +2 -2
- package/esm2015/lib/components/related/common/qms-icon.const.js +21 -1
- package/esm2015/lib/components/related/common/tree.function.js +10 -5
- package/esm2015/lib/components/related/list-other-related/list-related.component.js +6 -2
- package/esm2015/lib/components/related/model/popup-data.model.js +2 -1
- package/esm2015/lib/components/related/model/related-data.model.js +1 -1
- package/esm2015/lib/components/related/model/tree-config.model.js +1 -1
- package/esm2015/lib/components/related/model/tree-node.model.js +1 -1
- package/esm2015/lib/components/related/popup/related-popup.component.js +179 -12
- package/esm2015/lib/components/related/related.module.js +7 -5
- package/esm2015/lib/components/related/risk/analysis/analysis.component.js +1 -1
- package/esm2015/lib/components/related/service/related-global.service.js +5 -1
- package/esm2015/lib/components/related/tree/tree.component.js +30 -7
- package/esm2015/lib/components/table/table-action.js +2 -2
- package/esm2015/lib/directives/scrollbar/scrollbar.directive.js +8 -2
- package/esm2015/lib/model/en.js +7 -2
- package/esm2015/lib/model/no.js +7 -2
- package/esm2015/lib/qms-ckeditor-components/common/constants/ckeditorEvent.constant.js +3 -1
- package/esm2015/lib/qms-ckeditor-components/common/models/qms-ckeditor-data.model.js +1 -1
- package/esm2015/lib/qms-ckeditor-components/common/models/qms-ckeditor-input.model.js +2 -1
- package/esm2015/lib/qms-ckeditor-components/common/module/confirm/qms-ckeditor-confirm.component.js +1 -1
- package/esm2015/lib/qms-ckeditor-components/components/qms-ckeditor-link/attachments/link-attachment.component.js +1 -1
- package/esm2015/lib/qms-ckeditor-components/components/qms-ckeditor-link/qms-ckeditor-link.component.js +1 -1
- package/esm2015/lib/qms-ckeditor-components/components/qms-ckeditor-load-template/qms-ckeditor-load-template.component.js +1 -1
- package/esm2015/lib/qms-ckeditor-components/components/qms-ckeditor-relation/qmsckeditor-related.component.js +1 -1
- package/esm2015/lib/qms-ckeditor-components/components/qms-ckeditor-template/qms-ckeditor-template.component.js +1 -1
- package/esm2015/lib/qms-ckeditor-components/components/qms-ckeditor-tooltip/qms-ckeditor-tooltip.component.js +76 -0
- package/esm2015/lib/qms-ckeditor-components/models/qms-ckeditor-tooltip.model.js +7 -0
- package/esm2015/lib/qms-ckeditor-components/qms-ckeditor.component.js +51 -2
- package/esm2015/lib/qms-ckeditor-components/qms-ckeditor.module.js +4 -2
- package/esm2015/qms-angular.js +3 -1
- package/fesm2015/qms-angular.js +864 -476
- package/fesm2015/qms-angular.js.map +1 -1
- package/lib/components/breadcrumb/breadcrumb.d.ts +1 -0
- package/lib/components/breadcrumb/enum/dropdown-node-width.enum.d.ts +4 -0
- package/lib/components/related/common/data-type.enum.d.ts +1 -1
- package/lib/components/related/common/qms-icon.const.d.ts +4 -0
- package/lib/components/related/list-other-related/list-related.component.d.ts +1 -0
- package/lib/components/related/model/popup-data.model.d.ts +1 -0
- package/lib/components/related/model/related-data.model.d.ts +4 -0
- package/lib/components/related/model/tree-config.model.d.ts +1 -0
- package/lib/components/related/model/tree-node.model.d.ts +1 -0
- package/lib/components/related/popup/related-popup.component.d.ts +18 -0
- package/lib/components/related/service/related-global.service.d.ts +2 -0
- package/lib/components/related/tree/tree.component.d.ts +7 -1
- package/lib/directives/scrollbar/scrollbar.directive.d.ts +1 -0
- package/lib/model/en.d.ts +6 -1
- package/lib/model/no.d.ts +6 -1
- package/lib/qms-ckeditor-components/common/constants/ckeditorEvent.constant.d.ts +2 -0
- package/lib/qms-ckeditor-components/common/models/qms-ckeditor-data.model.d.ts +1 -0
- package/lib/qms-ckeditor-components/common/models/qms-ckeditor-input.model.d.ts +1 -0
- package/lib/qms-ckeditor-components/components/qms-ckeditor-tooltip/qms-ckeditor-tooltip.component.d.ts +36 -0
- package/lib/qms-ckeditor-components/models/qms-ckeditor-tooltip.model.d.ts +6 -0
- package/lib/qms-ckeditor-components/qms-ckeditor.component.d.ts +6 -0
- package/package.json +1 -1
- package/qms-angular.d.ts +2 -0
- package/qms-angular.metadata.json +1 -1
- package/src/assets/qms-ckeditor-plugin/build/ckeditor.js +2 -1
- package/src/assets/qms-ckeditor-plugin/build/ckeditor.js.map +1 -1
- package/src/assets/qms-ckeditor-plugin/package-lock.json +852 -2063
- package/src/assets/qms-ckeditor-plugin/package.json +25 -19
- package/src/assets/qms-ckeditor-plugin/src/ckeditor.js +10 -2
- package/src/assets/qms-ckeditor-plugin/src/plugins/ckeditor5-find-and-replace/src/findandreplace.js +132 -0
- package/src/assets/qms-ckeditor-plugin/src/plugins/ckeditor5-find-and-replace/src/findandreplaceediting.js +315 -0
- package/src/assets/qms-ckeditor-plugin/src/plugins/ckeditor5-find-and-replace/src/findandreplaceui.js +223 -0
- package/src/assets/qms-ckeditor-plugin/src/plugins/ckeditor5-find-and-replace/src/findcommand.js +90 -0
- package/src/assets/qms-ckeditor-plugin/src/plugins/ckeditor5-find-and-replace/src/findnextcommand.js +62 -0
- package/src/assets/qms-ckeditor-plugin/src/plugins/ckeditor5-find-and-replace/src/findpreviouscommand.js +28 -0
- package/src/assets/qms-ckeditor-plugin/src/plugins/ckeditor5-find-and-replace/src/index.js +10 -0
- package/src/assets/qms-ckeditor-plugin/src/plugins/ckeditor5-find-and-replace/src/replaceallcommand.js +54 -0
- package/src/assets/qms-ckeditor-plugin/src/plugins/ckeditor5-find-and-replace/src/replacecommand.js +66 -0
- package/src/assets/qms-ckeditor-plugin/src/plugins/ckeditor5-find-and-replace/src/ui/checkboxview.js +212 -0
- package/src/assets/qms-ckeditor-plugin/src/plugins/ckeditor5-find-and-replace/src/ui/findandreplaceformview.js +546 -0
- package/src/assets/qms-ckeditor-plugin/src/plugins/ckeditor5-find-and-replace/src/utils.js +158 -0
- package/src/assets/qms-ckeditor-plugin/src/plugins/ckeditor5-find-and-replace/theme/findandreplace.css +13 -0
- package/src/assets/qms-ckeditor-plugin/src/plugins/ckeditor5-find-and-replace/theme/findandreplaceform.css +226 -0
- package/src/assets/qms-ckeditor-plugin/src/plugins/ckeditor5-find-and-replace/theme/icons/find-replace.svg +1 -0
- package/src/assets/qms-ckeditor-plugin/src/plugins/ckeditor5-special-characters/src/specialcharacters.js +4 -4
- package/src/assets/qms-ckeditor-plugin/src/plugins/ckeditor5-special-characters/src/specialcharactersarrows.js +1 -1
- package/src/assets/qms-ckeditor-plugin/src/plugins/ckeditor5-special-characters/src/specialcharacterscurrency.js +1 -1
- package/src/assets/qms-ckeditor-plugin/src/plugins/ckeditor5-special-characters/src/specialcharactersessentials.js +1 -1
- package/src/assets/qms-ckeditor-plugin/src/plugins/ckeditor5-special-characters/src/specialcharacterslatin.js +1 -1
- package/src/assets/qms-ckeditor-plugin/src/plugins/ckeditor5-special-characters/src/specialcharactersmathematical.js +1 -1
- package/src/assets/qms-ckeditor-plugin/src/plugins/ckeditor5-special-characters/src/specialcharacterstext.js +1 -1
- package/src/assets/qms-ckeditor-plugin/src/plugins/ckeditor5-special-characters/src/ui/charactergridview.js +1 -1
- package/src/assets/qms-ckeditor-plugin/src/plugins/ckeditor5-special-characters/src/ui/characterinfoview.js +1 -1
- package/src/assets/qms-ckeditor-plugin/src/plugins/ckeditor5-special-characters/src/ui/specialcharactersnavigationview.js +2 -2
- package/src/assets/qms-ckeditor-plugin/src/plugins/common/qmsCKEditorConstant.js +4 -0
- package/src/assets/qms-ckeditor-plugin/src/plugins/common/qmsCKEditorService.js +10 -0
- package/src/assets/qms-ckeditor-plugin/src/plugins/tooltip/inserttooltipcommand.js +98 -0
- package/src/assets/qms-ckeditor-plugin/src/plugins/tooltip/removetooltipcommand.js +41 -0
- package/src/assets/qms-ckeditor-plugin/src/plugins/tooltip/tooltip.js +14 -0
- package/src/assets/qms-ckeditor-plugin/src/plugins/tooltip/tooltipediting.js +280 -0
- package/src/assets/qms-ckeditor-plugin/src/plugins/tooltip/tooltipui.js +203 -0
- package/src/assets/qms-ckeditor-plugin/src/plugins/tooltip/ui/actionsview.js +95 -0
- package/src/assets/qms-ckeditor-plugin/src/plugins/tooltip/utils.js +70 -0
- package/src/assets/qms-ckeditor-plugin/src/themes/icons/information.svg +50 -0
- package/src/assets/qms-ckeditor-plugin/src/themes/tyles/tooltip.css +74 -0
- package/src/lib/components/breadcrumb/breadcrumb.scss +9 -0
- package/src/lib/components/button/button-toggle.scss +25 -1
- package/src/lib/components/dialog/dialog.scss +9 -0
- package/src/lib/components/related/popup/related-popup.component.scss +46 -0
- package/src/lib/components/table/table.scss +5 -27
- package/src/lib/qms-ckeditor-components/components/qms-ckeditor-tooltip/qms-ckeditor-tooltip.component.scss +11 -0
- package/src/lib/qms-ckeditor-components/qms-ckeditor.component.scss +29 -1
- package/src/lib/qms-ckeditor-components/styles/_modules.scss +6 -0
- package/src/themes/core/_form.scss +4 -0
- package/src/themes/core/_input.scss +8 -0
- package/src/themes/core/_scrollbar.scss +9 -2
- package/src/themes/core/_styles.scss +5 -0
- package/src/themes/core/_tab.scss +272 -6
package/src/assets/qms-ckeditor-plugin/src/plugins/ckeditor5-find-and-replace/src/ui/checkboxview.js
ADDED
@@ -0,0 +1,212 @@
|
|
1
|
+
/**
|
2
|
+
* @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
|
+
*/
|
5
|
+
|
6
|
+
/**
|
7
|
+
* @module find-and-replace/ui/checkboxview
|
8
|
+
*/
|
9
|
+
|
10
|
+
import { View } from '@ckeditor/ckeditor5-ui';
|
11
|
+
import { getCode } from '@ckeditor/ckeditor5-utils';
|
12
|
+
|
13
|
+
/**
|
14
|
+
* The checkbox view class.
|
15
|
+
*
|
16
|
+
* @extends module:ui/view~View
|
17
|
+
*/
|
18
|
+
export default class CheckboxView extends View {
|
19
|
+
/**
|
20
|
+
* @inheritDoc
|
21
|
+
*/
|
22
|
+
constructor( locale ) {
|
23
|
+
super( locale );
|
24
|
+
|
25
|
+
const bind = this.bindTemplate;
|
26
|
+
|
27
|
+
/**
|
28
|
+
* (Optional) The additional CSS class set on the button.
|
29
|
+
*
|
30
|
+
* @observable
|
31
|
+
* @member {String} #class
|
32
|
+
*/
|
33
|
+
this.set( 'class' );
|
34
|
+
|
35
|
+
/**
|
36
|
+
* Controls whether the checkbox view is enabled, i.e. it can be clicked and can execute an action.
|
37
|
+
*
|
38
|
+
* @observable
|
39
|
+
* @default true
|
40
|
+
* @member {Boolean} #isEnabled
|
41
|
+
*/
|
42
|
+
this.set( 'isEnabled', true );
|
43
|
+
|
44
|
+
/**
|
45
|
+
* Controls whether the checkbox view is visible. Visible by default, the checkboxes are hidden
|
46
|
+
* using a CSS class.
|
47
|
+
*
|
48
|
+
* @observable
|
49
|
+
* @default true
|
50
|
+
* @member {Boolean} #isVisible
|
51
|
+
*/
|
52
|
+
this.set( 'isVisible', true );
|
53
|
+
|
54
|
+
/**
|
55
|
+
* Indicates whether a related checkbox is checked.
|
56
|
+
*
|
57
|
+
* @observable
|
58
|
+
* @default false
|
59
|
+
* @member {Boolean} #isChecked
|
60
|
+
*/
|
61
|
+
this.set( 'isChecked', false );
|
62
|
+
|
63
|
+
/**
|
64
|
+
* The text of the label associated with the checkbox view.
|
65
|
+
*
|
66
|
+
* @observable
|
67
|
+
* @member {String} #label
|
68
|
+
*/
|
69
|
+
this.set( 'label' );
|
70
|
+
|
71
|
+
/**
|
72
|
+
* The HTML `id` attribute to be assigned to the checkbox.
|
73
|
+
*
|
74
|
+
* @observable
|
75
|
+
* @default null
|
76
|
+
* @member {String|null} #id
|
77
|
+
*/
|
78
|
+
this.set( 'id', null );
|
79
|
+
|
80
|
+
/**
|
81
|
+
* (Optional) Controls the `tabindex` HTML attribute of the checkbox. By default, the checkbox is focusable
|
82
|
+
* but is not included in the <kbd>Tab</kbd> order.
|
83
|
+
*
|
84
|
+
* @observable
|
85
|
+
* @default -1
|
86
|
+
* @member {String} #tabindex
|
87
|
+
*/
|
88
|
+
this.set( 'tabindex', -1 );
|
89
|
+
|
90
|
+
/**
|
91
|
+
* The collection of the child views inside of the checkbox {@link #element}.
|
92
|
+
*
|
93
|
+
* @readonly
|
94
|
+
* @member {module:ui/viewcollection~ViewCollection}
|
95
|
+
*/
|
96
|
+
this.children = this.createCollection();
|
97
|
+
|
98
|
+
/**
|
99
|
+
* The label of the checkbox view. It is configurable using the {@link #label label attribute}.
|
100
|
+
*
|
101
|
+
* @readonly
|
102
|
+
* @member {module:ui/view~View} #labelView
|
103
|
+
*/
|
104
|
+
this.labelView = this._createLabelView( );
|
105
|
+
|
106
|
+
/**
|
107
|
+
* The input of the checkbox view.
|
108
|
+
*
|
109
|
+
* @readonly
|
110
|
+
* @member {module:ui/view~View} #checkboxInputView
|
111
|
+
*/
|
112
|
+
this.checkboxInputView = this._createCheckboxInputView();
|
113
|
+
|
114
|
+
this.setTemplate( {
|
115
|
+
tag: 'div',
|
116
|
+
|
117
|
+
attributes: {
|
118
|
+
class: [
|
119
|
+
bind.to( 'class' ),
|
120
|
+
bind.if( 'isEnabled', 'ck-disabled', value => !value ),
|
121
|
+
bind.if( 'isVisible', 'ck-hidden', value => !value )
|
122
|
+
],
|
123
|
+
tabindex: bind.to( 'tabindex' )
|
124
|
+
},
|
125
|
+
|
126
|
+
on: {
|
127
|
+
keydown: bind.to( evt => {
|
128
|
+
// Need to check target. Otherwise we would handle space press on input[type=text] and it would change
|
129
|
+
// checked property twice due to default browser handling kicking in too.
|
130
|
+
if ( evt.target === this.element && evt.keyCode == getCode( 'space' ) ) {
|
131
|
+
this.isChecked = !this.isChecked;
|
132
|
+
}
|
133
|
+
} )
|
134
|
+
},
|
135
|
+
|
136
|
+
children: this.children
|
137
|
+
} );
|
138
|
+
}
|
139
|
+
|
140
|
+
/**
|
141
|
+
* @inheritDoc
|
142
|
+
*/
|
143
|
+
render() {
|
144
|
+
super.render();
|
145
|
+
|
146
|
+
this.children.add( this.checkboxInputView );
|
147
|
+
this.children.add( this.labelView );
|
148
|
+
}
|
149
|
+
|
150
|
+
/**
|
151
|
+
* Focuses the {@link #element} of the checkbox.
|
152
|
+
*/
|
153
|
+
focus() {
|
154
|
+
this.element.focus();
|
155
|
+
}
|
156
|
+
|
157
|
+
/**
|
158
|
+
* Creates a checkbox input view instance and binds it with checkbox attributes.
|
159
|
+
*
|
160
|
+
* @private
|
161
|
+
* @returns {module:ui/view~View}
|
162
|
+
*/
|
163
|
+
_createCheckboxInputView() {
|
164
|
+
const checkboxInputView = new View();
|
165
|
+
const bind = this.bindTemplate;
|
166
|
+
|
167
|
+
checkboxInputView.setTemplate( {
|
168
|
+
tag: 'input',
|
169
|
+
attributes: {
|
170
|
+
type: 'checkbox',
|
171
|
+
id: bind.to( 'id' ),
|
172
|
+
'checked': bind.if( 'isChecked' ),
|
173
|
+
'disabled': bind.if( 'isEnabled', true, value => !value ),
|
174
|
+
'aria-disabled': bind.if( 'isEnabled', true, value => !value )
|
175
|
+
},
|
176
|
+
|
177
|
+
on: {
|
178
|
+
change: bind.to( evt => {
|
179
|
+
this.isChecked = evt.target.checked;
|
180
|
+
} )
|
181
|
+
}
|
182
|
+
} );
|
183
|
+
|
184
|
+
return checkboxInputView;
|
185
|
+
}
|
186
|
+
|
187
|
+
/**
|
188
|
+
* Creates a label view instance and binds it with checkbox attributes.
|
189
|
+
*
|
190
|
+
* @private
|
191
|
+
* @returns {module:ui/view~View}
|
192
|
+
*/
|
193
|
+
_createLabelView() {
|
194
|
+
const labelView = new View();
|
195
|
+
|
196
|
+
labelView.setTemplate( {
|
197
|
+
tag: 'label',
|
198
|
+
|
199
|
+
attributes: {
|
200
|
+
for: this.bindTemplate.to( 'id' )
|
201
|
+
},
|
202
|
+
|
203
|
+
children: [
|
204
|
+
{
|
205
|
+
text: this.bindTemplate.to( 'label' )
|
206
|
+
}
|
207
|
+
]
|
208
|
+
} );
|
209
|
+
|
210
|
+
return labelView;
|
211
|
+
}
|
212
|
+
}
|